import{G as g}from"./GraphinaGoogleChartBase.js";class l extends g{setUpChartsHandler(){this.chartHandlers={org_google:e=>this.observeChartElement(e,"OrgChart")}}observeChartElement(e,r){gcfe_public_localize.view_port==="off"?(this.observer||(this.observer=new IntersectionObserver(s=>{s.forEach(o=>{o.isIntersecting&&(this.setupChart(jQuery(o.target),r),this.observer.unobserve(o.target))})},{threshold:.1})),this.observer.observe(e[0])):this.setupChart(e,r)}getFinalChartOptions(e,r){return e}setupTableData(e,r,s,o,a){var h,i;((i=(h=e==null?void 0:e.google_chart_data)==null?void 0:h.data)==null?void 0:i.length)>0?(r.addColumn("string","Child"),r.addColumn("string","Parent"),r.addColumn("string","Tooltip"),e.google_chart_data.data.map(t=>this.prepareGanttRowData(t)).forEach(t=>r.addRow(t))):e.length>0?(r.addColumn("string","Child"),r.addColumn("string","Parent"),r.addColumn("string","Tooltip"),e.map(t=>this.prepareGanttRowData(t)).forEach(t=>r.addRow(t))):(s.hide(),o.show())}}window.graphinaGoogleOrgChart=new l;
//# sourceMappingURL=org_google.js.map
