0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.141.19.115


Current Path : /proc/thread-self/root/var/www/college/static/js/
Upload File :
Current File : //proc/thread-self/root/var/www/college/static/js/449.77a78c75.chunk.js.map

{"version":3,"file":"static/js/449.77a78c75.chunk.js","mappings":"8KAGA,MAiBA,EAjBoBA,IAAuC,IAAtC,KAAEC,EAAI,GAAEC,EAAE,OAAEC,EAAM,IAAEC,EAAG,MAAEC,GAAOL,EACnD,MAAOM,EAAYC,IAAiBC,EAAAA,EAAAA,WAAS,GAC7C,OACEC,EAAAA,EAAAA,KAAAC,EAAAA,SAAA,CAAAC,UACEF,EAAAA,EAAAA,KAACG,EAAAA,EAAK,CACJC,MAAM,mCACNC,UAAQ,EACRb,KAAMA,EACNc,KAAMb,EACNc,SAAUb,EACVc,MAAOb,EACPc,QAASb,KAEV,C,gHCbA,MAAMc,EAAwBC,IAAS,CAC5CC,eAAgBrB,IAAA,IAAC,gBACfsB,EAAe,aACfC,EAAY,QACZC,EAAO,aACPC,EAAY,MACZC,GACD1B,EAAA,OACC2B,EAAAA,EAAAA,MAAA,OACEC,MAAO,CACLC,QAAS,GAEXC,UAAYC,GAAMA,EAAEC,kBAAkBrB,SAAA,EAEtCF,EAAAA,EAAAA,KAACwB,EAAAA,EAAK,CACJC,WAAS,EACTC,YAAW,UAAAC,OAAYhB,GACvBiB,MAAOd,EACPe,SAAWP,GACTT,EAAgBS,EAAEQ,OAAOF,MAAQ,CAACN,EAAEQ,OAAOF,OAAS,IAEtDG,aAAcA,KACZhB,GAAS,EAEXI,MAAO,CACLa,aAAc,EACdC,QAAS,YAGbf,EAAAA,EAAAA,MAACgB,EAAAA,EAAK,CAAAhC,SAAA,EACJF,EAAAA,EAAAA,KAACmC,EAAAA,GAAM,CACLC,KAAK,UACLC,QAASA,IAAMtB,IACfuB,MAAMtC,EAAAA,EAAAA,KAACuC,EAAAA,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AE,EA6HmBiS,CAAcjS,aAMvCtB,EAAAA,EAAAA,KAACwT,EAAAA,EAAK,CACJC,OAAQ,CAAEC,EAAG,KACbC,YAAY,EACZC,UAAQ,EACRrC,QAASA,EACTvD,QAAStE,EAAMsE,QACf6F,WAAY7B,EACZxP,KAAK,cAGTxC,EAAAA,EAAAA,KAAC8T,EAAAA,EAAW,CACVtU,KAAMsQ,EACNrQ,GAAIA,KACF0R,IACApB,GAAa,EAAM,EAErBrQ,OAAQA,IAAMqQ,GAAa,OAEzB,G","sources":["Components/ReportModal.js","Components/datatable.js","../node_modules/antd/es/alert/style/index.js","../node_modules/antd/es/alert/Alert.js","Components/CustomHook.js","Actions/masters/degree/degree.js","Pages/Masters/Degree/Degree.js"],"sourcesContent":["import React, { useState } from \"react\";\nimport { Button, Modal } from \"antd\";\n\nconst ReportModal = ({ open, Ok, cancel, pdf, excel }) => {\n  const [modal2Open, setModal2Open] = useState(false);\n  return (\n    <>\n      <Modal\n        title=\"Vertically centered modal dialog\"\n        centered\n        open={open}\n        onOk={Ok}\n        onCancel={cancel}\n        onPdf={pdf}\n        onExcel={excel}\n      ></Modal>\n    </>\n  );\n};\n\nexport default ReportModal;\n","import { Input, Button, Space } from \"antd\";\nimport { SearchOutlined } from \"@ant-design/icons\";\n\nexport const getColumnSearchProps = (dataIndex) => ({\n  filterDropdown: ({\n    setSelectedKeys,\n    selectedKeys,\n    confirm,\n    clearFilters,\n    close,\n  }) => (\n    <div\n      style={{\n        padding: 8,\n      }}\n      onKeyDown={(e) => e.stopPropagation()}\n    >\n      <Input\n        autoFocus\n        placeholder={`Search ${dataIndex}`}\n        value={selectedKeys}\n        onChange={(e) =>\n          setSelectedKeys(e.target.value ? [e.target.value] : [])\n        }\n        onPressEnter={() => {\n          confirm();\n        }}\n        style={{\n          marginBottom: 8,\n          display: \"block\",\n        }}\n      />\n      <Space>\n        <Button\n          type=\"primary\"\n          onClick={() => confirm()}\n          icon={<SearchOutlined />}\n          size=\"small\"\n          style={{\n            width: 90,\n          }}\n        >\n          Search\n        </Button>\n        <Button\n          onClick={() => {\n            clearFilters();\n            confirm();\n          }}\n          size=\"small\"\n          style={{\n            width: 90,\n          }}\n        >\n          Reset\n        </Button>\n      </Space>\n    </div>\n  ),\n  filterIcon: (filtered) => (\n    <SearchOutlined\n      style={{\n        color: filtered ? \"#CFFF8D\" : \"#fff\",\n      }}\n    />\n  ),\n  onFilter: (value, record) =>\n    record[dataIndex].toString().toLowerCase().includes(value.toLowerCase()),\n});\n\nexport const filterOption = (input, option) =>\n  option.value.toString().toLowerCase().indexOf(input.toLowerCase()) >= 0 ||\n  option.label.toString().toLowerCase().indexOf(input.toLowerCase()) >= 0;\n\nexport const sortWithAlphabets = (a, b, index) =>\n  a[index].localeCompare(b[index]);\n","import { unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { genStyleHooks } from '../../theme/internal';\nconst genAlertTypeStyle = (bgColor, borderColor, iconColor, token, alertCls) => ({\n  background: bgColor,\n  border: `${unit(token.lineWidth)} ${token.lineType} ${borderColor}`,\n  [`${alertCls}-icon`]: {\n    color: iconColor\n  }\n});\nexport const genBaseStyle = token => {\n  const {\n    componentCls,\n    motionDurationSlow: duration,\n    marginXS,\n    marginSM,\n    fontSize,\n    fontSizeLG,\n    lineHeight,\n    borderRadiusLG: borderRadius,\n    motionEaseInOutCirc,\n    withDescriptionIconSize,\n    colorText,\n    colorTextHeading,\n    withDescriptionPadding,\n    defaultPadding\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'relative',\n      display: 'flex',\n      alignItems: 'center',\n      padding: defaultPadding,\n      wordWrap: 'break-word',\n      borderRadius,\n      [`&${componentCls}-rtl`]: {\n        direction: 'rtl'\n      },\n      [`${componentCls}-content`]: {\n        flex: 1,\n        minWidth: 0\n      },\n      [`${componentCls}-icon`]: {\n        marginInlineEnd: marginXS,\n        lineHeight: 0\n      },\n      [`&-description`]: {\n        display: 'none',\n        fontSize,\n        lineHeight\n      },\n      '&-message': {\n        color: colorTextHeading\n      },\n      [`&${componentCls}-motion-leave`]: {\n        overflow: 'hidden',\n        opacity: 1,\n        transition: `max-height ${duration} ${motionEaseInOutCirc}, opacity ${duration} ${motionEaseInOutCirc},\n        padding-top ${duration} ${motionEaseInOutCirc}, padding-bottom ${duration} ${motionEaseInOutCirc},\n        margin-bottom ${duration} ${motionEaseInOutCirc}`\n      },\n      [`&${componentCls}-motion-leave-active`]: {\n        maxHeight: 0,\n        marginBottom: '0 !important',\n        paddingTop: 0,\n        paddingBottom: 0,\n        opacity: 0\n      }\n    }),\n    [`${componentCls}-with-description`]: {\n      alignItems: 'flex-start',\n      padding: withDescriptionPadding,\n      [`${componentCls}-icon`]: {\n        marginInlineEnd: marginSM,\n        fontSize: withDescriptionIconSize,\n        lineHeight: 0\n      },\n      [`${componentCls}-message`]: {\n        display: 'block',\n        marginBottom: marginXS,\n        color: colorTextHeading,\n        fontSize: fontSizeLG\n      },\n      [`${componentCls}-description`]: {\n        display: 'block',\n        color: colorText\n      }\n    },\n    [`${componentCls}-banner`]: {\n      marginBottom: 0,\n      border: '0 !important',\n      borderRadius: 0\n    }\n  };\n};\nexport const genTypeStyle = token => {\n  const {\n    componentCls,\n    colorSuccess,\n    colorSuccessBorder,\n    colorSuccessBg,\n    colorWarning,\n    colorWarningBorder,\n    colorWarningBg,\n    colorError,\n    colorErrorBorder,\n    colorErrorBg,\n    colorInfo,\n    colorInfoBorder,\n    colorInfoBg\n  } = token;\n  return {\n    [componentCls]: {\n      '&-success': genAlertTypeStyle(colorSuccessBg, colorSuccessBorder, colorSuccess, token, componentCls),\n      '&-info': genAlertTypeStyle(colorInfoBg, colorInfoBorder, colorInfo, token, componentCls),\n      '&-warning': genAlertTypeStyle(colorWarningBg, colorWarningBorder, colorWarning, token, componentCls),\n      '&-error': Object.assign(Object.assign({}, genAlertTypeStyle(colorErrorBg, colorErrorBorder, colorError, token, componentCls)), {\n        [`${componentCls}-description > pre`]: {\n          margin: 0,\n          padding: 0\n        }\n      })\n    }\n  };\n};\nexport const genActionStyle = token => {\n  const {\n    componentCls,\n    iconCls,\n    motionDurationMid,\n    marginXS,\n    fontSizeIcon,\n    colorIcon,\n    colorIconHover\n  } = token;\n  return {\n    [componentCls]: {\n      [`&-action`]: {\n        marginInlineStart: marginXS\n      },\n      [`${componentCls}-close-icon`]: {\n        marginInlineStart: marginXS,\n        padding: 0,\n        overflow: 'hidden',\n        fontSize: fontSizeIcon,\n        lineHeight: unit(fontSizeIcon),\n        backgroundColor: 'transparent',\n        border: 'none',\n        outline: 'none',\n        cursor: 'pointer',\n        [`${iconCls}-close`]: {\n          color: colorIcon,\n          transition: `color ${motionDurationMid}`,\n          '&:hover': {\n            color: colorIconHover\n          }\n        }\n      },\n      '&-close-text': {\n        color: colorIcon,\n        transition: `color ${motionDurationMid}`,\n        '&:hover': {\n          color: colorIconHover\n        }\n      }\n    }\n  };\n};\nexport const prepareComponentToken = token => {\n  const paddingHorizontal = 12; // Fixed value here.\n  return {\n    withDescriptionIconSize: token.fontSizeHeading3,\n    defaultPadding: `${token.paddingContentVerticalSM}px ${paddingHorizontal}px`,\n    withDescriptionPadding: `${token.paddingMD}px ${token.paddingContentHorizontalLG}px`\n  };\n};\nexport default genStyleHooks('Alert', token => [genBaseStyle(token), genTypeStyle(token), genActionStyle(token)], prepareComponentToken);","\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport * as React from 'react';\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport InfoCircleFilled from \"@ant-design/icons/es/icons/InfoCircleFilled\";\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport { composeRef } from \"rc-util/es/ref\";\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nimport { replaceElement } from '../_util/reactNode';\nimport { devUseWarning } from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nconst iconMapFilled = {\n  success: CheckCircleFilled,\n  info: InfoCircleFilled,\n  error: CloseCircleFilled,\n  warning: ExclamationCircleFilled\n};\nconst IconNode = props => {\n  const {\n    icon,\n    prefixCls,\n    type\n  } = props;\n  const iconType = iconMapFilled[type] || null;\n  if (icon) {\n    return replaceElement(icon, /*#__PURE__*/React.createElement(\"span\", {\n      className: `${prefixCls}-icon`\n    }, icon), () => ({\n      className: classNames(`${prefixCls}-icon`, {\n        [icon.props.className]: icon.props.className\n      })\n    }));\n  }\n  return /*#__PURE__*/React.createElement(iconType, {\n    className: `${prefixCls}-icon`\n  });\n};\nconst CloseIconNode = props => {\n  const {\n    isClosable,\n    prefixCls,\n    closeIcon,\n    handleClose,\n    ariaProps\n  } = props;\n  const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/React.createElement(CloseOutlined, null) : closeIcon;\n  return isClosable ? ( /*#__PURE__*/React.createElement(\"button\", Object.assign({\n    type: \"button\",\n    onClick: handleClose,\n    className: `${prefixCls}-close-icon`,\n    tabIndex: 0\n  }, ariaProps), mergedCloseIcon)) : null;\n};\nconst Alert = /*#__PURE__*/React.forwardRef((props, ref) => {\n  const {\n      description,\n      prefixCls: customizePrefixCls,\n      message,\n      banner,\n      className,\n      rootClassName,\n      style,\n      onMouseEnter,\n      onMouseLeave,\n      onClick,\n      afterClose,\n      showIcon,\n      closable,\n      closeText,\n      closeIcon,\n      action,\n      id\n    } = props,\n    otherProps = __rest(props, [\"description\", \"prefixCls\", \"message\", \"banner\", \"className\", \"rootClassName\", \"style\", \"onMouseEnter\", \"onMouseLeave\", \"onClick\", \"afterClose\", \"showIcon\", \"closable\", \"closeText\", \"closeIcon\", \"action\", \"id\"]);\n  const [closed, setClosed] = React.useState(false);\n  if (process.env.NODE_ENV !== 'production') {\n    const warning = devUseWarning('Alert');\n    warning.deprecated(!closeText, 'closeText', 'closable.closeIcon');\n  }\n  const internalRef = React.useRef(null);\n  React.useImperativeHandle(ref, () => ({\n    nativeElement: internalRef.current\n  }));\n  const {\n    getPrefixCls,\n    direction,\n    alert\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('alert', customizePrefixCls);\n  const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n  const handleClose = e => {\n    var _a;\n    setClosed(true);\n    (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, e);\n  };\n  const type = React.useMemo(() => {\n    if (props.type !== undefined) {\n      return props.type;\n    }\n    // banner mode defaults to 'warning'\n    return banner ? 'warning' : 'info';\n  }, [props.type, banner]);\n  // closeable when closeText or closeIcon is assigned\n  const isClosable = React.useMemo(() => {\n    if (typeof closable === 'object' && closable.closeIcon) return true;\n    if (closeText) {\n      return true;\n    }\n    if (typeof closable === 'boolean') {\n      return closable;\n    }\n    // should be true when closeIcon is 0 or ''\n    if (closeIcon !== false && closeIcon !== null && closeIcon !== undefined) {\n      return true;\n    }\n    return !!(alert === null || alert === void 0 ? void 0 : alert.closable);\n  }, [closeText, closeIcon, closable, alert === null || alert === void 0 ? void 0 : alert.closable]);\n  // banner mode defaults to Icon\n  const isShowIcon = banner && showIcon === undefined ? true : showIcon;\n  const alertCls = classNames(prefixCls, `${prefixCls}-${type}`, {\n    [`${prefixCls}-with-description`]: !!description,\n    [`${prefixCls}-no-icon`]: !isShowIcon,\n    [`${prefixCls}-banner`]: !!banner,\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, alert === null || alert === void 0 ? void 0 : alert.className, className, rootClassName, cssVarCls, hashId);\n  const restProps = pickAttrs(otherProps, {\n    aria: true,\n    data: true\n  });\n  const mergedCloseIcon = React.useMemo(() => {\n    var _a, _b;\n    if (typeof closable === 'object' && closable.closeIcon) {\n      return closable.closeIcon;\n    }\n    if (closeText) {\n      return closeText;\n    }\n    if (closeIcon !== undefined) {\n      return closeIcon;\n    }\n    if (typeof (alert === null || alert === void 0 ? void 0 : alert.closable) === 'object' && ((_a = alert === null || alert === void 0 ? void 0 : alert.closable) === null || _a === void 0 ? void 0 : _a.closeIcon)) {\n      return (_b = alert === null || alert === void 0 ? void 0 : alert.closable) === null || _b === void 0 ? void 0 : _b.closeIcon;\n    }\n    return alert === null || alert === void 0 ? void 0 : alert.closeIcon;\n  }, [closeIcon, closable, closeText, alert === null || alert === void 0 ? void 0 : alert.closeIcon]);\n  const mergedAriaProps = React.useMemo(() => {\n    const merged = closable !== null && closable !== void 0 ? closable : alert === null || alert === void 0 ? void 0 : alert.closable;\n    if (typeof merged === 'object') {\n      // eslint-disable-next-line @typescript-eslint/no-unused-vars\n      const {\n          closeIcon: _\n        } = merged,\n        ariaProps = __rest(merged, [\"closeIcon\"]);\n      return ariaProps;\n    }\n    return {};\n  }, [closable, alert === null || alert === void 0 ? void 0 : alert.closable]);\n  return wrapCSSVar( /*#__PURE__*/React.createElement(CSSMotion, {\n    visible: !closed,\n    motionName: `${prefixCls}-motion`,\n    motionAppear: false,\n    motionEnter: false,\n    onLeaveStart: node => ({\n      maxHeight: node.offsetHeight\n    }),\n    onLeaveEnd: afterClose\n  }, (_ref, setRef) => {\n    let {\n      className: motionClassName,\n      style: motionStyle\n    } = _ref;\n    return /*#__PURE__*/React.createElement(\"div\", Object.assign({\n      id: id,\n      ref: composeRef(internalRef, setRef),\n      \"data-show\": !closed,\n      className: classNames(alertCls, motionClassName),\n      style: Object.assign(Object.assign(Object.assign({}, alert === null || alert === void 0 ? void 0 : alert.style), style), motionStyle),\n      onMouseEnter: onMouseEnter,\n      onMouseLeave: onMouseLeave,\n      onClick: onClick,\n      role: \"alert\"\n    }, restProps), isShowIcon ? ( /*#__PURE__*/React.createElement(IconNode, {\n      description: description,\n      icon: props.icon,\n      prefixCls: prefixCls,\n      type: type\n    })) : null, /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-content`\n    }, message ? /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-message`\n    }, message) : null, description ? /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-description`\n    }, description) : null), action ? /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-action`\n    }, action) : null, /*#__PURE__*/React.createElement(CloseIconNode, {\n      isClosable: isClosable,\n      prefixCls: prefixCls,\n      closeIcon: mergedCloseIcon,\n      handleClose: handleClose,\n      ariaProps: mergedAriaProps\n    }));\n  }));\n});\nif (process.env.NODE_ENV !== 'production') {\n  Alert.displayName = 'Alert';\n}\nexport default Alert;","import { useState } from \"react\";\nimport axios from \"axios\";\nimport { base_url } from \"./consts/api\";\nimport Alert from \"antd/es/alert/Alert\";\n\nconst useDegree = () => {\n  const [loading, setLoading] = useState(false);\n\n  const getDegreedet = async (type, dispatch, fcollcode) => {\n    setLoading(true);\n    try {\n      const res = await axios.get(base_url + \"cgetDegreedet\", {\n        params: {\n          collcode: fcollcode,\n          type: type,\n          degree_range: \"\",\n        },\n        headers: { \"Content-Type\": \"application/json\" },\n      });\n      console.log(res, \"payload\");\n\n      if (res.data.error_code === 0) {\n        dispatch({\n          type: \"DEGREE\",\n          payload: res.data.data,\n        });\n        setLoading(false);\n      } else {\n        dispatch({\n          type: \"CLEAR_DEGREE\",\n          payload: [],\n        });\n        setLoading(false);\n        Alert(res.data.data.msg);\n        return;\n      }\n    } catch (error) {\n      setLoading(false);\n      Alert(error);\n    }\n  };\n  return { loading, getDegreedet };\n};\nexport default useDegree;\n","import axios from \"axios\";\nimport { base_url } from \"../../../Components/consts/api\";\nimport { Alert } from \"../../../Components/Alert\";\n\nexport const getDegreedet = async (type, dispatch, fcollcode) => {\n  dispatch({\n    type: \"SET_LOADER\",\n  });\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"cgetDegreedet\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&type=\" +\n        type +\n        \"&degree_range=\" +\n        \"\",\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      dispatch({\n        type: \"UNSET_LOADER\",\n      });\n      if (res.data.error_code == 0) {\n        dispatch({\n          type: \"DEGREE\",\n          payload: res.data.data,\n        });\n      } else {\n        dispatch({\n          type: \"CLEAR_DEGREE\",\n          payload: [],\n        });\n        Alert(res.data.data.msg);\n        return;\n      }\n    });\n  } catch (Error) {\n    dispatch(loading(false));\n    Alert(Error);\n  }\n};\n// import { json } from \"react-router-dom/dist\";\n// import React, { useContext } from \"react\";\n// import useDegree from \"./useDegree\";\n\n// export const getDegreedet = async (type, dispatch, fcollcode) => {\n//   dispatch(loading(true));\n//   try {\n//     await axios({\n//       method: \"GET\",\n//       url:\n//         base_url +\n//         \"cgetDegreedet\" +\n//         \"&collcode=\" +\n//         fcollcode +\n//         \"&type=\" +\n//         type +\n//         \"&degree_range=\" +\n//         \"\",\n//       headers: { \"Content-Type\": \"application/json\" },\n//     }).then((res) => {\n//       console.log(res, \"payload\");\n\n//       if (res.data.error_code == 0) {\n//         dispatch({\n//           type: \"DEGREE\",\n//           payload: res.data.data,\n//         });\n//         dispatch(loading(false));\n//       } else {\n//         dispatch({\n//           type: \"CLEAR_DEGREE\",\n//           payload: [],\n//         });\n//         dispatch(loading(false));\n//         Alert(res.data.data.msg);\n//         return;\n//       }\n//     });\n//   } catch (Error) {\n//     dispatch(loading(false));\n//     Alert(Error);\n//   }\n// };\n\nconst loading = (value) => {\n  return {\n    type: \"LOADING\",\n    load: value,\n  };\n};\n\nexport const saveDegreeDet = async (dispatch, formData) => {\n  dispatch(loading(true));\n  try {\n    await axios.post(base_url + \"csaveDegreedet\", formData).then((res) => {\n      if (res.data.error_code === 0) {\n        Alert(res.data.data.msg);\n        dispatch(loading(false));\n      } else {\n        Alert(res.data.data.msg);\n        dispatch(loading(false));\n        return;\n      }\n    });\n  } catch (err) {\n    dispatch(loading(false));\n    Alert(err);\n  }\n};\n\nexport const reportDegreeDet = async (type, fcollcode) => {\n  window.open(\n    base_url +\n      \"degreeListReportpdf\" +\n      \"&collcode=\" +\n      fcollcode +\n      \"&type=\" +\n      type\n  );\n};\n","import React, { useState, useEffect } from \"react\";\nimport useDegree from \"../../../Components/CustomHook\";\nimport { Card, Space, Button, Checkbox, Select, Table, Col, Row } from \"antd\";\nimport {\n  getDegreedet,\n  saveDegreeDet,\n  reportDegreeDet,\n} from \"../../../Actions/masters/degree/degree\";\nimport { useDispatch, connect } from \"react-redux\";\nimport {\n  getColumnSearchProps,\n  sortWithAlphabets,\n  filterOption,\n} from \"../../../Components/datatable\";\nimport ReportModal from \"../../../Components/ReportModal\";\n\nconst typeOptions = [\n  { value: \"selectedonly\", label: \"Selected Only\" },\n  { value: \"all\", label: \"All\" },\n];\n\nconst Degree = (props) => {\n  const { getDegreedet } = useDegree();\n\n  const [type, setType] = useState(\"selectedonly\");\n  const [data, setData] = useState([]);\n  const [openModal, setOpenModal] = useState(false);\n  const dispatch = useDispatch();\n\n  useEffect(() => {\n    setData(props.degreeData);\n    getDegreedet(type, dispatch, props.user.fcollcode);\n  }, []);\n\n  useEffect(() => {\n    let tableArr =\n      props.degreeData.length > 0\n        ? props.degreeData.map((el, i) => {\n            el.index = i;\n            return el;\n          })\n        : [];\n    setData([...tableArr]);\n  }, [props.degreeData]);\n\n  const changeHandler = async (e) => {\n    await getDegreedet(e, dispatch, props.user.fcollcode);\n    setType(e);\n  };\n\n  const checkAllHandler = (checked) => {\n    const dataTable = data.map((el, i) => {\n      if (checked) {\n        el.CHECKED = \"CHECKED\";\n      } else {\n        el.CHECKED = \"\";\n      }\n      el[\"ACTION\"] = \"T\";\n      return el;\n    });\n    setData(dataTable);\n  };\n\n  const checkHandler = (e, index) => {\n    let newArr = data;\n    console.log(newArr);\n    newArr[index][\"CHECKED\"] = e ? \"CHECKED\" : \"\";\n    newArr[index][\"ACTION\"] = \"T\";\n    setData([...newArr]);\n  };\n\n  const saveDegreeDetails = async () => {\n    let formData = new FormData();\n    let newTableData = data.filter((el, i) => {\n      return el.ACTION === \"T\";\n    });\n\n    formData.append(\"data\", JSON.stringify(newTableData));\n    formData.append(\"collcode\", props.user.fcollcode);\n    formData.append(\"user\", props.user.fuser);\n    await saveDegreeDet(dispatch, formData);\n  };\n\n  const saveDegreeReport = async () => {\n    await reportDegreeDet(\n      type,\n      dispatch,\n      props.user.funivcode,\n      props.user.fcollcode\n    );\n  };\n  const columns = [\n    {\n      title: \"Sl. No\",\n      dataIndex: \"slno\",\n      align: \"center\",\n      width: \"10%\",\n    },\n    {\n      title: \"Degree\",\n      dataIndex: \"degree\",\n      ...getColumnSearchProps(\"degree\"),\n      sorter: (a, b) => sortWithAlphabets(a, b, \"degree\"),\n      sortDirections: [\"descend\", \"ascend\"],\n      align: \"center\",\n      width: \"30%\",\n    },\n    {\n      title: \"Description\",\n      dataIndex: \"description\",\n      ...getColumnSearchProps(\"description\"),\n      sorter: (a, b) => sortWithAlphabets(a, b, \"description\"),\n      sortDirections: [\"descend\", \"ascend\"],\n      width: \"50%\",\n    },\n    {\n      title: <Checkbox onChange={(e) => checkAllHandler(e.target.checked)} />,\n      dataIndex: \"select\",\n      align: \"center\",\n      width: \"10%\",\n    },\n  ];\n  const tabledata = data.map((el, i) => ({\n    key: i,\n    slno: i + 1,\n    degree: el.FDEGREE,\n    description: el.FDESCPN,\n    select: (\n      <Checkbox\n        checked={el.CHECKED === \"CHECKED\" ? true : false}\n        onChange={(e) => checkHandler(e.target.checked, el.index)}\n      />\n    ),\n  }));\n\n  return (\n    <div>\n      <Card\n        hoverable\n        title=\"Degree\"\n        style={{ width: \"100%\" }}\n        extra={\n          <Space direction=\"horizontal\">\n            <Button className=\"save\" onClick={() => saveDegreeDetails()}>\n              Save\n            </Button>\n            <Button\n              className=\"report\"\n              onClick={() => {\n                setOpenModal(true);\n              }}\n            >\n              Report\n            </Button>\n            <Button className=\"clear\">Clear</Button>\n            <Button className=\"exit\">Exit</Button>\n          </Space>\n        }\n      >\n        <div style={{ marginBottom: \"20px\" }}>\n          <Row gutter={16}>\n            <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n              <b>\n                <label>Select Type</label>\n              </b>\n              <Select\n                showSearch\n                placeholder=\"Select\"\n                style={{ width: \"100%\" }}\n                options={typeOptions}\n                filterOption={filterOption}\n                value={type}\n                onChange={(e) => changeHandler(e)}\n              />\n            </Col>\n          </Row>\n        </div>\n\n        <Table\n          scroll={{ y: 400 }}\n          pagination={false}\n          bordered\n          columns={columns}\n          loading={props.loading}\n          dataSource={tabledata}\n          size=\"small\"\n        />\n      </Card>\n      <ReportModal\n        open={openModal}\n        Ok={() => {\n          saveDegreeReport();\n          setOpenModal(false);\n        }}\n        cancel={() => setOpenModal(false)}\n      />\n    </div>\n  );\n};\n\nconst mapStateToProps = function (state) {\n  console.log(\n    state.degreeReducer.degreeData,\n    \"state.degreeReducer.degreeData,\"\n  );\n  return {\n    user: state.AuthReducer.userData,\n    degreeData: state.degreeReducer.degreeData,\n    loading: state.degreeReducer.loading,\n  };\n};\n\nexport default connect(mapStateToProps)(Degree);\n"],"names":["_ref","open","Ok","cancel","pdf","excel","modal2Open","setModal2Open","useState","_jsx","_Fragment","children","Modal","title","centered","onOk","onCancel","onPdf","onExcel","getColumnSearchProps","dataIndex","filterDropdown","setSelectedKeys","selectedKeys","confirm","clearFilters","close","_jsxs","style","padding","onKeyDown","e","stopPropagation","Input","autoFocus","placeholder","concat","value","onChange","target","onPressEnter","marginBottom","display","Space","Button","type","onClick","icon","SearchOutlined","size","width","filterIcon","filtered","color","onFilter","record","toString","toLowerCase","includes","filterOption","input","option","indexOf","label","sortWithAlphabets","a","b","index","localeCompare","genAlertTypeStyle","bgColor","borderColor","iconColor","token","alertCls","background","border","unit","lineWidth","lineType","genBaseStyle","componentCls","motionDurationSlow","duration","marginXS","marginSM","fontSize","fontSizeLG","lineHeight","borderRadiusLG","borderRadius","motionEaseInOutCirc","withDescriptionIconSize","colorText","colorTextHeading","withDescriptionPadding","defaultPadding","Object","assign","resetComponent","position","alignItems","wordWrap","direction","flex","minWidth","marginInlineEnd","overflow","opacity","transition","maxHeight","paddingTop","paddingBottom","genTypeStyle","colorSuccess","colorSuccessBorder","colorSuccessBg","colorWarning","colorWarningBorder","colorWarningBg","colorError","colorErrorBorder","colorErrorBg","colorInfo","colorInfoBorder","colorInfoBg","margin","genActionStyle","iconCls","motionDurationMid","fontSizeIcon","colorIcon","colorIconHover","marginInlineStart","backgroundColor","outline","cursor","genStyleHooks","fontSizeHeading3","paddingContentVerticalSM","paddingMD","paddingContentHorizontalLG","__rest","s","t","p","prototype","hasOwnProperty","call","getOwnPropertySymbols","i","length","propertyIsEnumerable","iconMapFilled","success","CheckCircleFilled","info","InfoCircleFilled","error","CloseCircleFilled","warning","ExclamationCircleFilled","IconNode","props","prefixCls","iconType","replaceElement","React","className","classNames","CloseIconNode","isClosable","closeIcon","handleClose","ariaProps","mergedCloseIcon","undefined","CloseOutlined","tabIndex","Alert","ref","description","customizePrefixCls","message","banner","rootClassName","onMouseEnter","onMouseLeave","afterClose","showIcon","closable","closeText","action","id","otherProps","closed","setClosed","internalRef","nativeElement","current","getPrefixCls","alert","ConfigContext","wrapCSSVar","hashId","cssVarCls","useStyle","_a","onClose","isShowIcon","restProps","pickAttrs","aria","data","_b","mergedAriaProps","merged","_","CSSMotion","visible","motionName","motionAppear","motionEnter","onLeaveStart","node","offsetHeight","onLeaveEnd","setRef","motionClassName","motionStyle","composeRef","role","useDegree","loading","setLoading","getDegreedet","async","dispatch","fcollcode","res","axios","get","base_url","params","collcode","degree_range","headers","console","log","error_code","payload","msg","load","typeOptions","connect","state","degreeReducer","degreeData","user","AuthReducer","userData","setType","setData","openModal","setOpenModal","useDispatch","useEffect","tableArr","map","el","saveDegreeDetails","formData","FormData","newTableData","filter","ACTION","append","JSON","stringify","fuser","post","then","err","saveDegreeDet","saveDegreeReport","window","reportDegreeDet","funivcode","columns","align","sorter","sortDirections","Checkbox","checked","dataTable","CHECKED","checkAllHandler","tabledata","key","slno","degree","FDEGREE","FDESCPN","select","checkHandler","newArr","Card","hoverable","extra","Row","gutter","Col","xs","sm","md","lg","xl","Select","showSearch","options","changeHandler","Table","scroll","y","pagination","bordered","dataSource","ReportModal"],"sourceRoot":""}