<!doctype html>
<html lang="en">

<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport"
    content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1, user-scalable=0">
  <title>LiveTaskyell</title>
  <link rel="stylesheet" href="./css/notosansjp.css">
  <link rel="stylesheet" href="./fontawesome/css/all.css">
  <link rel="stylesheet" href="./css/bootstrap.min.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/chat.css">
  <link rel="stylesheet" href="./css/contact.css">
  <link rel="stylesheet" href="./css/loading.css">
  <link rel="stylesheet" href="./css/footer.css">
  <link rel="stylesheet" href="./css/font-awesome.css">
</head>

<body>
  <!-- ナビメニュー -->
  <nav>
    <div class="row h-100 align-items-center">
      <div class="col-4 pr-0">
        <div class="nav-item">
          <div class="nav_prev">
            <a href="#" class="home_btn"><span>ホーム</span></a>
          </div>
        </div>
      </div>
      <div class="col-4 p-0">
        <div class="nav-item p-0">
          <h1 class="nav-ttl" id="title">コンタクト</h1>
        </div>
      </div>
      <div class="col-4 pl-0">
        <div class="nav-item">
        </div>
      </div>
    </div>
  </nav><!-- nav -->

  <!-- コンテンツ -->
  <main id="contact">
    <!-- ユーザー検索 -->
    <div class="search_form">
      <input type="search" name="search" id="contactSearch" placeholder="ユーザー検索" maxlength="30">
      <span class="src_icon"></span>
      <a href="#" class="cancel none">キャンセル</a>
    </div>

    <div class="content tabs">
      <input id="tabMyGroup" type="radio" name="tab_item" checked>
      <label class="tab_item m-0" for="tabMyGroup">マイグループ</label>
      <input id="tabAllGroup" type="radio" name="tab_item">
      <label class="tab_item m-0" for="tabAllGroup">全グループ</label>

      <!-- タブ -->
      <div class="tab_content" id="tab1_content">
        <div class="content chat_list my_info_sell">
          <ul class="p-0 chat_make_room_list m-0">
            <li class="d-flex align-items-center">
              <a href="#" style="width: 100%;">
                <div class="chat_item d-flex flex-row align-items-center" style="background: none !important;">
                  <div class="chat_item_l">
                    <div class="thumbnail">
                      <div class="img_wrap"><img id="myImg" src="img/noImage.png"
                          onError="this.src='./img/noImage.png'" /></div>
                    </div>
                  </div>
                  <div class="chat_item_m px-0">
                    <div class="d-flex flex-column">
                      <div class="chat_item_t">
                        <span class="chat_item_ttl" id="myName"></span>
                      </div>
                    </div>
                  </div>
                </div>
              </a>
            </li>
          </ul>
        </div>
        <div class="chat_list" id="myContactList">
          <!-- お気に入りグループ -->
          <div class="category">
            <div class="category_name"><span>お気に入り</span></div>
          </div>

          <div id="favoriteList"></div>
          <div id="myGroupList"></div>
        </div>
      </div>
      <div class="tab_content" id="tab2_content">
        <div class="breadcrumb m-0" id="groupPathArea"></div>
        <div class="chat_list">
          <!-- 全グループ -->
          <ul class="p-0 chat_make_room_list m-0">
            <li class="d-flex align-items-center" id="rootGroupArea">
              <a href="#" class="w-100" id="rootGroupBtn">
                <div class="chat_item d-flex flex-row align-items-center">
                  <div class="chat_item_l">
                    <div class="thumbnail-icon">
                      <img src="icon/icon_prev_top.svg" alt="トップグループに戻る" />
                    </div>
                  </div>
                  <div class="chat_item_m px-0">
                    <div class="d-flex flex-column">
                      <div class="chat_item_t">
                        <span class="chat_item_ttl">トップグループに戻る</span>
                      </div>
                    </div>
                  </div>
                </div>
              </a>
            </li>
            <li class="d-flex align-items-center" id="parentGroupArea">
              <a href="#" class="w-100" id="parentGroupBtn">
                <div class="chat_item d-flex flex-row align-items-center">
                  <div class="chat_item_l">
                    <div class="thumbnail-icon">
                      <img src="icon/icon_prev.svg" alt="上位グループに戻る" />
                    </div>
                  </div>
                  <div class="chat_item_m px-0">
                    <div class="d-flex flex-column">
                      <div class="chat_item_t">
                        <span class="chat_item_ttl">上位グループに戻る</span>
                      </div>
                    </div>
                  </div>
                </div>
              </a>
            </li>
            <div id="childGroupListArea"></div>
            <div id="userInGroupList"></div>
          </ul>
        </div>
      </div>
    </div>
    <!-- オーバーレイ -->
    <div class="chat_list">
      <ul class="overlay_src_msg">
      </ul>
    </div>
  </main>

  <!-- フッター -->
  <footer id="footer-main">
    <div class="footer-wrap">
      <div class="d-flex justify-content-around h-100">
        <div class="footer_item">
          <a href="contact.html">
            <img src="icon/icon_contact.svg" alt="コンタクト">
            <p class="active">コンタクト</p>
          </a>
        </div>
        <div class="footer_item">
          <a href="chat.html">
            <img src="icon/icon_chat_gray.svg" alt="チャット">
            <p>チャット</p>
          </a>
        </div>
        <div class="footer_item">
          <a href="archive.html">
            <img src="icon/icon_archive_gray.svg" alt="アーカイブ">
            <p>アーカイブ</p>
          </a>
        </div>
      </div>
    </div>
  </footer>

  <!-- ローディング -->
  <div id="myProfileModal"></div>
  <div id="userProfileModal"></div>

  <!-- Library -->
  <script src="./js/libs/jquery-3.3.1.min.js"></script>
  <script src="./js/libs/moment.js"></script>
  <script src="./js/libs/locale/ko.js" charset="UTF-8"></script>
  <script src="./js/libs/locale/ja.js" charset="UTF-8"></script>
  <script src="./js/libs/mustache.min.js"></script>
  <script src="./js/libs/bootstrap.min.js"></script>
  <script src="./js/libs/jquery.mark.min.js"></script>
  <!-- Language -->
  <script src="./js/languages/language.js"></script>
  <script src="./js/languages/language_ko.js" charset="UTF-8"></script>
  <script src="./js/languages/language_ja.js" charset="UTF-8"></script>
  <script src="./js/languages/language_en.js" charset="UTF-8"></script>
  <!-- Common -->
  <script src="./js/common/constant.js"></script>
  <script src="./js/common/native-bridge-delegate.js"></script>
  <script src="./js/common/native-bridge-datasource.js"></script>
  <script src="./js/common/common.js"></script>
  <script src="./js/utils/chat-util.js"></script>
  <!-- Models -->
  <script src="./js/Models/deviceinfo.js"></script>
  <script src="./js/Models/serverinfo.js"></script>
  <script src="./js/Models/userinfo.js"></script>
  <!-- View -->
  <script src="./js/views/contact/contact.js"></script>
  <script src="./js/views/contact/namecard.js"></script>

  <script>
    const groupID = NativeBridgeDataSource.getToMoveGroupId();

    if (groupID != "" && groupID != undefined) {
      Contact.refreshAllGroupSearch(groupID);
      NativeBridgeDelegate.setToMoveGroupId("");
    } else {
      Contact.refreshContactScreen();
    }

  </script>
</body>

</html>