<?php

defined('ABSPATH') || exit;

/**
 * HTML Builder translations for admin JavaScript (React builder).
 *
 * @since 2.4.0
 * @author Hossein <hossein@notifal.com>
 */
return [
    'builder' => [
        'app_name'            => __('Notifal Builder', 'notifal'),
        'app_subtitle'        => __('Visual HTML template editor', 'notifal'),
        'back_to_templates'   => __('Back to Templates', 'notifal'),
        'insert_tag'          => __('Insert Tag', 'notifal'),
        'copy_html'           => __('Copy HTML', 'notifal'),
        'save'                => __('Save', 'notifal'),
        'saving'              => __('Saving...', 'notifal'),
        'saved'               => __('Saved!', 'notifal'),
        'publish'             => __('Publish', 'notifal'),
        'publishing'          => __('Publishing...', 'notifal'),
        'published'           => __('Published!', 'notifal'),
        'publish_success'     => __('Template published successfully.', 'notifal'),
        'status_draft'        => __('Draft', 'notifal'),
        'status_published'    => __('Published', 'notifal'),
        'status_draft_hint'   => __('Draft templates are not available in notifications. Click Publish when you are ready.', 'notifal'),
        'preview_frontend'    => __('Frontend Preview', 'notifal'),
        'refresh_preview'     => __('Refresh Preview', 'notifal'),
        'title_placeholder'   => __('Template title', 'notifal'),
        'tags_modal_title'    => __('Insert Notifal Tag', 'notifal'),
        'close'               => __('Close', 'notifal'),
        'html_copied'         => __('HTML copied to clipboard!', 'notifal'),
        'tag_inserted'        => __('Tag inserted at cursor.', 'notifal'),
        'tag_copied'          => __('Tag copied to clipboard.', 'notifal'),
        'save_success'        => __('Template saved successfully.', 'notifal'),
        'save_error'          => __('Failed to save template. Please try again.', 'notifal'),
        'preview_error'       => __('Failed to refresh preview. Please try again.', 'notifal'),
        'paste_placeholder'   => __('<!-- Paste your HTML here… -->', 'notifal'),
        'paste_label'         => __('Paste your HTML', 'notifal'),
        'paste_fragment_hint' => __('Paste only the inner content of your notification (no <html>, <head>, or <body> tags). The builder wraps your markup automatically.', 'notifal'),
        'paste_no_document_tags' => __('Please paste only the notification markup — do not include <html>, <head>, <body>, or <!DOCTYPE> tags.', 'notifal'),
        'load_html'           => __('Load HTML', 'notifal'),
        'editing'             => __('Editing', 'notifal'),
        'preview_mode'        => __('Preview mode', 'notifal'),
        'tags_preview_pending' => __('Updating tags…', 'notifal'),
        'tags_preview_loading' => __('Rendering tags…', 'notifal'),
        'view_html'           => __('HTML', 'notifal'),
        'ai_prompt_button'    => __('AI Prompt', 'notifal'),
        'ai_prompt_title'     => __('AI Prompt for HTML Templates', 'notifal'),
        'ai_prompt_subtitle'  => __('Copy this prompt into ChatGPT, Claude, or any AI assistant. Paste the generated HTML fragment back into the builder.', 'notifal'),
        'ai_prompt_goal_label' => __('Your notification goal', 'notifal'),
        'ai_prompt_goal_placeholder' => __('e.g. Exit-intent cart recovery popup for my WooCommerce blog, or a scroll announcement top bar for a free ebook…', 'notifal'),
        'ai_prompt_color_label' => __('Primary color', 'notifal'),
        'ai_prompt_copy'      => __('Copy Prompt', 'notifal'),
        'ai_prompt_copied'    => __('Copied!', 'notifal'),
        'ai_prompt_copy_hint' => __('Tip: describe your goal above, copy the prompt, then paste the AI HTML output into Load HTML or the paste modal.', 'notifal'),
        'ai_prompt_footer_text' => __('Paste it into', 'notifal'),
        'ai_prompt_open_claude' => __('Claude (recommended)', 'notifal'),
        'ai_prompt_open_chatgpt' => __('ChatGPT', 'notifal'),
        'ai_prompt_use_case_label' => __('Template use case', 'notifal'),
        'ai_prompt_use_case_placeholder' => __('Select a goal (optional)', 'notifal'),
        'ai_prompt_layout_label' => __('Display layout', 'notifal'),
        'ai_prompt_layout_placeholder' => __('Select a layout (optional)', 'notifal'),
        'ai_prompt_industry_label' => __('Your industry or niche', 'notifal'),
        'ai_prompt_industry_placeholder' => __('e.g. Specialty coffee roastery, Online education for blind students, Luxury skincare boutique…', 'notifal'),
        'ai_prompt_industry_hint' => __('Be specific so the AI can match tone and visuals to your audience. Any industry works — add detail when it helps.', 'notifal'),
        'ai_prompt_examples_title' => __('How to fill each field', 'notifal'),
        'ai_prompt_examples_lead' => __('These patterns show what good input looks like. Load one, then replace the placeholders with your own business details.', 'notifal'),
        'ai_prompt_examples_show' => __('See filling examples', 'notifal'),
        'ai_prompt_examples_hide' => __('Hide examples', 'notifal'),
        'ai_prompt_examples_use' => __('Load this pattern', 'notifal'),
        'ai_prompt_examples_active' => __('Active pattern', 'notifal'),
        'welcome_title' => __('How would you like to start?', 'notifal'),
        'welcome_subtitle' => __('Choose how you want to build your notification template.', 'notifal'),
        'welcome_lead' => __('Paste existing HTML or generate a template with AI, then refine it in the builder.', 'notifal'),
        'welcome_have_html' => __('I have HTML', 'notifal'),
        'welcome_have_html_hint' => __('Paste a ready-made HTML fragment into the builder.', 'notifal'),
        'welcome_generate_ai' => __('Generate with AI', 'notifal'),
        'welcome_generate_ai_hint' => __('Copy a tailored AI prompt, then paste the generated HTML back here.', 'notifal'),
        'welcome_back' => __('Back', 'notifal'),
        'link_href' => __('Link URL', 'notifal'),
        'link_href_placeholder' => __('https:// or {product_link}', 'notifal'),
        'link_href_hint' => __('Use a full URL or a Notifal merge tag such as {product_link}.', 'notifal'),
        // Countdown Content panel strings (@since 2.4.4).
        'countdown_title' => __('Countdown timer', 'notifal'),
        'countdown_hint' => __('Set how long the timer runs. Notifal starts the countdown when the notification is shown.', 'notifal'),
        'countdown_minutes' => __('Minutes', 'notifal'),
        'countdown_seconds' => __('Seconds', 'notifal'),
        'countdown_on_complete' => __('When timer ends', 'notifal'),
        'countdown_on_complete_hint' => __('Choose what happens after the countdown reaches zero.', 'notifal'),
        'countdown_on_complete_stay' => __('Keep showing 00:00', 'notifal'),
        'countdown_on_complete_hide' => __('Hide the timer', 'notifal'),
        'countdown_on_complete_close' => __('Close the notification', 'notifal'),
        'reset'               => __('Reset', 'notifal'),
        'reset_confirm'       => __('You have unsaved changes. Are you sure you want to reset?', 'notifal'),
        'unsaved_changes'     => __('You have unsaved changes.', 'notifal'),
        'properties'          => __('Properties', 'notifal'),
        'elements_panel'      => __('Elements', 'notifal'),
        'hide_left_panel'     => __('Hide elements panel', 'notifal'),
        'show_left_panel'     => __('Show elements panel', 'notifal'),
        'hide_right_panel'    => __('Hide properties panel', 'notifal'),
        'show_right_panel'    => __('Show properties panel', 'notifal'),
        'no_element_selected' => __('No element selected', 'notifal'),
        'text_not_editable' => __('This element has no direct text to edit.', 'notifal'),
        'text_not_editable_hint' => __('Select an element that contains text directly inside it, or use the HTML tab for nested markup.', 'notifal'),
        'select_element_hint' => __('Click any element in the canvas or the elements tree to start editing.', 'notifal'),
        'load_html_hint'      => __('Load an HTML template to start editing', 'notifal'),
        'canvas_empty_title'  => __('No HTML in this template.', 'notifal'),
        'canvas_empty_import_link' => __('Click here to import a new one', 'notifal'),
        'html_source'         => __('HTML Source', 'notifal'),
        // Search UI for the HTML Source modal (@since 2.4.4).
        'html_source_search'  => __('Search HTML', 'notifal'),
        'html_source_search_placeholder' => __('Search in HTML…', 'notifal'),
        /* translators: %1$s: current match number, %2$s: total matches */
        'html_source_search_count' => __('%1$s of %2$s', 'notifal'),
        'html_source_search_none' => __('No results', 'notifal'),
        'html_source_search_prev' => __('Previous result', 'notifal'),
        'html_source_search_next' => __('Next result', 'notifal'),
        'update_html'         => __('Update HTML', 'notifal'),
        'element_html_label'  => __('Element HTML', 'notifal'),
        'element_html_hint'   => __('Edit this element\'s outerHTML, then click Update HTML. Use a single root tag only.', 'notifal'),
        'element_html_invalid' => __('Enter valid HTML for one element only (a single opening and closing tag).', 'notifal'),
        'chars'               => __('chars', 'notifal'),
        'dismiss_error'       => __('Dismiss error', 'notifal'),
        'duplicate_element'   => __('Duplicate', 'notifal'),
        'remove_element'      => __('Remove', 'notifal'),
        'image_src'           => __('Image URL', 'notifal'),
        'featured_image_placeholder' => __('Featured Image Placeholder', 'notifal'),
        'featured_image_placeholder_notice' => __('This image is loaded dynamically from the notification context (product, post, or page). Preview shows sample data like Elementor and Block Editor.', 'notifal'),
        'featured_image_size_title' => __('Image Size', 'notifal'),
        'featured_image_size_notice' => __('Width, height, and border radius apply to the dynamic image injected at render time — not the placeholder wrapper.', 'notifal'),
        'media_library'       => __('Media Library', 'notifal'),
        'select_image'        => __('Select Image', 'notifal'),
        'responsive_preview'  => __('Responsive', 'notifal'),
        'device_desktop'      => __('Desktop', 'notifal'),
        'device_tablet'       => __('Tablet', 'notifal'),
        'device_mobile'       => __('Mobile', 'notifal'),
        'preview_width'       => __('Preview width', 'notifal'),
        'preview_width_drag'  => __('Drag to resize preview width', 'notifal'),
        'unsaved_leave_confirm' => __('You have unsaved changes. Leave without saving?', 'notifal'),
        'auto_saved'          => __('Auto-saved', 'notifal'),
        'select_tool'         => __('Select', 'notifal'),
        'select_tool_title'   => __('Select tool (click elements)', 'notifal'),
        'deselect'            => __('Deselect', 'notifal'),
        'undo_title'          => __('Undo (Ctrl+Z)', 'notifal'),
        'redo_title'          => __('Redo (Ctrl+Y)', 'notifal'),
        'one_element_selected' => __('1 element selected', 'notifal'),
        'tab_style'           => __('Style', 'notifal'),
        'tab_content'         => __('Content', 'notifal'),
        'load_html_to_see_elements' => __('Load HTML to see elements', 'notifal'),
        'no_editable_elements' => __('No editable elements found', 'notifal'),
        'collapse'            => __('Collapse', 'notifal'),
        'expand'              => __('Expand', 'notifal'),
        'text_editable'       => __('Text editable', 'notifal'),
        'style_editable'      => __('Style editable', 'notifal'),
        'resize_elements_panel' => __('Resize elements panel', 'notifal'),
        'resize_properties_panel' => __('Resize properties panel', 'notifal'),
        'choose_color'        => __('Choose color', 'notifal'),
        'color_swatch'        => __('Color swatch', 'notifal'),
        'color_presets'       => __('Color presets', 'notifal'),
        'custom_color'        => __('Custom color', 'notifal'),
        'html_preview_title'  => __('HTML Preview', 'notifal'),
        'copied'              => __('Copied', 'notifal'),
        'style_section_typography' => __('Typography', 'notifal'),
        'style_section_background' => __('Background', 'notifal'),
        'style_section_spacing' => __('Spacing', 'notifal'),
        'style_section_size'  => __('Size', 'notifal'),
        'style_font_size'     => __('Font Size', 'notifal'),
        'style_font_weight'   => __('Font Weight', 'notifal'),
        'style_line_height'   => __('Line Height', 'notifal'),
        'style_text_align'    => __('Text Align', 'notifal'),
        'style_color'         => __('Color', 'notifal'),
        'style_background_color' => __('Background Color', 'notifal'),
        'style_padding_top'   => __('Padding Top', 'notifal'),
        'style_padding_right' => __('Padding Right', 'notifal'),
        'style_padding_bottom' => __('Padding Bottom', 'notifal'),
        'style_padding_left'  => __('Padding Left', 'notifal'),
        'style_margin_top'    => __('Margin Top', 'notifal'),
        'style_margin_bottom' => __('Margin Bottom', 'notifal'),
        'style_width'         => __('Width', 'notifal'),
        'style_height'        => __('Height', 'notifal'),
        'style_border_radius' => __('Border Radius', 'notifal'),
        'style_object_fit'    => __('Object Fit', 'notifal'),
        'style_font_weight_300' => __('300 Light', 'notifal'),
        'style_font_weight_400' => __('400 Regular', 'notifal'),
        'style_font_weight_500' => __('500 Medium', 'notifal'),
        'style_font_weight_600' => __('600 Semi-Bold', 'notifal'),
        'style_font_weight_700' => __('700 Bold', 'notifal'),
        'style_font_weight_800' => __('800 Extra Bold', 'notifal'),
        'style_font_weight_900' => __('900 Black', 'notifal'),
        'style_align_left'    => __('Left', 'notifal'),
        'style_align_center'  => __('Center', 'notifal'),
        'style_align_right'   => __('Right', 'notifal'),
        'style_align_justify' => __('Justify', 'notifal'),
        'style_object_fit_cover' => __('Cover', 'notifal'),
        'style_object_fit_contain' => __('Contain', 'notifal'),
        'style_object_fit_fill' => __('Fill', 'notifal'),
        'style_object_fit_none' => __('None', 'notifal'),
    ],
];
