import { DimensionPresets, Dimensions } from "../../electron/constants";
import React, { useState } from "react";
import { useCallback, useEffect, useMemo } from "react";

import LineDetailsTerminal from "../lineDetailsTerminal";
import NirvanaTerminal from "../terminal";
import Overlay from "../overlay";

export interface ILineDetails {
  lineId: string;
  name: string;

  profilePictures: string[];
  numberMembers: number;

  isUserToggleTunedIn: boolean;

  isUserBroadcastingHere: boolean;
  isSomeoneElseBroadcastingHere: boolean;
  streamImages: string[];

  audioBlocks: {
    creatorProfilePicture: string;
    creatorName: string;
    lengthOfClip: number;
    relativeTimeAgo: string;
  }[];
  timeAgo: string;

  hasNewActivity: boolean;

  profilePicsLiveBroadcasters?: string[];
}

class LineDetails implements ILineDetails {
  constructor(
    public lineId: string,
    public name: string,
    public profilePictures: string[],
    public numberMembers: number,

    public isUserToggleTunedIn: boolean,

    public isUserBroadcastingHere: boolean,
    public isSomeoneElseBroadcastingHere: boolean,
    public streamImages: string[],

    public audioBlocks: {
      creatorProfilePicture: string;
      creatorName: string;
      lengthOfClip: number;
      relativeTimeAgo: string;
    }[],
    public timeAgo: string,

    public hasNewActivity: boolean,

    public profilePicsLiveBroadcasters?: string[]
  ) {}
}
const testLines: ILineDetails[] = [
  new LineDetails(
    "line1",
    "Poggers",
    [
      "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUSEhUREhUSEhIRERESEhERERERERERGBQZGRgUGBgcIS4lHB4rHxgYJjgmKy8xNTU1GiQ7QDszPy40NTEBDAwMEA8QHhISHDQhJCQ0NDQ0NDE0NDQ0NDExNDE0NDQ0MTQ0MTQ0MTQ0NDE0NDQ0NDQ0MTQ0NDQ0NDQxNDQ0NP/AABEIARMAtwMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAADAAIEBQYBBwj/xAA8EAACAQIDBgMFBQcEAwAAAAABAgADEQQSIQUGMUFRYSJxkRMygaGxI0JScsEHFTNi0eHwFCRDsoKSov/EABoBAAMBAQEBAAAAAAAAAAAAAA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A2nJeH5xRSZdioe5AcTKbE8YopETaXY5T4Toiils2j7UcM5FFESxTgiigB2ciigMUUUUAOzoiigCGc/SSMLFFB9iC3wsM0UUcexhk7gmg2iilEA2iiigB//Z",
    ],
    7,
    true,
    false,
    false,
    [],
    [],
    "3m ago",
    true
  ),

  new LineDetails(
    "line2",
    "Viet Phan",
    [
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTAqAZG7zLGhZIxSUV6EVLfQX3WEUawmvM-eA&usqp=CAU",
    ],
    2,
    true,
    false,
    false,
    [],
    [],
    "3m ago",
    false
  ),

  new LineDetails(
    "line3",
    "Level & Vanguard | Follow Up...",
    [
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTvxDrCR5SfO2zzeBNLF9U9xbjlC8-ToAA68g&usqp=CAU",
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRuhO9a_BfEPT5RNEunoAkxFFKZbnMWopS52g&usqp=CAU",
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSzHQv_th9wq3ivQ1CVk7UZRxhbPq64oQrg5Q&usqp=CAU",
    ],
    5, // num members
    true, // is user toggle tuned in
    false, // is user broadcasting here
    false, // is someone else broadcasting here
    [], // stream images
    [], //audio blocks
    "yesterday", // time ago
    true //has new activity
  ),

  new LineDetails(
    "line4",
    "Level | Infra",
    [
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTXbmKVEinDjkWi-hJdRFy9Xq3KQCKLWmxYzw&usqp=CAU",
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT126oVRFEmRXwBWV7i6ITvXWU7FKIXl7y8ZQ&usqp=CAU",
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRnsDI9CSc_tlfeWgA-ZtBb7NILMUMaEzuCKA&usqp=CAU",
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTSi5kq0gJbMH6aY7Y-O6lq3F_C-WPXYP8Yqg&usqp=CAU",
    ],
    20, // num members
    false, // is user toggle tuned in
    true, // is user broadcasting here
    true, // is someone else broadcasting here
    [], // stream images
    [], //audio blocks
    "yesterday", // time ago
    true, //has new activity
    [
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTsQ-YHX2i3RvTDDmpfnde4qyb2P8up7Wi3Ww&usqp=CAU",
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRjaNcG-tBxvlbCZ5DU6nsHSaCY_j1IcDAw9w&usqp=CAU",
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR0s-_blb4lEdA99WhU9RvWXWRskaHJA4snyQ&usqp=CAU",
    ] // live broadcasters images
  ),

  new LineDetails(
    "line5",
    "Sahaj, Heran & 5 others",
    [
      "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBYVFRgWFRUYGRgaGBoYGBkcGBgYGhoaGBkaHBkaGRwcIS4lHB4rHxoaJzgmKy8xNTU1GiQ7QDs0Py40NTEBDAwMEA8QHxISHzQsJCs2MTc2NDY0NDQ2NjQ0NDQ0NDQ0NDQ0NDU0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NP/AABEIAOEA4QMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAAAQIDBAUGBwj/xAA/EAACAQIDBQUECAUEAgMAAAABAgADEQQhMQUSQVFhBiJxgZETMqGxB0JSc7LB0fAUIzRy4TNiosIkghaj8f/EABoBAAIDAQEAAAAAAAAAAAAAAAADAgQFAQb/xAArEQACAgEEAQQCAQQDAAAAAAAAAQIDEQQSITFBIjJRYQUTcUKBkbEUofD/2gAMAwEAAhEDEQA/APZoQhAAhCEACEIQAIQhAAhCEACEIQAJFVqqqksQANSdJHi8StNSzHIdLnyAnl3artY1Y7id1AchxPVpCUtpJLJ2OM7ZUEuBdreABmW/b/PKmLf3H9J5s+OJ1kD4vlFb5DNsT1yl27o276uDxtYj1uJu7L21RxA/luC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SSWAKJ9SkLiPQSSWCPO/wDGeaSSSAT/2Q==",
    ],
    7, // num members
    false, // is user toggle tuned in
    false, // is user broadcasting here
    true, // is someone else broadcasting here
    [], // stream images
    [], //audio blocks
    "right now", // time ago
    true, //has new activity
    [
      "https://miro.medium.com/fit/c/176/176/1*W4xfRqvOk3Ck1DYNlyXHYg.jpeg",
      "https://media-exp1.licdn.com/dms/image/C5103AQFgKwuJl4wlPw/profile-displayphoto-shrink_200_200/0/1526555748918?e=1655337600&v=beta&t=HzhdJxL2hsrDLIM7ejj-_To5Sy7kE51jUxKK4CNsHYo",
    ] // live broadcasters images
  ),

  new LineDetails(
    "line6",
    "Tess Rickert",
    [
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQU4g8xUnnDU4kVOp8_-3f3aPDusw_D2AlyXw&usqp=CAU",
    ],
    2, // num members
    false, // is user toggle tuned in
    false, // is user broadcasting here
    true, // is someone else broadcasting here
    [], // stream images
    [], //audio blocks
    "wednesday", // time ago
    true, //has new activity
    [
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQU4g8xUnnDU4kVOp8_-3f3aPDusw_D2AlyXw&usqp=CAU",
    ] // live broadcasters images
  ),

  new LineDetails(
    "line7",
    "Thomas Shelby",
    [
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSLsupI89wVbXLRzxaiHG_rezqk3FrqDeMmog&usqp=CAU",
    ],
    2, // num members
    false, // is user toggle tuned in
    false, // is user broadcasting here
    false, // is someone else broadcasting here
    [], // stream images
    [], //audio blocks
    "last week", // time ago
    false, //has new activity
    [] // live broadcasters images
  ),

  new LineDetails(
    "line7",
    "Thomas Shelby",
    [
      "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSLsupI89wVbXLRzxaiHG_rezqk3FrqDeMmog&usqp=CAU",
    ],
    2, // num members
    false, // is user toggle tuned in
    false, // is user broadcasting here
    false, // is someone else broadcasting here
    [], // stream images
    [], //audio blocks
    "last week", // time ago
    false, //has new activity
    [] // live broadcasters images
  ),

  new LineDetails(
    "line8",
    "Nirvana Support",
    [],
    2, // num members
    false, // is user toggle tuned in
    false, // is user broadcasting here
    false, // is someone else broadcasting here
    [], // stream images
    [], //audio blocks
    "last month", // time ago
    false, //has new activity
    [] // live broadcasters images
  ),
];

