import React from "react";
import PropTypes from "prop-types";
import { Layer } from "mobility-toolbox-js/ol";
import useTranslation from "../../utils/useTranslation";
import OperatorShortAndLongName from "../IsbTVSLayerInfo/OperatorShortAndLongName";
const propTypes = {
  properties: PropTypes.instanceOf(Layer).isRequired
};
const translations = {
  de: {
    description: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", null, "Infrastrukturbetreiberinnen, die Normalspurstrecken betreiben."), /*#__PURE__*/React.createElement("p", null, "Die vorliegende Trafimage-Karte dient der visuellen Darstellung der Grenzen zwischen den Infrastrukturbetreiberinnen der Normalspurstrecken. Technisch oder kartografisch bedingte Abweichungen sind m\xF6glich. Verbindlich sind ausschliesslich die vertraglich festgelegten Netzanschlusspunkte zwischen den Infrastrukturbetreiberinnen."), /*#__PURE__*/React.createElement("p", null, "Besonders zu beachten:"), /*#__PURE__*/React.createElement("p", null, "Netzanschlusspunkt SBB/SSB Schweizerhalle:"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Km 8.062, n\xF6rdliches Widerlager der Autobahnbr\xFCcke")), /*#__PURE__*/React.createElement("p", null, "Netzanschlusspunkt SOB/SBB bei Wattwil ab 01.01.2026:"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Bis vor Tunneleinfahrt nur SOB (beige)"), /*#__PURE__*/React.createElement("li", null, "Ab Tunneleinfahrt (gestrichelte Linie) Richtung Kaltbrunn SBB (rot).")), /*#__PURE__*/React.createElement("p", null, "Netzanschlusspunkt BLS/SBB Bern ab 01.01.2026"), /*#__PURE__*/React.createElement("p", null, "Beim Spurwechsel bei km BLS 1.118,"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Richtung Bern SBB (rot)"), /*#__PURE__*/React.createElement("li", null, "Richtung Bern West bis Holligen BLSN/SBB (gr\xFCn/rot)")), /*#__PURE__*/React.createElement("p", null, "AMEG\u2013Annemasse Grenze ISB SBB/SNCF, km 75.770")),
    dataInfo1: "Datengrundlage: SBB",
    dataInfo2: "Datenstand: Dezember 2025"
  },
  fr: {
    description: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", null, "Les gestionnaires d'infrastructure qui exploitent des lignes \xE0 voie normale."), /*#__PURE__*/React.createElement("p", null, "La pr\xE9sente carte Trafimage sert \xE0 repr\xE9senter visuellement les limites entre les gestionnaires d'infrastructure des lignes \xE0 voie normale. Des \xE9carts peuvent \xEAtre possibles sur le plan technique ou cartographique. Seuls les points de raccordement au r\xE9seau d\xE9finis contractuellement entre les gestionnaires d'infrastructure sont contraignants."), /*#__PURE__*/React.createElement("p", null, "\xC0 noter en particulier:"), /*#__PURE__*/React.createElement("p", null, "Point de raccordement au r\xE9seau des CFF Schweizerhalle:"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Km 8,062 Cul\xE9e nord du pont autoroutier")), /*#__PURE__*/React.createElement("p", null, "Point de raccordement au r\xE9seau du SOB pr\xE8s de Wattwil \xE0 partir du 1er janvier 2026:"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Jusqu'\xE0 l'entr\xE9e dans le tunnel, uniquement SOB (beige)"), /*#__PURE__*/React.createElement("li", null, "Depuis l'entr\xE9e du tunnel (ligne en pointill\xE9s) en direction de Kaltbrunn CFF (rouge).")), /*#__PURE__*/React.createElement("p", null, "Point de raccordement au r\xE9seau BLS/CFF Berne \xE0 partir du 1er janvier 2026"), /*#__PURE__*/React.createElement("p", null, "Sur la diagonale d'\xE9change au km BLS 1,118"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Direction Bern CFF (rouge)"), /*#__PURE__*/React.createElement("li", null, "En direction de Bern West jusqu'\xE0 Holligen BLSN/CFF (vert/rouge)")), /*#__PURE__*/React.createElement("p", null, "AMEG - Annemasse Fronti\xE8re GI CFF/SNCF, km 75.770")),
    dataInfo1: "Base de données: CFF",
    dataInfo2: "État des données: Décembre 2025"
  },
  it: {
    description: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", null, "Gestori di infrastrutture che operano su linee a scartamento normale."), /*#__PURE__*/React.createElement("p", null, "La presente carta Trafimage serve a rappresentare visivamente i confini tra i gestori dell'infrastruttura delle tratte a scartamento normale. Sono possibili scostamenti tecnici o cartografici. Sono vincolanti esclusivamente i punti di collegamento alla rete stabiliti contrattualmente tra i gestori dell'infrastruttura."), /*#__PURE__*/React.createElement("p", null, "Prestare particolare attenzione a quanto segue:"), /*#__PURE__*/React.createElement("p", null, "Punto di raccordo alla rete FFS Schweizerhalle:"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Km 8.062 Spalla nord del ponte dell'autostrada")), /*#__PURE__*/React.createElement("p", null, "Punto di raccordo alla rete SOB presso Wattwil dal 1 gennaio 2026:"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Fino a prima dell'entrata in galleria solo SOB (beige)"), /*#__PURE__*/React.createElement("li", null, "Dall'ingresso della galleria (linea tratteggiata) in direzione di Kaltbrunn FFS (rossa).")), /*#__PURE__*/React.createElement("p", null, "Punto di raccordo alla rete BLS/FFS Berna dal 1 gennaio 2026"), /*#__PURE__*/React.createElement("p", null, "In corrispondenza del cambio di binario al km BLS 1.118"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Direzione Berna FFS (rosso)"), /*#__PURE__*/React.createElement("li", null, "In direzione di Berna Ovest fino a Holligen BLSN/FFS (verde/rosso)")), /*#__PURE__*/React.createElement("p", null, "AMEG\u2013Annemasse Confine GI FFS/SNCF, km 75.770")),
    dataInfo1: "Base dati: FFS",
    dataInfo2: "Aggiornamento dei dati: Dicembre 2025"
  },
  en: {
    description: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", null, "Infrastructure managers who operate standard gauge lines."), /*#__PURE__*/React.createElement("p", null, "This Trafimage map is intended to visualise the boundaries between the infrastructure managers on standard gauge lines. Deviations are possible for technical or cartographical reasons. Only the network connection points specified by contract between the infrastructure managers are binding."), /*#__PURE__*/React.createElement("p", null, "Particular attention should be paid to:"), /*#__PURE__*/React.createElement("p", null, "SBB Schweizerhalle network connection point:"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Km 8.062 North abutment of the motorway bridge")), /*#__PURE__*/React.createElement("p", null, "SOB network connection point near Wattwil from 1 January 2026:"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Only SOB (beige) before entering the tunnel"), /*#__PURE__*/React.createElement("li", null, "From the tunnel entrance (dashed line) towards Kaltbrunn SBB (red).")), /*#__PURE__*/React.createElement("p", null, "BLS/SBB Bern network connection point from 1 January 2026"), /*#__PURE__*/React.createElement("p", null, "At the cross-over at BLS 1.118 km."), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Towards Bern SBB (red)"), /*#__PURE__*/React.createElement("li", null, "Direction Bern West to Holligen BLSN/SBB (green/red)")), /*#__PURE__*/React.createElement("p", null, "AMEG\u2013Annemasse border IM SBB/SNCF, km 75.770")),
    dataInfo1: "Data basis: SBB",
    dataInfo2: "Data status: December 2025"
  }
};
function IsbNormalspurLayerInfo(_ref) {
  let {
    properties: layer
  } = _ref;
  const {
    i18n
  } = useTranslation();
  const {
    description,
    dataInfo1,
    dataInfo2
  } = translations[i18n.language];
  const shortToLongName = Object.entries(layer.get("shortToLongName") || {}).sort((_ref2, _ref3) => {
    let [key1] = _ref2;
    let [key2] = _ref3;
    return key1.toUpperCase() < key2.toUpperCase() ? -1 : 1;
  });
  return /*#__PURE__*/React.createElement("div", null, description, /*#__PURE__*/React.createElement("hr", {
    style: {
      margin: "20px 0"
    }
  }), shortToLongName.map(_ref4 => {
    let [shortName, longName] = _ref4;
    return /*#__PURE__*/React.createElement(OperatorShortAndLongName, {
      key: shortName,
      shortName: shortName,
      longName: longName
    });
  }), /*#__PURE__*/React.createElement("hr", {
    style: {
      margin: "20px 0"
    }
  }), /*#__PURE__*/React.createElement("p", null, dataInfo1, /*#__PURE__*/React.createElement("br", null), dataInfo2));
}
IsbNormalspurLayerInfo.propTypes = propTypes;
export default /*#__PURE__*/React.memo(IsbNormalspurLayerInfo);
//# sourceMappingURL=IsbNormalspurLayerInfo.js.map