var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/plus/pisellTopology/topologyMock.ts
var topologyMock_exports = {};
__export(topologyMock_exports, {
  getTopologyFloorMapShellConfig: () => getTopologyFloorMapShellConfig,
  getTopologyMockDataSources: () => getTopologyMockDataSources,
  topologyMockDevices: () => topologyMockDevices
});
module.exports = __toCommonJS(topologyMock_exports);
var import_topologyElementKinds = require("./topologyElementKinds");
var import_topologyFloorPlanConstants = require("./topologyFloorPlanConstants");
function getTopologyFloorMapShellConfig() {
  return {
    canvases: [
      {
        id: import_topologyFloorPlanConstants.TOPOLOGY_MAIN_CANVAS_ID,
        name: "Actual Topology",
        order: 0,
        enabled: true,
        mapLayer: { showGrid: false, backgroundColor: "#ffffff" }
      }
    ],
    canvasUi: { canCreate: true, canEdit: true },
    elementKindCategories: (0, import_topologyElementKinds.getTopologyElementKindCategories)(),
    elementKinds: (0, import_topologyElementKinds.getTopologyElementKinds)(),
    sceneElements: [
      {
        instanceId: "gw-1",
        canvasId: import_topologyFloorPlanConstants.TOPOLOGY_MAIN_CANVAS_ID,
        x: 360,
        y: 40,
        width: 120,
        height: 88,
        elementKind: import_topologyElementKinds.TOPOLOGY_ROUTER_KIND,
        name: "Gateway",
        dataBinding: { dataSourceKey: "devices", recordId: "gw-1" }
      },
      {
        instanceId: "sw-core",
        canvasId: import_topologyFloorPlanConstants.TOPOLOGY_MAIN_CANVAS_ID,
        x: 340,
        y: 180,
        width: 140,
        height: 88,
        elementKind: import_topologyElementKinds.TOPOLOGY_SWITCH_KIND,
        name: "MainRack_CoreSW",
        dataBinding: { dataSourceKey: "devices", recordId: "sw-core" }
      },
      {
        instanceId: "sw-sub",
        canvasId: import_topologyFloorPlanConstants.TOPOLOGY_MAIN_CANVAS_ID,
        x: 160,
        y: 320,
        width: 120,
        height: 88,
        elementKind: import_topologyElementKinds.TOPOLOGY_SWITCH_KIND,
        name: "SubRack_Switch",
        dataBinding: { dataSourceKey: "devices", recordId: "sw-sub" }
      },
      {
        instanceId: "ap-group",
        canvasId: import_topologyFloorPlanConstants.TOPOLOGY_MAIN_CANVAS_ID,
        x: 520,
        y: 320,
        width: 100,
        height: 88,
        elementKind: import_topologyElementKinds.TOPOLOGY_AP_KIND,
        name: "AP Group",
        dataBinding: { dataSourceKey: "devices", recordId: "ap-group" }
      }
    ],
    edges: [
      {
        id: "e-gw-sw",
        sourceId: "gw-1",
        targetId: "sw-core",
        sourceAnchor: "bottom",
        targetAnchor: "top",
        sourceLabel: "WAN",
        targetLabel: "Gi48",
        status: "online"
      },
      {
        id: "e-sw-sub",
        sourceId: "sw-core",
        targetId: "sw-sub",
        sourceAnchor: "left",
        targetAnchor: "top",
        sourceLabel: "Gi1",
        targetLabel: "Te51",
        status: "online"
      },
      {
        id: "e-sw-ap",
        sourceId: "sw-core",
        targetId: "ap-group",
        sourceAnchor: "right",
        targetAnchor: "top",
        sourceLabel: "Gi2",
        targetLabel: "Po1",
        status: "online"
      }
    ]
  };
}
var topologyMockDevices = [
  {
    id: "gw-1",
    name: "Gateway",
    model: "EG310GH-E",
    status: "online",
    ip: "192.168.1.1"
  },
  {
    id: "sw-core",
    name: "MainRack_CoreSW",
    model: "Core SW",
    status: "online",
    ip: "192.168.1.10"
  },
  {
    id: "sw-sub",
    name: "SubRack_Switch",
    status: "offline",
    ip: "192.168.1.11"
  },
  { id: "ap-group", name: "AP Group", status: "online", ip: "192.168.1.20" }
];
function getTopologyMockDataSources(devices) {
  return {
    devices: (devices ?? topologyMockDevices).map((d) => ({ ...d }))
  };
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  getTopologyFloorMapShellConfig,
  getTopologyMockDataSources,
  topologyMockDevices
});
