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CAAE2M,cAAe,OAAQ1L,SAAU,QAAUH,UAAU,qBACjEjB,EAAAA,EAAAA,KAAA,QAAMiB,UAAU,eAAed,MAAO,CAAE2M,cAAe,OAAQ1L,SAAU,QAASlB,SAAC,gBAEvFiB,EAAAA,EAAAA,MAAA,KAAG+I,KAAK,GAAG7I,QAASmH,GAAkBC,OAAQ,EAAGxH,UAAU,oBAAmBf,SAAA,EAC1EF,EAAAA,EAAAA,KAAA,KAAGG,MAAO,CAAE2M,cAAe,OAAQ1L,SAAU,QAAUH,UAAU,qBACjEjB,EAAAA,EAAAA,KAAA,QAAMiB,UAAU,eAAed,MAAO,CAAE2M,cAAe,OAAQ1L,SAAU,QAASlB,SAAC,aAEvFiB,EAAAA,EAAAA,MAAA,KAAG+I,KAAK,GAAG7I,QAASmH,GAAkBC,OAAQ,EAAGxH,UAAU,oBAAmBf,SAAA,EAC1EF,EAAAA,EAAAA,KAAA,KAAGG,MAAO,CAAE2M,cAAe,OAAQ1L,SAAU,QAAUH,UAAU,gBACjEjB,EAAAA,EAAAA,KAAA,QAAMiB,UAAU,eAAed,MAAO,CAAE2M,cAAe,OAAQ1L,SAAU,QAASlB,SAAC,qBAEvFF,EAAAA,EAAAA,KAAA,OAAKiB,UAAU,kBAAkBd,MAAO,CAAEG,KAAM6C,UAIhE,C","sources":["services/API/mod_upgradeAccount.js","component/alert/updateEmailAlert.js","views/dashboard/index.js"],"sourcesContent":["\r\nimport { appConfig } from \"../../config\";\r\nimport { jsonHeaderAuth, imageHeaderAuth, refreshAuthLogic } from \"../fetchTools\";\r\nimport axios from 'axios';\r\n\r\nexport const getStatusAccountById = async () => {\r\n try {\r\n const res = await axios.get(`${appConfig.BASE_API}/userstatus/${localStorage.getItem('id')}`, jsonHeaderAuth())\r\n\r\n return {status: res.status, data: res.data}\r\n } catch (error) {\r\n return { status: error.code, message: error.message }\r\n }\r\n}\r\n\r\nexport const acUploadRegister = async (file) => {\r\n try {\r\n const res = await axios.post(`${appConfig.BASE_API}/image/register`, file, {\r\n headers: imageHeaderAuth(),\r\n mode: 'cors'\r\n })\r\n\r\n return {status: res.status, data: res.data}\r\n } catch (error) {\r\n return { status: error.code, message: error.message }\r\n }\r\n}\r\n\r\nexport const upgradeAccountPremium = async (payload) => {\r\n try {\r\n const res = await axios.post(`${appConfig.BASE_API}/user/updatepremium/${localStorage.getItem('id')}`, payload, {\r\n headers: jsonHeaderAuth(),\r\n mode: 'cors'\r\n })\r\n\r\n return {status: res.status, data: res.data}\r\n } catch (error) {\r\n return { status: error.code, message: error.message }\r\n }\r\n}\r\n\r\nexport const upgrade = async (payload) => {\r\n try {\r\n const res = await axios.post(`${appConfig.BASE_API}/user/upgrade`, payload, {\r\n headers: jsonHeaderAuth(),\r\n mode: 'cors'\r\n })\r\n return {status: res.status, data: res.data}\r\n } catch (error) {\r\n return { status: error.code, message: error.message }\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 \r\n Verifikasi Data Anda untuk memperbaharui No HP\r\n

\r\n Untuk melindungi data pelanggan, kami akan menerapkan Multi Factor Authentication, yaitu dengan menggunakan OTP saat login. OTP akan dikirimkan via WhatsApp atau Email.\r\n