export default function NirvanaRouter() {
  const [selectedLineId, setSelectedLineId] = useState<string>(null);
  const [desktopMode, setDesktopMode] = useState<Dimensions>(
    DimensionPresets.terminal
  );

  useEffect(() => {
    window.electronAPI.window.resizeWindow(desktopMode);
  }, [desktopMode]);

  useEffect(() => {
    if (selectedLineId) {
      setSelectedLineId(selectedLineId);
      setDesktopMode(DimensionPresets.terminalDetailOverlay);
    } else {
      setSelectedLineId(null);
      setDesktopMode(DimensionPresets.terminal);
    }
  }, [selectedLineId, desktopMode, setDesktopMode]);

  /** show user line details */
  const handleSelectLine = useCallback(
    (lineId: string) => {
      setSelectedLineId(lineId);
    },
    [setSelectedLineId]
  );

  const selectedLine = useMemo(
    () => testLines.find((line) => line.lineId === selectedLineId),
    [testLines, selectedLineId]
  );

  return (
    <div className="h-screen w-screen flex flex-row">
      <NirvanaTerminal
        handleSelectLine={handleSelectLine}
        allLines={testLines}
      />

      {selectedLine && <LineDetailsTerminal selectedLine={selectedLine} />}

      {/* <Overlay /> */}
    </div>
  );
}
