Your IP : 18.220.43.27


Current Path : /home/ncdcgo/admin.ncdc.go.ug/static/js/
Upload File :
Current File : /home/ncdcgo/admin.ncdc.go.ug/static/js/219.aca0a7ec.chunk.js.map

{"version":3,"file":"static/js/219.aca0a7ec.chunk.js","mappings":"2IA+CA,IA3CoB,SAAC,GAAgB,IAAdA,EAAa,EAAbA,OACrB,OACE,gBACEC,UAAU,kEACV,aAAW,aAFb,UAIE,gBAAIA,UAAU,kDAAd,WACE,eAAIA,UAAU,yCAAd,UACE,UAAC,KAAD,CACEC,GAAG,OACHD,UAAU,kHAFZ,WAIE,gBACEA,UAAU,eACVE,KAAK,eACLC,QAAQ,YACRC,MAAM,6BAJR,UAME,iBAAMC,EAAE,uMAVZ,YAFJ,OAiBGN,QAjBH,IAiBGA,OAjBH,EAiBGA,EAAQO,KAAI,SAACC,EAAOC,GACnB,OACE,gBAAIR,UAAU,2BAAd,WACE,SAAC,IAAD,CAAcS,KAAM,GAAIT,UAAU,UAClC,SAAC,KAAD,CACEC,GAAIM,EAAMG,KACVV,UAAU,gIAFZ,SAIGO,EAAMI,SANmCH,EAUjD,QAIR,C,qMCxCYI,EAAU,yCAAG,iGAASC,EAAT,EAASA,UAAT,SACXC,EAAAA,EAAAA,IAAA,oBAAuBD,IADZ,mFAAH,sDAIVE,EAAa,SAAC,GAA2B,IAAzBF,EAAwB,EAAxBA,UAAWG,EAAa,EAAbA,OACtC,OAAOC,EAAAA,EAAAA,WAAS,kBACXD,GADU,IAEbE,SAAU,CAAC,UAAWL,GACtBM,QAAS,kBAAMP,EAAW,CAAEC,UAAAA,GAAnB,IAEZ,E,iGCPYO,EAAgB,SAAC,GAAyB,IAAvBC,EAAsB,EAAtBA,KAAMR,EAAgB,EAAhBA,UACpC,OAAOC,EAAAA,EAAAA,MAAA,oBAAyBD,GAAaQ,EAAM,CACjDC,QAAS,CACP,eAAgB,wBAGrB,EAEDF,EAAcG,UAAY,CACxBF,KAAMG,IAAAA,MAAgB,CACpBC,UAAWD,IAA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TwJ,YAAa,EACbC,OAAQ,eACR,cAAe,OACfC,IAAKL,GACJD,GAAqBD,EAAAA,cAAoB,OAAQ,CAClDQ,cAAe,QACfC,eAAgB,QAChB1J,EAAG,mBAEN,IAGD,K,qCCLA,IAAMgJ,EAAaC,EAAAA,YAZnB,SAAoBC,EAAOC,GACzB,OAAoBF,EAAAA,cAAoB,MAAOG,OAAOC,OAAO,CAC3DtJ,MAAO,6BACPD,QAAS,YACTD,KAAM,eACN,cAAe,OACf2J,IAAKL,GACJD,GAAqBD,EAAAA,cAAoB,OAAQ,CAClDjJ,EAAG,4HAEN,IAGD,K","sources":["components/Layout/Breadcrumbs.jsx","features/managers/api/getManager.js","features/managers/api/updateManager.js","features/managers/components/UpdateManager.jsx","features/managers/routes/Manager.jsx","features/managers/api/createManager.js","features/managers/components/CreateManager.jsx","features/managers/api/getManagers.js","features/managers/api/deleteManager.js","features/managers/components/DeleteManager.jsx","features/managers/components/ManagersList.jsx","features/managers/routes/Managers.jsx","features/managers/routes/index.jsx","../node_modules/@heroicons/react/outline/esm/PlusIcon.js","../node_modules/@heroicons/react/solid/esm/PencilIcon.js"],"sourcesContent":["import React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { ChevronRight } from \"react-feather\";\n\nconst Breadcrumbs = ({ routes }) => {\n  return (\n    <nav\n      className=\"flex bg-white border border-gray-200 p-2 rounded-full px-4 mt-4\"\n      aria-label=\"Breadcrumb\"\n    >\n      <ol className=\"inline-flex items-center space-x-1 md:space-x-3\">\n        <li className=\"inline-flex items-center text-gray-800\">\n          <Link\n            to=\"/app\"\n            className=\"inline-flex items-center text-sm  text-gray-800 hover:text-gray-900 dark:text-gray-800 dark:hover:text-gray-200\"\n          >\n            <svg\n              className=\"w-4 h-4 mr-2\"\n              fill=\"currentColor\"\n              viewBox=\"0 0 20 20\"\n              xmlns=\"http://www.w3.org/2000/svg\"\n            >\n              <path d=\"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z\"></path>\n            </svg>\n            Home\n          </Link>\n        </li>\n        {routes?.map((route, index) => {\n          return (\n            <li className=\"inline-flex items-center\" key={index}>\n              <ChevronRight size={10} className=\"mr-4\" />\n              <Link\n                to={route.path}\n                className=\"inline-flex items-center text-sm font-extrabold text-gray-700 hover:text-gray-900 dark:text-gray-800 dark:hover:text-gray-200\"\n              >\n                {route.name}\n              </Link>\n            </li>\n          );\n        })}\n      </ol>\n    </nav>\n  );\n};\n\nBreadcrumbs.propTypes = {};\n\nexport default Breadcrumbs;\n","import { axios } from \"lib/axios\";\nimport { useQuery } from \"react-query\";\n\nexport const getManager = async ({ managerId }) => {\n  return await axios.get(`/managers/${managerId}`);\n};\n\nexport const useManager = ({ managerId, config }) => {\n  return useQuery({\n    ...config,\n    queryKey: [\"manager\", managerId],\n    queryFn: () => getManager({ managerId }),\n  });\n};\n","import { axios } from \"lib/axios\";\nimport { queryClient } from \"lib/react-query\";\nimport { useNotificationStore } from \"stores/notifications\";\nimport PropTypes from \"prop-types\";\nimport { useMutation } from \"react-query\";\n\nexport const updateManager = ({ data, managerId }) => {\n  return axios.patch(`/managers/${managerId}`, data, {\n    headers: {\n      \"Content-Type\": \"multipart/form-data\",\n    },\n  });\n};\n\nupdateManager.propTypes = {\n  data: PropTypes.shape({\n    firstName: PropTypes.string.isRequired,\n    lastName: PropTypes.string.isRequired,\n    designation: PropTypes.string.isRequired,\n  }).isRequired,\n  managerId: PropTypes.string.isRequired,\n};\n\nexport const useUpdateManager = ({ config } = {}) => {\n  const { addNotification } = useNotificationStore();\n\n  return useMutation({\n    onMutate: async (updatingManager) => {\n      await queryClient.cancelQueries([\"manager\", updatingManager?.managerId]);\n\n      const previousManager =\n        queryClient.getQueryData[(\"manager\", updatingManager?.managerId)];\n\n      queryClient.setQueryData([\"manager\", updatingManager?.managerId], {\n        ...previousManager,\n        ...updatingManager.data,\n        id: updatingManager.managerId,\n      });\n\n      return { previousManager };\n    },\n    onError: (_, __, context) => {\n      if (context?.previousManager) {\n        queryClient.setQueryData(\n          [\"manager\", context.previousManager.id],\n          context.previousManager\n        );\n      }\n    },\n    onSuccess: (data) => {\n      queryClient.refetchQueries([\"manager\", data.id]);\n      addNotification({\n        type: \"success\",\n        title: \"Manager Updated\",\n      });\n    },\n    ...config,\n    mutationFn: updateManager,\n  });\n};\n","import { Button, Spinner } from \"components/Elements\";\nimport { Form, FormDrawer, InputField, UploadField } from \"components/Form\";\nimport { Authorization, ROLES } from \"lib/authorization\";\nimport { PencilIcon } from \"@heroicons/react/solid\";\nimport PropTypes from \"prop-types\";\nimport { useState } from \"react\";\nimport * as z from \"zod\";\n\nimport { useManager } from \"../api/getManager\";\nimport { useUpdateManager } from \"../api/updateManager\";\n\nconst schema = z.object({\n  firstName: z.string().min(1, \"Required\"),\n  lastName: z.string().min(1, \"Required\"),\n  designation: z.string(),\n});\n\nexport const UpdateManager = ({ managerId }) => {\n  const [frontViewAvatar, setFrontViewAvatar] = useState(null);\n  const [sideViewAvatar, setSideViewAvatar] = useState(null);\n  const [previewFrontViewAvatar, setPreviewFrontViewAvatar] = useState(null);\n  const [previewSideViewAvatar, setPreviewSideViewAvatar] = useState(null);\n  const [editImage, setEditImage] = useState(false);\n  const managerQuery = useManager({ managerId });\n  const updateManagerMutation = useUpdateManager();\n\n  if (updateManagerMutation.isLoading) {\n    return (\n      <div\n        id=\"loading-screen\"\n        className=\"w-full h-full fixed block top-0 left-0 bg-black opacity-75 z-50\"\n      >\n        <span className=\"opacity-75 top-1/2 my-0 mx-auto block relative w-0 h-0\">\n          <Spinner size=\"sm\" />\n        </span>\n      </div>\n    );\n  }\n\n  return (\n    <Authorization allowedRoles={[ROLES.ADMIN]}>\n      <FormDrawer\n        size=\"sm\"\n        isDone={updateManagerMutation.isSuccess}\n        triggerButton={\n          <Button\n            variant=\"create\"\n            startIcon={<PencilIcon className=\"h-4 w-4\" />}\n            size=\"sm\"\n          >\n            Update\n          </Button>\n        }\n        title=\"Update Manager\"\n        submitButton={\n          <Button\n            form=\"update-manager\"\n            type=\"submit\"\n            size=\"sm\"\n            isLoading={updateManagerMutation.isLoading}\n          >\n            Submit\n          </Button>\n        }\n      >\n        <Form\n          id=\"update-manager\"\n          encType=\"multipart/form-data\"\n          onSubmit={async (values) => {\n            const { firstName, lastName, designation } = values;\n            const bodyFormData = new FormData();\n            bodyFormData.append(\"frontViewAvatar\", frontViewAvatar);\n            bodyFormData.append(\"sideViewAvatar\", sideViewAvatar);\n            bodyFormData.append(\"firstName\", firstName);\n            bodyFormData.append(\"lastName\", lastName);\n            bodyFormData.append(\"designation\", designation);\n            await updateManagerMutation.mutateAsync({\n              data: bodyFormData,\n              managerId,\n            });\n            setPreviewFrontViewAvatar(null);\n            setPreviewSideViewAvatar(null);\n          }}\n          options={{\n            defaultValues: {\n              firstName: managerQuery.data?.firstName,\n              lastName: managerQuery.data?.lastName,\n              designation: managerQuery.data?.designation,\n              frontViewAvatar: managerQuery.data?.frontViewAvatar,\n              sideViewAvatar: managerQuery.data?.sideViewAvatar,\n            },\n          }}\n          schema={schema}\n        >\n          {({ register, formState, watch, setValue }) => (\n            <>\n              <InputField\n                label=\"First Name\"\n                error={formState.errors[\"firstName\"]}\n                registration={register(\"firstName\")}\n              />\n              <InputField\n                label=\"Last Name\"\n                error={formState.errors[\"lastName\"]}\n                registration={register(\"lastName\")}\n              />\n              <InputField\n                label=\"Designation\"\n                error={formState.errors[\"designation\"]}\n                registration={register(\"designation\")}\n              />\n              {/* checkbox for governing counsel or not  */}\n              <div>\n                <div className=\"flex justify-start mx-5\">\n                  <div>\n                    <div className=\"form-check\">\n                      <input\n                        className=\"form-check-input appearance-none h-4 w-4 border border-green-300 rounded-sm bg-white checked:bg-green-600 checked:border-green-600 focus:outline-none transition duration-200 mt-1 align-top bg-no-repeat bg-center bg-contain float-left mr-2 cursor-pointer\"\n                        type=\"checkbox\"\n                        value=\"\"\n                        id=\"flexCheckDefault\"\n                      />\n                      <label\n                        className=\"form-check-label inline-block text-gray-800\"\n                        for=\"flexCheckDefault\"\n                      >\n                        Governing Council \n                      </label>\n                    </div>\n                  \n                  </div>\n                </div>\n              </div>\n              {/* end checkbox for governing counsel or not  */}\n\n              {/* button to set edit image */}\n              <div className=\"flex justify-between items-center\">\n                {editImage ? (\n                  <a\n                    href=\"#\"\n                    className=\"bg-green-400 text-gray-800 font-bold p-2 rounded text-sm\"\n                    onClick={(e) => {\n                      e.preventDefault();\n                      setEditImage(false);\n                    }}\n                  >\n                    Close\n                  </a>\n                ) : (\n                  <a\n                    href=\"#\"\n                    className=\"bg-green-400 text-gray-800 font-bold p-2 rounded text-sm\"\n                    onClick={(e) => {\n                      e.preventDefault();\n                      setEditImage(true);\n                    }}\n                  >\n                    Update Image\n                  </a>\n                )}\n              </div>\n              {editImage && (\n                <>\n                  <UploadField\n                    title=\"Front View Avatar\"\n                    subTitle=\"Upload the front view of the avatar\"\n                    error={formState.errors[\"frontViewAvatar\"]}\n                    x={1024}\n                    y={768}\n                    onChange={(e) => {\n                      setFrontViewAvatar(e.target.files[0]);\n                      setPreviewFrontViewAvatar(\n                        URL.createObjectURL(e.target.files[0])\n                      );\n                    }}\n                    preview={previewFrontViewAvatar}\n                  />\n                  <UploadField\n                    title=\"Side View Avatar\"\n                    subTitle=\"Upload the side view of the avatar\"\n                    error={formState.errors[\"sideViewAvatar\"]}\n                    x={1024}\n                    y={768}\n                    onChange={(e) => {\n                      setSideViewAvatar(e.target.files[1]);\n                      setPreviewSideViewAvatar(\n                        URL.createObjectURL(e.target.files[1])\n                      );\n                    }}\n                    preview={previewSideViewAvatar}\n                  />\n                </>\n              )}\n            </>\n          )}\n        </Form>\n      </FormDrawer>\n    </Authorization>\n  );\n};\n\nUpdateManager.propTypes = {\n  managerId: PropTypes.string.isRequired,\n};\n","import { Spinner, MDPreview } from \"components/Elements\";\nimport { Head } from \"components/Head\";\nimport { ContentLayout } from \"components/Layout\";\nimport { UPLOADS_API_URL } from \"config\";\nimport { LazyLoadImage } from \"react-lazy-load-image-component\";\nimport { formatDate } from \"utils/format\";\nimport { useParams } from \"react-router-dom\";\n\nimport { useManager } from \"../api/getManager\";\nimport { UpdateManager } from \"../components/UpdateManager\";\nimport Breadcrumbs from \"components/Layout/Breadcrumbs\";\n\nexport const Manager = () => {\n  const { managerId } = useParams();\n\n  const managerQuery = useManager({ managerId });\n\n  const routes = [\n    {\n      name: \"Managers\",\n      path: \"/app/managers\",\n    },\n    {\n      name: managerQuery.data?.slug,\n      path: \"\",\n    },\n  ];\n\n  if (managerQuery.isLoading) {\n    return (\n      <div className=\"w-full h-48 flex justify-center items-center\">\n        <Spinner size=\"lg\" />\n      </div>\n    );\n  }\n\n  if (!managerQuery.data) return null;\n\n  return (\n\t\t<>\n\t\t\t<Head title={managerQuery.data.slug} />\n\t\t\t<ContentLayout\n\t\t\t\ttitle={managerQuery.data.firstName + \" \" + managerQuery.data.lastName}\n\t\t\t\tbutton={<UpdateManager managerId={managerId} />}>\n\t\t\t\t<span className=\"text-xs text-gray-500 font-bold\">\n\t\t\t\t\t{formatDate(managerQuery.data.createdAt)}\n\t\t\t\t</span>\n\t\t\t\t<Breadcrumbs routes={routes} />\n\t\t\t\t<div className=\"mt-6 flex flex-col space-y-16\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<div className=\"bg-white dark:bg-gray-700 shadow overflow-hidden sm:rounded-lg\">\n\t\t\t\t\t\t\t<div className=\"px-4 py-5 sm:px-6 \">\n\t\t\t\t\t\t\t\t<div className=\"flex flex-row items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<h1 className=\"font-bold text-lg\">Title:</h1>\n\t\t\t\t\t\t\t\t\t<span className=\"font-bold text-lg\">\n\t\t\t\t\t\t\t\t\t\t{managerQuery.data.designation}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div className=\"border-b-2 border-gray-200\"></div>\n\t\t\t\t\t\t\t\t<div className=\"grid grid-cols-2 gap-6\">\n\t\t\t\t\t\t\t\t\t<LazyLoadImage\n\t\t\t\t\t\t\t\t\t\tsrc={`${UPLOADS_API_URL}/${managerQuery.data.frontViewAvatar}`}\n\t\t\t\t\t\t\t\t\t\talt=\"front view for manager\"\n\t\t\t\t\t\t\t\t\t\tclassName=\"rounded-md\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<LazyLoadImage\n\t\t\t\t\t\t\t\t\t\tsrc={`${UPLOADS_API_URL}/${managerQuery.data.sideViewAvatar}`}\n\t\t\t\t\t\t\t\t\t\talt=\"side view for manager\"\n\t\t\t\t\t\t\t\t\t\tclassName=\"rounded-md\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div className=\"mt-1 text-sm text-gray-500\">\n\t\t\t\t\t\t\t\t\t<MDPreview value={managerQuery.data.desc} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</ContentLayout>\n\t\t</>\n\t);\n};\n","import { axios } from \"lib/axios\";\nimport { queryClient } from \"lib/react-query\";\nimport { useNotificationStore } from \"stores/notifications\";\nimport PropTypes from \"prop-types\";\nimport { useMutation } from \"react-query\";\n\nexport const createManager = ({ data }) => {\n  return axios.post(`/managers`, data, {\n    headers: {\n      \"Content-Type\": \"multipart/form-data\",\n    },\n  });\n};\n\ncreateManager.propTypes = {\n  data: PropTypes.shape({\n    firstName: PropTypes.string.isRequired,\n    lastName: PropTypes.string.isRequired,\n    designation: PropTypes.string.isRequired,\n  }).isRequired,\n};\n\nexport const useCreateManager = ({ config } = {}) => {\n  const { addNotification } = useNotificationStore();\n  return useMutation({\n    onMutate: async (newManager) => {\n      await queryClient.cancelQueries(\"managers\");\n\n      const previousManagers = queryClient.getQueryData(\"managers\");\n\n      queryClient.setQueryData(\"managers\", [\n        ...(previousManagers || []),\n        newManager.data,\n      ]);\n\n      return { previousManagers };\n    },\n    onError: (_, __, context) => {\n      if (context?.previousManagers) {\n        queryClient.setQueryData(\"managers\", context.previousManagers);\n      }\n    },\n    onSuccess: () => {\n      queryClient.invalidateQueries(\"managers\");\n      addNotification({\n        type: \"success\",\n        title: \"Manager Created\",\n      });\n    },\n    ...config,\n    mutationFn: createManager,\n  });\n};\n","import { Button, Spinner } from \"components/Elements\";\nimport { Form, FormDrawer, InputField, UploadField } from \"components/Form\";\nimport { Authorization, ROLES } from \"lib/authorization\";\nimport { PlusIcon } from \"@heroicons/react/outline\";\nimport { useState } from \"react\";\nimport * as z from \"zod\";\n\nimport { useCreateManager } from \"../api/createManager\";\n\nconst schema = z.object({\n  firstName: z.string().min(1, \"Required\"),\n  lastName: z.string().min(1, \"Required\"),\n  designation: z.string(),\n});\n\nexport const CreateManager = () => {\n  const [frontViewAvatar, setFrontViewAvatar] = useState(null);\n  const [sideViewAvatar, setSideViewAvatar] = useState(null);\n  const [previewFrontViewAvatar, setPreviewFrontViewAvatar] = useState(null);\n  const [previewSideViewAvatar, setPreviewSideViewAvatar] = useState(null);\n  const createManagerMutation = useCreateManager();\n\n  if (createManagerMutation.isLoading) {\n    return (\n      <div\n        id=\"loading-screen\"\n        className=\"w-full h-full fixed block top-0 left-0 bg-black opacity-75 z-50\"\n      >\n        <span className=\"opacity-75 top-1/2 my-0 mx-auto block relative w-0 h-0\">\n          <Spinner size=\"sm\" />\n        </span>\n      </div>\n    );\n  }\n\n  return (\n    <Authorization allowedRoles={[ROLES.ADMIN]}>\n      <FormDrawer\n        size=\"sm\"\n        isDone={createManagerMutation.isSuccess}\n        triggerButton={\n          <Button\n            variant=\"create\"\n            size=\"sm\"\n            startIcon={<PlusIcon className=\"h-4 w-4\" />}\n          >\n            Create Manager\n          </Button>\n        }\n        title=\"Create Manager\"\n        submitButton={\n          <Button\n            form=\"create-manager\"\n            type=\"submit\"\n            size=\"sm\"\n            isLoading={createManagerMutation.isLoading}\n          >\n            Submit\n          </Button>\n        }\n      >\n        <Form\n          id=\"create-manager\"\n          encType=\"multipart/form-data\"\n          onSubmit={async (values) => {\n            const { firstName, lastName, designation } = values;\n            const bodyFormData = new FormData();\n            bodyFormData.append(\"frontViewAvatar\", frontViewAvatar);\n            bodyFormData.append(\"sideViewAvatar\", sideViewAvatar);\n            bodyFormData.append(\"firstName\", firstName);\n            bodyFormData.append(\"lastName\", lastName);\n            bodyFormData.append(\"designation\", designation);\n            await createManagerMutation.mutateAsync({ data: bodyFormData });\n          }}\n          schema={schema}\n        >\n          {({ register, formState }) => (\n            <>\n              <InputField\n                label=\"First Name\"\n                error={formState.errors[\"firstName\"]}\n                registration={register(\"firstName\")}\n              />\n              <InputField\n                label=\"Last Name\"\n                error={formState.errors[\"lastName\"]}\n                registration={register(\"lastName\")}\n              />\n              <InputField\n                label=\"Designation\"\n                error={formState.errors[\"designation\"]}\n                registration={register(\"designation\")}\n              />\n              {/* checkbox for governing counsel or not  */}\n              <div>\n                <div className=\"flex justify-start mx-5\">\n                  <div>\n                    <div className=\"form-check\">\n                      <input\n                        className=\"form-check-input appearance-none h-4 w-4 border border-green-300 rounded-sm bg-white checked:bg-green-600 checked:border-green-600 focus:outline-none transition duration-200 mt-1 align-top bg-no-repeat bg-center bg-contain float-left mr-2 cursor-pointer\"\n                        type=\"checkbox\"\n                        value=\"\"\n                        id=\"flexCheckDefault\"\n                      />\n                      <label\n                        className=\"form-check-label inline-block text-gray-800\"\n                        for=\"flexCheckDefault\"\n                      >\n                        Governing Council \n                  \n                      </label>\n                    </div>\n                  </div>\n                </div>\n              </div>\n              {/* end checkbox for governing counsel or not  */}\n              <UploadField\n                title=\"Front View Avatar\"\n                subTitle=\"Upload the front view of the avatar\"\n                error={formState.errors[\"frontViewAvatar\"]}\n                x={1024}\n                y={768}\n                onChange={(e) => {\n                  setFrontViewAvatar(e.target.files[0]);\n                  setPreviewFrontViewAvatar(\n                    URL.createObjectURL(e.target.files[0])\n                  );\n                }}\n                preview={previewFrontViewAvatar}\n              />\n              <UploadField\n                title=\"Side View Avatar\"\n                subTitle=\"Upload the side view of the avatar\"\n                error={formState.errors[\"sideViewAvatar\"]}\n                x={1024}\n                y={768}\n                onChange={(e) => {\n                  setSideViewAvatar(e.target.files[0]);\n                  setPreviewSideViewAvatar(\n                    URL.createObjectURL(e.target.files[0])\n                  );\n                }}\n                preview={previewSideViewAvatar}\n              />\n            </>\n          )}\n        </Form>\n      </FormDrawer>\n    </Authorization>\n  );\n};\n","import { axios } from \"lib/axios\";\nimport { useQuery } from \"react-query\";\n\nexport const getManagers = () => {\n  return axios.get(\"/managers\");\n};\n\nexport const useManagers = ({ config } = {}) => {\n  return useQuery({\n    ...config,\n    queryKey: [\"managers\"],\n    queryFn: () => getManagers(),\n  });\n};\n","import { axios } from \"lib/axios\";\nimport { queryClient } from \"lib/react-query\";\nimport { useNotificationStore } from \"stores/notifications\";\nimport PropTypes from \"prop-types\";\nimport { useMutation } from \"react-query\";\n\nexport const deleteManager = ({ managerId }) => {\n  return axios.delete(`/managers/${managerId}`);\n};\n\ndeleteManager.propTypes = {\n  managerId: PropTypes.string.isRequired,\n};\n\nexport const useDeleteManager = ({ config } = {}) => {\n  const { addNotification } = useNotificationStore();\n\n  return useMutation({\n    onMutate: async (deletedManager) => {\n      await queryClient.cancelQueries(\"managers\");\n\n      const previousManagers = queryClient.getQueryData(\"managers\");\n\n      queryClient.setQueryData(\n        \"managers\",\n        previousManagers?.filter((post) => post.id !== deletedManager.managerId)\n      );\n\n      return { previousManagers };\n    },\n    onError: (_, __, context) => {\n      if (context?.previousManagers) {\n        queryClient.setQueryData(\"managers\", context.previousManagers);\n      }\n    },\n    onSuccess: () => {\n      queryClient.invalidateQueries(\"managers\");\n      addNotification({\n        type: \"success\",\n        title: \"Manager Deleted\",\n      });\n    },\n    ...config,\n    mutationFn: deleteManager,\n  });\n};\n","import { Button, ConfirmationDialog, Spinner } from \"components/Elements\";\nimport { Authorization, ROLES } from \"lib/authorization\";\nimport PropTypes from \"prop-types\";\n\nimport { useDeleteManager } from \"../api/deleteManager\";\n\nexport const DeleteManager = ({ id }) => {\n  const deleteManagerMutation = useDeleteManager();\n\n  if (deleteManagerMutation.isLoading) {\n    return (\n      <div\n        id=\"loading-screen\"\n        className=\"w-full h-full fixed block top-0 left-0 bg-black opacity-75 z-50\"\n      >\n        <span className=\"opacity-75 top-1/2 my-0 mx-auto block relative w-0 h-0\">\n          <Spinner size=\"sm\" />\n        </span>\n      </div>\n    );\n  }\n\n  return (\n    <Authorization allowedRoles={[ROLES.ADMIN]}>\n      <ConfirmationDialog\n        icon=\"danger\"\n        title=\"Delete Manager\"\n        body=\"Are you sure you want to permanently remove this Manager?\"\n        triggerButton={<button>Remove</button>}\n        confirmButton={\n          <Button\n            isLoading={deleteManagerMutation.isLoading}\n            type=\"button\"\n            className=\"bg-red-600\"\n            onClick={async () =>\n              await deleteManagerMutation.mutateAsync({ managerId: id })\n            }\n          >\n            Delete Manager\n          </Button>\n        }\n      />\n    </Authorization>\n  );\n};\n\nDeleteManager.propTypes = {\n  id: PropTypes.string.isRequired,\n};\n","import { Table, Spinner, Link } from \"components/Elements\";\n\nimport { useManagers } from \"../api/getManagers\";\n\nimport { DeleteManager } from \"./DeleteManager\";\n\nexport const ManagersList = () => {\n  const managersQuery = useManagers();\n\n  if (managersQuery.isLoading) {\n    return (\n      <div className=\"w-full h-48 flex justify-center items-center\">\n        <Spinner size=\"lg\" />\n      </div>\n    );\n  }\n\n  if (!managersQuery.data) return null;\n\n  return (\n    <Table\n      data={managersQuery.data}\n      className=\"text-gray-400\"\n      columns={[\n        {\n          title: \"Managers\",\n          field: \"firstName\",\n          Cell({ entry: { firstName, lastName } }) {\n            return (\n              <>\n                <span className=\"text-lg\">\n                  {firstName} {lastName}\n                </span>\n              </>\n            );\n          },\n        },\n        {\n          title: \"\",\n          field: \"_id\",\n          Cell({ entry: { _id } }) {\n            return (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<div className=\"flex flex-row justify-center items-center gap-5\">\n\t\t\t\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\t\t\t\tto={`./${_id}`}\n\t\t\t\t\t\t\t\t\t\tclassName=\"mr-2 text-black dark:text-gray-200 hover:text-green-400\">\n\t\t\t\t\t\t\t\t\t\tView\n\t\t\t\t\t\t\t\t\t</Link>{\" \"}\n\t\t\t\t\t\t\t\t\t<DeleteManager id={_id} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t);\n          },\n        },\n      ]}\n    />\n  );\n};\n","import { ContentLayout } from \"components/Layout\";\nimport Breadcrumbs from \"components/Layout/Breadcrumbs\";\n\nimport { CreateManager } from \"../components/CreateManager\";\nimport { ManagersList } from \"../components/ManagersList\";\n\nexport const Managers = () => {\n  const routes = [\n    {\n      name: \"Managers\",\n      path: \".\",\n    },\n  ];\n  return (\n    <ContentLayout title=\"Managers\" button={<CreateManager />}>\n      <Breadcrumbs routes={routes} />\n      <div className=\"mt-4\">\n        <ManagersList />\n      </div>\n    </ContentLayout>\n  );\n};\n","import { Navigate, Route, Routes } from \"react-router-dom\";\n\nimport { Manager } from \"./Manager\";\nimport { Managers } from \"./Managers\";\n\nexport const ManagersRoutes = () => {\n  return (\n    <Routes>\n      <Route path=\"\" element={<Managers />} />\n      <Route path=\":managerId\" element={<Manager />} />\n      <Route path=\"*\" element={<Navigate to=\".\" />} />\n    </Routes>\n  );\n};\n","import * as React from \"react\";\n\nfunction PlusIcon(props, svgRef) {\n  return /*#__PURE__*/React.createElement(\"svg\", Object.assign({\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fill: \"none\",\n    viewBox: \"0 0 24 24\",\n    strokeWidth: 2,\n    stroke: \"currentColor\",\n    \"aria-hidden\": \"true\",\n    ref: svgRef\n  }, props), /*#__PURE__*/React.createElement(\"path\", {\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    d: \"M12 4v16m8-8H4\"\n  }));\n}\n\nconst ForwardRef = React.forwardRef(PlusIcon);\nexport default ForwardRef;","import * as React from \"react\";\n\nfunction PencilIcon(props, svgRef) {\n  return /*#__PURE__*/React.createElement(\"svg\", Object.assign({\n    xmlns: \"http://www.w3.org/2000/svg\",\n    viewBox: \"0 0 20 20\",\n    fill: \"currentColor\",\n    \"aria-hidden\": \"true\",\n    ref: svgRef\n  }, props), /*#__PURE__*/React.createElement(\"path\", {\n    d: \"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z\"\n  }));\n}\n\nconst ForwardRef = React.forwardRef(PencilIcon);\nexport default ForwardRef;"],"names":["routes","className","to","fill","viewBox","xmlns","d","map","route","index","size","path","name","getManager","managerId","axios","useManager","config","useQuery","queryKey","queryFn","updateManager","data","headers","propTypes","PropTypes","firstName","lastName","designation","isRequired","schema","z","min","UpdateManager","useState","frontViewAvatar","setFrontViewAvatar","sideViewAvatar","setSideViewAvatar","previewFrontViewAvatar","setPreviewFrontViewAvatar","previewSideViewAvatar","setPreviewSideViewAvatar","editImage","setEditImage","managerQuery","updateManagerMutation","addNotification","useNotificationStore","useMutation","onMutate","updatingManager","queryClient","previousManager","id","onError","_","__","context","onSuccess","type","title","mutationFn","useUpdateManager","isLoading","allowedRoles","ROLES","Form","isDone","isSuccess","triggerButton","variant","startIcon","PencilIcon","submitButton","form","encType","onSubmit","values","bodyFormData","FormData","append","mutateAsync","options","defaultValues","register","formState","watch","setValue","label","error","errors","registration","value","for","href","onClick","e","preventDefault","subTitle","x","y","onChange","target","files","URL","createObjectURL","preview","Manager","useParams","slug","Head","button","formatDate","createdAt","Breadcrumbs","LazyLoadImage","src","UPLOADS_API_URL","alt","desc","createManager","CreateManager","createManagerMutation","newManager","previousManagers","useCreateManager","PlusIcon","getManagers","deleteManager","DeleteManager","deleteManagerMutation","deletedManager","filter","post","useDeleteManager","icon","body","confirmButton","ManagersList","managersQuery","useManagers","columns","field","Cell","entry","_id","Managers","ManagersRoutes","element","ForwardRef","React","props","svgRef","Object","assign","strokeWidth","stroke","ref","strokeLinecap","strokeLinejoin"],"sourceRoot":""}