\r\n Silahkan Daftarkan No HP Anda (bisa menggunakan no HP lama yang sudah terdaftar atau nomor HP baru)\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 {this.props.errorDataPhone} \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Contoh: 08123xxxx
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n this.props.setSelectedRadio('ya')}>\r\n \r\n
\r\n
\r\n
\r\n
\r\n this.props.setSelectedRadio('tidak')}>\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","import React,{ Suspense, useEffect, useState } from \"react\";\r\nimport { Link, useNavigate, useLocation } from \"react-router-dom\";\r\nimport { getDaftarEq, getDataBerita, getDataProduct, updateWhatsapp } from \"../../services/API\";\r\nimport LoadingAlert from \"../../component/alert/loadingAlert\";\r\nimport UpdateEmailAlert from \"../../component/alert/updateEmailAlert\";\r\nimport { getStatusAccountById } from \"../../services/API/mod_upgradeAccount\";\r\nimport banner1 from './../../images/banner1.png';\r\nimport bannerMobile from './../../images/bannerMobile-edit.png';\r\nimport breakfix from './../../images/breakfix.png';\r\nimport supplies from './../../images/supplies.png';\r\nimport install from './../../images/install.png';\r\nimport collectMeter from './../../images/collectMeter.png';\r\nimport callCenter from './../../images/callCenter.png';\r\nimport informasiTagihan from './../../images/informasiTagihan.png'\r\nimport { appConfig } from \"../../config\";\r\nimport { format } from \"date-fns\";\r\nimport ConfirmAlert from \"../../component/alert/confirmAlert\";\r\nimport { settoken } from \"../../services/fetchTools\";\r\nimport Cookies from \"js-cookie\";\r\nimport {auth} from '../../services/auth'\r\n\r\nconst Riwayat = React.lazy(() => import('../riwayat'));\r\nconst RiwayatTeam = React.lazy(() => import('../riwayattim'));\r\nconst Informasi = React.lazy(() => import('../informasi'));\r\nconst innerWidth = window.innerWidth\r\n\r\n\r\nconst ProtectedRoute = ({ children }) => {\r\n return children;\r\n};\r\nfunction Dashboard() {\r\n\r\n const bottomBarLineOffset = window.innerWidth * 3\r\n const bottomBarLineWidth = window.innerWidth\r\n const [linePosition, setLinePosition] = useState(0)\r\n const [statusAccount, setStatusAccount] = useState(0)\r\n const [dataNews, setDataNews] = useState([])\r\n const [hotNews, setHotNews] = useState(null)\r\n const [dataProduct, setDataProduct] = useState([])\r\n const isDesktop = window.innerWidth > 768\r\n const [loading, setLoading] = useState(false)\r\n const navigate = useNavigate()\r\n const location = useLocation()\r\n const [activeLink, setActiveLink] = useState(0)\r\n\r\n const [ showEmailPopup, setShowEmailPopup ] = useState(false)\r\n const [ phone, setPhone ] = useState('')\r\n const [ errorDataPhone, setErrorDataPhone ] = useState('')\r\n const [ isEditEmail, setIsEditEmail ] = useState(false)\r\n const [ messageUpdate, setMessageUpdate ] = useState('')\r\n const [ showSuccessPopup, setShowSuccessPopup ] = useState(false)\r\n const [ selectedRadio, setSelectedRadio ] = useState('ya')\r\n const [ email, setEmail ] = useState('')\r\n\r\n useEffect(() => {\r\n const equipment = localStorage.getItem('equipment')\r\n if(location.state?.EQ || equipment?.EQ) {\r\n checkEQ()\r\n }\r\n console.log(appConfig['BILLING_URL'])\r\n getDataAccount()\r\n \r\n document.getElementById('contentMenus').addEventListener('scroll', handleScroll)\r\n console.log(location.state);\r\n console.log('bottombar',bottomBarLineWidth)\r\n if(location.state?.currentTabActive) {\r\n document.getElementById('contentMenus').scroll({\r\n left: bottomBarLineWidth,\r\n behavior: 'smooth'\r\n })\r\n document.querySelector('.bottom-bar').querySelectorAll('a')[1].classList.add('active')\r\n }\r\n }, [])\r\n\r\n const checkEQ = async () => {\r\n const res = await getDaftarEq()\r\n\r\n if(res.status === 200) {\r\n var isFound = res.data.Table.filter(val => val.equipment === location.state.EQ).length > 0\r\n var equipment = localStorage.getItem('equipment')\r\n if(!isFound) {\r\n navigate('/tambah_eq', {\r\n state: {\r\n input: {\r\n equipment: equipment?.EQ ?? location.state.EQ,\r\n modelName: equipment?.ModelName ?? location.state.ModelName\r\n }\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n const getDataAccount = async () => {\r\n setLoading(true)\r\n const res = await getStatusAccountById()\r\n setLoading(false)\r\n if (res.status === 200) {\r\n if(res?.data?.Table && res.data.Table.length > 0) {\r\n setStatusAccount(res.data.Table[0].upgradestatus)\r\n setEmail(res.data.Table[0].emailaddress)\r\n if( res.data.Table[0].isEmailVerified == false && res.data.Table[0].isWhatsappVerified == false)\r\n {\r\n setShowEmailPopup(true)\r\n }\r\n }\r\n }\r\n }\r\n\r\n const checkPremium = (e) => {\r\n e.preventDefault()\r\n if(statusAccount === 3) {\r\n if(location.state?.EQ) { \r\n navigate('/supplies_request',{ \r\n state: {equipment:location.state}}\r\n )\r\n return\r\n }else{\r\n navigate('/supplies_request')\r\n return\r\n }\r\n }\r\n if(statusAccount === 0 || statusAccount === 2) {\r\n navigate('/upgrade_step1')\r\n return\r\n }\r\n if(statusAccount === 1) {\r\n navigate('/upgrade_step3')\r\n return\r\n }\r\n }\r\n\r\n const goToBreakfix = (e) => {\r\n e.preventDefault()\r\n\r\n if(location.state?.EQ) { \r\n navigate('/breakfix_request',{ \r\n state: {equipment:location.state}}\r\n )\r\n return\r\n }else{\r\n navigate('/breakfix_request')\r\n return\r\n }\r\n }\r\n\r\n const goToInstall = (e) => {\r\n e.preventDefault()\r\n\r\n if(location.state?.EQ) { \r\n navigate('/install_request',{ \r\n state: {equipment:location.state}}\r\n )\r\n return\r\n }else{\r\n navigate('/install_request')\r\n return\r\n }\r\n }\r\n\r\n const goToCollect = (e) => {\r\n e.preventDefault()\r\n\r\n if(location.state?.EQ) { \r\n navigate('/collect_meter',{ \r\n state: {equipment:location.state}}\r\n )\r\n return\r\n }else{\r\n navigate('/collect_meter')\r\n return\r\n }\r\n }\r\n\r\n const getDataNews = async () => {\r\n setLoading(true)\r\n const res = await getDataBerita()\r\n const response = await getDataProduct()\r\n const newsCount = res.data.news.length\r\n const productCount = response.data.length\r\n setLoading(false)\r\n if (res.status === 200 && response.status === 200) {\r\n if (newsCount >= 6) {\r\n res.data.news.forEach(news => {\r\n let tanggal=new Date(news.news_date)\r\n news.news_date=format(tanggal, \"dd MMMM yyyy HH:mm:ss\")\r\n })\r\n response.data.forEach(product => {\r\n let tanggal=new Date(product.created_at)\r\n product.created_at=format(tanggal, \"dd MMMM yyyy HH:mm:ss\")\r\n })\r\n const top4News = res.data.news.slice(newsCount - 5, newsCount - 1).sort((a, b) => b.id - a.id)\r\n\r\n setDataProduct(response.data.slice(0, 5))\r\n setHotNews(res.data.news[newsCount - 1])\r\n setDataNews(top4News)\r\n }\r\n }\r\n }\r\n\r\n const removeHTMLTags = (text) => {\r\n const div = document.createElement(\"div\")\r\n div.innerHTML = text\r\n return div.textContent || div.innerHTML || \"\"\r\n }\r\n\r\n const handleDataNews = (e, newsId) => {\r\n e.preventDefault()\r\n\r\n navigate(\"/news_detail\", {\r\n state: {\r\n id: newsId,\r\n type: \"data-news\"\r\n }\r\n })\r\n }\r\n\r\n const handleDataProduct = (e, productId) => {\r\n e.preventDefault()\r\n\r\n navigate(\"/news_detail\", {\r\n state: {\r\n id: productId,\r\n type: \"data-product\"\r\n }\r\n })\r\n }\r\n\r\n const limitChar = (text, limit, surfix) => {\r\n var a = \"\"\r\n for (var i = 0; i < limit; i++) {\r\n a += text.charAt(i)\r\n }\r\n a += surfix\r\n return a\r\n }\r\n\r\n const redirectToContact = () => {\r\n if (isDesktop) {\r\n window.location.href = 'mailto:icare@astragraphia.co.id'\r\n } else {\r\n window.location.href = 'tel:622115003445'\r\n }\r\n }\r\n\r\n const navigationScroll = (e) => {\r\n e.preventDefault();\r\n var parent = e.currentTarget.getAttribute('parent') \r\n document.getElementById('contentMenus').scroll({\r\n left: bottomBarLineWidth * parent,\r\n behavior: 'smooth'\r\n })\r\n \r\n if(document.querySelectorAll('.bottom-bar .active').length) {\r\n document.querySelector('.bottom-bar .active').classList.remove('active')\r\n }\r\n\r\n e.currentTarget.classList.add('active')\r\n }\r\n\r\n const handleScroll = (e) => {\r\n document.getElementById('contentMenus').removeEventListener('scroll', handleScroll)\r\n setLinePosition((e.target.scrollLeft * (bottomBarLineWidth - (bottomBarLineWidth / 4))) / bottomBarLineOffset)\r\n\r\n e.currentTarget.addEventListener('scrollend', animateBottomBar)\r\n\r\n function animateBottomBar(e) {\r\n e.currentTarget.removeEventListener('scrollend', animateBottomBar)\r\n if(document.querySelectorAll('.bottom-bar .active').length) {\r\n document.querySelector('.bottom-bar .active').classList.remove('active')\r\n }\r\n let setengah=bottomBarLineWidth / 2\r\n if(e.currentTarget.scrollLeft < (setengah)) {\r\n e.currentTarget.scroll({\r\n left: 0,\r\n behavior: 'smooth'\r\n })\r\n document.querySelector('.bottom-bar').querySelectorAll('a')[0].classList.add('active')\r\n return\r\n }\r\n\r\n if(e.currentTarget.scrollLeft < bottomBarLineWidth + (setengah)) {\r\n e.currentTarget.scroll({\r\n left: bottomBarLineWidth,\r\n behavior: 'smooth'\r\n })\r\n document.querySelector('.bottom-bar').querySelectorAll('a')[1].classList.add('active')\r\n return\r\n }\r\n\r\n if(e.currentTarget.scrollLeft < (bottomBarLineWidth * 2) + (setengah)) {\r\n e.currentTarget.scroll({\r\n left: bottomBarLineWidth*2,\r\n behavior: 'smooth'\r\n })\r\n document.querySelector('.bottom-bar').querySelectorAll('a')[2].classList.add('active')\r\n return\r\n }\r\n\r\n if(e.currentTarget.scrollLeft < (bottomBarLineWidth * 3) + (setengah)) {\r\n e.currentTarget.scroll({\r\n left: bottomBarLineWidth * 3,\r\n behavior: 'smooth'\r\n })\r\n document.querySelector('.bottom-bar').querySelectorAll('a')[3].classList.add('active')\r\n return\r\n }\r\n }\r\n\r\n document.getElementById('contentMenus').addEventListener('scroll', handleScroll)\r\n }\r\n\r\n const handleEditEmail = () => {\r\n setIsEditEmail(true)\r\n }\r\n \r\n const handleSubmitEmail = () => {\r\n setIsEditEmail(false)\r\n }\r\n \r\n const handleChangePhone = (event) => {\r\n if(selectedRadio == \"ya\")\r\n { \r\n setPhone(event.target.value)\r\n const value = event.target.value;\r\n if(value === \"\") {\r\n setErrorDataPhone('Silahkan isi nomor telepon')\r\n return\r\n } else if(!value.match(/^(\\+\\d{1,3})?\\d{8,15}$/) || value.length < 9 || value.length > 16) {\r\n setErrorDataPhone('No Telepon tidak valid')\r\n return\r\n } else {\r\n setErrorDataPhone('')\r\n return\r\n }\r\n }\r\n else{\r\n setPhone('')\r\n setErrorDataPhone('')\r\n }\r\n }\r\n\r\n const close = () => {\r\n // setShowEmailPopup(false)\r\n console.log('logout')\r\n auth.logout()\r\n navigate('/')\r\n }\r\n\r\n async function submitUpdateWhatsapp(event) {\r\n event.preventDefault();\r\n\r\n let isValid = true;\r\n setMessageUpdate(\"\")\r\n \r\n if(selectedRadio == \"ya\")\r\n {\r\n if (phone === \"\") {\r\n setErrorDataPhone('Silahkan isi nomor telepon')\r\n isValid = false;\r\n } else if(!phone.match(/^(\\+\\d{1,3})?\\d{8,15}$/) || phone.length < 9 || phone.length > 16) {\r\n setErrorDataPhone('No Telepon tidak valid')\r\n isValid = false\r\n } else {\r\n setErrorDataPhone('')\r\n }\r\n }\r\n else\r\n {\r\n setPhone('')\r\n setErrorDataPhone('')\r\n }\r\n \r\n if (isValid) { \r\n setLoading(true)\r\n\r\n var telp = phone\r\n if(telp.charAt(0) === '0') {\r\n telp = `+62${telp.substring(1)}`\r\n } \r\n\r\n const res = await updateWhatsapp({telp: selectedRadio == 'ya' ? telp : '', tipe : selectedRadio == 'ya' ? 'whatsapp' : 'email' })\r\n setLoading(false)\r\n if(res.status == 200 && res.data !== null) {\r\n if (res.data.includes('Sukses'))\r\n {\r\n // setMessageUpdate(res.data)\r\n // setShowEmailPopup(false)\r\n // setShowSuccessPopup(true)\r\n var message = {action : selectedRadio == 'ya' ? 'Verify Whatsapp OTP' : 'Verify Email OTP', email: email}\r\n navigate('/kode-otp', {\r\n state: {\r\n firstlogin:false, \r\n email: email,\r\n //name: \"\",//name,\r\n phone: telp.toString().trim(),\r\n telp: telp.toString().trim(),\r\n userid: localStorage.getItem('id'),\r\n msg: message,\r\n jenisOTP: selectedRadio == 'ya' ? \"whatsapp\" : \"email\"\r\n }\r\n })\r\n }\r\n else\r\n {\r\n setErrorDataPhone('Gagal update. ' + res.data)\r\n }\r\n } else {\r\n console.log(4);\r\n setErrorDataPhone('Gagal update ')\r\n } \r\n }\r\n }\r\n\r\n const handlePopup = () => {\r\n setShowSuccessPopup(false)\r\n }\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n \r\n
\r\n \"Beranda\"\r\n
\r\n
\r\n \"Beranda\"\r\n
\r\n
\r\n \r\n
\r\n \"Breakfix\"\r\n
\r\n

