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S9D,YAAY,mBAC3CkD,IACGpE,EAAAA,EAAAA,KAACsL,EAAAA,EAAW,CAACxK,QAASsD,EAAW9C,QAAS,aA7OjCiK,MACzB,MAAMC,EAAoBtG,EAASuG,MAAKC,GAAMA,EAAGhI,KAAOoB,IACxD,OAAO0G,EAAoBA,EAAkBpE,UAAY,EAAE,EA2OYmE,KAA0BrK,YAAY,iBAAiBQ,SAxOvGiK,KACvBtH,GAAa,GACbG,GAAoB,EAAM,EAsOkIhD,QAASA,KA/N7I8E,WAEL,aADDsF,EAAAA,EAAAA,IAAe9G,IACzB2B,UACJD,EAAAA,EAAAA,MACAnC,GAAa,GACbU,EAAmB,IACnBP,GAAoB,GACpBI,EAAe,CAAEC,MAAO,QAASvD,QAAS,oBAAqB+G,UAAU,IAC7E,EAuN6KwD,EAAqB,IAErLtH,IACGvE,EAAAA,EAAAA,KAAC8L,EAAAA,EAAY,CAAChL,QAASyD,EAAkBjD,QAASqD,EAAYrD,QAASJ,YAAY,0BAA0BM,QAASwG,IAEzHtC,IACG1F,EAAAA,EAAAA,KAAC+L,EAAAA,EAAe,CAACjL,QAAS4E,EAAiBlE,QAAS2G,EAAiBzG,SAAUsG,IAG/EvD,IACIzE,EAAAA,EAAAA,KAACgM,EAAAA,EAAU,CAAClL,QAAS2D,EAAgBnD,QAASqD,EAAYrD,QAASE,QA1QvEyK,KAChB5H,GAAa,GACbG,GAAoB,GACpBE,GAAkB,EAAM,EAuQqFxD,YAAY,mCAOjI,C","sources":["component/alert/errorAlert.js","component/alert/removeAlert.js","component/alert/uploadFileAlert.js","views/daftar-eq/index.js"],"sourcesContent":["import { Component } from 'react'\r\nimport Parser from 'html-react-parser';\r\n\r\nexport default class extends Component {\r\n render() {\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n
\r\n
{this.props?.titleMessage}
\r\n {Parser(this.props.message)}\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n )\r\n }\r\n}\r\n","import { Component } from \"react\";\r\n\r\nexport default class extends Component {\r\n render() {\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n
\r\n
{this.props?.titleMessage}
\r\n

{this.props.message}

