if (!HTML_ID) throw "Missing HTML_ID"; // 'widget-budget'
if (!year) throw "Missing year"; // '2018'
if (!today) throw "Missing today"; // date('Y-m-d')
if (!projectPathsOrder) throw "Missing projectPathsOrder";
if (!projectPathsMap) throw "Missing projectPathsMap";
if (!projectInfo) throw "Missing projectInfo";
if (!costs) throw "Missing costs";
if (!plan) throw "Missing plan";
var DBG = DBG || false;
if (!window.p5VendorJs) throw "Missing window.p5VendorJs - load static/vendor.js";
const createReactClass = window.p5VendorJs.createReactClass;
const h = window.p5VendorJs.React.createElement;
const React = window.p5VendorJs.React;
const ReactDOM = window.p5VendorJs.ReactDOM;
if (!window.p5VendorJs.p5UI__Budget) throw "Missing p5UI__Budget - load budget.js";
var p5UI__Budget = window.p5VendorJs.p5UI__Budget;
ReactDOM.render(h(p5UI__Budget, {
year: year,
today: today,
projectPathsOrder: projectPathsOrder,
projectPathsMap: projectPathsMap,
projectInfo: projectInfo,
costs: costs,
plan: plan,
DBG: DBG
}), document.getElementById(HTML_ID));