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SAAC,2GASpGF,EAAAA,EAAAA,KAAA,OAAKiB,UAAU,gEAA+Df,UAC1EF,EAAAA,EAAAA,KAAA,UAAQmQ,KAAK,SAASlP,UAAU,0BAA0Bd,MAAO,CAAC6M,SAAS,OAAQmF,SAAS,QAASpF,OAAO,QAAQ7M,SAAC,iBAG7HF,EAAAA,EAAAA,KAACoS,EAAAA,EAAc,CAACtR,QAASsE,GAAoB/D,QAASiE,GAAYjE,QAASI,WAAW,iBAAiBP,YAAY,2BAA2BM,OAAQgL,GAAajL,QA7kB3J8Q,KACpBhN,IAAsB,GAEnBvB,EAAesI,UACdtF,IAAe,GAEfwL,YAAW,KACPxO,EAAesI,QAAQC,eAAe,CAACkG,SAAS,WAChDzL,IAAe,EAAM,GACtB,MAGP5C,EAAQ,IACRG,EAAS,IACTE,EAAc,IAEdyB,GAAc,IACdiE,GAAkB,OAElB/C,GAAgB,IAChBI,GAAiB,IACjBG,GAAc,IACdG,GAAgB,IAChBG,GAAQ,IACRG,GAAc,IACdG,GAAe,IACfG,GAAoB,GAAG,KAojBXxI,EAAAA,EAAAA,KAACwS,EAAAA,EAAY,CAAC1R,QAASkE,GAAW3D,QAASiE,GAAYjE,QAASH,YAAY,0BAA0BK,QAASiL,MAC/GxM,EAAAA,EAAAA,KAACyS,EAAAA,EAAY,CAAC3R,QAAS6E,GAASzE,YAAY,0BAKhE,C","sources":["component/alert/optionAddAlert.js","views/daftar-eq/form.js"],"sourcesContent":["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}","import { useState, useEffect, useRef } from \"react\";\r\nimport { Link, useNavigate, useLocation } from \"react-router-dom\";\r\nimport ConfirmAlert from \"../../component/alert/confirmAlert\";\r\nimport { createDaftarEq, updateDaftarEq } from \"../../services/API/mod_daftarEQ\";\r\nimport LoadingAlert from \"../../component/alert/loadingAlert\";\r\nimport { getDaftarAlamat } from \"../../services/API\";\r\nimport { createDaftarAlamat } from \"../../services/API/mod_daftarAlamat\";\r\nimport mapImage from './../../images/map.png'\r\nimport OptionAddAlert from \"../../component/alert/optionAddAlert\";\r\n\r\nfunction FormEQ() {\r\n const location = useLocation()\r\n const navigate = useNavigate()\r\n const scrollToTopRef = useRef(null)\r\n const mapRef = useRef(null)\r\n\r\n const [noEQ, setNoEQ] = useState('')\r\n const [model, setModel] = useState('')\r\n const [keterangan, setKeterangan] = useState('')\r\n const [errorNoEQ, setErrorNoEQ] = useState('')\r\n const [errorModel, setErrorModel] = useState('')\r\n const [errorKeterangan, setErrorKeterangan] = useState('')\r\n const [errorAddressOrMachineLocation, setErrorAddressOrMachineLocation] = useState('')\r\n const [showPopup, setShowPopup] = useState(false)\r\n const [showAddedPopup, setShowAddedPopup] = useState(false)\r\n const [showAddOptionPopup, setShowAddOptionPopup] = useState(false)\r\n const [alertOption, setAlertOption] = useState({title: '', message:'', reload: false, redirect: false})\r\n const [loading, setLoading] = useState(false)\r\n\r\n const [showDropdown, setShowDropdown] = useState(false)\r\n const [searchText, setSearchText] = useState('')\r\n const [dataDaftarAlamat, setDataDaftarAlamat] = useState([])\r\n const [originalData, setOriginalData] = useState('')\r\n const [showMoreAlamat, setShowMoreAlamat] = useState(false)\r\n const [selectedAddress, setSelectedAddress] = useState(null)\r\n const [selectedRadio, setSelectedRadio] = useState(location.state?.activeRadio ?? 'list')\r\n const [scrollToTop, setScrollToTop] = useState(false)\r\n\r\n const [addressNumber, setAddressNumber] = useState('')\r\n const [addressLabel, setAddressLabel] = useState(location.state?.input?.Nama_Alamat ?? '')\r\n const [recipientName, setRecipientName] = useState(location.state?.input?.Penerima ?? '')\r\n const [streetName, setStreetName] = useState(location.state?.input?.Alamat ?? '')\r\n const [buildingName, setBuildingName] = useState(location.state?.input?.NamaGedung ?? '')\r\n const [city, setCity] = useState(location.state?.input?.Kota ?? '')\r\n const [postalCode, setPostalCode] = useState(location.state?.input?.Kode_Pos ?? '')\r\n const [phoneNumber, setPhoneNumber] = useState(location.state?.input?.Telp_Penerima ?? '')\r\n const [deliveryLocation, setDeliveryLocation] = useState(location.state?.location ?? '')\r\n const [latitude, setLatitude] = useState(location.state?.latitude ?? '')\r\n const [longitude, setLongitude] = useState(location.state?.longitude ?? '')\r\n const isPin = location.state?.isPin ?? false\r\n const [addressid, setAddressid] = useState(null)\r\n\r\n const [errorAddressLabel, setErrorAddressLabel] = useState('')\r\n const [errorBuildingName, setErrorBuildingName] = useState('')\r\n const [errorCity, setErrorCity] = useState('')\r\n const [errorPostalCode, setErrorPostalCode] = useState('')\r\n const [errorPhoneNumber, setErrorPhoneNumber] = useState('')\r\n const [errorRecipientName, setErrorRecipientName] = useState('')\r\n const [errorStreetName, setErrorStreetName] = useState('')\r\n const [errorDeliveryLocation, setErrorDeliveryLocation] = useState('')\r\n const [textareaHeight, setTextareaHeight] = useState('1em')\r\n\r\n const alamatEQ = location.state?.address\r\n const alamatUpdate = alamatEQ ? `${alamatEQ.Penerima} - ${alamatEQ.Nama_Alamat} \\n ${alamatEQ.Alamat}` : ''\r\n\r\n \r\n useEffect(() => {\r\n window.history.replaceState({}, document.title)\r\n var equipment = localStorage.getItem('equipment')\r\n init()\r\n setNoEQ(location.state?.input?.equipment || (equipment?.EQ ?? ''))\r\n setModel(location.state?.input?.modelName || (equipment?.modelName ?? ''))\r\n setKeterangan(location.state?.input?.description || '')\r\n \r\n if(alamatEQ) {\r\n setSearchText(alamatUpdate)\r\n setAddressid(alamatEQ.id.toString())\r\n setTextareaHeight('55px')\r\n }\r\n\r\n if (mapRef) {\r\n mapRef.scrollTop = mapRef.scrollHeight;\r\n mapRef.current?.scrollIntoView()\r\n }\r\n\r\n },[]);\r\n\r\n async function init() {\r\n setLoading(true)\r\n const res = await getDaftarAlamat()\r\n setLoading(false)\r\n if(res.status === 200) {\r\n setDataDaftarAlamat(res.data.Table)\r\n setOriginalData(res.data.Table)\r\n }\r\n }\r\n\r\n const handleDropdownItemClick = (item) => {\r\n setAddressid(item.id.toString())\r\n setSelectedAddress(item)\r\n \r\n const newSearchText = `${item.Penerima} - ${item.Nama_Alamat} \\n ${item.Alamat}`\r\n setSearchText(newSearchText)\r\n\r\n // setSearchText(item.Penerima + ' - ' + item.Nama_Alamat + '\\n' + item.Alamat)\r\n setShowDropdown(false)\r\n setErrorAddressOrMachineLocation('')\r\n\r\n if (window.innerWidth <= 768) {\r\n setTextareaHeight('45px')\r\n } else {\r\n setTextareaHeight('54px')\r\n }\r\n }\r\n\r\n const displayShowMoreAlamat = showMoreAlamat ? dataDaftarAlamat : dataDaftarAlamat.slice(0, 5)\r\n const handleShowMoreAlamat = () => {\r\n setShowMoreAlamat(true)\r\n }\r\n\r\n const filteredAlamat = (e) => {\r\n if(e.target.value !== '') {\r\n var filterData = originalData.filter(val => (val.Penerima.toString().toLowerCase().includes(e.target.value.toLowerCase())) || val.Nama_Alamat.toLowerCase(). includes(e.target.value.toLowerCase()) || val.Alamat.toLowerCase().includes(e.target.value.toLowerCase()))\r\n setDataDaftarAlamat(filterData)\r\n } else {\r\n setDataDaftarAlamat(originalData)\r\n }\r\n }\r\n\r\n const handleResetAddress = () => {\r\n setSearchText(\"\")\r\n setErrorAddressOrMachineLocation(\"\")\r\n setTextareaHeight(\"1em\")\r\n setDataDaftarAlamat(originalData)\r\n }\r\n\r\n const handleSearchInputChange = (e) => {\r\n const inputText = e.target.value\r\n setSearchText(inputText)\r\n\r\n if(inputText.trim() === \"\") {\r\n setErrorAddressOrMachineLocation('Silahkan isi alamat/lokasi mesin')\r\n setTextareaHeight('1em')\r\n } else {\r\n setErrorAddressOrMachineLocation('')\r\n }\r\n\r\n setShowDropdown(!!inputText)\r\n }\r\n \r\n const handleNoEqChange = (e) => {\r\n e.preventDefault()\r\n setNoEQ(e.target.value)\r\n\r\n if (e.target.value.trim() === \"\") {\r\n setErrorNoEQ('Silahkan isi nomor equipment')\r\n } else if (!e.target.value.match(/^\\d*$/)) {\r\n setErrorNoEQ('Nomor equipment harus berupa angka')\r\n } else if (e.target.value.length !== 6) {\r\n setErrorNoEQ('Nomor equipment harus terdiri dari 6 digit')\r\n } else {\r\n setErrorNoEQ('')\r\n }\r\n }\r\n\r\n const handleModelChange = (e) => {\r\n const value = e.target.value;\r\n if (value === \"\") {\r\n setModel(value)\r\n setErrorModel(\"Silahkan isi nama model\")\r\n } else {\r\n setModel(value)\r\n setErrorModel('')\r\n }\r\n }\r\n \r\n const handleKeteranganChange = (e) => {\r\n const value = e.target.value;\r\n if (value === \"\") {\r\n setKeterangan(value)\r\n setErrorKeterangan(\"Silahkan isi keterangan\")\r\n } else {\r\n setKeterangan(value)\r\n setErrorKeterangan('')\r\n }\r\n }\r\n \r\n const handlePopup = () => {\r\n setShowAddedPopup(false)\r\n setShowPopup(false)\r\n setShowAddOptionPopup(false)\r\n if(alertOption.reload) {\r\n navigate('/daftar_eq', {\r\n state: {\r\n address: selectedAddress, \r\n description: keterangan, \r\n equipment: noEQ, \r\n modelName: model, \r\n userid: localStorage.getItem('id')\r\n }\r\n })\r\n }\r\n \r\n if(alertOption.redirect) {\r\n if(selectedRadio === 'baru') {\r\n navigate(location.state?.redirect, {\r\n state: {\r\n address: {\r\n id: addressNumber,\r\n Penerima: recipientName,\r\n Nama_Alamat: addressLabel,\r\n Alamat: streetName,\r\n Kota: city,\r\n Latitude: latitude,\r\n Longitude: longitude\r\n }, \r\n description: keterangan, \r\n equipment: noEQ.toString(), \r\n modelName: model, \r\n userid: localStorage.getItem('id')\r\n }\r\n })\r\n } else {\r\n navigate(location.state?.redirect, {\r\n state: {\r\n address: selectedAddress, \r\n description: keterangan, \r\n equipment: noEQ.toString(), \r\n modelName: model, \r\n userid: localStorage.getItem('id')\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n const handleAddingEQ = () => {\r\n setShowAddOptionPopup(false)\r\n\r\n if(scrollToTopRef.current) {\r\n setScrollToTop(true)\r\n\r\n setTimeout(() => {\r\n scrollToTopRef.current.scrollIntoView({behavior:'smooth'})\r\n setScrollToTop(false)\r\n }, 500);\r\n }\r\n\r\n setNoEQ('')\r\n setModel('')\r\n setKeterangan('')\r\n\r\n setSearchText('')\r\n setTextareaHeight('1em')\r\n\r\n setAddressLabel('')\r\n setRecipientName('')\r\n setStreetName('')\r\n setBuildingName('')\r\n setCity('')\r\n setPostalCode('')\r\n setPhoneNumber('')\r\n setDeliveryLocation('')\r\n }\r\n\r\n const validationAddressLabel = (e) => {\r\n e.preventDefault()\r\n setAddressLabel(e.target.value)\r\n if(selectedRadio === \"baru\") {\r\n if(e.target.value === \"\") {\r\n setErrorAddressLabel('Silahkan isi simpan alamat sebagai')\r\n } else {\r\n setErrorAddressLabel('')\r\n }\r\n }\r\n }\r\n\r\n const validationRecipientName = (e) => {\r\n e.preventDefault()\r\n setRecipientName(e.target.value)\r\n if(selectedRadio === \"baru\") {\r\n if(e.target.value === \"\") {\r\n setErrorRecipientName('Silahkan isi nama penerima')\r\n } else {\r\n setErrorRecipientName('')\r\n }\r\n }\r\n }\r\n\r\n const validationStreetName = (e) => {\r\n e.preventDefault()\r\n setStreetName(e.target.value)\r\n if(selectedRadio === \"baru\") {\r\n if(e.target.value === \"\") {\r\n setErrorStreetName('Silahkan isi nama jalan & nomor gedung/kantor')\r\n } else {\r\n setErrorStreetName('')\r\n }\r\n }\r\n }\r\n\r\n const validationBuildingName = (e) => {\r\n e.preventDefault()\r\n setBuildingName(e.target.value)\r\n if(selectedRadio === \"baru\") {\r\n if(e.target.value === \"\") {\r\n setErrorBuildingName('Silahkan isi nomor gedung/kantor')\r\n } else {\r\n setErrorBuildingName('')\r\n }\r\n }\r\n }\r\n\r\n const validationCity = (e) => {\r\n e.preventDefault()\r\n setCity(e.target.value)\r\n if(selectedRadio === \"baru\") {\r\n if(e.target.value === \"\") {\r\n setErrorCity('Silahkan isi kota')\r\n } else {\r\n setErrorCity('')\r\n }\r\n }\r\n }\r\n\r\n const validationDeliveryLocation = (e) => {\r\n e.preventDefault()\r\n var longLat = e.target.value.split(',')\r\n\r\n setLatitude(longLat[0])\r\n setLongitude(longLat[1])\r\n\r\n setDeliveryLocation(e.target.value)\r\n if(selectedRadio === \"baru\") {\r\n if(e.target.value === \"\") {\r\n setErrorDeliveryLocation('Silahkan isi lokasi pengiriman')\r\n } else {\r\n setErrorDeliveryLocation('')\r\n }\r\n }\r\n }\r\n\r\n const validationPhoneNumber = (e) => {\r\n e.preventDefault()\r\n setPhoneNumber(e.target.value)\r\n if(selectedRadio === \"baru\") {\r\n if(e.target.value === \"\") {\r\n setErrorPhoneNumber('Silahkan isi nomor telepon penerima')\r\n } else if (!e.target.value.match(\"^[0-9]*$\") || e.target.value.length < 9 || e.target.value.length > 16) {\r\n setErrorPhoneNumber('Nomor tidak valid')\r\n } else {\r\n setErrorPhoneNumber('')\r\n }\r\n }\r\n }\r\n\r\n\r\n const validationPostalCode = (e) => {\r\n e.preventDefault()\r\n setPostalCode(e.target.value)\r\n if(selectedRadio === \"baru\") {\r\n if(e.target.value.trim === \"\") {\r\n setErrorPostalCode('Silahkan isi kode pos')\r\n } else if (!e.target.value.match(\"^[0-9]*$\")) {\r\n setErrorPostalCode('Kode pos harus berupa angka')\r\n } else if (e.target.value.length !== 5) {\r\n setErrorPostalCode('Kode pos harus terdiri dari 5 digit')\r\n } else {\r\n setErrorPostalCode('')\r\n }\r\n }\r\n }\r\n\r\n const handleMaps = (e) => {\r\n e.preventDefault()\r\n navigate('/google_maps', {\r\n state: {\r\n input: {\r\n Nama_Alamat: addressLabel,\r\n Penerima: recipientName, \r\n Alamat: streetName, \r\n Kota: city, \r\n Kode_Pos: postalCode, \r\n Telp_Penerima: phoneNumber,\r\n NamaGedung: buildingName,\r\n description: keterangan, \r\n equipment: noEQ, \r\n modelName: model,\r\n },\r\n redirect: location.state?.redirect,\r\n currentNavigate: selectedRadio\r\n }\r\n })\r\n }\r\n\r\n const handleRedirectBack = () => {\r\n if(location.state?.redirect === '/breakfix_request') {\r\n navigate('/breakfix_request')\r\n } else if (location.state?.redirect === '/supplies_request') {\r\n navigate('/supplies_request')\r\n } else if (location.state?.redirect === '/install_request') {\r\n navigate('/install_request')\r\n } else if (location.state?.redirect === '/collect_meter') {\r\n navigate('/collect_meter')\r\n } else {\r\n navigate('/daftar_eq')\r\n }\r\n }\r\n\r\n const submit = async (e) => {\r\n e.preventDefault()\r\n\r\n let isValid = true;\r\n\r\n if(selectedRadio === \"list\") {\r\n if(!noEQ === noEQ?.EQ || noEQ === \"\") {\r\n setErrorNoEQ(\"Silahkan isi nomor equipment\")\r\n isValid = false;\r\n } else {\r\n setErrorNoEQ('')\r\n \r\n }\r\n if(!noEQ.toString().match(/^\\d*$/)) {\r\n setErrorNoEQ(\"Nomor equipment harus berupa angka\")\r\n isValid = false;\r\n }\r\n\r\n if(noEQ.toString().length !== 6) {\r\n setErrorNoEQ(\"Nomor equipment harus terdiri dari 6 digit\")\r\n isValid = false\r\n }\r\n \r\n if(!model === model?.modelName || model === \"\") {\r\n setErrorModel(\"Silahkan isi nama model\")\r\n isValid = false;\r\n } else {\r\n setErrorModel('')\r\n }\r\n \r\n if(keterangan === \"\") {\r\n setErrorKeterangan(\"Silahkan isi keterangan\")\r\n isValid = false;\r\n } else {\r\n setErrorKeterangan('')\r\n }\r\n\r\n if (searchText === \"\") {\r\n setErrorAddressOrMachineLocation('Silahkan isi alamat/lokasi mesin')\r\n isValid = false\r\n } else {\r\n setErrorAddressOrMachineLocation('')\r\n }\r\n \r\n if (isValid) {\r\n setLoading(true)\r\n if(location.state?.input?.id) {\r\n const res = await updateDaftarEq(location.state?.input?.id, {AddressId: addressid, description: keterangan, equipment: noEQ.toString(), modelName: model})\r\n if(res.status === 200 && res.data.includes('Succes update')) {\r\n setShowPopup(true)\r\n setAlertOption({\r\n title:'Berhasil',\r\n message: 'Berhasil update equipment',\r\n reload: true\r\n })\r\n } else {\r\n setShowPopup(true)\r\n setAlertOption({\r\n title: 'Error',\r\n message: 'Gagal update equipment',\r\n reload: false\r\n })\r\n }\r\n } else {\r\n const res = await createDaftarEq({AddressId: addressid, description: keterangan, equipment: noEQ.toString(), modelName: model, userid: localStorage.getItem('id')})\r\n console.log(res.data);\r\n if(res.status === 200 && res.data.includes('Succes insert')) {\r\n if(location.state?.input?.equipment && !location.state?.input.description){\r\n // setShowPopup(true)\r\n // setAlertOption({title: 'Berhasil', message: 'Berhasil menambahkan equipment', reload: false, redirect: true})\r\n // console.log(1);\r\n setShowAddOptionPopup(true) \r\n setAlertOption({\r\n title: 'Berhasil',\r\n message: 'Berhasil menambahkan equipment',\r\n reload: true\r\n })\r\n } else {\r\n if(location.state?.redirect) {\r\n setShowPopup(true)\r\n setAlertOption({title: 'Berhasil', message: 'Berhasil menambahkan equipment', reload: false, redirect: true})\r\n } else {\r\n setShowAddOptionPopup(true) \r\n setAlertOption({\r\n title: 'Berhasil',\r\n message: 'Berhasil menambahkan equipment',\r\n reload: true\r\n })\r\n console.log(2);\r\n }\r\n }\r\n } else {\r\n setShowPopup(true)\r\n setAlertOption({title:'Error',message:'Input not valid', reload: false})\r\n }\r\n }\r\n setLoading(false)\r\n } else {\r\n setShowPopup(true)\r\n setAlertOption({title: 'Error', message: 'Input not valid', reload: false})\r\n }\r\n\r\n } else if (selectedRadio === \"baru\") {\r\n if(noEQ === \"\") {\r\n setErrorNoEQ(\"Silahkan isi nomor equipment\")\r\n isValid = false;\r\n } else {\r\n setErrorNoEQ('')\r\n \r\n }\r\n \r\n if(!noEQ.toString().match(/^\\d*$/)) {\r\n setErrorNoEQ(\"Nomor equipment harus berupa angka\")\r\n isValid = false;\r\n }\r\n \r\n if(model === \"\") {\r\n setErrorModel(\"Silahkan isi nama model\")\r\n isValid = false;\r\n } else {\r\n setErrorModel('')\r\n }\r\n \r\n if(keterangan === \"\") {\r\n setErrorKeterangan(\"Silahkan isi keterangan\")\r\n isValid = false;\r\n } else {\r\n setErrorKeterangan('')\r\n }\r\n\r\n if(!addressLabel || addressLabel === \"\") {\r\n isValid = false\r\n setErrorAddressLabel(\"Silahkan isi simpan alamat sebagai\")\r\n }\r\n \r\n if(!recipientName || recipientName === \"\"){\r\n isValid = false\r\n setErrorRecipientName(\"Silahkan isi nama penerima\")\r\n }\r\n \r\n if(!streetName || streetName === \"\") {\r\n isValid = false\r\n setErrorStreetName(\"Silahkan isi nama jalan & nomor gedung/kantor\")\r\n }\r\n \r\n if(!buildingName || buildingName === \"\") {\r\n isValid = false\r\n setErrorBuildingName(\"Silahkan isi nama gedung/kantor\")\r\n }\r\n \r\n if(!city || city === \"\") {\r\n isValid = false\r\n setErrorCity(\"Silahkan isi kota\")\r\n }\r\n \r\n if(!deliveryLocation || deliveryLocation === \"\") {\r\n isValid = false\r\n setErrorDeliveryLocation(\"Silahkan isi lokasi pengiriman\")\r\n }\r\n \r\n if (!postalCode || postalCode === \"\") {\r\n isValid = false;\r\n setErrorPostalCode(\"Silahkan isi kode pos\");\r\n } else if (!postalCode.match(\"^[0-9]*$\")) {\r\n isValid = false;\r\n setErrorPostalCode('Kode pos harus berupa angka');\r\n } else if (postalCode.length > 20) {\r\n isValid = false;\r\n setErrorPostalCode('Kode pos tidak boleh lebih dari 20 karakter');\r\n } else if (postalCode.length < 5) {\r\n isValid = false;\r\n setErrorPostalCode('Kode pos harus terdiri dari 5 digit');\r\n }\r\n \r\n \r\n if(!phoneNumber || phoneNumber === \"\") {\r\n isValid = false\r\n setErrorPhoneNumber(\"Silahkan isi nomor penerima\")\r\n } else if(!phoneNumber.match(\"^[0-9]*$\") || phoneNumber.length < 9 || phoneNumber.length > 16) {\r\n isValid = false\r\n setErrorPhoneNumber(\"Nomor tidak valid\")\r\n }\r\n\r\n if (isValid) {\r\n setLoading(true)\r\n const res = await createDaftarAlamat({\r\n UserId: localStorage.getItem('id'),\r\n Nama_Alamat: addressLabel,\r\n Penerima: recipientName,\r\n Alamat: streetName,\r\n Kota: city,\r\n Kode_Pos: postalCode,\r\n Telp_Penerima: phoneNumber,\r\n Latitude: latitude.toString(),\r\n Longitude: longitude.toString(),\r\n Default: false,\r\n isPin: isPin,\r\n NamaGedung: buildingName,\r\n NoGedung: ''\r\n })\r\n setAddressNumber(res.data.number)\r\n if (res.status === 200 && res.data.message.includes('Succes insert')) {\r\n const response = await createDaftarEq({AddressId: res.data.number, description: keterangan, equipment: noEQ.toString(), modelName: model, userid: localStorage.getItem('id')})\r\n\r\n if (response.status === 200 && response.data.includes('Succes insert')) {\r\n console.log(location.state);\r\n if(typeof location.state?.input?.equipment !== 'string'){\r\n setShowPopup(true)\r\n setAlertOption({title: 'Berhasil', message: 'Berhasil menambahkan equipment', reload: false, redirect: true})\r\n console.log(1);\r\n console.log(location.state?.redirect);\r\n } else {\r\n if(location.state?.redirect) {\r\n setShowPopup(true)\r\n setAlertOption({title: 'Berhasil', message: 'Berhasil menambahkan equipment', reload: false, redirect: true})\r\n console.log(2);\r\n } else {\r\n setShowAddOptionPopup(true) \r\n setAlertOption({\r\n title: 'Berhasil',\r\n message: 'Berhasil menambahkan equipment',\r\n reload: true\r\n })\r\n console.log(3);\r\n }\r\n }\r\n } else {\r\n setShowPopup(true)\r\n setAlertOption({title:'Error',message:'Input not valid', reload: false})\r\n }\r\n }\r\n setLoading(false)\r\n } else {\r\n setShowPopup(true)\r\n setAlertOption({title: 'Error', message: 'Input not valid', reload: false})\r\n }\r\n } \r\n }\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n

\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
\r\n \r\n
\r\n \r\n {\" \"} {errorNoEQ} {\" \"} \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n {errorModel} \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n {errorKeterangan} \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n setSelectedRadio('list')}>\r\n \r\n
\r\n
\r\n setSelectedRadio('baru')}>\r\n \r\n
\r\n
\r\n {selectedRadio === 'list' && (\r\n <>\r\n
\r\n