// ค้นหาข้อมูลทะเบียนประวัติ
const listPage = () => import("@/modules/04_registryPerson/views/listView.vue");

// ทะเบียนประวัติ
const detailPage = () =>
  import("@/modules/04_registryPerson/views/detailView.vue");

// รายการคำร้องขอแก้ไขทะเบียนประวัติ
const requestEdit = () =>
  import("@/modules/04_registryPerson/views/requestEditView.vue");
const requestEditPage = () =>
  import(
    "@/modules/04_registryPerson/components/requestEdit/Page02_DetailIDP.vue"
  );
const Page01_Detail = () =>
  import(
    "@/modules/04_registryPerson/components/requestEdit/Page01_Detail.vue"
  );

export default [
  {
    path: "/registry-officer",
    name: "registryNew",
    component: listPage,
    meta: {
      Auth: true,
      Key: "SYS_REGISTRY_OFFICER",
      Role: "STAFF",
    },
  },
  {
    path: "/registry-officer/:id",
    name: "registryNewByid",
    component: detailPage,
    meta: {
      Auth: true,
      Key: "SYS_REGISTRY_OFFICER",
      Role: "STAFF",
    },
  },
  {
    path: "/registry-employee",
    name: "registryEmployeeList",
    component: listPage,
    meta: {
      Auth: true,
      Key: "SYS_REGISTRY_EMP",
      Role: "STAFF",
    },
  },
  {
    path: "/registry-employee/:id",
    name: "registryNewEmployeeByid",
    component: detailPage,
    meta: {
      Auth: true,
      Key: "SYS_REGISTRY_EMP",
      Role: "STAFF",
    },
  },
  {
    path: "/registry-officer/request-edit",
    name: "registryNewRequestEdit",
    component: requestEdit,
    meta: {
      Auth: true,
      Key: "SYS_REGISTRY_OFFICER",
      Role: "STAFF",
    },
  },
  {
    path: "/registry-employee/request-edit",
    name: "registryNewRequestEditEMP",
    component: requestEdit,
    meta: {
      Auth: true,
      Key: "SYS_REGISTRY_EMP",
      Role: "STAFF",
    },
  },

  {
    path: "/registry-officer/request-edit-page/:id",
    name: "registryNewRequestEditPage",
    component: requestEditPage,
    meta: {
      Auth: true,
      Key: "SYS_REGISTRY_OFFICER",
      Role: "STAFF",
    },
  },
  {
    path: "/registry-employee/request-edit-page/:id",
    name: "registryNewRequestEditPageEMP",
    component: requestEditPage,
    meta: {
      Auth: true,
      Key: "SYS_REGISTRY_EMP",
      Role: "STAFF",
    },
  },

  {
    path: "/registry-officer/request-edit/personal/:id",
    name: "registryNewRequestEdit/personal",
    component: Page01_Detail,
    meta: {
      Auth: true,
      Key: "SYS_REGISTRY_OFFICER",
      Role: "STAFF",
    },
  },
  {
    path: "/registry-employee/request-edit/personal/:id",
    name: "registryNewRequestEditEmpDetail",
    component: Page01_Detail,
    meta: {
      Auth: true,
      Key: "SYS_REGISTRY_EMP",
      Role: "STAFF",
    },
  },
];
