admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('aiwest_ci_bulk_ajax'), 'strings' => [ 'selectAll' => __('Select all', 'ai-webmaster-studio'), 'heading' => __('AI Web bulk actions', 'ai-webmaster-studio'), 'bulkAction' => __('Bulk action', 'ai-webmaster-studio'), 'selectAction' => __('Select action', 'ai-webmaster-studio'), 'visual' => __('Preserve content and improve layout', 'ai-webmaster-studio'), 'expand' => __('Expand content', 'ai-webmaster-studio'), 'seo' => __('Improve SEO', 'ai-webmaster-studio'), 'faq' => __('Add FAQ', 'ai-webmaster-studio'), 'cta' => __('Add CTA', 'ai-webmaster-studio'), 'image' => __('Add image', 'ai-webmaster-studio'), 'links' => __('Add links', 'ai-webmaster-studio'), 'canvasEnable' => __('Enable Canvas', 'ai-webmaster-studio'), 'canvasDisable' => __('Disable Canvas', 'ai-webmaster-studio'), 'undo' => __('Undo changes', 'ai-webmaster-studio'), 'apply' => __('Apply to selected', 'ai-webmaster-studio'), 'selectVisible' => __('Select visible', 'ai-webmaster-studio'), 'clear' => __('Deselect all', 'ai-webmaster-studio'), 'selected' => __('selected', 'ai-webmaster-studio'), 'description' => __('Select several pages or posts and run the same action. Layout enhancement preserves all existing text, headings and links; a result that violates this rule will be rejected.', 'ai-webmaster-studio'), 'chooseAction' => __('Select a bulk action.', 'ai-webmaster-studio'), 'chooseContent' => __('Select at least one page or post.', 'ai-webmaster-studio'), 'confirm' => __('Run the selected AI Web action for selected items?', 'ai-webmaster-studio'), 'working' => __('AI is generating content.', 'ai-webmaster-studio'), 'keepOpen' => __('Please do not close or leave this page while AI is working.', 'ai-webmaster-studio'), 'selectedContent' => __('Selected content', 'ai-webmaster-studio'), 'processing' => __('Processing', 'ai-webmaster-studio'), 'starting' => __('starting', 'ai-webmaster-studio'), 'completed' => __('action completed.', 'ai-webmaster-studio'), 'finished' => __('Bulk action queue finished. Refresh the page to see updated statuses.', 'ai-webmaster-studio'), 'missingId' => __('Could not read the selected content ID.', 'ai-webmaster-studio'), 'invalidJson' => __('The server did not return a valid JSON response.', 'ai-webmaster-studio'), 'failed' => __('Bulk action failed.', 'ai-webmaster-studio'), ], ]); } public static function render_working_overlay() { if (!self::is_content_improvement_screen()) return; ?>