diff --git a/.gitignore b/.gitignore index 2cd3041..ca9155e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ # Cache -/functions/tailwindcss /functions/tailwindcss/css /functions/tailwindcss/css-production diff --git a/functions/tailwindcss/admin-integration.php b/functions/tailwindcss/admin-integration.php new file mode 100644 index 0000000..8746f2e --- /dev/null +++ b/functions/tailwindcss/admin-integration.php @@ -0,0 +1,157 @@ +post_status !== 'publish') return false; + $options = alcastromol_get_cache_options(); + $types = isset($options['post_types']) && is_array($options['post_types']) ? $options['post_types'] : []; + return in_array($post->post_type, $types, true); +} + +function alcastromol_tailwind_get_post_cache_action_url($post_id, $context = 'admin') { + $post_id = absint($post_id); + $endpoint = admin_url('admin-post.php'); + + if ($context === 'front' && function_exists('pll_home_url')) { + $endpoint = trailingslashit(pll_home_url()) . 'wp-admin/admin-post.php'; + } + + $url = add_query_arg([ + 'action' => 'alcastromol_generate_tailwind_post_cache', + 'post_id' => $post_id, + 'context' => sanitize_key($context), + ], $endpoint); + return wp_nonce_url($url, 'alcastromol_generate_tailwind_post_cache_' . $post_id); +} + +function alcastromol_tailwind_add_post_row_action($actions, $post) { + if (function_exists('alcastromol_is_module_active') && !alcastromol_is_module_active('cache')) return $actions; + if (!current_user_can('manage_options') || !alcastromol_tailwind_post_is_cacheable($post)) return $actions; + $actions['alcastromol_tailwind_cache'] = sprintf( + '%s', + esc_url(alcastromol_tailwind_get_post_cache_action_url($post->ID, 'admin')), + esc_attr(sprintf('Generar cache Tailwind para %s', get_the_title($post))), + esc_html__('Generar cache Tailwind') + ); + return $actions; +} +add_filter('post_row_actions', 'alcastromol_tailwind_add_post_row_action', 20, 2); +add_filter('page_row_actions', 'alcastromol_tailwind_add_post_row_action', 20, 2); + +add_action('admin_post_alcastromol_generate_tailwind_post_cache', function () { + $post_id = absint($_REQUEST['post_id'] ?? 0); + $context = sanitize_key($_REQUEST['context'] ?? 'admin'); + if (!$post_id || !current_user_can('manage_options') || !current_user_can('edit_post', $post_id)) { + wp_die('No tienes permisos para generar este cache.'); + } + check_admin_referer('alcastromol_generate_tailwind_post_cache_' . $post_id); + $post = get_post($post_id); + if (!$post || !alcastromol_tailwind_post_is_cacheable($post)) { + wp_die('Este post type no está activo en la configuración de cache de Tailwind.'); + } + $url = get_permalink($post_id); + $slug = alcastromol_get_post_cache_slug($post_id); + $ok = $url && $slug ? alcastromol_cache_url($url, $slug) : false; + if ($context === 'front') { + wp_redirect($url ?: home_url('/')); + exit; + } + $object = get_post_type_object($post->post_type); + $fallback = ($object && $object->show_ui) + ? add_query_arg('post_type', $post->post_type, admin_url('edit.php')) + : admin_url('edit.php'); + $redirect = wp_get_referer() ?: $fallback; + $redirect = add_query_arg([ + 'tailwind_post_cache' => $ok ? 'generated' : 'failed', + 'tailwind_post_id' => $post_id, + ], $redirect); + wp_safe_redirect($redirect); + exit; +}); + +add_action('admin_notices', function () { + if (empty($_GET['tailwind_post_cache'])) return; + $status = sanitize_key($_GET['tailwind_post_cache']); + $post_id = absint($_GET['tailwind_post_id'] ?? 0); + if ($status === 'generated') { + echo '

Cache Tailwind generado. '; + echo $post_id ? 'Entrada #' . esc_html($post_id) . '.' : ''; + echo '

'; + } else { + echo '

No se pudo generar el cache Tailwind de la entrada.

'; + } +}); + +add_action('admin_bar_menu', function ($bar) { + if (!current_user_can('manage_options')) return; + $bar->add_node([ + 'id' => 'alcastromol-tailwind', + 'title' => 'Centro de funciones', + 'href' => admin_url('admin.php?page=alcastromol-functions'), + 'meta' => ['class' => 'alcastromol-tailwind-admin-bar'], + ]); + $bar->add_node([ + 'id' => 'alcastromol-functions-home', + 'parent' => 'alcastromol-tailwind', + 'title' => 'Inicio', + 'href' => admin_url('admin.php?page=alcastromol-functions'), + ]); + $bar->add_node([ + 'id' => 'alcastromol-tailwind-mode', + 'parent' => 'alcastromol-tailwind', + 'title' => 'Tailwind v3', + 'href' => admin_url('admin.php?page=alcastromol-tailwind-mode'), + ]); + $bar->add_node([ + 'id' => 'alcastromol-tailwind-cache', + 'parent' => 'alcastromol-tailwind', + 'title' => 'Cache de Tailwind', + 'href' => admin_url('admin.php?page=tailwind-cache'), + ]); + if (!is_admin() && is_singular()) { + $post_id = get_queried_object_id(); + if ($post_id && alcastromol_tailwind_post_is_cacheable($post_id) && (!function_exists('alcastromol_is_module_active') || alcastromol_is_module_active('cache'))) { + $bar->add_node([ + 'id' => 'alcastromol-tailwind-current-post-cache', + 'parent' => 'alcastromol-tailwind', + 'title' => 'Generar cache de esta entrada', + 'href' => alcastromol_tailwind_get_post_cache_action_url($post_id, 'front'), + ]); + } + } +}, 90); + +function alcastromol_tailwind_render_compile_section() { + $mode = alcastromol_get_tailwind_mode(); + $cli = alcastromol_tailwind_get_cli_path(); + $result = get_transient('alcastromol_tailwind_compile_result_' . get_current_user_id()); + if ($result) delete_transient('alcastromol_tailwind_compile_result_' . get_current_user_id()); + ?> +
+

Compilar CSS de Tailwind

+

Genera el archivo CSS productivo utilizando el cache HTML actual y Tailwind Standalone CLI.

+ +
+

+ +

Tamaño: + · Modificado:

+ +
+
+ + + + + +
Modo actual + · Cambiar a producción
CLI detectadoNo detectado
CSS productivo +
·
+
+ + + 'disabled'] : []); ?> +
+ 1, + 'post_types' => [], + 'taxonomies' => [], + 'authors' => 0, + 'oxygen_templates' => alcastromol_is_oxygen_enabled() ? 1 : 0, + ]; + +} + + +/* +|-------------------------------------------------------------------------- +| Obtener opciones guardadas +|-------------------------------------------------------------------------- +*/ + +function alcastromol_get_cache_options() { + + $saved = get_option(ALCASTROMOL_TAILWIND_CACHE_OPTIONS, []); + + if (!is_array($saved)) { + $saved = []; + } + + return wp_parse_args($saved, alcastromol_get_default_cache_options()); + +} + + +/* +|-------------------------------------------------------------------------- +| Guardar opciones +|-------------------------------------------------------------------------- +*/ + +function alcastromol_save_cache_options($options) { + + $clean = alcastromol_get_default_cache_options(); + + $clean['home'] = !empty($options['home']) ? 1 : 0; + + $clean['post_types'] = []; + + if (!empty($options['post_types']) && is_array($options['post_types'])) { + foreach ($options['post_types'] as $post_type) { + $clean['post_types'][] = sanitize_key($post_type); + } + } + + $clean['taxonomies'] = []; + + if (!empty($options['taxonomies']) && is_array($options['taxonomies'])) { + foreach ($options['taxonomies'] as $taxonomy) { + $clean['taxonomies'][] = sanitize_key($taxonomy); + } + } + + $clean['authors'] = !empty($options['authors']) ? 1 : 0; + + $clean['oxygen_templates'] = (alcastromol_is_oxygen_enabled() && !empty($options['oxygen_templates'])) ? 1 : 0; + + update_option(ALCASTROMOL_TAILWIND_CACHE_OPTIONS, $clean); + + return $clean; + +} + + +/* +|-------------------------------------------------------------------------- +| Detectar post types cacheables +|-------------------------------------------------------------------------- +*/ + +function alcastromol_detect_cacheable_post_types() { + + $post_types = get_post_types([ + 'public' => true, + ], 'objects'); + + $exclude = [ + 'attachment', + ]; + + $items = []; + + foreach ($post_types as $post_type => $object) { + + if (in_array($post_type, $exclude, true)) { + continue; + } + + $items[$post_type] = [ + 'name' => $post_type, + 'label' => $object->labels->name ?? $post_type, + ]; + + } + + if (post_type_exists('product') && !isset($items['product'])) { + $items['product'] = [ + 'name' => 'product', + 'label' => 'Productos WooCommerce', + ]; + } + + return $items; + +} + + +/* +|-------------------------------------------------------------------------- +| Detectar taxonomías cacheables +|-------------------------------------------------------------------------- +*/ + +function alcastromol_detect_cacheable_taxonomies() { + + $taxonomies = get_taxonomies([ + 'public' => true, + ], 'objects'); + + $items = []; + + foreach ($taxonomies as $taxonomy => $object) { + + $items[$taxonomy] = [ + 'name' => $taxonomy, + 'label' => $object->labels->name ?? $taxonomy, + ]; + + } + + return $items; + +} + + +/* +|-------------------------------------------------------------------------- +| Obtener HTML final renderizado +|-------------------------------------------------------------------------- +*/ + +function alcastromol_fetch_html($url) { + + $response = wp_remote_get($url, [ + 'timeout' => 20, + 'sslverify' => false, + 'headers' => [ + 'User-Agent' => 'Alcastromol Tailwind Cache Generator', + ], + ]); + + if (is_wp_error($response)) { + return false; + } + + $code = wp_remote_retrieve_response_code($response); + + if ($code < 200 || $code >= 400) { + return false; + } + + $html = wp_remote_retrieve_body($response); + + if (!$html) { + return false; + } + + return $html; + +} + + +/* +|-------------------------------------------------------------------------- +| Limpiar HTML +|-------------------------------------------------------------------------- +*/ + +function alcastromol_clean_html($html) { + + $html = preg_replace('//', '', $html); + + return $html; + +} + + +/* +|-------------------------------------------------------------------------- +| Guardar cache +|-------------------------------------------------------------------------- +*/ + +function alcastromol_save_cache($slug, $html) { + + if (!file_exists(ALCASTROMOL_TAILWIND_CACHE)) { + wp_mkdir_p(ALCASTROMOL_TAILWIND_CACHE); + } + + $file = ALCASTROMOL_TAILWIND_CACHE . sanitize_file_name($slug) . '.html'; + + file_put_contents($file, $html); + +} + + +/* +|-------------------------------------------------------------------------- +| Eliminar archivo individual +|-------------------------------------------------------------------------- +*/ + +function alcastromol_delete_cache_file($slug) { + + $file = ALCASTROMOL_TAILWIND_CACHE . sanitize_file_name($slug) . '.html'; + + if (file_exists($file)) { + unlink($file); + } + +} + + +/* +|-------------------------------------------------------------------------- +| Eliminar todo el cache +|-------------------------------------------------------------------------- +*/ + +function alcastromol_delete_all_cache() { + + if (!file_exists(ALCASTROMOL_TAILWIND_CACHE)) { + return 0; + } + + $files = glob(ALCASTROMOL_TAILWIND_CACHE . '*.html'); + + if (!$files) { + return 0; + } + + $deleted = 0; + + foreach ($files as $file) { + + if (is_file($file)) { + unlink($file); + $deleted++; + } + + } + + return $deleted; + +} + + +/* +|-------------------------------------------------------------------------- +| Patrones, conteos y acciones por tipo de contenido +|-------------------------------------------------------------------------- +*/ + +function alcastromol_get_cache_patterns_by_target($target_type, $target_name = '') { + + $target_type = sanitize_key($target_type); + $target_name = sanitize_key($target_name); + + switch ($target_type) { + + case 'home': + return ['home.html']; + + case 'post_type': + if (!$target_name) return []; + return [$target_name . '-*.html']; + + case 'taxonomy': + if (!$target_name) return []; + return ['taxonomy-' . $target_name . '-*.html']; + + case 'oxygen_templates': + return ['oxygen-template-*.html']; + + case 'authors': + return ['author-*.html']; + + } + + return []; + +} + +function alcastromol_get_cache_files_by_target($target_type, $target_name = '') { + + if (!file_exists(ALCASTROMOL_TAILWIND_CACHE)) { + return []; + } + + $patterns = alcastromol_get_cache_patterns_by_target($target_type, $target_name); + + if (empty($patterns)) { + return []; + } + + $files = []; + + foreach ($patterns as $pattern) { + + $found = glob(ALCASTROMOL_TAILWIND_CACHE . $pattern); + + if (!empty($found)) { + $files = array_merge($files, $found); + } + + } + + $files = array_filter(array_unique($files), 'is_file'); + + return array_values($files); + +} + +function alcastromol_count_cache_files_by_target($target_type, $target_name = '') { + + return count(alcastromol_get_cache_files_by_target($target_type, $target_name)); + +} + +function alcastromol_delete_cache_by_target($target_type, $target_name = '') { + + $files = alcastromol_get_cache_files_by_target($target_type, $target_name); + + if (empty($files)) { + return 0; + } + + $deleted = 0; + + foreach ($files as $file) { + + if (is_file($file) && unlink($file)) { + $deleted++; + } + + } + + return $deleted; + +} + +function alcastromol_get_urls_by_cache_target($target_type, $target_name = '') { + + $target_type = sanitize_key($target_type); + $target_name = sanitize_key($target_name); + + $items = []; + + if ($target_type === 'home') { + + $items[] = [ + 'url' => home_url('/'), + 'slug' => 'home', + 'type' => 'home', + ]; + + return $items; + + } + + if ($target_type === 'post_type') { + + if (!$target_name || !post_type_exists($target_name)) { + return []; + } + + $post_ids = get_posts([ + 'post_type' => $target_name, + 'post_status' => 'publish', + 'posts_per_page' => -1, + 'fields' => 'ids', + 'no_found_rows' => true, + 'ignore_sticky_posts' => true, + 'suppress_filters' => false, + 'update_post_meta_cache' => false, + 'update_post_term_cache' => false, + ]); + + foreach ($post_ids as $post_id) { + + $post = get_post($post_id); + + if (!$post) continue; + + $permalink = get_permalink($post_id); + + if (!$permalink) continue; + + $items[] = [ + 'url' => $permalink, + 'slug' => $post->post_type . '-' . $post->ID . '-' . $post->post_name, + 'type' => $post->post_type, + ]; + + } + + return $items; + + } + + if ($target_type === 'taxonomy') { + + if (!$target_name || !taxonomy_exists($target_name)) { + return []; + } + + $terms = get_terms([ + 'taxonomy' => $target_name, + 'hide_empty' => false, + ]); + + if (is_wp_error($terms) || empty($terms)) { + return []; + } + + foreach ($terms as $term) { + + $term_link = get_term_link($term); + + if (is_wp_error($term_link)) { + continue; + } + + $items[] = [ + 'url' => $term_link, + 'slug' => 'taxonomy-' . $target_name . '-' . $term->term_id . '-' . $term->slug, + 'type' => 'taxonomy_' . $target_name, + ]; + + } + + return $items; + + } + + if ($target_type === 'authors') { + + $authors = get_users([ + 'who' => 'authors', + ]); + + foreach ($authors as $author) { + + $items[] = [ + 'url' => get_author_posts_url($author->ID), + 'slug' => 'author-' . $author->ID . '-' . $author->user_nicename, + 'type' => 'author', + ]; + + } + + return $items; + + } + + return $items; + +} + +function alcastromol_generate_cache_by_target($target_type, $target_name = '') { + + $target_type = sanitize_key($target_type); + $target_name = sanitize_key($target_name); + + $generated = 0; + $failed = 0; + $failed_urls = []; + $total = 0; + + if ($target_type === 'oxygen_templates') { + + if (!alcastromol_is_oxygen_enabled()) { + return [ + 'total' => 0, + 'generated' => 0, + 'failed' => 0, + 'failed_urls' => [], + ]; + } + + $oxygen_items = alcastromol_get_oxygen_templates_cache_items(); + $total = count($oxygen_items); + + foreach ($oxygen_items as $item) { + + if (empty($item['slug']) || empty($item['html'])) { + $failed++; + continue; + } + + $html = alcastromol_clean_html($item['html']); + + alcastromol_save_cache($item['slug'], $html); + + $generated++; + + } + + return [ + 'total' => $total, + 'generated' => $generated, + 'failed' => $failed, + 'failed_urls' => $failed_urls, + 'count' => alcastromol_count_cache_files_by_target($target_type, $target_name), + ]; + + } + + $items = alcastromol_get_urls_by_cache_target($target_type, $target_name); + $total = count($items); + + foreach ($items as $item) { + + if (empty($item['url']) || empty($item['slug'])) { + $failed++; + continue; + } + + $result = alcastromol_cache_url($item['url'], $item['slug']); + + if ($result) { + $generated++; + } else { + $failed++; + $failed_urls[] = $item['url']; + } + + } + + return [ + 'total' => $total, + 'generated' => $generated, + 'failed' => $failed, + 'failed_urls' => $failed_urls, + 'count' => alcastromol_count_cache_files_by_target($target_type, $target_name), + ]; + +} + +function alcastromol_render_cache_action_row($args) { + + $target_type = sanitize_key($args['target_type'] ?? ''); + $target_name = sanitize_key($args['target_name'] ?? ''); + $label = $args['label'] ?? ''; + $code = $args['code'] ?? ''; + $input_name = $args['input_name'] ?? ''; + $input_value = $args['input_value'] ?? ''; + $checked = !empty($args['checked']); + + $count = alcastromol_count_cache_files_by_target($target_type, $target_name); + + ?> +
+ + + + archivos + + + + + +
+ post_type . '-' . $post->ID . '-' . $post->post_name; + +} + + +/* +|-------------------------------------------------------------------------- +| Cache individual al guardar Gutenberg / post / page / CPT / product +|-------------------------------------------------------------------------- +*/ + +function alcastromol_cache_post($post_id) { + + if (wp_is_post_revision($post_id)) return; + + if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return; + + $post = get_post($post_id); + + if (!$post) return; + + if ($post->post_status !== 'publish') return; + + /* + | Si es template Oxygen, lo cacheamos con la función especial. + */ + + if ($post->post_type === 'ct_template') { + if (alcastromol_is_oxygen_enabled()) { + alcastromol_cache_oxygen_template($post_id); + } + return; + } + + $options = alcastromol_get_cache_options(); + + if (empty($options['post_types']) || !in_array($post->post_type, $options['post_types'], true)) { + return; + } + + $url = get_permalink($post_id); + + if (!$url) return; + + $slug = alcastromol_get_post_cache_slug($post_id); + + if (!$slug) return; + + alcastromol_cache_url($url, $slug); + +} + +add_action('save_post', 'alcastromol_cache_post', 30); +add_action('save_post_product', 'alcastromol_cache_post', 30); +add_action('save_post_ct_template', 'alcastromol_cache_post', 30); + + +/* +|-------------------------------------------------------------------------- +| Obtener HTML/metas de un template Oxygen +|-------------------------------------------------------------------------- +*/ + +function alcastromol_get_oxygen_template_html($template_id) { + + $post = get_post($template_id); + + if (!$post || $post->post_type !== 'ct_template') { + return false; + } + + $html_parts = []; + + if (!empty($post->post_content)) { + $html_parts[] = $post->post_content; + } + + $possible_meta_keys = [ + 'ct_builder_shortcodes', + 'ct_builder_json', + 'ct_template_type', + 'ct_template_order', + 'ct_use_template', + 'ct_parent_template', + 'ct_inner_content', + ]; + + foreach ($possible_meta_keys as $meta_key) { + + $meta_value = get_post_meta($template_id, $meta_key, true); + + if (!empty($meta_value)) { + + if (is_array($meta_value) || is_object($meta_value)) { + $meta_value = wp_json_encode($meta_value); + } + + if (is_string($meta_value)) { + $html_parts[] = $meta_value; + } + + } + + } + + /* + | Extra: tomar todos los metas del template. + | Oxygen puede guardar clases y estructura en distintos campos. + */ + + $all_meta = get_post_meta($template_id); + + if (!empty($all_meta) && is_array($all_meta)) { + + foreach ($all_meta as $meta_key => $meta_values) { + + if (empty($meta_values)) { + continue; + } + + foreach ($meta_values as $meta_value) { + + if (empty($meta_value)) { + continue; + } + + if (is_array($meta_value) || is_object($meta_value)) { + $meta_value = wp_json_encode($meta_value); + } + + if (is_string($meta_value)) { + $html_parts[] = $meta_value; + } + + } + + } + + } + + $html = implode("\n", array_filter($html_parts)); + + if (empty($html)) { + return false; + } + + return $html; + +} + + +/* +|-------------------------------------------------------------------------- +| Cache individual de template Oxygen +|-------------------------------------------------------------------------- +*/ + +function alcastromol_cache_oxygen_template($template_id) { + + if (!alcastromol_is_oxygen_enabled()) { + return false; + } + + $options = alcastromol_get_cache_options(); + + if (empty($options['oxygen_templates'])) { + return false; + } + + $post = get_post($template_id); + + if (!$post || $post->post_type !== 'ct_template') { + return false; + } + + if (!in_array($post->post_status, ['publish', 'draft'], true)) { + return false; + } + + $html = alcastromol_get_oxygen_template_html($template_id); + + if (!$html) { + return false; + } + + $slug = 'oxygen-template-' . $template_id . '-' . $post->post_name; + + $html = alcastromol_clean_html($html); + + alcastromol_save_cache($slug, $html); + + return true; + +} + + +/* +|-------------------------------------------------------------------------- +| Obtener templates Oxygen para cache masivo +|-------------------------------------------------------------------------- +*/ + +function alcastromol_get_oxygen_templates_cache_items() { + + $items = []; + + if (!alcastromol_is_oxygen_enabled()) { + return $items; + } + + if (!post_type_exists('ct_template')) { + return $items; + } + + $template_ids = get_posts([ + 'post_type' => 'ct_template', + 'post_status' => ['publish', 'draft'], + 'posts_per_page' => -1, + 'fields' => 'ids', + 'no_found_rows' => true, + 'ignore_sticky_posts' => true, + 'suppress_filters' => false, + 'update_post_meta_cache' => true, + 'update_post_term_cache' => false, + ]); + + foreach ($template_ids as $template_id) { + + $post = get_post($template_id); + + if (!$post) { + continue; + } + + $html = alcastromol_get_oxygen_template_html($template_id); + + if (!$html) { + continue; + } + + $items[] = [ + 'slug' => 'oxygen-template-' . $template_id . '-' . $post->post_name, + 'html' => $html, + ]; + + } + + return $items; + +} + + +/* +|-------------------------------------------------------------------------- +| Obtener todas las URLs públicas seleccionadas +|-------------------------------------------------------------------------- +*/ + +function alcastromol_get_all_urls() { + + $options = alcastromol_get_cache_options(); + + $urls = []; + + /* + |-------------------------------------------------------------------------- + | Home + |-------------------------------------------------------------------------- + */ + + if (!empty($options['home'])) { + + $urls[] = [ + 'url' => home_url('/'), + 'slug' => 'home', + 'type' => 'home', + ]; + + } + + + /* + |-------------------------------------------------------------------------- + | Post types seleccionados + |-------------------------------------------------------------------------- + */ + + $selected_post_types = []; + + if (!empty($options['post_types']) && is_array($options['post_types'])) { + $selected_post_types = $options['post_types']; + } + + $selected_post_types = array_filter($selected_post_types, function ($post_type) { + return post_type_exists($post_type); + }); + + if (!empty($selected_post_types)) { + + $post_ids = get_posts([ + 'post_type' => $selected_post_types, + 'post_status' => 'publish', + 'posts_per_page' => -1, + 'fields' => 'ids', + 'no_found_rows' => true, + 'ignore_sticky_posts' => true, + 'suppress_filters' => false, + 'update_post_meta_cache' => false, + 'update_post_term_cache' => false, + ]); + + foreach ($post_ids as $post_id) { + + $post = get_post($post_id); + + if (!$post) continue; + + $permalink = get_permalink($post_id); + + if (!$permalink) continue; + + $urls[] = [ + 'url' => $permalink, + 'slug' => $post->post_type . '-' . $post->ID . '-' . $post->post_name, + 'type' => $post->post_type, + ]; + + } + + } + + + /* + |-------------------------------------------------------------------------- + | Taxonomías seleccionadas + |-------------------------------------------------------------------------- + */ + + $selected_taxonomies = []; + + if (!empty($options['taxonomies']) && is_array($options['taxonomies'])) { + $selected_taxonomies = $options['taxonomies']; + } + + $selected_taxonomies = array_filter($selected_taxonomies, function ($taxonomy) { + return taxonomy_exists($taxonomy); + }); + + if (!empty($selected_taxonomies)) { + + foreach ($selected_taxonomies as $tax) { + + $terms = get_terms([ + 'taxonomy' => $tax, + 'hide_empty' => false, + ]); + + if (is_wp_error($terms) || empty($terms)) { + continue; + } + + foreach ($terms as $term) { + + $term_link = get_term_link($term); + + if (is_wp_error($term_link)) { + continue; + } + + $urls[] = [ + 'url' => $term_link, + 'slug' => 'taxonomy-' . $tax . '-' . $term->term_id . '-' . $term->slug, + 'type' => 'taxonomy_' . $tax, + ]; + + } + + } + + } + + + /* + |-------------------------------------------------------------------------- + | Autores + |-------------------------------------------------------------------------- + */ + + if (!empty($options['authors'])) { + + $authors = get_users([ + 'who' => 'authors', + ]); + + foreach ($authors as $author) { + + $urls[] = [ + 'url' => get_author_posts_url($author->ID), + 'slug' => 'author-' . $author->ID . '-' . $author->user_nicename, + 'type' => 'author', + ]; + + } + + } + + + /* + |-------------------------------------------------------------------------- + | Eliminar URLs duplicadas + |-------------------------------------------------------------------------- + */ + + $unique_urls = []; + + foreach ($urls as $item) { + + if (empty($item['url']) || empty($item['slug'])) { + continue; + } + + $unique_urls[$item['url']] = $item; + + } + + return array_values($unique_urls); + +} + + +/* +|-------------------------------------------------------------------------- +| Generar cache completa +|-------------------------------------------------------------------------- +*/ + +function alcastromol_generate_full_cache() { + + $options = alcastromol_get_cache_options(); + + $urls = alcastromol_get_all_urls(); + + $generated = 0; + $failed = 0; + $products = 0; + $oxygen_templates = 0; + $failed_urls = []; + + /* + |-------------------------------------------------------------------------- + | Cache de URLs públicas + |-------------------------------------------------------------------------- + */ + + foreach ($urls as $item) { + + if (!empty($item['type']) && $item['type'] === 'product') { + $products++; + } + + $result = alcastromol_cache_url($item['url'], $item['slug']); + + if ($result) { + $generated++; + } else { + $failed++; + $failed_urls[] = $item['url']; + } + + } + + + /* + |-------------------------------------------------------------------------- + | Cache de templates Oxygen + |-------------------------------------------------------------------------- + */ + + if (alcastromol_is_oxygen_enabled() && !empty($options['oxygen_templates'])) { + + $oxygen_items = alcastromol_get_oxygen_templates_cache_items(); + + foreach ($oxygen_items as $item) { + + if (empty($item['slug']) || empty($item['html'])) { + continue; + } + + $html = alcastromol_clean_html($item['html']); + + alcastromol_save_cache($item['slug'], $html); + + $oxygen_templates++; + $generated++; + + } + + } + + + return [ + 'total' => count($urls) + $oxygen_templates, + 'products' => $products, + 'oxygen_templates' => $oxygen_templates, + 'generated' => $generated, + 'failed' => $failed, + 'failed_urls' => $failed_urls, + ]; + +} + + +/* +|-------------------------------------------------------------------------- +| AJAX guardar opciones +|-------------------------------------------------------------------------- +*/ + +add_action('wp_ajax_alcastromol_save_tailwind_cache_options', function () { + + if (!current_user_can('manage_options')) { + wp_send_json_error('No tienes permisos para guardar opciones.'); + } + + check_ajax_referer('alcastromol_tailwind_cache_nonce', 'nonce'); + + $raw_options = $_POST['options'] ?? []; + + if (!is_array($raw_options)) { + $raw_options = []; + } + + $options = alcastromol_save_cache_options($raw_options); + + wp_send_json_success([ + 'message' => 'Opciones guardadas', + 'options' => $options, + ]); + +}); + + +/* +|-------------------------------------------------------------------------- +| AJAX generar cache +|-------------------------------------------------------------------------- +*/ + +add_action('wp_ajax_alcastromol_generate_tailwind_cache', function () { + + if (!current_user_can('manage_options')) { + wp_send_json_error('No tienes permisos para generar el cache.'); + } + + check_ajax_referer('alcastromol_tailwind_cache_nonce', 'nonce'); + + $result = alcastromol_generate_full_cache(); + + wp_send_json_success([ + 'message' => 'Cache generada', + 'total' => $result['total'], + 'products' => $result['products'], + 'oxygen_templates' => $result['oxygen_templates'], + 'generated' => $result['generated'], + 'failed' => $result['failed'], + 'failed_urls' => $result['failed_urls'], + ]); + +}); + + +/* +|-------------------------------------------------------------------------- +| AJAX eliminar cache +|-------------------------------------------------------------------------- +*/ + +add_action('wp_ajax_alcastromol_delete_tailwind_cache', function () { + + if (!current_user_can('manage_options')) { + wp_send_json_error('No tienes permisos para eliminar el cache.'); + } + + check_ajax_referer('alcastromol_tailwind_cache_nonce', 'nonce'); + + $deleted = alcastromol_delete_all_cache(); + + wp_send_json_success([ + 'message' => 'Cache eliminado', + 'deleted' => $deleted, + ]); + +}); + + +/* +|-------------------------------------------------------------------------- +| AJAX generar cache por tipo de contenido +|-------------------------------------------------------------------------- +*/ + +add_action('wp_ajax_alcastromol_generate_tailwind_cache_target', function () { + + if (!current_user_can('manage_options')) { + wp_send_json_error('No tienes permisos para generar este cache.'); + } + + check_ajax_referer('alcastromol_tailwind_cache_nonce', 'nonce'); + + $target_type = sanitize_key($_POST['target_type'] ?? ''); + $target_name = sanitize_key($_POST['target_name'] ?? ''); + + $allowed = ['home', 'post_type', 'taxonomy', 'oxygen_templates', 'authors']; + + if (!in_array($target_type, $allowed, true)) { + wp_send_json_error('Tipo de cache inválido.'); + } + + $result = alcastromol_generate_cache_by_target($target_type, $target_name); + + wp_send_json_success([ + 'message' => 'Cache generado', + 'target_type' => $target_type, + 'target_name' => $target_name, + 'total' => $result['total'], + 'generated' => $result['generated'], + 'failed' => $result['failed'], + 'failed_urls' => $result['failed_urls'], + 'count' => $result['count'], + ]); + +}); + + +/* +|-------------------------------------------------------------------------- +| POST administrativo para generar cache por tipo de contenido +|-------------------------------------------------------------------------- +*/ +add_action('admin_post_alcastromol_generate_tailwind_cache_target_post', function () { + if (!current_user_can('manage_options')) { + wp_die('No tienes permisos para generar este cache.'); + } + check_admin_referer('alcastromol_tailwind_cache_nonce', 'nonce'); + $target_type = sanitize_key($_POST['target_type'] ?? ''); + $target_name = sanitize_key($_POST['target_name'] ?? ''); + $allowed = ['home', 'post_type', 'taxonomy', 'oxygen_templates', 'authors']; + if (!in_array($target_type, $allowed, true)) { + wp_die('Tipo de cache inválido.'); + } + if (function_exists('set_time_limit')) { + @set_time_limit(0); + } + ignore_user_abort(true); + $result = alcastromol_generate_cache_by_target($target_type, $target_name); + $redirect = add_query_arg([ + 'page' => 'tailwind-cache', + 'cache_target_result' => 'generated', + 'cache_target_type' => $target_type, + 'cache_target_name' => $target_name, + 'cache_target_total' => (int) $result['total'], + 'cache_target_created' => (int) $result['generated'], + 'cache_target_failed' => (int) $result['failed'], + 'cache_target_count' => (int) $result['count'], + ], admin_url('admin.php')); + wp_safe_redirect($redirect); + exit; +}); + + +/* +|-------------------------------------------------------------------------- +| AJAX eliminar cache por tipo de contenido +|-------------------------------------------------------------------------- +*/ + +add_action('wp_ajax_alcastromol_delete_tailwind_cache_target', function () { + + if (!current_user_can('manage_options')) { + wp_send_json_error('No tienes permisos para eliminar este cache.'); + } + + check_ajax_referer('alcastromol_tailwind_cache_nonce', 'nonce'); + + $target_type = sanitize_key($_POST['target_type'] ?? ''); + $target_name = sanitize_key($_POST['target_name'] ?? ''); + + $allowed = ['home', 'post_type', 'taxonomy', 'oxygen_templates', 'authors']; + + if (!in_array($target_type, $allowed, true)) { + wp_send_json_error('Tipo de cache inválido.'); + } + + $deleted = alcastromol_delete_cache_by_target($target_type, $target_name); + + wp_send_json_success([ + 'message' => 'Cache eliminado', + 'target_type' => $target_type, + 'target_name' => $target_name, + 'deleted' => $deleted, + 'count' => alcastromol_count_cache_files_by_target($target_type, $target_name), + ]); + +}); + + +/* +|-------------------------------------------------------------------------- +| Página herramientas +|-------------------------------------------------------------------------- +*/ + +add_action('admin_menu', function () { + + add_submenu_page( + 'alcastromol-functions', + 'Cache de Tailwind', + 'Cache de Tailwind', + 'manage_options', + 'tailwind-cache', + 'alcastromol_tailwind_tools_page' + ); + +}, 20); + + +function alcastromol_tailwind_tools_page() { + + $options = alcastromol_get_cache_options(); + + $post_types = alcastromol_detect_cacheable_post_types(); + + $taxonomies = alcastromol_detect_cacheable_taxonomies(); + + $nonce = wp_create_nonce('alcastromol_tailwind_cache_nonce'); + +?> + +
+ +

Generar Cache Tailwind

+ +

+ Selecciona qué contenido quieres cachear para que Tailwind detecte clases de Gutenberg, + WooCommerce, CPTs, taxonomías y templates de Oxygen. +

+ +
+ +

Contenido cacheable detectado

+ + + + +
+

+ Cache generado correctamente.
+ Tipo:
+ Items encontrados: · + Generados: · + Fallidos: · + Archivos actuales: +

+
+ + +
+ +

General

+ + 'home', + 'target_name' => '', + 'label' => 'Home', + 'code' => '', + 'input_name' => 'home', + 'input_value' => '1', + 'checked' => !empty($options['home']), + ]); + ?> + +

Post types / Gutenberg / WooCommerce / CPTs

+ + + + $item) : ?> + + 'post_type', + 'target_name' => $post_type, + 'label' => $item['label'], + 'code' => $post_type, + 'input_name' => 'post_types[]', + 'input_value' => $post_type, + 'checked' => in_array($post_type, $options['post_types'], true), + ]); + ?> + + + + + +

No se detectaron post types públicos.

+ + + + +

Taxonomías

+ + + + $item) : ?> + + 'taxonomy', + 'target_name' => $taxonomy, + 'label' => $item['label'], + 'code' => $taxonomy, + 'input_name' => 'taxonomies[]', + 'input_value' => $taxonomy, + 'checked' => in_array($taxonomy, $options['taxonomies'], true), + ]); + ?> + + + + + +

No se detectaron taxonomías públicas.

+ + + + + + +

Oxygen

+ + 'oxygen_templates', + 'target_name' => '', + 'label' => 'Templates de Oxygen', + 'code' => 'ct_template', + 'input_name' => 'oxygen_templates', + 'input_value' => '1', + 'checked' => !empty($options['oxygen_templates']), + ]); + ?> + + + +

Autores

+ + 'authors', + 'target_name' => '', + 'label' => 'Author pages', + 'code' => '', + 'input_name' => 'authors', + 'input_value' => '1', + 'checked' => !empty($options['authors']), + ]); + ?> + +
+ + + +

+ + + + + +

+ +

+
+
+ + + +{"use strict";var e={82256:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Xe});var s=n(36968),i=n.n(s),o=n(27361),a=n.n(o),r=n(23279),l=n.n(r),c=n(70655),d=n(20144),u=n(38085),p=n(18076),h=n(25970),g=n(67505),m=n(85450),v=n(71035);const y=1,f=3;function _(e,t,n,{enableContentEditableAndFocus:s,saveContentEditable:i}){const o=e=>{const a=[];return e.forEach((e=>{if(e.nodeType===f){const t=e.nodeValue;"%%CHILDREN%%"===t?.trim()?a.push(n()):t&&a.push(t)}else if(e.nodeType===y&&e instanceof Element){const n=e.attributes,r=e.nodeName,l={},c={},d={},u=[];let p,h;for(let t=0;t/,"").replace("",""),d=a.parseFromString(""+c+"","application/xhtml+xml");return o(d.documentElement.childNodes)}var b=n(98851),S=n(32521),C=n(63842);S.r$({globalSettingsCssFilePath:S.Z_,globalSelectorsCssFilePath:S.Z_,defaultCssForAllElementsFilePath:S.Z_});const x=S.r$({postCssFilePath:S.Z_,postDefaultsCssFilePath:S.Z_}),w=S.dt({postsGeneratedCssFilePaths:S.IM(S.Z_,x)}),I=S.jV([w,S.dt({dependencies:C.D})]),P=S.jV([S.dt({html:S.Z_}),I]);var k=n(85902),E=n(65669),T=n(31381);const D={};function A(e,t,n){let s,i=[];return async(...o)=>{if(s=o,D[n])return clearTimeout(D[n]),new Promise((o=>{i.push(o),D[n]=setTimeout((()=>{const t=e(...s);i.forEach((e=>e(t))),i=[],delete D[n]}),t)}));{const a=e(...o);return D[n]=setTimeout((()=>{if(i.length>0){const t=e(...s);i.forEach((e=>e(t))),i=[]}delete D[n]}),t),a}}}function Z(e,t,n,s){const i=(0,T.treeNodesOfType)(m.documentStore.document.tree.root,[e]),o=i.length,a=i.findIndex((e=>e.id===n)),r=()=>(0,b.D)({action:"breakdance_server_side_render",overrideAjaxUrl:(0,k.j)(),dataToPost:{properties:(0,E.J)(t),parentProperties:(0,E.J)(s),elementSlug:e,triggeringDocument:m.documentStore.document.documentMeta.id,totalMatchingElements:o,currentIndexInMatchingElements:a},decoder:P});return A(r,1e3,n)()}var O=n(30902),M=n(45974),B=n(3565),L=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-empty-columns"},[t("div",{staticClass:"breakdance-empty-columns-choices-heading"},[e._v(" "+e._s(e.__("Choose a column structure"))+" ")]),t("div",{staticClass:"breakdance-empty-columns-choices"},[t("div",{staticClass:"breakdance-empty-columns-choices-row"},[t("div",{staticClass:"breakdance-empty-columns-column-icon-wrapper",on:{click:function(t){return e.addColumns(t,2)}}},[e._m(0)]),t("div",{staticClass:"breakdance-empty-columns-column-icon-wrapper",on:{click:function(t){return e.addColumns(t,3)}}},[e._m(1)]),t("div",{staticClass:"breakdance-empty-columns-column-icon-wrapper",on:{click:function(t){return e.addColumns(t,4)}}},[e._m(2)])]),t("div",{staticClass:"breakdance-empty-columns-choices-row"},[t("div",{staticClass:"breakdance-empty-columns-column-icon-wrapper",on:{click:function(t){return e.addColumns(t,2,[35,65])}}},[e._m(3)]),t("div",{staticClass:"breakdance-empty-columns-column-icon-wrapper",on:{click:function(t){return e.addColumns(t,2,[65,35])}}},[e._m(4)])])])])},N=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-empty-columns-column-icon"},[t("div",{staticClass:"breakdance-empty-columns-column-icon-column"}),t("div",{staticClass:"breakdance-empty-columns-column-icon-column"})])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-empty-columns-column-icon"},[t("div",{staticClass:"breakdance-empty-columns-column-icon-column"}),t("div",{staticClass:"breakdance-empty-columns-column-icon-column"}),t("div",{staticClass:"breakdance-empty-columns-column-icon-column"})])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-empty-columns-column-icon"},[t("div",{staticClass:"breakdance-empty-columns-column-icon-column"}),t("div",{staticClass:"breakdance-empty-columns-column-icon-column"}),t("div",{staticClass:"breakdance-empty-columns-column-icon-column"}),t("div",{staticClass:"breakdance-empty-columns-column-icon-column"})])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-empty-columns-column-icon"},[t("div",{staticClass:"breakdance-empty-columns-column-icon-column",staticStyle:{width:"35%"}}),t("div",{staticClass:"breakdance-empty-columns-column-icon-column",staticStyle:{width:"65%"}})])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-empty-columns-column-icon"},[t("div",{staticClass:"breakdance-empty-columns-column-icon-column",staticStyle:{width:"65%"}}),t("div",{staticClass:"breakdance-empty-columns-column-icon-column",staticStyle:{width:"35%"}})])}],F=n(884),R=n(94550),V=n(95690),$=n(69137),W=n(28684),U=n(38020);let z=class extends d.ZP{addColumns(e,t,n){e.preventDefault(),e.stopPropagation();const s=[],o=n?n.map((e=>{const t=(0,U.v)(e);return i()({},F.cp,{number:t,unit:"%",style:`${t}%`})})):[];for(let i=0;i{m.documentStore.addMultipleNodes({nodes:s,parentId:this.id}),n||(0,W.t)(this.id)}),`Set amount of columns to ${t}`),(0,V.oM)("elementproperties")}};(0,c.gn)([(0,u.fI)()],z.prototype,"id",void 0),z=(0,c.gn)([(0,u.wA)({})],z);const H=z,G=H;var K=n(1001),j=(0,K.Z)(G,L,N,!1,null,null,null);const q=j.exports;var X=n(86592),Y=n(86687),Q=n(43195),J=n(58172),ee=n(39664);const te=["jquery","wp-polyfill-js"];function ne(){const e=window.Breakdance.canvas.document,t=e.querySelectorAll("script");for(const n of t){if(te.find((e=>n.id.toLowerCase().includes(e)||n.src.toLowerCase().includes(e))))continue;const t=se(n);n.remove(),e.querySelector("body")?.appendChild(t)}}function se(e){const t=document.createElement("script");return Array.from(e.attributes).forEach((e=>{t.setAttribute(e.name,e.value)})),e.src?t.src=e.src:t.innerHTML=e.innerHTML,t}var ie=n(12721);const oe='\n
\n This element has no content.\n\n Hide this notice at Preferences / UI Settings / Disable Notice For Empty SSR Elements\n
',ae='\n
\n There was an error on the server when rendering this element.\n
',re=(e,t)=>`\n
\n The "${e}" element requires the plugins "${t.join(", ")}". Please check that they are installed and activated from the Plugins page of the WP admin.\n
`;var le=n(98374),ce=n(13635),de=n(20210),ue=n(9950),pe=n(25001),he=n(84274),ge=n(40681),me=n(92361),ve=n(17209),ye=n(23128),fe=n(8773),_e=n(35941),be=n(16734),Se=n(54120),Ce=n(16068),xe=n(23493),we=n.n(xe);function Ie(e){return e?.parentElement?.classList?.contains("oxy-component")&&e?.children?.length?e.children[0]?.getBoundingClientRect():e?.parentElement?.getBoundingClientRect()}function Pe(e,t){return e&&t?Math.abs(e.top-t.top)<1&&Math.abs(e.left-t.left)<1&&Math.abs(e.bottom-t.bottom)<1&&Math.abs(e.right-t.right)<1&&Math.abs(e.width-t.width)<1&&Math.abs(e.height-t.height)<1:e===t}function ke(e){(0,d.Y3)((()=>{const t=Ie(e);if(!t||!m.uiStore.inlineEditingContext)return;const n=m.uiStore.inlineEditingRect;n&&Pe(t,n)||m.uiStore.setInlineEditingRect(t)}))}function Ee(e){const t=()=>ke(e),n=we()(t,16),s=window.Breakdance?.canvas?.document;s.addEventListener("scroll",n,{passive:!0});const i=new ResizeObserver(t),o=s.defaultView?.ResizeObserver,a=o?new o(t):null;return i?.observe(document.querySelector("#iframe-wrapper")),a?.observe(e.parentElement??e),t(),()=>{s.removeEventListener("scroll",n),i?.disconnect(),a?.disconnect()}}function Te(e,t,n,s){if(!n)return e;const i=new DOMParser,o=i.parseFromString(n,"text/html"),a=e=>{const t=[];let n=e.parentElement;while(n&&"body"!==n.tagName.toLowerCase())t.push({tag:n.tagName.toLowerCase(),className:n.className||""}),n=n.parentElement;return t},r=o.querySelector(s);if(!r)return e;const l=a(r),c=r.tagName.toLowerCase(),u=(0,d.h)(c,{class:r.className},[e]);return l.reverse().reduceRight(((e,t)=>{const n=t.tag.toLowerCase();return(0,d.h)(n,{class:t.className},Array.isArray(e)?e:[e])}),[u,...t])}function De(e,t){if(!e)return[];const n=new DOMParser,s=n.parseFromString(e,"text/html"),i=s.querySelectorAll(t);return i?Array.from(i).slice(1).map((e=>({tag:e.tagName.toLowerCase(),className:e.className||"",innerHTML:e.innerHTML}))):[]}function Ae(e){return e.map(((e,t)=>{const n=e.tag;return(0,d.h)(n,{key:`placeholder-${t}`,class:`breakdance-inline-editor-placeholder ${e.className}`,domProps:{innerHTML:e.innerHTML}})}))}var Ze=n(33356);let Oe=class extends u.w3{constructor(){super(...arguments),this.saving=!1,this.resizeObserver=null,this.blockId=null,this.nodes=[],this.unsubscribe=()=>{}}onElementChange(){this.context?.showBackdrop&&ke(this.$refs.container)}get context(){return m.uiStore.inlineEditingContext}get postId(){return m.documentStore.document.documentMeta.id}get selector(){return`[data-inline-editable-node="${this.postId}-${this.element.id}"]`}get ssrNodePlaceholders(){return De(this.ssrTemplate,this.selector)}async mounted(){this.context?.showBackdrop&&(this.unsubscribe=Ee(this.$refs.container)),this.context?.scrollToElementOnStart&&this.$nextTick((()=>(0,Ze.es)()))}async beforeDestroy(){this.unsubscribe&&this.unsubscribe()}render(){const e=arguments[0],t=e("div",{class:"breakdance-inline-editor__loader"},["Loading Block..."]),n=e("div",{class:"breakdance-inline-editor",ref:"container"},[this.context?.loading?t:this.$slots.default]),s=Ae(this.ssrNodePlaceholders);return this.ssrTemplate?Te(n,s,this.ssrTemplate,this.selector):n}};(0,c.gn)([(0,u.fI)()],Oe.prototype,"element",void 0),(0,c.gn)([(0,u.fI)()],Oe.prototype,"ssrTemplate",void 0),(0,c.gn)([(0,u.RL)("element",{deep:!0})],Oe.prototype,"onElementChange",null),Oe=(0,c.gn)([(0,u.wA)({components:{BuilderElement:()=>Promise.resolve().then(n.bind(n,82256))}})],Oe);const Me=Oe,Be=Me;var Le,Ne,Fe=(0,K.Z)(Be,Le,Ne,!1,null,null,null);const Re=Fe.exports;function Ve(e){return!1}var $e,We=n(87950);const Ue=l()(v.Z,500);let ze=$e=class extends d.ZP{constructor(){super(...arguments),this.isActive=!1,this.isUpdating=!1,this.currentlyDragging=!1,this.lastModifiedPropertyPath=null,this.uniqueId=(0,fe.Z)(),this.ssrInnerHtml=null,this.oldSsrParentProperties=(0,ye.Z)(this.ssrParentProperties),this.oldTwigProps=(0,ye.Z)(this.elementProps),this.dragMouseStartX=!1,this.dragMouseStartY=!1,this.easyEvent=new ie.hF,this.debouncedLoadDynamicData=l()(this.loadDynamicData,500,{leading:!0})}get isEmptyContainer(){const e=(0,ue.V9)(this.element.data.type).type,t="popup"===e||"container"===e||"container-link"===e||"section"===e;return t&&0===this.element.children.length}get isContainerTypeElement(){const e=(0,ue.V9)(this.element.data.type).type;return"popup"===e||"container"===e||"container-link"===e||"container-restricted"===e||"container-excluding-self"===e||"section"===e}get isEmptyColumns(){return this.element.data.type===R.COLUMNS_SLUG&&0===this.element.children.length}get parentProps(){const e=this.baseElement.settings&&this.baseElement.settings.sharePropsWithSSRChildren,{design:t,...n}=this.elementProps||{};return(e?n:this.ssrParentProperties)||{}}get builderMode(){return m.configStore.builderMode}get isInlineEditing(){return m.uiStore.isElementBeingEditedInline(this.element.id)}__render(e){const t=this.rootTag;if(!this.shouldShow)return!1;if(this.isEmptyColumns)return e(t,{attrs:{...this.attributes},on:{mousedown:this.activateAndMaybeStartDrag,dragstart:this.disableDefaultDrag,click:this.maybePreventDefault},class:this.classList},[e(q,{attrs:{id:this.element.id}})]);const n=(0,X.as)((0,X.as)(this.processedTemplate,{ssr:this.ssrValueOrMessage}),this.tags),s=this.isEmptyContainer?e(B.Z,{attrs:{id:this.element.id}}):this.element.children.map((t=>e($e,{key:t.id,attrs:{element:t,parentId:this.element.id,ssrParentProperties:this.parentProps}}))),i=!this.isInlineEditing&&(this.contentEditablePropertyPath||null!==this.ssrValueOrMessage&&!this.ssrValueOrMessage.includes("%%CHILDREN%%")),o={};i&&(o.innerHTML=n);const a=i?[]:_(n,e,(()=>s),{enableContentEditableAndFocus:this.enableContentEditableAndFocus,saveContentEditable:this.saveContentEditable});return e(this.rootTag,{class:this.classList,attrs:this.attributes,domProps:o,on:{mousedown:this.activateAndMaybeStartDrag,dragstart:this.disableDefaultDrag,click:this.maybePreventDefault,dblclick:this.handleDoubleClick,blur:this.contentEditablePropertyPath?this.saveContentEditable:()=>{}}},this.isInlineEditing?[e(Re,{attrs:{element:this.element,ssrTemplate:(0,X.as)(this.ssrInnerHtml||"",this.tags)}},[a])]:a)}render(e){return this.__render(e)}get processedTemplate(){if(this.isInlineEditing)return"%%CHILDREN%%";if(!this.hasRequiredPluginsAndTheyAreAvailable&&this.baseElement.settings&&this.baseElement.settings.requiredPlugins)return re(this.baseElement.name,this.baseElement.settings.requiredPlugins);const e=(0,X.yz)(this.baseElement.template,this.twigPropsAndPreset,(0,X.bb)(this.baseElement));return e?(0,X.as)(e,this.tags):""}get shouldSsr(){const e=this.processedTemplate.includes("%%SSR%%");if(!e)return!1;if(this.refreshSsr)return!0;if(null===this.lastModifiedPropertyPath)return!0;const t=this.baseElement.propertyPathsToSsrElementWhenValueChanges,n=!t;return!!n||t.some((e=>this.lastModifiedPropertyPath?.startsWith(e)))}get refreshSsr(){return!!m.uiStore.refreshSsrElementId&&m.uiStore.refreshSsrElementId===this.element.id}get hasRequiredPluginsAndTheyAreAvailable(){if(!this.baseElement.settings||!this.baseElement.settings.requiredPlugins)return!0;const e=this.baseElement.settings.requiredPlugins.filter((e=>m.configStore.availableWordpressPlugins.includes(e)));return e.length===this.baseElement.settings.requiredPlugins.length}get ssrValueOrMessage(){return""===this.ssrInnerHtml?m.uiStore.settings.disableNoticeForEmptySSRElements?"":oe:this.shouldSsr||this.ssrInnerHtml?this.isUpdating?this.ssrInnerHtml||"":this.ssrInnerHtml:null}get tags(){return{id:this.element.id,selector:this.elementSelector,uniqueSlug:this.uniqueClassName,postId:this.postId,elementName:this.baseElement.name}}async rerenderFromServeOnParentPropertyChange(){this.shouldSsr&&((0,_e.v)(this.ssrParentProperties,this.oldSsrParentProperties)||(this.oldSsrParentProperties=(0,ye.Z)(this.ssrParentProperties),await this.maybeRerenderFromServer()))}async rerenderFromServerOnRefreshSsr(){this.refreshSsr&&(await this.maybeRerenderFromServer(),m.uiStore.setRefreshSsrElementId(null),this.runActionsAfterSsr())}get presets(){return m.globalStore.presets}async maybeRerenderFromServerOnPropertyChange(){await this.$nextTick(),this.isInlineEditing||(this.shouldSsr?(0,_e.v)(this.twigProps,this.oldTwigProps)||(this.oldTwigProps=this.twigProps,await this.maybeRerenderFromServer(),this.runActionsAfterSsr()):this.processedTemplate.includes("%%SSR%%")||(null!==this.ssrInnerHtml&&(this.ssrInnerHtml=null),this.updateSsrDependenciesAndStyles()))}runActionsAfterSsr(){Y.w.run.onBeforeDeletingElement({elementId:this.element.id}),this.element._parentId&&Y.w.run.onAfterDeletedElement({deletedElementNodeType:this.element.data.type,parentIdOfDeletedElement:this.element._parentId,transactionKey:void 0}),Y.w.run.onMountedElement({elementId:this.element.id})}async maybeRerenderFromServer(){if(!this.shouldSsr)return;m.uiStore.setElementUpdatingState({elementId:this.element.id,isUpdating:!0});const e=(0,O.pipe)(await Z(this.baseElement.slug,this.elementProps,this.element.id,this.parentProps),(0,M.fold)((e=>(e.forEach((e=>{ee.Z.log.message(e.msg)})),{html:ae,postsGeneratedCssFilePaths:{},dependencies:{}})),(e=>e)));m.uiStore.setElementUpdatingState({elementId:this.element.id,isUpdating:!1}),this.ssrInnerHtml=e.html,this.updateSsrDependenciesAndStyles(e.dependencies,e.postsGeneratedCssFilePaths)}maybeRerunAllScriptsInCanvasDocumentBody(){const e=this.baseElement.settings&&this.baseElement.settings.dependsOnGlobalScripts;e&&ne()}updateSsrDependenciesAndStyles(e,t){this.maybeRerunAllScriptsInCanvasDocumentBody(),e&&(0,v.Z)((0,ce.RY)(),{dependencies:[e],addInlineScriptsAsUnique:!1,element:this.element}),(0,le.xg)((0,ce.RY)(),this.element.id,t)}get shouldShow(){return(0,g.O)("elementShouldShow",!0,this.elementProps,{currentBreakpoint:m.uiStore.currentBreakpoint})}get breakpoints(){return m.configStore.breakpoints}onBreakpointsChange(){this.generateElementsCSS()}onTwigPropsChange(){this.generateElementsCSS()}onPresetChange(){this.generateElementsCSS()}onVariablesChange(){this.generateElementsCSS()}onCssTemplateChange(){this.generateElementsCSS()}onDefaultCssChange(){this.generateElementsCSS()}onInternalDependenciesChange(){if(this.baseElement.dependencies){const e=this.baseElement.dependencies.map((e=>({...e,inlineScripts:[]})));Ue((0,ce.RY)(),{dependencies:e,tags:this.tags,element:this.element})}}get globalSettings(){return m.globalStore.globalSettings}refreshIfTypographyPresetsChange(){this.generateElementsCSS()}get elementChildrenCount(){return this.element.children.length}elementChildrenCountChanged(){this.generateElementsCSS()}generateElementsCSS(){(0,le.df)((0,ce.RY)(),this.baseElement.slug,this.baseElement.defaultCss);const e=this.presetId?(0,Se.wV)(this.baseElement):this.baseElement.cssTemplate,t=(0,p.a)(this.twigProps,this.breakpoints,e,this.tags,this.baseElement.propertyPathsToWhitelistInFlatProps,this.elementChildrenCount,(0,X.g)(this.baseElement,this.presetId));(0,le.ts)((0,ce.RY)(),this.element.id,t,this.uniqueId)}async mounted(){this.updateSsrDependenciesAndStyles(),await Promise.all([this.loadDependencies(),this.maybeRerenderFromServer()]),Y.w.run.onMountedElement({elementId:this.element.id})}destroyed(){const e=0===(0,T.countNodesOfTypeInTree)(m.documentStore.document.tree.root,this.baseElement.slug);e&&(0,le.xU)((0,ce.RY)(),this.baseElement.slug),(0,le.AC)((0,ce.RY)(),this.element.id,this.uniqueId),(0,le.SR)((0,ce.RY)(),this.element.id),this.element._parentId&&Y.w.run.onAfterDeletedElement({deletedElementNodeType:this.element.data.type,parentIdOfDeletedElement:this.element._parentId,transactionKey:`DocumentDeleteElement:ID:${this.element.id}`})}loadDependencies(){return(0,v.Z)((0,ce.RY)(),{dependencies:[...this.baseElement.dependencies||[],...m.configStore.elementsExternalAttrsDepsAndActions.dependencies||[]],element:this.element,tags:this.tags})}get elementSelector(){const e=`.${this.uniqueClassName}`,t=`.breakdance ${e}`;return"oxygen"===this.builderMode?this.element.data.type.startsWith("EssentialElements\\")?t:e:t}get rootTag(){const e=this.baseElement.htmlTag.pathToControl?a()(this.element.data.properties,this.baseElement.htmlTag.pathToControl):this.element.data.properties?.settings?.advanced?.tag;return"string"===typeof e&&e||this.baseElement.htmlTag.default}get baseElement(){return m.configStore.element(this.element.data.type)}get elementProps(){if(m.uiStore.inlineEditingElement&&m.uiStore.inlineEditingElement.data.type===R.COMPONENT_SLUG&&(0,ue.l0)(m.documentStore.document.tree,this.element,m.uiStore.inlineEditingElement)){const e=m.uiStore.inlineEditingElementPropertyOverrides,t=e[this.element.id]||{};if(Object.keys(t).length>0){const e=(0,ye.Z)(this.element.data.properties);for(const[n,s]of Object.entries(t))s&&i()(e,n,s);return e}}return this.element.data.properties}get twigProps(){if((0,J.Kn)(this.elementProps)&&0!==Object.entries(this.elementProps).length){const e=m.configStore.dynamicDataCache.data,t=(0,h.Ko)(this.elementProps,e),n=t.filter((t=>!Object.keys(e).includes((0,h.Ev)(t))));n.length&&this.debouncedLoadDynamicData(n);const s=!!m.configStore.previewedItem;return(0,J.xV)(this.elementProps,(t=>(0,Q.ro)(t)?(0,Q.Ax)(t,e,s):t))}return{}}get designPropsAndPreset(){const e=(0,ye.Z)(this.twigProps?.design),t=(0,ye.Z)(this.preset?.design);return(0,Se.lb)(t,e)}get twigPropsAndPreset(){return{...this.twigProps,design:this.designPropsAndPreset}}get postId(){return m.documentStore.document.documentMeta.id}get htmlId(){return(0,de.Cc)(this.element)}get uniqueClassName(){return(0,de.P0)(this.element,this.postId)}get baseClassName(){return(0,de.MO)(this.baseElement)}get presetId(){return this.element.data.properties?.meta?.preset}get preset(){return m.globalStore.presets.find((e=>e.id===this.presetId))}get variables(){return m.globalStore.variables}get isSectionCurrentlyRewritingWithAi(){return m.singularityStore.aiJobs.filter((e=>"elementId"in e.context&&e.context.elementId===this.element.id&&("running"===e.status||"pending"===e.status))).length>0}get classList(){const e=[this.uniqueClassName,"builder-element",this.baseClassName];this.isSectionCurrentlyRewritingWithAi&&e.push("section-currently-rewriting-with-ai"),this.isActive&&e.push("breakdance--active-element"),this.currentlyDragging&&e.push("breakdance--currently-dragging"),this.isEmptyContainer&&e.push("breakdance--empty-container"),this.isContainerTypeElement&&e.push("breakdance--container-type-element");const t=this.element.data.properties?.settings?.advanced?.classes??!1;t&&e.push(...t),this.baseElement.settings&&this.baseElement.settings.bypassPointerEvents&&e.push("breakdance-children-pointer-events-none"),this.isUpdating&&e.push("breakdance-element-is-updating"),this.presetId&&e.push(`bde-preset-${this.presetId}`);const n=(0,Ce.Xn)(this.element);return n&&e.push(...n.map((e=>e.name))),e.push(...this.additionalClasses),e}get additionalClasses(){return this.baseElement.additionalClasses?this.baseElement.additionalClasses.map((e=>{const t=(0,X.yz)(e.template,this.twigPropsAndPreset,(0,X.l0)(this.baseElement,e));if(t)return{name:e.name,include:t}})).filter(pe.$K).filter((e=>!!e.include)).map((e=>e.name)):[]}renderAttributeValue(e){return"template"in e?(0,X.yz)(e.template,this.twigPropsAndPreset,(0,X.H5)(this.baseElement,e)):"propertyPath"in e?String(a()(this.elementProps,e.propertyPath,"")):"rawValue"in e?e.rawValue:null}get attributes(){const e={},t=[...this.baseElement.attributes||[],...m.configStore.elementsExternalAttrsDepsAndActions.attributes||[]];t.forEach((t=>{const n=this.renderAttributeValue(t);n&&(e[t.name]=(0,X.as)(n,this.tags))}));const n=this.element.data.properties?.settings?.advanced?.attributes??[];n.forEach((t=>{e[t.name]=t.value})),e["data-node-id"]=`${this.element.id}`,this.htmlId&&(e["id"]=this.htmlId);const s={};return Object.keys(e).forEach((t=>{"%%OUTPUTBLANKATTRIBUTE%%"===e[t]?.trim()||null==e[t]||void 0===e[t]?s[t]="":s[t]=e[t]})),s}get contentEditablePropertyPath(){return this.attributes["data-content-editable-property-path"]}get isDragAndDropEnabled(){return m.uiStore.isSingularityMode&&m.uiStore.hasFullAccess?Ve(this.element):m.uiStore.hasFullAccess}get isPreviewMode(){return m.uiStore.isPreviewMode}get isOnboardingMode(){return window.Breakdance.isOnboarding}get lastModifiedTreeNodePropertyForWatcher(){return m.uiStore.lastModifiedElementProperty}handleLastModifiedTreeNodePropertyChange(e){e.elementId===this.element.id?this.lastModifiedPropertyPath=e.path:null!==this.lastModifiedPropertyPath&&(this.lastModifiedPropertyPath=null)}get currentlyDraggingForWatcher(){return m.uiStore.currentlyDraggingCanvasElementId===this.element.id}handleCurrentlyDraggingChange(e){this.currentlyDragging=e}get activeElementIdForWatcher(){return m.uiStore.activeElementId}handleActiveElementIdChange(e){this.isActive=e===this.element.id}get isElementUpdatingForWatcher(){return Boolean(m.uiStore.elementsThatAreUpdating[this.element.id])}handleLoadingElementIdChange(e){this.isUpdating!==e&&(this.isUpdating=e)}get behaviorModeEnabled(){const e=m.uiStore.builderBehaviorElementId;return!!e&&(0,T.isDescendant)(m.documentStore.document.tree,e,this.element.id)}activateElement(){this.behaviorModeEnabled||(m.uiStore.activateElement(this.element.id),(0,V.oM)("elementproperties"))}canDrag(e){if(!this.isDragAndDropEnabled)return!1;const t=e.target,n=["textarea","input","select"],s=t.tagName.toLowerCase();return!n.includes(s)&&!m.uiStore.elementWithContentEditable}disableDefaultDrag(e){e.preventDefault()}maybePreventDefault(e){const t=e.target,n=["a","button"],s=n.join(", "),i=n.some((e=>t.closest(e)));(t.matches(s)||i)&&e.preventDefault()}activateAndMaybeStartDrag(e){this.isPreviewMode||this.isOnboardingMode||(e.stopPropagation(),this.activateElement(),this.canDrag(e)&&(this.behaviorModeEnabled||(this.dragMouseStartX=e.clientX,this.dragMouseStartY=e.clientY,this.easyEvent.on("mousemove",this.dragging),this.easyEvent.on("mouseup",this.removeDragListeners))))}removeDragListeners(){this.easyEvent.removeAll(),this.dragMouseStartX=!1,this.dragMouseStartY=!1}dragging(e){if(this.behaviorModeEnabled)return;if(!(0,ie.Pm)(e))return;if(!1===this.dragMouseStartX||!1===this.dragMouseStartY)return;const t=e.clientX,n=e.clientY;(Math.abs(t-this.dragMouseStartX)>3||Math.abs(n-this.dragMouseStartY)>3)&&(m.uiStore.setCanvasElementDraggedId(this.element.id),this.removeDragListeners())}handleDoubleClick(e){const t=this.element.data.type,n=[R.IMAGE_SLUG,R.LEGACY_IMAGE_SLUG,R.OXY_IMAGE_SLUG];if(this.contentEditablePropertyPath)this.enableContentEditableAndFocus(e);else if(t===R.RICH_TEXT_SLUG)(0,be.of)("CMD_E");else if(n.includes(t))document.dispatchEvent(new CustomEvent("open-media-dialog",{cancelable:!0}));else if(this.isInlineEditable){const e=this.inlineBlockId;if(e){if(this.isAlreadyEditingInline)return;(0,We.B7)({elementId:this.element.id,blockId:e})}}}get isAlreadyEditingInline(){return this.isInlineEditable&&m.uiStore.isElementBeingEditedInline(this.element.id)}get isInlineEditable(){return(0,We.up)(this.baseElement)}get inlineBlockId(){const e=this.baseElement.nestingRule.inlineEditableBlockPath;return e?a()(this.twigProps,e):null}enableContentEditableAndFocus(e){const t=e.target;let n=null;if(n=t.dataset.contentEditablePropertyPath||t.dataset.nodeId?t:t.closest("[data-content-editable-property-path]"),!n)return;const s=n.dataset.contentEditablePropertyPath;if(s){const e=a()(this.twigProps,(0,Q.k2)(s)),t=!!e&&(0,Q.Tc)(e);if(t)return}const i="true"===n.getAttribute("contenteditable");if(i)return;m.uiStore.setContentEditableElementId(this.element.id);const o=t.dataset.contentEditablePropertyPath||this.contentEditablePropertyPath;o&&m.singularityStore.setTextEditorPanelState({elementId:this.element.id,contentEditablePropertyPath:o}),n.setAttribute("contenteditable","true"),n.focus(),window.Breakdance.canvas.document.addEventListener("keydown",this.handleKeydownInsideContentEditable),n.addEventListener("paste",this.pasteWithoutFormatting)}saveContentEditable(e){const t=e.target;window.Breakdance.canvas.document.removeEventListener("keydown",this.handleKeydownInsideContentEditable),t.removeEventListener("paste",this.pasteWithoutFormatting),t.setAttribute("contenteditable","false"),m.uiStore.setContentEditableElementId(null);const n=t.dataset.contentEditablePropertyPath||this.contentEditablePropertyPath;if(!n)return;t.innerHTML=t.innerHTML.trim();const s=t.childNodes[t.childNodes.length-1];s&&"BR"===s.tagName&&s.remove();const i=document.createElement("textarea");i.innerHTML=t.innerHTML;const o=i.value,r=a()(this.element.data.properties,n);r!==o&&m.documentStore.throttledPropertyChanged({elementId:this.element.id,path:n,value:o,meta:{snapshotLabel:he.AZ.forElementBasingOnChangedStorePropertyPath(this.baseElement,n,ge.P.CHANGE)}})}pasteWithoutFormatting(e){const t=e.clipboardData?.getData("text/plain");t&&(window.Breakdance.canvas.document.execCommand("insertHTML",!1,(0,ve.h)(t)),e.preventDefault())}handleKeydownInsideContentEditable(e){return"Space"===e.code?(e.preventDefault(),e.stopPropagation(),void window.Breakdance.canvas.document.execCommand("insertText",!1," ")):"Enter"===e.code?(window.Breakdance.canvas.document.execCommand("insertLineBreak"),void e.preventDefault()):"Escape"===e.code||(e.ctrlKey||e.metaKey)&&"s"===e.key?(e.preventDefault(),void this.saveContentEditable(e)):void 0}loadDynamicData(e){(0,h.y9)(e).then((e=>{m.configStore.setNewDynamicDataCacheEntries(e)}))}};(0,c.gn)([(0,u.fI)()],ze.prototype,"element",void 0),(0,c.gn)([(0,u.fI)()],ze.prototype,"parentId",void 0),(0,c.gn)([(0,u.fI)()],ze.prototype,"ssrParentProperties",void 0),(0,c.gn)([(0,u.RL)("ssrParentProperties",{deep:!0})],ze.prototype,"rerenderFromServeOnParentPropertyChange",null),(0,c.gn)([(0,u.RL)("refreshSsr")],ze.prototype,"rerenderFromServerOnRefreshSsr",null),(0,c.gn)([(0,u.RL)("twigProps")],ze.prototype,"maybeRerenderFromServerOnPropertyChange",null),(0,c.gn)([(0,u.RL)("breakpoints",{deep:!0})],ze.prototype,"onBreakpointsChange",null),(0,c.gn)([(0,u.RL)("twigProps",{deep:!0,immediate:!0})],ze.prototype,"onTwigPropsChange",null),(0,c.gn)([(0,u.RL)("preset",{deep:!0,immediate:!0})],ze.prototype,"onPresetChange",null),(0,c.gn)([(0,u.RL)("variables",{deep:!0,immediate:!0})],ze.prototype,"onVariablesChange",null),(0,c.gn)([(0,u.RL)("baseElement.cssTemplate")],ze.prototype,"onCssTemplateChange",null),(0,c.gn)([(0,u.RL)("baseElement.defaultCss")],ze.prototype,"onDefaultCssChange",null),(0,c.gn)([(0,u.RL)("baseElement.dependencies",{deep:!0})],ze.prototype,"onInternalDependenciesChange",null),(0,c.gn)([(0,u.RL)(`globalSettings.${me.r.typographyPresets}`,{deep:!0})],ze.prototype,"refreshIfTypographyPresetsChange",null),(0,c.gn)([(0,u.RL)("elementChildrenCount",{})],ze.prototype,"elementChildrenCountChanged",null),(0,c.gn)([(0,u.RL)("lastModifiedTreeNodePropertyForWatcher",{immediate:!0})],ze.prototype,"handleLastModifiedTreeNodePropertyChange",null),(0,c.gn)([(0,u.RL)("currentlyDraggingForWatcher",{immediate:!0})],ze.prototype,"handleCurrentlyDraggingChange",null),(0,c.gn)([(0,u.RL)("activeElementIdForWatcher",{immediate:!0})],ze.prototype,"handleActiveElementIdChange",null),(0,c.gn)([(0,u.RL)("isElementUpdatingForWatcher",{immediate:!0})],ze.prototype,"handleLoadingElementIdChange",null),ze=$e=(0,c.gn)([(0,u.wA)({})],ze);const He=ze,Ge=He;var Ke,je,qe=(0,K.Z)(Ge,Ke,je,!1,null,null,null);const Xe=qe.exports},3565:(e,t,n)=>{n.d(t,{Z:()=>v});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-empty-container",attrs:{id:"breakdance-empty-container"}},[t("div",{staticClass:"breakdance-empty-container__add-element",class:{"breakdance-empty-container__add-element--disabled":!e.canAddElement},on:{click:e.openAddPanel}},[t("Icon",{attrs:{icon:"PlusIcon",size:"22"}})],1)])},i=[],o=n(70655),a=n(85450),r=n(20144),l=n(38085),c=n(95690),d=n(85283);let u=class extends r.ZP{get canAddElement(){return a.uiStore.hasFullAccess}openAddPanel(e){e.preventDefault(),e.stopPropagation(),this.canAddElement&&((0,c.oM)("add"),a.uiStore.activateElement(this.id))}};(0,o.gn)([(0,l.fI)({default:null})],u.prototype,"id",void 0),u=(0,o.gn)([(0,l.wA)({components:{Icon:d.Z}})],u);const p=u,h=p;var g=n(1001),m=(0,g.Z)(h,s,i,!1,null,null,null);const v=m.exports},22996:(e,t,n)=>{n.d(t,{Z:()=>P});var s=n(1387),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e._v(" "+e._s(e.__("Default Children"))+" "),t("Repeater",{attrs:{value:e.value||[],"default-new-value":e.defaultValue,control:e.repeaterOptions},on:{input:function(t){return e.updateDefaultElements(t)}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:i}){return[t(s.Z,{staticClass:"mb-2",attrs:{value:i.slug,items:e.elementsAvailableForThisElementNestingType,hint:e.__("Element that will be automatically added inside this current element"),"persistent-hint":"",clearable:""},on:{input:function(t){return e.updatePath(t,n,"slug")}}}),i.slug&&e.canHaveChildren(i.slug)?t("ElementStudioDefaultElements",{staticClass:"mb-2",attrs:{value:i.children,"parent-element-slug":i.slug,"allow-import":!1},on:{input:function(t){return e.updatePath(t,n,"children")}}}):e._e(),i.slug?t("ElementStudioDefaultProperties",{attrs:{value:i.defaultProperties||!1,"element-slug":i.slug},on:{input:function(t){return e.updatePath(t,n,"defaultProperties")}}}):e._e()]}}])}),e.allowImport?t("div",[t("br"),t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.__("Import all children of the currently active element"))+" ")]),t("NiceButton",{attrs:{disabled:!e.canImport},on:{click:e.importChildren}},[e._v(" "+e._s(e.__("Import Children"))+" ")])],1):e._e()],1)},o=[],a=n(70655),r=n(20144),l=n(38085),c=n(34680),d=n.n(c),u=n(31044),p=n(16888),h=n(15133),g=n(62485),m=n(23128),v=n(9950),y=n(41571),f=n(36798),_=n(79333),b=n(36055);let S=class extends r.ZP{constructor(){super(...arguments),this.defaultValue={},this.repeaterOptions={options:{repeaterOptions:{defaultTitle:(0,b.__)("Default Element"),titleTemplate:"{slug}",buttonName:(0,b.__)("Add new default element")}}}}beforeCreate(){this.$options.components.ElementStudioDefaultElements=n(22996).Z}updateDefaultElements(e){this.$emit("input",e)}canHaveChildren(e){if(!e)return!1;const t=u.PK.element(e),n=t.nestingRule.type;return!n.startsWith("final")}get canImport(){return!!u.kD.activeElement&&u.kD.activeElement.data.type===this.context.element().slug}importChildren(){if(!u.kD.activeElement)return;const e=t=>({slug:t.data.type,defaultProperties:t.data.properties,children:t.children.map(e)}),t=(0,m.Z)(u.kD.activeElement),n=t.children.map(e);this.updateDefaultElements(n)}get elementsAvailableForThisElementNestingType(){return Object.keys(u.PK.elements).filter((e=>{const t=u.PK.element(this.parentElementSlug),n=u.PK.element(e).nestingRule;return(0,v.V4)(n,t.nestingRule,t.slug)}))}updatePath(e,t,n){const s=(0,m.Z)(this.value)||{};s[t][n]=e,this.$emit("input",s)}};(0,a.gn)([(0,l.fI)()],S.prototype,"value",void 0),(0,a.gn)([(0,l.fI)()],S.prototype,"parentElementSlug",void 0),(0,a.gn)([(0,l.fI)({default:!0})],S.prototype,"allowImport",void 0),(0,a.gn)([(0,l.tB)("context")],S.prototype,"context",void 0),S=(0,a.gn)([(0,l.wA)({components:{NiceButton:_.Z,ElementStudioDefaultProperties:f.Z,TextInput:y.Z,Repeater:g.Z,Dropdown:h.Z,Accordion:p.Z,draggable:d()}})],S);const C=S,x=C;var w=n(1001),I=(0,w.Z)(x,i,o,!1,null,null,null);const P=I.exports},36798:(e,t,n)=>{n.d(t,{Z:()=>S});var s=n(37179),i=n(73385),o=n(75223),a=n(12570),r=n(55234),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("h3",{staticClass:"mb-1"},[e._v(e._s(e.__("Default Properties")))]),t(s.Z,{staticClass:"mr-2",attrs:{small:"",text:"",disabled:!e.canImport,outlined:""},on:{click:e.importDefaultProperties}},[e._v(" "+e._s(e.__("Import"))+" ")]),e.value?t(s.Z,{attrs:{color:"red darken-1",text:"",small:"",outlined:""},on:{click:e.clearDefaultProperties}},[e._v(" "+e._s(e.__("Clear"))+" ")]):e._e(),t("div",{staticClass:"element-studio-default-properties-instructions"},[e._v(" "+e._s(e.sprintf(e._doc("Click IMPORT to set the default properties to the properties of the currently active element. Active element must be a %s.","%s: Element slug name"),e.elementSlugBold))+" ")]),t("h5",[e._v(e._s(e.__("Current Default Properties")))]),t("pre",{staticClass:"element-studio-default-properties-preview"},[e._v(e._s(e.value))]),t(a.Z,{attrs:{"max-width":"500"},model:{value:e.dialogOpen,callback:function(t){e.dialogOpen=t},expression:"dialogOpen"}},[t(i.Z,[t(o.EB,{staticClass:"headline"},[e._v(" "+e._s(e.__("Set Default Properties"))+" ")]),t(o.ZB,[e._v(" "+e._s(e.sprintf(e._doc("Set default properties for %s to:","%s: Element name"),e.elementSlug))),t("br"),t("br"),e._v(" "+e._s(e.defaultProperties)+" ")]),t(o.h7,[t(s.Z,{attrs:{color:"red darken-1",text:""},on:{click:e.cancel}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(r.Z),t(s.Z,{attrs:{color:"blue darken-1",text:""},on:{click:e.confirmDefaultProperties}},[e._v(" "+e._s(e.__("Confirm"))+" ")])],1)],1)],1)],1)},c=[],d=n(70655),u=n(20144),p=n(38085),h=n(85450),g=n(23128),m=n(36055);let v=class extends u.ZP{constructor(){super(...arguments),this.dialogOpen=!1,this.defaultProperties=this.value}get canImport(){return!!h.uiStore.activeElement&&h.uiStore.activeElement.data.type===this.elementSlug}get elementSlugBold(){return`${this.elementSlug}`}cancel(){this.dialogOpen=!1}importDefaultProperties(){if(!h.uiStore.activeElement)return;if(h.uiStore.activeElement.data.type!==this.elementSlug)return;const e=(0,g.Z)(h.uiStore.activeElement.data.properties);e&&("settings"in e&&delete e.settings,"meta"in e&&delete e.meta),this.defaultProperties=e,this.dialogOpen=!0}confirmDefaultProperties(){this.dialogOpen=!1,this.$emit("input",this.defaultProperties)}clearDefaultProperties(){confirm((0,m.__)("are you sure?"))&&this.$emit("input",!1)}};(0,d.gn)([(0,p.fI)()],v.prototype,"value",void 0),(0,d.gn)([(0,p.fI)()],v.prototype,"elementSlug",void 0),v=(0,d.gn)([(0,p.wA)({components:{}})],v);const y=v,f=y;var _=n(1001),b=(0,_.Z)(f,l,c,!1,null,null,null);const S=b.exports},71600:(e,t,n)=>{n.d(t,{Z:()=>O});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"structure-node-children"},[e._l(e.nodes,(function(n){return[t("StructureNode",{key:n.id,attrs:{element:n,depth:e.depth}})]}))],2)},i=[],o=n(70655),a=n(20144),r=n(38085),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"structure-node":!0,"breakdance--currently-dragging":this.currentlyDragging,"is-opened":"oxygen"===e.builderMode&&e.shouldShowChildrenNodes},style:"oxygen"===e.builderMode?e.indentAsCssVariableStyle:null,attrs:{"data-element-id":e.element.id}},[t("div",{staticClass:"structure-node-title-wrapper"},[t("div",{staticClass:"structure-node-title",class:e.activeClass,style:e.indentStyle,on:{click:e.activateElement}},[t("div",{staticClass:"structure-node-title-real"},[t("div",{staticClass:"structure-node-toggle-wrapper"},[e.element.children.length?t("Icon",{staticClass:"structure-node-action__icon",attrs:{icon:"breakdance"===e.builderMode?"CaretDownIcon":"ChevronDownSolidIcon",size:"10",rotate:e.shouldShowChildrenNodes?void 0:"270"},on:{click:function(t){return t.stopPropagation(),e.toggleChildren.apply(null,arguments)}}}):e._e()],1),t("div",{class:{"structure-node-title-real-real":!0,"structure-panel-editing-friendly-name":e.editingFriendlyName}},[t("ElementIcon",{staticClass:"structure-node-icon",attrs:{icon:e.getElementIcon(e.element),size:"12"}}),t("div",{staticClass:"element-title-text",attrs:{title:e.getElementName(e.element)}},[e.editingFriendlyName?e._e():t("span",{staticClass:"element-title-name ellipsis-text",on:{dblclick:e.enableEditingFriendlyName}},[e._v(" "+e._s(e.getElementName(e.element))+" ")]),e.editingFriendlyName?t("input",{ref:"friendlyNameInputRef",staticClass:"element-custom-name-input",attrs:{size:e.friendlyNameInputValue,spellcheck:"false"},domProps:{value:e.friendlyNameInputValue},on:{input:function(t){return e.updateFriendlyName(t.target.value)},keyup:[function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"]))return null;e.showElementNameFallback=!1},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.disableEditing.apply(null,arguments)}],blur:e.disableEditing,mousedown:function(t){return t.stopPropagation(),e.noop.apply(null,arguments)},contextmenu:function(t){return t.stopPropagation(),e.noop.apply(null,arguments)}}}):e._e(),e.isDraftSection&&!e.editingFriendlyName?t("span",{staticClass:"element-title__meta"},[e._v(" (Draft) ")]):e._e(),e.isShowingIdsInStructurePanel&&!e.editingFriendlyName?t("span",{staticClass:"element-title__meta"},[e._v(" #"+e._s(e.element.id)+" ")]):e._e()]),e.editingFriendlyName?e._e():t("div",{staticClass:"structure-node-actions__wrapper"},[t("Icon",{staticClass:"structure-node-action__icon mr-2",attrs:{size:"12",icon:"breakdance"===e.builderMode?"BarsIcon":"GripDotsVerticalIcon",title:"Open menu"},on:{click:e.showContextMenu}}),t("Icon",{staticClass:"structure-node-action__icon mr-2",attrs:{icon:"breakdance"===e.builderMode?"DuplicateIcon":"DuplicateSolidIcon",title:"Duplicate element"},on:{click:e.duplicate}}),t("Icon",{staticClass:"structure-node-action__icon mr-2",attrs:{size:"12",icon:"breakdance"===e.builderMode?"TrashIcon":"TrashSolidIcon",title:"Delete element"},on:{click:e.remove}})],1)],1)])]),t("div",{staticClass:"nest-deeper",style:e.nestDeeperStyle,attrs:{"data-element-id":e.element.id}}),t("div",{staticClass:"nest-shallower",style:e.nestShallowerStyle,attrs:{"data-element-id":e.element.id}}),t("div",{staticClass:"top-half",attrs:{"data-element-id":e.element.id,"data-depth":e.depth}}),t("div",{staticClass:"bottom-half",attrs:{"data-element-id":e.element.id,"data-depth":e.depth}})]),e.shouldShowChildrenNodes?t("ChildStructureNodes",{attrs:{nodes:e.element.children,depth:e.depth+1}}):e._e()],1)},c=[],d=n(27361),u=n.n(d),p=n(85450),h=n(23128),g=n(85283),m=n(78),v=n(95690),y=n(98992),f=n(94550),_=n(34676),b=n(20210),S=n(21115);const C=16;let x=class extends a.ZP{constructor(){super(...arguments),this.showElementNameFallback=!0,this.editingFriendlyName=!1}get builderMode(){return p.configStore.builderMode}get indentAsCssVariableStyle(){return{"--indent-amount":this.depth*C+"px"}}get shouldShowChildrenNodes(){return(0,y.sF)(this.element.id)}beforeCreate(){this.$options.components.ChildStructureNodes=n(71600).Z}activateElement(){p.uiStore.activateElement(this.element.id),(0,v.iN)("elementproperties")!==(0,v.iN)("structure")&&(0,v.oM)("elementproperties")}get baseElement(){return p.configStore.element(this.element.data.type)}get activeClass(){return{"breakdance--active-element":p.uiStore.activeElementId===this.element.id}}get indentStyle(){const e=this.depth*C;return{marginLeft:`${e}px`,width:`calc(100% - 1px - ${e}px`}}get nestDeeperStyle(){const e=(this.depth+1)*C;return{left:`${e}px`}}get nestShallowerStyle(){const e=this.depth*C;return{width:`${e}px`}}get elementName(){return p.configStore.element(this.element.data.type).name}get currentlyDragging(){return p.uiStore.currentlyDraggingCanvasElementId===this.element.id}get isShowingIdsInStructurePanel(){return p.uiStore.settings.showElementIdInStructurePanel}duplicate(){p.documentStore.duplicateElementAndActivateIt(this.element.id)}getElementIcon(e){return(0,b.Ff)(e)}getElementName(e){return(0,b.mH)(e)}showContextMenu(e){const t=(0,S.n)(e.clientX,e.clientY);p.uiStore.setOnStructurePanelRightClickMenuState({elementId:this.element.id,position:t})}remove(){p.documentStore.deleteElement({nodeId:this.element.id})}toggleChildren(){const e=(0,h.Z)(p.uiStore.structurePanelNodesExpandedState);e[this.element.id]=!this.shouldShowChildrenNodes,p.uiStore.setStructurePanelNodesExpandedState(e)}get isDraftSection(){return this.element.data.type===f.SECTION_SLUG&&u()(this.element.data.properties,"settings.advanced.draft")}get friendlyNameInputValue(){return void 0===this.element.data.properties?.meta?.friendlyName&&this.showElementNameFallback?(this.showElementNameFallback=!1,this.elementName):(this.editingFriendlyName&&(this.showElementNameFallback=!1),this.element.data.properties?.meta?.friendlyName&&this.element.data.properties?.meta?.friendlyName.trim())}enableEditingFriendlyName(){this.editingFriendlyName=!0,(0,_.forceNextTick)((()=>{this.$refs.friendlyNameInputRef.focus(),this.$refs.friendlyNameInputRef.select()}))}updateFriendlyName(e){p.documentStore.unthrottledPropertyChanged({elementId:this.element.id,path:"meta.friendlyName",meta:{snapshotLabel:`Updated friendly name for element "${this.elementName}"`},value:e?.trim()||void 0})}disableEditing(){this.editingFriendlyName=!1,this.showElementNameFallback=!0}noop(e){return e.stopPropagation(),{}}};(0,o.gn)([(0,r.fI)()],x.prototype,"element",void 0),(0,o.gn)([(0,r.fI)()],x.prototype,"depth",void 0),x=(0,o.gn)([(0,r.wA)({name:"StructureNode",components:{ElementIcon:m.Z,Icon:g.Z}})],x);const w=x,I=w;var P=n(1001),k=(0,P.Z)(I,l,c,!1,null,null,null);const E=k.exports;let T=class extends a.ZP{};(0,o.gn)([(0,r.fI)()],T.prototype,"nodes",void 0),(0,o.gn)([(0,r.fI)()],T.prototype,"depth",void 0),T=(0,o.gn)([(0,r.wA)({components:{StructureNode:E},name:"ChildStructureNodes"})],T);const D=T,A=D;var Z=(0,P.Z)(A,s,i,!1,null,null,null);const O=Z.exports},95324:(e,t,n)=>{n.r(t),n.d(t,{default:()=>hs});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-control",class:{[`oxy-control--${e.control.type}`]:!0,[`oxy-control--${e.control.positionLabel}`]:e.control.positionLabel,["oxy-control--hide-label"]:e.control.hideLabel,["oxy-control--disabled"]:e.disabled,["is-filled"]:e.filled},style:{gridColumnStart:e.control.width?`span ${e.control.width}`:""},attrs:{"data-name":e.control.slug}},[e.showLabel?t("OxygenControlName",{attrs:{filled:e.filled,path:e.fullPath,"apply-fill-class":!1},on:{reset:e.resetControl}},[e._v(" "+e._s(e.control.name)+" ")]):e._e(),e.isVariableSupported?t("VariableBoundInput",{attrs:{name:e.control.name,"color-type":e.control.colorType,type:e.variableType,small:!0,path:e.fullPath},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}},[t(e.componentName,{tag:"component",attrs:{control:e.control,path:e.fullPath,context:e.context,placeholder:e.placeholder},on:{"update-context":function(t){return e.$emit("update-context",t)}},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1):t(e.componentName,{tag:"component",attrs:{control:e.control,path:e.fullPath,context:e.context,placeholder:e.placeholder},on:{"update-context":function(t){return e.$emit("update-context",t)}},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},i=[],o=n(70655),a=n(38085),r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-gap-input",class:{"oxy-gap-input--expand":e.isGlobalVariable&&!e.bothSides}},[e.bothSides?[t("OxygenControl",{staticClass:"oxy-gap-input__unit",attrs:{value:e.syncedValue?.row,control:e.rowControl,path:e.path},on:{input:e.updateRow}}),t("OxygenControl",{staticClass:"oxy-gap-input__unit",attrs:{value:e.syncedValue?.column,control:e.columnControl,path:e.path},on:{input:e.updateColumn}})]:[e.isGlobalVariable?e._e():t("div",[t("Slider",{attrs:{value:e.syncedValue?.column?.number,min:0,max:100,step:1,expanded:!0},on:{input:e.updateSlider}})],1),t("OxygenControl",{staticClass:"oxy-gap-input__unit",attrs:{value:e.syncedValue?.column,control:e.allUnitControls,path:e.path},on:{input:e.updateAllSides}})],t("Icon",{staticClass:"oxy-gap-input__toggle",attrs:{icon:e.bothSides?"UnlockIcon":"LockIcon"},on:{click:function(t){e.bothSides=!e.bothSides}}})],2)},l=[],c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-unit-input"},[t("UnitInput",{attrs:{options:e.options,"range-options":e.rangeOptions,placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},d=[],u=n(56823);let p=class extends a.w3{get options(){return{defaultType:this.control.defaultType,types:this.control.types}}get rangeOptions(){return{min:this.control.min,max:this.control.max,step:this.control.step}}};(0,o.gn)([(0,a.fI)()],p.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],p.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],p.prototype,"placeholder",void 0),p=(0,o.gn)([(0,a.wA)({components:{UnitInput:u.Z}})],p);const h=p,g=h;var m=n(1001),v=(0,m.Z)(g,c,d,!1,null,null,null);const y=v.exports;var f=n(85283),_=n(22608),b=n(74799),S=n(42274),C=n(90889),x=n(37156);let w=class extends a.w3{constructor(){super(...arguments),this.bothSides=!1}get isGlobalVariable(){return(0,C.Hk)(this.syncedValue?.column)||(0,C.Hk)(this.syncedValue?.row)}beforeCreate(){this.$options.components.OxygenControl=n(95324)["default"]}onBothSidesChange(){this.bothSides&&(this.syncedValue={row:this.syncedValue?.column,column:this.syncedValue?.column})}get inheritance(){return this.context.getControlInheritanceByPrefix(this.path)}getPlaceholder(e){const t=this.inheritance?.[e];if((0,x.a0)(t))return t.value}get allUnitControls(){return{type:"unit",name:"Gap",slug:"unit",hideLabel:!0,placeholder:this.getPlaceholder("column")}}get rowControl(){return{type:"unit",name:"Row",slug:"row",positionLabel:"bottom",placeholder:this.getPlaceholder("row")}}get columnControl(){return{type:"unit",name:"Column",slug:"column",positionLabel:"bottom",placeholder:this.getPlaceholder("column")}}updateSlider(e){const t=this.syncedValue?.column?.unit||"px",n=(0,S.r)(e,t)||"",s={number:e,unit:t,style:`${n}`};this.syncedValue={column:s,row:s}}updateAllSides(e){this.syncedValue={column:e,row:e}}updateRow(e){this.syncedValue={column:this.syncedValue?.column,row:e}}updateColumn(e){this.syncedValue={row:this.syncedValue?.row,column:e}}};(0,o.gn)([(0,a.fI)()],w.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],w.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],w.prototype,"path",void 0),(0,o.gn)([(0,a.tB)({from:"oxyContext"})],w.prototype,"context",void 0),(0,o.gn)([(0,a.RL)("bothSides")],w.prototype,"onBothSidesChange",null),w=(0,o.gn)([(0,a.wA)({components:{Icon:f.Z,Slider:b.Z,IconButton:_.Z,OxygenUnitInput:y}})],w);const I=w,P=I;var k=(0,m.Z)(P,r,l,!1,null,null,null);const E=k.exports;var T=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-font-input"},[t("FontFamilyInput",{attrs:{placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},D=[],A=n(40616);let Z=class extends a.w3{};(0,o.gn)([(0,a.fI)()],Z.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input",{type:String})],Z.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],Z.prototype,"placeholder",void 0),Z=(0,o.gn)([(0,a.wA)({components:{FontFamilyInput:A.Z}})],Z);const O=Z,M=O;var B=(0,m.Z)(M,T,D,!1,null,null,null);const L=B.exports;var N=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-group",style:e.style},[t("OxygenControls",{attrs:{controls:e.control.controls,path:e.path},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},F=[];let R=class extends a.w3{beforeCreate(){this.$options.components.OxygenControls=n(82078).Z}get style(){return this.control.columns?{"--controls-columns":this.control.columns}:{}}};(0,o.gn)([(0,a.fI)()],R.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],R.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],R.prototype,"path",void 0),R=(0,o.gn)([(0,a.wA)({components:{Icon:f.Z}})],R);const V=R,$=V;var W=(0,m.Z)($,N,F,!1,null,null,null);const U=W.exports;var z=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-color-input"},[t("ColorInput",{attrs:{"color-options":e.options,inline:e.control.inline,"show-input":!e.control.inline,small:!0,position:"left","show-global":!1,placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},H=[],G=n(71821),K=n(74142);let j=class extends a.w3{get options(){return{type:this.control?.colorType||"solidOnly"}}};(0,o.gn)([(0,a.fI)()],j.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],j.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],j.prototype,"placeholder",void 0),j=(0,o.gn)([(0,a.wA)({components:{ColorPicker:K.Z,ColorInput:G.Z}})],j);const q=j,X=q;var Y=(0,m.Z)(X,z,H,!1,null,null,null);const Q=Y.exports;var J=n(53204),ee=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"container",staticClass:"oxy-margin-padding-input",class:{["oxy-margin-padding-input--disable-margin"]:"padding"===e.draggingType,["oxy-margin-padding-input--disable-padding"]:"margin"===e.draggingType},on:{mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave}},[t("div",{staticClass:"oxy-margin-oxy-padding-drag-bars-wrapper"},[t("div",{staticClass:"oxy-margin-drag-bars"},[t("span",{staticClass:"oxy-margin-label"},[e._v(e._s(e.__("Margin")))]),e._l(e.sides,(function(n){return t("MarginPaddingInputDragBar",{key:`margin-${n}`,attrs:{value:e.value?.margin?.[n],type:"margin",side:n,path:e.path,active:e.isSideActive("margin",n),placeholder:e.getPlaceholder("margin",n),"is-inheriting":e.isInheriting("margin",n),"is-overwritten":e.isOverwritten("margin",n)},on:{input:function(t){return e.updateProperty("margin",n,t)},mouseenter:function(t){return e.setHoveredType("margin",n)},dragging:function(t){return e.setDragging(t,"margin")}}})}))],2),t("div",{staticClass:"oxy-padding-drag-bars",on:{mouseenter:function(t){return e.setHoveredType("padding")}}},[t("span",{staticClass:"oxy-margin-label"},[e._v(e._s(e.__("Padding")))]),e._l(e.sides,(function(n){return t("MarginPaddingInputDragBar",{key:`padding-${n}`,attrs:{value:e.value?.padding?.[n],type:"padding",side:n,path:e.path,active:e.isSideActive("padding",n),placeholder:e.getPlaceholder("padding",n),"is-inheriting":e.isInheriting("padding",n),"is-overwritten":e.isOverwritten("padding",n)},on:{input:function(t){return e.updateProperty("padding",n,t)},mouseenter:function(t){return e.setHoveredType("padding",n)},dragging:function(t){return e.setDragging(t,"padding")}}})}))],2)])])},te=[],ne=n(20144),se=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dropdown",{attrs:{"max-width":e.width,"min-width":e.width,transition:!1,absolute:!0,"position-y":e.menuPosition.y,"position-x":e.menuPosition.x,"close-on-content-click":!1,"content-class":"margin-padding-input-dropdown"},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",{ref:"activator",class:e.classList,on:{mousedown:e.dragStart,mouseenter:function(t){return e.$emit("mouseenter",t)},dblclick:function(t){return t.stopPropagation(),e.handleDoubleClick.apply(null,arguments)}}},[t("div",e._g(e._b({staticClass:"margin-padding-input-drag-bar-click-area"},"div",s,!1),n),[t("oxygen-display-value",{staticClass:"margin-padding-input-drag-bar-value",attrs:{"is-filled":!!e.value,"is-inheriting":e.isInheriting,"is-overwritten":e.isOverwritten,"is-variable":e.isGlobalVariable}},[e._v(" "+e._s(e.displayValue)+" ")])],1)])]}}]),model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[t("div",{ref:"container",staticClass:"margin-padding-input-dropdown__content"},[t("OxygenControl",{attrs:{control:e.dropdownUnitControl,value:e.value,path:`${e.path}.${e.type}`},on:{input:function(t){return e.$emit("input",{value:t,modifierKey:e.dropdownModifierKey})}}}),t("div",{staticClass:"margin-padding-input-presets"},e._l(e.modifiers,(function(n){return t("button",{key:n.value,staticClass:"margin-padding-input-preset",class:{"margin-padding-input-preset--active":e.dropdownModifier===n.value},attrs:{type:"button"},on:{click:function(t){return e.setDropdownModifier(n.value)}}},[e._v(" "+e._s(n.label)+" ")])})),0)],1)])},ie=[],oe=n(23493),ae=n.n(oe),re=n(15133),le=n(12721),ce=n(85450),de=n(95690),ue=n(79333),pe=n(16980),he=n(36055);let ge=class extends ne.ZP{constructor(){super(...arguments),this.open=!1,this.mouseDragInfo=!1,this.numberWhenDragStarted=!1,this.dropdownModifier="",this.easyEvent=new le.hF,this.transitionKey=void 0,this.throttledDragging=ae()(this.dragging,60),this.menuPosition={x:0,y:0}}onOpenChange(){this.updateMenuPosition(),this.open?(ce.uiStore.setPanelState({...ce.uiStore.panelState,oxyPanelIsMasked:!0}),this.$nextTick((()=>{this.focusOnInput()}))):ce.uiStore.setPanelState({...ce.uiStore.panelState,oxyPanelIsMasked:!1})}onValueChange(){this.updateMenuPosition(),"center_horizontally"===this.dropdownModifier&&"auto"!==this.value?.unit&&(this.dropdownModifier="")}get dropdownUnitControl(){return{type:"unit",name:`${this.type}-${this.side}`,slug:this.side}}get displayValue(){const e=this.placeholder?this.placeholder:this.value;return this.isGlobalVariable?this.shorten(this.variableLabel):0!==e?.number&&e?"custom"===e?.unit?this.shorten(e.number):this.shorten(e?.style):"0"}get isGlobalVariable(){return(0,C.Hk)(this.value)}get variable(){return(0,C.X_)(this.value)}get overrideVariable(){return(0,C.jN)().find((e=>e.id===this.variable?.id))}get variableLabel(){return this.overrideVariable?this.overrideVariable.label:this.variable?.label}get modifiers(){const e=[{value:"apply_all",label:(0,he.__)("Apply all (=)")},{value:"apply_opposite",label:(0,he.__)("Apply opposite")},{value:"center_horizontally",label:(0,he.__)("Center horizontally"),type:"margin",sides:["left","right"]}];return e.filter((({type:e,sides:t})=>(!e||e===this.type)&&!(t&&!t.includes(this.side))))}get width(){return de.eF}get height(){return 43}get classList(){const e="left"===this.side||"right"===this.side;return{"margin-padding-input-drag-bar":!0,[`oxy-drag-cursor oxy-drag-cursor-${this.type}-${this.side}`]:!0,[`${this.type}-${this.side}-drag-bar`]:!0,"margin-padding-input-drag-bar-horizontal":e,"margin-padding-input-drag-bar--active":this.active,"margin-padding-input-drag-bar--placeholder":!!this.placeholder}}get elementId(){return ce.uiStore.activeElementId}dragCallback(e,t){if(!1===this.numberWhenDragStarted)return;const n="top"===this.side||"bottom"===this.side;let s=n?e.totalYChange:e.totalXChange;const i="padding"===this.type&&("right"===this.side||"bottom"===this.side)||"margin"===this.type&&("left"===this.side||"top"===this.side);i&&(s*=-1);const o=this.value?.unit?this.value.unit:"px";let a;["em"].includes(o)?(s/=10,a=Number(+(this.numberWhenDragStarted+s).toFixed(2))):a=+Number(this.numberWhenDragStarted+s).toFixed(0);const r={unit:o,number:a,style:`${a}${o}`};this.$emit("input",{value:r,modifierKey:t.altKey?"alt":t.shiftKey?"shift":void 0,transactionKey:this.transitionKey})}handleDoubleClick(e){this.$emit("input",{value:null,modifierKey:e.altKey?"alt":e.shiftKey?"shift":void 0})}emit(e){this.$emit("input",{value:e})}dragStart(e){e.stopPropagation(),this.transitionKey=`PropertyChange:Spacing:${this.elementId}:${Date.now()}`,this.mouseDragInfo={startX:e.clientX,startY:e.clientY,currentX:e.clientX,currentY:e.clientY,lastXChange:0,lastYChange:0,totalXChange:0,totalYChange:0},this.$emit("dragging",!0),this.easyEvent.on("mousemove",this.throttledDragging),this.easyEvent.on("mouseup",this.dragEnd),this.numberWhenDragStarted=Number.isNaN(Number(this.value?.number))?0:Number(this.value?.number),document.body.classList.add(`oxy-drag-global-cursor-${this.side}`)}dragging(e){e.preventDefault(),e.stopPropagation(),requestAnimationFrame((()=>this._draggingFunc(e)))}dragEnd(e){e.stopPropagation(),this.easyEvent.off("mousemove",this.throttledDragging),this.easyEvent.off("mouseup",this.dragEnd),this.transitionKey=void 0,this.open=!1,this.mouseDragInfo=!1,this.numberWhenDragStarted=!1;const t=this.side;document.body.classList.remove(`oxy-drag-global-cursor-${t}`),this.$emit("dragging",!1)}_draggingFunc(e){if(!this.mouseDragInfo)return;const t=e.clientX,n=e.clientY,s=t-this.mouseDragInfo.startX,i=n-this.mouseDragInfo.startY,o=1,a=Math.abs(s)>o||Math.abs(i)>o;a&&(this.mouseDragInfo={...this.mouseDragInfo,currentX:t,currentY:n,lastXChange:t-this.mouseDragInfo.currentX,lastYChange:n-this.mouseDragInfo.currentY,totalXChange:s,totalYChange:i},this.dragCallback(this.mouseDragInfo,e))}shorten(e){const t=`${e||""}`,n={margin:{top:30,bottom:30,left:5,right:5},padding:{top:6,bottom:16,left:5,right:5}},s=n[this.type][this.side],i=5,o=10;if(s<=o&&s>=i&&t.length>i)return`${t.slice(0,s)}...`;if(t.length<=s)return t;const a=Math.floor((s-3)/2),r=t.substring(0,a),l=t.substring(t.length-a);return`${r}...${l}`}updateMenuPosition(){const e=this.$refs.activator,t=e.getBoundingClientRect();this.menuPosition.x=t.x+(t.width/2-this.width/2),this.menuPosition.y=t.top+(t.height/2-this.height/2)}focusOnInput(){const e=this.$refs.container;setTimeout((()=>{const t=e.querySelector("input");t&&t.focus()}),100)}get dropdownModifierKey(){return"apply_all"===this.dropdownModifier?"shift":"apply_opposite"===this.dropdownModifier||"center_horizontally"===this.dropdownModifier?"alt":void 0}setDropdownModifier(e){if(e===this.dropdownModifier)return void(this.dropdownModifier="");this.dropdownModifier=e;const t={unit:"auto",number:"",style:"auto"},n="center_horizontally"===this.dropdownModifier?t:this.value;this.$emit("input",{value:n,modifierKey:this.dropdownModifierKey})}maybeToggleAll(e){if("="!==e.key)return;const t=this.$refs.container;t&&t.contains(document.activeElement)&&(e.preventDefault(),this.setDropdownModifier("apply_all"))}mounted(){addEventListener("keydown",this.maybeToggleAll)}beforeDestroy(){removeEventListener("keydown",this.maybeToggleAll)}};(0,o.gn)([(0,a.fI)()],ge.prototype,"value",void 0),(0,o.gn)([(0,a.fI)()],ge.prototype,"placeholder",void 0),(0,o.gn)([(0,a.fI)()],ge.prototype,"type",void 0),(0,o.gn)([(0,a.fI)()],ge.prototype,"path",void 0),(0,o.gn)([(0,a.fI)()],ge.prototype,"side",void 0),(0,o.gn)([(0,a.fI)({default:!1})],ge.prototype,"isInheriting",void 0),(0,o.gn)([(0,a.fI)({default:!1})],ge.prototype,"isOverwritten",void 0),(0,o.gn)([(0,a.fI)({default:!1})],ge.prototype,"active",void 0),(0,o.gn)([(0,a.RL)("open")],ge.prototype,"onOpenChange",null),(0,o.gn)([(0,a.RL)("value")],ge.prototype,"onValueChange",null),ge=(0,o.gn)([(0,a.wA)({components:{NiceButton:ue.Z,OxygenDisplayValue:pe.Z,OxygenControl:()=>Promise.resolve().then(n.bind(n,95324)),OxygenUnitInput:y,Dropdown:re.Z}})],ge);const me=ge,ve=me;var ye=(0,m.Z)(ve,se,ie,!1,null,null,null);const fe=ye.exports;let _e=class extends ne.ZP{constructor(){super(...arguments),this.easyEvent=new le.hF,this.modifierKey=null,this.hoveredType=null,this.hoveredSide=null,this.dragging=!1,this.draggingType=null,this.sides=["top","left","right","bottom"]}get inheritance(){return this.context.getControlInheritanceByPrefix(this.path)}updateProperty(e,t,n){let s;const i=n.value;if("padding"===e&&i&&Number(i.number)<0&&(i.number=0,i.style=`${i.number}${i.unit}`),n.modifierKey)if("alt"===n.modifierKey){const n=this.getOppositeSide(t);s={...this.value,[e]:{...this.value?.[e],[t]:i,[n]:i}}}else"shift"===n.modifierKey&&(s={...this.value,[e]:{...this.value?.[e],left:i,right:i,top:i,bottom:i}});else s={...this.value,[e]:{...this.value?.[e],[t]:i}};this.context.setControlValueAt(this.path,ce.uiStore.currentBreakpoint.id,s,n?.transactionKey)}isSideActive(e,t){if("shift"===this.modifierKey&&this.hoveredType===e)return!0;if("alt"===this.modifierKey&&this.hoveredType===e){const e=e=>"top"===e||"bottom"===e,n=e=>"left"===e||"right"===e;if(e(this.hoveredSide))return e(t);if(n(this.hoveredSide))return n(t)}return!1}setHoveredType(e,t){this.hoveredType=e,t&&(this.hoveredSide=t)}setDragging(e,t){e?(this.dragging=!0,this.draggingType=t):(this.dragging=!1,this.draggingType=null)}checkMetaKeys(e){e.altKey?this.modifierKey="alt":e.shiftKey?this.modifierKey="shift":this.modifierKey=null}onMouseEnter(e){this.checkMetaKeys(e),this.easyEvent.on("keyup",this.checkMetaKeys),this.easyEvent.on("keydown",this.checkMetaKeys)}onMouseLeave(){this.dragging||(this.hoveredType=null,this.hoveredSide=null,this.easyEvent.off("keyup",this.checkMetaKeys),this.easyEvent.off("keydown",this.checkMetaKeys))}beforeDestroy(){const e=this.$refs.container;e?.removeEventListener("mouseenter",this.onMouseEnter),e?.removeEventListener("mouseleave",this.onMouseLeave),this.easyEvent.off("keyup",this.checkMetaKeys),this.easyEvent.off("keydown",this.checkMetaKeys)}getOppositeSide(e){return"top"===e?"bottom":"left"===e?"right":"right"===e?"left":"top"}getPlaceholder(e,t){const n=`${e}.${t}`;return this.inheritance&&this.inheritance[n]&&(0,x.a0)(this.inheritance[n])?this.inheritance[n]?.value:null}isInheriting(e,t){const n=`${e}.${t}`;return!!this.inheritance&&(!!this.inheritance[n]&&(0,x.Ms)(this.inheritance[n]))}isOverwritten(e,t){const n=`${e}.${t}`;return!!this.inheritance&&(!!this.inheritance[n]&&(0,x.i7)(this.inheritance[n]))}};(0,o.gn)([(0,a.tB)({from:"oxyContext"})],_e.prototype,"context",void 0),(0,o.gn)([(0,a.fI)()],_e.prototype,"value",void 0),(0,o.gn)([(0,a.fI)()],_e.prototype,"placeholder",void 0),(0,o.gn)([(0,a.fI)()],_e.prototype,"path",void 0),_e=(0,o.gn)([(0,a.wA)({components:{MarginPaddingInputDragBar:fe}})],_e);const be=_e,Se=be;var Ce=(0,m.Z)(Se,ee,te,!1,null,null,null);const xe=Ce.exports;var we=n(70248),Ie=n(61908),Pe=n(11193),ke=n(43432),Ee=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-btn-bar"},[e._l(e.visibleItems,(function(n){return t(ke.Z,{key:n.label,attrs:{text:"Tooltip",bottom:"",disabled:!n?.hideLabel,"open-delay":500},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:i}){return[t("button",e._g(e._b({ref:"items",refInFor:!0,staticClass:"oxy-btn-bar-item",class:{"oxy-btn-bar-item--active":n.value===e.syncedValue},on:{click:function(t){e.syncedValue=n.value}}},"button",i,!1),s),[n.iconHtml?t("span",{domProps:{innerHTML:e._s(n.iconHtml)}}):n.icon?t("Icon",{attrs:{icon:n.icon,size:12}}):e._e(),n?.hideLabel?e._e():t("span",{domProps:{innerHTML:e._s(n.shortLabel||n.label)}})],1)]}}],null,!0)},[t("span",{domProps:{innerHTML:e._s(n.label)}})])})),t("span",{staticClass:"oxy-btn-bar-indicator",class:{"oxy-btn-bar-indicator--placeholder":!e.syncedValue&&e.placeholder},style:e.styles}),e.control.hideAfter&&e.items.length>e.control.hideAfter?t("Dropdown",{attrs:{"offset-y":"","nudge-top":-8},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("button",e._g({staticClass:"oxy-btn-bar-menu"},n),[t("Icon",{attrs:{icon:"EllipsisSolidIcon",size:10}})],1)]}}],null,!1,836075016)},[t(we.Z,{attrs:{dense:""}},e._l(e.hiddenItems,(function(n,s){return t(Ie.Z,{key:s,on:{click:function(t){e.syncedValue=n.value}}},[t(Pe.V9,[e._v(e._s(n.label))])],1)})),1)],1):e._e()],2)},Te=[],De=n(16068),Ae=n(16747);let Ze=class extends a.w3{constructor(){super(...arguments),this.itemX=0,this.itemWidth=null,this.instant=!1}get displayValue(){return void 0!==this.placeholder?this.placeholder:this.syncedValue}get currentIndex(){return this.visibleItems?.findIndex((e=>e.value===this.displayValue))}onValueChange(){this.$nextTick((()=>{this.recalculateIndicator()}))}get items(){return this.control.items?.map(De.Kq)||[]}get visibleItems(){if(this.control.hideAfter){const e=this.items?.slice(0,this.control.hideAfter),t=e?.some((e=>e.value===this.displayValue)),n=this.items?.find((e=>e.value===this.displayValue));return n&&!t?e?.map(((t,s)=>s===e.length-1?{...n}:t)):e}return this.items}get hiddenItems(){const e=this.items?.slice(this.control.hideAfter-1)||[];return e.length>1&&e.push(e.shift()),e}get styles(){return{transition:this.instant?"none":"",transform:`translateX(${this.itemX}px)`,width:this.itemWidth?`${this.itemWidth}px`:"0px"}}recalculateIndicator(e=!1){this.instant=e,this.$nextTick((()=>{const e=this.$refs.items||[];if(-1===this.currentIndex||void 0==this.currentIndex)return void(this.itemWidth=null);const t=e[this.currentIndex];t&&(this.itemX=t.offsetLeft,this.itemWidth=t.offsetWidth)}))}mounted(){this.recalculateIndicator(!0),setTimeout((()=>this.recalculateIndicator(!0)),100)}};(0,o.gn)([(0,a.fI)()],Ze.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],Ze.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],Ze.prototype,"placeholder",void 0),(0,o.gn)([(0,a.RL)("syncedValue")],Ze.prototype,"onValueChange",null),Ze=(0,o.gn)([(0,a.wA)({components:{UnitDropdown:Ae.Z,Dropdown:re.Z,Icon:f.Z}})],Ze);const Oe=Ze,Me=Oe;var Be=(0,m.Z)(Me,Ee,Te,!1,null,null,null);const Le=Be.exports;var Ne=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-accordion"},[t("OxygenCopyPastContextMenu",{attrs:{name:e.control.name,path:e.path},scopedSlots:e._u([{key:"default",fn:function({openContextMenu:n}){return[t("button",{staticClass:"oxy-accordion-name",on:{click:function(t){e.open=!e.open},contextmenu:n}},[e._v(" "+e._s(e.control.name)+" "),e.filled?t("OxyIndicatorLights",{attrs:{"reset-on-click":!1}}):e._e(),t("Icon",{staticClass:"oxy-accordion-arrow",attrs:{icon:e.open?"ChevronDownIcon":"ChevronRightIcon",size:10}})],1)]}}]),model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}}),e.open?t("div",{staticClass:"oxy-accordion-content"},[t("OxygenControls",{attrs:{controls:e.filteredControls,path:e.fullPath},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}}),e.control.hideAfter?t("NiceButton",{staticClass:"mt-3",attrs:{expanded:!0,size:"small"},on:{click:function(t){e.showAll=!e.showAll}}},[e.showAll?t("Icon",{attrs:{icon:"ChevronDownSolidIcon",rotate:"180"}}):t("Icon",{attrs:{icon:"EllipsisSolidIcon"}})],1):e._e()],1):e._e()],1)},Fe=[],Re=n(47256),Ve=n(92221),$e=n(87459);let We=class extends a.w3{constructor(){super(...arguments),this.open=!1,this.showAll=!1}onControlChange(){this.open=this.control.open||!1}beforeCreate(){this.$options.components.OxygenControls=n(82078).Z}get fullPath(){return`${this.path}`}get filled(){return(0,Re.vr)(this.syncedValue)}get filteredControls(){const e=this.control.hideAfter;return e&&!this.showAll?this.control.controls?.slice(0,e):this.control.controls}};(0,o.gn)([(0,a.fI)()],We.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],We.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],We.prototype,"path",void 0),(0,o.gn)([(0,a.RL)("control",{immediate:!0,deep:!0})],We.prototype,"onControlChange",null),We=(0,o.gn)([(0,a.wA)({components:{OxygenCopyPastContextMenu:$e.Z,OxyIndicatorLights:Ve.Z,NiceButton:ue.Z,Icon:f.Z}})],We);const Ue=We,ze=Ue;var He=(0,m.Z)(ze,Ne,Fe,!1,null,null,null);const Ge=He.exports;var Ke=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-number-input"},[t("NumberInput",{attrs:{"range-options":e.rangeOptions,arrows:e.arrows,placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},je=[],qe=n(23267);let Xe=class extends a.w3{get rangeOptions(){return{min:this.control.min,max:this.control.max,step:this.control.step}}get arrows(){return!1!==this.control.arrows}};(0,o.gn)([(0,a.fI)()],Xe.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input",{type:Number})],Xe.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],Xe.prototype,"placeholder",void 0),Xe=(0,o.gn)([(0,a.wA)({components:{NumberInput:qe.Z,UnitInput:u.Z}})],Xe);const Ye=Xe,Qe=Ye;var Je=(0,m.Z)(Qe,Ke,je,!1,null,null,null);const et=Je.exports;var tt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-text-input"},[t("TextInput",{attrs:{placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},nt=[],st=n(41571);let it=class extends a.w3{};(0,o.gn)([(0,a.fI)()],it.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input",{type:String})],it.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],it.prototype,"placeholder",void 0),it=(0,o.gn)([(0,a.wA)({components:{TextInput:st.Z}})],it);const ot=it,at=ot;var rt=(0,m.Z)(at,tt,nt,!1,null,null,null);const lt=rt.exports;var ct=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-code-input"},[t("CodeInput",{attrs:{language:e.control.language,"autofill-on-empty":e.control.autofillOnEmpty,placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},dt=[],ut=n(81252);let pt=class extends a.w3{};(0,o.gn)([(0,a.fI)()],pt.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input",{type:String})],pt.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],pt.prototype,"placeholder",void 0),pt=(0,o.gn)([(0,a.wA)({components:{CodeInput:ut.Z,TextInput:st.Z}})],pt);const ht=pt,gt=ht;var mt=(0,m.Z)(gt,ct,dt,!1,null,null,null);const vt=mt.exports;var yt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-align-input"},[t("AlignGrid",{attrs:{placeholder:e.alignPlaceholder,display:e.display,direction:e.direction},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}}),t("div",{staticClass:"oxy-align-input-controls"},[t("OxygenControl",{attrs:{control:e.primaryControl,value:e.syncedValue[e.primaryControl.slug],path:e.path},on:{input:function(t){return e.updateInnerValue(e.primaryControl.slug,t)}}}),t("OxygenControl",{attrs:{control:e.crossControl,value:e.syncedValue[e.crossControl.slug],path:e.path},on:{input:function(t){return e.updateInnerValue(e.crossControl.slug,t)}}})],1)],1)},ft=[],_t=n(36968),bt=n.n(_t),St=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-align-grid-container",class:{"oxy-align-grid--placeholder":!!e.placeholder}},[t("div",{staticClass:"oxy-align-grid"},e._l(e.gridOptions,(function([n,s],i){return t("span",{key:i,staticClass:"oxy-align-grid-point",on:{click:function(t){return e.setValue(n,s)},dblclick:function(t){return t.stopPropagation(),e.onDoubleClick(n,s)},mouseenter:function(t){return e.onDotEnter(n,s)},mouseleave:e.onDotLeave}},[e.isDotVisible(n,s)?t("span",{staticClass:"oxy-align-grid-point-dot"}):e._e()])})),0),e.internalValue.primary_axis||e.internalValue.cross_axis?t("AlignGridIndicator",{attrs:{display:e.display,direction:e.direction,x:e.internalValue.primary_axis,y:e.internalValue.cross_axis}}):e._e(),e.showHoverIndicator?t("AlignGridIndicator",{attrs:{display:e.display,direction:e.direction,x:e.hoverIndicatorX,y:e.hoverIndicatorY,hover:!0}}):e._e()],1)},Ct=[],xt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-align-grid-overlay",class:{"oxy-align-grid-overlay--hover":e.hover},style:{flexFlow:e.direction,justifyContent:e.x,alignItems:e.y}},[t("div",{staticClass:"oxy-align-grid-indicator",class:{[`oxy-align-grid-indicator--${e.display}`]:!0,[`oxy-align-grid-indicator--${e.direction}`]:!0,[`oxy-align-grid-indicator--primary-axis-${e.x}`]:!0,[`oxy-align-grid-indicator--cross-axis-${e.y}`]:!0},style:{flexFlow:e.direction,alignItems:e.y,justifyContent:e.x}},["baseline"===e.y?t("div",{staticClass:"oxy-align-grid-indicator-baseline"},[e._v(" A "),t("Icon",{attrs:{icon:"ArrowDownIcon",size:10}})],1):[t("span"),t("span"),t("span"),t("span"),t("span")]],2)])},wt=[];let It=class extends a.w3{};(0,o.gn)([(0,a.fI)()],It.prototype,"display",void 0),(0,o.gn)([(0,a.fI)()],It.prototype,"direction",void 0),(0,o.gn)([(0,a.fI)()],It.prototype,"x",void 0),(0,o.gn)([(0,a.fI)()],It.prototype,"y",void 0),(0,o.gn)([(0,a.fI)()],It.prototype,"hover",void 0),It=(0,o.gn)([(0,a.wA)({components:{Icon:f.Z}})],It);const Pt=It,kt=Pt;var Et=(0,m.Z)(kt,xt,wt,!1,null,null,null);const Tt=Et.exports;let Dt=class extends a.w3{constructor(){super(...arguments),this.shiftKey=!1,this.altKey=!1,this.columnOptions=[["start","start"],["center","start"],["end","start"],["start","center"],["center","center"],["end","center"],["start","end"],["center","end"],["end","end"]],this.rowOptions=[["start","start"],["start","center"],["start","end"],["center","start"],["center","center"],["center","end"],["end","start"],["end","center"],["end","end"]],this.hoveredValue={primary_axis:null,cross_axis:null}}get internalValue(){return this.placeholder?this.placeholder:this.syncedValue}get invert(){return["row","wrap"].includes(this.direction)}get isFlex(){return["flex","inline-flex"].includes(this.display)}get isGrid(){return["grid","inline-grid"].includes(this.display)}get gridOptions(){return this.invert?this.columnOptions:this.rowOptions}get showHoverIndicator(){const{primary_axis:e,cross_axis:t}=this.internalValue,{primary_axis:n,cross_axis:s}=this.hoveredValue;if(e===this.hoverIndicatorX&&"stretch"===this.hoverIndicatorY)return!0;if("space-between"===e&&"stretch"===t)return!1;const i=n&&s,o=this.hoverIndicatorX!==e||s!==t,a=!(this.isDistributionAlignment(e)&&s===t);return i&&o&&a}get hoverIndicatorX(){return this.isFlex&&(this.shiftKey||"space-between"===this.internalValue.primary_axis)?"space-between":this.hoveredValue.primary_axis}get hoverIndicatorY(){return this.altKey||"stretch"===this.internalValue.cross_axis?"stretch":this.hoveredValue.cross_axis}isDistributionAlignment(e){return["space-between","space-around"].includes(e)}setValue(e,t){this.shiftKey&&this.isFlex?this.syncedValue.primary_axis="space-between":this.isDistributionAlignment(this.internalValue.primary_axis)||(this.syncedValue.primary_axis=e),this.altKey?this.syncedValue.cross_axis="stretch":"stretch"!==this.internalValue.cross_axis&&(this.syncedValue.cross_axis=t),this.syncedValue={...this.syncedValue}}onDoubleClick(e,t){const n=this.isFlex?"space-between":"stretch";this.internalValue.primary_axis===n?this.syncedValue.primary_axis=e:this.internalValue.primary_axis=n,"stretch"===this.internalValue.cross_axis&&(this.syncedValue.cross_axis=t),this.syncedValue={...this.syncedValue}}onKeyDown(e){this.shiftKey=e.shiftKey,this.altKey=e.altKey}onDotEnter(e,t){this.hoveredValue={primary_axis:e,cross_axis:t}}onDotLeave(){this.hoveredValue={primary_axis:null,cross_axis:null}}resetKeysOnTabOut(){this.shiftKey=!1,this.altKey=!1}isDotVisible(e,t){const{primary_axis:n,cross_axis:s}=this.internalValue,i=this.hoveredValue.primary_axis,o=this.hoveredValue.cross_axis;return("space-between"!==n||"stretch"!==s)&&(!("space-between"===n&&t===s||"space-between"===this.hoverIndicatorX&&t===o)&&((e!==n||t!==s)&&(e!==i||t!==o)))}mounted(){window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyDown),document.addEventListener("visibilitychange",this.resetKeysOnTabOut)}beforeDestroy(){window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyDown),document.removeEventListener("visibilitychange",this.resetKeysOnTabOut)}};(0,o.gn)([(0,a.yU)("value","input",{default:()=>({primary_axis:null,cross_axis:null})})],Dt.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],Dt.prototype,"placeholder",void 0),(0,o.gn)([(0,a.fI)()],Dt.prototype,"display",void 0),(0,o.gn)([(0,a.fI)()],Dt.prototype,"direction",void 0),Dt=(0,o.gn)([(0,a.wA)({components:{AlignGridIndicator:Tt}})],Dt);const At=Dt,Zt=At;var Ot=(0,m.Z)(Zt,St,Ct,!1,null,null,null);const Mt=Ot.exports;var Bt=n(31044);let Lt=class extends a.w3{constructor(){super(...arguments),this.verticalAlignment=[{value:"start",label:(0,he.__)("Left")},{value:"center",label:(0,he.__)("Center")},{value:"end",label:(0,he.__)("Right")}],this.horizontalAlignment=[{value:"start",label:(0,he.__)("Top")},{value:"center",label:(0,he.__)("Center")},{value:"end",label:(0,he.__)("Bottom")}],this.positionAlignment=[{value:"stretch",label:(0,he.__)("Stretch")},{value:"baseline",label:(0,he.__)("Baseline")}],this.distributionAlignment=[{value:"space-between",label:(0,he.__)("Space Between")},{value:"space-around",label:(0,he.__)("Space Around")}]}beforeCreate(){this.$options.components.OxygenControl=n(95324)["default"]}get parentInheritance(){return this.context.getParentControlInheritance(this.path)}get alignPlaceholder(){const e=this.isGrid?"grid_align":"flex_align",t=this.parentInheritance?.[`${e}.primary_axis`],n=this.parentInheritance?.[`${e}.cross_axis`],s={};return(0,x.a0)(t)&&(s["primary_axis"]=t.value),(0,x.a0)(n)&&(s["cross_axis"]=n.value),0===Object.keys(s).length?null:s}get layout(){const e=this.parentInheritance;return{display:e?.display?.value,flex_direction:e?.flex_direction?.value}}get breakpoint(){return Bt.kD.currentBreakpoint.id}get display(){return this.layout?.display||"flex"}get direction(){return this.isGrid?"column":this.layout?.flex_direction||"row"}get isGrid(){return["grid","inline-grid"].includes(this.display)}get isFlex(){return["flex","inline-flex"].includes(this.display)}get isFlexRow(){return this.isFlex&&["row","wrap"].includes(this.direction)}get primaryControl(){const e=this.isFlexRow?[...this.verticalAlignment,...this.distributionAlignment]:[...this.verticalAlignment,...this.positionAlignment],t=this.isFlexRow?"primary_axis":"cross_axis",n={slug:t,name:"X",type:"select",forcePlaceholder:!0,items:e},s=(0,x.oO)(n,this.alignPlaceholder?.primary_axis),i=(0,x.oO)(n,this.alignPlaceholder?.cross_axis);return n.placeholder=this.isFlexRow?s:i,n}get crossControl(){const e=this.isFlexRow||this.isGrid,t=e?[...this.horizontalAlignment,...this.positionAlignment]:[...this.horizontalAlignment,...this.distributionAlignment],n=this.isFlexRow?"cross_axis":"primary_axis",s={slug:n,name:"Y",type:"select",forcePlaceholder:!0,items:t},i=(0,x.oO)(s,this.alignPlaceholder?.cross_axis),o=(0,x.oO)(s,this.alignPlaceholder?.primary_axis);return s.placeholder=e?i:o,s}updateInnerValue(e,t){this.syncedValue=bt()(this.syncedValue,e,t)}};(0,o.gn)([(0,a.fI)()],Lt.prototype,"control",void 0),(0,o.gn)([(0,a.fI)()],Lt.prototype,"path",void 0),(0,o.gn)([(0,a.yU)("value","input",{default:()=>({})})],Lt.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.tB)({from:"oxyContext"})],Lt.prototype,"context",void 0),Lt=(0,o.gn)([(0,a.wA)({components:{AlignGrid:Mt}})],Lt);const Nt=Lt,Ft=Nt;var Rt=(0,m.Z)(Ft,yt,ft,!1,null,null,null);const Vt=Rt.exports;var $t=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-border-input"},[t("BorderComplex",{attrs:{"accepts-variable":!0,placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},Wt=[],Ut=n(50219);let zt=class extends a.w3{};(0,o.gn)([(0,a.fI)()],zt.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],zt.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],zt.prototype,"placeholder",void 0),zt=(0,o.gn)([(0,a.wA)({components:{BorderComplex:Ut.Z}})],zt);const Ht=zt,Gt=Ht;var Kt=(0,m.Z)(Gt,$t,Wt,!1,null,null,null);const jt=Kt.exports;var qt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-border-radius-input"},[t("BorderRadius",{attrs:{"accepts-variable":!0,placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},Xt=[],Yt=n(41779);let Qt=class extends a.w3{};(0,o.gn)([(0,a.fI)()],Qt.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],Qt.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],Qt.prototype,"placeholder",void 0),Qt=(0,o.gn)([(0,a.wA)({components:{BorderRadius:Yt.Z,BorderComplex:Ut.Z}})],Qt);const Jt=Qt,en=Jt;var tn=(0,m.Z)(en,qt,Xt,!1,null,"07947be6",null);const nn=tn.exports;var sn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-text-input"},[t("FocusPointInput",{attrs:{options:{gridMode:!0},placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},on=[],an=n(6308);let rn=class extends a.w3{};(0,o.gn)([(0,a.fI)()],rn.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input",{type:Object})],rn.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],rn.prototype,"placeholder",void 0),rn=(0,o.gn)([(0,a.wA)({components:{FocusPointInput:an.Z,TextInput:st.Z}})],rn);const ln=rn,cn=ln;var dn=(0,m.Z)(cn,sn,on,!1,null,null,null);const un=dn.exports;var pn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-repeater-input"},[t("Repeater",{attrs:{control:{options:{repeaterOptions:e.options}}},scopedSlots:e._u([{key:"default",fn:function({value:n,index:s}){return[t("OxygenControls",{attrs:{controls:e.getItemControls(s),value:n,path:`${e.path}[${s}]`},on:{input:function(t){return e.updateItem(t,s)}}})]}}]),model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},hn=[],gn=n(62485),mn=n(23128),vn=n(59810);let yn=class extends ne.ZP{beforeCreate(){this.$options.components.OxygenControls=n(82078).Z}get isDisabled(){return""}get options(){return{popupMode:!0,itemIcon:this.control.itemIcon,itemColorPath:this.control.itemColorPath,titleTemplate:this.control.titleTemplate,defaultTitle:this.control.defaultTitle,buttonName:this.control.buttonName,defaultNewValue:this.control.defaultNewValue,duplicateNewValue:this.control.duplicateNewValue,deleteText:this.control.deleteText,noDuplicate:this.control.noDuplicate,noDisable:this.control.noDisable,noDataMessage:this.control.noDataMessage,noExpand:this.control.noExpand}}updateItem(e,t){const n=(0,mn.Z)(this.syncedValue)||[];n[t]=e,this.$emit("input",n)}getItemControls(e){const t=this.control.controls.map((t=>{const n=(0,vn.C8)(t.conditions,e);return{...t,conditions:n}}));return t}};(0,o.gn)([(0,a.fI)()],yn.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],yn.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],yn.prototype,"path",void 0),yn=(0,o.gn)([(0,a.wA)({components:{Repeater:gn.Z}})],yn);const fn=yn,_n=fn;var bn=(0,m.Z)(_n,pn,hn,!1,null,null,null);const Sn=bn.exports;var Cn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-media-input"},[t("WPMediaInput",{attrs:{placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},xn=[],wn=n(19499);let In=class extends a.w3{};(0,o.gn)([(0,a.fI)()],In.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],In.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],In.prototype,"placeholder",void 0),In=(0,o.gn)([(0,a.wA)({components:{WPMediaInput:wn.Z,TextInput:st.Z}})],In);const Pn=In,kn=Pn;var En=(0,m.Z)(kn,Cn,xn,!1,null,null,null);const Tn=En.exports;var Dn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VideoInput",{attrs:{placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})},An=[],Zn=n(70504);let On=class extends a.w3{};(0,o.gn)([(0,a.fI)()],On.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],On.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],On.prototype,"placeholder",void 0),On=(0,o.gn)([(0,a.wA)({components:{VideoInput:Zn.Z}})],On);const Mn=On,Bn=Mn;var Ln=(0,m.Z)(Bn,Dn,An,!1,null,"9ebe081c",null);const Nn=Ln.exports;var Fn=n(71657),Rn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("MediaSizeInput",{attrs:{"raw-image":e.image,placeholder:e.placeholder},on:{"update-image":e.updateImage},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})},Vn=[],$n=n(61332);let Wn=class extends a.w3{get breakpoint(){return Bt.kD.currentBreakpoint.id}get background(){return this.context.getParentControlValueAt(this.path,this.breakpoint)}get image(){return this.background?.[this.imagePath]}get imagePath(){return this.control.imagePath||"image"}updateImage(e){const t=this.path.split(".").slice(0,-1).join("."),n=`${t}.${this.imagePath}`;this.context.setControlValueAt(n,this.breakpoint,e)}};(0,o.gn)([(0,a.fI)()],Wn.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],Wn.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],Wn.prototype,"placeholder",void 0),(0,o.gn)([(0,a.tB)({from:"oxyContext"})],Wn.prototype,"context",void 0),(0,o.gn)([(0,a.fI)()],Wn.prototype,"path",void 0),Wn=(0,o.gn)([(0,a.wA)({components:{MediaSizeInput:$n.Z}})],Wn);const Un=Wn,zn=Un;var Hn=(0,m.Z)(zn,Rn,Vn,!1,null,"f3e54ade",null);const Gn=Hn.exports;var Kn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(ke.Z,{attrs:{"content-class":"oxy-tooltip",bottom:"","open-delay":500,transition:"0"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("button",e._g({staticClass:"oxy-button-input",class:{"oxy-button-input--true":e.syncedValue,"oxy-button-input--false":!e.syncedValue,"oxy-button-input--disabled":e.control.disabled},on:{click:function(t){e.syncedValue=!e.syncedValue}}},n),[e.control.icon?t("Icon",{attrs:{icon:e.control.icon}}):e._e(),e.control.hideButtonLabel?e._e():t("span",[e._v(" "+e._s(e.syncedValue?e.control.trueValue:e.control.falseValue)+" ")])],1)]}}])},[t("span",[e._v(e._s(e.control.name))])])},jn=[];let qn=class extends a.w3{};(0,o.gn)([(0,a.fI)()],qn.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input",{type:Boolean})],qn.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],qn.prototype,"placeholder",void 0),qn=(0,o.gn)([(0,a.wA)({components:{IconButton:_.Z,Icon:f.Z}})],qn);const Xn=qn,Yn=Xn;var Qn=(0,m.Z)(Yn,Kn,jn,!1,null,null,null);const Jn=Qn.exports;var es=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-variables-input"},[t("OverrideVariablesInput",{model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},ts=[],ns=n(85412);let ss=class extends a.w3{};(0,o.gn)([(0,a.fI)()],ss.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input",{type:Array})],ss.prototype,"syncedValue",void 0),ss=(0,o.gn)([(0,a.wA)({components:{OverrideVariablesInput:ns.Z}})],ss);const is=ss,os=is;var as=(0,m.Z)(os,es,ts,!1,null,null,null);const rs=as.exports;var ls=n(80115);let cs=class extends a.w3{get showLabel(){return!this.control.hideLabel&&!["accordion"].includes(this.control.type)}get filled(){return(0,Re.vr)(this.syncedValue)}get disabled(){return!!this.path&&(!!this.control.disabledConditions&&(0,vn.kq)(this.control.disabledConditions,this.context?.getInheritanceMap?.()))}get isVariableSupported(){return(0,C.lZ)(this.control)}get componentName(){return`oxygen-${this.control.type}-input`}get variableType(){return(0,C.Zp)(this.control)}get fullPath(){return this.path?`${this.path}.${this.control.slug}`:this.control.slug}get inheritance(){return this.context?.getControlInheritance(this.fullPath)}get placeholder(){const e=this.control.forcePlaceholder;if((0,x.a0)(this.inheritance)&&!e){const e=(0,x.oO)(this.control,this.inheritance.value);if(e)return e}return this.control.placeholder}resetControl(){this.syncedValue=void 0}};(0,o.gn)([(0,a.fI)()],cs.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],cs.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],cs.prototype,"path",void 0),(0,o.gn)([(0,a.tB)({from:"oxyContext"})],cs.prototype,"context",void 0),cs=(0,o.gn)([(0,a.wA)({components:{OxygenControlName:ls.Z,OxygenVariablesInput:rs,OxygenGapInput:E,OxygenTextInput:lt,OxygenUnitInput:y,OxygenCodeInput:vt,OxygenGroupInput:U,OxygenAlignInput:Vt,OxygenColorInput:Q,OxygenMediaInput:Tn,OxygenVideoInput:Nn,OxygenSelectInput:J.Z,OxygenNumberInput:et,OxygenBorderInput:jt,OxygenButtonInput:Jn,OxygenSpacingInput:xe,OxygenRepeaterInput:Sn,OxygenButtonBarInput:Le,OxygenAccordionInput:Ge,OxygenFocusPointInput:un,OxygenFontFamilyInput:L,OxygenBorderRadiusInput:nn,OxygenMediaSizeInput:Gn,VariableBoundInput:Fn.Z}})],cs);const ds=cs,us=ds;var ps=(0,m.Z)(us,s,i,!1,null,null,null);const hs=ps.exports},82078:(e,t,n)=>{n.d(t,{Z:()=>m});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-controls",class:{"oxy-controls-root":e.root}},e._l(e.filteredControls,(function(n){return t("OxygenControl",{key:n.slug,attrs:{control:n,path:e.path,value:e.syncedValue?.[n.slug]},on:{input:function(t){return e.updateControlValue(n,t)}}})})),1)},i=[],o=n(70655),a=n(38085),r=n(95324),l=n(23128),c=n(59810);let d=class extends a.w3{get filteredControls(){const e=this.context?.getInheritanceMap?.()||{};return this.controls.filter((t=>(0,c.kq)(t.conditions,e)))}updateControlValue(e,t){const n=(0,l.Z)(this.syncedValue);this.$emit("input",{...n,[e.slug]:t})}updateContext(e){this.$emit("input",e)}};(0,o.gn)([(0,a.fI)({default:()=>[]})],d.prototype,"controls",void 0),(0,o.gn)([(0,a.fI)({default:!1})],d.prototype,"root",void 0),(0,o.gn)([(0,a.fI)()],d.prototype,"path",void 0),(0,o.gn)([(0,a.yU)("value","input")],d.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.tB)({from:"oxyContext",default:null})],d.prototype,"context",void 0),d=(0,o.gn)([(0,a.wA)({components:{OxygenControl:r["default"]}})],d);const u=d,p=u;var h=n(1001),g=(0,h.Z)(p,s,i,!1,null,null,null);const m=g.exports},53204:(e,t,n)=>{n.d(t,{Z:()=>m});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-select-input"},[t("DropdownInput",{attrs:{items:e.items,placeholder:e.placeholder},model:{value:e.syncedValue,callback:function(t){e.syncedValue=t},expression:"syncedValue"}})],1)},i=[],o=n(70655),a=n(38085),r=n(84336),l=n(16068),c=n(85283);let d=class extends a.w3{get items(){return this.control.items?.map(l.Nd)}};(0,o.gn)([(0,a.fI)()],d.prototype,"control",void 0),(0,o.gn)([(0,a.yU)("value","input")],d.prototype,"syncedValue",void 0),(0,o.gn)([(0,a.fI)()],d.prototype,"placeholder",void 0),d=(0,o.gn)([(0,a.wA)({components:{Icon:c.Z,DropdownInput:r.Z}})],d);const u=d,p=u;var h=n(1001),g=(0,h.Z)(p,s,i,!1,null,"087c8b2a",null);const m=g.exports},87459:(e,t,n)=>{n.d(t,{Z:()=>b});var s=n(70248),i=n(61908),o=n(11193),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"copy-paste-context-menu"},[e._t("default",null,{openContextMenu:e.openContextMenu}),t("Dropdown",{attrs:{"position-x":e.contextMenuX,"position-y":e.contextMenuY,absolute:"","offset-y":"","close-on-click":""},model:{value:e.contextMenu,callback:function(t){e.contextMenu=t},expression:"contextMenu"}},[t(s.Z,{ref:"list"},[t(i.Z,{attrs:{dense:"",disabled:!e.canCopy},on:{click:e.copyData}},[t(o.V9,[e._v(" "+e._s(e.__("Copy"))+" "),e.name?t("em",[e._v(e._s(e.name))]):e._e()])],1),t(i.Z,{attrs:{dense:"",disabled:!e.canPaste},on:{click:e.pasteData}},[t(o.V9,[e._v(" "+e._s(e.__("Paste"))+" "),e.name?t("em",[e._v(e._s(e.name))]):e._e()])],1),t(i.Z,{attrs:{dense:"",disabled:!e.canClear},on:{click:e.clearData}},[t(o.V9,[e._v(" "+e._s(e.__("Clear"))+" "),e.name?t("em",[e._v(e._s(e.name))]):e._e()])],1)],1)],1)],2)},r=[],l=n(70655),c=n(38085),d=n(15133),u=n(3735),p=n(65669),h=n(48973),g=n(89028);let m=class extends c.w3{constructor(){super(...arguments),this.dataToPaste=null,this.contextMenu=!1,this.contextMenuX=0,this.contextMenuY=0}get canCopy(){return null!==this.syncedValue&&void 0!==this.syncedValue}get canPaste(){return!!this.dataToPaste&&(this.dataToPaste.path===this.path&&this.dataToPaste.data)}get canClear(){return null!==this.syncedValue&&void 0!==this.syncedValue}onContextMenuChange(){this.contextMenu||document.removeEventListener("mousedown",this.closeIfRightClick)}openContextMenu(e){e.preventDefault(),this.contextMenu=!1,this.contextMenuX=e.clientX,this.contextMenuY=e.clientY,this.$nextTick((()=>{this.contextMenu=!0,this.updateCanPaste(),document.addEventListener("mousedown",this.closeIfRightClick)}))}closeIfRightClick(e){2===e.button&&(this.contextMenu=!1)}copyData(){console.log("Copy data",this.syncedValue);const e={oxy:{path:this.path,data:this.syncedValue}};(0,u.zG)(e,p.J,(0,h.g_)((e=>console.error("Failed to copy",...e.map((e=>e.toString())))),(e=>(0,g.l9)(e)))),this.updateCanPaste()}pasteData(){this.dataToPaste&&(this.syncedValue=this.dataToPaste.data)}clearData(){this.syncedValue=null}async updateCanPaste(){this.dataToPaste=(await(0,g.ij)())?.oxy||null}beforeDestroy(){document.removeEventListener("mousedown",this.closeIfRightClick)}};(0,l.gn)([(0,c.yU)("value","input")],m.prototype,"syncedValue",void 0),(0,l.gn)([(0,c.fI)()],m.prototype,"name",void 0),(0,l.gn)([(0,c.fI)()],m.prototype,"path",void 0),(0,l.gn)([(0,c.RL)("contextMenu")],m.prototype,"onContextMenuChange",null),m=(0,l.gn)([(0,c.wA)({components:{Dropdown:d.Z}})],m);const v=m,y=v;var f=n(1001),_=(0,f.Z)(y,a,r,!1,null,null,null);const b=_.exports},5502:(e,t,n)=>{function s(e,t,n,s,o){function a(e,r){if(i(e)){const s={};for(const i in e){if(i===t)return e[i];if(n.includes(i))continue;const o=a(e[i],`${r?`${r}.`:""}${i}`);void 0!==o&&(s[i]=o)}return Object.keys(s).length?s:void 0}if(Array.isArray(e)){const t=[];if(e.forEach((e=>{t.push(a(e,`${r}[]`))})),0===t.filter((e=>void 0!==e)).length)return;return t.length?t:void 0}const l=r&&o?.some((e=>r.startsWith(e)));return t===s||l?e:void 0}return a(e,"")}function i(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)}n.d(t,{A:()=>s,S:()=>i})},89028:(e,t,n)=>{n.d(t,{Ku:()=>W,us:()=>U,NA:()=>N,wp:()=>L,ij:()=>B,Wm:()=>R,HR:()=>V,qb:()=>$,gR:()=>M,uV:()=>D,l9:()=>O});var s=n(27361),i=n.n(s),o=n(31381),a=n(85450),r=n(45974),l=n(30902),c=n(9950),d=n(69137),u=n(23128),p=n(65118),h=n(65669),g=n(84274),m=n(86687),v=n(8773),y=n(12721),f=n(31737),_=n(31549),b=n(75031),S=n(32521);const C=S.G0([b.NM,S.IX(b.NM)]),x=S.dt({controlSectionShapeHash:S.Z_,propertiesData:S.dt({propertiesData:S._4})}),w=S.dt({path:S.Z_,data:S._4}),I=S.r$({element:C,controlSectionPropertiesData:x,oxy:w});var P=n(39715),k=n(98949),E=n(47354);const T=new y.hF;function D(){return{register(){T.on("copy",A),T.on("cut",A),T.on("paste",A)},unbind(){T.removeAll()}}}function A(e){if((0,E.o8)())return;const t=window.Breakdance.canvas.document,n=(0,f.SD)(t)||(0,f.SD)(document);n||(e.preventDefault(),"copy"===e.type&&a.uiStore.activeElementId?N(a.uiStore.activeElementId):"cut"===e.type&&a.uiStore.activeElementId?F(a.uiStore.activeElementId):"paste"===e.type&&R(a.uiStore.activeElementId,e))}async function Z(e){const{secure:t,permission:n}=await(0,f.fn)();return e&&!window.safari?"event":t?null===n||"denied"===n.state?"localstorage":"clipboard":"localstorage"}async function O(e){try{await navigator.clipboard.writeText(e),console.debug("Writing to clipboard")}catch(t){(0,f._G)(e),console.debug("Fallback: Writing to clipboard")}(0,_.r)("breakdance_clipboard",e)}async function M(e){const t=e?.clipboardData?.getData("text"),n=await Z(e);return console.debug(`Reading clipboard from ${n}`),"event"===n?t:"localstorage"===n?(0,_.z)("breakdance_clipboard"):await navigator.clipboard.readText()}async function B(e){const t=await M(e);if(!t)return null;const n=(0,p.Z)(t,I);return(0,l.pipe)(n,(0,r.fold)((()=>null),(e=>e??null)))}function L(e){const t=[];e.forEach((e=>{const n=(0,o.findNode)(a.documentStore.document.tree,e);n&&t.push((0,o.exportNode)(n))}));const n=(0,P.G)(t);(0,l.pipe)(n,h.J,(0,r.fold)((e=>console.error("Failed to copy element",...e.map((e=>e.toString())))),(e=>{O(e)})))}function N(e){const t=(0,o.findNode)(a.documentStore.document.tree,e);if(!t)return;const n=(0,o.exportNode)(t),s=(0,P.G)(n);(0,l.pipe)(s,h.J,(0,r.fold)((e=>console.error("Failed to copy element",...e.map((e=>e.toString())))),(e=>{O(e)})))}function F(e){N(e),a.documentStore.deleteElement({nodeId:e})}async function R(e,t){if("success"!==a.configStore.elementsLoadingState)return;const n=(await B(t))?.element;n&&(Array.isArray(n)?(0,k.AE)(n,"pasting"):V(e,n))}function V(e,t){const n=(0,c.Z)(a.documentStore.document.tree,e,(0,c.kE)(t)),s=(0,v.Z)(),i=`Paste:${s}`;(0,l.pipe)(n,(0,r.fold)((()=>{}),(e=>{"TOP_LEVEL"===e?d.n.transaction((()=>{const e={nodeId:void 0};a.documentStore.addElementMutation({elementSlug:(0,c.zV)(),parentNodeId:a.documentStore.document.tree.root.id,index:!1,pointer:e}),void 0!==e.nodeId&&(a.documentStore.pasteCopiedElementMutation({element:t,placeToAddId:e.nodeId,placeToAddIndex:0}),m.w.run.onCreatedElement({elementId:t.id,transactionKey:i}))}),`Paste copied ${(0,g.JC)(t.data.type)} into a new section`,i):d.n.transaction((()=>{const n={nodeId:void 0};a.documentStore.pasteCopiedElementMutation({element:t,placeToAddId:e.place.id,placeToAddIndex:e.index||e.place.children.length,pointer:n}),n.nodeId&&m.w.run.onCreatedElement({elementId:n.nodeId,transactionKey:i})}),`Paste copied ${(0,g.JC)(t.data.type)}`,i)})))}async function $(e,t="design"){const n=(await B())?.element;if(Array.isArray(n))return;if(!n)return;const s=(0,o.findNode)(a.documentStore.document.tree,e);if(!s)return;const r=i()(n.data.properties,t,null);n.data.type===s.data.type&&a.documentStore.throttledPropertyChanged({elementId:s.id,path:t,value:(0,u.Z)(r),meta:{snapshotLabel:`Paste properties of ${(0,g.JC)(n.data.type)} to ${(0,g.JC)(s.data.type)}`}})}async function W(e){if("success"!==a.configStore.elementsLoadingState)return!1;const t=(await B())?.element;if(Array.isArray(t))return!0;if(!t)return!1;const n=(0,c.Z)(a.documentStore.document.tree,e,(0,c.kE)(t));return(0,r.isRight)(n)}async function U(e){const t=(await B())?.element;if(Array.isArray(t))return!1;if(!t)return!1;const n=(0,o.findNode)(a.documentStore.document.tree,e);return t.data.type===n?.data.type}},39715:(e,t,n)=>{function s(e){return{element:e}}n.d(t,{G:()=>s})},31737:(e,t,n)=>{async function s(){try{return await navigator.permissions.query({name:"clipboard-read",allowWithoutGesture:!1})}catch(e){return null}}async function i(){const e=await s();return{secure:window.isSecureContext,permission:e}}function o(e){const t=document.createElement("textarea");let n;t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",t.classList.add("breakdance-offscreen-input"),document.body.appendChild(t),t.focus(),t.select();try{n=document.execCommand("copy")}catch(s){n=!1}return document.body.removeChild(t),n}function a(e){return"INPUT"===e?.nodeName}function r(e){const t=["button","checkbox","hidden","file","radio","image","range","reset","submit","number","email","time"];return a(e)&&e.type&&!t.includes(e.type)||"TEXTAREA"===e.nodeName||"true"===e.contentEditable}function l(e){const t=e?.defaultView?.getSelection(),n=t?.rangeCount?t.getRangeAt(0):null;return!!n&&!n.collapsed}function c(e){const t=e.activeElement;return t&&(a(t)||r(t)||l(e))}n.d(t,{SD:()=>c,_G:()=>o,fn:()=>i})},11815:(e,t,n)=>{function s({namespace:e,phpClassName:t,uiIcon:n,tag:s,tagOptions:i,tagControlPath:o,name:a,className:r,category:l,badge:c,defaultProperties:d,defaultChildrenElements:u,designControls:p,contentControls:h,settingsControls:g,dependencies:m,settings:v,addPanelRules:y,actions:f,nestingRules:_,spacingBars:b,attributes:S,experimental:C,availableIn:x,order:w,additionalClasses:I,projectManagement:P,propertyPathsToWhitelistInFlatProps:k,propertyPathsToSsrElementWhenValueChanges:E}){return`s})},17231:(e,t,n)=>{function s(e,t,n,s){return`register(\n "${e}",\n ${t},\n true,\n ${s}\n);\n\n`}n.d(t,{C:()=>s})},1073:(e,t,n)=>{n.d(t,{T:()=>h,_:()=>p});var s=n(98851),i=n(75031),o=n(30902),a=n(45974),r=n(51168),l=n(31044),c=n(32521),d=n(65669),u=n(69137);async function p(){const e=await(0,s.D)({action:"breakdance_load_global_settings",decoder:i.az});return(0,o.pipe)(e,(0,a.fold)((e=>((0,r.UE)(e.map((e=>({...e,customNotificationToShow:e.customNotificationToShow?"INTERNAL_SERVER_ERROR"===e.customNotificationToShow.type?{...e.customNotificationToShow,keepOpen:!0}:e.customNotificationToShow:void 0})))),!1)),(e=>(u.n.ignore((()=>{l.cr.setGlobalSettings(e.globalSettings),l.cr.markCurrentGlobalSettingsAsUntouched()})),!0))))}async function h(){return(0,o.pipe)(await(0,s.D)({friendlyName:"Saving global settings to WordPress",action:"breakdance_save_global_settings",dataToPost:{globalSettings:(0,d.J)(l.cr.globalSettings)},decoder:c._4}),(0,a.fold)((e=>((0,r.UE)(e),!1)),(()=>(u.n.ignore((()=>l.cr.markCurrentGlobalSettingsAsUntouched())),!0))))}},36055:(e,t,n)=>{n.d(t,{H$:()=>r,TZ:()=>a,UY:()=>d,__:()=>i,gB:()=>l,vM:()=>o});const s=window.wp.i18n;function i(e,t="breakdance"){return s.__(e,t)}function o(e,t,n,i,o="breakdance"){return s._nx(e,t,n,i,o)}function a(e,t){return s.__(e,"breakdance")}function r(e,t,n,i="breakdance"){return s._x(e,t,i)}const l=s.sprintf;function c(){if("undefined"===typeof document)return;const e=document.documentElement.getAttribute("lang");if(!e)return"en";try{return new Intl.Locale(e).toString()}catch{return e}}function d(e){if(!Array.isArray(e)||0===e.length)return"";const t=c(),n=new Intl.ListFormat(t,{style:"long",type:"conjunction"});return n.format(e)}},93709:(e,t,n)=>{function s(e=!1){const t=document.querySelector(".properties-panel-search-box-wrap input");if(t?.focus(),e){const e=document.querySelector(".properties-panel-search-box-wrap .properties-panel-search-settings-toggle");if(e){const t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(t)}}}function i(){const e=document.querySelector(".properties-panel-search-box-wrap .properties-panel-search-modified");if(e){const t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(t)}}n.d(t,{O:()=>s,p:()=>i})},21115:(e,t,n)=>{n.d(t,{e:()=>i,n:()=>o});var s=n(13635);function i(e,t){const{x:n,y:i}=(0,s.eq)(),o=document.getElementById("iframe"),r=window.Breakdance.canvas.document.querySelector(".breakdance-canvas-right-click-menu");if(!r||!o)return;const{width:l,height:c}=o.getBoundingClientRect(),{menuWidth:d,menuHeight:u}=a(r),p=e+d+15>l?e-n-d:e-n,h=t+u+15>c?t-i-u:t-i;return{x:p,y:h}}function o(e,t){const n=document.querySelector(".breakdance-canvas-right-click-menu"),{menuWidth:s,menuHeight:i}=a(n),o=window.innerWidth,r=window.innerHeight,l=Math.min(e,o-s-10),c=Math.min(t,r-i-10);return{x:l,y:c}}function a(e){e.style.display="block";const{width:t,height:n}=e.getBoundingClientRect();return{menuWidth:t,menuHeight:n}}},37982:(e,t,n)=>{n.d(t,{DQ:()=>b,Fr:()=>_,_S:()=>y,c3:()=>S,y8:()=>v,zF:()=>C});var s=n(45974),i=n(21516),o=n(98851),a=n(3735),r=n(48973),l=n(51168),c=n(31044),d=n(65669),u=n(32521),p=n(95690),h=n(69137),g=n(39664),m=n(36055);function v(e){return/^-?[.]+[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(e)}function y(e){try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0}function f(e){if("class"===e.type){if(!v(e.name))return void g.Z.log.message((0,m.gB)((0,m.TZ)("%s is not a valid CSS class name.","%s: CSS selector name"),e.name))}else if(!y(e.name))return void g.Z.log.message((0,m.gB)((0,m.TZ)("%s is not a valid CSS selector.","%s: CSS selector name"),e.name));c.cr.cssSelectors.find((t=>t.name===e.name))?g.Z.log.message((0,m.gB)((0,m.TZ)("%s is already present.","%s: CSS selector name"),e.name)):h.n.transaction((()=>c.cr.setSelectors([...c.cr.cssSelectors,e])),"Add Selector")}function _(e){f(e),(0,p.O_)("selectors")||C()}function b(e){if(!y(e))return(0,s.left)([(0,m.gB)((0,m.TZ)('"%s" is not a valid CSS selector.',"%s: CSS selector name"),e)]);const t=!!v(e);return(0,s.right)({name:e,type:t?"class":"custom",properties:{}})}async function S(){const e=await(0,o.D)({action:"breakdance_load_selectors",decoder:i.Ng});return(0,a.zG)(e,(0,r.g_)((e=>((0,l.UE)(e.map((e=>({...e,customNotificationToShow:e.customNotificationToShow?"INTERNAL_SERVER_ERROR"===e.customNotificationToShow.type?{...e.customNotificationToShow,keepOpen:!0}:e.customNotificationToShow:void 0})))),!1)),(e=>(h.n.ignore((()=>{c.cr.setSelectors(e),c.cr.markCurrentSelectorsAsUntouched()})),!0))))}async function C(){return(0,a.zG)(await(0,o.D)({friendlyName:(0,m.__)("Saving selectors to WordPress"),action:"breakdance_save_selectors",dataToPost:{selectors:(0,d.J)(c.cr.cssSelectors)},decoder:u._4}),(0,r.g_)((e=>((0,l.UE)(e),!1)),(()=>(h.n.ignore((()=>c.cr.markCurrentSelectorsAsUntouched())),!0))))}},98992:(e,t,n)=>{n.d(t,{FM:()=>a,nx:()=>r,sF:()=>l,u3:()=>o});var s=n(31381),i=n(31044);function o(e,t){return(0,s.treeNodeReduce)(((e,n)=>(n[e.id]=t,n)),e.root,{})}function a(e,t){const n=(0,s.findNode)(e,t);if(n)return(0,s.parentNodesReduce)(((e,t)=>(t[e.id]=!0,t)),e,n,{})}function r(e){return!1===i.kD.structurePanelNodesExpandedState[e]}function l(e){return void 0===i.kD.structurePanelNodesExpandedState[e]||!0===i.kD.structurePanelNodesExpandedState[e]}},23370:(e,t,n)=>{n(86702);var s=n(20144),i=n(31096),o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(i.Z,{class:e.classList},[t("Notifications"),e.isBrowseModeEnabled?[t("BrowseMode",{key:"browser"})]:[t("Builder",{key:"builder"})]],2)},a=[],r=n(70655),l=n(38085),c=n(85450),d=n(58495),u=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-builder"},[e.errorsPresent?t("UnrecoverableErrors"):"normal"===e.interfaceState?t("BuilderLayout"):"loading"===e.interfaceState?t("Loading"):e._e()],1)},p=[],h=n(48403),g=n.n(h),m=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("AppLayout",{class:e.classList,scopedSlots:e._u([{key:"topbar",fn:function(){return[e.isPreviewMode||e.isSingularityMode?e._e():t("BuilderTopBar"),e.isPreviewMode?t("PreviewModeCloseButton"):e._e()]},proxy:!0},{key:"body",fn:function(){return[t("ClosingConfirmations"),t("DesignLibraryModal"),!e.isSingularityMode||e.isDevEnvironment&&e.debugSidebarPanelsEnabled?t("SidebarPanels",{directives:[{name:"show",rawName:"v-show",value:!e.isPreviewMode,expression:"!isPreviewMode"}],attrs:{panelState:e.leftSidebarPanelState,position:"left"}}):e._e(),t("ComponentRootTagWarning"),e.isSingularityMode?e._e():t("IframeCanvasWrapper",{on:{loaded:e.onIframeLoaded}}),e.showTemplateDialog?t("TemplateDialog",{attrs:{"template-id":e.templateId,"template-name":e.templateName,templateIsFallback:e.isTemplateFallback,templatesPageUrl:e.templatesPageUrl}}):e._e(),e.showInvalidPostDialog?t("InvalidPostDialog"):e._e(),e.preferencesModalOpen?t("PreferencesModal",{attrs:{open:e.preferencesModalOpen},on:{"update:dialog":e.updatePreferencesModal}}):e._e(),e.keyboardShortcutsHelpModalOpen?t("KeyboardShortcutsHelpModal",{attrs:{open:e.keyboardShortcutsHelpModalOpen},on:{"update:dialog":e.updateKeyboardShortcutsHelpModal}}):e._e(),!e.isSingularityMode||e.isDevEnvironment&&e.debugSidebarPanelsEnabled?t("SidebarPanels",{directives:[{name:"show",rawName:"v-show",value:!e.isPreviewMode,expression:"!isPreviewMode"}],attrs:{panelState:e.rightSidebarPanelState,position:"right"}}):e._e(),e.isSingularityMode?t("Singularity",{on:{loaded:e.onIframeLoaded}}):e._e(),e.elementStudioOpen?t("div",{staticClass:"breakdance-app-far-right-area vscroll-wrap"},[t("ElementStudio")],1):e._e()]},proxy:!0}])})},v=[],y=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"iframe-canvas-wrapper"},[t("IframeCanvas",{key:e.canvasWrapperKey,on:{loaded:function(t){return e.$emit("loaded")}}})],1)},f=[],_=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.iframeURL?t("IframeWrapper",{attrs:{"iframe-url":e.iframeURL,"iframe-preview-width":e.canvasPreviewWidth,"iframe-exited":e.iframeExited,"iframe-state":e.canvasState,"min-width":e.iframeMinWidth,"current-breakpoint":e.currentBreakpoint,"iframe-id":"iframe"},on:{previewWidthChange:e.handlePreviewWidthChange,previewWidthChangeWithAdjustmentBar:e.handlePreviewWidthChangeWithAdjustmentBar,iframeLoaded:e.mountCanvasInIframe,iframeUnloaded:e.setIframeAsExited,reloadWanted:e.reloadIframe,resetPreviewWidth:e.handleResetPreviewWidth}}):e._e()},b=[];const S='/* Copied from globals.scss, don\'t modify here directly */\n:root {\n --white: #ffffff;\n --black: #000000;\n\n --blue50: #eff6ff;\n --blue100: #dbeafe;\n --blue200: #bfdbfe;\n --blue300: #93c5fd;\n --blue400: #60a5fa;\n --blue500: #3b82f6;\n --blue600: #2563eb;\n --blue700: #1d4ed8;\n --blue800: #1e40af;\n --blue900: #1e3a8a;\n\n --neutral-50: #f9fafb;\n --neutral-100: #f4f5f7;\n --neutral-200: #e5e7eb;\n --neutral-300: #d2d6dc;\n --neutral-400: #9fa6b2;\n --neutral-500: #6b7280;\n --neutral-600: #4b5563;\n --neutral-700: #374151;\n --neutral-800: #1f2937;\n --neutral-900: #111827;\n\n --red600: #dc2626;\n\n --bde-canvas-font-family: system-ui, -apple-system, "Segoe UI", Roboto,\n Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";\n\n --bde-app-font-family: "Avenir", Helvetica, Arial, sans-serif;\n\n --bde-onboarding-app-font-family: "Inter", Helvetica, Arial, sans-serif;\n}\n\n/* everything here should be prefixed with breakdance because\nthese styles are mixed with any fuckery from their theme */\n\n#breakdance_canvas {\n position: relative;\n /* note that .breakdance { position: relative { is loaded by default on the frontend,\n therwise if the user uses absolute positioning, things could look different in the builder */\n /* this is necessary cuz our outlines, titlebars, etc. are positioned relative to this element */\n}\n\n#breakdance_canvas.dragging,\n#breakdance_canvas.dragging * {\n cursor: grabbing;\n}\n\n#iframe {\n margin: 4px;\n border: 1px solid #eee;\n background-color: white;\n width: 100%;\n padding: 2px;\n font-family: var(--bde-canvas-font-family);\n position: relative;\n}\n\n.breakdance-icon {\n display: flex;\n justify-content: center;\n}\n\n.breakdance-icon > svg {\n fill: currentColor;\n width: 100%;\n height: 100%;\n}\n\n@-moz-document url-prefix() {\n .breakdance-icon > svg {\n width: auto;\n height: auto;\n }\n}\n\n.dragTaller {\n height: 6px;\n width: 6px;\n border: 2px solid grey;\n border-radius: 50%;\n background-color: white;\n z-index: 2000;\n}\n\n.drag-dot {\n width: 11px;\n height: 11px;\n border-radius: 50%;\n background-color: rgb(32, 43, 67);\n cursor: move;\n position: absolute;\n z-index: 100000;\n pointer-events: auto;\n}\n\n.drag-dots-wrapper {\n position: absolute;\n pointer-events: none;\n}\n\n.drag-dot-top-left {\n top: -5px;\n left: -5px;\n}\n\n.drag-dot-top-middle {\n top: -5px;\n left: calc(50% - 5px);\n}\n\n.drag-dot-top-right {\n top: -5px;\n left: calc(100% - 5px);\n}\n\n.drag-dot-bottom-left {\n top: calc(100% - 5px);\n left: -5px;\n}\n\n.drag-dot-bottom-middle {\n top: calc(100% - 5px);\n left: calc(50% - 5px);\n}\n\n.drag-dot-bottom-right {\n top: calc(100% - 5px);\n left: calc(100% - 5px);\n}\n\n.drag-dot-middle-left {\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.drag-dot-middle-right {\n top: 50%;\n transform: translate(50%, -50%);\n right: 0;\n}\n\n.spacing-bar {\n background-color: rgba(0, 0, 255, 0.2);\n opacity: 0;\n position: absolute;\n transition: 0.3s ease-in-out opacity;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 10000;\n min-height: 5px;\n}\n\n.spacing-bar:hover {\n transition-delay: 0.2s;\n}\n\n.spacing-bar .spacing-bar-current-value {\n font-family: monospace;\n color: white;\n font-size: 13px;\n font-weight: 500;\n background-color: #5555aa;\n line-height: 1;\n padding: 6px;\n border-radius: 4px;\n pointer-events: none;\n}\n\n.spacing-bar-inside-top {\n min-height: 5px;\n top: 0;\n left: 0;\n right: 0;\n}\n\n/* column drag */\n.drag-dots-left-width {\n margin-right: 22px;\n}\n\n.drag-dots-column-widths-values {\n display: flex;\n flex-direction: row;\n position: absolute;\n left: -66px;\n top: -8px;\n}\n\n.drag-dots-left-width,\n.drag-dots-right-width {\n font-family: monospace;\n color: white;\n font-size: 13px;\n font-weight: 500;\n background-color: #5555aa;\n line-height: 1;\n padding: 6px;\n border-radius: 4px;\n width: 48px;\n}\n\n/* Node Chrome */\n\n.node-chrome,\n.node-titlebar-wrapper,\n.node-hover-controls {\n transition: 0.3s opacity ease;\n}\n\n.node-chrome--hide-all,\n.node-chrome--hide-titlebar .node-titlebar-wrapper,\n.node-chrome--hide-hover .node-hover-controls {\n opacity: 0;\n}\n\n/* Titlebars */\n\n.node-titlebar-wrapper {\n position: absolute;\n pointer-events: none;\n direction: ltr;\n z-index: 10000;\n outline: 1px solid rgb(32, 43, 67);\n user-select: none;\n}\n\n.node-titlebar {\n pointer-events: auto;\n\n display: flex;\n align-items: center;\n position: absolute;\n\n bottom: 100%;\n height: 28px;\n padding: 0 10px;\n border-radius: 4px 4px 0 0;\n\n font-family: var(--bde-app-font-family);\n font-size: 12px;\n font-weight: 500;\n\n letter-spacing: normal;\n font-style: normal;\n text-transform: none;\n\n background-color: rgb(32, 43, 67);\n color: white;\n z-index: 1000000;\n\n left: -1px;\n}\n\n/* Draft */\n.node-titlebar-is-offset {\n left: 0;\n}\n\n.node-titlebar-is-draft-section {\n background-color: rgb(122, 125, 133);\n}\n\n/*\n * Moving you mouse over the node titlebar or spacing bars\n * will trigger an erroneous mouseleave event on the element\n * you are dragging, when your mouse is not outside of it yet.\n */\n.dragging .spacing-bar,\n.dragging .node-titlebar {\n pointer-events: none;\n}\n\n.node-titlebar-is-dragging,\n.breakdance--currently-dragging,\n.builder-element.breakdance--currently-dragging {\n cursor: grabbing;\n}\n\n.breakdance--currently-dragging,\n.builder-element.breakdance--currently-dragging {\n opacity: 0.5;\n}\n\n.node-titlebar-is-dragging {\n /* color: rgb(32, 43, 67); */\n background-color: rgb(167, 170, 177) !important;\n}\n\n.node-titlebar-wrapper-is-dragging {\n outline: 1px solid rgb(167, 170, 177) !important;\n}\n\n.node-titlebar-wrapper .node-titlebar-button {\n color: rgba(255, 255, 255, 0.85);\n cursor: pointer;\n}\n\n.node-titlebar-button:hover {\n color: rgba(255, 255, 255, 1);\n}\n\n.node-titlebar-title {\n white-space: nowrap;\n cursor: grab;\n display: flex;\n align-items: center;\n font-style: normal;\n letter-spacing: normal;\n}\n\n.node-titlebar-title .node-titlebar-button {\n margin-right: 4px;\n margin-left: 0px;\n}\n\n.node-titlebar-title .node-titlebar-button svg {\n cursor: grab;\n}\n\n.node-titlebar-button-activate-parent {\n margin-left: 6px;\n}\n\n.node-titlebar-button.node-titlebar-button-activate-parent > svg {\n width: 10px;\n height: 10px;\n}\n\n.node-titlebar-button {\n margin-left: 9px;\n}\n\n.node-titlebar-button > svg {\n width: 13px;\n height: 13px;\n}\n\n.node-titlebar-margin-left {\n margin-left: 20px;\n}\n\n.node-titlebar--hide {\n display: none!important;\n}\n\n/* Outline Titlebar */\n.node-titlebar-wrapper--ghost {\n z-index: 9999;\n outline: none !important;\n}\n\n.node-titlebar-wrapper--ghost .node-titlebar {\n background-color: transparent;\n color: var(--blue500);\n}\n\n.node-titlebar-wrapper--ghost .node-titlebar-button {\n color: var(--blue500);\n}\n\n/* Other */\n.breakdance-drag-placeholder-wrapper {\n pointer-events: none;\n}\n\n.breakdance-drag-placeholder {\n /* this won\'t work if something other than the window has position relative on it,\n maybe we could mount the overlaid ui chrome inside the body, not in the canvas */\n\n /* some months later\n ... really? The above sounds like bullshit. I can put position relative\n on all sorts of stuff and this works fine\n so maybe we are already mounting the overlaid UI chrome in the right place?\n */\n\n position: absolute;\n /* ---- */\n background-color: var(--blue500);\n z-index: 100001;\n display: none;\n border-radius: 2px;\n}\n\n.breakdance-drag-target-outline {\n outline: 6px solid var(--blue300);\n outline-offset: -6px;\n z-index: 100000;\n display: none;\n}\n\n.breakdance-children-pointer-events-none > * {\n pointer-events: none;\n}\n\n/* global blocks */\n.breakdance-themeless-global-block {\n cursor: default;\n}\n\n.breakdance-themeless-global-block::selection {\n background-color: transparent;\n}\n\n.breakdance-themeless-global-block *::selection {\n background-color: transparent;\n}\n\n.breakdance-foreign-documents-overlay {\n font-family: var(--bde-canvas-font-family);\n position: fixed;\n z-index: 9999;\n outline: 1px solid rgb(255 182 216);\n outline-offset: -1px;\n cursor: not-allowed;\n background-color: rgba(0, 0, 0, 0.1);\n display: none;\n}\n.breakdance-foreign-documents-overlay-titlebar-wrapper {\n position: absolute;\n top: 0;\n left: 50%;\n}\n\n.breakdance-foreign-documents-overlay-titlebar {\n position: relative;\n left: -50%;\n height: 28px;\n padding: 0 10px;\n font-family: var(--bde-canvas-font-family);\n font-size: 12px;\n font-weight: 500;\n background-color: rgb(255 182 216);\n border-radius: 0px 0px 4px 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n user-select: none;\n}\n\n.breakdance-foreign-documents-overlay-titlebar a {\n cursor: pointer;\n color: black;\n text-decoration: none;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.breakdance-foreign-documents-overlay-titlebar a svg {\n margin-left: 5px;\n width: 14px;\n height: 14px;\n}\n\n.breakdance-foreign-document-wrapper:hover\n .breakdance-foreign-document-wrapper__overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n/* node hover controls */\n.node-hover-controls {\n position: absolute;\n pointer-events: none;\n z-index: 9999;\n}\n\n.node-hover-controls--onboarding {\n pointer-events: auto;\n}\n\n.node-hover-controls--onboarding.node-hover-controls--outline {\n outline: 1px solid var(--neutral-200);\n}\n\n.node-hover-controls--outline {\n outline: 1px solid rgb(177, 202, 255);\n}\n\n.node-hover-controls-button {\n position: absolute;\n pointer-events: auto;\n flex-direction: column;\n\n border-radius: 50%;\n\n width: 40px;\n height: 40px;\n\n font-size: 20px;\n font-weight: 700;\n font-family: var(--bde-canvas-font-family);\n background-color: rgb(32, 43, 67);\n color: white;\n\n align-items: center;\n justify-content: center;\n\n cursor: pointer;\n}\n\n.node-hover-controls-bottom-button {\n top: calc(100% - 20px);\n left: calc(50% - 20px);\n}\n\n.node-hover-controls-right-button {\n top: 50%;\n left: calc(100% - 48px);\n transform: translateY(-50%);\n}\n\n.node-hover-controls-menu {\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);\n border-radius: 3px;\n font-family: var(--bde-canvas-font-family);\n font-size: 13px;\n font-weight: 500;\n flex-direction: column;\n background-color: white;\n color: black;\n display: none;\n position: absolute;\n top: calc(100% - 20px);\n left: 50%;\n transform: translateX(-50%);\n width: 170px;\n overflow: hidden;\n}\n\n.node-hover-controls-menu > div {\n padding: 9px 12px;\n text-align: center;\n}\n\n.node-hover-controls-menu > div:hover {\n background-color: #fafafa;\n}\n\n.node-hover-controls-menu--open {\n display: flex;\n}\n\n/* We do the outlining with JS to add some logic to it*/\n*:focus[contenteditable="true"] {\n border: none;\n outline: none;\n}\n\n.node-content-editable {\n position: absolute;\n pointer-events: none;\n z-index: 1000;\n outline: 1px solid var(--blue500);\n}\n\n/* EMPTY CONTAINER */\n\n.breakdance-empty-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n min-height: 200px;\n}\n\n.breakdance-empty-container__text {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n justify-content: center;\n font-family: var(--bde-canvas-font-family);\n}\n\n.breakdance-empty-container__text p {\n font-size: 18px;\n color: var(--neutral-500);\n margin: 0;\n}\n\n.breakdance-empty-container__add-element {\n font-family: var(--bde-canvas-font-family);\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n cursor: pointer;\n\n user-select: none;\n\n background-color: var(--blue50);\n width: 42px;\n height: 42px;\n border-radius: 3px;\n margin: 10px;\n}\n\n.breakdance-empty-container__add-element {\n color: var(--blue500);\n}\n\n.breakdance-empty-container__add-element:hover {\n background-color: var(--blue100);\n}\n\n.breakdance-empty-container__add-element--disabled,\n.breakdance-empty-container__add-element--disabled:hover {\n cursor: not-allowed;\n background: var(--grey-100);\n color: var(--grey-300);\n}\n\n/* COLUMNS */\n\n.breakdance-empty-columns {\n font-family: var(--bde-canvas-font-family);\n box-sizing: border-box;\n width: 100%;\n overflow: hidden;\n background-color: white;\n border-radius: 5px;\n box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 100px rgba(0, 0, 0, 0.1);\n padding: 50px;\n}\n\n.breakdance-empty-columns-choices-heading {\n font-weight: 500;\n font-size: 16px;\n text-align: center;\n margin-bottom: 16px;\n user-select: none;\n}\n\n.breakdance-empty-columns-choices {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.breakdance-empty-columns-choices-row {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n}\n\n.breakdance-empty-columns-column-icon-wrapper {\n padding: 4px;\n margin: 16px;\n cursor: pointer;\n border-radius: 3px;\n transition: 0.3s ease-in-out filter;\n filter: grayscale(90%);\n}\n\n.breakdance-empty-columns-column-icon-wrapper:hover {\n filter: grayscale(0%);\n}\n\n.breakdance-empty-columns-column-icon {\n width: 160px;\n height: 90px;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n}\n\n.breakdance-empty-columns-column-icon-column {\n margin: 4px;\n width: 100%;\n background-color: #bfdbfe;\n border-radius: 3px;\n}\n\n.breakdance--empty-container:not(.breakdance--active-element) {\n outline: 2px solid #eee;\n outline-offset: -2px;\n}\n\n/* ELEMENT */\n\n.builder-element {\n cursor: default;\n}\n\n/* right click menu. This is duplicated in the styles.iframecss\n\nWe need it also here because this is used both in the canvas and the structure panel\n*/\n\n.breakdance-canvas-right-click-menu {\n -webkit-font-smoothing: antialiased;\n position: absolute; /* absolute when in the canvas, fixed when in the structure panel */\n z-index: 2147483647;\n font-family: var(--bde-canvas-font-family);\n background-color: var(--white-fixed, var(--white));\n box-shadow: 0px 5px 5px -3px rgb(0 0 0 / 20%),\n 0px 8px 10px 1px rgb(0 0 0 / 14%), 0px 3px 14px 2px rgb(0 0 0 / 12%);\n min-width: 200px;\n border-radius: 6px;\n padding: 6px 0px;\n user-select: none;\n letter-spacing: normal;\n font-style: normal;\n text-transform: none;\n}\n\n.breakdance-canvas-right-click-menu-item {\n font-size: 13px;\n font-weight: 400;\n font-size: 12px;\n min-height: 33px;\n padding: 0 18px;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n cursor: pointer;\n color: #333;\n}\n\n.breakdance-canvas-right-click-menu-item-shortcut {\n margin-left: auto;\n font-size: 12px;\n color: var(--grey-400);\n}\n\n.breakdance-canvas-right-click-menu-divider {\n height: 1px;\n background-color: #ddd;\n margin-top: 4px;\n margin-bottom: 4px;\n}\n\n.breakdance-canvas-right-click-menu-item:hover:not(\n .breakdance-canvas-right-click-menu-item-disabled\n ) {\n background-color: #eee;\n}\n\n.breakdance-canvas-right-click-menu-item-disabled {\n opacity: 0.5;\n cursor: default !important;\n}\n\n.breakdance-canvas-right-click-dropdown {\n position: relative;\n}\n\n.breakdance-canvas-right-click-submenu {\n position: absolute;\n left: 100%;\n top: -20px;\n z-index: 100000;\n pointer-events: none;\n opacity: 0;\n min-width: 100px;\n padding-top: 20px;\n transition: 0.3s opacity ease;\n}\n\n.breakdance-canvas-right-click-submenu__arrow {\n margin-left: auto;\n}\n\n.breakdance-canvas-right-click-submenu__content {\n position: static !important;\n translate: 4px 0;\n overflow: hidden;\n min-width: auto;\n}\n\n.breakdance-canvas-right-click-dropdown:hover\n .breakdance-canvas-right-click-submenu {\n opacity: 1;\n pointer-events: auto;\n}\n\n.breakdance-canvas-right-click-dropdown--disabled,\n.breakdance-canvas-right-click-dropdown--disabled:hover {\n pointer-events: none;\n}\n\n@media (prefers-color-scheme: dark) {\n .breakdance-canvas-right-click-menu {\n background-color: #1f2229;\n }\n\n .breakdance-canvas-right-click-menu-item {\n color: var(--white-fixed, var(--white));\n }\n\n .breakdance-canvas-right-click-menu-item:hover:not(\n .breakdance-canvas-right-click-menu-item-disabled\n ) {\n background-color: #2c3038;\n }\n\n .breakdance-canvas-right-click-menu-divider {\n background-color: #4d535e;\n }\n}\n\n/* Structure panel */\n.breakdance-canvas-right-click-menu--structure-panel {\n min-width: 155px;\n}\n\n.breakdance-canvas-right-click-dropdown--inverted\n .breakdance-canvas-right-click-submenu {\n left: auto;\n right: 100%;\n}\n\n.breakdance-canvas-right-click-dropdown--inverted\n .breakdance-canvas-right-click-submenu__content {\n translate: -4px 0;\n}\n\n/* Empty State */\n\n.breakdance-canvas-empty-element {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n padding: 30px;\n text-align: center;\n border: 2px dashed #c3c4c7;\n}\n\n.breakdance-canvas-empty-element__title {\n font-size: 18px;\n font-weight: normal;\n color: #646970;\n margin-bottom: 0;\n}\n\n/*** Warning ***/\n\n.bde-ssr-error {\n background: rgb(254, 242, 242);\n color: var(--red600);\n padding: 12px;\n}\n\n/*** Loading ***/\n\n.breakdance-empty-ssr-message {\n padding: 12px;\n background: rgb(242, 242, 254);\n width: 100%;\n display: flex;\n flex-direction: column;\n color: black;\n font-size: 13px;\n font-weight: 500;\n margin: 12px 0;\n}\n\n.breakdance-empty-ssr-message-error {\n background: rgb(254, 242, 242);\n}\n\n.breakdance-empty-ssr-message small {\n margin-top: 6px;\n color: black;\n font-size: 11px;\n font-weight: 400;\n}\n\n.breakdance-element-is-updating:empty {\n min-height: 80px;\n max-width: 100%;\n width: 400px;\n}\n\n.breakdance-element-is-updating {\n background: linear-gradient(\n 90deg,\n rgba(150, 150, 150, 0.1) 0%,\n rgba(150, 150, 150, 0.3) 50%,\n rgba(150, 150, 150, 0.1) 100%\n );\n\n background-size: 200% 100%;\n animation: shimmer 1.5s infinite;\n color: transparent !important;\n border-radius: 4px;\n}\n\n.breakdance-element-is-updating > * {\n opacity: 0 !important;\n}\n\n@keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n}\n\n/* Ghost Placeholder */\n\n.breakdance-drag-ghost-element {\n position: fixed;\n z-index: 999999;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 130px;\n height: 40px;\n padding-left: 5px;\n padding-right: 5px;\n\n background-color: var(--white);\n border: 1px solid var(--blue600);\n color: var(--blue600);\n outline: none;\n\n border-radius: 4px;\n opacity: 0.8;\n\n font-size: var(--text-sm);\n font-weight: 500;\n line-height: 1;\n text-align: center;\n\n pointer-events: none;\n\n transform: translateX(-50%) translateY(-10%);\n\n display: none;\n}\n\n/* Right Click Dropdown */\n\n.breakdance-canvas-right-click-dropdown {\n position: relative;\n}\n\n.breakdance-canvas-right-click-submenu {\n position: absolute;\n left: 100%;\n top: -20px;\n z-index: 100000;\n pointer-events: none;\n opacity: 0;\n min-width: 100px;\n padding-top: 20px;\n transition: 0.3s opacity ease;\n transition: 0.3s opacity ease;\n}\n\n.breakdance-canvas-right-click-submenu__arrow {\n margin-left: auto;\n}\n\n.breakdance-canvas-right-click-submenu__content {\n position: static !important;\n position: static !important;\n translate: 4px 0;\n overflow: hidden;\n min-width: auto;\n}\n\n.breakdance-canvas-right-click-dropdown:hover\n .breakdance-canvas-right-click-submenu {\n opacity: 1;\n pointer-events: auto;\n}\n\n.breakdance-canvas-right-click-dropdown--disabled,\n.breakdance-canvas-right-click-dropdown--disabled:hover {\n pointer-events: none;\n}\n\n@media (prefers-color-scheme: dark) {\n .breakdance-canvas-right-click-menu {\n background-color: #1f2229;\n }\n\n .breakdance-canvas-right-click-menu-item {\n color: var(--white);\n }\n\n .breakdance-canvas-right-click-menu-item:hover:not(\n .breakdance-canvas-right-click-menu-item-disabled\n ) {\n background-color: #2c3038;\n }\n\n .breakdance-canvas-right-click-menu-divider {\n background-color: #4d535e;\n }\n}\n\n.node-hover-onboarding-controls-buttons,\n.node-hover-onboarding-controls-add-section {\n position: relative;\n display: flex;\n flex-direction: row;\n border: 1px solid var(--neutral-200);\n border-left: 0;\n border-radius: 0 0 4px 0;\n overflow: hidden;\n}\n\n.node-hover-onboarding-controls-add-section {\n border: 1px solid var(--neutral-200);\n border-radius: 4px;\n position: absolute;\n bottom: -12px;\n left: 50%;\n transform: translateX(-50%);\n}\n\n.node-hover-onboarding-controls-buttons__button {\n /* reset button CSS */\n background-color: transparent;\n border: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n padding: 0;\n margin: 0;\n text-align: left;\n text-decoration: none;\n display: flex;\n align-items: center;\n justify-content: center;\n /* styles */\n background-color: #fff;\n font-family: var(--bde-onboarding-app-font-family);\n padding: 4px 12px;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n border-right: 1px solid var(--neutral-200);\n}\n\n.node-hover-onboarding-controls-buttons__button[disabled] {\n opacity: 0.5;\n}\n\n@keyframes spin {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.is-spinning {\n animation: spin 0.8s infinite linear;\n}\n\n.node-hover-onboarding-controls-buttons__button:hover {\n background-color: var(--neutral-100);\n}\n\n.node-hover-onboarding-controls-buttons__button:last-child {\n border-right: 0;\n}\n\n.node-onboarding-palette-button__color {\n width: 20px;\n height: 16px;\n}\n\n.node-hover-onboarding-controls-palette-buttons {\n display: flex;\n border-right: 1px solid var(--neutral-200);\n}\n\n.node-hover-onboarding-controls-buttons__colors-wrap {\n border: 1px solid var(--neutral-300);\n border-radius: 4px;\n overflow: hidden;\n display: flex;\n}\n\n/* Inline Editor */\n.breakdance-inline-editor {\n display: contents;\n}\n\n.breakdance-inline-editor__loader {\n padding: 10px;\n text-align: center;\n}\n\n.breakdance-inline-editor-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n width: 100vw;\n background: rgba(0, 0, 0, 0.3);\n pointer-events: auto;\n z-index: 9999;\n cursor: pointer;\n}\n',C='.node-chrome--singularity {\n /* tailwind blue */\n --singularity-node-blue-50: #eff6ff;\n --singularity-node-blue-100: #dbeafe;\n --singularity-node-blue-200: #bfdbfe;\n --singularity-node-blue-300: #93c5fd;\n --singularity-node-blue-400: #60a5fa;\n --singularity-node-blue-500: #3b82f6;\n --singularity-node-blue-600: #2563eb;\n --singularity-node-blue-700: #1d4ed8;\n --singularity-node-blue-800: #1e40af;\n --singularity-node-blue-900: #1e3a8a;\n\n /* tailwind neutral */\n --singularity-node-neutral-50: #fafafa;\n --singularity-node-neutral-100: #f5f5f5;\n --singularity-node-neutral-200: #e5e7eb;\n --singularity-node-neutral-300: #d1d5db;\n --singularity-node-neutral-400: #9ca3af;\n --singularity-node-neutral-500: #6b7280;\n --singularity-node-neutral-600: #4b5563;\n --singularity-node-neutral-700: #374151;\n --singularity-node-neutral-800: #1f2937;\n --singularity-node-neutral-900: #111827;\n\n /* tailwind purple */\n --singularity-node-purple-50: #f5f3ff;\n --singularity-node-purple-100: #ede9fe;\n --singularity-node-purple-200: #ddd6fe;\n --singularity-node-purple-300: #c4b5fd;\n --singularity-node-purple-400: #a78bfa;\n --singularity-node-purple-500: #8b5cf6;\n --singularity-node-purple-600: #7c3aed;\n --singularity-node-purple-700: #6d28d9;\n --singularity-node-purple-800: #5b21b6;\n --singularity-node-purple-900: #4c1d95;\n\n /* tailwind teal */\n --singularity-node-teal-50: #f0fdfa;\n --singularity-node-teal-100: #ccfbf1;\n --singularity-node-teal-200: #99f6e4;\n --singularity-node-teal-300: #5eead4;\n --singularity-node-teal-400: #2dd4bf;\n --singularity-node-teal-500: #14b8a6;\n --singularity-node-teal-600: #0d9488;\n --singularity-node-teal-700: #0f766e;\n --singularity-node-teal-800: #115e59;\n --singularity-node-teal-900: #134e4a;\n\n /* tailwind typography sizing */\n --singularity-node-font-size-xs: 12px;\n --singularity-node-font-size-sm: 14px;\n --singularity-node-font-size-base: 16px;\n --singularity-node-font-size-lg: 18px;\n --singularity-node-font-size-xl: 20px;\n --singularity-node-font-size-2xl: 24px;\n --singularity-node-font-size-3xl: 30px;\n}\n\n.node-chrome--singularity .singularity-canvas-button {\n pointer-events: auto;\n background-color: var(--singularity-node-blue-600);\n transition: all 0.2s ease-in-out;\n border-radius: 4px;\n color: white;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n padding: 6px 8px;\n border-radius: 4px;\n cursor: pointer;\n font-family: var(--bde-app-font-family);\n font-size: 14px;\n}\n\n.node-chrome--singularity .singularity-canvas-button--large {\n padding: 12px 16px;\n}\n\n.node-chrome--singularity .singularity-canvas-button:hover {\n background-color: var(--singularity-node-blue-500);\n}\n\n.node-chrome--singularity .singularity-canvas-button:active {\n background-color: var(--singularity-node-blue-700);\n transform: scale(0.98);\n}\n\n.node-chrome--singularity .singularity-canvas-button__text {\n font-size: 13px;\n font-weight: 500;\n line-height: 1;\n font-family: var(--bde-app-font-family);\n flex-shrink: 0;\n}\n\n.node-chrome--singularity\n .singularity-canvas-button--large\n .singularity-canvas-button__text {\n font-size: 16px;\n}\n\n.node-chrome--singularity .singularity-canvas-button__icon {\n font-size: 16px;\n flex-shrink: 0;\n}\n\n.node-chrome--singularity .singularity-button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 4px;\n border-radius: 6px;\n background-color: var(--singularity-node-blue-600);\n}\n\n.node-chrome--singularity .singularity-position-wrapper {\n position: absolute;\n}\n\n.node-chrome--singularity .singularity-position-wrapper--center {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.node-chrome--singularity .singularity-position-wrapper--bottom-center {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n}\n\n.node-chrome--singularity .singularity-position-wrapper--right-center {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n}\n\n.node-chrome--singularity .singularity-sticky-section-edit {\n position: sticky;\n top: 0;\n left: 0;\n padding: 24px;\n z-index: 1000;\n display: inline-flex;\n}\n\n.node-chrome--singularity\n .node-singularity-hover-controls.node-hover-controls--outline {\n outline: 3px solid var(--singularity-node-blue-400);\n outline-offset: 0;\n}\n\n.node-chrome--singularity .singularity-node-titlebar-wrapper {\n outline: 3px solid var(--singularity-node-blue-600);\n outline-offset: -3px;\n}\n\n.node-chrome--singularity\n .node-singularity-hover-controls.node-hover-controls--active {\n outline: 3px solid var(--singularity-node-blue-600);\n outline-offset: 0;\n}\n\n.node-chrome--singularity .node-titlebar-wrapper {\n display: none;\n}\n\n.node-chrome--singularity .node-singularity-hover-controls {\n z-index: 1001 !important;\n}\n\n.node-chrome--singularity .singularity-node-titlebar-wrapper {\n position: absolute;\n pointer-events: none;\n direction: ltr;\n z-index: 1000;\n user-select: none;\n}\n\n.node-chrome--singularity .singularity-node-titlebar {\n pointer-events: auto;\n display: flex;\n align-items: center;\n position: absolute;\n bottom: 100%;\n padding: 4px;\n border-radius: 4px 4px 0 0;\n font-family: var(--bde-app-font-family);\n font-size: 13px;\n font-weight: 500;\n letter-spacing: normal;\n height: 32px;\n font-style: normal;\n text-transform: none;\n background-color: var(--singularity-node-blue-600);\n color: white;\n z-index: 1000000;\n min-width: 85px;\n left: 2px;\n}\n\n.node-chrome--singularity .singularity-node-titlebar.is-hidden {\n display: none;\n}\n\n.node-chrome--singularity .singularity-node-titlebar__text {\n padding: 4px 6px;\n}\n\n.node-chrome--singularity .singularity-canvas-add-another-button {\n pointer-events: auto;\n background-color: var(--singularity-node-blue-600);\n position: absolute;\n transition: all 0.2s ease-in-out;\n border-radius: 100%;\n color: #fff;\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n font-size: 20px;\n height: 40px;\n bottom: 50%;\n right: 0;\n cursor: pointer;\n transform: translate(50%, 50%);\n}\n\n.node-chrome--singularity\n .singularity-canvas-add-another-button:hover\n .singularity-canvas-add-another-button__inner {\n background-color: var(--singularity-node-blue-500);\n}\n\n.node-chrome--singularity .singularity-canvas-add-another-button__inner {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n border-radius: 100%;\n height: 100%;\n background-color: var(--singularity-node-blue-600);\n transition: background-color 0.2s ease-in-out;\n}\n\n\n.section-currently-rewriting-with-ai\n .builder-element:not(\n .breakdance--container-type-element\n ) {\n color: transparent !important;\n pointer-events: none;\n position: relative;\n border: 0 !important;\n isolation: isolate;\n}\n\n.section-currently-rewriting-with-ai\n .builder-element:not(\n .breakdance--container-type-element\n )::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n display: block;\n background-color: #d1d1d1;\n width: 100%;\n height: 100%;\n z-index: 1;\n animation: shimmer 3s infinite linear;\n background-image: linear-gradient(\n 90deg,\n #d1d1d1 0%,\n #f0f0f0 40%,\n #d1d1d1 80%\n );\n background-size: 200% 100%;\n}\n\n.section-currently-rewriting-with-ai .ee-gallery-item-caption,\n.section-currently-rewriting-with-ai .swiper-pagination,\n.section-currently-rewriting-with-ai .swiper-button-prev\n.section-currently-rewriting-with-ai .swiper-button-next\n{\n visibility: hidden;\n}\n\n.section-currently-rewriting-with-ai img {\n content: url(\'data:image/svg+xml;utf8,\');\n background: linear-gradient(90deg, #d1d1d1 0%, #f0f0f0 40%, #d1d1d1 80%);\n background-size: 200% 100%;\n animation: shimmer 3s infinite linear;\n}\n\n@keyframes shimmer {\n 0% {\n background-position: -200% 0;\n -webkit-mask-position: -200% 0;\n mask-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n -webkit-mask-position: 200% 0;\n mask-position: 200% 0;\n }\n}\n\n.section-currently-rewriting-with-ai .section-background-overlay {\n opacity: 1 !important;\n background-color: transparent !important;\n backdrop-filter: blur(100px) !important;\n}\n\n.node-chrome--singularity\n .breakdance-foreign-documents-overlay--singularity-mode {\n outline: 4px solid rgb(43, 105, 205);\n outline-offset: -4px;\n cursor: pointer;\n}\n\n.node-chrome--singularity\n .breakdance-foreign-documents-overlay--singularity-mode\n .breakdance-foreign-documents-overlay-titlebar {\n transform: translate(-50%, -50%);\n position: absolute;\n background-color: rgb(43, 105, 205);\n --addSectionButtonWidth: 160px;\n --addSectionButtonHeight: 60px;\n width: var(--addSectionButtonWidth);\n height: var(--addSectionButtonHeight);\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n\n.node-chrome--singularity\n .breakdance-foreign-documents-overlay--singularity-mode\n .breakdance-foreign-documents-overlay-titlebar\n a,\n.node-chrome--singularity\n .breakdance-foreign-documents-overlay--singularity-mode\n .breakdance-foreign-documents-overlay-titlebar\n a:hover {\n color: white;\n font-size: 20px;\n}\n\n.node-chrome--singularity\n .breakdance-foreign-documents-overlay--singularity-mode\n .breakdance-foreign-documents-overlay-titlebar-wrapper {\n top: 50%;\n left: 50%;\n}\n\n.node-chrome--singularity\n .breakdance-foreign-documents-overlay--singularity-mode\n .breakdance-icon {\n display: none;\n}\n\n.breakdance-empty-container-singularity {\n position: relative;\n font-family: var(--bde-app-font-family);\n}\n\n.breakdance-empty-container-singularity__title {\n font-size: var(--singularity-node-font-size-3xl);\n margin: 0;\n color: var(--singularity-node-neutral-900);\n font-family: var(--bde-app-font-family) !important;\n}\n\n.breakdance-empty-container-singularity__text {\n font-size: var(--singularity-node-font-size-base);\n margin: 0;\n color: var(--singularity-node-neutral-500);\n font-family: var(--bde-app-font-family);\n}\n\n.breakdance-empty-container-singularity__content {\n padding: 80px;\n font-family: var(--bde-app-font-family);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 24px;\n width: 100%;\n background-color: #fff;\n}\n\n.breakdance-empty-container-singularity__header {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n}\n\n.breakdance-empty-container-singularity__icon {\n color: var(--singularity-node-neutral-300);\n margin-bottom: 16px;\n}\n\n.breakdance-empty-container-singularity__option {\n display: inline-flex;\n flex-direction: column;\n justify-content: space-between;\n padding: 24px;\n width: 100%;\n background-color: var(--singularity-node-neutral-100);\n border-radius: 8px;\n cursor: pointer;\n aspect-ratio: 1 / 1;\n min-height: 300px;\n cursor: pointer;\n user-select: none;\n}\n\n.breakdance-empty-container-singularity__options {\n display: flex;\n gap: 16px;\n flex-wrap: nowrap;\n justify-content: center;\n}\n\n.breakdance-empty-container-singularity__option-text {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.breakdance-empty-container-singularity__option-text h2 {\n margin: 0;\n font-size: var(--singularity-node-font-size-xl);\n color: var(--singularity-node-neutral-900);\n font-family: var(--bde-app-font-family);\n}\n\n.breakdance-empty-container-singularity__option-text p {\n margin: 0;\n font-size: var(--singularity-node-font-size-base);\n color: var(--singularity-node-neutral-500);\n font-family: var(--bde-app-font-family);\n}\n\n.breakdance-empty-container-singularity__option:hover {\n background-color: var(--singularity-node-blue-50);\n border-color: var(--singularity-node-blue-300);\n color: var(--singularity-node-blue-600);\n}\n\n.breakdance-empty-container-singularity__option:active {\n background-color: var(--singularity-node-blue-600);\n border-color: var(--singularity-node-blue-400);\n color: #fff;\n}\n\n.breakdance-empty-container-singularity__option:hover h2 {\n color: var(--singularity-node-blue-600);\n}\n\n.breakdance-empty-container-singularity__option:hover p {\n color: var(--singularity-node-blue-500);\n}\n\n.breakdance-empty-container-singularity__option:active h2,\n.breakdance-empty-container-singularity__option:active p {\n color: #fff;\n}\n\n/* .breakdance-empty-container-singularity__option:focus {\n outline: 2px solid var(--singularity-node-blue-600);\n outline-offset: 2px;\n} */\n',x='/* Future Layer Canvas UX Styles */\n\n:root {\n --singularity-outline-width: 3px;\n}\n\n/* Active Element Wrapper - zero sized, positioned at element top-left */\n.futurelayer-active-element-wrapper {\n position: absolute;\n z-index: 9999;\n pointer-events: auto;\n}\n\n/* Active Element Outline - darker than hover */\n.futurelayer-active-element-outline {\n position: absolute;\n border: var(--singularity-outline-width) solid\n var(--singularity-node-blue-600);\n box-sizing: border-box;\n pointer-events: none;\n}\n\n/* Hovered Element Wrapper - zero sized, positioned at element top-left */\n.futurelayer-hovered-element-wrapper {\n position: absolute;\n z-index: 9998;\n pointer-events: auto;\n}\n\n/* Hovered Element Outline - lighter than active */\n.futurelayer-hovered-element-outline {\n position: absolute;\n border: var(--singularity-outline-width) solid\n var(--singularity-node-blue-300);\n box-sizing: border-box;\n pointer-events: none;\n}\n\n/* Hovered Header/Footer Wrapper - zero sized, positioned at element top-left */\n.futurelayer-hovered-header-footer-wrapper {\n position: absolute;\n z-index: 9998;\n pointer-events: auto;\n}\n\n/* Hovered Header/Footer Outline - transparent black overlay with cursor pointer */\n.futurelayer-hovered-header-footer-outline {\n position: absolute;\n background-color: var(--singularity-node-teal-100);\n border: var(--singularity-outline-width) solid\n var(--singularity-node-teal-500);\n opacity: 0.3;\n box-sizing: border-box;\n pointer-events: none;\n cursor: pointer;\n}\n\n/* Header/Footer Controls - covers entire element with pointer events */\n.futurelayer-header-footer-controls {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: auto;\n cursor: pointer;\n}\n\n.futurelayer-header-footer-edit-button {\n padding: 8px 16px;\n font-size: 14px;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-weight: 500;\n line-height: 1;\n background-color: var(--singularity-node-teal-600);\n color: white;\n white-space: nowrap;\n font-family: var(--bde-app-font-family);\n}\n\n.futurelayer-header-footer-edit-button:hover {\n background-color: var(--singularity-node-teal-700);\n}\n\n/* Repeatable Item Wrapper - zero sized, positioned at element top-left */\n.futurelayer-repeatable-item-wrapper {\n position: absolute;\n z-index: 9997;\n pointer-events: auto;\n}\n\n/* Repeatable Item Outline - positioned relative to wrapper */\n.futurelayer-repeatable-item-outline {\n position: absolute;\n outline: var(--singularity-outline-width) solid\n var(--singularity-node-blue-100);\n outline-offset: 0px;\n box-sizing: border-box;\n pointer-events: none;\n}\n\n/* Repeatable Item Controls - positioned above the outline, aligned with right edge */\n.futurelayer-repeatable-item-controls {\n position: absolute;\n top: -32px;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n pointer-events: auto;\n}\n\n.futurelayer-repeatable-control-button,\n.futurelayer-link-control-button {\n padding: 4px 8px;\n font-size: 12px;\n border-radius: 4px;\n border: none;\n cursor: pointer;\n font-weight: 500;\n line-height: 1;\n color: var(--singularity-node-blue-600);\n background-color: var(--singularity-node-blue-100);\n transition: all 0.2s ease-in-out;\n white-space: nowrap;\n font-family: var(--bde-app-font-family);\n}\n\n.futurelayer-repeatable-control-button.move-left, .futurelayer-repeatable-control-button.move-right {\n padding: 4px 4px;\n}\n\n.futurelayer-repeatable-control-button:hover {\n background-color: var(--singularity-node-blue-200);\n}\n\n.futurelayer-repeatable-control-button.remove:hover {\n background-color: var(--red600);\n color: white;\n}\n\n/* Link Wrapper Components */\n.futurelayer-link-control-button {\n background-color: var(--singularity-node-blue-600);\n color: white;\n}\n\n.futurelayer-link-control-button:hover {\n background-color: var(--singularity-node-blue-700);\n}\n\n/* Link Wrapper Wrapper - zero sized, positioned at element top-left */\n.futurelayer-link-wrapper-wrapper {\n position: absolute;\n z-index: 9996;\n pointer-events: auto;\n}\n\n/* Link Wrapper Outline - positioned relative to wrapper */\n.futurelayer-link-wrapper-outline {\n position: absolute;\n border: 1px dotted #ff6b35;\n box-sizing: border-box;\n pointer-events: none;\n}\n\n/* Link Wrapper Controls - positioned below the outline, aligned with right edge */\n.futurelayer-link-wrapper-controls {\n position: absolute;\n height: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n pointer-events: auto;\n}\n\n\n/* Gallery Image Wrapper - zero sized, positioned at image top-left */\n.futurelayer-gallery-image-wrapper {\n position: absolute;\n z-index: 9997;\n pointer-events: auto;\n}\n\n/* Gallery Image Outline - positioned relative to wrapper */\n.futurelayer-gallery-image-outline {\n position: absolute;\n outline: var(--singularity-outline-width) solid\n var(--singularity-node-blue-100);\n outline-offset: 0px;\n box-sizing: border-box;\n pointer-events: none;\n}\n\n/* Add Section Controls - positioned at bottom center of section with 50% overlap */\n.futurelayer-add-section-controls {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: auto;\n}\n\n.futurelayer-add-section-button {\n padding: 8px 16px;\n font-size: 14px;\n border: none;\n font-family: var(--bde-app-font-family);\n border-radius: 4px;\n cursor: pointer;\n font-weight: 500;\n line-height: 1;\n background-color: var(--singularity-node-blue-600);\n color: white;\n white-space: nowrap;\n}\n\n.futurelayer-add-section-button:hover {\n background-color: var(--singularity-node-blue-700);\n}\n\n/* Removable Element Wrapper - zero sized, positioned at element top-left */\n.futurelayer-removable-element-wrapper {\n position: absolute;\n z-index: 9999;\n pointer-events: auto;\n}\n\n/* Removable Element Controls - positioned to the right of the element */\n.futurelayer-removable-element-controls {\n position: absolute;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 4px;\n pointer-events: auto;\n}\n\n.futurelayer-removable-control-button {\n padding: 4px;\n font-size: 12px;\n border-radius: 4px;\n border: none;\n cursor: pointer;\n font-weight: 500;\n line-height: 1;\n color: var(--singularity-node-blue-600);\n background-color: var(--singularity-node-blue-100);\n transition: all 0.2s ease-in-out;\n white-space: nowrap;\n font-family: var(--bde-app-font-family);\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.futurelayer-removable-control-button:hover {\n background-color: var(--singularity-node-blue-200);\n}\n\n.futurelayer-removable-control-button.delete:hover {\n background-color: var(--red600);\n color: white;\n}\n\n/* Removed Elements - use opacity instead of display: none */\n[data-futurelayer-removed="true"] {\n opacity: 0.2 !important;\n filter: grayscale(100%);\n}\n';var w=n(82256),I=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:e.classes},[e.isOnboardingMode?[t("NodeOnboardingHoverControls")]:e.isSingularityMode?[t("FutureLayerNodeChrome")]:[t("div",{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}]},[t("SpacingBars"),t("ColumnDragSizer")],1),t("NodeTitlebar"),t("NodeGhostTitlebar"),t("NodeHoverControls"),t("NodeContentEditable")]],2)},P=[],k=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"drag-dots-wrapper",style:e.dragDotsWrapperPositionStyle},[t("div",{staticClass:"drag-dot drag-dot-top-left",on:{mousedown:e.dragStart}}),t("div",{staticClass:"drag-dot drag-dot-top-middle",on:{mousedown:e.dragStart}}),t("div",{staticClass:"drag-dot drag-dot-top-right",on:{mousedown:e.dragStart}}),t("div",{staticClass:"drag-dot drag-dot-bottom-right",on:{mousedown:e.dragStart}}),t("div",{staticClass:"drag-dot drag-dot-bottom-middle",on:{mousedown:e.dragStart}}),t("div",{staticClass:"drag-dot drag-dot-bottom-left",on:{mousedown:e.dragStart}}),t("div",{staticClass:"drag-dot drag-dot-middle-left",on:{mousedown:e.dragStart}}),t("div",{staticClass:"drag-dot drag-dot-middle-right",on:{mousedown:e.dragStart}})])},E=[],T=n(13635);function D(e){return(t,n)=>{if(c.uiStore.activeElementId){const s=(e,t)=>e+t>=0?e+t:0;if("xProperty"in e&&e.xProperty){const i=e.xProperty.replace("%%CURRENTMEDIAQUERY%%",c.uiStore.currentBreakpoint.id),o=s(t.width,n.lastXChange);c.documentStore.throttledPropertyChanged({elementId:c.uiStore.activeElementId,path:i,value:{number:o,unit:"px"},meta:{snapshotLabel:"Resize element"}})}if("yProperty"in e&&e.yProperty){const i=e.yProperty.replace("%%CURRENTMEDIAQUERY%%",c.uiStore.currentBreakpoint.id),o=s(t.height,n.lastYChange);c.documentStore.throttledPropertyChanged({elementId:c.uiStore.activeElementId,path:i,value:{number:o,unit:"px"},meta:{snapshotLabel:"Resize element"}})}}}}var A=n(34676),Z=n(12721);const O={xProperty:"design.size.width.%%CURRENTMEDIAQUERY%%"};let M=class extends s.ZP{constructor(){super(...arguments),this.mouseDragInfo=!1,this.dragDotsWrapperPositionStyle={display:"none"},this.dragCallback=!1,this.unsubscribeFromStorePositionDotsWrapper=()=>{},this.easyEvent=new Z.hF}nextTickPositionDragDotsWrapper(){(0,A.forceNextTick)((()=>this.positionDragDotsWrapper()))}beforeMount(){this.positionDragDotsWrapper(),this.unsubscribeFromStorePositionDotsWrapper=this.$store.subscribe(this.nextTickPositionDragDotsWrapper),window.addEventListener("resize",this.nextTickPositionDragDotsWrapper)}beforeDestroy(){this.unsubscribeFromStorePositionDotsWrapper(),window.removeEventListener("resize",this.nextTickPositionDragDotsWrapper)}dragStart(e){e.preventDefault(),e.stopPropagation(),this.mouseDragInfo={startX:e.clientX,startY:e.clientY,currentX:e.clientX,currentY:e.clientY,lastXChange:0,lastYChange:0,totalXChange:0,totalYChange:0},this.dragCallback=D(O),this.easyEvent.on("mousemove",this.dragging),this.easyEvent.on("mouseup",this.dragEnd)}dragging(e){if((0,Z.Pm)(e)){e.preventDefault(),e.stopPropagation();const t=(0,T.nX)();if(!t||!this.mouseDragInfo)return;this.mouseDragInfo={...this.mouseDragInfo,currentX:e.clientX,currentY:e.clientY,lastXChange:e.clientX-this.mouseDragInfo.currentX,lastYChange:e.clientY-this.mouseDragInfo.currentY,totalXChange:e.clientX-this.mouseDragInfo.startX,totalYChange:e.clientY-this.mouseDragInfo.startY},this.dragCallback&&this.dragCallback(t,this.mouseDragInfo),this.positionDragDotsWrapper()}}dragEnd(e){e.preventDefault(),e.stopPropagation(),this.easyEvent.removeAll(),this.mouseDragInfo=!1,this.dragCallback=!1}positionDragDotsWrapper(){c.uiStore.activeElementId||(this.dragDotsWrapperPositionStyle={display:"none"});const e=(0,T.nX)();if(!e)return;const{x:t,y:n,width:s,height:i}=e;this.dragDotsWrapperPositionStyle={position:"absolute",top:n.toString()+"px",left:t.toString()+"px",width:s.toString()+"px",height:i.toString()+"px"}}};M=(0,r.gn)([(0,l.wA)({})],M);const B=M,L=B;var N=n(1001),F=(0,N.Z)(L,k,E,!1,null,null,null);const R=F.exports;var V=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._l(e.bars,(function(n,s){return t("SpacingBar",{key:s,attrs:{bar:n,isDragging:e.isDragging,isActiveBar:e.clickedHandle===n.location},on:{mousedown:function(t){return e.dragStart(t,n.location)}}})})),1)},$=[],W=n(23493),U=n.n(W);let z=class extends s.ZP{constructor(){super(...arguments),this.clickedHandle=!1,this.mouseDragInfo=!1,this.throttledDragging=U()(this.dragging,60),this.unsubscribeFromStorePositionWrapper=()=>{},this.wrapperPositionStyle={display:"none"}}dragCallback(e,t,n){console.warn("To use DragMixin you must implement dragCallback()")}dragEndCallback(){}dragStartCallback(e){}dragStart(e,t){e.stopPropagation(),"string"===typeof t?(c.uiStore.setDragMixinDragging(!0),this.clickedHandle=t,this.mouseDragInfo={startX:e.clientX,startY:e.clientY,currentX:e.clientX,currentY:e.clientY,lastXChange:0,lastYChange:0,totalXChange:0,totalYChange:0},window.Breakdance.canvas.document.addEventListener("mousemove",this.throttledDragging),window.Breakdance.canvas.document.addEventListener("mouseup",this.dragEnd),this.dragStartCallback(t)):console.warn("To use drag mixin you must specify a handle parameter (string) as the second param of your mousedown=dragStart, i.e. mousedown=dragStart($event, 'myhandle')")}dragging(e){e.preventDefault(),e.stopPropagation(),requestAnimationFrame((()=>this._draggingFunc(e)))}_draggingFunc(e){const t=(0,T.nX)();t&&this.mouseDragInfo&&(this.mouseDragInfo={...this.mouseDragInfo,currentX:e.clientX,currentY:e.clientY,lastXChange:e.clientX-this.mouseDragInfo.currentX,lastYChange:e.clientY-this.mouseDragInfo.currentY,totalXChange:e.clientX-this.mouseDragInfo.startX,totalYChange:e.clientY-this.mouseDragInfo.startY},this.clickedHandle&&this.dragCallback(t,this.mouseDragInfo,this.clickedHandle),this.positionWrapper(),(0,T.a7)())}dragEnd(e){e.preventDefault(),e.stopPropagation(),window.Breakdance.canvas.document.removeEventListener("mousemove",this.throttledDragging),window.Breakdance.canvas.document.removeEventListener("mouseup",this.dragEnd),this.mouseDragInfo=!1,this.clickedHandle=!1,c.uiStore.setDragMixinDragging(!1),this.dragEndCallback(),(0,T.a7)()}get isDragging(){return!!this.mouseDragInfo}nextTickPositionsWrapper(){(0,A.forceNextTick)(this.positionWrapper)}beforeMount(){this.positionWrapper(),this.unsubscribeFromStorePositionWrapper=this.$store.subscribe(this.nextTickPositionsWrapper),window.addEventListener("resize",this.nextTickPositionsWrapper)}beforeDestroy(){this.unsubscribeFromStorePositionWrapper(),window.removeEventListener("resize",this.nextTickPositionsWrapper)}positionWrapper(){if(!c.uiStore.activeElementId)return void(this.wrapperPositionStyle={display:"none"});const e=(0,T.nX)();if(!e)return;const{x:t,y:n,width:s,height:i}=e;this.wrapperPositionStyle={position:"absolute",top:`${n}px`,left:`${t}px`,width:`${s}px`,height:`${i}px`}}};z=(0,r.gn)([l.wA],z);var H=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"spacing-bar",class:e.classList,style:e.style,on:{mousedown:function(t){return e.$emit("mousedown",t)},mouseover:function(t){e.isHovering=!0},mouseleave:function(t){e.isHovering=!1}}},[t("div",{staticClass:"spacing-bar-current-value"},[e._v(e._s(e.value)+"px")])])},G=[],K=n(27361),j=n.n(K);function q(e,t){const n=X(e,t);return n||0}function X(e,t){if(!c.uiStore.activeElement)return!1;const n=Y(e,c.uiStore.currentBreakpoint.id);let s=parseInt(j()(c.uiStore.activeElement,`data.properties.${n}.number`));s||(s=0);let i=j()(c.uiStore.activeElement,`data.properties.${n}.unit`);if(i||(i="px"),"px"!==i&&0!==s){const e=(0,T.lx)(c.uiStore.activeElement);if(!e)return!1;const n=parseInt(e.getPropertyValue(t));return n}return s}function Y(e,t){return e.replace("%%BREAKPOINT%%",t)}var Q=n(31044);let J=class extends s.ZP{constructor(){super(...arguments),this.isHovering=!1,this.resizeObserver=new ResizeObserver(this.onActiveElementResize),this.activeElementPositionAndSize=null,this.valueAtMomentOfElementPositionAndSizeCalculation=null}get value(){return q(this.bar.affectedPropertyPath,this.bar.cssProperty)}get activeElement(){return Q.kD.activeElement}updateActiveElementPositionWhenItsPresent(){const e=this.activeElement;if(e){const t=(0,T.dq)(e);if(t)return this.activeElementPositionAndSize=(0,T.o7)(t)||null,void(this.valueAtMomentOfElementPositionAndSizeCalculation=this.value)}this.activeElementPositionAndSize=null,this.valueAtMomentOfElementPositionAndSizeCalculation=null}mounted(){this.intervalHandle=setInterval((()=>{(0,A.forceNextTick)(this.updateActiveElementPositionWhenItsPresent)}),50)}handleActiveElementChange(){this.updateActiveElementPositionWhenItsPresent(),this.resizeObserver.disconnect();const e=this.activeElement;if(e){const t=(0,T.dq)(e);t&&(this.resizeObserver.observe(t,{box:"border-box"}),t.parentElement&&this.resizeObserver.observe(t.parentElement,{box:"border-box"}))}}onActiveElementResize(){this.updateActiveElementPositionWhenItsPresent()}get classList(){return[`spacing-bar-${this.bar.location}`]}get style(){return this.isDragging&&this.isActiveBar||this.isHovering&&!this.isDragging?{...this.barStyle,opacity:1}:this.barStyle}get barStyle(){const e=this.activeElementPositionAndSize;if(!e)return{};const t=this.valueAtMomentOfElementPositionAndSizeCalculation||this.value,{width:n,height:s,y:i,x:o}=e,a=t>5?t:5;switch(this.bar.location){case"inside-top":return{width:`${n}px`,height:`${a}px`,top:`${i}px`,left:`${o}px`,cursor:"row-resize"};case"outside-top":return{width:`${n}px`,height:`${a}px`,top:`${-a+i}px`,left:`${o}px`,cursor:"row-resize"};case"inside-bottom":return{width:`${n}px`,height:`${a}px`,top:i+s-a+"px",left:`${o}px`,cursor:"row-resize"};case"outside-bottom":return{width:`${n}px`,height:`${a}px`,top:`${i+s}px`,left:`${o}px`,cursor:"row-resize"};case"inside-left":return{width:`${a}px`,top:`${i}px`,height:`${s}px`,left:`${o}px`,cursor:"col-resize"};case"outside-left":return{width:`${a}px`,top:`${i}px`,height:`${s}px`,left:o-a+"px",cursor:"col-resize"};case"inside-right":return{width:`${a}px`,top:`${i}px`,height:`${s}px`,left:o+n-a+"px",cursor:"col-resize"};case"outside-right":return{width:`${a}px`,top:`${i}px`,height:`${s}px`,left:`${o+n}px`,cursor:"col-resize"};default:return{}}}beforeDestroy(){this.resizeObserver.disconnect(),this.intervalHandle&&clearInterval(this.intervalHandle)}};(0,r.gn)([(0,l.fI)()],J.prototype,"bar",void 0),(0,r.gn)([(0,l.fI)()],J.prototype,"isDragging",void 0),(0,r.gn)([(0,l.fI)()],J.prototype,"isActiveBar",void 0),(0,r.gn)([(0,l.RL)("activeElement",{immediate:!0})],J.prototype,"handleActiveElementChange",null),J=(0,r.gn)([(0,l.wA)({})],J);const ee=J,te=ee;var ne=(0,N.Z)(te,H,G,!1,null,null,null);const se=ne.exports;var ie=n(84274),oe=n(40681),ae=n(54120);let re=class extends((0,l.Wr)(z)){constructor(){super(...arguments),this.originalValue=!1}get bars(){return this.activeElementSpacingBars?this.activeElementSpacingBars:[]}get activeElementSpacingBars(){return!!c.uiStore.activeElement&&(!(0,ae.CO)(c.uiStore.activeElement.id)&&c.configStore.element(c.uiStore.activeElement.data.type).spacingBars)}dragCallback(e,t,n){const s=this.bars.filter((e=>e.location===n)).pop();if(!c.uiStore.activeElementId||!s)return;let i=0,o=X(s.affectedPropertyPath,s.cssProperty);switch(o||(o=0),this.originalValue||(this.originalValue=o),n){case"inside-top":case"inside-bottom":case"outside-top":case"outside-bottom":i=this.originalValue+t.totalYChange;break;case"inside-left":case"inside-right":case"outside-left":case"outside-right":i=this.originalValue+t.totalXChange;break}i<0&&(i=0);const a=Y(s.affectedPropertyPath,c.uiStore.currentBreakpoint.id);c.documentStore.throttledPropertyChanged({elementId:c.uiStore.activeElementId,path:a,value:{number:i,unit:"px",style:`${i}px`},meta:{snapshotLabel:ie.AZ.forElementByTreeNodeId(c.uiStore.activeElementId,a,oe.P.CHANGE)}})}dragEndCallback(){this.originalValue=!1}};re=(0,r.gn)([(0,l.wA)({components:{SpacingBar:se}})],re);const le=re,ce=le;var de=(0,N.Z)(ce,V,$,!1,null,null,null);const ue=de.exports;var pe=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.shouldShow?t("div",{staticClass:"drag-dots-wrapper",style:e.wrapperPositionStyle},[e.isNotFarLeftColumn?t("div",{staticClass:"drag-dot drag-dot-middle-left",on:{mousedown:function(t){return e.dragStart(t,"left")}}},[e.resizedWidths&&"left"in e.resizedWidths?t("div",{staticClass:"drag-dots-column-widths-values"},[t("div",{staticClass:"drag-dots-left-width"},[e._v(" "+e._s(e.resizedWidths.left.siblingWidth)+"% ")]),t("div",{staticClass:"drag-dots-right-width"},[e._v(" "+e._s(e.resizedWidths.left.resizedWidth)+"% ")])]):e._e()]):e._e(),e.isNotFarRightColumn?t("div",{staticClass:"drag-dot drag-dot-middle-right",on:{mousedown:function(t){return e.dragStart(t,"right")}}},[e.resizedWidths&&"right"in e.resizedWidths?t("div",{staticClass:"drag-dots-column-widths-values"},[t("div",{staticClass:"drag-dots-left-width"},[e._v(" "+e._s(e.resizedWidths.right.resizedWidth)+"% ")]),t("div",{staticClass:"drag-dots-right-width"},[e._v(" "+e._s(e.resizedWidths.right.siblingWidth)+"% ")])]):e._e()]):e._e()]):e._e()},he=[],ge=n(31381),me=n(38020);function ve(e){const t=fe(e),n=_e(e);if(!t||!n)return!1;const s=(0,me.v)(t/n*100);return s||!1}function ye(e,t,n){const s=n,i=_e(e);if(!s||!i)return!1;const o=(s+t)/i*100;return(0,me.v)(o)}function fe(e){const t=(0,T.Sv)(e);return!!t&&t.width}function _e(e){const t=(0,ge.getNodeParent)(c.documentStore.document.tree,e.id);if(t){const e=(0,T.Sv)(t);if(e)return e.width}return!1}function be(e){const t=(0,T.lx)(e);if(!t)return!1;const n=parseInt(t.getPropertyValue("padding-left")),s=parseInt(t.getPropertyValue("padding-right"));if(Number.isNaN(n)||Number.isNaN(s))return!1;const i=_e(e);if(!i)return!1;const o=(n+s)/i*100;return Math.ceil(o)}var Se=n(884),Ce=n(92277);const xe=20;function we(e,t,n,s){const i="right"===s?t+1:t-1,o=e.children[i],a=e.children[t];if(!a||!o)return!1;if(t<0||i<0)return!1;const r=be(a),l=be(o);let c=xe;!1!==r&&!1!==l&&(c=Math.max(r,l));let d=100-(0,Se.IQ)(a)-(0,Se.IQ)(o),u=100-d-n;return n100-2*c&&(n=(100-d)/2,u=(100-d)/2),n=(0,me.v)(n),u=(0,me.v)(u),d=(0,me.v)(d),n+u+d!==100&&(u=100-d-n,u=(0,me.v)(u)),(0,Ce.l)(a.id,n),(0,Ce.l)(o.id,u),(0,Se.wr)(e),{resizedWidth:n,siblingWidth:u}}var Ie=n(69137),Pe=n(57088);let ke=class extends((0,l.Wr)(z)){constructor(){super(...arguments),this.resizedWidths=!1,this.widthOnDragStart=!1}get columnsAreNotResizeableAtBaseBreakpoint(){if(!this.activeColumn)return!1;const e=(0,Se.fy)(this.activeColumn);if(!e)return!1;const t="design.layout.stack_vertically",n="design.layout.fifty_percent",s=j()(e.data.properties,t,!1),i=j()(e.data.properties,n,!1);return s===Pe.Wp||i===Pe.Wp}get shouldShow(){return c.uiStore.currentBreakpoint.id===Pe.Wp&&this.activeColumn&&!this.columnsAreNotResizeableAtBaseBreakpoint}dragStartCallback(){Ie.n.startTransaction()}dragCallback(e,t,n){if(!this.activeColumn||"left"!==n&&"right"!==n)return;const s=(0,ge.getNodeIndex)(c.documentStore.document.tree,this.activeColumn.id),i=(0,ge.getNodeParent)(c.documentStore.document.tree,this.activeColumn.id);if(!1===s||!1===i)return;let o=0;if(this.widthOnDragStart||(this.widthOnDragStart=fe(this.activeColumn)),!this.widthOnDragStart)return;o="right"===n?t.totalXChange:-1*t.totalXChange;const a=ye(this.activeColumn,o,this.widthOnDragStart);if(!a)return;const r=we(i,s,a,n);r&&(this.resizedWidths={[n]:{resizedWidth:Number(r.resizedWidth.toFixed(2)),siblingWidth:Number(r.siblingWidth.toFixed(2))}})}dragEndCallback(){this.resizedWidths=!1,this.widthOnDragStart=!1,Ie.n.endTransaction("Resizing column")}get isNotFarLeftColumn(){if(!this.activeColumn)return!1;const e=(0,ge.getNodeIndex)(c.documentStore.document.tree,this.activeColumn.id);return!1!==e&&0!==e}get isNotFarRightColumn(){if(!this.activeColumn)return!1;const e=(0,ge.getNodeIndex)(c.documentStore.document.tree,this.activeColumn.id),t=(0,ge.getNodeParent)(c.documentStore.document.tree,this.activeColumn.id);return!1!==e&&!1!==t&&e!==t.children.length-1}get activeColumn(){return!!(0,Se.cG)(c.uiStore.activeElement)&&c.uiStore.activeElement}get columnWidthInPercent(){return!!this.activeColumn&&ve(this.activeColumn)}};ke=(0,r.gn)([(0,l.wA)({})],ke);const Ee=ke,Te=Ee;var De=(0,N.Z)(Te,pe,he,!1,null,null,null);const Ae=De.exports;var Ze=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"node-titlebar-wrapper":!0,"node-titlebar-wrapper-is-dragging":e.isDragging},style:e.wrapperPositionStyle},[t("div",{staticClass:"node-titlebar",class:e.titlebarClasses,style:e.titlebarPositionStyle,on:{contextmenu:e.openContextMenu}},[e.isDragAndDropEnabled?t("OnCanvasDragHandle",{attrs:{node:e.node}},[t("span",{staticClass:"node-titlebar-title",attrs:{title:e.__("Drag element")}},[t("span",{staticClass:"node-titlebar-button"},[t("Icon",{attrs:{icon:"breakdance"===e.builderMode?"MaximizeIcon":"GripDotsVerticalIcon",size:"breakdance"===e.builderMode?11:12}})],1),t("span",[e._v(" "+e._s(e.elementTitle)+" ")]),e.isDraftSection?t("span",{staticStyle:{"margin-left":"4px"}},[e._v(" "+e._s(e.__("(Draft)"))+" ")]):e._e()])]):[e._v(e._s(e.elementTitle))],e.hasParent?t("span",{staticClass:"node-titlebar-button node-titlebar-button-activate-parent",attrs:{title:e.__("Select parent")},on:{click:e.activateParent}},[t("Icon",{attrs:{icon:"ChevronDownIcon",rotate:"180",size:"10"}})],1):e._e(),e.hasSSr?t("span",{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}],class:{"node-titlebar-button":!0,"node-titlebar-margin-left":!0,"breakdance-node-titlebar-loading-spinner":e.isElementUpdating},attrs:{title:e.__("Refresh element")},on:{click:e.refreshSsr}},[t("Icon",{attrs:{icon:"RotateIcon",size:"13"}})],1):e._e(),t("span",{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}],class:{"node-titlebar-button":!0,"node-titlebar-margin-left":!e.hasSSr},attrs:{title:e.__("Duplicate")},on:{click:e.duplicate}},[t("Icon",{attrs:{icon:"breakdance"===e.builderMode?"DuplicateIcon":"DuplicateSolidIcon",size:"13"}})],1),t("span",{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}],staticClass:"node-titlebar-button",attrs:{title:e.__("Remove")},on:{click:e.remove}},[t("Icon",{attrs:{icon:"breakdance"===e.builderMode?"TrashIcon":"TrashSolidIcon",size:"12"}})],1)],2)])},Oe=[],Me=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{on:{mousedown:function(t){return t.stopPropagation(),e.updateCurrentlyDraggingElementId.apply(null,arguments)}}},[e._t("default")],2)},Be=[],Le=n(7824),Ne=n(53809),Fe=n(9950);let Re=class extends l.w3{constructor(){super(...arguments),this.lastSubmittedDrag=!1,this.easyEvent=new Z.hF}get nestingPermissions(){return(0,Fe.kE)(this.node)}get canvasElementDraggedId(){return c.uiStore.currentlyDraggingCanvasElementId}watchCanvasElementDraggedId(){this.dragStart()}updateCurrentlyDraggingElementId(){c.uiStore.setCanvasElementDraggedId(this.node.id)}dragStart(){if(!c.uiStore.hasFullAccess||!this.canvasElementDraggedId)return;this.easyEvent.on("mousemove",this.dragging),this.easyEvent.on("mouseup",this.dragEnd);const e=(0,ge.getNodeParent)(c.documentStore.document.tree,this.node.id);e&&this.setCanvasDragPlaceholderPosition({nodeIndex:-1,position:"before",parentId:e.id,onlyShowTargetOutline:!0}),(0,T.a7)()}setCanvasDragPlaceholderPosition(e){c.uiStore.setCanvasDragPlaceholderPosition(e)}dragging(e){if((0,Z.Pm)(e)){e.preventDefault(),e.stopPropagation();const t=e.clientX,n=e.clientY;c.uiStore.setDragMousePosition({x:t,y:n});const s=(0,Le.Qf)(t,n);if(void 0===s)return;const i=(0,ge.findNode)(c.documentStore.document.tree,s);if(void 0===i)return;const o=(0,Fe.PN)(c.documentStore.document.tree,i,this.nestingPermissions);if(!o)return;const a=o.id;if(s===this.node.id||(0,ge.treeNodeReduce)(((e,t)=>(t||(t=e.children.find((e=>s===e.id))),t)),this.node,void 0))this.setCanvasDragPlaceholderPosition({nodeIndex:-1,position:"before",parentId:a,onlyShowTargetOutline:!0}),this.setDropPosition(!1);else if(s===a)this.handleDragWhenMouseIsOverTheDropTargetButNotOverAChildElementOfTheDropTarget(t,n,s,this.node.id,o);else if(o.children.find((e=>s===e.id)))this.handleDragWhenMouseIsOverAChildOfTheDropTarget(t,n,s,this.node.id,o);else if((0,ge.treeNodeReduce)(((e,t)=>(t||(t=e.children.find((e=>s===e.id))),t)),o,void 0)){const e=(0,Le.dD)(t,n).reduce(((e,t)=>e||o.children.find((e=>e.id===t))),void 0);e&&this.handleDragWhenMouseIsOverAChildOfTheDropTarget(t,n,e.id,this.node.id,o)}}}dragEnd(e){e.preventDefault(),e.stopPropagation(),this.easyEvent.removeAll(),this.lastSubmittedDrag&&c.documentStore.moveElement(this.lastSubmittedDrag),c.uiStore.setDragMousePosition(null),this.setCanvasDragPlaceholderPosition(null),this.lastSubmittedDrag=!1,c.uiStore.endCanvasElementDrag(),(0,T.a7)()}handleDragWhenMouseIsOverAChildOfTheDropTarget(e,t,n,s,i,o=!1){const a=(0,Le.qE)(i),r="before"===(0,Le.dv)(e,t,n,a)?"before":"after",l=i.children.map((e=>e.id)).filter((e=>e!==s)),c=i.children.map((e=>e.id)).findIndex((e=>e===n));let d=l.findIndex((e=>e===n));"after"===r&&d++,!0===o?(this.setPlaceholder({dropTargetId:i.id,dragPlaceholderIndex:c,beforeOrAfter:r}),this.setDropPosition(!1)):(this.setPlaceholder({dropTargetId:i.id,dragPlaceholderIndex:c,beforeOrAfter:r}),this.setDropPosition({draggedElementId:s,droppedOnElementId:i.id,index:d}))}handleDragWhenMouseIsOverTheDropTargetButNotOverAChildElementOfTheDropTarget(e,t,n,s,i){if(0===i.children.length)this.setPlaceholder({dropTargetId:i.id,dragPlaceholderIndex:0,beforeOrAfter:"after"}),this.setDropPosition({draggedElementId:s,droppedOnElementId:i.id,index:0});else{const n=i.children.map(((e,t)=>({positionAndSize:(0,T.Sv)(e,"absolute"),index:t,id:e.id}))).filter((e=>e.positionAndSize)).map((e=>({min:{x:e.positionAndSize.x,y:e.positionAndSize.y},max:{x:e.positionAndSize.x+e.positionAndSize.width,y:e.positionAndSize.y+e.positionAndSize.height},nodeIndex:e.index,id:e.id}))).map((n=>({...n,distance:(0,Ne.T)(n,{x:e,y:t})}))),o=n.reduce(((e,t)=>e.distancee?"left":"right",c=r>t?"above":"below",d=(0,Le.qE)(i);let u;if(u="vertical"===d?"above"===c?"before":"after":"left"===l?"before":"after",o.id===s)return this.setPlaceholder({dropTargetId:i.id,dragPlaceholderIndex:o.nodeIndex,beforeOrAfter:u}),void this.setDropPosition(!1);const p=i.children.map((e=>e.id)).filter((e=>e!==s));let h=p.findIndex((e=>e===o.id));"after"===u&&h++,this.setPlaceholder({dropTargetId:i.id,dragPlaceholderIndex:o.nodeIndex,beforeOrAfter:u}),this.setDropPosition({draggedElementId:s,droppedOnElementId:i.id,index:h})}}setPlaceholder(e){(0,Fe.xJ)(c.documentStore.document.tree,this.node,e.dropTargetId)&&this.movePlaceholder(e.dropTargetId,e.dragPlaceholderIndex,e.beforeOrAfter)}setDropPosition(e){!1!==e?(0,Fe.xJ)(c.documentStore.document.tree,this.node,e.droppedOnElementId)&&(this.lastSubmittedDrag=e):this.lastSubmittedDrag=!1}movePlaceholder(e,t,n){let s=!1;const i=(0,ge.findNode)(c.documentStore.document.tree,e);if(i){const e=i.children[t],o=i.children[t-1],a=i.children[t+1];e&&e.id===this.node.id&&(s=!0),o&&o.id===this.node.id&&"before"===n&&(s=!0),a&&a.id===this.node.id&&"after"===n&&(s=!0)}if(c.uiStore.canvasDragPlaceholderPosition){const s=()=>t===c.uiStore.canvasDragPlaceholderPosition.nodeIndex+1,i=()=>t===c.uiStore.canvasDragPlaceholderPosition.nodeIndex-1;if(c.uiStore.canvasDragPlaceholderPosition.parentId===e){if(s()&&"after"===c.uiStore.canvasDragPlaceholderPosition.position&&"before"===n)return;if(i()&&"before"===c.uiStore.canvasDragPlaceholderPosition.position&&"after"===n)return}}this.setCanvasDragPlaceholderPosition({parentId:e,nodeIndex:t,position:n,onlyShowTargetOutline:s})}};(0,r.gn)([(0,l.fI)()],Re.prototype,"node",void 0),(0,r.gn)([(0,l.RL)("canvasElementDraggedId")],Re.prototype,"watchCanvasElementDraggedId",null),Re=(0,r.gn)([l.wA],Re);const Ve=Re,$e=Ve;var We=(0,N.Z)($e,Me,Be,!1,null,null,null);const Ue=We.exports;var ze=n(21115),He=n(85283),Ge=n(94550),Ke=n(16734),je=n(55735),qe=n(20210);let Xe=class extends l.w3{constructor(){super(...arguments),this.refreshRate=500,this.unsubscribeFromStorePositionWrapper=()=>{},this.titlebarPositionStyle={},this.wrapperPositionStyle={display:"none"},this.elementTitle=""}nextTickPositionsWrapper(){(0,A.forceNextTick)(this.calculateStylesAndTitle)}openContextMenu(e){e.stopPropagation(),e.preventDefault();const t=(0,ze.e)(e.clientX,e.clientY);this.elementId&&t&&c.uiStore.setOnCanvasRightClickMenuState({elementId:this.elementId,position:t})}get builderMode(){return c.configStore.builderMode}mounted(){this.calculateStylesAndTitle(),this.unsubscribeFromStorePositionWrapper=this.$store.subscribe(this.nextTickPositionsWrapper),window.addEventListener("resize",this.nextTickPositionsWrapper),this.interval=setInterval(this.nextTickPositionsWrapper,this.refreshRate),Ke.uq.register(je.r.SHIFT_ESC,(()=>{this.activateParent()}))}beforeDestroy(){this.unsubscribeFromStorePositionWrapper(),window.removeEventListener("resize",this.nextTickPositionsWrapper),clearInterval(this.interval),Ke.uq.unbind(je.r.SHIFT_ESC)}get isDraftSection(){if(!this.element)return!1;if(this.element.data.type!==Ge.SECTION_SLUG)return!1;const e=j()(this.element.data.properties,"settings.advanced.draft");return!!e}get isDragAndDropEnabled(){return c.uiStore.hasFullAccess}get isElementUpdating(){return!!this.elementId&&!!c.uiStore.elementsThatAreUpdating[this.elementId]}calculateStylesAndTitle(){!c.uiStore.elementWithContentEditable&&this.element?(this.elementTitle=this.getElementTitle(),this.wrapperPositionStyle=(0,T.Qi)((0,T.dq)(this.element)),this.titlebarPositionStyle=(0,T.A3)(this.element)):this.wrapperPositionStyle={display:"none"}}get titlebarClasses(){return{"node-titlebar-is-dragging":this.isDragging,"node-titlebar-is-draft-section":this.isDraftSection,"node-titlebar-is-offset":!!this.wrapperPositionStyle.outlineOffset}}get isDragging(){return c.uiStore.currentlyDraggingCanvasElementId===this.elementId}get element(){return c.uiStore.activeElement}get elementId(){return c.uiStore.activeElementId}getElementTitle(){return this.element?(0,qe.mH)(this.element):""}duplicate(){this.elementId&&c.documentStore.duplicateElementAndActivateIt(this.elementId)}remove(){null!==this.elementId&&c.documentStore.deleteElement({nodeId:this.elementId})}refreshSsr(){c.uiStore.setRefreshSsrElementId(this.elementId)}get hasSSr(){const e=this.element&&c.configStore.element(this.element.data.type);return e?e.template.includes("%%SSR%%"):""}get hasParent(){return this.parentElement&&"root"!==this.parentElement.data.type}get node(){return this.element||!1}activateParent(){this.parentElement&&c.uiStore.activateElement(this.parentElement.id)}get parentElement(){if(!this.element)return!1;const e=(0,ge.getNodeParent)(c.documentStore.document.tree,this.element.id);return e||!1}};Xe=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,OnCanvasDragHandle:Ue}})],Xe);const Ye=Xe,Qe=Ye;var Je=(0,N.Z)(Qe,Ze,Oe,!1,null,null,null);const et=Je.exports;var tt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"node-hover-controls",class:e.wrapperClassList,style:e.wrapperPositionStyle})},nt=[];let st=class extends l.w3{constructor(){super(...arguments),this.refreshRate=500,this.shouldShowControls=!1,this.unsubscribeFromStorePositionWrapper=()=>{},this.throttledNextTickPositionWrapper=U()((()=>(0,A.forceNextTick)((()=>this.positionWrapper()))),100),this.disableMouseHoverOnMouseLeaveCanvas=()=>{setTimeout((()=>c.uiStore.setLastHoveredOnCanvasElementId(null)),110)},this.throttledShowHoverControlsOnMouseMoveCanvas=U()(this.showHoverControlsOnMouseMoveCanvas,100),this.wrapperPositionStyle={display:"none"}}beforeMount(){this.positionWrapper(),this.unsubscribeFromStorePositionWrapper=this.$store.subscribe(this.throttledNextTickPositionWrapper),window.addEventListener("resize",this.throttledNextTickPositionWrapper)}mounted(){const e=window.Breakdance.canvas.document.getElementById("breakdance_canvas");e&&(e.addEventListener("mousemove",this.throttledShowHoverControlsOnMouseMoveCanvas),e.addEventListener("mouseleave",this.disableMouseHoverOnMouseLeaveCanvas),this.interval=setInterval(this.throttledNextTickPositionWrapper,this.refreshRate))}beforeDestroy(){const e=window.Breakdance.canvas.document.getElementById("breakdance_canvas");this.unsubscribeFromStorePositionWrapper(),window.removeEventListener("resize",this.throttledNextTickPositionWrapper),e?.removeEventListener("mousemove",this.throttledShowHoverControlsOnMouseMoveCanvas),clearInterval(this.interval)}get wrapperClassList(){return{"node-hover-controls-show":this.shouldShowControls&&this.isNotDragging,"node-hover-controls--outline":this.isNotDragging}}get isNotDragging(){return!c.uiStore.isCanvasElementBeingDragged&&!c.uiStore.isDragMixinDragging}get element(){if(!c.uiStore.lastHoveredOnCanvasElementId||c.uiStore.elementWithContentEditable)return!1;const e=(0,ge.findNode)(c.documentStore.document.tree,c.uiStore.lastHoveredOnCanvasElementId);return e||!1}setHoveredNode(e,t){const n=(0,Le.Qf)(e,t);if(void 0!==n){const e=(0,ge.findNode)(c.documentStore.document.tree,n);e&&c.uiStore.setLastHoveredOnCanvasElementId(e.id)}}showHoverControlsOnMouseMoveCanvas(e){const{clientX:t,clientY:n}=e;if(this.setHoveredNode(t,n),!1===this.element)return;const s=(0,T.Sv)(this.element,"absolute");if(!s)return;const{x:i,y:o,width:a,height:r}=s;this.shouldShowControls=t>i+a-48&&to&&n{},this.wrapperStyle={display:"none"},this.lastModifiedDomElement=null}mounted(){this.calculateWrapperStyles(),this.unsubscribeFromStorePositionWrapper=this.$store.subscribe(this.calculateWrapperStyles),window.addEventListener("resize",this.calculateWrapperStyles)}beforeDestroy(){this.unsubscribeFromStorePositionWrapper(),window.removeEventListener("resize",this.calculateWrapperStyles)}get domElement(){if(!c.uiStore.elementWithContentEditable)return null;const e=(0,ge.findNode)(c.documentStore.document.tree,c.uiStore.elementWithContentEditable);if(!e)return null;const t=(0,T.dq)(e);if("true"===t?.contentEditable)return this.lastModifiedDomElement=t,t;const n=t?.querySelector('[contenteditable="true"]');return n?(this.lastModifiedDomElement=n,n):null}calculateWrapperStyles(){(0,A.forceNextTick)((()=>{!this.domElement&&this.lastModifiedDomElement&&(this.lastModifiedDomElement.removeEventListener("input",this.calculateWrapperStyles),this.lastModifiedDomElement=null),this.wrapperStyle=(0,T.Qi)(this.domElement),this.domElement&&this.domElement.addEventListener("input",this.calculateWrapperStyles)}))}};dt=(0,r.gn)([(0,l.wA)({})],dt);const ut=dt,pt=ut;var ht=(0,N.Z)(pt,lt,ct,!1,null,null,null);const gt=ht.exports;var mt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"node-hover-controls node-hover-controls--onboarding",class:e.wrapperClassList,style:e.wrapperPositionStyle,on:{click:e.activateElement}},[t("div",{staticClass:"node-hover-onboarding-controls-actions"},[t("div",{staticClass:"node-hover-onboarding-controls-buttons"},[t("NodeOnboardingPaletteButtons",{attrs:{element:e.element}}),t("NodeOnboardingAIRewriteButton",{attrs:{element:e.element}}),t("NodeOnboardingReplaceSectionButton",{attrs:{element:e.element}})],1)]),t("NodeOnboardingAddSectionButton",{attrs:{element:e.element}})],1)},vt=[],yt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"node-hover-onboarding-controls-palette-buttons"},e._l(e.groupedGlobalColors,(function(n,s){return t("NodeOnboardingPaletteButton",{key:s,attrs:{colorGroup:n,elementId:e.element.id}})})),1)},ft=[],_t=n(6778),bt=n(36240);let St=class extends l.w3{get groupedGlobalColors(){return(0,_t.xS)(Q.cr.globalColors)}};(0,r.gn)([(0,l.fI)()],St.prototype,"element",void 0),St=(0,r.gn)([(0,l.wA)({components:{NodeOnboardingPaletteButton:bt.Z}})],St);const Ct=St,xt=Ct;var wt=(0,N.Z)(xt,yt,ft,!1,null,null,null);const It=wt.exports;var Pt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("button",{staticClass:"node-hover-onboarding-controls-buttons__button",attrs:{disabled:e.rewriteInProgress},on:{click:e.rewrite}},[e.rewriteInProgress?t("Icon",{staticClass:"is-spinning",attrs:{icon:"NotchSolidIcon",title:e.__("Importing the data"),size:"14"}}):t("Icon",{attrs:{icon:"SparklesSolidIcon",title:e.__("Success loading the data"),size:"14"}}),e._v(" "+e._s(e.__("Rewrite"))+" ")],1)},kt=[],Et=n(65913),Tt=n(47431);let Dt=class extends l.w3{constructor(){super(...arguments),this.rewriteInProgress=!1}async rewrite(){if(!this.rewriteInProgress&&this.element){this.rewriteInProgress=!0,(0,Tt.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"node_rewrite_button"});try{await(0,Et.H2)(this.element.id)}catch(e){console.error("Error during rewrite:",e)}this.rewriteInProgress=!1}}};(0,r.gn)([(0,l.fI)()],Dt.prototype,"element",void 0),Dt=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],Dt);const At=Dt,Zt=At;var Ot=(0,N.Z)(Zt,Pt,kt,!1,null,null,null);const Mt=Ot.exports;var Bt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("button",{staticClass:"node-hover-onboarding-controls-buttons__button",on:{click:e.replaceSection}},[t("Icon",{attrs:{icon:"ArrowsRotateSolidIcon",size:"14"}}),e._v(" "+e._s(e.__("Shuffle"))+" ")],1)},Lt=[],Nt=n(77622),Ft=n(36055);let Rt=class extends l.w3{replaceSection(){Q.kD.activateElement(this.element.id),(0,Nt.R4)(this.element.id),(0,Tt.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"node_shuffle_section_button"}),window.parent.postMessage({id:"",type:"RESPONSE",payload:{success:!0,payload:{message:(0,Ft.__)("Element activated"),elementId:this.element.id,tree:Q.Hb.document.tree.root.children,document:Q.Hb.document}}},"*")}};(0,r.gn)([(0,l.fI)()],Rt.prototype,"element",void 0),Rt=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],Rt);const Vt=Rt,$t=Vt;var Wt=(0,N.Z)($t,Bt,Lt,!1,null,null,null);const Ut=Wt.exports;var zt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"node-hover-onboarding-controls-add-section"},[t("button",{staticClass:"node-hover-onboarding-controls-buttons__button",on:{click:e.addSection}},[t("Icon",{attrs:{icon:"PlusIconSolid",size:"14"}}),e._v(" "+e._s(e.__("Add Section"))+" ")],1)])},Ht=[];let Gt=class extends l.w3{addSection(){(0,Tt.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:"node_add_section_button"}),(0,Nt.gs)(this.element)}};(0,r.gn)([(0,l.fI)({required:!0})],Gt.prototype,"element",void 0),Gt=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],Gt);const Kt=Gt,jt=Kt;var qt=(0,N.Z)(jt,zt,Ht,!1,null,null,null);const Xt=qt.exports;let Yt=class extends l.w3{constructor(){super(...arguments),this.refreshRate=500,this.shouldShowControls=!0,this.unsubscribeFromStorePositionWrapper=()=>{},this.throttledNextTickPositionWrapper=U()((()=>(0,A.forceNextTick)((()=>this.positionWrapper()))),100),this.disableMouseHoverOnMouseLeaveCanvas=()=>{setTimeout((()=>c.uiStore.setLastHoveredOnCanvasElementId(null)),110)},this.throttledShowHoverControlsOnMouseMoveCanvas=U()(this.showHoverControlsOnMouseMoveCanvas,100),this.wrapperPositionStyle={display:"none"}}beforeMount(){this.positionWrapper(),this.unsubscribeFromStorePositionWrapper=this.$store.subscribe(this.throttledNextTickPositionWrapper),window.addEventListener("resize",this.throttledNextTickPositionWrapper)}mounted(){const e=window.Breakdance.canvas.document.getElementById("breakdance_canvas");e&&(e.addEventListener("mousemove",this.throttledShowHoverControlsOnMouseMoveCanvas),e.addEventListener("mouseleave",this.disableMouseHoverOnMouseLeaveCanvas),this.interval=setInterval(this.throttledNextTickPositionWrapper,this.refreshRate))}beforeDestroy(){const e=window.Breakdance.canvas.document.getElementById("breakdance_canvas");this.unsubscribeFromStorePositionWrapper(),window.removeEventListener("resize",this.throttledNextTickPositionWrapper),e?.removeEventListener("mousemove",this.throttledShowHoverControlsOnMouseMoveCanvas),clearInterval(this.interval)}get wrapperClassList(){return{"node-hover-controls-show":!0,"node-hover-controls--outline":this.isNotDragging}}get isNotDragging(){return!c.uiStore.isCanvasElementBeingDragged&&!c.uiStore.isDragMixinDragging}activateElement(){this.element&&(window.parent.postMessage({id:"",type:"RESPONSE",payload:{success:!0,payload:{message:"Element activated",activeElementId:this.element.id,document:c.documentStore.document}}},"*"),c.uiStore.activateElement(this.element.id))}get element(){if(!c.uiStore.lastHoveredOnCanvasElementId||c.uiStore.elementWithContentEditable)return!1;const e=(0,ge.findNode)(c.documentStore.document.tree,c.uiStore.lastHoveredOnCanvasElementId);return e||!1}setHoveredNode(e,t){const n=(0,Le.Qf)(e,t);if(void 0!==n){const e=(0,ge.findNode)(c.documentStore.document.tree,n);e&&"EssentialElements\\Section"===e.data.type&&c.uiStore.setLastHoveredOnCanvasElementId(e.id)}}showHoverControlsOnMouseMoveCanvas(e){const{clientX:t,clientY:n}=e;if(this.setHoveredNode(t,n),!1===this.element)return;const s=(0,T.Sv)(this.element,"absolute");if(!s)return;const{x:i,y:o,width:a,height:r}=s;this.shouldShowControls=t>i+a-48&&to&&n{},this.titlebarPositionStyle={},this.wrapperPositionStyle={display:"none"},this.elementTitle=""}nextTickPositionsWrapper(){(0,A.forceNextTick)(this.calculateStylesAndTitle)}get builderMode(){return c.configStore.builderMode}get isDragging(){return!!c.uiStore.currentlyDraggingCanvasElementId}mounted(){this.calculateStylesAndTitle(),this.unsubscribeFromStorePositionWrapper=this.$store.subscribe(this.nextTickPositionsWrapper),window.addEventListener("resize",this.nextTickPositionsWrapper),this.interval=setInterval(this.nextTickPositionsWrapper,this.refreshRate)}beforeDestroy(){this.unsubscribeFromStorePositionWrapper(),window.removeEventListener("resize",this.nextTickPositionsWrapper),clearInterval(this.interval)}get isDraftSection(){if(!this.element)return!1;if(this.element.data.type!==Ge.SECTION_SLUG)return!1;const e=j()(this.element.data.properties,"settings.advanced.draft");return!!e}calculateStylesAndTitle(){!this.element||this.activeElement&&this.activeElement.id===this.elementId?this.wrapperPositionStyle={display:"none"}:(this.elementTitle=this.getElementTitle(),this.wrapperPositionStyle=(0,T.Qi)((0,T.dq)(this.element)),this.titlebarPositionStyle=(0,T.A3)(this.element))}get titlebarClasses(){return{"node-titlebar-is-offset":!!this.wrapperPositionStyle.outlineOffset}}get activeElement(){return c.uiStore.activeElement}get element(){if(!c.uiStore.lastHoveredOnCanvasElementId)return!1;const e=(0,ge.findNode)(c.documentStore.document.tree,c.uiStore.lastHoveredOnCanvasElementId);return e||!1}get elementId(){return this.element?this.element.id:null}getElementTitle(){return this.element?(0,qe.mH)(this.element):""}get elementIcon(){return this.element?(0,qe.Ff)(this.element,!0):"MaximizeIcon"}get node(){return this.element||!1}};an=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,OnCanvasDragHandle:Ue,ElementIcon:on.Z}})],an);const rn=an,ln=rn;var cn=(0,N.Z)(ln,nn,sn,!1,null,null,null);const dn=cn.exports;var un=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"node-titlebar-wrapper":!0,"singularity-node-titlebar-wrapper":!0,"node-titlebar-wrapper-is-dragging":e.isDragging},style:e.wrapperPositionStyle},[t("div",{staticClass:"node-titlebar node-titlebar",class:e.titlebarClasses,style:e.titlebarPositionStyle,on:{contextmenu:e.openContextMenu}},[e.isDragAndDropEnabled?t("OnCanvasDragHandle",{attrs:{node:e.node}},[t("span",{staticClass:"node-titlebar-title",attrs:{title:"Drag element"}},[t("span",{staticClass:"node-titlebar-button"},[t("Icon",{attrs:{icon:"breakdance"===e.builderMode?"MaximizeIcon":"GripDotsVerticalIcon",size:"breakdance"===e.builderMode?11:12}})],1),t("span",[e._v(" "+e._s(e.elementTitle)+" ")]),e.isDraftSection?t("span",{staticStyle:{"margin-left":"4px"}},[e._v(" (Draft) ")]):e._e()])]):[e._v(e._s(e.elementTitle))],e.hasParent?t("span",{staticClass:"node-titlebar-button node-titlebar-button-activate-parent",attrs:{title:"Select parent"},on:{click:e.activateParent}},[t("Icon",{attrs:{icon:"ChevronDownIcon",rotate:"180",size:"10"}})],1):e._e(),e.hasSSr?t("span",{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}],class:{"node-titlebar-button":!0,"node-titlebar-margin-left":!0,"breakdance-node-titlebar-loading-spinner":e.isElementUpdating},attrs:{title:"Refresh element"},on:{click:e.refreshSsr}},[t("Icon",{attrs:{icon:"RotateIcon",size:"13"}})],1):e._e(),t("span",{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}],class:{"node-titlebar-button":!0,"node-titlebar-margin-left":!e.hasSSr},attrs:{title:"Duplicate"},on:{click:e.duplicate}},[t("Icon",{attrs:{icon:"breakdance"===e.builderMode?"DuplicateIcon":"DuplicateSolidIcon",size:"13"}})],1),t("span",{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}],staticClass:"node-titlebar-button",attrs:{title:"Remove"},on:{click:e.remove}},[t("Icon",{attrs:{icon:"breakdance"===e.builderMode?"TrashIcon":"TrashSolidIcon",size:"12"}})],1)],2)])},pn=[];let hn=class extends l.w3{constructor(){super(...arguments),this.refreshRate=500,this.unsubscribeFromStorePositionWrapper=()=>{},this.titlebarPositionStyle={},this.wrapperPositionStyle={display:"none"},this.elementTitle=""}nextTickPositionsWrapper(){(0,A.forceNextTick)(this.calculateStylesAndTitle)}openContextMenu(e){e.stopPropagation(),e.preventDefault();const t=(0,ze.e)(e.clientX,e.clientY);this.elementId&&t&&c.uiStore.setOnCanvasRightClickMenuState({elementId:this.elementId,position:t})}get builderMode(){return c.configStore.builderMode}mounted(){this.calculateStylesAndTitle(),this.unsubscribeFromStorePositionWrapper=this.$store.subscribe(this.nextTickPositionsWrapper),window.addEventListener("resize",this.nextTickPositionsWrapper),this.interval=setInterval(this.nextTickPositionsWrapper,this.refreshRate),Ke.uq.register(je.r.SHIFT_ESC,(()=>{this.activateParent()}))}beforeDestroy(){this.unsubscribeFromStorePositionWrapper(),window.removeEventListener("resize",this.nextTickPositionsWrapper),clearInterval(this.interval),Ke.uq.unbind(je.r.SHIFT_ESC)}get isDraftSection(){if(!this.element)return!1;if(this.element.data.type!==Ge.SECTION_SLUG)return!1;const e=j()(this.element.data.properties,"settings.advanced.draft");return!!e}get isDragAndDropEnabled(){return c.uiStore.hasFullAccess}get isElementUpdating(){return!!this.elementId&&!!c.uiStore.elementsThatAreUpdating[this.elementId]}calculateStylesAndTitle(){!c.uiStore.elementWithContentEditable&&this.element?(this.elementTitle=this.getElementTitle(),this.wrapperPositionStyle=(0,T.Qi)((0,T.dq)(this.element),4),this.titlebarPositionStyle=(0,T.A3)(this.element)):this.wrapperPositionStyle={display:"none"}}get titlebarClasses(){return{"node-titlebar-is-dragging":this.isDragging,"node-titlebar-is-draft-section":this.isDraftSection}}get isDragging(){return c.uiStore.currentlyDraggingCanvasElementId===this.elementId}get element(){return c.uiStore.activeElement}get elementId(){return c.uiStore.activeElementId}get elementIcon(){return this.element?(0,qe.Ff)(this.element,!0):"MaximizeIcon"}getElementTitle(){return this.element?(0,qe.mH)(this.element):""}duplicate(){this.elementId&&c.documentStore.duplicateElementAndActivateIt(this.elementId)}remove(){null!==this.elementId&&c.documentStore.deleteElement({nodeId:this.elementId})}refreshSsr(){c.uiStore.setRefreshSsrElementId(this.elementId)}get hasSSr(){const e=this.element&&c.configStore.element(this.element.data.type);return e?e.template.includes("%%SSR%%"):""}get hasParent(){return this.parentElement&&"root"!==this.parentElement.data.type}get node(){return this.element||!1}activateParent(){this.parentElement&&c.uiStore.activateElement(this.parentElement.id)}get parentElement(){if(!this.element)return!1;const e=(0,ge.getNodeParent)(c.documentStore.document.tree,this.element.id);return e||!1}};hn=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,OnCanvasDragHandle:Ue}})],hn);const gn=hn,mn=gn;var vn=(0,N.Z)(mn,un,pn,!1,null,null,null);const yn=vn.exports;var fn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"node-hover-controls node-singularity-hover-controls",class:e.wrapperClassList,style:e.wrapperPositionStyle},[e.isSectionElement&&e.element?[e.element?t("AddSectionButton",{attrs:{sectionId:e.element.id}}):e._e(),e.element&&!e.isActiveElement?t("EditSectionButton",{attrs:{elementId:e.element.id}}):e._e()]:e._e(),e.isChildOfGrid&&e.element?[e.element?t("AddAnotherButton",{attrs:{elementId:e.element.id}}):e._e()]:e._e()],2)},_n=[],bn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-position-wrapper singularity-position-wrapper--bottom-center"},[t("div",{staticClass:"singularity-button-group"},[t("SingularityCanvasButton",{attrs:{icon:"PlusIconSolid",text:"Section"},on:{click:e.addSection}})],1)])},Sn=[],Cn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:e.classes,attrs:{role:"button"},on:{click:function(t){return e.$emit("click")}}},[t("Icon",{staticClass:"singularity-canvas-button__icon",attrs:{icon:e.icon,size:"14"}}),t("span",{staticClass:"singularity-canvas-button__text"},[e._v(e._s(e.text))])],1)},xn=[];let wn=class extends s.ZP{get classes(){return{"singularity-canvas-button":!0,"singularity-canvas-button--small":"small"===this.size,"singularity-canvas-button--large":"large"===this.size}}};(0,r.gn)([(0,l.fI)({type:String,required:!0})],wn.prototype,"icon",void 0),(0,r.gn)([(0,l.fI)({type:String,required:!0})],wn.prototype,"text",void 0),(0,r.gn)([(0,l.fI)({type:String,default:null})],wn.prototype,"size",void 0),wn=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],wn);const In=wn,Pn=In;var kn=(0,N.Z)(Pn,Cn,xn,!1,null,null,null);const En=kn.exports;let Tn=class extends l.w3{addSection(){c.singularityStore.setSectionAddOrSwapPanelState({mode:"add_after",sectionId:this.sectionId}),c.singularityStore.setSectionLibraryModalState(!0)}};(0,r.gn)([(0,l.fI)()],Tn.prototype,"sectionId",void 0),Tn=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,SingularityCanvasButton:En}})],Tn);const Dn=Tn,An=Dn;var Zn=(0,N.Z)(An,bn,Sn,!1,null,null,null);const On=Zn.exports;var Mn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-canvas-add-another-button",on:{click:e.addAnother}},[t("div",{staticClass:"singularity-canvas-add-another-button__inner"},[t("Icon",{attrs:{icon:"PlusIconSolid",size:"14"}})],1)])},Bn=[];let Ln=class extends l.w3{addAnother(){c.documentStore.duplicateElement({elementId:this.elementId})}};(0,r.gn)([(0,l.fI)()],Ln.prototype,"elementId",void 0),Ln=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],Ln);const Nn=Ln,Fn=Nn;var Rn=(0,N.Z)(Fn,Mn,Bn,!1,null,null,null);const Vn=Rn.exports;var $n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-canvas-edit-background-image-button",on:{click:e.editBackgroundImage}},[e._v("Edit Background Image")])},Wn=[];let Un=class extends l.w3{editBackgroundImage(){c.singularityStore.setBackgroundImageEditorPanelState({sectionId:this.elementId}),c.singularityStore.setSingularityLeftPanel("background_image_editor")}};(0,r.gn)([(0,l.fI)()],Un.prototype,"elementId",void 0),Un=(0,r.gn)([(0,l.wA)({components:{}})],Un);const zn=Un,Hn=zn;var Gn=(0,N.Z)(Hn,$n,Wn,!1,null,null,null);const Kn=Gn.exports;var jn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-canvas-edit-icon-button",on:{click:e.editIcon}},[e._v(" "+e._s(e.__("Change Icon"))+" ")])},qn=[];let Xn=class extends l.w3{editIcon(){c.singularityStore.setIconEditorPanelState({iconId:this.elementId}),c.singularityStore.setSingularityLeftPanel("icon_editor")}};(0,r.gn)([(0,l.fI)()],Xn.prototype,"elementId",void 0),Xn=(0,r.gn)([(0,l.wA)({components:{}})],Xn);const Yn=Xn,Qn=Yn;var Jn=(0,N.Z)(Qn,jn,qn,!1,null,null,null);const es=Jn.exports;var ts=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-canvas-edit-link-button",on:{click:e.editLink}},[e._v(" "+e._s(e.__("Edit Link"))+" ")])},ns=[];const ss=[{elementSlug:Ge.WRAPPER_LINK_SLUG,linkPropertyPaths:["content.content.link"]},{elementSlug:Ge.LINK_SLUG,linkPropertyPaths:["content.content.link"]},{elementSlug:Ge.BUTTON_SLUG,linkPropertyPaths:["content.content.link"]},{elementSlug:"EssentialElements\\PricingTable",linkPropertyPaths:["content.content.button.link"]}];function is(e){return ss.some((t=>t.elementSlug===e))}function os(e){return ss.find((t=>t.elementSlug===e))?.linkPropertyPaths}function as(e){return(0,ge.parentNodesReduce)(((e,t)=>!!is(e.data.type)||t),c.documentStore.document.tree,e,!1)}function rs(e){return(0,ge.parentNodesReduce)(((e,t)=>is(e.data.type)?e:t),c.documentStore.document.tree,e,void 0)}let ls=class extends l.w3{editLink(){var e=(0,ge.findNode)(c.documentStore.document.tree,this.elementId);if(!e)return;if(is(e.data.type)||(e=rs(e)),!e)return;if(!is(e.data.type))return;const t=os(e.data.type);t&&(c.singularityStore.setLinkEditorPanelState({elementId:e.id,linkPropertyPaths:t}),c.singularityStore.setSingularityLeftPanel("link_editor"))}};(0,r.gn)([(0,l.fI)()],ls.prototype,"elementId",void 0),ls=(0,r.gn)([(0,l.wA)({components:{}})],ls);const cs=ls,ds=cs;var us=(0,N.Z)(ds,ts,ns,!1,null,null,null);const ps=us.exports;var hs=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-canvas-edit-content-properties-button",on:{click:e.editContentProperties}},[e._v("Edit Content Properties")])},gs=[];let ms=class extends l.w3{editContentProperties(){c.uiStore.activateElement(this.elementId),c.singularityStore.setContentPropertiesEditorPanelState(!0),c.singularityStore.setSingularityLeftPanel("content_properties_editor")}};(0,r.gn)([(0,l.fI)()],ms.prototype,"elementId",void 0),ms=(0,r.gn)([(0,l.wA)({components:{}})],ms);const vs=ms,ys=vs;var fs=(0,N.Z)(ys,hs,gs,!1,null,null,null);const _s=fs.exports;var bs=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-sticky-section-edit"},[t("div",{staticClass:"singularity-button-group"},[t("SingularityCanvasButton",{attrs:{icon:"EditSolidIcon",text:"Edit Section"},on:{click:e.activateElement}})],1)])},Ss=[];let Cs=class extends s.ZP{activateElement(){c.uiStore.activateElement(this.elementId),c.singularityStore.setSingularityLeftPanel("page_structure")}};(0,r.gn)([(0,l.fI)()],Cs.prototype,"elementId",void 0),Cs=(0,r.gn)([(0,l.wA)({components:{SingularityCanvasButton:En}})],Cs);const xs=Cs,ws=xs;var Is=(0,N.Z)(ws,bs,Ss,!1,null,null,null);const Ps=Is.exports;let ks=class extends l.w3{constructor(){super(...arguments),this.refreshRate=500,this.shouldShowControls=!0,this.unsubscribeFromStorePositionWrapper=()=>{},this.throttledNextTickPositionWrapper=U()((()=>(0,A.forceNextTick)((()=>this.positionWrapper()))),100),this.disableMouseHoverOnMouseLeaveCanvas=()=>{setTimeout((()=>c.uiStore.setLastHoveredOnCanvasElementId(null)),110)},this.throttledShowHoverControlsOnMouseMoveCanvas=U()(this.showHoverControlsOnMouseMoveCanvas,100),this.wrapperPositionStyle={display:"none"}}beforeMount(){this.positionWrapper(),this.unsubscribeFromStorePositionWrapper=this.$store.subscribe(this.throttledNextTickPositionWrapper),window.addEventListener("resize",this.throttledNextTickPositionWrapper)}mounted(){const e=window.Breakdance.canvas.document.getElementById("breakdance_canvas");e&&(e.addEventListener("mousemove",this.throttledShowHoverControlsOnMouseMoveCanvas),e.addEventListener("mouseleave",this.disableMouseHoverOnMouseLeaveCanvas),this.interval=setInterval(this.throttledNextTickPositionWrapper,this.refreshRate))}beforeDestroy(){const e=window.Breakdance.canvas.document.getElementById("breakdance_canvas");this.unsubscribeFromStorePositionWrapper(),window.removeEventListener("resize",this.throttledNextTickPositionWrapper),e?.removeEventListener("mousemove",this.throttledShowHoverControlsOnMouseMoveCanvas),clearInterval(this.interval)}get wrapperClassList(){return{"node-hover-controls-show":this.shouldShowControls&&this.isNotDragging,"node-hover-controls--outline":this.isNotDragging,"node-hover-controls--active":this.isActiveElement}}get isNotDragging(){return!c.uiStore.isCanvasElementBeingDragged&&!c.uiStore.isDragMixinDragging}get isActiveElement(){return this.element&&c.uiStore.activeElementId===this.element.id}get element(){if(!c.uiStore.lastHoveredOnCanvasElementId||c.uiStore.elementWithContentEditable)return null;const e=(0,ge.findNode)(c.documentStore.document.tree,c.uiStore.lastHoveredOnCanvasElementId);return e||null}setHoveredNode(e,t){const n=(0,Le.Qf)(e,t);if(void 0!==n){const e=(0,ge.findNode)(c.documentStore.document.tree,n);e&&c.uiStore.setLastHoveredOnCanvasElementId(e.id)}}showHoverControlsOnMouseMoveCanvas(e){const{clientX:t,clientY:n}=e;if(this.setHoveredNode(t,n),!this.element)return;const s=(0,T.Sv)(this.element,"absolute");if(!s)return;const{x:i,y:o,width:a,height:r}=s;this.shouldShowControls=t>i+a-48&&to&&n{},this.wrapperStyle={display:"none"},this.lastModifiedDomElement=null}mounted(){this.calculateWrapperStyles(),this.unsubscribeFromStorePositionWrapper=this.$store.subscribe(this.calculateWrapperStyles),window.addEventListener("resize",this.calculateWrapperStyles)}beforeDestroy(){this.unsubscribeFromStorePositionWrapper(),window.removeEventListener("resize",this.calculateWrapperStyles)}get domElement(){if(!c.uiStore.elementWithContentEditable)return null;const e=(0,ge.findNode)(c.documentStore.document.tree,c.uiStore.elementWithContentEditable);if(!e)return null;const t=(0,T.dq)(e);if("true"===t?.contentEditable)return this.lastModifiedDomElement=t,t;const n=t?.querySelector('[contenteditable="true"]');return n?(this.lastModifiedDomElement=n,n):null}calculateWrapperStyles(){(0,A.forceNextTick)((()=>{!this.domElement&&this.lastModifiedDomElement&&(this.lastModifiedDomElement.removeEventListener("input",this.calculateWrapperStyles),this.lastModifiedDomElement=null),this.wrapperStyle=(0,T.Qi)(this.domElement),this.domElement&&this.domElement.addEventListener("input",this.calculateWrapperStyles)}))}};Ms=(0,r.gn)([(0,l.wA)({})],Ms);const Bs=Ms,Ls=Bs;var Ns=(0,N.Z)(Ls,Zs,Os,!1,null,null,null);const Fs=Ns.exports;var Rs=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"singularity-node-titlebar-wrapper":!0},style:e.wrapperPositionStyle},[t("div",{staticClass:"singularity-node-titlebar",class:e.titlebarClasses,style:e.titlebarPositionStyle},[e.isSectionElement?t("span",{staticClass:"singularity-node-titlebar__text"},[e._v(" "+e._s(e.elementTitle))]):t("EditElementCanvasButton")],1)])},Vs=[],$s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("SingularityCanvasButton",{attrs:{icon:"EditSolidIcon",text:`Edit ${e.elementTitle}`},on:{click:e.editElement}})},Ws=[],Us=n(88932);let zs=class extends l.w3{get element(){return c.uiStore.activeElement}get elementId(){return c.uiStore.activeElementId}getElementTitle(){return this.element?(0,qe.mH)(this.element):""}get elementTitle(){return this.getElementTitle()}get isImageElement(){return this.element&&this.element.data.type===Ge.IMAGE_SLUG}get isSectionElementWithBackgroundImage(){return this.element&&this.element.data.type===Ge.SECTION_SLUG&&"image"==j()(this.element.data.properties,"design.background.type")}get isIconElement(){return this.element&&this.element.data.type===Ge.ICON_SLUG}get isChildOfGrid(){if(!this.element)return!1;const e=(0,ge.findNode)(c.documentStore.document.tree,this.element._parentId);return!!e&&e.data.type===Ge.GRID_SLUG}get isGalleryElement(){return this.element&&this.element.data.type===Ge.GALLERY_SLUG}get isLinkElementOrChildOfLinkElement(){return!!this.element&&(is(this.element.data.type)||as(this.element))}get isHeaderElement(){return this.element&&this.element.data.type===Us.Uu}get isFooterElement(){return this.element&&this.element.data.type===Us.hO}get isHeaderOrFooterElement(){return this.isHeaderElement||this.isFooterElement}get isSiteLogoElement(){return this.element&&this.element.data.type===Us.X1}editElement(){if(this.element&&this.elementId)if(this.isSiteLogoElement)c.singularityStore.setSingularityLeftPanel("brand");else{if(!this.isHeaderOrFooterElement)return this.isImageElement?(c.singularityStore.setImageEditorPanelState({elementId:this.elementId,controlPath:"content.image.media",initialStep:"main"}),void c.singularityStore.setSingularityLeftPanel("image_editor")):this.isGalleryElement?(c.singularityStore.setImageEditorPanelState({elementId:this.elementId,controlPath:"content.content.images[].image",selectedImageIndex:0,initialStep:"main"}),void c.singularityStore.setSingularityLeftPanel("image_editor")):this.isIconElement?(c.singularityStore.setIconEditorPanelState({iconId:this.elementId}),void c.singularityStore.setSingularityLeftPanel("icon_editor")):this.isSectionElementWithBackgroundImage?(c.singularityStore.setImageEditorPanelState({elementId:this.elementId,controlPath:"design.background.image",initialStep:"main"}),void c.singularityStore.setSingularityLeftPanel("image_editor")):void(this.isLinkElementOrChildOfLinkElement?this.editLink():(c.singularityStore.setContentPropertiesEditorPanelState(!0),c.singularityStore.setSingularityLeftPanel("content_properties_editor")));c.singularityStore.setHeaderAndFooterEditorPanelState({elementId:this.elementId,elementType:this.isHeaderElement?"header":"footer"})}}editLink(){if(!this.elementId)return;let e=(0,ge.findNode)(c.documentStore.document.tree,this.elementId);if(!e)return;if(is(e.data.type)||(e=rs(e)),!e)return;if(!is(e.data.type))return;const t=os(e.data.type);t&&(c.singularityStore.setLinkEditorPanelState({elementId:e.id,linkPropertyPaths:t}),c.singularityStore.setSingularityLeftPanel("link_editor"))}};zs=(0,r.gn)([(0,l.wA)({components:{SingularityCanvasButton:En}})],zs);const Hs=zs,Gs=Hs;var Ks=(0,N.Z)(Gs,$s,Ws,!1,null,null,null);const js=Ks.exports;let qs=class extends l.w3{constructor(){super(...arguments),this.refreshRate=500,this.nonEditableElementsSlugs=[Ge.DIV_SLUG,Ge.COLUMNS_SLUG,Ge.COLUMN_SLUG],this.unsubscribeFromStorePositionWrapper=()=>{},this.titlebarPositionStyle={},this.wrapperPositionStyle={display:"none"},this.elementTitle=""}get shouldShowTitlebar(){if(!c.uiStore.activeElement)return!1;const e=c.uiStore.activeElement;return!c.uiStore.elementWithContentEditable&&!this.nonEditableElementsSlugs.includes(e.data.type)}nextTickPositionsWrapper(){(0,A.forceNextTick)(this.calculateStylesAndTitle)}mounted(){this.calculateStylesAndTitle(),this.unsubscribeFromStorePositionWrapper=this.$store.subscribe(this.nextTickPositionsWrapper),window.addEventListener("resize",this.nextTickPositionsWrapper),this.interval=setInterval(this.nextTickPositionsWrapper,this.refreshRate)}beforeDestroy(){this.unsubscribeFromStorePositionWrapper(),window.removeEventListener("resize",this.nextTickPositionsWrapper),clearInterval(this.interval)}calculateStylesAndTitle(){!c.uiStore.elementWithContentEditable&&this.element?(this.elementTitle=this.getElementTitle(),this.wrapperPositionStyle=(0,T.Qi)((0,T.dq)(this.element)),this.titlebarPositionStyle=(0,T.A3)(this.element)):this.wrapperPositionStyle={display:"none"}}get titlebarClasses(){return{"node-titlebar-is-offset":!!this.wrapperPositionStyle.outlineOffset,"is-hidden":!this.shouldShowTitlebar}}get element(){return c.uiStore.activeElement}get elementId(){return c.uiStore.activeElementId}getElementTitle(){return this.element?(0,qe.mH)(this.element):""}get isSectionElement(){return this.element&&this.element.data.type===Ge.SECTION_SLUG}get node(){return this.element||!1}};qs=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,EditElementCanvasButton:js}})],qs);const Xs=qs,Ys=Xs;var Qs=(0,N.Z)(Ys,Rs,Vs,!1,null,null,null);const Js=Qs.exports;var ei=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.currentHoveredData.nearestRepeatableItem?t("FutureLayerRepeatableItemOutlineAndControls",{key:`repeatable-item-${e.currentHoveredData.nearestRepeatableItem.id}`,attrs:{element:e.currentHoveredData.nearestRepeatableItem}}):e._e(),e.currentHoveredData.nearestWrapperLink?t("FutureLayerLinkWrapperOutlineAndControls",{key:`wrapper-link-${e.currentHoveredData.nearestWrapperLink.id}`,attrs:{element:e.currentHoveredData.nearestWrapperLink}}):e._e(),e.currentHoveredData.hoveredGalleryImage?t("FutureLayerGalleryImageOutline",{key:`gallery-image-${e.currentHoveredData.hoveredGalleryImage.galleryElement.id}-${e.currentHoveredData.hoveredGalleryImage.imageIndex}`,attrs:{htmlElement:e.currentHoveredData.hoveredGalleryImage.htmlElement}}):e._e(),e.isHoveredElementHeaderOrFooter&&e.currentHoveredData.nearestNodeThatCanBeActivated?t("FutureLayerHoveredHeaderOrFooter",{key:`hovered-header-footer-${e.currentHoveredData.nearestNodeThatCanBeActivated.id}`,attrs:{element:e.currentHoveredData.nearestNodeThatCanBeActivated}}):e.currentHoveredData.nearestNodeThatCanBeActivated?t("FutureLayerHoveredElementOutline",{key:`hovered-${e.currentHoveredData.nearestNodeThatCanBeActivated.id}`,attrs:{element:e.currentHoveredData.nearestNodeThatCanBeActivated}}):e._e(),e.activeElement?t("FutureLayerActiveElementOutline",{key:`active-${e.activeElement.id}`,attrs:{element:e.activeElement}}):e._e(),e.activeElementSupportsRemoval?t("FutureLayerRemovableElementControls",{key:`removable-${e.activeElement.id}`,attrs:{element:e.activeElement}}):e._e()],1)},ti=[],ni=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-active-element-wrapper",style:e.cssStyleForWrapper,attrs:{"data-futurelayer-element-id":e.element.id}},[t("div",{staticClass:"futurelayer-active-element-outline",style:e.cssStyleForOutline}),e.isSection&&!e.isInlineEditing?t("AddAnotherSectionButton",{attrs:{element:e.element,elementPositionOnCanvas:e.elementPositionOnCanvas}}):e._e()],1)},si=[];function ii(e){const t=e.getBoundingClientRect(),n=window.Breakdance.canvas.document.documentElement.scrollLeft,s=window.Breakdance.canvas.document.documentElement.scrollTop;return{left:`${t.left+n}px`,top:`${t.top+s}px`,width:`${t.width}px`,height:`${t.height}px`}}function oi(e){const t=(0,T.dq)(e);return!!t&&ii(t)}function ai(e,t){const n=()=>{(0,A.forceNextTick)((()=>{t(ii(e))}))},s=setInterval(n,500);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n),clearInterval(s)}}function ri(e,t){const n=()=>{(0,A.forceNextTick)((()=>{t(oi(e))}))},s=c["default"].subscribe(n),i=setInterval(n,500);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n),s(),clearInterval(i)}}function li(e){return e?{left:e.left,top:e.top,width:"0px",height:"0px"}:{display:"none"}}function ci(e){return e?{left:"0px",top:"0px",width:e.width,height:e.height}:{display:"none"}}var di=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.isFirstChildInRootAfterHeaderAndHasFutureLayerPreferOverlayHeaderClass?e._e():t("div",{staticClass:"futurelayer-add-section-controls",style:e.cssStyleForAddSectionTop},[t("button",{staticClass:"futurelayer-add-section-button futurelayer-add-section-button-top",on:{click:e.handleAddSectionBefore}},[e._v(" "+e._s(e.__("Add Section"))+" ")])]),t("div",{staticClass:"futurelayer-add-section-controls",style:e.cssStyleForAddSectionBottom},[t("button",{staticClass:"futurelayer-add-section-button futurelayer-add-section-button-bottom",on:{click:e.handleAddSectionAfter}},[e._v(" "+e._s(e.__("Add Section"))+" ")])])])},ui=[],pi=n(46118);let hi=class extends l.w3{constructor(){super(...arguments),this.mouseY=0}mounted(){window.Breakdance.canvas.document.addEventListener("mousemove",this.handleMouseMove)}beforeDestroy(){window.Breakdance.canvas.document.removeEventListener("mousemove",this.handleMouseMove)}handleMouseMove(e){this.mouseY=e.clientY}isMouseNearButton(e){const t=50;return Math.abs(this.mouseY-e)<=t}get isFirstChildInRootAfterHeaderAndHasFutureLayerPreferOverlayHeaderClass(){return(0,pi.nx)(this.element.id)&&(0,pi.hx)(this.element)}get cssStyleForAddSectionTop(){if(!this.elementPositionOnCanvas)return{display:"none"};const e=parseFloat(this.elementPositionOnCanvas.top.replace("px","")),t=window.Breakdance.canvas.document.documentElement.scrollTop,n=e-t;return this.isMouseNearButton(n)?{left:`calc(${this.elementPositionOnCanvas.width} * 0.5)`,top:"0px",transform:"translate(-50%, -50%)"}:{display:"none"}}get cssStyleForAddSectionBottom(){if(!this.elementPositionOnCanvas)return{display:"none"};const e=parseFloat(this.elementPositionOnCanvas.top.replace("px","")),t=parseFloat(this.elementPositionOnCanvas.height.replace("px","")),n=window.Breakdance.canvas.document.documentElement.scrollTop,s=e+t-n;return this.isMouseNearButton(s)?{left:`calc(${this.elementPositionOnCanvas.width} * 0.5)`,top:this.elementPositionOnCanvas.height,transform:"translate(-50%, -50%)"}:{display:"none"}}handleAddSectionBefore(){c.singularityStore.setSectionAddOrSwapPanelState({mode:"add_before",sectionId:this.element.id}),c.singularityStore.setSectionLibraryModalState(!0)}handleAddSectionAfter(){c.singularityStore.setSectionAddOrSwapPanelState({mode:"add_after",sectionId:this.element.id}),c.singularityStore.setSectionLibraryModalState(!0)}};(0,r.gn)([(0,l.fI)()],hi.prototype,"element",void 0),(0,r.gn)([(0,l.fI)()],hi.prototype,"elementPositionOnCanvas",void 0),hi=(0,r.gn)([l.wA],hi);const gi=hi,mi=gi;var vi=(0,N.Z)(mi,di,ui,!1,null,null,null);const yi=vi.exports;let fi=class extends l.w3{constructor(){super(...arguments),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=oi(this.element),this.cleanupListeners=ri(this.element,(e=>{this.elementPositionOnCanvas=e}))}beforeDestroy(){this.cleanupListeners()}get cssStyleForWrapper(){return li(this.elementPositionOnCanvas)}get cssStyleForOutline(){return ci(this.elementPositionOnCanvas)}get isSection(){return this.element.data.type===Ge.SECTION_SLUG}get isInlineEditing(){return Q.kD.isInlineEditing}};(0,r.gn)([(0,l.fI)()],fi.prototype,"element",void 0),fi=(0,r.gn)([(0,l.wA)({components:{AddAnotherSectionButton:yi}})],fi);const _i=fi,bi=_i;var Si=(0,N.Z)(bi,ni,si,!1,null,null,null);const Ci=Si.exports;var xi=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-hovered-element-wrapper",style:e.cssStyleForWrapper,attrs:{"data-futurelayer-element-id":e.element.id}},[t("div",{staticClass:"futurelayer-hovered-element-outline",style:e.cssStyleForOutline}),e.isSection&&!e.isInlineEditing?t("AddAnotherSectionButton",{attrs:{element:e.element,elementPositionOnCanvas:e.elementPositionOnCanvas}}):e._e()],1)},wi=[],Ii=n(20398);let Pi=class extends l.w3{constructor(){super(...arguments),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=oi(this.element),this.cleanupListeners=ri(this.element,(e=>{this.elementPositionOnCanvas=e}))}beforeDestroy(){this.cleanupListeners()}get canActivate(){return(0,Ii.Dn)(this.element.data.type).canActivate}get cssStyleForWrapper(){return this.canActivate?li(this.elementPositionOnCanvas):{display:"none"}}get cssStyleForOutline(){return this.canActivate?ci(this.elementPositionOnCanvas):{display:"none"}}get isSection(){return this.element.data.type===Ge.SECTION_SLUG}get isInlineEditing(){return Q.kD.isInlineEditing}};(0,r.gn)([(0,l.fI)()],Pi.prototype,"element",void 0),Pi=(0,r.gn)([(0,l.wA)({components:{AddAnotherSectionButton:yi}})],Pi);const ki=Pi,Ei=ki;var Ti=(0,N.Z)(Ei,xi,wi,!1,null,null,null);const Di=Ti.exports;var Ai=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-hovered-header-footer-wrapper",style:e.cssStyleForWrapper,attrs:{"data-futurelayer-element-id":e.element.id}},[t("div",{staticClass:"futurelayer-hovered-header-footer-outline",style:e.cssStyleForOutline}),t("div",{staticClass:"futurelayer-header-footer-controls",style:e.cssStyleForControls,on:{click:e.startEditing}},[e.loading?t("div",[e._v("loading")]):t("button",{staticClass:"futurelayer-header-footer-edit-button"},[e._v(" Edit Website "+e._s(e.isHeader?"Header":"Footer")+" ")])])])},Zi=[];let Oi=class extends l.w3{constructor(){super(...arguments),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{},this.loading=!1}mounted(){this.elementPositionOnCanvas=oi(this.element),this.cleanupListeners=ri(this.element,(e=>{this.elementPositionOnCanvas=e}))}beforeDestroy(){this.cleanupListeners()}get cssStyleForWrapper(){return li(this.elementPositionOnCanvas)}get cssStyleForOutline(){return ci(this.elementPositionOnCanvas)}get cssStyleForControls(){return this.elementPositionOnCanvas?{left:"0px",top:"0px",width:this.elementPositionOnCanvas.width,height:this.elementPositionOnCanvas.height}:{display:"none"}}get isHeader(){return this.element.data.type===Us.Uu}async startEditing(){this.loading=!0,await(0,Us.IA)(this.element.id),this.loading=!1}};(0,r.gn)([(0,l.fI)()],Oi.prototype,"element",void 0),Oi=(0,r.gn)([l.wA],Oi);const Mi=Oi,Bi=Mi;var Li=(0,N.Z)(Bi,Ai,Zi,!1,null,null,null);const Ni=Li.exports;var Fi=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-repeatable-item-wrapper",style:e.cssStyleForWrapper,attrs:{"data-futurelayer-element-id":e.element.id}},[t("div",{staticClass:"futurelayer-repeatable-item-outline",style:e.cssStyleForOutline}),t("div",{staticClass:"futurelayer-repeatable-item-controls",style:e.cssStyleForControls},[e.isFirstChild?e._e():t("button",{staticClass:"futurelayer-repeatable-control-button move-left",attrs:{title:"Move previous"},on:{click:e.handleMoveLeft}},[t("Icon",{attrs:{icon:"ChevronLeftIcon",size:10}})],1),e.isLastChild?e._e():t("button",{staticClass:"futurelayer-repeatable-control-button move-right",attrs:{title:"Move next"},on:{click:e.handleMoveRight}},[t("Icon",{attrs:{icon:"ChevronRightIcon",size:10}})],1),e.isRepeatableChildButNotOnlyChild?t("button",{staticClass:"futurelayer-repeatable-control-button remove",on:{click:e.handleRemove}},[e._v(" Remove ")]):e._e(),t("button",{staticClass:"futurelayer-repeatable-control-button add",on:{click:e.handleAddAnother}},[e._v(" Add Another ")])])])},Ri=[],Vi=n(45164);let $i=class extends l.w3{constructor(){super(...arguments),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=oi(this.element),this.cleanupListeners=ri(this.element,(e=>{this.elementPositionOnCanvas=e}))}beforeDestroy(){this.cleanupListeners()}get cssStyleForWrapper(){return li(this.elementPositionOnCanvas)}get cssStyleForOutline(){return ci(this.elementPositionOnCanvas)}get cssStyleForControls(){return this.elementPositionOnCanvas?{left:`calc(${this.elementPositionOnCanvas.width} + 2px)`,transform:"translateX(-100%)"}:{display:"none"}}handleRemove(){c.documentStore.deleteElement({nodeId:this.element.id})}handleAddAnother(){(0,Vi.D8)(this.element)}handleMoveLeft(){(0,Vi.cP)(this.element)}handleMoveRight(){(0,Vi.Z6)(this.element)}get parent(){return(0,ge.findNode)(c.documentStore.document.tree,this.element._parentId)}get isRepeatableChildButNotOnlyChild(){const e=this.parent;return!!e&&(!!this.isRepeatableParent(e)&&1!==e.children.length)}get isFirstChild(){const e=this.parent;return!!e&&(!!this.isRepeatableParent(e)&&e.children[0]?.id===this.element.id)}get isLastChild(){const e=this.parent;return!!e&&(!!this.isRepeatableParent(e)&&e.children[e.children.length-1]?.id===this.element.id)}isRepeatableParent(e){return(0,Vi.Nx)(e)}};(0,r.gn)([(0,l.fI)()],$i.prototype,"element",void 0),$i=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],$i);const Wi=$i,Ui=Wi;var zi=(0,N.Z)(Ui,Fi,Ri,!1,null,null,null);const Hi=zi.exports;var Gi=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-link-wrapper-wrapper",style:e.cssStyleForWrapper,attrs:{"data-futurelayer-element-id":e.element.id}},[t("div",{staticClass:"futurelayer-link-wrapper-outline",style:e.cssStyleForOutline}),t("div",{staticClass:"futurelayer-link-wrapper-controls",style:e.cssStyleForControls},[t("button",{staticClass:"futurelayer-link-control-button edit",on:{click:e.handleEditLink}},[e._v(" Edit Link ")])])])},Ki=[];let ji=class extends l.w3{constructor(){super(...arguments),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=oi(this.element),this.cleanupListeners=ri(this.element,(e=>{this.elementPositionOnCanvas=e}))}beforeDestroy(){this.cleanupListeners()}get cssStyleForWrapper(){return li(this.elementPositionOnCanvas)}get cssStyleForOutline(){return ci(this.elementPositionOnCanvas)}get cssStyleForControls(){return this.elementPositionOnCanvas?{left:"0",top:"0px",transform:"translateY(-100%)"}:{display:"none"}}handleEditLink(){const e=os(this.element.data.type);e&&(c.singularityStore.setLinkEditorPanelState({elementId:this.element.id,linkPropertyPaths:e}),c.singularityStore.setSingularityLeftPanel("link_editor"))}};(0,r.gn)([(0,l.fI)()],ji.prototype,"element",void 0),ji=(0,r.gn)([l.wA],ji);const qi=ji,Xi=qi;var Yi=(0,N.Z)(Xi,Gi,Ki,!1,null,null,null);const Qi=Yi.exports;var Ji=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-gallery-image-wrapper",style:e.cssStyleForWrapper},[t("div",{staticClass:"futurelayer-gallery-image-outline",style:e.cssStyleForOutline})])},eo=[];let to=class extends l.w3{constructor(){super(...arguments),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=ii(this.htmlElement),this.cleanupListeners=ai(this.htmlElement,(e=>{this.elementPositionOnCanvas=e}))}beforeDestroy(){this.cleanupListeners()}get cssStyleForWrapper(){return li(this.elementPositionOnCanvas)}get cssStyleForOutline(){return ci(this.elementPositionOnCanvas)}};(0,r.gn)([(0,l.fI)()],to.prototype,"htmlElement",void 0),to=(0,r.gn)([(0,l.wA)({})],to);const no=to,so=no;var io=(0,N.Z)(so,Ji,eo,!1,null,null,null);const oo=io.exports;var ao=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-removable-element-wrapper",style:e.cssStyleForWrapper,attrs:{"data-futurelayer-element-id":e.element.id}},[t("div",{staticClass:"futurelayer-removable-element-controls",style:e.cssStyleForControls},[t("button",{staticClass:"futurelayer-removable-control-button",attrs:{title:e.isRemoved?"Show element":"Hide element"},on:{click:e.toggleRemoved}},[t("Icon",{attrs:{icon:e.isRemoved?"EyeIcon":"EyeSlashIcon",size:10}})],1),e.isRemoved?t("button",{staticClass:"futurelayer-removable-control-button delete",attrs:{title:"Remove permanently"},on:{click:e.handleRemovePermanently}},[t("Icon",{attrs:{icon:"TrashIcon",size:10}})],1):e._e()])])},ro=[];function lo(e){c.documentStore.unthrottledPropertyChanged({elementId:e,path:"settings.futurelayer.removed",value:!0,meta:{snapshotLabel:"Disable Optional Element"}})}function co(e){c.documentStore.unthrottledPropertyChanged({elementId:e,path:"settings.futurelayer.removed",value:!1,meta:{snapshotLabel:"Enable Optional Element"}})}function uo(e){c.documentStore.deleteElement({nodeId:e})}let po=class extends l.w3{constructor(){super(...arguments),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=oi(this.element),this.cleanupListeners=ri(this.element,(e=>{this.elementPositionOnCanvas=e}))}beforeDestroy(){this.cleanupListeners()}get cssStyleForWrapper(){return li(this.elementPositionOnCanvas)}get cssStyleForControls(){return this.elementPositionOnCanvas?{left:`calc(${this.elementPositionOnCanvas.width} + 4px)`,top:`calc(${this.elementPositionOnCanvas.height} / 2)`,transform:"translateY(-50%)"}:{display:"none"}}get isRemoved(){return!0===this.element.data.properties?.settings?.futurelayer?.removed}toggleRemoved(){this.isRemoved?co(this.element.id):lo(this.element.id)}handleRemovePermanently(){uo(this.element.id)}};(0,r.gn)([(0,l.fI)()],po.prototype,"element",void 0),po=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],po);const ho=po,go=ho;var mo=(0,N.Z)(go,ao,ro,!1,null,null,null);const vo=mo.exports;var yo=n(80897),fo=n(31839);class _o{constructor(e){this.hoveredElementData={nearestNodeThatCanBeActivated:null,nearestRepeatableItem:null,nearestWrapperLink:null,hoveredGalleryImage:null},this.callback=e,this.startListening()}destroy(){this.stopListening()}updateHoveredElementData(e){e.nearestNodeThatCanBeActivated===this.hoveredElementData.nearestNodeThatCanBeActivated&&e.nearestRepeatableItem===this.hoveredElementData.nearestRepeatableItem&&e.nearestWrapperLink===this.hoveredElementData.nearestWrapperLink&&e.hoveredGalleryImage===this.hoveredElementData.hoveredGalleryImage||(this.hoveredElementData=e,this.callback(e))}startListening(){const e=window.Breakdance.canvas.document,t=e=>{const t=e.target,n=(0,yo.G)(t),s=(0,fo.M)(t,n);this.updateHoveredElementData({nearestNodeThatCanBeActivated:n?(0,Ii.fj)(n):null,nearestRepeatableItem:n?(0,Vi.pO)(n):null,nearestWrapperLink:n?(0,Vi.Fl)(n):null,hoveredGalleryImage:s})},n=()=>{this.updateHoveredElementData({nearestNodeThatCanBeActivated:null,nearestRepeatableItem:null,nearestWrapperLink:null,hoveredGalleryImage:null})};e.addEventListener("mousemove",t),e.addEventListener("mouseleave",n),this.cleanup=()=>{e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",n)}}stopListening(){this.cleanup(),this.hoveredElementData={nearestNodeThatCanBeActivated:null,nearestRepeatableItem:null,nearestWrapperLink:null,hoveredGalleryImage:null}}}let bo,So=class extends l.w3{constructor(){super(...arguments),this.currentHoveredData={nearestNodeThatCanBeActivated:null,nearestRepeatableItem:null,nearestWrapperLink:null,hoveredGalleryImage:null}}mounted(){bo=new _o((e=>{this.currentHoveredData=e}))}beforeDestroy(){bo.destroy()}get activeElement(){return Q.kD.activeElement}get isHoveredElementHeaderOrFooter(){const e=this.currentHoveredData.nearestNodeThatCanBeActivated;return!!e&&(!Q.kD.inlineEditingContext?.elementId&&(e.data.type===Us.Uu||e.data.type===Us.hO))}get activeElementSupportsRemoval(){return!!this.activeElement&&!0===this.activeElement.data.properties?.settings?.futurelayer?.allow_removal}};So=(0,r.gn)([(0,l.wA)({components:{FutureLayerActiveElementOutline:Ci,FutureLayerHoveredElementOutline:Di,FutureLayerHoveredHeaderOrFooter:Ni,FutureLayerRepeatableItemOutlineAndControls:Hi,FutureLayerLinkWrapperOutlineAndControls:Qi,FutureLayerGalleryImageOutline:oo,FutureLayerRemovableElementControls:vo}})],So);const Co=So,xo=Co;var wo=(0,N.Z)(xo,ei,ti,!1,null,null,null);const Io=wo.exports;let Po=class extends s.ZP{constructor(){super(...arguments),this.hideTitleBar=!1,this.hideHoverControls=!1}get isSingularityMode(){return Q.kD.isSingularityMode}get isSingularityPreviewMode(){return Q.fz.previewMode}get isOnboardingMode(){return window.Breakdance.isOnboarding}get element(){return Q.kD.activeElement||!1}get activeElement(){return Q.kD.activeElement}get hoveredElement(){return!!Q.kD.lastHoveredOnCanvasElementId&&(0,ge.findNode)(Q.Hb.document.tree,Q.kD.lastHoveredOnCanvasElementId)}get classes(){let e=null;return this.hideTitleBar&&this.hideHoverControls?e="all":this.hideHoverControls?e="hover":this.hideTitleBar&&(e="titlebar"),{"node-chrome":!0,[`node-chrome--hide-${e}`]:e,"node-chrome--singularity":this.isSingularityMode}}onElementSelected(){this.observer?.disconnect(),this.element&&(this.observer=this.observePositionChange(this.element,(e=>{this.hideTitleBar=(0,T.p1)(e)})))}onHoveredElementSelected(){this.hoverObserver?.disconnect(),this.hoveredElement&&(this.hoverObserver=this.observePositionChange(this.hoveredElement,(e=>{this.hideHoverControls=(0,T.p1)(e)})))}beforeDestroy(){this.destroyObserver()}observePositionChange(e,t){if(!e)return;const n=(0,T.dq)(e);if(!n)return;const s=e=>{e.forEach((e=>{const n=e.target;t(n)}))},i=new MutationObserver(s),o={attributes:!0,attributeFilter:["class"]};return i.observe(n,o),i}destroyObserver(){this.observer?.disconnect(),this.hoverObserver?.disconnect()}};(0,r.gn)([(0,l.RL)("element")],Po.prototype,"onElementSelected",null),(0,r.gn)([(0,l.RL)("hoveredElement")],Po.prototype,"onHoveredElementSelected",null),Po=(0,r.gn)([(0,l.wA)({components:{NodeContentEditable:gt,DragDots:R,SpacingBars:ue,ColumnDragSizer:Ae,NodeTitlebar:et,NodeGhostTitlebar:dn,NodeHoverControls:rt,NodeOnboardingHoverControls:tn,NodeSingularityHover:As,NodeSingularityActive:yn,NodeSingularityContentEditable:Fs,NodeSingularityTitlebar:Js,FutureLayerNodeChrome:Io}})],Po);const ko=Po,Eo=ko;var To=(0,N.Z)(Eo,I,P,!1,null,null,null);const Do=To.exports;var Ao=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("DragPlaceholder"),t("RightClickMenu",{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}]})],1)},Zo=[],Oo=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-drag-placeholder-wrapper"},[t("div",{staticClass:"breakdance-drag-placeholder",style:e.dragPlaceholderPositionStyle}),t("div",{staticClass:"breakdance-drag-target-outline",style:e.dragTargetOutlineStyle})])},Mo=[];let Bo=class extends s.ZP{get canvasDragPlaceholderPosition(){return c.uiStore.canvasDragPlaceholderPosition}get parentNode(){if(!this.canvasDragPlaceholderPosition)return!1;const e=(0,ge.findNode)(c.documentStore.document.tree,this.canvasDragPlaceholderPosition.parentId);return e||!1}get stackingStyle(){return this.canvasDragPlaceholderPosition&&this.parentNode?(0,Le.qE)(this.parentNode):{}}get dragPlaceholderPositionStyle(){if(!this.canvasDragPlaceholderPosition||!0===this.canvasDragPlaceholderPosition.onlyShowTargetOutline)return{};const e=(0,ge.findNode)(c.documentStore.document.tree,this.canvasDragPlaceholderPosition.parentId);if(!e)return{};const t=8,n=`${t}px`;if(0===e.children.length){const s=e.id===ge.ROOT_ELEMENT_ID?(0,T.j3)():(0,T.Sv)(e);if(!s)return{};let{x:i,y:o,width:a,height:r}=s;return a-40>100&&(i+=20,a-=40),{display:"block",top:o+r/2-t/2+"px",left:`${i}px`,width:`${a}px`,height:n}}{const s=e.children[this.canvasDragPlaceholderPosition.nodeIndex],i=(0,T.Sv)(s),o=(0,Le.qE)(e);if(!i)return{};const{x:a,y:r,width:l,height:c}=i;if("vertical"===o){if("before"===this.canvasDragPlaceholderPosition.position)return{display:"block",top:r-(t/2-1)+"px",left:`${a}px`,width:`${l}px`,height:n};if("after"===this.canvasDragPlaceholderPosition.position)return{display:"block",top:c+r-(t/2+1)+"px",left:`${a}px`,width:`${l}px`,height:n}}else if("horizontal"===o){if("before"===this.canvasDragPlaceholderPosition.position)return{display:"block",top:`${r}px`,left:a-t/2+"px",height:`${c}px`,width:n};if("after"===this.canvasDragPlaceholderPosition.position)return{display:"block",left:l+a-t/2+"px",top:`${r}px`,height:`${c}px`,width:n}}}return{}}get dragTargetOutlineStyle(){if(!this.parentNode)return{};const e=this.parentNode.id===ge.ROOT_ELEMENT_ID&&0===c.documentStore.document.tree.root.children.length?(0,T.j3)():(0,T.Sv)(this.parentNode);if(!e)return{};const{x:t,y:n,width:s,height:i}=e;return{display:"block",position:"absolute",top:`${n}px`,left:`${t}px`,width:`${s}px`,height:`${i}px`}}};Bo=(0,r.gn)([(0,l.wA)({components:{}})],Bo);const Lo=Bo,No=Lo;var Fo=(0,N.Z)(No,Oo,Mo,!1,null,null,null);const Ro=Fo.exports;var Vo=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.shouldShow,expression:"shouldShow"}],staticClass:"breakdance-canvas-right-click-menu",class:{"breakdance-canvas-right-click-menu--structure-panel":"structure-panel"===e.context},style:e.wrapperPositionStyle},[t("RightClickMenuItem",{attrs:{disabled:!e.elementIdPresent,shortcut:["⌘ C","Ctrl C"]},on:{click:e.copyElement}},[e._v(" "+e._s(e.__("Copy"))+" ")]),t("RightClickMenuItem",{attrs:{disabled:!e.canPasteElement,shortcut:["⌘ V","Ctrl V"]},on:{click:e.pasteElement}},[e._v(" "+e._s(e.__("Paste"))+" ")]),"breakdance"===e.builderMode?t("RightClickMenuItem",{attrs:{disabled:!e.canPasteElementProperties},on:{click:function(t){return e.pasteElementProperties("design")}}},[e._v(" "+e._s(e.__("Paste Design"))+" ")]):e._e(),"breakdance"===e.builderMode?t("RightClickMenuItem",{attrs:{disabled:!e.canPasteElementProperties},on:{click:function(t){return e.pasteElementProperties("settings")}}},[e._v(" "+e._s(e.__("Paste Settings"))+" ")]):e._e(),t("RightClickWrapMenu",{attrs:{context:e.context},on:{close:e.close}}),t("div",{staticClass:"breakdance-canvas-right-click-menu-divider"}),t("RightClickMenuItem",{attrs:{disabled:!e.elementIdPresent,shortcut:["⌫","Del"]},on:{click:e.deleteElement}},[e._v(" "+e._s(e.__("Delete"))+" ")]),t("div",{staticClass:"breakdance-canvas-right-click-menu-divider"}),t("RightClickMenuItem",{attrs:{disabled:!e.canSaveAsGlobalBlock},on:{click:e.openSaveGlobalBlockDialog}},[e._v(" "+e._s(e.sprintf(e._doc("Save as %s","%s: Global block label"),e.$bdox("global_block")))+" ")]),"breakdance"===e.builderMode?t("RightClickMenuItem",{attrs:{disabled:!e.canSaveAsPreset},on:{click:e.openSavePresetDialog}},[e._v(" "+e._s(e.__("Create Design Preset"))+" ")]):e._e()],1),t("GlobalBlockDialog",{attrs:{open:e.saveGlobalBlockDialog,"element-id":e.elementIdToSaveAsGlobalBlock},on:{close:e.closeGlobalBlockDialog}}),t("PresetDialog",{attrs:{open:e.savePresetDialog,"element-id":e.elementIdToSaveAsPreset},on:{close:e.closePresetDialog}}),t("ClipboardDialog",{model:{value:e.clipboardDialog,callback:function(t){e.clipboardDialog=t},expression:"clipboardDialog"}})],1)},$o=[],Wo=n(89028),Uo=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"breakdance-canvas-right-click-menu-item":!0,"breakdance-canvas-right-click-menu-item-disabled":e.disabled},on:{click:function(t){e.disabled||e.$emit("click",t)}}},[e._t("default"),e.shortcut?t("div",{staticClass:"breakdance-canvas-right-click-menu-item-shortcut"},[e._v(" "+e._s(e.isMac?e.shortcut[0]:e.shortcut[1])+" ")]):e._e()],2)},zo=[],Ho=n(11859);let Go=class extends s.ZP{get isMac(){const e=(0,Ho.X)().toLowerCase();return/mac/.test(e)}};(0,r.gn)([(0,l.fI)({default:!1})],Go.prototype,"disabled",void 0),(0,r.gn)([(0,l.fI)({default:""})],Go.prototype,"shortcut",void 0),(0,r.gn)([(0,l.fI)({default:()=>[]})],Go.prototype,"subItems",void 0),Go=(0,r.gn)([(0,l.wA)({components:{}})],Go);const Ko=Go,jo=Ko;var qo=(0,N.Z)(jo,Uo,zo,!1,null,null,null);const Xo=qo.exports;var Yo=n(87615),Qo=n(37179),Jo=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dialog",{attrs:{value:e.open},on:{close:function(t){return e.$emit("close")},"click:outside":function(t){return e.$emit("close")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("close")}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.sprintf(e._doc("Save as %s","%s: Global block label"),e.$bdox("global_block"))))]},proxy:!0},{key:"text",fn:function(){return[t("TextInput",{attrs:{size:"md",placeholder:e.$bdox("global_block"),autofocus:e.open},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.saveAsGlobalBlock.apply(null,arguments)}},model:{value:e.globalBlockName,callback:function(t){e.globalBlockName=t},expression:"globalBlockName"}})]},proxy:!0},{key:"actions",fn:function(){return[t(Qo.Z,{attrs:{text:""},on:{click:function(t){return e.$emit("close")}}},[e._v(e._s(e.__("Cancel")))]),t(Qo.Z,{attrs:{color:"blue",dark:"",disabled:!e.globalBlockName},on:{click:e.saveAsGlobalBlock}},[e._v(" "+e._s(e.__("Save"))+" ")])]},proxy:!0}])})},ea=[],ta=n(89137),na=n(41571);let sa=class extends s.ZP{constructor(){super(...arguments),this.globalBlockName=""}async saveAsGlobalBlock(e){e.preventDefault(),this.globalBlockName&&(this.elementId&&await(0,Yo.AM)(this.elementId,this.globalBlockName),this.globalBlockName="",this.$emit("close"))}};(0,r.gn)([(0,l.fI)({default:!1})],sa.prototype,"open",void 0),(0,r.gn)([(0,l.fI)({required:!0})],sa.prototype,"elementId",void 0),sa=(0,r.gn)([(0,l.wA)({components:{Dialog:ta.Z,TextInput:na.Z}})],sa);const ia=sa,oa=ia;var aa=(0,N.Z)(oa,Jo,ea,!1,null,null,null);const ra=aa.exports;var la=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dialog",{attrs:{value:e.value,width:500,closeable:!0},on:{input:function(t){return e.$emit("input",t)}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.__("Enable Paste")))]},proxy:!0},{key:"text",fn:function(){return[e.status&&!e.status.secure?t("p",[e._v(" "+e._s(e.__("To paste using the Edit menu, your website needs to be served with HTTPS."))+" ")]):e.status&&!e.permissionGranted?t("p",[e._v(" "+e._s(e.__("To paste using the Edit menu, please allow access to your clipboard."))+" ")]):e._e(),t("p",[e._v(e._s(e.__("Alternatively, you can use your keyboard shortcuts:")))]),t("ul",{staticClass:"clipboard-dialog-shortcuts"},[t("li",{staticClass:"clipboard-dialog-shortcut"},[t("span",{staticClass:"clipboard-dialog-shortcut__key"},[e._v(e._s(e.metaKey)+" C")]),t("span",{staticClass:"clipboard-dialog-shortcut__label"},[e._v(e._s(e.__("copy")))])]),t("li",{staticClass:"clipboard-dialog-shortcut"},[t("span",{staticClass:"clipboard-dialog-shortcut__key"},[e._v(e._s(e.metaKey)+" X")]),t("span",{staticClass:"clipboard-dialog-shortcut__label"},[e._v(e._s(e.__("cut")))])]),t("li",{staticClass:"clipboard-dialog-shortcut"},[t("span",{staticClass:"clipboard-dialog-shortcut__key"},[e._v(e._s(e.metaKey)+" V")]),t("span",{staticClass:"clipboard-dialog-shortcut__label"},[e._v(e._s(e.__("paste")))])])])]},proxy:!0}])})},ca=[],da=n(31737);let ua=class extends s.ZP{constructor(){super(...arguments),this.status=null}async onChange(){this.status=await(0,da.fn)(),this.status?.permission&&(this.status.permission.onchange=()=>{this.$emit("input",!1)})}get permissionGranted(){return"granted"===this.status?.permission?.state}get metaKey(){return this.isAppleDevice?"⌘":"Ctrl + "}get isAppleDevice(){return/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)}close(){this.$emit("input",!1)}};(0,r.gn)([(0,l.fI)()],ua.prototype,"value",void 0),(0,r.gn)([(0,l.RL)("value",{immediate:!0})],ua.prototype,"onChange",null),ua=(0,r.gn)([(0,l.wA)({components:{Dialog:ta.Z}})],ua);const pa=ua,ha=pa;var ga=(0,N.Z)(ha,la,ca,!1,null,null,null);const ma=ga.exports;var va=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dialog",{attrs:{value:e.open},on:{close:function(t){return e.$emit("close")},"click:outside":function(t){return e.$emit("close")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("close")}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.__("Create Design Preset"))+" ")]},proxy:!0},{key:"text",fn:function(){return[t("TextInput",{ref:"input",attrs:{size:"md",placeholder:e.__("Preset Name"),autofocus:e.open},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.save.apply(null,arguments)}},model:{value:e.presetName,callback:function(t){e.presetName=t},expression:"presetName"}})]},proxy:!0},{key:"actions",fn:function(){return[t(Qo.Z,{attrs:{text:""},on:{click:function(t){return e.$emit("close")}}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(Qo.Z,{attrs:{color:"blue",dark:"",disabled:!e.presetName},on:{click:e.save}},[e._v(" "+e._s(e.__("Save"))+" ")])]},proxy:!0}])})},ya=[],fa=n(91669);let _a=class extends s.ZP{constructor(){super(...arguments),this.presetName=null}get isPresetsOverridesEnabled(){return c.configStore.isExperimentEnabled("design-presets-overrides")}get element(){return this.elementId?(0,ge.findNode)(c.documentStore.document.tree,this.elementId):null}onOpenChange(){this.open&&(this.presetName=this.getDefaultName(),this.$nextTick((()=>this.focusAndSelectInput())))}getDefaultName(){if(!this.element)return"";if(this.defaultName)return this.defaultName;const e=this.element.data.type,t=c.configStore.element(e).name;return`${t} ${(0,fa.z)()}`}focusAndSelectInput(){const e=this.$refs.input,t=e.$el.querySelector("input");t?.focus(),t?.select()}async save(e){if(e.preventDefault(),!this.presetName||!this.elementId||!this.element)return;const t=this.element.data.type,n=(0,ae.Lr)(this.presetName,t,this.element.data.properties.design);(0,ae.xk)(n),(0,ae.I8)(n.id,this.elementId),this.presetName="",this.$emit("close")}};(0,r.gn)([(0,l.fI)({required:!0})],_a.prototype,"elementId",void 0),(0,r.gn)([(0,l.fI)({default:!1})],_a.prototype,"open",void 0),(0,r.gn)([(0,l.fI)({default:""})],_a.prototype,"defaultName",void 0),(0,r.gn)([(0,l.RL)("open")],_a.prototype,"onOpenChange",null),_a=(0,r.gn)([(0,l.wA)({components:{Dialog:ta.Z,TextInput:na.Z}})],_a);const ba=_a,Sa=ba;var Ca=(0,N.Z)(Sa,va,ya,!1,null,null,null);const xa=Ca.exports;var wa=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-canvas-right-click-dropdown",class:{"breakdance-canvas-right-click-dropdown--disabled":!e.canWrap,"breakdance-canvas-right-click-dropdown--inverted":e.isInverted},on:{mouseenter:e.checkOverflow}},[t("RightClickMenuItem",{attrs:{disabled:!e.canWrap}},[e._v(" "+e._s(e.__("Wrap In"))+" "),t("Icon",{staticClass:"breakdance-canvas-right-click-submenu__arrow",attrs:{icon:"ChevronRightIcon",size:10}})],1),t("div",{ref:"submenu",staticClass:"breakdance-canvas-right-click-submenu"},[t("div",{staticClass:"breakdance-canvas-right-click-submenu__content breakdance-canvas-right-click-menu"},e._l(e.wrapItems,(function(n){return t("RightClickMenuItem",{key:n.label,on:{click:function(t){return e.wrapIn(n)}}},[e._v(" "+e._s(n.label)+" ")])})),1)])],1)},Ia=[];let Pa=class extends l.w3{constructor(){super(...arguments),this.isInverted=!1}get builderMode(){return Q.PK.builderMode}get wrapItems(){return"oxygen"===this.builderMode?[{label:(0,Ft.__)("Container"),elementSlug:"OxygenElements\\Container"},{label:(0,Ft.__)("Link"),elementSlug:"OxygenElements\\ContainerLink"}]:[{label:(0,Ft.__)("Div"),elementSlug:"EssentialElements\\Div"},{label:(0,Ft.__)("Link"),elementSlug:"EssentialElements\\WrapperLink"}]}get element(){return Q.kD.activeElement}get canWrap(){if(!this.element)return!1;const e=Q.PK.element(this.element.data.type),t=e.nestingRule.type;return!["section","root","popup"].includes(t)}wrapIn({elementSlug:e}){this.element&&(Q.Hb.wrapElement({wrapperElementSlug:e,elementId:this.element.id}),this.$emit("close"))}getViewportWidth(){return"canvas"===this.context?window.Breakdance.canvas.document?.defaultView?.innerWidth:window.innerWidth}checkOverflow(){this.isInverted=!1,this.$nextTick((()=>{const e=this.$refs.submenu;if(!e)return;const t=e.getBoundingClientRect(),n=this.getViewportWidth();if(!n)return;const s=t.right-n,i=.1*t.width;this.isInverted=s>i}))}};(0,r.gn)([(0,l.fI)({default:"canvas"})],Pa.prototype,"context",void 0),Pa=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,RightClickMenuItem:Xo}})],Pa);const ka=Pa,Ea=ka;var Ta=(0,N.Z)(Ea,wa,Ia,!1,null,"fba78680",null);const Da=Ta.exports;var Aa=n(47354);let Za=class extends s.ZP{constructor(){super(...arguments),this.clipboardDialog=!1,this.canPasteElement=!1,this.canPasteElementProperties=!1,this.elementIdToSaveAsGlobalBlock=null,this.saveGlobalBlockDialog=!1,this.elementIdToSaveAsPreset=null,this.savePresetDialog=!1}async mounted(){window.Breakdance.canvas.document.addEventListener("contextmenu",this.handleRightClickInCanvas),window.Breakdance.canvas.document.addEventListener("click",this.closeRightClickMenuIfClickHappensOutsideRightClickMenu,{capture:!0}),window.addEventListener("click",this.closeRightClickMenuIfClickHappensOutsideRightClickMenu,{capture:!0})}beforeDestroy(){window.Breakdance.canvas.document.removeEventListener("contextmenu",this.handleRightClickInCanvas),window.Breakdance.canvas.document.removeEventListener("click",this.closeRightClickMenuIfClickHappensOutsideRightClickMenu,{capture:!0}),window.removeEventListener("click",this.closeRightClickMenuIfClickHappensOutsideRightClickMenu,{capture:!0})}get menuState(){return"structure-panel"===this.context?"closed"!==c.uiStore.onStructurePanelRightClickMenuState?c.uiStore.onStructurePanelRightClickMenuState:null:"closed"!==c.uiStore.onCanvasRightClickMenuState?c.uiStore.onCanvasRightClickMenuState:null}get shouldShow(){const e="structure-panel"===this.context?"closed"!==c.uiStore.onStructurePanelRightClickMenuState:"closed"!==c.uiStore.onCanvasRightClickMenuState;return e&&!this.saveGlobalBlockDialog}get builderMode(){return c.configStore.builderMode}handleRightClickInCanvas(e){if(e.preventDefault(),(0,Aa.o8)())return;const t=(0,Le.Qf)(e.clientX,e.clientY),n=(0,ze.e)(e.clientX,e.clientY);n&&c.uiStore.setOnCanvasRightClickMenuState({elementId:t,position:n})}closeRightClickMenuIfClickHappensOutsideRightClickMenu(e){if(this.saveGlobalBlockDialog)return;const t=e.target.closest(".breakdance-canvas-right-click-menu");t||this.close()}get wrapperPositionStyle(){return this.menuState?{left:`${this.menuState.position.x}px`,top:`${this.menuState.position.y}px`}:{}}get elementIdPresent(){return this.menuState?.elementId}async onStateChange(){const{permission:e}=await(0,da.fn)();if(this.permission=e?.state,"prompt"===this.permission)return this.canPasteElement=!0,void(this.canPasteElementProperties=!0);this.canPasteElement=await(0,Wo.Ku)(this.menuState?.elementId?this.menuState.elementId:c.documentStore.document.tree.root.id),this.canPasteElementProperties=!!this.menuState?.elementId&&await(0,Wo.us)(this.menuState.elementId)}copyElement(){this.menuState?.elementId&&(0,Wo.NA)(this.menuState.elementId),this.close()}pasteElement(){"prompt"===this.permission&&(this.clipboardDialog=!0),this.menuState?.elementId?(0,Wo.Wm)(this.menuState.elementId):(0,Wo.Wm)(c.documentStore.document.tree.root.id),this.close()}pasteElementProperties(e){"prompt"===this.permission&&(this.clipboardDialog=!0),this.menuState?.elementId&&(0,Wo.qb)(this.menuState.elementId,e),this.close()}deleteElement(){this.menuState?.elementId&&(c.documentStore.deleteElement({nodeId:this.menuState?.elementId}),this.close())}openSaveGlobalBlockDialog(){this.menuState?.elementId&&(this.elementIdToSaveAsGlobalBlock=this.menuState.elementId,this.saveGlobalBlockDialog=!0)}closeGlobalBlockDialog(){this.saveGlobalBlockDialog=!1,this.elementIdToSaveAsGlobalBlock=null,this.close()}get canSaveAsGlobalBlock(){return this.menuState?.elementId&&(0,Yo.VQ)(this.menuState.elementId)}openSavePresetDialog(){this.menuState?.elementId&&(this.elementIdToSaveAsPreset=this.menuState.elementId,this.savePresetDialog=!0)}closePresetDialog(){this.savePresetDialog=!1,this.elementIdToSaveAsPreset=null,this.close()}get canSaveAsPreset(){return!(0,ae.CO)(this.menuState?.elementId)}close(){c.uiStore.setOnCanvasRightClickMenuState("closed"),c.uiStore.setOnStructurePanelRightClickMenuState("closed")}};(0,r.gn)([(0,l.fI)({default:"canvas"})],Za.prototype,"context",void 0),(0,r.gn)([(0,l.RL)("menuState")],Za.prototype,"onStateChange",null),Za=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,PresetDialog:xa,ClipboardDialog:ma,GlobalBlockDialog:ra,RightClickMenuItem:Xo,RightClickWrapMenu:Da}})],Za);const Oa=Za,Ma=Oa;var Ba=(0,N.Z)(Ma,Vo,$o,!1,null,null,null);const La=Ba.exports;let Na=class extends s.ZP{};Na=(0,r.gn)([(0,l.wA)({components:{DragPlaceholder:Ro,RightClickMenu:La}})],Na);const Fa=Na,Ra=Fa;var Va=(0,N.Z)(Ra,Ao,Zo,!1,null,null,null);const $a=Va.exports;var Wa=n(3565),Ua=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-empty-container node-chrome--singularity breakdance-empty-container-singularity",attrs:{id:"breakdance-empty-container"}},[t("div",{staticClass:"breakdance-empty-container-singularity__content"},[t("div",{staticClass:"breakdance-empty-container-singularity__options"},[t("SingularityCanvasOption",{attrs:{icon:"Grid2Icon",title:"Add from Library",description:"Browse and add pre-designed sections from the library."},on:{click:e.openSectionLibraryModal}}),t("SingularityCanvasOption",{attrs:{icon:"SparklesIcon",title:"Build with AI",description:"Generate a custom section using AI based on your description."},on:{click:e.openAddNewSectionAI}})],1)])])},za=[],Ha=n(12570),Ga=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Ha.Z,{attrs:{value:"true","content-class":"singularity-section-library-modal"},on:{input:e.closeDialog}},[t("div",{staticClass:"singularity-section-library-modal__header"},[t("h2",{staticClass:"singularity-section-library-modal__title"},[e._v(e._s(e.modalTitle))]),t("div",{staticClass:"singularity-section-library-modal__actions"},[t("div",{staticClass:"singularity-section-library-modal__sections-actions"},[t("IconButton",{staticClass:"singularity-icon-button",attrs:{icon:"SquareIcon",small:"",size:"14",active:1===e.columnLayout},on:{click:function(t){return e.setColumnLayout(1)}}}),t("IconButton",{staticClass:"singularity-icon-button",attrs:{icon:"Grid2Icon",size:"14",active:2===e.columnLayout},on:{click:function(t){return e.setColumnLayout(2)}}}),t("IconButton",{staticClass:"singularity-icon-button",attrs:{icon:"GridIcon",size:"14",active:3===e.columnLayout},on:{click:function(t){return e.setColumnLayout(3)}}})],1),t("IconButton",{staticClass:"singularity-icon-button",attrs:{size:"20",icon:"CloseSolidIcon"},on:{click:e.closeDialog}})],1)]),t("div",{staticClass:"singularity-section-library-modal__content",class:{"is-editing-header-or-footer":e.isEditingHeaderOrFooter,"is-selecting-section":"selected"===e.gridView}},[t("div",{staticClass:"singularity-section-library-modal__sections-list"},[t("div",{staticClass:"singularity-section-library-modal__sections-wrapper"},[t("div",{staticClass:"singularity-section-library-modal__search-sections"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.searchCategory,expression:"searchCategory"}],staticClass:"singularity-section-library-modal__sections-search",attrs:{type:"text",placeholder:"Search sections..."},domProps:{value:e.searchCategory},on:{input:function(t){t.target.composing||(e.searchCategory=t.target.value)}}}),t("Icon",{attrs:{icon:"SearchIcon",size:"16"}})],1),t("ul",{staticClass:"singularity-section-library-modal__categories"},e._l(e.sectionsCategories,(function(n){return t("li",{key:n.type,staticClass:"singularity-section-library-modal__section-category"},[t("button",{class:{"singularity-section-library-modal__category-button":!0,"is-active":e.activeCategoryType===n.type},on:{click:function(t){return e.setSelectCategory(n.type)}}},[e._v(" "+e._s(n.type)+" ")])])})),0)])]),"all"===e.gridView?t("div",{staticClass:"singularity-section-library-modal__sections"},[t("transition-group",{key:e.activeCategoryType,class:e.gridClass,attrs:{name:"fade",tag:"div"}},e._l(e.activeCategory,(function(n,s){return t("SectionCard",{key:`${n.type}-${s}`,attrs:{currentSection:e.currentSectionIsSame(s,n.type),value:n,layout:"detailed"},nativeOn:{click:function(t){return e.setSelectedSection(n,s)}}})})),1)],1):e._e(),"selected"===e.gridView?t("div",{staticClass:"singularity-section-library-modal__selected"},[t("div",{staticClass:"singularity-section-library-modal__selected-content"},[t("div",{staticClass:"singularity-section-library-modal__selected-actions"},[e.selectedSection?t("SectionCard",{staticClass:"section-card-no-hover-effect",staticStyle:{width:"450px","max-width":"100%"},attrs:{value:e.selectedSection,layout:"detailed","max-height":"550px"}}):e._e()],1),t("div",{staticClass:"singularity-section-library-modal__selected-options"},[e.isReplacingSection?[t("SingularityOption",{attrs:{title:"Replace section & write content",icon:"SparklesIcon"},on:{click:function(t){return e.handleSection(!0)}}}),t("SingularityOption",{attrs:{title:"Replace section with default content",icon:"EditIcon"},on:{click:function(t){return e.handleSection(!1)}}})]:[t("SingularityOption",{attrs:{title:"Insert section & write content",icon:"SparklesIcon"},on:{click:function(t){return e.handleSection(!0)}}}),t("SingularityOption",{attrs:{title:"Insert section with default content",icon:"EditIcon"},on:{click:function(t){return e.handleSection(!1)}}})],t("NiceButton",{attrs:{color:"gray-ghost",expanded:"true",size:"large"},on:{click:e.setGridViewToAll}},[e._v("back to all sections ")])],2)])]):e._e()])])},Ka=[],ja=n(23279),qa=n.n(ja),Xa=n(22608),Ya=n(18332),Qa=n(98949),Ja=(n(98374),n(51617)),er=n(42665),tr=n(60719),nr=n(48299),sr=n(15167),ir=n(45335);const or="https://breakdance-design-library-section-screenshots-ap-production.up.railway.app/screenshots/barebones";function ar(){const e=(0,Ya.Jb)();return Object.entries(e).flatMap((([e,t])=>t.map(((t,n)=>({label:`${e} ${n}`,index:n,node:t,type:e,screenshotUrl:dr(e,String(t.id))})))))}function rr(){const e=(0,Ya.Jb)();return Object.entries(e).map((([e,t])=>{const n=t[0];return{label:`${e} 0`,index:0,node:n,type:e,screenshotUrl:dr(e,String(n.id))}})).filter(Boolean)}function lr(){const e=c.documentStore.document.tree.root.children.find((e=>e.data.type===Us.Uu));return e?1:0}function cr(e,t){let n,s;if(-1===t)n=c.documentStore.document.tree.root.id,s=lr();else{const e=(0,ge.getNodeParent)(c.documentStore.document.tree,t);if(!1===e)return null;n=e.id;const i=(0,ge.getNodeIndex)(c.documentStore.document.tree,t);s=!1!==i?i+1:0}const i={nodeId:void 0};return(0,Qa.AE)([e],"inserting",i),i.nodeId&&c.documentStore.moveElement({draggedElementId:i.nodeId,droppedOnElementId:n,index:s}),i.nodeId??null}function dr(e,t){const n=e.toLowerCase().replace(/[^a-z0-9]/g,""),s=`${n}-${t}.jpg`;return`${or}/${n}/${s}`}function ur(e,t,n,s,i){let o;if("swap"===s){const e=(0,ge.findNode)(c.documentStore.document.tree,n);e&&(o=(0,ir.p2)(e))}const a={type:e.type,sectionFriendlyName:`${e.type}`,description:""},r=(0,Ja.gq)(e.node,a,t,!1),l=(0,Ja.ML)(r,a.sectionFriendlyName),d=cr(l,n);if(d){const e=d,t=(0,ge.findNode)(c.documentStore.document.tree,e),n=(0,ge.getNodeIndex)(c.documentStore.document.tree,e);if(!t)return;"add_before"===s&&c.documentStore.moveElement({draggedElementId:d,droppedOnElementId:c.documentStore.document.tree.root.id,index:n?Math.max(0,n-1):0}),i&&er.P.addJob((async n=>{await(0,tr.H2)(e,n,!0,o),await(0,nr.q)(t,n)}),{jobType:"section_rewrite",documentId:c.documentStore.document.documentMeta.id,elementId:e,description:`Rewrite and image population for new section in document "${c.documentStore.document.documentMeta.titleLabel}" - section ${e}`,priority:"critical",snapshotLabel:"Rewrite section with AI"})}"swap"===s&&c.documentStore.deleteElement({nodeId:n}),(0,A.forceNextTick)((()=>{c.uiStore.activateElement(d)}))}function pr(e){const t=(0,sr.E)((0,ge.findNode)(c.documentStore.document.tree,e));if(!t.singularity||!t.singularity.sectionData.type||!t.singularity.sectionData.index)return null;const n=t.singularity.sectionData.type,s=t.singularity.sectionData.index;return ar().find((e=>e.type===n&&e.index===s))||null}var hr=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"section-card",class:{"section-card--current":e.currentSection}},["default"===e.layout?[t("div",{staticClass:"section-card-preview"},[e.showLabel||e.currentSection?t("div",{staticClass:"section-card-tag"},[t("SingularityBadge",{attrs:{value:e.showLabel?e.value.label:"Selected",color:e.isGlobal?"teal":"default"}})],1):e._e(),t("img",{style:e.imageStyles,attrs:{src:e.value.screenshotUrl,alt:"Section Preview"}})])]:"detailed"===e.layout?[t("div",{staticClass:"section-card-title"},[t("span",[e._v(e._s(e.value.label))]),e.currentSection?t("SingularityBadge",{attrs:{value:"Selected"}}):e._e()],1),t("div",{staticClass:"section-card-preview"},[t("img",{style:e.imageStyles,attrs:{src:e.value.screenshotUrl,alt:"Section Preview"}})])]:e._e()],2)},gr=[],mr=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-badge",class:`singularity-badge--${e.color}`},[t("span",{staticClass:"singularity-badge__text"},[e._v(e._s(e.value))])])},vr=[];let yr=class extends s.ZP{};(0,r.gn)([(0,l.fI)({required:!0})],yr.prototype,"value",void 0),(0,r.gn)([(0,l.fI)({default:"default"})],yr.prototype,"color",void 0),yr=(0,r.gn)([(0,l.wA)({})],yr);const fr=yr,_r=fr;var br=(0,N.Z)(_r,mr,vr,!1,null,null,null);const Sr=br.exports;let Cr=class extends s.ZP{get imageStyles(){return{maxHeight:"number"===typeof this.maxHeight?`${this.maxHeight}px`:this.maxHeight}}};(0,r.gn)([(0,l.fI)()],Cr.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],Cr.prototype,"currentSection",void 0),(0,r.gn)([(0,l.fI)()],Cr.prototype,"showLabel",void 0),(0,r.gn)([(0,l.fI)({default:!1})],Cr.prototype,"isGlobal",void 0),(0,r.gn)([(0,l.fI)({default:"default"})],Cr.prototype,"layout",void 0),(0,r.gn)([(0,l.fI)({default:"auto"})],Cr.prototype,"maxHeight",void 0),Cr=(0,r.gn)([(0,l.wA)({components:{SingularityBadge:Sr}})],Cr);const xr=Cr,wr=xr;var Ir=(0,N.Z)(wr,hr,gr,!1,null,null,null);const Pr=Ir.exports;var kr=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-option",on:{click:function(t){return e.$emit("click")}}},[t("Icon",{attrs:{icon:e.icon,size:"16"}}),t("div",{staticClass:"singularity-option__content"},[t("h4",[e._v(e._s(e.title))]),e.description?t("p",[e._v(e._s(e.description))]):e._e(),e._t("content")],2),t("div",{staticClass:"singularity-option__icon-chevron"},[t("Icon",{attrs:{icon:"ChevronRightIcon",size:"16"}})],1)],1)},Er=[];let Tr=class extends s.ZP{};(0,r.gn)([(0,l.fI)()],Tr.prototype,"title",void 0),(0,r.gn)([(0,l.fI)()],Tr.prototype,"description",void 0),(0,r.gn)([(0,l.fI)({default:"SparklesIcon"})],Tr.prototype,"icon",void 0),Tr=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],Tr);const Dr=Tr,Ar=Dr;var Zr=(0,N.Z)(Ar,kr,Er,!1,null,null,null);const Or=Zr.exports;var Mr,Br=n(79333);(function(e){e["showAll"]="all",e["selected"]="selected"})(Mr||(Mr={}));let Lr=class extends s.ZP{constructor(){super(...arguments),this.searchCategory="",this.columnLayout=2,this.gridView=Mr.showAll,this.selectedSectionIndex=null,this.selectedSection=null,this.selectedCategoryType=null,this.debouncedLogSearchFn=qa()((e=>{(0,Tt.K)("FutureLayer Section Search",{searchTerm:e})}),1e3)}setGridView(e){this.gridView=e}setGridViewToAll(){this.selectedSection=null,this.selectedSectionIndex=null,this.gridView=Mr.showAll}get modalTitle(){if(this.isEditingHeaderOrFooter){if("header"===this.headerAndFooterEditorPanelState?.elementType)return"Add Header";if("footer"===this.headerAndFooterEditorPanelState?.elementType)return"Add Footer"}return this.gridView===Mr.selected?"Insert Section":"Add Section"}closeDialog(){this.$emit("close")}get sectionToSwapData(){if(!this.sectionAddOrSwapPanelState.sectionId)return null;const e=(0,ge.findNode)(c.documentStore.document.tree,this.sectionAddOrSwapPanelState.sectionId);return e?(0,sr.E)(e).singularity.sectionData:null}currentSectionIsSame(e,t){return this.sectionToSwapData?.type===t&&this.sectionToSwapData?.index===e}get gridClass(){return`singularity-section-library-modal__sections-masonry singularity-section-library-modal__sections-masonry--${this.columnLayout}`}setColumnLayout(e){this.columnLayout=e}get sections(){return ar()}setSelectedSection(e,t){this.setGridView(Mr.selected),this.selectedSectionIndex=t,this.selectedSection=e}get isReplacingSection(){return"swap"===this.mode}handleSection(e){this.selectedSection&&null!==this.selectedSectionIndex&&void 0!==this.selectedSectionIndex&&((0,Tt.K)("FutureLayer Section Chosen",{sectionType:this.selectedSection.type,sectionIndex:this.selectedSectionIndex,mode:this.mode,isRewriteActive:e}),ur(this.selectedSection,this.selectedSectionIndex,this.sectionAddSectionId,this.mode,e),this.closeDialog())}get sectionAddOrSwapPanelState(){return c.singularityStore.sectionAddOrSwapPanelState}get sectionAddSectionId(){return this.sectionAddOrSwapPanelState.sectionId??-1}get mode(){return this.sectionAddOrSwapPanelState.mode}get headerAndFooterEditorPanelState(){return c.singularityStore.headerAndFooterEditorPanelState}get isEditingHeaderOrFooter(){return null!==this.headerAndFooterEditorPanelState}get filteredSections(){return this.isEditingHeaderOrFooter?["Headers","Footer","Index"]:["Index"]}get activeCategory(){return this.sections.filter((e=>e.type===this.activeCategoryType))}get sectionsCategories(){const e=rr().filter((e=>"Index"!==e.type));return this.isEditingHeaderOrFooter?"header"===this.headerAndFooterEditorPanelState?.elementType?e.filter((e=>"Headers"===e.type)).filter((e=>e.type.toLowerCase().includes(this.searchCategory.toLowerCase().trim()))):"footer"===this.headerAndFooterEditorPanelState?.elementType?e.filter((e=>"Footers"===e.type)).filter((e=>e.type.toLowerCase().includes(this.searchCategory.toLowerCase().trim()))):e.filter((e=>["Headers","Footers"].includes(e.type))).filter((e=>e.type.toLowerCase().includes(this.searchCategory.toLowerCase().trim()))):e.filter((e=>!["Headers","Footers"].includes(e.type))).filter((e=>e.type.toLowerCase().includes(this.searchCategory.toLowerCase().trim())))}get activeCategoryType(){return!this.selectedCategoryType&&this.sectionToSwapData?.type&&(this.selectedCategoryType=this.sectionToSwapData.type),this.selectedCategoryType||"Features"}setSelectCategory(e){this.selectedCategoryType=e,(0,Tt.K)("FutureLayer Section Category Selected",{categoryType:e})}onSearchCategoryChange(e){""!==e&&this.debouncedLogSearchFn(e)}};(0,r.gn)([(0,l.RL)("searchCategory")],Lr.prototype,"onSearchCategoryChange",null),Lr=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z,Icon:He.Z,SectionCard:Pr,SingularityOption:Or,NiceButton:Br.Z}})],Lr);const Nr=Lr,Fr=Nr;var Rr=(0,N.Z)(Fr,Ga,Ka,!1,null,null,null);const Vr=Rr.exports;var $r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-empty-container-singularity__option",attrs:{role:"button"},on:{click:function(t){return e.$emit("click")}}},[t("Icon",{staticClass:"breakdance-empty-container-singularity__option-icon",attrs:{icon:e.icon,size:"32"}}),t("div",{staticClass:"breakdance-empty-container-singularity__option-text"},[t("h2",{staticClass:"breakdance-empty-container-singularity__option-title"},[e._v(" "+e._s(e.title)+" ")]),t("p",{staticClass:"breakdance-empty-container-singularity__option-description"},[e._v(" "+e._s(e.description)+" ")])])],1)},Wr=[];let Ur=class extends s.ZP{};(0,r.gn)([(0,l.fI)()],Ur.prototype,"title",void 0),(0,r.gn)([(0,l.fI)()],Ur.prototype,"description",void 0),(0,r.gn)([(0,l.fI)({default:"SparklesSolidIcon"})],Ur.prototype,"icon",void 0),Ur=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],Ur);const zr=Ur,Hr=zr;var Gr=(0,N.Z)(Hr,$r,Wr,!1,null,null,null);const Kr=Gr.exports;let jr=class extends s.ZP{constructor(){super(...arguments),this.isModalOpen=!1}get canAddElement(){return c.uiStore.hasFullAccess}openSectionLibraryModal(){c.singularityStore.setSectionLibraryModalState(!0)}openPagesManager(){c.singularityStore.setSingularityLeftPanel("page_manager"),c.singularityStore.highlightSingularityLeftPanel()}openAddNewSectionAI(){c.singularityStore.setAddNewSectionPanelState({mode:"breakdance_ai"}),c.singularityStore.highlightSingularityLeftPanel()}};(0,r.gn)([(0,l.fI)({default:null})],jr.prototype,"id",void 0),jr=(0,r.gn)([(0,l.wA)({components:{SingularityCanvasButton:En,SingularitySectionLibraryModal:Vr,Icon:He.Z,SingularityCanvasOption:Kr}})],jr);const qr=jr,Xr=qr;var Yr=(0,N.Z)(Xr,Ua,za,!1,null,null,null);const Qr=Yr.exports;var Jr=n(79298),el=n(660),tl=n(16068),nl=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.shouldShowBackdrop?t("span",{staticClass:"breakdance-inline-editor-backdrop",style:e.style,on:{click:e.onBackdropClick}}):e._e()},sl=[],il=n(87950);let ol=class extends l.w3{get style(){return this.rect?{clipPath:`polygon(\n 0% 0%,\n 100% 0%,\n 100% 100%,\n 0% 100%,\n 0% ${this.rect?.y}px,\n ${this.rect?.x}px ${this.rect?.y}px,\n ${this.rect?.x}px ${this.rect?.bottom}px,\n ${this.rect?.right}px ${this.rect?.bottom}px,\n ${this.rect?.right}px ${this.rect?.y}px,\n 0% ${this.rect?.y}px\n )`}:null}get shouldShowBackdrop(){return Q.kD.isInlineEditing&&Q.kD.inlineEditingContext?.showBackdrop}get rect(){return Q.kD.inlineEditingRect}onBackdropClick(){(0,il.Uw)()}};ol=(0,r.gn)([l.wA],ol);const al=ol,rl=al;var ll=(0,N.Z)(rl,nl,sl,!1,null,null,null);const cl=ll.exports;var dl=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.draggedElement&&e.dragPosition?t("div",{staticClass:"breakdance-drag-ghost-element",style:{top:e.dragPosition?.y?e.dragPosition.y+"px":"0",left:e.dragPosition?.x?e.dragPosition.x+"px":"0"}},[e._v(" "+e._s(e.elementName)+" ")]):e._e()},ul=[];let pl=class extends l.w3{constructor(){super(...arguments),this.scrollInterval=null,this.maxScrollSpeed=30,this.edgeThreshold=100}onDragElementSet(){this.draggedElement?this.scrollInterval=setInterval(this.startAutoScroll,20):this.stopAutoScroll()}get dragPosition(){return Q.kD.dragMousePosition}get draggedElement(){const e=Q.kD.currentlyDraggingAddElementSlug,t=Q.kD.currentlyDraggingCanvasElementId;if(e)return e;if(t){const e=this.draggedNode;if(e)return e.data.type}return null}get draggedNode(){return Q.kD.currentlyDraggingCanvasElementId?(0,ge.findNode)(Q.Hb.document.tree,Q.kD.currentlyDraggingCanvasElementId):null}get elementName(){if(!this.draggedElement)return"";const e=this.draggedNode?.data?.properties?.meta?.friendlyName;if(e)return e;const t=Q.PK.element(this.draggedElement);return t.name}calculateScrollSpeed(e){return Math.max(0,this.maxScrollSpeed*(1-e/this.edgeThreshold))}startAutoScroll(){if(!this.dragPosition)return;const e=window.Breakdance.canvas.document,t=e.defaultView;if(e.documentElement.style.scrollBehavior="auto",!t)return;const n=t.innerHeight,s=this.dragPosition.y;let i=0;sn-this.edgeThreshold&&(i=this.calculateScrollSpeed(n-s)),0!==i&&t.scrollBy({top:i,behavior:"auto"})}stopAutoScroll(){const e=window.Breakdance.canvas.document;e.documentElement.style.scrollBehavior="",this.scrollInterval&&(clearInterval(this.scrollInterval),this.scrollInterval=null)}};(0,r.gn)([(0,l.RL)("draggedElement")],pl.prototype,"onDragElementSet",null),pl=(0,r.gn)([(0,l.wA)({})],pl);const hl=pl,gl=hl;var ml=(0,N.Z)(gl,dl,ul,!1,null,null,null);const vl=ml.exports;let yl=class extends s.ZP{render(){const e=arguments[0],t=()=>this.canvasIsEmpty&&!this.isFutureLayerMode?e(Wa.Z):this.isFutureLayerMode?this.elementsForCanvasInFutureLayerMode.map((t=>"empty-container"===t.type?e(Qr,{key:"empty-container"}):e(w["default"],{key:t.element.id,attrs:{parentId:this.rootElement.id,element:t.element}}))):this.rootElement.children.map((t=>e(w["default"],{key:t.id,attrs:{parentId:this.rootElement.id,element:t}})));return e("div",{key:this.canvasKey,class:this.classList,attrs:{id:"breakdance_canvas"},style:this.style},[t(),!this.isPreviewMode&&e(Do),(!this.isPreviewMode&&!this.isOnboardingMode)??e($a),!this.isPreviewMode&&e($a),!this.isPreviewMode&&e(cl),!this.isPreviewMode&&e(vl),this.previewSettings.backgroundColor&&this.previewGlobalStyle()])}mounted(){c.uiStore.setCanvasState("normal"),addEventListener("storage",this.onStorage)}beforeDestroy(){removeEventListener("storage",this.onStorage)}onStorage(e){"oxy_selectors"===e.key&&(0,tl.z3)(e)}get isFutureLayerMode(){return(0,Aa.o8)()}get canvasKey(){return c.uiStore.canvasKey}get builderMode(){return c.configStore.builderMode||"breakdance"}get isPreviewMode(){return c.uiStore.isPreviewMode}get isOnboardingMode(){return window.Breakdance.isOnboarding}get classList(){return{[this.builderMode]:!0,canvas:!0,dragging:c.uiStore.isCanvasElementBeingDragged||c.uiStore.isAddElementBeingDragged}}get rootElement(){return c.documentStore.document.tree.root}get canvasIsEmpty(){return this.isFutureLayerMode?(0,Us.vN)(c.documentStore.document.tree):0===this.rootElement.children.length}get elementsForCanvasInFutureLayerMode(){const e=this.rootElement.children.map((e=>({type:"element",element:e})));if(this.isFutureLayerMode&&this.canvasIsEmpty){const t=e.findIndex((e=>e.element?.data.type===Us.Uu)),n=t>=0?t+1:0;e.splice(n,0,{type:"empty-container"})}return e}get globalProperties(){return c.globalStore.globalProperties}get selectors(){return c.globalStore.cssSelectors}get presets(){return c.globalStore.presets}get oxySelectors(){return c.globalStore.oxySelectors}get variables(){return c.globalStore.variables}get previewSettings(){const{preview:e}=c.documentStore.document.documentMeta.blockSettings||{preview:{}};return{width:e.width,height:e.height,backgroundColor:e.backgroundColor,isCentered:e.isCentered}}get style(){const{height:e,width:t,isCentered:n}=this.previewSettings,s={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"};return{maxWidth:t?"100%":void 0,width:t?`${t}px`:void 0,height:e?`${e}px`:void 0,margin:t||e?"0 auto":void 0,...n?s:{}}}previewGlobalStyle(){const e=this.$createElement,{backgroundColor:t}=this.previewSettings,n="oxygen"===this.builderMode?"background-color":"--bde-background-color";return e("style",[`\n :root,\n body {\n ${n}: ${t};\n }\n `])}onGlobalSettingsChanged(){(0,Jr.TK)((0,T.RY)())}onSelectorsChanged(){(0,Jr.EO)((0,T.RY)())}onPresetsChanged(){(0,Jr.aL)((0,T.RY)())}onOxySelectorsChanged(){(0,el.V)((0,T.RY)())}onVariablesChanged(){(0,Jr.Vq)((0,T.RY)()),(0,el.V)((0,T.RY)())}};(0,r.gn)([(0,l.RL)("globalProperties",{deep:!0,immediate:!0})],yl.prototype,"onGlobalSettingsChanged",null),(0,r.gn)([(0,l.RL)("selectors",{deep:!0,immediate:!0})],yl.prototype,"onSelectorsChanged",null),(0,r.gn)([(0,l.RL)("presets",{deep:!0,immediate:!0})],yl.prototype,"onPresetsChanged",null),(0,r.gn)([(0,l.RL)("oxySelectors",{deep:!0,immediate:!0})],yl.prototype,"onOxySelectorsChanged",null),(0,r.gn)([(0,l.RL)("variables",{deep:!0,immediate:!0})],yl.prototype,"onVariablesChanged",null),yl=(0,r.gn)([(0,l.wA)({components:{DragGhostElement:vl,EmptyContainer:Wa.Z,BuilderElement:w["default"],NodeChrome:Do,CanvasChrome:$a}})],yl);const fl=yl,_l=fl;var bl,Sl,Cl=(0,N.Z)(_l,bl,Sl,!1,null,null,null);const xl=Cl.exports;var wl=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:e.classes,style:e.style},[t("div",{staticClass:"breakdance-preview-width-adjustment-handle align-center",on:{mousedown:e.dragStart,dblclick:e.resetPreviewWidth}},[t("Icon",{staticClass:"breakdance-preview-width-adjustment-handle__icon",attrs:{icon:"EllipsisStrokeVerticalIcon",size:"6",heightAuto:!0}})],1),e.isDragging||e.currentPreviewWidthIsSetByUser?t("div",{staticClass:"breakdance-px-amount"},[e._v(" "+e._s(e.pxAmount)+" "),t("Icon",{staticClass:"px-amount-reset-icon",attrs:{icon:"CloseCircleIcon",size:"11"},on:{click:e.resetPreviewWidth}})],1):e._e(),e.currentMediaQueryStr?t("div",{staticClass:"breakdance-preview-width-adjustment-handle-preview"},[t("span",{staticClass:"breakdance-preview-width-adjustment-handle-preview__amount"},[e._v(" "+e._s(e.currentBreakpoint.maxWidth)+" ")]),e._v(" "+e._s(e.currentMediaQueryStr)+" ")]):e._e()])},Il=[];let Pl=class extends s.ZP{constructor(){super(...arguments),this.mouseXChange=0,this.lastMouseX=0,this.isDragging=!1,this.easyEvent=new Z.hF}get currentPreviewWidthIsSetByUser(){return"100%"===this.currentBreakpoint.defaultPreviewWidth?"100%"!==this.previewWidth.width:this.previewWidth.width!==this.currentBreakpoint.defaultPreviewWidth}get currentMediaQueryStr(){return(0,Pe.Mc)(this.currentBreakpoint.minWidth,this.currentBreakpoint.maxWidth)}get builderMode(){return c.configStore.builderMode}get style(){return{left:`${this.iframeWrapperPosition.x+this.iframeWrapperPosition.width}px`,height:`${this.iframeWrapperPosition.height}px`}}get pxAmount(){return"100%"===this.previewWidth.width?"100%":`${this.previewWidth.width}px`}get alreadyAtMaximumWidth(){return"100%"===this.previewWidth.width||this.previewWidth.width>=this.previewWidth.availableCanvasSize.width}dragStart(e){e.preventDefault(),e.stopPropagation(),this.easyEvent.on("mousemove",this.dragging),this.easyEvent.on("mouseup",this.dragEnd),this.lastMouseX=e.clientX,this.iframe&&(this.iframe.style.pointerEvents="none"),this.mainWrapper&&(this.mainWrapper.style.cursor="col-resize",this.mainWrapper.classList.add("is-dragging-adjustment-handle"))}dragging(e){(0,Z.Pm)(e)||(this.isDragging=!0,e.preventDefault(),e.stopPropagation(),this.mouseXChange=e.clientX-this.lastMouseX,this.adjustPreviewWidth(2*this.mouseXChange),this.lastMouseX=e.clientX)}dragEnd(e){e.preventDefault(),e.stopPropagation(),this.easyEvent.removeAll(),this.iframe&&(this.iframe.style.pointerEvents="auto"),this.mainWrapper&&(this.mainWrapper.style.cursor="auto",this.mainWrapper.classList.remove("is-dragging-adjustment-handle")),this.isDragging=!1}adjustPreviewWidth(e){let t;const n=this.previewWidth.width;if(this.alreadyAtMaximumWidth&&e>0&&(e=0),"100%"===this.previewWidth.width){if(!this.iframe)return void console.warn("iframe element is missing");t=this.iframe.offsetWidth-e}else t=this.previewWidth.width+e;"100%"!==n&&t>n&&t>this.previewWidth.availableCanvasSize.width&&(t=this.previewWidth.availableCanvasSize.width),this.$emit("previewWidthChangeWithAdjustmentBar",t)}resetPreviewWidth(){this.$emit("resetPreviewWidth")}get classes(){return{"breakdance-preview-width-bar":!0,"breakdance-preview-width-bar-is-dragging":this.isDragging}}};(0,r.gn)([(0,l.fI)()],Pl.prototype,"iframeWrapperPosition",void 0),(0,r.gn)([(0,l.fI)()],Pl.prototype,"previewWidth",void 0),(0,r.gn)([(0,l.fI)()],Pl.prototype,"currentBreakpoint",void 0),(0,r.gn)([(0,l.fI)()],Pl.prototype,"mainWrapper",void 0),(0,r.gn)([(0,l.fI)()],Pl.prototype,"iframe",void 0),Pl=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],Pl);const kl=Pl,El=kl;var Tl=(0,N.Z)(El,wl,Il,!1,null,null,null);const Dl=Tl.exports;var Al=n(86687),Zl=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Qo.Z,e._g({class:e.classList,attrs:{elevation:"0",loading:e.loading,height:"breakdance"===e.builderMode?37:32,minWidth:e.minWidth,outlined:"breakdance"===e.builderMode,"data-test-id":e.testId}},e.$listeners),[e._t("default")],2)},Ol=[];let Ml=class extends s.ZP{get classList(){return{"breakdance-toolbar-button":"breakdance"===this.builderMode,"breakdance-toolbar-button--active":this.active,"button-oxygen":"oxygen"===this.builderMode}}get builderMode(){return Q.PK.builderMode}};(0,r.gn)([(0,l.fI)({default:!1})],Ml.prototype,"loading",void 0),(0,r.gn)([(0,l.fI)({default:!1})],Ml.prototype,"active",void 0),(0,r.gn)([(0,l.fI)({default:"auto"})],Ml.prototype,"minWidth",void 0),(0,r.gn)([(0,l.fI)()],Ml.prototype,"testId",void 0),Ml=(0,r.gn)([(0,l.wA)({components:{}})],Ml);const Bl=Ml,Ll=Bl;var Nl=(0,N.Z)(Ll,Zl,Ol,!1,null,null,null);const Fl=Nl.exports;var Rl=n(49026),Vl=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.showOverlay?t("div",{class:e.classes,style:e.overlayStyles,on:{mouseleave:e.handleOverlayMouseLeave,click:e.openInCanvasInSingularityMode}},[t("div",{staticClass:"breakdance-foreign-documents-overlay-titlebar-wrapper"},[t("div",{staticClass:"breakdance-foreign-documents-overlay-titlebar"},[e.isSingularityMode?[t("a",[e._v(e._s(e.sprintf(e._xdoc("Edit %s","Document","%s: Document title"),e.foreignDocumentTitle)))])]:[t("a",{attrs:{href:e.foreignDocumentBuilderUrl},on:{click:e.openBuilderUrl}},[e._v(" "+e._s(e.sprintf(e._xdoc("Edit %s","Document","%s: Document title"),e.foreignDocumentTitle))+" "),t("Icon",{attrs:{icon:"EditIcon"}})],1)]],2)])]):e._e()},$l=[];const Wl=e=>`${e}px`;var Ul,zl=n(94543),Hl=n(63085);(function(e){e["breakdance_header"]="header",e["oxygen_header"]="header",e["breakdance_footer"]="footer",e["oxygen_footer"]="footer"})(Ul||(Ul={}));let Gl=class extends s.ZP{constructor(){super(...arguments),this.hoveredForeignDocumentDomElement=null,this.hoveredForeignDocumentDomElementCoords=null,this.isScrolling=!1,this.isScrollingCleanupTimerId=null,this.throttledHandleIframeScroll=U()(this.handleIframeScroll,120),this.throttledHandleWatchedElementMouseMove=U()(this.handleWatchedElementMouseMove,60),this.openingInProgress=!1}get showOverlay(){return c.uiStore.hasFullAccess}get foreignDocumentBuilderUrl(){return this.hoveredForeignDocumentDomElement?.dataset.breakdanceForeignDocumentBuilderUrl}get foreignDocumentTypeLabel(){const e=this.hoveredForeignDocumentDomElement?.dataset.breakdanceForeignDocumentType;return e?Ul[e]??"":""}get foreignDocumentTitle(){const e=this.hoveredForeignDocumentDomElement?.dataset.breakdanceForeignDocumentTitle;return e||(0,Ft.__)("Unknown Document")}get overlayStyles(){if(!this.isThereHoveredElementAndItsCoords())return;const{top:e,left:t,height:n,width:s}=this.hoveredForeignDocumentDomElementCoords;return{display:"flex",top:Wl(e),left:Wl(t),height:Wl(n),width:Wl(s)}}mounted(){this.addEventListenersToIframeDocument(),this.addEventListenersToWatchedElements()}beforeDestroy(){this.removeEventListenersFromIframeDocument(),this.removeEventListenersFromWatchedElements()}addEventListenersToIframeDocument(){this.iframeDocument.addEventListener("scroll",this.throttledHandleIframeScroll)}removeEventListenersFromIframeDocument(){this.iframeDocument.removeEventListener("scroll",this.throttledHandleIframeScroll)}addEventListenersToWatchedElements(){this.elementsToWatch.forEach((e=>{e.addEventListener("mousemove",this.throttledHandleWatchedElementMouseMove),e.addEventListener("mouseleave",this.handleWatchedElementMouseLeave)}))}removeEventListenersFromWatchedElements(){this.elementsToWatch.forEach((e=>{e.removeEventListener("mousemove",this.throttledHandleWatchedElementMouseMove),e.removeEventListener("mouseleave",this.handleWatchedElementMouseLeave)}))}isThereHoveredElementAndItsCoords(){return null!==this.hoveredForeignDocumentDomElement&&null!==this.hoveredForeignDocumentDomElementCoords}setHoveredForeignDocumentDomElement(e){this.hoveredForeignDocumentDomElement=e,this.hoveredForeignDocumentDomElementCoords=this.getCoords()}getCoords(){const e=this.hoveredForeignDocumentDomElement;if(1===e?.childElementCount){const t=e.firstElementChild;return t.getBoundingClientRect()}return e?.getBoundingClientRect()??null}setIsScrolling(e){e?(this.hoveredForeignDocumentDomElement=null,this.hoveredForeignDocumentDomElementCoords=null,this.removeEventListenersFromWatchedElements()):this.addEventListenersToWatchedElements(),this.isScrolling=e}handleIframeScroll(){this.setIsScrolling(!0),this.isScrollingCleanupTimerId&&clearTimeout(this.isScrollingCleanupTimerId),this.isScrollingCleanupTimerId=setTimeout((()=>this.setIsScrolling(!1)),120)}handleOverlayMouseLeave(){this.setHoveredForeignDocumentDomElement(null)}handleWatchedElementMouseMove(e){e.currentTarget&&this.setHoveredForeignDocumentDomElement(e.currentTarget)}handleWatchedElementMouseLeave(e){this.$el.contains(e.relatedTarget)?null!==this.hoveredForeignDocumentDomElement&&(this.hoveredForeignDocumentDomElementCoords=this.getCoords()):this.setHoveredForeignDocumentDomElement(null)}openBuilderUrl(){const e=this.foreignDocumentBuilderUrl;e&&this.$emit("openDocument",{builderUrl:e,title:this.foreignDocumentTitle})}get isSingularityMode(){return c.uiStore.isSingularityMode}get classes(){return{"breakdance-foreign-documents-overlay":!0,"breakdance-foreign-documents-overlay--singularity-mode":this.isSingularityMode}}async openInCanvasInSingularityMode(){if(!this.isSingularityMode)return;if(console.log(this.foreignDocumentBuilderUrl),!this.foreignDocumentBuilderUrl)return;const e=this.getDocIdFromBuilderUrl(this.foreignDocumentBuilderUrl);console.log(e),e&&(this.openingInProgress=!0,await(0,zl.$)(),await(0,Hl.rI)(e),c.singularityStore.setSingularityLeftPanel("page_structure"),this.openingInProgress=!1)}getDocIdFromBuilderUrl(e){const t=new URL(e),n=t.searchParams.get("id");return n?parseInt(n):null}};(0,r.gn)([(0,l.fI)()],Gl.prototype,"canvasElement",void 0),(0,r.gn)([(0,l.fI)()],Gl.prototype,"iframeDocument",void 0),(0,r.gn)([(0,l.fI)()],Gl.prototype,"elementsToWatch",void 0),Gl=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],Gl);const Kl=Gl,jl=Kl;var ql=(0,N.Z)(jl,Vl,$l,!1,null,null,null);const Xl=ql.exports;var Yl=n(713),Ql=n(11529),Jl=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"mainWrapper",staticClass:"breakdance-iframe-main-wrapper",style:e.mainWrapperStyle,attrs:{id:"canvas-area"}},[t("PreviewWidthAdjustmentHandle",{attrs:{"iframe-wrapper-position":e.iframeWrapperPosition,"preview-width":e.iframePreviewWidth,"current-breakpoint":e.currentBreakpoint,iframe:e.iframe,"main-wrapper":e.mainWrapper},on:{resetPreviewWidth:()=>this.$emit("resetPreviewWidth"),previewWidthChangeWithAdjustmentBar:e=>this.$emit("previewWidthChangeWithAdjustmentBar",e)}}),e.iframeExited?t("div",{staticClass:"iframe-reloaded-warning-block"},[e._v(" Something navigated you away from the page you are editing. "),t("StandardButton",{staticClass:"mt-4",attrs:{minWidth:"80"},on:{click:e.handleReloadWanted}},[e._v(" Continue Editing ")])],1):t("div",{ref:"iframeWrapper",staticClass:"breakdance-iframe-inner-wrapper",style:e.iframeWrapperStyles,attrs:{id:"iframe-wrapper"}},[e.iframeIsLoading?t("Loading",{attrs:{absolute:""}}):e._e(),t("iframe",{key:e.iframeUrl,ref:"iframe",staticClass:"breakdance-iframe",style:e.iframeStyle,attrs:{id:e.iframeId,name:e.iframeId,src:e.iframeUrl},on:{load:e.handleIframeLoaded}})],1)],1)},ec=[];let tc=class extends s.ZP{constructor(){super(...arguments),this.iframeWrapperPosition={x:0,y:0,width:0,height:0}}get canvasPadding(){if((0,Aa.o8)())return 0;const e="oxygen"===c.configStore.builderMode?4:8;return this.isPreviewMode?0:e}get mainWrapperStyle(){return{padding:`${this.canvasPadding}px`}}get iframeWrapperStyles(){return{width:"100%"===this.iframePreviewWidth.width?"100%":`${this.iframePreviewWidth.width}px`,overflow:"SCALED_TO_FIT"===c.uiStore.settings.scaleToFit?"hidden":"auto"}}get iframeStyle(){const e=e=>{const t=Math.min(1,this.iframePreviewWidth.availableCanvasSize.width/e);return{width:`${e}px`,transform:`scale(${t})`,height:this.iframePreviewWidth.availableCanvasSize.height*(1/t)+"px"}};return"ACTUAL_SIZE"===c.uiStore.settings.scaleToFit?"100%"===this.iframePreviewWidth.width?{width:"100%",minWidth:`${this.minWidth}px`}:{width:`${this.iframePreviewWidth.width}px`}:"100%"===this.iframePreviewWidth.width?this.iframePreviewWidth.availableCanvasSize.width{this.$emit("iframeUnloaded")}),this.$emit("iframeLoaded",this.iframe)}handleReloadWanted(){this.$emit("reloadWanted")}mounted(){this.mainWrapper?new ResizeObserver(this.setAvailableCanvasSize).observe(this.mainWrapper):c.uiStore.logError("No canvas element."),this.iframeWrapper?new ResizeObserver(this.setIframeWrapperPosition).observe(this.iframeWrapper):c.uiStore.logError("No iframe wrapper element."),this.setAvailableCanvasSize()}setAvailableCanvasSize(){if(this.mainWrapper){const e=this.mainWrapper.getBoundingClientRect(),t={...this.iframePreviewWidth,availableCanvasSize:{width:e.width-2*this.canvasPadding,height:e.height-2*this.canvasPadding}};this.$emit("previewWidthChange",t)}this.setIframeWrapperPosition()}setIframeWrapperPosition(){if(this.iframeWrapper){const e=this.iframeWrapper.getBoundingClientRect();this.iframeWrapperPosition={x:e.x,y:e.y,width:e.width,height:e.height}}}};(0,r.gn)([(0,l.fI)()],tc.prototype,"iframeState",void 0),(0,r.gn)([(0,l.fI)()],tc.prototype,"iframePreviewWidth",void 0),(0,r.gn)([(0,l.fI)()],tc.prototype,"iframeUrl",void 0),(0,r.gn)([(0,l.fI)()],tc.prototype,"iframeId",void 0),(0,r.gn)([(0,l.fI)()],tc.prototype,"minWidth",void 0),(0,r.gn)([(0,l.fI)()],tc.prototype,"iframeExited",void 0),(0,r.gn)([(0,l.fI)()],tc.prototype,"currentBreakpoint",void 0),(0,r.gn)([(0,l.Rl)()],tc.prototype,"mainWrapper",void 0),(0,r.gn)([(0,l.Rl)()],tc.prototype,"iframeWrapper",void 0),(0,r.gn)([(0,l.Rl)()],tc.prototype,"iframe",void 0),tc=(0,r.gn)([(0,l.wA)({components:{StandardButton:Fl,Loading:Ql.Z,PreviewWidthAdjustmentHandle:Dl}})],tc);const nc=tc,sc=nc;var ic=(0,N.Z)(sc,Jl,ec,!1,null,null,null);const oc=ic.exports;let ac=class extends s.ZP{constructor(){super(...arguments),this.iframeExited=!1,this.foreignDocumentsOverlayVueApp=null,this.canvasApp=null}handlePreviewWidthChange(e){c.uiStore.changePreviewWidthMutation(e)}handlePreviewWidthChangeWithAdjustmentBar(e){c.uiStore.changePreviewWidthWithAdjustmentBar(e)}handleResetPreviewWidth(){c.uiStore.selectBaseBreakpoint()}setIframeAsExited(){c.configStore.leavingIframeOnPurpose?c.configStore.setLeavingIframeOnPurpose(!1):this.iframeExited=!0}reloadIframe(){this.iframeExited=!1,setTimeout((()=>{window.frames["iframe"].location.reload()}),0)}get iframeMinWidth(){return(0,Pe.GV)(c.globalStore)}get canvasPreviewWidth(){return c.uiStore.canvasPreviewWidth}get canvasState(){return c.uiStore.canvasState}get currentBreakpoint(){return c.uiStore.currentBreakpoint}get iframeURL(){if(c.configStore.documentSpecificNeededUrls&&-1!==c.documentStore.document.documentMeta.id){const e=new URL(c.configStore.documentSpecificNeededUrls.iframeUrl);return e.searchParams.append("breakdance_iframe","true"),e.searchParams.append("breakdance_open_document",`${c.documentStore.document.documentMeta.id}`),e.toString()}return null}mountForeignDocumentsOverlayVueAppInIframe(e,t){const n=e.createElement("div");n.classList.add("breakdance-foreign-documents-overlay-mountpoint"),e.body.appendChild(n),this.foreignDocumentsOverlayVueApp=new s.ZP({el:n,store:c["default"],vuetify:Rl.Z,render(n){return n(Xl,{props:{elementsToWatch:e.querySelectorAll("[data-breakdance-foreign-document]"),canvasElement:t,iframeDocument:e},on:{openDocument:e=>{confirm(`Edit ${e.title}?`)&&window.open(e.builderUrl,"_top")}}})}})}mountCanvasInIframe(e){if(!e.contentDocument)throw"Unable to mount canvas in iframe because its document is missing";(0,T.hm)(e.contentDocument),(0,Ke.B6)(document,window.Breakdance.canvas.document),Al.w.registerAllStoreActions();const t=window.Breakdance.canvas.document.querySelector("#breakdance-canvas-wrapper");this.canvasApp=new s.ZP({store:c["default"],vuetify:Rl.Z,render:e=>e(xl)}).$mount(t),this.mountForeignDocumentsOverlayVueAppInIframe(window.Breakdance.canvas.document,this.canvasApp.$el),(0,T.sy)().appendChild((0,Yl.ok)(document,S,"iframe-styles")),(0,T.sy)().appendChild((0,Yl.ok)(document,C,"iframe-singularity-styles")),(0,T.sy)().appendChild((0,Yl.ok)(document,x,"iframe-futurelayer-styles")),this.unbindClickEventOnInnerIframeLinks(),this.$emit("loaded")}unbindClickEventOnInnerIframeLinks(){const e=[...window.Breakdance.canvas.document.querySelectorAll("a:not([force-allow-clicks])")],t=[...window.Breakdance.canvas.document.querySelectorAll("#breakdance_canvas a")],n=e.filter((e=>!t.includes(e)));n.forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault()}))}))}destroyed(){this.canvasApp&&this.canvasApp.$destroy(),this.foreignDocumentsOverlayVueApp&&this.foreignDocumentsOverlayVueApp.$destroy()}};ac=(0,r.gn)([(0,l.wA)({components:{IframeWrapper:oc,Loading:Ql.Z,Canvas:xl,ForeignDocumentsOverlay:Xl,PreviewWidthAdjustmentHandle:Dl,StandardButton:Fl}})],ac);const rc=ac,lc=rc;var cc=(0,N.Z)(lc,_,b,!1,null,null,null);const dc=cc.exports;let uc=class extends s.ZP{get isSingularityMode(){return c.uiStore.isSingularityMode}get canvasWrapperKey(){return c.uiStore.canvasWrapperKey}};uc=(0,r.gn)([(0,l.wA)({components:{IframeCanvas:dc}})],uc);const pc=uc,hc=pc;var gc=(0,N.Z)(hc,y,f,!1,null,null,null);const mc=gc.exports;var vc=n(55234),yc=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TopBar",["oxygen"===e.builderMode?[t("TopBarSection",[t("OxygenMenuDropdown"),t("AddButton",{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}]}),t("IconButton",{staticClass:"open-structure-toolbar-button",attrs:{active:e.isStructurePanelOpen,icon:"LayersIconSolid",size:"14",tooltip:"Structure"},on:{click:e.toggleStructurePanel}}),e.isInlineEditing?t("InlineEditorTopbarIndicator"):t("DocumentChooser"),t("PreviewSize"),t("PreviewContentChooserDialog"),t("BreakpointsSelection",{model:{value:e.currentBreakpoint,callback:function(t){e.currentBreakpoint=t},expression:"currentBreakpoint"}})],1),t("TopBarSection",[e.shouldShowUpgradeToProButton?t("UpgradeToPro"):e._e(),e.isAiEnabled?t("IconButton",{staticClass:"open-ai-assistant-button",attrs:{active:e.isAiPanelOpen,icon:"SparklesIconSolid",size:"14",tooltip:"AI Assistant"},on:{click:e.toggleAiPanel}}):e._e(),t("UndoRedo"),t("SettingsDropdown"),t("IconButton",{attrs:{active:e.isOxySelectorsPanelOpen,icon:"BracketsSolidIcon",size:"14",tooltip:"Selectors"},on:{click:e.toggleOxySelectorsPanel}}),t("IconButton",{attrs:{active:e.isVariablesPanelOpen,icon:"DollarSolidIcon",size:"14",tooltip:"Variables"},on:{click:e.toggleVariablesPanel}}),t("IconButton",{attrs:{active:e.isPreviewMode,icon:"PlaySolidIcon",size:"14",tooltip:"Preview"},on:{click:e.togglePreviewMode}}),t("Save"),t("Exit")],1)]:e._e(),"breakdance"===e.builderMode?[t("AddButton",{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}]}),t("TopBarSection",{attrs:{"border-right":!0}},[t("IconButton",{staticClass:"open-properties-toolbar-button",attrs:{active:e.isElementPropertiesOpen,icon:"EditIcon",size:"18"},on:{click:e.toggleElementProperties}})],1),t(vc.Z,{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}]}),e.isInlineEditing?t("InlineEditorTopbarIndicator"):t("DocumentChooser"),t("PreviewContentChooserDialog"),t("TopBarSection",{attrs:{borderRight:!0}},[t("BreakpointsSelection",{model:{value:e.currentBreakpoint,callback:function(t){e.currentBreakpoint=t},expression:"currentBreakpoint"}})],1),t("TopBarSection",[t("PreviewSize")],1),t(vc.Z),e.shouldShowUpgradeToProButton?[t("TopBarSection",[t("UpgradeToPro")],1)]:e._e(),e.isAiEnabled?t("TopBarSection",{attrs:{borderLeft:!0}},[t("IconButton",{staticClass:"open-ai-assistant-button",attrs:{active:e.isAiPanelOpen,icon:"SparklesIcon",size:"18"},on:{click:e.toggleAiPanel}})],1):e._e(),t("UndoRedo"),t("TopBarSection",{staticClass:"top-bar-settings-and-structure-section",attrs:{"border-left":!0}},[t("IconButton",{staticClass:"open-structure-toolbar-button",attrs:{active:e.isStructurePanelOpen,icon:"LayersIcon",size:"18"},on:{click:e.toggleStructurePanel}}),t("SettingsDropdown"),t("IconButton",{staticClass:"open-preview-toolbar-button",attrs:{active:e.isPreviewMode,icon:"PlayIcon",size:"18"},on:{click:e.togglePreviewMode}})],1),t("TopBarSection",{attrs:{borderLeft:!0}},[t("Save")],1),t("Exit")]:e._e()],2)},fc=[],_c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",["breakdance"===e.builderMode?t("StandardButton",{staticStyle:{"margin-left":"3px","margin-right":"3px"},attrs:{loading:e.saveInProgress,minWidth:"80",testId:"main-save-button"},on:{click:e.save}},[e._v(" "+e._s(e.__("Save"))+" ")]):e._e(),"oxygen"===e.builderMode?t("button",{class:{"button-save-oxygen":!0,"button-save-oxygen-loading":e.saveInProgress,"button-save-oxygen-unsaved":e.unsavedChangesPresent},on:{click:e.save}},[e.saveInProgress?t("Icon",{staticClass:"animate-spin",attrs:{icon:"CircleNotchSolidIcon",size:"14"}}):t("span",[e._v(e._s(e.__("Save")))]),e.unsavedChangesPresent?t("span",{staticClass:"button-save-oxygen-indicator"}):e._e()],1):e._e()],1)},bc=[],Sc=n(7892),Cc=n(68077);let xc=class extends s.ZP{constructor(){super(...arguments),this.unsubscribe=null}get saveInProgress(){return c.uiStore.saveInProgress}get unsavedChangesPresent(){return c.uiStore.unsavedChangesPresent}async save(){document.dispatchEvent(new Event("breakdanceSaveButtonClicked")),(0,Cc.V)(),c.uiStore.inlineEditingContext?.elementId&&await(0,il.Uw)(),await(0,zl.$)()}mounted(){Ke.uq.unbind(je.r.CMD_S),Ke.uq.register(je.r.CMD_S,this.save),this.unsubscribe=this.$store.subscribe((e=>{Ie.n.shouldMutationBeIgnored(e)||c.uiStore.setUnsavedChangesPresent(!0)})),this.warnIfUnsavedFunction=(0,Sc.$)((()=>c.uiStore.unsavedChangesPresent))}beforeDestroy(){Ke.uq.unbind(je.r.CMD_S),this.unsubscribe&&this.unsubscribe(),(0,Sc.e)(this.warnIfUnsavedFunction)}get builderMode(){return c.configStore.builderMode}};xc=(0,r.gn)([(0,l.wA)({components:{StandardButton:Fl,IconButton:Xa.Z,Icon:He.Z}})],xc);const wc=xc,Ic=wc;var Pc=(0,N.Z)(Ic,_c,bc,!1,null,null,null);const kc=Pc.exports;var Ec=n(70248),Tc=n(61908),Dc=n(11193),Ac=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dropdown",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return["breakdance"===e.builderMode?t("IconButton",e._g({staticStyle:{"margin-right":"0"},attrs:{active:!e.isBase,icon:e.getDeviceIcon(e.currentBreakpoint.id),rotate:e.getDeviceIconRotation(e.currentBreakpoint.id),size:18}},n)):e._e(),"oxygen"==e.builderMode?t("button",e._g({staticClass:"breakpoint-selection-oxygen"},n),[t("Icon",{attrs:{icon:e.getDeviceIcon(e.currentBreakpoint.id),rotate:e.getDeviceIconRotation(e.currentBreakpoint.id),size:14}}),e._v(e._s(e.currentBreakpoint.label)+" ")],1):e._e()]}}])},[t(Ec.Z,e._l(e.breakpoints,(function(n){return t(Tc.Z,{key:n.id,class:e.activeClass(n.id),attrs:{"two-line":"",dense:""},on:{click:function(t){return e.changeBreakpoint(n)}}},[t("div",{staticClass:"device-icon-wrapper"},[t("Icon",{attrs:{icon:e.getDeviceIcon(n.id),rotate:e.getDeviceIconRotation(n.id),size:"breakdance"===e.builderMode?"18":"14"}})],1),t(Dc.km,{staticClass:"ml-4"},[t(Dc.V9,[e._v(e._s(n.label))]),t(Dc.oZ,["Desktop"===n.label?[e._v(" "+e._s(e.__("All device widths"))+" ")]:e._e(),n.maxWidth&&!n.minWidth?[e._v(" "+e._s(e.sprintf(e._doc("%spx and below","%s: Breakpoint maximum width"),n.maxWidth))+" ")]:e._e(),!n.maxWidth&&n.minWidth?[e._v(" "+e._s(e.sprintf(e._doc("%spx and above","%s: Breakpoint minimum width"),n.minWidth))+" ")]:e._e(),n.maxWidth&&n.minWidth?[e._v(" "+e._s(e.sprintf(e._t("Between %spx and %spx","1: Breakpoint minimum width, 2: Breakpoint maximum width"),n.minWidth,n.maxWidth))+" ")]:e._e()],2)],1)],1)})),1)],1)},Zc=[],Oc=n(15133);let Mc=class extends s.ZP{getDeviceIcon(e){return Pe.b8[e]?.icon||Pe.nR}getDeviceIconRotation(e){return Pe.b8[e]?.rotate}get isBase(){return this.currentBreakpoint.id===Pe.Wp}get breakpoints(){return c.configStore.breakpoints}get currentBreakpoint(){return this.value}get builderMode(){return c.configStore.builderMode}activeClass(e){return this.currentBreakpoint.id===e&&"breakpoint-active"}changeBreakpoint(e){this.$emit("input",e)}onBreakpointsChanged(){this.breakpoints.find((e=>e.id===this.currentBreakpoint.id))||c.uiStore.selectBaseBreakpoint()}};(0,r.gn)([(0,l.fI)()],Mc.prototype,"value",void 0),(0,r.gn)([(0,l.RL)("breakpoints",{deep:!0,immediate:!0})],Mc.prototype,"onBreakpointsChanged",null),Mc=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,Dropdown:Oc.Z,IconButton:Xa.Z}})],Mc);const Bc=Mc,Lc=Bc;var Nc=(0,N.Z)(Lc,Ac,Zc,!1,null,null,null);const Fc=Nc.exports;var Rc=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TopBarSection",{staticClass:"undo-redo-top-bar-section",attrs:{"border-left":!0}},[t("IconButton",{attrs:{disabled:!e.canUndo,icon:"oxygen"==e.builderMode?"UndoIconSolid":"UndoIcon",size:"oxygen"==e.builderMode?14:18,tooltip:e.canUndo?e.__("Undo changes"):""},on:{click:e.undo}}),t("IconButton",{attrs:{disabled:!e.canRedo,icon:"oxygen"==e.builderMode?"RedoIconSolid":"RedoIcon",size:"oxygen"==e.builderMode?14:18,tooltip:e.canRedo?e.__("Redo changes"):""},on:{click:e.redo}})],1)},Vc=[],$c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:e.classList},[e._t("default")],2)},Wc=[];let Uc=class extends s.ZP{get classList(){const e=["topbar-section"];return this.borderLeft&&e.push("topbar-section-bl"),this.borderRight&&e.push("topbar-section-br"),e}};(0,r.gn)([(0,l.fI)({default:!1})],Uc.prototype,"borderLeft",void 0),(0,r.gn)([(0,l.fI)({default:!1})],Uc.prototype,"borderRight",void 0),Uc=(0,r.gn)([(0,l.wA)({components:{}})],Uc);const zc=Uc,Hc=zc;var Gc=(0,N.Z)(Hc,$c,Wc,!1,null,null,null);const Kc=Gc.exports;let jc=class extends s.ZP{mounted(){Ke.uq.register(je.r.CMD_Z,this.undo),Ke.uq.register(je.r.CMD_SHIFT_Z,this.redo)}get canUndo(){return c.snapshotStore.canUndo}get canRedo(){return c.snapshotStore.canRedo}undo(){this.canUndo&&Ie.n.undo()}redo(){this.canRedo&&Ie.n.redo()}beforeDestroy(){Ke.uq.unbind(je.r.CMD_Z),Ke.uq.unbind(je.r.CMD_SHIFT_Z)}get builderMode(){return c.configStore.builderMode}};jc=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z,TopBarSection:Kc}})],jc);const qc=jc,Xc=qc;var Yc=(0,N.Z)(Xc,Rc,Vc,!1,null,null,null);const Qc=Yc.exports;var Jc=n(73385),ed=n(77859),td=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.previews?t("div",[t("TopBarSection",{attrs:{"border-right":!0}},[t("Dropdown",{attrs:{"offset-y":"","nudge-top":"oxygen"===e.builderMode?"-16px":0,"close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({staticClass:"document-chooser",class:{"document-chooser-zero-case":e.nothingToPreview}},n),[t("PreviewChooserText",{attrs:{"preview-item":e.currentPreviewedItem,"nothing-to-preview":e.nothingToPreview}}),"breakdance"==e.builderMode?t("div",{staticClass:"document-chooser-dropdown-icon"},[t("Icon",{attrs:{size:"11",icon:"CaretDownIcon"}})],1):e._e(),"oxygen"!=e.builderMode||e.nothingToPreview?e._e():t("div",{staticClass:"document-chooser-dropdown-icon"},[t("Icon",{attrs:{size:"11",icon:"CaretDownSolidIcon"}})],1)],1)]}}],null,!1,3899795736),model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[e.settingsOpen?t("PreviewChooserSettings",{on:{back:function(t){e.settingsOpen=!1}}}):t(Jc.Z,{staticClass:"vscroll-scroll vscroll-wrap",attrs:{width:"450",height:e.nothingToPreview?void 0:350,loading:e.isLoading}},[e.nothingToPreview?e._e():t("div",{staticClass:"preview-content-chooser-dialog-search-form-wrapper"},[t(ed.Z,{staticClass:"preview-content-chooser-dialog-search-box breakdance-dense-input",attrs:{value:e.search,label:e.__("Search..."),clearable:"",solo:"",flat:"",dense:"","full-width":"","single-line":"","background-color":"var(--gray150)",autofocus:""},on:{input:e.handleSearch}}),e.isGlobalBlock?t("IconButton",{staticStyle:{"margin-right":"-5px"},attrs:{icon:"GearIcon",small:!0},on:{click:e.toggleSettings}}):e._e()],1),t(Ec.Z,{staticClass:"vscroll-scroll",attrs:{dense:""}},[e._l(e.previews,(function(n,s){return t("PreviewChooserItem",{key:s,attrs:{item:n,selected:n.url===e.currentPreviewedItem?.url},on:{select:e.setPreviewedItem}})})),e.nothingToPreview?t("PreviewChooserNoResults"):0===e.previews.length?t("div",{staticClass:"previewable-items-zero-case align-center text-center"},[t("h4",[e._v(e._s(e.__("No results apply to this template")))])]):e._e()],2)],1)],1)],1)],1):e._e()},nd=[],sd=n(25970),id=n(30902),od=n(45974),ad=n(98851),rd=n(23777);async function ld({id:e,search:t=""}){return(0,ad.D)({action:"breakdance_get_template_previewable_items_with_search",dataToPost:{search:t,id:e},decoder:rd.NC,resultKey:"data"})}var cd=n(39664),dd=function(){var e=this,t=e._self._c;e._self._setupProxy;return"breakdance"===e.builderMode?t("div",{staticClass:"document-chooser-text"},[e.previewItem?[t("h2",[e._v(e._s(e.previewItem.type))]),t("span",{staticClass:"ellipsis-text"},[e.previewItem.label?[e._v(" "+e._s(e.previewItem.label)+" ")]:e.previewItem.id?[e._v(" "+e._s(e.sprintf(e._doc("ID %s","%s: ID number"),e.previewItem.id))+" ")]:[e._v(e._s(e.__("(no title)")))]],2)]:e.nothingToPreview?[t("h2",[e._v(e._s(e.__("Nothing to preview")))]),t("span",{staticClass:"ellipsis-text"},[e._v(" "+e._s(e.__("No match found"))+" ")])]:[t("h2",[e._v(e._s(e.__("Previewing")))]),t("span",{staticClass:"ellipsis-text"},[e._v(" "+e._s(e.__("choose"))+" ")])]],2):"oxygen"===e.builderMode?t("div",{staticClass:"document-chooser-text"},[e.previewItem?[t("span",{staticClass:"document-chooser-type-label"},[e._v(" "+e._s(e.sprintf(e._doc("Preview %s:","%s: Item type"),e.previewItem.type))+" ")]),t("span",{staticClass:"ellipsis-text"},[e._v(" "+e._s(e.previewLabel)+" ")])]:e.nothingToPreview?[t("span",{staticClass:"document-chooser-type-label"},[e._v(" "+e._s(e.__("Nothing to preview"))+" ")])]:[t("span",{staticClass:"document-chooser-type-label"},[e._v(" "+e._s(e.__("Previewing:"))+" ")]),t("span",{staticClass:"ellipsis-text"},[e._v(e._s(e.__("choose")))])]],2):e._e()},ud=[];let pd=class extends l.w3{get builderMode(){return c.configStore.builderMode}get previewLabel(){return this.previewItem?.label||(0,Ft.gB)((0,Ft.TZ)("ID %s","%s: ID number"),this.previewItem?.id||(0,Ft.__)("(no title)"))}};(0,r.gn)([(0,l.fI)()],pd.prototype,"previewItem",void 0),(0,r.gn)([(0,l.fI)()],pd.prototype,"nothingToPreview",void 0),pd=(0,r.gn)([l.wA],pd);const hd=pd,gd=hd;var md=(0,N.Z)(gd,dd,ud,!1,null,"f61717d2",null);const vd=md.exports;var yd=n(75223),fd=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Jc.Z,{staticClass:"vscroll-scroll vscroll-wrap preview-chooser-settings",attrs:{width:"350"}},[t(yd.EB,{staticClass:"preview-chooser-settings-header"},[t("IconButton",{staticStyle:{"margin-left":"-9px"},attrs:{icon:"ArrowLeftIcon",small:!0,size:14},on:{click:function(t){return e.$emit("back")}}}),t("h4",{staticClass:"preview-chooser-settings__title"},[e._v(" "+e._s(e.__("Settings"))+" ")])],1),t("div",[t(yd.ZB,[t("h6",{staticClass:"preview-chooser-settings__subtitle"},[e._v(" "+e._s(e.__("Preview"))+" ")]),t("div",{staticClass:"my-3"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("ACF Flexible Content"))+" ")]),t("DropdownInput",{attrs:{value:e.blockSettings.preview.acfFlexibleField,placeholder:e.__("Select a field to preview"),autocomplete:!0,"dropdown-options":e.dropdownOptions,clearable:!0},on:{input:e.setFlexibleField}})],1),t("div",{staticClass:"my-3"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Row Index"))+" ")]),t("NumberInput",{attrs:{value:e.blockSettings.preview.acfFlexibleFieldRow},on:{input:e.setRowIndex}})],1)])],1)],1)},_d=[],bd=n(36968),Sd=n.n(bd),Cd=n(84336),xd=n(23267),wd=n(23128);let Id=class extends l.w3{constructor(){super(...arguments),this.dropdownOptions={populate:{path:"",text:"",value:"",fetchDataAction:"breakdance_fetch_flexible_content_fields",fetchContextPath:"",refetchPaths:[]}}}get postId(){return Q.Hb.document.documentMeta.id}get blockSettings(){const e=Q.Hb.document.documentMeta.blockSettings;return e||{preview:{acfFlexibleField:"",acfFlexibleFieldRow:void 0}}}async saveSettings(){await(0,Yo.fv)(this.postId,this.blockSettings),Q.PK.flushDynamicDataCache()}setFlexibleField(e){const t=(0,wd.Z)(Q.Hb.document.documentMeta);Sd()(t,"blockSettings.preview.acfFlexibleField",e),Ie.n.ignore((()=>{Q.Hb.setDocumentMeta(t),this.saveSettings()}))}setRowIndex(e){const t=(0,wd.Z)(Q.Hb.document.documentMeta);Sd()(t,"blockSettings.preview.acfFlexibleFieldRow",e),Ie.n.ignore((()=>{Q.Hb.setDocumentMeta(t),this.saveSettings()}))}};Id=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,IconButton:Xa.Z,NumberInput:xd.Z,DropdownInput:Cd.Z}})],Id);const Pd=Id,kd=Pd;var Ed=(0,N.Z)(kd,fd,_d,!1,null,null,null);const Td=Ed.exports;var Dd=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"previewable-items-zero-case previewable-items-zero-case-error"},[t("h4",[e._v(e._s(e.__("Nothing to preview")))]),t("p",[e._v(e._s(e.__("Your template settings don't match any content. You can:")))]),t("ul",[t("li",[e._v(e._s(e.__("Edit the template anyway - this is not an error.")))]),t("li",[e._v(" "+e._s(e.__("Update your template settings in the WP admin at"))+" "),t("b",[e._v(e._s(e.__("Breakdance > Templates > Edit Template")))])]),t("li",[e._v(" "+e._s(e.__("Add some content to your site that matches the template settings."))+" ")])])])},Ad=[];let Zd=class extends l.w3{};Zd=(0,r.gn)([(0,l.wA)({})],Zd);const Od=Zd,Md=Od;var Bd=(0,N.Z)(Md,Dd,Ad,!1,null,"fcc94d60",null);const Ld=Bd.exports;var Nd=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Tc.Z,{class:{"document-chooser-item-selected":e.selected},attrs:{link:""},on:{click:function(t){return e.$emit("select",e.item)}}},[t(Dc.V9,{staticClass:"previewable-item-list-item"},[t("div",{staticClass:"previewable-item-label previewable-item-label-stop-text-from-overflowing"},[e._v(" "+e._s(e.item.label||e.item.url)+" ")]),t("div",{staticClass:"previewable-item-type"},[e._v(e._s(e.item.type))])])],1)},Fd=[];let Rd=class extends l.w3{};(0,r.gn)([(0,l.fI)()],Rd.prototype,"item",void 0),(0,r.gn)([(0,l.fI)()],Rd.prototype,"selected",void 0),Rd=(0,r.gn)([l.wA],Rd);const Vd=Rd,$d=Vd;var Wd=(0,N.Z)($d,Nd,Fd,!1,null,"02fdc782",null);const Ud=Wd.exports;var zd=n(20918);let Hd=class extends s.ZP{constructor(){super(...arguments),this.open=!1,this.search="",this.isLoading=!1,this.settingsOpen=!1,this.debouncedSearchContentInWp=qa()(this.searchContentInWp,300)}get previews(){return c.configStore.templatePreview&&c.configStore.templatePreview.previewableItems}get currentPreviewedItem(){return c.configStore.previewedItem}get builderMode(){return c.configStore.builderMode}get nothingToPreview(){return(!this.previews||!this.previews.length)&&!this.search&&!this.isLoading}get isGlobalBlock(){return c.documentStore.document.documentMeta.postType===(0,zd.$M)()}async setPreviewedItem(e){this.open=!1,c.uiStore.setLastModifiedElementProperty({elementId:null,path:null}),c.configStore.setPreviewedItem(e),c.configStore.flushDynamicDataCache(),await(0,sd.Kd)(),(0,Hl.Ft)(e)}async handleSearch(e){this.search=e,this.isLoading=!0,this.debouncedSearchContentInWp()}async searchContentInWp(){this.isLoading=!0,(0,id.pipe)(await ld({search:this.search,id:c.documentStore.document.documentMeta.id}),(0,od.fold)((e=>{this.isLoading=!1,e.forEach((e=>cd.Z.log.message(e.msg)))}),(e=>{c.configStore.setTemplatePreview({...c.configStore.templatePreview,previewableItems:e}),this.isLoading=!1})))}toggleSettings(){this.settingsOpen=!this.settingsOpen}};Hd=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,Dropdown:Oc.Z,IconButton:Xa.Z,TopBarSection:Kc,PreviewChooserText:vd,PreviewChooserItem:Ud,PreviewChooserSettings:Td,PreviewChooserNoResults:Ld}})],Hd);const Gd=Hd,Kd=Gd;var jd=(0,N.Z)(Kd,td,nd,!1,null,null,null);const qd=jd.exports;var Xd=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TopBarSection",{staticClass:"document-chooser-section",attrs:{borderLeft:!0,borderRight:!0}},[t("Dropdown",{attrs:{"offset-y":"","nudge-top":"oxygen"===e.builderMode?"-16px":0,"close-on-content-click":!1,"close-on-click":!e.createOpen},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({staticClass:"document-chooser"},n),[t("div",{staticClass:"document-chooser-text"},["breakdance"===e.builderMode?t("h2",[e._v(" "+e._s(e.sprintf(e._xdoc("Editing %s","Document","%s: Document type label"),e.currentDocument.documentMeta.typeLabel))+" ")]):e._e(),"oxygen"===e.builderMode?t("span",{staticClass:"document-chooser-type-label"},[t("span",[e._v(e._s(e.currentDocument.documentMeta.typeLabel)+":")])]):e._e(),-1!==e.currentDocument.documentMeta.id?t("span",{staticClass:"ellipsis-text"},[e._v(" "+e._s(e.documentTitle)+" ")]):t("span",{staticClass:"ellipsis-text"},[e._v(" "+e._s(e.__("choose a document to edit"))+" ")])]),"breakdance"===e.builderMode?t("div",{staticClass:"document-chooser-dropdown-icon"},[t("Icon",{attrs:{size:"11",icon:"CaretDownIcon"}})],1):e._e()])]}}]),model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[t(Jc.Z,{staticClass:"vscroll-scroll vscroll-wrap",attrs:{width:"450",height:"350",loading:e.isLoading}},[t("div",{staticClass:"document-chooser-search"},[t("div",{staticClass:"document-chooser-search__input"},[t(ed.Z,{staticClass:"preview-content-chooser-dialog-search-box breakdance-dense-input",attrs:{value:e.search,label:e.__("Search..."),clearable:"",solo:"",flat:"",dense:"","full-width":"","single-line":"","background-color":"var(--gray150)",autofocus:e.open},on:{input:e.handleSearch,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchContentInWp.apply(null,arguments)}}}),"breakdance"===e.builderMode?t("Icon",{staticClass:"document-chooser-search__create",attrs:{size:"13",icon:"PlusIcon"},on:{click:function(t){e.createOpen=!0}}}):e._e(),"oxygen"===e.builderMode&&0===e.search?.length?t("Icon",{staticClass:"document-chooser-search__search-icon",attrs:{size:"12",icon:"SearchIcon"}}):e._e()],1),"oxygen"===e.builderMode?t("IconButton",{staticClass:"breakdance-toolbar-icon-button document-chooser-search__icon-button",attrs:{size:"14",icon:"PlusIcon"},on:{click:function(t){e.createOpen=!0}}}):e._e()],1),t("DocumentChooserFilters",{attrs:{"sort-by":e.sortBy,"post-type":e.postType},on:{"update:sort-by":function(t){e.sortBy=t},"update:post-type":function(t){e.postType=t}}}),t(Ec.Z,{ref:"scrollable",staticClass:"vscroll-scroll",attrs:{dense:""}},[e._l(e.availableDocuments,(function(n){return t("DocumentChooserItem",{key:n.id,attrs:{item:n,highlight:e.postToShowFirstId===n.id},on:{click:function(t){e.open=!1},update:e.updateTitleInPlace}})})),0===e.availableDocuments.length?t("div",{staticClass:"previewable-items-zero-case-search"},[t("svg",{staticClass:"previewable-items-zero-case-icon",attrs:{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}},[t("path",{attrs:{d:"M46.875 71.875a25 25 0 1 0 50 0 25 25 0 1 0-50 0ZM81.25 62.5 62.5 81.25M62.5 62.5l18.75 18.75","stroke-width":"6.250005"}}),t("path",{attrs:{d:"M34.375 84.375h-25a6.25 6.25 0 0 1-6.25-6.25V9.375a6.25 6.25 0 0 1 6.25-6.25h44.288a6.25 6.25 0 0 1 4.416 1.83L70.046 16.92a6.25 6.25 0 0 1 1.829 4.417v13.037","stroke-width":"6.250005"}})])]),t("h5",[e._v(e._s(e.__("No items found")))]),t("p",[e._v(" "+e._s(e.__("Try adjusting your search to find what you are looking for."))+" ")])]):e._e()],2)],1)],1),t("DocumentChooserCreateDialog",{attrs:{open:e.createOpen},on:{close:function(t){e.createOpen=!1},created:e.afterCreation}})],1)},Yd=[],Qd=n(38537);async function Jd({search:e="",postType:t="",sortBy:n=""}){return(0,ad.D)({action:"breakdance_get_available_documents_with_search",dataToPost:{search:e,postType:t,sortBy:n},decoder:Qd.gu,resultKey:"data"})}var eu=n(38562),tu=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dialog",{staticClass:"document-chooser-create",attrs:{value:e.open},on:{close:function(t){return e.$emit("close")},"click:outside":function(t){return e.$emit("close")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("close")}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.__("Create Post")))]},proxy:!0},{key:"text",fn:function(){return[t("div",{staticClass:"document-chooser-create-fields"},[t("TextInput",{staticClass:"flex-grow-1 flex-shrink-1",attrs:{placeholder:e.__("Post Title"),autofocus:e.autofocus},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.create.apply(null,arguments)}},model:{value:e.postTitle,callback:function(t){e.postTitle=t},expression:"postTitle"}}),t("DropdownInput",{staticClass:"flex-grow-1 flex-shrink-1",attrs:{placeholder:e.__("Post Type"),autocomplete:!0,"dropdown-options":e.dropdownOptions},model:{value:e.postType,callback:function(t){e.postType=t},expression:"postType"}})],1)]},proxy:!0},{key:"actions",fn:function(){return[t(Qo.Z,{attrs:{text:""},on:{click:function(t){return e.$emit("close")}}},[e._v(e._s(e.__("Cancel")))]),t(Qo.Z,{attrs:{color:"blue",dark:"",loading:e.loading},on:{click:e.create}},[e._v(e._s(e.__("Save")))])]},proxy:!0}])})},nu=[],su=n(3735),iu=n(32521),ou=n(48973);let au=class extends l.w3{constructor(){super(...arguments),this.autofocus=!1,this.postTitle="",this.postType="",this.loading=!1,this.dropdownOptions={populate:{path:"",text:"",value:"",fetchDataAction:"breakdance_get_editable_post_types",fetchContextPath:"",refetchPaths:[]}}}onOpenChange(){this.open?(this.postTitle="",this.postType="",setTimeout((()=>{this.autofocus=!0}),100)):this.autofocus=!1}async create(){if(!this.postTitle||!this.postType)return;this.loading=!0;const e=(0,su.zG)(await(0,ad.D)({action:"breakdance_insert_post",friendlyName:"Insert Post",dataToPost:{postTitle:this.postTitle,postType:this.postType},decoder:iu.dt({postId:iu.pk})}),(0,ou.g_)((()=>{}),(e=>e)));this.loading=!1,this.$emit("close"),this.$emit("created",{postId:e?.postId,postTitle:this.postTitle,postType:this.postType}),(0,zd._T)(this.postType)&&(0,Yo.DQ)()}};(0,r.gn)([(0,l.fI)()],au.prototype,"open",void 0),(0,r.gn)([(0,l.RL)("open")],au.prototype,"onOpenChange",null),au=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,Dialog:ta.Z,DropdownInput:Cd.Z}})],au);const ru=au,lu=ru;var cu=(0,N.Z)(lu,tu,nu,!1,null,null,null);const du=cu.exports;var uu=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Tc.Z,{class:{"document-chooser-item-selected":e.item.id===e.currentDocument.documentMeta.id,"document-chooser-item-highlighted":e.highlight},attrs:{link:"",href:e.documentUrl},on:{click:e.replaceCurrentBuilderPage}},[t(Dc.V9,{staticClass:"previewable-item-list-item"},[t("div",{staticClass:"previewable-item-label previewable-item-label-stop-text-from-overflowing"},[e._v(" "+e._s(e.title)+" ")]),e.isBreakdancePostType?t("span",{staticClass:"previewable-item-action",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.isGlobalBlockTemplate?e.editGlobalBlock():e.editTemplate()}}},[e._v(" "+e._s(e.loadingData?e.__("Loading..."):e.__("Edit Settings"))+" ")]):e._e(),t("div",{staticClass:"previewable-item-type"},[e._v(e._s(e.item.typeLabel))])]),e.modalData&&e.isGlobalBlockTemplate?t("EditGlobalBlockModal",{attrs:{value:e.modalData.data,mode:e.modalData.type,globalBlocks:[]},on:{input:function(t){return e.$emit("update",t)},close:function(t){e.modalData=!1}}}):e.modalData?t("EditTemplateModal",{attrs:{value:e.modalData.data,templatesManagementData:e.templatesManagementData,postType:e.item.postType,templateParents:e.templateParentsWithoutTrashed,templates:e.templatesByStatus,mode:e.modalData.type,skipWarning:!0,canDisable:!0},on:{input:function(t){return e.$emit("update",t)},close:function(t){e.modalData=!1}}}):e._e()],1)},pu=[],hu=n(19930),gu=n(67132),mu=n(90703);let vu=class extends l.w3{constructor(){super(...arguments),this.templates=[],this.modalData=!1,this.loadingData=!1,this.templatesManagementData={conditions:[],dynamicFields:[],templateTypeCategories:[],popupTriggers:null}}get globalBlocks(){return c.configStore.globalBlocks}get title(){return this.item.titleLabel?(0,Yl.aV)(this.item.titleLabel):`ID: ${this.item.id}`}get currentDocument(){return c.documentStore.document}get templateParentsWithoutTrashed(){return[]}get templatesByStatus(){return[]}get documentUrl(){return(0,Hl.UH)(this.item.id)}get isBreakdancePostType(){return this.item.postType.startsWith(`${c.configStore.builderMode}_`)&&!this.item.postType.endsWith(`${c.configStore.builderMode}_part`)}get currentTemplate(){return this.templates.find((e=>e.id===this.item.id))}get currentGlobalBlock(){return this.globalBlocks.find((e=>e.id===this.item.id))}get isGlobalBlockTemplate(){return this.item.postType===(0,zd.$M)()}async editGlobalBlock(){this.loadingData=!0,await this.loadGlobalBlocks(),this.currentGlobalBlock?(this.modalData={type:"edit",data:this.currentGlobalBlock},this.loadingData=!1):cd.Z.log.message((0,Ft.__)("Couldn't load Global Blocks data"))}async editTemplate(){this.loadingData=!0,await this.loadTemplates(),this.currentTemplate?(this.modalData={type:"edit",data:this.currentTemplate},this.loadingData=!1):cd.Z.log.message((0,Ft.__)("Couldn't load templates data"))}async loadGlobalBlocks(){return(0,Yo.DQ)()}async loadTemplates(){const e=this.item.postType;(0,su.zG)(await(0,gu.rf)(e),(0,ou.g_)((()=>{cd.Z.log.message((0,Ft.__)("Couldn't load templates data"))}),(e=>{this.templates=e.templates,this.templatesManagementData=e.templatesManagementData,c.configStore.setDynamicFields(e.templatesManagementData.dynamicFields),c.configStore.setConditions(e.templatesManagementData.conditions),c.configStore.setEnvironment(e.environment)})))}async replaceCurrentBuilderPage(e){e.ctrlKey||e.metaKey||"builder"===window.Breakdance.initialMode&&(e.preventDefault(),this.$emit("click"),this.item.id!==c.documentStore.document.documentMeta.id&&(0,Hl.rI)(this.item.id))}};(0,r.gn)([(0,l.fI)()],vu.prototype,"item",void 0),(0,r.gn)([(0,l.fI)({default:!1})],vu.prototype,"highlight",void 0),vu=(0,r.gn)([(0,l.wA)({components:{EditGlobalBlockModal:mu.Z,EditTemplateModal:hu.Z,Icon:He.Z}})],vu);const yu=vu,fu=yu;var _u=(0,N.Z)(fu,uu,pu,!1,null,"3795f131",null);const bu=_u.exports;var Su=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"document-chooser-filters",class:{"document-chooser-filters--with-sort":e.sortBy}},[t("DropdownInput",{attrs:{"dropdown-options":e.postTypeOptions,size:"small",placeholder:e.__("Post Type"),value:e.postType,clearable:!0},on:{input:function(t){return e.$emit("update:post-type",t)}}}),t("DropdownInput",{attrs:{items:e.sortItems,size:"small",placeholder:e.__("Sort By"),value:e.sortBy,clearable:!0},on:{input:function(t){return e.$emit("update:sort-by",t)}}})],1)},Cu=[];let xu=class extends l.w3{constructor(){super(...arguments),this.sortItems=[{text:(0,Ft.__)("Last edited: Newest first"),value:"modified_desc"},{text:(0,Ft.__)("Last edited: Oldest first"),value:"modified_asc"},{text:(0,Ft.__)("Created: Newest first"),value:"created_desc"},{text:(0,Ft.__)("Created: Oldest first"),value:"created_asc"}],this.postTypeOptions={populate:{path:"",text:"",value:"",fetchDataAction:"breakdance_get_editable_post_types",fetchContextPath:"",refetchPaths:[]}}}};(0,r.gn)([(0,l.fI)()],xu.prototype,"sortBy",void 0),(0,r.gn)([(0,l.fI)()],xu.prototype,"postType",void 0),xu=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z}})],xu);const wu=xu,Iu=wu;var Pu=(0,N.Z)(Iu,Su,Cu,!1,null,null,null);const ku=Pu.exports;let Eu=class extends s.ZP{constructor(){super(...arguments),this.search="",this.open=!1,this.createOpen=!1,this.isLoading=!1,this.postToShowFirstId=null,this.sortBy="",this.postType="",this.debouncedSearchContentInWp=qa()(this.searchContentInWp,200)}onOpenChange(){this.postToShowFirstId=null}onSortChange(){this.searchContentInWp()}onPostTypeChange(){this.searchContentInWp()}get documentTitle(){return this.currentDocument.documentMeta.titleLabel?(0,Yl.aV)(this.currentDocument.documentMeta.titleLabel):`ID: ${this.currentDocument.documentMeta.id}`}get unsavedChangesPresent(){return c.uiStore.unsavedChangesPresent}get availableDocuments(){const e=[...c.configStore.availableDocuments];return null===this.postToShowFirstId?e:e.sort(((e,t)=>e.id===this.postToShowFirstId?-1:t.id===this.postToShowFirstId?1:0))}get builderMode(){return c.configStore.builderMode}get currentDocument(){return c.documentStore.document}handleSearch(e){this.postToShowFirstId=null,this.search=e,this.debouncedSearchContentInWp()}async searchContentInWp(){this.isLoading=!0,(0,id.pipe)(await Jd({search:this.search||"",postType:this.postType,sortBy:this.sortBy}),(0,od.fold)((e=>{this.isLoading=!1,e.forEach((e=>cd.Z.log.message(e.msg)))}),(e=>{c.configStore.setAvailableDocuments(e),this.isLoading=!1}))),this.scrollToTop()}afterCreation(e){this.search="",this.postToShowFirstId=e.postId,this.postType&&this.postType!==e.postType?this.postType="":this.searchContentInWp()}scrollToTop(){const e=this.$refs.scrollable;this.$nextTick((()=>{e.$el.scrollTop=0}))}updateTitleInPlace(e){const t=this.availableDocuments.findIndex((t=>t.id===e.id)),n=this.availableDocuments[t];if(-1===t)return;const s=(0,wd.Z)(this.availableDocuments);s[t]={...n,titleLabel:e.title||e.label||""},c.configStore.setAvailableDocuments(s)}};(0,r.gn)([(0,l.RL)("open")],Eu.prototype,"onOpenChange",null),(0,r.gn)([(0,l.RL)("sortBy")],Eu.prototype,"onSortChange",null),(0,r.gn)([(0,l.RL)("postType")],Eu.prototype,"onPostTypeChange",null),Eu=(0,r.gn)([(0,l.wA)({components:{DocumentChooserFilters:ku,NiceButton:Br.Z,DropdownInput:Cd.Z,TextInput:na.Z,Dialog:ta.Z,Icon:He.Z,Dropdown:Oc.Z,SearchInput:eu.Z,TopBarSection:Kc,DocumentChooserItem:bu,DocumentChooserCreateDialog:du,IconButton:Xa.Z}})],Eu);const Tu=Eu,Du=Tu;var Au=(0,N.Z)(Du,Xd,Yd,!1,null,null,null);const Zu=Au.exports;var Ou=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dropdown",{staticClass:"open-settings-toolbar-button",attrs:{"offset-y":"","nudge-top":e.nudgeTop},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("IconButton",e._g({attrs:{active:e.anySettingsPanelsOpen,testId:"open-settings-menu",size:"breakdance"===e.builderMode?18:16,icon:"breakdance"===e.builderMode?"EllipsisStrokeIcon":"EllipsisSolidIcon",tooltip:e.isOpen?"":e.__("Settings")}},n))]}}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t(Ec.Z,[e.globalSettingsAvailableForEditing?t(Tc.Z,{attrs:{dense:""},on:{click:e.openGlobalSettingsPanel}},[t(Dc.V9,{attrs:{"data-test-id":"toggle-global-settings"}},[e._v(" "+e._s(e.__("Global Settings"))+" ")])],1):e._e(),"breakdance"==e.builderMode?t(Tc.Z,{attrs:{dense:""},on:{click:e.openSelectorsPanel}},[t(Dc.V9,{attrs:{"data-test-id":"toggle-site-classes-selectors"}},[e._v(" "+e._s(e.__("Selectors"))+" ")])],1):e._e(),"breakdance"==e.builderMode?t(Tc.Z,{attrs:{dense:""},on:{click:e.openPresetsPanel}},[t(Dc.V9,{attrs:{"data-test-id":"toggle-site-presets"}},[e._v(" "+e._s(e.__("Design Presets"))+" ")])],1):e._e(),t(Tc.Z,{attrs:{dense:""},on:{click:e.openHistoryAndRevisionsPanel}},[t(Dc.V9,[e._v(e._s(e.__("History")))])],1),"breakdance"==e.builderMode?t(Tc.Z,{staticClass:"breakdance-menu-open-preferences",attrs:{dense:""},on:{click:e.openPreferencesModal}},[t(Dc.V9,{attrs:{"data-test-id":"breakdance-menu-open-preferences"}},[e._v(" "+e._s(e.__("Preferences"))+" ")])],1):e._e(),t(Tc.Z,{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}],attrs:{"data-test-id":"toggle-element-studio",dense:"",disabled:"success"!==e.elementsLoadingState},on:{click:e.toggleElementStudio}},[t(Dc.V9,{attrs:{"data-test-id":"breakdance-menu-open-element-studio"}},[t("div",{staticClass:"d-flex align-center"},[e._v(e._s(e.__("Element Studio")))])])],1),e.aiSiteCreationExperienceAvailable?t(Tc.Z,{directives:[{name:"permission",rawName:"v-permission",value:"full",expression:"'full'"}],attrs:{dense:""},on:{click:e.toggleAiSiteCreationExperience}},[t(Dc.V9,[t("div",{staticClass:"d-flex align-center"},[e._v(e._s(e.__("AI Site Creation Experience")))])])],1):e._e()],1)],1)},Mu=[],Bu=n(95690);let Lu=class extends s.ZP{constructor(){super(...arguments),this.isOpen=!1}get builderMode(){return c.configStore.builderMode}get nudgeTop(){return"oxygen"===this.builderMode?-16:0}openPreferencesModal(){c.uiStore.setPreferencesModalOpen(!0)}toggleElementStudio(){c.uiStore.toggleElementStudio()}openGlobalSettingsPanel(){(0,Bu.oM)("globalSettings")}openSelectorsPanel(){c.uiStore.setActiveSelectorName(null),(0,Bu.oM)("selectors")}openPresetsPanel(){c.uiStore.setActivePresetId(null),(0,Bu.oM)("presets")}get elementsLoadingState(){return c.configStore.elementsLoadingState}get anySettingsPanelsOpen(){return(0,Bu.O_)("selectors")||(0,Bu.O_)("history")||(0,Bu.O_)("globalSettings")||c.uiStore.panelState.elementStudioOpen||c.uiStore.panelState.preferencesModalOpen}openHistoryAndRevisionsPanel(){(0,Bu.oM)("history")}get globalSettingsAvailableForEditing(){return c.configStore.globalSettingsControlsAndTemplate.controls.length>0}toggleAiSiteCreationExperience(){(0,Aa.V6)()}get aiSiteCreationExperienceAvailable(){return!!window.Breakdance?.singularity}};Lu=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,StandardButton:Fl,Dropdown:Oc.Z,IconButton:Xa.Z}})],Lu);const Nu=Lu,Fu=Nu;var Ru=(0,N.Z)(Fu,Ou,Mu,!1,null,null,null);const Vu=Ru.exports;var $u=n(59760),Wu=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.backToAdmin||e.backToFrontend?t("TopBarSection",{attrs:{borderLeft:!0}},[t("Dropdown",{attrs:{"offset-y":"","nudge-top":e.nudgeTop,"nudge-left":e.nudgeLeft},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("IconButton",e._g({attrs:{icon:"oxygen"===e.builderMode?"XmarkSolidIcon":"XmarkIcon",size:"oxygen"===e.builderMode?14:18,tooltip:e.isOpen?"":e.__("Exit")}},n))]}}],null,!1,773573831),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t(Ec.Z,[e.backToFrontend?t(Tc.Z,{attrs:{dense:"",href:e.backToFrontend}},[t("div",{staticClass:"breakdance-menu-icon-wrapper"},[t("Icon",{attrs:{icon:"BrowserIcon"}})],1),t(Dc.km,{staticClass:"ml-4"},[t(Dc.V9,[e._v(e._s(e.__("Exit to Frontend")))])],1)],1):e._e(),t(Tc.Z,{attrs:{dense:"",href:e.backToAdmin}},[t("div",{staticClass:"breakdance-menu-icon-wrapper"},[t("Icon",{attrs:{icon:"WordPressIcon"}})],1),t(Dc.km,{staticClass:"ml-4"},[t(Dc.V9,[e._v(e._s(e.__("Exit to WordPress")))])],1)],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.copyFrontEndLinkToClipboard}},[t("div",{staticClass:"breakdance-menu-icon-wrapper"},[t("Icon",{attrs:{icon:"CopyIcon"}})],1),t(Dc.km,{staticClass:"ml-4"},[t(Dc.V9,[e._v(e._s(e.__("Copy URL")))])],1)],1)],1)],1)],1):e._e()},Uu=[],zu=n(85902),Hu=n(66485),Gu=n.n(Hu);let Ku=class extends s.ZP{constructor(){super(...arguments),this.isOpen=!1}get backToAdmin(){return Q.PK.documentSpecificNeededUrls?Q.PK.documentSpecificNeededUrls.backToWordPressUrl:""}get backToFrontend(){return(0,zu.j)()}get builderMode(){return Q.PK.builderMode}get nudgeTop(){return"oxygen"===this.builderMode?-16:0}get nudgeLeft(){return"oxygen"===this.builderMode?7:0}copyFrontEndLinkToClipboard(){this.backToFrontend&&Gu()(this.backToFrontend)}};Ku=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,Dropdown:Oc.Z,IconButton:Xa.Z,TopBarSection:Kc}})],Ku);const ju=Ku,qu=ju;var Xu=(0,N.Z)(qu,Wu,Uu,!1,null,null,null);const Yu=Xu.exports;var Qu=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TopBarSection",{attrs:{borderRight:!0}},["breakdance"===e.builderMode?t("StandardButton",{staticClass:"open-elements-toolbar-button",attrs:{active:e.isAddSectionOpen,size:"22",minWidth:"80",testId:"open-elements-toolbar-button"},on:{click:e.toggleAdd}},[e._v(" "+e._s(e.__("Add"))+" ")]):e._e(),"oxygen"===e.builderMode?t("IconButton",{attrs:{active:e.isAddSectionOpen,icon:"PlusIconSolid",size:"14",tooltip:e.__("Add Element")},on:{click:e.toggleAdd}}):e._e()],1)},Ju=[];let ep=class extends s.ZP{mounted(){c.uiStore.hasFullAccess&&Ke.uq.register(je.r.CMD_A,this.toggleAdd)}toggleAdd(){(0,Bu._y)("add")}get isAddSectionOpen(){return(0,Bu.O_)("add")}beforeDestroy(){Ke.uq.unbind(je.r.CMD_A)}get builderMode(){return c.configStore.builderMode}};ep=(0,r.gn)([(0,l.wA)({components:{StandardButton:Fl,TopBarSection:Kc,IconButton:Xa.Z}})],ep);const tp=ep,np=tp;var sp=(0,N.Z)(np,Qu,Ju,!1,null,null,null);const ip=sp.exports;var op=n(78549),ap=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(op.Z,{staticClass:"pa-0 breakdance-topbar d-flex flex-row",attrs:{short:"",color:"var(--white)",height:"auto",width:"100%",flat:""}},[e._t("default")],2)},rp=[];let lp=class extends s.ZP{};lp=(0,r.gn)([l.wA],lp);const cp=lp,dp=cp;var up=(0,N.Z)(dp,ap,rp,!1,null,null,null);const pp=up.exports;var hp=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",["breakdance"===e.builderMode?t("NiceButton",{attrs:{"right-icon":"StarsIcon",size:"18",color:"flat"},on:{click:e.toggleDialog}},[e._v(e._s(e.__("Try Breakdance Pro")))]):e._e(),"oxygen"===e.builderMode?t("button",{staticClass:"button-upgrade-oxygen-pro",on:{click:e.toggleDialog}},[t("span",{staticClass:"shining-text"},[e._v(e._s(e.__("Try Oxygen Pro")))])]):e._e(),t(Ha.Z,{attrs:{"max-width":"1120"},model:{value:e.dialogOpen,callback:function(t){e.dialogOpen=t},expression:"dialogOpen"}},[t("div",{staticClass:"upgrade-to-pro-modal-content"},[t("iframe",{attrs:{src:e.$bdox("website_link_upgrade_to_pro_iframe")}})])])],1)},gp=[];let mp=class extends s.ZP{constructor(){super(...arguments),this.dialogOpen=!1}toggleDialog(){this.dialogOpen=!this.dialogOpen,(0,Tt.K)("Upgrade To Pro Modal Toggled",{open:this.dialogOpen})}get builderMode(){return c.configStore.builderMode}};mp=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,NiceButton:Br.Z}})],mp);const vp=mp,yp=vp;var fp=(0,N.Z)(yp,hp,gp,!1,null,null,null);const _p=fp.exports;var bp=n(84192),Sp=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dropdown",{attrs:{"offset-y":"","nudge-top":"-16px","nudge-left":"7","max-width":300},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("IconButton",e._g({staticClass:"open-main-dropdown-toolbar-button",attrs:{icon:"OxygenLogoIcon",size:"14",tooltip:e.isOpen?"":e.__("Menu")}},n))]}}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t(Ec.Z,[t(Tc.Z,{attrs:{dense:"",href:e.backToDashboard}},[t("div",{staticClass:"breakdance-menu-icon-wrapper"},[t("Icon",{attrs:{icon:"WordPressIcon",size:"12"}})],1),t(Dc.km,{staticClass:"ml-2"},[t(Dc.V9,[e._v(e._s(e.__("Dashboard")))])],1)],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.openPreferencesModal}},[t("div",{staticClass:"breakdance-menu-icon-wrapper"},[t("Icon",{attrs:{icon:"SlidersSolidIcon",size:"12"}})],1),t(Dc.km,{staticClass:"ml-2"},[t(Dc.V9,[e._v(e._s(e.__("Preferences")))])],1)],1),t(Tc.Z,{attrs:{dense:"",href:e.settingsUrl}},[t("div",{staticClass:"breakdance-menu-icon-wrapper"},[t("Icon",{attrs:{icon:"OxygenLogoIcon",size:"12"}})],1),t(Dc.km,{staticClass:"ml-2"},[t(Dc.V9,[e._v(e._s(e.__("Plugin Settings")))])],1)],1),t(bp.Z),t(Tc.Z,{attrs:{dense:"",href:"https://oxygenbuilder.com/learn",target:"_blank"}},[t("div",{staticClass:"breakdance-menu-icon-wrapper"},[t("Icon",{attrs:{icon:"VideoSolidIcon",size:"12"}})],1),t(Dc.km,{staticClass:"ml-2"},[t(Dc.V9,[e._v(e._s(e.__("Tutorials")))])],1)],1),t(Tc.Z,{attrs:{dense:"",href:"https://oxygenbuilder.com/documentation",target:"_blank"}},[t("div",{staticClass:"breakdance-menu-icon-wrapper"},[t("Icon",{attrs:{icon:"AlignLeftIcon",size:"12"}})],1),t(Dc.km,{staticClass:"ml-2"},[t(Dc.V9,[e._v(e._s(e.__("Documentation")))])],1)],1)],1)],1)},Cp=[];let xp=class extends s.ZP{constructor(){super(...arguments),this.isOpen=!1}get backToDashboard(){return Q.PK.neededData?.adminUrl}get settingsUrl(){return Q.PK.neededData?.breakdanceSettingsUrl}openDesignLibrary(){Q.kD.setDesignLibraryModalState(!0)}openPreferencesModal(){Q.kD.setPreferencesModalOpen(!0)}};xp=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,Dropdown:Oc.Z,IconButton:Xa.Z}})],xp);const wp=xp,Ip=wp;var Pp=(0,N.Z)(Ip,Sp,Cp,!1,null,null,null);const kp=Pp.exports;var Ep=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.isGlobalBlock?t("Dropdown",{attrs:{"offset-y":"","nudge-top":-3,"max-width":300,"close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[e.isOxygen?t("button",e._g({staticClass:"oxygen-button-primary"},n),[t("Icon",{attrs:{icon:"ExpandExpandIcon",size:"14"}}),e.preview.width&&e.preview.height?t("span",{staticClass:"d-flex flex-row align-center"},[t("span",[e._v(e._s(e.preview.width))]),t("Icon",{attrs:{icon:"XmarkSolidIcon",size:"10"}}),t("span",[e._v(e._s(e.preview.height))])],1):e._e()],1):t("NiceButton",e._g({staticClass:"preview-size-button",attrs:{size:"small"}},n),[e.preview.width&&e.preview.height?[e._v(" "+e._s(e.preview.width)+"x"+e._s(e.preview.height)+" ")]:[e._v(e._s(e.__("Preview Size")))]],2)]}}],null,!1,1394520429)},[t("div",{staticClass:"preview-size-content"},[t("h4",{staticClass:"preview-size__title mb-2"},[e._v(" "+e._s(e.__("Constrain Preview Size"))+" ")]),t("div",{staticClass:"breakdance-control-wrapper"},[t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Dimensions"))+" ")])]),t("div",{staticClass:"breakdance-control-wrapper-input-wrapper preview-size-inputs"},[t("UnitInput",{attrs:{type:"text",placeholder:e.__("Width"),value:{number:e.preview.width},options:{types:["px"],defaultType:"px"}},on:{input:e.changeWidth}}),t("Icon",{attrs:{icon:"CloseIcon"}}),t("UnitInput",{attrs:{type:"text",placeholder:e.__("Height"),value:{number:e.preview.height},options:{types:["px"],defaultType:"px"}},on:{input:e.changeHeight}})],1)]),t("div",{staticClass:"breakdance-control-wrapper breakdance-control-wrapper-inline"},[t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Background Color"))+" ")])]),t("div",{staticClass:"breakdance-control-wrapper-input-wrapper"},[t("ColorInput",{attrs:{value:e.preview.backgroundColor},on:{input:e.changeBackgroundColor}})],1)]),t("div",{staticClass:"breakdance-control-wrapper breakdance-control-wrapper-inline"},[t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Vertically Center"))+" ")])]),t("div",{staticClass:"breakdance-control-wrapper-input-wrapper"},[t("ToggleInput",{attrs:{value:e.preview.isCentered},on:{input:e.changeIsCentered}})],1)])])]):e._e()},Tp=[],Dp=n(56823),Ap=n(71821),Zp=n(72252);let Op=class extends s.ZP{get isGlobalBlock(){return(0,zd._T)(c.documentStore.document.documentMeta.postType)}get postId(){return c.documentStore.document.documentMeta.id}get blockSettings(){const e=c.documentStore.document.documentMeta.blockSettings;return e||{preview:this.getEmptyPreview()}}get preview(){return this.blockSettings.preview}get isOxygen(){return"oxygen"===c.configStore.builderMode}getEmptyPreview(){return{width:void 0,height:void 0,backgroundColor:"",isCentered:!1}}changeWidth(e){this.updateProp("width",e?.number)}changeHeight(e){this.updateProp("height",e?.number)}changeBackgroundColor(e){this.updateProp("backgroundColor",e)}changeIsCentered(e){this.updateProp("isCentered",e)}updateProp(e,t){const n=(0,wd.Z)(c.documentStore.document.documentMeta);if(Sd()(n,`blockSettings.preview.${e}`,t),!1!==n.blockSettings){const e=Object.values(n.blockSettings.preview).every((e=>void 0===e));e&&Sd()(n,"blockSettings.preview",this.getEmptyPreview())}Ie.n.ignore((async()=>{c.documentStore.setDocumentMeta(n),await(0,Yo.fv)(this.postId,this.blockSettings)}))}};Op=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,ToggleInput:Zp.Z,ColorInput:Ap.Z,UnitInput:Dp.Z,NumberInput:xd.Z,NiceButton:Br.Z,TextInput:na.Z,Dropdown:Oc.Z}})],Op);const Mp=Op,Bp=Mp;var Lp=(0,N.Z)(Bp,Ep,Tp,!1,null,null,null);const Np=Lp.exports;var Fp=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TopBarSection",{attrs:{borderLeft:!0,borderRight:!0}},[t("div",{staticClass:"inline-editor-topbar-indicator",on:{click:e.closeEditor}},[t("Icon",{staticClass:"inline-editor-topbar-indicator__icon",attrs:{icon:"ArrowLeftIcon"}}),t("span",{staticClass:"inline-editor-topbar-indicator__title truncate"},[e._v(" "+e._s(e.block?.label)+" ")]),t("Icon",{staticClass:"inline-editor-topbar-indicator__icon",attrs:{icon:"GlobeIcon"}})],1)])},Rp=[];let Vp=class extends l.w3{get block(){return c.configStore.globalBlocks.find((e=>c.uiStore.inlineEditingContext?.blockId===e.id))}closeEditor(){(0,il.Uw)()}};Vp=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,TopBarSection:Kc}})],Vp);const $p=Vp,Wp=$p;var Up=(0,N.Z)(Wp,Fp,Rp,!1,null,null,null);const zp=Up.exports;let Hp=class extends s.ZP{get shouldShowUpgradeToProButton(){return"free"===c.configStore.subscriptionMode}get isPreviewMode(){return c.uiStore.isPreviewMode}togglePreviewMode(){c.uiStore.togglePreviewMode()}toggleElementProperties(){(0,Bu._y)("elementproperties")}get isElementPropertiesOpen(){return(0,Bu.O_)("elementproperties")}get isOxySelectorsPanelOpen(){return(0,Bu.O_)("oxySelectors")}get isVariablesPanelOpen(){return(0,Bu.O_)("variables")}toggleStructurePanel(){(0,Bu._y)("structure")}toggleOxySelectorsPanel(){(0,Bu._y)("oxySelectors")}toggleVariablesPanel(){(0,Bu._y)("variables")}get isStructurePanelOpen(){return(0,Bu.O_)("structure")}get isAiEnabled(){return c.configStore.ai?.enabled}get isAiPanelOpen(){return(0,Bu.O_)("ai")}toggleAiPanel(){(0,Bu._y)("ai")}get activeElementId(){return c.uiStore.activeElementId}get isInlineEditing(){return c.uiStore.isInlineEditing}get currentBreakpoint(){return c.uiStore.currentBreakpoint}set currentBreakpoint(e){c.uiStore.changeBreakpoint(e)}mounted(){Ke.uq.register(je.r.CMD_SHIFT_S,(()=>(0,$u.b0)("SCALED_TO_FIT"!==c.uiStore.settings.scaleToFit)))}beforeDestroy(){Ke.uq.unbind(je.r.CMD_SHIFT_S)}get builderMode(){return c.configStore.builderMode}};Hp=(0,r.gn)([(0,l.wA)({components:{InlineEditorTopbarIndicator:zp,PreviewSize:Np,TopBar:pp,Exit:Yu,AddButton:ip,TopBarSection:Kc,SettingsDropdown:Vu,BreakpointsSelection:Fc,Save:kc,UndoRedo:Qc,PreviewContentChooserDialog:qd,DocumentChooser:Zu,IconButton:Xa.Z,UpgradeToPro:_p,OxygenMenuDropdown:kp}})],Hp);const Gp=Hp,Kp=Gp;var jp=(0,N.Z)(Kp,yc,fc,!1,null,null,null);const qp=jp.exports;var Xp=n(56275),Yp=n(53333),Qp=n(77671),Jp=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t(Ha.Z,{attrs:{"content-class":"preferences-modal-dialog",value:e.open,"max-width":"780",persistent:""},on:{input:function(t){return e.$emit("update:dialog",!1)},"click:outside":e.handleClickOutside}},[t(Jc.Z,{staticClass:"d-flex flex-column",attrs:{height:"100%"}},[!0===e.saveInProgress?[t("div",{staticClass:"flex-grow-1 d-flex justify-center align-center mt-auto mb-auto"},[t(Xp.Z,{attrs:{size:100,indeterminate:"",color:"var(--gray300)"}})],1)]:[t("div",{staticClass:"flex-grow-1 d-flex flex-row",staticStyle:{overflow:"auto"}},[t("div",{staticClass:"preferences-tab-area"},[t("h2",{staticClass:"preferences-modal-title-text"},[e._v(e._s(e.__("Preferences")))]),t(Qp.Z,{staticClass:"breakdance-tabs",attrs:{vertical:""},on:{change:e.handleChangeTab},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t(Yp.Z,{staticClass:"breakdance-tabs__tab"},[t("Icon",{staticClass:"ml-1 mr-3",attrs:{icon:"SlidersIcon",size:"16"}}),e._v(" "+e._s(e.__("UI Settings"))+" ")],1),t(Yp.Z,{staticClass:"breakdance-tabs__tab"},[t("Icon",{staticClass:"ml-1 mr-3",attrs:{icon:"FontIcon",size:"16"}}),e._v(" "+e._s(e.__("Custom Fonts"))+" ")],1),t(Yp.Z,{staticClass:"breakdance-tabs__tab"},[t("Icon",{staticClass:"ml-1 mr-3",attrs:{size:"16",icon:"BreakpointsIcon"}}),e._v(" "+e._s(e.__("Breakpoints"))+" ")],1)],1)],1),t("button",{staticClass:"preferences-close-button",on:{click:e.handleClickOutside}},[t("Icon",{attrs:{size:"20",icon:"CloseIcon"}})],1),t("div",{staticClass:"flex-grow-1 preferences-content-area"},[e.currentTab===e.fontFamiliesTab?t("CustomFontFamilies",{ref:"customFontFamiliesPanel",attrs:{value:e.customFontFamilies},on:{input:e.updateCustomFontFamilies}}):e._e(),e.currentTab===e.customBreakpointsTab?t("CustomBreakpointsPanel",{ref:"customBreakpointsPanel",attrs:{value:e.customBreakpoints},on:{input:e.updateBreakpoints}}):e._e(),e.currentTab===e.uiSettingsTab?t("CustomUiSettings"):e._e()],1)])]],2)],1)],1)},eh=[],th=n(51168),nh=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("PreferencesPanel",{attrs:{save:{text:e.__("Save Breakpoints"),function:e.applyChanges,inProgress:!1,disabled:!e.unsavedChangesPresent}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.__("Breakpoints")))]},proxy:!0},{key:"content",fn:function(){return[t("EditBreakpoints",{attrs:{value:e.internalValue},on:{input:e.breakpointsEdited}})]},proxy:!0}])})},sh=[],ih=n(18446),oh=n.n(ih),ah=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e._l(e.value,(function(n){return t("EditBreakpoint",{key:n.id,attrs:{value:n,isEditing:n.id===e.editingBreakpointId},on:{input:e.updateOrAddBreakpoint,delete:function(t){return e.deleteBreakpoint(n.id)},edit:e.edit}})})),!e.showAddForm&&e.value.length>0?t(Qo.Z,{attrs:{outlined:""},on:{click:e.openAddBreakpointForm}},[e._v(" "+e._s(e.__("Add Breakpoint"))+" ")]):e._e(),t("div",[e.showAddForm?[t("div",{staticClass:"add-breakpoint-form-content-wrapper"},[t("div",{staticClass:"add-breakpoint-heading-box"},[t("h4",{staticClass:"add-breakpoint-heading"},[e._v(e._s(e.__("Add New Breakpoint")))]),t("IconButton",{staticClass:"add-breakpoint-close-button",attrs:{icon:"CloseIcon",size:"18"},on:{click:e.toggleAddBreakpointForm}})],1),t("TextInput",{attrs:{placeholder:e.__("Breakpoint name, ie. iPhone X or tablet"),size:"md","validation-function-name":"validateNoQuotes"},model:{value:e.newBreakpointLabel,callback:function(t){e.newBreakpointLabel=t},expression:"newBreakpointLabel"}}),t(Qo.Z,{attrs:{disabled:!e.newBreakpointLabel,text:""},on:{click:e.addBreakpoint}},[t("Icon",{staticClass:"mr-2",attrs:{icon:"PlusIcon"}}),e._v(" "+e._s(e.__("Add"))+" ")],1)],1)]:e._e(),e.showAddForm||0!=e.value.length?e._e():t("EmptyStatePreferences",[t("p",[e._v(e._s(e.__("Add your first breakpoint by clicking the button below.")))]),t(Qo.Z,{attrs:{outlined:""},on:{click:e.openAddBreakpointForm}},[e._v(" "+e._s(e.__("Add Breakpoint"))+" ")])],1)],2)],2)},rh=[],lh=n(82202),ch=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{ref:"form",staticClass:"mx-n2 pa-2 py-3 breakpoint-edit"},[t("h3",{staticClass:"font-weight-medium breakpoint-title text-capitalize mb-2"},[e._v(" "+e._s(e.value.label)+" ")]),t("div",{staticClass:"d-flex align-center justify-space-between"},[t("div",{staticClass:"media-query-box"},[e.isEditing?t("div",{staticClass:"media-query-box-items"},[t("div",{staticClass:"media-query-input-wrapper"},[t("div",{staticClass:"d-flex flex-column"},[t("label",{staticClass:"breakdance-text-input__label"},[e._v(e._s(e.__("Maximum width (px)")))]),t("NumberInput",{model:{value:e.internalValue.maxWidth,callback:function(t){e.$set(e.internalValue,"maxWidth",t)},expression:"internalValue.maxWidth"}})],1)]),t("div",{staticClass:"media-query-input-wrapper"},[t("div",{staticClass:"d-flex flex-column"},[t("label",{staticClass:"breakdance-text-input__label"},[e._v(e._s(e.__("Minimum width (px)")))]),t("NumberInput",{model:{value:e.internalValue.minWidth,callback:function(t){e.$set(e.internalValue,"minWidth",t)},expression:"internalValue.minWidth"}})],1)]),t("div",{staticClass:"media-query-input-wrapper"},[t("div",{staticClass:"d-flex flex-column"},[t("label",{staticClass:"media-query-box-label"},[e._v(e._s(e.__("Default Preview Width")))]),t("DropdownInput",{staticClass:"breakdance-dense-select breakdance-dense-select--md",attrs:{label:e.__("Default Preview Width"),value:"100%"===e.internalValue.defaultPreviewWidth?"100%":"custom",items:["100%","custom"],dense:"",solo:"",flat:"",filled:"",clearable:""},on:{input:e.setDefaultPreviewWidth}})],1)]),t("div",{staticClass:"media-query-input-wrapper"},["100%"!==e.internalValue.defaultPreviewWidth?[t("div",{staticClass:"d-flex flex-column"},[t("label",{staticClass:"breakdance-text-input__label"},[e._v(e._s(e.__("Custom width (px)")))]),t("NumberInput",{model:{value:e.internalValue.defaultPreviewWidth,callback:function(t){e.$set(e.internalValue,"defaultPreviewWidth",t)},expression:"internalValue.defaultPreviewWidth"}})],1)]:e._e()],2),t("div",{staticClass:"d-flex justify-end align-center"},[t(Qo.Z,{staticClass:"mr-3",attrs:{text:"",color:"red darken-1"},on:{click:e.cancel}},[e._v(e._s(e.__("Cancel")))]),t("NiceButton",{attrs:{disabled:!e.internalValue.maxWidth&&!e.internalValue.minWidth},on:{click:e.save}},[e._v(e._s(e.__("Save")))])],1)]):t("div",{on:{click:e.enableEditing}},[this.mediaQueryString?[t("div",{staticClass:"media-query-string"},[e._v(e._s(this.mediaQueryString))])]:[t(lh.Z,{staticClass:"mt-4",attrs:{dense:"",text:"",color:"orange"}},[e._v(" "+e._s(e.__("Click to set min and max widths."))+" ")])]],2)]),e.isEditing?e._e():t("div",{staticClass:"breakpoint-edit__actions"},[t("IconButton",{staticClass:"mr-1",attrs:{icon:"EditIcon",size:"18"},on:{click:e.enableEditing}}),t("IconButton",{attrs:{icon:"TrashIcon",size:"18"},on:{click:function(t){t.stopPropagation(),e.deleteDialog=!0}}})],1)])]),t("ConfirmDialog",{attrs:{show:e.deleteDialog,type:"error","action-text":"Delete","discard-text":"Cancel","save-is-enabled":!0,"discard-is-enabled":!0},on:{discard:function(t){e.deleteDialog=!1},save:e.deleteBreakpoint},scopedSlots:e._u([{key:"title",fn:function(){return[e._v("Delete breakpoint?")]},proxy:!0},{key:"text",fn:function(){return[e._v("{If you delete the "+e._s(e.value.label||`${e.value.defaultPreviewWidth}px`)+" breakpoint, you will lose all design changes it applies.")]},proxy:!0}])})],1)},dh=[],uh=n(99969);let ph=class extends s.ZP{constructor(){super(...arguments),this.deleteDialog=!1,this.internalValue=(0,wd.Z)(this.value)}setDefaultPreviewWidth(e){const t=this.internalValue.maxWidth??this.internalValue.minWidth??250;this.internalValue.defaultPreviewWidth="100%"===e?"100%":t}enableEditing(){this.$emit("edit",this.value.id)}get breakpoints(){return c.configStore.breakpoints}get previewWidthUnit(){return"px"}deleteBreakpoint(){this.$emit("delete"),this.deleteDialog=!1}get mediaQueryString(){const e=this.internalValue.minWidth||void 0,t=this.internalValue.maxWidth||void 0;return(0,Pe.Mc)(e,t)}cancel(){this.internalValue=(0,wd.Z)(this.value),this.$emit("edit","")}save(){const e=(0,wd.Z)(this.internalValue);(0,id.pipe)((0,Pe.cb)(e),(0,od.fold)((e=>{e.forEach((e=>cd.Z.log.message(e.msg)))}),(e=>{this.$emit("input",e),this.$emit("edit","")})))}};(0,r.gn)([(0,l.fI)()],ph.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],ph.prototype,"isEditing",void 0),ph=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z,TextInput:na.Z,NumberInput:xd.Z,DropdownInput:Cd.Z,NiceButton:Br.Z,ConfirmDialog:uh.Z},directives:{focus:{inserted:function(e){e.focus()}}}})],ph);const hh=ph,gh=hh;var mh=(0,N.Z)(gh,ch,dh,!1,null,null,null);const vh=mh.exports;var yh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"preferences-empty-state"},[e._t("default")],2)},fh=[],_h={},bh=(0,N.Z)(_h,yh,fh,!1,null,null,null);const Sh=bh.exports;let Ch=class extends s.ZP{constructor(){super(...arguments),this.editingBreakpointId="",this.showAddForm=!1,this.newBreakpointLabel=""}edit(e){this.editingBreakpointId=e,this.showAddForm=!1}openAddBreakpointForm(){this.showAddForm=!0,this.editingBreakpointId=""}toggleAddBreakpointForm(){this.showAddForm=!this.showAddForm}addBreakpoint(){if(!this.newBreakpointLabel)return;const e=this.newBreakpointLabel.toLowerCase().replace(/[- ]/g,"_"),t=`custom_breakpoint_${e}`;this.updateOrAddBreakpoint({id:t,label:this.newBreakpointLabel,minWidth:void 0,maxWidth:void 0,defaultPreviewWidth:"100%"})}deleteBreakpoint(e){const t=(0,wd.Z)(this.value),n=t.findIndex((t=>t.id===e));t.splice(n,1),this.$emit("input",t)}updateOrAddBreakpoint(e){const t=(0,Pe.lx)(this.value,e);this.$emit("input",t),!0===this.showAddForm&&(this.showAddForm=!1),this.newBreakpointLabel=""}};(0,r.gn)([(0,l.fI)()],Ch.prototype,"value",void 0),Ch=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,EditBreakpoint:vh,EmptyStatePreferences:Sh,TextInput:na.Z,IconButton:Xa.Z}})],Ch);const xh=Ch,wh=xh;var Ih=(0,N.Z)(wh,ah,rh,!1,null,null,null);const Ph=Ih.exports;var kh=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"preferences-panel-topbar"},[t("div",{staticClass:"preferences-panel-heading"},[e._t("title")],2),e._t("aftertitle"),t(vc.Z)],2),t("div",{staticClass:"preferences-panel-content-area"},[e._t("content")],2),t("div",{staticClass:"preferences-bottom-panel"},[e.hideSaveButton?e._e():t(Qo.Z,{attrs:{loading:e.save.inProgress,disabled:e.save.disabled,color:"blue",dark:""},on:{click:e.save.function}},[e._v(e._s(e.save.text)+" ")])],1)])},Eh=[];let Th=class extends s.ZP{};(0,r.gn)([(0,l.fI)()],Th.prototype,"save",void 0),(0,r.gn)([(0,l.fI)({default:!1})],Th.prototype,"hideSaveButton",void 0),Th=(0,r.gn)([(0,l.wA)({})],Th);const Dh=Th,Ah=Dh;var Zh=(0,N.Z)(Ah,kh,Eh,!1,null,null,null);const Oh=Zh.exports;let Mh=class extends s.ZP{constructor(){super(...arguments),this.internalValue=(0,wd.Z)(this.value)}get unsavedChangesPresent(){return!oh()((0,wd.Z)(this.internalValue),(0,wd.Z)(this.value))}applyChanges(){this.$emit("input",this.internalValue)}breakpointsEdited(e){this.internalValue=e}};(0,r.gn)([(0,l.fI)()],Mh.prototype,"value",void 0),Mh=(0,r.gn)([(0,l.wA)({components:{EditBreakpoints:Ph,PreferencesPanel:Oh}})],Mh);const Bh=Mh,Lh=Bh;var Nh=(0,N.Z)(Lh,nh,sh,!1,null,null,null);const Fh=Nh.exports;var Rh=n(56904),Vh=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("PreferencesPanel",{attrs:{save:{text:e.__("Save Fonts"),function:e.applyChanges,inProgress:e.saveInProgress,disabled:!e.unsavedChangesPresent||e.isFreeMode}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.__("Custom Fonts")))]},proxy:!0},{key:"content",fn:function(){return[t("ProOnlyAlertBox",{staticClass:"mb-5",attrs:{options:{content:e.sprintf(e._doc("Managing custom fonts is only available in %s Pro","%s: Plugin name"),e.$bdox("plugin_name")),feature:"custom-fonts"}}}),e._l(e.internalValue,(function(n,s){return t("FontFamily",{key:n.family,attrs:{value:n,isOpen:s===e.openedFontIndex},on:{open:function(t){return e.openFont(t?s:-1)},delete:function(t){return e.deleteFontFamily(s)},input:function(t){return e.updateFontFamily(t,s)}}})})),e.internalValue.length?[t("div",{staticClass:"mt-12"})]:e._e(),t("h4",{staticClass:"mb-4 font-weight-medium"},[e._v(" "+e._s(e.__("Add Font"))+" ")]),e.showAddForm||0!=e.internalValue.length?e._e():t("EmptyStatePreferences",[t("p",[e._v(" "+e._s(e.sprintf(e._doc("Add a font family to %s's font family dropdowns, and optionally upload associated .woff/.woff2 files.","%s: Plugin name"),e.$bdox("plugin_name")))+" ")]),t(Qo.Z,{attrs:{outlined:"",disabled:e.isFreeMode},on:{click:e.toggleAddForm}},[e._v(" "+e._s(e.__("Add Font"))+" ")])],1),e.showAddForm?t("div",[t(Rh.Z,{ref:"form",on:{submit:function(t){return t.preventDefault(),e.saveNewFontFamily.apply(null,arguments)}},model:{value:e.validForm,callback:function(t){e.validForm=t},expression:"validForm"}},[t("div",{staticClass:"add-font-family-form-content-wrapper"},[t("div",{staticClass:"add-font-heading-box"},[t("h4",{staticClass:"add-font-heading"},[e._v(" "+e._s(e.__("Add New Font"))+" ")]),t("IconButton",{staticClass:"add-font-cloe-button",attrs:{icon:"CloseIcon",size:"18"},on:{click:e.toggleAddForm}})],1),t("TextInput",{attrs:{placeholder:e.__("Custom font name, ie. Helvetica"),outlined:"",dense:"",solo:"",flat:"","single-line":"",size:"md","validation-function-name":"validateAlphanumericHyphenUnderscore"},model:{value:e.fontFamily,callback:function(t){e.fontFamily=t},expression:"fontFamily"}}),t(Qo.Z,{attrs:{disabled:!e.fontFamily||!0!==e.validFontFamily,type:"submit",text:""}},[t("Icon",{staticClass:"mr-2",attrs:{icon:"PlusIcon"}}),e._v(" "+e._s(e.__("Add"))+" ")],1)],1)])],1):e._e(),e.internalValue.length>0&&!e.showAddForm?t(Qo.Z,{attrs:{outlined:"",disabled:e.isFreeMode},on:{click:e.toggleAddForm}},[e._v(" "+e._s(e.__("Add Font"))+" ")]):e._e(),t("h4",{staticClass:"my-4 font-weight-medium mt-12"},[e._v(" "+e._s(e.__("Use Fonts In External CSS"))+" ")]),e.showCssForm||0!=e.internalValue.length?e._e():t("EmptyStatePreferences",[t("p",[e._v(" "+e._s(e.__("Use hosted fonts from providers like Adobe Fonts."))+" ")]),t(Qo.Z,{attrs:{outlined:"",disabled:e.isFreeMode},on:{click:e.toggleCssForm}},[e._v(" "+e._s(e.__("Add External CSS"))+" ")])],1),e.showCssForm?t("div",[t(Rh.Z,{ref:"cssForm",on:{submit:function(t){return t.preventDefault(),e.saveCssUrl.apply(null,arguments)}},model:{value:e.validCssForm,callback:function(t){e.validCssForm=t},expression:"validCssForm"}},[t("div",{staticClass:"add-font-family-form-content-wrapper mb-4"},[t("div",{staticClass:"add-font-heading-box"},[t("h4",{staticClass:"add-font-heading"},[e._v(" "+e._s(e.__("CSS URL"))+" ")]),t("IconButton",{staticClass:"add-font-cloe-button",attrs:{icon:"CloseIcon",size:"18"},on:{click:e.toggleCssForm}})],1),t("TextInput",{attrs:{rules:[t=>!!t||e.__("Please enter a value"),t=>e.isValidUrl(t)||e.__("Please enter a valid URL")],placeholder:e.__("URL to CSS file containing Font Face definitions"),outlined:"",dense:"",solo:"",flat:"","single-line":"",size:"md"},model:{value:e.cssUrl,callback:function(t){e.cssUrl=t},expression:"cssUrl"}}),t(Qo.Z,{attrs:{disabled:e.saveInProgress,type:"submit",text:""}},[t("Icon",{staticClass:"mr-2",attrs:{icon:"PlusIcon"}}),e._v(" "+e._s(e.__("Add"))+" ")],1)],1)])],1):e._e(),e.internalValue.length>0&&!e.showCssForm?t(Qo.Z,{attrs:{outlined:"",disabled:e.isFreeMode},on:{click:e.toggleCssForm}},[e._v(" "+e._s(e.__("Add CSS URL"))+" ")]):e._e()]},proxy:!0}])})},$h=[],Wh=n(88667),Uh=n(65669);async function zh(e){return await(0,ad.D)({action:"breakdance_save_font_file",dataToPost:{file:e},decoder:Wh.zM})}async function Hh(e){return await(0,ad.D)({action:"breakdance_get_font_families_from_css_file",dataToPost:{cssUrl:e},decoder:Wh.lU})}async function Gh(e){return await(0,ad.D)({action:"breakdance_save_font_families",dataToPost:{customFontFamilies:(0,Uh.J)(e)},decoder:Wh.lU})}const Kh=e=>{const t=(0,wd.Z)(Q.PK.fonts),n=t.findIndex((t=>t.slug===e.slug));-1===n?t.unshift(e):t[n]=e,Q.PK.setFonts(t)},jh=e=>{const t=(0,wd.Z)(Q.PK.fonts),n=t.findIndex((t=>t.slug===e));n>-1&&t.splice(n,1),Q.PK.setFonts(t)};var qh=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"custom-font-family"},[t("div",{staticClass:"custom-font-family-titlebar",on:{click:e.toggleFaces}},[t("div",{staticClass:"custom-font-family-title"},[e._v(" "+e._s(e.value.family)+" ")]),t(Qo.Z,{attrs:{icon:""},on:{click:function(t){return t.stopPropagation(),e.deleteFontFamily.apply(null,arguments)}}},[t("Icon",{attrs:{icon:"TrashIcon"}})],1)],1),e.isOpen?t("div",{staticClass:"custom-font-family-edit"},[e.value.hasExternalCssUrl?e._e():t("div",[t("FontFaces",{attrs:{value:e.value.faces},on:{input:e.editFontFamily}}),t("TextField",{attrs:{placeholder:"CSS Fallback String (separate font families with commas)",value:e.value.fallbackString,size:"md"},on:{input:e.editFallbackString}}),e.fallbackStringHasBeenEdited?[t(lh.Z,{staticClass:"mt-4",attrs:{dense:"",border:"left",text:"",type:"warning"}},[e._v(" Changes to the CSS fallback string will take effect after "),t("strong",[e._v("saving and refreshing")]),e._v(". ")])]:e._e()],2),e.value.hasExternalCssUrl?t("div",[t("span",{staticStyle:{"font-size":"var(--text-sm)","font-weight":"500"}},[e._v("Sourced from "+e._s(e.value.cssUrl))]),t("TextField",{staticClass:"mt-4",attrs:{placeholder:"CSS Fallback String (separate font families with commas)",value:e.value.fallbackString,size:"md"},on:{input:e.editFallbackString}})],1):e._e()]):e._e()])},Xh=[],Yh=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"custom-font-family-font-faces"},[e._l(e.value,(function(n,s){return t("UpdateFontFace",{key:n.id,attrs:{value:n,existingFontFaces:e.existingFontFaces(s)},on:{input:function(t){return e.updateFontFace(t,s)},delete:function(t){return e.deleteFontFace(s)}}})})),t("FontFileUpload",{on:{save:e.newFontFileSuccessfullyUploaded}})],2)},Qh=[],Jh=n(9207),eg=n(42564),tg=n(25135),ng=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"custom-font-family-font-face"},[t(Rh.Z,{ref:"form",model:{value:e.isFontFaceUnique,callback:function(t){e.isFontFaceUnique=t},expression:"isFontFaceUnique"}},[t("div",{staticClass:"custom-font-family-font-face-titlebar"},[t("div",{staticClass:"custom-font-family-font-face-titlebar-title"},e._l(e.value.files,(function(n){return t("div",{key:n.fileUrl,staticClass:"mr-3"},[e._v(" "+e._s(n.fileName)+" ")])})),0),t(Qo.Z,{attrs:{icon:""},on:{click:e.deleteFontFace}},[t("Icon",{attrs:{icon:"TrashIcon"}})],1)],1),t("div",{staticClass:"custom-font-family-font-face-controls"},[t("div",{staticClass:"custom-font-family-font-face-controls-control"},[t(tg.Z,{staticClass:"mr-4",attrs:{dense:"",outlined:"",value:e.value.weight,items:e.weights,rules:[e.validateWeight],label:e.__("Font Weight")},on:{input:e.updateWeight}})],1),t("div",{staticClass:"custom-font-family-font-face-controls-control"},[t(eg.Z,{staticClass:"pt-0 mt-0 mr-4",attrs:{value:e.value.style,rules:[e.validateStyle],row:"",dense:""},on:{change:e.updateStyle}},[t(Jh.Z,{attrs:{label:e.__("Normal"),value:"normal"}}),t(Jh.Z,{attrs:{label:e.__("Italic"),value:"italic"}})],1)],1)])])],1)},sg=[],ig=n(52343);let og=class extends s.ZP{constructor(){super(...arguments),this.isFontFaceUnique=!0}validateWeight(e){return e?!this.existingFontFaces.find((t=>t.weight===e&&t.style===this.value.style))?.files.find((e=>this.valueFormats.includes(e.format)))||(0,Ft.__)("This font weight already exists with this style, and format"):(0,Ft.__)("A weight is required")}validateStyle(e){return!this.existingFontFaces.find((t=>t.weight===this.value.weight&&t.style===e))?.files.find((e=>this.valueFormats.includes(e.format)))||(0,Ft.__)("This font style already exists with this weight, and format")}get valueFormats(){return this.value.files.map((e=>e.format))}revalidateOnValueChange(){this.form.validate()}updateWeight(e){const t={...this.value,weight:e};this.$emit("input",t)}updateStyle(e){const t={...this.value,style:e};this.$emit("input",t)}deleteFontFace(){this.$emit("delete")}get weights(){return ig.I}get currentWeight(){return ig.I.find((e=>e.value===this.value.weight))}};(0,r.gn)([(0,l.Rl)()],og.prototype,"form",void 0),(0,r.gn)([(0,l.fI)()],og.prototype,"value",void 0),(0,r.gn)([(0,l.fI)({default:[]})],og.prototype,"existingFontFaces",void 0),(0,r.gn)([(0,l.RL)("value")],og.prototype,"revalidateOnValueChange",null),og=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],og);const ag=og,rg=ag;var lg=(0,N.Z)(rg,ng,sg,!1,null,null,null);const cg=lg.exports;var dg=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-font-file-uploader"},[t("FileUpload",{attrs:{height:"150px",accept:".woff,.woff2",saveInProgress:e.saveInProgress},on:{input:e.handleFiles}},[e._v(" "+e._s(e.__("drag .woff or .woff2 files or"))+" "),t("span",{staticClass:"breakdance-font-file-uploader-choose-link"},[e._v(e._s(e.__("browse...")))])])],1)},ug=[],pg=n(30895);let hg=class extends s.ZP{constructor(){super(...arguments),this.saveInProgress=!1}handleFiles(e){Array.from(e).forEach((e=>{const t=new FileReader;t.onloadend=async t=>{if(!t?.target)return;const n=new Uint8Array(t.target.result).subarray(0,4);let s="";n.forEach((e=>s+=e.toString(16)));const i=e.name.split(".").pop(),o="774f4646"===s&&"woff"===i,a="774f4632"===s&&"woff2"===i;o||a?(this.saveInProgress=!0,(0,id.pipe)(await zh(e),(0,od.fold)((e=>{(0,th.UE)(e)}),(e=>{this.$emit("save",{fileUrl:e.fileUrl,format:o?"woff":"woff2",fileName:e.fileName})}))),this.saveInProgress=!1):cd.Z.log.message((0,Ft.__)('Only ".woff" and ".woff2" files are supported'))},t.readAsArrayBuffer(e)}))}};hg=(0,r.gn)([(0,l.wA)({components:{FileUpload:pg.Z}})],hg);const gg=hg,mg=gg;var vg=(0,N.Z)(mg,dg,ug,!1,null,null,null);const yg=vg.exports;var fg=n(8773);let _g=class extends s.ZP{newFontFileSuccessfullyUploaded(e){const t=Sg(e),n=[...this.value,t];this.$emit("input",n)}updateFontFace(e,t){const n=[...this.value],s=e.files.map((e=>e.format)),i=n.findIndex((t=>t.weight===e.weight&&t.style===e.style&&!t.files.find((e=>s.includes(e.format)))));-1===i?n[t]=e:(n[i].files=[...n[i].files,...e.files],n.splice(t,1)),this.$emit("input",n)}deleteFontFace(e){const t=[...this.value];t.splice(e,1),this.$emit("input",t)}existingFontFaces(e){return this.value.filter(((t,n)=>n!==e))}};(0,r.gn)([(0,l.fI)()],_g.prototype,"value",void 0),_g=(0,r.gn)([(0,l.wA)({components:{FontFileUpload:yg,UpdateFontFace:cg}})],_g);const bg=_g;function Sg(e){return{id:(0,fg.Z)(),files:[e],style:"normal",weight:0}}const Cg=bg;var xg=(0,N.Z)(Cg,Yh,Qh,!1,null,null,null);const wg=xg.exports;let Ig=class extends s.ZP{constructor(){super(...arguments),this.fallbackStringHasBeenEdited=!1}toggleFaces(){this.$emit("open",!this.isOpen)}deleteFontFamily(){this.$emit("delete")}editFallbackString(e){this.fallbackStringHasBeenEdited=!0,this.$emit("input",{...this.value,fallbackString:e})}editFontFamily(e){this.$emit("input",{...this.value,faces:e})}editCssUrl(e){this.$emit("input",{...this.value,cssUrl:e})}};(0,r.gn)([(0,l.fI)()],Ig.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],Ig.prototype,"isOpen",void 0),Ig=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,FontFaces:wg,TextField:na.Z}})],Ig);const Pg=Ig,kg=Pg;var Eg=(0,N.Z)(kg,qh,Xh,!1,null,null,null);const Tg=Eg.exports;var Dg=n(13997),Ag=n(2028),Zg=n(4998);let Og=class extends s.ZP{constructor(){super(...arguments),this.internalValue=(0,wd.Z)(this.value),this.fontFamily="",this.cssUrl="",this.validForm=!0,this.validCssForm=!0,this.saveInProgress=!1,this.openedFontIndex=-1,this.showAddForm=!1,this.showCssForm=!1}get unsavedChangesPresent(){return!oh()((0,wd.Z)(this.internalValue),(0,wd.Z)(this.value))}get validFontFamily(){return(0,Dg.q3)(this.fontFamily)}toggleAddForm(){this.showAddForm=!this.showAddForm}toggleCssForm(){this.showCssForm=!this.showCssForm}async applyChanges(){this.saveInProgress=!0,(0,id.pipe)(await Gh(this.internalValue),(0,od.fold)((e=>{(0,th.UE)(e)}),(e=>{e.forEach((e=>{const t=this.internalValue.findIndex((t=>t.id===e.fontId));this.internalValue[t].cssUrl=e.cssUrl,this.internalValue[t].cssName=e.fontRegistrationData.cssName,Kh(e.fontRegistrationData)})),this.$emit("input",this.internalValue)}))),this.saveInProgress=!1}openFont(e){this.isFreeMode||(this.openedFontIndex=e)}updateFontFamily(e,t){const n=(0,wd.Z)(this.internalValue);n[t]=e,this.internalValue=n}deleteFontFamily(e){if(this.isFreeMode)return;const t=(0,wd.Z)(this.internalValue);t.splice(e,1),jh(this.internalValue[e].id),this.internalValue=t}saveNewFontFamily(){this.form.validate()&&this.fontFamily&&(this.internalValue.push({id:"custom_font_"+this.fontFamily.toLowerCase().replace(/ /g,"_"),family:this.fontFamily,fallbackString:"",cssUrl:"",hasExternalCssUrl:!1,cssName:this.fontFamily,faces:[]}),this.openedFontIndex=this.internalValue.length-1,this.fontFamily="",this.form.reset(),this.showAddForm=!1)}async saveCssUrl(){this.cssForm.validate()&&this.cssUrl&&(this.saveInProgress=!0,(0,id.pipe)(await Hh(this.cssUrl),(0,od.fold)((e=>{(0,th.UE)(e)}),(e=>{e.forEach((e=>{const t=this.internalValue.findIndex((t=>t.id===e.fontId))>-1;t||this.internalValue.unshift({id:e.fontId,family:e.fontRegistrationData.label,fallbackString:e.fontRegistrationData.fallbackString,cssUrl:e.cssUrl,hasExternalCssUrl:!0,cssName:e.fontRegistrationData.cssName,faces:[]})}))}))),this.saveInProgress=!1,this.cssUrl="",this.showCssForm=!1)}isValidUrl(e){let t;try{t=new URL(e)}catch(n){return!1}return"http:"===t.protocol||"https:"===t.protocol}get isFreeMode(){return"free"===Q.PK.subscriptionMode}};(0,r.gn)([(0,l.Rl)()],Og.prototype,"form",void 0),(0,r.gn)([(0,l.Rl)()],Og.prototype,"cssForm",void 0),(0,r.gn)([(0,l.fI)()],Og.prototype,"value",void 0),Og=(0,r.gn)([(0,l.wA)({components:{ProOnlyAlertBox:Zg.Z,AlertBox:Ag.Z,FontFamily:Tg,PreferencesPanel:Oh,EmptyStatePreferences:Sh,Icon:He.Z,TextInput:na.Z,IconButton:Xa.Z}})],Og);const Mg=Og,Bg=Mg;var Lg=(0,N.Z)(Bg,Vh,$h,!1,null,null,null);const Ng=Lg.exports;var Fg=n(76660),Rg=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("PreferencesPanel",{attrs:{"hide-save-button":!0},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.__("UI Settings")))]},proxy:!0},{key:"content",fn:function(){return[t("h4",{staticClass:"mb-4 font-weight-medium"},[e._v(" "+e._s(e.__("Settings"))+" ")]),t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.autoScrollEnabled,inset:"",label:e.__("Auto-scroll to active element"),color:"oxygen"===e.builderMode?"var(--oxygen-primary-500)":null},on:{change:e.setAutoScrollEnabled}})],1),t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.isScaledToFit,label:e.__("Scale content to fit the screen (zoom)"),color:"oxygen"===e.builderMode?"var(--oxygen-primary-500)":null,inset:""},on:{change:e.setScaleToFit}})],1),"breakdance"===e.builderMode?t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.isDarkMode,label:e.__("Dark Mode"),inset:""},on:{change:e.toggleTheme}})],1):e._e(),e.displayShowExperimentalElementsSetting?t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.showExperimentalElements,label:e.__("Show Experimental Elements"),color:"oxygen"===e.builderMode?"var(--oxygen-primary-500)":null,inset:""},on:{change:e.setShowExperimentalElements}})],1):e._e(),t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.disableNoticeForEmptySSRElements,label:e.__("Disable Message For Empty SSR Elements"),color:"oxygen"===e.builderMode?"var(--oxygen-primary-500)":null,inset:""},on:{change:e.setDisableNoticeForEmptySSRElements}})],1),t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.isShowingIdsInStructurePanel,label:e.__("Show elements ID in the Structure Panel"),color:"oxygen"===e.builderMode?"var(--oxygen-primary-500)":null,inset:""},on:{change:e.setIsShowingIdsInStructurePanel}})],1),t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.disableCodeMirrorLineWrapping,label:e.__("Disable Code Editor Line Wrapping"),color:"oxygen"===e.builderMode?"var(--oxygen-primary-500)":null,inset:""},on:{change:e.setDisableCodeMirrorLineWrapping}})],1),t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.isTinyMcePreferredForRichText,label:e.__("Prefer TinyMCE For Rich Text"),color:"oxygen"===e.builderMode?"var(--oxygen-primary-500)":null,inset:""},on:{change:e.setIsTinyMcePreferredForRichText}})],1),t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.includeCustomBreakpointsInBreakpointsDropdown,label:e.__("Include Custom Breakpoints in Breakpoint Dropdowns"),color:"oxygen"===e.builderMode?"var(--oxygen-primary-500)":null,inset:""},on:{change:e.setIncludeCustomBreakpointsInBreakpointsDropdown}})],1),e.includeCustomBreakpointsInBreakpointsDropdown?[t("AlertBox",{staticClass:"mb-5",attrs:{options:{style:"info",content:`Limitations May Apply`}}})]:e._e(),"breakdance"===e.builderMode?t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.showPreviousBreakpointValueAsPlaceholder,label:e.__("Experimental: Show Previous Breakpoint Value As Placeholder"),inset:""},on:{change:e.setShowPreviousBreakpointValueAsPlaceholder}})],1):e._e(),t("div",{staticClass:"ui-setting"},[t(Fg.Z,{attrs:{"input-value":e.disableCustomUnitDropdown,label:e.__("Disable Custom Unit Dropdown"),inset:""},on:{change:e.updatedisableCustomUnitDropdown}})],1),t("div",{staticClass:"ui-setting"},[t("div",{staticClass:"ui-panel-title"},[e._v(" "+e._s(e.__("Default Unit Type"))+" ")]),t("DropdownInput",{attrs:{items:e.unitTypes,value:e.defaultUnitType,placeholder:"px",clearable:!0},on:{input:e.setDefaultUnitType}})],1),t("div",{staticClass:"mt-4"},[t("h4",{staticClass:"mb-4 font-weight-medium"},[e._v(" "+e._s(e.__("Panel Positions"))+" ")]),e._l(e.panelsState,(function(n,s){return[t("div",{key:s,staticClass:"d-flex align-center justify-space-between mb-3 panel-positions"},[t("div",{staticClass:"ui-panel-title"},[e._v(e._s(n.label))]),t("ButtonBarInput",{attrs:{value:n.value,items:e.panelPositionsAsItems,options:{mandatory:!0}},on:{input:function(t){return e.setPanelPosition(n.id,t)}}})],1)]})),t("div",{staticClass:"d-flex align-center justify-space-between mb-3 panel-positions"},[t("div",{staticClass:"ui-panel-title"},[e._v(" "+e._s(e.__("Popout Position"))+" ")]),t("ButtonBarInput",{attrs:{value:e.popoutPosition,items:e.popoutPositionItems,options:{mandatory:!0}},on:{input:e.setPopoutPosition}})],1),t("div",{staticClass:"d-flex justify-end mt-4"},[t("NiceButton",{attrs:{disabled:e.arePanelPositionsDefault},on:{click:e.resetUiPanelPositionsToDefault}},[e._v(e._s(e.__("Reset to defaults")))])],1)],2)]},proxy:!0}])})},Vg=[],$g=n(44762),Wg=n(6613),Ug=n(31549),zg=n(82436),Hg=n(16795);let Gg=class extends s.ZP{constructor(){super(...arguments),this.panelsState=this.getPanelsInitialState()}getPanelsInitialState(){const e=[{id:"add",label:(0,Ft.__)("Add")},{id:"elementproperties",label:(0,Ft.__)("Element Properties")},{id:"structure",label:(0,Ft.__)("Structure")},{id:"history",label:(0,Ft.__)("History & Revisions")}];return"breakdance"===c.configStore.builderMode&&(e.push({id:"globalSettings",label:(0,Ft.__)("Global Settings")}),e.push({id:"selectors",label:(0,Ft.__)("Selectors")})),"oxygen"===c.configStore.builderMode&&(e.push({id:"variables",label:(0,Ft.__)("Variables")}),e.push({id:"oxySelectors",label:(0,Ft.__)("Selectors")})),e.map((e=>({...e,value:(0,Bu.pL)(e.id)})))}get builderMode(){return c.configStore.builderMode}setPanelPosition(e,t){const n=this.panelsState.findIndex((t=>t.id===e));this.panelsState[n].value=t,(0,Bu.hy)(e,t),(0,Bu.ug)(),(0,Bu.oM)(e)}resetUiPanelPositionsToDefault(){(0,Bu.qH)(),this.panelsState=this.getPanelsInitialState()}get arePanelPositionsDefault(){return oh()(Bu.c$,this.panelsState.reduce(((e,t)=>(e[t.id]=t.value,e)),{}))}get panelPositionsAsItems(){return[{text:(0,Ft.__)("left"),value:"left"},{text:(0,Ft.__)("right"),value:"right"}]}get popoutPositionItems(){return[{text:(0,Ft.__)("Stacked"),value:"STACKED"},{text:(0,Ft.__)("Stacked (First Visible)"),value:"STACKED_FIRST_VISIBLE"},{text:(0,Ft.__)("Side By Side"),value:"SIDE_BY_SIDE"}]}get displayShowExperimentalElementsSetting(){return(0,zg.y)()}get isDarkMode(){return"dark"===c.uiStore.settings.theme}get isScaledToFit(){return"SCALED_TO_FIT"===c.uiStore.settings.scaleToFit}get includeCustomBreakpointsInBreakpointsDropdown(){return c.uiStore.settings.includeCustomBreakpointsInBreakpointsDropdown}get isShowingIdsInStructurePanel(){return c.uiStore.settings.showElementIdInStructurePanel}get isTinyMcePreferredForRichText(){return c.uiStore.settings.isTinyMcePreferredForRichText}get customBreakpointsDocUrl(){return"oxygen"===c.configStore.builderMode?"https://oxygenbuilder.com/documentation/settings/preferences/custom-breakpoints/breakpoint-dropdown-limitations/":"https://breakdance.com/documentation/settings/preferences/custom-breakpoints/breakpoint-dropdown-limitations/"}get unitTypes(){return Hg.LF}setScaleToFit(e){this.setUiSettings((0,$u.b0)(e))}toggleTheme(){const e=(0,wd.Z)(c.uiStore.settings);e.theme=this.isDarkMode?"light":"dark",this.setUiSettings(e)}setDisableNoticeForEmptySSRElements(e){const t=(0,wd.Z)(c.uiStore.settings);t.disableNoticeForEmptySSRElements=e,this.setUiSettings(t)}get disableNoticeForEmptySSRElements(){return c.uiStore.settings.disableNoticeForEmptySSRElements}get showExperimentalElements(){return c.uiStore.settings.showExperimentalElements}setShowExperimentalElements(e){const t=(0,wd.Z)(c.uiStore.settings);t.showExperimentalElements=e,this.setUiSettings(t)}setIsShowingIdsInStructurePanel(e){const t=(0,wd.Z)(c.uiStore.settings);t.showElementIdInStructurePanel=e,this.setUiSettings(t)}setIncludeCustomBreakpointsInBreakpointsDropdown(e){const t=(0,wd.Z)(c.uiStore.settings);t.includeCustomBreakpointsInBreakpointsDropdown=e,this.setUiSettings(t)}get defaultUnitType(){return c.uiStore.settings.defaultUnitType}setDefaultUnitType(e){const t=(0,wd.Z)(c.uiStore.settings);t.defaultUnitType=e,this.setUiSettings(t)}get disableCustomUnitDropdown(){return c.uiStore.settings.disableCustomUnitDropdown}updatedisableCustomUnitDropdown(e){const t=(0,wd.Z)(c.uiStore.settings);t.disableCustomUnitDropdown=e,this.setUiSettings(t)}get showPreviousBreakpointValueAsPlaceholder(){return c.uiStore.settings.showPreviousBreakpointValueAsPlaceholder}setShowPreviousBreakpointValueAsPlaceholder(e){const t=(0,wd.Z)(c.uiStore.settings);t.showPreviousBreakpointValueAsPlaceholder=e,this.setUiSettings(t)}get disableCodeMirrorLineWrapping(){return c.uiStore.settings.disableCodeMirrorLineWrapping}setDisableCodeMirrorLineWrapping(e){const t=(0,wd.Z)(c.uiStore.settings);t.disableCodeMirrorLineWrapping=e,this.setUiSettings(t)}setIsTinyMcePreferredForRichText(e){const t=(0,wd.Z)(c.uiStore.settings);t.isTinyMcePreferredForRichText=e,this.setUiSettings(t)}get autoScrollEnabled(){return c.uiStore.settings.autoScrollEnabled}get popoutPosition(){return c.uiStore.settings.popoutPosition}setAutoScrollEnabled(e){const t=(0,wd.Z)(c.uiStore.settings);t.autoScrollEnabled=e,this.setUiSettings(t)}setPopoutPosition(e){const t=(0,wd.Z)(c.uiStore.settings);t.popoutPosition=e,this.setUiSettings(t)}setUiSettings(e){const t=(0,Wg.g)({...$u.OC,...e});t&&(0,Ug.r)($u.rZ,t),c.uiStore.setSettings(e)}};Gg=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z,NiceButton:Br.Z,PreferencesPanel:Oh,ButtonBarInput:$g.Z,ToggleInput:Zp.Z,AlertBox:Ag.Z}})],Gg);const Kg=Gg,jg=Kg;var qg=(0,N.Z)(jg,Rg,Vg,!1,null,null,null);const Xg=qg.exports;let Yg=class extends s.ZP{constructor(){super(...arguments),this.tab=0,this.currentTab=0,this.uiSettingsTab=0,this.fontFamiliesTab=1,this.customBreakpointsTab=2,this.saveInProgress=!1,this.hasUnsavedChanges=!1}get preferences(){return c.configStore.preferences}get customBreakpoints(){return this.preferences.customBreakpoints}get customFontFamilies(){return c.configStore.preferences.customFonts}updateBreakpoints(e){const t=(0,wd.Z)(this.preferences);t.customBreakpoints=e,this.save(t)}updateCustomFontFamilies(e){const t=(0,wd.Z)(this.preferences);t.customFonts=e,this.save(t)}handleClickOutside(){if(this.checkForUnsavedChanges(),!this.hasUnsavedChanges)return this.$emit("update:dialog",!1);const e=confirm("Exit without saving?");return e?this.$emit("update:dialog",!1):this}async handleChangeTab(){if(this.checkForUnsavedChanges(),this.hasUnsavedChanges){const e=confirm("Exit without saving?");if(!e)return await this.$nextTick(),this.tab=this.currentTab,!0}return this.currentTab=this.tab,!1}async save(e){this.saveInProgress=!0,(0,id.pipe)(await th.HR("preferences",e),(0,od.fold)((e=>{(0,th.UE)(e)}),(()=>{c.configStore.setPreferences(e)}))),this.saveInProgress=!1,this.checkForUnsavedChanges()}checkForUnsavedChanges(){return this.currentTab===this.fontFamiliesTab?(this.hasUnsavedChanges=this.customFontFamiliesPanel.unsavedChangesPresent,this.hasUnsavedChanges):this.currentTab===this.customBreakpointsTab?(this.hasUnsavedChanges=this.customBreakpointsPanel.unsavedChangesPresent,this.hasUnsavedChanges):this.hasUnsavedChanges=!1}};(0,r.gn)([(0,l.fI)()],Yg.prototype,"open",void 0),(0,r.gn)([(0,l.Rl)()],Yg.prototype,"customFontFamiliesPanel",void 0),(0,r.gn)([(0,l.Rl)()],Yg.prototype,"customBreakpointsPanel",void 0),Yg=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,CustomUiSettings:Xg,CustomFontFamilies:Ng,CustomBreakpointsPanel:Fh,Loading:Ql.Z}})],Yg);const Qg=Yg,Jg=Qg;var em=(0,N.Z)(Jg,Jp,eh,!1,null,null,null);const tm=em.exports;var nm=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t(Ha.Z,{attrs:{"content-class":"keyboard-shortcuts-help-modal",value:e.open,"max-width":"850"},on:{input:function(t){return e.$emit("update:dialog",!1)}}},[t(Jc.Z,{staticClass:"d-flex flex-column",attrs:{height:"100%"}},[t(yd.ZB,[t("table",{staticClass:"styled-table"},[t("thead",[t("tr",[t("th",[e._v(e._s(e.__("Shortcut")))]),t("th",[e._v(e._s(e.__("Description")))])])]),t("tbody",e._l(e.filteredShortcuts,(function(n,s){return t("tr",{key:s},[t("td",{domProps:{innerHTML:e._s(n.shortcut)}}),t("td",[e._v(e._s(n.description))])])})),0)])])],1)],1)],1)},sm=[];let im=class extends s.ZP{constructor(){super(...arguments),this.shortcuts=[{shortcut:["CMD_A"],description:(0,Ft.__)("Open add elements panel"),availableIn:["breakdance","oxygen"]},{shortcut:["CMD_B"],description:(0,Ft.__)("Open design sets modal"),availableIn:["breakdance"]},{shortcut:["CMD_SHIFT_E"],description:(0,Ft.__)("Open structure panel"),availableIn:["oxygen"]},{shortcut:["CMD_SHIFT_V"],description:(0,Ft.__)("Open variables panel"),availableIn:["oxygen"]},{shortcut:["CMD_SHIFT_G"],description:(0,Ft.__)("Open selectors panel"),availableIn:["oxygen"]},{shortcut:["CMD_S"],description:(0,Ft.__)("Save"),availableIn:["breakdance","oxygen"]},{shortcut:["CMD_Z"],description:(0,Ft.__)("Undo"),availableIn:["breakdance","oxygen"]},{shortcut:["CMD_SHIFT_Z"],description:(0,Ft.__)("Redo"),availableIn:["breakdance","oxygen"]},{shortcut:["CMD_C"],description:(0,Ft.__)("Copy the active element"),availableIn:["breakdance","oxygen"]},{shortcut:["CMD_V"],description:(0,Ft.__)("Paste copied element"),availableIn:["breakdance","oxygen"]},{shortcut:["CMD_D"],description:(0,Ft.__)("Duplicate the active element"),availableIn:["breakdance","oxygen"]},{shortcut:["ESC"],description:(0,Ft.__)("De-activate the active element or close modal"),availableIn:["breakdance","oxygen"]},{shortcut:["SHIFT_ESC"],description:(0,Ft.__)("Go to the parent of the active element"),availableIn:["breakdance","oxygen"]},{shortcut:["BACKSPACE","DELETE"],description:(0,Ft.__)("Delete active element"),availableIn:["breakdance","oxygen"]},{shortcut:["CMD_OPTION_R"],description:(0,Ft.__)("Cycle to the next breakpoint"),availableIn:["breakdance","oxygen"]},{shortcut:["CMD_SHIFT_SLASH","CMD_QUESTION"],description:(0,Ft.__)("Show keyboard shortcuts help modal"),availableIn:["breakdance","oxygen"]},{shortcut:["CMD_SHIFT_S"],description:(0,Ft.__)("Switch between 'scale to fit' and 'actual size' content"),availableIn:["breakdance","oxygen"]},{shortcut:["CMD_E"],description:(0,Ft.__)("Open the rich text editor modal. Only when the Rich Text element is selected"),availableIn:["breakdance","oxygen"]},{shortcut:["C_S_S"],description:(0,Ft.__)("Open the active element's Advanced → Custom CSS and focus it."),availableIn:["breakdance"]},{shortcut:["C_L_A"],description:(0,Ft.__)("Open the active element's Advanced → Classes autocomplete and focus it."),availableIn:["breakdance"]},{shortcut:["F"],description:(0,Ft.__)("Focus the properties search box."),availableIn:["breakdance"]},{shortcut:["SHIFT_F"],description:(0,Ft.__)("Focus the properties search box and toggle the option to search advanced settings (element properties panel only)."),availableIn:["breakdance"]},{shortcut:["CMD_I"],description:(0,Ft.__)("Toggle the modified option in the properties search box."),availableIn:["breakdance"]},{shortcut:["OPTION_P"],description:(0,Ft.__)("Toggle the preview mode."),availableIn:["breakdance","oxygen"]}]}get builderMode(){return c.configStore.builderMode||"breakdance"}get filteredShortcuts(){return this.shortcuts.filter((e=>e.availableIn.includes(this.builderMode))).map((e=>{const t=e.shortcut.map(this.getKeyboardShortcutValue).join("
");return{...e,shortcut:t}}))}getKeyboardShortcutValue(e){const t=je.r[e],n=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);let s=t?t[0]:"";return n||2!=t.length||(s=t[1]),s.toUpperCase().split("+").join(" + ")}};(0,r.gn)([(0,l.fI)()],im.prototype,"open",void 0),im=(0,r.gn)([(0,l.wA)({components:{}})],im);const om=im,am=om;var rm=(0,N.Z)(am,nm,sm,!1,null,null,null);const lm=rm.exports;var cm=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio",style:e.styles},[t("ElementStudioWidthAdjustmentBar",{on:{change:e.adjustWidth}}),t("div",{staticClass:"element-studio-wrapper",attrs:{"data-test-id":"element-studio-wrapper"}},[e.activeItemType&&"element"!==e.activeItemType?e._e():t("ElementStudioElements",{attrs:{value:e.data,width:e.width},on:{input:e.updateData,width:e.updateWidth,active:e.updateActiveItemType}}),e.activeItemType&&"macro"!==e.activeItemType?e._e():t("ElementStudioMacros",{attrs:{value:e.data},on:{input:e.updateData,active:e.updateActiveItemType}}),e.activeItemType&&"preset"!==e.activeItemType?e._e():t("ElementStudioPresets",{attrs:{value:e.data},on:{input:e.updateData,active:e.updateActiveItemType}}),e.activeItemType?e._e():t("div",{staticClass:"d-flex flex-column align-center justify-center pa-6"},[t("h4",[e._v(e._s(e.__("Element Studio is for developers and is provided as-is.")))]),t("p",[t("small",[e._v(" "+e._s(e.__("No support is provided. Please read the"))+" "),t("a",{attrs:{href:e.$bdox("docs_link_element_studio"),target:"_blank"}},[e._v(e._s(e.__("documentation")))]),e._v(" "+e._s(e.__("before use."))+" ")])])])],1)],1)},dm=[],um=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ElementStudioWidthAdjustmentBarAdjustmentHandle",{staticClass:"element-studio-width-adjustment-bar",attrs:{"on-dragging":e.dragging}})},pm=[],hm=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g(e._b({staticClass:"breakdance-element-studio-adjustment-handle",on:{mousedown:e.dragStart}},"div",e.$attrs,!1),e.$listeners),[e._t("default")],2)},gm=[];let mm=class extends s.ZP{constructor(){super(...arguments),this.lastMouseX=0}draggingFunc(e){e.preventDefault(),this.onDragging(e,this.lastMouseX),this.lastMouseX=e.clientX}dragStart(e){e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",this.draggingFunc),document.addEventListener("mouseup",this.dragEnd),this.lastMouseX=e.clientX,document.getElementById("iframe").style.pointerEvents="none"}dragEnd(e){e.preventDefault(),document.removeEventListener("mousemove",this.draggingFunc),document.removeEventListener("mouseup",this.dragEnd),document.getElementById("iframe").style.pointerEvents="auto"}};(0,r.gn)([(0,l.fI)()],mm.prototype,"onDragging",void 0),mm=(0,r.gn)([(0,l.wA)({})],mm);const vm=mm,ym=vm;var fm=(0,N.Z)(ym,hm,gm,!1,null,null,null);const _m=fm.exports;let bm=class extends s.ZP{dragging(e,t){this.$emit("change",-1*(e.clientX-t))}};bm=(0,r.gn)([(0,l.wA)({components:{ElementStudioWidthAdjustmentBarAdjustmentHandle:_m}})],bm);const Sm=bm,Cm=Sm;var xm=(0,N.Z)(Cm,um,pm,!1,null,null,null);const wm=xm.exports;var Im=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"element-studio-wrapper":e.currentlyEditingElement}},[t("ElementStudioTopbar",{attrs:{"save-locations":e.value.saveLocations,"items-slug":e.elementsSlug,value:e.currentlyEditingElement,itemType:"element","item-name":e.currentlyEditingElement?e.currentlyEditingElement.element.name:"",hasUnsavedChanges:e.hasUnsavedChanges,saveInProgress:e.saveInProgress},on:{open:e.openElement,switchMode:e.switchMode,delete:e.deleteElement,saveOverride:e.saveOverride,saveAs:e.saveAs,saveNew:e.saveNewItem,discardChanges:e.discardChanges,reset:e.resetCurrentlyEditingElement}}),e.currentlyEditingElement?t("div",{staticClass:"element-studio-content"},["split-vertical"===e.mode?[t("div",{staticClass:"panel-50 panel-50-top-panel vscroll-scroll"},[t("ElementStudioTabsAndPanels",{attrs:{available:e.value,element:e.currentlyEditingElement.element},on:{input:e.updateElement,update:e.updateData}})],1),t("div",{staticClass:"panel-50 vscroll-scroll"},[t("ElementStudioTabsAndPanels",{attrs:{available:e.value,element:e.currentlyEditingElement.element,type:"secondary"},on:{input:e.updateElement,update:e.updateData}})],1)]:"split-horizontal"===e.mode?[t("div",{staticClass:"d-flex flex-row",staticStyle:{height:"100%"}},[t("div",{staticClass:"panel-50-h panel-50-h-first-panel vscroll-scroll"},[t("ElementStudioTabsAndPanels",{attrs:{available:e.value,element:e.currentlyEditingElement.element},on:{input:e.updateElement,update:e.updateData}})],1),t("div",{staticClass:"panel-50-h vscroll-scroll"},[t("ElementStudioTabsAndPanels",{attrs:{available:e.value,element:e.currentlyEditingElement.element,type:"secondary"},on:{input:e.updateElement,update:e.updateData}})],1)])]:[t("div",{staticClass:"panel-100 vscroll-scroll"},[t("ElementStudioTabsAndPanels",{attrs:{available:e.value,element:e.currentlyEditingElement.element},on:{input:e.updateElement,update:e.updateData}})],1)]],2):e._e()],1)},Pm=[],km=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-top-bar d-flex"},[e.showNewItemDialog?t("ElementStudioSaveNewDialog",{attrs:{"save-locations":e.saveLocations,"item-type":e.itemType},on:{input:e.saveNewItem,close:function(t){e.showNewItemDialog=!1}}}):e._e(),t("div",{staticClass:"d-flex ml-4"},[e.value?e._e():[t("Dropdown",{attrs:{"offset-y":"","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t(Qo.Z,e._g(e._b({attrs:{text:"",disabled:0===e.itemsSlug.length,"data-test-id":"element-studio-open-element"}},"v-btn",s,!1),n),[t("Icon",{staticClass:"mr-2",attrs:{icon:"OpenFolderIcon",size:"18"}}),e._v(" "+e._s(e.sprintf(e._xdoc("Open %s","Element Studio Item Type","Element Studio. %s: Item type (element, macro, preset)"),e.itemType))+" ")],1)]}}],null,!1,1479620286)},[t(Ec.Z,{staticStyle:{"max-height":"500px",overflow:"auto"}},[t(ed.Z,{staticClass:"breakdance-element-studio-searchbar",staticStyle:{padding:"12px 16px","margin-bottom":"24px"},attrs:{label:e.sprintf(e._doc("Search %ss","Element Studio. %s: Item type (element, macro, preset)"),e.itemType),flat:"",autofocus:""},model:{value:e.availableItemsSearch,callback:function(t){e.availableItemsSearch=t},expression:"availableItemsSearch"}}),e._l(e.availableItemsBySearch,(function(n,s){return t(Tc.Z,{key:s,attrs:{dense:""},on:{click:function(t){return e.openItem(n)}}},[t(Dc.V9,[e._v(" "+e._s(n)+" ")])],1)}))],2)],1),t(Qo.Z,{staticClass:"ml-2",attrs:{text:"","data-test-id":"element-studio-new-element-button"},on:{click:e.handleNewItem}},[t("Icon",{staticClass:"mr-2",attrs:{icon:"AddFileIcon"}}),e._v(" "+e._s(e.sprintf(e._xdoc("New %s","Element Studio","Element Studio. %s: Item type (element, macro, preset)"),e.itemType))+" ")],1)],e.value?[t("div",{staticClass:"d-flex align-center flex-wrap"},[t("div",{staticClass:"mr-2 element-studio-element-name"},[e._v(" "+e._s(e.itemName)+" ")]),t("Dropdown",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",[e.value.directoryPath&&e.canSaveOrIsAdvancedUser?t("NiceButton",e._b({staticClass:"ma-2",attrs:{loading:e.saveInProgress,"data-test-id":"element-studio-save-button",title:e.__("Save element"),"left-icon":"SaveIcon"},on:{contextmenu:function(e){return e.preventDefault(),n.click.apply(null,arguments)},click:function(t){e.saveOverwrite(!1)}}},"NiceButton",s,!1),[e._v(" "+e._s(e.__("Save"))+" ")]):!e.value.directoryPath||e.value.onlyForAdvancedUsers?t("NiceButton",e._g(e._b({staticClass:"ma-2",attrs:{loading:e.saveInProgress,"data-test-id":"element-studio-save-button",title:e.__("Save element"),"left-icon":"SaveIcon"},on:{contextmenu:function(e){return e.preventDefault(),n.click.apply(null,arguments)}}},"NiceButton",s,!1),n),[e._v(" "+e._s(e.__("Save"))+" ")]):e._e()],1)]}}],null,!1,1066801973)},[t(Ec.Z,[e.value.directoryPath?[e.showAdvancedFeatures?t(Tc.Z,{attrs:{dense:""},on:{click:function(t){return e.saveOverwrite(!0)}}},[t(Dc.V9,[t("h3",[e._v(e._s(e.__("Save & Bypass Psalm...")))])])],1):e.canSaveOrIsAdvancedUser?t(Tc.Z,{attrs:{dense:""},on:{click:function(t){return e.saveOverwrite(!0)}}},[t(Dc.V9,[t("h3",[e._v(e._s(e.__("Save")))])])],1):e._e()]:e._e(),t(Tc.Z,{attrs:{dense:""}},[t(Dc.V9,[e.availableSaveLocations.length?t("h3",[e._v(" "+e._s(e.__("Save A Copy In:"))+" ")]):t("div",[e._v(" Enable saving elements by "),t("a",{attrs:{href:"https://github.com/soflyy/breakdance-custom-elements/",target:"_blank"}},[e._v("adding a save location.")])])])],1),e._l(e.availableSaveLocations,(function(n,s){return[t(Tc.Z,{key:s,attrs:{dense:""},on:{click:function(t){return e.saveAs(n)}}},[t(Dc.V9,[e._v(" "+e._s(n.label)+" » ")])],1)]}))],2)],1),e.canDeleteElement?t(Ha.Z,{attrs:{"max-width":"360"},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("NiceButton",e._g(e._b({staticClass:"mr-2",attrs:{elevation:"0","data-test-id":"element-studio-delete-button",title:"Delete element","left-icon":"TrashIcon"}},"NiceButton",s,!1),n),[e._v(" "+e._s(e.__("Delete"))+" ")])]}}],null,!1,3006448231),model:{value:e.deleteDialog,callback:function(t){e.deleteDialog=t},expression:"deleteDialog"}},[t(Jc.Z,[t(yd.EB,{staticClass:"subtitle-1"},[e._v(' Delete "'+e._s(e.itemName)+'" '+e._s(e.itemType)+"? ")]),t(yd.ZB,[e._v(e._s(e.__("This action cannot be undone.")))]),t(yd.h7,[t(vc.Z),t(Qo.Z,{attrs:{text:""},on:{click:function(t){e.deleteDialog=!1}}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(Qo.Z,{attrs:{color:"red darken-1",text:""},on:{click:e.deleteItem}},[e._v(" "+e._s(e.__("Delete"))+" ")])],1)],1)],1):e._e(),t(Qo.Z,{attrs:{icon:"","data-test-id":"element-studio-close-element",title:e.sprintf(e.__("Close %s"),e.itemType)},on:{click:e.closeItem}},[t("Icon",{attrs:{icon:"CloseSquareIcon"}})],1)],1)]:e._e()],2),t(vc.Z),e.value?t(Qo.Z,{staticClass:"mr-1 element-studio-switch-mode",attrs:{icon:"",title:e.__("Switch mode"),"data-test-id":"element-studio-topbar-switch-mode"},on:{click:e.switchMode}},[t("Icon",{attrs:{icon:"TableColumnIcon",size:"18"}})],1):e._e(),t(Qo.Z,{staticClass:"mr-4 element-studio-close-panel",attrs:{icon:"",title:e.__("Close Element Studio Panel")},on:{click:e.closePanel}},[t("Icon",{attrs:{icon:"CloseCircleIcon",size:"18"}})],1),t(Ha.Z,{attrs:{value:e.closeItemOrPanelDialog,persistent:"","max-width":"400"}},[t(Jc.Z,[t(yd.EB,{staticClass:"headline"},[e._v(" "+e._s(e.__("You have unsaved changes"))+" ")]),t(yd.ZB,[e._v(" "+e._s(e.sprintf(e._doc("Please save your changes before closing this %s, or discard your changes.","%s: Item type (element, macro, preset)"),e.itemType))+" ")]),t(yd.h7,[t(vc.Z),t(Qo.Z,{attrs:{color:"red darken-1",text:""},on:{click:e.discardChanges}},[e._v(" "+e._s(e.__("Discard my changes"))+" ")]),t(Qo.Z,{attrs:{color:"blue darken-1",text:""},on:{click:function(t){e.closeItemOrPanelDialog=!1}}},[e._v(" "+e._s(e.__("I'll save them"))+" ")])],1)],1)],1)],1)},Em=[],Tm=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Ha.Z,{attrs:{value:!0,"max-width":"400",persistent:""}},[t(Jc.Z,[t(yd.EB,{staticClass:"headline"},[e._v(e._s(e.sprintf(e._doc("Create new %s","%s: Item type (element, macro, preset)"),e.itemType)))]),t(yd.ZB,{staticClass:"pb-1"},[t("div",[e._v(" "+e._s(e.sprintf(e._doc("Please enter the %s's name.","%s: Item type (element, macro, preset)"),e.itemType))+" ")])]),t(yd.ZB,[t(ed.Z,{attrs:{rules:[e.nameIsValid],label:e.__("Name")},model:{value:e.newItemName,callback:function(t){e.newItemName=t},expression:"newItemName"}}),e.saveLocations.length?t(eg.Z,{attrs:{mandatory:""},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(e._s(e.__("Select a saving location")))]},proxy:!0}]),model:{value:e.newItemSaveLocation,callback:function(t){e.newItemSaveLocation=t},expression:"newItemSaveLocation"}},[e._l(e.saveLocations,(function(n){return[e.showSaveLocation(n)?t(Jh.Z,{key:n.directoryPath,attrs:{label:n.label,value:n}}):e._e()]}))],2):[t("b",{domProps:{innerHTML:e._s(e.noSaveLocationMessage)}})]],2),t(yd.h7,[t(vc.Z),t(Qo.Z,{attrs:{color:"green darken-1",text:""},on:{click:e.closeNewItemDialog}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(Qo.Z,{attrs:{color:"blue darken-1",text:"",disabled:!0!==e.nameIsValid(e.newItemName)||!e.newItemSaveLocation},on:{click:e.saveNewItem}},[e._v(" "+e._s(e.__("Create"))+" ")])],1)],1)],1)},Dm=[],Am=n(91362);let Zm=class extends s.ZP{constructor(){super(...arguments),this.newItemDialog=!1,this.newItemName="",this.newItemSaveLocation=!1}nameIsValid(e){return(0,Am.nQ)(e)}get showAdvancedFeatures(){return(0,zg.y)()||Q.PK.isElementStudioPowerUser}escapeHtml(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}get customElementsLink(){const e=this.escapeHtml((0,Ft.__)("Custom Elements"));return`${e}`}get noSaveLocationMessage(){return(0,Ft.gB)((0,Ft.__)("Error: no registered saving locations. Using the %s plugin will automatically register a saving location."),this.customElementsLink)}showSaveLocation(e){return e.type===this.itemType&&(!e.onlyForAdvancedUsers||this.showAdvancedFeatures)}saveNewItem(){this.$emit("input",{...this.newItemSaveLocation,name:this.newItemName}),this.closeNewItemDialog()}closeNewItemDialog(){this.newItemDialog=!1,this.newItemName="",this.newItemSaveLocation=!1,this.$emit("close")}};(0,r.gn)([(0,l.fI)()],Zm.prototype,"saveLocations",void 0),(0,r.gn)([(0,l.fI)()],Zm.prototype,"itemType",void 0),Zm=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],Zm);const Om=Zm,Mm=Om;var Bm=(0,N.Z)(Mm,Tm,Dm,!1,null,null,null);const Lm=Bm.exports;let Nm=class extends s.ZP{constructor(){super(...arguments),this.deleteDialog=!1,this.availableItemsSearch="",this.closeItemOrPanelDialog=!1,this.showNewItemDialog=!1}mounted(){document.addEventListener("breakdanceSaveButtonClicked",this.mainAppSaveButtonClicked),this.warnIfUnsavedFunction=(0,Sc.$)((()=>this.hasUnsavedChanges))}destroyed(){document.removeEventListener("breakdanceSaveButtonClicked",this.mainAppSaveButtonClicked)}beforeDestroy(){(0,Sc.e)(this.warnIfUnsavedFunction)}handleNewItem(){this.showNewItemDialog=!0}get availableSaveLocations(){return this.saveLocations.filter((e=>this.showSaveLocation(e)))}get availableItemsBySearch(){return this.itemsSlug.filter((e=>e.toLowerCase().includes(this.availableItemsSearch.toLowerCase().replace(/ /g,""))))}get canDeleteElement(){return!!this.value&&this.availableSaveLocations.find((e=>this.value&&this.value.directoryPath&&this.value.directoryPath.startsWith(e.directoryPath)))}discardChanges(){"panel"===this.closeItemOrPanelDialog&&c.uiStore.toggleElementStudio(),this.closeItemOrPanelDialog=!1,this.$emit("discardChanges")}mainAppSaveButtonClicked(){this.hasUnsavedChanges&&confirm(`Also save your Element Studio ${this.itemType}?`)&&this.saveOverwrite(!1)}openItem(e){this.availableItemsSearch="",this.$emit("open",e)}closeItem(){this.hasUnsavedChanges?this.closeItemOrPanelDialog="item":this.$emit("reset")}closePanel(){this.hasUnsavedChanges?this.closeItemOrPanelDialog="panel":c.uiStore.toggleElementStudio()}saveNewItem(e){this.$emit("saveNew",e)}saveAs(e){this.$emit("saveAs",e)}saveOverwrite(e){this.value&&this.value.directoryPath&&this.canSaveOrIsAdvancedUser&&this.$emit("saveOverride",e)}showSaveLocation(e){return e.type===this.itemType&&(!e.onlyForAdvancedUsers||this.showAdvancedFeatures)}get showAdvancedFeatures(){return(0,zg.y)()||c.configStore.isElementStudioPowerUser}get canSaveOrIsAdvancedUser(){return this.value&&(!this.value.onlyForAdvancedUsers||this.showAdvancedFeatures)}deleteItem(){this.deleteDialog=!1,this.$emit("delete")}switchMode(){this.$emit("switchMode")}};(0,r.gn)([(0,l.fI)()],Nm.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],Nm.prototype,"saveLocations",void 0),(0,r.gn)([(0,l.fI)()],Nm.prototype,"hasUnsavedChanges",void 0),(0,r.gn)([(0,l.fI)()],Nm.prototype,"itemType",void 0),(0,r.gn)([(0,l.fI)()],Nm.prototype,"itemName",void 0),(0,r.gn)([(0,l.fI)()],Nm.prototype,"saveInProgress",void 0),(0,r.gn)([(0,l.fI)()],Nm.prototype,"itemsSlug",void 0),Nm=(0,r.gn)([(0,l.wA)({components:{ElementStudioSaveNewDialog:Lm,NiceButton:Br.Z,Icon:He.Z,Dropdown:Oc.Z}})],Nm);const Fm=Nm,Rm=Fm;var Vm=(0,N.Z)(Rm,km,Em,!1,null,null,null);const $m=Vm.exports;var Wm=n(1387),Um=n(46072),zm=n(197),Hm=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-tabs-panel d-flex flex-column",staticStyle:{height:"100%"}},[e.showNewMacroDialog?t("ElementStudioSaveNewDialog",{attrs:{"save-locations":e.available.saveLocations,"item-type":"macro"},on:{input:e.saveNewMacro,close:function(t){e.showNewMacroDialog=!1}}}):e._e(),t("Dropdown",{attrs:{value:!!e.contextMenu,absolute:!0,"position-x":e.contextMenu.x,"position-y":e.contextMenu.y,transition:!1},on:{input:function(t){e.contextMenu=!1}},scopedSlots:e._u([{key:"activator",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)},[t(Ec.Z,{attrs:{dense:""}},[t(Tc.Z,{attrs:{link:!0},nativeOn:{click:function(t){return e.handleCreateMacro.apply(null,arguments)}}},[t(Dc.V9,[e._v(e._s(e.__("Make into a macro")))])],1)],1)],1),t("div",{staticClass:"element-studio-tabs"},[t(Qp.Z,{attrs:{value:e.tab},on:{change:e.updateTab}},[t(Yp.Z,{attrs:{href:"#content",title:e.__("Content"),"data-test-id":"element-studio-content-tab"}},[t("Icon",{attrs:{icon:"PenIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#design",title:e.__("Design"),"data-test-id":"element-studio-design-tab"}},[t("Icon",{attrs:{icon:"PaletteIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#html",title:e.__("HTML"),"data-test-id":"element-studio-html-tab"}},[t("Icon",{attrs:{icon:"CodeIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#css",title:e.__("CSS"),"data-test-id":"element-studio-css-tab"}},[t("Icon",{attrs:{icon:"Css3Icon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#defaultCss",title:e.__("Default CSS"),"data-test-id":"element-studio-default-css-tab"}},[t("Icon",{attrs:{icon:"CssIcon",size:"16"}})],1),e.nestingRuleTypeIsContainer?t(Yp.Z,{attrs:{href:"#default-elements",title:e.__("Default Elements"),"data-test-id":"element-studio-default-elements"}},[t("Icon",{attrs:{icon:"BoxIcon",size:"16"}})],1):e._e(),t(Yp.Z,{attrs:{href:"#attributes",title:e.__("HTML Attributes"),"data-test-id":"element-studio-attributes"}},[t("Icon",{attrs:{icon:"AttributesIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#prop-paths",title:e.__("Property Paths"),"data-test-id":"element-studio-property-paths"}},[t("Icon",{attrs:{icon:"SlidersSimpleIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#dependencies",title:e.__("Dependencies"),"data-test-id":"element-studio-dependencies-tab"}},[t("Icon",{attrs:{icon:"DownloadFileIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#actions",title:e.__("Actions"),"data-test-id":"element-studio-actions-tab"}},[t("Icon",{attrs:{icon:"ActionsIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#settings",title:e.__("Settings"),"data-test-id":"element-studio-settings-tab"}},[t("Icon",{attrs:{icon:"CogsIcon",size:"16"}})],1)],1)],1),t("div",{staticClass:"element-studio-tabs-items vscroll-scroll"},["settings"===e.tab?t("div",[t(Tc.Z,{attrs:{"two-line":""}},[t(Dc.km,[t(Dc.V9,{staticClass:"font-weight-bold"},[e._v(e._s(e.__("Slug")))]),t(Dc.oZ,[e._v(" "+e._s(e.element.slug))])],1)],1),t("div",{staticClass:"px-4 pt-2"},[t("div",{staticClass:"d-flex align-center"},[t(ed.Z,{attrs:{label:e.__("Name"),value:e.element.name,"data-test-id":"element-studio-name-input",rules:[e.isValidItemName]},on:{input:e.updateElementName}}),e.nameHasChanged?t(Qo.Z,{staticClass:"ml-3",attrs:{outlined:"",small:""},on:{click:e.updateSlug}},[e._v(" "+e._s(e.__("Update slug"))+" ")]):e._e()],1),t(ed.Z,{staticClass:"mb-4",attrs:{label:e.__("Class Name"),placeholder:e.__("the_best_class"),value:e.element.className||"","data-test-id":"element-studio-classname-input","persistent-hint":"",hint:e.__("Updating the Class Name will make the previous class obsolete. You'll need to update your CSS"),rules:[e.htmlClassNameRule]},on:{input:e.updateClassName}}),t(tg.Z,{attrs:{items:e.elementCategories,label:e.__("Category"),value:e.cleanElement.category},on:{input:function(t){return e.updateElementValue("category",t)}}}),t("div",{staticClass:"breakdance-element-studio-element-badges"},[t(Wm.Z,{attrs:{clearable:"",items:e.badgeColors,value:!!e.cleanElement.badge&&e.cleanElement.badge.backgroundColor,label:e.__("Badge Background")},on:{input:function(t){return e.updateElementValue("badge.backgroundColor",t)}}}),t(Wm.Z,{attrs:{clearable:"",items:e.badgeColors,value:!!e.cleanElement.badge&&e.cleanElement.badge.textColor,label:e.__("Badge Text")},on:{input:function(t){return e.updateElementValue("badge.textColor",t)}}}),t(ed.Z,{attrs:{label:e.__("Badge Label"),value:!!e.cleanElement.badge&&e.cleanElement.badge.label},on:{input:function(t){return e.updateElementValue("badge.label",t)}}}),t(Qo.Z,{attrs:{outlined:"",small:""},on:{click:function(t){return e.updateElementValue("badge",!1)}}},[e._v(e._s(e.__("Clear Badge")))])],1),t("h3",[e._v(e._s(e.__("HTML Tag options")))]),t("div",{staticClass:"breakdance-element-studio__html-tags"},[t(Wm.Z,{attrs:{label:e.__("Default Tag"),value:e.cleanElement.htmlTag.default,hint:e.__("Tag of the root element"),clearable:"",items:e.defaultTag},on:{input:function(t){return e.updateElementValue("htmlTag.default",t)}}}),t(Wm.Z,{attrs:{label:e.__("Tag Options"),value:e.cleanElement.htmlTag.options,items:e.htmlTags,multiple:!0,clearable:""},on:{input:function(t){return e.updateElementValue("htmlTag.options",t)}}}),t(Wm.Z,{attrs:{label:e.__("Get the Tag from a Control's path"),value:e.cleanElement.htmlTag.pathToControl||"",items:e.pathsToAllControls,hint:e.__("This will disable the 'Settings -> Html -> Tag' control"),clearable:""},on:{input:function(t){return e.updateElementValue("htmlTag.pathToControl",t)}}})],1),t("h3",[e._v(e._s(e.__("UI Icon")))]),t("div",{staticClass:"mb-5 d-flex align-center"},[e.showAdvancedFeatures?[t("ToggleInput",{attrs:{value:e.useLocalIcon},on:{input:e.updateUseLocalIcon}}),t("span",{staticClass:"mr-4"},[e._v(e._s(e.__("Local")))])]:e._e(),t("div",{staticClass:"d-flex align-center"},[t("ElementIcon",{staticClass:"mr-2",attrs:{icon:e.cleanElement.uiIcon||"SquareIcon",size:"16"}}),e.useLocalIcon&&e.showAdvancedFeatures?t("ElementStudioIconsAutocomplete",{attrs:{value:e.cleanElement.uiIcon||"SquareIcon"},on:{input:e.updateUiIcon}}):t(ed.Z,{attrs:{label:e.__("SVG code for icon"),value:e.cleanElement.uiIcon,"data-test-id":"element-studio-ui-icon-input"},on:{input:e.updateUiIcon}})],1)],2),t(ed.Z,{attrs:{label:e.__("UI Order (number)"),value:e.cleanElement.order},on:{input:e.updateUiOrder}}),t("h3",[e._v(e._s(e.__("Nesting rules")))]),t(Wm.Z,{attrs:{items:e.containerRestrictedElements,label:e.__("Element to be a direct child of"),hint:e.__("This element will only be allowed as a direct child of the selected elements"),"persistent-hint":"",value:e.cleanElement.nestingRule.restrictedToBeADirectChildOf,multiple:""},on:{input:function(t){e.updateElementValue("nestingRule.restrictedToBeADirectChildOf",Array.isArray(t)&&0===t.length?void 0:t)}}}),t(Wm.Z,{staticClass:"mt-4",attrs:{items:e.elementsThisElementIsAllowedToBeInsideOf,label:e.__("Element to be a descendant of"),hint:e.__("This element will only be allowed inside the selected elements"),"persistent-hint":"",value:e.cleanElement.nestingRule.restrictedToBeADescendantOf,multiple:""},on:{input:function(t){e.updateElementValue("nestingRule.restrictedToBeADescendantOf",Array.isArray(t)&&0===t.length?void 0:t)}}}),t(Wm.Z,{staticClass:"mt-4",attrs:{items:e.allElementSlugs,label:e.__("Disallow if others are present"),hint:e.__("This element will not be allowed on a page if one of the following elements is already present on the page"),"persistent-hint":"",value:e.cleanElement.nestingRule.notAllowedWhenNodeTypeIsPresentInTree,multiple:""},on:{input:function(t){e.updateElementValue("nestingRule.notAllowedWhenNodeTypeIsPresentInTree",Array.isArray(t)&&0===t.length?void 0:t)}}}),t(Um.Z,{attrs:{label:e.__("Inline Editable"),hint:e.__("This element contains a Global Block that can be edited inline. Requires a Global Block Chooser control to be present."),"persistent-hint":"","input-value":e.cleanElement.nestingRule.inlineEditable},on:{change:function(t){return e.updateElementValue("nestingRule.inlineEditable",!!t)}}}),t(Wm.Z,{staticClass:"mt-4",attrs:{items:e.pathsToAllControls,label:e.__("Inline Editable Block Path"),value:e.cleanElement.nestingRule.inlineEditableBlockPath},on:{input:function(t){return e.updateElementValue("nestingRule.inlineEditableBlockPath",t)}}}),t("h3",[e._v(e._s(e.__("Misc options")))]),t(tg.Z,{attrs:{items:e.elementType,label:e.__("Element Type"),value:e.cleanElement.nestingRule.type,hint:e.__("Only change to create complex elements"),"persistent-hint":""},on:{input:function(t){return e.updateElementValue("nestingRule.type",t)}}}),t(zm.Z,{staticClass:"mt-3",attrs:{label:e.__("Required plugins"),items:e.requiredPluginItems,"hide-details":"",value:e.cleanElement.settings?e.cleanElement.settings.requiredPlugins:[],multiple:!0},on:{input:function(t){return e.updateElementValue("settings.requiredPlugins",t&&t.length?t:void 0)}}}),t(Um.Z,{attrs:{label:e.__("Is Pro Only"),"input-value":e.cleanElement.settings&&e.cleanElement.settings.proOnly,"hide-details":""},on:{change:function(t){return e.updateElementValue("settings.proOnly",!!t)}}}),t(Um.Z,{attrs:{label:e.__("Element depends on global scripts to work"),"input-value":e.cleanElement.settings&&e.cleanElement.settings.dependsOnGlobalScripts,"hide-details":""},on:{change:function(t){return e.updateElementValue("settings.dependsOnGlobalScripts",!!t)}}}),t(Um.Z,{attrs:{label:e.__("Experimental Element?"),"input-value":e.cleanElement.experimental,"hide-details":""},on:{change:function(t){return e.updateElementValue("experimental",!!t)}}}),t(Um.Z,{attrs:{label:e.__("Bypass Pointer Events"),hint:e.__("Use this if clicking on the element doesn't active it, but instead clicks something inside of it"),"persistent-hint":"","input-value":e.cleanElement.settings&&e.cleanElement.settings.bypassPointerEvents},on:{change:function(t){return e.updateElementValue("settings.bypassPointerEvents",!!t)}}}),t(Um.Z,{attrs:{label:e.__("Disable AI"),hint:e.__("Use this if you want to disable the AI for this element"),"persistent-hint":"","input-value":e.cleanElement.settings&&e.cleanElement.settings.disableAI},on:{change:function(t){return e.updateElementValue("settings.disableAI",!!t)}}}),t(Um.Z,{attrs:{label:e.__("Share props with SSR children"),hint:e.__("Use this if you need to access the properties data from this element in a child SSR element."),"persistent-hint":"","input-value":e.cleanElement.settings&&e.cleanElement.settings.sharePropsWithSSRChildren},on:{change:function(t){return e.updateElementValue("settings.shareStateWithChildSSR",!!t)}}}),t(Um.Z,{attrs:{label:e.__("Disable Wrapper HTML Tag (frontend-only)"),hint:e.__("Note: This breaks JavaScript functionality that relies on the tag being present (Ex: %%SELECTOR%%)"),"persistent-hint":"","input-value":e.cleanElement.settings&&e.cleanElement.settings.disableWrapperHtmlTag},on:{change:function(t){return e.updateElementValue("settings.disableRootHtmlTag",!!t)}}}),t(Um.Z,{attrs:{label:e.__("Builder Only"),hint:e.__("Use this if the element should only be visible in the builder"),"persistent-hint":"","input-value":e.cleanElement.settings&&e.cleanElement.settings.builderOnly},on:{change:function(t){return e.updateElementValue("settings.builderOnly",!!t)}}}),t("div",{staticClass:"pt-4"},[t("h3",[e._v(e._s(e.__("Add panel rules")))]),t(Um.Z,{attrs:{label:e.__("Always hide element from the Add Panel"),"input-value":e.cleanElement.addPanelRules&&e.cleanElement.addPanelRules.alwaysHide,"hide-details":""},on:{change:function(t){return e.updateElementValue("addPanelRules.alwaysHide",!!t)}}}),e.cleanElement.addPanelRules&&e.cleanElement.addPanelRules.alwaysHide?e._e():[t(zm.Z,{attrs:{label:e.__("Allowed post type"),items:["breakdance_template"],"hide-details":"",value:e.cleanElement.addPanelRules?e.cleanElement.addPanelRules.allowedPostTypes:[],multiple:!0},on:{input:function(t){return e.updateElementValue("addPanelRules.allowedPostTypes",t&&t.length?t:void 0)}}})]],2),t("ElementStudioDefaultProperties",{staticClass:"my-8",attrs:{elementSlug:e.cleanElement.slug,value:e.cleanElement.defaultProperties},on:{input:function(t){return e.updateElementValue("defaultProperties",t)}}}),e.showAdvancedFeatures?[t("h3",[e._v(e._s(e.__("Available In")))]),t("div",{staticClass:"breakdance-element-studio__available-in"},[t(Wm.Z,{attrs:{label:e.__("Available In"),value:e.cleanElement.availableIn,items:["breakdance","oxygen"],multiple:!0,clearable:""},on:{input:function(t){return e.updateElementValue("availableIn",t)}}})],1)]:e._e()],2)],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:"design"===e.tab,expression:"tab === 'design'"}]},[t("ElementStudioControls",{attrs:{value:e.cleanElement.controls,section:"design"}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"content"===e.tab,expression:"tab === 'content'"}]},[t("ElementStudioControls",{attrs:{value:e.cleanElement.controls,section:"content"}})],1),"html"===e.tab?t("div",[t("CodeInput",{attrs:{value:e.cleanElement.template,tags:e.tags,"twig-variables":e.pathsToAllControls,language:"twig/html"},on:{input:function(t){return e.updateElementValue("template",t||"")}}})],1):e._e(),"css"===e.tab?t("div",[t("CodeInput",{attrs:{value:e.cleanElement.cssTemplate,tags:e.tags,"twig-variables":e.pathsToAllControls,language:"twig/css"},on:{input:function(t){return e.updateElementValue("cssTemplate",t||"")}}})],1):e._e(),"defaultCss"===e.tab?t("div",[t("div",{staticClass:"px-4 py-2"},[e._v(" "+e._s(e.__("Element's class:"))+" "),t("span",{staticClass:"font-weight-bold mr-2"},[e._v(e._s(e.elementClass))]),t("CopyButton",{attrs:{"value-to-copy":e.elementClassToCopy}})],1),t("CodeInput",{attrs:{value:e.cleanElement.defaultCss,language:"css"},on:{input:function(t){return e.updateElementValue("defaultCss",t||"")}}})],1):e._e(),e.nestingRuleTypeIsContainer?t("div",{directives:[{name:"show",rawName:"v-show",value:"default-elements"===e.tab,expression:"tab === 'default-elements'"}],staticClass:"studio-default-elements-panel"},[t("ElementStudioDefaultElements",{attrs:{value:e.cleanElement.defaultChildren,"parent-element-slug":e.cleanElement.slug},on:{input:function(t){return e.updateElementValue("defaultChildren",t||"")}}})],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:"attributes"===e.tab,expression:"tab === 'attributes'"}],staticClass:"studio-dependencies-panel"},[e._v(" "+e._s(e.__("Attributes are added to the container of the element"))+" "),t("ElementStudioAttributes",{attrs:{value:e.cleanElement.attributes},on:{input:function(t){return e.updateElementValue("attributes",t)}}}),t("br"),e._v(" "+e._s(e.__("Classes are added to the container of the element"))+" "),t("ElementStudioAdditionalClasses",{attrs:{value:e.cleanElement.additionalClasses||[]},on:{input:function(t){return e.updateElementValue("additionalClasses",t)}}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"prop-paths"===e.tab,expression:"tab === 'prop-paths'"}]},[t("ElementStudioManagePropertyPaths",{attrs:{value:e.cleanElement}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"dependencies"===e.tab,expression:"tab === 'dependencies'"}],staticClass:"studio-dependencies-panel"},[t("ElementStudioDependencies",{attrs:{value:e.cleanElement.dependencies}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"actions"===e.tab,expression:"tab === 'actions'"}]},[t("ElementStudioAction",{attrs:{"action-key":"onPropertyChange",value:e.cleanElement.actions,"accordion-state":e.actionsAccordionState},on:{toggle:e.toggleActionAccordion},scopedSlots:e._u([{key:"action-description",fn:function(){return[e._v(" "+e._s(e.__("Runs after one of this element's property changes (a value in a control)"))+" ")]},proxy:!0},{key:"dependency-description-title",fn:function(){return[e._v(" "+e._s(e.__("Based on the control's path."))+" ")]},proxy:!0},{key:"dependency-description",fn:function(){return[t("code",[e._v("design.background.color")]),e._v(": "+e._s(e.__("Action will only run for the specified path."))+" "),t("code",[e._v("design.background.*")]),e._v(": "+e._s(e.__("Action will run for any control below 'background'."))+" ")]},proxy:!0}])}),t("ElementStudioAction",{attrs:{"action-key":"onMovedElement",value:e.cleanElement.actions,"accordion-state":e.actionsAccordionState},on:{toggle:e.toggleActionAccordion},scopedSlots:e._u([{key:"action-description",fn:function(){return[e._v(" "+e._s(e.__("Runs after this element is moved in the canvas."))+" ")]},proxy:!0},{key:"dependency-description-title",fn:function(){return[e._v(" "+e._s(e.__("Based on the element's and moved-on element's type."))+" ")]},proxy:!0},{key:"dependency-description",fn:function(){return[t("code",[e._v("EssentialElements\\Text")]),e._v(": "+e._s(e.__("Action will only run if element being moved is of that type, OR if the element was moved onto an element with that type."))+" ")]},proxy:!0}])}),t("ElementStudioAction",{attrs:{"action-key":"onAfterDeletedElement",value:e.cleanElement.actions,"accordion-state":e.actionsAccordionState},on:{toggle:e.toggleActionAccordion},scopedSlots:e._u([{key:"action-description",fn:function(){return[e._v(" "+e._s(e.__("Runs AFTER this element was deleted"))+" "),t("br")]},proxy:!0},{key:"dependency-description-title",fn:function(){return[e._v(" "+e._s(e.__("Based on the deleted element's parent type."))+" ")]},proxy:!0},{key:"dependency-description",fn:function(){return[t("code",[e._v("EssentialElements\\Section")]),e._v(": "+e._s(e.__("Action will only run if the deleted element was inside a Section element."))+" ")]},proxy:!0}])}),t("ElementStudioAction",{attrs:{"action-key":"onBeforeDeletingElement",value:e.cleanElement.actions,"accordion-state":e.actionsAccordionState,"with-dependencies":!1},on:{toggle:e.toggleActionAccordion},scopedSlots:e._u([{key:"action-description",fn:function(){return[e._v(" "+e._s(e.__("Runs BEFORE this element is deleted"))+" ")]},proxy:!0}])}),t("ElementStudioAction",{attrs:{"action-key":"onMountedElement",value:e.cleanElement.actions,"accordion-state":e.actionsAccordionState,"with-dependencies":!1},on:{toggle:e.toggleActionAccordion},scopedSlots:e._u([{key:"action-description",fn:function(){return[e._v(" "+e._s(e.__("Runs after this element renders in the canvas"))+" ")]},proxy:!0}])}),t("ElementStudioAction",{attrs:{"action-key":"onCreatedElement",value:e.cleanElement.actions,"accordion-state":e.actionsAccordionState,"with-dependencies":!1},on:{toggle:e.toggleActionAccordion},scopedSlots:e._u([{key:"action-description",fn:function(){return[e._v(" "+e._s(e.__("Runs after adding this element to the canvas for the first time"))+" ")]},proxy:!0}])}),t("ElementStudioAction",{attrs:{"action-key":"onActivatedElement",value:e.cleanElement.actions,"accordion-state":e.actionsAccordionState,"with-dependencies":!1},on:{toggle:e.toggleActionAccordion},scopedSlots:e._u([{key:"action-description",fn:function(){return[e._v(" "+e._s(e.__("Runs after the element is activated (selected)"))+" ")]},proxy:!0}])})],1)])],1)},Gm=[],Km=n(63842),jm=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("draggable",{attrs:{value:e.value[this.sectionName]},on:{input:e.handleDrag}},e._l(e.value[this.sectionName],(function(n,s){return t("ControlSectionOrControl",{key:n.slug,attrs:{value:n,index:s,path:`${e.sectionName}[${s}]`,parentPath:e.sectionName,twigParentPath:e.section}})})),1),t("div",{staticClass:"text-center py-4"},[t(Qo.Z,{attrs:{tile:"",text:"","data-test-id":"element-studio-add-control-section"},on:{click:e.addSection}},[e._v(" "+e._s(e.__("Add Control Section"))+" ")]),t(Qo.Z,{attrs:{tile:"",text:""},on:{click:e.addPreset}},[e._v(" "+e._s(e.__("Add Preset"))+" ")]),e.canPaste?t(Qo.Z,{attrs:{tile:"",text:""},on:{click:e.handlePaste}},[e._v(" "+e._s(e.__("Paste"))+" ")]):e._e()],1)],1)},qm=[],Xm=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.showNewPresetDialog?t("ElementStudioSaveNewDialog",{attrs:{"item-type":"preset","save-locations":e.elementStudioData.saveLocations},on:{input:e.saveNewPreset,close:function(t){e.showNewPresetDialog=!1}}}):e._e(),t("div",{class:e.classList},[t("Accordion",{attrs:{expanded:e.accordionState[e.index],disableToggle:e.isPresetSection},on:{toggle:function(t){return e.toggleAccordion(e.index)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex flex-row justify-space-between align-center",attrs:{"data-test-id":"element-studio-control-accordion"}},["section"!==e.value.options.type||e.isPresetSection?t("Dropdown",{attrs:{"offset-y":"","close-on-content-click":!1,"max-width":"400","max-height":"450"},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t(Qo.Z,e._g(e._b({staticClass:"mr-2",attrs:{small:"",icon:"",title:e.__("Open Twig Code Helper")}},"v-btn",s,!1),n),[t("Icon",{attrs:{icon:"BracketsIcon"}})],1)]}}],null,!1,4222967914),model:{value:e.codeHelpOpen,callback:function(t){e.codeHelpOpen=t},expression:"codeHelpOpen"}},[t(Jc.Z,{staticClass:"element-studio-poppy-card",staticStyle:{width:"400px",height:"300px"}},[t("TwigCodeHelper",{key:e.keyToRerenderCodeHelp,attrs:{control:e.value,twigParentPath:e.twigParentPath,inRepeater:e.isParentARepeater},on:{close:function(t){e.codeHelpOpen=!1}}})],1)],1):e._e(),t("input",{staticClass:"element-studio-control-label-input",attrs:{placeholder:e.__("Label")},domProps:{value:e.value.label},on:{click:function(e){e.stopPropagation()},focusout:e.updateLabelAndSlugOnFocusOut}}),e.isPresetSection?t(Wm.Z,{staticClass:"element-studio-control-type-dropdown mr-2",attrs:{value:e.presetSectionSlug,items:e.availablePresetSections,dense:"","hide-details":"","data-test-id":"element-studio-control-type-dropdown"},on:{input:e.updatePresetSectionSlug}}):e._e(),"section"!==e.value.options.type?t(Wm.Z,{staticClass:"element-studio-control-type-dropdown mr-2",attrs:{value:e.value.options.type,items:e.controlTypes,dense:"","hide-details":"","data-test-id":"element-studio-control-type-dropdown"},on:{input:e.updateControlType}}):e._e(),e.isSection?e._e():t("Dropdown",{attrs:{"offset-y":"","close-on-content-click":!1,"max-height":"450"},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t(Qo.Z,e._g(e._b({attrs:{small:"",icon:"",title:e.__("Open options"),"data-test-id":"element-studio-control-open-options"}},"v-btn",s,!1),n),[t("Icon",{attrs:{icon:"SlidersIcon",size:"12"}})],1)]}}],null,!1,3838845841)},[t(Jc.Z,{staticClass:"element-studio-poppy-card",attrs:{"data-test-id":"element-studio-control-options-card"}},[t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Make this control's value available in all breakpoints"),"input-value":!!e.shouldControlValueBeAddedInAllBreakpoints,"hide-details":""},on:{change:e.updatePropertyPathsToWhitelistInFlatProps}}),e.autofocusSupported?t(Fg.Z,{attrs:{label:e.__("Autofocus"),value:e.value.options.autofocus},on:{change:function(t){return e.updateOptions(t,"autofocus")}}}):e._e(),e.hasSsr?t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Make the element SSR when this control's value changes"),"input-value":!!e.shouldControlValueCauseSsr,"hide-details":""},on:{change:e.updatePropertyPathsToSsrElementWhenValueChanges}}):e._e(),"alert_box"===e.value.options.type||"pro_only_alert_box"===e.value.options.type?[t("ElementStudioAlertBoxOptions",{attrs:{value:e.value.options.alertBoxOptions},on:{input:function(t){return e.updateOptions(t,"alertBoxOptions")}}})]:e._e(),"date_picker"===e.value.options.type?[t("h3",{staticClass:"mb-3"},[e._v(e._s(e.__("Date picker options")))]),t("DropdownInput",{attrs:{value:e.value.options.datePickerOptions?Object.keys(e.value.options.datePickerOptions)[0]:"",items:e.datePickerOptions,clearable:""},on:{input:function(t){return e.updateOptions({[t]:t},"datePickerOptions")}}})]:e._e(),"multiselect"===e.value.options.type||"dropdown"===e.value.options.type||"button_bar"===e.value.options.type?[t("ElementStudioDropdownOptions",{attrs:{path:e.path,control:e.value,value:e.value.options.dropdownOptions},on:{input:function(t){return e.updateOptions(t,"dropdownOptions")},updateDropdownItems:e.updateDropdownItems,updateDropdownItem:e.updateDropdownItem}})]:e._e(),"button_bar"===e.value.options.type?[t(Fg.Z,{attrs:{label:e.__("Big Button Bar"),value:e.value.options.buttonBarOptions&&"big"===e.value.options.buttonBarOptions.size&&"default"===e.value.options.buttonBarOptions.layout,"hide-details":""},on:{change:e.updateButtonBarOptionsSize}}),t(Fg.Z,{attrs:{label:e.__("Multiline Bar"),value:e.value.options.buttonBarOptions&&"multiline"===e.value.options.buttonBarOptions.layout&&"small"===e.value.options.buttonBarOptions.size,"hide-details":""},on:{change:e.updateButtonBarOptionsLayout}})]:e._e(),"trigger_action_button"===e.value.options.type?[t("h3",{staticClass:"mb-3"},[e._v(" "+e._s(e.__("Trigger action button options"))+" ")]),t("TextInput",{staticClass:"mr-3 d-inline-block",attrs:{label:e.__("Button Text"),value:e.value.options.triggerActionsButtonOptions&&e.value.options.triggerActionsButtonOptions.text},on:{input:function(t){return e.updateOptions({...e.value.options.triggerActionsButtonOptions,text:t||""},"triggerActionsButtonOptions")}}}),t("ElementStudioIconsAutocomplete",{staticClass:"d-inline-block",attrs:{value:e.value.options.triggerActionsButtonOptions&&e.value.options.triggerActionsButtonOptions.icon},on:{input:function(t){return e.updateOptions({...e.value.options.triggerActionsButtonOptions,icon:t},"triggerActionsButtonOptions")}}})]:e._e(),e.isRepeater?[t("ElementStudioRepeaterOptions",{attrs:{control:e.value,value:e.value.options.repeaterOptions},on:{input:function(t){return e.updateOptions(t,"repeaterOptions")}}})]:e._e(),"unit"===e.value.options.type?[t("ElementStudioUnitOptions",{attrs:{value:e.value.options.unitOptions},on:{input:function(t){return e.updateOptions(t,"unitOptions")}}})]:e._e(),"wpmedia"===e.value.options.type?[t("ElementStudioMediaOptions",{attrs:{value:e.value.options.mediaOptions},on:{input:function(t){return e.updateOptions(t,"mediaOptions")}}})]:e._e(),"video"===e.value.options.type?[t("ElementStudioVideoOptions",{attrs:{value:e.value.options.videoOptions},on:{input:function(t){return e.updateOptions(t,"videoOptions")}}})]:e._e(),"unit"===e.value.options.type||"number"===e.value.options.type||"slider"===e.value.options.type?[t("ElementStudioRangeOptions",{attrs:{value:e.value.options.rangeOptions},on:{input:function(t){return e.updateOptions(t,"rangeOptions")}}})]:e._e(),"shadow"===e.value.options.type?[e._v(" "+e._s(e.__("Shadow Type"))+" "),t(tg.Z,{staticClass:"pt-3",attrs:{dense:"",items:e.shadowTypes,value:e.value.options.shadowOptions&&e.value.options.shadowOptions.type||"box"},on:{input:e.updateShadowType}})]:e._e(),"breakpoint_dropdown"===e.value.options.type?[t("ElementStudioBreakpointOptions",{attrs:{value:e.value.options.breakpointOptions},on:{input:function(t){return e.updateOptions(t,"breakpointOptions")}}})]:e._e(),"text"===e.value.options.type?[t("h3",{staticClass:"mb-2"},[e._v(e._s(e.__("Text")))]),t(Fg.Z,{attrs:{label:e.__("Multiline"),value:e.value.options.textOptions&&e.value.options.textOptions.multiline,"hide-details":""},on:{change:e.updateTextOptionsMultiline}}),t("h3",{staticClass:"mb-2"},[e._v(e._s(e.__("Text Format")))]),t("DropdownInput",{attrs:{value:e.value.options.textOptions&&e.value.options.textOptions.format,items:[{text:e.__("HTML"),value:"html"},{text:e.__("Plain Text"),value:"plain"}]},on:{input:e.updateTextOptionsFormat}})]:e._e(),"focus_point"===e.value.options.type?[t("ElementStudioFocusPointOptions",{attrs:{value:e.value.options.focusPointOptions,control:e.value},on:{input:function(t){return e.updateOptions(t,"focusPointOptions")}}})]:e._e(),"media_size_dropdown"===e.value.options.type?[t("ElementStudioMediaSizeOptions",{attrs:{value:e.value.options.mediaSizeOptions,control:e.value},on:{input:function(t){return e.updateOptions(t,"mediaSizeOptions")}}})]:e._e(),"post_chooser"===e.value.options.type?[t("ElementStudioPostChooserOptions",{attrs:{value:e.value.options.postChooserOptions,control:e.value},on:{input:function(t){return e.updateOptions(t,"postChooserOptions")}}})]:e._e(),"icon"===e.value.options.type?[t("ElementStudioIconOptions",{attrs:{value:e.value.options.iconOptions},on:{input:function(t){return e.updateOptions(t,"iconOptions")}}})]:e._e(),"color"===e.value.options.type?[t("h3",{staticClass:"mb-2"},[e._v(e._s(e.__("Color Type")))]),t("DropdownInput",{attrs:{value:e.value.options.colorOptions&&e.value.options.colorOptions.type||"solidOnly",items:[{text:e.__("Solid Only"),value:"solidOnly"},{text:e.__("Solid and Gradient"),value:"solidAndGradient"},{text:e.__("Gradient Only"),value:"gradientOnly"}]},on:{input:e.updateColorType}})]:e._e(),e.isSection?e._e():[t("h3",[e._v(e._s(e.__("Dynamic Property")))]),t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Enable dynamic property"),"input-value":!!e.value?.dynamic,"hide-details":""},on:{change:e.updateDynamic}}),e.value?.dynamic?[t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Make dynamic data Pro only"),"input-value":e.value.dynamic.proOnly,"hide-details":""},on:{change:function(t){return e.updateDynamic(!0,e.value?.dynamic?.accepts,t)}}}),t("h4",{staticClass:"mb-1"},[e._v(e._s(e.__("Dynamic Property Type")))]),t("DropdownInput",{attrs:{items:e.dynamicPathAcceptsItems,value:e.value?.dynamic?.accepts},on:{input:function(t){return e.updateDynamic(!0,t,e.value?.dynamic?.proOnly)}}})]:e._e()],"add_registered_children"===e.value.options.type?[t("h3",[e._v(" "+e._s(e.__("Registered Children options: add extra elements"))+" ")]),e.availableDescendantElements.length?t("div",{staticClass:"d-flex align-center"},[t(Wm.Z,{staticClass:"element-studio-control-type-dropdown mr-4 mt-2",attrs:{items:e.availableDescendantElements,value:e.value.options.addRegisteredChildrenOptions&&e.value.options.addRegisteredChildrenOptions.addExtraElementsBySlug,dense:"","hide-details":"","data-test-id":"element-studio-control-type-dropdown",multiple:""},on:{input:e.updateAddExtraElementsBySlug}}),t("IconButton",{attrs:{icon:"TrashIcon"},on:{click:function(t){return e.updateAddExtraElementsBySlug([])}}})],1):t("div",[e._v(" "+e._s(e.__("No available extra elements."))+" ")])]:e._e(),"code"===e.value.options.type?[t("h3",[e._v(e._s(e.__("Code input options")))]),t("DropdownInput",{staticClass:"pt-3",attrs:{items:e.codeTypes,value:e.value.options.codeOptions&&e.value.options.codeOptions.language},on:{input:e.updateCodeType}})]:e._e(),"text"===e.value.options.type||"richtext"===e.value.options.type?[t("ElementStudioVariableOptions",{attrs:{path:e.path,control:e.value,value:e.value.options.variableOptions},on:{input:function(t){return e.updateOptions(t,"variableOptions")},updateVariableItems:e.updateVariableItems,updateVariableItem:e.updateVariableItem}})]:e._e(),t("h3",[e._v(e._s(e.__("Misc Options")))]),e.isBreakdanceDevelopmentEnvironment?t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Disable In FutureLayer"),"input-value":e.value.options.disabledInFutureLayer,"hide-details":""},on:{change:e.updateDisabledInFutureLayer}}):e._e(),e.isInContentTab?[t(Um.Z,{attrs:{label:e.__("See content editable code"),"hide-details":""},model:{value:e.showContentEditableCode,callback:function(t){e.showContentEditableCode=t},expression:"showContentEditableCode"}}),e.showContentEditableCode?[t("Copyable",{staticClass:"element-studio-inline-helper-code",attrs:{shouldCopy:!1}},[e._v(" "+e._s(e.contentEditableHelperCode)+" ")])]:e._e()]:e._e(),t("div",[e.isInContentTab?e._e():[t("div",{staticClass:"d-flex flex-row"},[t(Um.Z,{attrs:{disabled:e.canHaveMediaQueries,label:e.__("Enable Media Queries"),"input-value":e.value.enableMediaQueries,"hide-details":""},on:{change:function(t){return e.updateControlBoolean(t,"enableMediaQueries")}}})],1)],t("div",{staticClass:"d-flex flex-row"},[t(Um.Z,{attrs:{label:e.__("Enable Hover"),"input-value":e.value.enableHover,"hide-details":""},on:{change:function(t){return e.updateControlBoolean(t,"enableHover")}}})],1),t("div",{staticClass:"d-flex flex-row"},[t(Um.Z,{attrs:{label:e.__("Enable Variables"),"input-value":e.value.enableVariables,"hide-details":""},on:{change:function(t){return e.updateControlBoolean(t,"enableVariables")}}})],1),t("h3",[e._v(e._s(e.__("Layout")))]),t("DropdownInput",{staticClass:"pt-3",attrs:{items:e.controlLayouts,value:e.value.options.layout},on:{input:e.updateControlLayout}}),"text"===e.value.options.type||"dropdown"===e.value.options.type||"multiselect"===e.value.options.type?[t("h3",[e._v(e._s(e.__("Placeholder")))]),t("TextInput",{attrs:{value:e.value.options.placeholder},on:{input:e.updatePlaceholder}})]:e._e(),t("h3",[e._v(e._s(e.__("Keywords")))]),t("TextInput",{attrs:{value:e.keywordsValue},on:{input:e.updateKeywords}}),t("h3",[e._v(e._s(e.__("Slug")))]),t("input",{staticClass:"breakdance-white-gray-outlined-input breakdance-simple-input breakdance-simple-input--text breakdance-simple-input--base",attrs:{placeholder:e.__("Slug")},domProps:{value:e.value.slug},on:{click:function(e){e.stopPropagation()},focusout:e.updateSlugOnFocusOut}}),t("ElementStudioConditionInput",{attrs:{value:e.value.options.condition},on:{input:e.updateConditions}}),t("ElementStudioHideControlInput",{attrs:{value:e.value.options.hideForElements},on:{input:e.updateHideForElements,remove:e.deleteHideForElements}})],2)],2)],1),e.isSection?t("Dropdown",{attrs:{"offset-y":"","close-on-content-click":!1,"max-height":"450"},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t(Qo.Z,e._g(e._b({attrs:{small:"",icon:"",title:e.__("Open options"),"data-test-id":"element-studio-control-open-options"}},"v-btn",s,!1),n),[t("Icon",{attrs:{icon:"SlidersIcon",size:"12"}})],1)]}}],null,!1,3838845841)},[t(Jc.Z,{staticClass:"element-studio-poppy-card",attrs:{"data-test-id":"element-studio-control-options-card"}},[e.isPresetSection?e._e():t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Make all control values in this section available in all breakpoints"),"input-value":!!e.shouldControlValueBeAddedInAllBreakpoints,"hide-details":""},on:{change:e.updatePropertyPathsToWhitelistInFlatProps}}),e.hasSsr?t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Make the element SSR when any child control value changes"),"input-value":!!e.shouldControlValueCauseSsr,"hide-details":""},on:{change:e.updatePropertyPathsToSsrElementWhenValueChanges}}):e._e(),t("h3",[e._v(e._s(e.__("Section Layout")))]),t(tg.Z,{staticClass:"pt-3",attrs:{dense:"",items:e.sectionLayouts,value:e.value.options.sectionOptions&&e.value.options.sectionOptions.type},on:{input:e.updateSectionLayoutType}}),t("h3",[e._v(e._s(e.__("Slug")))]),t("input",{staticClass:"breakdance-white-gray-outlined-input breakdance-simple-input breakdance-simple-input--text breakdance-simple-input--base",attrs:{placeholder:e.__("Slug")},domProps:{value:e.value.slug},on:{click:function(e){e.stopPropagation()},focusout:e.updateSlugOnFocusOut}}),t("ElementStudioConditionInput",{attrs:{value:e.value.options.condition},on:{input:e.updateConditions}}),t("ElementStudioHideControlInput",{attrs:{value:e.value.options.hideForElements},on:{input:e.updateHideForElements,remove:e.deleteHideForElements}}),e.isBreakdanceDevelopmentEnvironment?t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Disable In FutureLayer"),"input-value":e.value.options.disabledInFutureLayer,"hide-details":""},on:{change:e.updateDisabledInFutureLayer}}):e._e(),e.spacingBarPresetSlug?[t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Enable spacing bars"),"input-value":e.isSpacingBarEnabled(),"hide-details":""},on:{change:e.updateSpacingBar}})]:e._e()],2)],1):e._e(),t(vc.Z),t("Dropdown",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t(Qo.Z,e._g({staticClass:"mr-1",attrs:{icon:"",small:""}},n),[t("Icon",{attrs:{icon:"EllipsisIcon",size:"18"}})],1)]}}])},[t(Ec.Z,[t(Tc.Z,{attrs:{dense:""},on:{click:e.copy}},[t(Dc.V9,[e._v(" "+e._s(e.__("Copy"))+" ")])],1),e.canPaste?t(Tc.Z,{attrs:{dense:""},on:{click:e.handlePaste}},[t(Dc.V9,[e._v(" "+e._s(e.__("Paste As Child"))+" ")])],1):e._e(),e.canReplace?t(Tc.Z,{attrs:{dense:""},on:{click:e.handleReplace}},[t(Dc.V9,[e._v(" "+e._s(e.__("Replace"))+" ")])],1):e._e(),e.isSection?t(Tc.Z,{attrs:{dense:""},on:{click:e.handleMakePreset}},[t(Dc.V9,[e._v(" "+e._s(e.__("Make into a Preset"))+" ")])],1):e._e()],1)],1),t(Qo.Z,{staticClass:"mr-3",attrs:{icon:"",small:""},on:{click:function(t){return t.stopPropagation(),e.deleteControl.apply(null,arguments)}}},[t("Icon",{attrs:{icon:"TrashIcon",size:"12"}})],1)],1)]},proxy:!0},{key:"content",fn:function(){return[t("draggable",{attrs:{value:e.value.children},on:{input:e.handleDrag}},e._l(e.value.children,(function(n,s){return t("ControlSectionOrControl",{key:n.slug,attrs:{value:n,path:`${e.path}.children[${s}]`,index:s,parentPath:e.path,twigParentPath:`${e.twigParentPath}${e.isParentARepeater?`[${s}]`:""}.${e.value.slug}`,parentControl:e.value}})})),1),e.controlAcceptsChildren?t(Qo.Z,{staticClass:"mt-2",attrs:{tile:"",text:"","data-test-id":"element-studio-add-control"},on:{click:e.addControl}},[e._v(" "+e._s(e.__("Add Control"))+" ")]):e._e(),e.controlAcceptsChildren?t(Qo.Z,{staticClass:"mt-2",attrs:{tile:"",text:"","data-test-id":"element-studio-add-preset"},on:{click:e.addPreset}},[e._v(" "+e._s(e.__("Add Preset"))+" ")]):e._e()]},proxy:!0}])})],1)],1)},Ym=[],Qm=n(89754),Jm=n(34680),ev=n.n(Jm),tv=n(16888),nv=n(62485),sv=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"d-flex"},[t(ed.Z,e._b({staticClass:"breakdance-dense-input",attrs:{value:e.value,rules:e.rules,clearable:e.clearable,solo:"",flat:"",dense:"","full-width":"","single-line":"","background-color":"var(--gray150)","data-test-id":e.testId},on:{input:e.edit,blur:function(t){return e.$emit("blur",t)}}},"v-text-field",e.inputOptions,!1))],1)},iv=[];let ov=class extends s.ZP{get isNumber(){return"number"===this.inputOptions?.type}edit(e){this.isNumber&&e?this.$emit("input",parseFloat(e)):this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],ov.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],ov.prototype,"inputOptions",void 0),(0,r.gn)([(0,l.fI)()],ov.prototype,"rules",void 0),(0,r.gn)([(0,l.fI)()],ov.prototype,"testId",void 0),(0,r.gn)([(0,l.fI)({default:!0})],ov.prototype,"clearable",void 0),ov=(0,r.gn)([l.wA],ov);const av=ov,rv=av;var lv=(0,N.Z)(rv,sv,iv,!1,null,null,null);const cv=lv.exports;var dv=n(14567),uv=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-element-studio-twig-code-helper"},[e.codeForControl?t("Copyable",{on:{onCopy:e.close}},[e._v(e._s(e.codeForControl))]):[e._v(" "+e._s(e.sprintf(e._doc("No code help available for %s control type","%s: Control type name"),e.controlTypeCode))+" ")]],2)},pv=[],hv=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-element-studio-copyable"},[t("textarea",{ref:"input",attrs:{readonly:""},domProps:{value:e.textToCopy}}),e.shouldCopy?t(Qo.Z,{attrs:{small:""},on:{click:e.copy}},[e._v(e._s(e.__("Copy")))]):e._e()],1)},gv=[];let mv=class extends s.ZP{mounted(){this.shouldCopy&&(0,A.forceNextTick)((()=>{this.$refs.input.select(),document.execCommand("copy")}))}get textToCopy(){return this.$slots?.default[0]?.text||""}copy(){this.$refs.input.select(),document.execCommand("copy"),this.$emit("onCopy")}};(0,r.gn)([(0,l.fI)({default:!0})],mv.prototype,"shouldCopy",void 0),mv=(0,r.gn)([(0,l.wA)({})],mv);const vv=mv,yv=vv;var fv=(0,N.Z)(yv,hv,gv,!1,null,null,null);const _v=fv.exports,bv=({twigPath:e})=>"{{ "+e+" }}",Sv=({twigPath:e})=>`{% if ${e} %}\ntoggle is on\n{% else %}\ntoggle is off\n{% endif %}`,Cv=({control:e,twigPath:t})=>e.options.items?e.options.items.map(((e,n)=>{const s=n?"elseif":"if";return`{% ${s} ${t} == '${e.value}' %}\n CSS or HTML here\n`})).join("")+"\n{% endif %}":"no items yo",xv=({control:e,twigPath:t})=>e.options.items?e.options.items.map(((e,n)=>{const s=n?"elseif":"if";return`{% ${s} '${e.value}' in ${t} %}\n CSS or HTML here\n`})).join("")+"\n{% endif %}":"no items yo",wv=({control:e,twigPath:t})=>{const n="text"===e?.options?.shadowOptions?.type,s=n?"text-shadow":"box-shadow";return`${s}: {{ ${t}.style }};`},Iv=({twigPath:e})=>`\n\n
\n{{ ${e}.svgCode }}\n
\n`,Pv=({twigPath:e})=>`\n {% for item in ${e} %}\n
\n repeated\n
\n {% endfor %}\n `,kv=({twigPath:e})=>`\n /* could be used for transforms */\n transform-origin: {{ ${e}.x }}% {{ ${e}.y }}%;\n\n /* or positioning a background */\n background-position: {{ ${e}.x }}% {{ ${e}.y }}%;\n `,Ev=["layout_basic_flex","layout","borders","background","css","size","grid",...Ge.spacingBarsPresetSlug],Tv=({control:e,twigPath:t})=>{const n=e.options.sectionOptions?.preset?.slug?.replace("EssentialElements\\","");return n?Ev.includes(n)?`{{ macros.${n}(${t}) }}`:"effects"===n?`\n {{ macros.effects(${t}, '%%SELECTOR%%') }}\n {{ macros.effectsHover(${t}, '%%SELECTOR%%:hover') }}\n `:"effects_no_hover"===n?`{{ macros.effects(${t}, '%%SELECTOR%%') }}`:"filter"===n?`{{ macros.filters(${t}) }}`:"typography"===n||"typography_with_nothing"===n||"typography_with_align"===n||"typography_with_effects"===n||"typography_with_effects_and_align"===n?`{{ macros.typography(${t}, globalSettings) }}`:"simpleLayout"===n?`{{ macros.simpleLayout(${t}, breakpoint) }}`:"fancy_background"===n?`\n {{ macros.fancyBackgroundHtml(${t}) }}\n {{ macros.fancyBackgroundCss('%%SELECTOR%%', ${t}, breakpoint) }}\n `:"typography_with_hoverable_color"===n||"typography_with_align_with_hoverable_color"===n||"typography_with_effects_with_hoverable_color_and_effects"===n||"typography_with_effects_and_align_with_hoverable_color_and_effects"===n?`\n %%SELECTOR%% {\n {{ macros.typography(${t}, globalSettings) }}\n }\n\n %%SELECTOR%%:hover {\n {{ macros.typographyWithHoverableColorAndEffects(${t}) }}\n }\n `:"typography_with_hoverable_everything"===n||"typography_with_align_with_hoverable_everything"===n||"typography_with_effects_with_hoverable_everything"===n||"typography_with_effects_and_align_with_hoverable_everything"===n?`\n %%SELECTOR%% {\n {{ macros.typography(${t}, globalSettings) }}\n }\n\n %%SELECTOR%%:hover {\n {{ macros.typographyWithHoverableEverything(${t}) }}\n }\n `:"AtomV1ButtonContent"===n?`\n \x3c!-- In order to set default styles for your buttons, use the following macros: --\x3e\n \x3c!-- You can overwrite these settings using design options --\x3e\n\n \x3c!-- Button (Primary) --\x3e\n {{ macros.atomV1ButtonHtml(${t}, 'my-button-custom-class', path.to.button_design_preset_section, '${t}.text') }}\n\n \x3c!-- Button (Secondary) --\x3e\n {{ macros.atomV1ButtonHtml(${t}, 'my-button-custom-class', path.to.button_design_preset_section, 'secondary', '${t}.text') }}\n\n \x3c!-- Button (Custom) --\x3e\n {{ macros.atomV1ButtonHtml(${t}, 'my-button-custom-class', path.to.button_design_preset_section, 'custom', '${t}.text') }}\n\n \x3c!-- Button (Text) --\x3e\n {{ macros.atomV1ButtonHtml(${t}, 'my-button-custom-class', path.to.button_design_preset_section, 'text', '${t}.text') }}\n\n \x3c!-- Form Button (Submit) --\x3e\n {{ macros.atomV1ButtonHtmlManual('Submit', false, '%%SELECTOR%% .my-button-custom-class', path.to.button_design_preset_section, 'primary/secondary/custom/text', 'custom-button-id', true, '${t}.text') }}\n\n \x3c!-- SSR Button --\x3e\n echo /Breakdance/Elements/AtomV1Button/render($propertiesData['content']['button'], 'my-button-custom-class', $propertiesData['design']['button'], 'primary/secondary/custom/text');\n\n \x3c!-- SSR Form Button --\x3e\n echo /Breakdance/Elements/AtomV1Button/renderFormButton($propertiesData['content']['submit_button']['text'], 'my-button-custom-class', $propertiesData['design']['form_button'], 'primary/secondary/custom/text', 'custom-button-id');\n\n\n`:"AtomV1ButtonDesign"===n?`\n {{ macros.atomV1ButtonCss(${t}, 'my-button-custom-class', '%%SELECTOR%%', breakpoint, globalSettings) }}\n `:"AtomV1CustomButtonDesign"===n?`\n\n {{ macros.atomV1ButtonButton(${t}, '%%SELECTOR%% .my-button-custom-class', 'primary/secondary/custom', breakpoint, globalSettings) }}\n\n\n `:"AtomV1IconDesignWithHover"===n?`\n HTML:\n {{ macros.atomV1IconHtml('my-icon-class', path.to.icon, path.to.rotate (number between 1 and 360) or false, path.to.link (link control) or false, ${t}) }}\n\n CSS:\n {{ macros.atomV1IconCss(${t}, 'my-icon-class', '%%SELECTOR%%', true) }}`:"AtomV1IconDesign"===n?`\n HTML:\n {{ macros.atomV1IconHtml('my-icon-class', path.to.icon, path.to.rotate (number between 1 and 360) or false, path.to.link (link control) or false, ${t}) }}\n\n CSS:\n {{ macros.atomV1IconCss(${t}, 'my-icon-class', '%%SELECTOR%%') }}`:"AtomV1FormDesign"===n?`{{ macros.atomV1FormCss(${t}, '%%SELECTOR%%') }}`:"tabs_design"===n?`{{ macros.atomV1TabsCss('%%SELECTOR%%', ${t}, breakpoint, globalSettings) }}`:"WooGlobalStylerOverride"===n?`{{ macros.wooGlobalStyler(${t}, '%%SELECTOR%%', breakpoint, globalSettings) }}`:"pagination"===n?`{{ macros.pagination(${t}, '%%SELECTOR%%', listSelector, activeSelector, dotsSelector) }}`:"wooPresetInputsDesign"===n||"wooPresetInputsDesignNoSelect2"===n?`\n %%SELECTOR%% {\n {{ macros.wooPresetInputsDesign(${t}) }}\n }`:"wooProductsListElements"===n?`\n {{ macros.wooPresetProductsListElementsDesign('%%SELECTOR%%', ${t}) }}\n `:"wooProductsListLayout"===n?`\n {{ macros.wooPresetProductsListLayoutDesign('%%SELECTOR%%', ${t}) }}\n `:"wooProductWrapperDesign"===n?`\n {{ macros.wooPresetProductWrapperDesign('%%SELECTOR%%', ${t}) }}\n `:["lightbox_design","lightbox_single_design"].includes(n)?`{{ macros.atomV1LightboxCss(${t}) }}`:"AtomV1SwiperSettings"===n?`\nHTML:\n\n
\n
\n
\n %%CHILDREN%%\n
\n
\n \n {{ macros.AtomV1SwiperPaginationAndArrowsHtml(design.slider) }}\n
\n\n----\n\nCSS:\n{{ macros.AtomV1SwiperCss(${t}, '%%SELECTOR%%', globalSettings, isBaseBreakpoint) }}\n`:"borders_without_shadows"===n?`\n {{ macros.borders_without_shadows(${t}) }}\n `:`no code help for preset section type of ${n}`:"undefined preset type"},Dv={trigger_action_button:void 0,border_complex:({twigPath:e})=>`{{ macros.border_complex(${e}) }}`,border_radius:({twigPath:e})=>`{{ macros.border_radius(${e}) }}`,breakpoint_dropdown:({twigPath:e})=>`\n {% if breakpoint == ${e} %}\n %%SELECTOR%% {\n /** some css that will apply to the selected breakpoint */\n }\n {% endif %}\n `,button_bar:Cv,dropdown:Cv,code:bv,color:({control:e,twigPath:t})=>"solidAndGradient"===e.options.colorOptions?.type?`\n /* Background Color */\n {{ macros.backgroundColor(${t}) }}\n \n /* Or */\n \n /* Text Color */\n {{ macros.textColor(${t}) }}\n \n /* Or */\n \n /* Border Color */\n {{ macros.borderColor(${t}) }}\n `:`background-color: {{ ${t} }}`,gradient:({twigPath:e})=>`background-image: {{ ${e}.style }}`,shadow:wv,icon:Iv,number:bv,repeater:Pv,inline_repeater:Pv,richtext:bv,toggle:Sv,spacing_complex:({twigPath:e})=>`{{ macros.spacing_complex(${e}, 'margin') }}`,text:bv,url:bv,unit:({twigPath:e})=>`font-size: {{ ${e}.style }};`,wpmedia:({control:e,twigPath:t})=>e.options?.mediaOptions?.multiple?`\n {% for item in ${t} %}\n {{ macros.getMedia(item, content.content.size, content.content.lazyLoad) }}\n {% endfor %}\n `:`\n This macro might return an img, video, or iframe tag, depending on the media type.\n {{ macros.getMedia(${t}, content.content.size, content.content.lazyLoad) }}\n \n Or you can render only images\n {{ macros.image(${t}, content.content.size, alt, lazyLoad) }}\n `,video:({twigPath:e})=>`\n {{ macros.video(${e}) }}\n `,focus_point:kv,section:Tv,multiselect:xv,condition:void 0,font_family:void 0,class:void 0,global_colors:void 0,override_variables:void 0,global_block_chooser:void 0,component_chooser:void 0,typography:void 0,custom_typography:void 0,typography_preset:void 0,button_preset:void 0,message:void 0,post_chooser:void 0,element_screenshot:void 0,slider:void 0,add_registered_children:void 0,builder_behavior:void 0,alert_box:void 0,pro_only_alert_box:void 0,date_picker:({twigPath:e})=>`{{ ${e} }}`,time_picker:({twigPath:e})=>`{{ ${e} }}`,api_key_input:void 0,link:({twigPath:e})=>`\n {{ macros.linkStart(${e}) }}\n Link Text\n {{ macros.linkEnd() }}\n `,media_size_dropdown:({twigPath:e})=>`{{ ${e} }}`,wp_query:()=>"Use this control in your SSR.php file. For example:\n \\Breakdance\\WpQueryControl\\getWpQueryArgumentsFromWpQueryControlProperties($propertiesData['content']['wp_query']['query']);",conditional_form_field:void 0,interactions:void 0},Av=(e,t)=>{let n="";if(Array.isArray(e))n=e.reduce(((e,t)=>{const n=t.reduce(((e,{path:t,value:n})=>e?`${e} and ${t} == "${n}"`:`${t} == "${n}"`),"");return e?`${e} or (${n})`:`(${n})`}),"");else{const{path:t,value:s}=e;n=`${t} == "${s}"`}return`\n {% if ${n} %}\n ${t}\n TODO - examples of not equals, is one of, is set, is not set\n {% elseif %}\n ...\n {% else %}\n ...\n {% endif %}\n `};var Zv=n(70802);let Ov=class extends s.ZP{get twigPath(){return this.inRepeater?`item.${this.control.slug}`:`${this.twigParentPath}.${this.control.slug}`}get controlTypeCode(){return`${this.control.options.type}`}get codeForControl(){const e=Dv[this.control.options.type],t=this.control.options.sectionOptions?.preset?.codeHelp?.replace("%%TWIG_PATH%%",this.twigPath);let n=t||e&&e({control:this.control,twigPath:this.twigPath});if(!n)return!1;if(this.control.options.condition&&(n=Av(this.control.options.condition,n)),this.control.enableHover){const e=n.replace(new RegExp(this.twigPath,"g"),(0,Zv.sg)(this.twigPath));n+="\n\n.some-selector:hover {\n"+e+"\n}\n"}return n}close(){this.$emit("close")}};(0,r.gn)([(0,l.fI)()],Ov.prototype,"control",void 0),(0,r.gn)([(0,l.fI)()],Ov.prototype,"twigParentPath",void 0),(0,r.gn)([(0,l.fI)()],Ov.prototype,"inRepeater",void 0),Ov=(0,r.gn)([(0,l.wA)({components:{Copyable:_v}})],Ov);const Mv=Ov,Bv=Mv;var Lv=(0,N.Z)(Bv,uv,pv,!1,null,null,null);const Nv=Lv.exports;var Fv=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("h3",[e._v(e._s(e.label))]),t("Repeater",{attrs:{value:this.internalValue,control:{options:{repeaterOptions:{defaultNewValue:[e.getBlankCondition()],titleTemplate:e.__("OR"),buttonName:e.__("Add new OR condition"),forceDontProcessDefaultNewValueWhenAddingItemsHack:!0}}}},on:{input:e.emit},scopedSlots:e._u([{key:"default",fn:function({index:n}){return[t("Repeater",{attrs:{value:e.internalValue[n],control:{options:{repeaterOptions:{defaultNewValue:e.getBlankCondition(),forceDontProcessDefaultNewValueWhenAddingItemsHack:!0,titleTemplate:e.sprintf(e._doc("(AND) %s for '{path}'","%s: Condition title"),e.title),buttonName:e.sprintf(e._doc("Add new (AND) %s","Element Studio. %s: Condition title"),e.title)}}}},on:{input:function(t){return e.updateOrCondition(t,n)}},scopedSlots:e._u([{key:"default",fn:function({index:s,value:i}){return[t("div",{staticClass:"element-studio-condition-input"},[i?t("div",{staticClass:"element-studio-condition-input-row"},[i.external?t("span",[e._v(" "+e._s(e.__("External conditions can't be edited"))+" ")]):e._e(),t(zm.Z,{attrs:{label:e.__("Path"),items:e.paths,value:i.path,disabled:i.external},on:{input:function(t){return e.updatePath(t,n,s)}}}),t(tg.Z,{attrs:{label:e.__("Operand"),"no-data-text":e.__("No data. Select a path first"),value:i.operand,items:e.getOperands(i),disabled:i.external},on:{input:function(t){return e.updateOperand(t,n,s)}}}),"is set"!==i.operand&&"is not set"!==i.operand?["is one of"!==i.operand&&"is none of"!==i.operand?[t(zm.Z,{attrs:{label:e.__("Value"),items:e.getPossibleValues(i),value:i.value,disabled:i.external},on:{input:function(t){return e.updateValue(t,n,s)}}})]:[t(zm.Z,{attrs:{multiple:"",label:e.__("Values"),items:e.getPossibleValues(i),value:e.hasMultipleValues(i),disabled:i.external},on:{input:function(t){return e.updateValue(t,n,s)}}})]]:e._e()],2):e._e()])]}}],null,!0)})]}}])})],1)},Rv=[];let Vv=class extends s.ZP{mounted(){this.value&&!Array.isArray(this.value)&&this.emit([[this.value]])}getBlankCondition(){return{path:"",operand:"equals",value:""}}getOperands(e){const t=e.path;if(!t)return[];const n=this.getControl(t);let s=["equals","not equals","is one of","is none of","is set","is not set","contains","does not contain"];return"multiselect"===n?.options.type&&(s=["includes"]),"toggle"===n?.options.type&&(s=["is set","is not set"]),s.map((e=>({text:e,value:e})))}hasMultipleValues(e){return Array.isArray(e.value)?e.value:[]}get internalValue(){return this.value?Array.isArray(this.value)?this.value:[[this.value]]:[]}get paths(){const e=this.context.getPathsToAllControls().filter((e=>!e.includes("settings.animations")));return this.pathStartsWith?e.filter((e=>e.startsWith(this.pathStartsWith))).map((e=>e.replace(this.pathStartsWith,""))):e}getPossibleValues(e){const t=e.path;if(!t)return[];const n=this.getControl(t);if(!n)return[];const s=n.options.items?.map((e=>String(e.value)));return s||[]}getControl(e){return(0,qe.AP)(this.context.element(),e)}updatePath(e,t,n){const s=(0,wd.Z)(this.internalValue);s[t][n].path=e,this.emit(s)}updateOperand(e,t,n){const s=(0,wd.Z)(this.internalValue);s[t][n].operand=e,this.emit(s)}updateValue(e,t,n){const s=(0,wd.Z)(this.internalValue);s[t][n].value=e,this.emit(s)}updateOrCondition(e,t){const n=(0,wd.Z)(this.internalValue);n[t]=e,this.emit(n)}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],Vv.prototype,"value",void 0),(0,r.gn)([(0,l.fI)({default:"Condition"})],Vv.prototype,"title",void 0),(0,r.gn)([(0,l.fI)({default:"Only Show Control When Condition Is Met"})],Vv.prototype,"label",void 0),(0,r.gn)([(0,l.fI)()],Vv.prototype,"pathStartsWith",void 0),(0,r.gn)([(0,l.tB)("context")],Vv.prototype,"context",void 0),Vv=(0,r.gn)([(0,l.wA)({components:{Repeater:nv.Z}})],Vv);const $v=Vv,Wv=$v;var Uv=(0,N.Z)(Wv,Fv,Rv,!1,null,null,null);const zv=Uv.exports;var Hv=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-unit-options"},[t("h2",{staticClass:"mb-2"},[e._v(e._s(e.__("Unit Options")))]),t("h3",[e._v(e._s(e.__("Allowed types")))]),t(Wm.Z,{attrs:{label:e.__("Types"),value:e.value&&e.value.types,items:e.availableTypes,multiple:!0,"hide-details":""},on:{input:e.updateTypes}}),t("h3",{staticClass:"mb-1"},[e._v(e._s(e.__("Default Type")))]),t("DropdownInput",{attrs:{label:e.__("Default Type"),items:e.value&&e.value.types||[],value:e.value&&e.value.defaultType},on:{input:e.updateDefaultType}}),t(Um.Z,{attrs:{label:e.__("Disable Custom Unit Dropdown"),value:e.value?.disableCustomUnitDropdown},on:{change:e.updateDisableCustomUnitDropdown}})],1)},Gv=[];let Kv=class extends s.ZP{constructor(){super(...arguments),this.control={options:{repeaterOptions:{titleTemplate:"Type",buttonName:"Add type"}}}}get internalValue(){return this.value||{}}get availableTypes(){return Hg.qc}updateTypes(e){const t=(0,wd.Z)(this.internalValue);this.emit({...t,types:e})}updateDefaultType(e){const t=(0,wd.Z)(this.internalValue);this.emit({...t,defaultType:e})}updateDisableCustomUnitDropdown(e){const t=(0,wd.Z)(this.internalValue);this.emit({...t,disableCustomUnitDropdown:e})}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],Kv.prototype,"value",void 0),(0,r.gn)([(0,l.tB)("context")],Kv.prototype,"context",void 0),Kv=(0,r.gn)([(0,l.wA)({components:{Repeater:nv.Z,DropdownInput:Cd.Z}})],Kv);const jv=Kv,qv=jv;var Xv=(0,N.Z)(qv,Hv,Gv,!1,null,null,null);const Yv=Xv.exports;var Qv=n(62231),Jv=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-range-options"},[t("h3",{staticClass:"mb-2"},[e._v(e._s(e.__("Range Options")))]),t("div",{staticClass:"d-flex align-end"},[t("div",{staticClass:"flex-grow-1 flex-column"},[e._v(" "+e._s(e.__("Step (fixed to 2 decimals)"))+" "),t("input",{class:e.inputClass,attrs:{type:"number"},domProps:{value:e.internalValue.step},on:{input:function(t){return e.updateStep(t.target.value)}}})]),t("div",{staticClass:"flex-grow-1 mx-1 flex-column"},[e._v(" "+e._s(e.__("Min (Integer)"))+" "),t("input",{class:e.inputClass,attrs:{type:"number"},domProps:{value:e.internalValue.min},on:{input:function(t){return e.updateMin(t.target.value)}}})]),t("div",{staticClass:"flex-grow-1 flex-column"},[e._v(" "+e._s(e.__("Max (Integer)"))+" "),t("input",{class:e.inputClass,attrs:{type:"number"},domProps:{value:e.internalValue.max},on:{input:function(t){return e.updateMax(t.target.value)}}})])])])},ey=[];let ty=class extends s.ZP{get internalValue(){return this.value||{min:void 0,max:void 0,step:void 0}}get inputClass(){return"d-flex breakdance-white-gray-outlined-input breakdance-simple-input breakdance-simple-input--text breakdance-simple-input--base"}updateStep(e){this.emit({...this.internalValue,step:e?(0,me.v)(e):void 0})}updateMin(e){this.emit({...this.internalValue,min:e?parseInt(e):void 0})}updateMax(e){this.emit({...this.internalValue,max:e?parseInt(e):void 0})}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],ty.prototype,"value",void 0),(0,r.gn)([(0,l.tB)("context")],ty.prototype,"context",void 0),ty=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z}})],ty);const ny=ty,sy=ny;var iy=(0,N.Z)(sy,Jv,ey,!1,null,null,null);const oy=iy.exports;var ay=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-repeater-options"},[t("h3",{staticClass:"mb-2"},[e._v(e._s(e.__("Repeater Options")))]),t("div",[e._v(" "+e._s(e.__("Title Template"))+" "),t("TextInput",{attrs:{value:e.internalValue.titleTemplate},on:{input:function(t){return e.update(t,"titleTemplate")}}}),e.controlSlugs.length?t("div",{staticClass:"element-studio-repeater-options-variables"},[e._v(" "+e._s(e.__("Available variables:"))+" "),e._l(e.controlSlugs,(function(n){return t("span",{staticClass:"element-studio-repeater-options-variable",on:{click:function(t){return e.appendVariableToTitle(n)}}},[t("span",[e._v("{")]),e._v(e._s(n)),t("span",[e._v("}")])])}))],2):e._e()],1),t("div",{staticClass:"my-2"},[e._v(" "+e._s(e.__("Default Title"))+" "),t("TextInput",{attrs:{value:e.internalValue.defaultTitle},on:{input:function(t){return e.update(t,"defaultTitle")}}}),e._v(" "+e._s(e.__("Used as a fallback when the title template is blank."))+" ")],1),t("div",[e._v(" "+e._s(e.__("Button Name"))+" "),t("TextInput",{attrs:{value:e.internalValue.buttonName},on:{input:function(t){return e.update(t,"buttonName")}}}),e._v(" "+e._s(e.__('Defaults to "Add Item".'))+" ")],1),t("div",[t(Um.Z,{staticClass:"mb-3",attrs:{label:e.__("Enable gallery mode"),"hide-details":"","input-value":e.internalValue.galleryMode},on:{change:e.updateGalleryMode}}),e.internalValue.galleryMode?[t("h3",{staticClass:"mb-3"},[e._v(e._s(e.__("Gallery Media Path")))]),t("DropdownInput",{attrs:{value:e.internalValue.galleryMediaPath,items:e.mediaControlSlugs},on:{input:function(t){return e.update(t,"galleryMediaPath")}}})]:e._e()],2)])},ry=[];const ly={titleTemplate:"",defaultTitle:"",buttonName:""};let cy=class extends s.ZP{get internalValue(){return this.value||ly}get controlSlugs(){return this.control.children.map((e=>e.slug))}get mediaControlSlugs(){return this.control.children.filter((e=>"wpmedia"===e.options.type)).map((e=>e.slug))}appendVariableToTitle(e){const t=this.internalValue.titleTemplate,n=t.includes(`{${e}}`);if(n)return;const s=`${t} {${e}}`.trim();this.update(s,"titleTemplate")}update(e,t){this.emit({...this.internalValue,[t]:e??""})}updateGalleryMode(e){this.emit({...this.internalValue,galleryMode:e})}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],cy.prototype,"value",void 0),(0,r.gn)([(0,l.tB)("context")],cy.prototype,"context",void 0),(0,r.gn)([(0,l.fI)()],cy.prototype,"control",void 0),cy=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z,TextInput:na.Z}})],cy);const dy=cy,uy=dy;var py=(0,N.Z)(uy,ay,ry,!1,null,null,null);const hy=py.exports;var gy=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-dropdown-options"},[t("h2",{staticClass:"mb-2"},[e._v(e._s(e.__("Dropdown options")))]),"dropdown"===e.control.options.type?[this.element.htmlTag.options.length>0?t("NiceButton",{on:{click:e.populateWithHtmlTagOptions}},[e._v(e._s(e.__("Populate with HTML Tag Options")))]):e._e(),t(Um.Z,{attrs:{"input-value":!!e.internalValue.populate,label:e.__("Populate dropdown dynamically"),"hide-details":""},on:{change:e.updateEnablePopulate}}),e.internalValue.populate?[t(bp.Z,{staticClass:"my-3"}),t("h3",{staticClass:"mb-2"},[e._v(e._s(e.__("Populate from a Repeater's Input")))]),e.internalValue.populate.fetchDataAction?t("div",[e._v(" "+e._s(e.__("Populating from server data. To use items instead, clear those fields below."))+" ")]):e.repeaterPaths.length?t("div",[t(zm.Z,{attrs:{label:e.__("Path"),items:e.repeaterPaths,value:e.internalValue.populate.path,"hide-details":"",clearable:""},on:{input:function(t){return e.updatePopulateValue("path",t)}}}),t(zm.Z,{attrs:{label:e.__("Label"),items:e.possibleValues,value:e.internalValue.populate.text,"hide-details":"",clearable:""},on:{input:function(t){return e.updatePopulateValue("text",t)}}}),t(zm.Z,{attrs:{label:e.__("Value"),items:e.possibleValues,value:e.internalValue.populate.value,"hide-details":"",clearable:""},on:{input:function(t){return e.updatePopulateValue("value",t)}}})],1):t("div",[t("h4",[e._v(e._s(e.__("No repeaters present")))])]),t(bp.Z,{staticClass:"my-3"}),t("h3",{staticClass:"mb-2"},[e._v(e._s(e.__("Populate from server data")))]),t(ed.Z,{attrs:{label:e.__("Fetch data action route name"),value:e.internalValue.populate.fetchDataAction,clearable:"","hide-details":""},on:{input:function(t){return e.updatePopulateValue("fetchDataAction",t)}}}),t(zm.Z,{attrs:{label:e.__("Fetch context path"),items:e.controlPaths,value:e.internalValue.populate.fetchContextPath,clearable:"","hide-details":""},on:{input:function(t){return e.updatePopulateValue("fetchContextPath",t)}}}),t("h3",[e._v(e._s(e.__("Refetch data if a control's value changes (specify path)")))]),t("Repeater",{attrs:{value:e.internalValue.populate.refetchPaths},on:{input:e.updateRefetchPaths},scopedSlots:e._u([{key:"default",fn:function({index:n}){return[t(zm.Z,{staticClass:"mb-2",attrs:{items:e.controlPaths,value:e.internalValue.populate.refetchPaths[n],"hide-details":""},on:{input:function(t){return e.updateRefetchPath(n,t)}}})]}}],null,!1,3001308231)}),t(bp.Z,{staticClass:"my-3"}),t("ElementStudioConditionInput",{attrs:{title:e.__("Filtering"),label:e.__("Show items in the dropdown only if a condition is met"),"path-starts-with":`${e.internalValue.populate.path}.`,value:e.internalValue.populate.condition},on:{input:e.updateCondition}})]:e._e()]:e._e(),e.internalValue.populate?e._e():[t("h3",{staticClass:"mb-2"},[e._v(e._s(e.__("Dropdown items")))]),t("Repeater",{attrs:{path:e.path,value:e.dropdownItems,control:e.control},on:{input:e.updateDropdownItems},scopedSlots:e._u([{key:"default",fn:function({index:n}){return[e._v(" "+e._s(e.__("Label"))+" "),t("TextInput",{staticClass:"mb-2",attrs:{value:e.dropdownItems[n].text,testId:"element-studio-control-dropdown-label-input"},on:{input:function(t){return e.updateDropdownItem({...e.dropdownItems[n],text:t||""},n)}}}),e._v(" "+e._s(e.__("Value"))+" "),t("TextInput",{attrs:{value:e.dropdownItems[n].value,testId:"element-studio-control-dropdown-value-input"},on:{input:function(t){return e.updateDropdownItem({...e.dropdownItems[n],value:t||""},n)}}}),"button_bar"===e.control.options.type?t("div",{staticClass:"breakdance-dropdown-input d-flex mt-2"},[e.dropdownItems[n].icon?t("div",{staticClass:"mr-2 d-flex align-center"},[t("Icon",{attrs:{icon:e.dropdownItems[n].icon,size:"18"}})],1):e._e(),t("ElementStudioIconsAutocomplete",{attrs:{value:e.dropdownItems[n].icon},on:{input:function(t){return e.updateDropdownItem({...e.dropdownItems[n],icon:t},n)}}})],1):e._e()]}}],null,!1,3909409893)})]],2)},my=[],vy=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Wm.Z,{staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{label:e.__("Icon"),dense:"",solo:"",flat:"",filled:"","hide-details":"",clearable:"",placeholder:e.__("CloseIcon"),items:e.iconNames,value:e.value},on:{input:function(t){return e.$emit("input",t)}}})},yy=[],fy=n(97657);let _y=class extends s.ZP{get iconNames(){return fy.iconNames}};(0,r.gn)([(0,l.fI)()],_y.prototype,"value",void 0),_y=(0,r.gn)([(0,l.wA)({})],_y);const by=_y,Sy=by;var Cy=(0,N.Z)(Sy,vy,yy,!1,null,null,null);const xy=Cy.exports,wy={path:"",text:"",value:"",condition:void 0,fetchDataAction:"",fetchContextPath:"",refetchPaths:[]};let Iy=class extends s.ZP{get internalValue(){return this.value||{}}get repeaterPaths(){return this.context.getPathsToAllControls(["repeater"])}get controlPaths(){return this.context.getPathsToAllControls()}get possibleValues(){const e=this.internalValue?.populate?.path;if(!e)return[];const t=this.getControl(e);if(!t)return[];const n=t.children.map((e=>e.slug));return n||[]}getControl(e){return(0,qe.AP)(this.element,e)}get populate(){return this.internalValue.populate||wy}get dropdownItems(){return this.control.options.items||[{value:"value",text:"Label"}]}get element(){return this.context.element()}updateDropdownItems(e){this.$emit("updateDropdownItems",e)}updateDropdownItem(e,t){this.$emit("updateDropdownItem",{newItem:e,index:t})}updateEnablePopulate(e){e?this.emit({populate:wy}):this.emit(void 0)}updateCondition(e){const t=(0,wd.Z)(this.populate);Array.isArray(e)&&!e.length?delete t.condition:t.condition=e,this.emit({populate:t})}updatePopulateValue(e,t){const n=(0,wd.Z)(this.populate);n[e]=t,this.emit({populate:n})}updateRefetchPaths(e){const t=(0,wd.Z)(this.populate);t.refetchPaths=e.map((e=>"string"===typeof e?e:"")),this.emit({populate:t})}updateRefetchPath(e,t){const n=(0,wd.Z)(this.populate);n.refetchPaths&&(n.refetchPaths[e]=t,this.emit({populate:n}))}populateWithHtmlTagOptions(){if(!this.element.htmlTag.options)return;const e=this.element.htmlTag.options.map((e=>({text:e,value:e})));this.updateDropdownItems(e)}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],Iy.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],Iy.prototype,"control",void 0),(0,r.gn)([(0,l.fI)()],Iy.prototype,"path",void 0),(0,r.gn)([(0,l.tB)("context")],Iy.prototype,"context",void 0),Iy=(0,r.gn)([(0,l.wA)({components:{NiceButton:Br.Z,ElementStudioIconsAutocomplete:xy,Icon:He.Z,DropdownInput:Cd.Z,Dropdown:Oc.Z,ElementStudioConditionInput:zv,Repeater:nv.Z,TextInput:na.Z}})],Iy);const Py=Iy,ky=Py;var Ey=(0,N.Z)(ky,gy,my,!1,null,null,null);const Ty=Ey.exports;var Dy=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-dropdown-options"},[t("h2",{staticClass:"mb-2"},[e._v(e._s(e.__("Breakpoint options")))]),e._v(" "+e._s(e.__("Support Multiple"))+" "),t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Support Multiple"),"input-value":e.value&&!!e.value.multiple,"hide-details":""},on:{change:e.updateMultiple}}),e._v(" "+e._s(e.__("Enable Never"))+" "),t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Enable Never"),"input-value":e.value&&!!e.value.enableNever,"hide-details":""},on:{change:e.updateEnableNever}})],1)},Ay=[];let Zy=class extends s.ZP{updateMultiple(e){const t={...this.value,multiple:e};this.emit(t)}updateEnableNever(e){const t={...this.value,enableNever:e};this.emit(t)}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],Zy.prototype,"value",void 0),Zy=(0,r.gn)([(0,l.wA)({components:{}})],Zy);const Oy=Zy,My=Oy;var By=(0,N.Z)(My,Dy,Ay,!1,null,null,null);const Ly=By.exports;var Ny=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-variable-options"},[t("h3",[e._v(e._s(e.__("Variables")))]),t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{label:e.__("Enable variables"),"input-value":e.internalValue.enabled,"hide-details":""},on:{change:e.toggleEnabled}}),e.internalValue.enabled?[t("Repeater",{attrs:{path:e.path,value:e.variables,control:e.control},on:{input:e.updateVariableItems},scopedSlots:e._u([{key:"default",fn:function({index:n}){return[e._v(" "+e._s(e.__("Label"))+" "),t("TextInput",{staticClass:"mb-2",attrs:{value:e.variables[n].label,testId:"element-studio-control-variable-label-input"},on:{input:function(t){return e.updateVariableItem({...e.variables[n],label:t},n)}}}),e._v(" "+e._s(e.__("Value"))+" "),t("TextInput",{attrs:{value:e.variables[n].value,testId:"element-studio-control-variable-value-input"},on:{input:function(t){return e.updateVariableItem({...e.variables[n],value:t},n)}}})]}}],null,!1,1421230148)}),t(Um.Z,{attrs:{"input-value":!!e.internalValue.populate,label:e.__("Populate variables based on a Repeater Input")},on:{change:e.updateEnablePopulate}}),e.internalValue.populate?t("div",[t("div",[t(zm.Z,{attrs:{label:e.__("Path"),items:e.paths,value:e.internalValue.populate.path},on:{input:function(t){return e.updatePopulateValue("path",t)}}}),t(zm.Z,{attrs:{label:e.__("Label"),items:e.possibleValues,value:e.internalValue.populate.text},on:{input:function(t){return e.updatePopulateValue("text",t)}}}),t(zm.Z,{attrs:{label:e.__("Value"),items:e.possibleValues,value:e.internalValue.populate.value},on:{input:function(t){return e.updatePopulateValue("value",t)}}})],1),t("ElementStudioConditionInput",{attrs:{title:e.__("Filtering"),label:e.__("Show items in the variable only if a condition is met"),"path-starts-with":`${e.internalValue.populate.path}.`,value:e.internalValue.populate.condition},on:{input:e.updateCondition}}),t(bp.Z)],1):e._e()]:e._e()],2)},Fy=[];const Ry={path:"",text:"",value:"",condition:void 0};let Vy=class extends s.ZP{constructor(){super(...arguments),this.enabled=!1}get internalValue(){return this.value||{}}get paths(){return this.context.getPathsToAllControls(["repeater"])}get possibleValues(){const e=this.internalValue?.populate?.path;if(!e)return[];const t=this.getControl(e);if(!t)return[];const n=t.children.map((e=>e.slug));return n||[]}getControl(e){return(0,qe.AP)(this.element,e)}get populate(){return this.internalValue.populate||Ry}get variables(){return this.control.options.variableItems||[{value:"value",text:"Label"}]}get element(){return this.context.element()}updateVariableItems(e){this.$emit("updateVariableItems",e)}updateVariableItem(e,t){this.$emit("updateVariableItem",{newItem:e,index:t})}updateEnablePopulate(e){e?this.emit({populate:Ry}):this.emit({populate:void 0})}updateCondition(e){const t=(0,wd.Z)(this.populate);Array.isArray(e)&&!e.length?delete t.condition:t.condition=e,this.emit({populate:t})}updatePopulateValue(e,t){const n=(0,wd.Z)(this.populate);n[e]=t,this.emit({populate:n})}toggleEnabled(e){this.emit({enabled:e})}emit(e){this.$emit("input",{...this.internalValue,...e})}};(0,r.gn)([(0,l.fI)()],Vy.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],Vy.prototype,"control",void 0),(0,r.gn)([(0,l.fI)()],Vy.prototype,"path",void 0),(0,r.gn)([(0,l.tB)("context")],Vy.prototype,"context",void 0),Vy=(0,r.gn)([(0,l.wA)({components:{NiceButton:Br.Z,ElementStudioIconsAutocomplete:xy,Icon:He.Z,ElementStudioConditionInput:zv,Repeater:nv.Z,TextInput:na.Z}})],Vy);const $y=Vy,Wy=$y;var Uy=(0,N.Z)(Wy,Ny,Fy,!1,null,null,null);const zy=Uy.exports;var Hy=n(43195),Gy=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-media-options"},[t("div",{staticClass:"mb-3"},[t("h2",{staticClass:"mb-2"},[e._v(e._s(e.__("WP Media Options")))]),t(Um.Z,{attrs:{label:e.__("Enable gallery mode"),"input-value":e.internalValue.multiple,"hide-details":""},on:{change:e.updateMultiple}})],1),t(Um.Z,{attrs:{label:e.__("Allow only certain file types"),"input-value":e.fileTypesEnabled,"hide-details":""},on:{change:e.updateEnableFileTypes}}),e.fileTypesEnabled?t(Wm.Z,{staticClass:"mt-2",attrs:{label:e.__("Accepted File Types"),value:e.internalValue.acceptedFileTypes,items:e.types,multiple:!0,hint:e.__("All file types are allowed by default.")},on:{input:e.updateType}}):e._e()],1)},Ky=[],jy=n(665);const qy={acceptedFileTypes:void 0,multiple:!1};let Xy=class extends s.ZP{get fileTypesEnabled(){return Array.isArray(this.internalValue.acceptedFileTypes)}get types(){return jy.n_.types.map((e=>e.value))}get internalValue(){return this.value||qy}updateType(e){this.emit({...this.internalValue,acceptedFileTypes:e})}updateMultiple(e){this.emit({...this.internalValue,multiple:e})}updateEnableFileTypes(e){e?this.updateType([]):this.updateType(void 0)}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],Xy.prototype,"value",void 0),Xy=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z,Repeater:nv.Z}})],Xy);const Yy=Xy,Qy=Yy;var Jy=(0,N.Z)(Qy,Gy,Ky,!1,null,null,null);const ef=Jy.exports;var tf=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-media-size-options"},[t("div",{staticClass:"mb-3"},[t("h3",{staticClass:"mb-2"},[e._v(e._s(e.__("Media Size Options")))]),t(zm.Z,{attrs:{label:e.__("Image Path"),value:e.internalValue.imagePropertyPath,items:e.paths,hint:e.__("Will only show an image's available sizes. Use [] when inside a repeater."),"persistent-hint":"",clearable:""},on:{input:e.updatePath}}),e.internalValue.imagePropertyPath?t(Um.Z,{staticClass:"mb-3 mt-2",attrs:{"input-value":e.internalValue.disableSrcset,label:e.__("Don't add srcset attribute to the Image object"),"persistent-hint":"","hide-details":""},on:{change:e.toggleSrcset}}):e._e()],1)])},nf=[];let sf=class extends s.ZP{get internalValue(){return this.value||{}}get paths(){return this.context.getPathsToAllControls(["wpmedia"])}updatePath(e){this.emit({...this.internalValue,imagePropertyPath:e||""})}toggleSrcset(e){this.emit({...this.internalValue,disableSrcset:e})}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.tB)("context")],sf.prototype,"context",void 0),(0,r.gn)([(0,l.fI)()],sf.prototype,"value",void 0),sf=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z,Repeater:nv.Z}})],sf);const of=sf,af=of;var rf=(0,N.Z)(af,tf,nf,!1,null,null,null);const lf=rf.exports;var cf=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-icon-options"},[t("div",{staticClass:"mb-3"},[t("h3",{staticClass:"mb-2"},[e._v(e._s(e.__("Icon Options")))]),t(zm.Z,{attrs:{clearable:"",multiple:"",value:e.internalValue.suggestions,label:e.__("Suggestions")},on:{input:e.updateSuggestions}})],1)])},df=[];let uf=class extends s.ZP{get internalValue(){return this.value||{}}updateSuggestions(e){this.emit({...this.internalValue,suggestions:e})}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],uf.prototype,"value",void 0),uf=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z,Repeater:nv.Z}})],uf);const pf=uf,hf=pf;var gf=(0,N.Z)(hf,cf,df,!1,null,null,null);const mf=gf.exports;function vf(e,t){function n(e,n,s,i){let o="";return o="control"===i?`${t}.${n}_${s}.%%BREAKPOINT%%`:"complex"===i?`${t}.${n}.%%BREAKPOINT%%.${s}`:`${t}.${n}.${s}`,{location:`${e}-${s}`,cssProperty:`${n}-${s}`,affectedPropertyPath:o}}const s=[n("outside","margin","top","complex"),n("outside","margin","bottom","complex"),n("outside","margin","right","complex"),n("outside","margin","left","complex")],i=[n("inside","padding","top","complex"),n("inside","padding","bottom","complex"),n("inside","padding","right","complex"),n("inside","padding","left","complex")],o=[n("outside","margin","top","control"),n("outside","margin","bottom","control")],a=[n("outside","margin","right","control"),n("outside","margin","left","control")],r=[n("inside","padding","top","control"),n("inside","padding","bottom","control")],l=[n("inside","padding","right","control"),n("inside","padding","left","control")],c=[n("outside","margin","top","not_responsive"),n("outside","margin","bottom","not_responsive"),n("outside","margin","right","not_responsive"),n("outside","margin","left","not_responsive"),n("inside","padding","top","not_responsive"),n("inside","padding","bottom","not_responsive"),n("inside","padding","right","not_responsive"),n("inside","padding","left","not_responsive")];switch(e){case"spacing_all":return[...s,...i];case"spacing_all_y":return[...o,...r];case"spacing_all_x":return[...a,...l];case"spacing_margin_all":return s;case"spacing_margin_y":return o;case"spacing_margin_x":return a;case"spacing_padding_all":return i;case"spacing_padding_y":return r;case"spacing_padding_x":return l;case"spacing_all_not_responsive":return c}}var yf=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-post-chooser-options"},[t("div",{staticClass:"mb-3"},[t("h2",{staticClass:"mb-2"},[e._v(e._s(e.__("Post Chooser Options")))]),t("div",{staticClass:"mt-2"},[t("h4",{staticClass:"mb-1"},[e._v(e._s(e.__("Post Type")))]),t("TextInput",{attrs:{value:e.internalValue.postType},on:{input:function(t){return e.update("postType",t)}}})],1),t(Um.Z,{attrs:{label:e.__("Multiple"),"input-value":e.internalValue.multiple,"hide-details":""},on:{change:function(t){return e.update("multiple",t)}}}),t(Um.Z,{attrs:{label:e.__("Show Thumbnails"),"input-value":e.internalValue.showThumbnails,"hide-details":""},on:{change:function(t){return e.update("showThumbnails",t)}}})],1)])},ff=[];const _f={multiple:!1,showThumbnails:!1,postType:"post"};let bf=class extends s.ZP{get internalValue(){return this.value||_f}updateMultiple(e){this.emit({...this.internalValue,multiple:e})}update(e,t){this.emit({...this.internalValue,[e]:t??""})}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],bf.prototype,"value",void 0),bf=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,DropdownInput:Cd.Z,Repeater:nv.Z}})],bf);const Sf=bf,Cf=Sf;var xf=(0,N.Z)(Cf,yf,ff,!1,null,null,null);const wf=xf.exports;var If=n(99926),Pf=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-media-options mb-3"},[t("h2",{staticClass:"mb-2"},[e._v(e._s(e.__("Video Options")))]),t(Wm.Z,{attrs:{label:e.__("Providers"),value:e.internalValue.providers,items:e.types,multiple:!0,hint:e.__("All providers are allowed by default.")},on:{input:e.updateProviders}})],1)},kf=[];const Ef={providers:[]};let Tf=class extends s.ZP{get types(){return Qm.Ru.types.map((e=>e.value))}get internalValue(){return this.value||Ef}updateProviders(e){this.emit({...this.internalValue,providers:e})}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],Tf.prototype,"value",void 0),Tf=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z,Repeater:nv.Z}})],Tf);const Df=Tf,Af=Df;var Zf=(0,N.Z)(Af,Pf,kf,!1,null,null,null);const Of=Zf.exports;var Mf=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-media-options mb-3"},[t("h3",{staticClass:"mb-2"},[e._v("Alert Box Options")]),t("DropdownInput",{staticClass:"mb-4",attrs:{placeholder:"Style",items:e.styles,value:e.internalValue.style},on:{input:e.updateStyle}}),t("TipTapWrapper",{attrs:{value:e.internalValue.content},on:{input:e.updateContent}})],1)},Bf=[],Lf=n(7094);const Nf={style:"default",content:""};let Ff=class extends s.ZP{get internalValue(){return this.value||Nf}get styles(){return Qm.wu.types.map((e=>e.value))}updateStyle(e){this.emit({...this.internalValue,style:e})}updateContent(e){this.emit({...this.internalValue,content:e??""})}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],Ff.prototype,"value",void 0),Ff=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z,TipTapWrapper:Lf.Z}})],Ff);const Rf=Ff,Vf=Rf;var $f=(0,N.Z)(Vf,Mf,Bf,!1,null,null,null);const Wf=$f.exports;var Uf=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-focus-point-options mb-3"},[t("h2",{staticClass:"mb-2"},[e._v(e._s(e.__("Focus Point Options")))]),t(Um.Z,{staticClass:"mb-3",attrs:{label:e.__("Enable Grid Mode"),"hide-details":"","input-value":e.internalValue.gridMode},on:{change:e.updateGridMode}}),t(Wm.Z,{staticClass:"mb-2",attrs:{label:e.__("Image Path"),value:e.internalValue.imagePropertyPath,items:e.paths,"persistent-hint":"",hint:e.__("Shows an image as background of this input"),clearable:"",disabled:e.internalValue.gridMode},on:{input:e.updatePath}}),e.internalValue.gridMode?t("AlertBox",{attrs:{options:{type:"info",content:e.__("Not available when grid mode is enabled.")}}}):e._e()],1)},zf=[];let Hf=class extends s.ZP{get internalValue(){return this.value||{}}get paths(){return this.context.getPathsToAllControls(["wpmedia"])}updatePath(e){this.emit({...this.internalValue,imagePropertyPath:e||""})}updateGridMode(e){this.emit({...this.internalValue,gridMode:e})}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.tB)("context")],Hf.prototype,"context",void 0),(0,r.gn)([(0,l.fI)()],Hf.prototype,"value",void 0),Hf=(0,r.gn)([(0,l.wA)({components:{AlertBox:Ag.Z,DropdownInput:Cd.Z,Repeater:nv.Z}})],Hf);const Gf=Hf,Kf=Gf;var jf=(0,N.Z)(Kf,Uf,zf,!1,null,null,null);const qf=jf.exports;var Xf=n(78143),Yf=n(31304),Qf=n.n(Yf);async function Jf(e,t,n,s){return await(0,ad.D)({action:"breakdance_save_preset",dataToPost:{directoryPath:t,filename:n,preset:(0,Xf.Tb)((0,Xf.HE)(s),e.section,(0,Am.$_)(s))},decoder:iu._4})}function e_(e,t){return`${e}\\${Qf()(t)}`}var t_=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"element-studio-hide-control-input"},[t(Um.Z,{attrs:{"input-value":!!e.value,label:e.__("Hide Control From Specific Elements"),"hide-details":""},on:{change:e.toggleControl}}),e.value?t(zm.Z,{attrs:{label:e.__("Elements"),items:e.items,value:e.value,multiple:""},on:{input:e.updateValue}}):e._e()],1)},n_=[];let s_=class extends s.ZP{get items(){return Object.keys(Q.PK.elements)}toggleControl(e){e?this.$emit("input",[]):this.$emit("remove")}updateValue(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],s_.prototype,"value",void 0),(0,r.gn)([(0,l.tB)("context")],s_.prototype,"context",void 0),s_=(0,r.gn)([(0,l.wA)({})],s_);const i_=s_,o_=i_;var a_=(0,N.Z)(o_,t_,n_,!1,null,null,null);const r_=a_.exports;let l_=class extends s.ZP{constructor(){super(...arguments),this.codeHelpOpen=!1,this.showContentEditableCode=!1,this.showNewPresetDialog=!1,this.accordionState=[!1]}get canHaveMediaQueries(){return!!this.parentControl?.enableMediaQueries}get parentType(){return this.parentControl?.options.type}get keyToRerenderCodeHelp(){const e=(0,Wg.g)(this.value);return(0,Qv.X)(`${e}`)}get isPresetSection(){return!!this.presetSectionSlug}get presetSectionSlug(){return this.value.options.sectionOptions?.preset?.slug}get isSection(){return"section"===this.value.options.type}get isRepeater(){return(0,qe.W5)(this.value.options.type)}get isParentARepeater(){return(0,qe.W5)(this.parentType)}get controlAcceptsChildren(){return(0,qe.v4)(this.value.options.type)}get isInContentTab(){return this.path.startsWith("contentSections")}get spacingBarPresetSlug(){if(this.isSection)return Ge.spacingBarsPresetSlug.find((e=>e===this.value.options?.sectionOptions?.preset?.slug))}get classList(){return{"element-studio-control-or-control-section":!0,"element-studio-control-section":!0,"element-studio-control":!this.controlAcceptsChildren}}get twigPathWithoutRepeaterIndex(){return(0,Hy.rg)(`${this.twigParentPath}${this.isParentARepeater?"[]":""}.${this.value.slug}`)}get dynamicPathAcceptsItems(){return(0,Hy.cS)()}get contentEditableHelperCode(){return`// Add to the control value's wrapper HTML to make it ContentEditable\n\n ${this.twigPathForContentEditable}\n `}get twigPathForContentEditable(){return this.isRepeater||this.isParentARepeater?`{{ dataContentEditablePropertyPath('${this.twigParentPath}['~ loop.index0 ~ '].your_control') }}`:`{{ dataContentEditablePropertyPath('${this.twigPathWithoutRepeaterIndex}') }}`}get datePickerOptions(){return Object.keys(Qm.Fl.props)}get elementStudioData(){return this.context.getElementStudioData()}async saveNewPreset(e){if(!this.isSection)return;const t=Qf()(e.name),n=e_(e.namespace,t);if(this.elementStudioData.presets.find((e=>e.slug===n)))return void(0,Am.O6)(this.elementStudioData.saveLocations,e,"preset");const s=this.value;s.options.sectionOptions={...s.options.sectionOptions,preset:{slug:n}},(0,su.zG)(await Jf({slug:n,section:s},e.directoryPath,t,n),(0,ou.g_)((e=>{console.error(e),cd.Z.log.message((0,Ft.__)("Failed to save element, check console"))}),(()=>{const t=(0,wd.Z)(this.elementStudioData);t.presets.push({slug:n,directoryPath:e.directoryPath}),t.presetSections.push({slug:n,section:s}),this.context.updateElementStudioData(t),this.context.updateControl(this.parentPath,this.index,s)})))}toggleAccordion(e){s.ZP.set(this.accordionState,e,!this.accordionState[e])}handleDrag(e){this.context.replaceControls(`${this.path}.children`,e)}get canPaste(){return this.controlAcceptsChildren&&!this.isPresetSection&&c.uiStore.elementStudioClipboard.copiedControl}get canReplace(){if(!c.uiStore.elementStudioClipboard.copiedControl)return!1;const e=c.uiStore.elementStudioClipboard.copiedControl;return!this.isSection||"section"===e.options.type}handlePaste(){if(!this.controlAcceptsChildren)return;if(!c.uiStore.elementStudioClipboard.copiedControl)return;const e=c.uiStore.elementStudioClipboard.copiedControl;e&&this.context.pasteControl(`${this.path}.children`,e)}handleReplace(){if(!c.uiStore.elementStudioClipboard.copiedControl)return;const e=c.uiStore.elementStudioClipboard.copiedControl;e&&this.context.updateControl(this.parentPath,this.index,e)}handleMakePreset(){this.showNewPresetDialog=!0}get controlTypes(){const e=e=>e.charAt(0).toUpperCase()+e.slice(1),t=[];return Qm.F4.sort().filter(this.removeDisallowedControlTypes).map((t=>({text:e(t),value:t}))).map((e=>this.isInContentTab&&t.includes(e.value)?{...e,disabled:!0}:e))}copy(){const e=(0,wd.Z)(this.value);c.uiStore.copyElementStudioControl(e)}get availablePresetSections(){return this.context.getPresetSections().map((e=>({text:e.slug,value:e.slug})))}updatePresetSectionSlug(e){const t=(0,wd.Z)(this.context.getPresetSection(e));void 0!==t&&(t.section.options.sectionOptions={...t.section.options.sectionOptions,type:"popout"},this.context.updateControl(this.parentPath,this.index,t.section),this.turnRelativePropPathsToWhitelistInFlatPropsIntoAbsolutePathsAndUpdateElement(t.section.options.sectionOptions,t.section.slug),this.turnRelativeDynamicPropPathsIntoAbsoluteAndUpdateElement(t.section.options.sectionOptions,t.section.slug))}turnRelativePropPathsToWhitelistInFlatPropsIntoAbsolutePathsAndUpdateElement(e,t){if(!e||!e.preset?.relativePropertyPathsToWhitelistInFlatProps)return;const n=t||(0,Xf.HE)(t);let s=(0,wd.Z)(this.context.element().propertyPathsToWhitelistInFlatProps);const i=e.preset.relativePropertyPathsToWhitelistInFlatProps.map((e=>`${this.twigParentPath}.${n}.${e}`)),o=e.preset.relativePropertyPathsToWhitelistInFlatProps.map((e=>`${this.twigParentPath}.${this.value.slug}.${e}`));s?(s=s.filter((e=>!i.includes(e)&&!o.includes(e))),s=[...s,...i]):s=i,(0,A.forceNextTick)((()=>this.context.updateElementValue("propertyPathsToWhitelistInFlatProps",s)))}turnRelativeDynamicPropPathsIntoAbsoluteAndUpdateElement(e,t){if(!e||!e.preset?.relativeDynamicPropertyPaths)return;const n=t||(0,Xf.HE)(t);let s=(0,wd.Z)(this.context.element().dynamicPropertyPaths);const i=e.preset.relativeDynamicPropertyPaths.map((e=>({...e,path:`${this.twigParentPath}.${n}.${e.path}`}))),o=e.preset.relativeDynamicPropertyPaths.map((e=>({...e,path:`${this.twigParentPath}.${this.value.slug}.${e.path}`})));s?(s=s.filter((e=>!i.some((t=>t.path===e.path))&&!o.some((t=>t.path===e.path)))),s=[...s,...i]):s=i,(0,A.forceNextTick)((()=>this.context.updateElementValue("dynamicPropertyPaths",s)))}removeDisallowedControlTypes(e){const t=["class","font_family","global_colors","message"];return!t.includes(e)}addControl(){this.context.addControl(this.path)}deleteControl(){this.context.deleteControl(this.parentPath,this.index)}updateControlType(e){const t=(0,wd.Z)(this.value);if(t.options.type=e,!this.isInContentTab){const n=["code","repeater","inline_repeater","spacing_complex","border_complex","gradient","icon","richtext","shadow","wpmedia","text","focus_point","url"];n.includes(e)?t.options.layout="vertical":t.options.layout="inline"}this.context.updateControl(this.parentPath,this.index,t)}updateVariableItems(e){const t=(0,wd.Z)(this.value);t.options.variableItems=e,this.context.updateControl(this.parentPath,this.index,t)}updateVariableItem({newItem:e,index:t}){const n=(0,wd.Z)(this.value);n.options.variableItems||(n.options.variableItems=[]),n.options.variableItems[t]=e,this.context.updateControl(this.parentPath,this.index,n)}updateDropdownItems(e){const t=(0,wd.Z)(this.value);t.options.items=e,this.context.updateControl(this.parentPath,this.index,t)}updateDropdownItem({newItem:e,index:t}){const n=(0,wd.Z)(this.value);n.options.items||(n.options.items=[]),n.options.items[t]=e,this.context.updateControl(this.parentPath,this.index,n)}updateOptions(e,t){const n=(0,wd.Z)(this.value),s=`options.${t}`;Sd()(n,s,e),this.context.updateControl(this.parentPath,this.index,n)}get availableDescendantElements(){return Object.values(c.configStore.elements).filter((e=>!!e&&(!e.nestingRule.restrictedToBeADirectChildOf&&(0,Fe.V4)(e.nestingRule,this.context.element().nestingRule,this.context.element().slug)))).map((e=>e?.slug))}updateAddExtraElementsBySlug(e){const t=(0,wd.Z)(this.value);t.options.addRegisteredChildrenOptions={...t.options.addRegisteredChildrenOptions,addExtraElementsBySlug:e},this.context.updateControl(this.parentPath,this.index,t)}get autofocusSupported(){switch(this.value.options.type){case"text":return!0;case"video":return!0;default:return!1}}get codeTypes(){return["css","html","javascript","x-php"]}updateCodeType(e){const t=(0,wd.Z)(this.value);t.options.codeOptions={...t.options.codeOptions,language:e},this.context.updateControl(this.parentPath,this.index,t)}get shadowTypes(){return Qm.bB.props.type.types.map((e=>e.value))}updateShadowType(e){const t=(0,wd.Z)(this.value);t.options.shadowOptions={...t.options.shadowOptions,type:e},this.context.updateControl(this.parentPath,this.index,t)}updateTextOptionsMultiline(e){const t=(0,wd.Z)(this.value);t.options.textOptions={...t.options.textOptions,multiline:e},this.context.updateControl(this.parentPath,this.index,t)}updateTextOptionsFormat(e){const t=(0,wd.Z)(this.value);t.options.textOptions={...t.options.textOptions,format:e},this.context.updateControl(this.parentPath,this.index,t)}updateButtonBarOptionsSize(e){const t=(0,wd.Z)(this.value);t.options.buttonBarOptions={...t.options.buttonBarOptions,size:e?"big":"small",layout:"default"},this.context.updateControl(this.parentPath,this.index,t)}updateButtonBarOptionsLayout(e){const t=(0,wd.Z)(this.value);t.options.buttonBarOptions={...t.options.buttonBarOptions,layout:e?"multiline":"default",size:"small"},this.context.updateControl(this.parentPath,this.index,t)}addPreset(){this.context.addPreset(this.path)}get controlLayouts(){return["inline","vertical"]}updateControlLayout(e){const t=(0,wd.Z)(this.value);t.options.layout=e,this.context.updateControl(this.parentPath,this.index,t)}updateKeywords(e){const t=(0,wd.Z)(this.value);t.keywords=null===e?void 0:e.split(","),this.context.updateControl(this.parentPath,this.index,t)}get keywordsValue(){return this.value.keywords?this.value.keywords.join(","):""}updatePlaceholder(e){const t=(0,wd.Z)(this.value);t.options.placeholder=e??void 0,this.context.updateControl(this.parentPath,this.index,t)}updateColorType(e){const t=(0,wd.Z)(this.value);t.options.colorOptions={...t.options.colorOptions,type:e},this.context.updateControl(this.parentPath,this.index,t)}updateConditions(e){const t=(0,wd.Z)(this.value);Array.isArray(e)&&!e.length?delete t.options.condition:t.options.condition=e,this.context.updateControl(this.parentPath,this.index,t)}updateHideForElements(e){const t=(0,wd.Z)(this.value);t.options.hideForElements=e,this.context.updateControl(this.parentPath,this.index,t)}deleteHideForElements(){const e=(0,wd.Z)(this.value);delete e.options.hideForElements,this.context.updateControl(this.parentPath,this.index,e)}updateDisabledInFutureLayer(e){const t=(0,wd.Z)(this.value);t.options.disabledInFutureLayer=e,this.context.updateControl(this.parentPath,this.index,t)}get isBreakdanceDevelopmentEnvironment(){return(0,zg.y)()}get sectionLayouts(){return Qm.Pk}updateSectionLayoutType(e="accordion"){const t=(0,wd.Z)(this.value);t.options.sectionOptions={...t.options.sectionOptions,type:e},this.context.updateControl(this.parentPath,this.index,t)}updateLabelAndSlugOnFocusOut(e){const t=e.target.value,n=(0,wd.Z)(this.value);n.label=t,n.slug=t.replace(/[^a-z0-9]+/gi,"_").toLowerCase(),/^\d/.test(n.slug)&&(n.slug=`slug_cant_start_with_number_${n.slug}`),this.context.updateControl(this.parentPath,this.index,n),this.updateElementPropertiesNotTiedToControl(n)}updateSlugOnFocusOut(e){const t=e.target.value?e.target.value:"",n=(0,wd.Z)(this.value);n.slug=t.replace(/[^a-z0-9]+/gi,"_").toLowerCase(),/^\d/.test(n.slug)&&(n.slug=`slug_cant_start_with_number_${n.slug}`),this.context.updateControl(this.parentPath,this.index,n),this.updateElementPropertiesNotTiedToControl(n)}updateControlBoolean(e,t){const n=(0,wd.Z)(this.value);n[t]=e,this.context.updateControl(this.parentPath,this.index,n)}updateDynamic(e,t="string",n=!1){const s=(0,wd.Z)(this.value);e?s.dynamic={accepts:t,proOnly:n}:delete s.dynamic,this.context.updateControl(this.parentPath,this.index,s)}isSpacingBarEnabled(){const e=this.context.element().spacingBars;if(!e||!e.length)return!1;if(!this.spacingBarPresetSlug)return!1;const t=vf(this.spacingBarPresetSlug,this.twigPathWithoutRepeaterIndex).map((e=>e.affectedPropertyPath)),n=e.find((e=>t.includes(e.affectedPropertyPath)));return!!n}updateSpacingBar(e){if(!this.spacingBarPresetSlug)return;let t=(0,wd.Z)(this.context.element().spacingBars);const n=vf(this.spacingBarPresetSlug,this.twigPathWithoutRepeaterIndex);if(e)t||(t=[]),t=[...t,...n];else if(t){const e=n.map((e=>e.affectedPropertyPath));t=t.filter((t=>!e.includes(t.affectedPropertyPath)))}this.context.updateElementValue("spacingBars",t)}updateElementPropertiesNotTiedToControl(e){(0,A.forceNextTick)((()=>this.updateSpacingBar(!1))),(0,A.forceNextTick)((()=>this.updatePropertyPathsToWhitelistInFlatProps(!1))),(0,A.forceNextTick)((()=>this.updatePropertyPathsToSsrElementWhenValueChanges(!1))),this.turnRelativePropPathsToWhitelistInFlatPropsIntoAbsolutePathsAndUpdateElement(e.options.sectionOptions,e.slug),this.turnRelativeDynamicPropPathsIntoAbsoluteAndUpdateElement(e.options.sectionOptions,e.slug)}get shouldControlValueBeAddedInAllBreakpoints(){const e=this.context.element().propertyPathsToWhitelistInFlatProps;return e&&e.includes(this.twigPathWithoutRepeaterIndex)}updatePropertyPathsToWhitelistInFlatProps(e){let t=(0,wd.Z)(this.context.element().propertyPathsToWhitelistInFlatProps);if(e)t||(t=[]),t.push(this.twigPathWithoutRepeaterIndex);else if(t){const e=t.findIndex((e=>e===this.twigPathWithoutRepeaterIndex));e>-1&&t.splice(e,1)}this.context.updateElementValue("propertyPathsToWhitelistInFlatProps",t)}get hasSsr(){return this.context.element().template.includes("%%SSR%%")}get shouldControlValueCauseSsr(){const e=this.context.element().propertyPathsToSsrElementWhenValueChanges;return e&&e.includes(this.twigPathWithoutRepeaterIndex)}updatePropertyPathsToSsrElementWhenValueChanges(e){let t=(0,wd.Z)(this.context.element().propertyPathsToSsrElementWhenValueChanges);e?(t||(t=[]),t.push(this.twigPathWithoutRepeaterIndex)):t&&(t=t.filter((e=>e!==this.twigPathWithoutRepeaterIndex))),this.context.updateElementValue("propertyPathsToSsrElementWhenValueChanges",t)}};(0,r.gn)([(0,l.fI)()],l_.prototype,"path",void 0),(0,r.gn)([(0,l.fI)()],l_.prototype,"parentPath",void 0),(0,r.gn)([(0,l.fI)()],l_.prototype,"index",void 0),(0,r.gn)([(0,l.fI)()],l_.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],l_.prototype,"twigParentPath",void 0),(0,r.gn)([(0,l.fI)()],l_.prototype,"parentControl",void 0),(0,r.gn)([(0,l.tB)("context")],l_.prototype,"context",void 0),l_=(0,r.gn)([(0,l.wA)({name:"ControlSectionOrControl",components:{ElementStudioHideControlInput:r_,ElementStudioSaveNewDialog:Lm,ElementStudioFocusPointOptions:qf,ElementStudioVideoOptions:Of,ElementStudioIconsAutocomplete:xy,IconButton:Xa.Z,InlineRepeater:If.Z,ElementStudioBreakpointOptions:Ly,Icon:He.Z,ElementStudioIconOptions:mf,ElementStudioMediaSizeOptions:lf,ElementStudioMediaOptions:ef,ElementStudioPostChooserOptions:wf,TextInput:na.Z,Copyable:_v,ElementStudioDropdownOptions:Ty,ElementStudioVariableOptions:zy,DropdownInput:Cd.Z,ElementStudioRepeaterOptions:hy,ElementStudioRangeOptions:oy,Dropdown:Oc.Z,CopyButton:dv.Z,ShittyTextInput:cv,Repeater:nv.Z,ControlSectionOrControl:l_,draggable:ev(),Accordion:tv.Z,TwigCodeHelper:Nv,ElementStudioConditionInput:zv,ElementStudioUnitOptions:Yv,ElementStudioAlertBoxOptions:Wf}})],l_);const c_=l_,d_=c_;var u_=(0,N.Z)(d_,Xm,Ym,!1,null,null,null);const p_=u_.exports;let h_=class extends s.ZP{get sectionName(){return`${this.section}Sections`}handleDrag(e){this.context.replaceControls(this.sectionName,e)}get canPaste(){return Q.kD.elementStudioClipboard.copiedControl}handlePaste(){if(!Q.kD.elementStudioClipboard.copiedControl)return;const e=Q.kD.elementStudioClipboard.copiedControl;e&&this.context.pasteControl(this.sectionName,e)}addSection(){this.context.addControl(this.sectionName,"section")}addPreset(){this.context.addPreset(this.sectionName)}};(0,r.gn)([(0,l.fI)()],h_.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],h_.prototype,"section",void 0),(0,r.gn)([(0,l.tB)("context")],h_.prototype,"context",void 0),h_=(0,r.gn)([(0,l.wA)({components:{ControlSectionOrControl:p_,draggable:ev()}})],h_);const g_=h_,m_=g_;var v_=(0,N.Z)(m_,jm,qm,!1,null,null,null);const y_=v_.exports;var f_=n(81252),__=n(85256),b_=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e._v(" "+e._s(e.__("Dependencies"))+" "),t("Repeater",{attrs:{value:e.value||[],control:{options:{repeaterOptions:{titleTemplate:"{title}",defaultTitle:e.__("Dependency")}}}},on:{input:function(t){return e.updateDependenciesRoot(t)}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:s}){return[t(ed.Z,{attrs:{label:e.__("Title"),value:s.title},on:{input:function(t){return e.updateDependency(t,`[${n}].title`)}}}),t("Accordion",{attrs:{expanded:"scripts"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("scripts")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[e._v(" "+e._s(e.sprintf(e._doc("Scripts (%s)","%s: Number of scripts"),s.scripts?s.scripts.length:0))+" ")])]},proxy:!0},{key:"content",fn:function(){return[t("Repeater",{attrs:{value:s.scripts,control:{options:{repeaterOptions:{titleTemplate:e.__("URL to script")}}}},on:{input:function(t){return e.updateDependencies(t,`[${n}].scripts`)}},scopedSlots:e._u([{key:"default",fn:function({index:s,value:i}){return[t(Wm.Z,{attrs:{placeholder:e.__("Script"),value:i,items:e.jsLocalDependencies},on:{input:function(t){return e.updateDependency(t,`[${n}].scripts[${s}]`)}}}),!i||e.dependencyIsNotLocal(i,e.jsLocalDependencies)?t("div",[t("div",i?[e._v(" "+e._s(e.__("The dependency is a hardcoded value:"))+" ")]:[e._v(e._s(e.__("Hardcode a value:")))]),t("div",[e._v(" "+e._s(e.__("Remember to use"))+" "),t("pre",[e._v("%%BREAKDANCE_ELEMENTS_PLUGIN_URL%%")])]),t("ShittyTextInput",{attrs:{value:i},on:{input:function(t){return e.updateDependency(t,`[${n}].scripts[${s}]`)}}})],1):e._e(),t(Qo.Z,{attrs:{outlined:"",small:""},on:{click:e.getLocalDependenciesFilesFromWordpress}},[e._v(" "+e._s(e.__("Reload dependencies files"))+" ")])]}}],null,!0)})]},proxy:!0}],null,!0)}),t("Accordion",{attrs:{expanded:"inlineScripts"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("inlineScripts")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[e._v(" "+e._s(e.sprintf(e._doc("Inline Scripts (%s)","%s: Number of inline scripts"),s.inlineScripts?s.inlineScripts.length:0))+" ")])]},proxy:!0},{key:"content",fn:function(){return[t("Repeater",{attrs:{value:s.inlineScripts,control:{options:{repeaterOptions:{titleTemplate:e.__("JavaScript")}}}},on:{input:function(t){return e.updateDependencies(t,`[${n}].inlineScripts`)}},scopedSlots:e._u([{key:"default",fn:function({index:s,value:i}){return[t("div",{staticClass:"element-studio__execute-inline-script-dependencies"},[t(Qo.Z,{attrs:{small:"",outlined:""},on:{click:function(t){return e.executeInlineScript(`[${n}].inlineScripts[${s}]`)}}},[e._v(" "+e._s(e.__("Execute code"))+" ")])],1),t("CodeInput",{attrs:{value:i,language:"javascript","twig-variables":e.twigVariables,tags:e.tags},on:{input:function(t){return e.updateDependency(t||"",`[${n}].inlineScripts[${s}]`)}}})]}}],null,!0)})]},proxy:!0}],null,!0)}),t("Accordion",{attrs:{expanded:"styles"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("styles")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[e._v(" "+e._s(e.sprintf(e._doc("Styles (%s)","%s: Number of styles"),s.styles?s.styles.length:0))+" ")])]},proxy:!0},{key:"content",fn:function(){return[t("Repeater",{attrs:{value:s.styles,control:{options:{repeaterOptions:{titleTemplate:e.__("URL to style")}}}},on:{input:function(t){return e.updateDependencies(t,`[${n}].styles`)}},scopedSlots:e._u([{key:"default",fn:function({index:s,value:i}){return[t(Wm.Z,{attrs:{placeholder:e.__("Style"),value:i,items:e.cssLocalDependencies},on:{input:function(t){return e.updateDependency(t,`[${n}].styles[${s}]`)}}}),!i||e.dependencyIsNotLocal(i,e.cssLocalDependencies)?t("div",[t("div",i?[e._v(" "+e._s(e.__("The dependency is a hardcoded value:"))+" ")]:[e._v(e._s(e.__("Hardcode a value:")))]),t("div",[e._v(" "+e._s(e.__("Remember to use"))+" "),t("pre",[e._v("%%BREAKDANCE_ELEMENTS_PLUGIN_URL%%")])]),t("ShittyTextInput",{attrs:{value:i},on:{input:function(t){return e.updateDependency(t,`[${n}].styles[${s}]`)}}})],1):e._e(),t(Qo.Z,{attrs:{outlined:"",small:""},on:{click:e.getLocalDependenciesFilesFromWordpress}},[e._v(" "+e._s(e.__("Reload dependencies files"))+" ")])]}}],null,!0)})]},proxy:!0}],null,!0)}),t("Accordion",{attrs:{expanded:"inlineStyles"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("inlineStyles")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[e._v(" "+e._s(e.sprintf(e._doc("Inline Styles (%s)","%s: Number of inline styles"),s.inlineStyles?s.inlineStyles.length:0))+" ")])]},proxy:!0},{key:"content",fn:function(){return[t("Repeater",{attrs:{path:"inlineStyles",value:s.inlineStyles,control:{options:{repeaterOptions:{titleTemplate:e.__("CSS")}}}},on:{input:function(t){return e.updateDependencies(t,`[${n}].inlineStyles`)}},scopedSlots:e._u([{key:"default",fn:function({index:s,value:i}){return[t("CodeInput",{attrs:{value:i,language:"css","twig-variables":e.twigVariables,tags:e.tags},on:{input:function(t){return e.updateDependency(t||"",`[${n}].inlineStyles[${s}]`)}}})]}}],null,!0)})]},proxy:!0}],null,!0)}),t("div",{staticClass:"element-studio-dependencies-separator"}),t("Accordion",{attrs:{expanded:"builderCondition"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("builderCondition")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[s.builderCondition?[e._v(" "+e._s(e.__("Builder Condition (present)"))+" ")]:[e._v(" "+e._s(e.__("Builder Condition (empty)"))+" ")]],2)]},proxy:!0},{key:"content",fn:function(){return[t("CodeInput",{attrs:{value:s.builderCondition,language:"javascript","twig-variables":e.twigVariables},on:{input:function(t){return e.updateDependency(t||"",`[${n}].builderCondition`)}}}),t("div",{class:{"element-studio-action-info":!0,"element-studio-action-info__open":e.conditionInfoOpen},on:{click:function(t){e.conditionInfoOpen=!e.conditionInfoOpen}}},[t("TextWithChevron",{attrs:{open:e.conditionInfoOpen}},[e._t("default",(function(){return[e._v(" "+e._s(e.__("Decides if the dependencies are added to the builder"))+" ")]}))],2),t("div",{staticClass:"mt-2"},[e._v(" "+e._s(e.__("Can run Twig and JS code."))+" ")]),t("div",[e._v(" "+e._s(e.__("When left empty the dependencies will always be added."))+" ")]),t("div",[e._v(" "+e._s(e.sprintf(e._doc("If any code is present and the result returns a %s value the dependencies will be added.","%s: Code value 'true'"),e.codeTrue))+" ")]),t("div",[e._v(" "+e._s(e.sprintf(e._doc("If it returns %s no dependencies are added.","%s: Code value 'false'"),e.codeFalse))+" ")])],1)]},proxy:!0}],null,!0)}),t("Accordion",{attrs:{expanded:"frontendCondition"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("frontendCondition")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[s.frontendCondition?[e._v(" "+e._s(e.__("Frontend Condition (present)"))+" ")]:[e._v(" "+e._s(e.__("Frontend Condition (empty)"))+" ")]],2)]},proxy:!0},{key:"content",fn:function(){return[t("CodeInput",{attrs:{value:s.frontendCondition,language:"x-php","twig-variables":e.twigVariables},on:{input:function(t){return e.updateDependency(t||"",`[${n}].frontendCondition`)}}}),t("div",{class:{"element-studio-action-info":!0,"element-studio-action-info__open":e.conditionInfoOpen},on:{click:function(t){e.conditionInfoOpen=!e.conditionInfoOpen}}},[t("TextWithChevron",{attrs:{open:e.conditionInfoOpen}},[e._t("default",(function(){return[e._v(" "+e._s(e.__("Decides if the dependencies are added to the frontend"))+" ")]}))],2),t("div",{staticClass:"mt-2"},[e._v(" "+e._s(e.__("Can run Twig and PHP code."))+" ")]),t("div",[e._v(" "+e._s(e.__("When left empty the dependencies will always be added."))+" ")]),t("div",[e._v(" "+e._s(e.sprintf(e._doc("If any code is present and the result returns a %s value the dependencies will be added.","%s: Code value 'true'"),e.codeTrue))+" ")]),t("div",[e._v(" "+e._s(e.sprintf(e._doc("If it returns %s no dependencies are added.","%s: Code value 'false'"),e.codeFalse))+" ")])],1)]},proxy:!0}],null,!0)})]}}])})],1)},S_=[],C_=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"d-flex align-center"},[t("Icon",{staticClass:"mr-2",attrs:{icon:"ChevronDownIcon",rotate:e.open?"90":void 0,size:"12"}}),t("b",[e._t("default")],2)],1)},x_=[];let w_=class extends s.ZP{};(0,r.gn)([(0,l.fI)()],w_.prototype,"open",void 0),w_=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],w_);const I_=w_,P_=I_;var k_=(0,N.Z)(P_,C_,x_,!1,null,null,null);const E_=k_.exports;var T_=n(36300);const D_=iu.G0([iu.i0("id"),iu.i0("parentId"),iu.i0("selector"),iu.i0("parent_selector"),iu.i0("postId"),iu.i0("ssr"),iu.i0("children")]),A_=D_.types.map((({value:e})=>e));let Z_=class extends s.ZP{constructor(){super(...arguments),this.accordionState="",this.index=0,this.conditionInfoOpen=!1}get tags(){return A_}get twigVariables(){return this.context.getPathsToAllControls()}get codeTrue(){return"true"}get codeFalse(){return"false"}async mounted(){Q.PK.localDependenciesFiles.length||await this.getLocalDependenciesFilesFromWordpress()}async getLocalDependenciesFilesFromWordpress(){(0,id.pipe)(await(0,ad.D)({action:"breakdance_get_local_dependency_files",decoder:iu.IX(Km.xY),resultKey:"localDependencyFiles"}),(0,od.fold)((e=>e.forEach((e=>cd.Z.log.message(e.msg)))),(e=>{Q.PK.setLocalDependenciesFiles(e)})))}updateDependenciesRoot(e){this.context.updateDependency(e)}updateDependencies(e,t){const n=(0,wd.Z)(this.value)||[];Sd()(n,t,e.map((e=>"string"===typeof e?e:""))),this.context.updateDependency(n)}updateDependency(e,t){const n=(0,wd.Z)(this.value)||[];Sd()(n,t,e),this.context.updateDependency(n)}toggleAccordion(e){this.accordionState=this.accordionState===e?"":e}executeInlineScript(e){const t=j()(this.value,e);t&&(0,T_.Oz)((0,T.RY)(),{code:t,origin:"Executed inline script from Element Studio"})}dependencyIsNotLocal(e,t){return!t.find((t=>"value"in t&&t.value===e))}get jsLocalDependencies(){return this.localDependenciesAsVuetifySelectShape("js")}get cssLocalDependencies(){return this.localDependenciesAsVuetifySelectShape("css")}localDependenciesAsVuetifySelectShape(e){const t=[];return Q.PK.localDependenciesFiles.forEach((n=>{n.files[e].length&&(t.push({header:n.name}),n.files[e].forEach((e=>{t.push({text:e.name,value:e.url})})))})),t}};(0,r.gn)([(0,l.fI)()],Z_.prototype,"value",void 0),(0,r.gn)([(0,l.tB)("context")],Z_.prototype,"context",void 0),Z_=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,TextWithChevron:E_,CodeInput:f_.Z,Accordion:tv.Z,ShittyTextInput:cv,Repeater:nv.Z}})],Z_);const O_=Z_,M_=O_;var B_=(0,N.Z)(M_,b_,S_,!1,null,null,null);const L_=B_.exports,N_=e=>{const t=(0,wd.Z)(e),n=F_(t);return n.controls.settingsSections=[],n.cssTemplate=n.cssTemplate.split("\n{#%---")[0],n.dynamicPropertyPaths&&(n.dynamicPropertyPaths=n.dynamicPropertyPaths.filter((e=>!e.path.startsWith("settings.")))),n.propertyPathsToWhitelistInFlatProps&&(n.propertyPathsToWhitelistInFlatProps=n.propertyPathsToWhitelistInFlatProps.filter((e=>!e.startsWith("settings.")))),n};function F_(e){const t=(0,wd.Z)(e);return(0,__.f)(t.controls).forEach((e=>{t.controls[e]=t.controls[e].filter((e=>!e.options.isExternal))})),t}var R_=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("Accordion",{attrs:{expanded:e.accordionState===e.actionKey},on:{toggle:e.toggleAccordion},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[e._v(" "+e._s(e.actionName)+" ("+e._s(e.value&&e.value[e.actionKey]?e.value[e.actionKey].length:0)+") ")])]},proxy:!0},{key:"content",fn:function(){return[t("b",[e._t("action-description")],2),t("Repeater",{attrs:{value:e.value[e.actionKey],control:{options:{repeaterOptions:{titleTemplate:e.__("Script"),buttonName:e.__("Add script")}}},"default-new-value":{script:""}},on:{input:function(t){return e.updateActions(t)}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:s}){return[t("CodeInput",{attrs:{language:"javascript",value:s.script,"twig-variables":e.twigVariables,tags:e.tags},on:{input:function(t){return e.updateAction(t||"",`${e.actionKey}[${n}].script`)}}}),t("div",{class:{"element-studio-action-info":!0,"element-studio-action-info__open":e.actionInfoOpen},on:{click:function(t){e.actionInfoOpen=!e.actionInfoOpen}}},[t("TextWithChevron",{attrs:{open:e.actionInfoOpen}},[e._t("default",(function(){return[e._v(" "+e._s(e.__("Available within the action's code:"))+" ")]}))],2),"onAfterDeletedElement"===e.actionKey?[t("div",{staticClass:"mt-3"},[e._v(" "+e._s(e.sprintf(e._doc("Tags: %s and %s are available.","1: tag name, 2: tag name"),e.parentSelectorCode,e.parentIdCode))+" ")])]:[t("div",{staticClass:"mt-3"},[e._v(" "+e._s(e.__("You can use Twig to access the element properties. eg."))+" "),t("br"),t("code",{pre:!0},[e._v(" {{ design.background.color }} ")]),e._v(". ")]),t("div",{staticClass:"mt-3"},[e._v(" "+e._s(e.sprintf(e._doc("%s are also available.","%s: Tag names (SELECTOR and ID)"),e.selectorAndIdCode))+" ")])]],2),e.withDependencies?t("Repeater",{attrs:{value:s.dependencies,control:{options:{repeaterOptions:{titleTemplate:e.__("Dependency"),buttonName:e.__("Add dependency")}}}},on:{input:function(t){return e.updateDependencies(t,n)}},scopedSlots:e._u([{key:"default",fn:function({index:s,value:i}){return[t(zm.Z,{attrs:{items:e.pathsToAllControls,value:i},on:{input:function(t){return e.updateDependency(t,`${e.actionKey}[${n}].dependencies[${s}]`)}}}),t("div",{class:{"element-studio-action-info":!0,"element-studio-action-info__open":e.dependencyInfoOpen},on:{click:function(t){e.dependencyInfoOpen=!e.dependencyInfoOpen}}},[t("TextWithChevron",{attrs:{open:e.dependencyInfoOpen}},[e._t("default",(function(){return[e._t("dependency-description-title")]}))],2),t("div",{staticClass:"mt-2"},[e._t("dependency-description")],2)],1)]}}],null,!0)}):e._e(),t(Um.Z,{attrs:{"input-value":s.runForAllChildren,label:e.__("Run for all children"),hint:e.__("beware that the Twig code running in the action will be with the child's data, including tags"),"persistent-hint":""},on:{change:function(t){return e.updateAction(t,`${e.actionKey}[${n}].runForAllChildren`)}}})]}}],null,!0)})]},proxy:!0}],null,!0)})],1)},V_=[],$_=n(45021),W_=n.n($_);let U_=class extends s.ZP{constructor(){super(...arguments),this.index=0,this.actionInfoOpen=!1,this.dependencyInfoOpen=!1}get actionName(){return W_()(this.actionKey)}get tags(){return A_}get twigVariables(){return this.context.getPathsToAllControls()}get parentSelectorCode(){return"%%PARENT_SELECTOR%%"}get parentIdCode(){return"%%PARENT_ID%%"}get selectorAndIdCode(){return"%%SELECTOR%%, %%ID%%"}toggleAccordion(){this.$emit("toggle",this.accordionState===this.actionKey?"":this.actionKey)}getValueOrDefault(e){let t=(0,wd.Z)(this.value);return t?t[e]||(t[e]=[{script:""}]):t={[e]:[{script:""}]},t}updateActions(e){const t=this.getValueOrDefault(this.actionKey);t[this.actionKey]=e,this.context.updateActions(t)}updateAction(e,t){const n=(0,wd.Z)(this.value);Sd()(n,t,e),this.context.updateActions(n)}updateDependencies(e,t){const n=this.getValueOrDefault(this.actionKey);let s=n[this.actionKey];s||(s=[]),s[t].dependencies=e.map((e=>"string"===typeof e?e:"")),n[this.actionKey]=s,this.context.updateActions(n)}get pathsToAllControls(){const e=this.context.element().controls;return[e.designSections.length?"design":null,e.contentSections.length?"content":null,...this.context.getPathsToAllControls([],[])].filter(Boolean)}updateDependency(e,t){const n=(0,wd.Z)(this.value);Sd()(n,t,e),this.context.updateActions(n)}};(0,r.gn)([(0,l.fI)()],U_.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],U_.prototype,"actionKey",void 0),(0,r.gn)([(0,l.fI)()],U_.prototype,"accordionState",void 0),(0,r.gn)([(0,l.fI)({default:!0})],U_.prototype,"withDependencies",void 0),(0,r.gn)([(0,l.tB)("context")],U_.prototype,"context",void 0),U_=(0,r.gn)([(0,l.wA)({components:{TextWithChevron:E_,CodeInput:f_.Z,ShittyTextInput:cv,Repeater:nv.Z,Accordion:tv.Z}})],U_);const z_=U_,H_=z_;var G_=(0,N.Z)(H_,R_,V_,!1,null,null,null);const K_=G_.exports;var j_=n(22996),q_=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Repeater",{attrs:{value:e.value||[],control:{options:{repeaterOptions:{defaultNewValue:{name:"",template:""},defaultTitle:e.__("HTML Attribute"),titleTemplate:"{name}",buttonName:e.__("Add new HTML attribute")}}}},on:{input:function(t){return e.updateAttributes(t)}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:s}){return[t("b",[e._v(e._s(e.__("Attribute Name")))]),t(ed.Z,{attrs:{value:s.name,rules:[e.htmlAttributeNameRule]},on:{input:function(t){return e.updateName(n,t)}}}),t("b",[e._v(e._s(e.__("Attribute Value")))]),"template"in s?t("CodeInput",{attrs:{value:s.template,language:"html"},on:{input:function(t){return e.updateTemplateValue(n,t)}}}):"propertyPath"in s?t(ed.Z,{attrs:{value:s.template},on:{input:function(t){return e.updatePropertyPathValue(n,t)}}}):"rawValue"in s?t(ed.Z,{attrs:{value:s.template},on:{input:function(t){return e.updateRawValue(n,t)}}}):e._e()]}}])})},X_=[];let Y_=class extends s.ZP{updateAttributes(e){this.$emit("input",e)}updateName(e,t){const n=(0,wd.Z)(this.value);!0===this.htmlAttributeNameRule(t)&&(n[e].name=t.trim(),this.$emit("input",n))}updateTemplateValue(e,t){const n=(0,wd.Z)(this.value);n[e].template=t??"",this.$emit("input",n)}updatePropertyPathValue(e,t){const n=(0,wd.Z)(this.value);n[e].propertyPath=t,this.$emit("input",n)}updateRawValue(e,t){const n=(0,wd.Z)(this.value);n[e].rawValue=t,this.$emit("input",n)}htmlAttributeNameRule(e){return Dg.hB.validateHtmlAttributeName(e)}};(0,r.gn)([(0,l.fI)({default:()=>[]})],Y_.prototype,"value",void 0),(0,r.gn)([(0,l.tB)("context")],Y_.prototype,"context",void 0),Y_=(0,r.gn)([(0,l.wA)({components:{CodeInput:f_.Z,Repeater:nv.Z,Dropdown:Oc.Z,Accordion:tv.Z,draggable:ev()}})],Y_);const Q_=Y_,J_=Q_;var eb=(0,N.Z)(J_,q_,X_,!1,null,null,null);const tb=eb.exports;var nb=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Repeater",{attrs:{value:e.value||[],control:{options:{repeaterOptions:{titleTemplate:e.sprintf(e._doc("Class %s","%s: Class name"),".{name}"),buttonName:e.__("Add Class"),defaultNewValue:{name:"my-class",template:"yes"}}}}},on:{input:function(t){return e.updateClasses(t)}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:s}){return[t("b",[e._v(e._s(e.__("Class Name")))]),t(ed.Z,{attrs:{value:s.name,rules:[e.htmlClassNameRule]},on:{input:function(t){return e.updateName(n,t)}}}),t("b",[e._v(e._s(e.__("Class Condition Twig Template")))]),t("CodeInput",{attrs:{value:s.template,language:"html"},on:{input:function(t){return e.updateValue(n,t)}}}),t("div",{staticClass:"mt-2"},[e._v(" "+e._s(e.__("The template can run Twig code. Properties like design.something.whatever are available. If the template returns a blank string, the class will not be added. If the template returns anything, the class will be added."))+" ")]),t("div",[e._v(" "+e._s(e.__("(the returned value is trimmed for spaces and newlines)"))+" ")])]}}])})},sb=[];let ib=class extends s.ZP{updateClasses(e){this.$emit("input",e)}updateName(e,t){const n=(0,wd.Z)(this.value);!0===this.htmlClassNameRule(t)&&(n[e].name=t.trim(),this.$emit("input",n))}updateValue(e,t){const n=(0,wd.Z)(this.value);n[e].template=t??"",this.$emit("input",n)}htmlClassNameRule(e){return Dg.hB.validateHtmlClassName(e)}};(0,r.gn)([(0,l.fI)({default:[]})],ib.prototype,"value",void 0),(0,r.gn)([(0,l.tB)("context")],ib.prototype,"context",void 0),ib=(0,r.gn)([(0,l.wA)({components:{CodeInput:f_.Z,Repeater:nv.Z,Dropdown:Oc.Z,Accordion:tv.Z,draggable:ev()}})],ib);const ob=ib,ab=ob;var rb=(0,N.Z)(ab,nb,sb,!1,null,null,null);const lb=rb.exports;var cb=n(36798),db=n(75617),ub=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Jc.Z,[t(yd.ZB,[e._v(" "+e._s(e.__("Looks Good"))+" "),t("DropdownInput",{attrs:{items:e.dropdownItems,value:e.value.looksGood,clearable:""},on:{input:function(t){return e.updateValueForKey("looksGood",t)}}}),t("br"),e._v(" "+e._s(e.__("Options Are Good"))+" "),t("DropdownInput",{attrs:{items:e.dropdownItems,value:e.value.optionsGood,clearable:""},on:{input:function(t){return e.updateValueForKey("optionsGood",t)}}}),t("br"),e._v(" "+e._s(e.__("Options Work"))+" "),t("DropdownInput",{attrs:{items:e.dropdownItems,value:e.value.optionsWork,clearable:""},on:{input:function(t){return e.updateValueForKey("optionsWork",t)}}}),t("br"),e._v(" "+e._s(e.__("Dynamic Behavior Works"))+" "),t("DropdownInput",{attrs:{items:e.dropdownItems,value:e.value.dynamicBehaviorWorks,clearable:""},on:{input:function(t){return e.updateValueForKey("dynamicBehaviorWorks",t)}}}),t("br"),t("br"),t(db.Z,{staticStyle:{border:"1px solid var(--gray500)"},attrs:{filled:"",value:e.value.notes},on:{input:e.updateNotes}}),t("br")],1)],1)},pb=[];let hb=class extends s.ZP{get dropdownItems(){return["yes","no","unknown","sort of"]}updateValueForKey(e,t){const n=(0,wd.Z)(this.value);n[e]=t,this.emit(n)}updateNotes(e){const t=(0,wd.Z)(this.value);t.notes="string"===typeof e?e:"",this.emit(t)}emit(e){this.$emit("input",e)}};(0,r.gn)([(0,l.fI)()],hb.prototype,"value",void 0),hb=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z}})],hb);const gb=hb,mb=gb;var vb=(0,N.Z)(mb,ub,pb,!1,null,null,null);const yb=vb.exports;var fb=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("InlineRepeater",{attrs:{value:e.value||[]},on:{input:function(t){return e.updateElementValue(t)}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:s}){return[t(zm.Z,{attrs:{value:s,hint:e.__('To describe a repeater, use "[]". e.g: "content.list.my_repeater[].url"'),rules:[e.pathRules],items:e.allPaths},on:{input:function(t){return e.updatePropertyPathByIndex(n,t)}}})]}}])})},_b=[];let bb=class extends s.ZP{updateElementValue(e){const t=e.map((e=>"string"===typeof e?e:""));this.$emit("input",t)}updatePropertyPathByIndex(e,t){const n=(0,wd.Z)(this.value);t&&this.pathRules(t)&&(n[e]=t.trim(),this.updateElementValue(n))}pathRules(e){return(0,qe.qj)(e)}};(0,r.gn)([(0,l.fI)({default:()=>[]})],bb.prototype,"value",void 0),(0,r.gn)([(0,l.fI)({default:()=>[]})],bb.prototype,"allPaths",void 0),bb=(0,r.gn)([(0,l.wA)({components:{InlineRepeater:If.Z,Repeater:nv.Z,DropdownInput:Cd.Z,CodeInput:f_.Z,Dropdown:Oc.Z,Accordion:tv.Z,draggable:ev()}})],bb);const Sb=bb,Cb=Sb;var xb=(0,N.Z)(Cb,fb,_b,!1,null,null,null);const wb=xb.exports;var Ib=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.value.dynamicPropertyPaths&&e.value.dynamicPropertyPaths.length?t("Accordion",{attrs:{expanded:"dynamicPropertyPaths"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("dynamicPropertyPaths")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[e._v(" "+e._s(e.__("Dynamic Property Paths (deprecated)"))+" ")])]},proxy:!0},{key:"content",fn:function(){return[t("ElementStudioDynPropPaths",{attrs:{value:e.value.dynamicPropertyPaths,"all-paths":e.allPaths},on:{input:function(t){return e.updateElementValuePropPath(t,"dynamicPropertyPaths")}}})]},proxy:!0}],null,!1,445526283)}):e._e(),t("Accordion",{attrs:{expanded:"propertyPathsToWhitelistInFlatProps"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("propertyPathsToWhitelistInFlatProps")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[e._v(" "+e._s(e.__("Property paths to whitelist in flat props"))+" ")])]},proxy:!0},{key:"content",fn:function(){return[t("ElementStudioPropertyPaths",{attrs:{value:e.value.propertyPathsToWhitelistInFlatProps,"all-paths":e.allPathsWithDesignAndContent},on:{input:function(t){return e.updateElementValuePropPath(t,"propertyPathsToWhitelistInFlatProps")}}})]},proxy:!0}])}),t("Accordion",{attrs:{expanded:"dynamic-prop-paths"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("dynamic-prop-paths")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[e._v(" "+e._s(e.__("Property paths to SSR the element when value changes"))+" ")])]},proxy:!0},{key:"content",fn:function(){return[t("ElementStudioPropertyPaths",{attrs:{value:e.value.propertyPathsToSsrElementWhenValueChanges,"all-paths":e.allPathsWithDesignAndContent},on:{input:function(t){return e.updateElementValuePropPath(t,"propertyPathsToSsrElementWhenValueChanges")}}})]},proxy:!0}])}),t("Accordion",{attrs:{expanded:"spacing-bars"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("spacing-bars")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[e._v(e._s(e.__("Spacing Bars")))])]},proxy:!0},{key:"content",fn:function(){return[t("ElementStudioSpacingBars",{attrs:{value:e.value.spacingBars}})]},proxy:!0}])})],1)},Pb=[],kb=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Repeater",{attrs:{value:e.value||[],control:{options:{repeaterOptions:{titleTemplate:"{path} - {accepts}",buttonName:e.__("Add new Dynamic Property Path"),defaultNewValue:{accepts:"string",path:""}}}}},on:{input:function(t){return e.updateElementValue(t)}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:s}){return[t("b",[e._v(e._s(e.__("Dynamic Property Path")))]),t(zm.Z,{attrs:{value:s.path,hint:e.__('To describe a repeater, use "[]". e.g: "content.list.my_repeater[].url"'),rules:[e.pathRules],items:e.allPaths},on:{input:function(t){return e.updateDynamicPropertyPath(n,t)}}}),t("b",{staticClass:"d-block pt-2"},[e._v(e._s(e.__("Accepts:")))]),t("DropdownInput",{attrs:{items:e.getDynamicPathAcceptsItems,value:s.accepts},on:{input:function(t){return e.updateValue(n,t)}}})]}}])})},Eb=[];let Tb=class extends s.ZP{updateElementValue(e){this.$emit("input",e)}updateDynamicPropertyPath(e,t){const n=(0,wd.Z)(this.value);this.pathRules(t)&&(n[e].path=t.trim(),this.updateElementValue(n))}pathRules(e){return(0,qe.qj)(e)}get getDynamicPathAcceptsItems(){return(0,Hy.cS)()}updateValue(e,t){const n=(0,wd.Z)(this.value);n[e].accepts=t,this.updateElementValue(n)}};(0,r.gn)([(0,l.fI)({default:()=>[]})],Tb.prototype,"value",void 0),(0,r.gn)([(0,l.fI)({default:()=>[]})],Tb.prototype,"allPaths",void 0),Tb=(0,r.gn)([(0,l.wA)({components:{Repeater:nv.Z,DropdownInput:Cd.Z,CodeInput:f_.Z,Dropdown:Oc.Z,Accordion:tv.Z,draggable:ev()}})],Tb);const Db=Tb,Ab=Db;var Zb=(0,N.Z)(Ab,kb,Eb,!1,null,null,null);const Ob=Zb.exports;var Mb=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Repeater",{attrs:{value:e.value||[],control:{options:{repeaterOptions:{titleTemplate:e.__("Spacing bar"),buttonName:e.__("Add new spacing bar")}}}},on:{input:function(t){return e.updateSpaceBars(t)}},scopedSlots:e._u([{key:"default",fn:function({value:n,index:s}){return[t("ElementStudioSpacingBar",{attrs:{value:n},on:{input:function(t){return e.updateSpaceBar(t,s)}}})]}}])})},Bb=[],Lb=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"mt-4"},[e._v(e._s(e.__("Location")))]),t("DropdownInput",{attrs:{items:e.cssProperties,value:e.newSpaceBar.cssProperty},on:{input:e.updateLocationAndProperty}}),t("div",{staticClass:"mt-4"},[e._v(e._s(e.__("Affected property path")))]),t(zm.Z,{attrs:{items:e.pathsToAllControls,placeholder:"design.spacing.%%BREAKPOINT%%.top"},model:{value:e.newSpaceBar.affectedPropertyPath,callback:function(t){e.$set(e.newSpaceBar,"affectedPropertyPath",t)},expression:"newSpaceBar.affectedPropertyPath"}}),t("NiceButton",{on:{click:e.saveNewSpaceBar}},[e._v(e._s(e.__("Save")))])],1)},Nb=[],Fb=n(16442);let Rb=class extends s.ZP{constructor(){super(...arguments),this.newSpaceBar=this.value||{}}get pathsToAllControls(){return this.context.getPathsToAllControls()}get propertiesLocationsKeyPair(){const e=Km.g3.types.map((e=>e.value)),t=Km.U$.types.map((e=>e.value));return t.reduce(((t,n,s)=>({...t,[n]:e[s]})),{})}get cssProperties(){return Object.keys(this.propertiesLocationsKeyPair)}updateLocationAndProperty(e){this.newSpaceBar.cssProperty=e,this.newSpaceBar.location=this.propertiesLocationsKeyPair[e]}saveNewSpaceBar(){(0,su.zG)(Km.pG.decode(this.newSpaceBar),(0,ou.g_)((e=>{cd.Z.log.message((0,Ft.__)("Error saving new space bar, please fill out all fields")),(0,Fb.H)(e)}),(()=>{this.$emit("input",this.newSpaceBar)})))}};(0,r.gn)([(0,l.fI)()],Rb.prototype,"value",void 0),(0,r.gn)([(0,l.tB)("context")],Rb.prototype,"context",void 0),Rb=(0,r.gn)([(0,l.wA)({components:{NiceButton:Br.Z,DropdownInput:Cd.Z}})],Rb);const Vb=Rb,$b=Vb;var Wb=(0,N.Z)($b,Lb,Nb,!1,null,null,null);const Ub=Wb.exports;let zb=class extends s.ZP{updateSpaceBar(e,t){const n=(0,wd.Z)(this.value);n[t]=e,this.updateSpaceBars(n)}updateSpaceBars(e){this.context.updateElementValue("spacingBars",e)}};(0,r.gn)([(0,l.fI)({default:[]})],zb.prototype,"value",void 0),(0,r.gn)([(0,l.tB)("context")],zb.prototype,"context",void 0),zb=(0,r.gn)([(0,l.wA)({components:{ElementStudioSpacingBar:Ub,NiceButton:Br.Z,TextInput:na.Z,InlineRepeater:If.Z,Repeater:nv.Z,DropdownInput:Cd.Z,CodeInput:f_.Z,Dropdown:Oc.Z,Accordion:tv.Z,draggable:ev()}})],zb);const Hb=zb,Gb=Hb;var Kb=(0,N.Z)(Gb,Mb,Bb,!1,null,null,null);const jb=Kb.exports;let qb=class extends s.ZP{constructor(){super(...arguments),this.accordionState=""}toggleAccordion(e){this.accordionState=this.accordionState===e?"":e}get allPathsWithDesignAndContent(){return[this.context.element().controls.designSections.length?"design":null,this.context.element().controls.contentSections.length?"content":null,...this.context.getPathsToAllControls([],[])].filter(Boolean)}get allPaths(){return this.context.getPathsToAllControls()}updateElementValuePropPath(e,t){this.context.updateElementValue(t,e)}};(0,r.gn)([(0,l.fI)()],qb.prototype,"value",void 0),(0,r.gn)([(0,l.tB)("context")],qb.prototype,"context",void 0),qb=(0,r.gn)([(0,l.wA)({components:{ElementStudioSpacingBars:jb,ElementStudioPropertyPaths:wb,ElementStudioDynPropPaths:Ob,Accordion:tv.Z}})],qb);const Xb=qb,Yb=Xb;var Qb=(0,N.Z)(Yb,Ib,Pb,!1,null,null,null);const Jb=Qb.exports;var eS=n(46368),tS=n(86592);function nS(e){Q.PK.setTwigMacros(e),(0,tS.J6)((0,tS.GJ)(e),tS.rf),Q.kD.forceUpdateEntireCanvas()}const sS=qa()(Al.w.registerAllStoreActions,500);let iS=class extends s.ZP{constructor(){super(...arguments),this.tab=(0,Ug.z)(`element-studio-tab-${this.type}`)||"content",this.actionsAccordionState="",this.nameHasChanged=!1,this.useLocalIcon=!!fy.iconNames.find((e=>e===this.element.uiIcon))||!this.element.uiIcon||!1,this.contextMenu=!1,this.showNewMacroDialog=!1,this.savedCssSelection="",this.elementStudioContext={replaceControls:(e,t)=>{const n=(0,wd.Z)(this.element);Sd()(n.controls,e,t),this.emit(n)},pasteControl:(e,t)=>{const n=(0,wd.Z)(this.element),s=j()(n.controls,e);s.push(t),Sd()(n.controls,e,s),this.emit(n)},addControl:(e,t="text")=>{const n=(0,wd.Z)(this.element),s={slug:"section"===t?"new_section":"new_control",label:"section"===t?(0,Ft.__)("New Section"):(0,Ft.__)("New Control"),keywords:[],options:{type:t},enableMediaQueries:!1,enableHover:!1,enableVariables:!1,children:[]};(e.startsWith("contentSections")||"text"===t||"number"===t)&&(s.options.layout="vertical");const i=this.cleanElement.controls,o=j()(i,e);Array.isArray(o)?o.push(s):o.children.push(s),Sd()(i,e,o),n.controls=this.mergeElementControlsWithExternalControls(i),this.emit(n)},addPreset:e=>{const t=(0,wd.Z)(this.element),n=(0,wd.Z)(this.elementStudioContext.getPresetSection("EssentialElements\\typography"));if(!n)return;n.section.options.sectionOptions={...n.section.options.sectionOptions,type:"popout"};const s=this.cleanElement.controls,i=j()(s,e);Array.isArray(i)?i.push(n.section):i.children.push(n.section),Sd()(s,e,i),t.controls=this.mergeElementControlsWithExternalControls(s),this.emit(t)},deleteControl:(e,t)=>{const n=(0,wd.Z)(this.element),s=this.parentControls(e);Array.isArray(s)?s.splice(t,1):s.children.splice(t,1),Sd()(n.controls,e,s),this.emit(n)},updateControl:(e,t,n)=>{const s=(0,wd.Z)(this.element),i=this.parentControls(e);Array.isArray(i)?i.splice(t,1,n):i.children.splice(t,1,n),Sd()(s.controls,e,i),this.emit(s)},updateDependency:e=>{this.updateElementValue("dependencies",e)},updateActions:e=>{this.updateElementValue("actions",e),sS()},getPresetSection:e=>this.available.presetSections.find((t=>t.slug===e)),getPresetSections:()=>this.available.presetSections,getPathsToAllControls:(e=[],t=["section"])=>{const n=(0,Am.eH)(this.element.controls.contentSections,e,t,"content"),s=(0,Am.eH)(this.element.controls.designSections,e,t,"design");return[...n,...s]},element:()=>this.element,updateElementValue:this.updateElementValue,getElementStudioData:()=>this.available,updateElementStudioData:e=>{this.update(e)}}}async mounted(){document.addEventListener("contextmenu",this.handleRightClickInCodeInput)}beforeDestroy(){document.removeEventListener("contextmenu",this.handleRightClickInCodeInput)}onElementSlugChange(){this.nameHasChanged=!0}handleRightClickInCodeInput(e){const t=window.getSelection()?.toString();!t||"css"!==this.tab&&"html"!==this.tab||(e.preventDefault(),this.contextMenu={x:e.clientX,y:e.clientY})}handleCreateMacro(){this.savedCssSelection=window.getSelection()?.toString()||"",this.showNewMacroDialog=!0}async saveNewMacro(e){if(!this.savedCssSelection)return;this.contextMenu=!1;const t=this.savedCssSelection?.toString(),n=(0,Xf.dZ)(e.namespace,e.name),s=(0,tS.as)(t,{selector:"{{ selector }}",id:"{{ id }}",postId:"{{ postId }}"}).replace("macros.","_self."),i=`{% macro ${n}() %}\n\n${s} \n\n{% endmacro %}`,o=Qf()(e.name),a=e_(e.namespace,e.name);this.available.macros.find((e=>e.slug===a))?(0,Am.O6)(this.available.saveLocations,e,"macro"):(0,su.zG)(await(0,ad.D)({action:"breakdance_save_macro",dataToPost:{directoryPath:e.directoryPath,filename:o,macro:i},decoder:iu._4}),(0,ou.g_)((e=>{console.error(e),cd.Z.log.message((0,Ft.__)("Failed to save element, check console"))}),(()=>{const t=`{{ macros.${n}() }}`;cd.Z.log.message((0,Ft.gB)((0,Ft.__)("New macro created: %s. "),t)),Gu()(t);const s=(0,wd.Z)(this.available);s.macros.push({slug:a,directoryPath:e.directoryPath}),this.elementStudioContext.updateElementStudioData(s);const o=(0,wd.Z)(Q.PK.twigMacros);o.push({macro:i,slug:a}),nS(o)})))}updateSlug(){if(!window.confirm((0,Ft.gB)((0,Ft.__)("Changing the slug of an existing element will make it obsolete in all pages, everywhere. Continue anyway?"))))return;const e=(0,Am.kK)((0,Am.$_)(this.element.slug),this.element.name);this.updateElementValue("slug",e)}updateUiOrder(e){const t=Number(e);Number.isNaN(t)?this.updateElementValue("order",0):this.updateElementValue("order",t)}updateUiIcon(e="SquareIcon"){this.updateElementValue("uiIcon",e)}updateUseLocalIcon(e){this.useLocalIcon=e,e||this.updateUiIcon("")}updateClassName(e){!0===this.htmlClassNameRule(e)&&this.updateElementValue("className",e||!1)}htmlClassNameRule(e){return!e||Dg.hB.validateHtmlClassName(e)}isValidItemName(e){return(0,Am.nQ)(e)}updateElementName(e){if(!0!==(0,Am.nQ)(e))return;const t=(0,wd.Z)(this.element);t.name=e,this.emit(t)}updateElementValue(e,t){const n=(0,wd.Z)(this.element),s=(0,Zv.lX)(t);Sd()(n,e,s),this.emit(n)}emit(e){this.$emit("input",e)}updateTab(e){(0,Ug.r)(`element-studio-tab-${this.type}`,e),this.tab=e}mergeElementControlsWithExternalControls(e){const t=(0,wd.Z)(e);return(0,__.f)(this.element.controls).forEach((e=>{this.element.controls[e].forEach((n=>{n.options.isExternal&&t[e].push(n)}))})),t}get showAdvancedFeatures(){return(0,zg.y)()||Q.PK.isElementStudioPowerUser}get requiredPluginItems(){return Km.ws.types.map((e=>e.value))}get tags(){return A_}get pathsToAllControls(){return this.elementStudioContext.getPathsToAllControls()}get nestingRuleTypeIsContainer(){return(0,Fe.ZC)(this.cleanElement.nestingRule.type).length>0||"container-restricted"===this.cleanElement.nestingRule.type}get cleanElement(){return N_(this.element)}get elementCategories(){return Q.PK.builderElementCategories.map((e=>({text:e.label,value:e.slug})))}get badgeColors(){return Object.entries(eS.Z).map((([e])=>{const t=e.replace(/brand_/g,"brand").replace(/_dark|_light|breakdance_/g,"");return{text:t,value:`var(--${t})`}}))}get elementType(){return Km.iQ.types.map((e=>e.value))}get containerRestrictedElements(){return Object.values(Q.PK.elements).filter((e=>"container-restricted"===e?.nestingRule.type&&e?.slug!==Ge.COLUMNS_SLUG)).map((e=>e?.slug))}get elementsThisElementIsAllowedToBeInsideOf(){return Object.values(Q.PK.elements).filter((e=>e&&(0,Fe.V4)(this.element.nestingRule,e.nestingRule,e.slug))).map((e=>e?.slug))}get allElementSlugs(){return Object.values(Q.PK.elements).map((e=>e?.slug))}get elementClass(){return`.${(0,qe.MO)(this.element)}`}get elementClassToCopy(){return"oxygen"===Q.PK.builderMode?this.elementClass:`.breakdance ${this.elementClass}`}parentControls(e){return(0,wd.Z)(j()(this.element.controls,e))}update(e){this.$emit("update",e)}toggleActionAccordion(e){this.actionsAccordionState=e}get htmlTags(){return["section","div","span","p","h1","h2","h3","h4","h5","h6","footer","header","nav","aside","figure","figcaption","ul","ol","li","a","article","main","details","summary","img","video"].filter((e=>e!==this.cleanElement.htmlTag.default))}get defaultTag(){return[...this.htmlTags,this.cleanElement.htmlTag.default]}};(0,r.gn)([(0,l.fI)()],iS.prototype,"element",void 0),(0,r.gn)([(0,l.fI)({default:"primary"})],iS.prototype,"type",void 0),(0,r.gn)([(0,l.fI)()],iS.prototype,"available",void 0),(0,r.gn)([(0,l.RL)("element.name")],iS.prototype,"onElementSlugChange",null),(0,r.gn)([(0,l.DF)("context")],iS.prototype,"elementStudioContext",void 0),iS=(0,r.gn)([(0,l.wA)({components:{Dropdown:Oc.Z,ElementStudioSaveNewDialog:Lm,TextInput:na.Z,ElementStudioIconsAutocomplete:xy,ElementStudioManagePropertyPaths:Jb,ElementStudioPropertyPaths:wb,Accordion:tv.Z,ElementIcon:on.Z,ToggleInput:Zp.Z,Icon:He.Z,ElementStudioAttributes:tb,ElementStudioAdditionalClasses:lb,ElementStudioDefaultElements:j_.Z,CopyButton:dv.Z,ElementStudioAction:K_,ElementStudioDependencies:L_,ElementStudioControls:y_,CodeInput:f_.Z,ElementStudioDefaultProperties:cb.Z,ElementStudioProjectManagement:yb}})],iS);const oS=iS,aS=oS;var rS=(0,N.Z)(aS,Hm,Gm,!1,null,null,null);const lS=rS.exports;function cS(){const e=Q.PK.builderMode||"breakdance";return{className:!1,uiIcon:!1,category:"other",badge:!1,htmlTag:{default:"div",options:[],pathToControl:!1},template:"Blank Element",attributes:!1,cssTemplate:"%%SELECTOR%% { }",defaultCss:" ",defaultProperties:!1,defaultChildren:!1,controls:{contentSections:[],designSections:[],settingsSections:[]},dependencies:!1,actions:!1,nestingRule:{type:"final"},spacingBars:!1,dynamicPropertyPaths:!1,settings:!1,addPanelRules:!1,experimental:!1,availableIn:[e],order:0,additionalClasses:!1,projectManagement:!1,propertyPathsToWhitelistInFlatProps:!1,propertyPathsToSsrElementWhenValueChanges:!1}}let dS=class extends s.ZP{constructor(){super(...arguments),this.lastSavedElement=!1,this.currentlyEditingElement=!1,this.saveInProgress=!1,this.throttledUpdateElement=U()(qe.Cf,500),this.mode=(0,Ug.z)("element-studio-mode")||"normal"}get elementsSlug(){return this.value.elements.map((e=>e.slug))}updateCurrentlyEditingElement(e){this.currentlyEditingElement=(0,wd.Z)(e),!1===this.lastSavedElement&&(this.lastSavedElement=(0,wd.Z)(e))}updateAvailableElementsAndStore(e){const t=e.element.slug;this.lastSavedElement&&t!==this.lastSavedElement.element.slug&&(0,Am.$_)(t)===(0,Am.$_)(this.lastSavedElement.element.slug)&&this.deleteElementFromServer(this.lastSavedElement);const n=!!this.value.elements.find((e=>e.slug===t));if(!n&&e.directoryPath){const n=(0,wd.Z)(this.value);n.elements.push({slug:t,directoryPath:e.directoryPath}),this.$emit("input",n)}this.lastSavedElement=e}get hasUnsavedChanges(){return!(!this.currentlyEditingElement||!this.lastSavedElement)&&!oh()(this.lastSavedElement.element,this.currentlyEditingElement.element)}updateData(e){this.$emit("input",e)}updateElement(e){if(!this.currentlyEditingElement||!this.lastSavedElement||!this.lastSavedElement.element)return;const t=e.slug!==this.lastSavedElement.element.slug;let n=this.currentlyEditingElement.directoryPath;t&&this.currentlyEditingElement.directoryPath&&(n=(0,Xf.Lg)({directoryPath:(0,Xf.HT)(this.currentlyEditingElement.directoryPath),elementName:this.currentlyEditingElement.element.name})),this.currentlyEditingElement={directoryPath:n,element:e,onlyForAdvancedUsers:this.currentlyEditingElement.onlyForAdvancedUsers},this.throttledUpdateElement(e)}deleteElementFromStore(e){const t=this.value.elements.findIndex((t=>t.slug===e));c.configStore.deleteElement(e),-1!==t&&this.value.elements.splice(t,1)}deleteElement(){this.currentlyEditingElement&&this.deleteElementFromServer(this.currentlyEditingElement,(()=>{this.currentlyEditingElement=!1}))}async deleteElementFromServer(e,t=(()=>{})){e.element&&(0,id.pipe)(await(0,ad.D)({action:"breakdance_delete_element",dataToPost:{directoryPath:e.directoryPath},decoder:iu.i0("success"),resultKey:"data"}),(0,od.fold)((()=>{cd.Z.log.message("Failed to delete element")}),(()=>{e.element?(this.deleteElementFromStore(e.element.slug),t()):cd.Z.log.message("Failed to delete element")})))}discardChanges(){this.lastSavedElement&&this.lastSavedElement.element&&this.updateElement(this.lastSavedElement.element),this.resetCurrentlyEditingElement()}resetCurrentlyEditingElement(){this.currentlyEditingElement=!1,this.lastSavedElement=!1,this.$emit("active",null)}switchMode(){switch(this.mode){case"split-vertical":this.mode="split-horizontal",this.$emit("width",750);break;case"split-horizontal":this.$emit("width",600),this.mode="normal";break;case"normal":this.$emit("width",600),this.mode="split-vertical";break}(0,Ug.r)("element-studio-mode",this.mode)}openElement(e){const t=(0,wd.Z)(c.configStore.element(e)),n=this.value.elements.find((t=>t.slug===e));if(!n)return;const s=this.value.saveLocations.find((e=>n.directoryPath.startsWith(e.directoryPath))),i=!!s?.onlyForAdvancedUsers;this.updateCurrentlyEditingElement({element:t,directoryPath:n.directoryPath,onlyForAdvancedUsers:i}),this.$emit("active","element")}saveAs(e){if(!this.currentlyEditingElement)return;const{namespace:t,directoryPath:n,onlyForAdvancedUsers:s}=e,i=(0,wd.Z)(this.currentlyEditingElement.element);this.currentlyEditingElement.directoryPath!==n&&(i.slug=""),this.saveToServer(i,(0,Xf.Lg)({directoryPath:n,elementName:this.currentlyEditingElement.element.name}),t,!1,s)}saveNewItem(e){const t=(0,Am.kK)(e.namespace,e.name);if(this.value.elements.find((e=>e.slug===t)))return void(0,Am.O6)(this.value.saveLocations,e,"element");const n={...cS(),slug:t,name:e.name};this.saveToServer(n,(0,Xf.Lg)({directoryPath:e.directoryPath,elementName:e.name}),e.namespace,!1,e.onlyForAdvancedUsers),this.$emit("active","element")}saveOverride(e){this.currentlyEditingElement&&this.currentlyEditingElement.directoryPath&&this.saveToServer(this.currentlyEditingElement.element,this.currentlyEditingElement.directoryPath,(0,Am.$_)(this.currentlyEditingElement.element.slug),e,this.currentlyEditingElement.onlyForAdvancedUsers)}async saveToServer(e,t,n,s=!1,i){this.saveInProgress=!0;const o=n||(0,Am.$_)(e.slug),a=N_(e),r=e.slug||(0,Am.kK)(o,e.name);(0,id.pipe)(await(0,ad.D)({action:"breakdance_save_element",dataToPost:{...(0,Xf.x)(a,o),directoryPath:t,bypassPsalm:s?"yes":"no"},decoder:iu._4}),(0,od.fold)((e=>{console.error(e),cd.Z.log.message("Failed to save element, check console")}),(()=>{const n={element:{...(0,wd.Z)(e),slug:r,name:e.name.split(" ").map((e=>e.charAt(0).toUpperCase()+e.substring(1))).join(" ")},directoryPath:t,onlyForAdvancedUsers:i};this.updateCurrentlyEditingElement(n),this.updateAvailableElementsAndStore(n),(0,qe.Cf)(n.element)}))),this.saveInProgress=!1}};(0,r.gn)([(0,l.fI)()],dS.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],dS.prototype,"width",void 0),dS=(0,r.gn)([(0,l.wA)({components:{ElementStudioTabsAndPanels:lS,ElementStudioWidthAdjustmentBar:wm,ElementStudioTopbar:$m}})],dS);const uS=dS,pS=uS;var hS=(0,N.Z)(pS,Im,Pm,!1,null,null,null);const gS=hS.exports,mS=iu.dt({slug:iu.Z_,directoryPath:iu.Z_}),vS=iu.G0([iu.i0("element"),iu.i0("macro"),iu.i0("preset")]),yS=iu.dt({directoryPath:iu.Z_,namespace:iu.Z_,type:vS,label:iu.Z_,onlyForAdvancedUsers:iu.O7}),fS=iu.dt({slug:iu.Z_,section:Qm.ur}),_S=iu.dt({elements:iu.IX(mS),macros:iu.IX(mS),presets:iu.IX(mS),saveLocations:iu.IX(yS),presetSections:iu.IX(fS)});var bS=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"element-studio-wrapper":e.currentlyEditingMacro,"element-studio__hide-the-close-button":!e.currentlyEditingMacro,"element-studio__hide-the-switch-mode-button":!0}},[t("ElementStudioTopbar",{attrs:{"save-locations":e.value.saveLocations,"items-slug":e.macrosSlug,value:e.currentlyEditingMacro,itemType:"macro","item-name":e.currentMacroName,hasUnsavedChanges:e.hasUnsavedChanges,saveInProgress:e.saveInProgress},on:{open:e.openMacro,delete:e.deleteMacro,saveOverride:e.saveOverride,saveAs:e.saveAs,saveNew:e.saveNewItem,discardChanges:e.discardChanges,reset:e.resetCurrentlyEditingMacro}}),e.currentlyEditingMacro?t("div",{staticClass:"element-studio-content"},[t("div",{staticClass:"panel-100 vscroll-scroll"},[t("div",{staticClass:"element-studio-tabs-panel d-flex flex-column"},[t("div",{staticClass:"element-studio-tabs"},[t(Qp.Z,{attrs:{value:e.activeTab},on:{change:e.updateTab}},[t(Yp.Z,{attrs:{href:"#macro",title:e.__("Macro")}},[t("Icon",{attrs:{icon:"PenIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#settings",title:e.__("Settings")}},[t("Icon",{attrs:{icon:"GearIcon",size:"16"}})],1)],1)],1)]),t("div",{staticClass:"element-studio-tabs-items vscroll-scroll"},[t("CodeInput",{directives:[{name:"show",rawName:"v-show",value:"macro"===e.activeTab,expression:"activeTab === 'macro'"}],attrs:{value:e.currentlyEditingMacro.macroData.macro,language:"twig"},on:{input:e.updateMacroValue}}),"settings"===e.activeTab?t("div",{staticClass:"pa-4"},[t(ed.Z,{attrs:{value:e.currentMacroName,label:e.__("Name"),rules:[e.isValidItemName]},on:{input:e.updateMacroName}}),t("ToggleInput",{attrs:{value:e.autoRefresh},on:{input:e.updateAutoRefresh}}),t("label",{staticClass:"ml-2"},[e._v(e._s(e.__("Live preview changes")))])],1):e._e()],1)])]):e._e()],1)},SS=[];let CS=class extends s.ZP{constructor(){super(...arguments),this.lastSavedMacro=!1,this.currentlyEditingMacro=!1,this.saveInProgress=!1,this.autoRefresh=!0,this.activeTab="macro",this.throttledUpdateElement=qa()(this.updateMacroAndRecompileTwigTemplates,1e3)}get macrosSlug(){return this.value.macros.map((e=>e.slug))}isValidItemName(e){return(0,Am.nQ)(e)}updateCurrentlyEditingMacro(e){this.currentlyEditingMacro=(0,wd.Z)(e),!1===this.lastSavedMacro&&(this.lastSavedMacro=(0,wd.Z)(e))}updateTab(e){this.activeTab=e}updateMacroName(e){this.currentlyEditingMacro&&(this.currentlyEditingMacro.macroData.slug=e_((0,Am.$_)(this.currentlyEditingMacro.macroData.slug),e))}updateAutoRefresh(e){this.autoRefresh=e,e&&this.currentlyEditingMacro&&this.updateMacroAndRecompileTwigTemplates(this.currentlyEditingMacro.macroData)}updateMacroAndRecompileTwigTemplates(e){const t=(0,wd.Z)(c.configStore.twigMacros),n=t.findIndex((t=>t.slug===e.slug));if(-1===n){t.push(e);const n=(0,wd.Z)(this.value);n.macros.push(e),this.$emit("input",n)}else t[n].macro=e.macro;this.lastSavedMacro&&this.lastSavedMacro.directoryPath&&e.slug!==this.lastSavedMacro.macroData.slug&&e.directoryPath===this.lastSavedMacro.directoryPath&&this.deleteMacroFromServer(this.lastSavedMacro),this.autoRefresh&&nS(t)}deleteMacroAndRecompileTwigTemplates(e){const t=(0,wd.Z)(c.configStore.twigMacros),n=t.findIndex((t=>t.slug===e)),s=this.value.macros.findIndex((t=>t.slug===e));if(-1!==n&&t.splice(n,1),-1!==s){const e=(0,wd.Z)(this.value);e.macros.splice(s,1),this.$emit("input",e)}nS(t)}get currentMacroName(){return this.currentlyEditingMacro?(0,Am.iC)(this.currentlyEditingMacro.macroData.slug):""}get hasUnsavedChanges(){return!(!this.currentlyEditingMacro||!this.lastSavedMacro)&&!oh()(this.lastSavedMacro.macroData,this.currentlyEditingMacro.macroData)}updateMacroValue(e){this.currentlyEditingMacro&&(this.currentlyEditingMacro.macroData.macro=e,this.throttledUpdateElement(this.currentlyEditingMacro.macroData))}deleteMacro(){this.currentlyEditingMacro&&this.deleteMacroFromServer(this.currentlyEditingMacro,(()=>{this.currentlyEditingMacro=!1}))}async deleteMacroFromServer(e,t=(()=>{})){(0,id.pipe)(await(0,ad.D)({action:"breakdance_delete_macro",dataToPost:{directoryPath:e.directoryPath,filename:(0,Am.iC)(e.macroData.slug)},decoder:iu.i0("success"),resultKey:"data"}),(0,od.fold)((()=>{cd.Z.log.message((0,Ft.__)("Failed to delete element"))}),(()=>{t(),this.deleteMacroAndRecompileTwigTemplates(e.macroData.slug)})))}discardChanges(){this.lastSavedMacro&&this.lastSavedMacro.macroData&&this.updateMacroAndRecompileTwigTemplates(this.lastSavedMacro.macroData),this.resetCurrentlyEditingMacro()}resetCurrentlyEditingMacro(){this.currentlyEditingMacro=!1,this.lastSavedMacro=!1,this.$emit("active",null)}openMacro(e){const t=(0,wd.Z)(this.value.macros.find((t=>t.slug===e)));if(!t)return;const n=c.configStore.twigMacros.find((t=>t.slug===e))?.macro;if(!n)return;const s=this.value.saveLocations.find((e=>t.directoryPath.startsWith(e.directoryPath))),i=!!s?.onlyForAdvancedUsers;this.updateCurrentlyEditingMacro({macroData:{...t,macro:n},directoryPath:t.directoryPath,onlyForAdvancedUsers:i}),this.$emit("active","macro")}saveAs(e){if(!this.currentlyEditingMacro)return;const t=(0,Am.iC)(this.currentlyEditingMacro.macroData.slug);this.saveToServer(this.currentlyEditingMacro.macroData.macro,e.directoryPath,t,e_(e.namespace,t),e.onlyForAdvancedUsers)}saveNewItem(e){const t=(0,Xf.dZ)(e.namespace,e.name),n=Qf()(e.name),s=e_(e.namespace,e.name);this.value.macros.find((e=>e.slug===s))?(0,Am.O6)(this.value.saveLocations,e,"macro"):(this.saveToServer(`{% macro ${t}() %}\n {# Your code here #} \n{% endmacro %}`,e.directoryPath,n,s,e.onlyForAdvancedUsers),this.$emit("active","macro"))}saveOverride(){this.currentlyEditingMacro&&this.currentlyEditingMacro.directoryPath&&this.saveToServer(this.currentlyEditingMacro.macroData.macro,this.currentlyEditingMacro.directoryPath,(0,Am.iC)(this.currentlyEditingMacro.macroData.slug),this.currentlyEditingMacro.macroData.slug,this.currentlyEditingMacro.onlyForAdvancedUsers)}async saveToServer(e,t,n,s,i){this.saveInProgress=!0,(0,id.pipe)(await(0,ad.D)({action:"breakdance_save_macro",dataToPost:{directoryPath:t,filename:n,macro:e},decoder:iu._4}),(0,od.fold)((e=>{console.error(e),cd.Z.log.message("Failed to save element, check console")}),(()=>{const n={macroData:{macro:e,slug:s,directoryPath:t},directoryPath:t,onlyForAdvancedUsers:i};this.updateCurrentlyEditingMacro(n),this.updateMacroAndRecompileTwigTemplates(n.macroData),this.lastSavedMacro=n}))),this.saveInProgress=!1}};(0,r.gn)([(0,l.fI)()],CS.prototype,"value",void 0),CS=(0,r.gn)([(0,l.wA)({components:{ToggleInput:Zp.Z,TextInput:na.Z,Icon:He.Z,CodeInput:f_.Z,ElementStudioTabsAndPanels:lS,ElementStudioWidthAdjustmentBar:wm,ElementStudioTopbar:$m}})],CS);const xS=CS,wS=xS;var IS=(0,N.Z)(wS,bS,SS,!1,null,null,null);const PS=IS.exports;var kS=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"element-studio-wrapper":e.currentlyEditingPreset,"element-studio__hide-the-close-button":!e.currentlyEditingPreset,"element-studio__hide-the-switch-mode-button":!0}},[t("ElementStudioTopbar",{attrs:{"save-locations":e.value.saveLocations,"items-slug":e.presetsSlug,value:e.currentlyEditingPreset,itemType:"preset","item-name":e.currentPresetName,hasUnsavedChanges:e.hasUnsavedChanges,saveInProgress:e.saveInProgress},on:{open:e.openPreset,delete:e.deletePreset,saveOverride:e.saveOverride,saveAs:e.saveAs,saveNew:e.saveNewItem,discardChanges:e.discardChanges,reset:e.resetCurrentlyEditingPreset}}),e.currentlyEditingPreset?t("div",{staticClass:"element-studio-content"},[t("div",{staticClass:"panel-100 vscroll-scroll"},[t("div",{staticClass:"element-studio-tabs-panel d-flex flex-column"},[t("div",{staticClass:"element-studio-tabs"},[t(Qp.Z,{attrs:{value:e.activeTab},on:{change:e.updateTab}},[t(Yp.Z,{attrs:{href:"#preset",title:e.__("Preset")}},[t("Icon",{attrs:{icon:"PenIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#code-help",title:e.__("Code Help")}},[t("Icon",{attrs:{icon:"CodeIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#prop-paths",title:e.__("Property Paths")}},[t("Icon",{attrs:{icon:"SlidersSimpleIcon",size:"16"}})],1),t(Yp.Z,{attrs:{href:"#settings",title:e.__("Settings")}},[t("Icon",{attrs:{icon:"GearIcon",size:"16"}})],1)],1)],1)]),t("div",{staticClass:"element-studio-tabs-items vscroll-scroll"},[t("ControlSectionOrControl",{directives:[{name:"show",rawName:"v-show",value:"preset"===e.activeTab,expression:"activeTab === 'preset'"}],attrs:{value:e.currentPresetWithoutPresetSlug?e.currentPresetWithoutPresetSlug.presetData.preset.section:[],index:0,path:"control",parentPath:"presetSection",twigParentPath:""}}),t("div",{directives:[{name:"show",rawName:"v-show",value:"code-help"===e.activeTab,expression:"activeTab === 'code-help'"}]},[t("div",{staticClass:"element-studio__presets-code-help"},[t("div",[t("b",[e._v(e._s(e.__("Code Help")))])]),t("pre",[e._v("%%TWIG_PATH%%")]),e._v(" "+e._s(e.__("will be replaced with the correct path in the element."))+" ")]),t("CodeInput",{attrs:{language:"twig",value:e.codeHelpValue,placeholder:e.codeHelpPlaceholder},on:{input:e.updateCodeHelp}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"prop-paths"===e.activeTab,expression:"activeTab === 'prop-paths'"}]},[t("Accordion",{attrs:{expanded:"relativePropertyPathsToWhitelistInFlatProps"===e.accordionState},on:{toggle:function(t){return e.toggleAccordion("relativePropertyPathsToWhitelistInFlatProps")}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"pa-4"},[e._v(" "+e._s(e.__("Relative Property Paths To Whitetlist In Flatprops"))+" ")])]},proxy:!0},{key:"content",fn:function(){return[t("ElementStudioPropertyPaths",{attrs:{value:e.presetRelativePropertyPathsToWhitelistInFlatProps,"all-paths":e.allPaths},on:{input:function(t){return e.updateElementValuePropPath(t,"relativePropertyPathsToWhitelistInFlatProps")}}})]},proxy:!0}],null,!1,1950830981)})],1),"settings"===e.activeTab?t("div",{staticClass:"pa-4"},[t(ed.Z,{attrs:{value:e.currentPresetName,label:e.__("Name"),rules:[e.isValidItemName]},on:{input:e.updatePresetSlug}}),t("ToggleInput",{attrs:{value:e.autoRefresh},on:{input:e.updateAutoRefresh}}),t("label",{staticClass:"ml-2"},[e._v(e._s(e.__("Live preview changes")))])],1):e._e()],1)])]):e._e()],1)},ES=[];let TS=class extends s.ZP{constructor(){super(...arguments),this.lastSavedPreset=!1,this.currentlyEditingPreset=!1,this.saveInProgress=!1,this.activeTab="preset",this.accordionState="",this.autoRefresh=!0,this.elementStudioContext=this.reactiveContext()}toggleAccordion(e){this.accordionState=this.accordionState===e?"":e}reactiveContext(){return{replaceControls:(e,t)=>{if(!this.currentlyEditingPreset)return;const n=(0,wd.Z)(this.currentlyEditingPreset),s=this.getCorrectPathForPresetFromContextPath(e);Sd()(n.presetData.preset,s,t),this.updateCurrentlyEditingPreset(n)},pasteControl:(e,t)=>{if(!this.currentlyEditingPreset)return;const n=(0,wd.Z)(this.currentlyEditingPreset),s=this.getCorrectPathForPresetFromContextPath(e),i=j()(n.presetData.preset,s);i.push(t),Sd()(n.presetData.preset,s,i),this.updateCurrentlyEditingPreset(n)},addControl:e=>{if(!this.currentlyEditingPreset)return;const t=(0,wd.Z)(this.currentlyEditingPreset),n=this.getCorrectPathForPresetFromContextPath(e),s=this.getParentControlOrControls(n);s&&(Array.isArray(s)?s.push((0,Zv._n)()):s.children.push((0,Zv._n)()),Sd()(t.presetData.preset,n,s),this.updateCurrentlyEditingPreset(t))},addPreset:e=>{if(!this.currentlyEditingPreset)return;const t=(0,wd.Z)(this.elementStudioContext.getPresetSection("EssentialElements\\typography"));if(!t)return;t.section.options.sectionOptions={...t.section.options.sectionOptions,type:"popout"};const n=(0,wd.Z)(this.currentlyEditingPreset),s=this.getCorrectPathForPresetFromContextPath(e),i=this.getParentControlOrControls(s);i&&(Array.isArray(i)?i.push(t.section):i.children.push(t.section),Sd()(n.presetData.preset,s,i),this.updateCurrentlyEditingPreset(n))},deleteControl:(e,t)=>{if(!this.currentlyEditingPreset)return;const n=(0,wd.Z)(this.currentlyEditingPreset),s=this.getCorrectPathForPresetFromContextPath(e),i=this.getParentControlOrControls(s);i&&(Array.isArray(i)?i.splice(t,1):i.children.splice(t,1),Sd()(n.presetData.preset,s,i),this.updateCurrentlyEditingPreset(n))},updateControl:(e,t,n)=>{if(!this.currentlyEditingPreset)return;const s=(0,wd.Z)(this.currentlyEditingPreset);if("presetSection"===e)s.presetData.preset.section=n;else{const i=this.getCorrectPathForPresetFromContextPath(e),o=this.getParentControlOrControls(i);if(!o)return;Array.isArray(o)?o.splice(t,1,n):o.children.splice(t,1,n),Sd()(s.presetData.preset,i,o)}this.updateCurrentlyEditingPreset(s)},getPresetSection:e=>this.value.presetSections.find((t=>t.slug===e)),getPresetSections:()=>this.value.presetSections,getPathsToAllControls:(e=[],t=["section"])=>{if(this.currentlyEditingPreset)return(0,Am.eH)(this.currentlyEditingPreset.presetData.preset.section.children,e,t,"")},element:qe.BQ,updateDependency:()=>{},updateActions:()=>{},updateElementValue:()=>{},getElementStudioData:()=>this.value,updateElementStudioData:e=>{this.$emit("input",e)}}}updateAutoRefresh(e){this.autoRefresh=e,e&&this.currentlyEditingPreset&&this.updateCurrentlyEditingPreset(this.currentlyEditingPreset)}getCorrectPathForPresetFromContextPath(e){return e.replace("control","section")}getParentControlOrControls(e){if(this.currentlyEditingPreset)return(0,wd.Z)(j()(this.currentlyEditingPreset.presetData.preset,e))}get codeHelpValue(){return this.currentlyEditingPreset&&this.currentlyEditingPreset.presetData.preset.section.options.sectionOptions?.preset?.codeHelp||""}get codeHelpPlaceholder(){if(!this.currentlyEditingPreset)return"";const e=(0,Xf.dZ)((0,Am.$_)(this.currentlyEditingPreset.presetData.slug),this.currentPresetName);return`{{ macros.${e}(%%TWIG_PATH%%) }}`}updateCodeHelp(e){if(!this.currentlyEditingPreset)return;const t=(0,wd.Z)(this.currentlyEditingPreset);Sd()(t,"presetData.preset.section.options.sectionOptions.preset.codeHelp",e),this.updateCurrentlyEditingPreset(t)}get presetsSlug(){return this.value.presets.map((e=>e.slug))}get allPaths(){return this.reactiveContext().getPathsToAllControls([],[])}get presetRelativePropertyPathsToWhitelistInFlatProps(){return this.currentlyEditingPreset?this.currentlyEditingPreset.presetData.preset.section.options.sectionOptions?.preset?.relativePropertyPathsToWhitelistInFlatProps:[]}updateElementValuePropPath(e,t){if(!this.currentlyEditingPreset)return;const n=(0,wd.Z)(this.currentlyEditingPreset);Sd()(n,`presetData.preset.section.options.sectionOptions.preset[${t}]`,e),this.currentlyEditingPreset=n}isValidItemName(e){return(0,Am.nQ)(e)}updateCurrentlyEditingPreset(e){if(e.presetData.preset=this.getPresetWithRestoredSectionSlug(e.presetData.preset),this.currentlyEditingPreset=(0,wd.Z)(e),!1===this.lastSavedPreset&&(this.lastSavedPreset=(0,wd.Z)(e)),!this.autoRefresh)return;const t=Object.values(Q.PK.elements).map((e=>e?(e.controls.designSections=e.controls.designSections.map(this.updateSectionWithCurrentPresetSection),e.controls.contentSections=e.controls.contentSections.map(this.updateSectionWithCurrentPresetSection),e.controls.settingsSections=e.controls.settingsSections.map(this.updateSectionWithCurrentPresetSection),e):e)).filter((e=>void 0!==e));Q.PK.addElements(t)}get currentPresetWithoutPresetSlug(){if(!this.currentlyEditingPreset)return!1;const e=(0,wd.Z)(this.currentlyEditingPreset);return e.presetData.preset.section.options.sectionOptions?.preset?.slug&&(e.presetData.preset.section.options.sectionOptions.preset.slug=void 0),e}updateSectionWithCurrentPresetSection(e){if(e.options.sectionOptions?.preset?.slug&&this.currentlyEditingPreset&&e.options.sectionOptions.preset.slug===this.currentlyEditingPreset.presetData.slug)return(0,wd.Z)(this.currentlyEditingPreset.presetData.preset.section);if(e.children.length){const t=(0,wd.Z)(e);return t.children=t.children.map(this.updateSectionWithCurrentPresetSection),t}return e}filterOutCurrentSection(e,t){if(!e.options.sectionOptions?.preset?.slug||e.options.sectionOptions.preset.slug!==t){if(e.children.length){const n=(0,wd.Z)(e);return n.children=n.children.map((e=>this.filterOutCurrentSection(e,t))).filter((e=>!!e)),n}return e}}getPresetWithRestoredSectionSlug(e){return this.currentlyEditingPreset?(Sd()(e,"section.options.sectionOptions.preset.slug",this.currentlyEditingPreset.presetData.slug),e):e}updateTab(e){this.activeTab=e}updatePresetSlug(e){if(!this.currentlyEditingPreset)return;const t=(0,wd.Z)(this.currentlyEditingPreset);t.presetData.slug=e_((0,Am.$_)(this.currentlyEditingPreset.presetData.slug),e),this.updateCurrentlyEditingPreset(t)}updatePreset(e){const t=(0,wd.Z)(e),n=this.value.presets.findIndex((e=>e.slug===t.slug)),s=this.value.presetSections.findIndex((e=>e.slug===t.preset.slug)),i=(0,wd.Z)(this.value);-1===n&&-1===s?(i.presets.push(t),i.presetSections.push(t.preset)):(i.presets[n]=t,i.presetSections[s].section=t.preset.section),this.$emit("input",i),this.lastSavedPreset&&this.lastSavedPreset.directoryPath&&t.slug!==this.lastSavedPreset.presetData.slug&&t.directoryPath===this.lastSavedPreset.directoryPath&&this.deletePresetFromServer(this.lastSavedPreset)}deletePresetAndRecompileTwigTemplates(e){const t=(0,Am.iC)(e),n=(0,wd.Z)(this.value.presetSections),s=n.findIndex((e=>e.slug===t)),i=this.value.presets.findIndex((t=>t.slug===e));if(-1!==s&&n.splice(s,1),-1!==i){const e=(0,wd.Z)(this.value);e.presets.splice(i,1),this.$emit("input",e)}if(!this.autoRefresh)return;const o=Object.values(Q.PK.elements).map((t=>t?(t.controls.designSections=t.controls.designSections.map((t=>this.filterOutCurrentSection(t,e))).filter((e=>!!e)),t.controls.contentSections=t.controls.contentSections.map((t=>this.filterOutCurrentSection(t,e))).filter((e=>!!e)),t.controls.settingsSections=t.controls.settingsSections.map((t=>this.filterOutCurrentSection(t,e))).filter((e=>!!e)),t):t)).filter((e=>void 0!==e));Q.PK.addElements(o)}get currentPresetName(){return this.currentlyEditingPreset?(0,Am.iC)(this.currentlyEditingPreset.presetData.slug):""}get hasUnsavedChanges(){return!(!this.currentlyEditingPreset||!this.lastSavedPreset)&&!oh()(this.lastSavedPreset.presetData,this.currentlyEditingPreset.presetData)}deletePreset(){this.currentlyEditingPreset&&this.deletePresetFromServer(this.currentlyEditingPreset,(()=>{this.currentlyEditingPreset=!1}))}async deletePresetFromServer(e,t=(()=>{})){(0,id.pipe)(await(0,ad.D)({action:"breakdance_delete_preset",dataToPost:{directoryPath:e.directoryPath,filename:(0,Am.iC)(e.presetData.slug)},decoder:iu.i0("success"),resultKey:"data"}),(0,od.fold)((()=>{cd.Z.log.message((0,Ft.__)("Failed to delete element"))}),(()=>{t(),this.deletePresetAndRecompileTwigTemplates(e.presetData.slug)})))}discardChanges(){this.lastSavedPreset&&this.lastSavedPreset.presetData&&(this.updateCurrentlyEditingPreset(this.lastSavedPreset),this.updatePreset(this.lastSavedPreset.presetData)),this.resetCurrentlyEditingPreset()}resetCurrentlyEditingPreset(){this.currentlyEditingPreset=!1,this.lastSavedPreset=!1,this.$emit("active",null)}openPreset(e){const t=(0,wd.Z)(this.value.presets.find((t=>t.slug===e)));if(!t)return;const n=this.value.presetSections.find((t=>t.slug===e));if(!n)return void cd.Z.log.message((0,Ft.gB)((0,Ft.__)("%s couldn't be found"),e));const s=this.value.saveLocations.find((e=>t.directoryPath.startsWith(e.directoryPath))),i=!!s?.onlyForAdvancedUsers;this.updateCurrentlyEditingPreset({presetData:{...t,preset:n},directoryPath:t.directoryPath,onlyForAdvancedUsers:i}),this.$emit("active","preset")}saveAs(e){this.currentlyEditingPreset&&this.saveToServer(this.currentlyEditingPreset.presetData.preset,e.directoryPath,this.currentPresetName,e_(e.namespace,this.currentPresetName),e.onlyForAdvancedUsers)}saveNewItem(e){const t=Qf()(e.name),n=e_(e.namespace,e.name);this.value.presets.find((e=>e.slug===n))?(0,Am.O6)(this.value.saveLocations,e,"preset"):(this.saveToServer({slug:n,section:(0,Zv.tr)()},e.directoryPath,t,n,e.onlyForAdvancedUsers),this.$emit("active","preset"))}saveOverride(){this.currentlyEditingPreset&&this.currentlyEditingPreset.directoryPath&&this.saveToServer(this.currentlyEditingPreset.presetData.preset,this.currentlyEditingPreset.directoryPath,this.currentPresetName,this.currentlyEditingPreset.presetData.slug,this.currentlyEditingPreset.onlyForAdvancedUsers)}async saveToServer(e,t,n,s,i){this.saveInProgress=!0,(0,id.pipe)(await Jf(e,t,n,s),(0,od.fold)((e=>{console.error(e),cd.Z.log.message((0,Ft.__)("Failed to save element, check console"))}),(()=>{const n={presetData:{preset:(0,wd.Z)(e),slug:s,directoryPath:t},directoryPath:t,onlyForAdvancedUsers:i};this.updateCurrentlyEditingPreset(n),this.updatePreset(n.presetData),this.lastSavedPreset=n}))),this.saveInProgress=!1}};(0,r.gn)([(0,l.fI)()],TS.prototype,"value",void 0),(0,r.gn)([(0,l.DF)("context")],TS.prototype,"elementStudioContext",void 0),TS=(0,r.gn)([(0,l.wA)({components:{ToggleInput:Zp.Z,ElementStudioDynPropPaths:Ob,ElementStudioPropertyPaths:wb,Accordion:tv.Z,ControlSectionOrControl:p_,TextInput:na.Z,Icon:He.Z,CodeInput:f_.Z,ElementStudioTabsAndPanels:lS,ElementStudioWidthAdjustmentBar:wm,ElementStudioTopbar:$m}})],TS);const DS=TS,AS=DS;var ZS=(0,N.Z)(AS,kS,ES,!1,null,null,null);const OS=ZS.exports;let MS=class extends s.ZP{constructor(){super(...arguments),this.data={elements:[],macros:[],presets:[],saveLocations:[],presetSections:[]},this.width=600,this.activeItemType=null}async mounted(){(0,su.zG)(await(0,ad.D)({action:"breakdance_load_element_studio",decoder:_S}),(0,ou.g_)((e=>e.forEach((e=>cd.Z.log.message(e.msg)))),(e=>{this.data=e})))}updateData(e){this.data=(0,wd.Z)(e)}updateActiveItemType(e){this.activeItemType=e}updateWidth(e){this.width=e}adjustWidth(e){this.width+=e}get styles(){return{width:`${this.width}px`}}};MS=(0,r.gn)([(0,l.wA)({components:{ElementStudioPresets:OS,ElementStudioMacros:PS,ElementStudioElements:gS,ElementStudioWidthAdjustmentBar:wm}})],MS);const BS=MS,LS=BS;var NS=(0,N.Z)(LS,cm,dm,!1,null,null,null);const FS=NS.exports;var RS=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("AppLayoutBodyPanelArea",{attrs:{"panel-state":e.panelState,position:e.position}},[t("Add",{directives:[{name:"show",rawName:"v-show",value:"add"===e.panelState,expression:"panelState === 'add'"}]}),"selectors"===e.panelState?t("SelectorsPanel"):"oxySelectors"===e.panelState?t("OxySelectorsPanel"):"presets"===e.panelState?t("PresetsPanel"):"structure"===e.panelState?t("StructurePanel"):e._e(),"elementproperties"===e.panelState?["breakdance"==e.builderMode?t("ElementPropertiesPanel",{key:e.activeElementId}):"oxygen"==e.builderMode?t("OxygenElementPropertiesPanel",{key:e.activeElementId}):e._e()]:"ai"===e.panelState?t("AIPanel"):"history"===e.panelState?t("HistoryAndRevisionsPanel"):"globalSettings"===e.panelState?t("GlobalSettingsPanel"):"variables"===e.panelState?t("VariablesPanel"):e._e()],2)},VS=[],$S=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-element-properties-panel vscroll-wrap vscroll-scroll",attrs:{"data-test-id":"element-properties-panel"}},[e.elementIsActive?[t("Titlebar"),t("TabsAndControls")]:[t("BlankSidebarContent")]],2)},WS=[],US=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"properties-panel-titlebar",class:`properties-panel-titlebar--${e.size}`},[t("div",{staticClass:"properties-panel-titlebar-title truncate"},[e._v(" "+e._s(e.elementTitle)+" ")]),"breakdance"===e.builderMode?e._l(e.elementBadges,(function(e,n){return t("ElementBadge",{key:n,staticClass:"ml-1",attrs:{value:e}})})):e._e(),t(vc.Z),"breakdance"===e.builderMode?[t("IconButton",{staticClass:"properties-panel-duplicate-button",attrs:{icon:"DuplicateIcon",size:"small"===e.size?"14":"16",small:!0},on:{click:e.duplicateElement}}),t("IconButton",{staticClass:"properties-panel-delete-button",attrs:{icon:"TrashIcon",size:"small"===e.size?"14":"16",small:!0},on:{click:e.remove}})]:e._e(),"oxygen"!==e.builderMode||e.isComponent?e._e():[t("OxygenTagChooser")]],2)},zS=[],HS=n(26687),GS=n(13960),KS=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-tag-chooser",class:{"oxy-tag-chooser--disabled":1===e.tags?.length}},[t(zm.Z,{ref:"input",attrs:{value:e.value,items:e.tags,dense:"",flat:"",solo:"","hide-details":"","no-data-text":"","search-input":e.searchQuery,disabled:1===e.tags.length,"menu-props":{maxHeight:350,minWidth:145,closeOnContentClick:!0}},on:{input:e.setValue,"update:searchInput":function(t){e.searchQuery=t},"update:search-input":function(t){e.searchQuery=t}},scopedSlots:e._u([{key:"append",fn:function(){return[t("span",{staticClass:"oxy-tag-chooser__bracket-1"},[e._v("<")]),t("span",{staticClass:"oxy-tag-chooser__bracket-2"},[e._v(">")]),e.tags?.length>1?t("Icon",{staticClass:"oxy-tag-chooser__tag-icon",attrs:{icon:"ChevronDownIcon",size:10}}):e._e()]},proxy:!0},{key:"append-item",fn:function(){return[!e.doesQueryMatchAnyTag&&e.isValidHtmlTagName(e.searchQuery)?t(Tc.Z,{attrs:{dense:""},on:{click:function(t){return e.setValue(e.searchQuery)}}},[t(Dc.V9,[e._v(" "+e._s(e.sprintf(e._doc("Custom: %s","%s: Custom HTML tag name"),e.searchQuery))+" ")])],1):e._e()]},proxy:!0},{key:"no-data",fn:function(){return[t("div")]},proxy:!0}])})],1)},jS=[],qS=n(53204),XS=n(95324);let YS=class extends l.w3{constructor(){super(...arguments),this.open=!1,this.searchQuery=""}onValueChange(){this.$nextTick((()=>{this.$refs.input.isMenuActive=!1,this.$refs.input.blur()}))}get control(){return{type:"select",name:(0,Ft.__)("Tag"),slug:"tag",items:this.tags,disableVariable:!0}}get element(){return c.uiStore.activeElement}get builderElement(){return this.element?c.configStore.element(this.element.data.type):null}get htmlTag(){return this.element?this.builderElement?.htmlTag:null}get tags(){if(!this.element)return[];const e=[...this.htmlTag?.options||[]];return this.defaultTag?[this.defaultTag,...e]:e}get defaultTag(){return this.htmlTag?.default}get value(){return j()(c.uiStore.activeElement,"data.properties.settings.advanced.tag")||this.defaultTag}setValue(e){c.uiStore.activeElementId&&(this.isValidHtmlTagName(e)?(0,qe.Q$)(c.uiStore.activeElementId,e):this.handleInvalidTag())}handleInvalidTag(){this.$nextTick((()=>{this.defaultTag&&(this.searchQuery=this.defaultTag)}))}isValidHtmlTagName(e){const t=/^[a-zA-Z][a-zA-Z0-9-]*$/;return t.test(e)}get doesQueryMatchAnyTag(){return this.tags?.some((e=>e===this.searchQuery))}};(0,r.gn)([(0,l.RL)("value")],YS.prototype,"onValueChange",null),YS=(0,r.gn)([(0,l.wA)({components:{Dropdown:Oc.Z,Icon:He.Z,OxygenControl:XS["default"],OxygenSelectInput:qS.Z,DropdownInput:Cd.Z}})],YS);const QS=YS,JS=QS;var eC=(0,N.Z)(JS,KS,jS,!1,null,null,null);const tC=eC.exports;let nC=class extends s.ZP{get element(){return c.uiStore.activeElement}get elementId(){return c.uiStore.activeElementId}get elementTitle(){return this.element?c.configStore.element(this.element.data.type).name:(0,Ft.__)("No Active Element")}get elementBadges(){if(!this.element)return[];const e=c.configStore.element(this.element.data.type),t=e.badge?[e.badge]:[];return e.settings&&e.settings.proOnly&&"free"===c.configStore.subscriptionMode&&t.push((0,GS.ur)()),t}get isComponent(){return!!this.element&&this.element?.data?.type===Ge.COMPONENT_SLUG}get builderMode(){return c.configStore.builderMode}duplicateElement(){this.elementId&&c.documentStore.duplicateElementAndActivateIt(this.elementId)}remove(){null!==this.elementId&&c.documentStore.deleteElement({nodeId:this.elementId})}};(0,r.gn)([(0,l.fI)()],nC.prototype,"size",void 0),nC=(0,r.gn)([(0,l.wA)({components:{Dropdown:Oc.Z,IconButton:Xa.Z,ElementBadge:HS.Z,OxygenTagChooser:tC}})],nC);const sC=nC,iC=sC;var oC=(0,N.Z)(iC,US,zS,!1,null,null,null);const aC=oC.exports;var rC=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pa-7 d-flex align-center justify-center flex-column",staticStyle:{height:"100%"}},[t("div",{staticClass:"blank-sidebar-text"},[t("p",[e._v(" "+e._s(e.__("Add an element to your page or click an existing element to edit it."))+" ")])]),t("StandardButton",{staticClass:"open-elements-toolbar-button",attrs:{size:"22",testId:"open-elements-toolbar-button"},on:{click:e.toggleAdd}},[e._v(" "+e._s(e.__("Add"))+" ")])],1)},lC=[];let cC=class extends s.ZP{toggleAdd(){(0,Bu._y)("add")}};cC=(0,r.gn)([(0,l.wA)({components:{StandardButton:Fl}})],cC);const dC=cC,uC=dC;var pC=(0,N.Z)(uC,rC,lC,!1,null,null,null);const hC=pC.exports;var gC=n(99868),mC=n(96878),vC=n(47233),yC=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[e.hasSearchParameters?e._e():t("DesignContentSettingsTabs",{attrs:{value:e.tab,controls:e.controls},on:{input:e.updateTab}}),t("div",{staticClass:"vscroll-scroll"},["design"===e.tab?t("ElementPresetChooser",{attrs:{element:e.element}}):e._e(),e.searchDisabled&&!e.isPresetsOverridesEnabled?t("p",{staticClass:"preset-selected-message"},[t("Icon",{attrs:{icon:"PaintbrushFineIcon",size:"24"}}),e._v(" "+e._s(e.__("A preset is currently selected for this element."))+" ")],1):e.hasSearchParameters&&!e.noSearchResults?t(gC.Z,[""!==e.searchBoxState.query?t("div",{staticClass:"control-tree-search-term"},[t("span",[e._v(" "+e._s(e.sprintf(e._xdoc('Search results for "%s"',"Element Properties","%s: Search query"),e.searchBoxState.query))+" ")]),t("div",{staticClass:"control-tree-search-clear",on:{click:e.clearQuery}},[t("Icon",{attrs:{icon:"CloseIcon",size:"14"}})],1)]):e._e(),t("ControlsTree",{attrs:{controls:e.controlsFilteredBySearchParams.contentSections,path:"content",linear:!0}}),t("ControlsTree",{attrs:{controls:e.controlsFilteredBySearchParams.designSections,path:"design",linear:!0}}),t("ControlsTree",{attrs:{controls:e.controlsFilteredBySearchParams.settingsSections,path:"settings",linear:!0}})],1):e.hasSearchParameters&&e.noSearchResults?t(gC.Z,{staticClass:"d-flex justify-center align-center flex-column",attrs:{height:"100%"}},[t("SearchBoxEmptyState",{attrs:{label:"controls"},on:{input:e.clearQuery}})],1):t(vC.Z,{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[e.hasContentControls?t(mC.Z,{attrs:{value:"content",transition:!1,"reverse-transition":!1}},[t("ControlsTree",{attrs:{controls:e.contentSections,path:"content",forceFirstSectionOpen:!0}})],1):e._e(),e.hasDesignControls?t(mC.Z,{attrs:{value:"design",transition:!1,"reverse-transition":!1}},[t("DesignTabContent",{attrs:{controls:e.designSections,path:"design"}})],1):e._e(),e.hasSettingsControls?t(mC.Z,{attrs:{value:"settings",transition:!1,"reverse-transition":!1}},[t("ControlsTree",{attrs:{controls:e.settingsSections,path:"settings"}})],1):e._e()],1)],1),t("SearchBox",{attrs:{value:e.searchBoxState,location:"element","include-settings-toggle":!0,disabled:e.searchDisabled},on:{input:e.updateSearchBoxState}})],1)},fC=[],_C=n(20951),bC=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"properties-panel-search-box-wrap",class:{"properties-panel-search-box-wrap--disabled":e.disabled}},[t("div",{staticClass:"properties-panel-search-box-inner-wrap"},[t("Icon",{staticClass:"properties-panel-search-icon",attrs:{icon:"SearchIcon",size:"13"}}),t("TextInput",{staticClass:"properties-panel-search-text-input",attrs:{value:e.value.query,placeholder:e.placeholder,"data-test-id":"elements-panel-search"},on:{input:e.editQuery}}),t("div",{staticClass:"properties-panel-search-actions"},[e.value.query?t("div",{staticClass:"properties-panel-search-extra-button",on:{click:e.clearQuery}},[t("Icon",{attrs:{icon:"CloseIcon",size:"12"}})],1):e._e(),t("SearchFilter",{staticClass:"properties-panel-search-modified",attrs:{value:e.value.modifiedOnly},on:{input:e.editModified}},[e._v(e._s(e.__("Modified")))]),e.includeSettingsToggle?t("SearchFilter",{staticClass:"properties-panel-search-settings-toggle",attrs:{value:e.value.includeSettings,title:e.__("Include Settings")},on:{input:e.editSettings}},[t("Icon",{attrs:{icon:"GearIcon",size:"12"}}),t("Icon",{attrs:{icon:"PlusIcon",size:"10"}})],1):e._e()],1)],1)])},SC=[],CC=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"properties-panel-search-extra-button":!0,"properties-panel-search-extra-button-on":this.value},on:{click:e.toggle}},[e._t("default")],2)},xC=[];let wC=class extends s.ZP{toggle(){this.$emit("input",!this.value)}};(0,r.gn)([(0,l.fI)()],wC.prototype,"value",void 0),wC=(0,r.gn)([l.wA],wC);const IC=wC,PC=IC;var kC=(0,N.Z)(PC,CC,xC,!1,null,null,null);const EC=kC.exports;let TC=class extends s.ZP{emit(e){this.$emit("input",e)}editQuery(e){"string"===typeof e?this.emit({...this.value,query:e.trim().toLowerCase()}):this.emit({...this.value,query:""})}clearQuery(){this.emit({...this.value,query:"",modifiedOnly:!1})}editModified(e){this.emit({...this.value,modifiedOnly:e})}editSettings(e){this.emit({...this.value,includeSettings:e})}get placeholder(){return(0,Ft.__)("Search")}};(0,r.gn)([(0,l.fI)()],TC.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],TC.prototype,"includeSettingsToggle",void 0),(0,r.gn)([(0,l.fI)()],TC.prototype,"disabled",void 0),(0,r.gn)([(0,l.fI)()],TC.prototype,"location",void 0),TC=(0,r.gn)([(0,l.wA)({components:{SearchFilter:EC,TextInput:na.Z,Icon:He.Z}})],TC);const DC=TC,AC=DC;var ZC=(0,N.Z)(AC,bC,SC,!1,null,null,null);const OC=ZC.exports;var MC=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TabsRow",[e.hasContentControls?t("Tab",{staticClass:"properties-panel-tab",attrs:{value:e.value,id:"content","data-test-id":"element-properties-tab-content"},on:{input:e.setTab},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Icon",{attrs:{icon:"PenIcon",size:"18"}})]},proxy:!0},{key:"contextmenu",fn:function(){return[t(Ec.Z,[t(Tc.Z,{attrs:{dense:""},on:{click:function(t){return e.resetToDefault("content")}}},[t(Dc.V9,[e._v(e._s(e.__("Reset Content")))])],1)],1)]},proxy:!0}],null,!1,698677076)}):e._e(),e.hasDesignControls?t("Tab",{staticClass:"properties-panel-tab",attrs:{value:e.value,id:"design","data-test-id":"element-properties-tab-design"},on:{input:e.setTab},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Icon",{attrs:{icon:"PaletteIcon",size:"18"}})]},proxy:!0},{key:"contextmenu",fn:function(){return[t(Ec.Z,[t(Tc.Z,{attrs:{dense:""},on:{click:function(t){return e.resetToDefault("design")}}},[t(Dc.V9,[e._v(e._s(e.__("Reset Design")))])],1)],1)]},proxy:!0}],null,!1,1679543218)}):e._e(),e.hasSettingsControls?t("Tab",{staticClass:"properties-panel-tab",attrs:{value:e.value,id:"settings","data-test-id":"element-properties-tab-settings"},on:{input:e.setTab},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Icon",{attrs:{icon:"GearIcon",size:"18"}})]},proxy:!0},{key:"contextmenu",fn:function(){return[t(Ec.Z,[t(Tc.Z,{attrs:{dense:""},on:{click:function(t){return e.resetToDefault("settings")}}},[t(Dc.V9,[e._v(e._s(e.__("Reset Settings")))])],1)],1)]},proxy:!0}],null,!1,924921406)}):e._e()],1)},BC=[],LC=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:e.classList,on:{click:function(t){return e.$emit("input",e.id)},contextmenu:e.openContextMenu}},[e.hasIconSlot?t("div",{staticClass:"breakdance-tab__icon"},[e._t("icon")],2):e._e(),e.hasIconSlot?e._e():t("div",{staticClass:"breakdance-tab__label"},[e._t("default")],2),e.hasContextMenuSlot?t("div",{staticClass:"breakdance-tab__context-menu"},[t("Dropdown",{attrs:{"position-x":e.contextMenuX,"position-y":e.contextMenuY,absolute:"","offset-y":""},model:{value:e.contextMenu,callback:function(t){e.contextMenu=t},expression:"contextMenu"}},[e._t("contextmenu")],2)],1):e._e()])},NC=[];let FC=class extends s.ZP{constructor(){super(...arguments),this.contextMenu=!1,this.contextMenuX=0,this.contextMenuY=0}get classList(){return{"breakdance-tab":!0,[`breakdance-tab--id-${this.id}`]:!0,"breakdance-tab--active":this.value===this.id}}get hasContextMenuSlot(){return!!this.$slots.contextmenu}get hasIconSlot(){return!!this.$slots.icon}openContextMenu(e){this.hasContextMenuSlot&&(e.preventDefault(),this.contextMenu=!1,this.contextMenuX=e.clientX,this.contextMenuY=e.clientY,this.$nextTick((()=>{this.contextMenu=!0})))}};(0,r.gn)([(0,l.fI)()],FC.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],FC.prototype,"id",void 0),FC=(0,r.gn)([(0,l.wA)({components:{Dropdown:Oc.Z}})],FC);const RC=FC,VC=RC;var $C=(0,N.Z)(VC,LC,NC,!1,null,null,null);const WC=$C.exports;var UC=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-tabs-row"},[e._t("default")],2)},zC=[];let HC=class extends s.ZP{};HC=(0,r.gn)([(0,l.wA)({})],HC);const GC=HC,KC=GC;var jC=(0,N.Z)(KC,UC,zC,!1,null,null,null);const qC=jC.exports;var XC=n(47256);let YC=class extends s.ZP{setTab(e){this.$emit("input",e)}get hasContentControls(){return this.controls.contentSections.length>0}get hasDesignControls(){return this.controls.designSections.length>0}get hasSettingsControls(){return this.controls.settingsSections.length>0}resetToDefault(e){!1!==c.uiStore.activeElement&&JC(c.uiStore.activeElement.id,e)}};(0,r.gn)([(0,l.fI)({default:"content"})],YC.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],YC.prototype,"controls",void 0),(0,r.gn)([(0,l.tB)("context")],YC.prototype,"context",void 0),YC=(0,r.gn)([(0,l.wA)({components:{TabsRow:qC,Tab:WC,Icon:He.Z}})],YC);const QC=YC;function JC(e,t){const n=(0,ge.findNode)(c.documentStore.document.tree,e);if(!n)return;const s=c.configStore.element(n.data.type).defaultProperties,i=j()(s,t,XC.Bz);c.documentStore.throttledPropertyChanged({elementId:n.id,path:t,value:(0,wd.Z)(i),meta:{snapshotLabel:`Reset ${(0,ie.JC)(n.data.type)} ${g()(t)}`}})}const ex=QC;var tx=(0,N.Z)(ex,MC,BC,!1,null,null,null);const nx=tx.exports;var sx=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("ControlsTree",{attrs:{controls:e.controls,path:e.path}})],1)},ix=[];let ox=class extends s.ZP{};(0,r.gn)([(0,l.fI)()],ox.prototype,"controls",void 0),(0,r.gn)([(0,l.fI)()],ox.prototype,"path",void 0),ox=(0,r.gn)([(0,l.wA)({components:{ControlsTree:_C["default"]}})],ox);const ax=ox,rx=ax;var lx=(0,N.Z)(rx,sx,ix,!1,null,null,null);const cx=lx.exports;var dx=n(78574);function ux(e,t,n,s){const i=new RegExp(n.trim().replace(" ","|"),"si"),o=(e,n)=>!(i&&!`${e.label}`.match(i)&&!`${e.slug}`.match(i)&&!`${e.keywords}`.match(i))&&!(t&&!(0,XC.Ed)(n,e,s));return{contentSections:hx(e.contentSections,o,"content",t),designSections:hx(e.designSections,o,"design",t),settingsSections:hx(e.settingsSections,o,"settings",t)}}function px(e,t,n,s,i){const o=new RegExp(n.trim().replace(" ","|"),"si"),a=(e,n)=>!(o&&!`${e.label}`.match(o)&&!`${e.slug}`.match(o)&&!`${e.keywords}`.match(o))&&!(t&&!(0,XC.Ed)(n,e,s));return hx(e,a,i,t)}function hx(e,t,n,s){const i=(0,wd.Z)(e);return i.filter((e=>{const i=t(e,`${n}.${e.slug}`);return"section"===e.options.type?!(!i||s)||(e.children=hx(e.children,t,`${n}.${e.slug}`,s),e.children.length>0):i}))}const gx=(e,t)=>(e.forEach((e=>{t=gx(e.children,t+("section"===e.options.type?0:1))})),t);var mx=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"properties-panel-search-empty-state"},[t("svg",{staticClass:"properties-panel-search-empty-state-icon",attrs:{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}},[t("path",{attrs:{d:"M90.667 34.388v-25a6.25 6.25 0 0 0-6.25-6.25h-75a6.25 6.25 0 0 0-6.25 6.25v68.75a6.25 6.25 0 0 0 6.25 6.25h25M3.167 21.888h87.5","stroke-width":"6.250005"}}),t("path",{attrs:{d:"M46.917 71.888a25 25 0 1 0 50 0 25 25 0 1 0-50 0ZM81.292 62.513l-18.75 18.75M62.542 62.513l18.75 18.75","stroke-width":"6.250005"}})])]),t("h5",[e._v(" "+e._s(e.sprintf(e._xdoc("No %s found.","Search","%s: Item type being searched"),e.label))+" ")]),t(Qo.Z,{staticClass:"mt-4",attrs:{text:"",outlined:"",small:""},on:{click:e.clearSearch}},[e._v(e._s(e.__("Clear Search")))])],1)},vx=[];let yx=class extends s.ZP{clearSearch(){this.$emit("input")}};(0,r.gn)([(0,l.fI)({default:"element"})],yx.prototype,"label",void 0),yx=(0,r.gn)([(0,l.wA)({components:{Dropdown:Oc.Z,IconButton:Xa.Z}})],yx);const fx=yx,_x=fx;var bx=(0,N.Z)(_x,mx,vx,!1,null,null,null);const Sx=bx.exports;var Cx=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"element-preset-chooser"},[t("div",{staticClass:"element-preset-chooser__input"},[t(Wm.Z,{ref:"input",staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{items:e.presetItems,dense:"",solo:"",flat:"",filled:"","search-input":e.newPresetName,placeholder:e.__("Choose Design Preset"),"no-data-text":"","hide-details":"",value:e.currentPreset,loading:e.addingPreset},on:{"update:searchInput":function(t){e.newPresetName=t},"update:search-input":function(t){e.newPresetName=t},input:e.selectPreset,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.createPresetOnEnter.apply(null,arguments)},"update:list-index":e.onListIndexUpdate,blur:function(t){e.autocompleteListIndex=-1}},scopedSlots:e._u([{key:"append-item",fn:function(){return[t(Tc.Z,{staticClass:"element-preset-chooser__create-button",class:{"element-preset-chooser__create-button--disabled":!e.canCreatePreset},attrs:{dense:"",link:""},on:{click:e.openSavePresetDialog}},[t(Dc.V9,[e.foundPresetsWithName?t("b",[e._v(" "+e._s(e.__("Create preset from design"))+" ")]):t("b",[e._v(" "+e._s(e.sprintf(e._doc("Create %s preset","%s: Preset name"),e.newPresetNameItalic))+" ")])])],1)]},proxy:!0},{key:"no-data",fn:function(){return[t("div")]},proxy:!0}])}),t("div",{staticClass:"element-preset-chooser__actions"},[e.currentPreset?t("div",{key:"detach",staticClass:"properties-panel-search-extra-button element-preset-chooser__detach",attrs:{"aria-label":e.__("Detach Styles"),title:e.__("Detach Styles")},on:{click:function(t){return t.stopPropagation(),e.detach.apply(null,arguments)}}},[t("Icon",{attrs:{icon:"LinkSimpleSlashSolidIcon",size:"12"}})],1):e._e(),e.currentPreset||!e.isPresetValid?t("div",{key:"clear",staticClass:"properties-panel-search-extra-button element-preset-chooser__clear",attrs:{"aria-label":e.__("Clear Styles")},on:{click:function(t){return t.stopPropagation(),e.clear.apply(null,arguments)}}},[t("Icon",{attrs:{icon:"CloseIcon",size:"12"}})],1):e._e()])],1),e.currentPreset?t("NiceButton",{staticClass:"element-preset-chooser__edit",attrs:{"aria-label":e.__("Edit")},on:{click:e.edit}},[e._v(" "+e._s(e.__("Edit"))+" ")]):e._e()],1),e.isPresetValid?e._e():t("div",{staticClass:"element-preset-chooser-invalid"},[t("AlertBox",{attrs:{options:{style:"error",content:e.__("The selected preset does not exist or has been deleted. Please select another preset.")}}})],1),t("PresetDialog",{attrs:{open:e.savePresetDialog,"element-id":e.element.id,"default-name":e.newPresetName},on:{close:e.closePresetDialog}})],1)},xx=[];let wx=class extends l.w3{constructor(){super(...arguments),this.newPresetName="",this.autocompleteListIndex=-1,this.addingPreset=!1,this.savePresetDialog=!1}get foundPresetsWithName(){return!this.newPresetName||this.presetItems.filter((e=>e.text.toLowerCase().includes(this.newPresetName.toLowerCase()))).length}get newPresetNameItalic(){return`${this.newPresetName}`}get elementName(){return c.configStore.element(this.element.data.type).name}get availablePresets(){return c.globalStore.presets}get isPresetValid(){return!this.currentPreset||this.currentPreset&&this.presetItems.find((e=>e.value===this.currentPreset))}get isPresetsOverridesEnabled(){return c.configStore.isExperimentEnabled("design-presets-overrides")}get presetItems(){const e=this.element.data.type;return this.availablePresets.filter((t=>t.availableForType===e)).map((e=>({text:e.name,value:e.id})))}get currentPreset(){return this.element.data.properties?.meta?.preset}get canCreatePreset(){return!!this.element.data.properties?.design}async createPresetOnEnter(){if(-1!==this.autocompleteListIndex)return;if(this.foundPresetsWithName)return;if(!this.newPresetName)return;if(!this.canCreatePreset)return void cd.Z.log.errorMessage("No design to save as preset");const e=(0,ae.Lr)(this.newPresetName,this.element.data.type,this.element.data.properties.design);this.addingPreset=!0;try{(0,ae.xk)(e),(0,ae.I8)(e.id,this.element.id),this.$refs.input.blur()}catch(t){cd.Z.log.errorMessage("Failed to save preset")}finally{this.addingPreset=!1}}onListIndexUpdate(e){this.autocompleteListIndex=e}selectPreset(e){this.newPresetName="",(0,ae.I8)(e,this.element.id,!this.isPresetsOverridesEnabled),this.autocompleteListIndex=-1}clear(){(0,ae.Tn)(this.element.id)}detach(){this.currentPreset&&((0,ae.WE)(this.currentPreset,this.element.id),(0,ae.Tn)(this.element.id))}edit(){c.uiStore.setActivePresetId(this.currentPreset),(0,Bu.oM)("presets")}openSavePresetDialog(){this.savePresetDialog=!0}closePresetDialog(){this.savePresetDialog=!1}};(0,r.gn)([(0,l.fI)()],wx.prototype,"element",void 0),wx=(0,r.gn)([(0,l.wA)({components:{NiceButton:Br.Z,Icon:He.Z,DropdownInput:Cd.Z,AlertBox:Ag.Z,PresetDialog:xa}})],wx);const Ix=wx,Px=Ix;var kx=(0,N.Z)(Px,Cx,xx,!1,null,null,null);const Ex=kx.exports;var Tx=n(37220);let Dx=class extends s.ZP{constructor(){super(...arguments),this.searchBoxState={modifiedOnly:!1,includeSettings:!1,query:""},this.editingElementControlsTreeContext=Tx.rq,this.searchString=""}get element(){return c.uiStore.activeElement}get elementId(){return c.uiStore.activeElementId}clearQuery(){this.updateSearchBoxState({modifiedOnly:!1,query:"",includeSettings:!1})}updateSearchBoxState(e){this.searchBoxState=e}get hasSearchParameters(){return this.searchBoxState.modifiedOnly||this.searchBoxState.query}get noSearchResults(){return gx(this.controlsFilteredBySearchParams.contentSections,0)+gx(this.controlsFilteredBySearchParams.designSections,0)+gx(this.controlsFilteredBySearchParams.settingsSections,0)===0}get controlsFilteredBySearchParams(){const e=this.searchBoxState.includeSettings,t=this.searchBoxState.modifiedOnly,n=this.isPresetEnabled&&!this.isPresetsOverridesEnabled,s=this.searchBoxState.query,i={designSections:n?[]:this.controls.designSections,contentSections:this.controls.contentSections,settingsSections:e?this.controls.settingsSections:[]},o=t?this.controls:i;return ux(o,t,s,this.editingElementControlsTreeContext)}get controls(){const e=this.element.data.type,t=c.configStore.element(e).controls;return(0,dx.Z)(t,c.configStore.permission)}get isPresetEnabled(){return!!this.element&&(0,ae.CO)(this.element.id)}get searchDisabled(){return"design"===this.tab&&this.isPresetEnabled&&!this.isPresetsOverridesEnabled}get isPresetsOverridesEnabled(){return c.configStore.isExperimentEnabled("design-presets-overrides")}get contentSections(){return this.controls.contentSections}get designSections(){return this.controls.designSections}get settingsSections(){return this.controls.settingsSections}get hasContentControls(){return this.controls.contentSections.length>0}get hasDesignControls(){return this.controls.designSections.length>0}get hasSettingsControls(){return this.controls.settingsSections.length>0}get tab(){return this.elementId&&c.uiStore.activeElementProperties?.tab?c.uiStore.activeElementProperties.tab:this.hasContentControls?"content":this.hasDesignControls?"design":this.hasSettingsControls?"settings":""}updateTab(e){this.elementId&&c.uiStore.setCurrentElementTab(e)}};(0,r.gn)([(0,l.fI)()],Dx.prototype,"value",void 0),(0,r.gn)([(0,l.DF)("context")],Dx.prototype,"editingElementControlsTreeContext",void 0),Dx=(0,r.gn)([(0,l.wA)({components:{ElementPresetChooser:Ex,DropdownInput:Cd.Z,ControlsTree:_C["default"],SearchBox:OC,DesignContentSettingsTabs:nx,DesignTabContent:cx,Icon:He.Z,SearchBoxEmptyState:Sx}})],Dx);const Ax=Dx,Zx=Ax;var Ox=(0,N.Z)(Zx,yC,fC,!1,null,null,null);const Mx=Ox.exports;let Bx=class extends s.ZP{get elementIsActive(){return!!c.uiStore.activeElement}};Bx=(0,r.gn)([(0,l.wA)({components:{Titlebar:aC,TabsAndControls:Mx,BlankSidebarContent:hC}})],Bx);const Lx=Bx,Nx=Lx;var Fx=(0,N.Z)(Nx,$S,WS,!1,null,null,null);const Rx=Fx.exports;var Vx=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-add-panel"},[t("PanelHeader",{on:{close:e.close},scopedSlots:e._u(["oxygen"===e.builderMode?{key:"right",fn:function(){return[t("IconButton",{staticClass:"breakdance-toolbar-icon-button",attrs:{icon:"BookOpenIcon",size:14,small:"",tooltip:e.__("Design Library")},on:{click:e.openDesignLibrary}})]},proxy:!0}:null],null,!0)},[e._v(" "+e._s(e.__("Add"))+" ")]),"success"===e.state?["breakdance"===e.builderMode?t("div",{staticClass:"breakdance-add-panel__selection-wrapper"},[t("button",{staticClass:"breakdance-add-panel__panel-selection breakdance-add-panel__panel-selection--active"},[e._v(" "+e._s(e.__("Elements"))+" ")]),t("button",{staticClass:"breakdance-add-panel__panel-selection",on:{click:e.openDesignLibrary}},[e._v(" "+e._s(e.__("Library"))+" ")])]):e._e(),t("ElementsList")]:"loading"===e.state?[t("div",{staticClass:"d-flex justify-center align-center",staticStyle:{height:"100%"}},[t(Xp.Z,{attrs:{indeterminate:"",size:100,color:"var(--gray300)"}})],1)]:[t("div",{staticClass:"d-flex justify-center align-center pa-4",staticStyle:{height:"100%","font-size":"var(--text-md)","font-weight":"500",color:"var(--gray700)"}},[e._v(" "+e._s(e.__("error: failed to load elements"))+" ")])]],2)},$x=[],Wx=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-add-panel__element-list"},[t("div",{staticClass:"breakdance-add-panel-search d-flex"},[e.isAddPanelOpen?t("SearchInput",{attrs:{tabindex:"0",placeholder:e.isElementStudioOpen?e.sprintf(e.__("Search %d elements"),e.elementsCount):e.__("Search elements"),value:e.searchString,autofocus:!0,"data-test-id":"breakdance-add-panel-search"},on:{input:e.handleSearch,keydown:[e.resetSelectedSearchItemIndex,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addSelectedSearchItem.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.nextOrPreviousSelectedSearchElement.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.goToSelectedSearchElement("prev"))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.goToSelectedSearchElement("next"))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closePanel.apply(null,arguments)}]}}):e._e(),e.advancedSearchAvailable?[t(Qo.Z,{staticClass:"ml-2",attrs:{"x-small":"",text:"",outlined:e.hasSearchParams},on:{click:function(t){e.advancedSearchDialogOpen=!0}}},[e._v(e._s(e.__("advanced")))]),t(Ha.Z,{attrs:{width:"220"},model:{value:e.advancedSearchDialogOpen,callback:function(t){e.advancedSearchDialogOpen=t},expression:"advancedSearchDialogOpen"}},[t(Jc.Z,[t(yd.ZB,[t("br"),t("h4",[e._v(e._s(e.__("Internal Element Project Management Tool")))]),t(Qo.Z,{attrs:{small:""},on:{click:e.dumpSearchResults}},[e._v(e._s(e.__("dump search results")))]),t("div",{staticClass:"d-flex align-center justify-space-between"},[e._v(" "+e._s(e.__("Has Dynamic Stuff"))+" "),t(Fg.Z,{model:{value:e.advancedSearchHasDynamicStuff,callback:function(t){e.advancedSearchHasDynamicStuff=t},expression:"advancedSearchHasDynamicStuff"}})],1),e._v(" "+e._s(e.__("Looks Good:"))+" "),t("DropdownInput",{attrs:{items:e.advancedSearchDropdownItems,clearable:""},model:{value:e.advancedSearchLooksGood,callback:function(t){e.advancedSearchLooksGood=t},expression:"advancedSearchLooksGood"}}),t("br"),e._v(" "+e._s(e.__("Options Good:"))+" "),t("DropdownInput",{attrs:{items:e.advancedSearchDropdownItems,clearable:""},model:{value:e.advancedSearchOptionsGood,callback:function(t){e.advancedSearchOptionsGood=t},expression:"advancedSearchOptionsGood"}}),t("br"),e._v(" "+e._s(e.__("Options Work:"))+" "),t("DropdownInput",{attrs:{items:e.advancedSearchDropdownItems,clearable:""},model:{value:e.advancedSearchOptionsWork,callback:function(t){e.advancedSearchOptionsWork=t},expression:"advancedSearchOptionsWork"}}),t("br"),e._v(" "+e._s(e.__("Dynamic Behavior Works:"))+" "),t("DropdownInput",{attrs:{items:e.advancedSearchDropdownItems,clearable:""},model:{value:e.advancedSearchDynamicBehaviorWorks,callback:function(t){e.advancedSearchDynamicBehaviorWorks=t},expression:"advancedSearchDynamicBehaviorWorks"}}),t("br")],1)],1)],1)]:e._e()],2),t("div",{staticClass:"breakdance-add-panel__item-wrapper"},[e.hasSearchParams?e._e():e._l(e.elementCategories,(function(n,s){return t("div",{key:s},[e.elementsInActiveCategory(n.slug).length?t("Accordion",{attrs:{expanded:e.openCategoriesIndex.includes(s)},on:{toggle:function(t){return e.chooseCategory(s)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"breakdance-add-panel__item-title",attrs:{tabindex:"0","data-test-id":`elements-category-${n.label.replace(/ /g,"-").toLowerCase()}`},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.chooseCategory(s)}}},[e._v(" "+e._s(n.label)+" ")])]},proxy:!0},{key:"content",fn:function(){return[t("div",{staticClass:"breakdance-add-panel__item-element-wrapper"},e._l(e.elementsInActiveCategory(n.slug),(function(e,n){return t("AddElement",{key:n,attrs:{element:e}})})),1)]},proxy:!0}],null,!0)}):e._e()],1)})),e.hasSearchParams?t("div",{staticClass:"breakdance-add-panel__item-element-wrapper breakdance-add-panel__item-element-wrapper--search"},[e.searchResultsCount?e._e():t("div",{staticClass:"breakdance-add-panel__no-results-for-search"},[e._v(" "+e._s(e.__("no results"))+" ")]),e._l(e.elementsForSearch,(function(n,s){return t("AddElement",{key:n.slug,attrs:{isSearching:!0,element:n,isSelected:e.selectedSearchElementIndex===s,"show-html-tag":e.searchInHtmlTags,"search-query":e.searchString}})}))],2):e._e()],2)])},Ux=[],zx=n(39872),Hx=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t(Qo.Z,{on:{click:function(t){e.isOpen=!0}}},[e._v(e._s(e.__("Open Website Dialog")))]),t(Ha.Z,{model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t(Jc.Z,[t("h1",[e._v(" "+e._s(e.__("use the below HTML code on breakdance.com to display a list of elements."))+" ")]),t("p",[e._v(" "+e._s(e.__("this is currently used at https://breakdance.com/features/elements"))+" ")]),t("div",{staticClass:"all-elements"},e._l(e.elementCategories,(function(n){return t("div",{key:n.categoryLabel,staticClass:"element-category-wrapper"},[t("div",{staticClass:"element-category"},[t("h3",{staticClass:"element-category-label"},[e._v(" "+e._s(n.categoryLabel)+" ")])]),t("div",{staticClass:"elements"},e._l(n.elements,(function(n){return t("div",{key:n.element,staticClass:"element"},[t("div",{staticClass:"element-title"},[e._v(" "+e._s(n.element)+" ")]),n.icon&&e.elementIconIsLocal(n.icon)?t("div",{staticClass:"element-icon"},[t("RawIcon",{attrs:{icon:n.icon}})],1):t("div",{staticClass:"element-icon",domProps:{innerHTML:e._s(n.icon)}})])})),0)])})),0)])],1)],1)},Gx=[],Kx=n(24192);let jx=class extends s.ZP{constructor(){super(...arguments),this.isOpen=!1}elementIconIsLocal(e){return fy.iconNames.find((t=>t===e))}get elementCategories(){const e=Object.values(c.configStore.elements);return c.configStore.builderElementCategories.map((t=>({categoryLabel:t.label,elements:e.filter((e=>!0!==e.experimental)).filter((e=>!e.addPanelRules||!e.addPanelRules.alwaysHide)).filter((e=>e.category===t.slug)).map((e=>({element:e.name,icon:e.uiIcon}))).sort(((e,t)=>e.element.localeCompare(t.element)))}))).filter((e=>0!==e.elements.length))}};jx=(0,r.gn)([(0,l.wA)({components:{RawIcon:Kx.Z}})],jx);const qx=jx,Xx=qx;var Yx=(0,N.Z)(Xx,Hx,Gx,!1,null,null,null);const Qx=Yx.exports;let Jx=class extends s.ZP{constructor(){super(...arguments),this.openCategoriesIndex=[0,1],this.searchString="",this.selectedSearchElementIndex=0,this.advancedSearchAvailable=!1,this.advancedSearchDialogOpen=!1,this.advancedSearchHasDynamicStuff=!1,this.advancedSearchLooksGood=!1,this.advancedSearchOptionsGood=!1,this.advancedSearchOptionsWork=!1,this.advancedSearchDynamicBehaviorWorks=!1}get builderMode(){return c.configStore.builderMode}addSelectedSearchItem(){const e=this.elementsForSearch[this.selectedSearchElementIndex]?.slug;e&&(0,qe.Sl)(this.elementsForSearch[this.selectedSearchElementIndex])&&(c.documentStore.addElement({elementSlug:e}),this.doesSearchQueryMatchAnyHtmlTag&&(0,qe.Q$)(c.uiStore.activeElementId,this.searchString,`DocumentAddElement:Slug:${e}`),"oxygen"===this.builderMode&&(0,Bu.TO)("add"))}get searchResultsCount(){return Object.keys(this.elementsForSearch).length}goToSelectedSearchElement(e="next"){let t="next"===e?this.selectedSearchElementIndex+1:this.selectedSearchElementIndex-1;t===this.searchResultsCount?t=0:-1===t&&(t=this.searchResultsCount-1),this.selectedSearchElementIndex=t,this.scrollToActive()}nextOrPreviousSelectedSearchElement(e){""!==this.searchString&&e.preventDefault(),this.goToSelectedSearchElement(e.shiftKey?"prev":"next")}handleSearch(e){this.searchString!==e&&document.querySelector(".breakdance-add-panel")?.scrollTo({top:0}),this.searchString=e}get isAddPanelOpen(){return"add"===this.panelContext?.state}resetSearchWhenPanelOpens(){this.isAddPanelOpen&&this.handleSearch("")}resetSelectedSearchItemIndex(e){const t=["Enter","Tab","ShiftLeft","ShiftRight","ArrowUp","ArrowDown"];t.includes(e.code)||(this.selectedSearchElementIndex=0)}get elementsCount(){return this.elements.length}chooseCategory(e){this.searchString="";const t=this.openCategoriesIndex.findIndex((t=>t===e));-1===t?this.openCategoriesIndex=[...this.openCategoriesIndex,e]:this.openCategoriesIndex.splice(t,1)}elementsInActiveCategory(e){return this.elements.filter((t=>t.category===e))}get elementCategories(){return c.configStore.builderElementCategories}get elements(){return Object.values(c.configStore.elements).filter((e=>!!c.uiStore.settings.showExperimentalElements||!0!==e.experimental)).filter((e=>!(0,qe.GF)(e.addPanelRules,e.settings))).filter((e=>(0,qe.Sl)(e))).sort(((e,t)=>e.ordert.order?1:0))}get searchInHtmlTags(){return"oxygen"===c.configStore.builderMode}get doesSearchQueryMatchAnyHtmlTag(){return this.filteredSearchElements.find((e=>[e.htmlTag?.default,...e.htmlTag?.options].filter(Boolean).find((e=>e===this.searchString))))}get elementsForSearch(){return this.doesSearchQueryMatchAnyHtmlTag?this.filteredSearchElements.sort(((e,t)=>{const n=e.category?.toLowerCase(),s=t.category?.toLowerCase();return n===s?0:"basic"===n?-1:"basic"===s?1:0})):this.filteredSearchElements}get filteredSearchElements(){const e=this.searchInHtmlTags?["htmlTag.default","htmlTag.options"]:[],t=(0,qe.tM)(this.elements,this.searchString,e),n=t.filter((e=>{const t=e.projectManagement?e.projectManagement:void 0;return!Object.values({looksGood:this.advancedSearchLooksGood?t?.looksGood==this.advancedSearchLooksGood:void 0,optionsGood:this.advancedSearchOptionsGood?t?.optionsGood==this.advancedSearchOptionsGood:void 0,optionsWork:this.advancedSearchOptionsWork?t?.optionsWork==this.advancedSearchOptionsWork:void 0,dynamicBehaviorWorks:this.advancedSearchDynamicBehaviorWorks?t?.dynamicBehaviorWorks==this.advancedSearchDynamicBehaviorWorks:void 0,hasDynamicStuff:this.advancedSearchHasDynamicStuff?e.dependencies||e.actions:void 0}).includes(!1)}));return n}scrollToActive(){(0,A.forceNextTick)((()=>{document.querySelector(".breakdance-add-panel__element--selected")?.scrollIntoView({block:"center"})}))}dumpSearchResults(){console.log(this.elementsForSearch.map((e=>e.name)).join("\n"))}get advancedSearchDropdownItems(){return["yes","no","unknown","sort of"]}mounted(){Ke.uq.register("a d v",(()=>this.advancedSearchAvailable=!0))}beforeDestroy(){Ke.uq.unbind("a d v")}get hasSearchParams(){return!!(this.searchString||this.advancedSearchLooksGood||this.advancedSearchOptionsGood||this.advancedSearchOptionsWork||this.advancedSearchDynamicBehaviorWorks||this.advancedSearchHasDynamicStuff)}updateAdvancedSearchValue(e,t){this[e]=t}get isElementStudioOpen(){return c.uiStore.panelState.elementStudioOpen}closePanel(){(0,Bu.TO)("add")}};(0,r.gn)([(0,l.tB)({from:"panelContext",default:{}})],Jx.prototype,"panelContext",void 0),(0,r.gn)([(0,l.RL)("isAddPanelOpen")],Jx.prototype,"resetSearchWhenPanelOpens",null),Jx=(0,r.gn)([(0,l.wA)({components:{SearchInput:eu.Z,TextInput:na.Z,Accordion:tv.Z,AddElement:zx.Z,DropdownInput:Cd.Z,WebsiteDialog:Qx}})],Jx);const ew=Jx,tw=ew;var nw=(0,N.Z)(tw,Wx,Ux,!1,null,null,null);const sw=nw.exports;var iw,ow=n(18236),aw=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Ha.Z,{attrs:{fullscreen:e.fullscreen,width:e.fullscreen?null:1140,"content-class":"design-library-dialog"},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t("header",{staticClass:"design-library-header"},[t("TopBarSection",[t("IconButton",{attrs:{icon:"HouseIcon",size:"18",title:e.__("Go home")},on:{click:e.goHome}})],1),t("TopBarSection",{attrs:{"border-left":!0,"border-right":!0}},[t("DesignProviderDropdown",{attrs:{providers:e.providers},model:{value:e.selectedProvider,callback:function(t){e.selectedProvider=t},expression:"selectedProvider"}})],1),t("TopBarSection",{staticClass:"design-library-breakpoint-chooser ml-auto mr-auto",attrs:{"border-left":!0,"border-right":!0}},[t("BreakpointsSelection",{model:{value:e.breakpoint,callback:function(t){e.breakpoint=t},expression:"breakpoint"}})],1),t("TopBarSection",{staticClass:"ml-auto pr-2",attrs:{"border-right":!0}},[t("NiceButton",{attrs:{disabled:!e.canImportAll,"left-icon":"ArrowDownToLine",loading:e.importingPage},on:{click:e.importAll}},[e._v(" "+e._s(e.__("Import Page"))+" ")])],1),t("TopBarSection",[t("IconButton",{attrs:{icon:e.fullscreen?"DownLeftAndUpRightToCenter":"UpRightAndDownLeftFromCenter",size:"18",title:e.__("Make modal full screen")},on:{click:e.toggleFullscreen}}),e.selectedUrl?t("a",{attrs:{href:e.selectedUrl,target:"_blank"}},[t("IconButton",{attrs:{icon:"ShareFromSquareIcon",size:"18",title:e.__("Visit site")}})],1):e._e()],1),t("TopBarSection",{attrs:{"border-left":!0}},[t("IconButton",{attrs:{icon:"CloseIcon",size:"18",title:e.__("Close modal")},on:{click:e.close}})],1)],1),t("div",{staticClass:"design-library-contents"},[t("DesignLibrarySidebar",{attrs:{items:e.sidebarItems},on:{select:e.onPostSelected}}),t("div",{ref:"iframeWrapper",staticClass:"design-library-iframe-wrapper"},[e.previewLoaded?[t("DesignLibraryDependencyWarning",{attrs:{provider:e.selectedProvider,"relies-on-global-settings":e.reliesOnGlobalSettings,"relies-on-design-presets":e.reliesOnDesignPresets}})]:e._e(),t("ProOnlyAlertBox",{attrs:{options:{feature:"design-library",content:e.__("Soon, the Design Library will only be available in the pro version. For now, enjoy your free preview!")}}}),e.showPasswordForm?t("DesignLibraryPassword",{attrs:{provider:e.selectedProvider,compact:!0},on:{"password-validated":e.getAllProvidersAndReloadSelected}}):t("div",{staticClass:"design-library-iframe-inner-wrapper",style:e.iframeWrapperStyles},[e.selectedProvider&&e.iframeUrl?t("iframe",{ref:"iframe",staticClass:"design-library-iframe",style:e.iframeStyles,attrs:{src:e.iframeUrl},on:{load:e.onProviderLoaded}}):e._e()]),e.previewLoaded?t(ow.Z,{attrs:{value:e.loading,absolute:""}},[t(Xp.Z,{attrs:{indeterminate:"",size:"64"}})],1):e._e(),!e.previewLoaded&&e.selectedProvider?t("DesignLibrarySkeleton"):e._e()],2)],1)])},rw=[],lw=n(65118),cw=n(75031),dw=function(){var e=this;e._self._c;return e._m(0)},uw=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"design-library-skeleton-loader"},[t("span",{staticClass:"design-library-skeleton-header"},[t("span",{staticClass:"design-library-skeleton-line"}),t("span",{staticClass:"design-library-skeleton-line"}),t("span",{staticClass:"design-library-skeleton-line"})]),t("span",{staticClass:"design-library-skeleton-hero"},[t("span",{staticClass:"design-library-skeleton-line"}),t("span",{staticClass:"design-library-skeleton-line"})]),t("div",{staticClass:"design-library-skeleton-button"},[t("span",{staticClass:"design-library-skeleton-line"}),t("span",{staticClass:"design-library-skeleton-line"})])])}];let pw=(0,l.wA)(iw=class extends s.ZP{})||iw;const hw=pw;var gw=(0,N.Z)(hw,dw,uw,!1,null,null,null);const mw=gw.exports;var vw=n(33356),yw=n(12817),fw=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("aside",{staticClass:"design-library-sidebar"},[t("header",{staticClass:"design-library-sidebar-header"},[t("SearchInput",{attrs:{placeholder:e.__("Search..."),autofocus:!0,small:!0},model:{value:e.searchQuery,callback:function(t){e.searchQuery=t},expression:"searchQuery"}}),e.types.length?t("DropdownInput",{attrs:{items:e.types,placeholder:e.__("Filter by type"),clearable:!0},model:{value:e.selectedType,callback:function(t){e.selectedType=t},expression:"selectedType"}}):e._e()],1),t(yw.Z,{attrs:{hoverable:"",activatable:"","open-on-click":"",items:e.treeItems,"open-all":!!e.searchQuery},on:{"update:active":function(t){return e.$emit("select",t)}},scopedSlots:e._u([{key:"prepend",fn:function({item:n,open:s}){return[n.children?t("Icon",{attrs:{icon:s?"FolderOpenIcon":"FolderIcon"}}):e._e()]}}])})],1)},_w=[],bw=n(74221);let Sw=class extends s.ZP{constructor(){super(...arguments),this.searchQuery="",this.selectedType=""}onItemsChange(){this.searchQuery="",this.selectedType=""}get filteredItems(){const e=this.searchQuery;if(!e)return this.items.filter(this.filterItemByType);const t=new bw.Z(this.items,{keys:["name"],threshold:.2});return t.search(e.trim()).map((e=>e.item)).filter(this.filterItemByType)}get types(){const e=[...new Set(this.items.map((e=>e.type)))].filter(Boolean);return e.map((e=>({value:e,text:g()(e?.replace("breakdance_",""))})))}get treeItems(){const e=[],t=this.filteredItems.reduce(((t,n)=>(n.tags.length?n.tags.forEach((e=>{t[e]=t[e]||[],t[e].push(n)})):e.push(n),t)),Object.create(null)),n=Object.keys(t).map((e=>({id:e,name:e,children:t[e]})));return[...e,...n]}filterItemByType(e){return!this.selectedType||e.type===this.selectedType}};(0,r.gn)([(0,l.fI)({default(){return[]}})],Sw.prototype,"items",void 0),(0,r.gn)([(0,l.RL)("items")],Sw.prototype,"onItemsChange",null),Sw=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z,AlertBox:Ag.Z,SearchInput:eu.Z,Icon:He.Z}})],Sw);const Cw=Sw,xw=Cw;var ww=(0,N.Z)(xw,fw,_w,!1,null,null,null);const Iw=ww.exports;var Pw=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.isInlineImportEnabled?t("div",[t("div",{staticClass:"design-library-global-settings-warning"},[t("div",[t("div",{staticClass:"design-library-global-settings-warning-text"},[e.wasPreviouslyImported?[t("Icon",{staticClass:"design-library_success-icon",attrs:{icon:"CheckSquareIcon"}}),e._v(" "+e._s(e.__("You've already imported settings from this Design Library."))+" ")]:[t("Icon",{staticClass:"design-library_warning-icon",attrs:{icon:"ExclamationMarkCircleIcon"}}),t("span",[e._v(" "+e._s(e.sprintf(e.__("This design set relies on %s. It won't look the same unless you import them."),e.items))+" ")])]],2)]),t("NiceButton",{on:{click:e.toggleImportScreen}},[e._v(e._s(e.__("Import Settings")))])],1),e.showImportScreen?t("div",{staticClass:"design-library-import-global-settings-panel"},[t("div",{staticClass:"design-library-import-global-settings-panel-content"},[e.loading?t("div",[t("LoadingSpinner",{attrs:{color:"var(--gray500)",size:65}})],1):[t("span",[e._v(" "+e._s(e.__("Importing from this design set will replace some of your current settings."))+" ")]),e.availableImportTypesCount>1?t("div",{staticClass:"import-options"},[t("h4",[e._v(e._s(e.__("Choose what to import:")))]),t("div",{staticClass:"checkbox-group"},[e.isGlobalSettingsEnabled()?t(Um.Z,{staticClass:"checkbox-item",attrs:{label:e.__("Global Settings"),"hide-details":""},model:{value:e.selectedItems.globalSettings,callback:function(t){e.$set(e.selectedItems,"globalSettings",t)},expression:"selectedItems.globalSettings"}}):e._e(),e.isDesignPresetsEnabled()?t(Um.Z,{staticClass:"checkbox-item",attrs:{label:e.__("Design Presets"),"hide-details":""},model:{value:e.selectedItems.designPresets,callback:function(t){e.$set(e.selectedItems,"designPresets",t)},expression:"selectedItems.designPresets"}}):e._e(),e.isVariablesEnabled()?t(Um.Z,{staticClass:"checkbox-item",attrs:{label:e.__("Variables"),"hide-details":""},model:{value:e.selectedItems.variables,callback:function(t){e.$set(e.selectedItems,"variables",t)},expression:"selectedItems.variables"}}):e._e(),e.isOxySelectorsEnabled()?t(Um.Z,{staticClass:"checkbox-item",attrs:{label:e.__("Selectors"),"hide-details":""},model:{value:e.selectedItems.oxySelectors,callback:function(t){e.$set(e.selectedItems,"oxySelectors",t)},expression:"selectedItems.oxySelectors"}}):e._e()],1)]):e._e(),t("div",[t(Qo.Z,{staticClass:"mr-2",attrs:{text:""},on:{click:e.toggleImportScreen}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(Qo.Z,{attrs:{dark:"",color:"blue",disabled:!e.hasSelectedItems},on:{click:e.importSelectedItems}},[e._v(" "+e._s(e.__("Confirm Overwrite & Import"))+" ")])],1)]],2)]):e._e()]):e._e()},kw=[],Ew=n(14018),Tw=n(17582),Dw=n(22218),Aw=n(58720);const Zw={globalSettings:{key:"globalSettings",label:"Global Settings",action:"breakdance_get_external_global_settings",decoder:cw.az,storeKey:"globalSettingsLastImportedFromUrl",setter:e=>c.globalStore.setGlobalSettings(e?.globalSettings),uiPanel:"globalSettings"},designPresets:{key:"designPresets",label:"Design Presets",action:"breakdance_get_external_design_presets",decoder:Ew.p,storeKey:"designPresetsLastImportedFromUrl",setter:e=>c.globalStore.setPresets(e),uiPanel:"presets"},variables:{key:"variables",label:"Variables",action:"breakdance_get_external_variables",decoder:iu.dt({variables:Tw.eh,collections:iu.IX(iu.Z_)}),storeKey:"variablesLastImportedFromUrl",setter:e=>{c.globalStore.setVariables(e.variables),c.globalStore.setVariablesCollections(e.collections)},uiPanel:"variables"},oxySelectors:{key:"oxySelectors",label:"Selectors",action:"breakdance_get_external_oxy_selectors",decoder:iu.dt({selectors:iu.IX(Dw.En),collections:iu.IX(iu.Z_)}),storeKey:"oxySelectorsLastImportedFromUrl",setter:e=>{console.log("importing selectors",e),c.globalStore.setOxygenSelectors(e.selectors),c.globalStore.setOxygenSelectorsCollections(e.collections)},uiPanel:null}};let Ow=class extends s.ZP{constructor(){super(...arguments),this.loading=!1,this.showImportScreen=!1,this.selectedItems=this.getDefaultSelectedItems()}get isInlineImportEnabled(){return!!this.provider&&(!this.provider.isLocal&&(!!this.wasPreviouslyImported||this.hasAvailableImportTypes))}get wasPreviouslyImported(){const e=this.provider?.url,t=this.providerData,n=["globalSettingsLastImportedFromUrl","designPresetsLastImportedFromUrl","variablesLastImportedFromUrl","oxySelectorsLastImportedFromUrl"];return n.some((n=>t?.[n]===e))}get providerData(){return c.configStore.designLibrary}get hasAvailableImportTypes(){return this.isGlobalSettingsEnabled()||this.isDesignPresetsEnabled()||this.isVariablesEnabled()||this.isOxySelectorsEnabled()}get availableImportTypesCount(){return[this.isGlobalSettingsEnabled(),this.isDesignPresetsEnabled(),this.isVariablesEnabled(),this.isOxySelectorsEnabled()].filter(Boolean).length}get hasSelectedItems(){return Object.values(this.selectedItems).some((e=>e))}get items(){const e=[];return this.isGlobalSettingsEnabled()&&e.push((0,Ft.__)("Global Settings")),this.isDesignPresetsEnabled()&&e.push((0,Ft.__)("Design Presets")),this.isVariablesEnabled()&&e.push((0,Ft.__)("Variables")),this.isOxySelectorsEnabled()&&e.push((0,Ft.__)("Selectors")),(0,Ft.UY)(e)}getDefaultSelectedItems(){return{globalSettings:this.isGlobalSettingsEnabled(),designPresets:this.isDesignPresetsEnabled(),variables:this.isVariablesEnabled(),oxySelectors:this.isOxySelectorsEnabled()}}isGlobalSettingsEnabled(){return this.providerData?.isGlobalSettingsEnabled&&this.reliesOnGlobalSettings}isDesignPresetsEnabled(){return this.providerData?.isDesignPresetsEnabled&&this.reliesOnDesignPresets}isVariablesEnabled(){return this.providerData?.isVariablesEnabled}isOxySelectorsEnabled(){return this.providerData?.isOxySelectorsEnabled}getProviderDisplayName(){return this.provider?.name||this.provider?.url||(0,Ft.__)("Unknown")}resetSelectedItems(){this.selectedItems=this.getDefaultSelectedItems()}toggleImportScreen(){this.showImportScreen=!this.showImportScreen,this.showImportScreen&&this.resetSelectedItems()}async importSelectedItems(){if(this.provider?.isLocal)return;this.loading=!0;const e=Object.entries(this.selectedItems).filter((([e,t])=>t)).map((([e])=>this.importType(e)));await Promise.all(e),this.loading=!1,this.showImportScreen=!1,this.resetSelectedItems()}async importType(e){const t=Zw[e],n=this.provider?.url;if(!t.action)return;if(!n)return;const s=(0,su.zG)(await(0,ad.D)({action:t.action,decoder:t.decoder,friendlyName:`${t.label} for "${n}"`,dataToPost:{url:n}}),(0,ou.g_)((()=>!1),(e=>(t.storeKey&&c.configStore.setDesignLibrary({...c.configStore.designLibrary,[t.storeKey]:n}),e))));!1!==s&&null!==s?(t.setter?.(s),t.uiPanel&&c.uiStore.setShouldPanelLoadFreshDataIntoStoreOnceOpened(t.uiPanel,!1),cd.Z.log.message((0,Ft.gB)((0,Ft.TZ)('Imported %s from "%s"',"1: import type label, 2: provider name"),t.label,this.getProviderDisplayName()))):cd.Z.log.errorMessage((0,Ft.gB)((0,Ft.TZ)('Error importing %s for "%s"',"1: import type label, 2: provider name"),t.label,this.getProviderDisplayName()))}};(0,r.gn)([(0,l.fI)({default:null})],Ow.prototype,"provider",void 0),(0,r.gn)([(0,l.fI)({default:!1})],Ow.prototype,"reliesOnGlobalSettings",void 0),(0,r.gn)([(0,l.fI)({default:!1})],Ow.prototype,"reliesOnDesignPresets",void 0),Ow=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,NiceButton:Br.Z,LoadingSpinner:Aw.Z}})],Ow);const Mw=Ow,Bw=Mw;var Lw=(0,N.Z)(Bw,Pw,kw,!1,null,null,null);const Nw=Lw.exports;var Fw=n(92260),Rw=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dropdown",{attrs:{"offset-y":"","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({staticClass:"document-chooser"},n),[t("div",{staticClass:"document-chooser-text"},["breakdance"===e.builderMode?t("h2",[e._v(" "+e._s(e.__("Design Set"))+" ")]):e._e(),"oxygen"===e.builderMode?t("span",{staticClass:"document-chooser-type-label"},[t("span",[e._v(e._s(e.__("Design Set:")))])]):e._e(),t("span",{staticClass:"ellipsis-text"},[e._v(" "+e._s(e.value&&e.value.name)+" ")])]),t("div",{staticClass:"document-chooser-dropdown-icon"},[t("Icon",{attrs:{size:"11",icon:"CaretDownIcon"}})],1)])]}}]),model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[t(Jc.Z,{staticClass:"vscroll-scroll vscroll-wrap",attrs:{width:"300",height:"350"}},[t("div",{staticClass:"preview-content-chooser-dialog-search-form-wrapper"},[t(ed.Z,{staticClass:"preview-content-chooser-dialog-search-box breakdance-dense-input",attrs:{label:e.__("Search..."),clearable:"",solo:"",flat:"",dense:"","full-width":"","single-line":"","background-color":"var(--gray150)",autofocus:""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),t(Ec.Z,{ref:"scrollable",staticClass:"vscroll-scroll",attrs:{dense:""}},[e._l(e.filteredProviders,(function(n,s){return[t(Tc.Z,{key:s,class:{"document-chooser-item-selected":e.value&&n.url===e.value.url},attrs:{link:""},on:{click:function(t){return e.chooseProvider(n)}}},[t(Dc.V9,{staticClass:"previewable-item-list-item"},[t("div",{staticClass:"previewable-item-label previewable-item-label-stop-text-from-overflowing"},[e._v(" "+e._s(n.name)+" ")]),n.type?t("div",{staticClass:"previewable-item-type"},[e._v(" "+e._s(e.formatType(n.type))+" ")]):e._e()])],1)]}))],2)],1)],1)},Vw=[];let $w=class extends s.ZP{constructor(){super(...arguments),this.open=!1,this.search=""}onSearchChange(){const e=this.$refs.scrollable;this.$nextTick((()=>{e.$el.scrollTop=0}))}get builderMode(){return c.configStore.builderMode}get filteredProviders(){return this.search?this.providers.filter((e=>e.name.toLowerCase().includes(this.search.toLowerCase()))):this.providers}formatType(e){return e.replace(/_/g," ")}chooseProvider(e){this.$emit("input",e),this.open=!1,(0,Tt.K)("Design Library",{action:"modal_provider_selected",provider:e.name,url:e.url})}};(0,r.gn)([(0,l.fI)()],$w.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],$w.prototype,"providers",void 0),(0,r.gn)([(0,l.RL)("search")],$w.prototype,"onSearchChange",null),$w=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,Dropdown:Oc.Z,TopBarSection:Kc}})],$w);const Ww=$w,Uw=Ww;var zw=(0,N.Z)(Uw,Rw,Vw,!1,null,null,null);const Hw=zw.exports;var Gw=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"design-library-global-settings-warning"},[t("div",[t("div",{staticClass:"design-library-global-settings-warning-text"},[e.lastImportedFromUrl===e.provider?.url?[t("Icon",{staticClass:"design-library_success-icon",attrs:{icon:"CheckSquareIcon"}}),e._v(" "+e._s(e.__("You've already imported the Design Presets from this site."))+" ")]:e.lastImportedFromUrl?[t("Icon",{staticClass:"design-library_warning-icon",attrs:{icon:"ExclamationMarkCircleIcon"}}),t("span",[e._v(" "+e._s(e.__("This design relies on Design Presets. It won't look the same unless you import them."))+" ")])]:[t("div",[e._v(" "+e._s(e.__("This design relies on Design Presets. It won't look the same unless you import them."))+" ")])]],2)]),t("NiceButton",{on:{click:e.toggleImportScreen}},[e._v(e._s(e.__("Import Design Presets")))])],1),e.showImportScreen?t("div",{staticClass:"design-library-import-global-settings-panel"},[e.loading?t("div",[t("LoadingSpinner",{attrs:{color:"var(--gray500)",size:65}})],1):[t("span",[e._v(" "+e._s(e.__("Your existing Design Presets will be overwritten with the Presets from this library website."))+" ")]),t("div",[t(Qo.Z,{staticClass:"mr-2",attrs:{text:""},on:{click:e.toggleImportScreen}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(Qo.Z,{attrs:{dark:"",color:"blue"},on:{click:e.importSettings}},[e._v(" "+e._s(e.__("Confirm Overwrite & Import"))+" ")])],1)]],2):e._e()])},Kw=[];let jw=class extends s.ZP{constructor(){super(...arguments),this.loading=!1,this.showImportScreen=!1}async importSettings(){if(this.provider?.isLocal)return;this.loading=!0;const e=this.provider?.url,t=(0,su.zG)(await(0,ad.D)({action:"breakdance_get_external_design_presets",decoder:Ew.p,friendlyName:`Design Presets for "${e}"`,dataToPost:{url:e}}),(0,ou.g_)((()=>null),(t=>(e&&Q.PK.setDesignLibrary({...Q.PK.designLibrary,designPresetsLastImportedFromUrl:e}),t))));this.loading=!1,this.showImportScreen=!1,t?(Q.cr.setPresets(t),Q.kD.setShouldPanelLoadFreshDataIntoStoreOnceOpened("presets",!1),cd.Z.log.message((0,Ft.gB)((0,Ft.TZ)('Imported Design Presets from "%s"',"%s: Provider name or URL"),this.provider?.name||this.provider?.url))):cd.Z.log.errorMessage((0,Ft.gB)((0,Ft.TZ)('Error importing Design Presets for "%s"',"%s: Provider name or URL"),this.provider?.name||this.provider?.url))}toggleImportScreen(){this.showImportScreen=!this.showImportScreen}};(0,r.gn)([(0,l.fI)({default:null})],jw.prototype,"provider",void 0),(0,r.gn)([(0,l.fI)({default:null})],jw.prototype,"lastImportedFromUrl",void 0),jw=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,NiceButton:Br.Z,LoadingSpinner:Aw.Z}})],jw);const qw=jw,Xw=qw;var Yw=(0,N.Z)(Xw,Gw,Kw,!1,null,null,null);const Qw=Yw.exports;var Jw=n(66696);let eI=class extends s.ZP{constructor(){super(...arguments),this.selectedProvider=null,this.selectedPostId=null,this.providerElements=[],this.reliesOnGlobalSettings=!1,this.reliesOnDesignPresets=!1,this.providerPosts=[],this.importingPage=!1,this.requiresPassword=!1,this.passwordValid=!0,this.breakpoint={id:Pe.Wp,label:"",minWidth:void 0,maxWidth:void 0,defaultPreviewWidth:Pe.kS},this.canvasSize={width:0,height:0},this.loading=!1,this.previewLoaded=!1,this.fullscreen=!1,this.loadingDesignSetData=!1}mounted(){Q.kD.hasFullAccess&&(Ke.uq.register(je.r.CMD_B,this.open),this.setSelectedProviderToLastUsedProvider())}beforeDestroy(){Ke.uq.unbind(je.r.CMD_B),this.unbindListeners()}get library(){return Q.PK.designLibrary}get providers(){return this.library.designProviders}get showPasswordForm(){return this.requiresPassword&&!this.passwordValid}setSelectedProviderToLastUsedProvider(){const e=(0,Qa.f8)(),t=this.providers.find((t=>t.url===e));if(t)this.selectedProvider=t;else{const e=this.providers.find((e=>"This Website"===e.name));e&&(this.selectedProvider=e)}}get sidebarItems(){return this.providerPosts}get isOpen(){return Q.kD.panelState.designLibraryModalOpen}set isOpen(e){Q.kD.setDesignLibraryModalState(e)}get selectedPost(){return this.providerPosts.find((e=>e.id===this.selectedPostId))}get selectedUrl(){return this.selectedPost?.url||this.selectedProvider?.url}get iframeUrl(){if(!this.selectedUrl)return null;const e=new URL(this.selectedUrl);return e.searchParams.append("breakdance","design-library"),this.currentProviderPassword&&e.searchParams.set("password",this.currentProviderPassword),e.toString()}get previewWidth(){return this.breakpoint.id===Pe.Wp?"100%":this.breakpoint.defaultPreviewWidth}get minWidth(){return(0,Pe.GV)(Q.cr)}get iframeWrapperStyles(){return{width:"100%"===this.previewWidth?"100%":`${this.previewWidth}px`}}get iframeStyles(){const e=e=>{const t=Math.min(1,this.canvasSize.width/e);return{width:`${e}px`,transform:`scale(${t})`,height:this.canvasSize.height*(1/t)+"px"}};return"100%"===this.previewWidth?this.canvasSize.widththis.setCanvasSize()),e)}setCanvasSize(){const e=this.$refs.iframeWrapper;if(!e)return;const{width:t,height:n}=e.getBoundingClientRect();this.canvasSize={width:t,height:n}}reloadIframe(){const e=this.$refs.iframe;e?(e.src+="",this.loading=!0):this.selectedProvider=this.providers[0]}goHome(){this.selectedPostId=null,this.reloadIframe()}toggleFullscreen(){this.fullscreen=!this.fullscreen,this.calculateSizeAfterTransition()}handleIframeMessage(e){if("string"!==typeof e.data)return;const[t,n]=e.data.split(/,(.*)/s);"breakdanceGetElements"===t&&this.getElements(n),"breakdanceImportElement"===t&&this.importElement(n),"breakdanceBeforeLeave"===t&&this.navigatedAway()}onPostSelected(e){const[t]=e;this.loading=!0,this.selectedPostId=t||null,this.reloadIframe(),(0,Tt.K)("Design Library",{action:"modal_page_selected",provider:this.selectedProvider?.name,post_id:t,url:this.selectedProvider?.url})}onProviderLoaded(){this.previewLoaded=!0,this.loading=!1,this.setCanvasSize()}getElements(e){this.loading=!1;const t=(0,lw.Z)(e,iu.IX(cw.NM));this.providerElements=(0,su.zG)(t,(0,ou.g_)((()=>[]),(e=>e)))}navigatedAway(){this.loading=!0}importElement(e){const t=(0,lw.Z)(e,cw.NM),n=(0,su.zG)(t,(0,ou.g_)((()=>null),(e=>e)));n&&((0,Tt.K)("Design Library",{action:"modal_import_element",provider:this.selectedProvider?.name,elementSlug:n.data.type,url:this.selectedProvider?.url}),this.insertElements([n]),this.close(),this.$nextTick((()=>{(0,vw.zE)()})))}insertElements(e){(0,Qa.AE)(e),this.selectedProvider&&(0,Qa.Hw)(this.selectedProvider.url)}importAll(){this.importingPage=!0,this.insertElements(this.providerElements),this.close(),this.importingPage=!1,this.$nextTick((()=>{(0,vw.zE)()}))}close(){Q.kD.setDesignLibraryModalState(!1)}open(){Q.kD.setDesignLibraryModalState(!0)}async getDesignSetData(){const e=this.selectedProvider?.url;this.loadingDesignSetData=!0,(0,su.zG)(await(0,ad.D)({action:this.selectedProvider?.isLocal?"breakdance_get_local_design_set":"breakdance_get_external_design_set",decoder:Fw.i2,friendlyName:"Design Set Data",dataToPost:{url:e}}),(0,ou.g_)((()=>{this.providerPosts=[]}),(e=>{this.providerPosts=e.posts,this.requiresPassword=e.requiresPassword||!1,this.passwordValid=!!e.passwordValid,this.reliesOnGlobalSettings=e.reliesOnGlobalSettings,this.reliesOnDesignPresets=e.reliesOnDesignPresets}))),this.loadingDesignSetData=!1}async getAllProvidersAndReloadSelected(){await this.getUpdatedDesignProviders();const e=this.providers.find((e=>e.name===this.selectedProvider?.name));this.selectedProvider=e||this.providers[0]}async getUpdatedDesignProviders(){(0,su.zG)(await(0,ad.D)({action:"breakdance_get_design_library_data",decoder:Fw.Jd}),(0,ou.g_)((()=>{}),(e=>{Q.PK.setDesignLibrary(e)})))}};(0,r.gn)([(0,l.RL)("isOpen")],eI.prototype,"onDialogOpen",null),(0,r.gn)([(0,l.RL)("selectedProvider")],eI.prototype,"onProviderChange",null),eI=(0,r.gn)([(0,l.wA)({components:{ProOnlyAlertBox:Zg.Z,IconButton:Xa.Z,NiceButton:Br.Z,DesignLibrarySidebar:Iw,DesignLibrarySkeleton:mw,TopBarSection:Kc,TextInput:na.Z,DropdownInput:Cd.Z,BreakpointsSelection:Fc,DesignProviderDropdown:Hw,DesignLibraryPassword:Jw.Z,DesignLibraryDependencyWarning:Nw,DesignLibraryDesignPresets:Qw}})],eI);const tI=eI,nI=tI;var sI=(0,N.Z)(nI,aw,rw,!1,null,null,null);const iI=sI.exports;var oI=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(gC.Z,{staticClass:"breakdance-panel-header d-flex align-center",attrs:{tile:""}},[t("div",{staticClass:"breakdance-panel-header-title"},[e._t("default")],2),t(vc.Z),e._t("right"),e.backInsteadOfClose?t("IconButton",{staticClass:"breakdance-panel-header-close-button",attrs:{icon:"ChevronDownIcon",rotate:"90",size:"12",small:""},on:{click:e.close}}):t("IconButton",{staticClass:"breakdance-panel-header-close-button",attrs:{icon:"CloseIcon",size:"breakdance"===e.builderMode?16:14,small:""},on:{click:e.close}})],2)},aI=[];let rI=class extends l.w3{close(){this.$emit("close")}get builderMode(){return c.configStore.builderMode}};(0,r.gn)([(0,l.fI)({default:!1})],rI.prototype,"backInsteadOfClose",void 0),rI=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z}})],rI);const lI=rI,cI=lI;var dI=(0,N.Z)(cI,oI,aI,!1,null,null,null);const uI=dI.exports;let pI=class extends s.ZP{close(){(0,Bu.TO)("add")}openDesignLibrary(){Q.kD.setDesignLibraryModalState(!0)}get state(){return Q.PK.elementsLoadingState}get builderMode(){return Q.PK.builderMode}};pI=(0,r.gn)([(0,l.wA)({components:{DesignLibraryModal:iI,PanelHeader:uI,ElementsList:sw,IconButton:Xa.Z}})],pI);const hI=pI,gI=hI;var mI=(0,N.Z)(gI,Vx,$x,!1,null,null,null);const vI=mI.exports;var yI=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll global-settings-panel"},[t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[t("PanelHeader",{on:{close:e.close},scopedSlots:e._u([{key:"right",fn:function(){return[t("ImportExportDropdownMenu",{attrs:{name:e.__("Global Settings"),"settings-to-export":e.settingsToExport,"validate-settings":e.validateImport,"import-settings":e.importSettings}})]},proxy:!0}])},[e._v(" "+e._s(e.__("Globals"))+" "),t("BrowseModeToggle",{attrs:{"panel-to-open":"globalSettings"}}),t("PanelHeaderButton",{attrs:{enabled:"history"===e.viewMode},on:{click:e.toggleViewMode}},[e._v(e._s(e.__("history")))])],1),"controls"===e.viewMode?t("GlobalSettingsPanelControlsViewMode",{attrs:{"is-loading":e.isLoading}}):"history"===e.viewMode?t("GlobalSettingsPanelHistoryViewMode"):e._e()],1)])},fI=[],_I=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.isBrowseModeAvailable?t("PanelHeaderButton",{attrs:{enabled:e.isBrowseModeEnabled},on:{click:e.toggleBrowseMode}},[e._v(e._s(e.__("browse")))]):e._e()},bI=[],SI=n(89381),CI=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"breakdance-panel-header-button":!0,"breakdance-panel-header-button--enabled":e.enabled},on:{click:function(t){return e.$emit("click")}}},[e._t("default")],2)},xI=[];let wI=class extends l.w3{};(0,r.gn)([(0,l.fI)({default:!0})],wI.prototype,"enabled",void 0),wI=(0,r.gn)([(0,l.wA)({components:{}})],wI);const II=wI,PI=II;var kI=(0,N.Z)(PI,CI,xI,!1,null,null,null);const EI=kI.exports;let TI=class extends s.ZP{get isBrowseModeEnabled(){return"browse"===c.uiStore.mode?.mode}get isBrowseModeAvailable(){return"breakdance"===c.configStore.builderMode}toggleBrowseMode(){(0,SI.lD)(this.panelToOpen)}};(0,r.gn)([(0,l.fI)({default:"globalSettings"})],TI.prototype,"panelToOpen",void 0),TI=(0,r.gn)([(0,l.wA)({components:{PanelHeaderButton:EI}})],TI);const DI=TI,AI=DI;var ZI=(0,N.Z)(AI,_I,bI,!1,null,null,null);const OI=ZI.exports;var MI=n(38433),BI=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[e.isLoading?t(MI.Z,{attrs:{"justify-center":"","align-center":""}},[t(Xp.Z,{attrs:{size:"64",indeterminate:"",color:"var(--gray300)"}})],1):[e.hasSearchParameters?e._e():t("div",{staticClass:"vscroll-scroll"},[t("ControlsTree",{attrs:{controls:e.controls,path:"settings"}})],1),e.hasSearchParameters&&!e.noSearchResults?t("div",{staticClass:"vscroll-scroll"},[""!==e.searchBoxState.query?t("div",{staticClass:"control-tree-search-term"},[t("span",[e._v(e._s(e.sprintf(e._xdoc('Search results for "%s"',"Global Settings","Global Settings. %s: Search query"),e.searchBoxState.query)))]),t("div",{staticClass:"control-tree-search-clear",on:{click:e.clearQuery}},[t("Icon",{attrs:{icon:"CloseIcon",size:"14"}})],1)]):e._e(),t("ControlsTree",{attrs:{controls:e.controlsFilteredBySearchParams,path:"settings",linear:!0}})],1):e.hasSearchParameters&&e.noSearchResults?t(gC.Z,{staticClass:"d-flex justify-center align-center flex-column",attrs:{height:"100%"}},[t("SearchBoxEmptyState",{attrs:{label:"settings"},on:{input:e.clearQuery}})],1):e._e(),t("SearchBox",{attrs:{value:e.searchBoxState,location:"settings"},on:{input:e.updateSearchBoxState}})]],2)},LI=[],NI=n(18759);let FI=class extends s.ZP{constructor(){super(...arguments),this.searchBoxState={modifiedOnly:!1,query:""},this.editingGlobalSettingsControlsTreeContext=VI}updateSearchBoxState(e){this.searchBoxState=e}clearQuery(){this.updateSearchBoxState({modifiedOnly:!1,query:""})}get controls(){return Q.PK.globalSettingsControlsAndTemplate.controls}get controlsFilteredBySearchParams(){return px(this.controls,this.searchBoxState.modifiedOnly,this.searchBoxState.query,this.editingGlobalSettingsControlsTreeContext,"settings")}get noSearchResults(){return 0===gx(this.controlsFilteredBySearchParams,0)}get hasSearchParameters(){return this.searchBoxState.modifiedOnly||this.searchBoxState.query}};(0,r.gn)([(0,l.fI)({default:!1})],FI.prototype,"isLoading",void 0),(0,r.gn)([(0,l.DF)("context")],FI.prototype,"editingGlobalSettingsControlsTreeContext",void 0),FI=(0,r.gn)([(0,l.wA)({components:{ControlsTree:_C["default"],SearchBox:OC,Icon:He.Z,SearchBoxEmptyState:Sx}})],FI);const RI=FI,VI={getControlValue:e=>j()(Q.cr.globalSettings,e),setControlValue(e,t,n,s){Q.cr.throttledGlobalSettingsPropertyChange((0,Zv.YO)({path:e,value:t},{control:n,controlsTree:this.getControls(e)||[]},s))},getControls:()=>Q.PK.globalSettingsControlsAndTemplate.controls,setAccordionState:(e,t)=>{(0,NI.v)(e,t)},getAccordionState:e=>(0,NI.uz)(e)},$I=RI;var WI=(0,N.Z)($I,BI,LI,!1,null,null,null);const UI=WI.exports;var zI=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[t("RevisionsList",{attrs:{"is-loading":e.isLoading,revisions:e.revisionUiItems},on:{revisionSelected:e.onRevisionSelected}})],1)},HI=[],GI=n(95996);async function KI(){return(0,su.zG)(await(0,ad.D)({action:"breakdance_retrieve_global_settings_revisions",decoder:GI.qT}),(0,od.mapLeft)((()=>null)),ou.i$)}var jI=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-revisions-list vscroll-wrap vscroll-scroll"},[e.isLoading?t(MI.Z,{attrs:{"justify-center":"","align-center":""}},[t(Xp.Z,{attrs:{size:"64",indeterminate:"",color:"var(--gray300)"}})],1):e.revisionsNotSupportedMessage?t("div",{staticClass:"breakdance-revisions-list__not-found"},[t("p",[e._v(e._s(e.revisionsNotSupportedMessage))])]):e.revisions.length?t("div",{staticClass:"breakdance-revisions-list__items"},e._l(e.revisions,(function(n,s){return t("RevisionItem",{key:n.revisionData.id,attrs:{revision:n.revisionData,selected:n.isSelected},on:{click:function(t){return e.onRevisionSelected(n,s)}}})})),1):t("div",{staticClass:"breakdance-revisions-list__not-found"},[t("h2",[e._v(e._s(e.__("No revisions found")))]),t("p",[e._v(e._s(e.__("Save any changes to create a new revision")))])])],1)},qI=[],XI=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"revisions-item",class:{"revisions-item--selected":e.selected},on:{click:function(t){return e.$emit("click",e.revision)}}},[t("span",{staticClass:"revisions-item__date"},[e._v(e._s(e.revision.date))]),e.revision.author?[t("span",[e._v(e._s(e.revision.author))])]:e._e()],2)},YI=[];let QI=class extends s.ZP{};(0,r.gn)([(0,l.fI)({default(){return{}}})],QI.prototype,"revision",void 0),(0,r.gn)([(0,l.fI)({default:!1})],QI.prototype,"selected",void 0),QI=(0,r.gn)([(0,l.wA)({})],QI);const JI=QI,eP=JI;var tP=(0,N.Z)(eP,XI,YI,!1,null,null,null);const nP=tP.exports;let sP=class extends s.ZP{onRevisionSelected(e,t){this.$emit("revisionSelected",e,t)}};(0,r.gn)([(0,l.fI)({default:!1})],sP.prototype,"isLoading",void 0),(0,r.gn)([(0,l.fI)({default:[]})],sP.prototype,"revisions",void 0),(0,r.gn)([(0,l.fI)({default:null})],sP.prototype,"revisionsNotSupportedMessage",void 0),sP=(0,r.gn)([(0,l.wA)({components:{RevisionItem:nP}})],sP);const iP=sP,oP=iP;var aP=(0,N.Z)(oP,jI,qI,!1,null,null,null);const rP=aP.exports;var lP=n(25886);let cP=class extends s.ZP{constructor(){super(...arguments),this.isLoading=!1,this.remoteRevisions=null,this.selectedIndex=null,this.unsubscribeFromStore=()=>{},this.currentUnsavedRevision=null}async beforeMount(){await this.loadRemoteRevisions(),Q.cr.settingsHasUnsavedChangesPresent&&(this.recalculateSelectedIndexBasedOnStoreAndRevisionDataObjectsMatch(),-1===this.selectedIndex&&this.setCurrentStoreDataAsCurrentUnsavedRevisionIfDataIsNotEqualToMostRecentRemoteRevisionData()),this.recalculateSelectedIndexBasedOnStoreAndRevisionDataObjectsMatch(),this.unsubscribeFromStore=this.$store.subscribe((e=>{const t=(0,lP.q$)(e);"global"===t&&"global/restoreGlobalSettingsRevision"!==e.type&&"global/setSelectors"!==e.type&&("global/setGlobalSettings"===e.type?this.currentUnsavedRevision=null:this.setCurrentStoreDataAsCurrentUnsavedRevisionIfDataIsNotEqualToMostRecentRemoteRevisionData(),this.recalculateSelectedIndexBasedOnStoreAndRevisionDataObjectsMatch())}))}beforeDestroy(){this.unsubscribeFromStore()}async loadRemoteRevisions(){this.isLoading=!0,this.remoteRevisions=await KI(),this.selectedIndex=null,this.isLoading=!1}recalculateSelectedIndexBasedOnStoreAndRevisionDataObjectsMatch(){this.selectedIndex=this.findSelectedIndexBasedOnStoreDataMatch()}findSelectedIndexBasedOnStoreDataMatch(){const e=(0,wd.Z)(Q.cr.globalSettings);return this.revisions.findIndex((t=>oh()(t.globalSettings,e)))}setCurrentStoreDataAsCurrentUnsavedRevisionIfDataIsNotEqualToMostRecentRemoteRevisionData(){this.isCurrentStoreDataTheSameAsTheMostRecentRemoteRevisionData()?this.currentUnsavedRevision=null:this.setCurrentUnsavedRevisionFromCurrentStoreData()}isCurrentStoreDataTheSameAsTheMostRecentRemoteRevisionData(){if(null===this.remoteRevisions||0===this.remoteRevisions.length)return!1;const[e]=this.remoteRevisions,t=(0,wd.Z)(Q.cr.globalSettings);return oh()(e.globalSettings,t)}setCurrentUnsavedRevisionFromCurrentStoreData(){this.currentUnsavedRevision={id:-1,author:!1,date:"Current",globalSettings:(0,wd.Z)(Q.cr.globalSettings)}}get revisionUiItems(){return this.revisions.map(((e,t)=>({isSelected:t===this.selectedIndex,revisionData:e})))}get revisions(){const e=this.remoteRevisions??[];return this.currentUnsavedRevision?[this.currentUnsavedRevision,...e]:e}onRevisionSelected(e,t){this.selectedIndex=t,Ie.n.transaction((()=>Q.cr.restoreGlobalSettingsRevision(e.revisionData)),"Restore Global Settings From Revision")}get unsavedChangesPresent(){return Q.kD.unsavedChangesPresent}async updateRevisionsAfterSaving(){Q.kD.unsavedChangesPresent||(await this.loadRemoteRevisions(),this.currentUnsavedRevision=null,this.recalculateSelectedIndexBasedOnStoreAndRevisionDataObjectsMatch())}};(0,r.gn)([(0,l.RL)("unsavedChangesPresent")],cP.prototype,"updateRevisionsAfterSaving",null),cP=(0,r.gn)([(0,l.wA)({components:{RevisionsList:rP}})],cP);const dP=cP,uP=dP;var pP=(0,N.Z)(uP,zI,HI,!1,null,null,null);const hP=pP.exports;var gP=n(1073),mP=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("Dropdown",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("IconButton",e._g({class:"breakdance"===e.builderMode?"breakdance-panel-header-left-of-close-button":"",attrs:{size:"breakdance"===e.builderMode?16:14,small:"",icon:"breakdance"===e.builderMode?"EllipsisStrokeIcon":"EllipsisSolidIcon"}},n))]}}])},[t(Ec.Z,[t(Tc.Z,{attrs:{dense:""},on:{click:e.openImportDialog}},[t(Dc.V9,[e._v(" "+e._s(e.sprintf(e._xdoc("Import %s","Settings","%s: Settings name"),e.name))+" ")])],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.exportSettings}},[t(Dc.V9,[e._v(" "+e._s(e.sprintf(e._doc("Export %s","%s: Settings name"),e.name))+" ")])],1)],1)],1),t("Dialog",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.sprintf(e._xdoc("Import %s","Settings","%s: Settings name"),e.name))+" ")]},proxy:!0},{key:"text",fn:function(){return[t("FileUpload",{attrs:{height:"300px",accept:".json",acceptsMultiple:!1},on:{input:e.handleFiles}},[e.canImport?[e._v(" "+e._s(e.__("File accepted"))+" ")]:[e._v(" "+e._s(e.sprintf(e._doc("Drag %s.json here","%s: Settings file name"),e.slugifiedName))+" ")]],2),e.canMerge?t(Um.Z,{attrs:{label:e.sprintf(e._doc("Merge with the existing %s.","%s: Settings name"),e.name),"hide-details":""},model:{value:e.merge,callback:function(t){e.merge=t},expression:"merge"}}):e._e()]},proxy:!0},{key:"actions",fn:function(){return[t(Qo.Z,{staticStyle:{"margin-right":"auto"},attrs:{text:""},on:{click:e.cancelImport}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(Qo.Z,{attrs:{dark:"",color:"blue",disabled:!e.canImport},on:{click:e.runImport}},[e._v(" "+e._s(e.__("Import"))+" ")])]},proxy:!0}]),model:{value:e.importDialogOpen,callback:function(t){e.importDialogOpen=t},expression:"importDialogOpen"}})],1)},vP=[],yP=n(88506);function fP(e,t,n="text/plain"){const s=new Blob([e],{type:n}),i=document.createElement("a");i.download=t,i.href=(window.webkitURL||window.URL).createObjectURL(s),i.dataset.downloadurl=[n,i.download,i.href].join(":"),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(i.href)}let _P=class extends l.w3{constructor(){super(...arguments),this.canImport=!1,this.importDialogOpen=!1,this.settingsToImport={},this.merge=!1}get slugifiedName(){return Qf()(this.name,{lower:!0})}openImportDialog(){this.importDialogOpen=!0}cancelImport(){this.settingsToImport={},this.canImport=!1,this.importDialogOpen=!1}handleFiles(e){const t=e?.[0],n=new FileReader;n.onloadend=async e=>{if(!e?.target)return;const t=e.target.result,n=(0,id.pipe)((0,yP.Z)(t),(0,od.fold)((()=>{}),(e=>e)));if(!this.validateSettings(n))return this.settingsToImport={},void(this.canImport=!1);this.settingsToImport=n,this.canImport=!0},n.readAsText(t)}runImport(){this.importSettings(this.settingsToImport,this.merge?"merge":"replace"),this.settingsToImport={},this.canImport=!1,this.importDialogOpen=!1}exportSettings(){const e=(0,Wg.g)(this.settingsToExport);fP(e||"",`${this.slugifiedName}.json`)}get builderMode(){return c.configStore.builderMode}};(0,r.gn)([(0,l.fI)({default:"Global Settings"})],_P.prototype,"name",void 0),(0,r.gn)([(0,l.fI)()],_P.prototype,"settingsToExport",void 0),(0,r.gn)([(0,l.fI)({default:!1})],_P.prototype,"canMerge",void 0),(0,r.gn)([(0,l.fI)()],_P.prototype,"validateSettings",void 0),(0,r.gn)([(0,l.fI)()],_P.prototype,"importSettings",void 0),_P=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z,Dropdown:Oc.Z,Dialog:ta.Z,FileUpload:pg.Z}})],_P);const bP=_P,SP=bP;var CP=(0,N.Z)(SP,mP,vP,!1,null,null,null);const xP=CP.exports;let wP=class extends s.ZP{constructor(){super(...arguments),this.storedData=null,this.isStoringData=!1,this.isLoadingData=!1}get viewMode(){return Q.kD.panelState.globalSettingsPanelActiveViewMode}toggleViewMode(){Q.kD.setPanelState({...Q.kD.panelState,globalSettingsPanelActiveViewMode:"controls"===this.viewMode?"history":"controls"})}get isLoading(){return this.isStoringData||this.isLoadingData}async beforeMount(){Q.kD.panelState.shouldLoadFreshDataIntoStoreOnceOpened.globalSettings?(Q.kD.setPanelState({...Q.kD.panelState,globalSettingsPanelActiveViewMode:"controls"}),await this.loadSettings()):Q.kD.setShouldPanelLoadFreshDataIntoStoreOnceOpened("globalSettings",!0)}async storeSettings(){this.isStoringData=!0;const e=await(0,gP.T)();return this.storedData=(0,wd.Z)(Q.cr.globalSettings),this.isStoringData=!1,e}async loadSettings(){this.isLoadingData=!0;const e=await(0,gP._)();return this.storedData=(0,wd.Z)(Q.cr.globalSettings),this.isLoadingData=!1,e}get unsavedChangesPresent(){return Q.cr.settingsHasUnsavedChangesPresent}requestPanelClosingConfirmation(){Q.kD.requestClosingConfirmation({subject:"globalSettings",confirmationDefinition:{title:(0,Ft.__)("You have unsaved changes to your Global Settings."),text:(0,Ft.__)("Would you like to save or discard these changes?"),type:"info"}})}handleUnsavedChangesPresentChange(e){e?this.requestPanelClosingConfirmation():Q.kD.noClosingConfirmationIsNeededFor("globalSettings")}get confirmationChosenOption(){return Q.kD.closingConfirmations.globalSettings?.chosenOption}async handleConfirmationChosenOptionChange(e){"discard"===e?(Q.kD.setClosingConfirmationIsDiscarding({subject:"globalSettings",isDiscarding:!0}),await this.loadSettings()?this.close():this.requestPanelClosingConfirmation()):"save"===e&&(Q.kD.setClosingConfirmationIsSaving({subject:"globalSettings",isSaving:!0}),await this.storeSettings()?this.close():this.requestPanelClosingConfirmation())}close(){(0,Bu.TO)("globalSettings")}get settingsToExport(){return Q.cr.globalSettings}validateImport(e){return"settings"in e?(0,su.zG)(e,iu.dt({settings:iu.IM(iu.Z_,iu._4)}).decode,(0,ou.g_)((()=>(cd.Z.log.errorMessage("Error importing Global Settings - the file is invalid."),!1)),(()=>!0))):(cd.Z.log.errorMessage("Error importing Global Settings - the file is invalid or empty."),!1)}importSettings(e){"settings"in e?(Ie.n.transaction((()=>{Q.cr.setGlobalSettings(e)}),"Import Global Settings"),cd.Z.log.message("Global Settings imported.")):cd.Z.log.errorMessage("No Global Settings to import.")}};(0,r.gn)([(0,l.RL)("unsavedChangesPresent",{immediate:!0})],wP.prototype,"handleUnsavedChangesPresentChange",null),(0,r.gn)([(0,l.RL)("confirmationChosenOption",{immediate:!0})],wP.prototype,"handleConfirmationChosenOptionChange",null),wP=(0,r.gn)([(0,l.wA)({components:{GlobalSettingsPanelHistoryViewMode:hP,GlobalSettingsPanelControlsViewMode:UI,PanelHeaderButton:EI,BrowseModeToggle:OI,PanelHeader:uI,ImportExportDropdownMenu:xP}})],wP);const IP=wP,PP=IP;var kP=(0,N.Z)(PP,yI,fI,!1,null,null,null);const EP=kP.exports;var TP=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll selectors-panel"},[e.isLoadingData?t(MI.Z,{attrs:{row:"","justify-center":"","align-center":""}},[t(Xp.Z,{attrs:{size:"64",indeterminate:"",color:"var(--gray300)"}})],1):e._e(),e.activeSelector?t("EditSelector",{on:{close:e.close}}):e._e(),e.activeSelector||e.isLoadingData?e._e():t("ManageSelectors",{on:{close:e.close}})],1)},DP=[],AP=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[t("PanelHeader",{on:{close:function(t){return e.$emit("close")}}},[e._v(e._s(e.__("Selectors"))+" "),t("BrowseModeToggle",{attrs:{"panel-to-open":"selectors"}}),t("PanelHeaderButton",{attrs:{enabled:"history"===e.viewMode},on:{click:e.toggleViewMode}},[e._v(" "+e._s(e.__("history"))+" ")])],1),t("FreeModeAlertForSelectors",{staticClass:"ma-4"}),"controls"===e.viewMode?[t("AddSelector"),t("div",{staticClass:"vscroll-wrap vscroll-scroll breakdance-manage-selectors"},[t("SelectorsList",{attrs:{selectors:e.selectors,searchable:!0},on:{input:e.updateSelectors}})],1)]:"history"===e.viewMode?[t("SelectorsPanelHistoryViewMode")]:e._e()],2)},ZP=[],OP=n(35097),MP=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"d-flex flex-row add-selector"},[t("TextInput",{staticClass:"flex-grow-1",attrs:{placeholder:e.__(".your.css > #selector-69::after")},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addSelector.apply(null,arguments)}},model:{value:e.newSelectorName,callback:function(t){e.newSelectorName=t},expression:"newSelectorName"}}),t("NiceButton",{staticClass:"ml-1",attrs:{size:"small"},on:{click:e.addSelector}},[e._v(" "+e._s(e.__("Add"))+" ")])],1)},BP=[],LP=n(37982);let NP=class extends s.ZP{constructor(){super(...arguments),this.newSelectorName=""}addSelector(){this.newSelectorName&&((0,id.pipe)((0,LP.DQ)(this.newSelectorName),(0,od.fold)((e=>e.forEach(cd.Z.log.message)),(e=>(0,LP.Fr)(e)))),this.newSelectorName="")}};NP=(0,r.gn)([(0,l.wA)({components:{NiceButton:Br.Z,TextInput:na.Z}})],NP);const FP=NP,RP=FP;var VP=(0,N.Z)(RP,MP,BP,!1,null,null,null);const $P=VP.exports;var WP=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("RevisionsPanel",{attrs:{resources:e.selectors,"resource-key":e.resourceKey,"resource-has-unsaved-changes-present":e.hasUnsavedChangesPresent,"fetch-revisions-method":e.fetchRevisionsMethod,"update-method":"setSelectors","restore-method":"restoreSelectorsRevision"}})},UP=[];async function zP(){return(0,su.zG)(await(0,ad.D)({action:"breakdance_retrieve_selectors_revisions",decoder:GI.Ue}),(0,od.mapLeft)((()=>null)),ou.i$)}var HP=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("RevisionsList",{attrs:{"is-loading":e.isLoading,revisions:e.revisionUiItems},on:{revisionSelected:e.onRevisionSelected}})},GP=[];let KP=class extends s.ZP{constructor(){super(...arguments),this.isLoading=!1,this.remoteRevisions=null,this.selectedIndex=null,this.unsubscribeFromStore=()=>{},this.currentUnsavedRevision=null}async updateRevisionsAfterSaving(){this.unsavedChangesPresent||(await this.loadRemoteRevisions(),this.currentUnsavedRevision=null,this.recalculateSelectedIndex())}get unsavedChangesPresent(){return Q.kD.unsavedChangesPresent}get revisionUiItems(){return this.revisions.map(((e,t)=>({isSelected:t===this.selectedIndex,revisionData:e})))}get revisions(){const e=this.remoteRevisions??[];return this.currentUnsavedRevision?[this.currentUnsavedRevision,...e]:e}async beforeMount(){await this.loadRemoteRevisions(),this.resourceHasUnsavedChangesPresent&&(this.recalculateSelectedIndex(),-1===this.selectedIndex&&this.updateUnsavedRevisionIfNeeded()),this.recalculateSelectedIndex(),this.unsubscribeFromStore=this.$store.subscribe((e=>{const t=(0,lP.q$)(e);"global"===t&&e.type!==`global/${this.restoreMethod}`&&"global/setGlobalSettings"!==e.type&&(e.type===`global/${this.updateMethod}`?this.currentUnsavedRevision=null:this.updateUnsavedRevisionIfNeeded(),this.recalculateSelectedIndex())}))}beforeDestroy(){this.unsubscribeFromStore()}async loadRemoteRevisions(){this.isLoading=!0,this.remoteRevisions=await this.fetchRevisionsMethod(),this.selectedIndex=null,this.isLoading=!1}recalculateSelectedIndex(){const e=(0,wd.Z)(this.resources);this.selectedIndex=this.revisions.findIndex((t=>oh()(t[this.resourceKey],e)))}updateUnsavedRevisionIfNeeded(){this.hasCurrentStoreDataChanged()?this.currentUnsavedRevision=null:this.setUnsavedRevisionFromStore()}hasCurrentStoreDataChanged(){if(null===this.remoteRevisions)return!1;const[e]=this.remoteRevisions,t=(0,wd.Z)(this.resources);return oh()(e[this.resourceKey],t)}setUnsavedRevisionFromStore(){this.currentUnsavedRevision={id:-1,author:!1,date:(0,Ft.__)("Current"),[this.resourceKey]:(0,wd.Z)(this.resources)}}onRevisionSelected(e,t){this.selectedIndex=t,Ie.n.transaction((()=>Q.cr[this.restoreMethod](e.revisionData)),(0,Ft.gB)((0,Ft.TZ)("Restore %s from revision","%s: Resource name (selectors, presets, etc)"),this.resourceKey))}};(0,r.gn)([(0,l.fI)({required:!0})],KP.prototype,"resourceKey",void 0),(0,r.gn)([(0,l.fI)({required:!0})],KP.prototype,"restoreMethod",void 0),(0,r.gn)([(0,l.fI)({required:!0})],KP.prototype,"updateMethod",void 0),(0,r.gn)([(0,l.fI)({required:!0})],KP.prototype,"fetchRevisionsMethod",void 0),(0,r.gn)([(0,l.fI)({required:!0})],KP.prototype,"resources",void 0),(0,r.gn)([(0,l.fI)({required:!0})],KP.prototype,"resourceHasUnsavedChangesPresent",void 0),(0,r.gn)([(0,l.RL)("unsavedChangesPresent")],KP.prototype,"updateRevisionsAfterSaving",null),KP=(0,r.gn)([(0,l.wA)({components:{RevisionsList:rP}})],KP);const jP=KP,qP=jP;var XP=(0,N.Z)(qP,HP,GP,!1,null,null,null);const YP=XP.exports;let QP=class extends s.ZP{constructor(){super(...arguments),this.resourceKey="selectors"}get selectors(){return Q.cr.cssSelectors}get hasUnsavedChangesPresent(){return Q.cr.selectorsHasUnsavedChangesPresent}get fetchRevisionsMethod(){return zP}};QP=(0,r.gn)([(0,l.wA)({components:{RevisionsPanel:YP,RevisionsList:rP}})],QP);const JP=QP,ek=JP;var tk=(0,N.Z)(ek,WP,UP,!1,null,null,null);const nk=tk.exports;var sk=n(45713);let ik=class extends s.ZP{get viewMode(){return c.uiStore.panelState.selectorsPanelPanelActiveViewMode}toggleViewMode(){c.uiStore.setPanelState({...c.uiStore.panelState,selectorsPanelPanelActiveViewMode:"controls"===this.viewMode?"history":"controls"})}get selectors(){return c.globalStore.cssSelectors}updateSelectors(e){c.globalStore.setSelectors((0,wd.Z)(e))}};ik=(0,r.gn)([(0,l.wA)({components:{FreeModeAlertForSelectors:sk.Z,AlertBox:Ag.Z,SelectorsPanelHistoryViewMode:nk,PanelHeaderButton:EI,BrowseModeToggle:OI,draggable:ev(),SelectorsList:OP.Z,AddSelector:$P,PanelHeader:uI}})],ik);const ok=ik,ak=ok;var rk=(0,N.Z)(ak,AP,ZP,!1,null,null,null);const lk=rk.exports;var ck=n(43432),dk=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.activeSelector?t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[t("PanelHeader",{attrs:{backInsteadOfClose:!0},on:{close:e.close}},[e._v(" "+e._s(e.__("Editing Selector"))+" ")]),t("FreeModeAlertForSelectors",{staticClass:"ma-4"}),t("div",{staticClass:"breakdance-selector-titlebar"},[t("div",{staticClass:"flex-grow-1 mr-2"},[e.editingClassOrClassHover?[t("div",{staticClass:"d-flex flex-row align-center flex-wrap mr-2"},[t("transition",{attrs:{name:"blink-on-change"}},[t("div",{key:e.activeSelector.name,staticClass:"selector-titlebar-classname mr-1 ml-n1"},[e._v(" "+e._s(e.activeSelector.name.replace(":hover",""))+" ")])]),t(Qo.Z,{class:["editing-class-hover-hover-button-always",e.editingClassHover?"editing-class-hover-hover-button-active":"editing-class-hover-hover-button"],attrs:{"x-small":"",depressed:""},on:{click:e.toggleHover}},[e._v(" :hover ")])],1)]:[t("div",{staticClass:"d-flex flex-column"},[t("TextInput",{attrs:{value:e.activeSelector.name},on:{input:e.tryToRenameActiveSelector}})],1)]],2),e.selectorIsHighlightable?t(ck.Z,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("IconButton",e._g({attrs:{icon:"SearchFileIcon",size:"16",active:e.highlight},on:{click:e.toggleHighlight}},n))]}}],null,!1,3251607670)},[t("span",[e._v(e._s(e.sprintf(e.__("%s on page"),e.howManyOnPage)))])]):e._e(),t("IconButton",{attrs:{icon:"TrashIcon",size:"16"},on:{click:e.deleteSelector}})],1),""!==e.searchBoxState.query&&e.hasSearchParameters&&!e.noSearchResults?t("div",{staticClass:"control-tree-search-term control-tree-search-term-selector"},[t("span",[e._v(e._s(e.sprintf(e._xdoc('Search results for "%s"',"Selectors","%s: Search query"),e.searchBoxState.query)))]),t("div",{staticClass:"control-tree-search-clear",on:{click:e.clearQuery}},[t("Icon",{attrs:{icon:"CloseIcon",size:"14"}})],1)]):e._e(),e.editingClassOrClassHover||!e.attemptingToRename||e.isAttemptedRenameValid?e._e():t("div",{staticClass:"edit-selector-invalid-name-error"},[e._v(" "+e._s(e.__("invalid selector name"))+" ")]),t("div",{staticClass:"edit-selector-border"}),e.hasSearchParameters?e._e():t("div",{staticClass:"vscroll-scroll"},[t("ControlsTree",{attrs:{controls:e.controls,path:"properties"}})],1),e.hasSearchParameters&&!e.noSearchResults?t("div",{staticClass:"vscroll-scroll"},[t("ControlsTree",{attrs:{controls:e.controlsFilteredBySearchParams,path:"properties",linear:!0}})],1):e.hasSearchParameters&&e.noSearchResults?t(gC.Z,{staticClass:"d-flex justify-center align-center flex-column",attrs:{height:"100%"}},[t("SearchBoxEmptyState",{attrs:{label:"selectors"},on:{input:e.clearQuery}})],1):e._e(),t("SearchBox",{attrs:{value:e.searchBoxState,location:"selector"},on:{input:e.updateSearchBoxState}})],1):e._e()},uk=[],pk=n(5598);let hk=class extends s.ZP{constructor(){super(...arguments),this.searchBoxState={modifiedOnly:!1,query:""},this.highlight=!1,this.attemptingToRename=!1,this.editingClassControlsTreeContext=vk}updateSearchBoxState(e){this.searchBoxState=e}clearQuery(){this.updateSearchBoxState({modifiedOnly:!1,query:""})}get hasSearchParameters(){return this.searchBoxState.modifiedOnly||this.searchBoxState.query}get controlsFilteredBySearchParams(){return px(this.controls,this.searchBoxState.modifiedOnly,this.searchBoxState.query,this.editingClassControlsTreeContext,"properties")}get noSearchResults(){return 0===gx(this.controlsFilteredBySearchParams,0)}get howManyOnPage(){if(!c.uiStore.activeSelector)return 0;const e=this.editingClassHover?c.uiStore.activeSelector.name.replace(":hover",""):c.uiStore.activeSelector.name,t=window.Breakdance.canvas.document.querySelectorAll(e);return t.length}get editingClass(){return!!this.activeSelector&&"class"===this.activeSelector.type}get editingClassHover(){return!!this.activeSelector&&(!!this.activeSelector.name.endsWith(":hover")&&!!mk(this.activeSelector.name.replace(":hover","")))}get editingClassOrClassHover(){return this.editingClass||this.editingClassHover}get selectorIsHighlightable(){return!!c.uiStore.activeSelectorName&&!(c.uiStore.activeSelectorName.includes(":")&&!this.editingClassHover)}get controls(){return c.configStore.selectorControls}get activeSelector(){return c.uiStore.activeSelector}toggleHighlight(){this.highlight?this.clearHighlight():this.setHighlight()}beforeDestroy(){this.clearHighlight()}setHighlight(){if(this.highlight=!0,!c.uiStore.activeSelector)return;const e=this.editingClassHover?c.uiStore.activeSelector.name.replace(":hover",""):c.uiStore.activeSelector.name;(0,pk.BL)((0,T.RY)(),"breakdance-selector-highlight",`${e} {\n outline: 10px dashed rgba(255,200,0) !important;\n outline-offset: -5px;\n animation-duration: 2000ms;\n animation-iteration-count: infinite;\n }\n `)}clearHighlight(){this.highlight=!1,(0,pk.BL)((0,T.RY)(),"breakdance-selector-highlight","")}deleteSelector(){if(!this.activeSelector)return;const e=this.activeSelector,t=c.globalStore.cssSelectors.findIndex((t=>t.name===e.name));if(-1!==t){const e=(0,wd.Z)(c.globalStore.cssSelectors);e.splice(t,1),c.globalStore.setSelectors(e)}}close(){this.backToAllSelectors()}get activeElementTitle(){return!!c.uiStore.activeElement&&c.configStore.element(c.uiStore.activeElement.data.type).name}openElementProperties(){(0,Bu.oM)("elementproperties")}backToAllSelectors(){c.uiStore.setActiveSelectorName(null)}get isAttemptedRenameValid(){return!this.attemptingToRename||(0,LP._S)(this.attemptingToRename)}tryToRenameActiveSelector(e){if(!e)return;if(this.attemptingToRename=e,this.clearHighlight(),!(0,LP._S)(e))return;const t=c.globalStore.cssSelectors.findIndex((e=>e===this.activeSelector)),n=(0,wd.Z)(c.globalStore.cssSelectors);n[t]&&(n[t].name=e,c.globalStore.setSelectors(n),c.uiStore.setActiveSelectorName(e),this.attemptingToRename=!1)}toggleHover(){if(c.uiStore.activeSelector)if(this.editingClass){const e=c.uiStore.activeSelectorName+":hover",t=()=>c.globalStore.cssSelectors.find((t=>t.name===e));let n=t();if(n||((0,LP.Fr)({name:e,type:"custom",properties:{}}),n=t()),!n)return void cd.Z.log.message(`Unable to create or find a :hover selector for ${c.uiStore.activeSelectorName}`);c.uiStore.setActiveSelectorName(n.name),(0,Bu.oM)("selectors")}else if(this.editingClassHover&&this.activeSelector){const e=mk(this.activeSelector.name.replace(":hover",""));e&&(c.uiStore.setActiveSelectorName(e.name),(0,Bu.oM)("selectors"))}}};(0,r.gn)([(0,l.DF)("context")],hk.prototype,"editingClassControlsTreeContext",void 0),hk=(0,r.gn)([(0,l.wA)({components:{FreeModeAlertForSelectors:sk.Z,AlertBox:Ag.Z,ControlsTree:_C["default"],SearchBox:OC,IconButton:Xa.Z,PanelHeader:uI,TextInput:na.Z,SearchBoxEmptyState:Sx,Icon:He.Z}})],hk);const gk=hk,mk=e=>c.globalStore.cssSelectors.find((t=>t.name===e)),vk={getControls:()=>c.configStore.selectorControls,getControlValue:e=>j()(c.uiStore.activeSelector,`${e}`,void 0),setControlValue(e,t,n,s){c.uiStore.activeSelector&&c.globalStore.throttledSelectorPropertyChange((0,Zv.V5)({selector:c.uiStore.activeSelector,path:e,value:t},{control:n,controlsTree:this.getControls(e)||[]},s))},setAccordionState:(e,t)=>{const n=c.uiStore.activeSelector&&c.uiStore.activeSelector.name;n&&(0,NI.MK)(n,e,t)},getAccordionState:e=>{const t=c.uiStore.activeSelector&&c.uiStore.activeSelector.name;return!!t&&(0,NI.jv)(t,e)}},yk=gk;var fk=(0,N.Z)(yk,dk,uk,!1,null,null,null);const _k=fk.exports;let bk=class extends s.ZP{constructor(){super(...arguments),this.isLoadingData=!1,this.isStoringData=!1}get activeSelector(){return c.uiStore.activeSelector}async beforeMount(){c.uiStore.panelState.shouldLoadFreshDataIntoStoreOnceOpened.selectors?(c.uiStore.setPanelState({...c.uiStore.panelState,selectorsPanelPanelActiveViewMode:"controls"}),await this.load()):c.uiStore.setShouldPanelLoadFreshDataIntoStoreOnceOpened("selectors",!0)}async load(){this.isLoadingData=!0;const e=await(0,LP.c3)();return this.isLoadingData=!1,e}async save(){this.isStoringData=!0;const e=await(0,LP.zF)();return this.isStoringData=!1,e}requestPanelClosingConfirmation(){c.uiStore.requestClosingConfirmation({subject:"selectors",confirmationDefinition:{title:(0,Ft.__)("You have unsaved changes to your Selectors."),text:(0,Ft.__)("Would you like to save or discard these changes?"),type:"info"}})}get unsavedChangesPresent(){return c.globalStore.selectorsHasUnsavedChangesPresent}handleUnsavedChangesPresentChange(e){e?this.requestPanelClosingConfirmation():c.uiStore.noClosingConfirmationIsNeededFor("selectors")}get confirmationChosenOption(){return c.uiStore.closingConfirmations.selectors?.chosenOption}async handleConfirmationChosenOptionChange(e){"discard"===e?(c.uiStore.setClosingConfirmationIsDiscarding({subject:"globalSettings",isDiscarding:!0}),await this.load()?this.close():this.requestPanelClosingConfirmation()):"save"===e&&(c.uiStore.setClosingConfirmationIsSaving({subject:"globalSettings",isSaving:!0}),await this.save()?this.close():this.requestPanelClosingConfirmation())}get isLoading(){return this.isLoadingData||this.isStoringData}close(){(0,Bu.TO)("selectors")}};(0,r.gn)([(0,l.RL)("unsavedChangesPresent",{immediate:!0})],bk.prototype,"handleUnsavedChangesPresentChange",null),(0,r.gn)([(0,l.RL)("confirmationChosenOption",{immediate:!0})],bk.prototype,"handleConfirmationChosenOptionChange",null),bk=(0,r.gn)([(0,l.wA)({components:{EditSelector:_k,ManageSelectors:lk}})],bk);const Sk=bk,Ck=Sk;var xk=(0,N.Z)(Ck,TP,DP,!1,null,null,null);const wk=xk.exports;var Ik=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-structure-panel vscroll-wrap vscroll-scroll"},[t("PanelHeader",{ref:"panelHeader",on:{close:e.close},scopedSlots:e._u([{key:"right",fn:function(){return[e.children.length&&"breakdance"===e.builderMode?t("button",{staticClass:"breakdance-structure-panel__toggle-button mr-2",on:{click:e.toggleNodes}},[1===e.toggleStage?[e._v(e._s(e.__("Expand")))]:e._e(),[0,2].includes(e.toggleStage)?[e._v(e._s(e.__("Collapse")))]:e._e()],2):e._e(),e.children.length&&"oxygen"===e.builderMode?[t("IconButton",{staticClass:"breakdance-toolbar-icon-button",attrs:{icon:1===e.toggleStage?"ArrowsFromLineIcon":([0,2].includes(e.toggleStage),"ArrowsToLineIcon"),size:14,small:"",tooltip:1===e.toggleStage?e.__("Expand"):([0,2].includes(e.toggleStage),e.__("Collapse"))},on:{click:e.toggleNodes}})]:e._e(),t("StructurePanelDropdownMenu")]},proxy:!0}])},[e._v(" "+e._s(e.__("Structure"))+" ")]),t("div",{class:e.classList,on:{contextmenu:e.onContextMenu}},[t("div",{staticClass:"structure-node root-node",attrs:{"data-element-id":e.ROOT_ELEMENT_ID},on:{mousedown:e.dragStart}},[t("div",{staticClass:"structure-node-title-wrapper"},[t("div",{staticClass:"structure-node-title",staticStyle:{"margin-left":"-16px",display:"none"}},[e._v(" "+e._s(e.__("Root Node"))+" ")]),t("div",{staticClass:"top-half",attrs:{"data-element-id":e.ROOT_ELEMENT_ID,"data-depth":-1}}),t("div",{staticClass:"bottom-half",attrs:{"data-element-id":e.ROOT_ELEMENT_ID,"data-depth":-1}})]),e.children.length>0?t("ChildStructureNodes",{attrs:{nodes:e.children,depth:0}}):t("div",{staticClass:"structure-panel-empty-state"},[t("h5",[e._v(e._s(e.__("No Elements")))]),t("p",[e._v(e._s(e.__("Add an element to your page and it will show up here.")))]),t("StandardButton",{staticClass:"open-elements-toolbar-button ml-auto mr-auto",attrs:{size:"22",testId:"open-elements-toolbar-button"},on:{click:e.toggleAdd}},[e._v(" "+e._s(e.__("Add"))+" ")])],1)],1)]),t("RightClickMenu",{attrs:{context:"structure-panel"}})],1)},Pk=[];function kk(){return{overTopHalf:!1,overBottomHalf:!1,overIndex:!1,overNodeId:!1,overNodeParentId:!1,overSelf:!1,overNestDeeper:!1,overNestShallower:!1}}function Ek(e,t){const n=document.elementsFromPoint(e,t).filter(Tk("structure-node")).sort(Dk).reverse().pop();if(n){const e=n.dataset.elementId;if(e)return(0,T.ME)(e)}return!1}const Tk=e=>t=>!!t.classList.contains(e),Dk=(e,t)=>parseInt(e.dataset.depth)>parseInt(t.dataset.depth)?-1:parseInt(t.dataset.depth)>parseInt(e.dataset.depth)?1:0,Ak=(e,t)=>{const n=e.filter(Tk(t));return n.length>0&&(0,T.ME)(n[0].dataset.elementId)},Zk=(e,t,n)=>{const s=document.elementsFromPoint(e,t),i=kk();if(i.overNestDeeper=Ak(s,"nest-deeper"),i.overNestShallower=Ak(s,"nest-shallower"),i.overTopHalf=Ak(s,"top-half"),i.overBottomHalf=Ak(s,"bottom-half"),i.overSelf=!1!==Ak(s,"breakdance--currently-dragging"),i.overBottomHalf?i.overNodeId=i.overBottomHalf:i.overTopHalf&&(i.overNodeId=i.overTopHalf),i.overNodeId){const e=(0,ge.getNodeParent)(n,i.overNodeId),t=(0,ge.getNodeIndex)(n,i.overNodeId);!1!==t&&!1!==e&&(i.overIndex=t,i.overNodeParentId=e.id)}return i};var Ok=n(98992);function Mk(e,t,n){let s=!1;const i=(0,ge.findNode)(t,n);if(!i)return!1;if(e.overSelf){if(e.overSelf){if(Uk(n,t)&&e.overNestShallower===n){let e=!1;s=Rk(n,t),s&&(e=s.parentId);while(e){if((0,Fe.xJ)(t,i,e))break;if(!s||(0,Fe.xJ)(t,i,s.parentId)||!Uk(e,t))break;{const n=(0,ge.getNodeParent)(t,e);e=!!n&&n.id,e&&(s=Fk(e,t))}}}zk(n,t)&&e.overNestDeeper===n&&(s=Vk(n,t))}}else if(e.overTopHalf){s=Bk(e.overTopHalf,t),n===$k(e.overTopHalf,t)&&(s=!1);const o=$k(e.overTopHalf,t);s&&o&&(0,Fe.xJ)(t,i,o)&&(s=Fk(o,t))}else if(e.overBottomHalf&&(0===Wk(e.overBottomHalf,t)||(0,Ok.nx)(e.overBottomHalf))){if(s=Lk(e.overBottomHalf,t),s&&(0,Fe.xJ)(t,i,s.parentId)){const n=(0,ge.getNodeIndex)(t,i.id),o=(0,ge.getNodeParent)(t,i.id);!1!==n&&!1!==o&&s&&e.overIndex&&s.parentId===o.id&&n0&&(s=Nk(e.overBottomHalf));if(!s)return!1;const o=(0,Fe.xJ)(t,i,s.parentId);return!!o&&s}function Bk(e,t){const n=(0,ge.getNodeIndex)(t,e),s=(0,ge.getNodeParent)(t,e);return!1!==n&&!1!==s&&{parentId:s.id,index:n}}function Lk(e,t){const n=(0,ge.getNodeIndex)(t,e),s=(0,ge.getNodeParent)(t,e);return!1!==n&&!1!==s&&{parentId:s.id,index:n+1}}function Nk(e){return{parentId:e,index:0}}function Fk(e,t){const n=Wk(e,t);return!1!==n&&{parentId:e,index:n}}function Rk(e,t){const n=(0,ge.getNodeParent)(t,e);return!!n&&Lk(n.id,t)}function Vk(e,t){const n=$k(e,t);return!!n&&Fk(n,t)}function $k(e,t){const n=(0,ge.getNodeIndex)(t,e),s=(0,ge.getNodeParent)(t,e);return!1!==n&&!1!==s&&(!(n<1)&&s.children[n-1].id)}function Wk(e,t){const n=(0,ge.findNode)(t,e);return!!n&&n.children.length}function Uk(e,t){const n=(0,ge.getNodeIndex)(t,e),s=(0,ge.getNodeParent)(t,e);if(!1===n||!1===s)return;const i=Wk(s.id,t);return i?1===i||n===i-1:void 0}function zk(e,t){const n=(0,ge.getNodeIndex)(t,e);if(!1!==n)return n>0}var Hk=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dropdown",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("IconButton",e._g({class:"breakdance"===e.builderMode?" breakdance-panel-header-left-of-close-button":"breakdance-panel-icon-button",attrs:{size:"breakdance"===e.builderMode?16:12,small:"",icon:"breakdance"===e.builderMode?"EllipsisStrokeIcon":"EllipsisSolidIcon"}},n))]}}])},[t(Ec.Z,[t(Tc.Z,{attrs:{dense:""},on:{click:e.copy}},[t(Dc.V9,[e._v(" "+e._s(e.__("Copy All Elements"))+" ")])],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.paste}},[t(Dc.V9,[e._v(" "+e._s(e.__("Paste Elements"))+" ")])],1)],1)],1)},Gk=[];let Kk=class extends l.w3{copy(){(0,Wo.wp)(c.documentStore.document.tree.root.children.map((e=>e.id)))}get builderMode(){return c.configStore.builderMode}async paste(){const e=(await(0,Wo.ij)())?.element;Array.isArray(e)?(0,Qa.AE)(e,"pasting"):e?(0,Wo.HR)(null,e):alert("nothing to paste")}};Kk=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z,Dropdown:Oc.Z}})],Kk);const jk=Kk,qk=jk;var Xk=(0,N.Z)(qk,Hk,Gk,!1,null,null,null);const Yk=Xk.exports;let Qk=class extends l.w3{constructor(){super(...arguments),this.mouseDragStatus={...kk()},this.forceGrabbingCursor=!1,this.firstDragMovement=!0,this.draggedNodeId=!1,this.lastSubmittedDrag=!1,this.didMoveElement=!1,this.unsubscribeFromActivateElementMutation=null,this.easyEvent=new Z.hF,this.delayedExpandNodeTimeout=null,this.toggleStage=2}close(){(0,Bu.TO)("structure")}get classList(){return{"structure-panel-content-wrapper":!0,"is-draggable":this.hasPermission,"drag-in-progress":c.uiStore.isCanvasElementBeingDragged,"force-grabbing-cursor":this.forceGrabbingCursor}}beforeCreate(){this.$options.components.ChildStructureNodes=n(71600).Z}get activeElementId(){return c.uiStore.activeElementId}get builderMode(){return c.configStore.builderMode}get children(){if(c.uiStore.inlineEditingContext?.elementId){const e=(0,ge.findNode)(c.documentStore.document.tree,c.uiStore.inlineEditingContext.elementId);return e?.children||[]}return this.rootElement.children}mounted(){this.expandToShowActiveElementWatch(),this.unsubscribeFromActivateElementMutation=this.$store.subscribe((({type:e})=>{"ui/activateElementMutation"===e&&this.expandToShowActiveElementWatch()}))}expandToShowActiveElementWatch(){if(this.activeElementId){const e=(0,Ok.FM)(c.documentStore.document.tree,this.activeElementId);e&&c.uiStore.setStructurePanelNodesExpandedState({...c.uiStore.structurePanelNodesExpandedState,...e}),this.$nextTick((()=>{if(!this.$el||!this.panelHeader)return;const e=this.$el.querySelector(`[data-element-id="${this.activeElementId}"] .structure-node-title-wrapper`);e&&(0,Bu.aQ)(this.$el,this.panelHeader.$el,e)}))}}get rootElement(){return c.documentStore.document.tree.root}get hasPermission(){return c.uiStore.hasFullAccess}onContextMenu(e){if(!this.hasPermission)return;e.preventDefault(),e.stopPropagation();const t=Ek(e.clientX,e.clientY)||void 0;t&&c.uiStore.activateElement(t);const n=(0,ze.n)(e.clientX,e.clientY);c.uiStore.setOnStructurePanelRightClickMenuState({elementId:t,position:n})}dragStart(e){if(0!==e.button)return;if(!this.hasPermission)return;const t=Ek(e.clientX,e.clientY);t&&(c.uiStore.activateElement(t),this.draggedNodeId=t,this.easyEvent.on("mousemove",this.dragging),this.easyEvent.on("mouseup",this.dragEnd),this.forceGrabbingCursor=!0,this.didMoveElement=!1,Ie.n.startTransaction())}async dragging(e){if((0,Z.Pm)(e))return;if(e.preventDefault(),e.stopPropagation(),!this.draggedNodeId)return;let t=null;if(c.uiStore.setDragMousePosition(null),this.firstDragMovement){const e=(0,ge.getNodeIndex)(c.documentStore.document.tree,this.draggedNodeId),n=(0,ge.getNodeParent)(c.documentStore.document.tree,this.draggedNodeId);if(!1===e||!1===n)return;c.uiStore.setCanvasElementDraggedId(this.draggedNodeId),t={draggedElementId:this.draggedNodeId,droppedOnElementId:n.id,index:e},this.firstDragMovement=!1}else{this.mouseDragStatus=Zk(e.clientX,e.clientY,c.documentStore.document.tree),this.ifMouseIsOverACollapsedNodeForLongEnoughThenWeShouldExpandIt(e);const n=Mk(this.mouseDragStatus,c.documentStore.document.tree,this.draggedNodeId);n&&(t={draggedElementId:this.draggedNodeId,droppedOnElementId:n.parentId,index:n.index})}if(t){const e=(0,ge.findNode)(c.documentStore.document.tree,t.droppedOnElementId),n=(0,Ok.sF)(t.droppedOnElementId)||0===e?.children.length;if(n){const e=await c.documentStore.moveElement({...t,wrapWithTransaction:!1});this.didMoveElement=this.didMoveElement||e,c.uiStore.setStructurePanelNodesExpandedState({...c.uiStore.structurePanelNodesExpandedState,[t.droppedOnElementId.toString()]:!0}),this.lastSubmittedDrag=t}}}async dragEnd(e){if(e.preventDefault(),e.stopPropagation(),this.easyEvent.removeAll(),this.lastSubmittedDrag){const e=await c.documentStore.moveElement({...this.lastSubmittedDrag,wrapWithTransaction:!1});this.didMoveElement=this.didMoveElement||e}if(!1!==this.draggedNodeId&&this.didMoveElement){const e=(0,ge.findNode)(c.documentStore.document.tree,this.draggedNodeId);Ie.n.endTransaction(`Move ${(0,ie.JC)(e?.data.type)}`)}else Ie.n.cancelTransactionIfItIsStillInProgress();c.uiStore.endCanvasElementDrag(),this.lastSubmittedDrag=!1,this.mouseDragStatus={...kk()},this.firstDragMovement=!0,this.draggedNodeId=!1,this.forceGrabbingCursor=!1,this.didMoveElement=!1}ifMouseIsOverACollapsedNodeForLongEnoughThenWeShouldExpandIt(e){this.mouseDragStatus.overNodeId&&this.delayedExpandNode(this.mouseDragStatus.overNodeId,e)}delayedExpandNode(e,t){this.delayedExpandNodeTimeout&&clearTimeout(this.delayedExpandNodeTimeout),this.delayedExpandNodeTimeout=setTimeout((()=>{if(this.delayedExpandNodeTimeout=null,e===this.mouseDragStatus.overNodeId){const n=(0,wd.Z)(c.uiStore.structurePanelNodesExpandedState);n[e]=!0,c.uiStore.setStructurePanelNodesExpandedState(n),this.dragging(t)}}),500)}get ROOT_ELEMENT_ID(){return ge.ROOT_ELEMENT_ID}collapseAllNodes(){c.uiStore.setStructurePanelNodesExpandedState((0,Ok.u3)(c.documentStore.document.tree,!1))}expandAllNodes(){c.uiStore.setStructurePanelNodesExpandedState((0,Ok.u3)(c.documentStore.document.tree,!0))}collapseAllNodesExcept(e){const t=(0,Ok.u3)(c.documentStore.document.tree,!1),n=(0,Ok.FM)(c.documentStore.document.tree,e);c.uiStore.setStructurePanelNodesExpandedState({...t,...n})}toggleNodes(){if(0===this.toggleStage)this.toggleStage=1,this.collapseAllNodes();else if(1===this.toggleStage)this.expandAllNodes(),this.toggleStage=2;else if(c.uiStore.activeElementId){const e=(0,ge.getNodeParent)(c.documentStore.document.tree,c.uiStore.activeElementId);if(e&&e?.id===ge.ROOT_ELEMENT_ID)return this.collapseAllNodes(),void(this.toggleStage=1);this.collapseAllNodesExcept(c.uiStore.activeElementId),this.toggleStage=0}else this.collapseAllNodes(),this.toggleStage=1}beforeDestroy(){this.unsubscribeFromActivateElementMutation&&this.unsubscribeFromActivateElementMutation()}toggleAdd(){(0,Bu._y)("add")}};(0,r.gn)([(0,l.Rl)()],Qk.prototype,"panelHeader",void 0),Qk=(0,r.gn)([(0,l.wA)({components:{RightClickMenu:La,PanelHeader:uI,StandardButton:Fl,IconButton:Xa.Z,Dropdown:Oc.Z,StructurePanelDropdownMenu:Yk}})],Qk);const Jk=Qk,eE=Jk;var tE=(0,N.Z)(eE,Ik,Pk,!1,null,null,null);const nE=tE.exports;var sE=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-history-and-revisions-panel vscroll-wrap vscroll-scroll"},[t("PanelHeader",{ref:"panelHeader",staticClass:"breakdance-history-and-revisions-panel__header",on:{close:e.close}},[e._v(" "+e._s(e.__("History"))+" ")]),e.disableRevisions?e._e():t("TabsRow",[t("Tab",{attrs:{value:e.tab,id:"history"},on:{input:function(t){e.tab=t}}},[e._v(e._s(e.__("History")))]),t("Tab",{attrs:{value:e.tab,id:"revisions"},on:{input:function(t){e.tab=t}}},[e._v(e._s(e.__("Revisions")))])],1),"history"===e.tab?t("History",{on:{scrollToActiveEl:e.scrollToActiveElement}}):"revisions"===e.tab?t("Revisions"):e._e()],1)},iE=[],oE=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"snapshots-list"},e._l(e.snapshots,(function(n,s){return t("SnapshotItem",{key:e.snapshots.length-1-s,attrs:{"data-snapshot-index":e.snapshots.length-1-s,snapshot:n,selected:e.currentIndex===e.snapshots.length-1-s},on:{click:function(t){return e.onSnapshotSelected(e.snapshots.length-1-s)}}})})),1)},aE=[],rE=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"snapshots-item",class:{"snapshots-item--selected":e.selected},attrs:{"data-test-id":"snapshots-item"},on:{click:function(t){return e.$emit("click",e.snapshot)}}},[t("span",{staticClass:"snapshots-item__title"},[e._v(e._s(e.snapshot.title))])])},lE=[];let cE=class extends l.w3{};(0,r.gn)([(0,l.fI)({default(){return{}}})],cE.prototype,"snapshot",void 0),(0,r.gn)([(0,l.fI)({default:!1})],cE.prototype,"selected",void 0),cE=(0,r.gn)([(0,l.wA)({})],cE);const dE=cE,uE=dE;var pE=(0,N.Z)(uE,rE,lE,!1,null,null,null);const hE=pE.exports;let gE=class extends l.w3{onSnapshotSelected(e){Q.GD.setCurrentSnapshotIndex(e),Ie.n.setStoreFromCurrentSnapshot()}close(){(0,Bu.TO)("history")}get snapshots(){return[...Q.GD.snapshots].reverse()}get currentIndex(){return Q.GD.index}handleCurrentIndexChange(){this.scrollToActiveSnapshotElement()}scrollToActiveSnapshotElement(){l.w3.nextTick((()=>{const e=this.$el.querySelector(`[data-snapshot-index="${this.currentIndex}"]`);e&&this.$emit("scrollToActiveEl",e)}))}};(0,r.gn)([(0,l.RL)("currentIndex",{immediate:!0})],gE.prototype,"handleCurrentIndexChange",null),gE=(0,r.gn)([(0,l.wA)({components:{PanelHeader:uI,SnapshotItem:hE}})],gE);const mE=gE,vE=mE;var yE=(0,N.Z)(vE,oE,aE,!1,null,null,null);const fE=yE.exports;var _E=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"revisions-panel"},[t("RevisionsList",{attrs:{"is-loading":e.loading,revisions:e.revisionUiItems,"revisions-not-supported-message":e.revisionsNotSupportedMessage},on:{revisionSelected:e.onRevisionSelected}})],1)},bE=[];let SE=class extends s.ZP{constructor(){super(...arguments),this.loading=!1,this.selectedRevisionIndex=0,this.unsubscribeFromStore=()=>{},this.revisionsNotSupportedMessage=null}get revisionUiItems(){return this.revisions.map(((e,t)=>({revisionData:e,isSelected:this.selectedRevisionIndex===t})))}async mounted(){this.loading=!0;const e=await this.fetchRemoteRevisions();this.loading=!1,e&&(Q.kD.setRevisionsData({revisions:e,currentUnsavedRevision:this.getCurrentUnsavedRevision(e)}),this.setActiveRevision(),this.unsubscribeFromStore=this.$store.subscribe((e=>{const t=(0,lP.q$)(e);"document"===t&&"document/loadRevision"!==e.type&&(Q.kD.setRevisionsData({revisions:Q.kD.revisionsData.revisions,currentUnsavedRevision:this.getCurrentUnsavedRevision(Q.kD.revisionsData.revisions)}),this.setActiveRevision())})))}destroyed(){this.unsubscribeFromStore()}get revisions(){return Q.kD.revisionsData.currentUnsavedRevision?[Q.kD.revisionsData.currentUnsavedRevision,...Q.kD.revisionsData.revisions]:Q.kD.revisionsData.revisions}get currentTree(){return(0,ge.exportTree)(Q.Hb.document.tree)}get unsavedChangesPresent(){return Q.kD.unsavedChangesPresent}async updateRevisionsAfterSaving(){if(!Q.kD.unsavedChangesPresent){const e=await this.fetchRemoteRevisions();e&&Q.kD.setRevisionsData({revisions:e,currentUnsavedRevision:null}),this.setActiveRevision()}}setActiveRevision(){const e=this.getActiveRevisionIndex(Q.kD.revisionsData.revisions);-1!==e?(this.selectedRevisionIndex=Q.kD.revisionsData.currentUnsavedRevision?e+1:e,this.scrollToActiveRevision("smooth")):(this.selectedRevisionIndex=0,this.scrollToActiveRevision("auto"))}getActiveRevisionIndex(e){return e.findIndex((e=>(0,ge.treesEqual)(e.tree,this.currentTree)))}getCurrentUnsavedRevision(e){const t=this.getActiveRevisionIndex(e);if(-1===t)return{id:-1,author:!1,date:"Current",tree:this.currentTree};const n=0===t&&Q.kD.revisionsData.currentUnsavedRevision&&(0,ge.treesEqual)(e[t].tree,Q.kD.revisionsData.currentUnsavedRevision?.tree);return n?null:Q.kD.revisionsData.currentUnsavedRevision}async fetchRemoteRevisions(){return(0,id.pipe)(await(0,ad.D)({action:"breakdance_retrieve_revisions",decoder:GI.VZ,dataToPost:{id:Q.Hb.document.documentMeta.id}}),(0,od.fold)((e=>((0,th.UE)(e),null)),(e=>"unsupported"in e?(this.revisionsNotSupportedMessage=e.unsupported,null):e.revisions.map((e=>{const t=(0,lw.Z)(e.tree,cw.f2),n=(0,id.pipe)(t,(0,od.fold)((()=>null),(e=>e)));return{...e,tree:n}})).filter((e=>null!==e.tree)))))}onRevisionSelected(e,t){const n=this.revisions.find((t=>t.id===e.revisionData.id));n&&(this.selectedRevisionIndex=t,Q.kD.activateElement(null),Q.kD.setInterfaceState("loading"),Q.Hb.loadRevision(n),Q.kD.setInterfaceState("normal"))}scrollToActiveRevision(e){(0,A.forceNextTick)((()=>document.querySelector(".revisions-panel .revisions-item--selected")?.scrollIntoView({behavior:e,block:"center"})))}};(0,r.gn)([(0,l.RL)("unsavedChangesPresent")],SE.prototype,"updateRevisionsAfterSaving",null),SE=(0,r.gn)([(0,l.wA)({components:{RevisionsList:rP,RevisionItem:nP,PanelHeader:uI}})],SE);const CE=SE,xE=CE;var wE=(0,N.Z)(xE,_E,bE,!1,null,null,null);const IE=wE.exports;let PE=class extends s.ZP{constructor(){super(...arguments),this.tab="history"}close(){(0,Bu.TO)("history")}scrollToActiveElement(e){(0,Bu.aQ)(this.$el,this.panelHeader.$el,e)}};(0,r.gn)([(0,l.fI)({default:!1})],PE.prototype,"disableRevisions",void 0),(0,r.gn)([(0,l.Rl)()],PE.prototype,"panelHeader",void 0),PE=(0,r.gn)([(0,l.wA)({components:{Revisions:IE,History:fE,PanelHeader:uI,TabsRow:qC,Tab:WC}})],PE);const kE=PE,EE=kE;var TE=(0,N.Z)(EE,sE,iE,!1,null,null,null);const DE=TE.exports;var AE=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:e.classList},[e._t("default")],2)},ZE=[];let OE=class extends s.ZP{get classList(){if("closed"===this.panelState)return{};const e=Bu.t6.includes(this.panelState);return{"breakdance-panel":!0,width288:!e,width400:e,"vscroll-wrap":!0,borderOnLeft:"right"===this.position,borderOnRight:"left"===this.position,"breakdance-app-left-area":"left"===this.position,"breakdance-app-right-area":"right"===this.position}}get builderMode(){return c.configStore.builderMode}};(0,r.gn)([(0,l.fI)()],OE.prototype,"position",void 0),(0,r.gn)([(0,l.fI)()],OE.prototype,"panelState",void 0),OE=(0,r.gn)([l.wA],OE);const ME=OE,BE=ME;var LE=(0,N.Z)(BE,AE,ZE,!1,null,null,null);const NE=LE.exports;var FE=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-variables-panel vscroll-wrap vscroll-scroll"},[t("PanelHeader",{on:{close:e.close},scopedSlots:e._u([{key:"right",fn:function(){return[t("IconButton",{attrs:{icon:"FolderPlusIcon",size:"14",small:"",tooltip:e.__("Add Collection")},on:{click:e.addCollection}}),t("IconButton",{attrs:{icon:"HistorySolidIcon",size:"13",small:"",active:"history"===e.viewMode,tooltip:e.__("History")},on:{click:e.toggleViewMode}}),t("ImportExportDropdownMenu",{attrs:{name:e.__("Variables"),"settings-to-export":e.settingsToExport,"validate-settings":e.validateImport,"import-settings":e.importVariables,"can-merge":!0}})]},proxy:!0}])},[e._v(" "+e._s(e.__("Variables"))+" ")]),e.isLoadingData?t(MI.Z,{attrs:{row:"","justify-center":"","align-center":""}},[t(Xp.Z,{attrs:{size:"64",indeterminate:"",color:"var(--gray300)"}})],1):["controls"===e.viewMode?t("ManageVariables"):e._e(),"history"===e.viewMode?t("VariablesHistory"):e._e()],t("PanelMask")],2)},RE=[],VE=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"global-variables"},[t("CollectionsInput",{attrs:{collections:e.collections,"resource-name":"variables",value:e.value},on:{"update-collections":e.setCollections,input:e.setVariables},scopedSlots:e._u([{key:"default",fn:function({collection:n}){return[t("InlineRepeater",{staticClass:"oxy-collection__repeater",attrs:{value:e.variablesByCollection[n],control:e.collectionControls[n],"data-key":"id",group:"oxy-variables"},on:{input:function(t){return e.handleDrag(t,n)}},scopedSlots:e._u([{key:"default",fn:function({value:n}){return[t("VariableRepeaterItem",{key:n.id,attrs:{variable:n},on:{input:e.setVariable}})]}}],null,!0)})]}}])})],1)},$E=[],WE=n(90889),UE=n(55645),zE=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-collections"},[t("draggable",e._b({attrs:{value:e.collections},on:{input:e.handleDrag}},"draggable",e.dragOptions,!1),e._l(e.collections,(function(n,s){return t("div",{staticClass:"oxy-collection"},[t("header",{staticClass:"oxy-collection-header"},[t("Icon",{staticClass:"oxy-collection-header__icon",attrs:{icon:e.isToggled(n)?"ChevronRightIcon":"ChevronDownIcon",size:12},on:{click:function(t){return e.toggleCollection(n)}}}),t("div",{staticClass:"oxy-collection-header__title"},[t("input",{staticClass:"oxy-collection__title",attrs:{contenteditable:"true",placeholder:e.__("Enter a name")},domProps:{value:n},on:{input:function(t){return e.setCollectionName(t,s)},keypress:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault()}}}),t("Icon",{attrs:{icon:"PenSolidIcon",size:10}})],1),t("div",{staticClass:"oxy-collection__actions"},[e._t("actions",null,{collection:n}),t("IconButton",{attrs:{icon:"DownloadSolidIcon",size:"12",tooltip:e.__("Download")},on:{click:function(t){return e.exportCollection(n)}}}),t("IconButton",{attrs:{icon:"TrashSolidIcon",size:"12",tooltip:e.__("Delete")},on:{click:function(t){return e.deleteCollection(n)}}}),t("IconButton",{staticClass:"oxy-collection__handle",attrs:{size:"12",icon:"GripDotsVerticalIcon",tooltip:e.__("Drag to reorder")}})],2)],1),e.isToggled(n)?e._e():e._t("default",null,{collection:n})],2)})),0),t("div",{staticClass:"oxy-collection-empty-state",on:{click:e.addCollection}},[t("Icon",{attrs:{icon:"FolderPlusIcon",size:"13"}}),t("span",[e._v(e._s(e.__("Add new collection")))])],1)],1)},HE=[];let GE=class extends l.w3{constructor(){super(...arguments),this.toggledCollections=[],this.dragOptions={animation:200,handle:".oxy-collection__handle",ghostClass:"breakdance-inline-repeater-item--ghost",forceFallback:!0}}isToggled(e){return this.toggledCollections.includes(e)}toggleCollection(e){this.toggledCollections.includes(e)?this.toggledCollections=this.toggledCollections.filter((t=>t!==e)):this.toggledCollections.push(e)}handleDrag(e){const t=(0,wd.Z)(this.value).sort(((t,n)=>{const s=e.indexOf(t.collection),i=e.indexOf(n.collection);return s===i?0:s-i}));this.$emit("update-collections",e),this.$emit("input",t)}setCollectionName(e,t){const n=e.target,s=n.value,i=this.collections[t],o=this.collections;o[t]=s;const a=this.value.map((e=>(e.collection===i&&(e.collection=s),e)));this.$emit("update-collections",o),this.$emit("input",a)}deleteCollection(e){const t=confirm((0,Ft.gB)((0,Ft.TZ)('Are you sure you want to delete the collection "%s"?',"%s: Collection name"),e));if(!t)return;const n=this.value.filter((t=>t.collection!==e)),s=this.collections.filter((t=>t!==e));this.$emit("update-collections",s),this.$emit("input",n)}exportCollection(e){const t=this.value.filter((t=>t.collection===e)),n=(0,Wg.g)(t),s=Qf()(e,{lower:!0});fP(n||"",`${s}-${this.resourceName}.json`)}addCollection(){const e=tl.hI,t=this.collections;let n=1;while(t.includes(`${e} ${n}`))n++;const s=`${e} ${n}`;this.$emit("update-collections",[...t,s])}};(0,r.gn)([(0,l.fI)()],GE.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],GE.prototype,"collections",void 0),(0,r.gn)([(0,l.fI)()],GE.prototype,"resourceName",void 0),GE=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,draggable:ev(),VariableRepeaterItem:UE.Z,IconButton:Xa.Z}})],GE);const KE=GE,jE=KE;var qE=(0,N.Z)(jE,zE,HE,!1,null,null,null);const XE=qE.exports;let YE=class extends s.ZP{onValueChange(){this.checkMissingCollections()}get collections(){return Q.cr.variablesCollections}get labels(){return this.value.map((e=>e.label))}get control(){return{options:{repeaterOptions:{buttonName:(0,Ft.__)("Add Variable"),templates:(0,WE.jI)(this.labels),autofocusOnAdd:!0,autofocusIndex:1}}}}checkMissingCollections(){const e=[...new Set(this.value.map((e=>e.collection)))],t=e.filter((e=>!this.collections.includes(e)));t.length&&Q.cr.setVariablesCollections(e)}beforeCreate(){this.$options.components.InlineRepeater=n(99926).Z}get collectionControls(){const e={};return this.collections.forEach((t=>{const n=(0,WE.jI)(this.labels,t);e[t]={...this.control,options:{...this.control.options,repeaterOptions:{...this.control.options?.repeaterOptions,templates:n}}}})),e}get variablesByCollection(){const e={};return this.collections.forEach((t=>{e[t]=this.value.filter((e=>e.collection===t))})),e}setVariable(e){const t=(0,wd.Z)(this.value),n=t.findIndex((t=>t.id===e.id));-1!==n&&(t[n]=e),this.setVariables(t)}setVariables(e){this.$emit("input",e)}handleDrag(e,t){this.variablesByCollection[t]=e.map((e=>({...e,collection:t})));const n=[];this.collections.forEach((e=>{n.push(...this.variablesByCollection[e])})),this.setVariables(n)}setCollections(e){Ie.n.transaction((()=>{Q.cr.setVariablesCollections(e)}),"Set Variable Collections")}};(0,r.gn)([(0,l.fI)({default(){return[]}})],YE.prototype,"value",void 0),(0,r.gn)([(0,l.RL)("value",{immediate:!0,deep:!0})],YE.prototype,"onValueChange",null),YE=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,IconButton:Xa.Z,draggable:ev(),CollectionsInput:XE,VariableRepeaterItem:UE.Z}})],YE);const QE=YE,JE=QE;var eT=(0,N.Z)(JE,VE,$E,!1,null,null,null);const tT=eT.exports;var nT=n(41836),sT=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-variables-panel-content"},[t("GlobalVariablesInput",{attrs:{value:e.variables},on:{input:e.updateVariables}})],1)},iT=[];let oT=class extends l.w3{get variables(){return Q.cr.variables||[]}updateVariables(e){Ie.n.transaction((()=>{Q.cr.setVariables(e)}),"Update Variables")}};oT=(0,r.gn)([(0,l.wA)({components:{GlobalVariablesInput:tT,Icon:He.Z}})],oT);const aT=oT,rT=aT;var lT=(0,N.Z)(rT,sT,iT,!1,null,null,null);const cT=lT.exports;var dT=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("RevisionsPanel",{attrs:{resources:e.variables,"resource-key":e.resourceKey,"resource-has-unsaved-changes-present":e.hasUnsavedChangesPresent,"fetch-revisions-method":e.fetchRevisionsMethod,"update-method":"setVariables","restore-method":"restoreVariablesRevision"}})},uT=[];let pT=class extends s.ZP{constructor(){super(...arguments),this.resourceKey="variables"}get variables(){return Q.cr.variables}get hasUnsavedChangesPresent(){return Q.cr.variablesHasUnsavedChangesPresent}get fetchRevisionsMethod(){return nT.u7}};pT=(0,r.gn)([(0,l.wA)({components:{RevisionsPanel:YP,RevisionsList:rP}})],pT);const hT=pT,gT=hT;var mT=(0,N.Z)(gT,dT,uT,!1,null,null,null);const vT=mT.exports;var yT=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.showMask?t("span",{staticClass:"oxy-panel-mask",on:{click:e.closeMask}}):e._e()},fT=[];let _T=class extends l.w3{get showMask(){return c.uiStore.panelState.oxyPanelIsMasked}closeMask(){c.uiStore.setPanelState({...c.uiStore.panelState,oxyPanelIsMasked:!1})}};_T=(0,r.gn)([(0,l.wA)({})],_T);const bT=_T,ST=bT;var CT=(0,N.Z)(ST,yT,fT,!1,null,"1dcc87c2",null);const xT=CT.exports;function wT(e,t,n="cssVariableName",s=!0){const i=t.map((e=>e[n])),o=e.filter((e=>!i.includes(e[n]))),a=t.map((t=>{const i=e.find((e=>e[n]===t[n]));return i&&s&&(t.id=i.id),t}));return{variablesToKeep:o,variables:[...o,...a]}}let IT=class extends s.ZP{constructor(){super(...arguments),this.isLoadingData=!1,this.isStoringData=!1}get settingsToExport(){return c.globalStore.variables}get viewMode(){return c.uiStore.panelState.variablesPanelPanelActiveViewMode}async beforeMount(){c.uiStore.panelState.shouldLoadFreshDataIntoStoreOnceOpened.variables?await this.load():c.uiStore.setShouldPanelLoadFreshDataIntoStoreOnceOpened("variables",!0)}toggleViewMode(){c.uiStore.setPanelState({...c.uiStore.panelState,variablesPanelPanelActiveViewMode:"controls"===this.viewMode?"history":"controls"})}async load(){this.isLoadingData=!0;const e=await(0,nT.Ap)();return this.isLoadingData=!1,e}async save(){this.isStoringData=!0;const e=await(0,nT.$Q)();return this.isStoringData=!1,e}requestPanelClosingConfirmation(){c.uiStore.requestClosingConfirmation({subject:"variables",confirmationDefinition:{title:(0,Ft.__)("You have unsaved changes to your Variables."),text:(0,Ft.__)("Would you like to save or discard these changes?"),type:"info"}})}get unsavedChangesPresent(){return c.globalStore.variablesHasUnsavedChangesPresent}handleUnsavedChangesPresentChange(e){e?this.requestPanelClosingConfirmation():c.uiStore.noClosingConfirmationIsNeededFor("variables")}get confirmationChosenOption(){return c.uiStore.closingConfirmations.variables?.chosenOption}async handleConfirmationChosenOptionChange(e){"discard"===e?(c.uiStore.setClosingConfirmationIsDiscarding({subject:"variables",isDiscarding:!0}),await this.load()?this.close():this.requestPanelClosingConfirmation()):"save"===e&&(c.uiStore.setClosingConfirmationIsSaving({subject:"variables",isSaving:!0}),await this.save()?this.close():this.requestPanelClosingConfirmation())}get isLoading(){return this.isLoadingData||this.isStoringData}close(){(0,Bu.TO)("variables")}addCollection(){"history"==this.viewMode&&this.toggleViewMode();const e=tl.hI,t=c.globalStore.variablesCollections;let n=1;while(t.includes(`${e} ${n}`))n++;const s=`${e} ${n}`;c.globalStore.setVariablesCollections([...t,s])}validateImport(e){return Array.isArray(e)?(0,su.zG)(e,Tw.eh.decode,(0,ou.g_)((()=>(cd.Z.log.errorMessage((0,Ft.__)("Error importing Variables - the file is invalid.")),!1)),(()=>!0))):(cd.Z.log.errorMessage((0,Ft.__)("Error importing Variables - the file is invalid or empty.")),!1)}importVariables(e,t){Array.isArray(e)?Ie.n.transaction((()=>{if("replace"===t)c.globalStore.setVariables(e);else{const{variablesToKeep:t,variables:n}=wT(c.globalStore.variables,e);c.globalStore.setVariables(n),cd.Z.log.message((0,Ft.gB)((0,Ft.__)("%s variables imported. %s existing variables were kept."),e.length,t.length))}}),"Import Variables"):cd.Z.log.errorMessage((0,Ft.__)("No Variables to import."))}};(0,r.gn)([(0,l.RL)("unsavedChangesPresent",{immediate:!0})],IT.prototype,"handleUnsavedChangesPresentChange",null),(0,r.gn)([(0,l.RL)("confirmationChosenOption",{immediate:!0})],IT.prototype,"handleConfirmationChosenOptionChange",null),IT=(0,r.gn)([(0,l.wA)({components:{ImportExportDropdownMenu:xP,PanelMask:xT,IconButton:Xa.Z,Tab:WC,TabsRow:qC,PanelHeader:uI,SearchInput:eu.Z,ManageVariables:cT,VariablesHistory:vT,PanelHeaderButton:EI,GlobalVariablesInput:tT}})],IT);const PT=IT,kT=PT;var ET=(0,N.Z)(kT,FE,RE,!1,null,null,null);const TT=ET.exports;var DT=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll presets-panel"},[e.isLoadingData?t(MI.Z,{attrs:{row:"","justify-center":"","align-center":""}},[t(Xp.Z,{attrs:{size:"64",indeterminate:"",color:"var(--gray300)"}})],1):e.activePreset?t("EditPreset",{on:{close:e.close}}):e.activePreset?e._e():t("ManagePresets",{on:{close:e.close}})],1)},AT=[],ZT=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[t("PanelHeader",{on:{close:function(t){return e.$emit("close")}}},[e._v(" "+e._s(e.__("Design Presets"))+" "),t("PanelHeaderButton",{attrs:{enabled:"history"===e.viewMode},on:{click:e.toggleViewMode}},[e._v(" "+e._s(e.__("history"))+" ")])],1),t("FreeModeAlertForPresets",{staticClass:"ma-4"}),"controls"===e.viewMode?[e.isAddPresetEnabled?t("AddPreset"):e._e(),e.isImportExportEnabled?t("ImportExportPresets"):e._e(),t("div",{staticClass:"vscroll-wrap vscroll-scroll breakdance-manage-presets"},[t("PresetsList",{attrs:{presets:e.presets,searchable:!0},on:{input:e.updatePresets}})],1)]:"history"===e.viewMode?[t("PresetsPanelHistoryViewMode")]:e._e()],2)},OT=[],MT=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[t("div",{staticClass:"vscroll-scroll presets-list"},[e.presets.length?e._l(e.presetsByElement,(function(n,s){return t("div",{key:s,staticClass:"presets-list-group breakdance-repeater-draggable"},[t("h4",{staticClass:"presets-list-title"},[e._v(e._s(e.getElementName(s)))]),e._l(n,(function(n,s){return t("div",{key:s,staticClass:"breakdance-repeater-item"},[t("RepeaterItemAccordion",{attrs:{"can-edit":!0,"can-drag":!1,"no-duplicate":!0},on:{"title:click":function(t){return e.editPreset(n)},"edit-item":function(t){return e.editPreset(n)},"delete-item":function(t){return e.deletePreset(n)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"breakdance-repeater-item-title-text"},[e._v(" "+e._s(n.name)+" ")])]},proxy:!0}],null,!0)})],1)}))],2)})):t("p",{staticClass:"manage-presets"},[e._v(e._s(e.__("You don't have any presets yet.")))])],2),e.searchable?t("div",{staticClass:"properties-panel-search-box-wrap properties-panel-search-box-wrap-presets"},[t("Icon",{staticClass:"properties-panel-search-icon",attrs:{icon:"SearchIcon",size:"13"}}),t("TextInput",{attrs:{placeholder:e.__("Search")},model:{value:e.searchString,callback:function(t){e.searchString=t},expression:"searchString"}})],1):e._e()])},BT=[],LT=n(11656);let NT=class extends s.ZP{constructor(){super(...arguments),this.dragOptions={animation:200,handle:".breakdance-repeater-item-handler",filter:".breakdance-repeater-item--ignore-drag",ghostClass:"breakdance-repeater-item--ghost",forceFallback:!0},this.searchString=""}get presetsByElement(){const e={};return this.filteredPresets.forEach((t=>{e[t.availableForType]||(e[t.availableForType]=[]),e[t.availableForType].push(t)})),Object.keys(e).forEach((t=>{e[t].sort(((e,t)=>e.namet.name.toLowerCase().includes(e)))}return this.presets}deletePreset(e){const t=this.presets.findIndex((t=>t.id===e.id)),n=(0,wd.Z)(this.presets);n.splice(t,1),this.$emit("input",n)}handleDrag(e){this.$emit("input",(0,wd.Z)(e))}editPreset(e){c.uiStore.setActivePresetId(e.id),(0,Bu.oM)("presets")}getElementName(e){return c.configStore.element(e).name}};(0,r.gn)([(0,l.fI)()],NT.prototype,"searchable",void 0),(0,r.gn)([(0,l.fI)()],NT.prototype,"presets",void 0),NT=(0,r.gn)([(0,l.wA)({components:{RepeaterItemAccordion:LT.Z,draggable:ev(),TextInput:na.Z,Icon:He.Z}})],NT);const FT=NT,RT=FT;var VT=(0,N.Z)(RT,MT,BT,!1,null,null,null);const $T=VT.exports;var WT=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"add-preset"},[t("TextInput",{attrs:{placeholder:e.__("Name")},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addPreset.apply(null,arguments)}},model:{value:e.newPresetName,callback:function(t){e.newPresetName=t},expression:"newPresetName"}}),t(Wm.Z,{staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{placeholder:e.__("Element"),items:e.elementsItems,dense:"",solo:"",flat:"",filled:"","hide-details":"","no-data-text":e.__("No presets available")},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addPreset.apply(null,arguments)}},model:{value:e.newPresetType,callback:function(t){e.newPresetType=t},expression:"newPresetType"}}),t("NiceButton",{attrs:{size:"small"},on:{click:e.addPreset}},[e._v(e._s(e.__("Add")))])],1)},UT=[];let zT=class extends s.ZP{constructor(){super(...arguments),this.newPresetName="",this.newPresetType=""}get elements(){return c.configStore.elements}get elementsItems(){return Object.values(this.elements).filter((e=>void 0!==e)).filter((e=>!(0,qe.GF)(e.addPanelRules,e.settings))).map((e=>({text:e.name,value:e?.slug})))}addPreset(){if(!this.newPresetName||!this.newPresetType)return;const e=(0,ae.Lr)(this.newPresetName,this.newPresetType);(0,ae.xk)(e),this.newPresetName="",this.newPresetType=""}};zT=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z,NiceButton:Br.Z,TextInput:na.Z}})],zT);const HT=zT,GT=HT;var KT=(0,N.Z)(GT,WT,UT,!1,null,null,null);const jT=KT.exports;var qT=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("RevisionsPanel",{attrs:{resources:e.presets,"resource-key":e.resourceKey,"resource-has-unsaved-changes-present":e.hasUnsavedChangesPresent,"fetch-revisions-method":e.fetchRevisionsMethod,"update-method":"setPresets","restore-method":"restorePresetsRevision"}})},XT=[];async function YT(){return(0,su.zG)(await(0,ad.D)({action:"breakdance_retrieve_presets_revisions",decoder:GI.hl}),(0,od.mapLeft)((()=>null)),ou.i$)}let QT=class extends s.ZP{constructor(){super(...arguments),this.resourceKey="presets"}get presets(){return Q.cr.presets}get hasUnsavedChangesPresent(){return Q.cr.presetsHasUnsavedChangesPresent}get fetchRevisionsMethod(){return YT}};QT=(0,r.gn)([(0,l.wA)({components:{RevisionsPanel:YP,RevisionsList:rP}})],QT);const JT=QT,eD=JT;var tD=(0,N.Z)(eD,qT,XT,!1,null,null,null);const nD=tD.exports;var sD=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"manage-presets-import-export"},[t("div",[t("NiceButton",{attrs:{"left-icon":"UploadFileIcon",expanded:!0},on:{click:e.openFileUpload}},[e._v(" "+e._s(e.__("Import"))+" ")]),t("input",{ref:"fileUpload",staticStyle:{display:"none"},attrs:{type:"file",accept:"application/json"},on:{change:e.importPresets}})],1),t("NiceButton",{attrs:{"left-icon":"DownloadFileIcon",small:"",expanded:!0},on:{click:e.exportPresets}},[e._v(" "+e._s(e.__("Export"))+" ")])],1)},iD=[],oD=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ProOnlyAlertBox",{attrs:{options:{feature:"presets",content:e.sprintf(e._doc("Design Presets are only available in %s Pro. They won't work on the frontend.","%s: Plugin name"),e.$bdox("plugin_name"))}}})},aD=[];let rD=class extends s.ZP{};rD=(0,r.gn)([(0,l.wA)({components:{ProOnlyAlertBox:Zg.Z}})],rD);const lD=rD,cD=lD;var dD=(0,N.Z)(cD,oD,aD,!1,null,null,null);const uD=dD.exports;let pD=class extends s.ZP{openFileUpload(){const e=this.$refs.fileUpload;e.click()}importPresets(e){const t=e.target,n=t.files&&t.files[0];if(!n)return;const s=new FileReader;s.onload=()=>{const e=s.result,t=(0,id.pipe)((0,lw.Z)(e,Ew.p),(0,od.fold)((()=>null),(e=>e)));if(null===t)return void cd.Z.log.errorMessage((0,Ft.__)("The file you selected is not a valid Presets file."));if(!t.length)return void cd.Z.log.message((0,Ft.__)("The file you selected does not contain any presets."));const n=t.map((e=>e.id)),i=c.globalStore.presets.filter((e=>!n.includes(e.id)));c.globalStore.setPresets([...i,...t])},s.readAsText(n),e.target.value=""}exportPresets(){const e=`breakdance-presets-${(0,fa.z)()}.json`,t=(0,id.pipe)((0,Uh.J)(c.globalStore.presets),(0,od.fold)((()=>""),(e=>e))),n=document.createElement("a"),s=new Blob([t],{type:"application/json"});n.setAttribute("href",window.URL.createObjectURL(s)),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}};pD=(0,r.gn)([(0,l.wA)({components:{FreeModeAlertForPresets:uD,AlertBox:Ag.Z,PresetsPanelHistoryViewMode:nD,PanelHeaderButton:EI,BrowseModeToggle:OI,draggable:ev(),PresetsList:$T,AddPreset:jT,PanelHeader:uI,IconButton:Xa.Z,NiceButton:Br.Z}})],pD);const hD=pD,gD=hD;var mD=(0,N.Z)(gD,sD,iD,!1,null,null,null);const vD=mD.exports;let yD=class extends s.ZP{get viewMode(){return c.uiStore.panelState.presetsPanelActiveViewMode}toggleViewMode(){c.uiStore.setPanelState({...c.uiStore.panelState,presetsPanelActiveViewMode:"controls"===this.viewMode?"history":"controls"})}get presets(){return c.globalStore.presets}get isAddPresetEnabled(){return c.configStore.isExperimentEnabled("design-presets-add")}get isImportExportEnabled(){return c.configStore.isExperimentEnabled("design-presets-import-export")}updatePresets(e){c.globalStore.setPresets((0,wd.Z)(e))}};yD=(0,r.gn)([(0,l.wA)({components:{FreeModeAlertForPresets:uD,AlertBox:Ag.Z,PresetsPanelHistoryViewMode:nD,PanelHeaderButton:EI,BrowseModeToggle:OI,draggable:ev(),PresetsList:$T,AddPreset:jT,PanelHeader:uI,ImportExportPresets:vD}})],yD);const fD=yD,_D=fD;var bD=(0,N.Z)(_D,ZT,OT,!1,null,null,null);const SD=bD.exports;var CD=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.activePreset?t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[t("PanelHeader",{attrs:{backInsteadOfClose:!0},on:{close:e.close}},[e._v(" "+e._s(e.__("Editing Preset"))+" ")]),t("div",{staticClass:"breakdance-preset-content"},[t("div",{staticClass:"breakdance-preset-element-name truncate"},[t("span",{staticClass:"breakdance-preset-element-name__icon"},[e.element?.uiIcon?t("ElementIcon",{attrs:{icon:e.element.uiIcon,size:"14"}}):e._e()],1),t("span",{staticClass:"truncate"},[e._v(e._s(e.element?.name))])]),t("div",{staticClass:"breakdance-preset-titlebar"},[t("div",{staticClass:"flex-grow-1 mr-2"},[t("div",{staticClass:"d-flex flex-column"},[t("TextInput",{attrs:{value:e.activePreset.name,placeholder:e.__("Preset Name")},on:{input:e.tryToRenameActivePreset}})],1)]),t("IconButton",{attrs:{icon:"TrashIcon",size:"16"},on:{click:e.deletePreset}})],1)]),""!==e.searchBoxState.query&&e.hasSearchParameters&&!e.noSearchResults?t("div",{staticClass:"control-tree-search-term control-tree-search-term-preset"},[t("span",[e._v(e._s(e.sprintf(e._xdoc('Search results for "%s"',"Element Presets","%s: Search query"),e.searchBoxState.query)))]),t("div",{staticClass:"control-tree-search-clear",on:{click:e.clearQuery}},[t("Icon",{attrs:{icon:"CloseIcon",size:"14"}})],1)]):e._e(),t("div",{staticClass:"edit-preset-border"}),e.isActiveElementRelatedToActivePreset||e.skipTypeCheckForActiveElement?[e.hasSearchParameters?e._e():t("div",{staticClass:"vscroll-scroll"},[t("ControlsTree",{attrs:{controls:e.controls,path:"design"}})],1),e.hasSearchParameters&&!e.noSearchResults?t("div",{staticClass:"vscroll-scroll"},[t("ControlsTree",{attrs:{controls:e.controlsFilteredBySearchParams,path:"design",linear:!0}})],1):e.hasSearchParameters&&e.noSearchResults?t(gC.Z,{staticClass:"d-flex justify-center align-center flex-column",attrs:{height:"100%"}},[t("SearchBoxEmptyState",{attrs:{label:"presets"},on:{input:e.clearQuery}})],1):e._e(),t("SearchBox",{attrs:{value:e.searchBoxState,location:"preset"},on:{input:e.updateSearchBoxState}})]:t("div",{staticClass:"breakdance-preset-content"},[t("AlertBox",{staticClass:"mb-4",attrs:{options:{style:"info",content:e.sprintf(e._doc("To edit, select %s element with this preset applied.","%s: element type"),e.element?.name)}}}),t("NiceButton",{attrs:{expanded:!0},on:{click:function(t){e.skipTypeCheckForActiveElement=!0}}},[e._v(" "+e._s(e.__("Edit Anyway"))+" ")])],1)],2):e._e()},xD=[];let wD=class extends s.ZP{constructor(){super(...arguments),this.searchBoxState={modifiedOnly:!1,query:""},this.skipTypeCheckForActiveElement=!1,this.attemptingToRename=!1,this.editingPresetControlsTreeContext={getControls:()=>this.controls,getControlValue:e=>j()(c.uiStore.activePreset,`${e}`,void 0),setControlValue(e,t,n,s){if(!c.uiStore.activePreset)return;const i=(0,ge.getNodesByPresetId)(c.documentStore.document.tree,c.uiStore.activePreset.id);c.globalStore.throttledPresetPropertyChange((0,Zv._Z)({preset:c.uiStore.activePreset,path:e,value:t},{control:n,controlsTree:this.getControls(e)||[]},s)),i.forEach((n=>{Al.w.run.onPropertyChange({elementId:n.id,path:e,value:(0,wd.Z)(t),previousValue:"",transactionKey:void 0})}))},setAccordionState:(e,t)=>{const n=c.uiStore.activePreset&&c.uiStore.activePreset.id;n&&(0,NI.Q)(n,e,t)},getAccordionState:e=>{const t=c.uiStore.activePreset&&c.uiStore.activePreset.id;return!!t&&(0,NI.WX)(t,e)}}}updateSearchBoxState(e){this.searchBoxState=e}clearQuery(){this.updateSearchBoxState({modifiedOnly:!1,query:""})}get isActiveElementRelatedToActivePreset(){return this.activeElement&&this.activeElement.data.type===this.activePreset?.availableForType&&this.activeElement.data?.properties?.meta?.preset===this.activePreset?.id}get activeElement(){return c.uiStore.activeElement}get activeElementId(){return c.uiStore.activeElementId}get hasSearchParameters(){return this.searchBoxState.modifiedOnly||this.searchBoxState.query}get controlsFilteredBySearchParams(){return px(this.controls,this.searchBoxState.modifiedOnly,this.searchBoxState.query,this.editingPresetControlsTreeContext,"design")}get noSearchResults(){return 0===gx(this.controlsFilteredBySearchParams,0)}get element(){return this.activePreset?c.configStore.element(this.activePreset.availableForType):null}get controls(){const e=this.element?.controls.designSections??[];return(0,ae.mJ)(e)}get activePreset(){return c.uiStore.activePreset}deletePreset(){if(!this.activePreset)return;const e=this.activePreset,t=c.globalStore.presets.findIndex((t=>t.id===e.id));if(-1!==t){const e=(0,wd.Z)(c.globalStore.presets);e.splice(t,1),c.globalStore.setPresets(e)}}close(){this.backToAllPresets()}backToAllPresets(){c.uiStore.setActivePresetId(null)}tryToRenameActivePreset(e){if(!e)return;this.attemptingToRename=e;const t=c.globalStore.presets.findIndex((e=>e.id===this.activePreset?.id)),n=(0,wd.Z)(c.globalStore.presets);n[t]&&(n[t].name=e,c.globalStore.setPresets(n),this.attemptingToRename=!1)}};(0,r.gn)([(0,l.DF)("context")],wD.prototype,"editingPresetControlsTreeContext",void 0),wD=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,ElementIcon:on.Z,FreeModeAlertForPresets:uD,AlertBox:Ag.Z,ControlsTree:_C["default"],SearchBox:OC,IconButton:Xa.Z,PanelHeader:uI,TextInput:na.Z,SearchBoxEmptyState:Sx,NiceButton:Br.Z}})],wD);const ID=wD,PD=ID;var kD=(0,N.Z)(PD,CD,xD,!1,null,null,null);const ED=kD.exports;let TD=class extends s.ZP{constructor(){super(...arguments),this.isLoadingData=!1,this.isStoringData=!1}get activePreset(){return c.uiStore.activePreset}async beforeMount(){c.uiStore.panelState.shouldLoadFreshDataIntoStoreOnceOpened.presets?(c.uiStore.setPanelState({...c.uiStore.panelState,presetsPanelActiveViewMode:"controls"}),await this.load()):c.uiStore.setShouldPanelLoadFreshDataIntoStoreOnceOpened("presets",!0)}async load(){this.isLoadingData=!0;const e=await(0,ae.wQ)();return this.isLoadingData=!1,e}async save(){this.isStoringData=!0;const e=await(0,ae.rE)();return this.isStoringData=!1,e}requestPanelClosingConfirmation(){c.uiStore.requestClosingConfirmation({subject:"presets",confirmationDefinition:{title:(0,Ft.__)("You have unsaved changes to your Presets."),text:(0,Ft.__)("Would you like to save or discard these changes?"),type:"info"}})}get unsavedChangesPresent(){return c.globalStore.presetsHasUnsavedChangesPresent}handleUnsavedChangesPresentChange(e){e?this.requestPanelClosingConfirmation():c.uiStore.noClosingConfirmationIsNeededFor("presets")}get confirmationChosenOption(){return c.uiStore.closingConfirmations.presets?.chosenOption}async handleConfirmationChosenOptionChange(e){"discard"===e?(c.uiStore.setClosingConfirmationIsDiscarding({subject:"globalSettings",isDiscarding:!0}),await this.load()?this.close():this.requestPanelClosingConfirmation()):"save"===e&&(c.uiStore.setClosingConfirmationIsSaving({subject:"globalSettings",isSaving:!0}),await this.save()?this.close():this.requestPanelClosingConfirmation())}get isLoading(){return this.isLoadingData||this.isStoringData}close(){(0,Bu.TO)("presets")}};(0,r.gn)([(0,l.RL)("unsavedChangesPresent",{immediate:!0})],TD.prototype,"handleUnsavedChangesPresentChange",null),(0,r.gn)([(0,l.RL)("confirmationChosenOption",{immediate:!0})],TD.prototype,"handleConfirmationChosenOptionChange",null),TD=(0,r.gn)([(0,l.wA)({components:{EditPreset:ED,ManagePresets:SD}})],TD);const DD=TD,AD=DD;var ZD=(0,N.Z)(AD,DT,AT,!1,null,null,null);const OD=ZD.exports;var MD=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"ai-panel vscroll-wrap vscroll-scroll"},[t("PanelHeader",{ref:"panelHeader",on:{close:e.close}},[e._v(e._s(e.__("AI Assistant")))]),e.canViewTabs?t("TabsRow",{staticClass:"ai-panel-tabs",attrs:{"fixed-tabs":""},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("Tab",{attrs:{value:e.tab,id:"write"},on:{input:function(t){e.tab=t}}},[t("Icon",{attrs:{icon:"PenIcon",size:"18"}})],1),t("Tab",{attrs:{value:e.tab,id:"settings"},on:{input:function(t){e.tab=t}}},[t("Icon",{attrs:{icon:"GearIcon",size:"18"}})],1)],1):e._e(),t("div",{staticClass:"ai-panel-content vscroll-wrap vscroll-scroll"},[e.loadingSettings?t(Xp.Z,{staticClass:"d-block mx-auto my-4",attrs:{size:"48",indeterminate:"",color:"var(--indigo600)"}}):e.pluginNotInstalled?t("AIPluginNotInstalled"):e.settings.isApiKeySet?[e.element||"write"!==e.tab?"write"===e.tab?t("AIWriter",{attrs:{title:e.sprintf(e._doc("Rewrite %s","%s: Item name being rewritten with AI"),e.friendlyName),prompt:e.prompt,loading:e.rewriteInProgress,disabled:e.isAIDisabled,"element-name":e.elementConfig?.name,"locked-fields":e.lockedFields},on:{rewrite:e.rewrite,updatePrompt:e.updatePrompt}}):"images"===e.tab?t("AIUnsplash"):"settings"===e.tab?t("AISettings",{attrs:{settings:e.settings.prompt,loading:e.savingSettings},on:{input:e.updateSettings}}):e._e():t("AINoElementSelected")]:t("AINoApiKey")],2)],1)},BD=[],LD=n(87808),ND=n(76491),FD=n(74959),RD=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"ai-unsplash"},[t("h3",{staticClass:"ai-panel__title"},[e._v(e._s(e.__("Unsplash")))]),t("div",[t("p",[e._v(" "+e._s(e.__("Fetch images from Unsplash to use in your content, they are automatically added to Image elements in the selected section."))+" ")]),t("label",[e._v(e._s(e.__("Keywords")))]),t("div",{staticClass:"ai-images-search-input"},[t("TextInput",{on:{blur:e.talkToUnsplash},model:{value:e.keywords,callback:function(t){e.keywords=t},expression:"keywords"}}),t(Qo.Z,{staticClass:"ai-images-preview-btn",attrs:{small:"",text:"",color:"primary"},on:{click:e.talkToUnsplash}},[e._v(" "+e._s(e.__("Preview"))+" ")])],1),t("div",{staticClass:"my-2"},[t("label",[e._v(e._s(e.__("Orientation")))]),t("ButtonBarInput",{staticClass:"mb-3",attrs:{items:e.orientationItems},model:{value:e.orientation,callback:function(t){e.orientation=t},expression:"orientation"}})],1),t(Um.Z,{attrs:{label:e.__("Fill Empty Images Only"),"hide-details":""},model:{value:e.fillEmptyImagesOnly,callback:function(t){e.fillEmptyImagesOnly=t},expression:"fillEmptyImagesOnly"}}),e.images.length?t("div",{staticClass:"mt-2"},[t("h4",[e._v(e._s(e.__("Preview")))]),t("div",{staticClass:"ai-images-preview"},e._l(e.images,(function(e){return t("a",{key:e.id,attrs:{href:e.urls.full,target:"_blank"}},[t("img",{attrs:{src:e.urls.small,alt:""}})])})),0)]):e._e(),t("NiceButton",{staticClass:"ai-button",attrs:{loading:e.loading,size:"huge",disabled:0===e.imagesFields.length},on:{click:e.fetchImages}},[0===e.imagesFields.length?[e._v(" "+e._s(e.__("No images found in this section"))+" ")]:[e._v(" "+e._s(e.__("Import Images From Unsplash"))+" ")]],2)],1)])},VD=[];let $D=class extends l.w3{constructor(){super(...arguments),this.images=[],this.loading=!1,this.fillEmptyImagesOnly=!1,this.keywords="",this.orientation=null}get orientationItems(){return[{text:(0,Ft.__)("Landscape"),value:"landscape"},{text:(0,Ft.__)("Portrait"),value:"portrait"},{text:(0,Ft.__)("Squarish"),value:"squarish"}]}get imagesFields(){return c.uiStore.activeElement?(0,ir.ho)(c.uiStore.activeElement):[]}async fetchImages(){if(this.keywords)if(0!==this.imagesFields.length){if(this.loading=!0,await this.talkToUnsplash(),!this.images.length)return cd.Z.log.errorMessage((0,Ft.__)("No images found. Please try again with different keywords.")),void(this.loading=!1);(0,ir.hh)(this.imagesFields,this.images,this.fillEmptyImagesOnly),this.loading=!1,this.keywords="",this.images=[]}else cd.Z.log.errorMessage((0,Ft.__)("No images to complete. Please add an image to the section first."));else cd.Z.log.errorMessage((0,Ft.__)("Please enter a keyword to fetch images."))}async talkToUnsplash(){this.images=await(0,ND.Ig)([this.keywords],this.imagesFields.length,this.orientation)}};$D=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,NumberInput:xd.Z,IconButton:Xa.Z,NiceButton:Br.Z,ButtonBarInput:$g.Z,TopBarSection:Kc}})],$D);const WD=$D,UD=WD;var zD=(0,N.Z)(UD,RD,VD,!1,null,null,null);const HD=zD.exports;var GD=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"ai-business"},[t("h3",{staticClass:"ai-panel__title"},[e._v(e._s(e.__("Tell us about your business")))]),t("div",{staticClass:"ai-business-form mb-5"},[t("div",{staticClass:"ai-business-field"},[t("label",{staticClass:"ai-business-field__label",attrs:{for:""}},[e._v(e._s(e.__("Business Name")))]),t("TextInput",{attrs:{value:e.settings.businessName},on:{input:function(t){return e.updateField("businessName",t)}}})],1),t("div",{staticClass:"ai-business-field"},[t("label",{staticClass:"ai-business-field__label",attrs:{for:""}},[e._v(" "+e._s(e.__("Qualifiers (optional)"))+" ")]),t("TextInput",{attrs:{value:e.settings.qualifiers},on:{input:function(t){return e.updateField("qualifiers",t)}}})],1),t("div",{staticClass:"ai-business-field"},[t("label",{staticClass:"ai-business-field__label",attrs:{for:""}},[e._v(" "+e._s(e.__("Describe Your Business"))+" ")]),t("TextInput",{attrs:{value:e.settings.businessDescription,multiline:!0},on:{input:function(t){return e.updateField("businessDescription",t)}}})],1),t("div",{staticClass:"ai-business-field"},[t("label",{staticClass:"ai-business-field__label",attrs:{for:""}},[e._v(e._s(e.__("Macros")))]),t("Repeater",{attrs:{value:e.settings.presets,control:{options:{repeaterOptions:{titleTemplate:"{name}",defaultTitle:e.__("Macro"),buttonName:e.__("Add Macro")}}}},on:{input:e.updatePresets},scopedSlots:e._u([{key:"default",fn:function({index:n}){return[t("div",{staticClass:"ai-business-field"},[t("label",{staticClass:"ai-business-field__label",attrs:{for:""}},[e._v(e._s(e.__("Name")))]),t("TextInput",{on:{input:function(t){return e.updatePreset("name",t,n)}},model:{value:e.settings.presets[n].name,callback:function(t){e.$set(e.settings.presets[n],"name",t)},expression:"settings.presets[repeaterIndex].name"}})],1),t("div",{staticClass:"ai-business-field"},[t("label",{staticClass:"ai-business-field__label",attrs:{for:""}},[e._v(e._s(e.__("Prompt")))]),t("TextInput",{attrs:{placeholder:e.__("Example:\nShorten the following text"),multiline:!0,"variable-options":{enabled:!0},"variable-items":[{text:e.__("Field's Value"),value:"text"}]},on:{input:function(t){return e.updatePreset("prompt",t,n)}},model:{value:e.settings.presets[n].prompt,callback:function(t){e.$set(e.settings.presets[n],"prompt",t)},expression:"settings.presets[repeaterIndex].prompt"}})],1)]}}])})],1)])])},KD=[];let jD=class extends l.w3{updateField(e,t){const n=(0,wd.Z)(this.settings);n[e]=t,this.$emit("input",n)}updatePresets(e){const t=(0,wd.Z)(this.settings);t.presets=e,this.$emit("input",t)}updatePreset(e,t,n){const s=(0,wd.Z)(this.settings),i=s.presets||[];i[n][e]=t,s.presets=i,this.$emit("input",s)}};(0,r.gn)([(0,l.fI)()],jD.prototype,"settings",void 0),(0,r.gn)([(0,l.fI)()],jD.prototype,"loading",void 0),jD=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,NumberInput:xd.Z,IconButton:Xa.Z,TopBarSection:Kc,NiceButton:Br.Z,DropdownInput:Cd.Z,Repeater:nv.Z}})],jD);const qD=jD,XD=qD;var YD=(0,N.Z)(XD,GD,KD,!1,null,null,null);const QD=YD.exports;var JD=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"ai-writer"},[t("h3",{staticClass:"ai-panel__title"},[e._v(e._s(e.title))]),t("div",{staticClass:"ai-writer-field mb-4"},[t("label",{staticClass:"ai-writer-field__label",attrs:{for:""}},[e._v(e._s(e.__("Describe This Section")))]),t("TextInput",{attrs:{value:e.prompt.sectionDescription,multiline:!0},on:{input:function(t){return e.updateField("sectionDescription",t)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.metaKey?t.ctrlKey||t.shiftKey||t.altKey?null:(t.preventDefault(),e.$emit("rewrite")):null}}}),t(ck.Z,{attrs:{"max-width":"236",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({attrs:n,on:s}){return[t("span",{staticClass:"d-block text-right"},[t("span",e._g(e._b({staticClass:"ai-writer-tooltip"},"span",n,!1),s),[t("Icon",{attrs:{icon:"CircleInfoIcon",size:"14"}}),e._v(" "+e._s(e.__("See examples"))+" ")],1)])]}}])},[t("div",[e._v(" "+e._s(e.__("Examples:"))+" "),t("ul",[t("li",[e._v(e._s(e.__("Homepage hero section")))]),t("li",[e._v(" "+e._s(e.__("Call to action section on services page"))+" ")]),t("li",[e._v(e._s(e.__("Section showing testimonials")))])])])])],1),t("div",{staticClass:"ai-writer-field mb-4"},[t("label",{staticClass:"ai-writer-field__label",attrs:{for:""}},[e._v(e._s(e.__("Qualifiers (optional)")))]),t("TextInput",{attrs:{value:e.prompt.qualifiers},on:{input:function(t){return e.updateField("qualifiers",t)}}}),t(ck.Z,{attrs:{"max-width":"236",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({attrs:n,on:s}){return[t("span",{staticClass:"d-block text-right"},[t("span",e._g(e._b({staticClass:"ai-writer-tooltip"},"span",n,!1),s),[t("Icon",{attrs:{icon:"CircleInfoIcon",size:"14"}}),e._v(" "+e._s(e.__("See examples"))+" ")],1)])]}}])},[t("div",[e._v(" "+e._s(e.__("Examples:"))+" "),t("ul",[t("li",[e._v(e._s(e.__("Be funny")))]),t("li",[e._v(e._s(e.__("Write it like snoop dogg")))]),t("li",[e._v(e._s(e.__("Be very concise")))]),t("li",[e._v(e._s(e.__("Be verbose")))]),t("li",[e._v(" "+e._s(e.__("Mention apples, oranges, and bananas"))+" ")])])])])],1),t("div",{staticClass:"ai-writer-field ai-writer-field--row"},[t("label",{staticClass:"ai-writer-field__label",attrs:{for:""}},[e._v(e._s(e.__("Temperature")))]),t("NumberInput",{attrs:{value:e.prompt.temperature,"range-options":{min:0,max:1,step:.1}},on:{input:e.updateTemperature}})],1),e.disabled?t("AlertBox",{staticClass:"mt-5",attrs:{options:{style:"warning",content:e.sprintf(e._doc("The %s element does not support AI writing.","%s: Element name"),e.elementNameBold)}}}):e._e(),e.lockedFields.length?t("div",{staticClass:"ai-writer-warning"},[t("div",{on:{click:function(t){e.viewWarning=!e.viewWarning}}},[t("AlertBox",{attrs:{options:{style:"warning",content:e.__("Some fields are locked and will not be updated by AI. Click to view.")}}})],1),e.viewWarning?t("ul",{staticClass:"ai-write-warning-list"},e._l(e.lockedFields,(function(n){return t("li",[e._v(" "+e._s(e.sprintf(e._doc("%s Field in","%s: Field label"),n.field.label))+" "),t("b",{staticClass:"cursor-pointer",on:{click:function(t){return e.activateElement(n.nodeId)}}},[e.isActiveElement(n.nodeId)?[e._v(" "+e._s(e.__("This Element"))+" ")]:[e._v(" "+e._s(e.sprintf(e._doc("%s Element","%s: Element name"),n.nodeName))+" ")]],2)])})),0):e._e()]):e._e(),t("NiceButton",{staticClass:"ai-writer-button",attrs:{loading:e.loading,leftIcon:"SparklesIcon",color:"indigo",size:"huge",disabled:e.disabled},on:{click:function(t){return e.$emit("rewrite")}}},[e._v(" "+e._s(e.__("Rewrite With AI"))+" ")])],1)},eA=[];let tA=class extends l.w3{constructor(){super(...arguments),this.viewWarning=!1}get elementNameBold(){return`${this.elementName}`}updateField(e,t){const n=(0,wd.Z)(this.prompt);Sd()(n,e,t),this.$emit("updatePrompt",n)}updateTemperature(e){const t=Math.max(0,Math.min(1,e));this.updateField("temperature",t)}isActiveElement(e){return Q.kD.activeElementId===e}activateElement(e){Q.kD.activateElement(e)}};(0,r.gn)([(0,l.fI)()],tA.prototype,"prompt",void 0),(0,r.gn)([(0,l.fI)()],tA.prototype,"title",void 0),(0,r.gn)([(0,l.fI)({default:!1})],tA.prototype,"loading",void 0),(0,r.gn)([(0,l.fI)({default:!1})],tA.prototype,"disabled",void 0),(0,r.gn)([(0,l.fI)({default:""})],tA.prototype,"elementName",void 0),(0,r.gn)([(0,l.fI)({default(){return[]}})],tA.prototype,"lockedFields",void 0),tA=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,TextInput:na.Z,NiceButton:Br.Z,NumberInput:xd.Z,ToggleInput:Zp.Z,AlertBox:Ag.Z}})],tA);const nA=tA,sA=nA;var iA=(0,N.Z)(sA,JD,eA,!1,null,null,null);const oA=iA.exports;var aA=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"ai-panel-message"},[t("Icon",{staticClass:"ai-panel-message__icon",attrs:{size:"60",icon:"RobotIcon"}}),t(yd.EB,{staticClass:"ai-panel-message__title"},[e._v(" "+e._s(e.__("Welcome to Breakdance AI"))+" ")]),t("p",[e._v(e._s(e.__("Rewrite your content with the power of AI.")))]),t("p",[e._v(" "+e._s(e.__("Breakdance uses OpenAI's GPT-3.5 to rewrite your content. Please install the Breakdance AI plugin to use this feature."))+" ")]),t("NiceButton",{attrs:{size:"huge",color:"indigo"},on:{click:e.goToPluginPage}},[e._v(" "+e._s(e.__("Install now"))+" ")])],1)},rA=[];let lA=class extends l.w3{goToPluginPage(){window.open("https://breakdance.com/ai","_blank")}};lA=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,NiceButton:Br.Z}})],lA);const cA=lA,dA=cA;var uA=(0,N.Z)(dA,aA,rA,!1,null,null,null);const pA=uA.exports;var hA=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"ai-panel-message"},[t("Icon",{staticClass:"ai-panel-message__icon",attrs:{size:"60",icon:"RobotIcon"}}),t(yd.EB,{staticClass:"ai-panel-message__title"},[e._v(" "+e._s(e.__("Set up your OpenAI API key"))+" ")]),t("p",[e._v(" "+e._s(e.__("You need to set up your OpenAI API key before you can use the AI assistant."))+" ")]),t("p",[t("a",{attrs:{href:e.wpAdminSettingsAiTabUrl,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.__("Click here to set up your API key"))+" ")])])],1)},gA=[];let mA=class extends l.w3{get wpAdminSettingsAiTabUrl(){return"wp-admin/admin.php?page="+this.$bdox("admin_page_settings_slug")+"&tab=ai"}};mA=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,NiceButton:Br.Z}})],mA);const vA=mA,yA=vA;var fA=(0,N.Z)(yA,hA,gA,!1,null,null,null);const _A=fA.exports;var bA=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"ai-panel-message"},[t("Icon",{staticClass:"ai-panel-message__icon",attrs:{size:"60",icon:"RobotIcon"}}),t(yd.EB,{staticClass:"ai-panel-message__title"},[e._v(" "+e._s(e.__("Select an element first"))+" ")]),t("p",[e._v(" "+e._s(e.__("Click on an element in the editor to rewrite it with AI."))+" ")])],1)},SA=[];let CA=class extends l.w3{};CA=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,NiceButton:Br.Z}})],CA);const xA=CA,wA=xA;var IA=(0,N.Z)(wA,bA,SA,!1,null,null,null);const PA=IA.exports;let kA=class extends l.w3{constructor(){super(...arguments),this.rewriteInProgress=!1,this.savingSettings=!1,this.loadingSettings=!1,this.pluginNotInstalled=!1,this.activeTab="content",this.tab="write",this.maxRetries=3,this.retries=0}get element(){return c.uiStore.activeElement||null}get elementConfig(){return this.element?c.configStore.element(this.element.data.type):null}get isAIDisabled(){return this.elementConfig?.settings&&this.elementConfig?.settings.disableAI}get settings(){return c.globalStore.aiSettings}get prompt(){return{sectionDescription:this.elementDescription,qualifiers:this.qualifiers,temperature:this.temperature,lockedFields:this.lockedFieldsPaths,locale:this.settings.locale,unsplash:{enabled:!1,fillEmptyImagesOnly:!1,keywords:""},singularity:{sectionData:{type:!1,index:!1},shouldGenerateOnInitialLoad:!1,unsplashKeywords:[]},onboarding:{sectionType:!1,shouldGenerateOnInitialLoad:!1}}}get friendlyName(){return this.element?(0,ir.w2)(this.element):"Section"}get elementDescription(){return this.element?(0,ir.EJ)(this.element):""}get qualifiers(){return this.element?(0,ir.zX)(this.element):""}get temperature(){return this.element?(0,ir.Wh)(this.element):1}get canViewTabs(){return this.settings.isApiKeySet&&!this.pluginNotInstalled}get unsavedChangesPresent(){return c.globalStore.aiSettingsHasUnsavedChangesPresent}get lockedFieldsPaths(){return this.element?(0,ir.nS)(this.element):[]}get lockedFields(){return this.element?(0,ir.LX)(this.element).filter((e=>e.field.locked)):[]}async fetchAndUpdateImages(e){if(!this.element)return;const t=(0,ir.ho)(this.element),{enabled:n,fillEmptyImagesOnly:s}=this.prompt.unsplash;if(!n)return;if(!e)return void this.log((0,Ft.__)("Failed to get Unsplash keywords from OpenAI API."));const i=await(0,ND.Ig)(e,t.length);(0,ir.hh)(t,i,s)}async syncRewrite(e,t){const n=(0,id.pipe)(await(0,ND.Tk)(e,"json","breakdance_ai_request_completion",!1),(0,od.fold)((()=>null),(e=>e)));if(!n)throw new Error((0,Ft.__)("No response was returned from OpenAI API."));const s=(0,ir.wi)(n,t);if(!s.elements.length)throw new Error((0,Ft.__)("No elements were returned from OpenAI API."));(0,ir.gU)(s.elements),await this.fetchAndUpdateImages(s.unsplash_keywords)}async streamRewrite(e,t){await(0,ND.ho)(e,"json",this.temperature);const n=(0,ND.m3)();let s="";return new Promise(((e,i)=>{n.onmessage=async o=>{if("[DONE]"===o.data){n.close();try{const n=(0,LD.K)(s),i=(0,ir.wi)(n,t);(0,ir.gU)(i.elements),console.log("%cOutput","color: green;"),console.log(n),e(s)}catch(a){i(a)}}else{if(s+=(0,ND.y8)(o.data),s=(0,ND.J4)(s),!s)return;try{const e=(0,ND.n7)(s),n=(0,LD.K)(e),i=(0,ir.wi)(n,t);(0,ir.gU)(i.elements)}catch(a){console.debug(s),console.debug(a)}}},n.onerror=e=>{n.close(),i(e.data)}}))}async rewrite(){if(this.rewriteInProgress)return;if(!this.element)return;const e=(0,ir.LX)(this.element),t=(0,FD.ee)(e),n=(0,FD.r1)(t,this.prompt,this.settings.prompt);if(this.rewriteInProgress=!0,(0,ir.JA)(this.element,this.prompt),console.log("%cInput","color: #2196F3;"),console.log({fields:e,prompt:n}),!e.length)return this.log((0,Ft.__)("This element is empty, please add some content first.")),void(this.rewriteInProgress=!1);try{this.settings.isStreamingEnabled?await this.streamRewrite(n,e):await this.syncRewrite(n,e)}catch(s){await this.retry(s)}this.rewriteInProgress=!1}async retry(e){this.rewriteInProgress=!1,this.retriesI",value:"normal"},{label:"Italic",value:"italic",icon:"ItalicIcon",hideLabel:!0}],width:4,positionLabel:"bottom"}]},{slug:"text_transform",name:"Transform",type:"button-bar",items:[{label:"None",value:"none",icon:"XmarkIcon",hideLabel:!0},{label:"AA",value:"uppercase"},{label:"Aa",value:"capitalize"},{label:"aa",value:"lowercase"}],width:7,positionLabel:"bottom"},{slug:"letter_spacing",name:"Letter Spacing",type:"unit",width:5,positionLabel:"bottom"},{slug:"text_indent",name:"Text Indent",type:"unit",width:6,positionLabel:"bottom"},{slug:"direction",name:"Direction",type:"button-bar",items:["ltr","rtl"],width:6,positionLabel:"bottom"},{slug:"overflow_wrap",name:"Overflow Wrap",width:6,positionLabel:"bottom",type:"select",items:["normal","break-word"]},{slug:"text_wrap",name:"Text Wrap",width:6,positionLabel:"bottom",type:"select",items:[{label:"auto",value:"wrap"},{label:"nowrap",value:"nowrap"},{label:"balance",value:"balance"},{label:"pretty",value:"pretty"}]},{slug:"text_overflow",name:"Text Overflow",type:"button-bar",positionLabel:"bottom",width:4,items:[{value:"clip",label:"Clip",icon:"XmarkIcon",hideLabel:!0},{value:"ellipsis",label:"Ellipsis",icon:"EllipsisIcon",hideLabel:!0}]},{slug:"list_style",name:"List Style",type:"button-bar",positionLabel:"bottom",width:8,items:[{value:"none",label:"None",icon:"XmarkIcon",hideLabel:!0},{value:"disc",label:"Circles",icon:"ListIcon",hideLabel:!0},{value:"numbers",label:"Numbers",icon:"OlListIcon",hideLabel:!0},{value:"lower-alpha",label:"Letters",icon:"LetterAIcon",hideLabel:!0},{value:"lower-roman",label:"Roman numerals",icon:"LetterIIcon",hideLabel:!0}]},{slug:"stroke",name:"Stroke",type:"group",controls:[{slug:"stroke_width",name:"Width",type:"unit",width:5,positionLabel:"bottom"},{slug:"stroke_color",name:"Color",type:"color",width:7,positionLabel:"bottom"}]},{slug:"text_shadow",name:"Text Shadow",type:"repeater",itemColorPath:"color",titleTemplate:e=>{const{x:t,y:n,blur:s}=e;return`Text Shadow: ${t?.style} ${n?.style} ${s?.style}`},defaultNewValue:{x:{number:0,unit:"px",style:"0px"},y:{number:1,unit:"px",style:"1px"},blur:{number:1,unit:"px",style:"1px"},color:"#000000"},controls:[{slug:"x",name:"X",type:"unit",min:-20,max:20,step:1},{slug:"y",name:"Y",type:"unit",min:-20,max:20,step:1},{slug:"blur",name:"Blur",type:"unit",min:0,max:20,step:1},{slug:"color",name:"Color",type:"color"}]}]},{slug:"background",name:"Background",type:"accordion",controls:[{slug:"background_color",name:"Color",type:"color"},{slug:"backgrounds",name:"Image & Gradient",type:"repeater",defaultNewValue:{type:"image"},itemIcon:"ImageAndVideIcon",titleTemplate:e=>"gradient"===e?.type?"Gradient":"image"===e?.type?"Image":"color_overlay"===e?.type?e.color||"Color Overlay":"video"===e?.type?"Video":"",defaultTitle:"Background",controls:[{slug:"type",name:"Type",type:"button-bar",hideLabel:!0,items:[{label:"Image",value:"image",icon:"ImageIcon",hideLabel:!0},{label:"Gradient",value:"gradient",iconHtml:'',hideLabel:!0},{label:"Color Overlay",value:"color_overlay",icon:"SquareSolidIcon",hideLabel:!0}]},{slug:"image",name:"Image",type:"media",hideLabel:!0,conditions:["background.backgrounds[].type","==","image"]},{slug:"image_size",name:"Size",type:"media-size",conditions:["background.backgrounds[].type","==","image"]},{slug:"background_size",name:"Size",type:"button-bar",items:[{label:"Cover",value:"cover"},{label:"Contain",value:"contain"},{label:"Custom",value:"custom"}],conditions:["background.backgrounds[].type","==","image"]},{slug:"background_size_custom",name:"",type:"group",controls:[{slug:"width",name:"Width",type:"unit",width:6,positionLabel:"bottom"},{slug:"height",name:"Height",type:"unit",width:6,positionLabel:"bottom"}],conditions:[["background.backgrounds[].type","==","image"],["background.backgrounds[].background_size","==","custom"]]},{slug:"background_position",name:"Position",type:"focus-point",conditions:["background.backgrounds[].type","==","image"]},{slug:"background_repeat",name:"Repeat",type:"button-bar",items:[{label:"No Repeat",value:"no-repeat",icon:"XmarkIcon",hideLabel:!0},{label:"Repeat",value:"repeat",icon:"GridIcon",hideLabel:!0},{label:"Repeat X",value:"repeat-x",icon:"EllipsisIcon",hideLabel:!0},{label:"Repeat Y",value:"repeat-y",icon:"EllipsisVerticalIcon",hideLabel:!0}],conditions:["background.backgrounds[].type","==","image"]},{slug:"background_attachment",name:"Attach",type:"button-bar",items:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"}],conditions:["background.backgrounds[].type","==","image"]},{slug:"background_blend_mode",name:"Blend",type:"select",items:[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],conditions:["background.backgrounds[].type","==","image"]},{slug:"color",name:"Color",type:"color",hideLabel:!0,inline:!0,positionLabel:"bottom",conditions:["background.backgrounds[].type","==","color_overlay"]},{slug:"gradient",name:"Gradient",type:"color",hideLabel:!0,inline:!0,positionLabel:"bottom",colorType:"gradientOnly",conditions:["background.backgrounds[].type","==","gradient"]}]}]},{slug:"borders",name:"Borders",type:"accordion",controls:[{slug:"border_radius",name:"Radius",type:"border-radius"},{slug:"borders",name:"Borders",type:"border",positionLabel:"top"}]},{slug:"effects",name:"Effects",type:"accordion",hideAfter:12,controls:[{slug:"opacity",name:"Opacity",type:"number",min:0,max:100,step:1},{slug:"cursor",name:"Cursor",type:"select",items:["auto","default","pointer","wait","text","move","not-allowed","help","crosshair","grab","grabbing"]},{slug:"blend_mode",name:"Blend",type:"select",items:[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}]},{slug:"outline_style",name:"Outline",type:"button-bar",items:[{label:"None",value:"none"},{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"}]},{slug:"outline_width",name:"Width",type:"unit",width:6,conditions:["effects.outline_style","not in",["none",void 0]]},{slug:"outline_offset",name:"Offset",type:"unit",width:6,conditions:["effects.outline_style","not in",["none",void 0]]},{slug:"outline_color",name:"Color",type:"color",conditions:["effects.outline_style","not in",["none",void 0]]},{slug:"transition",name:"Transition",type:"repeater",titleTemplate:e=>{const t=e?.property||"all",n=t.charAt(0).toUpperCase()+t.slice(1);return`${n}: ${e?.duration?.style||"0ms"}`},itemIcon:"TimerIcon",defaultNewValue:{property:"opacity",duration:{number:"200",unit:"ms",style:"200ms"},easing:"ease"},controls:[{slug:"property",name:"Property",type:"select",items:["all","none","color","background","transform","width","height","opacity","border","box-shadow","outline"]},{slug:"duration",name:"Duration",type:"unit",min:0,step:25,max:1e3,types:["ms","s","custom"],defaultType:"ms"},{slug:"easing",name:"Easing",type:"select",items:["ease","linear","ease-in","ease-out","ease-in-out"]},{slug:"delay",name:"Delay",type:"unit",min:0,step:25,max:1e3,types:["ms","s","custom"],defaultType:"ms"}]},{slug:"box_shadow",name:"Box Shadow",type:"repeater",itemColorPath:"color",titleTemplate:e=>{const{x:t,y:n,blur:s,spread:i}=e,o="inset"===e.position?"Inner":"Outer";return`${o}: ${t?.style} ${n?.style} ${s?.style} ${i?.style}`},defaultNewValue:{x:{number:0,unit:"px",style:"0px"},y:{number:2,unit:"px",style:"2px"},blur:{number:5,unit:"px",style:"5px"},spread:{number:0,unit:"px",style:"0px"},color:"#00000030",position:"outset"},controls:[{slug:"position",name:"Position",type:"button-bar",items:[{label:"Outset",value:"outset"},{label:"Inset",value:"inset"}]},{slug:"color",name:"Color",type:"color"},{slug:"x",name:"X",type:"unit"},{slug:"y",name:"Y",type:"unit"},{slug:"blur",name:"Blur",type:"unit"},{slug:"spread",name:"Spread",type:"unit"}]},{slug:"filter",name:"Filter",type:"repeater",itemIcon:"WandMagicSparkles",defaultNewValue:{type:"blur",value:{number:100,unit:"%",style:"100%"},blur_value:{number:5,unit:"px",style:"5px"},hue_value:{number:180,unit:"deg",style:"180deg"},x:{number:0,unit:"px",style:"0px"},y:{number:2,unit:"px",style:"2px"},blur:{number:5,unit:"px",style:"5px"}},titleTemplate:e=>{if("drop-shadow"===e.type)return`Drop shadow: ${e.x?.style} ${e.y?.style} ${e.blur?.style}`;const t=e.type?e.type?.charAt(0).toUpperCase()+e.type?.slice(1).replace("-"," "):"Filter";return"blur"===e.type?`${t}: ${e.blur_value?.style}`:"hue-rotate"===e.type?`${t}: ${e.hue_value?.style}`:`${t}: ${e.value?.style}`},controls:[{slug:"type",name:"Type",type:"select",items:[{label:"Blur",value:"blur"},{label:"Brightness",value:"brightness"},{label:"Contrast",value:"contrast"},{label:"Grayscale",value:"grayscale"},{label:"Hue Rotate",value:"hue-rotate"},{label:"Invert",value:"invert"},{label:"Opacity",value:"opacity"},{label:"Saturate",value:"saturate"},{label:"Sepia",value:"sepia"}]},{slug:"blur_value",name:"Value",type:"unit",conditions:["effects.filter[].type","==","blur"]},{slug:"hue_value",name:"Value",type:"unit",defaultType:"deg",types:["deg"],min:0,max:360,step:45,conditions:["effects.filter[].type","==","hue-rotate"]},{slug:"value",name:"Value",type:"unit",min:0,max:100,step:1,defaultType:"%",types:["%"],conditions:["effects.filter[].type","in",["brightness","contrast","grayscale","invert","opacity","saturate","sepia"]]},{slug:"x",name:"X",type:"unit",conditions:["effects.filter[].type","==","drop-shadow"]},{slug:"blur",name:"Blur",type:"unit",conditions:["effects.filter[].type","==","drop-shadow"]}]},{slug:"backdrop_filter",name:"Backdrop Filter",type:"repeater",itemIcon:"WandMagicSparkles",defaultNewValue:{type:"blur",value:{number:100,unit:"%",style:"100%"},blur_value:{number:5,unit:"px",style:"5px"},hue_value:{number:180,unit:"deg",style:"180deg"},x:{number:0,unit:"px",style:"0px"},y:{number:2,unit:"px",style:"2px"},blur:{number:5,unit:"px",style:"5px"}},titleTemplate:e=>{if("drop-shadow"===e.type)return`Drop shadow: ${e.x?.style} ${e.y?.style} ${e.blur?.style}`;const t=e.type?e.type?.charAt(0).toUpperCase()+e.type?.slice(1).replace("-"," "):"Filter";return"blur"===e.type?`${t}: ${e.blur_value?.style}`:"hue-rotate"===e.type?`${t}: ${e.hue_value?.style}`:`${t}: ${e.value?.style}`},controls:[{slug:"type",name:"Type",type:"select",items:[{label:"Blur",value:"blur"},{label:"Brightness",value:"brightness"},{label:"Contrast",value:"contrast"},{label:"Grayscale",value:"grayscale"},{label:"Hue Rotate",value:"hue-rotate"},{label:"Invert",value:"invert"},{label:"Opacity",value:"opacity"},{label:"Saturate",value:"saturate"},{label:"Sepia",value:"sepia"}]},{slug:"blur_value",name:"Value",type:"unit",conditions:["effects.backdrop_filter[].type","==","blur"]},{slug:"hue_value",name:"Value",type:"unit",defaultType:"deg",types:["deg"],min:0,max:360,step:45,conditions:["effects.backdrop_filter[].type","==","hue-rotate"]},{slug:"value",name:"Value",type:"unit",min:0,max:100,step:1,defaultType:"%",types:["%"],conditions:["effects.backdrop_filter[].type","in",["brightness","contrast","grayscale","invert","opacity","saturate","sepia"]]},{slug:"x",name:"X",type:"unit",conditions:["effects.backdrop_filter[].type","==","drop-shadow"]},{slug:"blur",name:"Blur",type:"unit",conditions:["effects.backdrop_filter[].type","==","drop-shadow"]}]},{slug:"transform",name:"Transform",type:"repeater",itemIcon:"LeftAndRightArrowsIcon",defaultNewValue:{type:"translate",translate_x:{number:0,unit:"px",style:"0px"},translate_y:{number:0,unit:"px",style:"0px"},translate_z:{number:0,unit:"px",style:"0px"},scale_x:1,scale_y:1,scale_z:1,rotate_x:{number:0,unit:"deg",style:"0deg"},rotate_y:{number:0,unit:"deg",style:"0deg"},rotate_z:{number:0,unit:"deg",style:"0deg"},skew_x:{number:0,unit:"deg",style:"0deg"},skew_y:{number:0,unit:"deg",style:"0deg"}},titleTemplate:e=>"translate"===e.type?`Translate: ${e.translate_x?.style}, ${e.translate_y?.style}, ${e.translate_z?.style}`:"scale"===e.type?`Scale: ${e.scale_x}, ${e.scale_y}, ${e.scale_z}`:"rotate"===e.type?`Rotate: ${e.rotate_x?.style}, ${e.rotate_y?.style}, ${e.rotate_z?.style}`:"skew"===e.type?`Skew: ${e.skew_x?.style}, ${e.skew_y?.style}`:"Transform",controls:[{slug:"type",name:"Type",type:"button-bar",hideLabel:!0,items:[{label:"Translate",value:"translate"},{label:"Scale",value:"scale"},{label:"Rotate",value:"rotate"},{label:"Skew",value:"skew"}]},{slug:"translate_x",name:"X",type:"unit",conditions:["effects.transform[].type","==","translate"]},{slug:"translate_y",name:"Y",type:"unit",conditions:["effects.transform[].type","==","translate"]},{slug:"translate_z",name:"Z",type:"unit",conditions:["effects.transform[].type","==","translate"]},{slug:"scale_x",name:"X",type:"number",min:0,step:.1,max:2,conditions:["effects.transform[].type","==","scale"]},{slug:"scale_y",name:"Y",type:"number",min:0,step:.1,max:2,conditions:["effects.transform[].type","==","scale"]},{slug:"scale_z",name:"Z",type:"number",min:0,step:.1,max:2,conditions:["effects.transform[].type","==","scale"]},{slug:"rotate_x",name:"X",type:"unit",defaultType:"deg",types:["deg"],conditions:["effects.transform[].type","==","rotate"]},{slug:"rotate_y",name:"Y",type:"unit",defaultType:"deg",types:["deg"],conditions:["effects.transform[].type","==","rotate"]},{slug:"rotate_z",name:"Z",type:"unit",defaultType:"deg",types:["deg"],conditions:["effects.transform[].type","==","rotate"]},{slug:"skew_x",name:"X",type:"unit",defaultType:"deg",types:["deg"],conditions:["effects.transform[].type","==","skew"]},{slug:"skew_y",name:"Y",type:"unit",defaultType:"deg",types:["deg"],conditions:["effects.transform[].type","==","skew"]}]},{slug:"transform_origin",name:"Origin",type:"focus-point"},{slug:"pointer_events",name:"Events",type:"button-bar",items:[{value:"auto",label:"Auto"},{value:"none",label:"None"}]},{slug:"backface_visibility",name:"Backface",type:"button-bar",items:[{value:"visible",label:"Visible"},{value:"hidden",label:"Hidden"}]}]},{slug:"flex_child",name:"Flex Child",type:"accordion",conditions:(0,tl.Pv)(["flex","inline-flex"]),controls:[{slug:"flex_grow",name:"Grow",type:"number",width:4,positionLabel:"bottom"},{slug:"flex_shrink",name:"Shrink",type:"number",width:4,positionLabel:"bottom"},{slug:"flex_basis",name:"Basis",type:"unit",width:4,positionLabel:"bottom"},{slug:"align_self",name:"Align",type:"button-bar",items:[{value:"auto",label:"Auto"},{value:"start",label:"Start",icon:"FlexAlignLeftIcon",hideLabel:!0},{value:"center",label:"Center",icon:"FlexAlignCenterHorizontalIcon",hideLabel:!0},{value:"end",label:"End",icon:"FlexAlignRightIcon",hideLabel:!0},{value:"stretch",label:"Stretch",icon:"FlexAlignStretch",hideLabel:!0}]},{slug:"order",name:"Order",type:"button-bar",items:[{label:"None",value:"none",icon:"XmarkIcon",hideLabel:!0},{value:-1,label:"First"},{value:99,label:"Last"},{value:"custom",label:"Custom"}]},{slug:"order_custom",name:"Order",type:"number",width:6,conditions:["flex_child.order","==","custom"]}]},{slug:"grid_child",name:"Grid Child",type:"accordion",conditions:(0,tl.Pv)(["grid","inline-grid"]),controls:[{slug:"row_start",name:"Row Start",type:"text",width:3,positionLabel:"bottom",disabledConditions:["grid_child.area","not in",[void 0,null]]},{slug:"column_start",name:"Col. Start",type:"text",width:3,positionLabel:"bottom",disabledConditions:["grid_child.area","not in",[void 0,null]]},{slug:"row_end",name:"Row End",type:"text",width:3,positionLabel:"bottom",disabledConditions:["grid_child.area","not in",[void 0,null]]},{slug:"column_end",name:"Col. End",type:"text",width:3,positionLabel:"bottom",disabledConditions:["grid_child.area","not in",[void 0,null]]},{slug:"area",name:"Area",type:"text"},{slug:"align_self",name:"Align",type:"button-bar",items:[{value:"auto",label:"Auto",icon:"XmarkIcon",hideLabel:!0},{value:"start",label:"Start",icon:"FlexAlignTopIcon",hideLabel:!0},{value:"center",label:"Center",icon:"FlexAlignCenterVerticalIcon",hideLabel:!0},{value:"end",label:"End",icon:"FlexAlignBottomIcon",hideLabel:!0},{value:"stretch",label:"Stretch",icon:"FlexAlignStretchHorizontal",hideLabel:!0}]},{slug:"justify_self",name:"Justify",type:"button-bar",items:[{value:"auto",label:"Auto",icon:"XmarkIcon",hideLabel:!0},{value:"start",label:"Start",icon:"FlexAlignLeftIcon",hideLabel:!0},{value:"center",label:"Center",icon:"FlexAlignCenterHorizontalIcon",hideLabel:!0},{value:"end",label:"End",icon:"FlexAlignRightIcon",hideLabel:!0},{value:"stretch",label:"Stretch",icon:"FlexAlignStretch",hideLabel:!0}]},{slug:"order",name:"Order",type:"button-bar",items:[{label:"None",value:"none",icon:"XmarkIcon",hideLabel:!0},{value:-1,label:"First"},{value:99,label:"Last"},{value:"custom",label:"Custom"}]},{slug:"order_custom",name:"Order",type:"number",width:6,conditions:["grid_child.order","==","custom"]}]},{slug:"custom_css",name:"Custom CSS",type:"accordion",controls:[{slug:"custom_css",name:"Custom CSS",type:"code",language:"css",hideLabel:!0,placeholder:":selector {\n \n}",autofillOnEmpty:":selector {\n PLACECURSORHERE\n}"}]}];var WA=n(37156);let UA=class extends l.w3{constructor(){super(...arguments),this.controls=$A,this.editAnyway=!1,this.context=this.reactiveContext(),this.transactionKey=null}reactiveContext(){return{getInheritanceMap:()=>this.inheritanceMap,getControlInheritance:e=>this.inheritanceMap?.[e],getControlInheritanceByPrefix:e=>(0,WA.e6)(this.inheritanceMap,`${e}.`),getParentControlInheritance(e){const t=this.getParentPath(e);return(0,WA.e6)(this.getInheritanceMap(),`${t}.`)},getControlValue:e=>{const t={};for(const n of c.configStore.breakpoints){const s=j()(this.properties,`${n.id}.${e}`);void 0!==s&&(t[n.id]=s)}return t},getControlValueAt:(e,t)=>{const n=e?`${t}.${e}`:t;return j()(this.properties,n)},getParentPath(e){return e.split(".").slice(0,-1).join(".")},setControlValue:(e,t,n)=>{const s=(0,wd.Z)(this.properties),i=Object.keys(t);for(const o of i)Sd()(s,`${o}.${e}`,t[o]);this.transactionKey=n,this.properties=s},setControlValueAt:(e,t,n,s)=>{const i=(0,wd.Z)(this.properties);Sd()(i,`${t}.${e}`,n),this.transactionKey=s,this.properties=i},getParentControlValueAt(e,t){const n=this.getParentPath(e);return this.getControlValueAt(n,t)},getParentControlValue(e){const t=this.getParentPath(e);return this.getControlValue(t)}}}get breakpoints(){return c.configStore.breakpoints}get breakpointId(){return c.uiStore.currentBreakpoint.id}get selectorNameBold(){return`${this.selector?.name}`}get properties(){const e=this.nestedSelector||this.selector;return e&&e.properties?e.properties:{}}set properties(e){if(!this.selector&&this.element)return void(0,tl.bO)(this.element,e);if(!this.selector)return void console.log("No selector, this should not happen");const t=null===this.transactionKey?void 0:this.transactionKey;(0,tl.Cg)({selectorId:this.selector.id,nestedSelectorId:this.nestedSelector?.id,properties:e,transactionKey:t})}get propertiesAtCurrentBreakpoint(){return this.properties[this.breakpointId]}set propertiesAtCurrentBreakpoint(e){const t=0===Object.keys(e).length,n=t?null:e,s=(0,wd.Z)(this.properties)||{};s[this.breakpointId]=n,this.properties=s}get element(){return c.uiStore.activeElement?c.uiStore.activeElement:null}get inheritanceMap(){const e=this.nestedSelector?.id||this.selector?.id;if(!e)return;let t;return t=this.nestedSelector?[this.nestedSelector.id]:"elementproperties"!==this.panelContext?.state?[e]:this.element?.data?.properties?.meta?.classes||[],(0,WA.Gb)(t,e,this.breakpointId)}};(0,r.gn)([(0,l.DF)("oxyContext")],UA.prototype,"context",void 0),(0,r.gn)([(0,l.tB)({from:"panelContext",default:void 0})],UA.prototype,"panelContext",void 0),(0,r.gn)([(0,l.fI)()],UA.prototype,"selector",void 0),(0,r.gn)([(0,l.fI)()],UA.prototype,"nestedSelector",void 0),UA=(0,r.gn)([(0,l.wA)({components:{NiceButton:Br.Z,OxygenControls:FA.Z,OxygenControl:XS["default"]}})],UA);const zA=UA,HA=zA;var GA=(0,N.Z)(HA,LA,NA,!1,null,null,null);const KA=GA.exports;var jA=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("OxygenCopyPastContextMenu",{attrs:{name:"Selectors",path:"selectors",value:e.elementClasses},on:{input:e.updateClasses},scopedSlots:e._u([{key:"default",fn:function({openContextMenu:n}){return[t("div",{ref:"container",staticClass:"oxy-class-selector",on:{contextmenu:n}},[t(ck.Z,{attrs:{text:"Tooltip",top:"",disabled:!e.errorMessage,value:!!e.errorMessage},scopedSlots:e._u([{key:"activator",fn:function({attrs:n}){return[t(zm.Z,e._b({ref:"input",staticClass:"oxy-class-selector-widget",attrs:{multiple:"",value:e.elementClasses,items:e.availableClasses,"search-input":e.newClassName,"item-text":"name","item-value":"id","return-object":!1,"persistent-placeholder":"","hide-details":"","hide-selected":"",dense:"",placeholder:e.__("Select or create a class")},on:{input:e.updateClasses,"update:searchInput":function(t){e.newClassName=t},"update:search-input":function(t){e.newClassName=t},blur:e.onBlur},scopedSlots:e._u([{key:"append",fn:function(){return[t("Icon",{attrs:{icon:"ChevronDownIcon",size:12}})]},proxy:!0},{key:"no-data",fn:function(){return[e.newClassName?t(Tc.Z,{attrs:{dense:""},on:{click:function(t){return e.createFromNameAndSelect()}}},[t(Dc.V9,[t("div",{staticClass:"oxy-class-selector-new-class"},[e._v(" "+e._s(e.__("Create"))+" "),t("oxy-class-token",{attrs:{editable:!1,active:!0,demo:!0,name:e.newClassName}})],1)])],1):e._e()]},proxy:!0},{key:"prepend-item",fn:function(){return[e.showSuggestClassName?t(Tc.Z,{attrs:{dense:""},on:{click:e.addSuggestedClass}},[t(Dc.V9,[t("div",{staticClass:"oxy-class-selector-new-class"},[e._v(" "+e._s(e.__("Create"))+" "),t("oxy-class-token",{attrs:{editable:!1,active:!0,demo:!0,name:e.suggestClassName}})],1)])],1):e._e()]},proxy:!0},{key:"prepend",fn:function(){return[e.elementClasses.length?e._e():t("oxy-class-breakpoint-icon",{key:"breakpoint-empty"})]},proxy:!0},{key:"selection",fn:function({item:n,index:s}){return[0===s?t("oxy-class-breakpoint-icon",{key:"breakpoint-empty"}):e._e(),t("div",{staticClass:"oxy-token-drag-indicator",class:{"oxy-token-drag-indicator--active":n===e.draggedOverId,[`oxy-token-drag-indicator--${e.dropPosition}`]:n===e.draggedOverId&&e.dropPosition},attrs:{draggable:"true"},on:{dragstart:function(t){return e.dragStart(t,n)},drag:e.dragMove,dragend:e.dragEnd,mousedown:function(e){e.stopPropagation()}}},[t("oxy-class-token",{attrs:{id:n,active:n===e.activeSelector?.id,"nested-selector":e.getNestedSelectorForActiveSelector(n)},on:{select:e.activateSelector,"clear-select":e.clearSelector,"select-nested":e.selectNestedSelector,"clear-nested":e.clearNestedSelector,"close-menu":e.closeMenu}})],1)]}}],null,!0)},"v-combobox",n,!1))]}}],null,!0)},[t("span",{domProps:{innerHTML:e._s(e.errorMessage)}})])],1)]}}])})},qA=[],XA=n(68697),YA=n(24603),QA=n(87459),JA=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-class-selector-breakpoint"},[t("Icon",{attrs:{icon:e.breakpointIcon,rotate:e.breakpointIconRotation,size:12}})],1)},eZ=[];let tZ=class extends l.w3{get currentBreakpointId(){return c.uiStore.currentBreakpoint.id}get breakpointIcon(){return Pe.b8[this.currentBreakpointId]?.icon||Pe.nR}get breakpointIconRotation(){return Pe.b8[this.currentBreakpointId]?.rotate}};tZ=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],tZ);const nZ=tZ,sZ=nZ;var iZ=(0,N.Z)(sZ,JA,eZ,!1,null,null,null);const oZ=iZ.exports;let aZ=class extends l.w3{constructor(){super(...arguments),this.newClassName=null,this.errorMessage=null,this.draggableItems=[],this.draggingId=null,this.draggedOverId=null,this.dropPosition=null,this.draggingFromIndex=null,this.dropIndex=null,this.containerRect=null}onNewClassNameChange(){this.newClassName&&(this.errorMessage=null)}onElementIdChange(){this.activeSelector&&(c.uiStore.setCurrentElementTab("classes"),c.uiStore.setCurrentElementOxyNestedSelector(void 0))}onTabChange(){if("classes"!==this.tab)return;if(this.activeSelector)return;const e=this.elementClasses.find((e=>{const t=this.availableClasses.find((t=>t.id==e));return t&&!t.locked}));e&&this.activateSelector(e)}get element(){return c.uiStore.activeElement}get elementId(){return c.uiStore.activeElementId}get availableClasses(){return c.globalStore.oxySelectors.filter((e=>"class"===e.type))}get activeSelector(){return c.uiStore.activeOxySelector}get activeNestedSelector(){return c.uiStore.activeOxyNestedSelector}get elementClasses(){return this.element&&this.element?.data?.properties?.meta?.classes||[]}get showSuggestClassName(){const e=this.elementClasses.map((e=>this.availableClasses.find((t=>t.id==e)))).map((e=>e?.name)).filter((e=>e)),t=e.some((e=>e?.match(new RegExp(`^${this.elementSlug}-\\d+$`))));return!this.newClassName&&!t}get elementSlug(){return this.element?(0,tl.nW)(this.element):""}get suggestClassName(){return this.element?(0,tl.Bc)(this.element):""}addSuggestedClass(){this.updateClasses([...this.elementClasses,this.suggestClassName])}createClassIfNeeded(e){const t=this.availableClasses.find((t=>t.name==e));if(t)return t;const n=(0,tl.C2)(e);return(0,tl.PJ)(n),n}createFromNameAndSelect(){if(!this.newClassName)return;const e=this.createClassIfNeeded(this.newClassName);this.activateSelector(e.id)}updateClasses(e){if(!this.elementId)return;if(!e)return void(0,tl.E4)(this.elementId,[]);this.errorMessage=null;const t=e.find((e=>!(0,XA.Z)(e))),n=e.filter((e=>(0,XA.Z)(e)));if(t){if(!t||!String(t).trim())return(0,tl.E4)(this.elementId,n);const e=this.createClassIfNeeded(t).id;this.elementClasses.includes(e)||n.push(e)}(0,tl.E4)(this.elementId,n),this.activateSelector(n[n.length-1])}activateSelector(e){this.elementId&&(c.uiStore.setCurrentElementOxySelector(e),c.uiStore.setCurrentElementTab("classes"),this.closeMenu())}clearSelector(){c.uiStore.setCurrentElementOxySelector(void 0),c.uiStore.setCurrentElementTab(void 0)}selectNestedSelector(e){c.uiStore.setCurrentElementOxyNestedSelector(e)}clearNestedSelector(){c.uiStore.setCurrentElementOxyNestedSelector(void 0)}closeMenu(){this.$refs.input&&(this.$refs.input.isMenuActive=!1,this.$refs.input.blur())}onBlur(e){const t=e.relatedTarget;t?.classList.contains("v-list-item")||(this.newClassName="")}getNestedSelectorForActiveSelector(e){return e===this.activeSelector?.id?this.activeNestedSelector:void 0}dragStart(e,t){this.draggingId=t,e.dataTransfer.dropEffect="move",this.activateSelector(t),document.addEventListener("dragover",this.dragOver,!1);const n=this.$refs.container,s=n.querySelectorAll(".oxy-class-token");this.containerRect=n.getBoundingClientRect(),this.draggableItems=Array.from(s).map((e=>({node:e,rect:e.getBoundingClientRect()})))}dragOver(e){e.preventDefault(),e.dataTransfer.dropEffect="move"}dragMove(e){if(!e.clientX&&!e.clientY)return;const t=this.findClosestItem(e.clientX,e.clientY);if(this.draggedOverId=t.node?.dataset.id||null,this.dropPosition=t.position||null,this.draggedOverId&&this.draggingId){const e=this.elementClasses.indexOf(this.draggedOverId);this.dropIndex="before"==this.dropPosition?e:Math.min(e+1,this.elementClasses.length),this.draggingFromIndex=this.elementClasses.indexOf(this.draggingId),this.dropIndex!==this.draggingFromIndex&&this.dropIndex!==this.draggingFromIndex+1&&this.draggedOverId!==this.draggingId||(this.draggedOverId=null,this.dropPosition=null)}}dragEnd(){null!==this.draggedOverId&&null!==this.draggingFromIndex&&null!==this.dropIndex&&(this.moveItem(this.draggingFromIndex,this.dropIndex),this.clearDragStyles(),document.removeEventListener("dragover",this.dragOver,!1))}clearDragStyles(){this.draggedOverId=null,this.dropPosition=null,this.draggingId=null,this.draggingFromIndex=null,this.dropIndex=null}moveItem(e,t){if(!this.elementId)return;const n=this.elementClasses;if(e===t||e<0||t<0||e>n.length||t>n.length)return;const[s]=n.splice(e,1);t>e&&t--,n.splice(t,0,s),(0,tl.E4)(this.elementId,n)}findClosestItem(e,t){let n={node:null,rect:null},s=1/0,i="";this.draggableItems.forEach((o=>{const a=o.rect.left+o.rect.width/2,r=o.rect.top+o.rect.height/2,l=Math.sqrt(Math.pow(e-a,2)+Math.pow(t-r,2));l100&&(i="before",n=this.draggableItems[0]),{position:i,...n}}};(0,r.gn)([(0,l.fI)()],aZ.prototype,"tab",void 0),(0,r.gn)([(0,l.RL)("newClassName")],aZ.prototype,"onNewClassNameChange",null),(0,r.gn)([(0,l.RL)("elementId",{immediate:!0})],aZ.prototype,"onElementIdChange",null),(0,r.gn)([(0,l.RL)("tab",{immediate:!0})],aZ.prototype,"onTabChange",null),aZ=(0,r.gn)([(0,l.wA)({components:{OxyClassBreakpointIcon:oZ,OxygenCopyPastContextMenu:QA.Z,Icon:He.Z,NiceButton:Br.Z,OxyClassToken:YA.Z}})],aZ);const rZ=aZ,lZ=rZ;var cZ=(0,N.Z)(lZ,jA,qA,!1,null,null,null);const dZ=cZ.exports;var uZ=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-html-attributes"},[t("oxygen-control",{attrs:{control:e.control,value:e.value},on:{input:e.setValue}})],1)},pZ=[];let hZ=class extends l.w3{get control(){return{type:"repeater",name:(0,Ft.__)("HTML Attributes"),slug:"html_attributes",noDataMessage:(0,Ft.__)("None"),noDisable:!0,noDuplicate:!0,titleTemplate:e=>`${e?.name||""}="${e?.value||""}"`,defaultTitle:(0,Ft.__)("Attribute"),controls:[{slug:"name",name:(0,Ft.__)("Attribute"),type:"text",disableVariable:!0},{slug:"value",name:(0,Ft.__)("Value"),type:"text",disableVariable:!0}]}}get value(){return j()(c.uiStore.activeElement,"data.properties.settings.advanced.attributes")}setValue(e){c.uiStore.activeElementId&&c.documentStore.unthrottledPropertyChanged({elementId:c.uiStore.activeElementId,path:"settings.advanced.attributes",value:e,meta:{snapshotLabel:`Set html attributes for element #${c.uiStore.activeElementId}`}})}};hZ=(0,r.gn)([(0,l.wA)({components:{OxygenControl:XS["default"]}})],hZ);const gZ=hZ,mZ=gZ;var vZ=(0,N.Z)(mZ,uZ,pZ,!1,null,null,null);const yZ=vZ.exports;var fZ=n(58172);let _Z=class extends l.w3{constructor(){super(...arguments),this.editingElementControlsTreeContext=Tx.rq,this.settingsControlsAsTabs=[{name:(0,Ft.__)("Override Variables"),slug:"override_variables",icon:"DollarSolidIcon",hidden:this.isComponent},{name:(0,Ft.__)("Conditions"),slug:"conditions",icon:"ConditionsSolidIcon"},{name:(0,Ft.__)("Interactions"),slug:"interactions",icon:"ArrowPointerSolidIcon",hidden:this.isComponent},{name:(0,Ft.__)("Animations"),slug:"animations",icon:"PlaySolidIcon",hidden:this.isComponent}]}get activeTabSlug(){return this.elementId&&c.uiStore.activeElementProperties?.tab?c.uiStore.activeElementProperties.tab:this.controls.contentSections.length?"content":"classes"}get tabs(){const e=this.settingsControlsAsTabs;return[{name:(0,Ft.__)("Content"),slug:"content",icon:"PenSolidIcon",hidden:0===this.controls.contentSections.length},{name:(0,Ft.__)("Design"),slug:"design",icon:"PaletteSolidIcon",hidden:0===this.controls.designSections.length||this.isComponent},...e,{name:(0,Ft.__)("Settings"),slug:"settings",icon:"GearSolidIcon",hidden:0===this.controls.settingsSections.length||this.isComponent},{name:(0,Ft.__)("Classes"),slug:"classes",icon:"ClassesIcon",hidden:!0},{name:(0,Ft.__)("Attributes"),slug:"attributes",hidden:!0}]}get filteredTabs(){return this.tabs.filter((e=>!e?.hidden))}get activeTab(){return this.tabs.find((e=>e.slug===this.activeTabSlug))}get element(){return c.uiStore.activeElement}get elementId(){return c.uiStore.activeElementId}get activeSelector(){return c.uiStore.activeOxySelector}get activeNestedSelector(){return c.uiStore.activeOxyNestedSelector}get controls(){const e=this.element.data.type,t=c.configStore.element(e).controls;return(0,dx.Z)(t,c.configStore.permission)}get controlSections(){return"content"===this.activeTabSlug?this.controls.contentSections:"design"===this.activeTabSlug?this.controls.designSections:this.isTopLevelSettingsTab(this.activeTabSlug)?this.controls.settingsSections.filter((e=>e.slug===this.activeTabSlug)):"settings"===this.activeTabSlug?this.controls.settingsSections.filter((e=>!this.settingsControlsAsTabs.some((t=>t.slug===e.slug)))):[]}get path(){return"content"===this.activeTabSlug?"content":"design"===this.activeTabSlug?"design":this.isTopLevelSettingsTab(this.activeTabSlug)||"settings"===this.activeTabSlug?"settings":""}get isComponent(){return!!this.element&&this.element?.data?.type===Ge.COMPONENT_SLUG}isTopLevelSettingsTab(e){return this.settingsControlsAsTabs.some((t=>t.slug===e))}updateTab(e){c.uiStore.setCurrentElementOxySelector(void 0),c.uiStore.setCurrentElementTab(e)}getSettingsData(e){const t=this.isTopLevelSettingsTab(e),n=t?`settings.${e}`:e,s=this.editingElementControlsTreeContext.getControlValue(n);if("settings"===e){const e=(0,wd.Z)(s);return(0,fZ.Kn)(e)?(this.settingsControlsAsTabs.forEach((t=>delete e[t.slug])),e):e}return s}setSettingsData(e,t){if(!this.elementId)return;const n=this.isTopLevelSettingsTab(e),s=n?`settings.${e}`:e;"settings"!==e?c.documentStore.throttledPropertyChanged({elementId:this.elementId,path:s,value:t,meta:{snapshotLabel:(0,Ft.gB)((0,Ft.H$)("Paste %s","Oxygen Control","%s: Control slug/name"),e)}}):this.updateSettingsButIgnoreTopLevelTabs(t)}updateSettingsButIgnoreTopLevelTabs(e){if(!this.elementId)return;const t=(0,wd.Z)(this.editingElementControlsTreeContext.getControlValue("settings"))||{},n=(0,wd.Z)(e)||{};this.settingsControlsAsTabs.forEach((e=>{(0,fZ.Kn)(t)&&e.slug in t&&(n[e.slug]=t[e.slug])})),c.documentStore.throttledPropertyChanged({elementId:this.elementId,path:"settings",value:n,meta:{snapshotLabel:(0,Ft.__)("Paste settings")}})}tabHasData(e){return(0,XC.vr)(this.getSettingsData(e))}};(0,r.gn)([(0,l.DF)("context")],_Z.prototype,"editingElementControlsTreeContext",void 0),_Z=(0,r.gn)([(0,l.wA)({components:{PanelMask:xT,Icon:He.Z,ControlsTree:_C["default"],ClassDropdown:dZ,ClassProperties:KA,OxygenHtmlAttributes:yZ,OxygenCopyPastContextMenu:QA.Z}})],_Z);const bZ=_Z,SZ=bZ;var CZ=(0,N.Z)(SZ,MA,BA,!1,null,null,null);const xZ=CZ.exports;let wZ=class extends s.ZP{get elementIsActive(){return!!c.uiStore.activeElement}mounted(){this.elementIsActive||(0,Bu.TO)("elementproperties")}};wZ=(0,r.gn)([(0,l.wA)({components:{Titlebar:aC,TabsAndControls:Mx,BlankSidebarContent:hC,OxygenTabsAndControls:xZ}})],wZ);const IZ=wZ,PZ=IZ;var kZ=(0,N.Z)(PZ,ZA,OA,!1,null,null,null);const EZ=kZ.exports;var TZ=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[t("PanelHeader",{attrs:{"back-instead-of-close":!!e.selector},on:{close:e.close},scopedSlots:e._u([e.selectorName?null:{key:"right",fn:function(){return[t("IconButton",{attrs:{icon:"FolderPlusIcon",size:"14",small:"",tooltip:e.__("Add Collection")},on:{click:e.addCollection}}),t("IconButton",{attrs:{icon:"HistorySolidIcon",size:"13",small:"",active:"history"===e.viewMode,tooltip:e.__("History")},on:{click:e.toggleViewMode}}),t("ImportExportDropdownMenu",{attrs:{name:e.__("Selectors"),"settings-to-export":e.selectors,"validate-settings":e.validateImport,"import-settings":e.importSelectors,"can-merge":!0}})]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.selectorName??e.__("Selectors"))+" ")]),t("FreeModeAlertForSelectors",{staticClass:"ma-4"}),"controls"===e.viewMode?[e.selector||e.nestedSelector?t("ClassProperties",{attrs:{selector:e.selector,"nested-selector":e.nestedSelector}}):t("SelectorsList",{attrs:{selectors:e.selectors,searchable:!0},on:{select:e.select,"select-nested":e.selectNested}})]:"history"===e.viewMode?[t("SelectorsPanelHistoryViewMode")]:e._e()],2)},DZ=[],AZ=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[t("div",{staticClass:"vscroll-scroll oxy-selectors-list"},[e.searchString?t("div",e._l(e.filteredSelectors,(function(n){return t("SelectorsListItem",{key:n.id,attrs:{selector:n},on:{select:function(t){return e.$emit("select",t)},"select-nested":function(t){return e.$emit("select-nested",n.id,t)},"update-nested":e.handleNestedDrag}})})),1):t("CollectionsInput",{attrs:{collections:e.collections,"resource-name":"selectors",value:e.selectors},on:{"update-collections":e.setCollections,input:e.setSelectors},scopedSlots:e._u([{key:"actions",fn:function({collection:n}){return[t("IconButton",{attrs:{icon:e.isLocked(n)?"LockIcon":"UnlockIcon",size:"12",tooltip:e.isLocked(n)?e.__("Unlock all"):e.__("Lock all")},on:{click:function(t){return e.toggleCollectionLock(n)}}})]}},{key:"default",fn:function({collection:n}){return[t("draggable",e._b({attrs:{value:e.selectorsByCollection[n],group:"oxy-selectors"},on:{input:function(t){return e.handleDrag(t,n)}}},"draggable",e.dragOptions,!1),e._l(e.selectorsByCollection[n],(function(n){return t("SelectorsListItem",{key:n.id,attrs:{selector:n},on:{select:function(t){return e.$emit("select",t)},"select-nested":function(t){return e.$emit("select-nested",n.id,t)},"update-nested":e.handleNestedDrag}})})),1),t("AddSelector",{attrs:{collection:n}})]}}])})],1),e.searchable?t("div",{staticClass:"properties-panel-search-box-wrap properties-panel-search-box-wrap-selectors"},[t("TextInput",{attrs:{placeholder:e.__("Search selectors")},model:{value:e.searchString,callback:function(t){e.searchString=t},expression:"searchString"}}),t("Icon",{staticClass:"properties-panel-search-icon",attrs:{icon:"SearchIcon",size:"13"}})],1):e._e()])},ZZ=[],OZ=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-selectors-list-item"},[t("oxy-class-token",{attrs:{id:e.selector.id,name:e.name,removable:!1},on:{select:function(t){return e.$emit("select",t)},"select-nested":function(t){return e.$emit("select-nested",t)}}}),e.selector.children?.length?t("div",{staticClass:"oxy-selectors-list-nested"},[t("draggable",e._b({attrs:{value:e.selector.children},on:{input:function(t){return e.$emit("update-nested",e.selector.id,t)}}},"draggable",e.dragOptions,!1),e._l(e.selector.children,(function(n){return t("div",{key:n.id,staticClass:"oxy-selectors-list-nested-item"},[t("Icon",{attrs:{icon:"ArrowTurnDownRightIcon",size:"13"}}),t("oxy-class-token",{attrs:{id:e.selector.id,"nested-selector":n,name:n.name,creatable:!1,removable:!1,lockable:!1,"hide-nested-token":!0},on:{select:function(t){return e.$emit("select-nested",n.id)},"select-nested":function(t){return e.$emit("select-nested",t)}}})],1)})),0)],1):e._e()],1)},MZ=[];let BZ=class extends l.w3{constructor(){super(...arguments),this.dragOptions={animation:200,filter:".oxy-class-token-actions__button",ghostClass:"breakdance-repeater-item--ghost",forceFallback:!0}}get name(){return"class"===this.selector.type?`.${this.selector.name}`:this.selector.name}};(0,r.gn)([(0,l.fI)()],BZ.prototype,"selector",void 0),BZ=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,draggable:ev(),OxyClassToken:YA.Z}})],BZ);const LZ=BZ,NZ=LZ;var FZ=(0,N.Z)(NZ,OZ,MZ,!1,null,null,null);const RZ=FZ.exports;var VZ=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-add-selector"},[t("TextInput",{staticClass:"flex-grow-1",attrs:{placeholder:e.__(".your.css > #selector-69::after")},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addSelector.apply(null,arguments)}},model:{value:e.newSelectorName,callback:function(t){e.newSelectorName=t},expression:"newSelectorName"}}),t("NiceButton",{staticClass:"oxy-add-selector__button",attrs:{size:"small"},on:{click:e.addSelector}},[e._v(" "+e._s(e.__("Add"))+" ")])],1)},$Z=[];let WZ=class extends s.ZP{constructor(){super(...arguments),this.newSelectorName=""}get collections(){return Q.cr.oxySelectorsCollections}get isSingleClassName(){if(!this.newSelectorName)return!1;const e=/^\.[a-zA-Z0-9_/-]+$/;return e.test(this.newSelectorName)}addSelector(){if(!this.newSelectorName)return;const e=this.isSingleClassName&&this.newSelectorName.startsWith(".")?this.newSelectorName.substring(1):this.newSelectorName;if((0,tl.hP)(e))return void cd.Z.log.errorMessage((0,Ft.__)("This selector already exists."));const t=(0,tl.C2)(this.newSelectorName,null,this.isSingleClassName?"class":"custom",this.collection||tl.T8);(0,tl.PJ)(t),this.newSelectorName=""}};(0,r.gn)([(0,l.fI)()],WZ.prototype,"collection",void 0),WZ=(0,r.gn)([(0,l.wA)({components:{DropdownInput:Cd.Z,NiceButton:Br.Z,TextInput:na.Z}})],WZ);const UZ=WZ,zZ=UZ;var HZ=(0,N.Z)(zZ,VZ,$Z,!1,null,null,null);const GZ=HZ.exports;let KZ=class extends s.ZP{constructor(){super(...arguments),this.searchString="",this.dragOptions={animation:200,filter:".oxy-class-token-actions__button",ghostClass:"breakdance-repeater-item--ghost",forceFallback:!0},this.selectorsByCollection={}}onValueChange(){this.updateInternalValue(),this.checkMissingCollections()}checkMissingCollections(){const e=[...new Set(this.selectors.map((e=>e.collection)))],t=e.filter((e=>!this.collections.includes(e)));t.length&&Q.cr.setOxygenSelectorsCollections(e)}onColsChange(){this.updateInternalValue()}updateInternalValue(){this.collections.forEach((e=>{this.$set(this.selectorsByCollection,e,this.getCollectionSelectors(e))}))}get collections(){return Q.cr.oxySelectorsCollections}get filteredSelectors(){return this.selectors.filter((e=>{if(!this.searchString)return!0;const t=e.name.toLowerCase().includes(this.searchString.toLowerCase()),n=e.children?.some((e=>e.name.includes(this.searchString)));return t||n}))}handleDrag(e,t){this.selectorsByCollection[t]=e.map((e=>({...e,collection:t})));const n=[];this.collections.forEach((e=>{n.push(...this.selectorsByCollection[e])})),this.setSelectors(n)}handleNestedDrag(e,t){const n=(0,wd.Z)(this.selectors).map((n=>n.id===e?{...n,children:t}:n));this.setSelectors(n)}setSelectors(e){Ie.n.transaction((()=>{Q.cr.setOxygenSelectors((0,wd.Z)(e))}),"Update Selectors")}setCollections(e){Ie.n.transaction((()=>{Q.cr.setOxygenSelectorsCollections(e)}),"Update Selector Collections")}getCollectionSelectors(e){return this.selectors.filter((t=>t.collection===e))}isLocked(e){return this.selectors.filter((t=>t.collection===e)).every((e=>e.locked))}toggleCollectionLock(e){const t=(0,wd.Z)(this.selectors),n=t.filter((t=>t.collection===e)),s=n.some((e=>!e.locked)),i=t.map((t=>(t.collection===e&&(t.locked=s),t)));this.setSelectors(i)}};(0,r.gn)([(0,l.fI)()],KZ.prototype,"searchable",void 0),(0,r.gn)([(0,l.fI)()],KZ.prototype,"selectors",void 0),(0,r.gn)([(0,l.RL)("selectors",{immediate:!0,deep:!0})],KZ.prototype,"onValueChange",null),(0,r.gn)([(0,l.RL)("collections",{immediate:!0,deep:!0})],KZ.prototype,"onColsChange",null),KZ=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z,AddSelector:GZ,CollectionsInput:XE,Icon:He.Z,draggable:ev(),TextInput:na.Z,OxyClassToken:YA.Z,SelectorsListItem:RZ}})],KZ);const jZ=KZ,qZ=jZ;var XZ=(0,N.Z)(qZ,AZ,ZZ,!1,null,null,null);const YZ=XZ.exports;var QZ=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("RevisionsPanel",{attrs:{resources:e.selectors,"resource-key":e.resourceKey,"resource-has-unsaved-changes-present":e.hasUnsavedChangesPresent,"fetch-revisions-method":e.fetchRevisionsMethod,"update-method":"setOxygenSelectors","restore-method":"restoreOxySelectorsRevision"}})},JZ=[];async function eO(){return(0,su.zG)(await(0,ad.D)({action:"breakdance_retrieve_oxy_selectors_revisions",decoder:iu.IX(GI.tm)}),(0,ou.Vn)((()=>null)),ou.i$)}let tO=class extends l.w3{constructor(){super(...arguments),this.resourceKey="oxySelectors"}get selectors(){return c.globalStore.oxySelectors}get hasUnsavedChangesPresent(){return c.globalStore.oxySelectorsHasUnsavedChangesPresent}get fetchRevisionsMethod(){return eO}};tO=(0,r.gn)([(0,l.wA)({components:{RevisionsPanel:YP}})],tO);const nO=tO,sO=nO;var iO=(0,N.Z)(sO,QZ,JZ,!1,null,"07b9a160",null);const oO=iO.exports;function aO(e,t,n="name",s=!0,i=!0){const o=t.map((e=>e[n])),a=e.filter((e=>!o.includes(e[n]))),r=t.map((t=>{const o=e.find((e=>e[n]===t[n]));if(o&&i&&(t.id=o.id),t.children&&s&&o&&o.children){const e=o.children.map((e=>e[n])),s=t.children.filter((t=>!e.includes(t[n])));return{...t,children:[...o.children,...s]}}return t}));return{selectorsToKeep:a,selectors:[...a,...r]}}let rO=class extends s.ZP{constructor(){super(...arguments),this.selectorId=null,this.nestedId=null}get selector(){return this.selectors.find((e=>e.id===this.selectorId))}get nestedSelector(){return this.selector?.children?.find((e=>e.id===this.nestedId))}get viewMode(){return c.uiStore.panelState.selectorsPanelPanelActiveViewMode}get selectors(){return c.globalStore.oxySelectors}get selectorName(){return this.selector?this.nestedSelector?`.${this.selector.name} ${this.nestedSelector.name}`:"class"===this.selector.type?`.${this.selector.name}`:this.selector.name:null}get collections(){return c.globalStore.oxySelectorsCollections}toggleViewMode(){c.uiStore.setPanelState({...c.uiStore.panelState,selectorsPanelPanelActiveViewMode:"controls"===this.viewMode?"history":"controls"})}select(e){this.selectorId=e}selectNested(e,t){this.selectorId=e,this.nestedId=t}close(){this.selector?(this.selectorId=null,this.nestedId=null):(0,Bu.TO)("oxySelectors")}validateImport(e){return(0,su.zG)(e,iu.IX(Dw.En).decode,(0,ou.g_)((e=>(cd.Z.log.errorMessage((0,Ft.__)("Error importing Selectors - the file is invalid.")),(0,Fb.H)(e),!1)),(()=>!0)))}importSelectors(e,t){e.length?Ie.n.transaction((()=>{if("replace"===t)c.globalStore.setOxygenSelectors(e),cd.Z.log.message((0,Ft.gB)((0,Ft.__)("%s selectors imported. All existing selectors were replaced."),e.length));else{const{selectorsToKeep:t,selectors:n}=aO(c.globalStore.oxySelectors,e);c.globalStore.setOxygenSelectors(n),cd.Z.log.message((0,Ft.gB)((0,Ft.__)("%s selectors imported. %s existing selectors were kept."),e.length,t.length))}}),"Import Selectors"):cd.Z.log.errorMessage((0,Ft.__)("Error importing Selectors - the file is empty."))}addCollection(){const e=tl.hI,t=this.collections;let n=1;while(t.includes(`${e} ${n}`))n++;const s=`${e} ${n}`;c.globalStore.setOxygenSelectorsCollections([...t,s])}};rO=(0,r.gn)([(0,l.wA)({components:{ImportExportDropdownMenu:xP,AddSelector:GZ,AlertBox:Ag.Z,PanelHeader:uI,SelectorsList:YZ,RevisionsPanel:YP,ClassProperties:KA,BrowseModeToggle:OI,PanelHeaderButton:EI,FreeModeAlertForSelectors:sk.Z,SelectorsPanelHistoryViewMode:oO,IconButton:Xa.Z}})],rO);const lO=rO,cO=lO;var dO=(0,N.Z)(cO,TZ,DZ,!1,null,null,null);const uO=dO.exports;let pO=class extends s.ZP{constructor(){super(...arguments),this.reactivePanelContext={state:this.panelState,position:this.position},this.panelContext=this.reactivePanelContext}get builderMode(){return c.configStore.builderMode}get activeElementId(){return c.uiStore.activeElementId}updatePanelContext(){this.reactivePanelContext.state=this.panelState}};(0,r.gn)([(0,l.fI)()],pO.prototype,"position",void 0),(0,r.gn)([(0,l.fI)()],pO.prototype,"panelState",void 0),(0,r.gn)([(0,l.RL)("panelState")],pO.prototype,"updatePanelContext",null),(0,r.gn)([(0,l.DF)("panelContext")],pO.prototype,"panelContext",void 0),pO=(0,r.gn)([(0,l.wA)({components:{OxySelectorsPanel:uO,VariablesPanel:TT,PresetsPanel:OD,AppLayoutBodyPanelArea:NE,HistoryAndRevisionsPanel:DE,StructurePanel:nE,ElementPropertiesPanel:Rx,Add:vI,GlobalSettingsPanel:EP,SelectorsPanel:wk,AIPanel:AA,OxygenElementPropertiesPanel:EZ}})],pO);const hO=pO,gO=hO;var mO=(0,N.Z)(gO,RS,VS,!1,null,null,null);const vO=mO.exports;var yO=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-app-wrapper"},[t("div",{staticClass:"breakdance-top-bar-wrapper"},[e._t("topbar")],2),t("div",{staticClass:"breakdance-app-body-wrapper"},[e._t("body")],2)])},fO=[];let _O=class extends s.ZP{};_O=(0,r.gn)([l.wA],_O);const bO=_O,SO=bO;var CO=(0,N.Z)(SO,yO,fO,!1,null,null,null);const xO=CO.exports;var wO=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._l(e.closingConfirmations,(function(n,s){return t("ConfirmDialog",{key:s,attrs:{type:n.type,"save-is-enabled":!n.chosenOption,"save-is-in-progress":n.isSaving,"discard-is-enabled":!n.chosenOption,"discard-is-in-progress":n.isDiscarding,"has-cancel":n.hasCancel,"has-discard":n.hasDiscard,"action-text":n.actionText,show:n.show},on:{discard:function(t){return e.markClosingConfirmationAs(s,"discard")},save:function(t){return e.markClosingConfirmationAs(s,"save")},cancel:function(t){return e.hideClosingConfirmation(s)},"click:outside":function(t){return e.hideClosingConfirmation(s)}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(n.title)+" ")]},proxy:!0},{key:"text",fn:function(){return[e._v(e._s(n.text))]},proxy:!0}],null,!0)})})),1)},IO=[];let PO=class extends l.w3{get closingConfirmations(){return Object.fromEntries(Object.entries(Q.kD.closingConfirmations).filter((([,e])=>e&&e.show)))}markClosingConfirmationAs(e,t){Q.kD.chooseOptionForClosingConfirmation({subject:e,chosenOption:t})}hideClosingConfirmation(e){Q.kD.hideClosingConfirmation(e)}};PO=(0,r.gn)([(0,l.wA)({components:{ConfirmDialog:uh.Z}})],PO);const kO=PO,EO=kO;var TO=(0,N.Z)(EO,wO,IO,!1,null,null,null);const DO=TO.exports;var AO=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dialog",{attrs:{value:!0,persistent:""},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.__("This post can't be edited directly.")))]},proxy:!0},{key:"text",fn:function(){return[e.templateName?[t("p",[e.templateIsFallback?[e._v(" "+e._s(e.sprintf(e.__(e._doc('This post is rendered with a builder\'s internal "%s" template.',"%s: Template name")),e.decodedTemplateName))+" ")]:[e._v(" "+e._s(e.sprintf(e._doc('This post is rendered with a "%s" template.',"%s: Template name"),e.decodedTemplateName))+" ")]],2)]:[t("p",[e.templateIsFallback?[e._v(" "+e._s(e._doc("This post is rendered with a builder's internal template.","%s: Template name"))+" ")]:[e._v(" "+e._s(e.__("This post is rendered with a template."))+" ")]],2)],e.templateIsFallback?t("p",[e._v(" "+e._s(e.__("Please create your own template."))+" ")]):t("p",[e._v(" "+e._s(e.sprintf(e._x("The template does not contain a Template Content Area element. Therefore, the posts it applies to are not editable in %s.","Plugin name"),e.$bdox("plugin_name")))+" ")])]},proxy:!0},{key:"actions",fn:function(){return[e.templateIsFallback&&e.templatesPageUrl?t(Qo.Z,{attrs:{text:"",href:e.templatesPageUrl}},[e._v(" "+e._s(e.__("Templates page"))+" ")]):e.templateIsFallback?e._e():t(Qo.Z,{attrs:{text:"",href:e.templateUrl}},[e._v(" "+e._s(e.__("Edit Template"))+" ")]),t(Qo.Z,{attrs:{dark:"",color:"blue",href:e.backToAdmin}},[e._v(e._s(e.__("Go back")))])]},proxy:!0}])})},ZO=[];let OO=class extends s.ZP{get decodedTemplateName(){const e=document.createElement("textarea");return e.innerHTML=this.templateName,e.value}get templateUrl(){return(0,Hl.UH)(this.templateId)}get backToAdmin(){return Q.PK.documentSpecificNeededUrls?Q.PK.documentSpecificNeededUrls.backToWordPressUrl??"":""}};(0,r.gn)([(0,l.fI)()],OO.prototype,"templateName",void 0),(0,r.gn)([(0,l.fI)()],OO.prototype,"templateId",void 0),(0,r.gn)([(0,l.fI)()],OO.prototype,"templateIsFallback",void 0),(0,r.gn)([(0,l.fI)()],OO.prototype,"templatesPageUrl",void 0),OO=(0,r.gn)([(0,l.wA)({components:{Dialog:ta.Z}})],OO);const MO=OO,BO=MO;var LO=(0,N.Z)(BO,AO,ZO,!1,null,null,null);const NO=LO.exports;var FO=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dialog",{attrs:{value:!0,persistent:""},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.__("Invalid post")))]},proxy:!0},{key:"text",fn:function(){return["post_does_not_exist"===e.invalidPostData.errorType?t("div",[e._v(" "+e._s(e.__("The requested post doesn't exist. It may have been deleted, or maybe you used an outdated URL."))+" ")]):e._e(),"post_is_in_trash"===e.invalidPostData.errorType?t("div",[e._v(" "+e._s(e.__("You can't edit this item because it is in the Trash. Please restore it and try again."))+" ")]):e._e(),"post_type_is_banned"===e.invalidPostData.errorType?t("div",[e.invalidPostData.postType?[e._v(" "+e._s(e.sprintf(e._doc('Posts with post type "%s" can\'t be edited with %s directly. Please use a %s Template instead.',"1: Post type name, 2: Plugin name, 3: Plugin name"),e.invalidPostData.postType,e.$bdox("plugin_name"),e.$bdox("plugin_name")))+" ")]:[e._v(" "+e._s(e.sprintf(e._doc("The requested post can't be edited with %s.","%s: Plugin name"),e.$bdox("plugin_name")))+" ")]],2):e._e(),"post_type_is_restricted"===e.invalidPostData.errorType?t("div",[e._v(" "+e._s(e.sprintf(e._doc('You don\'t have enough permissions to edit "%s" post type.',"%s: Post type name"),e.invalidPostData.postType))+" ")]):e._e()]},proxy:!0},{key:"actions",fn:function(){return[t(Qo.Z,{attrs:{dark:"",color:"blue",href:e.invalidPostData.backToAdminUrl}},[e._v(" "+e._s(e.__("Back to WordPress admin"))+" ")])]},proxy:!0}])})},RO=[];let VO=class extends s.ZP{get invalidPostData(){return Q.PK.invalidPostData}};VO=(0,r.gn)([(0,l.wA)({components:{Dialog:ta.Z}})],VO);const $O=VO,WO=$O;var UO=(0,N.Z)(WO,FO,RO,!1,null,null,null);const zO=UO.exports;var HO=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.isComponentType&&e.totalRootChildren>1?t("div",{staticClass:"components-root-tag-warning"},[e._v(" "+e._s(e.__("Components must have a single root tag."))+" ")]):e._e()},GO=[];let KO=class extends l.w3{get totalRootChildren(){return c.documentStore.document.tree.root.children.length}get isComponentType(){return c.documentStore.document.documentMeta.postType===zd.Zr}};KO=(0,r.gn)([(0,l.wA)({})],KO);const jO=KO,qO=jO;var XO=(0,N.Z)(qO,HO,GO,!1,null,"1432a125",null);const YO=XO.exports;var QO=function(){var e=this,t=e._self._c;e._self._setupProxy;return"breakdance"===e.builderMode?t("button",{staticClass:"preview-mode-close-button",on:{click:e.togglePreviewMode}},[e._v(" "+e._s(e.__("Close Preview"))+" ")]):"oxygen"===e.builderMode?t("button",{staticClass:"preview-mode-close-button-oxygen",on:{click:e.togglePreviewMode}},[t("Icon",{attrs:{icon:"CloseSolidIcon"}})],1):e._e()},JO=[];let eM=class extends l.w3{togglePreviewMode(){c.uiStore.togglePreviewMode()}get builderMode(){return c.configStore.builderMode}get isPreviewMode(){return c.uiStore.isPreviewMode}onIsPreviewModeChange(){if(this.isPreviewMode){const e=new Event("breakdance_play_animations",{bubbles:!0});window.Breakdance.canvas.document.dispatchEvent(e)}}};(0,r.gn)([(0,l.RL)("isPreviewMode",{immediate:!0})],eM.prototype,"onIsPreviewModeChange",null),eM=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],eM);const tM=eM,nM=tM;var sM=(0,N.Z)(nM,QO,JO,!1,null,null,null);const iM=sM.exports;var oM=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-left-panel-new",class:{"singularity-left-panel-new--highlighted":e.isLeftPanelHighlighted}},[t("div",{staticClass:"singularity-left-panel-new__content"},["page_structure"===e.singularityLeftPanelState?t("PageStructureNew"):e._e(),"brand"===e.singularityLeftPanelState?t("BrandPanel"):e._e(),"brand_edit_color"===e.singularityLeftPanelState?t("BrandPanelColorEdit"):e._e(),"brand_edit_typography"===e.singularityLeftPanelState?t("BrandPanelTypographyEdit"):e._e(),"page_manager"===e.singularityLeftPanelState?t("WPPageManagerNew"):e._e(),"section_add_or_swap"===e.singularityLeftPanelState?t("SectionAddOrSwapPanelNew"):e._e(),"image_editor"===e.singularityLeftPanelState?t("ImageEditor",{key:e.imageEditorKey}):e._e(),"background_image_editor"===e.singularityLeftPanelState?t("BackgroundImageEditor"):e._e(),"icon_editor"===e.singularityLeftPanelState?t("IconEditor"):e._e(),"text_editor"===e.singularityLeftPanelState?t("TextEditor"):e._e(),"link_editor"===e.singularityLeftPanelState?t("LinkEditor"):e._e(),"content_properties_editor"===e.singularityLeftPanelState?t("ContentPropertiesEditor"):e._e(),"header_footer_editor"===e.singularityLeftPanelState?t("HeaderAndFooterEditor"):e._e(),"add_new_section"===e.singularityLeftPanelState?t("NewSectionPanel"):e._e(),"rewrite_section"===e.singularityLeftPanelState?t("RewriteSectionPanel"):e._e(),t("FeedbackBox")],1)])},aM=[],rM=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e._v(" I am the section writer. "),t(ed.Z,{attrs:{label:"Section ID",type:"number",outlined:"",dense:""},model:{value:e.sectionId,callback:function(t){e.sectionId=e._n(t)},expression:"sectionId"}}),t(Qo.Z,{on:{click:e.writeSection}},[e._v("Write Content")]),t(Qo.Z,{on:{click:e.populateImages}},[e._v("Populate Images")])],1)},lM=[];let cM=class extends s.ZP{constructor(){super(...arguments),this.sectionId=-1}async writeSection(){er.P.addJob((async e=>{await(0,tr.H2)(this.sectionId,e)}),{jobType:"section_rewrite",documentId:c.documentStore.document.documentMeta.id,elementId:this.sectionId,description:`Section rewrite triggered manually from SectionWriter for section ${this.sectionId}`,priority:"critical",snapshotLabel:"Write Section with AI"})}async populateImages(){er.P.addJob((async e=>{await(0,tr.SW)(this.sectionId,e)}),{jobType:"section_image_replacement",documentId:c.documentStore.document.documentMeta.id,elementId:this.sectionId,description:`Image population triggered manually from SectionWriter for section ${this.sectionId}`,priority:"high",snapshotLabel:"Populate Images in Section with AI"})}};cM=(0,r.gn)([(0,l.wA)({components:{}})],cM);const dM=cM,uM=dM;var pM=(0,N.Z)(uM,rM,lM,!1,null,null,null);const hM=pM.exports;var gM=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"page-structure vscroll-wrap vscroll-scroll"},[t("div",{class:{"page-structure-content-wrapper":!0,"page-structure-content-wrapper-drag-in-progress":e.isDragging}},[t("PageStructureHeader"),e.isOpeningPage?t("div",{staticClass:"page-structure__loading"},[t("span",{staticClass:"page-structure__loading-title"},[t("Icon",{staticClass:"animate-spin",attrs:{icon:"CircleNotchSolidIcon",size:"18"}}),e._v("Loading page...")],1),t("span",{staticClass:"page-structure__loading-text"},[e._v("This will take a few seconds.")])]):e.structure.length?t("div",{staticClass:"page-structure__sections-wrapper"},[t("span",{staticClass:"page-structure__top-bar"},[t("span",[e._v(" Drag sections to reorder.")]),t("NiceButton",{attrs:{color:"gray",size:"small","left-icon":"PlusIconSolid"},on:{click:e.addSection}},[e._v("Add Section")])],1),t("div",{staticClass:"page-structure-sections-wrapper"},[t("div",{staticClass:"page-structure-sections"},[t("draggable",{attrs:{value:e.structure,handle:".page-structure-section__title-bar",options:e.draggableOptions},on:{change:e.handleChange,start:e.onDragStart,end:e.onDragEnd}},e._l(e.structure,(function(n,s){return t("PageStructureSectionNew",{key:n.nodeId,attrs:{value:n,index:s,active:!e.isDragging&&e.isActive(n.nodeId),dragOperationInProgress:e.isDragging,currentlyBeingDragged:e.currentlyDraggedNodeId===n.nodeId}})})),1)],1)])]):t("div",{staticClass:"page-structure-section__empty-state",on:{click:e.addSection}},[t("NiceButton",{attrs:{color:"gray",size:"large","left-icon":"PlusIconSolid"},on:{click:function(t){return t.stopPropagation(),e.addSection.apply(null,arguments)}}},[e._v("Add Section")])],1)],1)])},mM=[];function vM(e){return e.root.children.filter((e=>e.data.type!==Us.Uu&&e.data.type!==Us.hO)).map(yM)}function yM(e){return{nodeId:e.id,description:(0,ir.EJ)(e)}}function fM(e,t){c.documentStore.unthrottledPropertyChanged({elementId:e,path:"meta.promptInfo.sectionDescription",meta:{snapshotLabel:`Updated sectionDescription for "${e}"`},value:t})}function _M(e,t){c.documentStore.unthrottledPropertyChanged({elementId:e,path:"meta.friendlyName",meta:{snapshotLabel:`Updated friendly name for element "${e}"`},value:t.trim()})}function bM(e,t){const n=t.root.children.some((e=>e.data.type===Us.Uu));return n?e+1:e}var SM=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:e.classList},[t("div",{staticClass:"page-structure-section__title-bar",on:{click:e.activateSection}},[t("div",{staticClass:"page-structure-section-drag-handle"},[t("Icon",{staticClass:"page-structure-section-drag-handle__icon",attrs:{size:"18",icon:"GripVerticalSolidIcon"}})],1),t("div",{staticClass:"page-structure-section__title-bar__title"},[e.active?t("InlineTextEdit",{staticClass:"page-structure-section__title-bar__title",attrs:{value:e.title,component:"span"},on:{update:e.updateSectionFriendlyName}}):t("span",[e._v(e._s(e.title))]),e.active||e.isSectionCurrentlyRewritingWithAi?t("span",{staticClass:"page-structure-section__active-indicator"}):e._e()],1),t("div",{staticClass:"page-structure-section__title-bar__actions"},[t(ck.Z,{attrs:{top:"","max-width":"180","content-class":"singularity-tooltip",transition:"0"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({staticClass:"page-structure-section__title-bar__action",attrs:{role:"button"},on:{click:function(t){return t.stopPropagation(),e.duplicateSection.apply(null,arguments)}}},n),[t("Icon",{attrs:{icon:"DuplicateSolidIcon",size:14}})],1)]}}])},[t("span",{staticClass:"singularity-tooltip__text"},[e._v(" Duplicate Section ")])]),t(ck.Z,{attrs:{top:"","max-width":"180","content-class":"singularity-tooltip",transition:"0"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({staticClass:"page-structure-section__title-bar__action",attrs:{role:"button"},on:{click:function(t){return t.stopPropagation(),e.deleteSection.apply(null,arguments)}}},n),[t("Icon",{attrs:{icon:"TrashSolidIcon",size:14}})],1)]}}])},[t("span",{staticClass:"singularity-tooltip__text"},[e._v(" Delete Section ")])])],1)]),e.active?t("div",{staticClass:"page-structure-section__content"},[t("div",{staticClass:"page-structure-section__content-wrapper"},[t("div",{staticClass:"page-structure-section__content-field"},[t("label",[e._v("Layout")]),e.sectionCardData?t("SectionCard",{staticClass:"section-card-not-tall section-card-in-page-structure-panel",attrs:{value:e.sectionCardData,showLabel:!0},nativeOn:{click:function(t){return e.openSectionLibrary("swap")}}}):e._e()],1),t("NiceButton",{attrs:{"left-icon":"Grid2Icon",color:"gray",expanded:"true"},on:{click:function(t){return e.openSectionLibrary("swap")}}},[e._v("Update Layout ")]),e.hasBackgroundImage?[t("div",{staticClass:"page-structure-section__divider"}),e.hasBackgroundImage?t("SingularityImageMediaPreview",{attrs:{value:e.value}}):e._e(),t("NiceButton",{attrs:{"left-icon":"ImageIcon",color:"gray",expanded:"true"},on:{click:e.editBackgroundImage}},[e._v("Change Image ")])]:e._e(),t("div",{staticClass:"page-structure-section__divider"}),t("EditWithAiButton",{attrs:{nodeId:e.value.nodeId}}),t("div",{staticClass:"page-structure-section__divider"}),t("PageStructureSectionColorsNewV2",{attrs:{elementId:e.value.nodeId}})],2)]):e._e()])},CM=[],xM=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.internalValue?t("div",{staticClass:"singularity-image-preview"},[t("div",{staticClass:"page-structure-section__content-field"},[t("label",[e._v("Background Image")]),t("div",{staticClass:"breakdance-media-input-single",attrs:{role:"button"},on:{click:e.editBackgroundImage}},[t("MediaPreview",{attrs:{value:e.internalValue}}),t("MediaChooserLayer",{attrs:{value:e.internalValue,actionText:"Edit"},on:{click:e.editBackgroundImage}})],1)])]):e._e()},wM=[],IM=n(53049),PM=n(4802);let kM=class extends s.ZP{editBackgroundImage(){c.singularityStore.setImageEditorPanelState({elementId:this.value.nodeId,controlPath:"design.background.image",initialStep:"main"}),c.singularityStore.setSingularityLeftPanel("image_editor")}get internalValue(){const e=(0,ge.findNode)(c.documentStore.document.tree,this.value.nodeId);if(!e)return!1;const t=j()(e.data.properties,"design.background.image");return(0,id.pipe)(t,jy.V0.decode,(0,od.fold)((e=>{console.debug("Media decoder failed",e)}),(e=>e)))}};(0,r.gn)([(0,l.fI)()],kM.prototype,"value",void 0),kM=(0,r.gn)([(0,l.wA)({components:{MediaPreview:IM.Z,NiceButton:Br.Z,MediaChooserLayer:PM.Z}})],kM);const EM=kM,TM=EM;var DM=(0,N.Z)(TM,xM,wM,!1,null,null,null);const AM=DM.exports;var ZM=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("span",{staticClass:"inline-edit",on:{mouseenter:function(t){e.hover=!0},mouseleave:function(t){e.hover=!1},"click:outside":e.save}},[e.editing?[t("input",{directives:[{name:"model",rawName:"v-model",value:e.editValue,expression:"editValue"}],ref:"input",staticClass:"inline-edit__input",attrs:{placeholder:e.placeholder},domProps:{value:e.editValue},on:{blur:e.onBlur,keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onEnter.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}],input:function(t){t.target.composing||(e.editValue=t.target.value)}}})]:[t(e.component,{tag:"component"},[e._v(e._s(e.value))]),t(ck.Z,{attrs:{top:"","max-width":"180","content-class":"singularity-tooltip",transition:"0"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("Icon",e._g({directives:[{name:"show",rawName:"v-show",value:e.hover,expression:"hover"}],staticClass:"inline-edit__edit-icon",attrs:{icon:"PenSolidIcon",size:"14"},on:{click:function(t){return t.stopPropagation(),e.activateEdit.apply(null,arguments)}}},n))]}}])},[t("span",{staticClass:"singularity-tooltip__text"},[e._v(" Edit section friendly name ")])])]],2)},OM=[];let MM=class extends s.ZP{constructor(){super(...arguments),this.editing=!1,this.editValue="",this.hover=!1,this.enterPressed=!1}onActiveChange(e){e&&this.activateEdit()}activateEdit(){this.$emit("editing",!0),this.editing=!0,this.editValue=this.value,this.$nextTick((()=>{this.$refs.input.focus()}))}onEnter(){this.enterPressed=!0,this.save()}onBlur(){this.enterPressed||this.save(),this.enterPressed=!1}save(){this.editValue.trim()?(this.$emit("update",this.editValue),this.$emit("editing",!1),this.editing=!1):this.cancel()}cancel(){this.editing=!1}};(0,r.gn)([(0,l.fI)({required:!0})],MM.prototype,"value",void 0),(0,r.gn)([(0,l.fI)({default:""})],MM.prototype,"placeholder",void 0),(0,r.gn)([(0,l.fI)({default:"span"})],MM.prototype,"component",void 0),(0,r.gn)([(0,l.fI)({default:!1})],MM.prototype,"active",void 0),(0,r.gn)([(0,l.RL)("active")],MM.prototype,"onActiveChange",null),MM=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],MM);const BM=MM,LM=BM;var NM=(0,N.Z)(LM,ZM,OM,!1,null,"5ff13e93",null);const FM=NM.exports;var RM=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"page-structure-section-colors-new"},[t("div",{staticClass:"page-structure-section__content-field"},[t("div",{staticClass:"page-structure-section__content-field-label"},[t("label",[e._v("Color Scheme")]),t("IconButtonShuffle",{attrs:{size:"small"},on:{update:e.randomizeAll}})],1)]),e.isOverlayHeader?t("div",{staticClass:"overlay-header-message"},[e._v(" Color scheme inherited from section ")]):t("div",{staticClass:"category-swatches-wrapper"},[t("div",{staticClass:"category-swatches-new"},e._l(e.availableCategories,(function(n){return t("div",{key:n.name,staticClass:"category-swatch-new",class:{"category-swatch-new--selected":e.selectedCategory===n.name,"category-swatch-new--show-picker":e.showPicker&&e.selectedCategory===n.name},style:e.getCategoryStyle(n.scheme),attrs:{role:"button"},on:{click:function(t){return e.toggleCategory(n.name)}}},[e._m(0,!0)])})),0)]),e.selectedCategory&&!e.isOverlayHeader&&e.showPicker?t("div",{staticClass:"color-scheme-picker"},[t("ColorSchemePickerNew",{attrs:{elementId:e.elementId,currentSchemeString:e.colorSchemeString,category:e.selectedCategory},on:{select:e.handleSchemeSelected}})],1):e._e()])},VM=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"category-swatch__swatches"},[t("div",{staticClass:"category-swatch__bg"}),t("div",{staticClass:"category-swatch__text"})])}],$M=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"color-scheme-picker-panel-new"},[t("div",{staticClass:"color-scheme-picker-panel-new__content"},[t("div",{staticClass:"schemes-grid-new"},e._l(e.categorySchemes,(function(n,s){return t("ColorSchemeCardNew",{key:s,attrs:{scheme:n,schemeString:e.getSchemeString(s),isSelected:e.getSchemeString(s)===e.currentSchemeString},on:{select:function(t){e.selectScheme(e.getSchemeString(s),n)}}})})),1)])])},WM=[],UM=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"color-scheme-card-new",class:{"color-scheme-card-new--selected":e.isSelected},style:e.previewStyle,attrs:{role:"button"},on:{mouseenter:e.select}},[e.isSelected?t("div",{staticClass:"color-scheme-card__dot"}):e._e()])},zM=[],HM=n(11987);let GM=class extends s.ZP{get shadeLabel(){return(0,HM.uz)(this.scheme,this.schemeString)}get previewStyle(){return{"--card-bg":this.scheme.background.value?.toString(),"--card-text":this.scheme.contrastedFromBackgroundForText.value?.toString()}}select(){this.$emit("select")}};(0,r.gn)([(0,l.fI)({required:!0})],GM.prototype,"scheme",void 0),(0,r.gn)([(0,l.fI)({required:!0})],GM.prototype,"schemeString",void 0),(0,r.gn)([(0,l.fI)({default:!1})],GM.prototype,"isSelected",void 0),GM=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],GM);const KM=GM,jM=KM;var qM=(0,N.Z)(jM,UM,zM,!1,null,null,null);const XM=qM.exports;var YM=n(75495);let QM=class extends s.ZP{constructor(){super(...arguments),this.showGrid=!1}get allSchemes(){return(0,YM.W)(Q.fz.brand.color)}get categorySchemes(){return"primary"===this.category?this.allSchemes.primary:"secondary1"===this.category?this.allSchemes.secondary[0]||[]:"secondary2"===this.category?this.allSchemes.secondary[1]||[]:"neutral"===this.category?this.allSchemes.neutral:[]}get selectedIndex(){const e=this.categorySchemes.findIndex(((e,t)=>this.getSchemeString(t)===this.currentSchemeString));return e>=0?e:0}get currentScheme(){return this.categorySchemes[this.selectedIndex]}get currentSwatchStyle(){return this.currentScheme?{"--card-bg":this.currentScheme.background.value?.toString(),"--card-text":this.currentScheme.contrastedFromBackgroundForText.value?.toString()}:{}}getSchemeString(e){return(0,HM.$w)(this.category,e)}onSliderChange(e){const t=e.target,n=parseInt(t.value),s=this.categorySchemes[n];s&&this.selectScheme(this.getSchemeString(n),s)}shuffleScheme(){const e=Math.floor(Math.random()*this.categorySchemes.length),t=this.categorySchemes[e];t&&this.selectScheme(this.getSchemeString(e),t)}toggleGrid(){this.showGrid=!this.showGrid}close(){this.$emit("close")}selectScheme(e,t){this.$emit("select",e,t)}};(0,r.gn)([(0,l.fI)({required:!0})],QM.prototype,"elementId",void 0),(0,r.gn)([(0,l.fI)({default:""})],QM.prototype,"currentSchemeString",void 0),(0,r.gn)([(0,l.fI)({required:!0})],QM.prototype,"category",void 0),QM=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,ColorSchemeCardNew:XM}})],QM);const JM=QM,eB=JM;var tB=(0,N.Z)(eB,$M,WM,!1,null,null,null);const nB=tB.exports;var sB=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("IconButton",{staticClass:"icon-button-shuffle",class:{"is-rotating":e.isRotating,"is-small":"small"===e.size,"is-default":"default"===e.size},attrs:{icon:"ArrowsRotateSolidIcon",small:"true",size:"small"===e.size?12:16,tooltip:"Shuffle"},on:{click:e.handleClick}})},iB=[];let oB=class extends s.ZP{constructor(){super(...arguments),this.isRotating=!1}handleClick(e){this.isRotating=!0,this.$emit("update",e),setTimeout((()=>{this.isRotating=!1}),600)}};(0,r.gn)([(0,l.fI)()],oB.prototype,"size",void 0),oB=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z}})],oB);const aB=oB,rB=aB;var lB=(0,N.Z)(rB,sB,iB,!1,null,null,null);const cB=lB.exports;let dB=class extends s.ZP{constructor(){super(...arguments),this.showPicker=!1}get element(){return(0,ge.findNode)(Q.Hb.document.tree,this.elementId)}get chosenScheme(){if(!this.element)return HM.RT;const e=j()(this.element,"data.properties.settings.advanced.classes",[]);return(0,HM.kr)(e)}get colorSchemeString(){return this.chosenScheme.schemeString}get selectedCategory(){return this.chosenScheme.category}get schemeIndex(){return this.chosenScheme.index}get categoryLabel(){if(!this.selectedCategory)return"";const e={primary:"Primary",secondary1:"Secondary 1",secondary2:"Secondary 2",neutral:"Neutral"};return e[this.selectedCategory]||""}get allSchemes(){return(0,YM.W)(Q.fz.brand.color)}get availableCategories(){return(0,HM.n)(this.allSchemes,this.selectedCategory,this.schemeIndex)}getCategoryStyle(e){return e?{"--swatch-bg":e.background.value?.toString(),"--swatch-text":e.contrastedFromBackgroundForText.value?.toString()}:{}}toggleCategory(e){if(!e)return;const t=this.selectedCategory===e;this.showPicker=!this.showPicker,t||(this.showPicker=!0,this.selectRandomSchemeForCategory(e))}selectRandomSchemeForCategory(e){const t=(0,HM.w5)(e,this.allSchemes);t&&this.handleSchemeSelected(t.schemeString,t.scheme)}randomizeAll(){const e=(0,HM.qA)(this.allSchemes);e&&this.handleSchemeSelected(e.schemeString,e.scheme)}handleSchemeSelected(e,t){this.element&&(0,HM.Q8)(this.elementId,this.element,e,t)}};(0,r.gn)([(0,l.fI)({required:!0})],dB.prototype,"elementId",void 0),(0,r.gn)([(0,l.fI)({default:!1})],dB.prototype,"isOverlayHeader",void 0),dB=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,ColorSchemePickerNew:nB,IconButtonShuffle:cB}})],dB);const uB=dB,pB=uB;var hB=(0,N.Z)(pB,RM,VM,!1,null,null,null);const gB=hB.exports;var mB=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("NiceButton",{class:{"is-spinning":e.isSectionCurrentlyRewritingWithAi},attrs:{disabled:e.isSectionCurrentlyRewritingWithAi,"left-icon":e.isSectionCurrentlyRewritingWithAi?"CircleNotchSolidIcon":"SparklesIconSolid",color:"gray",expanded:"true"},on:{click:e.openSectionRewrite}},[e._v(" "+e._s(e.isSectionCurrentlyRewritingWithAi?"Rewriting with AI...":"Edit with AI")+" ")])},vB=[];function yB(e){const t=(0,ge.findNode)(c.documentStore.document.tree,e);if(!t)return;const n=(0,sr.E)(t),s={sectionType:n?.singularity.sectionData.type||"unknown"};(0,Tt.K)("FutureLayer Section Rewrite Click",s)}let fB=class extends s.ZP{openSectionRewrite(){const e=(0,ge.findNode)(c.documentStore.document.tree,this.nodeId);e&&(c.singularityStore.setSectionRewritePanelState({section:yM(e)}),c.singularityStore.setSingularityLeftPanel("rewrite_section"),yB(this.nodeId))}get isSectionCurrentlyRewritingWithAi(){return c.singularityStore.aiJobs.filter((e=>"elementId"in e.context&&e.context.elementId===this.nodeId&&("running"===e.status||"pending"===e.status)&&"section_rewrite"===e.context.jobType)).length>0}};(0,r.gn)([(0,l.fI)({required:!0})],fB.prototype,"nodeId",void 0),fB=(0,r.gn)([(0,l.wA)({components:{NiceButton:Br.Z}})],fB);const _B=fB,bB=_B;var SB=(0,N.Z)(bB,mB,vB,!1,null,null,null);const CB=SB.exports;let xB=class extends s.ZP{constructor(){super(...arguments),this.isRewriteModalOpen=!1}get sectionIdToOperateOn(){return this.value.nodeId}get nodeToOperateOn(){return(0,ge.findNode)(c.documentStore.document.tree,this.value.nodeId)}get sectionCardData(){return pr(this.value.nodeId)}moveSection(e){const t="up"===e?this.index-1:this.index+1;c.documentStore.moveElement({draggedElementId:this.value.nodeId,droppedOnElementId:c.documentStore.document.tree.root.id,index:t}),c.uiStore.activateElement(this.value.nodeId)}duplicateSection(){c.documentStore.duplicateElementAndActivateIt(this.value.nodeId)}deleteSection(){c.documentStore.deleteElement({nodeId:this.value.nodeId})}updateSectionFriendlyName(e){_M(this.value.nodeId,e)}get promptInfo(){if(this.nodeToOperateOn)return(0,sr.E)(this.nodeToOperateOn)}get title(){return(this.nodeToOperateOn?.data.properties?.meta?.friendlyName?.trim()||this.promptInfo?.singularity.sectionData.type||"unknown title")??0}get hasBackgroundImage(){const e=(0,ge.findNode)(c.documentStore.document.tree,this.value.nodeId);return e&&"image"==j()(e.data.properties,"design.background.type")}editBackgroundImage(){this.sectionIdToOperateOn&&(c.singularityStore.setImageEditorPanelState({elementId:this.sectionIdToOperateOn,controlPath:"design.background.image",initialStep:"options"}),c.singularityStore.setSingularityLeftPanel("image_editor"),(0,Tt.K)("FutureLayer Edit Section Background Click"))}openSectionLibrary(e){this.sectionIdToOperateOn&&((0,Tt.K)("FutureLayer Section Library Opened",{mode:e}),c.singularityStore.setSectionAddOrSwapPanelState({mode:e,sectionId:this.sectionIdToOperateOn}),c.singularityStore.setSectionLibraryModalState(!0))}get classList(){return{"currently-being-dragged":this.currentlyBeingDragged,"drag-operation-in-progress":this.dragOperationInProgress,"page-structure-section":!0,"page-structure-section--active":this.active,"page-structure-section--open":this.active,"page-structure-section--currently-rewriting":this.isSectionCurrentlyRewritingWithAi}}get isSectionCurrentlyRewritingWithAi(){return c.singularityStore.aiJobs.filter((e=>"elementId"in e.context&&e.context.elementId===this.sectionIdToOperateOn&&("running"===e.status||"pending"===e.status)&&"section_rewrite"===e.context.jobType)).length>0}get isSectionCurrentlyReplacingImagesWithAi(){return c.singularityStore.aiJobs.filter((e=>"elementId"in e.context&&e.context.elementId===this.sectionIdToOperateOn&&("running"===e.status||"pending"===e.status)&&"section_image_replacement"===e.context.jobType)).length>0}async activateSection(){(0,il.Uw)(),c.uiStore.activateElement(this.value.nodeId)}get activeElementId(){return c.uiStore.activeElementId}};(0,r.gn)([(0,l.fI)()],xB.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],xB.prototype,"index",void 0),(0,r.gn)([(0,l.fI)({default:!1})],xB.prototype,"active",void 0),(0,r.gn)([(0,l.fI)({default:!1})],xB.prototype,"dragOperationInProgress",void 0),(0,r.gn)([(0,l.fI)({default:!1})],xB.prototype,"currentlyBeingDragged",void 0),xB=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,NiceButton:Br.Z,SingularityImageMediaPreview:AM,SectionCard:Pr,InlineTextEdit:FM,PageStructureSectionColorsNewV2:gB,EditWithAiButton:CB}})],xB);const wB=xB,IB=wB;var PB=(0,N.Z)(IB,SM,CM,!1,null,null,null);const kB=PB.exports;var EB=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"page-structure-header"},[t("Dropdown",{staticClass:"page-structure-header__dropdown",attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({staticClass:"page-structure-header__title-dropdown"},n),[t("Icon",{staticClass:"page-structure-header__title-icon",attrs:{icon:e.isHomepage?"HomeSolidIcon":"PageRegularIcon",size:"20"}}),t("h1",{staticClass:"page-structure-header__title"},[t("span",[e._v(e._s(e.pageTitle))]),t("Icon",{staticClass:"page-structure-header__title-chevron-icon",attrs:{icon:"ChevronDownSolidIcon",size:"16"}})],1)],1)]}}])},[t("div",{staticClass:"page-structure-header__dropdown-content"},[e._l(e.pages,(function(e){return t("PageStructurePageListItem",{key:e.id,attrs:{value:e}})})),t("div",{staticClass:"page-structure-header__dropdown-divider"}),t("button",{staticClass:"page-structure-page-list-item",on:{click:e.openPagesPanel}},[t("div",{staticClass:"page-structure-page-list-item__content"},[t("div",{staticClass:"page-structure-page-list-item__title"},[t("Icon",{attrs:{size:12,icon:"ListIcon"}}),t("span",[e._v("Manage Pages")])],1)])])],2)])],1)},TB=[],DB=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"page-structure-page-list-item",class:e.classList,on:{click:e.openInCanvas}},[t("div",{staticClass:"page-structure-page-list-item__content"},[t("div",{staticClass:"page-structure-page-list-item__title"},[t("Icon",{attrs:{size:12,icon:e.isHomepage?"HomeSolidIcon":"PageRegularIcon"}}),t("span",[e._v(e._s(e.value.title))])],1)])])},AB=[];let ZB=class extends s.ZP{async openInCanvas(){c.singularityStore.setIsOpeningPageId(this.value.id),await(0,zl.$)(),await(0,Hl.rI)(this.value.id),c.singularityStore.setIsOpeningPageId(!1),c.singularityStore.setSingularityLeftPanel("page_structure")}get isOpeningPage(){return c.singularityStore.isOpeningPageId===this.value.id}get isHomepage(){return this.value.title.toLowerCase().includes("home")}get active(){return this.value.id===c.documentStore.document.documentMeta.id}get classList(){return{"is-active":this.active,"is-opening":this.isOpeningPage}}};(0,r.gn)([(0,l.fI)()],ZB.prototype,"value",void 0),ZB=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z,Icon:He.Z,Dropdown:Oc.Z}})],ZB);const OB=ZB,MB=OB;var BB=(0,N.Z)(MB,DB,AB,!1,null,null,null);const LB=BB.exports;var NB=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(ck.Z,{attrs:{bottom:"","max-width":"180","content-class":"singularity-tooltip",transition:"0"},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("IconButton",e._g(e._b({staticClass:"breakdance-panel-header-left-of-close-button",attrs:{size:16,small:"",icon:"CircleQuestionSolidIcon"}},"IconButton",s,!1),n))]}}])},[t("span",{staticClass:"singularity-tooltip__text"},[e._v(" "+e._s(e.text)+" ")])])},FB=[];let RB=class extends s.ZP{};(0,r.gn)([(0,l.fI)({type:String,required:!0})],RB.prototype,"text",void 0),RB=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z}})],RB);const VB=RB,$B=VB;var WB=(0,N.Z)($B,NB,FB,!1,null,null,null);const UB=WB.exports;let zB=class extends s.ZP{get structure(){return vM(c.documentStore.document.tree)}get pages(){return c.singularityStore.pagesInWP.filter((e=>"page"===e.postType))}get pageTitle(){return c.documentStore.document.documentMeta.titleLabel}get isHomepage(){return this.pageTitle.toLowerCase().includes("home")}openPagesPanel(){c.singularityStore.setSingularityLeftPanel("page_manager")}addSection(){c.singularityStore.setSectionAddOrSwapPanelState({mode:"add_after",sectionId:this.structure.length?this.structure[this.structure.length-1].nodeId:null}),c.singularityStore.setSectionLibraryModalState(!0)}};zB=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z,Dropdown:Oc.Z,Icon:He.Z,PageStructurePageListItem:LB,SingularityTooltip:UB}})],zB);const HB=zB,GB=HB;var KB=(0,N.Z)(GB,EB,TB,!1,null,null,null);const jB=KB.exports;let qB=class extends s.ZP{constructor(){super(...arguments),this.isDragging=!1,this.isScrolling=!1,this.currentlyDraggedNodeId=null}get activeElement(){return c.uiStore.activeElementId}get structure(){return vM(c.documentStore.document.tree)}get pageTitle(){return c.documentStore.document.documentMeta.titleLabel}get isOpeningPage(){return c.singularityStore.isOpeningPageId}isActive(e){return c.uiStore.inlineEditingContext?c.uiStore.isElementBeingEditedInline(e):c.uiStore.activeElementId===e}get draggableOptions(){return{ghostClass:"page-structure-section--dragging",dragClass:"page-structure-section--drag-active",setData:e=>{const t=document.createElement("div");t.style.width="1px",t.style.height="1px",t.style.opacity="0",document.body.appendChild(t),e.setDragImage(t,0,0),setTimeout((()=>{document.body.contains(t)&&document.body.removeChild(t)}),0)}}}onDragStart(e){this.isDragging=!0;const t=e.oldIndex;this.currentlyDraggedNodeId=this.structure[t]?.nodeId||null}onDragEnd(){this.isDragging=!1,this.currentlyDraggedNodeId=null}handleChange(e){if(e.moved){const t=e.moved.element.nodeId,n=bM(e.moved.newIndex,c.documentStore.document.tree);c.documentStore.moveElement({draggedElementId:t,droppedOnElementId:c.documentStore.document.tree.root.id,index:n}),c.uiStore.activateElement(t),(0,vw.es)(!0)}}addSection(){c.singularityStore.setSectionAddOrSwapPanelState({mode:"add_after",sectionId:this.structure.length?this.structure[this.structure.length-1].nodeId:null}),c.singularityStore.setSingularityLeftPanel("add_new_section"),(0,Tt.K)("FutureLayer Page Structure Add Section Click",{pageTitle:this.pageTitle,currentSectionCount:this.structure.length})}};qB=(0,r.gn)([(0,l.wA)({components:{PageStructureSectionNew:kB,draggable:ev(),Icon:He.Z,PageStructureHeader:jB,NiceButton:Br.Z}})],qB);const XB=qB,YB=XB;var QB=(0,N.Z)(YB,gM,mM,!1,null,null,null);const JB=QB.exports;var eL=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-image-editor-panel vscroll-wrap vscroll-scroll"},[t("SingularityPanelHeader",{attrs:{parentTitle:e.panelTitle,childTitle:e.childTitle,backState:e.backState}}),e.isOptionsView?t("div",{staticClass:"futurelayer-image-editor-panel__content"},[t("div",{staticClass:"futurelayer-image-editor-options"},e._l(e.options,(function(n){return t("SingularityOption",{key:n.value,attrs:{icon:n.icon,description:n.description,title:n.label},on:{click:function(e){n.action&&n.action()}},scopedSlots:e._u([{key:"content",fn:function(){return["stock"===n.value?t("FutureLayerImageSuggested",{attrs:{imageControlData:e.futureLayerImageDataForCurrentImage}}):e._e()]},proxy:!0}],null,!0)})})),1)]):e.isOptionsView||e.isStockImagesView?e.isStockImagesView?t("FutureLayerImageBrowser",{attrs:{imageControlData:e.futureLayerImageDataForCurrentImage},on:{"image-selected":e.handleImageSelected,"image-previewed":e.handleImagePreviewed,"image-restored":e.handleImageRestored}}):e.isLoadingView?t("div",{staticClass:"image-editor-loading"},[t("div",{staticClass:"image-editor-content-wrapper"},[t("Icon",{staticClass:"animate-spin",attrs:{icon:"CircleNotchSolidIcon",size:"18"}})],1)]):e._e():t("div",{staticClass:"image-editor-content-wrapper"},[e.isGalleryMode?t("GalleryStrip",{attrs:{"base-path-to-image-control":e.basePathToImageControl,"element-id":e.elementId,"selected-image-index":e.selectedImageIndex},on:{"path-selected":function(t){e.pathToImageControlWhenInGalleryMode=t},"caption-path-selected":function(t){e.pathToImageCaptionWhenInGalleryMode=t},"index-changed":e.updateSelectedImageIndex}}):e._e(),t("div",{staticClass:"image-editor-current-image"},[e.currentMediaInputValue&&e.imageHasUrl?t("div",{staticClass:"image-editor-current-image__badge"},[t("SingularityBadge",{attrs:{value:"Selected"}})],1):e._e(),e.currentMediaInputValue?t("div",{staticClass:"image-editor-delete-button"},[t("Icon",{attrs:{icon:"CloseSolidIcon",size:"16"},on:{click:function(t){return e.updateMediaInputValue(null)}}})],1):e._e(),t("div",{staticClass:"image-editor-preview"},[t("MediaPreview",{attrs:{value:e.currentMediaInputValue}}),t("MediaChooserLayer",{attrs:{value:e.currentMediaInputValue,actionText:e.currentMediaInputValue?"Change":"Add"},on:{click:function(t){return e.setEditorView(e.EditorView.Options)}}})],1),e.isGalleryMode?t("div",{staticClass:"image-editor-info-text"},[t("TextInput",{staticClass:"singularity-prompt__prompt-input",attrs:{value:e.currentCaptionValue,placeholder:"Update caption"},on:{input:function(t){return e.updateCaption(t)}}})],1):e._e(),t("div",{staticClass:"imageg-editor-current-image__buttons"},[t("NiceButton",{attrs:{"left-icon":"ImageIcon",color:"gray",expanded:"true"},on:{click:function(t){return e.setEditorView(e.EditorView.Options)}}},[e._v(" "+e._s(e.currentMediaInputValue?"Change Image":"Add Image")+" ")])],1)])],1),t("SingularityMediaUploadDialog",{attrs:{dialogOpen:e.isUploadDialogView,multiple:!1,value:e.currentMediaInputValue,"media-input-options":e.mediaInputOptions,"active-tab":e.activeWPMediaDialogTab},on:{input:e.updateMediaInputValue,close:function(t){return e.setEditorView(e.EditorView.Main)}}})],1)},tL=[],nL=n(19499),sL=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-image-browser"},[t("div",{staticClass:"search-section"},[t("div",{staticClass:"search-input-wrapper"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.searchKeyword,expression:"searchKeyword"}],staticClass:"search-input-wrapper-input",attrs:{type:"text",placeholder:"Search for images..."},domProps:{value:e.searchKeyword},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchImages.apply(null,arguments)},input:function(t){t.target.composing||(e.searchKeyword=t.target.value)}}}),t("Icon",{attrs:{icon:"SearchIcon",size:"14"},on:{click:e.searchImages}})],1),e.aiKeywords.length>0?t("div",{staticClass:"suggested-keywords"},[t("div",{staticClass:"keyword-chips"},e._l(e.aiKeywords,(function(n){return t("span",{key:n,staticClass:"keyword-chip",on:{click:function(t){return e.useKeyword(n)}}},[e._v(" "+e._s(n)+" ")])})),0)]):e._e()]),t("div",{ref:"imagesSection",staticClass:"images-section"},[e.displayedImages.length>0?t("div",{staticClass:"search-results"},[t("div",{staticClass:"images-grid"},e._l(e.displayedImages,(function(n){return t("FutureImageThumbnail",{key:n.id,attrs:{image:n},on:{click:function(t){return e.selectImage(n)},mouseenter:function(t){return e.previewImage(n)},mouseleave:e.restoreOriginalImage}})})),1)]):e._e(),0!==e.displayedImages.length||e.isSearching?e._e():t("div",{staticClass:"no-results"},[t("Icon",{attrs:{icon:"SearchIcon",size:"48"}}),t("p",[e._v(" No images available. Try searching for images using the input above. ")])],1)]),e.hasMoreImages&&e.displayedImages.length?t("div",{staticClass:"load-more"},[t("NiceButton",{attrs:{size:"large",color:"gray",loading:e.isSearching,expanded:"true"},on:{click:e.loadMoreImages}},[e._v("Load More")])],1):e._e()])},iL=[],oL=n(14663),aL=n(50247),rL=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("figure",{class:e.classes},[t("img",{staticClass:"image-card__image",attrs:{src:e.image.urls.regular,alt:e.image.alt_description||""},on:{load:e.handleLoad,error:e.handleError,click:function(t){return e.$emit("click",e.image)},mouseenter:function(t){return e.$emit("mouseenter",e.image)},mouseleave:function(t){return e.$emit("mouseleave")}}}),t("div",{staticClass:"image-card__attribution",class:{"is-expanded":e.showAttributionOverlay}},[e.showAttributionOverlay?t("Icon",{staticClass:"image-card__attribution-close-icon",attrs:{icon:"CloseSolidIcon",size:"16"},on:{click:function(t){e.showAttributionOverlay=!1}}}):e._e(),e.showAttributionOverlay?t("span",{staticClass:"image-card__attribution-text",domProps:{innerHTML:e._s(e.attribution)}}):e._e(),t("div",{staticClass:"image-card__attribution-tooltip"},[e.showAttributionOverlay?e._e():t("div",{staticClass:"image-card__attribution-icon",on:{click:function(t){e.showAttributionOverlay=!0}}},[t("Icon",{attrs:{icon:"CircleInfoSolidIcon",size:"14"}})],1)])],1)])},lL=[];let cL=class extends s.ZP{constructor(){super(...arguments),this.isLoading=!0,this.showAttributionOverlay=!1}handleLoad(){this.isLoading=!1}handleError(){this.isLoading=!1}get classes(){return{"image-card":!0,"image-card--loading":this.isLoading,"image-card--landscape":"landscape"===(0,aL.FK)(this.image),"image-card--portrait":"portrait"===(0,aL.FK)(this.image),"image-card--square":"square"===(0,aL.FK)(this.image)}}get attribution(){return(0,aL.dF)(this.image)}};(0,r.gn)([(0,l.fI)({required:!0})],cL.prototype,"image",void 0),cL=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],cL);const dL=cL,uL=dL;var pL=(0,N.Z)(uL,rL,lL,!1,null,null,null);const hL=pL.exports;let gL=class extends s.ZP{constructor(){super(...arguments),this.searchKeyword="",this.searchResults=[],this.isSearching=!1,this.currentSearchTerm="",this.currentPage=1,this.hasMoreImages=!0,this.debouncedLogSearchFn=qa()((e=>{(0,Tt.K)("FutureLayer Stock Image Search",{searchTerm:e})}),1e3)}get aiKeywords(){return this.imageControlData?.keywords||[]}get displayedImages(){return this.searchResults.length>0?this.searchResults:this.imageControlData?.searchResults||[]}mounted(){this.aiKeywords.length>0&&(this.searchKeyword=this.aiKeywords[0],this.currentSearchTerm=this.aiKeywords[0])}async loadMoreImages(){if(this.searchKeyword.trim()){this.isSearching=!0,this.currentPage+=1;try{const e=await(0,oL.Ok)({query:this.searchKeyword,page:this.currentPage,per_page:12},new AbortController);e.length>0?this.searchResults=[...this.searchResults,...e]:this.hasMoreImages=!1}catch(e){console.error("Image search failed:",e)}finally{this.isSearching=!1}}}useKeyword(e){this.searchKeyword=e,this.searchImages()}async searchImages(){if(this.searchKeyword.trim()){this.isSearching=!0,this.currentSearchTerm=this.searchKeyword,this.currentPage=1,this.hasMoreImages=!0;try{const e=await(0,oL.Ok)({query:this.searchKeyword,page:this.currentPage,per_page:20},new AbortController);this.searchResults=e,this.hasMoreImages=e.length>0}catch(e){console.error("Image search failed:",e),this.searchResults=[],this.hasMoreImages=!1}finally{this.isSearching=!1}}}previewImage(e){const t=e.urls.regular||"";this.$emit("image-previewed",t)}restoreOriginalImage(){this.$emit("image-restored")}selectImage(e){this.$emit("image-selected",e)}getImageSource(e){return(0,aL.I)(e)?"Unsplash":"Pexels"}onSearchKeywordChange(){this.debouncedLogSearchFn(this.searchKeyword)}};(0,r.gn)([(0,l.fI)({default:null})],gL.prototype,"imageControlData",void 0),(0,r.gn)([(0,l.RL)("searchKeyword")],gL.prototype,"onSearchKeywordChange",null),gL=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,NiceButton:Br.Z,Icon:He.Z,FutureImageThumbnail:hL}})],gL);const mL=gL,vL=mL;var yL=(0,N.Z)(vL,sL,iL,!1,null,null,null);const fL=yL.exports;var _L=n(10921),bL=n(52166),SL=n(86025),CL=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"panel-header",class:{"panel-header--global":e.isGlobal}},[t("h1",{staticClass:"panel-header__title",class:{"panel-header__title--link":e.backState},on:{click:e.goBackToPanelState}},[e.backState?t("Icon",{staticClass:"panel-header__title-chevron",attrs:{icon:"ChevronDownSolidIcon",rotate:"90",size:"14"}}):e._e(),e.isGlobal?t("Icon",{staticClass:"panel-header__global-icon",attrs:{icon:"GlobeIcon",size:"20"}}):e._e(),t("span",{staticClass:"panel-header__title-parent"},[e._v(e._s(e.parentTitle))]),e.childTitle?[t("span",{staticClass:"panel-header__title-divider"},[e._v("/")]),t("span",{staticClass:"panel-header__title-child"},[e._v(e._s(e.childTitle))])]:e._e()],2),t("div",{staticClass:"panel-header__actions"},[e._t("actions")],2)])},xL=[];let wL=class extends s.ZP{goBackToPanelState(){"function"===typeof this.backState?this.backState():this.backState&&c.singularityStore.setSingularityLeftPanel(this.backState)}};(0,r.gn)([(0,l.fI)({default:"Title"})],wL.prototype,"parentTitle",void 0),(0,r.gn)([(0,l.fI)()],wL.prototype,"childTitle",void 0),(0,r.gn)([(0,l.fI)()],wL.prototype,"backState",void 0),(0,r.gn)([(0,l.fI)({default:!1})],wL.prototype,"isGlobal",void 0),wL=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],wL);const IL=wL,PL=IL;var kL=(0,N.Z)(PL,CL,xL,!1,null,null,null);const EL=kL.exports;var TL=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"gallery-image-strip"},[t("div",{staticClass:"gallery-images-container"},[t("draggable",e._b({staticClass:"gallery-images-draggable",attrs:{value:e.galleryImages,group:"images"},on:{input:e.updateGallery}},"draggable",e.dragOptions,!1),[e._l(e.galleryImages,(function(n,s){return t("div",{key:s,staticClass:"gallery-image-item",class:{selected:s===e.selectedIndex},on:{click:function(t){return e.selectImage(s)}}},[n&&n.url?t("img",{staticClass:"gallery-thumbnail",attrs:{src:n.url,alt:n.caption||""}}):t("div",{staticClass:"gallery-thumbnail empty"},[t("span",[e._v("No Image")])]),e.galleryImages.length>1?t("button",{staticClass:"delete-image-btn",on:{click:function(t){return t.stopPropagation(),e.deleteImage(s)}}},[e._v(" × ")]):e._e()])})),t("button",{staticClass:"add-image-btn",on:{click:e.addImage}},[e._v("+")])],2)],1)])},DL=[];let AL=class extends s.ZP{constructor(){super(...arguments),this.dragOptions={animation:200,forceFallback:!0,filter:".add-image-btn",ghostClass:"is-ghost-image"}}updateGallery(e){const t=e.map((e=>({image:e,type:"image"})));c.documentStore.unthrottledPropertyChanged({elementId:this.elementId,path:this.repeaterBasePath,value:t,meta:{snapshotLabel:"Reorder Gallery Images"}})}get repeaterBasePath(){return this.basePathToImageControl.split("[]")[0]}get repeaterSubPath(){const e=this.basePathToImageControl.split("[]");return e[1]?.startsWith(".")?e[1].substring(1):e[1]}get repeaterArrayValue(){const e=(0,ge.findNode)(c.documentStore.document.tree,this.elementId);if(!e)return[];const t=j()(e.data.properties,this.repeaterBasePath);return Array.isArray(t)?t:[]}get galleryImages(){return this.repeaterArrayValue.map((e=>this.repeaterSubPath?j()(e,this.repeaterSubPath)||null:e)).filter(Boolean)}get selectedIndex(){return Math.max(0,Math.min(this.selectedImageIndex,this.galleryImages.length-1))}get pathToImageControlWhenInGalleryMode(){return`${this.repeaterBasePath}[${this.selectedIndex}].${this.repeaterSubPath}`}get pathToImageCaptionWhenInGalleryMode(){return`${this.repeaterBasePath}[${this.selectedIndex}].caption`}emitPathChange(){this.$emit("path-selected",this.pathToImageControlWhenInGalleryMode),this.$emit("caption-path-selected",this.pathToImageCaptionWhenInGalleryMode)}emitIndexChange(){this.$emit("index-changed",this.selectedIndex)}selectImage(e){e>=0&&e=this.galleryImages.length||this.galleryImages.length<=1)return;const t=[...this.repeaterArrayValue];t.splice(e,1),c.documentStore.unthrottledPropertyChanged({elementId:this.elementId,path:this.repeaterBasePath,value:t,meta:{snapshotLabel:"Delete Image from Gallery"}});let n=this.selectedIndex;e<=this.selectedIndex&&(n=Math.max(0,this.selectedIndex-1)),n>=t.length&&(n=t.length-1),this.$emit("index-changed",n)}};(0,r.gn)([(0,l.fI)({required:!0})],AL.prototype,"basePathToImageControl",void 0),(0,r.gn)([(0,l.fI)({required:!0})],AL.prototype,"elementId",void 0),(0,r.gn)([(0,l.fI)({default:0})],AL.prototype,"selectedImageIndex",void 0),(0,r.gn)([(0,l.RL)("pathToImageControlWhenInGalleryMode",{immediate:!0})],AL.prototype,"emitPathChange",null),(0,r.gn)([(0,l.RL)("selectedIndex")],AL.prototype,"emitIndexChange",null),AL=(0,r.gn)([(0,l.wA)({components:{draggable:ev()}})],AL);const ZL=AL,OL=ZL;var ML=(0,N.Z)(OL,TL,DL,!1,null,null,null);const BL=ML.exports;var LL=n(81452),NL=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("MediaUploadDialog",{attrs:{open:e.open,multiple:e.multiple,"selected-media":e.value,"accepted-file-types":e.mediaInputOptions,"active-tab":e.activeTab},on:{input:e.onMediaSelected,close:function(t){return e.$emit("close")}}})},FL=[];let RL=class extends s.ZP{constructor(){super(...arguments),this.open=!1}onDialogOpenChange(e){this.open=e}get acceptedFileTypes(){return this.mediaInputOptions?.acceptedFileTypes||[]}updateValue(e){this.$emit("input",e)}async onMediaSelected(e){const t=(0,wd.Z)(this.value);Array.isArray(t)&&Array.isArray(e)?(t.push(...e),this.updateValue(t)):this.updateValue(e)}};(0,r.gn)([(0,l.fI)()],RL.prototype,"value",void 0),(0,r.gn)([(0,l.fI)()],RL.prototype,"mediaInputOptions",void 0),(0,r.gn)([(0,l.fI)()],RL.prototype,"multiple",void 0),(0,r.gn)([(0,l.fI)()],RL.prototype,"dialogOpen",void 0),(0,r.gn)([(0,l.fI)({default:"library"})],RL.prototype,"activeTab",void 0),(0,r.gn)([(0,l.RL)("dialogOpen",{immediate:!0})],RL.prototype,"onDialogOpenChange",null),RL=(0,r.gn)([(0,l.wA)({components:{MediaUploadDialog:LL.Z}})],RL);const VL=RL,$L=VL;var WL=(0,N.Z)($L,NL,FL,!1,null,null,null);const UL=WL.exports;var zL=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-image-browser-suggested"},[e.displayedImages.length>0?t("div",{staticClass:"images-grid-small"},e._l(e.displayedImages,(function(e){return t("div",{key:e.id,staticClass:"image-card-small"},[t("img",{attrs:{src:e.urls.regular,alt:e.alt_description||""}})])})),0):e._e()])},HL=[];let GL=class extends s.ZP{constructor(){super(...arguments),this.limit=3}get displayedImages(){return this.imageControlData?.searchResults.slice(0,this.limit)||[]}};(0,r.gn)([(0,l.fI)({default:null})],GL.prototype,"imageControlData",void 0),GL=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,NiceButton:Br.Z,Icon:He.Z}})],GL);const KL=GL,jL=KL;var qL=(0,N.Z)(jL,zL,HL,!1,null,null,null);const XL=qL.exports;var YL;(function(e){e["Main"]="main",e["Options"]="options",e["UploadDialog"]="uploadDialog",e["StockImages"]="stockImages",e["Loading"]="loading"})(YL||(YL={}));let QL=class extends s.ZP{constructor(){super(...arguments),this.originalMediaValue=null,this.pathToImageControlWhenInGalleryMode=null,this.pathToImageCaptionWhenInGalleryMode=null,this.editorView=YL.Main,this.EditorView=YL,this.options=[{label:"File Upload",value:"file_upload",icon:"UploadFileIcon",description:"Upload from your computer.",action:()=>{this.openWPMediaUploadDialog("upload")}},{label:"Browse Library",value:"browse_library",icon:"ImageIcon",description:"Choose from your media library.",action:()=>{this.openWPMediaUploadDialog("library")}},{label:"Curated for You",value:"stock",icon:"SparklesIcon",description:"Search thousands of free images.",action:()=>{this.setEditorView(YL.StockImages),(0,Tt.K)("FutureLayer Image Editor Open Stock Images")}}],this.activeWPMediaDialogTab="library",this.addIsOpen=!1}mounted(){Ke.uq.register(je.r.SHIFT_ESC,(()=>{this.setEditorView(YL.Main)})),"options"===this.initialStep?this.setEditorView(YL.Options):this.setEditorView(YL.Main)}beforeDestroy(){Ke.uq.unbind(je.r.SHIFT_ESC)}setEditorView(e){this.editorView=e||YL.Main}setOptionView(){this.setEditorView(YL.Options)}get isMainView(){return this.editorView===YL.Main}get isOptionsView(){return this.editorView===YL.Options}get isUploadDialogView(){return this.editorView===YL.UploadDialog}get isStockImagesView(){return this.editorView===YL.StockImages}get isLoadingView(){return this.editorView===YL.Loading}get backState(){return this.isOptionsView?this.setEditorView:this.isStockImagesView?this.setOptionView:"page_structure"}get childTitle(){return this.isOptionsView?"Update":this.isStockImagesView?"Stock Images":null}get imageHasUrl(){return this.currentMediaInputValue?.url&&this.currentMediaInputValue.url.length>0}get currentCaptionValue(){if(!this.elementId||!this.pathToImageCaptionWhenInGalleryMode||!this.isGalleryMode)return"";const e=(0,ge.findNode)(c.documentStore.document.tree,this.elementId);if(!e)return"";const t=j()(e.data.properties,this.pathToImageCaptionWhenInGalleryMode);return t||""}updateCaption(e){this.elementId&&this.pathToImageCaptionWhenInGalleryMode&&this.isGalleryMode&&c.documentStore.unthrottledPropertyChanged({elementId:this.elementId,path:this.pathToImageCaptionWhenInGalleryMode,value:e,meta:{snapshotLabel:`Gallery Image ${this.selectedImageIndex+1} Caption Update`}})}openWPMediaUploadDialog(e){this.activeWPMediaDialogTab=e,this.setEditorView(YL.UploadDialog),(0,Tt.K)("FutureLayer Image Editor Open WP Media Dialog",{tab:e})}get panelTitle(){return this.isGalleryMode?"Edit Gallery":"Edit Image"}get elementId(){return c.singularityStore.imageEditorPanelState?.elementId}get basePathToImageControl(){return c.singularityStore.imageEditorPanelState?.controlPath}get selectedImageIndex(){return c.singularityStore.imageEditorPanelState?.selectedImageIndex??0}get initialStep(){return c.singularityStore.imageEditorPanelState?.initialStep??"main"}get isGalleryMode(){return this.basePathToImageControl?.includes("[]")||!1}get pathToImageControl(){return this.isGalleryMode&&this.pathToImageControlWhenInGalleryMode?this.pathToImageControlWhenInGalleryMode:this.basePathToImageControl}get futureLayerImageData(){const e=(0,ge.findNode)(c.documentStore.document.tree,this.elementId);return e?(0,bL.p5)(e):null}get node(){return(0,ge.findNode)(c.documentStore.document.tree,this.elementId)}get futureLayerImageDataForCurrentImage(){const e=this.futureLayerImageData;return this.isGalleryMode?e?.[this.selectedImageIndex]||null:e?.[0]||null}get currentMediaInputValue(){if(!this.elementId||!this.pathToImageControl)return null;const e=(0,ge.findNode)(c.documentStore.document.tree,this.elementId);if(!e)return null;const t=j()(e.data.properties,this.pathToImageControl);return t||null}updateMediaInputValue(e){this.elementId&&this.pathToImageControl&&c.documentStore.unthrottledPropertyChanged({elementId:this.elementId,path:this.pathToImageControl,value:e,meta:{snapshotLabel:this.isGalleryMode?`Gallery Image ${this.selectedImageIndex+1} Update`:"Image Editor Media Input Update"}})}updateSelectedImageIndex(e){this.elementId&&this.basePathToImageControl&&c.singularityStore.setImageEditorPanelState({elementId:this.elementId,controlPath:this.basePathToImageControl,selectedImageIndex:e,initialStep:this.initialStep})}handleImagePreviewed(e){this.originalMediaValue||(this.originalMediaValue=this.currentMediaInputValue);const t={type:"external_image",url:e,alt:"",caption:"",id:-1};this.updateMediaInputValue(t)}handleImageRestored(){this.originalMediaValue&&(this.updateMediaInputValue(this.originalMediaValue),this.originalMediaValue=null)}async handleImageSelected(e){if(!this.node)return;if(this.originalMediaValue=null,this.setEditorView(YL.Loading),(0,SL.oI)(e)){const t=(0,aL.Zu)(e,(0,aL.Jp)(this.node)),n=await(0,SL.Aq)(t,e,new AbortController);if(n){const e=(0,SL.oM)(n);return this.updateMediaInputValue(e),void this.setEditorView(YL.Main)}}const t=(0,_L.Bs)(e);this.updateMediaInputValue(t),this.setEditorView(YL.Main)}openAdd(){this.addIsOpen=!this.addIsOpen}get mediaInputOptions(){return{acceptedFileTypes:["image"]}}get uiStoreActiveElementId(){return c.uiStore.activeElementId}closePanelIfElementIdChanges(){this.elementId!==this.uiStoreActiveElementId&&c.singularityStore.setImageEditorPanelState(null)}};(0,r.gn)([(0,l.RL)("uiStoreActiveElementId")],QL.prototype,"closePanelIfElementIdChanges",null),QL=(0,r.gn)([(0,l.wA)({components:{Dropdown:Oc.Z,IconButton:Xa.Z,PanelHeader:uI,WPMediaInput:nL.Z,FutureLayerImageBrowser:fL,SingularityPanelHeader:EL,GalleryStrip:BL,SingularityBadge:Sr,NiceButton:Br.Z,SingularityOption:Or,MediaUploadDialog:LL.Z,SingularityMediaUploadDialog:UL,MediaPreview:IM.Z,MediaChooserLayer:PM.Z,FutureLayerImageSuggested:XL,Icon:He.Z,TextInput:na.Z}})],QL);const JL=QL,eN=JL;var tN=(0,N.Z)(eN,eL,tL,!1,null,null,null);const nN=tN.exports;var sN=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"background-image-editor vscroll-wrap vscroll-scroll"},[t("PanelHeader",{ref:"panelHeader",on:{close:e.close},scopedSlots:e._u([{key:"right",fn:function(){return[t("IconButton",{staticClass:"breakdance-panel-header-left-of-close-button",attrs:{size:16,small:"",icon:"PlusIconSolid"},on:{click:function(t){return e.$emit("something")}}}),t("Dropdown",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("IconButton",e._g({staticClass:"breakdance-panel-header-left-of-close-button",attrs:{size:16,small:"",icon:"EllipsisStrokeIcon"}},n))]}}])},[t(Ec.Z,[t(Tc.Z,{attrs:{dense:""},on:{click:function(t){return e.$emit("edit-background-image")}}},[t(Dc.V9,[e._v(" Edit Background Image ")])],1)],1)],1)]},proxy:!0}])},[t("IconButton",{staticClass:"breakdance-panel-header-left-of-close-button",attrs:{size:16,small:"",icon:"ArrowLeftIcon"},on:{click:e.backToPageStructurePanel}}),e._v(" Edit Background Image ")],1),t("div",{staticClass:"background-image-editor-content-wrapper"},[t("div",{staticClass:"background-image-editor-current-image"},[t("h2",[e._v("Current Background Image")]),t("WPMediaInput",{attrs:{value:e.mediaInputValue,"media-options":e.mediaInputOptions},on:{input:e.updateMediaInputValue}})],1),t("UnsplashImageBrowser",{on:{"image-selected":e.handleImageSelected}})],1)],1)},iN=[],oN=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"unsplash-image-browser"},[t("h2",[e._v("Search Images")]),t("div",{staticClass:"unsplash-image-browser-search-input-wrapper"},[t("TextInput",{model:{value:e.unsplashSearchQuery,callback:function(t){e.unsplashSearchQuery=t},expression:"unsplashSearchQuery"}}),t("NiceButton",{attrs:{loading:e.loading},on:{click:e.searchUnsplash}},[e._v(" Search ")]),t(tg.Z,{attrs:{items:["landscape","portrait","squarish"],label:"Orientation",outlined:""},model:{value:e.unsplashSearchOrientation,callback:function(t){e.unsplashSearchOrientation=t},expression:"unsplashSearchOrientation"}})],1),e._l(e.images,(function(n,s){return t("div",{key:s,staticClass:"unsplash-image-wrapper"},[t("img",{attrs:{src:n.urls.regular,alt:n.alt_description||""},on:{click:function(t){return e.selectImage(n)}}}),t("p",[e._v(e._s(n.description||""))])])})),0!==e.images.length||e.loading?e._e():t("div",[e._v(" Search for images using the input above ")])],2)},aN=[];let rN=class extends s.ZP{constructor(){super(...arguments),this.images=[],this.unsplashSearchOrientation="landscape",this.unsplashSearchQuery="",this.loading=!1}async searchUnsplash(){if(this.unsplashSearchQuery.trim()){this.loading=!0;try{const e=await(0,oL.Ok)({query:this.unsplashSearchQuery,page:1,per_page:20},new AbortController);this.images=e}catch(e){console.error("Error searching Unsplash:",e),this.images=[]}finally{this.loading=!1}}}selectImage(e){this.$emit("image-selected",e)}};rN=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,NiceButton:Br.Z}})],rN);const lN=rN,cN=lN;var dN=(0,N.Z)(cN,oN,aN,!1,null,null,null);const uN=dN.exports;let pN=class extends s.ZP{get sectionId(){return c.singularityStore.backgroundImageEditorPanelState?.sectionId}get mediaInputValue(){if(!this.sectionId)return null;const e=(0,ge.findNode)(c.documentStore.document.tree,this.sectionId);if(!e)return null;const t=j()(e.data.properties,gN);return t||null}updateMediaInputValue(e){this.sectionId&&c.documentStore.unthrottledPropertyChanged({elementId:this.sectionId,path:gN,value:e,meta:{snapshotLabel:"Background Image Editor Media Input Update"}})}get mediaInputOptions(){return{acceptedFileTypes:["image"]}}backToPageStructurePanel(){c.singularityStore.setSingularityLeftPanel("page_structure")}handleImageSelected(e){const t=(0,_L.Bs)(e);this.updateMediaInputValue(t)}close(){alert("close")}get uiStoreActiveElementId(){return c.uiStore.activeElementId}closePanelIfElementIdChanges(){this.sectionId!==this.uiStoreActiveElementId&&c.singularityStore.setBackgroundImageEditorPanelState(null)}};(0,r.gn)([(0,l.RL)("uiStoreActiveElementId")],pN.prototype,"closePanelIfElementIdChanges",null),pN=(0,r.gn)([(0,l.wA)({components:{Dropdown:Oc.Z,IconButton:Xa.Z,PanelHeader:uI,WPMediaInput:nL.Z,UnsplashImageBrowser:uN}})],pN);const hN=pN,gN="design.background.image",mN=hN;var vN=(0,N.Z)(mN,sN,iN,!1,null,null,null);const yN=vN.exports;var fN=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"icon-editor vscroll-wrap vscroll-scroll"},[t("SingularityPanelHeader",{attrs:{parentTitle:"Edit Icon",backState:"page_structure"}}),t("div",{staticClass:"icon-editor-content-wrapper"},[t("IconInput",{attrs:{value:e.iconInputValue},on:{input:e.updateIconInputValue}})],1)],1)},_N=[],bN=n(77963);let SN=class extends s.ZP{get iconId(){return c.singularityStore.iconEditorPanelState.iconId}get iconInputValue(){if(!this.iconId)return null;const e=(0,ge.findNode)(c.documentStore.document.tree,this.iconId);if(!e)return null;const t=j()(e.data.properties,xN);return t||null}updateIconInputValue(e){this.iconId&&c.documentStore.unthrottledPropertyChanged({elementId:this.iconId,path:xN,value:e,meta:{snapshotLabel:"Icon Editor Input Update"}})}};SN=(0,r.gn)([(0,l.wA)({components:{IconInput:bN.Z,SingularityPanelHeader:EL}})],SN);const CN=SN,xN="content.content.icon",wN=CN;var IN=(0,N.Z)(wN,fN,_N,!1,null,null,null);const PN=IN.exports;var kN=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"text-editor vscroll-wrap vscroll-scroll"},[t("SingularityPanelHeader",{attrs:{parentTitle:"Edit Text",backState:"page_structure"}}),t("div",{staticClass:"text-editor-content-wrapper"},[t("TextInput",{attrs:{value:e.textInputValue,multiline:!0},on:{input:e.updateTextInputValue}})],1)],1)},EN=[];let TN=class extends s.ZP{get uiStoreActiveElementId(){return c.uiStore.activeElementId}closePanelIfElementIdChanges(){this.textEditorPanelState?.elementId!==this.uiStoreActiveElementId&&c.singularityStore.setTextEditorPanelState(null)}get textEditorPanelState(){return c.singularityStore.textEditorPanelState}get textInputValue(){if(!this.textEditorPanelState)return null;const e=(0,ge.findNode)(c.documentStore.document.tree,this.textEditorPanelState.elementId);if(!e)return null;const t=j()(e.data.properties,this.textEditorPanelState.contentEditablePropertyPath);return t||null}updateTextInputValue(e){this.textEditorPanelState?.elementId&&c.documentStore.unthrottledPropertyChanged({elementId:this.textEditorPanelState.elementId,path:this.textEditorPanelState.contentEditablePropertyPath,value:e,meta:{snapshotLabel:"Text Editor Input Update"}})}};(0,r.gn)([(0,l.RL)("uiStoreActiveElementId")],TN.prototype,"closePanelIfElementIdChanges",null),TN=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,SingularityPanelHeader:EL}})],TN);const DN=TN,AN=DN;var ZN=(0,N.Z)(AN,kN,EN,!1,null,null,null);const ON=ZN.exports;var MN=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-panel vscroll-wrap vscroll-scroll"},[t("div",{staticClass:"singularity-panel__wrapper"},[t("SingularityPanelHeader",{attrs:{parentTitle:"Edit",childTitle:"Link",backState:"page_structure"}}),t("div",{staticClass:"singularity-panel__content"},e._l(e.linkPropertyPaths,(function(n){return t("div",{key:n},[t("LinkInput",{attrs:{value:e.linkInputValue(n)},on:{input:function(t){return e.updateLinkInputValue(t,n)}}})],1)})),0)],1)])},BN=[],LN=n(98236);let NN=class extends s.ZP{get linkEditorPanelState(){return c.singularityStore.linkEditorPanelState}get uiStoreActiveElementId(){return c.uiStore.activeElementId}closePanelIfElementIdChanges(){this.linkEditorPanelState?.elementId!==this.uiStoreActiveElementId&&c.singularityStore.setLinkEditorPanelState(null)}get linkPropertyPaths(){return c.singularityStore.linkEditorPanelState?.linkPropertyPaths}linkInputValue(e){if(!this.linkEditorPanelState)return null;const t=(0,ge.findNode)(c.documentStore.document.tree,this.linkEditorPanelState.elementId);if(!t)return null;const n=j()(t.data.properties,e);return n||null}updateLinkInputValue(e,t){this.linkEditorPanelState?.elementId&&c.documentStore.unthrottledPropertyChanged({elementId:this.linkEditorPanelState.elementId,path:t,value:e,meta:{snapshotLabel:"Link Editor Input Update"}})}close(){alert("close")}backToPageStructurePanel(){c.singularityStore.setLinkEditorPanelState(null)}};(0,r.gn)([(0,l.RL)("uiStoreActiveElementId")],NN.prototype,"closePanelIfElementIdChanges",null),NN=(0,r.gn)([(0,l.wA)({components:{LinkInput:LN.Z,SingularityPanelHeader:EL}})],NN);const FN=NN,RN=FN;var VN=(0,N.Z)(RN,MN,BN,!1,null,null,null);const $N=VN.exports;var WN=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-panel vscroll-wrap vscroll-scroll singularity-edit-content-properties-panel"},[t("div",{staticClass:"singularity-panel__wrapper"},[t("SingularityPanelHeader",{attrs:{parentTitle:e.panelTitle}}),t("div",{staticClass:"singularity-panel__content"},[t("div",{staticClass:"singularity-controls-tree"},[e.contentSections?t("ControlsTree",{attrs:{controls:e.contentSections,path:"content",forceFirstSectionOpen:!0}}):e._e()],1)])],1)])},UN=[];let zN=class extends s.ZP{constructor(){super(...arguments),this.editingElementControlsTreeContext=Tx.rq}get contentSections(){return c.uiStore.activeElement?c.configStore.element(c.uiStore.activeElement.data.type).controls.contentSections:null}get contentPropertiesEditorPanelState(){return c.singularityStore.contentPropertiesEditorPanelState}get panelTitle(){return c.uiStore.activeElement?c.configStore.element(c.uiStore.activeElement.data.type).name:null}};(0,r.gn)([(0,l.DF)("context")],zN.prototype,"editingElementControlsTreeContext",void 0),zN=(0,r.gn)([(0,l.wA)({components:{ControlsTree:_C["default"],SingularityPanelHeader:EL}})],zN);const HN=zN,GN=HN;var KN=(0,N.Z)(GN,WN,UN,!1,null,null,null);const jN=KN.exports;var qN=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"header-footer-editor vscroll-wrap vscroll-scroll"},[t("SingularityPanelHeader",{attrs:{parentTitle:(e.isHeader?"Header":"Footer")+" Editor",isGlobal:"true"}}),t("div",{staticClass:"header-footer-editor-content-wrapper"},[t("div",{staticClass:"header-footer-editor-section-card"},[t("label",[e._v("Layout")]),e.sectionCardData?t("SectionCard",{attrs:{value:e.sectionCardData,showLabel:!0,isGlobal:!0},nativeOn:{click:function(t){return e.replaceWithAnother.apply(null,arguments)}}}):e._e(),t("NiceButton",{attrs:{"left-icon":"Grid2Icon",color:"gray",expanded:"true"},on:{click:e.replaceWithAnother}},[e._v("Update Layout ")])],1),t("div",{staticClass:"page-structure-section__divider"}),e.sectionIdToOperateOn?t("EditWithAiButton",{attrs:{nodeId:e.sectionIdToOperateOn}}):e._e(),t("div",{staticClass:"page-structure-section__divider"}),t("PageStructureSectionColorsNew",{attrs:{elementId:e.sectionIdToOperateOn,isOverlayHeader:e.isOverlayHeader}})],1)],1)},XN=[],YN=n(93979),QN=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"page-structure-section-colors-new"},[e._m(0),e.isOverlayHeader?t("div",{staticClass:"overlay-header-message"},[e._v(" Color scheme inherited from section ")]):t("div",{staticClass:"category-swatches-wrapper"},[t("div",{staticClass:"category-swatches"},e._l(e.availableCategories,(function(n){return t("div",{key:n.name,staticClass:"category-swatch",class:{"category-swatch--selected":e.selectedCategory===n.name},style:e.getCategoryStyle(n.scheme),attrs:{role:"button"},on:{click:function(t){return e.toggleCategory(n.name)}}},[t("div",{staticClass:"category-swatch__bg"}),t("div",{staticClass:"category-swatch__text"})])})),0),t("button",{staticClass:"randomize-button",attrs:{title:"Randomize color scheme"},on:{click:e.randomizeAll}},[t("Icon",{attrs:{icon:"ShuffleIcon",size:"16"}})],1)]),e.selectedCategory&&!e.isOverlayHeader?t("div",{staticClass:"color-scheme-picker"},[t("ColorSchemePicker",{attrs:{elementId:e.elementId,currentSchemeString:e.colorSchemeString,category:e.selectedCategory},on:{select:e.handleSchemeSelected}})],1):e._e()])},JN=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"page-structure-section__content-field"},[t("label",[e._v("Color Scheme")])])}],eF=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"color-scheme-picker-panel"},[t("div",{staticClass:"color-scheme-picker-panel__content"},[t("div",{staticClass:"scheme-controls"},[t("div",{staticClass:"scheme-controls__swatch",style:e.currentSwatchStyle},[t("div",{staticClass:"scheme-controls__swatch-letter"},[e._v("A")])]),t("input",{staticClass:"scheme-controls__slider",attrs:{type:"range",min:0,max:e.categorySchemes.length-1},domProps:{value:e.selectedIndex},on:{input:e.onSliderChange}}),t("button",{staticClass:"scheme-controls__button",attrs:{title:"Random scheme"},on:{click:e.shuffleScheme}},[t("Icon",{attrs:{icon:"ShuffleIcon",size:"16"}})],1),t("button",{staticClass:"scheme-controls__button",attrs:{title:"Show all schemes"},on:{click:e.toggleGrid}},[t("Icon",{attrs:{icon:"EllipsisIcon",size:"16"}})],1)]),e.showGrid?t("div",{staticClass:"schemes-grid"},e._l(e.categorySchemes,(function(n,s){return t("ColorSchemeCard",{key:s,attrs:{scheme:n,schemeString:e.getSchemeString(s),isSelected:e.getSchemeString(s)===e.currentSchemeString},on:{select:function(t){e.selectScheme(e.getSchemeString(s),n)}}})})),1):e._e()])])},tF=[],nF=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"color-scheme-card",class:{"color-scheme-card--selected":e.isSelected},style:e.previewStyle,attrs:{role:"button"},on:{click:e.select}},[t("div",{staticClass:"color-scheme-card__letter"},[e._v("A")]),e.isSelected?t("div",{staticClass:"color-scheme-card__checkmark"},[t("Icon",{attrs:{icon:"CheckIcon",size:"12"}})],1):e._e()])},sF=[];let iF=class extends s.ZP{get shadeLabel(){return(0,HM.uz)(this.scheme,this.schemeString)}get previewStyle(){return{"--card-bg":this.scheme.background.value?.toString(),"--card-text":this.scheme.contrastedFromBackgroundForText.value?.toString()}}select(){this.$emit("select")}};(0,r.gn)([(0,l.fI)({required:!0})],iF.prototype,"scheme",void 0),(0,r.gn)([(0,l.fI)({required:!0})],iF.prototype,"schemeString",void 0),(0,r.gn)([(0,l.fI)({default:!1})],iF.prototype,"isSelected",void 0),iF=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],iF);const oF=iF,aF=oF;var rF=(0,N.Z)(aF,nF,sF,!1,null,null,null);const lF=rF.exports;let cF=class extends s.ZP{constructor(){super(...arguments),this.showGrid=!1}get allSchemes(){return(0,YM.W)(Q.fz.brand.color)}get categorySchemes(){return"primary"===this.category?this.allSchemes.primary:"secondary1"===this.category?this.allSchemes.secondary[0]||[]:"secondary2"===this.category?this.allSchemes.secondary[1]||[]:"neutral"===this.category?this.allSchemes.neutral:[]}get selectedIndex(){const e=this.categorySchemes.findIndex(((e,t)=>this.getSchemeString(t)===this.currentSchemeString));return e>=0?e:0}get currentScheme(){return this.categorySchemes[this.selectedIndex]}get currentSwatchStyle(){return this.currentScheme?{"--card-bg":this.currentScheme.background.value?.toString(),"--card-text":this.currentScheme.contrastedFromBackgroundForText.value?.toString()}:{}}getSchemeString(e){return(0,HM.$w)(this.category,e)}onSliderChange(e){const t=e.target,n=parseInt(t.value),s=this.categorySchemes[n];s&&this.selectScheme(this.getSchemeString(n),s)}shuffleScheme(){const e=Math.floor(Math.random()*this.categorySchemes.length),t=this.categorySchemes[e];t&&this.selectScheme(this.getSchemeString(e),t)}toggleGrid(){this.showGrid=!this.showGrid}close(){this.$emit("close")}selectScheme(e,t){this.$emit("select",e,t)}};(0,r.gn)([(0,l.fI)({required:!0})],cF.prototype,"elementId",void 0),(0,r.gn)([(0,l.fI)({default:""})],cF.prototype,"currentSchemeString",void 0),(0,r.gn)([(0,l.fI)({required:!0})],cF.prototype,"category",void 0),cF=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,ColorSchemeCard:lF}})],cF);const dF=cF,uF=dF;var pF=(0,N.Z)(uF,eF,tF,!1,null,null,null);const hF=pF.exports;let gF=class extends s.ZP{get element(){return(0,ge.findNode)(Q.Hb.document.tree,this.elementId)}get chosenScheme(){if(!this.element)return HM.RT;const e=j()(this.element,"data.properties.settings.advanced.classes",[]);return(0,HM.kr)(e)}get colorSchemeString(){return this.chosenScheme.schemeString}get selectedCategory(){return this.chosenScheme.category}get schemeIndex(){return this.chosenScheme.index}get categoryLabel(){if(!this.selectedCategory)return"";const e={primary:"Primary",secondary1:"Secondary 1",secondary2:"Secondary 2",neutral:"Neutral"};return e[this.selectedCategory]||""}get allSchemes(){return(0,YM.W)(Q.fz.brand.color)}get availableCategories(){return(0,HM.n)(this.allSchemes,this.selectedCategory,this.schemeIndex)}getCategoryStyle(e){return e?{"--swatch-bg":e.background.value?.toString(),"--swatch-text":e.contrastedFromBackgroundForText.value?.toString()}:{}}toggleCategory(e){console.log("toggleCategory called with:",e,"current:",this.selectedCategory);const t=this.selectedCategory===e;t||this.selectRandomSchemeForCategory(e)}selectRandomSchemeForCategory(e){const t=(0,HM.w5)(e,this.allSchemes);t&&this.handleSchemeSelected(t.schemeString,t.scheme)}randomizeAll(){const e=(0,HM.qA)(this.allSchemes);e&&this.handleSchemeSelected(e.schemeString,e.scheme)}handleSchemeSelected(e,t){this.element&&(0,HM.Q8)(this.elementId,this.element,e,t)}};(0,r.gn)([(0,l.fI)({required:!0})],gF.prototype,"elementId",void 0),(0,r.gn)([(0,l.fI)({default:!1})],gF.prototype,"isOverlayHeader",void 0),gF=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,ColorSchemePicker:hF}})],gF);const mF=gF,vF=mF;var yF=(0,N.Z)(vF,QN,JN,!1,null,null,null);const fF=yF.exports;let _F=class extends s.ZP{get elementId(){return c.singularityStore.headerAndFooterEditorPanelState?.elementId}get sectionIdToOperateOn(){return(0,YN.Q)()}get sectionCardData(){return this.sectionIdToOperateOn?pr(this.sectionIdToOperateOn):null}get elementType(){return c.singularityStore.headerAndFooterEditorPanelState?.elementType}get uiStoreActiveElementId(){return c.uiStore.activeElementId}get uiStoreInlineEditingContext(){return c.uiStore.inlineEditingContext}get isHeader(){return"header"===this.elementType}get isOverlayHeader(){if(!this.isHeader||!this.elementId)return!1;const e=(0,ge.findNode)(c.documentStore.document.tree,this.elementId);return!!e&&(0,pi.ju)(e)}editMenu(){c.singularityStore.setSingularityLeftPanel("page_manager")}editLogo(){c.singularityStore.setSingularityLeftPanel("brand")}replaceWithAnother(){this.sectionIdToOperateOn&&(c.singularityStore.setSectionAddOrSwapPanelState({mode:"swap",sectionId:this.sectionIdToOperateOn}),c.singularityStore.setSectionLibraryModalState(!0))}mounted(){this.$watch("uiStoreActiveElementId",(()=>{const e=this.elementId===this.uiStoreActiveElementId,t=this.sectionIdToOperateOn===this.uiStoreActiveElementId;e||t||c.singularityStore.setHeaderAndFooterEditorPanelState(null)})),this.$watch("uiStoreInlineEditingContext",(e=>{e&&e.elementId===this.elementId||c.singularityStore.setHeaderAndFooterEditorPanelState(null)}))}};_F=(0,r.gn)([(0,l.wA)({components:{SingularityPanelHeader:EL,NiceButton:Br.Z,SectionCard:Pr,PageStructureSectionColorsNew:fF,EditWithAiButton:CB}})],_F);const bF=_F,SF=bF;var CF=(0,N.Z)(SF,qN,XN,!1,null,null,null);const xF=CF.exports;var wF=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-wp-page-manager"},[t("div",{staticClass:"singularity-wp-page-manager__wrapper"},[t("div",{staticClass:"singularity-wp-page-manager__header"},[t("div",{staticClass:"singularity-wp-page-manager__header-left"},[t("h1",{staticClass:"singularity-wp-page-manager__header-title"},[t("span",{on:{click:e.closeAdd}},[e._v("Pages")]),e.addIsOpen?t("span",{staticClass:"singularity-wp-page-manager__header-title-child"},[e._v(" / Add Page")]):e._e()])]),t("div",{staticClass:"singularity-wp-page-manager__header-right"},[e.addIsOpen?e._e():t("NiceButton",{attrs:{"left-icon":"PlusIcon",color:"gray",size:"small"},on:{click:e.openAdd}},[e._v(" Add Page")])],1)]),e.addIsOpen?e._e():t("div",{staticClass:"singularity-wp-page-manager__content"},[t("div",{staticClass:"singularity-wp-page-manager__section"},[t("div",{staticClass:"singularity-wp-page-manager__section-header"},[t("h3",{staticClass:"singularity-wp-page-manager__section-title"},[e._v(" Pages In Main Menu ")]),t("span",{staticClass:"singularity-wp-page-manager__section-count"},[e._v(e._s(e.pagesInMenu.length))])]),t("div",{staticClass:"singularity-wp-page-manager__list",class:{"is-saving":e.saveInProgress,"is-opening":e.isOpeningPage,"is-empty":0===e.pagesInMenu.length}},[t("draggable",{staticClass:"singularity-wp-page-manager__menu-dropzone",class:{"is-empty":0===e.pagesInMenu.length},attrs:{handle:".page-drag-handle",group:"pages"},model:{value:e.pagesInMenu,callback:function(t){e.pagesInMenu=t},expression:"pagesInMenu"}},[e._l(e.pagesInMenu,(function(n){return t("WPPageManagerPageNew",{key:n.id,attrs:{value:n},on:{"page-deleted":e.handlePageDeleted,"page-updated":e.updateLocalPageLists}})})),0===e.pagesInMenu.length?t("div",{staticClass:"singularity-wp-page-manager__empty-menu"},[e._v(" Drag pages here to add them to the main menu ")]):e._e()],2)],1)]),t("div",{staticClass:"singularity-wp-page-manager__section"},[t("div",{staticClass:"singularity-wp-page-manager__section-header"},[t("h3",{staticClass:"singularity-wp-page-manager__section-title"},[e._v(" Other Pages "),t("SingularityTooltip",{attrs:{text:"These pages are not included in the main menu. You can drag and drop them into the main menu above."}})],1),t("span",{staticClass:"singularity-wp-page-manager__section-count"},[e._v(e._s(e.otherPages.length))])]),t("div",{staticClass:"singularity-wp-page-manager__list",class:{"is-saving":e.saveInProgress,"is-opening":e.isOpeningPage,"is-empty":0===e.otherPages.length}},[t("draggable",{staticClass:"singularity-wp-page-manager__menu-dropzone",class:{"is-empty":0===e.otherPages.length},attrs:{group:"pages"},model:{value:e.otherPages,callback:function(t){e.otherPages=t},expression:"otherPages"}},[e._l(e.otherPages,(function(n){return t("WPPageManagerPageNew",{key:n.id,attrs:{value:n},on:{"page-deleted":e.handlePageDeleted,"page-updated":e.updateLocalPageLists}})})),0===e.otherPages.length?t("div",{staticClass:"singularity-wp-page-manager__empty-menu"},[e._v(" Drag pages here to remove them from the main menu. ")]):e._e()],2)],1)])]),e.addIsOpen?t("WPPageManagerAddPageWizard",{on:{close:e.closeAdd}}):e._e()],1)])},IF=[],PF=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"wp-page-manager-page-new",class:e.classList,on:{click:function(t){!e.editingTitle&&e.openInCanvas()}}},[t("div",{staticClass:"wp-page-manager-page-new__content"},[t("div",{staticClass:"wp-page-manager-page-new__title"},[t("Icon",{staticClass:"page-drag-handle wp-page-manager-page-new__drag-handle",attrs:{size:18,icon:"GripVerticalSolidIcon"}}),e.isOpeningPageThisPage||e.value.generatingInBackground?t("Icon",{staticClass:"wp-page-manager-page-new__loading-icon",attrs:{size:14,icon:"CircleNotchSolidIcon"}}):t("Icon",{attrs:{size:14,icon:e.isHomepage?"HomeSolidIcon":"PageRegularIcon"}}),t("div",{staticClass:"wp-page-manager-page-new__edit-title",on:{click:function(e){e.stopPropagation()}}},[t("InlineTextEdit",{staticClass:"wp-page-manager-page-new__title-text",attrs:{value:e.value.title||"Untitled",component:"span",active:e.editingTitle},on:{update:e.updatePage,editing:function(t){e.editingTitle=t}}})],1),e.active?t("span",{staticClass:"wp-page-manager-page-new__active-indicator"}):e._e()],1),t("div",{staticClass:"wp-page-manager-page-new__actions"},[t("Dropdown",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("Icon",e._g({staticClass:"breakdance-panel-header-left-of-close-button",attrs:{size:16,icon:"EllipsisSolidIcon"}},n))]}}])},[t(Ec.Z,[t(Tc.Z,{attrs:{dense:""},on:{click:e.setAsHomepage}},[t(Dc.V9,[e._v(" Set as Homepage ")])],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.deletePage}},[t(Dc.V9,[e._v(" Delete ")])],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.setEditMode}},[t(Dc.V9,[e._v(" Edit title ")])],1)],1)],1)],1)])])},kF=[],EF=n(52338);async function TF(e){return(0,id.pipe)(await(0,ad.D)({action:"breakdance_singularity_set_as_homepage",decoder:iu.dt({success:iu.Z_}),dataToPost:{id:e}}),(0,od.fold)((()=>!1),(t=>(c.singularityStore.setHomepageInWP(e),!0))))}let DF=class extends s.ZP{constructor(){super(...arguments),this.additionalOpen=!1,this.deleteInProgress=!1,this.editingTitle=!1,this.newTitle="",this.updateInProgress=!1,this.setAsHomepageInProgress=!1}get isHomepage(){return c.singularityStore.homepageInWP===this.value.id}get isOpeningPageThisPage(){return c.singularityStore.isOpeningPageId===this.value.id}openAdditional(){this.additionalOpen=!this.additionalOpen}async openInCanvas(){c.singularityStore.setIsOpeningPageId(this.value.id),await(0,zl.$)(),await(0,Hl.rI)(this.value.id),c.singularityStore.setSingularityLeftPanel("page_structure"),c.singularityStore.setIsOpeningPageId(!1)}async deletePage(){const e=confirm(`Are you sure you want to delete the page "${this.value.title}"?`);e&&(this.deleteInProgress=!0,await(0,EF.qC)(this.value.id),this.deleteInProgress=!1,this.$emit("page-deleted",this.value.id))}setEditMode(){this.editingTitle=!0}get pageInStore(){return c.singularityStore.pagesInWP.find((e=>e.id===this.value.id))}async updatePage(e){console.log("Updating page title to:",e),e.trim()?(this.updateInProgress=!0,await(0,EF.U_)(this.value.id,e),this.updateInProgress=!1,this.editingTitle=!1,this.$emit("page-updated")):this.editingTitle=!1}async setAsHomepage(){this.setAsHomepageInProgress=!0,await TF(this.value.id),this.setAsHomepageInProgress=!1}get active(){return this.value.id===c.documentStore.document.documentMeta.id}get classList(){return{"is-active":this.active,"is-opening":this.isOpeningPageThisPage,"is-deleting":this.deleteInProgress,"is-updating":this.updateInProgress,"is-setting-as-homepage":this.setAsHomepageInProgress,"is-generating":this.value.generatingInBackground}}};(0,r.gn)([(0,l.fI)()],DF.prototype,"value",void 0),DF=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z,Icon:He.Z,Dropdown:Oc.Z,InlineTextEdit:FM}})],DF);const AF=DF,ZF=AF;var OF=(0,N.Z)(ZF,PF,kF,!1,null,null,null);const MF=OF.exports;var BF=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"wp-page-manager-add-page-wizard"},["choose-type"===e.currentStep?t("div",{staticClass:"wizard-step"},[e._m(0),t("div",{staticClass:"page-type-options"},[t("SingularityOption",{attrs:{icon:"FileLinesIcon",title:"Blank Page"},on:{click:function(t){return e.selectPageType("blank")}}}),t("SingularityOption",{attrs:{icon:"SparklesIcon",title:"Generate With AI"},on:{click:function(t){return e.selectPageType("ai")}}})],1)]):e._e(),"page-details"===e.currentStep?t("div",{staticClass:"wizard-step"},[t("div",{staticClass:"wizard-header"},[t("h3",{staticClass:"wizard-header__title",on:{click:e.goBack}},[t("Icon",{attrs:{icon:"ChevronDownSolidIcon",rotate:"90",size:"14"}}),e._v(" "+e._s("blank"===e.selectedType?"Create Blank Page":"Generate Page With AI")+" ")],1)]),t("div",{staticClass:"form-content"},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"page-title"}},[e._v("Page Title")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.pageTitle,expression:"pageTitle"}],ref:"pageTitleInput",staticClass:"form-input",attrs:{id:"page-title",type:"text",placeholder:"Enter page title"},domProps:{value:e.pageTitle},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.createPage.apply(null,arguments)},input:function(t){t.target.composing||(e.pageTitle=t.target.value)}}})]),"ai"===e.selectedType?t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"page-description"}},[e._v("Page Description")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.pageDescription,expression:"pageDescription"}],staticClass:"form-textarea",attrs:{id:"page-description",placeholder:"Describe what this page should contain (e.g., 'About page for a tech company with team bios and company history')",rows:"4"},domProps:{value:e.pageDescription},on:{input:function(t){t.target.composing||(e.pageDescription=t.target.value)}}})]):e._e()]),t("div",{staticClass:"form-actions"},[t("NiceButton",{attrs:{color:"gray",size:"large"},on:{click:e.goBack}},[e._v(" Back ")]),t("NiceButton",{attrs:{"left-icon":"blank"===e.selectedType?"PlusIcon":"SparklesSolidIcon",color:"yellow",expanded:"true",size:"large",disabled:!e.pageTitle.trim()},on:{click:e.createPage}},[e._v(" "+e._s("blank"===e.selectedType?"Create Page":"Generate Page")+" ")])],1)]):e._e(),"creating"===e.currentStep?t("div",{staticClass:"wizard-step"},[t("div",{staticClass:"success-content"},[t("h3",[t("Icon",{staticClass:"animate-spin",attrs:{icon:"CircleNotchSolidIcon",size:"24"}}),e._v(" "+e._s("blank"===e.selectedType?"Creating your page...":"Generating...")+" ")],1),"ai"===e.selectedType?t("p",[e._v(" This may take a moment as AI creates your content. ")]):e._e()])]):e._e(),"success"===e.currentStep?t("div",{staticClass:"wizard-step"},[t("div",{staticClass:"success-content"},[t("h3",[t("Icon",{attrs:{icon:"CheckSolidIcon",size:"24"}}),e._v(" Your page was created!")],1),t("p",[t("b",[e._v(e._s(e.pageTitle))]),e._v(" has been successfully "+e._s("blank"===e.selectedType?"created":"generated")+" ")]),t("div",{staticClass:"success-actions"},[t("NiceButton",{staticStyle:{width:"50%"},attrs:{color:"yellow",size:"large",loading:e.openingInProgress,expanded:"true"},on:{click:e.editPage}},[e.openingInProgress?t("div",{staticClass:"css-spinner-small"}):e._e(),e._v(" "+e._s(e.openingInProgress?"Opening...":"Edit Page")+" ")]),t("NiceButton",{attrs:{variant:"gray",size:"large",loading:e.openingInProgress},on:{click:e.backToPages}},[e._v(" Back to Pages ")])],1),"ai"===e.selectedType?t("FeedbackBoxAI",{attrs:{"event-properties":e.eventPropertiesForTracking}}):e._e()],1)]):e._e()])},LF=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"wizard-header"},[t("h3",[e._v("How would you like to create your page?")])])}],NF=n(41791),FF=n(44821),RF=n(20952),VF=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.isHidden?e._e():t("div",{staticClass:"feedback-box-ai",class:{"feedback-sent":e.feedbackSent}},[t("label",{staticClass:"feedback-box-ai-label"},[e._v(e._s(e.feedbackSent?"Thank you for your feedback!":"How did we do?"))]),t("div",{staticClass:"feedback-box-thumbs"},[t("button",{staticClass:"feedback-thumb",class:{"is-selected":"up"===e.rating},attrs:{type:"button","aria-label":"Thumbs up"},on:{click:function(t){return e.handleThumb("up")}}},[t("Icon",{attrs:{icon:"ThumbsUpSolidIcon",size:"20"}})],1),t("button",{staticClass:"feedback-thumb feedback-thumb-down",class:{"is-selected":"down"===e.rating},attrs:{type:"button","aria-label":"Thumbs down"},on:{click:function(t){return e.handleThumb("down")}}},[t("Icon",{attrs:{icon:"ThumbsUpSolidIcon",rotate:"180",size:"20"}})],1)])])},$F=[];let WF=class extends s.ZP{constructor(){super(...arguments),this.rating=null,this.feedbackSent=!1,this.isHidden=!1}handleThumb(e){this.rating=e,(0,Tt.K)("FutureLayer Feedback AI",{rating:e,...this.eventProperties}),this.feedbackSent=!0,setTimeout((()=>{this.feedbackSent=!1,this.rating=null,this.isHidden=!0}),3e3)}};(0,r.gn)([(0,l.fI)()],WF.prototype,"eventProperties",void 0),WF=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],WF);const UF=WF,zF=UF;var HF=(0,N.Z)(zF,VF,$F,!1,null,null,null);const GF=HF.exports;let KF=class extends s.ZP{constructor(){super(...arguments),this.currentStep="choose-type",this.selectedType=null,this.pageTitle="",this.pageDescription="",this.createdPageId=null,this.openingInProgress=!1}selectPageType(e){this.selectedType=e,this.currentStep="page-details",this.$nextTick((()=>{this.$refs.pageTitleInput?.focus()})),(0,Tt.K)("FutureLayer WP Page Manager: Page Type Selected",{type:e})}goBack(){"page-details"===this.currentStep&&(this.currentStep="choose-type",this.selectedType=null)}async createPage(){if(this.pageTitle.trim()){this.currentStep="creating";try{let e;if(await(0,FF.N)(),"ai"===this.selectedType){const t=await(0,EF.Le)(this.pageTitle,{},"page");if(!t)return;e=await(0,er.j)((async e=>await(0,NF.x)(this.pageTitle,t.id,e,this.pageDescription||void 0)),{jobType:"background_page_generation",pageId:t.id,pageTitle:this.pageTitle,description:`Generating page: ${this.pageTitle}`,priority:"normal"}),(0,Tt.K)("FutureLayer WP Page Manager: AI Page Generation Started",{title:this.pageTitle,description:this.pageDescription||null})}else{const t=(0,ge.getBlankTree)(),n=(0,Us.LC)(t);e=await(0,EF.DC)({title:this.pageTitle,postType:"page",tree:n,singularityMeta:{}}),(0,Tt.K)("FutureLayer WP Page Manager: Blank Page Creation Started",{title:this.pageTitle})}if(!e)return;this.createdPageId=e.id,this.currentStep="success",(0,RF.h)()}catch(e){console.error("Failed to create page:",e)}}}get eventPropertiesForTracking(){return{pageType:this.selectedType,pageTitle:this.pageTitle,pageDescription:"ai"===this.selectedType?this.pageDescription:null}}async editPage(){this.createdPageId&&(this.openingInProgress=!0,await(0,zl.$)(),await(0,Hl.rI)(this.createdPageId),c.singularityStore.setSingularityLeftPanel("page_structure"),this.openingInProgress=!1)}backToPages(){this.$emit("close")}};KF=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,IconButton:Xa.Z,NiceButton:Br.Z,SingularityOption:Or,FeedbackBoxAI:GF}})],KF);const jF=KF,qF=jF;var XF=(0,N.Z)(qF,BF,LF,!1,null,null,null);const YF=XF.exports;let QF=class extends s.ZP{constructor(){super(...arguments),this.pagesInMenu=[],this.otherPages=[],this.addIsOpen=!1,this.menuSaving=!1,this.menuSaved=!1,this.initialLoadComplete=!1,this.saveInProgress=!1}mounted(){this.updateLocalPageLists(),this.$nextTick((()=>{this.initialLoadComplete=!0}))}get isOpeningPage(){return c.singularityStore.isOpeningPageId}get pages(){return c.singularityStore.pagesInWP.filter((e=>"page"===e.postType))}updateLocalPageLists(){const e=this.pages;this.pagesInMenu=e.filter((e=>e.isInMainMenu)).sort(((e,t)=>{const n=e.menuOrder||0,s=t.menuOrder||0;return n-s})),this.otherPages=e.filter((e=>!e.isInMainMenu)),(0,Tt.K)("FutureLayer WP Page Manager: Local Page Lists Updated")}async onMenuPagesChanged(){if(this.initialLoadComplete){this.saveInProgress=!0;const e=this.pagesInMenu.map((e=>e.id));await(0,EF.TE)(e),this.saveInProgress=!1}}handlePageDeleted(e){this.pagesInMenu=this.pagesInMenu.filter((t=>t.id!==e)),this.otherPages=this.otherPages.filter((t=>t.id!==e))}openAdd(){this.addIsOpen=!0,(0,Tt.K)("FutureLayer WP Page Manager: Open Add Page")}closeAdd(){this.addIsOpen=!1,this.updateLocalPageLists()}};(0,r.gn)([(0,l.RL)("pagesInMenu",{deep:!0})],QF.prototype,"onMenuPagesChanged",null),QF=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,WPPageManagerPageNew:MF,WPPageManagerAddPageWizard:YF,Dropdown:Oc.Z,IconButton:Xa.Z,SingularityPanelHeader:EL,NiceButton:Br.Z,Icon:He.Z,draggable:ev(),SingularityTooltip:UB}})],QF);const JF=QF,eR=JF;var tR=(0,N.Z)(eR,wF,IF,!1,null,null,null);const nR=tR.exports;var sR=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-panel vscroll-wrap vscroll-scroll"},[t("div",{staticClass:"singularity-panel__wrapper"},[t("SingularityPanelHeader",{attrs:{parentTitle:"Brand"}}),t("div",{staticClass:"singularity-panel__content"},[t("BrandManageLogo"),t("BrandManageColors"),t("BrandManageTypography"),t("BrandManageButtons")],1)],1)])},iR=[],oR=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TogglePanel",{attrs:{title:"Colors",open:e.isPanelOpen},scopedSlots:e._u([{key:"actions",fn:function(){return[t("IconButtonShuffle",{on:{update:e.shuffle}})]},proxy:!0}])},[t("BrandPaletteGenerator",{attrs:{palette:e.brand.color.neutral,neutral:!0}}),e.brand.color.primary?t("BrandPaletteGenerator",{attrs:{palette:e.brand.color.primary},on:{update:e.updatePrimaryPalette}}):e._e(),e._l(e.brand.color.secondary,(function(n,s){return t("BrandPaletteGenerator",{key:n.label,attrs:{palette:n,index:s},on:{update:function(t){return e.updateSecondaryPalette(s,t)},remove:function(t){return e.removeSecondaryPalette(s)}}})})),e.brand.color.secondary.length<2?t("div",{staticClass:"brand-panel__add-palette",attrs:{role:"button"},on:{click:function(t){return e.addPalette(e.brand.color.secondary.length+1)}}},[t("Icon",{staticClass:"brand-panel__add-icon",attrs:{icon:"PlusIcon",size:"18"}})],1):e._e()],2)},aR=[],rR=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.palette?t("div",{staticClass:"palette-generator"},[e.palette?t("div",{staticClass:"palette-generator__button",class:{"palette-generator__button--light":e.isLightColor,"palette-generator__button--neutral":e.neutral,"palette-generator__button--primary":e.palette.primary,"palette-generator__button--secondary":!e.neutral&&!e.palette.primary,"palette-generator__button--locked":e.palette.locked}},[e.neutral?e._e():t("div",{staticClass:"palette-generator__actions"},[e.palette.primary||e.palette.locked?e._e():t("div",{staticClass:"palette-generator__action",style:e.primaryTagStyle,attrs:{role:"button"},on:{click:e.removePalette}},[t("Icon",{attrs:{icon:"TrashSolidIcon",size:"10"}})],1),e.palette.locked?e._e():t("div",{staticClass:"palette-generator__action",style:e.primaryTagStyle,attrs:{role:"button"},on:{click:e.shufflePalette}},[t("Icon",{attrs:{icon:"ArrowsRotateSolidIcon",size:"10"}})],1),t("div",{staticClass:"palette-generator__action",style:e.primaryTagStyle,attrs:{role:"button"},on:{click:e.lockPalette}},[e.palette.locked?t("Icon",{attrs:{icon:"LockSolidIcon",size:"10"}}):t("Icon",{staticClass:"palette-generator__icon-locked",attrs:{icon:"LockOpenSolidIcon",size:"10"}})],1)]),t("div",{staticClass:"palette-generator__base",class:{"palette-generator__base--light":e.isLightColor,"palette-generator__base--neutral":e.neutral},style:{backgroundColor:e.palette.base.value?.toString()},attrs:{role:"button"},on:{click:e.openEditColorPanel}},[t("div",{staticClass:"palette-generator__top"},[t("div",[e.palette.primary&&!e.palette.locked?t("div",{staticClass:"palette-generator__badge",style:e.primaryTagStyle},[e._v(" Primary ")]):e._e()])]),t("div",{staticClass:"palette-generator__label-group",style:e.textStyle},[t("span",{staticClass:"palette-generator__label"},[e._v(e._s(e.palette.label))]),t("span",{staticClass:"palette-generator__hex"},[e._v(" "+e._s(e.palette.base.value?.toString().substring(1).toUpperCase())+" ")])])]),t("div",{staticClass:"palette-generator__swatches"},e._l(e.palette.scale,(function(e,n){return t("div",{key:"color-"+n,staticClass:"palette-generator__swatch",style:{backgroundColor:e.value?.toString()}})})),0)]):e._e()]):e._e()},lR=[],cR=n(45904),dR=n(43425);let uR=class extends s.ZP{constructor(){super(...arguments),this.isOverlayOpen=!1}openEditColorPanel(){this.palette&&!this.palette.locked&&(c.singularityStore.setSingularityLeftPanel("brand_edit_color"),c.singularityStore.setCurrentPalette({palette:this.palette,index:this.index??null}))}get textStyle(){return this.palette?{color:(0,dR.eO)(this.palette.base.value?.toString())?this.palette.scale[900].value?.toString():this.palette.scale[100].value?.toString()}:{}}get primaryTagStyle(){return this.palette?{backgroundColor:((0,dR.eO)(this.palette.base.value?.toString()),this.palette.scale[600].value?.toString()),color:(0,dR.eO)(this.palette.base.value?.toString())?this.palette.scale[900].value?.toString():this.palette.scale[100].value?.toString()}:{}}updatePalette(e){this.$emit("update",{...e,primary:this.palette.primary,locked:this.palette.locked})}removePalette(){this.$emit("remove")}lockPalette(){this.$emit("update",{...this.palette,locked:!this.palette.locked})}shufflePalette(){const e=(0,dR.Bc)(this.palette.primary,this.index?this.index+1:1);this.updatePalette(e)}get isLightColor(){return!!this.palette?.base&&(0,dR.eO)(this.palette.base.value?.toString())}};(0,r.gn)([(0,l.fI)()],uR.prototype,"palette",void 0),(0,r.gn)([(0,l.fI)({default:!1})],uR.prototype,"neutral",void 0),(0,r.gn)([(0,l.fI)()],uR.prototype,"index",void 0),uR=(0,r.gn)([(0,cR.ZP)({components:{Icon:He.Z}})],uR);const pR=uR,hR=pR;var gR=(0,N.Z)(hR,rR,lR,!1,null,null,null);const mR=gR.exports;var vR=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"toggle-panel",class:{"toggle-panel--loading":e.isLoading}},[t("div",{staticClass:"toggle-panel__header"},[t("span",{staticClass:"toggle-panel__title",on:{click:e.toggle}},[t("Icon",{staticClass:"toggle-panel__icon",attrs:{size:"14",icon:"ChevronDownSolidIcon",rotate:e.isOpen?"":"-90"}}),t("span",[e._v(e._s(e.title))])],1),t("div",{staticClass:"toggle-panel__actions"},[e._t("actions")],2)]),e.isOpen?t("div",{staticClass:"toggle-panel__content"},[e._t("default")],2):e._e()])},yR=[];let fR=class extends s.ZP{constructor(){super(...arguments),this.isOpen=this.open}onIsOpenChanged(e){this.isOpen=e}toggle(){this.isOpen=!this.isOpen,this.$emit("update:isOpen",this.isOpen)}};(0,r.gn)([(0,l.fI)({type:String,default:""})],fR.prototype,"title",void 0),(0,r.gn)([(0,l.fI)({type:Boolean,default:!1})],fR.prototype,"isLoading",void 0),(0,r.gn)([(0,l.fI)({type:Boolean,default:!1})],fR.prototype,"open",void 0),(0,r.gn)([(0,l.RL)("isOpen")],fR.prototype,"onIsOpenChanged",null),fR=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],fR);const _R=fR,bR=_R;var SR=(0,N.Z)(bR,vR,yR,!1,null,null,null);const CR=SR.exports;let xR=class extends s.ZP{get brand(){return c.singularityStore.brand}get isPanelOpen(){return"color"===c.singularityStore.brandPanelState?.openedPanel}updatePrimaryPalette(e){Ie.n.transaction((()=>{e.primary=!0,c.singularityStore.setPalette({type:"primary",palette:e}),(0,dR.hR)()}),"Updated primary color"),(0,Tt.K)("FutureLayer Brand: Primary Palette Updated",{type:"primary"})}updateSecondaryPalette(e,t){Ie.n.transaction((()=>{c.singularityStore.updateSecondaryPalette({index:e,palette:t}),(0,dR.hR)()}),"Updated secondary color"),(0,Tt.K)("FutureLayer Brand: Primary Palette Updated",{type:"secondary"})}removeSecondaryPalette(e){Ie.n.transaction((()=>{c.singularityStore.removeSecondaryPalette(e),(0,dR.hR)()}),"Removed secondary color")}shuffle(){(0,dR.q3)(),(0,Tt.K)("FutureLayer Brand: Colors Shuffled")}addPalette(e){Ie.n.transaction((()=>{this.brand.color.primary?(0,dR._c)(e):(0,dR.SL)(),(0,dR.hR)()}),"Added color palette")}};xR=(0,r.gn)([(0,l.wA)({components:{BrandPaletteGenerator:mR,IconButtonShuffle:cB,Icon:He.Z,TogglePanel:CR}})],xR);const wR=xR,IR=wR;var PR=(0,N.Z)(IR,oR,aR,!1,null,null,null);const kR=PR.exports;var ER=n(62367),TR=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TogglePanel",{attrs:{title:"Typography",open:e.isPanelOpen},scopedSlots:e._u([{key:"actions",fn:function(){return[t("IconButtonShuffle",{on:{update:e.shuffle}})]},proxy:!0}])},[t("BrandTypographyPicker",{attrs:{value:e.headingFont,label:"Headings",type:"heading_font"},on:{update:function(t){return e.updateFont("heading_font",t)}}}),t("BrandTypographyPicker",{attrs:{value:e.bodyFont,label:"Text",type:"body_font"},on:{update:function(t){return e.updateFont("body_font",t)}}}),t("BrandTypographyPicker",{attrs:{value:e.buttonPrimaryTypographyFont,type:"buttons",label:"Buttons"},on:{update:function(t){return e.updateFont("buttons",t)}}}),t("BrandToggleFontSizes",{on:{update:e.updateFontRatio}})],1)},DR=[],AR=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"typography-picker"},[t("BrandTypographyFont",{attrs:{value:e.value,label:e.label},on:{update:e.openTypographyEditPanel}})],1)},ZR=[],OR=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"typography-font",attrs:{role:"button"},on:{click:e.update}},[e.font?.previewImageUrl?t("img",{staticClass:"typography-font__preview-image",attrs:{alt:e.font?.label,src:e.font?.previewImageUrl}}):e._e(),t("div",{staticClass:"typography-font__info"},[t("span",{staticClass:"typography-font__label"},[e._v(e._s(e.description||e.font?.label||"No font"))]),e.label?t("span",{staticClass:"typography-font__description"},[e._v(" "+e._s(e.label)+" ")]):e._e()])])},MR=[];let BR=class extends s.ZP{update(){this.$emit("update",this.value)}get font(){return c.configStore.fonts.find((e=>e.slug===this.value?.slug))}};(0,r.gn)([(0,l.fI)()],BR.prototype,"label",void 0),(0,r.gn)([(0,l.fI)()],BR.prototype,"description",void 0),(0,r.gn)([(0,l.fI)()],BR.prototype,"value",void 0),BR=(0,r.gn)([l.wA],BR);const LR=BR,NR=LR;var FR=(0,N.Z)(NR,OR,MR,!1,null,null,null);const RR=FR.exports;let VR=class extends s.ZP{constructor(){super(...arguments),this.isOverlayOpen=!1}update(e){c.singularityStore.setSingularityLeftPanel("brand"),this.$emit("update",e)}openTypographyEditPanel(){c.singularityStore.setSingularityLeftPanel("brand_edit_typography"),c.singularityStore.setCurrentFont(this.type)}};(0,r.gn)([(0,l.fI)()],VR.prototype,"value",void 0),(0,r.gn)([(0,l.fI)({default:"Body"})],VR.prototype,"label",void 0),(0,r.gn)([(0,l.fI)({default:"body_font"})],VR.prototype,"type",void 0),VR=(0,r.gn)([(0,l.wA)({components:{BrandTypographyFont:RR}})],VR);const $R=VR,WR=$R;var UR=(0,N.Z)(WR,AR,ZR,!1,null,null,null);const zR=UR.exports,HR=[{body_font:"gfont-nunitosans",heading_font:"gfont-playfairdisplay"},{body_font:"gfont-montserrat",heading_font:"gfont-domine"},{body_font:"gfont-lato",heading_font:"gfont-ptserif"},{body_font:"gfont-nunitosans",heading_font:"gfont-librecaslontext"},{body_font:"gfont-opensans",heading_font:"gfont-gloock"},{body_font:"gfont-heebo",heading_font:"gfont-ebgaramond"},{body_font:"gfont-roboto",heading_font:"gfont-lora"},{body_font:"gfont-mulish",heading_font:"gfont-domine"},{body_font:"gfont-barlow",heading_font:"gfont-dmserifdisplay"},{body_font:"gfont-roboto",heading_font:"gfont-librecaslontext"},{body_font:"gfont-mulish",heading_font:"gfont-librecaslontext"},{body_font:"gfont-heebo",heading_font:"gfont-domine"},{body_font:"gfont-karla",heading_font:"gfont-gloock"},{body_font:"gfont-montserrat",heading_font:"gfont-playfairdisplay"},{body_font:"gfont-poppins",heading_font:"gfont-cinzel"},{body_font:"gfont-manrope",heading_font:"gfont-vollkorn"},{body_font:"gfont-worksans",heading_font:"gfont-crimsonpro"},{body_font:"gfont-manrope",heading_font:"gfont-nunitosans"},{body_font:"gfont-opensans",heading_font:"gfont-jost"},{body_font:"gfont-nunitosans",heading_font:"gfont-raleway"},{body_font:"gfont-raleway",heading_font:"gfont-montserrat"},{body_font:"gfont-inter",heading_font:"gfont-karla"},{body_font:"gfont-firasans",heading_font:"gfont-nunitosans"},{body_font:"gfont-jost",heading_font:"gfont-opensans"},{body_font:"gfont-firasans",heading_font:"gfont-ibmplexsans"},{body_font:"gfont-dmsans",heading_font:"gfont-raleway"},{body_font:"gfont-quicksand",heading_font:"gfont-mulish"},{body_font:"gfont-opensans",heading_font:"gfont-inter"},{body_font:"gfont-lato",heading_font:"gfont-ibmplexsans"},{body_font:"gfont-opensans",heading_font:"gfont-lato"},{body_font:"gfont-nunitosans",heading_font:"gfont-jost"},{body_font:"gfont-montserrat",heading_font:"gfont-karla"},{body_font:"gfont-raleway",heading_font:"gfont-poppins"},{body_font:"gfont-raleway",heading_font:"gfont-dmsans"},{body_font:"gfont-crimsonpro",heading_font:"gfont-montserrat"},{body_font:"gfont-lora",heading_font:"gfont-dmsans"},{body_font:"gfont-cardo",heading_font:"gfont-firasans"},{body_font:"gfont-domine",heading_font:"gfont-poppins"},{body_font:"gfont-rosarivo",heading_font:"gfont-jost"},{body_font:"gfont-vollkorn",heading_font:"gfont-firasans"},{body_font:"gfont-domine",heading_font:"gfont-manrope"},{body_font:"gfont-ebgaramond",heading_font:"gfont-lato"},{body_font:"gfont-ebgaramond",heading_font:"gfont-manrope"},{body_font:"gfont-alegreya",heading_font:"gfont-montserrat"},{body_font:"gfont-lora",heading_font:"gfont-mulish"},{body_font:"gfont-gloock",heading_font:"gfont-manrope"},{body_font:"gfont-crimsonpro",heading_font:"gfont-ubuntu"},{body_font:"gfont-alegreya",heading_font:"gfont-karla"},{body_font:"gfont-ptserif",heading_font:"gfont-montserrat"},{body_font:"gfont-ptserif",heading_font:"gfont-lato"},{body_font:"gfont-fredoka",heading_font:"gfont-lobster"},{body_font:"gfont-comfortaa",heading_font:"gfont-pacifico"},{body_font:"gfont-rubik",heading_font:"gfont-chewy"},{body_font:"gfont-kumbhsans",heading_font:"gfont-lemon"},{body_font:"gfont-quicksand",heading_font:"gfont-righteous"},{body_font:"gfont-signika",heading_font:"gfont-monoton"},{body_font:"gfont-mavenpro",heading_font:"gfont-alfaslabone"},{body_font:"gfont-urbanist",heading_font:"gfont-bungee"},{body_font:"gfont-balsamiqsans",heading_font:"gfont-permanentmarker"},{body_font:"gfont-sen",heading_font:"gfont-russoone"}];function GR(){return HR[Math.floor(Math.random()*HR.length)]}function KR(){const{body_font:e,heading_font:t}=GR();Ie.n.transaction((()=>{jR("body_font",e),jR("heading_font",t),jR("buttons",e)}),"Shuffled typography")}function jR(e,t){e&&("buttons"!==e?(0,ER.Ig)("settings.typography",{[e]:t}):qR(t))}function qR(e){(0,ER.Ig)(["settings.buttons.primary.typography.typography.custom.customTypography.fontFamily","settings.buttons.secondary.typography.typography.custom.customTypography.fontFamily"],{breakpoint_base:e})}function XR(e){(0,ER.Ig)("settings.typography",{ratio:{breakpoint_base:e}})}var YR=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ButtonGroup",{attrs:{options:e.ratios,value:e.currentRatio},on:{update:e.update}})},QR=[],JR=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"toggle-button-group"},[e.label?t("label",{staticClass:"toggle-button-group__label"},[e._v(e._s(e.label))]):e._e(),t("div",{staticClass:"toggle-button-group__buttons"},e._l(e.options,(function(n){return t("button",{key:n.value,class:{"is-active":e.isActive(n.value)},on:{click:function(t){return e.update(n.value)}}},[e._v(" "+e._s(n.label)+" ")])})),0)])},eV=[];let tV=class extends s.ZP{update(e){this.$emit("update",e)}isActive(e){return this.value===e}};(0,r.gn)([(0,l.fI)({required:!0,type:Array})],tV.prototype,"options",void 0),(0,r.gn)([(0,l.fI)({required:!0})],tV.prototype,"value",void 0),(0,r.gn)([(0,l.fI)({type:String,default:""})],tV.prototype,"label",void 0),tV=(0,r.gn)([l.wA],tV);const nV=tV,sV=nV;var iV=(0,N.Z)(sV,JR,eV,!1,null,null,null);const oV=iV.exports,aV=[{label:"Small",value:1.1},{label:"Normal",value:1.25},{label:"Large",value:1.4}];let rV=class extends s.ZP{constructor(){super(...arguments),this.ratios=aV}update(e){this.$emit("update",e)}get currentRatio(){return c.globalStore.globalSettings.settings.typography.ratio&&c.globalStore.globalSettings.settings.typography.ratio.breakpoint_base?c.globalStore.globalSettings.settings.typography.ratio.breakpoint_base:this.ratios[1].value}isActive(e){return this.currentRatio===e}};rV=(0,r.gn)([(0,l.wA)({components:{ButtonGroup:oV}})],rV);const lV=rV,cV=lV;var dV=(0,N.Z)(cV,YR,QR,!1,null,null,null);const uV=dV.exports;let pV=class extends s.ZP{get globalTypography(){return c.globalStore.globalSettings.settings.typography}get buttonPrimaryTypographySlug(){return c.globalStore.globalSettings.settings.buttons?.primary?.typography?.typography?.custom?.customTypography?.fontFamily.breakpoint_base||null}get buttonPrimaryTypographyFont(){return c.configStore.fonts.filter((e=>e.slug===(this.buttonPrimaryTypographySlug?this.buttonPrimaryTypographySlug:this.bodyFont?.slug)))[0]}get isPanelOpen(){return"typography"===c.singularityStore.brandPanelState?.openedPanel}get headingFont(){return this.globalTypography?c.configStore.fonts.filter((e=>e.slug===this.globalTypography.heading_font))[0]:null}get bodyFont(){return this.globalTypography?c.configStore.fonts.filter((e=>e.slug===this.globalTypography.body_font))[0]:null}shuffle(){KR(),(0,Tt.K)("FutureLayer Brand: Typography Shuffled")}updateFontRatio(e){XR(e)}updateFont(e,t){jR(e,t),(0,Tt.K)("FutureLayer Brand: Typography Updated",{type:e,slug:t})}};pV=(0,r.gn)([(0,l.wA)({components:{TogglePanel:CR,IconButtonShuffle:cB,BrandTypographyPicker:zR,BrandToggleFontSizes:uV}})],pV);const hV=pV,gV=hV;var mV=(0,N.Z)(gV,TR,DR,!1,null,null,null);const vV=mV.exports;var yV=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TogglePanel",{attrs:{title:"Buttons & Forms",open:e.isPanelOpen},scopedSlots:e._u([{key:"actions",fn:function(){return[t("IconButtonShuffle",{on:{update:e.shuffle}})]},proxy:!0}])},[t("BrandToggleButtonFormRadius",{attrs:{value:e.radiuses},on:{update:e.updateRadiuses}}),t("BrandToggleButtonSize",{attrs:{value:e.buttonSizes},on:{update:e.updateButtonSizes}}),t("BrandSampleUI",{attrs:{cssStyles:e.cssStyles}})],1)},fV=[],_V=n(65556),bV=n(59705),SV=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ButtonGroup",{attrs:{options:e.radiusesWithLabels,value:e.currentRatio,label:"Rounded"},on:{update:e.update}})},CV=[];let xV=class extends s.ZP{update(e){this.$emit("update",e)}get radiusesWithLabels(){return this.value.map((e=>({label:_V.mP[e],value:e})))}get currentRatio(){return c.singularityStore.brand.ui.inputRadius}};(0,r.gn)([(0,l.fI)()],xV.prototype,"value",void 0),xV=(0,r.gn)([(0,l.wA)({components:{ButtonGroup:oV}})],xV);const wV=xV,IV=wV;var PV=(0,N.Z)(IV,SV,CV,!1,null,null,null);const kV=PV.exports;var EV=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ButtonGroup",{attrs:{options:e.sizesWithLabels,value:e.currentButtonSize,label:"Size"},on:{update:e.update}})},TV=[];let DV=class extends s.ZP{update(e){this.$emit("update",e)}get sizesWithLabels(){return this.value.map((e=>({label:_V.MQ[e],value:e})))}get currentButtonSize(){return c.singularityStore.brand.ui.buttonSize}};(0,r.gn)([(0,l.fI)()],DV.prototype,"value",void 0),DV=(0,r.gn)([(0,l.wA)({components:{ButtonGroup:oV}})],DV);const AV=DV,ZV=AV;var OV=(0,N.Z)(ZV,EV,TV,!1,null,null,null);const MV=OV.exports;var BV=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"brand-sample-ui"},[t("label",{staticClass:"toggle-button-group__label"},[e._v("Preview")]),t("div",{staticClass:"sample-ui",style:e.cssStyles.sampleUI},[t("div",{staticClass:"sample-ui-form-control"},[t("div",{staticClass:"sample-ui-form-control__label",style:e.cssStyles.label},[e._v(" Label ")]),t("div",{staticClass:"sample-ui-form-control__form-input",style:e.cssStyles.forms},[e._v(" Placeholder ")])]),t("div",{staticClass:"sample-ui__buttons"},[t("div",{staticClass:"sample-ui__button",style:e.cssStyles.primary},[e._v("Primary")]),t("div",{staticClass:"sample-ui__button",style:e.cssStyles.secondary},[e._v(" Secondary ")])])])])},LV=[];let NV=class extends s.ZP{};(0,r.gn)([(0,l.fI)({type:Object,required:!0})],NV.prototype,"cssStyles",void 0),NV=(0,r.gn)([l.wA],NV);const FV=NV,RV=FV;var VV=(0,N.Z)(RV,BV,LV,!1,null,null,null);const $V=VV.exports;let WV=class extends s.ZP{constructor(){super(...arguments),this.radiuses=["none","sm","md","full"],this.buttonSizes=["sm","default","md","lg"]}get brand(){return c.singularityStore.brand}get bodyFont(){const e=c.globalStore.globalSettings.settings.typography.body_font;return c.configStore.fonts.find((t=>t.slug===e))}get isPanelOpen(){return"ui"===c.singularityStore.brandPanelState?.openedPanel}updateRadiuses(e){c.singularityStore.setInputRadius({inputRadius:e}),(0,bV.fR)({radius:this.inputBorderRadius}),(0,bV.wT)({radius:this.inputBorderRadius}),(0,Tt.K)("FutureLayer Brand: Input Radius Updated",{inputRadius:this.inputBorderRadius,buttonSize:this.inputButtonSize})}updateButtonSizes(e){c.singularityStore.setButtonSize({buttonSize:e}),(0,bV.fR)({radius:this.inputBorderRadius}),(0,Tt.K)("FutureLayer Brand: Button Size Updated",{inputRadius:this.inputBorderRadius,buttonSize:this.inputButtonSize})}get inputBorderRadius(){return c.singularityStore.brand.ui.inputRadius}get inputButtonSize(){return c.singularityStore.brand.ui.buttonSize}get sampleUIStyles(){return this.brand.color.neutral?{backgroundColor:this.brand.color.primary?.scale[100].value?.toString()}:{}}get stylesPrimary(){return this.brand.color.primary?{backgroundColor:this.brand.color.primary.base.value?.toString(),color:this.brand.color.primary.text.value?.toString(),borderRadius:_V.CZ[this.inputBorderRadius]?.style,padding:bV.p1[this.inputButtonSize]?.string}:{}}get stylesSecondary(){return this.brand.color.neutral?(console.log(bV.p1[this.inputButtonSize]?.string),{backgroundColor:"transparent",color:this.brand.color.neutral.base.value?.toString(),borderColor:this.brand.color.neutral.scale[300].value?.toString(),borderRadius:_V.CZ[this.inputBorderRadius]?.style,padding:bV.p1[this.inputButtonSize]?.string}):{}}get stylesLabel(){return this.brand.color.neutral?{color:this.brand.color.neutral.base.value?.toString()}:{}}get stylesForms(){return this.brand.color.neutral?{borderColor:this.brand.color.neutral.scale[200].value?.toString(),borderRadius:_V.CZ[this.inputBorderRadius]?.style,color:this.brand.color.neutral.scale[300].value?.toString()}:{}}get cssStyles(){return{sampleUI:this.sampleUIStyles,label:this.stylesLabel,forms:this.stylesForms,primary:this.stylesPrimary,secondary:this.stylesSecondary}}randomUniqueRadius(){const e=this.inputBorderRadius;let t=e;while(t===e)t=this.radiuses[Math.floor(Math.random()*this.radiuses.length)];return t}randomUniqueButtonSize(){const e=this.inputButtonSize;let t=e;while(t===e)t=this.buttonSizes[Math.floor(Math.random()*this.buttonSizes.length)];return t}shuffle(){const e=this.randomUniqueRadius(),t=this.randomUniqueButtonSize();Ie.n.transaction((()=>{this.updateRadiuses(e),this.updateButtonSizes(t)}),"Shuffled buttons & forms"),(0,Tt.K)("FutureLayer Brand: Buttons & Forms Shuffled",{inputRadius:this.inputBorderRadius,buttonSize:this.inputButtonSize})}};WV=(0,r.gn)([(0,l.wA)({components:{IconButtonShuffle:cB,Icon:He.Z,TogglePanel:CR,BrandToggleButtonFormRadius:kV,BrandToggleButtonSize:MV,BrandSampleUI:$V}})],WV);const UV=WV,zV=UV;var HV=(0,N.Z)(zV,yV,fV,!1,null,null,null);const GV=HV.exports;var KV=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TogglePanel",{attrs:{title:"Site Logo",open:e.isPanelOpen}},[t("div",{staticClass:"brand-logo-panel"},[e.currentLogo?t("div",{staticClass:"brand-logo-preview",style:e.previewStyles},[t("img",{staticClass:"brand-logo-image",attrs:{src:e.currentLogo.url,alt:e.currentLogo.alt||"Site Logo"}})]):t("SingularityEmptyState",{attrs:{icon:"ImageIcon",title:"No logo yet",description:"Add a logo to your website.",buttonText:"Upload"},on:{action:e.openMediaPicker}}),t("div",{staticClass:"brand-logo-actions"},[e.currentLogo?t("NiceButton",{attrs:{color:"gray"},on:{click:e.openMediaPicker}},[e._v(" "+e._s(e.currentLogo?"Change Logo":"Upload Logo")+" ")]):e._e(),e.currentLogo?t("NiceButton",{attrs:{color:"gray"},on:{click:e.removeLogo}},[e._v(" Remove ")]):e._e()],1)],1),e.loading?t("div",[e._v("updating...")]):e._e(),t("MediaUploadDialog",{attrs:{open:e.dialogOpen,multiple:!1,"selected-media":e.currentLogo,"accepted-file-types":["image"]},on:{input:e.onMediaSelected,close:e.closeDialog}})],1)},jV=[],qV=n(98349),XV=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-empty-state"},[e.icon?t("Icon",{staticClass:"singularity-empty-state__icon",attrs:{icon:e.icon,size:"32"}}):e._e(),e.title?t("h5",{staticClass:"singularity-empty-state__title"},[e._v(e._s(e.title))]):e._e(),e.description?t("p",{staticClass:"singularity-empty-state__description"},[e._v(" "+e._s(e.description)+" ")]):e._e(),e.buttonText?t("NiceButton",{attrs:{color:"gray",size:"small","left-icon":"PlusIcon"},on:{click:function(t){return e.$emit("action")}}},[e._v(" "+e._s(e.buttonText)+" ")]):e._e()],1)},YV=[];let QV=class extends s.ZP{};(0,r.gn)([(0,l.fI)()],QV.prototype,"icon",void 0),(0,r.gn)([(0,l.fI)()],QV.prototype,"title",void 0),(0,r.gn)([(0,l.fI)()],QV.prototype,"description",void 0),(0,r.gn)([(0,l.fI)()],QV.prototype,"buttonText",void 0),QV=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,NiceButton:Br.Z}})],QV);const JV=QV,e$=JV;var t$=(0,N.Z)(e$,XV,YV,!1,null,"31dfc89d",null);const n$=t$.exports;let s$=class extends s.ZP{constructor(){super(...arguments),this.dialogOpen=!1,this.loading=!1}get isPanelOpen(){return"logo"===c.singularityStore.brandPanelState?.openedPanel}get brand(){return c.singularityStore.brand}get currentLogo(){return this.brand.logo?.logo||null}openMediaPicker(){this.dialogOpen=!0}closeDialog(){this.dialogOpen=!1}onMediaSelected(e){e&&!Array.isArray(e)&&this.updateLogo(e),this.closeDialog()}async updateLogo(e){const t={...this.brand,logo:{logo:e}};(0,Tt.K)("FutureLayer Brand: Logo Updated"),await this.setBrandAndRerender(t)}async removeLogo(){const e={...this.brand,logo:{logo:null}};(0,Tt.K)("FutureLayer Brand: Logo Removed"),await this.setBrandAndRerender(e)}async setBrandAndRerender(e){this.loading=!0,c.singularityStore.setBrand(e),await(0,ER.N1)(),await(0,qV.x)(),this.loading=!1}get previewStyles(){return this.brand.color.neutral?{backgroundColor:this.brand.color.primary?.scale[100].value?.toString()}:{}}};s$=(0,r.gn)([(0,l.wA)({components:{TogglePanel:CR,Icon:He.Z,NiceButton:Br.Z,MediaUploadDialog:LL.Z,SingularityEmptyState:n$}})],s$);const i$=s$,o$=i$;var a$=(0,N.Z)(o$,KV,jV,!1,null,null,null);const r$=a$.exports;let l$=class extends s.ZP{constructor(){super(...arguments),this.loadingSettings=!1}async saveBrandSettings(){this.loadingSettings=!0,await(0,ER.N1)(),this.loadingSettings=!1}destroyed(){document.removeEventListener("breakdanceSaveButtonClicked",this.saveBrandSettings)}mounted(){document.addEventListener("breakdanceSaveButtonClicked",this.saveBrandSettings)}};l$=(0,r.gn)([(0,l.wA)({components:{SingularityPanelHeader:EL,BrandManageLogo:r$,BrandManageColors:kR,BrandManageTypography:vV,BrandManageButtons:GV}})],l$);const c$=l$,d$=c$;var u$=(0,N.Z)(d$,sR,iR,!1,null,null,null);const p$=u$.exports;var h$=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-panel vscroll-wrap vscroll-scroll"},[t("div",{staticClass:"singularity-panel__wrapper"},[t("SingularityPanelHeader",{attrs:{backState:"brand",parentTitle:"Brand",childTitle:"Edit Color"}}),t("div",{staticClass:"singularity-panel__content"},[t("div",{staticClass:"brand-color-editor toggle-panel"},[t("div",{staticClass:"brand-color-editor__container"},[t("TextInput",{attrs:{value:e.internalPalette?.label,placeholder:"Palette name"},on:{input:function(t){return e.updateLabel(t)}}}),e.internalPalette?t("div",{staticClass:"brand-color-editor__swatches"},e._l(e.internalPalette?.scale,(function(n,s){return t("div",{key:"color-"+s},[n&&n.value?t("div",{staticClass:"brand-color-editor__swatch",style:e.style(n.value?.toString()),on:{click:function(t){e.copyColor(n.value?.toString())}}},[t("span",{staticClass:"brand-color-editor__swatch-label"},[e._v(" "+e._s(n.value?.toString().substring(1).toUpperCase())+" "),e.internalPalette.base.value===n.value?t("span",{staticClass:"brand-color-editor__swatch-dot"}):e._e()]),t("CopyButton",{staticClass:"brand-color-editor__swatch-copy",attrs:{valueToCopy:n.value?.toString()}})],1):e._e()])})),0):e._e(),t("BrandColorPicker",{attrs:{color:e.internalPalette?.base.value},on:{update:e.updateColor}}),t("NiceButton",{attrs:{"left-icon":"ArrowsRotateSolidIcon",color:"gray"},on:{click:e.shufflePalette}},[e._v(" Shuffle ")])],1)])])],1)])},g$=[],m$=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"palette-picker",on:{"click:outside":function(t){e.isOverlayOpen=!1}}},[e.isOverlayOpen?t("div",{staticClass:"palette-picker__overlay"},[t("Chrome",{attrs:{value:e.color,disableAlpha:!0},on:{input:e.updateColor}})],1):e._e(),t("NiceButton",{attrs:{"left-icon":"ColorPickerIcon",color:"gray",expanded:!0},on:{click:function(t){e.isOverlayOpen=!e.isOverlayOpen}}},[e._v(e._s(e.isOverlayOpen?"Hide":"Show")+" Picker")])],1)},v$=[],y$=n(94023);let f$=class extends s.ZP{constructor(){super(...arguments),this.internalColor=this.color,this.isOverlayOpen=!1,this.palette=(0,dR.Wk)(this.internalColor)}get classes(){return{"is-light":(0,dR.eO)(this.internalColor)}}updateColor(e){this.internalColor=e.hex,this.palette=(0,dR.Wk)(e.hex),this.$emit("update",e.hex)}get inlineStyles(){return{backgroundColor:this.internalColor,color:(0,dR.eO)(this.internalColor)?String(this.palette.scale[900].value):String(this.palette.scale[100].value)}}copyColor(e){Gu()(e)}onColorChange(e){this.internalColor=e,this.palette=(0,dR.Wk)(e)}mounted(){this.palette=(0,dR.Wk)(this.internalColor)}};(0,r.gn)([(0,l.fI)()],f$.prototype,"color",void 0),(0,r.gn)([(0,l.RL)("color")],f$.prototype,"onColorChange",null),f$=(0,r.gn)([(0,cR.ZP)({components:{Chrome:y$.Chrome,NiceButton:Br.Z}})],f$);const _$=f$,b$=_$;var S$=(0,N.Z)(b$,m$,v$,!1,null,null,null);const C$=S$.exports;let x$=class extends s.ZP{constructor(){super(...arguments),this.internalPalette=this.currentPalette}get currentPalette(){return c.singularityStore.currentPalette?c.singularityStore.currentPalette.palette:null}get currentIndex(){return c.singularityStore.currentPalette?c.singularityStore.currentPalette.index:null}style(e){return this.currentPalette?(0,dR._9)(e,this.currentPalette):{}}updateColor(e){if(!this.internalPalette)return;const t=(0,dR.Wk)(e,this.internalPalette.primary,!1,this.currentIndex?this.currentIndex+1:1);this.internalPalette={...this.internalPalette,base:t.base,scale:t.scale,text:t.text,primary:this.internalPalette.primary},this.updatePalette()}copyColor(e){Gu()(e)}updateLabel(e){this.internalPalette&&(this.internalPalette.label=e)}shufflePalette(){if(!this.internalPalette)return;const e=(0,dR.Bc)(this.internalPalette.primary,this.currentIndex?this.currentIndex+1:1);this.internalPalette={...e,primary:this.internalPalette.primary},this.updatePalette()}updatePalette(){Ie.n.transaction((()=>{this.internalPalette&&(this.internalPalette.primary?c.singularityStore.setPalette({type:"primary",palette:this.internalPalette}):c.singularityStore.updateSecondaryPalette({index:this.currentIndex??0,palette:this.internalPalette}),(0,dR.hR)())}),"Updated color")}onPaletteChange(e){this.internalPalette={...e}}};(0,r.gn)([(0,l.RL)("currentPalette")],x$.prototype,"onPaletteChange",null),x$=(0,r.gn)([(0,l.wA)({components:{SingularityPanelHeader:EL,IconButton:Xa.Z,BrandColorPicker:C$,TextInput:na.Z,Icon:He.Z,NiceButton:Br.Z,CopyButton:dv.Z}})],x$);const w$=x$,I$=w$;var P$=(0,N.Z)(I$,h$,g$,!1,null,null,null);const k$=P$.exports;var E$=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-panel vscroll-wrap vscroll-scroll"},[t("div",{staticClass:"singularity-panel__wrapper"},[t("SingularityPanelHeader",{attrs:{backState:"brand",parentTitle:"Brand",childTitle:"Typography"}}),t("div",{staticClass:"singularity-panel__content"},[t("div",{staticClass:"toggle-panel"},e._l(Object.keys(e.filteredFontsByCategory),(function(n){return t("BrandTypographyCategory",{key:n,attrs:{label:n,fonts:e.filteredFontsByCategory[n]},on:{update:e.update,show:e.showCategory}})})),1)])],1)])},T$=[],D$=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"typography-category"},[t("div",{staticClass:"typography-category__container"},[e.isOpen?e._e():t("BrandTypographyFont",{attrs:{value:e.representativeFont,description:e.label,label:`${e.filteredFonts.length} fonts`},on:{update:e.open}}),e.isOpen?t("div",{staticClass:"typography-category__picker"},[t("div",{staticClass:"typography-category__header"},[t("span",{staticClass:"typography-category__title"},[e._v(e._s(e.label)+" fonts")]),t("IconButton",{attrs:{small:"true",icon:"CloseIcon"},on:{click:e.close}})],1),t("div",{staticClass:"typography-category__search"},[t("TextInput",{attrs:{placeholder:e.searchInputPlaceholder,value:e.filter},on:{input:e.updateFilter}})],1),t("div",{staticClass:"typography-category__fonts"},e._l(e.filteredFonts,(function(n,s){return t("BrandTypographyFont",{key:"font-"+s,attrs:{value:n},on:{update:e.update}})})),1)]):e._e()],1)])},A$=[];const Z$={"sans-serif":"Inter",serif:"Playfair Display",display:"Alfa Slab One",handwriting:"Caveat Brush",monospace:"Roboto Mono"};let O$=class extends s.ZP{constructor(){super(...arguments),this.isOpen=!1,this.filter=""}updateFilter(e){this.filter=e}open(){this.isOpen=!0,this.$emit("show",this.label)}close(){this.isOpen=!1,this.$emit("show","")}get filteredFonts(){return this.fonts.filter((e=>e.label.toLowerCase().includes(this.filter.toLowerCase())))}get searchInputPlaceholder(){return`Search ${this.label} fonts`}update(e){this.$emit("update",e)}getRepresentativeFont(e,t){const n=e.find((e=>e.label===Z$[t]));return n||null}get representativeFont(){const e=this.label;return this.getRepresentativeFont(this.fonts,e)}};(0,r.gn)([(0,l.fI)()],O$.prototype,"label",void 0),(0,r.gn)([(0,l.fI)()],O$.prototype,"fonts",void 0),O$=(0,r.gn)([(0,cR.ZP)({components:{BrandTypographyFont:RR,IconButton:Xa.Z,TextInput:na.Z}})],O$);const M$=O$,B$=M$;var L$=(0,N.Z)(B$,D$,A$,!1,null,null,null);const N$=L$.exports;let F$=class extends s.ZP{constructor(){super(...arguments),this.currentCategory=""}get currentFont(){return c.singularityStore.currentFont}get fontsByCategory(){return c.configStore.fonts.reduce(((e,t)=>{const n=t.category||"Other";return e[n]||(e[n]=[]),e[n].push(t),e}),{})}get filteredFontsByCategory(){return this.currentCategory?{[this.currentCategory]:this.fontsByCategory[this.currentCategory]||[]}:this.fontsByCategory}showCategory(e){this.currentCategory=e}update(e){this.currentFont&&(c.singularityStore.setSingularityLeftPanel("brand"),jR(this.currentFont,e.slug))}};F$=(0,r.gn)([(0,l.wA)({components:{SingularityPanelHeader:EL,BrandTypographyPicker:zR,BrandTypographyCategory:N$}})],F$);const R$=F$,V$=R$;var $$=(0,N.Z)(V$,E$,T$,!1,null,null,null);const W$=$$.exports;var U$=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-panel vscroll-wrap vscroll-scroll"},[t("div",{staticClass:"singularity-panel__wrapper"},[t("SingularityPanelHeader",{attrs:{backState:"page_structure",parentTitle:"Add Section",childTitle:e.childTitle}}),t("div",{staticClass:"singularity-panel__content"},[e.addNewSectionPanelState?"breakdance_ai"===e.addNewSectionPanelState.mode?t("div",{staticClass:"form-content"},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"section-description"}},[e._v("Section Description")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.sectionDescription,expression:"sectionDescription"}],staticClass:"form-textarea",attrs:{id:"section-description",placeholder:"Describe what this section should contain (e.g., 'Hero section for a tech company with a headline, subheadline, and call-to-action button')",rows:"4"},domProps:{value:e.sectionDescription},on:{input:function(t){t.target.composing||(e.sectionDescription=t.target.value)}}})]),t("div",{staticClass:"form-actions"},[t("NiceButton",{attrs:{color:"gray",size:"large"},on:{click:e.goBack}},[e._v(" Back ")]),t("NiceButton",{attrs:{"left-icon":"SparklesSolidIcon",color:"yellow",size:"large",expanded:"true",disabled:!e.sectionDescription.trim()||e.isGenerating},on:{click:e.generateSection}},[e._v(" "+e._s(e.isGenerating?"Generating...":"Generate Section")+" ")])],1)]):e._e():t("div",{staticClass:"singularity-new-section-panel__options"},[t("SingularityOption",{attrs:{icon:"Grid2PlusSolidIcon",title:"Select from Library"},on:{click:e.openLibraryModal}}),t("SingularityOption",{attrs:{icon:"SparklesSolidIcon",title:"Build with AI"},on:{click:e.setBreakdanceAIMode}})],1)])],1)])},z$=[],H$=n(34755),G$=n(44652),K$=n(56888);async function j$(e,t){const n=await q$(e);if(!n)return console.error("Failed to determine section type"),null;const s={type:n.type,sectionFriendlyName:n.friendlyName,description:e},i=(0,Ja.pJ)(s);if(!i)return console.error("Failed to get section template for type:",n.type),null;if(!t)return i;const o=(0,ge.getBlankTree)(),a=(0,ge.copyNode)(o,i);(0,ge.moveNode)(o,a.id,o.root.id,0);const r=await(0,er.j)((async e=>await(0,G$.M)([{id:String(a.id),messages:(0,H$.kk)(a)}],e)),{jobType:"section_rewrite",documentId:0,elementId:a.id,description:`Generating section: ${e}`,priority:"critical",snapshotLabel:"Create Section With AI"}),l=(0,NF.hF)(o,r),c=await(0,er.j)((async e=>await(0,NF.P2)(l,e)),{jobType:"section_image_replacement",documentId:0,elementId:a.id,description:`Populating images for section: ${e}`,priority:"high",snapshotLabel:"Populate Images With AI"}),d=(0,ge.findNode)(c,a.id);return d||null}async function q$(e){const t=c.globalStore.aiSettings.prompt.businessName,n=c.globalStore.aiSettings.prompt.businessDescription,s=(0,Ja.FX)(),i=s.map((e=>`'${e}'`)).join(", "),o=[{role:"system",content:`You are an assistant that determines the appropriate section type for a website based on a description.\n\nWebsite name: ${t}\nWebsite description: ${n}\n\nValid section types are: ${i}\n\nYou must respond with a JSON object containing a "type" field with one of the valid section types, and a "friendlyName" field which is a short friendly name (1 to 3 words) that describes the content of the section.`},{role:"user",content:`Based on the following description, determine which section type to use:\n\n"${e}"\n\nRespond with JSON format: {"type": "chosen_section_type","friendlyName": "Friendly Name For The Section"}`}],a={id:"section-type-determination",messages:o};try{const t=await(0,er.j)((async e=>await(0,G$.M)([a],e)),{jobType:"section_rewrite",documentId:0,elementId:"section-type-determination",description:`Determining section type for: ${e}`,priority:"critical",dontCreateSnapshot:!0});if(t.length>0&&t[0].content){const e=(0,K$.B)(t[0].content);if(!e)return;return{type:e.type,friendlyName:e.friendlyName}}}catch(r){console.error("Failed to determine section type:",r)}}let X$=class extends s.ZP{constructor(){super(...arguments),this.option=null,this.sectionDescription="",this.isGenerating=!1}openLibraryModal(){c.singularityStore.setSectionAddOrSwapPanelState({mode:"add_after",sectionId:this.currentlyActiveSectionId}),c.singularityStore.setSectionLibraryModalState(!0),(0,Tt.K)("FutureLayer New Section: Library Selected")}get currentlyActiveSectionId(){return c.uiStore.activeElement?c.uiStore.activeElement.data.type!==Ge.SECTION_SLUG?null:c.uiStore.activeElement.id:null}get childTitle(){return null===this.addNewSectionPanelState?"Add":"breakdance_ai"===this.addNewSectionPanelState.mode?"Build with AI":"Add"}setBreakdanceAIMode(){c.singularityStore.setAddNewSectionPanelState({mode:"breakdance_ai"}),(0,Tt.K)("FutureLayer New Section: AI Selected")}goBack(){c.singularityStore.setAddNewSectionPanelState(null)}get addNewSectionPanelState(){return c.singularityStore.addNewSectionPanelState}async generateSection(){if(!this.sectionDescription.trim()||this.isGenerating)return;this.isGenerating=!0;const e=await j$(this.sectionDescription,!1);if((0,Tt.K)("FutureLayer New Section: AI Generation Started",{description:this.sectionDescription}),e){const t=cr(e,this.currentlyActiveSectionId??-1);t&&c.uiStore.activateElement(t),this.sectionDescription="",c.singularityStore.setAddNewSectionPanelState(null),c.singularityStore.setSingularityLeftPanel("page_structure")}else console.error("Failed to generate section");this.isGenerating=!1}};X$=(0,r.gn)([(0,l.wA)({components:{SingularityPanelHeader:EL,SingularityOption:Or,NiceButton:Br.Z}})],X$);const Y$=X$,Q$=Y$;var J$=(0,N.Z)(Q$,U$,z$,!1,null,null,null);const eW=J$.exports;var tW=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-panel vscroll-wrap vscroll-scroll"},[t("div",{staticClass:"singularity-panel__wrapper"},[t("SingularityPanelHeader",{attrs:{backState:"page_structure",parentTitle:"Sections",childTitle:e.modalTitle}}),t("div",{staticClass:"singularity-panel__content"},[e.option?"content"===e.option?t("div",{staticClass:"form-content"},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"page-description"}},[e._v("Section Description")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.internalSectionDescription,expression:"internalSectionDescription"}],staticClass:"form-textarea",attrs:{id:"page-description",placeholder:"Describe what you want the content of this section to be about (e.g., 'A team of professionals collaborating in a modern office environment')",rows:"4"},domProps:{value:e.internalSectionDescription},on:{input:[function(t){t.target.composing||(e.internalSectionDescription=t.target.value)},e.updateDescription]}})]),t("div",{staticClass:"form-actions"},[t("NiceButton",{attrs:{color:"gray",size:"large"},on:{click:e.closePanel}},[e._v(" Back ")]),t("NiceButton",{class:{"is-spinning":e.isSectionCurrentlyRewritingWithAi},attrs:{disabled:e.isSectionCurrentlyRewritingWithAi,"left-icon":e.isSectionCurrentlyRewritingWithAi?"CircleNotchSolidIcon":"SparklesIconSolid",color:"yellow",size:"large",expanded:"true"},on:{click:e.rewrite}},[e._v(" "+e._s(e.isSectionCurrentlyRewritingWithAi?"Working...":"Rewrite With AI")+" ")])],1)]):"images"===e.option?t("div",{staticClass:"form-content"},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"page-description"}},[e._v("Images Description")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.internalImagesDescription,expression:"internalImagesDescription"}],staticClass:"form-textarea",attrs:{id:"page-description",placeholder:"Describe what kind of images should be in this section (e.g., 'A modern office space with people collaborating')",rows:"4"},domProps:{value:e.internalImagesDescription},on:{input:function(t){t.target.composing||(e.internalImagesDescription=t.target.value)}}})]),t("div",{staticClass:"form-actions"},[t("NiceButton",{attrs:{color:"gray",size:"large"},on:{click:e.closePanel}},[e._v(" Back ")]),t("NiceButton",{class:{"is-spinning":e.isSectionCurrentlyReplacingImagesWithAi},attrs:{"left-icon":e.isSectionCurrentlyReplacingImagesWithAi?"CircleNotchSolidIcon":"SparklesIconSolid",color:"yellow",size:"large",expanded:"true"},on:{click:e.repopulateImages}},[e._v(e._s(e.isSectionCurrentlyReplacingImagesWithAi?"Updating...":"Replace All Images")+" ")])],1)]):e._e():t("div",{staticClass:"singularity-new-section-panel__options"},[t("SingularityOption",{attrs:{icon:"SparklesIcon",title:"Rewrite Content"},on:{click:function(t){return e.setOption("content")}}}),t("SingularityOption",{attrs:{icon:"ImageIcon",title:"Replace Images"},on:{click:function(t){return e.setOption("images")}}})],1),e.isSectionAiWorkDone?t("FeedbackBoxAI",{attrs:{"event-properties":e.eventPropertiesForTracking}}):e._e()],1)],1)])},nW=[];let sW=class extends s.ZP{constructor(){super(...arguments),this.option=null,this.internalSectionDescription="",this.internalImagesDescription=""}closeDialog(){this.$emit("close")}closePanel(){c.singularityStore.setSectionRewritePanelState(null),c.singularityStore.setSingularityLeftPanel("page_structure")}setOption(e){this.option=e,(0,Tt.K)("FutureLayer Section Rewrite Option Selected",{option:e})}get promptInfo(){if(!this.section)return null;const e=(0,ge.findNode)(c.documentStore.document.tree,this.section.nodeId);return e?(0,sr.E)(e):null}get eventPropertiesForTracking(){return{location:"section_rewrite_panel",section_description:this.section?.description||null,prompt_info:this.promptInfo,rewrite_option:this.option||null,prompt_input:"content"===this.option?this.internalSectionDescription:this.internalImagesDescription}}get modalTitle(){return"content"===this.option?"Edit with AI":"images"===this.option?"Images":"Select"}get section(){return c.singularityStore.sectionRewritePanelState?c.singularityStore.sectionRewritePanelState.section:null}rewrite(){this.section&&(er.P.addJob((async e=>{this.section&&await(0,tr.H2)(this.section.nodeId,e)}),{jobType:"section_rewrite",documentId:c.documentStore.document.documentMeta.id,elementId:this.section.nodeId,description:`Section rewrite from rewrite panel for section ${this.section.nodeId}`,priority:"critical",snapshotLabel:"Rewrite section with AI"}),this.closeDialog(),(0,Tt.K)("FutureLayer Section Rewrite Started"))}repopulateImages(){if(!this.section)return;const e=(0,ge.findNode)(c.documentStore.document.tree,this.section.nodeId);e&&(er.P.addJob((async t=>{await(0,nr.q)(e,t)}),{jobType:"section_image_replacement",documentId:c.documentStore.document.documentMeta.id,elementId:this.section.nodeId,description:`Image replacement from rewrite panel for section ${this.section.nodeId}`,priority:"critical",snapshotLabel:"Rewrite section with AI"}),this.closeDialog(),(0,Tt.K)("FutureLayer Section Image Replacement Started"))}get isSectionCurrentlyRewritingWithAi(){return!!this.section&&c.singularityStore.aiJobs.filter((e=>"elementId"in e.context&&e.context.elementId===this.section?.nodeId&&("running"===e.status||"pending"===e.status)&&"section_rewrite"===e.context.jobType)).length>0}get isSectionCurrentlyReplacingImagesWithAi(){return!!this.section&&c.singularityStore.aiJobs.filter((e=>"elementId"in e.context&&e.context.elementId===this.section?.nodeId&&("running"===e.status||"pending"===e.status)&&"section_image_replacement"===e.context.jobType)).length>0}get isSectionAiWorkDone(){return!!this.section&&c.singularityStore.aiJobs.filter((e=>"elementId"in e.context&&e.context.elementId===this.section?.nodeId&&("completed"===e.status||"failed"===e.status)&&("section_rewrite"===e.context.jobType||"section_image_replacement"===e.context.jobType))).length>0}updateDescription(){this.section&&fM(this.section.nodeId,this.internalSectionDescription)}onSectionChange(e){this.internalSectionDescription=e?.description||"",this.internalImagesDescription="",this.option=e?"content":null}};(0,r.gn)([(0,l.RL)("section",{immediate:!0})],sW.prototype,"onSectionChange",null),sW=(0,r.gn)([(0,l.wA)({components:{SingularityPanelHeader:EL,SingularityOption:Or,NiceButton:Br.Z,TextInput:na.Z,IconButton:Xa.Z,Icon:He.Z,FeedbackBoxAI:GF}})],sW);const iW=sW,oW=iW;var aW=(0,N.Z)(oW,tW,nW,!1,null,null,null);const rW=aW.exports;var lW=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"feedback-box",class:{"is-open":e.showFeedback,"feedback-sent":e.feedbackSent}},[e.showFeedback?e._e():t("div",{staticClass:"feedback-button",attrs:{role:"button"},on:{click:e.toggle}},[t("span",[e._v(e._s(e.feedbackSent?"Thank you for your feedback!":"Leave Feedback"))]),t("Icon",{attrs:{icon:e.feedbackSent?"CheckIcon":"CommentSolidIcon",size:"16"}})],1),e.showFeedback?t("div",{staticClass:"flex flex-col gap-2"},[t("Icon",{staticClass:"close-icon",attrs:{icon:"CloseIcon",size:"18",role:"button"},on:{click:e.toggle}}),t("div",{staticClass:"form-group"},[t("label",[e._v("How would you rate your experience?")]),t("div",e._l([1,2,3,4,5],(function(n){return t("button",{key:n},[t("Icon",{staticClass:"feedback-star",class:{"is-selected":n<=(e.rating??0)},attrs:{icon:n<=(e.rating??0)?"StarSolidIcon":"StarIcon",size:"24"},on:{click:function(t){e.rating=n}}})],1)})),0),t("label",{attrs:{for:"feedback"}},[e._v("How can we improve this experience?")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.feedback,expression:"feedback"}],staticClass:"form-textarea",attrs:{id:"feedback",placeholder:"We value your feedback and would love to hear your thoughts.",rows:"4"},domProps:{value:e.feedback},on:{input:function(t){t.target.composing||(e.feedback=t.target.value)}}}),t("NiceButton",{attrs:{color:"gray",disabled:!e.isValidFeedback},on:{click:e.sendFeedback}},[e._v("Send Feedback")])],1)],1):e._e()])},cW=[];let dW=class extends s.ZP{constructor(){super(...arguments),this.showFeedback=!1,this.feedbackTextArea=null,this.feedback="",this.rating=null,this.feedbackSent=!1}get isValidFeedback(){return this.feedback.length>0||this.rating&&this.rating>0}toggle(){this.showFeedback=!this.showFeedback,this.$nextTick((()=>{const e=this.$refs.feedbackTextarea;e&&e.focus()}))}sendFeedback(){this.feedback.length>0&&((0,Tt.K)("FutureLayer Feedback",{location:"sidebar",feedback:this.feedback,rating:this.rating}),this.feedback="",this.feedbackSent=!0,this.rating=null,this.showFeedback=!1,setTimeout((()=>{this.feedbackSent=!1}),3e3))}};dW=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z,NiceButton:Br.Z}})],dW);const uW=dW,pW=uW;var hW=(0,N.Z)(pW,lW,cW,!1,null,null,null);const gW=hW.exports;let mW=class extends s.ZP{get isLeftPanelHighlighted(){return c.singularityStore.singularityUiState.isSingularityLeftPanelHighlighted}get singularityLeftPanelState(){return c.singularityStore.singularityUiState.singularityLeftPanel}get imageEditorKey(){return c.singularityStore.imageEditorPanelState?.elementId||"no-image"}mounted(){(0,ER.MD)()}};mW=(0,r.gn)([(0,l.wA)({components:{SectionWriter:hM,PageStructureNew:JB,ImageEditor:nN,BackgroundImageEditor:yN,IconEditor:PN,TextEditor:ON,LinkEditor:$N,ContentPropertiesEditor:jN,HeaderAndFooterEditor:xF,WPPageManagerNew:nR,BrandPanel:p$,BrandPanelColorEdit:k$,BrandPanelTypographyEdit:W$,NewSectionPanel:eW,RewriteSectionPanel:rW,FeedbackBox:gW}})],mW);const vW=mW,yW=vW;var fW=(0,N.Z)(yW,oM,aM,!1,null,null,null);const _W=fW.exports;var bW=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity",class:e.classes},[e.isStep1?e._e():t("TopNavBuilder"),e.isStep1?[t("div",{staticClass:"singularity-main-area"},[t("Step1")],1)]:[t("div",{staticClass:"singularity-main-area vscroll-scroll"},[t("SingularityLeftPanelNew",{directives:[{name:"show",rawName:"v-show",value:e.singularityUiState.singularityLeftPanel,expression:"singularityUiState.singularityLeftPanel"}],key:"left_panel"}),t("SingularityCanvas",{key:"canvas",on:{loaded:function(t){return e.$emit("loaded")}}}),t("SingularityRightPanel",{directives:[{name:"show",rawName:"v-show",value:e.singularityUiState.singularityRightPanel,expression:"singularityUiState.singularityRightPanel"}],key:"right_panel"}),e.isFullWidthState?[t("SingularityFullWidthPanel")]:e._e()],2)],e.isSectionLibraryModalOpen?t("SingularitySectionLibraryModal",{on:{close:e.closeSectionLibraryModal}}):e._e(),t("OutOfCreditsModal"),t("PlanExpiredModal")],2)},SW=[],CW=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-prompt",class:{"singularity-prompt--loading":!e.waitingForThingsToBeReadyDone||e.creating||e.shouldAutostart}},[t("div",{staticClass:"singularity-prompt__wrapper"},[t("div",{staticClass:"singularity-prompt__title-wrapper"},[t("h1",{staticClass:"singularity-prompt__title"},[e.creating||e.shouldAutostart?t("Icon",{staticClass:"animate-spin",attrs:{icon:"CircleNotchSolidIcon",size:"38"}}):e._e(),e._v(" "+e._s(e.creating||e.shouldAutostart?"Building your new website...":"Let's get started")+" ")],1),t("p",{staticClass:"singularity-prompt__tagline"},[e._v(" "+e._s(e.creating||e.shouldAutostart?"This may take a minute, please be patient.":"Create a website in minutes with AI.")+" ")])]),e.creating||e.shouldAutostart?e._e():t("div",{staticClass:"singularity-prompt__prompt-wrapper"},[t("TextInput",{staticClass:"singularity-prompt__prompt-input",attrs:{value:e.businessName,label:"Website Name",multiline:!0,id:"businessName",placeholder:"Enter your website name"},on:{input:e.updateBusinessName}}),t("div",{staticClass:"singularity-prompt__description-wrapper"},[t("TextInput",{staticClass:"singularity-prompt__prompt-input",attrs:{value:e.businessDescription,multiline:!0,id:"Description",label:"Description",placeholder:"Create a website for..."},on:{input:e.updateBusinessDescription}}),t("div",{staticClass:"singularity-prompt__prompt-buttons"},[t("NiceButton",{class:{"is-spinning":e.creating},attrs:{loading:e.creating,disabled:e.creating,color:"yellow",size:"large","left-icon":"SparklesSolidIcon"},on:{click:e.generate}},[e._v("Start Building")])],1)],1)],1)])])},xW=[],wW=n(1638),IW=n(81626),PW=n(76007);async function kW(e=""){await(0,PW.c)();const t=c.globalStore.aiSettings.prompt.businessName??"",n=c.globalStore.aiSettings.prompt.businessDescription??"",s=(0,Ja.FX)().map((e=>`'${e}'`)).join(", ");var i="";i=e?`Generate a sitemap for a website.\n\n ${e?`\n ${e}\n `:""}\n\n Valid values for 'type' are ${s}. It's important you don't use any other values for 'type'.`:`Generate a sitemap for a website.\n\n The website should have an appropriate number of pages for the content. If the prompt includes information about the services offered, consider individual pages for each service.\n\n Each page should have an appropriate number of sections for its type. Maybe 8 for the homepage, and just one or two for the contact page.\n \n Website name: ${t}\n Website description: ${n}\n\n Valid values for 'type' are ${s}. It's important you don't use any other values for 'type'.`;const o=await(0,er.j)((async e=>await(0,IW.C)(i,wW.Pu,e,!0)),{jobType:"sitemap_generation",businessName:t,businessDescription:n,description:`Generating sitemap for ${t}`,priority:"critical"});return o}async function EW(e,t){const n=(0,id.pipe)(await(0,Hl.Dl)(e),(0,od.fold)((()=>{}),(e=>"document"in e&&e.document.documentMeta.singularityMeta&&e.document.documentMeta.singularityMeta.singularityInitialSections?e.document.documentMeta.singularityMeta.singularityInitialSections:void 0)));if(!n)return void console.error("No initial sections found for page ID:",e);await(0,Hl.ZR)(),await(0,PW.c)();const s=(0,ge.getBlankTree)();for(let i=0;i{const n=(0,ge.findNode)(e,t.nodeId);n&&Sd()(n.data.properties,t.controlPath,t.value)})),i.singularity.shouldGenerateOnInitialLoad=!1,i.singularity.unsplashKeywords=t.unsplash_keywords,Sd()(s.data.properties,"meta.promptInfo",i)}catch(l){(0,ir.Qm)(l)}}async function DW(e,t,n){alert("dont use this, use replaceImagesInSectionWithAiMutating instead");const s=(0,ge.findNode)(e,t);if(!s)return;const i=(0,sr.E)(s),o=i.singularity.unsplashKeywords.length?i.singularity.unsplashKeywords:["generic"],a=(0,ir.ho)(s);if(!(a.length>0))return;const r=await(0,oL.Ok)({query:o.join(", "),page:1,per_page:a.length},n);console.log("unsplashResults",r),console.log("imageFieldsToComplete",a);for(let l=0;l{const s=e.map((e=>({title:e.title,id:e.id}))),i=await(0,IW.C)(`what are the most important pages for the header menu for our website in this list of pages? return them in the order they should appear in a header menu. return up to ${t} pages\n\n ${(0,Wg.g)(s)}\n\n `,iu.dt({pageIds:iu.IX(iu.pk)}),n,!0);return i?i.pageIds:(console.error("No important pages found"),[])}),{jobType:"sitemap_generation",businessName:"Website",businessDescription:"Menu generation for website navigation",description:`Analyzing ${e.length} pages to determine the most important ${t} for the header menu`,priority:"critical"})}async function ZW(e){const t=await AW(e,5);return(0,id.pipe)(await(0,ad.D)({action:"breakdance_singularity_sync_pages_to_default_wp_menu",decoder:iu.dt({success:iu.Z_}),dataToPost:{pageIds:(0,Wg.g)(t)}}),(0,od.fold)((()=>null),(e=>{console.log("Menu updated successfully:",e.success)})))}async function OW(e){console.log("Rebuilding from URL:",e);const t=(0,id.pipe)(await(0,ad.D)({action:"breakdance_singularity_website_intake_service",friendlyName:"Website Service Thing",dataToPost:{url:e},decoder:iu.IX(MW),resultKey:"data"}),(0,od.fold)((()=>{}),(e=>e)));await BW("we are rebuilding an existing website, and here is the info on the existing website. we want the new website to be as similar as possible to the existing one. here is data on the existing website: "+(0,Wg.g)(t))}const MW=iu.dt({url:iu.Z_,originalTitle:iu.Z_,analysis:iu.G0([iu.lB,iu.dt({title:iu.Z_,sections:iu.IX(iu.dt({title:iu.Z_,content:iu.Z_}))})]),images:iu.dt({images:iu.IX(iu.dt({url:iu.Z_,description:iu.Z_}))}),error:iu.G0([iu.S1,iu.Z_])});async function BW(e=""){await(0,EF.np)();const t=await kW(e);if(!t)return;const n=[];for(const i of t){const e=await(0,EF.Le)(i.title,{singularityInitialSections:i.sections},"page");e&&(n.push(e),i.title.toLowerCase().includes("home")||er.P.addJob((async t=>{await EW(e.id,t)}),{jobType:"background_page_generation",pageId:e.id,pageTitle:i.title,description:`Behind the scenes page generation for "${i.title}"`,priority:"low"}))}await ZW(n),await LW();const s=c.singularityStore.pagesInWP.find((e=>e.title.toLowerCase().includes("home")));s?(c.uiStore.setUnsavedChangesPresent(!1),await(0,Hl.rI)(s.id)):(c.uiStore.setUnsavedChangesPresent(!1),await(0,Hl.rI)(c.singularityStore.pagesInWP[0].id)),c.singularityStore.setSingularityUiState({...c.singularityStore.singularityUiState,singularityLeftPanel:"page_structure"})}async function LW(){await NW("Header",zd.kl,"head"),await NW("Footer",zd.WZ,"foot")}async function NW(e,t,n){const s=await(0,EF.Le)(e,{},t);if(!s)return;const i=(0,Ja.FX)().find((e=>e.toLowerCase().includes(n)));if(!i)return;const o=(0,Ja.pJ)({type:i,sectionFriendlyName:e,description:""});if(!o)return;await(0,Hl.ZR)();const a=(0,ge.getBlankTree)(),r=(0,ge.copyNode)(a,o);(0,ge.moveNode)(a,r.id,a.root.id,0);const l={type:"everywhere",priority:1,ruleGroups:[],disabled:!1};FW(a,s.id,l)}async function FW(e,t,n){const s={id:t,tree:(0,Uh.J)((0,ge.exportTree)(e)),templateSettings:n?(0,Uh.J)(n):void 0},i=(0,id.pipe)(await(0,ad.D)({friendlyName:"Saving to WordPress",action:"breakdance_save",dataToPost:s,decoder:iu._4}),(0,od.fold)((e=>((0,th.UE)(e),(0,od.left)(e))),(e=>(0,od.right)(e))));return i}async function RW(e,t){const n={id:e,singularityMeta:t?(0,Uh.J)(t):void 0},s=(0,id.pipe)(await(0,ad.D)({friendlyName:"Update Singularity Meta",action:"breakdance_singularity_update_singularity_meta",dataToPost:n,decoder:iu._4}),(0,od.fold)((e=>((0,th.UE)(e),(0,od.left)(e))),(e=>(0,od.right)(e))));return s}var VW=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("header",{staticClass:"singularity-top-nav"},[t("TopNavNotificationBar"),t("div",{staticClass:"singularity-top-nav-main"},[t("div",{staticClass:"singularity-top-nav__logo"},[t("FutureLayerIconAndWarningWrapper",{attrs:{forceHideExpirationWarning:!1}})],1),t("nav",{staticClass:"singularity-top-nav__menu"},[t("ul",[e._t("menu")],2)]),t("div",{staticClass:"singularity-top-nav__actions"},[e._t("actions")],2)])],1)},$W=[],WW=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-top-nav-top",class:{success:e.showClaimSuccess}},[e.showClaimSuccess||e.claimInProgress?t("TopNavNotificationBarSuccess",{attrs:{loading:e.claimInProgress},on:{dismiss:e.handleDismiss}}):e.isOnInstaWPAndUnclaimed?t("TopNavNotificationBarDeletionWarning"):e.isSelfHostedAndUnclaimed?t("TopNavNotificationBarConnectSite"):e._e()],1)},UW=[],zW=n(88396);function HW(){return c.singularityStore.siteStatus.claimUrl}function GW(){const e=new URLSearchParams(window.location.search);return e.get("claim_key")}async function KW(e){console.log("Processing claim key:",e);const t=await(0,ad.D)({action:"futurelayer_process_claim_key_ajax",dataToPost:{claim_key:e},decoder:iu.dt({success:iu.O7,message:iu.Z_,site_state:zW.pl}),suppressErrorLogging:!1,friendlyName:"Process Claim Key"});return"Right"===t._tag&&t.right.success?(console.log("Claim successful:",t.right.message),c.singularityStore.setSiteStatus({...c.singularityStore.siteStatus,isClaimed:!0,siteState:t.right.site_state}),!0):(console.error("Claim failed:","Right"===t._tag?t.right.message:"Unknown error"),!1)}function jW(){const e=new URL(window.location.href);e.searchParams.delete("claim_key"),window.history.replaceState({},"",e.toString())}async function qW(){const e=GW();e&&await KW(e)}var XW=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-top-nav-top-inner"},[t("span",{staticClass:"message"},[e._v(" This temporary site will be deleted in "),t("span",{staticClass:"counter"},[e._v(e._s(e.formattedTime))]),e._v(" unless you register and claim it. ")]),t(Qo.Z,{staticClass:"btn-action",on:{click:e.handleClaimSite}},[e._v(" Claim Your Site ")])],1)},YW=[];function QW(){const e=c.singularityStore.siteStatus.siteState;if(!e||"error"in e)return null;if(!e.expiration)return null;const t=(1e3*e.expiration-Date.now())/1e3;return t}function JW(e,t){const n=Math.floor(e/3600),s=Math.floor(e%3600/60),i=Math.floor(e%60);return t?n>0?`${n}:${s.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:`${s}:${i.toString().padStart(2,"0")}`:n>0?`${n}:${s.toString().padStart(2,"0")}`:`${s}m`}function eU(){const e=c.singularityStore.siteStatus.siteState;if(!e||"error"in e)return null;if(!e.expiration)return null;const t=(1e3*e.expiration-Date.now())/1e3;return t}function tU(){const e=HW();if(e){const t=encodeURIComponent(window.location.href),n=`${e}&return_to=${t}`;window.location.href=n}}let nU=class extends s.ZP{constructor(){super(...arguments),this.intervalId=null,this.timeRemainingInSeconds=null}get formattedTime(){return!!this.timeRemainingInSeconds&&JW(this.timeRemainingInSeconds,!0)}handleClaimSite(){tU()}mounted(){this.timeRemainingInSeconds=QW(),this.intervalId=window.setInterval((()=>{this.timeRemainingInSeconds=QW()}),1e3)}beforeDestroy(){null!==this.intervalId&&clearInterval(this.intervalId)}};nU=(0,r.gn)([(0,l.wA)({})],nU);const sU=nU,iU=sU;var oU=(0,N.Z)(iU,XW,YW,!1,null,null,null);const aU=oU.exports;var rU=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-top-nav-top-inner"},[t("span",{staticClass:"message"},[e._v(" Connect this site to your FutureLayer account. ")]),t(Qo.Z,{staticClass:"btn-action",on:{click:e.handleClaimSite}},[e._v(" Connect Site ")])],1)},lU=[];let cU=class extends s.ZP{handleClaimSite(){tU()}};cU=(0,r.gn)([(0,l.wA)({})],cU);const dU=cU,uU=dU;var pU=(0,N.Z)(uU,rU,lU,!1,null,null,null);const hU=pU.exports;var gU=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-top-nav-top-inner"},[e.loading?t("span",{staticClass:"message"},[t("span",{staticClass:"spinner"}),e._v(" Connecting your site... ")]):[t("span",{staticClass:"message"},[e._v(" Your site is now connected to your FutureLayer account. ")]),t(Qo.Z,{staticClass:"btn-action",on:{click:e.dismiss}},[e._v(" Dismiss ")])]],2)},mU=[];let vU=class extends s.ZP{dismiss(){jW(),this.$emit("dismiss")}};(0,r.gn)([(0,l.fI)({type:Boolean,default:!1})],vU.prototype,"loading",void 0),vU=(0,r.gn)([(0,l.wA)({})],vU);const yU=vU,fU=yU;var _U=(0,N.Z)(fU,gU,mU,!1,null,null,null);const bU=_U.exports;let SU=class extends s.ZP{constructor(){super(...arguments),this.hasClaimKeyInUrl=!1,this.claimInProgress=!1}get hasExpiration(){const e=c.singularityStore.siteStatus.siteState;return!(!e||"error"in e)&&(null!==e.expiration&&void 0!==e.expiration)}get isSelfHostedAndUnclaimed(){return!this.hasExpiration&&!this.isClaimed}get isOnInstaWPAndUnclaimed(){return this.hasExpiration&&!this.isClaimed}get isClaimed(){return c.singularityStore.siteStatus.isClaimed}get showClaimSuccess(){return this.isClaimed&&this.hasClaimKeyInUrl}async mounted(){this.hasClaimKeyInUrl=null!==GW(),this.hasClaimKeyInUrl&&(this.claimInProgress=!0,await qW(),this.claimInProgress=!1)}handleDismiss(){jW(),this.hasClaimKeyInUrl=!1}};SU=(0,r.gn)([(0,l.wA)({components:{TopNavNotificationBarDeletionWarning:aU,TopNavNotificationBarConnectSite:hU,TopNavNotificationBarSuccess:bU}})],SU);const CU=SU,xU=CU;var wU=(0,N.Z)(xU,WW,UW,!1,null,null,null);const IU=wU.exports;var PU=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"futurelayer-icon-and-warning-wrapper"},[t("FutureLayerLogoMenu"),e.shouldShowBadge?t("FutureLayerDaysRemainingBadge"):e._e()],1)},kU=[],EU=n(60092),TU=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(EU.Z,{attrs:{"offset-y":"",bottom:"",left:"","close-on-content-click":!1},on:{input:e.onToggle},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({staticClass:"logo-wrapper"},"div",s,!1),n),[t("Logo",{attrs:{fill:"white",size:"40"}})],1)]}}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t(Jc.Z,{staticClass:"account-dropdown"},[t(Ec.Z,[t(Tc.Z,{attrs:{dense:""},on:{click:e.openSettings}},[t(Dc.V9,[e._v("Site Settings")])],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.toggleAdvancedMode}},[t(Dc.V9,[e._v("Open in Breakdance")])],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.openFrontend}},[t(Dc.V9,[e._v("Open in New Tab")])],1),t(Tc.Z,{attrs:{href:e.backToAdmin,dense:""}},[t(Dc.V9,[e._v("Exit to WordPress")])],1),t(bp.Z,{staticClass:"mt-2 mb-2"}),t(Tc.Z,{attrs:{dense:""},on:{click:e.toggleMobileBreakpoint}},[t(Dc.V9,[e._v(" Toggle Mobile View "+e._s(e.isMobile?"✓":""))])],1),t(Tc.Z,{attrs:{dense:"",disabled:e.isMobile},on:{click:e.toggleZoomLevel}},[t(Dc.V9,[e._v(" Toggle Zoom "+e._s(e.isZoomActive?"✓":""))])],1),e.devEnvironment?[t(bp.Z,{staticClass:"mt-2 mb-2"}),t(Tc.Z,{attrs:{dense:""},on:{click:e.toggleSingularityDebugPanel}},[t(Dc.V9,[e._v("Open Debug")])],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.toggleSidebarPanels}},[t(Dc.V9,[e._v(" Toggle Sidebar Panels "+e._s(e.sidebarPanelsEnabled?"✓":"")+" ")])],1),e.sidebarPanelsEnabled?t(Tc.Z,{attrs:{dense:""},on:{click:e.toggleHistoryPanel}},[t(Dc.V9,[e._v(" Toggle History "+e._s(e.isHistoryPanelOpen?"✓":"")+" ")])],1):e._e(),t(Tc.Z,{attrs:{dense:""},on:{click:e.toggleAIJobManager}},[t(Dc.V9,[e._v("Toggle AI Job Manager")])],1)]:e._e()],2),e.isClaimed?[t(bp.Z),e.isLoading?t("div",{staticClass:"account-info loading-state"},[t(Xp.Z,{attrs:{indeterminate:"",size:"32"}})],1):t("div",{staticClass:"account-info"},[e.userData?t("div",{staticClass:"account-email"},[e._v(" "+e._s(e.userData.email)+" ")]):e._e(),t("div",{staticClass:"account-credits"},[t("strong",[e._v("Credits:")]),e._v(" "+e._s(e.credits)+" ")]),e.planSlug?t("div",{staticClass:"account-plan"},[t("strong",[e._v("Plan:")]),e._v(" "+e._s(e.planDisplayName)+" ")]):e._e(),t("NiceButton",{staticClass:"mt-2",attrs:{size:"small"},on:{click:e.manageAccount}},[e._v(" Manage Account ")])],1)]:e._e()],2)],1)},DU=[],AU=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("svg",{attrs:{width:e.size,height:e.size,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("rect",{attrs:{y:"0.0706177",width:"5.24729",height:"5.24729",rx:"2.62364",fill:e.fill}}),t("rect",{attrs:{x:"6.32727",y:"0.0706177",width:"5.24729",height:"5.24729",rx:"2.62364",fill:e.fill}}),t("rect",{attrs:{x:"12.6545",y:"0.0706177",width:"5.24729",height:"5.24729",rx:"2.62364",fill:e.fill}}),t("rect",{attrs:{y:"6.39789",width:"5.24729",height:"5.24729",rx:"2.62364",fill:e.fill}}),t("rect",{attrs:{x:"6.32727",y:"6.39789",width:"5.24729",height:"5.24729",rx:"2.62364",fill:e.fill}}),t("rect",{attrs:{y:"12.7252",width:"5.24729",height:"5.24729",rx:"2.62364",fill:e.fill}})])},ZU=[];let OU=class extends s.ZP{};(0,r.gn)([(0,l.fI)({default:"32"})],OU.prototype,"size",void 0),(0,r.gn)([(0,l.fI)({default:"#ffffff"})],OU.prototype,"fill",void 0),OU=(0,r.gn)([l.wA],OU);const MU=OU,BU=MU;var LU=(0,N.Z)(BU,AU,ZU,!1,null,null,null);const NU=LU.exports;var FU=n(48379);const RU="breakpoint_phone_portrait";let VU=class extends s.ZP{constructor(){super(...arguments),this.isOpen=!1,this.isLoading=!1}get devEnvironment(){return(0,zg.y)()}get siteState(){return c.singularityStore.siteStatus.siteState}get isClaimed(){return!(!this.siteState||"error"in this.siteState)&&"claimed"===this.siteState.type}get singularityDebugPanelOpen(){return"debug"===c.singularityStore.singularityUiState.singularityRightPanel}get isMobile(){return c.uiStore.currentBreakpoint.id===RU}get isZoomActive(){return c.singularityStore.canvasZoom}get sidebarPanelsEnabled(){return c.singularityStore.debugSidebarPanelsEnabled}get isHistoryPanelOpen(){return"history"===c.uiStore.panelState.leftSidebarPanel||"history"===c.uiStore.panelState.rightSidebarPanel}get userData(){return this.siteState&&"user_data"in this.siteState?this.siteState.user_data:null}get credits(){return this.siteState?"error"in this.siteState?0:"anonymous"===this.siteState.type?this.siteState.credits:"claimed"===this.siteState.type?this.siteState.user_data.credits:0:0}get planSlug(){return!this.siteState||"error"in this.siteState?null:"claimed"===this.siteState.type?this.siteState.user_data.plan_slug:null}get planDisplayName(){return this.planSlug?this.planSlug.charAt(0).toUpperCase()+this.planSlug.slice(1):""}manageAccount(){window.location.href=(0,FU.e)("/"),this.isOpen=!1}onToggle(e){e&&this.fetchSiteState()}async fetchSiteState(){this.isLoading=!0;try{const e=await(0,ad.D)({action:"futurelayer_get_site_state_from_app",decoder:iu.dt({success:iu.O7,data:zW.pl}),suppressErrorLogging:!1,friendlyName:"Get Site State from FutureLayer App"});"Right"===e._tag&&e.right.success&&c.singularityStore.setSiteStatus({...c.singularityStore.siteStatus,siteState:e.right.data})}catch(e){console.error("Failed to fetch site state:",e)}finally{this.isLoading=!1}}toggleSingularityDebugPanel(){c.singularityStore.setSingularityRightPanel(this.singularityDebugPanelOpen?null:"debug"),this.isOpen=!1}toggleAIJobManager(){c.singularityStore.setSingularityRightPanel("ai_job_manager"===c.singularityStore.singularityUiState.singularityRightPanel?null:"ai_job_manager"),this.isOpen=!1}openSettings(){c.singularityStore.setSingularityFullWidthPanel("settings"),this.isOpen=!1}get frontendUrl(){return(0,zu.j)()}get backToAdmin(){return Q.PK.documentSpecificNeededUrls?Q.PK.documentSpecificNeededUrls.backToWordPressUrl:""}openFrontend(){const e=this.frontendUrl;e&&window.open(e,"_blank"),this.isOpen=!1}toggleAdvancedMode(){(0,Aa.Cr)(),this.isOpen=!1}toggleMobileBreakpoint(){const e=this.isMobile?Q.PK.breakpoints.find((e=>e.id===Pe.Wp)):Q.PK.breakpoints.find((e=>e.id===RU));e&&(c.singularityStore.setCanvasZoom(!1),c.uiStore.changeBreakpoint(e),(0,Tt.K)("FutureLayer Mobile Preview Toggle"),this.isOpen=!1)}toggleZoomLevel(){c.singularityStore.toggleCanvasZoom(),(0,Tt.K)("FutureLayer Zoom Toggle"),this.isOpen=!1}toggleHistoryPanel(){this.isHistoryPanelOpen?("history"===c.uiStore.panelState.leftSidebarPanel&&c.uiStore.setLeftSidebarState("closed"),"history"===c.uiStore.panelState.rightSidebarPanel&&c.uiStore.setRightSidebarState("closed")):(0,Bu.oM)("history"),this.isOpen=!1}toggleSidebarPanels(){c.singularityStore.toggleDebugSidebarPanels(),this.isOpen=!1}};VU=(0,r.gn)([(0,l.wA)({components:{Logo:NU,NiceButton:Br.Z}})],VU);const $U=VU,WU=$U;var UU=(0,N.Z)(WU,TU,DU,!1,null,"f078c87e",null);const zU=UU.exports;var HU=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"days-remaining-badge",on:{click:e.navigateToSitePage}},[e._v(" "+e._s(e.daysRemainingText)+" ")])},GU=[];let KU=class extends s.ZP{constructor(){super(...arguments),this.currentTime=Date.now(),this.intervalId=null}get siteState(){return c.singularityStore.siteStatus.siteState}get siteId(){return!this.siteState||"error"in this.siteState?null:"claimed"===this.siteState.type?this.siteState.site_id:null}get secondsRemaining(){return this.currentTime,eU()}get timeRemaining(){if(null===this.secondsRemaining)return null;if(this.secondsRemaining<=0)return{days:0,hours:0,minutes:0};const e=Math.floor(this.secondsRemaining/86400),t=Math.floor(this.secondsRemaining%86400/3600),n=Math.floor(this.secondsRemaining%3600/60);return{days:e,hours:t,minutes:n}}get daysRemainingText(){if(null===this.timeRemaining)return"unknown expiration date";const{days:e,hours:t,minutes:n}=this.timeRemaining;return 0===e&&0===t&&0===n?"act now to prevent site deletion":0===e?0===t?`${n} ${1===n?"minute":"minutes"} remaining`:`${t} ${1===t?"hour":"hours"} ${n} ${1===n?"minute":"minutes"} remaining`:1===e?`1 day ${t} ${1===t?"hour":"hours"} remaining`:`${e} days ${t} ${1===t?"hour":"hours"} remaining`}navigateToSitePage(){if(!this.siteId)return void console.warn("No site ID available");const e=(0,FU.e)(`/sites/expiring/${this.siteId}`);window.location.href=e}mounted(){this.intervalId=window.setInterval((()=>{this.currentTime=Date.now()}),6e4)}beforeDestroy(){null!==this.intervalId&&clearInterval(this.intervalId)}};KU=(0,r.gn)([(0,l.wA)({})],KU);const jU=KU,qU=jU;var XU=(0,N.Z)(qU,HU,GU,!1,null,null,null);const YU=XU.exports;let QU=class extends s.ZP{get siteState(){return c.singularityStore.siteStatus.siteState}get userData(){return this.siteState&&"user_data"in this.siteState?this.siteState.user_data:null}get accountType(){return this.userData?"free"===this.userData?.plan_slug?"free":"pro":null}get isClaimed(){return c.singularityStore.siteStatus.isClaimed}get hasExpiration(){return!(!this.siteState||"error"in this.siteState)&&(null!==this.siteState.expiration&&void 0!==this.siteState.expiration)}get shouldShowBadge(){return this.hasExpiration&&this.isClaimed}};(0,r.gn)([(0,l.fI)({default:!1})],QU.prototype,"forceHideExpirationWarning",void 0),QU=(0,r.gn)([(0,l.wA)({components:{FutureLayerLogoMenu:zU,FutureLayerDaysRemainingBadge:YU}})],QU);const JU=QU,ez=JU;var tz=(0,N.Z)(ez,PU,kU,!1,null,"791520e3",null);const nz=tz.exports;let sz=class extends s.ZP{};sz=(0,r.gn)([(0,l.wA)({components:{TopNavNotificationBar:IU,FutureLayerIconAndWarningWrapper:nz}})],sz);const iz=sz,oz=iz;var az=(0,N.Z)(oz,VW,$W,!1,null,null,null);const rz=az.exports;var lz=n(5547),cz=n(52666);let dz=class extends s.ZP{constructor(){super(...arguments),this.creating=!1,this.rebuildFromUrl=null,this.waitingForThingsToBeReadyDone=!1,this.isBuildFromUrlMode=!1,this.activeStep=0,this.aiSettings={title:"",description:""},this.promptSteps=[{title:"Start"},{title:"Category"},{title:"Goals"},{title:"Writing Style"}],this.samplePrompts=[{buttonText:"Landing Page",businessName:"Smart Widget",businessDescription:"Create a landing page for a new product called Smart Widget. It should highlight the features and benefits of the product."},{buttonText:"Blog",businessName:"Travel Adventures",businessDescription:"Create a blog page called Travel Adventures which focuses on travel tips and experiences."},{buttonText:"Portfolio",businessName:"Creative Minds",businessDescription:"Create a design portfolio for agency called Creative Minds. It should showcase their best work and include client testimonials."},{buttonText:"Small Business",businessName:"Local Bakery",businessDescription:"Create a website for a small business called Local Bakery. It should include information about their products, location, and hours of operation."}]}generate(){this.isBuildFromUrlMode?this.rebuild():this.create()}async mounted(){await(0,lz.d2)(),this.aiSettings=(0,cz.Np)(),this.waitingForThingsToBeReadyDone=!0,this.checkForAutostart()}checkForAutostart(){this.shouldAutostart&&this.aiSettings.title&&this.aiSettings.description&&this.generate()}async create(){this.creating=!0,await(0,lz.GL)(this.aiSettings),this.creating=!1}async rebuild(){if(this.creating=!0,!this.rebuildFromUrl)return alert("Please enter a URL to rebuild from."),void(this.creating=!1);const e=await OW(this.rebuildFromUrl);console.log(e),console.log("Rebuild from URL completed"),c.singularityStore.setSingularityLeftPanel("page_structure"),this.creating=!1}nextStep(){this.activeStepe[t.context.priority]-e[n.context.priority]))}abortJob(e){er.P.abortJob(e)}clearAllJobs(){er.P.clearAllJobs()}};_z=(0,r.gn)([(0,l.wA)({components:{PanelHeader:EL}})],_z);const bz=_z,Sz=bz;var Cz=(0,N.Z)(Sz,yz,fz,!1,null,"ec13fbf8",null);const xz=Cz.exports;var wz=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-panel vscroll-wrap borderOnRight singularity-debug-panel"},[e._v(" "+e._s(e.siteState)+" "+e._s(e.backgroundGeneratingHeadersAndFooters)+" "),t(Qo.Z,{on:{click:e.generateSitemapPopulatePagesWithSectionsWriteContentAndUpdateImages}},[e._v("generateSitemapPopulatePagesWithSectionsWriteContentAndUpdateImages")]),t("div",{staticClass:"singularity-debug-panel-content vscroll-wrap vscroll-scroll"},[t("SectionWriter"),t("AIJobManager"),e._v(" AI Server: "+e._s(e.aiServer)+" ")],1),t("div",[t(Qo.Z,{on:{click:e.replaceImagesInSectionWithAi}},[e._v("replaceImagesInSectionWithAi")]),t(Qo.Z,{on:{click:e.replaceImagesInSectionWithAiMutating}},[e._v("defensiveCopy and then replaceImagesInSectionWithAiMutating")])],1)],1)},Iz=[];let Pz=class extends s.ZP{generateSitemapPopulatePagesWithSectionsWriteContentAndUpdateImages(){}get siteState(){return c.singularityStore.siteStatus.siteState}get aiServer(){return c.singularityStore.aiServer}async replaceImagesInSectionWithAi(){const e=c.uiStore.activeElement;if(!e)return void alert("no active node");const t=await(0,nr.q)(e,new AbortController);console.log("Result is:",t)}async replaceImagesInSectionWithAiMutating(){const e=c.uiStore.activeElement;if(!e)return void alert("no active node");const t=(0,wd.Z)(e);await(0,nr._)(t,new AbortController),console.log("phantomNode after mutation:",t)}get backgroundGeneratingHeadersAndFooters(){return c.singularityStore.backgroundGeneratingHeadersAndFooters}};Pz=(0,r.gn)([(0,l.wA)({components:{SectionWriter:hM,AIJobManager:xz}})],Pz);const kz=Pz,Ez=kz;var Tz=(0,N.Z)(Ez,wz,Iz,!1,null,null,null);const Dz=Tz.exports;let Az=class extends s.ZP{get singularityRightPanelState(){return c.singularityStore.singularityUiState.singularityRightPanel}};Az=(0,r.gn)([(0,l.wA)({components:{AIJobManager:xz,SingularityDebugPanel:Dz}})],Az);const Zz=Az,Oz=Zz;var Mz=(0,N.Z)(Oz,mz,vz,!1,null,null,null);const Bz=Mz.exports;var Lz=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-full-width-panel"},["settings"===e.singularityFullWidthPanel?t("Settings"):e._e()],1)},Nz=[],Fz=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-wp-page-manager"},[t("div",{staticClass:"singularity-wp-page-manager__wrapper"},[t("div",{staticClass:"singularity-wp-page-manager__header"},[t("h1",{staticClass:"singularity-wp-page-manager__header-title"},[e._v("Settings")]),t("TopNavSave")],1),t("div",{staticClass:"singularity-settings__content"},[t("div",{staticClass:"settings-section"},[t("h2",[e._v("Site Information")]),t("div",{staticClass:"settings-form"},[t("TextInput",{staticClass:"settings-input",attrs:{label:"Site Title",placeholder:"Enter your site title"},on:{blur:e.saveSettings},model:{value:e.aiSettings.title,callback:function(t){e.$set(e.aiSettings,"title",t)},expression:"aiSettings.title"}}),t("TextInput",{staticClass:"settings-input",attrs:{label:"Site Description",multiline:!0,placeholder:"Enter your site description"},on:{blur:e.saveSettings},model:{value:e.aiSettings.description,callback:function(t){e.$set(e.aiSettings,"description",t)},expression:"aiSettings.description"}})],1)])])])])},Rz=[],Vz=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-save__indicator"},[e.unsavedChangesPresent?t("span",{staticClass:"singularity-save__item singularity-save__item--saving"},[t("span",{staticClass:"singularity-save__dot"}),e._v("Saving...")]):t("span",{staticClass:"singularity-save__item singularity-save__item--saved"},[t("span",{staticClass:"singularity-save__dot"}),e._v("Saved")])])},$z=[];let Wz=class extends s.ZP{constructor(){super(...arguments),this.lastSaved=new Date,this.unsubscribe=null}get unsavedChangesPresent(){return c.uiStore.unsavedChangesPresent}mounted(){this.unsubscribe=this.$store.subscribe((e=>{Ie.n.shouldMutationBeIgnored(e)||c.uiStore.setUnsavedChangesPresent(!0)}))}beforeDestroy(){this.unsubscribe&&this.unsubscribe()}};Wz=(0,r.gn)([(0,l.wA)({components:{Save:kc,Icon:He.Z}})],Wz);const Uz=Wz,zz=Uz;var Hz=(0,N.Z)(zz,Vz,$z,!1,null,null,null);const Gz=Hz.exports;let Kz=class extends s.ZP{constructor(){super(...arguments),this.aiSettings={title:"",description:""},this.saveInProgress=!1}mounted(){this.aiSettings=(0,cz.Np)()}async saveSettings(){this.saveInProgress=!0,await(0,cz.ZT)(this.aiSettings),this.saveInProgress=!1}};Kz=(0,r.gn)([(0,l.wA)({components:{TextInput:na.Z,TopNavSave:Gz}})],Kz);const jz=Kz,qz=jz;var Xz=(0,N.Z)(qz,Fz,Rz,!1,null,null,null);const Yz=Xz.exports;let Qz=class extends s.ZP{get singularityFullWidthPanel(){return c.singularityStore.singularityUiState.singularityFullWidthPanel}};Qz=(0,r.gn)([(0,l.wA)({components:{Settings:Yz}})],Qz);const Jz=Qz,eH=Jz;var tH=(0,N.Z)(eH,Lz,Nz,!1,null,null,null);const nH=tH.exports;var sH=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TopNav",{scopedSlots:e._u([{key:"menu",fn:function(){return e._l(e.primaryNav,(function(e){return t("TopNavButton",{key:e.name,attrs:{link:e}})}))},proxy:!0},{key:"actions",fn:function(){return[t("TopNavSave"),[t("TopNavUndoRedo")]]},proxy:!0}])})},iH=[],oH=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("button",{class:{"is-active":e.isActive},on:{click:e.handleClick}},[e._v(" "+e._s(e.link.name)+" ")])},aH=[];let rH=class extends s.ZP{openPanel(e){void 0!==e?.leftPanel&&c.singularityStore.setSingularityLeftPanel(e.leftPanel),void 0!==e?.rightPanel&&c.singularityStore.setSingularityRightPanel(e.rightPanel),void 0!==e?.fullWidthPanel&&c.singularityStore.setSingularityFullWidthPanel(e.fullWidthPanel)}get isActive(){return this.link.panelState?.leftPanel&&c.singularityStore.singularityUiState.singularityLeftPanel===this.link.panelState?.leftPanel||this.link.panelState?.fullWidthPanel&&c.singularityStore.singularityUiState.singularityFullWidthPanel===this.link.panelState?.fullWidthPanel||this.link.panelState?.rightPanel&&c.singularityStore.singularityUiState.singularityRightPanel===this.link.panelState?.rightPanel}handleClick(){this.link.action?this.link.action():(this.openPanel(this.link.panelState),(0,Tt.K)("FutureLayer Top Nav Click",{name:this.link.name}))}};(0,r.gn)([(0,l.fI)()],rH.prototype,"link",void 0),rH=(0,r.gn)([(0,l.wA)({components:{Icon:He.Z}})],rH);const lH=rH,cH=lH;var dH=(0,N.Z)(cH,oH,aH,!1,null,null,null);const uH=dH.exports;var pH=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-top-nav-mobile",class:{"is-active":e.isPreviewMode}},[t("IconButton",{attrs:{size:16,icon:"PlaySolidIcon",active:e.isPreviewMode},on:{click:e.togglePreviewMode}})],1)},hH=[];let gH=class extends s.ZP{get currentBreakpoint(){return c.uiStore.currentBreakpoint.id}get isPreviewMode(){return c.singularityStore.previewMode}togglePreviewMode(){c.singularityStore.togglePreviewMode()}};gH=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z}})],gH);const mH=gH,vH=mH;var yH=(0,N.Z)(vH,pH,hH,!1,null,null,null);const fH=yH.exports;var _H=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"signularity-top-nav-undo-redo"},[t("IconButton",{attrs:{disabled:!e.canUndo,icon:"UndoIconSolid",size:"16"},on:{click:e.undo}}),t("IconButton",{attrs:{disabled:!e.canRedo,icon:"RedoIconSolid",size:"16"},on:{click:e.redo}})],1)},bH=[];let SH=class extends s.ZP{mounted(){Ke.uq.register(je.r.CMD_Z,this.undo),Ke.uq.register(je.r.CMD_SHIFT_Z,this.redo)}get canUndo(){return c.snapshotStore.canUndo}get canRedo(){return c.snapshotStore.canRedo}undo(){this.canUndo&&Ie.n.undo()}redo(){this.canRedo&&Ie.n.redo()}beforeDestroy(){Ke.uq.unbind(je.r.CMD_Z),Ke.uq.unbind(je.r.CMD_SHIFT_Z)}get builderMode(){return c.configStore.builderMode}};SH=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z,TopBarSection:Kc}})],SH);const CH=SH,xH=CH;var wH=(0,N.Z)(xH,_H,bH,!1,null,null,null);const IH=wH.exports;let PH=class extends s.ZP{constructor(){super(...arguments),this.primaryNav=[{panelState:{leftPanel:"page_structure",fullWidthPanel:null},name:"Build"},{panelState:{leftPanel:"brand",fullWidthPanel:null},name:"Brand"},{panelState:{leftPanel:"page_manager",fullWidthPanel:null},name:"Pages"}]}get singularityDebugPanelOpen(){return"debug"===c.singularityStore.singularityUiState.singularityRightPanel}get unsavedChangesPresent(){return c.uiStore.unsavedChangesPresent}get singularityUiState(){return c.singularityStore.singularityUiState}get isFullWidthState(){return!!this.singularityUiState.singularityFullWidthPanel}get isPageStructureOrBrandPanelOpen(){return"page_structure"===c.singularityStore.singularityUiState.singularityLeftPanel||"brand"===c.singularityStore.singularityUiState.singularityLeftPanel}openPageStructure(){c.singularityStore.setSingularityLeftPanel("page_structure")}};PH=(0,r.gn)([(0,l.wA)({components:{TopNav:rz,TopNavButton:uH,TopNavSave:Gz,TopNavPreviewMode:fH,TopNavUndoRedo:IH}})],PH);const kH=PH,EH=kH;var TH=(0,N.Z)(EH,sH,iH,!1,null,null,null);const DH=TH.exports;var AH=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-builder-canvas",class:{"is-mobile":e.isMobile,"is-zoomed-out":e.isZoomedOut}},[t("div",{staticClass:"singularity-browser-ui"},[e._m(0),t("IframeCanvas",{on:{loaded:function(t){return e.$emit("loaded")}}})],1)])},ZH=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-browser-ui__panel"},[t("div",{staticClass:"singularity-browser-ui__dots"},[t("span"),t("span"),t("span")])])}],OH=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"singularity-top-nav-icon-button",class:{"is-active":e.isMobile}},[t("IconButton",{attrs:{size:16,icon:"MobileIcon",active:e.isMobile},on:{click:e.toggleMobileBreakpoint}})],1)},MH=[];const BH="breakpoint_phone_portrait";let LH=class extends s.ZP{get currentBreakpoint(){return c.uiStore.currentBreakpoint.id}get isMobile(){return c.uiStore.currentBreakpoint.id===BH}toggleMobileBreakpoint(){const e=this.isMobile?c.configStore.breakpoints.find((e=>e.id===Pe.Wp)):c.configStore.breakpoints.find((e=>e.id===BH));e&&(c.singularityStore.setCanvasZoom(!1),c.uiStore.changeBreakpoint(e),(0,Tt.K)("FutureLayer Mobile Preview Toggle"))}};LH=(0,r.gn)([(0,l.wA)({components:{IconButton:Xa.Z}})],LH);const NH=LH,FH=NH;var RH=(0,N.Z)(FH,OH,MH,!1,null,null,null);RH.exports;let VH=class extends s.ZP{get isMobile(){return c.uiStore.currentBreakpoint.id===BH}get isZoomedOut(){return!this.isMobile&&c.singularityStore.canvasZoom}};VH=(0,r.gn)([(0,l.wA)({components:{IframeCanvas:dc}})],VH);const $H=VH,WH=$H;var UH=(0,N.Z)(WH,AH,ZH,!1,null,null,null);const zH=UH.exports,HH=!1,GH=1e3;let KH=!1;function jH(...e){HH&&console.log(...e)}function qH(){return c.uiStore.unsavedChangesPresent}async function XH(){c.uiStore.isSingularityMode&&(c.uiStore.saveInProgress?jH("Save in progress, skipping autosave."):qH()?(jH("Unsaved changes detected, performing autosave."),c.uiStore.inlineEditingContext?.elementId&&(jH("Inline editing context detected, triggering inline editor save."),await(0,il.PF)(c.uiStore.inlineEditingContext.elementId)),await Promise.all([(0,zl.$)(),(0,ER.N1)()])):jH("No unsaved changes present, skipping autosave."))}function YH(){KH?jH("Autosave service already started, skipping initialization."):(setInterval(XH,GH),KH=!0,jH("Autosave service started with interval:",GH))}var QH=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Ha.Z,{attrs:{"max-width":"480"},on:{"click:outside":e.closeModal},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t(Jc.Z,[t("IconButton",{staticClass:"close-button",attrs:{icon:"CloseIcon"},on:{click:e.closeModal}}),t("div",{staticClass:"modal-content"},[t("h3",[e._v("You're out of credits")]),t("p",[e._v(" You've reach your plan limit. "),e.isSiteClaimed?t("span",[e._v("Upgrade your account to continue building your site.")]):t("span",[e._v("Register an account and claim this site.")])]),t("div",{staticClass:"cta-wrapper",class:{"has-offer":e.offerText}},[e.offerText?t("p",[e._v(e._s(e.offerText))]):e._e(),t("NiceButton",{attrs:{color:"yellow",expanded:"true",size:"large"},on:{click:e.handleAction}},[e._v(" "+e._s(e.buttonText)+" ")])],1),t("NiceButton",{attrs:{color:"gray-ghost",expanded:"true",size:"large"},on:{click:e.handleAction}},[e._v(" See Pricing ")])],1)],1)],1)},JH=[];let eG=class extends s.ZP{get isOpen(){return c.singularityStore.isOutOfCreditsModalOpen}set isOpen(e){c.singularityStore.setOutOfCreditsModalOpen(e)}get siteStatus(){return c.singularityStore.siteStatus}get isSiteClaimed(){return this.siteStatus.isClaimed}get buttonText(){return this.isSiteClaimed?"Upgrade Plan":"Register Free"}closeModal(){c.singularityStore.setOutOfCreditsModalOpen(!1)}handleAction(){if(this.isSiteClaimed)window.location.href=(0,FU.e)("/pricing");else{const e=HW();if(e){const t=encodeURIComponent(window.location.href),n=`${e}&return_to=${t}`;window.location.href=n}}}};(0,r.gn)([(0,l.fI)()],eG.prototype,"offerText",void 0),eG=(0,r.gn)([(0,l.wA)({components:{NiceButton:Br.Z,IconButton:Xa.Z}})],eG);const tG=eG,nG=tG;var sG=(0,N.Z)(nG,QH,JH,!1,null,null,null);const iG=sG.exports;var oG=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(Ha.Z,{attrs:{"max-width":"480"},on:{"click:outside":e.closeModal},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t(Jc.Z,[t("IconButton",{staticClass:"close-button",attrs:{icon:"CloseIcon"},on:{click:e.closeModal}}),t("div",{staticClass:"modal-content"},[t("h3",[e._v("Plan Inactive")]),t("p",[e._v(" Your FutureLayer subscription is not active. Visit your account dashboard to resolve this issue. ")]),t("div",{staticClass:"cta-wrapper"},[t("NiceButton",{attrs:{color:"yellow",expanded:"true",size:"large"},on:{click:e.handleAction}},[e._v(" Go to Account Dashboard ")])],1)])],1)],1)},aG=[];let rG=class extends s.ZP{get isOpen(){return c.singularityStore.isPlanExpiredModalOpen}set isOpen(e){c.singularityStore.setPlanExpiredModalOpen(e)}closeModal(){c.singularityStore.setPlanExpiredModalOpen(!1)}handleAction(){window.location.href=(0,FU.e)("/")}};rG=(0,r.gn)([(0,l.wA)({components:{NiceButton:Br.Z,IconButton:Xa.Z}})],rG);const lG=rG,cG=lG;var dG=(0,N.Z)(cG,oG,aG,!1,null,null,null);const uG=dG.exports;let pG=class extends s.ZP{get singularityUiState(){return c.singularityStore.singularityUiState}get isSectionLibraryModalOpen(){return c.singularityStore.isSectionLibraryModalOpen}get isStep1(){return"step1"===this.singularityUiState.singularityFullWidthPanel}async mounted(){YH(),(0,Tt.K)("FutureLayer Loaded",{businessName:c.globalStore.aiSettings.prompt.businessName||"Unknown business name",businessDescription:c.globalStore.aiSettings.prompt.businessDescription||"Uenknown business description",url:(0,zu.j)()})}closeSectionLibraryModal(){c.singularityStore.setSectionLibraryModalState(!1)}get isPreviewMode(){return c.singularityStore.previewMode}get isFullWidthState(){return!!this.singularityUiState.singularityFullWidthPanel}get classes(){return{"singularity--full-width":this.isFullWidthState,[this.singularityUiState.singularityLeftPanel?`singularity--${this.singularityUiState.singularityLeftPanel}`:""]:!0,"singularity--with-left-panel":this.singularityUiState.singularityLeftPanel&&!this.singularityUiState.singularityRightPanel,"singularity--with-right-panel":this.singularityUiState.singularityRightPanel&&!this.singularityUiState.singularityLeftPanel,"singularity--with-both-panels":this.singularityUiState.singularityRightPanel&&this.singularityUiState.singularityLeftPanel,"singularity--preview-mode":this.isPreviewMode}}};pG=(0,r.gn)([(0,l.wA)({components:{Step1:gz,SingularityCanvas:zH,SingularityLeftPanelNew:_W,SingularityRightPanel:Bz,TopNavBuilder:DH,SingularitySectionLibraryModal:Vr,OutOfCreditsModal:iG,PlanExpiredModal:uG,SingularityFullWidthPanel:nH}})],pG);const hG=pG,gG=hG;var mG=(0,N.Z)(gG,bW,SW,!1,null,null,null);const vG=mG.exports;let yG=class extends s.ZP{constructor(){super(...arguments),this.showTemplateDialog=!1}mounted(){c.uiStore.hasFullAccess&&(0,je.c)().register()}beforeDestroy(){(0,je.c)().unbind(),(0,Wo.uV)().unbind()}get classList(){return{[`has-permission:${this.permission}`]:!0,["no-top-bar"]:this.isSingularityMode}}get isPreviewMode(){return c.uiStore.isPreviewMode}get preferencesModalOpen(){return c.uiStore.panelState.preferencesModalOpen}get elementStudioOpen(){return c.uiStore.panelState.elementStudioOpen}get singularityUiState(){return c.singularityStore.singularityUiState}get isSingularityMode(){return c.uiStore.isSingularityMode}get isDevEnvironment(){return(0,zg.y)()}get debugSidebarPanelsEnabled(){return c.singularityStore.debugSidebarPanelsEnabled}updatePreferencesModal(e){c.uiStore.setPreferencesModalOpen(e)}get keyboardShortcutsHelpModalOpen(){return c.uiStore.panelState.keyboardShortcutsHelpModalOpen}updateKeyboardShortcutsHelpModal(e){c.uiStore.setKeyboardShortcutHelpModalOpen(e)}get activeElementId(){return c.uiStore.activeElementId}get leftSidebarPanelState(){return c.uiStore.panelState.leftSidebarPanel}get rightSidebarPanelState(){return c.uiStore.panelState.rightSidebarPanel}get permission(){return c.configStore.permission?.slug}onIframeLoaded(){requestIdleCallback((()=>{(0,Hl.gn)()})),this.isRenderedWithTemplate()&&!this.containsTemplateContentArea&&(this.showTemplateDialog=!0),(0,Wo.uV)().register()}get showInvalidPostDialog(){return!!c.configStore.invalidPostData}isRenderedWithTemplate(){return null!==window.Breakdance?.canvas?.document?.querySelector("[data-rendered-with-template]")}getTemplateAttribute(e){if(!this.isRenderedWithTemplate())return null;const t=window.Breakdance?.canvas?.document?.querySelector("[data-rendered-with-template]");return t?.getAttribute(e)}get templateName(){return this.getTemplateAttribute("data-template-name")??""}get templateId(){const e=this.getTemplateAttribute("data-template-id");return e?parseInt(e):null}get isTemplateFallback(){return"true"===this.getTemplateAttribute("data-template-is-fallback")}get templatesPageUrl(){return this.getTemplateAttribute("data-template-page-url")}get containsTemplateContentArea(){return null!==window.Breakdance?.canvas?.document?.querySelector(".bde-themeless-template-content-area")}get builderMode(){return c.configStore.builderMode}get singularityModeStep1(){return this.isSingularityMode&&"step1"===this.singularityUiState.singularityFullWidthPanel}};yG=(0,r.gn)([(0,l.wA)({components:{ComponentRootTagWarning:YO,PreviewModeCloseButton:iM,DesignLibraryModal:iI,InvalidPostDialog:zO,TemplateDialog:NO,ClosingConfirmations:DO,IframeCanvasWrapper:mc,BuilderTopBar:qp,PreferencesModal:tm,ElementStudio:FS,KeyboardShortcutsHelpModal:lm,SidebarPanels:vO,ConfirmDialog:uh.Z,AppLayout:xO,SingularityLeftPanelNew:_W,Singularity:vG}})],yG);const fG=yG,_G=fG;var bG=(0,N.Z)(_G,m,v,!1,null,null,null);const SG=bG.exports;var CG=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("h1",[e._v(e._s(e.__("Unrecoverable Errors")))]),e._l(e.errors,(function(n,s){return t("div",{key:s,staticClass:"unrecoverable-errors"},[e._v(" "+e._s(n)+" ")])}))],2)},xG=[];let wG=class extends s.ZP{get errors(){return c.uiStore.unrecoverableErrorMessages}};wG=(0,r.gn)([l.wA],wG);const IG=wG,PG=IG;var kG=(0,N.Z)(PG,CG,xG,!1,null,null,null);const EG=kG.exports;var TG=n(90878);let DG=class extends s.ZP{constructor(){super(...arguments),this.broadcastChannel=null}async beforeMount(){if("builder"===window.Breakdance.initialMode){const e=await(0,Hl.Dl)(window.Breakdance.initialDocumentToLoadId);(0,Hl.PX)(e)}this.broadcastChannel=(0,TG.a)()}beforeDestroy(){this.broadcastChannel&&this.broadcastChannel.close()}get interfaceState(){return c.uiStore.interfaceState}get errorsPresent(){return c.uiStore.unrecoverableErrorMessages.length}get currentDocumentMetaId(){return c.documentStore.document.documentMeta.id}get builderMode(){return c.configStore.builderMode}handleCurrentDocumentChange(e){const t=[g()(this.builderMode||"")];if(e!==lP.VY){const e=(0,Yl.aV)(c.documentStore.document.documentMeta.titleLabel);t.push(e)}window.document.title=t.join(" | ")}get unsavedChangesPresent(){return c.uiStore.unsavedChangesPresent}handleUnsavedChangesPresentChange(e){e?this.requestClosingConfirmation():this.removeClosingConfirmation()}requestClosingConfirmation(){c.uiStore.requestClosingConfirmation({subject:"builder",confirmationDefinition:{title:(0,Ft.__)("You must save your changes first"),actionText:(0,Ft.__)("Save and continue"),type:"warning",hasCancel:!0,hasDiscard:!1}})}removeClosingConfirmation(){c.uiStore.noClosingConfirmationIsNeededFor("builder")}get confirmationChosenOption(){return c.uiStore.closingConfirmations.builder?.chosenOption}async handleConfirmationChosenOptionChange(e){"discard"===e?(this.removeClosingConfirmation(),(0,SI.w7)()):"save"===e&&(c.uiStore.setClosingConfirmationIsSaving({subject:"builder",isSaving:!0}),(0,id.pipe)(await(0,zl.$)(),(0,od.fold)((()=>{c.uiStore.setClosingConfirmationIsSaving({subject:"builder",isSaving:!1})}),(()=>{this.removeClosingConfirmation(),(0,SI.w7)()}))))}};(0,r.gn)([(0,l.RL)("currentDocumentMetaId")],DG.prototype,"handleCurrentDocumentChange",null),(0,r.gn)([(0,l.RL)("unsavedChangesPresent",{immediate:!0})],DG.prototype,"handleUnsavedChangesPresentChange",null),(0,r.gn)([(0,l.RL)("confirmationChosenOption",{immediate:!0})],DG.prototype,"handleConfirmationChosenOptionChange",null),DG=(0,r.gn)([(0,l.wA)({components:{BuilderLayout:SG,Loading:Ql.Z,UnrecoverableErrors:EG}})],DG);const AG=DG,ZG=AG;var OG=(0,N.Z)(ZG,u,p,!1,null,null,null);const MG=OG.exports;var BG=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",["normal"===e.interfaceState?t("AppLayout",{scopedSlots:e._u([{key:"topbar",fn:function(){return[t("TopBar",[t("TopBarSection",[t("div",{staticClass:"browse-mode-address-bar"},[t("h2",[e._v(e._s(e.__("Viewing Page")))]),t("a",{staticClass:"ellipsis-text breakdance-browse-mode__url-to-display",attrs:{title:e.iframeUrlToDisplay,href:e.iframeUrlToDisplay,target:"_blank"}},[e._v(" "+e._s(e.iframeUrlToDisplay)+" ")])])]),t(vc.Z),t("TopBarSection",{attrs:{"border-left":"true","border-right":"true"}},[t("BreakpointsSelection",{model:{value:e.currentBreakpoint,callback:function(t){e.currentBreakpoint=t},expression:"currentBreakpoint"}})],1),t(vc.Z),t("UndoRedo"),t("TopBarSection",{attrs:{"border-left":"true"}},[t("Dropdown",{staticClass:"open-settings-toolbar-button",attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("IconButton",e._g({attrs:{active:e.isAnyBrowseModeSupportedPanelOpen,size:"18",icon:"EllipsisStrokeIcon"}},n))]}}],null,!1,2694485179)},[t(Ec.Z,[t(Tc.Z,{attrs:{dense:""},on:{click:e.toggleGlobalSettingsPanel}},[t(Dc.V9,[e._v(e._s(e.__("Global Settings")))])],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.toggleSelectorsPanel}},[t(Dc.V9,[e._v(e._s(e.__("Selectors")))])],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.togglePresetsPanel}},[t(Dc.V9,[e._v(e._s(e.__("Design Presets")))])],1),t(Tc.Z,{attrs:{dense:""},on:{click:e.toggleHistoryAndRevisionsPanel}},[t(Dc.V9,[e._v(e._s(e.__("History")))])],1)],1)],1)],1),t("TopBarSection",{attrs:{borderLeft:!0}},[t("BrowseModeSave")],1),t("TopBarSection",{attrs:{"border-left":"true"}},[t("IconButton",{attrs:{icon:"ArrowLeftIcon",size:"18"},on:{click:e.exitBrowseMode}})],1)],1)]},proxy:!0},{key:"body",fn:function(){return[t("ClosingConfirmations"),t("BrowseModeSidebarPanels",{attrs:{"panel-state":e.leftSidebarPanelState,position:"left"}}),t("IframeWrapper",{attrs:{"iframe-state":e.iframeState,"iframe-url":e.iframeUrl,"iframe-preview-width":e.iframePreviewWidth,"current-breakpoint":e.currentBreakpoint,"iframe-exited":!1,"iframe-id":e.iframeID,"min-width":e.iframeMinWidth},on:{iframeLoaded:e.handleIframeLoaded,previewWidthChange:e.handlePreviewWidthChange,previewWidthChangeWithAdjustmentBar:e.handlePreviewWidthChangeWithAdjustmentBar,resetPreviewWidth:e.handleResetPreviewWidth}}),t("BrowseModeSidebarPanels",{attrs:{"panel-state":e.rightSidebarPanelState,position:"right"}})]},proxy:!0}],null,!1,3365145357)}):"loading"===e.interfaceState?t("Loading"):e._e()],1)},LG=[],NG=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("AppLayoutBodyPanelArea",{attrs:{"panel-state":e.panelState,position:e.position}},["globalSettings"===e.panelState?t("GlobalSettingsPanel"):e._e(),"selectors"===e.panelState?t("SelectorsPanel"):e._e(),"history"===e.panelState?t("HistoryAndRevisionsPanel",{attrs:{"disable-revisions":!0}}):e._e(),"presets"===e.panelState?t("PresetsPanel"):e._e()],1)},FG=[];let RG=class extends s.ZP{};(0,r.gn)([(0,l.fI)()],RG.prototype,"position",void 0),(0,r.gn)([(0,l.fI)()],RG.prototype,"panelState",void 0),RG=(0,r.gn)([(0,l.wA)({components:{HistoryAndRevisionsPanel:DE,AppLayoutBodyPanelArea:NE,GlobalSettingsPanel:EP,SelectorsPanel:wk,PresetsPanel:OD}})],RG);const VG=RG,$G=VG;var WG=(0,N.Z)($G,NG,FG,!1,null,null,null);const UG=WG.exports;var zG=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("StandardButton",{staticStyle:{"margin-left":"3px","margin-right":"3px"},attrs:{loading:e.saveInProgress,minWidth:"80"},on:{click:e.save}},[e._v(" "+e._s(e.__("Save"))+" ")])},HG=[];let GG=class extends s.ZP{constructor(){super(...arguments),this.saveInProgress=!1}get unsavedChangesPresent(){return c.uiStore.unsavedChangesPresent}async save(){this.saveInProgress=!0,await(0,gP.T)(),await(0,LP.zF)(),this.saveInProgress=!1}mounted(){Ke.uq.register(je.r.CMD_S,this.save)}beforeDestroy(){Ke.uq.unbind(je.r.CMD_S)}};GG=(0,r.gn)([(0,l.wA)({components:{StandardButton:Fl}})],GG);const KG=GG,jG=KG;var qG=(0,N.Z)(jG,zG,HG,!1,null,null,null);const XG=qG.exports;let YG=class extends s.ZP{constructor(){super(...arguments),this.iframeID="breakdance-browser-iframe",this.iframeDocument=null,this.broadcastChannel=null}async beforeMount(){if("browse"===window.Breakdance.initialMode){const e=await(0,Hl.x2)();(0,Hl.Oc)(e,{returnUrl:window.Breakdance.returnUrl,browseModeOpenUrl:window.Breakdance.browseModeOpenUrl})}this.broadcastChannel=(0,TG.a)()}get interfaceState(){return c.uiStore.interfaceState}mounted(){this.warnIfUnsavedFunction=(0,Sc.$)((()=>c.globalStore.settingsHasUnsavedChangesPresent||c.globalStore.selectorsHasUnsavedChangesPresent))}beforeDestroy(){(0,Sc.e)(this.warnIfUnsavedFunction),this.broadcastChannel&&this.broadcastChannel.close()}handleIframeLoaded(e){if(!e)throw this.iframeDocument=null,"Unable to proceed – iframe element is missing";this.iframeDocument=(0,SI.RL)(e)}handlePreviewWidthChange(e){c.uiStore.changePreviewWidthMutation(e)}handlePreviewWidthChangeWithAdjustmentBar(e){c.uiStore.changePreviewWidthWithAdjustmentBar(e)}handleResetPreviewWidth(){c.uiStore.selectBaseBreakpoint()}get iframeUrl(){return c.browseModeStore.iframeUrl}get iframeState(){return c.browseModeStore.iframeState}get iframeDocumentTitleToDisplay(){return c.browseModeStore.iframeDocumentTitleToDisplay}get iframeUrlToDisplay(){return c.browseModeStore.iframeUrlToDisplay}get iframePreviewWidth(){return c.uiStore.canvasPreviewWidth}get iframeMinWidth(){return(0,Pe.GV)(c.globalStore)}get leftSidebarPanelState(){return c.uiStore.panelState.leftSidebarPanel}get rightSidebarPanelState(){return c.uiStore.panelState.rightSidebarPanel}get globalProperties(){return c.globalStore.globalProperties}get selectors(){return c.globalStore.cssSelectors}get presets(){return c.globalStore.presets}get oxySelectors(){return c.globalStore.oxySelectors}get isAnyBrowseModeSupportedPanelOpen(){return(0,Bu.O_)("globalSettings")||(0,Bu.O_)("selectors")||(0,Bu.O_)("history")}get currentBreakpoint(){return c.uiStore.currentBreakpoint}set currentBreakpoint(e){c.uiStore.changeBreakpoint(e)}exitBrowseMode(){(0,SI.os)()}toggleGlobalSettingsPanel(){(0,Bu._y)("globalSettings")}toggleSelectorsPanel(){(0,Bu._y)("selectors")}togglePresetsPanel(){(0,Bu._y)("presets")}toggleHistoryAndRevisionsPanel(){(0,Bu.oM)("history")}handleCurrentDocumentChange(){(0,SI.r1)()}onGlobalSettingsChanged(){this.iframeDocument&&(0,Jr.TK)(this.iframeDocument)}onSelectorsChanged(){this.iframeDocument&&(0,Jr.EO)(this.iframeDocument)}onPresetsChanged(){this.iframeDocument&&(0,Jr.aL)(this.iframeDocument)}onOxySelectorsChanged(){this.iframeDocument&&(0,el.V)(this.iframeDocument)}};(0,r.gn)([(0,l.RL)("iframeDocumentTitleToDisplay",{immediate:!0})],YG.prototype,"handleCurrentDocumentChange",null),(0,r.gn)([(0,l.RL)("globalProperties",{deep:!0,immediate:!0})],YG.prototype,"onGlobalSettingsChanged",null),(0,r.gn)([(0,l.RL)("selectors",{deep:!0,immediate:!0})],YG.prototype,"onSelectorsChanged",null),(0,r.gn)([(0,l.RL)("presets",{deep:!0,immediate:!0})],YG.prototype,"onPresetsChanged",null),(0,r.gn)([(0,l.RL)("oxySelectors",{deep:!0,immediate:!0})],YG.prototype,"onOxySelectorsChanged",null),YG=(0,r.gn)([(0,l.wA)({components:{UndoRedo:Qc,BrowseModeSave:XG,BrowseModeSidebarPanels:UG,BreakpointsSelection:Fc,Icon:He.Z,StandardButton:Fl,IframeWrapper:oc,TopBarSection:Kc,AppLayoutBodyPanelArea:NE,TopBar:pp,AppLayout:xO,IconButton:Xa.Z,ClosingConfirmations:DO,Dropdown:Oc.Z,Loading:Ql.Z}})],YG);const QG=YG,JG=QG;var eK=(0,N.Z)(JG,BG,LG,!1,null,null,null);const tK=eK.exports;async function nK(e){if(e.origin!==window.location.origin)return void console.warn("Message received from untrusted origin:",e.origin);const t=e.data,{id:n,type:s,payload:i}=t;if("REQUEST"===s&&n&&i?.action)try{switch(i.action){case"saveDocumentToWordPress":await(0,zl.$)();break;case"updateGlobalSettingsPerPath":Ie.n.ignore((async()=>{c.globalStore.updateGlobalSettingsPerPath(i.data)}));break;case"updateBreakpoint":Ie.n.ignore((async()=>{c.uiStore.changeBreakpoint(i.data.breakpoint)}));break;case"importSectionFromOnboarding":(0,Qa.AE)([i.data.sectionTree],"pasting",{},{mode:"replace",targetElementId:c.uiStore.activeElementId||i.data.targetElementId});break;case"onboardingActivateElement":Ie.n.ignore((async()=>{c.uiStore.activateElement(i.data.elementId)}));break;case"updateSectionPrompt":c.documentStore.unthrottledPropertyChanged({elementId:i.data.elementId,path:"meta.promptInfo.sectionDescription",meta:{snapshotLabel:"Updated prompt info for element"},value:i.data.sectionDescription}),await(0,Et.H2)(i.data.elementId);break;case"shuffleSection":(0,Nt.R4)(i.data.elementId);break;case"toggleSectionColors":(0,_t.x3)(i.data.elementId,i.data.colorGroup);break;default:throw new Error(`Unknown action: ${i.action}`)}const t={activeElementId:c.uiStore.activeElementId,document:c.documentStore.document};window.parent.postMessage({id:n,type:"RESPONSE",payload:{success:!0,payload:t}},e.origin)}catch(o){window.parent.postMessage({id:n,type:"RESPONSE",payload:{success:!1,error:o.message||"Unknown iframe error"}},e.origin)}}var sK=n(41720);let iK=class extends s.ZP{beforeMount(){window.Breakdance.singularity?((0,Aa.VH)(),"step1"===window.Breakdance.singularity?(0,sK.B)("step1"):"step2"===window.Breakdance.singularity&&(0,sK.B)("step2")):c.uiStore.setMode({mode:window.Breakdance.initialMode})}mounted(){(0,Tt.K)("Builder Loaded",{subscriptionMode:window.Breakdance.subscriptionMode,builderMode:window.Breakdance.initialMode,theme:c.uiStore.settings.theme,url:location.href,title:document.title,viewport:{width:window.innerWidth,height:window.innerHeight}}),window.Breakdance.isOnboarding&&window.addEventListener("message",nK)}get isBrowseModeEnabled(){return"browse"===c.uiStore.mode?.mode}get useCustomScrollbar(){if("breakdance"===c.configStore.builderMode)return!1;const e=(0,Ho.X)().toLowerCase();return/windows/.test(e)}get useThinScrollbar(){return"breakdance"!==c.configStore.builderMode&&!this.useCustomScrollbar}get useDarkMode(){return"oxygen"===c.configStore.builderMode||"dark"===c.uiStore.settings.theme}get isOnboardingMode(){return window.Breakdance.isOnboarding}get isFutureLayerMode(){return(0,Aa.o8)()}get classList(){return{"breakdance-dark-mode":this.useDarkMode,"futurelayer-dark-mode":this.isFutureLayerMode&&this.useDarkMode,"breakdance-preview-mode":this.isPreviewMode,"oxygen-custom-scrollbar":this.useCustomScrollbar,"oxygen-thin-scrollbar":this.useThinScrollbar,"breakdance-onboarding":this.isOnboardingMode}}get isPreviewMode(){return c.uiStore.isPreviewMode}darkModeWatcher(e){this.$vuetify.theme.dark=e}};(0,r.gn)([(0,l.RL)("useDarkMode",{immediate:!0})],iK.prototype,"darkModeWatcher",null),iK=(0,r.gn)([(0,l.wA)({components:{BrowseMode:tK,Builder:MG,Notifications:d.Z}})],iK);const oK=iK,aK=oK;var rK=(0,N.Z)(aK,o,a,!1,null,null,null);const lK=rK.exports;var cK=n(74604),dK=n(18082),uK=n(15855);s.ZP.config.productionTip=!1,s.ZP.config.ignoredElements=["lite-vimeo","lite-youtube"],s.ZP.directive("permission",cK.Z),s.ZP.use(dK.k,{getTranslations:dK.F}),s.ZP.mixin(uK.L),new s.ZP({store:c["default"],vuetify:Rl.Z,render:e=>e(lK)}).$mount("#app")},59810:(e,t,n)=>{n.d(t,{C8:()=>r,kq:()=>i});var s=n(90889);function i(e,t={}){if(e){if("function"===typeof e)return e();const n=e.some((e=>"string"===typeof e)),s=n?[e]:e;return s.map((e=>a(e,t))).every(Boolean)}return!0}function o(e,t){const n=t?.[e]?.value;if((0,s.Hk)(n)){const e=(0,s.X_)(n);if(e?.value)return e.value}return n}function a(e,t){const[n,s,i]=e,a=o(n,t);return"=="===s&&a===i||("!="===s&&a!==i||(">"===s&&a>i||("<"===s&&a="===s&&a>=i||("<="===s&&a<=i||(!("in"!==s||!i.includes(a))||("not in"===s&&!i.includes(a)||(!("contains"!==s||!a.includes(i))||("not contains"===s&&!a.includes(i)||(!("starts with"!==s||!a.startsWith(i))||!("ends with"!==s||!a.endsWith(i))))))))))))}function r(e,t){if(e){if("function"===typeof e)return e;const n=e.some((e=>"string"===typeof e));if(n){const[n,s,i]=e;return[[n.replace("[]",`[${t}]`),s,i]]}return e.map((e=>{const[n,s,i]=e;return[n.replace("[]",`[${t}]`),s,i]}))}return e}},37156:(e,t,n)=>{n.d(t,{CD:()=>S,Gb:()=>m,Ms:()=>b,a0:()=>f,e6:()=>v,i7:()=>_,oO:()=>y});var s=n(85450),i=n(22218),o=n(3735),a=n(86042),r=n(48973);const l={"layout.gap":["layout.gap.column","layout.gap.row"]};function c(e){return""===e||null===e||void 0===e}function d(e){return"object"===typeof e&&null!==e&&"unit"in e&&"number"in e&&"style"in e}function u(e){return"object"===typeof e&&null!==e&&!d(e)}function p(e,t){return t>e?i.eV.AFTER:t===e?i.eV.CURRENT:i.eV.BEFORE}function h(e,t,n,s,i,o,a,r){for(const l in t){const d=`${e}.${l}`,p=t[l];if(u(p))for(const e in p){const t=Array.isArray(p)?`${d}[${e}]`:`${d}.${e}`,l=p[e];u(l)?h(t,l,n,s,i,o,a,r):c(l)||(s[t]={value:l,position:i,breakpoint:o,from:n,fromBreakpoint:r[e,...e.children||[]])),a=e.map((e=>{const t=o.find((t=>t.id===e));return t||null})).filter((e=>null!==e)),r=[...a].sort(((e,t)=>{const n=o.findIndex((t=>t.id===e.id)),s=o.findIndex((e=>e.id===t.id));return n-s})),c=r.findIndex((e=>e.id===t)),d=s.configStore.breakpointIds.findIndex((e=>e===n)),u=s.configStore.breakpointIds.slice(0,d+1);for(let s=0;se in i))&&(i[s]=i[p[0]]);return i}function v(e,t){if(e)return Object.entries(e).reduce(((e,[n,s])=>(n.startsWith(t)&&(e[n.slice(t.length)]=s),e)),{})}function y(e,t){if("select"===e.type){const n=e.items?.find((function(e){return"string"===typeof e?e===t:e.value===t}));return"string"===typeof n?n:n?.label}if("unit"===e.type)return t;if("font-family"===e.type){const e=s.configStore.fonts.find((e=>e.slug===t));return e?.label||""}return"color"===e.type?(0,o.zG)(t,a.Dz.decode,(0,r.g_)((()=>t),(e=>e.type))):"spacing"===e.type||"string"===typeof t?t:"number"===typeof t?t.toString():""}function f(e){return null!==e?.value&&void 0!==e?.value&&b(e)}function _(e){return e?.position===i.eV.AFTER}function b(e){const t=e?.position===i.eV.BEFORE;return t||S(e)}function S(e){return!!e?.fromBreakpoint&&e?.position===i.eV.CURRENT}},24111:(e,t,n)=>{function s(e){const t=i(e);return{...e,children:e.children?.map((e=>{const n=e.name.includes("&")?e.name:`& ${e.name}`;return{...e,name:n.replace(/&/g,t)}}))}}function i(e){return"class"===e.type?`.${e.name}`:e.name}n.d(t,{I:()=>i,r:()=>s})},41836:(e,t,n)=>{n.d(t,{$Q:()=>v,Ap:()=>m,Ds:()=>g,u7:()=>y});var s=n(98851),i=n(3735),o=n(48973),a=n(51168),r=n(31044),l=n(65669),c=n(32521),d=n(95690),u=n(69137),p=n(17582);function h(e){u.n.transaction((()=>{const t=r.cr.variables;let n=t.length;for(let i=t.length-1;i>=0;i--)if(t[i].collection===e.collection){n=i+1;break}const s=[...t.slice(0,n),e,...t.slice(n)];r.cr.setVariables(s)}),"Add Variable")}function g(e){h(e),(0,d.O_)("variables")||v()}async function m(){const e=await(0,s.D)({action:"breakdance_load_variables",decoder:p.r6});return(0,i.zG)(e,(0,o.g_)((e=>((0,a.UE)(e.map((e=>({...e,customNotificationToShow:e.customNotificationToShow?"INTERNAL_SERVER_ERROR"===e.customNotificationToShow.type?{...e.customNotificationToShow,keepOpen:!0}:e.customNotificationToShow:void 0})))),!1)),(e=>(u.n.ignore((()=>{r.cr.setVariables(e.variables),r.cr.setVariablesCollections(e.collections),r.cr.markCurrentVariablesAsUntouched()})),!0))))}async function v(){return(0,i.zG)(await(0,s.D)({friendlyName:"Saving variables to WordPress",action:"breakdance_save_variables",dataToPost:{variables:(0,l.J)({variables:r.cr.variables,collections:r.cr.variablesCollections})},decoder:c._4}),(0,o.g_)((e=>((0,a.UE)(e),!1)),(()=>(u.n.ignore((()=>r.cr.markCurrentVariablesAsUntouched())),!0))))}async function y(){return(0,i.zG)(await(0,s.D)({action:"breakdance_retrieve_variables_revisions",decoder:p.SD}),(0,o.Vn)((()=>null)),o.i$)}},67132:(e,t,n)=>{n.d(t,{Qu:()=>a,rf:()=>r});var s=n(98851),i=n(48262),o=(n(9665),n(39664),n(65669));async function a(e){return await(0,s.D)({action:"breakdance_manage_templates_save",dataToPost:{id:e.id,title:e.title,postType:e.postType,settings:(0,o.J)(e.settings)},decoder:i.t0,resultKey:"data",friendlyName:"Save template"})}async function r(e){return await(0,s.D)({action:"breakdance_manage_templates_load_data",dataToPost:{post_type:e},decoder:i.YL,resultKey:"data",friendlyName:"Get templates data"})}},47187:(e,t,n)=>{n.d(t,{aA:()=>o});n(23128);var s=n(18446),i=n.n(s);function o(e,t,n){const s=e.find((e=>i()(e.settings,t)));return!s||confirm(`You already have a ${n} with the same settings called "${s.title}". Continue anyway?`)}},48262:(e,t,n)=>{n.d(t,{YL:()=>y,t0:()=>g});var s=n(99697),i=n(47902),o=n(32521),a=n(88683),r=n(20918);const l=o.jV([o.dt({slug:o.Z_,label:o.Z_}),o.r$({defaultPriority:o.pk})]),c=(o.IX(o.dt({text:o.Z_,value:o.pk})),o.IX(o.dt({label:o.Z_,types:o.IX(l)}))),d=o.r$({parentId:o.pk,type:o.Z_,ruleGroups:o.IX(s.ZQ),triggers:s.Gc,priority:o.pk,disabled:o.O7,fallback:o.O7,onlyShowOnce:o.O7,avoidMultiple:o.O7,limitPageLoad:o.G0([o.pk,o.lB]),limitSession:o.G0([o.pk,o.lB]),limitForever:o.G0([o.pk,o.lB])}),u=o.G0([o.i0(r.AZ),o.i0(r.lM),o.i0(r.kl),o.i0(r.Nn),o.i0(r.WZ),o.i0(r.$v),o.i0(r.hF),o.i0(r.Zr),o.i0("breakdance_popup"),o.i0("breakdance_acf_block")]),p=o.dt({id:o.pk,title:o.Z_,editInBreakdanceLink:o.Z_,postType:u,status:o.G0([o.i0("publish"),o.i0("trash"),o.S1])}),h=o.jV([p,o.dt({settings:o.G0([d,o.lB])})]),g=o.jV([p,o.dt({settings:d})]),m=o.dt({text:o.Z_,value:o.Z_,proOnly:o.G0([o.S1,o.O7])}),v=o.dt({conditions:o.IX(s.dV),dynamicFields:o.IX(i.pG),templateTypeCategories:c,popupTriggers:o.G0([o.lB,o.IX(m)])}),y=o.dt({templates:o.IX(h),templatesManagementData:v,isWooCommerceActive:o.O7,environment:a.Pt})},43981:(e,t,n)=>{n.d(t,{Z:()=>s});const s="form.breakdance-unbrowsable,\nform.breakdance-unbrowsable input,\nform.breakdance-unbrowsable select,\nform.breakdance-unbrowsable button,\na.breakdance-unbrowsable,\narea.breakdance-unbrowsable {\n cursor: not-allowed !important;\n}"}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var o=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,(()=>{var e=[];n.O=(t,s,i,o)=>{if(!s){var a=1/0;for(d=0;d=o)&&Object.keys(n.O).every((e=>n.O[e](s[l])))?s.splice(l--,1):(r=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[s,i,o]}})(),(()=>{n.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return n.d(t,{a:t}),t}})(),(()=>{n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}})(),(()=>{n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{n.j=143})(),(()=>{var e={143:0};n.O.j=t=>0===e[t];var t=(t,s)=>{var i,o,[a,r,l]=s,c=0;if(a.some((t=>0!==e[t]))){for(i in r)n.o(r,i)&&(n.m[i]=r[i]);if(l)var d=l(n)}for(t&&t(s);cn(23370)));s=n.O(s)})(); +//# sourceMappingURL=app.dec5a514.js.map \ No newline at end of file diff --git a/functions/tailwindcss/js/v6.0/chunk-common.384771e2-parche.js b/functions/tailwindcss/js/v6.0/chunk-common.384771e2-parche.js new file mode 100644 index 0000000..0a89887 --- /dev/null +++ b/functions/tailwindcss/js/v6.0/chunk-common.384771e2-parche.js @@ -0,0 +1,2 @@ +(globalThis["webpackChunkbuilder"]=globalThis["webpackChunkbuilder"]||[]).push([[64],{39872:(e,t,n)=>{"use strict";n.d(t,{Z:()=>$});var o=n(43432),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-add-panel__element_wrapper",attrs:{"data-test-id":`panel-element-${e.element.name.replace(/ /g,"-").toLowerCase()}`,tabindex:"0"},on:{click:e.add,keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.add.apply(null,arguments)},focusin:function(t){e.isElementSelected=!0},focusout:function(t){e.isElementSelected=!1}}},[e.unavailable?e._e():t("InAddDragHandle",{class:{"breakdance-add-panel__element":!0,"breakdance-add-panel__element--dragging":e.currentlyDraggingElement,"breakdance-add-panel__element--selected":e.isElementSelected},attrs:{element:e.element}},[t("ElementIcon",{staticClass:"breakdance-add-panel__element-svg-icon",attrs:{icon:e.element.uiIcon,size:"16"}}),t("div",{staticClass:"breakdance-add-panel__element-name"},[e._v(" "+e._s(e.elementName)+" ")]),e.elementBadge?t("ElementBadge",{attrs:{value:e.elementBadge}}):e._e(),e.htmlTag&&e.element.htmlTag.default!==e.htmlTag?t("div",{staticClass:"breakdance-add-panel__element-tag"},[e._v(" <"+e._s(e.htmlTag)+"> ")]):e._e()],1),e.unavailable?t(o.Z,{attrs:{bottom:"","max-width":"236","open-delay":"300"},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[t("div",e._g(e._b({class:{"breakdance-add-panel__element":!0,"breakdance-add-panel__element--unavailable-wrapper":!0,"breakdance-add-panel__element--selected":e.isElementSelected}},"div",o,!1),n),[t("ElementIcon",{staticClass:"breakdance-add-panel__element-svg-icon breakdance-add-panel__element--unavailable",attrs:{size:"16"}}),t("div",{staticClass:"breakdance-add-panel__element-name breakdance-add-panel__element--unavailable"},[e._v(" "+e._s(e.elementName)+" ")]),e.elementBadge?t("ElementBadge",{staticClass:"ml-auto",attrs:{value:e.elementBadge}}):e._e()],1)]}}],null,!1,2217372239),model:{value:e.isElementSelected,callback:function(t){e.isElementSelected=t},expression:"isElementSelected"}},[t("span",[e._v(e._s(e.unavailableInformation))])]):e._e()],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(31044),u=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{on:{mousedown:e.dragStart,click:function(t){return e.$emit("click")},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.$emit("click")}}},[e._t("default")],2)},d=[],p=n(85450),h=n(7824),g=n(13635),m=n(53809),v=n(31381),f=n(9950),y=n(12721),b=n(45974),_=n(30902);let I=class extends l.w3{constructor(){super(...arguments),this.lastSubmittedDrag=!1,this.easyEvent=new y.hF}get selfNestingType(){return(0,f.V9)(this.element.slug)}dragStart(e){e.stopPropagation(),this.easyEvent.on("mousemove",this.dragging),this.easyEvent.on("mouseup",this.dragEnd),p.uiStore.setAddElementDraggedSlug(this.element.slug)}setCanvasDragPlaceholderPosition(e){p.uiStore.setCanvasDragPlaceholderPosition(e)}dragging(e){if(e.stopPropagation(),!(0,y.Pm)(e))return void this.setDragPosition(!1);const t=e.clientX,n=e.clientY;p.uiStore.setDragMousePosition({x:t,y:n});const o=(0,h.Qf)(t,n);if(void 0===o)return void this.setDragPositionToPlaceToAddNodes();const s=(0,v.findNode)(p.documentStore.document.tree,o);if(void 0===s)return void this.setDragPosition(!1);const a=(0,f.PN)(p.documentStore.document.tree,s,{self:this.selfNestingType,children:[]});if(a&&a.id){if(o===a.id)this.handleDragWhenMouseIsOverTheDropTargetButNotOverAChildElementOfTheDropTarget(t,n,o,this.element.slug,a);else if(a.children.find((e=>o===e.id)))this.handleDragWhenMouseIsOverAChildOfTheDropTarget(t,n,o,this.element.slug,a);else if((0,v.treeNodeReduce)(((e,t)=>(t||(t=e.children.find((e=>o===e.id))),t)),a,void 0)){const e=(0,h.dD)(t,n).reduce(((e,t)=>e||a.children.find((e=>e.id===t))),void 0);e&&this.handleDragWhenMouseIsOverAChildOfTheDropTarget(t,n,e.id,this.element.slug,a)}}else this.setDragPosition(!1)}dragEnd(e){if(e.stopPropagation(),(0,y.Pm)(e)&&this.lastSubmittedDrag)if("add"===this.lastSubmittedDrag)p.documentStore.addElement({elementSlug:this.element.slug,addToNodeId:v.ROOT_ELEMENT_ID});else{const e=(0,v.findNode)(p.documentStore.document.tree,this.lastSubmittedDrag.droppedOnElementId);if(!e)return;p.documentStore.addElement({elementSlug:this.element.slug,placeToAdd:(0,b.right)({index:this.lastSubmittedDrag.index,place:e})})}this.dragEndComplete()}dragEndComplete(){this.easyEvent.off("mousemove",this.dragging),this.easyEvent.off("mouseup",this.dragEnd),this.setCanvasDragPlaceholderPosition(null),this.lastSubmittedDrag=!1,p.uiStore.setDragMousePosition(null),p.uiStore.setAddElementDraggedSlug(null)}setDragPosition(e){!1===e&&p.uiStore.setCanvasDragPlaceholderPosition(null),this.lastSubmittedDrag=e}setDragPositionToPlaceToAddNodes(){this.lastSubmittedDrag="add";const e=(0,f.Z)(p.documentStore.document.tree,v.ROOT_ELEMENT_ID,{self:(0,f.V9)(this.element.slug),children:[]});(0,_.pipe)(e,(0,b.fold)((()=>{}),(e=>{"TOP_LEVEL"===e?p.uiStore.setCanvasDragPlaceholderPosition({parentId:v.ROOT_ELEMENT_ID,nodeIndex:p.documentStore.document.tree.root.children.length-1,position:"after",onlyShowTargetOutline:!1}):p.uiStore.setCanvasDragPlaceholderPosition({parentId:e.place.id,nodeIndex:e.index?e.index:e.place.children.length-1,position:"after",onlyShowTargetOutline:!1})})))}handleDragWhenMouseIsOverAChildOfTheDropTarget(e,t,n,o,s,a=!1){const i=(0,h.qE)(s),r="before"===(0,h.dv)(e,t,n,i)?"before":"after",l=s.children.map((e=>e.id)),c=s.children.map((e=>e.id)).findIndex((e=>e===n));let u=l.findIndex((e=>e===n));"after"===r&&u++,a?(this.setPlaceholder({dropTargetId:s.id,dragPlaceholderIndex:c,beforeOrAfter:r}),this.setDragPosition(!1)):(this.setPlaceholder({dropTargetId:s.id,dragPlaceholderIndex:c,beforeOrAfter:r}),this.setDragPosition({draggedElementTypeSlug:o,droppedOnElementId:s.id,index:u}))}handleDragWhenMouseIsOverTheDropTargetButNotOverAChildElementOfTheDropTarget(e,t,n,o,s){if(0===s.children.length)this.setPlaceholder({dropTargetId:s.id,dragPlaceholderIndex:0,beforeOrAfter:"after"}),this.setDragPosition({draggedElementTypeSlug:o,droppedOnElementId:s.id,index:0});else{const n=s.children.map(((e,t)=>({positionAndSize:(0,g.Sv)(e,"absolute"),index:t,id:e.id}))).filter((e=>e.positionAndSize)).map((e=>({min:{x:e.positionAndSize.x,y:e.positionAndSize.y},max:{x:e.positionAndSize.x+e.positionAndSize.width,y:e.positionAndSize.y+e.positionAndSize.height},nodeIndex:e.index,id:e.id}))).map((n=>({...n,distance:(0,m.T)(n,{x:e,y:t})}))),a=n.reduce(((e,t)=>e.distancee?"left":"right",c=r>t?"above":"below",u=(0,h.qE)(s);let d;d="vertical"===u?"above"===c?"before":"after":"left"===l?"before":"after";const p=s.children.map((e=>e.id));let v=p.findIndex((e=>e===a.id));"after"===d&&v++,this.setPlaceholder({dropTargetId:s.id,dragPlaceholderIndex:a.nodeIndex,beforeOrAfter:d}),this.setDragPosition({draggedElementTypeSlug:o,droppedOnElementId:s.id,index:v})}}setPlaceholder(e){this.movePlaceholder(e.dropTargetId,e.dragPlaceholderIndex,e.beforeOrAfter)}movePlaceholder(e,t,n){const o=!1;if(p.uiStore.canvasDragPlaceholderPosition){const o=()=>t===p.uiStore.canvasDragPlaceholderPosition.nodeIndex+1,s=()=>t===p.uiStore.canvasDragPlaceholderPosition.nodeIndex-1;if(p.uiStore.canvasDragPlaceholderPosition.parentId===e){if(o()&&"after"===p.uiStore.canvasDragPlaceholderPosition.position&&"before"===n)return;if(s()&&"before"===p.uiStore.canvasDragPlaceholderPosition.position&&"after"===n)return}}this.setCanvasDragPlaceholderPosition({parentId:e,nodeIndex:t,position:n,onlyShowTargetOutline:o})}};(0,i.gn)([(0,l.fI)()],I.prototype,"element",void 0),I=(0,i.gn)([l.wA],I);const w=I,x=w;var S=n(1001),C=(0,S.Z)(x,u,d,!1,null,null,null);const k=C.exports;var P=n(20210),Z=n(85283),D=n(78),E=n(26687),T=n(13960),A=n(95690),M=n(36055);let V=class extends r.ZP{constructor(){super(...arguments),this.isElementSelected=!1}updateIsElementIsSelected(){this.isElementSelected=this.isSelected}async add(){this.unavailable||((0,A.TO)("add"),c.Hb.addElement({elementSlug:this.element.slug}),this.shouldSetHtmlTag&&(0,P.Q$)(c.kD.activeElementId,this.htmlTag,`DocumentAddElement:Slug:${this.element.slug}`))}get shouldSetHtmlTag(){return this.showHtmlTag&&this.htmlTag}get htmlTag(){if(this.showHtmlTag&&this.searchQuery){const e=[this.element.htmlTag.default,...this.element.htmlTag.options].filter(Boolean).find((e=>e===this.searchQuery));if(e)return e}return""}get currentlyDraggingElement(){return c.kD.currentlyDraggingAddElementSlug===this.element.slug}get elementName(){const e=Object.values(c.PK.elements).filter((e=>!e?.addPanelRules||!e.addPanelRules.alwaysHide)).find((e=>e?.name===this.element.name&&e.slug!==this.element.slug)),t=c.kD.panelState.elementStudioOpen?" - "+this.element.order:"";return e&&this.isSearching?`${this.element.slug.split("\\").join(" / ")}${t}`:`${this.element.name}${t}`}get elementBadge(){return this.element.settings&&this.element.settings.proOnly&&"free"===c.PK.subscriptionMode?(0,T.ur)():!!this.element.badge&&this.element.badge}get unavailable(){return!(0,P.Sl)(this.element)}get unavailableInformation(){if(!this.unavailable||!this.element.nestingRule)return"";const e=this.element.nestingRule.restrictedToBeADirectChildOf?this.element.nestingRule.restrictedToBeADirectChildOf.map((e=>c.PK.element(e).name)):[],t=this.element.nestingRule.restrictedToBeADescendantOf?this.element.nestingRule.restrictedToBeADescendantOf.map((e=>c.PK.element(e).name)):[],n=[...e,...t],o=n.join('", "');return n.length?(0,M.gB)((0,M.vM)('Must be added inside a "%s" element','Must be added inside a "%s" elements',n.length,"element nesting"),o):(0,M.__)("This element can't be added for unknown reasons")}};(0,i.gn)([(0,l.fI)()],V.prototype,"element",void 0),(0,i.gn)([(0,l.fI)({default:!1})],V.prototype,"isSearching",void 0),(0,i.gn)([(0,l.fI)()],V.prototype,"searchQuery",void 0),(0,i.gn)([(0,l.fI)({default:!1})],V.prototype,"isSelected",void 0),(0,i.gn)([(0,l.fI)({default:!1})],V.prototype,"showHtmlTag",void 0),(0,i.gn)([(0,l.RL)("isSelected",{immediate:!0})],V.prototype,"updateIsElementIsSelected",null),V=(0,i.gn)([(0,l.wA)({components:{ElementIcon:D.Z,Icon:Z.Z,InAddDragHandle:k,ElementBadge:E.Z}})],V);const B=V,O=B;var L=(0,S.Z)(O,s,a,!1,null,null,null);const $=L.exports},66696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(37179),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"design-library-password",class:{"design-library-password--compact":e.compact}},[t("p",{staticClass:"design-library-password__message"},[e._v(" "+e._s(e.__("This Design Set is password protected by the author. Please enter the password below to view it."))+" ")]),t("div",{staticClass:"design-library-password-inner"},[t("form",{staticClass:"design-library-password-form",on:{submit:function(t){return t.preventDefault(),e.setPassword.apply(null,arguments)}}},[t("TextInput",{attrs:{placeholder:e.__("Enter Password")},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),t("NiceButton",{attrs:{loading:e.checkingPassword}},[e._v(e._s(e.__("Submit")))])],1),!e.passwordValid&&e.checkedPassword?t("span",{staticClass:"design-library-password__invalid-message"},[e._v(" "+e._s(e.__("Invalid password. Please try again."))+" ")]):e._e()]),t(o.Z,{attrs:{color:"primary",href:e.provider?.url,target:"_blank",depressed:"",outlined:""}},[e._v(" "+e._s(e.__("View Design Set"))+" ")])],1)},a=[],i=n(70655),r=n(38085),l=n(3735),c=n(98851),u=n(32521),d=n(48973),p=n(41571),h=n(79333);let g=class extends r.w3{constructor(){super(...arguments),this.password="",this.passwordValid=!0,this.checkedPassword=!1,this.checkingPassword=!1}async setPassword(){if(this.checkingPassword)return;this.checkingPassword=!0,this.checkedPassword=!1;const e=(0,l.zG)(await(0,c.D)({action:"breakdance_set_design_set_password",decoder:u.dt({validated:u.O7,message:u.Z_}),friendlyName:`Set Password For "${this.provider?.name}"`,dataToPost:{url:this.provider?.url,password:this.password},suppressErrorLogging:!0}),(0,d.g_)((()=>!1),(({validated:e})=>e)));e?(this.$emit("password-validated",this.password),this.passwordValid=!0,this.checkedPassword=!0):(this.checkingPassword=!1,this.passwordValid=!1,this.checkedPassword=!0)}};(0,i.gn)([(0,r.fI)()],g.prototype,"provider",void 0),(0,i.gn)([(0,r.fI)()],g.prototype,"compact",void 0),g=(0,i.gn)([(0,r.wA)({components:{NiceButton:h.Z,TextInput:p.Z}})],g);const m=g,v=m;var f=n(1001),y=(0,f.Z)(v,s,a,!1,null,null,null);const b=y.exports},36240:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("button",{staticClass:"node-hover-onboarding-controls-buttons__button",on:{click:e.applyColor}},[t("div",{staticClass:"node-hover-onboarding-controls-buttons__colors-wrap"},[t("div",{staticClass:"node-onboarding-palette-button__color",style:{backgroundColor:e.isUsingDark?e.colorGroup.dark.background.value?.toString():e.colorGroup.light.background.value?.toString()}}),t("div",{staticClass:"node-onboarding-palette-button__color",style:{backgroundColor:e.isUsingDark?e.colorGroup.light.background.value?.toString():e.colorGroup.dark.background.value?.toString()}}),t("div",{staticClass:"node-onboarding-palette-button__color",style:{backgroundColor:e.colorGroup.brand.background.value?.toString()}})])])},s=[],a=n(70655),i=n(38085),r=n(6778),l=n(93113),c=n(47431);let u=class extends i.w3{async applyColor(){(0,c.K)("Onboarding",{action:"onboarding_app_ui_interaction",type:this.sendRequest?"sidebar_toggle_section_colors_button":"node_toggle_section_color_button"}),this.sendRequest?await l.Z.sendRequest({payload:{action:"toggleSectionColors",data:{elementId:this.elementId,colorGroup:this.colorGroup}}}):await(0,r.x3)(this.elementId,this.colorGroup)}get isUsingDark(){return(0,r.vy)(this.elementId,this.colorGroup)}};(0,a.gn)([(0,i.fI)({required:!0})],u.prototype,"colorGroup",void 0),(0,a.gn)([(0,i.fI)({required:!0})],u.prototype,"elementId",void 0),(0,a.gn)([(0,i.fI)({default:!1})],u.prototype,"sendRequest",void 0),u=(0,a.gn)([(0,i.wA)({})],u);const d=u,p=d;var h=n(1001),g=(0,h.Z)(p,o,s,!1,null,null,null);const m=g.exports},26687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-element-badge",style:e.style},[e._v(" "+e._s(e.value.label||e.__("Missing badge label"))+" ")])},s=[],a=n(70655),i=n(20144),r=n(38085);let l=class extends i.ZP{get style(){return{backgroundColor:this.value.backgroundColor,color:this.value.textColor}}};(0,a.gn)([(0,r.fI)()],l.prototype,"value",void 0),l=(0,a.gn)([(0,r.wA)({components:{}})],l);const c=l,u=c;var d=n(1001),p=(0,d.Z)(u,o,s,!1,null,null,null);const h=p.exports},58495:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Rt});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-notifications"},[t("RegeneratingCacheProgress"),e.notifications.length>1?t("button",{staticClass:"breakdance-notifications-clear-button",on:{click:e.dismissAll}},[e._v(" "+e._s(e.__("Clear All"))+" ")]):e._e(),e._l(e.notifications,(function(n,o){return t("NotificationViewer",{key:o,attrs:{value:n},on:{clear:function(t){return e.dismissNotification(o)}}})}))],2)},s=[],a=n(70655),i=n(20144),r=n(38085),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-notification"},["MESSAGE"===e.value.type?t("Message",{attrs:{value:e.value},on:{clear:e.clear}}):"INTERNAL_SERVER_ERROR"===e.value.type||"FORBIDDEN"===e.value.type?t("FriendlyMultiError",{attrs:{value:e.value},on:{clear:e.clear}}):"IO_TS"===e.value.type?t("IoTsError",{attrs:{value:e.value},on:{clear:e.clear}}):"AJAX_CODE_ERROR"===e.value.type?t("AjaxCodeError",{attrs:{value:e.value},on:{clear:e.clear}}):"ERROR"===e.value.type?t("ErrorMessage",{attrs:{value:e.value},on:{clear:e.clear}}):"NETWORK_ERROR"===e.value.type?t("NetworkError",{attrs:{value:e.value},on:{clear:e.clear}}):"LOGGED_OUT"===e.value.type?t("LoggedOutError",{attrs:{value:e.value},on:{clear:e.clear}}):"SESSION_EXPIRED"===e.value.type?t("SessionExpiredError",{attrs:{value:e.value},on:{clear:e.clear}}):[t("span",[e._v(e._s(e.sprintf(e._doc("Unknown notification type %s","%s: Notification type"),e.value.type)))])],t("IconButton",{staticClass:"breakdance-notification-close-button",attrs:{icon:"CloseIcon",small:!0,size:20},on:{click:e.clear}})],2)},c=[],u=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-notification-error breakdance-notification-success"},[t("div",{staticClass:"breakdance-notification-message"},[t("div",{staticClass:"breakdance-notification-message-body"},[e._v(" "+e._s(e.value.message)+" ")])])])},d=[],p=n(85283);let h=class extends i.ZP{clear(){this.$emit("clear")}};(0,a.gn)([(0,r.fI)()],h.prototype,"value",void 0),h=(0,a.gn)([(0,r.wA)({components:{Icon:p.Z}})],h);const g=h,m=g;var v=n(1001),f=(0,v.Z)(m,u,d,!1,null,null,null);const y=f.exports;var b=n(37179),_=n(75223),I=n(12570),w=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-notification-ajax-error breakdance-notification-error"},[t("div",{staticClass:"breakdance-notification-message"},[t("div",{staticClass:"breakdance-notification-message-heading"},[e._v(" "+e._s(e.notificationHeading)+" ")]),t("div",{staticClass:"breakdance-notification-message-body"},[e._v(" "+e._s(e.ajaxErrorNotificationMessage)+" ")]),t("div",{staticClass:"uniforn-notification-message-action"},[t("div",{staticClass:"uniforn-notification-message-action-button",on:{click:function(t){return e.setMoreInfoDialogOpen(!0)}}},[e._v(" "+e._s(e.__("Details & Troubleshooting"))+" ")])])]),t(I.Z,{attrs:{width:"800"},model:{value:e.moreInfoDialogOpen,callback:function(t){e.moreInfoDialogOpen=t},expression:"moreInfoDialogOpen"}},[t("TroubleshootingModal",{attrs:{value:e.troubleShootingModalOptions,requestDetails:e.value.requestDetails}},[t("span",{attrs:{slot:"message"},slot:"message"},[e._v(" "+e._s(e.ajaxErrorNotificationMessage)+" ")]),t("CopyButton",{attrs:{slot:"title-btn",color:"white","value-to-copy":e.valueForClipboard},slot:"title-btn"}),t("template",{slot:"default"},[t(_.ZB,[e.isResponseCodeUnauthorized?[t(b.Z,{attrs:{color:"primary",href:e.loginURL,target:"_blank",depressed:"",outlined:""}},[e._v(" "+e._s(e.__("Login"))+" ")])]:e._e()],2)],1)],2)],1)],1)},x=[],S=n(31044),C=n(73385),k=n(84192),P=n(55234),Z=n(22680),D=n(53333),E=n(96878),T=n(77671),A=n(47233),M=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(C.Z,{staticClass:"breakdance-troubleshooting-modal__card"},[t(_.EB,{staticClass:"breakdance-troubleshooting-modal__title"},[e._v(e._s(e.value.title)+" "),t(P.Z),e._t("title-btn")],2),t(k.Z,{staticClass:"breakdance-troubleshooting-modal__divider"}),t(T.Z,{staticClass:"breakdance-troubleshooting-modal__tabs",model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t(D.Z,[e._v(e._s(e.customTabTitle))]),e.requestDetails?t(D.Z,[e._v(e._s(e.__("Environment & details")))]):e._e()],1),t(A.Z,{staticClass:"breakdance-troubleshooting-modal__tabs-items",model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t(E.Z,{attrs:{transition:!1,"reverse-transition":!1}},[e.hasCustomMessage?[t(_.ZB,{staticClass:"user-selectable"},[t(Z.Z,{staticClass:"breakdance-troubleshooting-modal__custom-msg-subheader"},[e._v(e._s(e.__("Here's what happened:"))+" ")]),e._t("message")],2),e.hasCustomContent?t(k.Z):e._e()]:e._e(),e._t("default")],2),e.requestDetails?t(E.Z,{attrs:{transition:!1,"reverse-transition":!1}},[t(_.ZB,{staticClass:"breakdance-troubleshooting-modal__request-details"},[t("b",[e._v(e._s(e.__("Type:")))]),e._v(" "+e._s(e.requestDetails.requestMethod)+" "),t("br"),t("b",[e._v(e._s(e.__("Request URL:")))]),e._v(" "+e._s(e.requestDetails.requestUrl)),t("br"),t("b",[e._v(e._s(e.__("Body:")))]),t("br"),t("pre",{staticClass:"breakdance-troubleshooting-modal__request-body user-selectable"},[e._v(e._s(e.requestDetails.body))])])],1):e._e()],1)],1)},V=[],B=n(36055);let O=class extends i.ZP{constructor(){super(...arguments),this.tab=null}get hasCustomContent(){return this.$slots.default?.length}get hasCustomMessage(){return this.$slots.message?.length}get customTabTitle(){return this.value.tabTitle??(0,B.__)("Content")}};(0,a.gn)([(0,r.fI)()],O.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],O.prototype,"requestDetails",void 0),O=(0,a.gn)([r.wA],O);const L=O,$=L;var z=(0,v.Z)($,M,V,!1,null,"4c7da438",null);const N=z.exports;var H=n(14567),R=n(6613);let G=class extends i.ZP{constructor(){super(...arguments),this.moreInfoDialogOpen=!1}get notificationHeading(){const e=this.value;return(0,B.gB)((0,B.TZ)("%s - Error Code %s","1: friendly error name, 2: error code"),e.requestDetails?.friendlyName,e.requestDetails?.responseCode)}get ajaxErrorNotificationMessage(){return this.value.errorDetails?.message??this.value.errorMessage??(0,B.__)("The task failed due a problem on the server side.")}get valueForClipboard(){return(0,R.g)(this.value)}get troubleShootingModalOptions(){return{title:(0,B.__)("AJAX Error")}}get loginURL(){return S.PK.neededData?.adminLoginUrl}get isResponseCodeUnauthorized(){return"401"===this.value.requestDetails?.responseCode}setMoreInfoDialogOpen(e){this.moreInfoDialogOpen=e}};(0,a.gn)([(0,r.fI)()],G.prototype,"value",void 0),G=(0,a.gn)([(0,r.wA)({components:{CopyButton:H.Z,TroubleshootingModal:N}})],G);const F=G,U=F;var W=(0,v.Z)(U,w,x,!1,null,null,null);const j=W.exports;var X=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-notification-decoder-error breakdance-notification-error"},[t("div",{staticClass:"breakdance-notification-message"},[t("div",{staticClass:"breakdance-notification-message-heading"},[e._v(" "+e._s(e.sprintf(e.__("%s failed"),e.value.errorDetails.friendlyName))+" ")]),t("div",{staticClass:"breakdance-notification-message-body"},[e._v(" "+e._s(e.value.errorDetails.message)+" ")]),t("div",{staticClass:"uniforn-notification-message-action"},[t("div",{staticClass:"uniforn-notification-message-action-button",on:{click:function(t){return e.setMoreInfoDialogOpen(!0)}}},[e._v(" "+e._s(e.__("Details & Troubleshooting"))+" ")])])]),t(I.Z,{attrs:{width:"800"},model:{value:e.moreInfoDialogOpen,callback:function(t){e.moreInfoDialogOpen=t},expression:"moreInfoDialogOpen"}},[t("TroubleshootingModal",{attrs:{value:e.troubleShootingModalOptions,requestDetails:e.value.requestDetails}},[t("span",{attrs:{slot:"message"},slot:"message"},[e._v(" "+e._s(e.value.errorDetails.message)+" ")]),t("CopyButton",{attrs:{slot:"title-btn",color:"white","value-to-copy":e.valueForClipboard},slot:"title-btn"}),t("template",{slot:"default"},[t(_.ZB,[e.isResponseCodeUnauthorized?[t(b.Z,{attrs:{color:"primary",href:e.loginURL,target:"_blank",depressed:"",outlined:""}},[e._v(" "+e._s(e.__("Login"))+" ")])]:e._e()],2)],1)],2)],1)],1)},q=[];let K=class extends i.ZP{constructor(){super(...arguments),this.moreInfoDialogOpen=!1}get valueForClipboard(){return(0,R.g)(this.value)}get troubleShootingModalOptions(){return{title:(0,B.__)("AJAX Error")}}get loginURL(){return S.PK.neededData?.adminLoginUrl}get isResponseCodeUnauthorized(){return"401"===this.value.requestDetails?.responseCode}setMoreInfoDialogOpen(e){this.moreInfoDialogOpen=e}};(0,a.gn)([(0,r.fI)()],K.prototype,"value",void 0),K=(0,a.gn)([(0,r.wA)({components:{CopyButton:H.Z,TroubleshootingModal:N}})],K);const Y=K,J=Y;var Q=(0,v.Z)(J,X,q,!1,null,null,null);const ee=Q.exports;var te=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.forcePersistentDialog?e._e():t("div",{staticClass:"breakdance-notification-internal-server-error breakdance-notification-error"},[t("div",{staticClass:"breakdance-notification-message"},[t("div",{staticClass:"breakdance-notification-message-heading"},[e._v(" "+e._s(e.__("Internal Server Error"))+" ")]),t("div",{staticClass:"breakdance-notification-message-body"},[t("code",{staticClass:"breakdance-notification-internal-server-error-message"},[e._v(" "+e._s(e.errorMessage)+" ")])]),t("div",{staticClass:"uniforn-notification-message-action"},[t("div",{staticClass:"uniforn-notification-message-action-button",on:{click:function(t){return e.setMoreInfoDialogOpen(!0)}}},[e._v(" "+e._s(e.__("Details & Troubleshooting"))+" ")])])])]),t(I.Z,{attrs:{transition:"false",persistent:e.forcePersistentDialog,width:"920"},model:{value:e.moreInfoDialogOpen,callback:function(t){e.moreInfoDialogOpen=t},expression:"moreInfoDialogOpen"}},[t("TroubleshootingModal",{attrs:{value:e.troubleShootingModalOptions,requestDetails:e.value.requestDetails},on:{"click:copyToClipboard":e.copyErrorDetailsToClipboard}},[t("CopyButton",{attrs:{slot:"title-btn",color:"white","value-to-copy":e.valueForClipboard},slot:"title-btn"}),t("span",{attrs:{slot:"message"},slot:"message"},[t("strong",{domProps:{innerHTML:e._s(e.errorMessage)}}),e.value.errorDetails.file?t("span",[e._v(" at "),t("i",[t("nobr",[e._v(e._s(e.value.errorDetails.file))])],1),t("strong",[e._v(":"+e._s(e.value.errorDetails.line))])]):e._e()]),e.value.errorDetails?t("StackTrace",{attrs:{value:e.value.errorDetails.trace}}):e._e()],1)],1)],1)},ne=[],oe=n(66485),se=n.n(oe),ae=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t(T.Z,{staticClass:"breakdance-notification-internal-server-tabs",attrs:{slot:"default",vertical:""},slot:"default"},[e._l(e.value,(function(n,o){return t(D.Z,{key:o,staticClass:"breakdance-notification-internal-server-tab"},[n.class?t("span",{staticClass:"breakdance-notification-internal-server-tab-error"},[e._v(" "+e._s(n.class)+" ")]):e._e(),n.class&&n.function?t("span",[e._v("::")]):e._e(),n.function?t("span",{staticClass:"breakdance-notification-internal-server-tab-error"},[e._v(" "+e._s(n.function)+"() ")]):e._e()])})),e._l(e.value,(function(n,o){return t(E.Z,{key:o,attrs:{transition:!1,"reverse-transition":!1}},[t("span",{staticClass:"breakdance-notification-internal-server-tab-file",attrs:{"data-line-number":n.line}},[e._v(" "+e._s(n.file)+" ")]),t("div",{staticClass:"breakdance-codemirror"},[t("CodeMirrorWrapper",{attrs:{value:e.getSnippetFromTrace(n),language:"php","show-line-numbers":!0,"first-line-number":n.line,"highlight-error-line":e.getErrorLineFromTrace(n),"read-only":!0}})],1)])}))],2)],1)},ie=[],re=n(47998);let le=class extends i.ZP{getSnippetFromTrace(e){return Object.values(e.snippet).join("")}getErrorLineFromTrace(e){return Math.max(1,e.line-e.startingLine+1)}};(0,a.gn)([(0,r.fI)()],le.prototype,"value",void 0),le=(0,a.gn)([(0,r.wA)({components:{CodeMirrorWrapper:re.Z}})],le);const ce=le,ue=ce;var de=(0,v.Z)(ue,ae,ie,!1,null,null,null);const pe=de.exports;let he=class extends i.ZP{constructor(){super(...arguments),this.moreInfoDialogOpen=!1}get troubleShootingModalOptions(){return{title:(0,B.__)("Internal Server Error"),tabTitle:(0,B.__)("Stack Trace")}}get valueForClipboard(){return(0,R.g)(this.value)}get forcePersistentDialog(){return this.value.keepOpen??!1}mounted(){this.moreInfoDialogOpen=this.forcePersistentDialog}setMoreInfoDialogOpen(e){this.moreInfoDialogOpen=e}get errorMessage(){return this.value.errorDetails?.message||this.value.errorMessage}getSnippetFromTrace(e){return Object.values(e.snippet).join("")}onCmReady(e,t){e.addLineClass(Math.max(1,t.line-t.startingLine),"wrap","breakdance-codemirror-errorneous-line")}copyErrorDetailsToClipboard(){const e=(0,R.g)(this.value);e&&se()(e)}codemirrorOptions(e){return{tabSize:4,mode:"text/x-php",theme:"darcula",lineNumbers:!0,firstLineNumber:e.startingLine,lineWrapping:!0,readOnly:!0,scrollbarStyle:null,viewportMargin:1/0}}};(0,a.gn)([(0,r.fI)()],he.prototype,"value",void 0),he=(0,a.gn)([(0,r.wA)({components:{Icon:p.Z,TroubleshootingModal:N,CopyButton:H.Z,StackTrace:pe}})],he);const ge=he,me=ge;var ve=(0,v.Z)(me,te,ne,!1,null,null,null);const fe=ve.exports;var ye=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-notification-error"},[t("div",{staticClass:"breakdance-notification-message"},[t("div",{staticClass:"breakdance-notification-message-heading"},[t("div",[e._v(e._s(e.sprintf(e.__("%s failed"),e.value.message)))]),t("div",{staticClass:"breakdance-notification-message-sub-heading"},[e._v(" "+e._s(e.__("You are not logged in"))+" ")])]),t("div",{staticClass:"breakdance-notification-message-body"},[e.loginURL?t("span",[e._v(" "+e._s(e.sprintf(e._doc("You've been logged out of WordPress. Log back in to continue using %s.","%s: Plugin name"),e.$bdox("plugin_name")))+" ")]):t("span",[e._v(e._s(e.sprintf(e._doc("To use %s, you need to login to WordPress.","%s: Plugin name"),e.$bdox("plugin_name"))))])]),e.loginURL?t("div",{staticClass:"uniforn-notification-message-action"},[t(b.Z,{staticClass:"uniforn-notification-message-action-button",attrs:{href:e.loginURL,target:"_blank"},on:{click:e.clear}},[e._v(" "+e._s(e.__("Login"))+" "),t("Icon",{staticClass:"ml-2",attrs:{icon:"ExternalLinkIcon",size:"16"}})],1)],1):e._e()])])},be=[];let _e=class extends i.ZP{get loginURL(){return S.PK.neededData?.adminLoginUrl}clear(){this.$emit("clear")}};(0,a.gn)([(0,r.fI)()],_e.prototype,"value",void 0),_e=(0,a.gn)([(0,r.wA)({components:{Icon:p.Z}})],_e);const Ie=_e,we=Ie;var xe=(0,v.Z)(we,ye,be,!1,null,null,null);const Se=xe.exports;var Ce=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-notification-error"},[t("div",{staticClass:"breakdance-notification-message"},[t("div",{staticClass:"breakdance-notification-message-heading"},[e._v(" "+e._s(e.__("Validation Error:"))+" ")]),t("div",{staticClass:"breakdance-notification-message-body"},[t("p",{staticClass:"breakdance-notification-code-message"},[e._v(" "+e._s(e.value.errorMessage)+" ")]),t("strong",[t("em",[e._v(e._s(e.__("Check browser console for debug information.")))])])])])])},ke=[];let Pe=class extends i.ZP{};(0,a.gn)([(0,r.fI)()],Pe.prototype,"value",void 0),Pe=(0,a.gn)([(0,r.wA)({components:{Icon:p.Z}})],Pe);const Ze=Pe,De=Ze;var Ee=(0,v.Z)(De,Ce,ke,!1,null,null,null);const Te=Ee.exports;var Ae=n(22608),Me=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-notification-error breakdance-notification-error"},[t("div",{staticClass:"breakdance-notification-message"},[t("div",{staticClass:"breakdance-notification-message-body"},[e._v(" "+e._s(e.value.message)+" ")])])])},Ve=[];let Be=class extends i.ZP{clear(){this.$emit("clear")}};(0,a.gn)([(0,r.fI)()],Be.prototype,"value",void 0),Be=(0,a.gn)([(0,r.wA)({components:{Icon:p.Z}})],Be);const Oe=Be,Le=Oe;var $e=(0,v.Z)(Le,Me,Ve,!1,null,null,null);const ze=$e.exports;var Ne=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-notification-error"},[t("div",{staticClass:"breakdance-notification-message"},[t("div",{staticClass:"breakdance-notification-message-heading"},[t("div",[e._v(e._s(e.sprintf(e.__("%s failed"),e.value.message)))]),t("div",{staticClass:"breakdance-notification-message-sub-heading"},[e._v(" "+e._s(e.__("Your session has expired"))+" ")])]),t("div",{staticClass:"breakdance-notification-message-body"},[e.adminUrl?t("span",[e._v(" "+e._s(e.sprintf(e._doc("Your session has expired. Refresh your session to continue using %s.","%s: Plugin name"),e.$bdox("plugin_name")))+" ")]):t("span",[e._v(e._s(e.sprintf(e._doc("To use %s, log in to WordPress admin.","%s: Plugin name"),e.$bdox("plugin_name"))))])]),e.adminUrl?t("div",{staticClass:"uniforn-notification-message-action"},[t(b.Z,{staticClass:"uniforn-notification-message-action-button",attrs:{href:e.adminUrl,target:"_blank"},on:{click:e.clear}},[e._v(" "+e._s(e.__("Refresh"))+" "),t("Icon",{staticClass:"ml-2",attrs:{icon:"ExternalLinkIcon",size:"16"}})],1)],1):e._e()])])},He=[];let Re=class extends i.ZP{get adminUrl(){return`${S.PK.neededData?.adminUrl}?breakdanceRefreshSession=1`}clear(){this.$emit("clear")}};(0,a.gn)([(0,r.fI)()],Re.prototype,"value",void 0),Re=(0,a.gn)([(0,r.wA)({components:{Icon:p.Z}})],Re);const Ge=Re,Fe=Ge;var Ue=(0,v.Z)(Fe,Ne,He,!1,null,null,null);const We=Ue.exports;var je=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"breakdance-notification-internal-server-error breakdance-notification-error"},[t("div",{staticClass:"breakdance-notification-message"},[t("div",{staticClass:"breakdance-notification-message-heading"},[e.isCustomError?[e._v(" "+e._s(e.errorMessage)+" ")]:e.isErrorCausedByAnotherPlugin?[e._v(" "+e._s(e.sprintf(e._doc("The plugin %s caused a %s error.","1: Plugin name, 2: Error code"),e.plugin,e.value.requestDetails.responseCode))+" "),t("br"),e._v(" "+e._s(e.__("Please deactivate it and try again."))+" ")]:[e._v(" "+e._s(e.sprintf(e._doc("Your server returned a %s error.","%s: HTTP error code"),e.value.requestDetails.responseCode))+" ")]],2),t("div",{staticClass:"uniforn-notification-message-action"},[t("div",{staticClass:"uniforn-notification-message-action-button",on:{click:e.toggleDetailsDialog}},[e._v(" "+e._s(e.__("See Details"))+" ")])])])]),t(I.Z,{attrs:{value:e.detailsDialogOpen,transition:"false",width:"920",persistent:!1},on:{input:e.closeDialog}},[t(C.Z,{staticClass:"new-error-dialog-card"},[t(_.EB,{staticClass:"new-error-dialog-title-wrapper"},[t("h1",[e._v(" "+e._s(e.sprintf(e._doc("Oh no! Your server returned a %s error. 😢","%s: HTTP error code"),e.value.requestDetails.responseCode))+" ")]),t(T.Z,{staticClass:"new-error-dialog-tabs",model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t(D.Z,[e._v(e._s(e.__("Next Steps")))]),"errorDetails"in e.value?t(D.Z,[e._v(e._s(e.__("Error Details")))]):e._e(),t(D.Z,[e._v(e._s(e.__("Request Details")))])],1)],1),t(_.ZB,{staticClass:"new-error-dialog-tabs-wrapper"},[t(A.Z,{staticClass:"new-error-dialog-tabs-wrapper-tabs-content-wrapper",model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t(E.Z,{staticClass:"new-error-dialog-next-steps-content"},[t("ErrorNextSteps",{attrs:{value:e.value}})],1),"errorDetails"in e.value?t(E.Z,{staticClass:"new-error-dialog-error-details"},[t("InternalServerErrorErrorDetails",{attrs:{value:e.value.errorDetails}})],1):e._e(),t(E.Z,[t("InternalServerErrorRequestDetails",{attrs:{value:e.value.requestDetails}})],1)],1)],1)],1)],1)],1)},Xe=[],qe=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"internal-server-error-email-for-host"},[t("div",{staticClass:"internal-server-error-email-for-host-text"},[t("textarea",{ref:"emailForHostTextarea",domProps:{value:e.emailForHostText}}),t("div",{staticClass:"internal-server-error-email-for-host-text-copy-overlay",on:{click:e.copyEmailForHostTextToClipboard}},[t("div",{staticClass:"internal-server-error-email-for-host-text-copy-button"},[e._v(" "+e._s(e.__("copy"))+" ")])])])])},Ke=[];let Ye=class extends i.ZP{get emailForHostText(){return this.getSupportTicketEmailText(this.requestDetails.responseCode,this.requestDetails.requestTimeGmt,this.requestDetails.requestUrl,this.requestDetails.requestMethod)}copyEmailForHostTextToClipboard(){const e=this.$refs.emailForHostTextarea;e.focus(),e.select(),document.execCommand("copy")}getSupportTicketEmailText(e,t,n,o){return`${(0,B.__)("Hi Hosting Provider Support,")}\n\n${(0,B.__)("When using the Breakdance or Oxygen plugin, my server failed to fulfill the following request as expected. Instead, it returned an error code.")}\n\n${(0,B.gB)((0,B.__)("Error Code: %s"),e)}\n${(0,B.gB)((0,B.__)("Request Time: %s"),t)}\n${(0,B.gB)((0,B.__)("Request URI: %s"),n)}\n${(0,B.gB)((0,B.__)("Request Type: %s"),o)}\n\n${(0,B.gB)((0,B.__)("Why did the server return a %s error?"),e)}\n\n${(0,B.__)("If this isn't something you can fix, please send me the full text of the error from the relevant error log file.")}\n\n${(0,B.__)("Best Regards,")}\n${(0,B.__)("Your Name")}`}};(0,a.gn)([(0,r.fI)()],Ye.prototype,"requestDetails",void 0),Ye=(0,a.gn)([(0,r.wA)({components:{}})],Ye);const Je=Ye,Qe=Je;var et=(0,v.Z)(Qe,qe,Ke,!1,null,null,null);const tt=et.exports;var nt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",["500"===e.value.requestDetails.responseCode?t("div",{staticClass:"error-next-steps-text"},[t("h2",[e._v(e._s(e.__("Next Steps")))]),t("ul",[t("li",[e._v(" "+e._s(e.__("A 500 error is usually a server issue and must be resolved by your web hosting provider or server administrator. It can also be caused by a broken plugin."))+" ")]),t("li",[e._v(" "+e._s(e.__("Click the Error Details tab above and read the error message. If one is not available, consult your server's error log."))+" ")]),t("li",{domProps:{innerHTML:e._s(e.consultText500)}}),t("li",[t("span",{staticClass:"next-steps-recommended-option"},[e._v(e._s(e.__("Recommended")))]),e._v(" "+e._s(e.__("Contact your hosting provider with the prewritten email below."))+" ")])]),t("br")]):"403"===e.value.requestDetails.responseCode?t("div",{staticClass:"error-next-steps-text"},[t("h2",[e._v(e._s(e.__("Next Steps")))]),t("ul",[t("li",[e._v(" "+e._s(e.__("A 403 error is almost caused by your host, firewall, or CDN blocking the request"))+" ")]),t("li",[e._v(" "+e._s(e.__("It can also be caused by misconfigured security plugins (if you're using Wordfence, put it into learning mode)"))+" ")]),t("li",{domProps:{innerHTML:e._s(e.consultText)}})]),t("br")]):e._e(),t("h2",{staticClass:"internal-server-error-error-title"},[e._v(" "+e._s(e.sprintf(e._doc("%s generated an email you can send to your web host for help:","%s: Plugin name"),e.$bdox("plugin_name")))+" ")]),t("EmailForHost",{attrs:{requestDetails:e.value.requestDetails}})],1)},ot=[],st=n(7187),at=n.n(st);let it=class extends i.ZP{get consultText500(){const e=this.$bdox("docs_link_troubleshooting_500");return(0,B.gB)(at()((0,B.TZ)('Consult our %stroubleshooting guide for the "500" error code%s',"1: Troubleshooting guide start tag, 2: Closing tag")),``,"")}get consultText(){const e=this.$bdox("docs_link_troubleshooting_403");return(0,B.gB)(at()((0,B.TZ)('Consult our %stroubleshooting guide for the "403" error code%s which contains information your host can use to whitelist all requests coming from %s.',"1: Troubleshooting guide start tag, 2: Closing tag, 3: Plugin name")),``,"",this.$bdox("plugin_name"))}};(0,a.gn)([(0,r.fI)()],it.prototype,"value",void 0),it=(0,a.gn)([(0,r.wA)({components:{EmailForHost:tt}})],it);const rt=it,lt=rt;var ct=(0,v.Z)(lt,nt,ot,!1,null,null,null);const ut=ct.exports;var dt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"internal-server-error-error-details-message-wrapper user-selectable"},[t("div",{staticClass:"internal-server-error-error-details-message"},[e._v(" "+e._s(e.type)+": "),t("strong",[e._v(e._s(e.value.message))]),e._v(" "+e._s(e.__("in"))+" "),t("em",[e._v(e._s(e.value.file))]),e._v(" "+e._s(e.__("on"))+" "),t("strong",[e._v(e._s(e.value.line))])])]),e.value?t("StackTrace",{attrs:{value:e.value.trace}}):e._e()],1)},pt=[];let ht=class extends i.ZP{get isAjaxHandler(){return"Breakdance\\AJAX\\BreakdanceAjaxHandlerException"===this.value.type}get type(){return this.isAjaxHandler?(0,B.__)("Ajax Handler Error"):this.value.type}};(0,a.gn)([(0,r.fI)()],ht.prototype,"value",void 0),ht=(0,a.gn)([(0,r.wA)({components:{StackTrace:pe}})],ht);const gt=ht,mt=gt;var vt=(0,v.Z)(mt,dt,pt,!1,null,null,null);const ft=vt.exports;var yt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"internal-server-error-request-details-message-wrapper user-selectable"},[t("b",[e._v(e._s(e.__("Response Code:")))]),e._v(" "+e._s(e.value.responseCode)+" "),t("br"),t("b",[e._v(e._s(e.__("Request Time:")))]),e._v(" "+e._s(e.value.requestTimeGmt)+" "),t("br"),t("b",[e._v(e._s(e.__("Request Type:")))]),e._v(" "+e._s(e.value.requestMethod)+" "),t("br"),t("b",[e._v(e._s(e.__("Request URL:")))]),e._v(" "+e._s(e.value.requestUrl)),t("br"),t("b",[e._v(e._s(e.__("Body:")))]),t("br"),t("pre",[e._v(e._s(e.value.body))])])},bt=[];let _t=class extends i.ZP{};(0,a.gn)([(0,r.fI)()],_t.prototype,"value",void 0),_t=(0,a.gn)([(0,r.wA)({components:{StackTrace:pe}})],_t);const It=_t,wt=It;var xt=(0,v.Z)(wt,yt,bt,!1,null,null,null);const St=xt.exports;let Ct=class extends i.ZP{constructor(){super(...arguments),this.tab=0,this.detailsDialogOpen=!1}get isErrorCausedByAnotherPlugin(){return"errorDetails"in this.value&&(!!this.value.errorDetails.plugin&&(!this.value.errorDetails.plugin.includes("breakdance")&&!this.value.errorDetails.plugin.includes("oxygen")))}get plugin(){return"errorDetails"in this.value?this.value.errorDetails.plugin:""}get isCustomError(){return"errorDetails"in this.value&&"Breakdance\\AJAX\\BreakdanceAjaxHandlerCustomException"===this.value.errorDetails.type}get errorMessage(){return"errorDetails"in this.value?this.value.errorDetails.message:""}toggleDetailsDialog(){this.detailsDialogOpen=!this.detailsDialogOpen}closeDialog(){this.detailsDialogOpen=!1}};(0,a.gn)([(0,r.fI)()],Ct.prototype,"value",void 0),Ct=(0,a.gn)([(0,r.wA)({components:{ErrorNextSteps:ut,EmailForHost:tt,InternalServerErrorErrorDetails:ft,InternalServerErrorRequestDetails:St}})],Ct);const kt=Ct,Pt=kt;var Zt=(0,v.Z)(Pt,je,Xe,!1,null,null,null);const Dt=Zt.exports;let Et=class extends i.ZP{clear(){this.$emit("clear")}};(0,a.gn)([(0,r.fI)()],Et.prototype,"value",void 0),Et=(0,a.gn)([(0,r.wA)({components:{SessionExpiredError:We,ErrorMessage:ze,IconButton:Ae.Z,Icon:p.Z,IoTsError:Te,LoggedOutError:Se,Message:y,AjaxCodeError:j,NetworkError:ee,InternalServerError:fe,FriendlyMultiError:Dt}})],Et);const Tt=Et,At=Tt;var Mt=(0,v.Z)(At,l,c,!1,null,null,null);const Vt=Mt.exports;var Bt=n(85450),Ot=n(39664),Lt=n(5662);let $t=class extends i.ZP{get notifications(){return Bt.uiStore.notifications}dismissAll(){Ot.Z.dismissAll()}dismissNotification(e){Ot.Z.dismiss(e)}};$t=(0,a.gn)([(0,r.wA)({components:{RegeneratingCacheProgress:Lt.Z,NotificationViewer:Vt}})],$t);const zt=$t,Nt=zt;var Ht=(0,v.Z)(Nt,o,s,!1,null,null,null);const Rt=Ht.exports},5662:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=n(11302),s=n(55234),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.isCacheRegenerating?t("div",{staticClass:"breakdance-notification-error breakdance-notification-progress"},[t("div",{staticClass:"breakdance-notification-message"},[t("div",{staticClass:"breakdance-notification-message-body"},[e._v(" "+e._s(e.__("Regenerating caches. Leaving the page will stop the process."))+" ")]),t(o.Z,{attrs:{value:e.progress,color:"blue",rounded:"",indeterminate:0===e.progress}})],1),t(s.Z)],1):e._e()},i=[],r=n(70655),l=n(20144),c=n(38085),u=n(31044);let d=class extends l.ZP{constructor(){super(...arguments),this.initialTotalPostIdsLength=null}get isCacheRegenerating(){return!!u.kD.idsOfPostsToRegenerateCache}get progress(){if(!u.kD.idsOfPostsToRegenerateCache)return 0;const e=u.kD.idsOfPostsToRegenerateCache.length;return 0===e?(this.initialTotalPostIdsLength=null,0):(this.initialTotalPostIdsLength||(this.initialTotalPostIdsLength=e),100-e*Math.round(100/this.initialTotalPostIdsLength))}};d=(0,r.gn)([(0,c.wA)({})],d);const p=d,h=p;var g=n(1001),m=(0,g.Z)(h,a,i,!1,null,null,null);const v=m.exports},87934:(e,t,n)=>{"use strict";n.d(t,{Z:()=>kr});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:e.classList},[e.control.options.noLabel?e._e():t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[t("oxygen"===e.builderMode?"OxygenControlName":"span",{tag:"component",attrs:{filled:e.stylesPresent(e.path),path:e.path},on:{reset:e.clearStyles}},[e._v(" "+e._s(e.prependLabel)+e._s(e.control.label)+" ")]),e.stylesPresent(e.path)?t("IndicatorLight",{staticClass:"control-indicator-light",attrs:{path:e.path,control:e.control},on:{click:function(t){e.hoverEnabled=!1}}}):e._e()],1),t("div",{staticClass:"breakdance-control-modifiers"},[e.control.enableMediaQueries?t("ControlBreakpointChooser",{class:{"breakdance-only-on-hover":!0,"breakdance-only-on-hover-always-show":e.showModifiers},attrs:{path:e.path}}):e._e(),e.control.enableHover?t("HoverEnabler",{class:{"breakdance-only-on-hover":!0,"breakdance-only-on-hover-always-show":e.hoverEnabled},attrs:{enabled:e.hoverEnabled,hoverValuePresent:e.hoverValuePresent},on:{click:e.toggleHover}}):e._e(),e.dynamicAccepts?t("DynamicDataChooser",{class:{"breakdance-only-on-hover":!0,"breakdance-only-on-hover-always-show":!1},attrs:{accepts:e.dynamicAccepts,"pro-only":e.control.dynamic?.proOnly,value:e.dynamicFieldMeta},on:{input:e.dynamicDataChosen}}):e._e(),t("ComponentEditablePropertyToggle",{attrs:{path:e.path}}),e.aiModeForControl?t("InlineAi",{class:{"breakdance-only-on-hover":!0,"breakdance-only-on-hover-always-show":!1},attrs:{path:e.path,value:e.value,label:e.control.label,"css-mode":"css"===e.control.slug,mode:e.aiModeForControl},on:{insert:e.insertCompletion}}):e._e()],1)]),t("InputWrapper",{attrs:{control:e.control,path:e.fullPath,value:e.value,"previous-breakpoint-value":e.previousBreakpointValue,"dynamic-field":e.dynamicFieldMeta}})],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-control-wrapper-input-wrapper",attrs:{"data-test-id":e.testId}},[e.isDynamic?[t("DynamicInput",{attrs:{value:e.value,control:e.control,meta:e.dynamicField},on:{change:e.saveDynamicMetaData,input:e.edit,clear:e.clear}})]:"condition"===e.control.options.type?[t("ConditionInput",{attrs:{value:e.value},on:{input:e.edit}})]:"unit"===e.control.options.type?[t("UnitInput",{attrs:{value:e.value,placeholder:e.placeholder,options:e.control.options.unitOptions,"range-options":e.control.options.rangeOptions},on:{input:e.edit}})]:"dropdown"===e.control.options.type?[t("DropdownInput",{attrs:{value:e.value,path:e.path,items:e.control.options.items,placeholder:e.placeholder,"dropdown-options":e.control.options.dropdownOptions},on:{input:e.edit}})]:"multiselect"===e.control.options.type?[t("MultiselectInput",{attrs:{value:e.value,placeholder:e.placeholder,items:e.control.options.items,options:e.control.options.multiselectOptions,searchable:e.control.options.searchable},on:{input:e.edit}})]:"button_bar"===e.control.options.type?[t("ButtonBarInput",{attrs:{value:e.value,placeholder:e.placeholder,items:e.control.options.items,options:e.control.options.buttonBarOptions},on:{input:e.edit}})]:"font_family"===e.control.options.type?[t("FontFamilyInput",{attrs:{value:e.value,placeholder:e.placeholder},on:{input:e.edit}})]:"color"===e.control.options.type?[t("ColorInput",{attrs:{value:e.value,placeholder:e.placeholder,"color-options":e.control.options.colorOptions},on:{input:e.edit}})]:"wpmedia"===e.control.options.type?[t("WPMediaInput",{attrs:{value:e.value,"media-options":e.control.options.mediaOptions},on:{input:e.edit}})]:"element_screenshot"===e.control.options.type?[t("ElementScreenshot",{attrs:{value:e.value,controlType:e.control.options.controlType},on:{input:e.edit}})]:"text"===e.control.options.type?[t("TextInput",{attrs:{value:e.value,placeholder:e.placeholder,multiline:e.control.options.textOptions?.multiline,validationFunctionName:e.control.options.textOptions?.validationFunctionName,"variable-items":e.control.options.variableItems,"variable-options":e.control.options.variableOptions,autofocus:e.control.options.autofocus,format:e.control.options.textOptions?.format},on:{input:e.edit}})]:"toggle"===e.control.options.type?[t("ToggleInput",{attrs:{value:e.value},on:{input:e.edit}})]:"spacing_complex"===e.control.options.type?[t("SpacingComplex",{attrs:{value:e.value,"show-variables":e.control.enableVariables,"accepts-variable":e.acceptsVariable,placeholder:e.placeholder},on:{input:e.edit}})]:"border_complex"===e.control.options.type?[t("BorderComplex",{attrs:{value:e.value,"accepts-variable":e.acceptsVariable},on:{input:e.edit}})]:"border_radius"===e.control.options.type?[t("BorderRadius",{attrs:{value:e.value,"accepts-variable":e.acceptsVariable},on:{input:e.edit}})]:"media_size_dropdown"===e.control.options.type?[t("MediaSizeInput",{attrs:{value:e.value,path:e.path,control:e.control,options:e.control.options.mediaSizeOptions},on:{input:e.edit}})]:"breakpoint_dropdown"===e.control.options.type?[t("BreakpointInput",{attrs:{value:e.value,breakpointOptions:e.control.options.breakpointOptions},on:{input:e.edit}})]:"code"===e.control.options.type?[t("CodeInput",{attrs:{value:e.value,placeholder:e.placeholder,language:e.control.options.codeOptions&&e.control.options.codeOptions.language,autofillOnEmpty:e.control.options.codeOptions&&e.control.options.codeOptions.autofillOnEmpty,tags:e.control.options.codeOptions?.tags},on:{input:e.edit}})]:"class"===e.control.options.type?[t("ClassInput",{attrs:{value:e.value},on:{input:e.edit}})]:"icon"===e.control.options.type?[t("IconInput",{attrs:{value:e.value,"icon-options":e.control.options.iconOptions},on:{input:e.edit}})]:"global_colors"===e.control.options.type?[t("GlobalColorsInput",{attrs:{value:e.value,options:e.control.options.globalColorOptions},on:{input:e.edit}})]:"override_variables"===e.control.options.type?[t("OverrideVariablesInput",{attrs:{value:e.value},on:{input:e.edit}})]:"global_block_chooser"===e.control.options.type?[t("GlobalBlockInput",{attrs:{value:e.value},on:{input:e.edit}})]:"component_chooser"===e.control.options.type?[t("ComponentInput",{attrs:{value:e.value,path:e.path},on:{input:e.edit}})]:"repeater"===e.control.options.type?[t("Repeater",{attrs:{control:e.control,value:e.value,path:e.path,createSnapshotWhenItemsListChanges:!0},on:{input:e.edit},scopedSlots:e._u([{key:"default",fn:function({index:n}){return[t("ControlsTree",{attrs:{controls:e.control.children,path:`${e.path}[${n}]`}})]}}])})]:"inline_repeater"===e.control.options.type?[t("InlineRepeater",{attrs:{createSnapshotWhenItemsListChanges:!0,control:e.control,value:e.value,path:e.path},on:{input:e.edit},scopedSlots:e._u([{key:"default",fn:function({index:n}){return[t("ControlsTree",{attrs:{controls:e.control.children,path:`${e.path}[${n}]`}})]}}])})]:"gradient"===e.control.options.type?[t("ColorInput",{attrs:{value:e.value,"color-options":{type:"gradientOnly"}},on:{input:e.edit}})]:"shadow"===e.control.options.type?[t("ShadowInput",{attrs:{value:e.value,"shadow-options":e.control.options.shadowOptions},on:{input:e.edit}})]:"message"===e.control.options.type?[t("MessageControl",{attrs:{text:e.control.options.messageOptions&&e.control.options.messageOptions.text}})]:"url"===e.control.options.type?[t("URLInput",{attrs:{value:e.value},on:{input:e.edit}})]:"focus_point"===e.control.options.type?[t("FocusPointInput",{attrs:{value:e.value,options:e.control.options.focusPointOptions},on:{input:e.edit}})]:"richtext"===e.control.options.type?[t("RichTextInput",{attrs:{value:e.value,"variable-items":e.control.options.variableItems,"variable-options":e.control.options.variableOptions},on:{input:e.edit}})]:"number"===e.control.options.type?[t("NumberInput",{attrs:{value:e.value,"range-options":e.control.options.rangeOptions},on:{input:e.edit}})]:"typography"===e.control.options.type?[t("TypographyInput",{attrs:{value:e.value,path:e.path,options:e.control.options.typographyOptions},on:{input:e.edit}})]:"custom_typography"===e.control.options.type?[t("CustomTypographyInput",{attrs:{value:e.value,path:e.path,options:e.control.options.customTypographyOptions},on:{input:e.edit}})]:"typography_preset"===e.control.options.type?[t("TypographyPresetLabelAndIdInput",{attrs:{value:e.value},on:{input:e.edit}})]:"button_preset"===e.control.options.type?[t("ButtonPresetInput",{attrs:{value:e.value},on:{input:e.edit}})]:"video"===e.control.options.type?[t("VideoInput",{attrs:{value:e.value,options:e.control.options.videoOptions,autofocus:e.control.options.autofocus},on:{input:e.edit}})]:"link"===e.control.options.type?[t("LinkInput",{attrs:{value:e.value,options:e.control.options.linkOptions},on:{input:e.edit}})]:"post_chooser"===e.control.options.type?[t("PostChooserInput",{attrs:{value:e.value,options:e.control.options.postChooserOptions},on:{input:e.edit}})]:"slider"===e.control.options.type?[t("SliderInput",{attrs:{value:e.value,"range-options":e.control.options.rangeOptions},on:{input:e.edit}})]:"wp_query"===e.control.options.type?[t("WpQueryControl",{attrs:{value:e.value,options:e.control.options.queryOptions},on:{input:e.edit}})]:"add_registered_children"===e.control.options.type?[t("AddRegisteredChildrenControl",{attrs:{options:e.control.options.addRegisteredChildrenOptions}})]:"api_key_input"===e.control.options.type?[t("ApiKeyInput",{attrs:{value:e.value,options:e.control.options.apiKeyOptions},on:{input:e.edit}})]:"trigger_action_button"===e.control.options.type?[t("TriggerActionButton",{attrs:{options:e.control.options.triggerActionsButtonOptions,path:e.path}})]:"builder_behavior"===e.control.options.type?[t("BuilderBehaviorInput",{attrs:{value:e.value},on:{input:e.edit}})]:"alert_box"===e.control.options.type?[t("AlertBox",{attrs:{options:e.control.options.alertBoxOptions}})]:"pro_only_alert_box"===e.control.options.type?[t("ProOnlyAlertBox",{attrs:{options:e.control.options.alertBoxOptions}})]:"date_picker"===e.control.options.type?[t("DatePickerInput",{attrs:{value:e.value,options:e.control.options.datePickerOptions},on:{input:e.edit}})]:"time_picker"===e.control.options.type?[t("TimePickerInput",{attrs:{value:e.value},on:{input:e.edit}})]:"conditional_form_field"===e.control.options.type?[t("ConditionalFormFieldInput",{attrs:{"dropdown-options":e.control.options.dropdownOptions,value:e.value,fieldId:e.parent&&e.parent.id?e.parent.id:null},on:{input:e.edit}})]:"interactions"===e.control.options.type?[t("InteractionsInput",{attrs:{path:e.path,control:e.control,value:e.value},on:{input:e.edit}})]:[t("TextInput",{attrs:{value:e.value,placeholder:e.placeholder},on:{input:e.edit}})]],2)},c=[],u=n(41571),d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-breakpoint-input"},[e.multiple?t("MultiselectInput",{attrs:{items:e.items,value:e.value,clearable:!1,placeholder:e.multiple?e.__("Choose Breakpoints"):e.__("Choose a Breakpoint")},on:{input:e.edit}}):t("DropdownInput",{attrs:{items:e.items,value:e.value},on:{input:e.edit}})],1)},p=[],h=n(85450),g=n(83312),m=n(84336),v=n(36055);let f=class extends i.ZP{get multiple(){return this.breakpointOptions.multiple}get includeNever(){return this.breakpointOptions.enableNever}get items(){const e=h.uiStore.settings.includeCustomBreakpointsInBreakpointsDropdown&&!this.breakpointOptions.banCustomBreakpoints,t=(e?h.configStore.breakpoints:h.configStore.builtinBreakpoints).map((e=>({text:e.label,value:e.id})));return this.includeNever&&!this.multiple&&t.push({text:(0,v.__)("Never"),value:"never"}),t}edit(e){this.$emit("input",e||"")}};(0,a.gn)([(0,r.fI)()],f.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default:()=>({})})],f.prototype,"breakpointOptions",void 0),f=(0,a.gn)([(0,r.wA)({components:{DropdownInput:m.Z,MultiselectInput:g.Z}})],f);const y=f,b=y;var _=n(1001),I=(0,_.Z)(b,d,p,!1,null,null,null);const w=I.exports;var x=n(82542),S=n(56823),C=n(44762),k=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"d-flex flex-column mt-2"},[t("ConditionsPreview",{attrs:{value:e.value}}),t("ConditionsModal",{attrs:{value:e.value},on:{input:function(t){return e.edit(t)}}})],1)},P=[],Z=n(23128),D=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"conditions-modal"},[t("Dialog",{attrs:{width:800,sticky:!0,closeable:!0,"content-class":"conditions-modal-dialog"},on:{close:e.saveChanges,"click:outside":e.saveChanges},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[t("NiceButton",e._g(e._b({attrs:{"data-test-id":"edit-conditions-button"}},"NiceButton",o,!1),n),[e._v(" "+e._s(e.__("Edit Conditions"))+" ")])]}},{key:"title",fn:function(){return[e._v(" "+e._s(e.__("Conditions"))+" ")]},proxy:!0},{key:"text",fn:function(){return[t("FreeModeAlertForConditionsUsed",{attrs:{value:e.internalValue,"available-conditions":e.availableConditions}}),e.internalValue.length?t("ConditionsMatrix",{attrs:{value:e.internalValue,availableConditions:e.availableConditions,"template-types":[e.postType]},on:{input:e.update}}):t("div",{staticClass:"conditions-modal-empty"},[t("Icon",{staticClass:"conditions-modal-empty-icon",attrs:{icon:"ConditionsIcon",size:"60"}}),t("h3",{staticClass:"conditions-modal-empty-title"},[e._v(e._s(e.__("No conditions yet.")))]),t("NiceButton",{staticClass:"breakdance-condition-matrix__add-condition",attrs:{outlined:"",text:"","left-icon":"PlusIcon"},on:{click:e.addFirstCondition}},[e._v(" "+e._s(e.__("Add Condition"))+" ")])],1)]},proxy:!0},{key:"actions",fn:function(){return[t("NiceButton",{attrs:{color:"primary","data-test-id":"apply-conditions-button"},on:{click:e.saveChanges}},[e._v(" "+e._s(e.__("Apply Conditions"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(t){e.open=t},expression:"open"}})],1)},E=[],T=n(63292),A=n(85283),M=n(79333),V=n(22608),B=n(89137),O=n(31873),L=n(15584);let $=class extends i.ZP{constructor(){super(...arguments),this.open=!1,this.internalValue=this.value?(0,Z.Z)(this.value):[]}get conditions(){return h.configStore.conditions}get availableConditions(){const e=(0,T.nt)(this.conditions,this.postType);return(0,T.jp)(e,[this.postType]).filter((e=>e.supports.includes("element_display")))}get postType(){return h.documentStore.document.documentMeta.templateSettingsType||h.documentStore.document.documentMeta.postType}update(e){this.internalValue=e}clear(){this.update([]),this.saveChanges()}saveChanges(){this.close();const e=(0,T.ar)(this.internalValue);this.internalValue=e,this.$emit("input",e)}addFirstCondition(){const e=(0,Z.Z)(this.internalValue);e.push([{}]),this.update(e)}close(){this.open=!1}};(0,a.gn)([(0,r.fI)()],$.prototype,"value",void 0),$=(0,a.gn)([(0,r.wA)({components:{FreeModeAlertForConditionsUsed:L.Z,NiceButton:M.Z,Icon:A.Z,Dialog:B.Z,IconButton:V.Z,ConditionsMatrix:O.Z}})],$);const z=$,N=z;var H=(0,_.Z)(N,D,E,!1,null,null,null);const R=H.exports;var G=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e._l(e.value,(function(n,o){return[t("div",{staticClass:"condition-preview"},[o>0?t("span",{staticClass:"condition-preview-or-separator"},[t("span",[e._v("OR")])]):e._e(),t("div",{staticClass:"condition-preview-group"},e._l(n,(function(e,n){return t("ConditionPreviewRule",{key:n,attrs:{rule:e,index:n}})})),1)])]}))],2)},F=[],U=n(89680);let W=class extends i.ZP{edit(e){this.$emit("input",(0,Z.Z)(e))}};(0,a.gn)([(0,r.fI)()],W.prototype,"value",void 0),W=(0,a.gn)([(0,r.wA)({components:{ConditionPreviewRule:U.Z,Icon:A.Z}})],W);const j=W,X=j;var q=(0,_.Z)(X,G,F,!1,null,null,null);const K=q.exports;let Y=class extends i.ZP{edit(e){this.$emit("input",(0,Z.Z)(e))}};(0,a.gn)([(0,r.fI)()],Y.prototype,"value",void 0),Y=(0,a.gn)([(0,r.wA)({components:{ConditionsModal:R,ConditionsPreview:K}})],Y);const J=Y,Q=J;var ee=(0,_.Z)(Q,k,P,!1,null,null,null);const te=ee.exports;var ne=n(40616),oe=n(37179),se=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"container",staticClass:"breakdance-spacing-complex-input"},[t("div",{staticClass:"breakdance-spacing-complex-input-top"},[t("VariableBoundInput",{attrs:{value:e.getValueForSide("top"),name:"Spacing",type:"unit",small:!0,disabled:!e.acceptsVariable},on:{input:function(t){return e.edit(t,"top")}}},[t("UnitInput",{attrs:{value:e.getValueForSide("top"),options:e.unitOptions,placeholder:e.placeholder?.top},on:{input:function(t){return e.edit(t,"top")},focus:function(t){return e.setLastTouchedSpacingInput("top")}}})],1)],1),t("div",{staticClass:"breakdance-spacing-complex-input-middle"},[t("VariableBoundInput",{attrs:{value:e.getValueForSide("left"),name:"Spacing",type:"unit",small:!0,disabled:!e.acceptsVariable},on:{input:function(t){return e.edit(t,"left")}}},[t("UnitInput",{attrs:{value:e.getValueForSide("left"),options:e.unitOptions,placeholder:e.placeholder?.left},on:{input:function(t){return e.edit(t,"left")},focus:function(t){return e.setLastTouchedSpacingInput("left")}}})],1),t("VariableBoundInput",{attrs:{value:e.getValueForSide("right"),name:"Spacing",type:"unit",small:!0,disabled:!e.acceptsVariable},on:{input:function(t){return e.edit(t,"right")}}},[t("UnitInput",{attrs:{value:e.getValueForSide("right"),options:e.unitOptions,placeholder:e.placeholder?.right},on:{input:function(t){return e.edit(t,"right")},focus:function(t){return e.setLastTouchedSpacingInput("right")}}})],1)],1),t("div",{staticClass:"breakdance-spacing-complex-input-bottom"},[t("VariableBoundInput",{attrs:{value:e.getValueForSide("bottom"),name:"Spacing",type:"unit",small:!0,disabled:!e.acceptsVariable},on:{input:function(t){return e.edit(t,"bottom")}}},[t("UnitInput",{attrs:{value:e.getValueForSide("bottom"),options:e.unitOptions,placeholder:e.placeholder?.bottom},on:{input:function(t){return e.edit(t,"bottom")},focus:function(t){return e.setLastTouchedSpacingInput("bottom")}}})],1)],1),t("div",{staticClass:"mt-1"},[t(oe.Z,{attrs:{text:!e.applyToAll,"x-small":"",color:""+(e.applyToAll?"var(--blue500)":"var(--gray500)"),depressed:"",outlined:e.applyToAll},on:{click:e.toggleApplyToAll}},[e._v(" "+e._s(e.__("Apply All (=)"))+" ")])],1)])},ae=[],ie=n(16795),re=n(71657);const le=["left","right","top","bottom"];let ce=class extends i.ZP{constructor(){super(...arguments),this.applyToAll=!1,this.lastTouchedSpacingInput="top"}get unitOptions(){return{types:ie.LF}}getValueForSide(e){return this.value&&e in this.value?this.value[e]:null}edit(e,t){if(this.lastTouchedSpacingInput=t,this.applyToAll)this.applyUnitInputValueToAllAndEmit(e);else{const n={...this.value,[t]:e};this.$emit("input",n)}}toggleApplyToAll(){this.applyToAll=!this.applyToAll,this.applyToAll&&this.applyUnitInputValueToAllAndEmit(this.value?.[this.lastTouchedSpacingInput])}setLastTouchedSpacingInput(e){this.lastTouchedSpacingInput=e}applyUnitInputValueToAllAndEmit(e){const t={};le.forEach((n=>{t[n]=e})),this.$emit("input",t)}maybeToggleAll(e){if("="!==e.key)return;const t=this.$refs.container;t.contains(document.activeElement)&&(e.preventDefault(),this.toggleApplyToAll())}mounted(){window.addEventListener("keydown",this.maybeToggleAll)}beforeDestroy(){window.removeEventListener("keydown",this.maybeToggleAll)}};(0,a.gn)([(0,r.fI)({default:null})],ce.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default:!1})],ce.prototype,"acceptsVariable",void 0),(0,a.gn)([(0,r.fI)()],ce.prototype,"placeholder",void 0),ce=(0,a.gn)([(0,r.wA)({components:{VariableBoundInput:re.Z,UnitInput:S.Z}})],ce);const ue=ce,de=ue;var pe=(0,_.Z)(de,se,ae,!1,null,null,null);const he=pe.exports;var ge=n(71821),me=n(19499),ve=n(81252),fe=n(50219),ye=n(41779),be=n(82202),_e=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"d-flex breakdance-class-input-wrapper flex-column"},[e.selectors.length?t("FreeModeAlertForSelectors",{staticClass:"my-1"}):e._e(),e.selectors.length?t("SelectorsList",{attrs:{selectors:e.selectors,searchable:!1},on:{input:e.updateClasses}}):e._e(),t("AddClass",{attrs:{existingClasses:e.internalValue},on:{input:e.addClass}}),e.missingSelectors.length>0?t(be.Z,{staticClass:"mt-2",staticStyle:{"font-size":"var(--text-xs)"},attrs:{dense:"",outlined:"",color:"orange"}},[t("span",{domProps:{innerHTML:e._s(e.missingSelectorsMessage)}}),t("span",{staticStyle:{display:"none"},on:{click:e.refreshClasses}})]):e._e()],1)},Ie=[],we=n(35097),xe=n(1387),Se=n(11193),Ce=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"mt-2"},[t("div",{staticClass:"breakdance-class-input-search d-flex flex-row",attrs:{id:"breakdance-class-input-search"}},[t(xe.Z,{staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{items:e.items,"search-input":e.newClassName,placeholder:e.__(".my-cool-class"),"append-icon":"","hide-no-data":"",dense:"",solo:"",flat:"","no-filter":"","menu-props":{closeOnContentClick:!0},autofocus:e.autofocus},on:{change:e.addClass,"update:searchInput":function(t){e.newClassName=t},"update:search-input":function(t){e.newClassName=t},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onEnter(e.newClassName)},"update:list-index":e.onListIndexUpdate,blur:function(t){e.autocompleteListIndex=-1}},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t(Se.km,[t(Se.V9,{domProps:{innerHTML:e._s(n.text)}})],1)]}}])}),t("NiceButton",{staticClass:"ml-1",attrs:{size:"small"},on:{click:function(t){return e.addClass(e.newClassName)}}},[e._v(" "+e._s(e.__("Add"))+" ")])],1)])},ke=[],Pe=n(15133);let Ze=class extends i.ZP{constructor(){super(...arguments),this.newClassName=null,this.autocompleteListIndex=-1,this.autofocus=!1}get allClasses(){return h.globalStore.cssSelectors.filter((e=>"class"===e.type))}beforeMount(){"pending"===h.uiStore.keyboardTriggeredActions.openClassesDropdown&&(this.autofocus=!0,h.uiStore.setKeyboardTriggeredActions({...h.uiStore.keyboardTriggeredActions,openClassesDropdown:null}))}get newClassNameAlreadyExists(){return!!this.allClasses.find((e=>e.name===this.newClassName||e.name===`.${this.newClassName}`))}get items(){const e=[];if(!this.newClassNameAlreadyExists&&this.newClassName){const t=this.newClassName.replace(".",""),n=`.${t}`;e.push({text:(0,v.gB)((0,v.TZ)("Create %s","%s: CSS class name"),n),value:this.newClassName})}return this.autocompleteClassNames.length>0&&(e.push({header:(0,v.__)("Existing Classes")}),e.push(...this.autocompleteClassNames)),e}addClass(e){this.newClassName=null,e&&(this.$emit("input",e),this.autocompleteListIndex=-1)}get autocompleteClassNames(){const e=e=>!this.newClassName||e.name.includes(this.newClassName),t=e=>!this.existingClasses.includes(e.name);return this.allClasses.filter(e).filter(t).map((e=>({text:e.name,value:e.name})))}onEnter(e){-1===this.autocompleteListIndex&&this.addClass(e)}onListIndexUpdate(e){this.autocompleteListIndex=e}};(0,a.gn)([(0,r.fI)()],Ze.prototype,"existingClasses",void 0),Ze=(0,a.gn)([(0,r.wA)({components:{Dropdown:Pe.Z,NiceButton:M.Z,TextInput:u.Z}})],Ze);const De=Ze,Ee=De;var Te=(0,_.Z)(Ee,Ce,ke,!1,null,null,null);const Ae=Te.exports;var Me=n(37982),Ve=n(11987),Be=n(39664),Oe=n(2028),Le=n(45713);let $e=class extends i.ZP{get internalValue(){return(this.value?this.value:[]).map((e=>"."+e))}get cssClasses(){return h.globalStore.cssSelectors}get selectors(){return this.internalValue.reduce(((e,t)=>{const n=this.cssClasses.find((e=>e.name===t));return n?[...e,n]:[...e]}),[])}get missingSelectorsMessage(){return(0,v.gB)((0,v.vM)("%s is assigned to this element but is no longer present on the site. Remove it by clicking here or editing the class list.","%s are assigned to this element but are no longer present on the site. Remove them by clicking here or editing the class list.",this.missingSelectors.length,"%s: CSS class name(s)"),this.missingSelectorsFriendly)}get missingSelectorsFriendly(){return 1===this.missingSelectors.length?this.missingSelectors[0]:`${this.missingSelectors.slice(0,-1).join(", ")} and ${this.missingSelectors.slice(-1)}`}get missingSelectors(){const e=this.internalValue.reduce(((e,t)=>{const n=this.cssClasses.find((e=>e.name===t));return n?[...e]:[...e,t]}),[]);return(0,Ve.OF)(e)}addClass(e){let t=(0,Z.Z)(this.internalValue);const n=e.startsWith(".")?e:`.${e}`;(0,Me.y8)(n)?(t=t.filter((e=>this.cssClasses.find((t=>t.name===e)))),t.find((e=>e===n))?Be.Z.log.message((0,v.gB)((0,v.TZ)("%s is already present on the element.","%s: CSS class name"),n)):(this.cssClasses.find((e=>e.name===n))||(0,Me.Fr)({name:n,type:"class",properties:{}}),this.emit([...t,n]))):Be.Z.log.message((0,v.gB)((0,v.__)('"%s" is not a valid class name.'),n))}updateClasses(e){const t=e.map((e=>e.name));this.emit(t)}refreshClasses(){const e=this.selectors.map((e=>e.name));this.emit(e)}emit(e){const t=Array.from(new Set(e)).map((e=>e.substr(1)));this.$emit("input",t)}};(0,a.gn)([(0,r.fI)()],$e.prototype,"value",void 0),$e=(0,a.gn)([(0,r.wA)({components:{FreeModeAlertForSelectors:Le.Z,AlertBox:Oe.Z,SelectorsList:we.Z,AddClass:Ae}})],$e);const ze=$e,Ne=ze;var He=(0,_.Z)(Ne,_e,Ie,!1,null,null,null);const Re=He.exports;var Ge=n(77963),Fe=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-global-block-input d-flex flex-column"},[t(xe.Z,{staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{items:e.items,dense:"",solo:"",flat:"",filled:"",value:e.value,loading:e.loading,placeholder:e.sprintf(e._doc("Choose a %s","%s: Global block label"),e.$bdox("global_block"))},on:{input:e.edit},scopedSlots:e._u([{key:"prepend-inner",fn:function(){return[t("span",{staticClass:"breakdance-global-block-input__icon"},[t("Icon",{attrs:{icon:"GlobeIcon",size:"16"}})],1)]},proxy:!0}])}),e.value?t("div",{staticClass:"breakdance-global-block-input__action"},[t("NiceButton",{attrs:{href:e.blockDocumentHref,disabled:e.isEditDisabled,small:""},on:{click:e.toggleInlineEdit}},[e.isInlineEditing?[e._v(e._s(e.__("Stop Editing")))]:[e._v(" "+e._s(e.sprintf(e._xdoc("Edit %s","Global Block","%s: Global block label"),e.$bdox("global_block"))))]],2),t("NiceButton",{attrs:{small:"",href:e.blockDocumentHref,target:"_blank"}},[t("Icon",{attrs:{icon:"ShareFromSquareIcon",size:"12"}})],1)],1):e._e()],1)},Ue=[],We=n(87615),je=n(63085),Xe=n(87950);let qe=class extends i.ZP{constructor(){super(...arguments),this.loading=!1}get allBlocks(){return h.configStore.globalBlocks}get selectedBlock(){return this.allBlocks.find((e=>e.id===this.value))}get items(){return this.allBlocks.map((e=>({text:`${e.label} ${!1===e.tree?(0,v.__)("(Empty)"):""}`,value:e.id})))}get element(){return h.uiStore.activeElement}get baseElement(){return this.element?h.configStore.element(this.element.data.type):null}get blockDocumentHref(){return!!this.value&&(0,je.UH)(this.value)}get context(){return h.uiStore.inlineEditingContext}get isEditDisabled(){return!(!this.loading||this.selectedBlock)||!this.blockDocumentHref}get isInlineEditing(){return this.context?.blockId===this.value&&this.context?.elementId===h.uiStore.activeElementId}get canEditInline(){return!!this.selectedBlock&&((!this.context?.blockId||this.context?.blockId===this.value)&&!!this.baseElement?.nestingRule.inlineEditable)}async loadBlocks(){await(0,We.DQ)(),this.loading=!1}edit(e){(0,Xe.Uw)(),e||(e=""),this.$emit("input",e)}toggleInlineEdit(e){if(this.isInlineEditing)e.preventDefault(),(0,Xe.Uw)();else if(this.canEditInline){if(e.ctrlKey||e.metaKey)return;e.preventDefault(),(0,Xe.B7)({elementId:h.uiStore.activeElementId,blockId:this.value})}}onVisibilityChange(){document.hidden||this.loadBlocks()}mounted(){this.loading=!0,this.loadBlocks(),document.addEventListener("visibilitychange",this.onVisibilityChange,!1)}beforeDestroy(){document.removeEventListener("visibilitychange",this.onVisibilityChange,!1)}};(0,a.gn)([(0,r.fI)()],qe.prototype,"value",void 0),qe=(0,a.gn)([(0,r.wA)({components:{NiceButton:M.Z,Icon:A.Z}})],qe);const Ke=qe,Ye=Ke;var Je=(0,_.Z)(Ye,Fe,Ue,!1,null,null,null);const Qe=Je.exports;var et=n(25135),tt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-component-input d-flex flex-column"},[t(et.Z,{staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{items:e.items,dense:"",solo:"",flat:"",filled:"",value:e.value?e.value.componentId:void 0,loading:e.loading,placeholder:e.__("Choose a Component")},on:{input:e.edit},scopedSlots:e._u([{key:"prepend-inner",fn:function(){return[t("span",{staticClass:"breakdance-component-input__icon"},[t("Icon",{attrs:{icon:"GlobeIcon",size:"14"}})],1)]},proxy:!0},{key:"append",fn:function(){return[t("Icon",{attrs:{icon:"ChevronDownIcon",size:10}})]},proxy:!0}])}),e.value?[t("div",{staticClass:"breakdance-component-input__action"},[t("NiceButton",{attrs:{href:e.componentDocumentHref,disabled:e.isEditDisabled,small:""},on:{click:e.toggleInlineEdit}},[e.isInlineEditing?[e._v(e._s(e.__("Stop Editing")))]:[e._v(e._s(e.__("Edit Component")))]],2),t("NiceButton",{staticClass:"breakdance-component-input__new-tab-btn",attrs:{small:"",href:e.componentDocumentHref,target:"_blank"}},[t("Icon",{attrs:{icon:"ShareFromSquareIcon",size:"12"}})],1),t("NiceButton",{attrs:{small:""},on:{click:e.reloadBlocks}},[t("Icon",{attrs:{icon:"RotateIcon",size:"12"}})],1)],1)]:e._e(),e.value?[t("ControlsTree",{attrs:{controls:e.componentControls,path:`${e.path}.properties`,"allow-popouts-in-root":!0}}),e.componentsFutureFunctionality?[t("NiceButton",{staticClass:"mb-2",on:{click:e.togglePropertyKeys}},[e._v(e._s(e.__("Show Property Keys")))]),e.showPropertyKeys?t("div",{staticStyle:{"font-size":"11px","font-family":"monospace","user-select":"text"}},[e._v(" "+e._s(e.value.properties)+" ")]):e._e()]:e._e()]:e._e()],2)},nt=[],ot=n(18446),st=n.n(ot),at=n(37220);let it=class extends i.ZP{constructor(){super(...arguments),this.loading=!1,this.componentsFutureFunctionality=!1,this.showPropertyKeys=!1}beforeCreate(){this.$options.components.ControlsTree=n(20951)["default"]}reloadBlocks(){this.loading=!0,this.loadBlocks()}async loadBlocks(){await(0,We.DQ)(),this.loading=!1,this.recalculateTargets()}recalculateTargets(){if(this.value?.componentId){const e=this.makeTargets(this.value.componentId),t=!st()(this.value.targets,e);if(!t)return;this.$emit("input",{...this.value,targets:e})}}get allComponents(){return h.configStore.globalBlocks}get selectedComponent(){return this.allComponents.find((e=>e.id===this.value?.componentId))}get items(){return this.allComponents.map((e=>({text:e.label,value:e.id})))}get element(){return h.uiStore.activeElement}get baseElement(){return this.element?h.configStore.element(this.element.data.type):null}get componentDocumentHref(){return!!this.value?.componentId&&(0,je.UH)(this.value.componentId)}get context(){return h.uiStore.inlineEditingContext}get isEditDisabled(){return!(!this.loading||this.selectedComponent)||!this.componentDocumentHref}get isInlineEditing(){return this.context?.blockId===this.value?.componentId&&this.context?.elementId===h.uiStore.activeElementId}get canEditInline(){return!!this.selectedComponent&&((!this.context?.blockId||this.context?.blockId===this.value?.componentId)&&!!this.baseElement?.nestingRule.inlineEditable)}get componentControls(){const e=h.configStore.globalBlocks.find((e=>e.id===this.value?.componentId));return e&&e.tree?(0,at.A7)(e.tree):[]}makeTargets(e){const t=h.configStore.globalBlocks.find((t=>t.id===e));return t&&t.tree?(0,at.nb)(t.tree):[]}edit(e){const t=Number(e||""),n=this.makeTargets(t);this.$emit("input",{...this.value,componentId:t,targets:n})}togglePropertyKeys(){this.showPropertyKeys=!this.showPropertyKeys}toggleInlineEdit(e){if(this.isInlineEditing)e.preventDefault(),(0,Xe.Uw)();else if(this.canEditInline){if(e.ctrlKey||e.metaKey)return;e.preventDefault(),this.value?.componentId&&(0,Xe.B7)({elementId:h.uiStore.activeElementId,blockId:this.value?.componentId})}}onVisibilityChange(){document.hidden||this.loadBlocks()}mounted(){this.loading=!0,this.loadBlocks(),document.addEventListener("visibilitychange",this.onVisibilityChange,!1)}beforeDestroy(){document.removeEventListener("visibilitychange",this.onVisibilityChange,!1)}};(0,a.gn)([(0,r.fI)()],it.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],it.prototype,"path",void 0),it=(0,a.gn)([(0,r.wA)({components:{Icon:A.Z,NiceButton:M.Z}})],it);const rt=it,lt=rt;var ct=(0,_.Z)(lt,tt,nt,!1,null,null,null);const ut=ct.exports;var dt=n(12570),pt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"rich-text-input"},[t("div",{staticClass:"rich-text-input__toggle-edit",on:{click:e.openDialog}},[t("Icon",{attrs:{icon:"ExpandIcon",size:"12"}})],1),e.isEmpty?e._e():t("div",{staticClass:"breakdance-white-gray-outlined-input rich-text-input__wrapper tip-tap-default-styling",domProps:{innerHTML:e._s(e.value)},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.openDialog.apply(null,arguments)}}}),e.isEmpty?t("div",{staticClass:"breakdance-white-gray-outlined-input rich-text-input__wrapper",on:{click:e.openDialog}},[t("span",{staticClass:"rich-text-input__placeholder"},[e._v(" "+e._s(e.__("Click here to edit content"))+" ")])]):e._e(),"tiptap"==e.mode?t(dt.Z,{attrs:{"max-width":"800"},model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[e.dialog?t("RichTextInputDialog",{attrs:{value:e.value,open:e.dialog,"variable-items":e.variableItems,"variable-options":e.variableOptions},on:{input:e.updateValue,close:e.closeDialog}}):e._e()],1):"tinymce"==e.mode?t(dt.Z,{attrs:{"max-width":"800"},model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[e.dialog?t("RichTextInputTinyMceDialog",{attrs:{value:e.value,open:e.dialog},on:{input:e.updateValue,close:e.closeDialog}}):e._e()],1):e._e()],1)},ht=[],gt=n(73385),mt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(gt.Z,{staticClass:"tip-tap-dialog"},[t("TipTapWrapper",{attrs:{value:e.value},on:{input:e.edit},scopedSlots:e._u([{key:"toolbar",fn:function({editor:n}){return[t("div",{ref:"container"},[t("span",{staticClass:"control-section-as-popout-label"},[e._t("title")],2),t("VariablesDropdown",{staticClass:"ml-2",attrs:{options:e.variableOptions,variables:e.variableItems},on:{input:function(t){return e.insertVariable(n,t)}}})],1),t(oe.Z,{staticClass:"ml-auto",attrs:{icon:""},on:{click:e.closeDialog}},[t("Icon",{attrs:{icon:"CloseIcon",size:"18"}})],1)]}}],null,!0)})],1)},vt=[],ft=n(7094),yt=n(31557);let bt=class extends i.ZP{edit(e){this.$emit("input",e||null)}closeDialog(){this.$emit("close")}insertVariable(e,t){e.commands.insertContent(`{${t}}`)}};(0,a.gn)([(0,r.fI)({default:""})],bt.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],bt.prototype,"open",void 0),(0,a.gn)([(0,r.fI)()],bt.prototype,"variableOptions",void 0),(0,a.gn)([(0,r.fI)({default:()=>[]})],bt.prototype,"variableItems",void 0),bt=(0,a.gn)([(0,r.wA)({components:{Icon:A.Z,Dropdown:Pe.Z,TipTapWrapper:ft.Z,VariablesDropdown:yt.Z}})],bt);const _t=bt,It=_t;var wt=(0,_.Z)(It,mt,vt,!1,null,null,null);const xt=wt.exports;var St=n(18236),Ct=n(56275),kt=n(99868),Pt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(dt.Z,{attrs:{value:e.open,"max-width":"100%",width:"900","max-height":"90vh","content-class":"breakdance-tinymce-dialog "+(e.expanded?"breakdance-tinymce-dialog--expanded":"")},on:{input:e.closeDialog}},[e.open?[t(kt.Z,{staticClass:"breakdance-tinymce-dialog-inner",attrs:{tile:""}},[t(St.Z,{attrs:{value:e.loading,opacity:"1",absolute:"",color:"var(--white)"}},[t(Ct.Z,{attrs:{indeterminate:"",size:"64",color:"var(--black)"}})],1),t("iframe",{ref:"iframe",attrs:{src:e.tinyMceUrl}})],1)]:e._e()],2)},Zt=[],Dt=n(65669),Et=n(3735),Tt=n(48973);let At=class extends i.ZP{constructor(){super(...arguments),this.loading=!0,this.expanded=!1}get tinyMceUrl(){return h.configStore.neededData?h.configStore.neededData.tinyMceUrl:""}onDialogUpdated(){this.open?(this.bindListeners(),this.loading=!0):this.unbindListeners()}beforeDestroy(){this.unbindListeners()}bindListeners(){document.addEventListener("breakdanceTinyMceControlReady",this.onDialogReady),document.addEventListener("breakdanceTinyMceControlInput",this.onTinyMceControlInput),document.addEventListener("breakdanceTinyMceControlExpand",this.expand),document.addEventListener("breakdanceTinyMceControlCollapse",this.collapse)}unbindListeners(){document.removeEventListener("breakdanceTinyMceControlReady",this.onDialogReady),document.removeEventListener("breakdanceTinyMceControlInput",this.onTinyMceControlInput),document.removeEventListener("breakdanceTinyMceControlExpand",this.expand),document.removeEventListener("breakdanceTinyMceControlCollapse",this.collapse)}onTinyMceControlInput(e){e.detail&&this.$emit("input",e.detail)}onDialogReady(){this.loading=!1;const e=this.$refs.iframe,t={type:"breakdanceIframeMessage",value:this.value},n=(0,Et.zG)((0,Dt.J)(t),(0,Tt.g_)((()=>""),(e=>e)));e?.contentWindow?.postMessage(n)}expand(){this.expanded=!0}collapse(){this.expanded=!1}closeDialog(){this.$emit("close")}};(0,a.gn)([(0,r.fI)({default:!1})],At.prototype,"open",void 0),(0,a.gn)([(0,r.fI)()],At.prototype,"value",void 0),(0,a.gn)([(0,r.RL)("open",{immediate:!0})],At.prototype,"onDialogUpdated",null),At=(0,a.gn)([r.wA],At);const Mt=At,Vt=Mt;var Bt=(0,_.Z)(Vt,Pt,Zt,!1,null,null,null);const Ot=Bt.exports;var Lt=n(16734),$t=n(55735);let zt=class extends i.ZP{constructor(){super(...arguments),this.dialog=!1}get mode(){return this.variableOptions||this.variableItems?"tiptap":h.uiStore.settings.isTinyMcePreferredForRichText?"tinymce":"tiptap"}mounted(){Lt.uq.register($t.r.CMD_E,this.openDialog)}beforeDestroy(){Lt.uq.unbind($t.r.CMD_E)}closeDialog(){this.dialog=!1}openDialog(){this.dialog=!0}get isEmpty(){return void 0==this.value||""==this.value||"

"==this.value}updateValue(e){this.$emit("input",e)}};(0,a.gn)([(0,r.fI)({default:""})],zt.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],zt.prototype,"variableOptions",void 0),(0,a.gn)([(0,r.fI)()],zt.prototype,"variableItems",void 0),zt=(0,a.gn)([(0,r.wA)({components:{Icon:A.Z,RichTextInputDialog:xt,RichTextInputTinyMceDialog:Ot}})],zt);const Nt=zt,Ht=Nt;var Rt=(0,_.Z)(Ht,pt,ht,!1,null,null,null);const Gt=Rt.exports;var Ft=n(72252),Ut=n(89754),Wt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"global-colors"},[t("InlineRepeater",{attrs:{value:e.internalValue,control:e.control,"default-new-value":e.defaultNewValue},on:{input:function(t){return e.update(t)}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:o}){return[t("div",{staticClass:"breakdance-inline-repeater-item-control"},[t("TextInput",{staticClass:"breakdance-inline-repeater-input",attrs:{value:o.label},on:{input:function(t){return e.updateLabel(t,n)}}})],1),t("div",{staticClass:"breakdance-inline-repeater-item-control"},[t("ColorInput",{staticClass:"breakdance-inline-repeater-input",attrs:{value:o.value,position:"left","show-global":!1,small:!0,"color-options":{type:e.options.type}},on:{input:function(t){return e.updateValue(t,n)}}})],1)]}}])})],1)},jt=[],Xt=n(88615),qt=n(99926);let Kt=class extends i.ZP{constructor(){super(...arguments),this.control={options:{repeaterOptions:{buttonName:(0,v.gB)((0,v.H$)("Add %s","Color","%s: Color name"),this.options.name)}}}}get internalValue(){return this.value||[]}updateValue(e,t){const n=(0,Z.Z)(this.internalValue)||[];n[t].value=e,this.update(n)}updateLabel(e,t){const n=(0,Z.Z)(this.internalValue)||[];n[t].label=e??"",this.update(n)}get defaultNewValue(){const e=e=>(0,v.gB)((0,v.__)("%s #%s"),this.options.name,e);let t=0;do{t++;var n=e(t)}while(this.isLabelAlreadyUsed(n));return{cssVariableName:(0,Xt.dw)(n),label:n,value:null}}isLabelAlreadyUsed(e){return this.value.find((t=>t.label===e))}update(e){this.$emit("input",e)}remove(e){const t=(0,Z.Z)(this.internalValue)||[];t.splice(e,1),this.$emit("input",t)}};(0,a.gn)([(0,r.fI)({default(){return[]}})],Kt.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default(){return{type:"solidOnly",name:"Color"}}})],Kt.prototype,"options",void 0),Kt=(0,a.gn)([(0,r.wA)({components:{InlineRepeater:qt.Z,NiceButton:M.Z,Icon:A.Z,ColorInput:ge.Z,TextInput:u.Z}})],Kt);const Yt=Kt,Jt=Yt;var Qt=(0,_.Z)(Jt,Wt,jt,!1,null,null,null);const en=Qt.exports;var tn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-message-control",domProps:{innerHTML:e._s(e.text)}})},nn=[];let on=class extends i.ZP{};(0,a.gn)([(0,r.fI)({default:"provide a string to messageOptions.text"})],on.prototype,"text",void 0),on=(0,a.gn)([(0,r.wA)({components:{}})],on);const sn=on,an=sn;var rn=(0,_.Z)(an,tn,nn,!1,null,null,null);const ln=rn.exports;var cn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-shadow-input",class:`breakdance-shadow-input--${e.shadowOptions.type}`},[t("InlineRepeater",{attrs:{value:e.internalValue.shadows,control:e.control,"default-new-value":e.shadowDefault,dense:!0},on:{input:function(t){return e.update(t)}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:o}){return[t("div",{staticClass:"breakdance-inline-repeater-item-control"},[t("ColorInput",{staticClass:"breakdance-inline-repeater-input",attrs:{value:o.color,"show-input":!1},on:{input:function(t){return e.updateField(t,n,"color")}}})],1),t("div",{staticClass:"breakdance-inline-repeater-item-control"},[t("TextInput",{staticClass:"breakdance-inline-repeater-input",attrs:{value:o.x},on:{input:function(t){return e.updateField(t,n,"x")}}}),t("span",{staticClass:"breakdance-inline-repeater-item-label"},[e._v(e._s(e.__("X")))])],1),t("div",{staticClass:"breakdance-inline-repeater-item-control"},[t("TextInput",{staticClass:"breakdance-inline-repeater-input",attrs:{value:o.y},on:{input:function(t){return e.updateField(t,n,"y")}}}),t("span",{staticClass:"breakdance-inline-repeater-item-label"},[e._v(e._s(e.__("Y")))])],1),t("div",{staticClass:"breakdance-inline-repeater-item-control"},[t("TextInput",{staticClass:"breakdance-inline-repeater-input",attrs:{value:o.blur},on:{input:function(t){return e.updateField(t,n,"blur")}}}),t("span",{staticClass:"breakdance-inline-repeater-item-label"},[e._v(e._s(e.__("Blur")))])],1),"box"===e.shadowOptions.type?t("div",{staticClass:"breakdance-inline-repeater-item-control"},[t("TextInput",{staticClass:"breakdance-inline-repeater-input",attrs:{value:o.spread},on:{input:function(t){return e.updateField(t,n,"spread")}}}),t("span",{staticClass:"breakdance-inline-repeater-item-label"},[e._v(e._s(e.__("Spread")))])],1):e._e()]}}])})],1)},un=[],dn=n(32521);const pn=dn.jV([dn.dt({color:dn.G0([dn.Z_,dn.lB]),x:dn.G0([dn.Z_,dn.lB]),y:dn.G0([dn.Z_,dn.lB]),blur:dn.G0([dn.Z_,dn.lB])}),dn.r$({spread:dn.G0([dn.Z_,dn.lB]),position:dn.G0([dn.Z_,dn.lB])})]),hn=(dn.G0([dn.i0("text"),dn.i0("box")]),dn.jV([dn.dt({shadows:dn.IX(pn)}),dn.r$({style:dn.Z_})]));var gn=n(30902),mn=n(45974);let vn=class extends i.ZP{constructor(){super(...arguments),this.control={options:{repeaterOptions:{buttonName:(0,v.__)("Add Shadow")}}}}get internalValue(){const e={shadows:[],style:""};return(0,gn.pipe)(this.value,hn.decode,(0,mn.fold)((()=>e),(e=>e)))}get shadowDefault(){return{color:"#00000025",x:"5",y:"20",blur:"75",spread:"0",position:"outset"}}clear(){this.$emit("input",null)}update(e){if(!e.length)return void this.clear();const t=this.shadowsToCSS(e);this.$emit("input",{shadows:e,style:t})}updateField(e,t,n){const o=(0,Z.Z)(this.value.shadows)||[];o[t][n]=e,this.update(o)}shadowToCSS(e){const t=[e.x,e.y,e.blur,e.spread],n=[e.x,e.y,e.blur],o="px",s="box"==this.shadowOptions.type?t:n,a=s.map((e=>e||0)).map((e=>`${e}${o}`)).join(" ");return`${a} ${e.color}`}shadowsToCSS(e){return e.map(this.shadowToCSS).join(", ")}};(0,a.gn)([(0,r.fI)()],vn.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default(){return{type:"box"}}})],vn.prototype,"shadowOptions",void 0),vn=(0,a.gn)([(0,r.wA)({components:{TextInput:u.Z,ColorInput:ge.Z,InlineRepeater:qt.Z}})],vn);const fn=vn,yn=fn;var bn=(0,_.Z)(yn,cn,un,!1,null,null,null);const _n=bn.exports;var In=n(23267),wn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-url-input"},[t("TextInput",{attrs:{value:e.value,multiline:e.multiline,placeholder:e.__("Paste or type an URL")},on:{input:e.emit}}),t("button",{staticClass:"breakdance-url-input-open-dialog",on:{click:e.openDialog}},[t("Icon",{attrs:{icon:"LinkIcon"}})],1),t("LinkChooserDialog",{attrs:{open:e.dialogOpen},on:{input:e.onLinkSelected,close:e.closeDialog}})],1)},xn=[],Sn=n(36529);let Cn=class extends i.ZP{constructor(){super(...arguments),this.dialogOpen=!1,this.dialogLoading=!1}emit(e){e||this.$emit("input",null);const t=e?.trim().replace(/<(br\s+)?(br)?>/gi,"");this.$emit("input",t)}onLinkSelected(e){this.emit(e)}openDialog(){this.dialogOpen=!0}closeDialog(){this.dialogOpen=!1}};(0,a.gn)([(0,r.fI)()],Cn.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default:!0})],Cn.prototype,"multiline",void 0),Cn=(0,a.gn)([(0,r.wA)({components:{Icon:A.Z,LinkChooserDialog:Sn.Z,TextInput:u.Z}})],Cn);const kn=Cn,Pn=kn;var Zn=(0,_.Z)(Pn,wn,xn,!1,null,null,null);const Dn=Zn.exports;var En=n(6308),Tn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"typography-input"},[t("div",{staticClass:"breakdance-control-wrapper"},[t("ButtonBarInput",{attrs:{value:e.mode,options:{mandatory:!0},items:[{text:e.__("Custom"),value:"custom"},{text:e.__("Preset"),value:"global"}]},on:{input:e.updateMode}})],1),"global"===e.mode?[t("div",{staticClass:"breakdance-control-wrapper-vertical"},[t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(e._s(e.__("Presets")))])]),t("div",{staticClass:"breakdance-control-wrapper-input-wrapper"},[t("TypographyPresetChooserInput",{attrs:{value:e.value.preset},on:{input:e.updatePreset}})],1)]),t("NiceButton",{staticClass:"mt-4",on:{click:e.managePresets}},[e._v(" "+e._s(e.__("Manage Presets"))+" ")])]:e._e(),"custom"===e.mode?[t("CustomTypographyInput",{attrs:{value:e.value.custom,path:e.path,options:e.options.customTypographyOptions},on:{input:e.updateCustom}}),e.savePresetDialogOpen?t("GlobalTypographySaveDialog",{attrs:{value:e.value.custom},on:{input:e.updatePreset,close:function(t){e.savePresetDialogOpen=!1}}}):e._e(),t("NiceButton",{staticClass:"typography-input-save-as-preset-button",on:{click:function(t){e.savePresetDialogOpen=!0}}},[e._v(" "+e._s(e.__("Save as Preset"))+" ")])]:e._e()],2)},An=[],Mn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dialog",{attrs:{value:!0},on:{close:function(t){return e.$emit("close")},"click:outside":function(t){return e.$emit("close")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("close")}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.__("Add Typography Preset"))+" ")]},proxy:!0},{key:"text",fn:function(){return[t("TextInput",{attrs:{size:"md",placeholder:e.__("Name")},model:{value:e.label,callback:function(t){e.label=t},expression:"label"}})]},proxy:!0},{key:"actions",fn:function(){return[t(oe.Z,{attrs:{text:""},on:{click:function(t){return e.$emit("close")}}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(oe.Z,{attrs:{color:"blue",dark:"",disabled:!e.label},on:{click:e.saveAsGlobal}},[e._v(" "+e._s(e.__("Save"))+" ")])]},proxy:!0}])})},Vn=[],Bn=n(8773),On=n(31044),Ln=n(92361);function $n(){return`preset-id-${(0,Bn.Z)()}`}function zn(e){const t=[...(0,Z.Z)(On.cr.typographyPresets?On.cr.typographyPresets:[]),(0,Z.Z)(e)];On.cr.throttledGlobalSettingsPropertyChange({path:Ln.r.typographyPresets,value:t,meta:{snapshotLabel:"Add Typography Preset"}})}var Nn=n(95690),Hn=n(1073);let Rn=class extends i.ZP{constructor(){super(...arguments),this.label=""}saveAsGlobal(){if(!this.label)return;const e=$n();zn({preset:{id:e,label:this.label},custom:this.value}),(0,Nn.O_)("globalSettings")||(0,Hn.T)(),this.$emit("input",e),this.$emit("close")}};(0,a.gn)([(0,r.fI)()],Rn.prototype,"value",void 0),(0,a.gn)([(0,r.tB)("context")],Rn.prototype,"context",void 0),Rn=(0,a.gn)([(0,r.wA)({components:{Dialog:B.Z,TextInput:u.Z}})],Rn);const Gn=Rn,Fn=Gn;var Un=(0,_.Z)(Fn,Mn,Vn,!1,null,null,null);const Wn=Un.exports;var jn=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-typography-input-controls mt-2"},[t("ControlsTreeExpansionPanels",{attrs:{controls:e.typographyControls,path:"customTypography","allow-popouts-in-root":!0,nested:!0,depth:2}})],1)},Xn=[],qn=n(36968),Kn=n.n(qn),Yn=n(27361),Jn=n.n(Yn);const Qn=dn.G0([dn.i0("100"),dn.i0("200"),dn.i0("300"),dn.i0("400"),dn.i0("500"),dn.i0("600"),dn.i0("700"),dn.i0("800"),dn.i0("900")]),eo=dn.dt({customTypography:dn.mI}),to=dn.Z_,no=dn.dt({label:dn.Z_,id:to});dn.jV([dn.dt({preset:no}),dn.r$({custom:eo})]),dn.G0([dn.dt({preset:dn.G0([dn.S1,to]),previousCustom:dn.G0([dn.S1,eo])}),dn.dt({custom:eo})]);var oo=n(58172);let so=class extends i.ZP{constructor(){super(...arguments),this.internalValue=this.value,this.typographyControlsTreeContext=this.reactiveProvider()}updateInternalValueWhenValueChanges(){this.internalValue=this.value}get validValue(){return this.validateCustomTypographyInputValueOrReturnFallback(this.internalValue,{customTypography:{}})}reactiveProvider(){return{getControlValue:e=>Jn()((0,Z.Z)(this.validValue),e),setControlValue:(e,t,n,o)=>{const s=(0,Z.Z)((0,oo.Kn)(this.validValue)?this.validValue:{});Kn()(s,e,t),this.emit(s,{nestedControlThatWasChanged:{path:e,control:n,controlsTree:this.typographyControls,meta:o}})},getControls:()=>this.typographyControls,setAccordionState:(e,t)=>this.context.setAccordionState(e,t),getAccordionState:e=>this.context.getAccordionState(e)}}validateCustomTypographyInputValueOrReturnFallback(e,t){return(0,gn.pipe)(e,eo.decode,(0,mn.fold)((()=>(console.warn("CustomTypographyInput decoder says invalid value... falling back to ",t),t)),(e=>e)))}emit(e,t){this.internalValue=this.validateCustomTypographyInputValueOrReturnFallback(e,{customTypography:{}}),this.$emit("input",t?(0,Ut.O$)(this.internalValue,t):this.internalValue)}get typographyControls(){const e="inline",t=[],n=!!this.options.enableMediaQueries,o=!!this.options.hoverableEverything,s=!!this.options.enableVariables;return[{slug:"fontFamily",label:(0,v.__)("Font Family"),keywords:[],options:{layout:e,type:"font_family"},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"fontSize",label:(0,v.__)("Font Size"),keywords:[],options:{layout:e,type:"unit",rangeOptions:{min:10,max:128,step:1}},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"fontWeight",label:(0,v.__)("Weight"),keywords:[],options:{layout:e,type:"dropdown",items:Qn.types.map((e=>({text:e.value,value:e.value})))},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"lineHeight",label:(0,v.__)("Line Height"),keywords:[],children:[],options:{layout:e,type:"unit",rangeOptions:{step:.1,min:1,max:3},unitOptions:{defaultType:"custom",disableCustomUnitDropdown:!0},condition:{path:"customTypography.advanced.lineHeight",operand:"is not set",value:""}},enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"advanced",label:(0,v.__)("Advanced"),keywords:[],options:{type:"section",sectionOptions:{type:"popout"}},enableMediaQueries:n,enableHover:o,enableVariables:s,children:[{slug:"lineHeight",label:(0,v.__)("Line Height (deprecated)"),keywords:[],children:[],options:{layout:e,type:"unit",rangeOptions:{step:.1,min:1,max:3},unitOptions:{defaultType:"custom",disableCustomUnitDropdown:!0},condition:{path:"customTypography.advanced.lineHeight",operand:"is set",value:""}},enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"letterSpacing",label:(0,v.__)("Letter Spacing"),keywords:[],options:{layout:e,type:"unit",rangeOptions:{step:.1,min:.1,max:3}},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"wordSpacing",label:(0,v.__)("Word Spacing"),keywords:[],options:{layout:e,type:"unit",rangeOptions:{step:.1,min:.1,max:3}},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"fontStyle",label:(0,v.__)("Style"),keywords:[],options:{layout:e,type:"button_bar",items:[{text:"normal",value:"normal",icon:"FontIcon"},{text:"italic",value:"italic",icon:"ItalicIcon"}]},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"decoration",label:(0,v.__)("Decoration"),keywords:[],options:{type:"section",sectionOptions:{type:"popout"}},enableMediaQueries:!1,enableHover:!1,enableVariables:!1,children:[{slug:"line",label:(0,v.__)("Line"),options:{layout:"vertical",type:"button_bar",buttonBarOptions:{multiple:!0},items:[{text:"underline",value:"underline",icon:"UnderlineIcon"},{text:"overline",value:"overline",icon:"OverlineIcon"},{text:"line-through",value:"line-through",icon:"StrikethroughIcon"},{text:"none",value:"none",icon:"BanIcon"}]},keywords:[],children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"underline_offset",label:(0,v.__)("Underline Offset"),keywords:[],options:{type:"unit",layout:"inline"},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"color",label:(0,v.__)("Color"),keywords:[],options:{type:"color",layout:"inline"},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"style",label:(0,v.__)("Style"),keywords:[],options:{layout:"inline",type:"dropdown",items:[{text:"solid",value:"solid"},{text:"double",value:"double"},{text:"dotted",value:"dotted"},{text:"dashed",value:"dashed"},{text:"wavy",value:"wavy"}]},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"thickness",label:(0,v.__)("Thickness"),keywords:[],options:{layout:"inline",type:"unit",unitOptions:{types:["px","%","em","custom"],defaultType:"px"}},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s}]},{slug:"textTransform",label:(0,v.__)("Transform"),keywords:[],options:{layout:e,type:"button_bar",items:[{text:"AA",value:"uppercase"},{text:"aa",value:"lowercase"},{text:"Aa",value:"capitalize"},{text:"none",value:"none"}]},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"textDirection",label:(0,v.__)("Direction"),keywords:[],options:{layout:e,type:"button_bar",items:[{text:"ltr",value:"ltr"},{text:"rtl",value:"rtl"}]},children:t,enableMediaQueries:n,enableHover:o,enableVariables:s},{slug:"textWrap",label:(0,v.__)("Text Wrap"),keywords:[],options:{layout:"vertical",type:"button_bar",items:[{text:"Wrap",value:"wrap"},{text:"Nowrap",value:"nowrap"},{text:"Balance",value:"balance"},{text:"Pretty",value:"pretty"}]},children:t,enableMediaQueries:n,enableHover:o}]}]}};(0,a.gn)([(0,r.fI)({default:null})],so.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default:()=>({})})],so.prototype,"options",void 0),(0,a.gn)([(0,r.RL)("value")],so.prototype,"updateInternalValueWhenValueChanges",null),(0,a.gn)([(0,r.tB)("context")],so.prototype,"context",void 0),(0,a.gn)([(0,r.DF)("context")],so.prototype,"typographyControlsTreeContext",void 0),so=(0,a.gn)([(0,r.wA)({components:{GlobalTypographySaveDialog:Wn,ButtonBarInput:C.Z,ControlsTreeExpansionPanels:()=>Promise.resolve().then(n.bind(n,63554))}})],so);const ao=so,io=ao;var ro=(0,_.Z)(io,jn,Xn,!1,null,null,null);const lo=ro.exports;var co=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"typography-preset-input"},[t(xe.Z,{staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{value:e.value,items:e.presetsForDropdown,dense:"",solo:"",flat:"",filled:"","hide-details":!0,"no-data-text":e.__("No presets available")},on:{change:e.updatePreset},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("span",{staticClass:"typography-preset-input__label"},[e._v(" "+e._s(n.text)+" "),t("span",{domProps:{innerHTML:e._s(e.getItemLabel(n.text,n.preset))}})])]}}])})],1)},uo=[],po=n(52343);let ho=class extends i.ZP{get presetsForDropdown(){return this.globalPresets.map((e=>({text:e.preset.label,value:e.preset.id,preset:e.custom})))}get globalPresets(){return On.cr.typographyPresets?On.cr.typographyPresets.filter((e=>e.preset.label&&e.preset.id)):[]}updatePreset(e){this.$emit("input",e)}getItemLabel(e,t){const n=On.kD.currentBreakpoint.id,o=t?.customTypography,s=o?.advanced,a=Jn()(o,`fontSize.${n}.style`),i=Jn()(s,`fontStyle.${n}`),r=Jn()(o,`fontWeight.${n}`),l=Jn()(s,`lineHeight.${n}.style`)||Jn()(o,`lineHeight.${n}.style`),c=po.I.find((e=>e.value===Number(r)))?.shortText,u=c?`${c}`:null,d=a&&e.toLowerCase().includes(a.toLowerCase()),p=c&&e.toLowerCase().includes(c.toLowerCase()),h=a?`${a}${l?`/${l}`:""}`:null,g=[d?null:h,u&&!p?u:null].filter(Boolean);return g.join(" ")}};(0,a.gn)([(0,r.fI)()],ho.prototype,"value",void 0),ho=(0,a.gn)([(0,r.wA)({components:{FontFamilyInput:ne.Z,ButtonBarInput:C.Z,UnitInput:S.Z,DropdownInput:m.Z,ShadowInput:_n}})],ho);const go=ho,mo=go;var vo=(0,_.Z)(mo,co,uo,!1,null,null,null);const fo=vo.exports;var yo=n(18759);let bo=class extends i.ZP{constructor(){super(...arguments),this.savePresetDialogOpen=!1}emit(e){this.$emit("input",(0,Z.Z)(e))}get mode(){return"preset"in this.value?"global":"custom"}updateMode(e){const t=this.mode,n=e||"custom";if("global"===t&&"custom"===n){const e="preset"in this.value?this.value.preset:void 0,t=this.globalPresets.find((t=>t.preset.id===e)),n={customTypography:t?.custom?.customTypography?t?.custom?.customTypography:{}};t||(n.customTypography="previousCustom"in this.value?this.value.previousCustom?.customTypography?this.value.previousCustom?.customTypography:{}:n.customTypography),this.emit({custom:{customTypography:n.customTypography}})}"custom"===t&&"global"===n&&this.emit({preset:void 0,previousCustom:"custom"in this.value?this.value.custom:void 0})}updatePreset(e){this.emit({...this.value,preset:e})}updateCustom(e){const t=e instanceof Ut.A3?e.value:e,n={...this.value,custom:t};if(e instanceof Ut.A3){const t=(0,Ut.O$)(n,e.meta);this.emit(t)}else this.emit(n)}managePresets(){(0,yo.v)("settings.typography",!0),(0,Nn.oM)("globalSettings"),(0,yo.v)("settings.typography.global_typography",!1),this.$nextTick((()=>{(0,yo.v)("settings.typography.global_typography",!0)}))}get globalPresets(){return On.cr.typographyPresets||[]}};(0,a.gn)([(0,r.fI)()],bo.prototype,"path",void 0),(0,a.gn)([(0,r.fI)({default:()=>({custom:{customTypography:{}}})})],bo.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default:()=>({})})],bo.prototype,"options",void 0),bo=(0,a.gn)([(0,r.wA)({components:{NiceButton:M.Z,TypographyPresetChooserInput:fo,CustomTypographyInput:lo,GlobalTypographySaveDialog:Wn,ButtonBarInput:C.Z,ControlsTree:()=>Promise.resolve().then(n.bind(n,20951))}})],bo);const _o=bo,Io=_o;var wo=(0,_.Z)(Io,Tn,An,!1,null,null,null);const xo=wo.exports;var So=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("TextInput",{attrs:{value:e.value&&e.value.label},on:{input:e.updateLabel}})},Co=[];let ko=class extends i.ZP{mounted(){if(!this.value?.id||!this.value?.label){const e=On.cr.typographyPresets?On.cr.typographyPresets.length:1;this.emit({label:`Preset ${e}`,id:$n()})}}updateLabel(e){this.emit({...this.value,label:e??void 0})}emit(e){const t=(0,Z.Z)(e),n={label:t?.label||"",id:t?.id||$n()};this.$emit("input",n)}};(0,a.gn)([(0,r.fI)()],ko.prototype,"value",void 0),ko=(0,a.gn)([(0,r.wA)({components:{TextInput:u.Z}})],ko);const Po=ko,Zo=Po;var Do=(0,_.Z)(Zo,So,Co,!1,null,null,null);const Eo=Do.exports;var To=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-element-screenshot__wrapper"},[t("div",{staticClass:"breakdance-element-screenshot__buttons"},[t(oe.Z,{staticClass:"breakdance-element-screenshot__button",attrs:{elevation:"0",outlined:"",loading:e.loading,small:""},on:{click:e.takeScreenshot}},[e._v(" "+e._s(e.__("Take screenshot"))+" ")]),t(oe.Z,{staticClass:"breakdance-element-screenshot__button",attrs:{elevation:"0",outlined:"",small:""},on:{click:function(t){e.openMediaModal=!0}}},[e._v(" "+e._s(e.__("Choose media"))+" ")])],1),e.value?t("img",{staticClass:"breakdance-element-screenshot__preview",attrs:{src:e.value.url,alt:"",draggable:"false"}}):e._e(),t("MediaUploadDialog",{attrs:{open:e.openMediaModal,"accepted-file-types":["image"]},on:{input:e.handleWpMedia,close:function(t){e.openMediaModal=!1}}})],1)},Ao=[],Mo=n(84262),Vo=n.n(Mo),Bo=n(98851),Oo=n(92260);const Lo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAC7CAMAAACJr3FKAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABWVBMVEXCy9LBy9LBytLBytHEzNPGz9XK0tjN1NrQ193S2d7T2t/S2N7Q19zK0djDzNPEzdTL09nU2t/d4ubk6Ozp7e/t8PLv8fPw8vTw8/Xx8/Xw8vXt7/Lp7O/k6OvU2+DM1NrGztXN1dra4OTm6e3y9Pbu8fPo6+7e4+fT2d7J0dfI0NbW3OHl6ezy8/Xy9PXr7vHh5enT2d/H0Nbq7fDc4eba3+Tu8PPi5+rR2N3FzdTV2+DFztTj5+rX3eLs7/Hj6OvP1tzh5unf5OjFztXX3eHO1dvc4ubHz9bN1dvI0dfm6u3n6u3n6+7J0djI0Nfj5+vg5enY3eLb4OXZ3+Pv8fTM09nZ3+Tc4eXn6u7i5urU2uDq7e/Y3uPg5Ojf4+fv8vTr7vDZ3uPDzNLDy9Lb4eXO1tvR193e4ufo7O/Hz9XEzdPL0tjs7vHd4ufV3OHY3uLR2N7g5ej///9zsThgAAAAAWJLR0RyNg4NWAAABvpJREFUeNrtnGtXGkcYgFlQUCCLYmCdAKKwSEB2IRKJoBAvoaRqiTVatUk0mqRVm6bt///SBWOOyA7sZXZmgff54Dl+YJh5zrzv3HE4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYDTinq42TdUVsBOdyjI27PROTXq/P73k0zjtAj8PhdASmpoMzj0NhYRahJ0I4Eo0F5+LzDhfrmjGFCywkkiEkiugeyn+pxfTTDD+6brJLuZQkIxUkcTZfeLbsGMmYyiSKSNXKXc95Unzu4UdOTXYlj/oilV6slkdJDReoRPtraXcbIeddGx018XVB0iYGIVlITgZGQ02gWpO1arlV83KD51jX2nK4zOasHi1tNaktN+t6W44/qjmK7qfhfHV7qDsN/ypkxEuLXJ115S1k7SfBoBYlnkIr80OahLlGwbCW207zmnUTrPHyc8ycFyRHqgHWrbDAi3vHpBcFoZAZthzMuXeNpt0OFjdYt4S0lz0iXpAUqo6xbgxJL7+Q6S/tcEqPD004cc0cMS8KMfewmBl/Q1CLEk7RIZnslfeJelHM1J4xbtLtqYbJQvjnhL0opKo8Sy/bHm+1OldvOEzF9K/G1wF4hAN2c73M271Uqw6H0edHJorxpSzwgtBsepuNFr5SRHdDiRz5bc1gMVxcw+auMQrjLLwEjjsDYLNhrJzmCcmBupP1ZfrDNn/8sBanhnpuedMyLQqxJnUzv3cnzAMj5axY6QWhHO01ZfNddwCUXuuvhEWJ9wdSkrKZ9yqVED/onTpwU0VrvVA3s7ardsBRy+gsZj5mXeJlYsZ5pB4BT/XNgbsTuCXk6GVg11PVGsgJXaVwk2EqYlBsmZqYV6oVENO6vLgtTzB3vKA103NV1cVs6SmkfGp9grmjQGl14KqoiwnqKeS9zsaZ4ozOitK1ca769Uvak6+zHqIpBh3T2YXIflT78vCC9pPA8SS9QGohXFzSEPNpS+z+bnmnrL2Ez1S1KBxWaIhxflGbyFQ0zxe4PyxeCqgQWqVhhk93fbGY0576s4t0A6lNvk5jopc9ebAokPIezd/L/0lfS+vsgMqpytFVhxm5pr2ncpOHLMQgKWdwM00f7jfoXjzsfdH+yaahS1Mk2NcxPBhnbelKEEVZEkX0MaFjOaKSn6hxQGc6c+0LxvYWc+nppo4PsQqkNudUBm1lCuzgy+UbfU9B2AVSi5DfrsfaLANJQXr8lz3NcD6GgdQ2M3PN2oEqzSuWgdQmbceLRYwDqY1QZW2hG+cqpd3MnpQmtKYZzuV08DeBwI0yylv6EnOZxRqpC+mdprWB0xFw+y7O1nO7u8k3HxKVenbMqqeYl0HWTr6bic331xLwJHZCAlKmsArKX3SYn1nZuLbCjXOC/mYDhn4belzAF+t+jylK59HgRH+pemkQurFKgPPp3lU9OhVE9U+Kwt6Fm/ArVTrna9r4Gu+RZvhKr6dkEqqlFwi+UnX6bRNIrdYl8VsQ28F+d9/kUqFO7FFdg9wVZyL8jUkzXEPLlR05tR8n4+XSToHUQphT99LU+AZGDgX1XmJQw0Yj0h15tTTDNWe0l1BcMv+02R5Tuw7knMqRdkPfm6mcjo1LVXibTO066Z7NbOu8EiiXDhpmkjDns8MaqYvw5ING3RhY4574TYjJMN21w1N8sGi6MHBHXSodzBvtNGMfWBvANeq049jAa7Bf5zwGxXyz4rEAEWb/uRfvnq9G/daWjJw+OOM11u3HE6n/GHCzJmagwpmBS+jzOV2/YUEXOXk3Zge2TBW0ozucKN3NNMzxp9t6rpiLd+nrtM5w8jI+FuhHavU2CExX8/BAzwscC1/dEEK6uj1HJVDUqY4bxQ3KV8qMcMYTEoNONCcakxmNDudeUmKk/L/avHx6+4R1q7VQfERIDEKlV5pS8LQtl0hdSPtjpMQg4XP/OzicP8K6yVpbM0dMDEL/XfdJwdzCR/sn3u8Up8iJQbHeD4G4I5suqVWZIShG2ov39ML+XoMeCIpBUrHHHo1nkPoLYTFIimAP9PzFwfJCVgxC4feqt3D4yqCMR1aJQUKwe1/PeR08N1/ygItBaD3TebbC8RsEfp5sCMSg6Oq9n+92XU6lUwOWXtpYIAaFC6sNnnO5XNzl9cRWZBC1WCMGyUJxM7E0/W2l8Fiw8TZmTywRoyC2hMii6XKYYZWYgQfEYAAxGEAMBhCDAcRgADEYQAwGEIMBxGAAMRhADAYQgwHEYAAxGEAMBhCDAcRgADEYQAwGEIMBxGAAMRhADAYQgwHEYAAxGEAMBhCDAcRgADEYQAwGEIMBxGAAMRhADAYQgwHEYAAxGEAMBhCDAcRgADEYQAwGEIMBxGAAMRhADAYQg+F/52mir7St798AAAAASUVORK5CYII=";var $o=n(81452),zo=n(34676);let No=class extends i.ZP{constructor(){super(...arguments),this.loading=!1,this.openMediaModal=!1}takeScreenshot(){if(!h.documentStore.document.tree.root.children.length)return void Be.Z.log.message((0,v.__)("There are no elements added to the page"));const e="page"===this.controlType,t=e?"#breakdance_canvas":`[data-node-id="${h.uiStore.activeElementId}"]`,n=window.Breakdance.canvas.document.querySelector(t),o=h.uiStore.activeElement;if(!n||!e&&!o)return void Be.Z.log.message((0,v.__)("Unexpected error occurred."));let s=null;if(e)s=`${h.documentStore.document.documentMeta.titleLabel}_${h.documentStore.document.documentMeta.id}`;else if(o){const e=o.data.properties?.settings?.library?.name;s=e?`${e}_${o.id}`:null}if(!s)return void Be.Z.log.message((0,v.__)("The field 'name' is required to create an automatic screenshot"));const a=s.replace(/[^a-zA-Z0-9 -]/g,""),i=`${e?"design_page_":"design_section_"}${a}`;this.loading=!0;const r=h.uiStore.activeElementId;h.uiStore.activateElement(null),(0,zo.forceNextTick)((()=>{Vo().toBlob(n,{imagePlaceholder:Lo,bgcolor:"#FFF"}).then((async e=>{(0,gn.pipe)(await(0,Bo.D)({action:"breakdance_upload_img_to_media_library",dataToPost:{image:e,name:i,id:this.value?.id},decoder:Oo.Kn,resultKey:"data"}),(0,mn.fold)((e=>{this.loading=!1,e.forEach((e=>Be.Z.log.message(e.msg))),h.uiStore.activateElement(r)}),(e=>{this.loading=!1,this.$emit("input",e),h.uiStore.activateElement(r)})))})).catch((()=>{this.loading=!1,Be.Z.log.message((0,v.__)("Screenshot couldn't be created, probably because it links to protected third party images. Please add an image manually"))}))}))}handleWpMedia(e){this.$emit("input",{url:e.url,id:e.id})}};(0,a.gn)([(0,r.fI)()],No.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],No.prototype,"controlType",void 0),No=(0,a.gn)([(0,r.wA)({components:{MediaUploadDialog:$o.Z,WPMediaInput:me.Z}})],No);const Ho=No,Ro=Ho;var Go=(0,_.Z)(Ro,To,Ao,!1,null,null,null);const Fo=Go.exports;var Uo=n(70504),Wo=n(98236),jo=n(70802),Xo=n(70327),qo=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"slider-input"},[t(Xo.Z,{attrs:{dense:"",color:"oxygen"===e.builderMode?"var(--oxygen-primary-600)":null,value:e.internalValue,step:e.rangeOptions.step,min:e.rangeOptions.min,max:e.rangeOptions.max},on:{input:e.emit},scopedSlots:e._u([{key:"thumb-label",fn:function(t){return[e._v(" "+e._s(t.value)+" ")]}}])}),t("div",{staticClass:"slider-input-labels"},e._l(e.labels,(function(n){return t("span",{key:n},[e._v(e._s(n))])})),0)],1)},Ko=[];let Yo=class extends i.ZP{get builderMode(){return h.configStore.builderMode}get internalValue(){if(this.value)return this.value;const{min:e,max:t}=this.rangeOptions;return"number"===typeof e&&"number"===typeof t?[e,t]:void 0}get labels(){return this.rangeOptions.labels||[]}emit(e){this.$emit("input",e)}};(0,a.gn)([(0,r.fI)()],Yo.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default(){return{}}})],Yo.prototype,"rangeOptions",void 0),Yo=(0,a.gn)([r.wA],Yo);const Jo=Yo,Qo=Jo;var es=(0,_.Z)(Qo,qo,Ko,!1,null,null,null);const ts=es.exports;var ns=n(61332),os=n(24437),ss=n(5294),as=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-query"},[t("ButtonBarInput",{staticClass:"my-3",attrs:{items:[{text:e.__("Custom"),value:"custom"},{text:e.__("Text"),value:"text"},{text:e.__("Array"),value:"php"}],value:e.value&&e.value.active},on:{input:e.updateActive}}),e.value&&"custom"===e.value.active?[t("NiceButton",{staticClass:"breakdance-query__edit-query",attrs:{"data-test-id":"edit-query-button","left-icon":"PenIcon",expanded:!0},on:{click:function(t){e.open=!e.open}}},[e._v(" "+e._s(e.__("Edit Query"))+" ")]),t("Dialog",{attrs:{width:600,sticky:!0,persistent:e.hasUnsavedChanges,border:!0,"content-class":"breakdance-query-dialog"},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.__("Query Builder"))+" ")]},proxy:!0},{key:"text",fn:function(){return[t("div",{staticClass:"breakdance-query-control"},[t("div",{staticClass:"breakdance-query-row"},[t("div",{staticClass:"breakdance-query-column"},[t("h2",{staticClass:"breakdance-query__subtitle"},[e._v(e._s(e.__("Source")))]),t("DropdownInput",{attrs:{items:e.sourceItems,placeholder:e.__("Source")},model:{value:e.customInternalValue.source,callback:function(t){e.$set(e.customInternalValue,"source",t)},expression:"customInternalValue.source"}})],1),"post_types"===e.customInternalValue.source?t("div",{staticClass:"breakdance-query-column"},[t("h2",{staticClass:"breakdance-query__subtitle"},[e._v(e._s(e.__("Include")))]),t("MultiselectInput",{key:"postType",attrs:{items:e.postTypesItems,value:e.customInternalValue.postTypes,placeholder:e.__("Choose post type")},on:{input:e.updatePostTypes}})],1):e._e(),"acf_relationship"===e.customInternalValue.source?t("div",{staticClass:"breakdance-query-column"},[t("h2",{staticClass:"breakdance-query__subtitle"},[e._v(e._s(e.__("Field")))]),t("DropdownInput",{attrs:{placeholder:e.__("Select a field..."),"dropdown-options":{populate:{fetchDataAction:"breakdance_get_acf_relationship_fields"},noDataAvailableMessage:e.__("No relationship fields found")}},model:{value:e.customInternalValue.acfField,callback:function(t){e.$set(e.customInternalValue,"acfField",t)},expression:"customInternalValue.acfField"}})],1):e._e(),"related"===e.customInternalValue.source?t("div",{staticClass:"breakdance-query-column"},[t("h2",{staticClass:"breakdance-query__subtitle"},[e._v(" "+e._s(e.__("Include by"))+" ")]),t("MultiselectInput",{key:"terms",attrs:{options:{populate:{fetchDataAction:"breakdance_get_taxonomies"}},placeholder:e.__("Terms in taxonomy")},model:{value:e.customInternalValue.includeByTaxonomies,callback:function(t){e.$set(e.customInternalValue,"includeByTaxonomies",t)},expression:"customInternalValue.includeByTaxonomies"}})],1):e._e()]),t("div",{staticClass:"breakdance-query-limit"},[t("h2",{staticClass:"breakdance-query__subtitle"},[e._v(e._s(e.__("Amount")))]),t("div",{staticClass:"breakdance-query-row"},[t("div",{staticClass:"breakdance-query-column"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Posts per page"))+" ")]),t("NumberInput",{attrs:{value:e.customInternalValue.postsPerPage},on:{input:e.updatePostsPerPage}})],1),t("div",{staticClass:"breakdance-query-column"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Total posts"))+" ")]),t("NumberInput",{attrs:{value:e.customInternalValue.totalPosts},on:{input:e.updateTotalPosts}}),e.customInternalValue.totalPosts===e.customInternalValue.postsPerPage?t("small",{staticClass:"mt-1"},[e._v(" "+e._s(e.__("Total posts can't be smaller than Posts Per Page"))+" ")]):e._e()],1),-1!==e.customInternalValue.postsPerPage&&"post_types"===e.customInternalValue.source?t("div",{staticClass:"breakdance-query-column"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Offset"))+" ")]),t("NumberInput",{model:{value:e.customInternalValue.offset,callback:function(t){e.$set(e.customInternalValue,"offset",t)},expression:"customInternalValue.offset"}})],1):e._e()])]),"post_types"===e.customInternalValue.source?t("div",{staticClass:"breakdance-query-conditions"},[t("h2",{staticClass:"breakdance-query__subtitle"},[e._v(e._s(e.__("Conditions")))]),t("ConditionsMatrix",{attrs:{value:e.customInternalValue.conditions||[],availableConditions:e.applicableConditions,"allow-to-add-condition":!1,templateTypes:e.customInternalValue.postTypes},on:{input:e.updateConditions}})],1):e._e(),t("div",{staticClass:"breakdance-query__meta-query"},[t("div",{staticClass:"d-flex align-center justify-start"},[t("h2",{staticClass:"breakdance-query__subtitle mb-0"},[e._v(" "+e._s(e.__("Meta Query"))+" ")])]),t("WpMetaQueryComponent",{attrs:{value:e.customInternalValue.metaQuery},on:{input:e.updateMetaQuery}})],1),t("div",{staticClass:"breakdance-query-order"},[t("h2",{staticClass:"breakdance-query__subtitle"},[e._v(e._s(e.__("Order")))]),t("div",{staticClass:"breakdance-query-row"},[t("div",{staticClass:"breakdance-query__order-field"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Order By"))+" ")]),t("DropdownInput",{attrs:{items:e.orderBy},model:{value:e.customInternalValue.orderBy,callback:function(t){e.$set(e.customInternalValue,"orderBy",t)},expression:"customInternalValue.orderBy"}})],1),"acf_field"===e.customInternalValue.orderBy?t("div",{staticClass:"breakdance-query__order-field"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Field"))+" ")]),t("DropdownInput",{key:"acfFields",attrs:{placeholder:e.__("Select a field..."),"dropdown-options":{populate:{fetchDataAction:"breakdance_get_acf_fields"},noDataAvailableMessage:e.__("No ACF fields found")}},model:{value:e.customInternalValue.acfField,callback:function(t){e.$set(e.customInternalValue,"acfField",t)},expression:"customInternalValue.acfField"}})],1):e._e(),"metabox_field"===e.customInternalValue.orderBy?t("div",{staticClass:"breakdance-query__order-field"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Field"))+" ")]),t("DropdownInput",{key:"metaboxFields",attrs:{placeholder:e.__("Select a field..."),"dropdown-options":{populate:{fetchDataAction:"breakdance_get_metabox_fields"},noDataAvailableMessage:e.__("No Meta Box fields found")}},model:{value:e.customInternalValue.metaboxField,callback:function(t){e.$set(e.customInternalValue,"metaboxField",t)},expression:"customInternalValue.metaboxField"}})],1):e._e(),t("div",{staticClass:"breakdance-query__order-field"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Order"))+" ")]),t("DropdownInput",{attrs:{items:e.order},model:{value:e.customInternalValue.order,callback:function(t){e.$set(e.customInternalValue,"order",t)},expression:"customInternalValue.order"}})],1)])]),t("div",{staticClass:"breakdance-query-row"},[t("div",{staticClass:"breakdance-query__order-field"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Date"))+" ")]),t("DropdownInput",{attrs:{items:e.dates},model:{value:e.customInternalValue.date,callback:function(t){e.$set(e.customInternalValue,"date",t)},expression:"customInternalValue.date"}})],1)]),"custom"===e.customInternalValue.date?t("div",{staticClass:"breakdance-query-custom-date breakdance-query-row"},[t("div",{staticClass:"breakdance-query__order-field"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Before Date"))+" ")]),t("DatePickerInput",{model:{value:e.customInternalValue.beforeDate,callback:function(t){e.$set(e.customInternalValue,"beforeDate",t)},expression:"customInternalValue.beforeDate"}})],1),t("div",{staticClass:"breakdance-query__order-field"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("After Date"))+" ")]),t("DatePickerInput",{model:{value:e.customInternalValue.afterDate,callback:function(t){e.$set(e.customInternalValue,"afterDate",t)},expression:"customInternalValue.afterDate"}})],1)]):e._e(),t("div",{staticClass:"breakdance-query-flags breakdance-query-row"},["post_types"===e.customInternalValue.source?[t("div",{staticClass:"breakdance-query__order-field"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Ignore current post"))+" ")]),t("ToggleInput",{model:{value:e.customInternalValue.ignoreCurrentPost,callback:function(t){e.$set(e.customInternalValue,"ignoreCurrentPost",t)},expression:"customInternalValue.ignoreCurrentPost"}})],1),e.shouldShowStickyPostsToggle?t("div",{staticClass:"breakdance-query__order-field"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Ignore sticky posts"))+" ")]),t("ToggleInput",{model:{value:e.customInternalValue.ignoreStickyPosts,callback:function(t){e.$set(e.customInternalValue,"ignoreStickyPosts",t)},expression:"customInternalValue.ignoreStickyPosts"}})],1):e._e()]:e._e(),"related"===e.customInternalValue.source?t("div",{staticClass:"breakdance-query__order-field"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Same author only"))+" ")]),t("ToggleInput",{model:{value:e.customInternalValue.includeByAuthor,callback:function(t){e.$set(e.customInternalValue,"includeByAuthor",t)},expression:"customInternalValue.includeByAuthor"}})],1):e._e()],2)])]},proxy:!0},{key:"actions",fn:function(){return[t(ss.Z,[t(os.Z,{staticClass:"text-left"},[e.hasUnsavedChanges?t(oe.Z,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(" "+e._s(e.__("Cancel"))+" ")]):e._e()],1),t(os.Z,{staticClass:"text-right"},[t("NiceButton",{attrs:{color:"primary"},on:{click:e.saveCustomChanges}},[e._v(" "+e._s(e.__("Apply Query"))+" ")])],1)],1)]},proxy:!0}],null,!1,3048503287),model:{value:e.open,callback:function(t){e.open=t},expression:"open"}})]:e._e(),"text"===e.valueOrDefaults.active?[t("TextInput",{attrs:{multiline:!0,value:e.valueOrDefaults.text,placeholder:"post_type=product&category=hoodies"},on:{input:e.updateTextValue}})]:e._e(),"php"===e.valueOrDefaults.active?[t("CodeInput",{attrs:{language:"x-php",value:e.valueOrDefaults.php},on:{input:e.updatePhpValue}})]:e._e()],2)},is=[];dn.dt({name:dn.Z_,slug:dn.Z_});const rs=dn.IX(dn.dt({name:dn.Z_,slug:dn.Z_}));var ls=n(8492),cs=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-wp-meta-query"},[e.showRelationInput?[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" Relation ")]),t("DropdownInput",{staticClass:"pb-2",attrs:{items:["AND","OR"],value:e.value.relation},on:{input:e.updateRelation}})]:e._e(),t("Repeater",{attrs:{value:e.value?e.value.metaQueries:[],control:{options:{repeaterOptions:{titleTemplate:"Query",buttonName:"Add new query"}}}},on:{input:e.updateMetaQueryData},scopedSlots:e._u([{key:"default",fn:function({value:n,index:o}){return[n.relation?[t("WpMetaQueryComponent",{attrs:{value:n},on:{input:function(t){return e.updateNestedQuery(t,o)}}})]:[t("div",{staticClass:"breakdance-query-row pb-2"},[t("div",{staticClass:"breakdance-query-column"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" Meta Key ")]),t("TextInput",{attrs:{value:n.key},on:{input:function(t){return e.updateKey(t,o)}}})],1),e.showValue(n)&&!e.isValueAnArray(n)?t("div",{staticClass:"breakdance-query-column"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" Meta Value ")]),t("TextInput",{attrs:{value:n.value},on:{input:function(t){return e.updateValue(t,o)}}})],1):e._e()]),e.showValue(n)&&e.isValueAnArray(n)?t("div",{staticClass:"breakdance-query-row pb-2"},[t("div",{staticClass:"breakdance-query-column"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" Meta Value Array ")]),t("Repeater",{attrs:{value:n.value||[],control:{options:{repeaterOptions:{titleTemplate:"Value",buttonName:"Add new value"}}}},on:{input:function(t){return e.updateValueArray(t,o)}},scopedSlots:e._u([{key:"default",fn:function({value:n,index:s}){return[t("div",{staticClass:"breakdance-query-column"},[t("TextInput",{attrs:{value:n||""},on:{input:function(t){return e.updateValueInArray(t,o,s)}}})],1)]}}],null,!0)})],1)]):e._e(),t("div",{staticClass:"breakdance-query-row"},[t("div",{staticClass:"breakdance-query-column"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" Compare by ")]),t("DropdownInput",{attrs:{items:e.compareItems,value:n.compare},on:{input:function(t){return e.updateCompare(t,o)}}})],1),t("div",{staticClass:"breakdance-query-column"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" Type ")]),t("DropdownInput",{attrs:{items:e.typeItems,value:n.type},on:{input:function(t){return e.updateType(t,o)}}})],1)])]]}}])}),t("NiceButton",{staticClass:"breakdance-meta-query__nested-query mb-1",on:{click:e.addNestedQuery}},[e._v(" Add nested query ")])],2)},us=[],ds=n(99697),ps=n(85256);const hs=["=","!=",">",">=","<","<=","LIKE","NOT LIKE","IN","NOT IN","BETWEEN","NOT BETWEEN","EXISTS","NOT EXISTS","REGEXP","NOT REGEXP","RLIKE"],gs=["NUMERIC","BINARY","CHAR","DATE","DATETIME","DECIMAL","SIGNED","TIME","UNSIGNED"],ms=(0,ps.$)(hs),vs=(0,ps.$)(gs),fs=dn.dt({key:dn.Z_,value:dn.G0([dn.Z_,dn.IX(dn.Z_)]),compare:ms,type:vs}),ys=dn.dt({relation:dn.G0([dn.i0("AND"),dn.i0("OR")]),metaQueries:dn.IX(dn.G0([fs,dn.sH("WpMetaQuery",(()=>ys))]))});dn.dt({custom:dn.jV([dn.G0([dn.dt({source:dn.i0("post_types"),postTypes:dn.IX(dn.Z_),conditions:dn.G0([dn.IX(ds.ZQ),dn.S1]),metaQuery:dn.G0([ys,dn.S1])}),dn.dt({source:dn.i0("related"),includeByTaxonomies:dn.IX(dn.Z_),includeByAuthor:dn.O7}),dn.dt({source:dn.i0("acf_relationship"),acfField:dn.Z_})]),dn.dt({orderBy:dn.G0([dn.i0("date"),dn.i0("modified"),dn.i0("title"),dn.i0("comment_count"),dn.i0("menu_order"),dn.i0("rand"),dn.i0("acf_field"),dn.i0("metabox_field")]),offset:dn.G0([dn.lB,dn.pk]),postsPerPage:dn.G0([dn.lB,dn.pk]),totalPosts:dn.G0([dn.lB,dn.pk]),order:dn.G0([dn.i0("ASC"),dn.i0("DESC")]),date:dn.G0([dn.i0("all"),dn.i0("-1 day"),dn.i0("-1 week"),dn.i0("-1 month"),dn.i0("-3 months"),dn.i0("-1 year"),dn.i0("custom")]),beforeDate:dn.G0([dn.lB,dn.Z_]),afterDate:dn.G0([dn.lB,dn.Z_]),ignoreStickyPosts:dn.O7,ignoreCurrentPost:dn.O7,acfField:dn.G0([dn.lB,dn.Z_]),metaboxField:dn.G0([dn.lB,dn.Z_])})]),text:dn.Z_,php:dn.Z_,active:dn.G0([dn.i0(""),dn.i0("custom"),dn.i0("text"),dn.i0("php")])});let bs=class extends i.ZP{beforeCreate(){this.$options.components.Repeater=n(62485).Z}get defaultQuery(){return{key:"",value:"",compare:"=",type:"CHAR"}}get showRelationInput(){return!!this.value&&(!(this.value.metaQueries.length<=1)&&this.value.relation)}updateRelation(e){if(!this.value)return;const t=(0,Z.Z)(this.value);t.relation=e,this.$emit("input",t)}updateMetaQueryData(e){const t=e.map((e=>Object.keys(e).length?e:this.defaultQuery));let n=(0,Z.Z)(this.value);e.length?n?n.metaQueries=t:n={relation:"AND",metaQueries:t}:n=void 0,this.$emit("input",n)}updateNestedQuery(e,t){if(!this.value)return;let n=(0,Z.Z)(this.value);e?n.metaQueries[t]=e:(n.metaQueries.splice(t,1),n.metaQueries.length||(n=void 0)),this.$emit("input",n)}get compareItems(){return hs}get typeItems(){return gs}showValue(e){return!e||"EXISTS"!==e.compare&&"NOT EXISTS"!==e.compare}isValueAnArray(e){return!!e&&("IN"===e.compare||"NOT IN"===e.compare||"BETWEEN"===e.compare||"NOT BETWEEN"===e.compare)}updateKey(e,t){if(!this.value)return;const n=(0,Z.Z)(this.value),o=n.metaQueries[t];"key"in o&&(o.key=e,n.metaQueries[t]=o,this.$emit("input",n))}updateValue(e,t){if(!this.value)return;const n=(0,Z.Z)(this.value),o=n.metaQueries[t];"value"in o&&(o.value=e,n.metaQueries[t]=o,this.$emit("input",n))}updateValueArray(e,t){if(!this.value)return;const n=(0,Z.Z)(this.value),o=n.metaQueries[t];"value"in o&&(o.value=e.map((e=>"string"===typeof e?e:"")),n.metaQueries[t]=o,this.$emit("input",n))}updateValueInArray(e,t,n){if(!this.value)return;const o=(0,Z.Z)(this.value),s=o.metaQueries[t];"value"in s&&Array.isArray(s.value)&&(s.value[n]=e,o.metaQueries[t]=s,this.$emit("input",o))}updateCompare(e,t){if(!this.value)return;const n=(0,Z.Z)(this.value),o=n.metaQueries[t],s=n.metaQueries[t];if("compare"in o&&"compare"in s){o.compare=e;const a=this.isValueAnArray(o)!==this.isValueAnArray(s);a&&(o.value=this.isValueAnArray(o)?[]:""),n.metaQueries[t]=o,this.$emit("input",n)}}updateType(e,t){if(!this.value)return;const n=(0,Z.Z)(this.value),o=n.metaQueries[t];"type"in o&&(o.type=e,n.metaQueries[t]=o,this.$emit("input",n))}addNestedQuery(){let e=(0,Z.Z)(this.value);const t={relation:"AND",metaQueries:[this.defaultQuery]};e?e.metaQueries.push(t):e={relation:"AND",metaQueries:[t]},this.$emit("input",e)}};(0,a.gn)([(0,r.fI)()],bs.prototype,"value",void 0),bs=(0,a.gn)([(0,r.wA)({name:"WpMetaQueryComponent",components:{NiceButton:M.Z,DropdownInput:m.Z,Dropdown:Pe.Z,TextInput:u.Z}})],bs);const _s=bs,Is=_s;var ws=(0,_.Z)(Is,cs,us,!1,null,null,null);const xs=ws.exports;let Ss=class extends i.ZP{constructor(){super(...arguments),this.open=!1,this.customInternalValue=(0,Z.Z)(this.valueOrDefaults.custom)}async mounted(){On.PK.postTypes.length||(0,gn.pipe)(await(0,Bo.D)({action:"breakdance_get_post_types_for_wp_query",decoder:rs,resultKey:"postTypes"}),(0,mn.fold)((()=>{Be.Z.log.message((0,v.__)("Failed to load necessary post types for the Wp Query control"))}),(e=>{On.PK.setPostTypes(e)})))}emitDefaultsAfterClearingControl(){""!==this.value?.active?this.value||(this.customInternalValue=(0,Z.Z)(this.valueOrDefaults.custom)):this.$emit("input",null)}get valueOrDefaults(){const e=this.options?.postTypes.length?this.options?.postTypes[0]:"post";return this.value||{active:"custom",text:`post_type=${e}`,custom:{source:"post_types",postsPerPage:8,conditions:[[{}]],totalPosts:null,ignoreStickyPosts:!1,ignoreCurrentPost:!1,metaQuery:void 0,postTypes:this.options?.postTypes||["post"],orderBy:"date",order:"DESC",date:"all",beforeDate:null,afterDate:null,offset:null,acfField:null,metaboxField:null},php:`return ['post_type' => '${e}'];`}}updateTotalPosts(e){this.customInternalValue.totalPosts="number"===typeof e?e>=(this.customInternalValue.postsPerPage||0)?e:this.customInternalValue.postsPerPage:null}updatePostsPerPage(e){this.customInternalValue.postsPerPage=e,e&&this.customInternalValue.totalPosts&&e>=this.customInternalValue.totalPosts&&(this.customInternalValue.totalPosts=e)}closeDialog(){this.customInternalValue=(0,Z.Z)(this.valueOrDefaults.custom),this.open=!1}saveCustomChanges(){if(this.open=!1,"post_types"===this.customInternalValue.source&&this.customInternalValue.conditions){const e=(0,T.ar)(this.customInternalValue.conditions);this.customInternalValue.conditions=e.length?e:[[{}]]}const e=(0,Z.Z)(this.valueOrDefaults);e.custom=this.customInternalValue,this.$emit("input",e)}updateTextValue(e){const t=(0,Z.Z)(this.valueOrDefaults);t.text=e??"",this.$emit("input",t)}updatePhpValue(e){const t=(0,Z.Z)(this.valueOrDefaults);t.php=e??"",this.$emit("input",t)}updateActive(e){const t=(0,Z.Z)(this.valueOrDefaults);t.active=e,this.$emit("input",t)}updateConditions(e){"post_types"===this.customInternalValue.source&&i.ZP.set(this.customInternalValue,"conditions",e.length?e:void 0)}updateMetaQuery(e){"post_types"===this.customInternalValue.source&&i.ZP.set(this.customInternalValue,"metaQuery",e)}get shouldShowStickyPostsToggle(){return"post_types"===this.customInternalValue.source&&this.customInternalValue.postTypes.includes("post")}updatePostTypes(e){"post_types"===this.customInternalValue.source&&(this.customInternalValue.postTypes=e,this.removeUnusableConditions(e))}removeUnusableConditions(e){if("post_types"!==this.customInternalValue.source)return;if(!this.customInternalValue.conditions||!this.customInternalValue.conditions.length)return;const t=e.map((e=>`post-dropdown-${e}`)),n=this.customInternalValue.conditions[0]?.filter((e=>e.ruleSlug&&(!e.ruleSlug.startsWith("post-dropdown-")||t.includes(e.ruleSlug))));this.customInternalValue.conditions=[n.length?n:[{}]]}get postTypesItems(){return On.PK.postTypes.map((e=>({text:e.name,value:e.slug}))).filter((e=>!this.options?.postTypes||this.options?.postTypes.includes(e.value)))}get hasUnsavedChanges(){return!st()(this.customInternalValue,this.valueOrDefaults.custom)}get sourceItems(){const e=[{text:(0,v.__)("Post Types"),value:"post_types"},{text:(0,v.__)("Related"),value:"related"}];return On.PK.availableWordpressPlugins.includes("ACF")&&e.push({text:(0,v.__)("ACF Relationship"),value:"acf_relationship"}),e}get applicableConditions(){if("post_types"!==this.customInternalValue.source)return[];const e=(0,Z.Z)(this.customInternalValue.postTypes);e.push("ALL");const t=On.PK.conditions.filter((t=>t.availableForType.some((t=>e.includes(t)))&&t.supports.includes("query_builder")));return(0,T.jp)(t,this.customInternalValue.postTypes)}get orderBy(){const e=[{text:(0,v.__)("Date"),value:"date"},{text:(0,v.__)("Last modified date"),value:"modified"},{text:(0,v.__)("Title"),value:"title"},{text:(0,v.__)("Comments count"),value:"comment_count"},{text:(0,v.__)("Menu order"),value:"menu_order"},{text:(0,v.__)("Random"),value:"rand"}];return On.PK.availableWordpressPlugins.includes("ACF")&&e.push({text:(0,v.__)("ACF"),value:"acf_field"}),On.PK.availableWordpressPlugins.includes("MetaBox")&&e.push({text:(0,v.__)("Meta Box"),value:"metabox_field"}),e}get order(){return[{text:(0,v.__)("Descending"),value:"DESC"},{text:(0,v.__)("Ascending"),value:"ASC"}]}get dates(){return[{text:(0,v.__)("All"),value:"all"},{text:(0,v.__)("Past day"),value:"-1 day"},{text:(0,v.__)("Past week"),value:"-1 week"},{text:(0,v.__)("Past Month"),value:"-1 month"},{text:(0,v.__)("Past Three month"),value:"-3 months"},{text:(0,v.__)("Past Year"),value:"-1 year"},{text:(0,v.__)("Custom"),value:"custom"}]}};(0,a.gn)([(0,r.fI)()],Ss.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],Ss.prototype,"options",void 0),(0,a.gn)([(0,r.RL)("value")],Ss.prototype,"emitDefaultsAfterClearingControl",null),Ss=(0,a.gn)([(0,r.wA)({components:{WpMetaQueryComponent:xs,DatePickerInput:ls.Z,Dialog:B.Z,NiceButton:M.Z,NumberInput:In.Z,Icon:A.Z,CodeInput:ve.Z,TextInput:u.Z,ButtonBarInput:C.Z,MultiselectInput:g.Z,ToggleInput:Ft.Z,DropdownInput:m.Z,ConditionsMatrix:O.Z,Dropdown:Pe.Z}})],Ss);const Cs=Ss,ks=Cs;var Ps=(0,_.Z)(ks,as,is,!1,null,null,null);const Zs=Ps.exports;var Ds=n(61908),Es=n(48228),Ts=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-post-chooser-input"},[t(xe.Z,{staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{value:e.value,items:e.posts,"search-input":e.search,placeholder:e.__("Search by title"),loading:e.loading,"item-text":"title","item-value":"id",multiple:e.options.multiple,"cache-items":"","hide-details":"",dense:"",solo:"",flat:"",filled:""},on:{input:e.edit,"update:searchInput":function(t){e.search=t},"update:search-input":function(t){e.search=t}},scopedSlots:e._u([{key:"no-data",fn:function(){return[t(Ds.Z,[t(Se.V9,[e._v(" "+e._s(e.sprintf(e._doc("No %s found :(","%s: Post type name"),e.postTypeStrong))+" ")])],1)]},proxy:!0},{key:"item",fn:function({item:n,parent:o}){return[e.options.showThumbnails&&n.thumbnail?t(Es.Z,{staticClass:"mr-3"},[t("img",{attrs:{src:n.thumbnail,alt:""}})]):e._e(),t(Se.km,[t(Se.V9,{domProps:{innerHTML:e._s(o.genFilteredText(n.title))}})],1)]}}])})],1)},As=[];const Ms=dn.dt({id:dn.pk,title:dn.Z_,thumbnail:dn.G0([dn.Z_,dn.i0(!1)])}),Vs={multiple:!1,showThumbnails:!1,postType:"post"};let Bs=class extends i.ZP{constructor(){super(...arguments),this.posts=[],this.loading=!1,this.search=""}get postType(){return this.options.postType??"post"}get postTypeStrong(){return`${this.postType}`}async onSearch(){this.posts=await this.getPosts(this.search,this.postType)}async getPosts(e,t){this.loading=!0;const n=(0,gn.pipe)(await(0,Bo.D)({action:"breakdance_get_posts",decoder:dn.IX(Ms),dataToPost:{search:e,postType:t},resultKey:"data"}),(0,mn.fold)((()=>[]),(e=>e)));return this.loading=!1,n}clear(){this.$emit("input",void 0)}edit(e){this.search="",this.$emit("input",e)}};(0,a.gn)([(0,r.fI)()],Bs.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default(){return Vs}})],Bs.prototype,"options",void 0),(0,a.gn)([(0,r.RL)("search")],Bs.prototype,"onSearch",null),Bs=(0,a.gn)([r.wA],Bs);const Os=Bs,Ls=Os;var $s=(0,_.Z)(Ls,Ts,As,!1,null,null,null);const zs=$s.exports;var Ns=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-add-registered-children-elements"},["success"===e.state?[e.elementsRestrictedToBeChildrenOfThisElementWithSearch.length>5||e.search?t("SearchInput",{staticClass:"breakdance-add-registered-children-elements__search",attrs:{placeholder:e.__("Search elements")},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}):e._e(),e._l(e.elementsRestrictedToBeChildrenOfThisElementWithSearch,(function(e,n){return t("AddElement",{key:n,attrs:{element:e}})}))]:"loading"===e.state?[t("div",{staticClass:"d-flex justify-center align-center",staticStyle:{height:"100%"}},[t(Ct.Z,{attrs:{indeterminate:"",size:100,color:"var(--gray300)"}})],1)]:[t("div",{staticClass:"d-flex justify-center align-center pa-4",staticStyle:{height:"100%","font-size":"var(--text-md)","font-weight":"500",color:"var(--gray700)"}},[e._v(" "+e._s(e.__("error: failed to load elements"))+" ")])]],2)},Hs=[],Rs=n(39872),Gs=n(9950),Fs=n(38562),Us=n(20210);let Ws=class extends i.ZP{constructor(){super(...arguments),this.search=""}get elementsRestrictedToBeChildrenOfThisElementWithSearch(){if(!On.kD.activeElement)return[];const e=On.kD.activeElement.data.type,t=Object.values(On.PK.elements).filter((t=>!(!t||(0,Us.GF)(t.addPanelRules,t.settings))&&(!!(0,Gs.Cx)(t,e)||!(!this.options?.addExtraElementsBySlug.includes(t.slug)||!(0,Gs.V4)(t.nestingRule,(0,Gs.V9)(e),e))))).filter((e=>!!e));return(0,Us.tM)(t,this.search)}get state(){return On.PK.elementsLoadingState}};(0,a.gn)([(0,r.fI)()],Ws.prototype,"options",void 0),Ws=(0,a.gn)([(0,r.wA)({components:{SearchInput:Fs.Z,AddElement:Rs.Z}})],Ws);const js=Ws,Xs=js;var qs=(0,_.Z)(Xs,Ns,Hs,!1,null,null,null);const Ks=qs.exports;var Ys=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("NiceButton",{staticClass:"breakdance-trigger-action-button",attrs:{"right-icon":e.options&&e.options.icon},on:{click:e.triggerOnPropertyChangeAction}},[e._v(" "+e._s(e.options.text)+" ")])},Js=[],Qs=n(86687);let ea=class extends i.ZP{triggerOnPropertyChangeAction(){On.kD.activeElementId&&Qs.w.run.onPropertyChange({elementId:On.kD.activeElementId,path:this.path,value:"",previousValue:"",transactionKey:void 0})}};(0,a.gn)([(0,r.fI)({default:()=>({text:"Click"})})],ea.prototype,"options",void 0),(0,a.gn)([(0,r.fI)()],ea.prototype,"path",void 0),ea=(0,a.gn)([(0,r.wA)({components:{NiceButton:M.Z}})],ea);const ta=ea,na=ta;var oa=(0,_.Z)(na,Ys,Js,!1,null,null,null);const sa=oa.exports;var aa=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"builder-behavior-input"},[t("ToggleInput",{attrs:{value:e.value},on:{input:e.edit}})],1)},ia=[];let ra=class extends i.ZP{get value(){return On.kD.builderBehaviorElementId===On.kD.activeElementId}edit(e){const t=e?On.kD.activeElementId:null;On.kD.setBuilderBehaviorElementId(t)}};ra=(0,a.gn)([(0,r.wA)({components:{ToggleInput:Ft.Z}})],ra);const la=ra,ca=la;var ua=(0,_.Z)(ca,aa,ia,!1,null,null,null);const da=ua.exports;var pa=n(38374),ha=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.loadingDefaultApiKey?[t(Ct.Z,{attrs:{width:2,size:20,indeterminate:"",color:"primary"}})]:e._e(),e.loadingDefaultApiKey?e._e():[t("ButtonBar",{staticClass:"mb-3",attrs:{value:e.internalValue.type,items:[{text:e.__("Default"),value:"default"},{text:e.__("Custom"),value:"custom"}],options:{mandatory:!0}},on:{input:e.updateType}})],e.alertBoxDefaultApiErrorOptions&&!e.validationInProgress?t("AlertBox",{attrs:{options:e.alertBoxDefaultApiErrorOptions}}):e._e(),e.alertBoxDefaultApiErrorOptions?t("NiceButton",{staticClass:"mt-2",attrs:{loading:e.validationInProgress},on:{click:e.reloadKey}},[e._v(e._s(e.__("Reload Key")))]):e._e(),"custom"===e.internalValue.type?t("TextInput",{staticClass:"mb-3",attrs:{label:e.apiKeyLabel,value:e.internalValue.apiKey,loading:e.loadingCustomApiKeyValidation},on:{input:e.updateCustomKey}}):e._e(),"custom"===e.internalValue.type&&e.options&&e.options.urlKeyName?t("TextInput",{staticClass:"mb-3",attrs:{label:e.urlKeyLabel,value:e.internalValue.apiUrl,loading:e.loadingCustomApiKeyValidation},on:{input:e.updateCustomUrl}}):e._e(),e.alertBoxInvalidCustomApiKeyOptions?t("AlertBox",{attrs:{options:e.alertBoxInvalidCustomApiKeyOptions}}):e._e()],2)},ga=[],ma=n(23279),va=n.n(ma),fa=n(89883),ya=n(51168);const ba=dn.dt({type:dn.Z_,message:dn.Z_});async function _a(){return(0,Et.zG)(await(0,ya.QI)("api_keys",dn.G0([dn.i0(!1),dn.IM(dn.Z_,dn.Z_)])),(0,Tt.g_)((()=>({})),(e=>e)))}async function Ia(e){return(0,Et.zG)(await(0,Bo.D)({action:"breakdance_validate_api_key",decoder:ba,resultKey:"data",dataToPost:e}),(0,Tt.g_)((()=>({type:"error",message:"Server error while validating the API key"})),(e=>e)))}let wa=class extends i.ZP{constructor(){super(...arguments),this.internalValue=this.value||{type:"default",apiKey:null},this.defaultApiKey=null,this.defaultApiUrl=null,this.customApiKeyValidated=null,this.defaultApiKeyValidated=null,this.loadingCustomApiKeyValidation=!1,this.loadingDefaultApiKey=!1,this.throttledValidateCustomApiKey=va()(this.validateCustomApiKey,500),this.validationInProgress=!1}async mounted(){this.loadingDefaultApiKey=!0,await this.getDefaultKeyAndValidateIt(),await this.validateCustomApiKey(),this.emit(this.internalValue),this.loadingDefaultApiKey=!1}reloadKey(){this.getDefaultKeyAndValidateIt()}updateInternalValue(){this.internalValue=this.value||{type:"default",apiKey:null},this.getDefaultKeyAndValidateIt(),this.validateCustomApiKey()}async updateCustomKey(e){this.internalValue.apiKey=e,this.emit(this.internalValue),this.throttledValidateCustomApiKey()}async updateCustomUrl(e){this.internalValue.apiUrl=e,this.emit(this.internalValue),this.throttledValidateCustomApiKey()}updateType(e){this.internalValue.type=e,this.defaultApiKeyValidated=null,this.emit(this.internalValue),"default"===e&&this.getDefaultKeyAndValidateIt()}emit(e){st()(e,{type:"default",apiKey:null})?this.$emit("input",null):this.$emit("input",e)}async getDefaultKeyAndValidateIt(){this.validationInProgress=!0;const e=await _a();this.defaultApiKey=this.options?.apiKeyName&&e?e[this.options.apiKeyName]:null,this.defaultApiUrl=this.options?.urlKeyName&&e?e[this.options.urlKeyName]:null,await this.validateDefaultApiKey(),this.validationInProgress=!1}async validateDefaultApiKey(){"default"===this.internalValue.type&&this.options?.apiKeyName&&this.defaultApiKey?this.defaultApiKeyValidated=await Ia({apiKeyName:this.options.apiKeyName,apiKey:this.defaultApiKey,apiUrl:this.defaultApiUrl}):this.defaultApiKeyValidated=null}async validateCustomApiKey(){"custom"===this.internalValue.type&&this.internalValue.apiKey&&this.options?.apiKeyName?(this.loadingCustomApiKeyValidation=!0,this.customApiKeyValidated=await Ia({apiKeyName:this.options.apiKeyName,apiKey:this.internalValue.apiKey,apiUrl:this.internalValue.apiUrl}),this.loadingCustomApiKeyValidation=!1):this.customApiKeyValidated=null}get alertBoxDefaultApiErrorOptions(){const e=`WP Admin`;return"error"===this.defaultApiKeyValidated?.type?{style:"error",content:(0,v.gB)((0,v.__)("%s. Set it in the %s."),this.defaultApiKeyValidated?.message,e)}:!(!this.options?.apiKeyName||"default"!==this.internalValue.type||this.defaultApiKey||null===this.defaultApiKey)&&{style:"error",content:(0,v.gB)((0,v.TZ)("%s not present. Set it in the %s.","1: API key name, 2: settings page link"),this.apiKeyLabel,e)}}get apiKeyLabel(){return this.options?.apiKeyLabel||(0,v.__)("API Key")}get urlKeyLabel(){return this.options?.urlKeyLabel||(0,v.__)("URL")}get alertBoxInvalidCustomApiKeyOptions(){if("custom"===this.internalValue.type){if(!this.internalValue.apiKey)return{style:"warning",content:(0,v.__)("Please enter an API key")};if("error"===this.customApiKeyValidated?.type&&this.customApiKeyValidated?.message)return{style:"error",content:this.customApiKeyValidated.message}}return!1}};(0,a.gn)([(0,r.fI)()],wa.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],wa.prototype,"options",void 0),(0,a.gn)([(0,r.RL)("value")],wa.prototype,"updateInternalValue",null),wa=(0,a.gn)([(0,r.wA)({components:{AlertBox:Oe.Z,TextInput:u.Z,ButtonBar:fa.Z,ButtonBarInput:C.Z,NiceButton:M.Z}})],wa);const xa=wa,Sa=xa;var Ca=(0,_.Z)(Sa,ha,ga,!1,null,null,null);const ka=Ca.exports;var Pa=n(47256),Za=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"conditional-form-field-input"},[t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(e._s(e.__("When field")))])]),t("DropdownInput",{attrs:{"dropdown-options":e.internalDropdownOptions,value:e.fieldToCompareId},on:{selected:e.editField}}),t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff mt-2"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(e._s(e.__("Operand")))])]),t("DropdownInput",{attrs:{items:e.operandOptions,value:e.internalValue.operand},on:{input:e.editOperand}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isOperandSetOrNot,expression:"!isOperandSetOrNot"}],staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-control-wrapper-control-label mt-2"},[e._v(e._s(e.__("Value")))])]),e.isOperandSetOrNot?t("span"):e.isString?t("TextInput",{attrs:{value:e.internalValue.value},on:{input:e.editValue}}):e.isDate?t("DatePickerInput",{attrs:{value:e.internalValue.value},on:{input:e.editValue}}):e.isTime?t("TimePickerInput",{attrs:{value:e.internalValue.value},on:{input:e.editValue}}):e.hasOptions&&!e.multiSelectOperand?t("DropdownInput",{attrs:{value:e.internalValue.value,items:e.availableOptions},on:{input:e.editValue}}):e.hasOptions&&e.multiSelectOperand?t("MultiselectInput",{attrs:{items:e.availableOptions,value:e.valueAsArray},on:{input:e.editValue}}):e._e(),!e.selectedOption&&e.isValueToCompareSet&&e.isArrayLikeValue&&!e.isString?t("AlertBox",{staticClass:"mt-3",attrs:{options:{style:"error",content:e.sprintf(e._doc("The option %s is not available anymore, please select a new one.","%s: Option value"),e.optionValueBold)}}}):e._e()],1)},Da=[];const Ea={field:null,operand:null,value:null};let Ta=class extends i.ZP{constructor(){super(...arguments),this.internalValue=this.value||Ea}updateInternalValue(){this.internalValue=this.value||Ea}get fieldToCompareId(){return"string"===typeof this.internalValue?.field?this.internalValue.field:this.internalValue?.field?.advanced?.id}get valueAsArray(){return Array.isArray(this.internalValue?.value)?this.internalValue.value:[]}get isValueToCompareSet(){return this.internalValue.value?.length}get optionValueBold(){return`${this.internalValue?.value}`}get operandOptions(){if(null===this.field)return[];if("file"===this.field?.type)return[{text:(0,v.__)("is set"),value:"is set"},{text:(0,v.__)("is not set"),value:"is not set"}];const e=[{text:(0,v.__)("equals"),value:"equals"},{text:(0,v.__)("not equals"),value:"not equals"},{text:(0,v.__)("is set"),value:"is set"},{text:(0,v.__)("is not set"),value:"is not set"}];return this.isArrayLikeValue&&e.push({text:(0,v.__)("is one of"),value:"is one of"},{text:(0,v.__)("is none of"),value:"is none of"},{text:(0,v.__)("contains"),value:"contains"},{text:(0,v.__)("does not contain"),value:"does not contain"}),this.isDate&&e.push({text:(0,v.__)("is before"),value:"is before date"},{text:(0,v.__)("is after"),value:"is after date"}),this.isTime&&e.push({text:(0,v.__)("is before"),value:"is before time"},{text:(0,v.__)("is after"),value:"is after time"}),this.isNumber&&e.push({text:(0,v.__)("is greater than"),value:"is greater than"},{text:(0,v.__)("is less than"),value:"is less than"}),e}get multiSelectOperand(){return"is one of"===this.value?.operand||"is none of"===this.value?.operand}editField(e){this.internalValue.field=e?.advanced?.id,this.internalValue.value=Ea.value,this.internalValue.operand=Ea.operand,this.$emit("input",this.internalValue)}editOperand(e){this.internalValue.operand=e,this.$emit("input",this.internalValue)}editValue(e){this.internalValue.value=e,this.$emit("input",this.internalValue)}get field(){const e=this.context.getControlValue("content.form.fields"),t=e||null;return t?.find((e=>e?.advanced?.id===this.fieldToCompareId))}get internalDropdownOptions(){if(!this.dropdownOptions)return this.dropdownOptions;const e=this.dropdownOptions;return e.populate&&(e.populate.condition={path:"advanced.id",operand:"not equals",value:this.fieldId}),e}get availableOptions(){return this.field?.options?.map((e=>{const t=null===e.value||void 0===e.value||""===e.value;return{text:e.label,value:t?e.label:e.value}}))}get selectedOption(){const e=Array.isArray(this.internalValue.value)?this.internalValue.value:[this.internalValue.value];return e.some((e=>this.availableOptions?.some((t=>t.value===e))))}get hasOptions(){return!!this.field?.options}get isNumber(){return"number"===this.field?.type}get isDate(){return"date"===this.field?.type}get isTime(){return"time"===this.field?.type}get isString(){return!this.isDate&&!this.isTime&&!this.hasOptions&&!this.isOperandSetOrNot}get isArrayLikeValue(){return this.isString||"checkbox"===this.field?.type||this.field?.multiple}get isOperandSetOrNot(){return"is set"===this.internalValue.operand||"is not set"===this.internalValue.operand}};(0,a.gn)([(0,r.tB)("context")],Ta.prototype,"context",void 0),(0,a.gn)([(0,r.fI)()],Ta.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],Ta.prototype,"dropdownOptions",void 0),(0,a.gn)([(0,r.fI)()],Ta.prototype,"fieldId",void 0),(0,a.gn)([(0,r.RL)("value")],Ta.prototype,"updateInternalValue",null),Ta=(0,a.gn)([(0,r.wA)({components:{AlertBox:Oe.Z,TimePickerInput:pa.Z,MultiselectInput:g.Z,DatePickerInput:ls.Z,DropdownInput:m.Z,TextInput:u.Z}})],Ta);const Aa=Ta,Ma=Aa;var Va=(0,_.Z)(Ma,Za,Da,!1,null,null,null);const Ba=Va.exports;var Oa=n(43195),La=n(4998),$a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"interactions"},[t("ControlsTree",{attrs:{controls:e.controls,path:e.fullPath}})],1)},za=[];let Na=class extends r.w3{constructor(){super(...arguments),this.cssSelectorCondition=[{path:"%%CURRENTPATH%%.target",operand:"equals",value:"custom"},{path:"%%CURRENTPATH%%.trigger",operand:"is none of",value:["page_loaded","page_scrolled"]}]}get fullPath(){return this.path.replace(".interactions","")}get internalValue(){return this.value||{action:"",options:{}}}beforeCreate(){this.$options.components.ControlsTree=n(20951)["default"]}get actions(){return On.PK.interactions?.actions||[]}get triggers(){return On.PK.interactions?.triggers||[]}get action(){return this.actions.find((e=>e.slug===this.value?.action))}get controls(){const e=this.actions.flatMap((e=>e.controls.map((t=>({...t,options:{...t.options,condition:{path:"%%CURRENTPATH%%.name",operand:"equals",value:e.slug}}}))))),t=this.triggers.flatMap((e=>e.controls.map((t=>({...t,options:{...t.options,condition:{path:"%%CURRENTPATH%%.trigger",operand:"equals",value:e.slug}}})))));return[{slug:"interactions",label:(0,v.__)("Interactions"),noLabel:!0,options:{type:"repeater",layout:"vertical",repeaterOptions:{titleTemplate:"{trigger}",defaultTitle:(0,v.__)("Interaction"),buttonName:(0,v.__)("Add Interaction"),noDataMessage:(0,v.__)("None")}},children:[{slug:"trigger",label:(0,v.__)("Trigger"),options:{layout:"vertical",type:"dropdown",items:this.triggers.map((e=>({value:e.slug,text:e.name})))}},{slug:"target",label:(0,v.__)("Target"),options:{type:"dropdown",layout:"vertical",condition:{path:"%%CURRENTPATH%%.trigger",operand:"is none of",value:["page_loaded","page_scrolled"]},items:[{value:"this_element",text:(0,v.__)("This Element")},{value:"custom",text:(0,v.__)("CSS Selector")}]}},{slug:"css_selector",label:(0,v.__)("CSS Selector"),options:{type:"text",layout:"vertical",condition:[this.cssSelectorCondition]}},{slug:"match",label:(0,v.__)("Match"),options:{layout:"vertical",type:"dropdown",items:[{value:"everywhere",text:(0,v.__)("Everywhere")},{value:"limit_to_this_element",text:(0,v.__)("Only Children Of This Element")},{value:"closest_parent",text:(0,v.__)("Closest Parent")}],placeholder:(0,v.__)("Everywhere"),condition:[this.cssSelectorCondition]}},...t,{slug:"actions",label:(0,v.__)("Actions"),options:{type:"repeater",layout:"vertical",repeaterOptions:{titleTemplate:"{name}",defaultTitle:(0,v.__)("Action"),buttonName:(0,v.__)("Add Action")}},children:[{slug:"name",label:(0,v.__)("Action"),options:{layout:"vertical",type:"dropdown",items:this.actions.map((e=>({value:e.slug,text:e.name})))}},...e,{slug:"target",label:(0,v.__)("Target"),options:{type:"dropdown",layout:"vertical",items:[{value:"this_element",text:(0,v.__)("This Element")},{value:"custom",text:(0,v.__)("CSS Selector")},{value:"target",text:(0,v.__)("Target")}]}},{slug:"css_selector",label:(0,v.__)("CSS Selector"),options:{type:"text",layout:"vertical",condition:[this.cssSelectorCondition]}},{slug:"match",label:(0,v.__)("Match"),options:{layout:"vertical",type:"dropdown",items:[{value:"everywhere",text:(0,v.__)("Everywhere")},{value:"limit_to_this_element",text:(0,v.__)("Only Children Of This Element")},{value:"closest_parent",text:(0,v.__)("Closest Parent")},{value:"children_of_target",text:(0,v.__)("Children of Target")}],placeholder:(0,v.__)("Everywhere"),condition:[this.cssSelectorCondition]}},{slug:"advanced",label:(0,v.__)("Advanced"),keywords:[],options:{type:"section",sectionOptions:{type:"popout"}},children:[{slug:"run_only_once",label:(0,v.__)("Run Only Once"),options:{type:"toggle",layout:"inline"}},{slug:"disable_at",label:(0,v.__)("Disable At"),options:{type:"breakpoint_dropdown",layout:"vertical",breakpointOptions:{multiple:!0}}}]}]}]}]}};(0,a.gn)([(0,r.fI)()],Na.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],Na.prototype,"path",void 0),Na=(0,a.gn)([(0,r.wA)({components:{DropdownInput:m.Z}})],Na);const Ha=Na,Ra=Ha;var Ga=(0,_.Z)(Ra,$a,za,!1,null,null,null);const Fa=Ga.exports;var Ua=n(85412),Wa=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t(xe.Z,{staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{value:e.value,items:e.presetsForDropdown,dense:"",solo:"",flat:"",filled:"","hide-details":!0,"no-data-text":e.__("No presets available")},on:{change:e.updatePreset}}),t("NiceButton",{staticClass:"mt-4",on:{click:e.managePresets}},[e._v(" "+e._s(e.__("Manage Presets"))+" ")])],1)},ja=[];let Xa=class extends r.w3{get presetsForDropdown(){return this.globalPresets.map((e=>({text:e.name,value:e.id})))}get globalPresets(){return(On.cr.buttonPresets||[]).filter((e=>e.name&&e.id))}updatePreset(e){e?this.$emit("input",e):this.$emit("input",null)}managePresets(){(0,yo.v)("settings.buttons",!0),(0,Nn.oM)("globalSettings"),(0,yo.v)("settings.buttons.button_presets",!1),this.$nextTick((()=>{(0,yo.v)("settings.buttons.button_presets",!0)}))}};(0,a.gn)([(0,r.fI)()],Xa.prototype,"value",void 0),Xa=(0,a.gn)([(0,r.wA)({components:{NiceButton:M.Z}})],Xa);const qa=Xa,Ka=qa;var Ya=(0,_.Z)(Ka,Wa,ja,!1,null,"7e480910",null);const Ja=Ya.exports;let Qa=class extends i.ZP{beforeCreate(){this.$options.components.Repeater=n(62485).Z,this.$options.components.ControlsTree=n(20951)["default"]}edit(e){const t=(0,jo.lX)(e);e instanceof Ut.A3?this.context.setControlValue(this.path,t,this.control,e.meta):this.context.setControlValue(this.path,t,this.control)}saveDynamicMetaData(e){this.context.setControlValue((0,Oa.k2)(this.path),e,this.control)}get isDynamic(){return void 0!==this.dynamicField&&null!==this.dynamicField}get testId(){return`control-${this.path.replace(/\./g,"-")}`}get placeholder(){return""!==this.previousBreakpointValue&&void 0!==this.previousBreakpointValue&&null!==this.previousBreakpointValue?this.previousBreakpointValue:this.control.options.placeholder}clear(){(0,Pa.ZH)(this.path,this.control,this.context)}get parent(){const e=this.path.split(".");return e.pop(),this.context.getControlValue(e.join("."))??null}};(0,a.gn)([(0,r.fI)()],Qa.prototype,"control",void 0),(0,a.gn)([(0,r.fI)()],Qa.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],Qa.prototype,"previousBreakpointValue",void 0),(0,a.gn)([(0,r.fI)()],Qa.prototype,"path",void 0),(0,a.gn)([(0,r.fI)()],Qa.prototype,"dynamicField",void 0),(0,a.gn)([(0,r.fI)({default:!1})],Qa.prototype,"acceptsVariable",void 0),(0,a.gn)([(0,r.tB)("context")],Qa.prototype,"context",void 0),Qa=(0,a.gn)([(0,r.wA)({components:{ButtonPresetInput:Ja,OverrideVariablesInput:Ua.Z,InteractionsInput:Fa,ProOnlyAlertBox:La.Z,ConditionalFormFieldInput:Ba,TimePickerInput:pa.Z,DatePickerInput:ls.Z,ApiKeyInput:ka,BuilderBehaviorInput:da,TriggerActionButton:sa,AddRegisteredChildrenControl:Ks,PostChooserInput:zs,CustomTypographyInput:lo,SliderInput:ts,MediaSizeInput:ns.Z,WpQueryControl:Zs,VideoInput:Uo.Z,LinkInput:Wo.Z,TypographyPresetLabelAndIdInput:Eo,ElementScreenshot:Fo,NumberInput:In.Z,URLInput:Dn,FocusPointInput:En.Z,ShadowInput:_n,RichTextInput:Gt,ToggleInput:Ft.Z,GlobalColorsInput:en,InlineRepeater:qt.Z,MultiselectInput:g.Z,BreakpointInput:w,TextInput:u.Z,UnitInput:S.Z,DropdownInput:m.Z,ColorInput:ge.Z,WPMediaInput:me.Z,DynamicInput:x.Z,ConditionInput:te,FontFamilyInput:ne.Z,SpacingComplex:he,BorderComplex:fe.Z,BorderRadius:ye.Z,ButtonBarInput:C.Z,CodeInput:ve.Z,ClassInput:Re,IconInput:Ge.Z,GlobalBlockInput:Qe,ComponentInput:ut,MessageControl:ln,TypographyInput:xo,AlertBox:Oe.Z}})],Qa);const ei=Qa,ti=ei;var ni=(0,_.Z)(ti,l,c,!1,null,null,null);const oi=ni.exports;var si=n(43432),ai=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"control-hover-enabler-wrapper"},[e.enabled?[t(si.Z,{attrs:{right:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[t("div",e._g(e._b({class:e.classes,on:{click:function(t){return e.$emit("click")}}},"div",o,!1),n),[t("Icon",{attrs:{icon:"HoverIcon",size:"10"}})],1)]}}])},[t("span",[e._v(e._s(e.__("editing hover style")))])])]:[t("div",{class:e.classes,on:{click:function(t){return e.$emit("click")}}},[t("Icon",{attrs:{icon:"HoverIcon",size:"10"}})],1)]],2)},ii=[];let ri=class extends i.ZP{get classes(){return{"breakdance-control-modifier-icon":!0,"breakdance-control-modifier-icon-enabled":this.enabled,"breakdance-control-modifier-icon-value-present":this.hoverValuePresent}}};(0,a.gn)([(0,r.fI)()],ri.prototype,"hoverValuePresent",void 0),(0,a.gn)([(0,r.fI)()],ri.prototype,"enabled",void 0),ri=(0,a.gn)([(0,r.wA)({components:{Icon:A.Z}})],ri);const li=ri,ci=li;var ui=(0,_.Z)(ci,ai,ii,!1,null,null,null);const di=ui.exports;var pi=n(96074),hi=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"control-breakpoint-chooser-wrapper"},[t("Dropdown",{attrs:{"offset-y":"","z-index":e.zIndex},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({class:{"breakdance-control-modifier-icon":!0,"breakdance-control-modifier-icon-enabled":!e.isBase,"breakdance-control-modifier-icon-value-present":!e.isBase&&e.valuePresent(e.currentBreakpoint.id)}},n),[t("Icon",{staticClass:"control-breakpoint-chooser-breakpoint-icon",attrs:{icon:e.getDeviceIcon(e.currentBreakpoint.id),rotate:e.getDeviceIconRotation(e.currentBreakpoint.id),size:"10"}})],1)]}}])},[t("div",{staticClass:"control-breakpoint-chooser-dropdown"},e._l(e.breakpoints,(function(n){return t("div",{key:n.id,staticClass:"control-breakpoint-chooser-dropdown-item",class:e.valuePresentClass(n.id),on:{click:function(t){return e.changeBreakpoint(n)}}},[e.isCustomBreakpoint(n.id)?[t(si.Z,{attrs:{right:""},scopedSlots:e._u([{key:"activator",fn:function({on:o,attrs:s}){return[t("div",e._g(e._b({staticClass:"control-breakpoint-chooser-device-icon-wrapper"},"div",s,!1),o),[t("Icon",{attrs:{icon:e.getDeviceIcon(n.id),rotate:e.getDeviceIconRotation(n.id),size:"10"}})],1)]}}],null,!0)},[t("span",[e._v(e._s(n.label))])])]:[t("div",{staticClass:"control-breakpoint-chooser-device-icon-wrapper"},[t("Icon",{attrs:{icon:e.getDeviceIcon(n.id),rotate:e.getDeviceIconRotation(n.id),size:"10"}})],1)]],2)})),0)])],1)},gi=[],mi=n(57088);let vi=class extends i.ZP{get valuePresent(){return e=>!(!this.breakpointsWithValue.length||!this.breakpointsWithValue.includes(e))||!!this.context?.getControlValue(`${this.path}.${e}`)}isCustomBreakpoint(e){return!mi.b8[e]?.icon}valuePresentClass(e){return!!this.valuePresent(e)&&"control-breakpoint-chooser-breakpoint-dropdown-value-present"}get breakpoints(){return h.configStore.breakpoints}getDeviceIcon(e){return mi.b8[e]?.icon||mi.nR}getDeviceIconRotation(e){return mi.b8[e]?.rotate}get isBase(){return this.currentBreakpoint.id===mi.Wp}get currentBreakpoint(){return h.uiStore.currentBreakpoint}changeBreakpoint(e){h.uiStore.changeBreakpoint(e)}};(0,a.gn)([(0,r.fI)()],vi.prototype,"path",void 0),(0,a.gn)([(0,r.tB)({from:"context",default:null})],vi.prototype,"context",void 0),(0,a.gn)([(0,r.fI)({default:()=>[]})],vi.prototype,"breakpointsWithValue",void 0),(0,a.gn)([(0,r.fI)({default:void 0})],vi.prototype,"zIndex",void 0),vi=(0,a.gn)([(0,r.wA)({components:{Icon:A.Z,Dropdown:Pe.Z}})],vi);const fi=vi,yi=fi;var bi=(0,_.Z)(yi,hi,gi,!1,null,null,null);const _i=bi.exports;var Ii=n(60883),wi=n(5502),xi=n(69137),Si=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dropdown",{staticClass:"inline-ai-dropdown",attrs:{"max-width":"280","min-width":"280","max-height":"70vh","nudge-right":220,"nudge-top":-18,"close-on-content-click":!1,title:"Breakdance AI"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("button",e._g({staticClass:"breakdance-control-modifier-icon"},n),[t("Icon",{attrs:{icon:"SparklesIcon",size:"10"}})],1)]}},{key:"actions",fn:function(){return[t("button",{staticClass:"ml-auto dropdown-close-icon dropdown-action-icon",on:{click:e.toggleLock}},[t("Icon",{attrs:{icon:e.locked?"LockIcon":"UnlockIcon",size:"16"}})],1)]},proxy:!0}]),model:{value:e.dialogOpen,callback:function(t){e.dialogOpen=t},expression:"dialogOpen"}},[e.showError?t(gt.Z,{staticClass:"inline-ai-content"},[t("div",{staticClass:"inline-ai-inner"},[e.loadingSettings?t(Ct.Z,{staticClass:"d-block mx-auto my-4",attrs:{size:"48",indeterminate:"",color:"var(--indigo600)"}}):e.pluginNotInstalled?t("InlineAiPluginNotInstalled"):e.settings.isApiKeySet?e._e():t("InlineAiNoApiKey")],1)]):t(gt.Z,{staticClass:"inline-ai-content",class:{"inline-ai-content--css":e.cssMode,"inline-ai-content--empty":!e.completions.length}},["image"!==e.mode?t("div",{staticClass:"inline-ai-inner"},[e.cssMode&&!e.completions.length?t("div",{staticClass:"inline-ai-code"},[t("Icon",{staticClass:"inline-ai-code__icon",attrs:{icon:"CodeIcon",size:"20"}}),t("h4",{staticClass:"inline-ai-code__subtitle"},[e._v(" "+e._s(e.__("Write CSS with AI."))+" ")])],1):e._e(),e.completions.length?t("div",{ref:"content",staticClass:"inline-ai-completions"},e._l(e.completions,(function(n,o){return t("InlineAiCompletion",{key:o,attrs:{completion:n,cssMode:e.cssMode},on:{insert:e.insert,rephrase:function(t){return e.rephrase(t,o)},delete:e.removeCompletion}})})),1):e._e(),e.canViewPresets?t("div",{staticClass:"inline-ai-presets"},e._l(e.presets,(function(n){return t("button",{staticClass:"inline-ai-preset",on:{click:function(t){return e.createBulkCompletions(n.prompt||"")}}},[t("Icon",{staticClass:"inline-ai-preset__icon",attrs:{icon:n.icon||"SparklesIcon"}}),e._v(" "+e._s(n.name)+" ")],1)})),0):e._e(),e.canViewPresets?t("div",{staticClass:"inline-ai-variations"},[t("NumberInput",{staticClass:"inline-ai-variations__input",model:{value:e.variations,callback:function(t){e.variations=t},expression:"variations"}}),e._v(" "+e._s(e.__("Variations"))+" ")],1):e._e()]):e._e(),"image"===e.mode?t("div",{staticClass:"inline-ai-inner"},[t("div",{staticClass:"inline-ai-image-mode-info"},[t("Icon",{staticClass:"inline-ai-image-mode-info__icon",attrs:{icon:"PhotoIcon",size:"20"}}),t("p",{staticClass:"inline-ai-image-mode-info__text"},[e._v(" "+e._s(e.__("Use the lock icon to prevent AI from changing this image during bulk rewrites."))+" ")])],1)]):e._e(),"image"!==e.mode?t("div",{staticClass:"inline-ai-chat",class:{"inline-ai-chat--invalid":e.invalidInput}},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.userInput,expression:"userInput"}],ref:"input",staticClass:"inline-ai-chat-input",attrs:{type:"text",placeholder:e.__("Tell us to...")},domProps:{value:e.userInput},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.shiftKey?t.ctrlKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.createBulkCompletions(e.userInput)):null},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.metaKey?t.ctrlKey||t.shiftKey||t.altKey?null:(t.preventDefault(),e.createBulkCompletions(e.userInput)):null}],input:function(t){t.target.composing||(e.userInput=t.target.value)}}}),t("button",{staticClass:"inline-ai-chat-submit",on:{click:function(t){return e.createBulkCompletions(e.userInput)}}},[t("Icon",{attrs:{icon:"ArrowTurnDownLeftIcon"}})],1)]):e._e()])],1)},Ci=[],ki=n(9600),Pi=n(58720),Zi=n(8178),Di=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"inline-ai-completion"},[t("p",{staticClass:"inline-ai-completion__prompt truncate",attrs:{title:e.completion.prompt}},[e._v(" "+e._s(e.completion.prompt)+" ")]),e.completion.loading&&!e.completion.text?t(Zi.Z,{staticClass:"inline-ai-skeleton",attrs:{type:"list-item-two-line"}}):e.cssMode?t("CodeInput",{attrs:{value:e.completion.text,disabled:!0,language:"css"}}):t("p",{staticClass:"inline-ai-completion__text",class:{"inline-ai-completion__text--truncate":e.completion.text.length>150&&!e.completion.expanded},domProps:{innerHTML:e._s(e.completion.text)}}),e.completion.text.length>150&&!e.cssMode?t("button",{staticClass:"inline-ai-completion__expand",on:{click:function(t){e.completion.expanded=!e.completion.expanded}}},[t("Icon",{attrs:{icon:e.completion.expanded?"ArrowUpIcon":"ArrowDownIcon",size:"12"}})],1):e._e(),e.completion.loading?e._e():t("div",{staticClass:"inline-ai-actions"},[t("button",{staticClass:"inline-ai-action inline-ai-action--insert",on:{click:function(t){return e.$emit("insert",e.completion.text)}}},[e._v(" "+e._s(e.__("Insert"))+" ")]),e.cssMode?e._e():t("button",{staticClass:"inline-ai-action",on:{click:function(t){return e.$emit("rephrase",e.completion.text)}}},[e._v(" "+e._s(e.__("Rephrase"))+" ")]),t("button",{staticClass:"inline-ai-action inline-ai-action--delete",on:{click:function(t){return e.$emit("delete",e.completion.text)}}},[t("Icon",{attrs:{icon:"TrashIcon",size:"12"}})],1)])],1)},Ei=[];let Ti=class extends r.w3{};(0,a.gn)([(0,r.fI)({default:()=>({})})],Ti.prototype,"completion",void 0),(0,a.gn)([(0,r.fI)({default:!1})],Ti.prototype,"cssMode",void 0),Ti=(0,a.gn)([(0,r.wA)({components:{Icon:A.Z,Dropdown:ki.Z,TextInput:u.Z,LoadingSpinner:Pi.Z,CodeInput:ve.Z}})],Ti);const Ai=Ti,Mi=Ai;var Vi=(0,_.Z)(Mi,Di,Ei,!1,null,null,null);const Bi=Vi.exports;var Oi=n(76491),Li=n(74959),$i=n(31381),zi=n(45335),Ni=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"inline-ai-error-message"},[t("p",[e._v(" "+e._s(e.__("The Breakdance AI Plugin is not installed. Please install it to use the AI assistant."))+" ")]),t("a",{attrs:{href:"https://breakdance.com/ai",target:"_blank",rel:"noopener noreferrer"}},[t("NiceButton",{attrs:{color:"indigo",expanded:!0}},[e._v(" "+e._s(e.__("Install Now"))+" ")])],1)])},Hi=[];let Ri=class extends r.w3{};Ri=(0,a.gn)([(0,r.wA)({components:{NiceButton:M.Z}})],Ri);const Gi=Ri,Fi=Gi;var Ui=(0,_.Z)(Fi,Ni,Hi,!1,null,"2096c8a6",null);const Wi=Ui.exports;var ji=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"inline-ai-error-message"},[t("p",[e._v(" "+e._s(e.__("You need to set up your OpenAI API key before you can use the AI assistant."))+" ")]),t("a",{attrs:{href:e.wpAdminSettingsAiTabUrl,target:"_blank",rel:"noopener noreferrer"}},[t("NiceButton",{attrs:{color:"indigo",expanded:!0}},[e._v(" "+e._s(e.__("Set Up API Key"))+" ")])],1)])},Xi=[];let qi=class extends r.w3{get wpAdminSettingsAiTabUrl(){return"wp-admin/admin.php?page="+this.$bdox("admin_page_settings_slug")+"&tab=ai"}};qi=(0,a.gn)([(0,r.wA)({components:{NiceButton:M.Z}})],qi);const Ki=qi,Yi=Ki;var Ji=(0,_.Z)(Yi,ji,Xi,!1,null,"7fd922a2",null);const Qi=Ji.exports;let er=class extends r.w3{constructor(){super(...arguments),this.userInput="",this.completions=[],this.variations=1,this.invalidInput=!1,this.dialogOpen=!1,this.pluginNotInstalled=!1,this.settingsAlreadyLoaded=!1,this.loadingSettings=!1}get locked(){return!!h.uiStore.activeElement&&(0,zi.rn)(h.uiStore.activeElement,this.path)}toggleLock(){h.uiStore.activeElement&&(0,zi.Fg)(h.uiStore.activeElement,this.path)}onValueChange(){this.completions=[]}onDialogOpenChange(){this.dialogOpen&&(this.tryToLoadSettings(),setTimeout((()=>{this.$nextTick((()=>{const e=this.$refs.input;e?.focus()}))}),100))}onUserInputChange(){this.autogrowTextarea()}get element(){return h.uiStore.activeElement}get elementConfig(){return this.element?h.configStore.element(this.element.data.type):{}}get acceptsHtml(){return!!this.element&&"EssentialElements\\RichText"===this.element.data.type}get presets(){const e=[{icon:"MinusIcon",name:(0,v.__)("Shorten it"),prompt:(0,v.__)("Shorten the text")},{icon:"PenIcon",name:(0,v.__)("Continue writing"),prompt:(0,v.__)("Continue writing the text")},{icon:"SparklesIcon",name:(0,v.__)("More interesting"),prompt:(0,v.__)("Make the text more interesting")},{icon:"UserTieIcon",name:(0,v.__)("More formal"),prompt:(0,v.__)("Make the text more formal")},{icon:"SpellCheckIcon",name:(0,v.__)("Correct grammar"),prompt:(0,v.__)("Correct the grammar of the text")},{icon:"SparklesIcon",name:(0,v.__)("One-Click Write"),prompt:(0,v.__)("Create a new, original piece of text that complements and enhances the existing material.")}];return this.settings.prompt.presets.length?[...this.settings.prompt.presets,...e]:e}get format(){return this.cssMode?"css":"text"}get canViewPresets(){return!this.cssMode&&!this.completions.length}get settings(){return h.globalStore.aiSettings}get showError(){return!this.settingsAlreadyLoaded||!this.settings.isApiKeySet||this.pluginNotInstalled}scrollToBottom(){this.$nextTick((()=>{const e=this.$refs.content;if(!e)return;const t=e.closest(".v-menu__content");t.scrollTop=t.scrollHeight}))}insert(e){this.$emit("insert",e),this.dialogOpen=!1}async rephrase(e,t){const n=[{role:"system",content:(0,v.__)("Rephrase the text provided by the user.")},{role:"user",content:e}],o=this.completions[t];o.text="",o.loading=!0;try{this.settings.isStreamingEnabled?await this.streamCompletion(n,(e=>{o.text=e})):await this.fetchCompletion(n,(e=>{o.text=e}))}catch(s){this.handleError(s),this.removeCompletion(t)}o.loading=!1,o.expanded=!0}async streamCompletion(e,t){if(!this.element)return;await(0,Oi.ho)(e,this.format,(0,zi.Wh)(this.element));const n=(0,Oi.m3)();let o="";return new Promise(((e,s)=>{n.onmessage=async s=>{"[DONE]"===s.data?(n.close(),e(o),t(o)):(o+=(0,Oi.y8)(s.data)??"",t(o))},n.onerror=e=>{n.close(),s(e.data)}}))}async fetchCompletion(e,t){const n=(0,gn.pipe)(await(0,Oi.Tk)(e,this.format,"breakdance_ai_request_completion",!1),(0,mn.fold)((()=>(0,v.__)("⚠️ Could not generate content, please try again.")),(e=>e)));t(n)}createBulkCompletions(e){for(let t=0;t{t.text=e})):await this.fetchCompletion(n,(e=>{t.text=e}))}catch(o){this.handleError(o),this.removeCompletion(this.completions.length-1)}this.cssMode&&(t.text=this.postProcessCss(t.text)),t.loading=!1,this.scrollToBottom()}removeCompletion(e){this.completions.splice(e,1)}getCssMessages(e){const t=this.elementConfig.className,n=this.elementConfig.defaultCss,o=h.globalStore.globalColors.map((e=>`- Name: ${e.label}, CSS Variable: ${e.cssVariableName}`)).join("\n"),s=h.configStore.breakpoints.map((e=>`- Name: ${e.label}, Max-Width: ${e.maxWidth}px`)).join("\n");return[{role:"system",content:`\nYou are a helpful AI assistant. Your job is to help the user write CSS for their website.\n\nThe user will ask you to do something and you will do so by writing CSS, you are allowed to use the following CSS selectors delimited by triple quotes:\n\n"""\n${n}\n"""\n\n### Rules\n- Always prefix your CSS with ".breakdance .${t}".\n- You must write new CSS that overrides the current CSS, not replace it.\n- Only include properties that are necessary to complete the task.\n- Only respond with the CSS, do not include anything else, dont wrap with code blocks, do not output markdown,\n- Do not wrap the css in "\`\`\`css your css never in here \`\`\`".\n\n### Merge the following CSS delimited by triple quotes with the new CSS you write if it not empty:\n"""\n${this.value}\n"""\nRemember not to delete the CSS-to-merge.\n\n### You can use the following variables in your code, if necessary:\n${o}\n\n### You can use the following media queries in your code, if necessary:\n${s}\n`},{role:"user",content:e}]}getTextMessages(e){const t=this.element?this.getElementShortName(this.element):"Text",n=(0,Li.wX)(this.settings.prompt),o=[{role:"system",content:`\nYou are a helpful AI assistant. Your job is to help the user write better content for their website.\n\nThe user will ask you to perform an action on a text delimited by triple quotes.\nThe user message will always include the action, the element, and the text you should perform the action on.\n\nAn "Element" refers to a building block or widget used in creating a page layout.\n\n### Rules\nYou must abide by the following rules:\n\n1. Follow the action as closely as possible.\n2. Minimize any other prose.\n3. Heading elements must be short and descriptive.\n4. Write text in a format that is appropriate for Element provided.\n5. Do not mention the type of an element in your generated text, for example, do not say "Button - Text: Explore More", instead, just say "Explore More".\n6. Do not wrap your output in triple quotes or code blocks.\n7. Do not include or mention these rules in your output.\n8. Write the response in ${this.settings.locale}\n\n### Writing context-aware text\n\nThe user will provide the hierarchy of a section element (a small part of a website page). Use this information to generate context-aware text. The text should align with the theme and tone of the surrounding content. Include key features or details that tie it seamlessly with the existing material, ensuring a natural flow and continuity.\n\nWe use symbolic characters like ">" or ">>" to represent hierarchy levels. Example:\n\n> Section\n >> Heading (Your Heading Text Goes Here)\n >> Text\n >> Button (Click Here)\n\n### Business Information\n\nThe user will provide the following business information: Business Name, Business Description, and Qualifiers.\nQualifiers is a short sentence that affects the writing style of the content. Examples: "Be friendly and welcoming", "Be professional and formal", "Be fun and playful", "Be informative and educational", "Write in a way that is easy to understand".\n`},{role:"user",content:`\nAction: ${e}\n\nFormat: ${this.acceptsHtml?"HTML":"Plain Text"}\nElement: ${t} - ${this.label}\n\nText:\n"""${this.value||""}"""\n\nSection Hierarchy:\n${this.getContext()}\n\nBusiness Information:\n${n}\n`}];return o.map((e=>({...e,content:e.content.trim()})))}getContext(){const e=e=>` >> ${e.field.description} (${e.field.value})`,t=this.element;if(!t)return;const n=(0,$i.getNodeIndex)(h.documentStore.document.tree,t.id),o=(0,$i.getNodeParent)(h.documentStore.document.tree,t.id),s=o?this.getElementShortName(o):"Section";if(!o||!1===n)return;const a=o.children.slice(0,n),i=o.children.slice(n+1),r=a.map((e=>(0,zi.LX)(e))).flat(),l=i.map((e=>(0,zi.LX)(e))).flat(),c=r.map(e).join("\n\n"),u=l.map(e).join("\n\n");return`\n> ${s}\n${c}\n >> ${this.elementConfig.name} - ${this.label} (*The text you are completing will be inserted here.*)\n${u}\n`}handleError(e){(0,zi.Qm)(e)}postProcessCss(e){const t=this.elementConfig.className,n=new RegExp(`.breakdance .${t}`,"g");return e.replace(n,"%%SELECTOR%%").replace(/```css/g,"").replace(/```/g,"").replace(/"""/g,"").trim()}getElementShortName(e){return h.configStore.element(e.data.type).name}autogrowTextarea(){const e=this.$refs.input;this.$nextTick((()=>{e.style.height="0px",e.style.height=Math.min(200,e.scrollHeight)+"px"}))}async tryToLoadSettings(){if(!this.settingsAlreadyLoaded&&!this.pluginNotInstalled)if(this.settings.model)this.settingsAlreadyLoaded=!0;else{this.loadingSettings=!0;try{const e=await(0,Oi.I8)();e?this.settingsAlreadyLoaded=!0:this.pluginNotInstalled=!0}finally{this.loadingSettings=!1}}}};(0,a.gn)([(0,r.fI)()],er.prototype,"label",void 0),(0,a.gn)([(0,r.fI)()],er.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],er.prototype,"path",void 0),(0,a.gn)([(0,r.fI)({default:!1})],er.prototype,"cssMode",void 0),(0,a.gn)([(0,r.fI)()],er.prototype,"mode",void 0),(0,a.gn)([(0,r.RL)("value")],er.prototype,"onValueChange",null),(0,a.gn)([(0,r.RL)("dialogOpen")],er.prototype,"onDialogOpenChange",null),(0,a.gn)([(0,r.RL)("userInput")],er.prototype,"onUserInputChange",null),er=(0,a.gn)([(0,r.wA)({components:{Icon:A.Z,Dropdown:Pe.Z,TextInput:u.Z,DropdownDragHandle:ki.Z,LoadingSpinner:Pi.Z,InlineAiNoApiKey:Qi,InlineAiCompletion:Bi,InlineAiPluginNotInstalled:Wi,NumberInput:In.Z}})],er);const tr=er,nr=tr;var or=(0,_.Z)(nr,Si,Ci,!1,null,null,null);const sr=or.exports;var ar=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.shouldShow?t("div",{staticClass:"component-editable-property-toggle breakdance-only-on-hover"},[t("Dropdown",{attrs:{"offset-y":"","close-on-content-click":!1,"min-width":e.popoutWidth,disabled:!e.enabled,title:e.__("Property Settings")},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[t("div",{class:e.classes},[t("div",{staticClass:"component-editable-property-toggle__icon",on:{click:e.toggle}},[t("Icon",{attrs:{icon:"PlusIcon",size:"10"}})],1),e.enabled?t("div",e._g(e._b({staticClass:"component-editable-property-toggle__arrow"},"div",o,!1),n),[t("Icon",{attrs:{icon:"ChevronDownIcon",size:"10"}})],1):e._e()])]}}],null,!1,448345771)},[t("ComponentEditablePropertySettings",{attrs:{path:e.path,propertyEditableInComponent:e.propertyEditableInComponent}})],1)],1):e._e()},ir=[],rr=n(83357),lr=n(52071),cr=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"component-editable-property-settings"},[t("div",{staticClass:"breakdance-control-wrapper"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(e._s(e.__("Label")))]),t("TextInput",{attrs:{value:e.propertyEditableInComponent.label,placeholder:e.__("Control Label")},on:{input:e.updateLabel}})],1),t("div",{staticClass:"breakdance-control-wrapper"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Property Key"))+" ")]),t("TextInput",{attrs:{value:e.propertyEditableInComponent.propertyKey},on:{input:e.updatePropertyKey}})],1)])},ur=[];let dr=class extends i.ZP{updateLabel(e){(0,rr.hI)(this.path,{...this.propertyEditableInComponent,label:e})}updatePropertyKey(e){(0,rr.hI)(this.path,{...this.propertyEditableInComponent,propertyKey:e})}};(0,a.gn)([(0,r.fI)()],dr.prototype,"path",void 0),(0,a.gn)([(0,r.fI)()],dr.prototype,"propertyEditableInComponent",void 0),dr=(0,a.gn)([(0,r.wA)({components:{TextInput:u.Z}})],dr);const pr=dr,hr=pr;var gr=(0,_.Z)(hr,cr,ur,!1,null,null,null);const mr=gr.exports;let vr=class extends i.ZP{get popoutWidth(){return Nn.eF}get shouldShow(){return this.isEditingComponent&&this.isControlAllowedAsEditablePropertyInComponent}get isControlAllowedAsEditablePropertyInComponent(){return(0,lr.bU)(this.path)}get isEditingComponent(){return"oxygen"===this.builderMode&&h.uiStore.inlineEditingElement&&h.uiStore.activeElement?(0,Gs.l0)(h.documentStore.document.tree,h.uiStore.activeElement,h.uiStore.inlineEditingElement):(0,lr.it)()}get enabled(){return(0,rr.CG)(this.path)}toggle(){(0,rr.Q2)(this.path)}get propertyEditableInComponent(){if(!h.uiStore.activeElement)return!1;const e=(0,rr.Dr)(h.uiStore.activeElement).find((e=>e.controlPath===this.path));return e??!1}get classes(){return{"component-editable-property-toggle-button":!0,"breakdance-control-modifier-icon":!0,"breakdance-control-modifier-icon-enabled":this.enabled,"breakdance-control-modifier-icon-value-present":this.enabled}}get builderMode(){return h.configStore.builderMode}};(0,a.gn)([(0,r.fI)()],vr.prototype,"path",void 0),vr=(0,a.gn)([(0,r.wA)({components:{Icon:A.Z,ComponentEditablePropertySettings:mr,Dropdown:Pe.Z}})],vr);const fr=vr,yr=fr;var br=(0,_.Z)(yr,ar,ir,!1,null,null,null);const _r=br.exports;var Ir=n(80115);let wr=class extends i.ZP{constructor(){super(...arguments),this.hoverEnabled=!1}get builderMode(){return h.configStore.builderMode}get stylesPresent(){return e=>(0,Pa.Ed)(e,this.control,this.context)}get classList(){return{"breakdance-control-wrapper":!0,"breakdance-control-wrapper-inline":"vertical"!==this.control.options.layout,"breakdance-control-wrapper-vertical":"vertical"===this.control.options.layout,[`breakdance-control-wrapper-control-${this.control.options.type}`]:!0}}get dynamicAccepts(){return this.control?.dynamic?.accepts}get pathWithBreakpoint(){return this.control.enableMediaQueries?`${this.path}.${h.uiStore.currentBreakpoint.id}`:this.path}get pathWithHoverAndBreakpoint(){return this.control.enableMediaQueries?`${(0,jo.sg)(this.path)}.${h.uiStore.currentBreakpoint.id}`:(0,jo.sg)(this.path)}get fullPath(){return this.hoverEnabled?this.pathWithHoverAndBreakpoint:this.pathWithBreakpoint}get value(){return this.context.getControlValue(this.fullPath)}get previousBreakpointValue(){return(0,jo.zp)(this.control.options.type,this.context.getControlValue(this.path))}get aiModeForControl(){return!!h.configStore.ai?.enabled&&("wpmedia"===this.control.options.type&&this.path.startsWith("content")?"image":!!(["text","richtext"].includes(this.control.options.type)&&this.path.startsWith("content")||"css"===this.control.slug)&&"text")}get hoverValuePresent(){const e=this.context.getControlValue(this.pathWithHoverAndBreakpoint);return!(0,Pa.Qn)(e)}toggleHover(){this.hoverEnabled=!this.hoverEnabled}get showModifiers(){return this.hoverEnabled||!this.isBaseBreakpoint}get isBaseBreakpoint(){return h.uiStore.currentBreakpoint.id===mi.Wp}get dynamicFieldMeta(){return this.context.getControlValue((0,Oa.k2)(this.fullPath))}dynamicDataChosen(e){this.context.setControlValue(this.fullPath,e.shortcode,this.control),this.context.setControlValue((0,Oa.k2)(this.fullPath),e,this.control)}insertCompletion(e){this.context.setControlValue(this.fullPath,e,this.control)}mounted(){this.migrateNonBreakpointValue()}isResponsiveValue(e){const t=h.configStore.breakpointIds;return Object.keys(e).some((e=>t.includes(e)))}shouldMigrateValue(e){return!!this.control.enableMediaQueries&&((0,wi.S)(e)?!this.isResponsiveValue(e):"string"===typeof e||"number"===typeof e)}migrateNonBreakpointValue(){const e=this.context.getControlValue(this.path);if(this.shouldMigrateValue(e)){const t={[mi.Wp]:e};console.log(`Migrating value for ${this.path} to new breakpoint format:`,t),xi.n.ignore((()=>{this.context.setControlValue(this.path,t,this.control)}))}}clearStyles(){(0,Pa.ZH)(this.path,this.control,this.context)}};(0,a.gn)([(0,r.fI)()],wr.prototype,"control",void 0),(0,a.gn)([(0,r.fI)()],wr.prototype,"path",void 0),(0,a.gn)([(0,r.fI)({default:""})],wr.prototype,"prependLabel",void 0),(0,a.gn)([(0,r.tB)("context")],wr.prototype,"context",void 0),wr=(0,a.gn)([(0,r.wA)({components:{OxygenControlName:Ir.Z,InputWrapper:oi,ControlBreakpointChooser:_i,DynamicDataChooser:pi.Z,HoverEnabler:di,IndicatorLight:Ii.Z,InlineAi:sr,ComponentEditablePropertyToggle:_r}})],wr);const xr=wr,Sr=xr;var Cr=(0,_.Z)(Sr,o,s,!1,null,null,null);const kr=Cr.exports},20951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var o,s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"controls-tree"},[e.linear?t("ControlsTreeLinear",{attrs:{path:e.path,controls:e.controls}}):t("ControlsTreeExpansionPanels",{attrs:{forceFirstSectionOpen:e.forceFirstSectionOpen,path:e.path,controls:e.controls,allowPopoutsInRoot:e.allowPopoutsInRoot}})],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(63554),u=n(99868),d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(u.Z,{staticClass:"controls-tree-linear controls-tree-linear-or-expansion-panels"},[e._l(e.controls,(function(n){return["section"===n.options.type?[t("div",{key:n.slug},[t("span",{directives:[{name:"show",rawName:"v-show",value:n.children.length&&(e.isTopLevel||!e.onlyContainsSubSections(n)),expression:"\n control.children.length &&\n (isTopLevel || !onlyContainsSubSections(control))\n "}],staticClass:"controls-tree-linear-heading"},[e._v(" "+e._s(`${e.prependLabel}${n.label}`)+" ")]),n.children?t("ControlsTreeLinear",{attrs:{controls:n.children,path:`${e.path}.${n.slug}`,prependLabel:e.breadcrumbs(n)}}):e._e()],1)]:[t("Control",{key:n.slug,attrs:{control:n,path:`${e.path}.${n.slug}`}})]]}))],2)},p=[],h=n(87934);let g=o=class extends r.ZP{get isTopLevel(){return!this.path.includes(".")}onlyContainsSubSections(e){return e.children.every((e=>"section"===e.options.type))}breadcrumbs(e){return this.isTopLevel?"":`${this.prependLabel} ${e.label} / `}};(0,i.gn)([(0,l.fI)({default:""})],g.prototype,"prependLabel",void 0),(0,i.gn)([(0,l.fI)()],g.prototype,"controls",void 0),(0,i.gn)([(0,l.fI)()],g.prototype,"path",void 0),g=o=(0,i.gn)([(0,l.wA)({name:"ControlsTreeLinear",components:{Control:h.Z,ControlsTreeLinear:o}})],g);const m=g,v=m;var f=n(1001),y=(0,f.Z)(v,d,p,!1,null,null,null);const b=y.exports;let _=class extends r.ZP{};(0,i.gn)([(0,l.fI)()],_.prototype,"controls",void 0),(0,i.gn)([(0,l.fI)({default:!1})],_.prototype,"linear",void 0),(0,i.gn)([(0,l.fI)({default:!1})],_.prototype,"allowPopoutsInRoot",void 0),(0,i.gn)([(0,l.fI)({default:!1})],_.prototype,"forceFirstSectionOpen",void 0),(0,i.gn)([(0,l.fI)()],_.prototype,"path",void 0),_=(0,i.gn)([(0,l.wA)({name:"ControlsTree",components:{ControlsTreeExpansionPanels:c["default"],ControlsTreeLinear:b}})],_);const I=_,w=I;var x=(0,f.Z)(w,s,a,!1,null,null,null);const S=x.exports},63554:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>oe});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"controls-tree-expansion-panels controls-tree-linear-or-expansion-panels",class:{"controls-tree-expansion-panels--compact":e.compact}},[e._l(e.controls,(function(n,o){return["section"===n.options.type?[e.isPopoutOrModal(n)?t(n.options.sectionOptions.type,{key:`${n.slug}-${o}`,tag:"component",class:e.classForConditionalDisplayOfControl(n,`${e.path}.${n.slug}`),attrs:{title:n.label,nested:e.nested,depth:e.depth+1,expanded:e.isAccordionAtPathExpanded(`${e.path}.${n.slug}`,o,n.options.sectionOptions.type)},on:{expand:function(t){return e.setAccordionState(`${e.path}.${n.slug}`,t)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("oxygen"===e.builderMode?"OxygenControlName":"span",{tag:"component",attrs:{filled:e.stylesPresent(`${e.path}.${n.slug}`,n),path:`${e.path}.${n.slug}`},on:{reset:function(t){return e.clearStyles(`${e.path}.${n.slug}`,n)}}},[e._v(" "+e._s(n.label)+" ")]),e.stylesPresent(`${e.path}.${n.slug}`,n)?t("IndicatorLight",{staticClass:"popout-indicator-light",attrs:{path:`${e.path}.${n.slug}`,control:n}}):e._e()]},proxy:!0},{key:"content",fn:function(){return[n.children?t("ControlsTreeExpansionPanels",{attrs:{controls:n.children,path:`${e.path}.${n.slug}`,compact:1===n.children.length&&"section"===n.children[0].options.type,nested:!0,"force-first-section-open":"modal"===n.options.sectionOptions,depth:e.depth+1}}):e._e()]},proxy:!0}],null,!0)}):t("Accordion",{key:`${n.slug}-${o}`,class:e.classForConditionalDisplayOfControl(n,`${e.path}.${n.slug}`),attrs:{expanded:e.isAccordionAtPathExpanded(`${e.path}.${n.slug}`,o),hideTitlebar:e.thereIsOnlyOneSection},on:{toggle:function(t){return e.toggleAccordion(`${e.path}.${n.slug}`)}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(n.label)+" "),e.stylesPresent(`${e.path}.${n.slug}`,n)?["oxygen"===e.builderMode?t("OxyIndicatorLights"):t("IndicatorLight",{attrs:{path:`${e.path}.${n.slug}`,control:n}})]:e._e()]},proxy:!0},{key:"content",fn:function(){return[n.children?t("ControlsTreeExpansionPanels",{attrs:{controls:n.children,path:`${e.path}.${n.slug}`,compact:1===n.children.length&&"section"===n.children[0].options.type}}):e._e()]},proxy:!0},{key:"contextmenu",fn:function(){return[t("ControlsTreeControlSectionContextMenu",{attrs:{control:n,path:`${e.path}.${n.slug}`}})]},proxy:!0}],null,!0)})]:[t("Control",{key:`${n.slug}-${o}`,class:e.classForConditionalDisplayOfControl(n,`${e.path}.${n.slug}`),attrs:{control:n,path:`${e.path}.${n.slug}`}})]]}))],2)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(46585),c=n(87934),u=n(16888),d=n(3463),p=n(47256),h=n(31044),g=n(60883),m=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"container",staticClass:"control-section-as-modal"},[t("span",{staticClass:"control-section-as-popout-label"},[e._t("title")],2),t("div",{staticClass:"popout-section-open-icon",on:{click:function(t){e.open=!0}}},[t("Icon",{attrs:{icon:"EditIcon",size:"19"}})],1),t("Dialog",{attrs:{width:500,closeable:!0,"content-class":"modal-dialog",resizable:!0},scopedSlots:e._u([{key:"title",fn:function(){return[e._t("title")]},proxy:!0},{key:"text",fn:function(){return[e._t("content")]},proxy:!0}],null,!0),model:{value:e.open,callback:function(t){e.open=t},expression:"open"}})],1)},v=[],f=n(22608),y=n(15133),b=n(85283),_=n(89137);let I=class extends i.ZP{constructor(){super(...arguments),this.open=!1}};(0,a.gn)([(0,r.fI)()],I.prototype,"title",void 0),(0,a.gn)([(0,r.tB)({from:"panelContext",default:void 0})],I.prototype,"panelContext",void 0),I=(0,a.gn)([(0,r.wA)({components:{Dialog:_.Z,Icon:b.Z,Dropdown:y.Z,IconButton:f.Z}})],I);const w=I,x=w;var S=n(1001),C=(0,S.Z)(x,m,v,!1,null,null,null);const k=C.exports;var P=n(70248),Z=n(61908),D=n(11193),E=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(P.Z,[t(Z.Z,{attrs:{dense:""},on:{click:e.copyPropertiesData}},[t(D.V9,{domProps:{innerHTML:e._s(e.copyLabel)}},[e._v(" "+e._s(e.sprintf(e._xdoc("Copy %s","Controls Tree","%s: Control label/section name"),e.controlLabelEm))+" ")])],1),t(Z.Z,{attrs:{dense:"",disabled:!e.canPaste},on:{click:e.pastePropertiesData}},[t(D.V9,{domProps:{innerHTML:e._s(e.pasteLabel)}})],1),t(Z.Z,{attrs:{dense:""},on:{click:e.clearStyles}},[t(D.V9,{domProps:{innerHTML:e._s(e.clearLabel)}})],1)],1)},T=[],A=n(7187),M=n.n(A),V=n(65669),B=n(45974),O=n(30902),L=n(89028),$=n(6613),z=n(62231);async function N(e,t,n){const o={controlSectionPropertiesData:{controlSectionShapeHash:G(e,t),propertiesData:{propertiesData:n.getControlValue(e)}}};(0,O.pipe)(o,V.J,(0,B.fold)((e=>console.error("Failed to copy",...e.map((e=>e.toString())))),(async e=>{await(0,L.l9)(e)})))}async function H(e,t){const n=(await(0,L.ij)())?.controlSectionPropertiesData;return!!n&&n.controlSectionShapeHash===G(e,t)}async function R(e,t,n){const o=(await(0,L.ij)())?.controlSectionPropertiesData;o&&o.controlSectionShapeHash===G(e,t)&&n.setControlValue(e,o.propertiesData.propertiesData,t)}function G(e,t){const n=(0,$.g)(t);if(!n)throw"couldn't jsonStringifyOrUndefined on control";return(0,z.X)(`${e} ${n}`)}var F=n(36055);let U=class extends i.ZP{constructor(){super(...arguments),this.canPaste=!1}get controlLabelEm(){return`${this.control.label}`}mounted(){this.updateCanPaste()}async updateCanPaste(){const e=await H(this.path,this.control);this.canPaste=e}clearStyles(){(0,p.ZH)(this.path,this.control,this.context)}async copyPropertiesData(){await N(this.path,this.control,this.context),this.updateCanPaste()}async pastePropertiesData(){await R(this.path,this.control,this.context)}get copyLabel(){return(0,F.gB)(M()((0,F.H$)("Copy %s","Controls Tree","%s: Control label/section name")),this.controlLabelEm)}get pasteLabel(){return(0,F.gB)(M()((0,F.H$)("Paste %s","Controls Tree","%s: Control label/section name")),this.controlLabelEm)}get clearLabel(){return(0,F.gB)(M()((0,F.H$)("Clear %s","Controls Tree","%s: Control label/section name")),this.controlLabelEm)}};(0,a.gn)([(0,r.fI)()],U.prototype,"control",void 0),(0,a.gn)([(0,r.fI)()],U.prototype,"path",void 0),(0,a.gn)([(0,r.tB)("context")],U.prototype,"context",void 0),U=(0,a.gn)([(0,r.wA)({components:{}})],U);const W=U,j=W;var X=(0,S.Z)(j,E,T,!1,null,null,null);const q=X.exports;var K=n(92221),Y=n(80115),J=n(47354);let Q=class extends i.ZP{get builderMode(){return h.PK.builderMode}get thereIsOnlyOneSection(){return 1===this.controls.length&&"section"===this.controls[0].options.type}isPopoutOrModal(e){const t=e.options.sectionOptions?.type,n=this.path.includes(".");return!!t&&(["popout","modal"].includes(t)&&(this.allowPopoutsInRoot||n))}isAccordionAtPathExpanded(e,t,n){const o=this.context.getAccordionState(e);return void 0!==o?o:!("popout"===n||!this.forceFirstSectionOpen&&!this.thereIsOnlyOneSection||0!==t)&&(this.toggleAccordion(e),!0)}toggleAccordion(e){const t=this.context.getAccordionState(e);this.context.setAccordionState(e,!t)}setAccordionState(e,t){this.context.setAccordionState(e,t)}classForConditionalDisplayOfControl(e,t){return e.options.disabledInFutureLayer&&(0,J.o8)()?"conditional-control-display-hidden":!e.options.condition&&!e.options.hideForElements||(0,l.BG)(e,t,this.context,h.kD.currentBreakpoint.id)?"conditional-control-display-visible":"conditional-control-display-hidden"}get stylesPresent(){return(e,t)=>(0,p.Ed)(e,t,this.context)}clearStyles(e,t){(0,p.ZH)(e,t,this.context)}};(0,a.gn)([(0,r.fI)()],Q.prototype,"controls",void 0),(0,a.gn)([(0,r.fI)({default:!1})],Q.prototype,"allowPopoutsInRoot",void 0),(0,a.gn)([(0,r.fI)({default:!1})],Q.prototype,"forceFirstSectionOpen",void 0),(0,a.gn)([(0,r.fI)({default:!1})],Q.prototype,"compact",void 0),(0,a.gn)([(0,r.fI)({default:!1})],Q.prototype,"nested",void 0),(0,a.gn)([(0,r.fI)({default:0})],Q.prototype,"depth",void 0),(0,a.gn)([(0,r.fI)()],Q.prototype,"path",void 0),(0,a.gn)([(0,r.tB)("context")],Q.prototype,"context",void 0),Q=(0,a.gn)([(0,r.wA)({name:"ControlsTreeExpansionPanels",components:{OxygenControlName:Y.Z,OxyIndicatorLights:K.Z,Modal:k,Control:c.Z,Accordion:u.Z,Popout:d.Z,IndicatorLight:g.Z,ControlsTreeControlSectionContextMenu:q}})],Q);const ee=Q,te=ee;var ne=(0,S.Z)(te,o,s,!1,null,null,null);const oe=ne.exports},96074:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.dynamicFields.length&&e.areThereFieldsForAcceptsType?t("div",{staticClass:"dynamic-data-chooser"},[t("button",{staticClass:"dynamic-data-chooser-button breakdance-control-modifier-icon",attrs:{"data-test-id":"dynamic-data-chooser-button"},on:{click:e.openDialog}},[t("Icon",{attrs:{icon:"DatabaseIcon",size:e.iconSize}})],1),t("DynamicDataDialog",{attrs:{accepts:e.accepts,"dynamic-field":e.value},on:{selected:e.setDynamicField,close:e.closeDialog},model:{value:e.isDialogOpen,callback:function(t){e.isDialogOpen=t},expression:"isDialogOpen"}})],1):e._e()},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(31044),c=n(41571),u=n(84336),d=n(5817),p=n(61153),h=n(85283);let g=class extends i.ZP{constructor(){super(...arguments),this.isDialogOpen=!1}get dynamicFields(){return l.PK.dynamicFields}get areThereFieldsForAcceptsType(){if(!1===this.accepts)return!1;const e=this.accepts;return"all"===e||this.dynamicFields.some((t=>t.returnTypes.includes(e)))}openDialog(){this.isDialogOpen=!0}closeDialog(){this.isDialogOpen=!1}setDynamicField(e){this.$emit("input",e)}};(0,a.gn)([(0,r.fI)()],g.prototype,"accepts",void 0),(0,a.gn)([(0,r.fI)()],g.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default:10})],g.prototype,"iconSize",void 0),(0,a.gn)([(0,r.fI)({default:!1})],g.prototype,"proOnly",void 0),g=(0,a.gn)([(0,r.wA)({components:{Icon:h.Z,DynamicDataDialog:p.Z,DynamicDataFields:d.Z,DropdownInput:u.Z,TextInput:c.Z}})],g);const m=g,v=m;var f=n(1001),y=(0,f.Z)(v,o,s,!1,null,null,null);const b=y.exports},61153:(e,t,n)=>{"use strict";n.d(t,{Z:()=>T});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dialog",{attrs:{value:e.value,width:900,"content-class":"dynamic-data-chooser-dialog",closeable:!0},on:{input:function(t){return e.$emit("input",t)},"click:outside":e.close,close:e.close},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.__("Insert Dynamic Data"))+" ")]},proxy:!0},{key:"text",fn:function(){return[e.proOnly?t("DynamicDataPromotionVideo"):t("DynamicDataFields",{attrs:{activeFieldSlug:e.selectedField,accepts:e.accepts,open:e.value},on:{input:e.setField}})]},proxy:!0}])})},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(41571),c=n(84336),u=n(5817),d=n(85283),p=n(22608),h=n(89137),g=n(43195),m=n(70504),v=function(){var e=this;e._self._c,e._self._setupProxy;return e._m(0)},f=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"d-flex justify-center pb-8 pt-4"},[t("iframe",{attrs:{width:"800",height:"450",src:"https://www.youtube.com/embed/eYOu1TJcrSc",title:"Dynamic Data",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}];let y=class extends i.ZP{};y=(0,a.gn)([(0,r.wA)({})],y);const b=y,_=b;var I=n(1001),w=(0,I.Z)(_,v,f,!1,null,null,null);const x=w.exports;var S=n(31044),C=n(13960),k=n(36055);let P=class extends i.ZP{get selectedField(){return this.dynamicField?(0,g.Tc)(this.dynamicField):null}get dynamicProOnly(){return this.proOnly&&"free"===S.PK.subscriptionMode}setField(e){(0,C.dO)(e)?alert((0,k.__)("Please upgrade to pro to use this field.")):(this.chosenField=e,this.saveAndClose())}reset(){this.chosenField=void 0}goBack(){this.reset()}close(){this.$emit("close")}save(){if(!this.chosenField)return void this.close();const e=this.chosenField.defaultAttributes??{},t=(0,g.ii)(e,this.chosenField);this.$emit("selected",{field:this.chosenField.slug,shortcode:t,attributes:e})}saveAndClose(){this.save(),this.close(),this.reset()}};(0,a.gn)([(0,r.fI)()],P.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],P.prototype,"dynamicField",void 0),(0,a.gn)([(0,r.fI)()],P.prototype,"accepts",void 0),(0,a.gn)([(0,r.fI)({default:!1})],P.prototype,"proOnly",void 0),P=(0,a.gn)([(0,r.wA)({components:{DynamicDataPromotionVideo:x,VideoInput:m.Z,Dialog:h.Z,IconButton:p.Z,Icon:d.Z,DynamicDataFields:u.Z,DropdownInput:c.Z,TextInput:l.Z}})],P);const Z=P,D=Z;var E=(0,I.Z)(D,o,s,!1,null,null,null);const T=E.exports},79686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("span",{staticClass:"dynamic-data-field-text"},[e.icon?t("Icon",{staticClass:"mr-1",attrs:{size:"12",icon:"DatabaseIcon"}}):e._e(),e.field?[e._v(e._s(e.field.label))]:[e._v(e._s(e.shortcode))]],2)},s=[],a=n(70655),i=n(38085),r=n(41571),l=n(84336),c=n(31044),u=n(43195),d=n(85283);let p=class extends i.w3{get field(){return(0,u.r8)(c.PK.dynamicFields,this.shortcode)}};(0,a.gn)([(0,i.fI)()],p.prototype,"shortcode",void 0),(0,a.gn)([(0,i.fI)({default:!0})],p.prototype,"icon",void 0),p=(0,a.gn)([(0,i.wA)({components:{Icon:d.Z,TextInput:r.Z,DropdownInput:l.Z}})],p);const h=p,g=h;var m=n(1001),v=(0,m.Z)(g,o,s,!1,null,null,null);const f=v.exports},5817:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"dynamic-data-fields"},[t("div",{staticClass:"dynamic-data-fields-header"},[t("SearchInput",{staticClass:"dynamic-data-fields-search",attrs:{"data-test-id":"dynamic-data-fields-search",placeholder:e.__("Search..."),autofocus:e.autofocus},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectFirst.apply(null,arguments))}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),t("div",{staticClass:"dynamic-data-fields-filter"},["all"==e.internalType?[t("span",{staticClass:"dynamic-data-fields-filter__label mr-3"},[e._v(" "+e._s(e.__("Disable Type Safety:"))+" ")]),t("ToggleInput",{staticClass:"mr-4",model:{value:e.disableTypeSafetyCheck,callback:function(t){e.disableTypeSafetyCheck=t},expression:"disableTypeSafetyCheck"}})]:e._e(),t("span",{staticClass:"dynamic-data-fields-filter__label"},[e._v(e._s(e.__("Type:")))]),t("DropdownInput",{staticClass:"dynamic-data-fields-filter__input",attrs:{items:e.availableTypes,value:e.internalType},on:{input:e.updateType}})],2)],1),e.categories.length?t("div",{staticClass:"dynamic-data-fields-categories"},e._l(e.categories,(function(n,o){return t("div",{key:o,staticClass:"dynamic-data-fields-category"},[t("h3",{staticClass:"dynamic-data-fields-category__title"},[e._v(e._s(n.name))]),t("div",{staticClass:"dynamic-data-fields-column"},e._l(n.subcategories,(function(n,s){return t("div",{key:s,staticClass:"dynamic-data-fields-subcategory"},[n.name?t("h4",{staticClass:"dynamic-data-fields-subcategory__title"},[e._v(" "+e._s(n.name)+" ")]):e._e(),t("div",{staticClass:"dynamic-data-fields-fields"},e._l(n.fields,(function(n,a){return t("DynamicDataField",{key:a,attrs:{field:n,selected:e.activeFieldSlug===n.slug,active:e.isFieldAvailable(n),accepts:e.accepts,"show-shortcut":e.search&&0===o&&0===s&&0===a},on:{select:e.setField}})})),1)])})),0)])})),0):t("div",{staticClass:"dynamic-data-fields__not-found"},[e._v(" "+e._s(e.__("No fields were found matching the criteria."))+" ")])])},s=[],a=n(70655),i=n(38085),r=n(85450),l=n(84336),c=n(41571),u=n(70248),d=n(61908),p=n(11193),h=n(43432),g=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"dynamic-data-fields-field":!0,"dynamic-data-fields-field--unavailable":!e.active},attrs:{"data-test-id":"dynamic-data-fields-field"},on:{click:function(t){return e.$emit("select",e.field)}}},[t(h.Z,{attrs:{bottom:"","max-width":"180","content-class":"tooltip-with-caret",disabled:e.active},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[t("button",e._g(e._b({class:{"dynamic-data-fields-field__title":!0,"dynamic-data-fields-field--selected":e.selected,"dynamic-data-fields-field--highlight":e.showShortcut},on:{contextmenu:function(t){return t.preventDefault(),e.openContextMenu.apply(null,arguments)}}},"button",o,!1),n),[e._v(" "+e._s(e.field.label||e.__("No Available Label"))+" "),e.showShortcut?t("span",{staticClass:"dynamic-data-fields-field__shortcut ml-2"},[t("Icon",{attrs:{icon:"ArrowTurnDownLeftIcon",size:10}})],1):e._e(),e.proOnlyField?t("ElementBadge",{staticClass:"ml-auto",attrs:{value:e.proBadge}}):e._e()],1)]}}])},[e.active?e._e():t("span",[e._v(" "+e._s(e.sprintf(e.__('The selected field expects "%s", but "%s" only returns "%s". To use this field anyway, choose "All" from the "Type" dropdown and then toggle "Disable Type Safety" on.'),e.normalizedAccepts,e.field.label,e.normalizedReturnTypes))+" ")])]),t("Dropdown",{attrs:{"position-x":e.contextMenuX,"position-y":e.contextMenuY,absolute:"","offset-y":""},model:{value:e.contextMenuOpen,callback:function(t){e.contextMenuOpen=t},expression:"contextMenuOpen"}},[t(u.Z,[t(d.Z,{attrs:{dense:""},on:{click:e.copy}},[t(p.V9,[e._v(e._s(e.__("Copy as text")))])],1)],1)],1)],1)},m=[],v=n(31044),f=n(13960),y=n(26687),b=n(15133),_=n(19719),I=n(89028),w=n(43195),x=n(85283);let S=class extends i.w3{constructor(){super(...arguments),this.contextMenuOpen=!1,this.contextMenuX=0,this.contextMenuY=0}get normalizedReturnTypes(){return this.field.returnTypes.map((e=>this.normalize(e))).join(", ")}get proOnlyField(){return this.field.proOnly&&"free"===v.PK.subscriptionMode}get proBadge(){return(0,f.ur)()}get normalizedAccepts(){return this.normalize(this.accepts||"")}normalize(e){return e.replace("_"," ")}openContextMenu(e){this.contextMenuX=e.clientX,this.contextMenuY=e.clientY,this.contextMenuOpen=!0}copy(){const e=(0,w.ii)({},this.field);(0,I.l9)(e)}};(0,a.gn)([(0,i.fI)()],S.prototype,"field",void 0),(0,a.gn)([(0,i.fI)()],S.prototype,"active",void 0),(0,a.gn)([(0,i.fI)()],S.prototype,"selected",void 0),(0,a.gn)([(0,i.fI)()],S.prototype,"accepts",void 0),(0,a.gn)([(0,i.fI)({default:!1})],S.prototype,"showShortcut",void 0),S=(0,a.gn)([(0,i.wA)({components:{Icon:x.Z,IconChooserDialog:_.Z,Dropdown:b.Z,TextInput:c.Z,DropdownInput:l.Z,ElementBadge:y.Z}})],S);const C=S,k=C;var P=n(1001),Z=(0,P.Z)(k,g,m,!1,null,null,null);const D=Z.exports;var E=n(72252),T=n(38562);let A=class extends i.w3{constructor(){super(...arguments),this.search="",this.type=null,this.autofocus=!1,this.disableTypeSafetyCheck=!1}onOpenChange(){this.open?setTimeout((()=>{this.autofocus=!0}),200):this.autofocus=!1}get availableTypes(){return(0,w.cS)()}get internalType(){return this.type||this.accepts||"all"}get dynamicFields(){return r.configStore.dynamicFields}get filteredFields(){return this.dynamicFields.filter((e=>e.label.toLowerCase().includes(this.search?this.search.toLowerCase():""))).filter((e=>"all"===this.internalType||e.returnTypes.includes(this.internalType)||e.returnTypes.includes("all")))}get categories(){const e=this.groupBy(this.filteredFields,"category");return e.map((e=>{const t=this.groupBy(e.fields,"subcategory");return{name:e.name,subcategories:t}}))}groupBy(e,t){const n=e.reduce(((e,n)=>{const o=n[t]||"",s=e[o]||{name:o,fields:[]};return s.fields.push(n),e[o]=s,e}),{});return Object.values(n)}setField(e){this.isFieldAvailable(e)&&this.$emit("input",e)}updateType(e){this.type=e}isFieldAvailable(e){return this.disableTypeSafetyCheck||!this.accepts||"all"===this.accepts||e.returnTypes.includes(this.accepts)||e.returnTypes.includes("all")}selectFirst(){if(!this.search)return;const e=this.filteredFields[0];e&&this.setField(e)}};(0,a.gn)([(0,i.fI)()],A.prototype,"accepts",void 0),(0,a.gn)([(0,i.fI)()],A.prototype,"activeFieldSlug",void 0),(0,a.gn)([(0,i.fI)({default:!1})],A.prototype,"open",void 0),(0,a.gn)([(0,i.RL)("open",{immediate:!0})],A.prototype,"onOpenChange",null),A=(0,a.gn)([(0,i.wA)({name:"DynamicDataFields",components:{SearchInput:T.Z,DynamicDataField:D,TextInput:c.Z,DropdownInput:l.Z,ToggleInput:E.Z}})],A);const M=A,V=M;var B=(0,P.Z)(V,o,s,!1,null,null,null);const O=B.exports},60883:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"indicator-light",on:{click:function(t){return t.stopPropagation(),e.increaseStage.apply(null,arguments)},mouseleave:e.setStageToOneWithDelay,mouseenter:e.setMouseIsHere}},[t("div",{directives:[{name:"show",rawName:"v-show",value:1===e.stage,expression:"stage === 1"}],staticClass:"indicator-light-light"}),t("div",{directives:[{name:"show",rawName:"v-show",value:2===e.stage,expression:"stage === 2"}],staticClass:"indicator-light-reset-button"},[t("Icon",{attrs:{size:"11",icon:"CloseIcon"}})],1)])},s=[],a=n(70655),i=n(47256),r=n(20144),l=n(38085),c=n(85283);let u=class extends r.ZP{constructor(){super(...arguments),this.stage=1,this.mouseIsHere=!1}increaseStage(e){1!==this.stage?2===this.stage&&(this.clearStyles(this.path,this.control,e.shiftKey),this.stage=1):this.stage=2}setMouseIsHere(){this.stage=2,this.mouseIsHere=!0}setStageToOneWithDelay(){this.mouseIsHere=!1,setTimeout((()=>{this.mouseIsHere||(this.stage=1)}),300)}clearStyles(e,t,n){(0,i.ZH)(e,t,this.context,n),this.$emit("click")}};(0,a.gn)([(0,l.fI)()],u.prototype,"path",void 0),(0,a.gn)([(0,l.fI)()],u.prototype,"control",void 0),(0,a.gn)([(0,l.tB)("context")],u.prototype,"context",void 0),u=(0,a.gn)([(0,l.wA)({components:{Icon:c.Z}})],u);const d=u,p=d;var h=n(1001),g=(0,h.Z)(p,o,s,!1,null,null,null);const m=g.exports},14567:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("button",e._g(e._b({attrs:{title:e.__("Copy to clipboard"),"data-test-id":"breakdance-copy-button",disabled:e.valueCopied},on:{click:e.copyValue}},"button",e.$attrs,!1),e.$listeners),[e.valueCopied?t("Icon",{attrs:{icon:"CheckIcon"}}):t("Icon",{attrs:{icon:"ClipboardIcon",size:"12"}})],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(66485),c=n.n(l),u=n(85283);let d=class extends i.ZP{constructor(){super(...arguments),this.valueCopied=!1}copyValue(){c()(this.valueToCopy).then((()=>this.valueCopied=!0)),setTimeout((()=>this.valueCopied=!1),3e3)}};(0,a.gn)([(0,r.fI)()],d.prototype,"valueToCopy",void 0),d=(0,a.gn)([(0,r.wA)({components:{Icon:u.Z}})],d);const p=d,h=p;var g=n(1001),m=(0,g.Z)(h,o,s,!1,null,null,null);const v=m.exports},47998:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Ae});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"editor",class:e.classList})},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(37205),c=n(47421),u=n(85450),d=n(59119),p=n(45383),h=n(49892),g=n(34790),m=n(28519),v=n(88853),f=n(43949),y=n(74429),b=n(57297),_=n(30623),I=n(8502);const w=[{label:"SELECTOR",detail:"Selector",boost:99},{label:"ID",detail:"Element ID"},{label:"UNIQUE_SLUG",detail:"Element Unique Slug",info:"Unique slug for element instance (helps identify it on a loop)"},{label:"ELEMENT_NAME",detail:"Element Name"},{label:"PARENT_SELECTOR",detail:"Parent Selector"},{label:"PARENT_ID",detail:"Parent ID"},{label:"POST_ID",detail:"Post ID"},{label:"CHILDREN",detail:"Children"},{label:"SSR",detail:"SSR",info:"SSR Content (only available in SSR mode)"}],x=/%%([a-zA-Z_]+)%%/g,S=c.p.mark({class:"cm-special-tag",attributes:{title:"Special Tag"}}),C=c.lg.fromClass(class{constructor(e){this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=this.buildDecorations(e.view))}buildDecorations(e){const t=new l.f_,n=e.state.doc;for(const{from:o,to:s}of e.visibleRanges){const e=n.sliceString(o,s);let a,i=0;x.lastIndex=0;while(null!==(a=x.exec(e))){const e=a[1],n=a[0];if(w.some((t=>t.label===e))){const e=o+a.index,s=e+n.length;e>=i&&(t.add(e,s,S),i=s)}}}return t.finish()}},{decorations:e=>e.decorations}),k=[C,c.tk.theme({".cm-special-tag, .cm-special-tag *":{color:"#ff79c6"}})];function P(e){const t=e.map((e=>e.toLowerCase().replaceAll("_","")));return w.filter((e=>t.includes(e.label.toLowerCase().replaceAll("_","")))).map((e=>({label:`%%${e.label}%%`,displayLabel:e.detail,info:e.info,boost:e.boost??0})))}function Z(e,t){const n=e.matchBefore(/%%[a-zA-Z_]*/);if(!n)return null;const o=P(t);return{from:n.from,options:o,validFor:/^%%[a-zA-Z_]*$/}}function D(e,t){return[k,t.data.of({autocomplete:t=>Z(t,e)})]}var E=n(12413);function T(){return c.tk.updateListener.of((e=>{"pending"===u.uiStore.keyboardTriggeredActions.focusCodeMirror&&(u.uiStore.setKeyboardTriggeredActions({...u.uiStore.keyboardTriggeredActions,focusCodeMirror:null}),setTimeout((()=>{e.view.focus()}),0))}))}const A=l.Py.define(),M=l.QQ.define({create(){return null},update(e,t){for(const n of t.effects)if(n.is(A))return n.value;return e}}),V=c.p.line({class:"cm-error-line",attributes:{"data-error-line":"true"}}),B=c.lg.fromClass(class{constructor(e){this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged||e.transactions.some((e=>e.effects.some((e=>e.is(A))))))&&(this.decorations=this.buildDecorations(e.view))}buildDecorations(e){const t=new l.f_,n=e.state.field(M);if(null!==n&&n>0){const o=e.state.doc;if(n<=o.lines){const e=o.line(n).from;t.add(e,e,V)}}return t.finish()}},{decorations:e=>e.decorations}),O=c.tk.theme({".cm-error-line":{backgroundColor:"rgba(255, 0, 0, 0.2)",borderLeft:"3px solid #ff0000"}});function L(e){return[M.init((()=>e)),B,O]}function $(e,t){e.dispatch({effects:A.of(t)})}const z=/\{\{\s*(macros|_self)\b/g,N=c.p.mark({class:"cm-twig-special-word",attributes:{title:"Twig Special Word"}}),H=c.lg.fromClass(class{constructor(e){this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=this.buildDecorations(e.view))}buildDecorations(e){const t=new l.f_,n=e.state.doc;for(const{from:o,to:s}of e.visibleRanges){const e=n.sliceString(o,s);let a,i=0;z.lastIndex=0;while(null!==(a=z.exec(e))){const e=a[1],n=o+a.index+a[0].indexOf(e),s=n+e.length;n>=i&&(t.add(n,s,N),i=s)}}return t.finish()}},{decorations:e=>e.decorations}),R=[H,c.tk.theme({".cm-twig-special-word, .cm-twig-special-word *":{color:"#ff79c6"}})];var G=n(48120),F=n(122),U=n(12386),W=n(36391),j=n(76213),X=n(90889),q=n(88615);function K(e){const t=(0,X.Db)(e);return"image_url"===e.type&&"string"===typeof t?t.slice(0,10)+"...":t}function Y(){return(0,q.wJ)().map((e=>({label:e.label,displayLabel:e.label,cssVariableName:e.cssVariableName,detail:"",collection:"Global Colors"})))}function J(){return u.globalStore.variables.map((e=>({label:e.label,displayLabel:e.cssVariableName,cssVariableName:e.cssVariableName,detail:`${K(e)}`,collection:e.collection})))}function Q(e){const t=J(),n=Y(),o=[...t,...n];return o.filter((t=>t.cssVariableName.includes(e)||t.label.toLowerCase().includes(e.toLowerCase())))}const ee=(e,t,n,o)=>{const s=t.label,a=e.state.sliceDoc(0,n).match(/var\(--[^)]*$/);a?e.dispatch({changes:{from:n,to:o,insert:s},selection:{anchor:o+s.length,head:o+s.length}}):e.dispatch({changes:{from:n-2,to:o,insert:`var(--${s})`}})};function te(e){return"VariableName"===e.name}function ne(e){return"PseudoClassName"===e.name||"TagName"===e.name}function oe(e,t){const n=e.resolve(t.pos),o=n?.childBefore(t.pos);return"VariableName"===o?.name&&"Declaration"===n.name}function se(e){const t=Math.max(0,e.pos-100),n=e.state.sliceDoc(t,e.pos),o=n.match(/var\(--[^)]*$/),s=n.match(/--[^:;]*$/);return o||s}function ae(e){const t=(0,d.qz)(e.state).resolveInner(e.pos,-1),n=ne(t),o=te(t)||n,s=oe(t,e)?void 0:ee;if(n&&!se(e))return null;if(o){const n=e.state.sliceDoc(t.from+2,e.pos),o=Q(n);if(0===o.length)return null;const a=o.map((e=>({label:e.cssVariableName,displayLabel:e.displayLabel,detail:e.detail,section:{name:e.collection,rank:100},type:"variable",boost:99,apply:s})));return{from:t.from+2,options:a}}return null}const ie=G.t$.data.of({autocomplete:ae});function re(e){return u.globalStore.cssSelectors.filter((t=>"ClassName"===e?"class"===t.type||t.name.startsWith("."):"IdName"!==e||("custom"===t.type||t.name.startsWith("#")))).map((t=>({type:"type",label:"ClassName"===e?t.name.replace(".",""):t.name,displayLabel:t.name,section:"Breakdance Selectors"})))}function le(e){return u.globalStore.oxySelectors.filter((t=>"ClassName"===e?"class"===t.type||t.name.startsWith("."):"IdName"!==e||t.name.startsWith("#"))).map((t=>({type:"type",label:"ClassName"===e?t.name:`.${t.name}`,displayLabel:"ClassName"===e?`.${t.name}`:t.name,section:t.collection})))}const ce=/^(\w[\w-]*|-\w[\w-]*|)$/;function ue(e){const t=(0,d.qz)(e.state).resolveInner(e.pos,-1);if("TagName"==t.name||"ClassName"==t.name||"IdName"==t.name){const e="breakdance"===u.configStore.builderMode?re(t.name):le(t.name);for(let{parent:n}=t;n;n=n.parent)if("Block"==n.name)return{from:t.from,options:e,validFor:ce};return{from:t.from,options:e,validFor:ce}}return null}const de=G.t$.data.of({autocomplete:ue});var pe=n(68792),he=n(41113);const ge=pe.E.configure({wrap:(0,he.FE)((e=>e.type.isTop?{parser:j.i.parser,overlay:e=>{const t=e.type.name;return"Text"===t||"PlainText"===t}}:null))}),me=d.qp.define({parser:ge,name:"Twig"});function ve(){return[me,(0,W.dy)().support]}var fe=n(49862);function ye(e){const t=e.match(/(\d+):(\d+)/);return t?{line:parseInt(t[1]),column:parseInt(t[2])}:null}function be(e){return e.replace("CssSyntaxError: ","").replace("HtmlSyntaxError: ","")}async function _e(e){const t=[],n=e.state.doc.toString().replaceAll("%%","__");try{await(0,fe.Ki)(n)}catch(o){const n=ye(o.message);if(n){const s=e.state.doc.line(n.line).from+n.column-1,a=s+1;t.push({from:s,to:a,severity:"error",message:be(o.message)})}}return t}async function Ie(e){const t=[],n=e.state.doc.toString();try{await(0,fe.jH)(n)}catch(o){const n=ye(o.message);if(n){const s=e.state.doc.line(n.line).from+n.column-1,a=s+1;t.push({from:s,to:a,severity:"error",message:be(o.message)})}}return t}const we=[(0,m.ir)(_e),(0,m.Q2)()],xe=[(0,m.ir)(Ie),(0,m.Q2)()];function Se(e,t,n,o,s,a,i,r,u,w,x,S,C,P,A){const M=Ce(e),V=c.tk.updateListener.of((e=>{if(e.docChanged&&!s){const t=e.state.doc.toString();n(t)}})),B={twig:y.T6.html,"twig/html":y.T6.html,"twig/css":y.T6.css},O=[(0,c.AE)(),(0,p.m8)(),(0,d.mi)(),(0,c.Uw)(),(0,c.qr)(),l.yy.allowMultipleSelections.of(!0),(0,d.nY)(),(0,d.nF)(d.R_,{fallback:!0}),(0,d.n$)(),(0,g.vQ)(),(0,g.ys)(),(0,c.Zs)(),(0,h.sW)(),c.$f.of([...g.GA,...p.wQ,...h.Lp,...p.f$,...d.e7,...g.B1,...m.Fv,{key:"Mod-Alt-l",run:()=>(o(),!0)}]),f.HN,v.cL,y.uw.of({previewEnabled:!1,syntax:B[e]||void 0}),(0,y.MU)({autocompleteTab:!0,syntax:B[e]||void 0}),c.$f.of([p.oc]),V],$=(0,b.E)(x);$&&O.push($);const z=(0,_.g)(t);O.push(z);const N=(0,E.I)(P);O.push(N);const H=T();O.push(H);const G=L(A);O.push(G),i&&O.push((0,c.Eu)({formatNumber:e=>(e+r-1).toString()})),u&&O.push(l.yy.readOnly.of(!0)),w||O.push(c.tk.lineWrapping),a&&O.push((0,c.W$)(a));const F=e=>{const t=[];S?.length>0&&(e?t.push((e=>(0,I.E)(e,S))):O.push((0,I.o)(S,M))),C?.length>0&&(e?(t.push((e=>Z(e,C))),O.push(k)):O.push(D(C,M))),e&&t.length>0&&O.push((0,g.ys)({override:t}))};F("twig/html"===e);const U=ke(e);return U&&(Array.isArray(U)?O.push(...U):O.push(U)),"twig"!==e&&"twig/html"!==e&&"twig/css"!==e||O.push(R),O}function Ce(e){switch(e){case"css":return G.t$;case"javascript":return F.Lz;case"x-php":return U.U;case"php":return U.U;case"html":return W.s6;case"twig":return j.i;case"twig/html":return me;case"twig/css":return j.i;default:return W.s6}}function ke(e){switch(e){case"css":return[(0,G.iv)(),ie,de,we];case"javascript":return(0,F.eJ)();case"x-php":return(0,U.h)();case"php":return(0,U.h)({plain:!0,baseLanguage:null});case"html":return[(0,W.dy)(),xe];case"twig":return(0,j.n)();case"twig/html":return ve();case"twig/css":return(0,j.n)();default:return null}}let Pe=class extends i.ZP{constructor(){super(...arguments),this.editorView=null,this.isUpdatingFromProp=!1}get classList(){return{"breakdance-codemirror":!0,"breakdance-codemirror-readonly":this.readOnly}}get disableLineWrapping(){return u.uiStore.settings.disableCodeMirrorLineWrapping}onDisableLineWrappingChange(){this.destroyEditor(),this.initEditor()}onValueChange(e){this.editorView&&e!==this.editorView.state.doc.toString()&&(this.isUpdatingFromProp=!0,this.editorView.dispatch({changes:{from:0,to:this.editorView.state.doc.length,insert:e||""}}),this.isUpdatingFromProp=!1)}onHighlightErrorLineChange(e){this.editorView&&$(this.editorView,e)}onChange(e){this.$emit("input",e)}async onFormat(){this.$emit("format")}onCursorPositionChange(e){this.$emit("cursor-position",e)}initEditor(){const e=Se(this.language,this.onCursorPositionChange,this.onChange,this.onFormat,this.isUpdatingFromProp,this.placeholder,this.showLineNumbers,this.firstLineNumber,this.readOnly,this.disableLineWrapping,this.focusAtPosition,this.twigVariables,this.tags,this.autofillOnEmpty,this.highlightErrorLine);this.editorView=new c.tk({parent:this.$refs.editor,state:l.yy.create({doc:this.value||"",extensions:e})})}destroyEditor(){this.editorView&&(this.editorView.destroy(),this.editorView=null)}beforeDestroy(){this.destroyEditor()}mounted(){this.initEditor()}};(0,a.gn)([(0,r.fI)()],Pe.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],Pe.prototype,"autofillOnEmpty",void 0),(0,a.gn)([(0,r.fI)()],Pe.prototype,"language",void 0),(0,a.gn)([(0,r.fI)({default:!0})],Pe.prototype,"showLineNumbers",void 0),(0,a.gn)([(0,r.fI)({default:1})],Pe.prototype,"firstLineNumber",void 0),(0,a.gn)([(0,r.fI)({default:!1})],Pe.prototype,"readOnly",void 0),(0,a.gn)([(0,r.fI)({default:""})],Pe.prototype,"placeholder",void 0),(0,a.gn)([(0,r.fI)({default:null})],Pe.prototype,"focusAtPosition",void 0),(0,a.gn)([(0,r.fI)({default:()=>[]})],Pe.prototype,"twigVariables",void 0),(0,a.gn)([(0,r.fI)({default:()=>[]})],Pe.prototype,"tags",void 0),(0,a.gn)([(0,r.fI)({default:null})],Pe.prototype,"highlightErrorLine",void 0),(0,a.gn)([(0,r.fI)({default:!1})],Pe.prototype,"formatting",void 0),(0,a.gn)([(0,r.RL)("disableLineWrapping")],Pe.prototype,"onDisableLineWrappingChange",null),(0,a.gn)([(0,r.RL)("value")],Pe.prototype,"onValueChange",null),(0,a.gn)([(0,r.RL)("highlightErrorLine")],Pe.prototype,"onHighlightErrorLineChange",null),Pe=(0,a.gn)([r.wA],Pe);const Ze=Pe,De=Ze;var Ee=n(1001),Te=(0,Ee.Z)(De,o,s,!1,null,null,null);const Ae=Te.exports},7094:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var o=n(37179),s=n(46072),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.editor?t("div",{staticClass:"tip-tap-wrapper",on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"k",void 0,t.key,void 0)?null:t.metaKey?e.openLinkDialog.apply(null,arguments):null}}},[t("div",{staticClass:"tip-tap-menu-bar"},[t("div",{staticClass:"tip-tap-toggle-mode mr-3"},[t("ButtonBarInput",{attrs:{items:[{text:e.__("Visual"),value:"visual"},{text:e.__("HTML"),value:"html"}],options:{mandatory:!0}},model:{value:e.mode,callback:function(t){e.mode=t},expression:"mode"}})],1),e._l(e.buttons,(function(n){return t("button",{key:n.icon,class:{"tip-tap-menu-bar__button":!0,"tip-tab-menu-bar__button--disabled":"html"===e.mode,"tip-tap-menu-bar__button--active":e.editor.isActive(n.name,n.level?{level:n.level}:void 0)},on:{click:function(t){return e.handleIconClick(n)}}},[t("Icon",{attrs:{icon:n.icon}})],1)})),e._t("toolbar",null,{editor:e.editor})],2),e.editor&&"visual"===e.mode?t("EditorContent",{staticClass:"tip-tap-editor",attrs:{editor:e.editor,"data-test-id":"tip-tap-editor-content"}}):t("div",[t("CodeInput",{attrs:{value:e.value,fullscreen:!1,language:"html"},on:{input:function(t){return e.$emit("input",t)}}})],1),t("Dialog",{attrs:{persistent:""},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.__("Add a link"))+" ")]},proxy:!0},{key:"text",fn:function(){return[t("TextInput",{key:e.linkDialogOpen,attrs:{placeholder:"https://example.com",autofocus:""},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.saveLink.apply(null,arguments))}},model:{value:e.url,callback:function(t){e.url=t},expression:"url"}}),t(s.Z,{attrs:{label:e.__("Open in new tab"),"input-value":e.openInNewTab,"hide-details":""},on:{change:function(t){e.openInNewTab=t}}})]},proxy:!0},{key:"actions",fn:function(){return[t(o.Z,{attrs:{text:""},on:{click:e.closeLinkDialog}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),e.existingLink?t(o.Z,{attrs:{color:"red",medium:"",dark:""},on:{click:e.removeLink}},[e._v(" "+e._s(e.__("Delete"))+" ")]):e._e(),t(o.Z,{attrs:{color:"blue",medium:"",dark:""},on:{click:e.saveLink}},[e._v(" "+e._s(e.__("Save"))+" ")])]},proxy:!0}],null,!1,1496792551),model:{value:e.linkDialogOpen,callback:function(t){e.linkDialogOpen=t},expression:"linkDialogOpen"}})],1):e._e()},i=[],r=n(70655),l=n(20144),c=n(38085),u=n(67625),d=n(67145),p=n(8481),h=n(69457),g=n(79068),m=n(60054),v=n(26950),f=n(70128),y=n(29802),b=n(47191),_=n(41769),I=n(85961),w=n(7082),x=n(93427),S=n(53418),C=n(53237),k=n(52693),P=n(77994),Z=n.n(P),D=n(85283),E=n(89137),T=n(41571),A=n(76922),M=n(81252),V=n(44762);const B=v.Z.extend({addAttributes(){return{rel:{default:null},href:{default:null},title:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},addProseMirrorPlugins(){return[new A.Sy({key:new A.H$("eventHandler"),props:{handleClick(e,t){const{schema:n,doc:o,tr:s}=e.state,a=(0,u.IH)(o.resolve(t),n.marks.link);if(!a)return!1;const i=o.resolve(a.from),r=o.resolve(a.to),l=s.setSelection(new A.Bs(i,r));return e.dispatch(l),!0}}})]}});let O=class extends l.ZP{constructor(){super(...arguments),this.mode="visual",this.editor=null,this.editorChange=!1,this.linkDialogOpen=!1,this.url=null,this.openInNewTab=!1,this.existingLink=!1}get minifiedHtml(){return this.value?.replace(/^\s+|\n|\r|\s+$/gm,"")}get buttons(){return[{name:"bold",icon:"BoldIcon",functionName:"toggleBold"},{name:"italic",icon:"ItalicIcon",functionName:"toggleItalic"},{name:"strike",icon:"StrikethroughIcon",functionName:"toggleStrike"},{name:"underline",icon:"UnderlineIcon",functionName:"toggleUnderline"},{name:"heading",icon:"H1Icon",level:1},{name:"heading",icon:"H2Icon",level:2},{name:"heading",icon:"H3Icon",level:3},{name:"heading",icon:"H4Icon",level:4},{name:"link",icon:"LinkIcon"},{name:"bulletList",icon:"ListIcon",functionName:"toggleBulletList"},{name:"orderedList",icon:"OlListIcon",functionName:"toggleOrderedList"}]}onModeChange(){"visual"===this.mode?this.editor.chain().setContent(this.minifiedHtml,!0).run():this.$emit("input",Z()(this.value))}onValueChange(e){this.editorChange||"visual"!==this.mode||this.editor.chain().setContent(e,!0).run(),this.editorChange=!1}mounted(){this.editor=new d.ML({content:this.minifiedHtml,onUpdate:this.updateValue,autofocus:"start",parseOptions:{preserveWhitespace:"full"},extensions:[p.Z,h.Z,g.Z,m.ZP,f.ZP,y.ZP,B.configure({openOnClick:!1,HTMLAttributes:{target:null}}),b.Z,_.Z.configure({levels:[1,2,3,4,5,6]}),I.ZP,w.ZP,x.Z,S.ZP,C.Z,k.Z]})}beforeDestroy(){this.editor&&this.editor.destroy()}updateValue(){this.editorChange=!0,""!==this.editor.getText()?this.$emit("input",this.editor.getHTML()):this.$emit("input",null)}handleIconClick(e){const t=this.editor.chain().focus();e.name.startsWith("heading")&&e.level?t.toggleHeading({level:e.level}).run():"link"!==e.name?e.functionName&&t[e.functionName]().run():this.openLinkDialog()}openLinkDialog(){const e=(0,u.IH)(this.editor.state.selection.$from,this.editor.schema.marks.link);e&&this.editor.commands.setTextSelection({from:e.from,to:e.to});const t=this.editor.getAttributes("link");this.url=t&&t.href||null,this.existingLink=!!this.url,this.openInNewTab=!(!t||!t.target)&&"_blank"===t.target,this.linkDialogOpen=!0}closeLinkDialog(){this.linkDialogOpen=!1,this.url=null,this.openInNewTab=!1,this.existingLink=!1}saveLink(){const e=this.editor.chain().focus(),t=this.editor.view.state.selection.empty,n=this.openInNewTab?"_blank":"_self";t?this.editor.commands.insertContent(`${this.url}`):this.url?e.setLink({href:this.url,target:n}).run():e.unsetLink().run(),this.closeLinkDialog()}removeLink(){this.editor.chain().focus().unsetLink().run(),this.closeLinkDialog()}};(0,r.gn)([(0,c.fI)({default:""})],O.prototype,"value",void 0),(0,r.gn)([(0,c.RL)("mode")],O.prototype,"onModeChange",null),(0,r.gn)([(0,c.RL)("value")],O.prototype,"onValueChange",null),O=(0,r.gn)([(0,c.wA)({components:{ButtonBarInput:V.Z,CodeInput:M.Z,TextInput:T.Z,Icon:D.Z,EditorContent:d.kg,Dialog:E.Z}})],O);const L=O,$=L;var z=n(1001),N=(0,z.Z)($,a,i,!1,null,null,null);const H=N.exports},2028:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(82202),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(o.Z,{staticClass:"breakdance-alert-box",class:`breakdance-alert-box--${e.alertClass}`,attrs:{icon:!1,dense:"",border:"left",text:"",type:e.alertType}},[t("div",{staticClass:"breakdance-alert-box__content",domProps:{innerHTML:e._s(e.content)}})])},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(85283);let u=class extends r.ZP{get alertType(){if(this.options&&"default"!==this.options.style)return this.options.style}get alertClass(){return this.options&&this.options.style?this.options.style:"default"}get content(){return this.options&&this.options.content?this.options.content:""}};(0,i.gn)([(0,l.fI)()],u.prototype,"options",void 0),u=(0,i.gn)([(0,l.wA)({components:{Icon:c.Z}})],u);const d=u,p=d;var h=n(1001),g=(0,h.Z)(p,s,a,!1,null,null,null);const m=g.exports},50219:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var o=n(37179),s=n(13407),a=n(43432),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"borders-complex d-flex flex-row mt-2 mb-3"},[t("div",{staticClass:"mr-5 d-flex justify-center align-center flex-column"},[t(s.Z,{attrs:{mandatory:""},model:{value:e.currentlyEditingSide,callback:function(t){e.currentlyEditingSide=t},expression:"currentlyEditingSide"}},[t("div",{staticClass:"borders-complex-nine-by-nine ml-n1"},[t("div",{staticClass:"borders-complex-side borders-complex-top"},[t(a.Z,{attrs:{bottom:"","content-class":"oxygen"==e.builderMode?"oxy-tooltip":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t(o.Z,e._g({attrs:{icon:"",tile:"",small:"",value:"top"}},n),[t("Icon",{style:e.topIconColor?"color: var(--blue500);":"",attrs:{icon:"BorderTopAltIcon",size:e.iconSize}})],1)]}}])},[t("span",[e._v(e._s(e.__("Border Top")))])])],1),t("div",{staticClass:"borders-complex-side borders-complex-bottom"},[t(a.Z,{attrs:{bottom:"","content-class":"oxygen"==e.builderMode?"oxy-tooltip":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t(o.Z,e._g({attrs:{icon:"",tile:"",small:"",value:"bottom"}},n),[t("Icon",{style:e.bottomIconColor?"color: var(--blue500);":"",attrs:{icon:"BorderBottomAltIcon",size:e.iconSize}})],1)]}}])},[t("span",[e._v(e._s(e.__("Border Bottom")))])])],1),t("div",{staticClass:"borders-complex-side borders-complex-left"},[t(a.Z,{attrs:{bottom:"","content-class":"oxygen"==e.builderMode?"oxy-tooltip":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t(o.Z,e._g({attrs:{icon:"",tile:"",small:"",value:"left"}},n),[t("Icon",{style:e.leftIconColor?"color: var(--blue500);":"",attrs:{icon:"BorderLeftAltIcon",size:e.iconSize}})],1)]}}])},[t("span",[e._v(e._s(e.__("Border Left")))])])],1),t("div",{staticClass:"borders-complex-side borders-complex-right"},[t(a.Z,{attrs:{bottom:"","content-class":"oxygen"==e.builderMode?"oxy-tooltip":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t(o.Z,e._g({attrs:{icon:"",tile:"",small:"",value:"right"}},n),[t("Icon",{style:e.rightIconColor?"color: var(--blue500);":"",attrs:{icon:"BorderRightAltIcon",size:e.iconSize}})],1)]}}])},[t("span",[e._v(e._s(e.__("Border Right")))])])],1),t("div",{staticClass:"borders-complex-side borders-complex-all"},[t(a.Z,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t(o.Z,e._g({attrs:{icon:"",tile:"",small:"",value:"all"}},n),[t("Icon",{style:e.allIconColor?"color: var(--blue500);":"",attrs:{icon:"SquareAltIcon",size:e.iconSize}})],1)]}}])},[t("span",[e._v(e._s(e.__("All Borders")))])])],1)])]),t(o.Z,{staticClass:"mt-4 ml-n1",attrs:{text:"","x-small":"",width:"50"},on:{click:e.clear}},[e._v(" "+e._s(e.__("clear"))+" ")])],1),t("div",[t("div",{staticClass:"borders-complex-control"},[t("span",{staticClass:"borders-complex-control__label"},[e._v(e._s(e.__("Width")))]),t("VariableBoundInput",{attrs:{value:e.width,name:"Border Width",type:"unit",small:!0,disabled:!e.acceptsVariable},on:{input:e.changeWidth}},[t("UnitInput",{staticClass:"input-with-no-extra-height",attrs:{value:e.width,expanded:!0},on:{input:e.changeWidth}})],1)],1),t("div",{staticClass:"borders-complex-control"},[t("span",{staticClass:"borders-complex-control__label"},[e._v(e._s(e.__("Color")))]),t("VariableBoundInput",{attrs:{value:e.color,name:e.__("Border Color"),type:"color",small:!0,disabled:!e.acceptsVariable},on:{input:e.changeColor}},[t("ColorInput",{key:e.currentlyEditingSide,staticClass:"input-with-no-extra-height",attrs:{value:e.color,"color-options":e.colorOptions},on:{input:e.changeColor}})],1)],1),t("div",{staticClass:"borders-complex-control"},[t("span",{staticClass:"borders-complex-control__label"},[e._v(e._s(e.__("Style")))]),t("DropdownInput",{staticClass:"input-with-no-extra-height",attrs:{value:e.style,items:["solid","dashed","dotted","none","double","groove","hidden","inset","outset","ridge"]},on:{input:e.changeStyle}})],1)])])},r=[],l=n(18446),c=n.n(l),u=n(70655),d=n(20144),p=n(38085),h=n(56823),g=n(71821),m=n(84336),v=n(16795),f=n(23128),y=n(32521),b=n(30902),_=n(45974),I=n(86042),w=n(85283),x=n(71657);const S=new y.Dy("EmptyArrayOrAny",(e=>!0),((e,t)=>Array.isArray(e)&&0===e.length?y.Rn(e,t):y.Vp(e)),y.yR),C=y.r$({top:S,bottom:S,left:S,right:S});function k(e){const t=C.decode(e);return(0,_.isLeft)(t)}function P(e){const t=(0,f.Z)(e),n=["top","bottom","left","right"];for(const o of n)Array.isArray(t[o])&&0===t[o].length&&(t[o]={width:null,color:"",style:""});return t}var Z=n(85450);const D=y.r$({width:v.UQ,color:I.EZ,style:y.Z_}),E=y.dt({top:D,right:D,left:D,bottom:D}),T={top:{width:null,color:"",style:""},bottom:{width:null,color:"",style:""},left:{width:null,color:"",style:""},right:{width:null,color:"",style:""}};let A=class extends d.ZP{constructor(){super(...arguments),this.currentlyEditingSide="all"}get builderMode(){return Z.configStore.builderMode}get internalValue(){if(!this.value)return(0,f.Z)(T);const e=k(this.value)?P(this.value):this.value;return(0,b.pipe)(e,E.decode,(0,_.fold)((()=>(0,f.Z)(T)),(e=>e)))}get colorOptions(){return{type:"solidOnly"}}clear(){this.edit({top:{},bottom:{},left:{},right:{}})}edit(e){this.$emit("input",e)}changeStyle(e){const t=V(this.internalValue,this.currentlyEditingSide,"style",e);this.edit(t)}changeColor(e){const t=V(this.internalValue,this.currentlyEditingSide,"color",e);this.edit(t)}changeWidth(e){const t=V(this.internalValue,this.currentlyEditingSide,"width",e);this.edit(t)}get width(){return"all"===this.currentlyEditingSide?this.valueForAllSidesOrBlank("width"):this.internalValue[this.currentlyEditingSide].width}get color(){return"all"===this.currentlyEditingSide?this.valueForAllSidesOrBlank("color"):this.internalValue[this.currentlyEditingSide].color}get style(){return"all"===this.currentlyEditingSide?this.valueForAllSidesOrBlank("style"):this.internalValue[this.currentlyEditingSide].style}valueForAllSidesOrBlank(e){return B(this.internalValue,e)&&e in this.internalValue.top?this.internalValue.top[e]:""}get allIconColor(){return O(this.internalValue,"all")?"primary":""}get leftIconColor(){return O(this.internalValue,"left")?"primary":""}get rightIconColor(){return O(this.internalValue,"right")?"primary":""}get bottomIconColor(){return O(this.internalValue,"bottom")?"primary":""}get topIconColor(){return O(this.internalValue,"top")?"primary":""}};(0,u.gn)([(0,p.fI)()],A.prototype,"value",void 0),(0,u.gn)([(0,p.fI)({default:!1})],A.prototype,"acceptsVariable",void 0),(0,u.gn)([(0,p.fI)({default:16})],A.prototype,"iconSize",void 0),A=(0,u.gn)([(0,p.wA)({components:{VariableBoundInput:x.Z,Icon:w.Z,UnitInput:h.Z,ColorInput:g.Z,DropdownInput:m.Z}})],A);const M=A;function V(e,t,n,o){const s=(0,f.Z)(e);return"all"===t?(s.top[n]=o,s.bottom[n]=o,s.right[n]=o,s.left[n]=o):s[t][n]=o,s}function B(e,t){let n=e.top[t];for(const[o,s]of Object.entries(e)){if(!c()(s[t],n))return!1;n=s[t]}return!0}function O(e,t){const n=B(e,"width")&&B(e,"style")&&B(e,"color");return!c()(e,{top:{},bottom:{},left:{},right:{}})&&("all"===t&&n?!(!e.top.style&&!e.top.color)||!!e.top.width?.number:!("all"===t&&!n)&&(("all"===t||!n)&&!("all"===t||!(e[t].style||e[t].color||e[t].width))))}const L=M;var $=n(1001),z=(0,$.Z)(L,i,r,!1,null,null,null);const N=z.exports},41779:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(37179),s=n(13407),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-border-radius-input"},[t("div",{staticClass:"border-radius-controls"},[t(s.Z,{attrs:{mandatory:""},model:{value:e.mode,callback:function(t){e.mode=t},expression:"mode"}},[t(o.Z,{staticClass:"btn-radius",attrs:{tile:"",small:"",value:"all"}},[t("Icon",{attrs:{size:"14",icon:"BorderRadiusAllIcon"}})],1),t(o.Z,{staticClass:"btn-radius",attrs:{tile:"",small:"",value:"custom"}},[t("Icon",{attrs:{size:"14",icon:"BorderRadiusAllCustomIcon"}})],1)],1),t("div",{staticClass:"ml-2"},[t("VariableBoundInput",{attrs:{value:e.getValueForSide("all"),name:"Radius",type:"unit",small:!0,disabled:!e.acceptsVariable||"custom"===e.mode},on:{input:function(t){return e.edit(t,"all")}}},[t("UnitInput",{attrs:{value:e.getValueForSide("all"),disabled:"custom"===e.mode},on:{input:function(t){return e.edit(t,"all")}}})],1)],1)],1),"custom"===e.mode?t("div",{staticClass:"custom-radius-container mt-2"},[t("div",{staticClass:"custom-radius-wrap"},[t("Icon",{attrs:{size:"14",icon:"BorderRadiusTopLeftIcon"}}),t("div",{staticClass:"custom-radius-input"},[t("VariableBoundInput",{attrs:{value:e.getValueForSide("topLeft"),name:"Radius",type:"unit",small:!0,disabled:!e.acceptsVariable},on:{input:function(t){return e.edit(t,"topLeft")}}},[t("UnitInput",{attrs:{value:e.getValueForSide("topLeft")},on:{input:function(t){return e.edit(t,"topLeft")}}})],1)],1)],1),t("div",{staticClass:"custom-radius-wrap"},[t("Icon",{attrs:{size:"14",icon:"BorderRadiusTopRightIcon"}}),t("div",{staticClass:"custom-radius-input"},[t("VariableBoundInput",{attrs:{value:e.getValueForSide("topRight"),name:"Radius",type:"unit",small:!0,disabled:!e.acceptsVariable},on:{input:function(t){return e.edit(t,"topRight")}}},[t("UnitInput",{attrs:{value:e.getValueForSide("topRight")},on:{input:function(t){return e.edit(t,"topRight")}}})],1)],1)],1),t("div",{staticClass:"custom-radius-wrap"},[t("Icon",{attrs:{size:"14",icon:"BorderRadiusBottomLeftIcon"}}),t("div",{staticClass:"custom-radius-input"},[t("VariableBoundInput",{attrs:{value:e.getValueForSide("bottomLeft"),name:"Radius",type:"unit",small:!0,disabled:!e.acceptsVariable},on:{input:function(t){return e.edit(t,"bottomLeft")}}},[t("UnitInput",{attrs:{value:e.getValueForSide("bottomLeft")},on:{input:function(t){return e.edit(t,"bottomLeft")}}})],1)],1)],1),t("div",{staticClass:"custom-radius-wrap"},[t("Icon",{attrs:{size:"14",icon:"BorderRadiusBottomRightIcon"}}),t("div",{staticClass:"custom-radius-input"},[t("VariableBoundInput",{attrs:{value:e.getValueForSide("bottomRight"),name:"Radius",type:"unit",small:!0,disabled:!e.acceptsVariable},on:{input:function(t){return e.edit(t,"bottomRight")}}},[t("UnitInput",{attrs:{value:e.getValueForSide("bottomRight")},on:{input:function(t){return e.edit(t,"bottomRight")}}})],1)],1)],1)]):e._e()])},i=[],r=n(70655),l=n(20144),c=n(38085),u=n(56823),d=n(85283),p=n(71657);const h=["all","topLeft","topRight","bottomLeft","bottomRight"];let g=class extends l.ZP{constructor(){super(...arguments),this.mode="all"}getValueForSide(e){return this.value&&e in this.value?this.value[e]:null}edit(e,t){if("all"===t)this.applyUnitInputValueToAllAndEmit(e);else{const n={...this.value,[t]:e};n.editMode="custom";const o=Object.values(n).some((e=>e&&"custom"!==e));if(!o)return void this.$emit("input",null);this.$emit("input",n)}}applyUnitInputValueToAllAndEmit(e){if(null===e)return void this.$emit("input",null);const t={};h.forEach((n=>{t[n]=e})),t.editMode="all",this.$emit("input",t)}get editMode(){return this.value?.editMode||this.mode}set editMode(e){this.mode=e}};(0,r.gn)([(0,c.fI)({default:null})],g.prototype,"value",void 0),(0,r.gn)([(0,c.fI)({default:!1})],g.prototype,"acceptsVariable",void 0),g=(0,r.gn)([(0,c.wA)({components:{VariableBoundInput:p.Z,UnitInput:u.Z,Icon:d.Z}})],g);const m=g,v=m;var f=n(1001),y=(0,f.Z)(v,a,i,!1,null,null,null);const b=y.exports},89883:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=n(37179),s=n(13407),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(s.Z,{class:e.classes,attrs:{dense:"",mandatory:e.options&&e.options.mandatory,multiple:e.options&&e.options.multiple},model:{value:e.internalValue,callback:function(t){e.internalValue=t},expression:"internalValue"}},e._l(e.items,(function(n,s){return t(o.Z,{key:s,class:{"button-as-placeholder":!e.internalValue&&n.value===e.placeholder},attrs:{value:n.value,small:"",title:n.text}},["icon"in n?[t("Icon",{attrs:{icon:n.icon}})]:[e._v(" "+e._s(n.text)+" ")]],2)})),1)},i=[],r=n(70655),l=n(20144),c=n(38085),u=n(85283);let d=class extends l.ZP{get layout(){return this.options?.layout||"default"}get internalValue(){return this.value}set internalValue(e){e?this.$emit("input",e):this.$emit("input",null)}get classes(){return{"breakdance-dense-button-toggle-multiline":"multiline"===this.layout,"breakdance-dense-button-toggle":"default"===this.layout}}};(0,r.gn)([(0,c.fI)()],d.prototype,"value",void 0),(0,r.gn)([(0,c.fI)()],d.prototype,"placeholder",void 0),(0,r.gn)([(0,c.fI)({default(){return[]}})],d.prototype,"items",void 0),(0,r.gn)([(0,c.fI)()],d.prototype,"options",void 0),d=(0,r.gn)([(0,c.wA)({components:{Icon:u.Z}})],d);const p=d,h=p;var g=n(1001),m=(0,g.Z)(h,a,i,!1,null,null,null);const v=m.exports},44762:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-button-bar-input"},[e.options&&"big"===e.options.size?[t("BigButtonBar",{attrs:{items:e.items},model:{value:e.internalValue,callback:function(t){e.internalValue=t},expression:"internalValue"}})]:[t("ButtonBar",{attrs:{items:e.items,placeholder:e.placeholder,options:e.options},model:{value:e.internalValue,callback:function(t){e.internalValue=t},expression:"internalValue"}})]],2)},s=[],a=n(70655),i=n(20144),r=n(38085),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-big-button-bar"},e._l(e.items,(function(n,o){return t("div",{key:o,class:{"breakdance-big-button-bar-button":!0,"breakdance-big-button-bar-button-active":e.activeButton[o]},on:{click:function(t){return e.setValue(n.value)}}},[n.icon?t("Icon",{staticClass:"mb-2",attrs:{icon:n.icon||"SquareIcon",size:"18"}}):e._e(),t("span",{staticClass:"breakdance-big-button-bar-button-text"},[e._v(" "+e._s(n.text)+" ")])],1)})),0)},c=[],u=n(85283);let d=class extends i.ZP{setValue(e){e&&this.value!==e?this.$emit("input",e):this.$emit("input",null)}get activeButton(){return this.items.map((e=>e.value===this.value))}};(0,a.gn)([(0,r.fI)()],d.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default(){return[]}})],d.prototype,"items",void 0),d=(0,a.gn)([(0,r.wA)({components:{Icon:u.Z}})],d);const p=d,h=p;var g=n(1001),m=(0,g.Z)(h,l,c,!1,null,null,null);const v=m.exports;var f=n(89883);let y=class extends i.ZP{get internalValue(){return this.value}set internalValue(e){this.$emit("input",e)}};(0,a.gn)([(0,r.fI)()],y.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],y.prototype,"placeholder",void 0),(0,a.gn)([(0,r.fI)({default(){return[]}})],y.prototype,"items",void 0),(0,a.gn)([(0,r.fI)()],y.prototype,"options",void 0),y=(0,a.gn)([(0,r.wA)({components:{BigButtonBar:v,ButtonBar:f.Z}})],y);const b=y,_=b;var I=(0,g.Z)(_,o,s,!1,null,null,null);const w=I.exports},81252:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ee});var o=n(12570),s=n(56275),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{key:e.language,staticClass:"code-input",class:{"code-input--inline":e.inline}},["x-php"===e.language?[t("CodeBoxButtonForCodeEditor",{attrs:{value:e.value},on:{codeboxSnippetSaved:e.edit}})]:e._e(),e.inline?e._e():t("NiceButton",{staticClass:"pa-3",attrs:{outlined:"",text:"","data-test-id":"open-code-input-dialog","left-icon":"CodeIcon"},on:{click:function(t){e.dialog=!0}}},[e._v(" "+e._s(e.title)+" ")]),t(o.Z,{attrs:{width:900,"max-width":900,transition:!1},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[e.inline?t("CodeMirrorWrapper",{attrs:{value:e.value,autofillOnEmpty:e.autofillOnEmpty,"show-line-numbers":e.showLineNumbers,language:e.language,placeholder:e.placeholder,"focus-at-position":e.focusAtPosition,"twig-variables":e.twigVariables,tags:e.tags,formatting:e.isFormatting},on:{input:e.edit,"cursor-position":e.onCursorPosition,format:e.onFormat}}):e._e(),e.isFormatting?t(s.Z,{staticClass:"code-input-formatting-spinner",attrs:{indeterminate:"",size:20,width:2,color:"white"}}):e._e(),e.inline&&e.fullscreen?t("button",e._g(e._b({staticClass:"code-input-toggle-fullscreen"},"button",o,!1),n),[t("Icon",{attrs:{icon:"ExpandIcon",size:"12"}})],1):e._e()]}}]),model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[e.fullscreen&&e.dialog?t("CodeInputDialog",{attrs:{value:e.value,language:e.language,placeholder:e.placeholder,autofillOnEmpty:e.autofillOnEmpty,formatting:e.isFormatting,open:e.dialog,"twig-variables":e.twigVariables,tags:e.tags,"focus-at-position":e.cursorPosition,formattable:e.formattable},on:{input:e.edit,close:e.closeDialog,format:e.onFormat}}):e._e()],1)],2)},i=[],r=n(70655),l=n(20144),c=n(47998),u=n(38085),d=n(22608),p=n(37179),h=n(73385),g=n(43432),m=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(h.Z,{staticClass:"code-input-dialog"},[t("header",{staticClass:"code-input-dialog-header"},[t("h3",{staticClass:"code-input-dialog-title"},[e._v(" "+e._s(e.sprintf(e.__("%s Editor"),e.title))+" ")]),t("div",{staticClass:"code-input-dialog-actions"},[t(g.Z,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[e.formattable?t(p.Z,e._g(e._b({staticClass:"code-input-dialog-format",attrs:{icon:"","data-test-id":"code-input-dialog-format",small:"",loading:e.formatting},on:{click:e.onFormat}},"v-btn",o,!1),n),[t("Icon",{attrs:{icon:"BroomWideIcon",size:"14"}})],1):e._e()]}}])},[t("span",[e._v(e._s(e.sprintf(e._doc("Format Code (%s)","%s: Keyboard shortcut"),e.formatShortcut)))])]),t(p.Z,{staticClass:"code-input-dialog-close",attrs:{icon:"","data-test-id":"code-input-dialog-close"},on:{click:e.closeDialog}},[t("Icon",{attrs:{icon:"CloseIcon",size:"14"}})],1)],1)]),t("CodeInput",{attrs:{placeholder:e.placeholder,value:e.value,fullscreen:!1,language:e.language,"twig-variables":e.twigVariables,autofillOnEmpty:e.autofillOnEmpty,tags:e.tags,"focus-at-position":e.focusAtPosition,"show-line-numbers":!0},on:{input:e.edit}})],1)},v=[],f=n(85283),y=n(11859);let b=class extends l.ZP{onFormat(){this.$emit("format")}beforeCreate(){this.$options.components.CodeInput=n(81252).Z}get title(){return this.language.replace("x-","")}get isMac(){const e=(0,y.X)().toLowerCase();return/mac/.test(e)}get formatShortcut(){return this.isMac?"⌘+⌥+L":"Ctrl+Alt+L"}edit(e){e?this.$emit("input",e):this.$emit("input",null)}closeDialog(){this.$emit("close")}};(0,r.gn)([(0,u.fI)()],b.prototype,"value",void 0),(0,r.gn)([(0,u.fI)()],b.prototype,"autofillOnEmpty",void 0),(0,r.gn)([(0,u.fI)({default:""})],b.prototype,"placeholder",void 0),(0,r.gn)([(0,u.fI)()],b.prototype,"open",void 0),(0,r.gn)([(0,u.fI)()],b.prototype,"language",void 0),(0,r.gn)([(0,u.fI)({default(){return[]}})],b.prototype,"tags",void 0),(0,r.gn)([(0,u.fI)({default(){return[]}})],b.prototype,"twigVariables",void 0),(0,r.gn)([(0,u.fI)({default:null})],b.prototype,"focusAtPosition",void 0),(0,r.gn)([(0,u.fI)({default:!1})],b.prototype,"formatting",void 0),(0,r.gn)([(0,u.fI)({default:!1})],b.prototype,"formattable",void 0),b=(0,r.gn)([(0,u.wA)({components:{Icon:f.Z,CodeMirrorWrapper:c.Z}})],b);const _=b,I=_;var w=n(1001),x=(0,w.Z)(I,m,v,!1,null,null,null);const S=x.exports;var C=n(79333),k=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.shouldShowButton?t("NiceButton",{staticClass:"code-box-button",attrs:{loading:e.loading},on:{click:e.sendToCodeBox}},[e._v(" "+e._s(e.__("Send To CodeBox"))+" ")]):e._e(),t("CodeBoxDialog",{attrs:{open:e.dialogOpen},on:{"update:dialog":e.updateDialogOpen}})],1)},P=[],Z=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t(o.Z,{attrs:{value:e.open,"max-width":"1120"},on:{input:function(t){return e.$emit("update:dialog",!1)}}},[t("div",{staticClass:"codebox-dialog-content"},[t("iframe",{attrs:{src:e.iframeSrc}})])])],1)},D=[],E=n(85450);let T=class extends l.ZP{get iframeSrc(){return"breakdance"===E.configStore.builderMode?"https://breakdance.com/codebox-iframe/":"https://oxygenbuilder.com/codebox-iframe/"}};(0,r.gn)([(0,u.fI)()],T.prototype,"open",void 0),T=(0,r.gn)([(0,u.wA)({components:{}})],T);const A=T,M=A;var V=(0,w.Z)(M,Z,D,!1,null,null,null);const B=V.exports;var O=n(98851),L=n(32521);const $=L.G0([L.dt({status:L.i0("success"),data:L.dt({snippetId:L.pk})}),L.dt({status:L.i0("codebox_not_installed")})]);async function z(e){return await(0,O.D)({action:"breakdance_codebox_send",decoder:$,friendlyName:"Send code to CodeBox",dataToPost:{code:e}})}var N=n(30902),H=n(45974),R=n(39664),G=n(36055);let F=class extends l.ZP{constructor(){super(...arguments),this.dialogOpen=!1,this.loading=!1}updateDialogOpen(e){this.dialogOpen=e}get shouldShowButton(){return this.value&&!this.value.includes("wpcb_run_snippet")}async sendToCodeBox(){this.value&&(this.loading=!0,(0,N.pipe)(await z(this.value),(0,H.fold)((()=>{R.Z.log.message((0,G.__)("Code was not saved."))}),(e=>{if("success"===e.status){const t="breakdance"===E.configStore.builderMode?"BreakdanceWPCodeBox":"OxygenWPCodeBox",n=``;this.$emit("codeboxSnippetSaved",n)}else this.updateDialogOpen(!0)}))),this.loading=!1)}};(0,r.gn)([(0,u.fI)()],F.prototype,"value",void 0),F=(0,r.gn)([(0,u.wA)({components:{CodeBoxDialog:B,NiceButton:C.Z}})],F);const U=F,W=U;var j=(0,w.Z)(W,k,P,!1,null,null,null);const X=j.exports;var q=n(49862);let K=class extends l.ZP{constructor(){super(...arguments),this.dialog=!1,this.isFormatting=!1,this.cursorPosition=null}get formattable(){return"css"===this.language||"html"===this.language}get title(){let e;switch(this.language){case"x-php":e="PHP";break;case"html":e="HTML";break;case"javascript":e="JavaScript";break;case"css":e="CSS";break;default:e=this.language}return(0,G.gB)((0,G.TZ)("Open %s Editor","%s: Programming language name"),e)}closeDialog(){this.dialog=!1}edit(e){e?this.$emit("input",e):this.$emit("input",null)}onCursorPosition(e){this.cursorPosition=e}async onFormat(){if(this.value&&!this.isFormatting){this.isFormatting=!0;try{if("css"===this.language){const e=await(0,q.Ki)(this.value);this.edit(e)}else if("html"===this.language){const e=await(0,q.jH)(this.value);this.edit(e)}this.isFormatting=!1}catch(e){const t=this.language.toUpperCase();R.Z.log.errorMessage((0,G.gB)((0,G.TZ)("Unable to format %s code. Please check for syntax errors like missing brackets, quotes, or semicolons, then try formatting again.","%s: Programming language name"),t)),console.error(e)}finally{this.isFormatting=!1}}}};(0,r.gn)([(0,u.fI)()],K.prototype,"value",void 0),(0,r.gn)([(0,u.fI)()],K.prototype,"autofillOnEmpty",void 0),(0,r.gn)([(0,u.fI)()],K.prototype,"language",void 0),(0,r.gn)([(0,u.fI)({default:!0})],K.prototype,"inline",void 0),(0,r.gn)([(0,u.fI)({default:!0})],K.prototype,"fullscreen",void 0),(0,r.gn)([(0,u.fI)({default:""})],K.prototype,"placeholder",void 0),(0,r.gn)([(0,u.fI)({default(){return[]}})],K.prototype,"tags",void 0),(0,r.gn)([(0,u.fI)({default(){return[]}})],K.prototype,"twigVariables",void 0),(0,r.gn)([(0,u.fI)({default:null})],K.prototype,"focusAtPosition",void 0),(0,r.gn)([(0,u.fI)({default:!1})],K.prototype,"showLineNumbers",void 0),K=(0,r.gn)([(0,u.wA)({components:{Icon:f.Z,CodeInputDialog:S,IconButton:d.Z,CodeMirrorWrapper:c.Z,NiceButton:C.Z,CodeBoxButtonForCodeEditor:X}})],K);const Y=K,J=Y;var Q=(0,w.Z)(J,a,i,!1,null,null,null);const ee=Q.exports},71821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-color-input",class:{[`breakdance-color-input--${e.position}`]:!0,"breakdance-color-input--large":e.isLarge,"breakdance-color-input--inline":e.inline},style:e.cssVariables},[e.inline?t("ColorPicker",e._b({attrs:{inline:!0},on:{input:e.updateValue,close:function(t){e.dialogOpen=!1}}},"ColorPicker",e.colorPickerAttrs,!1)):t("Dropdown",{staticClass:"breakdance-color-dropdown",attrs:{"close-on-content-click":!1,"offset-y":"",right:"left"===e.position,left:"right"===e.position,bottom:"","nudge-top":-6,"nudge-right":0,"max-width":"225"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("ColorSwatch",e._g({attrs:{"color-code":e.colorCode}},n)),e.isLarge?t("MediaChooserLayer",e._g({attrs:{value:e.colorCode}},n)):e._e()]}}]),model:{value:e.dialogOpen,callback:function(t){e.dialogOpen=t},expression:"dialogOpen"}},[t("ColorPicker",e._b({on:{input:e.updateValue,close:function(t){e.dialogOpen=!1}}},"ColorPicker",e.colorPickerAttrs,!1))],1),e.showInput?t("div",{staticClass:"breakdance-color-input-name"},[e.globalColor?t("div",{staticClass:"breakdance-color-input-global-badge",on:{click:function(t){e.dialogOpen=!0}}},[t("span",{staticClass:"ellipsis-text"},[e._v(" "+e._s(e.globalColor.label)+" ")])]):"solid"===e.internalValue.type?t("TextInput",{staticClass:"breakdance-color-input-text-field-wrapper",attrs:{value:e.internalValue.value,placeholder:e.placeholder},on:{input:e.onInput}}):t("div",{staticClass:"breakdance-color-input-global-badge",on:{click:function(t){e.dialogOpen=!0}}},[e.internalValue.value?t("span",{staticClass:"ellipsis-text"},[e._v(" "+e._s(e.internalValue.type)+" ")]):e._e()])],1):e._e()],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(30902),c=n(45974),u=n(88615),d=n(86042),p=n(9793),h=n(74142),g=n(15133),m=n(41571),v=n(4802);const f={value:"",type:"solid"},y={value:"",svgValue:"",type:"linear",degree:0,points:[{left:0,red:0,green:0,blue:0,alpha:1},{left:100,red:255,green:0,blue:0,alpha:1}]};let b=class extends i.ZP{constructor(){super(...arguments),this.dialogOpen=!1}get availableType(){return this.colorOptions?.type||"solidOnly"}get internalValue(){const e="string"===typeof this.value?{value:this.value,type:"solid"}:null,t=e||this.value,n="gradientOnly"===this.availableType?y:f;return(0,l.pipe)(t,d.Wd.decode,(0,c.fold)((()=>n),(e=>e)))}get colorCode(){return this.globalColor?(0,u.dI)(this.globalColor):this.internalValue.value}get globalColor(){return(0,u.en)(this.internalValue,this.globalColors)}get globalColors(){return(0,u.wJ)()}get cssVariables(){return this.globalColors.reduce(((e,t)=>(e[`--${t.cssVariableName}`]=(0,u.dI)(t),e)),{})}get isCSSVariable(){return!!this.internalValue&&(0,u.oi)(this.internalValue)}get canSaveColor(){return!this.isCSSVariable&&this.value}get isLarge(){return"gradientOnly"===this.availableType&&!this.small}get colorPickerAttrs(){return{availableType:this.availableType,globalColors:this.globalColors,globalColor:this.globalColor,showGlobal:this.showGlobal,canSave:this.canSaveColor,value:this.internalValue,isOpen:this.dialogOpen,style:this.cssVariables}}onInput(e){if(!e)return void this.$emit("input",null);const t=(0,u.FX)(e)&&!e.includes("#"),n=t?`#${e}`:e;this.$emit("input",n)}updateValue(e){e?this.$emit("input",e):this.$emit("input",null)}};(0,a.gn)([(0,r.fI)()],b.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],b.prototype,"placeholder",void 0),(0,a.gn)([(0,r.fI)()],b.prototype,"colorOptions",void 0),(0,a.gn)([(0,r.fI)({default:!0})],b.prototype,"showGlobal",void 0),(0,a.gn)([(0,r.fI)({default:!0})],b.prototype,"showInput",void 0),(0,a.gn)([(0,r.fI)({default:!1})],b.prototype,"small",void 0),(0,a.gn)([(0,r.fI)({default:!1})],b.prototype,"inline",void 0),(0,a.gn)([(0,r.fI)({default:"right"})],b.prototype,"position",void 0),b=(0,a.gn)([(0,r.wA)({components:{MediaChooserLayer:v.Z,TextInput:m.Z,Dropdown:g.Z,ColorPicker:h.Z,ColorSwatch:p.Z}})],b);const _=b,I=_;var w=n(1001),x=(0,w.Z)(I,o,s,!1,null,null,null);const S=x.exports},74142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Pn});var o=n(25135),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"color-picker",on:{mousedown:e.onMouseDown}},[t("DropdownDragHandle",[t("header",{staticClass:"color-picker-header"},[e.inline?e._e():t("Icon",{staticClass:"dropdown-drag-icon",attrs:{icon:"GripVerticalIcon",size:"12"}}),e.types.length>1?t(o.Z,{staticClass:"color-picker-type-input",attrs:{items:e.types,"hide-details":!0},on:{input:e.resetValueWhenTypeChanges},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}}):t("span",{staticClass:"color-picker-title"},[e._v(e._s(e.__("Color Picker")))]),"solid"===e.type?t("EyeDropper",{staticClass:"ml-auto",on:{input:e.onSolidSelected}}):e._e(),e.inline?e._e():t("button",{staticClass:"ml-3 dropdown-close-icon dropdown-action-icon",on:{click:function(t){return e.$emit("close")}}},[t("Icon",{attrs:{icon:"CloseIcon",size:"16"}})],1)],1)]),"solid"===e.type?t("VueColorWrapper",{key:e.componentKey,attrs:{value:e.internalColor},on:{input:e.onSolidSelected}}):t("VueGradientWrapper",{key:e.componentKey,attrs:{value:e.internalGradient,type:e.type},on:{input:e.onGradientSelected}}),e.showGlobal?t("GlobalColorsList",{attrs:{value:e.globalColors,"can-save":e.canSave,"selected-color":e.value,"selected-global-color":e.globalColor,type:e.type},on:{input:e.onGlobalColorSelected}}):e._e()],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(86042),u=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("Chrome",{attrs:{value:e.value||""},on:{input:e.updateValue}})],1)},d=[],p=n(94023);let h=class extends r.ZP{updateValue(e){"hex8"in e?this.$emit("input",e.hex8):(console.log("what the fuck, color picker not giving a valid value"),this.$emit("input","#2277eeff"))}};(0,i.gn)([(0,l.fI)({default:"#2277eeff"})],h.prototype,"value",void 0),h=(0,i.gn)([(0,l.wA)({components:{Chrome:p.Chrome}})],h);const g=h,m=g;var v=n(1001),f=(0,v.Z)(m,u,d,!1,null,null,null);const y=f.exports;var b=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"color-gradient-picker"},[t("Gradient",{attrs:{points:e.value.points,type:e.type,degree:e.value.degree,onChange:e.onGradientSelected,onStartChange:e.onGradientSelected,onEndChange:e.onGradientSelected}})],1)},_=[],I=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"gradient-picker",class:{"is-shift-active":e.isShiftActive}},[t("Area",{attrs:{red:e.colorRed,green:e.colorGreen,blue:e.colorBlue,alpha:e.colorAlpha,hue:e.colorHue,saturation:e.colorSaturation,value:e.colorValue,updateColor:e.updateColor,type:e.type,degree:e.degree,points:e.points,activePointIndex:e.activePointIndex,changeGradientControl:e.changeGradientControl,changeActivePointIndex:e.changeActivePointIndex,updateGradientLeft:e.updateGradientLeft,addPoint:e.addPoint,removePoint:e.removePoint}}),t("Preview",{attrs:{red:e.colorRed,green:e.colorGreen,blue:e.colorBlue,alpha:e.colorAlpha,updateColor:e.updateColor,disabled:!!e.globalColor}}),t("GradientControls",{attrs:{type:e.type,degree:e.degree,changeGradientControl:e.changeGradientControl}}),t("GlobalColorsList",{attrs:{type:"solid",value:e.globalColors,"selected-global-color":e.globalColor},on:{input:e.updateGlobalColor}})],1)},w=[],x=n(20570),S=n(59496),C=n(81603),k=n(83117);function P(e,t,n,o){let s=360*e/t|0;return s=s<0?0:s>360?360:s,{...(0,k.Z)(s,n,o),hue:s}}var Z=n(79919),D=n(62738);const E=/(^#{0,1}[0-9A-F]{6}$)|(^#{0,1}[0-9A-F]{3}$)|(^#{0,1}[0-9A-F]{8}$)/i,T=/([0-9A-F])([0-9A-F])([0-9A-F])/i;function A(e){const t=E.test(e);if(t){"#"===e[0]&&(e=e.slice(1,e.length)),3===e.length&&(e=e.replace(T,"$1$1$2$2$3$3"));const t=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2,2),16),o=parseInt(e.substr(4,2),16),s=parseInt(e.substr(6,2),16)/255,a=(0,M.Z)(t,n,o,s),i=(0,x.Z)({...a});return{...a,...i}}return null}var M=n(21747),V=n(41091),B=n(6689),O=n(8642),L=n(26251),$=n(99759),z=n(98027),N=n(25500),H=n(23128),R=n(88615);function G(e,t=1){let n=e%360;n<0&&(n+=360);const o=n%45,s=Math.PI/180*o,a=1/Math.cos(s)*Math.sin(s),i=n%180,r=a,l=1;let c,u;i<45?(c=r,u=l):i<90?(c=l,u=1-r):i<135?(c=l,u=-r):i<180&&(c=1-r,u=-l),n<180&&(c=-c,u=-u);let d=-c,p=-u;return c=(c+1)/2*t,u=(1-u)/2*t,d=(d+1)/2*t,p=(1-p)/2*t,{x1:c,y1:u,x2:d,y2:p}}function F(e){return(0,H.Z)(e).sort(((e,t)=>e.left-t.left))}function U(e,t,n){const o=F(e),s=(0,N.Wj)(),a=(0,R.wJ)(),i=s.gradient(t,(e=>{o.forEach((t=>{const n=new N.Il(t.red,t.green,t.blue),o=a.find((e=>e.cssVariableName===t.globalColor));e.stop({offset:t.left/100,color:o?`var(--${o.cssVariableName})`:n.toString(),opacity:t.alpha})}))}));if("linear"===t){const{x1:e,y1:t,x2:o,y2:s}=G(n);i.from(e,t).to(o,s)}return i.id("%%GRADIENTID%%").svg()}var W=function(){var e=this,t=e._self._c;return t("div",{staticClass:"color-preview-area",class:{disabled:e.disabled}},[t("div",{staticClass:"input-group"},[t("Hex",{attrs:{red:e.red,green:e.green,blue:e.blue,updateColor:e.updateColor}}),t("RGB",{attrs:{red:e.red,green:e.green,blue:e.blue,alpha:e.alpha,updateColor:e.updateColor}})],1)])},j=[],X=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("GradientInput",{attrs:{value:e.hexValue,label:"HEX",onFocus:()=>e.inProgress=!0,onBlur:()=>e.inProgress=!1,inProgress:e.inProgress,classes:"hex"},on:{input:e.changeHex}})},q=[],K=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:`input-field ${e.classes}`},[t("div",{staticClass:"input-container"},[t("input",{class:`${e.type}-input input`,domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:function(t){return e.$emit("input",t)}}})]),t("div",{staticClass:"label"},[e._v(" "+e._s(e.label)+" ")])])},Y=[];let J=class extends r.ZP{};(0,i.gn)([(0,l.fI)({default:""})],J.prototype,"value",void 0),(0,i.gn)([(0,l.fI)({default:""})],J.prototype,"label",void 0),(0,i.gn)([(0,l.fI)({default:"text"})],J.prototype,"type",void 0),(0,i.gn)([(0,l.fI)({default:""})],J.prototype,"classes",void 0),(0,i.gn)([(0,l.fI)({default:()=>{}})],J.prototype,"onFocus",void 0),(0,i.gn)([(0,l.fI)({default:()=>{}})],J.prototype,"onBlur",void 0),J=(0,i.gn)([l.wA],J);const Q=J,ee=Q;var te=(0,v.Z)(ee,K,Y,!1,null,null,null);const ne=te.exports;let oe=class extends r.ZP{constructor(){super(...arguments),this.inProgress=!1,this.hexValue=(0,D.Z)(this.red,this.green,this.blue)}get hex(){return(0,D.Z)(this.red,this.green,this.blue)}onProgressChange(){this.setHex()}onRedChange(){this.setHex()}onGreenChange(){this.setHex()}onBlueChange(){this.setHex()}setHex(){this.inProgress||(this.hexValue=this.hex)}changeHex(e){const t=e.target,n=A(t.value);n&&this.updateColor(n)}};(0,i.gn)([(0,l.fI)()],oe.prototype,"red",void 0),(0,i.gn)([(0,l.fI)()],oe.prototype,"green",void 0),(0,i.gn)([(0,l.fI)()],oe.prototype,"blue",void 0),(0,i.gn)([(0,l.fI)()],oe.prototype,"alpha",void 0),(0,i.gn)([(0,l.fI)()],oe.prototype,"updateColor",void 0),(0,i.gn)([(0,l.RL)("inProgress")],oe.prototype,"onProgressChange",null),(0,i.gn)([(0,l.RL)("red")],oe.prototype,"onRedChange",null),(0,i.gn)([(0,l.RL)("green")],oe.prototype,"onGreenChange",null),(0,i.gn)([(0,l.RL)("blue")],oe.prototype,"onBlueChange",null),oe=(0,i.gn)([(0,l.wA)({components:{GradientInput:ne}})],oe);const se=oe,ae=se;var ie=(0,v.Z)(ae,X,q,!1,null,null,null);const re=ie.exports;var le=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"rgb-group"},[t("RGBItem",{attrs:{value:e.red,type:"number",label:"R",onChange:t=>e.changeValue("red",t)}}),t("RGBItem",{attrs:{value:e.green,type:"number",label:"G",onChange:t=>e.changeValue("green",t)}}),t("RGBItem",{attrs:{value:e.blue,type:"number",label:"B",onChange:t=>e.changeValue("blue",t)}}),t("RGBItem",{attrs:{value:parseInt(100*e.alpha,10),type:"number",label:"A",onChange:t=>e.changeValue("alpha",t)}})],1)},ce=[],ue=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("GradientInput",{attrs:{value:e.inputValue,type:e.type,label:e.label,onFocus:()=>e.inProgress=!0,onBlur:e.onBlur,inProgress:e.inProgress,classes:"rgb"},on:{input:e.onChangeHandler}})},de=[];let pe=class extends r.ZP{constructor(){super(...arguments),this.inputValue=this.value,this.inProgress=!1}onValueChange(){this.setValue()}onChangeHandler(e){const t=e.target,n=+t.value;if(Number.isNaN(n)||n<0||n>255)return this.inputValue=this.value,void this.$forceUpdate();this.inputValue=t.value,this.onChange(n)}onBlur(){this.inputValue||0===this.inputValue||(this.inputValue=this.value),this.inProgress=!1}setValue(){this.value!==+this.inputValue&&""!==this.inputValue&&(this.inputValue=this.value)}};(0,i.gn)([(0,l.fI)()],pe.prototype,"value",void 0),(0,i.gn)([(0,l.fI)()],pe.prototype,"type",void 0),(0,i.gn)([(0,l.fI)()],pe.prototype,"label",void 0),(0,i.gn)([(0,l.fI)()],pe.prototype,"onChange",void 0),(0,i.gn)([(0,l.RL)("value")],pe.prototype,"onValueChange",null),pe=(0,i.gn)([(0,l.wA)({components:{GradientInput:ne}})],pe);const he=pe,ge=he;var me=(0,v.Z)(ge,ue,de,!1,null,null,null);const ve=me.exports;let fe=class extends r.ZP{changeValue(e,t){if("alpha"===e)return void this.updateColor({alpha:t/100});const n=(0,x.Z)({red:this.red,green:this.green,blue:this.blue,[e]:t});this.updateColor({...n,[e]:t})}};(0,i.gn)([(0,l.fI)()],fe.prototype,"red",void 0),(0,i.gn)([(0,l.fI)()],fe.prototype,"green",void 0),(0,i.gn)([(0,l.fI)()],fe.prototype,"blue",void 0),(0,i.gn)([(0,l.fI)()],fe.prototype,"alpha",void 0),(0,i.gn)([(0,l.fI)()],fe.prototype,"updateColor",void 0),fe=(0,i.gn)([(0,l.wA)({components:{RGBItem:ve}})],fe);const ye=fe,be=ye;var _e=(0,v.Z)(be,le,ce,!1,null,null,null);const Ie=_e.exports,we={name:"Preview",props:{red:Number,green:Number,blue:Number,alpha:Number,updateColor:Function,disabled:Boolean},components:{Hex:re,RGB:Ie}},xe=we;var Se=(0,v.Z)(xe,W,j,!1,null,null,null);const Ce=Se.exports;var ke=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"gradient-controls"},["linear"===e.type?t("div",{staticClass:"gradient-degrees-options"},[t("div",{staticClass:"gradient-degrees",on:{mousedown:e.mouseEvents,click:e.onClickGradientDegree}},[t("div",{staticClass:"gradient-degree-center",style:e.degreesStyle},[t("div",{staticClass:"gradient-degree-pointer"})])]),t("div",{staticClass:"gradient-degree-field"},[t("input",{staticClass:"gradient-degree-value breakdance-simple-number-input breakdance-white-gray-outlined-input breakdance-hide-number-arrows",attrs:{type:"number",step:"1"},domProps:{value:e.degree},on:{input:e.onInputChange}}),t("span",{staticClass:"gradient-degree-field-symbol"},[e._v("°")])])]):e._e()])},Pe=[];let Ze=class extends r.ZP{constructor(){super(...arguments),this.disableClick=!1,this.mouseEvents=()=>{}}get degreesStyle(){return{transform:`rotate(${this.degree}deg)`}}mounted(){this.mouseEvents=(0,$.Z)(this.mouseDownHandler,this.mouseMoveHandler,this.mouseUpHandler)}mouseDownHandler(e){const t=e.target,n=t.getBoundingClientRect(),o=n.top+Math.floor(8-window.pageYOffset),s=n.left+Math.floor(8-window.pageXOffset);return{centerY:o,centerX:s}}mouseMoveHandler(e,{centerX:t,centerY:n}){e.preventDefault(),this.disableClick=!0;const o=(0,B.Z)(e.clientX,e.clientY,t,n);this.changeGradientControl({degree:Math.floor(o)})}mouseUpHandler(e){e.preventDefault();const t=e.target.classList;t.contains("gradient-degrees")||t.contains("icon-rotate")||(this.disableClick=!1)}onClickGradientDegree(){if(this.disableClick)return void(this.disableClick=!1);let e=this.degree+45;e>=360&&(e=0),this.changeGradientControl({degree:e})}onInputChange(e){const t=e.target,n=t.value?t.valueAsNumber:null;this.changeGradientControl({degree:n})}};(0,i.gn)([(0,l.fI)()],Ze.prototype,"type",void 0),(0,i.gn)([(0,l.fI)()],Ze.prototype,"degree",void 0),(0,i.gn)([(0,l.fI)({default:()=>{}})],Ze.prototype,"changeGradientControl",void 0),Ze=(0,i.gn)([l.wA],Ze);const De=Ze,Ee=De;var Te=(0,v.Z)(Ee,ke,Pe,!1,null,null,null);const Ae=Te.exports;var Me=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"picker-area"},[t("Picker",{attrs:{red:e.red,green:e.green,blue:e.blue,hue:e.hue,saturation:e.saturation,value:e.value,updateColor:e.updateColor}}),t("div",{staticClass:"picker-controls"},[t("GradientPoints",{attrs:{type:e.type,degree:e.degree,points:e.points,activePointIndex:e.activePointIndex,changeActivePointIndex:e.changeActivePointIndex,updateGradientLeft:e.updateGradientLeft,addPoint:e.addPoint,removePoint:e.removePoint}}),t("div",{staticClass:"preview"},[t("Preview",{attrs:{red:e.red,green:e.green,blue:e.blue,alpha:e.alpha,points:e.points,gradientDegree:e.degree,gradientType:e.type}}),t("div",{staticClass:"color-hue-alpha"},[t("Hue",{attrs:{hue:e.hue,saturation:e.saturation,value:e.value,updateColor:e.updateColor}}),t("Alpha",{attrs:{alpha:e.alpha,red:e.red,green:e.green,blue:e.blue,updateColor:e.updateColor}})],1)],1)],1)],1)},Ve=[],Be=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"pickerAreaRef",staticClass:"picking-area",style:e.pickerStyle,on:{mousedown:e.mouseEvents}},[t("div",{staticClass:"picking-area-overlay1"},[t("div",{staticClass:"picking-area-overlay2"},[t("div",{staticClass:"picker-pointer",style:e.pointerStyle})])])])},Oe=[];let Le=class extends r.ZP{constructor(){super(...arguments),this.width=0,this.height=0,this.pointerWidth=12,this.mouseEvents=()=>{}}get offsetLeft(){return(this.saturation*this.width/100|0)-this.pointerWidth/2}get offsetTop(){return(this.height-this.value*this.height/100|0)-this.pointerWidth/2}get pointerStyle(){return{backgroundColor:`rgb(${this.red}, ${this.green}, ${this.blue})`,left:`${this.offsetLeft}px`,top:`${this.offsetTop}px`}}get pickerStyle(){const{red:e,green:t,blue:n}=(0,S.Z)(this.hue);return{backgroundColor:`rgb(${e}, ${t}, ${n})`}}mounted(){(0,L.Z)(this.calculateBounds),this.mouseEvents=(0,$.Z)(this.mouseDownHandler,this.mouseMoveHandler,this.mouseUpHandler)}calculateBounds(){const e=this.$refs.pickerAreaRef;e&&(this.width=e.clientWidth,this.height=e.clientHeight)}clamp(e,t,n){return e<=t?t:e>=n?n:e}mouseDownHandler(e){const t=this.$refs.pickerAreaRef,{x:n,y:o}=t.getBoundingClientRect(),s=e.pageX,a=e.pageY,i=s-n,r=a-o,l=(0,C.Z)(i,r,this.height,this.width,this.hue);return this.updateColor(l,"onStartChange"),{startX:s,startY:a,positionX:i,positionY:r}}changeObjectPositions(e,{startX:t,startY:n,positionX:o,positionY:s}){const a=e.pageX-t,i=e.pageY-n;o+=a,s+=i;const r=(0,C.Z)(o,s,this.height,this.width,this.hue);return{positions:{positionX:o,positionY:s,startX:e.pageX,startY:e.pageY},color:r}}mouseMoveHandler(e,{startX:t,startY:n,positionX:o,positionY:s}){e.preventDefault();const{positions:a,color:i}=this.changeObjectPositions(e,{startX:t,startY:n,positionX:o,positionY:s});return this.updateColor(i,"onChange"),a}mouseUpHandler(e,{startX:t,startY:n,positionX:o,positionY:s}){e.preventDefault();const{positions:a,color:i}=this.changeObjectPositions(e,{startX:t,startY:n,positionX:o,positionY:s});return this.updateColor(i,"onEndChange"),a}};(0,i.gn)([(0,l.fI)()],Le.prototype,"red",void 0),(0,i.gn)([(0,l.fI)()],Le.prototype,"green",void 0),(0,i.gn)([(0,l.fI)()],Le.prototype,"blue",void 0),(0,i.gn)([(0,l.fI)()],Le.prototype,"alpha",void 0),(0,i.gn)([(0,l.fI)()],Le.prototype,"hue",void 0),(0,i.gn)([(0,l.fI)()],Le.prototype,"saturation",void 0),(0,i.gn)([(0,l.fI)()],Le.prototype,"value",void 0),(0,i.gn)([(0,l.fI)()],Le.prototype,"updateColor",void 0),Le=(0,i.gn)([l.wA],Le);const $e=Le,ze=$e;var Ne=(0,v.Z)(ze,Be,Oe,!1,null,null,null);const He=Ne.exports;var Re=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"preview-area"},[t("div",{staticClass:"preview-box",style:e.style})])},Ge=[];let Fe=class extends r.ZP{get style(){const e=(0,z.l)(this.points,this.gradientType,this.gradientDegree);return{background:e}}};(0,i.gn)([(0,l.fI)()],Fe.prototype,"red",void 0),(0,i.gn)([(0,l.fI)()],Fe.prototype,"green",void 0),(0,i.gn)([(0,l.fI)()],Fe.prototype,"blue",void 0),(0,i.gn)([(0,l.fI)()],Fe.prototype,"alpha",void 0),(0,i.gn)([(0,l.fI)()],Fe.prototype,"points",void 0),(0,i.gn)([(0,l.fI)()],Fe.prototype,"gradientDegree",void 0),(0,i.gn)([(0,l.fI)()],Fe.prototype,"gradientType",void 0),Fe=(0,i.gn)([l.wA],Fe);const Ue=Fe,We=Ue;var je=(0,v.Z)(We,Re,Ge,!1,null,null,null);const Xe=je.exports;var qe=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"hue",on:{mousedown:e.mouseEvents}},[t("div",{ref:"hueRef",staticClass:"hue-area"},[t("div",{staticClass:"picker-pointer",style:e.pointerStyle})])])},Ke=[];let Ye=class extends r.ZP{constructor(){super(...arguments),this.width=0,this.mouseEvents=()=>{}}get offsetLeft(){return(this.hue*this.width/360|0)-6}get pointerStyle(){return{left:`${this.offsetLeft}px`}}mounted(){(0,L.Z)(this.calculateBounds),this.mouseEvents=(0,$.Z)(this.mouseDownHandler,this.mouseMoveHandler,this.mouseUpHandler)}calculateBounds(){const e=this.$refs.hueRef;e&&(this.width=e.clientWidth)}mouseDownHandler(e){this.calculateBounds();const t=e.pageX,n=e.currentTarget,o=n.getBoundingClientRect().x,s=t-o,a=P(s,this.width,this.saturation,this.value);return this.updateColor(a,"onStartChange"),{startX:t,positionX:s}}changeObjectPositions(e,{startX:t,positionX:n}){const o=e.pageX,s=o-t;n+=s;const a=n>this.width?this.width:n<=0?0:n,i=P(a,this.width,this.saturation,this.value);return{positions:{positionX:n,startX:o},color:i}}mouseMoveHandler(e,{startX:t,positionX:n}){e.preventDefault();const{positions:o,color:s}=this.changeObjectPositions(e,{startX:t,positionX:n});return this.updateColor(s,"onChange"),o}mouseUpHandler(e,{startX:t,positionX:n}){e.preventDefault();const{positions:o,color:s}=this.changeObjectPositions(e,{startX:t,positionX:n});return this.updateColor(s,"onEndChange"),o}};(0,i.gn)([(0,l.fI)()],Ye.prototype,"hue",void 0),(0,i.gn)([(0,l.fI)()],Ye.prototype,"saturation",void 0),(0,i.gn)([(0,l.fI)()],Ye.prototype,"value",void 0),(0,i.gn)([(0,l.fI)()],Ye.prototype,"updateColor",void 0),Ye=(0,i.gn)([l.wA],Ye);const Je=Ye,Qe=Je;var et=(0,v.Z)(Qe,qe,Ke,!1,null,null,null);const tt=et.exports;var nt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"alpha",on:{mousedown:e.mouseEvents}},[t("div",{staticClass:"gradient",style:e.style}),t("div",{staticClass:"alpha-area has-transparency-layer"},[t("div",{ref:"alphaMaskRef",staticClass:"alpha-mask"},[t("div",{staticClass:"picker-pointer",style:e.pointerStyle})])])])},ot=[];let st=class extends r.ZP{constructor(){super(...arguments),this.width=0,this.mouseEvents=()=>{}}mounted(){(0,L.Z)(this.calculateBounds),this.mouseEvents=(0,$.Z)(this.mouseDownHandler,this.mouseMoveHandler,this.mouseUpHandler)}get offsetLeft(){return(this.alpha*this.width|0)-6}get pointerStyle(){return{left:`${this.offsetLeft}px`}}get style(){return{background:`linear-gradient(to right, rgba(0, 0, 0, 0), rgb(${this.red}, ${this.green}, ${this.blue}))`}}calculateBounds(){const e=this.$refs.alphaMaskRef;e&&(this.width=e.clientWidth)}mouseDownHandler(e){const t=e.pageX,n=e.currentTarget,o=n.getBoundingClientRect().x,s=t-o;return this.updateColor({alpha:(0,Z.Z)(s,this.width)},"onStartChange"),{startX:t,positionX:s}}changeObjectPositions(e,{startX:t,positionX:n}){const o=e.pageX,s=o-t;n+=s;const a=(0,Z.Z)(n,this.width);return{positions:{positionX:n,startX:o},alpha:a}}mouseMoveHandler(e,{startX:t,positionX:n}){e.preventDefault();const{positions:o,alpha:s}=this.changeObjectPositions(e,{startX:t,positionX:n});return this.updateColor({alpha:s},"onChange"),o}mouseUpHandler(e,{startX:t,positionX:n}){e.preventDefault();const{positions:o,alpha:s}=this.changeObjectPositions(e,{startX:t,positionX:n});return this.updateColor({alpha:s},"onEndChange"),o}};(0,i.gn)([(0,l.fI)()],st.prototype,"red",void 0),(0,i.gn)([(0,l.fI)()],st.prototype,"green",void 0),(0,i.gn)([(0,l.fI)()],st.prototype,"blue",void 0),(0,i.gn)([(0,l.fI)()],st.prototype,"alpha",void 0),(0,i.gn)([(0,l.fI)()],st.prototype,"updateColor",void 0),st=(0,i.gn)([l.wA],st);const at=st,it=at;var rt=(0,v.Z)(it,nt,ot,!1,null,null,null);const lt=rt.exports;var ct=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"gradient",class:{"is-dragging":e.dragging},style:e.pointsStyle,on:{mousedown:e.maybeAddPoint}},[t("div",{ref:"pointsContainerRef",staticClass:"gradient-slider-container"},e._l(e.points,(function(n,o){return t("GradientPoint",{key:o,attrs:{activePointIndex:e.activePointIndex,index:o,point:n,width:e.width,changeActivePointIndex:e.changeActivePointIndex,updateGradientLeft:e.updateGradientLeft,removePoint:e.removePoint},on:{pointStart:function(t){e.dragging=!0},pointEnd:function(t){e.dragging=!1}}})})),1)])},ut=[],dt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"picker-pointer",class:e.activeClassName,style:e.pointStyle,on:{mousedown:e.mouseEvents,dblclick:function(t){return e.removePoint(e.index)},click:function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)}}},[t("span",{staticClass:"child-point",class:e.activeClassName}),t("span",{staticClass:"picker-pointer__delete"},[t("Icon",{attrs:{icon:"CloseIcon",size:"14"}})],1),t("span",{staticClass:"picker-tooltip"},[e._v(e._s(e.percentage))])])},pt=[],ht=n(85283);let gt=class extends r.ZP{constructor(){super(...arguments),this.dragging=!1,this.mouseEvents=()=>{}}mounted(){this.mouseEvents=(0,$.Z)(this.mouseDownHandler,this.mouseMoveHandler,this.mouseUpHandler)}get activeClassName(){return{active:this.activePointIndex===this.index,dragging:this.dragging}}get pointStyle(){return{left:this.point.left*(this.width/100)-8+"px"}}get percentage(){const e=Math.round(this.point.left);return`${e}%`}onClick(e){e.shiftKey&&this.removePoint(this.index)}mouseDownHandler(e){const t=e.pageX,n=e.pageY,o=e.target,s=o.parentNode,a=s.getBoundingClientRect().x;this.changeActivePointIndex(this.index);const i=t-a;return this.updateGradientLeft(this.point.left,this.index,"onStartChange"),this.$emit("pointStart"),this.dragging=!0,{startX:t,startY:n,offsetX:i}}changeObjectPositions(e,{startX:t,offsetX:n}){const o=e.pageX,s=o-t;n+=s;const a=(0,V.Z)(n,this.width);return{positions:{offsetX:n,startX:o},left:a}}mouseMoveHandler(e,{startX:t,offsetX:n}){e.preventDefault();const{positions:o,left:s}=this.changeObjectPositions(e,{startX:t,offsetX:n});return this.updateGradientLeft(s,this.index,"onChange"),o}mouseUpHandler(e,{startX:t,offsetX:n}){e.preventDefault();const{positions:o,left:s}=this.changeObjectPositions(e,{startX:t,offsetX:n});return this.updateGradientLeft(s,this.index,"onEndChange"),this.$emit("pointEnd"),this.dragging=!1,o}};(0,i.gn)([(0,l.fI)()],gt.prototype,"point",void 0),(0,i.gn)([(0,l.fI)()],gt.prototype,"activePointIndex",void 0),(0,i.gn)([(0,l.fI)()],gt.prototype,"index",void 0),(0,i.gn)([(0,l.fI)()],gt.prototype,"width",void 0),(0,i.gn)([(0,l.fI)()],gt.prototype,"changeActivePointIndex",void 0),(0,i.gn)([(0,l.fI)()],gt.prototype,"updateGradientLeft",void 0),(0,i.gn)([(0,l.fI)()],gt.prototype,"removePoint",void 0),gt=(0,i.gn)([(0,l.wA)({components:{Icon:ht.Z}})],gt);const mt=gt,vt=mt;var ft=(0,v.Z)(vt,dt,pt,!1,null,null,null);const yt=ft.exports;let bt=class extends r.ZP{constructor(){super(...arguments),this.width=0,this.positions={x:0,y:0},this.dragging=!1}get pointsStyle(){const e=(0,z.l)(this.points,"linear",90);return{background:e}}mounted(){(0,L.Z)(this.calculateBounds)}calculateBounds(){const e=this.$refs.pointsContainerRef;if(e){const t=e.getBoundingClientRect();this.width=e.clientWidth,this.positions={x:t.x,y:t.y}}}maybeAddPoint(e){if(this.dragging)return;this.calculateBounds();const t=(0,V.Z)(e.pageX-this.positions.x,this.width);this.addPoint(t)}};(0,i.gn)([(0,l.fI)()],bt.prototype,"points",void 0),(0,i.gn)([(0,l.fI)()],bt.prototype,"activePointIndex",void 0),(0,i.gn)([(0,l.fI)()],bt.prototype,"changeActivePointIndex",void 0),(0,i.gn)([(0,l.fI)()],bt.prototype,"updateGradientLeft",void 0),(0,i.gn)([(0,l.fI)()],bt.prototype,"addPoint",void 0),(0,i.gn)([(0,l.fI)()],bt.prototype,"removePoint",void 0),bt=(0,i.gn)([(0,l.wA)({components:{GradientPoint:yt}})],bt);const _t=bt,It=_t;var wt=(0,v.Z)(It,ct,ut,!1,null,null,null);const xt=wt.exports;let St=class extends r.ZP{};(0,i.gn)([(0,l.fI)()],St.prototype,"red",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"green",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"blue",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"alpha",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"hue",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"saturation",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"value",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"updateColor",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"points",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"degree",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"type",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"activePointIndex",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"changeGradientControl",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"changeActivePointIndex",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"updateGradientLeft",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"addPoint",void 0),(0,i.gn)([(0,l.fI)()],St.prototype,"removePoint",void 0),St=(0,i.gn)([(0,l.wA)({components:{Picker:He,Preview:Xe,Hue:tt,Alpha:lt,GradientPoints:xt}})],St);const Ct=St,kt=Ct;var Pt=(0,v.Z)(kt,Me,Ve,!1,null,null,null);const Zt=Pt.exports;var Dt=n(43432),Et=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"global-colors-list"},[e._l(e.globalColors,(function(n,o){return t(Dt.Z,{key:o,attrs:{transition:"none",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:o}){return[t("div",e._g({class:{"global-colors-item":!0,"global-colors-item-selected":e.isColorSelected(n)},attrs:{"data-test-id":"global-colors-item"},on:{click:function(t){return e.onColorSelected(n)}}},o),[t("ColorSwatch",{attrs:{"color-code":e.getColorCode(n)}})],1)]}}],null,!0)},[t("span",[e._v(e._s(n.label))])])})),e.canSave&&e.selectedColor?t("SaveColorDialog",{attrs:{value:e.selectedColor},on:{input:e.onColorSelected}}):e._e()],2)},Tt=[],At=n(9793),Mt=n(37179),Vt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dialog",{attrs:{persistent:""},on:{close:e.closeDialog},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[t("div",e._g(e._b({staticClass:"save-global-color-icon-button"},"div",o,!1),n),[t("Icon",{attrs:{icon:"PlusIcon"}})],1)]}},{key:"title",fn:function(){return[e._v("Save Global "+e._s("solid"===e.value.type?"Color":"Gradient"))]},proxy:!0},{key:"text",fn:function(){return[t("TextInput",{attrs:{placeholder:"Color name",required:"",size:"md",autofocus:e.openDialog},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.saveAsGlobal.apply(null,arguments)}},model:{value:e.label,callback:function(t){e.label=t},expression:"label"}})]},proxy:!0},{key:"actions",fn:function(){return[t(Mt.Z,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(" Close ")]),t(Mt.Z,{attrs:{color:"blue",dark:"",disabled:!e.label},on:{click:e.saveAsGlobal}},[e._v(" Save ")])]},proxy:!0}]),model:{value:e.openDialog,callback:function(t){e.openDialog=t},expression:"openDialog"}})},Bt=[],Ot=n(85450),Lt=n(89137),$t=n(41571),zt=n(1073),Nt=n(95690);let Ht=class extends r.ZP{constructor(){super(...arguments),this.openDialog=null,this.label=null}saveAsGlobal(){if(!this.label)return;const e={cssVariableName:(0,R.dw)(this.label,this.cssVarSuffix),label:this.label,value:this.unwrappedColor};"solid"===this.value.type?Ot.globalStore.addGlobalColor(e):Ot.globalStore.addGlobalGradient(e),(0,Nt.O_)("globalSettings")||(0,zt.T)(),this.$emit("input",e),this.openDialog=!1}get cssVarSuffix(){const e="solid"===this.value.type?"":"gradient-",t=Ot.globalStore.globalColors.length+1;return e+t}get unwrappedColor(){return"solid"===this.value.type?this.value.value:this.value}closeDialog(){this.label="",this.openDialog=!1}};(0,i.gn)([(0,l.fI)()],Ht.prototype,"value",void 0),Ht=(0,i.gn)([(0,l.wA)({components:{Icon:ht.Z,VueColorWrapper:y,Dialog:Lt.Z,TextInput:$t.Z}})],Ht);const Rt=Ht,Gt=Rt;var Ft=(0,v.Z)(Gt,Vt,Bt,!1,null,null,null);const Ut=Ft.exports;var Wt=n(3735),jt=n(48973);let Xt=class extends r.ZP{get globalColors(){return this.value.filter((e=>{if(!e.value)return!1;const t=(0,Wt.zG)(e.value,c.Dz.decode,(0,jt.g_)((()=>!1),(()=>!0)));if("solid"===this.type&&"string"===typeof e.value){const n=!e.value.includes("var(--");return!t&&n}return("radial"===this.type||"linear"===this.type)&&t}))}isColorSelected(e){return!!this.selectedGlobalColor&&this.selectedGlobalColor.value===e.value}getColorCode(e){return(0,R.dI)(e)}onColorSelected(e){this.$emit("input",e)}};(0,i.gn)([(0,l.fI)({default(){return[]}})],Xt.prototype,"value",void 0),(0,i.gn)([(0,l.fI)()],Xt.prototype,"selectedColor",void 0),(0,i.gn)([(0,l.fI)()],Xt.prototype,"selectedGlobalColor",void 0),(0,i.gn)([(0,l.fI)({default:!0})],Xt.prototype,"canSave",void 0),(0,i.gn)([(0,l.fI)()],Xt.prototype,"type",void 0),Xt=(0,i.gn)([(0,l.wA)({components:{ColorSwatch:At.Z,SaveColorDialog:Ut}})],Xt);const qt=Xt,Kt=qt;var Yt=(0,v.Z)(Kt,Et,Tt,!1,null,null,null);const Jt=Yt.exports;function Qt(e){const t=document.createElement("canvas").getContext("2d");return t?(t.fillStyle=e,t.fillStyle):e}let en=class extends r.ZP{constructor(){super(...arguments),this.activePointIndex=0,this.colorHue=this.activePointHsv.hue,this.isShiftActive=!1,this.actions={onStartChange:this.onStartChange,onChange:this.onChange,onEndChange:this.onEndChange}}get globalColor(){const e=this.points[this.activePointIndex];if(e.globalColor)return this.globalColors.find((t=>t.cssVariableName===e.globalColor))}get globalColors(){return(0,R.wJ)()}get activePoint(){const e=this.points[this.activePointIndex];if(e.globalColor&&this.globalColor?.value){const e=this.globalColor.value,t=Qt(e),n=A(t);if(n)return{...n,alpha:1}}return e}get colorRed(){return this.activePoint.red}get colorGreen(){return this.activePoint.green}get colorBlue(){return this.activePoint.blue}get colorAlpha(){return this.activePoint.alpha}get activePointHsv(){const{red:e,green:t,blue:n}=this.activePoint;return(0,x.Z)({red:e,green:t,blue:n})}get colorSaturation(){return this.activePointHsv.saturation}get colorValue(){return this.activePointHsv.value}onPointsChange(){this.activePointIndex>=this.points.length&&(this.activePointIndex=this.points.length-1)}mounted(){addEventListener("keyup",this.keyUpHandler),addEventListener("keydown",this.keyDownHandler)}beforeDestroy(){removeEventListener("keyup",this.keyUpHandler),removeEventListener("keydown",this.keyDownHandler)}removePoint(e=this.activePointIndex){if(this.points.length<=2)return;const t=this.points.filter(((t,n)=>n!==e));e>0&&(this.activePointIndex=e-1),this.onChange&&this.onChange({points:t,type:this.type,degree:this.degree,svgValue:U(this.points,this.type,this.degree),value:(0,z.l)(this.points,this.type,this.degree)})}keyUpHandler(e){this.isShiftActive=e.shiftKey;const t="Delete"===e.key||"Backspace"===e.key;t&&this.removePoint(this.activePointIndex)}keyDownHandler(e){this.isShiftActive=e.shiftKey}changeActivePointIndex(e){this.activePointIndex=e,this.colorHue=this.activePointHsv.hue}changeGradientControl({type:e,degree:t}){const n=(0,O.Z)(e,this.type),o=(0,O.Z)(t,this.degree);this.onChange({points:this.points,type:n,degree:o,svgValue:U(this.points,n,o),value:(0,z.l)(this.points,n,o)})}updateGlobalColor(e){const t=(0,H.Z)(this.points);t[this.activePointIndex]={...t[this.activePointIndex],globalColor:e.cssVariableName},this.onChange({points:t,type:this.type,degree:this.degree,svgValue:U(t,this.type,this.degree),value:(0,z.l)(t,this.type,this.degree)}),this.$nextTick((()=>{this.colorHue=this.activePointHsv.hue}))}updateColor({red:e,green:t,blue:n,alpha:o,hue:s},a="onChange"){e=(0,O.Z)(e,this.colorRed),t=(0,O.Z)(t,this.colorGreen),n=(0,O.Z)(n,this.colorBlue),o=(0,O.Z)(o,this.colorAlpha),s=(0,O.Z)(s,this.colorHue),this.colorHue=s;const i=(0,H.Z)(this.points);i[this.activePointIndex]={...i[this.activePointIndex],red:e,green:t,blue:n,alpha:o,globalColor:void 0};const r=this.actions[a];r&&r({points:i,type:this.type,degree:this.degree,svgValue:U(i,this.type,this.degree),value:(0,z.l)(i,this.type,this.degree)})}updateGradientLeft(e,t,n="onChange"){const o=(0,H.Z)(this.points);o[t].left=e;const s=this.actions[n];s&&s({points:o,type:this.type,degree:this.degree,svgValue:U(o,this.type,this.degree),value:(0,z.l)(o,this.type,this.degree)})}addPoint(e){const t=(0,H.Z)(this.points);t.push({...this.points[this.activePointIndex],left:e}),this.onChange&&this.onChange({points:t,type:this.type,degree:this.degree,svgValue:U(t,this.type,this.degree),value:(0,z.l)(t,this.type,this.degree)}),this.activePointIndex=t.length-1}};(0,i.gn)([(0,l.fI)({default:"linear"})],en.prototype,"type",void 0),(0,i.gn)([(0,l.fI)({default:0})],en.prototype,"degree",void 0),(0,i.gn)([(0,l.fI)({default:()=>[{left:0,red:0,green:0,blue:0,alpha:1},{left:100,red:255,green:0,blue:0,alpha:1}]})],en.prototype,"points",void 0),(0,i.gn)([(0,l.fI)()],en.prototype,"onStartChange",void 0),(0,i.gn)([(0,l.fI)()],en.prototype,"onChange",void 0),(0,i.gn)([(0,l.fI)()],en.prototype,"onEndChange",void 0),(0,i.gn)([(0,l.RL)("points",{deep:!0})],en.prototype,"onPointsChange",null),en=(0,i.gn)([(0,l.wA)({components:{Area:Zt,Preview:Ce,GradientControls:Ae,GlobalColorsList:Jt}})],en);const tn=en,nn=tn;var on=(0,v.Z)(nn,I,w,!1,null,null,null);const sn=on.exports;let an=class extends r.ZP{onGradientSelected(e){this.$emit("input",e)}};(0,i.gn)([(0,l.fI)({default:()=>c.D8})],an.prototype,"value",void 0),(0,i.gn)([(0,l.fI)({default:"linear"})],an.prototype,"type",void 0),an=(0,i.gn)([(0,l.wA)({components:{Gradient:sn}})],an);const rn=an,ln=rn;var cn=(0,v.Z)(ln,b,_,!1,null,null,null);const un=cn.exports;var dn=n(15133),pn=n(84336),hn=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.supported?t("Icon",{staticClass:"eye-dropper",attrs:{icon:"ColorPickerIcon"},on:{click:e.addColor}}):e._e()},gn=[];let mn=class extends r.ZP{get supported(){return"EyeDropper"in window}async addColor(){try{const e=new EyeDropper,{sRGBHex:t}=await e.open();this.emit(t)}catch(e){}}emit(e){this.$emit("input",e)}};mn=(0,i.gn)([(0,l.wA)({components:{Icon:ht.Z}})],mn);const vn=mn,fn=vn;var yn=(0,v.Z)(fn,hn,gn,!1,null,null,null);const bn=yn.exports;var _n=n(9600),In=n(36055);const wn="#642EDAFF";let xn=class extends r.ZP{constructor(){super(...arguments),this.componentKey=0,this.type=this.defaultType}get canvas(){return window.Breakdance?.canvas?.document}get internalColor(){return this.globalColor?.value||this.value.value||wn}get internalGradient(){return this.globalColor?.value||this.value}get defaultType(){if(this.globalColor&&(0,R.i7)(this.globalColor)){const e=this.globalColor.value;return e.type}return this.value?this.value.type:this.types[0].value}get types(){const e=[{text:(0,In.__)("Solid"),value:"solid"}],t=[{text:(0,In.__)("Linear"),value:"linear"},{text:(0,In.__)("Radial"),value:"radial"}];return"gradientOnly"===this.availableType?t:"solidOnly"===this.availableType?e:[...e,...t]}maybeSetGradientWhenDialogOpens(){const e=this.value&&""!==this.value?.value;this.isOpen&&!e&&this.setDefaultGradient()}resetTypeWhenValueChanges(){this.type=this.defaultType}resetValueWhenTypeChanges(){"solid"===this.type?this.updateValue(null):this.setDefaultGradient()}setDefaultGradient(){"linear"===this.type?this.updateValue(c.D8):"radial"===this.type&&this.updateValue(c.DX)}onGlobalColorSelected(e){this.updateValue(`var(--${e.cssVariableName})`)}onSolidSelected(e){this.updateValue(e)}onGradientSelected(e){this.updateValue(e)}updateValue(e){this.$emit("input",e)}onMouseUp(){document.body.classList.remove("is-dragging-color-picker")}onMouseDown(){document.body.classList.add("is-dragging-color-picker"),addEventListener("mouseup",this.onMouseUp,{once:!0})}beforeDestroy(){removeEventListener("mouseup",this.onMouseUp)}};(0,i.gn)([(0,l.fI)()],xn.prototype,"value",void 0),(0,i.gn)([(0,l.fI)()],xn.prototype,"inline",void 0),(0,i.gn)([(0,l.fI)({default(){return[]}})],xn.prototype,"globalColors",void 0),(0,i.gn)([(0,l.fI)()],xn.prototype,"globalColor",void 0),(0,i.gn)([(0,l.fI)({default:!0})],xn.prototype,"showGlobal",void 0),(0,i.gn)([(0,l.fI)({default:!1})],xn.prototype,"isOpen",void 0),(0,i.gn)([(0,l.fI)({default:!0})],xn.prototype,"canSave",void 0),(0,i.gn)([(0,l.fI)({default:"solidOnly"})],xn.prototype,"availableType",void 0),(0,i.gn)([(0,l.RL)("isOpen",{immediate:!0})],xn.prototype,"maybeSetGradientWhenDialogOpens",null),(0,i.gn)([(0,l.RL)("value")],xn.prototype,"resetTypeWhenValueChanges",null),xn=(0,i.gn)([(0,l.wA)({components:{DropdownDragHandle:_n.Z,Icon:ht.Z,EyeDropper:bn,VueGradientWrapper:un,DropdownInput:pn.Z,Dropdown:dn.Z,GlobalColorsList:Jt,ColorBadge:At.Z,VueColorWrapper:y}})],xn);const Sn=xn,Cn=Sn;var kn=(0,v.Z)(Cn,s,a,!1,null,null,null);const Pn=kn.exports},9793:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-color-swatch",class:{"breakdance-color-swatch--rounded":e.rounded,["breakdance-color-swatch--light"]:e.light},attrs:{"data-test-id":"breakdance-color-swatch"}},[t("button",e._g({staticClass:"breakdance-color-swatch__color",style:{background:e.colorCode||"transparent"}},e.$listeners))])},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(88615);let c=class extends i.ZP{get light(){return!this.colorCode||(0,l.RQ)(this.colorCode)}};(0,a.gn)([(0,r.fI)()],c.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],c.prototype,"colorCode",void 0),(0,a.gn)([(0,r.fI)({default:!1})],c.prototype,"rounded",void 0),c=(0,a.gn)([r.wA],c);const u=c,d=u;var p=n(1001),h=(0,p.Z)(d,o,s,!1,null,null,null);const g=h.exports},89680:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"condition-preview-rule"},[t("span",{staticClass:"condition-preview-statement"},[0===e.index?[e._v(e._s(e.__("If")))]:[e._v(e._s(e.__("And")))]],2),t("span",{staticClass:"condition-preview-field rule-slug"},[e.rule.ruleDynamic?[t("DynamicDataFieldText",{attrs:{shortcode:e.rule.ruleDynamic}})]:[e._v(e._s(e.label))]],2),e.rule.operand?t("span",{staticClass:"condition-preview-field operand"},[e._v(" "+e._s(e.rule.operand)+" ")]):e._e(),t("span",{staticClass:"condition-preview-field value",attrs:{"data-test-id":"condition-preview-field-value"}},[e.isMultipleValue?[e._v(" "+e._s(e.delimitedValue)+" ")]:e.isDynamicValue?[t("DynamicDataFieldText",{attrs:{shortcode:e.rule.value}})]:e.isCustomPHP?[t("pre",{staticClass:"condition-preview-code"},[e._v(e._s(e.rule.value))])]:e.ruleHasValue?[e._v(" "+e._s(e.rule.value)+" ")]:e._e()],2)])},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(31044),c=n(79686),u=n(43195),d=n(81252),p=n(13960);let h=class extends i.ZP{get isMultipleValue(){return Array.isArray(this.rule.value)}get label(){const e=l.PK.conditions.find((e=>e.slug===this.rule.ruleSlug));return e?(0,p.$0)(e.label,e):this.rule.ruleSlug}get isDynamicValue(){return!Array.isArray(this.rule.value)&&(0,u.xs)(this.rule.value)}get isCustomPHP(){return"custom-php"===this.rule.ruleSlug}get delimitedValue(){if(!Array.isArray(this.rule.value))return this.rule.value;const e=this.rule.value;return e.map((e=>"string"===typeof e?e:e.text)).join(", ")}get ruleHasValue(){return Array.isArray(this.rule.value)?this.rule.value.length:void 0!==this.rule.value&&""!==this.rule.value}};(0,a.gn)([(0,r.fI)()],h.prototype,"rule",void 0),(0,a.gn)([(0,r.fI)()],h.prototype,"index",void 0),h=(0,a.gn)([(0,r.wA)({components:{CodeInput:d.Z,DynamicDataFieldText:c.Z}})],h);const g=h,m=g;var v=n(1001),f=(0,v.Z)(m,o,s,!1,null,null,null);const y=f.exports},31873:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._b({staticClass:"conditions-matrix"},"div",e.$attrs,!1),[e._l(e.value,(function(n,o){return t("div",{key:o,staticClass:"template-rule-group-wrapper"},[o>0?t("span",{staticClass:"template-rule-group-or"},[t("span",[e._v(e._s(e.__("OR")))])]):e._e(),t("TemplateRuleGroupInput",{attrs:{ruleGroup:n,availableConditions:e.availableConditions,templateTypes:e.templateTypes},on:{input:function(t){return e.updateRuleGroup(t,o)},deleteGroup:function(t){return e.deleteRuleGroup(o)}}})],1)})),e.allowToAddCondition||0===e.value.length?t("NiceButton",{staticClass:"breakdance-condition-matrix__add-condition",attrs:{outlined:"",text:"","data-test-id":"add-condition-button","left-icon":"PlusIcon"},on:{click:e.addRuleGroup}},[e._v(" "+e._s(e.__("Add Condition"))+" ")]):e._e()],2)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(23128),c=n(5817),u=n(61153),d=n(61943),p=n(85283),h=n(79333);let g=class extends i.ZP{addRuleGroup(){const e=(0,l.Z)(this.value);e.push([{}]),this.$emit("input",e)}deleteRuleGroup(e){const t=(0,l.Z)(this.value);t.splice(e,1),this.$emit("input",t)}updateRuleGroup(e,t){const n=(0,l.Z)(this.value);n[t]=e,this.$emit("input",n)}};(0,a.gn)([(0,r.fI)()],g.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],g.prototype,"availableConditions",void 0),(0,a.gn)([(0,r.fI)()],g.prototype,"templateTypes",void 0),(0,a.gn)([(0,r.fI)({default:!0})],g.prototype,"allowToAddCondition",void 0),g=(0,a.gn)([(0,r.wA)({components:{NiceButton:h.Z,Icon:p.Z,DynamicDataFields:c.Z,DynamicDataDialog:u.Z,TemplateRuleGroupInput:d.Z}})],g);const m=g,v=m;var f=n(1001),y=(0,f.Z)(v,o,s,!1,null,null,null);const b=y.exports},61943:(e,t,n)=>{"use strict";n.d(t,{Z:()=>te});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"template-rule-group"},e._l(e.ruleGroup,(function(n,o){return t("div",{key:o,staticClass:"template-rule-group-condition"},[t("TemplateRuleInput",{staticClass:"flex-grow-1",attrs:{value:n,usedConditions:e.usedConditions,availableConditions:e.availableConditions,templateTypes:e.templateTypes},on:{input:function(t){return e.editRule(t,o)}}}),t("div",{staticClass:"d-flex template-rule-group-actions"},[t("NiceButton",{staticClass:"mx-1 template-rule-group-and",on:{click:function(t){return e.addEmptyRule()}}},[e._v(" "+e._s(e.__("AND"))+" ")]),t("IconButton",{staticClass:"template-rule-group-delete",attrs:{icon:"TrashIcon",size:"16",small:!0},on:{click:function(t){return e.deleteRule(o)}}})],1)],1)})),0)])},s=[],a=n(70655),i=n(20144),r=n(38085),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"template-rule-input-row"},[e.isDynamicDataRule?t("div",{staticClass:"template-rule-selection-wrapper"},[t("Icon",{attrs:{icon:"DatabaseIcon"},on:{click:function(t){return e.openDynamicData("ruleDynamic")}}}),t("DynamicInput",{attrs:{path:"rule",value:e.value.ruleDynamic,meta:e.value.ruleDynamicMeta},on:{clear:()=>e.setCondition(void 0),change:e.updateDynamicRule}})],1):t("div",[t("DropdownInput",{staticClass:"template-rule-rule-slug",attrs:{autocomplete:!0,"data-test-id":"template-rule-rule-slug",placeholder:e.__("Choose condition..."),items:e.availableConditionsForDropdownInVuetifyShape,value:e.value.ruleSlug},on:{input:e.setCondition}})],1),"custom-php"===e.value.ruleSlug?t("CodeInput",{attrs:{value:e.value.value,language:"x-php",inline:!1,"data-test-id":"template-rule-code"},on:{input:e.setValue}}):[e.value.ruleSlug?t("div",[t("DropdownInput",{attrs:{"data-test-id":"template-rule-operand",placeholder:e.__("Choose operand..."),items:e.availableOperandsForDropdown,value:e.value.operand},on:{input:e.setOperand}})],1):e._e(),e.value.ruleSlug&&"is empty"!==e.value.operand&&"is not empty"!==e.value.operand?t("div",["timepicker"===e.valueInputType?t("TimePickerInput",{attrs:{value:e.value.value},on:{input:e.setValue}}):"datepicker"===e.valueInputType?t("DatePickerInput",{attrs:{value:e.value.value,options:{range:e.value.operand===e.OPERANDS.IS||e.value.operand===e.OPERANDS.IS_NOT,multiple:e.value.operand===e.OPERANDS.ONE_OF||e.value.operand===e.OPERANDS.NONE_OF}},on:{input:e.setValue}}):"number"===e.valueInputType?t("NumberInput",{attrs:{value:e.value.value},on:{input:e.setValue}}):e.availableValuesForDropdown?"dropdown"===e.availableValuesForDropdown.valueType?t("DropdownInput",{attrs:{placeholder:e.__("Choose"),items:e.getVuetifyShapeForValues(e.availableValuesForDropdown.values),value:e.value.value,"data-test-id":`breakdance-condition-dropdown-${e.value.ruleSlug}`},on:{input:e.setValue}}):t("ConditionValuesAutocomplete",{attrs:{itemGroups:e.availableValuesForDropdown.values,value:e.value.value,slug:e.value.ruleSlug,templateTypes:e.templateTypes,"data-test-id":`breakdance-condition-autocomplete-${e.value.ruleSlug}`},on:{input:e.setValue}}):t("div",{staticClass:"template-rule-input-value"},[e.isDynamicValue?e._e():t("TextInput",{attrs:{"data-test-id":"template-rule-value",value:e.value.value},on:{input:e.setValue}}),e.value.ruleDynamic&&!e.isDynamicValue?t("Icon",{attrs:{icon:"DatabaseIcon"},on:{click:function(t){return e.openDynamicData("value")}}}):e._e(),e.isDynamicValue?t("div",{staticClass:"template-rule-selection-wrapper"},[t("Icon",{attrs:{icon:"DatabaseIcon"},on:{click:function(t){return e.openDynamicData("value")}}}),t("DynamicInput",{attrs:{path:"value",value:e.value.value,meta:e.value.valueDynamicMeta},on:{clear:()=>e.setValue(void 0),change:e.updateDynamicValue}})],1):e._e()],1)],1):e._e(),t("DynamicDataDialog",{attrs:{"dynamic-field":e.dynamicDataMeta},on:{selected:e.setValueAsDynamicField,close:e.closeDynamicData},model:{value:e.isDynamicDataOpen,callback:function(t){e.isDynamicDataOpen=t},expression:"isDynamicDataOpen"}})]],2)},c=[],u=n(23128),d=n(82542),p=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-condition-values-autocomplete"},[t("MultiselectInput",{attrs:{items:e.flatItems,loading:e.isLoading,value:e.value,placeholder:e.__("Search More"),search:e.search,searchable:!0,"emit-object":!0},on:{input:e.edit,"update:search":e.setSearch}})],1)},h=[],g=n(23279),m=n.n(g),v=n(30902),f=n(98851),y=n(45974),b=n(32521),_=n(99697),I=n(39664),w=n(63292),x=n(85283),S=n(83312);let C=class extends i.ZP{constructor(){super(...arguments),this.isLoading=!1,this.search=null,this.loadedItems=!1,this.debouncedSearchContentInWp=m()(this.searchContentInWp,600)}get flatItems(){const e=this.loadedItems||this.itemGroups,t=(0,w.jG)(e,this.templateTypes);return(0,w.yk)(t)}edit(e){this.search="",this.$emit("input",e)}searchChanges(){this.debouncedSearchContentInWp()}slugChanges(){this.loadedItems=!1}setSearch(e){this.search=e}async searchContentInWp(){this.isLoading=!0,(0,v.pipe)(await(0,f.D)({action:"breakdance_get_condition_values_with_search",dataToPost:{search:this.search,slug:this.slug},decoder:b.IX(_.DD),resultKey:"data"}),(0,y.fold)((e=>{this.isLoading=!1,e.forEach((e=>I.Z.log.message(e.msg)))}),(e=>{this.isLoading=!1,this.loadedItems=e})))}};(0,a.gn)([(0,r.fI)()],C.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],C.prototype,"slug",void 0),(0,a.gn)([(0,r.fI)({default:[]})],C.prototype,"itemGroups",void 0),(0,a.gn)([(0,r.fI)()],C.prototype,"templateTypes",void 0),(0,a.gn)([(0,r.RL)("search")],C.prototype,"searchChanges",null),(0,a.gn)([(0,r.RL)("slug")],C.prototype,"slugChanges",null),C=(0,a.gn)([(0,r.wA)({components:{MultiselectInput:S.Z,Icon:x.Z}})],C);const k=C,P=k;var Z=n(1001),D=(0,Z.Z)(P,p,h,!1,null,null,null);const E=D.exports;var T=n(84336),A=n(41571),M=n(61153),V=n(79686),B=n(43195),O=n(81252),L=n(38374),$=n(8492),z=n(13960),N=n(23267),H=n(31044);let R=class extends i.ZP{constructor(){super(...arguments),this.isDynamicDataOpen=!1,this.saveDynamicDataOnFieldKey=null,this.defaultCustomPHP="global $post;\nif ($post && $post->post_title === 'Sample Page') {\n return true;\n} else {\n return false;\n}",this.controlValues={ruleAttributes:{},valueAttributes:{}}}get OPERANDS(){return w.DZ}get ruleDynamicField(){if(!this.value?.ruleDynamicMeta)return null;const e=(0,B.Tc)(this.value.ruleDynamicMeta);return H.PK.dynamicFields.find((t=>t.slug===e))}get ruleValueField(){if(!this.value?.valueDynamicMeta)return null;const e=(0,B.Tc)(this.value.valueDynamicMeta);return H.PK.dynamicFields.find((t=>t.slug===e))}get isDynamicValue(){return!Array.isArray(this.value.value)&&(0,B.xs)(this.value.value)}get availableConditionsForDropdownInVuetifyShape(){const e=[],t=this.availableConditionsForDropdown,n=[...new Set(t.map((e=>e.category)))];return n.forEach((n=>{e.push({header:n}),e.push(...t.filter((e=>e.category===n))),e.push({divider:!0})})),e.pop(),e}get availableConditionsForDropdown(){return this.availableConditions.map((e=>{let t=e.label;if("dynamic-data"===e.slug&&this.ruleDynamicField){const e=this.value?.ruleDynamicMeta?.attributes??{},n=Object.values(e).filter((e=>"string"===typeof e)).map((e=>e)).join(", ");t=`Dynamic Data: ${this.ruleDynamicField.label} ${n?`(${n})`:""}`}return{text:(0,z.$0)(t,e),value:e.slug,category:e.category,disabled:!1}}))}get availableOperandsForDropdown(){return this.value.ruleSlug?F(this.value.ruleSlug,this.availableConditions).map((e=>({text:e,value:e}))):[]}get valueInputType(){return this.availableConditions.find((e=>e.slug===this.value.ruleSlug))?.valueInputType}get availableValuesForDropdown(){if(!this.value.ruleSlug)return!1;const e=U(this.value.ruleSlug,this.availableConditions);return!(!e||0===e.length)&&{valueType:this.valueInputType,values:e}}get isDynamicDataRule(){return"dynamic-data"===this.value.ruleSlug&&(0,B.xs)(this.value.ruleDynamic)}setCondition(e){const t=(0,u.Z)(this.value);if(t.ruleSlug=e,this.value.ruleSlug!==t.ruleSlug&&(t.operand=void 0,t.value=void 0,delete t.ruleDynamic,delete t.ruleDynamicMeta,delete t.valueDynamicMeta),t.ruleSlug&&!t.operand){const e=(0,u.Z)(F(t.ruleSlug,this.availableConditions)).shift();t.operand=e}"custom-php"===t.ruleSlug?t.value=this.defaultCustomPHP:"dynamic-data"!==t.ruleSlug||t.ruleDynamic||(this.isDynamicDataOpen=!0,this.saveDynamicDataOnFieldKey="ruleDynamic"),this.update(t)}setOperand(e){const t=(0,u.Z)(this.value);t.operand=e,this.update(t)}setValue(e){const t=(0,u.Z)(this.value);t.value=e??void 0,this.update(t)}update(e){this.$emit("input",{...e})}openDynamicData(e){this.saveDynamicDataOnFieldKey=e,this.isDynamicDataOpen=!0}closeDynamicData(){this.saveDynamicDataOnFieldKey=null,this.isDynamicDataOpen=!1}updateDynamicRule(e){const t=(0,u.Z)(this.value);t.ruleDynamic=e.shortcode,t.ruleDynamicMeta=e,this.update(t)}updateDynamicValue(e){const t=(0,u.Z)(this.value);t.value=e.shortcode,t.valueDynamicMeta=e,this.update(t)}setValueAsDynamicField(e){this.saveDynamicDataOnFieldKey&&("ruleDynamic"===this.saveDynamicDataOnFieldKey&&this.updateDynamicRule(e),"value"===this.saveDynamicDataOnFieldKey&&this.updateDynamicValue(e))}setDynamicRuleInValue(e){const t=(0,u.Z)(this.value);t.ruleDynamic=e.shortcode,this.update(t)}get dynamicDataMeta(){return"ruleDynamic"===this.saveDynamicDataOnFieldKey?this.value.ruleDynamicMeta:"value"===this.saveDynamicDataOnFieldKey?this.value.valueDynamicMeta:""}get dynamicDataFieldAttributes(){return"ruleDynamic"===this.saveDynamicDataOnFieldKey?this.value?.ruleDynamicMeta?.attributes:"value"===this.saveDynamicDataOnFieldKey?this.value?.valueDynamicMeta?.attributes:null}getVuetifyShapeForValues(e){return(0,w.yk)(e)}};(0,a.gn)([(0,r.fI)()],R.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],R.prototype,"availableConditions",void 0),(0,a.gn)([(0,r.fI)()],R.prototype,"usedConditions",void 0),(0,a.gn)([(0,r.fI)()],R.prototype,"templateTypes",void 0),R=(0,a.gn)([(0,r.wA)({components:{NumberInput:N.Z,DatePickerInput:$.Z,TimePickerInput:L.Z,Icon:x.Z,CodeInput:O.Z,DynamicDataFieldText:V.Z,TextInput:A.Z,DropdownInput:T.Z,DynamicDataDialog:M.Z,ConditionValuesAutocomplete:E,DynamicInput:d.Z}})],R);const G=R;function F(e,t){const n=t.find((t=>t.slug===e))?.operands;return n||[]}function U(e,t){const n=t.find((t=>t.slug===e))?.values;return n||!1}const W=G;var j=(0,Z.Z)(W,l,c,!1,null,null,null);const X=j.exports;var q=n(79333),K=n(22608);let Y=class extends i.ZP{get usedConditions(){const e=this.ruleGroup.map((e=>e.ruleSlug));return this.availableConditions.filter((t=>e.includes(t.slug)))}addEmptyRule(){const e=(0,u.Z)(this.ruleGroup);e.push({}),this.$emit("input",e)}deleteRule(e){const t=(0,u.Z)(this.ruleGroup);t.splice(e,1),0===t.length?this.deleteGroup():this.$emit("input",t)}editRule(e,t){const n=(0,u.Z)(this.ruleGroup);n[t]=e,this.$emit("input",n)}deleteGroup(){this.$emit("deleteGroup")}};(0,a.gn)([(0,r.fI)()],Y.prototype,"ruleGroup",void 0),(0,a.gn)([(0,r.fI)()],Y.prototype,"availableConditions",void 0),(0,a.gn)([(0,r.fI)()],Y.prototype,"templateTypes",void 0),Y=(0,a.gn)([(0,r.wA)({components:{IconButton:K.Z,NiceButton:q.Z,Icon:x.Z,TemplateRuleInput:X}})],Y);const J=Y,Q=J;var ee=(0,Z.Z)(Q,o,s,!1,null,null,null);const te=ee.exports},8492:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var o=n(4494),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dropdown",{attrs:{"close-on-content-click":!1,"offset-y":"",right:"",bottom:"","nudge-right":1},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({staticClass:"date-picker-input-value"},n),[t("TextInput",{attrs:{disabled:!0,value:e.dateValue}})],1)]}}]),model:{value:e.datePickerOpen,callback:function(t){e.datePickerOpen=t},expression:"datePickerOpen"}},[e.datePickerOpen?t(o.Z,{attrs:{value:e.value,range:e.options&&e.options.range,multiple:e.options&&e.options.multiple,"show-current":!1},on:{input:function(t){return e.$emit("input",t)}}}):e._e()],1)},a=[],i=n(1469),r=n.n(i),l=n(70655),c=n(20144),u=n(38085),d=n(41571),p=n(15133),h=n(18446),g=n.n(h),m=n(36055);let v=class extends c.ZP{constructor(){super(...arguments),this.datePickerOpen=!1}cleanValueIfOptionsChange(e,t){g()(e,t)||(this.options?.range||this.options?.multiple?this.$emit("input",[]):this.$emit("input",""))}get dateValue(){if(!r()(this.value))return this.value;if(this.options?.range){const[e,t]=this.value;if(e&&t)return(0,m.gB)((0,m.TZ)("from %s to %s","1: start date, 2: end date"),e,t);if(e)return e}return this.options?.multiple?this.value.join(", "):""}};(0,l.gn)([(0,u.fI)()],v.prototype,"value",void 0),(0,l.gn)([(0,u.fI)()],v.prototype,"options",void 0),(0,l.gn)([(0,u.RL)("options")],v.prototype,"cleanValueIfOptionsChange",null),v=(0,l.gn)([(0,u.wA)({components:{Dropdown:p.Z,TextInput:d.Z}})],v);const f=v,y=f;var b=n(1001),_=(0,b.Z)(y,s,a,!1,null,null,null);const I=_.exports},84336:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"breakdance-dropdown-input":!0,"d-flex":!0,"breakdance-dropdown-input-disabled":e.disabled}},[t(e.dropdownType,{tag:"component",staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{label:e.placeholderText,items:e.internalItems,placeholder:e.placeholder,dense:"",solo:"",flat:"",filled:"",value:e.value,"hide-details":!0,clearable:e.clearable,disabled:e.disabled,loading:e.loadingOptionData},on:{input:e.edit},scopedSlots:e._u([{key:"append",fn:function(){return[t("Icon",{attrs:{icon:"ChevronDownIcon",size:10}})]},proxy:!0},e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})],1)},s=[],a=n(27361),i=n.n(a),r=n(70655),l=n(20144),c=n(38085),u=n(32521),d=n(30902),p=n(45974),h=n(51168),g=n(86687),m=n(74636),v=n(85450),f=n(1387),y=n(25135),b=n(85283),_=n(36055);let I=class extends l.ZP{constructor(){super(...arguments),this.loadingOptionData=!1,this.retrievedItems=[]}get dropdownType(){return this.autocomplete?f.Z:y.Z}created(){this.dropdownOptions?.populate?.fetchDataAction&&0===this.retrievedItems.length&&this.retrieveItems(),g.w.register.onPropertyChange(this.retrieveItemsAction)}retrieveItemsAction({path:e}){if(this.loadingOptionData||!this.context)return;const t=this.dropdownOptions?.populate?.refetchPaths??[],n=t.map((t=>this.processVariablesInPath(e,t)));n&&n.includes(e)&&this.retrieveItems()}processVariablesInPath(e,t){const n=e.split(".");n.pop();const o=n.join(".");return t.replace("%%CURRENTPATH%%",o)}beforeDestroy(){g.w.unregister("onPropertyChange",this.retrieveItemsAction)}get internalItems(){return this.populate.fetchDataAction&&this.retrievedItems.length?this.retrievedItems:this.mappedItems.length?this.mappedItems:this.items}get populate(){return this.dropdownOptions?.populate||{}}get placeholderText(){return this.loadingOptionData?(0,_.__)("Loading..."):!this.internalItems||Array.isArray(this.internalItems)&&!this.internalItems.length?this.dropdownOptions?.noDataAvailableMessage||(0,_.__)("No data available"):this.placeholder}get mappedItems(){return this.populatedItems.map((e=>(0,m.aL)(this.populate,e))).filter(Boolean)}get populatedItems(){if(!this.populate||!this.populate.path)return[];if(!this.context)return console.log("[DROPDOWN] Context is not available to populate dropdown."),[];const e=this.context.getControlValue(this.populate.path);return(0,d.pipe)(e,u.IX(u._4).decode,(0,p.fold)((()=>(console.log(`[DROPDOWN] Populate path '${this.populate?.path}' is invalid.`),[])),(e=>e.filter((e=>(0,m.h7)(this.populate,e))))))}get retrieve(){return this.dropdownOptions?.populate?.fetchDataAction||{}}async retrieveItems(){const e=this.dropdownOptions?.populate?.fetchDataAction;if(!e)return;const t=v.documentStore.document.documentMeta.id;let n={postId:t};if(this.context&&this.dropdownOptions?.populate?.fetchContextPath){const e=this.processVariablesInPath(this.path,this.dropdownOptions.populate.fetchContextPath);n=this.context.getControlValue(e)||{}}this.loadingOptionData=!0,this.retrievedItems=await(0,h.sz)(e,{context:n}),this.loadingOptionData=!1}edit(e){e||(e=""),this.$emit("input",e);const t=this.populatedItems.find((t=>{const n=this.populate.value??"label",o=i()(t,n);return o===e}));this.$emit("selected",t)}};(0,r.gn)([(0,c.fI)()],I.prototype,"value",void 0),(0,r.gn)([(0,c.fI)({default:!1})],I.prototype,"autocomplete",void 0),(0,r.gn)([(0,c.fI)({default:!1})],I.prototype,"clearable",void 0),(0,r.gn)([(0,c.fI)({default:!1})],I.prototype,"disabled",void 0),(0,r.gn)([(0,c.fI)()],I.prototype,"placeholder",void 0),(0,r.gn)([(0,c.fI)()],I.prototype,"items",void 0),(0,r.gn)([(0,c.fI)()],I.prototype,"dropdownOptions",void 0),(0,r.gn)([(0,c.fI)()],I.prototype,"path",void 0),(0,r.gn)([(0,c.tB)({from:"context",default:null})],I.prototype,"context",void 0),I=(0,r.gn)([(0,c.wA)({components:{Icon:b.Z}})],I);const w=I,x=w;var S=n(1001),C=(0,S.Z)(x,o,s,!1,null,null,null);const k=C.exports},82542:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var o=n(73385),s=n(14944),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"dynamic-input"},[t("div",{ref:"container",staticClass:"control-section-as-popout"},[t("Dropdown",e._b({attrs:{origin:"top right","max-width":e.width,"min-width":e.width,"max-height":"400","close-on-content-click":!1,title:e.title},scopedSlots:e._u([{key:"actions",fn:function(){return[t("CopyButton",{attrs:{"value-to-copy":e.value}})]},proxy:!0},{key:"activator",fn:function({on:n,attrs:o}){return[t(s.Z,e._g(e._b({staticClass:"dynamic-input-chip",attrs:{close:"",outlined:"","data-test-id":"dynamic-input-chip"},on:{"click:close":e.cancelDynamic}},"v-chip",o,!1),n),[e.dynamicField?[t("Icon",{staticClass:"mr-1",attrs:{icon:"ChevronDownIcon",size:e.iconSize}}),e._v(" "+e._s(e.dynamicField.label||e.__("No Available Label"))+" ")]:[e._v(e._s(e.value))]],2)]}}])},"Dropdown",e.position,!1),[t(o.Z,{staticClass:"popout-section-content"},[t("DynamicDataFieldAttributes",{attrs:{value:e.dynamicField,attributes:e.dynamicAttributes},on:{input:e.setAttributeValue}})],1)],1)],1)])},i=[],r=n(70655),l=n(20144),c=n(38085),u=n(85283),d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"dynamic-data-field-attributes"},[e.value?t("ControlsTree",{attrs:{controls:e.value.controls,path:"attributes",allowPopoutsInRoot:!0}}):e._e()],1)},p=[],h=n(36968),g=n.n(h),m=n(27361),v=n.n(m),f=n(31044),y=n(18759),b=n(79333),_=n(23128);let I=class extends c.w3{constructor(){super(...arguments),this.controlsContext={getControls:()=>f.PK.selectorControls,getControlValue:e=>v()(this.controlValues,e),setControlValue:(e,t)=>{const n=(0,_.Z)(this.controlValues);g()(n,e,t),this.$set(this.controlValues,"attributes",n.attributes),this.setControlValues(n.attributes)},setAccordionState:(e,t)=>{(0,y.ln)(e,t)},getAccordionState:e=>(0,y.y3)(e)}}get controlValues(){return{attributes:this.attributes}}beforeCreate(){this.$options.components.ControlsTree=n(20951)["default"]}setControlValues(e){this.$emit("input",e)}};(0,r.gn)([(0,c.fI)()],I.prototype,"value",void 0),(0,r.gn)([(0,c.fI)()],I.prototype,"attributes",void 0),(0,r.gn)([(0,c.DF)("context")],I.prototype,"controlsContext",void 0),I=(0,r.gn)([(0,c.wA)({components:{NiceButton:b.Z}})],I);const w=I,x=w;var S=n(1001),C=(0,S.Z)(x,d,p,!1,null,null,null);const k=C.exports;var P=n(15133),Z=n(43195),D=n(14567),E=n(95690),T=n(36055);let A=class extends l.ZP{get dynamicField(){if(!this.meta)return null;const e=(0,Z.Tc)(this.meta);return f.PK.dynamicFields.find((t=>t.slug===e))}get dynamicAttributes(){return this.meta?.attributes}cancelDynamic(){this.$emit("clear","")}setAttributeValue(e){if(!this.dynamicField)return;const t=(0,Z.ii)(e,this.dynamicField);this.$emit("input",t),this.$emit("change",{field:this.dynamicField.slug,shortcode:t,attributes:e})}get width(){return"oxygen"===f.PK.builderMode?E.eF:E.R3}get position(){return{left:!0,bottom:!0,offsetY:!0}}get title(){return this.dynamicField?.label?(0,T.gB)((0,T.TZ)("%s Options","%s: Dynamic field label"),this.dynamicField.label):(0,T.__)("Options")}};(0,r.gn)([(0,c.tB)({from:"context",default:{}})],A.prototype,"context",void 0),(0,r.gn)([(0,c.fI)()],A.prototype,"control",void 0),(0,r.gn)([(0,c.fI)()],A.prototype,"value",void 0),(0,r.gn)([(0,c.fI)()],A.prototype,"meta",void 0),(0,r.gn)([(0,c.fI)({default:10})],A.prototype,"iconSize",void 0),A=(0,r.gn)([(0,c.wA)({components:{CopyButton:D.Z,NiceButton:b.Z,Icon:u.Z,DynamicDataFieldAttributes:k,Dropdown:P.Z}})],A);const M=A,V=M;var B=(0,S.Z)(V,a,i,!1,null,null,null);const O=B.exports},30895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{class:["d-flex flex-row flex-wrap breakdance-file-uploader",{"breakdance-no-events":e.saveInProgress}],style:e.realStyle,on:{dragover:function(e){e.preventDefault(),e.stopPropagation()},dragenter:e.handleDragEnter,dragleave:e.handleDragEnd,drop:function(t){return t.preventDefault(),e.handleDroppedFiles.apply(null,arguments)},click:e.chooseFile}},[e.saveInProgress?t("div",{staticClass:"breakdance-file-uploader__loading"},[t("Icon",{attrs:{icon:"SpinnerIcon",size:"22"}})],1):e._e(),t("div",{staticClass:"d-flex flex-column align-center ma-auto breakdance-no-events"},[t("input",{ref:"fileInput",staticClass:"d-none",attrs:{type:"file",multiple:!!e.acceptsMultiple,accept:e.accept},on:{change:e.handleFileInputFiles}}),t("Icon",{staticClass:"file-upload-icon",attrs:{icon:"UploadFileIcon",size:"22"}}),t("div",{staticClass:"file-upload-text"},[e._t("default")],2)],1)])])},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(85283);let c=class extends i.ZP{constructor(){super(...arguments),this.style={}}get realStyle(){return{height:this.height,...this.style}}handleDragEnter(){this.style={background:"var(--gray100)"}}handleDragEnd(){this.style={background:""}}chooseFile(){this.$refs.fileInput.click()}handleFileInputFiles(){const e=this.$refs.fileInput.files;this.$emit("input",e),this.cleanInputFiles()}handleDroppedFiles(e){this.style={background:""},e.dataTransfer&&(this.$emit("input",e.dataTransfer.files),this.cleanInputFiles())}cleanInputFiles(){this.$refs.fileInput.value=""}};(0,a.gn)([(0,r.fI)({default:"250px"})],c.prototype,"height",void 0),(0,a.gn)([(0,r.fI)()],c.prototype,"accept",void 0),(0,a.gn)([(0,r.fI)({default:!1})],c.prototype,"saveInProgress",void 0),(0,a.gn)([(0,r.fI)({default:!0})],c.prototype,"acceptsMultiple",void 0),c=(0,a.gn)([(0,r.wA)({components:{Icon:l.Z}})],c);const u=c,d=u;var p=n(1001),h=(0,p.Z)(d,o,s,!1,null,"0a8a7183",null);const g=h.exports},6308:(e,t,n)=>{"use strict";n.d(t,{Z:()=>$});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"focus-point-input",class:{"focus-point-input--grid":e.gridMode}},[t("div",{ref:"container",staticClass:"focus-point-area",style:{backgroundImage:e.canShowImage&&e.image?`url(${e.image.url})`:null,height:`${e.height}px`},on:{mousedown:e.onStart,touchmove:e.onChange,touchstart:e.onChange}},[e.gridMode?t("FocusPointGrid",{attrs:{value:e.value},on:{input:e.onGridDotClicked}}):e._e(),t("span",{ref:"handler",staticClass:"focus-point-area-handler",class:{"focus-point-area-handler--active":e.isActive},style:{transform:`translate3d(${e.currentX}px, ${e.currentY}px, 0)`}})],1),t("div",{staticClass:"input-group"},[t("div",{staticClass:"input-group-control"},[t("NumberInput",{attrs:{value:e.value&&e.value.y,"range-options":{step:.1,min:0,max:100,disableSlider:!0}},on:{input:function(t){return e.updateVal("y",t)}}}),t("span",{staticClass:"input-group-control__label"},[e._v(e._s(e.__("Top")))])],1),t("div",{staticClass:"input-group-control"},[t("NumberInput",{attrs:{value:e.value&&e.value.x,"range-options":{step:.1,min:0,max:100,disableSlider:!0}},on:{input:function(t){return e.updateVal("x",t)}}}),t("span",{staticClass:"input-group-control__label"},[e._v(e._s(e.__("Left")))])],1)])])},s=[],a=n(59854),i=n.n(a),r=n(23493),l=n.n(r),c=n(70655),u=n(20144),d=n(38085),p=n(30902),h=n(45974),g=n(665),m=n(31044),v=n(23267),f=n(12721),y=n(85283),b=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"container",staticClass:"focus-point-grid",on:{mousedown:e.dragStart}},[e._l(e.positions,(function(n,o){return[t("div",{ref:"positions",refInFor:!0,staticClass:"focus-point-position",attrs:{"data-index":o},on:{click:function(t){return e.$emit("input",n)}}},[e.isPositionSelected(n)?t("FocusPointGridArrow",{attrs:{position:n.name}}):t("span",{staticClass:"focus-point-dot",class:`focus-point-dot--${n.name}`})],1)]}))],2)},_=[],I=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("span",{staticClass:"focus-point-dot-arrow"},[e.position.includes("top")?e._e():t("Icon",{staticClass:"focus-point-dot-arrow-up",attrs:{icon:"ArrowUpIcon",size:"7"}}),e.position.includes("left")?e._e():t("Icon",{staticClass:"focus-point-dot-arrow-left",attrs:{icon:"ArrowLeftIcon",size:"7"}}),t("span",{staticClass:"focus-point-dot focus-point-dot--selected"}),e.position.includes("right")?e._e():t("Icon",{staticClass:"focus-point-dot-arrow-right",attrs:{icon:"ArrowRightIcon",size:"7"}}),e.position.includes("bottom")?e._e():t("Icon",{staticClass:"focus-point-dot-arrow-down",attrs:{icon:"ArrowDownIcon",size:"7"}})],1)},w=[];let x=class extends u.ZP{};(0,c.gn)([(0,d.fI)({default:"center-center"})],x.prototype,"position",void 0),x=(0,c.gn)([(0,d.wA)({components:{Icon:y.Z}})],x);const S=x,C=S;var k=n(1001),P=(0,k.Z)(C,I,w,!1,null,null,null);const Z=P.exports;let D=class extends u.ZP{get positions(){return[{name:"top-left",x:0,y:0},{name:"top-center",x:50,y:0},{name:"top-right",x:100,y:0},{name:"center-left",x:0,y:50},{name:"center-center",x:50,y:50},{name:"center-right",x:100,y:50},{name:"bottom-left",x:0,y:100},{name:"bottom-center",x:50,y:100},{name:"bottom-right",x:100,y:100}]}isPositionSelected(e){return this.value?e.x===this.value.x&&e.y===this.value.y:"center-center"===e.name}dragStart(e){e.preventDefault(),document.addEventListener("mousemove",this.onDrag),document.addEventListener("mouseup",this.dragEnd)}distance(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}getClosestPositionFromMouse({x:e,y:t}){const n=document.elementFromPoint(e,t);return void 0!==n.dataset.index?Number(n.dataset.index):void 0}getClosestPositionFromMouseEuclidean(e){return this.$refs.positions.map((e=>e.getBoundingClientRect())).map(((e,t)=>({x:e.x,y:e.y,index:t}))).reduce(((t,n)=>this.distance(e,t)null),(e=>e)))}get height(){if(this.image&&this.canShowImage){const e=this.image.sizes.full,t=e.width/e.height,n=250;return n/t}return 120}onValueUpdate(){this.value||this.positionDragHandler()}mounted(){this.updateBounds(),this.positionDragHandler()}beforeDestroy(){this.unbindListeners()}positionDragHandler(){if(this.value&&this.value.x&&this.value.y){const e=this.bounds.width*(this.value.x/100),t=this.bounds.height*(this.value.y/100),n=e-this.handlerBounds.width/2,o=t-this.handlerBounds.height/2;return this.currentX=this.clamp(n,0,this.upperX),void(this.currentY=this.clamp(o,0,this.upperY))}this.currentX=this.bounds.width/2-this.handlerBounds.width/2,this.currentY=this.bounds.height/2-this.handlerBounds.height/2}onStart(e){this.gridMode||(this.updateBounds(),e.target===this.dragHandler&&(this.isActive=!0),this.bindListeners())}onChange(e){if(this.gridMode)return;e.preventDefault();const{clientX:t,clientY:n}=this.getCoordinates(e),o=t-this.bounds.left-this.handlerBounds.width/2,s=n-this.bounds.top-this.handlerBounds.height/2;this.currentX=this.clamp(o,0,this.upperX),this.currentY=this.clamp(s,0,this.upperY),this.throttledUpdate()}onMove(e){this.gridMode||this.isActive&&this.onChange(e)}onEnd(e){e.preventDefault(),this.isActive=!1,this.unbindListeners()}clamp(e,t,n){return Math.max(t,Math.min(e,n))}getCoordinates(e){return e.touches?{clientX:e.touches[0].clientX||0,clientY:e.touches[0].clientY||0}:{clientX:e.clientX,clientY:e.clientY}}update(){const e=i()(this.currentX/this.upperX*100,2),t=i()(this.currentY/this.upperY*100,2);this.$emit("input",{x:e,y:t})}updateVal(e,t){this.$emit("input",{...this.value,[e]:null===t?null:i()(t,2)}),this.$nextTick((()=>this.positionDragHandler()))}updateBounds(){this.bounds=this.container.getBoundingClientRect(),this.handlerBounds=this.dragHandler.getBoundingClientRect(),this.upperX=this.bounds.width-this.handlerBounds.width-2,this.upperY=this.bounds.height-this.handlerBounds.height-2}bindListeners(){this.easyEvents.on("mouseup",this.onChange),this.easyEvents.on("mouseup",this.onEnd),this.easyEvents.on("mousemove",this.onMove)}unbindListeners(){this.easyEvents.removeAll()}onGridDotClicked({x:e,y:t}){this.$emit("input",{x:e,y:t})}};(0,c.gn)([(0,d.tB)({from:"context",default:null})],V.prototype,"context",void 0),(0,c.gn)([(0,d.fI)()],V.prototype,"value",void 0),(0,c.gn)([(0,d.fI)()],V.prototype,"options",void 0),(0,c.gn)([(0,d.RL)("value")],V.prototype,"onValueUpdate",null),V=(0,c.gn)([(0,d.wA)({components:{FocusPointGrid:M,Icon:y.Z,NumberInput:v.Z}})],V);const B=V,O=B;var L=(0,k.Z)(O,o,s,!1,null,null,null);const $=L.exports},40616:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(1387),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"d-flex breakdance-dropdown-input"},[t(o.Z,{staticClass:"breakdance-dense-select breakdance-white-gray-outlined-input",attrs:{items:e.items,dense:"",solo:"",flat:"",filled:"",value:e.value,"hide-details":"",placeholder:e.placeholder},on:{input:e.edit}})],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(85450);let u=class extends r.ZP{get items(){return c.configStore.fonts.map((e=>({text:e.label,value:e.slug})))}edit(e){e||(e=""),this.$emit("input",e)}};(0,i.gn)([(0,l.fI)()],u.prototype,"value",void 0),(0,i.gn)([(0,l.fI)()],u.prototype,"placeholder",void 0),u=(0,i.gn)([l.wA],u);const d=u,p=d;var h=n(1001),g=(0,h.Z)(p,s,a,!1,null,null,null);const m=g.exports},19719:(e,t,n)=>{"use strict";n.d(t,{Z:()=>he});var o=n(37179),s=n(53333),a=n(77671),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dialog",{attrs:{value:e.open,width:900,closeable:!0,"content-class":"icon-chooser-dialog"},on:{input:function(t){return e.$emit("update:dialog",!1)}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.__("Icon Library"))+" ")]},proxy:!0},{key:"text",fn:function(){return[t("div",{staticClass:"icon-chooser-grid"},[t("div",{staticClass:"icon-chooser-sidebar"},[t(a.Z,{staticClass:"icon-chooser-tabs",attrs:{vertical:"",optional:!0,value:e.activeIconSetIndex}},e._l(e.allIconSets,(function(n,o){return t(s.Z,{key:o,on:{click:function(t){return e.setActiveIconSetIndex(o)}}},[e._v(" "+e._s(n.name)+" ")])})),1),t("div",{staticClass:"mt-3 px-3"},[t(o.Z,{staticClass:"mt-3",class:{"is-upload-mode":"upload"===e.mode},attrs:{color:"blue",block:"",outlined:""},on:{click:e.setUploadMode}},[t("IconComponent",{staticClass:"mr-2",attrs:{icon:"UploadFileIcon",size:"12"}}),e._v(" "+e._s(e.__("Upload"))+" ")],1)],1)],1),t("div",{ref:"scrollable",staticClass:"icon-chooser-body"},["browse"===e.mode?[t("div",{staticClass:"icon-chooser-toolbar"},[t("SearchInput",{staticClass:"icon-chooser-search",attrs:{value:e.searchString,placeholder:e.placeholder},on:{input:e.throttledHandleSearchStringChange}}),e.activeIconSetIndex>=e.virtualIconSets.length?t(o.Z,{staticClass:"icon-chooser-toolbar-button",attrs:{color:"error",outlined:"",loading:e.isIconSetDeletionInProgress},on:{click:function(t){return e.deleteIconSet(e.activeIconSetIndex)}}},[t("IconComponent",{staticClass:"mr-2",attrs:{icon:"TrashIcon",size:"12"}}),e._v(" "+e._s(e.__("Delete"))+" ")],1):e._e(),e.activeIconSetIndex>=e.virtualIconSets.length?t(o.Z,{staticClass:"icon-chooser-toolbar-button",attrs:{outlined:"",color:"blue"},on:{click:function(t){return e.exportIconSet(e.activeIconSet)}}},[t("IconComponent",{staticClass:"mr-2",attrs:{icon:"DownloadFileIcon",size:"12"}}),e._v(" "+e._s(e.__("Export"))+" ")],1):e._e()],1),e.icons.length>0?t("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:{callback:e.handleInfiniteScroll,root:()=>e.$refs.scrollable},expression:"{\n callback: handleInfiniteScroll,\n root: () => $refs.scrollable\n }"}],staticClass:"breakdance-icon-input-icons"},e._l(e.icons,(function(n,o){return t("div",{key:o,staticClass:"breakdance-icon-input-icon",on:{click:function(t){return e.$emit("input",n)}}},[t("div",{staticClass:"breakdance-icon-input-icon__svg",domProps:{innerHTML:e._s(n.svgCode)}}),t("span",{staticClass:"breakdance-icon-input-icon__label"},[t("span",{attrs:{title:e.formatName(n)}},[e._v(e._s(e.formatName(n)))])]),e.canDelete?t("span",{staticClass:"breakdance-icon-input-icon__delete",on:{click:function(t){return t.stopPropagation(),e.deleteIcon(n)}}},[t("IconComponent",{attrs:{icon:"TrashIcon",size:"12"}})],1):e._e()])})),0):e._e(),e.icons.length||e.areIconsLoading?e._e():t("div",{staticClass:"icon-chooser-empty"},[e.searchString?[e._v(" "+e._s(e.sprintf(e.__('We couldn\'t find any icons matching "%s".'),e.searchString))+" ")]:[e._v(e._s(e.__("No icons found.")))]],2),e.areIconsLoading?t("div",{staticClass:"icon-chooser-loading"},[t("LoadingSpinner",{attrs:{color:"var(--gray500)",size:65}})],1):e._e()]:e._e(),"upload"===e.mode?[t("IconUpload",{key:e.uploadKey,on:{chooseIcon:function(t){return e.$emit("input",t)},done:function(t){return e.uploadComplete(t)}}})]:e._e()],2)])]},proxy:!0}])})},r=[],l=n(23279),c=n.n(l),u=n(70655),d=n(20144),p=n(38085),h=n(85450),g=n(197),m=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"icon-upload"},[t("FileUpload",{attrs:{accept:"image/svg+xml",saveInProgress:e.saveInProgress},on:{input:e.handleFiles}},[e.uploadedIcons.length<1?t("div",{staticClass:"icon-upload-text"},[e._v(" "+e._s(e.__("Drag SVGs or an IcoMoon symbol-defs.svg file here or click to choose a file"))+" ")]):t("div",{staticClass:"breakdance-icon-input-icons"},e._l(e.uploadedIcons,(function(n,o){return t("div",{key:o,staticClass:"breakdance-icon-input-icon",on:{click:function(t){return e.chooseIcon(n)}}},[t("div",{staticClass:"breakdance-icon-input-icon__svg",domProps:{innerHTML:e._s(n.svgCode)}}),t("span",{staticClass:"breakdance-icon-input-icon__label"},[e._v(e._s(n.name))])])})),0)]),t(g.Z,{attrs:{"return-object":!1,items:e.iconSetsForDropdown,label:e.__("Save icons to existing set, or create a new icon set..."),filled:""},model:{value:e.iconSetToSaveIconsTo,callback:function(t){e.iconSetToSaveIconsTo=t},expression:"iconSetToSaveIconsTo"}}),t("div",{staticClass:"text-right"},[t(o.Z,{attrs:{color:"blue",outlined:"",loading:e.saveInProgress},on:{click:e.saveIcons}},[e._v(" "+e._s(e.__("Save Icons"))+" ")])],1)],1)},v=[],f=n(45974),y=n(30169),b=n(31304),_=n.n(b);function I(e){const t=e.querySelector("title");return t?t.innerHTML:null}const w=(0,y.V)((e=>{const t=new DOMParser,n=t.parseFromString(e,"application/xhtml+xml"),o=n.querySelectorAll("defs > symbol");return o.length<1?(0,f.left)(["no SVGs found - are you sure you uploaded a valid file?"]):(0,f.right)(Array.from(o).map((e=>({slug:e.id,name:e.id,svgCode:e.outerHTML.replace(/symbol/g,"svg")}))))})),x=(0,y.V)(((e,t)=>{const n=new DOMParser,o=n.parseFromString(e,"application/xhtml+xml"),s=o.querySelector("svg");if(!s)return(0,f.left)(["No SVG element found."]);const a=t.replace(/\.svg|icon-/g,"").replaceAll("-"," "),i=I(s),r=i?_()(i):"icon-"+_()(a),l=i||a;return(0,f.right)({slug:r,name:l,svgCode:s.outerHTML})}));var S=n(30902),C=n(30895),k=n(39664),P=n(3735),Z=n(98851),D=n(32521);const E=D.dt({id:D.pk,slug:D.Z_,name:D.Z_,svgCode:D.Z_,iconSetSlug:D.Z_}),T=D.dt({slug:D.Z_,name:D.Z_,custom:D.O7}),A=D.IX(T);var M=n(48973),V=n(36055);async function B(e){return(0,P.zG)(await(0,Z.D)({action:"breakdance_find_icons",decoder:(0,D.IX)(E),dataToPost:e}),(0,M.g_)((()=>null),(e=>e)))}async function O(){return(0,P.zG)(await(0,Z.D)({action:"breakdance_get_icon_sets",decoder:A}),(0,M.g_)((()=>null),(e=>e)))}async function L(e){return(0,P.zG)(await(0,Z.D)({action:"breakdance_delete_icon",decoder:D._4,dataToPost:{id:e}}),(0,M.g_)((()=>!1),(()=>!0)))}async function $(e){return(0,P.zG)(await(0,Z.D)({action:"breakdance_delete_icon_set",decoder:D._4,dataToPost:{iconSetSlug:e}}),(0,M.g_)((()=>!1),(()=>!0)))}async function z(e,t){return(0,P.zG)(await(0,Z.D)({action:"breakdance_upload_icons",decoder:D._4,dataToPost:{icons:e,iconSet:t}}),(0,M.g_)((()=>!1),(()=>!0)))}async function N(e){const t=window.Breakdance.restUrl,n=window.Breakdance.restNonce,o=`${t}/icons/export?_wpnonce=${n}&icon_set_slug=${e}`,s=await fetch(o);if(!s.ok){const e=s.headers.get("Content-Type")?.startsWith("application/json");if(e){const e=await s.json();k.Z.log.errorMessage(e.message)}else k.Z.log.errorMessage((0,V.__)("Failed to export icon set.")),console.log(s);return}const a=await s.blob(),i=window.URL.createObjectURL(a),r=document.createElement("a");r.href=i,r.download=`${e}.zip`,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(i),document.body.removeChild(r)}let H=class extends d.ZP{constructor(){super(...arguments),this.iconSetToSaveIconsTo="",this.uploadedIcons=[],this.saveInProgress=!1}chooseIcon(e){this.$emit("chooseIcon",e)}handleFiles(e){Array.from(e).forEach((e=>{const t=new FileReader,n=this;t.onloadend=function(){"string"===typeof this.result&&("symbol-defs.svg"===e.name?n.handleIcoMoonFile(this.result):"image/svg+xml"===e.type?n.handleSingleSvgFile(this.result,e.name):"application/zip"===e.type?k.Z.log.message(n.__("Please extract the contents of the zip file and upload the individual SVG files.")):k.Z.log.message(n.__("Upload symbol-defs.svg from an IcoMoon export, or an individual SVG file.")))},t.readAsText(e)}))}handleIcoMoonFile(e){(0,S.pipe)(w(e),(0,f.fold)((e=>e.forEach(k.Z.log.message)),(e=>this.uploadedIcons.push(...e))))}handleSingleSvgFile(e,t){(0,S.pipe)(x(e,t),(0,f.fold)((e=>e.forEach(k.Z.log.message)),(e=>this.uploadedIcons.push(e))))}async saveIcons(){"string"===typeof this.iconSetToSaveIconsTo&&(this.uploadedIcons.length<1?k.Z.log.message((0,V.__)("Upload some icons.")):(this.saveInProgress=!0,setTimeout((async()=>{if("string"!==typeof this.iconSetToSaveIconsTo)return;this.saveInProgress=!0;const e=""===this.iconSetToSaveIconsTo?{slug:"uncategorized",name:(0,V.__)("Uncategorized"),custom:!1}:h.configStore.iconSets.find((e=>e.slug===this.iconSetToSaveIconsTo))??{slug:this.iconSetToSaveIconsTo,name:this.iconSetToSaveIconsTo,custom:!1};await z(this.uploadedIcons,e),this.saveInProgress=!1,this.uploadedIcons=[],this.iconSetToSaveIconsTo="",this.$emit("done",e.slug)}),100)))}get iconSetsForDropdown(){return h.configStore.iconSets.map((e=>({text:e.name,value:e.slug,disabled:!e.custom})))}};H=(0,u.gn)([(0,p.wA)({components:{FileUpload:C.Z}})],H);const R=H,G=R;var F=n(1001),U=(0,F.Z)(G,m,v,!1,null,null,null);const W=U.exports;var j=n(41571),X=n(38562),q=n(85283),K=n(89137),Y=n(11529),J=n(58720),Q=n(23560),ee=n.n(Q),te=n(34676);const ne=new WeakMap;function oe(e,t){void 0!==t.value&&ee()(t.value.callback)&&ee()(t.value.root)&&(0,te.forceNextTick)((()=>{if(null===e.lastElementChild)return;let n=!0;const o=new IntersectionObserver((e=>{const o=e.find((e=>e.isIntersecting));n||void 0===o||t.value.callback(),n&&(n=!1)}),{threshold:.1,root:t.value.root()??e});o.observe(e.lastElementChild);const s=new MutationObserver((t=>{const n=t.find((e=>"childList"===e.type));void 0!==n&&(o.disconnect(),null!==e.lastElementChild&&o.observe(e.lastElementChild))}));s.observe(e,{childList:!0}),ne.set(e,{intersection:o,mutation:s})}))}function se(e){const t=ne.get(e);void 0!==t&&(t.mutation.disconnect(),t.intersection.disconnect())}const ae={inserted:oe,unbind:se},ie=ae;var re,le=n(22608);(function(e){e["Upload"]="upload",e["Browse"]="browse"})(re||(re={}));let ce=class extends d.ZP{constructor(){super(...arguments),this.mode=re.Browse,this.searchString="",this.activeIconSetIndex=0,this.isIconSetDeletionInProgress=!1,this.icons=[],this.areIconsLoading=!1,this.uploadKey="69",this.throttledHandleSearchStringChange=c()(this.handleSearchStringChange,600)}get placeholder(){return(0,V.gB)((0,V.TZ)('Search in "%s"',"%s: Icon set name"),this.activeIconSet?.name)}get activeIconSet(){return this.allIconSets[this.activeIconSetIndex]}get allIconSets(){return[...this.virtualIconSets,...this.storedIconSets]}get canDelete(){return this.activeIconSet.custom}get virtualIconSets(){const e=[{name:(0,V.__)("All Icons"),virtual:!0,virtualType:"all",custom:!1}];return this.suggestions.length&&e.unshift({name:(0,V.__)("Suggested Icons"),virtual:!0,virtualType:"suggested",custom:!1}),e}get storedIconSets(){return[...h.configStore.iconSets].sort(((e,t)=>Number(t.custom)-Number(e.custom)))}async mounted(){await this.retrieveIconSets(),await this.findIcons()}async handleSearchStringChange(e){this.searchString=e,await this.findIcons()}handleInfiniteScroll(){this.areIconsLoading||this.findIcons(!0)}scrollToTop(){const e=this.$refs.scrollable;e.scrollTop=0}async retrieveIconSets(){h.configStore.setIconSets([]);const e=await O();null!==e&&h.configStore.setIconSets(e)}async findIcons(e=!1){const t=()=>{if(!("virtual"in this.activeIconSet))return this.activeIconSet.slug};e||(this.icons=[]),this.areIconsLoading=!0;const n=await B({searchTerm:null!==this.searchString&&this.searchString.trim().length?this.searchString.trim():void 0,iconSetSlug:t(),offset:e?this.icons.length:void 0,suggestions:"virtual"in this.activeIconSet&&"suggested"===this.activeIconSet.virtualType?this.suggestions:void 0});this.areIconsLoading=!1,null===n?this.icons=[]:e?this.icons.push(...n):this.icons=n}setActiveIconSetIndex(e){this.activeIconSetIndex=e,this.mode=re.Browse,this.scrollToTop(),this.findIcons()}setUploadMode(){this.activeIconSetIndex=-1,this.mode=re.Upload,this.uploadKey=(100*Math.random()).toString()}async uploadComplete(e){await this.retrieveIconSets();const t=this.allIconSets.findIndex((t=>!("virtual"in t)&&t.slug===e));this.setActiveIconSetIndex(-1===t?0:t)}async deleteIconSet(e){if(e{"use strict";n.d(t,{Z:()=>w});var o=n(70248),s=n(61908),a=n(11193),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-icon-input has-transparency-layer"},[e.currentSvgCode?t("div",{staticClass:"breakdance-icon-input-icon-layer-svg-wrapper",domProps:{innerHTML:e._s(e.currentSvgCode)}}):e._e(),t("MediaChooserLayer",{attrs:{value:e.currentSvgCode},on:{click:e.openDialog,contextmenu:function(t){return t.preventDefault(),e.openContextMenu.apply(null,arguments)}}}),t("IconChooserDialog",{attrs:{open:e.dialogOpen,suggestions:e.iconOptions&&e.iconOptions.suggestions},on:{"update:dialog":function(t){e.dialogOpen=t},input:function(t){return e.chooseIcon(t)}}}),t("Dropdown",{attrs:{"position-x":e.contextMenuX,"position-y":e.contextMenuY,absolute:"","offset-y":""},model:{value:e.contextMenuOpen,callback:function(t){e.contextMenuOpen=t},expression:"contextMenuOpen"}},[t(o.Z,[t(s.Z,{attrs:{dense:"",disabled:!e.value},on:{click:e.copy}},[t(a.V9,[e._v(e._s(e.__("Copy SVG")))])],1),t(s.Z,{attrs:{dense:""},on:{click:e.paste}},[t(a.V9,[e._v(e._s(e.__("Paste SVG")))])],1)],1)],1)],1)},r=[],l=n(70655),c=n(20144),u=n(38085),d=n(19719),p=n(85283),h=n(79333),g=n(4802),m=n(15133),v=n(89028);let f=class extends c.ZP{constructor(){super(...arguments),this.dialogOpen=!1,this.contextMenuOpen=!1,this.contextMenuX=0,this.contextMenuY=0}get currentSvgCode(){return this.value?.svgCode}openDialog(){this.dialogOpen=!0}closeDialog(){this.dialogOpen=!1}chooseIcon(e){this.dialogOpen=!1,this.$emit("input",{...e})}clear(){this.$emit("input",{})}openContextMenu(e){this.contextMenuX=e.clientX,this.contextMenuY=e.clientY,this.contextMenuOpen=!0}copy(){this.currentSvgCode&&(0,v.l9)(this.currentSvgCode)}async paste(){const e=await(0,v.gR)();this.$emit("input",{...this.value,svgCode:e})}};(0,l.gn)([(0,u.fI)()],f.prototype,"value",void 0),(0,l.gn)([(0,u.fI)()],f.prototype,"iconOptions",void 0),f=(0,l.gn)([(0,u.wA)({components:{Dropdown:m.Z,MediaChooserLayer:g.Z,NiceButton:h.Z,IconComponent:p.Z,IconChooserDialog:d.Z}})],f);const y=f,b=y;var _=n(1001),I=(0,_.Z)(b,i,r,!1,null,null,null);const w=I.exports},99926:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var o=n(84192),s=n(70248),a=n(61908),i=n(11193),r=n(60092),l=n(22680),c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-inline-repeater",class:{"breakdance-inline-repeater--dense":e.dense}},[t("draggable",e._b({attrs:{value:e.value,group:e.group},on:{input:e.handleDrag}},"draggable",e.dragOptions,!1),e._l(e.value,(function(n,o){return t("div",{key:e.dataKey?n[e.dataKey]:o,ref:"items",refInFor:!0,staticClass:"breakdance-inline-repeater-item"},[e.canDrag?t("Icon",{staticClass:"breakdance-inline-repeater-drag-handle breakdance-inline-repeater-icon",attrs:{title:e.__("Reorder"),icon:"oxygen"===e.builderMode?"GripDotsVerticalIcon":"EllipsisIcon",size:"14",rotate:"oxygen"===e.builderMode?0:90}}):e._e(),t("div",{staticClass:"breakdance-inline-repeater-item-controls"},[e._t("default",null,{index:o,value:e.value[o]})],2),e.canDelete?t("Icon",{staticClass:"breakdance-inline-repeater-delete breakdance-inline-repeater-icon",attrs:{title:e.__("Delete"),icon:"oxygen"===e.builderMode?"TrashSolidIcon":"TrashIcon",size:"oxygen"===e.builderMode?12:14},on:{click:function(t){return t.stopPropagation(),e.deleteItem(o)}}}):e._e()],1)})),0),t(r.Z,{attrs:{bottom:"","offset-y":"",disabled:!e.templateItems.length,"nudge-top":-5},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[e.canAdd?t("NiceButton",e._g(e._b({staticClass:"mb-1 mt-1",attrs:{size:"small","data-test-id":"repeater-add-item","right-icon":e.templateItems.length?"ChevronDownIcon":void 0},on:{click:e.addItem}},"NiceButton",o,!1),n),[e._v(" "+e._s(e.buttonName)+" ")]):e._e()]}}])},[t(s.Z,{attrs:{dense:"",subheader:""}},[e._l(e.templateItems,(function(n,s){return[n.type?"divider"===n.type?t(o.Z,{key:s}):"subheader"===n.type?t(l.Z,{key:s},[e._v(" "+e._s(n.subheader)+" ")]):e._e():t(a.Z,{key:s,on:{click:function(t){return e.addTemplateItem(n.value)}}},[t(i.V9,{staticClass:"d-flex"},[n.icon?t("Icon",{staticClass:"mr-2",attrs:{icon:n.icon,size:"14"}}):e._e(),e._v(" "+e._s(n.title)+" ")],1)],1)]}))],2)],1)],1)},u=[],d=n(70655),p=n(20144),h=n(34680),g=n.n(h),m=n(38085),v=n(89754),f=n(23128),y=n(23906),b=n(85283),_=n(79333),I=n(13009),w=n(85450),x=n(36055);let S=class extends p.ZP{constructor(){super(...arguments),this.dragOptions={animation:200,handle:".breakdance-inline-repeater-drag-handle",ghostClass:"breakdance-inline-repeater-item--ghost",forceFallback:!0}}beforeCreate(){this.$options.components.ControlsTree=n(20951)["default"]}get builderMode(){return w.configStore.builderMode}get buttonName(){return this.control?.options.repeaterOptions?.buttonName||(0,x.__)("Add new")}get templateItems(){return this.control?.options.repeaterOptions?.templates||[]}get autofocusOnAdd(){return this.control?.options.repeaterOptions?.autofocusOnAdd||!1}get autofocusIndex(){return this.control?.options.repeaterOptions?.autofocusIndex||0}emit(e){this.$emit("input",this.createSnapshotWhenItemsListChanges?(0,v.O$)(e,{disableTransactionBundling:!0}):e)}handleDrag(e){this.emit((0,f.Z)(e))}addItem(){if(this.templateItems.length)return;const e=(0,f.Z)(this.value)||[];e.push(this.processDefaultValue(this.defaultNewValue)||{}),this.emit(e),this.maybeFocusNewItem()}deleteItem(e){const t=(0,f.Z)(this.value)||[];t.splice(e,1),this.emit(t)}addTemplateItem(e){const t=(0,f.Z)(this.value)||[];t.push(this.processDefaultValue(e)),this.emit(t),this.maybeFocusNewItem()}processDefaultValue(e){return(0,I.q)(e,this.value?.length||0)}maybeFocusNewItem(){this.$nextTick((()=>{if(!this.autofocusOnAdd)return;const e=this.value.length-1,t=this.$refs.items,n=t?.[e];if(n){const e=n.querySelectorAll("input"),t=e[this.autofocusIndex]||e[0];if(!t)return;this.$nextTick((()=>t.focus()))}}))}};(0,d.gn)([(0,m.fI)()],S.prototype,"control",void 0),(0,d.gn)([(0,m.fI)()],S.prototype,"value",void 0),(0,d.gn)([(0,m.fI)({default:!1})],S.prototype,"createSnapshotWhenItemsListChanges",void 0),(0,d.gn)([(0,m.fI)()],S.prototype,"defaultNewValue",void 0),(0,d.gn)([(0,m.fI)({default:!1})],S.prototype,"dense",void 0),(0,d.gn)([(0,m.fI)({default:!0})],S.prototype,"canDrag",void 0),(0,d.gn)([(0,m.fI)({default:!0})],S.prototype,"canAdd",void 0),(0,d.gn)([(0,m.fI)({default:!0})],S.prototype,"canDelete",void 0),(0,d.gn)([(0,m.fI)()],S.prototype,"dataKey",void 0),(0,d.gn)([(0,m.fI)()],S.prototype,"group",void 0),S=(0,d.gn)([(0,m.wA)({components:{NiceButton:_.Z,Icon:b.Z,RepeaterItemTitleText:y.Z,draggable:g()}})],S);const C=S,k=C;var P=n(1001),Z=(0,P.Z)(k,c,u,!1,null,null,null);const D=Z.exports},36529:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var o=n(12570),s=n(18236),a=n(56275),i=n(99868),r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(o.Z,{attrs:{value:e.open,"max-width":"500","content-class":"breakdance-link-chooser-dialog"},on:{input:e.closeDialog}},[e.open?[t(i.Z,{staticClass:"breakdance-link-chooser-dialog-content",attrs:{tile:""}},[t(s.Z,{attrs:{value:e.loading,opacity:"1",absolute:"",color:"var(--white)"}},[t(a.Z,{attrs:{indeterminate:"",size:"64",color:"var(--black)"}})],1),t("iframe",{attrs:{src:e.linkChooserUrl}})],1)]:e._e()],2)},l=[],c=n(70655),u=n(20144),d=n(38085),p=n(85450);let h=class extends u.ZP{constructor(){super(...arguments),this.loading=!1}get linkChooserUrl(){return p.configStore.neededData?p.configStore.neededData.linkChooserUrl:""}onDialogUpdated(){this.open?(this.bindListeners(),this.loading=!0):this.unbindListeners()}bindListeners(){document.addEventListener("breakdanceLinkChooserReady",this.onDialogReady),document.addEventListener("breakdanceLinkChooserSelect",this.onLinkSelected),document.addEventListener("breakdanceLinkChooserClose",this.closeDialog)}unbindListeners(){document.addEventListener("breakdanceLinkChooserReady",this.onDialogReady),document.removeEventListener("breakdanceLinkChooserSelect",this.onLinkSelected),document.removeEventListener("breakdanceLinkChooserClose",this.closeDialog)}onLinkSelected(e){this.closeDialog(),e.detail&&this.$emit("input",e.detail.href)}onDialogReady(){this.loading=!1}closeDialog(){this.$emit("close")}};(0,c.gn)([(0,d.fI)({default:!1})],h.prototype,"open",void 0),(0,c.gn)([(0,d.RL)("open")],h.prototype,"onDialogUpdated",null),h=(0,c.gn)([d.wA],h);const g=h,m=g;var v=n(1001),f=(0,v.Z)(m,r,l,!1,null,null,null);const y=f.exports},98236:(e,t,n)=>{"use strict";n.d(t,{Z:()=>se});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-link-input",class:{"breakdance-link-input--expanded":e.expanded,"breakdance-link-input--dynamic":e.isUrlDynamic}},[t("div",{staticClass:"breakdance-link-input-input"},[e.isUrlDynamic?t("DynamicInput",{attrs:{value:e.internalValue.url,meta:e.internalValue.dynamicMeta},on:{change:e.onDynamicDataSelected,clear:e.clearDynamicValue}}):"url"===e.internalValue.type?[t("TextInput",{attrs:{value:e.internalValue.url,placeholder:e.__("Paste or type an URL"),multiline:!0},on:{input:e.updateUrl}})]:t("span",{staticClass:"breakdance-link-input-type",on:{click:e.toggleSettings}},[e._v(" "+e._s(e.internalValue.type)+" ")]),t("div",{staticClass:"breakdance-link-input-actions"},[t("button",{staticClass:"breakdance-link-input-action breakdance-link-input-action--open-dialog",on:{click:e.openDialog}},[t("Icon",{attrs:{icon:"LinkIcon"}})],1),t("button",{staticClass:"breakdance-link-input-action breakdance-link-input-action--open-settings",on:{click:e.toggleSettings}},[t("Icon",{attrs:{icon:"GearIcon",size:"13"}})],1),e.isFutureLayerMode?e._e():t("span",{staticClass:"breakdance-link-input-action"},[t("DynamicDataChooser",{attrs:{accepts:"url","icon-size":12,value:e.internalValue.dynamicMeta,"pro-only":!1},on:{input:e.onDynamicDataSelected}})],1)])],2),e.expanded?t("LinkInputSettings",{attrs:{value:e.internalValue,"hide-advanced":e.options.hideAdvanced},on:{input:e.emit}}):e._e(),t("LinkChooserDialog",{attrs:{open:e.dialogOpen},on:{input:e.onLinkSelected,close:e.closeDialog}})],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(30902),c=n(45974),u=n(23128),d=n(32521),p=n(665),h=n(47902),g=n(89754);const m=d.r$({type:d.G0([d.i0("url"),d.i0("lightbox"),d.i0("contact"),d.i0("action")]),url:d.Z_,dynamicMeta:h.DU,openInNewTab:d.O7,html:d.r$({id:d.Z_,attributes:d.IX(d.r$({name:d.G0([d.Z_,d.lB]),value:d.G0([d.Z_,d.lB])}))}),lightbox:d.r$({type:d.G0([d.i0("image"),d.i0("video"),d.i0("")]),video:d.G0([g.FX,d.Z_]),image:d.G0([p.V0,d.Z_]),imageDynamicMeta:h.DU,videoDynamicMeta:h.DU,disableAutoplay:d.O7}),contact:d.r$({type:d.G0([d.i0("email"),d.i0("tel"),d.i0("sms"),d.i0("whatsapp")]),email:d.Z_,subject:d.Z_,message:d.Z_,phoneNumber:d.Z_}),action:d.r$({type:d.G0([d.i0("slider"),d.i0("popup")]),sliderOptions:d.r$({elementId:d.Z_,actionType:d.G0([d.i0("goto"),d.i0("previous"),d.i0("next")]),slideIndex:d.pk}),popupOptions:d.r$({popupId:d.Z_,popupAction:d.G0([d.i0("open"),d.i0("close"),d.i0("toggle")])})})}),v={type:"url",url:""};var f=n(43195),y=n(96074),b=n(47354),_=n(41571),I=n(82542),w=n(19499),x=n(73385),S=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-link-input-settings"},[t("div",{staticClass:"breakdance-link-input-settings-item breakdance-link-input-settings-item--horizontal"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(e._s(e.__("Type")))]),t("DropdownInput",{attrs:{value:e.value.type,items:e.typeDropdownItems},on:{input:function(t){return e.update(t,"type")}}})],1),"url"===e.value.type||"contact"===e.value.type?[t("div",{staticClass:"breakdance-link-input-settings-item breakdance-link-input-settings-item--horizontal"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(" "+e._s(e.__("Open in new tab"))+" ")]),t("ToggleInput",{attrs:{value:e.value.openInNewTab,label:""},on:{input:function(t){return e.update(t,"openInNewTab")}}})],1)]:e._e(),"lightbox"===e.value.type?[t("div",{staticClass:"breakdance-link-input-settings-item"},[t("ButtonBarInput",{attrs:{value:e.lightboxOptions.type,items:e.lightboxDropdownItems},on:{input:function(t){return e.update(t||"","lightbox.type")}}})],1),"image"===e.lightboxOptions.type?t("div",{staticClass:"breakdance-link-input-settings-item"},[t("div",{staticClass:"breakdance-link-input-label-wrapper"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(e._s(e.__("Image")))]),t("DynamicDataChooser",{attrs:{accepts:"image_url","icon-size":10,value:e.lightboxOptions.imageDynamicMeta},on:{input:e.onDynamicImageSelected}})],1),e.isDynamicImage?[t("DynamicInput",{attrs:{value:e.lightboxOptions.image,meta:e.lightboxOptions.imageDynamicMeta},on:{change:e.onDynamicImageSelected,input:e.update,clear:e.clearDynamicImage}})]:e._e(),e.isDynamicImage?e._e():[t("WPMediaInput",{attrs:{value:e.lightboxOptions.image,"accepted-file-types":["image"]},on:{input:function(t){return e.update(t,"lightbox.image")}}})]],2):e._e(),"video"===e.lightboxOptions.type?[t("div",{staticClass:"breakdance-link-input-settings-item"},[t("div",{staticClass:"breakdance-link-input-label-wrapper"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(e._s(e.__("Video")))]),t("DynamicDataChooser",{attrs:{accepts:"video","icon-size":12,value:e.lightboxOptions.videoDynamicMeta},on:{input:e.onDynamicVideoSelected}})],1),e.isDynamicVideo?[t("DynamicInput",{attrs:{value:e.lightboxOptions.video,meta:e.lightboxOptions.videoDynamicMeta},on:{change:e.onDynamicVideoSelected,input:e.update,clear:e.clearDynamicVideo}})]:e._e(),e.isDynamicVideo?e._e():[t("VideoInput",{attrs:{value:e.lightboxOptions.video},on:{input:function(t){return e.update(t,"lightbox.video")}}})]],2),t("div",{staticClass:"breakdance-link-input-settings-item breakdance-link-input-settings-item--horizontal"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(" "+e._s(e.__("Disable Autoplay"))+" ")]),t("ToggleInput",{attrs:{value:e.lightboxOptions.disableAutoplay,label:""},on:{input:function(t){return e.update(t,"lightbox.disableAutoplay")}}})],1)]:e._e()]:e._e(),"contact"===e.value.type?[t("div",{staticClass:"breakdance-link-input-settings-item"},[t("DropdownInput",{attrs:{items:e.contactDropdownItems,value:e.contactOptions.type,placeholder:e.__("Select a type...")},on:{input:function(t){return e.update(t,"contact.type")}}})],1),"email"===e.contactOptions.type?t("div",{staticClass:"breakdance-link-input-settings-item"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(e._s(e.__("Email")))]),t("TextInput",{attrs:{value:e.contactOptions.email},on:{input:function(t){return e.update(t||"","contact.email")}}})],1):e._e(),"email"===e.contactOptions.type?t("div",{staticClass:"breakdance-link-input-settings-item"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(e._s(e.__("Subject")))]),t("TextInput",{attrs:{value:e.contactOptions.subject},on:{input:function(t){return e.update(t||"","contact.subject")}}})],1):e._e(),e.needsPhoneNumber?t("div",{staticClass:"breakdance-link-input-settings-item"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(" "+e._s(e.__("Phone Number"))+" ")]),t("TextInput",{attrs:{value:e.contactOptions.phoneNumber},on:{input:function(t){return e.update(t||"","contact.phoneNumber")}}})],1):e._e(),e.needsMessage?t("div",{staticClass:"breakdance-link-input-settings-item"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(e._s(e.__("Message")))]),t("TextInput",{attrs:{multiline:!0,value:e.contactOptions.message},on:{input:function(t){return e.update(t||"","contact.message")}}})],1):e._e()]:e._e(),"action"===e.value.type?[t("DropdownInput",{attrs:{items:e.actionDropdownItems,value:e.actionOptions.type,placeholder:e.__("Select a type...")},on:{input:function(t){return e.update(t,"action.type")}}}),"slider"===e.actionOptions.type?[t("div",{staticClass:"breakdance-control-wrapper-inline"},[t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(" "+e._s(e.__("Slider"))+" ")])]),t("div",{staticClass:"breakdance-control-wrapper-input-wrapper"},[t("DropdownInput",{attrs:{items:e.sliderActionSlidersDropdownItems,value:e.sliderOptions.elementId},on:{input:function(t){return e.update(t||"","action.sliderOptions.elementId")}}})],1)]),t("div",{staticClass:"breakdance-control-wrapper-inline"},[t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(e._s(e.__("Action")))])]),t("div",{staticClass:"breakdance-control-wrapper-input-wrapper"},[t("DropdownInput",{attrs:{items:e.sliderActionsTypeDropdownItems,value:e.sliderOptions.actionType},on:{input:function(t){return e.update(t||"","action.sliderOptions.actionType")}}})],1)]),"goto"==e.sliderOptions.actionType?t("div",{staticClass:"breakdance-control-wrapper-inline"},[t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(e._s(e.__("Slide #")))])]),t("div",{staticClass:"breakdance-control-wrapper-input-wrapper"},[t("NumberInput",{attrs:{value:e.sliderOptions.slideIndex},on:{input:e.updateSlideindex}})],1)]):e._e()]:e._e(),"popup"===e.actionOptions.type?[t("div",{staticClass:"breakdance-link-input-settings-item"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(e._s(e.__("Popup")))]),t("DropdownInput",{attrs:{placeholder:e.__("Select a popup..."),"dropdown-options":{populate:{fetchDataAction:"breakdance_get_popups"}},value:e.popupOptions.popupId},on:{input:function(t){return e.update(t,"action.popupOptions.popupId")}}})],1),"popup"===e.actionOptions.type?[t("div",{staticClass:"breakdance-link-input-settings-item"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(" "+e._s(e.__("Action"))+" ")]),t("DropdownInput",{attrs:{items:e.popupActionItems,value:e.popupOptions.popupAction},on:{input:function(t){return e.update(t,"action.popupOptions.popupAction")}}})],1)]:e._e()]:e._e()]:e._e(),e.hideAdvanced?e._e():t("Dropdown",{attrs:{"min-width":280,"max-width":280,"max-height":400,origin:"top right","close-on-content-click":!1,title:e.__("Advanced")},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",{staticClass:"control-section-as-modal"},[t("span",{staticClass:"control-section-as-popout-label"},[e._v(e._s(e.__("Advanced")))]),t("div",e._g({staticClass:"popout-section-open-icon"},n),[t("Icon",{attrs:{icon:"EditIcon",size:"19"}})],1)])]}}],null,!1,2051593851)},[t(x.Z,{staticClass:"popout-section-content"},[t("div",{staticClass:"breakdance-control-wrapper"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(" "+e._s(e.__("ID"))+" ")]),t("TextInput",{attrs:{value:e.value.html?.id},on:{input:function(t){return e.update(t,"html.id")}}})],1),t("div",{staticClass:"breakdance-control-wrapper"},[t("span",{staticClass:"breakdance-link-input-settings-item__label"},[e._v(" "+e._s(e.__("Attributes"))+" ")]),t("InlineRepeater",{attrs:{value:e.value.html?.attributes},on:{input:function(t){return e.update(t,"html.attributes")}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:o}){return[t("div",{staticClass:"breakdance-inline-repeater-item-control"},[t("TextInput",{staticClass:"breakdance-inline-repeater-input",attrs:{value:o.name},on:{input:function(t){return e.updateAttributeAtIndex(t,n,"name")}}}),t("span",{staticClass:"breakdance-inline-repeater-item-label"},[e._v(e._s(e.__("Name")))])],1),t("div",{staticClass:"breakdance-inline-repeater-item-control"},[t("TextInput",{staticClass:"breakdance-inline-repeater-input",attrs:{value:o.value},on:{input:function(t){return e.updateAttributeAtIndex(t,n,"value")}}}),t("span",{staticClass:"breakdance-inline-repeater-item-label"},[e._v(e._s(e.__("Value")))])],1)]}}],null,!1,2706119881)})],1)])],1)],2)},C=[],k=n(36968),P=n.n(k),Z=n(56823),D=n(23267),E=n(84336),T=n(72252),A=n(44762),M=n(70504),V=n(2028),B=n(31381),O=n(20210),L=n(31044);function $(e,t){const n=["EssentialElements\\Postslist","EssentialElements\\PostsLoop","EssentialElements\\DynamicDataLoop"];return(0,B.treeNodesOfType)(e,["EssentialElements\\Basicslider","EssentialElements\\Advancedslider","EssentialElements\\TermLoopBuilder",...n]).filter((e=>{const t=n.includes(e.data.type);if(t){const t=e.data?.properties?.design?.list?.layout;return"slider"===t}return!0})).map((e=>{const n=L.PK.element(e.data.type).name;return{id:e.id,name:`${n} #${e.id}`,uniqueClassName:(0,O.P0)(e,t)}}))}var z=n(85450),N=n(99926),H=n(71821),R=n(22608),G=n(85283),F=n(15133),U=n(36055);let W=class extends i.ZP{get lightboxDropdownItems(){return[{text:(0,U.__)("Image"),value:"image",icon:"ImageIcon"},{text:(0,U.__)("Video"),value:"video",icon:"VideoIcon"}]}get typeDropdownItems(){const e=[{text:(0,U.__)("URL"),value:"url"},{text:(0,U.__)("Lightbox"),value:"lightbox"},{text:(0,U.__)("Contact"),value:"contact"}];return"breakdance"===z.configStore.builderMode&&e.push({text:(0,U.__)("Action"),value:"action"}),e}get contactDropdownItems(){return[{text:(0,U.__)("Email"),value:"email"},{text:(0,U.__)("Tel"),value:"tel"},{text:(0,U.__)("SMS"),value:"sms"},{text:(0,U.__)("WhatsApp"),value:"whatsapp"}]}get actionDropdownItems(){return[{text:(0,U.__)("Control Slider"),value:"slider"},{text:(0,U.__)("Popup"),value:"popup"}]}get sliderActionsTypeDropdownItems(){return[{text:(0,U.__)("Next Slide"),value:"next"},{text:(0,U.__)("Previous Slide"),value:"previous"},{text:(0,U.__)("Go To Slide"),value:"goto"}]}get sliderActionSlidersDropdownItems(){return $(z.documentStore.document.tree.root,z.documentStore.document.documentMeta.id).map((e=>({text:e.name,value:e.uniqueClassName})))}get contactOptions(){return this.value.contact||{}}get actionOptions(){return this.value.action||{}}get sliderOptions(){return this.value.action?.sliderOptions||{}}get popupOptions(){return this.value.action?.popupOptions||{}}get lightboxOptions(){return this.value.lightbox||{}}get needsMessage(){return["email","whatsapp"].includes(this.contactOptions.type||"")}get needsPhoneNumber(){return["sms","tel","whatsapp"].includes(this.contactOptions.type||"")}get isDynamicImage(){return void 0!==this.lightboxOptions.imageDynamicMeta&&null!==this.lightboxOptions.imageDynamicMeta}get isDynamicVideo(){return void 0!==this.lightboxOptions.videoDynamicMeta&&null!==this.lightboxOptions.videoDynamicMeta}updateSlideindex(e){"number"===typeof e?this.update(e,"action.sliderOptions.slideIndex"):this.sliderOptions.slideIndex=void 0}get popupActionItems(){return[{text:(0,U.__)("Open"),value:"open"},{text:(0,U.__)("Close"),value:"close"},{text:(0,U.__)("Toggle"),value:"toggle"}]}update(e,t){const n=(0,u.Z)(this.value);P()(n,t,e),this.emit(n)}onDynamicImageSelected(e){const t=(0,u.Z)(this.value);P()(t,"lightbox.image",e.shortcode),P()(t,"lightbox.imageDynamicMeta",e),this.emit(t)}clearDynamicImage(){const e=(0,u.Z)(this.value);P()(e,"lightbox.image",void 0),P()(e,"lightbox.imageDynamicMeta",void 0),this.emit(e)}onDynamicVideoSelected(e){const t=(0,u.Z)(this.value);P()(t,"lightbox.video",e.shortcode),P()(t,"lightbox.videoDynamicMeta",e),this.emit(t)}clearDynamicVideo(){const e=(0,u.Z)(this.value);P()(e,"lightbox.video",void 0),P()(e,"lightbox.videoDynamicMeta",void 0),this.emit(e)}updateAttributeAtIndex(e,t,n){const o=(0,u.Z)(this.value.html?.attributes)??[];o[t][n]=e,this.update(o,"html.attributes")}emit(e){this.$emit("input",e)}};(0,a.gn)([(0,r.fI)()],W.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],W.prototype,"hideAdvanced",void 0),W=(0,a.gn)([(0,r.wA)({components:{Dropdown:F.Z,Icon:G.Z,IconButton:R.Z,ColorInput:H.Z,InlineRepeater:N.Z,DynamicInput:I.Z,VideoInput:M.Z,WPMediaInput:w.Z,ButtonBarInput:A.Z,ToggleInput:T.Z,TextInput:_.Z,DropdownInput:E.Z,NumberInput:D.Z,UnitInput:Z.Z,AlertBox:V.Z,DynamicDataChooser:y.Z}})],W);const j=W,X=j;var q=n(1001),K=(0,q.Z)(X,S,C,!1,null,null,null);const Y=K.exports;var J=n(36529),Q=n(16442);let ee=class extends i.ZP{constructor(){super(...arguments),this.settingsOpen=!1,this.dialogOpen=!1}get internalValue(){return"string"===typeof this.value?{type:"url",url:this.value}:(0,l.pipe)(m.decode(this.value),(0,c.fold)((e=>((0,Q.H)(e),v)),(e=>e)))}get expanded(){return this.settingsOpen}get isUrlDynamic(){return(0,f.xs)(this.internalValue.url)}get isFutureLayerMode(){return(0,b.o8)()}updateUrl(e){if(!e)return void this.emit(null);const t=(0,u.Z)(this.internalValue),n=e.trim().replace(/<(br\s+)?(br)?>/gi,"");this.emit({...t,url:n})}onDynamicDataSelected(e){const t=(0,u.Z)(this.internalValue);this.emit({...t,url:e.shortcode,dynamicMeta:e})}clearDynamicValue(){const e=(0,u.Z)(this.internalValue);this.emit({...e,url:"",dynamicMeta:void 0})}onLinkSelected(e){const t=(0,u.Z)(this.internalValue);this.emit({...t,type:"url",url:e,dynamicMeta:void 0})}toggleSettings(){this.settingsOpen=!this.settingsOpen}openDialog(){this.dialogOpen=!0}closeDialog(){this.dialogOpen=!1}emit(e){this.$emit("input",e)}};(0,a.gn)([(0,r.fI)()],ee.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default:()=>({hideAdvanced:!1})})],ee.prototype,"options",void 0),ee=(0,a.gn)([(0,r.wA)({components:{Icon:G.Z,LinkChooserDialog:J.Z,LinkInputSettings:Y,WPMediaInput:w.Z,TextInput:_.Z,DynamicInput:I.Z,DynamicDataChooser:y.Z}})],ee);const te=ee,ne=te;var oe=(0,q.Z)(ne,o,s,!1,null,null,null);const se=oe.exports},4802:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({staticClass:"media-chooser-layer",class:{"media-chooser-layer--hover":e.hasValue}},e.$listeners),[t("NiceButton",{staticClass:"media-chooser-layer-button",attrs:{size:"small"}},[e._v(" "+e._s(e.actionText)+" ")])],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(79333),c=n(36055);let u=class extends i.ZP{get hasValue(){return!!this.value}};(0,a.gn)([(0,r.fI)()],u.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default:()=>(0,c.__)("Choose")})],u.prototype,"actionText",void 0),u=(0,a.gn)([(0,r.wA)({components:{NiceButton:l.Z}})],u);const d=u,p=d;var h=n(1001),g=(0,h.Z)(p,o,s,!1,null,null,null);const m=g.exports},53049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"media-preview has-transparency-layer",class:{"media-preview--small":e.small}},[e.value?t("div",{staticClass:"media-preview-content"},[e.value.url.length>0&&("image"===e.value.type||"external_image"===e.value.type)?[t("img",{staticClass:"media-preview-image",class:{"media-preview-image--contain":e.imageTooSmall},attrs:{src:e.imageUrl,alt:"",draggable:"false"}})]:"video"===e.value.type?[t("video",{staticClass:"media-preview-video",attrs:{src:e.value.url,preload:"metadata"}}),t("Icon",{staticClass:"media-preview__icon",attrs:{icon:"VideoIcon",size:"18"}})]:e.value.filename?[t("strong",[e._v(e._s(e.__("File:")))]),e._v(" "+e._s(e.value.filename)+" ")]:e._e()],2):e._t("no-media")],2)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(665),c=n(85283),u=n(3735),d=n(48973);let p=class extends i.ZP{get image(){return(0,u.zG)(this.value,l.Wp.decode,(0,d.g_)((()=>null),(e=>e)))}get imageUrl(){return this.image?.sizes.large?.url||this.value?.url}get imageTooSmall(){return!!this.image&&this.image.sizes.full.height<=200}};(0,a.gn)([(0,r.fI)()],p.prototype,"value",void 0),(0,a.gn)([(0,r.fI)({default:!1})],p.prototype,"small",void 0),p=(0,a.gn)([(0,r.wA)({components:{Icon:c.Z}})],p);const h=p,g=h;var m=n(1001),v=(0,m.Z)(g,o,s,!1,null,null,null);const f=v.exports},81452:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var o=n(12570),s=n(18236),a=n(56275),i=n(99868),r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"media-dialog"},[t(o.Z,{attrs:{value:e.open,"overlay-opacity":"0.8","content-class":"breakdance-media-chooser-dialog"},on:{input:e.closeDialog}},[e.open?[t(s.Z,{attrs:{value:e.loading,opacity:"1",color:"var(--white)"}},[t(a.Z,{attrs:{indeterminate:"",size:"64",color:"var(--black)"}})],1),t(i.Z,{staticClass:"breakdance-media-chooser-dialog-inner",attrs:{tile:""}},[t("iframe",{attrs:{src:e.mediaChooserUrl,id:"wp-media-iframe"}})])]:e._e()],2)],1)},l=[],c=n(70655),u=n(20144),d=n(38085),p=n(85450),h=n(12176),g=n(36055);let m=class extends u.ZP{constructor(){super(...arguments),this.loading=!1}get mediaChooserUrl(){if(p.configStore.documentSpecificNeededUrls){let e=p.configStore.documentSpecificNeededUrls.mediaChooserUrl;if(this.multiple&&(e+="&multiple=true"),this.acceptedFileTypes.length){const t=this.acceptedFileTypes.join(",");e+=`&types=${t}`}if(this.selectedMedia){const t=Array.isArray(this.selectedMedia)?this.selectedMedia.map((e=>e.id)):[this.selectedMedia.id];e+=`&selected=${t.join(",")}`}return this.activeTab&&(e+=`&active_tab=${this.activeTab}`),e}return""}onDialogUpdated(){this.open?(this.bindListeners(),this.loading=!0):this.unbindListeners()}beforeDestroy(){this.unbindListeners()}bindListeners(){document.addEventListener("breakdanceMediaChooserReady",this.onDialogReady),document.addEventListener("breakdanceMediaChooserSelect",this.onMediaSelected),document.addEventListener("breakdanceMediaChooserClose",this.closeDialog)}unbindListeners(){document.addEventListener("breakdanceMediaChooserReady",this.onDialogReady),document.removeEventListener("breakdanceMediaChooserSelect",this.onMediaSelected),document.removeEventListener("breakdanceMediaChooserClose",this.closeDialog)}onDialogReady(){this.loading=!1}async onMediaSelected(e){if(e.detail){const t=await(0,h.bD)(e.detail);if(!t)return void console.error((0,g.__)("Could not load media data."));this.emit(t)}this.closeDialog()}emit(e){let t=e;Array.isArray(e)&&!this.multiple&&(t=e[0]),this.$emit("input",t)}closeDialog(){this.$emit("close")}};(0,c.gn)([(0,d.fI)({default:!1})],m.prototype,"open",void 0),(0,c.gn)([(0,d.fI)({default:!1})],m.prototype,"multiple",void 0),(0,c.gn)([(0,d.fI)({default(){return[]}})],m.prototype,"acceptedFileTypes",void 0),(0,c.gn)([(0,d.fI)()],m.prototype,"selectedMedia",void 0),(0,c.gn)([(0,d.fI)({default:"library"})],m.prototype,"activeTab",void 0),(0,c.gn)([(0,d.RL)("open")],m.prototype,"onDialogUpdated",null),m=(0,c.gn)([d.wA],m);const v=m,f=v;var y=n(1001),b=(0,y.Z)(f,r,l,!1,null,null,null);const _=b.exports},19499:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-media-input"},[e.multiple?t("div",{staticClass:"breakdance-media-gallery"},[t("draggable",e._b({staticClass:"breakdance-media-gallery-medias",class:{"is-dragging":e.drag},attrs:{value:e.internalValue},on:{input:e.updateValue,start:function(t){e.drag=!0},end:function(t){e.drag=!1}}},"draggable",e.dragOptions,!1),e._l(e.internalValue,(function(n,o){return t("li",{key:o,staticClass:"breakdance-media-gallery-media has-transparency-layer"},[t("MediaPreview",{attrs:{value:n,small:!0}}),t("button",{staticClass:"breakdance-media-gallery-media__delete",on:{click:function(t){return e.removeImageAtIndex(o)}}},[t("Icon",{attrs:{icon:"TrashIcon",size:"12"}})],1)],1)})),0),t("NiceButton",{staticClass:"mt-4",on:{click:e.openDialog}},[e._v(e._s(e.__("Add Media")))])],1):t("div",{staticClass:"breakdance-media-input-single"},[t("MediaPreview",{attrs:{value:e.internalValue}}),t("MediaChooserLayer",{attrs:{value:e.internalValue},on:{click:e.openDialog}})],1),t("MediaUploadDialog",{attrs:{open:e.dialogOpen,multiple:e.multiple,"selected-media":e.value,"accepted-file-types":e.acceptedFileTypes},on:{input:e.onMediaSelected,close:e.closeDialog}})],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(34680),c=n.n(l),u=n(665),d=n(23128),p=n(30902),h=n(45974),g=n(32521),m=n(81452),v=n(53049),f=n(85283),y=n(79333),b=n(4802);let _=class extends i.ZP{constructor(){super(...arguments),this.drag=!1,this.dialogOpen=!1,this.dragOptions={animation:200,ghostClass:"is-ghost-image",forceFallback:!0}}mounted(){document.addEventListener("open-media-dialog",this.openDialog)}beforeDestroy(){document.removeEventListener("open-media-dialog",this.openDialog)}get internalValue(){if(this.multiple){const e=Array.isArray(this.value)?this.value:[this.value],t=g.G0([g.IX(u.V0),g.S1]);return(0,p.pipe)(e,t.decode,(0,h.fold)((()=>[]),(e=>e)))}const e=Array.isArray(this.value)&&this.value.length?this.value[0]:this.value;return(0,p.pipe)(e,u.V0.decode,(0,h.fold)((e=>{console.debug("Media decoder failed",e)}),(e=>e)))}get multiple(){return!!this.mediaOptions?.multiple}get acceptedFileTypes(){return this.mediaOptions?.acceptedFileTypes}openDialog(){this.dialogOpen=!0}closeDialog(){this.dialogOpen=!1}async onMediaSelected(e){const t=(0,d.Z)(this.value);Array.isArray(t)&&Array.isArray(e)?(t.push(...e),this.updateValue(t)):this.updateValue(e)}removeImageAtIndex(e){const t=(0,d.Z)(this.value);Array.isArray(t)&&(t.splice(e,1),this.$emit("input",t))}updateValue(e){this.$emit("input",e)}clear(){this.$emit("input",void 0)}};(0,a.gn)([(0,r.fI)()],_.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],_.prototype,"mediaOptions",void 0),_=(0,a.gn)([(0,r.wA)({components:{MediaChooserLayer:b.Z,NiceButton:y.Z,Icon:f.Z,draggable:c(),MediaPreview:v.Z,MediaUploadDialog:m.Z}})],_);const I=_,w=I;var x=n(1001),S=(0,x.Z)(w,o,s,!1,null,null,null);const C=S.exports},61332:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-media-size-input"},[t("DropdownInput",{attrs:{items:e.disabled?[]:e.filteredItems,value:e.value,placeholder:e.__("Full"),disabled:e.disabled,"dropdown-options":{noDataAvailableMessage:e.noDataAvailableMessage}},on:{input:e.emit},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("span",{staticClass:"breakdance-media-size-input-size"},[t("span",[e._v(e._s(n.text))]),n.subLabel?t("span",{staticClass:"breakdance-media-size-input__sublabel"},[e._v(" "+e._s(n.subLabel)+" ")]):e._e()])]}}])}),e.image&&"breakdance_custom"===e.value?t("MediaCropper",{attrs:{image:e.image,value:e.value},on:{input:e.setCustomSize}}):e._e()],1)},s=[],a=n(36968),i=n.n(a),r=n(70655),l=n(20144),c=n(38085),u=n(85450),d=n(665),p=n(23128),h=n(30902),g=n(45974),m=n(84336),v=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("form",{staticClass:"input-group",on:{submit:function(t){return t.preventDefault(),e.apply.apply(null,arguments)}}},[t("div",{staticClass:"input-group-control"},[t("NumberInput",{attrs:{arrows:!1},model:{value:e.width,callback:function(t){e.width=t},expression:"width"}}),t("span",{staticClass:"input-group-control__label"},[e._v(e._s(e.__("Width")))])],1),t("span",{staticClass:"input-group-divider"},[e._v("x")]),t("div",{staticClass:"input-group-control"},[t("NumberInput",{attrs:{arrows:!1},model:{value:e.height,callback:function(t){e.height=t},expression:"height"}}),t("span",{staticClass:"input-group-control__label"},[e._v(e._s(e.__("Height")))])],1),t("NiceButton",{staticClass:"input-group-button"},[e._v(e._s(e.__("Apply")))])],1)},f=[],y=n(27361),b=n.n(y),_=n(23267),I=n(79333),w=n(31044),x=n(12176);let S=class extends l.ZP{constructor(){super(...arguments),this.width=null,this.height=null}get customSize(){return b()(this.image,`sizes.${x.JE}`)}onSizeChange(){const e=this.value===x.JE;e&&(this.width=this.customSize?.width,this.height=this.customSize?.height)}setLoading(e){w.kD.activeElementId&&w.kD.setElementUpdatingState({isUpdating:e,elementId:w.kD.activeElementId})}async crop(){if(!this.image)return;this.setLoading(!0);const e=await(0,x.xJ)(this.image,this.width,this.height);return this.setLoading(!1),e}async apply(){const e=await this.crop();this.$emit("input",e)}};(0,r.gn)([(0,c.fI)()],S.prototype,"value",void 0),(0,r.gn)([(0,c.fI)()],S.prototype,"image",void 0),(0,r.gn)([(0,c.RL)("value",{immediate:!0})],S.prototype,"onSizeChange",null),S=(0,r.gn)([(0,c.wA)({components:{NiceButton:I.Z,NumberInput:_.Z,DropdownInput:m.Z}})],S);const C=S,k=C;var P=n(1001),Z=(0,P.Z)(k,v,f,!1,null,"25ee79ee",null);const D=Z.exports;var E=n(32521),T=n(43195),A=n(36055);let M=class extends l.ZP{constructor(){super(...arguments),this.sizes={}}onSizeChange(){this.setSrcsetBySize(this.value||"full")}async onImageChanged(e,t){this.image?e?.id!==t?.id&&"image"===e?.type&&(this.sizes=await(0,x.M_)(this.image.id)):this.sizes={}}get noDataAvailableMessage(){return this.image&&"external_image"===this.image.type?(0,A.__)("Not available for external images"):(0,A.__)("No image chosen")}get availableSizes(){return u.configStore.availableMediaSizes.map((e=>({text:e.label,subLabel:e.subLabel,value:e.slug})))}get filteredItems(){const e=this.availableSizes.filter((e=>!this.imageSizes.length||this.imageSizes.includes(e.value)));return this.isCropAllowed&&e.push({text:(0,A.__)("Custom..."),value:x.JE,subLabel:void 0}),e}get imageSizes(){return Object.keys(this.sizes||{})}get disabled(){return!(0,T.xs)(this._imageControlValue)&&"external_image"===this.image?.type}get isCropAllowed(){const e=(0,T.xs)(this._imageControlValue);return!(!this.rawImage||e)||!!this.imagePath&&!e}get _imageControlValue(){return this.rawImage?this.rawImage:this.imagePath?this.context?.getControlValue(this.imagePathWithBreakpoint)||this.context?.getControlValue(this.imagePath):null}get image(){const e=this._imageControlValue,t=E.G0([d.Wp,d.nV]).decode;return(0,h.pipe)(e,t,(0,g.fold)((()=>null),(e=>e)))}get imagePath(){if(!this.options?.imagePropertyPath)return;const e=this.path.match(/\[(.*?)\]/);if(e){const t=e[1];return this.options.imagePropertyPath.replace("[]",`[${t}]`)}return this.options.imagePropertyPath}get imagePathWithBreakpoint(){return`${this.imagePath}.${u.uiStore.currentBreakpoint.id}`}setCustomSize(e){e&&this.updateImage(`sizes.${x.JE}`,e)}setImageAttribute(e,t){const n=`attributes.${e}`;this.updateImage(n,t)}updateImage(e,t){const n=(0,p.Z)(this.image);if(n)if(i()(n,e,t),this.imagePath){const e=this.context?.getControlValue(this.imagePathWithBreakpoint),t=e?this.imagePathWithBreakpoint:this.imagePath;this.context?.setControlValue(t,n,this.control)}else this.rawImage&&this.$emit("update-image",n)}async setSrcsetBySize(e="full"){if(!this.image)return;if(this.options?.disableSrcset)return;if(!this.sizes[e]||e===x.JE)return this.setImageAttribute("srcset",""),void this.setImageAttribute("sizes","");const{srcset:t,sizes:n}=this.sizes[e];this.setImageAttribute("srcset",t),this.setImageAttribute("sizes",n)}emit(e){this.$emit("input",e||"")}};(0,r.gn)([(0,c.tB)({from:"context",default:{}})],M.prototype,"context",void 0),(0,r.gn)([(0,c.fI)()],M.prototype,"value",void 0),(0,r.gn)([(0,c.fI)()],M.prototype,"rawImage",void 0),(0,r.gn)([(0,c.fI)()],M.prototype,"control",void 0),(0,r.gn)([(0,c.fI)()],M.prototype,"options",void 0),(0,r.gn)([(0,c.fI)()],M.prototype,"path",void 0),(0,r.gn)([(0,c.RL)("value")],M.prototype,"onSizeChange",null),(0,r.gn)([(0,c.RL)("image",{immediate:!0})],M.prototype,"onImageChanged",null),M=(0,r.gn)([(0,c.wA)({components:{MediaCropper:D,DropdownInput:m.Z}})],M);const V=M,B=V;var O=(0,P.Z)(B,o,s,!1,null,null,null);const L=O.exports},83312:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-multiselect-input"},[t(e.componentType,{tag:"component",staticClass:"breakdance-dense-select breakdance-dense-select--multiple breakdance-white-gray-outlined-input",attrs:{placeholder:e.placeholder,items:e.internalItems,dense:"",solo:"",flat:"",filled:"",multiple:"","hide-details":"",clearable:e.clearable,loading:e.loading||e.fetchingOptionData,value:e.value,"search-input":e.search,"return-object":e.emitObject},on:{input:e.edit,"update:search-input":function(t){return e.$emit("update:search",t)}},scopedSlots:e._u([{key:"append",fn:function(){return[t("Icon",{attrs:{icon:"ChevronDownIcon",size:10}})]},proxy:!0},{key:"selection",fn:function({index:n}){return[0===n?t("span",{staticClass:"grey--text caption mr-1"},[e._v(" "+e._s(e.value.length)+" selected ")]):e._e()]}}])}),t("div",{staticClass:"breakdance-multiselect-chips"},e._l(e.chips,(function(n,o){return t("div",{staticClass:"breakdance-multiselect-chip"},[t("span",[e._v(e._s(n.text||n))]),t("Icon",{attrs:{icon:"CloseIcon",size:"16"},on:{click:function(t){return e.deleteItem(o)}}})],1)})),0)],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(85283),c=n(23128),u=n(25135),d=n(1387),p=n(197),h=n(51168),g=n(86687);let m=class extends i.ZP{constructor(){super(...arguments),this.fetchingOptionData=!1,this.retrievedItems=[]}get componentType(){return this.searchable?"v-autocomplete":this.options?.makeCombobox?"v-combobox":"v-select"}get internalItems(){return this.options?.populate?.fetchDataAction&&this.retrievedItems.length?this.retrievedItems:this.items}get internalValue(){return this.value||[]}edit(e){this.$emit("input",e)}get chips(){const e=this.internalItems?.filter((e=>"string"!==typeof e&&"text"in e));return this.internalValue.map((t=>{const n=e?.find((e=>e.value===t));return n||t}))}deleteItem(e){const t=(0,c.Z)(this.internalValue)||[];t.splice(e,1),this.$emit("input",t)}created(){this.options?.populate?.fetchDataAction&&0===this.retrievedItems.length&&this.retrieveItems(),g.w.register.onPropertyChange(this.retrieveItemsAction)}beforeDestroy(){g.w.unregister("onPropertyChange",this.retrieveItemsAction)}retrieveItemsAction({path:e}){if(this.fetchingOptionData||!this.context)return;const t=this.options?.populate?.refetchPaths;t&&t.includes(e)&&this.retrieveItems()}async retrieveItems(){const e=this.options?.populate?.fetchDataAction;if(!e)return;let t={};this.context&&this.options?.populate?.fetchContextPath&&(t=this.context.getControlValue(this.options?.populate.fetchContextPath)),this.fetchingOptionData=!0,this.retrievedItems=await(0,h.sz)(e,{context:t}),this.fetchingOptionData=!1}};(0,a.gn)([(0,r.fI)()],m.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],m.prototype,"placeholder",void 0),(0,a.gn)([(0,r.fI)()],m.prototype,"search",void 0),(0,a.gn)([(0,r.fI)()],m.prototype,"loading",void 0),(0,a.gn)([(0,r.fI)()],m.prototype,"items",void 0),(0,a.gn)([(0,r.fI)({default:!1})],m.prototype,"clearable",void 0),(0,a.gn)([(0,r.fI)({default:!1})],m.prototype,"searchable",void 0),(0,a.gn)([(0,r.fI)({default:!1})],m.prototype,"emitObject",void 0),(0,a.gn)([(0,r.fI)()],m.prototype,"options",void 0),(0,a.gn)([(0,r.tB)({from:"context",default:null})],m.prototype,"context",void 0),m=(0,a.gn)([(0,r.wA)({components:{Icon:l.Z,VSelect:u.Z,VAutocomplete:d.Z,VCombobox:p.Z}})],m);const v=m,f=v;var y=n(1001),b=(0,y.Z)(f,o,s,!1,null,null,null);const _=b.exports},23267:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-number-input",class:{"breakdance-number-input--with-arrows":e.arrows}},[e.rangeEnabled?t("Slider",e._b({attrs:{value:e.value},on:{input:e.edit}},"Slider",e.rangeOptions,!1)):e._e(),t("input",e._g({staticClass:"breakdance-simple-number-input breakdance-white-gray-outlined-input breakdance-hide-number-arrows",attrs:{type:"number",step:e.step,placeholder:e.placeholder,disabled:e.disabled},domProps:{value:e.value}},{...e.$listeners,input:t=>e.edit(t.target.value)})),e.arrows?t("span",{staticClass:"breakdance-number-input__arrows"},[t("Icon",{staticClass:"breakdance-number-input__arrow breakdance-number-input__arrow--up",attrs:{icon:"ChevronDownIcon",rotate:"180",size:"10"},on:{click:e.increment}}),t("Icon",{staticClass:"breakdance-number-input__arrow breakdance-number-input__arrow--down",attrs:{icon:"ChevronDownIcon",size:"10"},on:{click:e.decrement}})],1):e._e()],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(41571),c=n(74799),u=n(85283),d=n(38020);let p=class extends i.ZP{get step(){const e=this.rangeOptions?.step;return"string"===typeof e?parseFloat(e):e||1}get rangeEnabled(){return"number"===typeof this.rangeOptions?.min&&"number"===typeof this.rangeOptions?.max&&!0!==this.rangeOptions?.disableSlider}increment(){const e=this.value||0;this.edit(e+this.step)}decrement(){const e=this.value||0;this.edit(e-this.step)}edit(e){const t=(0,d.v)(e);if(""===e)return this.$emit("input",null),void this.$emit("focus");isNaN(t)||(this.$emit("input",t),this.$emit("focus"))}};(0,a.gn)([(0,r.fI)()],p.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],p.prototype,"placeholder",void 0),(0,a.gn)([(0,r.fI)({default:null})],p.prototype,"rangeOptions",void 0),(0,a.gn)([(0,r.fI)({default:!0})],p.prototype,"arrows",void 0),(0,a.gn)([(0,r.fI)()],p.prototype,"disabled",void 0),p=(0,a.gn)([(0,r.wA)({components:{Icon:u.Z,TextInput:l.Z,Slider:c.Z}})],p);const h=p,g=h;var m=n(1001),v=(0,m.Z)(g,o,s,!1,null,null,null);const f=v.exports},62485:(e,t,n)=>{"use strict";n.d(t,{Z:()=>K});var o=n(37179),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-repeater",class:{"breakdance-repeater--gallery":e.options.galleryMode,"breakdance-repeater--popup":e.options.popupMode,"breakdance-repeater--filled":e.value?.length>0}},[t("draggable",e._b({staticClass:"breakdance-repeater-draggable",attrs:{value:e.value},on:{input:e.updateRepeater,change:e.handleChange}},"draggable",e.dragOptions,!1),[e._l(e.value,(function(n,o){return t("div",{key:o,staticClass:"breakdance-repeater-item",class:{"breakdance-repeater-item--expanded":e.expandedIndex===o},attrs:{"data-test-id":"repeater-item"}},[e.options.popupMode?t("RepeaterItemPopup",{attrs:{icon:e.options?.itemIcon,color:e.options?.itemColorPath?n[e.options?.itemColorPath]:null,expanded:e.expandedIndex===o,disabled:n?.disabled,"no-duplicate":e.options?.noDuplicate,"no-disable":e.options?.noDisable,"default-title":e.defaultTitle},on:{"duplicate-item":function(t){return e.duplicateItem(o)},"delete-item":function(t){return e.maybeDeleteItem(o)},"disable-item":function(t){return e.toggleDisabledItem(o)},"title:click":function(t){return e.toggleExpandedItem(o)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("RepeaterItemTitleText",{attrs:{titleTemplate:e.titleTemplate,defaultTitle:e.defaultTitle,value:n,controls:e.control.children}})]},proxy:!0}],null,!0)},[e._t("default",null,{index:o,value:n})],2):e.options.galleryMode&&e.options.galleryMediaPath?t("RepeaterItemMedia",{attrs:{media:n[e.options.galleryMediaPath],"no-duplicate":e.noDuplicate},on:{"duplicate-item":function(t){return e.duplicateItem(o)},"delete-item":function(t){return e.deleteItem(o)}}},[e._t("default",null,{index:o,value:n})],2):t("RepeaterItemAccordion",{attrs:{"no-duplicate":e.noDuplicate,expanded:e.expandedIndex===o},on:{"title:click":function(t){return e.toggleExpandedItem(o)},"handle:mousedown":e.forceCollapse,"duplicate-item":function(t){return e.duplicateItem(o)},"delete-item":function(t){return e.maybeDeleteItem(o)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("RepeaterItemTitleText",{attrs:{titleTemplate:e.titleTemplate,defaultTitle:e.defaultTitle,value:n,controls:e.control.children}})]},proxy:!0}],null,!0)},[e._t("default",null,{index:o,value:n})],2)],1)})),!e.value?.length&&e.options.noDataMessage?t("div",{staticClass:"breakdance-repeater__no-data-message"},[e._v(" "+e._s(e.options.noDataMessage)+" ")]):e._e()],2),e.options.popupMode&&!e.options.disableFloatingAddButton?t("IconButton",{staticClass:"breakdance-repeater-add-icon-button",attrs:{icon:"PlusIcon",size:"12","x-small":!0,"data-test-id":"repeater-add-item"},on:{click:e.add}}):t("NiceButton",{staticClass:"breakdance-repeater-add-button",attrs:{"data-test-id":"repeater-add-item"},on:{click:e.add}},[e._v(" "+e._s(e.buttonName)+" ")]),t("MediaUploadDialog",{attrs:{open:e.dialogOpen,multiple:!0},on:{input:e.onMediaSelected,close:function(t){e.dialogOpen=!1}}}),t("Dialog",{attrs:{persistent:"",type:"error"},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.__("Delete?"))+" ")]},proxy:!0},{key:"text",fn:function(){return[e._v(e._s(e.deleteText))]},proxy:!0},{key:"actions",fn:function(){return[t(o.Z,{attrs:{text:""},on:{click:e.cancelDeletion}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(o.Z,{attrs:{color:"red",medium:"",dark:""},on:{click:function(t){return e.deleteItem(e.indexToDelete)}}},[e._v(" "+e._s(e.__("Delete"))+" ")])]},proxy:!0}]),model:{value:e.deleteDialogOpen,callback:function(t){e.deleteDialogOpen=t},expression:"deleteDialogOpen"}})],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(34680),u=n.n(c),d=n(89754),p=n(23128),h=n(20951),g=n(73385),m=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"repeater-item-media breakdance-repeater-item-handler",class:{"repeater-item-media--no-border":e.media}},[t("media-preview",{attrs:{value:e.media,small:!0},scopedSlots:e._u([{key:"no-media",fn:function(){return[t("Icon",{attrs:{icon:"ImageAndVideIcon",size:"22"}})]},proxy:!0}])}),t("Dropdown",{attrs:{"max-width":"260","max-height":"400","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",{staticClass:"repeater-item-media-actions breakdance-repeater-item--ignore-drag"},[t("Icon",e._g({staticClass:"repeater-item-media-action repeater-item-media-action--edit",attrs:{icon:"PenIcon",size:"18"}},n)),t("Icon",{staticClass:"repeater-item-media-action repeater-item-media-action--clone",attrs:{icon:"DuplicateIcon",size:"20"},on:{click:function(t){return e.$emit("duplicate-item")}}}),t("Icon",{staticClass:"repeater-item-media-action repeater-item-media-action--delete",attrs:{icon:"TrashIcon",size:"18"},on:{click:function(t){return e.$emit("delete-item")}}})],1)]}}])},[t(g.Z,{staticClass:"repeater-item-media-controls"},[e._t("default")],2)],1)],1)},v=[],f=n(15133),y=n(53049),b=n(85283);let _=class extends r.ZP{};(0,i.gn)([(0,l.fI)()],_.prototype,"media",void 0),_=(0,i.gn)([(0,l.wA)({components:{Icon:b.Z,MediaPreview:y.Z,Dropdown:f.Z}})],_);const I=_,w=I;var x=n(1001),S=(0,x.Z)(w,m,v,!1,null,null,null);const C=S.exports;var k=n(23906),P=n(11656),Z=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"repeater-item-popup breakdance-repeater-item-handler",class:{"repeater-item-popup--disabled":e.disabled}},[t("Dropdown",{attrs:{"max-width":e.maxWidth,"max-height":"500","offset-y":"","nudge-left":-2,"nudge-top":-5,"close-on-content-click":!1,value:e.expanded,title:e.defaultTitle,transition:!1},on:{input:function(t){return e.$emit("title:click",t)}},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({staticClass:"repeater-item-popup__item",class:{"repeater-item-popup__item--expanded":e.expanded,"repeater-item-popup__item--with-icon":e.color||e.icon}},n),[t("div",{staticClass:"repeater-item-popup__item-drag breakdance-repeater-item-handler",on:{mousedown:function(t){return e.$emit("drag:mousedown")},click:function(e){e.stopPropagation()}}},[t("Icon",{attrs:{size:"8",icon:"GripLinesIcon"}})],1),e.color||e.icon?t("span",{staticClass:"repeater-item-popup__item-icon breakdance-repeater-item--ignore-drag"},[e.color?t("ColorSwatch",{attrs:{"color-code":e.color}}):e.icon?t("Icon",{attrs:{icon:e.icon,size:"12"}}):e._e()],1):e._e(),t("div",{staticClass:"repeater-item-popup__item-title breakdance-repeater-item--ignore-drag truncate"},[e._t("title")],2),t("div",{staticClass:"repeater-item-popup__actions breakdance-repeater-item--ignore-drag"},[e.noDisable?e._e():t("Icon",{attrs:{icon:e.disabled?"EyeSlashSolidIcon":"EyeSolidIcon",size:"12"},on:{click:function(t){return t.stopPropagation(),e.$emit("disable-item")}}}),e.noDuplicate?e._e():t("Icon",{attrs:{icon:"DuplicateIcon",size:"11"},on:{click:function(t){return t.stopPropagation(),e.$emit("duplicate-item")}}}),t("Icon",{attrs:{icon:"TrashIcon",size:"11"},on:{click:function(t){return t.stopPropagation(),e.$emit("delete-item")}}})],1)])]}}],null,!0)},[t(g.Z,{staticClass:"popout-section-content"},[e._t("default")],2)],1)],1)},D=[],E=n(9793),T=n(85450),A=n(95690);let M=class extends r.ZP{get maxWidth(){return"oxygen"===T.configStore.builderMode?A.eF:A.R3}};(0,i.gn)([(0,l.fI)({default:!1})],M.prototype,"expanded",void 0),(0,i.gn)([(0,l.fI)({default:!1})],M.prototype,"noDuplicate",void 0),(0,i.gn)([(0,l.fI)()],M.prototype,"noDisable",void 0),(0,i.gn)([(0,l.fI)({default:!1})],M.prototype,"disabled",void 0),(0,i.gn)([(0,l.fI)()],M.prototype,"icon",void 0),(0,i.gn)([(0,l.fI)()],M.prototype,"color",void 0),(0,i.gn)([(0,l.fI)()],M.prototype,"defaultTitle",void 0),M=(0,i.gn)([(0,l.wA)({components:{ColorSwatch:E.Z,Icon:b.Z,MediaPreview:y.Z,Dropdown:f.Z}})],M);const V=M,B=V;var O=(0,x.Z)(B,Z,D,!1,null,null,null);const L=O.exports;var $=n(81452),z=n(39664),N=n(89137),H=n(79333),R=n(22608),G=n(13009),F=n(31044),U=n(36055);let W=class extends r.ZP{constructor(){super(...arguments),this.dragOptions={animation:200,handle:".breakdance-repeater-item-handler",filter:".breakdance-repeater-item--ignore-drag",ghostClass:"breakdance-repeater-item--ghost",forceFallback:!0},this.expandedIndex=-1,this.indexToDelete=-1,this.dialogOpen=!1,this.deleteDialogOpen=!1}onExpandedIndexChange(){this.options.popupMode&&F.kD.setPanelState({...F.kD.panelState,oxyPanelIsMasked:-1!==this.expandedIndex})}get options(){return this.control?.options.repeaterOptions||{}}get titleTemplate(){return this.options?.titleTemplate}get defaultTitle(){return this.options?.defaultTitle||(0,U.__)("Item")}get buttonName(){return this.options?.buttonName||(0,U.__)("Add Item")}get defaultNewValue(){return this.options?.defaultNewValue||{}}get duplicateNewValue(){return this.options?.duplicateNewValue||{}}get deleteText(){return this.options?.deleteText||(0,U.__)("Are you sure you want to delete this?")}get noDuplicate(){return this.options?.noDuplicate}processDefaultValue(e){return(0,G.q)(e,this.value?.length||0)}toggleExpandedItem(e){this.expandedIndex===e?this.expandedIndex=-1:this.expandedIndex=e}forceCollapse(){this.expandedIndex=-1}emit(e){this.$emit("input",this.createSnapshotWhenItemsListChanges?(0,d.O$)(e,{disableTransactionBundling:!0}):e)}updateRepeater(e){this.emit((0,p.Z)(e))}handleChange(e){"moved"in e&&-1!==this.expandedIndex&&(this.expandedIndex=e.moved.newIndex)}addInBulk(){this.dialogOpen=!0}addItem(){const e=(0,p.Z)(this.value)||[];this.options.forceDontProcessDefaultNewValueWhenAddingItemsHack?e.push(this.defaultNewValue):e.push(this.processDefaultValue(this.defaultNewValue)),this.options.noExpand||(this.expandedIndex=e.length-1),this.emit(e)}onMediaSelected(e){const t=(0,p.Z)(this.value)||[],n=this.options?.galleryMediaPath;if(!n)return void z.Z.log.message("Could not bulk import media files. The Gallery Media Path is not set. Please check your Element settings.");const o=e.map((e=>({...this.processDefaultValue(this.defaultNewValue),[n]:e})));t.push(...o),this.emit(t)}add(){this.options?.galleryMode?this.addInBulk():this.addItem()}maybeDeleteItem(e){this.indexToDelete=e,this.options.deleteConfirm?this.deleteDialogOpen=!0:this.deleteItem(e)}cancelDeletion(){this.indexToDelete=-1,this.deleteDialogOpen=!1}deleteItem(e){const t=(0,p.Z)(this.value)||[];t.splice(e,1),this.indexToDelete=-1,this.expandedIndex=-1,this.deleteDialogOpen=!1,this.emit(t)}duplicateItem(e){const t=(0,p.Z)(this.value)||[],n=(0,p.Z)(t[e]),o={...n,...this.processDefaultValue(this.duplicateNewValue)},s=e+1;t.splice(s,0,o),this.emit(t)}toggleDisabledItem(e){const t=(0,p.Z)(this.value)||[],n=t[e];n.disabled=!n.disabled,this.emit(t)}beforeDestroy(){F.kD.setPanelState({...F.kD.panelState,oxyPanelIsMasked:!1})}};(0,i.gn)([(0,l.fI)()],W.prototype,"control",void 0),(0,i.gn)([(0,l.fI)()],W.prototype,"path",void 0),(0,i.gn)([(0,l.fI)({default:!1})],W.prototype,"createSnapshotWhenItemsListChanges",void 0),(0,i.gn)([(0,l.fI)({default(){return[]}})],W.prototype,"value",void 0),(0,i.gn)([(0,l.RL)("expandedIndex")],W.prototype,"onExpandedIndexChange",null),W=(0,i.gn)([(0,l.wA)({components:{IconButton:R.Z,NiceButton:H.Z,draggable:u(),ControlsTree:h["default"],RepeaterItemPopup:L,RepeaterItemMedia:C,RepeaterItemAccordion:P.Z,RepeaterItemTitleText:k.Z,MediaUploadDialog:$.Z,Dialog:N.Z}})],W);const j=W,X=j;var q=(0,x.Z)(X,s,a,!1,null,null,null);const K=q.exports},11656:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:{"repeater-item-accordion":!0,"repeater-item-accordion-drag-disabled":!e.canDrag}},[t("div",{staticClass:"repeater-item-accordion-title",on:{click:function(t){return t.stopPropagation(),e.$emit("title:click")}}},[e.canDrag?t("div",{staticClass:"breakdance-repeater-item-drag-handle breakdance-repeater-item-handler",on:{mousedown:function(t){return e.$emit("drag:mousedown")}}},[t("Icon",{attrs:{size:"12",icon:"GripVerticalIcon"}})],1):e._e(),e._t("title"),t("div",{staticClass:"breakdance-repeater-item-actions"},[e.canEdit?t("div",{staticClass:"breakdance-repeater-item-action",on:{click:function(t){return t.stopPropagation(),e.$emit("edit-item")}}},[t("Icon",{attrs:{size:"16",icon:"EditIcon"}})],1):e._e(),e.noDuplicate?e._e():t("div",{staticClass:"breakdance-repeater-item-action",on:{click:function(t){return t.stopPropagation(),e.$emit("duplicate-item")}}},[t("Icon",{attrs:{size:"breakdance"===e.builderMode?16:12,icon:"breakdance"===e.builderMode?"DuplicateIcon":"DuplicateSolidIcon"}})],1),t("div",{staticClass:"breakdance-repeater-item-action",on:{click:function(t){return t.stopPropagation(),e.$emit("delete-item")}}},[t("Icon",{attrs:{icon:"breakdance"===e.builderMode?"TrashIcon":"TrashSolidIcon",size:"breakdance"===e.builderMode?16:12}})],1)])],2),e.expanded?t("div",{staticClass:"repeater-item-accordion-controls"},[e._t("default")],2):e._e()])},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(23906),c=n(85283),u=n(85450);let d=class extends i.ZP{get builderMode(){return u.configStore.builderMode}};(0,a.gn)([(0,r.fI)({default:!0})],d.prototype,"canDrag",void 0),(0,a.gn)([(0,r.fI)({default:!1})],d.prototype,"canEdit",void 0),(0,a.gn)([(0,r.fI)({default:!1})],d.prototype,"noDuplicate",void 0),(0,a.gn)([(0,r.fI)({default:!1})],d.prototype,"expanded",void 0),d=(0,a.gn)([(0,r.wA)({components:{Icon:c.Z,RepeaterItemTitleText:l.Z}})],d);const p=d,h=p;var g=n(1001),m=(0,g.Z)(h,o,s,!1,null,null,null);const v=m.exports},23906:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("span",{staticClass:"breakdance-repeater-item-title-text"},[e._v(" "+e._s(e.title)+" ")])},s=[],a=n(41106),i=n.n(a),r=n(15835),l=n.n(r),c=n(70655),u=n(20144),d=n(38085),p=n(90889),h=n(23128);l().interpolate=/{([\s\S]+?)}/g;let g=class extends u.ZP{get title(){const e=this.parsedTitle.replace(/\s+/g,"");return e?this.parsedTitle:this.defaultTitle}get titleTemplateStr(){const e="function"===typeof this.titleTemplate?this.titleTemplate(this.value):this.titleTemplate;return e.replace(/{var-[^{}]*}/g,(e=>e.replace(/-/g,"_")))}get compiledTemplate(){return i()(this.titleTemplateStr)}get parsedTitle(){const e={...this.emptyVariables,...this.filledVariables};return this.compiledTemplate(e)}get variablesInTitle(){const e=this.titleTemplateStr.matchAll(/{(.*?)}/g);return Array.from(e,(e=>e[1]))}get emptyVariables(){return this.variablesInTitle.reduce(((e,t)=>({...e,[t]:null})),{})}get filledVariables(){const e=(0,h.Z)(this.value)||{},t=this.labelsFromDropdownItems,n=(0,p.jN)(),o=(0,p.ng)();return o.forEach((t=>{const o=`var_${t.id.replaceAll("-","_")}`,s=n.find((e=>e.id===t.id));e[o]=(0,p.Db)(t,s)})),t?Object.keys(e).reduce(((n,o)=>(n[o]=t[o]||e[o],n)),{}):e}get labelsFromDropdownItems(){const e={};return this.value?(Object.keys(this.value).forEach((t=>{const n=this.controls.find((e=>e.slug===t));if(n){const o=n.options.items?.find((e=>e.value===this.value[t]));o?.text&&(e[t]=o?.text)}})),e):e}};(0,c.gn)([(0,d.fI)({default:""})],g.prototype,"titleTemplate",void 0),(0,c.gn)([(0,d.fI)({default:"Item"})],g.prototype,"defaultTitle",void 0),(0,c.gn)([(0,d.fI)()],g.prototype,"value",void 0),(0,c.gn)([(0,d.fI)({default:()=>[]})],g.prototype,"controls",void 0),g=(0,c.gn)([d.wA],g);const m=g,v=m;var f=n(1001),y=(0,f.Z)(v,o,s,!1,null,null,null);const b=y.exports},38562:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"parent",staticClass:"search-input",class:{"search-input--wide":e.wide,"search-input--small":e.small}},[t("TextInput",{attrs:{placeholder:e.placeholder,value:e.value,autofocus:e.autofocus},on:{input:e.edit,keydown:function(t){return e.$emit("keydown",t)}}}),"breakdance"===e.builderMode||"oxygen"===e.builderMode&&!e.value?t("Icon",{staticClass:"search-input__icon",attrs:{icon:"SearchIcon",size:"oxygen"===e.builderMode?10:14}}):e._e(),e.value?t("Icon",{staticClass:"search-input__clear",attrs:{icon:"CloseIcon",size:"14"},on:{click:e.clear}}):e._e()],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(41571),c=n(85283),u=n(85450);let d=class extends i.ZP{edit(e){this.$emit("input",e)}clear(){this.$emit("input","")}get builderMode(){return u.configStore.builderMode}};(0,a.gn)([(0,r.fI)()],d.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],d.prototype,"placeholder",void 0),(0,a.gn)([(0,r.fI)()],d.prototype,"autofocus",void 0),(0,a.gn)([(0,r.fI)()],d.prototype,"wide",void 0),(0,a.gn)([(0,r.fI)()],d.prototype,"small",void 0),d=(0,a.gn)([(0,r.wA)({components:{Icon:c.Z,TextInput:l.Z}})],d);const p=d,h=p;var g=n(1001),m=(0,g.Z)(h,o,s,!1,null,null,null);const v=m.exports},41571:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var o=n(56275),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-text-input"},[e.label?t("label",{staticClass:"breakdance-text-input__label"},[e._v(e._s(e.label))]):e._e(),t("div",{staticClass:"breakdance-text-input-wrapper"},[e.multiline?t("textarea",e._g({ref:"input",class:e.cssClasses,attrs:{placeholder:e.placeholder,autofocus:e.autofocus,spellcheck:"false",disabled:e.disabled},domProps:{value:e.displayValueWithBrsAsNewLines}},{...e.$listeners,input:t=>e.edit(t.target.value)})):t("input",e._g({ref:"input",class:e.cssClasses,attrs:{type:"text",placeholder:e.placeholder,autofocus:e.autofocus,spellcheck:"false",disabled:e.disabled},domProps:{value:e.displayValueWithBrsAsNewLines}},{...e.$listeners,input:t=>e.edit(t.target.value)})),e.loading?t(o.Z,{attrs:{size:20,width:2,indeterminate:"",color:"#ccc"}}):e._e(),t("VariablesDropdown",{attrs:{options:e.variableOptions,variables:e.variableItems},on:{input:e.insertVariable}})],1),!0!==e.textInputRuleValidation?t("div",{staticClass:"breakdance-text-input__error"},[e._v(" "+e._s(e.textInputRuleValidation)+" ")]):e._e()])},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(13997),u=n(3463),d=n(85283),p=n(15133),h=n(22608),g=n(31557),m=n(17209);let v=class extends r.ZP{constructor(){super(...arguments),this.internalValue=""}get displayValueWithBrsAsNewLines(){return this.internalValue?.replace(/<(br\s+)?(br)?>/gi,"\n")}updateInternalValue(){this.internalValue=this.value,this.autogrowTextarea()}onAutofocusChange(){this.autofocus&&this.$refs.input.focus()}mounted(){this.autofocus&&this.$refs.input.focus(),this.autogrowTextarea()}edit(e){if(this.internalValue=e,!0!==this.textInputRuleValidation)return;let t=e;e?"html"===this.format&&(t=(0,m.h)(e)):t=null,this.$emit("input",t)}get textInputRuleValidation(){return!this.validationFunctionName||c.hB[this.validationFunctionName](this.internalValue)}get cssClasses(){return["breakdance-white-gray-outlined-input","breakdance-simple-input","breakdance-simple-input--"+(this.multiline?"textarea":"text"),`breakdance-simple-input--${this.size}`,{"breakdance-text-input--with-variables":this.variableOptions?.enabled}]}insertVariable(e){const t=this.$refs.input.selectionStart,n=`{${e}}`;let o="";if(t&&this.internalValue){const e=this.internalValue.slice(0,t),s=this.internalValue.slice(t);o=`${e}${n}${s}`}else o=`${this.internalValue??""}${n}`;this.$emit("input",o)}autogrowTextarea(){const e=this.$refs.input;this.multiline&&e&&this.$nextTick((()=>{e.style.height="0px",e.style.height=Math.min(500,e.scrollHeight)-4+"px"}))}};(0,i.gn)([(0,l.fI)()],v.prototype,"value",void 0),(0,i.gn)([(0,l.fI)({default:!1})],v.prototype,"multiline",void 0),(0,i.gn)([(0,l.fI)()],v.prototype,"placeholder",void 0),(0,i.gn)([(0,l.fI)()],v.prototype,"autofocus",void 0),(0,i.gn)([(0,l.fI)()],v.prototype,"validationFunctionName",void 0),(0,i.gn)([(0,l.fI)({default:"base"})],v.prototype,"size",void 0),(0,i.gn)([(0,l.fI)({default:""})],v.prototype,"label",void 0),(0,i.gn)([(0,l.fI)()],v.prototype,"disabled",void 0),(0,i.gn)([(0,l.fI)()],v.prototype,"loading",void 0),(0,i.gn)([(0,l.fI)()],v.prototype,"variableOptions",void 0),(0,i.gn)([(0,l.fI)({default:"html"})],v.prototype,"format",void 0),(0,i.gn)([(0,l.fI)({default:()=>[]})],v.prototype,"variableItems",void 0),(0,i.gn)([(0,l.RL)("value",{immediate:!0})],v.prototype,"updateInternalValue",null),(0,i.gn)([(0,l.RL)("autofocus")],v.prototype,"onAutofocusChange",null),v=(0,i.gn)([(0,l.wA)({components:{VariablesDropdown:g.Z,IconButton:h.Z,Dropdown:p.Z,Popout:u.Z,Icon:d.Z}})],v);const f=v,y=f;var b=n(1001),_=(0,b.Z)(y,s,a,!1,null,null,null);const I=_.exports},38374:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=n(91898),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dropdown",{attrs:{"close-on-content-click":!1,"offset-y":"",right:"",bottom:"","min-width":"300"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({staticClass:"time-picker-input-value breakdance-simple-input breakdance-simple-input--text breakdance-white-gray-outlined-input"},n),[e._v(" "+e._s(e.value)+" ")])]}}]),model:{value:e.timePickerOpen,callback:function(t){e.timePickerOpen=t},expression:"timePickerOpen"}},[e.timePickerOpen?t(o.Z,{attrs:{value:e.value,"full-width":"",format:"24hr"},on:{input:function(t){return e.$emit("input",t)}}}):e._e()],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(41571),u=n(15133);let d=class extends r.ZP{constructor(){super(...arguments),this.timePickerOpen=!1}};(0,i.gn)([(0,l.fI)()],d.prototype,"value",void 0),d=(0,i.gn)([(0,l.wA)({components:{Dropdown:u.Z,TextInput:c.Z}})],d);const p=d,h=p;var g=n(1001),m=(0,g.Z)(h,s,a,!1,null,null,null);const v=m.exports},72252:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(76660),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"toggle-input"},[t(o.Z,{attrs:{"input-value":e.value,inset:"",size:"sm",color:"oxygen"===e.builderMode?"var(--oxygen-primary-500)":null},on:{change:e.edit}})],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(85450);let u=class extends r.ZP{edit(e){this.$emit("input",e)}get builderMode(){return c.configStore.builderMode}};(0,i.gn)([(0,l.fI)()],u.prototype,"value",void 0),u=(0,i.gn)([l.wA],u);const d=u,p=d;var h=n(1001),g=(0,h.Z)(p,s,a,!1,null,null,null);const m=g.exports},16747:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=n(70248),s=n(61908),a=n(11193),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(o.Z,{attrs:{dense:""}},e._l(e.unitTypes,(function(n,o){return t(s.Z,{key:o,on:{click:function(t){return e.$emit("input",n)}}},[t(a.V9,[e._v(e._s(n))])],1)})),1)},r=[],l=n(70655),c=n(38085),u=n(20144);let d=class extends u.ZP{};(0,l.gn)([(0,c.fI)({default:null})],d.prototype,"unitTypes",void 0),d=(0,l.gn)([c.wA],d);const p=d,h=p;var g=n(1001),m=(0,g.Z)(h,i,r,!1,null,null,null);const v=m.exports},56823:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-unit-input",class:{"breakdance-unit-input--expanded":e.isCustomCSS||e.expanded,"breakdance-unit-input--unit-expanded":"auto"===e.internalUnit,"is-disabled":e.disabled,"is-dragging-unit-input":e.showDragHint},on:{keyup:function(t){e.showDragHint=!1}}},[e.shouldShowRangeSlider?t("Slider",e._b({attrs:{value:e.rawValue,disabled:e.showDragHint},on:{input:e.updateRawValue}},"Slider",e.shouldShowRangeSlider?e.rangeOptions:null,!1)):e._e(),t("div",{staticClass:"breakdance-unit-input-drag-container",on:{mousedown:e.onMaybeDrag,mouseenter:e.listenForAlt,mouseleave:e.stopListeningForAlt}},[t("UnitCustomInputDropdown",{attrs:{value:e.rawValue,disabled:e.disableCustomUnitDropdown},on:{input:e.updateRawValue},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("input",e._g({ref:"input",staticClass:"breakdance-white-gray-outlined-input breakdance-simple-input breakdance-simple-input--text",attrs:{type:"text",placeholder:e.placeholder?.number,disabled:"auto"===e.internalUnit},domProps:{value:e.rawValue},on:{input:function(t){return e.updateRawValue(t.target.value)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increment.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrement.apply(null,arguments))}]}},n))]}}])}),e.unitTypes.length>1?t("Dropdown",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("button",e._g({staticClass:"breakdance-unit-input-unit"},n),[e._v(" "+e._s("custom"===e.internalUnit?"-":e.internalUnit)+" ")])]}}],null,!1,2266056518)},[t("UnitDropdown",{attrs:{"unit-types":e.unitTypes},on:{input:e.updateUnit}})],1):t("div",{staticClass:"breakdance-unit-input-unit"},[e._v(" "+e._s("custom"===e.internalUnit?"-":e.internalUnit)+" ")])],1)],1)},s=[],a=n(23493),i=n.n(a),r=n(81763),l=n.n(r),c=n(70655),u=n(20144),d=n(38085),p=n(16795),h=n(16747),g=n(74799),m=n(15133),v=n(41571),f=n(23267),y=n(73385),b=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Dropdown",{attrs:{title:"Custom","offset-y":"",disabled:e.disabled,"nudge-top":-5,"max-width":e.width,"min-width":e.width,"close-on-content-click":!1,transition:!1},scopedSlots:e._u([{key:"activator",fn:function({on:t}){return[e._t("activator",null,{on:t})]}}],null,!0),model:{value:e.isDialogOpen,callback:function(t){e.isDialogOpen=t},expression:"isDialogOpen"}},[t(y.Z,{staticClass:"vscroll-scroll vscroll-wrap custom-unit-dialog"},[t("div",[t("textarea",{ref:"input",staticClass:"custom-unit-dialog__input breakdance-simple-input--text breakdance-white-gray-outlined-input",attrs:{placeholder:"E.g. calc(100svh - 50px)"},domProps:{value:e.value},on:{input:function(t){return e.$emit("input",t.target.value)}}})])])],1)},_=[],I=n(31044),w=n(95690);let x=class extends d.w3{constructor(){super(...arguments),this.isDialogOpen=!1,this.keepMaskOpenOnClose=!1}get width(){return"oxygen"===I.PK.builderMode?w.eF:w.R3}onDialogOpenChange(){this.disabled||(this.isDialogOpen?(this.keepMaskOpenOnClose=I.kD.panelState.oxyPanelIsMasked,I.kD.setPanelState({...I.kD.panelState,oxyPanelIsMasked:!0}),this.autofocus()):this.closeMask())}autofocus(){setTimeout((()=>{const e=this.$refs.input;e.focus();const t=e.value;if(t.endsWith(")")){const n=t.length-1;e.setSelectionRange(n,n)}}),100)}closeMask(){this.keepMaskOpenOnClose?this.keepMaskOpenOnClose=!1:I.kD.setPanelState({...I.kD.panelState,oxyPanelIsMasked:!1})}};(0,c.gn)([(0,d.fI)()],x.prototype,"value",void 0),(0,c.gn)([(0,d.fI)()],x.prototype,"disabled",void 0),(0,c.gn)([(0,d.RL)("isDialogOpen")],x.prototype,"onDialogOpenChange",null),x=(0,c.gn)([(0,d.wA)({components:{Dropdown:m.Z}})],x);const S=x,C=S;var k=n(1001),P=(0,k.Z)(C,b,_,!1,null,null,null);const Z=P.exports;var D=n(42274),E=n(12721),T=n(34676);let A=class extends u.ZP{constructor(){super(...arguments),this.rawValue="",this.dirty=!1,this.easyEvents=new E.hF,this.showDragHint=!1,this.startDragX=null,this.initialDragValue=0,this.throttleUpdateNumber=i()(this.updateNumber,100)}get unitTypes(){return this.options?.types?.length?this.options?.types:p.LF}get defaultType(){const e=I.kD.settings.defaultUnitType||"px",t=this.unitTypes;let n;return n=t?.length?t.includes(e)?e:t[0]:e,this.options?.defaultType||n}get shouldShowRangeSlider(){return"number"===typeof this.rangeOptions?.min&&"number"===typeof this.rangeOptions?.max&&!0!==this.rangeOptions?.disableSlider&&(!this.value||this.value?.unit===this.defaultType)}get step(){return this.rangeOptions?.step||1}get internalNumber(){return this.value?.number}get internalUnit(){return this.value?.unit?this.value.unit:this.placeholder?.unit?this.placeholder.unit:this.defaultType}get isCustomCSS(){return"custom"===this.internalUnit}get canIncrement(){return!["custom","auto"].includes(this.internalUnit)}get disableCustomUnitDropdown(){return"custom"!==this.internalUnit||(!!I.kD.settings.disableCustomUnitDropdown||(this.options?.disableCustomUnitDropdown||!1))}updateNumber(e){this.update(e,this.internalUnit)}updateUnit(e){"auto"!==e?this.update(this.internalNumber,e):this.update(null,e)}update(e,t){if((!t||t===this.defaultType)&&!e&&0!==e)return void this.$emit("input",null);const n=(0,D.r)(e,t);this.$emit("input",{number:e,unit:t,style:n})}adjustNumber(e,t){if(!this.canIncrement)return;this.dirty=!1;const n=Number(this.internalNumber),o=isNaN(n)?0:n;let s=1;e.metaKey?s=100:e.shiftKey?s=10:e.altKey&&(s=.1);const a=t?s:-s;this.updateNumber(Number((o+a).toFixed(1)))}increment(e){this.adjustNumber(e,!0)}decrement(e){this.adjustNumber(e,!1)}onValueChange(){this.dirty?this.dirty=!1:this.rawValue=l()(this.value?.number)?`${this.value?.number}`:this.value?.number}updateRawValue(e){if(this.rawValue=e,"custom"===this.internalUnit)return this.dirty=!0,void this.updateNumber(this.rawValue);const[t,n,o]=(0,D.R)(this.rawValue,this.unitTypes),s=n||this.internalUnit;o?(this.rawValue=`${o}`,this.dirty=!0):this.dirty=!1,this.update(t,s)}listenForAlt(e){this.showDragHint=e.altKey&&"custom"!==this.internalUnit,document.addEventListener("keydown",this.maybeShowDragHint),document.addEventListener("keyup",this.hideDragHint)}stopListeningForAlt(){null===this.startDragX&&(document.removeEventListener("keydown",this.maybeShowDragHint),document.removeEventListener("keyup",this.hideDragHint))}hideDragHint(e){this.showDragHint=e.altKey}maybeShowDragHint(e){e.altKey&&"ArrowUp"!==e.key&&"custom"!==this.internalUnit&&(this.showDragHint=!0)}onMaybeDrag(e){e.altKey&&"custom"!==this.internalUnit&&(document.body.classList.add("is-dragging-unit-input"),this.startDragX=e.clientX,this.rawValue?this.initialDragValue="number"===typeof this.rawValue?this.rawValue:parseFloat(this.rawValue||"0"):this.initialDragValue=0,this.easyEvents.on("mousemove",this.onDrag),this.easyEvents.on("mouseup",this.onStopDrag.bind(this)))}onDrag(e){const t=this.rangeOptions?.min,n=this.rangeOptions?.max;if(null===this.startDragX)return;const o=e.clientX-this.startDragX,s=this.step,a=Math.min(Math.max(this.initialDragValue+Math.round(o/5)*s,t??-1/0),n??1/0);this.rawValue=`${a}`,this.throttleUpdateNumber(a),(0,T.forceNextTick)((()=>{this.$refs.input?.blur()}))}onStopDrag(){this.startDragX=null,this.initialDragValue=0,this.showDragHint=!1,document.body.classList.remove("is-dragging-unit-input"),this.stopListeningForAlt(),this.easyEvents.off("mousemove",this.onDrag),this.easyEvents.off("mouseup",this.onStopDrag)}};(0,c.gn)([(0,d.fI)({default:null})],A.prototype,"value",void 0),(0,c.gn)([(0,d.fI)()],A.prototype,"placeholder",void 0),(0,c.gn)([(0,d.fI)({default:null})],A.prototype,"options",void 0),(0,c.gn)([(0,d.fI)({default:null})],A.prototype,"rangeOptions",void 0),(0,c.gn)([(0,d.fI)({default:!1})],A.prototype,"disabled",void 0),(0,c.gn)([(0,d.fI)({default:!1})],A.prototype,"expanded",void 0),(0,c.gn)([(0,d.RL)("value.number",{immediate:!0})],A.prototype,"onValueChange",null),A=(0,c.gn)([(0,d.wA)({components:{Slider:g.Z,Dropdown:m.Z,TextInput:v.Z,NumberInput:f.Z,UnitDropdown:h.Z,UnitCustomInputDropdown:Z}})],A);const M=A,V=M;var B=(0,k.Z)(V,o,s,!1,null,null,null);const O=B.exports},31557:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var o=n(70248),s=n(61908),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.options&&e.options.enabled?t("Dropdown",{staticClass:"breakdance-variables-dropdown",attrs:{"offset-x":"","nudge-right":12,"nudge-top":4,"close-on-content-click":!0},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[t("IconButton",e._g(e._b({attrs:{size:"14",icon:"PlusIcon"}},"IconButton",o,!1),n))]}}],null,!1,1174882487)},[t(o.Z,{attrs:{dense:""}},[e._l(e.internalItems,(function(n,o){return t(s.Z,{key:o,staticClass:"breakdance-variable",on:{click:function(t){return e.insertVariable(n.value)}}},[t("span",{staticClass:"breakdance-variable__name"},[e._v(" "+e._s(n.text)+" ")]),t("span",{staticClass:"breakdance-variable__value"},[t("span",[e._v("{")]),e._v(e._s(n.value)),t("span",[e._v("}")])])])})),0===e.internalItems.length?t(s.Z,[t("span",[e._v("No variables available")])]):e._e()],2)],1):e._e()},i=[],r=n(70655),l=n(20144),c=n(38085),u=n(3735),d=n(32521),p=n(48973),h=n(3463),g=n(85283),m=n(74636),v=n(15133),f=n(22608);let y=class extends l.ZP{get populate(){return this.options?.populate||{}}get internalItems(){return[...this.populatedItems,...this.variables]}get populatedItems(){if(!this.populate||!this.populate.path)return[];if(!this.context)return console.log("[VARIABLES] Context is not available to populate dropdown."),[];const e=this.context.getControlValue(this.populate.path);return(0,u.zG)(e,d.IX(d._4).decode,(0,p.g_)((()=>(console.log(`[VARIABLES] Populate path '${this.populate?.path}' is invalid.`),[])),(e=>e.map((e=>(0,m.Ai)(this.populate,e))).filter((e=>(0,m.h7)(this.populate,e))).map((e=>(0,m.aL)(this.populate,e))).filter(Boolean))))}insertVariable(e){this.$emit("input",e)}};(0,r.gn)([(0,c.tB)({from:"context",default:null})],y.prototype,"context",void 0),(0,r.gn)([(0,c.fI)()],y.prototype,"options",void 0),(0,r.gn)([(0,c.fI)({default:()=>[]})],y.prototype,"variables",void 0),y=(0,r.gn)([(0,c.wA)({components:{IconButton:f.Z,Dropdown:v.Z,Popout:h.Z,Icon:g.Z}})],y);const b=y,_=b;var I=n(1001),w=(0,I.Z)(_,a,i,!1,null,null,null);const x=w.exports},70504:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var o=n(37179),s=n(56275),a=n(43432),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-video-input"},[e.error?t("AlertBox",{staticClass:"breakdance-alert-box__oembed-validation-error",attrs:{options:e.oembedErrorOptions}}):e._e(),t("header",{staticClass:"breakdance-video-input-header"},[t("TextInput",{staticClass:"breakdance-video-input-input",attrs:{placeholder:e.__("Paste or type URL"),value:e.value&&e.value.url,autofocus:e.autofocus},on:{input:e.debouncedOnInput}}),t(a.Z,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t(o.Z,e._g(e._b({staticClass:"breakdance-video-input-media-chooser",attrs:{outlined:"",height:"var(--input-height)"},on:{click:e.openDialog}},"v-btn",s,!1),n),[t("Icon",{attrs:{icon:"UploadFileIcon"}})],1)]}}])},[t("span",[e._v(e._s(e.__("Upload")))])])],1),t("div",{staticClass:"breakdance-video-input-aspect-ratio"},[t("div",{staticClass:"breakdance-video-input-preview",class:{"breakdance-video-input-preview--has-video":"loaded"===e.state}},["loaded"===e.state?t("div",{staticClass:"breakdance-video-input-video"},["oembed"===e.value.type?t("iframe",{attrs:{src:e.value.embedUrl}}):"video"===e.value.type?t("video",{attrs:{src:e.value.embedUrl,playsinline:"",controls:""}}):e._e()]):"loading"===e.state?t("div",{staticClass:"breakdance-video-input-loader"},[t(s.Z,{staticClass:"mb-3",attrs:{width:3,size:25,indeterminate:"",color:"#ccc"}}),e._v(" "+e._s(e.__("Embedding..."))+" ")],1):"error"===e.state?t("div",{staticClass:"breakdance-video-input-error"},[t("Icon",{staticClass:"breakdance-video-input-error__icon mb-3",attrs:{icon:"ExclamationMarkCircleIcon"}}),e._v(" "+e._s(e.__("This video could not be embedded."))+" ")],1):t("div",{staticClass:"breakdance-video-input-default"},[t("Icon",{staticClass:"breakdance-video-input-preview-icon",attrs:{icon:"VideoIcon",size:"22"}}),e.allowedProviders.length?[e._v(" "+e._s(e.sprintf(e._doc("Upload a Video or paste a URL from %s","%s: allowed platforms list"),e.allowedProviders.join(", ")))+" ")]:[e._v(" "+e._s(e.__("Upload a Video or paste a URL"))+" ")]],2)])]),t("MediaUploadDialog",{attrs:{open:e.dialogOpen,"accepted-file-types":["video"]},on:{input:e.onMediaSelected,close:e.closeDialog}})],1)},r=[],l=n(23279),c=n.n(l),u=n(70655),d=n(20144),p=n(38085),h=n(30902),g=n(45974),m=n(89754),v=n(85283),f=n(41571),y=n(81452),b=n(98851),_=n(2028),I=n(36055);let w=class extends d.ZP{constructor(){super(...arguments),this.debouncedOnInput=c()(this.onInput,300),this.loading=!1,this.error=!1,this.dialogOpen=!1,this.oembedErrorMessage=(0,I.__)("There was an error embedding the video")}get state(){return this.error?"error":this.loading?"loading":this.value?"loaded":"empty"}async getEmbed(e){return(0,h.pipe)(await(0,b.D)({friendlyName:"Get Video Embed",action:"breakdance_oembed",dataToPost:{url:e},decoder:m.FX}),(0,g.fold)((()=>{}),(e=>e)))}get allowedProviders(){return this.options?.providers??[]}isOEmbedValid(e){return!!e&&(!this.allowedProviders?.length||(!e.provider||this.allowedProviders.includes(e.provider)))}async setOEmbed(e){this.oembedErrorMessage=(0,I.__)("There was an error embedding the video"),this.loading=!0;const t=await this.getEmbed(e);return this.loading=!1,t?this.isOEmbedValid(t)?void this.edit({...t,type:"oembed",source:t.provider}):(t.provider?this.oembedErrorMessage=(0,I.gB)((0,I.TZ)("Videos from %s are not allowed for this field. Allowed embed platforms are %s","%s: video platform name, %s: allowed platforms list"),t.provider,this.allowedProviders.join(", ")):this.oembedErrorMessage=(0,I.gB)((0,I.TZ)("Videos from this platform, are not allowed for this field. Allowed embed platforms are %s","%s: allowed platforms list"),this.allowedProviders.join(", ")),void(this.error=!0)):(this.oembedErrorMessage=(0,I.__)("Unable to retrieve a video from this URL"),void(this.error=!0))}onInput(e){this.error=!1,this.loading=!1,e?this.isFileURL(e)?this.setFileURL(e,this.getMimeTypeFromUrl(e)):this.setOEmbed(e):this.clear()}getMimeTypeFromUrl(e){const t={ogv:"video/ogg",flv:"video/x-flv"},n=e.split(".").pop()||"";return t[n]??`video/${n}`}isFileURL(e){const t=["mp4","m4v","webm","ogv","flv"],n=e.split(".").pop()||"";return t.includes(n)}setFileURL(e,t){this.edit({url:e,mime:t,embedUrl:e,format:"video",type:"video",source:"local"})}onMediaSelected(e){"video"===e.type?this.setFileURL(e.url,e.mime):this.error=!0}edit(e){this.$emit("input",e)}clear(){this.edit(void 0)}openDialog(){this.dialogOpen=!0}closeDialog(){this.dialogOpen=!1}get oembedErrorOptions(){return{style:"error",content:this.oembedErrorMessage}}};(0,u.gn)([(0,p.fI)()],w.prototype,"value",void 0),(0,u.gn)([(0,p.fI)()],w.prototype,"options",void 0),(0,u.gn)([(0,p.fI)()],w.prototype,"autofocus",void 0),w=(0,u.gn)([(0,p.wA)({components:{Icon:v.Z,MediaUploadDialog:y.Z,TextInput:f.Z,AlertBox:_.Z}})],w);const x=w,S=x;var C=n(1001),k=(0,C.Z)(S,i,r,!1,null,null,null);const P=k.exports},15133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(60092),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"dropdown",staticClass:"dropdown"},[t(o.Z,e._b({ref:"menu",attrs:{"nudge-top":e.internalNudgeTop,"nudge-right":e.internalNudgeRight,"nudge-left":e.nudgeLeft,"close-on-click":e.internalCloseOnClick,"max-width":e.maxWidth,"min-width":e.minWidth,"max-height":e.maxHeight,"content-class":e.contentClass,"disable-keys":e.isPreviewMode},scopedSlots:e._u([{key:"activator",fn:function({on:t}){return[e._t("activator",null,{on:t})]}}],null,!0),model:{value:e.internalValue,callback:function(t){e.internalValue=t},expression:"internalValue"}},"v-menu",e.$attrs,!1),[e.title?t("DropdownDragHandle",[t("header",{staticClass:"dropdown-header"},[t("Icon",{staticClass:"dropdown-drag-icon",attrs:{icon:"oxygen"===e.builderMode?"GripDotsVerticalIcon":"GripVerticalIcon",size:"12"}}),t("h3",{staticClass:"dropdown-title"},[e._v(e._s(e.title))]),t("div",{staticClass:"dropdown-actions"},[e._t("actions"),t("button",{staticClass:"dropdown-close-icon dropdown-action-icon",on:{click:e.close}},[t("Icon",{attrs:{icon:"CloseIcon",size:"oxygen"===e.builderMode?12:16}})],1)],2)],1)]):e._e(),t("div",{ref:"content",staticClass:"dropdown-content"},[e._t("default")],2)],1)],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(85283),u=n(9600),d=n(85450);let p=class extends r.ZP{constructor(){super(...arguments),this.dropdownOpen=!1,this.offsetY=0,this.offsetX=0}listenForModelChanges(){this.isPreviewMode||this.$nextTick((()=>{this.dropdownOpen=this.value}))}listenForInternalChanges(){this.dropdownOpen&&this.internalCloseOnClick&&this.$nextTick((()=>{this.bindListeners()}))}beforeDestroy(){this.unbindListeners()}get canvas(){return window.Breakdance?.canvas?.document}get isPreviewMode(){return d.uiStore.isPreviewMode}get internalCloseOnClick(){return!this.isPreviewMode&&this.closeOnClick}get internalValue(){return this.dropdownOpen}set internalValue(e){this.setVisibility(e)}get builderMode(){return d.configStore.builderMode}close(){this.setVisibility(!1)}closeOnEsc(e){this.isPreviewMode||this.internalValue&&(this.close(),e.preventDefault())}setVisibility(e){this.isPreviewMode||(this.dropdownOpen=e,this.$emit("input",e))}bindListeners(){this.canvas?.addEventListener("click",this.close,{once:!0}),document.addEventListener("close-dropdowns-when-escape-is-pressed",this.closeOnEsc),this.observer=new ResizeObserver(this.recalculatePositionOnHeightChange),this.observer.observe(this.$refs.content)}unbindListeners(){this.canvas?.removeEventListener("click",this.close),document.removeEventListener("close-dropdowns-when-escape-is-pressed",this.closeOnEsc),this.observer?.disconnect()}get internalNudgeTop(){return this.nudgeTop+this.offsetY}get internalNudgeRight(){return this.nudgeRight+this.offsetX}recalculatePositionOnHeightChange(){const e=this.$refs.content;if(!e)return;const t=e.closest(".v-menu__content"),n=t.getBoundingClientRect(),o=window.innerHeight-n.height;n.y>o&&(t.style.top=`${o}px`)}};(0,i.gn)([(0,l.fI)({default:!1})],p.prototype,"value",void 0),(0,i.gn)([(0,l.fI)({default:!0})],p.prototype,"closeOnClick",void 0),(0,i.gn)([(0,l.fI)()],p.prototype,"title",void 0),(0,i.gn)([(0,l.fI)({default:0})],p.prototype,"nudgeRight",void 0),(0,i.gn)([(0,l.fI)({default:0})],p.prototype,"nudgeTop",void 0),(0,i.gn)([(0,l.fI)({default:0})],p.prototype,"nudgeLeft",void 0),(0,i.gn)([(0,l.fI)({default:"auto"})],p.prototype,"maxWidth",void 0),(0,i.gn)([(0,l.fI)({default:void 0})],p.prototype,"minWidth",void 0),(0,i.gn)([(0,l.fI)({default:"100vh"})],p.prototype,"maxHeight",void 0),(0,i.gn)([(0,l.fI)()],p.prototype,"contentClass",void 0),(0,i.gn)([(0,l.RL)("value",{immediate:!0})],p.prototype,"listenForModelChanges",null),(0,i.gn)([(0,l.RL)("dropdownOpen")],p.prototype,"listenForInternalChanges",null),p=(0,i.gn)([(0,l.wA)({components:{DropdownDragHandle:u.Z,Icon:c.Z}})],p);const h=p,g=h;var m=n(1001),v=(0,m.Z)(g,s,a,!1,null,null,null);const f=v.exports},9600:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"dropdown-drag-handle",on:{mousedown:e.onDragStart,mouseup:e.onDragEnd}},[e._t("default")],2)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(12721);let c=class extends i.ZP{constructor(){super(...arguments),this.easyEvent=new l.hF}updatePosition(e,{x:t,y:n}){e.style.left=`${t}px`,e.style.top=`${n}px`}onDragStart(e){const t=e.target;if(this.menu=t.closest(".v-menu__content"),!this.menu)return;const{x:n,y:o}=(0,l.sG)(e),s=this.menu.getBoundingClientRect();this.width=s.width,this.height=s.height,this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.startX=n,this.startY=o,this.elStartX=s.left,this.elStartY=s.top,this.easyEvent.on("mousemove",this.onDragMove),this.easyEvent.on("mouseup",this.onDragEnd)}onDragMove(e){e.preventDefault();const{x:t,y:n}=(0,l.sG)(e),o=this.windowWidth-this.width,s=this.windowHeight-this.height,a=Math.min(Math.max(this.elStartX+t-this.startX,0),o),i=Math.min(Math.max(this.elStartY+n-this.startY,0),s);this.menu&&this.updatePosition(this.menu,{x:a,y:i})}onDragEnd(e){e.preventDefault(),this.easyEvent.off("mousemove",this.onDragMove),this.easyEvent.off("mouseup",this.onDragEnd)}};c=(0,a.gn)([r.wA],c);const u=c,d=u;var p=n(1001),h=(0,p.Z)(d,o,s,!1,null,null,null);const g=h.exports},11529:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=n(18236),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return"breakdance"==e.builderMode?t(o.Z,{attrs:{value:e.show,opacity:"1",color:"#eee",absolute:""}},[t("LoadingSpinner",{attrs:{color:"var(--gray500)"}})],1):t(o.Z,{attrs:{value:e.show,opacity:"1",absolute:""}},[t("LoadingSpinner",{attrs:{color:"var(--gray500)"}})],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(58720),u=n(85450);let d=class extends r.ZP{constructor(){super(...arguments),this.show=!0}get builderMode(){return u.configStore.builderMode}};d=(0,i.gn)([(0,l.wA)({components:{LoadingSpinner:c.Z}})],d);const p=d,h=p;var g=n(1001),m=(0,g.Z)(h,s,a,!1,null,null,null);const v=m.exports},58720:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-loading-spinner",style:e.outerDivStyles},[t("div",{style:e.innerDivStyles}),t("div",{style:e.innerDivStyles}),t("div",{style:e.innerDivStyles}),t("div",{style:e.innerDivStyles})])},s=[],a=n(70655),i=n(20144),r=n(38085);let l=class extends i.ZP{get outerDivStyles(){return{width:`${this.size}px`,height:`${this.size}px`}}get innerDivStyles(){return{width:`${this.size}px`,height:`${this.size}px`,margin:`${this.width}px`,"border-width":`${this.width}px`,"border-top-color":this.color}}};(0,a.gn)([(0,r.fI)({default:4})],l.prototype,"width",void 0),(0,a.gn)([(0,r.fI)({required:!0})],l.prototype,"color",void 0),(0,a.gn)([(0,r.fI)({default:100})],l.prototype,"size",void 0),l=(0,a.gn)([(0,r.wA)({})],l);const c=l,u=c;var d=n(1001),p=(0,d.Z)(u,o,s,!1,null,null,null);const h=p.exports},74799:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=n(42059),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"breakdance-range-slider",class:{"breakdance-range-slider--expanded":e.expanded}},[t(o.Z,{attrs:{color:"#d1d5db","track-color":"#d1d5db","thumb-color":"#d1d5db",step:e.step,min:e.min,max:e.max,value:e.value,disabled:e.disabled,"hide-details":""},on:{input:e.rangeSliderChanged,mousedown:e.setRangeEnabled,mouseup:function(t){return e.setRangeEnabled(!1)},focus:e.setRangeEnabled,blur:function(t){return e.setRangeEnabled(!1)}}})],1)},a=[],i=n(70655),r=n(20144),l=n(38085);let c=class extends r.ZP{constructor(){super(...arguments),this.listenToRangeSlider=!1}get sliderStep(){return this.step?this.step:1}rangeSliderChanged(e){this.listenToRangeSlider&&e.toString()!==this.value&&this.$emit("input",e.toString())}setRangeEnabled(e=!0){this.listenToRangeSlider=e}};(0,i.gn)([(0,l.fI)()],c.prototype,"value",void 0),(0,i.gn)([(0,l.fI)()],c.prototype,"step",void 0),(0,i.gn)([(0,l.fI)()],c.prototype,"min",void 0),(0,i.gn)([(0,l.fI)()],c.prototype,"max",void 0),(0,i.gn)([(0,l.fI)({default:!1})],c.prototype,"expanded",void 0),(0,i.gn)([(0,l.fI)({default:!1})],c.prototype,"disabled",void 0),c=(0,i.gn)([l.wA],c);const u=c,d=u;var p=n(1001),h=(0,p.Z)(d,s,a,!1,null,null,null);const g=h.exports},35097:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"vscroll-wrap vscroll-scroll"},[t("div",{staticClass:"vscroll-scroll selectors-list-selectors"},[t("draggable",e._b({staticClass:"breakdance-repeater-draggable",attrs:{value:e.selectors},on:{input:e.handleDrag}},"draggable",e.dragOptions,!1),e._l(e.filteredSelectors,(function(n,o){return t("div",{key:o,staticClass:"breakdance-repeater-item"},[t("RepeaterItemAccordion",{attrs:{"can-edit":!0,"can-drag":!e.searchString,"no-duplicate":!0},on:{"title:click":function(t){return e.editSelector(n.name)},"edit-item":function(t){return e.editSelector(n.name)},"delete-item":function(t){return e.deleteSelector(o)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"breakdance-repeater-item-title-text"},[e._v(" "+e._s(n.name)+" ")])]},proxy:!0}],null,!0)})],1)})),0)],1),e.searchable?t("div",{staticClass:"properties-panel-search-box-wrap properties-panel-search-box-wrap-selectors"},[t("Icon",{staticClass:"properties-panel-search-icon",attrs:{icon:"SearchIcon",size:"13"}}),t("TextInput",{attrs:{placeholder:e.__("Search")},model:{value:e.searchString,callback:function(t){e.searchString=t},expression:"searchString"}})],1):e._e()])},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(85450),c=n(23128),u=n(41571),d=n(34680),p=n.n(d),h=n(95690),g=n(11656),m=n(85283);let v=class extends i.ZP{constructor(){super(...arguments),this.dragOptions={animation:200,handle:".breakdance-repeater-item-handler",filter:".breakdance-repeater-item--ignore-drag",ghostClass:"breakdance-repeater-item--ghost",forceFallback:!0},this.searchString=""}get filteredSelectors(){return this.searchString?this.selectors.filter((e=>this.searchString&&e.name.includes(this.searchString))):this.selectors}deleteSelector(e){const t=(0,c.Z)(this.selectors);t.splice(e,1),this.$emit("input",t)}handleDrag(e){this.$emit("input",(0,c.Z)(e))}editSelector(e){l.uiStore.setActiveSelectorName(e),(0,h.oM)("selectors")}};(0,a.gn)([(0,r.fI)()],v.prototype,"searchable",void 0),(0,a.gn)([(0,r.fI)()],v.prototype,"selectors",void 0),v=(0,a.gn)([(0,r.wA)({components:{RepeaterItemAccordion:g.Z,draggable:p(),TextInput:u.Z,Icon:m.Z}})],v);const f=v,y=f;var b=n(1001),_=(0,b.Z)(y,o,s,!1,null,null,null);const I=_.exports},15584:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.areProConditionsUsedInRules?t("ProOnlyAlertBox",{staticClass:"mb-5",attrs:{options:{feature:"conditions",content:e.sprintf(e._doc("Get %s Pro to get access to all the conditions.","%s: Plugin name"),e.$bdox("plugin_name"))}}}):e._e()},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(13960),c=n(4998);let u=class extends i.ZP{get areProConditionsUsedInRules(){return(0,l.V9)(this.value,this.availableConditions.filter((e=>e.proOnly)))}};(0,a.gn)([(0,r.fI)()],u.prototype,"value",void 0),(0,a.gn)([(0,r.fI)()],u.prototype,"availableConditions",void 0),u=(0,a.gn)([(0,r.wA)({components:{ProOnlyAlertBox:c.Z}})],u);const d=u,p=d;var h=n(1001),g=(0,h.Z)(p,o,s,!1,null,null,null);const m=g.exports},45713:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ProOnlyAlertBox",{attrs:{options:{feature:"selectors",content:e.sprintf(e._doc("Classes & selectors are only available in %s Pro. They won't work on the frontend.","%s: Plugin name"),e.$bdox("plugin_name"))}}})},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(4998);let c=class extends i.ZP{};c=(0,a.gn)([(0,r.wA)({components:{ProOnlyAlertBox:l.Z}})],c);const u=c,d=u;var p=n(1001),h=(0,p.Z)(d,o,s,!1,null,null,null);const g=h.exports},4998:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.isFreeMode?t("div",{staticClass:"pro-only-alert-wrapper"},[t("div",{staticClass:"properties-panel-upgrade-to-pro-notice"},[t("div",{domProps:{innerHTML:e._s(e.options.content)}}),t("a",{staticClass:"properties-panel-upgrade-to-pro-button",attrs:{target:"_blank",href:e.urlWithUtm},on:{click:function(t){return e.logEvent("Pro Alert Box",{action:"click",feature:e.options.feature})}}},[e._v(" "+e._s(e.__("Get Pro"))+" ")])])]):e._e()},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(2028),c=n(31044),u=n(47431);let d=class extends i.ZP{constructor(){super(...arguments),this.logEvent=u.K}get isFreeMode(){return"free"===c.PK.subscriptionMode}get urlWithUtm(){return"oxygen"===c.PK.builderMode?`https://oxygenbuilder.com/?utm_source=free-version&utm_medium=free-version&utm_campaign=${this.options.feature}`:`https://breakdance.com/?utm_source=free-version&utm_medium=free-version&utm_campaign=${this.options.feature}`}mounted(){this.isFreeMode&&(0,u.K)("Pro Alert Box",{action:"seen",feature:this.options.feature})}};(0,a.gn)([(0,r.fI)()],d.prototype,"options",void 0),d=(0,a.gn)([(0,r.wA)({components:{AlertBox:l.Z}})],d);const p=d,h=p;var g=n(1001),m=(0,g.Z)(h,o,s,!1,null,null,null);const v=m.exports},16888:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(55234),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{class:e.classList},[e.hideTitlebar?e._e():t("div",{staticClass:"properties-panel-accordion-titlebar",attrs:{contextmenu:"","data-test-id":"properties-panel-accordion-titlebar"},on:{click:e.toggleContent,contextmenu:e.openContextMenu}},[t("div",{staticClass:"properties-panel-accordion-title"},[e._t("title")],2),t(o.Z),e.disableToggle?e._e():t("div",{staticClass:"properties-panel-accordion-toggle"},[t("Icon",{attrs:{icon:"ChevronDownIcon",rotate:e.expanded?void 0:"270",size:10}})],1)],1),this.expanded&&!this.disableToggle?t("div",{staticClass:"properties-panel-accordion-content",attrs:{"data-test-id":"properties-panel-accordion-content"}},[e._t("content")],2):e._e(),e.hasContextMenuSlot?t("div",{staticClass:"properties-panel-accordion-context-menu"},[t("Dropdown",{attrs:{"position-x":e.contextMenuX,"position-y":e.contextMenuY,absolute:"","offset-y":""},model:{value:e.contextMenu,callback:function(t){e.contextMenu=t},expression:"contextMenu"}},[e._t("contextmenu")],2)],1):e._e()])},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(15133),u=n(85283),d=n(85450);let p=class extends r.ZP{constructor(){super(...arguments),this.contextMenu=!1,this.contextMenuX=0,this.contextMenuY=0}toggleContent(){this.contextMenu||this.$emit("toggle")}get classList(){return{"properties-panel-accordion":!0,expanded:!this.disableToggle&&(this.expanded||this.hideTitlebar)}}get builderMode(){return d.configStore.builderMode}get hasContextMenuSlot(){return!!this.$slots.contextmenu}openContextMenu(e){this.hasContextMenuSlot&&(e.preventDefault(),this.contextMenu=!1,this.contextMenuX=e.clientX,this.contextMenuY=e.clientY,this.$nextTick((()=>{this.contextMenu=!0})))}};(0,i.gn)([(0,l.fI)({default:!1})],p.prototype,"expanded",void 0),(0,i.gn)([(0,l.fI)({default:!1})],p.prototype,"hideTitlebar",void 0),(0,i.gn)([(0,l.fI)({default:!1})],p.prototype,"disableToggle",void 0),p=(0,i.gn)([(0,l.wA)({components:{Icon:u.Z,Dropdown:c.Z}})],p);const h=p,g=h;var m=n(1001),v=(0,m.Z)(g,s,a,!1,null,null,null);const f=v.exports},99969:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(82202),s=n(37179),a=n(73385),i=n(75223),r=n(12570),l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(r.Z,{attrs:{value:e.show,persistent:"",width:400},on:{"click:outside":function(t){return e.$emit("click:outside")}}},[t(a.Z,{staticClass:"breakdance-dialog"},[e.type?t("div",{staticClass:"card-alert"},[t(o.Z,{staticClass:"card-alert__icon",attrs:{type:e.type}})],1):e._e(),t(i.EB,{staticClass:"breakdance-dialog-title"},[e._t("title")],2),t(i.ZB,{staticClass:"breakdance-dialog-contents"},[e._t("text")],2),t(i.h7,{staticClass:"breakdance-dialog-actions"},[e.hasCancel?t(s.Z,{on:{click:()=>this.$emit("cancel")}},[e._v(e._s(e.cancelText)+" ")]):e._e(),e.hasDiscard?t(s.Z,{attrs:{disabled:!e.discardIsEnabled,loading:e.discardIsInProgress},on:{click:()=>this.$emit("discard")}},[e._v(e._s(e.discardText)+" ")]):e._e(),t(s.Z,{attrs:{color:e.type,dark:"",disabled:!e.saveIsEnabled,loading:e.saveIsInProgress},on:{click:()=>this.$emit("save")}},[e._v(e._s(e.actionText)+" ")])],1)],1)],1)},c=[],u=n(70655),d=n(20144),p=n(38085),h=n(36055);let g=class extends d.ZP{};(0,u.gn)([(0,p.fI)()],g.prototype,"show",void 0),(0,u.gn)([(0,p.fI)({default:"info"})],g.prototype,"type",void 0),(0,u.gn)([(0,p.fI)({default:!1})],g.prototype,"hasCancel",void 0),(0,u.gn)([(0,p.fI)({default:(0,h.__)("Cancel")})],g.prototype,"cancelText",void 0),(0,u.gn)([(0,p.fI)()],g.prototype,"saveIsEnabled",void 0),(0,u.gn)([(0,p.fI)()],g.prototype,"saveIsInProgress",void 0),(0,u.gn)([(0,p.fI)({default:!0})],g.prototype,"hasDiscard",void 0),(0,u.gn)([(0,p.fI)()],g.prototype,"discardIsEnabled",void 0),(0,u.gn)([(0,p.fI)()],g.prototype,"discardIsInProgress",void 0),(0,u.gn)([(0,p.fI)({default:(0,h.__)("Save")})],g.prototype,"actionText",void 0),(0,u.gn)([(0,p.fI)({default:(0,h.__)("Discard")})],g.prototype,"discardText",void 0),g=(0,u.gn)([(0,p.wA)({components:{}})],g);const m=g,v=m;var f=n(1001),y=(0,f.Z)(v,l,c,!1,null,null,null);const b=y.exports},89137:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var o=n(82202),s=n(73385),a=n(75223),i=n(12570),r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(i.Z,e._g(e._b({attrs:{value:e.value,width:e.totalWidth},on:{input:function(t){return e.$emit("input",t)}},scopedSlots:e._u([{key:"activator",fn:function(t){return[e._t("activator",null,null,t)]}}],null,!0)},"v-dialog",e.$attrs,!1),e.$listeners),[t(s.Z,{staticClass:"breakdance-dialog",class:{"breakdance-dialog--sticky":e.sticky,"breakdance-dialog--border":e.border,"breakdance-dialog--resizing":e.resizing},attrs:{tile:"",flat:""}},[e.type?t("div",{staticClass:"breakdance-dialog-alert"},[t(o.Z,{staticClass:"breakdance-dialog-alert__icon",attrs:{type:e.type}})],1):e._e(),t(a.EB,{staticClass:"breakdance-dialog-title"},[e.$slots["subtitle-top"]?t(a.Qq,[e._t("subtitle-top")],2):e._e(),e._t("title"),e.closeable?t("IconButton",{staticClass:"ml-auto",attrs:{icon:"CloseIcon",size:"18"},on:{click:e.close}}):e._e()],2),t(a.ZB,{staticClass:"breakdance-dialog-contents"},[e._t("text")],2),e.$slots.actions?t(a.h7,{staticClass:"breakdance-dialog-actions"},[e._t("actions")],2):e._e(),e.resizable?t("div",{staticClass:"breakdance-dialog-resize-bar",on:{mousedown:e.dragStart}}):e._e()],1)],1)},l=[],c=n(70655),u=n(20144),d=n(38085),p=n(22608);let h=class extends u.ZP{constructor(){super(...arguments),this.resizing=!1,this.startResizingX=0,this.lastResizingX=0}get totalWidth(){return this.resizable?Math.max(this.width,this.width+this.lastResizingX-this.startResizingX):this.width}close(){this.$emit("input",!1),this.$emit("close")}dragStart(e){e.preventDefault(),e.stopPropagation(),this.startResizingX=e.clientX,this.resizing=!0,document.addEventListener("mousemove",this.onDrag),document.addEventListener("mouseup",this.dragEnd)}onDrag(e){e.preventDefault(),this.lastResizingX=e.clientX}dragEnd(e){e.preventDefault(),this.resizing=!1,document.removeEventListener("mousemove",this.onDrag),document.removeEventListener("mouseup",this.dragEnd)}};(0,c.gn)([(0,d.fI)()],h.prototype,"type",void 0),(0,c.gn)([(0,d.fI)()],h.prototype,"value",void 0),(0,c.gn)([(0,d.fI)({default:!1})],h.prototype,"closeable",void 0),(0,c.gn)([(0,d.fI)({default:!1})],h.prototype,"sticky",void 0),(0,c.gn)([(0,d.fI)({default:!1})],h.prototype,"resizable",void 0),(0,c.gn)([(0,d.fI)({default:!1})],h.prototype,"border",void 0),(0,c.gn)([(0,d.fI)({default:400})],h.prototype,"width",void 0),h=(0,c.gn)([(0,d.wA)({components:{IconButton:p.Z}})],h);const g=h,m=g;var v=n(1001),f=(0,v.Z)(m,r,l,!1,null,null,null);const y=f.exports},78:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"d-flex"},[e.elementIconIsLocal?t("Icon",{attrs:{icon:e.elementIcon,size:e.size}}):t("div",{style:{width:`${e.size}px`,height:`${e.size}px`,display:"flex"},domProps:{innerHTML:e._s(e.elementIcon)}})],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(85283),c=n(97657);let u=class extends i.ZP{get elementIcon(){return this.icon||"SquareIcon"}get elementIconIsLocal(){return c.iconNames.find((e=>e===this.elementIcon))}};(0,a.gn)([(0,r.fI)()],u.prototype,"icon",void 0),(0,a.gn)([(0,r.fI)({default:"14"})],u.prototype,"size",void 0),u=(0,a.gn)([(0,r.wA)({components:{Icon:l.Z}})],u);const d=u,p=d;var h=n(1001),g=(0,h.Z)(p,o,s,!1,null,null,null);const m=g.exports},85283:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g(e._b({class:{"breakdance-icon":!0,"breakdance-icon--clickable":e.hasClickEvent},style:{width:`${e.size}px`,height:e.heightAuto?"auto":`${e.size}px`,transform:e.rotate?`rotate(${e.rotate}deg)`:""}},"div",e.$attrs,!1),e.$listeners),[t("RawIcon",{attrs:{icon:e.icon}})],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(24192);let c=class extends i.ZP{get hasClickEvent(){return this.$listeners?.click}};(0,a.gn)([(0,r.fI)({default:14})],c.prototype,"size",void 0),(0,a.gn)([(0,r.fI)()],c.prototype,"rotate",void 0),(0,a.gn)([(0,r.fI)()],c.prototype,"icon",void 0),(0,a.gn)([(0,r.fI)()],c.prototype,"heightAuto",void 0),c=(0,a.gn)([(0,r.wA)({components:{RawIcon:l.Z}})],c);const u=c,d=u;var p=n(1001),h=(0,p.Z)(d,o,s,!1,null,null,null);const g=h.exports},22608:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(43432),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({ref:"button",class:e.classList,attrs:{"data-test-id":e.testId},on:{mouseenter:e.delayShowTooltip,mouseleave:e.closeTooltip}},e.listeners),[t("Icon",{attrs:{icon:e.icon,size:e.size,rotate:e.rotate}}),e.tooltip&&"oxygen"===e.builderMode?t(o.Z,{attrs:{activator:e.$refs.button,"content-class":"oxy-tooltip",bottom:"","open-delay":"500",transition:"0"},model:{value:e.showTooltip,callback:function(t){e.showTooltip=t},expression:"showTooltip"}},[e._v(" "+e._s(e.tooltip)+" ")]):e._e()],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(24192),u=n(85283),d=n(85450);let p=class extends r.ZP{constructor(){super(...arguments),this.showTooltip=!1,this.timeout=null}get classList(){return{"breakdance-toolbar-icon-button":!0,"breakdance-toolbar-icon-button-active":this.active,"breakdance-toolbar-icon-button-small-button":this.small,"breakdance-toolbar-icon-button-xs-button":this.xSmall,"breakdance-toolbar-icon-button-disabled":this.disabled}}get iconColor(){return this.active?"brand_primary":"gray1000"}get listeners(){return!this.disabled&&this.$listeners}get builderMode(){return d.configStore.builderMode}delayShowTooltip(){this.tooltip&&(this.timeout=setTimeout((()=>{this.showTooltip=!0}),500))}closeTooltip(){this.showTooltip=!1,this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}mounted(){const e=this.$refs.button;e&&this.tooltip&&e.addEventListener("click",this.closeTooltip)}beforeDestroy(){const e=this.$refs.button;e&&this.tooltip&&e.removeEventListener("click",this.closeTooltip)}};(0,i.gn)([(0,l.fI)()],p.prototype,"icon",void 0),(0,i.gn)([(0,l.fI)({default:!1})],p.prototype,"active",void 0),(0,i.gn)([(0,l.fI)({default:!1})],p.prototype,"disabled",void 0),(0,i.gn)([(0,l.fI)()],p.prototype,"testId",void 0),(0,i.gn)([(0,l.fI)()],p.prototype,"size",void 0),(0,i.gn)([(0,l.fI)()],p.prototype,"rotate",void 0),(0,i.gn)([(0,l.fI)({default:!1})],p.prototype,"xSmall",void 0),(0,i.gn)([(0,l.fI)({default:!1})],p.prototype,"small",void 0),(0,i.gn)([(0,l.fI)({default:""})],p.prototype,"tooltip",void 0),p=(0,i.gn)([(0,l.wA)({components:{Icon:u.Z,RawIcon:c.Z}})],p);const h=p,g=h;var m=n(1001),v=(0,m.Z)(g,s,a,!1,null,null,null);const f=v.exports},79333:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(56275),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(e.tag,e._g({tag:"component",staticClass:"breakdance-nice-button",class:e.classes,attrs:{disabled:e.disabled,href:e.href}},e.$listeners),[e.leftIcon?t("Icon",{staticClass:"mr-2",attrs:{icon:e.leftIcon,size:e.iconSize}}):e._e(),t("span",{staticClass:"breakdance-nice-button__text"},[e._t("default")],2),e.rightIcon?t("Icon",{staticClass:"ml-2",attrs:{icon:e.rightIcon}}):e._e(),e.loading?t("span",{staticClass:"breakdance-nice-button__loader"},[t(o.Z,{attrs:{width:2,size:20,indeterminate:"",color:"indigo"===e.color?"var(--white)":"primary"}})],1):e._e()],1)},a=[],i=n(70655),r=n(20144),l=n(38085),c=n(85283);let u=class extends r.ZP{get tag(){return this.href?"a":"button"}get classes(){return{[`breakdance-nice-button--${this.size}`]:!0,[`breakdance-nice-button--${this.color}`]:!0,"breakdance-nice-button--loading":this.loading,"breakdance-nice-button--disabled":this.disabled,"breakdance-nice-button--expanded":this.expanded}}get iconSize(){return"x-small"===this.size?10:"small"===this.size?14:16}};(0,i.gn)([(0,l.fI)({default:"default"})],u.prototype,"size",void 0),(0,i.gn)([(0,l.fI)()],u.prototype,"disabled",void 0),(0,i.gn)([(0,l.fI)()],u.prototype,"expanded",void 0),(0,i.gn)([(0,l.fI)()],u.prototype,"leftIcon",void 0),(0,i.gn)([(0,l.fI)()],u.prototype,"rightIcon",void 0),(0,i.gn)([(0,l.fI)({default:!1})],u.prototype,"loading",void 0),(0,i.gn)([(0,l.fI)({default:"secondary"})],u.prototype,"color",void 0),(0,i.gn)([(0,l.fI)()],u.prototype,"href",void 0),u=(0,i.gn)([(0,l.wA)({components:{Icon:c.Z}})],u);const d=u,p=d;var h=n(1001),g=(0,h.Z)(p,s,a,!1,null,null,null);const m=g.exports},3463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var o,s=n(73385),a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"container",staticClass:"control-section-as-popout"},[t("span",{staticClass:"control-section-as-popout-label"},[e._t("title")],2),t("Dropdown",e._b({attrs:{value:e.expanded,origin:"top right","max-width":e.width,"min-width":e.width,"max-height":"400","close-on-content-click":!1,title:e.title,transition:!1},on:{input:e.setExpanded},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[t("div",e._g(e._b({ref:"activator",staticClass:"popout-section-open-icon"},"div",o,!1),n),[t("Icon",{attrs:{icon:e.icon,size:e.iconSize}})],1)]}}])},"Dropdown",e.position(),!1),[e.expanded?t(s.Z,{staticClass:"popout-section-content"},[e._t("content")],2):e._e()],1)],1)},i=[],r=n(70655),l=n(20144),c=n(38085),u=n(22608),d=n(15133),p=n(85283),h=n(31044),g=n(95690);(function(e){e["Stacked"]="STACKED",e["StackedFirstVisible"]="STACKED_FIRST_VISIBLE",e["SideBySide"]="SIDE_BY_SIDE"})(o||(o={}));let m=class extends l.ZP{get icon(){return"breakdance"===h.PK.builderMode?"EditIcon":"EditSolidIcon"}get iconSize(){return"breakdance"===h.PK.builderMode?16:14}get width(){return"oxygen"===h.PK.builderMode?g.eF:g.R3}setExpanded(e){this.$emit("expand",e)}getPositionStrategy(e,t,n){const s=this.panelContext?.position||"left",a=t.getBoundingClientRect(),i=12,r=45,l="right"===s?-1:1;switch(e){case o.Stacked:return{x:a.x+i*l,y:a.y+r};case o.StackedFirstVisible:return 2===n?{x:(this.width+i)*l+a.x,y:a.y}:{x:a.x+i*l,y:a.y+r};case o.SideBySide:return{x:(this.width+i)*l+a.x,y:a.y};default:throw new TypeError(`Unsupported Popout Position: ${e}`)}}position(){const e=this.$refs.container;if(e&&this.nested){const t=e.closest(".v-menu__content"),n=h.kD.settings.popoutPosition||"STACKED";if(!t)return;const{x:o,y:s}=this.getPositionStrategy(n,t,this.depth);return{absolute:!0,positionX:o,positionY:s}}return{left:!0,bottom:!0,offsetY:!0}}beforeDestroy(){this.expanded&&this.setExpanded(!1)}};(0,r.gn)([(0,c.fI)({default:!1})],m.prototype,"expanded",void 0),(0,r.gn)([(0,c.fI)()],m.prototype,"title",void 0),(0,r.gn)([(0,c.fI)({default:!1})],m.prototype,"nested",void 0),(0,r.gn)([(0,c.fI)({default:0})],m.prototype,"depth",void 0),(0,r.gn)([(0,c.tB)({from:"panelContext",default:void 0})],m.prototype,"panelContext",void 0),m=(0,r.gn)([(0,c.wA)({components:{Icon:p.Z,Dropdown:d.Z,IconButton:u.Z}})],m);const v=m,f=v;var y=n(1001),b=(0,y.Z)(f,a,i,!1,null,null,null);const _=b.exports},24192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=n(70655),s=n(20144),a=n(38085),i=n(97657);let r=class extends s.ZP{render(e){const t=i;if(!t[this.icon])throw new Error(`${this.icon} is not a valid Icon name`);return e(t[this.icon])}};(0,o.gn)([(0,a.fI)()],r.prototype,"icon",void 0),r=(0,o.gn)([(0,a.wA)({})],r);const l=r,c=l;var u,d,p=n(1001),h=(0,p.Z)(c,u,d,!1,null,null,null);const g=h.exports},24603:(e,t,n)=>{"use strict";n.d(t,{Z:()=>z});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"oxy-class-token",class:{"oxy-class-token--invalid":e.missingSelector||e.isClassNameInvalid||e.isNestedSelectorInvalid,"oxy-class-token--active":e.active,"oxy-class-token--with-nested":e.nestedSelector&&!e.hideNestedToken,[`oxy-class-token--${e.selector?.type}`]:e.selector?.type},attrs:{"data-id":e.id},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.activateOrFocus.apply(null,arguments)},dblclick:e.enableRename}},[e.renaming||e.creating?e._e():[t("span",{staticClass:"oxy-class-token-source",on:{click:function(t){return e.$emit("clear-nested")}}},[e.missingSelector?[e._v(e._s(e.__("⚠️ (deleted)")))]:[e.selector?.locked?t("Icon",{staticClass:"oxy-class-token__lock-icon",attrs:{size:10,icon:"LockIcon"}}):e._e(),e._v(" "+e._s(e.name||e.selector?.name)+" ")]],2),e.nestedSelector&&!e.hideNestedToken?t("span",{staticClass:"oxy-class-token-nested",on:{click:function(e){e.preventDefault(),e.stopPropagation()}}},[e._v(" "+e._s(e.nestedSelector.name)+" ")]):e._e()],e.renaming?t("oxy-class-token-name-input",{attrs:{name:e.nestedSelector?.name||e.selector?.name,prefix:e.renamePrefix,invalid:e.isNestedSelectorInvalid||e.isClassNameInvalid,"error-message":e.nestedSelectorErrorMessage||e.classNameErrorMessage},on:{rename:e.persistRename,cancel:e.cancelRename}}):e.creating?t("oxy-class-token-name-input",{attrs:{name:e.__("Enter name"),prefix:`.${e.selector?.name}`,invalid:e.isNestedSelectorInvalid,"error-message":e.nestedSelectorErrorMessage},on:{rename:e.createNestedSelector,cancel:e.cancelNestedSelector}}):e._e(),e.canViewActions?t("oxy-class-token-actions",{attrs:{selector:e.selector,"nested-selector":e.nestedSelector,"missing-selector":e.missingSelector,editable:e.editable,creatable:e.creatable,removable:e.removable,lockable:e.lockable},on:{rename:e.enableRename,duplicate:e.duplicateSelector,delete:e.deleteSelector,remove:e.removeSelector,"toggle-lock":e.toggleLock,"edit-state":e.editSelectorState,"edit-nested-selector":e.activateNestedSelector,"create-nested-selector":e.enableCreate}}):e._e(),t("ConfirmDialog",{attrs:{show:e.showDeleteDialog,type:"error","action-text":"Delete","discard-text":"Cancel","save-is-enabled":!0,"discard-is-enabled":!0},on:{save:e.confirmDeleteSelector,discard:e.closeDeleteDialog,"click:outside":e.closeDeleteDialog},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.deleteDialogTitle))]},proxy:!0},{key:"text",fn:function(){return[e._v(e._s(e.deleteDialogMessage))]},proxy:!0}])})],2)},s=[],a=n(70655),i=n(38085),r=n(70248),l=n(11193),c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"actions",staticClass:"oxy-class-token-actions"},[t("Dropdown",{attrs:{"offset-y":"","nudge-top":-5,"nudge-left":e.offsetX,right:"","min-width":145,"max-width":150,"max-height":400},scopedSlots:e._u([{key:"activator",fn:function(){return[t("button",{staticClass:"oxy-class-token-actions__button",on:{click:function(t){t.stopPropagation(),e.menuOpen=!e.menuOpen}}},[t("Icon",{attrs:{icon:"ChevronDownIcon",size:10}}),t("span",{staticClass:"oxy-class-token-actions__button-overlay"})],1)]},proxy:!0}]),model:{value:e.menuOpen,callback:function(t){e.menuOpen=t},expression:"menuOpen"}},[t(r.Z,{staticClass:"oxy-class-token-actions-list"},e._l(e.items,(function(n){return t(e.getItemComponent(n),{key:n.label,tag:"component",class:{"is-destructive":n.destructive,"is-nudge":n.nudge},attrs:{disabled:n.disabled},on:{click:function(e){n.action&&n.action()}}},[n.header?t("div",{staticClass:"truncate"},[e._v(" "+e._s(n.label)+" ")]):t(l.V9,{staticClass:"oxy-class-token-actions-list-item"},[t("span",[e.isSelected(n)?t("Icon",{staticClass:"oxy-class-tokens-actions-list-item__indicator-icon",class:{"is-highlighted":n.highlight},attrs:{icon:"CheckIcon",size:"10"}}):n.highlight?t("span",{staticClass:"oxy-class-tokens-actions-list-item__indicator"}):e._e()],1),e._v(" "+e._s(n.label)+" ")])],1)})),1)],1)],1)},u=[],d=n(85283),p=n(15133),h=n(16068),g=n(84192),m=n(61908),v=n(22680),f=n(36055);let y=class extends i.w3{constructor(){super(...arguments),this.menuOpen=!1,this.offsetX=0}onMenuOpen(){this.menuOpen&&this.$nextTick((()=>{const e=this.$refs.actions,t=e.querySelector(".oxy-class-token-actions__button"),n=e.closest(".oxy-class-token");n&&(this.offsetX=n.offsetWidth-t.offsetWidth)}))}get items(){const e=e=>({id:e.id,label:e.name,nudge:!0,highlight:this.doesNestedSelectorContainValue(e.id),action:()=>this.$emit("edit-nested-selector",e)}),t=e=>{const t=this.selector?.children?.find((t=>t.name===e));return{id:t?.id||e,label:e,nudge:!0,highlight:!!t&&this.doesNestedSelectorContainValue(t?.id),action:()=>this.$emit("edit-state",e)}},n=h.Z0.map(t),o=this.selector?.children?.filter((e=>!h.Z0.includes(e.name)))?.map(e)||[],s=[{header:!0,label:`${this.selector?.name}`},{label:(0,f.__)("Rename"),disabled:this.missingSelector,action:()=>this.$emit("rename")},{label:(0,f.__)("Duplicate"),disabled:this.missingSelector,action:()=>this.$emit("duplicate")},this.removable?{label:(0,f.__)("Remove"),disabled:!!this.nestedSelector,action:()=>this.$emit("remove")}:void 0,{label:(0,f.__)("Delete"),destructive:!0,action:()=>this.$emit("delete")},this.lockable?{label:this.selector?.locked?(0,f.__)("Unlock"):(0,f.__)("Lock"),action:()=>this.$emit("toggle-lock")}:void 0].filter(Boolean),a=[{divider:!0},{label:(0,f.__)("States"),header:!0},...n,{divider:!0},{label:(0,f.__)("Nested Selectors"),header:!0},...o,{label:(0,f.__)("Create Selector"),disabled:this.missingSelector,action:()=>this.$emit("create-nested-selector")}];return this.creatable?[...s,...a]:s}doesNestedSelectorContainValue(e){const t=this.selector?.children?.find((t=>t.name===e||t.id===e));return!!Object.keys(t?.properties||{}).length}getItemComponent(e){return e.header?"v-subheader":e.divider?"v-divider":"v-list-item"}isSelected(e){const t=this.nestedSelector;return!(!t||!e.id)&&(t?.id===e?.id||t?.name===e?.id)}};(0,a.gn)([(0,i.fI)()],y.prototype,"selector",void 0),(0,a.gn)([(0,i.fI)()],y.prototype,"nestedSelector",void 0),(0,a.gn)([(0,i.fI)({default:!1})],y.prototype,"missingSelector",void 0),(0,a.gn)([(0,i.fI)({default:!0})],y.prototype,"editable",void 0),(0,a.gn)([(0,i.fI)({default:!0})],y.prototype,"creatable",void 0),(0,a.gn)([(0,i.fI)({default:!0})],y.prototype,"removable",void 0),(0,a.gn)([(0,i.fI)({default:!0})],y.prototype,"lockable",void 0),(0,a.gn)([(0,i.RL)("menuOpen")],y.prototype,"onMenuOpen",null),y=(0,a.gn)([(0,i.wA)({components:{Icon:d.Z,Dropdown:p.Z,VDivider:g.Z,VListItem:m.Z,VSubheader:v.Z}})],y);const b=y,_=b;var I=n(1001),w=(0,I.Z)(_,c,u,!1,null,null,null);const x=w.exports;var S=n(31044),C=n(43432),k=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(C.Z,{attrs:{text:"Tooltip",top:"",disabled:!e.invalid,value:e.invalid},scopedSlots:e._u([{key:"activator",fn:function({attrs:n}){return[t("span",e._b({staticClass:"oxy-class-token-rename"},"span",n,!1),[e.prefix?t("span",{staticClass:"oxy-class-token-rename__prefix"},[e._v(" "+e._s(e.prefix)+" ")]):e._e(),t("span",{ref:"renameInput",staticClass:"oxy-class-token-rename__input",attrs:{contenteditable:"true"},on:{blur:function(t){return e.$emit("cancel")},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.$emit("rename",e.nameToRename)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("cancel")},function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault()}],input:function(t){e.nameToRename=t.target.textContent}}},[e._v(" "+e._s(e.name)+" ")])])]}}])},[t("span",{domProps:{innerHTML:e._s(e.errorMessage)}})])},P=[];let Z=class extends i.w3{constructor(){super(...arguments),this.nameToRename=this.name}mounted(){this.$nextTick((()=>{const e=this.$refs.renameInput;e.focus();const t=document.createRange();t.selectNodeContents(e);const n=window.getSelection();n?.removeAllRanges(),n?.addRange(t)}))}};(0,a.gn)([(0,i.fI)()],Z.prototype,"name",void 0),(0,a.gn)([(0,i.fI)()],Z.prototype,"prefix",void 0),(0,a.gn)([(0,i.fI)()],Z.prototype,"invalid",void 0),(0,a.gn)([(0,i.fI)()],Z.prototype,"errorMessage",void 0),Z=(0,a.gn)([(0,i.wA)({})],Z);const D=Z,E=D;var T=(0,I.Z)(E,k,P,!1,null,null,null);const A=T.exports;var M=n(37982),V=n(99969);let B=class extends i.w3{constructor(){super(...arguments),this.renaming=!1,this.creating=!1,this.showDeleteDialog=!1,this.createPlaceholder=(0,f.__)("Enter name"),this.isClassNameInvalid=!1,this.classNameErrorMessage="",this.isNestedSelectorInvalid=!1,this.nestedSelectorErrorMessage=""}get elementId(){return S.kD.activeElementId}get element(){return S.kD.activeElement}get selector(){return S.cr.oxySelectors.find((e=>e.id===this.id))}get missingSelector(){return!this.selector&&!this.demo}get canViewActions(){return this.editable&&!this.renaming&&!this.demo}get renamePrefix(){return this.nestedSelector&&!this.hideNestedToken?`.${this.selector?.name} `:""}get deleteDialogTitle(){return this.nestedSelector?(0,f.__)("Delete nested selector permanently?"):(0,f.__)("Delete selector permanently?")}get deleteDialogMessage(){if(!this.selector)return(0,f.__)("This selector is no longer available. Remove it from the element?");const e=this.nestedSelector?`.${this.selector.name} ${this.nestedSelector.name}`:this.selector.name;return(0,f.gB)((0,f.__)('You\'re about to delete "%s" permanently from the site. Are you sure?'),e)}persistRename(e){if(!this.selector)return;this.isClassNameInvalid=!1;const t=e?.trim(),n=this.nestedSelector?.name||this.selector.name;if(t!==n){if(!t)return this.isClassNameInvalid=!0,void(this.classNameErrorMessage=(0,f.__)("Name must be 1 character or more"));if(this.nestedSelector){if((0,h.EF)(t,this.selector.id,this.nestedSelector.id))return this.isClassNameInvalid=!0,void(this.classNameErrorMessage=(0,f.__)("Name is already in use"));(0,h.ET)(this.selector.id,this.nestedSelector.id,t)}else{if((0,h.hP)(t,this.selector.id))return this.isClassNameInvalid=!0,void(this.classNameErrorMessage=(0,f.__)("Name is already in use"));(0,h.kW)(this.selector.id,t)}this.renaming=!1,this.isClassNameInvalid=!1,this.classNameErrorMessage=""}else this.renaming=!1}duplicateSelector(){const e=this.selector;if(!e)return;if(this.nestedSelector){const t=(0,h.GH)(e.id,this.nestedSelector.id);if(!t)return;return this.activateNestedSelector(t),void this.$nextTick(this.enableRename)}const t=(0,h.j0)(e.id);if(t){if(this.element&&this.elementId){const n=(0,h.Xn)(this.element).map((e=>e.id)).filter((t=>t!==e.id));(0,h.E4)(this.elementId,[...n,t.id]),this.$nextTick(this.enableRename)}this.$emit("select",t.id)}}removeSelector(){(0,h._Y)(this.elementId,this.id),this.$emit("clear-select")}deleteSelector(){this.selector?this.showDeleteDialog=!0:this.confirmDeleteSelector()}closeDeleteDialog(){this.showDeleteDialog=!1}confirmDeleteSelector(){if(!this.selector)return(0,h._Y)(this.elementId,this.id),void this.closeDeleteDialog();this.nestedSelector?(0,h.Mg)(this.selector.id,this.nestedSelector.id):(this.elementId&&(0,h._Y)(this.elementId,this.selector.id),(0,h.EK)(this.selector.id)),this.closeDeleteDialog(),this.$emit("clear-select")}editSelectorState(e){if(!this.selector)return;const t=this.selector?.children?.find((t=>t.name===e));if(!t){const t=(0,h.Hj)(e);(0,h.aN)(this.selector.id,t)}const n=this.selector.children?.find((t=>t.name===e));n&&this.activateNestedSelector(n)}activateNestedSelector(e){this.activateOrFocus(),this.$emit("select-nested",e.id)}createNestedSelector(e){if(!this.selector)return;if(e===this.createPlaceholder)return this.isNestedSelectorInvalid=!0,void(this.nestedSelectorErrorMessage=(0,f.__)("Name must be 1 character or more"));const t=new RegExp(`^${this.selector.name}`),n=e.replace(t,"").trim();if(!n)return this.isNestedSelectorInvalid=!0,void(this.nestedSelectorErrorMessage=(0,f.__)("Name must be 1 character or more"));if((0,h.EF)(n,this.selector.id))return this.isNestedSelectorInvalid=!0,void(this.nestedSelectorErrorMessage=(0,f.__)("Name is already in use"));const o=(0,h.Hj)(n);(0,h.aN)(this.selector.id,o),this.activateNestedSelector(o),this.creating=!1,this.isNestedSelectorInvalid=!1,this.nestedSelectorErrorMessage=""}cancelNestedSelector(){this.creating=!1,this.isNestedSelectorInvalid=!1,this.nestedSelectorErrorMessage=""}enableRename(){this.missingSelector||(this.renaming=!0)}cancelRename(){this.renaming=!1,this.isClassNameInvalid=!1,this.classNameErrorMessage=""}enableCreate(){this.creating=!0}activateOrFocus(){this.renaming||this.$emit("select",this.selector?.id)}toggleLock(){this.selector&&(0,h.Jf)(this.selector.id)}};(0,a.gn)([(0,i.fI)({default:!1})],B.prototype,"active",void 0),(0,a.gn)([(0,i.fI)()],B.prototype,"id",void 0),(0,a.gn)([(0,i.fI)()],B.prototype,"name",void 0),(0,a.gn)([(0,i.fI)({default:!0})],B.prototype,"editable",void 0),(0,a.gn)([(0,i.fI)({default:!0})],B.prototype,"creatable",void 0),(0,a.gn)([(0,i.fI)({default:!0})],B.prototype,"removable",void 0),(0,a.gn)([(0,i.fI)({default:!0})],B.prototype,"lockable",void 0),(0,a.gn)([(0,i.fI)({default:!1})],B.prototype,"demo",void 0),(0,a.gn)([(0,i.fI)()],B.prototype,"nestedSelector",void 0),(0,a.gn)([(0,i.fI)({default:!1})],B.prototype,"hideNestedToken",void 0),B=(0,a.gn)([(0,i.wA)({components:{Icon:d.Z,ConfirmDialog:V.Z,OxyClassTokenNameInput:A,OxyClassTokenActions:x}})],B);const O=B,L=O;var $=(0,I.Z)(L,o,s,!1,null,null,null);const z=$.exports},92221:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("span",{staticClass:"oxy-indicator-lights",on:{click:function(t){return t.stopPropagation(),e.resetControl.apply(null,arguments)}}})},s=[],a=n(70655),i=n(38085);let r=class extends i.w3{resetControl(){this.resetOnClick&&(this.syncedValue=void 0)}};(0,a.gn)([(0,i.yU)("value","input")],r.prototype,"syncedValue",void 0),(0,a.gn)([(0,i.fI)({default:!0})],r.prototype,"resetOnClick",void 0),r=(0,a.gn)([(0,i.wA)({})],r);const l=r,c=l;var u=n(1001),d=(0,u.Z)(c,o,s,!1,null,null,null);const p=d.exports},80115:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var o=n(43432),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(o.Z,{attrs:{"content-class":"oxy-tooltip oxy-control-name-tooltip",bottom:"","open-delay":"100",transition:"0",disabled:!e.showTooltip},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("oxygen-display-value",e._g({staticClass:"oxy-control-name",attrs:{"is-filled":e.filled,"is-inheriting":e.isInheriting,"is-overwritten":e.isOverwritten,"is-variable":e.isGlobalVariable,"apply-fill-class":e.applyFillClass},on:{dblclick:function(t){return e.$emit("reset",t)}}},n),[e._t("default")],2)]}}],null,!0)},[[e.isInheriting?[t("strong",[e._v(e._s(e.__("Value comes from:")))])]:e.isOverwritten?[t("strong",[e._v(e._s(e.__("Value is overwritten by:")))])]:e._e(),e.isFromBreakpoint?t("div",{staticClass:"oxy-control-name-tooltip-item"},[e.deviceIcon?t("Icon",{attrs:{icon:e.deviceIcon,rotate:e.deviceIconRotation,size:14}}):e._e(),t("strong",[e._v(e._s(e.breakpointLabel))])],1):t("div",{staticClass:"oxy-control-name-tooltip-item"},[e.deviceIcon?t("Icon",{attrs:{icon:e.deviceIcon,rotate:e.deviceIconRotation,size:14}}):e._e(),t("oxy-class-token",{attrs:{editable:!1,active:!0,demo:!0,name:e.selectorLabel}})],1)]],2)},a=[],i=n(70655),r=n(38085),l=n(85450),c=n(24111),u=n(57088),d=n(24603),p=n(85283),h=n(90889),g=n(37156),m=n(16980),v=n(36055);let f=class extends r.w3{get inheritance(){return this.context?.getControlInheritance(this.path)}get isInheriting(){return(0,g.Ms)(this.inheritance)}get isOverwritten(){return(0,g.i7)(this.inheritance)}get selectorLabel(){const e=l.globalStore.oxySelectors.find((e=>e.id===this.inheritance?.from));return e?(0,c.I)(e):null}get breakpoint(){return this.inheritance?.breakpoint}get breakpointLabel(){const e=l.configStore.breakpoints.find((e=>e.id===this.breakpoint));return e?.label||(0,v.__)("Unknown breakpoint")}get deviceIcon(){return this.breakpoint?u.b8[this.breakpoint]?.icon||u.nR:null}get deviceIconRotation(){return this.breakpoint?u.b8[this.breakpoint]?.rotate:0}get isGlobalVariable(){return!this.isInheriting&&(0,h.Hk)(this.inheritance?.value)}get isFromBreakpoint(){return(0,g.CD)(this.inheritance)}get showTooltip(){return(this.isOverwritten||this.isInheriting)&&this.inheritance}};(0,i.gn)([(0,r.fI)({default:!1})],f.prototype,"filled",void 0),(0,i.gn)([(0,r.tB)({from:"oxyContext",default:null})],f.prototype,"context",void 0),(0,i.gn)([(0,r.fI)()],f.prototype,"path",void 0),(0,i.gn)([(0,r.fI)({default:!0})],f.prototype,"applyFillClass",void 0),f=(0,i.gn)([(0,r.wA)({components:{Icon:p.Z,OxyClassToken:d.Z,OxygenDisplayValue:m.Z}})],f);const y=f,b=y;var _=n(1001),I=(0,_.Z)(b,s,a,!1,null,null,null);const w=I.exports},16980:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("span",e._g({staticClass:"oxy-display-value",class:{"is-filled":e.isFilled&&e.applyFillClass,"is-inheriting":e.isInheriting,"is-overwritten":e.isOverwritten&&e.isFilled,"is-variable":e.isVariable}},e.$listeners),[e._t("default")],2)},s=[],a=n(70655),i=n(20144),r=n(38085);let l=class extends i.ZP{};(0,a.gn)([(0,r.fI)()],l.prototype,"isInheriting",void 0),(0,a.gn)([(0,r.fI)()],l.prototype,"isOverwritten",void 0),(0,a.gn)([(0,r.fI)()],l.prototype,"isVariable",void 0),(0,a.gn)([(0,r.fI)()],l.prototype,"isFilled",void 0),(0,a.gn)([(0,r.fI)({default:!0})],l.prototype,"applyFillClass",void 0),l=(0,a.gn)([(0,r.wA)({})],l);const c=l,u=c;var d=n(1001),p=(0,d.Z)(u,o,s,!1,null,null,null);const h=p.exports},85412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"override-variables"},[t("Repeater",{attrs:{value:e.variables,control:e.control},on:{input:function(t){return e.$emit("input",t)}},scopedSlots:e._u([{key:"default",fn:function({index:n,value:o}){return[t("VariableRepeaterItem",{attrs:{variable:o,"repeater-index":n,"variables-to-override":e.variablesToOverride,vertical:!0,"existing-variable-ids":e.variableIds},on:{input:function(t){return e.setVariable(t,n)}}})]}}])})],1)},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(90889),c=n(85450),u=n(55645),d=n(23128),p=n(36055);let h=class extends i.ZP{beforeCreate(){this.$options.components.Repeater=n(62485).Z}get variables(){return this.value||[]}get variablesToOverride(){return c.globalStore.variables}get variableIds(){return this.variables.map((e=>e.id))}get control(){return{options:{repeaterOptions:{buttonName:(0,p.__)("Add Variable"),popupMode:!0,noDisable:!0,noDuplicate:!0,disableFloatingAddButton:!0,titleTemplate:this.repeaterVariableTemplate,defaultNewValue:{id:"{uuid}",type:"",label:"",cssVariableName:"",override:!0}}}}}setVariable(e,t){const n=(0,d.Z)(this.variables)||[];n[t]=e,this.$emit("input",n)}repeaterVariableTemplate(e){const t=this.variablesToOverride.find((t=>t.id===e.id)),n=t?t.cssVariableName:e.cssVariableName;if(!n)return(0,p.__)("(empty)");const o=(0,l.A6)(e)?(0,p.__)("(empty)"):(0,l.Db)(e);return`--${n}: ${o}`}};(0,a.gn)([(0,r.fI)({default(){return[]}})],h.prototype,"value",void 0),h=(0,a.gn)([(0,r.wA)({components:{VariableRepeaterItem:u.Z}})],h);const g=h,m=g;var v=n(1001),f=(0,v.Z)(m,o,s,!1,null,null,null);const y=f.exports},71657:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Se});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"variable-bound-input"},[e.isGlobalVariable?t("VariableChip",{attrs:{type:e.variableType,path:e.path,value:e.value,"global-variable":e.globalVariable,"color-type":e.colorType,small:e.small},on:{input:e.setVariable,clear:function(t){return e.$emit("input",null)}}}):[e._t("default"),e.disabled?e._e():t("VariableChooser",{attrs:{name:e.name,type:e.variableType,path:e.path,value:e.value,"color-type":e.colorType,"can-create":e.canCreate,"variable-to-ignore":e.variableToIgnore,offset:-22},on:{input:e.setVariable},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("button",e._g({staticClass:"variable-bound-input-toggle",attrs:{tabindex:"-1"}},n),[t("Icon",{staticClass:"variable-bound-input__dollar",attrs:{icon:"DollarIcon",size:8}}),t("Icon",{staticClass:"variable-bound-input__plus",attrs:{icon:"PlusIcon",size:8}})],1)]}}],null,!1,2165600799)})]],2)},s=[],a=n(70655),i=n(38085),r=n(90889),l=n(85283),c=n(73385),u=n(70248),d=n(43432),p=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.isVariablesEnabled?t("div",{staticClass:"variables-chooser"},[t("Dropdown",e._b({attrs:{"close-on-content-click":!1,"offset-y":"","nudge-top":e.offset,"max-width":e.popoutWidth,"min-width":e.popoutWidth,"max-height":"350","content-class":"variables-chooser-dropdown",title:"Variables"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[e._t("activator",(function(){return[t("button",e._g({staticClass:"variables-chooser-button breakdance-control-modifier-icon",attrs:{"data-test-id":"variables-chooser-button"}},n),[t("Icon",{attrs:{icon:"DollarIcon",size:e.iconSize}})],1)]}),{on:n})]}},{key:"actions",fn:function(){return[e.selectedVariable?t(d.Z,{attrs:{"content-class":"oxy-tooltip",top:"","open-delay":500,transition:"0"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("button",e._g({staticClass:"dropdown-action-icon",on:{click:e.detachVariable}},n),[t("Icon",{attrs:{icon:"LinkSimpleSlashSolidIcon",size:"12"}})],1)]}}],null,!1,2240400511)},[t("span",[e._v(e._s(e.__("Detach")))])]):e._e(),t("SaveVariableDropdown",{attrs:{name:e.name,type:e.type,path:e.path,value:e.value,open:e.isCreatingVariable},on:{toggle:function(t){e.isCreatingVariable=t},input:e.setVariable}})]},proxy:!0}],null,!0),model:{value:e.isDialogOpen,callback:function(t){e.isDialogOpen=t},expression:"isDialogOpen"}},"Dropdown",e.position(),!1),[t(c.Z,{staticClass:"vscroll-scroll vscroll-wrap"},[e.globalVariables.length||e.filteredVariables.length?t("SearchInput",{ref:"searchInput",attrs:{placeholder:e.__("Search variables"),wide:!0,autofocus:e.autofocus},model:{value:e.searchQuery,callback:function(t){e.searchQuery=t},expression:"searchQuery"}}):e._e(),t(u.Z,{staticClass:"variables-chooser-variables"},[t("VariableChooserList",{attrs:{"selected-variable":e.selectedVariable,variables:e.filteredVariables,"override-variables":e.overrideVariables,"icon-size":e.iconSize},on:{select:e.setVariable}}),t("VariableChooserEmpty",{attrs:{"no-results":!e.filteredVariables.length,"no-global":!e.globalVariables.length}})],1)],1)],1)],1):e._e()},h=[],g=n(20144),m=n(85450),v=n(42274),f=n(41571),y=n(38562),b=n(9793),_=n(15133),I=n(84336),w=n(91136),x=n(61908),S=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"variables-chooser-variables-list"},e._l(e.variables,(function(n){return t(x.Z,{key:n.id,staticClass:"variables-chooser-variable",class:{"variables-chooser-variable--selected":e.isVariableSelected(n)},attrs:{link:""},on:{click:function(t){return e.$emit("select",n)}}},[t("VariableIcon",{staticClass:"variables-chooser-variable__icon",attrs:{type:n.type,iconSize:e.iconSize}}),t("span",{staticClass:"variables-chooser-variable__title mr-auto"},[e._v(" "+e._s(n.label||e.__("(no name)"))+" ")]),t("span",{staticClass:"variables-chooser-variable__value truncate"},["color"===n.type?t("ColorSwatch",{attrs:{"color-code":e.colorCode(n)}}):e._e(),e._v(" "+e._s(e.previewValue(n))+" ")],1)],1)})),1)},C=[],k=n(3735),P=n(48973),Z=n(86042);let D=class extends g.ZP{isVariableSelected(e){return this.selectedVariable?.id===e.id}getOverrideVariable(e){return this.overrideVariables.find((t=>t.id===e.id))}previewValue(e){const t=this.getOverrideVariable(e);return(0,r.Db)(e,t)||"-"}colorCode(e){const t=this.getOverrideVariable(e),n=(0,r.RX)((0,r.sj)(e,t));return"color"===e.type?(0,k.zG)(n,Z.Dz.decode,(0,P.g_)((()=>n),(e=>e.value))):""}};(0,a.gn)([(0,i.fI)({default(){return[]}})],D.prototype,"variables",void 0),(0,a.gn)([(0,i.fI)({default(){return[]}})],D.prototype,"overrideVariables",void 0),(0,a.gn)([(0,i.fI)()],D.prototype,"selectedVariable",void 0),(0,a.gn)([(0,i.fI)({default:10})],D.prototype,"iconSize",void 0),D=(0,a.gn)([(0,i.wA)({components:{VariableIcon:w.Z,ColorSwatch:b.Z}})],D);const E=D,T=E;var A=n(1001),M=(0,A.Z)(T,S,C,!1,null,null,null);const V=M.exports;var B=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.noGlobal||e.noResults?t("div",{staticClass:"variable-chooser-empty-state text-center"},[e.noGlobal?[t("h3",{staticClass:"variable-chooser-empty-state__title"},[e._v(e._s(e.__("No variables")))]),t("span",{staticClass:"variable-chooser-empty-state__description"},[e._v(" "+e._s(e.__("Create and manage variables in the"))+" "),t("button",{on:{click:e.openVariablesPanel}},[e._v(e._s(e.__("Variables panel.")))])])]:e.noResults?t("div",{staticClass:"variable-chooser-empty-state__description"},[e._v(" "+e._s(e.__("No matching variables found."))+" ")]):e._e()],2):e._e()},O=[],L=n(95690);let $=class extends g.ZP{openVariablesPanel(){(0,L.oM)("variables")}};(0,a.gn)([(0,i.fI)({default:!1})],$.prototype,"noResults",void 0),(0,a.gn)([(0,i.fI)({default:!1})],$.prototype,"noGlobal",void 0),$=(0,a.gn)([(0,i.wA)({components:{}})],$);const z=$,N=z;var H=(0,A.Z)(N,B,O,!1,null,null,null);const R=H.exports;var G=n(37179),F=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"container",staticClass:"save-variables"},[t("Dropdown",{attrs:{title:"New variable","max-width":e.popoutWidth,"min-width":e.popoutWidth,"close-on-content-click":!1,left:!0,bottom:!0,"offset-Y":!0,nudgeRight:34,"nudge-top":-26,"z-index":20},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("button",e._g({staticClass:"dropdown-action-icon"},n),[t("Icon",{attrs:{icon:"PlusIcon",size:"12"}})],1)]}}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t(c.Z,{staticClass:"vscroll-scroll vscroll-wrap save-variable-content"},[t("div",{staticClass:"save-variable-form"},[t("div",{ref:"content",staticClass:"save-variable-column variable-repeater-item__name"},[t("VariableIcon",{staticClass:"variable-repeater-item__icon",attrs:{type:e.type,iconSize:10}}),t("TextInput",{attrs:{placeholder:e.__("Name")},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.save.apply(null,arguments)}},model:{value:e.variableLabel,callback:function(t){e.variableLabel=t},expression:"variableLabel"}})],1),t(e.getInputForVariableType(e.type),{tag:"component",staticClass:"save-variable-column variable-repeater-item__value",attrs:{"show-global":!1,expanded:!0,placeholder:e.__("Value")},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.save.apply(null,arguments)}},model:{value:e.variableValue,callback:function(t){e.variableValue=t},expression:"variableValue"}}),e.collections.length?t("DropdownInput",{staticClass:"save-variable-column",attrs:{items:e.collections,placeholder:e.__("Collection")},model:{value:e.variableCollection,callback:function(t){e.variableCollection=t},expression:"variableCollection"}}):e._e()],1),t("div",{staticClass:"save-variable-actions"},[t(G.Z,{attrs:{text:"",small:""},on:{click:function(t){e.isOpen=!1}}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(G.Z,{attrs:{color:"blue",small:"",dark:"",disabled:!e.variableLabel},on:{click:e.save}},[e._v(" "+e._s(e.__("Save"))+" ")])],1)])],1)],1)},U=[],W=n(89137),j=n(8773),X=n(41836),q=n(23267),K=n(40616),Y=n(71821),J=n(56823),Q=n(665);let ee=class extends g.ZP{constructor(){super(...arguments),this.variableLabel="",this.variableValue=null,this.variableCollection=""}onOpenChange(){this.isOpen&&(this.variableLabel=this.getDefaultName(),this.isImageValue(this.value)?this.variableValue=this.value.url:this.variableValue=this.value,this.$nextTick((()=>this.focusAndSelectInput())))}get variableLabels(){return m.globalStore.variables.map((e=>e.label))}get collections(){return m.globalStore.variablesCollections}get popoutWidth(){return L.eF}getInputForVariableType(e){return(0,r.pF)(e)}getDefaultName(){const e=this.name||this.type,t=e.charAt(0).toUpperCase()+e.slice(1).replace(/family|_/g,"").trim();return(0,r.ZJ)(t,this.variableLabels)}focusAndSelectInput(){const e=this.$refs.content;if(!e)return;const t=e.querySelector("input");setTimeout((()=>{t?.focus(),t?.select()}),100)}setValue(e){this.variableValue=e}save(){const e={id:(0,j.Z)(),cssVariableName:(0,r.dw)(this.variableLabel),type:this.type,label:this.variableLabel,value:this.variableValue,collection:this.variableCollection||r.xD};(0,X.Ds)(e),this.variableLabel="",this.variableValue=null,this.$emit("input",e),this.$emit("close")}isImageValue(e){const t=Q.V0.decode;return(0,k.zG)(e,t,(0,P.g_)((()=>!1),(()=>!0)))}};(0,a.gn)([(0,i.yU)("open","toggle")],ee.prototype,"isOpen",void 0),(0,a.gn)([(0,i.fI)()],ee.prototype,"name",void 0),(0,a.gn)([(0,i.fI)()],ee.prototype,"type",void 0),(0,a.gn)([(0,i.fI)()],ee.prototype,"path",void 0),(0,a.gn)([(0,i.fI)()],ee.prototype,"value",void 0),(0,a.gn)([(0,i.RL)("isOpen")],ee.prototype,"onOpenChange",null),ee=(0,a.gn)([(0,i.wA)({components:{DropdownInput:I.Z,Dropdown:_.Z,VariableIcon:w.Z,UnitInput:J.Z,ColorInput:Y.Z,FontFamilyInput:K.Z,NumberInput:q.Z,TextInput:f.Z,Icon:l.Z,Dialog:W.Z}})],ee);const te=ee,ne=te;var oe=(0,A.Z)(ne,F,U,!1,null,null,null);const se=oe.exports;let ae=class extends g.ZP{constructor(){super(...arguments),this.searchQuery="",this.autofocus=!1,this.isDialogOpen=!1,this.isCreatingVariable=!1,this.keepMaskOpenOnClose=!1}onDialogOpenChange(){this.isDialogOpen?(this.keepMaskOpenOnClose=m.uiStore.panelState.oxyPanelIsMasked,m.uiStore.setPanelState({...m.uiStore.panelState,oxyPanelIsMasked:!0}),setTimeout((()=>{this.autofocus=!0}),100)):(this.autofocus=!1,this.closeMask())}get popoutWidth(){return L.eF}get activeElement(){return m.uiStore.activeElement}get isVariablesEnabled(){return"oxygen"===m.configStore.builderMode}get globalVariables(){return m.globalStore.variables.filter((e=>e.type===this.type)).filter((e=>(0,r.Jj)(e,this.colorType))).filter((e=>!this.variableToIgnore||e.id!==this.variableToIgnore))}get overrideVariables(){return(0,r.jN)()}get filteredVariables(){return(0,r.pG)(this.globalVariables,this.searchQuery)}get selectedVariable(){return(0,r.X_)(this.value)}detachVariable(){this.$emit("input",this.selectedVariable?.value||null),this.closeMask(),this.isDialogOpen=!1}setVariable(e){const t=`{var-${e.id}}`;if("unit"===this.type){const e="custom",n=(0,v.r)(t,e);this.$emit("input",{number:t,unit:e,style:n})}else this.$emit("input",t);this.closeMask(),this.isDialogOpen=!1}position(){const e=this.panelContext?.position||"left";return"right"===e?{right:!0,nudgeLeft:20}:{left:!0,nudgeLeft:-20}}closeMask(){this.keepMaskOpenOnClose?this.keepMaskOpenOnClose=!1:m.uiStore.setPanelState({...m.uiStore.panelState,oxyPanelIsMasked:!1})}};(0,a.gn)([(0,i.fI)()],ae.prototype,"path",void 0),(0,a.gn)([(0,i.fI)()],ae.prototype,"name",void 0),(0,a.gn)([(0,i.fI)()],ae.prototype,"value",void 0),(0,a.gn)([(0,i.fI)({default:10})],ae.prototype,"iconSize",void 0),(0,a.gn)([(0,i.fI)({default:-4})],ae.prototype,"offset",void 0),(0,a.gn)([(0,i.fI)({default:""})],ae.prototype,"type",void 0),(0,a.gn)([(0,i.fI)()],ae.prototype,"colorType",void 0),(0,a.gn)([(0,i.fI)({default:!0})],ae.prototype,"canCreate",void 0),(0,a.gn)([(0,i.fI)()],ae.prototype,"variableToIgnore",void 0),(0,a.gn)([(0,i.tB)({from:"panelContext",default:void 0})],ae.prototype,"panelContext",void 0),(0,a.gn)([(0,i.RL)("isDialogOpen")],ae.prototype,"onDialogOpenChange",null),ae=(0,a.gn)([(0,i.wA)({components:{SaveVariableDropdown:se,Icon:l.Z,ColorSwatch:b.Z,TextInput:f.Z,SearchInput:y.Z,Dropdown:_.Z,DropdownInput:I.Z,VariableIcon:w.Z,VariableChooserEmpty:R,VariableChooserList:V}})],ae);const ie=ae,re=ie;var le=(0,A.Z)(re,p,h,!1,null,null,null);const ce=le.exports;var ue=n(60092),de=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("VariableChooser",{attrs:{type:e.type,path:e.path,value:e.value,"color-type":e.colorType},on:{input:e.globalVariableChosen},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("div",e._g({staticClass:"variables-input"},n),[t("div",{class:e.classes,attrs:{role:"button","data-test-id":"variables-input-chip",title:e.globalVariable?.label},on:{dblclick:e.openPanel}},[e.globalVariable?[t("div",{staticClass:"variables-input-chip__label"},[t("VariableIcon",{staticClass:"mr-1",attrs:{type:e.globalVariable.type,iconSize:e.iconSize}}),t("div",{staticClass:"truncate"},[e._v(" "+e._s(e.globalVariable.label||e.__("(no name)"))+" ")])],1),t("div",{staticClass:"variables-input-chip__actions"},[t("Icon",{staticClass:"variables-input-chip__action-button",attrs:{icon:"CloseIcon",size:"12",title:e.__("Clear Variable")},on:{click:function(t){return t.stopPropagation(),e.clear.apply(null,arguments)}}})],1)]:[t(ue.Z,{attrs:{"offset-y":"",left:"","max-width":"250","nudge-bottom":15},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[t("span",e._g(e._b({staticClass:"variables-input-chip__label"},"span",o,!1),n),[e._v(e._s(e.__("Deleted")))])]}}],null,!0)},[t(c.Z,{staticClass:"pa-3 text-sm2"},[t("h4",{staticClass:"mb-2"},[e._v(e._s(e.__("Warning: Deleted Variable")))]),t("p",{staticClass:"text-sm text-gray-700 mb-2"},[e._v(" "+e._s(e.__("This variable has been deleted, but it is still used here."))+" "),t("strong",[e._v(e._s(e.__("Unlink it or select a new variable.")))])]),t("NiceButton",{attrs:{size:"small"},on:{click:e.clear}},[e._v(" "+e._s(e.__("Unlink variable"))+" ")])],1)],1)]],2)])]}}])})},pe=[],he=n(79333),ge=n(96074);let me=class extends g.ZP{globalVariableChosen(e){this.$emit("input",e)}get classes(){return{"variables-input-chip":!0,"variables-input-chip--small":this.small,"variables-input-chip--default":!this.small,"variables-input-chip--deleted":!this.globalVariable}}clear(){this.$emit("input",null)}openPanel(){(0,L.oM)("variables")}};(0,a.gn)([(0,i.fI)()],me.prototype,"globalVariable",void 0),(0,a.gn)([(0,i.fI)()],me.prototype,"value",void 0),(0,a.gn)([(0,i.fI)()],me.prototype,"type",void 0),(0,a.gn)([(0,i.fI)()],me.prototype,"path",void 0),(0,a.gn)([(0,i.fI)({default:10})],me.prototype,"iconSize",void 0),(0,a.gn)([(0,i.fI)()],me.prototype,"colorType",void 0),(0,a.gn)([(0,i.fI)({default:!1})],me.prototype,"small",void 0),me=(0,a.gn)([(0,i.wA)({components:{Icon:l.Z,DynamicDataChooser:ge.Z,VariableChooser:ce,NiceButton:he.Z,VariableIcon:w.Z,Dropdown:_.Z}})],me);const ve=me,fe=ve;var ye=(0,A.Z)(fe,de,pe,!1,null,null,null);const be=ye.exports;let _e=class extends i.w3{get isGlobalVariable(){return(0,r.Hk)(this.value)}get globalVariable(){return(0,r.X_)(this.value)}get variableType(){return(0,r.Xb)(this.type)}setVariable(e){this.$emit("input",e)}};(0,a.gn)([(0,i.fI)({default:void 0})],_e.prototype,"value",void 0),(0,a.gn)([(0,i.fI)({default:"Variable"})],_e.prototype,"name",void 0),(0,a.gn)([(0,i.fI)({default:"text"})],_e.prototype,"type",void 0),(0,a.gn)([(0,i.fI)()],_e.prototype,"path",void 0),(0,a.gn)([(0,i.fI)()],_e.prototype,"colorType",void 0),(0,a.gn)([(0,i.fI)({default:!1})],_e.prototype,"small",void 0),(0,a.gn)([(0,i.fI)({default:!1})],_e.prototype,"disabled",void 0),(0,a.gn)([(0,i.fI)({default:!0})],_e.prototype,"canCreate",void 0),(0,a.gn)([(0,i.fI)()],_e.prototype,"variableToIgnore",void 0),_e=(0,a.gn)([(0,i.wA)({components:{VariableChip:be,Icon:l.Z,VariableChooser:ce}})],_e);const Ie=_e,we=Ie;var xe=(0,A.Z)(we,o,s,!1,null,null,null);const Se=xe.exports},91136:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("Icon",{class:`variable-icon variable-icon--${e.type}`,attrs:{icon:e.icon,size:e.iconSize}})},s=[],a=n(70655),i=n(20144),r=n(38085),l=n(85283);let c=class extends i.ZP{get icon(){if(this.override)return"SwapIcon";const e={color:"CircleHalfStrokeIcon",unit:"ExpandIcon",font_family:"HeadingIcon",number:"HashtagIcon",text:"TextIcon",image_url:"ImageIcon"};return e[this.type]||"TextIcon"}};(0,a.gn)([(0,r.fI)()],c.prototype,"type",void 0),(0,a.gn)([(0,r.fI)()],c.prototype,"override",void 0),(0,a.gn)([(0,r.fI)({default:14})],c.prototype,"iconSize",void 0),c=(0,a.gn)([(0,r.wA)({components:{Icon:l.Z}})],c);const u=c,d=u;var p=n(1001),h=(0,p.Z)(d,o,s,!1,null,null,null);const g=h.exports},55645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var o=n(43432),s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"variable-repeater-item",class:{"variable-repeater-item--vertical":e.vertical}},[t("div",{staticClass:"variable-repeater-item__name breakdance-inline-repeater-item-control"},[t("VariableIcon",{staticClass:"variable-repeater-item__icon",attrs:{type:e.variable.type,override:e.variable.override,iconSize:12}}),e.variable.override?t("DropdownInput",{attrs:{items:e.variablesToOverrideAsItems,autocomplete:!0,value:e.variable.id},on:{input:e.setOverrideVariable}}):t("TextInput",{staticClass:"breakdance-inline-repeater-input",attrs:{value:e.variable.label},on:{input:e.updateLabel}}),e.variable.label?t(o.Z,{attrs:{bottom:"","open-delay":500,"open-on-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("CopyButton",e._g({staticClass:"variable-repeater-item__copy-icon",attrs:{"value-to-copy":e.cssVariableName}},n))]}}],null,!1,1444638318)},[t("span",[e._v(e._s(e.__("Copy CSS")))])]):e._e()],1),e.variable.id?[t("div",{staticClass:"variable-repeater-item__value breakdance-inline-repeater-item-control breakdance-control-wrapper breakdance-control-wrapper-vertical"},[e.vertical?t("div",{staticClass:"breakdance-control-wrapper-label-and-stuff"},[t("span",{staticClass:"breakdance-control-wrapper-control-label"},[e._v(" "+e._s(e.__("Value"))+" ")]),t("div",{staticClass:"breakdance-control-modifiers"},[t("DynamicDataChooser",{class:{"breakdance-only-on-hover":!0,"breakdance-only-on-hover-always-show":!1},attrs:{accepts:"all"},on:{input:e.setDynamicData}})],1)]):e._e(),e.isDynamicVariable?t("DynamicInput",{attrs:{value:e.variable.value,meta:e.variable?.dynamicData},on:{change:e.setDynamicData,input:e.updateValue,clear:function(t){return e.updateValue(void 0)}}}):t("VariableBoundInput",{attrs:{type:e.variable.type,value:e.variable.value,small:!0,"can-create":!1,"variable-to-ignore":e.variable.id},on:{input:e.updateValue}},[t(e.input,e._b({tag:"component",staticClass:"breakdance-inline-repeater-input",attrs:{value:e.variable.value},on:{input:e.updateValue}},"component",e.attributes,!1))],1)],1)]:e._e()],2)},a=[],i=n(70655),r=n(38085),l=n(91136),c=n(41571),u=n(84336),d=n(71657),p=n(82542),h=n(14567),g=n(96074),m=n(90889),v=n(85450),f=n(23128),y=n(43195),b=n(56823),_=n(71821),I=n(79333),w=n(23267),x=n(40616);let S=class extends r.w3{get variablesToOverride(){return v.globalStore.variables}get cssVariableName(){return(0,m.w5)(this.variable)}get input(){return(0,m.pF)(this.variable.type)}get attributes(){return(0,m.Jv)(this.variable.type)}get isDynamicVariable(){return(0,y.xs)(this.variable.value)}get variablesToOverrideAsItems(){return this.variablesToOverride.map((e=>({text:e.label,value:e.id,disabled:this.existingVariableIds?.includes(e.id)})))}updateLabel(e){const t=(0,f.Z)(this.variable);t.label=e||"",t.cssVariableName=t.label?(0,m.dw)(t.label):"",this.update(t)}updateValue(e){const t=(0,f.Z)(this.variable);t.value=e,this.update(t)}setOverrideVariable(e){const t=(0,f.Z)(this.variable),n=this.variablesToOverride.find((t=>t.id===e));n&&e&&(t.id=e,t.type=n.type,t.value=null),this.update(t)}setDynamicData(e){const t=(0,f.Z)(this.variable);t.value=e.shortcode,t.dynamicData=e,this.$emit("input",t)}update(e){this.$emit("input",e)}};(0,i.gn)([(0,r.fI)()],S.prototype,"variable",void 0),(0,i.gn)([(0,r.fI)({default:!1})],S.prototype,"vertical",void 0),(0,i.gn)([(0,r.fI)()],S.prototype,"existingVariableIds",void 0),S=(0,i.gn)([(0,r.wA)({components:{DynamicDataChooser:g.Z,CopyButton:h.Z,DynamicInput:p.Z,VariableBoundInput:d.Z,DropdownInput:u.Z,TextInput:c.Z,VariableIcon:l.Z,UnitInput:b.Z,ColorInput:_.Z,NiceButton:I.Z,NumberInput:w.Z,FontFamilyInput:x.Z}})],S);const C=S,k=C;var P=n(1001),Z=(0,P.Z)(k,s,a,!1,null,null,null);const D=Z.exports},90703:(e,t,n)=>{"use strict";n.d(t,{Z:()=>M});var o=n(37179),s=n(73385),a=n(75223),i=n(24437),r=n(12570),l=n(5294),c=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(r.Z,{attrs:{value:!0,"max-width":"600",persistent:e.hasUnsavedChanges,scrollable:!0,transition:!1},on:{input:e.closeDialog}},[t(s.Z,{staticClass:"template-settings-modal-content",attrs:{tile:"",flat:"",width:"600"}},[t(a.EB,{staticClass:"edit-template-modal-titlebar"},[t("h1",[e._v(" "+e._s("add"===e.mode?e.sprintf(e._xdoc("Add %s","Global Block","%s: Global block label"),e.$bdox("global_block")):e.sprintf(e._xdoc('Editing "%s"',"Global Block","%s: Block title"),e.internalValue.label))+" ")])]),t(a.ZB,[t("div",{staticClass:"my-3"},[t("TextInput",{attrs:{value:e.internalValue.label,placeholder:e.sprintf(e._xdoc("New %s","Global Block","%s: Global block label"),e.$bdox("global_block")),label:e.__("Title"),size:"md"},on:{input:e.setLabel}})],1)]),t(a.h7,{staticClass:"edit-template-modal-actions"},[t(l.Z,[t(i.Z,{staticClass:"text-left"},[e.hasUnsavedChanges?t(o.Z,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(" "+e._s(e.__("Cancel"))+" ")]):e._e()],1),t(i.Z,{staticClass:"text-right"},[t(o.Z,{attrs:{color:"blue",dark:"",elevation:"0",loading:e.saveInProgress},on:{click:e.saveGlobalBlock}},["edit"===e.mode?[e._v(e._s(e.__("Save")))]:[e._v(e._s(e.sprintf(e._xdoc("Add %s","Global Block","%s: Global block label"),e.$bdox("global_block"))))]],2)],1)],1)],1)],1)],1)},u=[],d=n(18446),p=n.n(d),h=n(70655),g=n(20144),m=n(38085),v=n(23128),f=n(31873),y=n(84336),b=n(41571),_=n(23267),I=n(7892),w=n(30902),x=n(45974),S=n(39664),C=n(87615),k=n(89412),P=n(36055);let Z=class extends g.ZP{constructor(){super(...arguments),this.internalValue=(0,v.Z)(this.value),this.saveInProgress=!1}mounted(){(0,k.w)(),this.warnIfUnsavedFunction=(0,I.$)((()=>this.hasUnsavedChanges))}setLabel(e){this.internalValue.label=e||""}get hasUnsavedChanges(){return!p()(this.internalValue,this.value)}closeDialog(){(0,I.e)(this.warnIfUnsavedFunction),this.$emit("close")}async saveGlobalBlock(){if(!this.internalValue.label)return void S.Z.log.message((0,P.__)("Title field can't be empty"));const e=this.globalBlocks.find((e=>e.label===this.internalValue.label&&e.id!==this.internalValue.id));e?S.Z.log.message((0,P.gB)((0,P.__)('A %s with the title "%s" already exists. Please select another title.'),this.$bdox("global_block"),this.internalValue.label)):((0,w.pipe)(await(0,C.v_)(this.internalValue),(0,x.fold)((()=>{S.Z.log.message((0,P.gB)((0,P.__)("%s was not saved"),this.$bdox("global_block")))}),(e=>{this.$emit("input",e),this.closeDialog()}))),(0,C.DQ)())}};(0,h.gn)([(0,m.fI)()],Z.prototype,"value",void 0),(0,h.gn)([(0,m.fI)()],Z.prototype,"mode",void 0),(0,h.gn)([(0,m.fI)()],Z.prototype,"globalBlocks",void 0),Z=(0,h.gn)([(0,m.wA)({components:{NumberInput:_.Z,TextInput:b.Z,DropdownInput:y.Z,ConditionsMatrix:f.Z}})],Z);const D=Z,E=D;var T=n(1001),A=(0,T.Z)(E,c,u,!1,null,null,null);const M=A.exports},19930:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ye});var o=n(37179),s=n(73385),a=n(75223),i=n(24437),r=n(12570),l=n(5294),c=n(55234),u=n(76660),d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(r.Z,{attrs:{value:!0,"max-width":"750",persistent:e.hasUnsavedChanges,scrollable:!0,transition:!1},on:{input:e.closeDialog}},[e.skipWarning?[t(s.Z,{staticClass:"template-settings-modal-content",attrs:{width:"750",tile:"",flat:""}},[t(a.EB,{staticClass:"edit-template-modal-titlebar"},[t("h1",[e._v(" "+e._s("add"===e.mode?e.sprintf(e._xdoc("Add %s","Template","%s: Template type name"),e.templateName):e.sprintf(e._xdoc('Editing "%s"',"Template","%s: Template title"),e.internalValue.title))+" ")]),t(c.Z)],1),t(a.ZB,[t("div",{staticClass:"mt-4 d-flex flex-column"},[t("FreeModeAlertForConditionsUsed",{attrs:{value:e.internalValue.settings.ruleGroups,"available-conditions":e.availableConditions}}),t(l.Z,[t(i.Z,{attrs:{cols:"12"}},[t("TextInput",{staticClass:"template-modal-not-so-wide",attrs:{value:e.internalValue.title,placeholder:e.sprintf(e._xdoc("New %s","Template","%s: Template type name"),e.templateName),size:"md",label:e.__("Title")},on:{input:e.setTemplateTitle}}),e.titleError?t("div",{staticClass:"bde-templates_field-error"},[e._v(" "+e._s(e.titleError)+" ")]):e._e()],1),t(i.Z,{attrs:{cols:"12"}},[t("label",{staticClass:"breakdance-text-input__label"},[e._v(e._s(e.__("Location")))]),t("DropdownInput",{staticClass:"breakdance-dense-select--md template-modal-not-so-wide",attrs:{placeholder:e.sprintf(e._doc("Apply %s to...","%s: Template type name"),e.templateName),items:e.templateTypesDropdownInVuetifyShape,value:e.internalValue.settings.type},on:{input:e.setTemplateType},scopedSlots:e._u([{key:"selection",fn:function({item:n}){return[t("div",{staticClass:"v-select__selection v-select__selection--comma"},[e._v(" "+e._s(n.category)+" / "+e._s(n.text)+" ")])]}}],null,!1,1945710855)}),e.locationError?t("div",{staticClass:"bde-templates_field-error"},[e._v(" "+e._s(e.locationError)+" ")]):e._e()],1)],1),t("label",{staticClass:"mt-6 breakdance-text-input__label"},[e._v(e._s(e.__("Conditions")))]),t("ConditionsMatrix",{attrs:{value:e.internalValue.settings.ruleGroups||[],availableConditions:e.availableConditions,templateType:e.internalValue.settings.type},on:{input:function(t){return e.updateRuleGroups(t)}}})],1),"breakdance_popup"===e.postType?t("div",[t("label",{staticClass:"mt-6 breakdance-text-input__label"},[e._v(e._s(e.__("Popup Opens When")))]),t("TriggersMatrix",{attrs:{value:e.internalValue.settings.triggers||[],triggers:e.templatesManagementData.popupTriggers,"disable-trigger-limits":e.internalValue.settings.onlyShowOnce},on:{input:function(t){return e.updateTriggers(t)}}}),t("FreeModeAlertForPopupTriggers",{attrs:{value:e.internalValue.settings.triggers||[],triggers:e.templatesManagementData.popupTriggers}}),t("label",{staticClass:"d-flex mt-6 breakdance-text-input__label"},[e._v(e._s(e.__("Limit how often this popup shows")))]),t("ToggleInput",{attrs:{value:e.hasOnlyShow},on:{input:e.toggleOnlyShow}}),e.hasOnlyShow?t("div",{staticClass:"d-flex"},[t("div",{staticClass:"flex-grow-1 template-rule-input-row"},[t("div",[t("label",{staticClass:"breakdance-text-input__label"},[e._v(e._s(e.__("Per Page Load")))]),t("NumberInput",{attrs:{value:e.internalValue.settings.limitPageLoad},on:{input:e.setLimitPageLoad}})],1),t("div",[t("label",{staticClass:"breakdance-text-input__label"},[e._v(e._s(e.__("Per Session")))]),t("NumberInput",{attrs:{value:e.internalValue.settings.limitSession},on:{input:e.setLimitSession}})],1),t("div",[t("label",{staticClass:"breakdance-text-input__label"},[e._v(e._s(e.__("Forever")))]),t("NumberInput",{attrs:{value:e.internalValue.settings.limitForever},on:{input:e.setLimitForever}})],1)])]):e._e(),t("label",{staticClass:"d-flex mt-3 breakdance-text-input__label"},[e._v(e._s(e.__("Do not show this popup if any other popup has already shown")))]),t("ToggleInput",{attrs:{value:e.internalValue.settings.avoidMultiple},on:{input:e.setAvoidMultiple}})],1):e._e(),"breakdance_popup"!==e.postType?t(l.Z,{staticClass:"mb-3"},[t(i.Z,{attrs:{cols:"12"}},[t("label",{staticClass:"breakdance-text-input__label mt-6",staticStyle:{"text-transform":"capitalize"}},[e._v(" "+e._s(e.__("Priority"))+" ")]),t("NumberInput",{staticClass:"breakdance-simple-number-input--md template-priority-input",attrs:{value:e.internalValue.settings.priority},on:{input:e.setTemplatePriority}}),e.priorityError?t("div",{staticClass:"bde-templates_field-error"},[e._v(" "+e._s(e.priorityError)+" ")]):e._e()],1),e.hasPermissionToManageFallbacks?t(i.Z,{attrs:{cols:"12"}},[t("label",{staticClass:"breakdance-text-input__label",staticStyle:{"text-transform":"capitalize"}},[e._v(" "+e._s(e.__("Fallback"))+" ")]),t(u.Z,{attrs:{"input-value":e.internalValue.settings.fallback},on:{change:e.setFallback}})],1):e._e()],1):e._e(),e.canDisable?t("div",[t("label",{staticClass:"breakdance-text-input__label",staticStyle:{"text-transform":"capitalize"}},[e._v(" "+e._s(e.__("Active"))+" ")]),t("div",[t("ToggleInput",{attrs:{value:!e.internalValue.settings.disabled},on:{input:e.updateDisabled}})],1)]):e._e()],1),t(a.h7,{staticClass:"edit-template-modal-actions"},[t(l.Z,[t(i.Z,{staticClass:"text-left"},[e.hasUnsavedChanges?t(o.Z,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(" "+e._s(e.__("Cancel"))+" ")]):e._e()],1),t(i.Z,{staticClass:"text-right"},[t(o.Z,{attrs:{color:"blue",dark:"",elevation:"0",loading:e.saveInProgress,disabled:e.isThereAnError},on:{click:e.saveTemplate}},["edit"===e.mode?[e._v(e._s(e.__("Save")))]:[e._v(e._s(e.sprintf(e._xdoc("Add %s","Template","%s: Template type name"),e.templateName)))]],2)],1)],1)],1)],1)]:[t(s.Z,{staticClass:"breakdance-dialog",attrs:{width:"400",tile:"",flat:""}},["add"===e.mode?[t(a.EB,{staticClass:"breakdance-dialog-title"},[e._v(" "+e._s(e.__("Add Custom Template"))+" ")]),t(a.ZB,{staticClass:"breakdance-dialog-contents"},[e._v(" "+e._s(e.__("Please read the documentation before creating custom templates."))+" ")])]:e._e(),"edit"===e.mode?[t(a.EB,{staticClass:"breakdance-dialog-title"},[e._v(" "+e._s(e.__("Advanced Template Settings"))+" ")]),t(a.ZB,{staticClass:"breakdance-dialog-contents"},[e._v(" "+e._s(e.__("Please read the documentation before making customizations to template settings."))+" ")])]:e._e(),t(a.h7,{staticClass:"breakdance-dialog-actions"},[t(o.Z,{attrs:{text:""},on:{click:function(t){return e.$emit("close")}}},[e._v(" "+e._s(e.__("Cancel"))+" ")]),t(o.Z,{attrs:{dark:"",color:"blue",medium:""},on:{click:e.acknowledgeWarning}},[e._v(" "+e._s(e.__("Continue"))+" ")])],1)],2)]],2)},p=[],h=n(18446),g=n.n(h),m=n(70655),v=n(20144),f=n(38085),y=n(23128),b=n(31873),_=n(63292),I=n(84336),w=n(41571),x=n(23267),S=n(7892),C=n(67132),k=n(30902),P=n(45974),Z=n(39664),D=n(89412),E=n(47187),T=n(85283),A=n(89137),M=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"trigger-matrix"},[e._l(e.value,(function(n,o){return t("div",{key:o,staticClass:"template-rule-group-wrapper"},[o>0?t("span",{staticClass:"template-rule-group-or"},[t("span",[e._v("OR")])]):e._e(),t("TriggerInput",{attrs:{value:n,triggers:e.triggers,"disable-limit":e.disableTriggerLimits},on:{input:function(t){return e.updateTrigger(t,o)},delete:function(t){return e.deleteTrigger(o)}}})],1)})),t("NiceButton",{staticClass:"breakdance-condition-matrix__add-condition",attrs:{outlined:"",text:"","data-test-id":"add-condition-button","left-icon":"PlusIcon"},on:{click:e.addTrigger}},[e._v(" Add Trigger ")])],2)},V=[],B=n(5817),O=n(61153),L=n(61943),$=n(79333),z=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"template-rule-group-condition"},[t("div",{staticClass:"template-rule-input-row flex-grow-1"},[t("div",[t("label",{staticClass:"breakdance-text-input__label"},[e._v("Trigger on")]),t("DropdownInput",{attrs:{placeholder:"Choose trigger...",items:e.availableTriggersForDropdown,value:e.value.slug},on:{input:e.setValue}})],1),"scroll"===e.value.slug?t("div",[t("label",{staticClass:"breakdance-text-input__label"},[e._v("Scrolls to")]),t("DropdownInput",{attrs:{items:e.scrollTypeOptions,value:e.scrollTypeValue},on:{input:e.setScrollType}})],1):e._e(),"click"===e.value.slug?t("div",[t("label",{staticClass:"breakdance-text-input__label"},[e._v("Click target")]),t("DropdownInput",{attrs:{items:e.clickTypeOptions,value:e.clickTypeValue},on:{input:e.setClickType}})],1):e._e(),e.hasDelayOption?t("div",[t("label",{staticClass:"breakdance-text-input__label"},[e._v(e._s(e.delayLabel))]),t("NumberInput",{attrs:{value:e.delayValue},on:{input:e.setDelay}})],1):e._e(),e.hasPercentOption?t("div",[t("label",{staticClass:"breakdance-text-input__label"},[e._v("Percent")]),t("NumberInput",{attrs:{value:e.value.options.percent},on:{input:e.setPercent}})],1):e._e(),e.hasSelectorOption?t("div",[t("label",{staticClass:"breakdance-text-input__label"},[e._v("Selector")]),t("TextInput",{attrs:{placeholder:"#elementId",value:e.value.options.selector},on:{input:e.setSelector}})],1):e._e()]),t("div",{staticClass:"d-flex"},[t("IconButton",{staticClass:"template-rule-group-delete mt-6",attrs:{icon:"TrashIcon",size:"16",small:!0},on:{click:function(t){return e.$emit("delete")}}})],1)])},N=[],H=n(79686),R=n(81252),G=n(22608),F=n(13960);let U=class extends v.ZP{get availableTriggersForDropdown(){return this.triggers.map((e=>({text:e.proOnly?(0,F.LX)(e.text):e.text,value:e.value})))}setValue(e){const t=(0,y.Z)(this.value);t.slug=e??void 0,this.update(t)}setDelay(e){const t=(0,y.Z)(this.value);t.options={...t.options,delay:e??void 0},this.update(t)}setPercent(e){const t=(0,y.Z)(this.value);t.options={...t.options,percent:e??void 0},this.update(t)}setSelector(e){const t=(0,y.Z)(this.value);t.options={...t.options,selector:e??void 0},this.update(t)}setScrollType(e){const t=(0,y.Z)(this.value);t.options={...t.options,scrollType:e},this.update(t)}get scrollTypeOptions(){return[{text:"Percent",value:"percent"},{text:"Selector",value:"selector"}]}get scrollTypeValue(){return this.value?.options?.scrollType??null}setClickType(e){const t=(0,y.Z)(this.value);t.options={...t.options,clickType:e},this.update(t)}get clickTypeOptions(){return[{text:"Anywhere",value:"anywhere"},{text:"Selector",value:"selector"}]}get clickTypeValue(){return this.value?.options?.clickType??null}get delayValue(){return this.value?.options?.delay??null}get delayLabel(){return"inactivity"===this.value.slug?"Inactivity length (seconds)":"Show after (seconds)"}get hasPercentOption(){return"scroll"===this.value.slug&&"percent"===this.value.options?.scrollType}get hasDelayOption(){return"load"===this.value.slug||"inactivity"===this.value.slug}get hasSelectorOption(){return"scroll"===this.value.slug&&"selector"===this.value.options?.scrollType||"click"===this.value.slug&&"selector"===this.value.options?.clickType}update(e){this.$emit("input",e)}};(0,m.gn)([(0,f.fI)()],U.prototype,"value",void 0),(0,m.gn)([(0,f.fI)()],U.prototype,"triggers",void 0),(0,m.gn)([(0,f.fI)({default:!1})],U.prototype,"disableLimit",void 0),U=(0,m.gn)([(0,f.wA)({components:{NumberInput:x.Z,Icon:T.Z,CodeInput:R.Z,DynamicDataFieldText:H.Z,TextInput:w.Z,DropdownInput:I.Z,IconButton:G.Z}})],U);const W=U,j=W;var X=n(1001),q=(0,X.Z)(j,z,N,!1,null,null,null);const K=q.exports;let Y=class extends v.ZP{addTrigger(){const e=(0,y.Z)(this.value);e.push({}),this.$emit("input",e)}deleteTrigger(e){const t=(0,y.Z)(this.value);t.splice(e,1),this.$emit("input",t)}updateTrigger(e,t){const n=(0,y.Z)(this.value);n[t]=e,this.$emit("input",n)}};(0,m.gn)([(0,f.fI)()],Y.prototype,"value",void 0),(0,m.gn)([(0,f.fI)()],Y.prototype,"triggers",void 0),(0,m.gn)([(0,f.fI)({default:!1})],Y.prototype,"disableTriggerLimits",void 0),Y=(0,m.gn)([(0,f.wA)({components:{TriggerInput:K,NiceButton:$.Z,Icon:T.Z,DynamicDataFields:B.Z,DynamicDataDialog:O.Z,TemplateRuleGroupInput:L.Z}})],Y);const J=Y,Q=J;var ee=(0,X.Z)(Q,M,V,!1,null,null,null);const te=ee.exports;var ne=n(72252),oe=n(15584),se=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.areProTriggersUsed?t("ProOnlyAlertBox",{staticClass:"mb-5 mt-6",attrs:{options:{feature:"popups",content:e.sprintf(e._doc("Get %s Pro to get access to all popup triggers.","%s: Plugin name"),e.$bdox("plugin_name"))}}}):e._e()},ae=[],ie=n(4998);let re=class extends v.ZP{get areProTriggersUsed(){return(0,F.qS)(this.value,this.triggers)}};(0,m.gn)([(0,f.fI)()],re.prototype,"value",void 0),(0,m.gn)([(0,f.fI)()],re.prototype,"triggers",void 0),re=(0,m.gn)([(0,f.wA)({components:{ProOnlyAlertBox:ie.Z}})],re);const le=re,ce=le;var ue=(0,X.Z)(ce,se,ae,!1,null,null,null);const de=ue.exports;var pe=n(20918),he=n(36055);let ge=class extends v.ZP{constructor(){super(...arguments),this.internalValue=(0,y.Z)(this.value),this.editingAdvancedSettings=!1,this.saveInProgress=!1,this.attemptedToSave=!1,this.onlyShowOpen=!1}acknowledgeWarning(){this.$emit("skipWarning",!0)}beforeMount(){this.value.postType!==(0,pe.dG)()&&this.acknowledgeWarning()}mounted(){(0,D.w)(),this.warnIfUnsavedFunction=(0,S.$)((()=>this.hasUnsavedChanges))}get templateName(){return this.postType===(0,pe.dG)()?"template":this.postType===(0,pe.Yq)()?"footer":this.postType===(0,pe.d0)()?"header":"breakdance_popup"===this.postType?"popup":(0,he.__)("Unsupported template")}get templateTypesDropdownInVuetifyShape(){const e=[];return this.templatesManagementData.templateTypeCategories.forEach((t=>{e.push({header:t.label}),e.push(...t.types.map((e=>({category:t.label,text:e.label,value:e.slug})))),e.push({divider:!0})})),e.pop(),e}get selectedLocationCategory(){return this.templatesManagementData.templateTypeCategories.find((e=>e.types.find((e=>e.slug===this.internalValue.settings.type))))}get categoryLabelForSelectedLocation(){return this.selectedLocationCategory?.label}get labelForSelectedLocation(){return this.selectedLocationCategory?.types.find((e=>e.slug===this.internalValue.settings.type))?.label||this.internalValue.settings.type}get labelForInheritingParent(){return this.templateParents.find((e=>e.value===this.internalValue.settings.parentId))?.text||(0,he.gB)((0,he.TZ)("Parent with ID: %s","%s: Template parent ID"),this.internalValue.settings.parentId)}get availableConditions(){const e=(0,_.nt)(this.templatesManagementData.conditions,this.internalValue.settings.type);return this.internalValue.settings.type?(0,_.jp)(e,[this.internalValue.settings.type]).filter((e=>e.supports.includes("templating"))):e.filter((e=>e.supports.includes("templating")))}get templateParentsExcludingCurrentTemplate(){const e=this.templateParents.filter((e=>this.value.id!==e.value));return this.inheritedTemplateNoLongerExists&&this.internalValue.settings.parentId&&e.unshift({text:(0,he.gB)((0,he.TZ)("Selected template with ID: %s no longer exists.","%s: Template parent ID"),this.internalValue.settings.parentId),value:this.internalValue.settings.parentId}),e}get inheritedTemplateNoLongerExists(){return!!this.internalValue.settings.parentId&&!this.templateParents.find((e=>e.value===this.internalValue.settings.parentId))}get inheritanceUiEnabled(){return this.postType===(0,pe.dG)()}setTemplateTitle(e){this.internalValue={...this.internalValue,title:e||""}}updateTemplateSettings(e){this.internalValue.settings=(0,y.Z)(e)}async saveTemplate(){if(this.attemptedToSave=!0,this.isThereAnError)return;const e=(0,y.Z)(this.internalValue);e.settings.priority||(e.settings.priority=1);const t=!g()(this.value.settings,e.settings);t&&!(0,E.aA)(this.templates,e.settings,this.templateName)||(this.saveInProgress=!0,e.settings.ruleGroups=e.settings.ruleGroups&&(0,_.ar)(e.settings.ruleGroups)||[],e.settings.triggers=e.settings.triggers&&e.settings.triggers.filter((e=>Object.keys(e).length>0))||[],e.settings.type=e.settings.type||"none",e.title=e.title||`New ${this.postType}`,(0,k.pipe)(await(0,C.Qu)(e),(0,P.fold)((()=>{Z.Z.log.message((0,he.gB)((0,he.TZ)("%s was not saved, or it was saved but the value is invalid","%s: Template type name"),this.templateName))}),(e=>{this.$emit("input",e)}))),this.saveInProgress=!1,this.closeDialog())}setTemplateType(e){const t=(0,y.Z)(this.internalValue.settings);t.type=e,this.internalValue.settings&&t.type===this.internalValue.settings.type||(t.ruleGroups=[]),t.type&&(t.priority=this.getDefaultTemplatePriorityBasedOnType(t.type)),this.updateTemplateSettings(t)}setTemplateParent(e){const t=(0,y.Z)(this.internalValue.settings);e?t.parentId=e:delete t.parentId,this.updateTemplateSettings(t)}setTemplatePriority(e){const t=(0,y.Z)(this.internalValue.settings);t.priority=e??void 0,this.updateTemplateSettings(t)}getDefaultTemplatePriorityBasedOnType(e){return this.templatesManagementData.templateTypeCategories.flatMap((e=>e.types)).find((t=>t.slug===e))?.defaultPriority}updateRuleGroups(e){const t=(0,y.Z)(this.internalValue.settings);t.ruleGroups=e,this.updateTemplateSettings(t)}updateTriggers(e){const t=(0,y.Z)(this.internalValue.settings);t.triggers=e,this.updateTemplateSettings(t)}get locationError(){return!!this.attemptedToSave&&(!this.internalValue.settings.type&&(0,he.__)("Location is required"))}get titleError(){return!!this.attemptedToSave&&(!this.internalValue.title&&(0,he.__)("Title is required"))}get priorityError(){return!!this.attemptedToSave&&(void 0!==this.internalValue.settings.priority&&("breakdance_popup"!==this.postType&&(this.internalValue.settings.priority<1&&(0,he.__)("The minimum priority is 1"))))}get isThereAnError(){return!!(this.priorityError||this.titleError||this.locationError)}get hasUnsavedChanges(){return!g()(this.internalValue,this.value)}closeDialog(){(0,S.e)(this.warnIfUnsavedFunction),this.$emit("close")}setFallback(e){const t=(0,y.Z)(this.internalValue.settings);t.fallback=e,this.updateTemplateSettings(t)}updateDisabled(e){const t=(0,y.Z)(this.internalValue.settings);t.disabled=!e,this.updateTemplateSettings(t)}setOnlyShowOnce(e){const t=(0,y.Z)(this.internalValue.settings);t.onlyShowOnce=e,this.updateTemplateSettings(t)}setAvoidMultiple(e){const t=(0,y.Z)(this.internalValue.settings);t.avoidMultiple=e,this.updateTemplateSettings(t)}toggleOnlyShow(e){e||(this.setLimitPageLoad(null),this.setLimitSession(null),this.setLimitForever(null)),this.onlyShowOpen=e}get hasOnlyShow(){return!0===this.onlyShowOpen||(this.internalValue.settings.limitForever||this.internalValue.settings.limitSession||this.internalValue.settings.limitPageLoad)}setLimitPageLoad(e){const t=(0,y.Z)(this.internalValue.settings);t.limitPageLoad=e,this.updateTemplateSettings(t)}setLimitSession(e){const t=(0,y.Z)(this.internalValue.settings);t.limitSession=e,this.updateTemplateSettings(t)}setLimitForever(e){const t=(0,y.Z)(this.internalValue.settings);t.limitForever=e,this.updateTemplateSettings(t)}};(0,m.gn)([(0,f.fI)()],ge.prototype,"value",void 0),(0,m.gn)([(0,f.fI)()],ge.prototype,"postType",void 0),(0,m.gn)([(0,f.fI)()],ge.prototype,"mode",void 0),(0,m.gn)([(0,f.fI)()],ge.prototype,"templatesManagementData",void 0),(0,m.gn)([(0,f.fI)()],ge.prototype,"templateParents",void 0),(0,m.gn)([(0,f.fI)()],ge.prototype,"templates",void 0),(0,m.gn)([(0,f.fI)({default:!1})],ge.prototype,"skipWarning",void 0),(0,m.gn)([(0,f.fI)({default:!1})],ge.prototype,"canDisable",void 0),(0,m.gn)([(0,f.fI)({default:!1})],ge.prototype,"hasPermissionToManageFallbacks",void 0),ge=(0,m.gn)([(0,f.wA)({components:{FreeModeAlertForConditionsUsed:oe.Z,FreeModeAlertForPopupTriggers:de,ToggleInput:ne.Z,TriggersMatrix:te,Icon:T.Z,NumberInput:x.Z,TextInput:w.Z,DropdownInput:I.Z,ConditionsMatrix:b.Z,Dialog:A.Z}})],ge);const me=ge,ve=me;var fe=(0,X.Z)(ve,d,p,!1,null,null,null);const ye=fe.exports},6689:(e,t,n)=>{"use strict";function o(e,t,n,o){const s=Math.atan2(e-n,t-o);return s*(180/Math.PI)*-1+180}n.d(t,{Z:()=>o})},81603:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>s}),/^(14|9)3$/.test(n.j))var o=n(83117);function s(e,t,n,s,a){e>s&&(e=s),t>n&&(t=n),e<0&&(e=0),t<0&&(t=0);const i=100-100*t/n|0,r=100*e/s|0;return{...(0,o.Z)(a,r,i),saturation:r,value:i}}},26251:(e,t,n)=>{"use strict";function o(e){e(),setTimeout(e,250)}n.d(t,{Z:()=>o})},98027:(e,t,n)=>{"use strict";function o(e,t,n){let o="";const s=e.slice();return s.sort(((e,t)=>e.left-t.left)),o="linear"===t?`linear-gradient(${n}deg,`:"radial-gradient(",s.forEach(((e,t)=>{e.globalColor?o+=`var(--${e.globalColor}) ${e.left}%`:o+=`rgba(${e.red}, ${e.green}, ${e.blue}, ${e.alpha}) ${e.left}%`,t!==s.length-1&&(o+=",")})),o+=")",o}n.d(t,{l:()=>o})},79919:(e,t,n)=>{"use strict";function o(e,t){return e=Number((e/t).toFixed(2)),e>1?1:e<0?0:e}n.d(t,{Z:()=>o})},59496:(e,t,n)=>{"use strict";function o(e){let t=1;const n=e/60;let o=t*(1-Math.abs(n%2-1));const s=0,a=255;let i=0,r=0,l=0;return t=(t+s)*a|0,o=(o+s)*a|0,n>=0&&n<1&&(i=0|t,r=0|o,l=0|s),n>=1&&n<2&&(i=0|o,r=0|t,l=0|s),n>=2&&n<3&&(i=0|s,r=0|t,l=0|o),n>=3&&n<4&&(i=0|s,r=0|o,l=0|t),n>=4&&n<5&&(i=0|o,r=0|s,l=0|t),n>=5&&n<=6&&(i=0|t,r=0|s,l=0|o),{red:i,green:r,blue:l}}n.d(t,{Z:()=>o})},8642:(e,t,n)=>{"use strict";function o(e,t){return e||0===e?e:t}n.d(t,{Z:()=>o})},83117:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>s}),/^(14|9)3$/.test(n.j))var o=n(21747);function s(e,t,n){n/=100;const s=t/100;let a=s*n;const i=e/60;let r=a*(1-Math.abs(i%2-1)),l=n-a;const c=255;return a=(a+l)*c|0,r=(r+l)*c|0,l=l*c|0,i>=1&&i<2?(0,o.Z)(r,a,l):i>=2&&i<3?(0,o.Z)(l,a,r):i>=3&&i<4?(0,o.Z)(l,r,a):i>=4&&i<5?(0,o.Z)(r,l,a):i>=5&&i<=6?(0,o.Z)(a,l,r):(0,o.Z)(a,r,l)}},99759:(e,t,n)=>{"use strict";function o(e,t,n){return function(o){let s=e(o);function a(e){s=t(e,s)||s}window.addEventListener("mousemove",a),window.addEventListener("mouseup",(e=>{window.removeEventListener("mousemove",a),n&&n(e,s)}),{once:!0})}}n.d(t,{Z:()=>o})},62738:(e,t,n)=>{"use strict";function o(e,t,n){let o=e.toString(16),s=t.toString(16),a=n.toString(16);return e<16&&(o=`0${o}`),t<16&&(s=`0${s}`),n<16&&(a=`0${a}`),o+s+a}n.d(t,{Z:()=>o})},20570:(e,t,n)=>{"use strict";function o({red:e,green:t,blue:n}){let o,s,a,i,r=0;const l=e/255,c=t/255,u=n/255,d=Math.max(l,c,u),p=d-Math.min(l,c,u),h=e=>(d-e)/6/p+.5;return 0===p?(r=0,i=0):(i=p/d,o=h(l),s=h(c),a=h(u),l===d?r=a-s:c===d?r=1/3+o-a:u===d&&(r=2/3+s-o),r<0?r+=1:r>1&&(r-=1)),{hue:Math.round(360*r),saturation:Math.round(100*i),value:Math.round(100*d)}}n.d(t,{Z:()=>o})},21747:(e,t,n)=>{"use strict";function o(e){return"number"===typeof e&&!Number.isNaN(e)&&e>=0&&e<=255}function s(e,t,n,s){if(o(e)&&o(t)&&o(n)){const a={red:0|e,green:0|t,blue:0|n};return s&&o(s)&&(a.alpha=0|s),a}return null}n.d(t,{Z:()=>s})},41091:(e,t,n)=>{"use strict";function o(e,t){const n=100*e/t;return n<0?0:n>100?100:n}n.d(t,{Z:()=>o})},42665:(e,t,n)=>{"use strict";n.d(t,{P:()=>i,j:()=>r});var o=n(85450),s=n(69137);class a{constructor(){this.jobs=[],this.pausedJobTypes=new Set,this.MAX_JOBS=3}async runPendingJobs(){if(!this.jobs.some((e=>"pending"===e.status))||0===this.jobs.length)return;const e=this.jobs.filter((e=>"running"===e.status)).length;if(e>=this.MAX_JOBS)return;const t={critical:0,high:1,normal:2,low:3},n=this.jobs.filter((e=>"pending"===e.status&&!this.pausedJobTypes.has(e.context.jobType))).sort(((e,n)=>t[e.priority]-t[n.priority])).slice(0,this.MAX_JOBS-e);n.forEach((e=>{this.runJob(e.id)}))}addJob(e,t){const n=new AbortController,o=this.jobs.length+1,s={id:o,status:"pending",callback:e,abortController:n,context:t,priority:t.priority};this.jobs.push(s),this.runPendingJobs(),this.updateStore()}async runJob(e){const t=this.jobs.findIndex((t=>t.id===e));if(-1===t)return;this.jobs[t].status="running",this.updateStore();const n=this.jobs[t].context,o="background_page_generation"===n.jobType||"background_block_generation"===n.jobType||"sitemap_generation"===n.jobType,a=!o&&!("dontCreateSnapshot"in n&&n.dontCreateSnapshot);try{a&&s.n.startTransaction(),await this.jobs[t].callback(this.jobs[t].abortController),a&&s.n.endTransaction(n.snapshotLabel),this.jobs[t].status="completed"}catch(i){console.error(`Job ${e} failed:`,i),a&&s.n.cancelTransactionIfItIsStillInProgress(),this.jobs[t].status="failed"}this.runPendingJobs(),this.updateStore()}async abortJob(e){const t=this.jobs.findIndex((t=>t.id===e));-1!==t&&(this.jobs[t].abortController.abort(),this.jobs[t].status="failed",this.runPendingJobs(),this.updateStore())}cancelJobsMatching(e){const t=this.jobs.filter((e=>"pending"===e.status||"running"===e.status)).filter((t=>{const n=t.context;if(e.jobType&&n.jobType!==e.jobType)return!1;if(e.documentId&&"documentId"in n&&n.documentId!==e.documentId)return!1;if(e.elementId){if("elementId"in n&&n.elementId!==e.elementId)return!1;if("sectionIds"in n&&!n.sectionIds.includes(e.elementId))return!1}return(!e.pageId||!("pageId"in n)||n.pageId===e.pageId)&&(!e.blockId||!("blockId"in n)||n.blockId===e.blockId)}));t.forEach((e=>this.abortJob(e.id)))}clearAllJobs(){this.jobs=[],this.updateStore()}pauseJobType(e){this.pausedJobTypes.add(e),console.log(`Paused job type: ${e}`)}unpauseJobType(e){this.pausedJobTypes.delete(e),console.log(`Unpaused job type: ${e}. Running pending jobs...`),this.runPendingJobs()}isJobTypePaused(e){return this.pausedJobTypes.has(e)}updateStore(){const e=this.jobs.map((e=>({status:e.status,id:e.id,context:e.context})));o.singularityStore.setAIJobs(e)}}const i=new a;function r(e,t){return new Promise(((n,o)=>{i.addJob((async t=>{try{const o=await e(t);n(o)}catch(s){o(s)}}),t)}))}},34886:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var o=n(94550);const s=[o.VIDEO_SLUG,o.FORM_BUILDER_SLUG,o.LOGO_LIST_SLUG]},44652:(e,t,n)=>{"use strict";n.d(t,{M:()=>i,O:()=>r});var o=n(56888),s=n(6613),a=n(20608);async function i(e,t,n){try{const r=await(0,a.pb)("/ai/batch",{body:(0,s.g)({requests:e}),signal:t.signal});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const l=r.body?.getReader();if(!l)throw new Error("Failed to get response reader");const c=new TextDecoder,u=[],d=!0;while(d){const{done:e,value:t}=await l.read();if(e)break;const s=c.decode(t),a=s.split("\n").filter((e=>e.trim()));for(const r of a)try{const e=(0,o.B)(r);if(void 0===e){console.warn("Received undefined response for line:",r);continue}u.push(e),n&&n(e)}catch(i){console.error("Failed to parse JSON:",r)}}return u}catch(r){throw console.error("Batch AI request failed:",r),r}}async function r(e,t,n){try{const o=await(0,a.pb)("/ai/structured-output",{body:(0,s.g)({messages:e,json_schema:t}),signal:n.signal});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);const i=await o.json();return i}catch(o){throw console.error("Structured output request failed:",o),o}}},14663:(e,t,n)=>{"use strict";n.d(t,{Ok:()=>d,sh:()=>l,lQ:()=>c});var o=n(6613),s=n(20608);async function a(e,t){try{const n=await(0,s.pb)("/stock-photos/pexels",{body:(0,o.g)(e),signal:t.signal});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const a=await n.json();return a.photos.map(l)}catch(n){throw console.error("Pexels request failed:",n),n}}async function i(e,t){if(0===e.per_page)throw new Error("per_page must be greater than 0");try{const n=await(0,s.pb)("/stock-photos/unsplash",{body:(0,o.g)(e),signal:t.signal});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const a=await n.json();return a.results}catch(n){throw console.error("Unsplash request failed:",n),n}}async function r(e,t){try{const n=await(0,s.pb)("/stock-photos/pixabay",{body:(0,o.g)(e),signal:t.signal});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const a=await n.json();return a.hits.map(c)}catch(n){throw console.error("Pixabay request failed:",n),n}}function l(e){return{id:e.id.toString(),description:null,alt_description:e.alt||null,urls:{raw:e.src.original,full:e.src.large2x,regular:e.src.large,small:e.src.medium,thumb:e.src.small},user:{name:e.photographer,username:e.photographer_url},width:e.width,height:e.height}}function c(e){return{id:e.id.toString(),description:e.tags,alt_description:e.tags||null,urls:{raw:e.largeImageURL,full:e.fullHDURL||e.largeImageURL,regular:e.webformatURL,small:e.webformatURL,thumb:e.previewURL},user:{name:e.user,username:e.user},width:e.imageWidth,height:e.imageHeight}}const u="pixabay";function d(e,t){return"pexels"===u?a(e,t):"pixabay"===u?r(e,t):i(e,t)}},48379:(e,t,n)=>{"use strict";n.d(t,{e:()=>a,m:()=>s});var o=n(85450);function s(e){if(!o.singularityStore.aiServer)throw new Error("no FutureLayer aiServer");const t=o.singularityStore.aiServer.url;return e&&!e.startsWith("/")&&(e="/"+e),t+e}function a(e){const t=s(e),n=encodeURIComponent(window.location.href),o=t.includes("?")?"&":"?";return`${t}${o}return_to=${n}`}},20608:(e,t,n)=>{"use strict";n.d(t,{pb:()=>v});var o=n(98851),s=n(85450),a=n(32521),i=n(88396),r=n(45974),l=n(56888),c=n(48379);const u=a.dt({token:a.Z_,is_anonymous:a.G0([a.O7,a.S1])}),d=3e4;function p(e){console.log("extractAndStoreSiteState: Checking for X-Site-State header"),console.log("extractAndStoreSiteState: Response status:",e.status),console.log("extractAndStoreSiteState: Response URL:",e.url);const t={};e.headers.forEach(((e,n)=>{t[n]=e})),console.log("extractAndStoreSiteState: All response headers:",t);const n=e.headers.get("X-Site-State");if(console.log("extractAndStoreSiteState: X-Site-State header value:",n),!n)return void console.log("extractAndStoreSiteState: No X-Site-State header found");const c=(0,l.B)(n);if(void 0===c)return void console.error("extractAndStoreSiteState: Failed to parse X-Site-State header");console.log("extractAndStoreSiteState: Parsed site state:",c);const u=i.pl.decode(c);(0,r.isRight)(u)?(console.log("extractAndStoreSiteState: Valid site state, storing in store:",u.right),s.singularityStore.setSiteStatus({...s.singularityStore.siteStatus,siteState:u.right}),(0,o.D)({action:"futurelayer_update_site_state",dataToPost:{site_state:n},decoder:a.dt({success:a.O7,message:a.Z_}),suppressErrorLogging:!0,friendlyName:"Update Site State"}).catch((e=>{console.error("Failed to save site state to database:",e)}))):console.error("extractAndStoreSiteState: Invalid site state format:",u.left)}function h(){if(!s.singularityStore.aiServer)throw new Error("no FutureLayer aiServer");const{jwt:e,jwtExpiresAt:t}=s.singularityStore.aiServer;return console.log("JWT: Checking token validity",{hasToken:!!e,expiresAt:t,now:Date.now(),isValid:!(!e||!t)&&Date.now(){"use strict";n.d(t,{GA:()=>l,x:()=>r});var o=n(85450),s=n(31381),a=n(88932);if(143==n.j)var i=n(34676);async function r(){await c(),await l()}async function l(){const e=d();console.log("headerAndFooterElementIds",e),await Promise.all(e.map((e=>p(e))))}async function c(){const e=u();console.log("logoElementIds",e),await Promise.all(e.map((e=>p(e))))}function u(){const e=[];return(0,s.treeNodeReduce)(((e,t)=>(e.data.type===a.X1&&t.push(e.id),t)),o.documentStore.document.tree.root,e),e}function d(){const e=[],t=o.uiStore.inlineEditingContext?.elementId;return(0,s.treeNodeReduce)(((e,n)=>(e.data.type!==a.Uu&&e.data.type!==a.hO||e.id===t||n.push(e.id),n)),o.documentStore.document.tree.root,e),e}async function p(e){(0,i.forceNextTick)((()=>{o.uiStore.setRefreshSsrElementId(e)}))}},45164:(e,t,n)=>{"use strict";n.d(t,{D8:()=>p,Fl:()=>l,Nx:()=>d,QR:()=>c,Z6:()=>g,cP:()=>h,pO:()=>r,sN:()=>u});var o=n(31381),s=n(31044),a=n(94550);if(143==n.j)var i=n(34676);function r(e){let t=e;if(c(t))return t;while(t){const e=(0,o.findNodeParent)(s.Hb.document.tree,t);if(!e)break;if(c(e))return e;t=e}return null}function l(e){let t=e;if(t.data.type===a.WRAPPER_LINK_SLUG)return t;while(t){const e=(0,o.findNodeParent)(s.Hb.document.tree,t);if(!e)break;if(e.data.type===a.WRAPPER_LINK_SLUG)return e;t=e}return null}function c(e){const t=(0,o.findNodeParent)(s.Hb.document.tree,e);return!!t&&!!d(t)}function u(e){return e.data.type===a.WRAPPER_LINK_SLUG}function d(e){return e.data.type===a.GRID_SLUG||e.data.type===a.ADVANCED_SLIDER_SLUG}function p(e){const t={};s.Hb.duplicateElement({elementId:e.id,pointer:t}),e.data.type===a.ADVANCED_SLIDE_SLUG&&(0,i.forceNextTick)((()=>{const e=t.nodeId,n=window.Breakdance.canvas.document,o=n.defaultView;o.BreakdanceSwiper().selectSlide(e)}))}function h(e){const t=(0,o.findNodeParent)(s.Hb.document.tree,e);if(!t)return;const n=t.children.findIndex((t=>t.id===e.id));n<=0||s.Hb.moveElement({draggedElementId:e.id,droppedOnElementId:t.id,index:n-1})}function g(e){const t=(0,o.findNodeParent)(s.Hb.document.tree,e);if(!t)return;const n=t.children.findIndex((t=>t.id===e.id));-1===n||n>=t.children.length-1||s.Hb.moveElement({draggedElementId:e.id,droppedOnElementId:t.id,index:n+1})}},80897:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var o=n(31381),s=n(85450);function a(e){let t=e;while(t&&t!==window.Breakdance.canvas.document.body){if(t.hasAttribute("data-futurelayer-element-id")){const e=t.getAttribute("data-futurelayer-element-id");if(e){const t=(0,o.findNode)(s.documentStore.document.tree,e);return t||null}}t=t.parentElement}return null}function i(e){let t=e;const n=a(t);if(n)return n;while(t&&t!==window.Breakdance.canvas.document.body){if(t.hasAttribute("data-node-id")){const e=t.getAttribute("data-node-id");if(e){const t=(0,o.findNode)(s.documentStore.document.tree,e);return t||null}}t=t.parentElement}return null}},20398:(e,t,n)=>{"use strict";n.d(t,{Dn:()=>u,IJ:()=>r,_5:()=>p,f7:()=>c,fj:()=>d});var o=n(31381),s=n(85450),a=n(45164);const i={canActivate:!0,initialPanel:"content_properties_editor",setPanelState:()=>{}},r={canActivate:!1,initialPanel:"none",setPanelState:()=>{}},l=new Map;function c(e,t){Array.isArray(e)?e.forEach((e=>l.set(e,t))):l.set(e,t)}function u(e){return l.get(e)??i}function d(e){let t=e;while(t){if(u(t.data.type).canActivate)return t;if((0,a.QR)(t))return null;if((0,a.sN)(t))return null;const e=(0,o.findNodeParent)(s.documentStore.document.tree,t);if(!e)break;t=e}return null}function p(e){const t=(0,o.findNode)(s.documentStore.document.tree,e);if(!t)return null;const n=d(t)?.id;return n||null}},5547:(e,t,n)=>{"use strict";if(n.d(t,{GL:()=>x,d2:()=>T,s8:()=>A}),143==n.j)var o=n(30902);if(143==n.j)var s=n(32521);if(143==n.j)var a=n(45974);var i=n(51617),r=n(1638),l=n(34755),c=n(85450),u=n(63085),d=n(76007),p=n(81626),h=n(20918),g=n(98851),m=n(65669);if(143==n.j)var v=n(6613);var f=n(31381),y=n(2462),b=n(52666),_=n(88932),I=n(42665),w=n(41720);async function x(e){const t=A();await(0,b.ZT)(e);const n=await C();if(console.log("generateSitemapButOnlyIncludeSectionsForHomepage done",t()),!n)return void console.log("no sitemap");const o=k(n);if(!o)return void console.log("no homepageData");const s=D(),a=E(),i=await P(o,s,a,M(n),V(n));if(console.log("createHomepageHeaderAndFooter_andDeleteOldPages_andSetHomepageToFrontPage_andCreateOtherPages done",t()),!i)return;const r=[];r.push({id:i.homepage.id,title:i.homepage.title,relativeUrl:i.homepage.relativeUrl,postType:"page",singularityMeta:!!o.singularityMeta&&o.singularityMeta,generatingInBackground:!1,isInMainMenu:i.homepage.isInMainMenu,menuOrder:i.homepage.menuOrder}),i.otherPages.forEach((e=>{r.push({id:e.id,title:e.title,relativeUrl:e.relativeUrl,postType:"page",singularityMeta:!1,generatingInBackground:!1,isInMainMenu:e.isInMainMenu,menuOrder:e.menuOrder})})),c.singularityStore.setPagesInWP(r),I.P.pauseJobType("background_page_generation"),c.singularityStore.setHeaderAndFooterBlockIdsInWP({headerId:i.header.id,footerId:i.footer.id}),y.i.startBackgroundGenerationForGlobalBlock(i.header.id,(()=>(0,_.TR)()?.headerId)),y.i.startBackgroundGenerationForGlobalBlock(i.footer.id,(()=>(0,_.TR)()?.footerId)),c.uiStore.setUnsavedChangesPresent(!1),await(0,u.rI)(i.homepage.id),console.log("replaceDocumentWithAnother done",t()),setTimeout((()=>{c.singularityStore.pagesInWP.forEach((e=>{e.id!==i.homepage.id&&y.i.startBackgroundGenerationForPage(e.title,e.id)}))}),1e4),(0,w.B)("step2")}function S(e){return e.find((e=>e.title.toLowerCase().includes("home")))}async function C(e=""){const t=c.globalStore.aiSettings.prompt.businessName??"",n=c.globalStore.aiSettings.prompt.businessDescription??"",o=(0,i.FX)().map((e=>`'${e}'`)).join(", ");let s="";s=e?`Generate a sitemap for a website.\n\n ${e?`\n ${e}\n `:""}\n\n Valid values for 'type' are ${o}. It's important you don't use any other values for 'type'.`:`Generate a sitemap for a website.\n The website should have an appropriate number of pages for the content. If the prompt includes information about the services offered, consider individual pages for each service.\n\n The sitemap must contain a homepage called "Home".\n\n Each page should have an appropriate number of sections for its type. Maybe 8 for the "Home" page, and just one or two for the contact page.\n\n However, only provide the sections for the "Home" page. For all other pages, the sections should be a blank array.\n\n The homepage hero section must be of the type "Image Background Heroes".\n\n You must still include the other pages, just not their sections.\n\n Include up to 5 pages in the main menu, and only exclude a page from the menu if it really doesn't belong. Err on the side of inlcuding pages in the menu.\n\n Website name: ${t}\n Website description: ${n}\n\n Valid values for 'type' are ${o}. It's important you don't use any other values for 'type'.\n `;const a=await(0,I.j)((async e=>await(0,p.C)(s,r.Pu,e,!0)),{jobType:"sitemap_generation",businessName:t,businessDescription:n,description:`Generating sitemap with homepage sections for ${t??"website"}`,priority:"critical"});return a}function k(e){const t=S(e);if(!t)return void console.error("no homepage found in sitemap");const n=(0,l.KN)(t.sections),o=(0,_.LC)(n);return{title:t.title,postType:"page",tree:(0,f.exportTree)(o),singularityMeta:{singularityInitialSections:t.sections,initialSectionsAlreadyPopulated:!0}}}async function P(e,t,n,i,r){return(0,o.pipe)(await(0,g.D)({action:"breakdance_singularity_handle_step_1",decoder:s.dt({success:s.Z_,homepage:s.dt({id:s.pk,title:s.Z_,relativeUrl:s.Z_,isInMainMenu:s.O7,menuOrder:s.G0([s.pk,s.lB])}),header:s.dt({id:s.pk}),footer:s.dt({id:s.pk}),otherPages:s.IX(s.dt({id:s.pk,title:s.Z_,relativeUrl:s.Z_,isInMainMenu:s.O7,menuOrder:s.G0([s.pk,s.lB])}))}),dataToPost:{homepageData:Z(e),headerData:Z(t),footerData:Z(n),titlesForAdditionalPagesToCreate:i,titlesForPagesToIncludeInMainMenu:r}}),(0,a.fold)((()=>null),(e=>e)))}function Z(e){return(0,m.J)({title:e.title,postType:e.postType,singularityMeta:(0,v.g)(e.singularityMeta),tree:(0,v.g)(e.tree),templateSettings:(0,v.g)(e.templateSettings)})}function D(){const e={type:i.m7,sectionFriendlyName:"Header",description:"Header"},t=(0,l.KN)([e]);return{title:"Header",postType:h.hF,tree:(0,f.exportTree)(t),singularityMeta:{singularityInitialSections:[e],initialSectionsAlreadyPopulated:!0}}}function E(){const e={type:i.g6,sectionFriendlyName:"Footer",description:"Footer"},t=(0,l.KN)([e]);return{title:"Footer",postType:h.hF,tree:(0,f.exportTree)(t),singularityMeta:{singularityInitialSections:[e],initialSectionsAlreadyPopulated:!0}}}async function T(){await(0,u.ZR)(),await(0,d.c)()}function A(){return function(){const e=(new Date).getTime();return function(){const t=(new Date).getTime(),n=t-e;return n}}()}function M(e){return e.map((e=>e.title)).filter((e=>!e.toLowerCase().includes("home")))}function V(e){return e.filter((e=>e.includeInMainMenu)).map((e=>e.title))}},44821:(e,t,n)=>{"use strict";n.d(t,{N:()=>c});var o=n(98851),s=n(30902),a=n(45974),i=n(32521),r=n(85450);const l=i.dt({data:i.dt({header:i.G0([i.pk,i.lB]),footer:i.G0([i.pk,i.lB])})});async function c(){const e=await(0,o.D)({action:"breakdance_futurelayer_get_header_and_footer_blocks",decoder:l,friendlyName:"Get header and footer blocks"}),t=(0,s.pipe)(e,(0,a.fold)((()=>({header:null,footer:null})),(e=>e.data)));return r.singularityStore.setHeaderAndFooterBlockIdsInWP({headerId:t.header||void 0,footerId:t.footer||void 0}),t}},88932:(e,t,n)=>{"use strict";n.d(t,{IA:()=>h,LC:()=>v,TR:()=>y,Uu:()=>u,X1:()=>p,hO:()=>d,rw:()=>f,vN:()=>b});var o=n(27361),s=n.n(o),a=n(31381),i=n(85450),r=n(93979),l=n(87950);if(143==n.j)var c=n(34676);const u="FutureLayerElements\\Header",d="FutureLayerElements\\Footer",p="FutureLayerElements\\SiteLogo";async function h(e){const t=(0,a.findNode)(i.documentStore.document.tree,e);if(!t||t.data.type!==u&&t.data.type!==d)return;const n=t.data.type===u?"header":"footer";i.singularityStore.setHeaderAndFooterEditorPanelState({elementId:t.id,elementType:n});const o=s()(t.data.properties,"content.content.block");o&&(i.uiStore.isInlineEditing&&await(0,l.Uw)(),await(0,l.B7)({elementId:t.id,blockId:o,showBackdrop:!1,selectElementOnClose:!1,scrollToElementOnStart:!1,escToSelectElement:!1,forceSsrOnClose:!0})),await(0,c.forceNextTickAsync)((()=>{const t=(0,r.Q)();t&&t!==e&&i.uiStore.activateElement(t)}))}function g(){const e={id:0,data:{type:u,properties:null},children:[]};return i.singularityStore.headerAndFooterBlockIdsInWP.headerId&&(e.data.properties={content:{content:{block:i.singularityStore.headerAndFooterBlockIdsInWP.headerId}}}),e}function m(){const e={id:0,data:{type:d,properties:null},children:[]};return i.singularityStore.headerAndFooterBlockIdsInWP.footerId&&(e.data.properties={content:{content:{block:i.singularityStore.headerAndFooterBlockIdsInWP.footerId}}}),e}function v(e){console.log("addHeaderAndFooterNodesToTree called, value of header and footer block IDs in store is",i.singularityStore.headerAndFooterBlockIdsInWP);const t=g(),n=(0,a.copyNode)(e,t);(0,a.moveNode)(e,n.id,e.root.id,0);const o=m(),s=(0,a.copyNode)(e,o);return(0,a.moveNode)(e,s.id,e.root.id,e.root.children.length),e}function f(e){const t=e.root.children.find((e=>e.data.type===u))?.id,n=e.root.children.find((e=>e.data.type===d))?.id;return t&&(0,a.deleteNode)(e,t),n&&(0,a.deleteNode)(e,n),e}function y(){const e=i.documentStore.document.tree.root.children.find((e=>e.data.type===u)),t=i.documentStore.document.tree.root.children.find((e=>e.data.type===d));return{headerId:e?.id??null,footerId:t?.id??null}}function b(e){const t=e.root.children.filter((e=>e.data.type!==u&&e.data.type!==d));return 0===t.length}},46118:(e,t,n)=>{"use strict";n.d(t,{BE:()=>x,HO:()=>m,Jx:()=>w,hx:()=>f,ju:()=>S,nx:()=>v,qK:()=>b});var o=n(36968),s=n.n(o),a=n(27361),i=n.n(a),r=n(86687),l=n(31381),c=n(85450),u=n(88932),d=n(69137),p=n(11987);const h="futurelayer-prefer-overlay-header",g="futurelayer-header-is-overlay";function m(){const e=({elementId:e})=>{const t=y();if(!t)return;if(!v(e))return;const n=(0,l.findNode)(c.documentStore.document.tree,e);n&&d.n.ignore((()=>{x(e,n)?(w(n),I(t.id,t,!0)):I(t.id,t,!1)}))};r.w.register.onMovedElement(e),r.w.register.onMountedElement(e)}function v(e){return c.documentStore.document.tree.root.children[1]?.id===e}function f(e){const t=e.data.properties?.settings?.advanced?.classes;return!!Array.isArray(t)&&t.includes(h)}function y(){if(c.documentStore.document.tree.root.children[0]?.data.type===u.Uu)return c.documentStore.document.tree.root.children[0]}function b(e){const t=e.root.children[0];if(!t||t.data.type!==u.Uu)return e;const n=e.root.children[1];return n?(f(n)&&_(t,!0),e):e}function _(e,t){const n=i()(e,"data.properties.settings.advanced.classes",[]),o=Array.isArray(n)?n:[],a=o.filter((e=>e!==g)),r=t?[...a,g]:a;s()(e,"data.properties.settings.advanced.classes",r)}function I(e,t,n){const o=i()(t,"data.properties.settings.advanced.classes",[]),s=Array.isArray(o)?o:[],a=s.filter((e=>e!==g)),r=n?[...a,g]:a;c.documentStore.unthrottledPropertyChanged({elementId:e,path:"settings.advanced.classes",value:r,meta:{snapshotLabel:n?"Enable header overlay":"Disable header overlay"}})}function w(e){const t=y();t&&(0,p.$W)(e,t.id,t)}function x(e,t){return v(e)&&f(t)}function S(e){const t=e.data.properties?.settings?.advanced?.classes;return!!Array.isArray(t)&&t.includes(g)}},62962:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,v:()=>u});var o=n(85450),s=n(31381),a=n(94550),i=n(69137);function r(){const e=o.documentStore.document.tree.root;return(0,s.treeNodeReduce)(((e,t)=>{if(e.data.type===a.IMAGE_SLUG){const n=window.Breakdance.canvas.document.querySelector(`img[data-node-id="${e.id}"]`);if(n){const o={elementId:e.id,renderedWidthPx:n.offsetWidth,renderedHeightPx:n.offsetHeight};t.push(o)}}return t}),e,[])}function l(e){e.forEach((e=>{o.documentStore.unthrottledPropertyChanged({elementId:e.elementId,path:"meta.imageDimensions",value:{renderedWidthPx:e.renderedWidthPx,renderedHeightPx:e.renderedHeightPx},meta:{snapshotLabel:`Store image dimensions for node ${e.elementId}`}})}))}function c(){const e=r();i.n.ignore((()=>{l(e)}))}function u(){window.populateImageDimensions=c}},50247:(e,t,n)=>{"use strict";n.d(t,{FK:()=>g,I:()=>s,Jp:()=>u,Zu:()=>d,dF:()=>h,s_:()=>a,yz:()=>i});var o=n(94550);function s(e){return e.urls.raw.includes("unsplash")}function a(e){return e.urls.raw.includes("pexels")}function i(e){return e.urls.raw.includes("pixabay")}function r(e,t){return`${e}&w=${t}&dpr=2`}function l(e,t){const n=new URL(e);return n.searchParams.set("w",(2*t).toString()),n.searchParams.delete("h"),n.toString()}function c(e,t){return e}function u(e){let t=2160;e.data.type===o.SECTION_SLUG&&(t=2880),e.data.type===o.GALLERY_SLUG&&(t=2880);const n=e.data.properties?.meta?.imageDimensions?.renderedWidthPx;return"number"===typeof n&&n>0?t=n:console.warn("no stored width for image for",e.data.type,e.id),t}function d(e,t){return s(e)?t?r(e.urls.raw,t):e.urls.regular:a(e)?t?l(e.urls.raw,t):e.urls.regular:i(e)&&t?c(e.urls.raw,t):e.urls.regular}function p(e){return s(e)?`${e.user.name}`:a(e)?`${e.user.name}`:i(e)?`${e.user.name}`:null}function h(e){return s(e)?`Photo by ${p(e)} on Unsplash`:a(e)?`Photo by ${p(e)} on Pexels`:i(e)?`Photo by ${p(e)} on Pixabay`:`Photo by ${e.user.name}`}function g(e){return e.width>e.height?"landscape":e.width{"use strict";n.d(t,{q:()=>O,_:()=>L});var o=n(27361),s=n.n(o),a=n(85450),i=n(94550),r=n(31381),l=n(45335),c=n(10921);const u=[{elementSlug:i.SECTION_SLUG,paths:["design.background.image"]}];function d(e){const t=(0,r.treeNodeReduce)(((e,t)=>{const n=a.configStore.element(e.data.type),o=n?.controls?.contentSections||[],s=p(o,"content",e).map((t=>({nodeId:e.id,controlPath:t}))),i=u.find((t=>t.elementSlug===e.data.type))?.paths||[],r=i.map((t=>({nodeId:e.id,controlPath:t})));return[...t,...s,...r]}),e,[]);return t.filter((t=>{const n=(0,c.nv)(e,t.nodeId);return n&&!(0,l.rn)(n,t.controlPath)}))}function p(e,t,n){return e.reduce(((e,o)=>{const a=`${t}.${o.slug}`;if("wpmedia"===o.options.type&&e.push(a),"repeater"===o.options.type&&o.children){const t=s()(n.data.properties,a);Array.isArray(t)&&t.forEach(((t,s)=>{const i=`${a}[${s}]`;e.push(...p(o.children,i,n))}))}else o.children&&e.push(...p(o.children,a,n));return e}),[])}var h=n(6613),g=n(65913),m=n(32521);const v=m.dt({nodeId:m.pk,controlPath:m.Z_,keywords:m.IX(m.Z_)}),f=m.dt({response:m.IX(v)});function y(e){return{nodeType:e.data.type,nodeId:String(e.id),content:e.data.properties?.content||{},children:e.children.length>0?e.children.map((e=>y(e))):void 0}}function b(e){console.warn("generateImageKeywordsPrompt called");const t=y(e),n=d(e),o=a.globalStore.aiSettings.prompt.businessName,s=a.globalStore.aiSettings.prompt.businessDescription;return`You are generating search keywords for stock photo websites (Unsplash/Pexels). \n \n Based on the following website section structure, please provide search keywords for the images at the specified control paths.\n\nWebsite Context:\n- Business Name: ${o}\n- Business Description: ${s}\n\nSection structure:\n${(0,h.g)(t)}\n\nImage controls to populate:\n${n.map((e=>`- NODEID: ${e.nodeId}, CONTROLPATH: ${e.controlPath}`)).join("\n")}\n\nSTRICT RULES:\n1. Keywords must be one or two words.\n2. No vague adjectives like "safe", "fun", "professional", and no abstract concepts like "experience", "service"\n\nFor each control path, analyze the surrounding content (headings, text, context) AND the business context to determine what the image should represent. Keep the business context in mind as well, if we are building a website for a restaurant, and the section is about making a reservation, the image still needs to related to restaurants, it shouldn't be generic about reservations.\n\nEXAMPLES:\n- Dog hotel teaching skiing: "dog", "dog skiing", "ski dog", "snow dog" NOT "outdoor adventure"\n- Pizza restaurant: "pizza", "pizza dough", "pizza oven", "pepperoni pizza" NOT "food" or "dough"\n- Car repair: "car", "car repair", "car engine", "auto mechanic", NOT "tools" or "service"\n- Yoga studio: "yoga studio", "yoga", "yoga pose", "yoga mat"\n- Bakery: "bakery", "bread", "croissant"\n\nIt's important you return the exact control path specified by me, and the exact node id specified by me (it follows NODEID: - ignore any other id keys in the provided JSON, and the controlpath that follows CONTROLPATH:)\n\n`}function _(e){const t=b(e);return{id:`image-keywords-${e.id}`,messages:[{role:"user",content:t}],responseFormat:(0,g.Yz)(f,"image_keywords_schema")}}var I=n(44652),w=n(56888);async function x(e,t){const n=_(e),o=await(0,I.M)([n],t);if(0===o.length||!o[0].content)throw new Error("No response from AI batch request");return(0,w.B)(o[0].content)}var S=n(52166),C=n(14663),k=n(50247),P=n(86025),Z=n(34886),D=n(47354);const E="https://app.futurelayer.ai/app/black-square-20x20.png";async function T(e,t,n){const o=(await x(e,n)).response,s=(0,S.Bi)(o);(0,S.CQ)(s,t,e)}async function A(e,t,n){const o=(0,r.treeNodeReduce)(((e,t)=>{const n=a.configStore.element(e.data.type);if(n.settings&&n.settings.disableAI)return t;if(Z.K.includes(e.data.type)&&(0,D.o8)())return t;const o=(0,S.p5)(e);return o.length>0&&t.push({nodeId:e.id,imageControls:o}),t}),e,[]);for(const{nodeId:s,imageControls:a}of o){const o=await Promise.all(a.map((async e=>{let t=[];try{t=await(0,C.Ok)({query:e.keywords[0],page:1,per_page:25},n)}catch(o){console.error("Image service failed for query:",e.keywords[0]),console.error("Error details:",o),t=[{id:"fallback-black-square",description:"Fallback image due to service error",alt_description:"Black square placeholder",urls:{raw:E,full:E,regular:E,small:E,thumb:E},user:{name:"Fallback",username:"fallback"},width:1e3,height:1e3}]}return{...e,searchResults:t}})));(0,S.Kc)(s,"meta.futureLayer.images",o,`Updated search results for node "${s}"`,t,e)}}async function M(e,t,n){const o=(0,r.treeNodeReduce)(((e,t)=>{const n=(0,S.p5)(e);return n.length>0&&t.push({node:e,imageControls:n}),t}),e,[]),s=[];for(const{node:a,imageControls:i}of o)for(const o of i)if(o.searchResults.length>0){const i=await(0,c.pM)(o.searchResults,o.controlPath,n);console.log("setImageInSectionToSearchResult",a.id,o,i),s.push((()=>V(a,o,i,t,e,n)))}await Promise.all(s.map((e=>e())))}async function V(e,t,n,o,s,a){const i=(0,k.Jp)(e),r=(0,k.Zu)(n,i);if((0,P.oI)(n)){(0,S.Kc)(e.id,t.controlPath,{id:-1,type:"external_image",url:r,alt:n.alt_description||"",caption:n.description||""},`Update image at ${t.controlPath}`,o,s);const i=await(0,P.Aq)(r,n,a);if(i)return void(0,S.Kc)(e.id,t.controlPath,(0,P.oM)(i),`Update image at ${t.controlPath} with downloaded image`,o,s);console.warn(`Failed to download image for ${t.controlPath}, falling back to external image`)}(0,S.Kc)(e.id,t.controlPath,{id:-1,type:"external_image",url:r,alt:n.alt_description||"",caption:n.description||""},`Update image at ${t.controlPath}`,o,s)}var B=n(62962);async function O(e,t){console.log("replaceImagesInSectionWithAi starting...",e.id),await T(e,"store",t),await A(e,"store",t),await M(e,"store",t),console.log("replaceImagesInSectionWithAi done for",e.id)}async function L(e,t){return console.log("replaceImagesInSectionWithAiMutating starting...",e.id),await T(e,"mutate",t),await A(e,"mutate",t),await M(e,"mutate",t),console.log("replaceImagesInSectionWithAiMutating done for",e.id),e}(0,B.v)()},86025:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>d,K6:()=>c,nQ:()=>p,oI:()=>u,oM:()=>l});var o=n(98851),s=n(32521),a=n(50247);const i=s.dt({attachment_id:s.pk,url:s.Z_,alt:s.Z_,caption:s.Z_}),r=s.dt({used_stock_photo_ids:s.IX(s.Z_)});function l(e){const t={id:e.attachment_id,filename:`downloaded-image-${e.attachment_id}.jpg`,url:e.url,alt:e.alt,caption:e.caption,type:"image",mime:"image/jpeg",sizes:{full:{width:1200,height:800,orientation:"landscape",url:e.url}},attributes:{}};return t}function c(e){return(0,a.I)(e)?`unsplash-${e.id}`:(0,a.s_)(e)?`pexels-${e.id}`:(0,a.yz)(e)?`pixabay-${e.id}`:`unknown-${e.id}`}function u(e){return!(0,a.I)(e)}async function d(e,t,n){try{const s=c(t),a=h(t);"undefined"!==typeof ray&&ray("📥 Downloading image to media library",{stockPhotoId:s,filename:a,imageUrl:e,alt_text:t.alt_description||"",caption:t.description||""});const r=await(0,o.D)({action:"breakdance_download_external_image",dataToPost:{image_url:e,alt_text:t.alt_description||"",caption:t.description||"",filename:a,stock_photo_id:s},decoder:i,friendlyName:"Download external image to media library",abortController:n});return"Right"===r._tag?("undefined"!==typeof ray&&ray("✅ Image download successful",r.right),r.right):("undefined"!==typeof ray&&ray("❌ Image download failed",r.left),console.error("Failed to download image to media library:",r.left),null)}catch(s){return"undefined"!==typeof ray&&ray("💥 Image download error",s),console.error("Error downloading image to media library:",s),null}}async function p(e){try{const t=await(0,o.D)({action:"breakdance_get_used_stock_photos",dataToPost:{},decoder:r,friendlyName:"Get used stock photos",abortController:e});return"Right"===t._tag?t.right.used_stock_photo_ids:(console.error("Failed to get used stock photos:",t.left),[])}catch(t){return console.error("Error getting used stock photos:",t),[]}}function h(e){let t="stock-image";e.alt_description?t=e.alt_description.toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").substring(0,100):e.description&&(t=e.description.toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").substring(0,100)),t=`${t}-${e.id}`;const n="jpg";return`${t}.${n}`}},52166:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>r,CQ:()=>l,Kc:()=>d,p5:()=>u});var o=n(36968),s=n.n(o),a=n(85450),i=n(10921);function r(e){const t=e.reduce(((e,t)=>(e[t.nodeId]||(e[t.nodeId]=[]),e[t.nodeId].push({controlPath:t.controlPath,keywords:t.keywords,searchResults:[]}),e)),{});return Object.entries(t).map((([e,t])=>({nodeId:parseInt(e),data:t})))}function l(e,t,n){e.forEach((({nodeId:e,data:o})=>{c(e,o,t,n)}))}function c(e,t,n,o){d(e,"meta.futureLayer.images",t,`Updated futureLayer.images for node "${e}"`,n,o)}function u(e){return e.data.properties?.meta?.futureLayer?.images??[]}function d(e,t,n,o,r,l){if("store"===r)a.documentStore.unthrottledPropertyChanged({elementId:e,path:t,value:n,meta:{snapshotLabel:o}});else{const o=(0,i.nv)(l,e);o&&s()(o,`data.properties.${t}`,n)}}},10921:(e,t,n)=>{"use strict";n.d(t,{Bs:()=>a,nv:()=>i,pM:()=>c});var o=n(86025),s=n(85450);function a(e){return{id:-1,type:"external_image",url:e.urls.regular||"",alt:e.alt_description||"",caption:e.description||""}}function i(e,t){if(e.id===t)return e;for(const n of e.children){const e=i(n,t);if(e)return e}return null}let r=null;async function l(e){0!==s.singularityStore.usedStockPhotoIds.length||r||(r=(0,o.nQ)(e).then((e=>{s.singularityStore.setUsedStockPhotoIds(e)}))),r&&await r}async function c(e,t,n){await l(n),console.log(`IMAGE STUFF 🔍 selectUnusedImage for ${t}`),console.log(`IMAGE STUFF 📊 Current used IDs count: ${s.singularityStore.usedStockPhotoIds.length}`),console.log("IMAGE STUFF 📋 Current used IDs:",s.singularityStore.usedStockPhotoIds.slice(0,5),"...");const a=e.filter((e=>{const t=(0,o.K6)(e),n=s.singularityStore.usedStockPhotoIds.includes(t);return console.log(`IMAGE STUFF 🖼️ Image ${t}: ${n?"❌ USED":"✅ available"}`),!n}));let i;console.log(`IMAGE STUFF 📈 Available images: ${a.length}/${e.length}`),0===a.length?(console.warn(`IMAGE STUFF ⚠️ No unused images available for ${t}, using first result anyway`),i=e[0]):i=a[0];const r=(0,o.K6)(i);console.log(`IMAGE STUFF 🎯 Selected ${r} for ${t}`);const c=s.singularityStore.usedStockPhotoIds.length,u=[...s.singularityStore.usedStockPhotoIds,r];s.singularityStore.setUsedStockPhotoIds(u);const d=s.singularityStore.usedStockPhotoIds.length;return console.log(`IMAGE STUFF 📝 Store updated: ${c} → ${d} used IDs`),i}},2462:(e,t,n)=>{"use strict";n.d(t,{$:()=>h,i:()=>g});var o=n(27361),s=n.n(o),a=n(85450),i=n(41791),r=n(93979),l=n(88932),c=n(31381),u=n(42665);class d{constructor(){this.generatingPages=new Set,this.generatingBlocks=new Set}async startBackgroundGenerationForPage(e,t){this.isGenerating(t)||(this.setGenerating(t,!0),u.P.addJob((async n=>{try{await(0,i.x)(e,t,n)}catch(o){console.error("Background page generation failed:",o)}finally{this.setGenerating(t,!1)}}),{jobType:"background_page_generation",pageId:t,pageTitle:e,description:`Generating page: ${e}`,priority:"low"}))}async startBackgroundGenerationForGlobalBlock(e,t){this.isGenerating(e)||(console.log("ASDFG startBackgroundGenerationForGlobalBlock"),u.P.addJob((async n=>{this.setGeneratingBlock(e,!0);try{await(0,i.wb)(e,n)}catch(o){console.error("ASDFG Background global block generation failed:",o)}finally{this.setGeneratingBlock(e,!1);const n=t();n&&(console.log("triggering ssr refresh for ",n),(0,r.D)(n))}}),{jobType:"background_block_generation",blockId:e,blockTitle:`Block ${e}`,description:`Generating global block: ${e}`,priority:"high"}))}isGenerating(e){return this.generatingPages.has(e)}getGeneratingPageIds(){return Array.from(this.generatingPages)}getGeneratingBlockIds(){return Array.from(this.generatingBlocks)}setGenerating(e,t){t?this.generatingPages.add(e):this.generatingPages.delete(e);const n=a.singularityStore.pagesInWP.map((n=>n.id===e?{...n,generatingInBackground:t}:n));a.singularityStore.setPagesInWP(n)}setGeneratingBlock(e,t){t?this.generatingBlocks.add(e):this.generatingBlocks.delete(e);const n=p(Array.from(this.generatingBlocks));console.log("ASDFG setGeneratingBlock called for",e,t),console.log("ASDFG idsOfBackgroundGeneratingHeadersAndFooters",n),a.singularityStore.setBackgroundGeneratingHeadersAndFooters(n)}}function p(e){const t=[];return(0,c.treeNodeReduce)(((t,n)=>{if(t.data.type===l.Uu||t.data.type===l.hO){const o=s()(t.data.properties,"content.content.block");e.includes(o)&&n.push(t.id)}return n}),a.documentStore.document.tree.root,t),t}function h(e){const t=new Set(a.singularityStore.backgroundGeneratingHeadersAndFooters);t.add(e),a.singularityStore.setBackgroundGeneratingHeadersAndFooters(Array.from(t))}const g=new d},41791:(e,t,n)=>{"use strict";n.d(t,{P2:()=>S,hF:()=>x,wb:()=>C,x:()=>I});var o=n(81626),s=n(51617),a=n(85450),i=n(1638),r=n(5547),l=n(34755),c=n(52338),u=n(44652),d=n(23128),p=n(31381),h=n(76491),g=n(45335),m=n(48299),v=n(88932),f=n(46118),y=n(87615),b=n(45974),_=n(20918);async function I(e,t,n,o){const s=a.singularityStore.pagesInWP.map((e=>e.title));var i=(0,r.s8)();const d=await w(e,s,n,o);if(console.log("generatePageDescriptionWithLlm done",i()),!d)return;let p=(0,v.LC)((0,l.KN)(d.sections));p=(0,f.qK)(p),console.log("getTreeFromSectionDescriptions done",p,i());var h=await(0,c.DC)({id:t,title:e,postType:"page",tree:p,singularityMeta:{singularityInitialSections:d.sections,initialSectionsAlreadyPopulated:!1}});console.log("addOrUpdatePageInWP done",h,i());const g=(0,v.rw)(p),m=k({title:e,tree:g});console.log("getBatchRequestsForPage done",m,i());const y=await(0,u.M)(m.requests,n);console.log("callAIBatch done",y,i());const b=x(g,y);console.log("populateTreeFromBatchResponse done",b,i());const _=await S(b,n);let I=(0,v.LC)(_);return I=(0,f.qK)(I),h=await(0,c.DC)({id:t,title:e,postType:"page",tree:I,singularityMeta:{singularityInitialSections:d.sections,initialSectionsAlreadyPopulated:!0}}),h?(console.log("addOrUpdatePageInWP done",h,i()),h):void 0}async function w(e,t,n,r){const l=a.globalStore.aiSettings.prompt.businessName,c=a.globalStore.aiSettings.prompt.businessDescription,u=(0,s.FX)().map((e=>`'${e}'`)).join(", ");var d="";const p=t.map((e=>`- ${e}`)).join("\n"),h=r?`\nAdditional information about the page:\n${r}`:"";d=`We have a website with the following pages:\n ${p}\n \n Website name: ${l}\n Website description: ${c}\n\n You will generate the list of sections for the page page titled "${e}"\n ${h}\n\n The page should have an appropriate number of sections. Maybe 8 for a homepage, 3 or 4 for a services page, and just one or two for the contact page. Feel free to deviate from this if you think it makes sense.\n\n Valid values for 'type' are ${u}. It's important you don't use any other values for 'type'.\n `;const g=await(0,o.C)(d,i.b5,n,!0);return g}function x(e,t){const n=(0,d.Z)(e);return t.forEach((e=>{const t=(0,p.findNode)(n,Number(e.id));t&&(0,l.pO)(t,(0,h.J4)(e.content??""),(0,g.LX)(t),n)})),n}async function S(e,t){console.log("populateTreeWithImages started");const n=(0,d.Z)(e),o=n.root.children.map((e=>(0,m._)(e,t)));return console.warn("awaiting promise.all"),await Promise.all(o),console.warn("promise.all done"),console.log("populateTreeWithImages done"),n}async function C(e,t){var n=(0,r.s8)();const o=await(0,y.m9)(e),s=(0,b.fold)((()=>null),(e=>e))(o);if(!s||!s.tree)return void console.error("Failed to load existing global block tree");const a=(0,p.createTreeFromExportedTree)(s.tree);console.log("Loaded existing global block tree",n());const i=k({title:s.label,tree:a});console.log("getBatchRequestsForPage done",i,n());const l=await(0,u.M)(i.requests,t);console.log("callAIBatch done",l,n());const d=x(a,l);console.log("populateTreeFromBatchResponse done",d,n());const h=await S(d,t),g=await(0,c.DC)({id:e,title:s.label,postType:_.hF,tree:h});return g?(console.log("addOrUpdatePageInWP - updatedGlobalBlock - done",g,n()),g):void 0}function k(e){return{title:e.title,requests:e.tree.root.children.map((e=>({id:String(e.id),messages:(0,l.kk)(e)})))}}},34755:(e,t,n)=>{"use strict";n.d(t,{KN:()=>p,kk:()=>d,pO:()=>h});var o=n(36968),s=n.n(o),a=n(51617),i=n(31381),r=n(45335),l=n(74959),c=n(15167),u=n(85450);function d(e){const t=(0,c.E)(e),n=(0,r.LX)(e),o=(0,l.ee)(n);return(0,l.r1)(o,t,u.globalStore.aiSettings.prompt)}function p(e){const t=(0,i.getBlankTree)();for(let n=0;n{const t=(0,i.findNode)(o,e.nodeId);t&&s()(t.data.properties,e.controlPath,e.value)}));const l=(0,c.E)(e);return l.singularity.shouldGenerateOnInitialLoad=!1,l.singularity.unsplashKeywords=a.unsplash_keywords,s()(e.data.properties,"meta.promptInfo",l),e}},52666:(e,t,n)=>{"use strict";n.d(t,{Np:()=>u,w1:()=>h,ZT:()=>p});var o=n(85450),s=n(76491),a=n(23128);function i(e){const t=(0,a.Z)(o.globalStore.aiSettings);t.prompt.businessName=e,o.globalStore.setAiSettings(t)}function r(e){const t=(0,a.Z)(o.globalStore.aiSettings);t.prompt.businessDescription=e,o.globalStore.setAiSettings(t)}var l=n(20608);if(143==n.j)var c=n(6613);function u(){return{title:o.globalStore.aiSettings.prompt.businessName||"",description:o.globalStore.aiSettings.prompt.businessDescription||""}}async function d(e){try{const t=await(0,l.pb)("/sites/update-title",{body:(0,c.g)({title:e})});t.ok||console.error("Failed to update site title on FutureLayer:",t.status)}catch(t){console.error("Error updating site title on FutureLayer:",t)}}async function p(e){i(e.title),r(e.description),await(0,s.yV)(),await d(e.title)}function h(e){e&&(o.singularityStore.setHomepageInWP(e.homepageId),o.singularityStore.setSiteStatus({isClaimed:e.isClaimed,claimUrl:e.claimUrl,siteState:e.siteState}))}},88396:(e,t,n)=>{"use strict";n.d(t,{d6:()=>l,pl:()=>r});var o=n(32521);const s=o.dt({type:o.i0("anonymous"),credits:o.pk,expiration:o.G0([o.pk,o.lB])}),a=o.dt({type:o.i0("claimed"),site_id:o.pk,expiration:o.G0([o.pk,o.lB]),user_data:o.dt({email:o.Z_,credits:o.pk,plan_slug:o.Z_})}),i=o.dt({error:o.Z_}),r=o.G0([s,a,i]),l=o.G0([o.dt({homepageId:o.pk,isClaimed:o.O7,claimUrl:o.Z_,siteState:o.G0([r,o.lB])}),o.i0(!1)])},47354:(e,t,n)=>{"use strict";n.d(t,{Cr:()=>a,V6:()=>i,VH:()=>r,o8:()=>c});var o=n(41720),s=n(85450);function a(){s.uiStore.setMode({mode:"builder"}),l();const e=new URL(window.location.href);e.searchParams.delete("singularity"),window.history.replaceState({},"",e.toString())}function i(){l(),r(),(0,o.B)("step2");const e=new URL(window.location.href);e.searchParams.set("singularity","step2"),window.history.replaceState({},"",e.toString())}function r(){s.uiStore.setMode({mode:"builder",modifier:"singularity",singularityState:{step:window.Breakdance.singularity}})}function l(){s.uiStore.setCanvasState("loading"),s.configStore.setLeavingIframeOnPurpose(!0)}function c(){return s.uiStore.isSingularityMode}},45335:(e,t,n)=>{"use strict";n.d(t,{EJ:()=>z,Fg:()=>U,JA:()=>R,LX:()=>Z,Qm:()=>q,Wh:()=>H,gU:()=>k,hh:()=>P,ho:()=>D,kq:()=>w,nS:()=>j,p2:()=>X,rn:()=>W,w2:()=>L,wi:()=>x,zX:()=>N});var o=n(27361),s=n.n(o),a=n(85450),i=n(96628),r=n(74959),l=n(88506),c=n(30902),u=n(36055),d=n(45974),p=n(31381),h=n(94550),g=n(23128),m=n(65118),v=n(39664),f=n(34886),y=n(47354);if(143==n.j)var b=n(6613);var _=n(69137);const I={elements:[],unsplash_keywords:[],sectionType:"Empty Completion"};function w(){return{isApiKeySet:!1,isStreamingEnabled:!1,model:"",locale:"en_US",prompt:{businessName:"",businessDescription:"",qualifiers:"",presets:[]}}}function x(e,t){if(!e)return I;const n=(0,c.pipe)((0,l.Z)(e),(0,d.fold)((t=>(console.log("Error parsing JSON from AI:",t[0].msg),console.log(e),console.log(""),null)),(e=>e)));return n&&Array.isArray(n?.elements)?{...n,elements:n.elements.filter((e=>void 0!==e.index&&void 0!==e.content)).map((e=>({nodeId:t[e.index].nodeId,controlPath:t[e.index].controlPath,value:e.content})))}:I}let S=[];function C(e,t){return e.nodeId===t.nodeId&&e.controlPath===t.controlPath&&e.value===t.value}function k(e){const t=e.filter((e=>!S.some((t=>C(t,e)))));S=e,_.n.transaction((()=>{t.forEach((e=>{a.documentStore.throttledPropertyChanged({elementId:e.nodeId,path:e.controlPath,value:e.value,meta:{snapshotLabel:"Update from Generative AI"}})}))}),"Update from Generative AI")}function P(e,t,n){e.filter((e=>{if(n){const t=(0,p.findNode)(a.documentStore.document.tree,e.nodeId);if(!t)return!1;const n=s()(t.data.properties,e.controlPath);return null===n||void 0===n||""===n}return!0})).forEach(((e,n)=>{const o=t[n];a.documentStore.unthrottledPropertyChanged({elementId:e.nodeId,path:e.controlPath,value:{id:-1,type:"external_image",url:o.urls.regular,alt:o.alt_description||"",caption:o.description||""},meta:{snapshotLabel:"Update image from Generative AI"}})}))}function Z(e,t=[],n=""){const o=a.configStore.element(e.data.type);if(o.settings&&o.settings.disableAI)return t;if(f.K.includes(e.data.type)&&(0,y.o8)())return t;let s=[...t,...A(o.controls.contentSections,"content",e,[],n)];const i=e.data?.properties?.settings?.futurelayer?.more_descriptive_type,r=i?n?`${n} > ${i}`:i:n;return e.children.forEach((e=>{s=Z(e,s,r)})),s}function D(e,t=[],n=""){const o=a.configStore.element(e.data.type);if(o.settings&&o.settings.disableAI)return t;if(f.K.includes(e.data.type)&&(0,y.o8)())return t;let s=[...t,...T(a.configStore.element(e.data.type).controls.contentSections,"content",e,[],n),...E(e)];const i=e.data?.properties?.settings?.futurelayer?.more_descriptive_type,r=i?n?`${n} > ${i}`:i:n;return e.children.forEach((e=>{s=D(e,s,r)})),s}function E(e){const t=[];if(e.data.type===h.SECTION_SLUG){const n={nodeId:e.id,nodeName:a.configStore.element(e.data.type).name,controlPath:"design.background.image",field:{description:"Section - Background Image",label:"Background Image",value:"",type:"wpmedia",locked:!1}};s()(e.data.properties,"design.background.image")&&t.push(n)}return t}function T(e,t,n,o=[],i=""){const r=a.configStore.element(n.data.type),l=o;return e.forEach((e=>{const o=`${t}.${e.slug}`;"wpmedia"===e.options.type&&l.push({nodeId:n.id,nodeName:r.name,controlPath:o,field:{description:B(e,o,n.data.type,n,i),label:e.label,value:s()(n.data.properties,o),type:e.options.type,locked:W(n,o)}}),T(e.children,o,n,l,i)})),l}function A(e,t,n,o=[],i=""){const r=a.configStore.element(n.data.type),l=o;return e.forEach((e=>{const o=`${t}.${e.slug}`;!V(e)||M(e,t,n)&&"link"!==e.options.type||l.push({nodeId:n.id,controlPath:o,nodeName:r.name,field:{description:B(e,o,n.data.type,n,i),label:e.label,value:s()(n.data.properties,o),type:e.options.type,locked:W(n,o)}}),"repeater"!==e.options.type&&A(e.children,o,n,l,i)})),l}function M(e,t,n){const o=`${t}.${e.slug}`,a=s()(n.data.properties,o,"");return""===a||null===a||void 0===a}function V(e){return["text","richtext","repeater","link"].includes(e.options.type)}function B(e,t,n,o,s=""){const i=o.data?.properties?.settings?.futurelayer?.more_descriptive_type,r=i||a.configStore.element(n).name,l=s?`${s} > ${r}`:r;if("repeater"===e.options.type){const t=e.children.filter(V).map((e=>e.slug)),n=t.join(", ");return`${l} - An array of objects with the following keys: ${n}.`}return t.endsWith("button.text")?`${l} - Button`:r===e.label?l:"link"===e.options.type?`${l} - URL`:`${l} - ${e.label}`}function O(e,t,n,o){const s=a.configStore.element(t.data.type).name,i=(0,p.getNodeIndex)(e,t.id),l=(0,p.getOutermostAncestor)(e,t.id),c=l?a.configStore.element(l.data.type).name:"",u=[];if(l){const t=(0,p.getNodeIndex)(e,l.id),n=(0,r.Qc)(t+1);u.push(s),u.push("on"),u.push(n),u.push(c)}else if(t.data.type===h.SECTION_SLUG){const e=(0,r.Qc)(i+1);u.push(0===i?"Hero":e),u.push("section")}return u.push("on"),u.push(`"${n}"`),u.push(o.replace("breakdance_","")),u.join(" ")}function L(e){const t=e.data?.properties?.meta?.friendlyName;if(t)return t;const n=a.configStore.element(e.data.type).name;return`${n} #${e.id}`}function $(e){return e.data?.properties?.meta?.promptInfo}function z(e){const t=a.documentStore.document.documentMeta,n=$(e);return n?.sectionDescription?n.sectionDescription:O(a.documentStore.document.tree,e,t.titleLabel,t.postType)}function N(e){const t=$(e);return t?.qualifiers||""}function H(e){const t=$(e)?.temperature;return void 0!==t?t:1}function R(e,t){const n=a.configStore.element(e.data.type).name;a.documentStore.unthrottledPropertyChanged({elementId:e.id,path:"meta.promptInfo",meta:{snapshotLabel:`Updated prompt info for element "${n}"`},value:t})}function G(e,t){const n=a.configStore.element(e.data.type).name,o=$(e)?.lockedFields||[],s=(0,g.Z)(o);s.includes(t)||s.push(t),a.documentStore.unthrottledPropertyChanged({elementId:e.id,path:"meta.promptInfo.lockedFields",meta:{snapshotLabel:`Locked field "${t}" for element "${n}"`},value:s})}function F(e,t){const n=a.configStore.element(e.data.type).name,o=$(e)?.lockedFields||[],s=(0,g.Z)(o),i=s.indexOf(t);i>-1&&s.splice(i,1),a.documentStore.unthrottledPropertyChanged({elementId:e.id,path:"meta.promptInfo.lockedFields",meta:{snapshotLabel:`Unlocked field "${t}" for element "${n}"`},value:s})}function U(e,t){W(e,t)?F(e,t):G(e,t)}function W(e,t){const n=$(e)?.lockedFields||[];return n.includes(t)}function j(e){return $(e)?.lockedFields||[]}function X(e){const t=Z(e);if(!t.length)return"";const n=t.map((e=>{const t=e.field.value;if(null===t||void 0===t||""===t)return null;let n=t;return(Array.isArray(t)||"object"===typeof t)&&(n=(0,b.g)(t)||String(t)),`${e.field.description}: ${n}`})).filter(Boolean);return n.length?`Old section content:\n${n.join("\n")}`:""}function q(e){const t=(0,u.__)("Failed to get a response from OpenAI API, please try again."),n=e.slice(1,-1).replace(/\\n/g,"").replace(/\\"/g,'"').trim(),o=(0,c.pipe)((0,m.Z)(n,i.Z4),(0,d.fold)((()=>null),(e=>e))),s=o?.error?.message||t;console.log(n),v.Z.log.errorMessage(s)}},76491:(e,t,n)=>{"use strict";n.d(t,{I8:()=>x,Ig:()=>w,J4:()=>_,Tk:()=>m,ho:()=>f,m3:()=>y,n7:()=>I,y8:()=>b,yV:()=>S});var o=n(45974),s=n(32521),a=n(98851),i=n(96628),r=n(65669),l=n(88506),c=n(30902),u=n(85450),d=n(69137),p=n(19528),h=n.n(p),g=n(44652);async function m(e,t="json",n="breakdance_ai_request_completion",o,i){return o?v(e,t,i):(0,a.D)({action:n,friendlyName:"AI Assistant",dataToPost:{messages:(0,r.J)(e),format:t},decoder:s.Z_,resultKey:"data",abortController:i})}async function v(e,t="json",n){try{let s;"json"===t&&(s={type:"json_object"});const a={id:"completion-request",messages:e,responseFormat:s},i=await(0,g.M)([a],n);return i.length>0&&i[0].content?(0,o.right)(i[0].content):(0,o.right)("this should not be reached")}catch(s){return console.error("Railway completion request failed:",s),(0,o.right)("")}}async function f(e,t="json",n){await(0,a.D)({action:"breakdance_ai_persist_messages",friendlyName:"AI Assistant - Persist Messages",dataToPost:{messages:(0,r.J)(e),format:t,temperature:n},decoder:s.dt({status:s.i0("ok")})})}function y(e="/ai/stream-completion"){const t=`${window.Breakdance.restUrl}${e}`,n=t.includes("?")?"&":"?";return new EventSource(`${t}${n}_wpnonce=${window.Breakdance.restNonce}`)}function b(e){const t=(0,c.pipe)(e,l.Z,(0,o.fold)((()=>{}),(e=>e))),n=t?.choices[0].delta.content;return null!==n&&void 0!==n?n:""}function _(e){return e=e.replace("```json",""),e=e.replace(/^json/g,""),e=e.replace("```",""),e}function I(e){return e=e.replace('"index" 0','"index": 0'),e=e.replace('index" 0','"index": 0'),e=e.replace('"index 0','"index": 0'),h()(e)}async function w(e,t,n){const r=await(0,a.D)({action:"breakdance_ai_talk_to_unsplash",friendlyName:"Unsplash Assistant",dataToPost:{prompt:e.join(", "),limit:t,orientation:n},decoder:s.IX(i.pi),resultKey:"data"});return(0,c.pipe)(r,(0,o.fold)((()=>[]),(e=>e)))}async function x(){const e=await(0,a.D)({action:"breakdance_ai_get_settings",decoder:i.YF,resultKey:"data",suppressErrorLogging:!0});return(0,c.pipe)(e,(0,o.fold)((()=>!1),(e=>(d.n.ignore((()=>{u.globalStore.setAiSettings(e),u.globalStore.markCurrentAiSettingsAsUntouched()})),!0))))}async function S(){const e=u.globalStore.aiSettings,t=await(0,a.D)({action:"breakdance_ai_save_settings",dataToPost:{settings:(0,r.J)(e.prompt)},decoder:i.YF,resultKey:"data"});return(0,c.pipe)(t,(0,o.fold)((()=>!1),(e=>(d.n.ignore((()=>{u.globalStore.setAiSettings(e),u.globalStore.markCurrentAiSettingsAsUntouched()})),!0))))}},74959:(e,t,n)=>{"use strict";n.d(t,{Qc:()=>d,ee:()=>r,r1:()=>c,wX:()=>l});var o=n(45974),s=n(30902),a=n(65669),i=n(85450);function r(e){return e.map(((e,t)=>({index:t,type:e.field.description,content:"",locked:e.field.locked,maxLength:("string"===typeof e.field.value?e.field.value.length:0)+1})))}function l(e,t){const n=[{name:"Business Name",value:e.businessName??"Bizcorp"},{name:"Business Description",value:e.businessDescription??"Bizcorp provides products and services."},{name:"Section Description",value:t?.sectionDescription??""},{name:"Qualifiers",value:t?.qualifiers&&""!==t?.qualifiers?t.qualifiers:e.qualifiers??""}];return n.reduce(((e,t)=>t.value?`${e}\n${t.name}: ${t.value}`:e),"")}function c(e,t,n,r){const c=(0,s.pipe)(e,a.J,(0,o.fold)((()=>null),(e=>e))),u=i.singularityStore.pagesInWP.map((e=>e.relativeUrl)),d=l(n,t);return[{role:"system",content:`\nYou are a helpful AI assistant. Your jobs is to help build a website for a business. You are going to create text content for a section on the website.\n\n## Rules for the content:\nYou will be provided with a few pieces of information to help you generate content for the section.\nThe "section description" is a short description of the section, that will tell the type of content to generate and where it might be positioned on the page. Example: "Hero section on About Us page", "2nd section on Contact page", "3rd section on Home page".\nThe "qualifiers" is a short sentence that affects the writing style of the content. Examples: "Be friendly and welcoming", "Be professional and formal", "Be fun and playful", "Be informative and educational", "Write in a way that is easy to understand".\n${r?"Right now we are replacing an existing section. You should re-use the old content exactly in the new section. The old content will be provided below. the content from the existing section will be provided below.":""}\n\n## Rules for the JSON structure:\n- You will be provided a JSON structure of the section content.\n- You will respond back with the same JSON structure, but with the "content" key filled in.\n- You must not use newline characters.\n- The provided JSON must be nested in a key called "elements".\n- You can use the "type" key to determine what type of content to generate for the "content" key.\n- The "content" key MUST never be null or empty, you must always provide a value and be creative. Try to guess what content would be appropriate based on the "type" key.\n- The "content" key can be formatted as HTML only if the "type" key starts with "Rich Text".\n- If the "type" key starts with "Dual Heading", this means this heading can have words separated and styled differently. For example, "This is a *heading* with words *highligthed*.". Use the "secondary_style" (boolean) key to style the secondary words.\n- If the "type" key starts with "Simple Counter - Suffix", this means the "content" key is a suffix for a number. For example, "s", "ms", " guests", " years old", etc.\n- If the "type" key mentions "Array of objects", this means the "content" key is an array of objects. The objects must have all the keys mentioned in the "type" key.\n- If the "locked" key is true, remove this item from the array.\n- If a "maxLength" key is provided, the "content" key in the same object must not exceed the provided length.\n- Fill the "unsplash_keywords" key with keywords related to the content generated, max. of 3. These keywords will be used to find images on Unsplash.\n- Fill the "sectionType" key with something non-business specific - i.e. "Hero", "Contact Form", etc. DO NOT INCLUDE specifics about the business.\n- Respond strictly with valid JSON, if you don't, great sadness will happen.\n- Write the response in ${t.locale}\n- If the type key ends with " - URL", the content must be a relative URL from this list of provided relative URLs: ${u.join(", ")}.\n\n## Other notes\n- Don't use * or any kind of markdown in headings or any other text for formatting.\n\nThe JSON must be compatible with the following TypeScript interface:\n\ninterface Response {\n elements: Array<{\n index: number;\n type: string;\n content: string|unknown[];\n }>;\n unsplash_keywords: string[];\n sectionType: string;\n}\n`},{role:"user",content:d},...r?[{role:"user",content:`Here is the old content from the section being replaced. Re-use this verbatim when possible. Only generate new content if you need to fill a field that doesn't have a value provided here:\n\n${r}`}]:[],{role:"user",content:c||""}]}const u=new Intl.PluralRules("en",{type:"ordinal"});function d(e){const t=u.select(e);switch(t){case"one":return`${e}st`;case"two":return`${e}nd`;case"few":return`${e}rd`;default:return`${e}th`}}},81626:(e,t,n)=>{"use strict";n.d(t,{C:()=>d});var o=n(45974),s=n(32521),a=n(98851),i=n(65669),r=n(30902),l=n(65118);function c(e){if(e===s.Z_)return{type:"string"};if(e===s.pk)return{type:"number"};if(e===s.O7)return{type:"boolean"};if(e instanceof s.ts)return{type:"array",items:c(e.type)};if(e instanceof s.X1)return{type:"object",properties:Object.fromEntries(Object.entries(e.props).map((([e,t])=>[e,c(t)]))),required:Object.keys(e.props),additionalProperties:!1};throw new Error(`Unsupported io-ts type: ${e.name}`)}var u=n(44652);async function d(e,t,n,a){if(a)return h(e,t,n);const i=s.dt({response:t});console.log(e);const u=await p([{role:"user",content:e}],{name:"my_schema",strict:!0,schema:c(i)},n),d=(0,r.pipe)(u,(0,o.fold)((()=>{}),(e=>{console.log("AJAX returned a valid response",e);const t=(0,l.Z)(e,i);return(0,r.pipe)(t,(0,o.fold)((()=>{}),(e=>e.response)))})));return d}async function p(e,t,n){return(0,a.D)({action:"breakdance_ai_request_structured_output",friendlyName:"AI Assistant",dataToPost:{messages:(0,i.J)(e),json_schema:(0,i.J)(t)},abortController:n,decoder:s.Z_,resultKey:"data"})}async function h(e,t,n){const a=s.dt({response:t});console.log(e);try{const t=await(0,u.O)([{role:"user",content:e}],{name:"my_schema",strict:!0,schema:c(a)},n);if(!t||!t.content)return;console.log("Railway returned a valid response",t.content);const s=(0,l.Z)(t.content,a);return(0,r.pipe)(s,(0,o.fold)((()=>{console.error("Failed to parse Railway response")}),(e=>e.response)))}catch(i){return void console.error("Railway structured output request failed:",i)}}},96628:(e,t,n)=>{"use strict";n.d(t,{YF:()=>i,Z4:()=>l,pi:()=>r});var o=n(32521);const s=o.r$({icon:o.Z_,name:o.Z_,prompt:o.Z_}),a=o.dt({businessName:o.G0([o.Z_,o.lB]),businessDescription:o.G0([o.Z_,o.lB]),qualifiers:o.G0([o.Z_,o.lB]),presets:o.IX(s)}),i=o.dt({isApiKeySet:o.O7,isStreamingEnabled:o.O7,locale:o.Z_,model:o.Z_,prompt:a}),r=o.dt({id:o.Z_,alt_description:o.G0([o.Z_,o.lB]),description:o.G0([o.Z_,o.lB]),urls:o.r$({raw:o.Z_,full:o.Z_,regular:o.Z_,small:o.Z_,thumb:o.Z_})}),l=o.dt({error:o.r$({message:o.Z_,type:o.G0([o.Z_,o.lB]),param:o.G0([o.Z_,o.lB]),code:o.G0([o.Z_,o.pk])})})},67505:(e,t,n)=>{"use strict";n.d(t,{EX:()=>r,O:()=>c,jE:()=>l});var o=n(31697),s=n(88306),a=n.n(s);if(143==n.j)var i=n(6613);function r(){"Breakdance"in window&&"twigAPI"in window.Breakdance&&window.Breakdance.twigAPI.functions.forEach((e=>{"cache"in e.callback&&e.callback.cache.clear?.()}))}function l(e){window.Breakdance.filtersAPI={filters:{},addFilter:function(e,t){e in window.Breakdance.filtersAPI.filters?window.Breakdance.filtersAPI.filters[e].push(t):window.Breakdance.filtersAPI.filters[e]=[t]}},window.Breakdance.twigAPI={functions:[],addFunction(e,t,n){const o=(...e)=>e.map((e=>(0,i.g)(e))).join("_");window.Breakdance.twigAPI.functions.push({name:e,callback:n?a()(t,o):t})}},e.forEach((({script:e})=>{new Function(e)()})),window.dispatchEvent(new Event("breakdanceFiltersAPIReady")),window.dispatchEvent(new Event("breakdanceActionsAPIReady")),window.dispatchEvent(new Event("breakdanceTwigApiReady")),window.Breakdance.twigAPI.functions.forEach((e=>{o.extendFunction(e.name,e.callback)}))}function c(e,t,n=null,o=null){return e in window.Breakdance.filtersAPI.filters&&window.Breakdance.filtersAPI.filters[e].forEach((e=>{t=e(t,n,o)})),t}},18082:(e,t,n)=>{"use strict";n.d(t,{F:()=>s,k:()=>o});const o=(e,t)=>{if(!t||!t.getTranslations)throw new Error("getTranslations function is required");const{getTranslations:n}=t;e.prototype.$bdox=e=>{const t=n();return t[e]||"not found: "+e}};function s(){return window.Breakdance.bdoxTranslations[window.Breakdance.builderMode]}},57088:(e,t,n)=>{"use strict";n.d(t,{GV:()=>y,Mc:()=>m,Wp:()=>c,b8:()=>h,cb:()=>v,kS:()=>d,lx:()=>f,nR:()=>g,vJ:()=>u});var o=n(97313),s=n(23128),a=n(51168);if(143==n.j)var i=n(45974);if(143==n.j)var r=n(30902);var l=n(16442);const c="breakpoint_base",u="breakpoint_tablet_landscape",d=250,p=1120,h={breakpoint_base:{icon:"DesktopIcon"},breakpoint_tablet_landscape:{icon:"TabletIcon",rotate:"90"},breakpoint_tablet_portrait:{icon:"TabletIcon"},breakpoint_phone_landscape:{icon:"MobileIcon",rotate:"90"},breakpoint_phone_portrait:{icon:"MobileIcon"}},g="StarIcon";function m(e,t){return!e&&t?`@media (max-width: ${t}px)`:e&&!t?`@media (min-width: ${e}px)`:!(!e||!t)&&`@media (min-width: ${e}px) and (max-width: ${t}px)`}function v(e){return e.minWidth||e.maxWidth?e.label?e.defaultPreviewWidth?e.defaultPreviewWidth(0,i.left)((0,l.H)(e))),i.right)):(0,i.left)([(0,a.AL)("Please enter a default preview width.")]):(0,i.left)([(0,a.AL)("A label is required")]):(0,i.left)([(0,a.AL)("Either minWidth or maxWidth must be set.")])}function f(e,t){const n=(0,s.Z)(e),o=n.findIndex((e=>e.id===t.id));return-1===o?n.push(t):n[o]=t,n}function y(e){const t=Number(e.globalSettings?.settings?.sections?.container_width);return(t||p)+12}},89381:(e,t,n)=>{"use strict";n.d(t,{os:()=>A,w7:()=>E,RL:()=>M,wV:()=>L,lD:()=>D,r1:()=>P,ph:()=>O});var o=n(85450),s=n(85902),a=n(95690),i=n(79298),r=n(31044);function l(){const e=r.kD.closingConfirmations.builder;return!(e&&!e.chosenOption)||(r.kD.showClosingConfirmation("builder"),!1)}var c=n(13635),u=n(13311),d=n.n(u),p=n(713);function h(e,t){g(e,t),m(e,t),v(e,t)}function g(e,t){e.querySelectorAll("a").forEach((e=>y(t,e)))}function m(e,t){e.querySelectorAll("form").forEach((e=>b(t,e)))}function v(e,t){const n=new MutationObserver((e=>{e.forEach((e=>{const n=e.target;(0,p.A$)(n,t)&&(g(n,t),m(n,t))}))}));n.observe(e.documentElement,{childList:!0,subtree:!0})}function f(e,t){if(!e||!e.length||e.startsWith("#")||e.startsWith("javascript:"))return!1;try{const n=new URL(e,t.location.href);if(!["http:","https:"].includes(n.protocol))return!1;const o=e=>e.replace(/:(80|443)$/,""),s=void 0!==d()(r.PK.neededData?.browseModeAllowedUrls??[],(e=>{try{const t=new URL(e);return t.protocol===n.protocol&&o(t.host)===o(n.host)&&0===n.pathname.indexOf(t.pathname.replace(/\/$/,""))}catch(t){return console.error("Failed to parse browse mode allowed URL",t),!1}}));return!!s&&(!/\/wp-(login|signup)\.php$/.test(n.pathname)&&(!/\/wp-admin\/admin-ajax\.php$/.test(n.pathname)&&!/\/wp-(admin|includes|content)(\/|$)/.test(n.pathname)))}catch(n){return console.error("Browse mode: canUrlBeBrowsedTo(): invalid URL passed",n),!1}}function y(e,t){if(!t.hasAttribute("href"))return!1;const n=t.getAttribute("href");return null!==n&&!n.startsWith("#")&&!n.startsWith("javascript:")&&(f(n,e)?(t.href=O(n,e.location.href),t.target="_self",t.classList.remove("breakdance-unbrowsable"),!1):(t.classList.add("breakdance-unbrowsable"),t.addEventListener("click",(e=>e.preventDefault())),!0))}function b(e,t){return!t.action&&e.location.href&&(t.action=e.location.href),f(t.action,e)?(t.action=O(t.action,e.location.href),t.target="_self",t.classList.remove("breakdance-unbrowsable"),!0):(t.classList.add("breakdance-unbrowsable"),!1)}var _=n(16734),I=n(5598);if(143==n.j)var w=n(43981);var x=n(69137),S=n(67505),C=n(660);const k="breakdance_browser";function P(){const e=["Breakdance","Global Styles"],t=o.browseModeStore.iframeDocumentTitleToDisplay;t&&e.push(t),window.document.title=e.join(" | ")}function Z(){return(0,s.j)()??o.configStore.neededData?.browseModeAllowedUrls?.[0]??void 0}function D(e){"browse"===o.uiStore.mode?.mode?A():E(e)}function E(e="globalSettings",t){if(void 0===t&&(t=Z()),"builder"===o.uiStore.mode?.mode){if(void 0===t)return!1;if(!l())return!1;if(!(0,a.ug)())return!1;o.uiStore.setMode({mode:"browse"})}return x.n.initialize(),(0,a.oM)(e),o.uiStore.setInterfaceState("normal"),t&&T(t),!0}function T(e){o.browseModeStore.setIframeUrl(O(e))}function A(){(0,a.ug)()&&("browse"===window.Breakdance.initialMode&&o.browseModeStore.backToAdminUrl?window.location.href=o.browseModeStore.backToAdminUrl:(o.uiStore.setMode({mode:"builder"}),x.n.ignore((()=>o.documentStore.setNoDocument())),o.uiStore.setInterfaceState("loading")))}function M(e){if(!e.contentWindow||!e.contentDocument)throw"Unable to proceed without iframe document";return e.contentWindow.onbeforeunload=B,h(e.contentDocument,e.contentWindow),(0,S.EX)(),o.browseModeStore.setIframeState("normal"),o.browseModeStore.setIframeDocumentTitle(e.contentDocument.title),o.browseModeStore.setIframeWindowUrl(e.contentWindow.location.href),V(e.contentDocument),(0,i.TK)(e.contentDocument),(0,i.EO)(e.contentDocument),(0,i.aL)(e.contentDocument),(0,C.V)(e.contentDocument),(0,_.B6)(document,e.contentDocument),(0,I.BL)(e.contentDocument,"breakdance-browse-mode-css",w.Z),e.contentDocument}function V(e){(0,c.hm)(e),(0,c.w5)((()=>e))}function B(){}function O(e,t){try{const n=new URL(e,t);return n.searchParams.has(k)||n.searchParams.append(k,"true"),n.toString()}catch(n){return console.warn("Browse mode: upsertBreakdanceBrowserParamToUrl: invalid URL passed",n),e}}function L(e,t){const n=new URL(e,t);return n.searchParams.has(k)&&n.searchParams.delete(k),n.toString()}},98374:(e,t,n)=>{"use strict";n.d(t,{AC:()=>s.AC,RM:()=>s.RM,SR:()=>s.SR,ZY:()=>o.Z,Zo:()=>s.Zo,df:()=>s.df,ts:()=>s.ts,xU:()=>s.xU,xg:()=>s.xg});var o=n(90504),s=n(38489)},38489:(e,t,n)=>{"use strict";n.d(t,{AC:()=>v,RM:()=>h,SR:()=>c,Zo:()=>g,df:()=>d,ts:()=>p,xU:()=>m,xg:()=>u});var o=n(5598),s=n(86928),a=n(31304),i=n.n(a),r=n(713);function l(e){return`from_ssr__element-id__${e}`}function c(e,t){(0,r.Vr)(e).querySelectorAll(`[id^=${(0,s.a)(l(t))}]`).forEach((e=>e.remove()))}function u(e,t,n){if(c(e,t),n)for(const[a,i]of Object.entries(n))i.postDefaultsCssFilePath&&(0,o.tH)(e,(0,s.a)(`${l(t)}__inner_post_defaults_css_file_path__inner_post-id__${a}`),i.postDefaultsCssFilePath,'meta[name="breakdance:header-assets:css:elements-defaults"][content="end"]'),i.postCssFilePath&&(0,o.tH)(e,(0,s.a)(`${l(t)}__inner_post_css_file_path__inner_post-id__${a}`),i.postCssFilePath,'meta[name="breakdance:header-assets:css:all-rendered-posts"][content="end"]')}function d(e,t,n){(0,o.GJ)(e,(0,s.a)(`default-styles__${i()(t)}`),n,'meta[name="breakdance:header-assets:css:elements-defaults"][content="end"]')}function p(e,t,n,a){(0,o.GJ)(e,(0,s.a)(`element-styles__${t}_${a}`),n,'meta[name="breakdance:header-assets:css:all-rendered-posts"][content="end"]')}function h(e,t,n){(0,o.GJ)(e,(0,s.a)(`element-inline-dependencies__${t}`),n,'meta[name="breakdance:header-assets:css:elements-dependencies-inline"][content="end"]')}function g(e,t,n){(0,o.tH)(e,(0,s.a)(`element-dependencies__${t}`),n,'meta[name="breakdance:header-assets:css:elements-dependencies"][content="end"]')}function m(e,t){const n=(0,r.Vr)(e).querySelector(`#${(0,s.a)(`default-styles__${i()(t)}`)}`);n&&n.remove()}function v(e,t,n){const o=(0,r.Vr)(e).querySelector(`#${(0,s.a)(`element-styles__${t}_${n}`)}`);o&&o.remove()}},90504:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(5598);if(143==n.j)var s=n(86928);function a(e,t,n){(0,o.GJ)(e,(0,s.a)(t),n,`meta[name="breakdance:header-assets:css:${t}"][content="end"]`)}},86928:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});const o=e=>`breakdance-builder-added-css__${e}`},5598:(e,t,n)=>{"use strict";n.d(t,{$4:()=>c,BL:()=>d,EY:()=>u,GJ:()=>i,Gy:()=>l,tH:()=>r});var o=n(713),s=n(62231);function a(e,t){const n=(0,o.Vr)(e).querySelector(t);return n||(console.warn(`Unable to find element in using selector "${t}"`),e.querySelector(t))}function i(e,t,n,s){const i=e.getElementById(t);if(i)i.innerHTML=n;else{const i=(0,o.ok)(e,n,t),r=a(e,s);r?(0,o.m1)(r,i):(console.error(`Unable to find element using selector "${s}". Page appearance at builder may be corrupted.`),(0,o.Vr)(e).appendChild(i))}}function r(e,t,n,s){const i=e.getElementById(t);if(!i){const i=(0,o.zf)(e,n,t),r=a(e,s);r?(0,o.m1)(r,i):(console.error(`Unable to find element using selector "${s}". Page appearance at builder may be corrupted.`),(0,o.Vr)(e).appendChild(i))}}function l(e,t,n){if(!t||!n||"%%VERSION%%"===t||!e.startsWith(n))return e;const o=new URL(e);return o.searchParams.set("bd_ver",t),o.toString()}function c(e,t,n){const o=e.replace(/%%BREAKDANCE_REUSABLE_(.+)%%/g,((e,t)=>{const o=t.toLowerCase().replace(/([-_][a-z])/g,(e=>e.toUpperCase().replace("-","").replace("_","")));return n&&n[o]?n[o]:e}));return t?o.replace("%%BREAKDANCE_ELEMENTS_PLUGIN_URL%%",t):o}function u(e,{stylesheetUrl:t,tagIdArg:n}){const a=n||(0,s.X)(t);e.getElementById(a)||(0,o.Vr)(e).appendChild((0,o.zf)(e,t,a))}function d(e,t,n){const a=t||(0,s.X)(n),i=e.getElementById(a);i?i.innerHTML=n:(0,o.Vr)(e).appendChild((0,o.ok)(e,n,a))}},36300:(e,t,n)=>{"use strict";n.d(t,{Oz:()=>m,PV:()=>p,XN:()=>h,aY:()=>d,sv:()=>v});var o=n(86592),s=n(58172),a=n(62231),i=n(39664),r=n(30169),l=n(5598),c=n(713);const u={};function d(e,t){const n=t?.settings?.code?.scripts??[];n.forEach((t=>{(0,s.Kn)(t)&&"code"in t&&m(e,{code:t.code,origin:"addJavaScriptsInSettingsToHead"})}))}function p(e,t,n,a=!0){t?.forEach((t=>{const i=(0,o.yz)(t,(0,s.Kn)(n)?n:{});i&&(a?v(e,i,"processAndAddInlineScriptsToHead"):m(e,{code:i,origin:"processAndAddInlineScriptsToHead"}))}))}function h(e,{scriptUrl:t}){return new Promise(((n,o)=>{const s=(0,a.X)(t),r=e.getElementById(s);if("true"===r?.dataset.loaded)n();else if(r)u[s]?u[s].push(n):u[s]=[n];else{const a=e.createElement("script"),r=(0,l.$4)(t,window.Breakdance.stores.configStore.neededData?.elementsPluginUrl,window.Breakdance.stores.configStore.neededData?.elementsReusableDependenciesUrls),u=(0,l.Gy)(r,window.Breakdance.stores.configStore.neededData?.breakdanceVersion,window.Breakdance.stores.configStore.neededData?.wpContentUrl);a.id=s,a.src=u,a.async=!0,a.onload=()=>{e.getElementById(s)?.setAttribute("data-loaded","true"),g(s),n()},a.onerror=()=>{i.Z.log.message(`Failed to load "${u}"`),o()},(0,c.Vr)(e).appendChild(a)}}))}function g(e){const t=Object.keys(u).find((t=>t===e));t&&(u[t].forEach((e=>e())),u[t]=[])}function m(e,{code:t,tagIdArg:n,origin:o}){const s=n||(0,a.X)(t),i=e.getElementById(s);i&&i.remove();const l=e.createElement("script");l.id=s,l.innerHTML=(0,r.U)(t,`An error occurred while running an inline script from ${o}`),(0,c.Vr)(e).appendChild(l)}function v(e,t,n){const o=(0,a.X)(t);if(!e.getElementById(o)){const s=document.createElement("script");s.id=o,s.innerHTML=(0,r.U)(t,`An error occurred while running an inline script from ${n}`),(0,c.Vr)(e).appendChild(s)}}},71035:(e,t,n)=>{"use strict";n.d(t,{W:()=>h,Z:()=>p});var o=n(27361),s=n.n(o),a=n(62231),i=n(86592),r=n(31044),l=n(39664),c=n(98374),u=n(36300),d=n(54120);async function p(e,{dependencies:t,element:n,tags:o={},addInlineScriptsAsUnique:r=!0}){const p=n?.data.properties,h={...p,design:(0,d.qd)(n)};for(const d of t){if(d.builderCondition&&n){let e=!1;if("string"===typeof d.builderCondition){if(e=(0,i.yz)(d.builderCondition,{...h,elementId:n.id}),!e)continue;try{const t=new Function(e);if(!t())continue}catch(g){l.Z.log.message(`Error when running 'builderCondition' for element '${n.data.type}': ${g}`)}}else"propertyPath"in d.builderCondition&&(e=String(s()({...h,elementId:n.id},d.builderCondition.propertyPath,"")));if(!e)continue}const t=d.inlineScripts?.map((e=>(0,i.as)(e,o))),m=d.inlineStyles?.map((e=>(0,i.as)(e,o)));if(d.scripts?.length){const n=d.scripts.map((async t=>await(0,u.XN)(e,{scriptUrl:t})));try{await Promise.all(n),(0,u.PV)(e,t,h,r)}catch{console.error(`Couldn't load some of the inlineScript dependencies because one of more scripts failed to load:${d.scripts}`),l.Z.log.message("Error loading some of the dependencies, check your console")}}else(0,u.PV)(e,t,h,r);d.styles?.forEach((t=>{(0,c.Zo)(e,(0,a.X)(t),t)})),d.googleFonts?.forEach((t=>{const n=`https://fonts.googleapis.com/css2?family=${encodeURIComponent(t)}:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'`;(0,c.Zo)(e,(0,a.X)(n),n)})),m?.forEach((t=>{const n=p?(0,i.yz)(t,p):t;n&&(0,c.RM)(e,(0,a.X)(n),n)}))}}async function h(e,t,n={}){if(t?.data.type){const o=r.PK.element(t.data.type).dependencies,s=[...o||[],...r.PK.elementsExternalAttrsDepsAndActions.dependencies||[]].filter((e=>e.builderCondition));if(s.length)return await p(e,{dependencies:s,element:t,tags:n})}return!1}},7824:(e,t,n)=>{"use strict";n.d(t,{Qf:()=>l,dD:()=>r,dv:()=>c,qE:()=>u});var o=n(85450),s=n(13635),a=n(31381);function i(e,t,n,i=5){const r=(0,a.findNode)(o.documentStore.document.tree,n);if(!r)return!1;const l=(0,s.dq)(r);if(!l)return!1;let{x:c,y:u,width:d,height:p}=l.getBoundingClientRect();c-=i,u-=i,d+=i,p+=i;const h=[],g=()=>e>=c&&e<=c+d,m=()=>e>=c&&e<=c+d/2,v=()=>e>=c&&e>c+d/2,f=()=>t>=u&&t<=u+p,y=()=>t>=u&&t<=u+p/2,b=()=>t>=u&&t>u+p/2;return g()&&f()&&y()&&h.push("top"),g()&&f()&&b()&&h.push("bottom"),g()&&f()&&m()&&h.push("left"),g()&&f()&&v()&&h.push("right"),h.length>0&&h}function r(e,t){return window.Breakdance.canvas.document.elementsFromPoint(e,t).map((e=>e.dataset.nodeId?e:e.closest("[data-node-id]")??e)).filter((e=>void 0!==e.dataset.nodeId)).map((e=>(0,s.ME)(e.dataset.nodeId)))}function l(e,t){return r(e,t).reverse().pop()}function c(e,t,n,o="vertical"){const s=i(e,t,n);if(!s)return"unknown";if("vertical"===o){if(s.includes("top"))return"before";if(s.includes("bottom"))return"after"}else if("horizontal"===o){if(s.includes("left"))return"before";if(s.includes("right"))return"after"}return"unknown"}function u(e){const t="vertical",n=e.children.length>0?e.children[0]:void 0;if(!n)return t;const o=(0,s.dq)(n);if(!o)return t;let a=(0,s.qT)(o.parentNode),i="vertical",r=a.getPropertyValue("display");if("contents"===r){const e=o.parentNode?.parentNode;e&&(a=(0,s.qT)(e),r=a.getPropertyValue("display"))}if("block"===r)i="vertical";else if("flex"===r||"inline-flex"===r){const e=a.getPropertyValue("flex-direction");"row"===e?i="horizontal":"column"===e&&(i="vertical")}else if("grid"===r){i="horizontal";const e=a.getPropertyValue("--bde-grid-items-per-row");if("1"===e)i="vertical";else{const e=a.getPropertyValue("grid-template-columns"),t=e.match(/(minmax\([^)]+\)|[^ ]+)/g),n=t?.length;1===n&&(i="vertical")}}return i}},13635:(e,t,n)=>{"use strict";n.d(t,{A3:()=>d,Ik:()=>k,ME:()=>Z,Qi:()=>u,RY:()=>x,Sv:()=>h,a7:()=>I,dq:()=>v,eq:()=>p,hm:()=>P,j3:()=>m,lx:()=>f,nX:()=>_,o7:()=>g,p1:()=>y,qT:()=>b,sy:()=>w,w5:()=>C});var o=n(85450),s=n(713);if(143==n.j)var a=n(32521);var i=n(36300),r=n(71035),l=n(5598),c=n(38489);function u(e,t=1){if(!e)return{display:"none"};const n=p(),o=g(e,"canvas");if(!o||!n)return{display:"none"};const{x:s,y:a,width:i,height:r}=o,l=i>n.width,c=0===s||s+i+t>=n.width||0===a||a+r+t>=n.height,u={width:l?`${n.width}px`:`${i}px`,height:`${r}px`,top:`${a}px`,left:l||s<0?"0":`${s}px`,outlineOffset:c?"-1px":""};return t>1&&(u.width=`calc(${u.width} - ${2*t}px + 2px)`,u.height=`calc(${u.height} - ${2*t}px + 2px)`,u.top=`calc(${u.top} + ${t}px - 1px)`,u.left=`calc(${u.left} + ${t}px - 1px)`),u}function d(e,t=28){if(!e)return{};const n=t+5,o=h(e,"absolute");if(o&&o.ywindow.Breakdance.canvas.document,S=(e,t)=>function(...n){return e.apply(a.S1,[t(),...n])};function C(e){window.Breakdance.canvas={...window.Breakdance.canvas||{},addUniqueStylesheetToEndOfHead:S(l.EY,e),addUniqueScriptToHead:S(i.XN,e),addUniqueInlineScriptToHead:S(i.sv,e),addOrRerunInlineScriptInHead:S(i.Oz,e),addDependenciesToHead:S(r.Z,e),addOrUpdateInlineCSSAtEndOfHead:S(l.BL,e),addOrUpdateGeneratedElementDependenciesInlineCSSInCanvasHead:S(c.RM,e)}}function k(){C((()=>x()))}function P(e){window.Breakdance.canvas={...window.Breakdance.canvas||{},document:e}}function Z(e){if("number"===typeof e)return e;const t=/^\d+-\d+$/;return t.test(e)?e:parseInt(e)}},79298:(e,t,n)=>{"use strict";n.d(t,{EO:()=>p,JZ:()=>c,TK:()=>u,Vq:()=>h,aL:()=>d});var o=n(18076),s=n(31044),a=n(98374),i=n(36300),r=n(86592),l=n(90889);function c(){return"oxygen"===s.PK.builderMode?"":".breakdance"}function u(e){const t=(0,o.a)(s.cr.globalProperties,s.PK.breakpoints,s.PK.globalSettingsControlsAndTemplate.template,{},s.PK.globalSettingsControlsAndTemplate.propertyPathsToWhitelistInFlatProps);(0,a.ZY)(e,"global-settings",t),(0,i.aY)(e,s.cr.globalSettings)}function d(e){if("oxygen"===s.PK.builderMode)return;const t=s.cr.presets.map((e=>{const t=s.PK.element(e.availableForType);return t?(0,o.a)({design:e.design},s.PK.breakpoints,t.cssTemplate,{selector:`.breakdance .bde-preset-${e.id}`},t.propertyPathsToWhitelistInFlatProps,0,(0,r.tV)(t,e.id)):""})).join(" ");(0,a.ZY)(e,"presets",t)}function p(e){const t=s.cr.cssSelectors.reduce(((e,t)=>e+(0,o.a)(t.properties,s.PK.breakpoints,s.PK.classTemplate,{selector:"class"===t.type?`.breakdance ${t.name}`:t.name})),"");(0,a.ZY)(e,"selectors",t)}function h(e){const t=(0,l.dH)((0,o.a)({variables:s.cr.variables},s.PK.breakpoints,s.PK.variablesControlsAndTemplate.template,{},s.PK.variablesControlsAndTemplate.propertyPathsToWhitelistInFlatProps),s.cr.variables);(0,a.ZY)(e,"variables",t)}},33356:(e,t,n)=>{"use strict";n.d(t,{es:()=>h,zE:()=>g});var o=n(85450),s=n(13635),a=n(34676),i=n(713),r=n(20918),l=n(47354),c=n(94550),u=n(31381);let d=!1;function p(){if(!(0,l.o8)()||!d)return!1;const e=o.uiStore.activeElement;if(!e)return!1;if(e.id===d.id)return d=e,!0;let t=(0,u.findNodeParent)(o.documentStore.document.tree,d);while(t){if(t.id===e.id)return d=e,!0;t=(0,u.findNodeParent)(o.documentStore.document.tree,t)}return!1}function h(e=!1){(0,a.forceNextTick)((()=>{if(!o.uiStore.settings.autoScrollEnabled||o.uiStore.isCanvasElementBeingDragged||!o.uiStore.activeElement)return;if(o.documentStore.document.documentMeta.postType===(0,r.d0)())return;if(!e&&p())return;const t=!(!(0,l.o8)()||o.uiStore.activeElement.data.type!==c.SECTION_SLUG);d=o.uiStore.activeElement,m(o.uiStore.activeElement,t)}))}function g(){const e=o.documentStore.document.tree.root.children,t=e[e.length-1];m(t)}function m(e,t){const n=(0,s.dq)(e);if(!n)return;const o=()=>{const e=document.getElementById("iframe"),o=n.getBoundingClientRect(),s=window.Breakdance.canvas.document.defaultView?.innerHeight||window.Breakdance.canvas.document.documentElement.clientHeight,a=o.height+20,i=window.Breakdance.canvas.document.defaultView?.pageYOffset||0,r=i+o.top;if(t&&o.top<0&&o.bottom>s)return;if(t&&o.top>0&&o.bottoms,t=r+(a-s)/2;l=e?r-40:t}e.contentWindow?.scrollTo({top:l,behavior:"smooth"})};t?o():(0,i.b7)(o,n,{root:null})}},18076:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(57088),s=n(86592),a=n(85450);if(143==n.j)var i=n(5502);function r(e,t,n,r,u,d,p){let h="";const g=[...a.configStore.variablesControlsAndTemplate.propertyPathsToWhitelistInFlatProps,...u||[]];for(const l of t){const t=(0,i.A)({...e,globalSettings:a.globalStore.globalSettings.settings,variables:a.globalStore.variables},l.id,a.configStore.breakpointIds,o.Wp,g),r=(0,s.yz)(n,{...t,isBaseBreakpoint:l.id===o.Wp,firstResponsiveBreakpointId:o.vJ,breakpoint:l.id,builtinBreakpoints:a.configStore.builtinBreakpoints,childElementCount:d},p),c=(0,o.Mc)(l.minWidth,l.maxWidth);h+=c?`\n\n${c} {${r}}`:r}const m=(0,s.as)(h,r),v=l(m),f=c(v);return f}function l(e){return e.replace(/[a-zA-Z0-9-_:().#]*:\s*;/g,"")}function c(e){try{e=d(e),e=d(e),e=u(e)}catch(t){}return e}function u(e){return e.replace(new RegExp("(?<=^)[^\\{\\};]+\\{\\s*\\}","g"),"")}function d(e){return e.replace(new RegExp("(?<=(\\}|;|\\{))[^\\{\\};]+\\{\\s*\\}","g"),"")}},12413:(e,t,n)=>{"use strict";if(n.d(t,{I:()=>s}),974!=n.j)var o=n(47421);function s(e){return o.tk.domEventHandlers({focus:(t,n)=>{if(!e)return;const o=n.state.doc.toString().trim();if(""!==o)return;const s="PLACECURSORHERE",a=e.replace(s,""),i=e.indexOf(s);n.dispatch({changes:{from:0,to:n.state.doc.length,insert:a}}),setTimeout((()=>{n.dispatch({selection:{anchor:i,head:i},scrollIntoView:!0})}),0)}})}},49862:(e,t,n)=>{"use strict";n.d(t,{Ki:()=>r,jH:()=>l});let o=null,s=0;const a=new Map;function i(){if(!o)try{o=new Worker(window.Breakdance.builderDistUrl+"/code-formatter.worker.js"),o.onmessage=e=>{const{requestId:t,success:n,formatted:o,error:s}=e.data,i=a.get(t);if(i){const{resolve:e,reject:r}=i;a.delete(t),n&&o?e(o):r(new Error(s||"Formatting failed"))}}}catch(e){console.error("Failed to initialize code formatter worker:",e)}}async function r(e,t={}){if(o||i(),!o)throw new Error("Code formatter worker not initialized");for(const[,{reject:o}]of a)o(new Error("Request superseded by newer request"));a.clear();const n=++s;return new Promise(((s,i)=>{a.set(n,{resolve:s,reject:i}),o.postMessage({requestId:n,codeToFormat:e,parser:"css",options:t})}))}async function l(e,t={}){if(o||i(),!o)throw new Error("Code formatter worker not initialized");for(const[,{reject:o}]of a)o(new Error("Request superseded by newer request"));a.clear();const n=++s;return new Promise(((s,i)=>{a.set(n,{resolve:s,reject:i}),o.postMessage({requestId:n,codeToFormat:e,parser:"html",options:t})}))}},30623:(e,t,n)=>{"use strict";if(n.d(t,{g:()=>s}),974!=n.j)var o=n(47421);function s(e){return o.tk.updateListener.of((t=>{const n=t.state.selection.main.head;e(n)}))}},57297:(e,t,n)=>{"use strict";if(n.d(t,{E:()=>s}),974!=n.j)var o=n(47421);function s(e){if(null===e)return null;let t=!1;return o.tk.updateListener.of((n=>{if(t)return;t=!0;const o=n.view;if(o){const t=n.state.doc.length,s=Math.min(e,t);o.dispatch({selection:{anchor:s,head:s},scrollIntoView:!0}),o.focus()}}))}},8502:(e,t,n)=>{"use strict";function o(e,t){const n=e.state.sliceDoc(0,e.pos),o=n.match(/\{\{\s*([^}]*)$/),s=n.match(/\{%\s*set\s+\w+\s*=\s*([^%]*)$/),a=n.match(/\{%\s*for\s+\w+\s+in\s+([^%]*)$/),i=n.match(/\{%\s*if\s+([^%]*)$/),r=o||s||a||i;if(!r)return null;const l=r[1].trim(),c=t.filter((e=>e.toLowerCase().includes(l.toLowerCase())));if(0===c.length)return null;const u=c.map((e=>({label:e,type:"variable",section:"Twig Variables"})));return{from:e.pos-l.length,options:u,validFor:/^[a-zA-Z0-9_]*$/}}function s(e,t){return t.data.of({autocomplete:t=>o(t,e)})}n.d(t,{E:()=>o,o:()=>s})},88615:(e,t,n)=>{"use strict";n.d(t,{FX:()=>m,RQ:()=>p,dI:()=>_,dw:()=>b,en:()=>f,i7:()=>w,mS:()=>I,o_:()=>y,oi:()=>v,wJ:()=>S});var o=n(27361),s=n.n(o),a=n(86042),i=n(31304),r=n.n(i);if(/^(14|9)3$/.test(n.j))var l=n(3735);if(/^(14|9)3$/.test(n.j))var c=n(48973);var u=n(8773),d=n(31044);function p(e){if(!m(e))return!0;const t=g(e),n=parseInt(t.substr(0,2),16),o=parseInt(t.substr(2,2),16),s=parseInt(t.substr(4,2),16),a=parseInt(t.substr(6,2),16),i=(299*n+587*o+114*s)/1e3;return i>230||a<100}function h(e){return e.replace("#","")}function g(e){const t=h(e);return 3!==t.length?t:t.split("").map((e=>e+e)).join("")}function m(e){const t=g(e);return(6===t.length||8===t.length)&&!isNaN(Number("0x"+t))}function v(e){return e.value.startsWith("var(--")}function f(e,t){if(!v(e))return;const n=y(e.value);return t.find((e=>e.cssVariableName===n))}function y(e){const t=/var\(--([a-zA-Z0-9-_]+)\s*(?:,.*)?\)/,n=t.exec(e);return null!==n?n[1].trim():null}function b(e,t,n=!1){const o="bde-palette-",s=t?`-${t}`:"",a=r()(e,{lower:!0}),i=n?"":`-${(0,u.Z)()}`;return`${o}${a}${i}${s}`}function _(e){return(0,l.zG)(e.value,a.Dz.decode,(0,c.g_)((()=>e.value),(e=>e.value)))}function I(e){return(0,l.zG)(e,a.Dz.decode,(0,c.g_)((()=>!1),(()=>!0)))}function w(e){return I(e.value)}function x(){const e=[{label:"Brand",path:"settings.colors.brand",cssVariableName:"bde-brand-primary-color"},{label:"Text",path:"settings.colors.text",cssVariableName:"bde-body-text-color"},{label:"Headings",path:"settings.colors.headings",cssVariableName:"bde-headings-color"},{label:"Links",path:"settings.colors.links",cssVariableName:"bde-links-color"},{label:"Background",path:"settings.colors.background",cssVariableName:"bde-background-color"}];return e.map((e=>({label:e.label,cssVariableName:e.cssVariableName,value:s()(d.cr.globalSettings,e.path)}))).filter((e=>e.value))}function S(){return[...x(),...d.cr.globalColors,...d.cr.globalGradients]}},884:(e,t,n)=>{"use strict";n.d(t,{IQ:()=>h,Jt:()=>m,Sd:()=>f,_M:()=>p,cG:()=>d,cp:()=>u,fy:()=>g,wr:()=>y});var o=n(85450),s=n(31381),a=n(58172),i=n(94550),r=n(28684),l=n(39664),c=n(38020);const u="design.size.width";function d(e){return!!e&&e.data.type===i.COLUMN_SLUG}function p(e){return!!e&&e.data.type===i.COLUMNS_SLUG}function h(e){const t=parseFloat(String(o.documentStore.getPropertyValue(e.id,`${u}.number`)));return Number.isNaN(t)?0:t}function g(e){if("number"===typeof e||"string"===typeof e){const t=(0,s.findNode)(o.documentStore.document.tree,e);if(t&&p(t))return t;if(d(t)){const t=(0,s.getNodeParent)(o.documentStore.document.tree,e);if(t&&p(t))return t}}else{if(e&&p(e))return e;if(e&&d(e)){const t=(0,s.getNodeParent)(o.documentStore.document.tree,e.id);if(t&&p(t))return t}}return!1}function m(e){if(!p(e))return-1;const t=v(e.children);return 100===t}function v(e){if(e.every(d)){const t=e.reduce(((e,t)=>e+h(t)),0);return!Number.isNaN(t)&&(0,c.v)(t)}return!1}function f(e,t){if((0,a.Kn)(e)&&"number"in e&&(0,a.Kn)(t)&&"number"in t){const n=parseFloat(String(e.number))-parseFloat(String(t.number));if(!Number.isNaN(n))return(0,c.v)(n)}return-1e4}function y(e){!1===m(e)&&(l.Z.log.message(`There was an error while resizing the columns in element "${e.id}". They've all been resized to the default value.`),(0,r.t)(e))}},28684:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var o=n(884),s=n(92277),a=n(38020);function i(e,t,n){const r=(0,o.fy)(e);if(!r||!(0,o._M)(r)||0===r.children.length)return;let l,c;if(void 0===t)l=(0,a.v)(100/r.children.length),c=l*r.children.length;else{const e=r.children[t];if(!e)return;const n=(0,o.IQ)(e);l=(0,a.v)((100-n)/(r.children.length-1)),c=l*(r.children.length-1)+n}const u=100===c?l:(0,a.v)(100-c+l);l<0||u<0?!0!==n&&i(r,void 0,!0):r.children.forEach(((e,n,o)=>{if(n===t)return;const a=n===o.length-1?u:l;(0,s.l)(e.id,a)}))}},92277:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var o=n(85450),s=n(884),a=n(38020);function i(e,t){if(Number.isNaN(t))return;const n=(0,a.v)(t);n>=0&&o.documentStore.propertyChangedMutation({elementId:e,path:`${s.cp}`,value:{unit:"%",number:n,style:`${n}%`},meta:{snapshotLabel:"Change column's width"}})}},37220:(e,t,n)=>{"use strict";n.d(t,{A7:()=>g,Eh:()=>h,nb:()=>p,rq:()=>m});var o=n(27361),s=n.n(o),a=n(83357),i=n(31381),r=n(85450),l=n(52071),c=n(70802),u=n(20210),d=n(18759);function p(e){return(0,i.treeNodeReduce)(((e,t)=>[...t,...(0,a.Dr)(e).map((t=>({nodeId:e.id,controlPath:t.controlPath,propertyKey:t.propertyKey})))]),e.root,[])}function h(e){const t=s()(e.data.properties,"content.content.block.properties")||{};return(0,i.treeNodeReduce)(((e,n)=>{const o=(0,a.Dr)(e),s=o.reduce(((e,n)=>(e[n.controlPath]=t[n.propertyKey],e)),{});return n[e.id]=s,n}),e,{})}function g(e){return(0,l.XO)((0,i.treeNodeReduce)(((e,t)=>{const n=[];return(0,a.Dr)(e).filter((e=>!("enabled"in e)||e.enabled)).forEach((t=>{const o=(0,l.is)(t.controlPath,r.configStore.element(e.data.type).controls);o&&n.push({...o,label:t.label?t.label:o.label,slug:t.propertyKey})})),[...t,...n]}),e.root,[]))}const m={getControlValue:e=>s()(r.uiStore.activeElement,`data.properties.${e}`),setControlValue(e,t,n,o){r.uiStore.activeElementId&&r.documentStore.throttledPropertyChanged((0,c.TV)({elementId:r.uiStore.activeElementId,path:e,value:t},{control:n,controlsTree:this.getControls(e)||[]},o))},getControls:e=>{if(!r.uiStore.activeElement)return;const t=(0,u.zE)(e);return t?(0,u.nx)(r.configStore.element(r.uiStore.activeElement.data.type),t.prefix):void 0},setAccordionState:(e,t)=>{r.uiStore.activeElementId&&(0,d.rg)(r.uiStore.activeElementId,e,t)},getAccordionState:e=>!!r.uiStore.activeElementId&&(0,d.co)(r.uiStore.activeElementId,e)}},83357:(e,t,n)=>{"use strict";n.d(t,{CG:()=>l,Dr:()=>u,Q2:()=>r,hI:()=>i});var o=n(85450);if(/^(14|9)3$/.test(n.j))var s=n(8773);var a=n(23128);function i(e,t){if(!o.uiStore.activeElement)return;const n=(0,a.Z)(u(o.uiStore.activeElement)),s=n.findIndex((t=>t.controlPath===e));-1!==s&&(n[s]={...t},c(o.uiStore.activeElement.id,n))}function r(e){if(!o.uiStore.activeElement)return;const t=(0,a.Z)(u(o.uiStore.activeElement)),n=t.findIndex((t=>t.controlPath===e));-1!==n?"enabled"in t[n]?t[n].enabled=!t[n].enabled:t[n].enabled=!1:t.push({enabled:!0,label:"",controlPath:e,propertyKey:(0,s.Z)()}),c(o.uiStore.activeElement.id,t)}function l(e){if(!o.uiStore.activeElement)return!1;const t=u(o.uiStore.activeElement),n=t.find((t=>t.controlPath===e));return n&&"enabled"in n?n.enabled:!!n}function c(e,t){o.documentStore.propertyChangedMutation({elementId:e,path:"meta.component.editableProperties",value:t,meta:{snapshotLabel:"TODO"}})}function u(e){return e?.data.properties?.meta?.component?.editableProperties??[]}},52071:(e,t,n)=>{"use strict";n.d(t,{XO:()=>d,bU:()=>r,is:()=>l,it:()=>i});var o=n(85450),s=n(46585),a=n(20918);function i(){return o.documentStore.document.documentMeta.postType===(0,a.$M)()&&"oxygen"===o.configStore.builderMode}function r(e){const t=e.split(".").slice(0,-1),n=t.some((e=>/\[\d+]$/.test(e)));return e.startsWith("content.")&&!n}function l(e,t){return(0,s.Au)(u(e),t[`${c(e)}Sections`])}function c(e){const t=e.split(".");return t[0]}function u(e){const t=e.split(".");return t.splice(0,1),t.join(".")}function d(e){return e.map((e=>({...e,options:{...e.options,condition:void 0}})))}},63292:(e,t,n)=>{"use strict";n.d(t,{DZ:()=>c,ar:()=>s,jG:()=>a,jp:()=>r,nt:()=>l,yk:()=>i});var o=n(23128);function s(e){const t=e=>"is empty"===e.operand||"is not empty"===e.operand||!!e.ruleSlug&&(Array.isArray(e.value)?e.value.length:void 0!==e.value&&""!==e.value);return e.map((e=>e.filter(t))).filter((e=>e.length))}function a(e,t){return e.filter((e=>{if(t&&"availableForType"in e&&e.availableForType){const n=e.availableForType;return t.find((e=>n.includes(e)))}return!0}))}function i(e){const t=[];return e.forEach((e=>{t.push({header:e.label}),t.push(...e.items),t.push({divider:!0})})),t.pop(),t}function r(e,t){return e.map((e=>{const n=(0,o.Z)(e);return n.values&&(n.values=a(n.values,t)),n})).filter((e=>!Array.isArray(e.values)||e.values.length>0))}function l(e,t){return e.filter((({availableForType:e})=>{const n=t&&e.includes(t);return n||e.includes("ALL")}))}const c={IS:"is",IS_NOT:"is not",ONE_OF:"is one of",ALL_OF:"is all of",NONE_OF:"is none of",BEFORE:"is before",AFTER:"is after",GREATER_THAN:"is greater than",LESS_THAN:"is less than",CONTAINS:"contains",NOT_CONTAIN:"does not contain"}},20918:(e,t,n)=>{"use strict";n.d(t,{$M:()=>f,$v:()=>l,AZ:()=>a,Nn:()=>i,WZ:()=>c,Yq:()=>v,Zr:()=>u,_T:()=>h,d0:()=>m,dG:()=>g,hF:()=>d,kl:()=>r,lM:()=>s});var o=n(85450);const s="oxygen_template",a="breakdance_template",i="oxygen_header",r="breakdance_header",l="oxygen_footer",c="breakdance_footer",u="oxygen_block",d="breakdance_block";function p(){return"oxygen"===o.configStore.builderMode||"oxygen"===window.Breakdance.builderMode}function h(e){return e===u||e===d}function g(){return p()?s:a}function m(){return p()?i:r}function v(){return p()?l:c}function f(){return p()?u:d}},74636:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>h,aL:()=>d,h7:()=>u});var o=n(27361),s=n.n(o),a=n(46585);if(!/^(715|974)$/.test(n.j))var i=n(3735);if(!/^(715|974)$/.test(n.j))var r=n(32521);if(!/^(715|974)$/.test(n.j))var l=n(48973);var c=n(23128);const u=(e,t)=>{const n=e.condition,o=p(t);if(!o)return!1;if(e?.text&&e?.value){const t=s()(o,e?.text),n=s()(o,e?.value);if(!t&&!n)return!1;if(t&&!n)return!1}if(!n)return!0;if(Array.isArray(n))return n.map((e=>e.map((e=>{const t=s()(o,e.path);return(0,a.qu)(t,e.operand,e.value)})).filter(Boolean).length===e.length)).filter(Boolean).length===n.length;{const e=s()(o,n.path);return(0,a.qu)(e,n.operand,n.value)}},d=(e,t)=>{const n=p(t);if(!n)return null;if(e.text&&e.value){const t=s()(n,e.text),o=s()(n,e.value);return{text:t||o,value:o}}return e.text&&s()(n,e.text)?s()(n,e.text):n},p=e=>(0,i.zG)(e,r.IM(r.Z_,r._4).decode,(0,l.g_)((()=>null),(e=>e))),h=(e,t)=>{const n=(0,c.Z)(p(t));return n?(e.text&&e.value&&!s()(n,e.text)&&s()(n,e.value)&&(n[e.text]=s()(n,e.value)),n):null}},46585:(e,t,n)=>{"use strict";n.d(t,{Au:()=>c,BG:()=>r,qu:()=>a});var o=n(20210),s=n(85450);function a(e,t,n){if("equals"===t)return e==n;if("not equals"===t)return e!=n;if("is one of"===t){if(Array.isArray(n))return n.some((t=>t==e))}else if("is none of"===t){if(Array.isArray(n))return!n.some((t=>t==e))}else{if("is set"===t)return!!e;if("is not set"===t)return!e;if("includes"===t)return Array.isArray(e)&&Array.isArray(n)?e.some((e=>n.includes(e))):!!Array.isArray(e)&&e.includes(n);if("contains"===t)return"string"===typeof e&&"string"===typeof n&&e.includes(n);if("does not contain"===t)return"string"!==typeof e||"string"!==typeof n||!e.includes(n)}return!0}function i(e,t,n,o){return e.map((e=>a(l(e.path,t,n,o),e.operand,e.value))).filter(Boolean).length===e.length}function r(e,t,n,o){if("pro_only_alert_box"===e.options.type&&"free"!==s.configStore.subscriptionMode)return!1;if(e.options.hideForElements&&s.uiStore.activeElement){const t=e.options.hideForElements.includes(s.uiStore.activeElement.data.type);if(t)return!1}return!e.options.condition||(Array.isArray(e.options.condition)?!e.options.condition.length||e.options.condition.map((e=>i(e,t,n,o))).filter(Boolean).length:a(l(e.options.condition.path,t,n,o),e.options.condition.operand,e.options.condition.value))}function l(e,t,n,s){const a=t.split(".");a.pop();const i=a.join(".");a.pop();const r=a.join("."),l=e.replace("%%CURRENTPATH%%",i).replace("%%PARENTPATH%%",r),u=n.getControls(t);if(!u)return!1;const d=(0,o.zE)(l),p=d?.pathWithoutPathPrefix??l,h=c(p,u)?.enableMediaQueries?`${l}.${s}`:l;return n.getControlValue(h)}function c(e,t){const n=e.split(".");let o,s=t;for(const a of n){let e=a;if("]"===e.charAt(e.length-1)&&(e=e.replace(/\[[0-9]+]/,"")),o=s.find((t=>t.slug===e)),!o?.children?.length)break;s=o.children}return o}},70802:(e,t,n)=>{"use strict";n.d(t,{sg:()=>_,TV:()=>w,_Z:()=>S,V5:()=>x,YO:()=>C,_n:()=>D,tr:()=>E,Jx:()=>P,zp:()=>T,lX:()=>Z});var o=n(82492),s=n.n(o),a=n(27361),i=n.n(a),r=n(44908),l=n.n(r),c=n(89754),u=n(94942),d=n(47256),p=n(40681);function h(e,t,n){const o=P(t);return n&&o.push(...P(n)),(0,u.Ws)(e,o)}function g(e){return e.value===d.Bz?p.P.CLEAR:p.P.CHANGE}var m=n(84274);if(/^(14|9)3$/.test(n.j))var v=n(3735);if(/^(14|9)3$/.test(n.j))var f=n(48973);var y=n(86042),b=n(31044);function _(e){return`${e}_hover`}function I(e){for(const t of e.controlsTree){const n=[t];if(t.children.includes(e.control))return n;{const o=I({control:e.control,controlsTree:t.children});if(o)return[...n,...o]}}}function w(e,t,n){return k((0,m.eU)(e.elementId),e,t,n)}function x(e,t,n){return k("Selectors",e,t,n)}function S(e,t,n){return k("Presets",e,t,n)}function C(e,t,n){return k("Global Settings",e,t,n)}function k(e,t,n,o){const s=g(t),a=[s];o?.nestedControlThatWasChanged&&!o.nestedControlThatWasChanged.meta?.disableTransactionBundling&&a.push(o.nestedControlThatWasChanged.path);const i=a.length?{bundlingKeySuffix:a.join(":")}:void 0;return{...t,meta:{snapshotLabel:h({action:s,subject:e},n,o?.nestedControlThatWasChanged),transactionBundling:o?.disableTransactionBundling?{disable:!0}:i}}}function P(e){const t=I(e)||[];return l()([...t,e.control].map((e=>e.label)))}function Z(e){return e instanceof c.A3?e.value:e}function D(){return{slug:"new_control",label:"New Control",keywords:[],options:{type:"text",layout:"vertical"},enableMediaQueries:!1,enableHover:!1,enableVariables:!1,children:[]}}function E(){return{slug:"new_section",label:"New Section",keywords:[],options:{type:"section",sectionOptions:{type:"popout"}},enableMediaQueries:!1,enableHover:!1,enableVariables:!1,children:[]}}function T(e,t){if(!b.kD.settings.showPreviousBreakpointValueAsPlaceholder)return;const n=b.PK.breakpointIds,o=n.indexOf(b.kD.currentBreakpoint.id),a=n.slice(0,o).map((e=>i()(t,e)));if("spacing_complex"===e){const t=s()({},...a);return A(e,t)}const r=a.reverse().find((e=>!(0,d.Qn)(e)));return A(e,r)}function A(e,t){if(null===t||void 0===t)return"";if("unit"===e)return t;if("font_family"===e){const e=b.PK.fonts.find((e=>e.slug===t));return e?.label||""}if("color"===e)return(0,v.zG)(t,y.Dz.decode,(0,f.g_)((()=>t),(e=>e.type)));if("spacing_complex"===e){const e=t;return{left:A("unit",e?.left),right:A("unit",e?.right),top:A("unit",e?.top),bottom:A("unit",e?.bottom)}}return"string"===typeof t?t:""}},47256:(e,t,n)=>{"use strict";n.d(t,{Bz:()=>r,Ed:()=>c,Qn:()=>u,ZH:()=>l,vr:()=>d});var o=n(58172),s=n(70802),a=n(43195),i=n(31044);const r=null;function l(e,t,n,o=!1){t.enableHover&&n.setControlValue((0,s.sg)(e),r,t),t.enableMediaQueries&&o?n.setControlValue(`${e}.${i.kD.currentBreakpoint.id}`,r,t):n.setControlValue(e,r,t);const l=!!t.dynamic?.accepts;l&&n.setControlValue((0,a.k2)(e),r,t)}function c(e,t,n){let o=null;return t.enableHover&&(o=(0,s.sg)(e)),d(n.getControlValue(e))||o&&d(n.getControlValue(o))}function u(e){return null===e||void 0===e||!1===e}function d(e){return!u(e)&&(!(0,o.Kn)(e)||p(((e,t)=>[...t,!u(e)]),e,[]).includes(!0))}function p(e,t,n){let s=n;return Object.values(t).forEach((t=>{s=(0,o.Kn)(t)?p(e,t,s):e(t,s)})),s}},98949:(e,t,n)=>{"use strict";n.d(t,{AE:()=>d,Hw:()=>h,f8:()=>p});var o=n(8773),s=n(69137),a=n(9950),i=n(31044),r=n(3735),l=n(48973),c=n(86687),u=n(31549);const d=(e,t="inserting",n,u={mode:"paste"})=>{const d=(0,o.Z)(),p=`pasteElements:${d}`,{mode:h="paste",targetElementId:g}=u;s.n.transaction((()=>{e.forEach((e=>{if("replace"===h&&g){const t={nodeId:void 0};return i.Hb.replaceCurrentElementWithCopiedElement({targetElementId:g,replacementElement:e,pointer:t}),void(t.nodeId&&(i.kD.activateElement(t.nodeId),c.w.run.onCreatedElement({elementId:t.nodeId,transactionKey:p})))}const t=i.kD.activeElementId||i.kD.inlineEditingContext?.elementId||null,o=(0,a.Z)(i.Hb.document.tree,t,(0,a.kE)(e));(0,r.zG)(o,(0,l.g_)((()=>{}),(t=>{if("TOP_LEVEL"===t)return;const o={nodeId:void 0};i.Hb.pasteCopiedElementMutation({element:e,placeToAddId:t.place.id,placeToAddIndex:t.index||t.place.children.length,pointer:o}),o.nodeId&&(c.w.run.onCreatedElement({elementId:o.nodeId,transactionKey:p}),n&&(n.nodeId=o.nodeId))})))}))}),"replace"===h?"Replace with element":"inserting"===t?"Import from design library":"Paste Elements",p)};function p(){const e=(0,u.z)("breakdance_last_used_design_provider");return"string"===typeof e&&e}function h(e){(0,u.r)("breakdance_last_used_design_provider",e)}},82436:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var o=n(85450);function s(){const e=new URL(document.location.href);return!e.searchParams.has("forceproduction")&&"local"===o.configStore.environment}},85902:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var o=n(31044);function s(){return o.PK.previewedItem?.url||o.PK.documentSpecificNeededUrls?.frontend||void 0}},25970:(e,t,n)=>{"use strict";n.d(t,{Ev:()=>_,Kd:()=>v,Ko:()=>f,y9:()=>m});var o=n(98851),s=n(85450);if(143==n.j)var a=n(30902);if(143==n.j)var i=n(45974);var r=n(43195),l=n(31381),c=n(58172),u=n(47902),d=n(39664),p=n(85902),h=n(62231),g=n(87950);async function m(e){const t=(0,g.Jh)()||(0,p.j)();if(!e.length)return{};const n=b(e);let r={};return t?((0,a.pipe)(await(0,o.D)({action:"breakdance_dynamic_data_get",overrideAjaxUrl:t,dataToPost:{shortcodes:n,id:s.documentStore.document.documentMeta.id},decoder:u.Y_,resultKey:"data"}),(0,i.fold)((e=>{e.forEach((e=>d.Z.log.message(e.msg))),Object.keys(n).forEach((e=>{r[e]=""}))}),(e=>{r=e}))),r):(Object.keys(n).forEach((e=>{r[e]=""})),r)}async function v(){const e=y(s.documentStore.document.tree),t=await m(e);s.configStore.updateDynamicDataCache(t)}function f(e,t){const n=[];return(0,c.xV)(e,(e=>{if((0,r.xs)(e)&&!t[e])n.push(e);else if((0,r.ro)(e)){const o=(0,r.kT)(e).filter((e=>!t[e]));n.push(...o)}})),n}function y(e){return[...new Set((0,l.treeNodeReduce)(((e,t)=>{const n=f(e.data.properties,s.configStore.dynamicDataCache.data);return[...t,...n]}),e.root,[]))]}function b(e){const t={};return e.forEach((e=>{const n=_(e);t[n]=e})),t}function _(e){return(0,h.X)(e)}},43195:(e,t,n)=>{"use strict";n.d(t,{Ax:()=>f,Tc:()=>P,cS:()=>x,ii:()=>C,k2:()=>y,kT:()=>v,r8:()=>I,rg:()=>w,ro:()=>m,xs:()=>g});var o=n(48403),s=n.n(o),a=n(23128),i=n(78454),r=n(58172),l=n(25970);if(/^(14|9)3$/.test(n.j))var c=n(3735);var u=n(65669);if(/^(14|9)3$/.test(n.j))var d=n(48973);const p=/^\[breakdance_dynamic(?:\s+[a-zA-Z0-9_-]+=(?:"[^"]*"|'[^']*'))*\]$/,h=/\[breakdance_dynamic\b(?:[^[\]]|\[.*?\])*\]/g;function g(e){return"string"===typeof e&&p.test(e)}function m(e){const t=/\[breakdance_dynamic[^\]]*\]/;return"string"===typeof e&&t.test(e)}function v(e){if("string"!==typeof e)return[];const t=[];let n;while(null!==(n=h.exec(e)))t.push(n[0]);return t}function f(e,t,n=!1){return m(e)||n?t[(0,l.Ev)(e)]?t[(0,l.Ev)(e)]:e.replace(h,(e=>{const n=t[(0,l.Ev)(e)];return n||e})):e}function y(e){return`${e}_dynamic_meta`}function b(e){const t={};return e.match(/[\w-]+='.*?'/g)?.forEach((function(e){const n=e.match(/([\w-]+)='(.*?)'/);if(n){const[,e,o]=n;t[e]=o}})),t}function _(e){const t=b(e),n=(0,a.Z)(t.field);return delete t.field,{field:n,attributes:t||{}}}function I(e,t){const{field:n}=_(t);return n?e.find((e=>e.slug===n)):void 0}function w(e){return e.replace(/\[[0-9]+\]/g,"[]")}function x(){return i._.types.map((e=>({text:s()(e.value.replace("_"," ")),value:e.value})))}function S(e,t){const{defaultAttributes:n}=t,o={...n,...e},s={};return Object.keys(o).forEach((e=>{const t=e,n=o[t];null!==n&&("object"===typeof n?Object.entries(n).forEach((([e,t])=>{null!==t&&((0,r.Kn)(t)&&k(t)&&void 0!==t.id?s[e.toLowerCase()]=t.id:"string"!==typeof t&&"number"!==typeof t||(s[e.toLowerCase()]=t.toString().replace(/'/g,"'")))})):s[e]=n)})),s}function C(e,t){const n=S(e,t),o=Object.keys(n).length,s=(0,c.zG)((0,u.J)(n),(0,d.g_)((()=>""),(e=>e))).replace(/\\"/g,'\\\\"').replace(/\\'/g,"\\\\'"),a=o?` params='${s}'`:"";return`[breakdance_dynamic field='${t.slug}'${a}]`}function k(e){return(0,r.Kn)(e)&&"id"in e}function P(e){return"string"===typeof e.field?e.field:e.field.slug}},94550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ADVANCED_SLIDER_SLUG:()=>i,ADVANCED_SLIDE_SLUG:()=>r,BUTTON_SLUG:()=>w,COLUMNS_SLUG:()=>c,COLUMN_SLUG:()=>u,COMPONENT_SLUG:()=>g,DIV_SLUG:()=>d,FORM_BUILDER_SLUG:()=>k,GALLERY_SLUG:()=>x,GLOBAL_BLOCK_SLUG:()=>h,GRID_SLUG:()=>a,HEADER_BUILDER_SLUG:()=>s,HEADING_SLUG:()=>D,ICON_SLUG:()=>y,IMAGE_SLUG:()=>f,LEGACY_IMAGE_SLUG:()=>v,LINK_SLUG:()=>_,LOGO_LIST_SLUG:()=>P,MISSING_ELEMENT_SLUG:()=>p,OXY_IMAGE_SLUG:()=>b,POPUP_SLUG:()=>l,RICH_TEXT_SLUG:()=>m,SECTION_SLUG:()=>o,TEXT_SLUG:()=>Z,VIDEO_SLUG:()=>C,WP_MENU_SLUG:()=>S,WRAPPER_LINK_SLUG:()=>I,spacingBarsPresetSlug:()=>E});const o="EssentialElements\\Section",s="EssentialElements\\HeaderBuilder",a="EssentialElements\\Grid",i="EssentialElements\\Advancedslider",r="EssentialElements\\Advancedslide",l="EssentialElements\\Popup",c="EssentialElements\\Columns",u="EssentialElements\\Column",d="EssentialElements\\Div",p="EssentialElements\\MissingElement",h="EssentialElements\\Globalblock",g="OxygenElements\\Component",m="EssentialElements\\RichText",v="EssentialElements\\Image",f="EssentialElements\\Image2",y="EssentialElements\\Icon",b="OxygenElements\\Image",_="EssentialElements\\TextLink",I="EssentialElements\\WrapperLink",w="EssentialElements\\Button",x="EssentialElements\\Gallery",S="EssentialElements\\WpMenu",C="EssentialElements\\Video",k="EssentialElements\\FormBuilder",P="EssentialElements\\LogoList",Z="EssentialElements\\Text",D="EssentialElements\\Heading",E=["spacing_all_y","spacing_all_x","spacing_all","spacing_all_not_responsive","spacing_margin_all","spacing_margin_y","spacing_margin_x","spacing_padding_all","spacing_padding_y","spacing_padding_x"]},78143:(e,t,n)=>{"use strict";n.d(t,{HE:()=>g,HT:()=>y,IT:()=>m,Lg:()=>f,Tb:()=>h,dZ:()=>v,x:()=>p,zY:()=>B});var o=n(13218),s=n.n(o);if(143==n.j)var a=n(11815);var i=n(91362),r=n(85256),l=n(20210);if(143==n.j)var c=n(17231);var u=n(23128),d=n(31044);function p(e,t){const n=d.PK.builderMode||"breakdance",o=(0,a.i)({namespace:t,uiIcon:e.uiIcon?A(e.uiIcon):"SquareIcon",phpClassName:I(e),tag:e.htmlTag.default,tagOptions:b(e.htmlTag.options),tagControlPath:e.htmlTag.pathToControl?`"${e.htmlTag.pathToControl}"`:"false",name:e.name,className:(0,l.MO)(e),category:e.category,badge:e.badge?_(e.badge):"false",defaultProperties:e.defaultProperties?_(e.defaultProperties):"false",designControls:x(e.controls.designSections),settingsControls:x(e.controls.settingsSections),contentControls:x(e.controls.contentSections),nestingRules:w(e.nestingRule),dependencies:Z(e.dependencies),actions:D(e.actions),defaultChildrenElements:e.defaultChildren?V(e.defaultChildren):"false",attributes:E(e.attributes),settings:M(e.settings),addPanelRules:M(e.addPanelRules),experimental:(0,i.R2)(e.experimental),availableIn:e.availableIn&&e.availableIn.length?b(e.availableIn):b([n]),order:e.order.toString(),additionalClasses:T(e.additionalClasses),projectManagement:e.projectManagement?_(e.projectManagement):"false",propertyPathsToWhitelistInFlatProps:e.propertyPathsToWhitelistInFlatProps&&e.propertyPathsToWhitelistInFlatProps.length?b(e.propertyPathsToWhitelistInFlatProps):"false",propertyPathsToSsrElementWhenValueChanges:e.propertyPathsToSsrElementWhenValueChanges&&e.propertyPathsToSsrElementWhenValueChanges.length?b(e.propertyPathsToSsrElementWhenValueChanges):"false",spacingBars:e.spacingBars?_(e.spacingBars):"false"});return{php:o,html:e.template,css:e.cssTemplate,defaultCss:e.defaultCss}}function h(e,t,n){const o=(0,u.Z)(t),s=(0,u.Z)(o.options.sectionOptions?.preset);return o.options.sectionOptions={...o.options.sectionOptions,preset:{slug:e}},s&&delete s.slug,(0,c.C)(e,P(o),n,s&&Object.keys(s).length?_(s):null)}function g(e){return e.replace("\\","\\\\")}function m(e){return e.toLowerCase().split(" ").map((e=>e.charAt(0).toUpperCase()+e.substring(1))).join(" ").replace(/-*_* */g,"")}function v(e,t){const n=m(t);return`${e}_${n}`}function f({directoryPath:e,elementName:t}){return`${e}/${t.replace(/ /g,"_")}`}function y(e){return e.replace(/\/[^/]+$/g,"")}function b(e){return`[${e.map((e=>`'${e}'`)).join(", ")}]`}function _(e){if(0===Object.keys(e).length)return Array.isArray(e)?"[]":"(object)[]";if(Array.isArray(e)){const t=e.filter((e=>void 0!==e)).map((e=>s()(e)?_(e):(0,i.XC)(e))).join(", ");return`[${t}]`}const t=Object.keys(e).map((t=>{const n=s()(e[t])?_(e[t]):(0,i.XC)(e[t]);if(void 0!==n)return`'${t}' => ${n}`})).filter((e=>void 0!==e)).join(", ");return`[${t}]`}function I(e){return(0,i.L$)(e.slug)?e.slug.split("\\")[1]:m(e.name)}function w(e){return _(e)}function x(e){return`[${e.map(k).join(", ")}]`}function S(e){return(0,l.v4)(e.options.type)?x(e.children):"[]"}function C(e){return e.condition?(Array.isArray(e.condition)?(e.condition=e.condition.map((e=>e.filter((e=>!e.external)))).filter((e=>e.length)),0===e.condition.length&&delete e.condition):e.condition.external&&delete e.condition,e):e}function k(e){const t=(0,u.Z)(e);if(t.options=C(t.options),"string"===typeof t.options.sectionOptions?.preset?.slug){t.options={...t.options,sectionOptions:{...t.options.sectionOptions,preset:{...t.options.sectionOptions.preset,slug:g(t.options.sectionOptions.preset.slug)},type:t.options.sectionOptions?.type||"popout"}};const e={condition:t.options.condition,type:t.options.sectionOptions?.type};return`getPresetSection(\n "${t.options.sectionOptions?.preset?.slug}",\n "${t.label}",\n "${t.slug}",\n ${Object.keys(e).length?_(e):"false"}\n )`}return P(t)}function P(e){return`c(\n "${e.slug}",\n "${e.label}",\n ${S(e)},\n ${_(e.options)},\n ${(0,i.R2)(e.enableMediaQueries)},\n ${(0,i.R2)(e.enableHover)},\n ${b(e.keywords??[])},\n ${e.dynamic?_(e.dynamic):""}\n )`}function Z(e){if(!e)return"false";let t="";return e.forEach(((e,n)=>{let o="";(0,r.f)(e).forEach((t=>{const n="string"===typeof e[t]?A(e[t]):e[t]?.map((e=>A(e))).join("','");n&&(o+="builderCondition"===t||"frontendCondition"===t||"title"===t?`'${t}' => '${n}',`:`'${t}' => ['${n}'],`)})),o&&(t+=`'${n}' => [${o}],`)})),t.length?`[${t}]`:"false"}function D(e){if(!e)return"false";let t="";return(0,r.f)(e).forEach((n=>{if(e[n]?.length){const o=e[n]?.map((e=>{const t=e.dependencies?.filter(Boolean).join("','")||"";if(!e.script&&!t)return!1;const n=A(e.script),o=t?`'dependencies' => ['${t}'],`:"",s=e.runForAllChildren?`'runForAllChildren' => ${!!e.runForAllChildren},`:"";return`['script' => '${n}',${o}${s}\n],`})).filter(Boolean).join("");t+=`\n\n'${n}' => [${o}],`}})),t.length?`[${t}]`:"false"}function E(e){if(!e)return"false";const t=e.map((e=>_(e))).join(", ");return t.length?`[${t}]`:"false"}function T(e){if(!e)return"false";const t=e.map((e=>_(e))).join(", ");return t.length?`[${t}]`:"false"}function A(e){return e.replace(/'/g,"\\'")}function M(e){if(!e)return"false";const t=_(e);return"[]"===t?"false":t}function V(e){if(!e)return"false";const t=e.map((e=>_(e))).join(", ");return t.length?`[${t}]`:"false"}const B=143==n.j?["new","case","else","const","if","for","namespace","protected","continue","use","public","implements","static","extends","default","class","clone","break","do","final","private","try","or"]:null},91362:(e,t,n)=>{"use strict";n.d(t,{$_:()=>a,L$:()=>c,O6:()=>p,R2:()=>l,XC:()=>d,eH:()=>h,iC:()=>i,kK:()=>r,nQ:()=>u});var o=n(78143),s=n(39664);function a(e){const t=e.split("\\");return 2===t.length?t[0]:(s.Z.log.message(`slug "${e}" did not contain a namespace and a name`),"")}function i(e){const t=e.split("\\");return 2===t.length?t[1]:(s.Z.log.message(`slug "${e}" did not contain a namespace and a name`),"")}function r(e,t){return`${e}\\${(0,o.IT)(t)}`}function l(e){return e?"true":"false"}function c(e){return e&&e.includes("\\")}function u(e){const t=(0,o.IT)(e);if(!t)return"Name cannot be empty";if(o.zY.includes(t))return"You're using a PHP reserved word as a name";const n=/^[a-zA-Z0-9 _-]*$/.test(t);return!!n||'Only letters, numbers, spaces, hyphens "-", and underscore "_" are allowed'}function d(e){return"string"===typeof e?`'${e.replace(/'/g,"\\'")}'`:"boolean"===typeof e?l(e):"number"===typeof e?e:null===e?"null":void 0===e?void 0:(console.warn("unexpected value encountered in wrapIfString",e),"'"+String(e)+"' /* unexpected value encountered */ ")}function p(e,t,n){const o=e.find((e=>e.directoryPath===t.directoryPath))?.label;s.Z.log.message(`Another ${n} with the name "${t.name}" in ${`"${o}"`||"the same location"}" already exists.`)}function h(e,t=[],n=["section"],o){const s=(e,o,a)=>{const i=`${o?`${o}.`:""}${e.slug}`;return n.includes(e.options.type)||!t.includes(e.options.type)&&t.length||a.push(i),e.children.forEach((e=>{a=s(e,i,a)})),a},a=[];return e.forEach((e=>{a.concat(s(e,o,a))})),a}},20210:(e,t,n)=>{"use strict";n.d(t,{AP:()=>v,BQ:()=>x,Cc:()=>S,Cf:()=>p,Ff:()=>Z,GF:()=>w,MO:()=>P,P0:()=>k,Q$:()=>E,Sl:()=>I,W5:()=>h,mH:()=>D,nx:()=>y,pT:()=>m,qj:()=>b,tM:()=>_,v4:()=>g,zE:()=>f});var o=n(46585),s=n(31044),a=n(86592),i=n(74221),r=n(9950),l=n(91362),c=n(16068);if(143==n.j)var u=n(94550);var d=n(69137);function p(e){(0,a.It)(e),s.PK.updateElement(e)}function h(e){return"repeater"===e||"inline_repeater"===e}function g(e){return h(e)||"section"===e}function m(e,t){const n=f(t);if(n){const t=y(e,n.prefix);if(t){const e=(0,o.Au)(n.pathWithoutPathPrefix,t);if(e)return{control:e,controlsTree:t,splittedPath:n}}}}function v(e,t){const n=m(e,t);if(n)return n.control}function f(e){const t=e.split("."),n=t.shift();if(n&&["content","design","settings","properties"].includes(n))return{prefix:n,pathWithoutPathPrefix:t.join(".")}}function y(e,t){switch(t){case"content":return e.controls.contentSections;case"design":return e.controls.designSections;case"settings":return e.controls.settingsSections;default:return}}function b(e){const t=/^[a-z._[\]]*$/g;return!(e&&!t.test(e.trim()))||"Invalid path. Only lowercase letters, dot (.), underscore (_), and brackets ([]) allowed"}function _(e,t,n=[]){if(!t)return e;const o=new i.Z(e,{keys:[{name:"name",weight:2},"badge.label","category",...n],threshold:.2});return o.search(t.trim()).map((e=>e.item))}function I(e){return!e.nestingRule?.restrictedToBeADirectChildOf&&!e.nestingRule?.restrictedToBeADescendantOf||!!s.kD.activeElement&&(!!(0,r.Cx)(e,s.kD.activeElement.data.type)||(0,r.te)(s.kD.activeElement,e))}function w(e,t){if(t&&t.requiredPlugins){const e=t.requiredPlugins.filter((e=>s.PK.availableWordpressPlugins.includes(e)));if(e.length!==t.requiredPlugins.length)return!0}return!!e&&(!!e.alwaysHide||!!e.allowedPostTypes&&!e.allowedPostTypes.includes(s.Hb.document.documentMeta.postType))}function x(){const e=s.PK.builderMode||"breakdance";return{name:"",className:!1,uiIcon:!1,slug:"",category:"",badge:!1,htmlTag:{default:"",options:[],pathToControl:!1},template:"",additionalClasses:!1,attributes:!1,cssTemplate:"",defaultCss:"",defaultProperties:!1,defaultChildren:!1,controls:{contentSections:[],designSections:[],settingsSections:[]},dependencies:!1,actions:!1,nestingRule:{type:"section"},spacingBars:!1,dynamicPropertyPaths:!1,settings:!1,addPanelRules:!1,experimental:!1,availableIn:[e],order:0,projectManagement:!1,propertyPathsToWhitelistInFlatProps:!1,propertyPathsToSsrElementWhenValueChanges:!1}}function S(e){return String(e.data.properties?.settings?.advanced?.id||"")}function C(e){if("root"===e)return"root";const t=(0,l.iC)(e).toLowerCase(),n=(0,l.$_)(e),o=n.replace(/[a-z]/g,"").toLowerCase(),s=o||n.substr(0,3);return`autogenerated-${s}-${t.toLowerCase()}`}function k(e,t){const n=s.PK.element(e.data.type);return`${P(n)}-${t}-${e.id}`}function P(e){return e.className||C(e.slug)}function Z(e,t=!1){const n=s.PK.element(e.data.type),o=s.PK.builderMode,a={h1:"H1Icon",h2:"H2Icon",h3:"H3Icon",h4:"H4Icon",h5:"H5Icon",h6:"H6Icon"},i=e?.data?.properties?.settings?.advanced?.tag||n?.htmlTag?.default,r=t?"MaximizeIcon":n.uiIcon;return"oxygen"===o?a[i]||n.uiIcon:a[i]||r}function D(e){const t=(0,c.Xn)(e),n=t[0]?.name,o=e.data.properties?.meta?.friendlyName?.trim(),a=s.PK.element(e.data.type).name;if(e.data.type===u.COMPONENT_SLUG){const t=e.data.properties?.content?.content?.block?.componentId,n=s.PK.globalBlocks.find((e=>e.id===t))?.label;if(n)return`${n} (component)`}return o||n||a}function E(e,t,n){d.n.transaction((()=>{s.Hb.propertyChangedMutation({elementId:e,path:"settings.advanced.tag",value:t,meta:{snapshotLabel:`Set html tag for element #${e}`}})}),`Set html tag for element #${e}`,n)}},52343:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});const o=[{text:"100 (Thin)",shortText:"Thin",value:100},{text:"200 (Extra Light)",shortText:"Extra L.",value:200},{text:"300 (Light)",shortText:"Light",value:300},{text:"400 (Normal)",shortText:"Normal",value:400},{text:"500 (Medium)",shortText:"Medium",value:500},{text:"600 (Semi Bold)",shortText:"Semi",value:600},{text:"700 (Bold)",shortText:"Bold",value:700},{text:"800 (Extra Bold)",shortText:"Extra B.",value:800},{text:"900 (Black)",shortText:"Black",value:900}]},87615:(e,t,n)=>{"use strict";n.d(t,{AM:()=>I,DQ:()=>y,VQ:()=>C,fv:()=>S,m9:()=>_,v_:()=>x});var o=n(98851),s=n(9665),a=n(45974),i=n(31381),r=n(9221),l=n(85450),c=n(30902);if(143==n.j)var u=n(94550);var d=n(23128),p=n(9950),h=n(39664),g=n(65669),m=n(86687),v=n(20918);if(143==n.j)var f=n(32521);async function y(){(0,c.pipe)(await b(),(0,a.fold)((e=>e.forEach((e=>h.Z.log.message(e.msg)))),l.configStore.setGlobalBlocks))}async function b(){return await(0,o.D)({action:"breakdance_load_blocks",resultKey:"blocks",decoder:s.GF})}function _(e){return(0,o.D)({action:"breakdance_load_block",dataToPost:{blockId:e},decoder:s.HH,resultKey:"block"})}async function I(e,t){const n=(0,i.findNode)(l.documentStore.document.tree,e);if(!n)return;const o=w(n);l.uiStore.setElementUpdatingState({elementId:e,isUpdating:!0}),(0,c.pipe)(await x({tree:o,label:t,id:-1,editInBreakdanceLink:"",settings:!1}),(0,a.fold)((t=>{t.forEach((e=>h.Z.log.message(e.msg))),l.uiStore.setElementUpdatingState({elementId:e,isUpdating:!1})}),(t=>{const o=(0,i.getNodeIndex)(l.documentStore.document.tree,n.id),s=(0,i.getNodeParent)(l.documentStore.document.tree,n.id);if(l.uiStore.setElementUpdatingState({elementId:e,isUpdating:!1}),!s)return;const a="oxygen"===l.configStore.builderMode?u.COMPONENT_SLUG:u.GLOBAL_BLOCK_SLUG,r="oxygen"===l.configStore.builderMode?"content.content.block.componentId":"content.content.block";if(!(0,p.V4)((0,p.V9)(a),(0,p.V9)(s.data.type),s.data.type,(0,v.$M)()))return;const c={nodeId:void 0};l.documentStore.addElementMutation({elementSlug:a,parentNodeId:s.id,index:o,pointer:c}),c.nodeId&&(m.w.run.onCreatedElement({elementId:c.nodeId,transactionKey:void 0}),l.documentStore.deleteElement({nodeId:e}),l.documentStore.throttledPropertyChanged({elementId:c.nodeId,path:r,value:t.id,meta:{snapshotLabel:"Replace element with a global block"}}),l.uiStore.activateElement(c.nodeId))})))}function w(e){const t=(0,i.getBlankTree)(),n=(0,i.copyNode)(t,e),o=(0,p.xJ)(t,n,t.root.id,(0,v.$M)());if(o)(0,i.moveNode)(t,n.id,t.root.id,t.root.children.length,(0,v.$M)());else{const e=(0,r.d)(t,{type:u.DIV_SLUG,properties:l.configStore.element(u.DIV_SLUG).defaultProperties?(0,d.Z)(l.configStore.element(u.DIV_SLUG).defaultProperties):null});(0,i.moveNode)(t,e.id,t.root.id,t.root.children.length,(0,v.$M)()),(0,i.moveNode)(t,n.id,e.id,e.children.length,(0,v.$M)())}return(0,i.exportTree)(t)}async function x(e){return await(0,o.D)({friendlyName:"Saving Global Block to WordPress",action:"breakdance_save_global_block",dataToPost:{...e,settings:!!e.settings&&(0,g.J)(e.settings),tree:(0,g.J)(e.tree)},decoder:s.HH,resultKey:"block"})}async function S(e,t){return await(0,o.D)({friendlyName:"Saving Global Block Settings to WordPress",action:"breakdance_save_global_block_settings",dataToPost:{postId:e,settings:!!t&&(0,g.J)(t)},decoder:f._4})}function C(e){const t=(0,i.findNode)(l.documentStore.document.tree,e),n="oxygen"===l.configStore.builderMode?u.COMPONENT_SLUG:u.GLOBAL_BLOCK_SLUG;if(!t)return!1;if(t.data.type===n)return!1;const o=(0,i.getBlankTree)(),s=(0,r.d)(o,{type:u.DIV_SLUG,properties:null});return(0,i.moveNode)(o,s.id,o.root.id,o.root.children.length,(0,v.$M)()),!!(0,p.xJ)(o,t,s.id,(0,v.$M)())||!!(0,p.xJ)(o,t,o.root.id,(0,v.$M)())}},97657:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ActionsIcon:()=>as,AddFileIcon:()=>Ai,AlignCenterIcon:()=>Mp,AlignJustifyIcon:()=>jd,AlignLeftIcon:()=>Gp,AlignRightIcon:()=>$p,ArrowDownIcon:()=>bh,ArrowDownToLine:()=>lr,ArrowLeftIcon:()=>Dh,ArrowLeftLongIcon:()=>pv,ArrowPointerIcon:()=>ql,ArrowPointerSolidIcon:()=>ec,ArrowRightIcon:()=>Sh,ArrowTurnDownLeftIcon:()=>f_,ArrowTurnDownRightIcon:()=>w_,ArrowUpIcon:()=>gh,ArrowUpRightSolidIcon:()=>gw,ArrowUpToLine:()=>or,ArrowsFromLineIcon:()=>cw,ArrowsRotateSolidIcon:()=>mx,ArrowsToLineIcon:()=>sw,AttributesIcon:()=>Ns,BanIcon:()=>eg,BarsIcon:()=>us,BarsSolidIcon:()=>ms,BoldIcon:()=>Hu,BookOpenIcon:()=>$I,BookOpenSolidIcon:()=>MI,BorderBottomAltIcon:()=>Tm,BorderBottomIcon:()=>ku,BorderCenterIcon:()=>zh,BorderLeftAltIcon:()=>Om,BorderRadiusAllCustomIcon:()=>Ug,BorderRadiusAllIcon:()=>Ng,BorderRadiusBottomLeftIcon:()=>dm,BorderRadiusBottomRightIcon:()=>im,BorderRadiusTopLeftIcon:()=>Kg,BorderRadiusTopRightIcon:()=>tm,BorderRightAltIcon:()=>km,BorderTopAltIcon:()=>Im,BorderTopIcon:()=>Fh,BoxIcon:()=>_s,BoxOpenIcon:()=>ib,BracketsIcon:()=>gl,BracketsSolidIcon:()=>bl,BreakdanceIcon:()=>Fo,BreakpointsIcon:()=>Vo,BroomWideIcon:()=>ax,BrowserIcon:()=>et,CameraIcon:()=>Nx,CaretDownIcon:()=>go,CaretDownSolidIcon:()=>bo,CartPlusIcon:()=>Ib,CartShoppingIcon:()=>wv,CheckIcon:()=>Ec,CheckListIcon:()=>Ks,CheckSolidIcon:()=>Bc,CheckSquareIcon:()=>Qp,ChevronDownIcon:()=>ia,ChevronDownSolidIcon:()=>da,ChevronLeftIcon:()=>va,ChevronRightIcon:()=>Ia,ChevronsRightIcon:()=>Tb,CircleHalfStrokeIcon:()=>Sw,CircleIcon:()=>Vh,CircleInfoIcon:()=>Ym,CircleInfoSolidIcon:()=>nv,CircleNotchSolidIcon:()=>yI,CircleQuestionSolidIcon:()=>rv,ClapperboardPlayIcon:()=>hI,ClipboardIcon:()=>Cc,CloseCircleIcon:()=>fi,CloseIcon:()=>se,CloseSolidIcon:()=>ce,CloseSquareIcon:()=>ji,CodeBranchIcon:()=>Hm,CodeIcon:()=>Cs,CogsIcon:()=>mt,ColorPickerIcon:()=>Ya,Columns3Icon:()=>Df,CommentSolidIcon:()=>tb,CommentsIcon:()=>Ky,ComputerMouseScrollWheelIcon:()=>oI,ConditionsIcon:()=>ni,ConditionsSolidIcon:()=>ri,CopyIcon:()=>Wm,CopySolidIcon:()=>Wm,CreditCardIcon:()=>vb,Css3Icon:()=>Bs,CssIcon:()=>Es,CubeIcon:()=>XI,CubeSolidIcon:()=>GI,DatabaseIcon:()=>pi,DeleteLeftIcon:()=>Se,DesktopIcon:()=>_t,DistributeSpacingHorizontalIcon:()=>Jd,DollarIcon:()=>ag,DollarSolidIcon:()=>ug,DownLeftAndUpRightToCenter:()=>Rv,DownloadFileIcon:()=>Dl,DownloadSolidIcon:()=>Vl,DuplicateIcon:()=>rn,DuplicateSolidIcon:()=>pn,EditIcon:()=>l,EditSolidIcon:()=>h,ElementStudioIcon:()=>jn,EllipsisIcon:()=>$r,EllipsisSolidIcon:()=>Gr,EllipsisSolidVerticalIcon:()=>Xr,EllipsisStrokeIcon:()=>cl,EllipsisStrokeVerticalIcon:()=>sl,EllipsisVerticalIcon:()=>Qr,ExclamationMarkCircleIcon:()=>Nc,ExpandExpandIcon:()=>Nt,ExpandIcon:()=>Bt,ExternalLinkIcon:()=>Ji,EyeIcon:()=>yr,EyeSlashIcon:()=>xr,EyeSlashSolidIcon:()=>Mr,EyeSolidIcon:()=>Zr,EyeSolidSolidIcon:()=>yr,FacebookSquareIcon:()=>my,FileLinesIcon:()=>Sf,FilterListIcon:()=>Av,FlexAlignBottomIcon:()=>op,FlexAlignCenterHorizontalIcon:()=>xp,FlexAlignCenterVerticalIcon:()=>lp,FlexAlignLeftIcon:()=>yp,FlexAlignRightIcon:()=>Zp,FlexAlignSpaceAround:()=>vS,FlexAlignSpaceAroundHorizontal:()=>IS,FlexAlignSpaceBetween:()=>iS,FlexAlignSpaceBetweenHorizontal:()=>dS,FlexAlignStretch:()=>Kx,FlexAlignStretchHorizontal:()=>tS,FlexAlignTopIcon:()=>hp,FolderGearIcon:()=>y,FolderIcon:()=>cf,FolderOpenIcon:()=>wi,FolderPlusIcon:()=>bw,FontIcon:()=>zo,GearIcon:()=>Ct,GearSolidIcon:()=>Et,GlobeIcon:()=>fv,Grid2Icon:()=>Jv,Grid2PlusSolidIcon:()=>of,GridIcon:()=>Hb,GrinHeartsIcon:()=>Cg,GripDotsVerticalIcon:()=>Ha,GripLinesIcon:()=>Oa,GripVerticalIcon:()=>ka,GripVerticalSolidIcon:()=>Ta,H1Icon:()=>fd,H2Icon:()=>pd,H3Icon:()=>rd,H4Icon:()=>nd,H5Icon:()=>Yu,H6Icon:()=>Wu,HashtagIcon:()=>Ad,HeadingIcon:()=>wd,HeartIcon:()=>Eg,HistoryIcon:()=>at,HistorySolidIcon:()=>ut,HomeRegularIcon:()=>jv,HomeSolidIcon:()=>_x,HourglassIcon:()=>uy,HouseIcon:()=>jv,HoverIcon:()=>Fl,Html5Icon:()=>Us,IconsIcon:()=>qh,ImageAndVideIcon:()=>Tu,ImageIcon:()=>Iu,ImagePolaroidIcon:()=>Cy,InstaWPLogo:()=>Ux,ItalicIcon:()=>iu,LayersIcon:()=>x,LayersIconSolid:()=>Z,LeftAndRightArrowsIcon:()=>Xp,LeftRightIcon:()=>ey,LetterAIcon:()=>Dw,LetterIIcon:()=>Vw,LightingIcon:()=>_g,LinkIcon:()=>uc,LinkSimpleIcon:()=>Vf,LinkSimpleSlashSolidIcon:()=>_c,LinkSlashIcon:()=>mc,List2Icon:()=>Ob,ListIcon:()=>Ou,LockIcon:()=>L_,LockOpenSolidIcon:()=>Fw,LockSolidIcon:()=>R_,MagnifyingGlassIcon:()=>tn,MaximizeIcon:()=>mg,MinifyGlassIcon:()=>Kt,MinimizeIcon:()=>sh,MinusIcon:()=>Q,MobileIcon:()=>fn,NotchSolidIcon:()=>yI,ObjectsAlignBottom:()=>op,ObjectsAlignCenterHorizontal:()=>xp,ObjectsAlignCenterVertical:()=>lp,ObjectsAlignLeft:()=>yp,ObjectsAlignRight:()=>Zp,ObjectsAlignTop:()=>hp,OlListIcon:()=>Pd,OpenFolderIcon:()=>wi,OpenFolderSolidIcon:()=>Pi,OverlineIcon:()=>Kc,OxygenLogoIcon:()=>QI,PageRegularIcon:()=>Cx,PageSolidIcon:()=>Ex,PaintbrushFineIcon:()=>n_,PaletteIcon:()=>M,PaletteSolidIcon:()=>$,PenIcon:()=>wn,PenSolidIcon:()=>Pn,PlayIcon:()=>qw,PlaySolidIcon:()=>ZI,PlusIcon:()=>G,PlusIconSolid:()=>X,QuotesIcon:()=>_y,RectangleVerticalIcon:()=>bf,RectangleWideIcon:()=>gf,RecycleIcon:()=>De,RedoIcon:()=>Fe,RedoIconSolid:()=>qe,RepeatIcon:()=>ux,RightFromBracketSolidIcon:()=>Bx,RobotIcon:()=>P_,RotateIcon:()=>hr,SaveIcon:()=>Li,ScissorsIcon:()=>lI,SearchFileIcon:()=>Wa,SearchIcon:()=>ac,ShareFromSquareIcon:()=>Ny,ShopIcon:()=>Wb,ShrinkIcon:()=>Ut,ShuffleIcon:()=>ex,ShuffleSolidIcon:()=>ex,SlidersIcon:()=>So,SlidersSimpleIcon:()=>Bg,SlidersSolidIcon:()=>Do,SparklesIcon:()=>r_,SparklesIconSolid:()=>p_,SparklesSolidIcon:()=>p_,SpellCheckIcon:()=>Rd,SpinnerIcon:()=>zl,SquareAltIcon:()=>vm,SquareIcon:()=>qo,SquarePollHorizontalIcon:()=>Yb,SquareQuestionIcon:()=>Ff,SquareQuoteIcon:()=>qf,SquareSolidIcon:()=>es,SquareUpRightIcon:()=>zf,StarHalfIcon:()=>db,StarIcon:()=>An,StarShootingSolidIcon:()=>xI,StarSolidIcon:()=>Ln,StarsIcon:()=>A_,StrikethroughIcon:()=>Uc,SwapIcon:()=>J_,TableColumnIcon:()=>Ri,TabletIcon:()=>Rn,TagsIcon:()=>Pv,TextIcon:()=>ta,ThumbsUpIcon:()=>By,ThumbsUpSolidIcon:()=>kS,TimelineIcon:()=>Ey,TimerIcon:()=>ay,TrashIcon:()=>ge,TrashSolidIcon:()=>be,TruckIcon:()=>kb,UnderlineIcon:()=>tu,UndoIcon:()=>Ve,UndoIconSolid:()=>ze,UnlockIcon:()=>j_,UnlockSolidIcon:()=>zw,UpAndDownArrowsIcon:()=>ch,UpRightAndDownLeftFromCenter:()=>Lv,UploadFileIcon:()=>Sl,UserIcon:()=>Uy,UserTieIcon:()=>Ld,VideoIcon:()=>du,VideoSolidIcon:()=>vu,WandMagicSparkles:()=>jn,WordPressIcon:()=>Jn,WrenchIcon:()=>oo,WrenchSimpleIcon:()=>lo,XmarkIcon:()=>se,XmarkSolidIcon:()=>ce,iconNames:()=>PS});var o=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M495.6 49.23l-32.82-32.82C451.8 5.471 437.5 0 423.1 0c-14.33 0-28.66 5.469-39.6 16.41l-216 216.09c-8.4 7.5-12.7 17-15.1 27.3l-24.1 107.4c-1.8 8.9 5.1 16.8 12.8 16.8.916 0 1.852-.092 2.797-.281 0 0 74.03-15.71 107.4-23.56 10.1-2.377 19.13-7.46 26.46-14.79l217-217C517.5 106.5 517.4 71.1 495.6 49.23zM461.7 94.4l-217 217c-1.1 1.1-2.2 1.7-3.5 2-13.7 3.227-34.65 7.857-54.3 12.14l12.41-55.2c.29-1.44.99-2.84 2.09-3.84L417.5 50.4c1.9-1.99 4.1-2.4 5.6-2.4s3.715.406 5.65 2.342l32.82 32.83c3.23 3.168 3.23 8.098.13 11.228zM424 288c-13.25 0-24 10.75-24 24v128c0 13.23-10.78 24-24 24H72c-13.22 0-24-10.77-24-24V136c0-13.23 10.78-24 24-24h144c13.25 0 24-10.75 24-24s-10.7-24-24-24l-144.9-.01C32.31 63.99 0 96.29 0 135.1v304C0 479.7 32.31 512 71.1 512h303.1c39.69 0 71.1-32.3 71.1-72l2.7-128c0-13.2-10.7-24-24-24z"}})])},s=[],a=n(1001),i={},r=(0,a.Z)(i,o,s,!1,null,null,null);const l=r.exports;var c=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0l-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5l167.3-167.4-98-98-167.3 167.4zM96 64c-53 0-96 43-96 96v256c0 53 43 96 96 96h256c53 0 96-43 96-96v-96c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"}})])},u=[],d={},p=(0,a.Z)(d,c,u,!1,null,null,null);const h=p.exports;var g=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M448 96H275.9l-49.2-45.25C214.7 38.74 198.5 32 181.5 32H64C28.65 32 0 60.66 0 96v320c0 35.34 28.65 64 64 64h384c35.35 0 64-28.66 64-64V160c0-35.3-28.7-64-64-64zm16 320c0 8.824-7.178 16-16 16H64c-8.822 0-16-7.176-16-16V96c0-8.824 7.178-16 16-16h117.5c4.273 0 8.293 1.664 11.31 4.688L256 144h192c8.822 0 16 7.176 16 16v256zM338.5 303.3c.9-5 1.5-10.1 1.5-15.3s-.625-10.31-1.541-15.28L358.8 261c2.811-1.625 4.207-4.984 3.229-8.082C359.7 245.8 356.9 238.8 352.1 232s-8.562-12.73-13.62-18.25c-2.193-2.398-5.805-2.875-8.615-1.246l-20.52 11.85C302.5 217.8 293.7 212.6 284 209.1v-23.6c0-3.246-2.215-6.137-5.387-6.836C271.3 177 263.8 176 256 176s-15.3 1-22.6 2.7c-3.2.7-5.4 3.6-5.4 6.8v23.64c-9.7 3.46-18.5 8.66-26.2 15.26l-20.6-11.9c-2.8-1.6-6.4-1.1-8.6 1.3-5 5.5-9.7 11.4-13.6 18.2-3.898 6.754-6.744 13.78-8.998 20.91C149 256 150.4 259.4 153.2 261l20.3 11.72c-.9 4.98-1.5 10.08-1.5 15.28s.623 10.31 1.539 15.28L153.2 315c-2.812 1.621-4.207 4.984-3.23 8.082C152.3 330.2 155.1 337.2 159 344c3.9 6.754 8.562 12.73 13.62 18.25 2.195 2.398 5.805 2.875 8.617 1.246l20.52-11.85C209.5 358.2 218.3 363.4 228 366.9v23.64c0 3.242 2.215 6.137 5.387 6.836C240.7 398.1 248.2 400 256 400s15.3-1.047 22.61-2.664c3.172-.7 5.387-3.594 5.387-6.836v-23.64c9.734-3.465 18.54-8.637 26.24-15.21l20.52 11.85c2.811 1.629 6.422 1.152 8.615-1.246 5.055-5.52 9.716-11.5 13.62-18.25s6.745-13.78 8.999-20.92c.977-3.098-.42-6.461-3.23-8.082L338.5 303.3zM256 323c-19.33 0-35-15.67-35-35s15.7-35 35-35c19.33 0 35 15.67 35 35s-15.7 35-35 35z"}})])},m=[],v={},f=(0,a.Z)(v,g,m,!1,null,null,null);const y=f.exports;var b=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M26.16 166.5l211.34 86c5.8 2.3 12.2 2.6 17.6 2.6 6.375 0 12.71-1.19 18.71-3.596l211.2-85.94C501.7 159.1 512 144.9 512 127.1s-10.28-32-26.16-38.47L274.5 3.494c-11.75-4.688-25.25-4.656-37.19.094L26.16 89.53C10.28 95.99 0 111.1 0 127.1s10.28 32 26.16 39.4zM256.6 48.03L453 127.1l-197.6 80L59 128l197.6-79.97zM485.8 345.5c-12.28-5.031-26.28.875-31.28 13.16-3.312 8.094-1.875 16.94 3 23.44l-202.1 81.84-201-81.81c4.906-6.531 6.344-15.38 3.031-23.47-5-12.28-19.03-18.19-31.28-13.16C10.28 351.1 0 367.1 0 384s10.28 31.96 26.16 38.43L237.5 508.5c5.8 2.3 12.2 3.5 17.6 3.5 6.375 0 12.71-1.188 18.71-3.594l211.2-85.94C501.7 415.1 512 400.9 512 384s-10.3-32.9-26.2-38.5zm0-128c-12.28-5.063-26.28.844-31.28 13.16-3.312 8.094-1.875 16.94 3 23.44l-202.1 81.84L54.41 254.2c4.906-6.531 6.344-15.38 3.031-23.47-5-12.31-19.03-18.22-31.28-13.16C10.28 223.1 0 239.2 0 256.1s10.28 31.91 26.16 38.38l211.3 86.03c5.844 2.313 12.2 3.574 18.48 3.574 6.375 0 12.71-1.262 18.71-3.668l211.2-85.94C501.7 287.1 512 272.1 512 256.1s-10.3-33-26.2-38.6z"}})])},_=[],I={},w=(0,a.Z)(I,b,_,!1,null,null,null);const x=w.exports;var S=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0l-218.6-101c-8.5-4-13.9-12.5-13.9-21.8s5.4-17.9 13.9-21.8l218.6-101zm212.4 204.4l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0l-218.6-101c-8.5-4-13.9-12.5-13.9-21.8s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2a88.1 88.1 0 0073.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0l-218.6-101c-8.5-4-13.9-12.5-13.9-21.8s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2a88.1 88.1 0 0073.8 0z"}})])},C=[],k={},P=(0,a.Z)(k,S,C,!1,null,null,null);const Z=P.exports;var D=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M127.1 223.9c-17.75 0-31.99 14.33-31.99 32.08s14.25 31.1 32 31.1 31.99-13.38 31.99-31.18-13.5-32-32-32zM418.6 58.09C359.22 9.22 280.9-9.98 204.3 5.02 104.55 24.39 24.8 104 5.1 203.52c-16.75 84.11 8.067 168.4 67.69 230.7C120.2 483.6 182.6 512 240.7 512c8.875 0 17.5-.625 26.13-1.1 24.25-3.749 44.63-18.75 56.13-41.12 12.25-23.1 12.25-52.74.25-76.61-6.125-11.1-5.5-26.12 1.75-37.99 7-11.75 18.75-18.37 32-18.37h72.25C475.6 335.9 512 300.2 512 254.7c-.2-76.5-34.3-148.1-93.4-196.61zm10.6 229.81h-72.25c-29.88 0-57.25 15.37-73 41.24-16 26.12-17.25 57.86-3.625 84.98 5.125 9.998 5.125 22.62-.125 32.87-2.625 4.999-8.75 13.62-20.63 15.62-49.38 7.623-108.9-16.62-152-61.61-48.88-50.86-69-119.4-55.38-187.1 15.88-80.61 80.75-145.3 161.5-160.1 62.63-12.37 126.1 3.499 174.4 43.12 48.13 39.49 75.63 97.48 75.88 159.5-.87 16.88-15.27 31.48-34.77 31.48zM159.1 127.1c-17.75 0-32 14.25-32 31.99s14.25 31.99 32 31.99 32-14.25 32-31.99-13.5-31.99-32-31.99zm96-31.27c-17.75 0-32 14.37-32 31.99 0 17.75 14.25 31.99 32 31.99a31.9 31.9 0 0032-31.99c0-17.62-13.4-31.99-32-31.99zm96 31.27c-17.75 0-32 14.25-32 31.99s14.25 31.99 32 31.99 32-14.25 32-31.99-13.4-31.99-32-31.99z"}})])},E=[],T={},A=(0,a.Z)(T,D,E,!1,null,null,null);const M=A.exports;var V=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M512 256v2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48 0 3.4.4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5.1-7 .2-10.6.2C114.6 512 0 397.4 0 256S114.6 0 256 0s256 114.6 256 256zm-384 32a32 32 0 10-64 0 32 32 0 1064 0zm0-96a32 32 0 100-64 32 32 0 100 64zm160-96a32 32 0 10-64 0 32 32 0 1064 0zm96 96a32 32 0 100-64 32 32 0 100 64z"}})])},B=[],O={},L=(0,a.Z)(O,V,B,!1,null,null,null);const $=L.exports;var z=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M432 256c0 13.3-10.7 24-24 24H248v160c0 13.25-10.75 24.01-24 24.01S200 453.3 200 440V280H40c-13.25 0-24-10.74-24-23.99C16 242.8 26.75 232 40 232h160V72c0-13.25 10.75-23.99 24-23.99S248 58.75 248 72v160h160c13.3 0 24 10.8 24 24z"}})])},N=[],H={},R=(0,a.Z)(H,z,N,!1,null,null,null);const G=R.exports;var F=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"}})])},U=[],W={},j=(0,a.Z)(W,F,U,!1,null,null,null);const X=j.exports;var q=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M432 256c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.74-24-23.99C16 242.8 26.75 232 40 232h368c13.3 0 24 10.8 24 24z"}})])},K=[],Y={},J=(0,a.Z)(Y,q,K,!1,null,null,null);const Q=J.exports;var ee=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M312.1 375c9.369 9.369 9.369 24.57 0 33.94s-24.57 9.369-33.94 0L160 289.9l-119 119c-9.369 9.369-24.57 9.369-33.94 0s-9.369-24.57 0-33.94L126.1 256 7.027 136.1c-9.369-9.369-9.369-24.57 0-33.94s24.57-9.369 33.94 0L160 222.1l119-119c9.369-9.369 24.57-9.369 33.94 0s9.369 24.57 0 33.94L193.9 256l118.2 119z"}})])},te=[],ne={},oe=(0,a.Z)(ne,ee,te,!1,null,null,null);const se=oe.exports;var ae=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4z"}})])},ie=[],re={},le=(0,a.Z)(re,ae,ie,!1,null,null,null);const ce=le.exports;var ue=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M432 80h-82.38l-34-56.75C306.1 8.827 291.4 0 274.6 0H173.4c-16.8 0-32.4 8.827-41 23.25L98.38 80H16C7.125 80 0 87.13 0 96v16c0 8.9 7.125 16 16 16h16v320c0 35.35 28.65 64 64 64h256c35.35 0 64-28.65 64-64V128h16c8.9 0 16-7.1 16-16V96c0-8.87-7.1-16-16-16zM171.9 50.88c1-1.75 3-2.88 5.1-2.88h94c2.125 0 4.125 1.125 5.125 2.875L293.6 80H154.4l17.5-29.12zM352 464H96c-8.837 0-16-7.163-16-16V128h288v320c0 8.8-7.2 16-16 16zm-128-48c8.844 0 16-7.156 16-16V192c0-8.844-7.156-16-16-16s-16 7.2-16 16v208c0 8.8 7.2 16 16 16zm-80 0c8.8 0 16-7.2 16-16V192c0-8.844-7.156-16-16-16s-16 7.2-16 16v208c0 8.8 7.2 16 16 16zm160 0c8.844 0 16-7.156 16-16V192c0-8.844-7.156-16-16-16s-16 7.2-16 16v208c0 8.8 7.2 16 16 16z"}})])},de=[],pe={},he=(0,a.Z)(pe,ue,de,!1,null,null,null);const ge=he.exports;var me=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32l21.2 339c1.6 25.3 22.6 45 47.9 45h245.8c25.3 0 46.3-19.7 47.9-45L416 128z"}})])},ve=[],fe={},ye=(0,a.Z)(fe,me,ve,!1,null,null,null);const be=ye.exports;var _e=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M512 64H205.3c-17 0-33.3 6.75-45.3 18.75L9.375 233.4c-12.5 12.5-12.5 32.75 0 45.25L160 429.3c12 12 28.3 18.7 45.3 18.7H512c35.38 0 64-28.62 64-64V128c0-35.37-28.6-64-64-64zm16 320c0 8.822-7.178 16-16 16H205.3a15.897 15.897 0 01-11.31-4.691L54.63 256l139.3-139.3c2.17-3 6.17-4.7 11.37-4.7H512c8.822 0 16 7.178 16 16v256zm-95.9-209c-9.375-9.375-24.56-9.375-33.94 0L352 222.1l-47.03-47.03c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l47.03 47.03L271 303c-9.375 9.375-9.375 24.56 0 33.94 9.373 9.373 24.56 9.381 33.94 0L352 289.9l47.03 47.03c9.373 9.373 24.56 9.381 33.94 0 9.375-9.375 9.375-24.56 0-33.94l-47.03-47.03 47.03-47.03c9.33-9.33 9.33-24.53-.87-33.93z"}})])},Ie=[],we={},xe=(0,a.Z)(we,_e,Ie,!1,null,null,null);const Se=xe.exports;var Ce=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M168.4 154.3c-1.6-6.6-6-12.3-12.1-15.5-6-3.2-13.2-3.7-19.6-1.3l-90.23 33.7c-12.41 4.6-18.72 18.5-14.09 30.9 4.65 12.4 18.43 18.7 30.9 14.1l28.62-10.7-64.52 107.6c-14.25 23.75-15.34 52.69-2.969 77.41l2.5 5C40.63 422.9 68.22 440 98.94 440H136c13.25 0 24-10.74 24-23.99S149.3 392 136 392H98.94c-12.41 0-23.56-6.875-29.09-17.97L67.34 369c-5-9.969-4.562-21.66 1.219-31.25l67.71-112.9 8.414 34.41c2.688 10.97 12.5 18.31 23.28 18.31 1.906 0 3.812-.219 5.719-.688 12.88-3.156 20.78-16.12 17.62-29L168.4 154.3zm9.7-45.7c11.4 6.8 26.1 3.1 32.9-8.3l17.12-28.56c11.62-19.44 44.06-19.44 55.75 0l57.93 96.54-35.55-10.38c-12.62-3.688-26.03 3.562-29.75 16.31-3.7 11.89 3.6 26.09 16.3 29.79l92.47 27.03c2.23.67 4.53.97 6.73.97 4.469 0 8.875-1.25 12.75-3.656C410.6 224.7 414.5 218.8 415.7 212l16-95c2.2-13.1-6.6-25.47-19.7-27.66-13.47-2.438-25.47 6.594-27.66 19.66l-4.855 28.8-54.43-90.7C310.6 22.97 284.1 8 256 8s-54.6 14.97-69.1 39.09l-17.1 28.57c-6.8 11.37-3.1 26.14 8.3 32.94zm306.5 204.5l-22.44-37.41c-6.812-11.34-21.5-15.06-32.94-8.25-11.38 6.844-15.06 21.56-8.25 32.94l22.44 37.41c5.781 9.594 6.219 21.28 1.219 31.28l-2.5 5C436.6 385.1 425.5 392 413.1 392H287.2l24.82-22.06c9.906-8.812 10.81-23.97 2-33.88-8.875-9.969-24.03-10.78-33.88-2l-72 64C202.9 402.6 200 409.2 200 416s2.938 13.38 8.062 17.94l72 64C284.6 502 290.3 504 296 504c6.594 0 13.19-2.719 17.94-8.062 8.812-9.906 7.906-25.06-2-33.88L287.1 440H413c30.72 0 58.31-17.06 72.03-44.53l2.5-4.969C499.1 365.8 498.9 336.8 484.6 313.1z"}})])},ke=[],Pe={},Ze=(0,a.Z)(Pe,Ce,ke,!1,null,null,null);const De=Ze.exports;var Ee=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M40 16c13.25 0 24 10.75 24 24v102.1C103.7 75.57 176.3 32.11 256.1 32.11 379.6 32.11 480 132.5 480 256S379.6 479.9 256.1 479.9c-52.31 0-103.3-18.33-143.5-51.77-10.19-8.5-11.56-23.62-3.062-33.81 8.5-10.22 23.66-11.56 33.81-3.062C174.9 417.5 214.9 432 256 432c97.03 0 176-78.97 176-176S353 80 256 80c-66.54 0-126.8 38.28-156.5 96H200c13.3 0 24 10.8 24 24s-10.7 24-24 24H40c-13.25 0-24-10.7-24-24V40c0-13.25 10.75-24 24-24z"}})])},Te=[],Ae={},Me=(0,a.Z)(Ae,Ee,Te,!1,null,null,null);const Ve=Me.exports;var Be=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2l17.6-17.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3-163.8-62.5-226.3 0L125.7 160z"}})])},Oe=[],Le={},$e=(0,a.Z)(Le,Be,Oe,!1,null,null,null);const ze=$e.exports;var Ne=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M496 40v160c0 13.3-10.7 24-24 24H312c-13.2 0-24-10.7-24-24s10.75-24 24-24h100.5c-29.7-57.7-90-96-156.5-96-97.9 0-176 78.1-176 176s78.97 176 176 176c41.09 0 81.09-14.47 112.6-40.75 10.16-8.5 25.31-7.156 33.81 3.062 8.5 10.19 7.125 25.31-3.062 33.81-40.16 33.44-91.17 51.77-143.5 51.77C132.4 479.9 32 379.5 32 256S132.4 32.1 255.9 32.1c79.85 0 152.4 43.46 192.1 109.1V40c0-13.25 10.75-24 24-24s24 10.75 24 24z"}})])},He=[],Re={},Ge=(0,a.Z)(Re,Ne,He,!1,null,null,null);const Fe=Ge.exports;var Ue=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32h128c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2l-17.6-17.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8 229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3 163.8-62.5 226.3 0l17.2 17.2z"}})])},We=[],je={},Xe=(0,a.Z)(je,Ue,We,!1,null,null,null);const qe=Xe.exports;var Ke=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M448 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V96c0-35.35-28.7-64-64-64zm16 384c0 8.824-7.178 16-16 16H64c-8.822 0-16-7.176-16-16V160h416v256z"}})])},Ye=[],Je={},Qe=(0,a.Z)(Je,Ke,Ye,!1,null,null,null);const et=Qe.exports;var tt=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M256 0c141.4 0 256 114.6 256 256S397.4 512 256 512c-52.2 0-100.8-15.6-141.3-42.5-11-7.3-14-22.2-7.6-33.2 8.2-11.1 23.1-14.1 34.2-6.8C174.1 451.3 213.5 464 256 464c114.9 0 208-93.1 208-208S370.9 48 256 48c-73.6 0-138.3 38.24-175.31 96H136c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.25 0-24-10.7-24-24V56c0-13.25 10.75-24 24-24s24 10.75 24 24v50.7C94.45 42.12 170.3 0 256 0zm0 128c13.3 0 24 10.7 24 24v94.1l64.1 64.9c10.2 9.4 10.2 24.6 0 33.1-8.5 10.2-23.7 10.2-33.1 0l-72-72c-4.5-3.6-7-9.7-7-16.1V152c0-13.3 10.7-24 24-24z"}})])},nt=[],ot={},st=(0,a.Z)(ot,tt,nt,!1,null,null,null);const at=st.exports;var it=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M75 75L41 41C25.9 25.9 0 36.6 0 57.9V168c0 13.3 10.7 24 24 24h110.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24v104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65V152c0-13.3-10.7-24-24-24z"}})])},rt=[],lt={},ct=(0,a.Z)(lt,it,rt,!1,null,null,null);const ut=ct.exports;var dt=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M160 144c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32c0-17.7-14.3-32-32-32zm147.1 54.8l-16.6-9.6c.5-4.469.734-8.781.734-12.97 0-4.375-.25-8.781-.75-13.31l16.72-9.656C317.6 147.1 322.5 134.5 318.7 123.2c-7.2-21.7-18.4-41.26-33.6-58.32-7.7-8.72-21.7-10.82-31.7-4.94l-17.3 9.97c-7-5.031-14.42-9.312-22.23-12.84V37.19c0-12-8.422-22.53-20.12-25.03-22.5-4.75-44.86-4.75-67.52 0-11.62 2.5-20.06 13.03-20.06 25.03v19.88c-7.83 3.52-15.26 7.81-22.25 12.84L66.7 59.97c-10.19-5.938-24.17-3.75-31.89 4.969-15.06 17-26.36 36.59-33.53 58.22C-2.5 134.5 2.359 147.1 12.86 153.2l16.69 9.656c-.5 4.531-.75 8.938-.75 13.31 0 4.188.234 8.5.734 12.97L12.91 198.8c-10.551 6-15.441 18.6-11.644 30 7.203 21.66 18.48 41.25 33.47 58.13 7.688 8.844 21.83 10.94 31.91 5.156l16.98-9.812a129.467 129.467 0 0022.52 13.03v19.5c0 12 8.438 22.53 20.14 25.03C137.5 342.2 148.9 343.4 160 343.4s22.47-1.188 33.8-3.562c11.62-2.5 20.05-13.03 20.05-25.03v-19.5a129.908 129.908 0 0022.52-13.03l16.94 9.75c10.19 5.072 24.19 3.772 31.89-4.928 15.08-17 26.36-36.59 33.55-58.22 3.75-11.38-1.05-24.08-11.65-30.08zM248 176c0 11.08-2.273 21.57-6.01 31.34l34.54 19.94a124.95 124.95 0 01-13.84 24L227.1 231.2c-13.36 16.41-32.3 27.89-54.14 31.36v39.99a114.012 114.012 0 01-27.69 0V262.6c-21.84-3.473-40.78-14.95-54.14-31.36L57.31 251.3a128.033 128.033 0 01-13.84-24l34.54-19.94C74.27 197.6 72 187.1 72 176s2.273-21.57 6.01-31.34l-34.54-19.94a124.95 124.95 0 0113.84-24l34.71 20.04c13.36-16.41 32.3-27.89 54.14-31.36V49.41c9.312-1.125 18.44-1.125 27.69 0V89.4c21.84 3.475 40.79 14.95 54.15 31.37l34.73-20.04c5.469 7.5 10.09 15.53 13.81 24L242 144.67c3.7 9.73 6 20.23 6 31.33zm215.9 144c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.3-32-32-32zm163.9-1.7c-2.5-11.62-13.03-20.11-25.03-20.11H582.9a129.169 129.169 0 00-12.84-22.23l9.969-17.27c5.938-10.19 3.711-24.12-5.008-31.84-17-15.06-36.59-26.36-58.22-33.53-11.34-3.781-23.98 1.07-30.07 11.57l-9.641 16.69c-4.531-.5-8.945-.74-13.32-.74-4.188 0-8.492.232-12.96.732L441.2 204.9c-6.031-10.55-18.66-15.38-30.04-11.59-21.66 7.203-41.34 18.53-58.21 33.52-8.844 7.688-10.84 21.78-5.062 31.86l9.812 16.98a130.08 130.08 0 00-13.04 22.52h-19.5c-12 0-22.52 8.43-25.02 20.13-2.375 11.25-3.57 22.59-3.57 33.72s1.188 22.41 3.562 33.74c2.5 11.62 13.03 20.1 25.03 20.1h19.5a129.395 129.395 0 0013.04 22.52l-9.797 16.98c-5.938 10.2-3.688 24.17 5 31.81 17 15.08 36.6 26.37 58.23 33.55 11.38 3.797 24.02-1.039 30.05-11.55l9.641-16.7c4.469.5 8.773.736 12.96.736 4.375 0 8.789-.26 13.32-.76l9.656 16.73c6.094 10.47 18.71 15.31 30.02 11.55 21.66-7.187 41.19-18.44 58.25-33.55 8.719-7.765 10.88-21.81 5.008-31.83l-9.969-17.27c5.031-7 9.312-14.43 12.84-22.24h19.87c12 0 22.52-8.42 25.02-20.12C632.6 363.2 632.6 340.9 627.8 318.3zm-37.2 47.5h-39.99c-3.475 21.84-14.95 40.79-31.37 54.14l20.04 34.73a128.178 128.178 0 01-24 13.81l-19.94-34.54C485.6 437.7 475.1 440 464 440s-21.57-2.273-31.34-6.01l-19.94 34.54a124.95 124.95 0 01-24-13.84l20.04-34.71c-16.41-13.36-27.89-32.3-31.36-54.14h-39.99a114.012 114.012 0 010-27.69h39.99c3.473-21.84 14.95-40.78 31.36-54.14l-20.04-34.71a128.033 128.033 0 0124-13.84L432.66 270c9.74-3.7 20.24-6 31.34-6s21.57 2.273 31.34 6.01l19.94-34.54a124.95 124.95 0 0124 13.84l-20.04 34.71c16.41 13.36 27.89 32.3 31.36 54.14h39.99c1.11 9.34 1.11 18.44.01 27.64z"}})])},pt=[],ht={},gt=(0,a.Z)(ht,dt,pt,!1,null,null,null);const mt=gt.exports;var vt=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M512 0H64C28.65 0 0 28.65 0 64v288c0 35.35 28.65 64 64 64h148.3l-9.6 48H152c-13.2 0-24 10.8-24 24s10.8 24 24 24h272c13.25 0 24-10.75 24-24s-10.75-24-24-24h-50.73l-9.57-48H512c35.35 0 64-28.65 64-64V64c0-35.35-28.7-64-64-64zM324.3 464h-72.6l9.6-48h53.46l9.54 48zM528 352c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V64c0-8.822 7.178-16 16-16h448c8.822 0 16 7.178 16 16v288z"}})])},ft=[],yt={},bt=(0,a.Z)(yt,vt,ft,!1,null,null,null);const _t=bt.exports;var It=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M504.1 315.1c0-8.652-4.607-16.84-12.36-21.39l-32.91-18.97c.67-5.64.97-12.24.97-18.74s-.323-13.1-.968-19.62l32.91-18.97c7.752-4.548 12.36-12.74 12.36-21.39 0-21.27-49.32-128.2-84.52-128.2-4.244 0-8.51 1.094-12.37 3.357l-32.78 18.97a195.092 195.092 0 00-34.07-19.74V32.49c0-11.23-7.484-21.04-18.33-23.88C300.5 2.871 278.3 0 256 0c-22.2 0-44.5 2.871-66.1 8.613-10.8 2.837-18.3 12.647-18.3 23.877v37.94c-12 5.42-23.36 12-34.07 19.74L104.75 71.2a24.374 24.374 0 00-12.37-3.35c-.003 0 .003 0 0 0-32.46 0-84.52 101.7-84.52 128.2 0 8.652 4.607 16.84 12.36 21.39l32.91 18.97a199.936 199.936 0 00.008 39.21L20.23 294.6c-7.76 4.5-12.363 12.7-12.363 20.5 0 21.27 49.32 128.2 84.52 128.2 4.244 0 8.51-1.094 12.37-3.357l32.78-18.97a195.092 195.092 0 0034.07 19.74v37.94c0 11.23 7.484 21.04 18.33 23.88C211.5 509.1 233.7 512 255.1 512c22.25 0 44.47-2.871 66.08-8.613 10.84-2.84 18.33-12.65 18.33-23.88v-37.94c12-5.42 23.36-12 34.07-19.74l32.78 18.97a24.364 24.364 0 0012.37 3.357C452.1 444.2 504.1 342.4 504.1 315.1zm-88.9 74l-43.66-25.26c-42.06 30.39-32.33 24.73-79.17 45.89v50.24a210.079 210.079 0 01-36.44 3.18c-15.42 0-27.95-1.693-36.36-3.176v-50.24c-46.95-21.21-37.18-15.54-79.17-45.89l-43.64 25.25a207.523 207.523 0 01-36.41-63.11L103.1 301.7c-1.7-25.6-3-35.6-3-45.7 0-10.02 1.268-20.08 3.81-45.76L60.37 185.2c8.32-23.1 20.68-44.5 36.4-63.2l43.66 25.26c42.06-30.39 32.33-24.73 79.17-45.89V51.18A210.079 210.079 0 01256.04 48c15.42 0 27.95 1.693 36.36 3.176v50.24c46.95 21.21 37.18 15.54 79.17 45.89l43.64-25.25a207.29 207.29 0 0136.4 63.11L408 210.3c2.538 25.64 3.81 35.64 3.81 45.68 0 10.02-1.268 20.08-3.81 45.76l43.58 25.12c-8.28 23.04-20.68 44.44-36.38 62.24zM256 159.1c-52.88 0-96 43.13-96 96s43.1 96 96 96 96-43.13 96-96-43.1-96-96-96zm0 144.9c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.53 48 48-21.5 48-48 48z"}})])},wt=[],xt={},St=(0,a.Z)(xt,It,wt,!1,null,null,null);const Ct=St.exports;var kt=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M495.9 166.6c3.2 8.7.5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4l-55.6 17.8c-8.8 2.8-18.6.3-24.5-6.8-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4c-1.1-8.4-1.7-16.9-1.7-25.5s.6-17.1 1.7-25.4l-43.3-39.4c-6.9-6.2-9.6-15.9-6.4-24.6 4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2 5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8 8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 100-160 80 80 0 100 160z"}})])},Pt=[],Zt={},Dt=(0,a.Z)(Zt,kt,Pt,!1,null,null,null);const Et=Dt.exports;var Tt=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M497.2 1.852C494.2.641 491.1 0 488 0H344.9C330.8 0 320 10.75 320 24s10.75 24 24 24h86.06l-135 135c-9.375 9.375-9.375 24.56 0 33.94s24.56 9.375 33.94 0l135-135V168c0 13.3 10.8 24 24 24s24-10.8 24-24.9V24c0-3.133-.64-6.25-1.855-9.18A24.226 24.226 0 00497.2 1.852zM14.83 510.1c2.93 1.3 6.05 1.9 9.17 1.9h143.1c14.1 0 24.9-10.7 24.9-24s-10.7-24-24-24H81.94l135-135c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L48 430.1V344c0-13.2-10.75-24-24-24S0 330.8 0 344v144c0 3.133.64 6.25 1.855 9.18C4.289 503 8.965 507.7 14.83 510.1z"}})])},At=[],Mt={},Vt=(0,a.Z)(Mt,Tt,At,!1,null,null,null);const Bt=Vt.exports;var Ot=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M32 32C14.3 32 0 46.3 0 64v96c0 17.7 14.3 32 32 32s32-14.3 32-32V96h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zm32 320c0-17.7-14.3-32-32-32S0 334.3 0 352v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H64v-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32h-96zm128 320c0-17.7-14.3-32-32-32s-32 14.3-32 32v64h-64c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32v-96z"}})])},Lt=[],$t={},zt=(0,a.Z)($t,Ot,Lt,!1,null,null,null);const Nt=zt.exports;var Ht=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M286.8 238.1c3 1.3 6.1 1.9 9.2 1.9h144c13.25 0 23.94-10.69 23.94-23.94S453.3 192 440 192h-86.06l135-135c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L320 158.1V72c0-13.25-10.81-23.94-24.06-23.94S272 58.75 272 72v144c0 3.133.64 6.25 1.855 9.18C276.3 231 280.1 235.7 286.8 238.1zm-61.6 35.8c-3-1.3-6.1-1.9-9.2-1.9H72c-13.25 0-23.94 10.69-23.94 23.94S58.75 320 72 320h86.06l-135 135c-9.375 9.375-9.375 24.56 0 33.94s24.56 9.375 33.94 0L192 353.9V440c0 13.25 10.81 23.94 24.06 23.94S240 453.3 240 440V296c0-3.133-.64-6.25-1.855-9.18C235.7 280.1 231 276.3 225.2 273.9z"}})])},Rt=[],Gt={},Ft=(0,a.Z)(Gt,Ht,Rt,!1,null,null,null);const Ut=Ft.exports;var Wt=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M504.1 471l-134-134c29-35.5 45.9-80.2 45.9-129C416 93.13 322.9 0 208 0S0 93.13 0 208s93.13 208 208 208c48.79 0 93.55-16.91 129-45.04l134 134c4.7 4.74 10.9 7.04 17 7.04s12.28-2.344 16.97-7.031c9.33-9.369 9.33-24.569-.87-33.969zM208 368c-88.22 0-160-71.78-160-160S119.78 48 208 48s160 71.78 160 160-71.8 160-160 160zm80-184H127.1c-12.4 0-23.1 10.7-23.1 24s10.73 24 23.1 24h160c14.2 0 24.9-10.7 24.9-24s-10.7-24-24-24z"}})])},jt=[],Xt={},qt=(0,a.Z)(Xt,Wt,jt,!1,null,null,null);const Kt=qt.exports;var Yt=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M504.1 471l-134-134c29-35.5 45.9-80.2 45.9-129C416 93.13 322.9 0 208 0S0 93.13 0 208s93.13 208 208 208c48.79 0 93.55-16.91 129-45.04l134 134c4.7 4.74 10.9 7.04 17 7.04s12.28-2.344 16.97-7.031c9.33-9.369 9.33-24.569-.87-33.969zM208 368c-88.22 0-160-71.78-160-160S119.78 48 208 48s160 71.78 160 160-71.8 160-160 160zm80-184h-56.9v-56c0-13.26-10.74-24-23.1-24s-24 10.7-24 24v56h-56.9c-12.4 0-23.1 10.7-23.1 24s10.73 24 23.1 24H184v56c0 13.26 10.73 24 23.1 24 13.26 0 23.1-10.74 23.1-24v-56h56c15.1 0 25.8-10.7 25.8-24s-10.7-24-24-24z"}})])},Jt=[],Qt={},en=(0,a.Z)(Qt,Yt,Jt,!1,null,null,null);const tn=en.exports;var nn=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M448 0H224c-35.3 0-64 28.65-64 64v224c0 35.35 28.65 64 64 64h224c35.35 0 64-28.65 64-64V64c0-35.35-28.7-64-64-64zm16 288c0 8.822-7.178 16-16 16H224c-8.8 0-16-7.2-16-16V64c0-8.822 7.178-16 16-16h224c8.822 0 16 7.178 16 16v224zM304 448c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V224c0-8.822 7.178-16 16-16h64v-48H64c-35.35 0-64 28.7-64 64v224c0 35.35 28.65 64 64 64h224c35.35 0 64-28.65 64-64v-64h-48v64z"}})])},on=[],sn={},an=(0,a.Z)(sn,nn,on,!1,null,null,null);const rn=an.exports;var ln=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M288 448H64V224h64v-64H64c-35.3 0-64 28.7-64 64v224c0 35.3 28.7 64 64 64h224c35.3 0 64-28.7 64-64v-64h-64v64zm-64-96h224c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224c-35.3 0-64 28.7-64 64v224c0 35.3 28.7 64 64 64z"}})])},cn=[],un={},dn=(0,a.Z)(un,ln,cn,!1,null,null,null);const pn=dn.exports;var hn=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M304 0H80C44.65 0 16 28.65 16 64v384c0 35.35 28.65 64 64 64h224c35.35 0 64-28.65 64-64V64c0-35.35-28.7-64-64-64zm16 448c0 8.822-7.178 16-16 16H80c-8.82 0-16-7.2-16-16V64c0-8.822 7.178-16 16-16h224c8.8 0 16 7.18 16 16v384zm-128-56c-13.25 0-24 10.74-24 24 0 13.25 10.75 24 24 24s24-10.75 24-24c0-13.3-10.7-24-24-24z"}})])},gn=[],mn={},vn=(0,a.Z)(mn,hn,gn,!1,null,null,null);const fn=vn.exports;var yn=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M455.7 18.75A63.815 63.815 0 00410.5 0c-16.38 0-32.76 6.25-45.26 18.75L45.11 338.9a63.91 63.91 0 00-17.18 31.21L.32 492.91C-1.7 502.1 6.159 512 15.95 512a16.26 16.26 0 003.198-.32s84.61-17.95 122.8-26.93c11.54-2.717 21.87-8.523 30.25-16.9l321.2-321.2c24.99-24.99 24.9-65.42-.09-90.41L455.7 18.75zM138.2 433.9c-2.115 2.115-4.503 3.463-7.308 4.123-18.17 4.281-47.46 10.71-72.69 16.18l16.55-73.58a15.992 15.992 0 014.296-7.803l241.9-241.9 60.13 60.13L138.2 433.9z"}})])},bn=[],_n={},In=(0,a.Z)(_n,yn,bn,!1,null,null,null);const wn=In.exports;var xn=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M362.7 19.3l-48.4 48.4 130 130 48.4-48.4c25-25 25-65.5 0-90.5l-39.4-39.5c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2c-2.5 8.5-.2 17.6 6 23.8s15.3 8.5 23.7 6.1L151 475.7c14.1-4.2 27-11.8 37.4-22.2l233.3-233.2-130-130z"}})])},Sn=[],Cn={},kn=(0,a.Z)(Cn,xn,Sn,!1,null,null,null);const Pn=kn.exports;var Zn=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M528.5 171.5l-146.4-21.29-65.43-132.4C310.9 5.971 299.4-.002 287.1 0c-10.5 0-22 5.899-27.8 17.8l-65.5 132.4-146.33 21.3c-26.27 3.8-36.79 36.1-17.75 54.6l105.9 102.1-25.02 146.4c-3.6 20.7 13 37.4 31.6 37.4 4.932 0 10.01-1.172 14.88-3.75L288 439.6l130.9 68.7c4.865 2.553 9.926 3.713 14.85 3.713 18.61 0 35.21-16.61 31.65-37.41l-25.05-145.5 105.9-102.1C565.3 207.6 554.8 175.3 528.5 171.5zM390.2 320.6l22.4 130.1-117.2-61.48a16.007 16.007 0 00-14.87 0L163.4 450.7l22.4-130.1c.9-5.2-1.7-10.5-4.6-14.2l-94.7-92.09 130.9-19.04c5.2-.77 9.7-4.07 12-8.77L288 67.99l58.59 118.5a16 16 0 0012.04 8.744l130.9 19.04-94.7 92.09C391 310.1 389.3 315.4 390.2 320.6z"}})])},Dn=[],En={},Tn=(0,a.Z)(En,Zn,Dn,!1,null,null,null);const An=Tn.exports;var Mn=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M316.9 18c-5.3-11-16.5-18-28.8-18s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329l-24.6 145.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329l104.2-103.1c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7l-143.7-21.2L316.9 18z"}})])},Vn=[],Bn={},On=(0,a.Z)(Bn,Mn,Vn,!1,null,null,null);const Ln=On.exports;var $n=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M384 0H64C28.65 0 0 28.65 0 64v384c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V64c0-35.35-28.7-64-64-64zm16 448c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V64c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16v384zm-176-56c-13.25 0-24 10.74-24 24 0 13.25 10.75 24 24 24s24-10.75 24-24c0-13.3-10.7-24-24-24z"}})])},zn=[],Nn={},Hn=(0,a.Z)(Nn,$n,zn,!1,null,null,null);const Rn=Hn.exports;var Gn=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M35.68 133.1l49.64 20.7 20.7 49.64c1.016 2.043 3.697 3.695 5.977 3.695.008 0-.008 0 0 0 2.303-.035 4.903-.835 5.903-2.835l20.72-49.63 49.62-20.71c2.023-1.012 3.664-3.676 3.676-5.938C191.9 125.8 190.3 123 188.3 122l-49.4-20.6-.4-.4-20.6-49.3c-1-2.04-3.6-3.68-5.9-3.7-.008 0 .008 0 0 0-2.279 0-4.966 1.648-5.981 3.691L85.32 101.3 35.68 122c-2.03 1.1-3.68 3.7-3.68 5.1 0 3.1 1.65 5.8 3.68 6zm203.42-70l12.42 29.78C253 95.01 254.6 96 255.1 96s2.965-.994 3.574-2.219l12.42-29.8 29.78-12.4c1.219-.61 2.216-2.219 2.216-3.579 0-1.365-.997-2.968-2.216-3.577L271.1 32 258.68 2.22C258.1.991 257.4 0 255.1 0s-2.1.991-2.7 2.218l-12.42 29.78L210.2 44.42c-1.215.61-2.209 2.212-2.209 3.577 0 1.359.994 2.969 2.209 3.579L239.1 63.1zM540.3 378l-49.57-20.67-20.77-49.67C468.9 305.7 466.3 304 464 304c-2.281 0-4.949 1.652-5.965 3.695l-20.7 49.63-49.64 20.71c-2.027 1.016-3.676 3.679-3.68 5.954.004 2.262 1.654 4.956 3.68 5.97l49.57 20.67 20.77 49.67C459.1 462.3 461.7 464 464 464c2.277 0 4.943-1.656 5.959-3.699l20.7-49.63 49.65-20.71c2.027-1.014 3.682-3.68 3.686-5.942C543.1 381.7 542.3 379.1 540.3 378zM529.9 48l-33.92-33.94C486.6 4.688 474.4 0 462.1 0s-24.57 4.686-33.94 14.06L46.06 396.1c-18.75 18.74-18.75 49.13-.004 67.88l33.93 33.95C89.36 507.3 101.6 512 113.9 512s24.57-4.686 33.94-14.06L529.9 115.9c18.8-18.77 18.8-49.15 0-67.9zm-416 416L80 430.1 318.1 192l33.95 33.95L113.9 464zm272-272l-33.95-33.95 110.1-110c.006-.002-.023 0 0 0L496 81.94 385.9 192z"}})])},Fn=[],Un={},Wn=(0,a.Z)(Un,Gn,Fn,!1,null,null,null);const jn=Wn.exports;var Xn=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M256 8C119.3 8 8 119.2 8 256c0 136.7 111.3 248 248 248s248-111.3 248-248C504 119.2 392.7 8 256 8zM33 256c0-32.3 6.9-63 19.3-90.7l106.4 291.4C84.3 420.5 33 344.2 33 256zm223 223c-21.9 0-43-3.2-63-9.1l66.9-194.4 68.5 187.8c.5 1.1 1 2.1 1.6 3.1-23.1 8.1-48 12.6-74 12.6zm30.7-327.5c13.4-.7 25.5-2.1 25.5-2.1 12-1.4 10.6-19.1-1.4-18.4 0 0-36.1 2.8-59.4 2.8-21.9 0-58.7-2.8-58.7-2.8-12-.7-13.4 17.7-1.4 18.4 0 0 11.4 1.4 23.4 2.1l34.7 95.2L200.6 393l-81.2-241.5c13.4-.7 25.5-2.1 25.5-2.1 12-1.4 10.6-19.1-1.4-18.4 0 0-36.1 2.8-59.4 2.8-4.2 0-9.1-.1-14.4-.3C109.6 73 178.1 33 256 33c58 0 110.9 22.2 150.6 58.5-1-.1-1.9-.2-2.9-.2-21.9 0-37.4 19.1-37.4 39.6 0 18.4 10.6 33.9 21.9 52.3 8.5 14.8 18.4 33.9 18.4 61.5 0 19.1-7.3 41.2-17 72.1l-22.2 74.3-80.7-239.6zm81.4 297.2l68.1-196.9c12.7-31.8 17-57.2 17-79.9 0-8.2-.5-15.8-1.5-22.9 17.4 31.8 27.3 68.2 27.3 107 0 82.3-44.6 154.1-110.9 192.7z"}})])},qn=[],Kn={},Yn=(0,a.Z)(Kn,Xn,qn,!1,null,null,null);const Jn=Yn.exports;var Qn=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M507.5 117.1c-2.1-12.13-12.37-21.75-24.5-25.13-12.12-3.25-25.12.125-33.1 9l-59.5 58.63-32.5-5.4-5.375-32.38 58.75-58.75c8.75-8.875 12.25-21.88 8.875-33.88-3.375-12.13-13.12-21.5-25.25-24.63-53.12-13.13-107.1 2.125-146.6 40.75-37.62 37.63-52.62 91.38-40.75 143.3L23.1 371.1C8.5 387.5 0 408.1 0 429.1s8.5 42.5 23.1 58 37.02 24.9 58 24.9c21.88 0 42.5-8.5 58-24l183.4-183.3c51.75 11.88 105.6-3.125 143.5-41 38.9-38 54.5-94.2 41.5-146.6zm-74.6 112.8c-28.5 28.5-70.25 38.13-108.1 25.25l-14.12-4.75L106.98 454c-12.75 12.88-35.25 12.88-47.1 0-6.499-6.375-9.999-14.88-9.999-24 0-9 3.5-17.63 9.999-24l203.9-203.8-4.625-14.13C244.4 149.2 253.1 107.5 282.2 79.24c20.37-20.25 47.12-31.25 74.1-31.25h1.125L301.1 105.4l15.12 90.5 90.5 15.13 57.37-57.25c.41 27.32-10.59 55.42-31.19 76.12zM87.1 407.1c-8.875 0-15.1 7.125-15.1 16s7.125 16 15.1 16 15.1-7.125 15.1-16c.9-8-5.33-16-15.1-16z"}})])},eo=[],to={},no=(0,a.Z)(to,Qn,eo,!1,null,null,null);const oo=no.exports;var so=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M279.1 512c-13.25 0-24-10.75-24-24V324.2c0-8.313 4.312-16.03 11.37-20.41 42.97-26.63 68.62-72.25 68.62-122.1 0-48.31-24.72-92.75-63.1-119v104.5c0 5.75-2.062 11.34-5.844 15.69l-55.1 64.78c-9.125 10.56-27.19 10.56-36.31 0L117.8 182.9c-3.7-4.3-5.8-10.8-5.8-15.7V62.67c-39.28 26.28-63.1 70.72-63.1 119 0 49.88 25.66 95.5 68.62 122.1a24.01 24.01 0 0111.37 20.41v163.8C128 501.2 117.3 512 104 512s-23.1-10.75-23.1-24V337.1C29.66 300.9 0 243.8 0 181.7 0 101.01 51.44 28.5 127.1 1.4c7.375-2.563 15.5-1.469 21.87 3.031C156.2 8.889 160 16.17 160 23.98V158.3l32 37 31.1-37V23.98c0-7.813 3.781-15.09 10.16-19.59 6.375-4.5 14.5-5.594 21.87-3.031 76.53 27.19 127.1 99.66 127.1 180.3 0 62.06-29.66 119.2-79.1 155.3v150.9C303.1 501.2 293.2 512 279.1 512z"}})])},ao=[],io={},ro=(0,a.Z)(io,so,ao,!1,null,null,null);const lo=ro.exports;var co=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M271.1 176H48.08c-42.63 0-64.25 51.77-33.88 81.9l111.9 112c18.63 18.76 49.13 18.76 67.88 0l112-112c29.12-30.1 8.72-81.9-34.88-81.9zm-112 160L47.96 224H271.1l-112 112z"}})])},uo=[],po={},ho=(0,a.Z)(po,co,uo,!1,null,null,null);const go=ho.exports;var mo=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301 191.9 288 191.9L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"}})])},vo=[],fo={},yo=(0,a.Z)(fo,mo,vo,!1,null,null,null);const bo=yo.exports;var _o=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M488 392H251.9c-10.2-32.4-40.1-56-75.9-56s-65.69 23.62-75.93 56H24c-13.25 0-24 10.7-24 24s10.75 24 24 24h76.07c10.23 32.4 40.13 56 75.93 56s65.69-23.62 75.93-56H488c13.25 0 24-10.75 24-24s-10.7-24-24-24zm-312 56c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.4 32-32 32zm312-216h-76.07c-10.23-32.4-40.13-56-75.93-56s-65.69 23.62-75.93 56H24c-13.25 0-24 10.7-24 24s10.75 24 24 24h236.1c10.2 32.4 40.1 56 75.9 56s65.69-23.62 75.93-56H488c13.3 0 24-10.7 24-24s-10.7-24-24-24zm-152 56c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.4 32-32 32zM24 120h108.1c10.2 32.4 40.1 56 75.9 56s65.69-23.62 75.93-56H488c13.3 0 24-10.7 24-24s-10.75-24-24-24H283.9c-10.2-32.38-40.1-56-75.9-56s-65.7 23.62-75.9 56H24C10.75 72 0 82.75 0 96s10.75 24 24 24zm184-56c17.64 0 32 14.36 32 32s-14.36 32-32 32-32-14.36-32-32 14.4-32 32-32z"}})])},Io=[],wo={},xo=(0,a.Z)(wo,_o,Io,!1,null,null,null);const So=xo.exports;var Co=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M0 416c0 17.7 14.3 32 32 32h54.7c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H233.3c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48H32c-17.7 0-32 14.3-32 32zm128 0a32 32 0 1164 0 32 32 0 11-64 0zm192-160a32 32 0 1164 0 32 32 0 11-64 0zm32-80c-32.8 0-61 19.7-73.3 48H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h246.7c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48H480c17.7 0 32-14.3 32-32s-14.3-32-32-32h-54.7c-12.3-28.3-40.5-48-73.3-48zm-160-48a32 32 0 110-64 32 32 0 110 64zm73.3-64C253 35.7 224.8 16 192 16s-61 19.7-73.3 48H32C14.3 64 0 78.3 0 96s14.3 32 32 32h86.7c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H265.3z"}})])},ko=[],Po={},Zo=(0,a.Z)(Po,Co,ko,!1,null,null,null);const Do=Zo.exports;var Eo=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M112 64c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16v32h48V64c0-35.35-28.65-64-64-64H128C92.65 0 64 28.65 64 64v256H16c-8.836 0-16 7.2-16 16 0 26.5 21.49 48 48 48h304v-64H112V64zm464 64H448c-35.35 0-64 28.65-64 64v256c0 35.35 28.65 64 64 64h128c35.35 0 64-28.65 64-64V192c0-35.3-28.7-64-64-64zm16 320c0 8.822-7.178 16-16 16H448c-8.822 0-16-7.178-16-16V192c0-8.822 7.178-16 16-16h128c8.822 0 16 7.178 16 16v256z"}})])},To=[],Ao={},Mo=(0,a.Z)(Ao,Eo,To,!1,null,null,null);const Vo=Mo.exports;var Bo=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M424 432h-31.44L246.4 47.47c-3.5-9.25-12.51-15.37-22.38-15.46-.094 0 .063 0 0 0-9.812 0-18.68 5.961-22.34 15.09L47.76 432H24c-13.25 0-24 10.8-24 24s10.75 24 24 24h112c13.3 0 24-10.7 24-24s-10.7-24-24-24H99.45l35.21-88h173.1l33.44 88H312c-13.25 0-24 10.75-24 24s10.8 24 24 24h112c13.25 0 24-10.75 24-24s-10.7-24-24-24zM153.9 296l69.58-173.9L289.5 296H153.9z"}})])},Oo=[],Lo={},$o=(0,a.Z)(Lo,Bo,Oo,!1,null,null,null);const zo=$o.exports;var No=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M632 64H526.6l-15.25-18.62c16.36-5.121 28.97-18.63 32.48-35.73 1.022-4.977-2.857-9.643-7.938-9.643L400 0c-68.5 0-125.9 48-140.5 112H176c-38.13 0-71.75 19.25-92 48.38C37.38 162.5 0 200.9 0 248v48c0 13.3 10.75 24 24 24s24-10.75 24-23.1V248c0-13.25 6.875-24.38 16.75-31.62-.125 2.5-.751 5.002-.751 7.627 0 30.12 11.88 58.12 32.13 78.62l-12.88 43.75a77.76 77.76 0 00-1.125 40.75l24.13 100.4C109.8 501.9 122.6 512 137.4 512h74.7c20.85 0 36.13-19.62 31.01-39.84l-25.51-100.8 8.5-23.75 29.88 8.625V480c0 17.6 14.4 32 32 32h80c17.6 0 32-14.4 32-32V324.4C420.6 301.2 432 271.5 432 240v-5.6c21 7 38.38.75 40.88-.125l31.05-10.6c23.97-8.181 40.08-30.7 40.08-56.03v-52.25l92.38-36.75C643 74.25 639.9 64 632 64zM488.5 178.2l-31 10.5c-1.625.5-9.75 3-16.5-3.75L416 160h-32v80c0 26.12-12.63 49-32 63.63V464h-48V320l-107.9-30.9-28.6 79.9 24 95H150l-21.13-87.88c-1.27-5.32-1.07-10.92.43-16.12l22.75-76.75C128.5 273.8 112 250.9 112 224c0-35.38 28.63-64 64-64h128v-16c0-53 42.88-96 96-96h51.25L496 102.25v65.38c0 4.77-3 8.97-7.5 10.57zM432 80c-8.875 0-16 7.125-16 16s7.125 16 16 16 16-7.125 16-16-7.1-16-16-16z"}})])},Ho=[],Ro={},Go=(0,a.Z)(Ro,No,Ho,!1,null,null,null);const Fo=Go.exports;var Uo=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M384 31.1H64c-35.35 0-64 28.65-64 63.1v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64v-320c0-33.55-28.7-63.1-64-63.1zM400 416c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V96c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16v320z"}})])},Wo=[],jo={},Xo=(0,a.Z)(jo,Uo,Wo,!1,null,null,null);const qo=Xo.exports;var Ko=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M0 96c0-35.3 28.7-64 64-64h320c35.3 0 64 28.7 64 64v320c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"}})])},Yo=[],Jo={},Qo=(0,a.Z)(Jo,Ko,Yo,!1,null,null,null);const es=Qo.exports;var ts=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M488 344H79.24l74.29-79.63c9.07-9.67 8.57-24.87-1.13-33.87-9.7-9.1-24.9-8.6-33.9 1.1l-112 120c-8.625 9.219-8.625 23.53 0 32.75l112 120c4.7 5.05 11.1 7.65 17.5 7.65 5.875 0 11.75-2.125 16.38-6.469 9.688-9.031 10.22-24.22 1.156-33.91L79.24 392H488c13.25 0 24-10.75 24-24s-10.7-24-24-24zM24 168h408.8l-74.29 79.63c-9.062 9.688-8.531 24.88 1.156 33.91 9.656 9.094 24.88 8.562 33.91-1.156l112-120c8.625-9.219 8.625-23.53 0-32.75l-112-120C388.8 2.562 382.4 0 376 0c-5.875 0-11.75 2.125-16.38 6.469-9.688 9.031-10.22 24.22-1.156 33.91L432.8 120H24c-13.25 0-24 10.8-24 24s10.75 24 24 24z"}})])},ns=[],os={},ss=(0,a.Z)(os,ts,ns,!1,null,null,null);const as=ss.exports;var is=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M424 392H23.1C10.8 392 0 402.8 0 415.1 0 429.2 10.8 440 23.1 440H424c13.2 0 24-10.8 24-23.1 0-14.1-10.8-24.9-24-24.9zm0-320H23.1C10.8 72 0 82.8 0 95.1S10.8 120 23.1 120H424c13.2 0 24-10.8 24-23.1S437.2 72 424 72zm0 160H23.1C10.8 232 0 242.8 0 256s10.8 24 23.1 24H424c13.2 0 24-10.8 24-24s-10.8-24-24-24z"}})])},rs=[],ls={},cs=(0,a.Z)(ls,is,rs,!1,null,null,null);const us=cs.exports;var ds=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M0 96c0-17.7 14.3-32 32-32h384c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32h384c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zm448 160c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h384c17.7 0 32 14.3 32 32z"}})])},ps=[],hs={},gs=(0,a.Z)(hs,ds,ps,!1,null,null,null);const ms=gs.exports;var vs=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M439.8 145.4l-45.43-80.76C383 44.47 361.7 32 338.6 32H109.4c-23.12 0-44.45 12.47-55.78 32.62L8.219 145.4C2.83 154.1 0 165.8 0 176.8V416c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V176.8c0-11-2.8-22.7-8.2-31.4zm-87.3-57.25l39.67 70.52h-145.2V80h91.55c5.78 0 11.18 3.13 13.98 8.15zm-257.02 0C98.31 83.13 103.7 80 109.4 80h89.59v78.67H55.82l39.66-70.52zM384 432H64c-8.822 0-16-7.178-16-16V206.7h352V416c0 8.8-7.2 16-16 16z"}})])},fs=[],ys={},bs=(0,a.Z)(ys,vs,fs,!1,null,null,null);const _s=bs.exports;var Is=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M169.5 119.6c-9-9.7-24.2-10.2-33.9-1.1l-128 120C2.75 243 0 249.4 0 256s2.75 12.1 7.594 17.5l128 120c4.606 4.3 10.506 6.5 15.506 6.5 6.406 0 12.79-2.531 17.51-7.594 9.062-9.656 8.594-24.84-1.094-33.91L59.09 256l109.3-102.5c9.71-9.1 10.21-24.2 1.11-33.9zM390.4.875c-12.81-3.531-25.97 3.969-29.5 16.75l-128 464c-3.531 12.78 3.969 26 16.75 29.5 2.15.575 4.25.875 6.35.875 10.53 0 20.19-6.969 23.12-17.62l128-464C410.7 17.59 403.2 4.375 390.4.875zm242 237.625l-128-120c-9.656-9.062-24.88-8.594-33.91 1.094-9.062 9.656-8.594 24.84 1.094 33.91L580.9 256 471.6 358.5c-9.688 9.062-10.16 24.25-1.094 33.91C475.2 397.5 481.6 400 488 400c5.875 0 11.77-2.156 16.4-6.5l128-120c4.9-5.4 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5z"}})])},ws=[],xs={},Ss=(0,a.Z)(xs,Is,ws,!1,null,null,null);const Cs=Ss.exports;var ks=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M480 32l-64 368-223.3 80L0 400l19.6-94.8h82l-8 40.6L210 390.2l134.1-44.4 18.8-97.1H29.5l16-82h333.7l10.5-52.7H56.3l16.3-82H480z"}})])},Ps=[],Zs={},Ds=(0,a.Z)(Zs,ks,Ps,!1,null,null,null);const Es=Ds.exports;var Ts=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M0 32l34.9 395.8L192 480l157.1-52.2L384 32H0zm313.1 80l-4.8 47.3L193 208.6l-.3.1h111.5l-12.8 146.6-98.2 28.7-98.8-29.2-6.4-73.9h48.9l3.2 38.3 52.6 13.3 54.7-15.4 3.7-61.6-166.3-.5v-.1l-.2.1-3.6-46.3L193.1 162l6.5-2.7H76.7L70.9 112h242.2z"}})])},As=[],Ms={},Vs=(0,a.Z)(Ms,Ts,As,!1,null,null,null);const Bs=Vs.exports;var Os=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M431.9 116.1L239.9 4.2C235 1.438 229.5 0 224 0s-11 1.438-15.9 4.25l-192 111.9C6.125 121.1 0 132.7 0 144.5v223c0 11.75 6.125 22.48 16.12 28.36l192 111.9C213 510.6 218.5 512 224 512s11-1.438 15.88-4.25l192-111.9C441.9 390 448 379.3 448 367.5v-223c0-11.8-6.1-23.4-16.1-28.4zM224 50.6l152.4 88.76L224 228.2 71.63 139.4 224 50.6zM48 181.1l152 88.64v177.6L48 358.9V181.1zm200 266.3V269.8l152-88.64v177.8L248 447.4z"}})])},Ls=[],$s={},zs=(0,a.Z)($s,Os,Ls,!1,null,null,null);const Ns=zs.exports;var Hs=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M0 32l34.9 395.8L191.5 480l157.6-52.2L384 32H0zm308.2 127.9H124.4l4.1 49.4h175.6l-13.6 148.4-97.9 27v.3h-1.1l-98.7-27.3-6-75.8h47.7L138 320l53.5 14.5 53.7-14.5 6-62.2H84.3L71.5 112.2h241.1l-4.4 47.7z"}})])},Rs=[],Gs={},Fs=(0,a.Z)(Gs,Hs,Rs,!1,null,null,null);const Us=Fs.exports;var Ws=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M216 120h272c13.3 0 24-10.7 24-24 0-13.26-10.75-24-24-24H216c-13.3 0-24 10.74-24 24 0 13.3 10.7 24 24 24zM48.06 384C30.4 384 16 398.3 16 416c0 17.67 14.4 32 32.06 32S80 433.7 80 416s-14.27-32-31.94-32zM488 232H216c-13.3 0-24 10.7-24 24 0 13.25 10.75 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24zm0 160H184c-13.3 0-24 10.7-24 24 0 13.25 10.75 24 24 24h304c13.25 0 24-10.75 24-24 0-13.3-10.7-24-24-24zM118.2 39.94L63.09 101.1 40.97 78.99c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l40 40c4.5 4.57 10.63 7.07 16.07 7.07.219 0 .406 0 .625-.016a24.006 24.006 0 0017.22-7.922l72-80c8.875-9.859 8.062-25.03-1.78-33.91C142.2 29.31 127.1 30.09 118.2 39.94zm0 159.96l-55.11 61.2-22.12-22.11c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l40 40c4.5 4.57 10.63 7.07 16.07 7.07.219 0 .406 0 .625-.016a24.006 24.006 0 0017.22-7.922l72-80c8.875-9.859 8.062-25.03-1.78-33.91C142.2 189.3 127.1 190.1 118.2 199.9z"}})])},js=[],Xs={},qs=(0,a.Z)(Xs,Ws,js,!1,null,null,null);const Ks=qs.exports;var Ys=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M448 56v80c0 13.3-10.7 24-24 24s-24-10.7-24-24V80H248v352h48c13.25 0 24 10.75 24 24s-10.7 24-24 24H152c-13.2 0-24-10.7-24-24s10.75-24 24-24h48V80H48v56c0 13.3-10.75 24-24 24S0 149.3 0 136V56c0-13.25 10.75-24 24-24h400c13.3 0 24 10.75 24 24z"}})])},Js=[],Qs={},ea=(0,a.Z)(Qs,Ys,Js,!1,null,null,null);const ta=ea.exports;var na=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M432.6 209.3L241.5 392.4c-6.4 5.4-12.4 7.6-17.5 7.6s-11.97-2.219-16.59-6.688L15.41 209.3c-9.596-9.1-9.908-25.2-.72-33.9 9.125-9.625 24.38-9.938 33.91-.719L224 342.8l175.4-168c9.5-9.219 24.78-8.906 33.91.719 9.19 8.581 8.89 24.681-.71 33.781z"}})])},oa=[],sa={},aa=(0,a.Z)(sa,na,oa,!1,null,null,null);const ia=aa.exports;var ra=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"}})])},la=[],ca={},ua=(0,a.Z)(ca,ra,la,!1,null,null,null);const da=ua.exports;var pa=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M206.7 464.6L23.6 273.5c-5.38-6.4-7.6-12.4-7.6-17.5s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.719 9.625 9.125 9.938 24.37.719 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.719 33.91-9.521 9.19-24.721 8.89-33.821-.71z"}})])},ha=[],ga={},ma=(0,a.Z)(ga,pa,ha,!1,null,null,null);const va=ma.exports;var fa=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9.719-9.625-9.125-9.938-24.38-.719-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78.719-33.91 9.561-9.19 24.771-8.87 33.871.72z"}})])},ya=[],ba={},_a=(0,a.Z)(ba,fa,ya,!1,null,null,null);const Ia=_a.exports;var wa=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M96 352H32c-17.62 0-32 14.38-32 32v64c0 17.62 14.38 32 32 32h64c17.62 0 32-14.38 32-32v-64c0-17.6-14.4-32-32-32zm-16 80H48v-32h32v32zm208-80h-64c-17.62 0-32 14.38-32 32v64c0 17.62 14.38 32 32 32h64c17.62 0 32-14.38 32-32v-64c0-17.6-14.4-32-32-32zm-16 80h-32v-32h32v32zm16-400h-64c-17.62 0-32 14.38-32 32v64c0 17.62 14.38 32 32 32h64c17.62 0 32-14.38 32-32V64c0-17.62-14.4-32-32-32zm-16 80h-32V80h32v32zm16 80h-64c-17.62 0-32 14.38-32 32v64c0 17.62 14.38 32 32 32h64c17.62 0 32-14.38 32-32v-64c0-17.6-14.4-32-32-32zm-16 80h-32v-32h32v32zM96 192H32c-17.62 0-32 14.38-32 32v64c0 17.62 14.38 32 32 32h64c17.62 0 32-14.38 32-32v-64c0-17.6-14.4-32-32-32zm-16 80H48v-32h32v32zM96 32H32C14.38 32 0 46.38 0 64v64c0 17.62 14.38 32 32 32h64c17.62 0 32-14.38 32-32V64c0-17.62-14.4-32-32-32zm-16 80H48V80h32v32z"}})])},xa=[],Sa={},Ca=(0,a.Z)(Sa,wa,xa,!1,null,null,null);const ka=Ca.exports;var Pa=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M40 352h48c22.1 0 40 17.9 40 40v48c0 22.1-17.9 40-40 40H40c-22.1 0-40-17.9-40-40v-48c0-22.1 17.9-40 40-40zm192 0h48c22.1 0 40 17.9 40 40v48c0 22.1-17.9 40-40 40h-48c-22.1 0-40-17.9-40-40v-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40v-48c0-22.1 17.9-40 40-40h48c22.1 0 40 17.9 40 40v48c0 22.1-17.9 40-40 40H40zm192-128h48c22.1 0 40 17.9 40 40v48c0 22.1-17.9 40-40 40h-48c-22.1 0-40-17.9-40-40v-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40V72c0-22.1 17.9-40 40-40h48c22.1 0 40 17.9 40 40v48c0 22.1-17.9 40-40 40H40zM232 32h48c22.1 0 40 17.9 40 40v48c0 22.1-17.9 40-40 40h-48c-22.1 0-40-17.9-40-40V72c0-22.1 17.9-40 40-40z"}})])},Za=[],Da={},Ea=(0,a.Z)(Da,Pa,Za,!1,null,null,null);const Ta=Ea.exports;var Aa=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M424 168H23.1C9.9 168 0 178.8 0 191.1 0 205.2 10.8 216 23.1 216H424c13.2 0 24-10.8 24-23.1 0-14.1-10.8-24.9-24-24.9zm0 128H23.1C9.9 296 0 306.8 0 319.1S10.8 344 23.1 344H424c13.2 0 24-10.8 24-23.1S437.2 296 424 296z"}})])},Ma=[],Va={},Ba=(0,a.Z)(Va,Aa,Ma,!1,null,null,null);const Oa=Ba.exports;var La=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512"}},e.$listeners),[t("path",{attrs:{d:"M48 144a48 48 0 100-96 48 48 0 100 96zm0 160a48 48 0 100-96 48 48 0 100 96zm48 112a48 48 0 10-96 0 48 48 0 1096 0zm112-272a48 48 0 100-96 48 48 0 100 96zm48 112a48 48 0 10-96 0 48 48 0 1096 0zm-48 208a48 48 0 100-96 48 48 0 100 96z"}})])},$a=[],za={},Na=(0,a.Z)(za,La,$a,!1,null,null,null);const Ha=Na.exports;var Ra=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.006 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6c0-16.9-6.7-33.2-18.7-45.22zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160V128c0 17.67 14.33 32 32 32h79.1v288zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c17.77 0 34.21-5.16 48.48-13.58l46.55 46.55C275.7 437.7 281.8 440 288 440s12.28-2.344 16.97-7.031c9.375-9.375 9.375-24.56 0-33.94l-46.55-46.55C266.8 338.2 272 321.8 272 304c0-53.9-43-96-96-96zm0 144c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"}})])},Ga=[],Fa={},Ua=(0,a.Z)(Fa,Ra,Ga,!1,null,null,null);const Wa=Ua.exports;var ja=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M137.3 434.7a15.803 15.803 0 01-11.17 4.623h-53.5v-53.46c0-4.248 1.625-8.244 4.748-11.24l141.2-141.2L184.6 199.5 43.4 340.7a63.926 63.926 0 00-18.72 45.21v45.47L3.92 467.71C-2.723 479.3-.77 493.9 8.672 503.3c9.441 9.439 24.03 11.39 35.62 4.771l36.33-20.76h45.47c16.96 0 33.22-6.736 45.21-18.73l141.2-141.2-33.87-33.87L137.3 434.7zM483.9 28.12c-37.48-37.47-98.25-37.47-135.7 0L237.3 139.1l-12.1-12.2c-9.369-9.369-24.55-9.369-33.92 0s-9.369 24.54 0 33.91l159.9 159.9c4.684 4.686 10.8 7.027 16.96 7.027s12.27-2.342 16.96-7.027c9.369-9.369 9.369-24.55 0-33.91l-12.2-12.1 110.9-110.9c37.6-37.4 37.6-98.2.1-135.68z"}})])},Xa=[],qa={},Ka=(0,a.Z)(qa,ja,Xa,!1,null,null,null);const Ya=Ka.exports;var Ja=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M504.1 367c9.375 9.375 9.375 24.56 0 33.94l-80 80c-3.8 4.76-9.9 7.06-16.1 7.06s-12.28-2.344-16.97-7.031c-9.375-9.375-9.375-24.56 0-33.94L430.1 408H320a23.985 23.985 0 01-16.97-7.031L182.1 280H24c-13.25 0-24-10.7-24-24s10.75-24 24-24h158.1l120.1-120.1c5.3-5.4 11.4-7.9 17.8-7.9h110.1l-39.03-39.03c-9.375-9.375-9.375-24.56 0-33.94s24.56-9.375 33.94 0l80 80c9.375 9.375 9.375 24.56 0 33.94l-80 80C420.3 229.7 414.2 232 408 232s-12.28-2.344-16.97-7.031c-9.375-9.375-9.375-24.56 0-33.94L430.1 152H330L226 256l104 104h100.1l-39.03-39.03c-9.375-9.375-9.375-24.56 0-33.94s24.56-9.375 33.94 0L504.1 367z"}})])},Qa=[],ei={},ti=(0,a.Z)(ei,Ja,Qa,!1,null,null,null);const ni=ti.exports;var oi=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M403.8 34.4c12-5 25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9S384 204.8 384 191.8V160h-37.5c-8.5 0-16.6 3.4-22.6 9.4L237.3 256l86.6 86.6c6 6 14.1 9.4 22.6 9.4H384v-32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9S384 460.8 384 447.8V416h-37.5c-25.5 0-49.9-10.1-67.9-28.1L178.7 288H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h146.7l99.9-99.9c18-18 42.4-28.1 67.9-28.1H384V64c0-12.9 7.8-24.6 19.8-29.6z"}})])},si=[],ai={},ii=(0,a.Z)(ai,oi,si,!1,null,null,null);const ri=ii.exports;var li=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M224 0C100.3 0 0 35.82 0 80v352c0 44.18 100.3 80 224 80s224-35.82 224-80V80c0-44.18-100.3-80-224-80zm0 464c-98.68 0-161.4-23.79-176-37.8v-72.81C89.01 372 152.5 384 223.1 384s135-12 176.9-30.6v72.81C385.4 440.2 322.7 464 224 464zm176-165.8c-14.6 14-77.3 37.8-176 37.8S62.61 312.2 48 298.2v-72.8C89.01 244 152.5 256 224 256s134.1-12 176-30.62v72.82zm0-128c-14.6 14-77.3 37.8-176.9 37.8S62.61 184.2 48 170.2V85.81C62.61 71.79 125.3 48 224 48s161.4 23.79 176 37.8v84.4z"}})])},ci=[],ui={},di=(0,a.Z)(ui,li,ci,!1,null,null,null);const pi=di.exports;var hi=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M336.1 175c-9.375-9.375-24.56-9.375-33.94 0L256 222.1 208.1 175c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l47.03 47.03L175 303c-9.375 9.375-9.375 24.56 0 33.94 9.373 9.373 24.56 9.381 33.94 0L256 289.9l47.03 47.03c9.373 9.373 24.56 9.381 33.94 0 9.375-9.375 9.375-24.56 0-33.94l-47.03-47.03 47.03-47.03c9.33-9.33 9.33-24.53-.87-33.93zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208-93.3 208-208 208z"}})])},gi=[],mi={},vi=(0,a.Z)(mi,hi,gi,!1,null,null,null);const fi=vi.exports;var yi=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M572.6 270.3l-96 192c-5.4 10.9-16.5 17.7-29.5 17.7H64c-35.35 0-64-28.66-64-64V96c0-35.34 28.65-64 64-64h117.5c16.97 0 33.25 6.742 45.26 18.75L275.9 96H416c35.35 0 64 28.66 64 64v32h-48v-32c0-8.824-7.178-16-16-16H256l-63.2-59.31c-3-3.03-7-4.69-11.3-4.69H64c-8.82 0-16 7.18-16 16v288l71.16-142.3A31.976 31.976 0 01147.8 224H544c23.7 0 39.2 25 28.6 46.3z"}})])},bi=[],_i={},Ii=(0,a.Z)(_i,yi,bi,!1,null,null,null);const wi=Ii.exports;var xi=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M88.7 223.8L0 375.8V96c0-35.3 28.7-64 64-64h117.5c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 28.3 18.7 45.3 18.7H416c35.3 0 64 28.7 64 64v32H144c-22.8 0-43.8 12.1-55.3 31.8zm27.6 16.1c5.8-9.9 16.3-15.9 27.7-15.9h400c11.5 0 22 6.1 27.7 16.1s5.7 22.2-.1 32.1l-112 192C453.9 474 443.4 480 432 480H32c-11.5 0-22-6.1-27.7-16.1s-5.7-22.2.1-32.1l112-192z"}})])},Si=[],Ci={},ki=(0,a.Z)(Ci,xi,Si,!1,null,null,null);const Pi=ki.exports;var Zi=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.66 0 0 28.65 0 64l.006 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6c0-16.9-6.7-33.2-18.7-45.22zM336 448c0 8.836-7.164 16-16 16H64.02c-8.836 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160V128c0 17.67 14.33 32 32 32h80v288zM216 223.1c0-12.4-10.7-23.1-24-23.1s-24 10.7-24 23.1V280h-56c-13.26 0-24 10.74-24 23.1 0 13.26 10.73 23.1 24 23.1h56v56c0 15.1 10.7 25.8 24 25.8 13.26 0 24-10.74 24-23.1v-57.8h56c13.26 0 24-10.74 24-23.1s-10.74-23.1-24-23.1h-56v-57.8z"}})])},Di=[],Ei={},Ti=(0,a.Z)(Ei,Zi,Di,!1,null,null,null);const Ai=Ti.exports;var Mi=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M224 256c-35.2 0-64 28.8-64 64s28.8 64 64 64 64-28.8 64-64-28.8-64-64-64zm209.1-126.9l-83.9-83.9c-8.1-8.14-20.4-13.2-33.1-13.2H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V163.9c0-12.7-5.1-25-14.9-34.8zM128 80h144v80H128V80zm272 336c0 8.836-7.164 16-16 16H64c-8.836 0-16-7.164-16-16V96c0-8.838 7.164-16 16-16h16v104c0 13.25 10.75 24 24 24h192c13.3 0 24-10.7 24-24V83.88l78.25 78.25c1.15 1.07 1.75 2.67 1.75 4.17V416z"}})])},Vi=[],Bi={},Oi=(0,a.Z)(Bi,Mi,Vi,!1,null,null,null);const Li=Oi.exports;var $i=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M448.1 32h-384C28.75 32 .1 60.65.1 96v320c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V96c0-35.35-28.7-64-64-64zM232.2 432h-168c-8.837 0-16-7.163-16-16V144h184v288zm232-16c0 8.837-7.163 16-16 16h-168V144h184v272z"}})])},zi=[],Ni={},Hi=(0,a.Z)(Ni,$i,zi,!1,null,null,null);const Ri=Hi.exports;var Gi=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.7-64-64-64zm16 384c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V96c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16v320zm-95.9-241c-9.375-9.375-24.56-9.375-33.94 0L224 222.1 176.1 175c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l47.03 47.03L143 303c-9.375 9.375-9.375 24.56 0 33.94 9.373 9.373 24.56 9.381 33.94 0L224 289.9l47.03 47.03c9.373 9.373 24.56 9.381 33.94 0 9.375-9.375 9.375-24.56 0-33.94l-47.03-47.03 47.03-47.03c9.33-9.33 9.33-24.53-.87-33.93z"}})])},Fi=[],Ui={},Wi=(0,a.Z)(Ui,Gi,Fi,!1,null,null,null);const ji=Wi.exports;var Xi=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M392 320c-13.25 0-24 10.75-24 24v112c0 4.406-3.594 8-8 8H56c-4.406 0-8-3.594-8-8V152c0-4.406 3.594-8 8-8h112c13.3 0 24-10.7 24-24s-10.7-24-24-24H56c-30.87 0-56 25.1-56 56v304c0 30.9 25.13 56 56 56h304c30.88 0 56-25.12 56-56V344c0-13.2-10.7-24-24-24zM488 0H320c-13.25 0-24 10.75-24 24s10.8 24 24 24h110.1L183 295c-9.375 9.375-9.375 24.56 0 33.94 4.7 4.76 10.8 7.06 17 7.06s12.28-2.344 16.97-7.031L464 81.94V192c0 13.25 10.75 24 24 24s24-10.7 24-24V24c0-13.25-10.7-24-24-24z"}})])},qi=[],Ki={},Yi=(0,a.Z)(Ki,Xi,qi,!1,null,null,null);const Ji=Yi.exports;var Qi=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M24 80.03h336c13.25 0 24-10.76 24-24.02S373.3 32 360 32H24C10.75 32 0 42.76 0 56.02s10.75 24.01 24 24.01zM81.47 304.2L168 212.1v243.8c0 13.3 10.8 24.1 24 24.1s24-10.77 24-24.04V212.1l86.53 92.05c4.77 5.05 11.07 7.55 17.47 7.55 5.906 0 11.81-2.16 16.44-6.541 9.656-9.076 10.12-24.29 1.031-33.96l-128-136.2c-9.062-9.702-25.88-9.702-34.94 0L46.53 271.2c-9.09 9.7-8.62 24.9 1.03 34 9.63 9.1 24.82 8.7 33.91-1z"}})])},er=[],tr={},nr=(0,a.Z)(tr,Qi,er,!1,null,null,null);const or=nr.exports;var sr=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M360 431.1H24c-13.25 0-24 10.76-24 24.02C0 469.2 10.75 480 24 480h336c13.25 0 24-10.76 24-24.02 0-13.28-10.7-24.88-24-24.88zm-57.5-223.4l-86.5 92V56.1c0-13.34-10.7-24.1-24-24.1s-24 10.76-24 24.02v243.6L81.47 207.7c-4.72-5.1-11.09-7.6-17.47-7.6-5.906 0-11.81 2.158-16.44 6.536-9.656 9.069-10.12 24.27-1.031 33.93l128 136.1c9.062 9.694 25.88 9.694 34.94 0l128-136.1c9.094-9.663 8.625-24.86-1.031-33.93C326.8 197.5 311.6 197.1 302.5 207.7z"}})])},ar=[],ir={},rr=(0,a.Z)(ir,sr,ar,!1,null,null,null);const lr=rr.exports;var cr=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M481.2 33.81c-8.938-3.656-19.31-1.656-26.16 5.219l-50.51 50.51C364.3 53.81 312.1 32 256 32 157 32 68.53 98.31 40.91 193.3c-3.72 12.7 3.59 26 16.31 29.7 12.81 3.781 26.06-3.625 29.75-16.31C108.7 132.1 178.2 80 256 80c43.12 0 83.35 16.42 114.7 43.4l-59.63 59.63c-6.875 6.875-8.906 17.19-5.219 26.16a24.008 24.008 0 0022.19 14.81h143.9C485.2 223.1 496 213.3 496 200V56c0-9.72-5.8-18.47-14.8-22.19zM454.7 288.1c-12.78-3.75-26.06 3.594-29.75 16.31C403.3 379.9 333.8 432 255.1 432c-43.12 0-83.38-16.42-114.7-43.41l59.62-59.62c6.875-6.875 8.891-17.03 5.203-26C202.4 294 193.7 288 183.1 288H40.05c-13.25 0-24.11 10.74-24.11 23.99v144c0 9.719 5.844 18.47 14.81 22.19 2.97 1.22 6.09 1.82 9.19 1.82 6.25 0 12.38-2.438 16.97-7.031l50.51-50.52C147.6 458.2 199.9 480 255.1 480c99 0 187.4-66.31 215.1-161.3 4.6-13.6-2.8-26-15.5-30.6z"}})])},ur=[],dr={},pr=(0,a.Z)(dr,cr,ur,!1,null,null,null);const hr=pr.exports;var gr=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4 142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 11288 0 144 144 0 11-288 0zm144-64c0 35.3-28.7 64-64 64-7.1 0-13.9-1.2-20.3-3.3-5.5-1.8-11.9 1.6-11.7 7.4.3 6.9 1.3 13.8 3.2 20.7 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3z"}})])},mr=[],vr={},fr=(0,a.Z)(vr,gr,mr,!1,null,null,null);const yr=fr.exports;var br=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-105.2-82.4c39.6-40.6 66.4-86.1 79.9-118.4 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm184.3 144.4c25.5-23.3 59.6-37.5 96.9-37.5 79.5 0 144 64.5 144 144 0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3 0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1-79.5 0-144-64.5-144-144 0-6.9.5-13.6 1.4-20.2l-94.3-74.3c-22.8 29.7-39.1 59.3-48.6 82.2-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47 43.8 111.7 80.6 192.5 80.6 47.8 0 89.9-12.9 126.2-32.5L373 389.9z"}})])},_r=[],Ir={},wr=(0,a.Z)(Ir,br,_r,!1,null,null,null);const xr=wr.exports;var Sr=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M572.5 238.1C518.3 115.5 410.9 32 288 32S57.69 115.6 3.469 238.1C1.563 243.4 0 251 0 256c0 4.977 1.562 12.6 3.469 17.03C57.72 396.5 165.1 480 288 480s230.3-83.58 284.5-206.1c1.9-5.3 3.5-13.8 3.5-17.9 0-5-1.6-12.6-3.5-17.9zM288 432c-99.48 0-191.2-67.5-239.6-175.1C97.01 147.4 188.6 80 288 80c99.48 0 191.2 67.5 239.6 175.1C478.1 364.6 387.4 432 288 432zm0-304c-70.7 0-128 57.3-128 128s57.33 128 128 128c70.64 0 128-57.32 128-127.9 0-70.7-57.3-128.1-128-128.1zm0 208c-44.11 0-80-35.89-80-80 0-.748.2-1.441.22-2.184C213.3 255.1 218.5 256 224 256c35.35 0 64-28.65 64-64 0-5.48-.875-10.72-2.184-15.78.784-.02 1.484-.22 2.184-.22 44.11 0 80 35.89 80 80.05 0 44.05-35.9 79.95-80 79.95z"}})])},Cr=[],kr={},Pr=(0,a.Z)(kr,Sr,Cr,!1,null,null,null);const Zr=Pr.exports;var Dr=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M630.8 469.1l-103.5-81.11c31.35-31.94 57.79-70.78 77.21-114.1 1.906-4.43 3.469-12.07 3.469-17.03 0-4.977-1.562-12.6-3.469-17.03-54.25-123.4-161.6-206.1-284.5-206.1-62.67 0-121.2 21.95-170.8 59.62L38.81 5.116C34.41 1.679 29.19 0 24.03 0 16.91 0 9.839 3.158 5.121 9.189c-8.188 10.44-6.37 25.53 4.068 33.7l591.1 463.1c10.5 8.203 25.57 6.333 33.69-4.073C643.1 492.4 641.2 477.3 630.8 469.1zM394.4 283.8l-81.65-63.1c3.35-9.4 6.35-18.5 6.35-28.7 0-5.48-.874-10.73-2.183-15.78 1.683-.02 2.383-.22 3.083-.22 44.11 0 80 35.89 80 80.05 0 9.85-2.3 19.05-5.6 27.75zm38.8 30.4c9.2-17.4 14.8-37 14.8-58.1 0-70.7-57.3-128.1-128-128.1-32.2 0-61.3 12.2-83.7 31.9l-48-37.6C228 95.03 273.1 80 320 80c99.48 0 191.2 67.5 239.6 175.1-18.06 40.38-42.41 74.43-70.61 101.9l-55.79-42.8zM320 384c13.42 0 26.16-2.643 38.31-6.477L302.8 334c-23.7-5.2-43.3-21.1-54-42.3l-56-43.9c-.2 2.8-.8 5.4-.8 8.2 0 70.7 57.3 128 128 128zm0 48c-99.48 0-191.2-67.5-239.6-175.1 10.83-24.22 24.09-46.03 38.81-65.86L81.28 160.4c-17.77 23.74-33.27 50.04-45.81 78.59C33.56 243.4 31.1 251 31.1 256c0 4.977 1.562 12.6 3.469 17.03 54.25 123.4 161.6 206.1 284.5 206.1 45.46 0 88.77-11.49 128.1-32.14l-42.87-33.59C378 425.4 349.5 432 320 432z"}})])},Er=[],Tr={},Ar=(0,a.Z)(Tr,Dr,Er,!1,null,null,null);const Mr=Ar.exports;var Vr=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M400 256c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zm-288 0c0-26.5-21.5-48-48-48s-48 21.5-48 48 21.5 48 48 48 48-21.5 48-48zm192 0c0-26.5-21.5-48-48-48s-48 21.5-48 48 21.5 48 48 48 48-21.5 48-48z"}})])},Br=[],Or={},Lr=(0,a.Z)(Or,Vr,Br,!1,null,null,null);const $r=Lr.exports;var zr=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M8 256a56 56 0 11112 0 56 56 0 11-112 0zm160 0a56 56 0 11112 0 56 56 0 11-112 0zm216-56a56 56 0 110 112 56 56 0 110-112z"}})])},Nr=[],Hr={},Rr=(0,a.Z)(Hr,zr,Nr,!1,null,null,null);const Gr=Rr.exports;var Fr=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 512"}},e.$listeners),[t("path",{attrs:{d:"M64 360a56 56 0 100 112 56 56 0 100-112zm0-160a56 56 0 100 112 56 56 0 100-112zm56-104A56 56 0 108 96a56 56 0 10112 0z"}})])},Ur=[],Wr={},jr=(0,a.Z)(Wr,Fr,Ur,!1,null,null,null);const Xr=jr.exports;var qr=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 512"}},e.$listeners),[t("path",{attrs:{d:"M64 112c26.5 0 48-21.5 48-48S90.5 16 64 16 16 37.5 16 64s21.5 48 48 48zm0 288c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0-192c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"}})])},Kr=[],Yr={},Jr=(0,a.Z)(Yr,qr,Kr,!1,null,null,null);const Qr=Jr.exports;var el=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 512"}},e.$listeners),[t("path",{attrs:{d:"M176 256c0-44.18-35.82-80-80-80s-80 35.8-80 80c0 44.18 35.82 80 80 80s80-35.8 80-80zm-112 0c0-17.64 14.36-32 32-32s32 14.36 32 32-14.36 32-32 32-32-14.4-32-32zm112 176c0-44.18-35.82-80-80-80s-80 35.82-80 80 35.82 80 80 80 80-35.8 80-80zm-112 0c0-17.64 14.36-32 32-32s32 14.36 32 32-14.36 32-32 32-32-14.4-32-32zM176 80c0-44.18-35.8-80-80-80S16 35.82 16 80c0 44.2 35.82 80 80 80s80-35.8 80-80zM64 80c0-17.64 14.36-32 32-32s32 14.36 32 32-14.36 32-32 32-32-14.36-32-32z"}})])},tl=[],nl={},ol=(0,a.Z)(nl,el,tl,!1,null,null,null);const sl=ol.exports;var al=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M256 176c-44.2 0-80 35.8-80 80s35.82 80 80 80 80-35.82 80-80-35.8-80-80-80zm0 112c-17.6 0-32-14.4-32-32s14.36-32 32-32 32 14.36 32 32-14.4 32-32 32zm176-112c-44.2 0-80 35.8-80 80s35.82 80 80 80 80-35.82 80-80-35.8-80-80-80zm0 112c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.4 32-32 32zM80 176c-44.18 0-80 35.8-80 80s35.82 80 80 80c44.2 0 80-35.8 80-80s-35.8-80-80-80zm0 112c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"}})])},il=[],rl={},ll=(0,a.Z)(rl,al,il,!1,null,null,null);const cl=ll.exports;var ul=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M200 32h-80c-30.93 0-56 25.07-56 56v77.5a39.84 39.84 0 01-11.67 28.17L7 239c-4.5 4.5-7 10.6-7 17 0 6.375 2.5 12.5 7 17l45.33 45.33A39.783 39.783 0 0164 346.5V424c0 30.9 25.07 56 56 56h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-80c-4.4 0-8-3.6-8-8v-77.5c0-23.44-9.337-45.91-25.95-62.45L57.88 256l28.18-28.05C102.7 211.4 112 188.9 112 165.5V88c0-4.4 3.6-8 8-8h80c13.3 0 24-10.75 24-24s-10.7-24-24-24zm369 207l-45.33-45.33A39.783 39.783 0 01512 165.5V88c0-30.93-25.1-56-56-56h-80c-13.3 0-24 10.75-24 23.1S362.7 80 375.1 80H456c4.4 0 8 3.6 8 8v77.5c0 23.37 9.284 45.78 25.81 62.31L517.1 256l-28.19 28.19C473.3 300.7 464 323.1 464 346.5V424c0 4.4-3.6 8-8 8h-80c-13.3 0-24 10.7-24 23.1s10.7 24.9 23.1 24.9H456c30.93 0 56-25.07 56-56v-77.5a39.84 39.84 0 0111.67-28.17L569 273c4.5-4.5 7-10.6 7-17s-2.5-12.5-7-17z"}})])},dl=[],pl={},hl=(0,a.Z)(pl,ul,dl,!1,null,null,null);const gl=hl.exports;var ml=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M416 32h-32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32c17.7 0 32 14.3 32 32v37.5c0 25.5 10.1 49.9 28.1 67.9l22.6 22.6-22.6 22.6c-18 18-28.1 42.4-28.1 67.9V384c0 17.7-14.3 32-32 32h-32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32c53 0 96-43 96-96v-37.5c0-8.5 3.4-16.6 9.4-22.6l45.3-45.3c12.5-12.5 12.5-32.8 0-45.3L521.4 188c-6-6-9.4-14.1-9.4-22.6V128c0-53-43-96-96-96zm-256 0c-53 0-96 43-96 96v37.5c0 8.5-3.4 16.6-9.4 22.6L9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3L54.7 324c6 6 9.4 14.1 9.4 22.6V384c0 53 43 96 96 96h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H160c-17.7 0-32-14.3-32-32v-37.5c0-25.5-10.1-49.9-28.1-67.9L77.3 256l22.6-22.6c18-18 28.1-42.4 28.1-67.9V128c0-17.7 14.3-32 32-32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32h-32z"}})])},vl=[],fl={},yl=(0,a.Z)(fl,ml,vl,!1,null,null,null);const bl=yl.exports;var _l=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M175 223l-80 80c-9.375 9.375-9.375 24.56 0 33.94s24.56 9.375 33.94 0L168 297.9V400c0 13.25 10.75 24 24 24s24-10.75 24-24V297.9l39.03 39.03C259.7 341.7 265.8 344 272 344s12.28-2.344 16.97-7.031c9.375-9.375 9.375-24.56 0-33.94l-80-80C199.6 213.7 184.4 213.7 175 223zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.006 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6c0-16.9-6.7-33.2-18.7-45.22zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160V128c0 17.67 14.33 32 32 32h79.1v288z"}})])},Il=[],wl={},xl=(0,a.Z)(wl,_l,Il,!1,null,null,null);const Sl=xl.exports;var Cl=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M216 342.1V240c0-13.25-10.75-24-24-24s-24 10.8-24 24v102.1L128.1 303c-3.8-4.7-9.9-7-16.1-7s-12.28 2.3-16.97 7c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.006 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6c0-16.9-6.7-33.2-18.7-45.22zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160V128c0 17.67 14.33 32 32 32h79.1v288z"}})])},kl=[],Pl={},Zl=(0,a.Z)(Pl,Cl,kl,!1,null,null,null);const Dl=Zl.exports;var El=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32v242.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64v-32c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 110 48 24 24 0 110-48z"}})])},Tl=[],Al={},Ml=(0,a.Z)(Al,El,Tl,!1,null,null,null);const Vl=Ml.exports;var Bl=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M108.9 76.87c-17.6 0-32 14.4-32 32 0 17.7 14.4 32 32 32 17.7 0 32-14.3 32-32 0-17.6-14.3-32-32-32zm0 294.23c-17.6 0-32 14.3-32 32 0 17.6 14.4 32 32 32 17.7 0 32-14.4 32-32 0-17.7-14.3-32-32-32zM256 432c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zM48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zM256 16c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm208 208c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-60.9 147.1c-17.7 0-32 14.3-32 32 0 17.6 14.3 32 32 32 17.6 0 32-14.4 32-32 0-17.7-14.4-32-32-32z"}})])},Ol=[],Ll={},$l=(0,a.Z)(Ll,Bl,Ol,!1,null,null,null);const zl=$l.exports;var Nl=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M208 288c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.164 16-16v-96c0-8.8-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16v96c0 8.836 7.162 16 15.1 16s16.9-7.2 16.9-16l-.001-96c-.899-8.8-7.199-16-15.999-16zm104.9-86.8c-13.74-17.12-34.8-27.45-56.92-27.45h-13.72c-3.713 0-7.412.291-11.07.865C282.7 165.1 267.4 160 251.4 160h-11.44V72c0-39.7-32.31-72-72.01-72S95.97 32.3 95.97 72v168.5c-11.12-5.4-20.78-5.1-26.14-5.1C25.48 235.4 0 272.63 0 305.25c0 14.99 4.821 29.51 13.99 41.69l78.14 104.2C120.7 489.3 166.2 512 213.7 512h109.7c6.309 0 12.83-.957 18.14-2.645 28.59-5.447 53.87-19.41 73.17-40.44C436.1 446.3 448 416.2 448 384.2V274.3c0-39.7-31.7-72-71.1-73.1zm23.1 183c0 19.62-7.219 38.06-20.44 52.06-12.53 13.66-29.03 22.67-49.69 26.56-2.47.78-4.57 1.18-6.47 1.18H213.7c-32.56 0-63.65-15.55-83.18-41.59L52.36 318.2c-2.84-3.8-4.34-8.4-4.34-13 0-16.32 14.5-21.75 21.72-21.75 4.454 0 12.01 1.55 17.34 8.703l28.12 37.5c3.093 4.105 7.865 6.419 12.8 6.419 11.94 0 16.01-10.7 16.01-16.01V72c0-13.23 10.78-24 23.1-24 13.22 0 24 10.77 24 24v130.7c0 6.938 5.451 16.01 16.03 16.01C219.5 218.7 220.1 208 237.7 208h13.72c21.5 0 18.56 19.21 34.7 19.21 8.063 0 9.805-5.487 20.15-5.487h13.72c26.96 0 17.37 27.43 40.77 27.43l14.07-.004c13.88 0 25.16 11.28 25.16 25.14V384.2zM336 288c-8.8 0-16 7.2-16 16v96c0 8.836 7.164 16 16 16s16-7.164 16-16v-96c0-8.8-7.2-16-16-16z"}})])},Hl=[],Rl={},Gl=(0,a.Z)(Rl,Nl,Hl,!1,null,null,null);const Fl=Gl.exports;var Ul=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M311.9 279.5L39.87 37.99C35.41 34.03 29.75 32 24.01 32c-3.34 0-6.7.69-9.89 2.11A24.01 24.01 0 000 56.02v370.3c0 10.12 6.281 19.18 15.72 22.67a23.906 23.906 0 0026.561-7.026l83.48-98.81 58.25 123.1c5.697 12.04 20.01 17.15 31.98 11.42 11.97-5.731 17.06-20.14 11.36-32.18l-58.58-123.8h127.2c9.984 0 18.92-6.209 22.45-15.61 2.679-9.384.979-19.984-6.521-26.584zm-190.2-6.1l-73.69 87.23V109.6l184.5 163.8H121.7z"}})])},Wl=[],jl={},Xl=(0,a.Z)(jl,Ul,Wl,!1,null,null,null);const ql=Xl.exports;var Kl=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M0 55.2V426c0 12.2 9.9 22 22 22 6.3 0 12.4-2.7 16.6-7.5l82.6-94.5 58.1 116.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9L179.8 320h118.1c12.2 0 22.1-9.9 22.1-22.1 0-6.3-2.7-12.3-7.4-16.5L38.6 37.9c-4.3-3.8-9.7-5.9-15.4-5.9C10.4 32 0 42.4 0 55.2z"}})])},Yl=[],Jl={},Ql=(0,a.Z)(Jl,Kl,Yl,!1,null,null,null);const ec=Ql.exports;var tc=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M504.1 471l-134-134c29-35.5 45-80.2 45-129 0-114.9-93.13-208-208-208S0 93.13 0 208s93.12 208 207.1 208c48.79 0 93.55-16.91 129-45.04l134 134c5.6 4.74 11.8 7.04 17.9 7.04s12.28-2.344 16.97-7.031c9.33-9.369 9.33-24.569-.87-33.969zM48 208c0-88.22 71.78-160 160-160s160 71.78 160 160-71.78 160-160 160S48 296.2 48 208z"}})])},nc=[],oc={},sc=(0,a.Z)(oc,tc,nc,!1,null,null,null);const ac=sc.exports;var ic=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M597.9 42.09C570.62 14.83 535.04.81 499.22.03c-37.92-.823-76.1 13.2-104.1 42.06L337.4 98.94c14.39 7.424 27.91 16.53 39.99 27.88l50.79-50.8c18.72-18.7 43.3-28.06 67.89-28.06 24.58 0 49.17 9.359 67.89 28.06 37.42 37.44 37.42 98.34 0 135.8l-113.1 113.1c-36.3 36.3-99.5 36.27-135.8 0-18.14-18.14-28.12-42.23-28.12-67.89 0-17.56 5-34.23 13.78-48.93-11.25-10.37-26.89-16.42-43.5-16.42-.688 0-1.338.168-2.021.187C244.9 211.9 238.9 233.9 238.9 257c0 38.47 14.99 74.64 42.19 101.8 27.19 27.2 63.36 42.19 101.8 42.19 38.45 0 74.63-14.98 101.8-42.19l113.1-113.1c27.31-28 41.31-64.9 42.21-101.8 0-36.9-14.9-73.73-42.1-101.81zM211.8 435.1c-18.72 18.7-43.3 28.06-67.89 28.06-24.58 0-49.17-9.359-67.89-28.06-37.42-37.44-37.42-98.34 0-135.8l113.1-113.1c36.3-36.3 99.5-36.27 135.8 0 18.14 18.14 28.12 42.23 28.12 67.89 0 17.56-5 34.23-13.78 48.93 11.25 10.37 26.89 16.42 43.5 16.42.688 0 1.338-.168 2.021-.187 10.24-20.02 16.26-42.03 16.26-65.16 0-38.47-14.99-74.64-42.19-101.8-27.19-27.2-63.36-42.19-101.8-42.19-38.45 0-74.63 14.98-101.8 42.19L42.11 266.3C14.04 294.3 0 331.2 0 368.1c0 36.88 14.04 73.75 42.11 101.8 26.11 26.09 59.71 40.16 93.96 41.99 39.42 2.108 79.65-11.96 109.7-41.99l56.83-56.8c-14.39-7.424-27.91-16.53-39.99-27.88L211.8 435.1z"}})])},rc=[],lc={},cc=(0,a.Z)(lc,ic,rc,!1,null,null,null);const uc=cc.exports;var dc=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6 31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25c24.3-53.8 13.5-118.3-29.6-161.4-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3 20 20 27.5 48.3 21.7 74.5L239 162zm-122.4 25.9l-56.4 56.4c-56.5 56.5-56.5 148 0 204.5 50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9zM220.9 270c-2.1 39.8 12.2 80.1 42.2 110 38.9 38.9 94.4 51 143.6 36.3L220.9 270z"}})])},pc=[],hc={},gc=(0,a.Z)(hc,dc,pc,!1,null,null,null);const mc=gc.exports;var vc=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L532.4 392c45.4-28.2 75.6-78.6 75.6-136 0-88.4-71.6-160-160-160h-64c-17.7 0-32 14.3-32 32s14.3 32 32 32h64c53 0 96 43 96 96 0 43.3-28.6 79.8-67.9 91.8L399.7 288H416c17.7 0 32-14.3 32-32s-14.3-32-32-32h-97.9l-81.7-64H256c17.7 0 32-14.3 32-32s-14.3-32-32-32h-64c-11.3 0-22.3 1.2-32.9 3.4L38.8 5.1zM121 191.4l-50.3-39.7C46.6 179.7 32 216.1 32 256c0 88.4 71.6 160 160 160h64c17.7 0 32-14.3 32-32s-14.3-32-32-32h-64c-53 0-96-43-96-96 0-24.9 9.5-47.6 25-64.6z"}})])},fc=[],yc={},bc=(0,a.Z)(yc,vc,fc,!1,null,null,null);const _c=bc.exports;var Ic=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M320 64h-49.61C262.1 27.48 230.7 0 192 0s-71 27.48-78.4 64H64C28.65 64 0 92.66 0 128v320c0 35.34 28.65 64 64 64h256c35.35 0 64-28.66 64-64V128c0-35.34-28.7-64-64-64zM192 48c13.23 0 24 10.77 24 24s-10.8 24-24 24-24-10.77-24-24 10.8-24 24-24zm144 400c0 8.82-7.178 16-16 16H64c-8.822 0-16-7.18-16-16V128c0-8.82 7.178-16 16-16h18.26c-1.33 5.1-2.26 10.4-2.26 16v16c0 8.8 7.16 16 16 16h192c8.836 0 16-7.164 16-16v-16c0-5.559-.932-10.86-2.264-16H320c8.822 0 16 7.18 16 16v320z"}})])},wc=[],xc={},Sc=(0,a.Z)(xc,Ic,wc,!1,null,null,null);const Cc=Sc.exports;var kc=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M480.1 128.1l-272 272c-3.8 5.6-9.9 7.9-16.1 7.9s-12.28-2.344-16.97-7.031l-144-144c-9.375-9.375-9.375-24.56 0-33.94s24.56-9.375 33.94 0L192 350.1l255-255c9.375-9.375 24.56-9.375 33.94 0s9.36 24.5-.84 33z"}})])},Pc=[],Zc={},Dc=(0,a.Z)(Zc,kc,Pc,!1,null,null,null);const Ec=Dc.exports;var Tc=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"}})])},Ac=[],Mc={},Vc=(0,a.Z)(Mc,Tc,Ac,!1,null,null,null);const Bc=Vc.exports;var Oc=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208-93.3 208-208 208zm0-160c13.25 0 24-10.75 24-24V152c0-13.2-10.7-24-24-24s-24 10.8-24 24v128c0 13.3 10.8 24 24 24zm0 33.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"}})])},Lc=[],$c={},zc=(0,a.Z)($c,Oc,Lc,!1,null,null,null);const Nc=zc.exports;var Hc=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M488 239.9l-200.8.1c-8.262-2.459-42.31-12.21-42.31-12.21C161.5 203.7 138.4 182.8 146.2 138.5c9.719-55.4 81.72-64.51 140.5-55.43 16.77 2.564 36.75 7.908 62.84 16.8 12.69 4.344 26.62-2.299 31.03-14.82 4.414-12.53-2.336-26.21-15.06-30.54-28.93-9.861-51.58-15.86-71.29-18.89C189.7 19.57 110.9 57.61 98.15 130.3 88.41 185.7 113 218.8 146.5 240L24 239.9c-13.25 0-24 10.75-24 23.1s10.75 23.1 24 23.1h464c13.25 0 24-10.75 24-23.1s-10.7-23.1-24-23.1zM361.7 336c5.1 10.26 6.734 22.25 4.059 37.47-9.719 55.38-81.69 64.48-140.7 55.42-25.89-3.83-56.08-14.53-82.72-23.97L128.6 400.1c-12.72-4.438-26.63 2.111-31.14 14.61-4.494 12.5 2.16 26.22 14.85 30.64l13.47 4.75c28.76 10.19 61.36 21.75 91.86 26.27C233.6 478.8 249 480 263.7 480c81.09 0 139.3-36.74 150.1-98.34 3.047-17.35 2.619-32.35-.225-45.66H361.7z"}})])},Rc=[],Gc={},Fc=(0,a.Z)(Gc,Hc,Rc,!1,null,null,null);const Uc=Fc.exports;var Wc=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M424 0H24C10.75 0 0 10.75 0 24s10.75 24 24 24h400c13.3 0 24-10.75 24-24S437.3 0 424 0zM224 96c-97.2 0-176 78.8-176 176v64c0 97.2 78.8 176 176 176s176-78.8 176-176v-64c0-97.2-78.8-176-176-176zm128 240c0 70.58-57.42 128-128 128S96 406.58 96 336v-64c0-70.58 57.42-128 128-128s128 57.42 128 128v64z"}})])},jc=[],Xc={},qc=(0,a.Z)(Xc,Wc,jc,!1,null,null,null);const Kc=qc.exports;var Yc=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M40 48h24v192c0 88.22 71.78 160 160 160s160-71.78 160-160V48h24c13.25 0 24-10.75 24-24S421.3 0 408 0h-96c-13.2 0-24 10.75-24 24s10.75 24 24 24h24v192c0 61.75-50.25 112-112 112s-112-50.2-112-112V48h24c13.3 0 24-10.75 24-24S149.3 0 136 0H40C26.75 0 16 10.75 16 24s10.75 24 24 24zm384 416H24c-13.25 0-24 10.8-24 24s10.75 24 24 24h400c13.25 0 24-10.75 24-24s-10.7-24-24-24z"}})])},Jc=[],Qc={},eu=(0,a.Z)(Qc,Yc,Jc,!1,null,null,null);const tu=eu.exports;var nu=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M384 56c0 13.25-10.75 24-24 24h-67.98l-146.9 352H232c13.25 0 24 10.75 24 24s-10.7 24-24 24H24c-13.25 0-24-10.7-24-24s10.75-24 24-24h70.6L241.5 80H152c-13.2 0-24-10.75-24-24s10.8-24 24-24h208c13.3 0 24 10.75 24 24z"}})])},ou=[],su={},au=(0,a.Z)(su,nu,ou,!1,null,null,null);const iu=au.exports;var ru=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M557.6 102.3c-11.53-7.406-25.88-8.391-38.28-2.688L416 147v-19c0-35.35-28.65-64-64-64H64C28.65 64 0 92.65 0 128v256c0 35.35 28.65 64 64 64h288c35.35 0 64-28.65 64-64v-19.02l103.3 47.36a39.972 39.972 0 0016.69 3.672c7.531 0 15.02-2.141 21.59-6.359C569.1 402.3 576 389.7 576 375.1V136c0-13.7-6.9-26.2-18.4-33.7zM368 384c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V128c0-8.822 7.178-16 16-16h288c8.822 0 16 7.178 16 16v256zm160-20.5l-112-51.3V199.8l112-51.33V363.5z"}})])},lu=[],cu={},uu=(0,a.Z)(cu,ru,lu,!1,null,null,null);const du=uu.exports;var pu=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M0 128c0-35.3 28.7-64 64-64h256c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zm559.1-28.2c10.4 5.6 16.9 16.4 16.9 28.2v256c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64-14.2-9.5V174.9l14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"}})])},hu=[],gu={},mu=(0,a.Z)(gu,pu,hu,!1,null,null,null);const vu=mu.exports;var fu=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M152 120c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.5-48-48-48zm295.1-88h-384C28.65 32-.01 60.65-.01 96v320c0 35.35 28.65 64 63.1 64h384c35.35 0 64-28.65 64-64V96c.01-35.35-27.79-64-63.99-64zm16 377.3L326.3 223.4c-2.5-4.6-8.2-7.4-14.3-7.4-6.113 0-11.82 2.768-15.21 7.379l-106.6 144.1-37.09-46.1c-3.441-4.279-8.934-6.809-14.77-6.809-5.842 0-11.33 2.529-14.78 6.809l-75.52 93.81c0-.03 0 .03 0 0L47.99 96c0-8.822 7.178-16 16-16h384c8.822 0 16 7.178 16 16v313.3z"}})])},yu=[],bu={},_u=(0,a.Z)(bu,fu,yu,!1,null,null,null);const Iu=_u.exports;var wu=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M312 280h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.8 7.2 16 16 16zm0-192h16c8.836 0 16-7.164 16-16V56c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.84 7.2 16 16 16zm-96 96h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.8 7.2 16 16 16zm0-96h16c8.836 0 16-7.164 16-16V56c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.84 7.2 16 16 16zm192 96h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.8 7.2 16 16 16zm0-96h16c8.836 0 16-7.164 16-16V56c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.84 7.2 16 16 16zm0 192h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.8 7.2 16 16 16zm0 96h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.8 7.2 16 16 16zM120 88h16c8.836 0 16-7.164 16-16V56c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.84 7.2 16 16 16zM24 280h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16H24c-8.836 0-16 7.162-16 16v16c0 8.8 7.16 16 16 16zm0 96h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16H24c-8.836 0-16 7.162-16 16v16c0 8.8 7.16 16 16 16zm0-192h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16H24c-8.836 0-16 7.162-16 16v16c0 8.8 7.16 16 16 16zm408 248H16c-8.875 0-16 7.1-16 16v16c0 8.9 7.125 16 16 16h416c8.875 0 16-7.125 16-16v-16c0-8.9-7.1-16-16-16zm-216-56h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.8 7.2 16 16 16zm0-96h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.8 7.2 16 16 16zm-96 0h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.8 7.2 16 16 16zM24 88h16c8.836 0 16-7.164 16-16V56c0-8.838-7.164-16-16-16H24c-8.836 0-16 7.162-16 16v16c0 8.84 7.16 16 16 16z"}})])},xu=[],Su={},Cu=(0,a.Z)(Su,wu,xu,!1,null,null,null);const ku=Cu.exports;var Pu=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M464 448c0 8.822-7.178 16-16 16h-48v-80h-47.99l-.01 80H160V128H64c-35.35 0-64 28.7-64 64v256c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64l.008-64H464v64zm-352 16H64c-8.822 0-16-7.178-16-16v-48h64v64zm0-112H48v-64h64v64zm0-112H48v-48c0-8.822 7.178-16 16-16h48v64zM576 0H256c-35.3 0-64 28.65-64 64v224c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V64c0-35.35-28.7-64-64-64zm16 288c0 8.822-7.178 16-16 16L466.7 143.1c-3-4.4-8-7.1-13.4-7.1a15.978 15.978 0 00-13.31 7.125l-62.74 94.11-22.35-30.66c-3-4.175-7.8-6.575-13.8-6.575a16.007 16.007 0 00-12.93 6.574L256 304c-8.8 0-16-7.2-16-16V64c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16v224zM303.1 80c-17.67 0-32 14.33-32 32s14.33 32 32 32c17.68 0 32-14.33 32-32s-13.4-32-32-32z"}})])},Zu=[],Du={},Eu=(0,a.Z)(Du,Pu,Zu,!1,null,null,null);const Tu=Eu.exports;var Au=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M48.06 224C30.4 224 16 238.3 16 256c0 17.67 14.4 32 32.06 32S80 273.7 80 256s-14.27-32-31.94-32zm0-160C30.4 64 16 78.33 16 96s14.4 32 32.06 32S80 113.7 80 96c0-17.67-14.27-32-31.94-32zm0 320C30.4 384 16 398.3 16 416c0 17.67 14.4 32 32.06 32S80 433.7 80 416s-14.27-32-31.94-32zM488 72H183.1C170.7 72 160 82.75 160 95.1s10.7 24.9 23.1 24.9H488c13.25 0 24-10.75 24-23.1S501.3 72 488 72zm0 320H183.1c-12.4 0-23.1 10.7-23.1 24s10.75 24 23.1 24H488c13.25 0 24-10.75 24-24s-10.7-24-24-24zm0-160H183.1c-12.4 0-23.1 10.7-23.1 24s10.75 24 23.1 24H488c13.3 0 24-10.7 24-24s-10.7-24-24-24z"}})])},Mu=[],Vu={},Bu=(0,a.Z)(Vu,Au,Mu,!1,null,null,null);const Ou=Bu.exports;var Lu=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M303.8 241.7c2.084-1.838 4.41-3.307 6.385-5.303 22.72-22.91 35.03-53.31 34.72-85.59C344.3 85.31 290.4 32 224.9 32H24C10.75 32 0 42.75 0 56s10.75 24 24 24h24v352H24c-13.25 0-24 10.8-24 24s10.75 24 24 24h216c70.59 0 128-57.41 128-128 0-47.2-26.9-88.1-64.2-110.3zM224.9 80c39.31 0 71.59 32 72 71.31.188 19.34-7.219 37.56-20.84 51.34C262.5 216.4 244.3 224 224.9 224H96V80h128.9zM240 432H96V272h144c44.13 0 80 35.88 80 80.01S284.1 432 240 432z"}})])},$u=[],zu={},Nu=(0,a.Z)(zu,Lu,$u,!1,null,null,null);const Hu=Nu.exports;var Ru=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M48 224h224V88c0-13.25 10.7-24 24-24s24 10.75 24 24v336c0 13.3-10.7 24-24 24s-24-10.7-24-24V272H48v152c0 13.3-10.75 24-24 24S0 437.3 0 424V88c0-13.25 10.75-24 24-24s24 10.75 24 24v136zM518.1 69.26c11.2 8.28 12.9 23.38 4.6 32.84L476 161.4c6.6-.9 13.2-1.4 20-1.4 79.5 0 144 64.5 144 144s-64.5 144-144 144-144-64.5-144-144c0-2.7.1-5.4.2-8h-.2c0-36.5 12.4-72 35.2-100.5l98.1-122.49c8.2-10.35 23.3-12.03 32.8-3.75zM496 400c53 0 96-43 96-96 0-53.9-43-96-96-96-53.9 0-96 42.1-96 96 0 53 42.1 96 96 96z"}})])},Gu=[],Fu={},Uu=(0,a.Z)(Fu,Ru,Gu,!1,null,null,null);const Wu=Uu.exports;var ju=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M48 224h224V88c0-13.25 10.7-24 24-24s24 10.75 24 24v336c0 13.3-10.7 24-24 24s-24-10.7-24-24V272H48v152c0 13.3-10.75 24-24 24S0 437.3 0 424V88c0-13.25 10.75-24 24-24s24 10.75 24 24v136zM584 64c13.3 0 24 10.75 24 24 0 13.3-10.7 24-24 24H459.7l-22.4 112H528c61.9 0 112 50.1 112 112s-50.1 112-112 112h-63.6c-34.5 0-65-22.9-75.9-54.7l-3.3-9.7c-4.2-12.6 2.6-26.2 15.2-30.4 11.7-4.2 26.2 2.6 30.4 15.2l3.2 9.7c4.4 13.1 16.6 21.9 30.4 21.9H528c35.3 0 64-28.7 64-64s-28.7-64-64-64H408c-7.2 0-14.9-3.2-18.6-8.8-4.5-5.5-6.3-12.9-4.9-19.9l32-160.01C418.7 72.07 428.6 64 440 64h144z"}})])},Xu=[],qu={},Ku=(0,a.Z)(qu,ju,Xu,!1,null,null,null);const Yu=Ku.exports;var Ju=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M616 64.22c-13.25 0-24 10.75-24 24V256H424.7l30.83-163.3c2.469-13-6.094-25.56-19.12-28.03-12.98-2.406-25.58 6.125-28.03 19.16l-36.2 191.8c-1.328 7 .547 14.25 5.094 19.75C381.9 300.8 388.7 304 395.8 304H592v120.2c0 13.25 10.75 24 24 24s24-10.75 24-24v-336c0-13.23-10.7-23.98-24-23.98zM296 64c-13.2 0-24 10.75-24 24v136H48V88c0-13.25-10.75-24-24-24S0 74.75 0 88v336c0 13.3 10.75 24 24 24s24-10.75 24-24V272h224v152c0 13.3 10.8 24 24 24s24-10.7 24-24V88c0-13.25-10.7-24-24-24z"}})])},Qu=[],ed={},td=(0,a.Z)(ed,Ju,Qu,!1,null,null,null);const nd=td.exports;var od=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M296 64c-13.2 0-24 10.75-24 24v136H48V88c0-13.25-10.75-24-24-24S0 74.75 0 88v336c0 13.3 10.75 24 24 24s24-10.75 24-24V272h224v152c0 13.3 10.8 24 24 24s24-10.7 24-24V88c0-13.25-10.7-24-24-24zm238.6 159.4h-34.13l115.5-118.9c6.719-6.906 8.641-17.19 4.891-26.06-3.766-8.875-12.47-14.66-22.11-14.66L400 63.94c-13.25 0-24 10.59-24 23.84s10.75 24 24 24h141.1l-115.5 118.9c-6.719 6.906-8.641 17.19-4.891 26.06 3.766 8.875 12.47 14.66 22.11 14.66h90.91c31.66 0 57.41 28.78 57.41 64.19s-25.75 64.19-57.41 64.19h-77.11c-15.52 0-29.41-11.22-34.55-27.94-3.906-12.66-17.23-19.81-30-15.88-12.67 3.906-19.78 17.31-15.88 30 11.38 36.97 43.69 61.81 80.42 61.81h77.11C592.7 447.8 640 397.5 640 335.6s-47.3-112.2-105.4-112.2z"}})])},sd=[],ad={},id=(0,a.Z)(ad,od,sd,!1,null,null,null);const rd=id.exports;var ld=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M296 64c-13.2 0-24 10.75-24 24v136H48V88c0-13.25-10.75-24-24-24S0 74.75 0 88v336c0 13.3 10.75 24 24 24s24-10.75 24-24V272h224v152c0 13.3 10.8 24 24 24s24-10.7 24-24V88c0-13.25-10.7-24-24-24zm320 336.2H453.8l125.7-114.8c51.39-45.5 57.39-122.7 13.64-175.7-21.81-26.44-52.56-42.47-86.58-45.13-34-2.562-66.73 8.344-92.33 30.94l-25.66 22.66c-9.938 8.781-10.88 23.94-2.094 33.88 8.766 9.938 23.94 10.91 33.88 2.125l25.66-22.69c15.77-13.91 36.2-20.59 56.78-19.06 20.94 1.656 39.88 11.53 53.33 27.84 26.73 32.41 22.95 81.38-8.719 109.4l-171.6 156.8a24.02 24.02 0 00-6.188 26.41 24.01 24.01 0 0022.38 15.31h224c13.25 0 24-10.75 24-24S629.3 400.2 616 400.2z"}})])},cd=[],ud={},dd=(0,a.Z)(ud,ld,cd,!1,null,null,null);const pd=dd.exports;var hd=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M296 64c-13.2 0-24 10.75-24 24v136H48V88c0-13.25-10.75-24-24-24S0 74.75 0 88v336c0 13.3 10.75 24 24 24s24-10.75 24-24V272h224v152c0 13.25 10.75 24 24 24s24-10.7 24-24V88c0-13.25-10.7-24-24-24zm256 336h-48V88.02a23.99 23.99 0 00-12.69-21.15c-7.81-4.22-17.31-3.75-24.61 1.18l-72 47.1c-11.03 7.344-14 22.25-6.656 33.28 7.375 11.03 22.22 13.97 33.28 6.656L456 132.9V400h-48c-13.25 0-24 10.75-24 24 0 13.3 10.8 24 24 24h143.1c14.1 0 24.9-10.7 24.9-24 0-13.2-10.7-24-24-24z"}})])},gd=[],md={},vd=(0,a.Z)(md,hd,gd,!1,null,null,null);const fd=vd.exports;var yd=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M448 456c0 13.25-10.75 24-24 24H312c-13.2 0-24-10.7-24-24s10.75-24 24-24h32V280H104v152h32c13.3 0 24 10.8 24 24s-10.7 24-24 24H24c-13.25 0-24-10.7-24-24s10.75-24 24-24h32V80H24C10.75 80 0 69.25 0 56s10.75-24 24-24h112c13.3 0 24 10.75 24 24s-10.7 24-24 24h-32v152h240V80h-32c-13.2 0-24-10.75-24-24s10.8-24 24-24h112c13.3 0 24 10.75 24 24s-10.7 24-24 24h-32v352h32c13.3 0 24 10.8 24 24z"}})])},bd=[],_d={},Id=(0,a.Z)(_d,yd,bd,!1,null,null,null);const wd=Id.exports;var xd=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M216 120h272c13.3 0 24-10.7 24-24s-10.75-24-24-24H216c-13.3 0-24 10.75-24 24s10.7 24 24 24zm272 272H216c-13.3 0-24 10.7-24 24s10.75 24 24 24h272c13.25 0 24-10.75 24-24s-10.7-24-24-24zm0-160H216c-13.3 0-24 10.7-24 24s10.75 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24zm-448-8h80c13.3 0 24-10.7 24-24.9s-10.75-24-24-24h-16V55.99a23.98 23.98 0 00-12.06-20.81c-7.44-4.27-16.66-4.23-24.03.07l-32 18.67c-11.44 6.69-15.32 21.38-8.63 32.83C33.13 96.85 45.31 101.1 56 97.29V176H40c-13.25 0-24 10.75-24 24s10.75 24 24 24zm96.3 208H86.86l36.4-32.48c29.92-25.83 33.54-71.36 8.049-101.5C118.6 282.1 100.7 273.8 80.89 272.2c-19.62-1.5-38.96 4.7-53.97 17.7l-12.5 10.8c-10.04 8.656-11.17 23.81-2.527 33.86 8.672 10.06 23.8 11.14 33.78 2.516l12.51-10.79c5.24-4.531 12.1-6.672 18.96-6.156 6.926.547 13.2 3.734 17.62 8.969 8.703 10.28 7.486 25.26-3.057 34.36l-83.7 74.67c-7.424 6.625-9.982 17.16-6.457 26.47C5.119 473.8 14.01 480 23.96 480h112.4c13.23 0 23.96-10.75 23.96-23.1-.02-14.1-10.82-24.9-24.02-24.9z"}})])},Sd=[],Cd={},kd=(0,a.Z)(Cd,xd,Sd,!1,null,null,null);const Pd=kd.exports;var Zd=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M424 136l-74.01-.025 13.63-75.76c2.344-13.03-6.312-25.53-19.38-27.88-13-2.188-25.5 6.344-27.88 19.38l-15.16 84.26H190l13.63-75.76c2.344-13.03-6.312-25.53-19.38-27.88C171.2 30.15 158.7 38.69 156.4 51.72l-15.16 84.26H56c-13.25 0-24 10.78-24 24.03 0 13.25 10.75 23.97 24 23.97h76.57l-25.92 144H24c-13.25 0-24 10.76-24 24.01C0 365.3 10.75 376 24 376l74.01-.008-13.63 75.76c-2.344 13.03 6.312 25.53 19.38 27.88 1.44.268 2.84.368 4.24.368 11.38 0 21.5-8.158 23.59-19.75l15.16-84.26h111.2l-13.63 75.76c-2.344 13.03 6.312 25.53 19.38 27.88 1.5.27 2.9.37 4.3.37 11.38 0 21.5-8.158 23.59-19.75l15.16-84.26L392 376c13.25 0 24-10.75 24-23.1 0-13.25-10.75-24.01-24-24.01h-76.57l25.92-144L424 184c13.25 0 24-10.75 24-23.1 0-14.1-10.7-24.9-24-24.9zM266.7 327.1H155.5l25.92-144h111.2l-25.92 144z"}})])},Dd=[],Ed={},Td=(0,a.Z)(Ed,Zd,Dd,!1,null,null,null);const Ad=Td.exports;var Md=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M96 128C96 57.31 153.3 0 224 0s128 57.31 128 128c0 70.7-57.3 128-128 128S96 198.7 96 128zm208 0c0-44.18-35.8-80-80-80s-80 35.82-80 80c0 44.2 35.8 80 80 80s80-35.8 80-80zm-94.9 231.2L176 304h96l-33.1 55.2 15.9 59.2 48.8-97.5c81.1 8.4 144.4 77 144.4 160.4 0 16.9-13.8 30.7-30.7 30.7H30.72C13.75 512 0 498.2 0 481.3c0-83.4 63.28-152 144.4-160.4l48.8 97.5 15.9-59.2zm120.4 17.1L285.7 464h113c-6.1-39.8-33-72.9-69.2-87.7zM49.31 464H162.3l-43.8-87.7c-36.22 14.8-63.09 47.9-69.19 87.7z"}})])},Vd=[],Bd={},Od=(0,a.Z)(Bd,Md,Vd,!1,null,null,null);const Ld=Od.exports;var $d=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M569.3 279.4c-9.186-9.533-24.37-9.877-33.94-.688l-183 175.7-87.37-87.38c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l103.1 104a23.9 23.9 0 0016.97 7.04c6 0 11.97-2.226 16.62-6.695l199.1-192C578.2 304.1 578.5 288.9 569.3 279.4zM280 256h92c41.9 0 76-34.1 76-76 0-24.6-11.94-46.28-30.12-60.18C426.7 107.4 432 92.35 432 76c0-41.91-34.1-76-76-76h-76c-13.2 0-24 10.75-24 24v208c0 13.3 10.8 24 24 24zm24-208h52c15.4 0 28 12.56 28 28s-12.6 28-28 28h-52V48zm0 104h68c15.44 0 28 12.56 28 28s-12.6 28-28 28h-68v-56zm-81.9 70.7l-87.99-208c-7.5-17.75-36.68-17.75-44.18 0l-87.99 208c-5.211 12.1.505 26.2 12.72 31.4 12.13 5.3 26.28-.5 31.44-12.8L56.82 216h110.4l10.72 25.34C181.8 250.5 190.7 256 199.1 256c4 0 7.2-.6 10.2-1.9 12.3-5.2 18-19.3 12.8-31.4zM77.13 168L112 85.59 146.9 168H77.13z"}})])},zd=[],Nd={},Hd=(0,a.Z)(Nd,$d,zd,!1,null,null,null);const Rd=Hd.exports;var Gd=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M424 296H23.1C10.75 296 0 306.7 0 320s10.75 24 23.1 24H424c13.25 0 24-10.75 24-23.1S437.3 296 424 296zm0 128H23.1C10.75 424 0 434.7 0 448s10.75 24 23.1 24H424c13.25 0 24-10.75 24-23.1S437.3 424 424 424zm0-256H23.1C10.75 168 0 178.7 0 192s10.75 24 23.1 24H424c13.25 0 24-10.75 24-23.1S437.3 168 424 168zm0-128H23.1C10.75 40 0 50.75 0 64s10.75 24 23.1 24H424c13.25 0 24-10.75 24-23.1S437.3 40 424 40z"}})])},Fd=[],Ud={},Wd=(0,a.Z)(Ud,Gd,Fd,!1,null,null,null);const jd=Wd.exports;var Xd=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M272 96h-96c-26.5 0-48 21.5-48 48v224c0 26.5 21.5 48 48 48h96c26.51 0 48-21.49 48-48V144c0-26.5-21.5-48-48-48zm0 272h-96V144h96v224zM424 0c-13.2 0-24 10.8-24 24v464c0 13.2 10.8 24 24 24s24-10.8 24-24V24c0-13.2-10.8-24-24-24zM24 0C10.8 0 0 10.8 0 24v464c0 13.2 10.8 24 24 24s24-10.8 24-24V24C48 10.8 37.2 0 24 0z"}})])},qd=[],Kd={},Yd=(0,a.Z)(Kd,Xd,qd,!1,null,null,null);const Jd=Yd.exports;var Qd=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M112 384h64c26.5 0 48-21.5 48-48V48c0-26.51-21.5-48-48-48h-64C85.49 0 64 21.49 64 48v288c0 26.5 21.49 48 48 48zm0-336h64v288h-64V48zm224 336h64c26.51 0 48-21.49 48-48V176c0-26.5-21.5-48-48-48h-64c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48zm0-208h64v160h-64V176zm152 288H24c-13.2 0-24 10.8-24 24s10.8 24 24 24h464c13.2 0 24-10.8 24-24s-10.8-24-24-24z"}})])},ep=[],tp={},np=(0,a.Z)(tp,Qd,ep,!1,null,null,null);const op=np.exports;var sp=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M488 232h-40v-88c0-26.5-21.5-48-48-48h-64c-26.5 0-48 21.5-48 48v88h-64V80c0-26.51-21.5-48-48-48h-64c-26.51 0-48 21.49-48 48v152H24c-13.2 0-24 10.8-24 24s10.8 24 24 24h40v152c0 26.5 21.49 48 48 48h64c26.5 0 48-21.5 48-48V280h64v88c0 26.51 21.49 48 48 48h64c26.51 0 48-21.49 48-48v-88h40c13.2 0 24-10.8 24-24s-10.8-24-24-24zM176 432h-64V80h64v352zm224-64h-64V144h64v224z"}})])},ap=[],ip={},rp=(0,a.Z)(ip,sp,ap,!1,null,null,null);const lp=rp.exports;var cp=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M176 128h-64c-26.51 0-48 21.5-48 48v288c0 26.5 21.49 48 48 48h64c26.5 0 48-21.5 48-48V176c0-26.5-21.5-48-48-48zm0 336h-64V176h64v288zm224-336h-64c-26.5 0-48 21.5-48 48v160c0 26.51 21.49 48 48 48h64c26.51 0 48-21.49 48-48V176c0-26.5-21.5-48-48-48zm0 208h-64V176h64v160zM488 0H24C10.8 0 0 10.8 0 24s10.8 24 24 24h464c13.2 0 24-10.8 24-24S501.2 0 488 0z"}})])},up=[],dp={},pp=(0,a.Z)(dp,cp,up,!1,null,null,null);const hp=pp.exports;var gp=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M464 64H176c-26.5 0-48 21.49-48 48v64c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-64c0-26.51-21.5-48-48-48zm0 112H176v-64h288v64zM336 288H176c-26.5 0-48 21.5-48 48v64c0 26.5 21.5 48 48 48h160c26.51 0 48-21.49 48-48v-64c0-26.5-21.5-48-48-48zm0 112H176v-64h160v64zM24 0C10.8 0 0 10.8 0 24v464c0 13.2 10.8 24 24 24s24-10.8 24-24V24C48 10.8 37.2 0 24 0z"}})])},mp=[],vp={},fp=(0,a.Z)(vp,gp,mp,!1,null,null,null);const yp=fp.exports;var bp=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M400 64H248V24c0-13.2-10.8-24-24-24s-24 10.8-24 24v40H48C21.49 64 0 85.49 0 112v64c0 26.5 21.49 48 48 48h152v64h-88c-26.51 0-48 21.5-48 48v64c0 26.5 21.49 48 48 48h88v40c0 13.2 10.8 24 24 24s24-10.8 24-24v-40h88c26.51 0 48-21.49 48-48v-64c0-26.5-21.5-48-48-48h-88v-64h152c26.5 0 48-21.5 48-48v-64c0-26.51-21.5-48-48-48zm-64 272v64H112v-64h224zm64-160H48v-64h352v64z"}})])},_p=[],Ip={},wp=(0,a.Z)(Ip,bp,_p,!1,null,null,null);const xp=wp.exports;var Sp=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M336 64H48C21.49 64 0 85.49 0 112v64c0 26.5 21.49 48 48 48h288c26.5 0 48-21.5 48-48v-64c0-26.51-21.5-48-48-48zm0 112H48v-64h288v64zm0 112H176c-26.5 0-48 21.5-48 48v64c0 26.5 21.5 48 48 48h160c26.51 0 48-21.49 48-48v-64c0-26.5-21.5-48-48-48zm0 112H176v-64h160v64zM488 0c-13.2 0-24 10.8-24 24v464c0 13.2 10.8 24 24 24s24-10.8 24-24V24c0-13.2-10.8-24-24-24z"}})])},Cp=[],kp={},Pp=(0,a.Z)(kp,Sp,Cp,!1,null,null,null);const Zp=Pp.exports;var Dp=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M119.1 88h208c14.2 0 24.9-10.75 24.9-24s-10.7-24-24-24H119.1C106.7 40 96 50.75 96 64s10.7 24 23.1 24zM424 424H23.1C10.75 424 0 434.7 0 448s10.75 24 23.1 24H424c13.25 0 24-10.75 24-23.1S437.3 424 424 424zm-96-80c13.3 0 24-10.7 24-24s-10.7-24-24-24H119.1c-12.4 0-23.1 10.7-23.1 24s10.7 24 23.1 24H328zm96-176H23.1C10.75 168 0 178.7 0 192s10.75 24 23.1 24H424c13.25 0 24-10.75 24-23.1S437.3 168 424 168z"}})])},Ep=[],Tp={},Ap=(0,a.Z)(Tp,Dp,Ep,!1,null,null,null);const Mp=Ap.exports;var Vp=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M424 424H23.1C10.75 424 0 434.7 0 448s10.75 24 23.1 24H424c13.25 0 24-10.75 24-23.1S437.3 424 424 424zm3.1-128H180.9c-11.6 0-20.9 9.3-20.9 20.9v6.25c0 11.55 9.3 20.85 20.9 20.85h246.3c11.5 0 20.8-9.3 20.8-20.9v-6.2c0-11.6-9.3-20.9-20.9-20.9zm0-256H180.9c-11.6 0-20.9 9.35-20.9 20.87v6.26C160 78.65 169.3 88 180.9 88h246.3c11.5 0 20.8-9.35 20.8-20.87v-6.26C448 49.35 438.7 40 427.1 40zM424 168H23.1C10.75 168 0 178.7 0 192s10.75 24 23.1 24H424c13.25 0 24-10.75 24-23.1S437.3 168 424 168z"}})])},Bp=[],Op={},Lp=(0,a.Z)(Op,Vp,Bp,!1,null,null,null);const $p=Lp.exports;var zp=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M20.87 88h246.3C278.7 88 288 78.65 288 67.13v-6.26C288 49.35 278.7 40 267.1 40H20.87C9.346 40 0 49.35 0 60.87v6.26C0 78.65 9.346 88 20.87 88zm0 256h246.3c11.53 0 20.83-9.3 20.83-20.9v-6.2c0-11.6-9.3-20.9-20.9-20.9H20.87C9.346 296 0 305.3 0 316.9v6.25C0 334.7 9.346 344 20.87 344zM424 168H23.1C10.75 168 0 178.7 0 192s10.75 24 23.1 24H424c13.25 0 24-10.75 24-23.1S437.3 168 424 168zm0 256H23.1C10.75 424 0 434.7 0 448s10.75 24 23.1 24H424c13.25 0 24-10.75 24-23.1S437.3 424 424 424z"}})])},Np=[],Hp={},Rp=(0,a.Z)(Hp,zp,Np,!1,null,null,null);const Gp=Rp.exports;var Fp=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M512 256c0 6.688-2.812 13.09-7.719 17.62l-104 96C395.7 373.9 389.8 376 384 376c-6.469 0-12.91-2.594-17.62-7.719-9-9.75-8.406-24.94 1.344-33.91L426.6 280H85.38l58.91 54.38c9.75 8.969 10.34 24.16 1.344 33.91C140.9 373.4 134.5 376 128 376c-5.812 0-11.66-2.094-16.28-6.375l-104-96A24 24 0 010 256c0-6.7 2.812-13.09 7.719-17.62l104-96C121.5 133.3 136.7 134 145.6 143.7c9 9.75 8.406 24.94-1.344 33.91L85.38 232h341.3l-58.91-54.38c-9.75-8.969-10.34-24.16-1.344-33.91C375.3 134 390.5 133.3 400.3 142.4l104 96c4.9 4.5 7.7 10.9 7.7 17.6z"}})])},Up=[],Wp={},jp=(0,a.Z)(Wp,Fp,Up,!1,null,null,null);const Xp=jp.exports;var qp=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.7-64-64-64zm16 384c0 8.836-7.164 16-16 16H64c-8.836 0-16-7.164-16-16V96c0-8.838 7.164-16 16-16h320c8.836 0 16 7.162 16 16v320zm-97-241L192 286.1 144.1 239c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l64 64C179.7 341.7 185.8 344 192 344s12.28-2.344 16.97-7.031l128-128c9.375-9.375 9.375-24.56 0-33.94S312.4 165.7 303 175z"}})])},Kp=[],Yp={},Jp=(0,a.Z)(Yp,qp,Kp,!1,null,null,null);const Qp=Jp.exports;var eh=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M312 224h135.1c12.94 0 24.62-7.797 29.56-19.75a31.953 31.953 0 00-6.937-34.87l-47.03-47.03 81.38-81.38c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0l-81.38 81.38-47.03-47.03a31.986 31.986 0 00-22.63-9.35c-4.117 0-8.276.788-12.24 2.413a31.985 31.985 0 00-19.75 29.56v135.1C288 213.3 298.7 224 312 224zm-112 63.1H64c-12.94 0-24.62 7.797-29.56 19.75a31.953 31.953 0 006.937 34.87l47.03 47.03-81.38 81.38c-9.375 9.375-9.375 24.56 0 33.94C11.72 509.7 17.84 512 24 512s12.28-2.344 16.97-7.031l81.38-81.38 47.03 47.03a31.986 31.986 0 0034.87 6.938 31.974 31.974 0 0019.75-29.56V311.1c0-12.4-10.7-24-24-24zm4.3-252.66c-4-1.64-8.2-3.34-12.3-3.34a31.979 31.979 0 00-22.63 9.381L122.3 88.41 40.97 7.031c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l81.38 81.38L41.38 169.4C35.25 175.5 32 183.7 32 192c0 4.125.797 8.281 2.438 12.25A32.017 32.017 0 0064 224h135.1c13.25 0 23.1-10.75 23.1-23.1V64c1.8-12.93-6-24.62-17.9-29.56zM423.6 389.7l47.03-47.03c9.141-9.156 11.84-22.87 6.938-34.87a31.974 31.974 0 00-29.56-19.75h-135.1c-13.26 0-23.1 10.75-23.1 23.1v135.1c0 12.94 7.797 24.62 19.75 29.56a31.908 31.908 0 0012.24 2.446 31.98 31.98 0 0022.63-9.383l47.03-47.03 81.37 81.38C475.7 509.7 481.8 512 488 512s12.28-2.344 16.97-7.031c9.375-9.375 9.375-24.56 0-33.94L423.6 389.7z"}})])},th=[],nh={},oh=(0,a.Z)(nh,eh,th,!1,null,null,null);const sh=oh.exports;var ah=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512"}},e.$listeners),[t("path",{attrs:{d:"M127.1 511.1a24.016 24.016 0 01-17.62-7.719l-96-104a23.881 23.881 0 01-6.375-16.28c0-6.469 2.594-12.91 7.719-17.62 9.75-9 24.94-8.406 33.91 1.344l54.38 58.91V85.37L49.62 144.3c-8.97 9.7-24.15 10.3-33.9 1.3-5.13-4.7-7.722-11.1-7.722-18.5 0-5.812 2.094-11.66 6.375-16.28l96-104c4.531-4.906 10.94-7.719 17.62-7.719s13.09 2.812 17.62 7.719l96 104c9.031 9.781 8.375 24.97-1.344 33.91-9.75 9-24.94 8.406-33.91-1.344l-54.38-58.91v341.3l54.38-58.91c8.969-9.75 24.16-10.34 33.91-1.344 9.719 8.969 10.38 24.12 1.344 33.91l-96 104C141.1 509.2 134.7 511.1 127.1 511.1z"}})])},ih=[],rh={},lh=(0,a.Z)(rh,ah,ih,!1,null,null,null);const ch=lh.exports;var uh=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M6.625 215.5l168-176C179.2 34.7 185.4 32.02 192 32.02s12.84 2.688 17.38 7.438l168 176c9.125 9.594 8.781 24.78-.813 33.94-9.5 9.156-24.75 8.812-33.94-.813L216 115.9V456c0 13.25-10.75 23.1-23.1 23.1S168 469.3 168 456V115.9L41.4 248.6c-9.18 9.6-24.43 9.9-33.962.8-9.594-9.2-9.938-24.4-.813-33.9z"}})])},dh=[],ph={},hh=(0,a.Z)(ph,uh,dh,!1,null,null,null);const gh=hh.exports;var mh=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M377.4 296.6l-168 176c-4.6 4.7-10.8 7.4-17.4 7.4s-12.84-2.688-17.38-7.438l-168-176C-2.5 286.1-2.156 271.8 7.438 262.6c9.5-9.156 24.75-8.812 33.94.813L168 396.1V56.02c0-13.25 10.75-24.01 23.1-24.01S216 42.77 216 56.02v340.1l126.6-132.7c9.156-9.625 24.41-9.969 33.94-.813 9.66 9.193 9.96 23.493.86 33.993z"}})])},vh=[],fh={},yh=(0,a.Z)(fh,mh,vh,!1,null,null,null);const bh=yh.exports;var _h=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M264.6 70.63l176 168c4.75 4.531 7.438 10.81 7.438 17.38s-2.688 12.84-7.438 17.38l-176 168c-9.594 9.125-24.78 8.781-33.94-.813-9.156-9.5-8.812-24.75.813-33.94l132.7-126.6H24.01c-13.25 0-24.01-10.76-24.01-24.01s10.76-23.99 24.01-23.99h340.1l-132.7-126.6c-9.61-9.207-9.91-24.457-.81-33.987 9.2-9.6 23.5-9.94 34-.82z"}})])},Ih=[],wh={},xh=(0,a.Z)(wh,_h,Ih,!1,null,null,null);const Sh=xh.exports;var Ch=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M447.1 256c0 13.25-10.76 24.01-24.01 24.01H83.9l132.7 126.6c9.625 9.156 9.969 24.41.812 33.94-9.156 9.594-24.34 9.938-33.94.813l-176-168C2.695 268.9.008 262.6.008 256s2.687-12.8 7.437-17.4l176-168c9.555-9.09 24.755-8.75 33.955.85 9.156 9.5 8.812 24.75-.813 33.94l-132.7 126.6h340.1C437.2 232 447.1 242.8 447.1 256z"}})])},kh=[],Ph={},Zh=(0,a.Z)(Ph,Ch,kh,!1,null,null,null);const Dh=Zh.exports;var Eh=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208-93.3 208-208 208z"}})])},Th=[],Ah={},Mh=(0,a.Z)(Ah,Eh,Th,!1,null,null,null);const Vh=Mh.exports;var Bh=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M24 88h16c8.836 0 16-7.164 16-16V56c0-8.838-7.164-16-16-16H24c-8.836 0-16 7.162-16 16v16c0 8.84 7.16 16 16 16zm16 336H24c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.16-16-16-16zM24 184h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16H24c-8.836 0-16 7.162-16 16v16c0 8.8 7.16 16 16 16zm96-96h16c8.836 0 16-7.164 16-16V56c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.84 7.2 16 16 16zm96 0h16c8.836 0 16-7.164 16-16V56c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.84 7.2 16 16 16zm192 0h16c8.836 0 16-7.164 16-16V56c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.84 7.2 16 16 16zm0 96h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.8 7.2 16 16 16zm-96-96h16c8.836 0 16-7.164 16-16V56c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.84 7.2 16 16 16zm-96 96h16c8.836 0 16-7.164 16-16v-16c0-8.838-7.164-16-16-16h-16c-8.836 0-16 7.162-16 16v16c0 8.8 7.2 16 16 16zm208 240h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm0-96h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm-96 96h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm-192 0h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm96-96h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm-192 0H24c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.16-16-16-16zm192 96h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm200-192H16c-8.875 0-16 7.1-16 16v16c0 8.875 7.125 16 16 16h416c8.875 0 16-7.125 16-16v-16c0-8.9-7.1-16-16-16z"}})])},Oh=[],Lh={},$h=(0,a.Z)(Lh,Bh,Oh,!1,null,null,null);const zh=$h.exports;var Nh=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M136 424h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm96-96h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm-96-96h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm96 192h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zM40 136H24c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.16-16-16-16zm0 288H24c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.16-16-16-16zm0-192H24c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.16-16-16-16zm0 96H24c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.16-16-16-16zm384-96h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm0 192h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm0-96h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm0-192h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm-192 96h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm96 0h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm-96-96h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zm96 288h-16c-8.836 0-16 7.162-16 16v16c0 8.836 7.164 16 16 16h16c8.836 0 16-7.164 16-16v-16c0-8.8-7.2-16-16-16zM432 32H16C7.125 32 0 39.13 0 48v16c0 8.875 7.125 16 16 16h416c8.9 0 16-7.12 16-16V48c0-8.87-7.1-16-16-16z"}})])},Hh=[],Rh={},Gh=(0,a.Z)(Rh,Nh,Hh,!1,null,null,null);const Fh=Gh.exports;var Uh=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M496 368h-55.72l38.44-89.7c2.938-6.859.719-14.84-5.312-19.23-6.094-4.422-14.34-4.031-19.94.89l-128 112c-5.031 4.392-6.781 11.44-4.438 17.67C323.4 395.9 329.3 400 336 400h55.72l-38.44 89.7c-2.938 6.859-.719 14.84 5.312 19.23C361.4 510.1 364.7 512 368 512c3.781 0 7.531-1.328 10.53-3.953l128-112c5.031-4.391 6.781-11.44 4.438-17.67C508.6 372.1 502.7 368 496 368zm-352-24.4c-26.5 0-48 21.49-48 47.98s21.5 47.97 48 47.97 48-21.55 48-47.95-21.5-48-48-48zm-42.2-130.7c6.875 6.998 16.47 11.19 26.22 11.19 9.875 0 19.15-4.188 26.15-11.19l78.5-78.46c15.88-15.74 24.25-37.36 23.12-59.72-1-22.24-11.5-43.1-28.75-57.22C198.9-5.623 157.5-5.373 128 16.62 98.5-5.373 57-5.623 29 17.49 11.75 31.61 1.25 52.47.125 74.71-1 97.07 7.375 118.7 23.13 134.6l78.67 78.3zM59.38 54.47c14.89-11.76 34.03-5.9 43.62 3.88l25 24.86 24.88-24.86c12.25-12.24 31.5-13.87 43.63-3.873 9.961 7.963 19.05 29.44 2.375 46.1L128 171.3l-70.87-70.7c-9.09-8.92-15.88-31.03 2.25-46.13zM482.3 0c-1.5 0-2.708.094-4.208.344l-148.6 22.75c-14.62 2.248-25.5 15.76-25.5 31.75v106.7c-5.25-1.125-10.62-1.585-15.99-1.71-35.38 0-63.1 21.54-63.1 48.03 0 26.61 28.62 48.03 63.1 48.03s64.01-21.17 64.01-47.78l-.098-139.9 112-17.24.083 78.61c-5.25-1.125-10.62-1.587-15.99-1.71-35.38 0-63.1 21.51-63.1 47.99s28.62 47.1 63.1 47.1 63.1-21.32 63.1-47.81l.004-144.1C511.1 14.11 498.3 0 482.3 0zM255.9 287.6h-27.4l-7.1-14.1c-4-10.75-14.25-17.74-25.62-17.74H92.13c-11.5 0-21.62 6.996-25.75 17.74l-7 14.12H32c-17.62 0-32 14.37-32 31.98v160.2c0 17.62 14.38 31.98 32 31.98h223.9c17.75 0 32-14.37 32-31.98V319.6c0-18.5-14.3-32-32-32zm-16 176.2H48V335.6h41.25l15.75-32h77.88l15.88 31.98h41.13V463.8z"}})])},Wh=[],jh={},Xh=(0,a.Z)(jh,Uh,Wh,!1,null,null,null);const qh=Xh.exports;var Kh=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zM48 256c0-48.71 16.95-93.47 45.11-128.1l291.9 291.9C349.5 447 304.7 464 256 464c-114.7 0-208-93.3-208-208zm370.9 128.1L127 93.11C162.5 64.95 207.3 48 256 48c114.7 0 208 93.31 208 208 0 48.7-17 93.5-45.1 128.1z"}})])},Yh=[],Jh={},Qh=(0,a.Z)(Jh,Kh,Yh,!1,null,null,null);const eg=Qh.exports;var tg=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M302 357.8c-9.336 47.9-53.78 77.04-117.9 81.34V488c0 13.25-10.81 24-24.06 24s-23.94-10.75-23.94-24v-50.23c-3.416-.365-6.512-.238-10-.723C99.06 433.4 70.16 424.2 44.66 416l-11.88-3.781c-12.62-3.984-19.66-17.45-15.69-30.11 4-12.62 17.31-19.72 30.12-15.67l12.06 3.844c23.62 7.562 50.38 16.14 73.31 19.22 55.44 7.688 114.8-1.938 122.3-40.86C261.9 312.1 235.8 300 154 279.2l-16.03-4.109C90.25 262.6 1.375 239.4 17.97 154.2c9.334-47.94 53.88-77.02 118.1-81.29V24c0-13.25 10.67-24 23.92-24s24.08 10.75 24.08 24v50.13c3.324.357 6.42.355 9.812.826 17.44 2.422 37.5 7.22 63.16 15.11 12.66 3.891 19.78 17.33 15.88 29.98-3.875 12.67-17.25 19.8-30 15.89-23.12-7.109-40.81-11.39-55.66-13.45C132 114.8 72.66 124.4 65.09 163.4c-6.12 31.4 13.75 46.6 85.01 65.2l15.75 4.031C230.4 249.1 318.8 271.6 302 357.8z"}})])},ng=[],og={},sg=(0,a.Z)(og,tg,ng,!1,null,null,null);const ag=sg.exports;var ig=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M160 0c17.7 0 32 14.3 32 32v35.7c1.6.2 3.1.4 4.7.7.4.1.7.1 1.1.2l48 8.8c17.4 3.2 28.9 19.9 25.7 37.2s-19.9 28.9-37.2 25.7l-47.5-8.7c-31.3-4.6-58.9-1.5-78.3 6.2s-27.2 18.3-29 28.1c-2 10.7-.5 16.7 1.2 20.4 1.8 3.9 5.5 8.3 12.8 13.2 16.3 10.7 41.3 17.7 73.7 26.3l2.9.8c28.6 7.6 63.6 16.8 89.6 33.8 14.2 9.3 27.6 21.9 35.9 39.5 8.5 17.9 10.3 37.9 6.4 59.2-6.9 38-33.1 63.4-65.6 76.7-13.7 5.6-28.6 9.2-44.4 11V480c0 17.7-14.3 32-32 32s-32-14.3-32-32v-34.9c-.4-.1-.9-.1-1.3-.2h-.2c-24.4-3.8-64.5-14.3-91.5-26.3-16.1-7.2-23.4-26.1-16.2-42.2S44.9 353 61 360.2c20.9 9.3 55.3 18.5 75.2 21.6 31.9 4.7 58.2 2 76-5.3 16.9-6.9 24.6-16.9 26.8-28.9 1.9-10.6.4-16.7-1.3-20.4-1.9-4-5.6-8.4-13-13.3-16.4-10.7-41.5-17.7-74-26.3l-2.8-.7c-28.5-7.6-63.5-16.9-89.5-33.9-14.2-9.3-27.5-22-35.8-39.6-8.4-17.9-10.1-37.9-6.1-59.2 7.2-38.2 35.8-63 68.3-75.9 13.3-5.3 27.9-8.9 43.2-11V32c0-17.7 14.3-32 32-32z"}})])},rg=[],lg={},cg=(0,a.Z)(lg,ig,rg,!1,null,null,null);const ug=cg.exports;var dg=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M400 200v-86.1L257.9 256 400 398.1V312c0-13.2 10.8-24 24-24s24 10.8 24 24v144c0 3.125-.639 6.238-1.854 9.172a24.021 24.021 0 01-12.96 12.97A23.55 23.55 0 01424 480H280c-13.2 0-24-10.7-24-24s10.75-24 24-24h86.06L224 289.9 81.94 432H168c13.3 0 24 10.8 24 24s-10.7 24-24 24H24c-3.125 0-6.238-.64-9.172-1.852a24.016 24.016 0 01-12.97-12.97A23.856 23.856 0 010 456V312c0-13.2 10.75-24 24-24s24 10.8 24 24v86.06L190.1 256 48 113.9V200c0 13.3-10.75 24-24 24S0 213.3 0 200V56c0-3.125.639-6.238 1.854-9.172a24.021 24.021 0 0112.96-12.97C17.75 32.64 20.87 32 24 32h144c13.3 0 24 10.75 24 24s-10.7 24-24 24H81.94L224 222.1 366.1 80H280c-13.2 0-24-10.75-24-24s10.8-24 24-24h144c3.125 0 6.238.64 9.172 1.852a24.016 24.016 0 0112.97 12.97C447.4 49.75 448 52.87 448 56v144c0 13.3-10.7 24-24 24s-24-10.7-24-24z"}})])},pg=[],hg={},gg=(0,a.Z)(hg,dg,pg,!1,null,null,null);const mg=gg.exports;var vg=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M381.2 172.8c-4.1-7.9-12.3-12.8-21.2-12.8H203.4l50.84-127.1c2.969-7.375 2.062-15.78-2.406-22.38S239.1 0 232 0H56C43.97 0 33.81 8.906 32.22 20.84l-32 240a23.832 23.832 0 005.718 18.96A24.058 24.058 0 0024 288h146.3l-41.78 194.1c-2.406 11.22 3.469 22.56 14 27.09 3.08 2.21 6.28 2.81 9.48 2.81 7.719 0 15.22-3.75 19.81-10.44l208-304c4.99-7.36 5.59-16.86 1.39-24.76zM201 373.9l22.47-104.8c1.531-7.094-.25-14.47-4.812-20.12C214.1 243.3 207.3 240 200 240H51.41L77 48h119.6l-50.9 127.1c-2.9 7.4-2 15.8 2.4 22.4S160 208 168 208h146.5L201 373.9z"}})])},fg=[],yg={},bg=(0,a.Z)(yg,vg,fg,!1,null,null,null);const _g=bg.exports;var Ig=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M361.6 304.6c-25.9 8.3-64.4 13.2-105.6 13.2s-79.6-4.9-105.6-13.2c-9.8-3.1-19.4 5.3-17.7 15.3 7.871 47.25 71.32 80 123.3 80s115.3-32.88 123.3-80c1.5-9.8-7.7-18.4-17.7-15.3zm-8.8-136.2l-7.2 1.9-2.059-7c-4.965-18.12-22.77-31-41.41-28-21.43 3.5-34.39 24.25-28.82 44.5l19.38 70c1.211 4.5 5.934 7.125 10.54 6l70.11-18.25c20.46-5.25 31.97-26.88 24.22-47.13C390.9 172.8 370.9 163.8 352.8 168.4zm-144 87.4c4.48 1.125 9.203-1.5 10.54-6l19.38-70c5.57-20.25-7.387-41-28.82-44.5-18.53-3-36.33 9.875-41.41 28l-2.059 7-7.231-1.9c-18.16-4.625-38.14 4.375-44.8 22-7.7 20.2 3.8 41.9 24.3 47.2l70.1 18.2zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208-93.3 208-208 208z"}})])},wg=[],xg={},Sg=(0,a.Z)(xg,Ig,wg,!1,null,null,null);const Cg=Sg.exports;var kg=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M462.1 62.86C438.8 41.92 408.9 31.1 378.7 32c-37.49 0-75.33 15.4-103 43.98L256 96.25l-19.7-20.27C208.6 47.4 170.8 32 133.3 32c-30.2 0-60.07 9.93-84.26 30.86-62.14 53.79-65.25 149.7-9.23 207.6l193.2 199.7c6.39 6.54 14.59 9.84 22.89 9.84 8.332 0 16.69-3.267 23.01-9.804l193.1-199.7C528.2 212.5 525.1 116.6 462.1 62.86zM437.6 237.1L256 424.9 74.34 237.1c-32.24-33.3-39.88-99 6.12-137.95 39.9-34.54 94.59-17.5 121.4 10.17l54.17 55.92 54.16-55.92c26.42-27.27 81.26-44.89 121.4-10.17C477.1 138.6 470.5 203.1 437.6 237.1z"}})])},Pg=[],Zg={},Dg=(0,a.Z)(Zg,kg,Pg,!1,null,null,null);const Eg=Dg.exports;var Tg=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M24 168h328c1.359 0 2.533-.557 3.83-.773C365.8 200 395.1 224 432 224c44.2 0 80-35.8 80-80s-35.8-80-80-80c-36.05 0-66.17 23.1-76.17 56.77-1.33-.17-2.43-.77-3.83-.77H24c-13.2 0-24 10.8-24 24s10.8 24 24 24zm408-56c17.64 0 32 14.36 32 32s-14.36 32-32 32-32-14.36-32-32 14.4-32 32-32zm56 232H190.7c0-.018 10.92-.033-29.95-.049-1.602 0-2.998.611-4.51.91C146.3 312.1 116.1 288 80 288c-44.18 0-80 35.8-80 80s35.82 80 80 80c36.1 0 66.25-24.06 76.21-56.91 1.49.31 2.89.91 4.49.91 40.88-.016 29.95-.031 29.95-.049h297.4C501.2 391.1 512 381.2 512 368c0-13.2-10.8-24-24-24zM80 400c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"}})])},Ag=[],Mg={},Vg=(0,a.Z)(Mg,Tg,Ag,!1,null,null,null);const Bg=Vg.exports;var Og=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M170 20H30c-5.523 0-10 4.477-10 10v140c0 5.523 4.477 10 10 10h140c5.523 0 10-4.477 10-10V30c0-5.523-4.477-10-10-10zM30 0C13.431 0 0 13.431 0 30v140c0 16.569 13.431 30 30 30h140c16.569 0 30-13.431 30-30V30c0-16.569-13.431-30-30-30H30z",fill:"currentColor"}})])},Lg=[],$g={},zg=(0,a.Z)($g,Og,Lg,!1,null,null,null);const Ng=zg.exports;var Hg=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M65 180v20H30c-16.569 0-30-13.431-30-30v-35h20v35c0 5.523 4.477 10 10 10h35zm0-160H30c-5.523 0-10 4.477-10 10v35H0V30C0 13.431 13.431 0 30 0h35v20zm70 160h35c5.523 0 10-4.477 10-10v-35h20v35c0 16.569-13.431 30-30 30h-35v-20zm0-160V0h35c16.569 0 30 13.431 30 30v35h-20V30c0-5.523-4.477-10-10-10h-35z",fill:"currentColor"}})])},Rg=[],Gg={},Fg=(0,a.Z)(Gg,Hg,Rg,!1,null,null,null);const Ug=Fg.exports;var Wg=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{opacity:".3","fill-rule":"evenodd","clip-rule":"evenodd",d:"M65 180v20H30c-16.569 0-30-13.431-30-30v-35h20v35c0 5.523 4.477 10 10 10h35zm70 0h35c5.523 0 10-4.477 10-10v-35h20v35c0 16.569-13.431 30-30 30h-35v-20zm0-160V0h35c16.569 0 30 13.431 30 30v35h-20V30c0-5.523-4.477-10-10-10h-35z",fill:"currentColor"}}),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M65 20H30c-5.523 0-10 4.477-10 10v35H0V30C0 13.431 13.431 0 30 0h35v20z",fill:"currentColor"}})])},jg=[],Xg={},qg=(0,a.Z)(Xg,Wg,jg,!1,null,null,null);const Kg=qg.exports;var Yg=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{opacity:".3","fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 65H0V30C0 13.431 13.431 0 30 0h35v20H30c-5.523 0-10 4.477-10 10v35zm0 70v35c0 5.523 4.477 10 10 10h35v20H30c-16.569 0-30-13.431-30-30v-35h20zm160 0h20v35c0 16.569-13.431 30-30 30h-35v-20h35c5.523 0 10-4.477 10-10v-35z",fill:"currentColor"}}),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M180 65V30c0-5.523-4.477-10-10-10h-35V0h35c16.569 0 30 13.431 30 30v35h-20z",fill:"currentColor"}})])},Jg=[],Qg={},em=(0,a.Z)(Qg,Yg,Jg,!1,null,null,null);const tm=em.exports;var nm=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{opacity:".3","fill-rule":"evenodd","clip-rule":"evenodd",d:"M135 20V0h35c16.569 0 30 13.431 30 30v35h-20V30c0-5.523-4.477-10-10-10h-35zm-70 0H30c-5.523 0-10 4.477-10 10v35H0V30C0 13.431 13.431 0 30 0h35v20zm0 160v20H30c-16.569 0-30-13.431-30-30v-35h20v35c0 5.523 4.477 10 10 10h35z",fill:"currentColor"}}),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M135 180h35c5.523 0 10-4.477 10-10v-35h20v35c0 16.569-13.431 30-30 30h-35v-20z",fill:"currentColor"}})])},om=[],sm={},am=(0,a.Z)(sm,nm,om,!1,null,null,null);const im=am.exports;var rm=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{opacity:".3","fill-rule":"evenodd","clip-rule":"evenodd",d:"M180 135h20v35c0 16.569-13.431 30-30 30h-35v-20h35c5.523 0 10-4.477 10-10v-35zm0-70V30c0-5.523-4.477-10-10-10h-35V0h35c16.569 0 30 13.431 30 30v35h-20zM20 65H0V30C0 13.431 13.431 0 30 0h35v20H30c-5.523 0-10 4.477-10 10v35z",fill:"currentColor"}}),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 135v35c0 5.523 4.477 10 10 10h35v20H30c-16.569 0-30-13.431-30-30v-35h20z",fill:"currentColor"}})])},lm=[],cm={},um=(0,a.Z)(cm,rm,lm,!1,null,null,null);const dm=um.exports;var pm=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M180 20H20v160h160V20zM0 0v200h200V0H0z",fill:"currentColor"}})])},hm=[],gm={},mm=(0,a.Z)(gm,pm,hm,!1,null,null,null);const vm=mm.exports;var fm=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M200 20H0V0h200v20z",fill:"currentColor"}}),t("path",{attrs:{opacity:".3","fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 200V20h20v160h160V20h20v180H0z",fill:"currentColor"}})])},ym=[],bm={},_m=(0,a.Z)(bm,fm,ym,!1,null,null,null);const Im=_m.exports;var wm=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M180 200V0h20v200h-20z",fill:"currentColor"}}),t("path",{attrs:{opacity:".3","fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0h180v20H20v160h160v20H0V0z",fill:"currentColor"}})])},xm=[],Sm={},Cm=(0,a.Z)(Sm,wm,xm,!1,null,null,null);const km=Cm.exports;var Pm=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 180h200v20H0v-20z",fill:"currentColor"}}),t("path",{attrs:{opacity:".3","fill-rule":"evenodd","clip-rule":"evenodd",d:"M200 0v180h-20V20H20v160H0V0h200z",fill:"currentColor"}})])},Zm=[],Dm={},Em=(0,a.Z)(Dm,Pm,Zm,!1,null,null,null);const Tm=Em.exports;var Am=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}},e.$listeners),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 0v200H0V0h20z",fill:"currentColor"}}),t("path",{attrs:{opacity:".3","fill-rule":"evenodd","clip-rule":"evenodd",d:"M200 200H20v-20h160V20H20V0h180v200z",fill:"currentColor"}})])},Mm=[],Vm={},Bm=(0,a.Z)(Vm,Am,Mm,!1,null,null,null);const Om=Bm.exports;var Lm=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M448 80c0-44.18-35.8-80-80-80s-80 35.82-80 80c0 35.77 23.62 65.69 56 75.93V192c0 22.06-17.94 40-40 40H144c-14.48 0-27.94 3.848-40 10.06V155.9c32.4-10.2 56-40.1 56-75.9 0-44.18-35.8-80-80-80C35.82 0 0 35.82 0 80c0 35.77 23.62 65.69 56 75.93v200.1C23.63 366.3 0 396.2 0 432c0 44.2 35.82 80 80 80 44.2 0 80-35.8 80-80 0-35.77-23.62-65.69-56-75.93V320c0-22.06 17.94-40 40-40h160c48.53 0 88-39.47 88-88v-36.1c32.4-10.2 56-40.1 56-75.9zM80 48c17.64 0 32 14.36 32 32s-14.36 32-32 32-32-14.36-32-32 14.36-32 32-32zm0 416c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm288-352c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.4 32-32 32z"}})])},$m=[],zm={},Nm=(0,a.Z)(zm,Lm,$m,!1,null,null,null);const Hm=Nm.exports;var Rm=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M502.6 70.63L441.35 9.38C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.02 256c.88 35.4 29.58 64 64.88 64h192c35.2 0 64-28.8 64-64V93.25c0-8.48-3.4-16.62-9.4-22.62zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16V64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1v192zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16l.88-255.9c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64L0 448c.002 35.3 28.66 64 64 64h192c35.2 0 64-28.8 64-64v-32h-47.1l-.9 32z"}})])},Gm=[],Fm={},Um=(0,a.Z)(Fm,Rm,Gm,!1,null,null,null);const Wm=Um.exports;var jm=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208-93.3 208-208 208zm40-128h-16v-88c0-13.2-10.7-24-24-24h-32c-13.2 0-24 10.8-24 24s10.8 24 24 24h8v64h-16c-13.2 0-24 10.8-24 24s10.8 24 24 24h80c13.25 0 24-10.75 24-24s-10.7-24-24-24zm-40-144c17.67 0 32-14.33 32-32s-14.33-32-32-32-32 14.3-32 32 14.3 32 32 32z"}})])},Xm=[],qm={},Km=(0,a.Z)(qm,jm,Xm,!1,null,null,null);const Ym=Km.exports;var Jm=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M256 512a256 256 0 100-512 256 256 0 100 512zm-40-176h24v-64h-24c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-80c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 110 64 32 32 0 110-64z"}})])},Qm=[],ev={},tv=(0,a.Z)(ev,Jm,Qm,!1,null,null,null);const nv=tv.exports;var ov=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M256 512a256 256 0 100-512 256 256 0 100 512zm-86.2-346.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1 0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6-13.3 0-24-10.7-24-24v-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1 0-8.4-6.8-15.1-15.1-15.1h-58.3c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1164 0 32 32 0 11-64 0z"}})])},sv=[],av={},iv=(0,a.Z)(av,ov,sv,!1,null,null,null);const rv=iv.exports;var lv=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M176.1 103c5.6 4.7 7.9 10.8 7.9 17s-2.3 12.3-7.9 16.1L81.94 232H488c13.3 0 24 10.8 24 24s-10.75 24-24 24H81.94l95.03 95.03c9.375 9.375 9.375 24.56 0 33.94s-24.56 9.375-33.94 0l-136-136c-9.375-9.375-9.375-24.56 0-33.94l136-136c9.37-9.37 24.57-9.37 33.07-.03z"}})])},cv=[],uv={},dv=(0,a.Z)(uv,lv,cv,!1,null,null,null);const pv=dv.exports;var hv=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M256 16C123.5 16 16 123.5 16 256s107.5 240 240 240 239.1-107.5 239.1-240S388.5 16 256 16zm166 144h-48.7c-6.391-27.41-15.39-52.18-26.48-73.1C378.2 103.8 404.2 129.2 422 160zm-86 96c0 16.98-1.295 32.82-3.176 48H179.2c-1.9-15.2-3.2-31.9-3.2-48s1.295-32.82 3.176-48h153.6C334.7 223.2 336 239 336 256zm-80 192c-21.79 0-50.87-36.42-67.28-96h134.6c-16.42 59.6-45.52 96-67.32 96zm-67.3-288c16.4-59.6 45.5-96 67.3-96s50.87 36.42 67.28 96H188.7zm-23.5-73.1c-11.1 20.9-20.1 45.7-26.5 73.1H89.98c17.82-30.8 43.82-56.2 75.22-73.1zM70.32 208h60.25c-1.67 15.5-2.57 31.6-2.57 48s.9 32.5 2.6 48H70.32C66.34 288.6 64 272.6 64 256s2.34-32.6 6.32-48zm19.66 144h48.72c6.391 27.41 15.39 52.18 26.48 73.1-31.38-16.9-57.38-42.3-75.2-73.1zm256.82 73.1c11.1-20.9 20.1-45.7 26.5-73.1h48.74c-17.84 30.8-43.84 56.2-75.24 73.1zM441.7 304h-60.25c1.68-15.51 2.57-31.56 2.57-48s-.89-32.49-2.57-48h60.25c4 15.4 6.3 31.4 6.3 48s-2.3 32.6-6.3 48z"}})])},gv=[],mv={},vv=(0,a.Z)(mv,hv,gv,!1,null,null,null);const fv=vv.exports;var yv=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M175.1 416c-26.51 0-47.1 21.49-47.1 48s21.5 48 47.1 48 47.1-21.49 47.1-48-19.7-48-47.1-48zm288 0c-26.51 0-47.1 21.49-47.1 48s21.49 48 47.1 48 47.1-21.49 47.1-48-19.7-48-47.1-48zM569.5 44.73C563.391 36.636 554.08 32 543.94 32H121.1l-1.5-12.49C117.4 8.189 107.5 0 96 0H23.1C10.75 0 0 10.74 0 23.1 0 37.25 10.75 48 23.1 48h52.14l60.28 316.5C138.6 375.8 148.5 384 160 384h328c13.25 0 24-10.75 24-23.1 0-14.2-10.7-24.9-24-24.9H179.9l-9.2-48h318.4c14.28 0 26.84-9.479 30.77-23.21l54.86-191.1c2.77-10.64.87-20.86-5.23-28.96zM477 240H161.6L131.13 80h391.7L477 240z"}})])},bv=[],_v={},Iv=(0,a.Z)(_v,yv,bv,!1,null,null,null);const wv=Iv.exports;var xv=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M458.4 211.9L300.2 53.7C287.6 41.11 265.6 32 247.8 32H81c-27.02 0-49 21.99-49 49v166.8c0 17.75 9.11 39.75 21.67 52.32l158.2 158.2c14.44 14.41 33.38 21.61 52.33 21.61s37.91-7.204 52.33-21.63l141.8-141.8c28.87-28.8 28.87-75.7.07-104.6zm-34 70.7L282.6 424.4c-10.13 10.16-26.66 10.14-36.78.016L87.61 266.2c-3.56-3.6-7.61-13.3-7.61-18.4V81.01l1-1h166.8c5.032 0 14.81 4.047 18.38 7.61l158.2 158.2c10.22 9.28 10.22 26.68.02 36.78zM168 144c0 13.26-10.75 24-24 24s-24-10.74-24-24 10.8-24 24-24c13.3 0 24 10.7 24 24zm368.5 26.7L400.8 38.8c-9.453-9.219-24.67-8.1-33.94.5-9.234 9.5-9.015 24.69.5 33.94l135.5 131.7c16.28 16.25 25.23 37.87 25.23 60.87s-8.969 44.62-25.3 60.95l-111.7 112.4c-9.344 9.406-9.312 24.59.094 33.94a23.928 23.928 0 0016.92 6.984c6.172 0 12.33-2.359 17.02-7.078l111.7-112.3C562 335.3 576 301.6 576 265.7s-14-69.5-39.5-95z"}})])},Sv=[],Cv={},kv=(0,a.Z)(Cv,xv,Sv,!1,null,null,null);const Pv=kv.exports;var Zv=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M440 120h48c13.25 0 24-10.75 24-23.1S501.3 72 488 72h-48c-13.2 0-24 10.75-24 23.1s10.8 24.9 24 24.9zm48 112H344c-13.2 0-24 10.8-24 24s10.75 24 24 24h144c13.3 0 24-10.7 24-24s-10.7-24-24-24zM329.5 64H22.48C3.58 64-6.85 85.5 5.07 99.88L112 225.8V368c0 7.828 3.812 15.17 10.25 19.66l79.1 55.98c5.15 2.96 9.95 4.36 14.55 4.36 12.4 0 24.1-9.8 24.1-24.9V225.8L346.9 99.9c11.9-14.4 1.5-35.9-17.4-35.9zM203.4 194.7L192 208.2v169.7l-32-22.39V208.2L78.34 112h195.3l-70.24 82.7zM488 392H344c-13.2 0-24 10.8-24 24s10.75 24 24 24h144c13.25 0 24-10.75 24-24s-10.7-24-24-24z"}})])},Dv=[],Ev={},Tv=(0,a.Z)(Ev,Zv,Dv,!1,null,null,null);const Av=Tv.exports;var Mv=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M183 295l-81.38 81.38-47.03-47.03a31.986 31.986 0 00-22.63-9.367c-4.117 0-8.279.809-12.25 2.43a31.985 31.985 0 00-19.75 29.56v135.1C.001 501.3 10.75 512 24 512h136c12.94 0 24.63-7.797 29.56-19.75a31.952 31.952 0 00-6.938-34.87l-47.03-47.03 81.38-81.38c9.375-9.375 9.375-24.56 0-33.94S192.4 285.7 183 295zM487.1 0h-136c-12.94 0-24.63 7.797-29.56 19.75a31.952 31.952 0 006.938 34.87l47.04 47.03-81.38 81.38c-9.375 9.375-9.375 24.56 0 33.94s24.56 9.375 33.94 0l81.38-81.38 47.03 47.03a31.986 31.986 0 0022.63 9.35c4.117 0 8.275-.792 12.24-2.413C504.2 184.6 512 172.9 512 159.1v-136C512 10.75 501.3 0 487.1 0z"}})])},Vv=[],Bv={},Ov=(0,a.Z)(Bv,Mv,Vv,!1,null,null,null);const Lv=Ov.exports;var $v=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M488.1 23.03c-9.375-9.375-24.56-9.375-33.94 0l-81.38 81.38-47.03-47.03a31.986 31.986 0 00-22.63-9.35c-4.117 0-8.275.792-12.24 2.413a31.985 31.985 0 00-19.75 29.56v135.1c0 13.25 10.74 23.1 24 23.1h136c12.94 0 24.63-7.797 29.56-19.75a31.952 31.952 0 00-6.938-34.87l-47.04-47.03 81.38-81.38C498.3 47.59 498.3 32.41 488.1 23.03zM215.1 272h-136c-12.94 0-24.63 7.797-29.56 19.75-4.07 11.95-1.32 25.75 7.83 34.85l47.04 47.03-81.38 81.38c-9.375 9.375-9.375 24.56 0 33.94s24.56 9.375 33.94 0l81.38-81.38 47.03 47.03a31.986 31.986 0 0022.63 9.367c4.117 0 8.279-.809 12.25-2.43a31.985 31.985 0 0019.75-29.56V296c-.91-13.3-10.71-24-24.91-24z"}})])},zv=[],Nv={},Hv=(0,a.Z)(Nv,$v,zv,!1,null,null,null);const Rv=Hv.exports;var Gv=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M567.5 229.7c10.1 8.6 11.4 23.7 2.8 33.8-8.6 10.1-23.7 11.4-33.8 2.8L512 245.5V432c0 44.2-35.8 80-80 80H144c-44.18 0-80-35.8-80-80V245.5l-24.47 20.8c-10.11 8.6-25.25 7.3-33.83-2.8-8.576-10.1-7.334-25.2 2.773-33.8L272.5 5.7c8.9-7.6 22.1-7.6 31 0l264 224zM144 464h48V312c0-22.1 17.9-40 40-40h112c22.1 0 40 17.9 40 40v152h48c17.7 0 32-14.3 32-32V204.8L288 55.47 112 204.8V432c0 17.7 14.3 32 32 32zm96 0h96V320h-96v144z"}})])},Fv=[],Uv={},Wv=(0,a.Z)(Uv,Gv,Fv,!1,null,null,null);const jv=Wv.exports;var Xv=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M144 288H48c-26.51 0-48 21.5-48 48v96c0 26.5 21.49 48 48 48h96c26.5 0 48-21.5 48-48v-96c0-26.5-21.5-48-48-48zm0 144H48v-96h96v96zm0-400H48C21.49 32 0 53.49 0 80v96c0 26.5 21.49 48 48 48h96c26.5 0 48-21.5 48-48V80c0-26.51-21.5-48-48-48zm0 144H48V80h96v96zm256 112h-96c-26.5 0-48 21.5-48 48v96c0 26.51 21.49 48 48 48h96c26.51 0 48-21.49 48-48v-96c0-26.5-21.5-48-48-48zm0 144h-96v-96h96v96zm0-400h-96c-26.5 0-48 21.49-48 48v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V80c0-26.51-21.5-48-48-48zm0 144h-96V80h96v96z"}})])},qv=[],Kv={},Yv=(0,a.Z)(Kv,Xv,qv,!1,null,null,null);const Jv=Yv.exports;var Qv=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M80 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm0 256h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48v-96c0-26.5 21.5-48 48-48zM288 80c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48h-96c-26.5 0-48-21.5-48-48V80zm96 192c13.3 0 24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24h-64v64c0 13.3-10.7 24-24 24s-24-10.7-24-24v-64h-64c-13.3 0-24-10.7-24-24s10.7-24 24-24h64v-64c0-13.3 10.7-24 24-24z"}})])},ef=[],tf={},nf=(0,a.Z)(tf,Qv,ef,!1,null,null,null);const of=nf.exports;var sf=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M448 96H275.9l-49.2-45.25C214.7 38.74 198.5 32 181.5 32H64C28.65 32 0 60.66 0 96v320c0 35.34 28.65 64 64 64h384c35.35 0 64-28.66 64-64V160c0-35.3-28.7-64-64-64zM64 80h117.5c4.273 0 8.293 1.664 11.31 4.688L256 144h192c8.822 0 16 7.176 16 16v32H48V96c0-8.82 7.18-16 16-16zm384 352H64c-8.822 0-16-7.176-16-16V240h416v176c0 8.8-7.2 16-16 16z"}})])},af=[],rf={},lf=(0,a.Z)(rf,sf,af,!1,null,null,null);const cf=lf.exports;var uf=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M576 112c8.823 0 16 7.178 16 16v256c0 8.822-7.177 16-16 16H64c-8.823 0-16-7.178-16-16V128c0-8.822 7.177-16 16-16h512zm0-48.9H64c-35.35 0-64 28.65-64 63.1v256c0 35.35 28.65 64 64 64h512c35.35 0 64-28.65 64-64v-256c0-33.55-28.7-63.1-64-63.1z"}})])},df=[],pf={},hf=(0,a.Z)(pf,uf,df,!1,null,null,null);const gf=hf.exports;var mf=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M352 48c8.822 0 16 7.178 16 16v384c0 8.822-7.178 16-16 16H96c-8.822 0-16-7.178-16-16V64c0-8.822 7.178-16 16-16h256zm0-48H96C60.65 0 32 28.65 32 64v384c0 35.35 28.65 64 64 64h256c35.35 0 64-28.65 64-64V64c0-35.35-28.7-64-64-64z"}})])},vf=[],ff={},yf=(0,a.Z)(ff,mf,vf,!1,null,null,null);const bf=yf.exports;var _f=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.006 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6c0-16.9-6.7-33.2-18.7-45.22zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160V128c0 17.67 14.33 32 32 32h79.1v288zM96 280c0 13.3 10.8 24 24 24h144c13.3 0 24-10.7 24-24s-10.7-24-24-24H120c-13.2 0-24 10.8-24 24zm168 72H120c-13.2 0-24 10.8-24 24s10.75 24 24 24h144c13.25 0 24-10.75 24-24s-10.7-24-24-24z"}})])},If=[],wf={},xf=(0,a.Z)(wf,_f,If,!1,null,null,null);const Sf=xf.exports;var Cf=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M576 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h512c35.35 0 64-28.65 64-64V96c0-35.35-28.7-64-64-64zM392 80v352H248V80h144zM48 416V96c0-8.822 7.178-16 16-16h136v352H64c-8.82 0-16-7.2-16-16zm544 0c0 8.822-7.178 16-16 16H440V80h136c8.822 0 16 7.178 16 16v320z"}})])},kf=[],Pf={},Zf=(0,a.Z)(Pf,Cf,kf,!1,null,null,null);const Df=Zf.exports;var Ef=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M480 96H376c-13.2 0-24 10.8-24 24s10.75 24 24 24h104c61.75 0 112 50.25 112 112s-50.25 112-112 112H376c-13.25 0-24 10.75-24 24s10.8 24 24 24h104c88.22 0 160-71.78 160-160S568.2 96 480 96zM264 368H160c-61.75 0-112-50.25-112-112s50.25-112 112-112h104c13.3 0 24-10.7 24-24s-10.7-24-24-24H160C71.78 96 0 167.8 0 256s71.78 160 160 160h104c13.3 0 24-10.7 24-24s-10.7-24-24-24zm-72-112c0 13.25 10.75 24 24 24h208c13.3 0 24-10.7 24-24s-10.75-24-24-24H216c-13.2 0-24 10.8-24 24z"}})])},Tf=[],Af={},Mf=(0,a.Z)(Af,Ef,Tf,!1,null,null,null);const Vf=Mf.exports;var Bf=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M127.8 306.9c-9.369 9.371-9.369 24.57 0 33.94l11.31 11.31c9.37 9.371 24.57 9.372 33.94.001l64.57-64.57 41.37 41.38C283.6 333.6 289.8 336 296 336c3.094 0 6.219-.594 9.188-1.812C314.2 330.5 320 321.7 320 312V184c0-13.2-10.7-24-24-24H168c-9.7 0-18.5 5.8-22.2 14.8s-1.6 19.3 5.2 25.3l41.37 41.38-64.57 65.42zM0 96v320c0 35.34 28.65 64 64 64h320c35.35 0 64-28.66 64-64V96c0-35.34-28.65-64-64-64H64C28.65 32 0 60.66 0 96zm48 0c0-8.82 7.178-16 16-16h320c8.822 0 16 7.18 16 16v320c0 8.82-7.178 16-16 16H64c-8.822 0-16-7.18-16-16V96z"}})])},Of=[],Lf={},$f=(0,a.Z)(Lf,Bf,Of,!1,null,null,null);const zf=$f.exports;var Nf=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M257.1 128h-52c-38.1 0-69.1 31-69.1 70 0 13 11 24 24 24s24-11 24-24c0-12 9.1-22 21.1-22h52c12 0 22.9 10 22.9 22 0 8-4 15-11 19l-57 34c-8 5-12 13-12 21v16c0 13 11 24 24 24s24-11 24-24v-2l45.1-28c21.9-13 34.9-36 34.9-60 0-39-31-70-70.9-70zM224 336c-18 0-32 14-32 32s13.1 32 32 32c17.1 0 32-14 32-32s-14.9-32-32-32zM384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.7-64-64-64zm16 384c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V96c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16v320z"}})])},Hf=[],Rf={},Gf=(0,a.Z)(Rf,Nf,Hf,!1,null,null,null);const Ff=Gf.exports;var Uf=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M296 160c-30.93 0-56 25.07-56 56s25.07 56 56 56c2.74 0 5.365-.426 8-.807V280c0 13.23-10.77 24-24 24-13.2 0-24 10.8-24 24s10.8 24 24 24c39.7 0 72-32.3 72-72v-64c0-30.9-25.1-56-56-56zm-144 0c-30.9 0-56 25.1-56 56s25.1 56 56 56c2.7 0 5.4-.4 8-.8v8.8c0 13.2-10.8 24-24 24-13.25 0-24 10.75-24 24s10.8 24 24 24c39.7 0 72-32.3 72-72v-64c0-30.9-25.1-56-56-56zM384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.7-64-64-64zm16 384c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V96c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16v320z"}})])},Wf=[],jf={},Xf=(0,a.Z)(jf,Uf,Wf,!1,null,null,null);const qf=Xf.exports;var Kf=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M504.3 238.4l-112-104c-4.5-4.2-10.4-6.4-17.2-6.4a23.995 23.995 0 00-23.999 24l.001 80h-192l-.001-80a23.99 23.99 0 00-14.41-22c-2.191-1.3-5.491-2-8.691-2-5.9 0-11.8 2.2-16.3 6.4l-112 104c-9.781 9.094-9.781 26.09 0 35.19l112 104c4.5 4.21 10.4 6.41 16.3 6.41a23.995 23.995 0 0023.999-24l.001-80h192l-.001 80a23.99 23.99 0 0014.41 22c3.091 1.3 6.391 2 8.691 2 5.947 0 11.81-2.207 16.33-6.406l112-104c10.67-9.094 10.67-26.094.87-35.194z"}})])},Yf=[],Jf={},Qf=(0,a.Z)(Jf,Kf,Yf,!1,null,null,null);const ey=Qf.exports;var ty=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M512 256c0 141.4-114.6 256-256 256S0 397.4 0 256c0-53.3 16.29-102.8 44.15-143.8 7.45-10.9 22.38-13.77 33.34-6.3 10.96 7.4 13.81 22.4 6.36 33.3C61.22 172.5 47.1 212.7 47.1 256c0 114.9 94 208 208 208C370.9 464 464 370.9 464 256c0-106.8-80.4-194.73-184-206.63V104c0 13.3-10.7 24-24.9 24-12.4 0-24-10.7-24-24V24c0-13.25 11.6-24 24-24C397.4 0 512 114.6 512 256zm-239.9-17c10.2 9.4 10.2 24.6 0 33.1-8.5 10.2-23.7 10.2-33.1 0l-80-80c-9.3-8.5-9.3-23.7 0-33.1 9.4-9.3 24.6-9.3 33.1 0l80 80z"}})])},ny=[],oy={},sy=(0,a.Z)(oy,ty,ny,!1,null,null,null);const ay=sy.exports;var iy=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M0 24C0 10.75 10.75 0 24 0h336c13.3 0 24 10.75 24 24s-10.7 24-24 24h-8v18.98c0 40.32-16.9 78.12-44.5 107.52L225.9 256l81.6 81.5C335.1 366 352 404.7 352 445v19h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.25 0-24-10.7-24-24s10.75-24 24-24h8v-19c0-40.3 16.01-79 44.52-107.5L158.1 256l-81.58-81.5C48.01 145.1 32 107.3 32 66.98V48h-8C10.75 48 0 37.25 0 24zm99.78 360H284.2c-3.2-4.4-6.8-8.6-10.7-12.5L192 289.9l-81.5 81.6c-3.9 3.9-8.4 8.1-10.72 12.5zM284.2 128c11.9-17.6 19.8-38.97 19.8-61.02V48H80v18.98c0 22.05 7 43.42 19.78 61.02H284.2z"}})])},ry=[],ly={},cy=(0,a.Z)(ly,iy,ry,!1,null,null,null);const uy=cy.exports;var dy=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M400 32H48A48 48 0 000 80v352a48 48 0 0048 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0048-48V80a48 48 0 00-48-48z"}})])},py=[],hy={},gy=(0,a.Z)(hy,dy,py,!1,null,null,null);const my=gy.exports;var vy=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M328 272c-39.8 0-72 32.2-72 72s32.2 72 72 72c8.322 0 16.19-1.695 23.62-4.293C349.7 440.8 325.6 464 296 464c-13.25 0-24 10.75-24 24s10.8 24 24 24c57.34 0 104-46.66 104-104v-64c0-39.8-32.2-72-72-72zm0 96c-13.23 0-24-10.77-24-24s10.77-24 24-24 24 10.8 24 24-10.8 24-24 24zm176-96c-39.76 0-72 32.23-72 72 0 39.76 32.24 72 72 72 8.322 0 16.19-1.695 23.62-4.293C525.7 440.8 501.6 464 472 464c-13.25 0-24 10.75-24 24s10.8 24 24 24c57.34 0 104-46.66 104-104v-64c0-39.8-32.2-72-72-72zm0 96c-13.23 0-24-10.77-24-24s10.77-24 24-24 24 10.77 24 24c0 13.2-10.8 24-24 24zM320 168c0-39.8-32.2-72-72-72-8.3 0-16.2 1.7-23.6 4.3 1.9-29.13 26-52.3 55.6-52.3 13.25 0 24-10.75 24-24S293.3 0 280 0c-57.3 0-104 46.66-104 104v64c0 39.77 32.24 72 72 72s72-32.2 72-72zm-72 24c-13.2 0-24-10.8-24-24s10.8-24 24-24 24 10.8 24 24-10.8 24-24 24zM72 96c-8.32 0-16.19 1.7-23.62 4.3C50.32 71.17 74.39 48 104 48c13.3 0 24-10.75 24-24S117.3 0 104 0C46.66 0 0 46.66 0 104v64c0 39.8 32.24 72 72 72s72-32.2 72-72-32.2-72-72-72zm0 96c-13.23 0-24-10.8-24-24 0-13.23 10.77-24 24-24s24 10.8 24 24-10.77 24-24 24z"}})])},fy=[],yy={},by=(0,a.Z)(yy,vy,fy,!1,null,null,null);const _y=by.exports;var Iy=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M112 112c-17.67 0-32 14.33-32 32s14.33 32 32 32c17.68 0 32-14.33 32-32s-14.3-32-32-32zm336-16c0-35.35-28.65-64-64-64H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96zm-48 320c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16v-48h352v48zm0-96h-28.76l-96.58-144.9a16.11 16.11 0 00-13.36-7.1 15.978 15.978 0 00-13.31 7.125l-62.74 94.11L162.9 238.6c-3-4.2-7.8-6.6-12.9-6.6a16.007 16.007 0 00-12.93 6.574L77.7 320H48V96c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16v224z"}})])},wy=[],xy={},Sy=(0,a.Z)(xy,Iy,wy,!1,null,null,null);const Cy=Sy.exports;var ky=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M616 232h-80V123.3c23.4-9.5 40-32.46 40-59.3 0-35.34-28.65-64-64-64s-64 28.66-64 64c0 26.84 16.56 49.75 40 59.25V232H152V123.3c23.4-9.5 40-32.46 40-59.3 0-35.34-28.65-64-64-64S64 28.66 64 64c0 26.84 16.56 49.75 40 59.25V232H24c-13.25 0-24 10.8-24 24s10.75 24 24 24h272v108.7c-23.4 9.6-40 32.5-40 59.3 0 35.34 28.65 64 64 64s64-28.66 64-64c0-26.84-16.56-49.75-40-59.25V280h272c13.3 0 24-10.7 24-24s-10.7-24-24-24zM512 40c13.23 0 24 10.77 24 24s-10.77 24-24 24-24-10.77-24-24 10.8-24 24-24zm-384 0c13.23 0 24 10.77 24 24s-10.77 24-24 24c-13.2 0-24-10.77-24-24s10.8-24 24-24zm192 432c-13.23 0-24-10.77-24-24s10.77-24 24-24 24 10.77 24 24c0 13.2-10.8 24-24 24z"}})])},Py=[],Zy={},Dy=(0,a.Z)(Zy,ky,Py,!1,null,null,null);const Ey=Dy.exports;var Ty=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M96 191.1H32c-17.67 0-32 14.33-32 31.1v223.1c0 17.67 14.33 31.1 32 31.1h64c17.67 0 32-14.33 32-31.1V223.1c0-16.8-14.3-32-32-32zM512 227c0-36.89-30.05-66.92-66.97-66.92h-99.86C354.7 135.1 360 113.5 360 100.8c0-33.8-26.2-68.78-70.06-68.78-46.61 0-59.36 32.44-69.61 58.5-31.66 80.5-60.33 66.39-60.33 93.47 0 12.84 10.36 23.99 24.02 23.99a23.88 23.88 0 0014.97-5.26c76.76-61.37 57.97-122.7 90.95-122.7 16.08 0 22.06 12.75 22.06 20.79 0 7.404-7.594 39.55-25.55 71.59a23.934 23.934 0 00-3.066 11.72c0 13.92 11.43 23.1 24 23.1h137.6C455.5 208.1 464 216.6 464 227c0 9.809-7.766 18.03-17.67 18.71-12.66.86-22.36 11.4-22.36 23.94 0 15.47 11.39 15.95 11.39 28.91 0 25.37-35.03 12.34-35.03 42.15 0 11.22 6.392 13.03 6.392 22.25 0 22.66-29.77 13.76-29.77 40.64 0 4.515 1.11 5.961 1.11 9.456 0 10.45-8.516 18.95-18.97 18.95h-52.53c-25.62 0-51.02-8.466-71.5-23.81l-36.66-27.51a23.851 23.851 0 00-14.38-4.811c-13.85 0-24.03 11.38-24.03 24.04 0 7.287 3.312 14.42 9.596 19.13l36.67 27.52C235 468.1 270.6 480 306.6 480h52.53c35.33 0 64.36-27.49 66.8-62.2 17.77-12.23 28.83-32.51 28.83-54.83a65.97 65.97 0 00-.64-9.122c17.84-12.15 29.28-32.58 29.28-55.28 0-5.311-.641-10.54-1.876-15.64C499.9 270.1 512 250.2 512 227z"}})])},Ay=[],My={},Vy=(0,a.Z)(My,Ty,Ay,!1,null,null,null);const By=Vy.exports;var Oy=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M568.5 142.6L424.5 7.5c-9.625-9.156-24.81-8.656-33.91.969-9.125 9.625-8.688 24.81.969 33.91l100.1 94.56h-163.4C287.5 134.2 249.7 151 221 179.4c-29 28.8-45 67.3-45 108.6v87.1c0 13.25 10.75 23.1 24 23.1s24-8.9 24-22.2v-88c0-28.37 10.94-54.84 30.78-74.5C274.3 194.2 298.9 183 328 184h163.6l-100.1 94.56c-9.656 9.094-10.09 24.28-.969 33.91 4.72 4.1 11.06 7.531 17.44 7.531 5.906 0 11.84-2.156 16.47-6.562l144-135.1C573.3 172.9 576 166.6 576 160s-2.7-12.9-7.5-17.4zM360 384c-13.25 0-24 10.75-24 23.1v47.1c0 4.406-3.594 7.1-8 7.1H56c-4.406 0-8-3.594-8-7.1V184c0-4.406 3.594-7.1 8-7.1h56c13.25 0 24-10.75 24-23.1s-10.75-23.1-24-23.1H56c-30.88 0-56 25.12-56 55.1v271.1c0 30 25.13 55.1 56 55.1h272c30.88 0 56-25.12 56-55.1v-47.1c0-15-10.7-25.8-24-25.8z"}})])},Ly=[],$y={},zy=(0,a.Z)($y,Oy,Ly,!1,null,null,null);const Ny=zy.exports;var Hy=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M272 304h-96C78.8 304 0 382.8 0 480c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32 0-97.2-78.8-176-176-176zM48.99 464c7.9-63.1 61.81-112 127.01-112h96c65.16 0 119.1 48.95 127 112H48.99zM224 256c70.69 0 128-57.31 128-128S294.69 0 224 0 96 57.31 96 128c0 70.7 57.3 128 128 128zm0-208c44.11 0 80 35.89 80 80s-35.89 80-80 80-80-35.9-80-80c0-44.11 35.9-80 80-80z"}})])},Ry=[],Gy={},Fy=(0,a.Z)(Gy,Hy,Ry,!1,null,null,null);const Uy=Fy.exports;var Wy=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M208 0c114.9 0 208 78.8 208 176s-93.1 176-208 176c-18.7 0-36.8-2.3-54.1-6.2-30.6 19-74.77 38.2-128.95 38.2-9.98 0-19.02-5.9-22.932-15.1-3.914-9.2-2.025-19.8 4.721-27 .521-.4 22.641-24.5 38.991-56C17.18 255.8 0 217.6 0 176 0 78.8 93.13 0 208 0zm-43.4 298.1c14.6 4.2 29.2 5.9 43.4 5.9 88.2 0 160-57.4 160-128S296.2 48 208 48 48 105.4 48 176c0 35.2 17.71 61.2 32.57 76.9l23.53 24.9-15.79 30.3c-3.57 6-7.58 13.8-11.76 20.4 17.71-5.1 35.15-13 52.15-24.4l16.7-9.5 19.2 3.5zm277-169.9C552 132.4 640 209.5 640 304c0 41.6-17.2 79.8-45.7 109.9 16.3 31.5 38.4 55.6 39 56 6.7 7.2 8.6 17.8 3.8 27-3 9.2-12.1 15.1-22.1 15.1-54.1 0-98.3-19.2-128.9-38.2-17.3 3.9-35.4 6.2-54.1 6.2-82 0-152.9-40.2-186.8-98.5 17.3-2.3 33.9-6.2 49.7-11.6 28 37.2 79 62.1 137.1 62.1 14.2 0 28.8-1.7 43.4-5.9l19.2-3.5 16.7 9.5c17 11.4 34.4 19.3 52.2 24.4-4.2-6.6-8.2-14.4-11.8-20.4l-15.8-30.3 23.5-24.9c14.9-15.6 32.6-41.7 32.6-76.9 0-66.3-63.3-120.9-144.9-127.4l.9-.6c0-16.5-2.2-32.5-6.4-47.8z"}})])},jy=[],Xy={},qy=(0,a.Z)(Xy,Wy,jy,!1,null,null,null);const Ky=qy.exports;var Yy=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M512 240c0 114.9-114.6 208-256 208-37.1 0-72.3-6.4-104.1-17.9-11.9 8.7-31.3 20.6-54.3 30.6C73.6 471.1 44.7 480 16 480c-6.5 0-12.3-3.9-14.8-9.9s-1.1-12.8 3.4-17.4l.3-.3c.3-.3.7-.7 1.3-1.4 1.1-1.2 2.8-3.1 4.9-5.7 4.1-5 9.6-12.4 15.2-21.6 10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240 0 125.1 114.6 32 256 32s256 93.1 256 208z"}})])},Jy=[],Qy={},eb=(0,a.Z)(Qy,Yy,Jy,!1,null,null,null);const tb=eb.exports;var nb=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M228.3 216.1L320 64 69.77 32.13c-6.87-.87-13.53 2.64-16.53 8.89L1.755 143.8c-4.625 9.3.284 20.3 10.035 23l197.1 56.53c7.91 2.07 15.51-.93 19.41-7.23zm410-72.3L586.81 41c-3-6.25-9.757-9.758-16.63-8.883L320 64l91.74 152.1c3.752 6.25 11.38 9.261 18.51 7.261l197.9-56.51C638 164 642.8 153 638.3 143.8zM528 380.8l-184 45.77V192c0-13.25-10.75-24-24-24s-24 10.8-24 24v234.6l-184-45.8V230.2l-48-13.7v176.1c0 14.67 9.1 27.35 24.25 30.83l216.1 53.82c5.15 2.15 10.45 2.75 14.75 2.75s10.34-.622 15.4-1.865l216.4-53.82C565.1 420.7 576 408 576 393.5v-177l-48 13.63V380.8z"}})])},ob=[],sb={},ab=(0,a.Z)(sb,nb,ob,!1,null,null,null);const ib=ab.exports;var rb=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M528.5 171.5l-146.4-21.29-65.43-132.4C310.797 5.98 299.36 0 287.89 0c-11.39 0-22.82 5.89-28.7 17.8l-65.43 132.4-146.29 21.3c-26.27 3.8-36.79 36.1-17.75 54.6l105.9 102.1-25.04 145.5C107 495.3 123.6 512 142.2 512c4.932 0 10.01-1.172 14.88-3.75L288 439.6l130.9 68.7c4.865 2.553 9.926 3.713 14.85 3.713 18.61 0 35.21-16.61 31.65-37.41l-25.05-145.5 105.9-102.1C565.3 207.6 554.8 175.3 528.5 171.5zM390.2 320.6l22.4 130.1L288 385.4V68l58.59 118.5a15.998 15.998 0 0012.04 8.744l130.9 19.06L394.8 306.4c-3.8 3.7-5.5 9-4.6 14.2z"}})])},lb=[],cb={},ub=(0,a.Z)(cb,rb,lb,!1,null,null,null);const db=ub.exports;var pb=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M512 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h448c35.35 0 64-28.65 64-64V96c0-35.35-28.7-64-64-64zM48.13 96c0-8.838 7.164-16 16-16h447.8c8.836 0 16 7.162 16 16v32H48.13V96zM527.9 416c0 8.836-7.164 16-16 16H64.13c-8.836 0-16-7.164-16-16L48 224h480l-.1 192zM120 384h48c13.25 0 23.1-10.75 23.1-24s-9.8-24-23.1-24h-48c-13.2 0-24 10.8-24 24s10.8 24 24 24zm128 0h112c13.25 0 24-10.75 24-24 0-13.26-10.75-24-24-24H248c-13.3 0-24 10.7-24 24s10.7 24 24 24z"}})])},hb=[],gb={},mb=(0,a.Z)(gb,pb,hb,!1,null,null,null);const vb=mb.exports;var fb=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M256 152h40v40c0 13.25 10.75 24 24 24s24-10.7 24-24v-40h40c13.25 0 24-10.75 24-24s-10.7-24-24-24h-40V64c0-13.25-10.75-24-24-24s-24 10.75-24 24v40h-40c-13.2 0-24 10.8-24 24s10.8 24 24 24zM569.5 44.73C563.4 36.64 554.1 32 543.1 32H472c-13.3 0-24 10.74-24 24 0 13.25 10.75 24 24 24h50.77l-45.72 160H161.6l-42-220.49C117.4 8.189 107.5 0 96 0H23.1C10.74 0 0 10.74 0 23.1 0 37.25 10.74 48 23.1 48h52.14l60.28 316.5C138.6 375.8 148.5 384 160 384h328c13.25 0 24-10.75 24-23.1 0-14.2-10.7-24.9-24-24.9H179.9l-9.2-48h318.4c14.28 0 26.85-9.479 30.77-23.21l54.86-191.1c2.77-10.64.87-20.86-5.23-28.96zM176 416c-26.51 0-47.1 21.49-47.1 48s20.6 48 47.1 48 47.1-21.49 47.1-48-20.6-48-47.1-48zm287.1 0c-26.51 0-47.1 21.49-47.1 48s21.49 48 47.1 48 47.1-21.49 47.1-48-19.7-48-47.1-48z"}})])},yb=[],bb={},_b=(0,a.Z)(bb,fb,yb,!1,null,null,null);const Ib=_b.exports;var wb=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M256 416c0 53-43 96-96 96-53.9 0-96-43-96-96-35.35 0-64-28.7-64-64V64C0 28.65 28.65 0 64 0h288c35.3 0 64 28.65 64 64v32h42.7c14.9 0 29.1 5.9 39.6 16.4l93.3 93.3c10.5 10.5 16.4 24.7 16.4 39.6V368h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-40c0 53-43 96-96 96-53.9 0-96-43-96-96H256zm96-368H64c-8.84 0-16 7.16-16 16v288c0 8.8 7.16 16 16 16h12.84c16.6-28.7 47.66-48 83.16-48s66.6 19.3 83.2 48H352c8.8 0 16-7.2 16-16V64c0-8.84-7.2-16-16-16zm112.4 98.3c-1.5-1.5-3.5-2.3-5.7-2.3H416v96h142c-.1-.1-.2-.3-.3-.4l-93.3-93.3zM160 368c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm320 96c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48z"}})])},xb=[],Sb={},Cb=(0,a.Z)(Sb,wb,xb,!1,null,null,null);const kb=Cb.exports;var Pb=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M233.3 239.4l-176-184c-9.11-9.56-24.3-9.91-33.89-.75C18.47 59.37 16 65.68 16 71.99c0 5.969 2.219 11.94 6.656 16.59L182.8 256 22.7 423.4c-9.125 9.594-8.844 24.78.75 33.94 9.594 9.156 24.78 8.813 33.94-.75l176-184c8.81-9.29 8.81-23.89-.09-33.19zm192 0l-176-184c-9.1-9.56-24.3-9.91-33.9-.75-4.9 4.72-7.4 11.03-7.4 17.34 0 5.969 2.219 11.94 6.656 16.59L374.8 256 214.7 423.4c-9.125 9.594-8.844 24.78.75 33.94 9.594 9.156 24.78 8.813 33.94-.75l176-184c8.81-9.29 8.81-23.89-.09-33.19z"}})])},Zb=[],Db={},Eb=(0,a.Z)(Db,Pb,Zb,!1,null,null,null);const Tb=Eb.exports;var Ab=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M80 208H16c-8.875 0-16 7.1-16 16v64c0 8.875 7.125 16 16 16h64c8.88 0 16-7.1 16-16v-64c0-8.9-7.12-16-16-16zm0 160H16c-8.875 0-16 7.1-16 16v64c0 8.875 7.125 16 16 16h64c8.88 0 16-7.1 16-16v-64c0-8.9-7.12-16-16-16zm0-320H16C7.125 48 0 55.13 0 64v64c0 8.875 7.125 16 16 16h64c8.88 0 16-7.1 16-16V64c0-8.87-7.12-16-16-16zm408 184H183.1c-12.4 0-23.1 10.7-23.1 24s10.75 24 23.1 24H488c13.3 0 24-10.7 24-24s-10.7-24-24-24zm0-160H183.1C170.7 72 160 82.75 160 95.1s10.7 24.9 23.1 24.9H488c13.25 0 24-10.75 24-23.1S501.3 72 488 72zm0 320H183.1c-12.4 0-23.1 10.7-23.1 24s10.75 24 23.1 24H488c13.25 0 24-10.75 24-24s-10.7-24-24-24z"}})])},Mb=[],Vb={},Bb=(0,a.Z)(Vb,Ab,Mb,!1,null,null,null);const Ob=Bb.exports;var Lb=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M96 192H32c-17.67 0-32 14.3-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.7-14.3-32-32-32zm-16 80H48v-32h32v32zM416 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.3-32-32-32zm-16 80h-32V80h32v32zM256 32h-64c-17.7 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.3-32-32-32zm-16 80h-32V80h32v32zM96 352H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.7-14.3-32-32-32zm-16 80H48v-32h32v32zM96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.3-32-32-32zm-16 80H48V80h32v32zm176 80h-64c-17.7 0-32 14.3-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.7-14.3-32-32-32zm-16 80h-32v-32h32v32zm176 80h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.7-14.3-32-32-32zm-16 80h-32v-32h32v32zm-144-80h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.7-14.3-32-32-32zm-16 80h-32v-32h32v32zm176-240h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.7-14.3-32-32-32zm-16 80h-32v-32h32v32z"}})])},$b=[],zb={},Nb=(0,a.Z)(zb,Lb,$b,!1,null,null,null);const Hb=Nb.exports;var Rb=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M635.7 176.1l-91.5-160C538.5 6.153 527.9 0 516.5 0h-393c-11.4 0-22 6.153-27.75 16.12l-91.5 160C-7.877 197.5 7.373 224 31.1 224h31.99l.015 240C64 490.5 85.49 512 111.1 512h224c26.51 0 47.1-21.49 47.1-47.1l.9-240.9h144v264c0 13.2 10.8 23.1 24 23.1s24-10.8 24-24V224h32.01c25.49 0 40.79-26.5 28.59-47.9zM335.1 464h-224v-95.75h223.1V464zm0-143.8h-224V224h223.1v96.2zM59.62 176l73.13-128h374.5l73 128H59.62z"}})])},Gb=[],Fb={},Ub=(0,a.Z)(Fb,Rb,Gb,!1,null,null,null);const Wb=Ub.exports;var jb=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M448 416V96c0-35.35-28.65-63.1-64-63.1H64C28.65 32.9 0 61.55 0 96v320c0 35.35 28.65 64 64 64h320c35.3 0 64-28.7 64-64zM64 432c-8.836 0-16-7.164-16-16V96c0-8.836 7.164-16 16-16h320c8.838 0 16 7.164 16 16v320c0 8.836-7.162 16-16 16H64zm288-176c0-13.25-10.75-24-24-24H120c-13.2 0-24 10.8-24 24s10.75 24 24 24h208c13.3 0 24-10.7 24-24zm-160 96c0-13.25-10.75-24-24-24h-48c-13.2 0-24 10.8-24 24s10.75 24 24 24h48c13.3 0 24-10.7 24-24zm64-192c0-13.25-10.75-24-24-24H120c-13.2 0-24 10.8-24 24s10.75 24 24 24h112c13.3 0 24-10.7 24-24z"}})])},Xb=[],qb={},Kb=(0,a.Z)(qb,jb,Xb,!1,null,null,null);const Yb=Kb.exports;var Jb=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M496.3 21.86C484.2 7.997 466.1 0 448 0c-15.3 0-30.14 5.662-41.77 15.95l-192.4 169.7C179 216.6 181.1 251.2 178.8 270.9c-27.25 2.418-51.56 13.66-70.29 32.5-23.54 23.7-35.38 56.5-32.45 89.9 1.507 17.25-12.44 26.67-30.02 26.67C20.65 420 0 440.6 0 466s20.65 46 46.03 46h50.41c56.76 0 132.8-8.449 172.9-48.7 8.894-8.949 40.32-42.29 29.58-103.1 28.18-6.651 50.26-20.09 66-44.99l137.3-217.1c14.98-23.72 12.58-55.09-5.92-76.25zm-261 407.54c-21.9 22-72.5 34.6-138.85 34.6H73.04c12.81-4.02 24.02-10.99 32.79-20.55 13.42-14.64 19.82-33.92 18.04-54.29-1.689-19.34 5.121-38.24 18.71-51.89 18.96-19.08 38.33-18.33 64.74-20.68l40.9 32.73c7.88 49.68 3.68 63.38-12.92 80.08zM461.6 72.48l-137.3 217.1c-11.97 18.94-28.2 21.98-42.3 25.31l-54.1-44.01c.4-14.18-.6-32.98 17.6-49.28L438 51.9c2.9-2.51 6.4-3.9 10-3.9l1.344.057c4.312.283 7.951 2.09 10.79 5.346C464.7 58.61 465.3 66.63 461.6 72.48z"}})])},Qb=[],e_={},t_=(0,a.Z)(e_,Jb,Qb,!1,null,null,null);const n_=t_.exports;var o_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M324.4 103.1L384 128l24.88 59.63C410.3 190.3 413 192 416 192s5.75-1.75 7.125-4.375L448 128l59.63-24.88C510.3 101.8 512 99 512 96s-1.75-5.75-4.375-7.125L448 64 423.12 4.38C421.8 1.75 419 0 416 0s-5.75 1.75-7.125 4.375L384 64l-59.63 24.88C321.8 90.25 320 93 320 96s1.8 5.8 4.4 7.1zm183.2 305.8L448 384l-24.88-59.63C421.8 321.8 419 320 416 320s-5.75 1.75-7.125 4.375L384 384l-59.63 24.88C321.8 410.3 320 413 320 416s1.75 5.75 4.375 7.125L384 448l24.88 59.63C410.3 510.3 413 512 416 512s5.75-1.75 7.125-4.375L448 448l59.63-24.88C510.3 421.8 512 419 512 416s-1.7-5.7-4.4-7.1zM384 256c0-9.125-5.125-17.38-13.25-21.5l-104.9-52.38L213.5 77.25c-8.125-16.25-34.88-16.25-43 0L118.1 182.1 13.25 234.5C5.125 238.6 0 246.9 0 256s5.125 17.38 13.25 21.5l104.9 52.38 52.38 104.9c4.07 8.12 12.37 13.12 21.47 13.12s17.38-5.075 21.5-13.2l52.38-104.9 104.9-52.38C378.9 273.4 384 265.1 384 256zm-146.7 34.5c-4.7 2.4-8.4 6.1-10.8 10.8L192 370.4l-34.5-69.1c-2.4-4.7-6.1-8.4-10.7-10.8L77.63 256l69.13-34.5c4.64-2.4 8.34-6.1 10.74-10.7l34.5-69.2 34.5 69.13c2.4 4.67 6.1 8.37 10.8 10.77l69.1 34.5-69.1 34.5z"}})])},s_=[],a_={},i_=(0,a.Z)(a_,o_,s_,!1,null,null,null);const r_=i_.exports;var l_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64l-56.5 21.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3l-52.8 114L9.3 240c-5.7 2.6-9.3 8.3-9.3 14.6s3.6 11.9 9.3 14.5l114.1 52.7 52.6 114c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1L371.8 269c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5l-114-52.6-52.7-114.1zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"}})])},c_=[],u_={},d_=(0,a.Z)(u_,l_,c_,!1,null,null,null);const p_=d_.exports;var h_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M135 432.1L7 304.1c-4.656-3.8-7-9.9-7-16.1s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464V56c0-13.25 10.8-24 24-24s24 10.75 24 24v232c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94s-24.57 9.33-33.97-.87z"}})])},g_=[],m_={},v_=(0,a.Z)(m_,h_,g_,!1,null,null,null);const f_=v_.exports;var y_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M343 432.1c-9.3-8.5-9.3-23.7 0-33.1l87.1-87H24c-13.25 0-24-10.8-24-24V56c0-13.25 10.75-24 24-24s24 10.75 24 24v208h382.1L343 176.1c-9.3-8.5-9.3-23.7 0-33.1 9.4-9.3 24.6-9.3 33.1 0l128 128c5.6 4.7 7.9 10.8 7.9 16.1 0 7.1-2.3 13.2-7.9 17l-128 128c-8.5 10.2-23.7 10.2-33.1 0z"}})])},b_=[],__={},I_=(0,a.Z)(__,y_,b_,!1,null,null,null);const w_=I_.exports;var x_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M352 400c0 8.836-7.164 16-16 16h-32c-8.8 0-16-7.2-16-16s7.2-16 16-16h32c8.8 0 16 7.2 16 16zm-112-16h-48c-8.836 0-16 7.162-16 16 0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16zm-68-124c0-37.5 30.5-68 68-68s68 30.5 68 68c0 37.49-30.5 68-68 68s-68-30.5-68-68zm48 0c0 11.04 8.955 20 20 20 11.05 0 20-8.955 20-20 0-11.9-9-20-20-20-11.9 0-20 8.1-20 20zm248 0c0 37.49-30.58 67.1-68.07 67.1-.025 0 .025 0 0 0s.025 0 0 0c-37.5 0-68.07-30.5-68.07-67.1 0-37.5 30.58-67.1 68.07-67.1.025 0-.025 0 0 0s-.025 0 0 0C437.4 192 468 222.5 468 260zm-48.1 0c0-11.02-8.916-19.94-19.93-19.99C388.9 240.1 380 248.1 380 260c0 11.02 8.916 19.94 19.93 19.99C410.9 279.9 419.9 271 419.9 260zM448 384h-48c-8.836 0-16 7.162-16 16 0 8.836 7.164 16 16 16h48c8.836 0 16-7.164 16-16 0-8.8-7.2-16-16-16zm96-208v256c0 44.18-35.82 80-80 80H176c-44.2 0-80-35.8-80-80V176c0-44.2 35.8-80 80-80h120V24c0-13.25 10.8-24 24-24s24 10.75 24 24v72h120c44.2 0 80 35.8 80 80zm-48 0c0-17.64-14.36-32-32-32H176c-17.64 0-32 14.36-32 32v256c0 17.64 14.36 32 32 32h288c17.64 0 32-14.36 32-32V176zm96.1 16H576v192h16.08c17.72 0 31.92-14.3 31.92-32V224c0-17.7-14.3-32-31.9-32zM16 224v128c0 17.67 14.26 32 31.94 32H64V192H48.03C30.36 192 16 206.3 16 224z"}})])},S_=[],C_={},k_=(0,a.Z)(C_,x_,S_,!1,null,null,null);const P_=k_.exports;var Z_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M259.7 86l49.66 20.63 20.62 49.67c1.125 2.25 3.498 3.707 5.998 3.707s4.876-1.457 6.001-3.707l20.62-49.67L412.219 86c2.375-1.125 3.748-3.502 3.748-6.002s-1.374-4.874-3.748-5.999L362.6 53.38 341.98 3.75C340.9 1.375 338.5 0 336 0c-2.5 0-4.872 1.375-5.997 3.75l-20.62 49.63-49.66 20.63c-2.25 1.125-3.712 3.499-3.712 5.999S257.5 84.88 259.7 86zM509 219.3l-39.62-16.63-16.62-39.63c-.875-1.875-2.751-3.003-4.751-3.003-1.1 0-3.874 1.128-4.749 3.003l-16.62 39.63L387 219.3c-1.875.875-3.002 2.746-3.002 4.746s1.127 3.879 3.002 4.754l39.62 16.63 16.62 39.63c.875 1.875 2.749 2.995 4.749 2.995 1.1 0 3.876-1.12 4.751-2.995l16.62-39.63 39.62-16.63c1.92-.9 3.02-2.8 3.02-4.8s-1.1-3.9-3-4.7zm-144.8 47.9l-104.8-15.28-46.8-95.22c-3.9-7.9-11.9-12.9-20.7-12.8-8.7-.1-16.8 4.9-20.5 12.8l-46.9 94.4-104.79 16.1c-18.753 1.9-26.452 26-12.703 39.3l75.87 74-17.1 104.6C62.25 499.1 74.14 512 87.52 512c3.75 0 7.436-.83 10.69-2.705l93.79-49.38 93.74 49.38c7.75 4.125 17.25 3.386 24.25-1.739 7.125-5.125 10.62-13.79 9.119-22.41L301.2 380.5l75.92-74c13.48-13.2 5.98-37.4-12.92-39.3zm-114.7 96.6l13.62 79.5L192 405.8l-71.37 37.5 13.75-79.5-57.74-56.3 79.75-11.62L192 223.8l35.6 72.1 79.75 11.62-57.85 56.28z"}})])},D_=[],E_={},T_=(0,a.Z)(E_,Z_,D_,!1,null,null,null);const A_=T_.exports;var M_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M384 192h-32v-64.9C352 56.52 294.58 0 224 0S96 57.42 96 127.1V192H64c-35.35 0-64 28.7-64 64v191.1c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V256c0-35.3-28.7-64-64-64zm-240-64c0-44.11 35.89-80 80-80s80 35.89 80 80v64H144v-64zm256 320c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V256c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16v192z"}})])},V_=[],B_={},O_=(0,a.Z)(B_,M_,V_,!1,null,null,null);const L_=O_.exports;var $_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M144 144v48h160v-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zm-64 48v-48C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64v192c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64h16z"}})])},z_=[],N_={},H_=(0,a.Z)(N_,$_,z_,!1,null,null,null);const R_=H_.exports;var G_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M384 192H144v-64c0-44.11 35.89-80 80-80 34.84 0 65.44 22.25 76.14 55.38C304.2 116 317.7 122.9 330.4 118.8c12.61-4.078 19.53-17.61 15.47-30.22C328.7 35.61 279.7 0 224 0 153.4 0 96 57.42 96 128v64H64c-35.35 0-64 28.7-64 64v192c0 35.3 28.65 64 64 64h320c35.35 0 64-28.65 64-63.1V256c0-35.3-28.7-64-64-64zm16 256c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V256c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16v192z"}})])},F_=[],U_={},W_=(0,a.Z)(U_,G_,F_,!1,null,null,null);const j_=W_.exports;var X_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},e.$listeners),[t("path",{attrs:{d:"M237 141.6c-5.3 11.2-16.6 18.4-29 18.4h-48v192c0 35.3 28.7 64 64 64s64-28.7 64-64V160c0-70.7 57.3-128 128-128s128 57.3 128 128v192h48c12.4 0 23.7 7.2 29 18.4s3.6 24.5-4.4 34.1l-80 96c-6.1 7.3-15.1 11.5-24.6 11.5s-18.5-4.2-24.6-11.5l-80-96c-7.9-9.5-9.7-22.8-4.4-34.1s16.6-18.4 29-18.4h48V160c0-35.3-28.7-64-64-64s-64 28.7-64 64v192c0 70.7-57.3 128-128 128S96 422.7 96 352V160H48c-12.4 0-23.7-7.2-29-18.4s-3.6-24.5 4.4-34.1l80-96C109.5 4.2 118.5 0 128 0s18.5 4.2 24.6 11.5l80 96c7.9 9.5 9.7 22.8 4.4 34.1z"}})])},q_=[],K_={},Y_=(0,a.Z)(K_,X_,q_,!1,null,null,null);const J_=Y_.exports;var Q_=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M224 0h-64C71.62 0 0 71.62 0 160v192c0 88.38 71.62 160 160 160h64c88.38 0 160-71.63 160-160V160C384 71.62 312.4 0 224 0zm112 352c-.125 61.88-50.13 111.9-112 112h-64c-61.88-.125-111.9-50.13-112-112V160c.12-61.88 50.12-111.88 112-112h64c61.88.125 111.9 50.12 112 112v192zM192 95.1c-17.62 0-32 14.38-32 32v31.1c0 19.4 14.4 33.8 32 33.8 17.62 0 32-14.38 32-32v-32.9c0-16.7-14.4-32-32-32z"}})])},eI=[],tI={},nI=(0,a.Z)(tI,Q_,eI,!1,null,null,null);const oI=nI.exports;var sI=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M503.4 106.4c5.7-4.8 8.6-11.56 8.6-18.42 0-16.07-13.8-24.88-24.9-24.88a23.868 23.868 0 00-15.4 5.614l-185.1 155.1L212 161.5c7.4-15 11.1-31.7 11.1-49.5C223.1 50.14 172.96 0 112 0S0 50.14 0 112s50.14 112 111.1 112c26.6 0 50.7-9.66 69.92-25.15L250.1 256l-68.2 57.2c-19.2-15.5-43.3-25.2-70.8-25.2C49.24 288 0 338.14 0 400s50.14 112 111.1 112 111.1-50.14 111.1-112c0-17.85-4.559-34.49-11.99-49.47L503.4 106.4zM112 176c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.7 64-64 64zm0 288c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.7 64-64 64zm237.8-187.1l-37.36 31.3 160.2 134.2c4.46 3.8 9.96 5.6 15.36 5.6 10.1 0 24-8.9 24-24 0-6.859-2.923-13.67-8.591-18.41L349.8 276.9z"}})])},aI=[],iI={},rI=(0,a.Z)(iI,sI,aI,!1,null,null,null);const lI=rI.exports;var cI=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M448 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V96c0-35.35-28.7-64-64-64zM254.1 80h67.88l-80 80H174.1l80-80zM48 126.1L94.06 80h67.88l-80 80H48v-33.9zM464 416c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V208h416v208zm0-318.06L401.9 160h-67.88l80-80H448c8.822 0 16 7.178 16 16v1.94zM218.7 400c1.959 0 3.938-.56 5.646-1.682l106.7-68.97C334.1 327.3 336 323.8 336 319.1s-1.896-7.34-5.021-9.354l-106.7-68.97c-3.179-1.276-7.379-1.276-10.779.624-3.4 1.9-5.5 5.6-5.5 9.6v137.9c0 4.008 2.104 7.705 5.5 9.656 1.6.944 3.4 1.444 5.2 1.444z"}})])},uI=[],dI={},pI=(0,a.Z)(dI,cI,uI,!1,null,null,null);const hI=pI.exports;var gI=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"}})])},mI=[],vI={},fI=(0,a.Z)(vI,gI,mI,!1,null,null,null);const yI=fI.exports;var bI=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M313 41l-48 48c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L279 7c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9zM170.4 157.4c8.8-17.9 34.3-17.9 43.1 0l46.3 94 103.5 15.1c19.7 2.9 27.5 27 13.3 40.9l-74.9 73.2 17.7 103.3c3.4 19.6-17.2 34.6-34.8 25.3L192 460.4l-92.7 48.8c-17.6 9.3-38.2-5.7-34.8-25.3l17.7-103.3-75-73.2C-7 293.5.9 269.3 20.5 266.5L124 251.4l46.3-94zM505 199c9.4 9.4 9.4 24.6 0 33.9l-48 48c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l48-48c9.4-9.4 24.6-9.4 33.9 0zm0-158L361 185c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L471 7c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"}})])},_I=[],II={},wI=(0,a.Z)(II,bI,_I,!1,null,null,null);const xI=wI.exports;var SI=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80v352c0 17.4 9.4 33.4 24.5 41.9S58.2 482 73 473l288-176c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"}})])},CI=[],kI={},PI=(0,a.Z)(kI,SI,CI,!1,null,null,null);const ZI=PI.exports;var DI=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M249.6 471.5c10.8 3.8 22.4-4.1 22.4-15.5V78.6c0-4.2-1.6-8.4-5-11C247.4 52 202.4 32 144 32 93.5 32 46.3 45.3 18.1 56.1 6.8 60.5 0 71.7 0 83.8v370.3c0 11.9 12.8 20.2 24.1 16.5C55.6 460.1 105.5 448 144 448c33.9 0 79 14 105.6 23.5zm76.8 0C353 462 398.1 448 432 448c38.5 0 88.4 12.1 119.9 22.6 11.3 3.8 24.1-4.6 24.1-16.5V83.8c0-12.1-6.8-23.3-18.1-27.6C529.7 45.3 482.5 32 432 32c-58.4 0-103.4 20-123 35.6-3.3 2.6-5 6.8-5 11V456c0 11.4 11.7 19.3 22.4 15.5z"}})])},EI=[],TI={},AI=(0,a.Z)(TI,DI,EI,!1,null,null,null);const MI=AI.exports;var VI=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M540.9 56.77c-47.1-17.03-91.3-25.19-130-24.75C352.2 32.96 308.3 50 288 59.74c-20.3-9.74-64.1-26.76-122.8-27.7-39.4-.69-83.02 7.68-130.1 24.73C14.02 64.41 0 84.67 0 107.2v292.1c0 16.61 7.594 31.95 20.84 42.08 13.73 10.53 31.34 13.91 48.2 9.344 118.1-32 202 22.92 205.5 25.2C278.6 478.6 283.3 480 287.1 480s9.37-1.359 13.43-4.078c3.516-2.328 87.59-57.21 205.5-25.25 16.92 4.563 34.5 1.188 48.22-9.344C568.4 431.2 576 415.9 576 399.2v-292c0-22.53-14.9-42.79-35.1-50.43zM264 416.8c-27.86-11.61-69.84-24.13-121.4-24.13-26.39 0-55.28 3.281-86.08 11.61-3.33 1.02-5.68-.38-6.52-1.08-2-1.5-2-3.4-2-4v-292c0-2.297 1.516-4.531 3.594-5.282 40.95-14.8 79.61-22.36 112.8-21.84C211.3 80.78 246.8 93.75 264 101.5v315.3zm264-17.6c0 .594 0 2.422-2 3.969-.844.64-3.141 2.063-6.516 1.109-90.98-24.6-165.4-5.032-207.5 12.53v-315.3c17.2-7.782 52.69-20.74 99.59-21.47 32.69-.516 71.88 7.047 112.8 21.84C526.5 102.6 528 104.9 528 107.2v292z"}})])},BI=[],OI={},LI=(0,a.Z)(OI,VI,BI,!1,null,null,null);const $I=LI.exports;var zI=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M234.5 5.7c13.9-5 29.1-5 43.1 0l192 68.6c25.4 9.1 42.4 33.2 42.4 60.3v242.8c0 27-17 51.2-42.5 60.3l-192 68.6c-13.9 5-29.1 5-43.1 0l-192-68.6C17 428.6 0 404.5 0 377.4V134.6c0-27 17-51.2 42.5-60.3l192-68.6zM256 66L82.3 128 256 190l173.7-62L256 66zm32 368.6l160-57.1v-188l-160 57.1v188z"}})])},NI=[],HI={},RI=(0,a.Z)(HI,zI,NI,!1,null,null,null);const GI=RI.exports;var FI=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M491.2 85.31L278.4 4.14C271.2 1.383 263.6 0 256 0s-15.2 1.383-22.5 4.145L20.7 85.315C8.273 90.08 0 102.2 0 115.8v280.4c0 13.57 8.273 25.72 20.76 30.48l212.8 81.17C240.8 510.6 248.4 512 256 512s15.23-1.383 22.47-4.145l212.8-81.17C503.7 421.9 512 409.8 512 396.2V115.8c0-13.6-8.3-25.72-20.8-30.49zM250.6 48.99c1.8-.65 3.6-.99 5.4-.99s3.641.336 5.363.992l194.8 74.32L256 198.4 55.83 123.3 250.6 48.99zM48 171.6l184 69v215.3L48 385.7V171.6zm232 284.3V240.6l184-69v214.1l-184 70.2z"}})])},UI=[],WI={},jI=(0,a.Z)(WI,FI,UI,!1,null,null,null);const XI=jI.exports;var qI=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},e.$listeners),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.5 29.5c1.28 0 2.518-.185 3.687-.53a6.518 6.518 0 018.783-8.783c.345-1.169.53-2.406.53-3.687 0-7.18-5.82-13-13-13s-13 5.82-13 13 5.82 13 13 13zm14.896-7.149A15.957 15.957 0 0032.5 16.5c0-8.837-7.163-16-16-16s-16 7.163-16 16 7.163 16 16 16c2.065 0 4.039-.391 5.851-1.104a6.518 6.518 0 009.045-9.045zm-1.896 3.63a3.519 3.519 0 11-7.037 0 3.519 3.519 0 017.037 0z",fill:"currentColor"}})])},KI=[],YI={},JI=(0,a.Z)(YI,qI,KI,!1,null,null,null);const QI=JI.exports;var ew=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M207 184.1c2.6 3.4 8.5 7.9 17 7.9s14.4-4.461 16.97-7.031l72-72C317.7 108.3 320 102.1 320 96c0-13.71-11.21-24-24-24a23.93 23.93 0 00-16.97 7.031L248 110.1V24c0-13.25-10.7-24-24-24s-24 10.75-24 24v86.06l-31.9-31.03c-3.8-4.69-10-7.03-16.1-7.03-13.7 0-24 11.21-24 24a23.93 23.93 0 007.031 16.97L207 184.1zM240.1 327c-5.2-6-12.4-7-16.1-7-3.682 0-10.94.99-16.97 7.022l-72 72C130.3 403.7 128 409.9 128 416c0 13.71 11.21 24 24 24a23.93 23.93 0 0016.97-7.031L200 401.9V488c0 13.3 10.8 24 24 24s24-10.75 24-24v-86.06l31.03 31.03C283.7 437.7 289.8 440 296 440c18.79 0 24-17.2 24-24a23.93 23.93 0 00-7.031-16.97L240.1 327zM424 232H24c-13.25 0-24 10.7-24 23.1S10.75 280 24 280h400c13.25 0 24-10.76 24-24.01S437.3 232 424 232z"}})])},tw=[],nw={},ow=(0,a.Z)(nw,ew,tw,!1,null,null,null);const sw=ow.exports;var aw=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M296 391.1a23.93 23.93 0 00-16.97 7.031L248 430.1v-86.06c0-13.25-10.75-24-24-24s-24 10.75-24 24v86.06l-31.03-31.03c-4.67-4.77-10.87-7.97-16.97-7.97-12.82 0-24 10.33-24 24a23.93 23.93 0 007.031 16.97l72 72.01C209.6 507.5 215.5 512 224 512s14.4-4.461 16.97-7.031l72-72.01C317.7 428.3 320 422.1 320 415.1c0-12.8-11.2-24-24-24zm-144-272a23.93 23.93 0 0016.97-7.031L200 81.91v86.07c0 13.25 10.75 24 24 24s24-10.75 24-24V81.91l31.03 31.03c4.67 4.66 10.77 6.16 16.97 6.16 18.79 0 24-17.2 24-23.1a23.93 23.93 0 00-7.031-16.97l-72-72.01C234.9.977 227.7 0 223.1 0c-2.8 0-10 .969-16.1 7l-72 72.01c-4.7 4.69-7 10.83-7 16.97 0 13.72 11.2 23.12 24 23.12zM424 232H24c-13.25 0-24 10.7-24 23.1S10.75 280 24 280h400c13.25 0 24-10.76 24-24.01S437.3 232 424 232z"}})])},iw=[],rw={},lw=(0,a.Z)(rw,aw,iw,!1,null,null,null);const cw=lw.exports;var uw=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M352 128c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32s14.3 32 32 32h146.7L41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L288 205.3V352c0 17.7 14.3 32 32 32s32-14.3 32-32V128z"}})])},dw=[],pw={},hw=(0,a.Z)(pw,uw,dw,!1,null,null,null);const gw=hw.exports;var mw=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M512 416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96c0-35.3 28.7-64 64-64h128c20.1 0 39.1 9.5 51.2 25.6l19.2 25.6c6 8.1 15.5 12.8 25.6 12.8h160c35.3 0 64 28.7 64 64v256zm-280-40c0 13.3 10.7 24 24 24s24-10.7 24-24v-64h64c13.3 0 24-10.7 24-24s-10.7-24-24-24h-64v-64c0-13.3-10.7-24-24-24s-24 10.7-24 24v64h-64c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"}})])},vw=[],fw={},yw=(0,a.Z)(fw,mw,vw,!1,null,null,null);const bw=yw.exports;var _w=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M448 256c0-106-86-192-192-192v384c106 0 192-86 192-192zM0 256a256 256 0 11512 0 256 256 0 11-512 0z"}})])},Iw=[],ww={},xw=(0,a.Z)(ww,_w,Iw,!1,null,null,null);const Sw=xw.exports;var Cw=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M221.5 51.7C216.6 39.8 204.9 32 192 32s-24.6 7.8-29.5 19.7l-120 288-40 96c-6.8 16.3.9 35 17.2 41.8s35-.9 41.8-17.2L93.3 384h197.4l31.8 76.3c6.8 16.3 25.5 24 41.8 17.2s24-25.5 17.2-41.8l-40-96-120-288zM264 320H120l72-172.8L264 320z"}})])},kw=[],Pw={},Zw=(0,a.Z)(Pw,Cw,kw,!1,null,null,null);const Dw=Zw.exports;var Ew=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},e.$listeners),[t("path",{attrs:{d:"M32 32C14.3 32 0 46.3 0 64s14.3 32 32 32h96v320H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h256c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96V96h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"}})])},Tw=[],Aw={},Mw=(0,a.Z)(Aw,Ew,Tw,!1,null,null,null);const Vw=Mw.exports;var Bw=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},e.$listeners),[t("path",{attrs:{d:"M144 144c0-44.2 35.8-80 80-80 31.9 0 59.4 18.6 72.3 45.7 7.6 16 26.7 22.8 42.6 15.2s22.8-26.7 15.2-42.6C331 33.7 281.5 0 224 0 144.5 0 80 64.5 80 144v48H64c-35.3 0-64 28.7-64 64v192c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V256c0-35.3-28.7-64-64-64H144v-48z"}})])},Ow=[],Lw={},$w=(0,a.Z)(Lw,Bw,Ow,!1,null,null,null);const zw=$w.exports;var Nw=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80v48c0 17.7 14.3 32 32 32s32-14.3 32-32v-48C576 64.5 511.5 0 432 0S288 64.5 288 144v48H64c-35.3 0-64 28.7-64 64v192c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V256c0-35.3-28.7-64-64-64h-32v-48z"}})])},Hw=[],Rw={},Gw=(0,a.Z)(Rw,Nw,Hw,!1,null,null,null);const Fw=Gw.exports;var Uw=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M489 215L201 39a47.97 47.97 0 00-25.02-7.031C148.4 32.02 128 54.62 128 80v352c0 25.6 20.6 48 48 48 8.688 0 17.36-2.359 25.03-7.047l288-176C503.3 288.2 512 272.7 512 256s-8.7-32.2-23-41zM176 432l-.2-351.97L464 255.13 176 432z"}})])},Ww=[],jw={},Xw=(0,a.Z)(jw,Uw,Ww,!1,null,null,null);const qw=Xw.exports;var Kw=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M403.8 34.4c12-5 25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9S384 204.8 384 191.8V160h-32c-10.1 0-19.6 4.7-25.6 12.8L284 229.3 244 176l31.2-41.6C293.3 110.2 321.8 96 352 96h32V64c0-12.9 7.8-24.6 19.8-29.6zM164 282.7l40 53.3-31.2 41.6C154.7 401.8 126.2 416 96 416H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h64c10.1 0 19.6-4.7 25.6-12.8l42.4-56.5zm274.6 188c-9.2 9.2-22.9 11.9-34.9 6.9S383.9 461 383.9 448v-32H352c-30.2 0-58.7-14.2-76.8-38.4L121.6 172.8c-6-8.1-15.5-12.8-25.6-12.8H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h64c30.2 0 58.7 14.2 76.8 38.4l153.6 204.8c6 8.1 15.5 12.8 25.6 12.8h32v-32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64z"}})])},Yw=[],Jw={},Qw=(0,a.Z)(Jw,Kw,Yw,!1,null,null,null);const ex=Qw.exports;var tx=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M502.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128-15.8-15.8c-15.2-15.2-38.5-18.4-57.3-8l-32.5 18 156.7 156.5 18-32.5c10.4-18.7 7.1-42.1-8-57.3l-15.8-15.8 128-128c12.5-12.5 12.5-32.8 0-45.3zM187.5 151.8L16.4 246.9C6.3 252.5 0 263.2 0 274.8c0 8.5 3.4 16.6 9.3 22.6l43.2 43.2c2.1 2.1 5.3 2.9 8.2 1.9l52.1-17.4c6.3-2.1 12.2 3.9 10.1 10.1l-17.4 52.1c-1 2.9-.2 6 1.9 8.2l107.3 107.2c6 6 14.1 9.3 22.6 9.3 11.6 0 22.3-6.3 27.9-16.4l95.1-171.1-172.8-172.7z"}})])},nx=[],ox={},sx=(0,a.Z)(ox,tx,nx,!1,null,null,null);const ax=sx.exports;var ix=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96h160v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32v32H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192v-32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448h160c88.4 0 160-71.6 160-160z"}})])},rx=[],lx={},cx=(0,a.Z)(lx,ix,rx,!1,null,null,null);const ux=cx.exports;var dx=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8 62.5-62.5 163.8-62.5 226.3 0l17.1 17.2H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h111.9c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2l-17.5-17.6c-87.5-87.5-229.3-87.5-316.8 0-24.4 24.4-42 53.1-52.8 83.8-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2-4 4-6.7 8.8-8.1 14-.3 1.2-.6 2.5-.8 3.8-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32v-35.1l17.6 17.5c87.5 87.4 229.3 87.4 316.7 0 24.4-24.4 42.1-53.1 52.9-83.7 5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8-62.5 62.5-163.8 62.5-226.3 0l-.1-.1-17.1-17.1H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2.1-4.8.3s-3.1.5-4.6 1z"}})])},px=[],hx={},gx=(0,a.Z)(hx,dx,px,!1,null,null,null);const mx=gx.exports;var vx=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},e.$listeners),[t("path",{attrs:{d:"M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40h-16c-1.1 0-2.2 0-3.3-.1-1.4.1-2.8.1-4.2.1H392c-22.1 0-40-17.9-40-40v-88c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v88c0 22.1-17.9 40-40 40h-55.9c-1.5 0-3-.1-4.5-.2-1.2.1-2.4.2-3.6.2h-16c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9.1-2.8v-69.6H32c-18 0-32-14-32-32.1 0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7l255.4 224.5c8 7 12 15 11 24z"}})])},fx=[],yx={},bx=(0,a.Z)(yx,vx,fx,!1,null,null,null);const _x=bx.exports;var Ix=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M320 512H64c-35.35 0-64-28.7-64-64V64C0 28.65 28.65 0 64 0h181.5c17 0 33.2 6.743 45.2 18.75l74.6 74.51c12 12.04 18.7 28.24 18.7 45.24V448c0 35.3-28.7 64-64 64zM64 464h256c8.8 0 16-7.2 16-16V138.5c0-4.2-1.7-8.3-4.7-11.3l-74.5-74.51c-3-3-7.1-4.69-11.3-4.69H64c-8.84 0-16 7.16-16 16v384c0 8.8 7.16 16 16 16z"}})])},wx=[],xx={},Sx=(0,a.Z)(xx,Ix,wx,!1,null,null,null);const Cx=Sx.exports;var kx=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"}},e.$listeners),[t("path",{attrs:{d:"M64 512h256c35.3 0 64-28.7 64-64V138.5c0-17-6.7-33.3-18.7-45.3l-74.6-74.5C278.7 6.7 262.5 0 245.5 0H64C28.7 0 0 28.7 0 64v384c0 35.3 28.7 64 64 64z"}})])},Px=[],Zx={},Dx=(0,a.Z)(Zx,kx,Px,!1,null,null,null);const Ex=Dx.exports;var Tx=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M377.9 105.9l122.8 122.8c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9-18.7 0-33.9-15.2-33.9-33.9V320H192c-17.7 0-32-14.3-32-32v-64c0-17.7 14.3-32 32-32h128v-62.1c0-18.7 15.2-33.9 33.9-33.9 9 0 17.6 3.6 24 9.9zM160 96H96c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h64c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-53 0-96-43-96-96V128c0-53 43-96 96-96h64c17.7 0 32 14.3 32 32s-14.3 32-32 32z"}})])},Ax=[],Mx={},Vx=(0,a.Z)(Mx,Tx,Ax,!1,null,null,null);const Bx=Vx.exports;var Ox=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M144 288c0-61.9 50.1-112 112-112s112 50.1 112 112-50.1 112-112 112-112-50.1-112-112zm112-64c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zM362.9 64.82L373.3 96H448c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V160c0-35.3 28.65-64 64-64h74.7l10.4-31.18C155.6 45.22 173.9 32 194.6 32h122.8c20.7 0 39 13.22 45.5 32.82zM64 144c-8.84 0-16 7.2-16 16v256c0 8.8 7.16 16 16 16h384c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16H338.7l-21.3-64H194.6l-21.3 64H64z"}})])},Lx=[],$x={},zx=(0,a.Z)($x,Ox,Lx,!1,null,null,null);const Nx=zx.exports;var Hx=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 353 91"}},e.$listeners),[t("path",{attrs:{fill:"currentColor",d:"M16.63 33.77v54.077H1.583V33.77H16.63zm36.942 10.845c4.94 0 8.81 1.655 11.61 4.965 2.801 3.259 4.201 7.715 4.201 13.367v24.9H54.49v-22.99c0-2.496-.662-4.43-1.986-5.806-1.273-1.425-3.004-2.138-5.194-2.138-2.24 0-4.022.738-5.346 2.215-1.324 1.425-1.986 3.411-1.986 5.957v22.762H24.93v-42.85h15.047v7.18c1.222-2.291 3.004-4.124 5.346-5.5 2.343-1.374 5.093-2.062 8.25-2.062zm40.065-.152c5.652 0 10.159 1.375 13.52 4.125 3.361 2.75 5.474 6.39 6.339 10.922H99.442c-.356-1.527-1.095-2.673-2.215-3.437-1.07-.763-2.393-1.145-3.972-1.145-1.12 0-1.986.254-2.597.764-.56.458-.84 1.12-.84 1.985 0 1.07.611 1.884 1.833 2.444 1.273.51 3.336 1.095 6.187 1.757 3.31.713 6.034 1.477 8.173 2.292 2.19.814 4.074 2.138 5.652 3.972 1.63 1.833 2.444 4.302 2.444 7.408 0 2.496-.687 4.71-2.062 6.646-1.375 1.935-3.386 3.462-6.034 4.582-2.597 1.07-5.678 1.604-9.242 1.604-6.009 0-10.795-1.298-14.36-3.895-3.564-2.597-5.728-6.314-6.492-11.152h14.436c.204 1.579.866 2.75 1.986 3.514 1.17.764 2.622 1.146 4.353 1.146 1.172 0 2.063-.255 2.674-.764.61-.51.916-1.171.916-1.986 0-1.222-.662-2.113-1.986-2.673-1.273-.56-3.335-1.12-6.186-1.68-3.26-.663-5.933-1.376-8.02-2.14-2.088-.814-3.921-2.087-5.5-3.818-1.527-1.784-2.29-4.227-2.29-7.334 0-3.87 1.502-7.027 4.506-9.471 3.005-2.444 7.282-3.667 12.832-3.667zm52.578 30.552v12.832h-6.187c-5.245 0-9.344-1.298-12.298-3.895-2.953-2.597-4.43-6.9-4.43-12.909V57.524h-5.499V44.998h5.499V34.61h15.047v10.388h7.715v12.526h-7.715V71.35c0 1.324.28 2.266.84 2.826.612.56 1.605.84 2.979.84h4.049zm22.749-30.552c3.005 0 5.602.663 7.791 1.986 2.241 1.273 3.896 3.056 4.965 5.347v-6.798h14.971v42.85H181.72V81.05c-1.069 2.291-2.724 4.099-4.965 5.423-2.189 1.273-4.786 1.91-7.791 1.91-3.411 0-6.492-.866-9.241-2.597-2.75-1.783-4.914-4.329-6.493-7.639-1.579-3.36-2.368-7.281-2.368-11.762 0-4.481.789-8.377 2.368-11.687 1.579-3.31 3.743-5.83 6.493-7.561 2.749-1.783 5.83-2.674 9.241-2.674zm4.965 13.138c-2.342 0-4.252.79-5.728 2.368-1.426 1.527-2.139 3.666-2.139 6.416 0 2.8.713 4.99 2.139 6.569 1.476 1.527 3.386 2.291 5.728 2.291 2.241 0 4.099-.79 5.576-2.368 1.477-1.578 2.215-3.743 2.215-6.492 0-2.699-.738-4.838-2.215-6.416-1.477-1.579-3.335-2.368-5.576-2.368zm151.408 12.144v18.102h-15.048V33.77h22.456c6.518 0 11.483 1.655 14.895 4.965 3.463 3.259 5.193 7.638 5.193 13.138 0 3.411-.764 6.467-2.29 9.165-1.529 2.699-3.819 4.838-6.875 6.416-3.005 1.528-6.644 2.292-10.923 2.292h-7.408zm5.729-11.84c4.378 0 6.568-2.01 6.568-6.033 0-3.972-2.19-5.958-6.568-5.958h-5.729v11.992h5.729zm-41.25-24.125h15.352a1.486 1.486 0 011.286.736 1.493 1.493 0 01.01 1.484L278.84 85.013a4.84 4.84 0 01-4.21 2.462h-11.751a4.826 4.826 0 01-4.512-3.114l-2.877-7.56.203.137a7.984 7.984 0 006.282 1.045 7.99 7.99 0 002.928-1.413 7.99 7.99 0 002.126-2.462l16.575-29.684h-13.223a1.49 1.49 0 01-1.366-.833 1.49 1.49 0 01.18-1.588L302.432.669a1.063 1.063 0 011.79.386c.079.235.074.49-.016.72l-14.39 32.005zm-53.975 50.73a2.954 2.954 0 01-1.826 2.734c-.36.149-.745.225-1.133.225h-12.605a2.96 2.96 0 01-2.788-1.965l-1.497-4.257-15.375-43.471a2.993 2.993 0 012.823-3.996h11.516a3.678 3.678 0 013.456 2.421l16.428 44.993.842 2.297c.112.327.166.672.159 1.018z"}}),t("path",{attrs:{fill:"currentColor",d:"M248.623 58.805l-9.471 26.77a2.878 2.878 0 01-2.705 1.912h-16.169a2.96 2.96 0 01-2.788-1.983l-1.504-4.256c.296.485 2.764 4.274 5.837-.053l15.795-43.265s1.895-1.148 3.055 0l7.95 20.875z"}}),t("path",{attrs:{fill:"currentColor",d:"M269.983 68.845l-7.145 12.77a3.148 3.148 0 01-2.976 1.6 3.146 3.146 0 01-2.708-2.02l-8.531-22.39-7.66-20.13a1.928 1.928 0 00-2.179-1.183 4.024 4.024 0 00-1.183.45 6.17 6.17 0 012-2.777 6.307 6.307 0 013.937-1.385H254.1a5.327 5.327 0 015.019 3.51l10.969 30.04c.095.244.132.507.117.769a1.829 1.829 0 01-.222.746z"}})])},Rx=[],Gx={},Fx=(0,a.Z)(Gx,Hx,Rx,!1,null,null,null);const Ux=Fx.exports;var Wx=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 511 512"}},e.$listeners),[t("g",{attrs:{"clip-path":"url(#a)"}},[t("path",{attrs:{d:"M369.277 72H141.723c-26.459 0-47.907 21.49-47.907 48v64c0 26.5 21.448 48 47.907 48h227.554c26.449 0 47.907-21.5 47.907-48v-64c0-26.51-21.458-48-47.907-48m0 112H141.723v-64h227.554zM487.047 0c-13.174 0-23.953 10.8-23.953 24v464c0 13.2 10.779 24 23.953 24S511 501.2 511 488V24c0-13.2-10.779-24-23.953-24"}}),t("path",{attrs:{d:"M463.094 24c0-13.2 10.779-24 23.953-24S511 10.8 511 24v464c0 13.2-10.779 24-23.953 24s-23.953-10.8-23.953-24zM0 24C0 10.8 10.779 0 23.953 0s23.953 10.8 23.953 24v464c0 13.2-10.779 24-23.953 24S0 501.2 0 488z"}}),t("path",{attrs:{d:"M369.277 280H141.723c-26.459 0-47.907 21.49-47.907 48v64c0 26.5 21.448 48 47.907 48h227.554c26.449 0 47.907-21.5 47.907-48v-64c0-26.51-21.458-48-47.907-48m-227.554 48h227.554v64H141.723z","clip-rule":"evenodd"}})]),t("defs",[t("clipPath",{attrs:{id:"a"}},[t("path",{attrs:{d:"M0 0h511v512H0z"}})])])])},jx=[],Xx={},qx=(0,a.Z)(Xx,Wx,jx,!1,null,null,null);const Kx=qx.exports;var Yx=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 512 511"}},e.$listeners),[t("g",{attrs:{"clip-path":"url(#a)"}},[t("path",{attrs:{d:"M440 369.277V141.723c0-26.459-21.49-47.907-48-47.907h-64c-26.5 0-48 21.448-48 47.907v227.554c0 26.449 21.5 47.907 48 47.907h64c26.51 0 48-21.458 48-47.907m-112 0V141.723h64v227.554zm184 117.77c0-13.174-10.8-23.953-24-23.953H24c-13.2 0-24 10.779-24 23.953S10.8 511 24 511h464c13.2 0 24-10.779 24-23.953"}}),t("path",{attrs:{d:"M488 463.094c13.2 0 24 10.779 24 23.953S501.2 511 488 511H24c-13.2 0-24-10.779-24-23.953s10.8-23.953 24-23.953zM488 0c13.2 0 24 10.779 24 23.953s-10.8 23.953-24 23.953H24c-13.2 0-24-10.779-24-23.953S10.8 0 24 0z"}}),t("path",{attrs:{d:"M232 369.277V141.723c0-26.459-21.49-47.907-48-47.907h-64c-26.5 0-48 21.448-48 47.907v227.554c0 26.449 21.5 47.907 48 47.907h64c26.51 0 48-21.458 48-47.907m-48-227.554v227.554h-64V141.723z","clip-rule":"evenodd"}})]),t("defs",[t("clipPath",{attrs:{id:"a"}},[t("path",{attrs:{d:"M512 0v511H0V0z"}})])])])},Jx=[],Qx={},eS=(0,a.Z)(Qx,Yx,Jx,!1,null,null,null);const tS=eS.exports;var nS=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 511 512"}},e.$listeners),[t("g",{attrs:{"clip-path":"url(#a)"}},[t("path",{attrs:{d:"M487.047 0c-13.174 0-23.953 10.8-23.953 24v464c0 13.2 10.779 24 23.953 24S511 501.2 511 488V24c0-13.2-10.779-24-23.953-24"}}),t("path",{attrs:{d:"M463.094 24c0-13.2 10.779-24 23.953-24S511 10.8 511 24v464c0 13.2-10.779 24-23.953 24s-23.953-10.8-23.953-24zM0 24C0 10.8 10.779 0 23.953 0s23.953 10.8 23.953 24v464c0 13.2-10.779 24-23.953 24S0 501.2 0 488z"}}),t("path",{attrs:{d:"M204 369.277V141.723c0-26.459-21.49-47.907-48-47.907h-34c-26.5 0-48 21.448-48 47.907v227.554c0 26.449 21.5 47.907 48 47.907h34c26.51 0 48-21.458 48-47.907m-48-227.554v227.554h-34V141.723zm281 227.554V141.723c0-26.459-21.49-47.907-48-47.907h-34c-26.5 0-48 21.448-48 47.907v227.554c0 26.449 21.5 47.907 48 47.907h34c26.51 0 48-21.458 48-47.907m-48-227.554v227.554h-34V141.723z","clip-rule":"evenodd"}})]),t("defs",[t("clipPath",{attrs:{id:"a"}},[t("path",{attrs:{d:"M0 0h511v512H0z"}})])])])},oS=[],sS={},aS=(0,a.Z)(sS,nS,oS,!1,null,null,null);const iS=aS.exports;var rS=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 512 511"}},e.$listeners),[t("path",{attrs:{d:"M512 487.047c0-13.174-10.8-23.953-24-23.953H24c-13.2 0-24 10.779-24 23.953S10.8 511 24 511h464c13.2 0 24-10.779 24-23.953"}}),t("path",{attrs:{d:"M488 463.094c13.2 0 24 10.779 24 23.953S501.2 511 488 511H24c-13.2 0-24-10.779-24-23.953s10.8-23.953 24-23.953zM488 0c13.2 0 24 10.779 24 23.953s-10.8 23.953-24 23.953H24c-13.2 0-24-10.779-24-23.953S10.8 0 24 0z"}}),t("path",{attrs:{d:"M142.723 204h227.554c26.459 0 47.907-21.49 47.907-48v-34c0-26.5-21.448-48-47.907-48H142.723c-26.449 0-47.907 21.5-47.907 48v34c0 26.51 21.458 48 47.907 48m227.554-48H142.723v-34h227.554zM142.723 437h227.554c26.459 0 47.907-21.49 47.907-48v-34c0-26.5-21.448-48-47.907-48H142.723c-26.449 0-47.907 21.5-47.907 48v34c0 26.51 21.458 48 47.907 48m227.554-48H142.723v-34h227.554z","clip-rule":"evenodd"}})])},lS=[],cS={},uS=(0,a.Z)(cS,rS,lS,!1,null,null,null);const dS=uS.exports;var pS=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 511 512"}},e.$listeners),[t("g",{attrs:{"clip-path":"url(#a)"}},[t("path",{attrs:{d:"M487.047 0c-13.174 0-23.953 10.8-23.953 24v464c0 13.2 10.779 24 23.953 24S511 501.2 511 488V24c0-13.2-10.779-24-23.953-24"}}),t("path",{attrs:{d:"M463.094 24c0-13.2 10.779-24 23.953-24S511 10.8 511 24v464c0 13.2-10.779 24-23.953 24s-23.953-10.8-23.953-24zM0 24C0 10.8 10.779 0 23.953 0s23.953 10.8 23.953 24v464c0 13.2-10.779 24-23.953 24S0 501.2 0 488z"}}),t("path",{attrs:{d:"M242 369.277V141.723c0-26.459-21.49-47.907-48-47.907h-34c-26.5 0-48 21.448-48 47.907v227.554c0 26.449 21.5 47.907 48 47.907h34c26.51 0 48-21.458 48-47.907m-48-227.554v227.554h-34V141.723zm205 227.554V141.723c0-26.459-21.49-47.907-48-47.907h-34c-26.5 0-48 21.448-48 47.907v227.554c0 26.449 21.5 47.907 48 47.907h34c26.51 0 48-21.458 48-47.907m-48-227.554v227.554h-34V141.723z","clip-rule":"evenodd"}})]),t("defs",[t("clipPath",{attrs:{id:"a"}},[t("path",{attrs:{d:"M0 0h511v512H0z"}})])])])},hS=[],gS={},mS=(0,a.Z)(gS,pS,hS,!1,null,null,null);const vS=mS.exports;var fS=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{viewBox:"0 0 512 511",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},e.$listeners),[t("path",{attrs:{d:"M512 487.047c0-13.174-10.8-23.953-24-23.953H24c-13.2 0-24 10.779-24 23.953S10.8 511 24 511h464c13.2 0 24-10.779 24-23.953z"}}),t("path",{attrs:{d:"M488 463.094c13.2 0 24 10.779 24 23.953S501.2 511 488 511H24c-13.2 0-24-10.779-24-23.953s10.8-23.953 24-23.953h464zM488 0c13.2 0 24 10.779 24 23.953s-10.8 23.953-24 23.953H24c-13.2 0-24-10.779-24-23.953S10.8 0 24 0h464z"}}),t("path",{attrs:{"clip-rule":"evenodd",d:"M142.723 242h227.554c26.459 0 47.907-21.49 47.907-48v-34c0-26.5-21.448-48-47.907-48H142.723c-26.449 0-47.907 21.5-47.907 48v34c0 26.51 21.458 48 47.907 48zm227.554-48H142.723v-34h227.554v34zM142.723 399h227.554c26.459 0 47.907-21.49 47.907-48v-34c0-26.5-21.448-48-47.907-48H142.723c-26.449 0-47.907 21.5-47.907 48v34c0 26.51 21.458 48 47.907 48zm227.554-48H142.723v-34h227.554v34z"}})])},yS=[],bS={},_S=(0,a.Z)(bS,fS,yS,!1,null,null,null);const IS=_S.exports;var wS=function(){var e=this,t=e._self._c;return t("svg",e._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},e.$listeners),[t("path",{attrs:{d:"M313.4 32.9c26 5.2 42.9 30.5 37.7 56.5l-2.3 11.4c-5.3 26.7-15.1 52.1-28.8 75.2h144c26.5 0 48 21.5 48 48 0 18.5-10.5 34.6-25.9 42.6C497 275.4 504 288.9 504 304c0 23.4-16.8 42.9-38.9 47.1 4.4 7.3 6.9 15.8 6.9 24.9 0 21.3-13.9 39.4-33.1 45.6.7 3.3 1.1 6.8 1.1 10.4 0 26.5-21.5 48-48 48h-97.5c-19 0-37.5-5.6-53.3-16.1l-38.5-25.7C176 420.4 160 390.4 160 358.3V247.1c0-29.2 13.3-56.7 36-75l7.4-5.9c26.5-21.2 44.6-51 51.2-84.2l2.3-11.4c5.2-26 30.5-42.9 56.5-37.7zM32 192h64c17.7 0 32 14.3 32 32v224c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V224c0-17.7 14.3-32 32-32z"}})])},xS=[],SS={},CS=(0,a.Z)(SS,wS,xS,!1,null,null,null);const kS=CS.exports,PS=["List2Icon","GridIcon","ShopIcon","SquarePollHorizontalIcon","BoxOpenIcon","StarHalfIcon","CreditCardIcon","CartPlusIcon","TruckIcon","ChevronsRightIcon","CommentsIcon","CommentSolidIcon","QuotesIcon","ImagePolaroidIcon","TimelineIcon","ThumbsUpIcon","ShareFromSquareIcon","UserIcon","RectangleWideIcon","RectangleVerticalIcon","FileLinesIcon","Columns3Icon","LinkSimpleIcon","SquareUpRightIcon","SquareQuestionIcon","SquareQuoteIcon","LeftRightIcon","TimerIcon","HourglassIcon","FacebookSquareIcon","SlidersSimpleIcon","EditIcon","EditSolidIcon","LayersIcon","LayersIconSolid","PaletteIcon","PaletteSolidIcon","PlusIcon","PlusIconSolid","MinusIcon","CloseIcon","CloseSolidIcon","CloseSolidIcon","TrashIcon","TrashSolidIcon","DeleteLeftIcon","TrashSolidIcon","RecycleIcon","UndoIcon","UndoIconSolid","RedoIcon","RedoIconSolid","BrowserIcon","HistoryIcon","HistorySolidIcon","CogsIcon","DesktopIcon","GearIcon","GearSolidIcon","ExpandIcon","ExpandExpandIcon","ShrinkIcon","MinifyGlassIcon","MagnifyingGlassIcon","DuplicateIcon","DuplicateSolidIcon","MobileIcon","PenIcon","StarIcon","StarSolidIcon","TabletIcon","ElementStudioIcon","WordPressIcon","WrenchIcon","WrenchSimpleIcon","CaretDownIcon","CaretDownSolidIcon","SlidersIcon","SlidersSolidIcon","BreakpointsIcon","FontIcon","BreakdanceIcon","SquareIcon","SquareSolidIcon","ActionsIcon","BarsIcon","BarsSolidIcon","BoxIcon","CodeIcon","CssIcon","Css3Icon","AttributesIcon","Html5Icon","CheckListIcon","TextIcon","ChevronDownIcon","ChevronDownSolidIcon","ChevronRightIcon","ChevronLeftIcon","GripVerticalIcon","GripVerticalSolidIcon","GripDotsVerticalIcon","GripLinesIcon","SearchFileIcon","ColorPickerIcon","ConditionsIcon","ConditionsSolidIcon","DatabaseIcon","CloseCircleIcon","OpenFolderIcon","OpenFolderSolidIcon","SaveIcon","AddFileIcon","TableColumnIcon","CloseSquareIcon","ExternalLinkIcon","RotateIcon","Grid2PlusSolidIcon","SolidIcon","EyeSolidIcon","EllipsisIcon","EllipsisSolidIcon","EllipsisSolidVerticalIcon","EllipsisStrokeVerticalIcon","EllipsisStrokeIcon","BracketsIcon","BracketsSolidIcon","UploadFileIcon","DownloadFileIcon","DownloadSolidIcon","SpinnerIcon","HoverIcon","ArrowPointerIcon","ArrowPointerSolidIcon","SearchIcon","LinkIcon","LinkSlashIcon","LinkSimpleSlashSolidIcon","ClipboardIcon","CheckIcon","CheckSolidIcon","ExclamationMarkCircleIcon","StrikethroughIcon","OverlineIcon","UnderlineIcon","XmarkIcon","XmarkSolidIcon","ItalicIcon","VideoIcon","VideoSolidIcon","ImageIcon","BorderBottomIcon","ImageAndVideIcon","ListIcon","BoldIcon","H6Icon","H5Icon","H4Icon","H3Icon","H2Icon","H1Icon","HeadingIcon","OlListIcon","HashtagIcon","DistributeSpacingHorizontalIcon","FlexAlignCenterHorizontalIcon","FlexAlignCenterVerticalIcon","FlexAlignBottomIcon","AlignJustifyIcon","AlignCenterIcon","AlignRightIcon","AlignLeftIcon","LeftAndRightArrowsIcon","CheckSquareIcon","MinimizeIcon","UpAndDownArrowsIcon","FlexAlignTopIcon","FlexAlignLeftIcon","FlexAlignRightIcon","EllipsisVerticalIcon","ArrowUpIcon","ArrowDownIcon","ArrowRightIcon","ArrowLeftIcon","CircleIcon","BorderCenterIcon","BorderTopIcon","IconsIcon","BanIcon","DollarIcon","DollarSolidIcon","MaximizeIcon","LightingIcon","GrinHeartsIcon","HeartIcon","EyeSlashSolidIcon","BorderRadiusAllIcon","BorderRadiusAllCustomIcon","BorderRadiusTopLeftIcon","BorderRadiusTopRightIcon","BorderRadiusBottomRightIcon","BorderRadiusBottomLeftIcon","SquareAltIcon","BorderTopAlt","BorderRightAlt","BorderBottomAlt","BorderLeftAlt","FolderGearIcon","CodeBranchIcon","CopyIcon","CopySolidIcon","CircleInfoIcon","ArrowLeftLongIcon","GlobeIcon","CartShoppingIcon","TagsIcon","FilterListIcon","UpRightAndDownLeftFromCenter","DownLeftAndUpRightToCenter","HouseIcon","Grid2Icon","FolderIcon","FolderOpenIcon","PaintbrushFineIcon","ArrowTurnDownLeftIcon","ArrowTurnDownRightIcon","RobotIcon","StarsIcon","UserTieIcon","SpellCheckIcon","SparklesIcon","SparklesIconSolid","SparklesSolidIcon","LockIcon","LockSolidIcon","UnlockSolidIcon","UnlockIcon","SwapIcon","ComputerMouseScrollWheelIcon","ScissorsIcon","ClapperboardPlayIcon","WandMagicSparkles","CircleNotchSolidIcon","StarShootingSolidIcon","PlaySolidIcon","BookOpenSolidIcon","BookOpenIcon","CubeSolidIcon","CubeIcon","OxygenLogoIcon","ArrowsToLineIcon","ArrowsFromLineIcon","ArrowUpRightSolidIcon","FolderPlusIcon","PenSolidIcon","CircleHalfStrokeIcon","LetterAIcon","LetterIIcon","PlayIcon","LockOpenSolidIcon","PlayIcon","ShuffleSolidIcon","NotchSolidIcon","BroomWideIcon","RepeatIcon","ShuffleIcon","ArrowsRotateSolidIcon","HomeSolidIcon","HomeRegularIcon","PageRegularIcon","RightFromBracketSolidIcon","CircleQuestionSolidIcon","CameraIcon","InstaWPLogo","FlexAlignStretch","FlexAlignStretchHorizontal","FlexAlignSpaceBetween","FlexAlignSpaceAround","FlexAlignSpaceBetweenHorizontal","FlexAlignSpaceAroundHorizontal","ThumbsUpSolidIcon"]},23062:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});class o{constructor(){this.callbacks={onBeforeClosingInlineEditor:[]},this.register={onBeforeClosingInlineEditor:e=>{this.callbacks.onBeforeClosingInlineEditor.push(e)}},this.run={onBeforeClosingInlineEditor:e=>{this.callbacks.onBeforeClosingInlineEditor.forEach((t=>t(e)))}}}}const s=new o},87950:(e,t,n)=>{"use strict";n.d(t,{B7:()=>h,D0:()=>I,Jh:()=>b,PF:()=>g,Ul:()=>x,Uw:()=>v,ZY:()=>S,sA:()=>_,up:()=>C});var o=n(31381),s=n(85450),a=n(23128),i=n(87615),r=n(69137);if(/^(14|9)3$/.test(n.j))var l=n(3735);if(/^(14|9)3$/.test(n.j))var c=n(48973);var u=n(90189),d=n(68077),p=n(23062);async function h(e){if(s.uiStore.elementsThatAreUpdating[e.elementId])return void console.log("Element is updating, wait for it to finish before starting a new inline editing session.");if(s.uiStore.isInlineEditing)return void console.log("Inline editing already in progress, end the current session first.");const{elementId:t,blockId:n,showBackdrop:o=!0,escToSelectElement:a=!0,selectElementOnClose:i=!0,scrollToElementOnStart:l=!0,...c}=e,d={elementId:t,blockId:n,showBackdrop:o,escToSelectElement:a,loading:!0,selectElementOnClose:i,scrollToElementOnStart:l,...c};s.uiStore.setInlineEditingContext(d);const p=await f(n,c.loadFreshBlock);if(!p)return console.log("Block not found, this should never happen."),void console.trace();r.n.transaction((()=>{s.uiStore.setInlineEditingContext({...d,loading:!1,block:p}),(0,u.F_)(p,t)}),"Start Inline Editing",`inline-editing:${t}`)}async function g(e){const t=(0,o.findNode)(s.documentStore.document.tree,e);if(!t)return!1;const n=s.uiStore.inlineEditingContext?.block;if(!n)return console.log("Block not found, this should never happen."),console.log(s.uiStore.inlineEditingContext),console.trace(),!1;const a=(0,u.MY)(t);return a.length?y(n,e,a):(console.log("Nothing to save, this element is empty."),!1)}function m(e){const t=(0,o.findNode)(s.documentStore.document.tree,e);t&&p.P.run.onBeforeClosingInlineEditor({elementId:e,childrenIds:t.children.map((e=>e.id))}),r.n.transaction((()=>{t&&(0,u.SH)(t),s.uiStore.setInlineEditingContext(null),s.uiStore.setInlineEditingRect(null)}),"Stop Inline Editing",`inline-editing:stop:${e}`)}async function v(){const e=s.uiStore.inlineEditingContext,t=e?.elementId,n=e?.selectElementOnClose,o=e?.forceSsrOnClose;if(!t)return;(0,d.V)();const a=await g(t);m(t),(a||o)&&s.uiStore.setRefreshSsrElementId(t),n&&s.uiStore.activateElement(t)}async function f(e,t=!1){let n=s.configStore.globalBlocks.find((t=>t.id===e));return n&&!t||(n=(0,l.zG)(await(0,i.m9)(e),(0,c.g_)((()=>{}),(e=>e)))),n}async function y(e,t,n){const r=(0,o.getBlankTree)(),l=e?.tree?(0,a.Z)({...e.tree,root:{...e.tree.root,children:n}}):(0,o.exportTree)({...r,root:{...r.root,children:n}});if(!w(e,l))return void console.log("Block is up to date, no need to update.");s.uiStore.setElementUpdatingState({elementId:t,isUpdating:!0});const c=s.configStore.globalBlocks.map((t=>t.id===e.id?{...t,tree:l}:t));s.configStore.setGlobalBlocks(c);const u=await(0,i.v_)({...e,tree:l});return s.uiStore.setElementUpdatingState({elementId:t,isUpdating:!1}),u}function b(){if(!s.uiStore.inlineEditingContext?.blockId)return null;const e=s.configStore.globalBlocks.find((e=>e.id===s.uiStore.inlineEditingContext?.blockId));return!1!==e?.lastPreviewedItem?e?.lastPreviewedItem?.url:null}function _(){const e=s.uiStore.inlineEditingContext?.blockId,t=s.uiStore.inlineEditingContext?.block?.tree;return e&&t?t._nextNodeId:o.DEFAULT_NEXT_NODE_ID}function I(e){const t=s.uiStore.inlineEditingContext,n=t?.block;if(!n)return;const a=n.tree?n.tree:(0,o.exportTree)((0,o.getBlankTree)());s.uiStore.setInlineEditingContext({...t,block:{...n,tree:{...a,_nextNodeId:e}}})}function w(e,t){return!e.tree||!(0,o.treesEqual)(t,e.tree)}function x(){return s.uiStore.inlineEditingContext?.escToSelectElement&&s.uiStore.inlineEditingContext?.elementId}function S(e){return s.uiStore.isInlineEditing&&e.nestingRule.inlineEditable}function C(e){return e.nestingRule.inlineEditable&&e.nestingRule.inlineEditableBlockPath}},90189:(e,t,n)=>{"use strict";n.d(t,{F_:()=>r,MY:()=>l,SH:()=>c,Vc:()=>h});var o=n(85450),s=n(23128),a=n(31381),i=n(9950);function r(e,t){const n=d(e.id,e?.tree),s=(0,a.findNode)(o.documentStore.document.tree,t);if(!s?.children.length)return n.forEach(((e,n)=>(0,a.insertNewNodeAt)(o.documentStore.document.tree,e,t,n))),n;console.log("The parent node already has children, this should not happen, unless it's an undo transaction.",s.children)}function l(e){return(0,s.Z)(e.children).map((e=>({...u(e),_parentId:a.ROOT_ELEMENT_ID})))}function c(e){const t=e.children.map((e=>e.id));t.forEach((e=>(0,a.deleteNode)(o.documentStore.document.tree,e)))}function u(e){return{...e,id:"string"===typeof e.id?Number(e.id.split("-")[1]):e.id,children:e.children?e.children.map((e=>u(e))):e.children}}function d(e,t){return t&&void 0!==t.root.children?t.root.children.map((t=>p(e,t))):[]}function p(e,t){return{...t,id:`${e}-${t.id}`,children:t.children?t.children.map((t=>p(e,t))):t.children}}function h(e,t){const n=o.uiStore.inlineEditingContext?.elementId;if(!n)return!1;const s=(0,a.findNode)(e,n),r=(0,i.l0)(e,t,s)||t.id===n;return!r}},55735:(e,t,n)=>{"use strict";n.d(t,{r:()=>p,c:()=>h});var o=n(85450),s=n(16734);if(143==n.j)var a=n(34676);function i(){if(!o.uiStore.activeElementId)return;const e={...o.uiStore.panelState},t=()=>{o.uiStore.activeElementId&&o.uiStore.setPanelState({...e,elementPropertiesPanel:{...o.uiStore.panelState.elementPropertiesPanel,[o.uiStore.activeElementId]:{...o.uiStore.panelState.elementPropertiesPanel[o.uiStore.activeElementId],tab:"settings"}},accordionState:{...o.uiStore.panelState.accordionState,elementProperties:{...o.uiStore.panelState.accordionState.elementProperties,[o.uiStore.activeElementId]:{...o.uiStore.panelState.accordionState.elementProperties[o.uiStore.activeElementId],"settings.advanced":!0}}}})};!0===e.accordionState.elementProperties[o.uiStore.activeElementId]?.["settings.advanced"]?(o.uiStore.setPanelState({...o.uiStore.panelState,accordionState:{...o.uiStore.panelState.accordionState,elementProperties:{...o.uiStore.panelState.accordionState.elementProperties,[o.uiStore.activeElementId]:{...o.uiStore.panelState.accordionState.elementProperties[o.uiStore.activeElementId],"settings.advanced":!1}}}}),(0,a.forceNextTick)(t)):t()}function r(){o.uiStore.setKeyboardTriggeredActions({...o.uiStore.keyboardTriggeredActions,focusCodeMirror:"pending"}),i()}function l(){o.uiStore.setKeyboardTriggeredActions({...o.uiStore.keyboardTriggeredActions,openClassesDropdown:"pending"}),i()}if(143==n.j)var c=n(93709);var u=n(95690),d=n(87950);const p={CMD_A:["command+a","ctrl+a"],CMD_B:["command+b","ctrl+b"],CMD_E:["command+e","ctrl+e"],CMD_S:["command+s","ctrl+s"],CMD_Z:["command+z","ctrl+z"],CMD_SHIFT_Z:["command+shift+z","ctrl+shift+z"],CMD_SHIFT_E:["command+shift+e","ctrl+shift+e"],CMD_SHIFT_V:["command+shift+v","ctrl+shift+v"],CMD_SHIFT_G:["command+shift+g","ctrl+shift+g"],CMD_C:["command+c","ctrl+c"],CMD_V:["command+v","ctrl+v"],CMD_D:["command+d","ctrl+d"],ESC:["esc"],BACKSPACE:["backspace"],DELETE:["delete"],CMD_OPTION_R:["command+option+r","ctrl+alt+r"],CMD_SLASH:["command+/","ctrl+/"],CMD_SHIFT_SLASH:["command+shift+/","ctrl+shift+/"],CMD_QUESTION:["command+?","ctrl+?"],CMD_SHIFT_S:["command+shift+s","ctrl+shift+s"],SHIFT_ESC:["shift+esc"],C_S_S:["c s s"],C_L_A:["c l a"],F:["f"],SHIFT_F:["shift+f"],CMD_I:["command+i","ctrl+i"],OPTION_P:["alt+p"]},h=()=>({register(){const e=o.configStore.builderMode;s.uq.register(p.ESC,(()=>{document.dispatchEvent(new CustomEvent("close-dropdowns-when-escape-is-pressed",{cancelable:!0}))&&((0,d.Ul)()?o.uiStore.activateElement(o.uiStore.inlineEditingContext.elementId):o.uiStore.isPreviewMode?o.uiStore.closePreviewMode():o.uiStore.activateElement(null))})),s.uq.register(p.BACKSPACE,(()=>{o.uiStore.activeElementId&&o.documentStore.deleteElement({nodeId:o.uiStore.activeElementId})})),s.uq.register(p.CMD_D,(()=>{o.uiStore.activeElementId&&o.documentStore.duplicateElementAndActivateIt(o.uiStore.activeElementId)})),s.uq.register(p.CMD_OPTION_R,(()=>{o.uiStore.selectNextBreakpoint()})),s.uq.register(p.CMD_SHIFT_SLASH,(()=>{o.uiStore.setKeyboardShortcutHelpModalOpen(!0)})),s.uq.register(p.CMD_SLASH,(()=>{o.uiStore.setKeyboardShortcutHelpModalOpen(!0)})),s.uq.register("e l e m e n t",(()=>{o.configStore.setElementStudioPowerUser(!0)})),s.uq.register(p.OPTION_P,(()=>{o.uiStore.togglePreviewMode()})),"oxygen"===e&&(s.uq.register(p.CMD_SHIFT_E,(()=>{(0,u._y)("structure")})),s.uq.register(p.CMD_SHIFT_V,(()=>{(0,u._y)("variables")})),s.uq.register(p.CMD_SHIFT_G,(()=>{(0,u._y)("oxySelectors")}))),"breakdance"===e&&(s.uq.register(p.C_S_S,(()=>{r()})),s.uq.register(p.C_L_A,(()=>{l()})),s.uq.register(p.F,(()=>{(0,c.O)()})),s.uq.register(p.SHIFT_F,(()=>{(0,c.O)(!0)})),s.uq.register(p.SHIFT_F,(()=>{(0,c.O)(!0)})),s.uq.register(p.CMD_I,(()=>{(0,c.p)()})))},unbind(){s.uq.unbind("e l e m e n t"),s.uq.unbind(p.ESC),s.uq.unbind(p.CMD_D),s.uq.unbind(p.BACKSPACE),s.uq.unbind(p.CMD_OPTION_R),s.uq.unbind(p.CMD_SHIFT_SLASH),s.uq.unbind(p.CMD_SLASH),s.uq.unbind(p.C_S_S),s.uq.unbind(p.C_L_A),s.uq.unbind(p.F),s.uq.unbind(p.SHIFT_F),s.uq.unbind(p.CMD_I),s.uq.unbind(p.CMD_SHIFT_E),s.uq.unbind(p.CMD_SHIFT_V),s.uq.unbind(p.CMD_SHIFT_G)}})},16734:(e,t,n)=>{"use strict";n.d(t,{B6:()=>h,of:()=>g,uq:()=>c});var o=n(18446),s=n.n(o),a=n(38736),i=n.n(a),r=n(55735),l=n(47354);i().prototype.stopCallback=function(e,t){if((0,l.o8)())return!0;if((" "+t.className+" ").indexOf(" combokeys ")>-1)return!1;if("KeyS"===e.code)return!1;const n=t.tagName.toLowerCase();return"input"===n||"select"===n||"textarea"===n||t.isContentEditable};const c={shortcuts:[],register(e,t,n){this.shortcuts.push({keys:e,callback:t,action:n}),u()},unbind(e,t){this.shortcuts=this.shortcuts.filter((t=>!s()(t.keys,e))),d?.unbind(e,t),p?.unbind(e,t)}};function u(){c.shortcuts.forEach((e=>{d?.unbind(e.keys,e.action),p?.unbind(e.keys,e.action),d?.bind(e.keys,(t=>(e.callback(t),!1)),e.action),p?.bind(e.keys,(t=>(e.callback(t),!1)),e.action)}))}let d=null,p=null;function h(e,t=null){d?.detach(),d?.reset(),p?.detach(),p?.reset(),d=new(i())(e.documentElement),t&&(p=new(i())(t.documentElement)),u()}function g(e){d?.trigger(r.r[e][0])}},12176:(e,t,n)=>{"use strict";n.d(t,{JE:()=>l,M_:()=>u,bD:()=>d,xJ:()=>p});var o=n(665);if(/^(14|9)3$/.test(n.j))var s=n(3735);var a=n(98851);if(/^(14|9)3$/.test(n.j))var i=n(48973);if(/^(14|9)3$/.test(n.j))var r=n(32521);const l="breakdance_custom";function c(e){return(0,s.zG)(e,r.G0([r.IX(o.nV),o.nV]).decode,(0,i.g_)((()=>!1),(()=>!0)))}async function u(e){return(0,s.zG)(await(0,a.D)({action:"breakdance_image_sizes",dataToPost:{id:e},decoder:r.G0([r.IM(r.Z_,r._4),r.lB]),friendlyName:"Get image metadata",resultKey:"data"}),(0,i.g_)((()=>{}),(e=>e)))}async function d(e){if(c(e))return e;if(e.every((e=>c(e))))return e;const t=e.map((e=>e.id));return(0,s.zG)(await(0,a.D)({action:"breakdance_image_metadata",dataToPost:{ids:t},decoder:r.IX(o.V0),friendlyName:"Get image metadata",resultKey:"data"}),(0,i.g_)((()=>{}),(e=>e)))}async function p(e,t,n){const r={id:e?.id};return t&&(r.width=t),n&&(r.height=n),(0,s.zG)(await(0,a.D)({action:"breakdance_resize_image",decoder:o.ce,dataToPost:r,resultKey:"data"}),(0,i.g_)((()=>{}),(e=>e)))}},39664:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(31044);const s={log:{notification:e=>{i(e)},message:e=>{i({type:"MESSAGE",message:e})},errorMessage:e=>{i({type:"ERROR",message:e})}},dismiss:e=>{const t=[...o.kD.notifications];t.splice(e,1),o.kD.setNotifications(t)},dismissAll:()=>{o.kD.setNotifications([])}};window.Breakdance={...window.Breakdance,NotificationLogger:s};const a=s;function i(e){const t=[...o.kD.notifications,e];o.kD.setNotifications(t)}},18759:(e,t,n)=>{"use strict";n.d(t,{MK:()=>l,Q:()=>u,WX:()=>c,co:()=>a,jv:()=>r,ln:()=>h,rg:()=>i,uz:()=>p,v:()=>d,y3:()=>g});var o=n(31044),s=n(23128);function a(e,t){return o.kD.panelState.accordionState.elementProperties[e]?.[t]}function i(e,t,n){const a=(0,s.Z)(o.kD.panelState);a.accordionState.elementProperties={...a.accordionState.elementProperties,[e]:{...a.accordionState.elementProperties[e],[t]:n}},o.kD.setPanelState(a)}function r(e,t){return o.kD.panelState.accordionState.selectors[e]?.[t]}function l(e,t,n){const a=(0,s.Z)(o.kD.panelState);a.accordionState.selectors={...a.accordionState.selectors,[e]:{...a.accordionState.selectors[e],[t]:n}},o.kD.setPanelState(a)}function c(e,t){return o.kD.panelState.accordionState.presets[e]?.[t]}function u(e,t,n){const a=(0,s.Z)(o.kD.panelState);a.accordionState.presets={...a.accordionState.presets,[e]:{...a.accordionState.presets[e],[t]:n}},o.kD.setPanelState(a)}function d(e,t){const n=(0,s.Z)(o.kD.panelState);n.accordionState.globalSettings={...n.accordionState.globalSettings,[e]:t},o.kD.setPanelState(n)}function p(e){return o.kD.panelState?.accordionState?.globalSettings[e]}function h(e,t){const n=(0,s.Z)(o.kD.panelState);n.accordionState.dynamicDataFieldAttributes={...n.accordionState.dynamicDataFieldAttributes,[e]:t},o.kD.setPanelState(n)}function g(e){return o.kD.panelState?.accordionState?.dynamicDataFieldAttributes[e]}},95690:(e,t,n)=>{"use strict";n.d(t,{O_:()=>d,R3:()=>l,TO:()=>h,_y:()=>p,aQ:()=>x,c$:()=>m,eF:()=>c,hy:()=>I,iN:()=>_,oM:()=>u,pL:()=>w,qH:()=>b,t6:()=>f,ug:()=>g});var o=n(31044),s=n(713);if(143==n.j)var a=n(20144);var i=n(31549),r=n(85256);const l=280,c=265;function u(e){const t=_(e);if("left"===t&&o.kD.panelState.leftSidebarPanel!==e)if("closed"!==o.kD.panelState.leftSidebarPanel){const t=h(o.kD.panelState.leftSidebarPanel);t&&o.kD.setLeftSidebarState(e)}else o.kD.setLeftSidebarState(e);if("right"===t&&o.kD.panelState.rightSidebarPanel!==e)if("closed"!==o.kD.panelState.rightSidebarPanel){const t=h(o.kD.panelState.rightSidebarPanel);t&&o.kD.setRightSidebarState(e)}else o.kD.setRightSidebarState(e)}function d(e){return o.kD.panelState.leftSidebarPanel===e||o.kD.panelState.rightSidebarPanel===e}function p(e){d(e)?h(e):u(e)}function h(e){const t=o.kD.closingConfirmations[e];return t&&!t.chosenOption?(o.kD.showClosingConfirmation(e),!1):(o.kD.panelState.leftSidebarPanel===e&&o.kD.setLeftSidebarState("closed"),o.kD.panelState.rightSidebarPanel===e&&o.kD.setRightSidebarState("closed"),!0)}function g(){if("closed"!==o.kD.panelState.leftSidebarPanel){const e=h(o.kD.panelState.leftSidebarPanel);if(!e)return!1}if("closed"!==o.kD.panelState.rightSidebarPanel){const e=h(o.kD.panelState.rightSidebarPanel);if(!e)return!1}return!0}const m={add:"left",elementproperties:"left",structure:"right",history:"right",selectors:"right",oxySelectors:"right",globalSettings:"right",variables:"right",presets:"right",ai:"right"},v={...m,structure:"left",elementproperties:"right"},f=143==n.j?["variables"]:null;function y(e){return"oxygen"===o.PK.builderMode?v[e]:m[e]}function b(){(0,r.f)(m).forEach((e=>I(e,y(e))))}function _(e){const t=w(e);return t||y(e)}function I(e,t){(0,i.r)(`uipanel_position_${e}`,t)}function w(e){const t=(0,i.z)(`uipanel_position_${e}`);return"left"===t?"left":"right"===t?"right":y(e)}function x(e,t,n){a.ZP.nextTick((()=>{const o=t.getBoundingClientRect();(0,s.b7)((()=>{n.scrollIntoView({block:"center"})}),n,{root:e,rootMargin:`-${o.height}px 0px 0px 0px`})}))}},74604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(85450),s=n(78574);const a={bind(e,t){const n=(0,s.Y)(o.configStore.availablePermissions,t.value);if(!o.configStore.permission||!n)return;const a=o.configStore.permission.level>=n.level;a||(e.style.display="none")}},i=a},78574:(e,t,n)=>{"use strict";function o(e,t){return e.find((e=>e.slug===t))}function s(e,t){return"full"===t?.slug?e:{...e,designSections:[],settingsSections:[]}}n.d(t,{Y:()=>o,Z:()=>s})},54120:(e,t,n)=>{"use strict";n.d(t,{CO:()=>k,I8:()=>x,Lr:()=>_,Tn:()=>S,WE:()=>C,lb:()=>Z,mJ:()=>P,qd:()=>D,rE:()=>w,wQ:()=>I,wV:()=>E,xk:()=>b});var o=n(30236),s=n.n(o),a=n(14018),i=n(98851);if(143==n.j)var r=n(3735);if(143==n.j)var l=n(48973);var c=n(51168),u=n(31044),d=n(65669);if(143==n.j)var p=n(32521);var h=n(95690),g=n(69137);if(143==n.j)var m=n(8773);var v=n(31381),f=n(23128);function y(e){g.n.transaction((()=>u.cr.setPresets([...u.cr.presets,e])),"Add Preset")}async function b(e){y(e),(0,h.O_)("presets")||await w()}function _(e,t,n={}){return{id:(0,m.Z)(),name:e,availableForType:t,design:n}}async function I(){const e=await(0,i.D)({action:"breakdance_load_presets",decoder:a.p});return(0,r.zG)(e,(0,l.g_)((e=>((0,c.UE)(e.map((e=>({...e,customNotificationToShow:e.customNotificationToShow?"INTERNAL_SERVER_ERROR"===e.customNotificationToShow.type?{...e.customNotificationToShow,keepOpen:!0}:e.customNotificationToShow:void 0})))),!1)),(e=>(g.n.ignore((()=>{u.cr.setPresets(e),u.cr.markCurrentPresetsAsUntouched()})),!0))))}async function w(){const e=u.cr.presets.map((e=>{const t=0===Object.keys(e.design||{}).length,n=t?null:e.design;return{...e,design:n}}));return(0,r.zG)(await(0,i.D)({friendlyName:"Saving presets to WordPress",action:"breakdance_save_presets",dataToPost:{presets:(0,d.J)(e)},decoder:p._4}),(0,l.g_)((e=>((0,c.UE)(e),!1)),(()=>(g.n.ignore((()=>u.cr.markCurrentPresetsAsUntouched())),!0))))}function x(e,t,n=!0){n&&u.Hb.unthrottledPropertyChanged({elementId:t,path:"design",meta:{snapshotLabel:"Reset design of element"},value:null}),u.Hb.unthrottledPropertyChanged({elementId:t,path:"meta.preset",meta:{snapshotLabel:"Add preset to element"},value:e})}function S(e){u.Hb.unthrottledPropertyChanged({elementId:e,path:"meta.preset",meta:{snapshotLabel:"Remove preset of a element"},value:null})}function C(e,t){const n=u.cr.presets.find((t=>t.id===e));n&&(u.Hb.unthrottledPropertyChanged({elementId:t,path:"meta.preset",meta:{snapshotLabel:"Remove preset of a element"},value:null}),u.Hb.unthrottledPropertyChanged({elementId:t,path:"design",meta:{snapshotLabel:"Copy preset properties to element"},value:n.design}))}function k(e){if(!e)return!1;const t=(0,v.findNode)(u.Hb.document.tree,e);return!!t&&!!t.data.properties?.meta?.preset}function P(e){return e.map((e=>{const t=(0,f.Z)(e);return Array.isArray(t.options.condition)?t.options.condition=t.options.condition.map((e=>e.filter((e=>!e.path.startsWith("content."))))):t.options.condition?.path.startsWith("content.")&&(t.options.condition=void 0),t.children.length&&(t.children=P(t.children)),t}))}function Z(e,t){const n=(0,f.Z)(e),o=(0,f.Z)(t);return s()({},n,o,((e,t)=>null===t?e:void 0))}function D(e){const t=e?.data.properties?.design,n=e?.data.properties?.meta?.preset,o=u.cr.presets.find((e=>e.id===n));return Z(o?.design,t)}function E(e){return e.cssTemplate.split("{#%--- Auto Generated Twig Code: ---%#}")[1]}},59705:(e,t,n)=>{"use strict";n.d(t,{CK:()=>l,fR:()=>i,p1:()=>u,wT:()=>r});var o=n(62367),s=n(85450),a=n(65556);function i(e){const t=s.singularityStore.brand.color,n=e&&e.radius?e.radius:s.singularityStore.brand.ui.inputRadius,i=e&&e.size?e.size:s.singularityStore.brand.ui.buttonSize,r={value:{primary:{corners:"custom",corner_radius:a.CZ[n],background:`var(--${t.primary?.base.cssVariableName})`,background_hover:`var(--${t.primary?.scale[600].cssVariableName})`,typography:{color:`var(--${t.primary?.text.cssVariableName})`},size:{size:{breakpoint_base:"custom"},padding:u[i].style}},secondary:{corners:"custom",corner_radius:a.CZ[n],outline:"true",background_hover:"transparent",color:"var(--bde-body-text-color)",typography:{color:"var(--bde-body-text-color)"},size:{size:{breakpoint_base:"custom"},padding:u[i].style}}}};(0,o.Ig)("settings.buttons",{...r.value})}function r(e){const t=e&&e.radius?e.radius:s.singularityStore.brand.ui.inputRadius,n={value:{fields:{borders:{radius:{all:a.CZ[t]}}}}};(0,o.Ig)("settings.forms",{...n.value})}function l(e){return{number:e,unit:"px",style:`${e}px`}}function c(e,t){return{breakpoint_base:{top:l(e),right:l(t),bottom:l(e),left:l(t)}}}const u={default:{style:c(14,24),string:"14px 24px"},sm:{style:c(12,16),string:"12px 16px"},md:{style:c(16,32),string:"16px 32px"},lg:{style:c(20,40),string:"20px 40px"}}},43425:(e,t,n)=>{"use strict";n.d(t,{_c:()=>v,TS:()=>p,Wk:()=>_,_9:()=>k,eO:()=>x,Bc:()=>f,hR:()=>h,q3:()=>y,SL:()=>g});n(27361);var o=n(21357),s=n(88615),a=n(85450),i=(n(31381),n(62367)),r=n(59705),l=n(69137),c=n(75495);const u=(e,t)=>`${e} {\n --background: var(--${t.background.cssVariableName});\n --contrasted-from-background-for-text: var(--${t.contrastedFromBackgroundForText.cssVariableName});\n --contrasted-from-background-for-button: var(--${t.contrastedFromBackgroundForButton.cssVariableName});\n --contrasted-from-background-for-button-hover: var(--${t.contrastedFromBackgroundForButtonHover.cssVariableName});\n --contrasted-from-button-for-button-text: var(--${t.contrastedFromButtonForButtonText.cssVariableName});\n --contrasted-from-button-for-button-text-hover: var(--${t.contrastedFromButtonForButtonTextHover.cssVariableName});\n}`;function d(e){const t=(0,c.W)(e),n=[];return n.push("/* FutureLayer Color Schemes - WCAG Compliant */"),n.push("/* Auto-generated from brand colors */"),n.push(""),t.primary&&t.primary.length>0&&(n.push("/* Primary Color Schemes */"),t.primary.forEach(((e,t)=>{n.push(u(`.primary-scheme-${t+1}`,e)),n.push("")}))),t.neutral&&t.neutral.length>0&&(n.push("/* Neutral Color Schemes */"),t.neutral.forEach(((e,t)=>{n.push(u(`.neutral-scheme-${t+1}`,e)),n.push("")}))),t.secondary&&t.secondary.length>0&&(n.push("/* Secondary Color Schemes */"),t.secondary.forEach(((e,t)=>{e&&e.length>0&&(n.push(`/* Secondary Palette ${t+1} */`),e.forEach(((e,o)=>{n.push(u(`.secondary-${t+1}-scheme-${o+1}`,e)),n.push("")})))}))),n.join("\n")}const p=e=>{const t={},n="#000000",s="#ffffff";return t[900]=I(n,"neutral","900"),t[100]=I(s,"neutral","100"),t[800]=I(o.ZP.mix(e,"#ffffff",.125).hex(),"neutral","800"),t[700]=I(o.ZP.mix(e,"#ffffff",.25).hex(),"neutral","700"),t[600]=I(o.ZP.mix(e,"#ffffff",.375).hex(),"neutral","600"),t[500]=I(o.ZP.mix(e,"#ffffff",.5).hex(),"neutral","500"),t[400]=I(o.ZP.mix(e,"#ffffff",.625).hex(),"neutral","400"),t[300]=I(o.ZP.mix(e,"#ffffff",.75).hex(),"neutral","300"),t[200]=I(o.ZP.mix(e,"#ffffff",.875).hex(),"neutral","200"),{label:"Neutral",primary:!1,locked:!1,base:t[900],scale:t,text:t[100]}};async function h(e){e||(e=a.singularityStore.brand.color);const t=w(e),n={value:{palette:{colors:t},brand:`var(--${e.primary?.base.cssVariableName})`,text:`var(--${e.neutral?.base.cssVariableName})`,headings:`var(--${e.neutral?.base.cssVariableName})`,links:`var(--${e.neutral?.base.cssVariableName})`,background:`var(--${e.neutral?.scale[100].cssVariableName})`}};(0,i.Ig)("settings.colors",{...n.value}),(0,r.fR)();const o=d(e);(0,i.Ig)("settings.futurelayer",{colorSchemesCss:o})}function g(){if(a.singularityStore.brand.color?.primary?.locked)return;const e=_(C(),!0);a.singularityStore.setPalette({type:"primary",palette:e}),b(e)}function m(){a.singularityStore.brand.color.secondary.forEach(((e,t)=>{if(!e.locked){const e=_(C(),!1,!1,t+1);a.singularityStore.updateSecondaryPalette({index:t,palette:e})}}))}function v(e){const t=_(C(),!1,!1,e);a.singularityStore.addSecondaryPalette(t)}function f(e,t){return _(C(),e||!1,!1,t)}function y(){l.n.transaction((()=>{g(),m(),h()}),"Shuffled colors")}function b(e){const t=e?.scale[900].value||a.singularityStore.brand.color?.primary?.scale[900].value;if(!t)return;const n=p(String(t));a.singularityStore.setPalette({type:"neutral",palette:n})}const _=(e,t=!1,n=!1,s)=>{const a={},i=(0,o.ZP)(e).hex(),r=t?"primary":`secondary-${s??1}`,l=S(i),c=(0,o.ZP)(i).lab(),u=o.ZP.lab(Math.min(c[0]+90,99),.02*c[1],.02*c[2]).hex(),d=o.ZP.lab(Math.max(c[0]-65,2),.7*c[1],.7*c[2]).hex(),p=o.ZP.scale([u,i,d]).mode("lab").colors(9);a[100]=I(p[0],r,"100"),a[200]=I(p[1],r,"200"),a[300]=I(p[2],r,"300"),a[400]=I(p[3],r,"400"),a[500]=I(p[4],r,"500"),a[600]=I(p[5],r,"600"),a[700]=I(p[6],r,"700"),a[800]=I(p[7],r,"800"),a[900]=I(p[8],r,"900");const h=x(i)?a[900]:a[100];return{label:l,primary:t,locked:n,base:a[500],scale:a,text:h}};function I(e,t,n){return{cssVariableName:(0,s.dw)(`future-layer-${t}-${n}`,"",!0),label:`${t} ${n}`,value:e}}const w=e=>{const t=[];return e.primary&&t.push(...Object.values(e.primary.scale)),e.neutral&&t.push(...Object.values(e.neutral.scale)),e.secondary&&Array.isArray(e.secondary)&&e.secondary.forEach((e=>{t.push(...Object.values(e.scale))})),t},x=e=>!!e&&(0,o.ZP)(e).luminance()>.3,S=e=>{const t=(0,o.ZP)(e).lab();let n="",s=1/0;for(const{name:a,hex:i}of P){const e=o.ZP.deltaE(o.ZP.lab(...t),o.ZP.lab(...(0,o.ZP)(i).lab()));e{const e=Math.floor(Math.random()*P.length);return P[e].hex};function k(e,t){return{backgroundColor:e,color:x(e)?String(t.scale[900].value):String(t.scale[100].value)}}const P=[{name:"White",hex:"#ffffff"},{name:"Snow",hex:"#fffafa"},{name:"Honeydew",hex:"#f0fff0"},{name:"Mint Cream",hex:"#f5fffa"},{name:"Azure",hex:"#f0ffff"},{name:"Alice Blue",hex:"#f0f8ff"},{name:"Ghost White",hex:"#f8f8ff"},{name:"White Smoke",hex:"#f5f5f5"},{name:"Seashell",hex:"#fff5ee"},{name:"Beige",hex:"#f5f5dc"},{name:"Old Lace",hex:"#fdf5e6"},{name:"Floral White",hex:"#fffaf0"},{name:"Ivory",hex:"#fffff0"},{name:"Antique White",hex:"#faebd7"},{name:"Linen",hex:"#faf0e6"},{name:"Lavender Blush",hex:"#fff0f5"},{name:"Misty Rose",hex:"#ffe4e1"},{name:"Gainsboro",hex:"#dcdcdc"},{name:"Light Gray",hex:"#d3d3d3"},{name:"Silver",hex:"#c0c0c0"},{name:"Dark Gray",hex:"#a9a9a9"},{name:"Gray",hex:"#808080"},{name:"Dim Gray",hex:"#696969"},{name:"Light Slate Gray",hex:"#778899"},{name:"Slate Gray",hex:"#708090"},{name:"Dark Slate Gray",hex:"#2f4f4f"},{name:"Black",hex:"#000000"},{name:"Lavender",hex:"#e6e6fa"},{name:"Thistle",hex:"#d8bfd8"},{name:"Plum",hex:"#dda0dd"},{name:"Violet",hex:"#ee82ee"},{name:"Orchid",hex:"#da70d6"},{name:"Fuchsia",hex:"#ff00ff"},{name:"Magenta",hex:"#ff00ff"},{name:"Medium Orchid",hex:"#ba55d3"},{name:"Medium Purple",hex:"#9370db"},{name:"Blue Violet",hex:"#8a2be2"},{name:"Dark Violet",hex:"#9400d3"},{name:"Dark Orchid",hex:"#9932cc"},{name:"Dark Magenta",hex:"#8b008b"},{name:"Purple",hex:"#800080"},{name:"Indigo",hex:"#4b0082"},{name:"Medium Slate Blue",hex:"#7b68ee"},{name:"Slate Blue",hex:"#6a5acd"},{name:"Dark Slate Blue",hex:"#483d8b"},{name:"Rebecca Purple",hex:"#663399"},{name:"Medium Blue",hex:"#0000cd"},{name:"Blue",hex:"#0000ff"},{name:"Royal Blue",hex:"#4169e1"},{name:"Dodger Blue",hex:"#1e90ff"},{name:"Deep Sky Blue",hex:"#00bfff"},{name:"Sky Blue",hex:"#87ceeb"},{name:"Light Sky Blue",hex:"#87cefa"},{name:"Steel Blue",hex:"#4682b4"},{name:"Light Steel Blue",hex:"#b0c4de"},{name:"Light Blue",hex:"#add8e6"},{name:"Powder Blue",hex:"#b0e0e6"},{name:"Pale Turquoise",hex:"#afeeee"},{name:"Dark Turquoise",hex:"#00ced1"},{name:"Medium Turquoise",hex:"#48d1cc"},{name:"Turquoise",hex:"#40e0d0"},{name:"Aqua",hex:"#00ffff"},{name:"Cyan",hex:"#00ffff"},{name:"Light Cyan",hex:"#e0ffff"},{name:"Cadet Blue",hex:"#5f9ea0"},{name:"Medium Aquamarine",hex:"#66cdaa"},{name:"Aquamarine",hex:"#7fffd4"},{name:"Dark Green",hex:"#006400"},{name:"Dark Olive Green",hex:"#556b2f"},{name:"Dark Sea Green",hex:"#8fbc8f"},{name:"Sea Green",hex:"#2e8b57"},{name:"Medium Sea Green",hex:"#3cb371"},{name:"Light Sea Green",hex:"#20b2aa"},{name:"Pale Green",hex:"#98fb98"},{name:"Spring Green",hex:"#00ff7f"},{name:"Lawn Green",hex:"#7cfc00"},{name:"Chartreuse",hex:"#7fff00"},{name:"Medium Spring Green",hex:"#00fa9a"},{name:"Green Yellow",hex:"#adff2f"},{name:"Lime Green",hex:"#32cd32"},{name:"Yellow Green",hex:"#9acd32"},{name:"Forest Green",hex:"#228b22"},{name:"Olive Drab",hex:"#6b8e23"},{name:"Dark Khaki",hex:"#bdb76b"},{name:"Khaki",hex:"#f0e68c"},{name:"Pale Goldenrod",hex:"#eee8aa"},{name:"Light Goldenrod Yellow",hex:"#fafad2"},{name:"Light Yellow",hex:"#ffffe0"},{name:"Yellow",hex:"#ffff00"},{name:"Gold",hex:"#ffd700"},{name:"Light Goldenrod",hex:"#eedd82"},{name:"Goldenrod",hex:"#daa520"},{name:"Dark Goldenrod",hex:"#b8860b"},{name:"Rosy Brown",hex:"#bc8f8f"},{name:"Indian Red",hex:"#cd5c5c"},{name:"Saddle Brown",hex:"#8b4513"},{name:"Sienna",hex:"#a0522d"},{name:"Peru",hex:"#cd853f"},{name:"Burlywood",hex:"#deb887"},{name:"Beige",hex:"#f5f5dc"},{name:"Wheat",hex:"#f5deb3"},{name:"Sandy Brown",hex:"#f4a460"},{name:"Tan",hex:"#d2b48c"},{name:"Chocolate",hex:"#d2691e"},{name:"Firebrick",hex:"#b22222"},{name:"Brown",hex:"#a52a2a"},{name:"Dark Salmon",hex:"#e9967a"},{name:"Salmon",hex:"#fa8072"},{name:"Light Salmon",hex:"#ffa07a"},{name:"Orange",hex:"#ffa500"},{name:"Dark Orange",hex:"#ff8c00"},{name:"Coral",hex:"#ff7f50"},{name:"Tomato",hex:"#ff6347"},{name:"Orange Red",hex:"#ff4500"},{name:"Red",hex:"#ff0000"},{name:"Crimson",hex:"#dc143c"},{name:"Deep Pink",hex:"#ff1493"},{name:"Hot Pink",hex:"#ff69b4"},{name:"Light Pink",hex:"#ffb6c1"},{name:"Pink",hex:"#ffc0cb"},{name:"Pale Violet Red",hex:"#db7093"},{name:"Medium Violet Red",hex:"#c71585"},{name:"Orchid",hex:"#da70d6"},{name:"Medium Orchid",hex:"#ba55d3"},{name:"Dark Orchid",hex:"#9932cc"},{name:"Dark Violet",hex:"#9400d3"},{name:"Blue Violet",hex:"#8a2be2"},{name:"Medium Purple",hex:"#9370db"},{name:"Slate Blue",hex:"#6a5acd"},{name:"Dark Slate Blue",hex:"#483d8b"},{name:"Blush Pink",hex:"#ff6fff"},{name:"Sunset Orange",hex:"#ff4500"},{name:"Ocean Blue",hex:"#0077be"},{name:"Forest Green",hex:"#228b22"},{name:"Lemon Yellow",hex:"#fff44f"},{name:"Peach Puff",hex:"#ffdab9"},{name:"Coral Reef",hex:"#ff7f50"},{name:"Mint Green",hex:"#98ff98"},{name:"Skyline Blue",hex:"#87ceeb"},{name:"Amber Glow",hex:"#ffbf00"},{name:"Ruby Red",hex:"#9b111e"},{name:"Emerald Green",hex:"#50c878"},{name:"Sapphire Blue",hex:"#0f52ba"},{name:"Goldenrod Yellow",hex:"#daa520"},{name:"Cinnamon Brown",hex:"#d2691e"},{name:"Lilac Mist",hex:"#c8a2c8"},{name:"Teal Wave",hex:"#008080"},{name:"Periwinkle Blue",hex:"#ccccff"},{name:"Rosewood",hex:"#65000b"},{name:"Sunflower Yellow",hex:"#ffda03"},{name:"Bubblegum Pink",hex:"#ffc1cc"},{name:"Electric Purple",hex:"#bf00ff"},{name:"Cobalt Blue",hex:"#0047ab"},{name:"Chartreuse Green",hex:"#7fff00"},{name:"Tangerine",hex:"#f28500"},{name:"Mango Tango",hex:"#ff8243"},{name:"Turquoise Blue",hex:"#40e0d0"},{name:"Crimson Tide",hex:"#dc143c"},{name:"Platinum Gray",hex:"#e5e4e2"},{name:"Ivory White",hex:"#fffff0"},{name:"Denim Blue",hex:"#1560bd"},{name:"Blazing Red",hex:"#ff2400"},{name:"Pine Green",hex:"#01796f"},{name:"Carmine Pink",hex:"#eb4c42"},{name:"Lavender Dream",hex:"#e6e6fa"},{name:"Midnight Blue",hex:"#191970"},{name:"Frost White",hex:"#f8f8ff"},{name:"Copper Penny",hex:"#ad6f69"},{name:"Sand Dune",hex:"#967117"},{name:"Arctic Blue",hex:"#d0fefe"},{name:"Blazing Yellow",hex:"#ffcc00"},{name:"Rose Quartz",hex:"#aa98a9"},{name:"Moss Green",hex:"#8a9a5b"},{name:"Berry Purple",hex:"#8a2be2"},{name:"Citrus Orange",hex:"#f4a460"},{name:"Powder Pink",hex:"#ffb6c1"},{name:"Steel Gray",hex:"#71797e"},{name:"Neon Green",hex:"#39ff14"},{name:"Velvet Red",hex:"#7e354d"},{name:"Aqua Marine",hex:"#7fffd4"},{name:"Golden Glow",hex:"#f9a602"},{name:"Cherry Blossom",hex:"#ffb7c5"},{name:"Deep Sea Blue",hex:"#001f3f"},{name:"Cranberry Red",hex:"#db143c"},{name:"Olive Green",hex:"#808000"},{name:"Rust Orange",hex:"#b7410e"},{name:"Peacock Blue",hex:"#1c39bb"},{name:"Sunset Pink",hex:"#ffcccb"},{name:"Lime Punch",hex:"#dfff00"},{name:"Eggplant Purple",hex:"#614051"},{name:"Cobalt Teal",hex:"#007ba7"},{name:"Amber Sunset",hex:"#ff4500"},{name:"Frosted Mint",hex:"#dbfff8"},{name:"Cedar Brown",hex:"#4b3621"},{name:"Ocean Mist",hex:"#b0e0e6"},{name:"Golden Peach",hex:"#ffcba4"},{name:"Rosewood Red",hex:"#65000b"},{name:"Cactus Green",hex:"#587058"},{name:"Tropical Blue",hex:"#007fff"},{name:"Blush Rose",hex:"#ff6f91"},{name:"Lava Red",hex:"#cf1020"},{name:"Pale Peach",hex:"#ffe5b4"},{name:"Azure Sky",hex:"#007fff"},{name:"Cinnamon Spice",hex:"#d2691e"},{name:"Goldenrod",hex:"#daa520"},{name:"Fuchsia Glow",hex:"#ff77ff"},{name:"Deep Plum",hex:"#8b008b"},{name:"Seafoam Green",hex:"#9fe2bf"},{name:"Citrus Lime",hex:"#bfff00"},{name:"Berry Red",hex:"#b22222"},{name:"Tangerine Dream",hex:"#ffcc00"},{name:"Electric Blue",hex:"#7df9ff"},{name:"Coral Pink",hex:"#f88379"},{name:"Lemon Chiffon",hex:"#fffacd"},{name:"Pale Lavender",hex:"#dcd0ff"},{name:"Bright Cyan",hex:"#00ffff"},{name:"Burnt Sienna",hex:"#e97451"},{name:"Golden Champagne",hex:"#f7e7ce"},{name:"Rose Pink",hex:"#ff66cc"},{name:"Deep Magenta",hex:"#cc00cc"},{name:"Pale Aqua",hex:"#bcd4e6"},{name:"Sunset Gold",hex:"#ffcc33"},{name:"Bright Maroon",hex:"#c32148"},{name:"Soft Peach",hex:"#ffe5b4"}]},75495:(e,t,n)=>{"use strict";n.d(t,{W:()=>p});var o=n(21357);const s=7;function a(e){const t=e.label?.match(/\b(\d{3})\b/);return t?parseInt(t[1]):null}function i(e,t){return 500!==t&&900===t}function r(e){return e}function l(e,t){if(!e.value)throw new Error("Background color value is undefined");const n=e.value.toString(),i=(0,o.ZP)(n).luminance(),r=(a(e),i>=.5?[900,800,700,600,500,400,300,200,100]:[100,200,300,400,500,600,700,800,900]);for(const a of r){const e=t.scale[a];if(!e)continue;if(!e.value)throw new Error(`Candidate color value is undefined for shade ${a}`);const i=e.value.toString(),r=o.ZP.contrast(n,i);if(r>=s)return e}return i>=.5?t.scale[900]:t.scale[100]}function c(e,t,n,o){if(!e.value)throw new Error("Background color value is undefined");const s=a(e);if(!s)throw new Error("could not extract shade from backgroundColor");const r=()=>{const n=l(e,t);return{bgNormal:n,bgHover:n,textNormal:e,textHover:e}};return"neutral"===n?[100,900].includes(s)?{bgNormal:o.scale[500],bgHover:o.scale[600],textNormal:o.text,textHover:o.text}:r():"primary"===n&&([100,200,300].includes(s)||i(e,s))?{bgNormal:t.scale[500],bgHover:t.scale[600],textNormal:t.text,textHover:t.text}:r()}var u=n(11987);function d(e,t,n){const o=[];return Object.values(e.scale).forEach((s=>{const a=r(s),i=l(s,e),u=c(s,e,t,n),d=u.bgNormal,p=u.bgHover,h=u.textNormal,g=u.textHover;o.push({background:a,contrastedFromBackgroundForText:i,contrastedFromBackgroundForButton:d,contrastedFromBackgroundForButtonHover:p,contrastedFromButtonForButtonText:h,contrastedFromButtonForButtonTextHover:g})})),(0,u.pP)(o)}function p(e){const t={neutral:[],primary:[],secondary:[]};if(!e.primary)return t;if(e.neutral&&(t.neutral=d(e.neutral,"neutral",e.primary)),t.primary=d(e.primary,"primary",e.primary),e.secondary&&Array.isArray(e.secondary)){const n=e.primary;t.secondary=e.secondary.map((e=>d(e,"secondary",n)))}return t}},11987:(e,t,n)=>{"use strict";n.d(t,{$W:()=>T,$w:()=>x,OF:()=>g,Q8:()=>B,RT:()=>b,kr:()=>y,n:()=>Z,pP:()=>O,qA:()=>k,uz:()=>S,w5:()=>C});var o=n(82492),s=n.n(o),a=n(27361),i=n.n(a),r=n(31044),l=n(46118),c=n(21357);function u(e){if(!e)return"";const t=e.match(/^(primary|neutral)\[(\d+)\]$/);if(t){const[,e,n]=t;return`${e}-scheme-${parseInt(n)+1}`}const n=e.match(/^secondary\[(\d+)\]\[(\d+)\]$/);if(n){const[,e,t]=n;return`secondary-${parseInt(e)+1}-scheme-${parseInt(t)+1}`}return""}function d(e){if(!e)return"";const t=e.match(/^(primary|neutral)-scheme-(\d+)$/);if(t){const[,e,n]=t,o=parseInt(n)-1;return`${e}[${o}]`}const n=e.match(/^secondary-(\d+)-scheme-(\d+)$/);if(n){const[,e,t]=n,o=parseInt(e)-1,s=parseInt(t)-1;return`secondary[${o}][${s}]`}return""}function p(e){return!!e&&/^(primary|neutral|secondary-\d+)-scheme-\d+$/.test(e)}function h(e){if(!e)return!1;const t=e.startsWith(".")?e.substring(1):e,n=/^(primary|neutral|secondary-\d+)-scheme-\d+$/.test(t),o=/^futurelayer-brand-(primary|neutral|secondary)$/.test(t),s="futurelayer-header-is-overlay"===t;return n||o||s}function g(e){return e.filter((e=>!h(e)))}function m(e){if(!Array.isArray(e))return"";const t=e.find((e=>p(e)));return t||""}function v(e,t="neutral[0]"){const n=m(e),o=d(n);return o||t}function f(e){const t=I(e),n=w(e);return{schemeString:e,category:t||"neutral",index:n??0}}function y(e,t="neutral[0]"){const n=v(e,t);return f(n)}const b={schemeString:"neutral[0]",category:"neutral",index:0},_=143==n.j?["primary","secondary1","secondary2","neutral"]:null;function I(e){return e?e.startsWith("primary[")?"primary":e.startsWith("secondary[0]")?"secondary1":e.startsWith("secondary[1]")?"secondary2":e.startsWith("neutral[")?"neutral":null:null}function w(e){if(!e)return null;const t=e.match(/^(?:primary|neutral)\[(\d+)\]$/);if(t)return parseInt(t[1]);const n=e.match(/^secondary\[\d+\]\[(\d+)\]$/);return n?parseInt(n[1]):null}function x(e,t){return e?"primary"===e?`primary[${t}]`:"secondary1"===e?`secondary[0][${t}]`:"secondary2"===e?`secondary[1][${t}]`:"neutral"===e?`neutral[${t}]`:"":""}function S(e,t=""){const n=e.background?.label||"",o=e.contrastedFromBackgroundForText?.label||"",s=n.match(/(\d+)/),a=o.match(/(\d+)/);return s&&a?`BG: ${s[1]} • Text: ${a[1]}`:t}function C(e,t){if(!e)return null;let n=[],o="";if("primary"===e?(n=t.primary||[],o="primary"):"secondary1"===e?(n=t.secondary?.[0]||[],o="secondary[0]"):"secondary2"===e?(n=t.secondary?.[1]||[],o="secondary[1]"):"neutral"===e&&(n=t.neutral||[],o="neutral"),0===n.length)return null;const s=Math.floor(Math.random()*n.length),a=n[s],i=`${o}[${s}]`;return{schemeString:i,scheme:a}}function k(e){const t=_[Math.floor(Math.random()*_.length)];return C(t,e)}function P(e,t,n){if(!e)return null;let o=[];return"primary"===e?o=n.primary||[]:"secondary1"===e?o=n.secondary?.[0]||[]:"secondary2"===e?o=n.secondary?.[1]||[]:"neutral"===e&&(o=n.neutral||[]),o[t]||o[0]||null}function Z(e,t,n){return _.map((o=>{const s=t===o?n:0,a=P(o,s,e);return{name:o,scheme:a}})).filter((e=>null!==e.scheme))}function D(e){return e?e.startsWith("primary[")?"futurelayer-brand-primary":e.startsWith("neutral[")?"futurelayer-brand-neutral":e.startsWith("secondary[")?"futurelayer-brand-secondary":"":""}function E(e){return/^futurelayer-brand-(primary|neutral|secondary)$/.test(e)}function T(e,t,n){const o=i()(e,"data.properties.settings.advanced.classes",[]),s=m(o);if(!s)return;const a=i()(n,"data.properties.settings.advanced.classes",[]),l=Array.isArray(a)?a:[],c=l.filter((e=>!p(e)&&!E(e))),u=[...c,s],d=o.find((e=>E(e)));d&&u.push(d),r.Hb.unthrottledPropertyChanged({elementId:t,path:"settings.advanced.classes",value:u,meta:{snapshotLabel:"Copied color scheme classes"}})}function A(e){return"image"===i()(e,"data.properties.design.background.type")}function M(e,t){if(!A(e))return{};const n=t.background.value;if(!n)return{};const o=`var(--${t.background.cssVariableName})`;return{background:{overlay:{color:o,opacity:.7}}}}function V(e,t,n){const o=M(t,n),a=i()(t,"data.properties.design",{}),l=s()({},a,o);r.Hb.unthrottledPropertyChanged({elementId:e,path:"design",value:l,meta:{snapshotLabel:"Applied color scheme overlay"}})}function B(e,t,n,o){if(o){const s=u(n),a=D(n),c=i()(t,"data.properties.settings.advanced.classes"),d=Array.isArray(c)?c:[],h=d.filter((e=>!p(e)&&!E(e))),g=[...h,s];a&&g.push(a),r.Hb.unthrottledPropertyChanged({elementId:e,path:"settings.advanced.classes",value:g,meta:{snapshotLabel:"Applied color scheme"}}),A(t)&&V(e,t,o),(0,l.BE)(e,t)&&(0,l.Jx)(t)}}function O(e){return e.sort(((e,t)=>{const n=(0,c.ZP)(e.background.value?.toString()||"#000").luminance(),o=(0,c.ZP)(t.background.value?.toString()||"#000").luminance();if(Math.abs(n-o)>.01)return o-n;const s=(0,c.ZP)(e.contrastedFromBackgroundForText.value?.toString()||"#fff").luminance(),a=(0,c.ZP)(t.contrastedFromBackgroundForText.value?.toString()||"#fff").luminance();return s-a}))}},62367:(e,t,n)=>{"use strict";n.d(t,{Ig:()=>m,MD:()=>h,N1:()=>g});var o=n(27361),s=n.n(o),a=n(98851),i=n(85450),r=n(69137);if(143==n.j)var l=n(30902);if(143==n.j)var c=n(45974);var u=n(65556),d=n(65669),p=n(23128);async function h(){const e=await(0,a.D)({action:"breakdance_singularity_get_brand_settings",decoder:u.OZ,suppressErrorLogging:!0});return(0,l.pipe)(e,(0,c.fold)((()=>!1),(e=>(r.n.ignore((()=>{i.singularityStore.setBrand(e)})),!0))))}async function g(){const e=i.singularityStore.brand,t=await(0,a.D)({action:"breakdance_singularity_save_brand_settings",dataToPost:{settings:(0,d.J)(e)},decoder:u.OZ});return(0,l.pipe)(t,(0,c.fold)((()=>!1),(()=>!0)))}function m(e,t){const n=Array.isArray(e)?e:[e];n.forEach((e=>{const n=s()(i.globalStore.globalSettings,e),o=(0,p.Z)(n),a={path:e,value:{...o,...t}};i.globalStore.updateGlobalSettingsPerPath({path:e,value:a.value})})),i.uiStore.setUnsavedChangesPresent(!0)}},31839:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,c:()=>i});var o=n(80897);if(143==n.j)var s=n(94550);function a(e,t){if(!t)return null;const n=e.closest(".ee-gallery-item");if(!n)return null;const a=n.closest(".ee-gallery");if(!a)return null;const i=(0,o.G)(a);if(!i||i.data.type!==s.GALLERY_SLUG)return null;const r=Array.from(a.querySelectorAll(".ee-gallery-item")),l=r.indexOf(n);return-1===l?null:{galleryElement:i,imageIndex:l,htmlElement:n}}function i(){try{console.log("[Gallery] Starting getClickedGalleryImageIndex");const e=window.Breakdance.canvas.document;if(console.log("[Gallery] canvasDoc:",e),!e)return console.log("[Gallery] No canvas document found"),null;let t=e.querySelector(".ee-gallery-item:hover");if(console.log("[Gallery] Direct :hover query result:",t),!t){console.log("[Gallery] Trying fallback - querying all :hover elements");const n=e.querySelectorAll(":hover");console.log("[Gallery] All hovered elements:",n.length);for(let e=n.length-1;e>=0;e--){const o=n[e];if(console.log("[Gallery] Checking element:",o.className),o.classList.contains("ee-gallery-item")){t=o,console.log("[Gallery] Found gallery item directly");break}const s=o.closest(".ee-gallery-item");if(s){t=s,console.log("[Gallery] Found gallery item via closest()");break}}}if(!t)return console.log("[Gallery] No current element found"),null;console.log("[Gallery] Found gallery item:",t);const n=t.closest(".ee-gallery");if(console.log("[Gallery] Parent gallery:",n),!n)return console.log("[Gallery] No parent gallery found"),null;const o=Array.from(n.querySelectorAll(".ee-gallery-item"));console.log("[Gallery] All gallery items count:",o.length);const s=o.indexOf(t);return console.log("[Gallery] Found index:",s),s>=0?s:null}catch(e){return console.error("[Gallery] Error detecting clicked gallery image:",e),null}}},18332:(e,t,n)=>{"use strict";n.d(t,{Jb:()=>a,qm:()=>i,uw:()=>s});let o={};function s(e){console.log("Setting singularity section library",e),o=e}function a(){return o}function i(){return Object.keys(o).length>0}},76007:(e,t,n)=>{"use strict";n.d(t,{f:()=>h,c:()=>m});var o=n(87615),s=n(48973),a=(n(98851),n(32521)),i=n(75031),r=n(94550),l=n(77622);a.dt({posts:a.IX(a.dt({title:a.Z_,tree:a._4}))});async function c(){const e=await(0,l.O$)();if(!e)return!1;const t=e.posts.filter((e=>!!e.tree&&(0,s.tO)(i.f2.decode(e.tree))));return t}function u(e){const t={};return e.forEach((e=>{t[e.title]=e.tree.root.children.filter((e=>(e.data.type===r.SECTION_SLUG||"EssentialElements\\HeaderBuilder"===e.data.type)&&e.children.length>0))})),t}var d=n(18332),p=n(51617);function h(){window.removeEventListener("breakdance_document_ready",g),window.addEventListener("breakdance_document_ready",g)}async function g(){if(window.Breakdance.singularity){const e=await m();await(0,o.DQ)(),e&&(0,p.zz)()}}async function m(){if((0,d.qm)())return console.log("Singularity section library already loaded, skipping"),!0;const e=await c();if(!e)return alert("getPostsWithValidTreeFromRemote failed"),console.log("getPostsWithValidTreeFromRemote failed"),!1;const t=u(e);return(0,d.uw)(t),!0}},93979:(e,t,n)=>{"use strict";n.d(t,{D:()=>r,Q:()=>i});var o=n(31381),s=n(85450),a=n(34676);function i(){if(!s.uiStore.inlineEditingContext)return null;const e=s.uiStore.inlineEditingContext.elementId,t=(0,o.findNode)(s.documentStore.document.tree,e);return t&&t.children.length?t.children[0].id:null}async function r(e){(0,a.forceNextTick)((()=>{s.uiStore.setRefreshSsrElementId(e)}))}},60719:(e,t,n)=>{"use strict";n.d(t,{H2:()=>y,SW:()=>b,b6:()=>S,iW:()=>_,mY:()=>I});var o=n(45335),s=n(74959),a=n(31381),i=n(85450),r=n(30902),l=n(45974),c=n(76491),u=n(15167),d=n(86687),p=n(94550),h=n(42665),g=n(14663),m=n(48299),v=n(51617),f=n(69137);async function y(e,t,n=!1,r){const l=(0,a.findNode)(i.documentStore.document.tree,e);if(!l)return;const c=(0,u.E)(l);console.log("promptInfo",c);const d=(0,o.LX)(l);console.log("fields",d);const p=(0,s.ee)(d);console.log("fieldswToFill",p);const h=(0,s.r1)(p,c,i.globalStore.aiSettings.prompt,r);if(console.log("prompt",h),d.length)try{const e=await _(h,d,t);f.n.transaction((()=>{(0,o.gU)(e.elements),c.singularity.shouldGenerateOnInitialLoad=!1,c.singularity.unsplashKeywords=e.unsplash_keywords,n&&(0,v.ML)(l,e.sectionType),console.log(e),(0,o.JA)(l,c)}),"Update from Generative AI")}catch(g){(0,o.Qm)(g)}}async function b(e,t){alert("defunct, use replaceImagesInSectionWithAi instead");let n=1;if(1===n)return;const s=(0,a.findNode)(i.documentStore.document.tree,e);if(!s)return;const r=(0,u.E)(s);console.log(r);const l=r.singularity.unsplashKeywords.length?r.singularity.unsplashKeywords:["generic"],c=(0,o.ho)(s);if(!(c.length>0))return;const d=await(0,g.Ok)({query:l.join(", "),page:1,per_page:c.length},t);(0,o.hh)(c,d,!1)}async function _(e,t,n){const s=(0,r.pipe)(await(0,c.Tk)(e,"json","breakdance_ai_request_completion",!0,n),(0,l.fold)((()=>null),(e=>e)));if(!s)throw new Error("No response was returned from OpenAI API.");console.log("completion",s);const a=(0,o.wi)(s,t);if(console.log("parsedCompletion",a),!a.elements.length)throw new Error("No elements were returned from OpenAI API.");return a}function I(){window.Breakdance.isOnboarding||d.w.register.onMountedElement((e=>{if(x.isProcessed(e.elementId))return;const t=(0,a.findNode)(i.documentStore.document.tree,e.elementId);if(!t)return;if(t.data.type!==p.SECTION_SLUG)return;const n=(0,u.E)(t);if(n.singularity.shouldGenerateOnInitialLoad){x.markAsProcessed(e.elementId);const n=(0,a.findNode)(i.documentStore.document.tree,t.id);if(!n)return;const o=C(t);h.P.addJob((async e=>{await y(t.id,e),await(0,m.q)(n,e)}),{jobType:"section_rewrite",documentId:i.documentStore.document.documentMeta.id,elementId:t.id,description:`Rewrite and image population for shouldGenerateOnInitialLoad for document "${i.documentStore.document.documentMeta.titleLabel}" - section ${t.id}`,priority:o,dontCreateSnapshot:!0}),h.P.isJobTypePaused("background_page_generation")&&setTimeout((()=>{h.P.unpauseJobType("background_page_generation")}),5e3)}}))}class w{constructor(){this.processedElementIds=new Set}reset(){this.processedElementIds.clear()}isProcessed(e){return this.processedElementIds.has(e)}markAsProcessed(e){this.processedElementIds.add(e)}}const x=new w;function S(){x.reset()}function C(e){const t=i.documentStore.document.tree.root.children.findIndex((t=>t.id===e.id));return 0===t?"critical":1===t?"high":"normal"}},51617:(e,t,n)=>{"use strict";n.d(t,{FX:()=>m,ML:()=>h,g6:()=>r,gq:()=>g,m7:()=>i,pJ:()=>p,zz:()=>u});var o=n(98949),s=n(85450),a=n(18332);n(15167),n(31381);const i="Headers",r="Footers",l=["Index",i,r];async function c(e){for(const t of e){const e=p(t);e&&(0,o.AE)([e],"inserting")}}async function u(){s.documentStore.document.documentMeta.singularityMeta&&s.documentStore.document.documentMeta.singularityMeta.singularityInitialSections&&(s.documentStore.document.documentMeta.singularityMeta&&s.documentStore.document.documentMeta.singularityMeta.initialSectionsAlreadyPopulated||(await c(s.documentStore.document.documentMeta.singularityMeta.singularityInitialSections),d()))}function d(){s.documentStore.setDocumentMeta({...s.documentStore.document.documentMeta,singularityMeta:{...s.documentStore.document.documentMeta.singularityMeta,initialSectionsAlreadyPopulated:!0}})}function p(e){const t=(0,a.Jb)(),n=t[e.type];if(!n||0===n.length)return console.log(`No sections available for type: ${e.type} in library`),null;const o=Math.floor(Math.random()*n.length),s=n[o],i=g(s,e,o),r=h(i,e.sectionFriendlyName);return r}function h(e,t){return e.data.properties={...e.data.properties||{},meta:{...e.data.properties?.meta||{},friendlyName:t}},e}function g(e,t,n,o=!0){const s={sectionDescription:t.description,qualifiers:"",temperature:1,lockedFields:[],locale:"en_US",unsplash:{enabled:!1,fillEmptyImagesOnly:!1,keywords:""},singularity:{sectionData:{type:t.type,index:n},shouldGenerateOnInitialLoad:o,unsplashKeywords:[]},onboarding:{sectionType:t.type,shouldGenerateOnInitialLoad:o}};return e.data.properties={...e.data.properties||{},meta:{...e.data.properties?.meta||{},promptInfo:s}},e}function m(){const e=Object.keys((0,a.Jb)());return e.filter((e=>!l.includes(e)))}},41720:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var o=n(85450),s=n(52338);function a(e){switch(e){case"step1":i();break;case"step2":r();break;case"step3":break}}function i(){o.singularityStore.setSingularityUiState({singularityFullWidthPanel:"step1",singularityLeftPanel:null,singularityRightPanel:null})}function r(){(0,s.dA)(),o.singularityStore.setSingularityUiState({singularityFullWidthPanel:null,singularityLeftPanel:"page_structure",singularityRightPanel:null});const e=new URL(window.location.href);e.searchParams.set("singularity","step2"),e.searchParams.delete("autostart"),window.history.replaceState({},"",e.toString())}},15167:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var o=n(45335),s=n(85450);function a(e){const t=!!e.data.properties?.meta?.promptInfo?.singularity?.shouldGenerateOnInitialLoad,n=e.data.properties?.meta?.promptInfo?.singularity?.sectionData?.type??!1,a=e.data.properties?.meta?.promptInfo?.singularity?.sectionData?.index??!1;return{sectionDescription:(0,o.EJ)(e),qualifiers:(0,o.zX)(e),temperature:(0,o.Wh)(e),lockedFields:(0,o.nS)(e),locale:s.globalStore.aiSettings.locale,unsplash:{enabled:!1,fillEmptyImagesOnly:!1,keywords:""},singularity:{shouldGenerateOnInitialLoad:t,sectionData:{type:n,index:a},unsplashKeywords:e.data.properties?.meta?.promptInfo?.singularity?.unsplashKeywords||[]},onboarding:{shouldGenerateOnInitialLoad:t,sectionType:n}}}},52338:(e,t,n)=>{"use strict";n.d(t,{DC:()=>y,Le:()=>f,np:()=>m,qC:()=>v,dA:()=>h,TE:()=>_,U_:()=>b});var o=n(38537),s=n(32521);const a=s.jV([s.dt({id:s.pk,title:s.Z_,relativeUrl:s.Z_,postType:s.Z_,singularityMeta:o.be,generatingInBackground:s.O7}),s.r$({isInMainMenu:s.O7,menuOrder:s.G0([s.pk,s.lB])})]);var i=n(85450),r=n(98851),l=n(30902),c=n(45974),u=n(65669),d=n(31381),p=n(98349);async function h(){const e=await g();i.singularityStore.setPagesInWP(e)}async function g(){const e=(0,l.pipe)(await(0,r.D)({action:"breakdance_singularity_get_pages",decoder:s.IX(a),resultKey:"data",dataToPost:{postType:"page"}}),(0,c.fold)((()=>[]),(e=>e)));return e}async function m(){return(0,l.pipe)(await(0,r.D)({action:"breakdance_singularity_delete_all_pages_headers_and_footers",decoder:s.dt({success:s.Z_})}),(0,c.fold)((()=>null),(e=>{i.singularityStore.setPagesInWP([])})))}async function v(e){return(0,l.pipe)(await(0,r.D)({action:"breakdance_singularity_delete_page",decoder:s.dt({success:s.Z_}),dataToPost:{id:e}}),(0,c.fold)((()=>null),(t=>{i.singularityStore.setPagesInWP(i.singularityStore.pagesInWP.filter((t=>t.id!==e)))})))}async function f(e,t,n){return(0,l.pipe)(await(0,r.D)({action:"breakdance_singularity_add_page",decoder:s.dt({success:s.Z_,id:s.pk,relativeUrl:s.Z_}),dataToPost:{title:e,singularityMeta:(0,u.J)(t),post_type:n}}),(0,c.fold)((()=>null),(o=>{const s={id:o.id,relativeUrl:o.relativeUrl,title:e,postType:n,singularityMeta:t,generatingInBackground:!1};return i.singularityStore.setPagesInWP([...i.singularityStore.pagesInWP,s]),s})))}async function y(e){return(0,l.pipe)(await(0,r.D)({action:"breakdance_singularity_add_or_update_page",decoder:s.dt({success:s.Z_,id:s.pk,relativeUrl:s.Z_}),dataToPost:{id:e.id,title:e.title,postType:e.postType,tree:e.tree?(0,u.J)((0,d.exportTree)(e.tree)):void 0,singularityMeta:e.singularityMeta?(0,u.J)(e.singularityMeta):void 0,templateSettings:e.templateSettings?(0,u.J)(e.templateSettings):void 0}}),(0,c.fold)((()=>null),(t=>{const n={id:t.id,title:e.title,relativeUrl:t.relativeUrl,postType:e.postType,singularityMeta:{...e.singularityMeta},generatingInBackground:!1};return i.singularityStore.pagesInWP.find((e=>e.id===n.id))||i.singularityStore.setPagesInWP([...i.singularityStore.pagesInWP,n]),n})))}async function b(e,t){return(0,l.pipe)(await(0,r.D)({action:"breakdance_singularity_update_page",decoder:s.dt({success:s.Z_}),dataToPost:{id:e,title:t}}),(0,c.fold)((()=>null),(n=>{const o=i.singularityStore.pagesInWP.map((n=>n.id===e?{...n,title:t}:n));return i.singularityStore.setPagesInWP(o),!0})))}async function _(e){return(0,l.pipe)(await(0,r.D)({action:"breakdance_singularity_sync_pages_to_default_wp_menu",decoder:s.dt({success:s.Z_}),dataToPost:{pageIds:(0,u.J)(e)}}),(0,c.fold)((()=>null),(async e=>(h(),await I(),!0))))}async function I(){await w(),await(0,p.GA)()}async function w(){const{documentStore:e,uiStore:t}=await Promise.resolve().then(n.bind(n,85450)),{treeNodeReduce:o}=await Promise.resolve().then(n.bind(n,31381)),{WP_MENU_SLUG:s}=await Promise.resolve().then(n.bind(n,94550)),{forceNextTick:a}=await Promise.resolve().then(n.bind(n,34676)),i=[];o(((e,t)=>(e.data.type===s&&t.push(e.id),t)),e.document.tree.root,i),await Promise.all(i.map((e=>{a((()=>{t.setRefreshSsrElementId(e)}))})))}},13960:(e,t,n)=>{"use strict";n.d(t,{$0:()=>s,LX:()=>a,V9:()=>i,dO:()=>l,qS:()=>r,ur:()=>c});var o=n(31044);function s(e,t){return t.proOnly?a(e):e}function a(e){return"free"===o.PK.subscriptionMode?`${e} [PRO]`:e}function i(e,t){return e&&t.length&&e.flat().find((e=>t.find((t=>t.slug===e.ruleSlug))))}function r(e,t){const n=t.filter((e=>e.proOnly));return e.find((e=>n.find((t=>t.value==e.slug))))}function l(e){return"free"===o.PK.subscriptionMode&&e.proOnly}function c(){return{backgroundColor:"var(--gray200)",label:"Pro",textColor:"var(--gray800)"}}},9221:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var o=n(23128),s=n(31381);function a(e,t,n){const a=n?.reuseId&&n.idToUse?n.idToUse:(0,s._getNextNodeIdAndIncrementNextNodeId)(e),i={id:a,data:(0,o.Z)(t),children:[]};return e._lookupTable[a.toString()]=i,i}},9950:(e,t,n)=>{"use strict";n.d(t,{Cx:()=>T,PN:()=>P,TO:()=>S,V4:()=>I,V9:()=>C,Z:()=>E,ZC:()=>w,iq:()=>D,kE:()=>k,l0:()=>b,te:()=>A,xJ:()=>Z,zV:()=>x});var o=n(85450),s=n(31381),a=n(94550),i=n(45974),r=n(20918),l=n(90189),c=n(87950);function u(e){switch(e){case"container-link":return["container-link","final-link"];case"container-excluding-self":return["container-excluding-self"];default:return[]}}function d(e){return Array.from(new Set(e.children.reduce(((e,t)=>[...e,...(0,s.treeNodeReduce)(((e,t)=>[...t,h(e).type]),t,[])]),[])))}function p(e){return o.configStore.element(e)}function h(e){return p(e.data.type).nestingRule}function g(e,t){let n=t,o=[];while(n)o=[...o,...u(h(n).type)],n=(0,s.findNodeParent)(e,n);return o}function m(e=[],t=[]){return e.map((e=>t.includes(e))).includes(!0)}function v(e,t,n,o){const s=h(o);if(!I(t,s,o.data.type))return!1;const a=g(e,o);return!m([t.type,...n],a)&&(!(t.restrictedToBeADescendantOf&&!_(e,o,t.restrictedToBeADescendantOf))&&(!(t.restrictedToBeADirectChildOf&&!t.restrictedToBeADirectChildOf.includes(o.data.type))&&!(0,l.Vc)(e,o)))}function f(e,t,n){let o=(0,s.findNode)(e,n);while(o){if(o===t)return!0;o=(0,s.findNodeParent)(e,o)}return!1}function y(e,t,n){let o;return t.forEach((t=>{b(e,n,t)&&(o=t)})),o}function b(e,t,n){if(void 0===t._parentId)return!1;if(t._parentId===n.id)return!0;const o=(0,s.findNodeParent)(e,t);return!!o&&b(e,o,n)}function _(e,t,n){const o=(0,s.parentNodesReduce)(((e,t)=>[...t,e.data.type]),e,t,[t.data.type]);return o.find((e=>n.includes(e)))}function I(e,t,n,s){const a=w(t.type,s).includes(e.type);return!(a||"container-restricted"!==t.type||!e.restrictedToBeADirectChildOf?.includes(n))||(t.inlineEditable?o.uiStore.isInlineEditing:a)}function w(e,t){const n=["container","container-link","final","final-link","container-restricted","container-excluding-self","final-that-is-allowed-inside-root"],s=t||o.documentStore.document.documentMeta.postType;switch(e){case"section":return n;case"popup":return[...n,"section"];case"container":return n;case"container-link":return n.filter((e=>"final-link"!==e&&"container-link"!==e));case"container-excluding-self":return n.filter((e=>"container-excluding-self"!==e));case"container-restricted":return[];case"final":return[];case"final-link":return[];case"final-that-is-allowed-inside-root":return[];case"root":return s===(0,r.$M)()||"breakdance_acf_block"===s?[...n,"section"]:"breakdance_popup"===s?["popup"]:"breakdance"===o.configStore.builderMode?["section","final-that-is-allowed-inside-root"]:"oxygen"===o.configStore.builderMode?[...n,"section","final-that-is-allowed-inside-root"]:[];default:return[]}}function x(e){const t=e||o.documentStore.document.documentMeta.postType;return"breakdance_popup"===t?a.POPUP_SLUG:a.SECTION_SLUG}function S(e){return o.uiStore.inlineEditingContext?.elementId?o.uiStore.inlineEditingContext?.elementId:e.root.id}function C(e){const t=p(e);return(0,c.ZY)(t)?{type:"container"}:t.nestingRule}function k(e){return{self:h(e),children:d(e)}}function P(e,t,n){let o=!1,a=t;while(a){if(o=v(e,n.self,n.children,a),o)break;a=(0,s.findNode)(e,a._parentId)}return a||!1}function Z(e,t,n,o){const a=(0,s.findNode)(e,n);if(!a)return!1;if(f(e,t,a.id))return!1;const i=h(t),r=h(a);return(!i.notAllowedWhenNodeTypeIsPresentInTree||!(0,s.areNodeTypesPresentInTreeExcludingNode)(e,i.notAllowedWhenNodeTypeIsPresentInTree,t.id))&&(!!I(i,r,a.data.type,o)&&(!m([...d(t),i.type],g(e,a))&&(!(i.restrictedToBeADescendantOf&&!_(e,a,i.restrictedToBeADescendantOf))&&!(i.restrictedToBeADirectChildOf&&!i.restrictedToBeADirectChildOf.includes(a.data.type)))))}function D(e,t,n){let o;if(t.id===(0,s.findNodeParent)(e,n)?.id)o=(0,s.getNodeIndex)(e,n.id);else{const a=y(e,t.children,n);o=!!a&&(0,s.getNodeIndex)(e,a.id)}return!1!==o&&(o+=1),o}function E(e,t,n){const o=null===t?void 0:(0,s.findNode)(e,t);if(n.self.notAllowedWhenNodeTypeIsPresentInTree&&(0,s.areNodeTypesPresentInTree)(e,n.self.notAllowedWhenNodeTypeIsPresentInTree))return(0,i.left)("NOT_ALLOWED_BECAUSE_OF_OTHER_NODES");if(o){const t=P(e,o,n);if(t)return(0,i.right)({index:D(e,t,o),place:t})}const a=v(e,n.self,n.children,e.root);if(a)return(0,i.right)({index:!1,place:e.root});if(e.root.children.length>0){const t=e.root.children[e.root.children.length-1],o=v(e,n.self,n.children,t);if(o)return(0,i.right)({index:!1,place:t})}const r=v(e,p(x()).nestingRule,[],e.root),l=e=>{const t=x();if(!I(e.self,p(t).nestingRule,t))return!1;const n=u(p(t).nestingRule.type);return!m([e.self.type,...e.children],n)&&(!(e.self.restrictedToBeADescendantOf&&!e.self.restrictedToBeADescendantOf.includes(t))&&!(e.self.restrictedToBeADirectChildOf&&!e.self.restrictedToBeADirectChildOf.includes(t)))};return l(n)&&r?(0,i.right)("TOP_LEVEL"):(0,i.left)("NONE")}function T(e,t){return!(!e||!e.nestingRule)&&(!(!e.nestingRule.restrictedToBeADescendantOf||!e.nestingRule.restrictedToBeADescendantOf.includes(t))||!(!e.nestingRule.restrictedToBeADirectChildOf||!e.nestingRule.restrictedToBeADirectChildOf.includes(t)))}function A(e,t){return(0,s.parentNodesReduce)(((e,n)=>(T(t,e.data.type)&&(n=!0),n)),o.documentStore.document.tree,e,!1)}},31381:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_NEXT_NODE_ID:()=>u,ROOT_ELEMENT_ID:()=>c,_getNextNodeIdAndIncrementNextNodeId:()=>A,addParentIdToNodeAndPutNodeInLookupTable:()=>w,areNodeTypesPresentInTree:()=>m,areNodeTypesPresentInTreeExcludingNode:()=>v,copyNode:()=>L,countNodesOfTypeInTree:()=>N,createNodesFromSlugListAndPlace:()=>M,createTreeFromExportedTree:()=>S,deleteNode:()=>B,duplicateNode:()=>z,exportNode:()=>I,exportTree:()=>_,findNode:()=>Z,findNodeParent:()=>k,getBlankTree:()=>y,getIdsFromNodeAndDescendants:()=>g,getNodeIndex:()=>C,getNodeParent:()=>P,getNodesByPresetId:()=>E,getOutermostAncestor:()=>T,insertNewNodeAt:()=>$,isDescendant:()=>D,moveNode:()=>V,parentNodesReduce:()=>f,recalculateParentIdsAndLookupTable:()=>x,treeNodeReduce:()=>d,treeNodesOfType:()=>p,treeNodesOfTypeExcludingNode:()=>h,treesEqual:()=>b});var o=n(23128),s=n(9950),a=n(31044),i=n(6613),r=n(9221),l=n(87950);const c=1,u=100;function d(e,t,n){let o=e(t,n);return t.children.forEach((t=>{o=d(e,t,o)})),o}function p(e,t){return d(((e,n)=>t.includes(e.data.type)?[...n,e]:n),e,[])}function h(e,t,n){return d(((e,o)=>t.includes(e.data.type)&&e.id!==n?[...o,e]:o),e,[])}function g(e){return d(((e,t)=>[...t,e.id]),e,[])}function m(e,t){return p(e.root,t).length>0}function v(e,t,n){return h(e.root,t,n).length>0}function f(e,t,n,o){const s=P(t,n.id)||void 0;return s?f(e,t,s,e(s,o)):o}function y(){const e={id:c,data:{type:"root",properties:{}},children:[]};return{_nextNodeId:u,_lookupTable:{[`${c}`]:e},root:e,status:"valid"}}function b(e,t){const n=(0,i.g)(e),o=(0,i.g)(t);return void 0!==n&&void 0!==o&&n===o}function _(e){return(0,o.Z)({root:e.root,_nextNodeId:e._nextNodeId,status:"exported"})}function I(e){return(0,o.Z)(e)}function w(e,t,n){t._parentId=n.id,t.children.forEach((n=>{w(e,n,t)})),e._lookupTable[t.id.toString()]=t}function x(e){e._lookupTable={[`${c}`]:e.root},e.root.children.forEach((t=>w(e,t,e.root)))}function S(e){const t={root:e.root,_nextNodeId:e._nextNodeId,_lookupTable:{},status:"valid"};return x(t),t}function C(e,t){const n=P(e,t);if(!n)return!1;const o=n.children.findIndex((e=>e.id===t));return-1!==o&&o}function k(e,t){return Z(e,t._parentId)}function P(e,t){const n=Z(e,t);return!!n&&(k(e,n)??!1)}function Z(e,t){return t?e._lookupTable[t.toString()]:void 0}function D(e,t,n){let o=P(e,n);while(0!=o){if(o.id===t)return!0;o=P(e,o.id)}return!1}function E(e,t){return Object.values(e._lookupTable).filter((e=>e?.data?.properties?.meta?.preset===t))}function T(e,t){let n=P(e,t);if(n&&n.id===c)return null;while(!1!==n){const t=P(e,n.id);if(!1===t)return n;if(t.id===c)return n;n=t}return null}function A(e){if(a.kD.inlineEditingContext?.blockId){const e=(0,l.sA)(),t=a.kD.inlineEditingContext.blockId;return(0,l.D0)(e+1),`${t}-${e}`}{const t=e._nextNodeId;return e._nextNodeId+=1,t}}function M(e,t,n){t&&t.forEach(((t,o)=>{const s=a.PK.element(t.slug),i=t.slug,l=t.defaultProperties||s.defaultProperties||null,c=t.children?.length?t.children:s.defaultChildren,u=(0,r.d)(e,{type:i,properties:l});V(e,u.id,n,o),M(e,c,u.id)}))}function V(e,t,n,o,a){const i=Z(e,t),r=Z(e,n);if(!i)return;if(!r)return;if(!(0,s.xJ)(e,i,n,a))return;const l=P(e,t),c=C(e,t);!1!==l&&!1!==c&&l.children.splice(c,1),i._parentId=r.id,r.children.splice(o,0,i)}function B(e,t){const n=P(e,t),o=C(e,t);!1!==n&&!1!==o&&(n.children.splice(o,1),O(e,t))}function O(e,t){const n=Z(e,t);n&&e._lookupTable[t.toString()]&&(delete e._lookupTable[t.toString()],n.children.forEach((t=>O(e,t.id))))}function L(e,t,n){const o=(0,r.d)(e,t.data,{reuseId:n?.preserveExistingId,idToUse:t.id}),s=(t,o)=>{t.forEach((t=>{const a=(0,r.d)(e,t.data,{reuseId:n?.preserveExistingId,idToUse:t.id});V(e,a.id,o.id,o.children.length),t.children.length>0&&s(t.children,a)}))};return s(t.children,o),o}function $(e,t,n,o){const s=L(e,t,{preserveExistingId:!0});V(e,s.id,n,o)}function z(e,t){const n=P(e,t),o=C(e,t),s=Z(e,t);if(!1===n)return;if(!1===o)return;if(!s)return;const a=L(e,s);return V(e,a.id,n.id,o+1),a}function N(e,t){return d(((e,n)=>(e.data.type===t&&n++,n)),e,0)}},86592:(e,t,n)=>{"use strict";n.d(t,{GJ:()=>x,H5:()=>f,It:()=>b,J6:()=>C,Ui:()=>I,as:()=>D,bb:()=>g,g:()=>m,iZ:()=>w,l0:()=>y,rf:()=>p,tV:()=>v,yz:()=>P});var o=n(85450),s=n(31697),a=n(62231),i=n(23128),r=n(25001),l=n(31549);if(143==n.j)var c=n(6613);if(143==n.j)var u=n(56888);const d={},p="breakdance-twig-macros",h="breakdance-twig-macros-hash";function g(e){return`element-${e.slug}-template`}function m(e,t){return t?`element-${e.slug}-css-template-using-preset-${t}`:`element-${e.slug}-css-template`}function v(e,t){return`preset-${e.slug}-${t}-css-template`}function f(e,t){return`element-${e.slug}-attr-${t.name}-template`}function y(e,t){return`element-${e.slug}-add-class-${t.name}-template`}function b(e){const t=g(e),n=C(S(e.template),t);if(!n)return;const s=m(e),a=C(S(e.cssTemplate),s);a&&([...e.additionalClasses||[]].forEach((t=>{const n=y(e,t);C(S(t.template),n)})),[...e.attributes||[],...o.configStore.elementsExternalAttrsDepsAndActions.attributes||[]].filter((e=>"template"in e)).forEach((t=>{const n=f(e,t);C(S(t.template),n)})))}function _(){const e=(0,l.z)(h),t=!e||e!==o.configStore.twigMacrosHash;if(t)return null;const n=(0,l.z)(p);if(null===n||!1===n)return null;const s=(0,u.B)(n);return void 0===s?null:s}function I(){const e=_();if(null===e){const e=x(o.configStore.twigMacros),t=C(e,p);if(null===t)return void o.uiStore.logError("Unable to compile macros template");const n=(0,c.g)({id:t.id,tokens:t.tokens});n&&o.configStore.twigMacrosHash&&((0,l.r)(p,n),(0,l.r)(h,o.configStore.twigMacrosHash))}else d[p]=s.twig({id:e.id,data:e.tokens,precompiled:!0})}function w(e){p in d?(e=e||Object.values(o.configStore.elements).filter(r.$K),e.forEach((e=>requestIdleCallback((()=>b(e)))))):console.warn("Unable to precompile templates of elements – macros template is not compiled yet.")}function x(e){return e.reduce(((e,t)=>e+t.macro),"")}function S(e){const t=`\n {% import "${p}" as macros %}\n ${e}\n `;return t}function C(e,t){return Z(e,(()=>{s.cache(!1);const n=s.twig({id:t,data:e,allowInlineIncludes:!0,rethrow:!0});return d[t]=n,n}))}function k(e,t){const n=S(e),o=t??(0,a.X)(n);if(d[o])return d[o];const s=C(n,o);return s||void 0}function P(e,t,n){return e.includes("{%")||e.includes("{{")||e.includes("{#")?Z(e,(()=>{const o=k(e,n);return o?o.render({...(0,i.Z)(t),isBuilder:!0}).trim():""})):e.trim()}function Z(e,t){try{return t()}catch(n){return o.uiStore.logConsoleError({error:n,template:e}),null}}function D(e,t){const n=Object.keys(t);return n.reduce(((e,n)=>{const o=new RegExp(`%%${n.toUpperCase()}%%`,"g"),s=t[n];return null!==s&&void 0!==s?e.replace(o,String(s)):e}),e)}},59760:(e,t,n)=>{"use strict";n.d(t,{OC:()=>d,SU:()=>p,b0:()=>h,rZ:()=>c});var o=n(23128),s=n(31044),a=n(88506),i=n(30902),r=n(45974),l=n(31549);const c="breakdance-ui-settings_theme";function u(){if("function"===typeof window.matchMedia){const e=window.matchMedia("(prefers-color-scheme: dark)"),t="boolean"===typeof e.matches;if(t)return e.matches?"dark":"light"}return"light"}const d={autoScrollEnabled:!0,showExperimentalElements:!1,scaleToFit:"SCALED_TO_FIT",theme:u(),showElementIdInStructurePanel:!1,disableNoticeForEmptySSRElements:!1,popoutPosition:"STACKED",disableCodeMirrorLineWrapping:!1,isTinyMcePreferredForRichText:!0,includeCustomBreakpointsInBreakpointsDropdown:!1,defaultUnitType:"px",disableCustomUnitDropdown:!1,showPreviousBreakpointValueAsPlaceholder:!1};function p(){const e=(0,l.z)(c);return e?(0,i.pipe)((0,a.Z)(e),(0,r.fold)((()=>d),(e=>e))):d}function h(e){const t=(0,o.Z)(s.kD.settings);return t.scaleToFit=e?"SCALED_TO_FIT":"ACTUAL_SIZE",document.getElementById("iframe-wrapper")?.scroll({left:0}),s.kD.setSettings(t),t}},84274:(e,t,n)=>{"use strict";n.d(t,{AZ:()=>d,JC:()=>h,eU:()=>p});var o=n(31044),s=n(31381),a=n(94942),i=n(20210),r=n(70802),l=n(94550);const c="element",u="property",d={forElementByTreeNodeId:(e,t,n)=>{const a=(0,s.findNode)(o.Hb.document.tree,e),i=o.PK.element(a?.data.type||l.MISSING_ELEMENT_SLUG);return d.forElementBasingOnChangedStorePropertyPath(i,t,n)},forElementBasingOnChangedStorePropertyPath:(e,t,n)=>{const o=(0,i.pT)(e,t),s=[];return o?s.push(...(0,r.Jx)(o)):s.push(u),(0,a.Ws)({action:n,subject:e.name},s)}};function p(e){const t=(0,s.findNode)(o.Hb.document.tree,e);return h(t?.data.type)}function h(e){if(!e)return c;const t=o.PK.element(e);return t.name}},94942:(e,t,n)=>{"use strict";n.d(t,{IU:()=>r,Ws:()=>a});var o=n(48403),s=n.n(o);function a(e,t=[]){return i([`${e.action} ${e.subject}`,...t])}function i(e){return e.join(" → ")}function r(e){console.warn("Snapshot title is inferred from mutation payload automatically. In general, you don't want this to happen – make sure mutation is wrapped with a transaction with a meaningful snapshot title.",e);const t=e.type.split("/");return s()(t[1].split(/(?=[A-Z])/).filter((e=>"Mutation"!==e)).join(" ").toLowerCase())}},47179:(e,t,n)=>{"use strict";function o(e,t=""){const n=e.meta?.transactionBundling;if(!n||!("disable"in n))return`${t}:PATH:${e.path}:${n?.bundlingKeySuffix}`}n.d(t,{e:()=>o})},69137:(e,t,n)=>{"use strict";n.d(t,{F:()=>u,n:()=>c});var o=n(85450),s=n(25886),a=n(31381),i=n(94942),r=n(36055);class l{constructor(){this.modulesToWatch=["document","global"],this.mutationsToWatch=["singularity/setBrand"],this.isPartOfExistingTransaction=!1,this.transactionDepth=0,this.isSubscribed=!1,this.shouldAllMutationsBeIgnored=!1}setupHook(e){this.store=e}initialize(){this.isSubscribed||(this.store.subscribe(this.mutationListener.bind(this)),this.isSubscribed=!0),this.isPartOfExistingTransaction=!1,o.snapshotStore.clear(),this.takeSnapshot((0,r.__)("Initial State"))}startTransaction(){this.isPartOfExistingTransaction&&console.warn("Can't start a transaction when a transaction is is already in progress."),this.isPartOfExistingTransaction=!0}cancelTransactionIfItIsStillInProgress(){this.isPartOfExistingTransaction=!1}endTransaction(e,t){this.isPartOfExistingTransaction||console.trace("Can't end a transaction that is not in progress"),this.takeSnapshot(e,t),this.isPartOfExistingTransaction=!1}setStoreFromCurrentSnapshot(){const e=o.snapshotStore.currentSnapshot;if(e){const t={...e.panelState,rightSidebarPanel:"history"===o.uiStore.panelState.rightSidebarPanel?"history":e.panelState.rightSidebarPanel};"globalSettings"!==t.rightSidebarPanel&&"selectors"!==t.rightSidebarPanel&&"presets"!==t.rightSidebarPanel||(t.shouldLoadFreshDataIntoStoreOnceOpened[t.rightSidebarPanel]=!1),"globalSettings"!==t.leftSidebarPanel&&"selectors"!==t.leftSidebarPanel&&"presets"!==t.leftSidebarPanel||(t.shouldLoadFreshDataIntoStoreOnceOpened[t.leftSidebarPanel]=!1),c.ignore((()=>{"document"in e&&o.documentStore.setDocument(e.document),o.globalStore.setGlobalSettings(e.globalSettings),o.globalStore.setSelectors(e.cssSelectors),o.globalStore.setPresets(e.presets),o.globalStore.setVariables(e.variables.variables),o.globalStore.setVariablesCollections(e.variables.collections),o.globalStore.setOxygenSelectors(e.oxySelectors.selectors),o.globalStore.setOxygenSelectorsCollections(e.oxySelectors.collections),o.singularityStore.setBrand(e.brand)})),"activeElementId"in e&&o.uiStore.activateElementMutation(e.activeElementId),o.uiStore.setActiveSelectorName(e.activeSelectorName),o.uiStore.setPanelState(t),"inlineEditingContext"in e&&o.uiStore.setInlineEditingContext(e.inlineEditingContext)}}redo(){o.snapshotStore.canRedo&&(o.snapshotStore.redoIndex(),this.setStoreFromCurrentSnapshot())}undo(){o.snapshotStore.canUndo&&(o.snapshotStore.undoIndex(),this.setStoreFromCurrentSnapshot())}takeSnapshot(e,t){"browse"===o.uiStore.mode?.mode?o.snapshotStore.takeBrowseModeSnapshot({globalSettings:{...o.globalStore.globalSettings},cssSelectors:[...o.globalStore.cssSelectors],oxySelectors:{selectors:[...o.globalStore.oxySelectors],collections:[...o.globalStore.oxySelectorsCollections]},presets:[...o.globalStore.presets],variables:{variables:[...o.globalStore.variables],collections:[...o.globalStore.variablesCollections]},activeSelectorName:o.uiStore.activeSelectorName,panelState:{...o.uiStore.panelState},brand:{...o.singularityStore.brand},key:t,title:e}):"builder"===o.uiStore.mode?.mode?o.snapshotStore.takeBuilderSnapshot({document:{documentMeta:{...o.documentStore.document.documentMeta},tree:{...(0,a.exportTree)(o.documentStore.document.tree)}},globalSettings:{...o.globalStore.globalSettings},cssSelectors:[...o.globalStore.cssSelectors],oxySelectors:{selectors:[...o.globalStore.oxySelectors],collections:[...o.globalStore.oxySelectorsCollections]},presets:[...o.globalStore.presets],variables:{variables:[...o.globalStore.variables],collections:[...o.globalStore.variablesCollections]},activeElementId:o.uiStore.activeElementId,activeSelectorName:o.uiStore.activeSelectorName,panelState:{...o.uiStore.panelState},inlineEditingContext:o.uiStore.inlineEditingContext,brand:{...o.singularityStore.brand},key:t,title:e}):alert("takeSnapshot - unsupported uiStore.mode")}transaction(e,t,n){if(this.shouldAllMutationsBeIgnored)e();else{if(this.isPartOfExistingTransaction)return console.trace(),console.warn("you called transaction() from inside another transaction(), or after startTransaction was called. the mutations will run as parent of the parent transaction."),void e();this.isPartOfExistingTransaction=!0,e(),t&&this.takeSnapshot(t,n),this.isPartOfExistingTransaction=!1}}ignore(e){this.isPartOfExistingTransaction&&(console.trace(),console.error("you called ignore() from inside transaction()")),this.shouldAllMutationsBeIgnored&&(console.trace(),console.error("you called ignore() from inside another ignore()")),this.shouldAllMutationsBeIgnored=!0,e(),this.shouldAllMutationsBeIgnored=!1}mutationListener(e){this.isPartOfExistingTransaction||this.shouldMutationBeIgnored(e)||this.takeSnapshot((0,i.IU)(e))}shouldMutationBeIgnored(e){if(this.shouldAllMutationsBeIgnored)return!0;const t=(0,s.q$)(e);return!this.modulesToWatch.includes(t)&&!this.mutationsToWatch.includes(e.type)}}const c=new l,u=e=>{c.setupHook(e),window.breakdanceUndo=c}},98851:(e,t,n)=>{"use strict";n.d(t,{D:()=>d});var o,s=n(31496),a=n(45974),i=n(51168),r=n(16442),l=n(30902);(function(e){e[e["OK"]=200]="OK",e[e["CREATED"]=201]="CREATED",e[e["BAD_REQUEST"]=400]="BAD_REQUEST",e[e["UNAUTHORIZED"]=401]="UNAUTHORIZED",e[e["FORBIDDEN"]=403]="FORBIDDEN",e[e["EXPIRED"]=419]="EXPIRED",e[e["INTERNAL_SERVER_ERROR"]=500]="INTERNAL_SERVER_ERROR"})(o||(o={}));var c=n(48973);const u="application/json";async function d(e){const t=e.friendlyName||"WordPress AJAX Request",n=[],o={};for(const[i,r]of Object.entries(e.dataToPost||{}))r&&(0,a.isLeft)(r)?n.push(...r.left):r&&(0,a.isRight)(r)?o[i]=r.right:o[i]=r;if(n.length)return e.suppressErrorLogging?(0,a.left)(n):((0,i.UE)(n),(0,a.left)([]));const s=e.overrideAjaxUrl?{...o,breakdance_ajax_at_any_url:"true"}:o,u={action:e.action,...s},d=await m(u,e.overrideAjaxUrl,t,e.abortController),p=(0,l.pipe)(d,a.fold((e=>a.left(e)),(t=>{let n;n=e.resultKey?t[e.resultKey]:t;const o=(0,l.pipe)(n,(t=>e.processResults?e.processResults(t):(0,c.F2)(t)),(0,a.map)((0,l.flow)(e.decoder.decode,(0,a.mapLeft)(r.H))),a.flatten);return o})));return(0,a.isLeft)(p)?e.suppressErrorLogging?p:((0,i.UE)(p.left),a.left([])):p}function p(e){return e.headers.get("Content-Type")}async function h(e){const t=p(e);if(t?.includes(u))try{const t=await e.json();return a.right(t)}catch(n){return(0,a.left)((0,i.Ah)(n,"Unable to decode JSON response body"))}else try{const t=await e.text();return a.right(t)}catch(n){return(0,a.left)((0,i.Ah)(n,"Unable to decode response body"))}}function g(e){return"string"!==typeof e}async function m(e,t=!1,n,s=null){const r=new URL(t||window.Breakdance.ajaxurl);r.searchParams.append("_breakdance_doing_ajax","yes");const l=[o.OK,o.CREATED],c=(e,t)=>({type:"NETWORK_ERROR",errorDetails:{friendlyName:n,message:e},requestDetails:t});window.Breakdance.ajaxnonce&&r.searchParams.set("_ajax_nonce",window.Breakdance.ajaxnonce);const d={friendlyName:n,responseCode:"-1",requestUrl:r.toString(),requestMethod:"POST",body:e,requestTimeGmt:(new Date).toUTCString()};try{const t=await v(r.toString(),e,s),m=t.status;if(t.headers.has("Breakdance-Refresh-Nonce")){const e=t.headers.get("Breakdance-Refresh-Nonce");null!==e&&(window.Breakdance.ajaxnonce=e)}const f=await h(t);if(d.responseCode=m.toString(),a.isLeft(f)){const e=f.left;return a.left(e.map((e=>(0,i.tQ)(e,c(e.msg,d)))))}const y=f.right;if(l.includes(m)){if(g(y))return a.right(y);const e=`Unexpected response type, expected "${u}", got "${p(t)}"`;return(0,a.left)((0,i.cv)(e,c(e,d)))}if(m===o.UNAUTHORIZED)return(0,a.left)((0,i.cv)("Logged out",{type:"LOGGED_OUT",message:n}));if(m===o.EXPIRED)return(0,a.left)((0,i.cv)("Session Expired",{type:"SESSION_EXPIRED",message:n}));if(m===o.FORBIDDEN){const e=g(y)?y?.error?.message:void 0;return(0,a.left)((0,i.cv)(e,{type:"FORBIDDEN",requestDetails:d,errorMessage:e}))}if(m===o.INTERNAL_SERVER_ERROR||m===o.BAD_REQUEST){const e={type:"INTERNAL_SERVER_ERROR",errorDetails:g(y)?y.error:y,errorMessage:g(y)?void 0:y,requestDetails:d};return(0,a.left)((0,i.cv)("Internal Server Error",e))}{const e=g(y)?y.error:y,t={type:"AJAX_CODE_ERROR",errorDetails:{message:e},requestDetails:d};return(0,a.left)((0,i.cv)(e,t))}}catch(m){return(0,a.left)((0,i.Ah)(m,"Unknown network error",(e=>c(e,d))))}}async function v(e,t,n){return new Promise((async(o,a)=>{try{const a=await fetch(e,{method:"POST",body:(0,s.D)(t,{indices:!0}),headers:{"X-Requested-With":"BreakdanceXMLHttpRequest"},signal:n?n.signal:void 0});o(a)}catch(i){a({error:i})}}))}},51168:(e,t,n)=>{"use strict";n.d(t,{AL:()=>g,Ah:()=>_,HR:()=>h,QI:()=>p,UE:()=>I,cv:()=>b,sz:()=>S,tQ:()=>m});var o=n(47037),s=n.n(o);if(/^(14|9)3$/.test(n.j))var a=n(45974);var i=n(98851),r=n(32521),l=n(39664),c=n(88506),u=n(65669);if(/^(14|9)3$/.test(n.j))var d=n(3735);async function p(e,t){return await(0,i.D)({action:"breakdance_retrieve_arbitrary",dataToPost:{key:e},decoder:t,processResults:e=>(0,c.Z)(e.data)})}async function h(e,t){return await(0,i.D)({action:"breakdance_save_arbitrary",dataToPost:{key:e,data:(0,u.J)(t)},decoder:r._4})}function g(e){return{msg:String(e)}}function m(e,t){return{...e,customNotificationToShow:t}}function v(e,t){return e.trim().length?e:t}function f(e,t){return e instanceof Error?v(e.message,t):s()(e)?v(e,t):t}function y(e,t){return t?m(e,t):e}function b(e,t){return[e].map(g).map((e=>y(e,t)))}function _(e,t,n){const o=f(e,t);return b(o,n?n(o):void 0)}const I=e=>{e.forEach((e=>{e.customNotificationToShow?l.Z.log.notification(e.customNotificationToShow):l.Z.log.message(e.msg)}))},w=r.dt({text:r.Z_,value:r.Z_}),x=r.IX(w);async function S(e,t={}){return(0,d.zG)(await(0,i.D)({action:e,dataToPost:{requestData:t},decoder:x}),(0,a.fold)((e=>(I(e),[])),(e=>e)))}},63085:(e,t,n)=>{"use strict";n.d(t,{UH:()=>$,Oc:()=>M,PX:()=>V,gn:()=>H,ZR:()=>R,x2:()=>A,Dl:()=>T,gV:()=>O,rI:()=>W,Ft:()=>z});var o=n(8400),s=n.n(o),a=n(98851),i=n(88683),r=n(85450),l=n(67505),c=n(23128),u=n(69137),d=n(52666);if(143==n.j)var p=n(45974);if(143==n.j)var h=n(30902);var g=n(51168),m=n(25970),v=n(86592),f=n(13635);if(143==n.j)var y=n(32521);var b=n(65669),_=n(89381),I=n(63842),w=n(39664),x=n(86687),S=n(79298),C=n(660),k=n(60719),P=n(42665);function Z(e){(0,k.b6)(),P.P.cancelJobsMatching({documentId:e})}var D=n(77622),E=n(40045);async function T(e){return await(0,a.D)({action:"breakdance_load_document",dataToPost:{id:e},decoder:i.Ux})}async function A(){return await(0,a.D)({action:"breakdance_load_document",decoder:i.d0})}function M(e,t){(0,h.pipe)(e,(0,p.fold)((e=>{r.uiStore.setInterfaceState("normal"),(0,g.UE)(e.map((e=>({...e,customNotificationToShow:e.customNotificationToShow?"INTERNAL_SERVER_ERROR"===e.customNotificationToShow.type?{...e.customNotificationToShow,keepOpen:!0}:e.customNotificationToShow:void 0}))))}),(async e=>{L(),(0,l.jE)(e.plugins),B(e),t?.returnUrl&&r.browseModeStore.setBackToAdminUrl(t.returnUrl),(0,v.Ui)(),(0,v.iZ)(),r.uiStore.selectBaseBreakpoint(),(0,_.w7)("globalSettings",t?.browseModeOpenUrl)})))}function V(e){(0,h.pipe)(e,(0,p.fold)((e=>{r.uiStore.setInterfaceState("normal"),(0,g.UE)(e.map((e=>({...e,customNotificationToShow:e.customNotificationToShow?"INTERNAL_SERVER_ERROR"===e.customNotificationToShow.type?{...e.customNotificationToShow,keepOpen:!0}:e.customNotificationToShow:void 0}))))}),(async e=>{if("errorType"in e)return r.uiStore.setInterfaceState("normal"),void r.configStore.setInvalidPostData(e);L(),(0,f.Ik)(),(0,l.jE)(e.plugins),O(e),(0,v.Ui)(),(0,v.iZ)(),await(0,m.Kd)(),r.uiStore.selectBaseBreakpoint(),r.uiStore.setInterfaceState("normal"),u.n.initialize()})))}function B(e){r.configStore.setEnvironment(e.environment),r.configStore.setElementsAndAppendRootElement(e.builderElements),r.configStore.setElementsExternalAttrsDepsAndActions(e.elementsExternalAttrsDepsAndActions),r.configStore.setElementCategories(e.builderElementCategories),r.configStore.setPreferences(e.preferences),r.configStore.setDynamicFields(e.dynamicFields),r.configStore.setConditions(e.conditions),r.configStore.setFonts(e.fonts),r.configStore.setGlobalSettingsControlsAndTemplate(e.globalSettingsControlsAndTemplate),r.configStore.setAvailableDocuments(e.availableDocuments),r.configStore.setAvailableMediaSizes(e.availableMediaSizes),r.configStore.setAvailablePermissions(e.availablePermissions),r.configStore.setPermission(e.permission),r.configStore.setSelectorControls(e.selectors.controls),r.configStore.setClassTemplate(e.selectors.template),r.configStore.setNeededUrls(e.neededData),r.configStore.setPresetsForElements(e.elementPresets),r.configStore.setBuiltinBreakpoints(e.builtinBreakpoints),r.configStore.setTwigMacros(e.twigMacros),r.configStore.setTwigMacrosHash(e.twigMacrosHash),r.configStore.setAvailableWordpressPlugins(e.availableWordpressPlugins),r.configStore.setDesignLibrary(e.designLibrary),r.configStore.setSubscriptionMode(e.subscriptionMode),r.configStore.setBuilderMode(e.builderMode),r.configStore.setExperiments(e.experiments),r.configStore.setAi(e.ai),r.configStore.setInteractions(e.interactions),r.configStore.setOxySelectorsControlsAndTemplate(e.oxySelectors),r.configStore.setVariablesControlsAndTemplate(e.variables),r.singularityStore.setAiServer(e.aiServer),u.n.ignore((()=>{r.globalStore.setGlobalSettings(e.globalSettings),r.globalStore.markCurrentGlobalSettingsAsUntouched(),r.globalStore.setSelectors(e.selectors.selectors),r.globalStore.markCurrentSelectorsAsUntouched(),r.globalStore.setVariables(e.variables.variables),r.globalStore.markCurrentVariablesAsUntouched(),r.globalStore.setPresets(e.elementPresets),r.globalStore.markCurrentPresetsAsUntouched(),r.globalStore.setOxygenSelectors(e.oxySelectors.selectors),r.globalStore.setOxygenSelectorsCollections(e.oxySelectors.collections),r.globalStore.markCurrentOxySelectorsAsUntouched(),!1!==e.aiSettings&&(r.globalStore.setAiSettings(e.aiSettings),r.globalStore.markCurrentAiSettingsAsUntouched()),(0,d.w1)(e.futureLayerSettings)}))}function O(e){r.documentStore.setDocument(e.document),r.configStore.setDocumentSpecificNeededUrls(e.documentSpecificNeededUrls),r.configStore.loadTemplatePreviewData(e.templatePreview),B(e)}function L(){window.Breakdance.originalUrl=location.href,window.Breakdance.stores={configStore:r.configStore,documentStore:r.documentStore,uiStore:r.uiStore,globalStore:r.globalStore}}function $(e){const t=new URL(window.Breakdance.originalUrl);return t.searchParams.set("id",`${e}`),t.search=t.searchParams.toString(),t.href}async function z(e){return(0,a.D)({action:"breakdance_save_template_last_previewed_item",decoder:y.dt({success:y.i0(!0)}),dataToPost:{postId:r.documentStore.document.documentMeta.id,item:(0,b.J)(e)}})}class N{setupHook(e){this.store=e,this.initialState=(0,c.Z)(this.store.state)}resetToInitialState(){const e=(0,c.Z)(this.initialState);this.store.replaceState(e)}}new N;async function H(e,t,n=!1){(0,h.pipe)(await(0,a.D)({action:"breakdance_load_builder_elements",resultKey:"elements",decoder:y.IX(I._t)}),(0,p.fold)((n=>{n.forEach((e=>w.Z.log.message(e.msg))),r.configStore.setElementsLoadingState("failed"),r.uiStore.logError("Failed to load elements"),e&&t&&t()}),(t=>{const o=s()(t,10);o.forEach(((t,s)=>{requestIdleCallback((()=>{r.configStore.addNonExistentElementsNonReactively(t),(0,v.iZ)(t);const a=s===o.length-1;if(a){if(n||x.w.registerAllStoreActions(),r.configStore.setElementsLoadingState("success"),n||((0,S.aL)((0,f.RY)()),(0,C.V)((0,f.RY)())),e)e();else{const e=new CustomEvent("breakdance_document_ready");window.dispatchEvent(e)}U()}}))}))})))}function R(){return new Promise(((e,t)=>{"success"===r.configStore.elementsLoadingState?e():H(e,t,!0)}))}function G(e){if(!e)return;const t=(0,D.pL)(e);(0,E.t)(t),(0,D.zz)()}function F(){(0,D.WU)().then(G).catch((e=>{console.error("Failed to fetch posts:",e)}))}function U(){window.Breakdance.isOnboarding&&F()}async function W(e){const t=r.uiStore.unsavedChangesPresent;if(t){const e=window.confirm("You have unsaved changes, are you sure you want to leave?");if(!e)return}const n=r.documentStore.document.tree._lookupTable,o=Object.keys(n).map(f.ME);o.forEach((e=>x.w.run.onBeforeDeletingElement({elementId:e}))),x.w.resetAllCallbacks(),r.uiStore.setCanvasState("loading"),r.configStore.setLeavingIframeOnPurpose(!0),r.configStore.setPreviewedItem(null);const s=r.documentStore.document.documentMeta.id;Z(s);const a=r.configStore.elements,i=await T(e);V(i),r.uiStore.setCanvasWrapperKey(r.uiStore.canvasWrapperKey+1),r.uiStore.setUnsavedChangesPresent(!1),r.configStore.setElementsMutation(a),r.uiStore.activateElementMutation(null);const l=new URL(window.location);l.searchParams.set("id",`${e}`),window.history.replaceState({},"",l)}},71688:(e,t,n)=>{"use strict";if(n.d(t,{h:()=>p,i:()=>h}),715==n.j)var o=n(30902);var s=n(98851);if(!/^(14|9)3$/.test(n.j))var a=n(32521);if(715==n.j)var i=n(45974);var r=n(39664),l=n(31044),c=n(36055);async function u(e){return(0,o.pipe)(await(0,s.D)({action:"breakdance_get_paginated_breakdance_post_ids",dataToPost:{page:e},resultKey:"postIds",decoder:a.IX(a.pk)}),(0,i.fold)((()=>[]),(e=>e)))}async function d(){l.kD.setIdsOfPostsToRegenerateCache([]);let e=[],t=!0,n=0;while(t){const o=await u(n);n++,e=[...e,...o],0===o.length&&(t=!1)}return e}function p(){(0,s.D)({action:"breakdance_regenerate_global_settings_cache",decoder:a._4})}async function h(){l.kD.setUnsavedChangesPresent(!0),p();const e=await d();l.kD.setIdsOfPostsToRegenerateCache(e);for await(const t of e){const e=l.kD.idsOfPostsToRegenerateCache?[...l.kD.idsOfPostsToRegenerateCache]:[];e.shift(),(0,o.pipe)(await(0,s.D)({action:"breakdance_regenerate_post_cache",dataToPost:{id:t},decoder:a._4}),(0,i.fold)((()=>{0===e.length?l.kD.setIdsOfPostsToRegenerateCache(null):l.kD.setIdsOfPostsToRegenerateCache(e),r.Z.log.message((0,c.gB)((0,c.__)('Couldn\'t recreate the cache for post "%s". Please re-save that post manually.'),t))}),(()=>{0===e.length?(l.kD.setIdsOfPostsToRegenerateCache(null),r.Z.log.message((0,c.__)("Finished recreating all posts cache"))):l.kD.setIdsOfPostsToRegenerateCache(e)})))}}},94543:(e,t,n)=>{"use strict";n.d(t,{$:()=>g});var o=n(98851),s=n(85450),a=n(31381);if(/^(143|974)$/.test(n.j))var i=n(32521);if(/^(143|974)$/.test(n.j))var r=n(45974);var l=n(51168);if(/^(143|974)$/.test(n.j))var c=n(30902);var u=n(65669),d=n(69137),p=n(16068),h=n(62962);async function g(){s.uiStore.setSaveInProgress(!0),(0,h.A)();const e={id:s.documentStore.document.documentMeta.id,tree:(0,u.J)((0,a.exportTree)(s.documentStore.document.tree)),singularityMeta:(0,u.J)(s.documentStore.document.documentMeta.singularityMeta)};s.globalStore.settingsHasUnsavedChangesPresent&&(e.globalSettings=(0,u.J)(s.globalStore.globalSettings)),s.globalStore.selectorsHasUnsavedChangesPresent&&(e.classes=(0,u.J)(s.globalStore.cssSelectors)),s.globalStore.presetsHasUnsavedChangesPresent&&(e.presets=(0,u.J)(s.globalStore.presets)),s.globalStore.aiSettingsHasUnsavedChangesPresent&&(e.ai=(0,u.J)(s.globalStore.aiSettings.prompt)),s.globalStore.variablesHasUnsavedChangesPresent&&(e.variables=(0,u.J)({variables:s.globalStore.variables,collections:s.globalStore.variablesCollections})),s.globalStore.oxySelectorsHasUnsavedChangesPresent&&(e.oxySelectors=(0,u.J)({selectors:s.globalStore.oxySelectors,collections:s.globalStore.oxySelectorsCollections}));const t=(0,c.pipe)(await(0,o.D)({friendlyName:"Saving to WordPress",action:"breakdance_save",dataToPost:e,decoder:i._4}),(0,r.fold)((e=>((0,l.UE)(e),(0,r.left)(e))),(e=>((0,p.uI)(),document.dispatchEvent(new Event("breakdancePageSaved")),s.uiStore.setUnsavedChangesPresent(!1),d.n.ignore((()=>{s.globalStore.markCurrentGlobalSettingsAsUntouched(),s.globalStore.markCurrentSelectorsAsUntouched(),s.globalStore.markCurrentVariablesAsUntouched(),s.globalStore.markCurrentPresetsAsUntouched(),s.globalStore.markCurrentOxySelectorsAsUntouched(),s.globalStore.markCurrentAiSettingsAsUntouched()})),(0,r.right)(e)))));return s.uiStore.setSaveInProgress(!1),t}},660:(e,t,n)=>{"use strict";if(n.d(t,{V:()=>m}),143==n.j)var o=n(3735);var s=n(65669);if(143==n.j)var a=n(48973);var i=n(23128),r=n(31044),l=n(90889),c=n(18076),u=n(90504),d=n(58053),p=n.n(d);if(143==n.j)var h=n(24111);const g=new Map;function m(e){const t=v(),n=t.map(f).join(" ");(0,u.Z)(e,"oxy-selectors",n)}function v(){return(0,i.Z)(r.cr.oxySelectors).map((e=>(0,l.PN)((0,h.r)(e))))}function f(e){const t=g.get(e.id);if(t&&!y(e,t.hash))return t.css;const n=(0,c.a)({selector:e},r.PK.breakpoints,r.PK.oxySelectorsControlsAndTemplate.template,{},r.PK.oxySelectorsControlsAndTemplate.propertyPathsToWhitelistInFlatProps);return g.set(e.id,{hash:b(e),css:n}),n}function y(e,t){return t!==b(e)}function b(e){const t=(0,o.zG)((0,s.J)(e),(0,a.g_)((()=>""),(e=>e)));return p()(t)}},16068:(e,t,n)=>{"use strict";n.d(t,{Bc:()=>X,C2:()=>S,Cg:()=>H,E4:()=>D,EF:()=>P,EK:()=>M,ET:()=>z,GH:()=>N,Hj:()=>C,Jf:()=>R,Kq:()=>F,Mg:()=>$,Nd:()=>G,PJ:()=>A,Pv:()=>Z,T8:()=>I,Xn:()=>T,Z0:()=>w,_Y:()=>E,aN:()=>L,bO:()=>q,hI:()=>_,hP:()=>k,j0:()=>O,kW:()=>V,nW:()=>j,uI:()=>U,z3:()=>W});var o=n(18446),s=n.n(o),a=n(22218);if(/^(14|9)3$/.test(n.j))var i=n(8773);var r=n(31044),l=n(31381),c=n(69137),u=n(23128),d=n(57088),p=n(31549);if(/^(143|974)$/.test(n.j))var h=n(3735);var g=n(65669);if(/^(143|974)$/.test(n.j))var m=n(48973);var v=n(65118);if(143==n.j)var f=n(32521);var y=n(31304),b=n.n(y);const _="Collection",I="Default",w=/^(14|9)3$/.test(n.j)?["&:hover","&:active","&:focus","&:focus-within","&:focus-visible"]:null,x=e=>e.startsWith(".")?e.substring(1):e;function S(e,t,n="class",o=I){return{id:(0,i.Z)(),name:"class"===n?x(e):e,properties:t,children:[],locked:!1,collection:o,type:n}}function C(e,t){return{id:(0,i.Z)(),name:e,properties:t,locked:!1}}function k(e,t){const n=t?r.cr.oxySelectors.filter((e=>e.id!==t)):r.cr.oxySelectors;return n.some((t=>t.name===e))}function P(e,t,n){const o=r.cr.oxySelectors.find((e=>e.id===t));if(!o)return!1;const s=n?o.children?.filter((e=>e.id!==n)):o.children;return s?.some((t=>t.name===e))}function Z(e){return()=>{if(!r.kD.activeElement)return!1;const t=d.Wp,n=(0,l.findNodeParent)(r.Hb.document.tree,r.kD.activeElement);if(!n)return!1;const o=T(n),s=o.reverse().find((e=>{const n=e?.properties?.[t]?.layout;return void 0!==n?.display&&null!==n?.display})),a=s?.properties?.[t]?.layout?.display;return!(!s||!a)&&e.includes(a)}}function D(e,t){r.Hb.unthrottledPropertyChanged({elementId:e,path:"meta.classes",meta:{snapshotLabel:"Add class to element"},value:t})}function E(e,t){const n=(0,l.findNode)(r.Hb.document.tree,e);if(!n)return;const o=n?.data?.properties?.meta?.classes||[],s=o.filter((e=>e!==t));D(e,s)}function T(e){const t=e?.data?.properties?.meta?.classes||[];return t.map((e=>r.cr.oxySelectors.find((t=>t.id===e)))).filter(Boolean)}function A(e){c.n.transaction((()=>{const t=r.cr.oxySelectors;let n=t.length;for(let s=t.length-1;s>=0;s--)if(t[s].collection===e.collection){n=s+1;break}const o=[...t.slice(0,n),e,...t.slice(n)];r.cr.setOxygenSelectors(o)}),"Add Selector")}function M(e){c.n.transaction((()=>{r.cr.setOxygenSelectors(r.cr.oxySelectors.filter((t=>t.id!==e)))}),"Remove Selector")}function V(e,t){c.n.transaction((()=>{r.cr.setOxygenSelectors(r.cr.oxySelectors.map((n=>n.id===e?{...n,name:"class"===n.type?x(t):t}:n)))}),"Rename Selector")}function B(e){const t=/-copy-\d+$/;if(t.test(e)){const n=parseInt(e.match(/\d+$/)[0]),o=e.replace(t,"").trim();return`${o}-copy-${n+1}`}return`${e}-copy-1`}function O(e){const t=r.cr.oxySelectors.find((t=>t.id===e));if(!t)return;const n=(0,u.Z)(t);return n.id=(0,i.Z)(),n.name=B(t.name),c.n.transaction((()=>{r.cr.setOxygenSelectors([...r.cr.oxySelectors,n])}),"Duplicate Selector"),n}function L(e,t){const n=r.cr.oxySelectors.findIndex((t=>t.id===e));if(-1===n)return!1;const o=(0,u.Z)(r.cr.oxySelectors),s=o[n].children?.find((e=>e.id===t.id));return!s&&(o[n].children||(o[n].children=[]),o[n].children.push(t),c.n.transaction((()=>{r.cr.setOxygenSelectors(o)}),"Add Nested Selector"),!0)}function $(e,t){const n=r.cr.oxySelectors.findIndex((t=>t.id===e));if(-1===n)return!1;const o=(0,u.Z)(r.cr.oxySelectors),s=o[n].children?.findIndex((e=>e.id===t));return-1!==s&&void 0!==s&&(o[n].children.splice(s,1),c.n.transaction((()=>{r.cr.setOxygenSelectors(o)}),"Remove Nested Selector"),!0)}function z(e,t,n){const o=r.cr.oxySelectors.findIndex((t=>t.id===e));if(-1===o)return!1;const s=(0,u.Z)(r.cr.oxySelectors),a=s[o].children?.findIndex((e=>e.id===t));return-1!==a&&void 0!==a&&(s[o].children[a].name=n,c.n.transaction((()=>{r.cr.setOxygenSelectors(s)}),"Rename Nested Selector"),!0)}function N(e,t){const n=r.cr.oxySelectors.findIndex((t=>t.id===e));if(-1===n)return;const o=(0,u.Z)(r.cr.oxySelectors),s=o[n].children?.findIndex((e=>e.id===t));if(-1===s||void 0===s)return!1;const a=(0,u.Z)(o[n].children[s]);return a.id=(0,i.Z)(),a.name=B(a.name),o[n].children||(o[n].children=[]),o[n].children.push(a),c.n.transaction((()=>{r.cr.setOxygenSelectors(o)}),"Duplicate Nested Selector"),a}function H(e){const t=(0,u.Z)(r.cr.oxySelectors),n=t.findIndex((t=>t.id===e.selectorId)),o=t[n];if(-1!==n)if(e.nestedSelectorId){const t=o.children?.findIndex((t=>t.id===e.nestedSelectorId));o.children||(o.children=[]),void 0!==t&&-1!==t&&o.children[t]&&(o.children[t]={...o.children[t],properties:e.properties})}else o.properties=e.properties;c.n.transaction((()=>r.cr.setOxygenSelectors(t)),"Update Selector Properties",e?.transactionKey)}function R(e){const t=(0,u.Z)(r.cr.oxySelectors),n=t.findIndex((t=>t.id===e));-1!==n&&(t[n].locked=!t[n].locked,c.n.transaction((()=>r.cr.setOxygenSelectors(t)),"Toggle Selector Lock"))}function G(e){return"string"===typeof e?{value:e,text:e}:{value:e.value,text:e.label}}function F(e){return"string"===typeof e?{value:e,label:e}:e}function U(){if(s()(r.cr.untouchedOxySelectors,r.cr.oxySelectors))return;const e=(0,h.zG)((0,g.J)(r.cr.oxySelectors),(0,m.g_)((()=>""),(e=>e)));(0,p.r)("oxy_selectors",e)}function W(e){if(!e.newValue)return;const t=(0,h.zG)((0,v.Z)(e.newValue,f.IX(a.En)),(0,m.g_)((()=>[]),(e=>e)));if(!t.length)return;const n=r.cr.oxySelectors;s()(n,t)||(c.n.transaction((()=>{const e=r.kD.unsavedChangesPresent;r.cr.setOxygenSelectors(t),r.cr.markCurrentOxySelectorsAsUntouched(),e||r.kD.setUnsavedChangesPresent(!1)}),"Update Selectors between tabs"),console.log("Selectors updated from storage",t))}function j(e){const t=r.PK.element(e.data.type);return b()(t.name,{lower:!0})}function X(e){const t=j(e),n=r.cr.oxySelectors.filter((e=>"class"===e.type)),o=n.map((e=>e.name));let s=1;while(o.includes(`${t}-${s}`))s++;return`${t}-${s}`}function q(e,t){const n=X(e),o=T(e),s=o.map((e=>e.id)),a=S(n,t);return A(a),D(e.id,[...s,a.id]),r.kD.setCurrentElementOxySelector(a.id),a.id}},22218:(e,t,n)=>{"use strict";n.d(t,{eV:()=>_,gY:()=>b,En:()=>y});var o=n(32521),s=n(16795);const a=e=>o.G0([e,o.lB]),i=a(o.Z_),r=a(o.pk),l=o.G0([i,r]),c=o.r$({primary_axis:i,cross_axis:i}),u=o.r$({display:i,flex_direction:i,grid_auto_flow:i,flex_align:a(c),grid_align:a(c)}),d=o.r$({width:s.UQ,height:s.UQ,min_width:s.UQ,min_height:s.UQ,max_width:s.UQ,max_height:s.UQ,overflow:i,box_sizing:i}),p=o.r$({text_decoration:i,font_style:i}),h=o.r$({text_align:i,style:a(p),text_transform:i,direction:i,text_wrap:i}),g=a(o.r$({property:i,duration:s.UQ,easing:i})),m=o.r$({pointer_events:i,cursor:i,opacity:l,blend_mode:i,transition:a(o.IX(g))}),v=o.r$({layout:a(u),size:a(d),typography:a(h),effects:a(m)}),f=o.dt({id:o.Z_,name:o.Z_,properties:o.G0([o.IM(o.Z_,o.G0([v,o.lB,o.S1])),o.lB,o.S1]),locked:o.O7}),y=o.dt({id:o.Z_,name:o.Z_,properties:o.G0([o.IM(o.Z_,o.G0([v,o.lB,o.S1])),o.lB,o.S1]),children:o.G0([o.IX(f),o.lB,o.S1]),type:o.G0([o.i0("class"),o.i0("custom")]),locked:o.O7,collection:o.Z_}),b=o.iG(o.dt({template:o.Z_,selectors:o.IX(y),collections:o.IX(o.Z_),propertyPathsToWhitelistInFlatProps:o.IX(o.Z_)}));var _;(function(e){e[e["BEFORE"]=-1]="BEFORE",e[e["CURRENT"]=0]="CURRENT",e[e["AFTER"]=1]="AFTER"})(_||(_={}))},17582:(e,t,n)=>{"use strict";n.d(t,{SD:()=>u,eh:()=>l,r6:()=>d});var o=n(32521),s=n(95996),a=n(47902);const i=o.G0([o.i0("text"),o.i0("number"),o.i0("unit"),o.i0("color"),o.i0("font_family"),o.i0("image_url")]),r=o.jV([o.dt({id:o.Z_,type:i,cssVariableName:o.Z_,label:o.Z_,value:o._4,collection:o.Z_}),o.r$({fallback:o._4,override:o.O7,dynamicData:a.DU,local:o.O7})]),l=o.IX(r),c=o.jV([s.Md,o.dt({variables:l})]),u=o.IX(c),d=o.iG(o.dt({template:o.Z_,variables:l,collections:o.IX(o.Z_),propertyPathsToWhitelistInFlatProps:o.IX(o.Z_)}))},90889:(e,t,n)=>{"use strict";n.d(t,{A6:()=>G,Db:()=>H,Hk:()=>f,Jj:()=>A,Jv:()=>D,PN:()=>z,RX:()=>N,X_:()=>y,Xb:()=>Z,ZJ:()=>C,Zp:()=>E,dH:()=>L,dw:()=>x,jI:()=>k,jN:()=>B,lZ:()=>T,ng:()=>v,pF:()=>P,pG:()=>M,sj:()=>R,w5:()=>S,xD:()=>m});var o=n(27361),s=n.n(o),a=n(31304),i=n.n(a);if(974!=n.j)var r=n(3735);if(974!=n.j)var l=n(48973);var c=n(74221),u=n(16795),d=n(86042),p=n(85450),h=n(88615),g=n(43195);const m="Default";function v(){return p.globalStore.variables}function f(e){const t=b(e);return!!t}function y(e){const t=b(e);if(t)return w(t);const n=_(e);return n?I(n):void 0}function b(e){const t=(0,r.zG)(e,u.UQ.decode,(0,l.g_)((()=>e),(e=>e?.style)));return"string"!==typeof t?"":t.startsWith("{var-")?t.replace("{var-","").replace("}",""):""}function _(e){const t=(0,r.zG)(e,u.UQ.decode,(0,l.g_)((()=>e),(e=>e?.style)));return"string"===typeof t?t:""}function I(e){const t=v(),n=(0,h.o_)(e);return t.find((e=>e.cssVariableName===n))}function w(e){const t=v();return t.find((t=>t.id===e))}function x(e,t){const n=t?`-${t}`:"",o=i()(e,{lower:!0});return`${o}${n}`}function S(e){return e.fallback?`var(--${e.cssVariableName}, ${e.fallback})`:`var(--${e.cssVariableName})`}function C(e,t){let n=1;while(t.includes(`${e} #${n}`))n++;return`${e} #${n}`}function k(e,t="Default"){const n=C("Color",e),o=C("Number",e),s=C("Unit",e),a=C("Font",e),i=C("Image",e);return[{title:"Color",icon:"PaletteIcon",value:{id:"{uuid}",type:"color",label:n,cssVariableName:x(n),collection:t}},{title:"Number",icon:"HashtagIcon",value:{id:"{uuid}",type:"number",label:o,cssVariableName:x(o),collection:t}},{title:"Unit",icon:"UpRightAndDownLeftFromCenter",value:{id:"{uuid}",type:"unit",label:s,cssVariableName:x(s),collection:t}},{title:"Font Family",icon:"TextIcon",value:{id:"{uuid}",type:"font_family",label:a,cssVariableName:x(a),collection:t}},{title:"Image URL",icon:"ImageIcon",value:{id:"{uuid}",type:"image_url",label:i,cssVariableName:x(i),collection:t}}]}function P(e){const t={number:"NumberInput",color:"ColorInput",unit:"UnitInput",font_family:"FontFamilyInput",text:"TextInput",image_url:"TextInput"};return t[e]||"TextInput"}function Z(e){const t={select:"text"};return t[e]||e}function D(e){const t={number:{},color:{colorOptions:{type:"solidAndGradient"},showGlobal:!1},unit:{expanded:!0},font_family:{},text:{},image_url:{}};return t[e]}function E(e){const t={"button-bar":"text",media:"image_url"};return t[e.type]||e.type.replace("-","_")}function T(e){if(e.disableVariable)return!1;const t=E(e);return"font_weight"===e.slug||["number","color","font_family","unit","image_url"].includes(t)}function A(e,t){if("color"!==e.type)return!0;const n=(0,h.mS)(e.value);return"gradientOnly"===t?n:"solidAndGradient"===t||!n}function M(e,t){if(!t)return e;const n=new c.Z(e,{keys:["label"],threshold:.2});return n.search(t.trim()).map((e=>e.item))}function V(e){const t=s()(e,"data.properties.settings.override_variables.override_variables")||[];return t.map((e=>({...e,local:!0})))}function B(){const e=p.uiStore.activeElement;return e?V(e):[]}function O(e){const t=v();for(const n in e){const o=e[n];if(Array.isArray(o)||"object"===typeof o)e[n]=O(o);else if("string"===typeof o&&o.startsWith("{var-")){const s=o.replace("{var-","").replace("}",""),a=t.find((e=>e.id===s));e[n]=a?`var(--${a.cssVariableName})`:null}}return e}function L(e,t){return e.replace(/{var-(.*?)}/g,((e,n)=>{const o=t.find((e=>e.id===n));return o?`var(--${o.cssVariableName})`:e}))}function $(e){return"children"in e}function z(e){return e.properties&&(e.properties=O(e.properties)),$(e)&&(e.children=e.children?.map((e=>z(e)))),e}function N(e){while(f(e)){const t=y(e);if(!t)break;e=t.value}return e}function H(e,t){const n=N(R(e,t));if(null===n||void 0===n)return"";if((0,g.xs)(n))return"(dynamic)";if("unit"===e.type)return(0,r.zG)(n,u.UQ.decode,(0,l.g_)((()=>n),(e=>e?.style)));if("font_family"===e.type){const e=p.configStore.fonts.find((e=>e.slug===n));return e?.label}return"color"===e.type?(0,r.zG)(n,d.Dz.decode,(0,l.g_)((()=>n),(e=>e.type))):n}function R(e,t){return G(t)?e.value:t?.value}function G(e){return!e||(null==e.value||void 0===e.value)}},49026:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(20144),s=n(2250),a=n(46368);o.ZP.use(s.Z);const i=new s.Z({theme:{options:{customProperties:!0},themes:{light:{primary:a.Z.blue600_light,blue:a.Z.blue600_light,anchor:a.Z.blue500_light,info:a.Z.blue500_light},dark:{primary:a.Z.blue600_dark,blue:a.Z.blue500_light,info:a.Z.blue500_light}}},icons:{iconfont:"mdiSvg"}})},86687:(e,t,n)=>{"use strict";n.d(t,{w:()=>he});var o=n(34676),s=n(27361),a=n.n(s),i=n(85450),r=n(71035),l=n(31381),c=n(62231),u=n(884),d=n(28684),p=n(92277),h=n(69137),g=n(16795),m=n(30902);function v(){he.register.onCreatedElement((({elementId:e,transactionKey:t})=>{const n=(0,l.findNode)(i.documentStore.document.tree,e);n&&(0,u.cG)(n)&&h.n.transaction((()=>{(0,d.t)(n.id)}),"Edit column size",t)})),he.register.onAfterDeletedElement((({parentIdOfDeletedElement:e,transactionKey:t})=>{const n=(0,l.findNode)(i.documentStore.document.tree,e);n&&(0,u._M)(n)&&h.n.transaction((()=>(0,d.t)(n)),"Edit column size",t)})),he.register.onMovedElement((({droppedOnElementId:e,previousParentId:t,transactionKey:n})=>{const o=(0,l.findNode)(i.documentStore.document.tree,e),s=(0,l.findNode)(i.documentStore.document.tree,t);s&&o&&!h.n.isPartOfExistingTransaction&&(!1===(0,u.Jt)(o)&&h.n.transaction((()=>(0,d.t)(o)),"Edit column size",n),!1===(0,u.Jt)(s)&&h.n.transaction((()=>(0,d.t)(s)),"Edit column size",n))})),he.register.onPropertyChange((({elementId:e,path:t,previousValue:n,value:o,transactionKey:s})=>{const a=i.documentStore.document.tree,r=(0,l.findNode)(a,e);if(!(0,u.cG)(r))return;const c=(0,l.getNodeIndex)(a,e),v=(0,l.getNodeParent)(a,e);!1!==c&&!1!==v&&(0,u._M)(v)&&(ne([u.cp],t)||Y([u.cp],o,n,t))&&h.n.transaction((()=>{const e=(0,m.pipe)(g.UQ.decode(o),(()=>o),(()=>o)),t=c===v.children.length-1?c-1:c+1,s=v,a=s.children[t],i=e&&"number"in e&&(parseFloat(String(e.number))>100||parseFloat(String(e.number))<0),r=null===e||void 0===e;if(i||r)return void(0,d.t)(s);const l=(0,u.IQ)(a)+(0,u.Sd)(n,e);l<1?(0,d.t)(s,c):((0,p.l)(a.id,l),(0,u.wr)(s))}),"Edit column size",s)}))}var f=n(88932),y=n(44821),b=n(93979),_=n(94550),I=n(2462),w=n(46118);function x(){(0,w.HO)(),he.register.onMountedElement((async({elementId:e})=>{const t=(0,l.findNode)(i.documentStore.document.tree,e);if(!t||t.data.type!==f.Uu&&t.data.type!==f.hO)return;const n=a()(t.data.properties,"content.content.block");if(n)return;const o=await(0,y.N)();let s=null;t.data.type===f.Uu?s=o.header:t.data.type===f.hO&&(s=o.footer),s&&(i.documentStore.unthrottledPropertyChanged({elementId:t.id,path:"content.content.block",value:s,meta:{snapshotLabel:"Auto-populated header/footer block ID"}}),I.i.getGeneratingBlockIds().includes(s)&&(0,I.$)(t.id))})),he.register.onMountedElement((({elementId:e})=>{if(!i.uiStore.isInlineEditing)return;const t=(0,l.findNode)(i.documentStore.document.tree,e);t&&t.data.type===_.SECTION_SLUG&&(0,o.forceNextTick)((()=>{const t=(0,b.Q)();t===e&&i.uiStore.activateElement(e)}))}))}var S=n(23128),C=n(86592),k=n(36300),P=n(13635),Z=n(20210),D=n(35941),E=n(54120),T=n(60719),A=n(76007),M=n(65913),V=n(20398),B=n(31839);function O(){$(),z(),N(),H(),L()}function L(){(0,V.f7)([_.TEXT_SLUG,_.HEADING_SLUG],{canActivate:!0,initialPanel:"text_editor",setPanelState:e=>{i.singularityStore.setTextEditorPanelState({elementId:e.id,contentEditablePropertyPath:"content.content.text"})}})}function $(){(0,V.f7)(_.IMAGE_SLUG,{canActivate:!0,initialPanel:"image_editor",setPanelState:e=>{i.singularityStore.setImageEditorPanelState({elementId:e.id,controlPath:"content.image.media",initialStep:"main"})}}),(0,V.f7)(_.GALLERY_SLUG,{canActivate:!0,initialPanel:"image_editor",setPanelState:e=>{i.singularityStore.setImageEditorPanelState({elementId:e.id,controlPath:"content.content.images[].image",selectedImageIndex:(0,B.c)()??0,initialStep:"main"})}})}function z(){const e={canActivate:!0,initialPanel:"none",setPanelState:()=>{if(i.uiStore.inlineEditingContext?.elementId){const e=(0,l.findNode)(i.documentStore.document.tree,i.uiStore.inlineEditingContext.elementId);if(e){const t=e.data.type===f.Uu?"header":"footer";i.singularityStore.setHeaderAndFooterEditorPanelState({elementId:e.id,elementType:t})}}else i.singularityStore.setSingularityLeftPanel("page_structure")}};(0,V.f7)(_.SECTION_SLUG,e),(0,V.f7)(_.HEADER_BUILDER_SLUG,e),(0,V.f7)(_.COLUMNS_SLUG,V.IJ),(0,V.f7)(_.COLUMN_SLUG,V.IJ),(0,V.f7)(_.DIV_SLUG,V.IJ),(0,V.f7)(_.GRID_SLUG,V.IJ),(0,V.f7)(_.ADVANCED_SLIDER_SLUG,V.IJ),(0,V.f7)(_.ADVANCED_SLIDE_SLUG,V.IJ),(0,V.f7)(_.WRAPPER_LINK_SLUG,V.IJ)}function N(){(0,V.f7)(_.ICON_SLUG,{canActivate:!0,initialPanel:"icon_editor",setPanelState:e=>{i.singularityStore.setIconEditorPanelState({iconId:e.id})}})}function H(){(0,V.f7)(_.WP_MENU_SLUG,{canActivate:!0,initialPanel:"page_manager",setPanelState:()=>{i.singularityStore.setSingularityLeftPanel("page_manager")}}),(0,V.f7)(f.X1,{canActivate:!0,initialPanel:"brand",setPanelState:()=>{i.singularityStore.setSingularityBrandPanelState({openedPanel:"logo"})}})}var R=n(47354);function G(){O(),he.register.onActivatedElement((({elementId:e})=>{if(!(0,R.o8)())return;const t=(0,l.findNode)(i.documentStore.document.tree,e);if(!t)return;const n=(0,V.Dn)(t?.data.type);F(n.initialPanel),n.setPanelState(t)}))}function F(e){"none"!==e&&i.singularityStore.setSingularityLeftPanel(e)}var U=n(87950);function W(){he.register.onActivatedElement((async({elementId:e})=>{if(!i.uiStore.inlineEditingContext?.elementId)return;const t=i.uiStore.inlineEditingContext.elementId;if(e===t)return;const n=(0,l.findNode)(i.documentStore.document.tree,e),o=(0,l.findNode)(i.documentStore.document.tree,t);if(!n||!o)return;let s=n,a=!1;while(s){const e=(0,l.findNodeParent)(i.documentStore.document.tree,s);if(!e)break;if(e.id===t){a=!0;break}s=e}a||await(0,U.Uw)()}))}var j=n(42665),X=n(23062);function q(){he.register.onBeforeDeletingElement((({elementId:e})=>{const t=(0,l.findNode)(i.documentStore.document.tree,e);t&&t.data.type===_.SECTION_SLUG&&(j.P.cancelJobsMatching({jobType:"section_rewrite",elementId:e}),j.P.cancelJobsMatching({jobType:"section_image_replacement",elementId:e}))})),X.P.register.onBeforeClosingInlineEditor((({childrenIds:e})=>{e.forEach((e=>{j.P.cancelJobsMatching({elementId:e})}))}))}function K(){(0,A.f)(),(0,T.mY)(),(0,M.Rx)(),v(),W(),x(),G(),q(),se(),ae(),ie(),re(),le(),ce(),ue()}function Y(e,t,n,o){return!!e?.find((e=>{const s=e.replace(o.endsWith(".")?o:`${o}.`,""),i=a()(t,s),r=a()(n,s);return!(!i&&!r)&&!(0,D.v)(i,r)}))}function J(e){const t=[];return Object.values(i.configStore.elements).forEach((n=>{if(n){let o=[];if(n.actions){const t=(0,S.Z)(n.actions[e]);t&&(o=[...t])}if(i.configStore.elementsExternalAttrsDepsAndActions.actions){const t=i.configStore.elementsExternalAttrsDepsAndActions.actions[e];t&&(o=[...o,...t])}o.forEach((e=>{let o=!1;t.forEach(((s,a)=>{(0,D.v)(s.actionData,e)&&(t[a]={actionData:s.actionData,elements:[...s.elements,n.slug]},o=!0)})),o||t.push({actionData:e,elements:[n.slug]})}))}})),t}function Q(e,t){const n=J(e);for(const o of n){const n=o.actionData.script;if(!n)continue;const s=async t=>{const o="elementId"in t&&t.elementId,s="parentIdOfDeletedElement"in t&&t.parentIdOfDeletedElement,a=o&&(0,l.findNode)(i.documentStore.document.tree,o),u=s&&(0,l.findNode)(i.documentStore.document.tree,s),d=a?(0,E.qd)(a):{},p={...a&&a?.data.properties||{},design:d},h={};o&&(h["id"]=o),s&&(h["parentId"]=s),a&&(h["selector"]=`.${(0,Z.P0)(a,i.documentStore.document.documentMeta.id)}`),u&&(h["parent_selector"]=`.${(0,Z.P0)(u,i.documentStore.document.documentMeta.id)}`),a&&"onMountedElement"!==e&&await(0,r.W)((0,P.RY)(),a,h);const g=(0,C.yz)(n,p);if(!g)return;const m=(0,C.as)(g,h);(0,k.Oz)((0,P.RY)(),{tagIdArg:(0,c.X)(n),code:m,origin:`"${e}" for element with ID "${o}"`})};t(s,o)}}function ee(e,t,n){let o=!1;if(e.actionData.runForAllChildren&&n&&((0,l.parentNodesReduce)((t=>(e.elements.includes(t.data.type)&&(o=!0),[])),i.documentStore.document.tree,n,[]),o))return!0;const s=t&&e.elements.includes(t);return s||o}function te(e,t,n,o){const s=e.actionData.dependencies;return!!ee(e,n,o)&&ne(s,t)}function ne(e,t){return!(e&&e.length&&t)||e.some((e=>e.startsWith(t)||t.startsWith(e)))}function oe(e){return!!e&&"hide"===e?.data?.properties?.settings?.conditions?.builder_preview}function se(){Q("onPropertyChange",((e,t)=>{he.register.onPropertyChange((n=>{const o=(0,l.findNode)(i.documentStore.document.tree,n.elementId);if(oe(o))return;if(!ee(t,o?.data.type,o))return;const s=t.actionData.dependencies;(ne(s,n.path)||Y(s,n.value,n.previousValue,n.path))&&e(n)}))}))}function ae(){Q("onAfterDeletedElement",((e,t)=>{he.register.onAfterDeletedElement((n=>{const o=(0,l.findNode)(i.documentStore.document.tree,n.parentIdOfDeletedElement);te(t,o?.data.type,n.deletedElementNodeType,o)&&e(n)}))}))}function ie(){Q("onMovedElement",((e,t)=>{he.register.onMovedElement((n=>{const o=(0,l.findNode)(i.documentStore.document.tree,n.droppedOnElementId),s=(0,l.findNode)(i.documentStore.document.tree,n.elementId);te(t,o?.data.type,s?.data.type,s)&&e(n)}))}))}function re(){Q("onMountedElement",((e,t)=>{he.register.onMountedElement((n=>{const o=(0,l.findNode)(i.documentStore.document.tree,n.elementId);oe(o)||te(t,void 0,o?.data.type,o)&&e(n)}))}))}function le(){Q("onCreatedElement",((e,t)=>{he.register.onCreatedElement((n=>{const o=(0,l.findNode)(i.documentStore.document.tree,n.elementId);te(t,void 0,o?.data.type,o)&&e(n)}))}))}function ce(){Q("onBeforeDeletingElement",((e,t)=>{he.register.onBeforeDeletingElement((n=>{const o=(0,l.findNode)(i.documentStore.document.tree,n.elementId);te(t,void 0,o?.data.type,o)&&e(n)}))}))}function ue(){Q("onActivatedElement",((e,t)=>{he.register.onActivatedElement((n=>{const o=(0,l.findNode)(i.documentStore.document.tree,n.elementId);oe(o)||te(t,void 0,o?.data.type,o)&&e(n)}))}))}const de={onAfterDeletedElement:[],immediateOnAfterDeletedElement:[],onPropertyChange:[],immediateOnPropertyChange:[],onMovedElement:[],immediateOnMovedElement:[],onMountedElement:[],immediateOnMountedElement:[],onCreatedElement:[],immediateOnCreatedElement:[],onBeforeDeletingElement:[],onActivatedElement:[]};class pe{constructor(){this.callbacks=(0,S.Z)(de),this.resetAllCallbacks=()=>{this.callbacks=(0,S.Z)(de)},this.registerAllStoreActions=()=>{this.resetAllCallbacks(),K()},this.run={onAfterDeletedElement:e=>{this.callbacks.immediateOnAfterDeletedElement.forEach((t=>t({...e}))),(0,o.forceNextTick)((()=>{this.callbacks.onAfterDeletedElement.forEach((t=>t({...e})))}))},onBeforeDeletingElement:({elementId:e})=>{this.callbacks.onBeforeDeletingElement.forEach((t=>t({elementId:e})))},onPropertyChange:e=>{this.callbacks.immediateOnPropertyChange.forEach((t=>t({...e}))),(0,o.forceNextTick)((()=>{this.callbacks.onPropertyChange.forEach((t=>t({...e})))}))},onMovedElement:e=>{this.callbacks.immediateOnMovedElement.forEach((t=>t({...e}))),(0,o.forceNextTick)((()=>{this.callbacks.onMovedElement.forEach((t=>t({...e})))}))},onMountedElement:({elementId:e})=>{this.callbacks.immediateOnMountedElement.forEach((t=>t({elementId:e}))),(0,o.forceNextTick)((()=>{this.callbacks.onMountedElement.forEach((t=>requestIdleCallback((()=>{t({elementId:e})}))))}))},onCreatedElement:e=>{this.callbacks.immediateOnCreatedElement.forEach((t=>t({...e}))),(0,o.forceNextTick)((()=>{this.callbacks.onCreatedElement.forEach((t=>t({...e})))}))},onActivatedElement:({elementId:e})=>{this.callbacks.onActivatedElement.forEach((t=>t({elementId:e})))}},this.register={onPropertyChange:e=>{this.callbacks.onPropertyChange.push(e)},immediateOnPropertyChange:e=>{this.callbacks.immediateOnPropertyChange.push(e)},onAfterDeletedElement:e=>{this.callbacks.onAfterDeletedElement.push(e)},immediateOnAfterDeletedElement:e=>{this.callbacks.immediateOnAfterDeletedElement.push(e)},onMovedElement:e=>{this.callbacks.onMovedElement.push(e)},immediateOnMovedElement:e=>{this.callbacks.immediateOnMovedElement.push(e)},onMountedElement:e=>{this.callbacks.onMountedElement.push(e)},immediateOnMountedElement:e=>{this.callbacks.immediateOnMountedElement.push(e)},onCreatedElement:e=>{this.callbacks.onCreatedElement.push(e)},immediateOnCreatedElement:e=>{this.callbacks.immediateOnCreatedElement.push(e)},onBeforeDeletingElement:e=>{this.callbacks.onBeforeDeletingElement.push(e)},onActivatedElement:e=>{this.callbacks.onActivatedElement.push(e)}}}unregister(e,t){const n=this.callbacks[e].findIndex((e=>e===t));-1!==n&&this.callbacks[e].splice(n,1)}}const he=new pe},92361:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x,r:()=>I});var o=n(27361),s=n.n(o),a=n(18446),i=n.n(a),r=n(70655),l=n(65546),c=n(15413),u=n(29028),d=n(86042),p=n(30902),h=n(45974),g=n(23128),m=n(69137),v=n(47179),f=n(95005),y=n(97705),b=n(45335),_=n(79298);const I={globalColors:"settings.colors.palette.colors",globalGradients:"settings.colors.palette.gradients",typographyPresets:"settings.typography.global_typography.typography_presets",globalVariables:"settings.local_variables",globalButtons:"settings.buttons",buttonPresets:"settings.buttons.button_presets.button_presets"};l.vc.rawError=!0;let w=class extends l.g4{constructor(){super(...arguments),this.globalSettings={},this.untouchedGlobalSettings={},this.cssSelectors=[],this.untouchedCssSelectors=[],this.variables=[],this.untouchedVariables=[],this.variablesCollections=[],this.presets=[],this.untouchedPresets=[],this.oxySelectors=[],this.untouchedOxySelectors=[],this.oxySelectorsCollections=[],this.untouchedAiSettings=(0,b.kq)(),this.aiSettings=(0,b.kq)()}get globalProperties(){return{...this.globalSettings,variables:this.variables,builderPrefix:(0,_.JZ)()}}get globalColors(){const e=s()(this.globalSettings,I.globalColors);return(0,p.pipe)(e,d.f8.decode,(0,h.fold)((()=>[]),(e=>e)))}get globalGradients(){const e=s()(this.globalSettings,I.globalGradients);return(0,p.pipe)(e,d.f8.decode,(0,h.fold)((()=>[]),(e=>e)))}get settingsHasUnsavedChangesPresent(){return!i()((0,g.Z)(this.untouchedGlobalSettings),(0,g.Z)(this.globalSettings))}get selectorsHasUnsavedChangesPresent(){return!i()((0,g.Z)(this.untouchedCssSelectors),(0,g.Z)(this.cssSelectors))}get variablesHasUnsavedChangesPresent(){return!i()((0,g.Z)(this.untouchedVariables),(0,g.Z)(this.variables))}get presetsHasUnsavedChangesPresent(){return!i()((0,g.Z)(this.untouchedPresets),(0,g.Z)(this.presets))}get oxySelectorsHasUnsavedChangesPresent(){return!i()((0,g.Z)(this.untouchedOxySelectors),(0,g.Z)(this.oxySelectors))}get aiSettingsHasUnsavedChangesPresent(){return!i()((0,g.Z)(this.untouchedAiSettings),(0,g.Z)(this.aiSettings))}setGlobalColors(e){this.throttledGlobalSettingsPropertyChange({path:I.globalColors,value:e,meta:{snapshotLabel:"Change Global Colors"}})}addGlobalColor(e){this.throttledGlobalSettingsPropertyChange({path:I.globalColors,value:[...(0,g.Z)(this.globalColors),e],meta:{snapshotLabel:"Add Global Color"}})}addGlobalGradient(e){this.throttledGlobalSettingsPropertyChange({path:I.globalGradients,value:[...(0,g.Z)(this.globalGradients),e],meta:{snapshotLabel:"Add Global Gradient"}})}updateGlobalSettingsPerPath(e){this.unthrottledGlobalSettingsPropertyChange({path:e.path,value:e.value,meta:{snapshotLabel:"Onboarding: Update Global Settings"}})}throttledSelectorPropertyChange(e){(0,u.O)(`${e.selector.name}${e.path}`,this.unthrottledSelectorPropertyChangeAction,e,"selectorSettings")}unthrottledSelectorPropertyChangeAction(e){m.n.transaction((()=>{this.unthrottledSelectorPropertyChange(e)}),e.meta.snapshotLabel,(0,v.e)(e,"SelectorProperty"))}unthrottledSelectorPropertyChange({selector:e,path:t,value:n}){(0,c.Z)(e,t,n)}throttledVariablePropertyChange(e){(0,u.O)(`${e.variable.cssVariableName}${e.path}`,this.unthrottledVariablePropertyChangeAction,e,"variableSettings")}throttledPresetPropertyChange(e){(0,u.O)(`${e.preset.id}${e.path}`,this.unthrottledPresetPropertyChangeAction,e,"presetSettings")}unthrottledVariablePropertyChangeAction(e){m.n.transaction((()=>{this.unthrottledVariablePropertyChange(e)}),e.meta.snapshotLabel,(0,v.e)(e,"VariableProperty"))}unthrottledPresetPropertyChangeAction(e){m.n.transaction((()=>{this.unthrottledPresetPropertyChange(e)}),e.meta.snapshotLabel,(0,v.e)(e,"PresetProperty"))}unthrottledVariablePropertyChange({variable:e,path:t,value:n}){(0,c.Z)(e,t,n)}unthrottledPresetPropertyChange({preset:e,path:t,value:n}){(0,c.Z)(e,t,n)}throttledGlobalSettingsPropertyChange({path:e,value:t,meta:n}){(0,u.O)(e,this.unthrottledGlobalSettingsPropertyChangeAction,{path:e,value:t,meta:n},"globalSettings")}unthrottledGlobalSettingsPropertyChangeAction(e){m.n.transaction((()=>{this.unthrottledGlobalSettingsPropertyChange(e)}),e.meta.snapshotLabel,(0,v.e)(e,"GlobalSettings"))}unthrottledGlobalSettingsPropertyChange({path:e,value:t}){(0,c.Z)(this.globalSettings,e,t)}setGlobalSettings(e){if(e)if(!e||Array.isArray(e)&&0===e.length)(0,c.Z)(this,"globalSettings",{});else{const t=(0,f.qu)(this.globalSettings,e);(0,y.GX)(this.globalSettings,t)}}setAiSettings(e){this.aiSettings=e}restoreGlobalSettingsRevision(e){this.globalSettings=(0,g.Z)(e.globalSettings)}restoreSelectorsRevision(e){this.cssSelectors=(0,g.Z)(e.selectors)}restoreOxySelectorsRevision(e){this.oxySelectors=(0,g.Z)(e.oxySelectors)}restoreVariablesRevision(e){this.variables=(0,g.Z)(e.variables)}restorePresetsRevision(e){this.presets=(0,g.Z)(e.presets)}setSelectors(e){this.cssSelectors=e}setVariables(e){this.variables=e}setVariablesCollections(e){this.variablesCollections=e}setPresets(e){this.presets=e}setOxygenSelectors(e){this.oxySelectors=e}setOxygenSelectorsCollections(e){this.oxySelectorsCollections=e}get typographyPresets(){return s()(this.globalSettings,I.typographyPresets,[])}get buttonPresets(){return s()(this.globalSettings,I.buttonPresets,[])}markCurrentGlobalSettingsAsUntouched(){this.untouchedGlobalSettings=(0,g.Z)(this.globalSettings)}markCurrentSelectorsAsUntouched(){this.untouchedCssSelectors=(0,g.Z)(this.cssSelectors)}markCurrentVariablesAsUntouched(){this.untouchedVariables=(0,g.Z)(this.variables)}markCurrentPresetsAsUntouched(){this.untouchedPresets=(0,g.Z)(this.presets)}markCurrentOxySelectorsAsUntouched(){this.untouchedOxySelectors=(0,g.Z)(this.oxySelectors)}markCurrentAiSettingsAsUntouched(){this.untouchedAiSettings=(0,g.Z)(this.aiSettings)}};(0,r.gn)([l.aU],w.prototype,"setGlobalColors",null),(0,r.gn)([l.aU],w.prototype,"addGlobalColor",null),(0,r.gn)([l.aU],w.prototype,"addGlobalGradient",null),(0,r.gn)([l.aU],w.prototype,"updateGlobalSettingsPerPath",null),(0,r.gn)([l.aU],w.prototype,"throttledSelectorPropertyChange",null),(0,r.gn)([l.aU],w.prototype,"unthrottledSelectorPropertyChangeAction",null),(0,r.gn)([l.mm],w.prototype,"unthrottledSelectorPropertyChange",null),(0,r.gn)([l.aU],w.prototype,"throttledVariablePropertyChange",null),(0,r.gn)([l.aU],w.prototype,"throttledPresetPropertyChange",null),(0,r.gn)([l.mm],w.prototype,"unthrottledVariablePropertyChangeAction",null),(0,r.gn)([l.aU],w.prototype,"unthrottledPresetPropertyChangeAction",null),(0,r.gn)([l.mm],w.prototype,"unthrottledVariablePropertyChange",null),(0,r.gn)([l.mm],w.prototype,"unthrottledPresetPropertyChange",null),(0,r.gn)([l.aU],w.prototype,"throttledGlobalSettingsPropertyChange",null),(0,r.gn)([l.aU],w.prototype,"unthrottledGlobalSettingsPropertyChangeAction",null),(0,r.gn)([l.mm],w.prototype,"unthrottledGlobalSettingsPropertyChange",null),(0,r.gn)([l.mm],w.prototype,"setGlobalSettings",null),(0,r.gn)([l.mm],w.prototype,"setAiSettings",null),(0,r.gn)([l.mm],w.prototype,"restoreGlobalSettingsRevision",null),(0,r.gn)([l.mm],w.prototype,"restoreSelectorsRevision",null),(0,r.gn)([l.mm],w.prototype,"restoreOxySelectorsRevision",null),(0,r.gn)([l.mm],w.prototype,"restoreVariablesRevision",null),(0,r.gn)([l.mm],w.prototype,"restorePresetsRevision",null),(0,r.gn)([l.mm],w.prototype,"setSelectors",null),(0,r.gn)([l.mm],w.prototype,"setVariables",null),(0,r.gn)([l.mm],w.prototype,"setVariablesCollections",null),(0,r.gn)([l.mm],w.prototype,"setPresets",null),(0,r.gn)([l.mm],w.prototype,"setOxygenSelectors",null),(0,r.gn)([l.mm],w.prototype,"setOxygenSelectorsCollections",null),(0,r.gn)([l.mm],w.prototype,"markCurrentGlobalSettingsAsUntouched",null),(0,r.gn)([l.mm],w.prototype,"markCurrentSelectorsAsUntouched",null),(0,r.gn)([l.mm],w.prototype,"markCurrentVariablesAsUntouched",null),(0,r.gn)([l.mm],w.prototype,"markCurrentPresetsAsUntouched",null),(0,r.gn)([l.mm],w.prototype,"markCurrentOxySelectorsAsUntouched",null),(0,r.gn)([l.mm],w.prototype,"markCurrentAiSettingsAsUntouched",null),w=(0,r.gn)([(0,l.Yl)({name:"global",namespaced:!0})],w);const x=w},31044:(e,t,n)=>{"use strict";n.d(t,{Sr:()=>_e,PK:()=>me,Hb:()=>ve,cr:()=>ye,Iu:()=>xe,qz:()=>Se,Kx:()=>Ie,fz:()=>we,GD:()=>be,kD:()=>fe});var o=n(65546),s=n(70655);function a(e){const t={root:{uiIcon:!1,name:"Root",className:!1,slug:"root",category:"misc",badge:!1,htmlTag:{default:"doesnt matter",options:[],pathToControl:!1},template:"doesnt matter",attributes:!1,cssTemplate:"",defaultCss:"",defaultProperties:!1,defaultChildren:!1,controls:{contentSections:[],designSections:[],settingsSections:[]},dependencies:!1,actions:!1,nestingRule:{type:"root"},spacingBars:!1,dynamicPropertyPaths:!1,settings:!1,addPanelRules:{alwaysHide:!0},experimental:!1,availableIn:["oxygen","breakdance"],order:0,additionalClasses:!1,projectManagement:!1,propertyPathsToWhitelistInFlatProps:!1,propertyPathsToSsrElementWhenValueChanges:!1}};return{...e,...t}}var i=n(20144),r=n(23128),l=n(94550),c=n(85450),u=n(20918);o.vc.rawError=!0;let d=class extends o.g4{constructor(){super(...arguments),this.builderMode=null,this.subscriptionMode=null,this.neededData=null,this.environment=null,this.documentSpecificNeededUrls=null,this.invalidPostData=null,this.elements={},this.elementsLoadingState="loading",this.elementsExternalAttrsDepsAndActions={},this.dynamicFields=[],this.fonts=[],this.iconSets=[],this.templatePreview={previewableItems:!1,lastPreviewedItem:!1},this.previewedItem=null,this.selectorControls=[],this.classTemplate="",this.globalSettingsControlsAndTemplate={template:"",controls:[],propertyPathsToWhitelistInFlatProps:[]},this.availableDocuments=[],this.presetsForElements=[],this.globalBlocks=[],this.conditions=[],this.postTypes=[],this.builderElementCategories=[],this.twigMacros=[],this.twigMacrosHash=null,this.availableWordpressPlugins=[],this.leavingIframeOnPurpose=!1,this.isElementStudioPowerUser=!1,this.oxySelectorsControlsAndTemplate={template:"",propertyPathsToWhitelistInFlatProps:[]},this.variablesControlsAndTemplate={template:"",propertyPathsToWhitelistInFlatProps:[]},this.preferences={customFonts:[],customBreakpoints:[]},this.builtinBreakpoints=[],this.designLibrary={designProviders:[],globalSettingsLastImportedFromUrl:null,designPresetsLastImportedFromUrl:null,variablesLastImportedFromUrl:null,oxySelectorsLastImportedFromUrl:null,fullSiteLastImportedFromUrl:null,isGlobalSettingsEnabled:!0,isDesignPresetsEnabled:!0,isVariablesEnabled:!1,isOxySelectorsEnabled:!1,isPopupsEnabled:!0},this.availableMediaSizes=[],this.availablePermissions=[],this.permission=null,this.ai=null,this.interactions=null,this.dynamicDataCache={data:{},loading:!0},this.localDependenciesFiles=[],this.experiments=[]}get breakpointIds(){return this.breakpoints.map((e=>e.id))}get breakpoints(){return[...this.builtinBreakpoints,...this.preferences.customBreakpoints]}setElementStudioPowerUser(e){this.isElementStudioPowerUser=e}setSubscriptionMode(e){this.subscriptionMode=e}setBuilderMode(e){this.builderMode=e}setAi(e){this.ai=e}setInteractions(e){this.interactions=e}setLeavingIframeOnPurpose(e){this.leavingIframeOnPurpose=e}setGlobalBlocks(e){this.globalBlocks=e}setTwigMacros(e){this.twigMacros=e}setTwigMacrosHash(e){this.twigMacrosHash=e}setAvailableWordpressPlugins(e){this.availableWordpressPlugins=e}setDesignLibrary(e){this.designLibrary=e}setAvailablePermissions(e){this.availablePermissions=e}setAvailableMediaSizes(e){this.availableMediaSizes=e}setPermission(e){this.permission=e}setPreferences(e){this.preferences=e}setElementCategories(e){this.builderElementCategories=e}setPresetsForElements(e){this.presetsForElements=e}setBuiltinBreakpoints(e){this.builtinBreakpoints=e}setAvailableDocuments(e){this.availableDocuments=e}setSelectorControls(e){this.selectorControls=e}setClassTemplate(e){this.classTemplate=e}setOxySelectorsControlsAndTemplate(e){this.oxySelectorsControlsAndTemplate={template:e.template,propertyPathsToWhitelistInFlatProps:e.propertyPathsToWhitelistInFlatProps}}setVariablesControlsAndTemplate(e){this.variablesControlsAndTemplate={template:e.template,propertyPathsToWhitelistInFlatProps:e.propertyPathsToWhitelistInFlatProps}}loadTemplatePreviewData(e){this.setTemplatePreview(e);const t=e&&e.previewableItems;if(!this.previewedItem&&t&&t.length>0){let n=t[0];if(e&&e.lastPreviewedItem){const o=e.lastPreviewedItem,s=t.find((e=>e.url===o.url));s&&(n=s)}n&&this.setPreviewedItem(n)}}setTemplatePreview(e){this.templatePreview=(0,r.Z)(e)}get previewOnlyDynamicData(){return[(0,u.$M)(),(0,u.d0)(),(0,u.Yq)(),"breakdance_popup","breakdance_acf_block"].includes(c.documentStore.document.documentMeta.postType)}get isExperimentEnabled(){return e=>this.experiments.includes(e)}setPreviewedItem(e){this.setPreviewedItemMutation(e),this.previewOnlyDynamicData?c.uiStore.forceUpdateEntireCanvas():e&&this.setIframeUrl(e.url)}setPreviewedItemMutation(e){this.previewedItem=e}setIframeUrl(e){this.documentSpecificNeededUrls&&e!==this.documentSpecificNeededUrls.iframeUrl&&(c.uiStore.setCanvasState("loading"),this.setLeavingIframeOnPurpose(!0),this.setIframeUrlMutation(e))}setIframeUrlMutation(e){this.documentSpecificNeededUrls&&(this.documentSpecificNeededUrls.iframeUrl=e)}setInvalidPostData(e){this.invalidPostData=e}get element(){const e=this.elements[l.MISSING_ELEMENT_SLUG];return t=>{const n=this.elements[t];return n||console.warn(`Element ${t} is missing.`),n??e}}setGlobalSettingsControlsAndTemplate(e){this.globalSettingsControlsAndTemplate=e}setEnvironment(e){this.environment=e}setElementsAndAppendRootElement(e){const t={};e.forEach((e=>{t[e.slug]=e})),this.setElementsMutation(a(t))}setElementsMutation(e){this.elements=e}setExperiments(e){this.experiments=e}addElements(e){e.forEach((e=>{i.ZP.set(this.elements,e.slug,e)}))}addNonExistentElementsNonReactively(e){e.forEach((e=>{e.slug in this.elements||(this.elements[e.slug]=e)}))}setElementsExternalAttrsDepsAndActions(e){this.elementsExternalAttrsDepsAndActions=e}updateElement(e){this.elements[e.slug]?this.elements[e.slug]=e:i.ZP.set(this.elements,e.slug,e)}deleteElement(e){i.ZP["delete"](this.elements,e)}setNeededUrls(e){this.neededData=e}setDocumentSpecificNeededUrls(e){this.documentSpecificNeededUrls=e}setDynamicFields(e){this.dynamicFields=e}setConditions(e){this.conditions=e}setPostTypes(e){this.postTypes=e}setFonts(e){this.fonts=e}setIconSets(e){this.iconSets=e}updateDynamicDataCache(e){this.dynamicDataCache={data:(0,r.Z)(e),loading:!1}}setNewDynamicDataCacheEntries(e){for(const[t,n]of Object.entries(e))i.ZP.set(this.dynamicDataCache.data,t,(0,r.Z)(n));this.dynamicDataCache.loading=!1}flushDynamicDataCache(){this.dynamicDataCache={data:{},loading:!0}}setLocalDependenciesFiles(e){this.localDependenciesFiles=e}setElementsLoadingState(e){this.elementsLoadingState=e}};(0,s.gn)([o.mm],d.prototype,"setElementStudioPowerUser",null),(0,s.gn)([o.mm],d.prototype,"setSubscriptionMode",null),(0,s.gn)([o.mm],d.prototype,"setBuilderMode",null),(0,s.gn)([o.mm],d.prototype,"setAi",null),(0,s.gn)([o.mm],d.prototype,"setInteractions",null),(0,s.gn)([o.mm],d.prototype,"setLeavingIframeOnPurpose",null),(0,s.gn)([o.mm],d.prototype,"setGlobalBlocks",null),(0,s.gn)([o.mm],d.prototype,"setTwigMacros",null),(0,s.gn)([o.mm],d.prototype,"setTwigMacrosHash",null),(0,s.gn)([o.mm],d.prototype,"setAvailableWordpressPlugins",null),(0,s.gn)([o.mm],d.prototype,"setDesignLibrary",null),(0,s.gn)([o.mm],d.prototype,"setAvailablePermissions",null),(0,s.gn)([o.mm],d.prototype,"setAvailableMediaSizes",null),(0,s.gn)([o.mm],d.prototype,"setPermission",null),(0,s.gn)([o.mm],d.prototype,"setPreferences",null),(0,s.gn)([o.mm],d.prototype,"setElementCategories",null),(0,s.gn)([o.mm],d.prototype,"setPresetsForElements",null),(0,s.gn)([o.mm],d.prototype,"setBuiltinBreakpoints",null),(0,s.gn)([o.mm],d.prototype,"setAvailableDocuments",null),(0,s.gn)([o.mm],d.prototype,"setSelectorControls",null),(0,s.gn)([o.mm],d.prototype,"setClassTemplate",null),(0,s.gn)([o.mm],d.prototype,"setOxySelectorsControlsAndTemplate",null),(0,s.gn)([o.mm],d.prototype,"setVariablesControlsAndTemplate",null),(0,s.gn)([o.aU],d.prototype,"loadTemplatePreviewData",null),(0,s.gn)([o.mm],d.prototype,"setTemplatePreview",null),(0,s.gn)([o.aU],d.prototype,"setPreviewedItem",null),(0,s.gn)([o.mm],d.prototype,"setPreviewedItemMutation",null),(0,s.gn)([o.aU],d.prototype,"setIframeUrl",null),(0,s.gn)([o.mm],d.prototype,"setIframeUrlMutation",null),(0,s.gn)([o.mm],d.prototype,"setInvalidPostData",null),(0,s.gn)([o.mm],d.prototype,"setGlobalSettingsControlsAndTemplate",null),(0,s.gn)([o.mm],d.prototype,"setEnvironment",null),(0,s.gn)([o.aU],d.prototype,"setElementsAndAppendRootElement",null),(0,s.gn)([o.mm],d.prototype,"setElementsMutation",null),(0,s.gn)([o.mm],d.prototype,"setExperiments",null),(0,s.gn)([o.mm],d.prototype,"addElements",null),(0,s.gn)([o.mm],d.prototype,"addNonExistentElementsNonReactively",null),(0,s.gn)([o.mm],d.prototype,"setElementsExternalAttrsDepsAndActions",null),(0,s.gn)([o.mm],d.prototype,"updateElement",null),(0,s.gn)([o.mm],d.prototype,"deleteElement",null),(0,s.gn)([o.mm],d.prototype,"setNeededUrls",null),(0,s.gn)([o.mm],d.prototype,"setDocumentSpecificNeededUrls",null),(0,s.gn)([o.mm],d.prototype,"setDynamicFields",null),(0,s.gn)([o.mm],d.prototype,"setConditions",null),(0,s.gn)([o.mm],d.prototype,"setPostTypes",null),(0,s.gn)([o.mm],d.prototype,"setFonts",null),(0,s.gn)([o.mm],d.prototype,"setIconSets",null),(0,s.gn)([o.mm],d.prototype,"updateDynamicDataCache",null),(0,s.gn)([o.mm],d.prototype,"setNewDynamicDataCacheEntries",null),(0,s.gn)([o.mm],d.prototype,"flushDynamicDataCache",null),(0,s.gn)([o.mm],d.prototype,"setLocalDependenciesFiles",null),(0,s.gn)([o.mm],d.prototype,"setElementsLoadingState",null),d=(0,s.gn)([(0,o.Yl)({name:"config",namespaced:!0})],d);const p=d;var h=n(15413),g=n(86687),m=n(27361),v=n.n(m),f=n(69137),y=n(31381),b=n(9221),_=n(9950),I=n(39664),w=n(95690),x=n(29028),S=n(25886),C=n(47179),k=n(84274),P=n(30902),Z=n(45974),D=n(34676),E=n(95005),T=n(97705),A=n(47431);o.vc.rawError=!0;let M=class extends o.g4{constructor(){super(...arguments),this.document=(0,r.Z)(S.zk)}duplicateElementAndActivateIt(e){const t=(0,y.findNode)(this.document.tree,e)?.data.type,n=`DocumentDuplicateElement:Slug:${t}`;f.n.transaction((()=>{const t={nodeId:void 0};this.duplicateElement({elementId:e,pointer:t}),void 0!==t.nodeId&&(c.uiStore.activateElement(t.nodeId),g.w.run.onCreatedElement({elementId:t.nodeId,transactionKey:n}))}),`Duplicate ${(0,k.JC)(t)}`,n)}deleteElement({nodeId:e}){const t=(0,y.getNodeParent)(this.document.tree,e),n=(0,y.findNode)(this.document.tree,e);if(!n)return;const o=(0,y.getIdsFromNodeAndDescendants)(n);o.forEach((e=>g.w.run.onBeforeDeletingElement({elementId:e}))),(0,D.forceNextTick)((()=>{!1!==t&&c.uiStore.activateElement(t.id);const o=`DocumentDeleteElement:ID:${e}`;f.n.transaction((()=>{this.deleteElementMutation(e)}),`Delete ${(0,k.JC)(n?.data.type)}`,o)}))}addElement({elementSlug:e,addToNodeId:t,placeToAdd:n}){const o=`DocumentAddElement:Slug:${e}`;(0,A.K)("Element Added",{elementSlug:e,elementSettings:c.configStore.element(e).settings}),f.n.transaction((()=>{const s={nodeId:void 0},a=t||c.uiStore.activeElementId||c.uiStore.inlineEditingContext?.elementId||null,i=n||(0,_.Z)(this.document.tree,a,{self:(0,_.V9)(e),children:[]});(0,P.pipe)(i,(0,Z.fold)((t=>{if("NONE"==t&&I.Z.log.message("cant add a "+e),"NOT_ALLOWED_BECAUSE_OF_OTHER_NODES"==t){const t=(0,_.V9)(e).notAllowedWhenNodeTypeIsPresentInTree||[],n=c.configStore.element(e).name,o=t.map((e=>c.configStore.element(e).name)),s=(0,y.areNodeTypesPresentInTree)(this.document.tree,[e]);if(s)I.Z.log.message(`You can't add more than one ${n}.`);else{const e=1===o.length?o[0]:`${o.slice(0,-1).join(", ")} or ${o.slice(-1)}`;I.Z.log.message(`You can't add "${n}" on the same page as ${e}.`)}}}),(t=>{"TOP_LEVEL"===t?(this.addElementMutation({elementSlug:(0,_.zV)(),parentNodeId:(0,_.TO)(this.document.tree),index:!1,pointer:s}),void 0!==s.nodeId&&this.addElementMutation({elementSlug:e,parentNodeId:s.nodeId,index:!1,pointer:s})):this.addElementMutation({elementSlug:e,parentNodeId:t.place.id,index:t.index,pointer:s}),void 0!==s.nodeId&&(c.uiStore.activateElement(s.nodeId),(0,w.oM)("elementproperties"),g.w.run.onCreatedElement({elementId:s.nodeId,transactionKey:o}))})))}),`Add ${(0,k.JC)(e)}`,o)}pasteCopiedElementMutation({element:e,placeToAddId:t,placeToAddIndex:n,pointer:o}){const s=(0,y.copyNode)(this.document.tree,e);(0,y.moveNode)(this.document.tree,s.id,t,n),o&&(o.nodeId=s.id)}replaceCurrentElementWithCopiedElement({targetElementId:e,replacementElement:t,pointer:n}){const o=(0,y.findNode)(this.document.tree,e);if(!o)return;const s=(0,y.getNodeParent)(this.document.tree,e);if(!s)return;const a=(0,y.getNodeIndex)(this.document.tree,e);if(!1===a)return;const i=(0,y.copyNode)(this.document.tree,t);(0,y.deleteNode)(this.document.tree,e),(0,y.moveNode)(this.document.tree,i.id,s.id,a),n&&(n.nodeId=i.id)}addMultipleNodes({nodes:e,parentId:t}){const n=e.map((e=>(0,_.xJ)(this.document.tree,e,t))).every((e=>!0===e)),o=(0,y.findNode)(this.document.tree,t);if(o&&n){const n=!!c.uiStore.activeElement&&(0,_.iq)(this.document.tree,o,c.uiStore.activeElement);this.addMultipleNodesMutation({nodes:e,parentId:t,index:!1===n?o.children.length:n})}else console.log("error in addNodesFromLibrary - one of the nodes is not allowed in the tree root / has a descendant that isnt allowed to be a descendant of tree root.",e)}addMultipleNodesMutation({nodes:e,parentId:t,index:n}){e.forEach((e=>{const o=(0,y.copyNode)(this.document.tree,e);(0,y.moveNode)(this.document.tree,o.id,t,n),n++}))}throttledPropertyChanged({elementId:e,path:t,value:n,meta:o}){(0,x.O)(`${e} - ${t}`,this.unthrottledPropertyChanged,{elementId:e,path:t,value:n,meta:o},"elements")}unthrottledPropertyChanged({elementId:e,path:t,value:n,meta:o}){const s=(0,y.findNode)(this.document.tree,e);if(!s)return;const a=(0,r.Z)(v()(s.data.properties,t)),i=(0,C.e)({path:t,value:n,meta:o},`DocumentProperty:ID:${e}`);f.n.transaction((()=>{this.propertyChangedMutation({elementId:e,path:t,value:(0,r.Z)(n),meta:o}),c.uiStore.setLastModifiedElementProperty({elementId:e,path:t}),g.w.run.onPropertyChange({elementId:e,path:t,value:(0,r.Z)(n),previousValue:a,transactionKey:i})}),o.snapshotLabel,i)}moveElement({draggedElementId:e,droppedOnElementId:t,index:n,wrapWithTransaction:o=!0}){const s=(0,y.getNodeParent)(this.document.tree,e),a=(0,y.findNode)(this.document.tree,e),i=(0,y.getNodeIndex)(this.document.tree,e);if(!a)return!1;if(s&&t===s.id&&i===n)return!1;const r=!(0,_.xJ)(this.document.tree,a,t);if(r)return I.Z.log.message(`The element ${a.data.type} can't be moved inside element with ID ${t}`),!1;const l=o=>{this.moveElementMutation({draggedElementId:e,droppedOnElementId:t,index:n}),s&&g.w.run.onMovedElement({elementId:e,droppedOnElementId:t,index:n,previousParentId:s.id,transactionKey:o})};if(o){const e=`DocumentMoveElementElement:ID:${a.id}`;f.n.transaction((()=>l(e)),`Move ${(0,k.JC)(a.data.type)}`,e)}else l();return!0}wrapElement({elementId:e,wrapperElementSlug:t}){const n=`DocumentWrapElement:Slug:${t}`,o=(0,y.getNodeParent)(c.documentStore.document.tree,e),s=(0,y.getNodeIndex)(c.documentStore.document.tree,e),a=(0,y.findNode)(c.documentStore.document.tree,e),i=c.configStore.element(t);f.n.transaction((()=>{if(!o||!1===s||!a)return;const n=(0,b.d)(c.documentStore.document.tree,{type:t,properties:i.defaultProperties?(0,r.Z)(i.defaultProperties):null}),l=!(0,_.xJ)(c.documentStore.document.tree,n,o.id),u=!(0,_.xJ)(c.documentStore.document.tree,a,n.id);return l?(I.Z.log.message(`The element ${c.configStore.element(n.data.type).name} can't be added inside element ${c.configStore.element(o.data.type).name}`),void(0,y.deleteNode)(c.documentStore.document.tree,n.id)):u?(I.Z.log.message(`The element ${c.configStore.element(a.data.type).name} can't be added inside element ${c.configStore.element(n.data.type).name}`),void(0,y.deleteNode)(c.documentStore.document.tree,n.id)):((0,y.moveNode)(c.documentStore.document.tree,n.id,o.id,s),(0,y.moveNode)(c.documentStore.document.tree,e,n.id,0),void c.uiStore.activateElement(n.id))}),`Wrap in ${(0,k.JC)(t)}`,n)}setDocument({tree:e,documentMeta:t}){if(!1===e)this.document.tree=(0,y.getBlankTree)();else if(this.document.documentMeta.id===S.VY)this.document.tree={root:e.root,_nextNodeId:e._nextNodeId,_lookupTable:{},status:"valid"},(0,y.recalculateParentIdsAndLookupTable)(this.document.tree);else{const t={root:e.root,_nextNodeId:e._nextNodeId,_lookupTable:{},status:"valid"};this.document.tree._lookupTable={};const n=(0,E.qu)(this.document.tree,t);(0,T.GX)(this.document.tree,n)}(0,y.recalculateParentIdsAndLookupTable)(this.document.tree),(0,T.GX)(this.document.documentMeta,(0,E.qu)(this.document.documentMeta,t))}setDocumentMeta(e){(0,T.GX)(this.document.documentMeta,(0,E.qu)(this.document.documentMeta,e))}duplicateElement({elementId:e,pointer:t}){const n=(0,y.duplicateNode)(this.document.tree,e);t&&(t.nodeId=n?.id)}deleteElementMutation(e){(0,y.deleteNode)(this.document.tree,e)}addElementMutation({elementSlug:e,parentNodeId:t,index:n,pointer:o}){const s=c.configStore.element(e),a=(0,b.d)(this.document.tree,{type:e,properties:s.defaultProperties?(0,r.Z)(s.defaultProperties):null}),i=(0,y.findNode)(this.document.tree,t);i&&((0,y.moveNode)(this.document.tree,a.id,i.id,!1===n?i.children.length:n),(0,y.createNodesFromSlugListAndPlace)(this.document.tree,s.defaultChildren,a.id),o&&(o.nodeId=a.id))}propertyChangedMutation({elementId:e,path:t,value:n}){const o=(0,y.findNode)(this.document.tree,e);o&&(0,h.Z)(o,`data.properties.${t}`,n)}get getPropertyValue(){return(e,t)=>{const n=(0,y.findNode)(this.document.tree,e);if(n)return v()(n,`data.properties.${t}`)}}moveElementMutation({draggedElementId:e,droppedOnElementId:t,index:n}){(0,y.moveNode)(this.document.tree,e,t,n)}loadRevision(e){this.document.tree=(0,y.createTreeFromExportedTree)((0,r.Z)(e.tree))}setNoDocument(){this.document=(0,r.Z)(S.zk)}};(0,s.gn)([o.aU],M.prototype,"duplicateElementAndActivateIt",null),(0,s.gn)([o.aU],M.prototype,"deleteElement",null),(0,s.gn)([o.aU],M.prototype,"addElement",null),(0,s.gn)([o.mm],M.prototype,"pasteCopiedElementMutation",null),(0,s.gn)([o.mm],M.prototype,"replaceCurrentElementWithCopiedElement",null),(0,s.gn)([o.aU],M.prototype,"addMultipleNodes",null),(0,s.gn)([o.mm],M.prototype,"addMultipleNodesMutation",null),(0,s.gn)([o.aU],M.prototype,"throttledPropertyChanged",null),(0,s.gn)([o.aU],M.prototype,"unthrottledPropertyChanged",null),(0,s.gn)([o.aU],M.prototype,"moveElement",null),(0,s.gn)([o.aU],M.prototype,"wrapElement",null),(0,s.gn)([o.mm],M.prototype,"setDocument",null),(0,s.gn)([o.mm],M.prototype,"setDocumentMeta",null),(0,s.gn)([o.mm],M.prototype,"duplicateElement",null),(0,s.gn)([o.mm],M.prototype,"deleteElementMutation",null),(0,s.gn)([o.mm],M.prototype,"addElementMutation",null),(0,s.gn)([o.mm],M.prototype,"propertyChangedMutation",null),(0,s.gn)([o.mm],M.prototype,"moveElementMutation",null),(0,s.gn)([o.mm],M.prototype,"loadRevision",null),(0,s.gn)([o.mm],M.prototype,"setNoDocument",null),M=(0,s.gn)([(0,o.Yl)({name:"document",namespaced:!0})],M);const V=M;var B=n(92361),O=n(16631);const L=new Map;let $=0;function z(e){return{id:++$,key:e.key,title:e.title}}function N(e,t){return(0,E.qu)(e||{},t)}function H(e,t){const n=t[e]?.id;if(!n)return;const o={};return t.forEach(((t,n)=>{if(n<=e){const e=(0,r.Z)(L.get(t.id));e&&(0,O.af)(o,e)}})),o}o.vc.rawError=!0;let R=class extends o.g4{constructor(){super(...arguments),this.index=-1,this.snapshots=[]}get canUndo(){return this.index>0}get canRedo(){return-1!==this.index&&this.index+1=e?L.delete(o.id):t.push(o);this.snapshots=t}get currentSnapshotInfo(){return this.snapshots[this.index]}get currentSnapshot(){return H(this.index,this.snapshots)}getSnapshotDataForIndex(e){return H(e,this.snapshots)}};(0,s.gn)([o.mm],R.prototype,"clear",null),(0,s.gn)([o.aU],R.prototype,"undoIndex",null),(0,s.gn)([o.aU],R.prototype,"redoIndex",null),(0,s.gn)([o.aU],R.prototype,"takeBuilderSnapshot",null),(0,s.gn)([o.aU],R.prototype,"takeBrowseModeSnapshot",null),(0,s.gn)([o.mm],R.prototype,"setCurrentSnapshotIndex",null),(0,s.gn)([o.mm],R.prototype,"snapshotMutation",null),(0,s.gn)([o.mm],R.prototype,"overrideLastSnapshotMutation",null),(0,s.gn)([o.mm],R.prototype,"rewriteHistoryFromIndex",null),(0,s.gn)([o.mm],R.prototype,"getSnapshotDataForIndex",null),R=(0,s.gn)([(0,o.Yl)({name:"snapshot",namespaced:!0})],R);const G=R;var F=n(89381);o.vc.rawError=!0;let U=class extends o.g4{constructor(){super(...arguments),this.iframeUrl=null,this.iframeState="loading",this.iframeDocumentTitle=null,this.iframeWindowUrl=null,this.backToAdminUrl=null}get iframeDocumentTitleToDisplay(){return this.iframeDocumentTitle||this.iframeUrlToDisplay}get iframeUrlToDisplay(){const e=this.iframeWindowUrl||this.iframeUrl;return null===e?null:(0,F.wV)(e)}setIframeState(e){this.iframeState=e}setIframeDocumentTitle(e){this.iframeDocumentTitle=e}setIframeUrl(e){this.iframeUrl=e}setIframeWindowUrl(e){this.iframeWindowUrl=e}setBackToAdminUrl(e){this.backToAdminUrl=e}};(0,s.gn)([o.mm],U.prototype,"setIframeState",null),(0,s.gn)([o.mm],U.prototype,"setIframeDocumentTitle",null),(0,s.gn)([o.mm],U.prototype,"setIframeUrl",null),(0,s.gn)([o.mm],U.prototype,"setIframeWindowUrl",null),(0,s.gn)([o.mm],U.prototype,"setBackToAdminUrl",null),U=(0,s.gn)([(0,o.Yl)({name:"browseMode",namespaced:!0})],U);const W=U;var j=n(36968),X=n.n(j),q=n(57088),K=n(33356),Y=n(59760);const J=["presets"],Q=[];function ee(e,t){if(!t)return e;const n=(0,r.Z)(e);return"oxygen"===t&&(J.includes(e.leftSidebarPanel)&&(n.leftSidebarPanel="closed"),J.includes(e.rightSidebarPanel)&&(n.rightSidebarPanel="closed")),"breakdance"===t&&(Q.includes(e.leftSidebarPanel)&&(n.leftSidebarPanel="closed"),Q.includes(e.rightSidebarPanel)&&(n.rightSidebarPanel="closed")),n}var te=n(37220),ne=n(47354),oe=n(20398);o.vc.rawError=!0;let se=class extends o.g4{constructor(){super(...arguments),this.mode=null,this.canvasDragPlaceholderPosition=null,this.activeSelectorName="",this.activePresetId=null,this.activeElementId=null,this.builderBehaviorElementId=null,this.elementWithContentEditable=null,this.lastHoveredOnCanvasElementId=null,this.currentBreakpoint={id:q.Wp,label:"",minWidth:void 0,maxWidth:void 0,defaultPreviewWidth:q.kS},this.canvasPreviewWidth={width:"100%",availableCanvasSize:{width:0,height:0}},this.currentlyDraggingCanvasElementId=null,this.currentlyDraggingAddElementSlug=null,this.isDragMixinDragging=!1,this.isPreviewMode=!1,this.interfaceState="loading",this.canvasState="loading",this.unrecoverableErrorMessages=[],this.unsavedChangesPresent=!1,this.saveInProgress=!1,this.elementStudioClipboard={copiedControl:!1},this.consoleErrorsPresent=!1,this.onCanvasRightClickMenuState="closed",this.onStructurePanelRightClickMenuState="closed",this.panelState={leftSidebarPanel:"closed",rightSidebarPanel:"closed",preferencesModalOpen:!1,keyboardShortcutsHelpModalOpen:!1,designLibraryModalOpen:!1,elementStudioOpen:!1,accordionState:{elementProperties:{},selectors:{},presets:{},globalSettings:{},dynamicDataFieldAttributes:{}},elementPropertiesPanel:{},shouldLoadFreshDataIntoStoreOnceOpened:{globalSettings:!0,selectors:!0,variables:!0,presets:!0,ai:!0},globalSettingsPanelActiveViewMode:"controls",selectorsPanelPanelActiveViewMode:"controls",variablesPanelPanelActiveViewMode:"controls",presetsPanelActiveViewMode:"controls",oxyPanelIsMasked:!1},this.keyboardTriggeredActions={focusCodeMirror:null,openClassesDropdown:null},this.closingConfirmations={},this.readOnly=!1,this.notifications=[],this.isLoggedOut=!1,this.elementsThatAreUpdating={},this.idsOfPostsToRegenerateCache=null,this.lastModifiedElementProperty={elementId:null,path:null},this.refreshSsrElementId=null,this.inlineEditingContext=null,this.inlineEditingRect=null,this.settings=(0,Y.SU)(),this.structurePanelNodesExpandedState={},this.revisionsData={revisions:[],currentUnsavedRevision:null},this.canvasKey=1,this.canvasWrapperKey=1,this.dragMousePosition=null}get activeElementProperties(){return this.activeElementId?this.panelState.elementPropertiesPanel[this.activeElementId]:null}get activeOxySelector(){return this.activeElementId?c.globalStore.oxySelectors.find((e=>e.id===this.activeElementProperties?.oxySelector)):null}get activeOxyNestedSelector(){return this.activeElementId?this.activeOxySelector?.children?.find((e=>e.id===this.activeElementProperties?.oxyNestedSelector)):null}get isSingularityMode(){return"builder"===this.mode?.mode&&"singularity"===this.mode?.modifier}get isInlineEditing(){return null!==this.inlineEditingContext}get isElementBeingEditedInline(){return e=>this.inlineEditingContext?.elementId===e}forceUpdateEntireCanvas(){this.setCanvasKey(this.canvasKey+1)}setCanvasWrapperKey(e){this.canvasWrapperKey=e}setCanvasKey(e){this.canvasKey=e}setMode(e){this.mode=e}setKeyboardTriggeredActions(e){this.keyboardTriggeredActions=e}setOnCanvasRightClickMenuState(e){this.onCanvasRightClickMenuState=e}setOnStructurePanelRightClickMenuState(e){this.onStructurePanelRightClickMenuState=e}setNotifications(e){this.notifications=e}copyElementStudioControl(e){this.elementStudioClipboard={...this.elementStudioClipboard,copiedControl:e}}setUnsavedChangesPresent(e){this.unsavedChangesPresent=e}setSaveInProgress(e){this.saveInProgress=e}setPanelState(e){this.panelState=ee(e,c.configStore.builderMode)}logConsoleError(e){console.log(e),this.setConsoleErrorsPresentFlag(!0)}setConsoleErrorsPresentFlag(e){this.consoleErrorsPresent=e}setLeftSidebarState(e){const t=(0,r.Z)(this.panelState);return this.setPanelState({...t,leftSidebarPanel:e})}setRightSidebarState(e){const t=(0,r.Z)(this.panelState);return this.setPanelState({...t,rightSidebarPanel:e})}setDesignLibraryModalState(e){const t=(0,r.Z)(this.panelState);return this.setPanelState({...t,designLibraryModalOpen:e})}setCurrentElementOxySelector(e){if(!this.activeElementId)return;const t=(0,r.Z)(this.panelState);X()(t,`elementPropertiesPanel.${this.activeElementId}.oxySelector`,e),this.setPanelState(t)}setCurrentElementOxyNestedSelector(e){if(!this.activeElementId)return;const t=(0,r.Z)(this.panelState);X()(t,`elementPropertiesPanel.${this.activeElementId}.oxyNestedSelector`,e),this.setPanelState(t)}setCurrentElementTab(e){if(!this.activeElementId)return;const t=(0,r.Z)(this.panelState);X()(t,`elementPropertiesPanel.${this.activeElementId}.tab`,e),this.setPanelState(t)}setPreferencesModalOpen(e){this.panelState.preferencesModalOpen=e}setKeyboardShortcutHelpModalOpen(e){this.panelState.keyboardShortcutsHelpModalOpen=e}setShouldPanelLoadFreshDataIntoStoreOnceOpened(e,t){this.panelState.shouldLoadFreshDataIntoStoreOnceOpened[e]=t}toggleElementStudio(){this.panelState.elementStudioOpen=!this.panelState.elementStudioOpen}setInterfaceState(e){this.interfaceState=e}setCanvasState(e){this.canvasState=e}logError(e){this.unrecoverableErrorMessages.push(e)}setActiveSelectorName(e){this.activeSelectorName=e}setActivePresetId(e){this.activePresetId=e}setBuilderBehaviorElementId(e){this.builderBehaviorElementId=e}activateElement(e){let t=e;if(t&&(0,ne.o8)()){const e=(0,oe._5)(t);e||this.activateElementMutation(null),t=e}const n=this.builderBehaviorElementId&&t!==this.builderBehaviorElementId;n&&this.setBuilderBehaviorElementId(null),t===c.documentStore.document.tree.root.id||null===t?this.activateElementMutation(null):(this.activateElementMutation(t),g.w.run.onActivatedElement({elementId:t}),(0,K.es)())}setContentEditableElementId(e){this.contentEditableElementIdMutation(e)}selectNextBreakpoint(){const e=c.configStore.breakpoints.indexOf(this.currentBreakpoint);if(-1===e)return;const t=e+1e.id===q.Wp));e&&(this.changeBreakpointMutation(e),this.changePreviewWidthMutation({...this.canvasPreviewWidth,width:"100%"}))}changePreviewWidthWithAdjustmentBar(e){const t=[...c.configStore.builtinBreakpoints].reverse().find((t=>t.maxWidth&&t.maxWidth>=e));if(t)t.id!==this.currentBreakpoint.id&&this.changeBreakpointMutation(t);else{const e=c.configStore.builtinBreakpoints.find((e=>e.id===q.Wp));e&&e.id!==this.currentBreakpoint.id&&this.changeBreakpointMutation(e)}this.changePreviewWidthMutation({...this.canvasPreviewWidth,width:q.kS>e?q.kS:e})}setCanvasDragPlaceholderPosition(e){this.canvasDragPlaceholderPosition=e}setDragMousePosition(e){this.dragMousePosition=e}activateElementMutation(e){this.activeElementId=e}contentEditableElementIdMutation(e){this.elementWithContentEditable=e}setLastHoveredOnCanvasElementId(e){this.lastHoveredOnCanvasElementId=e}changeBreakpointMutation(e){this.currentBreakpoint=e}changePreviewWidthMutation(e){this.canvasPreviewWidth=e}setAddElementDraggedSlug(e){this.currentlyDraggingAddElementSlug=e}setCanvasElementDraggedId(e){this.currentlyDraggingCanvasElementId=e}endCanvasElementDrag(){this.currentlyDraggingCanvasElementId=null}setDragMixinDragging(e){this.isDragMixinDragging=e}setStructurePanelNodesExpandedState(e){this.structurePanelNodesExpandedState=(0,r.Z)(e)}get activeElement(){if(null===this.activeElementId)return!1;const e=(0,y.findNode)(c.documentStore.document.tree,this.activeElementId);return e||!1}get builderBehaviorActiveElement(){if(null===this.builderBehaviorElementId)return!1;const e=(0,y.findNode)(c.documentStore.document.tree,this.builderBehaviorElementId);return e||!1}get activeSelector(){if(!this.activeSelectorName)return!1;const e=c.globalStore.cssSelectors.find((e=>e.name===this.activeSelectorName));return e||!1}get activePreset(){if(!this.activePresetId)return null;const e=c.globalStore.presets.find((e=>e.id===this.activePresetId));return e||null}get isCanvasElementBeingDragged(){return null!==this.currentlyDraggingCanvasElementId}get isAddElementBeingDragged(){return null!==this.currentlyDraggingAddElementSlug}get hasFullAccess(){return"full"===c.configStore.permission?.slug}get inlineEditingElement(){if(!this.inlineEditingContext)return null;const e=(0,y.findNode)(c.documentStore.document.tree,this.inlineEditingContext.elementId);return e||null}get inlineEditingElementPropertyOverrides(){return this.inlineEditingElement?(0,te.Eh)(this.inlineEditingElement):[]}setLoggedOut(e){this.isLoggedOut=e}setElementUpdatingState(e){i.ZP.set(this.elementsThatAreUpdating,e.elementId,e.isUpdating)}setIdsOfPostsToRegenerateCache(e){this.idsOfPostsToRegenerateCache=e}requestClosingConfirmation({subject:e,confirmationDefinition:t}){const n={...t,show:!1,isSaving:!1,isDiscarding:!1};i.ZP.set(this.closingConfirmations,e,n)}chooseOptionForClosingConfirmation({subject:e,chosenOption:t}){this.closingConfirmations[e]&&(0,h.Z)(this.closingConfirmations,`${e}.chosenOption`,t)}showClosingConfirmation(e){this.closingConfirmations[e]&&(0,h.Z)(this.closingConfirmations,`${e}.show`,!0)}hideClosingConfirmation(e){this.closingConfirmations[e]&&(0,h.Z)(this.closingConfirmations,`${e}.show`,!1)}noClosingConfirmationIsNeededFor(e){(0,h.Z)(this.closingConfirmations,e,void 0)}setClosingConfirmationIsDiscarding({subject:e,isDiscarding:t}){this.closingConfirmations[e]&&(0,h.Z)(this.closingConfirmations,`${e}.isDiscarding`,t)}setClosingConfirmationIsSaving({subject:e,isSaving:t}){this.closingConfirmations[e]&&(0,h.Z)(this.closingConfirmations,`${e}.isSaving`,t)}setLastModifiedElementProperty({elementId:e,path:t}){this.lastModifiedElementProperty={elementId:e,path:t}}setRefreshSsrElementId(e){this.refreshSsrElementId=e}setSettings(e){this.settings=e}setRevisionsData(e){this.revisionsData=e}togglePreviewMode(){this.isPreviewMode=!this.isPreviewMode}closePreviewMode(){this.isPreviewMode=!1}setInlineEditingContext(e){this.inlineEditingContext=e}setInlineEditingRect(e){this.inlineEditingRect=e}};(0,s.gn)([o.aU],se.prototype,"forceUpdateEntireCanvas",null),(0,s.gn)([o.mm],se.prototype,"setCanvasWrapperKey",null),(0,s.gn)([o.mm],se.prototype,"setCanvasKey",null),(0,s.gn)([o.mm],se.prototype,"setMode",null),(0,s.gn)([o.mm],se.prototype,"setKeyboardTriggeredActions",null),(0,s.gn)([o.mm],se.prototype,"setOnCanvasRightClickMenuState",null),(0,s.gn)([o.mm],se.prototype,"setOnStructurePanelRightClickMenuState",null),(0,s.gn)([o.mm],se.prototype,"setNotifications",null),(0,s.gn)([o.mm],se.prototype,"copyElementStudioControl",null),(0,s.gn)([o.mm],se.prototype,"setUnsavedChangesPresent",null),(0,s.gn)([o.mm],se.prototype,"setSaveInProgress",null),(0,s.gn)([o.mm],se.prototype,"setPanelState",null),(0,s.gn)([o.aU],se.prototype,"logConsoleError",null),(0,s.gn)([o.mm],se.prototype,"setConsoleErrorsPresentFlag",null),(0,s.gn)([o.aU],se.prototype,"setLeftSidebarState",null),(0,s.gn)([o.aU],se.prototype,"setRightSidebarState",null),(0,s.gn)([o.aU],se.prototype,"setDesignLibraryModalState",null),(0,s.gn)([o.aU],se.prototype,"setCurrentElementOxySelector",null),(0,s.gn)([o.aU],se.prototype,"setCurrentElementOxyNestedSelector",null),(0,s.gn)([o.aU],se.prototype,"setCurrentElementTab",null),(0,s.gn)([o.mm],se.prototype,"setPreferencesModalOpen",null),(0,s.gn)([o.mm],se.prototype,"setKeyboardShortcutHelpModalOpen",null),(0,s.gn)([o.mm],se.prototype,"setShouldPanelLoadFreshDataIntoStoreOnceOpened",null),(0,s.gn)([o.mm],se.prototype,"toggleElementStudio",null),(0,s.gn)([o.mm],se.prototype,"setInterfaceState",null),(0,s.gn)([o.mm],se.prototype,"setCanvasState",null),(0,s.gn)([o.mm],se.prototype,"logError",null),(0,s.gn)([o.mm],se.prototype,"setActiveSelectorName",null),(0,s.gn)([o.mm],se.prototype,"setActivePresetId",null),(0,s.gn)([o.mm],se.prototype,"setBuilderBehaviorElementId",null),(0,s.gn)([o.aU],se.prototype,"activateElement",null),(0,s.gn)([o.aU],se.prototype,"setContentEditableElementId",null),(0,s.gn)([o.aU],se.prototype,"selectNextBreakpoint",null),(0,s.gn)([o.aU],se.prototype,"changeBreakpoint",null),(0,s.gn)([o.aU],se.prototype,"selectBaseBreakpoint",null),(0,s.gn)([o.aU],se.prototype,"changePreviewWidthWithAdjustmentBar",null),(0,s.gn)([o.mm],se.prototype,"setCanvasDragPlaceholderPosition",null),(0,s.gn)([o.mm],se.prototype,"setDragMousePosition",null),(0,s.gn)([o.mm],se.prototype,"activateElementMutation",null),(0,s.gn)([o.mm],se.prototype,"contentEditableElementIdMutation",null),(0,s.gn)([o.mm],se.prototype,"setLastHoveredOnCanvasElementId",null),(0,s.gn)([o.mm],se.prototype,"changeBreakpointMutation",null),(0,s.gn)([o.mm],se.prototype,"changePreviewWidthMutation",null),(0,s.gn)([o.mm],se.prototype,"setAddElementDraggedSlug",null),(0,s.gn)([o.mm],se.prototype,"setCanvasElementDraggedId",null),(0,s.gn)([o.mm],se.prototype,"endCanvasElementDrag",null),(0,s.gn)([o.mm],se.prototype,"setDragMixinDragging",null),(0,s.gn)([o.mm],se.prototype,"setStructurePanelNodesExpandedState",null),(0,s.gn)([o.mm],se.prototype,"setLoggedOut",null),(0,s.gn)([o.mm],se.prototype,"setElementUpdatingState",null),(0,s.gn)([o.mm],se.prototype,"setIdsOfPostsToRegenerateCache",null),(0,s.gn)([o.mm],se.prototype,"requestClosingConfirmation",null),(0,s.gn)([o.mm],se.prototype,"chooseOptionForClosingConfirmation",null),(0,s.gn)([o.mm],se.prototype,"showClosingConfirmation",null),(0,s.gn)([o.mm],se.prototype,"hideClosingConfirmation",null),(0,s.gn)([o.mm],se.prototype,"noClosingConfirmationIsNeededFor",null),(0,s.gn)([o.mm],se.prototype,"setClosingConfirmationIsDiscarding",null),(0,s.gn)([o.mm],se.prototype,"setClosingConfirmationIsSaving",null),(0,s.gn)([o.mm],se.prototype,"setLastModifiedElementProperty",null),(0,s.gn)([o.mm],se.prototype,"setRefreshSsrElementId",null),(0,s.gn)([o.mm],se.prototype,"setSettings",null),(0,s.gn)([o.mm],se.prototype,"setRevisionsData",null),(0,s.gn)([o.mm],se.prototype,"togglePreviewMode",null),(0,s.gn)([o.mm],se.prototype,"closePreviewMode",null),(0,s.gn)([o.mm],se.prototype,"setInlineEditingContext",null),(0,s.gn)([o.mm],se.prototype,"setInlineEditingRect",null),se=(0,s.gn)([(0,o.Yl)({name:"ui",namespaced:!0})],se);const ae=se;var ie=n(6778),re=n(43425);o.vc.rawError=!0;const le=3,ce="Barebones";let ue=class extends o.g4{constructor(){super(...arguments),this.onboardingData={websiteDetails:{websiteName:"",websiteDescription:"",websiteCategory:[],websiteGoals:[],websiteWritingStyle:[]},type:"barebones",websiteUI:{colorPalettes:{neutral:null,primary:null,secondary:[]},typography:{headings:null,body:null},buttons:{radius:"md"},images:{radius:"md"}},generatedPages:{homepage:null,pages:[],toRemove:{homepageSectionIds:null,pageIds:null}},previewBreakpointId:q.Wp,designLibrary:{selectedProvider:null,data:{designProviders:[],globalSettingsLastImportedFromUrl:null,designPresetsLastImportedFromUrl:null,variablesLastImportedFromUrl:null,oxySelectorsLastImportedFromUrl:null,fullSiteLastImportedFromUrl:null,isGlobalSettingsEnabled:!0,isDesignPresetsEnabled:!0,isVariablesEnabled:!1,isOxySelectorsEnabled:!1,isPopupsEnabled:!0}},sitemap:null,currentTree:null,activeElementId:null},this.untouchedOnboardingData=(0,r.Z)(this.onboardingData)}get websiteDetails(){return this.onboardingData.websiteDetails}get websiteUI(){return this.onboardingData.websiteUI}get onboardingType(){return this.onboardingData.type}get isSecondaryPalettesLimitReached(){return this.onboardingData.websiteUI.colorPalettes.secondary.length>=le}get generatedPages(){return this.onboardingData.generatedPages}get isHomepageCreated(){return void 0!==this.onboardingData.generatedPages?.homepage?.postId}get previewBreakpointId(){return this.onboardingData.previewBreakpointId}get homepageSectionIdsToRemove(){return this.onboardingData.generatedPages?.toRemove.homepageSectionIds}get pageIdsToRemove(){return this.onboardingData.generatedPages?.toRemove.pageIds}get designLibrary(){return this.onboardingData.designLibrary}get sitemap(){return this.onboardingData.sitemap}get currentTree(){return this.onboardingData.currentTree}get activeElementId(){return this.onboardingData.activeElementId}setOnboardingData(e){this.onboardingData={...this.onboardingData,...e}}setWebsiteDetails(e){this.onboardingData.websiteDetails={...this.onboardingData.websiteDetails,...e}}setOnboardingType(e){this.onboardingData.type=e}setWebsiteUI(e){this.onboardingData.websiteUI={...this.onboardingData.websiteUI,...e}}setTypography(e){this.onboardingData.websiteUI.typography={...this.onboardingData.websiteUI.typography,...e}}markCurrentOnboardingDataAsUntouched(){this.untouchedOnboardingData=(0,r.Z)(this.onboardingData)}setNeutralsPalette(e){this.onboardingData.websiteUI.colorPalettes.neutral=e}setPrimaryPalette(e){this.onboardingData.websiteUI.colorPalettes.primary=e}setSecondaryPalettes(e){this.onboardingData.websiteUI.colorPalettes.secondary=e}addSecondaryPalette(e){this.onboardingData.websiteUI.colorPalettes.secondary.push(e)}setSecondaryPalette({index:e,palette:t}){this.onboardingData.websiteUI.colorPalettes.secondary.splice(e,1,t)}removeSecondaryPalette(e){this.onboardingData.websiteUI.colorPalettes.secondary.splice(e,1)}setGeneratedPages(e){this.onboardingData.generatedPages=e}setGeneratedPage({homepage:e,pages:t,toRemove:n}){this.onboardingData.generatedPages={homepage:e,pages:t,toRemove:n}}setGeneratedPageHomepage(e){this.onboardingData.generatedPages.homepage=e}setGeneratedPagePages(e){this.onboardingData.generatedPages&&(this.onboardingData.generatedPages.pages=e)}addToGeneratedPages(e){this.onboardingData.generatedPages&&this.onboardingData.generatedPages.pages.push(e)}removeFromGeneratedPages(e){this.onboardingData.generatedPages&&(this.onboardingData.generatedPages.pages=this.onboardingData.generatedPages.pages.filter((t=>t.postId!==e)))}setButtons(e){this.onboardingData.websiteUI.buttons={...this.onboardingData.websiteUI.buttons,...e}}setImages(e){this.onboardingData.websiteUI.images={...this.onboardingData.websiteUI.images,...e}}setPreviewBreakpointId(e){this.onboardingData.previewBreakpointId=e}setHomepageSectionIdsToRemove(e){this.onboardingData.generatedPages.toRemove.homepageSectionIds=e}setPageIdsToRemove(e){this.onboardingData.generatedPages.toRemove.pageIds=e}setDesignLibraryData(e){this.onboardingData.designLibrary.data=e}setDesignLibrarySelectedProvider(e){this.onboardingData.designLibrary.selectedProvider=e}setSitemap(e){this.onboardingData.sitemap=e}removePageFromSitemap(e){this.onboardingData.sitemap&&this.onboardingData.sitemap.splice(e,1)}setCurrentTree(e){this.onboardingData.currentTree=e}setActiveElementId(e){this.onboardingData.activeElementId=e}updateActiveElementId(e){this.setActiveElementId(e)}updateCurrentTree(e){this.setCurrentTree(e)}removePageFromSitemapAction(e){this.removePageFromSitemap(e)}updateSitemap(e){this.setSitemap(e)}setBarebonesDesignProvider(){const e=this.onboardingData.designLibrary.data.designProviders.find((e=>e.name===ce));e&&this.setDesignLibrarySelectedProvider(e)}updateDesignLibrarySelectedProvider(e){this.setDesignLibrarySelectedProvider(e)}updateDesignLibraryData(e){this.setDesignLibraryData(e)}updateHomepageSectionIdsToRemove(e){this.setHomepageSectionIdsToRemove(e)}updatePageIdsToRemove(e){this.setPageIdsToRemove(e)}updatePreviewBreakpointId(e){this.setPreviewBreakpointId(e)}createPrimaryPalette(){const e=(0,ie.Wk)((0,ie.p)(),!0);this.setPrimaryPalette(e),this.updateNeutralPalette(e)}updateNeutralsPalette(e){this.setNeutralsPalette(e)}updatePrimaryPalette(e){this.setPrimaryPalette(e),this.updateNeutralPalette(e)}updateSecondaryPalettes(e){this.setSecondaryPalettes(e)}updateSecondaryPalette({index:e,palette:t}){this.setSecondaryPalette({index:e,palette:t})}addToSecondaryPalettes(e){e||(e=(0,ie.Wk)((0,ie.p)())),this.addSecondaryPalette(e)}removeFromSecondaryPalettes(e){this.removeSecondaryPalette(e)}updateWebsiteDetails(e){this.setWebsiteDetails(e)}updateOnboardingType(e){this.setOnboardingType(e)}updateWebsiteUI(e){this.setWebsiteUI(e)}updateTypography(e){this.setTypography(e)}initializePalettes(){if(this.onboardingData.websiteUI.colorPalettes.primary)return;const e=(0,ie.Wk)((0,ie.p)(),!0),t=[(0,ie.Wk)((0,ie.p)())];this.setPrimaryPalette(e),this.setSecondaryPalettes(t),this.setNeutralsPalette((0,re.TS)(String(e.scale[900].value)))}shufflePrimaryPalette(){if(this.onboardingData.websiteUI.colorPalettes.primary?.locked)return;const e=(0,ie.Wk)((0,ie.p)(),!0);this.setPrimaryPalette(e),this.updateNeutralPalette(e)}shuffleSecondaryPalettes(){const e=this.websiteUI.colorPalettes.secondary.map((e=>e.locked?e:(0,ie.Wk)((0,ie.p)())));this.setSecondaryPalettes(e)}shufflePalettes(){this.shufflePrimaryPalette(),this.shuffleSecondaryPalettes()}updateNeutralPalette(e){const t=e?.scale[900].value||this.onboardingData.websiteUI.colorPalettes.primary?.scale[900].value;if(!t)return;const n=(0,re.TS)(String(t));this.setNeutralsPalette(n)}resetOnboardingData(){this.setOnboardingData(this.untouchedOnboardingData)}resetOnboardingDataToDefault(){this.onboardingData=(0,r.Z)(this.untouchedOnboardingData),this.onboardingData.type="barebones",this.onboardingData.websiteUI.colorPalettes.neutral=null,this.onboardingData.websiteUI.colorPalettes.primary=null,this.onboardingData.websiteUI.colorPalettes.secondary=[]}updateGeneratedPages(e){this.setGeneratedPages(e)}updateGeneratedPage({homepage:e,pages:t,toRemove:n}){this.setGeneratedPage({homepage:e,pages:t,toRemove:n})}updateGeneratedPageHomepage(e){this.setGeneratedPageHomepage(e)}updateGeneratedPagePages(e){this.setGeneratedPagePages(e)}addToGeneratedPagesPage(e){this.addToGeneratedPages(e)}removeFromGeneratedPagesPage(e){this.removeFromGeneratedPages(e)}updateButtons(e){this.setButtons(e)}updateImages(e){this.setImages(e)}};(0,s.gn)([o.mm],ue.prototype,"setOnboardingData",null),(0,s.gn)([o.mm],ue.prototype,"setWebsiteDetails",null),(0,s.gn)([o.mm],ue.prototype,"setOnboardingType",null),(0,s.gn)([o.mm],ue.prototype,"setWebsiteUI",null),(0,s.gn)([o.mm],ue.prototype,"setTypography",null),(0,s.gn)([o.mm],ue.prototype,"markCurrentOnboardingDataAsUntouched",null),(0,s.gn)([o.mm],ue.prototype,"setNeutralsPalette",null),(0,s.gn)([o.mm],ue.prototype,"setPrimaryPalette",null),(0,s.gn)([o.mm],ue.prototype,"setSecondaryPalettes",null),(0,s.gn)([o.mm],ue.prototype,"addSecondaryPalette",null),(0,s.gn)([o.mm],ue.prototype,"setSecondaryPalette",null),(0,s.gn)([o.mm],ue.prototype,"removeSecondaryPalette",null),(0,s.gn)([o.mm],ue.prototype,"setGeneratedPages",null),(0,s.gn)([o.mm],ue.prototype,"setGeneratedPage",null),(0,s.gn)([o.mm],ue.prototype,"setGeneratedPageHomepage",null),(0,s.gn)([o.mm],ue.prototype,"setGeneratedPagePages",null),(0,s.gn)([o.mm],ue.prototype,"addToGeneratedPages",null),(0,s.gn)([o.mm],ue.prototype,"removeFromGeneratedPages",null),(0,s.gn)([o.mm],ue.prototype,"setButtons",null),(0,s.gn)([o.mm],ue.prototype,"setImages",null),(0,s.gn)([o.mm],ue.prototype,"setPreviewBreakpointId",null),(0,s.gn)([o.mm],ue.prototype,"setHomepageSectionIdsToRemove",null),(0,s.gn)([o.mm],ue.prototype,"setPageIdsToRemove",null),(0,s.gn)([o.mm],ue.prototype,"setDesignLibraryData",null),(0,s.gn)([o.mm],ue.prototype,"setDesignLibrarySelectedProvider",null),(0,s.gn)([o.mm],ue.prototype,"setSitemap",null),(0,s.gn)([o.mm],ue.prototype,"removePageFromSitemap",null),(0,s.gn)([o.mm],ue.prototype,"setCurrentTree",null),(0,s.gn)([o.mm],ue.prototype,"setActiveElementId",null),(0,s.gn)([o.aU],ue.prototype,"updateActiveElementId",null),(0,s.gn)([o.aU],ue.prototype,"updateCurrentTree",null),(0,s.gn)([o.aU],ue.prototype,"removePageFromSitemapAction",null),(0,s.gn)([o.aU],ue.prototype,"updateSitemap",null),(0,s.gn)([o.aU],ue.prototype,"setBarebonesDesignProvider",null),(0,s.gn)([o.aU],ue.prototype,"updateDesignLibrarySelectedProvider",null),(0,s.gn)([o.aU],ue.prototype,"updateDesignLibraryData",null),(0,s.gn)([o.aU],ue.prototype,"updateHomepageSectionIdsToRemove",null),(0,s.gn)([o.aU],ue.prototype,"updatePageIdsToRemove",null),(0,s.gn)([o.aU],ue.prototype,"updatePreviewBreakpointId",null),(0,s.gn)([o.aU],ue.prototype,"createPrimaryPalette",null),(0,s.gn)([o.aU],ue.prototype,"updateNeutralsPalette",null),(0,s.gn)([o.aU],ue.prototype,"updatePrimaryPalette",null),(0,s.gn)([o.aU],ue.prototype,"updateSecondaryPalettes",null),(0,s.gn)([o.aU],ue.prototype,"updateSecondaryPalette",null),(0,s.gn)([o.aU],ue.prototype,"addToSecondaryPalettes",null),(0,s.gn)([o.aU],ue.prototype,"removeFromSecondaryPalettes",null),(0,s.gn)([o.aU],ue.prototype,"updateWebsiteDetails",null),(0,s.gn)([o.aU],ue.prototype,"updateOnboardingType",null),(0,s.gn)([o.aU],ue.prototype,"updateWebsiteUI",null),(0,s.gn)([o.aU],ue.prototype,"updateTypography",null),(0,s.gn)([o.aU],ue.prototype,"initializePalettes",null),(0,s.gn)([o.aU],ue.prototype,"shufflePrimaryPalette",null),(0,s.gn)([o.aU],ue.prototype,"shuffleSecondaryPalettes",null),(0,s.gn)([o.aU],ue.prototype,"shufflePalettes",null),(0,s.gn)([o.aU],ue.prototype,"updateNeutralPalette",null),(0,s.gn)([o.aU],ue.prototype,"resetOnboardingData",null),(0,s.gn)([o.aU],ue.prototype,"resetOnboardingDataToDefault",null),(0,s.gn)([o.aU],ue.prototype,"updateGeneratedPages",null),(0,s.gn)([o.aU],ue.prototype,"updateGeneratedPage",null),(0,s.gn)([o.aU],ue.prototype,"updateGeneratedPageHomepage",null),(0,s.gn)([o.aU],ue.prototype,"updateGeneratedPagePages",null),(0,s.gn)([o.aU],ue.prototype,"addToGeneratedPagesPage",null),(0,s.gn)([o.aU],ue.prototype,"removeFromGeneratedPagesPage",null),(0,s.gn)([o.aU],ue.prototype,"updateButtons",null),(0,s.gn)([o.aU],ue.prototype,"updateImages",null),ue=(0,s.gn)([(0,o.Yl)({name:"onboarding",namespaced:!0})],ue);const de=ue;var pe=n(87950);o.vc.rawError=!0;let he=class extends o.g4{constructor(){super(...arguments),this.singularityUiState={singularityRightPanel:null,singularityLeftPanel:null,singularityFullWidthPanel:null},this.pagesInWP=[],this.headerAndFooterBlockIdsInWP={},this.backgroundGeneratingHeadersAndFooters=[],this.homepageInWP=-1,this.siteStatus={isClaimed:!1,claimUrl:"",siteState:null},this.sectionAddOrSwapPanelState={mode:"add_after",sectionId:null},this.sectionRewritePanelState=null,this.imageEditorPanelState=null,this.backgroundImageEditorPanelState=null,this.contentPropertiesEditorPanelState=!1,this.iconEditorPanelState={iconId:null},this.textEditorPanelState=null,this.linkEditorPanelState=null,this.headerAndFooterEditorPanelState=null,this.addNewSectionPanelState=null,this.aiJobs=[],this.aiServer=null,this.brand={color:{neutral:null,primary:null,secondary:[]},ui:{inputRadius:"md",buttonSize:"default"},logo:{logo:null}},this.brandPanelState={openedPanel:null},this.currentPalette=null,this.currentFont=null,this.previewMode=!1,this.isSectionLibraryModalOpen=!1,this.isOutOfCreditsModalOpen=!1,this.isPlanExpiredModalOpen=!1,this.isOpeningPageId=!1,this.canvasZoom=!1,this.debugSidebarPanelsEnabled=!1,this.usedStockPhotoIds=[]}setCanvasZoom(e){this.canvasZoom=e}setIsOpeningPageId(e){this.isOpeningPageId=e}setSectionLibraryModalState(e){this.isSectionLibraryModalOpen=e}setOutOfCreditsModalOpen(e){this.isOutOfCreditsModalOpen=e}setPlanExpiredModalOpen(e){this.isPlanExpiredModalOpen=e}setPreviewMode(e){this.previewMode=e}setBackgroundGeneratingHeadersAndFooters(e){this.backgroundGeneratingHeadersAndFooters=e}togglePreviewMode(){this.previewMode=!this.previewMode}setCurrentFont(e){this.currentFont=e}setHomepageInWP(e){this.homepageInWP=e}setCurrentPalette(e){this.currentPalette={palette:e.palette,index:e.index}}setBrand(e){this.brand=e}setInputRadius(e){const t={...this.brand,ui:{...this.brand.ui,inputRadius:e.inputRadius}};this.setBrand(t)}setButtonSize(e){const t={...this.brand,ui:{...this.brand.ui,buttonSize:e.buttonSize}};this.setBrand(t)}setPalette(e){const t={...this.brand};switch(e.type){case"primary":t.color={...t.color,primary:e.palette};break;case"neutral":t.color={...t.color,neutral:e.palette};break;case"secondary":e.palette?t.color={...t.color,secondary:[...t.color.secondary,e.palette]}:t.color={...t.color,secondary:[]};break}this.setBrand(t)}addSecondaryPalette(e){const t={...this.brand,color:{...this.brand.color,secondary:[...this.brand.color.secondary,e]}};this.setBrand(t)}removeSecondaryPalette(e){if(e>=0&&e{this.singularityUiState.isSingularityLeftPanelHighlighted=!1}),300)}setSingularityBrandPanelState(e){this.setSingularityLeftPanel("brand"),this.setBrandPanelState(e)}setBrandPanelState(e){this.brandPanelState=e}};(0,s.gn)([o.mm],he.prototype,"setCanvasZoom",null),(0,s.gn)([o.mm],he.prototype,"setIsOpeningPageId",null),(0,s.gn)([o.mm],he.prototype,"setSectionLibraryModalState",null),(0,s.gn)([o.mm],he.prototype,"setOutOfCreditsModalOpen",null),(0,s.gn)([o.mm],he.prototype,"setPlanExpiredModalOpen",null),(0,s.gn)([o.mm],he.prototype,"setPreviewMode",null),(0,s.gn)([o.mm],he.prototype,"setBackgroundGeneratingHeadersAndFooters",null),(0,s.gn)([o.mm],he.prototype,"togglePreviewMode",null),(0,s.gn)([o.mm],he.prototype,"setCurrentFont",null),(0,s.gn)([o.mm],he.prototype,"setHomepageInWP",null),(0,s.gn)([o.mm],he.prototype,"setCurrentPalette",null),(0,s.gn)([o.mm],he.prototype,"setBrand",null),(0,s.gn)([o.aU],he.prototype,"setInputRadius",null),(0,s.gn)([o.aU],he.prototype,"setButtonSize",null),(0,s.gn)([o.aU],he.prototype,"setPalette",null),(0,s.gn)([o.aU],he.prototype,"addSecondaryPalette",null),(0,s.gn)([o.aU],he.prototype,"removeSecondaryPalette",null),(0,s.gn)([o.aU],he.prototype,"updateSecondaryPalette",null),(0,s.gn)([o.mm],he.prototype,"setAiServer",null),(0,s.gn)([o.aU],he.prototype,"toggleCanvasZoom",null),(0,s.gn)([o.mm],he.prototype,"setDebugSidebarPanelsEnabled",null),(0,s.gn)([o.aU],he.prototype,"toggleDebugSidebarPanels",null),(0,s.gn)([o.aU],he.prototype,"setSingularityRightPanel",null),(0,s.gn)([o.aU],he.prototype,"setSingularityLeftPanel",null),(0,s.gn)([o.aU],he.prototype,"setSingularityFullWidthPanel",null),(0,s.gn)([o.mm],he.prototype,"setSingularityUiState",null),(0,s.gn)([o.mm],he.prototype,"setSiteStatus",null),(0,s.gn)([o.mm],he.prototype,"setPagesInWP",null),(0,s.gn)([o.mm],he.prototype,"setHeaderAndFooterBlockIdsInWP",null),(0,s.gn)([o.mm],he.prototype,"setAIJobs",null),(0,s.gn)([o.mm],he.prototype,"setSectionAddOrSwapPanelState",null),(0,s.gn)([o.aU],he.prototype,"setSectionRewritePanelState",null),(0,s.gn)([o.aU],he.prototype,"setImageEditorPanelState",null),(0,s.gn)([o.mm],he.prototype,"setSectionRewritePanelState_",null),(0,s.gn)([o.mm],he.prototype,"setImageEditorPanelState_",null),(0,s.gn)([o.aU],he.prototype,"setBackgroundImageEditorPanelState",null),(0,s.gn)([o.mm],he.prototype,"setBackgroundImageEditorPanelState_",null),(0,s.gn)([o.mm],he.prototype,"setContentPropertiesEditorPanelState",null),(0,s.gn)([o.mm],he.prototype,"setIconEditorPanelState",null),(0,s.gn)([o.aU],he.prototype,"setTextEditorPanelState",null),(0,s.gn)([o.aU],he.prototype,"setLinkEditorPanelState",null),(0,s.gn)([o.mm],he.prototype,"setLinkEditorPanelState_",null),(0,s.gn)([o.mm],he.prototype,"setTextEditorPanelState_",null),(0,s.gn)([o.aU],he.prototype,"setHeaderAndFooterEditorPanelState",null),(0,s.gn)([o.mm],he.prototype,"setHeaderAndFooterEditorPanelState_",null),(0,s.gn)([o.mm],he.prototype,"setAddNewSectionPanelState_",null),(0,s.gn)([o.mm],he.prototype,"setUsedStockPhotoIds",null),(0,s.gn)([o.aU],he.prototype,"setAddNewSectionPanelState",null),(0,s.gn)([o.aU],he.prototype,"highlightSingularityLeftPanel",null),(0,s.gn)([o.aU],he.prototype,"setSingularityBrandPanelState",null),(0,s.gn)([o.mm],he.prototype,"setBrandPanelState",null),he=(0,s.gn)([(0,o.Yl)({name:"singularity",namespaced:!0})],he);const ge=he;let me,ve,fe,ye,be,_e,Ie,we;function xe(e){me=(0,o.rT)(p,e),ve=(0,o.rT)(V,e),fe=(0,o.rT)(ae,e),ye=(0,o.rT)(B.Z,e),be=(0,o.rT)(G,e),_e=(0,o.rT)(W,e),Ie=(0,o.rT)(de,e),we=(0,o.rT)(ge,e)}const Se={config:p,document:V,ui:ae,global:B.Z,snapshot:G,browseMode:W,onboarding:de,singularity:ge}},85450:(e,t,n)=>{"use strict";n.r(t),n.d(t,{browseModeStore:()=>a.Sr,configStore:()=>a.PK,default:()=>u,documentStore:()=>a.Hb,globalStore:()=>a.cr,initializeStores:()=>a.Iu,modules:()=>a.qz,onboardingStore:()=>a.Kx,plugins:()=>c,singularityStore:()=>a.fz,snapshotStore:()=>a.GD,uiStore:()=>a.kD});var o=n(20144),s=n(20629),a=n(31044),i=n(8241),r=n(69137);o.ZP.use(s.ZP);const l=e=>(0,a.Iu)(e),c=[l],u=new s.yh({strict:!1,plugins:[...c,(0,i.Z)(),r.F],modules:a.qz})},25886:(e,t,n)=>{"use strict";n.d(t,{VY:()=>s,q$:()=>i,zk:()=>a});var o=n(31381);const s=-1,a={documentMeta:{postType:"no_document",typeLabel:"No Document",titleLabel:"No Document",id:s,templateSettingsType:!1,blockSettings:!1,singularityMeta:!1,aiSettings:!1},tree:(0,o.getBlankTree)()};function i(e){const t=e.type.split("/").reverse().pop();return t||""}},96065:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(32521);const s=o.dt({templateIds:o.IX(o.pk),headerIds:o.IX(o.pk),footerIds:o.IX(o.pk),popupIds:o.IX(o.pk),blockIds:o.IX(o.pk)})},89412:(e,t,n)=>{"use strict";if(n.d(t,{w:()=>s}),!/^(715|974)$/.test(n.j))var o=n(34676);function s(){(0,o.forceNextTick)((()=>{const e=window.parent.document.documentElement.scrollTop,t=window.parent.document.documentElement.clientHeight,n=document.querySelector(".v-dialog__content"),o=document.querySelector(".v-dialog")?.getBoundingClientRect().height;o&&n&&(n.style.transition="none",n.style.top=`${e}px`,n.style.height=t-50+"px")}))}},65913:(e,t,n)=>{"use strict";n.d(t,{E_:()=>L,H2:()=>B,NI:()=>Z,Rx:()=>$,Yz:()=>x,eh:()=>T,j7:()=>k,jF:()=>C});var o=n(57653);if(974==n.j)var s=n(45974);var a=n(40045),i=n(98851),r=n(65118),l=n(32521),c=n(65669);if(974==n.j)var u=n(30902);var d=n(76491),p=n(87808),h=n(45335),g=n(74959),m=n(85450),v=n(31381),f=n(86687),y=n(94550),b=n(88506),_=n(6613),I=n(14663);function w(e){if(e===l.Z_)return{type:"string"};if(e===l.pk)return{type:"number"};if(e instanceof l.ts)return{type:"array",items:w(e.type)};if(e instanceof l.X1)return{type:"object",properties:Object.fromEntries(Object.entries(e.props).map((([e,t])=>[e,w(t)]))),required:Object.keys(e.props),additionalProperties:!1};throw new Error(`Unsupported io-ts type: ${e.name}`)}function x(e,t){return{type:"json_schema",json_schema:{name:t,strict:!0,schema:w(e)}}}function S(e){const t=[{name:"Website Name",value:e.websiteName},{name:"Website Description",value:e.websiteDescription},{name:"Website Category",value:e.websiteCategory.map((e=>e.label)).join(", ")},{name:"Website Goals",value:e.websiteGoals.map((e=>e.label)).join(", ")},{name:"Website Writing Style",value:e.websiteWritingStyle.map((e=>e.label)).join(", ")}];return t.reduce(((e,t)=>t.value?`${e}\n${t.name}: ${t.value}`:e),"")}function C(e){const t=e.websiteCategory.map((e=>e.label)).join(", "),n=e.websiteGoals.map((e=>e.label)).join(", "),o=e.websiteWritingStyle.map((e=>e.label)).join(", ");return`Website Category: ${t} \nWebsite Goals: ${n} \nWebsite Writing Style: ${o}`}function k(e){const t=S(e);return[{role:"system",content:'\n ## Instructions:\n You are an imaginative and adaptable copywriter. Your task is to write a unique, compelling tagline that reflects the tone, personality, and purpose of a specific website.\n This tagline will serve as a sample sentence that defines the language, tone, and style of the website. You will be given structured information about the website, such as its name, category, description, goals, and personality traits.\n Your output must be relevant to the site\'s identity and stand out from generic phrases.\n\n ## Guidelines:\n - The tagline must include the website\'s name somewhere in the sentence.\n - It must reflect the website\'s category, goals, and personality.\n - It should be between 15 and 20 words.\n - It should not begin with the website name followed by a colon.\n - Avoid clichés and overly generic wording.\n - Match the tone to the personality traits (e.g., bold and playful, sleek and serious, warm and professional).\n - Do not use personality traits or goals provided in the input in the tagline.\n - Sentence case only.\n - Language: English.\n\n ## Example Input:\n - Website Name: "Tech Innovations"\n - Website Description: "A platform for the latest tech news and reviews."\n - Website Category: "Technology"\n - Website Goals: "Inform, Engage, Inspire"\n - Website Writing Style: "Innovative, Friendly, Professional"\n\n ## Response format:\n - The response should be in JSON format.\n - The response should include the tagline in a field called "tagline".\n\n ## Example Output:\n {\n "tagline": "Tech Innovations is your go-to guide for insightful, friendly tech news and cutting-edge reviews."\n }\n\n '},{role:"user",content:t}]}async function P(e,t){return(0,i.D)({action:"breakdance_onboarding_request_structured_output",friendlyName:"AI Assistant",dataToPost:{messages:(0,c.J)(e),json_schema:(0,c.J)(t)},decoder:l.Z_,resultKey:"data"})}async function Z(){const e=m.onboardingStore.websiteDetails.websiteName,t=m.onboardingStore.websiteDetails.websiteDescription,n="5 to 10",s="at least 8",a=E().map((e=>`'${e}'`)).join(", "),i=await D(`\n ## Sitemap Generation Prompt\n\n - Generate a sitemap for a website.\n - The website should have ${n} pages.\n - Each page should have ${s} sections.\n - Website name: ${e}\n - Website description: ${t}\n - Website category: ${m.onboardingStore.websiteDetails.websiteCategory.map((e=>e.label)).join(", ")}\n - Website goals: ${m.onboardingStore.websiteDetails.websiteGoals.map((e=>e.label)).join(", ")}\n\n ## Sitemap Structure\n \n - Each page is represented as a section tree\n - First page should be "Home" page.\n - Valid values for section type are ${a}.\n - For each section tree, select one item at random from the section library object.\n - For each section tree, the "type" field must be one of the valid section types.\n - Each section tree should start with "Navigation Headers" section.\n - Each section tree should end with "Footers" section.\n - For each page "Navigation Headers" section should have same description. \n - For each page "Footers" section should have same description.\n - Valid values for section tree are:\n \n .\n `,o.Pu);return i}async function D(e,t){const n=l.dt({response:t}),o=await P([{role:"user",content:e}],{name:"my_schema",strict:!0,schema:w(n)}),a=(0,u.pipe)(o,(0,s.fold)((()=>{console.error("AJAX returned an error or invalid response",o)}),(e=>{console.log("AJAX returned a valid response",e);const t=(0,r.Z)(e,n);return(0,u.pipe)(t,(0,s.fold)((()=>{}),(e=>e.response)))})));return a}function E(){return Object.keys((0,a.B)())}async function T(e){try{const t=await A(e);if("string"!==typeof t)throw new Error("Invalid completion response");const n=(0,r.Z)(t,o.YG);return(0,u.pipe)(n,(0,s.fold)((()=>null),(e=>e)))}catch(t){throw console.error("Error parsing tagline completion:",t),t}}async function A(e){const t=z(e);let n="";if(!t)throw new Error("No event source was returned from OpenAI API.");return new Promise(((e,o)=>{t.onmessage=async a=>{if("[DONE]"===a.data){t.close();try{(0,p.K)(n),e(n)}catch(i){o(i)}}else{if(n+=(0,d.y8)(a.data),n=(0,d.J4)(n),!n)return;try{const e=(0,d.n7)(n),t=(0,p.K)(e);(0,u.pipe)((0,b.Z)(t),(0,s.fold)((()=>!1),(e=>e)))}catch(i){console.debug(n),console.debug(i)}}},t.onerror=e=>{console.error("Event source error:",e),t.close(),o(e)}}))}async function M(e,t,n){const o=z(t);let s="";if(!o)throw new Error("No event source was returned from OpenAI API.");return new Promise(((t,a)=>{o.onmessage=async i=>{if("[DONE]"===i.data){o.close();try{const o=(0,p.K)(s),a=(0,h.wi)(o,n);(0,h.gU)(a.elements),V(e,a.unsplash_keywords),console.log("%cOutput","color: green;"),console.log(o),t(s)}catch(r){a(r)}}else{if(s+=(0,d.y8)(i.data),s=(0,d.J4)(s),!s)return;try{const e=(0,d.n7)(s),t=(0,p.K)(e),o=(0,h.wi)(t,n);(0,h.gU)(o.elements)}catch(r){console.debug(s),console.debug(r)}}},o.onerror=e=>{o.close(),a(e.data)}}))}async function V(e,t){const n=(0,v.findNode)(m.documentStore.document.tree,e);if(!n)return;const o=(0,h.ho)(n);console.log(`%cReplacing images in section: ${e} with keywords: ${t}`,"color: red; font-weight: bold;");const s=await(0,I.Ok)({query:t.join(", "),page:1,per_page:o.length},new AbortController);(0,h.hh)(o,s,!1)}async function B(e){console.log(`%cRewriting content in section: ${e}`,"color: red; font-weight: bold;");const t=(0,v.findNode)(m.documentStore.document.tree,e);if(!t)return;const n=L(t);n.onboarding.shouldGenerateOnInitialLoad=!1;const o=(0,h.LX)(t),s=(0,g.ee)(o),a=(0,g.r1)(s,n,m.globalStore.aiSettings.prompt);if((0,h.JA)(t,n),o.length)try{O(o,!0),await M(t.id,a,o),O(o,!1)}catch(i){(0,h.Qm)(i)}}function O(e,t){e.forEach((e=>{m.uiStore.setElementUpdatingState({elementId:e.nodeId,isUpdating:t})}))}function L(e){const t=!!e.data.properties?.meta?.promptInfo?.onboarding?.shouldGenerateOnInitialLoad,n=e.data.properties?.meta?.promptInfo?.onboarding?.sectionType??!1;return{sectionDescription:(0,h.EJ)(e),qualifiers:(0,h.zX)(e),temperature:(0,h.Wh)(e),lockedFields:(0,h.nS)(e),locale:m.globalStore.aiSettings.locale,unsplash:{enabled:!1,fillEmptyImagesOnly:!1,keywords:""},onboarding:{shouldGenerateOnInitialLoad:t,sectionType:n},singularity:{shouldGenerateOnInitialLoad:t,sectionData:{type:n,index:!1},unsplashKeywords:[]}}}function $(){window.Breakdance.isOnboarding&&f.w.register.onMountedElement((e=>{if(!e.elementId)return;const t=(0,v.findNode)(m.documentStore.document.tree,e.elementId);if(!t)return;if(t.data.type!==y.SECTION_SLUG)return;const n=L(t);n.onboarding.shouldGenerateOnInitialLoad&&B(t.id)}))}function z(e){const t="https://breakdance.com/wp-json/breakdance/v1/onboarding/ai/stream-completion",n=(0,_.g)(e);if(!n)return null;const o=encodeURIComponent(n),s=`${t}?messages=${o}`;return new EventSource(s)}},40045:(e,t,n)=>{"use strict";n.d(t,{B:()=>a,t:()=>s});let o={};function s(e){o=e}function a(){return o}},6778:(e,t,n)=>{"use strict";n.d(t,{Wk:()=>c,_9:()=>m,eO:()=>p,hz:()=>d,p:()=>g,vy:()=>f,x3:()=>y,xS:()=>v});var o=n(27361),s=n.n(o),a=n(21357),i=n(88615),r=n(85450),l=n(31381);const c=(e,t=!1,n=!1)=>{const o={},s=(0,a.ZP)(e).hex(),i=h(s);o[500]=u(s,i,"500"),o[100]=u(a.ZP.mix(e,"#ffffff",.9).saturate(-1).hex(),i,"100"),o[200]=u(a.ZP.mix(e,"#ffffff",.75).saturate(-.8).hex(),i,"200"),o[300]=u(a.ZP.mix(e,"#ffffff",.6).saturate(-.5).hex(),i,"300"),o[400]=u((0,a.ZP)(e).brighten(.6).hex(),i,"400"),o[600]=u((0,a.ZP)(e).darken(.6).hex(),i,"600"),o[700]=u((0,a.ZP)(e).darken(1.2).hex(),i,"700"),o[800]=u((0,a.ZP)(e).darken(1.8).saturate(-.3).hex(),i,"800"),o[900]=u((0,a.ZP)(e).darken(4).saturate(-.2).hex(),i,"900");const r=p(e)?o[900]:o[100];return{label:i,primary:t,locked:n,base:o[500],scale:o,text:r}};function u(e,t,n){return{cssVariableName:(0,i.dw)(`onboarding-${t}-${n}`),label:`${t} ${n}`,value:e}}const d=e=>{const t=[];return e.primary&&t.push(...Object.values(e.primary.scale)),e.neutral&&t.push(...Object.values(e.neutral.scale)),e.secondary&&Array.isArray(e.secondary)&&e.secondary.forEach((e=>{t.push(...Object.values(e.scale))})),t},p=e=>!!e&&(0,a.ZP)(e).luminance()>.5,h=e=>{const t=(0,a.ZP)(e).lab();let n="",o=1/0;for(const{name:s,hex:i}of b){const e=a.ZP.deltaE(a.ZP.lab(...t),a.ZP.lab(...(0,a.ZP)(i).lab()));e{const e=Math.floor(Math.random()*b.length);return b[e].hex};function m(e,t){return{backgroundColor:e,color:p(e)?String(t.scale[900].value):String(t.scale[100].value)}}function v(e){const t=new Map;return e.forEach((e=>{const n=e.cssVariableName.match(/bde-palette-onboarding-([a-z-]+)-\d+/);if(n){const o=n[1];if("neutral"===o)return;t.has(o)||t.set(o,[]),t.get(o).push(e)}})),Array.from(t.values()).map((e=>({base:e[5],dark:{background:e[8],text:e[0]},light:{background:e[0],text:e[8]},brand:{background:e[4],background_hover:e[5],text:p(e[4].value.toString())?e[8]:e[0]}})))}function f(e,t){const n=(0,l.findNode)(r.documentStore.document.tree,e);if(!n)return!1;const o=s()(n.data.properties,"design.background.color");return o===`var(--${t.dark.background.cssVariableName})`}async function y(e,t){const n=f(e,t),o=n?t.light.background.cssVariableName:t.dark.background.cssVariableName,s=n?t.light.text.cssVariableName:t.dark.text.cssVariableName;return r.documentStore.unthrottledPropertyChanged({elementId:e,path:"design",meta:{snapshotLabel:"Updated background color"},value:{background:{color:`var(--${o})`},text_colors:{headings:`var(--${s})`,text:`var(--${s})`,brand:`var(--${t.brand.background.cssVariableName})`,links:`var(--${t.brand.background.cssVariableName})`},buttons:{primary:{background:`var(--${t.brand.background.cssVariableName})`,background_hover:`var(--${t.brand.background_hover.cssVariableName})`,typography:{color:`var(--${t.brand.text.cssVariableName})`}}}}}),!n}const b=[{name:"White",hex:"#ffffff"},{name:"Snow",hex:"#fffafa"},{name:"Honeydew",hex:"#f0fff0"},{name:"Mint Cream",hex:"#f5fffa"},{name:"Azure",hex:"#f0ffff"},{name:"Alice Blue",hex:"#f0f8ff"},{name:"Ghost White",hex:"#f8f8ff"},{name:"White Smoke",hex:"#f5f5f5"},{name:"Seashell",hex:"#fff5ee"},{name:"Beige",hex:"#f5f5dc"},{name:"Old Lace",hex:"#fdf5e6"},{name:"Floral White",hex:"#fffaf0"},{name:"Ivory",hex:"#fffff0"},{name:"Antique White",hex:"#faebd7"},{name:"Linen",hex:"#faf0e6"},{name:"Lavender Blush",hex:"#fff0f5"},{name:"Misty Rose",hex:"#ffe4e1"},{name:"Gainsboro",hex:"#dcdcdc"},{name:"Light Gray",hex:"#d3d3d3"},{name:"Silver",hex:"#c0c0c0"},{name:"Dark Gray",hex:"#a9a9a9"},{name:"Gray",hex:"#808080"},{name:"Dim Gray",hex:"#696969"},{name:"Light Slate Gray",hex:"#778899"},{name:"Slate Gray",hex:"#708090"},{name:"Dark Slate Gray",hex:"#2f4f4f"},{name:"Black",hex:"#000000"},{name:"Lavender",hex:"#e6e6fa"},{name:"Thistle",hex:"#d8bfd8"},{name:"Plum",hex:"#dda0dd"},{name:"Violet",hex:"#ee82ee"},{name:"Orchid",hex:"#da70d6"},{name:"Fuchsia",hex:"#ff00ff"},{name:"Magenta",hex:"#ff00ff"},{name:"Medium Orchid",hex:"#ba55d3"},{name:"Medium Purple",hex:"#9370db"},{name:"Blue Violet",hex:"#8a2be2"},{name:"Dark Violet",hex:"#9400d3"},{name:"Dark Orchid",hex:"#9932cc"},{name:"Dark Magenta",hex:"#8b008b"},{name:"Purple",hex:"#800080"},{name:"Indigo",hex:"#4b0082"},{name:"Medium Slate Blue",hex:"#7b68ee"},{name:"Slate Blue",hex:"#6a5acd"},{name:"Dark Slate Blue",hex:"#483d8b"},{name:"Rebecca Purple",hex:"#663399"},{name:"Medium Blue",hex:"#0000cd"},{name:"Blue",hex:"#0000ff"},{name:"Royal Blue",hex:"#4169e1"},{name:"Dodger Blue",hex:"#1e90ff"},{name:"Deep Sky Blue",hex:"#00bfff"},{name:"Sky Blue",hex:"#87ceeb"},{name:"Light Sky Blue",hex:"#87cefa"},{name:"Steel Blue",hex:"#4682b4"},{name:"Light Steel Blue",hex:"#b0c4de"},{name:"Light Blue",hex:"#add8e6"},{name:"Powder Blue",hex:"#b0e0e6"},{name:"Pale Turquoise",hex:"#afeeee"},{name:"Dark Turquoise",hex:"#00ced1"},{name:"Medium Turquoise",hex:"#48d1cc"},{name:"Turquoise",hex:"#40e0d0"},{name:"Aqua",hex:"#00ffff"},{name:"Cyan",hex:"#00ffff"},{name:"Light Cyan",hex:"#e0ffff"},{name:"Cadet Blue",hex:"#5f9ea0"},{name:"Medium Aquamarine",hex:"#66cdaa"},{name:"Aquamarine",hex:"#7fffd4"},{name:"Dark Green",hex:"#006400"},{name:"Dark Olive Green",hex:"#556b2f"},{name:"Dark Sea Green",hex:"#8fbc8f"},{name:"Sea Green",hex:"#2e8b57"},{name:"Medium Sea Green",hex:"#3cb371"},{name:"Light Sea Green",hex:"#20b2aa"},{name:"Pale Green",hex:"#98fb98"},{name:"Spring Green",hex:"#00ff7f"},{name:"Lawn Green",hex:"#7cfc00"},{name:"Chartreuse",hex:"#7fff00"},{name:"Medium Spring Green",hex:"#00fa9a"},{name:"Green Yellow",hex:"#adff2f"},{name:"Lime Green",hex:"#32cd32"},{name:"Yellow Green",hex:"#9acd32"},{name:"Forest Green",hex:"#228b22"},{name:"Olive Drab",hex:"#6b8e23"},{name:"Dark Khaki",hex:"#bdb76b"},{name:"Khaki",hex:"#f0e68c"},{name:"Pale Goldenrod",hex:"#eee8aa"},{name:"Light Goldenrod Yellow",hex:"#fafad2"},{name:"Light Yellow",hex:"#ffffe0"},{name:"Yellow",hex:"#ffff00"},{name:"Gold",hex:"#ffd700"},{name:"Light Goldenrod",hex:"#eedd82"},{name:"Goldenrod",hex:"#daa520"},{name:"Dark Goldenrod",hex:"#b8860b"},{name:"Rosy Brown",hex:"#bc8f8f"},{name:"Indian Red",hex:"#cd5c5c"},{name:"Saddle Brown",hex:"#8b4513"},{name:"Sienna",hex:"#a0522d"},{name:"Peru",hex:"#cd853f"},{name:"Burlywood",hex:"#deb887"},{name:"Beige",hex:"#f5f5dc"},{name:"Wheat",hex:"#f5deb3"},{name:"Sandy Brown",hex:"#f4a460"},{name:"Tan",hex:"#d2b48c"},{name:"Chocolate",hex:"#d2691e"},{name:"Firebrick",hex:"#b22222"},{name:"Brown",hex:"#a52a2a"},{name:"Dark Salmon",hex:"#e9967a"},{name:"Salmon",hex:"#fa8072"},{name:"Light Salmon",hex:"#ffa07a"},{name:"Orange",hex:"#ffa500"},{name:"Dark Orange",hex:"#ff8c00"},{name:"Coral",hex:"#ff7f50"},{name:"Tomato",hex:"#ff6347"},{name:"Orange Red",hex:"#ff4500"},{name:"Red",hex:"#ff0000"},{name:"Crimson",hex:"#dc143c"},{name:"Deep Pink",hex:"#ff1493"},{name:"Hot Pink",hex:"#ff69b4"},{name:"Light Pink",hex:"#ffb6c1"},{name:"Pink",hex:"#ffc0cb"},{name:"Pale Violet Red",hex:"#db7093"},{name:"Medium Violet Red",hex:"#c71585"},{name:"Orchid",hex:"#da70d6"},{name:"Medium Orchid",hex:"#ba55d3"},{name:"Dark Orchid",hex:"#9932cc"},{name:"Dark Violet",hex:"#9400d3"},{name:"Blue Violet",hex:"#8a2be2"},{name:"Medium Purple",hex:"#9370db"},{name:"Slate Blue",hex:"#6a5acd"},{name:"Dark Slate Blue",hex:"#483d8b"},{name:"Blush Pink",hex:"#ff6fff"},{name:"Sunset Orange",hex:"#ff4500"},{name:"Ocean Blue",hex:"#0077be"},{name:"Forest Green",hex:"#228b22"},{name:"Lemon Yellow",hex:"#fff44f"},{name:"Peach Puff",hex:"#ffdab9"},{name:"Coral Reef",hex:"#ff7f50"},{name:"Mint Green",hex:"#98ff98"},{name:"Skyline Blue",hex:"#87ceeb"},{name:"Amber Glow",hex:"#ffbf00"},{name:"Ruby Red",hex:"#9b111e"},{name:"Emerald Green",hex:"#50c878"},{name:"Sapphire Blue",hex:"#0f52ba"},{name:"Goldenrod Yellow",hex:"#daa520"},{name:"Cinnamon Brown",hex:"#d2691e"},{name:"Lilac Mist",hex:"#c8a2c8"},{name:"Teal Wave",hex:"#008080"},{name:"Periwinkle Blue",hex:"#ccccff"},{name:"Rosewood",hex:"#65000b"},{name:"Sunflower Yellow",hex:"#ffda03"},{name:"Bubblegum Pink",hex:"#ffc1cc"},{name:"Electric Purple",hex:"#bf00ff"},{name:"Cobalt Blue",hex:"#0047ab"},{name:"Chartreuse Green",hex:"#7fff00"},{name:"Tangerine",hex:"#f28500"},{name:"Mango Tango",hex:"#ff8243"},{name:"Turquoise Blue",hex:"#40e0d0"},{name:"Crimson Tide",hex:"#dc143c"},{name:"Platinum Gray",hex:"#e5e4e2"},{name:"Ivory White",hex:"#fffff0"},{name:"Denim Blue",hex:"#1560bd"},{name:"Blazing Red",hex:"#ff2400"},{name:"Pine Green",hex:"#01796f"},{name:"Carmine Pink",hex:"#eb4c42"},{name:"Lavender Dream",hex:"#e6e6fa"},{name:"Midnight Blue",hex:"#191970"},{name:"Frost White",hex:"#f8f8ff"},{name:"Copper Penny",hex:"#ad6f69"},{name:"Sand Dune",hex:"#967117"},{name:"Arctic Blue",hex:"#d0fefe"},{name:"Blazing Yellow",hex:"#ffcc00"},{name:"Rose Quartz",hex:"#aa98a9"},{name:"Moss Green",hex:"#8a9a5b"},{name:"Berry Purple",hex:"#8a2be2"},{name:"Citrus Orange",hex:"#f4a460"},{name:"Powder Pink",hex:"#ffb6c1"},{name:"Steel Gray",hex:"#71797e"},{name:"Neon Green",hex:"#39ff14"},{name:"Velvet Red",hex:"#7e354d"},{name:"Aqua Marine",hex:"#7fffd4"},{name:"Golden Glow",hex:"#f9a602"},{name:"Cherry Blossom",hex:"#ffb7c5"},{name:"Deep Sea Blue",hex:"#001f3f"},{name:"Cranberry Red",hex:"#db143c"},{name:"Olive Green",hex:"#808000"},{name:"Rust Orange",hex:"#b7410e"},{name:"Peacock Blue",hex:"#1c39bb"},{name:"Sunset Pink",hex:"#ffcccb"},{name:"Lime Punch",hex:"#dfff00"},{name:"Eggplant Purple",hex:"#614051"},{name:"Cobalt Teal",hex:"#007ba7"},{name:"Amber Sunset",hex:"#ff4500"},{name:"Frosted Mint",hex:"#dbfff8"},{name:"Cedar Brown",hex:"#4b3621"},{name:"Ocean Mist",hex:"#b0e0e6"},{name:"Golden Peach",hex:"#ffcba4"},{name:"Rosewood Red",hex:"#65000b"},{name:"Cactus Green",hex:"#587058"},{name:"Tropical Blue",hex:"#007fff"},{name:"Blush Rose",hex:"#ff6f91"},{name:"Lava Red",hex:"#cf1020"},{name:"Pale Peach",hex:"#ffe5b4"},{name:"Azure Sky",hex:"#007fff"},{name:"Cinnamon Spice",hex:"#d2691e"},{name:"Goldenrod",hex:"#daa520"},{name:"Fuchsia Glow",hex:"#ff77ff"},{name:"Deep Plum",hex:"#8b008b"},{name:"Seafoam Green",hex:"#9fe2bf"},{name:"Citrus Lime",hex:"#bfff00"},{name:"Berry Red",hex:"#b22222"},{name:"Tangerine Dream",hex:"#ffcc00"},{name:"Electric Blue",hex:"#7df9ff"},{name:"Coral Pink",hex:"#f88379"},{name:"Lemon Chiffon",hex:"#fffacd"},{name:"Pale Lavender",hex:"#dcd0ff"},{name:"Bright Cyan",hex:"#00ffff"},{name:"Burnt Sienna",hex:"#e97451"},{name:"Golden Champagne",hex:"#f7e7ce"},{name:"Rose Pink",hex:"#ff66cc"},{name:"Deep Magenta",hex:"#cc00cc"},{name:"Pale Aqua",hex:"#bcd4e6"},{name:"Sunset Gold",hex:"#ffcc33"},{name:"Bright Maroon",hex:"#c32148"},{name:"Soft Peach",hex:"#ffe5b4"}]},20952:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var o=n(39883);const s=()=>{(0,o.Z)({angle:60,particleCount:50,spread:80,origin:{y:.9,x:0}}),(0,o.Z)({angle:120,particleCount:50,spread:80,origin:{y:.9,x:1}})}},93113:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(85450);let s=null;const a=new Map;function i(){return`msg_${Date.now()}_${Math.random().toString(16).slice(2)}`}function r(e){e.payload&&(o.documentStore.setDocument(e.payload.document),o.uiStore.activateElementMutation(e.payload.activeElementId))}"undefined"!==typeof window&&window.addEventListener("message",(e=>{const t=e.data;if("RESPONSE"===t?.type&&t?.id&&a.has(t.id)){const e=a.get(t.id);e&&(e(t.payload),r(t.payload),a.delete(t.id))}else"RESPONSE"===t?.type&&r(t.payload)}));const l={set(e){s=e},get(){return s},clear(){s=null},async sendRequest(e,t="*"){return new Promise(((n,o)=>{if(!s?.contentWindow)return void n(null);const r=i(),l={id:r,type:"REQUEST",payload:e.payload},c=setTimeout((()=>{a.delete(r)}),15e3);a.set(r,(e=>{clearTimeout(c),e.success?n(e.payload):o(new Error(e.error||"Unknown iframe error"))})),s.contentWindow.postMessage(l,t)}))}}},77622:(e,t,n)=>{"use strict";n.d(t,{A_:()=>S,IV:()=>C,O$:()=>P,Of:()=>T,PX:()=>k,R4:()=>V,WU:()=>D,gs:()=>N,pL:()=>E,zz:()=>B});var o=n(36968),s=n.n(o),a=n(85450),i=n(3735),r=n(48973),l=n(98851),c=n(32521),u=n(94543),d=n(31381);if(/^(143|974)$/.test(n.j))var p=n(94550);var h=n(75031);if(974==n.j)var g=n(6613);var m=n(40045),v=n(98949),f=n(69137),y=n(23128),b=n(65669),_=n(88683),I=n(63085),w=n(65913),x=n(76491);const S=async e=>(0,i.zG)(await(0,l.D)({action:"breakdance_load_document",dataToPost:{id:e},decoder:_.Ux}),(0,r.g_)((()=>null),(e=>{if(!("errorType"in e))return(0,I.gV)(e),e})));async function C(e){return(0,i.zG)(await(0,l.D)({action:"breakdance_onboarding_trash_pages",decoder:c.dt({success:c.Z_}),friendlyName:'Trash onboarding pages"',dataToPost:{pageIdsToTrash:e}}),(0,r.g_)((()=>null),(e=>e)))}async function k(e,t){if(0!==t.length)return await S(e),t.forEach((e=>{(0,d.deleteNode)(a.documentStore.document.tree,e)})),await(0,u.$)()}async function P(){const e="https://breakdancelibrary.com/barebones";return(0,i.zG)(await(0,l.D)({action:"breakdance_get_design_set_barebones_data_from_remote",decoder:c.dt({data:Z}),friendlyName:"Design Set Barebones Data",dataToPost:{url:e}}),(0,r.g_)((e=>{console.error("getDesignSetBarebonesData failed:",e)}),(e=>e.data)))}const Z=c.dt({posts:c.IX(c.dt({title:c.Z_,tree:c._4}))});async function D(){const e=await P();if(!e)return console.error("getPostsWithValidTreeFromRemote (onboarding): getDesignSetBarebonesData returned null/undefined"),!1;const t=await(0,x.I8)();if(!t)return!1;const n=e.posts.filter((e=>!!e.tree&&(0,r.tO)(h.f2.decode(e.tree))));return n}function E(e){const t={};return e.forEach((e=>{e.tree&&e.tree.root&&Array.isArray(e.tree.root.children)?t[e.title]=e.tree.root.children.filter((e=>e.data&&(e.data.type===p.SECTION_SLUG||e.data.type===p.HEADER_BUILDER_SLUG))):t[e.title]=[]})),t}async function T(e){const t={pageDescription:e,shouldGenerateOnInitialLoad:!0},n=(0,g.g)(t);return(0,i.zG)(await(0,l.D)({action:"breakdance_insert_post",friendlyName:"Insert Post",dataToPost:{postTitle:e.title,postType:"page",aiSettings:n||!1},decoder:c.dt({postId:c.pk})}),(0,r.g_)((()=>null),(t=>({postId:t.postId,postTitle:e.title}))))}async function A(){const e=(0,y.Z)(a.documentStore.document.documentMeta);s()(e,"aiSettings.shouldGenerateOnInitialLoad",!1),f.n.ignore((async()=>{a.documentStore.setDocumentMeta(e),await z(a.documentStore.document.documentMeta.id,a.documentStore.document.documentMeta.aiSettings)}))}async function M(e){for(const t of e.sections){const e=L(t);e&&(0,v.AE)([e],"inserting")}return await(0,u.$)()}async function V(e){const t=(0,d.findNode)(a.documentStore.document.tree,e);if(!t)return;const n=(0,w.E_)(t),o={type:"string"===typeof n.onboarding.sectionType?n.onboarding.sectionType:"Section",description:n.sectionDescription||""},s=L(o);s&&(0,v.AE)([s],"inserting",{},{mode:"replace",targetElementId:e})}async function B(){a.documentStore.document.documentMeta.aiSettings&&a.documentStore.document.documentMeta.aiSettings.shouldGenerateOnInitialLoad&&a.documentStore.document.documentMeta.aiSettings.pageDescription&&(a.uiStore.setInterfaceState("loading"),A(),await Promise.all([(0,x.I8)(),M(a.documentStore.document.documentMeta.aiSettings.pageDescription)]),a.uiStore.setInterfaceState("normal"))}function O(e){const t=(0,m.B)(),n=t[e];if(!n||0===n.length)return console.log(`No sections available for type: ${e} in library`),null;const o=Math.floor(Math.random()*n.length);return n[o]}function L(e){const t=O(e.type);if(!t)return null;const n=$(t,e);return n}function $(e,t){const n={sectionDescription:t.description,qualifiers:"",temperature:1,lockedFields:[],locale:"en_US",unsplash:{enabled:!1,fillEmptyImagesOnly:!1,keywords:""},onboarding:{sectionType:t.type,shouldGenerateOnInitialLoad:!0},singularity:{shouldGenerateOnInitialLoad:!0,sectionData:{type:t.type,index:!1},unsplashKeywords:[]}};return e.data.properties={...e.data.properties||{},meta:{...e.data.properties?.meta||{},promptInfo:n}},e}async function z(e,t){return await(0,l.D)({friendlyName:"Saving Document AI Settings",action:"breakdance_save_document_ai_settings",dataToPost:{postId:e,settings:!!t&&(0,b.J)(t)},decoder:c._4})}function N(e){const t=(0,w.E_)(e);if(!t.onboarding.sectionType)return;const n=L({type:t.onboarding.sectionType,description:t.sectionDescription});n&&(a.uiStore.activateElement(e.id),(0,v.AE)([n],"inserting"))}},57653:(e,t,n)=>{"use strict";n.d(t,{CZ:()=>f,LC:()=>M,Pu:()=>T,TX:()=>p,YG:()=>c,eV:()=>g,sP:()=>A,t9:()=>h});var o=n(32521),s=n(86042),a=n(75031),i=n(32874),r=n(97313),l=n(92260);const c=o.dt({tagline:o.Z_}),u=o.dt({id:o.pk,label:o.Z_,selected:o.O7}),d=o.dt({websiteName:o.Z_,websiteDescription:o.Z_,websiteCategory:o.IX(u),websiteGoals:o.IX(u),websiteWritingStyle:o.IX(u)}),p=o.IX(u).encode(["Portfolio","Event","Business","Restaurant","E-Commerce","Personal Brand","Blog","Non-Profit","Landing Page","Startup"].map(((e,t)=>({id:Number(t+1),label:e,selected:!1})))),h=o.IX(u).encode(["Showcase work","Build a community","Sell products online","Provide information","Generate leads","Book appointments","Share updates","Drive sign-ups","Promote events","Raise donations"].map(((e,t)=>({id:Number(t+1),label:e,selected:!1})))),g=o.IX(u).encode(["Conversational","Formal","Informative","Persuasive","Storytelling","Concise","Technical","Inspirational","Friendly","Authoritative","Casual","Witty","Educational","Direct","Descriptive","Engaging"].map(((e,t)=>({id:Number(t+1),label:e,selected:!1})))),m=o.dt({100:s.Vr,200:s.Vr,300:s.Vr,400:s.Vr,500:s.Vr,600:s.Vr,700:s.Vr,800:s.Vr,900:s.Vr}),v=o.dt({label:o.Z_,primary:o.O7,locked:o.O7,base:s.Vr,scale:m,text:s.Vr}),f=(o.G0([o.dt({type:o.i0("updateGlobalSettingsPerPath"),payload:o.dt({path:o.Z_,value:a.az})}),o.dt({type:o.i0("updateBreakpoint"),payload:o.dt({breakpoint:r.g})}),o.dt({type:o.i0("hideHomepageSections"),payload:o.dt({nodeIds:o.IX(o.pk)})}),o.dt({type:o.i0("importSectionFromOnboarding"),payload:o.dt({sectionTree:a.NM,activeElementId:o.G0([o.Z_,o.pk,o.lB,o.S1])})}),o.dt({type:o.i0("onboardingActivateElement"),payload:o.dt({elementId:o.G0([o.Z_,o.pk])})}),o.dt({type:o.i0("onboardingSaveDocumentToWP"),payload:o.dt({})})]),{none:{value:0,unit:"px",style:"0px"},sm:{value:8,unit:"px",style:"8px"},md:{value:16,unit:"px",style:"16px"},lg:{value:24,unit:"px",style:"24px"},full:{value:9999,unit:"px",style:"9999px"}}),y=o.mM(f),b=o.G0([o.i0("barebones"),o.i0("template")]),_=o.dt({neutral:o.G0([v,o.lB]),primary:o.G0([v,o.lB]),secondary:o.IX(v)}),I=o.dt({radius:y}),w=o.dt({radius:y}),x=o.dt({headings:o.G0([i.d,o.lB]),body:o.G0([i.d,o.lB])}),S=o.dt({colorPalettes:_,typography:x,buttons:I,images:w}),C=o.dt({postId:o.pk,postTitle:o.Z_}),k=o.dt({homepageSectionIds:o.G0([o.IX(o.pk),o.lB]),pageIds:o.G0([o.IX(o.pk),o.lB])}),P=o.dt({homepage:o.G0([C,o.lB]),pages:o.IX(C),toRemove:k}),Z=o.dt({selectedProvider:o.G0([l.Sz,o.lB]),data:l.Jd}),D=o.dt({type:o.Z_,description:o.Z_}),E=o.dt({title:o.Z_,sections:o.IX(D)}),T=o.IX(E),A=o.r$({pageDescription:E,shouldGenerateOnInitialLoad:o.O7}),M=o.dt({websiteDetails:d,type:b,websiteUI:S,generatedPages:P,previewBreakpointId:o.Z_,designLibrary:Z,sitemap:o.G0([T,o.lB]),currentTree:o.G0([o.IX(a.NM),o.lB]),activeElementId:o.G0([o.Z_,o.pk,o.lB])})},97313:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var o=n(32521);const s=o.dt({id:o.Z_,label:o.Z_,minWidth:o.G0([o.pk,o.S1,o.lB]),maxWidth:o.G0([o.pk,o.S1,o.lB]),defaultPreviewWidth:o.G0([o.pk,o.i0("100%")])})},86042:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>c,D8:()=>g,DX:()=>h,Dz:()=>i,EZ:()=>u,Vr:()=>d,Wd:()=>r,X7:()=>l,f8:()=>p});var o=n(32521);o.G0([o.i0("solid"),o.i0("linear"),o.i0("radial")]);const s=o.dt({value:o.Z_,type:o.i0("solid")}),a=o.jV([o.dt({red:o.pk,blue:o.pk,green:o.pk,alpha:o.pk,left:o.pk}),o.r$({globalColor:o.Z_})]),i=o.dt({degree:o.pk,points:o.IX(a),value:o.Z_,svgValue:o.Z_,type:o.G0([o.i0("linear"),o.i0("radial")])}),r=o.G0([s,i]),l=o.G0([o.i0("solidOnly"),o.i0("solidAndGradient"),o.i0("gradientOnly")]),c=o.dt({type:l}),u=o.G0([r,o.Z_,o.lB]),d=o.dt({cssVariableName:o.Z_,label:o.Z_,value:o.G0([o.lB,o.Z_,i])}),p=o.IX(d),h={points:[{left:0,red:0,green:0,blue:0,alpha:1},{left:100,red:255,green:0,blue:0,alpha:1}],type:"radial",degree:0,svgValue:'',value:"radial-gradient(rgba(0, 0, 0, 1) 0%,rgba(255, 0, 0, 1) 100%)"},g={...h,type:"linear",svgValue:'',value:"linear-gradient(0deg,rgba(0, 0, 0, 1) 0%,rgba(255, 0, 0, 1) 100%)"};o.dt({base:d,dark:o.dt({background:d,text:d}),light:o.dt({background:d,text:d}),brand:o.dt({background:d,background_hover:d,text:d})})},99697:(e,t,n)=>{"use strict";n.d(t,{DD:()=>c,Gc:()=>g,ZQ:()=>l,bn:()=>d,dV:()=>u});var o=n(32521),s=n(47902);const a=o.dt({text:o.Z_,value:o.Z_}),i=o.G0([o.i0("is"),o.i0("is not"),o.i0("is one of"),o.i0("is all of"),o.i0("is none of"),o.i0("is before"),o.i0("is after"),o.i0("is greater than"),o.i0("is less than"),o.i0("contains"),o.i0("does not contain"),o.i0("is empty"),o.i0("is not empty"),o.Z_]),r=o.r$({ruleSlug:o.Z_,ruleDynamic:o.G0([o.Z_,o.S1]),ruleDynamicMeta:o.G0([s.DU,o.S1]),operand:i,value:o.G0([o.Z_,o.pk,o.IX(o.Z_),o.IX(a)]),valueDynamicMeta:o.G0([s.DU,o.S1])}),l=o.IX(r),c=o.jV([o.dt({label:o.Z_,items:o.IX(a)}),o.r$({availableForType:o.G0([o.i0(!1),o.IX(o.Z_)])})]),u=o.iG(o.dt({slug:o.Z_,label:o.Z_,category:o.Z_,operands:o.IX(i),values:o.G0([o.IX(c),o.i0(!1)]),valueInputType:o.G0([o.S1,o.i0("dropdown"),o.i0("datepicker"),o.i0("number"),o.i0("timepicker")]),availableForType:o.IX(o.Z_),supports:o.IX(o.G0([o.i0("element_display"),o.i0("templating"),o.i0("query_builder")])),proOnly:o.G0([o.S1,o.O7])})),d=o.IX(u),p=o.r$({delay:o.pk,percent:o.pk,selector:o.Z_,scrollType:o.Z_,clickType:o.Z_,limit:o.pk}),h=o.r$({slug:o.Z_,options:p}),g=o.IX(h)},89754:(e,t,n)=>{"use strict";n.d(t,{A3:()=>X,F4:()=>p,FX:()=>B,Fl:()=>h,O$:()=>j,Pk:()=>G,Ru:()=>V,bB:()=>x,ur:()=>W,wu:()=>A});var o=n(32521),s=n(16795),a=n(13997),i=n(97657),r=n(85256),l=n(665),c=n(78454),u=n(86042);const d=o.G0([o.i0("section"),o.i0("text"),o.i0("url"),o.i0("richtext"),o.i0("number"),o.i0("dropdown"),o.i0("multiselect"),o.i0("button_bar"),o.i0("toggle"),o.i0("unit"),o.i0("color"),o.i0("wpmedia"),o.i0("code"),o.i0("repeater"),o.i0("inline_repeater"),o.i0("condition"),o.i0("font_family"),o.i0("spacing_complex"),o.i0("border_complex"),o.i0("border_radius"),o.i0("class"),o.i0("global_colors"),o.i0("global_block_chooser"),o.i0("component_chooser"),o.i0("icon"),o.i0("breakpoint_dropdown"),o.i0("media_size_dropdown"),o.i0("gradient"),o.i0("shadow"),o.i0("message"),o.i0("focus_point"),o.i0("typography"),o.i0("custom_typography"),o.i0("typography_preset"),o.i0("button_preset"),o.i0("element_screenshot"),o.i0("video"),o.i0("post_chooser"),o.i0("link"),o.i0("slider"),o.i0("wp_query"),o.i0("add_registered_children"),o.i0("trigger_action_button"),o.i0("builder_behavior"),o.i0("alert_box"),o.i0("pro_only_alert_box"),o.i0("date_picker"),o.i0("time_picker"),o.i0("api_key_input"),o.i0("conditional_form_field"),o.i0("interactions"),o.i0("override_variables")]),p=d.types.map((e=>e.value)),h=o.r$({range:o.O7,multiple:o.O7}),g=o.r$({size:o.G0([o.i0("big"),o.i0("small")]),layout:o.G0([o.i0("multiline"),o.i0("default")]),mandatory:o.O7,multiple:o.O7}),m=o.dt({apiKeyName:o.Z_,urlKeyName:o.Z_,apiKeyLabel:o.G0([o.Z_,o.S1]),urlKeyLabel:o.G0([o.Z_,o.S1])}),v=o.G0([(0,r.$)(i.iconNames),o.Z_]),f=o.jV([o.dt({text:o.Z_,value:o._4}),o.r$({icon:v})]),y=o.G0([o.i0("equals"),o.i0("not equals"),o.i0("is one of"),o.i0("is none of"),o.i0("is set"),o.i0("is not set"),o.i0("includes"),o.i0("contains"),o.i0("does not contain"),o.S1]),b=o.jV([o.dt({path:o.Z_,operand:y,value:o._4}),o.r$({external:o.O7})]),_=o.G0([b,o.IX(o.IX(b))]),I=o.jV([o.dt({titleTemplate:o.Z_}),o.r$({buttonName:o.Z_,defaultTitle:o.Z_,defaultNewValue:o._4,duplicateNewValue:o._4,noDuplicate:o.O7,noDisable:o.O7,noDataMessage:o.Z_,noExpand:o.O7,popupMode:o.O7,galleryMode:o.O7,galleryMediaPath:o.Z_,deleteConfirm:o.O7,deleteText:o.Z_,disableFloatingAddButton:o.O7,forceDontProcessDefaultNewValueWhenAddingItemsHack:o.O7,templates:o.IX(o.dt({title:o.Z_,icon:o.Z_,value:o._4})),itemIcon:o.Z_,itemColorPath:o.Z_,autofocusOnAdd:o.O7,autofocusIndex:o.pk})]),w=o.jV([o.dt({min:o.G0([o.pk,o.Z_,o.S1]),max:o.G0([o.pk,o.Z_,o.S1]),step:o.G0([o.pk,o.Z_,o.S1])}),o.r$({disableSlider:o.O7,labels:o.IX(o.Z_)})]),x=o.dt({type:o.G0([o.i0("text"),o.i0("box")])}),S=o.r$({fetchDataAction:o.Z_,fetchContextPath:o.Z_,refetchPaths:o.IX(o.Z_)}),C=o.r$({populate:S,makeCombobox:o.O7,searchable:o.O7}),k=o.r$({path:o.Z_,text:o.Z_,value:o.Z_,condition:_}),P=o.r$({populate:o.jV([k,S]),noDataAvailableMessage:o.Z_}),Z=o.r$({multiple:o.O7,enableNever:o.O7,banCustomBreakpoints:o.O7}),D=o.dt({text:o.Z_,value:o._4}),E=o.r$({enabled:o.O7,populate:k}),T=o.r$({imagePropertyPath:o.Z_,gridMode:o.O7}),A=o.G0([o.i0("default"),o.i0("info"),o.i0("success"),o.i0("error"),o.i0("warning")]),M=o.r$({style:A,content:o.Z_}),V=o.G0([o.i0("youtube"),o.i0("vimeo"),o.i0("dailymotion"),o.i0("flickr"),o.i0("scribd"),o.i0("wordpress.tv"),o.i0("crowdsignal"),o.i0("smugmug"),o.i0("twitter"),o.i0("slideshare"),o.i0("soundcloud"),o.i0("spotify"),o.i0("imgur"),o.i0("meetup.com"),o.i0("animoto"),o.i0("issuu"),o.i0("mixcloud"),o.i0("ted"),o.i0("tumblr"),o.i0("kickstarter"),o.i0("videopress")]),B=o.jV([o.dt({url:o.Z_,embedUrl:o.Z_,format:o.G0([o.i0("photo"),o.i0("video"),o.i0("rich"),o.i0("link")]),type:o.G0([o.i0("oembed"),o.i0("video")]),source:o.G0([V,o.i0("local"),o.S1])}),o.r$({title:o.Z_,thumbnail:o.Z_,mime:o.Z_,provider:V,videoId:o.Z_})]),O=(o.r$({providers:o.IX(V)}),o.r$({suggestions:o.IX(o.Z_)})),L=o.r$({hoverableEverything:o.O7,enableMediaQueries:o.O7,enableVariables:o.O7}),$=o.r$({customTypographyOptions:L}),z=o.G0([o.i0("inline"),o.i0("vertical"),o.i0("vertical50")]),N=o.G0([o.i0("css"),o.i0("html"),o.i0("javascript"),o.i0("x-php")]),H=o.jV([o.dt({language:N}),o.r$({autofillOnEmpty:o.Z_,tags:o.IX(o.Z_)})]),R=o.dt({addExtraElementsBySlug:o.IX(o.Z_)}),G=["accordion","popout","modal"],F=(0,r.$)(G),U=o.jV([o.dt({type:d}),o.r$({noLabel:o.O7,layout:z,autofocus:o.O7,codeOptions:H,buttonBarOptions:g,items:o.IX(f),repeaterOptions:I,unitOptions:s.Sh,rangeOptions:w,shadowOptions:x,alertBoxOptions:M,sectionOptions:o.r$({preset:o.r$({slug:o.Z_,codeHelp:o.Z_,relativePropertyPathsToWhitelistInFlatProps:o.IX(o.Z_),relativeDynamicPropertyPaths:o.IX(c.G)}),type:F}),dropdownOptions:P,breakpointOptions:Z,condition:_,hideForElements:o.IX(o.Z_),messageOptions:o.dt({text:o.Z_}),isExternal:o.O7,placeholder:o.Z_,textOptions:o.r$({multiline:o.O7,validationFunctionName:o.mM(a.hB),format:o.G0([o.i0("plain"),o.i0("html")])}),linkOptions:o.r$({hideAdvanced:o.O7}),colorOptions:u.Cj,globalColorOptions:o.r$({type:u.X7}),mediaOptions:l.s7,focusPointOptions:T,mediaSizeOptions:l.lJ,iconOptions:O,customTypographyOptions:L,typographyOptions:$,ApiKeyOptions:m,triggerActionsButtonOptions:o.r$({text:o.Z_,icon:v}),multiselectOptions:C,datePickerOptions:h,addRegisteredChildrenOptions:R,variableOptions:E,variableItems:o.IX(D),disabledInFutureLayer:o.O7})]),W=o.sH("Control",(()=>o.iG(o.jV([o.dt({slug:o.Z_,label:o.Z_,keywords:o.G0([o.IX(o.Z_),o.S1]),options:U,enableMediaQueries:o.O7,enableHover:o.O7,children:o.IX(W)}),o.r$({dynamic:o.jV([o.dt({accepts:c._}),o.r$({proOnly:o.G0([o.S1,o.O7])})]),enableVariables:o.O7})]))));function j(e,t){return new X(e,t)}class X{constructor(e,t){this.value=e,this.meta=t}}},88667:(e,t,n)=>{"use strict";n.d(t,{lU:()=>l,vZ:()=>r,zM:()=>c});var o=n(32521),s=n(32874);const a=o.dt({fileName:o.Z_,fileUrl:o.Z_,format:o.G0([o.i0("woff"),o.i0("woff2")])}),i=o.dt({id:o.Z_,files:o.IX(a),weight:o.pk,style:o.G0([o.i0("normal"),o.i0("italic")])}),r=o.dt({id:o.Z_,family:o.Z_,cssUrl:o.Z_,hasExternalCssUrl:o.O7,cssName:o.Z_,fallbackString:o.G0([o.Z_,o.S1]),faces:o.IX(i)}),l=o.IX(o.dt({fontId:o.Z_,cssUrl:o.Z_,fontRegistrationData:s.d})),c=o.dt({fileUrl:o.Z_,fileName:o.Z_})},92260:(e,t,n)=>{"use strict";n.d(t,{Jd:()=>i,Kn:()=>c,Sz:()=>a,i2:()=>l});var o=n(32521);const s=o.dt({thumbnailUrl:o.G0([o.Z_,o.S1])}),a=o.dt({name:o.Z_,url:o.Z_,type:o.G0([o.i0("complete_site"),o.i0("sections"),o.i0("ui_kit"),o.S1]),isLocal:o.G0([o.O7,o.S1]),meta:o.G0([o.S1,s])}),i=o.dt({designProviders:o.IX(a),globalSettingsLastImportedFromUrl:o.G0([o.Z_,o.lB]),designPresetsLastImportedFromUrl:o.G0([o.Z_,o.lB]),variablesLastImportedFromUrl:o.G0([o.Z_,o.lB]),oxySelectorsLastImportedFromUrl:o.G0([o.Z_,o.lB]),fullSiteLastImportedFromUrl:o.G0([o.Z_,o.lB]),isGlobalSettingsEnabled:o.O7,isDesignPresetsEnabled:o.O7,isVariablesEnabled:o.O7,isOxySelectorsEnabled:o.O7,isPopupsEnabled:o.O7}),r=o.jV([o.dt({id:o.pk,name:o.Z_,url:o.Z_,tags:o.IX(o.Z_)}),o.r$({type:o.Z_})]),l=o.dt({enabled:o.O7,reliesOnGlobalSettings:o.G0([o.O7,o.S1]),reliesOnDesignPresets:o.G0([o.O7,o.S1]),name:o.Z_,requiresPassword:o.G0([o.O7,o.S1]),passwordValid:o.G0([o.O7,o.S1]),posts:o.IX(r)}),c=o.dt({url:o.Z_,id:o.pk})},38537:(e,t,n)=>{"use strict";n.d(t,{be:()=>l,fA:()=>d,gu:()=>u});var o=n(32521),s=n(75031),a=n(9665),i=n(1638),r=n(57653);const l=o.G0([o.r$({initialSectionsAlreadyPopulated:o.O7,singularityInitialSections:o.G0([o.IX(i.Xt),o.i0(!1)])}),o.i0(!1)]),c=o.iG(o.dt({postType:o.Z_,typeLabel:o.Z_,titleLabel:o.Z_,id:o.pk,templateSettingsType:o.G0([o.i0(!1),o.Z_]),blockSettings:o.G0([a.bv,o.i0(!1)]),singularityMeta:l,aiSettings:o.G0([r.sP,o.i0(!1)])})),u=o.IX(c),d=o.dt({tree:s.Oh,documentMeta:c})},47902:(e,t,n)=>{"use strict";n.d(t,{DU:()=>l,UN:()=>c,Y_:()=>u,pG:()=>i});var o=n(32521),s=n(89754),a=n(78454);const i=o.jV([o.dt({category:o.Z_,slug:o.Z_,label:o.Z_,controls:o.IX(s.ur),returnTypes:o.IX(a._)}),o.r$({proOnly:o.O7,subcategory:o.Z_,defaultAttributes:o.G0([o.IM(o.Z_,o.Z_),o.IX(o.S1)])})]),r=(o.dt({fallback:o.Z_,beforeContent:o.Z_,afterContent:o.Z_}),o.IM(o.Z_,o._4)),l=o.dt({shortcode:o.Z_,field:o.G0([o.Z_,i]),attributes:o.G0([r,o.IX(o.S1)])}),c=o.IX(i),u=o.r$({[typeof String]:o.Z_})},78454:(e,t,n)=>{"use strict";n.d(t,{G:()=>a,_:()=>s});var o=n(32521);const s=o.G0([o.i0("all"),o.i0("string"),o.i0("image_url"),o.i0("gallery"),o.i0("video"),o.i0("url"),o.i0("query"),o.i0("google_map"),o.i0("repeater"),o.i0("flexible_content")]),a=o.jV([o.dt({path:o.Z_,accepts:s}),o.r$({proOnly:o.G0([o.S1,o.O7])})])},63842:(e,t,n)=>{"use strict";n.d(t,{D:()=>v,My:()=>L,U$:()=>x,Ve:()=>B,_t:()=>M,g3:()=>w,iQ:()=>_,pG:()=>C,ws:()=>P,xY:()=>y,xd:()=>O});var o=n(32521),s=n(89754),a=n(78454);const i=o.iG(o.dt({contentSections:o.IX(s.ur),designSections:o.IX(s.ur),settingsSections:o.IX(s.ur)})),r=o.dt({name:o.Z_,template:o.Z_}),l=o.dt({name:o.Z_,propertyPath:o.Z_}),c=o.dt({name:o.Z_,rawValue:o.Z_}),u=o.G0([r,l,c]),d=o.IX(u),p=o.dt({name:o.Z_,template:o.Z_}),h=o.IX(p),g=o._4,m=o.jV([o.dt({script:o.Z_}),o.r$({dependencies:o.IX(o.Z_),runForAllChildren:o.O7})]),v=(o.dt({actionData:m,elements:o.IX(o.Z_)}),o.r$({title:o.Z_,scripts:o.IX(o.Z_),inlineScripts:o.IX(o.Z_),styles:o.IX(o.Z_),inlineStyles:o.IX(o.Z_),builderCondition:o.G0([o.Z_,o.r$({propertyPath:o.Z_})]),frontendCondition:o.G0([o.Z_,o.r$({propertyPath:o.Z_})]),googleFonts:o.IX(o.Z_)})),f=o.IX(o.dt({name:o.Z_,url:o.Z_})),y=o.dt({name:o.Z_,files:o.dt({js:f,css:f})}),b=o.r$({onPropertyChange:o.IX(m),onAfterDeletedElement:o.IX(m),onMovedElement:o.IX(m),onMountedElement:o.IX(m),onCreatedElement:o.IX(m),onBeforeDeletingElement:o.IX(m),onActivatedElement:o.IX(m)}),_=o.G0([o.i0("root"),o.i0("final"),o.i0("final-link"),o.i0("container"),o.i0("container-restricted"),o.i0("container-link"),o.i0("container-excluding-self"),o.i0("section"),o.i0("final-that-is-allowed-inside-root"),o.i0("popup")]),I=o.jV([o.dt({type:_}),o.r$({restrictedToBeADirectChildOf:o.IX(o.Z_),restrictedToBeADescendantOf:o.IX(o.Z_),notAllowedWhenNodeTypeIsPresentInTree:o.IX(o.Z_),inlineEditable:o.O7,inlineEditableBlockPath:o.Z_})]),w=o.G0([o.i0("inside-top"),o.i0("inside-left"),o.i0("inside-right"),o.i0("inside-bottom"),o.i0("outside-top"),o.i0("outside-right"),o.i0("outside-left"),o.i0("outside-bottom")]),x=o.G0([o.i0("padding-top"),o.i0("padding-left"),o.i0("padding-right"),o.i0("padding-bottom"),o.i0("margin-top"),o.i0("margin-right"),o.i0("margin-left"),o.i0("margin-bottom")]),S=o.G0([o.i0(!1),o.IX(o.Z_)]),C=o.dt({location:w,cssProperty:x,affectedPropertyPath:o.Z_}),k=o.sH("ChildElement",(()=>o.jV([o.dt({slug:o.Z_}),o.r$({defaultProperties:g,children:o.IX(k)})]))),P=o.G0([o.i0("WooCommerce"),o.i0("ACF"),o.i0("MetaBox"),o.i0("ACF"),o.i0("FacetWP"),o.i0("WP Grid Builder")]),Z=o.G0([o.r$({dependsOnGlobalScripts:o.O7,bypassPointerEvents:o.O7,sharePropsWithSSRChildren:o.O7,requiredPlugins:o.IX(P),disableAI:o.O7,proOnly:o.O7,disableWrapperHtmlTag:o.O7,builderOnly:o.O7}),o.i0(!1)]),D=o.G0([o.i0(!1),o.r$({alwaysHide:o.O7,allowedPostTypes:o.IX(o.Z_)})]),E=o.G0([o.i0("yes"),o.i0("no"),o.i0("unknown"),o.i0("sort of")]),T=o.r$({looksGood:E,optionsGood:E,optionsWork:E,dynamicBehaviorWorks:E,notes:o.Z_}),A=o.dt({backgroundColor:o.G0([o.Z_,o.lB]),textColor:o.G0([o.Z_,o.lB]),label:o.Z_}),M=o.iG(o.dt({name:o.Z_,className:o.G0([o.Z_,o.i0(!1)]),uiIcon:o.G0([o.Z_,o.i0(!1)]),slug:o.Z_,category:o.Z_,badge:o.G0([A,o.i0(!1)]),htmlTag:o.dt({default:o.Z_,options:o.IX(o.Z_),pathToControl:o.G0([o.i0(!1),o.Z_])}),template:o.Z_,additionalClasses:o.G0([h,o.i0(!1)]),attributes:o.G0([d,o.i0(!1)]),cssTemplate:o.Z_,defaultCss:o.Z_,defaultProperties:o.G0([g,o.i0(!1)]),defaultChildren:o.G0([o.IX(k),o.i0(!1)]),controls:i,dependencies:o.G0([o.IX(v),o.i0(!1)]),actions:o.G0([b,o.i0(!1)]),nestingRule:I,spacingBars:o.G0([o.i0(!1),o.IX(C)]),dynamicPropertyPaths:o.G0([o.i0(!1),o.IX(a.G)]),settings:Z,addPanelRules:D,experimental:o.O7,availableIn:o.IX(o.G0([o.i0("breakdance"),o.i0("oxygen")])),order:o.pk,projectManagement:o.G0([o.i0(!1),T]),propertyPathsToWhitelistInFlatProps:S,propertyPathsToSsrElementWhenValueChanges:S})),V=(o.IX(M),o.dt({slug:o.Z_,label:o.Z_})),B=o.IX(V),O=o.r$({attributes:o.IX(u),dependencies:o.IX(v),actions:b}),L=o.IX(o.dt({macro:o.Z_,slug:o.Z_}))},32874:(e,t,n)=>{"use strict";n.d(t,{d:()=>a,s:()=>i});var o=n(32521),s=n(63842);const a=o.dt({slug:o.Z_,cssName:o.Z_,label:o.Z_,fallbackString:o.Z_,dependencies:s.D,previewImageUrl:o.G0([o.Z_,o.S1,o.lB]),category:o.G0([o.Z_,o.S1,o.lB])}),i=o.IX(a)},9665:(e,t,n)=>{"use strict";n.d(t,{GF:()=>l,HH:()=>r,bv:()=>i});var o=n(32521),s=n(75031),a=n(23777);const i=o.dt({preview:o.r$({width:o.pk,height:o.pk,backgroundColor:o.G0([o.Z_,o.lB]),isCentered:o.O7,acfFlexibleField:o.Z_,acfFlexibleFieldRow:o.pk})}),r=o.jV([o.dt({label:o.Z_,id:o.pk,tree:s.Oh,editInBreakdanceLink:o.Z_}),o.r$({settings:o.G0([i,o.i0(!1)]),status:o.G0([o.i0("publish"),o.i0("trash")]),lastPreviewedItem:o.G0([a.pY,o.i0(!1)])})]),l=o.IX(r)},88683:(e,t,n)=>{"use strict";n.d(t,{Pt:()=>z,d0:()=>G,Ux:()=>R});var o=n(32521),s=n(47902),a=n(63842),i=n(75031),r=n(32874),l=n(89754);const c=o.dt({controls:o.IX(l.ur),template:o.Z_,propertyPathsToWhitelistInFlatProps:o.IX(o.Z_)}),u=o.dt({script:o.Z_}),d=o.IX(u);var p=n(23777),h=n(21516);const g=o.dt({breakdanceVersion:o.Z_,homeUrl:o.Z_,adminUrl:o.Z_,wpContentUrl:o.Z_,linkChooserUrl:o.Z_,tinyMceUrl:o.Z_,breakdanceSettingsUrl:o.Z_,elementsPluginUrl:o.G0([o.Z_,o.lB]),elementsReusableDependenciesUrls:o.IM(o.Z_,o.Z_),adminLoginUrl:o.Z_,browseModeAllowedUrls:o.IX(o.Z_),isBuilderFirstTimeVisit:o.O7}),m=o.dt({backToWordPressUrl:o.Z_,frontend:o.G0([o.Z_,o.i0(!1)]),iframeUrl:o.Z_,mediaChooserUrl:o.Z_});var v=n(38537),f=n(99697),y=n(88667),b=n(97313);const _=o.dt({customFonts:o.IX(y.vZ),customBreakpoints:o.IX(b.g)});var I=n(14018);const w=o.dt({name:o.Z_,slug:o.Z_,level:o.pk});var x=n(665),S=n(92260),C=n(85256),k=n(17582),P=n(22218),Z=n(1638),D=n(96628),E=n(88396);const T=o.G0([o.i0("post_does_not_exist"),o.i0("post_type_is_banned"),o.i0("post_type_is_restricted"),o.i0("post_is_in_trash")]),A=o.dt({errorType:T,postType:o.G0([o.S1,o.Z_]),backToAdminUrl:o.Z_}),M=["free","pro"],V=(0,C.$)(M),B=o.dt({enabled:o.O7}),O=o.dt({name:o.Z_,slug:o.Z_,jsFunctionName:o.Z_,controls:o.IX(l.ur)}),L=o.dt({name:o.Z_,slug:o.Z_,controls:o.IX(l.ur),jsFunctionName:o.Z_}),$=o.dt({actions:o.IX(O),triggers:o.IX(L)}),z=o.G0([o.i0("local"),o.i0("production")]),N=o.dt({environment:z,builderMode:o.G0([o.i0("breakdance"),o.i0("oxygen")]),elementPresets:I.p,neededData:g,builderElements:o.IX(a._t),elementsExternalAttrsDepsAndActions:a.xd,builderElementCategories:a.Ve,preferences:_,dynamicFields:s.UN,conditions:f.bn,fonts:r.s,globalSettingsControlsAndTemplate:c,globalSettings:i.az,plugins:d,availableDocuments:v.gu,selectors:h.Ho,availableMediaSizes:o.IX(x.wP),availablePermissions:o.IX(w),availableWordpressPlugins:o.IX(a.ws),permission:w,builtinBreakpoints:o.IX(b.g),twigMacros:a.My,twigMacrosHash:o.Z_,designLibrary:S.Jd,subscriptionMode:V,variables:k.r6,oxySelectors:P.gY,experiments:o.IX(o.Z_),ai:B,interactions:$,aiServer:Z.a5,aiSettings:o.G0([D.YF,o.i0(!1)]),futureLayerSettings:o.G0([E.d6,o.i0(!1)])}),H=o.jV([o.dt({document:v.fA,documentSpecificNeededUrls:m,templatePreview:p.jz}),N]),R=o.G0([A,H]),G=143==n.j?N:null},665:(e,t,n)=>{"use strict";n.d(t,{V0:()=>d,Wp:()=>c,ce:()=>r,lJ:()=>s,nV:()=>u,n_:()=>a,s7:()=>i,wP:()=>p});var o=n(32521);const s=o.r$({imagePropertyPath:o.Z_,disableSrcset:o.O7}),a=o.G0([o.i0("image"),o.i0("video"),o.i0("document"),o.i0("audio")]),i=o.r$({multiple:o.O7,acceptedFileTypes:o.IX(a)}),r=o.dt({width:o.pk,height:o.pk,orientation:o.Z_,url:o.Z_}),l=o.dt({id:o.pk,filename:o.Z_,url:o.Z_,alt:o.Z_,caption:o.Z_,type:o.Z_,mime:o.Z_}),c=o.jV([l,o.dt({type:o.i0("image"),sizes:o.IM(o.Z_,r),attributes:o.IM(o.Z_,o.Z_)})]),u=o.dt({id:o.i0(-1),type:o.i0("external_image"),url:o.Z_,alt:o.Z_,caption:o.Z_}),d=o.G0([l,c,u]),p=o.dt({slug:o.Z_,label:o.Z_,subLabel:o.G0([o.Z_,o.S1]),width:o.G0([o.pk,o.S1]),height:o.G0([o.pk,o.S1])})},14018:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var o=n(32521),s=n(75031);const a=o.dt({id:o.Z_,name:o.Z_,availableForType:o.Z_,design:s.az}),i=o.IX(a)},95996:(e,t,n)=>{"use strict";n.d(t,{Md:()=>l,Ue:()=>p,VZ:()=>y,hl:()=>g,qT:()=>u,tm:()=>m});var o=n(32521),s=n(75031),a=n(21516),i=n(14018),r=n(22218);const l=o.dt({id:o.G0([o.pk,o.Z_]),date:o.Z_,author:o.G0([o.Z_,o.i0(!1)])}),c=o.jV([l,o.dt({globalSettings:s.az})]),u=o.IX(c),d=o.jV([l,o.dt({selectors:a.Ng})]),p=o.IX(d),h=o.jV([l,o.dt({presets:i.p})]),g=o.IX(h),m=o.jV([l,o.dt({oxySelectors:o.IX(r.En)})]),v=o.jV([l,o.dt({tree:o.Z_})]),f=o.jV([l,o.dt({tree:s.f2})]),y=(o.dt({revisions:o.IX(f)}),o.G0([o.dt({revisions:o.IX(v)}),o.dt({unsupported:o.Z_})]))},21516:(e,t,n)=>{"use strict";n.d(t,{Ho:()=>c,Ng:()=>l});var o=n(75031),s=n(32521),a=n(89754);const i=s.Z_,r=s.dt({name:i,type:s.G0([s.i0("class"),s.i0("custom")]),properties:o.az}),l=s.IX(r),c=s.iG(s.dt({template:s.Z_,controls:s.IX(a.ur),selectors:l}))},1638:(e,t,n)=>{"use strict";n.d(t,{Pu:()=>i,Xt:()=>s,a5:()=>r,b5:()=>a});var o=n(32521);const s=o.dt({type:o.Z_,sectionFriendlyName:o.Z_,description:o.Z_}),a=o.dt({title:o.Z_,sections:o.IX(s),includeInMainMenu:o.O7}),i=o.IX(a),r=(o.r$({pageDescription:a,shouldGenerateOnInitialLoad:o.O7}),o.dt({sections:o.IX(s)}),o.G0([o.dt({url:o.Z_,jwt:o.G0([o.Z_,o.lB]),jwtExpiresAt:o.G0([o.pk,o.lB]),isAnonymousToken:o.G0([o.O7,o.lB])}),o.lB]))},65556:(e,t,n)=>{"use strict";n.d(t,{CZ:()=>d,MQ:()=>p,OZ:()=>v,mP:()=>u});var o=n(32521),s=n(86042),a=n(665),i=n(59705);const r=o.dt({100:s.Vr,200:s.Vr,300:s.Vr,400:s.Vr,500:s.Vr,600:s.Vr,700:s.Vr,800:s.Vr,900:s.Vr}),l=o.dt({label:o.Z_,primary:o.O7,locked:o.O7,base:s.Vr,scale:r,text:s.Vr}),c=o.dt({neutral:o.G0([l,o.lB]),primary:o.G0([l,o.lB]),secondary:o.IX(l)}),u={none:"None",sm:"Small",md:"Medium",lg:"Large",full:"Full"},d={none:(0,i.CK)(0),sm:(0,i.CK)(4),md:(0,i.CK)(16),lg:(0,i.CK)(24),full:(0,i.CK)(9999)},p={sm:"Small",default:"Default",md:"Medium",lg:"Large"},h=o.mM(p),g=(o.mM(d),o.dt({inputRadius:o.mM(d),buttonSize:h})),m=o.dt({logo:o.G0([a.V0,o.lB])}),v=o.dt({color:c,ui:g,logo:m})},40681:(e,t,n)=>{"use strict";var o;n.d(t,{P:()=>o}),function(e){e["CHANGE"]="Change",e["DELETE"]="Delete",e["COPY"]="Copy",e["PASTE"]="Paste",e["CLEAR"]="Clear",e["DUPLICATE"]="Duplicate"}(o||(o={}))},23777:(e,t,n)=>{"use strict";n.d(t,{NC:()=>i,jz:()=>r,pY:()=>a});var o=n(32521);const s=o.dt({field:o.Z_,index:o.pk}),a=o.jV([o.dt({label:o.Z_,url:o.Z_,type:o.Z_,repeater:o.G0([s,o.lB,o.S1])}),o.r$({id:o.G0([o.Z_,o.pk])})]),i=o.IX(a),r=o.dt({previewableItems:o.G0([i,o.i0(!1)]),lastPreviewedItem:o.G0([a,o.i0(!1)])})},75031:(e,t,n)=>{"use strict";n.d(t,{NM:()=>i,Oh:()=>c,az:()=>s,f2:()=>l});var o=n(32521);const s=o.Yj,a=o.dt({type:o.Z_,properties:s}),i=o.sH("TreeNode",(()=>o.jV([o.dt({id:o.G0([o.pk,o.Z_]),data:a,children:o.IX(i)}),o.r$({_parentId:o.G0([o.pk,o.Z_])})]))),r=o.dt({root:i,_nextNodeId:o.pk}),l=(o.jV([r,o.dt({status:o.i0("valid"),_lookupTable:o.IM(o.Z_,o.G0([o.S1,i]))})]),o.jV([r,o.dt({status:o.i0("exported")})])),c=o.G0([l,o.i0(!1)])},16795:(e,t,n)=>{"use strict";n.d(t,{LF:()=>c,Sh:()=>l,UQ:()=>r,qc:()=>a});var o=n(32521);const s=o.G0([o.i0("cm"),o.i0("mm"),o.i0("in"),o.i0("pc"),o.i0("pt"),o.i0("px"),o.i0("em"),o.i0("rem"),o.i0("%"),o.i0("vw"),o.i0("vh"),o.i0("vmin"),o.i0("vmax"),o.i0("svw"),o.i0("svh"),o.i0("s"),o.i0("ms"),o.i0("deg"),o.i0("calc"),o.i0("auto"),o.i0("custom"),o.i0("fr"),o.i0("none")]),a=s.types.map((({value:e})=>e)),i=o.G0([o.Z_,o.pk,o.S1,o.lB]),r=o.G0([o.dt({number:i,unit:s,style:o.G0([o.Z_,o.i0(0),o.lB])}),o.lB]),l=o.r$({types:o.G0([o.IX(s),o.S1,o.lB]),defaultType:o.G0([s,o.S1]),disableCustomUnitDropdown:o.O7}),c=/^(14|9)3$/.test(n.j)?["px","%","em","rem","vw","vh","svw","svh","auto","custom"]:null},68077:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var o=n(13635);function s(){const e=(0,o.RY)();if(!e)return;const t=e.activeElement;t&&"true"===t.getAttribute("contenteditable")&&t.blur()}},35941:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});const o=Object.prototype.hasOwnProperty;function s(e,t){if(e===t)return!0;let n,a;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((a=e.length)===t.length)while(a--&&s(e[a],t[a]));return-1===a}if(!n||"object"===typeof e){for(n in a=0,e){if(o.call(e,n)&&++a&&!o.call(t,n))return!1;if(!(n in t)||!s(e[n],t[n]))return!1}return Object.keys(t).length===a}}return e!==e&&t!==t}},23128:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(95986);function s(e){return e?(0,o.ZP)(e):e}},53809:(e,t,n)=>{"use strict";function o(e,t){const n=Math.max(e.min.x-t.x,0,t.x-e.max.x),o=Math.max(e.min.y-t.y,0,t.y-e.max.y);return Math.sqrt(n*n+o*o)}n.d(t,{T:()=>o})},713:(e,t,n)=>{"use strict";n.d(t,{A$:()=>c,Vr:()=>l,aV:()=>u,b7:()=>r,m1:()=>i,ok:()=>s,zf:()=>a});var o=n(5598);function s(e,t,n){const o=e.createElement("style");return o.innerHTML=t,o.id=n,o}function a(e,t,n){const s=e.createElement("link");return s.id=n,s.href=(0,o.$4)(t,window.Breakdance.stores.configStore.neededData?.elementsPluginUrl,window.Breakdance.stores.configStore.neededData?.elementsReusableDependenciesUrls),s.rel="stylesheet",s}function i(e,t){e.parentNode?.insertBefore(t,e)}function r(e,t,n){const o=new IntersectionObserver((t=>{o.disconnect(),t.forEach((t=>{t.isIntersecting&&t.intersectionRatio>0||e()}))}),n);o.observe(t)}function l(e){const t=e.querySelector("head");if(!t)throw"how in the fuck is there no head element... we need to change the UI to an error state in this case";return t}const c=(e,t)=>{const n=t.HTMLElement,o=1===e.nodeType;return o&&e instanceof n};function u(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}},12721:(e,t,n)=>{"use strict";n.d(t,{Pm:()=>s,hF:()=>o,sG:()=>a});class o{constructor(){this.events={}}on(e,t,n){this.events[e]||(this.events[e]=[]),this.events[e].push(t),document.addEventListener(e,t,n);try{window.Breakdance.canvas.document.addEventListener(e,t,n)}catch(o){console.log("[EASY EVENT] No canvas element found.")}}once(e,t){this.on(e,t,{once:!0})}off(e,t,n){document.removeEventListener(e,t,n);try{window.Breakdance.canvas.document.removeEventListener(e,t,n)}catch(o){console.log("[EASY EVENT] No canvas element found.")}}removeAll(){for(const[e,t]of Object.entries(this.events))t?.forEach((t=>this.off(e,t)));this.events={}}}const s=e=>{const t=window.Breakdance.canvas.document,n=e.target;return t.contains(n)},a=e=>{if(s(e)){const t=document.getElementById("iframe-wrapper"),n=t?.getBoundingClientRect(),o=n?.x||0,s=n?.y||0;return{x:o+e.clientX,y:s+e.clientY,pageX:o+e.pageX,pageY:e.pageY}}return{x:e.clientX,y:e.clientY,pageX:e.pageX,pageY:e.pageY}}},97705:(e,t,n)=>{"use strict";n.d(t,{GX:()=>a});var o=n(16631),s=n(20144);const a=(e,t)=>{r(),(0,o.af)(e,t),i()},i=()=>{(0,o.is)("remove"),(0,o.is)("add"),(0,o.w7)("add"),(0,o.w7)("replace"),(0,o.w7)("remove")},r=()=>{(0,o.jG)("remove",((e,t,n)=>{const o=e[t];return s.ZP["delete"](e,t),{newDocument:n,removed:o}})),(0,o.jG)("add",(function(e,t,n){return s.ZP.set(e,t,this.value),{newDocument:n}})),(0,o.ZZ)("add",(function(e,t,n){return(0,o.U)(t)?e.splice(t,0,this.value):s.ZP.set(e,t,this.value),{newDocument:n,index:t}})),(0,o.ZZ)("replace",(function(e,t,n){const o=e[t];return s.ZP.set(e,t,this.value),{newDocument:n,removed:o}})),(0,o.ZZ)("remove",(function(e,t,n){const o=e[t];return s.ZP["delete"](e,t),{newDocument:n,removed:o}}))}},34676:(e,t,n)=>{"use strict";n.r(t),n.d(t,{forceNextTick:()=>s,forceNextTickAsync:()=>a});const o=e=>{requestAnimationFrame((()=>{requestAnimationFrame(e)}))},s=e=>{o(e)},a=e=>new Promise((t=>{o((()=>{e(),t()}))}))},65118:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(45974),s=n(88506),a=n(30902),i=n(16442);function r(e,t){return(0,a.pipe)(e,s.Z,(0,o.map)((0,a.flow)(t.decode,(0,o.mapLeft)(i.H))),o.flatten)}},88506:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(51168),s=n(45974),a=n(79869),i=n(30902);function r(e){return(0,i.pipe)(e,a.Q,(0,s.mapLeft)((e=>(0,o.Ah)(e,"Failed to parse given JSON"))))}const l=r},65669:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var o=n(45974),s=n(51168),a=n(79869),i=n(30902);function r(e){return(0,i.pipe)(e,a.P,(0,o.mapLeft)((e=>(0,s.Ah)(e,"Failed to stringify given value to JSON"))))}},11859:(e,t,n)=>{"use strict";function o(){return"undefined"!==typeof navigator.userAgentData&&null!=navigator.userAgentData?navigator.userAgentData.platform:"undefined"!==typeof navigator.platform?"undefined"!==typeof navigator.userAgent&&/android/.test(navigator.userAgent.toLowerCase())?"android":navigator.platform:"unknown"}n.d(t,{X:()=>o})},62231:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var o=n(4269),s=n.n(o);function a(e){return s()(e.trim()).result().toString()}},13997:(e,t,n)=>{"use strict";n.d(t,{hB:()=>v,q3:()=>g});var o=n(31044),s=n(31381),a=n(20210);const i=["class","id"];function r(e){return/^[a-zA-Z-_][a-zA-Z-_0-9]*$/g.test(e)}function l(e){return/^[a-zA-Z-_][a-zA-Z-_:0-9]*$/g.test(e)&&!e.startsWith(":")&&!e.endsWith(":")&&!e.startsWith("-")}function c(e,t){if(!e)return!1;const n=(0,s.treeNodeReduce)(((n,o)=>((0,a.Cc)(n)===e&&n.id!==t&&(o=[...o,n]),o)),o.Hb.document.tree.root,[]);return n.length}function u(e){return void 0===e||(""===e?"Empty HTML attribute names aren't allowed":l(e)?!i.includes(e.toLowerCase())||`"${e.toLowerCase()}" is not allowed here. Please use the dedicated control.`:"You've used an invalid character. Only letters, numbers, '-', '_' and ':' are allowed.")}function d(e){if(!e)return!0;if(!r(e))return"You've used an invalid character in your ID. Only letters, numbers, '-' and '_' are allowed, and it can't start with a number.";if(o.kD.activeElementId){const t=c(e,o.kD.activeElementId);if(t)return"This ID already exists in other element. IDs must be unique within a page."}return!0}function p(e){return void 0===e||(""===e?"Empty HTML class names aren't allowed":!!r(e)||"You've used an invalid character in your class name. Only letters, numbers, '-' and '_' are allowed, and it can't start with a number.")}function h(e){return void 0===e||(!/["']/g.test(e)||"Double '\"' or single \"'\" quotes aren't allowed")}function g(e){return!e||(!!/^[a-z0-9-_ ]+$/i.test(e)||'Only English letters, numbers and "-" or "_" are allowed')}function m(e){return!e||(!/\r|\n/.test(e)||"Newlines are not allowed")}const v={validateHtmlAttributeName:u,validateHtmlClassName:p,validateHtmlId:d,validateNoQuotes:h,validateAlphanumericHyphenUnderscore:g,validateNoNewlines:m}},16442:(e,t,n)=>{"use strict";n.d(t,{H:()=>b});var o=n(39138),s=n.n(o),a=n(68630),i=n.n(a),r=n(32521);class l{constructor(e=null,t=null){this.parent=e,this.context=t,this.children={},this.error=null}getChildren(){return Object.values(this.children)}addError(e){const t=[...e.context];this.context=t.shift()??null,this.addErrorInternal(t,e)}addErrorInternal(e,t){const n=e.shift();if(n){const o=n.key;this.children[o]||(this.children[o]=new l(this,n)),this.children[o].addErrorInternal(e,t)}else this.error=t}}function c(e){const t=new l;return e.forEach((e=>{t.addError(e)})),t}function u(e){return"function"===typeof e?m(e):"number"!==typeof e||isFinite(e)?JSON.stringify(e):isNaN(e)?"NaN":e>0?"Infinity":"-Infinity"}const d=e=>i()(e);function p(e,t){const{consoleArgs:n,includeChildren:o}=t(e),s=o?e.getChildren():[];o&&s.length>0?(console.group(...n),s.map((e=>p(e,t))),console.groupEnd()):console.log(...n)}const h=(e,t=30)=>s()(e,{length:t}),g=e=>[e,...e.parent?g(e.parent):[]],m=e=>e.name||``,v=e=>e.context?.type instanceof r.rw&&e.getChildren().every((e=>e.context?.type instanceof r.pD)),f=e=>{const t=g(e).reverse().filter((e=>e.parent?!(e.parent?.context?.type instanceof r.rw||e.parent?.context?.type instanceof r.Ii):!(e.context?.type instanceof r.rw||e.context?.type instanceof r.Ii))).map((e=>e.parent?.context?.type instanceof r.ts?`[${e.context?.key}]`:e.context?.key)).join(".");return t.length?t:void 0},y=e=>{const t=e.context?.actual,n=e.context?.type,o=e.context?.type.name??"UNKNOWN",s=e.context?.key,a=e.error&&e.error.message,i=e.parent,r=i&&i.context?.actual,l=i?.context?.type,c=(i&&i.context?.type.name)??"UNKNOWN",p=void 0===t&&s&&i&&d(r)&&!(s in r),g=!v(e),m=[],y=f(e);return a?m.push(a):p?m.push("Property `%s` is missing in type `%s` (%O), but is required in type `%s` (%O)",y,h(u(r)),r,h(c),l):d(t)||Array.isArray(t)?m.push("Type `%s` (%O)%s is not assignable to type `%s` (%O)",h(u(t)),t,y?` at path \`${y}\``:"",h(o),n):m.push("Type `%s`%s is not assignable to type `%s` (%O)",h(u(t)),y?` at path \`${y}\``:"",h(o),n),{includeChildren:g,consoleArgs:m}};function b(e){return console.trace("IO-TS validation failed, see the details below"),p(c(e),y),[{msg:"IO-TS decoding failed",customNotificationToShow:{type:"IO_TS",errorMessage:"IO-TS decoding failed"}}]}},56888:(e,t,n)=>{"use strict";function o(e){try{return JSON.parse(e)}catch(t){return void console.error("Failed to decode JSON string",t)}}n.d(t,{B:()=>o})},6613:(e,t,n)=>{"use strict";function o(e){try{return JSON.stringify(e)}catch(t){return void console.error("Failed to encode given value to JSON",t)}}n.d(t,{g:()=>o})},31549:(e,t,n)=>{"use strict";n.d(t,{r:()=>s,z:()=>a});var o=n(51168);function s(e,t){if(!("localStorage"in window))return!1;try{return window.localStorage.setItem(e,t),!0}catch(n){return(0,o.UE)([{msg:`Failed to write "${e}" to the local storage. Check console.`}]),console.error(`Failed to write "${e}" to the local storage`,n),!1}}function a(e){if(!("localStorage"in window))return!1;try{return window.localStorage.getItem(e)}catch(t){return(0,o.UE)([{msg:`Failed to read "${e}" from the local storage. Check console.`}]),console.error(`Failed to read "${e}" from the local storage`,t),!1}}},38020:(e,t,n)=>{"use strict";function o(e){return parseFloat(parseFloat(e).toFixed(2))}n.d(t,{v:()=>o})},15855:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const{__:o,_x:s,_nx:a,sprintf:i}=window.wp.i18n,r={methods:{__(e){return o(e,"breakdance")},_x(e,t){return s(e,t,"breakdance")},_nx(e,t,n,o){return a(e,t,n,o,"breakdance")},_doc(e,t){return o(e,"breakdance")},_xdoc(e,t,n){return s(e,t,"breakdance")},sprintf:i}}},17209:(e,t,n)=>{"use strict";function o(e){return e.replace(/\n\r|\r|\n/g,"
")}n.d(t,{h:()=>o})},90878:(e,t,n)=>{"use strict";function o(){const e=new BroadcastChannel("breakdance");return e.onmessage=function(e){"nonceRefresh"===e.data.event&&(window.Breakdance.ajaxnonce=e.data.nonce)},e}n.d(t,{a:()=>o})},58172:(e,t,n)=>{"use strict";n.d(t,{Kn:()=>r,xV:()=>l});var o=n(13218),s=n.n(o),a=n(68718),i=n.n(a);function r(e){return"object"===typeof e&&null!==e}function l(e,t){return i()(e,(function(n,o,a){s()(o)?n[a]=l(o,t):n[a]=t(o,a,e)}))}},30169:(e,t,n)=>{"use strict";if(n.d(t,{U:()=>a,V:()=>s}),/^(14|9)3$/.test(n.j))var o=n(45974);function s(e){return(...t)=>{try{return e(...t)}catch(n){return console.log("[Breakdance - catchAndLogExceptions] an exception occurred in function: ",e),console.error(n),(0,o.left)(["an exception occured, check the console"])}}}function a(e,t){const n=e.replace(/`/g,"\\`").replace(/\$/g,"\\$");return`\n (function(){\n try {\n eval(\`${n}\`);\n } catch (e) {\n console.warn(\`${t}\`);\n console.error(e);\n }\n })();\n `}},91669:(e,t,n)=>{"use strict";function o(e=6){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let o=e;o>0;--o)n+=t[Math.floor(Math.random()*t.length)];return n}n.d(t,{z:()=>o})},13009:(e,t,n)=>{"use strict";if(n.d(t,{q:()=>c}),/^(14|9)3$/.test(n.j))var o=n(91669);if(/^(14|9)3$/.test(n.j))var s=n(8773);var a=n(58172);if(/^(14|9)3$/.test(n.j))var i=n(3735);if(/^(14|9)3$/.test(n.j))var r=n(32521);if(/^(14|9)3$/.test(n.j))var l=n(48973);function c(e,t){if(!e)return{};const n=(0,i.zG)(e,r.IM(r.Z_,r._4).decode,(0,l.g_)((()=>null),(e=>e)));if(!n)return{};const u={};return Object.keys(n).forEach((e=>{let i=n[e];"string"===typeof i&&(i=i.replace("{random_string}",(0,o.z)()).replace("{uuid}",(0,s.Z)()).replace("{index}",`${t}`).replace("{count}",`${t+1}`)),(0,a.Kn)(i)&&(i=c(i,t)),u[e]=i})),u}},29028:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var o=n(23493),s=n.n(o);const a={elements:{},globalSettings:{},selectorSettings:{},variableSettings:{},presetSettings:{}};function i(e,t,n,o){a[o][e]||(a[o][e]=s()(t,80));const i=a[o][e];i&&i(n)}},47431:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var o=n(98851),s=n(32521),a=n(65669);async function i(e,t={}){await(0,o.D)({action:"breakdance_track_amplitude_event",dataToPost:{eventType:e,eventProperties:(0,a.J)(t)},decoder:s._4,resultKey:"data",suppressErrorLogging:!0})}},85256:(e,t,n)=>{"use strict";n.d(t,{$:()=>i,f:()=>s});var o=n(32521);const s=Object.keys;function a(e){return Object.fromEntries(e.map((e=>[e,null])))}function i(e){return o.mM(a(e))}},42274:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,r:()=>s});const o=(e,t=[])=>{if(!e&&"0"!==e)return[null,null,null];const n=`${e}`.trim(),o=n.match(/[\d.\-+]*\s*(.*)/),s=parseFloat(n),a=isFinite(s)?s:null,i=o?.[1]?.toLowerCase(),r=t.find((e=>e===i)),l=r||null,c=n.replace(l||"","").trim();return[a,l,c]},s=(e,t)=>"custom"===t?`${e}`:e&&t||0===e&&t?`${e}${t}`:e?`${e}`:"auto"===t?t:null},15413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(20144);function s(e){return e.includes("[")}function a(e,t){return!(e in t)||null===t[e]}function i(e){let t=e.split("[");return t=t[1],t=t.split("]"),t=t[0],t}function r(e){let t=e.split("[");return t=t[0],t}const l=function(e,t,n){if("]"===t.charAt(t.length-1))throw"last item in the path can not be an array. path.part[3].something is allowed. path.something.part[3] is not.";const l=t.split(".");let c=e,u=0;for(const d of l){if(u++,s(d)){const e=i(d),t=r(d);Array.isArray(c[t])?e{"use strict";n.d(t,{$:()=>o,e:()=>s});const o=e=>{const t=function(t){if(e())return(t||window.event).returnValue=!0,!0};return window.addEventListener("beforeunload",t),t},s=e=>{window.removeEventListener("beforeunload",e)}},46368:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o={breakdance_white_light:"#fff","breakdance_white-fixed_light":"#fff",breakdance_black_light:"#000","breakdance_wp-admin-bg_light":"#eee","breakdance_table-row-2n_light":"#f9fafb",breakdance_white_dark:"#1f2229",breakdance_black_dark:"#fff","breakdance_wp-admin-bg_dark":"#1f2229","breakdance_table-row-2n_dark":"#242830",gray50_light:"#f9fafb",gray100_light:"#f3f4f6",gray150_light:"#eee",gray200_light:"#e5e7eb",gray300_light:"#d1d5db",gray400_light:"#9ca3af",gray500_light:"#6b7280",gray600_light:"#4b5563",gray700_light:"#374151",gray800_light:"#1f2937",gray900_light:"#111827",gray900_dark:"#fff",gray800_dark:"#fff",gray700_dark:"#fff",gray600_dark:"#e5e7eb",gray500_dark:"#d1d5db",gray400_dark:"#9ca3af",gray300_dark:"#525763",gray200_dark:"#4d535e",gray150_dark:"#373b46",gray100_dark:"#2f333b",gray50_dark:"#2c3038",blue50_light:"#eff6ff",blue100_light:"#dbeafe",blue200_light:"#bfdbfe",blue300_light:"#93c5fd",blue400_light:"#60a5fa",blue500_light:"#3b82f6",blue600_light:"#2563eb",blue700_light:"#1d4ed8",blue800_light:"#1e40af",blue900_light:"#1e3a8a",blue900_dark:"#eff6ff",blue800_dark:"#dbeafe",blue700_dark:"#799cc7",blue600_dark:"#93c5fd",blue500_dark:"#60a5fa",blue400_dark:"#3b82f6",blue300_dark:"#3d5371",blue200_dark:"#1d4ed8",blue100_dark:"#242a3f",blue50_dark:"#38455e",lightblue50_light:"#f0f9ff",lightblue100_light:"#e0f2fe",lightblue200_light:"#bae6fd",lightblue300_light:"#7dd3fc",lightblue400_light:"#38bdf8",lightblue500_light:"#0ea5e9",lightblue600_light:"#0284c7",lightblue700_light:"#0369a1",lightblue800_light:"#075985",lightblue900_light:"#0c4a6e",lightblue900_dark:"#f0f9ff",lightblue800_dark:"#e0f2fe",lightblue700_dark:"#bae6fd",lightblue600_dark:"#7dd3fc",lightblue500_dark:"#38bdf8",lightblue400_dark:"#0ea5e9",lightblue300_dark:"#0284c7",lightblue200_dark:"#0369a1",lightblue100_dark:"#075985",lightblue50_dark:"#0c4a6e",purple50_light:"#f5f3ff",purple100_light:"#ede9fe",purple200_light:"#ddd6fe",purple300_light:"#c4b5fd",purple400_light:"#a78bfa",purple500_light:"#8b5cf6",purple600_light:"#7c3aed",purple700_light:"#6d28d9",purple800_light:"#5b21b6",purple900_light:"#4c1d95",purple900_dark:"#f5f3ff",purple800_dark:"#ede9fe",purple700_dark:"#ddd6fe",purple600_dark:"#c4b5fd",purple500_dark:"#a78bfa",purple400_dark:"#8b5cf6",purple300_dark:"#7c3aed",purple200_dark:"#6d28d9",purple100_dark:"#5b21b6",purple50_dark:"#4c1d95",teal50_light:"#f0fdfa",teal100_light:"#ccfbf1",teal200_light:"#99f6e4",teal300_light:"#5eead4",teal400_light:"#2dd4bf",teal500_light:"#14b8a6",teal600_light:"#0d9488",teal700_light:"#0f766e",teal800_light:"#115e59",teal900_light:"#134e4a",teal50_dark:"#f0fdfa",teal100_dark:"#ccfbf1",teal200_dark:"#99f6e4",teal300_dark:"#5eead4",teal400_dark:"#2dd4bf",teal500_dark:"#14b8a6",teal600_dark:"#0d9488",teal700_dark:"#0f766e",teal800_dark:"#115e59",teal900_dark:"#134e4a",indigo50_light:"#eef2ff",indigo100_light:"#e0e7ff",indigo200_light:"#c7d2fe",indigo300_light:"#a5b4fc",indigo400_light:"#818cf8",indigo500_light:"#6366f1",indigo600_light:"#4f46e5",indigo700_light:"#4338ca",indigo800_light:"#3730a3",indigo900_light:"#312e81",indigo900_dark:"#eef2ff",indigo800_dark:"#e0e7ff",indigo700_dark:"#c7d2fe",indigo600_dark:"#a5b4fc",indigo500_dark:"#818cf8",indigo400_dark:"#6366f1",indigo300_dark:"#4f46e5",indigo200_dark:"#4338ca",indigo100_dark:"#3730a3",indigo50_dark:"#312e81",yellow50_light:"#fffbeb",yellow100_light:"#fef3c7",yellow200_light:"#fde68a",yellow300_light:"#fcd34d",yellow400_light:"#fbbf24",yellow500_light:"#f59e0b",yellow600_light:"#d97706",yellow700_light:"#b45309",yellow800_light:"#92400e",yellow900_light:"#78350f",yellow900_dark:"#fffbeb",yellow800_dark:"#fef3c7",yellow700_dark:"#fde68a",yellow600_dark:"#fcd34d",yellow500_dark:"#fbbf24",yellow400_dark:"#f59e0b",yellow300_dark:"#d97706",yellow200_dark:"#b45309",yellow100_dark:"#92400e",yellow50_dark:"#78350f",red50_light:"#fef2f2",red100_light:"#fee2e2",red200_light:"#fecaca",red300_light:"#fca5a5",red400_light:"#f87171",red500_light:"#ef4444",red600_light:"#dc2626",red700_light:"#b91c1c",red800_light:"#991b1b",red900_light:"#7f1d1d",red900_dark:"#fef2f2",red800_dark:"#fee2e2",red700_dark:"#fecaca",red600_dark:"#fca5a5",red500_dark:"#f87171",red400_dark:"#ef4444",red300_dark:"#dc2626",red200_dark:"#b91c1c",red100_dark:"#991b1b",red50_dark:"#7f1d1d",green50_light:"#f0fdf4",green100_light:"#dcfce7",green200_light:"#bbf7d0",green300_light:"#86efac",green400_light:"#4ade80",green500_light:"#22c55e",green600_light:"#16a34a",green700_light:"#15803d",green800_light:"#166534",green900_light:"#14532d",green900_dark:"#f0fdf4",green800_dark:"#dcfce7",green700_dark:"#bbf7d0",green600_dark:"#86efac",green500_dark:"#4ade80",green400_dark:"#22c55e",green300_dark:"#16a34a",green200_dark:"#15803d",green100_dark:"#166534",green50_dark:"#14532d",brand_WooCommerce:"#7f54b3",brand_WooCommerceBackground:"#f0e9f6",brand_WordPress:"#2271b1",brand_WordPressBackground:"#e8f0f6"}},19135:()=>{}}]); +//# sourceMappingURL=chunk-common.384771e2.js.map \ No newline at end of file diff --git a/functions/tailwindcss/js/v6.1.1/app-DSmHGY7G.js b/functions/tailwindcss/js/v6.1.1/app-DSmHGY7G.js new file mode 100644 index 0000000..7fc492a --- /dev/null +++ b/functions/tailwindcss/js/v6.1.1/app-DSmHGY7G.js @@ -0,0 +1,2489 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BuilderElement-8RpSw1sN.js","./Icon-4kWCR_mp.js","./store-BBZRLWAp.js","./constants-DqNMDAPh.js","./force-next-tick-DjZqoma7.js","./chunk-CF_yvw3e.js","../css/Icon-CEjQNx9k.css","./main-WWVhf7LM.js","./ConditionsMatrix-dUc-gztE.js","./ConditionsMatrix-COKUZ7bU.js","./CodeInput-B1AlIDPH.js","./IconButton-DYg5tDaa.js","./VOverlay-DIZYlMca.js","./resizeObserver-CLRcJbmu.js","../css/VOverlay-Dufu_Is9.css","../css/IconButton-Bf9f1ry3.css","./NiceButton-iMvjcZ1A.js","../css/NiceButton-iAckJ6XN.css","../css/CodeInput-DLMcxwn7.css","./CopyButton-BasczPAo.js","./clipboard-copy-DTQ5yaZJ.js","./VListSubheader-I111bFfk.js","../css/VListSubheader-C8WFrSf6.css","../css/CopyButton-BEk00HaH.css","./AlertBox-C_Sas46Q.js","./nl2br-bH85oQpb.js","./VList-sV4dQ8cb.js","../css/VList-DAm1XB4y.css","../css/AlertBox-NjoG42YD.css","./VMenu-BHsVuvfq.js","../css/VMenu-yixx9nGH.css","../css/ConditionsMatrix-umVfg2YB.css","./ControlsTree-DcUf2UBp.js","./ConditionPreviewRule-C4DdEXla.js","../css/ConditionPreviewRule-B4Ef6x35.css","./vue-color-CQ4-Zse2.js","./ControlsTreeExpansionPanels-ss0kn9Oa.js","./Repeater-Dx2x7dc-.js","./ElementStudioDefaultElements-BfGWPjot.js","./OxyControl-YHpEMfGw.js","./OxyControls-DqJciFqc.js","./ChildStructureNodes-BAlSE8l6.js","./InlineRepeater-hWvRKU5r.js"])))=>i.map(i=>d[i]); +import{a as e,i as t,n,r,t as i}from"./chunk-CF_yvw3e.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./VApp-BfwTpArR.js";import{$ as d,$a as f,$c as p,$d as m,$i as h,$l as g,$m as _,$n as v,$o as y,$p as b,$r as x,$s as S,$t as ee,A as te,Aa as ne,Ac as re,Af as ie,Ai as ae,Al as oe,Am as se,An as ce,Ao as le,Ap as C,Ar as ue,As as de,At as fe,Au as pe,B as me,Ba as he,Bc as ge,Bd as _e,Bf as ve,Bi as ye,Bl as be,Bm as xe,Bo as Se,Br as Ce,Bs as we,Bt as Te,Bu as Ee,Ca as De,Cd as Oe,Cf as ke,Ci as Ae,Cl as je,Cm as Me,Co as Ne,Cp as w,Cs as Pe,Ct as Fe,Cu as Ie,Da as Le,Dd as Re,Df as ze,Di as Be,Dl as Ve,Dm as He,Dn as Ue,Do as We,Dp as Ge,Dr as Ke,Ds as qe,Dt as eee,Du as Je,E as tee,Ea as Ye,Ec as Xe,Ed as T,Ef as Ze,Ei as Qe,El as $e,Em as et,En as nee,Eo as tt,Ep as E,Er as nt,Eu as rt,F as it,Fa as at,Fc as ot,Ff as ree,Fi as iee,Fl as aee,Fm as st,Fn as ct,Fo as lt,Fp as ut,Fr as dt,Fs as ft,Ft as pt,Fu as mt,G as ht,Ga as gt,Gc as _t,Gd as vt,Gf as yt,Gi as bt,Gl as xt,Gm as St,Gn as Ct,Go as oee,Gr as wt,Gs as see,Gt as Tt,H as Et,Ha as Dt,Hc as Ot,Hd as cee,Hf as kt,Hi as lee,Hl as uee,Hm as dee,Hn as fee,Ho as At,Hp as jt,Hr as Mt,Hs as Nt,Ht as Pt,Hu as Ft,I as It,Ia as Lt,Ic as Rt,Id as zt,If as Bt,Ii as Vt,Il as Ht,Im as Ut,In as Wt,Io as Gt,Ip as Kt,Ir as qt,Is as Jt,J as Yt,Ja as Xt,Jc as Zt,Jd as Qt,Ji as $t,Jl as en,Jm as tn,Jn as nn,Jo as rn,Jp as an,Jr as on,Js as sn,Jt as pee,K as cn,Ka as ln,Kc as un,Kd as mee,Kf as dn,Ki as hee,Kl as fn,Km as pn,Kn as gee,Ko as _ee,Kr as vee,Ks as mn,Kt as yee,La as hn,Lc as gn,Lf as bee,Li as _n,Ll as vn,Lm as xee,Ln as See,Lo as Cee,Lr as wee,Ls as yn,Lt as bn,Lu as xn,M as Sn,Ma as Cn,Mf as wn,Mi as Tn,Ml as Tee,Mm as En,Mn as Dn,Mo as On,Mp as kn,Mr as An,Ms as jn,Mu as Mn,N as Nn,Na as Pn,Nc as Fn,Nd as In,Nf as Ln,Ni as Rn,Nl as zn,Nm as Bn,Nn as Vn,No as Hn,Np as Un,Nr as Wn,Ns as Gn,Nt as Kn,Nu as qn,Oa as Jn,Oc as Yn,Od as Xn,Of as Zn,Oi as Qn,Ol as $n,Om as er,On as tr,Oo as nr,Op as rr,Os as ir,Ot as ar,Ou as or,P as sr,Pa as cr,Pc as lr,Pf as ur,Pi as dr,Pl as fr,Pm as pr,Pn as mr,Po as hr,Pp as gr,Pr as _r,Ps as vr,Pt as Eee,Pu as Dee,Q as Oee,Qa as kee,Qc as Aee,Qd as jee,Qi as Mee,Ql as Nee,Qm as D,Qn as Pee,Qo as yr,Qp as br,Qr as xr,Qs as Fee,Qt as Sr,R as Iee,Ra as Lee,Rc as Ree,Rd as Cr,Rf as wr,Ri as zee,Rl as Bee,Rm as Vee,Rn as Hee,Ro as Uee,Rp as O,Rr as Tr,Rs as Wee,Rt as Gee,Ru as Kee,Sa as Er,Sc as qee,Sf as Jee,Si as Yee,Sl as Dr,Sm as Or,Sn as Xee,So as Zee,Sp as kr,Sr as Qee,Ss as $ee,St as Ar,Su as jr,Ta as Mr,Tc as ete,Tf as Nr,Ti as Pr,Tl as tte,Tn as Fr,To as Ir,Tp as k,Tr as Lr,Tt as Rr,Tu as nte,Ua as rte,Uc as ite,Ud as ate,Ui as zr,Ul as ote,Um as Br,Un as Vr,Uo as Hr,Ur,Us as Wr,Ut as Gr,V as Kr,Va as qr,Vc as Jr,Vf as Yr,Vi as Xr,Vl as Zr,Vm as Qr,Vn as $r,Vo as ei,Vp as ti,Vr as ni,Vs as ri,Vt as ii,Vu as ai,W as oi,Wa as si,Wc as ci,Wd as li,Wf as ui,Wi as di,Wl as fi,Wm as pi,Wn as mi,Wo as hi,Wp as gi,Wr as _i,Ws as vi,Wt as yi,X as ste,Xa as bi,Xc as xi,Xd as Si,Xi as Ci,Xl as cte,Xm as wi,Xn as Ti,Xo as Ei,Xp as Di,Xr as Oi,Xs as ki,Xt as Ai,Y as ji,Ya as Mi,Yc as Ni,Yd as Pi,Yi as Fi,Yl as Ii,Ym as A,Yn as Li,Yo as Ri,Yp as j,Yr as zi,Ys as lte,Yt as Bi,Z as Vi,Za as Hi,Zc as Ui,Zd as Wi,Zi as Gi,Zl as Ki,Zm as qi,Zn as Ji,Zo as Yi,Zp as M,Zr as Xi,Zs as Zi,Zt as Qi,Zu as $i,_ as ea,_a as ta,_c as na,_d as ra,_f as ia,_l as aa,_n as oa,_o as sa,_r as ca,_s as la,_t as ua,_u as da,aa as fa,ad as pa,af as ma,ai as ha,al as ga,am as _a,an as va,ao as ya,ar as ba,as as xa,at as Sa,au as Ca,ba as wa,bc as Ta,bi as Ea,bl as Da,bn as Oa,bo as ka,br as ute,bs as dte,bt as Aa,bu as ja,c as Ma,ca as Na,cd as fte,cf as pte,ci as mte,cl as Pa,cm as hte,cn as gte,co as _te,cp as Fa,cr as Ia,cs as vte,ct as La,cu as Ra,d as yte,da as bte,dd as xte,df as za,di as Ba,dm as Ste,dn as Cte,dr as Va,ds as wte,dt as Tte,du as Ha,ea as Ua,ec as Wa,ef as Ete,ei as Dte,em as Ga,en as Ka,eo as qa,er as Ote,es as Ja,et as kte,eu as Ya,f as Ate,fd as jte,ff as Mte,fi as Nte,fl as Xa,fm as Pte,fn as Za,fo as Qa,fp as Fte,fr as Ite,fs as Lte,ft as Rte,fu as zte,g as $a,gc as Bte,gd as Vte,gi as Hte,gl as eo,gm as Ute,gn as Wte,go as Gte,gp as to,gr as Kte,gs as no,gt as qte,gu as Jte,h as ro,hd as io,hf as ao,hi as Yte,hl as Xte,hn as oo,ho as Zte,hp as so,hr as Qte,hs as co,ht as $te,hu as lo,i as N,ia as ene,ic as uo,if as fo,ii as po,il as tne,im as mo,in as nne,io as ho,ir as rne,is as ine,it as go,iu as _o,j as ane,ja as vo,jc as yo,jd as one,jf as bo,ji as sne,jl as cne,jm as xo,jn as So,jo as lne,jp as Co,jr as wo,js as To,jt as Eo,ju as une,k as dne,ka as fne,kf as Do,ki as Oo,kl as ko,km as Ao,kn as pne,ko as mne,kp as P,kr as jo,ks as hne,kt as Mo,ku as No,l as F,la as Po,lc as Fo,ld as Io,lf as Lo,li as Ro,ll as zo,ln as Bo,lo as Vo,lp as Ho,lr as Uo,ls as Wo,lt as Go,lu as Ko,m as qo,md as Jo,mf as Yo,mi as Xo,ml as Zo,mm as Qo,mn as $o,mo as es,mp as ts,mr as ns,ms as rs,mt as is,mu as as,n as I,nc as ss,nf as cs,ni as ls,nl as us,nn as ds,no as fs,nr as ps,ns as gne,nt as ms,nu as hs,o as gs,oa as _s,od as vs,of as ys,oi as bs,ol as xs,om as L,on as Ss,oo as Cs,op as ws,or as Ts,os as Es,ot as Ds,ou as Os,p as ks,pd as As,pf as js,pi as Ms,pl as Ns,pm as Ps,pn as _ne,po as Fs,pp as Is,pr as Ls,ps as Rs,pt as zs,pu as Bs,q as Vs,qa as Hs,qc as Us,qd as Ws,qi as Gs,ql as Ks,qm as R,qn as qs,qo as Js,qp as z,qr as Ys,qs as Xs,qt as Zs,qu as Qs,r as B,ra as $s,rc as ec,rf as tc,ri as nc,rl as rc,rn as ic,ro as ac,rr as oc,rs as sc,rt as cc,ru as lc,s as V,sa as uc,sd as dc,sf as fc,si as pc,sl as mc,sm as hc,sn as gc,so as _c,sp as vc,sr as yc,ss as bc,st as xc,t as Sc,ta as Cc,tc as wc,td as Tc,tf as Ec,ti as Dc,tl as Oc,to as kc,tr as Ac,ts as jc,tt as Mc,tu as Nc,ua as Pc,uc as Fc,ud as Ic,uf as Lc,ui as Rc,ul as zc,un as Bc,up as Vc,ur as Hc,us as Uc,ut as Wc,uu as Gc,v as Kc,va as qc,vf as Jc,vi as Yc,vm as Xc,vn as Zc,vo as Qc,vp as H,vr as $c,vs as el,vu as tl,wa as nl,wd as rl,wf as il,wi as al,wl as ol,wn as sl,wo as cl,wp as U,wr as ll,ws as ul,wt as dl,x as fl,xa as pl,xc as ml,xf as hl,xi as gl,xm as _l,xn as vl,xo as yl,xr as bl,xs as xl,xu as Sl,ya as Cl,yf as wl,yi as Tl,yl as El,yo as Dl,yr as Ol,ys as kl,yu as Al,z as jl,za as Ml,zc as Nl,zf as Pl,zl as Fl,zm as Il,zn as Ll,zo as Rl,zp as zl,zr as Bl,zs as Vl,zt as Hl,zu as Ul}from"./store-BBZRLWAp.js";import{C as Wl,Dt as Gl,F as Kl,Ft as ql,I as Jl,K as Yl,M as Xl,U as Zl,_ as Ql,a as $l,d as eu,g as tu,h as nu,i as ru,k as iu,kt as au,m as ou,q as su,tt as cu,wt as lu,xt as uu,y as du}from"./resizeObserver-CLRcJbmu.js";import{A as fu,E as pu,F as mu,I as hu,L as gu,O as _u,P as vu,R as yu,S as bu,U as xu,V as Su,W as Cu,b as wu,c as Tu,j as Eu,k as vne,l as Du,t as Ou,u as yne,x as ku}from"./VOverlay-DIZYlMca.js";import{c as bne,d as Au,f as xne,l as ju,n as Sne,r as Cne,s as Mu,t as Nu,u as Pu}from"./VList-sV4dQ8cb.js";import{t as Fu}from"./clipboard-copy-DTQ5yaZJ.js";import{t as wne}from"./color.module-BoMN2gnL.js";import{C as Iu,D as Tne,O as Lu,S as Ene,_ as Dne,a as Ru,b as One,d as zu,g as kne,h as Ane,i as jne,l as Mne,m as Nne,o as Bu,r as Pne,s as Fne}from"./constants-DqNMDAPh.js";import{n as Ine,t as Vu}from"./escape-DxQbzKQJ.js";import{_ as Lne,b as Hu,d as Uu,f as Rne,g as zne,h as Bne,l as Wu,m as Vne,n as Hne,p as Une,t as Wne,v as Gu,y as Gne}from"./vue-color-CQ4-Zse2.js";import{t as Ku}from"./force-next-tick-DjZqoma7.js";import{a as W,c as qu,d as G,f as Ju,i as K,l as Yu,n as q,o as J,r as Kne,s as Y,t as X,u as Z}from"./Icon-4kWCR_mp.js";import{t as qne}from"./Notifications-Cvuxpi9i.js";import{C as Jne,E as Xu,O as Zu,T as Qu,c as $u,d as ed,g as td,l as Q,n as nd,o as Yne,s as Xne,t as rd,w as Zne}from"./IconButton-DYg5tDaa.js";import{n as Qne,r as id,t as ad}from"./VListSubheader-I111bFfk.js";import{a as od,i as $ne,n as ere,r as sd,t as tre}from"./ConditionPreviewRule-C4DdEXla.js";import{c as cd,l as ld,n as ud,o as dd,s as nre,t as fd}from"./CopyButton-BasczPAo.js";import{n as pd,r as md,t as rre}from"./nl2br-bH85oQpb.js";import{n as ire,t as are}from"./confetti-0czcYqfP.js";import{$ as hd,A as gd,B as ore,Ct as _d,E as vd,F as yd,G as sre,H as bd,I as cre,J as lre,K as xd,L as Sd,M as Cd,N as wd,P as Td,Q as ure,R as Ed,St as Dd,U as Od,V as dre,W as fre,X as kd,Y as pre,Z as mre,_ as hre,_t as Ad,at as gre,b as jd,bt as _re,c as vre,ct as yre,d as bre,dt as xre,et as Sre,f as Md,ft as Cre,g as wre,gt as Nd,h as Tre,ht as Ere,i as Pd,it as Dre,j as Fd,l as Id,lt as Ld,m as Rd,mt as Ore,nt as zd,o as Bd,ot as Vd,p as Hd,pt as Ud,q as kre,r as Wd,rt as Are,s as Gd,st as Kd,t as jre,tt as qd,u as Jd,ut as Mre,v as Yd,vt as Nre,wt as Xd,x as Zd,xt as Pre,y as Fre,yt as Ire,z as Lre}from"./ConditionsMatrix-COKUZ7bU.js";import{n as Qd,t as $d}from"./CodeInput-B1AlIDPH.js";import{a as Rre,c as zre,d as ef,f as Bre,i as tf,l as nf,m as rf,n as af,p as of,r as sf,t as cf,u as lf}from"./AlertBox-C_Sas46Q.js";import{t as uf}from"./NiceButton-iMvjcZ1A.js";import{_ as df,g as ff,n as Vre,p as Hre,r as Ure,t as pf}from"./nonce-broadcast-Rzy1laQF.js";import{t as mf}from"./VMenu-BHsVuvfq.js";import{n as Wre,t as hf}from"./SingularityEmptyState-B8o27xUW.js";window.requestIdleCallback=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)};function Gre(e){let{depth:t,isLast:n,isLastGroup:r,leafLinks:i,separateRoots:a,parentIndentLines:o,variant:s}=e,c=n&&(!r||a||t>1);return!o||!t?{leaf:void 0,node:void 0,children:o,footer:o&&(!c||s===`simple`)?[...o,a?`none`:`line`]:[`none`]}:s===`simple`?{leaf:[...o,`line`],node:[...o,`line`],children:[...o,`line`],footer:[...o,`line`,`line`]}:{leaf:[...o,c?`last-leaf`:`leaf`,...i?[`leaf-link`]:[]],node:[...o,c?`last-leaf`:`leaf`],children:[...o,c?`none`:`line`],footer:[...o,c?`none`:`line`]}}var gf=pe(function(e,t,n,r){qn(t,or(t),e,r)}),Kre=`[object DOMException]`,qre=`[object Error]`;function Jre(e){if(!Ee(e))return!1;var t=ai(e);return t==qre||t==Kre||typeof e.message==`string`&&typeof e.name==`string`&&!nte(e)}var _f=Jre,Yre=Mn(function(e,t){try{return mt(e,void 0,t)}catch(e){return _f(e)?e:Error(e)}});function Xre(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i/g,vp={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:_p,variable:``,imports:{_:{escape:Vu}}},yp="Invalid `variable` option passed into `_.template`",bp=/\b__p \+= '';/g,xp=/\b(__p \+=) '' \+/g,Sp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cp=/[()=,{}\[\]\/\s]/,wp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tp=/($^)/,Ep=/['\n\r\u2028\u2029\\]/g,Dp=Object.prototype.hasOwnProperty;function Op(e,t,n){var r=vp.imports._.templateSettings||vp;n&&une(e,t,n)&&(t=void 0),e=Je(e),t=gf({},t,r,pp);var i=gf({},t.imports,r.imports,pp),a=No(i),o=ip(i,a),s,c,l=0,u=t.interpolate||Tp,d=`__p += '`,f=RegExp((t.escape||Tp).source+`|`+u.source+`|`+(u===_p?wp:Tp).source+`|`+(t.evaluate||Tp).source+`|$`,`g`),p=Dp.call(t,`sourceURL`)?`//# sourceURL=`+(t.sourceURL+``).replace(/\s/g,` `)+` +`:``;e.replace(f,function(t,n,r,i,a,o){return r||=i,d+=e.slice(l,o).replace(Ep,gp),n&&(s=!0,d+=`' + +__e(`+n+`) + +'`),a&&(c=!0,d+=`'; +`+a+`; +__p += '`),r&&(d+=`' + +((__t = (`+r+`)) == null ? '' : __t) + +'`),l=o+t.length,t}),d+=`'; +`;var m=Dp.call(t,`variable`)&&t.variable;if(!m)d=`with (obj) { +`+d+` +} +`;else if(Cp.test(m))throw Error(yp);d=(c?d.replace(bp,``):d).replace(xp,`$1`).replace(Sp,`$1;`),d=`function(`+(m||`obj`)+`) { +`+(m?``:`obj || (obj = {}); +`)+`var __t, __p = ''`+(s?`, __e = _.escape`:``)+(c?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+d+`return __p +}`;var h=Yre(function(){return Function(a,p+`return `+d).apply(void 0,o)});if(h.source=d,_f(h))throw h;return h}var kp=Op;const Ap=Jl({start:Boolean,end:Boolean,...Kl(),...Cu()},`VListItemAction`),jp=iu()({name:`VListItemAction`,props:Ap(),setup(e,t){let{slots:n}=t;return Wl(()=>C(e.tag,{class:R([`v-list-item-action`,{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class]),style:A(e.style)},n)),{}}});var Mp=`/* Copied from globals.scss, don't modify here directly */ +:root { + --white: #ffffff; + --black: #000000; + + --blue50: #eff6ff; + --blue100: #dbeafe; + --blue200: #bfdbfe; + --blue300: #93c5fd; + --blue400: #60a5fa; + --blue500: #3b82f6; + --blue600: #2563eb; + --blue700: #1d4ed8; + --blue800: #1e40af; + --blue900: #1e3a8a; + + --neutral-50: #f9fafb; + --neutral-100: #f4f5f7; + --neutral-200: #e5e7eb; + --neutral-300: #d2d6dc; + --neutral-400: #9fa6b2; + --neutral-500: #6b7280; + --neutral-600: #4b5563; + --neutral-700: #374151; + --neutral-800: #1f2937; + --neutral-900: #111827; + + --red600: #dc2626; + + --bde-canvas-font-family: system-ui, -apple-system, "Segoe UI", Roboto, + Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; + + --bde-app-font-family: "Avenir", Helvetica, Arial, sans-serif; + + --bde-onboarding-app-font-family: "Inter", Helvetica, Arial, sans-serif; +} + +/* everything here should be prefixed with breakdance because +these styles are mixed with any fuckery from their theme */ + +#breakdance_canvas { + position: relative; + /* note that .breakdance { position: relative { is loaded by default on the frontend, + therwise if the user uses absolute positioning, things could look different in the builder */ + /* this is necessary cuz our outlines, titlebars, etc. are positioned relative to this element */ +} + +#breakdance_canvas.dragging, +#breakdance_canvas.dragging * { + cursor: grabbing; +} + +#iframe { + margin: 4px; + border: 1px solid #eee; + background-color: white; + width: 100%; + padding: 2px; + font-family: var(--bde-canvas-font-family); + position: relative; +} + +.breakdance-icon { + display: flex; + justify-content: center; +} + +.breakdance-icon > svg { + fill: currentColor; + width: 100%; + height: 100%; +} + +@-moz-document url-prefix() { + .breakdance-icon > svg { + width: auto; + height: auto; + } +} + +.dragTaller { + height: 6px; + width: 6px; + border: 2px solid grey; + border-radius: 50%; + background-color: white; + z-index: 2000; +} + +.drag-dot { + width: 11px; + height: 11px; + border-radius: 50%; + background-color: rgb(32, 43, 67); + cursor: move; + position: absolute; + z-index: 100000; + pointer-events: auto; +} + +.drag-dots-wrapper { + position: absolute; + pointer-events: none; +} + +.drag-dot-top-left { + top: -5px; + left: -5px; +} + +.drag-dot-top-middle { + top: -5px; + left: calc(50% - 5px); +} + +.drag-dot-top-right { + top: -5px; + left: calc(100% - 5px); +} + +.drag-dot-bottom-left { + top: calc(100% - 5px); + left: -5px; +} + +.drag-dot-bottom-middle { + top: calc(100% - 5px); + left: calc(50% - 5px); +} + +.drag-dot-bottom-right { + top: calc(100% - 5px); + left: calc(100% - 5px); +} + +.drag-dot-middle-left { + top: 50%; + transform: translate(-50%, -50%); +} + +.drag-dot-middle-right { + top: 50%; + transform: translate(50%, -50%); + right: 0; +} + +.spacing-bar { + background-color: rgba(0, 0, 255, 0.2); + opacity: 0; + position: absolute; + transition: 0.3s ease-in-out opacity; + display: flex; + justify-content: center; + align-items: center; + z-index: 10000; + min-height: 5px; +} + +.spacing-bar:hover { + transition-delay: 0.2s; +} + +.spacing-bar .spacing-bar-current-value { + font-family: monospace; + color: white; + font-size: 13px; + font-weight: 500; + background-color: #5555aa; + line-height: 1; + padding: 6px; + border-radius: 4px; + pointer-events: none; +} + +.spacing-bar-inside-top { + min-height: 5px; + top: 0; + left: 0; + right: 0; +} + +/* column drag */ +.drag-dots-left-width { + margin-right: 22px; +} + +.drag-dots-column-widths-values { + display: flex; + flex-direction: row; + position: absolute; + left: -66px; + top: -8px; +} + +.drag-dots-left-width, +.drag-dots-right-width { + font-family: monospace; + color: white; + font-size: 13px; + font-weight: 500; + background-color: #5555aa; + line-height: 1; + padding: 6px; + border-radius: 4px; + width: 48px; +} + +/* Node Chrome */ + +.node-chrome, +.node-titlebar-wrapper, +.node-hover-controls { + transition: 0.3s opacity ease; +} + +.node-chrome--hide-all, +.node-chrome--hide-titlebar .node-titlebar-wrapper, +.node-chrome--hide-hover .node-hover-controls { + opacity: 0; +} + +/* Titlebars */ + +.node-titlebar-wrapper { + position: absolute; + pointer-events: none; + direction: ltr; + z-index: 10000; + outline: 1px solid rgb(32, 43, 67); + user-select: none; +} + +.node-titlebar { + pointer-events: auto; + + display: flex; + align-items: center; + position: absolute; + + bottom: 100%; + height: 28px; + padding: 0 10px; + border-radius: 4px 4px 0 0; + + font-family: var(--bde-app-font-family); + font-size: 12px; + font-weight: 500; + + letter-spacing: normal; + font-style: normal; + text-transform: none; + + background-color: rgb(32, 43, 67); + color: white; + z-index: 1000000; + + left: -1px; +} + +/* Draft */ +.node-titlebar-is-offset { + left: 0; +} + +.node-titlebar-is-draft-section { + background-color: rgb(122, 125, 133); +} + +/* + * Moving you mouse over the node titlebar or spacing bars + * will trigger an erroneous mouseleave event on the element + * you are dragging, when your mouse is not outside of it yet. + */ +.dragging .spacing-bar, +.dragging .node-titlebar { + pointer-events: none; +} + +.node-titlebar-is-dragging, +.breakdance--currently-dragging, +.builder-element.breakdance--currently-dragging { + cursor: grabbing; +} + +.breakdance--currently-dragging, +.builder-element.breakdance--currently-dragging { + opacity: 0.5; +} + +.node-titlebar-is-dragging { + /* color: rgb(32, 43, 67); */ + background-color: rgb(167, 170, 177) !important; +} + +.node-titlebar-wrapper-is-dragging { + outline: 1px solid rgb(167, 170, 177) !important; +} + +.node-titlebar-wrapper .node-titlebar-button { + color: rgba(255, 255, 255, 0.85); + cursor: pointer; +} + +.node-titlebar-button:hover { + color: rgba(255, 255, 255, 1); +} + +.node-titlebar-title { + white-space: nowrap; + cursor: grab; + display: flex; + align-items: center; + font-style: normal; + letter-spacing: normal; +} + +.node-titlebar-title .node-titlebar-button { + margin-right: 4px; + margin-left: 0px; +} + +.node-titlebar-title .node-titlebar-button svg { + cursor: grab; +} + +.node-titlebar-button-activate-parent { + margin-left: 6px; +} + +.node-titlebar-button.node-titlebar-button-activate-parent > svg { + width: 10px; + height: 10px; +} + +.node-titlebar-button { + margin-left: 9px; +} + +.node-titlebar-button > svg { + width: 13px; + height: 13px; +} + +.node-titlebar-margin-left { + margin-left: 20px; +} + +.node-titlebar--hide { + display: none!important; +} + +/* Outline Titlebar */ +.node-titlebar-wrapper--ghost { + z-index: 9999; + outline: none !important; +} + +.node-titlebar-wrapper--ghost .node-titlebar { + background-color: transparent; + color: var(--blue500); +} + +.node-titlebar-wrapper--ghost .node-titlebar-button { + color: var(--blue500); +} + +/* Other */ +.breakdance-drag-placeholder-wrapper { + pointer-events: none; +} + +.breakdance-drag-placeholder { + /* this won't work if something other than the window has position relative on it, + maybe we could mount the overlaid ui chrome inside the body, not in the canvas */ + + /* some months later + ... really? The above sounds like bullshit. I can put position relative + on all sorts of stuff and this works fine + so maybe we are already mounting the overlaid UI chrome in the right place? + */ + + position: absolute; + /* ---- */ + background-color: var(--blue500); + z-index: 100001; + display: none; + border-radius: 2px; +} + +.breakdance-drag-target-outline { + outline: 6px solid var(--blue300); + outline-offset: -6px; + z-index: 100000; + display: none; +} + +.breakdance-children-pointer-events-none > * { + pointer-events: none; +} + +/* global blocks */ +.breakdance-themeless-global-block { + cursor: default; +} + +.breakdance-themeless-global-block::selection { + background-color: transparent; +} + +.breakdance-themeless-global-block *::selection { + background-color: transparent; +} + +.breakdance-foreign-documents-overlay { + font-family: var(--bde-canvas-font-family); + position: fixed; + z-index: 9999; + outline: 1px solid rgb(255 182 216); + outline-offset: -1px; + cursor: not-allowed; + background-color: rgba(0, 0, 0, 0.1); + display: none; +} +.breakdance-foreign-documents-overlay-titlebar-wrapper { + position: absolute; + top: 0; + left: 50%; +} + +.breakdance-foreign-documents-overlay-titlebar { + position: relative; + left: -50%; + height: 28px; + padding: 0 10px; + font-family: var(--bde-canvas-font-family); + font-size: 12px; + font-weight: 500; + background-color: rgb(255 182 216); + border-radius: 0px 0px 4px 4px; + display: flex; + justify-content: center; + align-items: center; + user-select: none; +} + +.breakdance-foreign-documents-overlay-titlebar a { + cursor: pointer; + color: black; + text-decoration: none; + display: flex; + align-items: center; + justify-content: center; +} + +.breakdance-foreign-documents-overlay-titlebar a svg { + margin-left: 5px; + width: 14px; + height: 14px; +} + +.breakdance-foreign-document-wrapper:hover + .breakdance-foreign-document-wrapper__overlay { + position: absolute; + width: 100%; + height: 100%; +} + +/* node hover controls */ +.node-hover-controls { + position: absolute; + pointer-events: none; + z-index: 9999; +} + +.node-hover-controls--onboarding { + pointer-events: auto; +} + +.node-hover-controls--onboarding.node-hover-controls--outline { + outline: 1px solid var(--neutral-200); +} + +.node-hover-controls--outline { + outline: 1px solid rgb(177, 202, 255); +} + +.node-hover-controls--multi-selection { + outline: 1px solid rgb(32, 43, 67); +} + +.node-hover-controls-button { + position: absolute; + pointer-events: auto; + flex-direction: column; + + border-radius: 50%; + + width: 40px; + height: 40px; + + font-size: 20px; + font-weight: 700; + font-family: var(--bde-canvas-font-family); + background-color: rgb(32, 43, 67); + color: white; + + align-items: center; + justify-content: center; + + cursor: pointer; +} + +.node-hover-controls-bottom-button { + top: calc(100% - 20px); + left: calc(50% - 20px); +} + +.node-hover-controls-right-button { + top: 50%; + left: calc(100% - 48px); + transform: translateY(-50%); +} + +.node-hover-controls-menu { + box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); + border-radius: 3px; + font-family: var(--bde-canvas-font-family); + font-size: 13px; + font-weight: 500; + flex-direction: column; + background-color: white; + color: black; + display: none; + position: absolute; + top: calc(100% - 20px); + left: 50%; + transform: translateX(-50%); + width: 170px; + overflow: hidden; +} + +.node-hover-controls-menu > div { + padding: 9px 12px; + text-align: center; +} + +.node-hover-controls-menu > div:hover { + background-color: #fafafa; +} + +.node-hover-controls-menu--open { + display: flex; +} + +/* We do the outlining with JS to add some logic to it*/ +*:focus[contenteditable="true"] { + border: none; + outline: none; +} + +.node-content-editable { + position: absolute; + pointer-events: none; + z-index: 1000; + outline: 1px solid var(--blue500); +} + +/* EMPTY CONTAINER */ + +.breakdance-empty-container { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + min-height: 200px; +} + +.breakdance-empty-container__text { + display: flex; + flex-direction: column; + align-items: center; + gap: 16px; + justify-content: center; + font-family: var(--bde-canvas-font-family); +} + +.breakdance-empty-container__text p { + font-size: 18px; + color: var(--neutral-500); + margin: 0; +} + +.breakdance-empty-container__add-element { + font-family: var(--bde-canvas-font-family); + + display: flex; + align-items: center; + justify-content: center; + + cursor: pointer; + + user-select: none; + + background-color: var(--blue50); + width: 42px; + height: 42px; + border-radius: 3px; + margin: 10px; +} + +.breakdance-empty-container__add-element { + color: var(--blue500); +} + +.breakdance-empty-container__add-element:hover { + background-color: var(--blue100); +} + +.breakdance-empty-container__add-element--disabled, +.breakdance-empty-container__add-element--disabled:hover { + cursor: not-allowed; + background: var(--grey-100); + color: var(--grey-300); +} + +/* COLUMNS */ + +.breakdance-empty-columns { + font-family: var(--bde-canvas-font-family); + box-sizing: border-box; + width: 100%; + overflow: hidden; + background-color: white; + border-radius: 5px; + box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 100px rgba(0, 0, 0, 0.1); + padding: 50px; +} + +.breakdance-empty-columns-choices-heading { + font-weight: 500; + font-size: 16px; + text-align: center; + margin-bottom: 16px; + user-select: none; +} + +.breakdance-empty-columns-choices { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.breakdance-empty-columns-choices-row { + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-items: center; + justify-content: center; +} + +.breakdance-empty-columns-column-icon-wrapper { + padding: 4px; + margin: 16px; + cursor: pointer; + border-radius: 3px; + transition: 0.3s ease-in-out filter; + filter: grayscale(90%); +} + +.breakdance-empty-columns-column-icon-wrapper:hover { + filter: grayscale(0%); +} + +.breakdance-empty-columns-column-icon { + width: 160px; + height: 90px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; +} + +.breakdance-empty-columns-column-icon-column { + margin: 4px; + width: 100%; + background-color: #bfdbfe; + border-radius: 3px; +} + +.breakdance--empty-container:not(.breakdance--active-element) { + outline: 2px solid #eee; + outline-offset: -2px; +} + +/* ELEMENT */ + +.builder-element { + cursor: default; +} + +/* right click menu. This is duplicated in the styles.iframecss + +We need it also here because this is used both in the canvas and the structure panel +*/ + +.breakdance-canvas-right-click-menu { + -webkit-font-smoothing: antialiased; + position: absolute; /* absolute when in the canvas, fixed when in the structure panel */ + z-index: 2147483647; + font-family: var(--bde-canvas-font-family); + background-color: var(--white-fixed, var(--white)); + box-shadow: 0px 5px 5px -3px rgb(0 0 0 / 20%), + 0px 8px 10px 1px rgb(0 0 0 / 14%), 0px 3px 14px 2px rgb(0 0 0 / 12%); + min-width: 200px; + border-radius: 6px; + padding: 6px 0px; + user-select: none; + letter-spacing: normal; + font-style: normal; + text-transform: none; +} + +.breakdance-canvas-right-click-menu-item { + font-size: 13px; + font-weight: 400; + font-size: 12px; + min-height: 33px; + padding: 0 18px; + display: flex; + align-items: center; + justify-content: flex-start; + cursor: pointer; + color: #333; +} + +.breakdance-canvas-right-click-menu-item-shortcut { + margin-left: auto; + font-size: 12px; + color: var(--grey-400); +} + +.breakdance-canvas-right-click-menu-divider { + height: 1px; + background-color: #ddd; + margin-top: 4px; + margin-bottom: 4px; +} + +.breakdance-canvas-right-click-menu-item:hover:not( + .breakdance-canvas-right-click-menu-item-disabled + ) { + background-color: #eee; +} + +.breakdance-canvas-right-click-menu-item-disabled { + opacity: 0.5; + cursor: default !important; +} + +.breakdance-canvas-right-click-dropdown { + position: relative; +} + +.breakdance-canvas-right-click-submenu { + position: absolute; + left: 100%; + top: -20px; + z-index: 100000; + pointer-events: none; + opacity: 0; + min-width: 100px; + padding-top: 20px; + transition: 0.3s opacity ease; +} + +.breakdance-canvas-right-click-submenu__arrow { + margin-left: auto; +} + +.breakdance-canvas-right-click-submenu__content { + position: static !important; + translate: 4px 0; + overflow: hidden; + min-width: auto; +} + +.breakdance-canvas-right-click-dropdown:hover + .breakdance-canvas-right-click-submenu { + opacity: 1; + pointer-events: auto; +} + +.breakdance-canvas-right-click-dropdown--disabled, +.breakdance-canvas-right-click-dropdown--disabled:hover { + pointer-events: none; +} + +@media (prefers-color-scheme: dark) { + .breakdance-canvas-right-click-menu { + background-color: #1f2229; + } + + .breakdance-canvas-right-click-menu-item { + color: var(--white-fixed, var(--white)); + } + + .breakdance-canvas-right-click-menu-item:hover:not( + .breakdance-canvas-right-click-menu-item-disabled + ) { + background-color: #2c3038; + } + + .breakdance-canvas-right-click-menu-divider { + background-color: #4d535e; + } +} + +/* Structure panel */ +.breakdance-canvas-right-click-menu--structure-panel { + min-width: 155px; +} + +.breakdance-canvas-right-click-dropdown--inverted + .breakdance-canvas-right-click-submenu { + left: auto; + right: 100%; +} + +.breakdance-canvas-right-click-dropdown--inverted + .breakdance-canvas-right-click-submenu__content { + translate: -4px 0; +} + +/* Empty State */ + +.breakdance-canvas-empty-element { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + width: 100%; + padding: 30px; + text-align: center; + border: 2px dashed #c3c4c7; +} + +.breakdance-canvas-empty-element__title { + font-size: 18px; + font-weight: normal; + color: #646970; + margin-bottom: 0; +} + +/*** Warning ***/ + +.bde-ssr-error { + background: rgb(254, 242, 242); + color: var(--red600); + padding: 12px; +} + +/*** Loading ***/ + +.breakdance-empty-ssr-message { + padding: 12px; + background: rgb(242, 242, 254); + width: 100%; + display: flex; + flex-direction: column; + color: black; + font-size: 13px; + font-weight: 500; + margin: 12px 0; +} + +.breakdance-empty-ssr-message-error { + background: rgb(254, 242, 242); +} + +.breakdance-empty-ssr-message small { + margin-top: 6px; + color: black; + font-size: 11px; + font-weight: 400; +} + +.breakdance-element-is-updating:empty { + min-height: 80px; + max-width: 100%; + width: 400px; +} + +.breakdance-element-is-updating { + background: linear-gradient( + 90deg, + rgba(150, 150, 150, 0.1) 0%, + rgba(150, 150, 150, 0.3) 50%, + rgba(150, 150, 150, 0.1) 100% + ); + + background-size: 200% 100%; + animation: shimmer 1.5s infinite; + color: transparent !important; + border-radius: 4px; +} + +.breakdance-element-is-updating > * { + opacity: 0 !important; +} + +@keyframes shimmer { + 0% { + background-position: -200% 0; + } + 100% { + background-position: 200% 0; + } +} + +/* Ghost Placeholder */ + +.breakdance-drag-ghost-element { + position: fixed; + z-index: 999999; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + width: 130px; + height: 40px; + padding-left: 5px; + padding-right: 5px; + + background-color: var(--white); + border: 1px solid var(--blue600); + color: var(--blue600); + outline: none; + + border-radius: 4px; + opacity: 0.8; + + font-size: var(--text-sm); + font-weight: 500; + line-height: 1; + text-align: center; + + pointer-events: none; + + transform: translateX(-50%) translateY(-10%); + + display: none; +} + +/* Right Click Dropdown */ + +.breakdance-canvas-right-click-dropdown { + position: relative; +} + +.breakdance-canvas-right-click-submenu { + position: absolute; + left: 100%; + top: -20px; + z-index: 100000; + pointer-events: none; + opacity: 0; + min-width: 100px; + padding-top: 20px; + transition: 0.3s opacity ease; + transition: 0.3s opacity ease; +} + +.breakdance-canvas-right-click-submenu__arrow { + margin-left: auto; +} + +.breakdance-canvas-right-click-submenu__content { + position: static !important; + position: static !important; + translate: 4px 0; + overflow: hidden; + min-width: auto; +} + +.breakdance-canvas-right-click-dropdown:hover + .breakdance-canvas-right-click-submenu { + opacity: 1; + pointer-events: auto; +} + +.breakdance-canvas-right-click-dropdown--disabled, +.breakdance-canvas-right-click-dropdown--disabled:hover { + pointer-events: none; +} + +@media (prefers-color-scheme: dark) { + .breakdance-canvas-right-click-menu { + background-color: #1f2229; + } + + .breakdance-canvas-right-click-menu-item { + color: var(--white); + } + + .breakdance-canvas-right-click-menu-item:hover:not( + .breakdance-canvas-right-click-menu-item-disabled + ) { + background-color: #2c3038; + } + + .breakdance-canvas-right-click-menu-divider { + background-color: #4d535e; + } +} + +.node-hover-onboarding-controls-buttons, +.node-hover-onboarding-controls-add-section { + position: relative; + display: flex; + flex-direction: row; + border: 1px solid var(--neutral-200); + border-left: 0; + border-radius: 0 0 4px 0; + overflow: hidden; +} + +.node-hover-onboarding-controls-add-section { + border: 1px solid var(--neutral-200); + border-radius: 4px; + position: absolute; + bottom: -12px; + left: 50%; + transform: translateX(-50%); +} + +.node-hover-onboarding-controls-buttons__button { + /* reset button CSS */ + background-color: transparent; + border: none; + color: inherit; + font: inherit; + cursor: pointer; + outline: inherit; + padding: 0; + margin: 0; + text-align: left; + text-decoration: none; + display: flex; + align-items: center; + justify-content: center; + /* styles */ + background-color: #fff; + font-family: var(--bde-onboarding-app-font-family); + padding: 4px 12px; + gap: 4px; + font-size: 14px; + font-weight: 500; + border-right: 1px solid var(--neutral-200); +} + +.node-hover-onboarding-controls-buttons__button[disabled] { + opacity: 0.5; +} + +@keyframes spin { + 100% { + transform: rotate(360deg); + } +} + +.is-spinning { + animation: spin 0.8s infinite linear; +} + +.node-hover-onboarding-controls-buttons__button:hover { + background-color: var(--neutral-100); +} + +.node-hover-onboarding-controls-buttons__button:last-child { + border-right: 0; +} + +.node-onboarding-palette-button__color { + width: 20px; + height: 16px; +} + +.node-hover-onboarding-controls-palette-buttons { + display: flex; + border-right: 1px solid var(--neutral-200); +} + +.node-hover-onboarding-controls-buttons__colors-wrap { + border: 1px solid var(--neutral-300); + border-radius: 4px; + overflow: hidden; + display: flex; +} + +/* Inline Editor */ +.breakdance-inline-editor { + display: contents; +} + +.breakdance-inline-editor__loader { + padding: 10px; + text-align: center; +} + +.breakdance-inline-editor-backdrop { + position: fixed; + top: 0; + left: 0; + height: 100vh; + width: 100vw; + background: rgba(0, 0, 0, 0.3); + pointer-events: auto; + z-index: 9999; + cursor: pointer; +} +`,Np=`.node-chrome--singularity { + /* tailwind blue */ + --singularity-node-blue-50: #eff6ff; + --singularity-node-blue-100: #dbeafe; + --singularity-node-blue-200: #bfdbfe; + --singularity-node-blue-300: #93c5fd; + --singularity-node-blue-400: #60a5fa; + --singularity-node-blue-500: #3b82f6; + --singularity-node-blue-600: #2563eb; + --singularity-node-blue-700: #1d4ed8; + --singularity-node-blue-800: #1e40af; + --singularity-node-blue-900: #1e3a8a; + + /* tailwind neutral */ + --singularity-node-neutral-50: #fafafa; + --singularity-node-neutral-100: #f5f5f5; + --singularity-node-neutral-200: #e5e7eb; + --singularity-node-neutral-300: #d1d5db; + --singularity-node-neutral-400: #9ca3af; + --singularity-node-neutral-500: #6b7280; + --singularity-node-neutral-600: #4b5563; + --singularity-node-neutral-700: #374151; + --singularity-node-neutral-800: #1f2937; + --singularity-node-neutral-900: #111827; + + /* tailwind purple */ + --singularity-node-purple-50: #f5f3ff; + --singularity-node-purple-100: #ede9fe; + --singularity-node-purple-200: #ddd6fe; + --singularity-node-purple-300: #c4b5fd; + --singularity-node-purple-400: #a78bfa; + --singularity-node-purple-500: #8b5cf6; + --singularity-node-purple-600: #7c3aed; + --singularity-node-purple-700: #6d28d9; + --singularity-node-purple-800: #5b21b6; + --singularity-node-purple-900: #4c1d95; + + /* tailwind teal */ + --singularity-node-teal-50: #f0fdfa; + --singularity-node-teal-100: #ccfbf1; + --singularity-node-teal-200: #99f6e4; + --singularity-node-teal-300: #5eead4; + --singularity-node-teal-400: #2dd4bf; + --singularity-node-teal-500: #14b8a6; + --singularity-node-teal-600: #0d9488; + --singularity-node-teal-700: #0f766e; + --singularity-node-teal-800: #115e59; + --singularity-node-teal-900: #134e4a; + + /* tailwind typography sizing */ + --singularity-node-font-size-xs: 12px; + --singularity-node-font-size-sm: 14px; + --singularity-node-font-size-base: 16px; + --singularity-node-font-size-lg: 18px; + --singularity-node-font-size-xl: 20px; + --singularity-node-font-size-2xl: 24px; + --singularity-node-font-size-3xl: 30px; +} + +.node-chrome--singularity .singularity-canvas-button { + pointer-events: auto; + background-color: var(--singularity-node-blue-600); + transition: all 0.2s ease-in-out; + border-radius: 4px; + color: white; + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + padding: 6px 8px; + border-radius: 4px; + cursor: pointer; + font-family: var(--bde-app-font-family); + font-size: 14px; +} + +.node-chrome--singularity .singularity-canvas-button--large { + padding: 12px 16px; +} + +.node-chrome--singularity .singularity-canvas-button:hover { + background-color: var(--singularity-node-blue-500); +} + +.node-chrome--singularity .singularity-canvas-button:active { + background-color: var(--singularity-node-blue-700); + transform: scale(0.98); +} + +.node-chrome--singularity .singularity-canvas-button__text { + font-size: 13px; + font-weight: 500; + line-height: 1; + font-family: var(--bde-app-font-family); + flex-shrink: 0; +} + +.node-chrome--singularity + .singularity-canvas-button--large + .singularity-canvas-button__text { + font-size: 16px; +} + +.node-chrome--singularity .singularity-canvas-button__icon { + font-size: 16px; + flex-shrink: 0; +} + +.node-chrome--singularity .singularity-button-group { + display: flex; + flex-direction: column; + gap: 8px; + padding: 4px; + border-radius: 6px; + background-color: var(--singularity-node-blue-600); +} + +.node-chrome--singularity .singularity-position-wrapper { + position: absolute; +} + +.node-chrome--singularity .singularity-position-wrapper--center { + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + +.node-chrome--singularity .singularity-position-wrapper--bottom-center { + bottom: 0; + left: 50%; + transform: translate(-50%, 50%); +} + +.node-chrome--singularity .singularity-position-wrapper--right-center { + top: 50%; + right: 0; + transform: translate(50%, -50%); +} + +.node-chrome--singularity .singularity-sticky-section-edit { + position: sticky; + top: 0; + left: 0; + padding: 24px; + z-index: 1000; + display: inline-flex; +} + +.node-chrome--singularity + .node-singularity-hover-controls.node-hover-controls--outline { + outline: 3px solid var(--singularity-node-blue-400); + outline-offset: 0; +} + +.node-chrome--singularity .singularity-node-titlebar-wrapper { + outline: 3px solid var(--singularity-node-blue-600); + outline-offset: -3px; +} + +.node-chrome--singularity + .node-singularity-hover-controls.node-hover-controls--active { + outline: 3px solid var(--singularity-node-blue-600); + outline-offset: 0; +} + +.node-chrome--singularity .node-titlebar-wrapper { + display: none; +} + +.node-chrome--singularity .node-singularity-hover-controls { + z-index: 1001 !important; +} + +.node-chrome--singularity .singularity-node-titlebar-wrapper { + position: absolute; + pointer-events: none; + direction: ltr; + z-index: 1000; + user-select: none; +} + +.node-chrome--singularity .singularity-node-titlebar { + pointer-events: auto; + display: flex; + align-items: center; + position: absolute; + bottom: 100%; + padding: 4px; + border-radius: 4px 4px 0 0; + font-family: var(--bde-app-font-family); + font-size: 13px; + font-weight: 500; + letter-spacing: normal; + height: 32px; + font-style: normal; + text-transform: none; + background-color: var(--singularity-node-blue-600); + color: white; + z-index: 1000000; + min-width: 85px; + left: 2px; +} + +.node-chrome--singularity .singularity-node-titlebar.is-hidden { + display: none; +} + +.node-chrome--singularity .singularity-node-titlebar__text { + padding: 4px 6px; +} + +.node-chrome--singularity .singularity-canvas-add-another-button { + pointer-events: auto; + background-color: var(--singularity-node-blue-600); + position: absolute; + transition: all 0.2s ease-in-out; + border-radius: 100%; + color: #fff; + padding: 4px; + display: flex; + align-items: center; + justify-content: center; + width: 40px; + font-size: 20px; + height: 40px; + bottom: 50%; + right: 0; + cursor: pointer; + transform: translate(50%, 50%); +} + +.node-chrome--singularity + .singularity-canvas-add-another-button:hover + .singularity-canvas-add-another-button__inner { + background-color: var(--singularity-node-blue-500); +} + +.node-chrome--singularity .singularity-canvas-add-another-button__inner { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + border-radius: 100%; + height: 100%; + background-color: var(--singularity-node-blue-600); + transition: background-color 0.2s ease-in-out; +} + + +.section-currently-rewriting-with-ai + .builder-element:not( + .breakdance--container-type-element + ) { + color: transparent !important; + pointer-events: none; + position: relative; + border: 0 !important; + isolation: isolate; +} + +.section-currently-rewriting-with-ai + .builder-element:not( + .breakdance--container-type-element + )::before { + content: ""; + position: absolute; + top: 0; + left: 0; + display: block; + background-color: #d1d1d1; + width: 100%; + height: 100%; + z-index: 1; + animation: shimmer 3s infinite linear; + background-image: linear-gradient( + 90deg, + #d1d1d1 0%, + #f0f0f0 40%, + #d1d1d1 80% + ); + background-size: 200% 100%; +} + +.section-currently-rewriting-with-ai .ee-gallery-item-caption, +.section-currently-rewriting-with-ai .swiper-pagination, +.section-currently-rewriting-with-ai .swiper-button-prev +.section-currently-rewriting-with-ai .swiper-button-next +{ + visibility: hidden; +} + +.section-currently-rewriting-with-ai img, .section-currently-populating-images-with-ai img { + content: url('data:image/svg+xml;utf8,'); + background: linear-gradient(90deg, #d1d1d1 0%, #f0f0f0 40%, #d1d1d1 80%); + background-size: 200% 100%; + animation: shimmer 3s infinite linear; +} + +@keyframes shimmer { + 0% { + background-position: -200% 0; + -webkit-mask-position: -200% 0; + mask-position: -200% 0; + } + 100% { + background-position: 200% 0; + -webkit-mask-position: 200% 0; + mask-position: 200% 0; + } +} + +.section-currently-rewriting-with-ai .section-background-overlay { + opacity: 1 !important; + background-color: transparent !important; + backdrop-filter: blur(100px) !important; +} + +.node-chrome--singularity + .breakdance-foreign-documents-overlay--singularity-mode { + outline: 4px solid rgb(43, 105, 205); + outline-offset: -4px; + cursor: pointer; +} + +.node-chrome--singularity + .breakdance-foreign-documents-overlay--singularity-mode + .breakdance-foreign-documents-overlay-titlebar { + transform: translate(-50%, -50%); + position: absolute; + background-color: rgb(43, 105, 205); + --addSectionButtonWidth: 160px; + --addSectionButtonHeight: 60px; + width: var(--addSectionButtonWidth); + height: var(--addSectionButtonHeight); + border-radius: 8px; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; +} + +.node-chrome--singularity + .breakdance-foreign-documents-overlay--singularity-mode + .breakdance-foreign-documents-overlay-titlebar + a, +.node-chrome--singularity + .breakdance-foreign-documents-overlay--singularity-mode + .breakdance-foreign-documents-overlay-titlebar + a:hover { + color: white; + font-size: 20px; +} + +.node-chrome--singularity + .breakdance-foreign-documents-overlay--singularity-mode + .breakdance-foreign-documents-overlay-titlebar-wrapper { + top: 50%; + left: 50%; +} + +.node-chrome--singularity + .breakdance-foreign-documents-overlay--singularity-mode + .breakdance-icon { + display: none; +} + +.breakdance-empty-container-singularity { + position: relative; + font-family: var(--bde-app-font-family); +} + +.breakdance-empty-container-singularity__title { + font-size: var(--singularity-node-font-size-3xl); + margin: 0; + color: var(--singularity-node-neutral-900); + font-family: var(--bde-app-font-family) !important; +} + +.breakdance-empty-container-singularity__text { + font-size: var(--singularity-node-font-size-base); + margin: 0; + color: var(--singularity-node-neutral-500); + font-family: var(--bde-app-font-family); +} + +.breakdance-empty-container-singularity__content { + padding: 80px; + font-family: var(--bde-app-font-family); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 24px; + width: 100%; + background-color: #fff; +} + +.breakdance-empty-container-singularity__header { + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; +} + +.breakdance-empty-container-singularity__icon { + color: var(--singularity-node-neutral-300); + margin-bottom: 16px; +} + +.breakdance-empty-container-singularity__option { + display: inline-flex; + flex-direction: column; + justify-content: space-between; + padding: 24px; + width: 100%; + background-color: var(--singularity-node-neutral-100); + border-radius: 8px; + cursor: pointer; + aspect-ratio: 1 / 1; + min-height: 300px; + cursor: pointer; + user-select: none; +} + +.breakdance-empty-container-singularity__options { + display: flex; + gap: 16px; + flex-wrap: nowrap; + justify-content: center; +} + +.breakdance-empty-container-singularity__option-text { + display: flex; + flex-direction: column; + gap: 8px; +} + +.breakdance-empty-container-singularity__option-text h2 { + margin: 0; + font-size: var(--singularity-node-font-size-xl); + color: var(--singularity-node-neutral-900); + font-family: var(--bde-app-font-family); +} + +.breakdance-empty-container-singularity__option-text p { + margin: 0; + font-size: var(--singularity-node-font-size-base); + color: var(--singularity-node-neutral-500); + font-family: var(--bde-app-font-family); +} + +.breakdance-empty-container-singularity__option:hover { + background-color: var(--singularity-node-blue-50); + border-color: var(--singularity-node-blue-300); + color: var(--singularity-node-blue-600); +} + +.breakdance-empty-container-singularity__option:active { + background-color: var(--singularity-node-blue-600); + border-color: var(--singularity-node-blue-400); + color: #fff; +} + +.breakdance-empty-container-singularity__option:hover h2 { + color: var(--singularity-node-blue-600); +} + +.breakdance-empty-container-singularity__option:hover p { + color: var(--singularity-node-blue-500); +} + +.breakdance-empty-container-singularity__option:active h2, +.breakdance-empty-container-singularity__option:active p { + color: #fff; +} + +/* .breakdance-empty-container-singularity__option:focus { + outline: 2px solid var(--singularity-node-blue-600); + outline-offset: 2px; +} */ +`,Pp=`/* Future Layer Canvas UX Styles */ + +:root { + --singularity-outline-width: 3px; +} + +/* Active Element Wrapper - zero sized, positioned at element top-left */ +.futurelayer-active-element-wrapper { + position: absolute; + z-index: 9999; + pointer-events: auto; +} + +/* Active Element Outline - darker than hover */ +.futurelayer-active-element-outline { + position: absolute; + border: var(--singularity-outline-width) solid + var(--singularity-node-blue-600); + box-sizing: border-box; + pointer-events: none; +} + +/* Hovered Element Wrapper - zero sized, positioned at element top-left */ +.futurelayer-hovered-element-wrapper { + position: absolute; + z-index: 9998; + pointer-events: auto; +} + +/* Hovered Element Outline - lighter than active */ +.futurelayer-hovered-element-outline { + position: absolute; + border: var(--singularity-outline-width) solid + var(--singularity-node-blue-300); + box-sizing: border-box; + pointer-events: none; +} + +/* Hovered Header/Footer Wrapper - zero sized, positioned at element top-left */ +.futurelayer-hovered-header-footer-wrapper { + position: absolute; + z-index: 9998; + pointer-events: auto; +} + +/* Hovered Header/Footer Outline - transparent black overlay with cursor pointer */ +.futurelayer-hovered-header-footer-outline { + position: absolute; + background-color: var(--singularity-node-teal-100); + border: var(--singularity-outline-width) solid + var(--singularity-node-teal-500); + opacity: 0.3; + box-sizing: border-box; + pointer-events: none; + cursor: pointer; +} + +/* Header/Footer Controls - covers entire element with pointer events */ +.futurelayer-header-footer-controls { + position: absolute; + display: flex; + align-items: center; + justify-content: center; + pointer-events: auto; + cursor: pointer; +} + +.futurelayer-header-footer-edit-button { + padding: 8px 16px; + font-size: 14px; + border: none; + border-radius: 4px; + cursor: pointer; + font-weight: 500; + line-height: 1; + background-color: var(--singularity-node-teal-600); + color: white; + white-space: nowrap; + font-family: var(--bde-app-font-family); +} + +.futurelayer-header-footer-edit-button:hover { + background-color: var(--singularity-node-teal-700); +} + +/* Repeatable Item Wrapper - zero sized, positioned at element top-left */ +.futurelayer-repeatable-item-wrapper { + position: absolute; + z-index: 9997; + pointer-events: auto; +} + +/* Repeatable Item Outline - positioned relative to wrapper */ +.futurelayer-repeatable-item-outline { + position: absolute; + outline: var(--singularity-outline-width) solid + var(--singularity-node-blue-100); + outline-offset: 0px; + box-sizing: border-box; + pointer-events: none; +} + +/* Repeatable Item Controls - positioned above the outline, aligned with right edge */ +.futurelayer-repeatable-item-controls { + position: absolute; + top: -32px; + height: 32px; + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + pointer-events: auto; +} + +.futurelayer-repeatable-control-button, +.futurelayer-link-control-button { + padding: 4px 8px; + font-size: 12px; + border-radius: 4px; + border: none; + cursor: pointer; + font-weight: 500; + line-height: 1; + color: var(--singularity-node-blue-600); + background-color: var(--singularity-node-blue-100); + transition: all 0.2s ease-in-out; + white-space: nowrap; + font-family: var(--bde-app-font-family); +} + +.futurelayer-repeatable-control-button.move-left, .futurelayer-repeatable-control-button.move-right { + padding: 4px 4px; +} + +.futurelayer-repeatable-control-button:hover { + background-color: var(--singularity-node-blue-200); +} + +.futurelayer-repeatable-control-button.remove:hover { + background-color: var(--red600); + color: white; +} + +/* Link Wrapper Components */ +.futurelayer-link-control-button { + background-color: var(--singularity-node-blue-600); + color: white; +} + +.futurelayer-link-control-button:hover { + background-color: var(--singularity-node-blue-700); +} + +/* Flippable Element Wrapper - zero sized, positioned at element top-left */ +.futurelayer-flippable-element-wrapper { + position: absolute; + z-index: 9997; + pointer-events: auto; +} + +/* Flippable Element Outline - positioned relative to wrapper */ +.futurelayer-flippable-element-outline { + position: absolute; + outline: var(--singularity-outline-width) solid + var(--singularity-node-blue-100); + outline-offset: 0px; + box-sizing: border-box; + pointer-events: none; +} + +/* Flippable Element Controls - positioned above the outline, aligned with right edge */ +.futurelayer-flippable-element-controls { + position: absolute; + top: -32px; + height: 32px; + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + pointer-events: auto; +} + +.futurelayer-flippable-control-button { + padding: 4px 8px; + font-size: 12px; + border-radius: 4px; + border: none; + cursor: pointer; + font-weight: 500; + line-height: 1; + color: var(--singularity-node-blue-600); + background-color: var(--singularity-node-blue-100); + transition: all 0.2s ease-in-out; + white-space: nowrap; + font-family: var(--bde-app-font-family); +} + +.futurelayer-flippable-control-button:hover { + background-color: var(--singularity-node-blue-200); +} + +/* Link Wrapper Wrapper - zero sized, positioned at element top-left */ +.futurelayer-link-wrapper-wrapper { + position: absolute; + z-index: 9996; + pointer-events: auto; +} + +/* Link Wrapper Outline - positioned relative to wrapper */ +.futurelayer-link-wrapper-outline { + position: absolute; + border: 1px dotted #ff6b35; + box-sizing: border-box; + pointer-events: none; +} + +/* Link Wrapper Controls - positioned below the outline, aligned with right edge */ +.futurelayer-link-wrapper-controls { + position: absolute; + height: 28px; + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + pointer-events: auto; +} + + +/* Gallery Image Wrapper - zero sized, positioned at image top-left */ +.futurelayer-gallery-image-wrapper { + position: absolute; + z-index: 9997; + pointer-events: auto; +} + +/* Gallery Image Outline - positioned relative to wrapper */ +.futurelayer-gallery-image-outline { + position: absolute; + outline: var(--singularity-outline-width) solid + var(--singularity-node-blue-100); + outline-offset: 0px; + box-sizing: border-box; + pointer-events: none; +} + +/* Add Section Controls - positioned at bottom center of section with 50% overlap */ +.futurelayer-add-section-controls { + position: absolute; + display: flex; + align-items: center; + justify-content: center; + pointer-events: auto; +} + +.futurelayer-add-section-button { + padding: 8px 16px; + font-size: 14px; + border: none; + font-family: var(--bde-app-font-family); + border-radius: 4px; + cursor: pointer; + font-weight: 500; + line-height: 1; + background-color: var(--singularity-node-blue-600); + color: white; + white-space: nowrap; +} + +.futurelayer-add-section-button:hover { + background-color: var(--singularity-node-blue-700); +} + +/* Removable Element Wrapper - zero sized, positioned at element top-left */ +.futurelayer-removable-element-wrapper { + position: absolute; + z-index: 9999; + pointer-events: auto; +} + +/* Removable Element Controls - positioned to the right of the element */ +.futurelayer-removable-element-controls { + position: absolute; + display: flex; + flex-direction: row; + align-items: center; + gap: 4px; + pointer-events: auto; +} + +.futurelayer-removable-control-button { + padding: 4px; + font-size: 12px; + border-radius: 4px; + border: none; + cursor: pointer; + font-weight: 500; + line-height: 1; + color: var(--singularity-node-blue-600); + background-color: var(--singularity-node-blue-100); + transition: all 0.2s ease-in-out; + white-space: nowrap; + font-family: var(--bde-app-font-family); + display: flex; + align-items: center; + justify-content: center; +} + +.futurelayer-removable-control-button:hover { + background-color: var(--singularity-node-blue-200); +} + +.futurelayer-removable-control-button.delete:hover { + background-color: var(--red600); + color: white; +} + +/* Removed Elements - use opacity instead of display: none */ +[data-futurelayer-removed="true"] { + opacity: 0.2 !important; + filter: grayscale(100%); +} +`,Fp=1,Ip=3;function Lp(e,t,{enableContentEditableAndFocus:n,saveContentEditable:r}){let i=e=>{let a=[];return e.forEach(e=>{if(e.nodeType===Ip){let n=e.nodeValue;if(n?.trim()===`%%CHILDREN%%`){let e=t();Array.isArray(e)?a.push(...e):a.push(e)}else n&&a.push(n)}else if(e.nodeType===Fp&&e instanceof Element){let t=e.attributes,o=e.nodeName.toLowerCase(),s={},c={},l=[];for(let i=0;i0?l:void 0))}}),a},a=new DOMParser,o=a.parseFromString(e,`text/html`).body,s=new XMLSerializer().serializeToString(o).replace(//,``).replace(``,``);return i(a.parseFromString(``+s+``,`application/xhtml+xml`).documentElement.childNodes)}const Rp=Do([wr({html:Bt}),zo]);var zp={};function Bp(e,t,n){let r=[],i;return async(...a)=>{if(i=a,zp[n])return clearTimeout(zp[n]),new Promise(a=>{r.push(a),zp[n]=setTimeout(()=>{let t=e(...i);r.forEach(e=>e(t)),r=[],delete zp[n]},t)});{let o=e(...a);return zp[n]=setTimeout(()=>{if(r.length>0){let t=e(...i);r.forEach(e=>e(t)),r=[]}delete zp[n]},t),o}}}function Vp(e,t,n,r){let i=yo(B.document.tree.root,[e]),a=i.length,o=i.findIndex(e=>e.id===n);return Bp(()=>as({action:`breakdance_server_side_render`,overrideAjaxUrl:So(),dataToPost:{properties:Ha(t),parentProperties:Ha(r),elementSlug:e,triggeringDocument:B.document.documentMeta.id,totalMatchingElements:a,currentIndexInMatchingElements:o},decoder:Rp}),1e3,n)()}var Hp=Qt(),Up=class extends W{get canAddElement(){return F.hasFullAccess}openAddPanel(e){e.preventDefault(),e.stopPropagation(),this.canAddElement&&(vn(`add`),F.activateElement(this.id))}};K([Z({default:null})],Up.prototype,`id`,void 0),Up=K([J({components:{Icon:X}})],Up);var Wp=Y(Up),Gp={class:`breakdance-empty-container`,id:`breakdance-empty-container`};function Kp(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,Gp,[w(`div`,{class:R([`breakdance-empty-container__add-element`,{"breakdance-empty-container__add-element--disabled":!e.canAddElement}]),onClick:t[0]||=(...t)=>e.openAddPanel&&e.openAddPanel(...t)},[C(o,{icon:`PlusIcon`,size:`22`})],2)])}var qp=q(Wp,[[`render`,Kp]]),Jp=class extends W{addColumns(e,t,n){e.preventDefault(),e.stopPropagation();let r=[],i=n?n.map(e=>{let t=no(e);return ja({},Wo,{number:t,unit:`%`,style:`${t}%`})}):[];for(let e=0;e{B.addMultipleNodes({nodes:r,parentId:this.id}),n||rs(this.id)},`Set amount of columns to ${t}`),vn(`elementproperties`)}};K([Z()],Jp.prototype,`id`,void 0),Jp=K([J({})],Jp);var Yp=Y(Jp),Xp={class:`breakdance-empty-columns`},Zp={class:`breakdance-empty-columns-choices-heading`},Qp={class:`breakdance-empty-columns-choices`},$p={class:`breakdance-empty-columns-choices-row`},em={class:`breakdance-empty-columns-choices-row`};function tm(e,t,n,r,i,a){return z(),E(`div`,Xp,[w(`div`,Zp,D(e.__(`Choose a column structure`)),1),w(`div`,Qp,[w(`div`,$p,[w(`div`,{class:`breakdance-empty-columns-column-icon-wrapper`,onClick:t[0]||=t=>e.addColumns(t,2)},[...t[5]||=[w(`div`,{class:`breakdance-empty-columns-column-icon`},[w(`div`,{class:`breakdance-empty-columns-column-icon-column`}),w(`div`,{class:`breakdance-empty-columns-column-icon-column`})],-1)]]),w(`div`,{class:`breakdance-empty-columns-column-icon-wrapper`,onClick:t[1]||=t=>e.addColumns(t,3)},[...t[6]||=[w(`div`,{class:`breakdance-empty-columns-column-icon`},[w(`div`,{class:`breakdance-empty-columns-column-icon-column`}),w(`div`,{class:`breakdance-empty-columns-column-icon-column`}),w(`div`,{class:`breakdance-empty-columns-column-icon-column`})],-1)]]),w(`div`,{class:`breakdance-empty-columns-column-icon-wrapper`,onClick:t[2]||=t=>e.addColumns(t,4)},[...t[7]||=[rr(`
`,1)]])]),w(`div`,em,[w(`div`,{class:`breakdance-empty-columns-column-icon-wrapper`,onClick:t[3]||=t=>e.addColumns(t,2,[35,65])},[...t[8]||=[w(`div`,{class:`breakdance-empty-columns-column-icon`},[w(`div`,{class:`breakdance-empty-columns-column-icon-column`,style:{width:`35%`}}),w(`div`,{class:`breakdance-empty-columns-column-icon-column`,style:{width:`65%`}})],-1)]]),w(`div`,{class:`breakdance-empty-columns-column-icon-wrapper`,onClick:t[4]||=t=>e.addColumns(t,2,[65,35])},[...t[9]||=[w(`div`,{class:`breakdance-empty-columns-column-icon`},[w(`div`,{class:`breakdance-empty-columns-column-icon-column`,style:{width:`65%`}}),w(`div`,{class:`breakdance-empty-columns-column-icon-column`,style:{width:`35%`}})],-1)]])])])])}var nm=q(Yp,[[`render`,tm]]),rm=[`jquery`,`wp-polyfill-js`];function im(){let e=window.Breakdance.canvas.document,t=e.querySelectorAll(`script`);for(let n of t){if(rm.find(e=>n.id.toLowerCase().includes(e)||n.src.toLowerCase().includes(e)))continue;let t=am(n);n.remove(),e.querySelector(`body`)?.appendChild(t)}}function am(e){let t=document.createElement(`script`);return Array.from(e.attributes).forEach(e=>{t.setAttribute(e.name,e.value)}),e.src?t.src=e.src:t.innerHTML=e.innerHTML,t}const om=(e,t)=>` +
+ The "${e}" element requires the plugins "${t.join(`, `)}". Please check that they are installed and activated from the Plugins page of the WP admin. +
`;var sm=Jte();function cm(e){return e?.parentElement?.classList?.contains(`oxy-component`)&&e?.children?.length?e.children[0]?.getBoundingClientRect():e?.parentElement?.getBoundingClientRect()}function lm(e,t){return!e||!t?e===t:Math.abs(e.top-t.top)<1&&Math.abs(e.left-t.left)<1&&Math.abs(e.bottom-t.bottom)<1&&Math.abs(e.right-t.right)<1&&Math.abs(e.width-t.width)<1&&Math.abs(e.height-t.height)<1}function um(e){zl(()=>{let t=cm(e);if(!t||!F.inlineEditingContext)return;let n=F.inlineEditingRect;n&&lm(t,n)||F.setInlineEditingRect(t)})}function dm(e){let t=()=>um(e),n=Al(t,16),r=window.Breakdance?.canvas?.document;r.addEventListener(`scroll`,n,{passive:!0});let i=new ResizeObserver(t),a=r.defaultView?.ResizeObserver,o=a?new a(t):null;return i?.observe(document.querySelector(`#iframe-wrapper`)),o?.observe(e.parentElement??e),t(),()=>{r.removeEventListener(`scroll`,n),i?.disconnect(),o?.disconnect()}}function fm(e,t,n,r){if(!n)return e;let i=new DOMParser().parseFromString(n,`text/html`),a=e=>{let t=[],n=e.parentElement;for(;n&&n.tagName.toLowerCase()!==`body`;)t.push({tag:n.tagName.toLowerCase(),className:n.className||``}),n=n.parentElement;return t},o=i.querySelector(r);if(!o)return e;let s=a(o),c=ut(o.tagName.toLowerCase(),{class:o.className},[e]);return s.reverse().reduceRight((e,t)=>ut(t.tag.toLowerCase(),{class:t.className},Array.isArray(e)?e:[e]),[c,...t])}function pm(e,t){if(!e)return[];let n=new DOMParser().parseFromString(e,`text/html`).querySelectorAll(t);return n?Array.from(n).slice(1).map(e=>({tag:e.tagName.toLowerCase(),className:e.className||``,innerHTML:e.innerHTML})):[]}function mm(e){return e.map((e,t)=>{let n=e.tag;return ut(n,{key:`placeholder-${t}`,class:`breakdance-inline-editor-placeholder ${e.className}`,innerHTML:e.innerHTML})})}function hm(e,t,n){let{children:r}=t;return delete t.children,arguments.length>2&&(t.key=n),ut(e,t,r)}var gm=class extends W{constructor(...e){super(...e),this.saving=!1,this.resizeObserver=null,this.blockId=null,this.nodes=[],this.unsubscribe=()=>{}}onElementChange(){this.context?.showBackdrop&&um(this.$refs.container)}get context(){return F.inlineEditingContext}get postId(){return B.document.documentMeta.id}get selector(){return`[data-inline-editable-node="${this.postId}-${this.element.id}"]`}get ssrNodePlaceholders(){return pm(this.ssrTemplate,this.selector)}async mounted(){this.context?.showBackdrop&&(this.unsubscribe=dm(this.$refs.container)),this.context?.scrollToElementOnStart&&this.$nextTick(()=>Bi())}async beforeUnmount(){this.unsubscribe&&this.unsubscribe()}render(){let e=hm(`div`,{class:`breakdance-inline-editor__loader`,children:`Loading Block...`}),t=hm(`div`,{class:`breakdance-inline-editor`,ref:`container`,children:this.context?.loading?e:this.$slots.default?.()}),n=mm(this.ssrNodePlaceholders);return this.ssrTemplate?fm(t,n,this.ssrTemplate,this.selector):t}};K([Z()],gm.prototype,`element`,void 0),K([Z()],gm.prototype,`ssrTemplate`,void 0),K([G(`element`,{deep:!0})],gm.prototype,`onElementChange`,null),gm=K([J({components:{BuilderElement:Co(()=>tt(()=>import(`./BuilderElement-8RpSw1sN.js`),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url))}})],gm);var _m=Y(gm);function vm(e){return!1}var ym=Ws(),bm,xm=jr(la,500),Sm=bm=class extends W{constructor(...e){super(...e),this.isActive=!1,this.isUpdating=!1,this.currentlyDragging=!1,this.lastModifiedPropertyPath=null,this.uniqueId=Nt(),this.ssrInnerHtml=null,this.oldSsrParentProperties=T(this.ssrParentProperties),this.oldTwigProps=T(this.elementProps),this.dragMouseStartX=!1,this.dragMouseStartY=!1,this.easyEvent=new pd,this.debouncedLoadDynamicData=jr(this.loadDynamicData,500,{leading:!0})}get isEmptyContainer(){let e=Dr(this.element.data.type).type;return(e===`popup`||e===`container`||e===`container-link`||e===`section`)&&this.element.children.length===0}get isContainerTypeElement(){let e=Dr(this.element.data.type).type;return e===`popup`||e===`container`||e===`container-link`||e===`container-restricted`||e===`container-excluding-self`||e===`section`}get isEmptyColumns(){return this.element.data.type===`EssentialElements\\Columns`&&this.element.children.length===0}get parentProps(){let e=this.baseElement.settings&&this.baseElement.settings.sharePropsWithSSRChildren,{design:t,...n}=this.elementProps||{};return(e?n:this.ssrParentProperties)||{}}get builderMode(){return I.builderMode}get isInlineEditing(){return F.isElementBeingEditedInline(this.element.id)}__render(){let e=this.rootTag;if(!this.shouldShow)return!1;if(this.isEmptyColumns)return hm(e,{...this.attributes,onMousedown:this.activateAndMaybeStartDrag,onDragstart:this.disableDefaultDrag,onClick:this.maybePreventDefault,class:this.classList,children:hm(nm,{id:this.element.id})});let t=qe(qe(this.processedTemplate,{ssr:this.ssrValueOrMessage}),this.tags),n=this.isEmptyContainer?hm(qp,{id:this.element.id}):this.element.children.map(e=>hm(bm,{element:e,parentId:this.element.id,ssrParentProperties:this.parentProps},e.id)),r=!this.isInlineEditing&&(this.contentEditablePropertyPath||this.ssrValueOrMessage!==null&&!this.ssrValueOrMessage.includes(`%%CHILDREN%%`)),i={...this.attributes,class:this.classList.join(` `)};r&&(i.innerHTML=t);let a=r?[]:Lp(t,()=>n,{enableContentEditableAndFocus:this.enableContentEditableAndFocus,saveContentEditable:this.saveContentEditable});return ut(this.rootTag,{...i,onClick:this.maybePreventDefault,onMousedown:this.activateAndMaybeStartDrag,onDragstart:this.disableDefaultDrag,onDblclick:this.handleDoubleClick,onBlur:this.contentEditablePropertyPath?this.saveContentEditable:()=>{}},this.isInlineEditing?[ut(_m,{element:this.element,ssrTemplate:qe(this.ssrInnerHtml||``,this.tags)},{default:()=>a})]:a)}render(){return this.__render()}get processedTemplate(){if(this.isInlineEditing)return`%%CHILDREN%%`;if(!this.hasRequiredPluginsAndTheyAreAvailable&&this.baseElement.settings&&this.baseElement.settings.requiredPlugins)return om(this.baseElement.name,this.baseElement.settings.requiredPlugins);let e=ir(this.baseElement.template,this.twigPropsAndPreset,ul(this.baseElement));return e?qe(e,this.tags):``}get shouldSsr(){if(!this.processedTemplate.includes(`%%SSR%%`))return!1;if(this.refreshSsr||this.lastModifiedPropertyPath===null)return!0;let e=this.baseElement.propertyPathsToSsrElementWhenValueChanges;return e?e.some(e=>this.lastModifiedPropertyPath?.startsWith(e)):!0}get refreshSsr(){return F.refreshSsrElementId?F.refreshSsrElementId===this.element.id:!1}get hasRequiredPluginsAndTheyAreAvailable(){return!this.baseElement.settings||!this.baseElement.settings.requiredPlugins?!0:this.baseElement.settings.requiredPlugins.filter(e=>I.availableWordpressPlugins.includes(e)).length===this.baseElement.settings.requiredPlugins.length}get ssrValueOrMessage(){return this.ssrInnerHtml===``?F.settings.disableNoticeForEmptySSRElements?``:` +
+ This element has no content. + + Hide this notice at Preferences / UI Settings / Disable Notice For Empty SSR Elements +
`:!this.shouldSsr&&!this.ssrInnerHtml?null:this.isUpdating?this.ssrInnerHtml||``:this.ssrInnerHtml}get tags(){return{id:this.element.id,selector:this.elementSelector,uniqueSlug:this.uniqueClassName,postId:this.postId,elementName:this.baseElement.name}}async rerenderFromServeOnParentPropertyChange(){this.shouldSsr&&(Lr(this.ssrParentProperties,this.oldSsrParentProperties)||(this.oldSsrParentProperties=T(this.ssrParentProperties),await this.maybeRerenderFromServer()))}async rerenderFromServerOnRefreshSsr(){this.refreshSsr&&(await this.maybeRerenderFromServer(),F.setRefreshSsrElementId(null),this.runActionsAfterSsr())}get presets(){return N.presets}async maybeRerenderFromServerOnPropertyChange(){if(await this.$nextTick(),!this.isInlineEditing){if(!this.shouldSsr){this.processedTemplate.includes(`%%SSR%%`)||(this.ssrInnerHtml!==null&&(this.ssrInnerHtml=null),this.updateSsrDependenciesAndStyles());return}Lr(this.twigProps,this.oldTwigProps)||(this.oldTwigProps=this.twigProps,await this.maybeRerenderFromServer(),this.runActionsAfterSsr())}}runActionsAfterSsr(){ct.run.onBeforeDeletingElement({elementId:this.element.id}),this.element._parentId&&ct.run.onAfterDeletedElement({deletedElementNodeType:this.element.data.type,parentIdOfDeletedElement:this.element._parentId,transactionKey:void 0}),ct.run.onMountedElement({elementId:this.element.id})}async maybeRerenderFromServer(){if(!this.shouldSsr)return;F.setElementUpdatingState({elementId:this.element.id,isUpdating:!0});let e=(0,Hp.pipe)(await Vp(this.baseElement.slug,this.elementProps,this.element.id,this.parentProps),(0,ym.fold)(e=>(e.forEach(e=>{Bs.log.message(e.msg)}),{html:` +
+ There was an error on the server when rendering this element. +
`,postsGeneratedCssFilePaths:{},dependencies:{}}),e=>e));F.setElementUpdatingState({elementId:this.element.id,isUpdating:!1}),this.ssrInnerHtml=e.html,this.updateSsrDependenciesAndStyles(e.dependencies,e.postsGeneratedCssFilePaths)}maybeRerunAllScriptsInCanvasDocumentBody(){this.baseElement.settings&&this.baseElement.settings.dependsOnGlobalScripts&&im()}updateSsrDependenciesAndStyles(e,t){this.maybeRerunAllScriptsInCanvasDocumentBody(),e&&la(Jr(),{dependencies:[e],addInlineScriptsAsUnique:!1,element:this.element}),us(Jr(),this.element.id,t)}get shouldShow(){return It(`elementShouldShow`,!0,this.elementProps,{currentBreakpoint:F.currentBreakpoint})}get breakpoints(){return I.breakpoints}onBreakpointsChange(){this.generateElementsCSS()}onTwigPropsChange(){this.generateElementsCSS()}onPresetChange(){this.generateElementsCSS()}onVariablesChange(){this.generateElementsCSS()}onCssTemplateChange(){this.generateElementsCSS()}onDefaultCssChange(){this.generateElementsCSS()}onInternalDependenciesChange(){if(this.baseElement.dependencies){let e=this.baseElement.dependencies.map(e=>({...e,inlineScripts:[]}));xm(Jr(),{dependencies:e,tags:this.tags,element:this.element})}}get globalSettings(){return N.globalSettings}refreshIfTypographyPresetsChange(){this.generateElementsCSS()}get elementChildrenCount(){return this.element.children.length}elementChildrenCountChanged(){this.generateElementsCSS()}generateElementsCSS(){rc(Jr(),this.baseElement.slug,this.baseElement.defaultCss);let e=de(this.baseElement,this.presetId),t=[...this.baseElement.propertyPathsToWhitelistInFlatProps||[],...I.universalControlsAndTemplate.propertyPathsToWhitelistInFlatProps||[]],n=hne(this.twigProps,this.breakpoints,e,this.tags,t,this.elementChildrenCount,Pe(this.baseElement,this.presetId));tne(Jr(),this.element.id,n,this.uniqueId)}async mounted(){this.updateSsrDependenciesAndStyles(),await Promise.all([this.loadDependencies(),this.maybeRerenderFromServer()]),ct.run.onMountedElement({elementId:this.element.id})}unmounted(){Fc(B.document.tree.root,this.baseElement.slug)===0&&ga(Jr(),this.baseElement.slug),mc(Jr(),this.element.id,this.uniqueId),xs(Jr(),this.element.id),this.element._parentId&&ct.run.onAfterDeletedElement({deletedElementNodeType:this.element.data.type,parentIdOfDeletedElement:this.element._parentId,transactionKey:`DocumentDeleteElement:ID:${this.element.id}`})}loadDependencies(){return la(Jr(),{dependencies:[...this.baseElement.dependencies||[],...I.elementsExternalAttrsDepsAndActions.dependencies||[]],element:this.element,tags:this.tags})}get elementSelector(){let e=`.${this.uniqueClassName}`,t=`.breakdance ${e}`;return this.builderMode===`oxygen`?this.element.data.type.startsWith(`EssentialElements\\`)?t:e:t}get rootTag(){return An(this.element,this.baseElement)}get baseElement(){return I.element(this.element.data.type)}get elementProps(){if(F.inlineEditingElement&&F.inlineEditingElement.data.type===`OxygenElements\\Component`&&Ve(B.document.tree,this.element,F.inlineEditingElement)){let e=F.inlineEditingElementPropertyOverrides[this.element.id]||{};if(Object.keys(e).length>0){let t=T(this.element.data.properties);for(let[n,r]of Object.entries(e))r&&ja(t,n,r);return t}}return this.element.data.properties}get twigProps(){if(Xa(this.elementProps)&&Object.entries(this.elementProps).length!==0){let e=I.dynamicDataCache.data,t=tr(this.elementProps,e).filter(t=>!Object.keys(e).includes(Ue(t)));t.length&&!I.isLoadingAllDynamicDataFromTree&&this.debouncedLoadDynamicData(t);let n=!!I.previewedItem;return Ns(this.elementProps,t=>Zc(t)?nee(t,e,n):t)}return{}}get designPropsAndPreset(){let e=T(this.twigProps?.design);return yn(T(this.preset?.design),e)}get twigPropsAndPreset(){return{...this.twigProps,design:this.designPropsAndPreset}}get postId(){return B.document.documentMeta.id}get htmlId(){return wee(this.element)}get uniqueClassName(){return jo(this.element,this.postId)}get baseClassName(){return Ke(this.baseElement)}get presetId(){return this.element.data.properties?.meta?.preset}get preset(){return N.presets.find(e=>e.id===this.presetId)}get variables(){return N.variables}get isSectionCurrentlyRewritingWithAi(){return V.aiJobs.filter(e=>`elementId`in e.context&&e.context.elementId===this.element.id&&e.context.jobType==`section_rewrite`&&(e.status===`running`||e.status===`pending`)).length>0}get isSectionCurrentlyPopulatingImagesWithAi(){return V.aiJobs.filter(e=>`elementId`in e.context&&e.context.elementId===this.element.id&&e.context.jobType==`section_image_replacement`&&(e.status===`running`||e.status===`pending`)).length>0}get classList(){let e=[this.uniqueClassName,`builder-element`,this.baseClassName];this.isSectionCurrentlyRewritingWithAi&&e.push(`section-currently-rewriting-with-ai`),this.isSectionCurrentlyPopulatingImagesWithAi&&e.push(`section-currently-populating-images-with-ai`),this.isActive&&e.push(`breakdance--active-element`),this.currentlyDragging&&e.push(`breakdance--currently-dragging`),this.isEmptyContainer&&e.push(`breakdance--empty-container`),this.isContainerTypeElement&&e.push(`breakdance--container-type-element`);let t=this.element.data.properties?.settings?.advanced?.classes??!1;t&&e.push(...t),this.baseElement.settings&&this.baseElement.settings.bypassPointerEvents&&e.push(`breakdance-children-pointer-events-none`),this.isUpdating&&e.push(`breakdance-element-is-updating`),this.presetId&&e.push(`bde-preset-${this.presetId}`);let n=po(this.element);if(n){let t=n.filter(e=>xr(this.element.id,e.id)?nc(this.element.id)[e.id]?.builderPreview:!0).map(e=>e.name);e.push(...t)}return e.push(...this.additionalClasses),e}get additionalClasses(){return this.baseElement.additionalClasses?this.baseElement.additionalClasses.map(e=>{let t=ir(e.template,this.twigPropsAndPreset,xl(this.baseElement,e));if(t)return{name:e.name,include:t}}).filter(sm.isDefined).filter(e=>!!e.include).map(e=>e.name):[]}renderAttributeValue(e){if(`template`in e)return ir(e.template,this.twigPropsAndPreset,$ee(this.baseElement,e));if(`propertyPath`in e){let t=rt(this.elementProps,e.propertyPath,``);return t===!1||t==null?``:String(t)}return`rawValue`in e?e.rawValue:null}get attributes(){let e={};[...this.baseElement.attributes||[],...I.elementsExternalAttrsDepsAndActions.attributes||[]].forEach(t=>{let n=this.renderAttributeValue(t);n&&(e[t.name]=qe(n,this.tags))}),(this.element.data.properties?.settings?.advanced?.attributes??[]).forEach(t=>{e[t.name]=t.value}),e[`data-node-id`]=`${this.element.id}`,this.htmlId&&(e.id=this.htmlId);let t={};return Object.keys(e).forEach(n=>{e[n]?.trim()===`%%OUTPUTBLANKATTRIBUTE%%`||e[n]==null||e[n]===void 0?t[n]=``:t[n]=e[n]}),t}get contentEditablePropertyPath(){return this.attributes[`data-content-editable-property-path`]}get isDragAndDropEnabled(){return F.isSingularityMode&&F.hasFullAccess?vm(this.element):F.hasFullAccess}get isPreviewMode(){return F.isPreviewMode}get isOnboardingMode(){return window.Breakdance.isOnboarding}get lastModifiedTreeNodePropertyForWatcher(){return F.lastModifiedElementProperty}handleLastModifiedTreeNodePropertyChange(e){e.elementId===this.element.id?this.lastModifiedPropertyPath=e.path:this.lastModifiedPropertyPath!==null&&(this.lastModifiedPropertyPath=null)}get currentlyDraggingForWatcher(){return F.isElementBeingDragged(this.element.id)}handleCurrentlyDraggingChange(e){this.currentlyDragging=e}get activeElementIdForWatcher(){return F.activeElementId}handleActiveElementIdChange(e){this.isActive=e===this.element.id}get isElementUpdatingForWatcher(){return!!F.elementsThatAreUpdating[this.element.id]}handleLoadingElementIdChange(e){this.isUpdating!==e&&(this.isUpdating=e)}get behaviorModeEnabled(){let e=F.builderBehaviorElementId;return e?ete(B.document.tree,e,this.element.id):!1}activateElement(e,t){this.behaviorModeEnabled||(Eo(this.element.id,t,e),vn(`elementproperties`))}canActivate(e){return e.button===0?!0:!F.isElementActive(this.element.id)}canDrag(e){if(!this.isDragAndDropEnabled)return!1;let t=e.target,n=[`textarea`,`input`,`select`],r=t.tagName.toLowerCase();return!(n.includes(r)||F.elementWithContentEditable)}disableDefaultDrag(e){e.preventDefault()}maybePreventDefault(e){let t=e.target,n=[`a`,`button`],r=n.join(`, `),i=n.some(e=>t.closest(e));(t.matches(r)||i)&&e.preventDefault()}activateAndMaybeStartDrag(e){this.isPreviewMode||this.isOnboardingMode||(e.stopPropagation(),this.canActivate(e)&&this.activateElement(e.metaKey||e.ctrlKey,e.shiftKey),this.canDrag(e)&&(this.behaviorModeEnabled||(this.dragMouseStartX=e.clientX,this.dragMouseStartY=e.clientY,this.easyEvent.on(`mousemove`,this.dragging),this.easyEvent.on(`mouseup`,this.removeDragListeners))))}removeDragListeners(){this.easyEvent.removeAll(),this.dragMouseStartX=!1,this.dragMouseStartY=!1}dragging(e){if(this.behaviorModeEnabled||!md(e)||this.dragMouseStartX===!1||this.dragMouseStartY===!1)return;let t=e.clientX,n=e.clientY;(Math.abs(t-this.dragMouseStartX)>3||Math.abs(n-this.dragMouseStartY)>3)&&(this.restoreLastActivatedElements(),fe(this.element.id),this.removeDragListeners())}restoreLastActivatedElements(){F.lastActivatedElementIds.includes(this.element.id)&&F.activateMultipleElementsMutation(F.lastActivatedElementIds)}handleDoubleClick(e){let t=this.element.data.type,n=[Ane,kne,One];if(this.contentEditablePropertyPath)this.enableContentEditableAndFocus(e);else if(t===`EssentialElements\\RichText`)me(`CMD_E`);else if(n.includes(t))document.dispatchEvent(new CustomEvent(`open-media-dialog`,{cancelable:!0}));else if(this.isInlineEditable){let e=this.inlineBlockId;if(e){if(this.isAlreadyEditingInline)return;Rt({elementId:this.element.id,blockId:e})}}}get isAlreadyEditingInline(){return this.isInlineEditable&&F.isElementBeingEditedInline(this.element.id)}get isInlineEditable(){return lr(this.baseElement)}get inlineBlockId(){let e=this.baseElement.nestingRule.inlineEditableBlockPath;return e?rt(this.twigProps,e):null}enableContentEditableAndFocus(e){let t=e.target,n=null;if(n=t.dataset.contentEditablePropertyPath||t.dataset.nodeId?t:t.closest(`[data-content-editable-property-path]`),!n)return;let r=n.dataset.contentEditablePropertyPath;if(r){let e=rt(this.twigProps,Oa(r));if(e&&sl(e))return}if(n.getAttribute(`contenteditable`)===`true`)return;F.setContentEditableElementId(this.element.id);let i=t.dataset.contentEditablePropertyPath||this.contentEditablePropertyPath;i&&V.setTextEditorPanelState({elementId:this.element.id,contentEditablePropertyPath:i}),n.setAttribute(`contenteditable`,`true`),n.focus(),window.Breakdance.canvas.document.addEventListener(`keydown`,this.handleKeydownInsideContentEditable),n.addEventListener(`paste`,this.pasteWithoutFormatting)}saveContentEditable(e){let t=e.target;window.Breakdance.canvas.document.removeEventListener(`keydown`,this.handleKeydownInsideContentEditable),t.removeEventListener(`paste`,this.pasteWithoutFormatting),t.setAttribute(`contenteditable`,`false`),F.setContentEditableElementId(null);let n=t.dataset.contentEditablePropertyPath||this.contentEditablePropertyPath;if(!n)return;t.innerHTML=t.innerHTML.trim();let r=t.childNodes[t.childNodes.length-1];r&&r.tagName===`BR`&&r.remove();let i=document.createElement(`textarea`);i.innerHTML=t.innerHTML;let a=i.value;rt(this.element.data.properties,n)!==a&&B.throttledPropertyChanged({elementId:this.element.id,path:n,value:a,meta:{snapshotLabel:ic.forElementBasingOnChangedStorePropertyPath(this.baseElement,n,mn.CHANGE)}})}pasteWithoutFormatting(e){let t=e.clipboardData?.getData(`text/plain`);t&&(window.Breakdance.canvas.document.execCommand(`insertHTML`,!1,rre(t)),e.preventDefault())}handleKeydownInsideContentEditable(e){if(e.code===`Space`){e.preventDefault(),e.stopPropagation(),window.Breakdance.canvas.document.execCommand(`insertText`,!1,` `);return}if(e.code===`Enter`){window.Breakdance.canvas.document.execCommand(`insertLineBreak`),e.preventDefault();return}if(e.code===`Escape`){e.preventDefault(),this.saveContentEditable(e);return}if((e.ctrlKey||e.metaKey)&&e.key===`s`){e.preventDefault(),this.saveContentEditable(e);return}}loadDynamicData(e){ce(e).then(e=>{I.setNewDynamicDataCacheEntries(e)})}};K([Z()],Sm.prototype,`element`,void 0),K([Z()],Sm.prototype,`parentId`,void 0),K([Z()],Sm.prototype,`ssrParentProperties`,void 0),K([G(`ssrParentProperties`,{deep:!0})],Sm.prototype,`rerenderFromServeOnParentPropertyChange`,null),K([G(`refreshSsr`)],Sm.prototype,`rerenderFromServerOnRefreshSsr`,null),K([G(`twigProps`)],Sm.prototype,`maybeRerenderFromServerOnPropertyChange`,null),K([G(`breakpoints`,{deep:!0})],Sm.prototype,`onBreakpointsChange`,null),K([G(`twigProps`,{deep:!0,immediate:!0})],Sm.prototype,`onTwigPropsChange`,null),K([G(`preset`,{deep:!0,immediate:!0})],Sm.prototype,`onPresetChange`,null),K([G(`variables`,{deep:!0,immediate:!0})],Sm.prototype,`onVariablesChange`,null),K([G(`baseElement.cssTemplate`)],Sm.prototype,`onCssTemplateChange`,null),K([G(`baseElement.defaultCss`)],Sm.prototype,`onDefaultCssChange`,null),K([G(`baseElement.dependencies`,{deep:!0})],Sm.prototype,`onInternalDependenciesChange`,null),K([G(`globalSettings.${oi.typographyPresets}`,{deep:!0})],Sm.prototype,`refreshIfTypographyPresetsChange`,null),K([G(`elementChildrenCount`,{})],Sm.prototype,`elementChildrenCountChanged`,null),K([G(`lastModifiedTreeNodePropertyForWatcher`,{immediate:!0})],Sm.prototype,`handleLastModifiedTreeNodePropertyChange`,null),K([G(`currentlyDraggingForWatcher`,{immediate:!0})],Sm.prototype,`handleCurrentlyDraggingChange`,null),K([G(`activeElementIdForWatcher`,{immediate:!0})],Sm.prototype,`handleActiveElementIdChange`,null),K([G(`isElementUpdatingForWatcher`,{immediate:!0})],Sm.prototype,`handleLoadingElementIdChange`,null),Sm=bm=K([J({})],Sm);var Cm=Y(Sm);function wm(e){return(t,n)=>{if(F.activeElementId){let r=(e,t)=>e+t>=0?e+t:0;if(`xProperty`in e&&e.xProperty){let i=e.xProperty.replace(`%%CURRENTMEDIAQUERY%%`,F.currentBreakpoint.id),a=r(t.width,n.lastXChange);B.throttledPropertyChanged({elementId:F.activeElementId,path:i,value:{number:a,unit:`px`},meta:{snapshotLabel:`Resize element`}})}if(`yProperty`in e&&e.yProperty){let i=e.yProperty.replace(`%%CURRENTMEDIAQUERY%%`,F.currentBreakpoint.id),a=r(t.height,n.lastYChange);B.throttledPropertyChanged({elementId:F.activeElementId,path:i,value:{number:a,unit:`px`},meta:{snapshotLabel:`Resize element`}})}}}}function Tm(e,t){let n=e.map(e=>e.$subscribe(t));return()=>{n.forEach(e=>e())}}var Em={xProperty:`design.size.width.%%CURRENTMEDIAQUERY%%`},Dm=class extends W{constructor(...e){super(...e),this.mouseDragInfo=!1,this.dragDotsWrapperPositionStyle={display:`none`},this.dragCallback=!1,this.unsubscribeFromStores=()=>{},this.easyEvent=new pd}nextTickPositionDragDotsWrapper(){Ku(()=>this.positionDragDotsWrapper())}beforeMount(){this.positionDragDotsWrapper(),this.unsubscribeFromStores=Tm([B,F],this.nextTickPositionDragDotsWrapper),window.addEventListener(`resize`,this.nextTickPositionDragDotsWrapper)}beforeUnmount(){this.unsubscribeFromStores(),window.removeEventListener(`resize`,this.nextTickPositionDragDotsWrapper)}dragStart(e){e.preventDefault(),e.stopPropagation(),this.mouseDragInfo={startX:e.clientX,startY:e.clientY,currentX:e.clientX,currentY:e.clientY,lastXChange:0,lastYChange:0,totalXChange:0,totalYChange:0},this.dragCallback=wm(Em),this.easyEvent.on(`mousemove`,this.dragging),this.easyEvent.on(`mouseup`,this.dragEnd)}dragging(e){if(md(e)){e.preventDefault(),e.stopPropagation();let t=ge();if(!t||!this.mouseDragInfo)return;this.mouseDragInfo={...this.mouseDragInfo,currentX:e.clientX,currentY:e.clientY,lastXChange:e.clientX-this.mouseDragInfo.currentX,lastYChange:e.clientY-this.mouseDragInfo.currentY,totalXChange:e.clientX-this.mouseDragInfo.startX,totalYChange:e.clientY-this.mouseDragInfo.startY},this.dragCallback&&this.dragCallback(t,this.mouseDragInfo),this.positionDragDotsWrapper()}}dragEnd(e){e.preventDefault(),e.stopPropagation(),this.easyEvent.removeAll(),this.mouseDragInfo=!1,this.dragCallback=!1}positionDragDotsWrapper(){F.activeElementId||(this.dragDotsWrapperPositionStyle={display:`none`});let e=ge();if(!e)return;let{x:t,y:n,width:r,height:i}=e;this.dragDotsWrapperPositionStyle={position:`absolute`,top:n.toString()+`px`,left:t.toString()+`px`,width:r.toString()+`px`,height:i.toString()+`px`}}};Dm=K([J({})],Dm);var Om=Y(Dm);function km(e,t,n,r,i,a){return z(),E(`div`,{class:`drag-dots-wrapper`,style:A(e.dragDotsWrapperPositionStyle)},[w(`div`,{class:`drag-dot drag-dot-top-left`,onMousedown:t[0]||=(...t)=>e.dragStart&&e.dragStart(...t)},null,32),w(`div`,{class:`drag-dot drag-dot-top-middle`,onMousedown:t[1]||=(...t)=>e.dragStart&&e.dragStart(...t)},null,32),w(`div`,{class:`drag-dot drag-dot-top-right`,onMousedown:t[2]||=(...t)=>e.dragStart&&e.dragStart(...t)},null,32),w(`div`,{class:`drag-dot drag-dot-bottom-right`,onMousedown:t[3]||=(...t)=>e.dragStart&&e.dragStart(...t)},null,32),w(`div`,{class:`drag-dot drag-dot-bottom-middle`,onMousedown:t[4]||=(...t)=>e.dragStart&&e.dragStart(...t)},null,32),w(`div`,{class:`drag-dot drag-dot-bottom-left`,onMousedown:t[5]||=(...t)=>e.dragStart&&e.dragStart(...t)},null,32),w(`div`,{class:`drag-dot drag-dot-middle-left`,onMousedown:t[6]||=(...t)=>e.dragStart&&e.dragStart(...t)},null,32),w(`div`,{class:`drag-dot drag-dot-middle-right`,onMousedown:t[7]||=(...t)=>e.dragStart&&e.dragStart(...t)},null,32)],4)}var Am=q(Om,[[`render`,km]]);function jm(e){let t=Xc(null),n=Xc(null),r=Xc({display:`none`}),i=e.dragStartCallback||(()=>{}),a=e.dragEndCallback||(()=>{}),{dragCallback:o}=e,s=()=>{if(!F.activeElementId){r.value={display:`none`};return}let e=ge();if(!e)return;let{x:t,y:n,width:i,height:a}=e;r.value={position:`absolute`,top:`${n}px`,left:`${t}px`,width:`${i}px`,height:`${a}px`}},c=e=>{let r=ge();!r||!n.value||(n.value={...n.value,currentX:e.clientX,currentY:e.clientY,lastXChange:e.clientX-n.value.currentX,lastYChange:e.clientY-n.value.currentY,totalXChange:e.clientX-n.value.startX,totalYChange:e.clientY-n.value.startY},t.value&&o(r,n.value,t.value),s(),Nl())},l=e=>{e.preventDefault(),e.stopPropagation(),requestAnimationFrame(()=>c(e))},u=Al(e=>l(e),60),d=e=>{e.preventDefault(),e.stopPropagation(),window.Breakdance.canvas.document.removeEventListener(`mousemove`,u),window.Breakdance.canvas.document.removeEventListener(`mouseup`,d),n.value=null,t.value=null,F.setDragMixinDragging(!1),a(),Nl()},f=(e,r)=>{if(e.stopPropagation(),typeof r!=`string`){console.warn(`To use drag mixin you must specify a handle parameter (string) as the second param of your mousedown=dragStart, i.e. mousedown=dragStart($event, 'myhandle')`);return}F.setDragMixinDragging(!0),t.value=r,n.value={startX:e.clientX,startY:e.clientY,currentX:e.clientX,currentY:e.clientY,lastXChange:0,lastYChange:0,totalXChange:0,totalYChange:0},window.Breakdance.canvas.document.addEventListener(`mousemove`,u),window.Breakdance.canvas.document.addEventListener(`mouseup`,d),i(r)},p=kr(()=>!!n.value),m=()=>{},h=()=>{Ku(s)};return ti(()=>{s(),m=Tm([B,F],h),window.addEventListener(`resize`,h)}),jt(()=>{m(),window.removeEventListener(`resize`,h)}),{clickedHandle:t,mouseDragInfo:n,wrapperPositionStyle:r,dragStart:f,dragEnd:d,isDragging:p,positionWrapper:s}}function Mm(e,t){return Nm(e,t)||0}function Nm(e,t){if(!F.activeElement)return!1;let n=Pm(e,F.currentBreakpoint.id),r=parseInt(rt(F.activeElement,`data.properties.${n}.number`));r||=0;let i=rt(F.activeElement,`data.properties.${n}.unit`);if(i||=`px`,i!==`px`&&r!==0){let e=Us(F.activeElement);return e?parseInt(e.getPropertyValue(t)):!1}return r}function Pm(e,t){return e.replace(`%%BREAKPOINT%%`,t)}var Fm=class extends W{constructor(...e){super(...e),this.isHovering=!1,this.resizeObserver=new ResizeObserver(this.onActiveElementResize),this.activeElementPositionAndSize=null,this.valueAtMomentOfElementPositionAndSizeCalculation=null}get value(){return Mm(this.bar.affectedPropertyPath,this.bar.cssProperty)}get activeElement(){return F.activeElement}updateActiveElementPositionWhenItsPresent(){let e=this.activeElement;if(e){let t=ci(e);if(t){this.activeElementPositionAndSize=_t(t)||null,this.valueAtMomentOfElementPositionAndSizeCalculation=this.value;return}}this.activeElementPositionAndSize=null,this.valueAtMomentOfElementPositionAndSizeCalculation=null}mounted(){this.intervalHandle=setInterval(()=>{Ku(this.updateActiveElementPositionWhenItsPresent)},50)}handleActiveElementChange(){this.updateActiveElementPositionWhenItsPresent(),this.resizeObserver.disconnect();let e=this.activeElement;if(e){let t=ci(e);t&&(this.resizeObserver.observe(t,{box:`border-box`}),t.parentElement&&this.resizeObserver.observe(t.parentElement,{box:`border-box`}))}}onActiveElementResize(){this.updateActiveElementPositionWhenItsPresent()}get classList(){return[`spacing-bar-${this.bar.location}`]}get style(){return this.isDragging&&this.isActiveBar||this.isHovering&&!this.isDragging?{...this.barStyle,opacity:1}:this.barStyle}get barStyle(){let e=this.activeElementPositionAndSize;if(!e)return{};let t=this.valueAtMomentOfElementPositionAndSizeCalculation||this.value,{width:n,height:r,y:i,x:a}=e,o=t>5?t:5;switch(this.bar.location){case`inside-top`:return{width:`${n}px`,height:`${o}px`,top:`${i}px`,left:`${a}px`,cursor:`row-resize`};case`outside-top`:return{width:`${n}px`,height:`${o}px`,top:`${-o+i}px`,left:`${a}px`,cursor:`row-resize`};case`inside-bottom`:return{width:`${n}px`,height:`${o}px`,top:`${i+r-o}px`,left:`${a}px`,cursor:`row-resize`};case`outside-bottom`:return{width:`${n}px`,height:`${o}px`,top:`${i+r}px`,left:`${a}px`,cursor:`row-resize`};case`inside-left`:return{width:`${o}px`,top:`${i}px`,height:`${r}px`,left:`${a}px`,cursor:`col-resize`};case`outside-left`:return{width:`${o}px`,top:`${i}px`,height:`${r}px`,left:`${a-o}px`,cursor:`col-resize`};case`inside-right`:return{width:`${o}px`,top:`${i}px`,height:`${r}px`,left:`${a+n-o}px`,cursor:`col-resize`};case`outside-right`:return{width:`${o}px`,top:`${i}px`,height:`${r}px`,left:`${a+n}px`,cursor:`col-resize`};default:return{}}}beforeUnmount(){this.resizeObserver.disconnect(),this.intervalHandle&&clearInterval(this.intervalHandle)}};K([Z()],Fm.prototype,`bar`,void 0),K([Z()],Fm.prototype,`isDragging`,void 0),K([Z()],Fm.prototype,`isActiveBar`,void 0),K([G(`activeElement`,{immediate:!0})],Fm.prototype,`handleActiveElementChange`,null),Fm=K([J({emits:[`drag-start`]})],Fm);var Im=Y(Fm),Lm={class:`spacing-bar-current-value`};function Rm(e,t,n,r,i,a){return z(),E(`div`,{class:R([`spacing-bar`,e.classList]),style:A(e.style),onMousedown:t[0]||=t=>e.$emit(`drag-start`,t),onMouseover:t[1]||=t=>e.isHovering=!0,onMouseleave:t[2]||=t=>e.isHovering=!1},[w(`div`,Lm,D(e.value)+`px`,1)],38)}var zm=q(Im,[[`render`,Rm]]),Bm=kn({__name:`SpacingBars`,setup(e){let t=Xc(!1),n=kr(()=>F.activeElement?ft(F.activeElement.id)?!1:I.element(F.activeElement.data.type).spacingBars:!1),r=kr(()=>n.value?n.value:[]),{clickedHandle:i,dragStart:a,isDragging:o}=jm({dragCallback:(e,n,i)=>{let a=r.value.filter(e=>e.location===i).pop();if(!F.activeElementId||!a)return;let o=i,s=0,c=Nm(a.affectedPropertyPath,a.cssProperty);switch(c||=0,t.value||=c,o){case`inside-top`:case`inside-bottom`:case`outside-top`:case`outside-bottom`:s=t.value+n.totalYChange;break;case`inside-left`:case`inside-right`:case`outside-left`:case`outside-right`:s=t.value+n.totalXChange;break}s<0&&(s=0);let l=Pm(a.affectedPropertyPath,F.currentBreakpoint.id);B.throttledPropertyChanged({elementId:F.activeElementId,path:l,value:{number:s,unit:`px`,style:`${s}px`},meta:{snapshotLabel:ic.forElementByTreeNodeId(F.activeElementId,l,mn.CHANGE)}})},dragEndCallback:()=>{t.value=!1}});return(e,t)=>(z(),E(`div`,null,[(z(!0),E(H,null,j(r.value,(e,t)=>(z(),U(zm,{bar:e,key:t,onDragStart:t=>et(a)(t,e.location),isDragging:et(o),isActiveBar:et(i)===e.location},null,8,[`bar`,`onDragStart`,`isDragging`,`isActiveBar`]))),128))]))}});function Vm(e,t,n){let r=n,i=Um(e);return!r||!i?!1:no(100*((r+t)/i))}function Hm(e){let t=Ui(e);return t?t.width:!1}function Um(e){let t=ml(B.document.tree,e.id);if(t){let e=Ui(t);if(e)return e.width}return!1}function Wm(e){let t=Us(e);if(!t)return!1;let n=parseInt(t.getPropertyValue(`padding-left`)),r=parseInt(t.getPropertyValue(`padding-right`));if(Number.isNaN(n)||Number.isNaN(r))return!1;let i=Um(e);if(!i)return!1;let a=100*((n+r)/i);return Math.ceil(a)}var Gm=20;function Km(e,t,n,r){let i=r===`right`?t+1:t-1,a=e.children[i],o=e.children[t];if(!o||!a||t<0||i<0)return!1;let s=Wm(o),c=Wm(a),l=Gm;s!==!1&&c!==!1&&(l=Math.max(s,c));let u=100-Uc(o)-Uc(a),d=100-u-n;return n100-l*2&&(n=(100-u)/2,d=(100-u)/2),n=no(n),d=no(d),u=no(u),n+d+u!==100&&(d=100-u-n,d=no(d)),co(o.id,n),co(a.id,d),Rs(e),{resizedWidth:n,siblingWidth:d}}var qm={key:0,class:`drag-dots-column-widths-values`},Jm={class:`drag-dots-left-width`},Ym={class:`drag-dots-right-width`},Xm={key:0,class:`drag-dots-column-widths-values`},Zm={class:`drag-dots-left-width`},Qm={class:`drag-dots-right-width`},$m=kn({__name:`ColumnDragSizer`,setup(e){let t=Xc(!1),n=Xc(!1),r=kr(()=>Lte(F.activeElement)?F.activeElement:!1),i=kr(()=>{if(!r.value)return!1;let e=wte(r.value);if(!e)return!1;let t=rt(e.data.properties,`design.layout.stack_vertically`,!1),n=rt(e.data.properties,`design.layout.fifty_percent`,!1);return t===`breakpoint_base`||n===`breakpoint_base`}),a=kr(()=>F.currentBreakpoint.id===`breakpoint_base`&&r.value&&!i.value),{dragStart:o,wrapperPositionStyle:s}=jm({dragCallback:(e,i,a)=>{if(!r.value||a!==`left`&&a!==`right`)return;let o=Ta(B.document.tree,r.value.id),s=ml(B.document.tree,r.value.id);if(o===!1||s===!1)return;let c=0;if(n.value||=Hm(r.value),!n.value)return;c=a===`right`?i.totalXChange:-1*i.totalXChange;let l=Vm(r.value,c,n.value);if(!l)return;let u=Km(s,o,l,a);u&&(t.value={[a]:{resizedWidth:Number(u.resizedWidth.toFixed(2)),siblingWidth:Number(u.siblingWidth.toFixed(2))}})},dragStartCallback:()=>{vi.startTransaction()},dragEndCallback:()=>{t.value=!1,n.value=!1,vi.endTransaction(`Resizing column`)}}),c=kr(()=>{if(!r.value)return!1;let e=Ta(B.document.tree,r.value.id);return e===!1?!1:e!==0}),l=kr(()=>{if(!r.value)return!1;let e=Ta(B.document.tree,r.value.id),t=ml(B.document.tree,r.value.id);return e===!1||t===!1?!1:e!==t.children.length-1});return(e,n)=>a.value?(z(),E(`div`,{key:0,style:A(et(s)),class:`drag-dots-wrapper`},[c.value?(z(),E(`div`,{key:0,class:`drag-dot drag-dot-middle-left`,onMousedown:n[0]||=e=>et(o)(e,`left`)},[t.value&&`left`in t.value?(z(),E(`div`,qm,[w(`div`,Jm,D(t.value.left.siblingWidth)+`% `,1),w(`div`,Ym,D(t.value.left.resizedWidth)+`% `,1)])):k(``,!0)],32)):k(``,!0),l.value?(z(),E(`div`,{key:1,class:`drag-dot drag-dot-middle-right`,onMousedown:n[1]||=e=>et(o)(e,`right`)},[t.value&&`right`in t.value?(z(),E(`div`,Xm,[w(`div`,Zm,D(t.value.right.resizedWidth)+`% `,1),w(`div`,Qm,D(t.value.right.siblingWidth)+`% `,1)])):k(``,!0)],32)):k(``,!0)],4)):k(``,!0)}});function eh(e,t,n,r=5){let i=na(B.document.tree,n);if(!i)return!1;let a=ci(i);if(!a)return!1;let{x:o,y:s,width:c,height:l}=a.getBoundingClientRect();o-=r,s-=r,c+=r,l+=r;let u=[],d=()=>e>=o&&e<=o+c,f=()=>e>=o&&e<=o+c/2,p=()=>e>=o&&e>o+c/2,m=()=>t>=s&&t<=s+l;return d()&&m()&&(()=>t>=s&&t<=s+l/2)()&&u.push(`top`),d()&&m()&&(()=>t>=s&&t>s+l/2)()&&u.push(`bottom`),d()&&m()&&f()&&u.push(`left`),d()&&m()&&p()&&u.push(`right`),u.length>0?u:!1}function th(e,t){return window.Breakdance.canvas.document.elementsFromPoint(e,t).map(e=>e.dataset.nodeId?e:e.closest(`[data-node-id]`)??e).filter(e=>e.dataset.nodeId!==void 0).map(e=>Aee(e.dataset.nodeId))}function nh(e,t){return th(e,t).reverse().pop()}function rh(e,t,n,r=`vertical`){let i=eh(e,t,n);if(!i)return`unknown`;if(r===`vertical`){if(i.includes(`top`))return`before`;if(i.includes(`bottom`))return`after`}else if(r===`horizontal`){if(i.includes(`left`))return`before`;if(i.includes(`right`))return`after`}return`unknown`}function ih(e){let t=`vertical`,n=e.children.length>0?e.children[0]:void 0;if(!n)return t;let r=ci(n);if(!r)return t;let i=un(r.parentNode),a=`vertical`,o=i.getPropertyValue(`display`);if(o===`contents`){let e=r.parentNode?.parentNode;e&&(i=un(e),o=i.getPropertyValue(`display`))}if(o===`block`)a=`vertical`;else if(o===`flex`||o===`inline-flex`){let e=i.getPropertyValue(`flex-direction`);e===`row`?a=`horizontal`:e===`column`&&(a=`vertical`)}else o===`grid`&&(a=`horizontal`,(i.getPropertyValue(`--bde-grid-items-per-row`)===`1`||i.getPropertyValue(`grid-template-columns`).match(/(minmax\([^)]+\)|[^ ]+)/g)?.length===1)&&(a=`vertical`));return a}function ah(e,t){let n=Math.max(e.min.x-t.x,0,t.x-e.max.x),r=Math.max(e.min.y-t.y,0,t.y-e.max.y);return Math.sqrt(n*n+r*r)}function oh(e,t=!0){if(!e.length)return!1;let n=e.map(e=>e.draggedElementId),r=e[0].droppedOnElementId,i=e[0].index;return B.moveElements({elementIds:n,newParentNodeId:r,newNodeIndex:i,wrapWithTransaction:t})}var sh=class extends W{constructor(...e){super(...e),this.lastSubmittedDrags=[],this.easyEvent=new pd}get nestingPermissions(){return je(this.node)}get draggedNodeIds(){return F.currentlyDraggingCanvasElementIds}watchDraggedNodeIds(){this.dragStart()}updateCurrentlyDraggingElementIds(){fe(this.node.id)}dragStart(){if(!F.hasFullAccess||!this.draggedNodeIds.length)return;this.easyEvent.on(`mousemove`,this.dragging),this.easyEvent.on(`mouseup`,this.dragEnd);let e=this.draggedNodeIds[0];if(!e)return;let t=ml(B.document.tree,e);t&&this.setCanvasDragPlaceholderPosition({nodeIndex:-1,position:`before`,parentId:t.id,onlyShowTargetOutline:!0}),Nl()}setCanvasDragPlaceholderPosition(e){F.setCanvasDragPlaceholderPosition(e)}dragging(e){if(md(e)){e.preventDefault(),e.stopPropagation();let t=e.clientX,n=e.clientY;F.setDragMousePosition({x:t,y:n});let r=nh(t,n);if(r===void 0)return;let i=na(B.document.tree,r);if(i===void 0)return;let a=El(B.document.tree,i,this.nestingPermissions);if(!a)return;let o=a.id;if(r===this.node.id||re((e,t)=>(t||=e.children.find(e=>r===e.id),t),this.node,void 0))this.setCanvasDragPlaceholderPosition({nodeIndex:-1,position:`before`,parentId:o,onlyShowTargetOutline:!0}),this.setDropPosition(!1);else if(r===o)this.handleDragWhenMouseIsOverTheDropTargetButNotOverAChildElementOfTheDropTarget(t,n,r,a);else if(a.children.find(e=>r===e.id))this.handleDragWhenMouseIsOverAChildOfTheDropTarget(t,n,r,a);else if(re((e,t)=>(t||=e.children.find(e=>r===e.id),t),a,void 0)){let e=th(t,n).reduce((e,t)=>e||a.children.find(e=>e.id===t),void 0);e&&this.handleDragWhenMouseIsOverAChildOfTheDropTarget(t,n,e.id,a)}}}dragEnd(e){e.preventDefault(),e.stopPropagation(),this.easyEvent.removeAll(),oh(this.lastSubmittedDrags),F.endCanvasElementDrag(),F.setDragMousePosition(null),this.setDropPosition(!1),this.setCanvasDragPlaceholderPosition(null),Nl()}handleDragWhenMouseIsOverAChildOfTheDropTarget(e,t,n,r){let i=rh(e,t,n,ih(r))===`before`?`before`:`after`,a=r.children.map(e=>e.id).findIndex(e=>e===n);if(this.draggedNodeIds.includes(n)){this.setPlaceholder({dropTargetId:r.id,dragPlaceholderIndex:a,beforeOrAfter:i}),this.setDropPosition(!1);return}let o=r.children.map(e=>e.id).findIndex(e=>e===n);i===`after`&&o++,this.setPlaceholder({dropTargetId:r.id,dragPlaceholderIndex:a,beforeOrAfter:i});let s=this.draggedNodeIds.map(e=>({draggedElementId:e,droppedOnElementId:r.id,index:o}));this.setDropPosition(s)}handleDragWhenMouseIsOverTheDropTargetButNotOverAChildElementOfTheDropTarget(e,t,n,r){if(r.children.length===0){this.setPlaceholder({dropTargetId:r.id,dragPlaceholderIndex:0,beforeOrAfter:`after`});let e=this.draggedNodeIds.map((e,t)=>({draggedElementId:e,droppedOnElementId:r.id,index:t}));this.setDropPosition(e)}else{let n=r.children.map((e,t)=>({positionAndSize:Ui(e,`absolute`),index:t,id:e.id})).filter(e=>e.positionAndSize).map(e=>({min:{x:e.positionAndSize.x,y:e.positionAndSize.y},max:{x:e.positionAndSize.x+e.positionAndSize.width,y:e.positionAndSize.y+e.positionAndSize.height},nodeIndex:e.index,id:e.id})).map(n=>({...n,distance:ah(n,{x:e,y:t})})).reduce((e,t)=>e.distancee?`left`:`right`,s=a>t?`above`:`below`,c=ih(r),l;if(l=c===`vertical`?s===`above`?`before`:`after`:o===`left`?`before`:`after`,this.draggedNodeIds.includes(n.id)){this.setPlaceholder({dropTargetId:r.id,dragPlaceholderIndex:n.nodeIndex,beforeOrAfter:l}),this.setDropPosition(!1);return}let u=r.children.map(e=>e.id).findIndex(e=>e===n.id);l===`after`&&u++,this.setPlaceholder({dropTargetId:r.id,dragPlaceholderIndex:n.nodeIndex,beforeOrAfter:l});let d=this.draggedNodeIds.map((e,t)=>({draggedElementId:e,droppedOnElementId:r.id,index:u+t}));this.setDropPosition(d)}}setPlaceholder(e){$n(B.document.tree,this.node,e.dropTargetId)&&this.movePlaceholder(e.dropTargetId,e.dragPlaceholderIndex,e.beforeOrAfter)}setDropPosition(e){if(e===!1){this.lastSubmittedDrags=[];return}this.lastSubmittedDrags=e.filter(e=>{let t=na(B.document.tree,e.draggedElementId);return t?$n(B.document.tree,t,e.droppedOnElementId):!1})}movePlaceholder(e,t,n){let r=!1,i=na(B.document.tree,e);if(i){let e=i.children[t],a=i.children[t-1],o=i.children[t+1];e&&e.id===this.node.id&&(r=!0),a&&a.id===this.node.id&&n===`before`&&(r=!0),o&&o.id===this.node.id&&n===`after`&&(r=!0)}F.canvasDragPlaceholderPosition&&F.canvasDragPlaceholderPosition.parentId===e&&((()=>t===F.canvasDragPlaceholderPosition.nodeIndex+1)()&&F.canvasDragPlaceholderPosition.position===`after`&&n===`before`||(()=>t===F.canvasDragPlaceholderPosition.nodeIndex-1)()&&F.canvasDragPlaceholderPosition.position===`before`&&n===`after`)||this.setCanvasDragPlaceholderPosition({parentId:e,nodeIndex:t,position:n,onlyShowTargetOutline:r})}};K([Z()],sh.prototype,`node`,void 0),K([G(`draggedNodeIds`)],sh.prototype,`watchDraggedNodeIds`,null),sh=K([J],sh);var ch=Y(sh);function lh(e,t,n,r,i,a){return z(),E(`div`,{onMousedown:t[0]||=to((...t)=>e.updateCurrentlyDraggingElementIds&&e.updateCurrentlyDraggingElementIds(...t),[`stop`])},[Di(e.$slots,`default`)],32)}var uh=q(ch,[[`render`,lh]]);function dh(e,t){let{x:n,y:r}=ite(),i=document.getElementById(`iframe`),a=window.Breakdance.canvas.document.querySelector(`.breakdance-canvas-right-click-menu`);if(!a||!i)return;let{width:o,height:s}=i.getBoundingClientRect(),{menuWidth:c,menuHeight:l}=ph(a);return{x:e+c+15>o?e-n-c:e-n,y:t+l+15>s?t-r-l:t-r}}function fh(e,t){let{menuWidth:n,menuHeight:r}=ph(document.querySelector(`.breakdance-canvas-right-click-menu`)),i=window.innerWidth,a=window.innerHeight;return{x:Math.min(e,i-n-10),y:Math.min(t,a-r-10)}}function ph(e){e.style.display=`block`;let{width:t,height:n}=e.getBoundingClientRect();return{menuWidth:t,menuHeight:n}}var mh=class extends W{constructor(...e){super(...e),this.refreshRate=500,this.unsubscribeFromStores=()=>{},this.titlebarPositionStyle={},this.wrapperPositionStyle={display:`none`},this.elementTitle=``}nextTickPositionsWrapper(){Ku(this.calculateStylesAndTitle)}openContextMenu(e){e.stopPropagation(),e.preventDefault();let t=dh(e.clientX,e.clientY);!this.elementId||!t||F.setOnCanvasRightClickMenuState({elementIds:[this.elementId],position:t})}get builderMode(){return I.builderMode}mounted(){this.calculateStylesAndTitle(),this.unsubscribeFromStores=Tm([B,F],this.nextTickPositionsWrapper),window.addEventListener(`resize`,this.nextTickPositionsWrapper),this.interval=setInterval(this.nextTickPositionsWrapper,this.refreshRate),jl.register(Kr.SHIFT_ESC,()=>{this.activateParent()})}beforeUnmount(){this.unsubscribeFromStores(),window.removeEventListener(`resize`,this.nextTickPositionsWrapper),clearInterval(this.interval),jl.unbind(Kr.SHIFT_ESC)}get isDraftSection(){return!Aa(this.element)}get isDragAndDropEnabled(){return F.hasFullAccess}get isElementUpdating(){return this.elementId?!!F.elementsThatAreUpdating[this.elementId]:!1}calculateStylesAndTitle(){if(F.elementWithContentEditable||!this.element){this.wrapperPositionStyle={display:`none`};return}this.elementTitle=this.getElementTitle(),this.wrapperPositionStyle=Ni(ci(this.element)),this.titlebarPositionStyle=xi(this.element)}get titlebarClasses(){return{"node-titlebar-is-dragging":this.isDragging,"node-titlebar-is-draft-section":this.isDraftSection,"node-titlebar-is-offset":!!this.wrapperPositionStyle.outlineOffset}}get isDragging(){return F.isElementBeingDragged(this.elementId)}get element(){return F.activeElement}get elementId(){return F.activeElementId}handleActiveElementIdChange(){Ku(()=>{this.calculateStylesAndTitle()})}getElementTitle(){return this.element?_r(this.element):``}duplicate(){this.elementId&&B.duplicateElementAndActivateIt(this.elementId)}remove(){this.elementId!==null&&B.deleteElement({nodeId:this.elementId})}refreshSsr(){F.setRefreshSsrElementId(this.elementId)}get hasSSr(){let e=this.element&&I.element(this.element.data.type);return e?e.template.includes(`%%SSR%%`):``}get hasParent(){return this.parentElement&&this.parentElement.data.type!==`root`}get node(){return this.element||!1}activateParent(){this.parentElement&&F.activateElement(this.parentElement.id)}get parentElement(){return this.element&&ml(B.document.tree,this.element.id)||!1}};K([G(`elementId`,{immediate:!0})],mh.prototype,`handleActiveElementIdChange`,null),mh=K([J({components:{Icon:X,OnCanvasDragHandle:uh}})],mh);var hh=Y(mh),gh=[`title`],_h={class:`node-titlebar-button`},vh={key:0,style:{"margin-left":`4px`}},yh=[`title`],bh=[`title`],xh=[`title`],Sh=[`title`];function Ch(e,t,n,r,i,a){let o=M(`Icon`),s=M(`OnCanvasDragHandle`),c=br(`permission`);return z(),E(`div`,{class:R({"node-titlebar-wrapper":!0,"node-titlebar-wrapper-is-dragging":e.isDragging}),style:A(e.wrapperPositionStyle)},[w(`div`,{class:R([`node-titlebar`,e.titlebarClasses]),style:A(e.titlebarPositionStyle),onContextmenu:t[4]||=(...t)=>e.openContextMenu&&e.openContextMenu(...t)},[e.isDragAndDropEnabled?(z(),U(s,{key:0,node:e.node},{default:L(()=>[w(`span`,{class:`node-titlebar-title`,title:e.__(`Drag element`)},[w(`span`,_h,[C(o,{icon:e.builderMode===`breakdance`?`MaximizeIcon`:`GripDotsVerticalIcon`,size:e.builderMode===`breakdance`?11:12},null,8,[`icon`,`size`])]),w(`span`,null,D(e.elementTitle),1),e.isDraftSection&&e.builderMode===`breakdance`?(z(),E(`span`,vh,D(e.__(`(Draft)`)),1)):k(``,!0)],8,gh)]),_:1},8,[`node`])):(z(),E(H,{key:1},[P(D(e.elementTitle),1)],64)),e.hasParent?(z(),E(`span`,{key:2,onClick:t[0]||=(...t)=>e.activateParent&&e.activateParent(...t),class:`node-titlebar-button node-titlebar-button-activate-parent`,title:e.__(`Select parent`)},[C(o,{icon:`ChevronDownIcon`,rotate:`180`,size:`10`})],8,yh)):k(``,!0),e.hasSSr?hc((z(),E(`span`,{key:3,onClick:t[1]||=(...t)=>e.refreshSsr&&e.refreshSsr(...t),class:R({"node-titlebar-button":!0,"node-titlebar-margin-left":!0,"breakdance-node-titlebar-loading-spinner":e.isElementUpdating}),title:e.__(`Refresh element`)},[C(o,{icon:`RotateIcon`,size:`13`})],10,bh)),[[c,`full`]]):k(``,!0),hc((z(),E(`span`,{onClick:t[2]||=(...t)=>e.duplicate&&e.duplicate(...t),class:R({"node-titlebar-button":!0,"node-titlebar-margin-left":!e.hasSSr}),title:e.__(`Duplicate`)},[C(o,{icon:e.builderMode===`breakdance`?`DuplicateIcon`:`DuplicateSolidIcon`,size:`13`},null,8,[`icon`])],10,xh)),[[c,`full`]]),hc((z(),E(`span`,{onClick:t[3]||=(...t)=>e.remove&&e.remove(...t),class:`node-titlebar-button`,title:e.__(`Remove`)},[C(o,{icon:e.builderMode===`breakdance`?`TrashIcon`:`TrashSolidIcon`,size:`12`},null,8,[`icon`])],8,Sh)),[[c,`full`]])],38)],6)}var wh=q(hh,[[`render`,Ch]]),Th=class extends W{constructor(...e){super(...e),this.refreshRate=500,this.shouldShowControls=!1,this.unsubscribeFromStores=()=>{},this.throttledNextTickPositionWrapper=Al(()=>Ku(()=>this.positionWrapper()),100),this.disableMouseHoverOnMouseLeaveCanvas=()=>{setTimeout(()=>F.setLastHoveredOnCanvasElementId(null),110)},this.throttledShowHoverControlsOnMouseMoveCanvas=Al(this.showHoverControlsOnMouseMoveCanvas,100),this.wrapperPositionStyle={display:`none`}}beforeMount(){this.positionWrapper(),this.unsubscribeFromStores=Tm([B,F],this.throttledNextTickPositionWrapper),window.addEventListener(`resize`,this.throttledNextTickPositionWrapper)}mounted(){let e=window.Breakdance.canvas.document.getElementById(`breakdance_canvas`);e&&(this.hoverMode&&(e.addEventListener(`mousemove`,this.throttledShowHoverControlsOnMouseMoveCanvas),e.addEventListener(`mouseleave`,this.disableMouseHoverOnMouseLeaveCanvas)),this.interval=setInterval(this.throttledNextTickPositionWrapper,this.refreshRate))}beforeUnmount(){let e=window.Breakdance.canvas.document.getElementById(`breakdance_canvas`);this.unsubscribeFromStores(),window.removeEventListener(`resize`,this.throttledNextTickPositionWrapper),e?.removeEventListener(`mousemove`,this.throttledShowHoverControlsOnMouseMoveCanvas),clearInterval(this.interval)}get wrapperClassList(){return{"node-hover-controls-show":this.shouldShowControls&&this.isNotDragging,"node-hover-controls--outline":this.hoverMode&&this.isNotDragging||!this.hoverMode,"node-hover-controls--multi-selection":!this.hoverMode}}get isNotDragging(){return!F.isCanvasElementBeingDragged&&!F.isDragMixinDragging}get targetElement(){return this.elementId?na(B.document.tree,this.elementId)||!1:!F.lastHoveredOnCanvasElementId||F.elementWithContentEditable?!1:na(B.document.tree,F.lastHoveredOnCanvasElementId)||!1}setHoveredNode(e,t){let n=nh(e,t);if(n!==void 0){let e=na(B.document.tree,n);e&&F.setLastHoveredOnCanvasElementId(e.id)}}showHoverControlsOnMouseMoveCanvas(e){let{clientX:t,clientY:n}=e;if(this.hoverMode&&this.setHoveredNode(t,n),this.targetElement===!1)return;let r=Ui(this.targetElement,`absolute`);if(!r)return;let{x:i,y:a,width:o,height:s}=r;this.shouldShowControls=t>i+o-48&&ta&&n{},this.wrapperStyle={display:`none`},this.lastModifiedDomElement=null}mounted(){this.calculateWrapperStyles(),this.unsubscribeFromStores=Tm([B,F],this.calculateWrapperStyles),window.addEventListener(`resize`,this.calculateWrapperStyles)}beforeUnmount(){this.unsubscribeFromStores(),window.removeEventListener(`resize`,this.calculateWrapperStyles)}get domElement(){if(!F.elementWithContentEditable)return null;let e=na(B.document.tree,F.elementWithContentEditable);if(!e)return null;let t=ci(e);if(t?.contentEditable===`true`)return this.lastModifiedDomElement=t,t;let n=t?.querySelector(`[contenteditable="true"]`);return n?(this.lastModifiedDomElement=n,n):null}calculateWrapperStyles(){Ku(()=>{!this.domElement&&this.lastModifiedDomElement&&(this.lastModifiedDomElement.removeEventListener(`input`,this.calculateWrapperStyles),this.lastModifiedDomElement=null),this.wrapperStyle=Ni(this.domElement),this.domElement&&this.domElement.addEventListener(`input`,this.calculateWrapperStyles)})}};kh=K([J({})],kh);var Ah=Y(kh);function jh(e,t,n,r,i,a){return z(),E(`div`,{class:`node-content-editable`,style:A(e.wrapperStyle)},null,4)}var Mh=q(Ah,[[`render`,jh]]);function Nh(e){let t=e=>Array.isArray(e)?e.map(e=>t(e)):Ps(e)||Pte(e)||Ste(e)?t(Or(e)):e&&typeof e==`object`?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e;return t(e)}var Ph=class extends W{get groupedGlobalColors(){return fl(N.globalColors)}};K([Z()],Ph.prototype,`element`,void 0),Ph=K([J({components:{NodeOnboardingPaletteButton:ire}})],Ph);var Fh=Y(Ph),Ih={class:`node-hover-onboarding-controls-palette-buttons`};function Lh(e,t,n,r,i,a){let o=M(`NodeOnboardingPaletteButton`);return z(),E(`div`,Ih,[(z(!0),E(H,null,j(e.groupedGlobalColors,(t,n)=>(z(),U(o,{key:n,colorGroup:t,elementId:e.element.id},null,8,[`colorGroup`,`elementId`]))),128))])}var Rh=q(Fh,[[`render`,Lh]]),zh=class extends W{constructor(...e){super(...e),this.rewriteInProgress=!1}async rewrite(){if(!this.rewriteInProgress&&this.element){this.rewriteInProgress=!0,ds(`Onboarding`,{action:`onboarding_app_ui_interaction`,type:`node_rewrite_button`});try{await ta(this.element.id)}catch(e){console.error(`Error during rewrite:`,e)}this.rewriteInProgress=!1}}};K([Z()],zh.prototype,`element`,void 0),zh=K([J({components:{Icon:X}})],zh);var Bh=Y(zh),Vh=[`disabled`];function Hh(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`button`,{class:`node-hover-onboarding-controls-buttons__button`,onClick:t[0]||=(...t)=>e.rewrite&&e.rewrite(...t),disabled:e.rewriteInProgress},[e.rewriteInProgress?(z(),U(o,{key:0,icon:`NotchSolidIcon`,class:`is-spinning`,title:e.__(`Importing the data`),size:`14`},null,8,[`title`])):(z(),U(o,{key:1,icon:`SparklesSolidIcon`,title:e.__(`Success loading the data`),size:`14`},null,8,[`title`])),P(` `+D(e.__(`Rewrite`)),1)],8,Vh)}var Uh=q(Bh,[[`render`,Hh]]),Wh=class extends W{replaceSection(){F.activateElement(this.element.id),Wu(this.element.id),ds(`Onboarding`,{action:`onboarding_app_ui_interaction`,type:`node_shuffle_section_button`});let e=Nh(B.document);window.parent.postMessage({id:``,type:`RESPONSE`,payload:{success:!0,payload:{message:S(`Element activated`),elementId:this.element.id,tree:e.tree.root.children,document:e}}},`*`)}};K([Z()],Wh.prototype,`element`,void 0),Wh=K([J({components:{Icon:X}})],Wh);var Gh=Y(Wh);function Kh(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`button`,{class:`node-hover-onboarding-controls-buttons__button`,onClick:t[0]||=(...t)=>e.replaceSection&&e.replaceSection(...t)},[C(o,{icon:`ArrowsRotateSolidIcon`,size:`14`}),P(` `+D(e.__(`Shuffle`)),1)])}var qh=q(Gh,[[`render`,Kh]]),Jh=class extends W{addSection(){ds(`Onboarding`,{action:`onboarding_app_ui_interaction`,type:`node_add_section_button`}),Hne(this.element)}};K([Z({required:!0})],Jh.prototype,`element`,void 0),Jh=K([J({components:{Icon:X}})],Jh);var Yh=Y(Jh),Xh={class:`node-hover-onboarding-controls-add-section`};function Zh(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,Xh,[w(`button`,{class:`node-hover-onboarding-controls-buttons__button`,onClick:t[0]||=(...t)=>e.addSection&&e.addSection(...t)},[C(o,{icon:`PlusIconSolid`,size:`14`}),P(` `+D(e.__(`Add Section`)),1)])])}var Qh=q(Yh,[[`render`,Zh]]),$h=class extends W{constructor(...e){super(...e),this.refreshRate=500,this.shouldShowControls=!0,this.unsubscribeFromStores=()=>{},this.throttledNextTickPositionWrapper=Al(()=>Ku(()=>this.positionWrapper()),100),this.disableMouseHoverOnMouseLeaveCanvas=()=>{setTimeout(()=>F.setLastHoveredOnCanvasElementId(null),110)},this.throttledShowHoverControlsOnMouseMoveCanvas=Al(this.showHoverControlsOnMouseMoveCanvas,100),this.wrapperPositionStyle={display:`none`}}beforeMount(){this.positionWrapper(),this.unsubscribeFromStores=Tm([B,F],this.throttledNextTickPositionWrapper),window.addEventListener(`resize`,this.throttledNextTickPositionWrapper)}mounted(){let e=window.Breakdance.canvas.document.getElementById(`breakdance_canvas`);e&&(e.addEventListener(`mousemove`,this.throttledShowHoverControlsOnMouseMoveCanvas),e.addEventListener(`mouseleave`,this.disableMouseHoverOnMouseLeaveCanvas),this.interval=setInterval(this.throttledNextTickPositionWrapper,this.refreshRate))}beforeUnmount(){let e=window.Breakdance.canvas.document.getElementById(`breakdance_canvas`);this.unsubscribeFromStores(),window.removeEventListener(`resize`,this.throttledNextTickPositionWrapper),e?.removeEventListener(`mousemove`,this.throttledShowHoverControlsOnMouseMoveCanvas),clearInterval(this.interval)}get wrapperClassList(){return{"node-hover-controls-show":!0,"node-hover-controls--outline":this.isNotDragging}}get isNotDragging(){return!F.isCanvasElementBeingDragged&&!F.isDragMixinDragging}activateElement(){if(!this.element)return;let e=Nh(B.document);window.parent.postMessage({id:``,type:`RESPONSE`,payload:{success:!0,payload:{message:`Element activated`,activeElementId:this.element.id,document:e}}},`*`),F.activateElement(this.element.id)}get element(){return!F.lastHoveredOnCanvasElementId||F.elementWithContentEditable?!1:na(B.document.tree,F.lastHoveredOnCanvasElementId)||!1}setHoveredNode(e,t){let n=nh(e,t);if(n!==void 0){let e=na(B.document.tree,n);e&&e.data.type===`EssentialElements\\Section`&&F.setLastHoveredOnCanvasElementId(e.id)}}showHoverControlsOnMouseMoveCanvas(e){let{clientX:t,clientY:n}=e;if(this.setHoveredNode(t,n),this.element===!1)return;let r=Ui(this.element,`absolute`);if(!r)return;let{x:i,y:a,width:o,height:s}=r;this.shouldShowControls=t>i+o-48&&ta&&ne.activateElement&&e.activateElement(...t)},[w(`div`,tg,[w(`div`,ng,[C(o,{element:e.element},null,8,[`element`]),C(s,{element:e.element},null,8,[`element`]),C(c,{element:e.element},null,8,[`element`])])]),C(l,{element:e.element},null,8,[`element`])],6)}var ig=q(eg,[[`render`,rg]]),ag=class extends W{get elementIcon(){return this.icon||`SquareIcon`}get elementIconIsLocal(){return wl.find(e=>e===this.elementIcon)}};K([Z()],ag.prototype,`icon`,void 0),K([Z({default:`14`})],ag.prototype,`size`,void 0),ag=K([J({components:{Icon:X}})],ag);var og=Y(ag),sg={class:`d-flex`},cg=[`innerHTML`];function lg(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,sg,[e.elementIconIsLocal?(z(),U(o,{key:0,icon:e.elementIcon,size:e.size},null,8,[`icon`,`size`])):(z(),E(`div`,{key:1,style:A({width:`${e.size}px`,height:`${e.size}px`,display:`flex`}),innerHTML:e.elementIcon},null,12,cg))])}var ug=q(og,[[`render`,lg]]),dg=class extends W{constructor(...e){super(...e),this.refreshRate=500,this.unsubscribeFromStores=()=>{},this.titlebarPositionStyle={},this.wrapperPositionStyle={display:`none`},this.elementTitle=``}nextTickPositionsWrapper(){Ku(this.calculateStylesAndTitle)}get builderMode(){return I.builderMode}get isDragging(){return!!F.currentlyDraggingCanvasElementId}mounted(){this.calculateStylesAndTitle(),this.unsubscribeFromStores=Tm([B,F],this.nextTickPositionsWrapper),window.addEventListener(`resize`,this.nextTickPositionsWrapper),this.interval=setInterval(this.nextTickPositionsWrapper,this.refreshRate)}beforeUnmount(){this.unsubscribeFromStores(),window.removeEventListener(`resize`,this.nextTickPositionsWrapper),clearInterval(this.interval)}get isDraftSection(){return!Aa(this.element)}calculateStylesAndTitle(){if(!this.element||this.activeElement&&this.activeElement.id===this.elementId){this.wrapperPositionStyle={display:`none`};return}this.elementTitle=this.getElementTitle(),this.wrapperPositionStyle=Ni(ci(this.element)),this.titlebarPositionStyle=xi(this.element)}get titlebarClasses(){return{"node-titlebar-is-offset":!!this.wrapperPositionStyle.outlineOffset}}get activeElement(){return F.activeElement}get element(){return F.lastHoveredOnCanvasElementId&&na(B.document.tree,F.lastHoveredOnCanvasElementId)||!1}get elementId(){return this.element?this.element.id:null}getElementTitle(){return this.element?_r(this.element):``}get elementIcon(){return this.element?Wn(this.element,!0):`MaximizeIcon`}get node(){return this.element||!1}};dg=K([J({components:{Icon:X,OnCanvasDragHandle:uh,ElementIcon:ug}})],dg);var fg=Y(dg),pg=[`title`],mg={key:0,style:{"margin-left":`4px`}};function hg(e,t,n,r,i,a){let o=M(`ElementIcon`);return z(),E(`div`,{class:R({"node-titlebar-wrapper":!0,"node-titlebar-wrapper--ghost":!0,"node-titlebar--hide":e.isDragging}),style:A(e.wrapperPositionStyle)},[w(`div`,{class:R([`node-titlebar`,e.titlebarClasses]),style:A(e.titlebarPositionStyle)},[w(`span`,{class:`node-titlebar-title`,title:e.__(`Drag element`)},[w(`span`,{class:`node-titlebar-button`,style:A({width:e.builderMode===`breakdance`?`11px`:`12px`})},[e.builderMode===`oxygen`?(z(),U(o,{key:0,class:`breakdance-add-panel__element-svg-icon`,icon:e.elementIcon,size:12},null,8,[`icon`])):k(``,!0)],4),w(`span`,null,D(e.elementTitle),1),e.isDraftSection&&e.builderMode===`breakdance`?(z(),E(`span`,mg,D(e.__(`(Draft)`)),1)):k(``,!0)],8,pg)],6)],6)}var gg=q(fg,[[`render`,hg]]),_g=class extends W{constructor(...e){super(...e),this.refreshRate=500,this.unsubscribeFromStores=()=>{},this.titlebarPositionStyle={},this.wrapperPositionStyle={display:`none`},this.elementTitle=``}nextTickPositionsWrapper(){Ku(this.calculateStylesAndTitle)}openContextMenu(e){e.stopPropagation(),e.preventDefault();let t=dh(e.clientX,e.clientY);!this.elementId||!t||F.setOnCanvasRightClickMenuState({elementIds:[this.elementId],position:t})}get builderMode(){return I.builderMode}mounted(){this.calculateStylesAndTitle(),this.unsubscribeFromStores=Tm([B,F],this.nextTickPositionsWrapper),window.addEventListener(`resize`,this.nextTickPositionsWrapper),this.interval=setInterval(this.nextTickPositionsWrapper,this.refreshRate),jl.register(Kr.SHIFT_ESC,()=>{this.activateParent()})}beforeUnmount(){this.unsubscribeFromStores(),window.removeEventListener(`resize`,this.nextTickPositionsWrapper),clearInterval(this.interval),jl.unbind(Kr.SHIFT_ESC)}get isDraftSection(){return!this.element||this.element.data.type!==`EssentialElements\\Section`?!1:!!rt(this.element.data.properties,`settings.advanced.draft`)}get isDragAndDropEnabled(){return F.hasFullAccess}get isElementUpdating(){return this.elementId?!!F.elementsThatAreUpdating[this.elementId]:!1}calculateStylesAndTitle(){if(F.elementWithContentEditable||!this.element){this.wrapperPositionStyle={display:`none`};return}this.elementTitle=this.getElementTitle(),this.wrapperPositionStyle=Ni(ci(this.element),4),this.titlebarPositionStyle=xi(this.element)}get titlebarClasses(){return{"node-titlebar-is-dragging":this.isDragging,"node-titlebar-is-draft-section":this.isDraftSection}}get isDragging(){return F.isElementBeingDragged(this.elementId)}get element(){return F.activeElement}get elementId(){return F.activeElementId}get elementIcon(){return this.element?Wn(this.element,!0):`MaximizeIcon`}getElementTitle(){return this.element?_r(this.element):``}duplicate(){this.elementId&&B.duplicateElementAndActivateIt(this.elementId)}remove(){this.elementId!==null&&B.deleteElement({nodeId:this.elementId})}refreshSsr(){F.setRefreshSsrElementId(this.elementId)}get hasSSr(){let e=this.element&&I.element(this.element.data.type);return e?e.template.includes(`%%SSR%%`):``}get hasParent(){return this.parentElement&&this.parentElement.data.type!==`root`}get node(){return this.element||!1}activateParent(){this.parentElement&&F.activateElement(this.parentElement.id)}get parentElement(){return this.element&&ml(B.document.tree,this.element.id)||!1}};_g=K([J({components:{Icon:X,OnCanvasDragHandle:uh}})],_g);var vg=Y(_g),yg={class:`node-titlebar-title`,title:`Drag element`},bg={class:`node-titlebar-button`},xg={key:0,style:{"margin-left":`4px`}};function Sg(e,t,n,r,i,a){let o=M(`Icon`),s=M(`OnCanvasDragHandle`),c=br(`permission`);return z(),E(`div`,{class:R({"node-titlebar-wrapper":!0,"singularity-node-titlebar-wrapper":!0,"node-titlebar-wrapper-is-dragging":e.isDragging}),style:A(e.wrapperPositionStyle)},[w(`div`,{class:R([`node-titlebar node-titlebar`,e.titlebarClasses]),style:A(e.titlebarPositionStyle),onContextmenu:t[4]||=(...t)=>e.openContextMenu&&e.openContextMenu(...t)},[e.isDragAndDropEnabled?(z(),U(s,{key:0,node:e.node},{default:L(()=>[w(`span`,yg,[w(`span`,bg,[C(o,{icon:e.builderMode===`breakdance`?`MaximizeIcon`:`GripDotsVerticalIcon`,size:e.builderMode===`breakdance`?11:12},null,8,[`icon`,`size`])]),w(`span`,null,D(e.elementTitle),1),e.isDraftSection?(z(),E(`span`,xg,` (Draft) `)):k(``,!0)])]),_:1},8,[`node`])):(z(),E(H,{key:1},[P(D(e.elementTitle),1)],64)),e.hasParent?(z(),E(`span`,{key:2,onClick:t[0]||=(...t)=>e.activateParent&&e.activateParent(...t),class:`node-titlebar-button node-titlebar-button-activate-parent`,title:`Select parent`},[C(o,{icon:`ChevronDownIcon`,rotate:`180`,size:`10`})])):k(``,!0),e.hasSSr?hc((z(),E(`span`,{key:3,onClick:t[1]||=(...t)=>e.refreshSsr&&e.refreshSsr(...t),class:R({"node-titlebar-button":!0,"node-titlebar-margin-left":!0,"breakdance-node-titlebar-loading-spinner":e.isElementUpdating}),title:`Refresh element`},[C(o,{icon:`RotateIcon`,size:`13`})],2)),[[c,`full`]]):k(``,!0),hc((z(),E(`span`,{onClick:t[2]||=(...t)=>e.duplicate&&e.duplicate(...t),class:R({"node-titlebar-button":!0,"node-titlebar-margin-left":!e.hasSSr}),title:`Duplicate`},[C(o,{icon:e.builderMode===`breakdance`?`DuplicateIcon`:`DuplicateSolidIcon`,size:`13`},null,8,[`icon`])],2)),[[c,`full`]]),hc((z(),E(`span`,{onClick:t[3]||=(...t)=>e.remove&&e.remove(...t),class:`node-titlebar-button`,title:`Remove`},[C(o,{icon:e.builderMode===`breakdance`?`TrashIcon`:`TrashSolidIcon`,size:`12`},null,8,[`icon`])])),[[c,`full`]])],38)],6)}var Cg=q(vg,[[`render`,Sg]]),wg=class extends W{get classes(){return{"singularity-canvas-button":!0,"singularity-canvas-button--small":this.size===`small`,"singularity-canvas-button--large":this.size===`large`}}};K([Z({type:String,required:!0})],wg.prototype,`icon`,void 0),K([Z({type:String,required:!0})],wg.prototype,`text`,void 0),K([Z({type:String,default:null})],wg.prototype,`size`,void 0),wg=K([J({emits:[`click`],components:{Icon:X}})],wg);var Tg=Y(wg),Eg={class:`singularity-canvas-button__text`};function Dg(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,{class:R(e.classes),role:`button`,onClick:t[0]||=t=>e.$emit(`click`)},[C(o,{icon:e.icon,size:`14`,class:`singularity-canvas-button__icon`},null,8,[`icon`]),w(`span`,Eg,D(e.text),1)],2)}var Og=q(Tg,[[`render`,Dg]]),kg=class extends W{addSection(){V.setSectionAddOrSwapPanelState({mode:`add_after`,sectionId:this.sectionId}),V.setSectionLibraryModalState(!0)}};K([Z()],kg.prototype,`sectionId`,void 0),kg=K([J({components:{Icon:X,SingularityCanvasButton:Og}})],kg);var Ag=Y(kg),jg={class:`singularity-position-wrapper singularity-position-wrapper--bottom-center`},Mg={class:`singularity-button-group`};function Ng(e,t,n,r,i,a){let o=M(`SingularityCanvasButton`);return z(),E(`div`,jg,[w(`div`,Mg,[C(o,{icon:`PlusIconSolid`,text:`Section`,onClick:e.addSection},null,8,[`onClick`])])])}var Pg=q(Ag,[[`render`,Ng]]),Fg=class extends W{addAnother(){B.duplicateElement({elementId:this.elementId})}};K([Z()],Fg.prototype,`elementId`,void 0),Fg=K([J({components:{Icon:X}})],Fg);var Ig=Y(Fg),Lg={class:`singularity-canvas-add-another-button__inner`};function Rg(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,{class:`singularity-canvas-add-another-button`,onClick:t[0]||=(...t)=>e.addAnother&&e.addAnother(...t)},[w(`div`,Lg,[C(o,{icon:`PlusIconSolid`,size:`14`})])])}var zg=q(Ig,[[`render`,Rg]]),Bg=class extends W{editBackgroundImage(){V.setBackgroundImageEditorPanelState({sectionId:this.elementId}),alert(`background_image_editor removed`)}};K([Z()],Bg.prototype,`elementId`,void 0),Bg=K([J({components:{}})],Bg);var Vg=Y(Bg);function Hg(e,t,n,r,i,a){return z(),E(`div`,{class:`singularity-canvas-edit-background-image-button`,onClick:t[0]||=(...t)=>e.editBackgroundImage&&e.editBackgroundImage(...t)},` Edit Background Image `)}var Ug=q(Vg,[[`render`,Hg]]),Wg=class extends W{editIcon(){V.setIconEditorPanelState({iconId:this.elementId}),V.setSingularityLeftPanel(`icon_editor`)}};K([Z()],Wg.prototype,`elementId`,void 0),Wg=K([J({components:{}})],Wg);var Gg=Y(Wg);function Kg(e,t,n,r,i,a){return z(),E(`div`,{class:`singularity-canvas-edit-icon-button`,onClick:t[0]||=(...t)=>e.editIcon&&e.editIcon(...t)},D(e.__(`Change Icon`)),1)}var qg=q(Gg,[[`render`,Kg]]);const Jg=[{elementSlug:Tne,linkPropertyPaths:[`content.content.link`]},{elementSlug:Dne,linkPropertyPaths:[`content.content.link`]},{elementSlug:Pne,linkPropertyPaths:[`content.content.link`]},{elementSlug:`EssentialElements\\PricingTable`,linkPropertyPaths:[`content.content.button.link`]}];function Yg(e){return Jg.some(t=>t.elementSlug===e)}function Xg(e){return Jg.find(t=>t.elementSlug===e)?.linkPropertyPaths}function Zg(e){return Yn((e,t)=>Yg(e.data.type)?!0:t,B.document.tree,e,!1)}function Qg(e){return Yn((e,t)=>Yg(e.data.type)?e:t,B.document.tree,e,void 0)}var $g=class extends W{editLink(){let e=na(B.document.tree,this.elementId);if(!e||(Yg(e.data.type)||(e=Qg(e)),!e)||!Yg(e.data.type))return;let t=Xg(e.data.type);t&&(V.setLinkEditorPanelState({elementId:e.id,linkPropertyPaths:t}),V.setSingularityLeftPanel(`link_editor`))}};K([Z()],$g.prototype,`elementId`,void 0),$g=K([J({components:{}})],$g);var e_=Y($g);function t_(e,t,n,r,i,a){return z(),E(`div`,{class:`singularity-canvas-edit-link-button`,onClick:t[0]||=(...t)=>e.editLink&&e.editLink(...t)},D(e.__(`Edit Link`)),1)}var n_=q(e_,[[`render`,t_]]),r_=class extends W{editContentProperties(){F.activateElement(this.elementId),V.setContentPropertiesEditorPanelState(!0),V.setSingularityLeftPanel(`content_properties_editor`)}};K([Z()],r_.prototype,`elementId`,void 0),r_=K([J({components:{}})],r_);var i_=Y(r_);function a_(e,t,n,r,i,a){return z(),E(`div`,{class:`singularity-canvas-edit-content-properties-button`,onClick:t[0]||=(...t)=>e.editContentProperties&&e.editContentProperties(...t)},` Edit Content Properties `)}var o_=q(i_,[[`render`,a_]]),s_=class extends W{activateElement(){F.activateElement(this.elementId),V.setSingularityLeftPanel(`page_structure`)}};K([Z()],s_.prototype,`elementId`,void 0),s_=K([J({components:{SingularityCanvasButton:Og}})],s_);var c_=Y(s_),l_={class:`singularity-sticky-section-edit`},u_={class:`singularity-button-group`};function d_(e,t,n,r,i,a){let o=M(`SingularityCanvasButton`);return z(),E(`div`,l_,[w(`div`,u_,[C(o,{icon:`EditSolidIcon`,text:`Edit Section`,onClick:e.activateElement},null,8,[`onClick`])])])}var f_=q(c_,[[`render`,d_]]),p_=class extends W{constructor(...e){super(...e),this.refreshRate=500,this.shouldShowControls=!0,this.unsubscribeFromStores=()=>{},this.throttledNextTickPositionWrapper=Al(()=>Ku(()=>this.positionWrapper()),100),this.disableMouseHoverOnMouseLeaveCanvas=()=>{setTimeout(()=>F.setLastHoveredOnCanvasElementId(null),110)},this.throttledShowHoverControlsOnMouseMoveCanvas=Al(this.showHoverControlsOnMouseMoveCanvas,100),this.wrapperPositionStyle={display:`none`}}beforeMount(){this.positionWrapper(),this.unsubscribeFromStores=Tm([B,F],this.throttledNextTickPositionWrapper),window.addEventListener(`resize`,this.throttledNextTickPositionWrapper)}mounted(){let e=window.Breakdance.canvas.document.getElementById(`breakdance_canvas`);e&&(e.addEventListener(`mousemove`,this.throttledShowHoverControlsOnMouseMoveCanvas),e.addEventListener(`mouseleave`,this.disableMouseHoverOnMouseLeaveCanvas),this.interval=setInterval(this.throttledNextTickPositionWrapper,this.refreshRate))}beforeUnmount(){let e=window.Breakdance.canvas.document.getElementById(`breakdance_canvas`);this.unsubscribeFromStores(),window.removeEventListener(`resize`,this.throttledNextTickPositionWrapper),e?.removeEventListener(`mousemove`,this.throttledShowHoverControlsOnMouseMoveCanvas),clearInterval(this.interval)}get wrapperClassList(){return{"node-hover-controls-show":this.shouldShowControls&&this.isNotDragging,"node-hover-controls--outline":this.isNotDragging,"node-hover-controls--active":this.isActiveElement}}get isNotDragging(){return!F.isCanvasElementBeingDragged&&!F.isDragMixinDragging}get isActiveElement(){return this.element&&F.isElementActive(this.element.id)}get element(){return!F.lastHoveredOnCanvasElementId||F.elementWithContentEditable?null:na(B.document.tree,F.lastHoveredOnCanvasElementId)||null}setHoveredNode(e,t){let n=nh(e,t);if(n!==void 0){let e=na(B.document.tree,n);e&&F.setLastHoveredOnCanvasElementId(e.id)}}showHoverControlsOnMouseMoveCanvas(e){let{clientX:t,clientY:n}=e;if(this.setHoveredNode(t,n),!this.element)return;let r=Ui(this.element,`absolute`);if(!r)return;let{x:i,y:a,width:o,height:s}=r;this.shouldShowControls=t>i+o-48&&ta&&n{},this.wrapperStyle={display:`none`},this.lastModifiedDomElement=null}mounted(){this.calculateWrapperStyles(),this.unsubscribeFromStores=Tm([B,F],this.calculateWrapperStyles),window.addEventListener(`resize`,this.calculateWrapperStyles)}beforeUnmount(){this.unsubscribeFromStores(),window.removeEventListener(`resize`,this.calculateWrapperStyles)}get domElement(){if(!F.elementWithContentEditable)return null;let e=na(B.document.tree,F.elementWithContentEditable);if(!e)return null;let t=ci(e);if(t?.contentEditable===`true`)return this.lastModifiedDomElement=t,t;let n=t?.querySelector(`[contenteditable="true"]`);return n?(this.lastModifiedDomElement=n,n):null}calculateWrapperStyles(){Ku(()=>{!this.domElement&&this.lastModifiedDomElement&&(this.lastModifiedDomElement.removeEventListener(`input`,this.calculateWrapperStyles),this.lastModifiedDomElement=null),this.wrapperStyle=Ni(this.domElement),this.domElement&&this.domElement.addEventListener(`input`,this.calculateWrapperStyles)})}};__=K([J({})],__);var v_=Y(__);function y_(e,t,n,r,i,a){return z(),E(`div`,{class:`node-content-editable`,style:A(e.wrapperStyle)},null,4)}var b_=q(v_,[[`render`,y_]]),x_=class extends W{get element(){return F.activeElement}get elementId(){return F.activeElementId}getElementTitle(){return this.element?_r(this.element):``}get elementTitle(){return this.getElementTitle()}get isImageElement(){return this.element&&this.element.data.type===`EssentialElements\\Image2`}get isSectionElementWithBackgroundImage(){return this.element&&this.element.data.type===`EssentialElements\\Section`&&rt(this.element.data.properties,`design.background.type`)==`image`}get isIconElement(){return this.element&&this.element.data.type===`EssentialElements\\Icon`}get isChildOfGrid(){if(!this.element)return!1;let e=na(B.document.tree,this.element._parentId);return e?e.data.type===zu:!1}get isGalleryElement(){return this.element&&this.element.data.type===`EssentialElements\\Gallery`}get isLinkElementOrChildOfLinkElement(){return this.element?Yg(this.element.data.type)||Zg(this.element):!1}get isHeaderElement(){return this.element&&this.element.data.type===`FutureLayerElements\\Header`}get isFooterElement(){return this.element&&this.element.data.type===`FutureLayerElements\\Footer`}get isHeaderOrFooterElement(){return this.isHeaderElement||this.isFooterElement}get isSiteLogoElement(){return this.element&&this.element.data.type===`FutureLayerElements\\SiteLogo`}editElement(){if(!(!this.element||!this.elementId)){if(this.isSiteLogoElement){V.setSingularityLeftPanel(`brand`);return}if(this.isHeaderOrFooterElement){V.setHeaderAndFooterEditorPanelState({elementId:this.elementId,elementType:this.isHeaderElement?`header`:`footer`});return}if(this.isImageElement){V.setImageEditorPanelState({mediaType:`image`,elementId:this.elementId,controlPath:`content.image.media`,initialStep:`main`}),V.setSingularityLeftPanel(`image_editor`);return}if(this.isGalleryElement){V.setImageEditorPanelState({mediaType:`image`,elementId:this.elementId,controlPath:`content.content.images[].image`,selectedImageIndex:0,initialStep:`main`}),V.setSingularityLeftPanel(`image_editor`);return}if(this.isIconElement){V.setIconEditorPanelState({iconId:this.elementId}),V.setSingularityLeftPanel(`icon_editor`);return}if(this.isSectionElementWithBackgroundImage){V.setImageEditorPanelState({mediaType:`image`,elementId:this.elementId,controlPath:`design.background.image`,initialStep:`main`}),V.setSingularityLeftPanel(`image_editor`);return}if(this.isLinkElementOrChildOfLinkElement){this.editLink();return}V.setContentPropertiesEditorPanelState(!0),V.setSingularityLeftPanel(`content_properties_editor`)}}editLink(){if(!this.elementId)return;let e=na(B.document.tree,this.elementId);if(!e||(Yg(e.data.type)||(e=Qg(e)),!e)||!Yg(e.data.type))return;let t=Xg(e.data.type);t&&(V.setLinkEditorPanelState({elementId:e.id,linkPropertyPaths:t}),V.setSingularityLeftPanel(`link_editor`))}};x_=K([J({components:{SingularityCanvasButton:Og}})],x_);var S_=Y(x_);function C_(e,t,n,r,i,a){let o=M(`SingularityCanvasButton`);return z(),U(o,{icon:`EditSolidIcon`,text:`Edit ${e.elementTitle}`,onClick:e.editElement},null,8,[`text`,`onClick`])}var w_=q(S_,[[`render`,C_]]),T_=class extends W{constructor(...e){super(...e),this.refreshRate=500,this.nonEditableElementsSlugs=[Fne,jne,Ru],this.unsubscribeFromStores=()=>{},this.titlebarPositionStyle={},this.wrapperPositionStyle={display:`none`},this.elementTitle=``}get shouldShowTitlebar(){if(!F.activeElement)return!1;let e=F.activeElement;return!F.elementWithContentEditable&&!this.nonEditableElementsSlugs.includes(e.data.type)}nextTickPositionsWrapper(){Ku(this.calculateStylesAndTitle)}mounted(){this.calculateStylesAndTitle(),this.unsubscribeFromStores=Tm([B,F],this.nextTickPositionsWrapper),window.addEventListener(`resize`,this.nextTickPositionsWrapper),this.interval=setInterval(this.nextTickPositionsWrapper,this.refreshRate)}beforeUnmount(){this.unsubscribeFromStores(),window.removeEventListener(`resize`,this.nextTickPositionsWrapper),clearInterval(this.interval)}calculateStylesAndTitle(){if(F.elementWithContentEditable||!this.element){this.wrapperPositionStyle={display:`none`};return}this.elementTitle=this.getElementTitle(),this.wrapperPositionStyle=Ni(ci(this.element)),this.titlebarPositionStyle=xi(this.element)}get titlebarClasses(){return{"node-titlebar-is-offset":!!this.wrapperPositionStyle.outlineOffset,"is-hidden":!this.shouldShowTitlebar}}get element(){return F.activeElement}get elementId(){return F.activeElementId}getElementTitle(){return this.element?_r(this.element):``}get isSectionElement(){return this.element&&this.element.data.type===`EssentialElements\\Section`}get node(){return this.element||!1}};T_=K([J({components:{Icon:X,EditElementCanvasButton:w_}})],T_);var E_=Y(T_),D_={key:0,class:`singularity-node-titlebar__text`};function O_(e,t,n,r,i,a){let o=M(`EditElementCanvasButton`);return z(),E(`div`,{class:R({"singularity-node-titlebar-wrapper":!0}),style:A(e.wrapperPositionStyle)},[w(`div`,{class:R([`singularity-node-titlebar`,e.titlebarClasses]),style:A(e.titlebarPositionStyle)},[e.isSectionElement?(z(),E(`span`,D_,D(e.elementTitle),1)):(z(),U(o,{key:1}))],6)],4)}var k_=q(E_,[[`render`,O_]]);function A_(e){let t=e.getBoundingClientRect(),n=window.Breakdance.canvas.document.documentElement.scrollLeft,r=window.Breakdance.canvas.document.documentElement.scrollTop;return{left:`${t.left+n}px`,top:`${t.top+r}px`,width:`${t.width}px`,height:`${t.height}px`}}function j_(e){let t=ci(e);return t?A_(t):!1}function M_(e,t){let n=()=>{Ku(()=>{t(A_(e))})},r=setInterval(n,500);return window.addEventListener(`resize`,n),()=>{window.removeEventListener(`resize`,n),clearInterval(r)}}function N_(e,t){let n=()=>{Ku(()=>{t(j_(e))})},r=B.$onAction(e=>{e.after(n)}),i=setInterval(n,500);return window.addEventListener(`resize`,n),()=>{window.removeEventListener(`resize`,n),r(),clearInterval(i)}}function P_(e){return e?{left:e.left,top:e.top,width:`0px`,height:`0px`}:{display:`none`}}function F_(e){return e?{left:`0px`,top:`0px`,width:e.width,height:e.height}:{display:`none`}}var I_=class extends W{constructor(...e){super(...e),this.mouseY=0}mounted(){window.Breakdance.canvas.document.addEventListener(`mousemove`,this.handleMouseMove)}beforeUnmount(){window.Breakdance.canvas.document.removeEventListener(`mousemove`,this.handleMouseMove)}handleMouseMove(e){this.mouseY=e.clientY}isMouseNearButton(e){return Math.abs(this.mouseY-e)<=50}get isFirstChildInRootAfterHeaderAndHasFutureLayerPreferOverlayHeaderClass(){return Rl(this.element.id)&&Uee(this.element)}get cssStyleForAddSectionTop(){if(!this.elementPositionOnCanvas)return{display:`none`};let e=parseFloat(this.elementPositionOnCanvas.top.replace(`px`,``))-window.Breakdance.canvas.document.documentElement.scrollTop;return this.isMouseNearButton(e)?{left:`calc(${this.elementPositionOnCanvas.width} * 0.5)`,top:`0px`,transform:`translate(-50%, -50%)`}:{display:`none`}}get cssStyleForAddSectionBottom(){if(!this.elementPositionOnCanvas)return{display:`none`};let e=parseFloat(this.elementPositionOnCanvas.top.replace(`px`,``)),t=parseFloat(this.elementPositionOnCanvas.height.replace(`px`,``)),n=window.Breakdance.canvas.document.documentElement.scrollTop,r=e+t-n;return this.isMouseNearButton(r)?{left:`calc(${this.elementPositionOnCanvas.width} * 0.5)`,top:this.elementPositionOnCanvas.height,transform:`translate(-50%, -50%)`}:{display:`none`}}handleAddSectionBefore(){V.setSectionAddOrSwapPanelState({mode:`add_before`,sectionId:this.element.id}),V.setSectionLibraryModalState(!0)}handleAddSectionAfter(){V.setSectionAddOrSwapPanelState({mode:`add_after`,sectionId:this.element.id}),V.setSectionLibraryModalState(!0)}};K([Z()],I_.prototype,`element`,void 0),K([Z()],I_.prototype,`elementPositionOnCanvas`,void 0),I_=K([J],I_);var L_=Y(I_);function R_(e,t,n,r,i,a){return z(),E(`div`,null,[e.isFirstChildInRootAfterHeaderAndHasFutureLayerPreferOverlayHeaderClass?k(``,!0):(z(),E(`div`,{key:0,class:`futurelayer-add-section-controls`,style:A(e.cssStyleForAddSectionTop)},[w(`button`,{class:`futurelayer-add-section-button futurelayer-add-section-button-top`,onClick:t[0]||=(...t)=>e.handleAddSectionBefore&&e.handleAddSectionBefore(...t)},D(e.__(`Add Section`)),1)],4)),w(`div`,{class:`futurelayer-add-section-controls`,style:A(e.cssStyleForAddSectionBottom)},[w(`button`,{class:`futurelayer-add-section-button futurelayer-add-section-button-bottom`,onClick:t[1]||=(...t)=>e.handleAddSectionAfter&&e.handleAddSectionAfter(...t)},D(e.__(`Add Section`)),1)],4)])}var z_=q(L_,[[`render`,R_]]),B_=class extends W{constructor(...e){super(...e),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=j_(this.element),this.cleanupListeners=N_(this.element,e=>{this.elementPositionOnCanvas=e})}beforeUnmount(){this.cleanupListeners()}get cssStyleForWrapper(){return P_(this.elementPositionOnCanvas)}get cssStyleForOutline(){return F_(this.elementPositionOnCanvas)}get isSection(){return this.element.data.type===Iu}get isInlineEditing(){return F.isInlineEditing}};K([Z()],B_.prototype,`element`,void 0),B_=K([J({components:{AddAnotherSectionButton:z_}})],B_);var V_=Y(B_),H_=[`data-futurelayer-element-id`];function U_(e,t,n,r,i,a){let o=M(`AddAnotherSectionButton`);return z(),E(`div`,{class:`futurelayer-active-element-wrapper`,style:A(e.cssStyleForWrapper),"data-futurelayer-element-id":e.element.id},[w(`div`,{class:`futurelayer-active-element-outline`,style:A(e.cssStyleForOutline)},null,4),e.isSection&&!e.isInlineEditing?(z(),U(o,{key:0,element:e.element,elementPositionOnCanvas:e.elementPositionOnCanvas},null,8,[`element`,`elementPositionOnCanvas`])):k(``,!0)],12,H_)}var W_=q(V_,[[`render`,U_]]),G_=class extends W{constructor(...e){super(...e),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=j_(this.element),this.cleanupListeners=N_(this.element,e=>{this.elementPositionOnCanvas=e})}beforeUnmount(){this.cleanupListeners()}get canActivate(){return Hee(this.element.data.type).canActivate}get cssStyleForWrapper(){return this.canActivate?P_(this.elementPositionOnCanvas):{display:`none`}}get cssStyleForOutline(){return this.canActivate?F_(this.elementPositionOnCanvas):{display:`none`}}get isSection(){return this.element.data.type===Iu}get isInlineEditing(){return F.isInlineEditing}};K([Z()],G_.prototype,`element`,void 0),G_=K([J({components:{AddAnotherSectionButton:z_}})],G_);var K_=Y(G_),q_=[`data-futurelayer-element-id`];function J_(e,t,n,r,i,a){let o=M(`AddAnotherSectionButton`);return z(),E(`div`,{class:`futurelayer-hovered-element-wrapper`,style:A(e.cssStyleForWrapper),"data-futurelayer-element-id":e.element.id},[w(`div`,{class:`futurelayer-hovered-element-outline`,style:A(e.cssStyleForOutline)},null,4),e.isSection&&!e.isInlineEditing?(z(),U(o,{key:0,element:e.element,elementPositionOnCanvas:e.elementPositionOnCanvas},null,8,[`element`,`elementPositionOnCanvas`])):k(``,!0)],12,q_)}var Y_=q(K_,[[`render`,J_]]),X_=class extends W{constructor(...e){super(...e),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{},this.loading=!1}mounted(){this.elementPositionOnCanvas=j_(this.element),this.cleanupListeners=N_(this.element,e=>{this.elementPositionOnCanvas=e})}beforeUnmount(){this.cleanupListeners()}get cssStyleForWrapper(){return P_(this.elementPositionOnCanvas)}get cssStyleForOutline(){return F_(this.elementPositionOnCanvas)}get cssStyleForControls(){return this.elementPositionOnCanvas?{left:`0px`,top:`0px`,width:this.elementPositionOnCanvas.width,height:this.elementPositionOnCanvas.height}:{display:`none`}}get isHeader(){return this.element.data.type===sc}async startEditing(){this.loading=!0,await bc(this.element.id),this.loading=!1}};K([Z()],X_.prototype,`element`,void 0),X_=K([J],X_);var Z_=Y(X_),Q_=[`data-futurelayer-element-id`],$_={key:0,class:`futurelayer-header-footer-edit-button`},ev={key:1};function tv(e,t,n,r,i,a){return z(),E(`div`,{class:`futurelayer-hovered-header-footer-wrapper`,style:A(e.cssStyleForWrapper),"data-futurelayer-element-id":e.element.id},[w(`div`,{class:`futurelayer-hovered-header-footer-outline`,style:A(e.cssStyleForOutline)},null,4),w(`div`,{class:`futurelayer-header-footer-controls`,style:A(e.cssStyleForControls),onClick:t[0]||=(...t)=>e.startEditing&&e.startEditing(...t)},[e.loading?(z(),E(`div`,ev,`loading`)):(z(),E(`button`,$_,` Edit Website `+D(e.isHeader?`Header`:`Footer`),1))],4)],12,Q_)}var nv=q(Z_,[[`render`,tv]]),rv=class extends W{constructor(...e){super(...e),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=j_(this.element),this.cleanupListeners=N_(this.element,e=>{this.elementPositionOnCanvas=e})}beforeUnmount(){this.cleanupListeners()}get cssStyleForWrapper(){return P_(this.elementPositionOnCanvas)}get cssStyleForOutline(){return F_(this.elementPositionOnCanvas)}get cssStyleForControls(){return this.elementPositionOnCanvas?{left:`calc(${this.elementPositionOnCanvas.width} + 2px)`,transform:`translateX(-100%)`}:{display:`none`}}handleRemove(){B.deleteElement({nodeId:this.element.id})}handleAddAnother(){Fi(this.element)}handleMoveLeft(){Gi(this.element)}handleMoveRight(){Ci(this.element)}get parent(){return na(B.document.tree,this.element._parentId)}get isRepeatableChildButNotOnlyChild(){let e=this.parent;return!(!e||!this.isRepeatableParent(e)||e.children.length===1)}get isFirstChild(){let e=this.parent;return!e||!this.isRepeatableParent(e)?!1:e.children[0]?.id===this.element.id}get isLastChild(){let e=this.parent;return!e||!this.isRepeatableParent(e)?!1:e.children[e.children.length-1]?.id===this.element.id}isRepeatableParent(e){return Mee(e)}};K([Z()],rv.prototype,`element`,void 0),rv=K([J({components:{Icon:X}})],rv);var iv=Y(rv),av=[`data-futurelayer-element-id`];function ov(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,{class:`futurelayer-repeatable-item-wrapper`,style:A(e.cssStyleForWrapper),"data-futurelayer-element-id":e.element.id},[w(`div`,{class:`futurelayer-repeatable-item-outline`,style:A(e.cssStyleForOutline)},null,4),w(`div`,{class:`futurelayer-repeatable-item-controls`,style:A(e.cssStyleForControls)},[e.isFirstChild?k(``,!0):(z(),E(`button`,{key:0,class:`futurelayer-repeatable-control-button move-left`,onClick:t[0]||=(...t)=>e.handleMoveLeft&&e.handleMoveLeft(...t),title:`Move previous`},[C(o,{icon:`ChevronLeftIcon`,size:10})])),e.isLastChild?k(``,!0):(z(),E(`button`,{key:1,class:`futurelayer-repeatable-control-button move-right`,onClick:t[1]||=(...t)=>e.handleMoveRight&&e.handleMoveRight(...t),title:`Move next`},[C(o,{icon:`ChevronRightIcon`,size:10})])),e.isRepeatableChildButNotOnlyChild?(z(),E(`button`,{key:2,class:`futurelayer-repeatable-control-button remove`,onClick:t[2]||=(...t)=>e.handleRemove&&e.handleRemove(...t)},` Remove `)):k(``,!0),w(`button`,{class:`futurelayer-repeatable-control-button add`,onClick:t[3]||=(...t)=>e.handleAddAnother&&e.handleAddAnother(...t)},` Add Another `)],4)],12,av)}var sv=q(iv,[[`render`,ov]]),cv=class extends W{constructor(...e){super(...e),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=j_(this.element),this.cleanupListeners=N_(this.element,e=>{this.elementPositionOnCanvas=e})}beforeUnmount(){this.cleanupListeners()}get cssStyleForWrapper(){return P_(this.elementPositionOnCanvas)}get cssStyleForOutline(){return F_(this.elementPositionOnCanvas)}get cssStyleForControls(){return this.elementPositionOnCanvas?{left:`0`,top:`0px`,transform:`translateY(-100%)`}:{display:`none`}}handleEditLink(){let e=Xg(this.element.data.type);e&&(V.setLinkEditorPanelState({elementId:this.element.id,linkPropertyPaths:e}),V.setSingularityLeftPanel(`link_editor`))}};K([Z()],cv.prototype,`element`,void 0),cv=K([J],cv);var lv=Y(cv),uv=[`data-futurelayer-element-id`];function dv(e,t,n,r,i,a){return z(),E(`div`,{class:`futurelayer-link-wrapper-wrapper`,style:A(e.cssStyleForWrapper),"data-futurelayer-element-id":e.element.id},[w(`div`,{class:`futurelayer-link-wrapper-outline`,style:A(e.cssStyleForOutline)},null,4),w(`div`,{class:`futurelayer-link-wrapper-controls`,style:A(e.cssStyleForControls)},[w(`button`,{class:`futurelayer-link-control-button edit`,onClick:t[0]||=(...t)=>e.handleEditLink&&e.handleEditLink(...t)},` Edit Link `)],4)],12,uv)}var fv=q(lv,[[`render`,dv]]),pv=class extends W{constructor(...e){super(...e),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=j_(this.element),this.cleanupListeners=N_(this.element,e=>{this.elementPositionOnCanvas=e})}beforeDestroy(){this.cleanupListeners()}get cssStyleForWrapper(){return P_(this.elementPositionOnCanvas)}get cssStyleForOutline(){return F_(this.elementPositionOnCanvas)}get cssStyleForControls(){return this.elementPositionOnCanvas?{left:`calc(${this.elementPositionOnCanvas.width} + 2px)`,transform:`translateX(-100%)`}:{display:`none`}}handleFlip(){let e=this.findParentMostSection();e&&le(e,`document_store`)}findParentMostSection(){let e=this.element;for(;e;){if(e.data.type===`EssentialElements\\Section`)return e;if(!e._parentId)break;e=na(B.document.tree,e._parentId)}return null}};K([Z()],pv.prototype,`element`,void 0),pv=K([J({components:{}})],pv);var mv=Y(pv),hv=[`data-futurelayer-element-id`];function gv(e,t,n,r,i,a){return z(),E(`div`,{class:`futurelayer-flippable-element-wrapper`,style:A(e.cssStyleForWrapper),"data-futurelayer-element-id":e.element.id},[w(`div`,{class:`futurelayer-flippable-element-outline`,style:A(e.cssStyleForOutline)},null,4),w(`div`,{class:`futurelayer-flippable-element-controls`,style:A(e.cssStyleForControls)},[w(`button`,{class:`futurelayer-flippable-control-button flip`,onClick:t[0]||=(...t)=>e.handleFlip&&e.handleFlip(...t),title:`Flip section layout`},` Flip `)],4)],12,hv)}var _v=q(mv,[[`render`,gv]]),vv=class extends W{constructor(...e){super(...e),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=A_(this.htmlElement),this.cleanupListeners=M_(this.htmlElement,e=>{this.elementPositionOnCanvas=e})}beforeUnmount(){this.cleanupListeners()}get cssStyleForWrapper(){return P_(this.elementPositionOnCanvas)}get cssStyleForOutline(){return F_(this.elementPositionOnCanvas)}};K([Z()],vv.prototype,`htmlElement`,void 0),vv=K([J({})],vv);var yv=Y(vv);function bv(e,t,n,r,i,a){return z(),E(`div`,{class:`futurelayer-gallery-image-wrapper`,style:A(e.cssStyleForWrapper)},[w(`div`,{class:`futurelayer-gallery-image-outline`,style:A(e.cssStyleForOutline)},null,4)],4)}var xv=q(yv,[[`render`,bv]]);function Sv(e){B.unthrottledPropertyChanged({elementId:e,path:`settings.futurelayer.removed`,value:!0,meta:{snapshotLabel:`Disable Optional Element`}})}function Cv(e){B.unthrottledPropertyChanged({elementId:e,path:`settings.futurelayer.removed`,value:!1,meta:{snapshotLabel:`Enable Optional Element`}})}function wv(e){B.deleteElement({nodeId:e})}var Tv=class extends W{constructor(...e){super(...e),this.elementPositionOnCanvas=!1,this.cleanupListeners=()=>{}}mounted(){this.elementPositionOnCanvas=j_(this.element),this.cleanupListeners=N_(this.element,e=>{this.elementPositionOnCanvas=e})}beforeUnmount(){this.cleanupListeners()}get cssStyleForWrapper(){return P_(this.elementPositionOnCanvas)}get cssStyleForControls(){return this.elementPositionOnCanvas?{left:`calc(${this.elementPositionOnCanvas.width} + 4px)`,top:`calc(${this.elementPositionOnCanvas.height} / 2)`,transform:`translateY(-50%)`}:{display:`none`}}get isRemoved(){return this.element.data.properties?.settings?.futurelayer?.removed===!0}toggleRemoved(){this.isRemoved?Cv(this.element.id):Sv(this.element.id)}handleRemovePermanently(){wv(this.element.id)}};K([Z()],Tv.prototype,`element`,void 0),Tv=K([J({components:{Icon:X}})],Tv);var Ev=Y(Tv),Dv=[`data-futurelayer-element-id`],Ov=[`title`];function kv(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,{class:`futurelayer-removable-element-wrapper`,style:A(e.cssStyleForWrapper),"data-futurelayer-element-id":e.element.id},[w(`div`,{class:`futurelayer-removable-element-controls`,style:A(e.cssStyleForControls)},[w(`button`,{class:`futurelayer-removable-control-button`,onClick:t[0]||=(...t)=>e.toggleRemoved&&e.toggleRemoved(...t),title:e.isRemoved?`Show element`:`Hide element`},[C(o,{icon:e.isRemoved?`EyeIcon`:`EyeSlashIcon`,size:10},null,8,[`icon`])],8,Ov),e.isRemoved?(z(),E(`button`,{key:0,class:`futurelayer-removable-control-button delete`,onClick:t[1]||=(...t)=>e.handleRemovePermanently&&e.handleRemovePermanently(...t),title:`Remove permanently`},[C(o,{icon:`TrashIcon`,size:10})])):k(``,!0)],4)],12,Dv)}var Av=q(Ev,[[`render`,kv]]),jv=class{constructor(e){this.hoveredElementData={nearestNodeThatCanBeActivated:null,nearestRepeatableItem:null,nearestWrapperLink:null,nearestFlippableElement:null,hoveredGalleryImage:null},this.callback=e,this.startListening()}destroy(){this.stopListening()}updateHoveredElementData(e){(e.nearestNodeThatCanBeActivated!==this.hoveredElementData.nearestNodeThatCanBeActivated||e.nearestRepeatableItem!==this.hoveredElementData.nearestRepeatableItem||e.nearestWrapperLink!==this.hoveredElementData.nearestWrapperLink||e.nearestFlippableElement!==this.hoveredElementData.nearestFlippableElement||e.hoveredGalleryImage!==this.hoveredElementData.hoveredGalleryImage)&&(this.hoveredElementData=e,this.callback(e))}startListening(){let e=window.Breakdance.canvas.document,t=e=>{let t=e.target,n=See(t),r=Wt(t,n);this.updateHoveredElementData({nearestNodeThatCanBeActivated:n?Ll(n):null,nearestRepeatableItem:n?Gs(n):null,nearestWrapperLink:n?$t(n):null,nearestFlippableElement:n?hee(n):null,hoveredGalleryImage:r})},n=()=>{this.updateHoveredElementData({nearestNodeThatCanBeActivated:null,nearestRepeatableItem:null,nearestWrapperLink:null,nearestFlippableElement:null,hoveredGalleryImage:null})};e.addEventListener(`mousemove`,t),e.addEventListener(`mouseleave`,n),this.cleanup=()=>{e.removeEventListener(`mousemove`,t),e.removeEventListener(`mouseleave`,n)}}stopListening(){this.cleanup(),this.hoveredElementData={nearestNodeThatCanBeActivated:null,nearestRepeatableItem:null,nearestWrapperLink:null,nearestFlippableElement:null,hoveredGalleryImage:null}}},Mv,Nv=class extends W{constructor(...e){super(...e),this.currentHoveredData={nearestNodeThatCanBeActivated:null,nearestRepeatableItem:null,nearestWrapperLink:null,nearestFlippableElement:null,hoveredGalleryImage:null}}mounted(){Mv=new jv(e=>{this.currentHoveredData=e})}beforeUnmount(){Mv.destroy()}get activeElement(){return F.activeElement}get isHoveredElementHeaderOrFooter(){let e=this.currentHoveredData.nearestNodeThatCanBeActivated;return!e||F.inlineEditingContext?.elementId?!1:e.data.type===`FutureLayerElements\\Header`||e.data.type===`FutureLayerElements\\Footer`}get activeElementSupportsRemoval(){return this.activeElement?this.activeElement.data.properties?.settings?.futurelayer?.allow_removal===!0:!1}};Nv=K([J({components:{FutureLayerActiveElementOutline:W_,FutureLayerHoveredElementOutline:Y_,FutureLayerHoveredHeaderOrFooter:nv,FutureLayerRepeatableItemOutlineAndControls:sv,FutureLayerLinkWrapperOutlineAndControls:fv,FutureLayerFlippableElementOutlineAndControls:_v,FutureLayerGalleryImageOutline:xv,FutureLayerRemovableElementControls:Av}})],Nv);var Pv=Y(Nv);function Fv(e,t,n,r,i,a){let o=M(`FutureLayerRepeatableItemOutlineAndControls`),s=M(`FutureLayerLinkWrapperOutlineAndControls`),c=M(`FutureLayerFlippableElementOutlineAndControls`),l=M(`FutureLayerGalleryImageOutline`),u=M(`FutureLayerHoveredHeaderOrFooter`),d=M(`FutureLayerHoveredElementOutline`),f=M(`FutureLayerActiveElementOutline`),p=M(`FutureLayerRemovableElementControls`);return z(),E(`div`,null,[e.currentHoveredData.nearestRepeatableItem?(z(),U(o,{element:e.currentHoveredData.nearestRepeatableItem,key:`repeatable-item-${e.currentHoveredData.nearestRepeatableItem.id}`},null,8,[`element`])):k(``,!0),e.currentHoveredData.nearestWrapperLink?(z(),U(s,{element:e.currentHoveredData.nearestWrapperLink,key:`wrapper-link-${e.currentHoveredData.nearestWrapperLink.id}`},null,8,[`element`])):k(``,!0),e.currentHoveredData.nearestFlippableElement?(z(),U(c,{element:e.currentHoveredData.nearestFlippableElement,key:`flippable-element-${e.currentHoveredData.nearestFlippableElement.id}`},null,8,[`element`])):k(``,!0),e.currentHoveredData.hoveredGalleryImage?(z(),U(l,{htmlElement:e.currentHoveredData.hoveredGalleryImage.htmlElement,key:`gallery-image-${e.currentHoveredData.hoveredGalleryImage.galleryElement.id}-${e.currentHoveredData.hoveredGalleryImage.imageIndex}`},null,8,[`htmlElement`])):k(``,!0),e.isHoveredElementHeaderOrFooter&&e.currentHoveredData.nearestNodeThatCanBeActivated?(z(),U(u,{element:e.currentHoveredData.nearestNodeThatCanBeActivated,key:`hovered-header-footer-${e.currentHoveredData.nearestNodeThatCanBeActivated.id}`},null,8,[`element`])):e.currentHoveredData.nearestNodeThatCanBeActivated?(z(),U(d,{element:e.currentHoveredData.nearestNodeThatCanBeActivated,key:`hovered-${e.currentHoveredData.nearestNodeThatCanBeActivated.id}`},null,8,[`element`])):k(``,!0),e.activeElement?(z(),U(f,{element:e.activeElement,key:`active-${e.activeElement.id}`},null,8,[`element`])):k(``,!0),e.activeElementSupportsRemoval?(z(),U(p,{element:e.activeElement,key:`removable-${e.activeElement.id}`},null,8,[`element`])):k(``,!0)])}var Iv=q(Pv,[[`render`,Fv]]),Lv=class extends W{constructor(...e){super(...e),this.hideTitleBar=!1,this.hideHoverControls=!1}get isSingularityMode(){return F.isSingularityMode}get isSingularityPreviewMode(){return V.previewMode}get isOnboardingMode(){return window.Breakdance.isOnboarding}get element(){return F.activeElement||!1}get activeElementsIds(){return F.activeElementIds}get activeElement(){return F.activeElement}get hoveredElement(){return F.lastHoveredOnCanvasElementId?na(B.document.tree,F.lastHoveredOnCanvasElementId):!1}get classes(){let e=null;return this.hideTitleBar&&this.hideHoverControls?e=`all`:this.hideHoverControls?e=`hover`:this.hideTitleBar&&(e=`titlebar`),{"node-chrome":!0,[`node-chrome--hide-${e}`]:e,"node-chrome--singularity":this.isSingularityMode}}onElementSelected(){this.observer?.disconnect(),this.element&&(this.observer=this.observePositionChange(this.element,e=>{this.hideTitleBar=Oc(e)}))}onHoveredElementSelected(){this.hoverObserver?.disconnect(),this.hoveredElement&&(this.hoverObserver=this.observePositionChange(this.hoveredElement,e=>{this.hideHoverControls=Oc(e)}))}beforeUnmount(){this.destroyObserver()}observePositionChange(e,t){if(!e)return;let n=ci(e);if(!n)return;let r=new MutationObserver(e=>{e.forEach(e=>{let n=e.target;t(n)})});return r.observe(n,{attributes:!0,attributeFilter:[`class`]}),r}destroyObserver(){this.observer?.disconnect(),this.hoverObserver?.disconnect()}};K([G(`element`)],Lv.prototype,`onElementSelected`,null),K([G(`hoveredElement`)],Lv.prototype,`onHoveredElementSelected`,null),Lv=K([J({components:{NodeContentEditable:Mh,DragDots:Am,SpacingBars:Bm,ColumnDragSizer:$m,NodeTitlebar:wh,NodeOutline:Oh,NodeGhostTitlebar:gg,NodeOnboardingHoverControls:ig,NodeSingularityHover:g_,NodeSingularityActive:Cg,NodeSingularityContentEditable:b_,NodeSingularityTitlebar:k_,FutureLayerNodeChrome:Iv}})],Lv);var Rv=Y(Lv);function zv(e,t,n,r,i,a){let o=M(`NodeOnboardingHoverControls`),s=M(`FutureLayerNodeChrome`),c=M(`SpacingBars`),l=M(`ColumnDragSizer`),u=M(`NodeTitlebar`),d=M(`NodeOutline`),f=M(`NodeGhostTitlebar`),p=M(`NodeContentEditable`),m=br(`permission`);return z(),E(`div`,{class:R(e.classes)},[e.isOnboardingMode?(z(),U(o,{key:0})):e.isSingularityMode?(z(),U(s,{key:1})):(z(),E(H,{key:2},[hc((z(),E(`div`,null,[C(c),C(l)])),[[m,`full`]]),C(u),C(d,{"hover-mode":!0}),e.activeElementsIds.length>1?(z(!0),E(H,{key:0},j(e.activeElementsIds.slice(1),e=>(z(),U(d,{key:e,"element-id":e},null,8,[`element-id`]))),128)):k(``,!0),C(f),C(p)],64))],2)}var Bv=q(Rv,[[`render`,zv]]),Vv=class extends W{get canvasDragPlaceholderPosition(){return F.canvasDragPlaceholderPosition}get parentNode(){return this.canvasDragPlaceholderPosition&&na(B.document.tree,this.canvasDragPlaceholderPosition.parentId)||!1}get stackingStyle(){return!this.canvasDragPlaceholderPosition||!this.parentNode?{}:ih(this.parentNode)}get dragPlaceholderPositionStyle(){if(!this.canvasDragPlaceholderPosition||this.canvasDragPlaceholderPosition.onlyShowTargetOutline===!0)return{};let e=na(B.document.tree,this.canvasDragPlaceholderPosition.parentId);if(!e)return{};if(e.children.length===0){let t=e.id===1?Zt():Ui(e);if(!t)return{};let{x:n,y:r,width:i,height:a}=t;return i-40>100&&(n+=20,i-=40),{display:`block`,top:`${r+a/2-8/2}px`,left:`${n}px`,width:`${i}px`,height:`8px`}}else{let t=e.children[this.canvasDragPlaceholderPosition.nodeIndex],n=Ui(t),r=ih(e);if(!n)return{};let{x:i,y:a,width:o,height:s}=n;if(r===`vertical`){if(this.canvasDragPlaceholderPosition.position===`before`)return{display:`block`,top:`${a-(8/2-1)}px`,left:`${i}px`,width:`${o}px`,height:`8px`};if(this.canvasDragPlaceholderPosition.position===`after`)return{display:`block`,top:`${s+a-5}px`,left:`${i}px`,width:`${o}px`,height:`8px`}}else if(r===`horizontal`){if(this.canvasDragPlaceholderPosition.position===`before`)return{display:`block`,top:`${a}px`,left:`${i-8/2}px`,height:`${s}px`,width:`8px`};if(this.canvasDragPlaceholderPosition.position===`after`)return{display:`block`,left:`${o+i-8/2}px`,top:`${a}px`,height:`${s}px`,width:`8px`}}}return{}}get dragTargetOutlineStyle(){if(!this.parentNode)return{};let e=this.parentNode.id===1&&B.document.tree.root.children.length===0?Zt():Ui(this.parentNode);if(!e)return{};let{x:t,y:n,width:r,height:i}=e;return{display:`block`,position:`absolute`,top:`${n}px`,left:`${t}px`,width:`${r}px`,height:`${i}px`}}};Vv=K([J({components:{}})],Vv);var Hv=Y(Vv),Uv={class:`breakdance-drag-placeholder-wrapper`};function Wv(e,t,n,r,i,a){return z(),E(`div`,Uv,[w(`div`,{class:`breakdance-drag-placeholder`,style:A(e.dragPlaceholderPositionStyle)},null,4),w(`div`,{class:`breakdance-drag-target-outline`,style:A(e.dragTargetOutlineStyle)},null,4)])}var Gv=q(Hv,[[`render`,Wv]]),Kv=class extends W{get isMac(){let e=Qd().toLowerCase();return/mac/.test(e)}};K([Z({default:!1})],Kv.prototype,`disabled`,void 0),K([Z({default:``})],Kv.prototype,`shortcut`,void 0),K([Z({default:()=>[]})],Kv.prototype,`subItems`,void 0),Kv=K([J({emits:[`click`],components:{}})],Kv);var qv=Y(Kv),Jv={key:0,class:`breakdance-canvas-right-click-menu-item-shortcut`};function Yv(e,t,n,r,i,a){return z(),E(`div`,{class:R({"breakdance-canvas-right-click-menu-item":!0,"breakdance-canvas-right-click-menu-item-disabled":e.disabled}),onClick:t[0]||=t=>e.disabled?()=>{}:e.$emit(`click`,t)},[Di(e.$slots,`default`),e.shortcut?(z(),E(`div`,Jv,D(e.isMac?e.shortcut[0]:e.shortcut[1]),1)):k(``,!0)],2)}var Xv=q(qv,[[`render`,Yv]]),Zv=class extends W{constructor(...e){super(...e),this.globalBlockName=``}async saveAsGlobalBlock(e){e.preventDefault(),this.globalBlockName&&(this.elementId&&await Xte(this.elementId,this.globalBlockName),this.globalBlockName=``,this.$emit(`close`))}};K([Z({default:!1})],Zv.prototype,`open`,void 0),K([Z({required:!0})],Zv.prototype,`elementId`,void 0),Zv=K([J({emits:[`close`],components:{Dialog:of,TextInput:tf}})],Zv);var Qv=Y(Zv);function $v(e,t,n,r,i,a){let o=M(`TextInput`),s=M(`Dialog`);return z(),U(s,{"model-value":e.open,onClose:t[2]||=t=>e.$emit(`close`),"onClick:outside":t[3]||=t=>e.$emit(`close`),onKeydown:t[4]||=so(t=>e.$emit(`close`),[`esc`])},{title:L(()=>[P(D(e.sprintf(e._doc(`Save as %s`,`%s: Global block label`),e.$bdox(`global_block`))),1)]),text:L(()=>[C(o,{size:`md`,placeholder:e.$bdox(`global_block`),modelValue:e.globalBlockName,"onUpdate:modelValue":t[0]||=t=>e.globalBlockName=t,onKeypress:so(e.saveAsGlobalBlock,[`enter`]),autofocus:e.open},null,8,[`placeholder`,`modelValue`,`onKeypress`,`autofocus`])]),actions:L(()=>[C(Q,{variant:`text`,onClick:t[1]||=t=>e.$emit(`close`)},{default:L(()=>[P(D(e.__(`Cancel`)),1)]),_:1}),C(Q,{color:`blue`,disabled:!e.globalBlockName,onClick:e.saveAsGlobalBlock},{default:L(()=>[P(D(e.__(`Save`)),1)]),_:1},8,[`disabled`,`onClick`])]),_:1},8,[`model-value`])}var ey=q(Qv,[[`render`,$v]]),ty=class extends W{constructor(...e){super(...e),this.status=null}async onChange(){this.status=await Xd(),this.status?.permission&&(this.status.permission.onchange=()=>{this.$emit(`update:model-value`,!1)})}get permissionGranted(){return this.status?.permission?.state===`granted`}get metaKey(){return this.isAppleDevice?`⌘`:`Ctrl + `}get isAppleDevice(){return/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)}close(){this.$emit(`update:model-value`,!1)}};K([Z()],ty.prototype,`modelValue`,void 0),K([G(`modelValue`,{immediate:!0})],ty.prototype,`onChange`,null),ty=K([J({emits:[`update:model-value`],components:{Dialog:of}})],ty);var ny=Y(ty),ry={key:0},iy={key:1},ay={class:`clipboard-dialog-shortcuts`},oy={class:`clipboard-dialog-shortcut`},sy={class:`clipboard-dialog-shortcut__key`},cy={class:`clipboard-dialog-shortcut__label`},ly={class:`clipboard-dialog-shortcut`},uy={class:`clipboard-dialog-shortcut__key`},dy={class:`clipboard-dialog-shortcut__label`},fy={class:`clipboard-dialog-shortcut`},py={class:`clipboard-dialog-shortcut__key`},my={class:`clipboard-dialog-shortcut__label`};function hy(e,t,n,r,i,a){let o=M(`Dialog`);return z(),U(o,{"model-value":e.modelValue,"onUpdate:modelValue":t[0]||=t=>e.$emit(`update:model-value`,t),width:500,closeable:!0},{title:L(()=>[P(D(e.__(`Enable Paste`)),1)]),text:L(()=>[e.status&&!e.status.secure?(z(),E(`p`,ry,D(e.__(`To paste using the Edit menu, your website needs to be served with HTTPS.`)),1)):e.status&&!e.permissionGranted?(z(),E(`p`,iy,D(e.__(`To paste using the Edit menu, please allow access to your clipboard.`)),1)):k(``,!0),w(`p`,null,D(e.__(`Alternatively, you can use your keyboard shortcuts:`)),1),w(`ul`,ay,[w(`li`,oy,[w(`span`,sy,D(e.metaKey)+` C`,1),w(`span`,cy,D(e.__(`copy`)),1)]),w(`li`,ly,[w(`span`,uy,D(e.metaKey)+` X`,1),w(`span`,dy,D(e.__(`cut`)),1)]),w(`li`,fy,[w(`span`,py,D(e.metaKey)+` V`,1),w(`span`,my,D(e.__(`paste`)),1)])])]),_:1},8,[`model-value`])}var gy=q(ny,[[`render`,hy]]);function _y(e=6){let t=``;for(let n=e;n>0;--n)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}var vy=class extends W{constructor(...e){super(...e),this.presetName=null}get isPresetsOverridesEnabled(){return I.isExperimentEnabled(`design-presets-overrides`)}get element(){return this.elementIds?.length?na(B.document.tree,this.elementIds[0]):null}onOpenChange(){this.open&&(this.presetName=this.getDefaultName(),this.$nextTick(()=>this.focusAndSelectInput()))}getDefaultName(){if(!this.element)return``;if(this.defaultName)return this.defaultName;let e=this.element.data.type;return`${I.element(e).name} ${_y()}`}focusAndSelectInput(){let e=this.$refs.input.$el.querySelector(`input`);e?.focus(),e?.select()}async save(e){if(e.preventDefault(),!this.presetName||!this.elementIds?.length||!this.element)return;let t=this.element.data.type,n=vr(this.presetName,t,this.element.data.properties.design);jn(n),To(n.id,this.elementIds),this.presetName=``,this.$emit(`close`)}};K([Z({required:!0})],vy.prototype,`elementIds`,void 0),K([Z({default:!1})],vy.prototype,`open`,void 0),K([Z({default:``})],vy.prototype,`defaultName`,void 0),K([G(`open`)],vy.prototype,`onOpenChange`,null),vy=K([J({emits:[`close`],components:{Dialog:of,TextInput:tf}})],vy);var yy=Y(vy);function by(e,t,n,r,i,a){let o=M(`TextInput`),s=M(`Dialog`);return z(),U(s,{"model-value":e.open,onClose:t[2]||=t=>e.$emit(`close`),"onClick:outside":t[3]||=t=>e.$emit(`close`),onKeydown:t[4]||=so(t=>e.$emit(`close`),[`esc`])},{title:L(()=>[P(D(e.__(`Create Design Preset`)),1)]),text:L(()=>[C(o,{size:`md`,placeholder:e.__(`Preset Name`),modelValue:e.presetName,"onUpdate:modelValue":t[0]||=t=>e.presetName=t,onKeypress:so(e.save,[`enter`]),autofocus:e.open,ref:`input`},null,8,[`placeholder`,`modelValue`,`onKeypress`,`autofocus`])]),actions:L(()=>[C(Q,{variant:`text`,onClick:t[1]||=t=>e.$emit(`close`)},{default:L(()=>[P(D(e.__(`Cancel`)),1)]),_:1}),C(Q,{color:`blue`,disabled:!e.presetName,onClick:e.save},{default:L(()=>[P(D(e.__(`Save`)),1)]),_:1},8,[`disabled`,`onClick`])]),_:1},8,[`model-value`])}var xy=q(yy,[[`render`,by]]),Sy=class extends W{constructor(...e){super(...e),this.isInverted=!1}get builderMode(){return I.builderMode}get wrapItems(){return this.builderMode===`oxygen`?[{label:S(`Container`),elementSlug:`OxygenElements\\Container`},{label:S(`Link`),elementSlug:`OxygenElements\\ContainerLink`}]:[{label:S(`Div`),elementSlug:`EssentialElements\\Div`},{label:S(`Link`),elementSlug:`EssentialElements\\WrapperLink`}]}get activeElement(){return F.activeElement}get elementIds(){return F.activeElementIds}get canWrap(){if(!this.activeElement||!this.elementIds.length)return!1;let e=I.element(this.activeElement.data.type).nestingRule.type;return![`section`,`root`,`popup`].includes(e)}wrapIn({elementSlug:e}){this.activeElement&&(B.wrapElements({wrapperElementSlug:e,elementIds:this.elementIds}),this.$emit(`close`))}getViewportWidth(){return this.context===`canvas`?window.Breakdance.canvas.document?.defaultView?.innerWidth:window.innerWidth}checkOverflow(){this.isInverted=!1,this.$nextTick(()=>{let e=this.$refs.submenu;if(!e)return;let t=e.getBoundingClientRect(),n=this.getViewportWidth();n&&(this.isInverted=t.right-n>t.width*.1)})}};K([Z({default:`canvas`})],Sy.prototype,`context`,void 0),Sy=K([J({emits:[`close`],components:{Icon:X,RightClickMenuItem:Xv}})],Sy);var Cy=Y(Sy),wy={class:`breakdance-canvas-right-click-submenu`,ref:`submenu`},Ty={class:`breakdance-canvas-right-click-submenu__content breakdance-canvas-right-click-menu`};function Ey(e,t,n,r,i,a){let o=M(`Icon`),s=M(`RightClickMenuItem`);return z(),E(`div`,{class:R([`breakdance-canvas-right-click-dropdown`,{"breakdance-canvas-right-click-dropdown--disabled":!e.canWrap,"breakdance-canvas-right-click-dropdown--inverted":e.isInverted}]),onMouseenter:t[0]||=(...t)=>e.checkOverflow&&e.checkOverflow(...t)},[C(s,{disabled:!e.canWrap},{default:L(()=>[P(D(e.__(`Wrap In`))+` `,1),C(o,{class:`breakdance-canvas-right-click-submenu__arrow`,icon:`ChevronRightIcon`,size:10})]),_:1},8,[`disabled`]),w(`div`,wy,[w(`div`,Ty,[(z(!0),E(H,null,j(e.wrapItems,t=>(z(),U(s,{key:t.label,onClick:n=>e.wrapIn(t)},{default:L(()=>[P(D(t.label),1)]),_:2},1032,[`onClick`]))),128))])],512)],34)}var Dy=q(Cy,[[`render`,Ey]]),Oy=class extends W{constructor(...e){super(...e),this.clipboardDialog=!1,this.canPasteElement=!1,this.canPasteElementProperties=!1,this.elementIdToSaveAsGlobalBlock=null,this.saveGlobalBlockDialog=!1,this.elementIdToSaveAsPreset=null,this.savePresetDialog=!1}async mounted(){window.Breakdance.canvas.document.addEventListener(`contextmenu`,this.handleRightClickInCanvas),window.Breakdance.canvas.document.addEventListener(`click`,this.closeRightClickMenuIfClickHappensOutsideRightClickMenu,{capture:!0}),window.addEventListener(`click`,this.closeRightClickMenuIfClickHappensOutsideRightClickMenu,{capture:!0})}beforeUnmount(){window.Breakdance.canvas.document.removeEventListener(`contextmenu`,this.handleRightClickInCanvas),window.Breakdance.canvas.document.removeEventListener(`click`,this.closeRightClickMenuIfClickHappensOutsideRightClickMenu,{capture:!0}),window.removeEventListener(`click`,this.closeRightClickMenuIfClickHappensOutsideRightClickMenu,{capture:!0})}get menuState(){return this.context===`structure-panel`?F.onStructurePanelRightClickMenuState===`closed`?null:F.onStructurePanelRightClickMenuState:F.onCanvasRightClickMenuState===`closed`?null:F.onCanvasRightClickMenuState}get shouldShow(){return(this.context===`structure-panel`?F.onStructurePanelRightClickMenuState!==`closed`:F.onCanvasRightClickMenuState!==`closed`)&&!this.saveGlobalBlockDialog}get builderMode(){return I.builderMode}handleRightClickInCanvas(e){if(e.preventDefault(),Dt())return;let t=nh(e.clientX,e.clientY),n=[];F.activeElementIds.length?n=F.activeElementIds:t&&(n=[t]);let r=dh(e.clientX,e.clientY);r&&F.setOnCanvasRightClickMenuState({elementIds:n,position:r})}closeRightClickMenuIfClickHappensOutsideRightClickMenu(e){this.saveGlobalBlockDialog||e.target.closest(`.breakdance-canvas-right-click-menu`)||this.close()}get wrapperPositionStyle(){return this.menuState?{left:`${this.menuState.position.x}px`,top:`${this.menuState.position.y}px`}:{}}get elementIds(){return this.menuState?.elementIds??[]}get elementIdsPresent(){return this.elementIds.length}get firstElementId(){return this.elementIds[0]}get targetPasteElementId(){return this.firstElementId||B.document.tree.root.id}async onStateChange(){let{permission:e}=await Xd();if(this.permission=e?.state,this.permission===`prompt`){this.canPasteElement=!0,this.canPasteElementProperties=!0;return}this.canPasteElement=await Ore(this.targetPasteElementId),this.canPasteElementProperties=this.firstElementId?await Ere(this.firstElementId):!1}copyElement(){this.elementIds&&Nd(this.elementIds),this.close()}pasteElement(){this.permission===`prompt`&&(this.clipboardDialog=!0),Nre(this.targetPasteElementId),this.close()}pasteElementProperties(e){this.permission===`prompt`&&(this.clipboardDialog=!0),this.firstElementId&&_re(this.firstElementId,e),this.close()}deleteElement(){this.elementIds.length&&(B.deleteElements(this.elementIds),this.close())}openSaveGlobalBlockDialog(){this.elementIds.length&&(this.elementIdToSaveAsGlobalBlock=this.elementIds[0],this.saveGlobalBlockDialog=!0)}closeGlobalBlockDialog(){this.saveGlobalBlockDialog=!1,this.elementIdToSaveAsGlobalBlock=null,this.close()}get canSaveAsGlobalBlock(){return this.elementIds.length===1&&this.elementIds.every(Zo)}openSavePresetDialog(){this.firstElementId&&(this.elementIdToSaveAsPreset=this.firstElementId,this.savePresetDialog=!0)}closePresetDialog(){this.savePresetDialog=!1,this.elementIdToSaveAsPreset=null,this.close()}get canSaveAsPreset(){return!ft(this.firstElementId)&&F.activeElementIds.length===1}close(){F.setOnCanvasRightClickMenuState(`closed`),F.setOnStructurePanelRightClickMenuState(`closed`)}};K([Z({default:`canvas`})],Oy.prototype,`context`,void 0),K([G(`menuState`)],Oy.prototype,`onStateChange`,null),Oy=K([J({components:{Icon:X,PresetDialog:xy,ClipboardDialog:gy,GlobalBlockDialog:ey,RightClickMenuItem:Xv,RightClickWrapMenu:Dy}})],Oy);var ky=Y(Oy);function Ay(e,t,n,r,i,a){let o=M(`RightClickMenuItem`),s=M(`RightClickWrapMenu`),c=M(`GlobalBlockDialog`),l=M(`PresetDialog`),u=M(`ClipboardDialog`);return z(),E(`div`,null,[hc(w(`div`,{style:A(e.wrapperPositionStyle),class:R([`breakdance-canvas-right-click-menu`,{"breakdance-canvas-right-click-menu--structure-panel":e.context===`structure-panel`}])},[C(o,{onClick:e.copyElement,disabled:!e.elementIdsPresent,shortcut:[`⌘ C`,`Ctrl C`]},{default:L(()=>[P(D(e.__(`Copy`)),1)]),_:1},8,[`onClick`,`disabled`]),C(o,{onClick:e.pasteElement,disabled:!e.canPasteElement,shortcut:[`⌘ V`,`Ctrl V`]},{default:L(()=>[P(D(e.__(`Paste`)),1)]),_:1},8,[`onClick`,`disabled`]),e.builderMode===`breakdance`?(z(),U(o,{key:0,onClick:t[0]||=t=>e.pasteElementProperties(`design`),disabled:!e.canPasteElementProperties},{default:L(()=>[P(D(e.__(`Paste Design`)),1)]),_:1},8,[`disabled`])):k(``,!0),e.builderMode===`breakdance`?(z(),U(o,{key:1,onClick:t[1]||=t=>e.pasteElementProperties(`settings`),disabled:!e.canPasteElementProperties},{default:L(()=>[P(D(e.__(`Paste Settings`)),1)]),_:1},8,[`disabled`])):k(``,!0),C(s,{context:e.context,onClose:e.close},null,8,[`context`,`onClose`]),t[3]||=w(`div`,{class:`breakdance-canvas-right-click-menu-divider`},null,-1),C(o,{onClick:e.deleteElement,disabled:!e.elementIdsPresent,shortcut:[`⌫`,`Del`]},{default:L(()=>[e.elementIds.length>1?(z(),E(H,{key:0},[P(D(e.sprintf(e.__(`Delete selected (%s)`),e.elementIds.length)),1)],64)):(z(),E(H,{key:1},[P(D(e.__(`Delete`)),1)],64))]),_:1},8,[`onClick`,`disabled`]),t[4]||=w(`div`,{class:`breakdance-canvas-right-click-menu-divider`},null,-1),C(o,{onClick:e.openSaveGlobalBlockDialog,disabled:!e.canSaveAsGlobalBlock},{default:L(()=>[P(D(e.sprintf(e._doc(`Save as %s`,`%s: Global block label`),e.$bdox(`global_block`))),1)]),_:1},8,[`onClick`,`disabled`]),e.builderMode===`breakdance`?(z(),U(o,{key:2,onClick:e.openSavePresetDialog,disabled:!e.canSaveAsPreset},{default:L(()=>[P(D(e.__(`Create Design Preset`)),1)]),_:1},8,[`onClick`,`disabled`])):k(``,!0)],6),[[ts,e.shouldShow]]),C(c,{open:e.saveGlobalBlockDialog,"element-id":e.elementIdToSaveAsGlobalBlock,onClose:e.closeGlobalBlockDialog},null,8,[`open`,`element-id`,`onClose`]),C(l,{open:e.savePresetDialog,"element-ids":e.elementIdToSaveAsPreset?[e.elementIdToSaveAsPreset]:null,onClose:e.closePresetDialog},null,8,[`open`,`element-ids`,`onClose`]),C(u,{modelValue:e.clipboardDialog,"onUpdate:modelValue":t[2]||=t=>e.clipboardDialog=t},null,8,[`modelValue`])])}var jy=q(ky,[[`render`,Ay]]),My=class extends W{};My=K([J({components:{DragPlaceholder:Gv,RightClickMenu:jy}})],My);var Ny=Y(My);function Py(e,t,n,r,i,a){let o=M(`DragPlaceholder`),s=M(`RightClickMenu`),c=br(`permission`);return z(),E(`div`,null,[C(o),hc(C(s,null,null,512),[[c,`full`]])])}var Fy=q(Ny,[[`render`,Py]]),Iy=`https://breakdance-design-library-section-screenshots-ap-production.up.railway.app/screenshots`;function Ly(){let e=yr();return e?Object.entries(e.categories).flatMap(([t,n])=>n.sections.map((n,r)=>({label:`${t} ${r}`,index:r,node:n,type:t,screenshotUrl:Vy(e.meta.libraryId,t,String(n.id))}))):[]}function Ry(){let e=yr();return e?Object.entries(e.categories).map(([t,n])=>{let r=n.sections[0];return{label:`${t} 0`,index:0,node:r,type:t,screenshotUrl:Vy(e.meta.libraryId,t,String(r.id))}}).filter(Boolean):[]}function zy(){return B.document.tree.root.children.find(e=>e.data.type===`FutureLayerElements\\Header`)?1:0}function By(e,t){let n,r;if(t===-1)n=B.document.tree.root.id,r=zy();else{let e=ml(B.document.tree,t);if(e===!1)return null;n=e.id;let i=Ta(B.document.tree,t);r=i===!1?0:i+1}let i={nodeId:void 0};return Gt([e],`inserting`,i),i.nodeId&&B.moveElement({draggedElementId:i.nodeId,droppedOnElementId:n,index:r}),i.nodeId??null}function Vy(e,t,n){let r=t.toLowerCase().replace(/[^a-z0-9]/g,``);return`${Iy}/${e}/${r}/${`${r}-${n}.jpg`}`}function Hy(e,t,n,r){let i;if(n===`swap`){let e=na(B.document.tree,t);e&&(i=Le(e))}let a=yr();if(!a){console.error(`handleSectionChosen: Section library not loaded`);return}let o={type:e.type,sectionFriendlyName:`${e.type}`,description:``},s=By(De(e.node,{libraryId:a.meta.libraryId,category:o.type,sectionId:e.node.id},o.sectionFriendlyName,r),t);if(s){let e=s,t=na(B.document.tree,e),a=Ta(B.document.tree,e);if(!t)return;n===`add_before`&&B.moveElement({draggedElementId:s,droppedOnElementId:B.document.tree.root.id,index:a?Math.max(0,a-1):0}),lne(t)&&On(t,B.document.tree)&&le(t,`document_store`),r&&Ja.addJob(async t=>{await di(i??``,{sectionId:e,sectionLocation:`document_store`},t),ll(e,`critical`)},{jobType:`section_rewrite`,documentId:B.document.documentMeta.id,elementId:e,description:`Rewrite for new section in document "${B.document.documentMeta.titleLabel}" - section ${e}`,priority:`critical`,snapshotLabel:`Rewrite section with AI`})}n===`swap`&&B.deleteElement({nodeId:t}),Ku(()=>{F.activateElement(s)})}function Uy(e){let t=Yi(na(B.document.tree,e));if(!t)return null;let n=yr();if(!n)return console.error(`getSectionCardDataFromNode: Section library not loaded`),null;if(t.designLibrarySection.libraryId!==n.meta.libraryId)return console.warn(`Section was created with library ID ${t.designLibrarySection.libraryId} but current library is ${n.meta.libraryId}. Section preview unavailable.`),null;let r=t.designLibrarySection.category,i=t.designLibrarySection.sectionId;return Ly().find(e=>e.type===r&&String(e.node.id)===String(i))||null}var Wy=class extends W{};K([Z({required:!0})],Wy.prototype,`value`,void 0),K([Z({default:`default`})],Wy.prototype,`color`,void 0),Wy=K([J({})],Wy);var Gy=Y(Wy),Ky={class:`singularity-badge__text`};function qy(e,t,n,r,i,a){return z(),E(`div`,{class:R([`singularity-badge`,`singularity-badge--${e.color}`])},[w(`span`,Ky,D(e.value),1)],2)}var Jy=q(Gy,[[`render`,qy]]),Yy=class extends W{get imageStyles(){return{maxHeight:typeof this.maxHeight==`number`?`${this.maxHeight}px`:this.maxHeight}}};K([Z()],Yy.prototype,`value`,void 0),K([Z()],Yy.prototype,`currentSection`,void 0),K([Z()],Yy.prototype,`showLabel`,void 0),K([Z({default:!1})],Yy.prototype,`isGlobal`,void 0),K([Z({default:`default`})],Yy.prototype,`layout`,void 0),K([Z({default:`auto`})],Yy.prototype,`maxHeight`,void 0),Yy=K([J({components:{SingularityBadge:Jy}})],Yy);var Xy=Y(Yy),Zy={key:0,class:`section-card-preview`},Qy={key:0,class:`section-card-tag`},$y=[`src`],eb={class:`section-card-title`},tb={class:`section-card-preview`},nb=[`src`];function rb(e,t,n,r,i,a){let o=M(`SingularityBadge`);return z(),E(`div`,{class:R([`section-card`,{"section-card--current":e.currentSection}])},[e.layout===`default`?(z(),E(`div`,Zy,[e.showLabel||e.currentSection?(z(),E(`div`,Qy,[C(o,{value:e.showLabel?e.value.label:`Selected`,color:e.isGlobal?`teal`:`default`},null,8,[`value`,`color`])])):k(``,!0),w(`img`,{src:e.value.screenshotUrl,alt:`Section Preview`,style:A(e.imageStyles)},null,12,$y)])):e.layout===`detailed`?(z(),E(H,{key:1},[w(`div`,eb,[w(`span`,null,D(e.value.label),1),e.currentSection?(z(),U(o,{key:0,value:`Selected`})):k(``,!0)]),w(`div`,tb,[w(`img`,{src:e.value.screenshotUrl,alt:`Section Preview`,style:A(e.imageStyles)},null,12,nb)])],64)):k(``,!0)],2)}var ib=q(Xy,[[`render`,rb]]),ab=class extends W{};K([Z()],ab.prototype,`title`,void 0),K([Z()],ab.prototype,`description`,void 0),K([Z({default:`SparklesIcon`})],ab.prototype,`icon`,void 0),ab=K([J({emits:[`click`],components:{Icon:X}})],ab);var ob=Y(ab),sb={class:`singularity-option__content`},cb={key:0},lb={class:`singularity-option__icon-chevron`};function ub(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,{class:`singularity-option`,onClick:t[0]||=t=>e.$emit(`click`)},[C(o,{icon:e.icon,size:`16`},null,8,[`icon`]),w(`div`,sb,[w(`h4`,null,D(e.title),1),e.description?(z(),E(`p`,cb,D(e.description),1)):k(``,!0),Di(e.$slots,`content`)]),w(`div`,lb,[C(o,{icon:`ChevronRightIcon`,size:`16`})])])}var db=q(ob,[[`render`,ub]]),fb=function(e){return e.showAll=`all`,e.selected=`selected`,e}(fb||{}),pb=class extends W{constructor(...e){super(...e),this.searchCategory=``,this.columnLayout=3,this.gridView=fb.showAll,this.selectedSectionIndex=null,this.selectedSection=null,this.selectedCategoryType=null,this.debouncedLogSearchFn=jr(e=>{ds(`FutureLayer Section Search`,{searchTerm:e})},1e3)}setGridView(e){this.gridView=e}setGridViewToAll(){this.selectedSection=null,this.selectedSectionIndex=null,this.gridView=fb.showAll}get modalTitle(){if(this.isEditingHeaderOrFooter){if(this.headerAndFooterEditorPanelState?.elementType===`header`)return`Add Header`;if(this.headerAndFooterEditorPanelState?.elementType===`footer`)return`Add Footer`}return this.gridView===fb.selected?`Insert Section`:`Add Section`}closeDialog(){this.$emit(`close`)}get sectionToSwapData(){if(!this.sectionAddOrSwapPanelState.sectionId)return null;let e=na(B.document.tree,this.sectionAddOrSwapPanelState.sectionId);if(!e)return null;let t=Yi(e);return t?{type:t.designLibrarySection.category,sectionId:t.designLibrarySection.sectionId,libraryId:t.designLibrarySection.libraryId}:null}currentSectionIsSame(e,t){let n=yr();if(!n||this.sectionToSwapData?.libraryId!==n.meta.libraryId)return!1;let r=this.sections.filter(e=>e.type===t)[e];return this.sectionToSwapData?.type===t&&r&&String(r.node.id)===String(this.sectionToSwapData?.sectionId)}get gridClass(){return`singularity-section-library-modal__sections-masonry singularity-section-library-modal__sections-masonry--${this.columnLayout}`}setColumnLayout(e){this.columnLayout=e}get sections(){return Ly()}setSelectedSection(e,t){this.setGridView(fb.selected),this.selectedSectionIndex=t,this.selectedSection=T(e)}get isReplacingSection(){return this.mode===`swap`}handleSection(e){!this.selectedSection||this.selectedSectionIndex===null||this.selectedSectionIndex===void 0||(ds(`FutureLayer Section Chosen`,{sectionType:this.selectedSection.type,sectionId:this.selectedSection.node.id,mode:this.mode,isRewriteActive:e}),Hy(T(this.selectedSection),this.sectionAddSectionId,this.mode,e),this.closeDialog())}get sectionAddOrSwapPanelState(){return V.sectionAddOrSwapPanelState}get sectionAddSectionId(){return this.sectionAddOrSwapPanelState.sectionId??-1}get mode(){return this.sectionAddOrSwapPanelState.mode}get headerAndFooterEditorPanelState(){return V.headerAndFooterEditorPanelState}get isEditingHeaderOrFooter(){return this.headerAndFooterEditorPanelState!==null}get filteredSections(){return this.isEditingHeaderOrFooter?[`Headers`,`Footer`,`Index`]:[`Index`]}get activeCategory(){return this.sections.filter(e=>e.type===this.activeCategoryType)}get sectionsCategories(){let e=Ry(),t=wa(),n=Cl(),r=qc();return this.isEditingHeaderOrFooter?this.headerAndFooterEditorPanelState?.elementType===`header`?e.filter(e=>t.includes(e.type)).filter(e=>e.type.toLowerCase().includes(this.searchCategory.toLowerCase().trim())):this.headerAndFooterEditorPanelState?.elementType===`footer`?e.filter(e=>n.includes(e.type)).filter(e=>e.type.toLowerCase().includes(this.searchCategory.toLowerCase().trim())):e.filter(e=>t.includes(e.type)||n.includes(e.type)).filter(e=>e.type.toLowerCase().includes(this.searchCategory.toLowerCase().trim())):e.filter(e=>!r.includes(e.type)).filter(e=>e.type.toLowerCase().includes(this.searchCategory.toLowerCase().trim()))}get activeCategoryType(){return!this.selectedCategoryType&&this.sectionToSwapData?.type&&(this.selectedCategoryType=this.sectionToSwapData.type),this.selectedCategoryType||`Features`}setSelectCategory(e){this.selectedCategoryType=e,ds(`FutureLayer Section Category Selected`,{categoryType:e})}onSearchCategoryChange(e){e!==``&&this.debouncedLogSearchFn(e)}};K([G(`searchCategory`)],pb.prototype,`onSearchCategoryChange`,null),pb=K([J({emits:[`close`],components:{IconButton:rd,Icon:X,SectionCard:ib,SingularityOption:db,NiceButton:uf}})],pb);var mb=Y(pb),hb={class:`singularity-section-library-modal__header`},gb={class:`singularity-section-library-modal__title`},_b={class:`singularity-section-library-modal__actions`},vb={class:`singularity-section-library-modal__sections-actions`},yb={class:`singularity-section-library-modal__sections-list`},bb={class:`singularity-section-library-modal__sections-wrapper`},xb={class:`singularity-section-library-modal__search-sections`},Sb={class:`singularity-section-library-modal__categories`},Cb=[`onClick`],wb={key:0,class:`singularity-section-library-modal__sections`},Tb={key:1,class:`singularity-section-library-modal__selected`},Eb={class:`singularity-section-library-modal__selected-content`},Db={class:`singularity-section-library-modal__selected-actions`},Ob={class:`singularity-section-library-modal__selected-options`};function kb(e,t,n,r,i,a){let o=M(`IconButton`),s=M(`Icon`),c=M(`SectionCard`),l=M(`SingularityOption`),u=M(`NiceButton`);return z(),U($u,{"model-value":!0,"onUpdate:modelValue":e.closeDialog,"content-class":`singularity-section-library-modal`},{default:L(()=>[w(`div`,hb,[w(`h2`,gb,D(e.modalTitle),1),w(`div`,_b,[w(`div`,vb,[C(o,{icon:`SquareIcon`,small:``,size:`14`,class:`singularity-icon-button`,onClick:t[0]||=t=>e.setColumnLayout(1),active:e.columnLayout===1},null,8,[`active`]),C(o,{icon:`Grid2Icon`,size:`14`,class:`singularity-icon-button`,onClick:t[1]||=t=>e.setColumnLayout(2),active:e.columnLayout===2},null,8,[`active`]),C(o,{icon:`GridIcon`,size:`14`,class:`singularity-icon-button`,onClick:t[2]||=t=>e.setColumnLayout(3),active:e.columnLayout===3},null,8,[`active`])]),C(o,{size:`20`,icon:`CloseSolidIcon`,class:`singularity-icon-button`,onClick:e.closeDialog},null,8,[`onClick`])])]),w(`div`,{class:R([`singularity-section-library-modal__content`,{"is-editing-header-or-footer":e.isEditingHeaderOrFooter,"is-selecting-section":e.gridView===`selected`}])},[w(`div`,yb,[w(`div`,bb,[w(`div`,xb,[hc(w(`input`,{type:`text`,class:`singularity-section-library-modal__sections-search`,placeholder:`Search sections...`,"onUpdate:modelValue":t[3]||=t=>e.searchCategory=t},null,512),[[Is,e.searchCategory]]),C(s,{icon:`SearchIcon`,size:`16`})]),w(`ul`,Sb,[(z(!0),E(H,null,j(e.sectionsCategories,t=>(z(),E(`li`,{key:t.type,class:`singularity-section-library-modal__section-category`},[w(`button`,{class:R({"singularity-section-library-modal__category-button":!0,"is-active":e.activeCategoryType===t.type}),onClick:n=>e.setSelectCategory(t.type)},D(t.type),11,Cb)]))),128))])])]),e.gridView===`all`?(z(),E(`div`,wb,[(z(),U(vc,{key:e.activeCategoryType,name:`fade`,tag:`div`,class:R(e.gridClass)},{default:L(()=>[(z(!0),E(H,null,j(e.activeCategory,(t,n)=>(z(),U(c,{key:`${t.type}-${n}`,currentSection:e.currentSectionIsSame(n,t.type),value:t,layout:`detailed`,onClick:r=>e.setSelectedSection(t,n)},null,8,[`currentSection`,`value`,`onClick`]))),128))]),_:1},8,[`class`]))])):k(``,!0),e.gridView===`selected`?(z(),E(`div`,Tb,[w(`div`,Eb,[w(`div`,Db,[e.selectedSection?(z(),U(c,{key:0,value:e.selectedSection,layout:`detailed`,"max-height":`550px`,class:`section-card-no-hover-effect`,style:{width:`450px`,"max-width":`100%`}},null,8,[`value`])):k(``,!0)]),w(`div`,Ob,[e.isReplacingSection?(z(),E(H,{key:0},[C(l,{title:`Replace section & write content`,icon:`SparklesIcon`,onClick:t[4]||=t=>e.handleSection(!0)}),C(l,{title:`Replace section with default content`,icon:`EditIcon`,onClick:t[5]||=t=>e.handleSection(!1)})],64)):(z(),E(H,{key:1},[C(l,{title:`Insert section & write content`,icon:`SparklesIcon`,onClick:t[6]||=t=>e.handleSection(!0)}),C(l,{title:`Insert section with default content`,icon:`EditIcon`,onClick:t[7]||=t=>e.handleSection(!1)})],64)),C(u,{color:`gray-ghost`,expanded:`true`,size:`large`,onClick:e.setGridViewToAll},{default:L(()=>[...t[8]||=[P(`back to all sections `,-1)]]),_:1},8,[`onClick`])])])])):k(``,!0)],2)]),_:1},8,[`onUpdate:modelValue`])}var Ab=q(mb,[[`render`,kb]]),jb=class extends W{};K([Z()],jb.prototype,`title`,void 0),K([Z()],jb.prototype,`description`,void 0),K([Z({default:`SparklesSolidIcon`})],jb.prototype,`icon`,void 0),jb=K([J({emits:[`click`],components:{Icon:X}})],jb);var Mb=Y(jb),Nb={class:`breakdance-empty-container-singularity__option-text`},Pb={class:`breakdance-empty-container-singularity__option-title`},Fb={class:`breakdance-empty-container-singularity__option-description`};function Ib(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,{class:`breakdance-empty-container-singularity__option`,role:`button`,onClick:t[0]||=t=>e.$emit(`click`)},[C(o,{icon:e.icon,size:`32`,class:`breakdance-empty-container-singularity__option-icon`},null,8,[`icon`]),w(`div`,Nb,[w(`h2`,Pb,D(e.title),1),w(`p`,Fb,D(e.description),1)])])}var Lb=q(Mb,[[`render`,Ib]]),Rb=class extends W{constructor(...e){super(...e),this.isModalOpen=!1}get canAddElement(){return F.hasFullAccess}openSectionLibraryModal(){V.setSectionLibraryModalState(!0)}openPagesManager(){V.setSingularityLeftPanel(`page_manager`),V.highlightSingularityLeftPanel()}openAddNewSectionAI(){V.setAddNewSectionPanelState({mode:`breakdance_ai`}),V.highlightSingularityLeftPanel()}};K([Z({default:null})],Rb.prototype,`id`,void 0),Rb=K([J({components:{SingularityCanvasButton:Og,SingularitySectionLibraryModal:Ab,Icon:X,SingularityCanvasOption:Lb}})],Rb);var zb=Y(Rb),Bb={class:`breakdance-empty-container node-chrome--singularity breakdance-empty-container-singularity`,id:`breakdance-empty-container`},Vb={class:`breakdance-empty-container-singularity__content`},Hb={class:`breakdance-empty-container-singularity__options`};function Ub(e,t,n,r,i,a){let o=M(`SingularityCanvasOption`);return z(),E(`div`,Bb,[w(`div`,Vb,[w(`div`,Hb,[C(o,{icon:`Grid2Icon`,title:`Add from Library`,description:`Browse and add pre-designed sections from the library.`,onClick:e.openSectionLibraryModal},null,8,[`onClick`]),C(o,{icon:`SparklesIcon`,title:`Build with AI`,description:`Generate a custom section using AI based on your description.`,onClick:e.openAddNewSectionAI},null,8,[`onClick`])])])])}var Wb=q(zb,[[`render`,Ub]]),Gb=class extends W{get style(){return this.rect?{clipPath:`polygon( + 0% 0%, + 100% 0%, + 100% 100%, + 0% 100%, + 0% ${this.rect?.y}px, + ${this.rect?.x}px ${this.rect?.y}px, + ${this.rect?.x}px ${this.rect?.bottom}px, + ${this.rect?.right}px ${this.rect?.bottom}px, + ${this.rect?.right}px ${this.rect?.y}px, + 0% ${this.rect?.y}px + )`}:null}get shouldShowBackdrop(){return F.isInlineEditing&&F.inlineEditingContext?.showBackdrop}get rect(){return F.inlineEditingRect}onBackdropClick(){gn()}};Gb=K([J],Gb);var Kb=Y(Gb);function qb(e,t,n,r,i,a){return e.shouldShowBackdrop?(z(),E(`span`,{key:0,class:`breakdance-inline-editor-backdrop`,style:A(e.style),onClick:t[0]||=(...t)=>e.onBackdropClick&&e.onBackdropClick(...t)},null,4)):k(``,!0)}var Jb=q(Kb,[[`render`,qb]]),Yb=class extends W{constructor(...e){super(...e),this.scrollInterval=null,this.maxScrollSpeed=30,this.edgeThreshold=100}onDragElementSet(){this.draggedElement?this.scrollInterval=setInterval(this.startAutoScroll,20):this.stopAutoScroll()}get dragPosition(){return F.dragMousePosition}get draggedElement(){let e=F.currentlyDraggingAddElementSlug,t=F.currentlyDraggingCanvasElementId;if(e)return e;if(t){let e=this.draggedNode;if(e)return e.data.type}return null}get draggedNode(){return F.currentlyDraggingCanvasElementId?na(B.document.tree,F.currentlyDraggingCanvasElementId):null}get elementName(){return this.draggedElement?this.draggedNode?.data?.properties?.meta?.friendlyName||I.element(this.draggedElement).name:``}calculateScrollSpeed(e){return Math.max(0,this.maxScrollSpeed*(1-e/this.edgeThreshold))}startAutoScroll(){if(!this.dragPosition)return;let e=window.Breakdance.canvas.document,t=e.defaultView;if(e.documentElement.style.scrollBehavior=`auto`,!t)return;let n=t.innerHeight,r=this.dragPosition.y,i=0;rn-this.edgeThreshold&&(i=this.calculateScrollSpeed(n-r)),i!==0&&t.scrollBy({top:i,behavior:`auto`})}stopAutoScroll(){let e=window.Breakdance.canvas.document;e.documentElement.style.scrollBehavior=``,this.scrollInterval&&=(clearInterval(this.scrollInterval),null)}};K([G(`draggedElement`)],Yb.prototype,`onDragElementSet`,null),Yb=K([J({})],Yb);var Xb=Y(Yb);function Zb(e,t,n,r,i,a){return e.draggedElement&&e.dragPosition?(z(),E(`div`,{key:0,class:`breakdance-drag-ghost-element`,style:A({top:e.dragPosition?.y?e.dragPosition.y+`px`:`0`,left:e.dragPosition?.x?e.dragPosition.x+`px`:`0`})},D(e.elementName),5)):k(``,!0)}var Qb=q(Xb,[[`render`,Zb]]),$b=class extends W{render(){return hm(`div`,{class:this.classList,id:`breakdance_canvas`,style:this.style,children:[(()=>this.canvasIsEmpty&&!this.isFutureLayerMode?hm(qp,{}):this.isFutureLayerMode?this.elementsForCanvasInFutureLayerMode.map(e=>e.type===`empty-container`?hm(Wb,{},`empty-container`):hm(Cm,{parentId:this.rootElement.id,element:e.element},e.element.id)):this.rootElement.children.map(e=>hm(Cm,{parentId:this.rootElement.id,element:e},e.id)))(),!this.isPreviewMode&&hm(Bv,{}),!this.isPreviewMode&&!this.isOnboardingMode,!this.isPreviewMode&&hm(Fy,{}),!this.isPreviewMode&&hm(Jb,{}),!this.isPreviewMode&&hm(Qb,{}),this.previewSettings.backgroundColor&&this.previewGlobalStyle()]},this.canvasKey)}mounted(){F.setCanvasState(`normal`),addEventListener(`storage`,this.onStorage)}beforeUnmount(){removeEventListener(`storage`,this.onStorage)}onStorage(e){e.key===`oxy_selectors`&&Ae(e)}get isFutureLayerMode(){return Dt()}get canvasKey(){return F.canvasKey}get builderMode(){return I.builderMode||`breakdance`}get isPreviewMode(){return F.isPreviewMode}get isOnboardingMode(){return window.Breakdance.isOnboarding}get classList(){return{[this.builderMode]:!0,canvas:!0,dragging:F.isCanvasElementBeingDragged||F.isAddElementBeingDragged}}get rootElement(){return B.document.tree.root}get canvasIsEmpty(){return this.isFutureLayerMode?Es(B.document.tree):this.rootElement.children.length===0}get elementsForCanvasInFutureLayerMode(){let e=this.rootElement.children.map(e=>({type:`element`,element:e}));if(this.isFutureLayerMode&&this.canvasIsEmpty){let t=e.findIndex(e=>e.element?.data.type===sc),n=t>=0?t+1:0;e.splice(n,0,{type:`empty-container`})}return e}get globalProperties(){return N.globalProperties}get selectors(){return N.cssSelectors}get presets(){return N.presets}get oxySelectors(){return N.oxySelectors}get variables(){return N.variables}get previewSettings(){let{preview:e}=B.document.documentMeta.blockSettings||{preview:{}};return{width:e.width,height:e.height,backgroundColor:e.backgroundColor,isCentered:e.isCentered}}get style(){let{height:e,width:t,isCentered:n}=this.previewSettings;return{maxWidth:t?`100%`:void 0,width:t?`${t}px`:void 0,height:e?`${e}px`:void 0,margin:t||e?`0 auto`:void 0,...n?{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`}:{}}}previewGlobalStyle(){let{backgroundColor:e}=this.previewSettings;return hm(`style`,{children:` + :root, + body { + ${this.builderMode===`oxygen`?`background-color`:`--bde-background-color`}: ${e}; + } + `})}onGlobalSettingsChanged(){cn(Jr())}onSelectorsChanged(){Yt(Jr())}onPresetsChanged(){Vs(Jr())}onOxySelectorsChanged(){sr(Jr())}onVariablesChanged(){ji(Jr()),sr(Jr())}};K([G(`globalProperties`,{deep:!0,immediate:!0})],$b.prototype,`onGlobalSettingsChanged`,null),K([G(`selectors`,{deep:!0,immediate:!0})],$b.prototype,`onSelectorsChanged`,null),K([G(`presets`,{deep:!0,immediate:!0})],$b.prototype,`onPresetsChanged`,null),K([G(`oxySelectors`,{deep:!0,immediate:!0})],$b.prototype,`onOxySelectorsChanged`,null),K([G(`variables`,{deep:!0,immediate:!0})],$b.prototype,`onVariablesChanged`,null),$b=K([J({components:{DragGhostElement:Qb,EmptyContainer:qp,BuilderElement:Cm,NodeChrome:Bv,CanvasChrome:Fy}})],$b);var ex=Y($b),tx=class extends W{constructor(...e){super(...e),this.mouseXChange=0,this.lastMouseX=0,this.isDragging=!1,this.easyEvent=new pd}get currentPreviewWidthIsSetByUser(){return this.currentBreakpoint.defaultPreviewWidth===`100%`?this.previewWidth.width!==`100%`:this.previewWidth.width!==this.currentBreakpoint.defaultPreviewWidth}get currentMediaQueryStr(){return Nc(this.currentBreakpoint.minWidth,this.currentBreakpoint.maxWidth)}get builderMode(){return I.builderMode}get style(){return{left:`${this.iframeWrapperPosition.x+this.iframeWrapperPosition.width}px`,height:`${this.iframeWrapperPosition.height}px`}}get pxAmount(){return this.previewWidth.width===`100%`?`100%`:`${this.previewWidth.width}px`}get alreadyAtMaximumWidth(){return this.previewWidth.width===`100%`?!0:this.previewWidth.width>=this.previewWidth.availableCanvasSize.width}dragStart(e){e.preventDefault(),e.stopPropagation(),this.easyEvent.on(`mousemove`,this.dragging),this.easyEvent.on(`mouseup`,this.dragEnd),this.lastMouseX=e.clientX,this.iframe&&(this.iframe.style.pointerEvents=`none`),this.mainWrapper&&(this.mainWrapper.style.cursor=`col-resize`,this.mainWrapper.classList.add(`is-dragging-adjustment-handle`))}dragging(e){md(e)||(this.isDragging=!0,e.preventDefault(),e.stopPropagation(),this.mouseXChange=e.clientX-this.lastMouseX,this.adjustPreviewWidth(this.mouseXChange*2),this.lastMouseX=e.clientX)}dragEnd(e){e.preventDefault(),e.stopPropagation(),this.easyEvent.removeAll(),this.iframe&&(this.iframe.style.pointerEvents=`auto`),this.mainWrapper&&(this.mainWrapper.style.cursor=`auto`,this.mainWrapper.classList.remove(`is-dragging-adjustment-handle`)),this.isDragging=!1}adjustPreviewWidth(e){let t,n=this.previewWidth.width;if(this.alreadyAtMaximumWidth&&e>0&&(e=0),this.previewWidth.width===`100%`){if(!this.iframe){console.warn(`iframe element is missing`);return}t=this.iframe.offsetWidth-e}else t=this.previewWidth.width+e;n!==`100%`&&t>n&&t>this.previewWidth.availableCanvasSize.width&&(t=this.previewWidth.availableCanvasSize.width),this.$emit(`preview-width-change-with-adjustment-bar`,t)}resetPreviewWidth(){this.$emit(`reset-preview-width`)}get classes(){return{"breakdance-preview-width-bar":!0,"breakdance-preview-width-bar-is-dragging":this.isDragging}}};K([Z()],tx.prototype,`iframeWrapperPosition`,void 0),K([Z()],tx.prototype,`previewWidth`,void 0),K([Z()],tx.prototype,`currentBreakpoint`,void 0),K([Z()],tx.prototype,`mainWrapper`,void 0),K([Z()],tx.prototype,`iframe`,void 0),tx=K([J({components:{Icon:X},emits:[`reset-preview-width`,`preview-width-change-with-adjustment-bar`]})],tx);var nx=Y(tx),rx={key:0,class:`breakdance-px-amount`},ix={key:1,class:`breakdance-preview-width-adjustment-handle-preview`},ax={class:`breakdance-preview-width-adjustment-handle-preview__amount`};function ox(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,{class:R(e.classes),style:A(e.style)},[w(`div`,{class:`breakdance-preview-width-adjustment-handle align-center`,onMousedown:t[0]||=(...t)=>e.dragStart&&e.dragStart(...t),onDblclick:t[1]||=(...t)=>e.resetPreviewWidth&&e.resetPreviewWidth(...t)},[C(o,{icon:`EllipsisStrokeVerticalIcon`,size:`6`,heightAuto:!0,class:`breakdance-preview-width-adjustment-handle__icon`})],32),e.isDragging||e.currentPreviewWidthIsSetByUser?(z(),E(`div`,rx,[P(D(e.pxAmount)+` `,1),C(o,{icon:`CloseCircleIcon`,class:`px-amount-reset-icon`,onClick:e.resetPreviewWidth,size:`11`},null,8,[`onClick`])])):k(``,!0),e.currentMediaQueryStr?(z(),E(`div`,ix,[w(`span`,ax,D(e.currentBreakpoint.maxWidth),1),P(` `+D(e.currentMediaQueryStr),1)])):k(``,!0)],6)}var sx=q(nx,[[`render`,ox]]),cx=class extends W{get classList(){return{"breakdance-toolbar-button":this.builderMode===`breakdance`,"breakdance-toolbar-button--active":this.active,"button-oxygen":this.builderMode===`oxygen`}}get builderMode(){return I.builderMode}};K([Z({default:!1})],cx.prototype,`loading`,void 0),K([Z({default:!1})],cx.prototype,`active`,void 0),K([Z({default:`auto`})],cx.prototype,`minWidth`,void 0),K([Z()],cx.prototype,`testId`,void 0),cx=K([J({components:{}})],cx);var lx=Y(cx);function ux(e,t,n,r,i,a){return z(),U(Q,O({variant:`outlined`,class:e.classList},e.$attrs,{loading:e.loading,height:e.builderMode===`breakdance`?37:32,minWidth:e.minWidth,size:`small`,"data-test-id":e.testId}),{default:L(()=>[Di(e.$slots,`default`)]),_:3},16,[`class`,`loading`,`height`,`minWidth`,`data-test-id`])}var dx=q(lx,[[`render`,ux]]);const fx=e=>`${e}px`;var px=function(e){return e.breakdance_header=`header`,e.breakdance_footer=`footer`,e.oxygen_header=`header`,e.oxygen_footer=`footer`,e}(px||{}),mx=class extends W{constructor(...e){super(...e),this.hoveredForeignDocumentDomElement=null,this.hoveredForeignDocumentDomElementCoords=null,this.isScrolling=!1,this.isScrollingCleanupTimerId=null,this.throttledHandleIframeScroll=Al(this.handleIframeScroll,120),this.throttledHandleWatchedElementMouseMove=Al(this.handleWatchedElementMouseMove,60),this.openingInProgress=!1}get showOverlay(){return F.hasFullAccess}get foreignDocumentBuilderUrl(){return this.hoveredForeignDocumentDomElement?.dataset.breakdanceForeignDocumentBuilderUrl}get foreignDocumentTypeLabel(){let e=this.hoveredForeignDocumentDomElement?.dataset.breakdanceForeignDocumentType;return e?px[e]??``:``}get foreignDocumentTitle(){return this.hoveredForeignDocumentDomElement?.dataset.breakdanceForeignDocumentTitle||S(`Unknown Document`)}get overlayStyles(){if(!this.isThereHoveredElementAndItsCoords())return;let{top:e,left:t,height:n,width:r}=this.hoveredForeignDocumentDomElementCoords;return{display:`flex`,top:fx(e),left:fx(t),height:fx(n),width:fx(r)}}mounted(){this.addEventListenersToIframeDocument(),this.addEventListenersToWatchedElements()}beforeUnmount(){this.removeEventListenersFromIframeDocument(),this.removeEventListenersFromWatchedElements()}addEventListenersToIframeDocument(){this.iframeDocument.addEventListener(`scroll`,this.throttledHandleIframeScroll)}removeEventListenersFromIframeDocument(){this.iframeDocument.removeEventListener(`scroll`,this.throttledHandleIframeScroll)}addEventListenersToWatchedElements(){this.elementsToWatch.forEach(e=>{e.addEventListener(`mousemove`,this.throttledHandleWatchedElementMouseMove),e.addEventListener(`mouseleave`,this.handleWatchedElementMouseLeave)})}removeEventListenersFromWatchedElements(){this.elementsToWatch.forEach(e=>{e.removeEventListener(`mousemove`,this.throttledHandleWatchedElementMouseMove),e.removeEventListener(`mouseleave`,this.handleWatchedElementMouseLeave)})}isThereHoveredElementAndItsCoords(){return this.hoveredForeignDocumentDomElement!==null&&this.hoveredForeignDocumentDomElementCoords!==null}setHoveredForeignDocumentDomElement(e){this.hoveredForeignDocumentDomElement=e,this.hoveredForeignDocumentDomElementCoords=this.getCoords()}getCoords(){let e=this.hoveredForeignDocumentDomElement;return e?.childElementCount===1?e.firstElementChild.getBoundingClientRect():e?.getBoundingClientRect()??null}setIsScrolling(e){e?(this.hoveredForeignDocumentDomElement=null,this.hoveredForeignDocumentDomElementCoords=null,this.removeEventListenersFromWatchedElements()):this.addEventListenersToWatchedElements(),this.isScrolling=e}handleIframeScroll(){this.setIsScrolling(!0),this.isScrollingCleanupTimerId&&clearTimeout(this.isScrollingCleanupTimerId),this.isScrollingCleanupTimerId=setTimeout(()=>this.setIsScrolling(!1),120)}handleOverlayMouseLeave(){this.setHoveredForeignDocumentDomElement(null)}handleWatchedElementMouseMove(e){e.currentTarget&&this.setHoveredForeignDocumentDomElement(e.currentTarget)}handleWatchedElementMouseLeave(e){this.$el.contains(e.relatedTarget)?this.hoveredForeignDocumentDomElement!==null&&(this.hoveredForeignDocumentDomElementCoords=this.getCoords()):this.setHoveredForeignDocumentDomElement(null)}openBuilderUrl(){let e=this.foreignDocumentBuilderUrl;e&&this.$emit(`openDocument`,{builderUrl:e,title:this.foreignDocumentTitle})}get isSingularityMode(){return F.isSingularityMode}get classes(){return{"breakdance-foreign-documents-overlay":!0,"breakdance-foreign-documents-overlay--singularity-mode":this.isSingularityMode}}async openInCanvasInSingularityMode(){if(!this.isSingularityMode||(console.log(this.foreignDocumentBuilderUrl),!this.foreignDocumentBuilderUrl))return;let e=this.getDocIdFromBuilderUrl(this.foreignDocumentBuilderUrl);console.log(e),e&&(this.openingInProgress=!0,await Hu(),await Gu(e),V.setSingularityLeftPanel(`page_structure`),this.openingInProgress=!1)}getDocIdFromBuilderUrl(e){let t=new URL(e).searchParams.get(`id`);return t?parseInt(t):null}};K([Z()],mx.prototype,`canvasElement`,void 0),K([Z()],mx.prototype,`iframeDocument`,void 0),K([Z()],mx.prototype,`elementsToWatch`,void 0),mx=K([J({emits:[`openDocument`],components:{Icon:X}})],mx);var hx=Y(mx),gx={class:`breakdance-foreign-documents-overlay-titlebar-wrapper`},_x={class:`breakdance-foreign-documents-overlay-titlebar`},vx={key:0},yx=[`href`];function bx(e,t,n,r,i,a){let o=M(`Icon`);return e.showOverlay?(z(),E(`div`,{key:0,style:A(e.overlayStyles),class:R(e.classes),onMouseleave:t[1]||=(...t)=>e.handleOverlayMouseLeave&&e.handleOverlayMouseLeave(...t),onClick:t[2]||=(...t)=>e.openInCanvasInSingularityMode&&e.openInCanvasInSingularityMode(...t)},[w(`div`,gx,[w(`div`,_x,[e.isSingularityMode?(z(),E(`a`,vx,D(e.sprintf(e._xdoc(`Edit %s`,`Document`,`%s: Document title`),e.foreignDocumentTitle)),1)):(z(),E(`a`,{key:1,href:e.foreignDocumentBuilderUrl,onClick:t[0]||=(...t)=>e.openBuilderUrl&&e.openBuilderUrl(...t)},[P(D(e.sprintf(e._xdoc(`Edit %s`,`Document`,`%s: Document title`),e.foreignDocumentTitle))+` `,1),C(o,{icon:`EditIcon`})],8,yx))])])],38)):k(``,!0)}var xx=q(hx,[[`render`,bx]]),Sx=class extends W{constructor(...e){super(...e),this.iframeWrapperPosition={x:0,y:0,width:0,height:0}}get canvasPadding(){if(Dt())return 0;let e=I.builderMode===`oxygen`?4:8;return this.isPreviewMode?0:e}get mainWrapperStyle(){return{padding:`${this.canvasPadding}px`}}get iframeWrapperStyles(){return{width:this.iframePreviewWidth.width===`100%`?`100%`:`${this.iframePreviewWidth.width}px`,overflow:F.settings.scaleToFit===`SCALED_TO_FIT`?`hidden`:`auto`}}get iframeStyle(){let e=e=>{let t=Math.min(1,this.iframePreviewWidth.availableCanvasSize.width/e);return{width:`${e}px`,transform:`scale(${t})`,height:`${this.iframePreviewWidth.availableCanvasSize.height*(1/t)}px`}};return F.settings.scaleToFit===`ACTUAL_SIZE`?this.iframePreviewWidth.width===`100%`?{width:`100%`,minWidth:`${this.minWidth}px`}:{width:`${this.iframePreviewWidth.width}px`}:this.iframePreviewWidth.width===`100%`?this.iframePreviewWidth.availableCanvasSize.width{this.$emit(`iframe-unloaded`,this.iframe)}),this.$emit(`iframe-loaded`,this.iframe)}handleReloadWanted(){this.$emit(`reload-wanted`)}mounted(){this.mainWrapper?new ResizeObserver(this.setAvailableCanvasSize).observe(this.mainWrapper):F.logError(`No canvas element.`),this.iframeWrapper?new ResizeObserver(this.setIframeWrapperPosition).observe(this.iframeWrapper):F.logError(`No iframe wrapper element.`),this.setAvailableCanvasSize()}setAvailableCanvasSize(){if(this.mainWrapper){let e=this.mainWrapper.getBoundingClientRect(),t={...this.iframePreviewWidth,availableCanvasSize:{width:e.width-this.canvasPadding*2,height:e.height-this.canvasPadding*2}};this.$emit(`preview-width-change`,t)}this.setIframeWrapperPosition()}setIframeWrapperPosition(){if(this.iframeWrapper){let e=this.iframeWrapper.getBoundingClientRect();this.iframeWrapperPosition={x:e.x,y:e.y,width:e.width,height:e.height}}}};K([Z()],Sx.prototype,`iframeState`,void 0),K([Z()],Sx.prototype,`iframePreviewWidth`,void 0),K([Z()],Sx.prototype,`iframeUrl`,void 0),K([Z()],Sx.prototype,`iframeId`,void 0),K([Z()],Sx.prototype,`minWidth`,void 0),K([Z()],Sx.prototype,`iframeExited`,void 0),K([Z()],Sx.prototype,`currentBreakpoint`,void 0),K([Ju()],Sx.prototype,`mainWrapper`,void 0),K([Ju()],Sx.prototype,`iframeWrapper`,void 0),K([Ju()],Sx.prototype,`iframe`,void 0),Sx=K([J({components:{StandardButton:dx,Loading:af,PreviewWidthAdjustmentHandle:sx},emits:[`iframe-loaded`,`iframe-unloaded`,`reload-wanted`,`reset-preview-width`,`preview-width-change`,`preview-width-change-with-adjustment-bar`]})],Sx);var Cx=Y(Sx),wx={key:0,class:`iframe-reloaded-warning-block`},Tx=[`id`,`name`,`src`];function Ex(e,t,n,r,i,a){let o=M(`PreviewWidthAdjustmentHandle`),s=M(`StandardButton`),c=M(`Loading`);return z(),E(`div`,{id:`canvas-area`,ref:`mainWrapper`,style:A(e.mainWrapperStyle),class:`breakdance-iframe-main-wrapper`},[C(o,{"iframe-wrapper-position":e.iframeWrapperPosition,"preview-width":e.iframePreviewWidth,"current-breakpoint":e.currentBreakpoint,iframe:e.iframe,"main-wrapper":e.mainWrapper,onResetPreviewWidth:t[0]||=t=>e.$emit(`reset-preview-width`),onPreviewWidthChangeWithAdjustmentBar:t[1]||=t=>e.$emit(`preview-width-change-with-adjustment-bar`,t)},null,8,[`iframe-wrapper-position`,`preview-width`,`current-breakpoint`,`iframe`,`main-wrapper`]),e.iframeExited?(z(),E(`div`,wx,[t[4]||=P(` Something navigated you away from the page you are editing. `,-1),C(s,{onClick:e.handleReloadWanted,minWidth:`80`,class:`mt-4`},{default:L(()=>[...t[3]||=[P(` Continue Editing `,-1)]]),_:1},8,[`onClick`])])):(z(),E(`div`,{key:1,id:`iframe-wrapper`,ref:`iframeWrapper`,style:A(e.iframeWrapperStyles),class:`breakdance-iframe-inner-wrapper`},[e.iframeIsLoading?(z(),U(c,{key:0,absolute:!0})):k(``,!0),(z(),E(`iframe`,{style:A(e.iframeStyle),onLoad:t[2]||=(...t)=>e.handleIframeLoaded&&e.handleIframeLoaded(...t),id:e.iframeId,name:e.iframeId,src:e.iframeUrl,key:e.iframeUrl,class:`breakdance-iframe`,ref:`iframe`},null,44,Tx))],4))],4)}var Dx=q(Cx,[[`render`,Ex]]),Ox=class extends W{constructor(...e){super(...e),this.iframeExited=!1,this.foreignDocumentsOverlayVueApp=null,this.canvasApp=null}handlePreviewWidthChange(e){F.changePreviewWidthMutation(e)}handlePreviewWidthChangeWithAdjustmentBar(e){F.changePreviewWidthWithAdjustmentBar(e)}handleResetPreviewWidth(){F.selectBaseBreakpoint()}setIframeAsExited(){I.leavingIframeOnPurpose?I.setLeavingIframeOnPurpose(!1):this.iframeExited=!0}reloadIframe(){this.iframeExited=!1,setTimeout(()=>{window.frames.iframe.location.reload()},0)}get iframeMinWidth(){return Ya(ht())}get canvasPreviewWidth(){return F.canvasPreviewWidth}get canvasState(){return F.canvasState}get currentBreakpoint(){return F.currentBreakpoint}get iframeURL(){if(I.documentSpecificNeededUrls&&B.document.documentMeta.id!==-1){let e=new URL(I.documentSpecificNeededUrls.iframeUrl);return e.searchParams.append(`breakdance_iframe`,`true`),e.searchParams.append(`breakdance_open_document`,`${B.document.documentMeta.id}`),e.toString()}return null}mountForeignDocumentsOverlayVueAppInIframe(e,t){let n=e.createElement(`div`);n.classList.add(`breakdance-foreign-documents-overlay-mountpoint`),e.body.appendChild(n);let r=Fa(xx,{elementsToWatch:e.querySelectorAll(`[data-breakdance-foreign-document]`),canvasElement:t,iframeDocument:e,onOpenDocument:e=>{confirm(`Edit ${e.title}?`)&&window.open(e.builderUrl,`_top`)}});s(r),r.mount(n),this.foreignDocumentsOverlayVueApp=r}mountCanvasInIframe(e){if(!e.contentDocument)throw`Unable to mount canvas in iframe because its document is missing`;p(e.contentDocument),Iee(document,window.Breakdance.canvas.document),ct.registerAllStoreActions();let t=window.Breakdance.canvas.document.querySelector(`#breakdance-canvas-wrapper`);if(!t){console.error(`No canvas element.`),F.setCanvasState(`normal`);return}let n=Fa(ex);s(n),n.mount(t),this.canvasApp=n,this.mountForeignDocumentsOverlayVueAppInIframe(window.Breakdance.canvas.document,t),Ot().appendChild(xt(document,Mp,`iframe-styles`)),Ot().appendChild(xt(document,Np,`iframe-singularity-styles`)),Ot().appendChild(xt(document,Pp,`iframe-futurelayer-styles`)),this.unbindClickEventOnInnerIframeLinks(),this.$emit(`loaded`)}unbindClickEventOnInnerIframeLinks(){let e=[...window.Breakdance.canvas.document.querySelectorAll(`a:not([force-allow-clicks])`)],t=[...window.Breakdance.canvas.document.querySelectorAll(`#breakdance_canvas a`)];e.filter(e=>!t.includes(e)).forEach(e=>{e.addEventListener(`click`,e=>{e.preventDefault()})})}unmounted(){this.canvasApp&&this.canvasApp.unmount(),this.foreignDocumentsOverlayVueApp&&this.foreignDocumentsOverlayVueApp.unmount()}};Ox=K([J({components:{IframeWrapper:Dx,Loading:af,Canvas:ex,ForeignDocumentsOverlay:xx,PreviewWidthAdjustmentHandle:sx,StandardButton:dx},emits:[`loaded`]})],Ox);var kx=Y(Ox);function Ax(e,t,n,r,i,a){let o=M(`IframeWrapper`);return e.iframeURL?(z(),U(o,{key:0,"iframe-url":e.iframeURL,"iframe-preview-width":e.canvasPreviewWidth,"iframe-exited":e.iframeExited,"iframe-state":e.canvasState,"min-width":e.iframeMinWidth,"current-breakpoint":e.currentBreakpoint,"iframe-id":`iframe`,onPreviewWidthChange:e.handlePreviewWidthChange,onPreviewWidthChangeWithAdjustmentBar:e.handlePreviewWidthChangeWithAdjustmentBar,onIframeLoaded:e.mountCanvasInIframe,onIframeUnloaded:e.setIframeAsExited,onReloadWanted:e.reloadIframe,onResetPreviewWidth:e.handleResetPreviewWidth},null,8,[`iframe-url`,`iframe-preview-width`,`iframe-exited`,`iframe-state`,`min-width`,`current-breakpoint`,`onPreviewWidthChange`,`onPreviewWidthChangeWithAdjustmentBar`,`onIframeLoaded`,`onIframeUnloaded`,`onReloadWanted`,`onResetPreviewWidth`])):k(``,!0)}var jx=q(kx,[[`render`,Ax]]),Mx=class extends W{get isSingularityMode(){return F.isSingularityMode}get canvasWrapperKey(){return F.canvasWrapperKey}};Mx=K([J({components:{IframeCanvas:jx},emits:[`loaded`]})],Mx);var Nx=Y(Mx),Px={class:`iframe-canvas-wrapper`};function Fx(e,t,n,r,i,a){let o=M(`IframeCanvas`);return z(),E(`div`,Px,[(z(),U(o,{onLoaded:t[0]||=t=>e.$emit(`loaded`),key:e.canvasWrapperKey}))])}var Ix=q(Nx,[[`render`,Fx]]),Lx=class extends W{constructor(...e){super(...e),this.unsubscribe=null}get saveInProgress(){return F.saveInProgress}get unsavedChangesPresent(){return F.unsavedChangesPresent}async save(){document.dispatchEvent(new Event(`breakdanceSaveButtonClicked`)),Ree(),F.inlineEditingContext?.elementId&&await gn(),await Hu()}mounted(){jl.unbind(Kr.CMD_S),jl.register(Kr.CMD_S,this.save),this.unsubscribe=B.$onAction(e=>{vi.shouldActionBeIgnored(e)||F.setUnsavedChangesPresent(!0)}),this.warnIfUnsavedFunction=df(()=>F.unsavedChangesPresent)}beforeUnmount(){jl.unbind(Kr.CMD_S),this.unsubscribe?.(),ff(this.warnIfUnsavedFunction)}get builderMode(){return I.builderMode}};Lx=K([J({components:{StandardButton:dx,IconButton:rd,Icon:X}})],Lx);var Rx=Y(Lx),zx={key:0},Bx={key:2,class:`button-save-oxygen-indicator`};function Vx(e,t,n,r,i,a){let o=M(`StandardButton`),s=M(`Icon`);return z(),E(`div`,null,[e.builderMode===`breakdance`?(z(),U(o,{key:0,onClick:e.save,loading:e.saveInProgress,minWidth:`80`,testId:`main-save-button`,style:{"margin-left":`3px`,"margin-right":`3px`}},{default:L(()=>[P(D(e.__(`Save`)),1)]),_:1},8,[`onClick`,`loading`])):k(``,!0),e.builderMode===`oxygen`?(z(),E(`button`,{key:1,onClick:t[0]||=(...t)=>e.save&&e.save(...t),class:R({"button-save-oxygen":!0,"button-save-oxygen-loading":e.saveInProgress,"button-save-oxygen-unsaved":e.unsavedChangesPresent})},[e.saveInProgress?(z(),U(s,{key:1,icon:`CircleNotchSolidIcon`,size:`14`,class:`animate-spin`})):(z(),E(`span`,zx,D(e.__(`Save`)),1)),e.unsavedChangesPresent?(z(),E(`span`,Bx)):k(``,!0)],2)):k(``,!0)])}var Hx=q(Rx,[[`render`,Vx]]),Ux=class extends W{getDeviceIcon(e){return Ki[e]?.icon||`StarIcon`}getDeviceIconRotation(e){return Ki[e]?.rotate}get isBase(){return this.currentBreakpoint?.id===Ii}get breakpoints(){return I.breakpoints}get currentBreakpoint(){return this.modelValue}get builderMode(){return I.builderMode}activeClass(e){return this.currentBreakpoint?.id===e?`breakpoint-active`:!1}changeBreakpoint(e){this.$emit(`update:model-value`,e)}onBreakpointsChanged(){(!this.currentBreakpoint||!this.breakpoints.find(e=>e.id===this.currentBreakpoint.id))&&F.selectBaseBreakpoint()}};K([Z()],Ux.prototype,`modelValue`,void 0),K([G(`breakpoints`,{deep:!0,immediate:!0})],Ux.prototype,`onBreakpointsChanged`,null),Ux=K([J({emits:[`update:model-value`],components:{Icon:X,Dropdown:nf,IconButton:rd}})],Ux);var Wx=Y(Ux),Gx={class:`device-icon-wrapper`},Kx={class:`ml-4`};function qx(e,t,n,r,i,a){let o=M(`IconButton`),s=M(`Icon`),c=M(`Dropdown`);return e.currentBreakpoint?(z(),U(c,{key:0,width:280},{activator:L(({props:t})=>[e.builderMode===`breakdance`?(z(),U(o,O({key:0,active:!e.isBase},t,{icon:e.getDeviceIcon(e.currentBreakpoint.id),rotate:e.getDeviceIconRotation(e.currentBreakpoint.id),style:{"margin-right":`0`},size:18}),null,16,[`active`,`icon`,`rotate`])):k(``,!0),e.builderMode==`oxygen`?(z(),E(`button`,O({key:1,class:`breakpoint-selection-oxygen`},t),[C(s,{icon:e.getDeviceIcon(e.currentBreakpoint.id),rotate:e.getDeviceIconRotation(e.currentBreakpoint.id),size:14},null,8,[`icon`,`rotate`]),P(D(e.currentBreakpoint.label),1)],16)):k(``,!0)]),default:L(()=>[C(Nu,null,{default:L(()=>[(z(!0),E(H,null,j(e.breakpoints,t=>(z(),U(Mu,{density:`compact`,key:t.id,onClick:n=>e.changeBreakpoint(t),class:R([e.activeClass(t.id),`breakpoint-selection-item`])},{default:L(()=>[w(`div`,Gx,[C(s,{icon:e.getDeviceIcon(t.id),rotate:e.getDeviceIconRotation(t.id),size:e.builderMode===`breakdance`?`18`:`14`},null,8,[`icon`,`rotate`,`size`])]),w(`div`,Kx,[C(ju,null,{default:L(()=>[P(D(t.label),1)]),_:2},1024),C(Pu,null,{default:L(()=>[t.label===`Desktop`?(z(),E(H,{key:0},[P(D(e.__(`All device widths`)),1)],64)):k(``,!0),t.maxWidth&&!t.minWidth?(z(),E(H,{key:1},[P(D(e.sprintf(e._doc(`%spx and below`,`%s: Breakpoint maximum width`),t.maxWidth)),1)],64)):k(``,!0),!t.maxWidth&&t.minWidth?(z(),E(H,{key:2},[P(D(e.sprintf(e._doc(`%spx and above`,`%s: Breakpoint minimum width`),t.minWidth)),1)],64)):k(``,!0),t.maxWidth&&t.minWidth?(z(),E(H,{key:3},[P(D(e.sprintf(e._t(`Between %spx and %spx`,`1: Breakpoint minimum width, 2: Breakpoint maximum width`),t.minWidth,t.maxWidth)),1)],64)):k(``,!0)]),_:2},1024)])]),_:2},1032,[`onClick`,`class`]))),128))]),_:1})]),_:1})):k(``,!0)}var Jx=q(Wx,[[`render`,qx]]),Yx=class extends W{get classList(){let e=[`topbar-section`];return this.borderLeft&&e.push(`topbar-section-bl`),this.borderRight&&e.push(`topbar-section-br`),e}};K([Z({default:!1})],Yx.prototype,`borderLeft`,void 0),K([Z({default:!1})],Yx.prototype,`borderRight`,void 0),Yx=K([J({components:{}})],Yx);var Xx=Y(Yx);function Zx(e,t,n,r,i,a){return z(),E(`div`,{class:R(e.classList)},[Di(e.$slots,`default`)],2)}var Qx=q(Xx,[[`render`,Zx]]),$x=class extends W{mounted(){jl.register(Kr.CMD_Z,this.undo),jl.register(Kr.CMD_SHIFT_Z,this.redo)}get canUndo(){return Ma.canUndo}get canRedo(){return Ma.canRedo}undo(){this.canUndo&&vi.undo()}redo(){this.canRedo&&vi.redo()}beforeUnmount(){jl.unbind(Kr.CMD_Z),jl.unbind(Kr.CMD_SHIFT_Z)}get builderMode(){return I.builderMode}};$x=K([J({components:{IconButton:rd,TopBarSection:Qx}})],$x);var eS=Y($x);function tS(e,t,n,r,i,a){let o=M(`IconButton`),s=M(`TopBarSection`);return z(),U(s,{"border-left":!0,class:`undo-redo-top-bar-section`},{default:L(()=>[C(o,{onClick:e.undo,disabled:!e.canUndo,icon:e.builderMode==`oxygen`?`UndoIconSolid`:`UndoIcon`,size:e.builderMode==`oxygen`?14:18,tooltip:e.canUndo?e.__(`Undo changes`):``},null,8,[`onClick`,`disabled`,`icon`,`size`,`tooltip`]),C(o,{onClick:e.redo,disabled:!e.canRedo,icon:e.builderMode==`oxygen`?`RedoIconSolid`:`RedoIcon`,size:e.builderMode==`oxygen`?14:18,tooltip:e.canRedo?e.__(`Redo changes`):``},null,8,[`onClick`,`disabled`,`icon`,`size`,`tooltip`])]),_:1})}var nS=q(eS,[[`render`,tS]]);async function rS({id:e,search:t=``}){return as({action:`breakdance_get_template_previewable_items_with_search`,dataToPost:{search:t,id:e},decoder:zt,resultKey:`data`})}var iS=class extends W{get builderMode(){return I.builderMode}get previewLabel(){return this.previewItem?.label||uo(Wa(`ID %s`,`%s: ID number`),this.previewItem?.id||S(`(no title)`))}};K([Z()],iS.prototype,`previewItem`,void 0),K([Z()],iS.prototype,`nothingToPreview`,void 0),iS=K([J],iS);var aS=Y(iS),oS={key:0,class:`document-chooser-text`},sS={class:`ellipsis-text`},cS={class:`ellipsis-text`},lS={class:`ellipsis-text`},uS={key:1,class:`document-chooser-text`},dS={class:`document-chooser-type-label`},fS={class:`ellipsis-text`},pS={key:1,class:`document-chooser-type-label`},mS={class:`document-chooser-type-label`},hS={class:`ellipsis-text`};function gS(e,t,n,r,i,a){return e.builderMode===`breakdance`?(z(),E(`div`,oS,[e.previewItem?(z(),E(H,{key:0},[w(`h2`,null,D(e.previewItem.type),1),w(`span`,sS,[e.previewItem.label?(z(),E(H,{key:0},[P(D(e.previewItem.label),1)],64)):e.previewItem.id?(z(),E(H,{key:1},[P(D(e.sprintf(e._doc(`ID %s`,`%s: ID number`),e.previewItem.id)),1)],64)):(z(),E(H,{key:2},[P(D(e.__(`(no title)`)),1)],64))])],64)):e.nothingToPreview?(z(),E(H,{key:1},[w(`h2`,null,D(e.__(`Nothing to preview`)),1),w(`span`,cS,D(e.__(`No match found`)),1)],64)):(z(),E(H,{key:2},[w(`h2`,null,D(e.__(`Previewing`)),1),w(`span`,lS,D(e.__(`choose`)),1)],64))])):e.builderMode===`oxygen`?(z(),E(`div`,uS,[e.previewItem?(z(),E(H,{key:0},[w(`span`,dS,D(e.sprintf(e._doc(`Preview %s:`,`%s: Item type`),e.previewItem.type)),1),w(`span`,fS,D(e.previewLabel),1)],64)):e.nothingToPreview?(z(),E(`span`,pS,D(e.__(`Nothing to preview`)),1)):(z(),E(H,{key:2},[w(`span`,mS,D(e.__(`Previewing:`)),1),w(`span`,hS,D(e.__(`choose`)),1)],64))])):k(``,!0)}var _S=q(aS,[[`render`,gS]]);const vS=Jl({text:String,...Kl(),...Cu()},`VToolbarTitle`),yS=iu()({name:`VToolbarTitle`,props:vS(),setup(e,t){let{slots:n}=t;return Wl(()=>{let t=!!(n.default||n.text||e.text);return C(e.tag,{class:R([`v-toolbar-title`,e.class]),style:A(e.style)},{default:()=>[t&&w(`div`,{class:`v-toolbar-title__placeholder`},[n.text?n.text():e.text,n.default?.()])]})}),{}}});var bS=[null,`prominent`,`default`,`comfortable`,`compact`];const xS=Jl({absolute:Boolean,collapse:Boolean,collapsePosition:{type:String,default:`start`},color:String,density:{type:String,default:`default`,validator:e=>bS.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,..._u(),...Kl(),...wu(),...Jne(),...vu(),...Cu({tag:`header`}),...ru()},`VToolbar`),SS=iu()({name:`VToolbar`,props:xS(),setup(e,t){let{slots:n}=t,{backgroundColorClasses:r,backgroundColorStyles:i}=Su(()=>e.color),{borderClasses:a}=vne(e),{elevationClasses:o}=ku(e),{locationStyles:s}=Zne(e),{roundedClasses:c}=mu(e),{themeClasses:l}=$l(e),{rtlClasses:u}=nu(),d=_l(e.extended===null?!!n.extension?.():e.extended),f=kr(()=>parseInt(Number(e.height)+(e.density===`prominent`?Number(e.height):0)-(e.density===`comfortable`?8:0)-(e.density===`compact`?16:0),10)),p=kr(()=>d.value?parseInt(Number(e.extensionHeight)+(e.density===`prominent`?Number(e.extensionHeight):0)-(e.density===`comfortable`?4:0)-(e.density===`compact`?8:0),10):0);return Xl({VBtn:{variant:`text`}}),Wl(()=>{let t=!!(e.title||n.title),m=!!(n.image||e.image),h=n.extension?.();return d.value=e.extended===null?!!h:e.extended,C(e.tag,{class:R([`v-toolbar`,`v-toolbar--collapse-${e.collapsePosition}`,{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,a.value,o.value,c.value,l.value,u.value,e.class]),style:A([i.value,s.value,e.style])},{default:()=>[m&&w(`div`,{key:`image`,class:`v-toolbar__image`},[n.image?C(xu,{key:`image-defaults`,disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):C(fu,{key:`image-img`,cover:!0,src:e.image},null)]),C(xu,{defaults:{VTabs:{height:su(f.value)}}},{default:()=>[w(`div`,{class:`v-toolbar__content`,style:{height:su(f.value)}},[n.prepend&&w(`div`,{class:`v-toolbar__prepend`},[n.prepend?.()]),t&&C(yS,{key:`title`,text:e.title},{text:n.title}),n.default?.(),n.append&&w(`div`,{class:`v-toolbar__append`},[n.append?.()])])]}),C(xu,{defaults:{VTabs:{height:su(p.value)}}},{default:()=>[C(yne,null,{default:()=>[d.value&&w(`div`,{class:`v-toolbar__extension`,style:{height:su(p.value)}},[h])]})]})]})}),{contentHeight:f,extensionHeight:p}}}),CS=Jl({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},`scroll`);function wS(e){let{canScroll:t,layoutSize:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=0,i=0,a=Xc(null),o=_l(0),s=_l(0),c=_l(0),l=_l(!1),u=_l(!1),d=_l(!1),f=_l(!1),p=_l(!0),m=kr(()=>Number(e.scrollThreshold)),h=kr(()=>Yl((m.value-o.value)/m.value||0));function g(e){return{clientHeight:`window`in e?window.innerHeight:e.clientHeight,scrollHeight:`window`in e?document.documentElement.scrollHeight:e.scrollHeight}}function _(){let e=a.value;if(!e)return;let{clientHeight:t,scrollHeight:r}=g(e),i=r-t,o=n?.value||0;p.value=i>m.value+o}function v(){_()}function y(){let e=a.value;if(!e||t&&!t.value)return;r=o.value,o.value=`window`in e?e.pageYOffset:e.scrollTop;let n=e instanceof Window?document.documentElement.scrollHeight:e.scrollHeight;i!==n&&(n>i&&_(),i=n),u.value=o.value=l-5;!u.value&&h&&o.value>=m.value&&p.value&&(f.value=!0);let v=Math.abs(o.value-r)>100,y=o.value<=5;(u.value&&r-o.value>1&&!h||v&&o.value{s.value=s.value||o.value}),mo(l,()=>{s.value=0}),gi(()=>{mo(()=>e.scrollTarget,e=>{let t=e?document.querySelector(e):window;if(!t){ql(`Unable to locate element with identifier ${e}`);return}t!==a.value&&(a.value?.removeEventListener(`scroll`,y),a.value=t,a.value.addEventListener(`scroll`,y,{passive:!0}),Promise.resolve().then(()=>{_()}))},{immediate:!0}),window.addEventListener(`resize`,v,{passive:!0})}),jt(()=>{a.value?.removeEventListener(`scroll`,y),window.removeEventListener(`resize`,v)}),t&&mo(t,y,{immediate:!0}),{scrollThreshold:m,currentScroll:o,currentThreshold:c,isScrollActive:l,scrollRatio:h,isScrollingUp:u,savedScroll:s,isAtBottom:d,reachedBottomWhileScrollingDown:f,hasEnoughScrollableSpace:p}}const TS=Jl({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:`top`,validator:e=>[`top`,`bottom`].includes(e)},...uu(xS(),[`location`]),...o(),...CS(),height:{type:[Number,String],default:64}},`VAppBar`),ES=iu()({name:`VAppBar`,props:TS(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t,r=Xc(),i=tu(e,`modelValue`),a=kr(()=>{let t=new Set(e.scrollBehavior?.split(` `)??[]);return{hide:t.has(`hide`),fullyHide:t.has(`fully-hide`),inverted:t.has(`inverted`),collapse:t.has(`collapse`),elevate:t.has(`elevate`),fadeImage:t.has(`fade-image`)}}),{currentScroll:o,scrollThreshold:s,isScrollingUp:l,scrollRatio:u,isAtBottom:d,reachedBottomWhileScrollingDown:f,hasEnoughScrollableSpace:p}=wS(e,{canScroll:kr(()=>{let e=a.value;return e.hide||e.fullyHide||e.inverted||e.collapse||e.elevate||e.fadeImage||!i.value}),layoutSize:kr(()=>(r.value?.contentHeight??0)+(r.value?.extensionHeight??0))}),m=Me(()=>a.value.hide||a.value.fullyHide),h=kr(()=>e.collapse||a.value.collapse&&(a.value.inverted?u.value>0:u.value===0)),g=kr(()=>e.flat||a.value.fullyHide&&!i.value||a.value.elevate&&(a.value.inverted?o.value>0:o.value===0)),_=kr(()=>a.value.fadeImage?a.value.inverted?1-u.value:u.value:void 0),v=kr(()=>{if(a.value.hide&&a.value.inverted)return 0;let e=r.value?.contentHeight??0,t=r.value?.extensionHeight??0;return m.value?o.value!!e.scrollBehavior,()=>{_a(()=>{if(!m.value){i.value=!0;return}if(a.value.inverted){i.value=o.value>s.value;return}if(!p.value){i.value=!0;return}if(f.value){i.value=!1;return}i.value=l.value&&!d.value||o.valueparseInt(e.order,10)),position:Me(()=>e.location),layoutSize:v,elementSize:_l(void 0),active:i,absolute:Me(()=>e.absolute)});return Wl(()=>{let t=uu(SS.filterProps(e),[`location`]);return C(SS,O({ref:r,class:[`v-app-bar`,{"v-app-bar--bottom":e.location===`bottom`},e.class],style:[{...b.value,"--v-toolbar-image-opacity":_.value,height:void 0,...y.value},e.style]},t,{collapse:h.value,flat:g.value}),n)}),{}}}),DS=Jl({...uu(zd(),[`direction`]),...uu(yre(),[`inline`])},`VCheckbox`),OS=iu()({name:`VCheckbox`,inheritAttrs:!1,props:DS(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t,i=tu(e,`modelValue`),{isFocused:a,focus:o,blur:s}=Vd(e),c=Xc(),l=Ga();return Wl(()=>{let[t,u]=cu(n),d=qd.filterProps(e),f=Kd.filterProps(e);return C(qd,O({ref:c,class:[`v-checkbox`,e.class]},t,d,{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,id:e.id||`checkbox-${l}`,focused:a.value,style:e.style}),{...r,default:e=>{let{id:t,messagesId:n,isDisabled:a,isReadonly:c,isValid:l}=e;return C(Kd,O(f,{id:t.value,"aria-describedby":n.value,disabled:a.value,readonly:c.value},u,{error:l.value===!1,modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,onFocus:o,onBlur:s}),r)}})}),Tu({},c)}}),kS=Jl({...Kl(),...Dre()},`VForm`),AS=iu()({name:`VForm`,props:kS(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t,i=Are(e),a=Xc();function o(e){e.preventDefault(),i.reset()}function s(e){let t=e,n=i.validate();t.then=n.then.bind(n),t.catch=n.catch.bind(n),t.finally=n.finally.bind(n),r(`submit`,t),t.defaultPrevented||n.then(e=>{let{valid:t}=e;t&&a.value?.submit()}),t.preventDefault()}return Wl(()=>w(`form`,{ref:a,class:R([`v-form`,e.class]),style:A(e.style),novalidate:!0,onReset:o,onSubmit:s},[n.default?.(i)])),Tu(i,a)}}),jS=Jl({...Kl(),...hu(),...a()},`VLayout`),MS=iu()({name:`VLayout`,props:jS(),setup(e,t){let{slots:n}=t,{layoutClasses:r,layoutStyles:i,getLayoutItem:a,items:o,layoutRef:s}=l(e),{dimensionStyles:c}=gu(e);return Wl(()=>w(`div`,{ref:s,class:R([r.value,e.class]),style:A([c.value,i.value,e.style])},[n.default?.()])),{getLayoutItem:a,items:o}}}),NS=Jl({...Mre({falseIcon:`$radioOff`,trueIcon:`$radioOn`})},`VRadio`),PS=iu()({name:`VRadio`,props:NS(),setup(e,t){let{slots:n}=t;return Wl(()=>C(Ld,O(Ld.filterProps(e),{class:[`v-radio`,e.class],style:e.style,type:`radio`}),n)),{}}}),FS=Jl({height:{type:[Number,String],default:`auto`},...uu(zd(),[`direction`]),...uu(Cre(),[`multiple`]),trueIcon:{type:du,default:`$radioOn`},falseIcon:{type:du,default:`$radioOff`},type:{type:String,default:`radio`}},`VRadioGroup`),IS=iu()({name:`VRadioGroup`,inheritAttrs:!1,props:FS(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t,i=Ga(),a=kr(()=>e.id||`radio-group-${i}`),o=tu(e,`modelValue`),s=Xc();return Wl(()=>{let[t,i]=cu(n),c=qd.filterProps(e),l=Ld.filterProps(e),u=r.label?r.label({label:e.label,props:{for:a.value}}):e.label;return C(qd,O({ref:s,class:[`v-radio-group`,e.class],style:e.style},t,c,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,id:a.value}),{...r,default:t=>{let{id:n,messagesId:a,isDisabled:s,isReadonly:c}=t;return w(H,null,[u&&C(Ud,{id:n.value},{default:()=>[u]}),C(xre,O(l,{id:n.value,"aria-describedby":a.value,defaultsTarget:`VRadio`,trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:s.value,readonly:c.value,"aria-labelledby":u?n.value:void 0,multiple:!1},i,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e}),r)])}})}),Tu({},s)}}),LS=Jl({...gre(),...zd(),...Lre(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},`VRangeSlider`),RS=iu()({name:`VRangeSlider`,inheritAttrs:!1,props:LS(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:r,attrs:i}=t,a=Xc(),o=Xc(),s=Xc(),{rtlClasses:c}=nu();function l(t){if(!a.value||!o.value)return;let n=Ed(t,a.value.$el,e.direction),r=Ed(t,o.value.$el,e.direction),i=Math.abs(n),s=Math.abs(r);return ie?.length?e.map(e=>u.roundValue(e)):[0,0]),{activeThumbRef:f,hasLabels:p,max:m,min:h,mousePressed:g,onSliderMousedown:_,onSliderTouchstart:v,position:y,trackContainerRef:b,disabled:x,readonly:S}=ore({props:e,steps:u,onSliderStart:()=>{if(x.value||S.value){f.value?.blur();return}r(`start`,d.value)},onSliderEnd:t=>{let{value:n}=t;if(x.value||S.value)f.value?.blur();else{let t=f.value===a.value?.$el?[n,d.value[1]]:[d.value[0],n];!e.strict&&t[0]{let{value:n}=t,[r,i]=d.value;if(x.value||S.value){f.value?.blur();return}!e.strict&&r===i&&r!==h.value&&(f.value=n>r?o.value?.$el:a.value?.$el,f.value?.focus()),f.value===a.value?.$el?d.value=[Math.min(n,i),i]:d.value=[r,Math.max(r,n)]},getActiveThumb:l}),{isFocused:ee,focus:te,blur:ne}=Vd(e),re=kr(()=>y(d.value[0])),ie=kr(()=>y(d.value[1]));return Wl(()=>{let t=qd.filterProps(e),[r,l]=cu(i),u=!!(e.label||n.label||n.prepend);return C(qd,O({class:[`v-slider`,`v-range-slider`,{"v-slider--has-labels":!!n[`tick-label`]||p.value,"v-slider--focused":ee.value,"v-slider--pressed":g.value,"v-slider--disabled":x.value},c.value,e.class],style:e.style,ref:s},t,r,{focused:ee.value}),{...n,prepend:u?t=>w(H,null,[n.label?.(t)??(e.label?C(Ud,{class:`v-slider__label`,text:e.label},null):void 0),n.prepend?.(t)]):void 0,default:t=>{let{id:r,messagesId:i}=t;return w(`div`,{class:`v-slider__container`,onMousedown:S.value?void 0:_,onTouchstartPassive:S.value?void 0:v},[w(`input`,{id:`${r.value}_start`,name:e.name||r.value,disabled:x.value,readonly:S.value,tabindex:`-1`,value:d.value[0]},null),w(`input`,{id:`${r.value}_stop`,name:e.name||r.value,disabled:x.value,readonly:S.value,tabindex:`-1`,value:d.value[1]},null),C(cre,{ref:b,start:re.value,stop:ie.value},{"tick-label":n[`tick-label`]}),C(Sd,O({ref:a,"aria-describedby":i.value,focused:ee&&f.value===a.value?.$el,modelValue:d.value[0],"onUpdate:modelValue":e=>d.value=[e,d.value[1]],onFocus:e=>{te(),f.value=a.value?.$el,m.value!==h.value&&d.value[0]===d.value[1]&&d.value[1]===h.value&&e.relatedTarget!==o.value?.$el&&(a.value?.$el.blur(),o.value?.$el.focus())},onBlur:()=>{ne(),f.value=void 0},min:h.value,max:d.value[1],position:re.value,ripple:e.ripple},l),{"thumb-label":n[`thumb-label`]}),C(Sd,O({ref:o,"aria-describedby":i.value,focused:ee&&f.value===o.value?.$el,modelValue:d.value[1],"onUpdate:modelValue":e=>d.value=[d.value[0],e],onFocus:e=>{te(),f.value=o.value?.$el,m.value!==h.value&&d.value[0]===d.value[1]&&d.value[0]===m.value&&e.relatedTarget!==a.value?.$el&&(o.value?.$el.blur(),a.value?.$el.focus())},onBlur:()=>{ne(),f.value=void 0},min:d.value[0],max:m.value,position:ie.value,ripple:e.ripple},l),{"thumb-label":n[`thumb-label`]})])}})}),Tu({focus:()=>a.value?.$el.focus()},s)}}),zS={actions:`button@2`,article:`heading, paragraph`,avatar:`avatar`,button:`button`,card:`image, heading`,"card-avatar":`image, list-item-avatar`,chip:`chip`,"date-picker":`list-item, heading, divider, date-picker-options, date-picker-days, actions`,"date-picker-options":`text, avatar@2`,"date-picker-days":`avatar@28`,divider:`divider`,heading:`heading`,image:`image`,"list-item":`text`,"list-item-avatar":`avatar, text`,"list-item-two-line":`sentences`,"list-item-avatar-two-line":`avatar, sentences`,"list-item-three-line":`paragraph`,"list-item-avatar-three-line":`avatar, paragraph`,ossein:`ossein`,paragraph:`text@3`,sentences:`text@2`,subtitle:`text`,table:`table-heading, table-thead, table-tbody, table-tfoot`,"table-heading":`chip, text`,"table-thead":`heading@6`,"table-tbody":`table-row-divider@6`,"table-row-divider":`table-row, divider`,"table-row":`text@6`,"table-tfoot":`text@2, avatar@2`,text:`text`};function BS(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w(`div`,{class:R([`v-skeleton-loader__bone`,`v-skeleton-loader__${e}`])},[t])}function VS(e){let[t,n]=e.split(`@`);return Array.from({length:n}).map(()=>HS(t))}function HS(e){let t=[];if(!e)return t;let n=zS[e];if(e!==n){if(e.includes(`,`))return US(e);if(e.includes(`@`))return VS(e);n.includes(`,`)?t=US(n):n.includes(`@`)?t=VS(n):n&&t.push(HS(n))}return[BS(e,t)]}function US(e){return e.replace(/\s/g,``).split(`,`).map(HS)}const WS=Jl({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:`$vuetify.loading`},type:{type:[String,Array],default:`ossein`},...hu(),...wu(),...ru()},`VSkeletonLoader`),GS=iu()({name:`VSkeletonLoader`,inheritAttrs:!1,props:WS(),setup(e,t){let{attrs:n,slots:r}=t,{backgroundColorClasses:i,backgroundColorStyles:a}=Su(()=>e.color),{dimensionStyles:o}=gu(e),{elevationClasses:s}=ku(e),{themeClasses:c}=$l(e),{t:l}=ou(),u=kr(()=>HS(au(e.type).join(`,`)));return Wl(()=>{let t=!r.default||e.loading,d=e.boilerplate||!t?{}:{ariaLive:`polite`,ariaLabel:l(e.loadingText),role:`alert`};return t?w(`div`,O({class:[`v-skeleton-loader`,{"v-skeleton-loader--boilerplate":e.boilerplate},c.value,i.value,s.value],style:[a.value,o.value]},d,n),[u.value]):w(H,null,[r.default?.()])}),{}}}),KS=Jl({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...lre(),...uu(zd(),[`direction`]),...mre()},`VTextarea`),qS=iu()({name:`VTextarea`,directives:{vIntersect:Eu},inheritAttrs:!1,props:KS(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t,a=tu(e,`modelValue`),{isFocused:o,focus:s,blur:c}=Vd(e),{onIntersect:l}=kre(e),u=kr(()=>typeof e.counterValue==`function`?e.counterValue(a.value):(a.value||``).toString().length),d=kr(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!=`number`&&typeof e.counter!=`string`))return e.counter}),f=Xc(),p=Xc(),m=_l(``),h=Xc(),g=Xc(0),{platform:_}=eu(),v=pre(e),y=kr(()=>e.persistentPlaceholder||o.value||e.active);function b(){v.isSuppressing.value&&v.update(),h.value!==document.activeElement&&h.value?.focus(),o.value||s()}function x(e){b(),r(`click:control`,e)}function S(e){r(`mousedown:control`,e)}function ee(t){t.stopPropagation(),b(),zl(()=>{a.value=``,Zl(e[`onClick:clear`],t)})}function te(t){let n=t.target;if(!e.modelModifiers?.trim){a.value=n.value;return}let r=n.value,i=n.selectionStart,o=n.selectionEnd;a.value=r,zl(()=>{let e=0;r.trimStart().length===n.value.length&&(e=r.length-n.value.length),i!=null&&(n.selectionStart=i-e),o!=null&&(n.selectionEnd=o-e)})}let ne=Xc(),re=Xc(Number(e.rows)),ie=kr(()=>[`plain`,`underlined`].includes(e.variant));_a(()=>{e.autoGrow||(re.value=Number(e.rows))});function ae(){zl(()=>{if(!h.value)return;if(_.value.firefox){g.value=12;return}let{offsetWidth:e,clientWidth:t}=h.value;g.value=Math.max(0,e-t)}),e.autoGrow&&zl(()=>{if(!ne.value||!p.value)return;let t=getComputedStyle(ne.value),n=getComputedStyle(p.value.$el),r=parseFloat(t.getPropertyValue(`--v-field-padding-top`))+parseFloat(t.getPropertyValue(`--v-input-padding-top`))+parseFloat(t.getPropertyValue(`--v-field-padding-bottom`)),i=ne.value.scrollHeight,a=parseFloat(t.lineHeight),o=Math.max(parseFloat(e.rows)*a+r,parseFloat(n.getPropertyValue(`--v-input-control-height`))),s=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*a+r||1/0,c=Yl(i??0,o,s);re.value=Math.floor((c-r)/a),m.value=su(c)})}gi(ae),mo(a,ae),mo(()=>e.rows,ae),mo(()=>e.maxHeight,ae),mo(()=>e.maxRows,ae),mo(()=>e.density,ae),mo(re,e=>{r(`update:rows`,e)});let oe;return mo(ne,e=>{e?(oe=new ResizeObserver(ae),oe.observe(ne.value)):oe?.disconnect()}),jt(()=>{oe?.disconnect()}),Wl(()=>{let t=!!(i.counter||e.counter||e.counterValue),r=!!(t||i.details),[s,_]=cu(n),{modelValue:ae,...oe}=qd.filterProps(e),se={...kd.filterProps(e),"onClick:clear":ee};return C(qd,O({ref:f,modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,class:[`v-textarea v-text-field`,{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":ie.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?su(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":su(g.value)},e.style]},s,oe,{centerAffix:re.value===1&&!ie.value,focused:o.value}),{...i,default:t=>{let{id:n,isDisabled:r,isDirty:s,isReadonly:u,isValid:d,hasDetails:f}=t;return C(kd,O({ref:p,style:{"--v-textarea-control-height":m.value},onClick:x,onMousedown:S,"onClick:prependInner":e[`onClick:prependInner`],"onClick:appendInner":e[`onClick:appendInner`]},se,{id:n.value,active:y.value||s.value,labelId:`${n.value}-label`,centerAffix:re.value===1&&!ie.value,dirty:s.value||e.dirty,disabled:r.value,focused:o.value,details:f.value,error:d.value===!1}),{...i,default:t=>{let{props:{class:i,...o},controlRef:s}=t;return w(H,null,[e.prefix&&w(`span`,{class:`v-text-field__prefix`},[e.prefix]),hc(w(`textarea`,O({ref:e=>h.value=s.value=e,class:i,value:a.value,onInput:te,autofocus:e.autofocus,readonly:u.value,disabled:r.value,placeholder:e.placeholder,rows:e.rows,name:v.fieldName.value,autocomplete:v.fieldAutocomplete.value,onFocus:b,onBlur:c,"aria-labelledby":`${n.value}-label`},o,_),null),[[Eu,{handler:l},null,{once:!0}]]),e.autoGrow&&hc(w(`textarea`,{class:R([i,`v-textarea__sizer`]),id:`${o.id}-sizer`,"onUpdate:modelValue":e=>a.value=e,ref:ne,readonly:!0,"aria-hidden":`true`},null),[[Is,a.value]]),e.suffix&&w(`span`,{class:`v-text-field__suffix`},[e.suffix])])}})},details:r?n=>w(H,null,[i.details?.(n),t&&w(H,null,[w(`span`,null,null),C(ure,{active:e.persistentCounter||o.value,value:u.value,max:d.value,disabled:e.disabled},i.counter)])]):void 0})}),Tu({},f,p,h)}}),JS=Jl({...uu(xne({collapseIcon:`$treeviewCollapse`,expandIcon:`$treeviewExpand`}),[`subgroup`])},`VTreeviewGroup`),YS=iu()({name:`VTreeviewGroup`,props:JS(),setup(e,t){let{slots:n}=t,r=Xc(),i=kr(()=>r.value?.isOpen?e.collapseIcon:e.expandIcon),a=kr(()=>({VTreeviewItem:{prependIcon:void 0,appendIcon:void 0,toggleIcon:i.value}}));return Wl(()=>C(Au,O(Au.filterProps(e),{ref:r,class:[`v-treeview-group`,e.class],subgroup:!0}),{...n,activator:n.activator?e=>w(H,null,[C(xu,{defaults:a.value},{default:()=>[n.activator?.(e)]})]):void 0})),{}}}),XS=Symbol.for(`vuetify:v-treeview`),ZS=Jl({loading:Boolean,hideActions:Boolean,hasCustomPrepend:Boolean,indentLines:Array,toggleIcon:du,...bne({slim:!0})},`VTreeviewItem`),QS=iu()({name:`VTreeviewItem`,props:ZS(),emits:{toggleExpand:e=>!0},setup(e,t){let{slots:n,emit:r}=t,i=Kt(XS,{visibleIds:Xc()}).visibleIds,a=Xc(),o=kr(()=>a.value?.root.activatable.value&&a.value?.isGroupActivator),s=kr(()=>a.value?.link.isClickable.value||e.value!=null&&!!a.value?.list),c=kr(()=>!e.disabled&&e.link!==!1&&(e.link||s.value||o.value)),l=kr(()=>i.value&&!i.value.has(Or(a.value?.id)));function u(e){c.value&&o.value&&a.value?.activate(!a.value?.isActivated,e)}function d(e){e.preventDefault(),e.stopPropagation(),r(`toggleExpand`,e)}return Wl(()=>{let t=Mu.filterProps(e),r=n.prepend||e.toggleIcon||e.indentLines||e.prependIcon||e.prependAvatar;return C(Mu,O({ref:a},t,{active:a.value?.isActivated||void 0,class:[`v-treeview-item`,{"v-treeview-item--activatable-group-activator":o.value,"v-treeview-item--filtered":l.value},e.class],role:`treeitem`,ripple:!1,onClick:u}),{...n,prepend:r?t=>w(H,null,[e.indentLines&&e.indentLines.length>0?w(`div`,{key:`indent-lines`,class:`v-treeview-indent-lines`,style:{"--v-indent-parts":e.indentLines.length}},[e.indentLines.map(e=>w(`div`,{class:R(`v-treeview-indent-line v-treeview-indent-line--${e}`)},null))]):``,!e.hideActions&&C(jp,{start:!0},{default:()=>[e.toggleIcon?w(H,null,[n.toggle?C(xu,{key:`prepend-defaults`,defaults:{VBtn:{density:`compact`,icon:e.toggleIcon,variant:`text`,loading:e.loading},VProgressCircular:{indeterminate:`disable-shrink`,size:20,width:2}}},{default:()=>[n.toggle({...t,loading:e.loading,props:{onClick:d}})]}):C(Q,{key:`prepend-toggle`,density:`compact`,icon:e.toggleIcon,loading:e.loading,variant:`text`,onClick:d},{loader:()=>C(Du,{indeterminate:`disable-shrink`,size:`20`,width:`2`},null)})]):w(`div`,{class:`v-treeview-item__level`},null)]}),e.hasCustomPrepend?C(xu,{key:`prepend-defaults`,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{start:!0}}},{default:()=>[n.prepend?.(t)]}):w(H,null,[n.prepend?.(t),e.prependAvatar&&C(bu,{key:`prepend-avatar`,density:e.density,image:e.prependAvatar},null),e.prependIcon&&C(yu,{key:`prepend-icon`,density:e.density,icon:e.prependIcon},null)])]):void 0})}),Tu({},a)}}),$S=Jl({fluid:Boolean,disabled:Boolean,loadChildren:Function,loadingIcon:{type:String,default:`$loading`},items:Array,openOnClick:{type:Boolean,default:void 0},indeterminateIcon:{type:du,default:`$checkboxIndeterminate`},falseIcon:du,trueIcon:du,returnObject:Boolean,activatable:Boolean,selectable:Boolean,selectedColor:String,selectStrategy:[String,Function,Object],index:Number,isLastGroup:Boolean,separateRoots:Boolean,parentIndentLines:Array,indentLinesVariant:String,path:{type:Array,default:()=>[]},...lu(ZS(),[`hideActions`]),...pu()},`VTreeviewChildren`),eC=iu()({name:`VTreeviewChildren`,props:$S(),setup(e,t){let{slots:n}=t,r=Ute(new Set),i=Xc([]),a=kr(()=>!e.disabled&&(e.openOnClick==null?e.selectable&&!e.activatable:e.openOnClick));async function o(t){try{if(!e.items?.length||!e.loadChildren)return;t?.children?.length===0&&(r.add(t.value),await e.loadChildren(t.raw))}finally{r.delete(t.value)}}function s(t,n){e.selectable&&t(n)}return()=>n.default?.()??e.items?.map((t,c,l)=>{let{children:u,props:d}=t,f=r.has(t.value),p=!!l.at(c+1)?.children,m=e.path?.length??0,h=l.length-1===c,g={index:c,depth:m,isFirst:c===0,isLast:h,path:[...e.path,c],hideAction:e.hideActions},_=Gre({depth:m,isLast:h,isLastGroup:e.isLastGroup,leafLinks:!e.hideActions&&!e.fluid,separateRoots:e.separateRoots,parentIndentLines:e.parentIndentLines,variant:e.indentLinesVariant}),v={toggle:n.toggle?e=>n.toggle?.({...e,...g,item:t.raw,internalItem:t,loading:f}):void 0,prepend:r=>w(H,null,[e.selectable&&(!u||u&&![`leaf`,`single-leaf`].includes(e.selectStrategy))&&C(jp,{start:!0},{default:()=>[C(Kd,{key:t.value,modelValue:r.isSelected,disabled:e.disabled||d.disabled,loading:f,color:e.selectedColor,density:e.density,indeterminate:r.isIndeterminate,indeterminateIcon:e.indeterminateIcon,falseIcon:e.falseIcon,trueIcon:e.trueIcon,"onUpdate:modelValue":e=>s(r.select,e),onClick:e=>e.stopPropagation(),onKeydown:e=>{[`Enter`,`Space`].includes(e.key)&&(e.stopPropagation(),s(r.select,r.isSelected))}},null)]}),n.prepend?.({...r,...g,item:t.raw,internalItem:t})]),append:n.append?e=>n.append?.({...e,...g,item:t.raw,internalItem:t}):void 0,title:n.title?e=>n.title?.({...e,item:t.raw,internalItem:t}):void 0,subtitle:n.subtitle?e=>n.subtitle?.({...e,item:t.raw,internalItem:t}):void 0},y=YS.filterProps(d),b=eC.filterProps({...e,...g}),x={hideActions:e.hideActions,indentLines:_.footer};return u?C(YS,O(y,{value:e.returnObject?t.raw:y?.value,rawId:y?.value}),{activator:r=>{let{props:l,isOpen:u}=r,p={...d,...l,value:d?.value,hideActions:e.hideActions,indentLines:_.node,ariaExpanded:u,onToggleExpand:[()=>o(t),l.onClick],onClick:e.disabled||d.disabled?void 0:a.value?[()=>o(t),l.onClick]:()=>s(i.value[c]?.select,!i.value[c]?.isSelected)};return Gl(n.header,{props:p,item:t.raw,internalItem:t,loading:f},()=>C(QS,O({ref:e=>i.value[c]=e},p,{hasCustomPrepend:!!n.prepend,value:e.returnObject?t.raw:d.value,loading:f}),v))},default:()=>w(H,null,[C(eC,O(b,{items:u,indentLinesVariant:e.indentLinesVariant,parentIndentLines:_.children,isLastGroup:p,returnObject:e.returnObject}),n),n.footer?.({props:x,item:t.raw,internalItem:t,loading:f})])}):Gl(n.item,{props:d,item:t.raw,internalItem:t},()=>t.type===`divider`?Gl(n.divider,{props:t.raw},()=>C(id,t.props,null)):t.type===`subheader`?Gl(n.subheader,{props:t.raw},()=>C(ad,t.props,null)):C(QS,O(d,{hasCustomPrepend:!!n.prepend,hideActions:e.hideActions,indentLines:_.leaf,value:e.returnObject?Or(t.raw):d.value}),v))})}});function tC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];for(let n of e)t.push(n),n.children&&tC(n.children,t);return t}const nC=Jl({openAll:Boolean,indentLines:[Boolean,String],indentLinesColor:String,indentLinesOpacity:[String,Number],search:String,hideNoData:Boolean,noDataText:{type:String,default:`$vuetify.noDataText`},...fre({filterKeys:[`title`]}),...uu($S(),[`index`,`path`,`indentLinesVariant`,`parentIndentLines`,`isLastGroup`]),...uu(Sne({collapseIcon:`$treeviewCollapse`,expandIcon:`$treeviewExpand`,slim:!0}),[`nav`,`openStrategy`]),modelValue:Array},`VTreeview`),rC=iu()({name:`VTreeview`,props:nC(),emits:{"update:opened":e=>!0,"update:activated":e=>!0,"update:selected":e=>!0,"update:modelValue":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n,emit:r}=t,{t:i}=ou(),{items:a}=Cne(e),o=Me(()=>e.activeColor),s=Me(()=>e.baseColor),c=Me(()=>e.color),l=tu(e,`activated`),u=tu(e,`selected`),d=kr({get:()=>e.modelValue??u.value,set(e){u.value=e,r(`update:modelValue`,e)}}),f=Xc(),p=kr(()=>e.openAll?y(a.value):e.opened),m=kr(()=>tC(a.value)),h=Me(()=>e.search),{filteredItems:g}=sre(e,m,h),_=kr(()=>{if(!h.value)return null;let t=f.value?.getPath;return t?new Set(g.value.flatMap(n=>{let r=e.returnObject?n.raw:n.props.value;return[...t(r),...v(r)].map(Or)})):null});function v(e){let t=[],n=(f.value?.children.get(e)??[]).slice();for(;n.length;){let e=n.shift();e&&(t.push(e),n.push(...(f.value?.children.get(e)??[]).slice()))}return t}function y(t){let n=[];for(let r of t)r.children&&(n.push(e.returnObject?Or(r.raw):r.value),r.children&&(n=n.concat(y(r.children))));return n}return an(XS,{visibleIds:_}),Xl({VTreeviewGroup:{activeColor:o,baseColor:s,color:c,collapseIcon:Me(()=>e.collapseIcon),expandIcon:Me(()=>e.expandIcon)},VTreeviewItem:{activeClass:Me(()=>e.activeClass),activeColor:o,baseColor:s,color:c,density:Me(()=>e.density),disabled:Me(()=>e.disabled),lines:Me(()=>e.lines),variant:Me(()=>e.variant)}}),Wl(()=>{let t=Nu.filterProps(e),r=eC.filterProps(e),o=typeof e.indentLines==`boolean`?`default`:e.indentLines;return C(Nu,O({ref:f},t,{class:[`v-treeview`,{"v-treeview--fluid":e.fluid},e.class],role:`tree`,openStrategy:`multiple`,style:[{"--v-treeview-indent-line-color":e.indentLinesColor,"--v-treeview-indent-line-opacity":e.indentLinesOpacity},e.style],opened:p.value,activated:l.value,"onUpdate:activated":e=>l.value=e,selected:d.value,"onUpdate:selected":e=>d.value=e}),{default:()=>[_.value?.size===0&&!e.hideNoData&&(n[`no-data`]?.()??C(Mu,{key:`no-data`,title:i(e.noDataText)},null)),C(eC,O(r,{density:e.density,returnObject:e.returnObject,items:a.value,parentIndentLines:e.indentLines?[]:void 0,indentLinesVariant:o}),n)]})}),{}}});var iC=class extends W{constructor(...e){super(...e),this.dropdownOptions={populate:{path:``,text:``,value:``,fetchDataAction:`breakdance_fetch_flexible_content_fields`,fetchContextPath:``,refetchPaths:[]}}}get postId(){return B.document.documentMeta.id}get blockSettings(){return B.document.documentMeta.blockSettings||{preview:{acfFlexibleField:``,acfFlexibleFieldRow:void 0}}}async saveSettings(){await aa(this.postId,this.blockSettings),I.flushDynamicDataCache()}setFlexibleField(e){let t=T(B.document.documentMeta);ja(t,`blockSettings.preview.acfFlexibleField`,e),vi.ignore(()=>{B.setDocumentMeta(t),this.saveSettings()})}setRowIndex(e){let t=T(B.document.documentMeta);ja(t,`blockSettings.preview.acfFlexibleFieldRow`,e),vi.ignore(()=>{B.setDocumentMeta(t),this.saveSettings()})}};iC=K([J({emits:[`back`],components:{TextInput:tf,IconButton:rd,NumberInput:Fd,DropdownInput:wd}})],iC);var aC=Y(iC),oC={class:`preview-chooser-settings__title`},sC={class:`preview-chooser-settings__subtitle`},cC={class:`my-3`},lC={class:`breakdance-control-wrapper-control-label`},uC={class:`my-3`},dC={class:`breakdance-control-wrapper-control-label`};function fC(e,t,n,r,i,a){let o=M(`IconButton`),s=M(`DropdownInput`),c=M(`NumberInput`);return z(),U(td,{width:`350`,class:`vscroll-scroll vscroll-wrap preview-chooser-settings`},{default:L(()=>[C(Xu,{class:`preview-chooser-settings-header`},{default:L(()=>[C(o,{icon:`ArrowLeftIcon`,small:!0,onClick:t[0]||=t=>e.$emit(`back`),size:14,style:{"margin-left":`-9px`}}),w(`h4`,oC,D(e.__(`Settings`)),1)]),_:1}),w(`div`,null,[C(Qu,null,{default:L(()=>[w(`h6`,sC,D(e.__(`Preview`)),1),w(`div`,cC,[w(`span`,lC,D(e.__(`ACF Flexible Content`)),1),C(s,{"model-value":e.blockSettings.preview.acfFlexibleField,"onUpdate:modelValue":e.setFlexibleField,placeholder:e.__(`Select a field to preview`),autocomplete:!0,"dropdown-options":e.dropdownOptions,clearable:!0},null,8,[`model-value`,`onUpdate:modelValue`,`placeholder`,`dropdown-options`])]),w(`div`,uC,[w(`span`,dC,D(e.__(`Row Index`)),1),C(c,{"model-value":e.blockSettings.preview.acfFlexibleFieldRow,"onUpdate:modelValue":e.setRowIndex},null,8,[`model-value`,`onUpdate:modelValue`])])]),_:1})])]),_:1})}var pC=q(aC,[[`render`,fC]]),mC=class extends W{};mC=K([J({})],mC);var hC=Y(mC),gC={class:`previewable-items-zero-case previewable-items-zero-case-error`};function _C(e,t,n,r,i,a){return z(),E(`div`,gC,[w(`h4`,null,D(e.__(`Nothing to preview`)),1),w(`p`,null,D(e.__(`Your template settings don't match any content. You can:`)),1),w(`ul`,null,[w(`li`,null,D(e.__(`Edit the template anyway - this is not an error.`)),1),w(`li`,null,[P(D(e.__(`Update your template settings in the WP admin at`))+` `,1),w(`b`,null,D(e.__(`Breakdance > Templates > Edit Template`)),1)]),w(`li`,null,D(e.__(`Add some content to your site that matches the template settings.`)),1)])])}var vC=q(hC,[[`render`,_C]]),yC=class extends W{};K([Z()],yC.prototype,`item`,void 0),K([Z()],yC.prototype,`selected`,void 0),yC=K([J({emits:[`select`]})],yC);var bC=Y(yC),xC={class:`previewable-item-label previewable-item-label-stop-text-from-overflowing`},SC={class:`previewable-item-type`};function CC(e,t,n,r,i,a){return z(),U(Mu,{link:``,onClick:t[0]||=t=>e.$emit(`select`,e.item),class:R({"document-chooser-item-selected":e.selected})},{default:L(()=>[C(ju,{class:`previewable-item-list-item`},{default:L(()=>[w(`div`,xC,D(e.item.label||e.item.url),1),w(`div`,SC,D(e.item.type),1)]),_:1})]),_:1},8,[`class`])}var wC=q(bC,[[`render`,CC]]),TC=Qt(),EC=Ws(),DC=class extends W{constructor(...e){super(...e),this.open=!1,this.search=``,this.isLoading=!1,this.settingsOpen=!1,this.debouncedSearchContentInWp=jr(this.searchContentInWp,300)}get previews(){return I.templatePreview&&I.templatePreview.previewableItems}get currentPreviewedItem(){return I.previewedItem}get builderMode(){return I.builderMode}get nothingToPreview(){return(!this.previews||!this.previews.length)&&!this.search&&!this.isLoading}get isGlobalBlock(){return B.document.documentMeta.postType===$i()}async setPreviewedItem(e){this.open=!1,F.setLastModifiedElementProperty({elementId:null,path:null}),I.setPreviewedItem(e),I.flushDynamicDataCache(),await pne(),Gne(e)}async handleSearch(e){this.search=e,this.isLoading=!0,this.debouncedSearchContentInWp()}async searchContentInWp(){this.isLoading=!0,(0,TC.pipe)(await rS({search:this.search,id:B.document.documentMeta.id}),(0,EC.fold)(e=>{this.isLoading=!1,e.forEach(e=>Bs.log.message(e.msg))},e=>{I.setTemplatePreview({...I.templatePreview,previewableItems:e}),this.isLoading=!1}))}toggleSettings(){this.settingsOpen=!this.settingsOpen}};DC=K([J({components:{Icon:X,Dropdown:nf,IconButton:rd,TopBarSection:Qx,PreviewChooserText:_S,PreviewChooserItem:wC,PreviewChooserSettings:pC,PreviewChooserNoResults:vC}})],DC);var OC=Y(DC),kC={key:0},AC={key:0,class:`document-chooser-dropdown-icon`},jC={key:1,class:`document-chooser-dropdown-icon`},MC={key:0,class:`preview-content-chooser-dialog-search-form-wrapper`},NC={key:1,class:`previewable-items-zero-case align-center text-center`};function PC(e,t,n,r,i,a){let o=M(`PreviewChooserText`),s=M(`Icon`),c=M(`PreviewChooserSettings`),l=M(`IconButton`),u=M(`PreviewChooserItem`),d=M(`PreviewChooserNoResults`),f=M(`Dropdown`),p=M(`TopBarSection`);return e.previews?(z(),E(`div`,kC,[C(p,{"border-right":!0},{default:L(()=>[C(f,{"offset-x":0,"offset-y":e.builderMode===`oxygen`?16:0,"close-on-content-click":!1,width:450,height:e.nothingToPreview?void 0:350,modelValue:e.open,"onUpdate:modelValue":t[1]||=t=>e.open=t},{activator:L(({props:t})=>[w(`div`,O({class:[`document-chooser`,{"document-chooser-zero-case":e.nothingToPreview}]},t),[C(o,{"preview-item":e.currentPreviewedItem,"nothing-to-preview":e.nothingToPreview},null,8,[`preview-item`,`nothing-to-preview`]),e.builderMode==`breakdance`?(z(),E(`div`,AC,[C(s,{size:`11`,icon:`CaretDownIcon`})])):k(``,!0),e.builderMode==`oxygen`&&!e.nothingToPreview?(z(),E(`div`,jC,[C(s,{size:`11`,icon:`CaretDownSolidIcon`})])):k(``,!0)],16)]),default:L(()=>[e.settingsOpen?(z(),U(c,{key:0,onBack:t[0]||=t=>e.settingsOpen=!1})):(z(),U(td,{key:1,loading:e.isLoading,class:`vscroll-scroll vscroll-wrap`},{default:L(()=>[e.nothingToPreview?k(``,!0):(z(),E(`div`,MC,[C(xd,{class:`preview-content-chooser-dialog-search-box breakdance-dense-input`,"model-value":e.search,"onUpdate:modelValue":e.handleSearch,label:e.__(`Search...`),clearable:``,"single-line":``,"bg-color":`var(--gray150)`,autofocus:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`]),e.isGlobalBlock?(z(),U(l,{key:0,style:{"margin-right":`-5px`},icon:`GearIcon`,small:!0,onClick:e.toggleSettings},null,8,[`onClick`])):k(``,!0)])),C(Nu,{density:`compact`,class:`vscroll-scroll`},{default:L(()=>[(z(!0),E(H,null,j(e.previews,(t,n)=>(z(),U(u,{key:n,item:t,selected:t.url===e.currentPreviewedItem?.url,onSelect:e.setPreviewedItem},null,8,[`item`,`selected`,`onSelect`]))),128)),e.nothingToPreview?(z(),U(d,{key:0})):e.previews.length===0?(z(),E(`div`,NC,[w(`h4`,null,D(e.__(`No results apply to this template`)),1)])):k(``,!0)]),_:1})]),_:1},8,[`loading`]))]),_:1},8,[`offset-y`,`height`,`modelValue`])]),_:1})])):k(``,!0)}var FC=q(OC,[[`render`,PC]]);async function IC({search:e=``,postType:t=``,sortBy:n=``}){return as({action:`breakdance_get_available_documents_with_search`,dataToPost:{search:e,postType:t,sortBy:n},decoder:ra,resultKey:`data`})}var LC=class extends W{constructor(...e){super(...e),this.autofocus=!1,this.postTitle=null,this.postType=null,this.loading=!1,this.dropdownOptions={populate:{path:``,text:``,value:``,fetchDataAction:`breakdance_get_editable_post_types`,fetchContextPath:``,refetchPaths:[]}}}onOpenChange(){this.open?(this.postTitle=null,this.postType=null,setTimeout(()=>{this.autofocus=!0},100)):this.autofocus=!1}async create(){if(!this.postTitle||!this.postType)return;this.loading=!0;let e=dn(await as({action:`breakdance_insert_post`,friendlyName:`Insert Post`,dataToPost:{postTitle:this.postTitle,postType:this.postType},decoder:wr({postId:wn})}),kt(()=>void 0,e=>e));this.loading=!1,this.$emit(`close`),this.$emit(`created`,{postId:e?.postId,postTitle:this.postTitle,postType:this.postType}),Tc(this.postType)&&eo()}};K([Z()],LC.prototype,`open`,void 0),K([G(`open`)],LC.prototype,`onOpenChange`,null),LC=K([J({emits:[`close`,`created`],components:{TextInput:tf,Dialog:of,DropdownInput:wd}})],LC);var RC=Y(LC),zC={class:`document-chooser-create-fields`};function BC(e,t,n,r,i,a){let o=M(`TextInput`),s=M(`DropdownInput`),c=M(`Dialog`);return z(),U(c,{"model-value":e.open,onClose:t[3]||=t=>e.$emit(`close`),"onClick:outside":t[4]||=t=>e.$emit(`close`),onKeydown:t[5]||=so(t=>e.$emit(`close`),[`esc`]),class:`document-chooser-create`},{title:L(()=>[P(D(e.__(`Create Post`)),1)]),text:L(()=>[w(`div`,zC,[C(o,{modelValue:e.postTitle,"onUpdate:modelValue":t[0]||=t=>e.postTitle=t,placeholder:e.__(`Post Title`),class:`flex-grow-1 flex-shrink-1`,autofocus:e.autofocus,onKeydown:so(e.create,[`enter`])},null,8,[`modelValue`,`placeholder`,`autofocus`,`onKeydown`]),C(s,{modelValue:e.postType,"onUpdate:modelValue":t[1]||=t=>e.postType=t,placeholder:e.__(`Post Type`),autocomplete:!0,"dropdown-options":e.dropdownOptions,class:`flex-grow-1 flex-shrink-1`},null,8,[`modelValue`,`placeholder`,`dropdown-options`])])]),actions:L(()=>[C(Q,{variant:`text`,onClick:t[2]||=t=>e.$emit(`close`)},{default:L(()=>[P(D(e.__(`Cancel`)),1)]),_:1}),C(Q,{color:`blue`,onClick:e.create,loading:e.loading},{default:L(()=>[P(D(e.__(`Save`)),1)]),_:1},8,[`onClick`,`loading`])]),_:1},8,[`model-value`])}var VC=q(RC,[[`render`,BC]]),HC=class extends W{constructor(...e){super(...e),this.templates=[],this.modalData=!1,this.loadingData=!1,this.templatesManagementData={conditions:[],dynamicFields:[],templateTypeCategories:[],popupTriggers:null}}get globalBlocks(){return I.globalBlocks}get title(){return this.item.titleLabel?fn(this.item.titleLabel):`ID: ${this.item.id}`}get currentDocument(){return B.document}get templateParentsWithoutTrashed(){return[]}get templatesByStatus(){return[]}get documentUrl(){return Uu(this.item.id)}get isBreakdancePostType(){return this.item.postType.startsWith(`${I.builderMode}_`)&&!this.item.postType.endsWith(`${I.builderMode}_part`)}get currentTemplate(){return this.templates.find(e=>e.id===this.item.id)}get currentGlobalBlock(){return this.globalBlocks.find(e=>e.id===this.item.id)}get isGlobalBlockTemplate(){return this.item.postType===$i()}async editGlobalBlock(){if(this.loadingData=!0,await this.loadGlobalBlocks(),!this.currentGlobalBlock){Bs.log.message(S(`Couldn't load Global Blocks data`));return}this.modalData={type:`edit`,data:this.currentGlobalBlock},this.loadingData=!1}async editTemplate(){if(this.loadingData=!0,await this.loadTemplates(),!this.currentTemplate){Bs.log.message(S(`Couldn't load templates data`));return}this.modalData={type:`edit`,data:this.currentTemplate},this.loadingData=!1}async loadGlobalBlocks(){return eo()}async loadTemplates(){let e=this.item.postType;dn(await Hre(e),kt(()=>{Bs.log.message(S(`Couldn't load templates data`))},e=>{this.templates=e.templates,this.templatesManagementData=e.templatesManagementData,I.setDynamicFields(e.templatesManagementData.dynamicFields),I.setConditions(e.templatesManagementData.conditions),I.setEnvironment(e.environment)}))}async replaceCurrentBuilderPage(e){e.ctrlKey||e.metaKey||window.Breakdance.initialMode===`builder`&&(e.preventDefault(),this.$emit(`click`),this.item.id!==B.document.documentMeta.id&&Gu(this.item.id))}};K([Z()],HC.prototype,`item`,void 0),K([Z({default:!1})],HC.prototype,`highlight`,void 0),HC=K([J({emits:[`click`,`update`],components:{EditGlobalBlockModal:Vre,EditTemplateModal:Ure,Icon:X}})],HC);var UC=Y(HC),WC={class:`previewable-item-label previewable-item-label-stop-text-from-overflowing`},GC={class:`previewable-item-type`};function KC(e,t,n,r,i,a){let o=M(`EditGlobalBlockModal`),s=M(`EditTemplateModal`);return z(),U(Mu,{link:``,class:R({"document-chooser-item-selected":e.item.id===e.currentDocument.documentMeta.id,"document-chooser-item-highlighted":e.highlight}),href:e.documentUrl,onClick:e.replaceCurrentBuilderPage},{default:L(()=>[C(ju,{class:`previewable-item-list-item`},{default:L(()=>[w(`div`,WC,D(e.title),1),e.isBreakdancePostType?(z(),E(`span`,{key:0,class:`previewable-item-action`,onClick:t[0]||=to(t=>e.isGlobalBlockTemplate?e.editGlobalBlock():e.editTemplate(),[`stop`,`prevent`])},D(e.loadingData?e.__(`Loading...`):e.__(`Edit Settings`)),1)):k(``,!0),w(`div`,GC,D(e.item.typeLabel),1)]),_:1}),e.modalData&&e.isGlobalBlockTemplate?(z(),U(o,{key:0,"model-value":e.modalData.data,"onUpdate:modelValue":t[1]||=t=>e.$emit(`update`,t),mode:e.modalData.type,onClose:t[2]||=t=>e.modalData=!1,globalBlocks:[]},null,8,[`model-value`,`mode`])):e.modalData?(z(),U(s,{key:1,"model-value":e.modalData.data,"onUpdate:modelValue":t[3]||=t=>e.$emit(`update`,t),templatesManagementData:e.templatesManagementData,postType:e.item.postType,templateParents:e.templateParentsWithoutTrashed,templates:e.templatesByStatus,mode:e.modalData.type,onClose:t[4]||=t=>e.modalData=!1,skipWarning:!0,canDisable:!0},null,8,[`model-value`,`templatesManagementData`,`postType`,`templateParents`,`templates`,`mode`])):k(``,!0)]),_:1},8,[`class`,`href`,`onClick`])}var qC=q(UC,[[`render`,KC],[`__scopeId`,`data-v-9c88fb03`]]),JC=class extends W{constructor(...e){super(...e),this.sortItems=[{text:S(`Last edited: Newest first`),value:`modified_desc`},{text:S(`Last edited: Oldest first`),value:`modified_asc`},{text:S(`Created: Newest first`),value:`created_desc`},{text:S(`Created: Oldest first`),value:`created_asc`}],this.postTypeOptions={populate:{path:``,text:``,value:``,fetchDataAction:`breakdance_get_editable_post_types`,fetchContextPath:``,refetchPaths:[]}}}};K([Z()],JC.prototype,`sortBy`,void 0),K([Z()],JC.prototype,`postType`,void 0),JC=K([J({emits:[`update:post-type`,`update:sort-by`],components:{DropdownInput:wd}})],JC);var YC=Y(JC);function XC(e,t,n,r,i,a){let o=M(`DropdownInput`);return z(),E(`div`,{class:R([`document-chooser-filters`,{"document-chooser-filters--with-sort":e.sortBy}])},[C(o,{"dropdown-options":e.postTypeOptions,placeholder:e.__(`Post Type`),"model-value":e.postType||void 0,"onUpdate:modelValue":t[0]||=t=>e.$emit(`update:post-type`,t),clearable:!0},null,8,[`dropdown-options`,`placeholder`,`model-value`]),C(o,{items:e.sortItems,placeholder:e.__(`Sort By`),"model-value":e.sortBy||void 0,"onUpdate:modelValue":t[1]||=t=>e.$emit(`update:sort-by`,t),clearable:!0},null,8,[`items`,`placeholder`,`model-value`])],2)}var ZC=q(YC,[[`render`,XC]]),QC=Qt(),$C=Ws(),ew=class extends W{constructor(...e){super(...e),this.search=``,this.open=!1,this.createOpen=!1,this.isLoading=!1,this.postToShowFirstId=null,this.sortBy=void 0,this.postType=void 0,this.debouncedSearchContentInWp=jr(this.searchContentInWp,200)}onOpenChange(){this.postToShowFirstId=null}onSortChange(){this.searchContentInWp()}onPostTypeChange(){this.searchContentInWp()}onDocumentIdChange(){this.search=``}get documentTitle(){return this.currentDocument.documentMeta.titleLabel?fn(this.currentDocument.documentMeta.titleLabel):`ID: ${this.currentDocument.documentMeta.id}`}get unsavedChangesPresent(){return F.unsavedChangesPresent}get availableDocuments(){let e=[...I.availableDocuments];return this.postToShowFirstId===null?e:e.sort((e,t)=>e.id===this.postToShowFirstId?-1:t.id===this.postToShowFirstId?1:0)}get builderMode(){return I.builderMode}get currentDocument(){return B.document}handleSearch(e){this.postToShowFirstId=null,this.search=e,this.debouncedSearchContentInWp()}async searchContentInWp(){this.isLoading=!0,(0,QC.pipe)(await IC({search:this.search||``,postType:this.postType,sortBy:this.sortBy}),(0,$C.fold)(e=>{this.isLoading=!1,e.forEach(e=>Bs.log.message(e.msg))},e=>{I.setAvailableDocuments(e),this.isLoading=!1})),this.scrollToTop()}afterCreation(e){this.search=``,this.postToShowFirstId=e.postId,this.postType&&this.postType!==e.postType?this.postType=void 0:this.searchContentInWp()}scrollToTop(){let e=this.$refs.scrollable;this.$nextTick(()=>{e.$el.scrollTop=0})}updateTitleInPlace(e){let t=this.availableDocuments.findIndex(t=>t.id===e.id),n=this.availableDocuments[t];if(t===-1)return;let r=T(this.availableDocuments);r[t]={...n,titleLabel:e.title||e.label||``},I.setAvailableDocuments(r)}};K([G(`open`)],ew.prototype,`onOpenChange`,null),K([G(`sortBy`)],ew.prototype,`onSortChange`,null),K([G(`postType`)],ew.prototype,`onPostTypeChange`,null),K([G(`currentDocument.documentMeta.id`)],ew.prototype,`onDocumentIdChange`,null),ew=K([J({components:{DocumentChooserFilters:ZC,NiceButton:uf,DropdownInput:wd,TextInput:tf,Dialog:of,Icon:X,Dropdown:nf,SearchInput:gd,TopBarSection:Qx,DocumentChooserItem:qC,DocumentChooserCreateDialog:VC,IconButton:rd}})],ew);var tw=Y(ew),nw={class:`document-chooser-text`},rw={key:0},iw={key:1,class:`document-chooser-type-label`},aw={key:2,class:`ellipsis-text`},ow={key:3,class:`ellipsis-text`},sw={key:0,class:`document-chooser-dropdown-icon`},cw={class:`document-chooser-search`},lw={class:`document-chooser-search__input`},uw={key:0,class:`previewable-items-zero-case-search`};function dw(e,t,n,r,i,a){let o=M(`Icon`),s=M(`IconButton`),c=M(`DocumentChooserFilters`),l=M(`DocumentChooserItem`),u=M(`Dropdown`),d=M(`DocumentChooserCreateDialog`),f=M(`TopBarSection`);return z(),U(f,{borderLeft:!0,borderRight:!0,class:`document-chooser-section`},{default:L(()=>[C(u,{"offset-x":0,"offset-y":e.builderMode===`oxygen`?16:0,"close-on-content-click":!1,"close-on-click":!e.createOpen,width:450,height:350,modelValue:e.open,"onUpdate:modelValue":t[5]||=t=>e.open=t},{activator:L(({props:t})=>[w(`div`,O({class:`document-chooser`},t),[w(`div`,nw,[e.builderMode===`breakdance`?(z(),E(`h2`,rw,D(e.sprintf(e._xdoc(`Editing %s`,`Document`,`%s: Document type label`),e.currentDocument.documentMeta.typeLabel)),1)):k(``,!0),e.builderMode===`oxygen`?(z(),E(`span`,iw,[w(`span`,null,D(e.currentDocument.documentMeta.typeLabel)+`:`,1)])):k(``,!0),e.currentDocument.documentMeta.id===-1?(z(),E(`span`,ow,D(e.__(`choose a document to edit`)),1)):(z(),E(`span`,aw,D(e.documentTitle),1))]),e.builderMode===`breakdance`?(z(),E(`div`,sw,[C(o,{size:`11`,icon:`CaretDownIcon`})])):k(``,!0)],16)]),default:L(()=>[C(td,{loading:e.isLoading,class:`vscroll-scroll vscroll-wrap`},{default:L(()=>[w(`div`,cw,[w(`div`,lw,[C(xd,{class:`preview-content-chooser-dialog-search-box breakdance-dense-input`,"model-value":e.search,"onUpdate:modelValue":e.handleSearch,label:e.__(`Search...`),clearable:``,"single-line":``,"bg-color":`var(--gray150)`,autofocus:e.open,onKeydown:so(e.searchContentInWp,[`enter`])},null,8,[`model-value`,`onUpdate:modelValue`,`label`,`autofocus`,`onKeydown`]),e.builderMode===`breakdance`?(z(),U(o,{key:0,class:`document-chooser-search__create`,size:`13`,icon:`PlusIcon`,onClick:t[0]||=t=>e.createOpen=!0})):k(``,!0),e.builderMode===`oxygen`&&e.search?.length===0?(z(),U(o,{key:1,class:`document-chooser-search__search-icon`,size:`12`,icon:`SearchIcon`})):k(``,!0)]),e.builderMode===`oxygen`?(z(),U(s,{key:0,class:`breakdance-toolbar-icon-button document-chooser-search__icon-button`,size:`14`,icon:`PlusIcon`,onClick:t[1]||=t=>e.createOpen=!0})):k(``,!0)]),C(c,{"sort-by":e.sortBy,"onUpdate:sortBy":t[2]||=t=>e.sortBy=t,"post-type":e.postType,"onUpdate:postType":t[3]||=t=>e.postType=t},null,8,[`sort-by`,`post-type`]),C(Nu,{density:`compact`,class:`vscroll-scroll`,ref:`scrollable`},{default:L(()=>[(z(!0),E(H,null,j(e.availableDocuments,n=>(z(),U(l,{item:n,key:n.id,onClick:t[4]||=t=>e.open=!1,highlight:e.postToShowFirstId===n.id,onUpdate:e.updateTitleInPlace},null,8,[`item`,`highlight`,`onUpdate`]))),128)),e.availableDocuments.length===0?(z(),E(`div`,uw,[t[7]||=w(`svg`,{class:`previewable-items-zero-case-icon`,viewBox:`0 0 100 100`,xmlns:`http://www.w3.org/2000/svg`},[w(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`},[w(`path`,{d:`M46.875 71.875a25 25 0 1 0 50 0 25 25 0 1 0-50 0ZM81.25 62.5 62.5 81.25M62.5 62.5l18.75 18.75`,"stroke-width":`6.250005`}),w(`path`,{d:`M34.375 84.375h-25a6.25 6.25 0 0 1-6.25-6.25V9.375a6.25 6.25 0 0 1 6.25-6.25h44.288a6.25 6.25 0 0 1 4.416 1.83L70.046 16.92a6.25 6.25 0 0 1 1.829 4.417v13.037`,"stroke-width":`6.250005`})])],-1),w(`h5`,null,D(e.__(`No items found`)),1),w(`p`,null,D(e.__(`Try adjusting your search to find what you are looking for.`)),1)])):k(``,!0)]),_:1},512)]),_:1},8,[`loading`])]),_:1},8,[`offset-y`,`close-on-click`,`modelValue`]),C(d,{open:e.createOpen,onClose:t[6]||=t=>e.createOpen=!1,onCreated:e.afterCreation},null,8,[`open`,`onCreated`])]),_:1})}var fw=q(tw,[[`render`,dw]]),pw=class extends W{constructor(...e){super(...e),this.isOpen=!1}get builderMode(){return I.builderMode}get nudgeTop(){return this.builderMode===`oxygen`?16:0}openPreferencesModal(){F.setPreferencesModalOpen(!0)}toggleElementStudio(){F.toggleElementStudio()}openGlobalSettingsPanel(){vn(`globalSettings`)}openSelectorsPanel(){F.setActiveSelectorName(null),vn(`selectors`)}openPresetsPanel(){F.setActivePresetId(null),vn(`presets`)}get elementsLoadingState(){return I.elementsLoadingState}get anySettingsPanelsOpen(){return Ht(`selectors`)||Ht(`history`)||Ht(`globalSettings`)||F.panelState.elementStudioOpen||F.panelState.preferencesModalOpen}openHistoryAndRevisionsPanel(){vn(`history`)}get globalSettingsAvailableForEditing(){return I.globalSettingsControlsAndTemplate.controls.length>0}toggleAiSiteCreationExperience(){gt()}get aiSiteCreationExperienceAvailable(){return!!window.Breakdance?.singularity}};pw=K([J({components:{Icon:X,StandardButton:dx,Dropdown:nf,IconButton:rd}})],pw);var mw=Y(pw),hw={class:`d-flex align-center`},gw={class:`d-flex align-center`};function _w(e,t,n,r,i,a){let o=M(`IconButton`),s=M(`Dropdown`),c=br(`permission`);return z(),U(s,{modelValue:e.isOpen,"onUpdate:modelValue":t[0]||=t=>e.isOpen=t,"offset-x":0,"offset-y":e.nudgeTop,placement:`bottom-start`},{activator:L(({props:t})=>[C(o,O(t,{active:e.anySettingsPanelsOpen,testId:`open-settings-menu`,size:e.builderMode===`breakdance`?18:16,icon:e.builderMode===`breakdance`?`EllipsisStrokeIcon`:`EllipsisSolidIcon`,tooltip:e.isOpen?``:e.__(`Settings`),class:`open-settings-toolbar-button`}),null,16,[`active`,`size`,`icon`,`tooltip`])]),default:L(()=>[C(Nu,null,{default:L(()=>[e.globalSettingsAvailableForEditing?(z(),U(Mu,{key:0,density:`compact`,onClick:e.openGlobalSettingsPanel},{default:L(()=>[C(ju,{"data-test-id":`toggle-global-settings`},{default:L(()=>[P(D(e.__(`Global Settings`)),1)]),_:1})]),_:1},8,[`onClick`])):k(``,!0),e.builderMode==`breakdance`?(z(),U(Mu,{key:1,density:`compact`,onClick:e.openSelectorsPanel},{default:L(()=>[C(ju,{"data-test-id":`toggle-site-classes-selectors`},{default:L(()=>[P(D(e.__(`Selectors`)),1)]),_:1})]),_:1},8,[`onClick`])):k(``,!0),e.builderMode==`breakdance`?(z(),U(Mu,{key:2,density:`compact`,onClick:e.openPresetsPanel},{default:L(()=>[C(ju,{"data-test-id":`toggle-site-presets`},{default:L(()=>[P(D(e.__(`Design Presets`)),1)]),_:1})]),_:1},8,[`onClick`])):k(``,!0),C(Mu,{density:`compact`,onClick:e.openHistoryAndRevisionsPanel},{default:L(()=>[C(ju,null,{default:L(()=>[P(D(e.__(`History`)),1)]),_:1})]),_:1},8,[`onClick`]),e.builderMode==`breakdance`?(z(),U(Mu,{key:3,density:`compact`,onClick:e.openPreferencesModal,class:`breakdance-menu-open-preferences`},{default:L(()=>[C(ju,{"data-test-id":`breakdance-menu-open-preferences`},{default:L(()=>[P(D(e.__(`Preferences`)),1)]),_:1})]),_:1},8,[`onClick`])):k(``,!0),hc((z(),U(Mu,{"data-test-id":`toggle-element-studio`,density:`compact`,onClick:e.toggleElementStudio,disabled:e.elementsLoadingState!==`success`},{default:L(()=>[C(ju,{"data-test-id":`breakdance-menu-open-element-studio`},{default:L(()=>[w(`div`,hw,D(e.__(`Element Studio`)),1)]),_:1})]),_:1},8,[`onClick`,`disabled`])),[[c,`full`]]),e.aiSiteCreationExperienceAvailable?hc((z(),U(Mu,{key:4,density:`compact`,onClick:e.toggleAiSiteCreationExperience},{default:L(()=>[C(ju,null,{default:L(()=>[w(`div`,gw,D(e.__(`AI Site Creation Experience`)),1)]),_:1})]),_:1},8,[`onClick`])),[[c,`full`]]):k(``,!0)]),_:1})]),_:1},8,[`modelValue`,`offset-y`])}var vw=q(mw,[[`render`,_w]]),yw=e(Fu(),1),bw=class extends W{constructor(...e){super(...e),this.isOpen=!1}get backToAdmin(){return I.documentSpecificNeededUrls?I.documentSpecificNeededUrls.backToWordPressUrl:``}get backToFrontend(){return So()}get builderMode(){return I.builderMode}get nudgeTop(){return this.builderMode===`oxygen`?16:0}get nudgeLeft(){return this.builderMode===`oxygen`?7:0}copyFrontEndLinkToClipboard(){this.backToFrontend&&(0,yw.default)(this.backToFrontend)}};bw=K([J({components:{Icon:X,Dropdown:nf,IconButton:rd,TopBarSection:Qx}})],bw);var xw=Y(bw),Sw={class:`breakdance-menu-icon-wrapper`},Cw={class:`breakdance-menu-icon-wrapper`},ww={class:`breakdance-menu-icon-wrapper`};function Tw(e,t,n,r,i,a){let o=M(`IconButton`),s=M(`Icon`),c=M(`Dropdown`),l=M(`TopBarSection`);return e.backToAdmin||e.backToFrontend?(z(),U(l,{key:0,borderLeft:!0},{default:L(()=>[C(c,{modelValue:e.isOpen,"onUpdate:modelValue":t[0]||=t=>e.isOpen=t,"offset-x":e.nudgeLeft,"offset-y":e.nudgeTop},{activator:L(({props:t})=>[C(o,O(t,{icon:e.builderMode===`oxygen`?`XmarkSolidIcon`:`XmarkIcon`,size:e.builderMode===`oxygen`?14:18,tooltip:e.isOpen?``:e.__(`Exit`)}),null,16,[`icon`,`size`,`tooltip`])]),default:L(()=>[C(Nu,{class:`breakdance-exit-menu-list`},{default:L(()=>[e.backToFrontend?(z(),U(Mu,{key:0,density:`compact`,href:e.backToFrontend},{default:L(()=>[w(`div`,Sw,[C(s,{icon:`BrowserIcon`})]),C(ju,{class:`ml-4`},{default:L(()=>[P(D(e.__(`Exit to Frontend`)),1)]),_:1})]),_:1},8,[`href`])):k(``,!0),C(Mu,{density:`compact`,href:e.backToAdmin},{default:L(()=>[w(`div`,Cw,[C(s,{icon:`WordPressIcon`})]),C(ju,{class:`ml-4`},{default:L(()=>[P(D(e.__(`Exit to WordPress`)),1)]),_:1})]),_:1},8,[`href`]),C(Mu,{density:`compact`,onClick:e.copyFrontEndLinkToClipboard},{default:L(()=>[w(`div`,ww,[C(s,{icon:`CopyIcon`})]),C(ju,{class:`ml-4`},{default:L(()=>[P(D(e.__(`Copy URL`)),1)]),_:1})]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`modelValue`,`offset-x`,`offset-y`])]),_:1})):k(``,!0)}var Ew=q(xw,[[`render`,Tw]]),Dw=class extends W{mounted(){F.hasFullAccess&&jl.register(Kr.CMD_A,this.toggleAdd)}toggleAdd(){Zr(`add`)}get isAddSectionOpen(){return Ht(`add`)}beforeUnmount(){jl.unbind(Kr.CMD_A)}get builderMode(){return I.builderMode}};Dw=K([J({components:{StandardButton:dx,TopBarSection:Qx,IconButton:rd}})],Dw);var Ow=Y(Dw);function kw(e,t,n,r,i,a){let o=M(`StandardButton`),s=M(`IconButton`),c=M(`TopBarSection`);return z(),U(c,{borderRight:!0},{default:L(()=>[e.builderMode===`breakdance`?(z(),U(o,{key:0,onClick:e.toggleAdd,active:e.isAddSectionOpen,minWidth:`80`,testId:`open-elements-toolbar-button`,class:`open-elements-toolbar-button`},{default:L(()=>[P(D(e.__(`Add`)),1)]),_:1},8,[`onClick`,`active`])):k(``,!0),e.builderMode===`oxygen`?(z(),U(s,{key:1,onClick:e.toggleAdd,active:e.isAddSectionOpen,icon:`PlusIconSolid`,size:`14`,tooltip:e.__(`Add Element`)},null,8,[`onClick`,`active`,`tooltip`])):k(``,!0)]),_:1})}var Aw=q(Ow,[[`render`,kw]]),jw=class extends W{};jw=K([J],jw);var Mw=Y(jw);function Nw(e,t,n,r,i,a){return z(),U(ES,{class:`pa-0 breakdance-topbar d-flex flex-row`,color:`var(--white)`,height:`auto`,flat:``},{default:L(()=>[Di(e.$slots,`default`)]),_:3})}var Pw=q(Mw,[[`render`,Nw]]),Fw=class extends W{constructor(...e){super(...e),this.dialogOpen=!1}toggleDialog(){this.dialogOpen=!this.dialogOpen,ds(`Upgrade To Pro Modal Toggled`,{open:this.dialogOpen})}get builderMode(){return I.builderMode}};Fw=K([J({components:{Icon:X,NiceButton:uf}})],Fw);var Iw=Y(Fw),Lw={class:`shining-text`},Rw={class:`upgrade-to-pro-modal-content`},zw=[`src`];function Bw(e,t,n,r,i,a){let o=M(`NiceButton`);return z(),E(`div`,null,[e.builderMode===`breakdance`?(z(),U(o,{key:0,"right-icon":`StarsIcon`,size:`18`,color:`flat`,onClick:e.toggleDialog},{default:L(()=>[P(D(e.__(`Try Breakdance Pro`)),1)]),_:1},8,[`onClick`])):k(``,!0),e.builderMode===`oxygen`?(z(),E(`button`,{key:1,onClick:t[0]||=(...t)=>e.toggleDialog&&e.toggleDialog(...t),class:`button-upgrade-oxygen-pro`},[w(`span`,Lw,D(e.__(`Try Oxygen Pro`)),1)])):k(``,!0),C($u,{modelValue:e.dialogOpen,"onUpdate:modelValue":t[1]||=t=>e.dialogOpen=t,"max-width":`1120`},{default:L(()=>[w(`div`,Rw,[w(`iframe`,{src:e.$bdox(`website_link_upgrade_to_pro_iframe`)},null,8,zw)])]),_:1},8,[`modelValue`])])}var Vw=q(Iw,[[`render`,Bw]]),Hw=class extends W{constructor(...e){super(...e),this.isOpen=!1}get backToDashboard(){return I.neededData?.adminUrl}get settingsUrl(){return I.neededData?.breakdanceSettingsUrl}openDesignLibrary(){F.setDesignLibraryModalState(!0)}openPreferencesModal(){F.setPreferencesModalOpen(!0)}};Hw=K([J({components:{Icon:X,Dropdown:nf,IconButton:rd}})],Hw);var Uw=Y(Hw),Ww={class:`breakdance-menu-icon-wrapper`},Gw={class:`breakdance-menu-icon-wrapper`},Kw={class:`breakdance-menu-icon-wrapper`},qw={class:`breakdance-menu-icon-wrapper`},Jw={class:`breakdance-menu-icon-wrapper`};function Yw(e,t,n,r,i,a){let o=M(`IconButton`),s=M(`Icon`),c=M(`Dropdown`);return z(),U(c,{modelValue:e.isOpen,"onUpdate:modelValue":t[0]||=t=>e.isOpen=t,"offset-x":0,"offset-y":16,"max-width":300},{activator:L(({props:t})=>[C(o,O(t,{class:`open-main-dropdown-toolbar-button`,icon:`OxygenLogoIcon`,size:`14`,tooltip:e.isOpen?``:e.__(`Menu`)}),null,16,[`tooltip`])]),default:L(()=>[C(Nu,{class:`breakdance-oxygen-menu-dropdown`},{default:L(()=>[C(Mu,{density:`compact`,href:e.backToDashboard},{default:L(()=>[w(`div`,Ww,[C(s,{icon:`WordPressIcon`,size:`12`})]),C(ju,{class:`ml-2`},{default:L(()=>[P(D(e.__(`Dashboard`)),1)]),_:1})]),_:1},8,[`href`]),C(Mu,{density:`compact`,onClick:e.openPreferencesModal},{default:L(()=>[w(`div`,Gw,[C(s,{icon:`SlidersSolidIcon`,size:`12`})]),C(ju,{class:`ml-2`},{default:L(()=>[P(D(e.__(`Preferences`)),1)]),_:1})]),_:1},8,[`onClick`]),C(Mu,{density:`compact`,href:e.settingsUrl},{default:L(()=>[w(`div`,Kw,[C(s,{icon:`OxygenLogoIcon`,size:`12`})]),C(ju,{class:`ml-2`},{default:L(()=>[P(D(e.__(`Plugin Settings`)),1)]),_:1})]),_:1},8,[`href`]),C(id),C(Mu,{density:`compact`,href:`https://oxygenbuilder.com/learn`,target:`_blank`},{default:L(()=>[w(`div`,qw,[C(s,{icon:`VideoSolidIcon`,size:`12`})]),C(ju,{class:`ml-2`},{default:L(()=>[P(D(e.__(`Tutorials`)),1)]),_:1})]),_:1}),C(Mu,{density:`compact`,href:`https://oxygenbuilder.com/documentation`,target:`_blank`},{default:L(()=>[w(`div`,Jw,[C(s,{icon:`AlignLeftIcon`,size:`12`})]),C(ju,{class:`ml-2`},{default:L(()=>[P(D(e.__(`Documentation`)),1)]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`])}var Xw=q(Uw,[[`render`,Yw]]),Zw=class extends W{};K([Z({default:null})],Zw.prototype,`unitTypes`,void 0),Zw=K([J({emits:[`update:model-value`]})],Zw);var Qw=Y(Zw);function $w(e,t,n,r,i,a){return z(),U(Nu,{density:`compact`},{default:L(()=>[(z(!0),E(H,null,j(e.unitTypes,(t,n)=>(z(),U(Mu,{key:n,onClick:n=>e.$emit(`update:model-value`,t),density:`compact`},{default:L(()=>[C(ju,null,{default:L(()=>[P(D(t),1)]),_:2},1024)]),_:2},1032,[`onClick`]))),128))]),_:1})}var eT=q(Qw,[[`render`,$w]]),tT=class extends W{constructor(...e){super(...e),this.isDialogOpen=!1,this.keepMaskOpenOnClose=!1}get placement(){return this.panelContext?.position===`right`?`bottom-start`:`bottom-end`}get width(){return I.builderMode===`oxygen`?275:280}onDialogOpenChange(){this.disabled||(this.isDialogOpen?(this.keepMaskOpenOnClose=F.panelState.oxyPanelIsMasked,F.setPanelState({...F.panelState,oxyPanelIsMasked:!0}),this.autofocus()):this.closeMask())}async autofocus(){await zl();let e=this.$refs.input;e.focus();let t=e.value;if(t.endsWith(`)`)){let n=t.length-1;e.setSelectionRange(n,n)}}closeMask(){if(this.keepMaskOpenOnClose){this.keepMaskOpenOnClose=!1;return}F.setPanelState({...F.panelState,oxyPanelIsMasked:!1})}};K([Z()],tT.prototype,`modelValue`,void 0),K([Z()],tT.prototype,`disabled`,void 0),K([Yu({from:`panelContext`,default:{}})],tT.prototype,`panelContext`,void 0),K([G(`isDialogOpen`)],tT.prototype,`onDialogOpenChange`,null),tT=K([J({emits:[`update:model-value`],components:{Dropdown:nf}})],tT);var nT=Y(tT),rT=[`value`];function iT(e,t,n,r,i,a){let o=M(`Dropdown`);return z(),U(o,{title:`Custom`,disabled:e.disabled,"offset-x":0,"offset-y":5,"max-width":e.width,"min-width":e.width,"close-on-content-click":!1,placement:e.placement,modelValue:e.isDialogOpen,"onUpdate:modelValue":t[1]||=t=>e.isDialogOpen=t},{activator:L(({props:t})=>[Di(e.$slots,`activator`,tn(gr({props:t})))]),default:L(()=>[C(td,{class:`vscroll-scroll vscroll-wrap custom-unit-dialog`},{default:L(()=>[w(`div`,null,[w(`textarea`,{value:e.modelValue,onInput:t[0]||=t=>e.$emit(`update:model-value`,t.target.value),placeholder:`E.g. calc(100svh - 50px)`,ref:`input`,class:`custom-unit-dialog__input breakdance-simple-input--text breakdance-white-gray-outlined-input`},null,40,rT)])]),_:1})]),_:3},8,[`disabled`,`max-width`,`min-width`,`placement`,`modelValue`])}var aT=q(nT,[[`render`,iT]]),oT=class extends W{constructor(...e){super(...e),this.rawValue=``,this.dirty=!1,this.unitDropdownOpen=!1,this.easyEvents=new pd,this.showDragHint=!1,this.startDragX=null,this.initialDragValue=0,this.throttleUpdateNumber=Al(this.updateNumber,100)}get unitTypes(){return this.options?.types?.length?this.options?.types:hl}get defaultType(){let e=F.settings.defaultUnitType||`px`,t=this.unitTypes,n;return n=t?.length?t.includes(e)?e:t[0]:e,this.options?.defaultType||n}get shouldShowRangeSlider(){return typeof this.rangeOptions?.min==`number`&&typeof this.rangeOptions?.max==`number`&&this.rangeOptions?.disableSlider!==!0?!this.modelValue||this.modelValue?.unit===this.defaultType:!1}get step(){return this.rangeOptions?.step||1}get internalNumber(){return this.modelValue?.number}get internalUnit(){return this.modelValue?.unit?this.modelValue.unit:this.placeholder?.unit?this.placeholder.unit:this.defaultType}get isCustomCSS(){return this.internalUnit===`custom`}get canIncrement(){return![`custom`,`auto`].includes(this.internalUnit)}get disableCustomUnitDropdown(){return this.internalUnit!==`custom`||F.settings.disableCustomUnitDropdown?!0:this.options?.disableCustomUnitDropdown||!1}updateNumber(e){this.update(e,this.internalUnit)}updateUnit(e){e===`auto`?this.update(null,e):this.update(this.internalNumber,e),this.unitDropdownOpen=!1}update(e,t){if((!t||t===this.defaultType)&&!e&&e!==0){this.$emit(`update:model-value`,null);return}let n=Zi(e,t);this.$emit(`update:model-value`,{number:e,unit:t,style:n})}adjustNumber(e,t){if(!this.canIncrement)return;this.dirty=!1;let n=Number(this.internalNumber),r=isNaN(n)?0:n,i=1;e.metaKey?i=100:e.shiftKey?i=10:e.altKey&&(i=.1);let a=t?i:-i;this.updateNumber(Number((r+a).toFixed(1)))}increment(e){this.adjustNumber(e,!0)}decrement(e){this.adjustNumber(e,!1)}onValueChange(){if(this.dirty){this.dirty=!1;return}this.rawValue=sp(this.modelValue?.number)?`${this.modelValue?.number}`:this.modelValue?.number}updateRawValue(e){if(this.rawValue=e,this.internalUnit===`custom`){this.dirty=!0,this.updateNumber(this.rawValue);return}let[t,n,r]=Fee(this.rawValue,this.unitTypes),i=n||this.internalUnit;r?(this.rawValue=`${r}`,this.dirty=!0):this.dirty=!1,this.update(t,i)}listenForAlt(e){this.showDragHint=e.altKey&&this.internalUnit!==`custom`,document.addEventListener(`keydown`,this.maybeShowDragHint),document.addEventListener(`keyup`,this.hideDragHint)}stopListeningForAlt(){this.startDragX===null&&(document.removeEventListener(`keydown`,this.maybeShowDragHint),document.removeEventListener(`keyup`,this.hideDragHint))}hideDragHint(e){this.showDragHint=e.altKey}maybeShowDragHint(e){e.altKey&&e.key!==`ArrowUp`&&this.internalUnit!==`custom`&&(this.showDragHint=!0)}onMaybeDrag(e){!e.altKey||this.internalUnit===`custom`||(document.body.classList.add(`is-dragging-unit-input`),this.startDragX=e.clientX,this.rawValue?this.initialDragValue=typeof this.rawValue==`number`?this.rawValue:parseFloat(this.rawValue||`0`):this.initialDragValue=0,this.easyEvents.on(`mousemove`,this.onDrag),this.easyEvents.on(`mouseup`,this.onStopDrag.bind(this)))}onDrag(e){let t=this.rangeOptions?.min,n=this.rangeOptions?.max;if(this.startDragX===null)return;let r=e.clientX-this.startDragX,i=this.step,a=Math.min(Math.max(this.initialDragValue+Math.round(r/5)*i,t??-1/0),n??1/0);this.rawValue=`${a}`,this.throttleUpdateNumber(a),Ku(()=>{this.$refs.input?.blur()})}onStopDrag(){this.startDragX=null,this.initialDragValue=0,this.showDragHint=!1,document.body.classList.remove(`is-dragging-unit-input`),this.stopListeningForAlt(),this.easyEvents.off(`mousemove`,this.onDrag),this.easyEvents.off(`mouseup`,this.onStopDrag)}};K([Z({default:null})],oT.prototype,`modelValue`,void 0),K([Z()],oT.prototype,`placeholder`,void 0),K([Z({default:null})],oT.prototype,`options`,void 0),K([Z({default:null})],oT.prototype,`rangeOptions`,void 0),K([Z({default:!1})],oT.prototype,`disabled`,void 0),K([Z({default:!1})],oT.prototype,`expanded`,void 0),K([G(`modelValue.number`,{immediate:!0,deep:!0})],oT.prototype,`onValueChange`,null),oT=K([J({emits:[`update:model-value`],components:{Slider:Cd,Dropdown:nf,NumberInput:Fd,UnitDropdown:eT,UnitCustomInputDropdown:aT}})],oT);var sT=Y(oT),cT=[`value`,`placeholder`,`disabled`],lT={key:1,class:`breakdance-unit-input-unit`};function uT(e,t,n,r,i,a){let o=M(`Slider`),s=M(`UnitCustomInputDropdown`),c=M(`UnitDropdown`),l=M(`Dropdown`);return z(),E(`div`,{class:R([`breakdance-unit-input`,{"breakdance-unit-input--expanded":e.isCustomCSS||e.expanded,"breakdance-unit-input--unit-expanded":e.internalUnit===`auto`,"is-disabled":e.disabled,"is-dragging-unit-input":e.showDragHint}]),onKeyup:t[7]||=t=>e.showDragHint=!1},[e.shouldShowRangeSlider?(z(),U(o,O({key:0,"model-value":e.rawValue,"onUpdate:modelValue":e.updateRawValue},e.shouldShowRangeSlider?e.rangeOptions:null,{disabled:e.showDragHint}),null,16,[`model-value`,`onUpdate:modelValue`,`disabled`])):k(``,!0),w(`div`,{onMousedown:t[4]||=(...t)=>e.onMaybeDrag&&e.onMaybeDrag(...t),onMouseenter:t[5]||=(...t)=>e.listenForAlt&&e.listenForAlt(...t),onMouseleave:t[6]||=(...t)=>e.stopListeningForAlt&&e.stopListeningForAlt(...t),class:`breakdance-unit-input-drag-container`},[C(s,{"model-value":e.rawValue,"onUpdate:modelValue":e.updateRawValue,disabled:e.disableCustomUnitDropdown},{activator:L(({props:n})=>[w(`input`,O({ref:`input`,type:`text`,class:`breakdance-white-gray-outlined-input breakdance-simple-input breakdance-simple-input--text`,value:e.rawValue,placeholder:e.placeholder?.number,onInput:t[0]||=t=>e.updateRawValue(t.target.value),disabled:e.internalUnit===`auto`,onKeydown:[t[1]||=so(to((...t)=>e.increment&&e.increment(...t),[`prevent`]),[`up`]),t[2]||=so(to((...t)=>e.decrement&&e.decrement(...t),[`prevent`]),[`down`])]},n),null,16,cT)]),_:1},8,[`model-value`,`onUpdate:modelValue`,`disabled`]),e.unitTypes.length>1?(z(),U(l,{key:0,modelValue:e.unitDropdownOpen,"onUpdate:modelValue":t[3]||=t=>e.unitDropdownOpen=t,"close-on-content-click":!1,placement:`bottom`},{activator:L(({props:t})=>[w(`button`,O({class:`breakdance-unit-input-unit`},t),D(e.internalUnit===`custom`?`-`:e.internalUnit),17)]),default:L(()=>[C(c,{"unit-types":e.unitTypes,"onUpdate:modelValue":e.updateUnit},null,8,[`unit-types`,`onUpdate:modelValue`])]),_:1},8,[`modelValue`])):(z(),E(`div`,lT,D(e.internalUnit===`custom`?`-`:e.internalUnit),1))],32)],34)}var dT=q(sT,[[`render`,uT]]),fT=class extends W{get light(){return this.colorCode?ca(this.colorCode):!0}};K([Z()],fT.prototype,`value`,void 0),K([Z()],fT.prototype,`colorCode`,void 0),K([Z({default:!1})],fT.prototype,`rounded`,void 0),fT=K([J],fT);var pT=Y(fT);function mT(e,t,n,r,i,a){return z(),E(`div`,{class:R([`breakdance-color-swatch`,{"breakdance-color-swatch--rounded":e.rounded,"breakdance-color-swatch--light":e.light}]),"data-test-id":`breakdance-color-swatch`},[w(`button`,O(e.$attrs,{class:`breakdance-color-swatch__color`,style:{background:e.colorCode||`transparent`}}),null,16)],2)}var hT=q(pT,[[`render`,mT]]),gT=class extends W{updateValue(e){this.$emit(`update:model-value`,e)}};K([Z({default:`#2277eeff`})],gT.prototype,`modelValue`,void 0),gT=K([J({emits:[`update:model-value`],components:{Chrome:Wne}})],gT);var _T=Y(gT);function vT(e,t,n,r,i,a){let o=M(`Chrome`);return z(),U(o,{"model-value":e.modelValue||``,"onUpdate:modelValue":e.updateValue},null,8,[`model-value`,`onUpdate:modelValue`])}var yT=q(_T,[[`render`,vT]]);function bT({red:e,green:t,blue:n}){let r,i,a,o=0,s,c=e/255,l=t/255,u=n/255,d=Math.max(c,l,u),f=d-Math.min(c,l,u),p=e=>(d-e)/6/f+1/2;return f===0?(o=0,s=0):(s=f/d,r=p(c),i=p(l),a=p(u),c===d?o=a-i:l===d?o=1/3+r-a:u===d&&(o=2/3+i-r),o<0?o+=1:o>1&&--o),{hue:Math.round(o*360),saturation:Math.round(s*100),value:Math.round(d*100)}}function xT(e){let t=1,n=e/60,r=t*(1-Math.abs(n%2-1)),i=0,a=0,o=0;return t=(t+0)*255|0,r=(r+0)*255|0,n>=0&&n<1&&(i=t|0,a=r|0,o=0),n>=1&&n<2&&(i=r|0,a=t|0,o=0),n>=2&&n<3&&(i=0,a=t|0,o=r|0),n>=3&&n<4&&(i=0,a=r|0,o=t|0),n>=4&&n<5&&(i=r|0,a=0,o=t|0),n>=5&&n<=6&&(i=t|0,a=0,o=r|0),{red:i,green:a,blue:o}}function ST(e){return typeof e==`number`&&!Number.isNaN(e)&&e>=0&&e<=255}function CT(e,t,n,r){if(ST(e)&&ST(t)&&ST(n)){let i={red:e|0,green:t|0,blue:n|0};return r&&ST(r)&&(i.alpha=r|0),i}return null}function wT(e,t,n){n/=100;let r=t/100*n,i=e/60,a=r*(1-Math.abs(i%2-1)),o=n-r;return r=(r+o)*255|0,a=(a+o)*255|0,o=o*255|0,i>=1&&i<2?CT(a,r,o):i>=2&&i<3?CT(o,r,a):i>=3&&i<4?CT(o,a,r):i>=4&&i<5?CT(a,o,r):i>=5&&i<=6?CT(r,o,a):CT(r,a,o)}function TT(e,t,n,r,i){e>r&&(e=r),t>n&&(t=n),e<0&&(e=0),t<0&&(t=0);let a=100-t*100/n|0,o=e*100/r|0;return{...wT(i,o,a),saturation:o,value:a}}function ET(e,t,n,r){let i=360*e/t|0;return i=i<0?0:i>360?360:i,{...wT(i,n,r),hue:i}}function DT(e,t){return e=Number((e/t).toFixed(2)),e>1?1:e<0?0:e}function OT(e,t,n){let r=e.toString(16),i=t.toString(16),a=n.toString(16);return e<16&&(r=`0${r}`),t<16&&(i=`0${i}`),n<16&&(a=`0${a}`),r+i+a}var kT=/(^#{0,1}[0-9A-F]{6}$)|(^#{0,1}[0-9A-F]{3}$)|(^#{0,1}[0-9A-F]{8}$)/i,AT=/([0-9A-F])([0-9A-F])([0-9A-F])/i;function jT(e){if(kT.test(e)){e[0]===`#`&&(e=e.slice(1,e.length)),e.length===3&&(e=e.replace(AT,`$1$1$2$2$3$3`));let t=CT(parseInt(e.substr(0,2),16),parseInt(e.substr(2,2),16),parseInt(e.substr(4,2),16),parseInt(e.substr(6,2),16)/255),n=bT({...t});return{...t,...n}}return null}function MT(e,t){let n=e*100/t;return n<0?0:n>100?100:n}function NT(e,t,n,r){return Math.atan2(e-n,t-r)*(180/Math.PI)*-1+180}function PT(e,t){return!e&&e!==0?t:e}function FT(e){e(),setTimeout(e,250)}function IT(e,t,n){return function(r){let i=e(r);function a(e){i=t(e,i)||i}window.addEventListener(`mousemove`,a),window.addEventListener(`mouseup`,e=>{window.removeEventListener(`mousemove`,a),n?.(e,i)},{once:!0})}}function LT(e,t,n){let r=``,i=e.slice();return i.sort((e,t)=>e.left-t.left),r=t===`linear`?`linear-gradient(${n}deg,`:`radial-gradient(`,i.forEach((e,t)=>{e.globalColor?r+=`var(--${e.globalColor}) ${e.left}%`:r+=`rgba(${e.red}, ${e.green}, ${e.blue}, ${e.alpha}) ${e.left}%`,t!==i.length-1&&(r+=`,`)}),r+=`)`,r}function RT(e,t=1){let n=e%360;n<0&&(n+=360);let r=n%45,i=Math.PI/180*r,a=1/Math.cos(i)*Math.sin(i),o=n%180,s=a,c,l;o<45?(c=s,l=1):o<90?(c=1,l=1-s):o<135?(c=1,l=-s):o<180&&(c=1-s,l=-1),n<180&&(c=-c,l=-l);let u=-c,d=-l;return c=(c+1)/2*t,l=(-l+1)/2*t,u=(u+1)/2*t,d=(-d+1)/2*t,{x1:c,y1:l,x2:u,y2:d}}function zT(e){return T(e).sort((e,t)=>e.left-t.left)}async function BT(e,t,n){let{SVG:r,Color:i}=await tt(async()=>{let{SVG:e,Color:t}=await import(`./main-WWVhf7LM.js`);return{SVG:e,Color:t}},__vite__mapDeps([7,5]),import.meta.url),a=zT(e),o=r(),s=Ls(),c=o.gradient(t,e=>{a.forEach(t=>{let n=new i(t.red,t.green,t.blue),r=s.find(e=>e.cssVariableName===t.globalColor);e.stop({offset:t.left/100,color:r?`var(--${r.cssVariableName})`:n.toString(),opacity:t.alpha})})});if(t===`linear`){let{x1:e,y1:t,x2:r,y2:i}=RT(n);c.from(e,t).to(r,i)}return c.id(`%%GRADIENTID%%`).svg()}var VT=class extends W{};K([Z({default:``})],VT.prototype,`modelValue`,void 0),K([Z({default:``})],VT.prototype,`label`,void 0),K([Z({default:`text`})],VT.prototype,`type`,void 0),K([Z({default:``})],VT.prototype,`classes`,void 0),K([Z({default:()=>{}})],VT.prototype,`onFocus`,void 0),K([Z({default:()=>{}})],VT.prototype,`onBlur`,void 0),VT=K([J({emits:[`update:model-value`]})],VT);var HT=Y(VT),UT={class:`input-container`},WT=[`value`],GT={class:`label`};function KT(e,t,n,r,i,a){return z(),E(`div`,{class:R(`input-field ${e.classes}`)},[w(`div`,UT,[w(`input`,{class:R(`${e.type}-input input`),onFocus:t[0]||=(...t)=>e.onFocus&&e.onFocus(...t),onBlur:t[1]||=(...t)=>e.onBlur&&e.onBlur(...t),value:e.modelValue,onInput:t[2]||=t=>e.$emit(`update:model-value`,t)},null,42,WT)]),w(`div`,GT,D(e.label),1)],2)}var qT=q(HT,[[`render`,KT]]),JT=class extends W{constructor(...e){super(...e),this.inProgress=!1,this.hexValue=OT(this.red,this.green,this.blue)}get hex(){return OT(this.red,this.green,this.blue)}onProgressChange(){this.setHex()}onRedChange(){this.setHex()}onGreenChange(){this.setHex()}onBlueChange(){this.setHex()}setHex(){this.inProgress||(this.hexValue=this.hex)}changeHex(e){let t=e.target,n=jT(t.value);n&&this.updateColor(n)}};K([Z()],JT.prototype,`red`,void 0),K([Z()],JT.prototype,`green`,void 0),K([Z()],JT.prototype,`blue`,void 0),K([Z()],JT.prototype,`alpha`,void 0),K([Z()],JT.prototype,`updateColor`,void 0),K([G(`inProgress`)],JT.prototype,`onProgressChange`,null),K([G(`red`)],JT.prototype,`onRedChange`,null),K([G(`green`)],JT.prototype,`onGreenChange`,null),K([G(`blue`)],JT.prototype,`onBlueChange`,null),JT=K([J({components:{GradientInput:qT}})],JT);var YT=Y(JT);function XT(e,t,n,r,i,a){let o=M(`GradientInput`);return z(),U(o,{"model-value":e.hexValue,label:`HEX`,"onUpdate:modelValue":e.changeHex,onFocus:()=>e.inProgress=!0,onBlur:()=>e.inProgress=!1,inProgress:e.inProgress,classes:`hex`},null,8,[`model-value`,`onUpdate:modelValue`,`onFocus`,`onBlur`,`inProgress`])}var ZT=q(YT,[[`render`,XT]]),QT=class extends W{constructor(...e){super(...e),this.inputValue=this.modelValue,this.inProgress=!1}onValueChange(){this.setValue()}onChangeHandler(e){let t=e.target,n=+t.value;if(Number.isNaN(n)||n<0||n>255){this.inputValue=this.modelValue,this.$forceUpdate();return}this.inputValue=t.value,this.onChange(n)}onBlur(){!this.inputValue&&this.inputValue!==0&&(this.inputValue=this.modelValue),this.inProgress=!1}setValue(){this.modelValue!==+this.inputValue&&this.inputValue!==``&&(this.inputValue=this.modelValue)}};K([Z()],QT.prototype,`modelValue`,void 0),K([Z()],QT.prototype,`type`,void 0),K([Z()],QT.prototype,`label`,void 0),K([Z()],QT.prototype,`onChange`,void 0),K([G(`modelValue`)],QT.prototype,`onValueChange`,null),QT=K([J({components:{GradientInput:qT}})],QT);var $T=Y(QT);function eE(e,t,n,r,i,a){let o=M(`GradientInput`);return z(),U(o,{"model-value":e.inputValue,type:e.type,label:e.label,"onUpdate:modelValue":e.onChangeHandler,onFocus:()=>e.inProgress=!0,onBlur:e.onBlur,inProgress:e.inProgress,classes:`rgb`},null,8,[`model-value`,`type`,`label`,`onUpdate:modelValue`,`onFocus`,`onBlur`,`inProgress`])}var tE=q($T,[[`render`,eE]]),nE=class extends W{changeValue(e,t){if(e===`alpha`){this.updateColor({alpha:t/100});return}let n=bT({red:this.red,green:this.green,blue:this.blue,[e]:t});this.updateColor({...n,[e]:t})}};K([Z()],nE.prototype,`red`,void 0),K([Z()],nE.prototype,`green`,void 0),K([Z()],nE.prototype,`blue`,void 0),K([Z()],nE.prototype,`alpha`,void 0),K([Z()],nE.prototype,`updateColor`,void 0),nE=K([J({components:{RGBItem:tE}})],nE);var rE=Y(nE),iE={class:`rgb-group`};function aE(e,t,n,r,i,a){let o=M(`RGBItem`);return z(),E(`div`,iE,[C(o,{"model-value":e.red,type:`number`,label:`R`,onChange:t=>e.changeValue(`red`,t)},null,8,[`model-value`,`onChange`]),C(o,{"model-value":e.green,type:`number`,label:`G`,onChange:t=>e.changeValue(`green`,t)},null,8,[`model-value`,`onChange`]),C(o,{"model-value":e.blue,type:`number`,label:`B`,onChange:t=>e.changeValue(`blue`,t)},null,8,[`model-value`,`onChange`]),C(o,{"model-value":parseInt(e.alpha*100,10),type:`number`,label:`A`,onChange:t=>e.changeValue(`alpha`,t)},null,8,[`model-value`,`onChange`])])}var oE=q(rE,[[`render`,aE]]),sE={name:`Preview`,props:{red:Number,green:Number,blue:Number,alpha:Number,updateColor:Function,disabled:Boolean},components:{Hex:ZT,RGB:oE}},cE={class:`input-group`};function lE(e,t,n,r,i,a){let o=M(`Hex`),s=M(`RGB`);return z(),E(`div`,{class:R([`color-preview-area`,{disabled:n.disabled}])},[w(`div`,cE,[C(o,{red:n.red,green:n.green,blue:n.blue,updateColor:n.updateColor},null,8,[`red`,`green`,`blue`,`updateColor`]),C(s,{red:n.red,green:n.green,blue:n.blue,alpha:n.alpha,updateColor:n.updateColor},null,8,[`red`,`green`,`blue`,`alpha`,`updateColor`])])],2)}var uE=q(sE,[[`render`,lE]]),dE=class extends W{constructor(...e){super(...e),this.disableClick=!1,this.mouseEvents=()=>{}}get degreesStyle(){return{transform:`rotate(${this.degree}deg)`}}mounted(){this.mouseEvents=IT(this.mouseDownHandler,this.mouseMoveHandler,this.mouseUpHandler)}mouseDownHandler(e){let t=e.target.getBoundingClientRect();return{centerY:t.top+Math.floor(8-window.pageYOffset),centerX:t.left+Math.floor(8-window.pageXOffset)}}mouseMoveHandler(e,{centerX:t,centerY:n}){e.preventDefault(),this.disableClick=!0;let r=NT(e.clientX,e.clientY,t,n);this.changeGradientControl({degree:Math.floor(r)})}mouseUpHandler(e){e.preventDefault();let t=e.target.classList;t.contains(`gradient-degrees`)||t.contains(`icon-rotate`)||(this.disableClick=!1)}onClickGradientDegree(){if(this.disableClick){this.disableClick=!1;return}let e=this.degree+45;e>=360&&(e=0),this.changeGradientControl({degree:e})}onInputChange(e){let t=e.target,n=t.value?t.valueAsNumber:null;this.changeGradientControl({degree:n})}};K([Z()],dE.prototype,`type`,void 0),K([Z()],dE.prototype,`degree`,void 0),K([Z({default:()=>{}})],dE.prototype,`changeGradientControl`,void 0),dE=K([J],dE);var fE=Y(dE),pE={class:`gradient-controls`},mE={key:0,class:`gradient-degrees-options`},hE={class:`gradient-degree-field`},gE=[`value`];function _E(e,t,n,r,i,a){return z(),E(`div`,pE,[e.type===`linear`?(z(),E(`div`,mE,[w(`div`,{class:`gradient-degrees`,onMousedown:t[0]||=(...t)=>e.mouseEvents&&e.mouseEvents(...t),onClick:t[1]||=(...t)=>e.onClickGradientDegree&&e.onClickGradientDegree(...t)},[w(`div`,{class:`gradient-degree-center`,style:A(e.degreesStyle)},[...t[3]||=[w(`div`,{class:`gradient-degree-pointer`},null,-1)]],4)],32),w(`div`,hE,[w(`input`,{class:`gradient-degree-value breakdance-simple-number-input breakdance-white-gray-outlined-input breakdance-hide-number-arrows`,type:`number`,step:`1`,onInput:t[2]||=(...t)=>e.onInputChange&&e.onInputChange(...t),value:e.degree},null,40,gE),t[4]||=w(`span`,{class:`gradient-degree-field-symbol`},`°`,-1)])])):k(``,!0)])}var vE=q(fE,[[`render`,_E]]),yE=class extends W{constructor(...e){super(...e),this.width=0,this.height=0,this.pointerWidth=12,this.mouseEvents=()=>{}}get offsetLeft(){return(this.saturation*this.width/100|0)-this.pointerWidth/2}get offsetTop(){return(this.height-this.value*this.height/100|0)-this.pointerWidth/2}get pointerStyle(){return{backgroundColor:`rgb(${this.red}, ${this.green}, ${this.blue})`,left:`${this.offsetLeft}px`,top:`${this.offsetTop}px`}}get pickerStyle(){let{red:e,green:t,blue:n}=xT(this.hue);return{backgroundColor:`rgb(${e}, ${t}, ${n})`}}mounted(){FT(this.calculateBounds),this.mouseEvents=IT(this.mouseDownHandler,this.mouseMoveHandler,this.mouseUpHandler)}calculateBounds(){let e=this.$refs.pickerAreaRef;e&&(this.width=e.clientWidth,this.height=e.clientHeight)}clamp(e,t,n){return e<=t?t:e>=n?n:e}mouseDownHandler(e){let{x:t,y:n}=this.$refs.pickerAreaRef.getBoundingClientRect(),r=e.pageX,i=e.pageY,a=r-t,o=i-n,s=TT(a,o,this.height,this.width,this.hue);return this.updateColor(s,`onStartChange`),{startX:r,startY:i,positionX:a,positionY:o}}changeObjectPositions(e,{startX:t,startY:n,positionX:r,positionY:i}){let a=e.pageX-t,o=e.pageY-n;r+=a,i+=o;let s=TT(r,i,this.height,this.width,this.hue);return{positions:{positionX:r,positionY:i,startX:e.pageX,startY:e.pageY},color:s}}mouseMoveHandler(e,{startX:t,startY:n,positionX:r,positionY:i}){e.preventDefault();let{positions:a,color:o}=this.changeObjectPositions(e,{startX:t,startY:n,positionX:r,positionY:i});return this.updateColor(o,`onChange`),a}mouseUpHandler(e,{startX:t,startY:n,positionX:r,positionY:i}){e.preventDefault();let{positions:a,color:o}=this.changeObjectPositions(e,{startX:t,startY:n,positionX:r,positionY:i});return this.updateColor(o,`onEndChange`),a}};K([Z()],yE.prototype,`red`,void 0),K([Z()],yE.prototype,`green`,void 0),K([Z()],yE.prototype,`blue`,void 0),K([Z()],yE.prototype,`alpha`,void 0),K([Z()],yE.prototype,`hue`,void 0),K([Z()],yE.prototype,`saturation`,void 0),K([Z()],yE.prototype,`value`,void 0),K([Z()],yE.prototype,`updateColor`,void 0),yE=K([J],yE);var _ie=Y(yE),vie={class:`picking-area-overlay1`},yie={class:`picking-area-overlay2`};function bie(e,t,n,r,i,a){return z(),E(`div`,{class:`picking-area`,ref:`pickerAreaRef`,style:A(e.pickerStyle),onMousedown:t[0]||=(...t)=>e.mouseEvents&&e.mouseEvents(...t)},[w(`div`,vie,[w(`div`,yie,[w(`div`,{class:`picker-pointer`,style:A(e.pointerStyle)},null,4)])])],36)}var xie=q(_ie,[[`render`,bie]]),bE=class extends W{get style(){return{background:LT(this.points,this.gradientType,this.gradientDegree)}}};K([Z()],bE.prototype,`red`,void 0),K([Z()],bE.prototype,`green`,void 0),K([Z()],bE.prototype,`blue`,void 0),K([Z()],bE.prototype,`alpha`,void 0),K([Z()],bE.prototype,`points`,void 0),K([Z()],bE.prototype,`gradientDegree`,void 0),K([Z()],bE.prototype,`gradientType`,void 0),bE=K([J],bE);var Sie=Y(bE),Cie={class:`preview-area`};function wie(e,t,n,r,i,a){return z(),E(`div`,Cie,[w(`div`,{class:`preview-box`,style:A(e.style)},null,4)])}var Tie=q(Sie,[[`render`,wie]]),xE=class extends W{constructor(...e){super(...e),this.width=0,this.mouseEvents=()=>{}}get offsetLeft(){return(this.hue*this.width/360|0)-6}get pointerStyle(){return{left:`${this.offsetLeft}px`}}mounted(){FT(this.calculateBounds),this.mouseEvents=IT(this.mouseDownHandler,this.mouseMoveHandler,this.mouseUpHandler)}calculateBounds(){let e=this.$refs.hueRef;e&&(this.width=e.clientWidth)}mouseDownHandler(e){this.calculateBounds();let t=e.pageX,n=t-e.currentTarget.getBoundingClientRect().x,r=ET(n,this.width,this.saturation,this.value);return this.updateColor(r,`onStartChange`),{startX:t,positionX:n}}changeObjectPositions(e,{startX:t,positionX:n}){let r=e.pageX,i=r-t;n+=i;let a=ET(n>this.width?this.width:n<=0?0:n,this.width,this.saturation,this.value);return{positions:{positionX:n,startX:r},color:a}}mouseMoveHandler(e,{startX:t,positionX:n}){e.preventDefault();let{positions:r,color:i}=this.changeObjectPositions(e,{startX:t,positionX:n});return this.updateColor(i,`onChange`),r}mouseUpHandler(e,{startX:t,positionX:n}){e.preventDefault();let{positions:r,color:i}=this.changeObjectPositions(e,{startX:t,positionX:n});return this.updateColor(i,`onEndChange`),r}};K([Z()],xE.prototype,`hue`,void 0),K([Z()],xE.prototype,`saturation`,void 0),K([Z()],xE.prototype,`value`,void 0),K([Z()],xE.prototype,`updateColor`,void 0),xE=K([J],xE);var Eie=Y(xE),Die={class:`hue-area`,ref:`hueRef`};function Oie(e,t,n,r,i,a){return z(),E(`div`,{class:`hue`,onMousedown:t[0]||=(...t)=>e.mouseEvents&&e.mouseEvents(...t)},[w(`div`,Die,[w(`div`,{class:`picker-pointer`,style:A(e.pointerStyle)},null,4)],512)],32)}var kie=q(Eie,[[`render`,Oie]]),SE=class extends W{constructor(...e){super(...e),this.width=0,this.mouseEvents=()=>{}}mounted(){FT(this.calculateBounds),this.mouseEvents=IT(this.mouseDownHandler,this.mouseMoveHandler,this.mouseUpHandler)}get offsetLeft(){return(this.alpha*this.width|0)-6}get pointerStyle(){return{left:`${this.offsetLeft}px`}}get style(){return{background:`linear-gradient(to right, rgba(0, 0, 0, 0), rgb(${this.red}, ${this.green}, ${this.blue}))`}}calculateBounds(){let e=this.$refs.alphaMaskRef;e&&(this.width=e.clientWidth)}mouseDownHandler(e){let t=e.pageX,n=t-e.currentTarget.getBoundingClientRect().x;return this.updateColor({alpha:DT(n,this.width)},`onStartChange`),{startX:t,positionX:n}}changeObjectPositions(e,{startX:t,positionX:n}){let r=e.pageX,i=r-t;n+=i;let a=DT(n,this.width);return{positions:{positionX:n,startX:r},alpha:a}}mouseMoveHandler(e,{startX:t,positionX:n}){e.preventDefault();let{positions:r,alpha:i}=this.changeObjectPositions(e,{startX:t,positionX:n});return this.updateColor({alpha:i},`onChange`),r}mouseUpHandler(e,{startX:t,positionX:n}){e.preventDefault();let{positions:r,alpha:i}=this.changeObjectPositions(e,{startX:t,positionX:n});return this.updateColor({alpha:i},`onEndChange`),r}};K([Z()],SE.prototype,`red`,void 0),K([Z()],SE.prototype,`green`,void 0),K([Z()],SE.prototype,`blue`,void 0),K([Z()],SE.prototype,`alpha`,void 0),K([Z()],SE.prototype,`updateColor`,void 0),SE=K([J],SE);var Aie=Y(SE),jie={class:`alpha-area has-transparency-layer`},Mie={class:`alpha-mask`,ref:`alphaMaskRef`};function Nie(e,t,n,r,i,a){return z(),E(`div`,{onMousedown:t[0]||=(...t)=>e.mouseEvents&&e.mouseEvents(...t),class:`alpha`},[w(`div`,{class:`gradient`,style:A(e.style)},null,4),w(`div`,jie,[w(`div`,Mie,[w(`div`,{class:`picker-pointer`,style:A(e.pointerStyle)},null,4)],512)])],32)}var Pie=q(Aie,[[`render`,Nie]]),CE=class extends W{constructor(...e){super(...e),this.dragging=!1,this.mouseEvents=()=>{}}mounted(){this.mouseEvents=IT(this.mouseDownHandler,this.mouseMoveHandler,this.mouseUpHandler)}get activeClassName(){return{active:this.activePointIndex===this.index,dragging:this.dragging}}get pointStyle(){return{left:`${this.point.left*(this.width/100)-8}px`}}get percentage(){return`${Math.round(this.point.left)}%`}onClick(e){e.shiftKey&&this.removePoint(this.index)}mouseDownHandler(e){let t=e.pageX,n=e.pageY,r=e.target.parentNode.getBoundingClientRect().x;this.changeActivePointIndex(this.index);let i=t-r;return this.updateGradientLeft(this.point.left,this.index,`onStartChange`),this.$emit(`pointStart`),this.dragging=!0,{startX:t,startY:n,offsetX:i}}changeObjectPositions(e,{startX:t,offsetX:n}){let r=e.pageX,i=r-t;n+=i;let a=MT(n,this.width);return{positions:{offsetX:n,startX:r},left:a}}mouseMoveHandler(e,{startX:t,offsetX:n}){e.preventDefault();let{positions:r,left:i}=this.changeObjectPositions(e,{startX:t,offsetX:n});return this.updateGradientLeft(i,this.index,`onChange`),r}mouseUpHandler(e,{startX:t,offsetX:n}){e.preventDefault();let{positions:r,left:i}=this.changeObjectPositions(e,{startX:t,offsetX:n});return this.updateGradientLeft(i,this.index,`onEndChange`),this.$emit(`pointEnd`),this.dragging=!1,r}};K([Z()],CE.prototype,`point`,void 0),K([Z()],CE.prototype,`activePointIndex`,void 0),K([Z()],CE.prototype,`index`,void 0),K([Z()],CE.prototype,`width`,void 0),K([Z()],CE.prototype,`changeActivePointIndex`,void 0),K([Z()],CE.prototype,`updateGradientLeft`,void 0),K([Z()],CE.prototype,`removePoint`,void 0),CE=K([J({emits:[`pointStart`,`pointEnd`],components:{Icon:X}})],CE);var Fie=Y(CE),Iie={class:`picker-pointer__delete`},Lie={class:`picker-tooltip`};function Rie(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,{class:R([`picker-pointer`,e.activeClassName]),style:A(e.pointStyle),onMousedown:t[0]||=(...t)=>e.mouseEvents&&e.mouseEvents(...t),onDblclick:t[1]||=t=>e.removePoint(e.index),onClick:t[2]||=to((...t)=>e.onClick&&e.onClick(...t),[`stop`])},[w(`span`,{class:R([`child-point`,e.activeClassName])},null,2),w(`span`,Iie,[C(o,{icon:`CloseIcon`,size:`14`})]),w(`span`,Lie,D(e.percentage),1)],38)}var zie=q(Fie,[[`render`,Rie]]),wE=class extends W{constructor(...e){super(...e),this.width=0,this.positions={x:0,y:0},this.dragging=!1}get pointsStyle(){return{background:LT(this.points,`linear`,90)}}mounted(){FT(this.calculateBounds)}calculateBounds(){let e=this.$refs.pointsContainerRef;if(e){let t=e.getBoundingClientRect();this.width=e.clientWidth,this.positions={x:t.x,y:t.y}}}maybeAddPoint(e){if(this.dragging)return;this.calculateBounds();let t=MT(e.pageX-this.positions.x,this.width);this.addPoint(t)}};K([Z()],wE.prototype,`points`,void 0),K([Z()],wE.prototype,`activePointIndex`,void 0),K([Z()],wE.prototype,`changeActivePointIndex`,void 0),K([Z()],wE.prototype,`updateGradientLeft`,void 0),K([Z()],wE.prototype,`addPoint`,void 0),K([Z()],wE.prototype,`removePoint`,void 0),wE=K([J({components:{GradientPoint:zie}})],wE);var Bie=Y(wE),Vie={class:`gradient-slider-container`,ref:`pointsContainerRef`};function Hie(e,t,n,r,i,a){let o=M(`GradientPoint`);return z(),E(`div`,{class:R([`gradient`,{"is-dragging":e.dragging}]),style:A(e.pointsStyle),onMousedown:t[2]||=(...t)=>e.maybeAddPoint&&e.maybeAddPoint(...t)},[w(`div`,Vie,[(z(!0),E(H,null,j(e.points,(n,r)=>(z(),U(o,{key:r,activePointIndex:e.activePointIndex,index:r,point:n,width:e.width,changeActivePointIndex:e.changeActivePointIndex,updateGradientLeft:e.updateGradientLeft,removePoint:e.removePoint,onPointStart:t[0]||=t=>e.dragging=!0,onPointEnd:t[1]||=t=>e.dragging=!1},null,8,[`activePointIndex`,`index`,`point`,`width`,`changeActivePointIndex`,`updateGradientLeft`,`removePoint`]))),128))],512)],38)}var Uie=q(Bie,[[`render`,Hie]]),TE=class extends W{};K([Z()],TE.prototype,`red`,void 0),K([Z()],TE.prototype,`green`,void 0),K([Z()],TE.prototype,`blue`,void 0),K([Z()],TE.prototype,`alpha`,void 0),K([Z()],TE.prototype,`hue`,void 0),K([Z()],TE.prototype,`saturation`,void 0),K([Z()],TE.prototype,`value`,void 0),K([Z()],TE.prototype,`updateColor`,void 0),K([Z()],TE.prototype,`points`,void 0),K([Z()],TE.prototype,`degree`,void 0),K([Z()],TE.prototype,`type`,void 0),K([Z()],TE.prototype,`activePointIndex`,void 0),K([Z()],TE.prototype,`changeGradientControl`,void 0),K([Z()],TE.prototype,`changeActivePointIndex`,void 0),K([Z()],TE.prototype,`updateGradientLeft`,void 0),K([Z()],TE.prototype,`addPoint`,void 0),K([Z()],TE.prototype,`removePoint`,void 0),TE=K([J({components:{Picker:xie,Preview:Tie,Hue:kie,Alpha:Pie,GradientPoints:Uie}})],TE);var Wie=Y(TE),Gie={class:`picker-area`},Kie={class:`picker-controls`},qie={class:`preview`},Jie={class:`color-hue-alpha`};function Yie(e,t,n,r,i,a){let o=M(`Picker`),s=M(`GradientPoints`),c=M(`Preview`),l=M(`Hue`),u=M(`Alpha`);return z(),E(`div`,Gie,[C(o,{red:e.red,green:e.green,blue:e.blue,hue:e.hue,saturation:e.saturation,value:e.value,updateColor:e.updateColor},null,8,[`red`,`green`,`blue`,`hue`,`saturation`,`value`,`updateColor`]),w(`div`,Kie,[C(s,{type:e.type,degree:e.degree,points:e.points,activePointIndex:e.activePointIndex,changeActivePointIndex:e.changeActivePointIndex,updateGradientLeft:e.updateGradientLeft,addPoint:e.addPoint,removePoint:e.removePoint},null,8,[`type`,`degree`,`points`,`activePointIndex`,`changeActivePointIndex`,`updateGradientLeft`,`addPoint`,`removePoint`]),w(`div`,qie,[C(c,{red:e.red,green:e.green,blue:e.blue,alpha:e.alpha,points:e.points,gradientDegree:e.degree,gradientType:e.type},null,8,[`red`,`green`,`blue`,`alpha`,`points`,`gradientDegree`,`gradientType`]),w(`div`,Jie,[C(l,{hue:e.hue,saturation:e.saturation,value:e.value,updateColor:e.updateColor},null,8,[`hue`,`saturation`,`value`,`updateColor`]),C(u,{alpha:e.alpha,red:e.red,green:e.green,blue:e.blue,updateColor:e.updateColor},null,8,[`alpha`,`red`,`green`,`blue`,`updateColor`])])])])])}var Xie=q(Wie,[[`render`,Yie]]),EE=class extends W{constructor(...e){super(...e),this.openDialog=null,this.label=null}saveAsGlobal(){if(!this.label)return;let e={cssVariableName:Va(this.label,this.cssVarSuffix),label:this.label,value:this.unwrappedColor};this.modelValue.type===`solid`?N.addGlobalColor(e):N.addGlobalGradient(e),Ht(`globalSettings`)||Ji(),this.$emit(`update:model-value`,e),this.openDialog=!1}get cssVarSuffix(){return(this.modelValue.type===`solid`?``:`gradient-`)+(N.globalColors.length+1)}get unwrappedColor(){return this.modelValue.type===`solid`?this.modelValue.value:this.modelValue}closeDialog(){this.label=``,this.openDialog=!1}};K([Z()],EE.prototype,`modelValue`,void 0),EE=K([J({emits:[`update:model-value`],components:{Icon:X,VueColorWrapper:yT,Dialog:of,TextInput:tf}})],EE);var Zie=Y(EE);function Qie(e,t,n,r,i,a){let o=M(`Icon`),s=M(`TextInput`),c=M(`Dialog`);return z(),U(c,{modelValue:e.openDialog,"onUpdate:modelValue":t[1]||=t=>e.openDialog=t,persistent:``,onClose:e.closeDialog},{activator:L(({props:e})=>[w(`div`,O({class:`save-global-color-icon-button`},e),[C(o,{icon:`PlusIcon`})],16)]),title:L(()=>[P(`Save Global `+D(e.modelValue.type===`solid`?`Color`:`Gradient`),1)]),text:L(()=>[C(s,{placeholder:`Color name`,required:``,size:`md`,modelValue:e.label,"onUpdate:modelValue":t[0]||=t=>e.label=t,onKeydown:so(e.saveAsGlobal,[`enter`]),autofocus:e.openDialog},null,8,[`modelValue`,`onKeydown`,`autofocus`])]),actions:L(()=>[C(Q,{variant:`text`,onClick:e.closeDialog},{default:L(()=>[...t[2]||=[P(` Close `,-1)]]),_:1},8,[`onClick`]),C(Q,{color:`blue`,onClick:e.saveAsGlobal,disabled:!e.label},{default:L(()=>[...t[3]||=[P(` Save `,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:1},8,[`modelValue`,`onClose`])}var $ie=q(Zie,[[`render`,Qie]]),DE=class extends W{get globalColors(){return this.modelValue.filter(e=>{if(!e.value)return!1;let t=dn(e.value,za.decode,kt(()=>!1,()=>!0));if(this.type===`solid`&&typeof e.value==`string`){let n=!e.value.includes(`var(--`);return!t&&n}return this.type===`radial`||this.type===`linear`?t:!1})}isColorSelected(e){return this.selectedGlobalColor?this.selectedGlobalColor.value===e.value:!1}getColorCode(e){return ns(e)}onColorSelected(e){this.$emit(`update:model-value`,e)}};K([Z({default(){return[]}})],DE.prototype,`modelValue`,void 0),K([Z()],DE.prototype,`selectedColor`,void 0),K([Z()],DE.prototype,`selectedGlobalColor`,void 0),K([Z({default:!0})],DE.prototype,`canSave`,void 0),K([Z()],DE.prototype,`type`,void 0),DE=K([J({emits:[`update:model-value`],components:{ColorSwatch:hT,SaveColorDialog:$ie}})],DE);var eae=Y(DE),tae={class:`global-colors-list`},nae=[`onClick`];function rae(e,t,n,r,i,a){let o=M(`ColorSwatch`),s=M(`SaveColorDialog`);return z(),E(`div`,tae,[(z(!0),E(H,null,j(e.globalColors,(t,n)=>(z(),U(nd,{transition:`none`,location:`bottom`,key:n},{activator:L(({props:n})=>[w(`div`,O({class:{"global-colors-item":!0,"global-colors-item-selected":e.isColorSelected(t)},"data-test-id":`global-colors-item`,onClick:n=>e.onColorSelected(t)},{ref_for:!0},n),[C(o,{"color-code":e.getColorCode(t)},null,8,[`color-code`])],16,nae)]),default:L(()=>[w(`span`,null,D(t.label),1)]),_:2},1024))),128)),e.canSave&&e.selectedColor?(z(),U(s,{key:0,"model-value":e.selectedColor,"onUpdate:modelValue":e.onColorSelected},null,8,[`model-value`,`onUpdate:modelValue`])):k(``,!0)])}var OE=q(eae,[[`render`,rae]]);function iae(e){let t=document.createElement(`canvas`).getContext(`2d`);return t?(t.fillStyle=e,t.fillStyle):e}var kE=class extends W{constructor(...e){super(...e),this.activePointIndex=0,this.colorHue=this.activePointHsv.hue,this.isShiftActive=!1,this.actions={onStartChange:this.onStartChange,onChange:this.onChange,onEndChange:this.onEndChange}}get globalColor(){let e=this.points[this.activePointIndex];if(e?.globalColor)return this.globalColors.find(t=>t.cssVariableName===e.globalColor)}get globalColors(){return Ls()}get activePoint(){let e=this.points[this.activePointIndex];if(e.globalColor&&this.globalColor?.value){let e=this.globalColor.value,t=jT(iae(e));if(t)return{...t,alpha:1}}return e}get colorRed(){return this.activePoint.red}get colorGreen(){return this.activePoint.green}get colorBlue(){return this.activePoint.blue}get colorAlpha(){return this.activePoint.alpha}get activePointHsv(){let{red:e,green:t,blue:n}=this.activePoint;return bT({red:e,green:t,blue:n})}get colorSaturation(){return this.activePointHsv.saturation}get colorValue(){return this.activePointHsv.value}onPointsChange(){this.activePointIndex>=this.points.length&&(this.activePointIndex=this.points.length-1)}mounted(){addEventListener(`keyup`,this.keyUpHandler),addEventListener(`keydown`,this.keyDownHandler)}beforeUnmount(){removeEventListener(`keyup`,this.keyUpHandler),removeEventListener(`keydown`,this.keyDownHandler)}async removePoint(e=this.activePointIndex){if(this.points.length<=2)return;let t=this.points.filter((t,n)=>n!==e);e>0&&(this.activePointIndex=e-1),this.onChange?.({points:t,type:this.type,degree:this.degree,svgValue:await BT(t,this.type,this.degree),value:LT(t,this.type,this.degree)})}keyUpHandler(e){this.isShiftActive=e.shiftKey,(e.key===`Delete`||e.key===`Backspace`)&&this.removePoint(this.activePointIndex)}keyDownHandler(e){this.isShiftActive=e.shiftKey}changeActivePointIndex(e){this.activePointIndex=e,this.colorHue=this.activePointHsv.hue}async changeGradientControl({type:e,degree:t}){let n=PT(e,this.type),r=PT(t,this.degree);this.onChange({points:this.points,type:n,degree:r,svgValue:await BT(this.points,n,r),value:LT(this.points,n,r)})}async updateGlobalColor(e){let t=T(this.points);t[this.activePointIndex]={...t[this.activePointIndex],globalColor:e.cssVariableName},this.onChange({points:t,type:this.type,degree:this.degree,svgValue:await BT(t,this.type,this.degree),value:LT(t,this.type,this.degree)}),this.$nextTick(()=>{this.colorHue=this.activePointHsv.hue})}async updateColor({red:e,green:t,blue:n,alpha:r,hue:i},a=`onChange`){e=PT(e,this.colorRed),t=PT(t,this.colorGreen),n=PT(n,this.colorBlue),r=PT(r,this.colorAlpha),i=PT(i,this.colorHue),this.colorHue=i;let o=T(this.points);o[this.activePointIndex]={...o[this.activePointIndex],red:e,green:t,blue:n,alpha:r,globalColor:void 0};let s=this.actions[a];s?.({points:o,type:this.type,degree:this.degree,svgValue:await BT(o,this.type,this.degree),value:LT(o,this.type,this.degree)})}async updateGradientLeft(e,t,n=`onChange`){let r=T(this.points);r[t].left=e;let i=this.actions[n];i?.({points:r,type:this.type,degree:this.degree,svgValue:await BT(r,this.type,this.degree),value:LT(r,this.type,this.degree)})}async addPoint(e){let t=T(this.points);t.push({...this.points[this.activePointIndex],left:e}),this.onChange?.({points:t,type:this.type,degree:this.degree,svgValue:await BT(t,this.type,this.degree),value:LT(t,this.type,this.degree)}),this.activePointIndex=t.length-1}};K([Z({default:`linear`})],kE.prototype,`type`,void 0),K([Z({default:0})],kE.prototype,`degree`,void 0),K([Z({default:()=>[{left:0,red:0,green:0,blue:0,alpha:1},{left:100,red:255,green:0,blue:0,alpha:1}]})],kE.prototype,`points`,void 0),K([Z()],kE.prototype,`onStartChange`,void 0),K([Z()],kE.prototype,`onChange`,void 0),K([Z()],kE.prototype,`onEndChange`,void 0),K([G(`points`,{deep:!0})],kE.prototype,`onPointsChange`,null),kE=K([J({components:{Area:Xie,Preview:uE,GradientControls:vE,GlobalColorsList:OE}})],kE);var aae=Y(kE);function oae(e,t,n,r,i,a){let o=M(`Area`),s=M(`Preview`),c=M(`GradientControls`),l=M(`GlobalColorsList`);return z(),E(`div`,{class:R([`gradient-picker`,{"is-shift-active":e.isShiftActive}])},[C(o,{red:e.colorRed,green:e.colorGreen,blue:e.colorBlue,alpha:e.colorAlpha,hue:e.colorHue,saturation:e.colorSaturation,value:e.colorValue,updateColor:e.updateColor,type:e.type,degree:e.degree,points:e.points,activePointIndex:e.activePointIndex,changeGradientControl:e.changeGradientControl,changeActivePointIndex:e.changeActivePointIndex,updateGradientLeft:e.updateGradientLeft,addPoint:e.addPoint,removePoint:e.removePoint},null,8,[`red`,`green`,`blue`,`alpha`,`hue`,`saturation`,`value`,`updateColor`,`type`,`degree`,`points`,`activePointIndex`,`changeGradientControl`,`changeActivePointIndex`,`updateGradientLeft`,`addPoint`,`removePoint`]),C(s,{red:e.colorRed,green:e.colorGreen,blue:e.colorBlue,alpha:e.colorAlpha,updateColor:e.updateColor,disabled:!!e.globalColor},null,8,[`red`,`green`,`blue`,`alpha`,`updateColor`,`disabled`]),C(c,{type:e.type,degree:e.degree,changeGradientControl:e.changeGradientControl},null,8,[`type`,`degree`,`changeGradientControl`]),C(l,{type:`solid`,"model-value":e.globalColors,"selected-global-color":e.globalColor,"onUpdate:modelValue":e.updateGlobalColor},null,8,[`model-value`,`selected-global-color`,`onUpdate:modelValue`])],2)}var sae=q(aae,[[`render`,oae]]),AE=class extends W{onGradientSelected(e){this.$emit(`update:model-value`,e)}};K([Z({default:()=>Lo})],AE.prototype,`modelValue`,void 0),K([Z({default:`linear`})],AE.prototype,`type`,void 0),AE=K([J({emits:[`update:model-value`],components:{Gradient:sae}})],AE);var cae=Y(AE),lae={class:`color-gradient-picker`};function uae(e,t,n,r,i,a){let o=M(`Gradient`);return z(),E(`div`,lae,[C(o,{points:e.modelValue.points,type:e.type,degree:e.modelValue.degree,onChange:e.onGradientSelected,onStartChange:e.onGradientSelected,onEndChange:e.onGradientSelected},null,8,[`points`,`type`,`degree`,`onChange`,`onStartChange`,`onEndChange`])])}var dae=q(cae,[[`render`,uae]]),jE=class extends W{get supported(){return`EyeDropper`in window}async addColor(){try{let{sRGBHex:e}=await new EyeDropper().open();this.emit(e)}catch{}}emit(e){this.$emit(`update:model-value`,e)}};jE=K([J({emits:[`update:model-value`],components:{Icon:X}})],jE);var fae=Y(jE);function pae(e,t,n,r,i,a){let o=M(`Icon`);return e.supported?(z(),U(o,{key:0,icon:`ColorPickerIcon`,class:`eye-dropper`,onClick:e.addColor},null,8,[`onClick`])):k(``,!0)}var mae=q(fae,[[`render`,pae]]),hae=`#642EDAFF`,ME=class extends W{constructor(...e){super(...e),this.componentKey=0,this.type=this.defaultType}get canvas(){return window.Breakdance?.canvas?.document}get internalColor(){return this.globalColor?.value||this.modelValue.value||hae}get internalGradient(){return this.globalColor?.value||this.modelValue}get defaultType(){return this.globalColor&&Kte(this.globalColor)?this.globalColor.value.type:this.modelValue?this.modelValue.type:this.types[0].value}get types(){let e=[{text:S(`Solid`),value:`solid`}],t=[{text:S(`Linear`),value:`linear`},{text:S(`Radial`),value:`radial`}];return this.availableType===`gradientOnly`?t:this.availableType===`solidOnly`?e:[...e,...t]}maybeSetGradientWhenDialogOpens(){let e=this.modelValue&&this.modelValue?.value!==``;!this.isOpen||e||this.setDefaultGradient()}resetTypeWhenValueChanges(){this.type=this.defaultType}resetValueWhenTypeChanges(){this.type===`solid`?this.updateValue(null):this.setDefaultGradient()}setDefaultGradient(){this.type===`linear`?this.updateValue(Lo):this.type===`radial`&&this.updateValue(Lc)}onGlobalColorSelected(e){this.updateValue(`var(--${e.cssVariableName})`)}onSolidSelected(e){this.updateValue(e)}onGradientSelected(e){this.updateValue(e)}updateValue(e){this.$emit(`update:model-value`,e)}onMouseUp(){document.body.classList.remove(`is-dragging-color-picker`)}onMouseDown(){document.body.classList.add(`is-dragging-color-picker`),addEventListener(`mouseup`,this.onMouseUp,{once:!0})}beforeUnmount(){removeEventListener(`mouseup`,this.onMouseUp)}};K([Z()],ME.prototype,`modelValue`,void 0),K([Z()],ME.prototype,`inline`,void 0),K([Z({default(){return[]}})],ME.prototype,`globalColors`,void 0),K([Z()],ME.prototype,`globalColor`,void 0),K([Z({default:!0})],ME.prototype,`showGlobal`,void 0),K([Z({default:!1})],ME.prototype,`isOpen`,void 0),K([Z({default:!0})],ME.prototype,`canSave`,void 0),K([Z({default:`solidOnly`})],ME.prototype,`availableType`,void 0),K([G(`isOpen`,{immediate:!0})],ME.prototype,`maybeSetGradientWhenDialogOpens`,null),K([G(`modelValue`)],ME.prototype,`resetTypeWhenValueChanges`,null),ME=K([J({emits:[`close`,`update:model-value`],components:{DropdownDragHandle:lf,Icon:X,EyeDropper:mae,VueGradientWrapper:dae,DropdownInput:wd,Dropdown:nf,GlobalColorsList:OE,ColorBadge:hT,VueColorWrapper:yT}})],ME);var gae=Y(ME),_ae={class:`color-picker-header`},vae={key:2,class:`color-picker-title`};function yae(e,t,n,r,i,a){let o=M(`Icon`),s=M(`EyeDropper`),c=M(`DropdownDragHandle`),l=M(`VueColorWrapper`),u=M(`VueGradientWrapper`),d=M(`GlobalColorsList`);return z(),E(`div`,{class:`color-picker`,onMousedown:t[2]||=(...t)=>e.onMouseDown&&e.onMouseDown(...t)},[C(c,null,{default:L(()=>[w(`header`,_ae,[e.inline?k(``,!0):(z(),U(o,{key:0,icon:`GripVerticalIcon`,size:`12`,class:`dropdown-drag-icon`})),e.types.length>1?(z(),U(Od,{key:1,class:`color-picker-type-input`,modelValue:e.type,"onUpdate:modelValue":[t[0]||=t=>e.type=t,e.resetValueWhenTypeChanges],items:e.types,"hide-details":!0},null,8,[`modelValue`,`onUpdate:modelValue`,`items`])):(z(),E(`span`,vae,D(e.__(`Color Picker`)),1)),e.type===`solid`?(z(),U(s,{key:3,class:`ml-auto`,"onUpdate:modelValue":e.onSolidSelected},null,8,[`onUpdate:modelValue`])):k(``,!0),e.inline?k(``,!0):(z(),E(`button`,{key:4,class:`ml-3 dropdown-close-icon dropdown-action-icon`,onClick:t[1]||=t=>e.$emit(`close`)},[C(o,{icon:`CloseIcon`,size:`16`})]))])]),_:1}),e.type===`solid`?(z(),U(l,{"onUpdate:modelValue":e.onSolidSelected,"model-value":e.internalColor,key:e.componentKey},null,8,[`onUpdate:modelValue`,`model-value`])):(z(),U(u,{"onUpdate:modelValue":e.onGradientSelected,"model-value":e.internalGradient,type:e.type,key:`${e.componentKey}-gradient`},null,8,[`onUpdate:modelValue`,`model-value`,`type`])),e.showGlobal?(z(),U(d,{key:2,"onUpdate:modelValue":e.onGlobalColorSelected,"model-value":e.globalColors,"can-save":e.canSave,"selected-color":e.modelValue,"selected-global-color":e.globalColor,type:e.type},null,8,[`onUpdate:modelValue`,`model-value`,`can-save`,`selected-color`,`selected-global-color`,`type`])):k(``,!0)],32)}var NE=q(gae,[[`render`,yae]]),PE=class extends W{get hasValue(){return!!this.modelValue}};K([Z()],PE.prototype,`modelValue`,void 0),K([Z({default:()=>S(`Choose`)})],PE.prototype,`actionText`,void 0),PE=K([J({components:{NiceButton:uf}})],PE);var bae=Y(PE);function xae(e,t,n,r,i,a){let o=M(`NiceButton`);return z(),E(`div`,O({class:[`media-chooser-layer`,{"media-chooser-layer--hover":e.hasValue}]},e.$attrs),[C(o,{class:`media-chooser-layer-button`,size:`small`},{default:L(()=>[P(D(e.actionText),1)]),_:1})],16)}var FE=q(bae,[[`render`,xae]]),Sae=Qt(),Cae=Ws(),wae={value:``,type:`solid`},Tae={value:``,svgValue:``,type:`linear`,degree:0,points:[{left:0,red:0,green:0,blue:0,alpha:1},{left:100,red:255,green:0,blue:0,alpha:1}]},IE=class extends W{constructor(...e){super(...e),this.dialogOpen=!1}get availableType(){return this.colorOptions?.type||`solidOnly`}get internalValue(){let e=(typeof this.modelValue==`string`?{value:this.modelValue,type:`solid`}:null)||this.modelValue,t=this.availableType===`gradientOnly`?Tae:wae;return(0,Sae.pipe)(e,pte.decode,(0,Cae.fold)(()=>t,e=>e))}get colorCode(){return this.globalColor?ns(this.globalColor):this.internalValue.value}get globalColor(){return Ite(this.internalValue,this.globalColors)}get globalColors(){return Ls()}get cssVariables(){return this.globalColors.reduce((e,t)=>(e[`--${t.cssVariableName}`]=ns(t),e),{})}get isCSSVariable(){return this.internalValue?Qte(this.internalValue):!1}get canSaveColor(){return!this.isCSSVariable&&this.modelValue}get isLarge(){return this.availableType===`gradientOnly`&&!this.small}get colorPickerAttrs(){return{availableType:this.availableType,globalColors:this.globalColors,globalColor:this.globalColor,showGlobal:this.showGlobal,canSave:this.canSaveColor,modelValue:this.internalValue,isOpen:this.dialogOpen,style:this.cssVariables}}onInput(e){if(!e){this.$emit(`update:model-value`,null);return}let t=$c(e)&&!e.includes(`#`)?`#${e}`:e;this.$emit(`update:model-value`,t)}updateValue(e){if(!e){this.$emit(`update:model-value`,null);return}this.$emit(`update:model-value`,e)}};K([Z()],IE.prototype,`modelValue`,void 0),K([Z()],IE.prototype,`placeholder`,void 0),K([Z()],IE.prototype,`colorOptions`,void 0),K([Z({default:!0})],IE.prototype,`showGlobal`,void 0),K([Z({default:!0})],IE.prototype,`showInput`,void 0),K([Z({default:!1})],IE.prototype,`small`,void 0),K([Z({default:!1})],IE.prototype,`inline`,void 0),K([Z({default:`right`})],IE.prototype,`position`,void 0),IE=K([J({emits:[`update:model-value`],components:{MediaChooserLayer:FE,TextInput:tf,Dropdown:nf,ColorPicker:NE,ColorSwatch:hT}})],IE);var Eae=Y(IE),Dae={key:2,class:`breakdance-color-input-name`},Oae={class:`ellipsis-text`},kae={key:0,class:`ellipsis-text`};function Aae(e,t,n,r,i,a){let o=M(`ColorPicker`),s=M(`ColorSwatch`),c=M(`MediaChooserLayer`),l=M(`Dropdown`),u=M(`TextInput`);return z(),E(`div`,{class:R([`breakdance-color-input`,{[`breakdance-color-input--${e.position}`]:!0,"breakdance-color-input--large":e.isLarge,"breakdance-color-input--inline":e.inline}]),style:A(e.cssVariables)},[e.inline?(z(),U(o,O({key:0,inline:!0,"onUpdate:modelValue":e.updateValue,onClose:t[0]||=t=>e.dialogOpen=!1},e.colorPickerAttrs),null,16,[`onUpdate:modelValue`])):(z(),U(l,{key:1,"close-on-content-click":!1,placement:e.position===`left`?`bottom-start`:`bottom-end`,"offset-x":0,"offset-y":6,"max-width":225,"skip-stacking-strategy":!0,modelValue:e.dialogOpen,"onUpdate:modelValue":t[2]||=t=>e.dialogOpen=t},{activator:L(({props:t})=>[C(s,O({"color-code":e.colorCode},t),null,16,[`color-code`]),e.isLarge?(z(),U(c,O({key:0,"model-value":e.colorCode},t),null,16,[`model-value`])):k(``,!0)]),default:L(()=>[C(o,O({"onUpdate:modelValue":e.updateValue,onClose:t[1]||=t=>e.dialogOpen=!1},e.colorPickerAttrs),null,16,[`onUpdate:modelValue`])]),_:1},8,[`placement`,`modelValue`])),e.showInput?(z(),E(`div`,Dae,[e.globalColor?(z(),E(`div`,{key:0,class:`breakdance-color-input-global-badge`,onClick:t[3]||=t=>e.dialogOpen=!0},[w(`span`,Oae,D(e.globalColor.label),1)])):e.internalValue.type===`solid`?(z(),U(u,{key:1,class:`breakdance-color-input-text-field-wrapper`,"onUpdate:modelValue":e.onInput,"model-value":e.internalValue.value,placeholder:e.placeholder},null,8,[`onUpdate:modelValue`,`model-value`,`placeholder`])):(z(),E(`div`,{key:2,class:`breakdance-color-input-global-badge`,onClick:t[4]||=t=>e.dialogOpen=!0},[e.internalValue.value?(z(),E(`span`,kae,D(e.internalValue.type),1)):k(``,!0)]))])):k(``,!0)],6)}var LE=q(Eae,[[`render`,Aae]]),RE=class extends W{get isGlobalBlock(){return Tc(B.document.documentMeta.postType)}get postId(){return B.document.documentMeta.id}get blockSettings(){return B.document.documentMeta.blockSettings||{preview:this.getEmptyPreview()}}get preview(){return this.blockSettings.preview}get isOxygen(){return I.builderMode===`oxygen`}getEmptyPreview(){return{width:void 0,height:void 0,backgroundColor:``,isCentered:!1}}changeWidth(e){this.updateProp(`width`,e?.number)}changeHeight(e){this.updateProp(`height`,e?.number)}changeBackgroundColor(e){this.updateProp(`backgroundColor`,e)}changeIsCentered(e){this.updateProp(`isCentered`,e)}updateProp(e,t){let n=T(B.document.documentMeta);ja(n,`blockSettings.preview.${e}`,t),n.blockSettings!==!1&&Object.values(n.blockSettings.preview).every(e=>e===void 0)&&ja(n,`blockSettings.preview`,this.getEmptyPreview()),vi.ignore(async()=>{B.setDocumentMeta(n),await aa(this.postId,this.blockSettings)})}};RE=K([J({components:{Icon:X,ToggleInput:Yd,ColorInput:LE,UnitInput:dT,NumberInput:Fd,NiceButton:uf,TextInput:tf,Dropdown:nf}})],RE);var jae=Y(RE),Mae={key:0,class:`d-flex flex-row align-center`},Nae={class:`preview-size-content`},Pae={class:`preview-size__title mb-2`},Fae={class:`breakdance-control-wrapper`},Iae={class:`breakdance-control-wrapper-label-and-stuff`},Lae={class:`breakdance-control-wrapper-control-label`},Rae={class:`breakdance-control-wrapper-input-wrapper preview-size-inputs`},zae={class:`breakdance-control-wrapper breakdance-control-wrapper-inline`},Bae={class:`breakdance-control-wrapper-label-and-stuff`},Vae={class:`breakdance-control-wrapper-control-label`},Hae={class:`breakdance-control-wrapper-input-wrapper`},Uae={class:`breakdance-control-wrapper breakdance-control-wrapper-inline`},Wae={class:`breakdance-control-wrapper-label-and-stuff`},Gae={class:`breakdance-control-wrapper-control-label`},Kae={class:`breakdance-control-wrapper-input-wrapper`};function qae(e,t,n,r,i,a){let o=M(`Icon`),s=M(`NiceButton`),c=M(`UnitInput`),l=M(`ColorInput`),u=M(`ToggleInput`),d=M(`Dropdown`);return e.isGlobalBlock?(z(),U(d,{key:0,"max-width":300,"close-on-content-click":!1},{activator:L(({props:t})=>[e.isOxygen?(z(),E(`button`,O({key:0},t,{class:`oxygen-button-primary`}),[C(o,{icon:`ExpandExpandIcon`,size:`14`}),e.preview.width&&e.preview.height?(z(),E(`span`,Mae,[w(`span`,null,D(e.preview.width),1),C(o,{icon:`XmarkSolidIcon`,size:`10`}),w(`span`,null,D(e.preview.height),1)])):k(``,!0)],16)):(z(),U(s,O({key:1,size:`small`,class:`preview-size-button`},t),{default:L(()=>[e.preview.width&&e.preview.height?(z(),E(H,{key:0},[P(D(e.preview.width)+`x`+D(e.preview.height),1)],64)):(z(),E(H,{key:1},[P(D(e.__(`Preview Size`)),1)],64))]),_:1},16))]),default:L(()=>[w(`div`,Nae,[w(`h4`,Pae,D(e.__(`Constrain Preview Size`)),1),w(`div`,Fae,[w(`div`,Iae,[w(`span`,Lae,D(e.__(`Dimensions`)),1)]),w(`div`,Rae,[C(c,{type:`text`,placeholder:e.__(`Width`),"model-value":{number:e.preview.width},"onUpdate:modelValue":e.changeWidth,options:{types:[`px`],defaultType:`px`}},null,8,[`placeholder`,`model-value`,`onUpdate:modelValue`]),C(o,{icon:`CloseIcon`}),C(c,{type:`text`,placeholder:e.__(`Height`),"model-value":{number:e.preview.height},"onUpdate:modelValue":e.changeHeight,options:{types:[`px`],defaultType:`px`}},null,8,[`placeholder`,`model-value`,`onUpdate:modelValue`])])]),w(`div`,zae,[w(`div`,Bae,[w(`span`,Vae,D(e.__(`Background Color`)),1)]),w(`div`,Hae,[C(l,{"model-value":e.preview.backgroundColor,"onUpdate:modelValue":e.changeBackgroundColor},null,8,[`model-value`,`onUpdate:modelValue`])])]),w(`div`,Uae,[w(`div`,Wae,[w(`span`,Gae,D(e.__(`Vertically Center`)),1)]),w(`div`,Kae,[C(u,{"model-value":e.preview.isCentered,"onUpdate:modelValue":e.changeIsCentered},null,8,[`model-value`,`onUpdate:modelValue`])])])])]),_:1})):k(``,!0)}var Jae=q(jae,[[`render`,qae]]),zE=class extends W{get block(){return I.globalBlocks.find(e=>F.inlineEditingContext?.blockId===e.id)}closeEditor(){gn()}};zE=K([J({components:{Icon:X,TopBarSection:Qx}})],zE);var Yae=Y(zE),Xae={class:`inline-editor-topbar-indicator__title truncate`};function Zae(e,t,n,r,i,a){let o=M(`Icon`),s=M(`TopBarSection`);return z(),U(s,{borderLeft:!0,borderRight:!0},{default:L(()=>[w(`div`,{class:`inline-editor-topbar-indicator`,onClick:t[0]||=(...t)=>e.closeEditor&&e.closeEditor(...t)},[C(o,{icon:`ArrowLeftIcon`,class:`inline-editor-topbar-indicator__icon`}),w(`span`,Xae,D(e.block?.label),1),C(o,{icon:`GlobeIcon`,class:`inline-editor-topbar-indicator__icon`})])]),_:1})}var Qae=q(Yae,[[`render`,Zae]]),BE=class extends W{get shouldShowUpgradeToProButton(){return I.subscriptionMode===`free`}get isPreviewMode(){return F.isPreviewMode}togglePreviewMode(){F.togglePreviewMode()}toggleElementProperties(){Zr(`elementproperties`)}get isElementPropertiesOpen(){return Ht(`elementproperties`)}get isOxySelectorsPanelOpen(){return Ht(`oxySelectors`)}get isVariablesPanelOpen(){return Ht(`variables`)}toggleStructurePanel(){Zr(`structure`)}toggleOxySelectorsPanel(){Zr(`oxySelectors`)}toggleVariablesPanel(){Zr(`variables`)}get isStructurePanelOpen(){return Ht(`structure`)}get isAiEnabled(){return I.ai?.enabled}get isAiPanelOpen(){return Ht(`ai`)}toggleAiPanel(){Zr(`ai`)}get activeElementId(){return F.activeElementId}get isInlineEditing(){return F.isInlineEditing}get currentBreakpoint(){return F.currentBreakpoint}set currentBreakpoint(e){F.changeBreakpoint(e)}mounted(){jl.register(Kr.CMD_SHIFT_S,()=>Zs(F.settings.scaleToFit!==`SCALED_TO_FIT`))}beforeUnmount(){jl.unbind(Kr.CMD_SHIFT_S)}get builderMode(){return I.builderMode}};BE=K([J({components:{InlineEditorTopbarIndicator:Qae,PreviewSize:Jae,TopBar:Pw,Exit:Ew,AddButton:Aw,TopBarSection:Qx,SettingsDropdown:vw,BreakpointsSelection:Jx,Save:Hx,UndoRedo:nS,PreviewContentChooserDialog:FC,DocumentChooser:fw,IconButton:rd,UpgradeToPro:Vw,OxyMenuDropdown:Xw}})],BE);var $ae=Y(BE);function eoe(e,t,n,r,i,a){let o=M(`OxyMenuDropdown`),s=M(`AddButton`),c=M(`IconButton`),l=M(`InlineEditorTopbarIndicator`),u=M(`DocumentChooser`),d=M(`PreviewSize`),f=M(`PreviewContentChooserDialog`),p=M(`BreakpointsSelection`),m=M(`TopBarSection`),h=M(`UpgradeToPro`),g=M(`UndoRedo`),_=M(`SettingsDropdown`),v=M(`Save`),y=M(`Exit`),b=M(`TopBar`),x=br(`permission`);return z(),U(b,null,{default:L(()=>[e.builderMode===`oxygen`?(z(),E(H,{key:0},[C(m,null,{default:L(()=>[C(o),hc(C(s,null,null,512),[[x,`full`]]),C(c,{onClick:e.toggleStructurePanel,active:e.isStructurePanelOpen,class:`open-structure-toolbar-button`,icon:`LayersIconSolid`,size:`14`,tooltip:`Structure`},null,8,[`onClick`,`active`]),e.isInlineEditing?(z(),U(l,{key:0})):(z(),U(u,{key:1})),C(d),C(f),C(p,{modelValue:e.currentBreakpoint,"onUpdate:modelValue":t[0]||=t=>e.currentBreakpoint=t},null,8,[`modelValue`])]),_:1}),C(m,null,{default:L(()=>[e.shouldShowUpgradeToProButton?(z(),U(h,{key:0})):k(``,!0),e.isAiEnabled?(z(),U(c,{key:1,onClick:e.toggleAiPanel,active:e.isAiPanelOpen,class:`open-ai-assistant-button`,icon:`SparklesIconSolid`,size:`14`,tooltip:`AI Assistant`},null,8,[`onClick`,`active`])):k(``,!0),C(g),C(_),C(c,{onClick:e.toggleOxySelectorsPanel,active:e.isOxySelectorsPanelOpen,icon:`BracketsSolidIcon`,size:`14`,tooltip:`Selectors`},null,8,[`onClick`,`active`]),C(c,{onClick:e.toggleVariablesPanel,active:e.isVariablesPanelOpen,icon:`DollarSolidIcon`,size:`14`,tooltip:`Variables`},null,8,[`onClick`,`active`]),C(c,{onClick:e.togglePreviewMode,active:e.isPreviewMode,icon:`PlaySolidIcon`,size:`14`,tooltip:`Preview`},null,8,[`onClick`,`active`]),C(v),C(y)]),_:1})],64)):k(``,!0),e.builderMode===`breakdance`?(z(),E(H,{key:1},[hc(C(s,null,null,512),[[x,`full`]]),C(m,{"border-right":!0},{default:L(()=>[C(c,{onClick:e.toggleElementProperties,active:e.isElementPropertiesOpen,class:`open-properties-toolbar-button`,icon:`EditIcon`,size:`18`},null,8,[`onClick`,`active`])]),_:1}),hc(C(ld,null,null,512),[[x,`full`]]),e.isInlineEditing?(z(),U(l,{key:0})):(z(),U(u,{key:1})),C(f),C(m,{borderRight:!0},{default:L(()=>[C(p,{modelValue:e.currentBreakpoint,"onUpdate:modelValue":t[1]||=t=>e.currentBreakpoint=t},null,8,[`modelValue`])]),_:1}),C(m,null,{default:L(()=>[C(d)]),_:1}),C(ld),e.shouldShowUpgradeToProButton?(z(),U(m,{key:2},{default:L(()=>[C(h)]),_:1})):k(``,!0),e.isAiEnabled?(z(),U(m,{key:3,borderLeft:!0},{default:L(()=>[C(c,{onClick:e.toggleAiPanel,active:e.isAiPanelOpen,class:`open-ai-assistant-button`,icon:`SparklesIcon`,size:`18`},null,8,[`onClick`,`active`])]),_:1})):k(``,!0),C(g),C(m,{"border-left":!0,class:`top-bar-settings-and-structure-section`},{default:L(()=>[C(c,{onClick:e.toggleStructurePanel,active:e.isStructurePanelOpen,class:`open-structure-toolbar-button`,icon:`LayersIcon`,size:`18`},null,8,[`onClick`,`active`]),C(_),C(c,{onClick:e.togglePreviewMode,active:e.isPreviewMode,class:`open-preview-toolbar-button`,icon:`PlayIcon`,size:`18`},null,8,[`onClick`,`active`])]),_:1}),C(m,{borderLeft:!0},{default:L(()=>[C(v)]),_:1}),C(y)],64)):k(``,!0)]),_:1})}var toe=q($ae,[[`render`,eoe]]),VE=class extends W{};K([Z()],VE.prototype,`show`,void 0),K([Z({default:`info`})],VE.prototype,`type`,void 0),K([Z({default:!1})],VE.prototype,`hasCancel`,void 0),K([Z({default:S(`Cancel`)})],VE.prototype,`cancelText`,void 0),K([Z()],VE.prototype,`saveIsEnabled`,void 0),K([Z()],VE.prototype,`saveIsInProgress`,void 0),K([Z({default:!0})],VE.prototype,`hasDiscard`,void 0),K([Z()],VE.prototype,`discardIsEnabled`,void 0),K([Z()],VE.prototype,`discardIsInProgress`,void 0),K([Z({default:S(`Save`)})],VE.prototype,`actionText`,void 0),K([Z({default:S(`Discard`)})],VE.prototype,`discardText`,void 0),VE=K([J({components:{},emits:[`cancel`,`discard`,`save`,`click:outside`]})],VE);var noe=Y(VE),roe={key:0,class:`card-alert`};function ioe(e,t,n,r,i,a){return z(),U($u,{"model-value":e.show,persistent:``,"max-width":400,"onClick:outside":t[3]||=t=>e.$emit(`click:outside`)},{default:L(()=>[C(td,{class:`breakdance-dialog`},{default:L(()=>[e.type?(z(),E(`div`,roe,[C(rf,{class:`card-alert__icon`,type:e.type},null,8,[`type`])])):k(``,!0),C(Xu,{class:`breakdance-dialog-title`},{default:L(()=>[Di(e.$slots,`title`)]),_:3}),C(Qu,{class:`breakdance-dialog-contents`},{default:L(()=>[Di(e.$slots,`text`)]),_:3}),C(Zu,{class:`breakdance-dialog-actions`},{default:L(()=>[e.hasCancel?(z(),U(Q,{key:0,onClick:t[0]||=()=>e.$emit(`cancel`)},{default:L(()=>[P(D(e.cancelText),1)]),_:1})):k(``,!0),e.hasDiscard?(z(),U(Q,{key:1,onClick:t[1]||=()=>e.$emit(`discard`),disabled:!e.discardIsEnabled,loading:e.discardIsInProgress},{default:L(()=>[P(D(e.discardText),1)]),_:1},8,[`disabled`,`loading`])):k(``,!0),C(Q,{onClick:t[2]||=()=>e.$emit(`save`),color:e.type,disabled:!e.saveIsEnabled,loading:e.saveIsInProgress},{default:L(()=>[P(D(e.actionText),1)]),_:1},8,[`color`,`disabled`,`loading`])]),_:1})]),_:3})]),_:3},8,[`model-value`])}var HE=q(noe,[[`render`,ioe]]),aoe=Qt(),ooe=Ws(),UE=class extends W{constructor(...e){super(...e),this.deleteDialog=!1,this.internalValue=T(this.modelValue)}setDefaultPreviewWidth(e){let t=this.internalValue.maxWidth??this.internalValue.minWidth??250;this.internalValue.defaultPreviewWidth=e===`100%`?`100%`:t}enableEditing(){this.$emit(`edit`,this.modelValue.id)}get breakpoints(){return I.breakpoints}get previewWidthUnit(){return`px`}deleteBreakpoint(){this.$emit(`delete`),this.deleteDialog=!1}get mediaQueryString(){return Nc(this.internalValue.minWidth||void 0,this.internalValue.maxWidth||void 0)}cancel(){this.internalValue=T(this.modelValue),this.$emit(`edit`,``)}save(){(0,aoe.pipe)(hs(T(this.internalValue)),(0,ooe.fold)(e=>{e.forEach(e=>Bs.log.message(e.msg))},e=>{this.$emit(`update:model-value`,e),this.$emit(`edit`,``)}))}};K([Z()],UE.prototype,`modelValue`,void 0),K([Z()],UE.prototype,`isEditing`,void 0),UE=K([J({components:{IconButton:rd,TextInput:tf,NumberInput:Fd,DropdownInput:wd,NiceButton:uf,ConfirmDialog:HE},emits:[`edit`,`delete`,`update:model-value`],directives:{focus:{inserted:function(e){e.focus()}}}})],UE);var soe=Y(UE),coe={ref:`form`,class:`mx-n2 pa-2 py-3 breakpoint-edit`},loe={class:`font-weight-medium breakpoint-title text-capitalize mb-2`},uoe={class:`d-flex align-center justify-space-between`},doe={class:`media-query-box`},foe={key:0,class:`media-query-string`},poe={key:1,class:`media-query-box-items`},moe={class:`media-query-input-wrapper`},hoe={class:`d-flex flex-column`},goe={class:`breakdance-text-input__label`},_oe={class:`media-query-input-wrapper`},voe={class:`d-flex flex-column`},yoe={class:`breakdance-text-input__label`},boe={class:`media-query-input-wrapper`},xoe={class:`d-flex flex-column`},Soe={class:`media-query-box-label`},Coe={class:`media-query-input-wrapper`},woe={key:0,class:`d-flex flex-column`},Toe={class:`breakdance-text-input__label`},Eoe={class:`d-flex justify-end align-center`},Doe={key:0,class:`breakpoint-edit__actions`};function Ooe(e,t,n,r,i,a){let o=M(`NumberInput`),s=M(`DropdownInput`),c=M(`NiceButton`),l=M(`IconButton`),u=M(`ConfirmDialog`);return z(),E(`div`,null,[w(`div`,coe,[w(`h3`,loe,D(e.modelValue.label),1),w(`div`,uoe,[w(`div`,doe,[e.isEditing?(z(),E(`div`,poe,[w(`div`,moe,[w(`div`,hoe,[w(`label`,goe,D(e.__(`Maximum width (px)`)),1),C(o,{modelValue:e.internalValue.maxWidth,"onUpdate:modelValue":t[1]||=t=>e.internalValue.maxWidth=t},null,8,[`modelValue`])])]),w(`div`,_oe,[w(`div`,voe,[w(`label`,yoe,D(e.__(`Minimum width (px)`)),1),C(o,{modelValue:e.internalValue.minWidth,"onUpdate:modelValue":t[2]||=t=>e.internalValue.minWidth=t},null,8,[`modelValue`])])]),w(`div`,boe,[w(`div`,xoe,[w(`label`,Soe,D(e.__(`Default Preview Width`)),1),C(s,{label:e.__(`Default Preview Width`),"model-value":e.internalValue.defaultPreviewWidth===`100%`?`100%`:`custom`,items:[`100%`,`custom`],"onUpdate:modelValue":e.setDefaultPreviewWidth,clearable:``,class:`breakdance-dense-select breakdance-dense-select--md`},null,8,[`label`,`model-value`,`onUpdate:modelValue`])])]),w(`div`,Coe,[e.internalValue.defaultPreviewWidth===`100%`?k(``,!0):(z(),E(`div`,woe,[w(`label`,Toe,D(e.__(`Custom width (px)`)),1),C(o,{modelValue:e.internalValue.defaultPreviewWidth,"onUpdate:modelValue":t[3]||=t=>e.internalValue.defaultPreviewWidth=t},null,8,[`modelValue`])]))]),w(`div`,Eoe,[C(Q,{variant:`text`,onClick:e.cancel,color:`red-darken-1`,class:`mr-3`},{default:L(()=>[P(D(e.__(`Cancel`)),1)]),_:1},8,[`onClick`]),C(c,{onClick:e.save,disabled:!e.internalValue.maxWidth&&!e.internalValue.minWidth},{default:L(()=>[P(D(e.__(`Save`)),1)]),_:1},8,[`onClick`,`disabled`])])])):(z(),E(`div`,{key:0,onClick:t[0]||=(...t)=>e.enableEditing&&e.enableEditing(...t)},[e.mediaQueryString?(z(),E(`div`,foe,D(e.mediaQueryString),1)):(z(),U(rf,{key:1,class:`mt-4`,density:`compact`,color:`orange`},{default:L(()=>[P(D(e.__(`Click to set min and max widths.`)),1)]),_:1}))]))]),e.isEditing?k(``,!0):(z(),E(`div`,Doe,[C(l,{onClick:e.enableEditing,class:`mr-1`,icon:`EditIcon`,size:`18`},null,8,[`onClick`]),C(l,{onClick:t[4]||=to(t=>e.deleteDialog=!0,[`stop`]),icon:`TrashIcon`,size:`18`})]))])],512),C(u,{show:e.deleteDialog,onDiscard:t[5]||=t=>e.deleteDialog=!1,onSave:e.deleteBreakpoint,type:`error`,"action-text":`Delete`,"discard-text":`Cancel`,"save-is-enabled":!0,"discard-is-enabled":!0},{title:L(()=>[...t[6]||=[P(`Delete breakpoint?`,-1)]]),text:L(()=>[P(`{If you delete the `+D(e.modelValue.label||`${e.modelValue.defaultPreviewWidth}px`)+` breakpoint, you will lose all design changes it applies.`,1)]),_:1},8,[`show`,`onSave`])])}var koe=q(soe,[[`render`,Ooe]]),Aoe={},joe={class:`preferences-empty-state`};function Moe(e,t){return z(),E(`div`,joe,[Di(e.$slots,`default`)])}var WE=q(Aoe,[[`render`,Moe]]),GE=class extends W{constructor(...e){super(...e),this.editingBreakpointId=``,this.showAddForm=!1,this.newBreakpointLabel=``}edit(e){this.editingBreakpointId=e,this.showAddForm=!1}openAddBreakpointForm(){this.showAddForm=!0,this.editingBreakpointId=``}toggleAddBreakpointForm(){this.showAddForm=!this.showAddForm}addBreakpoint(){if(!this.newBreakpointLabel)return;let e=`custom_breakpoint_${this.newBreakpointLabel.toLowerCase().replace(/[- ]/g,`_`)}`;this.updateOrAddBreakpoint({id:e,label:this.newBreakpointLabel,minWidth:void 0,maxWidth:void 0,defaultPreviewWidth:`100%`})}deleteBreakpoint(e){let t=T(this.modelValue),n=t.findIndex(t=>t.id===e);t.splice(n,1),this.$emit(`update:model-value`,t)}updateOrAddBreakpoint(e){let t=Nee(this.modelValue,e);this.$emit(`update:model-value`,t),this.showAddForm===!0&&(this.showAddForm=!1),this.newBreakpointLabel=``}};K([Z()],GE.prototype,`modelValue`,void 0),GE=K([J({emits:[`update:model-value`],components:{Icon:X,EditBreakpoint:koe,EmptyStatePreferences:WE,TextInput:tf,IconButton:rd}})],GE);var Noe=Y(GE),Poe={key:0,class:`add-breakpoint-form-content-wrapper`},Foe={class:`add-breakpoint-heading-box`},Ioe={class:`add-breakpoint-heading`};function Loe(e,t,n,r,i,a){let o=M(`EditBreakpoint`),s=M(`IconButton`),c=M(`TextInput`),l=M(`Icon`),u=M(`EmptyStatePreferences`);return z(),E(`div`,null,[(z(!0),E(H,null,j(e.modelValue,t=>(z(),U(o,{key:t.id,"model-value":t,"onUpdate:modelValue":e.updateOrAddBreakpoint,onDelete:n=>e.deleteBreakpoint(t.id),isEditing:t.id===e.editingBreakpointId,onEdit:e.edit},null,8,[`model-value`,`onUpdate:modelValue`,`onDelete`,`isEditing`,`onEdit`]))),128)),!e.showAddForm&&e.modelValue&&e.modelValue.length>0?(z(),U(Q,{key:0,onClick:e.openAddBreakpointForm,variant:`outlined`},{default:L(()=>[P(D(e.__(`Add Breakpoint`)),1)]),_:1},8,[`onClick`])):k(``,!0),w(`div`,null,[e.showAddForm?(z(),E(`div`,Poe,[w(`div`,Foe,[w(`h4`,Ioe,D(e.__(`Add New Breakpoint`)),1),C(s,{class:`add-breakpoint-close-button`,icon:`CloseIcon`,size:`18`,onClick:e.toggleAddBreakpointForm},null,8,[`onClick`])]),C(c,{modelValue:e.newBreakpointLabel,"onUpdate:modelValue":t[0]||=t=>e.newBreakpointLabel=t,placeholder:e.__(`Breakpoint name, ie. iPhone X or tablet`),size:`md`,"validation-function-name":`validateNoQuotes`},null,8,[`modelValue`,`placeholder`]),C(Q,{onClick:e.addBreakpoint,disabled:!e.newBreakpointLabel,variant:`text`},{default:L(()=>[C(l,{icon:`PlusIcon`,class:`mr-2`}),P(` `+D(e.__(`Add`)),1)]),_:1},8,[`onClick`,`disabled`])])):k(``,!0),!e.showAddForm&&e.modelValue&&e.modelValue.length==0?(z(),U(u,{key:1},{default:L(()=>[w(`p`,null,D(e.__(`Add your first breakpoint by clicking the button below.`)),1),C(Q,{onClick:e.openAddBreakpointForm,variant:`outlined`},{default:L(()=>[P(D(e.__(`Add Breakpoint`)),1)]),_:1},8,[`onClick`])]),_:1})):k(``,!0)])])}var Roe=q(Noe,[[`render`,Loe]]),KE=class extends W{};K([Z()],KE.prototype,`save`,void 0),K([Z({default:!1})],KE.prototype,`hideSaveButton`,void 0),KE=K([J({})],KE);var zoe=Y(KE),Boe={class:`preferences-panel-topbar`},Voe={class:`preferences-panel-heading`},Hoe={class:`preferences-panel-content-area`},Uoe={class:`preferences-bottom-panel`};function Woe(e,t,n,r,i,a){return z(),E(`div`,null,[w(`div`,Boe,[w(`div`,Voe,[Di(e.$slots,`title`)]),Di(e.$slots,`aftertitle`),C(ld)]),w(`div`,Hoe,[Di(e.$slots,`content`)]),w(`div`,Uoe,[e.hideSaveButton?k(``,!0):(z(),U(Q,{key:0,loading:e.save.inProgress,onClick:e.save.function,disabled:e.save.disabled,color:`blue`},{default:L(()=>[P(D(e.save.text),1)]),_:1},8,[`loading`,`onClick`,`disabled`]))])])}var qE=q(zoe,[[`render`,Woe]]),JE=class extends W{constructor(...e){super(...e),this.internalValue=T(this.modelValue)}get unsavedChangesPresent(){return!Sl(T(this.internalValue),T(this.modelValue))}applyChanges(){this.$emit(`update:model-value`,this.internalValue)}breakpointsEdited(e){this.internalValue=e}};K([Z()],JE.prototype,`modelValue`,void 0),JE=K([J({emits:[`update:model-value`],components:{EditBreakpoints:Roe,PreferencesPanel:qE}})],JE);var Goe=Y(JE);function Koe(e,t,n,r,i,a){let o=M(`EditBreakpoints`),s=M(`PreferencesPanel`);return z(),U(s,{save:{text:e.__(`Save Breakpoints`),function:e.applyChanges,inProgress:!1,disabled:!e.unsavedChangesPresent}},{title:L(()=>[P(D(e.__(`Breakpoints`)),1)]),content:L(()=>[C(o,{"model-value":e.internalValue,"onUpdate:modelValue":e.breakpointsEdited},null,8,[`model-value`,`onUpdate:modelValue`])]),_:1},8,[`save`])}var qoe=q(Goe,[[`render`,Koe]]);async function Joe(e){return await as({action:`breakdance_save_font_file`,dataToPost:{file:e},decoder:Xn})}async function Yoe(e){return await as({action:`breakdance_get_font_families_from_css_file`,dataToPost:{cssUrl:e},decoder:Re})}async function Xoe(e){return await as({action:`breakdance_save_font_families`,dataToPost:{customFontFamilies:Ha(e)},decoder:Re})}const Zoe=e=>{let t=T(I.fonts),n=t.findIndex(t=>t.slug===e.slug);n===-1?t.unshift(e):t[n]=e,I.setFonts(t)},Qoe=e=>{let t=T(I.fonts),n=t.findIndex(t=>t.slug===e);n>-1&&t.splice(n,1),I.setFonts(t)},YE=[{text:`100 (Thin)`,shortText:`Thin`,value:100},{text:`200 (Extra Light)`,shortText:`Extra L.`,value:200},{text:`300 (Light)`,shortText:`Light`,value:300},{text:`400 (Normal)`,shortText:`Normal`,value:400},{text:`500 (Medium)`,shortText:`Medium`,value:500},{text:`600 (Semi Bold)`,shortText:`Semi`,value:600},{text:`700 (Bold)`,shortText:`Bold`,value:700},{text:`800 (Extra Bold)`,shortText:`Extra B.`,value:800},{text:`900 (Black)`,shortText:`Black`,value:900}];var XE=class extends W{constructor(...e){super(...e),this.isFontFaceUnique=!0}validateWeight(e){return e?!this.existingFontFaces.find(t=>t.weight===e&&t.style===this.modelValue.style)?.files.find(e=>this.valueFormats.includes(e.format))||S(`This font weight already exists with this style, and format`):S(`A weight is required`)}validateStyle(e){return!this.existingFontFaces.find(t=>t.weight===this.modelValue.weight&&t.style===e)?.files.find(e=>this.valueFormats.includes(e.format))||S(`This font style already exists with this weight, and format`)}get valueFormats(){return this.modelValue.files.map(e=>e.format)}revalidateOnValueChange(){this.form.validate()}updateWeight(e){let t={...this.modelValue,weight:e};this.$emit(`update:model-value`,t)}updateStyle(e){let t={...this.modelValue,style:e};this.$emit(`update:model-value`,t)}updateVariableAxis(e,t){this.$emit(`update:model-value`,{...this.modelValue,[e]:t})}deleteFontFace(){this.$emit(`delete`)}get weights(){return YE}get currentWeight(){return YE.find(e=>e.value===this.modelValue.weight)}};K([Ju()],XE.prototype,`form`,void 0),K([Z()],XE.prototype,`modelValue`,void 0),K([Z()],XE.prototype,`fontFamily`,void 0),K([Z({default:[]})],XE.prototype,`existingFontFaces`,void 0),K([G(`modelValue`)],XE.prototype,`revalidateOnValueChange`,null),XE=K([J({emits:[`update:model-value`,`delete`],components:{Icon:X,NumberInput:Fd}})],XE);var $oe=Y(XE),ese={class:`custom-font-family-font-face`},tse={class:`custom-font-family-font-face-titlebar`},nse={class:`custom-font-family-font-face-titlebar-title`},rse={key:0,class:`custom-font-family-variable-font`},ise={class:`custom-font-family-font-face-controls`},ase={key:0,class:`custom-font-family-font-face-controls-control`},ose={class:`custom-font-family-font-face-controls-control custom-font-family-font-face-controls-control--style`};function sse(e,t,n,r,i,a){let o=M(`Icon`),s=M(`NumberInput`);return z(),E(`div`,ese,[C(AS,{ref:`form`,modelValue:e.isFontFaceUnique,"onUpdate:modelValue":t[4]||=t=>e.isFontFaceUnique=t},{default:L(()=>[w(`div`,tse,[w(`div`,nse,[(z(!0),E(H,null,j(e.modelValue.files,e=>(z(),E(`div`,{key:e.fileUrl,class:`mr-3`},D(e.fileName),1))),128))]),C(Q,{icon:``,onClick:e.deleteFontFace},{default:L(()=>[C(o,{icon:`TrashIcon`})]),_:1},8,[`onClick`])]),e.fontFamily.isVariable?(z(),E(`div`,rse,[w(`div`,null,[t[5]||=w(`span`,{class:`custom-font-family-variable-font-label`},`Min Weight`,-1),C(s,{"model-value":e.modelValue.minWeight,"onUpdate:modelValue":t[0]||=t=>e.updateVariableAxis(`minWeight`,t),"range-options":{min:1,max:1e3,disableSlider:!0},arrows:!1,placeholder:`300`},null,8,[`model-value`])]),w(`div`,null,[t[6]||=w(`span`,{class:`custom-font-family-variable-font-label`},`Max Weight`,-1),C(s,{"model-value":e.modelValue.maxWeight,"onUpdate:modelValue":t[1]||=t=>e.updateVariableAxis(`maxWeight`,t),"range-options":{min:1,max:1e3,disableSlider:!0},arrows:!1,placeholder:`900`},null,8,[`model-value`])]),w(`div`,null,[t[7]||=w(`span`,{class:`custom-font-family-variable-font-label`},` Min Width (%) `,-1),C(s,{"model-value":e.modelValue.minWidth,"onUpdate:modelValue":t[2]||=t=>e.updateVariableAxis(`minWidth`,t),"range-options":{min:1,max:200,disableSlider:!0},arrows:!1},null,8,[`model-value`])]),w(`div`,null,[t[8]||=w(`span`,{class:`custom-font-family-variable-font-label`},` Max Width (%) `,-1),C(s,{"model-value":e.modelValue.maxWidth,"onUpdate:modelValue":t[3]||=t=>e.updateVariableAxis(`maxWidth`,t),"range-options":{min:1,max:200,disableSlider:!0},arrows:!1},null,8,[`model-value`])])])):k(``,!0),w(`div`,ise,[e.fontFamily.isVariable?k(``,!0):(z(),E(`div`,ase,[C(Od,{density:`compact`,"model-value":e.modelValue.weight,"onUpdate:modelValue":e.updateWeight,items:e.weights,rules:[e.validateWeight],label:e.__(`Font Weight`),class:`mr-4`},null,8,[`model-value`,`onUpdate:modelValue`,`items`,`rules`,`label`])])),w(`div`,ose,[C(IS,{"model-value":e.modelValue.style,"onUpdate:modelValue":e.updateStyle,rules:[e.validateStyle],direction:`horizontal`,density:`compact`,class:`pt-0 mt-0 mr-4`},{default:L(()=>[C(PS,{label:e.__(`Normal`),value:`normal`},null,8,[`label`]),C(PS,{label:e.__(`Italic`),value:`italic`},null,8,[`label`])]),_:1},8,[`model-value`,`onUpdate:modelValue`,`rules`])])])]),_:1},8,[`modelValue`])])}var cse=q($oe,[[`render`,sse]]),lse=Qt(),use=Ws(),ZE=class extends W{constructor(...e){super(...e),this.saveInProgress=!1}handleFiles(e){Array.from(e).forEach(e=>{let t=new FileReader;t.onloadend=async t=>{if(!t?.target)return;let n=new Uint8Array(t.target.result).subarray(0,4),r=``;n.forEach(e=>r+=e.toString(16));let i=e.name.split(`.`).pop(),a=r===`774f4646`&&i===`woff`;if(!(a||r===`774f4632`&&i===`woff2`)){Bs.log.message(S(`Only ".woff" and ".woff2" files are supported`));return}this.saveInProgress=!0,(0,lse.pipe)(await Joe(e),(0,use.fold)(e=>{Ra(e)},e=>{this.$emit(`save`,{fileUrl:e.fileUrl,format:a?`woff`:`woff2`,fileName:e.fileName})})),this.saveInProgress=!1},t.readAsArrayBuffer(e)})}};ZE=K([J({emits:[`save`],components:{FileUpload:jd}})],ZE);var dse=Y(ZE),fse={class:`breakdance-font-file-uploader`},pse={class:`breakdance-font-file-uploader-choose-link`};function mse(e,t,n,r,i,a){let o=M(`FileUpload`);return z(),E(`div`,fse,[C(o,{height:`150px`,accept:`.woff,.woff2`,onInput:e.handleFiles,saveInProgress:e.saveInProgress},{default:L(()=>[P(D(e.__(`drag .woff or .woff2 files or`))+` `,1),w(`span`,pse,D(e.__(`browse...`)),1)]),_:1},8,[`onInput`,`saveInProgress`])])}var hse=q(dse,[[`render`,mse]]),QE=class extends W{newFontFileSuccessfullyUploaded(e){let t=gse(e),n=[...this.modelValue,t];this.$emit(`update:model-value`,n)}updateFontFace(e,t){let n=[...this.modelValue],r=e.files.map(e=>e.format),i=n.findIndex(t=>t.weight===e.weight&&t.style===e.style&&!t.files.find(e=>r.includes(e.format)));i===-1?n[t]=e:(n[i].files=[...n[i].files,...e.files],n.splice(t,1)),this.$emit(`update:model-value`,n)}deleteFontFace(e){let t=[...this.modelValue];t.splice(e,1),this.$emit(`update:model-value`,t)}existingFontFaces(e){return this.modelValue.filter((t,n)=>n!==e)}};K([Z()],QE.prototype,`modelValue`,void 0),K([Z()],QE.prototype,`fontFamily`,void 0),QE=K([J({emits:[`update:model-value`],components:{FontFileUpload:hse,UpdateFontFace:cse}})],QE);function gse(e){return{id:Nt(),files:[e],style:`normal`,weight:0}}var _se=Y(QE),vse={class:`custom-font-family-font-faces`};function yse(e,t,n,r,i,a){let o=M(`UpdateFontFace`),s=M(`FontFileUpload`);return z(),E(`div`,vse,[(z(!0),E(H,null,j(e.modelValue,(t,n)=>(z(),U(o,{key:t.id,"model-value":t,"font-family":e.fontFamily,existingFontFaces:e.existingFontFaces(n),"onUpdate:modelValue":t=>e.updateFontFace(t,n),onDelete:t=>e.deleteFontFace(n)},null,8,[`model-value`,`font-family`,`existingFontFaces`,`onUpdate:modelValue`,`onDelete`]))),128)),C(s,{onSave:e.newFontFileSuccessfullyUploaded},null,8,[`onSave`])])}var bse=q(_se,[[`render`,yse]]),$E=class extends W{constructor(...e){super(...e),this.fallbackStringHasBeenEdited=!1}toggleFaces(){this.$emit(`open`,!this.isOpen)}deleteFontFamily(){this.$emit(`delete`)}editFallbackString(e){this.fallbackStringHasBeenEdited=!0,this.$emit(`update:model-value`,{...this.modelValue,fallbackString:e})}editFontFamily(e){this.$emit(`update:model-value`,{...this.modelValue,faces:e})}editCssUrl(e){this.$emit(`update:model-value`,{...this.modelValue,cssUrl:e})}};K([Z()],$E.prototype,`modelValue`,void 0),K([Z()],$E.prototype,`isOpen`,void 0),$E=K([J({emits:[`open`,`delete`,`update:model-value`],components:{Icon:X,FontFaces:bse,TextField:tf}})],$E);var xse=Y($E),Sse={class:`custom-font-family`},Cse={class:`custom-font-family-title`},wse={key:0,class:`custom-font-family-edit`},Tse={key:0},Ese={key:1},Dse={style:{"font-size":`var(--text-sm)`,"font-weight":`500`}};function Ose(e,t,n,r,i,a){let o=M(`Icon`),s=M(`FontFaces`),c=M(`TextField`);return z(),E(`div`,Sse,[w(`div`,{class:`custom-font-family-titlebar`,onClick:t[0]||=(...t)=>e.toggleFaces&&e.toggleFaces(...t)},[w(`div`,Cse,[P(D(e.modelValue.family)+` `,1),e.modelValue.isVariable?(z(),U(Sre,{key:0,variant:`outlined`,color:`blue`,size:`x-small`,label:``,class:`ml-1`},{default:L(()=>[...t[1]||=[P(` Variable `,-1)]]),_:1})):k(``,!0)]),C(Q,{icon:``,onClick:to(e.deleteFontFamily,[`stop`])},{default:L(()=>[C(o,{icon:`TrashIcon`})]),_:1},8,[`onClick`])]),e.isOpen?(z(),E(`div`,wse,[e.modelValue.hasExternalCssUrl?k(``,!0):(z(),E(`div`,Tse,[C(s,{"model-value":e.modelValue.faces,"font-family":e.modelValue,"onUpdate:modelValue":e.editFontFamily},null,8,[`model-value`,`font-family`,`onUpdate:modelValue`]),C(c,{placeholder:`CSS Fallback String (separate font families with commas)`,"model-value":e.modelValue.fallbackString,"onUpdate:modelValue":e.editFallbackString,size:`md`},null,8,[`model-value`,`onUpdate:modelValue`]),e.fallbackStringHasBeenEdited?(z(),U(rf,{key:0,class:`mt-4`,density:`compact`,border:`start`,type:`warning`},{default:L(()=>[...t[2]||=[P(` Changes to the CSS fallback string will take effect after `,-1),w(`strong`,null,`saving and refreshing`,-1),P(`. `,-1)]]),_:1})):k(``,!0)])),e.modelValue.hasExternalCssUrl?(z(),E(`div`,Ese,[w(`span`,Dse,`Sourced from `+D(e.modelValue.cssUrl),1),C(c,{placeholder:`CSS Fallback String (separate font families with commas)`,class:`mt-4`,"model-value":e.modelValue.fallbackString,"onUpdate:modelValue":e.editFallbackString,size:`md`},null,8,[`model-value`,`onUpdate:modelValue`])])):k(``,!0)])):k(``,!0)])}var kse=q(xse,[[`render`,Ose]]),eD=Qt(),tD=Ws(),nD=class extends W{constructor(...e){super(...e),this.internalValue=T(this.modelValue),this.fontFamily=``,this.cssUrl=``,this.validForm=!0,this.validCssForm=!0,this.saveInProgress=!1,this.openedFontIndex=-1,this.showAddForm=!1,this.isVariableFont=!1,this.showCssForm=!1}get unsavedChangesPresent(){return!Sl(T(this.internalValue),T(this.modelValue))}get validFontFamily(){return Bre(this.fontFamily)}toggleAddForm(){this.showAddForm=!this.showAddForm,this.isVariableFont=!1}toggleAddVariableForm(){this.toggleAddForm(),this.isVariableFont=!0}toggleCssForm(){this.showCssForm=!this.showCssForm}async applyChanges(){this.saveInProgress=!0,(0,eD.pipe)(await Xoe(this.internalValue),(0,tD.fold)(e=>{Ra(e)},e=>{e.forEach(e=>{let t=this.internalValue.findIndex(t=>t.id===e.fontId);this.internalValue[t].cssUrl=e.cssUrl,this.internalValue[t].cssName=e.fontRegistrationData.cssName,Zoe(e.fontRegistrationData)}),this.$emit(`update:model-value`,this.internalValue)})),this.saveInProgress=!1}openFont(e){this.isFreeMode||(this.openedFontIndex=e)}updateFontFamily(e,t){let n=T(this.internalValue);n[t]=e,this.internalValue=n}deleteFontFamily(e){if(this.isFreeMode)return;let t=T(this.internalValue);t.splice(e,1),Qoe(this.internalValue[e].id),this.internalValue=t}saveNewFontFamily(){!this.form.validate()||!this.fontFamily||(this.internalValue.push({id:`custom_font_`+this.fontFamily.toLowerCase().replace(/ /g,`_`),family:this.fontFamily,fallbackString:``,cssUrl:``,hasExternalCssUrl:!1,cssName:this.fontFamily,isVariable:this.isVariableFont,faces:[]}),this.openedFontIndex=this.internalValue.length-1,this.fontFamily=``,this.form.reset(),this.showAddForm=!1)}async saveCssUrl(){!this.cssForm.validate()||!this.cssUrl||(this.saveInProgress=!0,(0,eD.pipe)(await Yoe(this.cssUrl),(0,tD.fold)(e=>{Ra(e)},e=>{e.forEach(e=>{this.internalValue.findIndex(t=>t.id===e.fontId)>-1||this.internalValue.unshift({id:e.fontId,family:e.fontRegistrationData.label,fallbackString:e.fontRegistrationData.fallbackString,cssUrl:e.cssUrl,hasExternalCssUrl:!0,cssName:e.fontRegistrationData.cssName,faces:[]})})})),this.saveInProgress=!1,this.cssUrl=``,this.showCssForm=!1)}isValidUrl(e){let t;try{t=new URL(e)}catch{return!1}return t.protocol===`http:`||t.protocol===`https:`}get isFreeMode(){return I.subscriptionMode===`free`}};K([Ju()],nD.prototype,`form`,void 0),K([Ju()],nD.prototype,`cssForm`,void 0),K([Z()],nD.prototype,`modelValue`,void 0),nD=K([J({emits:[`update:model-value`],components:{ProOnlyAlertBox:sd,AlertBox:cf,FontFamily:kse,PreferencesPanel:qE,EmptyStatePreferences:WE,Icon:X,TextInput:tf,IconButton:rd}})],nD);var Ase=Y(nD),jse={key:0,class:`mt-12`},Mse={class:`mb-4 font-weight-medium`},Nse={key:2},Pse={class:`add-font-family-form-content-wrapper`},Fse={class:`add-font-heading-box`},Ise={class:`add-font-heading`},Lse={class:`my-4 font-weight-medium mt-12`},Rse={key:5},zse={class:`add-font-family-form-content-wrapper mb-4`},Bse={class:`add-font-heading-box`},Vse={class:`add-font-heading`};function Hse(e,t,n,r,i,a){let o=M(`ProOnlyAlertBox`),s=M(`FontFamily`),c=M(`EmptyStatePreferences`),l=M(`IconButton`),u=M(`TextInput`),d=M(`Icon`),f=M(`PreferencesPanel`);return z(),U(f,{save:{text:e.__(`Save Fonts`),function:e.applyChanges,inProgress:e.saveInProgress,disabled:!e.unsavedChangesPresent||e.isFreeMode}},{title:L(()=>[P(D(e.__(`Custom Fonts`)),1)]),content:L(()=>[C(o,{class:`mb-5`,options:{content:e.sprintf(e._doc(`Managing custom fonts is only available in %s Pro`,`%s: Plugin name`),e.$bdox(`plugin_name`)),feature:`custom-fonts`}},null,8,[`options`]),(z(!0),E(H,null,j(e.internalValue,(t,n)=>(z(),U(s,{key:t.family,"model-value":t,isOpen:n===e.openedFontIndex,onOpen:t=>e.openFont(t?n:-1),onDelete:t=>e.deleteFontFamily(n),"onUpdate:modelValue":t=>e.updateFontFamily(t,n)},null,8,[`model-value`,`isOpen`,`onOpen`,`onDelete`,`onUpdate:modelValue`]))),128)),e.internalValue.length?(z(),E(`div`,jse)):k(``,!0),w(`h4`,Mse,D(e.__(`Add Font`)),1),!e.showAddForm&&e.internalValue.length==0?(z(),U(c,{key:1},{default:L(()=>[w(`p`,null,D(e.sprintf(e._doc(`Add a font family to %s's font family dropdowns, and optionally upload associated .woff/.woff2 files.`,`%s: Plugin name`),e.$bdox(`plugin_name`))),1),C(Q,{onClick:e.toggleAddForm,variant:`outlined`,disabled:e.isFreeMode,class:`mr-2`},{default:L(()=>[P(D(e.__(`Add Font`)),1)]),_:1},8,[`onClick`,`disabled`]),C(Q,{onClick:e.toggleAddVariableForm,variant:`outlined`,disabled:e.isFreeMode},{default:L(()=>[P(D(e.__(`Add Variable Font`)),1)]),_:1},8,[`onClick`,`disabled`])]),_:1})):k(``,!0),e.showAddForm?(z(),E(`div`,Nse,[C(AS,{modelValue:e.validForm,"onUpdate:modelValue":t[1]||=t=>e.validForm=t,ref:`form`,onSubmit:to(e.saveNewFontFamily,[`prevent`])},{default:L(()=>[w(`div`,Pse,[w(`div`,Fse,[w(`h4`,Ise,[e.isVariableFont?(z(),E(H,{key:0},[P(D(e.__(`Add New Variable Font`)),1)],64)):(z(),E(H,{key:1},[P(D(e.__(`Add New Font`)),1)],64))]),C(l,{onClick:e.toggleAddForm,class:`add-font-cloe-button`,icon:`CloseIcon`,size:`18`},null,8,[`onClick`])]),C(u,{modelValue:e.fontFamily,"onUpdate:modelValue":t[0]||=t=>e.fontFamily=t,placeholder:e.__(`Custom font name, ie. Helvetica`),outlined:``,"single-line":``,size:`md`,"validation-function-name":`validateAlphanumericHyphenUnderscore`},null,8,[`modelValue`,`placeholder`]),C(Q,{disabled:!e.fontFamily||e.validFontFamily!==!0,type:`submit`,variant:`text`},{default:L(()=>[C(d,{icon:`PlusIcon`,class:`mr-2`}),P(` `+D(e.__(`Add`)),1)]),_:1},8,[`disabled`])])]),_:1},8,[`modelValue`,`onSubmit`])])):k(``,!0),e.internalValue.length>0&&!e.showAddForm?(z(),E(H,{key:3},[C(Q,{onClick:e.toggleAddForm,variant:`outlined`,disabled:e.isFreeMode,class:`mr-2`},{default:L(()=>[P(D(e.__(`Add Font`)),1)]),_:1},8,[`onClick`,`disabled`]),C(Q,{onClick:e.toggleAddVariableForm,variant:`outlined`,disabled:e.isFreeMode},{default:L(()=>[P(D(e.__(`Add Variable Font`)),1)]),_:1},8,[`onClick`,`disabled`])],64)):k(``,!0),w(`h4`,Lse,D(e.__(`Use Fonts In External CSS`)),1),!e.showCssForm&&e.internalValue.length==0?(z(),U(c,{key:4},{default:L(()=>[w(`p`,null,D(e.__(`Use hosted fonts from providers like Adobe Fonts.`)),1),C(Q,{onClick:e.toggleCssForm,variant:`outlined`,disabled:e.isFreeMode},{default:L(()=>[P(D(e.__(`Add External CSS`)),1)]),_:1},8,[`onClick`,`disabled`])]),_:1})):k(``,!0),e.showCssForm?(z(),E(`div`,Rse,[C(AS,{modelValue:e.validCssForm,"onUpdate:modelValue":t[3]||=t=>e.validCssForm=t,ref:`cssForm`,onSubmit:to(e.saveCssUrl,[`prevent`])},{default:L(()=>[w(`div`,zse,[w(`div`,Bse,[w(`h4`,Vse,D(e.__(`CSS URL`)),1),C(l,{onClick:e.toggleCssForm,class:`add-font-cloe-button`,icon:`CloseIcon`,size:`18`},null,8,[`onClick`])]),C(u,{modelValue:e.cssUrl,"onUpdate:modelValue":t[2]||=t=>e.cssUrl=t,rules:[t=>!!t||e.__(`Please enter a value`),t=>e.isValidUrl(t)||e.__(`Please enter a valid URL`)],placeholder:e.__(`URL to CSS file containing Font Face definitions`)},null,8,[`modelValue`,`rules`,`placeholder`]),C(Q,{disabled:e.saveInProgress,type:`submit`,variant:`text`},{default:L(()=>[C(d,{icon:`PlusIcon`,class:`mr-2`}),P(` `+D(e.__(`Add`)),1)]),_:1},8,[`disabled`])])]),_:1},8,[`modelValue`,`onSubmit`])])):k(``,!0),e.internalValue.length>0&&!e.showCssForm?(z(),U(Q,{key:6,onClick:e.toggleCssForm,variant:`outlined`,disabled:e.isFreeMode},{default:L(()=>[P(D(e.__(`Add CSS URL`)),1)]),_:1},8,[`onClick`,`disabled`])):k(``,!0)]),_:1},8,[`save`])}var Use=q(Ase,[[`render`,Hse]]),rD=class extends W{setValue(e){if(!e||this.modelValue===e){this.$emit(`update:model-value`,null);return}this.$emit(`update:model-value`,e)}get activeButton(){return this.items.map(e=>e.value===this.modelValue)}};K([Z()],rD.prototype,`modelValue`,void 0),K([Z({default(){return[]}})],rD.prototype,`items`,void 0),rD=K([J({emits:[`update:model-value`],components:{Icon:X}})],rD);var Wse=Y(rD),Gse={class:`breakdance-big-button-bar`},Kse=[`onClick`],qse={class:`breakdance-big-button-bar-button-text`};function Jse(e,t,n,r,i,a){let o=M(`Icon`);return z(),E(`div`,Gse,[(z(!0),E(H,null,j(e.items,(t,n)=>(z(),E(`div`,{key:n,class:R({"breakdance-big-button-bar-button":!0,"breakdance-big-button-bar-button-active":e.activeButton[n]}),onClick:n=>e.setValue(t.value)},[t.icon?(z(),U(o,{key:0,class:`mb-2`,icon:t.icon||`SquareIcon`,size:`18`},null,8,[`icon`])):k(``,!0),w(`span`,qse,D(t.text),1)],10,Kse))),128))])}var Yse=q(Wse,[[`render`,Jse]]),iD=class extends W{get layout(){return this.options?.layout||`default`}get internalValue(){return this.modelValue}set internalValue(e){if(!e){this.$emit(`update:model-value`,null);return}this.$emit(`update:model-value`,e)}get classes(){return{"breakdance-dense-button-toggle-multiline":this.layout===`multiline`,"breakdance-dense-button-toggle":this.layout===`default`}}};K([Z()],iD.prototype,`modelValue`,void 0),K([Z()],iD.prototype,`placeholder`,void 0),K([Z({default(){return[]}})],iD.prototype,`items`,void 0),K([Z()],iD.prototype,`options`,void 0),iD=K([J({emits:[`update:model-value`],components:{Icon:X}})],iD);var Xse=Y(iD);function Zse(e,t,n,r,i,a){let o=M(`Icon`);return z(),U(ed,{density:`compact`,modelValue:e.internalValue,"onUpdate:modelValue":t[0]||=t=>e.internalValue=t,class:R(e.classes),mandatory:e.options&&e.options.mandatory,multiple:e.options&&e.options.multiple},{default:L(()=>[(z(!0),E(H,null,j(e.items,(t,n)=>(z(),U(Q,{key:n,value:t.value,size:`small`,title:t.text,class:R({"button-as-placeholder":!e.internalValue&&t.value===e.placeholder})},{default:L(()=>[`icon`in t?(z(),U(o,{key:0,icon:t.icon},null,8,[`icon`])):(z(),E(H,{key:1},[P(D(t.text),1)],64))]),_:2},1032,[`value`,`title`,`class`]))),128))]),_:1},8,[`modelValue`,`class`,`mandatory`,`multiple`])}var aD=q(Xse,[[`render`,Zse]]),oD=class extends W{get internalValue(){return this.modelValue}set internalValue(e){this.$emit(`update:model-value`,e)}};K([Z()],oD.prototype,`modelValue`,void 0),K([Z()],oD.prototype,`placeholder`,void 0),K([Z({default(){return[]}})],oD.prototype,`items`,void 0),K([Z()],oD.prototype,`options`,void 0),oD=K([J({emits:[`update:model-value`],components:{BigButtonBar:Yse,ButtonBar:aD}})],oD);var Qse=Y(oD),$se={class:`breakdance-button-bar-input`};function ece(e,t,n,r,i,a){let o=M(`BigButtonBar`),s=M(`ButtonBar`);return z(),E(`div`,$se,[e.options&&e.options.size===`big`?(z(),U(o,{key:0,modelValue:e.internalValue,"onUpdate:modelValue":t[0]||=t=>e.internalValue=t,items:e.items},null,8,[`modelValue`,`items`])):(z(),U(s,{key:1,modelValue:e.internalValue,"onUpdate:modelValue":t[1]||=t=>e.internalValue=t,items:e.items,placeholder:e.placeholder,options:e.options},null,8,[`modelValue`,`items`,`placeholder`,`options`]))])}var sD=q(Qse,[[`render`,ece]]),cD=class extends W{constructor(...e){super(...e),this.panelsState=this.getPanelsInitialState()}get color(){return this.builderMode===`oxygen`?`var(--oxygen-primary-500)`:null}getPanelsInitialState(){let e=[{id:`add`,label:S(`Add`)},{id:`elementproperties`,label:S(`Element Properties`)},{id:`structure`,label:S(`Structure`)},{id:`history`,label:S(`History & Revisions`)}];return I.builderMode===`breakdance`&&(e.push({id:`globalSettings`,label:S(`Global Settings`)}),e.push({id:`selectors`,label:S(`Selectors`)})),I.builderMode===`oxygen`&&(e.push({id:`variables`,label:S(`Variables`)}),e.push({id:`oxySelectors`,label:S(`Selectors`)})),e.map(e=>({...e,value:aee(e.id)}))}get builderMode(){return I.builderMode}setPanelPosition(e,t){let n=this.panelsState.findIndex(t=>t.id===e);this.panelsState[n].value=t,Fl(e,t),F.mode?.mode===`builder`&&(zn(),vn(e))}resetUiPanelPositionsToDefault(){Bee(),this.panelsState=this.getPanelsInitialState()}get arePanelPositionsDefault(){return Sl(uee,this.panelsState.reduce((e,t)=>(e[t.id]=t.value,e),{}))}get panelPositionsAsItems(){return[{text:S(`left`),value:`left`},{text:S(`right`),value:`right`}]}get popoutPositionItems(){return[{text:S(`Stacked`),value:`STACKED`},{text:S(`Stacked (First Visible)`),value:`STACKED_FIRST_VISIBLE`},{text:S(`Side By Side`),value:`SIDE_BY_SIDE`}]}get displayShowExperimentalElementsSetting(){return Cc()}get isDarkMode(){return F.settings.theme===`dark`}get isScaledToFit(){return F.settings.scaleToFit===`SCALED_TO_FIT`}get includeCustomBreakpointsInBreakpointsDropdown(){return F.settings.includeCustomBreakpointsInBreakpointsDropdown}get isShowingIdsInStructurePanel(){return F.settings.showElementIdInStructurePanel}get isTinyMcePreferredForRichText(){return F.settings.isTinyMcePreferredForRichText}get customBreakpointsDocUrl(){return I.builderMode===`oxygen`?`https://oxygenbuilder.com/documentation/settings/preferences/custom-breakpoints/breakpoint-dropdown-limitations/`:`https://breakdance.com/documentation/settings/preferences/custom-breakpoints/breakpoint-dropdown-limitations/`}get unitTypes(){return hl}setScaleToFit(e){this.setUiSettings(Zs(e))}toggleTheme(){let e=T(F.settings);e.theme=this.isDarkMode?`light`:`dark`,this.setUiSettings(e)}setDisableNoticeForEmptySSRElements(e){let t=T(F.settings);t.disableNoticeForEmptySSRElements=e,this.setUiSettings(t)}get disableNoticeForEmptySSRElements(){return F.settings.disableNoticeForEmptySSRElements}get showExperimentalElements(){return F.settings.showExperimentalElements}setShowExperimentalElements(e){let t=T(F.settings);t.showExperimentalElements=e,this.setUiSettings(t)}setIsShowingIdsInStructurePanel(e){let t=T(F.settings);t.showElementIdInStructurePanel=e,this.setUiSettings(t)}setIncludeCustomBreakpointsInBreakpointsDropdown(e){let t=T(F.settings);t.includeCustomBreakpointsInBreakpointsDropdown=e,this.setUiSettings(t)}get defaultUnitType(){return F.settings.defaultUnitType}setDefaultUnitType(e){let t=T(F.settings);t.defaultUnitType=e,this.setUiSettings(t)}get disableCustomUnitDropdown(){return F.settings.disableCustomUnitDropdown}updatedisableCustomUnitDropdown(e){let t=T(F.settings);t.disableCustomUnitDropdown=e,this.setUiSettings(t)}get showPreviousBreakpointValueAsPlaceholder(){return F.settings.showPreviousBreakpointValueAsPlaceholder}setShowPreviousBreakpointValueAsPlaceholder(e){let t=T(F.settings);t.showPreviousBreakpointValueAsPlaceholder=e,this.setUiSettings(t)}get disableCodeMirrorLineWrapping(){return F.settings.disableCodeMirrorLineWrapping}setDisableCodeMirrorLineWrapping(e){let t=T(F.settings);t.disableCodeMirrorLineWrapping=e,this.setUiSettings(t)}setIsTinyMcePreferredForRichText(e){let t=T(F.settings);t.isTinyMcePreferredForRichText=e,this.setUiSettings(t)}get autoScrollEnabled(){return F.settings.autoScrollEnabled}get popoutPosition(){return F.settings.popoutPosition}setAutoScrollEnabled(e){let t=T(F.settings);t.autoScrollEnabled=e,this.setUiSettings(t)}setPopoutPosition(e){let t=T(F.settings);t.popoutPosition=e,this.setUiSettings(t)}setUiSettings(e){let t=_o({...pee,...e});t&&Os(yee,t),F.setSettings(e)}};cD=K([J({components:{DropdownInput:wd,NiceButton:uf,PreferencesPanel:qE,ButtonBarInput:sD,ToggleInput:Yd,AlertBox:cf}})],cD);var tce=Y(cD),nce={class:`mb-4 font-weight-medium`},rce={class:`ui-setting`},ice={class:`ui-setting`},ace={key:0,class:`ui-setting`},oce={key:1,class:`ui-setting`},sce={class:`ui-setting`},cce={class:`ui-setting`},lce={class:`ui-setting`},uce={class:`ui-setting`},dce={class:`ui-setting`},fce={key:3,class:`ui-setting`},pce={class:`ui-setting`},mce={class:`ui-setting`},hce={class:`ui-panel-title`},gce={class:`mt-4`},_ce={class:`mb-4 font-weight-medium`},vce={class:`ui-panel-title`},yce={class:`d-flex align-center justify-space-between mb-3 panel-positions`},bce={class:`ui-panel-title`},xce={class:`d-flex justify-end mt-4`};function Sce(e,t,n,r,i,a){let o=M(`AlertBox`),s=M(`DropdownInput`),c=M(`ButtonBarInput`),l=M(`NiceButton`),u=M(`PreferencesPanel`);return z(),U(u,{"hide-save-button":!0},{title:L(()=>[P(D(e.__(`UI Settings`)),1)]),content:L(()=>[w(`h4`,nce,D(e.__(`Settings`)),1),w(`div`,rce,[C(Td,{"model-value":e.autoScrollEnabled,"onUpdate:modelValue":e.setAutoScrollEnabled,inset:``,label:e.__(`Auto-scroll to active element`),color:e.color},null,8,[`model-value`,`onUpdate:modelValue`,`label`,`color`])]),w(`div`,ice,[C(Td,{"model-value":e.isScaledToFit,"onUpdate:modelValue":e.setScaleToFit,label:e.__(`Scale content to fit the screen (zoom)`),color:e.color,inset:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`,`color`])]),e.builderMode===`breakdance`?(z(),E(`div`,ace,[C(Td,{"model-value":e.isDarkMode,"onUpdate:modelValue":e.toggleTheme,label:e.__(`Dark Mode`),inset:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`])])):k(``,!0),e.displayShowExperimentalElementsSetting?(z(),E(`div`,oce,[C(Td,{"model-value":e.showExperimentalElements,"onUpdate:modelValue":e.setShowExperimentalElements,label:e.__(`Show Experimental Elements`),color:e.color,inset:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`,`color`])])):k(``,!0),w(`div`,sce,[C(Td,{"model-value":e.disableNoticeForEmptySSRElements,"onUpdate:modelValue":e.setDisableNoticeForEmptySSRElements,label:e.__(`Disable Message For Empty SSR Elements`),color:e.color,inset:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`,`color`])]),w(`div`,cce,[C(Td,{"model-value":e.isShowingIdsInStructurePanel,"onUpdate:modelValue":e.setIsShowingIdsInStructurePanel,label:e.__(`Show elements ID in the Structure Panel`),color:e.color,inset:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`,`color`])]),w(`div`,lce,[C(Td,{"model-value":e.disableCodeMirrorLineWrapping,"onUpdate:modelValue":e.setDisableCodeMirrorLineWrapping,label:e.__(`Disable Code Editor Line Wrapping`),color:e.color,inset:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`,`color`])]),w(`div`,uce,[C(Td,{"model-value":e.isTinyMcePreferredForRichText,"onUpdate:modelValue":e.setIsTinyMcePreferredForRichText,label:e.__(`Prefer TinyMCE For Rich Text`),color:e.color,inset:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`,`color`])]),w(`div`,dce,[C(Td,{"model-value":e.includeCustomBreakpointsInBreakpointsDropdown,"onUpdate:modelValue":e.setIncludeCustomBreakpointsInBreakpointsDropdown,label:e.__(`Include Custom Breakpoints in Breakpoint Dropdowns`),color:e.color,inset:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`,`color`])]),e.includeCustomBreakpointsInBreakpointsDropdown?(z(),U(o,{key:2,options:{style:`info`,content:`Limitations May Apply`},class:`mb-5`},null,8,[`options`])):k(``,!0),e.builderMode===`breakdance`?(z(),E(`div`,fce,[C(Td,{"model-value":e.showPreviousBreakpointValueAsPlaceholder,"onUpdate:modelValue":e.setShowPreviousBreakpointValueAsPlaceholder,label:e.__(`Experimental: Show Previous Breakpoint Value As Placeholder`),inset:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`])])):k(``,!0),w(`div`,pce,[C(Td,{"model-value":e.disableCustomUnitDropdown,"onUpdate:modelValue":e.updatedisableCustomUnitDropdown,label:e.__(`Disable Custom Unit Dropdown`),inset:``},null,8,[`model-value`,`onUpdate:modelValue`,`label`])]),w(`div`,mce,[w(`div`,hce,D(e.__(`Default Unit Type`)),1),C(s,{items:e.unitTypes,"model-value":e.defaultUnitType,"onUpdate:modelValue":e.setDefaultUnitType,placeholder:`px`,clearable:!0},null,8,[`items`,`model-value`,`onUpdate:modelValue`])]),w(`div`,gce,[w(`h4`,_ce,D(e.__(`Panel Positions`)),1),(z(!0),E(H,null,j(e.panelsState,(t,n)=>(z(),E(`div`,{key:n,class:`d-flex align-center justify-space-between mb-3 panel-positions`},[w(`div`,vce,D(t.label),1),C(c,{"model-value":t.value,items:e.panelPositionsAsItems,"onUpdate:modelValue":n=>e.setPanelPosition(t.id,n),options:{mandatory:!0}},null,8,[`model-value`,`items`,`onUpdate:modelValue`])]))),128)),w(`div`,yce,[w(`div`,bce,D(e.__(`Popout Position`)),1),C(c,{"model-value":e.popoutPosition,items:e.popoutPositionItems,"onUpdate:modelValue":e.setPopoutPosition,options:{mandatory:!0}},null,8,[`model-value`,`items`,`onUpdate:modelValue`])]),w(`div`,xce,[C(l,{onClick:e.resetUiPanelPositionsToDefault,disabled:e.arePanelPositionsDefault},{default:L(()=>[P(D(e.__(`Reset to defaults`)),1)]),_:1},8,[`onClick`,`disabled`])])])]),_:1})}var Cce=q(tce,[[`render`,Sce]]),wce=Qt(),Tce=Ws(),lD=class extends W{constructor(...e){super(...e),this.tab=0,this.currentTab=0,this.uiSettingsTab=0,this.fontFamiliesTab=1,this.customBreakpointsTab=2,this.saveInProgress=!1,this.hasUnsavedChanges=!1}get preferences(){return I.preferences}get customBreakpoints(){return this.preferences.customBreakpoints}get customFontFamilies(){return I.preferences.customFonts}updateBreakpoints(e){let t=T(this.preferences);t.customBreakpoints=e,this.save(t)}updateCustomFontFamilies(e){let t=T(this.preferences);t.customFonts=e,this.save(t)}handleClickOutside(){return this.checkForUnsavedChanges(),!this.hasUnsavedChanges||confirm(`Exit without saving?`)?this.$emit(`update:dialog`,!1):this}async handleChangeTab(){return this.checkForUnsavedChanges(),this.hasUnsavedChanges&&!confirm(`Exit without saving?`)?(await this.$nextTick(),this.tab=this.currentTab,!0):(this.currentTab=this.tab,!1)}async save(e){this.saveInProgress=!0,(0,wce.pipe)(await Gc(`preferences`,e),(0,Tce.fold)(e=>{Ra(e)},()=>{I.setPreferences(e)})),this.saveInProgress=!1,this.checkForUnsavedChanges()}checkForUnsavedChanges(){return this.currentTab===this.fontFamiliesTab?(this.hasUnsavedChanges=this.customFontFamiliesPanel?.unsavedChangesPresent,this.hasUnsavedChanges):this.currentTab===this.customBreakpointsTab?(this.hasUnsavedChanges=this.customBreakpointsPanel.unsavedChangesPresent,this.hasUnsavedChanges):this.hasUnsavedChanges=!1}};K([Z()],lD.prototype,`open`,void 0),K([Ju()],lD.prototype,`customFontFamiliesPanel`,void 0),K([Ju()],lD.prototype,`customBreakpointsPanel`,void 0),lD=K([J({emits:[`update:dialog`],components:{Icon:X,CustomUiSettings:Cce,CustomFontFamilies:Use,CustomBreakpointsPanel:qoe,Loading:af}})],lD);var Ece=Y(lD),Dce={key:0,class:`flex-grow-1 d-flex justify-center align-center mt-auto mb-auto`},Oce={key:1,class:`flex-grow-1 d-flex flex-row`,style:{overflow:`auto`}},kce={class:`preferences-tab-area`},Ace={class:`preferences-modal-title-text`},jce={class:`flex-grow-1 preferences-content-area`};function Mce(e,t,n,r,i,a){let o=M(`Icon`),s=M(`CustomFontFamilies`),c=M(`CustomBreakpointsPanel`),l=M(`CustomUiSettings`);return z(),E(`div`,null,[C($u,{"content-class":`preferences-modal-dialog`,"model-value":e.open,"onUpdate:modelValue":t[2]||=t=>e.$emit(`update:dialog`,t),"max-width":`780`,persistent:``,"onClick:outside":e.handleClickOutside},{default:L(()=>[C(td,{class:`d-flex flex-column`,height:`100%`},{default:L(()=>[e.saveInProgress===!0?(z(),E(`div`,Dce,[C(Du,{size:100,indeterminate:``})])):(z(),E(`div`,Oce,[w(`div`,kce,[w(`h2`,Ace,D(e.__(`Preferences`)),1),C(ud,{direction:`vertical`,modelValue:e.tab,"onUpdate:modelValue":[t[0]||=t=>e.tab=t,e.handleChangeTab],class:`breakdance-tabs`},{default:L(()=>[C(cd,{class:`breakdance-tabs__tab`},{default:L(()=>[C(o,{class:`ml-1 mr-3`,icon:`SlidersIcon`,size:`16`}),P(` `+D(e.__(`UI Settings`)),1)]),_:1}),C(cd,{class:`breakdance-tabs__tab`},{default:L(()=>[C(o,{class:`ml-1 mr-3`,icon:`FontIcon`,size:`16`}),P(` `+D(e.__(`Custom Fonts`)),1)]),_:1}),C(cd,{class:`breakdance-tabs__tab`},{default:L(()=>[C(o,{class:`ml-1 mr-3`,size:`16`,icon:`BreakpointsIcon`}),P(` `+D(e.__(`Breakpoints`)),1)]),_:1})]),_:1},8,[`modelValue`,`onUpdate:modelValue`])]),w(`button`,{class:`preferences-close-button`,onClick:t[1]||=(...t)=>e.handleClickOutside&&e.handleClickOutside(...t)},[C(o,{class:``,size:`20`,icon:`CloseIcon`})]),w(`div`,jce,[e.currentTab===e.fontFamiliesTab?(z(),U(s,{key:0,"model-value":e.customFontFamilies,"onUpdate:modelValue":e.updateCustomFontFamilies,ref:`customFontFamiliesPanel`},null,8,[`model-value`,`onUpdate:modelValue`])):k(``,!0),e.currentTab===e.customBreakpointsTab?(z(),U(c,{key:1,"model-value":e.customBreakpoints,"onUpdate:modelValue":e.updateBreakpoints,ref:`customBreakpointsPanel`},null,8,[`model-value`,`onUpdate:modelValue`])):k(``,!0),e.currentTab===e.uiSettingsTab?(z(),U(l,{key:2})):k(``,!0)])]))]),_:1})]),_:1},8,[`model-value`,`onClick:outside`])])}var uD=q(Ece,[[`render`,Mce]]),dD=class extends W{constructor(...e){super(...e),this.shortcuts=[{shortcut:[`CMD_A`],description:S(`Open add elements panel`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_B`],description:S(`Open design sets modal`),availableIn:[`breakdance`]},{shortcut:[`CMD_SHIFT_E`],description:S(`Open structure panel`),availableIn:[`oxygen`]},{shortcut:[`CMD_SHIFT_V`],description:S(`Open variables panel`),availableIn:[`oxygen`]},{shortcut:[`CMD_SHIFT_G`],description:S(`Open selectors panel`),availableIn:[`oxygen`]},{shortcut:[`CMD_S`],description:S(`Save`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_Z`],description:S(`Undo`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_SHIFT_Z`],description:S(`Redo`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_C`],description:S(`Copy the active element`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_V`],description:S(`Paste copied element`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_D`],description:S(`Duplicate the active element`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`ESC`],description:S(`De-activate the active element or close modal`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`SHIFT_ESC`],description:S(`Go to the parent of the active element`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`BACKSPACE`,`DELETE`],description:S(`Delete active element`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_OPTION_R`],description:S(`Cycle to the next breakpoint`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_SHIFT_SLASH`,`CMD_QUESTION`],description:S(`Show keyboard shortcuts help modal`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_SHIFT_S`],description:S(`Switch between 'scale to fit' and 'actual size' content`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_E`],description:S(`Open the rich text editor modal. Only when the Rich Text element is selected`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`C_S_S`],description:S(`Open the active element's Advanced → Custom CSS and focus it.`),availableIn:[`breakdance`]},{shortcut:[`C_L_A`],description:S(`Open the active element's Advanced → Classes autocomplete and focus it.`),availableIn:[`breakdance`]},{shortcut:[`F`],description:S(`Focus the properties search box.`),availableIn:[`breakdance`]},{shortcut:[`SHIFT_F`],description:S(`Focus the properties search box and toggle the option to search advanced settings (element properties panel only).`),availableIn:[`breakdance`]},{shortcut:[`CMD_I`],description:S(`Toggle the modified option in the properties search box.`),availableIn:[`breakdance`]},{shortcut:[`OPTION_P`],description:S(`Toggle the preview mode.`),availableIn:[`breakdance`,`oxygen`]},{shortcut:[`CMD_ALT_E`],description:S(`Open the Element Studio panel.`),availableIn:[`breakdance`,`oxygen`]}]}get builderMode(){return I.builderMode||`breakdance`}get filteredShortcuts(){return this.shortcuts.filter(e=>e.availableIn.includes(this.builderMode)).map(e=>{let t=e.shortcut.map(this.getKeyboardShortcutValue).join(`
`);return{...e,shortcut:t}})}getKeyboardShortcutValue(e){let t=Kr[e],n=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),r=t?t[0]:``;return!n&&t.length==2&&(r=t[1]),r.toUpperCase().split(`+`).join(` + `)}};K([Z()],dD.prototype,`open`,void 0),dD=K([J({emits:[`update:dialog`],components:{}})],dD);var Nce=Y(dD),Pce={class:`styled-table`},Fce=[`innerHTML`];function Ice(e,t,n,r,i,a){return z(),E(`div`,null,[C($u,{"content-class":`keyboard-shortcuts-help-modal`,"model-value":e.open,"onUpdate:modelValue":t[0]||=t=>e.$emit(`update:dialog`,!1),"max-width":`850`},{default:L(()=>[C(td,{class:`d-flex flex-column`},{default:L(()=>[C(Qu,null,{default:L(()=>[w(`table`,Pce,[w(`thead`,null,[w(`tr`,null,[w(`th`,null,D(e.__(`Shortcut`)),1),w(`th`,null,D(e.__(`Description`)),1)])]),w(`tbody`,null,[(z(!0),E(H,null,j(e.filteredShortcuts,(e,t)=>(z(),E(`tr`,{key:t},[w(`td`,{innerHTML:e.shortcut},null,8,Fce),w(`td`,null,D(e.description),1)]))),128))])])]),_:1})]),_:1})]),_:1},8,[`model-value`])])}var Lce=q(Nce,[[`render`,Ice]]),fD=class extends W{constructor(...e){super(...e),this.lastMouseX=0}draggingFunc(e){e.preventDefault(),this.onDragging(e,this.lastMouseX),this.lastMouseX=e.clientX}dragStart(e){e.preventDefault(),e.stopPropagation(),document.addEventListener(`mousemove`,this.draggingFunc),document.addEventListener(`mouseup`,this.dragEnd),this.lastMouseX=e.clientX,document.getElementById(`iframe`).style.pointerEvents=`none`}dragEnd(e){e.preventDefault(),document.removeEventListener(`mousemove`,this.draggingFunc),document.removeEventListener(`mouseup`,this.dragEnd),document.getElementById(`iframe`).style.pointerEvents=`auto`}};K([Z()],fD.prototype,`onDragging`,void 0),fD=K([J({})],fD);var Rce=Y(fD);function zce(e,t,n,r,i,a){return z(),E(`div`,O(e.$attrs,{class:`breakdance-element-studio-adjustment-handle`,onMousedown:t[0]||=(...t)=>e.dragStart&&e.dragStart(...t)}),[Di(e.$slots,`default`)],16)}var Bce=q(Rce,[[`render`,zce]]),pD=class extends W{dragging(e,t){this.$emit(`change`,-1*(e.clientX-t))}};pD=K([J({emits:[`change`],components:{ElementStudioWidthAdjustmentBarAdjustmentHandle:Bce}})],pD);var Vce=Y(pD);function Hce(e,t,n,r,i,a){let o=M(`ElementStudioWidthAdjustmentBarAdjustmentHandle`);return z(),U(o,{class:`element-studio-width-adjustment-bar`,"on-dragging":e.dragging},null,8,[`on-dragging`])}var mD=q(Vce,[[`render`,Hce]]),hD=class extends W{constructor(...e){super(...e),this.newItemDialog=!1,this.newItemName=``,this.newItemSaveLocation=!1}nameIsValid(e){return Oo(e)}get showAdvancedFeatures(){return Cc()||I.isElementStudioPowerUser}escapeHtml(e){let t=document.createElement(`div`);return t.textContent=e,t.innerHTML}get customElementsLink(){return`${this.escapeHtml(S(`Custom Elements`))}`}get noSaveLocationMessage(){return uo(S(`Error: no registered saving locations. Using the %s plugin will automatically register a saving location.`),this.customElementsLink)}showSaveLocation(e){return e.type===this.itemType?e.onlyForAdvancedUsers?this.showAdvancedFeatures:!0:!1}saveNewItem(){this.$emit(`update:model-value`,{...this.newItemSaveLocation,name:this.newItemName}),this.closeNewItemDialog()}closeNewItemDialog(){this.newItemDialog=!1,this.newItemName=``,this.newItemSaveLocation=!1,this.$emit(`close`)}};K([Z()],hD.prototype,`saveLocations`,void 0),K([Z()],hD.prototype,`itemType`,void 0),hD=K([J({emits:[`update:model-value`,`close`],components:{Icon:X}})],hD);var Uce=Y(hD),Wce=[`innerHTML`];function Gce(e,t,n,r,i,a){return z(),U($u,{"model-value":!0,"max-width":`400`,persistent:``},{default:L(()=>[C(td,null,{default:L(()=>[C(Xu,{class:`text-h5`},{default:L(()=>[P(D(e.sprintf(e._doc(`Create new %s`,`%s: Item type (element, macro, preset)`),e.itemType)),1)]),_:1}),C(Qu,{class:`pb-1`},{default:L(()=>[w(`div`,null,D(e.sprintf(e._doc(`Please enter the %s's name.`,`%s: Item type (element, macro, preset)`),e.itemType)),1)]),_:1}),C(Qu,null,{default:L(()=>[C(xd,{modelValue:e.newItemName,"onUpdate:modelValue":t[0]||=t=>e.newItemName=t,rules:[e.nameIsValid],label:e.__(`Name`)},null,8,[`modelValue`,`rules`,`label`]),e.saveLocations.length?(z(),U(IS,{key:1,modelValue:e.newItemSaveLocation,"onUpdate:modelValue":t[1]||=t=>e.newItemSaveLocation=t,mandatory:``},{label:L(()=>[P(D(e.__(`Select a saving location`)),1)]),default:L(()=>[(z(!0),E(H,null,j(e.saveLocations,t=>(z(),E(H,null,[e.showSaveLocation(t)?(z(),U(PS,{key:t.directoryPath,label:t.label,value:t},null,8,[`label`,`value`])):k(``,!0)],64))),256))]),_:1},8,[`modelValue`])):(z(),E(`b`,{key:0,innerHTML:e.noSaveLocationMessage},null,8,Wce))]),_:1}),C(Zu,null,{default:L(()=>[C(ld),C(Q,{color:`green-darken-1`,variant:`text`,onClick:e.closeNewItemDialog},{default:L(()=>[P(D(e.__(`Cancel`)),1)]),_:1},8,[`onClick`]),C(Q,{color:`blue-darken-1`,variant:`text`,onClick:e.saveNewItem,disabled:e.nameIsValid(e.newItemName)!==!0||!e.newItemSaveLocation},{default:L(()=>[P(D(e.__(`Create`)),1)]),_:1},8,[`onClick`,`disabled`])]),_:1})]),_:1})]),_:1})}var gD=q(Uce,[[`render`,Gce]]),_D=class extends W{constructor(...e){super(...e),this.deleteDialog=!1,this.availableItemsSearch=``,this.closeItemOrPanelDialog=!1,this.showNewItemDialog=!1}mounted(){document.addEventListener(`breakdanceSaveButtonClicked`,this.mainAppSaveButtonClicked),this.warnIfUnsavedFunction=df(()=>this.hasUnsavedChanges)}unmounted(){document.removeEventListener(`breakdanceSaveButtonClicked`,this.mainAppSaveButtonClicked)}beforeUnmount(){ff(this.warnIfUnsavedFunction)}handleNewItem(){this.showNewItemDialog=!0}get availableSaveLocations(){return this.saveLocations.filter(e=>this.showSaveLocation(e))}get availableItemsBySearch(){return this.itemsSlug.filter(e=>e.toLowerCase().includes(this.availableItemsSearch.toLowerCase().replace(/ /g,``)))}get canDeleteElement(){return this.value?this.availableSaveLocations.find(e=>this.value&&this.value.directoryPath&&this.value.directoryPath.startsWith(e.directoryPath)):!1}discardChanges(){this.closeItemOrPanelDialog===`panel`&&F.toggleElementStudio(),this.closeItemOrPanelDialog=!1,this.$emit(`discardChanges`)}mainAppSaveButtonClicked(){this.hasUnsavedChanges&&confirm(`Also save your Element Studio ${this.itemType}?`)&&this.saveOverwrite(!1)}openItem(e){this.availableItemsSearch=``,this.$emit(`open`,e)}closeItem(){this.hasUnsavedChanges?this.closeItemOrPanelDialog=`item`:this.$emit(`reset`)}closePanel(){this.hasUnsavedChanges?this.closeItemOrPanelDialog=`panel`:F.toggleElementStudio()}saveNewItem(e){this.$emit(`saveNew`,e)}saveAs(e){this.$emit(`saveAs`,e)}saveOverwrite(e){!this.value||!this.value.directoryPath||!this.canSaveOrIsAdvancedUser||this.$emit(`saveOverride`,e)}showSaveLocation(e){return e.type===this.itemType?e.onlyForAdvancedUsers?this.showAdvancedFeatures:!0:!1}get showAdvancedFeatures(){return Cc()||I.isElementStudioPowerUser}get canSaveOrIsAdvancedUser(){return this.value&&(!this.value.onlyForAdvancedUsers||this.showAdvancedFeatures)}deleteItem(){this.deleteDialog=!1,this.$emit(`delete`)}switchMode(){this.$emit(`switchMode`)}};K([Z()],_D.prototype,`value`,void 0),K([Z()],_D.prototype,`saveLocations`,void 0),K([Z()],_D.prototype,`hasUnsavedChanges`,void 0),K([Z()],_D.prototype,`itemType`,void 0),K([Z()],_D.prototype,`itemName`,void 0),K([Z()],_D.prototype,`saveInProgress`,void 0),K([Z()],_D.prototype,`itemsSlug`,void 0),_D=K([J({emits:[`discardChanges`,`open`,`reset`,`saveNew`,`saveAs`,`saveOverride`,`delete`,`switchMode`],components:{ElementStudioSaveNewDialog:gD,NiceButton:uf,Icon:X,Dropdown:nf}})],_D);var Kce=Y(_D),qce={class:`element-studio-top-bar d-flex`},Jce={class:`d-flex ml-4`},Yce={key:1,class:`d-flex align-center flex-wrap`},Xce={class:`mr-2 element-studio-element-name`},Zce={key:0},Qce={key:1};function $ce(e,t,n,r,i,a){let o=M(`ElementStudioSaveNewDialog`),s=M(`Icon`),c=M(`Dropdown`),l=M(`NiceButton`);return z(),E(`div`,qce,[e.showNewItemDialog?(z(),U(o,{key:0,"onUpdate:modelValue":e.saveNewItem,onClose:t[0]||=t=>e.showNewItemDialog=!1,"save-locations":e.saveLocations,"item-type":e.itemType},null,8,[`onUpdate:modelValue`,`save-locations`,`item-type`])):k(``,!0),w(`div`,Jce,[e.value?k(``,!0):(z(),E(H,{key:0},[C(c,{"close-on-content-click":!1},{activator:L(({props:t})=>[C(Q,O(t,{variant:`text`,disabled:e.itemsSlug.length===0,"data-test-id":`element-studio-open-element`}),{default:L(()=>[C(s,{icon:`OpenFolderIcon`,class:`mr-2`,size:`18`}),P(` `+D(e.sprintf(e._xdoc(`Open %s`,`Element Studio Item Type`,`Element Studio. %s: Item type (element, macro, preset)`),e.itemType)),1)]),_:1},16,[`disabled`])]),default:L(()=>[C(Nu,{style:{"max-height":`500px`,overflow:`auto`}},{default:L(()=>[C(xd,{style:{padding:`12px 16px`,"margin-bottom":`24px`},class:`breakdance-element-studio-searchbar`,label:e.sprintf(e._doc(`Search %ss`,`Element Studio. %s: Item type (element, macro, preset)`),e.itemType),flat:``,modelValue:e.availableItemsSearch,"onUpdate:modelValue":t[1]||=t=>e.availableItemsSearch=t,"hide-details":!1,autofocus:``},null,8,[`label`,`modelValue`]),(z(!0),E(H,null,j(e.availableItemsBySearch,(t,n)=>(z(),U(Mu,{density:`compact`,key:n,onClick:n=>e.openItem(t)},{default:L(()=>[C(ju,null,{default:L(()=>[P(D(t),1)]),_:2},1024)]),_:2},1032,[`onClick`]))),128))]),_:1})]),_:1}),C(Q,{class:`ml-2`,variant:`text`,"data-test-id":`element-studio-new-element-button`,onClick:e.handleNewItem},{default:L(()=>[C(s,{icon:`AddFileIcon`,class:`mr-2`}),P(` `+D(e.sprintf(e._xdoc(`New %s`,`Element Studio`,`Element Studio. %s: Item type (element, macro, preset)`),e.itemType)),1)]),_:1},8,[`onClick`])],64)),e.value?(z(),E(`div`,Yce,[w(`div`,Xce,D(e.itemName),1),C(c,null,{activator:L(({props:n})=>[w(`div`,null,[e.value.directoryPath&&e.canSaveOrIsAdvancedUser?(z(),U(l,O({key:0,loading:e.saveInProgress,class:`ma-2`},n,{onContextmenu:to(n.onClick,[`prevent`]),onClick:t[2]||=t=>e.saveOverwrite(!1),"data-test-id":`element-studio-save-button`,title:e.__(`Save element`),"left-icon":`SaveIcon`}),{default:L(()=>[P(D(e.__(`Save`)),1)]),_:1},16,[`loading`,`onContextmenu`,`title`])):!e.value.directoryPath||e.value.onlyForAdvancedUsers?(z(),U(l,O({key:1,loading:e.saveInProgress,class:`ma-2`},n,{onContextmenu:to(n.onClick,[`prevent`]),"data-test-id":`element-studio-save-button`,title:e.__(`Save element`),"left-icon":`SaveIcon`}),{default:L(()=>[P(D(e.__(`Save`)),1)]),_:1},16,[`loading`,`onContextmenu`,`title`])):k(``,!0)])]),default:L(()=>[C(Nu,null,{default:L(()=>[e.value.directoryPath?(z(),E(H,{key:0},[e.showAdvancedFeatures?(z(),U(Mu,{key:0,density:`compact`,onClick:t[3]||=t=>e.saveOverwrite(!0)},{default:L(()=>[C(ju,null,{default:L(()=>[w(`h3`,null,D(e.__(`Save & Bypass Psalm...`)),1)]),_:1})]),_:1})):e.canSaveOrIsAdvancedUser?(z(),U(Mu,{key:1,density:`compact`,onClick:t[4]||=t=>e.saveOverwrite(!0)},{default:L(()=>[C(ju,null,{default:L(()=>[w(`h3`,null,D(e.__(`Save`)),1)]),_:1})]),_:1})):k(``,!0)],64)):k(``,!0),C(Mu,{density:`compact`},{default:L(()=>[C(ju,null,{default:L(()=>[e.availableSaveLocations.length?(z(),E(`h3`,Zce,D(e.__(`Save A Copy In:`)),1)):(z(),E(`div`,Qce,[...t[8]||=[P(` Enable saving elements by `,-1),w(`a`,{href:`https://github.com/soflyy/breakdance-custom-elements/`,target:`_blank`},`adding a save location.`,-1)]]))]),_:1})]),_:1}),(z(!0),E(H,null,j(e.availableSaveLocations,(t,n)=>(z(),U(Mu,{key:n,density:`compact`,onClick:n=>e.saveAs(t)},{default:L(()=>[C(ju,null,{default:L(()=>[P(D(t.label)+` » `,1)]),_:2},1024)]),_:2},1032,[`onClick`]))),128))]),_:1})]),_:1}),e.canDeleteElement?(z(),U($u,{key:0,modelValue:e.deleteDialog,"onUpdate:modelValue":t[6]||=t=>e.deleteDialog=t,"max-width":`360`},{activator:L(({props:t})=>[C(l,O(t,{elevation:`0`,class:`mr-2`,"data-test-id":`element-studio-delete-button`,title:`Delete element`,"left-icon":`TrashIcon`}),{default:L(()=>[P(D(e.__(`Delete`)),1)]),_:1},16)]),default:L(()=>[C(td,null,{default:L(()=>[C(Xu,{class:`text-subtitle-1`},{default:L(()=>[P(` Delete "`+D(e.itemName)+`" `+D(e.itemType)+`? `,1)]),_:1}),C(Qu,null,{default:L(()=>[P(D(e.__(`This action cannot be undone.`)),1)]),_:1}),C(Zu,null,{default:L(()=>[C(ld),C(Q,{variant:`text`,onClick:t[5]||=t=>e.deleteDialog=!1},{default:L(()=>[P(D(e.__(`Cancel`)),1)]),_:1}),C(Q,{color:`red-darken-1`,variant:`text`,onClick:e.deleteItem},{default:L(()=>[P(D(e.__(`Delete`)),1)]),_:1},8,[`onClick`])]),_:1})]),_:1})]),_:1},8,[`modelValue`])):k(``,!0),C(Q,{icon:``,onClick:e.closeItem,"data-test-id":`element-studio-close-element`,title:e.sprintf(e.__(`Close %s`),e.itemType)},{default:L(()=>[C(s,{icon:`CloseSquareIcon`})]),_:1},8,[`onClick`,`title`])])):k(``,!0)]),C(ld),e.value?(z(),U(Q,{key:1,icon:``,onClick:e.switchMode,class:`mr-1 element-studio-switch-mode`,title:e.__(`Switch mode`),"data-test-id":`element-studio-topbar-switch-mode`},{default:L(()=>[C(s,{icon:`TableColumnIcon`,size:`18`})]),_:1},8,[`onClick`,`title`])):k(``,!0),C(Q,{icon:``,onClick:e.closePanel,class:`mr-4 element-studio-close-panel`,title:e.__(`Close Element Studio Panel`)},{default:L(()=>[C(s,{icon:`CloseCircleIcon`,size:`18`})]),_:1},8,[`onClick`,`title`]),C($u,{"model-value":!!e.closeItemOrPanelDialog,persistent:``,"max-width":`400`},{default:L(()=>[C(td,null,{default:L(()=>[C(Xu,{class:`text-h5`},{default:L(()=>[P(D(e.__(`You have unsaved changes`)),1)]),_:1}),C(Qu,null,{default:L(()=>[P(D(e.sprintf(e._doc(`Please save your changes before closing this %s, or discard your changes.`,`%s: Item type (element, macro, preset)`),e.itemType)),1)]),_:1}),C(Zu,null,{default:L(()=>[C(ld),C(Q,{color:`red-darken-1`,variant:`text`,onClick:e.discardChanges},{default:L(()=>[P(D(e.__(`Discard my changes`)),1)]),_:1},8,[`onClick`]),C(Q,{color:`blue-darken-1`,variant:`text`,onClick:t[7]||=t=>e.closeItemOrPanelDialog=!1},{default:L(()=>[P(D(e.__(`I'll save them`)),1)]),_:1})]),_:1})]),_:1})]),_:1},8,[`model-value`])])}var vD=q(Kce,[[`render`,$ce]]);function yD(e){Object.getOwnPropertySymbols(e).forEach(t=>{$k[t]=e[t]})}function bD(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:iA}}function xD(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=iA){return e&&(s?(e.helper(yk),e.helper(ND(e.inSSR,l))):e.helper(MD(e.inSSR,l)),o&&e.helper(jk)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function SD(e,t=iA){return{type:17,loc:t,elements:e}}function CD(e,t=iA){return{type:15,loc:t,properties:e}}function wD(e,t){return{type:16,loc:iA,key:Br(e)?TD(e,!0):e,value:t}}function TD(e,t=!1,n=iA,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ele(e,t){return{type:5,loc:t,content:Br(e)?TD(e,!1,t):e}}function ED(e,t=iA){return{type:8,loc:t,children:e}}function DD(e,t=[],n=iA){return{type:14,loc:n,callee:e,arguments:t}}function OD(e,t=void 0,n=!1,r=!1,i=iA){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function kD(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:iA}}function AD(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:iA}}function jD(e){return{type:21,body:e,loc:iA}}function tle(e){return{type:22,elements:e,loc:iA}}function nle(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:iA}}function rle(e,t){return{type:24,left:e,right:t,loc:iA}}function ile(e){return{type:25,expressions:e,loc:iA}}function ale(e){return{type:26,returns:e,loc:iA}}function MD(e,t){return e||t?Sk:Ck}function ND(e,t){return e||t?bk:xk}function PD(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(MD(r,e.isComponent)),t(yk),t(ND(r,e.isComponent)))}function FD(e){return e>=97&&e<=122||e>=65&&e<=90}function ID(e){return e===32||e===10||e===9||e===12||e===13}function LD(e){return e===47||e===62||ID(e)}function RD(e){let t=new Uint8Array(e.length);for(let n=0;n{e&&KD(e,t)});break;case`RestElement`:KD(e.argument,t);break;case`AssignmentPattern`:KD(e.left,t);break}return t}function qD(e){return gA.includes(e.type)?qD(e.expression):e}function JD(e){switch(e){case`Teleport`:case`teleport`:return hk;case`Suspense`:case`suspense`:return gk;case`KeepAlive`:case`keep-alive`:return _k;case`BaseTransition`:case`base-transition`:return vk}}function hle(e,t,n=t.length){return YD({offset:e.offset,line:e.line,column:e.column},t,n)}function YD(e,t,n=t.length){let r=0,i=-1;for(let e=0;ee.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function eO(e){return e.type===5||e.type===2}function tO(e){return e.type===7&&e.name===`pre`}function nO(e){return e.type===7&&e.name===`slot`}function rO(e){return e.type===1&&e.tagType===3}function iO(e){return e.type===1&&e.tagType===2}function aO(e,t=[]){if(e&&!Br(e)&&e.type===14){let n=e.callee;if(!Br(n)&&jA.has(n))return aO(e.arguments[0],t.concat(e))}return[e,t]}function oO(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!Br(i)&&i.type===14){let e=aO(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||Br(i))r=CD([t]);else if(i.type===14){let e=i.arguments[0];!Br(e)&&e.type===15?sO(t,e)||e.properties.unshift(t):i.callee===Vk?r=DD(n.helper(Ik),[CD([t]),i]):i.arguments.unshift(CD([t])),!r&&(r=i)}else i.type===15?(sO(t,i)||i.properties.unshift(t),r=i):(r=DD(n.helper(Ik),[CD([t]),i]),o&&o.callee===Bk&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function sO(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function cO(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function lO(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;nlO(e,t));case 11:return lO(e.source,t)?!0:e.children.some(e=>lO(e,t));case 9:return e.branches.some(e=>lO(e,t));case 10:return lO(e.condition,t)?!0:e.children.some(e=>lO(e,t));case 4:return!e.isStatic&&yA(e.content)&&!!t[e.content];case 8:return e.children.some(e=>Il(e)&&lO(e,t));case 5:case 12:return lO(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function uO(e){return e.type===14&&e.callee===Zk?e.arguments[1].returns:e}function dO(e){for(let t=0;t{let i=t.start.offset+n;return TO(e,!1,CO(i,i+e.length),0,r?1:0)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(JA,``).trim(),l=i.indexOf(c),u=c.match(qA);if(u){c=c.replace(qA,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function mO(e,t){return IA.slice(e,t)}function hO(e){KA.inSFCRoot&&(LA.innerLoc=CO(e+1,e+1)),SO(LA);let{tag:t,ns:n}=LA;n===0&&PA.isPreTag(t)&&HA++,PA.isVoidTag(t)?_O(LA,e):(GA.unshift(LA),(n===1||n===2)&&(KA.inXML=!0)),LA=null}function gO(e,t,n){{let t=GA[0]&&GA[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=PA.decodeEntities(e,!1))}let r=GA[0]||FA,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,wO(i.loc,n)):r.children.push({type:2,content:e,loc:CO(t,n)})}function _O(e,t,n=!1){n?wO(e.loc,vO(t,60)):wO(e.loc,vle(t,62)+1),KA.inSFCRoot&&(e.children.length?e.innerLoc.end=En({},e.children[e.children.length-1].loc.end):e.innerLoc.end=En({},e.innerLoc.start),e.innerLoc.source=mO(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(UA||(r===`slot`?e.tagType=2:yO(e)?e.tagType=3:yle(e)&&(e.tagType=1)),KA.inRCDATA||(e.children=bO(a)),i===0&&PA.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&PA.isPreTag(r)&&HA--,WA===e&&(UA=KA.inVPre=!1,WA=null),KA.inXML&&(GA[0]?GA[0].ns:PA.ns)===0&&(KA.inXML=!1);{let t=e.props;if(!KA.inSFCRoot&&BD(`COMPILER_NATIVE_TEMPLATE`,PA)&&e.tag===`template`&&!yO(e)){let t=GA[0]||FA,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}let n=t.find(e=>e.type===6&&e.name===`inline-template`);n&&VD(`COMPILER_INLINE_TEMPLATE`,PA,n.loc)&&e.children.length&&(n.value={type:2,content:mO(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function vle(e,t){let n=e;for(;IA.charCodeAt(n)!==t&&n=0;)n--;return n}function yO({tag:e,props:t}){if(e===`template`){for(let e=0;e64&&e<91}function bO(e){let t=PA.whitespace!==`preserve`,n=!1;for(let r=0;re.type!==3);return t.length===1&&t[0].type===1&&!iO(t[0])?t[0]:null}function kO(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&MO(s,n)>=2){let t=NO(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:AO(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,kO(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)kO(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;te.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function AO(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=MO(e,t);if(a===0)return n.set(e,0),0;a1)for(let i=0;in&&(te.childIndex--,te.onNodeRemoved()),te.parent.children.splice(n,1)},onNodeRemoved:Ao,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){Br(e)&&(e=TD(e)),te.hoists.push(e);let t=TD(`_hoisted_${te.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=AD(te.cached.length,e,t,n);return te.cached.push(r),r}};return te.filters=new Set,te}function FO(e,t){let n=PO(e,t);IO(e,n),t.hoistStatic&&Tle(e,n),t.ssr||Ele(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Ele(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=OO(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&PD(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=xD(t,n(mk),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function Dle(e,t){let n=0,r=()=>{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(nO))return;let a=[];for(let o=0;o0,p=!a&&r!==`module`;if(kle(e,n),i(`function ${u?`ssrRender`:`render`}(${(u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`]).join(`, `)}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map($A).join(`, `)} } = _Vue +`,-1),c())),e.components.length&&(zO(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(zO(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),zO(e.filters,`filter`,n),c()),e.temps>0){i(`let `);for(let t=0;t0?`, `:``}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` +`,0),c()),u||i(`return `),e.codegenNode?HO(e.codegenNode,n):i(`null`),p&&(s(),i(`}`)),s(),i(`}`),{ast:e,code:n.code,preamble:``,map:n.map?n.map.toJSON():void 0}}function kle(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:o,runtimeGlobalName:s,ssrRuntimeModuleName:c}=t,l=s,u=Array.from(e.helpers);u.length>0&&(i(`const _Vue = ${l} +`,-1),e.hoists.length&&i(`const { ${[Sk,Ck,wk,Tk,Ek].filter(e=>u.includes(e)).map($A).join(`, `)} } = _Vue +`,-1)),Ale(e.hoists,t),a(),i(`return `)}function zO(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?Ak:t===`component`?Dk:kk);for(let n=0;n3||!1;t.push(`[`),n&&t.indent(),VO(e,t,n),n&&t.deindent(),t.push(`]`)}function VO(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;oe||`null`)}function Lle(e,t){let{push:n,helper:r,pure:i}=t,a=Br(e.callee)?e.callee:r(e.callee);i&&n(QA),n(a+`(`,-2,e),VO(e.arguments,t),n(`)`)}function Rle(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||!1;n(s?`{`:`{ `),s&&r();for(let e=0;e `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),st(o)?BO(o,t):HO(o,t)):s&&HO(s,t),(c||s)&&(i(),n(`}`)),l&&(e.isNonScopedSlot&&n(`, undefined, true`),n(`)`))}function Vle(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!yA(n.content);e&&o(`(`),UO(n,t),e&&o(`)`)}else o(`(`),HO(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),HO(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,HO(i,t),u||t.indentLevel--,a&&c(!0)}function Hle(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(Gk)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),HO(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(Gk)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}function GO(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function KO(e){return Br(e)?e:e.type===4?e.content:e.children.map(KO).join(``)}function qO(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(WD(28,t.loc)),t.exp=TD(`true`,!1,r)}if(t.name===`if`){let i=JO(e,t),a={type:9,loc:Sle(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=i.indexOf(e);for(;a-->=-1;){let o=i[a];if(o&&pO(o)){n.removeNode(o);continue}if(o&&o.type===9){(t.name===`else-if`||t.name===`else`)&&o.branches[o.branches.length-1].condition===void 0&&n.onError(WD(30,e.loc)),n.removeNode();let i=JO(e,t);o.branches.push(i);let a=r&&r(o,i,!1);IO(i,n),a&&a(),n.currentNode=null}else n.onError(WD(30,e.loc));break}}}function JO(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!XD(e,`for`)?e.children:[e],userKey:ZD(e,`key`),isTemplateIf:n}}function YO(e,t,n){return e.condition?kD(e.condition,XO(e,t,n),DD(n.helper(wk),[`""`,`true`])):XO(e,t,n)}function XO(e,t,n){let{helper:r}=n,i=wD(`key`,TD(`${t}`,!1,iA,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return oO(e,i,n),e}else return xD(n,r(mk),CD([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{let e=o.codegenNode,t=uO(e);return t.type===13&&PD(t,n),oO(t,i,n),e}}function Ule(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}function ZO(e,t,n,r){if(!t.exp){n.onError(WD(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(WD(32,t.loc));return}QO(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:rO(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function QO(e,t){e.finalized||=!0}function $O({value:e,key:t,index:n},r=[]){return Wle([e,t,n,...r])}function Wle(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||TD(`_`.repeat(t+1),!1))}function ek(e,t,n=oj){t.helper(Jk);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=XD(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!_A(e)&&(s=!0),a.push(wD(e||TD(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),wD(`default`,a)};l?d.length&&!d.every(fO)&&(u?t.onError(WD(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:nk(e.children)?3:1,h=CD(a.concat(wD(`_`,TD(m+``,!1))),i);return o.length&&(h=DD(t.helper(Pk),[h,SD(o)])),{slots:h,hasDynamicSlots:s}}function tk(e,t,n){let r=[wD(`name`,e),wD(`fn`,t)];return n!=null&&r.push(wD(`key`,TD(String(n),!0))),CD(r)}function nk(e){for(let t=0;t0,p=!1,m=0,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=[],S=e=>{l.length&&(u.push(CD(ak(l),s)),l=[]),e&&u.push(e)},ee=()=>{t.scopes.vFor>0&&l.push(wD(TD(`ref_for`,!0),TD(`true`)))},te=({key:e,value:n})=>{if(_A(e)){let a=e.content,o=xe(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!Qr(a)&&(v=!0),o&&Qr(a)&&(b=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&AO(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?_=!0:a!==`key`&&!x.includes(a)&&x.push(a),r&&(a===`class`||a===`style`)&&!x.includes(a)&&x.push(a)}else y=!0};for(let i=0;ie.content===`prop`)&&(m|=32);let x=t.directiveTransforms[n];if(x){let{props:n,needRuntime:r}=x(c,e,t);!a&&n.forEach(te),b&&i&&!_A(i)?S(CD(n,s)):l.push(...n),r&&(d.push(c),pi(r)&&sj.set(c,r))}else Ut(n)||(d.push(c),f&&(p=!0))}}let ne;if(u.length?(S(),ne=u.length>1?DD(t.helper(Ik),u,s):u[0]):l.length&&(ne=CD(ak(l),s)),y?m|=16:(g&&!r&&(m|=2),_&&!r&&(m|=4),x.length&&(m|=8),v&&(m|=32)),!p&&(m===0||m===32)&&(h||b||d.length>0)&&(m|=512),!t.inSSR&&ne)switch(ne.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;twD(e,t)),i))}return SD(n,e.loc)}function Kle(e){let t=`[`;for(let n=0,r=e.length;n0){let{props:n,directives:a}=ik(e,t,i,!1,!1);r=n,a.length&&t.onError(WD(36,a[0].loc))}return{slotName:n,slotProps:r}}function lk(e=[]){return{props:e}}function uk(e,t){if(e.type===4)dk(e,t);else for(let n=0;n=0&&(t=n.charAt(e),t===` `);e--);(!t||!_j.test(t))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():u!==0&&g();function g(){h.push(n.slice(u,p).trim()),u=p+1}if(h.length){for(p=0;p{pr(),mk=Symbol(``),hk=Symbol(``),gk=Symbol(``),_k=Symbol(``),vk=Symbol(``),yk=Symbol(``),bk=Symbol(``),xk=Symbol(``),Sk=Symbol(``),Ck=Symbol(``),wk=Symbol(``),Tk=Symbol(``),Ek=Symbol(``),Dk=Symbol(``),Ok=Symbol(``),kk=Symbol(``),Ak=Symbol(``),jk=Symbol(``),Mk=Symbol(``),Nk=Symbol(``),Pk=Symbol(``),Fk=Symbol(``),Ik=Symbol(``),Lk=Symbol(``),Rk=Symbol(``),zk=Symbol(``),Bk=Symbol(``),Vk=Symbol(``),Hk=Symbol(``),Uk=Symbol(``),Wk=Symbol(``),Gk=Symbol(``),Kk=Symbol(``),qk=Symbol(``),Jk=Symbol(``),Yk=Symbol(``),Xk=Symbol(``),Zk=Symbol(``),Qk=Symbol(``),$k={[mk]:`Fragment`,[hk]:`Teleport`,[gk]:`Suspense`,[_k]:`KeepAlive`,[vk]:`BaseTransition`,[yk]:`openBlock`,[bk]:`createBlock`,[xk]:`createElementBlock`,[Sk]:`createVNode`,[Ck]:`createElementVNode`,[wk]:`createCommentVNode`,[Tk]:`createTextVNode`,[Ek]:`createStaticVNode`,[Dk]:`resolveComponent`,[Ok]:`resolveDynamicComponent`,[kk]:`resolveDirective`,[Ak]:`resolveFilter`,[jk]:`withDirectives`,[Mk]:`renderList`,[Nk]:`renderSlot`,[Pk]:`createSlots`,[Fk]:`toDisplayString`,[Ik]:`mergeProps`,[Lk]:`normalizeClass`,[Rk]:`normalizeStyle`,[zk]:`normalizeProps`,[Bk]:`guardReactiveProps`,[Vk]:`toHandlers`,[Hk]:`camelize`,[Uk]:`capitalize`,[Wk]:`toHandlerKey`,[Gk]:`setBlockTracking`,[Kk]:`pushScopeId`,[qk]:`popScopeId`,[Jk]:`withCtx`,[Yk]:`unref`,[Xk]:`isRef`,[Zk]:`withMemo`,[Qk]:`isMemoSame`},eA={HTML:0,0:`HTML`,SVG:1,1:`SVG`,MATH_ML:2,2:`MATH_ML`},tA={ROOT:0,0:`ROOT`,ELEMENT:1,1:`ELEMENT`,TEXT:2,2:`TEXT`,COMMENT:3,3:`COMMENT`,SIMPLE_EXPRESSION:4,4:`SIMPLE_EXPRESSION`,INTERPOLATION:5,5:`INTERPOLATION`,ATTRIBUTE:6,6:`ATTRIBUTE`,DIRECTIVE:7,7:`DIRECTIVE`,COMPOUND_EXPRESSION:8,8:`COMPOUND_EXPRESSION`,IF:9,9:`IF`,IF_BRANCH:10,10:`IF_BRANCH`,FOR:11,11:`FOR`,TEXT_CALL:12,12:`TEXT_CALL`,VNODE_CALL:13,13:`VNODE_CALL`,JS_CALL_EXPRESSION:14,14:`JS_CALL_EXPRESSION`,JS_OBJECT_EXPRESSION:15,15:`JS_OBJECT_EXPRESSION`,JS_PROPERTY:16,16:`JS_PROPERTY`,JS_ARRAY_EXPRESSION:17,17:`JS_ARRAY_EXPRESSION`,JS_FUNCTION_EXPRESSION:18,18:`JS_FUNCTION_EXPRESSION`,JS_CONDITIONAL_EXPRESSION:19,19:`JS_CONDITIONAL_EXPRESSION`,JS_CACHE_EXPRESSION:20,20:`JS_CACHE_EXPRESSION`,JS_BLOCK_STATEMENT:21,21:`JS_BLOCK_STATEMENT`,JS_TEMPLATE_LITERAL:22,22:`JS_TEMPLATE_LITERAL`,JS_IF_STATEMENT:23,23:`JS_IF_STATEMENT`,JS_ASSIGNMENT_EXPRESSION:24,24:`JS_ASSIGNMENT_EXPRESSION`,JS_SEQUENCE_EXPRESSION:25,25:`JS_SEQUENCE_EXPRESSION`,JS_RETURN_STATEMENT:26,26:`JS_RETURN_STATEMENT`},nA={ELEMENT:0,0:`ELEMENT`,COMPONENT:1,1:`COMPONENT`,SLOT:2,2:`SLOT`,TEMPLATE:3,3:`TEMPLATE`},rA={NOT_CONSTANT:0,0:`NOT_CONSTANT`,CAN_SKIP_PATCH:1,1:`CAN_SKIP_PATCH`,CAN_CACHE:2,2:`CAN_CACHE`,CAN_STRINGIFY:3,3:`CAN_STRINGIFY`},iA={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``},aA=new Uint8Array([123,123]),oA=new Uint8Array([125,125]),sA={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},cA=class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer=``,this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=aA,this.delimiterClose=oA,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=aA,this.delimiterClose=oA}getPos(e){let t=1,n=e+1,r=this.newlines.length,i=-1;if(r>100){let t=-1,n=r;for(;t+1>>1;this.newlines[r]=0;t--)if(e>this.newlines[t]){i=t;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?LD(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||ID(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(this.state===28?this.currentSequence===sA.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}},lA={COMPILER_IS_ON_ELEMENT:`COMPILER_IS_ON_ELEMENT`,COMPILER_V_BIND_SYNC:`COMPILER_V_BIND_SYNC`,COMPILER_V_BIND_OBJECT_ORDER:`COMPILER_V_BIND_OBJECT_ORDER`,COMPILER_V_ON_NATIVE:`COMPILER_V_ON_NATIVE`,COMPILER_V_IF_V_FOR_PRECEDENCE:`COMPILER_V_IF_V_FOR_PRECEDENCE`,COMPILER_NATIVE_TEMPLATE:`COMPILER_NATIVE_TEMPLATE`,COMPILER_INLINE_TEMPLATE:`COMPILER_INLINE_TEMPLATE`,COMPILER_FILTERS:`COMPILER_FILTERS`},uA={COMPILER_IS_ON_ELEMENT:{message:`Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".`,link:`https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-model.html`},COMPILER_V_BIND_OBJECT_ORDER:{message:`v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-bind.html`},COMPILER_V_ON_NATIVE:{message:`.native modifier for v-on has been removed as is no longer necessary.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:`v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with