Breakfix

\r\n \r\n
\r\n
\r\n \r\n
\r\n \"Supplies\"\r\n
\r\n

Supplies

\r\n \r\n
\r\n
\r\n \r\n
\r\n \"Install\"\r\n
\r\n

Install

\r\n \r\n
\r\n
\r\n \r\n
\r\n \"Collect\r\n
\r\n

Collect Meter

\r\n \r\n
\r\n
\r\n \r\n
\r\n \"Call\r\n
\r\n

Call Center

\r\n \r\n
\r\n
\r\n \r\n
\r\n \"Informasi\r\n
\r\n

Informasi Tagihan

\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Astragraphia News
\r\n

Astragraphia News

\r\n
\r\n
\r\n {\r\n hotNews && (\r\n handleDataNews(e, hotNews.id)} style={{ textDecoration: 'none' }}>\r\n
\r\n
\r\n \"Astragraphia\r\n
\r\n
\r\n

{hotNews.news_date}

\r\n
{hotNews.title_ina}
\r\n

{hotNews.title_ina}

\r\n
\r\n {removeHTMLTags(limitChar(`${hotNews.description_ina}`, 290, \"...\"))}\r\n
\r\n
\r\n
\r\n

{hotNews.news_date}

\r\n
{hotNews.title_ina}
\r\n

{limitChar(`${hotNews.title_ina}`, 60, \"...\")}

\r\n
{removeHTMLTags(limitChar(`${hotNews.description_ina}`, 90, \"...\"))}
\r\n
\r\n
\r\n \r\n )}\r\n
\r\n {\r\n dataNews.map((item, key) => (\r\n
\r\n handleDataNews(e, item.id)}>\r\n
\r\n
\r\n {item.image}\r\n
\r\n
\r\n

{item.news_date}

\r\n
{item.title_ina}
\r\n
\r\n
\r\n \r\n
\r\n ))\r\n }{\r\n dataProduct.map((item, key) => (\r\n
\r\n handleDataProduct(e, item.id)}>\r\n
\r\n
\r\n {item.image}\r\n
\r\n
\r\n

{item.created_at}

\r\n
{item.name_ina}
\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 innerWidth <= 768 && (\r\n \r\n )\r\n }\r\n
\r\n
\r\n {\r\n innerWidth <= 768 && (\r\n \r\n )\r\n }\r\n
\r\n
\r\n {\r\n innerWidth <= 768 && (\r\n \r\n )\r\n }\r\n
\r\n
\r\n
\r\n \r\n \r\n DASHBOARD\r\n \r\n \r\n \r\n HISTORY\r\n \r\n \r\n \r\n TEAM\r\n \r\n \r\n \r\n NOTIFICATION\r\n \r\n
\r\n
\r\n \r\n )\r\n}\r\n\r\nexport default Dashboard\r\n\r\n\r\n"],"names":["getStatusAccountById","async","res","axios","get","appConfig","BASE_API","localStorage","getItem","jsonHeaderAuth","status","data","error","code","message","upgrade","post","payload","headers","mode","Component","render","_jsx","_Fragment","children","style","position","top","left","right","bottom","backgroundColor","zIndex","display","this","props","visible","alignItems","justifyContent","className","customClass","_jsxs","fontSize","onClick","close","background","border","marginLeft","color","type","errorDataPhone","value","phone","onChange","handleChangePhone","height","name","id","checked","selectedRadio","setSelectedRadio","for","submitUpdateWhatsapp","Riwayat","React","RiwayatTeam","Informasi","innerWidth","window","ProtectedRoute","_ref","bottomBarLineOffset","bottomBarLineWidth","linePosition","setLinePosition","useState","statusAccount","setStatusAccount","dataNews","setDataNews","hotNews","setHotNews","dataProduct","setDataProduct","isDesktop","loading","setLoading","navigate","useNavigate","location","useLocation","activeLink","setActiveLink","showEmailPopup","setShowEmailPopup","setPhone","setErrorDataPhone","isEditEmail","setIsEditEmail","messageUpdate","setMessageUpdate","showSuccessPopup","setShowSuccessPopup","email","setEmail","useEffect","_location$state","_location$state2","equipment","state","EQ","checkEQ","console","log","getDataAccount","document","getElementById","addEventListener","handleScroll","currentTabActive","scroll","behavior","querySelector","querySelectorAll","classList","add","getDaftarEq","_equipment$EQ","_equipment$ModelName","isFound","Table","filter","val","length","input","modelName","ModelName","_res$data","upgradestatus","emailaddress","isEmailVerified","isWhatsappVerified","removeHTMLTags","text","div","createElement","innerHTML","textContent","handleDataNews","e","newsId","preventDefault","limitChar","limit","surfix","a","i","charAt","navigationScroll","parent","currentTarget","getAttribute","remove","removeEventListener","target","scrollLeft","animateBottomBar","setengah","Link","to","src","bannerMobile","alt","width","banner1","_location$state4","breakfix","_location$state3","supplies","_location$state5","install","_location$state6","collectMeter","redirectToContact","href","callCenter","BILLING_URL","informasiTagihan","whiteSpace","textDecoration","overflow","image","objectFit","news_date","title_ina","description_ina","map","item","key","handleDataProduct","productId","created_at","name_ina","LoadingAlert","ConfirmAlert","handlePopup","UpdateEmailAlert","auth","logout","event","isValid","match","telp","substring","updateWhatsapp","tipe","includes","action","firstlogin","toString","trim","userid","msg","jenisOTP","handleEditEmail","handleSubmitEmail","Suspense","fallback","pointerEvents"],"sourceRoot":""}