<?php

namespace Config;

use CodeIgniter\Config\BaseConfig;

class OrdenTrabajo extends BaseConfig
{

    public array $DATE_USER_MAPPING = [
        //IMPRESION
        "interior_bn_at" => "interior_bn_user_id",
        "interior_color_at" => "interior_color_user_id",
        "cubierta_at" => "cubierta_user_id",
        //ACABADO
        "plastificado_at" => "plastificado_user_id",
        "encuadernacion_at" => "encuadernacion_user_id",
        "corte_at" => "corte_user_id",
        "preparacion_interiores_at" => "preparacion_interior_user_id",
        "entrada_manipulado_at" => "entrada_manipulado_user_id",
        "cosido_at" => "cosido_user_id",
        "grapado_at" => "grapado_user_id",
        "solapa_at" => "solapa_user_id",
        "retractilado_at" => "retractilado_user_id",
        "retractilado5_at" => "retractilado5_user_id",
        "prototipo_at" => "prototipo_user_id",
        "marcapaginas_at" => "marcapaginas_user_id",
        "espiral_at" => "espiral_user_id",
        //FERRO
        "pendiente_ferro_at" => "pendiente_ferro_user_id",
        "ferro_en_cliente_at" => "ferro_en_cliente_user_id",
        "ferro_ok_at" => "ferro_ok_user_id",
        //ENVIO
        "embalaje_at" => "embalaje_user_id",
        "envio_at" => "envio_user_id",
        //PREIMPRESION
        "pre_formato_at" => "pre_formato_user_id",
        "pre_lomo_at" => "pre_lomo_user_id",
        "pre_solapa_at" => "pre_solapa_user_id",
        "pre_codbarras_at" => "pre_codbarras_user_id",
        "pre_imposicion_at" => "pre_imposicion_user_id",

    ];
    public array $DATE_USER_MAPPING_PEDIDO = [
        "inaplazable" => "inaplazable_change_user_id",
        "fecha_entrega_real" => "fecha_entrega_real_change_user_id",
        "fecha_impresion" => "fecha_impresion_change_user_id",
        "fecha_encuadernado" => "fecha_encuadernado_change_user_id",
        "fecha_entrega_externo" => "fecha_entrega_externo_change_user_id",
    ];
    public array $OT_COLORS = [
        "sin_imprimir" => "#FF6363",
        "impreso_int" => "#AFDDFF",
        "impreso_cub" => "#3A59D1",
        "plastificado" => "#FFD63A",
        "preparado" => "#FF0B55",
        "solapa" => "#4F1C51",
        "cosido" => "#FF0B55",
        "grapado" => "#FEBA17",
        "encuadernado" => "#FEBA17",
        "corte" => "#67AE6E"
    ];
    public array $OT_WEEK_COLOR_DAY = [
        ["bg" => "#FFFFFF", "color" => "black"],
        ["bg" => "yellow", "color" => "black"],
        ["bg" => "purple", "color" => "white"],
        ["bg" => "orange", "color" => "white"],
        ["bg" => "blue", "color" => "black"],
        ["bg" => "pink", "color" => "black"],
        ["bg" => "#FFFFFF", "color" => "black"],
    ];
    public array $OT_ENCUADERNACION_COLOR = [
        "RF" => ["bg" => "#FF9900", "color" => "white"],
        "RFS" => ["bg" => "#FF9900", "color" => "white"],
        "RCHV" => ["bg" => "#FF9900", "color" => "blue"],
        "RCHVS" => ["bg" => "#FF9900", "color" => "blue"],
        "CC2" => ["bg" => "#104861", "color" => "yellow"],
        "CC2S" => ["bg" => "#104861", "color" => "yellow"],
        "TDF" => ["bg" => "#E49EDD", "color" => "white"],
        "TDC" => ["bg" => "#E49EDD", "color" => "blue"],
        "default" => ["bg" => "#FFFF00", "color" => "red"],
    ];
    public array $OT_BACKGROUND_COLOR = [
        "ferro_digital" => ["bg" => "#BFBFBF","color" => "black"],
        "ferro" => ["bg" => "#BFBFBF","color" => "black"],
        "prototipo" => ["bg" => "#BFBFBF","color" => "black"],
        "pod" => ["bg" => "#47D359","color" => "black"],
        "inaplazable" => ["bg" => "red","color" => "white"],
        "default" => ["bg" => "#FFFFFF","color" => "black"]
    ];
    public array $OT_PAPEL_COLOR = 
    [
        "blanco" => ["bg" => "#FFFFFF", "color" => "black"],
        "ahuesado" => ["bg" => "#FFF2CC", "color" => "black"],
        "marfil" => ["bg" => "#FFD966", "color" => "black"],
        "volumen_ahuesado" => ["bg" => "#BF8F00", "color" => "black"],
        "estucado_mate" => ["bg" => "#BDD7EE", "color" => "black"],
        "cartulina" => ["bg" => "#C6E0B4", "color" => "black"],
        "default" => ["bg" => "#FFCCFF", "color" => "black"],
    ];
    public array $OT_PLASTIFICADO_COLOR = 
    [
        "BRIL" => ["bg" => "#00B0F0", "color" => "white"],
        "MATE" => ["bg" => "#FF0000", "color" => "white"],
        "SOFT_TOUCH" => ["bg" => "#00B050", "color" => "white"],
        "SANDY" => ["bg" => "#782170", "color" => "white"],
        "ANTIRAYADO" => ["bg" => "#E97132", "color" => "white"],
        "GOFRADO" => ["bg" => "#FFFF00", "color" => "black"],
        "default" => ["bg" => "#FFFFFF", "color" => "black"],
    ];
    public array $OT_IMPRESION_INTERIOR_PPAL_COLOR = 
    [
        "ROTATIVA" => ["bg" => "white", "color" => "red"],
        "POD" => ["bg" => "white", "color" => "#47D359"],
        "GENERAL" => ["bg" => "white", "color" => "#A02B93"],
        "default" => ["bg" => "white", "color" => "black"],
    ];

    public function __construct()
    {
        parent::__construct();
    }
}
