<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Untitled Application</AppTitle>
	<AppShortName>MyApp</AppShortName>
	<Author>Author name</Author>
	<Version>1.0</Version>
	<VariablesScanned>False</VariablesScanned>
	<PageWidth>1020</PageWidth>
	<PageHeight>680</PageHeight>
	<AutoSizeWidth>True</AutoSizeWidth>
	<AutoSizeHeight>True</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<ResponsiveSize>False</ResponsiveSize>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<AppIcon>C:\Users\User\Documents\VisualNeoWeb\Libraries\img\default-icon.png</AppIcon>
	<LanguageCode>en</LanguageCode>
	<DisplayMode>standalone</DisplayMode>
	<ServiceWorker>Offline page</ServiceWorker>
	<ThemeColor>#000000</ThemeColor>
	<PwaScope>/</PwaScope>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<CustomHeadMetadata>&lt;script src=&quot;https://d3js.org/d3.v7.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/d3-org-chart@2&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/d3-flextree@2.1.2/build/d3-flextree.js&quot;&gt;&lt;/script&gt;</CustomHeadMetadata>
	<startup>BeginJS
//var chart;
      d3.json(
        &apos;https://www.conberge.info/organigrama/admin/api/collections/get/equipo/&apos;
      ).then((theData) =&gt; {
        dataFlattened = new Object();
        dataFlattened = theData.entries;
        console.log(dataFlattened);
        $App.chart = new d3.OrgChart()
          .container(&apos;.chart-container&apos;)
          .data(dataFlattened)
          .rootMargin(100)
          .nodeWidth((d) =&gt; 210)
          .nodeHeight((d) =&gt; 180)
          .childrenMargin((d) =&gt; 130)
          .compactMarginBetween((d) =&gt; 85)
          .compactMarginPair((d) =&gt; 80)
          .linkUpdate(function (d, i, arr) {
            d3.select(this)
              .attr(&apos;stroke&apos;, (d) =&gt;
                d.data._upToTheRootHighlighted ? &apos;#0a355e&apos; : &apos;#0a355e&apos;
              )
              .attr(&apos;stroke-width&apos;, (d) =&gt;
                d.data._upToTheRootHighlighted ? 5 : 1.5
              )
              .attr(&apos;stroke-dasharray&apos;, &apos;3,2&apos;);
            if (d.data._upToTheRootHighlighted) {
              d3.select(this).raise();
            }
          })
          .nodeContent(function (d, i, arr, state) {
            const colors = [
              &apos;#ff5959&apos;,
              &apos;#0a355e&apos;,
              &apos;#0a355e&apos;,
              &apos;#0a355e&apos;,
              &apos;#0a355e&apos;,
              &apos;#0a355e&apos;,
            ];
            const color = colors[d.depth % colors.length];
            const imageDim = 80;
            const lightCircleDim = 95;
            const outsideCircleDim = 110;
if(d.data.areaSpanish == undefined){
            return `
                &lt;div style=&quot;background-color:white; position:absolute;width:${
                  d.width
                }px;height:${d.height}px;&quot;&gt;
                   &lt;div style=&quot;background-color:${color};position:absolute;margin-top:-${outsideCircleDim / 2}px;margin-left:${d.width / 2 - outsideCircleDim / 2}px;border-radius:100px;width:${outsideCircleDim}px;height:${outsideCircleDim}px;&quot;&gt;&lt;/div&gt;
                   &lt;div style=&quot;background-color:#ffffff;position:absolute;margin-top:-${
                     lightCircleDim / 2
                   }px;margin-left:${d.width / 2 - lightCircleDim / 2}px;border-radius:100px;width:${lightCircleDim}px;height:${lightCircleDim}px;&quot;&gt;&lt;/div&gt;
                   &lt;img src=&quot; https://conberge.info/organigrama/admin/storage/uploads${
                     d.data.imageUrl.path
                   }&quot; style=&quot;position:absolute;margin-top:-${imageDim / 2}px;margin-left:${d.width / 2 - imageDim / 2}px;border-radius:100px;width:${imageDim}px;height:${imageDim}px;&quot; /&gt;
                   &lt;div class=&quot;card&quot; style=&quot;top:${
                     outsideCircleDim / 2 + 10
                   }px;position:absolute;height:30px;width:${d.width}px;background-color:#3AB6E3;&quot;&gt;
                      &lt;div style=&quot;font-family:arial;background-color:${color};height:auto;text-align:center;padding:5px;color:#ffffff;font-weight:bold;font-size:14px&quot;&gt;
                          ${d.data.name}&lt;br&gt;&lt;small&gt;${d.data.positionName}&lt;/small&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;neo-middle-center-content&quot; style=&quot;font-family:arial;background-color:#F0EDEF;height:65px;text-align:center;padding:5px;color:#0a355e;font-size:12px&quot;&gt;
                          &lt;i&gt;${d.data.area}&lt;/i&gt;
                      &lt;/div&gt;
                   &lt;/div&gt;
               &lt;/div&gt;
  `;
}else{
           return `
                &lt;div style=&quot;background-color:white; position:absolute;width:${
                  d.width
                }px;height:${d.height}px;&quot;&gt;
                   &lt;div style=&quot;background-color:${color};position:absolute;margin-top:-${outsideCircleDim / 2}px;margin-left:${d.width / 2 - outsideCircleDim / 2}px;border-radius:100px;width:${outsideCircleDim}px;height:${outsideCircleDim}px;&quot;&gt;&lt;/div&gt;
                   &lt;div style=&quot;background-color:#ffffff;position:absolute;margin-top:-${
                     lightCircleDim / 2
                   }px;margin-left:${d.width / 2 - lightCircleDim / 2}px;border-radius:100px;width:${lightCircleDim}px;height:${lightCircleDim}px;&quot;&gt;&lt;/div&gt;
                   &lt;img src=&quot; https://conberge.info/organigrama/admin/storage/uploads${
                     d.data.imageUrl.path
                   }&quot; style=&quot;position:absolute;margin-top:-${imageDim / 2}px;margin-left:${d.width / 2 - imageDim / 2}px;border-radius:100px;width:${imageDim}px;height:${imageDim}px;&quot; /&gt;
                   &lt;div class=&quot;card&quot; style=&quot;top:${
                     outsideCircleDim / 2 + 10
                   }px;position:absolute;height:30px;width:${d.width}px;background-color:#3AB6E3;&quot;&gt;
                      &lt;div style=&quot;font-family:arial;background-color:${color};height:auto;text-align:center;padding:5px;color:#ffffff;font-weight:bold;font-size:14px&quot;&gt;
                          ${d.data.name}&lt;br&gt;&lt;small&gt;${d.data.positionName}&lt;/small&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;neo-middle-center-content&quot; style=&quot;font-family:arial;background-color:#F0EDEF;height:65px;text-align:center;padding:5px;color:#0a355e;font-size:12px&quot;&gt;
                          &lt;i&gt;${d.data.area}&lt;br&gt;
                          ${d.data.areaSpanish}&lt;/i&gt;
                      &lt;/div&gt;
                   &lt;/div&gt;
               &lt;/div&gt;
  `;
}
          })
          .render();
      });