\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n )\r\n }\r\n}","import React, { Component } from \"react\";\r\n\r\nexport default class extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n visible: this.props.visible || false,\r\n csvFile: null,\r\n fileName: \"\",\r\n uploading: false,\r\n };\r\n }\r\n\r\n handleFileInputChange = (e) => {\r\n const file = e.target.files.length;\r\n // console.log(e.target.files)\r\n document.querySelectorAll('.upload-label').forEach((val, key) => {\r\n if (file > 0) {\r\n val.innerHTML = `\r\n ${e.target.files[0].name}\r\n `\r\n } else {\r\n val.innerHTML = `\r\n Choose File\r\n `\r\n }\r\n\r\n })\r\n\r\n if (e.target.files[0]) {\r\n const reader = new FileReader()\r\n reader.onload = (event) => {\r\n localStorage.setItem('uploadedcsvfile', event.target.result)\r\n }\r\n\r\n reader.readAsDataURL(e.target.files[0])\r\n }\r\n };\r\n\r\n\r\n\r\n\r\n render() {\r\n return (\r\n \r\n
\r\n
\r\n
\r\n
\r\n Upload CSV File\r\n
\r\n
\r\n
\r\n {\r\n this.handleFileInputChange(e)\r\n }}\r\n />\r\n \r\n Choose File\r\n
\r\n
\r\n
\r\n \r\n BATAL\r\n \r\n \r\n UPLOAD\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n }\r\n}\r\n","import React, { Component, useState, useEffect } from \"react\";\r\nimport { Link, useLocation, useNavigate, useParams } from \"react-router-dom\";\r\nimport RemoveAlert from \"../../component/alert/removeAlert\";\r\nimport ConfirmAlert from \"../../component/alert/confirmAlert\";\r\nimport LoadingAlert from \"../../component/alert/loadingAlert\";\r\nimport UploadFileAlert from \"../../component/alert/uploadFileAlert\";\r\nimport ErrorAlert from \"../../component/alert/errorAlert\";\r\nimport { deleteDaftarEq, getDaftarEq, getDownloadEquipment, UploadEquipment } from \"../../services/API/mod_daftarEQ\";\r\nimport { NavDropdown } from \"react-bootstrap\";\r\nimport verifiedImage from './../../images/Verified.png'\r\n\r\nfunction DaftarEQ() {\r\n const { id } = useParams()\r\n const location = useLocation()\r\n const navigate = useNavigate()\r\n const [showPopup, setShowPopup] = useState(false)\r\n const [showSuccessPopup, setShowSuccessPopup] = useState(false)\r\n const [showErrorPopup, setShowErrorPopup] = useState(false)\r\n const [alertOption, setAlertOption] = useState({ title: '', message: '' })\r\n const [nomorEQToDelete, setNomorEQToDelete] = useState('')\r\n const [loading, setLoading] = useState(false)\r\n const [daftarEQ, setDaftarEQ] = useState([])\r\n const [originalData, setOriginalData] = useState('')\r\n const [searchActive, setSearchActive] = useState(false)\r\n const [isActive, setIsActive] = useState(false)\r\n const [showPopupUpload, setShowPopupUpload] = useState(false)\r\n const [itemDaftarEQ, setItemDaftarEQ] = useState(10)\r\n const [showMoreDaftarEQ, setShowMoreDaftarEQ] = useState(true)\r\n const [clickSearch, setClickSearch] = useState(false)\r\n const inputFileRef = React.useRef();\r\n\r\n useEffect(() => {\r\n daftarEq()\r\n }, []);\r\n\r\n const daftarEq = async () => {\r\n setLoading(true)\r\n const res = await getDaftarEq()\r\n setLoading(false)\r\n if (res.status == 200) {\r\n if (res.data.Table != undefined)\r\n {\r\n setDaftarEQ(res.data.Table)\r\n setOriginalData(res.data.Table)\r\n\r\n if (res.data.Table.length < itemDaftarEQ) {\r\n setShowMoreDaftarEQ(false)\r\n } else {\r\n setShowMoreDaftarEQ(true)\r\n }\r\n }\r\n else\r\n {\r\n setShowMoreDaftarEQ(false)\r\n }\r\n }\r\n }\r\n\r\n const handleUpdate = (e) => {\r\n e.preventDefault()\r\n var item = JSON.parse(e.target.getAttribute('data-item'))\r\n navigate(e.target.getAttribute('href'), {\r\n state: {\r\n input: {\r\n id: item.id,\r\n equipment: item.equipment.toString(),\r\n modelName: item.eqmodelName,\r\n description: item.description,\r\n },\r\n address: {\r\n id: item.AddressId,\r\n Penerima: item.Penerima,\r\n Nama_Alamat: item.Nama_Alamat,\r\n Alamat: item.Alamat,\r\n Kota: item.Kota,\r\n Kode_Pos: item.Kode_Pos\r\n }\r\n }\r\n })\r\n }\r\n\r\n const handlePopup = () => {\r\n setShowPopup(false)\r\n setShowSuccessPopup(false)\r\n setShowErrorPopup(false)\r\n }\r\n\r\n const handleSuccessPopup = () => {\r\n setShowPopup(false)\r\n setShowSuccessPopup(false)\r\n daftarEq()\r\n setShowPopupUpload(false)\r\n document.getElementById('keyword').value = '';\r\n }\r\n\r\n const handleDeletedItem = (noEQToDelete) => {\r\n setShowPopup(true)\r\n setNomorEQToDelete(noEQToDelete)\r\n }\r\n\r\n const getEquipmentToDelete = () => {\r\n const equipmentToDelete = daftarEQ.find(eq => eq.id === nomorEQToDelete)\r\n return equipmentToDelete ? equipmentToDelete.equipment : ''\r\n }\r\n\r\n const handleCancelDelete = () => {\r\n setShowPopup(false)\r\n setShowSuccessPopup(false)\r\n }\r\n const handleDownloadCSV = () => {\r\n setLoading(true)\r\n getDownloadEquipment()\r\n setLoading(false)\r\n }\r\n const handleConfirmDelete = async () => {\r\n const res = await deleteDaftarEq(nomorEQToDelete)\r\n if (res.status === 200) {\r\n getDaftarEq()\r\n setShowPopup(false)\r\n setNomorEQToDelete('')\r\n setShowSuccessPopup(true)\r\n setAlertOption({ title: 'Hapus', message: 'Berhasil hapus EQ', redirect: false })\r\n }\r\n }\r\n const handleUpload = () => {\r\n inputFileRef.current.click();\r\n }\r\n const handleCSVUpload = async (e) => {\r\n const file = e.target.files[0];\r\n\r\n if (file) {\r\n setLoading(true)\r\n const res = await UploadEquipment(file)\r\n e.target.value = null\r\n // console.log('upload equipment',res)\r\n if (res.result === \"Sukses\") {\r\n // console.log(\"masuk error\")\r\n setShowSuccessPopup(true)\r\n setAlertOption({ title: 'Upload', message: `Berhasil upload`, redirect: false })\r\n daftarEq()\r\n } else {\r\n // console.log(\"masuk error\")\r\n setShowErrorPopup(true)\r\n let message = \"\"\r\n if (res.error) {\r\n message += \"

