{"version":3,"sources":["Intro.tsx","InfoTip.tsx","HouseholdTable.js","Equipment.ts","EquipmentModel.ts","EquipmentContext.tsx","NumberInput.tsx","Table.tsx","EquipmentEditor.tsx","Service.ts","LocationPicker.tsx","Wizard.tsx","Outro.tsx","App.tsx","serviceWorker.ts","index.tsx"],"names":["InfoTip","children","useState","show","setShow","className","href","onClick","_","StepTip","description","title","CollapsibleSection","expanded","iconStyle","marginBottom","style","cursor","Intro","id","text","OverlayTrigger","placement","overlay","Tooltip","height","TierProperties","tier1","tierName","noOfHHsValue","kwhPerDayValue","isStandaloneValue","dollarPerStandaloneValue","tier2","tier3","tier4","tier5","TierRow","tierDetails","onParentChange","state","setState","setError","handleChange","e","name","newState","target","value","data-title","type","onChange","checkboxChange","HouseHoldTiers","HouseholdTable","total","setTotal","console","log","caculateTotal","totalCost","blankProfile","Profiles","allProfiles","slice","getEquipmentList","profile","allCategoryItems","categories","flatMap","x","items","map","power","averagePower","quantity","hours","allSubCategorieItems","a","subCategories","filter","householdItem","getHouseHoldItem","concat","houseHoldsPower","Object","values","houseHoldTier","makeItem","uuidv4","nameplatePower","d","custom","initialEquipmentModel","equipmentReducer","action","kind","profileIndex","categoryIndex","findIndex","categoryId","category","newCategory","newProfile","replace","some","s","newCategoryIndex","subcategoryIndex","subCategory","newSubCategory","itemId","newCategories","item","subcategory","subcategoryItem","itemIndex","newItem","hourIndex","index","hourValue","newHours","pre","suf","getItemEnergy","getCategoryEnergy","reduce","accn","acc","getCategoriesEnergy","xs","EquipmentContext","createContext","dispatch","EquipmentProvider","useReducer","Provider","NumberInput","max","toString","error","useEffect","onBlur","n","Number","isNaN","handleBlur","TableSubGroup","context","useContext","setExpanded","colSpan","paddingLeft","format1","format","key","isSubCategory","TableGroup","format0","Intl","NumberFormat","maximumFractionDigits","minimumFractionDigits","TableRow","totalEnergy","isAlwaysOn","onSetHour","defaultValue","ev","onstyle","onlabel","offlabel","size","checked","TotalRow","TableHeader","width","zIndex","Table","EquipmentEditor","calculate","model","fetch","method","headers","body","JSON","stringify","rv","json","response","getStatus","delay","ms","Promise","resolve","setTimeout","LocationAddress","query","setQuery","inputEl","useRef","element","current","autocomplete","google","maps","places","Autocomplete","types","addListener","place","getPlace","formatted_address","geometry","address","coords","lat","location","lng","handleSearch","findLocation","val","ref","onKeyUp","geocode","complete","Geocoder","results","status","GeocoderStatus","OK","addr","Map","center","zoom","mapContainerStyle","latLng","position","draggable","onDragEnd","LocationCoords","LocationPicker","Field","label","placeholder","unit","tip","disabled","secondaryField","secondaryState","setSecondaryState","secondaryError","setSecondaryError","ss","handleSecondaryFieldChange","handleSecondaryFieldBlur","ErrorNote","message","storageOptions","defaultModel","gridStart","gridDuration","gridCost","fuelCost","pvCost","storageCost","converterCost","generatorCost","generatorStart","generatorDuration","generatorCapacity","fuelName","storageName","wiringLength","wiringCost","wiringOtherCost","getInputFromModel","latitude","longitude","equipment","validateInput","errors","h1","h2","h3","push","totalHouseHoldsPower","timeInHours","Array","from","length","i","timeDurationInHours","Wizard","setModel","equipmentContext","progress","setProgress","setId","wait","setWait","ready","setReady","setErrors","onStart","validation","isValid","input","cancel","it","p","Math","window","open","run","locationLabel","toFixed","onSubmit","preventDefault","readOnly","Modal","centered","onHide","Header","closeButton","Title","Body","role","aria-valuemin","aria-valuemax","aria-valuenow","Outro","src","alt","App","Date","getFullYear","Boolean","hostname","match","ReactDOM","render","StrictMode","document","getElementById","navigator","serviceWorker","then","registration","unregister","catch"],"mappings":"gsvFAMMA,EAAU,SAAC,GAA8B,IAA7BC,EAA4B,EAA5BA,SAA4B,EACpBC,oBAAS,GADW,mBACrCC,EADqC,KAC/BC,EAD+B,KAG5C,OACE,oCACE,uBAAGC,UAAU,eAAeC,KAAK,KAAKC,QAAS,SAAAC,GAAC,OAAIJ,GAASD,KAA7D,eACCA,GACD,yBAAKE,UAAU,gBAAgBJ,KAW/BQ,EAAU,SAAC,GAAkD,IAAjDR,EAAgD,EAAhDA,SAAUS,EAAsC,EAAtCA,YAAaC,EA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C,cAAc7C,MACrB8C,MAAK,SAAAC,GACJA,EAAaC,gBAEdC,OAAM,SAAAnN,GACLnF,QAAQmF,MAAMA,EAAMsH,c","file":"static/js/main.06d80c2a.chunk.js","sourcesContent":["import React, {ReactNode, useState} from 'react'\r\nimport {GoChevronDown, GoChevronRight} from 'react-icons/go'\r\n\r\n\r\ntype InfoTipProps = { children: ReactNode }\r\n\r\nconst InfoTip = ({children}: InfoTipProps) => {\r\n const [show, setShow] = useState(false)\r\n\r\n return (\r\n <>\r\n setShow(!show)}>[more info]\r\n {show &&\r\n
\r\n The HOMER Enabled Tool is a free webapp that creates the initial design and outlines the cost of electrifying displacement settings via solar-powered mini-grid systems.\r\n
\r\n\r\n Diesel generators are common in contexts of displacement as they can be deployed quickly; this, however, presents on-going challenges including fuel delivery and logistics, cost, maintenance, noise, and pollution. To address these issues, the tool provides the initial parameters needed to retrofit existing diesel-powered systems with solar PV modules and batteries. Based on the inputs provided by the users, the model simulates different mixes of power supply options to meet electrical loads and identifies the least-cost design comparing combinations of grid electricity (if available), batteries (lithium-ion or lead-acid), solar PV, and diesel generator sets.\r\n
\r\n\r\n Practitioners in humanitarian settings – even those with limited experience with solar PV technology – can use the HOMER Enabled Tool to increase the sustainability of electric power systems and address the challenges posed by diesel fuel consumption. The tool also creates a complete HOMER file that can be downloaded and run in the HOMER desktop software for further analysis by design professionals.\r\n
\r\n\r\n The location is key to determine the amount of energy available from the sun. The HOMER tool obtains monthly average solar resource values from a variety of databases at NREL and NASA to synthesize a year of hourly data. These are calculated based on the latitude and longitude of a site and satellite measurements of annual cloud cover.\r\n
\r\n\r\n The Household Demographics section makes use of the World Bank’s Multi-Tier Framework (MTF, mtfenergyaccess.esmap.org/methodology/electricity) and reflects the minimum estimated consumption per each household tier.\r\n
\r\n\r\n Users can provide the number of households to be connected per each MTF consumption tier. The default household electricity consumption provided by default corresponds to the minimum consumption of each MTF tier.\r\n
\r\n\r\n External Grid :\r\n
This subsection addresses the details of the existing power grid in target areas.
\r\nIn areas where the electricity grid is available only on a regular schedule for part of the day, the scheduling of the grid can have a significant impact on the design of a suitable power supply system. If the grid is completely unreliable, or the user wants to model a power system that does not include the external grid as a power source, the parameter “Grid on for how many hours” should be set to 0.
\r\nGrid electricity prices may be estimated from a recent bill or from online sources.
\r\n {/* In areas where the electricity grid is available only on a regular schedule for part of the day, the scheduling of the grid can have a significant impact on the design of a suitable power supply system. In areas where the grid is very unreliable, it may be best to design a system as if there is no grid at all or use the desktop version of HOMER Pro for more detailed analysis. The availability and cost of supply and installation of PV panels, batteries and diesel fuel will vary by location. The default cost values entered here are roughly accurate for much of Africa but should not be relied upon without verification. Grid electricity costs may be estimated from a recent bill. When calculating the cost of PV, include the cost of all related components (the cost of the panels, installation, mounting frames and other hardware), but not the inverter or batteries, which are sized separately by HOMER. Retail pump prices by country for petrol/gasoline and diesel can be found at https://data.worldbank.org/indicator or https://www.globalpetrolprices.com. We have set the default cost of the diesel generator to zero on the assumption that the user is retrofitting an existing diesel. If a new diesel generator is needed this cost should be input by the user. */}\r\n \r\n Balance of Systems :\r\nThis subsection addresses any new distribution system that relates to the proposed project. The figures provided in this subsection state the cost and the length of new wiring lines needed to connect households, healthcare facilities and any other electrical load powered by the system.
\r\n\r\n Wiring cost and length indicators should be filled only if the project includes novel distribution lines. If the system uses an already existing distribution system, values should be set to 0.\r\n
\r\n\r\n \r\n Generator :\r\nThis subsection outlines the details of an existing diesel generator, as well as the cost connected with the installation of a new one.
\r\nThe system assumes an existing generator; as such, the “Generator Installed Cost” box is set to 0. Users should update it in case a new generator is installed.
\r\nRetail pump prices by country for petrol/gasoline and diesel can be found at https://data.worldbank.org/indicator or https://www.globalpetrolprices.com. The cost of delivering this fuel to the site should be added to the retail pump price when appropriate.
\r\n \r\n PV System :\r\nThis subsection addresses the details of the PV system that is going be integrated in the project.
\r\nThe availability and cost of supply and installation of PV panels, batteries and diesel fuel will vary by location. The default cost values provided are accurate for most African countries but should be further verified by the users.
\r\nThe “Cost of PV System” parameter should include the cost of all related components (the cost of the panels, installation, mounting frames and other hardware), but not the inverter or batteries, which are sized separately by HOMER in the “Cost of Batteries” and “Cost of bi-directional inverter” sections.
\r\n\r\n \r\n\r\n HOMER minimizes the discounted cash flow of the project. The interest rate determines the tradeoff between the initial capital cost and future operating costs. It has a significant effect on the optimal system design. Lower interest rates will favor PV over diesel generators. The real interest rate can be approximated as the difference between a bank's interest rate on loans and the estimated rate of inflation.\r\n
\r\n\r\n In the case of health facilities, the tool provides four standardized consumption tiers as a starting point. Users can select such tiers and the tool will estimate the type and number of relevant power equipment. At this stage, the Tool only allows the selection of one Health Facility tier at a time. In case the project involves multiple health facilities, please populate each input line in the table as required by the electrification needs of all of the facilities.\r\n
\r\n\r\n Users are encouraged to further refine the estimates provided by overwriting the values in the cells. The user can also add as many additional rows to each section as necessary to consider whatever additional equipment might be at the site.\r\n
\r\n\r\n For a more accurate simulation, this step may require an on-site audit. In all cases, the equipment quantity, power, and hours of use are inputs that should be reviewed and adjusted as needed to meet the needs of a given facility.\r\n
\r\n \r\n\r\n The results page will provide a table of optimized configurations ranked by the cost per unit of electricity over the project lifetime. Results will include configurations for PV-battery, PV-battery-backup generator, battery-generator, and generator only (for comparison).\r\n
\r\n\r\n Users can then select a given configuration to access more detailed results. In addition, the tool creates a HOMER Pro file that can also be downloaded for users to perform a more detailed optimization with the HOMER Pro desktop application.\r\n
\r\n\r\n Note: The tool is not intended to create final designs. \r\n
\r\n \r\n