<?php

namespace Database\Factories;

use App\Models\Organization;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

/**
 * @extends Factory<Organization>
 */
class OrganizationFactory extends Factory
{
    /**
     * @return array<string, string>
     */
    public function definition(): array
    {
        $name = fake()->company();

        return [
            'name' => $name,
            'slug' => Str::slug($name).'-'.fake()->unique()->numberBetween(1000, 9999),
            'widget_public_key' => 'wpk_'.Str::random(32),
            'widget_enabled' => true,
            'widget_allowed_origins' => null,
            'widget_title' => 'VejalNai Support',
            'widget_subtitle' => 'Usually replies in a few minutes',
            'widget_status_message' => 'We reply in Bangla, Banglish, or English.',
            'widget_greeting' => 'Hi there. How can we help today?',
            'widget_launcher_label' => 'Chat',
            'widget_accent_color' => '#1976f3',
            'widget_logo_url' => null,
            'widget_quick_replies' => "Delivery charge koto?\nOrder status\nTalk to human",
            'widget_position' => 'bottom-right',
            'widget_powered_by_branding' => true,
            'widget_header_style' => 'gradient',
            'widget_header_color' => '#1976f3',
            'widget_header_gradient_to' => '#0d54c7',
            'widget_header_text_color' => '#ffffff',
            'widget_status_background_color' => '#2f7dcc',
            'widget_body_background_color' => '#f6f8fc',
            'widget_date_pill_background_color' => '#edf4ff',
            'widget_date_pill_text_color' => '#728197',
            'widget_bot_message_background_color' => '#ffffff',
            'widget_bot_message_text_color' => '#22314a',
            'widget_quick_reply_background_color' => '#ffffff',
            'widget_quick_reply_text_color' => '#22314a',
            'widget_composer_background_color' => '#ffffff',
            'widget_input_background_color' => '#ffffff',
            'widget_send_button_color' => '#1976f3',
        ];
    }
}