EndJS</startup>
	<Components>
		<FunctionList name="Subroutines"/>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<pageenter>BeginJS
//var chart;
      d3.json(
        &apos;https://www.conberge.info/organigrama/admin/api/collections/get/equipo/&apos;
      ).then((theData) =&gt; {
        dataFlattened = new Object();
        dataFlattened = theData.entries;
        console.log(dataFlattened);
        $App.chart = new d3.OrgChart()
          .container(&apos;.chart-container&apos;)
          .data(dataFlattened)
          .rootMargin(100)
          .nodeWidth((d) =&gt; 210)
          .nodeHeight((d) =&gt; 180)
          .childrenMargin((d) =&gt; 130)
          .compactMarginBetween((d) =&gt; 85)
          .compactMarginPair((d) =&gt; 80)
          .linkUpdate(function (d, i, arr) {
            d3.select(this)
              .attr(&apos;stroke&apos;, (d) =&gt;
                d.data._upToTheRootHighlighted ? &apos;#0a355e&apos; : &apos;#0a355e&apos;
              )
              .attr(&apos;stroke-width&apos;, (d) =&gt;
                d.data._upToTheRootHighlighted ? 5 : 1.5
              )
              .attr(&apos;stroke-dasharray&apos;, &apos;3,2&apos;);
            if (d.data._upToTheRootHighlighted) {
              d3.select(this).raise();
            }
          })
          .nodeContent(function (d, i, arr, state) {
            const colors = [
              &apos;#ff5959&apos;,
              &apos;#0a355e&apos;,
              &apos;#0a355e&apos;,
              &apos;#0a355e&apos;,
              &apos;#0a355e&apos;,
              &apos;#0a355e&apos;,
            ];
            const color = colors[d.depth % colors.length];
            const imageDim = 80;
            const lightCircleDim = 95;
            const outsideCircleDim = 110;
if(d.data.areaSpanish == undefined){
            return `
                &lt;div style=&quot;background-color:white; position:absolute;width:${
                  d.width
                }px;height:${d.height}px;&quot;&gt;
                   &lt;div style=&quot;background-color:${color};position:absolute;margin-top:-${outsideCircleDim / 2}px;margin-left:${d.width / 2 - outsideCircleDim / 2}px;border-radius:100px;width:${outsideCircleDim}px;height:${outsideCircleDim}px;&quot;&gt;&lt;/div&gt;
                   &lt;div style=&quot;background-color:#ffffff;position:absolute;margin-top:-${
                     lightCircleDim / 2
                   }px;margin-left:${d.width / 2 - lightCircleDim / 2}px;border-radius:100px;width:${lightCircleDim}px;height:${lightCircleDim}px;&quot;&gt;&lt;/div&gt;
                   &lt;img src=&quot; https://conberge.info/organigrama/admin/storage/uploads${
                     d.data.imageUrl.path
                   }&quot; style=&quot;position:absolute;margin-top:-${imageDim / 2}px;margin-left:${d.width / 2 - imageDim / 2}px;border-radius:100px;width:${imageDim}px;height:${imageDim}px;&quot; /&gt;
                   &lt;div class=&quot;card&quot; style=&quot;top:${
                     outsideCircleDim / 2 + 10
                   }px;position:absolute;height:30px;width:${d.width}px;background-color:#3AB6E3;&quot;&gt;
                      &lt;div style=&quot;font-family:arial;background-color:${color};height:auto;text-align:center;padding:5px;color:#ffffff;font-weight:bold;font-size:14px&quot;&gt;
                          ${d.data.name}&lt;br&gt;&lt;small&gt;${d.data.positionName}&lt;/small&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;neo-middle-center-content&quot; style=&quot;font-family:arial;background-color:#F0EDEF;height:65px;text-align:center;padding:5px;color:#0a355e;font-size:12px&quot;&gt;
                          &lt;i&gt;${d.data.area}&lt;/i&gt;
                      &lt;/div&gt;
                   &lt;/div&gt;
               &lt;/div&gt;
  `;
}else{
           return `
                &lt;div style=&quot;background-color:white; position:absolute;width:${
                  d.width
                }px;height:${d.height}px;&quot;&gt;
                   &lt;div style=&quot;background-color:${color};position:absolute;margin-top:-${outsideCircleDim / 2}px;margin-left:${d.width / 2 - outsideCircleDim / 2}px;border-radius:100px;width:${outsideCircleDim}px;height:${outsideCircleDim}px;&quot;&gt;&lt;/div&gt;
                   &lt;div style=&quot;background-color:#ffffff;position:absolute;margin-top:-${
                     lightCircleDim / 2
                   }px;margin-left:${d.width / 2 - lightCircleDim / 2}px;border-radius:100px;width:${lightCircleDim}px;height:${lightCircleDim}px;&quot;&gt;&lt;/div&gt;
                   &lt;img src=&quot; https://conberge.info/organigrama/admin/storage/uploads${
                     d.data.imageUrl.path
                   }&quot; style=&quot;position:absolute;margin-top:-${imageDim / 2}px;margin-left:${d.width / 2 - imageDim / 2}px;border-radius:100px;width:${imageDim}px;height:${imageDim}px;&quot; /&gt;
                   &lt;div class=&quot;card&quot; style=&quot;top:${
                     outsideCircleDim / 2 + 10
                   }px;position:absolute;height:30px;width:${d.width}px;background-color:#3AB6E3;&quot;&gt;
                      &lt;div style=&quot;font-family:arial;background-color:${color};height:auto;text-align:center;padding:5px;color:#ffffff;font-weight:bold;font-size:14px&quot;&gt;
                          ${d.data.name}&lt;br&gt;&lt;small&gt;${d.data.positionName}&lt;/small&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;neo-middle-center-content&quot; style=&quot;font-family:arial;background-color:#F0EDEF;height:65px;text-align:center;padding:5px;color:#0a355e;font-size:12px&quot;&gt;
                          &lt;i&gt;${d.data.area}&lt;br&gt;
                          ${d.data.areaSpanish}&lt;/i&gt;
                      &lt;/div&gt;
                   &lt;/div&gt;
               &lt;/div&gt;
  `;
}
          })
          .render();
      });
EndJS</pageenter>
					<Components>
						<Container id="chart-container">
							<left>14px</left>
							<top>18px</top>
							<width>959px</width>
							<height>544px</height>
							<style>border-width:1px;border-style:solid;background-color:#fff;</style>
							<css_class>chart-container</css_class>
						</Container>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>1020px</width>
							<height>680px</height>
							<close_button>False</close_button>
							<kind>custom</kind>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