\"\r\n res.error.forEach(e => {\r\n message += \"\" + e + \"\"\r\n })\r\n message += \"

\"\r\n }\r\n setAlertOption({ title: res.result, message: message, redirect: false })\r\n }\r\n setLoading(false)\r\n\r\n }\r\n\r\n }\r\n\r\n const handleSearch = (e) => {\r\n if (e.target.value != '') {\r\n var filterData = originalData.filter(val => (val.equipment.toString().toLowerCase().includes(e.target.value.toLowerCase())) || val.eqmodelName.toLowerCase().includes(e.target.value.toLowerCase()) || val.description.toLowerCase().includes(e.target.value.toLowerCase()))\r\n setDaftarEQ(filterData)\r\n\r\n if (filterData.length < itemDaftarEQ) {\r\n setShowMoreDaftarEQ(false)\r\n } else {\r\n setShowMoreDaftarEQ(true)\r\n }\r\n } else {\r\n setDaftarEQ(originalData)\r\n\r\n if (originalData.length > itemDaftarEQ) {\r\n setShowMoreDaftarEQ(true)\r\n } else {\r\n setShowMoreDaftarEQ(false)\r\n }\r\n }\r\n }\r\n\r\n const handleResetSearch = () => {\r\n setDaftarEQ(originalData)\r\n\r\n if (originalData.length > itemDaftarEQ) {\r\n setShowMoreDaftarEQ(true)\r\n } else {\r\n setShowMoreDaftarEQ(false)\r\n }\r\n }\r\n\r\n const handleNavClick = (nav) => {\r\n setIsActive(false)\r\n\r\n if (nav === \"active\") {\r\n setIsActive(true)\r\n }\r\n }\r\n\r\n const handleShowMoreDaftarEQ = () => {\r\n const showItem = 5\r\n const newItemDaftarEQ = itemDaftarEQ + showItem\r\n\r\n setItemDaftarEQ(newItemDaftarEQ)\r\n\r\n if (newItemDaftarEQ >= daftarEQ.length) {\r\n setShowMoreDaftarEQ(false)\r\n } else {\r\n setShowMoreDaftarEQ(true)\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n {\r\n searchActive ? (\r\n
\r\n setSearchActive(false)}>\r\n \r\n \r\n
e.preventDefault()}>\r\n setClickSearch(true)} onKeyUp={handleSearch} className=\"form-control search-riwayat\" placeholder=\"Telusuri...\" style={{ position: 'absolute', right: 65 }} />\r\n \r\n
\r\n handleNavClick('active')} id=\"nav-dropdown\" title={} style={{ position: 'absolute', right: 20, zIndex: '1111' }}>\r\n \r\n
\r\n
\r\n Tambah EQ\r\n
\r\n
\r\n
\r\n
\r\n
\r\n ) : (\r\n <>\r\n
\r\n

\r\n \r\n \r\n \r\n Daftar EQ\r\n

\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n setSearchActive(true)} style={{ fontSize: '20px' }}>\r\n \r\n
\r\n\r\n \r\n )\r\n }\r\n
\r\n
\r\n
\r\n
\r\n
e.preventDefault()}>\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {\r\n daftarEQ.slice(0, itemDaftarEQ).map((value, key) => (\r\n !value.deleted && (\r\n
\r\n
\r\n

{value.equipment}

\r\n

{value.eqmodelName}

\r\n

{value.description}

\r\n
\r\n
\r\n
\r\n \r\n
Ubah
\r\n
\r\n
\r\n
\r\n {value.eqVerified && (\r\n \"Image\"\r\n )}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n )))\r\n }\r\n {showMoreDaftarEQ && (\r\n
\r\n \r\n
\r\n )}\r\n
\r\n \r\n {showPopup && (\r\n { handleConfirmDelete(); }} />\r\n )}\r\n {showSuccessPopup && (\r\n \r\n )}\r\n {showPopupUpload && (\r\n \r\n )}\r\n {\r\n showErrorPopup && (\r\n \r\n )\r\n }\r\n
\r\n
\r\n \r\n )\r\n}\r\n\r\nexport default DaftarEQ\r\n"],"names":["Component","render","_this$props","_jsx","_Fragment","children","style","position","top","left","right","bottom","backgroundColor","zIndex","display","this","props","visible","alignItems","justifyContent","className","customClass","_jsxs","titleMessage","Parser","message","border","onClick","marginRight","onCancel","constructor","super","handleFileInputChange","e","file","target","files","length","document","querySelectorAll","forEach","val","key","innerHTML","name","reader","FileReader","onload","event","localStorage","setItem","result","readAsDataURL","state","csvFile","fileName","uploading","borderBottom","fontSize","margin","type","id","accept","onChange","htmlFor","cursor","color","useParams","navigate","useLocation","useNavigate","showPopup","setShowPopup","useState","showSuccessPopup","setShowSuccessPopup","showErrorPopup","setShowErrorPopup","alertOption","setAlertOption","title","nomorEQToDelete","setNomorEQToDelete","loading","setLoading","daftarEQ","setDaftarEQ","originalData","setOriginalData","searchActive","setSearchActive","isActive","setIsActive","showPopupUpload","setShowPopupUpload","itemDaftarEQ","setItemDaftarEQ","showMoreDaftarEQ","setShowMoreDaftarEQ","clickSearch","setClickSearch","inputFileRef","React","useEffect","daftarEq","async","res","getDaftarEq","status","undefined","data","Table","handleUpdate","preventDefault","item","JSON","parse","getAttribute","input","equipment","toString","modelName","eqmodelName","description","address","AddressId","Penerima","Nama_Alamat","Alamat","Kota","Kode_Pos","handleSuccessPopup","getElementById","value","handleCSVUpload","UploadEquipment","redirect","error","handleSearch","filterData","filter","toLowerCase","includes","handleResetSearch","onSubmit","onKeyUp","placeholder","background","NavDropdown","handleNavClick","nav","Item","href","Link","to","width","marginLeft","ref","handleUpload","current","click","padding","handleDownloadCSV","getDownloadEquipment","paddingLeft","paddingRight","slice","map","deleted","borderRadius","boxShadow","stringify","marginTop","fontWeight","pointerEvents","eqVerified","src","verifiedImage","height","alt","handleDeletedItem","noEQToDelete","handleShowMoreDaftarEQ","newItemDaftarEQ","LoadingAlert","RemoveAlert","getEquipmentToDelete","equipmentToDelete","find","eq","handleCancelDelete","deleteDaftarEq","handleConfirmDelete","ConfirmAlert","UploadFileAlert","ErrorAlert","handlePopup"],"sourceRoot":""}