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ACRG,EAAc,IACdG,GAAe,IACfT,EAAgB,IAChBY,GAAoB,GAAG,EA+ViHrE,YAAY,2BAA2BO,WAAW,gCAOlM,C","sources":["component/alert/optionAddAlert.js","views/daftar-alamat/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, redirect, useNavigate, useLocation, useParams } from \"react-router-dom\";\r\nimport { createDaftarAlamat, getDaftarAlamatById, updateDaftarAlamat } from \"../../services/API/mod_daftarAlamat\";\r\nimport ConfirmAlert from \"../../component/alert/confirmAlert\";\r\nimport LoadingAlert from \"../../component/alert/loadingAlert\";\r\nimport OptionAddAlert from \"../../component/alert/optionAddAlert\"\r\n\r\nimport imageMaps from '../../images/map.png';\r\n\r\nfunction FormAddress(){\r\n const navigate = useNavigate()\r\n const location = useLocation()\r\n const params = useParams()\r\n const mapsRef = useRef()\r\n\r\n\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 \r\n const [alertOption, setAlertOption] = useState({title: '', message: '', redirect: false})\r\n const [loading, setLoading] = useState(false)\r\n const [showPopup, setShowPopup] = useState(false)\r\n const [showPopupOption, setShowPopupOption] = useState(false)\r\n // const [validated, setValidated] = useState(false)\r\n const [scrollToTop, setScrollToTop] = useState(false)\r\n // const [scrollDeliveryLocation, setScrollDeliveryLocation] = useState(false)\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 \r\n console.log(location.state);\r\n\r\n const handlePopup = () => {\r\n setShowPopup(false)\r\n if(alertOption.redirect){\r\n navigate('/daftar_alamat')\r\n }\r\n }\r\n const handleMaps = () => {\r\n if(location.state?.id) {\r\n var state = {\r\n id: location.state?.id,\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\r\n },\r\n redirect: '/tambah_alamat',\r\n latitude, longitude\r\n }\r\n } else {\r\n var 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 },\r\n redirect: '/tambah_alamat',\r\n latitude, longitude\r\n }\r\n }\r\n \r\n navigate('/google_maps', {state})\r\n\r\n setDeliveryLocation(true)\r\n\r\n }\r\n\r\n const handleAddingData = () => {\r\n setShowPopupOption(false)\r\n setTimeout(() => {\r\n window.scrollTo({top: 0, behavior: 'smooth'})\r\n setScrollToTop(false)\r\n }, 500)\r\n\r\n setAddressLabel('')\r\n setRecipientName('')\r\n setStreetName('')\r\n setCity('')\r\n setPostalCode('')\r\n setPhoneNumber('')\r\n setBuildingName('')\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(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 const validationRecipientName = (e) => {\r\n e.preventDefault()\r\n setRecipientName(e.target.value)\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 const validationStreetName = (e) => {\r\n e.preventDefault()\r\n setStreetName(e.target.value)\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 const validationBuildingName = (e) => {\r\n e.preventDefault()\r\n setBuildingName(e.target.value)\r\n if(e.target.value === \"\"){\r\n setErrorBuildingName('Silahkan isi nama gedung/kantor')\r\n } else {\r\n setErrorBuildingName('')\r\n }\r\n }\r\n\r\n const validationCity = (e) => {\r\n e.preventDefault()\r\n setCity(e.target.value)\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 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(e.target.value === \"\"){\r\n setErrorDeliveryLocation('Silahkan isi lokasi pengiriman')\r\n } else {\r\n setErrorDeliveryLocation('')\r\n }\r\n }\r\n\r\n const validationPhoneNumber = (e) =>{\r\n e.preventDefault()\r\n setPhoneNumber(e.target.value)\r\n if(e.target.value === \"\"){\r\n setErrorPhoneNumber('Silahkan isi nomor telepon penerima')\r\n } else {\r\n 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 return\r\n }\r\n \r\n setErrorPhoneNumber('')\r\n }\r\n }\r\n\r\n const validationPostalCode = (e) =>{\r\n e.preventDefault()\r\n setPostalCode(e.target.value)\r\n if(e.target.value == \"\"){\r\n setErrorPostalCode('Silahkan isi kode pos')\r\n } else {\r\n if(!e.target.value.match(\"^[0-9]*$\")){\r\n setErrorPostalCode('Kode pos harus berupa angka')\r\n return\r\n } else {\r\n if(e.target.value.length < 5){\r\n setErrorPostalCode('Kode pos harus terdiri dari 5 digit')\r\n return\r\n } else {\r\n if(e.target.value.length > 20){\r\n setErrorPostalCode('Kode pos tidak boleh lebih dari 20 karakter')\r\n return\r\n }\r\n }\r\n }\r\n setErrorPostalCode('')\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n window.history.replaceState({}, document.title)\r\n if (location.state?.id) {\r\n daftarAlamatById()\r\n }\r\n\r\n if(location.state?.location) {\r\n mapsRef.current.focus()\r\n mapsRef.current.scrollIntoView()\r\n }\r\n }, []);\r\n\r\n const daftarAlamatById = async () => {\r\n setLoading(true)\r\n const res = await getDaftarAlamatById(location.state?.id)\r\n setLoading(false)\r\n if(res.status == 200) {\r\n \r\n setAddressLabel(res.data.Table[0].Nama_Alamat)\r\n setRecipientName(res.data.Table[0].Penerima)\r\n setStreetName(res.data.Table[0].Alamat)\r\n setBuildingName(res.data.Table[0].NamaGedung)\r\n setCity(res.data.Table[0].Kota)\r\n setPostalCode(res.data.Table[0].Kode_Pos.trim())\r\n setPhoneNumber(res.data.Table[0].Telp_Penerima.trim())\r\n setDeliveryLocation(`${res.data.Table[0].Latitude},${res.data.Table[0].Longitude}`)\r\n\r\n setLatitude(res.data.Table[0].Latitude)\r\n setLongitude(res.data.Table[0].Longitude)\r\n }\r\n }\r\n\r\n\r\n const sumbit = async (e) => {\r\n e.preventDefault()\r\n let isValid = true\r\n if (addressLabel === \"\") {\r\n isValid = false\r\n setErrorAddressLabel(\"Silahkan isi simpan alamat sebagai\")\r\n } \r\n if (recipientName === \"\") {\r\n isValid = false\r\n setErrorRecipientName(\"Silahkan isi nama penerima\")\r\n } \r\n if (streetName === \"\") {\r\n isValid = false\r\n setErrorStreetName(\"Silahkan isi nama jalan & nomor gedung/kantor\")\r\n } \r\n if (buildingName === \"\") {\r\n isValid = false\r\n setErrorBuildingName(\"Silahkan isi nama gedung/kantor\")\r\n } \r\n if (city === \"\") {\r\n isValid = false\r\n setErrorCity(\"Silahkan isi kota\")\r\n } \r\n if (deliveryLocation === \"\") {\r\n isValid = false\r\n setErrorDeliveryLocation(\"Silahkan isi lokasi pengiriman\")\r\n } \r\n if (postalCode === \"\") {\r\n isValid = false\r\n setErrorPostalCode(\"Silahkan isi kode pos\")\r\n } \r\n if (phoneNumber === \"\") {\r\n isValid = false\r\n setErrorPhoneNumber(\"Silahkan isi nomor penerima\")\r\n } \r\n \r\n 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 if (!postalCode.match(\"^[0-9]*$\")) {\r\n isValid = false\r\n setErrorPostalCode('Kode pos harus berupa angka')\r\n }\r\n if (postalCode.length > 20) {\r\n isValid = false\r\n setErrorPostalCode('Kode pos tidak boleh lebih dari 20 karakter')\r\n }\r\n if (postalCode.length < 5) {\r\n isValid = false\r\n setErrorPostalCode('Kode pos harus terdiri dari 5 digit')\r\n }\r\n\r\n // setValidated(isValid)\r\n if (isValid) {\r\n if(location.state?.id) {\r\n setLoading(true)\r\n const res = await updateDaftarAlamat(location.state?.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 isPin: isPin, \r\n NamaGedung: buildingName,\r\n NoGedung: ''\r\n })\r\n setLoading(false)\r\n if(res.status == 200 && res.data.includes('Succes update')) {\r\n setShowPopup(true)\r\n setAlertOption({\r\n title: '',\r\n message: 'Alamat berhasil diupdate',\r\n redirect: true\r\n })\r\n } else {\r\n setShowPopup(true)\r\n setAlertOption({\r\n title: 'Error',\r\n message: res.data,\r\n redirect: false\r\n })\r\n }\r\n } else {\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 setLoading(false)\r\n if(res.status == 200 && res.data.message.includes('Succes insert')) {\r\n setShowPopupOption(true)\r\n setAlertOption({\r\n title: '', \r\n message: 'Alamat berhasil ditambahkan',\r\n redirect: true\r\n })\r\n } \r\n }\r\n } else {\r\n isValid = false\r\n setShowPopup(true)\r\n setAlertOption({\r\n title: '',\r\n message: 'Input not valid',\r\n redirect: 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 Tambah Alamat\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 {errorAddressLabel} \r\n
\r\n \r\n
\r\n \r\n {errorRecipientName} \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n {errorStreetName} \r\n
\r\n \r\n
\r\n \r\n {errorBuildingName} \r\n
\r\n \r\n
\r\n \r\n {errorCity} \r\n
\r\n \r\n
\r\n \r\n {errorPostalCode} \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n {errorPhoneNumber} \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 {errorDeliveryLocation} \r\n
\r\n Pastikan lokasi yang anda tandai di peta sesuai dengan alamat yang anda isi diatas\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\nexport default FormAddress\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","message","border","onClick","onList","textButton","_location$state$input","_location$state","_location$state$input2","_location$state$input3","_location$state2","_location$state2$inpu","_location$state$input4","_location$state3","_location$state3$inpu","_location$state$input5","_location$state4","_location$state4$inpu","_location$state$input6","_location$state5","_location$state5$inpu","_location$state$input7","_location$state6","_location$state6$inpu","_location$state$input8","_location$state7","_location$state7$inpu","_location$state$locat","_location$state8","_location$state$latit","_location$state9","_location$state$longi","_location$state10","_location$state$isPin","_location$state11","navigate","useNavigate","location","useLocation","mapsRef","useParams","useRef","addressLabel","setAddressLabel","useState","state","input","Nama_Alamat","recipientName","setRecipientName","Penerima","streetName","setStreetName","Alamat","buildingName","setBuildingName","NamaGedung","city","setCity","Kota","postalCode","setPostalCode","Kode_Pos","phoneNumber","setPhoneNumber","Telp_Penerima","deliveryLocation","setDeliveryLocation","latitude","setLatitude","longitude","setLongitude","isPin","alertOption","setAlertOption","title","redirect","loading","setLoading","showPopup","setShowPopup","showPopupOption","setShowPopupOption","scrollToTop","setScrollToTop","errorAddressLabel","setErrorAddressLabel","errorBuildingName","setErrorBuildingName","errorCity","setErrorCity","errorPostalCode","setErrorPostalCode","errorPhoneNumber","setErrorPhoneNumber","errorRecipientName","setErrorRecipientName","errorStreetName","setErrorStreetName","errorDeliveryLocation","setErrorDeliveryLocation","console","log","handlePopup","useEffect","_location$state14","_location$state15","window","history","replaceState","document","id","daftarAlamatById","current","focus","scrollIntoView","async","_location$state16","res","getDaftarAlamatById","status","data","Table","trim","Latitude","Longitude","height","fontSize","Link","to","color","borderBottom","borderRadius","onSubmit","e","preventDefault","isValid","_location$state17","match","length","_location$state18","updateDaftarAlamat","toString","NoGedung","includes","createDaftarAlamat","UserId","localStorage","getItem","Default","boxShadow","type","onChange","target","value","width","inputMode","maxLength","src","imageMaps","alt","longLat","split","paddingTop","handleMaps","_location$state12","_location$state13","ref","padding","LoadingAlert","ConfirmAlert","OptionAddAlert","handleAddingData","setTimeout","scrollTo","behavior"],"sourceRoot":""}