{
  "$schema": "./mapping_schema.json",
  "brand": "Panasonic",
  "aliases": [
    "PANASONIC",
    "Panasonic Heating & Cooling",
    "Panasonic France",
    "PANASONIC MARKETING EUROPE"
  ],
  "source_files": [
    "FAB-DIS_PANASONIC_2026_2027.json",
    "FAB-DIS_PANASONIC_2026_2027.xlsx"
  ],

  "filters": {
    "include_families": [],
    "exclude_keywords": [
      "pile",
      "batterie alcaline",
      "téléviseur",
      "rasoir",
      "micro-ondes",
      "téléphone",
      "caméra",
      "écouteur"
    ],
    "include_keywords": [
      "aquarea",
      "paci",
      "ecoi",
      "etherea",
      "t-cap",
      "hydrosplit",
      "all in one",
      "bi-bloc",
      "monobloc",
      "pompe à chaleur",
      "pac",
      "climatiseur",
      "split",
      "multisplit",
      "gainable",
      "console",
      "cassette",
      "mural",
      "unité extérieure",
      "unité intérieure",
      "groupe extérieur",
      "chauffe-eau",
      "thermodynamique",
      "ballon",
      "wh-",
      "kit-",
      "cu-",
      "cs-",
      "s-",
      "u-",
      "paw-",
      "cz-",
      "r32",
      "r290",
      "r410a"
    ]
  },

  "category_rules": [
    {
      "target_category": "pac_air_eau",
      "priority": 10,
      "match": {
        "libelle_regex": "(?:aquarea|t-cap|hydrosplit|all in one|bi-bloc|monobloc|wh-ud|wh-ux|wh-uq|wh-mxc|wh-mdc|wh-sdc|wh-sxc|wh-adc|wh-wdg|wh-wxg|kit-wc|kit-adc|kit-axc|kit-wxc|pac air/eau|pac air-eau|pompe à chaleur air/eau)"
      }
    },
    {
      "target_category": "dhw_thermodynamic",
      "priority": 20,
      "match": {
        "libelle_regex": "(?:chauffe-eau thermodynamique|aquarea dhw|paw-dhwm|cet\\b|ballon thermodynamique)"
      }
    },
    {
      "target_category": "outdoor_split",
      "priority": 25,
      "match": {
        "libelle_regex": "(?:unité extérieure|unite exterieure|unit ext|groupe extérieur|u\\.ext|\\bcu-[0-9a-z]+|\\bu-[0-9]{2,3}p)"
      }
    },
    {
      "target_category": "indoor_ducted",
      "priority": 30,
      "match": {
        "libelle_regex": "(?:gainable|ducted|faux-plafond|cs-z[0-9]+d3eaw|\\bs-[0-9]{2,3}pf|\\bs-[0-9]{2,3}pn)"
      }
    },
    {
      "target_category": "indoor_console",
      "priority": 35,
      "match": {
        "libelle_regex": "(?:console|allège|cs-z[0-9]+ufeaw)"
      }
    },
    {
      "target_category": "indoor_cassette",
      "priority": 40,
      "match": {
        "libelle_regex": "(?:cassette|cs-z[0-9]+ub4eaw|\\bs-[0-9]{2,3}pu)"
      }
    },
    {
      "target_category": "indoor_wall",
      "priority": 45,
      "match": {
        "libelle_regex": "(?:mural|etherea|compact tz|\\bcs-z|\\bcs-tz|\\bcs-bz|\\bcs-uz|\\bcs-fz|\\bcs-xz|\\bcs-lz|\\bs-[0-9]{2,3}pk|unité intérieure|unite interieure|u\\.int)"
      }
    },
    {
      "target_category": "ventilation_double_flux",
      "priority": 50,
      "match": {
        "libelle_regex": "(?:double flux|double-flux|paw-a2w-vent|vmc|récupérateur)"
      }
    },
    {
      "target_category": "regulation",
      "priority": 60,
      "match": {
        "libelle_regex": "(?:cz-taw1|cz-rtw|smart cloud|service cloud|télécommande|thermostat|passerelle|sonde|régulation|interface)"
      }
    },
    {
      "target_category": "accessory",
      "priority": 99,
      "match": {
        "default": true
      }
    }
  ],

  "attribute_extractors": {
    "heating_power_kw": {
      "regex_patterns": [
        "(?:cal|chaud|heating)[^0-9]*([0-9]+[.,]?[0-9]*)\\s*kW",
        "([0-9]+[.,]?[0-9]*)\\s*kW"
      ]
    },
    "cooling_power_kw": {
      "regex_patterns": [
        "(?:frig|froid|cooling)[^0-9]*([0-9]+[.,]?[0-9]*)\\s*kW",
        "([0-9]+[.,]?[0-9]*)\\s*kW"
      ]
    },
    "tank_volume_liters": {
      "regex_patterns": [
        "([0-9]{2,4})\\s*(?:L|Litres|litres|l\\b)"
      ]
    },
    "refrigerant_type": {
      "regex_patterns": [
        "(R290|R32|R454C|R454B|R410A|R407C|R134a)"
      ],
      "normalize": {
        "r290": "R290",
        "r32": "R32",
        "r454c": "R454C",
        "r454b": "R454B",
        "r410a": "R410A",
        "r407c": "R407C",
        "r134a": "R134a"
      },
      "default": "R32"
    },
    "power_supply": {
      "regex_patterns": [
        "(400\\s*V|triphasé|triphasée|3~|230\\s*V|monophasé|monophasée|1~)"
      ],
      "normalize": {
        "230 V": "230V_1P",
        "230V": "230V_1P",
        "monophasé": "230V_1P",
        "monophasée": "230V_1P",
        "1~": "230V_1P",
        "400 V": "400V_3P",
        "400V": "400V_3P",
        "triphasé": "400V_3P",
        "triphasée": "400V_3P",
        "3~": "400V_3P"
      },
      "default": "230V_1P"
    },
    "pricing": {
      "price_ht_field": "TARIFD",
      "price_ht_fallback_field": "TARIF",
      "currency": "EUR"
    }
  }
}
