c91a2ee3 by Jeff Balicki

clean up blocks

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent a171116e
Showing 39 changed files with 0 additions and 1461 deletions
<?php
/**
* Carousel Block Template.
*
* @param array $block The block settings and attributes.
* @param string $content The block inner HTML (empty).
* @param bool $is_preview True during AJAX preview.
* @param (int|string) $post_id The post ID this block is saved to.
*/
// Create id attribute allowing for custom "anchor" value.
$id = 'carousel-' . $block['id'];
if( !empty($block['anchor']) ) {
$id = $block['anchor'];
}
// Create class attribute allowing for custom "className" and "align" values.
$className = 'carousel';
if( !empty($block['className']) ) {
$className .= ' ' . $block['className'];
}
if( !empty($block['align']) ) {
$className .= ' align' . $block['align'];
}
if( $is_preview ) {
$className .= ' is-admin';
}
$carousel_style = get_field('carousel_style');
$ran = getName();
?>
<div id="<?php echo esc_attr($id); ?>" class="<?php echo esc_attr($className); ?> ">
<?php switch($carousel_style){
case 'video': ?>
<?php if( have_rows('promo_items') ): ?>
<div class=" carousel-items promo-carousel">
<div class='swiper-wrapper'>
<?php while( the_repeater_field('promo_items') ): ?>
<?php $index = get_row_index();
$iframe = get_sub_field('video');
preg_match('/src="(.+?)"/', $iframe, $matches);
$src = explode('embed/', $matches[1]);
$src = explode('?', $src[1]);
$modalId = 'modal-' .$index.$ran; ?>
<div class="swiper-slide">
<div class="carousel-content">
<a href="javascript:void(0)" class="video_open" data-bs-toggle="modal" data-bs-target="#<?php echo $modalId; ?>" >
<div class="promo-image video" >
<?php $image = get_sub_field('place_holder');
if( !empty( $image ) ): ?>
<img src="<?php echo esc_url($image['url']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" loading="eager" />
<?php else: ?>
<img src="https://img.youtube.com/vi/<?php echo $src[0];?>/mqdefault.jpg" alt="Youtube placeholder" loading="eager" />
<?php endif;?>
</div>
<div class="promo-text"><?php echo get_sub_field('title'); ?></div>
</a>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="swiper-button-prev" data-id="<?= $id ?>"></div>
<div class="swiper-button-next" data-id="<?= $id ?>"></div>
</div>
<?php if( have_rows('promo_items') ): ?>
<?php while( the_repeater_field('promo_items') ): ?>
<?php $index = get_row_index();
$modalId = 'modal-' .$index.$ran; ?>
<?php $iframe = get_sub_field('video');
// Use preg_match to find iframe src.
preg_match('/src="(.+?)"/', $iframe, $matches);
$src = $matches[1];
// Add extra parameters to src and replace HTML.
$params = array(
'controls' => 1,
'hd' => 1,
'autohide' => 1,
'enablejsapi' => 1,
'version' =>3,
);
$new_src = add_query_arg($params, $src);
$iframe = str_replace($src, $new_src, $iframe);
// Add extra attributes to iframe HTML.
$attributes = 'frameborder="0"';
$iframe = str_replace('></iframe>', ' ' . $attributes . '></iframe>', $iframe);
$iframe = str_replace('<iframe', '<iframe class="yt_player_iframe" ', $iframe);?>
<div class="modal" id="<?php echo $modalId; ?>" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-xl">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<?php echo $iframe; ?>
</div>
</div>
</div>
</div>
<script>
var myModalEl = document.getElementById('<?php echo $modalId ?>')
myModalEl.addEventListener('hidden.bs.modal', function (event) {
jQuery('.yt_player_iframe').each(function(){
this.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}', '*')
});
});
</script>
<?php endwhile; ?>
<?php endif; ?>
<?php else: ?>
<p>Please add some slides.</p>
<?php endif; ?>
<?php break;
case 'pdf': ?>
<?php if( have_rows('promo_items') ): ?>
<div class=" carousel-items promo-carousel pdf-carousel">
<div class='swiper-wrapper'>
<?php while( the_repeater_field('promo_items') ): ?>
<?php $page = get_sub_field('pdf');
?>
<div class="swiper-slide">
<div class="carousel-content">
<a href="<?php echo $page['link'] ?>" target="_blank" class="pdf_open" >
<div class="promo-image pdf" >
<?php $image = get_sub_field('place_holder');
if(!$image){
$image = $page['icon'];
$img_alt = $page['title'];
}
?>
<img src="<?php echo $image; ?>" alt="<?php echo $img_alt ?>" loading="eager">
</div>
<?php
$title = get_sub_field("title");
if(!$title){
$title = $page['title'];
} ?>
<div class="promo-text"><?php echo $title ; ?></div>
</a>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="swiper-button-prev" data-id="<?= $id ?>"></div>
<div class="swiper-button-next" data-id="<?= $id ?>"></div>
</div>
<?php else: ?>
<p>Please add some slides.</p>
<?php endif; ?>
<?php break;
case 'featured': ?>
<?php if( have_rows('promo_items') ): ?>
<div class=" carousel-items promo-carousel featured-carousel">
<div class='swiper-wrapper'>
<?php while( the_repeater_field('promo_items') ): ?>
<?php $page = get_sub_field('featured_post'); ?>
<div class="swiper-slide">
<div class="carousel-content">
<div class="promo-image" >
<?php $image = get_the_post_thumbnail_url( $page->ID, 'medium' );
$thumbnail_id = get_post_meta( $page->ID, '_thumbnail_id', true );
$img_alt = get_post_meta ( $thumbnail_id, '_wp_attachment_image_alt', true );
if(!$img_alt){
$img_alt = get_the_title($thumbnail_id);
}
?>
<img src="<?php echo $image; ?>" alt="<?php echo $img_alt ?>" loading="eager">
</div>
<div class="promo-text"><h2><?php echo get_the_title($page->ID); ?></h2><p><?php echo get_the_excerpt($page->ID); ?></p><a class="understrap-read-more-link" href="<?php echo get_permalink($page->ID);?>"><?= __('READ MORE', 'msf') ?></a></div>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="swiper-button-prev" data-id="<?= $id ?>"></div>
<div class="swiper-button-next" data-id="<?= $id ?>"></div>
</div>
<?php else: ?>
<p>Please add some slides.</p>
<?php endif; ?>
<?php break;
default: ?>
<p>Please select style.</p>
<?php }; ?>
</div>
<?php
// Create id attribute allowing for custom "anchor" value.
$id = 'msf-pi-' . $block['id'];
if( !empty($block['anchor']) ) {
$id = $block['anchor'];
}
// Create class attribute allowing for custom "className" and "align" values.
$className = 'msf-pi';
if( !empty($block['className']) ) {
$className .= ' ' . $block['className'];
}
if( !empty($block['align']) ) {
$className .= ' align' . $block['align'];
}
$title = get_field('title') ?: null;
$theme = null;
$inner_blocks = get_field('data') ?: null;
$color = get_field('foreground_color') ?: null;
$data = [];
foreach($inner_blocks as $ib) {
$data[] = [ "name" => $ib['name'], "value" => (int)$ib['value'], 'color' => $ib['color'], 'font_color' => $color ];
}
?>
<script>
window.addEventListener('scroll', function(event) {
if(!jQuery("#<?= $id ?>").hasClass('visible') && window.tz_checkVisible(jQuery("#<?= $id ?>"), null, 200)) {
jQuery("#<?= $id ?>").addClass('visible');
jQuery("#<?= $id ?>").addClass('is-visible');
window.renderPI(document.getElementById("<?= $id ?>"))
}
});
</script>
<div class='pi <?= $theme ?>' class="<?php echo esc_attr($className); ?>" style='width:100%;'>
<h3><?= $title ?></h3>
<div id="<?= $id ?>" data-points='<?= json_encode($data) ?>' data-color="<?= $color ?>"></div>
</div>
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Getting Started with Create React App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.
### `yarn test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `yarn build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `yarn eject`
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `yarn build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
{
"files": {
"main.js": "/static/js/main.a7bb4a96.chunk.js",
"main.js.map": "/static/js/main.a7bb4a96.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.a933fda7.js",
"runtime-main.js.map": "/static/js/runtime-main.a933fda7.js.map",
"static/js/2.c3c99db9.chunk.js": "/static/js/2.c3c99db9.chunk.js",
"static/js/2.c3c99db9.chunk.js.map": "/static/js/2.c3c99db9.chunk.js.map",
"index.html": "/index.html",
"static/js/2.c3c99db9.chunk.js.LICENSE.txt": "/static/js/2.c3c99db9.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.a933fda7.js",
"static/js/2.c3c99db9.chunk.js",
"static/js/main.a7bb4a96.chunk.js"
]
}
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/favicon.ico"><title>React App</title></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="cbv-globe"></div><script>!function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],p=0,s=[];p<f.length;p++)l=f[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(c&&c(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var i=t[f];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var f=this["webpackJsonpcbv-globe"]=this["webpackJsonpcbv-globe"]||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var a=0;a<f.length;a++)r(f[a]);var c=i;t()}([])</script><script src="/static/js/2.c3c99db9.chunk.js"></script><script src="/static/js/main.a7bb4a96.chunk.js"></script></body><script>window.renderProgression(document.getElementById("cbv-globe"))</script></html>
\ No newline at end of file
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*! Conditions:: INITIAL */
/*! Production:: $accept : expression $end */
/*! Production:: css_value : ANGLE */
/*! Production:: css_value : CHS */
/*! Production:: css_value : EMS */
/*! Production:: css_value : EXS */
/*! Production:: css_value : FREQ */
/*! Production:: css_value : LENGTH */
/*! Production:: css_value : PERCENTAGE */
/*! Production:: css_value : REMS */
/*! Production:: css_value : RES */
/*! Production:: css_value : SUB css_value */
/*! Production:: css_value : TIME */
/*! Production:: css_value : VHS */
/*! Production:: css_value : VMAXS */
/*! Production:: css_value : VMINS */
/*! Production:: css_value : VWS */
/*! Production:: css_variable : CSS_VAR LPAREN CSS_CPROP COMMA math_expression RPAREN */
/*! Production:: css_variable : CSS_VAR LPAREN CSS_CPROP RPAREN */
/*! Production:: expression : math_expression EOF */
/*! Production:: math_expression : LPAREN math_expression RPAREN */
/*! Production:: math_expression : NESTED_CALC LPAREN math_expression RPAREN */
/*! Production:: math_expression : SUB PREFIX SUB NESTED_CALC LPAREN math_expression RPAREN */
/*! Production:: math_expression : css_value */
/*! Production:: math_expression : css_variable */
/*! Production:: math_expression : math_expression ADD math_expression */
/*! Production:: math_expression : math_expression DIV math_expression */
/*! Production:: math_expression : math_expression MUL math_expression */
/*! Production:: math_expression : math_expression SUB math_expression */
/*! Production:: math_expression : value */
/*! Production:: value : NUMBER */
/*! Production:: value : SUB NUMBER */
/*! Rule:: $ */
/*! Rule:: (--[0-9a-z-A-Z-]*) */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)% */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)Hz\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)ch\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)cm\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)deg\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)dpcm\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)dpi\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)dppx\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)em\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)ex\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)grad\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)in\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)kHz\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)mm\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)ms\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)pc\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)pt\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)px\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)rad\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)rem\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)s\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)turn\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vh\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vmax\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vmin\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vw\b */
/*! Rule:: ([a-z]+) */
/*! Rule:: (calc) */
/*! Rule:: (var) */
/*! Rule:: , */
/*! Rule:: - */
/*! Rule:: \( */
/*! Rule:: \) */
/*! Rule:: \* */
/*! Rule:: \+ */
/*! Rule:: \/ */
/*! Rule:: \s+ */
/*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */
/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.10.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(this["webpackJsonpcbv-globe"]=this["webpackJsonpcbv-globe"]||[]).push([[0],{353:function(t,e,n){"use strict";n.r(e);var a=n(18),i=n(0),c=n(30),r=n.n(c),s=n(195),o=n(131),l=n(80),j=n(196);o.a.use(j.a).use(l.e).init({detection:{order:["querystring"],lookupQuerystring:"lang",lookupCookie:"",lookupLocalStorage:"",lookupSessionStorage:"",caches:[]},debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},resources:{en:{translation:{"one-term-only":"* ONE TERM ONLY","pro.valuation.x":"11.991","pro.services.x":"16.401","pro.professional":"Professional","pro.Valuation":"Valuation","pro.Services":"Services","pro.Financial Services":"Financial Services, Industry","pro.Industry":"Industry","pro.Government":"and Government","pro.Retired":"Retired","charts.members":"Members","pro.Other":"Other"}},fr:{translation:{"pro.valuation.x":"0","pro.services.x":"0","one-term-only":"*UN TRIMESTRE SEULEMENT","pro.professional":"Services","pro.Valuation":"professionnels","pro.Services":"d\u2019\xe9valuation","pro.Financial Services":"Services financiers,","pro.Industry":"industrie, et","pro.Government":"gouvernement","pro.Retired":"\xc0 la retraite","charts.members":"Membres","pro.Other":"Autres"}}}});o.a;var d=n(104),x=n(365),h=n(1),f=function(t){var e=t.setTooltipContent,n=t.countries;Object(x.a)().t;return Object(h.jsx)(h.Fragment,{children:Object(h.jsx)(d.ComposableMap,{"data-tip":"",projection:"geoMercator",children:Object(h.jsx)(d.Geographies,{geography:"https://yearinreview.cbvinstitute.com/world-110m.json",children:function(t){return t.geographies.map((function(t){for(var a=!1,i=0;i<n.length;++i)for(var c in t.properties)if("function"==typeof t.properties[c].indexOf&&-1!==t.properties[c].indexOf(n[i].name)){t.properties.NICENAME=n[i].name,a=!0;break}var r={};return r=a?{default:{fill:"#5CBFBC",outline:"#0F1647",stroke:"#0F1647",strokeWidth:"0.25px"},hover:{fill:"white",outline:"none"}}:{default:{fill:"#594D78",outline:"none"},hover:{fill:"#594D78",outline:"none"},pressed:{fill:"#594D78",outline:"none"}},Object(h.jsx)(d.Geography,{geography:t,onMouseEnter:function(){if(a){var n=t.properties.NICENAME;e("".concat(n))}},onMouseLeave:function(){e("")},style:r},t.rsmKey)}))}})})})},b=Object(i.memo)(f),O=n(357),m=n(358),p=n(100),u=n(101),y=n(82),g=n(188),F=function(t){var e=t.active,n=t.payload,a=t.label;Object(x.a)().t;return e&&n&&n.length?Object(h.jsx)("div",{className:"custom-tooltip",children:Object(h.jsx)("p",{className:"label",style:{color:"#221d58"},children:"".concat(a)})}):null},v=function(t){for(var e=t.data,n=e[0].name,a=e[e.length-1].name,i=Math.floor(a/500),c=[],r=0;r<i;++r)c.push(500*(r+1));return Object(h.jsx)(h.Fragment,{children:Object(h.jsx)(O.a,{width:"99%",height:475,children:Object(h.jsxs)(m.a,{children:[Object(h.jsx)("defs",{children:Object(h.jsxs)("linearGradient",{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[Object(h.jsx)("stop",{offset:"0%",stopColor:"#b4eded",stopOpacity:1}),Object(h.jsx)("stop",{offset:"100%",stopColor:"#FFFFFF",stopOpacity:.1})]})}),Object(h.jsx)(p.a,{tick:{fill:"#FFFFFF"},stroke:"#BFBECF",dataKey:"name",ticks:[n,a]}),Object(h.jsx)(u.a,{tick:{fill:"#FFFFFF"},stroke:"#BFBECF",ticks:c}),Object(h.jsx)(y.a,{content:Object(h.jsx)(F,{})}),Object(h.jsx)(g.a,{dot:!1,strokeWidth:2,data:e,fill:"url(#colorUv)",dataKey:"value",stroke:"#FFFFFF"})]})})})},w=Object(i.memo)(v),G=n(78),k=n(364),B=n(190),E=function(t){var e=Math.PI/180,n=t.cx,a=t.cy,i=t.midAngle,c=t.innerRadius,r=t.outerRadius,s=t.startAngle,o=t.endAngle,l=(t.fill,t.payload,t.percent,t.value),j=t.name,d=t.color,x=t.font_color,f=Math.sin(-e*i),b=Math.cos(-e*i),O=n+(r+10)*b,m=a+(r+10)*f,p=n+(r+30)*b,u=a+(r+30)*f,y=p+22*(b>=0?1:-1),g=u,F=b>=0?"start":"end";return Object(h.jsxs)("g",{children:[Object(h.jsx)(G.a,{cx:n,cy:a,innerRadius:c,outerRadius:r,startAngle:s,endAngle:o,fill:d}),Object(h.jsx)(G.a,{cx:n,cy:a,startAngle:s,endAngle:o,innerRadius:r+6,outerRadius:r+10,fill:d}),Object(h.jsx)("path",{d:"M".concat(O,",").concat(m,"L").concat(p,",").concat(u,"L").concat(y,",").concat(g),stroke:d,fill:"none"}),Object(h.jsx)("circle",{cx:y,cy:g,r:2,fill:d,stroke:"none"}),Object(h.jsx)("text",{x:y+12*(b>=0?1:-1),y:g,style:{fontWeight:"bold"},textAnchor:F,fill:x,children:"".concat(j)}),Object(h.jsx)("text",{x:y+12*(b>=0?1:-1),y:g,dy:18,textAnchor:F,fill:x,children:"".concat(l,"%")})]})},S=function(t){var e=t.data;t.color;return Object(h.jsx)(h.Fragment,{children:Object(h.jsx)(O.a,{width:"100%",height:300,children:Object(h.jsx)(k.a,{children:Object(h.jsx)(B.a,{activeIndex:Array.from({length:e.length},(function(t,e){return e-1+1})),activeShape:E,data:e,dataKey:"value",cx:"50%",cy:"50%",innerRadius:70,outerRadius:100,fill:"#82ca9d"})})})})},N=Object(i.memo)(S),C=n(362),A=n(197),L=n(102),R=n(68),z=function(t){t.x;var e=t.y,n=(t.width,t.height,t.name);t.fill;return Object(h.jsx)("text",{x:20,y:e+35,fill:"#fff",offset:15,height:55,textAnchor:"start",children:n<900?n+"*":n})},M=function(t){var e=t.data,n=Object(x.a)().t;return Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(O.a,{width:"100%",children:Object(h.jsxs)(C.a,{layout:"vertical",data:e,height:600,children:[Object(h.jsx)(p.a,{type:"number",dataKey:"value",axisLine:!1,tick:!1}),Object(h.jsx)(u.a,{dataKey:"name",type:"category",axisLine:!1,tick:!1}),Object(h.jsxs)(A.a,{dataKey:"value",children:[e.map((function(t,e){return Object(h.jsx)(L.a,{x:0,height:55,fill:e%2==0?"#706B88":"#453E61"},"cell-".concat(e))})),Object(h.jsx)(R.a,{dataKey:"name",content:z})]})]})}),Object(h.jsxs)("small",{children:["\xa0",n("one-term-only")]})]})},D=Object(i.memo)(M),P=function(t){var e=Object(x.a)().t;return Object(h.jsx)(h.Fragment,{children:Object(h.jsxs)("svg",{width:"240px",height:"318px",viewBox:"0 0 240 318",version:"1.1",children:[Object(h.jsx)("title",{children:"sectors-2"}),Object(h.jsx)("desc",{children:"Created with Sketch."}),Object(h.jsx)("defs",{}),Object(h.jsx)("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:Object(h.jsxs)("g",{id:"sectors-2",children:[Object(h.jsx)("circle",{cx:"94",cy:"102",r:"0","data-r":"85",id:"Fill-115",fill:"#A4D6CF"}),Object(h.jsx)("circle",{cx:"78",cy:"217",r:"0","data-r":"31",id:"Fill-116",fill:"#6BC1BA"}),Object(h.jsx)("circle",{cx:"96",cy:"265",r:"0","data-r":"21",id:"Fill-117",fill:"#A4D6CF"}),Object(h.jsx)("circle",{cx:"175",cy:"230",r:"0","data-r":"65",id:"Fill-118",fill:"#DAEEEB"}),Object(h.jsx)("g",{id:"Professional-Valuation-Services",className:"115",opacity:0,transform:"translate(41.000000, 83.000000)",fill:"#1B193F","font-family":"Gotham-ExtraLight, Gotham","font-size":"18","font-weight":"300",children:Object(h.jsxs)("text",{id:"Professional-Valuati",children:[Object(h.jsx)("tspan",{x:"0.273",y:"14",children:e("pro.professional")}),Object(h.jsx)("tspan",{x:e("pro.valuation.x"),y:"35.6000073",children:e("pro.Valuation")}),Object(h.jsx)("tspan",{x:e("pro.services.x"),y:"57.2000146",children:e("pro.Services")})]})}),Object(h.jsx)("g",{id:"Financial-Services",className:"118",opacity:0,transform:"translate(117.000000, 224.000000)",fill:"#1B193F","font-family":"Gotham-ExtraLight, Gotham","font-size":"13","font-weight":"300",children:Object(h.jsxs)("text",{children:[Object(h.jsx)("tspan",{x:"0.677",y:"10",children:e("pro.Financial Services")}),Object(h.jsx)("tspan",{x:"17.395",y:"25.6000053",children:e("pro.Industry")}),Object(h.jsx)("tspan",{x:"18.5585",y:"41.2000105",children:e("pro.Government")})]})}),Object(h.jsx)("g",{id:"Other",className:"116",opacity:0,transform:"translate(59.000000, 224.000000)",fill:"#1B193F","font-family":"Gotham-ExtraLight, Gotham","font-size":"12","font-weight":"300",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.802",y:"10",children:e("pro.Other")})})}),Object(h.jsx)("g",{id:"50%",className:"115",opacity:0,transform:"translate(73.000000, 58.000000)",fill:"#1B193F","font-family":"Gotham-Bold, Gotham","font-size":"18","font-weight":"bold",children:Object(h.jsx)("text",{id:"49%",children:Object(h.jsx)("tspan",{x:"0.8076",y:"14.8007812",children:"49%"})})}),Object(h.jsx)("g",{id:"34%",className:"118",opacity:0,transform:"translate(154.000000, 201.000000)",fill:"#1B193F","font-family":"Gotham-Bold, Gotham","font-size":"18","font-weight":"bold",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.5856",y:"14.800781",children:"36%"})})}),Object(h.jsx)("g",{id:"10%",className:"116",opacity:0,transform:"translate(59.000000, 204.000000)",fill:"#1B193F","font-family":"Gotham-Bold, Gotham","font-size":"18","font-weight":"bold",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.2997",y:"14.800781",children:"9%"})})}),Object(h.jsx)("g",{id:"Retired",className:"117",opacity:0,transform:"translate(76.000000, 308.000000)",fill:"#FFFFFF","font-family":"Gotham-ExtraLight, Gotham","font-size":"11","font-weight":"300",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0",y:"9",children:e("pro.Retired")})})}),Object(h.jsx)("g",{id:"6%",className:"117",opacity:0,transform:"translate(81.000000, 288.000000)",fill:"#FFFFFF","font-family":"Gotham-Medium, Gotham","font-size":"18","font-weight":"400",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.2495",y:"14.800781",children:"6%"})})}),Object(h.jsx)("path",{className:"117",opacity:0,d:"M94.4777,289.2349 L94.4777,263.4129",id:"Stroke-210",stroke:"#FFFFFF","stroke-width":"0.5"})]})})]})})},V=Object(i.memo)(P),I=function(){var t=Object(x.a)().t;return Object(h.jsx)(h.Fragment,{children:Object(h.jsxs)("svg",{width:"240px",height:"318px",viewBox:"0 0 240 318",version:"1.1",children:[Object(h.jsx)("title",{children:"sectors-2"}),Object(h.jsx)("desc",{children:"Created with Sketch."}),Object(h.jsx)("defs",{}),Object(h.jsx)("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:Object(h.jsxs)("g",{id:"sectors-2",children:[Object(h.jsx)("circle",{cx:"94",cy:"102",r:"0","data-r":"85",id:"Fill-115",fill:"#A4D6CF"}),Object(h.jsx)("circle",{cx:"78",cy:"217",r:"0","data-r":"31",id:"Fill-116",fill:"#6BC1BA"}),Object(h.jsx)("circle",{cx:"96",cy:"265",r:"0","data-r":"21",id:"Fill-117",fill:"#A4D6CF"}),Object(h.jsx)("circle",{cx:"175",cy:"230",r:"0","data-r":"65",id:"Fill-118",fill:"#DAEEEB"}),Object(h.jsx)("g",{id:"Professional-Valuation-Services",className:"115",opacity:0,transform:(document.documentElement.lang,"translate(50.000000, 83.000000)"),fill:"#1B193F","font-family":"Gotham-ExtraLight, Gotham","font-size":"18","font-weight":"300",children:Object(h.jsxs)("text",{id:"Professional-Valuati",children:[Object(h.jsx)("tspan",{x:"0.273",y:"14",children:t("pro.professional")}),Object(h.jsx)("tspan",{x:t("pro.valuation.x"),y:"35.6000073",children:t("pro.Valuation")}),Object(h.jsx)("tspan",{x:t("pro.services.x"),y:"57.2000146",children:t("pro.Services")})]})}),Object(h.jsx)("g",{id:"Financial-Services",className:"118",opacity:0,transform:(document.documentElement.lang,"translate(125.000000, 224.000000)"),fill:"#1B193F","font-family":"Gotham-ExtraLight, Gotham","font-size":"13","font-weight":"300",children:Object(h.jsxs)("text",{children:[Object(h.jsx)("tspan",{x:"0.677",y:"10",children:t("pro.Financial Services")}),Object(h.jsx)("tspan",{x:"17.395",y:"25.6000053",children:t("pro.Industry")}),Object(h.jsx)("tspan",{x:"18.5585",y:"41.2000105",children:t("pro.Government")})]})}),Object(h.jsx)("g",{id:"Other",className:"116",opacity:0,transform:"fr-FR"===document.documentElement.lang?"translate(55.000000, 224.000000)":"translate(63.000000, 224.000000)",fill:"#1B193F","font-family":"Gotham-ExtraLight, Gotham","font-size":"10","font-weight":"300",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.802",y:"10",children:t("pro.Retired")})})}),Object(h.jsx)("g",{id:"50%",className:"115",opacity:0,transform:"translate(73.000000, 58.000000)",fill:"#1B193F","font-family":"Gotham-Bold, Gotham","font-size":"18","font-weight":"bold",children:Object(h.jsx)("text",{id:"49%",children:Object(h.jsx)("tspan",{x:"0.8076",y:"14.8007812",children:"50%"})})}),Object(h.jsx)("g",{id:"34%",className:"118",opacity:0,transform:"translate(154.000000, 201.000000)",fill:"#1B193F","font-family":"Gotham-Bold, Gotham","font-size":"18","font-weight":"bold",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.5856",y:"14.800781",children:"39%"})})}),Object(h.jsx)("g",{id:"10%",className:"116",opacity:0,transform:"translate(66.000000, 204.000000)",fill:"#1B193F","font-family":"Gotham-Bold, Gotham","font-size":"18","font-weight":"bold",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.2997",y:"14.800781",children:"7%"})})}),Object(h.jsx)("g",{id:"Retired",className:"117",opacity:0,transform:"translate(76.000000, 308.000000)",fill:"#FFFFFF","font-family":"Gotham-ExtraLight, Gotham","font-size":"11","font-weight":"300",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0",y:"9",children:t("pro.Other")})})}),Object(h.jsx)("g",{id:"6%",className:"117",opacity:0,transform:"translate(81.000000, 288.000000)",fill:"#FFFFFF","font-family":"Gotham-Medium, Gotham","font-size":"18","font-weight":"400",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.2495",y:"14.800781",children:"4%"})})}),Object(h.jsx)("path",{className:"117",opacity:0,d:"M94.4777,289.2349 L94.4777,263.4129",id:"Stroke-210",stroke:"#FFFFFF","stroke-width":"0.5"})]})})]})})},K=Object(i.memo)(I),J=function(){var t=Object(x.a)().t;return Object(h.jsx)(h.Fragment,{children:Object(h.jsxs)("svg",{width:"1024px",height:"400px",viewBox:"0 0 1024 400",version:"1.1",children:[Object(h.jsx)("title",{children:"sectors-2"}),Object(h.jsx)("desc",{children:"Created with Sketch."}),Object(h.jsx)("defs",{}),Object(h.jsx)("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:Object(h.jsxs)("g",{id:"sectors-2",children:[Object(h.jsx)("circle",{cx:"450",cy:"152",r:"15","data-r":"15",id:"Fill-115",fill:"#A4D6CF"}),Object(h.jsx)("circle",{cx:"570",cy:"165",r:"6","data-r":"6",id:"Fill-116",fill:"#6BC1BA"}),Object(h.jsx)("circle",{cx:"600",cy:"225",r:"6","data-r":"6",id:"Fill-117",fill:"#A4D6CF"}),Object(h.jsx)("circle",{cx:"505",cy:"270",r:"10","data-r":"10",id:"Fill-118",fill:"#DAEEEB"}),Object(h.jsx)("g",{id:"Professional-Valuation-Services",className:"115",opacity:0,transform:"fr-FR"===document.documentElement.lang?"translate(0.000000, 160.000000)":"translate(30.000000, 160.000000)",fill:"#1B193F","font-family":"Gotham-Book, Gotham","font-size":"18","font-weight":"300",children:Object(h.jsxs)("text",{id:"Professional-Valuati",children:[Object(h.jsx)("tspan",{x:"0",y:"0",children:t("pro.professional")}),Object(h.jsx)("tspan",{x:"fr-FR"===document.documentElement.lang?"78":"115",y:"0",children:t("pro.Valuation")}),Object(h.jsx)("tspan",{x:"fr-FR"===document.documentElement.lang?"210":"205",y:"0",children:t("pro.Services")})]})}),Object(h.jsx)("g",{id:"Financial-Services",className:"118",opacity:0,transform:(document.documentElement.lang,"translate(175.000000, 262.000000)"),fill:"#1B193F","font-family":"Gotham-Book, Gotham","font-size":"17","font-weight":"300",children:Object(h.jsxs)("text",{children:[Object(h.jsx)("tspan",{x:"fr-FR"===document.documentElement.lang?"50":"0",y:"0",children:t("pro.Financial Services")}),Object(h.jsx)("tspan",{x:"85",y:"25",children:t("pro.Government")})]})}),Object(h.jsx)("g",{id:"Other",className:"116",opacity:0,transform:(document.documentElement.lang,"translate(710.000000, 218.000000)"),fill:"#1B193F","font-family":"Gotham-ExtraLight, Gotham","font-size":"16","font-weight":"300",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.802",y:"10",children:t("pro.Retired")})})}),Object(h.jsx)("g",{id:"50%",class:"115",opacity:0,transform:"translate(415.000000, 165.000000)",fill:"#221D58","font-family":"Gotham-Bold, Gotham","font-size":"36","font-weight":"bold",children:Object(h.jsx)("text",{id:"49%",children:Object(h.jsx)("tspan",{x:"0",y:"0",children:"52%"})})}),Object(h.jsx)("g",{id:"34%",class:"118",opacity:0,transform:"translate(470, 265)",fill:"#1B193F","font-family":"Gotham-Bold, Gotham","font-size":"34","font-weight":"bold",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.5856",y:"14.800781",children:"41%"})})}),Object(h.jsx)("g",{id:"10%",class:"116",opacity:0,transform:"translate(557.000000, 158.000000)",fill:"#1B193F","font-family":"Gotham-Bold, Gotham","font-size":"22","font-weight":"bold",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.2997",y:"14.800781",children:"4%"})})}),Object(h.jsx)("g",{id:"Retired",className:"117",opacity:0,transform:"translate(695.000000, 160.000000)",fill:"#FFFFFF","font-family":"Gotham-Bold, Gotham","font-size":"16","font-weight":"300",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0",y:"9",children:t("pro.Other")})})}),Object(h.jsx)("g",{id:"6%",class:"117",opacity:0,transform:"translate(585.000000, 218.000000)",fill:"#221D58","font-family":"Gotham-Bold, Gotham","font-size":"22","font-weight":"700",children:Object(h.jsx)("text",{children:Object(h.jsx)("tspan",{x:"0.2495",y:"14.800781",children:"3%"})})}),Object(h.jsx)("path",{class:"115-line",opacity:0,d:"M320,155 L390,155",id:"Stroke-210",stroke:"#AED5CF","stroke-width":"1.5"}),Object(h.jsx)("path",{class:"118-line",opacity:0,d:"M410,270 L460,270",id:"Stroke-210",stroke:"#DEEDEB","stroke-width":"1.5"}),Object(h.jsx)("path",{class:"116-line",opacity:0,d:"M680,165 L595,165",id:"Stroke-210",stroke:"#7FBFBA","stroke-width":"1.5"}),Object(h.jsx)("path",{class:"117-line",opacity:0,d:"M700,225 L625,225",id:"Stroke-210",stroke:"#AED5CF","stroke-width":"1.5"})]})})]})})},T=Object(i.memo)(J),U=function(t){t.x;var e=t.y,n=(t.width,t.height,t.name);t.fill;return Object(h.jsx)("text",{x:20,y:e+30,fill:"#fff",offset:15,height:55,textAnchor:"start",children:n<900?n+"*":n})},W=function(t){var e=t.data;Object(x.a)().t;return Object(h.jsx)(h.Fragment,{children:Object(h.jsx)(O.a,{width:"100%",children:Object(h.jsxs)(C.a,{layout:"vertical",data:e,height:600,children:[Object(h.jsx)(p.a,{type:"number",dataKey:"value",axisLine:!1,tick:!1}),Object(h.jsx)(u.a,{dataKey:"name",type:"category",axisLine:!1,tick:!1}),Object(h.jsxs)(A.a,{dataKey:"value",children:[e.map((function(t,e){return Object(h.jsx)(L.a,{x:0,height:45,fill:e%2==0?"#6AC9C8":"#b0e0df"},"cell-".concat(e))})),Object(h.jsx)(R.a,{dataKey:"name",content:U})]})]})})})},q=Object(i.memo)(W);function Q(t){var e=Object(i.useState)(""),n=Object(a.a)(e,2),c=n[0],r=n[1],o=Object(i.useState)(t.countries),l=Object(a.a)(o,1)[0];return Object(h.jsxs)("div",{children:[Object(h.jsx)(b,{setTooltipContent:r,countries:l}),Object(h.jsx)(s.a,{backgroundColor:"#715f8a",textColor:"white",children:c})]})}function Y(t){var e=Object(i.useState)(t.data),n=Object(a.a)(e,1)[0];return Object(h.jsx)("div",{children:Object(h.jsx)(w,{data:n})})}function _(t){var e=Object(i.useState)(t.data),n=Object(a.a)(e,1)[0],c=Object(i.useState)(t.color),r=Object(a.a)(c,1)[0];return Object(h.jsx)(N,{data:n,color:r})}function H(t){var e=Object(i.useState)(t.data),n=Object(a.a)(e,1)[0];return Object(h.jsx)(q,{data:n})}function X(t){var e=Object(i.useState)(t.data),n=Object(a.a)(e,1)[0];return Object(h.jsx)(D,{data:n})}function Z(t){return Object(h.jsx)(V,{})}function $(t){return Object(h.jsx)(K,{})}function tt(t){return Object(h.jsx)(T,{})}window.renderGlobe=function(t){r.a.render(Object(h.jsx)(Q,{countries:JSON.parse(t.dataset.countries)}),t)},window.renderGraph=function(t){r.a.render(Object(h.jsx)(Y,{data:JSON.parse(t.dataset.points)}),t)},window.renderPI=function(t){r.a.render(Object(h.jsx)(_,{color:t.dataset.color,data:JSON.parse(t.dataset.points)}),t)},window.renderBarChart2021=function(t){r.a.render(Object(h.jsx)(H,{data:JSON.parse(t.dataset.points)}),t)},window.renderBarChart=function(t){r.a.render(Object(h.jsx)(X,{data:JSON.parse(t.dataset.points)}),t)},window.renderProgression=function(t){r.a.render(Object(h.jsx)(Z,{}),t)},window.renderProgression2021=function(t){r.a.render(Object(h.jsx)($,{}),t)},window.renderProgression2022=function(t){r.a.render(Object(h.jsx)(tt,{}),t)}}},[[353,1,2]]]);
//# sourceMappingURL=main.a7bb4a96.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["i18n.js","MapChart.js","GraphChart.js","PiChart.js","BarChart.js","ProgressionChart.js","ProgressionChart2021.js","ProgressionChart2022.js","BarChart2021.js","index.js"],"names":["i18n","use","LanguageDetector","initReactI18next","init","detection","order","lookupCookie","lookupLocalStorage","lookupSessionStorage","caches","debug","fallbackLng","interpolation","escapeValue","resources","en","translation","fr","MapChart","setTooltipContent","countries","useTranslation","t","data-tip","projection","geography","geographies","map","geo","found","i","length","cprop","properties","indexOf","name","NICENAME","style","default","fill","outline","stroke","strokeWidth","hover","pressed","onMouseEnter","onMouseLeave","rsmKey","memo","CustomTooltip","active","payload","label","className","GraphChart","data","first_val","last_val","ticks","Math","floor","tick_array","push","ResponsiveContainer","width","height","AreaChart","id","x1","y1","x2","y2","offset","stopColor","stopOpacity","XAxis","tick","dataKey","YAxis","Tooltip","content","Area","dot","renderActiveShape","props","RADIAN","PI","cx","cy","midAngle","innerRadius","outerRadius","startAngle","endAngle","value","percent","color","font_color","sin","cos","sx","sy","mx","my","ex","ey","textAnchor","Sector","d","r","x","y","fontWeight","dy","PiChart","PieChart","Pie","activeIndex","Array","from","_","activeShape","renderCustomizedLabel","CBVBars","BarChart","layout","type","axisLine","Bar","entry","index","Cell","LabelList","ProgressionChart","viewBox","version","stroke-width","fill-rule","data-r","opacity","transform","font-family","font-size","font-weight","ProgressionChart2021","document","documentElement","lang","ProgressionChart2022","class","renderCustomizedLabel2021","CBVBars2021","CBVGlobe","useState","setContent","backgroundColor","textColor","CBVGraph","CBVPI","CBVBarChart2021","CBVBarChart","CBVProgression","CBVProgression2021","CBVProgression2022","window","renderGlobe","el","ReactDOM","render","JSON","parse","dataset","renderGraph","points","renderPI","renderBarChart2021","renderBarChart","renderProgression","renderProgression2021","renderProgression2022"],"mappings":"4LAKAA,IAGGC,IAAIC,KAEJD,IAAIE,KAGJC,KAAK,CACJC,UAAW,CACPC,MAAO,CAAC,eACR,kBAAqB,OACrBC,aAAc,GACdC,mBAAoB,GACpBC,qBAAsB,GACtBC,OAAQ,IAEZC,OAAO,EACPC,YAAa,KACbC,cAAe,CACbC,aAAa,GAEfC,UAAW,CACTC,GAAI,CACFC,YAAa,CACX,gBAAgB,kBAChB,kBAAkB,SAClB,iBAAiB,SACf,mBAAmB,eACnB,gBAAgB,YAChB,eAAe,WACf,yBAAyB,+BACzB,eAAe,WACf,iBAAiB,iBACjB,cAAc,UACd,iBAAiB,UACjB,YAAY,UAGlBC,GAAI,CACFD,YAAa,CACX,kBAAkB,IAClB,iBAAiB,IACjB,gBAAgB,0BAChB,mBAAmB,WACnB,gBAAgB,iBAChB,eAAe,uBACf,yBAAyB,uBACzB,eAAe,gBACf,iBAAiB,eACjB,cAAc,mB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mB,oBAE1B,OACE,cAAC,EAAD,CAASA,KAAMA,IAQnB,SAAS0G,EAAe7E,GACtB,OACE,cAAC,EAAD,IAQJ,SAAS8E,EAAmB9E,GAC1B,OACE,cAAC,EAAD,IAQJ,SAAS+E,GAAmB/E,GAC1B,OACE,cAAC,EAAD,IA1EJgF,OAAOC,YAAc,SAACC,GACpBC,IAASC,OAAO,cAAChB,EAAD,CAAUpI,UAAWqJ,KAAKC,MAAMJ,EAAGK,QAAQvJ,aAAgBkJ,IAa7EF,OAAOQ,YAAc,SAACN,GACpBC,IAASC,OAAO,cAACX,EAAD,CAAUtG,KAAMkH,KAAKC,MAAMJ,EAAGK,QAAQE,UAAaP,IAWrEF,OAAOU,SAAW,SAACR,GACjBC,IAASC,OAAO,cAACV,EAAD,CAAO9D,MAAOsE,EAAGK,QAAQ3E,MAAOzC,KAAMkH,KAAKC,MAAMJ,EAAGK,QAAQE,UAAaP,IAU3FF,OAAOW,mBAAqB,SAACT,GAC3BC,IAASC,OAAO,cAACT,EAAD,CAAiBxG,KAAMkH,KAAKC,MAAMJ,EAAGK,QAAQE,UAAaP,IAU5EF,OAAOY,eAAiB,SAACV,GACvBC,IAASC,OAAO,cAACR,EAAD,CAAazG,KAAMkH,KAAKC,MAAMJ,EAAGK,QAAQE,UAAaP,IASxEF,OAAOa,kBAAoB,SAACX,GAC1BC,IAASC,OAAO,cAACP,EAAD,IAAoBK,IAStCF,OAAOc,sBAAwB,SAACZ,GAC9BC,IAASC,OAAO,cAACN,EAAD,IAAwBI,IAS1CF,OAAOe,sBAAwB,SAACb,GAC9BC,IAASC,OAAO,cAACL,GAAD,IAAwBG,M","file":"static/js/main.a7bb4a96.chunk.js","sourcesContent":["import i18n from 'i18next';\nimport { initReactI18next } from 'react-i18next';\nimport LanguageDetector from 'i18next-browser-languagedetector';\n\n\ni18n\n // detect user language\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(LanguageDetector)\n // pass the i18n instance to react-i18next.\n .use(initReactI18next)\n // init i18next\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n detection: {\n order: ['querystring'],\n \"lookupQuerystring\": 'lang',\n lookupCookie: '',\n lookupLocalStorage: '',\n lookupSessionStorage: '',\n caches: [],\n },\n debug: false,\n fallbackLng: 'en',\n interpolation: {\n escapeValue: false, // not needed for react as it escapes by default\n },\n resources: {\n en: {\n translation: {\n \"one-term-only\":\"* ONE TERM ONLY\",\n \"pro.valuation.x\":\"11.991\",\n \"pro.services.x\":\"16.401\",\n \"pro.professional\":\"Professional\",\n \"pro.Valuation\":\"Valuation\",\n \"pro.Services\":\"Services\",\n \"pro.Financial Services\":\"Financial Services, Industry\",\n \"pro.Industry\":\"Industry\",\n \"pro.Government\":\"and Government\",\n \"pro.Retired\":\"Retired\",\n \"charts.members\":\"Members\",\n \"pro.Other\":\"Other\",\n }\n },\n fr: {\n translation: {\n \"pro.valuation.x\":\"0\",\n \"pro.services.x\":\"0\",\n \"one-term-only\":\"*UN TRIMESTRE SEULEMENT\",\n \"pro.professional\":\"Services\",\n \"pro.Valuation\":\"professionnels\",\n \"pro.Services\":\"d’évaluation\",\n \"pro.Financial Services\":\"Services financiers,\",\n \"pro.Industry\":\"industrie, et\",\n \"pro.Government\":\"gouvernement\",\n \"pro.Retired\":\"À la retraite\",\n \"charts.members\":\"Membres\",\n \"pro.Other\":\"Autres\",\n } \n }\n }\n });\n\nexport default i18n;","import React, { memo } from \"react\";\nimport {\n ComposableMap,\n Geographies,\n Geography\n} from \"react-simple-maps\";\nimport { useTranslation, Trans } from 'react-i18next';\n\nconst geoUrl =\n// \"http://arreport.test/world-110m.json\";\n \"https://yearinreview.cbvinstitute.com/world-110m.json\";\n\n\nconst MapChart = ({ setTooltipContent, countries }) => {\n\n const { t } = useTranslation();\n\n return (\n <>\n <ComposableMap data-tip=\"\" projection=\"geoMercator\" >\n <Geographies geography={geoUrl}>\n {({ geographies }) =>\n geographies.map(geo => { \n var found = false;\n for(var i = 0;i < countries.length;++i) {\n for(const cprop in geo.properties) {\n if(typeof geo.properties[cprop].indexOf == 'function' && geo.properties[cprop].indexOf(countries[i].name) !== -1) {\n geo.properties.NICENAME = countries[i].name \n found = true;\n break;\n }\n }\n }\n\n var style = {};\n\n if(found) {\n style = {\n default: {\n fill: \"#5CBFBC\",\n outline: \"#0F1647\",\n stroke: \"#0F1647\",\n strokeWidth: \"0.25px\"\n },\n hover: {\n fill: \"white\",\n outline: \"none\"\n }\n }\n } else {\n style = {\n default: {\n fill: \"#594D78\",\n outline: \"none\",\n },\n hover: {\n fill: \"#594D78\",\n outline: \"none\"\n },\n pressed: {\n fill: \"#594D78\",\n outline: \"none\"\n }\n }\n }\n \n return (\n <Geography\n key={geo.rsmKey}\n geography={geo}\n onMouseEnter={() => {\n if(found) {\n const { NICENAME } = geo.properties;\n setTooltipContent(`${NICENAME}`);\n }\n }}\n onMouseLeave={() => {\n setTooltipContent(\"\");\n }}\n style={style}\n />\n ) } )\n }\n </Geographies>\n </ComposableMap>\n </>\n );\n};\n\nexport default memo(MapChart);\n","import React, { memo } from \"react\";\nimport { AreaChart, Area, XAxis, YAxis, Tooltip, ResponsiveContainer } from 'recharts';\nimport { useTranslation, Trans } from 'react-i18next';\n\nconst CustomTooltip = ({ active, payload, label }) => {\n\n const { t } = useTranslation();\n\n if (active && payload && payload.length) {\n return (\n <div className=\"custom-tooltip\">\n <p className=\"label\" style={ {'color':'#221d58'} } >{`${label}`}</p>\n </div>\n );\n }\n\n return null;\n};\n\nconst GraphChart = ({ data }) => {\n var first_val = data[0]['name'];\n var last_val = data[data.length - 1]['name'];\n\n var ticks = Math.floor(last_val / 500);\n var tick_array = [];\n for(var i = 0;i < ticks;++i) {\n tick_array.push((i+1) * 500);\n }\n return (\n <>\n <ResponsiveContainer width={'99%'} height={475}>\n <AreaChart>\n <defs>\n <linearGradient id=\"colorUv\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0%\" stopColor=\"#b4eded\" stopOpacity={1}/>\n <stop offset=\"100%\" stopColor=\"#FFFFFF\" stopOpacity={0.1}/>\n </linearGradient>\n </defs>\n <XAxis tick={{ fill: '#FFFFFF' }} stroke=\"#BFBECF\" dataKey=\"name\" ticks={[first_val, last_val]} />\n <YAxis tick={{ fill: '#FFFFFF' }} stroke=\"#BFBECF\" ticks={tick_array} />\n <Tooltip content={<CustomTooltip />} />\n <Area dot={false} strokeWidth={2} data={ data } fill=\"url(#colorUv)\" dataKey=\"value\" stroke=\"#FFFFFF\" />\n </AreaChart></ResponsiveContainer>\n </>\n )\n}\n\nexport default memo(GraphChart);","import React, { memo } from \"react\";\nimport { Pie, PieChart, Sector, ResponsiveContainer } from 'recharts';\n\nconst renderActiveShape = (props) => {\n\n const RADIAN = Math.PI / 180;\n const { cx, cy, midAngle, innerRadius, outerRadius, startAngle, endAngle, fill, payload, percent, value, name, color, font_color } = props;\n const sin = Math.sin(-RADIAN * midAngle);\n const cos = Math.cos(-RADIAN * midAngle);\n const sx = cx + (outerRadius + 10) * cos;\n const sy = cy + (outerRadius + 10) * sin;\n const mx = cx + (outerRadius + 30) * cos;\n const my = cy + (outerRadius + 30) * sin;\n const ex = mx + (cos >= 0 ? 1 : -1) * 22;\n const ey = my;\n const textAnchor = cos >= 0 ? 'start' : 'end';\n\n return (\n <g>\n <Sector\n cx={cx}\n cy={cy}\n innerRadius={innerRadius}\n outerRadius={outerRadius}\n startAngle={startAngle}\n endAngle={endAngle}\n fill={color}\n />\n <Sector\n cx={cx}\n cy={cy}\n startAngle={startAngle}\n endAngle={endAngle}\n innerRadius={outerRadius + 6}\n outerRadius={outerRadius + 10}\n fill={color}\n />\n <path d={`M${sx},${sy}L${mx},${my}L${ex},${ey}`} stroke={color} fill=\"none\" />\n <circle cx={ex} cy={ey} r={2} fill={color} stroke=\"none\" />\n <text x={ex + (cos >= 0 ? 1 : -1) * 12} y={ey} style={{fontWeight:'bold'}} textAnchor={textAnchor} fill={font_color}>{`${name}`}</text>\n <text x={ex + (cos >= 0 ? 1 : -1) * 12} y={ey} dy={18} textAnchor={textAnchor} fill={font_color}>\n {`${(value)}%`}\n </text>\n </g>\n );\n};\n\nconst PiChart = ({ data, color }) => {\n return (\n <>\n <ResponsiveContainer width={'100%'} height={300}><PieChart>\n <Pie \n activeIndex={Array.from({length: data.length}, (_, i) => (i-1) + 1)}\n activeShape={renderActiveShape}\n data={ data } dataKey=\"value\" cx=\"50%\" cy=\"50%\" innerRadius={70} outerRadius={100} fill=\"#82ca9d\" />\n </PieChart></ResponsiveContainer>\n </>\n )\n}\n\nexport default memo(PiChart);","import React, { memo } from \"react\";\nimport { BarChart, Bar, ResponsiveContainer, LabelList, XAxis, YAxis, Cell } from 'recharts';\nimport { useTranslation, Trans } from 'react-i18next';\n\nconst renderCustomizedLabel = (props) => {\n const {\n x, y, width, height, name, fill\n } = props;\n\n return (\n <text x={20} y={y + 35} fill={\"#fff\"} offset={15} height={55} textAnchor=\"start\">\n {(name < 900)?name+\"*\":name}\n </text>\n );\n };\n\nconst CBVBars = ({ data }) => {\n\n const { t } = useTranslation();\n \n return (\n <>\n <ResponsiveContainer width={'100%'} >\n <BarChart layout=\"vertical\" data={ data } height={600}>\n <XAxis type=\"number\" dataKey=\"value\" axisLine={false} tick={false} /> \n <YAxis dataKey=\"name\" type=\"category\" axisLine={false} tick={false}/>\n <Bar dataKey=\"value\">\n {\n data.map((entry, index) => (\n <Cell x={0} height={55} key={`cell-${index}`} fill={(index % 2 == 0)?\"#706B88\":\"#453E61\"} />\n ))\n }\n <LabelList dataKey=\"name\" content={renderCustomizedLabel} />\n </Bar>\n </BarChart>\n </ResponsiveContainer>\n <small>&nbsp;{t(\"one-term-only\")}</small>\n </>\n )\n}\n\nexport default memo(CBVBars);","import React, { memo } from \"react\";\nimport { useTranslation, Trans } from 'react-i18next';\n\nconst ProgressionChart = (props) => {\n\n const { t } = useTranslation();\n \n return (\n <>\n <svg width=\"240px\" height=\"318px\" viewBox=\"0 0 240 318\" version=\"1.1\">\n <title>sectors-2</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"sectors-2\">\n <circle cx=\"94\" cy=\"102\" r=\"0\" data-r=\"85\" id=\"Fill-115\" fill=\"#A4D6CF\" ></circle>\n <circle cx=\"78\" cy=\"217\" r=\"0\" data-r=\"31\" id=\"Fill-116\" fill=\"#6BC1BA\"></circle>\n <circle cx=\"96\" cy=\"265\" r=\"0\" data-r=\"21\" id=\"Fill-117\" fill=\"#A4D6CF\"></circle>\n <circle cx=\"175\" cy=\"230\" r=\"0\" data-r=\"65\" id=\"Fill-118\" fill=\"#DAEEEB\"></circle>\n <g id=\"Professional-Valuation-Services\" className=\"115\" opacity={0} transform=\"translate(41.000000, 83.000000)\" fill=\"#1B193F\" font-family=\"Gotham-ExtraLight, Gotham\" font-size=\"18\" font-weight=\"300\">\n <text id=\"Professional-Valuati\">\n <tspan x=\"0.273\" y=\"14\">{t('pro.professional')}</tspan>\n <tspan x={t('pro.valuation.x')} y=\"35.6000073\">{t('pro.Valuation')}</tspan>\n <tspan x={t('pro.services.x')} y=\"57.2000146\">{t('pro.Services')}</tspan>\n </text>\n </g>\n <g id=\"Financial-Services\" className=\"118\" opacity={0} transform=\"translate(117.000000, 224.000000)\" fill=\"#1B193F\" font-family=\"Gotham-ExtraLight, Gotham\" font-size=\"13\" font-weight=\"300\">\n <text>\n <tspan x=\"0.677\" y=\"10\">{t('pro.Financial Services')}</tspan>\n <tspan x=\"17.395\" y=\"25.6000053\">{t('pro.Industry')}</tspan>\n <tspan x=\"18.5585\" y=\"41.2000105\">{t('pro.Government')}</tspan>\n </text>\n </g>\n <g id=\"Other\" className=\"116\" opacity={0} transform=\"translate(59.000000, 224.000000)\" fill=\"#1B193F\" font-family=\"Gotham-ExtraLight, Gotham\" font-size=\"12\" font-weight=\"300\">\n <text>\n <tspan x=\"0.802\" y=\"10\">{t('pro.Other')}</tspan>\n </text>\n </g>\n <g id=\"50%\" className=\"115\" opacity={0} transform=\"translate(73.000000, 58.000000)\" fill=\"#1B193F\" font-family=\"Gotham-Bold, Gotham\" font-size=\"18\" font-weight=\"bold\">\n <text id=\"49%\">\n <tspan x=\"0.8076\" y=\"14.8007812\">49%</tspan>\n </text>\n </g>\n <g id=\"34%\" className=\"118\" opacity={0} transform=\"translate(154.000000, 201.000000)\" fill=\"#1B193F\" font-family=\"Gotham-Bold, Gotham\" font-size=\"18\" font-weight=\"bold\">\n <text>\n <tspan x=\"0.5856\" y=\"14.800781\">36%</tspan>\n </text>\n </g>\n <g id=\"10%\" className=\"116\" opacity={0} transform=\"translate(59.000000, 204.000000)\" fill=\"#1B193F\" font-family=\"Gotham-Bold, Gotham\" font-size=\"18\" font-weight=\"bold\">\n <text>\n <tspan x=\"0.2997\" y=\"14.800781\">9%</tspan>\n </text>\n </g>\n <g id=\"Retired\" className=\"117\" opacity={0} transform=\"translate(76.000000, 308.000000)\" fill=\"#FFFFFF\" font-family=\"Gotham-ExtraLight, Gotham\" font-size=\"11\" font-weight=\"300\">\n <text>\n <tspan x=\"0\" y=\"9\">{t('pro.Retired')}</tspan>\n </text>\n </g>\n <g id=\"6%\" className=\"117\" opacity={0} transform=\"translate(81.000000, 288.000000)\" fill=\"#FFFFFF\" font-family=\"Gotham-Medium, Gotham\" font-size=\"18\" font-weight=\"400\">\n <text>\n <tspan x=\"0.2495\" y=\"14.800781\">6%</tspan>\n </text>\n </g>\n <path className=\"117\" opacity={0} d=\"M94.4777,289.2349 L94.4777,263.4129\" id=\"Stroke-210\" stroke=\"#FFFFFF\" stroke-width=\"0.5\"></path>\n </g>\n </g>\n </svg>\n </>\n )\n}\n\nexport default memo(ProgressionChart);","import React, { memo } from \"react\";\nimport { useTranslation, Trans } from 'react-i18next';\n\nconst ProgressionChart2021 = () => {\n\n const { t } = useTranslation();\n\n return (\n <>\n <svg width=\"240px\" height=\"318px\" viewBox=\"0 0 240 318\" version=\"1.1\">\n <title>sectors-2</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"sectors-2\">\n <circle cx=\"94\" cy=\"102\" r=\"0\" data-r=\"85\" id=\"Fill-115\" fill=\"#A4D6CF\" ></circle>\n <circle cx=\"78\" cy=\"217\" r=\"0\" data-r=\"31\" id=\"Fill-116\" fill=\"#6BC1BA\"></circle>\n <circle cx=\"96\" cy=\"265\" r=\"0\" data-r=\"21\" id=\"Fill-117\" fill=\"#A4D6CF\"></circle>\n <circle cx=\"175\" cy=\"230\" r=\"0\" data-r=\"65\" id=\"Fill-118\" fill=\"#DAEEEB\"></circle>\n <g id=\"Professional-Valuation-Services\" className=\"115\" opacity={0} transform={document.documentElement.lang === \"fr-FR\" ? \"translate(50.000000, 83.000000)\" : \"translate(50.000000, 83.000000)\" } fill=\"#1B193F\" font-family=\"Gotham-ExtraLight, Gotham\" font-size=\"18\" font-weight=\"300\">\n <text id=\"Professional-Valuati\">\n <tspan x=\"0.273\" y=\"14\">{t('pro.professional')}</tspan>\n <tspan x={t('pro.valuation.x')} y=\"35.6000073\">{t('pro.Valuation')}</tspan>\n <tspan x={t('pro.services.x')} y=\"57.2000146\">{t('pro.Services')}</tspan>\n </text>\n </g>\n <g id=\"Financial-Services\" className=\"118\" opacity={0} transform={document.documentElement.lang === \"fr-FR\" ? \"translate(125.000000, 224.000000)\" : \"translate(125.000000, 224.000000)\" } fill=\"#1B193F\" font-family=\"Gotham-ExtraLight, Gotham\" font-size=\"13\" font-weight=\"300\">\n <text>\n <tspan x=\"0.677\" y=\"10\">{t('pro.Financial Services')}</tspan>\n <tspan x=\"17.395\" y=\"25.6000053\">{t('pro.Industry')}</tspan>\n <tspan x=\"18.5585\" y=\"41.2000105\">{t('pro.Government')}</tspan>\n </text>\n </g>\n <g id=\"Other\" className=\"116\" opacity={0} transform={document.documentElement.lang === \"fr-FR\" ? \"translate(55.000000, 224.000000)\" : \"translate(63.000000, 224.000000)\" } fill=\"#1B193F\" font-family=\"Gotham-ExtraLight, Gotham\" font-size=\"10\" font-weight=\"300\">\n <text>\n <tspan x=\"0.802\" y=\"10\">{t('pro.Retired')}</tspan>\n </text>\n </g>\n <g id=\"50%\" className=\"115\" opacity={0} transform=\"translate(73.000000, 58.000000)\" fill=\"#1B193F\" font-family=\"Gotham-Bold, Gotham\" font-size=\"18\" font-weight=\"bold\">\n <text id=\"49%\">\n <tspan x=\"0.8076\" y=\"14.8007812\">50%</tspan>\n </text>\n </g>\n <g id=\"34%\" className=\"118\" opacity={0} transform=\"translate(154.000000, 201.000000)\" fill=\"#1B193F\" font-family=\"Gotham-Bold, Gotham\" font-size=\"18\" font-weight=\"bold\">\n <text>\n <tspan x=\"0.5856\" y=\"14.800781\">39%</tspan>\n </text>\n </g>\n <g id=\"10%\" className=\"116\" opacity={0} transform=\"translate(66.000000, 204.000000)\" fill=\"#1B193F\" font-family=\"Gotham-Bold, Gotham\" font-size=\"18\" font-weight=\"bold\">\n <text>\n <tspan x=\"0.2997\" y=\"14.800781\">7%</tspan>\n </text>\n </g>\n <g id=\"Retired\" className=\"117\" opacity={0} transform=\"translate(76.000000, 308.000000)\" fill=\"#FFFFFF\" font-family=\"Gotham-ExtraLight, Gotham\" font-size=\"11\" font-weight=\"300\">\n <text>\n <tspan x=\"0\" y=\"9\">{t('pro.Other')}</tspan>\n </text>\n </g>\n <g id=\"6%\" className=\"117\" opacity={0} transform=\"translate(81.000000, 288.000000)\" fill=\"#FFFFFF\" font-family=\"Gotham-Medium, Gotham\" font-size=\"18\" font-weight=\"400\">\n <text>\n <tspan x=\"0.2495\" y=\"14.800781\">4%</tspan>\n </text>\n </g>\n <path className=\"117\" opacity={0} d=\"M94.4777,289.2349 L94.4777,263.4129\" id=\"Stroke-210\" stroke=\"#FFFFFF\" stroke-width=\"0.5\"></path>\n </g>\n </g>\n </svg>\n </>\n )\n}\n\nexport default memo(ProgressionChart2021);","import React, { memo } from \"react\";\nimport { useTranslation, Trans } from 'react-i18next';\n\nconst ProgressionChart2022 = () => {\n\n const { t } = useTranslation();\n\n return (\n <>\n <svg width=\"1024px\" height=\"400px\" viewBox=\"0 0 1024 400\" version=\"1.1\">\n <title>sectors-2</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"sectors-2\">\n <circle cx=\"450\" cy=\"152\" r=\"15\" data-r=\"15\" id=\"Fill-115\" fill=\"#A4D6CF\"></circle>\n <circle cx=\"570\" cy=\"165\" r=\"6\" data-r=\"6\" id=\"Fill-116\" fill=\"#6BC1BA\"></circle>\n <circle cx=\"600\" cy=\"225\" r=\"6\" data-r=\"6\" id=\"Fill-117\" fill=\"#A4D6CF\"></circle>\n <circle cx=\"505\" cy=\"270\" r=\"10\" data-r=\"10\" id=\"Fill-118\" fill=\"#DAEEEB\"></circle>\n <g id=\"Professional-Valuation-Services\" className=\"115\" opacity={0} transform={document.documentElement.lang === \"fr-FR\" ? \"translate(0.000000, 160.000000)\" : \"translate(30.000000, 160.000000)\" } fill=\"#1B193F\" font-family=\"Gotham-Book, Gotham\" font-size=\"18\" font-weight=\"300\">\n <text id=\"Professional-Valuati\">\n <tspan x=\"0\" y=\"0\">{t('pro.professional')}</tspan>\n <tspan x={document.documentElement.lang === \"fr-FR\" ? \"78\" : \"115\" } y=\"0\">{t('pro.Valuation')}</tspan>\n <tspan x={document.documentElement.lang === \"fr-FR\" ? \"210\" : \"205\" } y=\"0\">{t('pro.Services')}</tspan>\n </text>\n </g>\n <g id=\"Financial-Services\" className=\"118\" opacity={0} transform={document.documentElement.lang === \"fr-FR\" ? \"translate(175.000000, 262.000000)\" : \"translate(175.000000, 262.000000)\" } fill=\"#1B193F\" font-family=\"Gotham-Book, Gotham\" font-size=\"17\" font-weight=\"300\">\n <text>\n <tspan x={document.documentElement.lang === \"fr-FR\" ? \"50\" : \"0\" } y=\"0\">{t('pro.Financial Services')}</tspan>\n <tspan x=\"85\" y=\"25\">{t('pro.Government')}</tspan>\n </text>\n </g>\n <g id=\"Other\" className=\"116\" opacity={0} transform={document.documentElement.lang === \"fr-FR\" ? \"translate(710.000000, 218.000000)\" : \"translate(710.000000, 218.000000)\" } fill=\"#1B193F\" font-family=\"Gotham-ExtraLight, Gotham\" font-size=\"16\" font-weight=\"300\">\n <text>\n <tspan x=\"0.802\" y=\"10\">{t('pro.Retired')}</tspan>\n </text>\n </g>\n <g id=\"50%\" class=\"115\" opacity={0} transform=\"translate(415.000000, 165.000000)\" fill=\"#221D58\" font-family=\"Gotham-Bold, Gotham\" font-size=\"36\" font-weight=\"bold\"><text id=\"49%\"><tspan x=\"0\" y=\"0\">52%</tspan></text></g>\n <g id=\"34%\" class=\"118\" opacity={0} transform=\"translate(470, 265)\" fill=\"#1B193F\" font-family=\"Gotham-Bold, Gotham\" font-size=\"34\" font-weight=\"bold\"><text><tspan x=\"0.5856\" y=\"14.800781\">41%</tspan></text></g>\n <g id=\"10%\" class=\"116\" opacity={0} transform=\"translate(557.000000, 158.000000)\" fill=\"#1B193F\" font-family=\"Gotham-Bold, Gotham\" font-size=\"22\" font-weight=\"bold\"><text><tspan x=\"0.2997\" y=\"14.800781\">4%</tspan></text></g>\n <g id=\"Retired\" className=\"117\" opacity={0} transform=\"translate(695.000000, 160.000000)\" fill=\"#FFFFFF\" font-family=\"Gotham-Bold, Gotham\" font-size=\"16\" font-weight=\"300\">\n <text>\n <tspan x=\"0\" y=\"9\">{t('pro.Other')}</tspan>\n </text>\n </g>\n <g id=\"6%\" class=\"117\" opacity={0} transform=\"translate(585.000000, 218.000000)\" fill=\"#221D58\" font-family=\"Gotham-Bold, Gotham\" font-size=\"22\" font-weight=\"700\"><text><tspan x=\"0.2495\" y=\"14.800781\">3%</tspan></text></g>\n <path class=\"115-line\" opacity={0} d=\"M320,155 L390,155\" id=\"Stroke-210\" stroke=\"#AED5CF\" stroke-width=\"1.5\"></path>\n <path class=\"118-line\" opacity={0} d=\"M410,270 L460,270\" id=\"Stroke-210\" stroke=\"#DEEDEB\" stroke-width=\"1.5\"></path>\n <path class=\"116-line\" opacity={0} d=\"M680,165 L595,165\" id=\"Stroke-210\" stroke=\"#7FBFBA\" stroke-width=\"1.5\"></path>\n <path class=\"117-line\" opacity={0} d=\"M700,225 L625,225\" id=\"Stroke-210\" stroke=\"#AED5CF\" stroke-width=\"1.5\"></path>\n </g>\n </g>\n </svg>\n </>\n )\n}\n\nexport default memo(ProgressionChart2022);","import React, { memo } from \"react\";\nimport { BarChart, Bar, ResponsiveContainer, LabelList, XAxis, YAxis, Cell } from 'recharts';\nimport { useTranslation, Trans } from 'react-i18next';\n\nconst renderCustomizedLabel2021 = (props) => {\n const {\n x, y, width, height, name, fill\n } = props;\n\n return (\n <text x={20} y={y + 30} fill={\"#fff\"} offset={15} height={55} textAnchor=\"start\">\n {(name < 900)?name+\"*\":name}\n </text>\n );\n };\n\nconst CBVBars2021 = ({ data }) => {\n\n const { t } = useTranslation();\n \n return (\n <>\n <ResponsiveContainer width={'100%'} >\n <BarChart layout=\"vertical\" data={ data } height={600}>\n <XAxis type=\"number\" dataKey=\"value\" axisLine={false} tick={false} /> \n <YAxis dataKey=\"name\" type=\"category\" axisLine={false} tick={false}/>\n <Bar dataKey=\"value\">\n {\n data.map((entry, index) => (\n <Cell x={0} height={45} key={`cell-${index}`} fill={(index % 2 == 0)?\"#6AC9C8\":\"#b0e0df\"} />\n ))\n }\n <LabelList dataKey=\"name\" content={renderCustomizedLabel2021} />\n </Bar>\n </BarChart>\n </ResponsiveContainer>\n </>\n )\n}\n\nexport default memo(CBVBars2021);","import React, { useState } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport ReactTooltip from \"react-tooltip\";\n\nimport './i18n';\nimport MapChart from \"./MapChart\";\nimport GraphChart from \"./GraphChart\";\nimport PiChart from './PiChart';\nimport CBVBars from './BarChart';\nimport ProgressionChart from './ProgressionChart';\nimport ProgressionChart2021 from './ProgressionChart2021';\nimport ProgressionChart2022 from './ProgressionChart2022';\nimport CBVBars2021 from './BarChart2021';\n\nfunction CBVGlobe(props) {\n const [content, setContent] = useState(\"\");\n const [countries] = useState(props.countries);\n return (\n <div>\n <MapChart setTooltipContent={setContent} countries={countries} />\n <ReactTooltip backgroundColor=\"#715f8a\" textColor=\"white\">{content}</ReactTooltip>\n </div>\n );\n}\n\nwindow.renderGlobe = (el) => {\n ReactDOM.render(<CBVGlobe countries={JSON.parse(el.dataset.countries)} />, el);\n}\n\n\nfunction CBVGraph(props) {\n const [data] = useState(props.data);\n return (\n <div>\n <GraphChart data={data} />\n </div>\n );\n}\n\nwindow.renderGraph = (el) => {\n ReactDOM.render(<CBVGraph data={JSON.parse(el.dataset.points)} />, el);\n}\n\nfunction CBVPI(props) {\n const [data] = useState(props.data);\n const [color] = useState(props.color);\n return (\n <PiChart data={data} color={color} />\n );\n}\n\nwindow.renderPI = (el) => {\n ReactDOM.render(<CBVPI color={el.dataset.color} data={JSON.parse(el.dataset.points)} />, el);\n}\n\nfunction CBVBarChart2021(props) {\n const [data] = useState(props.data);\n return (\n <CBVBars2021 data={data} />\n );\n}\n\nwindow.renderBarChart2021 = (el) => {\n ReactDOM.render(<CBVBarChart2021 data={JSON.parse(el.dataset.points)} />, el);\n}\n\nfunction CBVBarChart(props) {\n const [data] = useState(props.data);\n return (\n <CBVBars data={data} />\n );\n}\n\nwindow.renderBarChart = (el) => {\n ReactDOM.render(<CBVBarChart data={JSON.parse(el.dataset.points)} />, el);\n}\n\nfunction CBVProgression(props) {\n return (\n <ProgressionChart />\n );\n}\n\nwindow.renderProgression = (el) => {\n ReactDOM.render(<CBVProgression />, el);\n}\n\nfunction CBVProgression2021(props) {\n return (\n <ProgressionChart2021 />\n );\n}\n\nwindow.renderProgression2021 = (el) => {\n ReactDOM.render(<CBVProgression2021 />, el);\n}\n\nfunction CBVProgression2022(props) {\n return (\n <ProgressionChart2022 />\n );\n}\n\nwindow.renderProgression2022 = (el) => {\n ReactDOM.render(<CBVProgression2022 />, el);\n}"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],p=0,s=[];p<f.length;p++)l=f[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(c&&c(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var i=t[f];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var f=this["webpackJsonpcbv-globe"]=this["webpackJsonpcbv-globe"]||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var a=0;a<f.length;a++)r(f[a]);var c=i;t()}([]);
//# sourceMappingURL=runtime-main.a933fda7.js.map
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","this","oldJsonpFunction","slice"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrBiB,EAAG,GAGAZ,EAAkB,GAGtB,SAASS,EAAoB1B,GAG5B,GAAG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AI,SAASgB,EAAQC,GAAY,OAAO/C,OAAOC,UAAUC,eAAeC,KAAK2C,EAAQC,IAGzG7B,EAAoB8B,EAAI,IAExB,IAAIC,EAAaC,KAAK,yBAA2BA,KAAK,0BAA4B,GAC9EC,EAAmBF,EAAW5C,KAAKuC,KAAKK,GAC5CA,EAAW5C,KAAOf,EAClB2D,EAAaA,EAAWG,QACxB,IAAI,IAAIvD,EAAI,EAAGA,EAAIoD,EAAWlD,OAAQF,IAAKP,EAAqB2D,EAAWpD,IAC3E,IAAIU,EAAsB4C,EAI1BxC,I","file":"static/js/runtime-main.a933fda7.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = this[\"webpackJsonpcbv-globe\"] = this[\"webpackJsonpcbv-globe\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
This diff could not be displayed because it is too large.
{
"name": "cbv-globe",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"babel-loader": "8.1.0",
"i18next": "^20.3.1",
"i18next-browser-languagedetector": "^6.1.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^11.10.0",
"react-scripts": "4.0.3",
"react-simple-maps": "2.1.2",
"react-spring": "^9.2.1",
"react-tooltip": "latest",
"react-visibility-sensor": "^5.1.1",
"recharts": "^2.0.9",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
<svg width="768px" height="318px" viewBox="0 0 768 318" version="1.1">
<title>sectors-2</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="sectors-2">
<circle cx="300" cy="152" r="58" data-r="58" id="Fill-115" fill="#A4D6CF"></circle>
<circle cx="450" cy="150" r="24" data-r="24" id="Fill-116" fill="#6BC1BA"></circle>
<circle cx="470" cy="225" r="2425" data-r="24" id="Fill-117" fill="#A4D6CF"></circle>
<circle cx="375" cy="280" r="47" data-r="47" id="Fill-118" fill="#DAEEEB"></circle>
<g id="Professional-Valuation-Services" className="115" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(50.000000, 83.000000)" : "translate(50.000000, 83.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="18" font-weight="300">
<text id="Professional-Valuati">
<tspan x="0.273" y="14">{t('pro.professional')}</tspan>
<tspan x={t('pro.valuation.x')} y="35.6000073">{t('pro.Valuation')}</tspan>
<tspan x={t('pro.services.x')} y="57.2000146">{t('pro.Services')}</tspan>
</text>
</g>
<g id="Financial-Services" className="118" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(125.000000, 224.000000)" : "translate(125.000000, 224.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="13" font-weight="300">
<text>
<tspan x="0.677" y="10">{t('pro.Financial Services')}</tspan>
<tspan x="17.395" y="25.6000053">{t('pro.Industry')}</tspan>
<tspan x="18.5585" y="41.2000105">{t('pro.Government')}</tspan>
</text>
</g>
<g id="Other" className="116" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(55.000000, 224.000000)" : "translate(63.000000, 224.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="10" font-weight="300">
<text>
<tspan x="0.802" y="10">{t('pro.Retired')}</tspan>
</text>
</g>
<g id="50%" class="115" opacity="1" transform="translate(270.000000, 147.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="36" font-weight="bold" style="opacity: 1;"><text id="49%"><tspan x="0.8076" y="14.8007812">50%</tspan></text></g>
<g id="34%" class="118" opacity="1" transform="translate(345.000000, 275.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="34" font-weight="bold" style="opacity: 1;"><text><tspan x="0.5856" y="14.800781">39%</tspan></text></g>
<g id="10%" class="116" opacity="1" transform="translate(437.000000, 143.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="22" font-weight="bold" style="opacity: 1;"><text><tspan x="0.2997" y="14.800781">3%</tspan></text></g>
<g id="Retired" className="117" opacity={0} transform="translate(76.000000, 308.000000)" fill="#FFFFFF" font-family="Gotham-ExtraLight, Gotham" font-size="11" font-weight="300">
<text>
<tspan x="0" y="9">{t('pro.Other')}</tspan>
</text>
</g>
<g id="6%" class="117" opacity="1" transform="translate(455.000000, 217.000000)" fill="#221D58" font-family="Gotham-Bold, Gotham" font-size="22" font-weight="700" style="opacity: 1;"><text><tspan x="0.2495" y="14.800781">3%</tspan></text></g>
<path className="117" opacity={0} d="M94.4777,289.2349 L94.4777,263.4129" id="Stroke-210" stroke="#FFFFFF" stroke-width="0.5"></path>
</g>
</g>
</svg>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="cbv-globe"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
<script>
window.renderProgression(document.getElementById('cbv-globe'));
</script>
</html>
\ No newline at end of file
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
This diff could not be displayed because it is too large.
import React, { memo } from "react";
import { BarChart, Bar, ResponsiveContainer, LabelList, XAxis, YAxis, Cell } from 'recharts';
import { useTranslation, Trans } from 'react-i18next';
const renderCustomizedLabel = (props) => {
const {
x, y, width, height, name, fill
} = props;
return (
<text x={20} y={y + 35} fill={"#fff"} offset={15} height={55} textAnchor="start">
{(name < 900)?name+"*":name}
</text>
);
};
const CBVBars = ({ data }) => {
const { t } = useTranslation();
return (
<>
<ResponsiveContainer width={'100%'} >
<BarChart layout="vertical" data={ data } height={600}>
<XAxis type="number" dataKey="value" axisLine={false} tick={false} />
<YAxis dataKey="name" type="category" axisLine={false} tick={false}/>
<Bar dataKey="value">
{
data.map((entry, index) => (
<Cell x={0} height={55} key={`cell-${index}`} fill={(index % 2 == 0)?"#706B88":"#453E61"} />
))
}
<LabelList dataKey="name" content={renderCustomizedLabel} />
</Bar>
</BarChart>
</ResponsiveContainer>
<small>&nbsp;{t("one-term-only")}</small>
</>
)
}
export default memo(CBVBars);
\ No newline at end of file
import React, { memo } from "react";
import { BarChart, Bar, ResponsiveContainer, LabelList, XAxis, YAxis, Cell } from 'recharts';
import { useTranslation, Trans } from 'react-i18next';
const renderCustomizedLabel2021 = (props) => {
const {
x, y, width, height, name, fill
} = props;
return (
<text x={20} y={y + 30} fill={"#fff"} offset={15} height={55} textAnchor="start">
{(name < 900)?name+"*":name}
</text>
);
};
const CBVBars2021 = ({ data }) => {
const { t } = useTranslation();
return (
<>
<ResponsiveContainer width={'100%'} >
<BarChart layout="vertical" data={ data } height={600}>
<XAxis type="number" dataKey="value" axisLine={false} tick={false} />
<YAxis dataKey="name" type="category" axisLine={false} tick={false}/>
<Bar dataKey="value">
{
data.map((entry, index) => (
<Cell x={0} height={45} key={`cell-${index}`} fill={(index % 2 == 0)?"#6AC9C8":"#b0e0df"} />
))
}
<LabelList dataKey="name" content={renderCustomizedLabel2021} />
</Bar>
</BarChart>
</ResponsiveContainer>
</>
)
}
export default memo(CBVBars2021);
\ No newline at end of file
import React, { memo } from "react";
import { AreaChart, Area, XAxis, YAxis, Tooltip, ResponsiveContainer } from 'recharts';
import { useTranslation, Trans } from 'react-i18next';
const CustomTooltip = ({ active, payload, label }) => {
const { t } = useTranslation();
if (active && payload && payload.length) {
return (
<div className="custom-tooltip">
<p className="label" style={ {'color':'#221d58'} } >{`${label}`}</p>
</div>
);
}
return null;
};
const GraphChart = ({ data }) => {
var first_val = data[0]['name'];
var last_val = data[data.length - 1]['name'];
var ticks = Math.floor(last_val / 500);
var tick_array = [];
for(var i = 0;i < ticks;++i) {
tick_array.push((i+1) * 500);
}
return (
<>
<ResponsiveContainer width={'99%'} height={475}>
<AreaChart>
<defs>
<linearGradient id="colorUv" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stopColor="#b4eded" stopOpacity={1}/>
<stop offset="100%" stopColor="#FFFFFF" stopOpacity={0.1}/>
</linearGradient>
</defs>
<XAxis tick={{ fill: '#FFFFFF' }} stroke="#BFBECF" dataKey="name" ticks={[first_val, last_val]} />
<YAxis tick={{ fill: '#FFFFFF' }} stroke="#BFBECF" ticks={tick_array} />
<Tooltip content={<CustomTooltip />} />
<Area dot={false} strokeWidth={2} data={ data } fill="url(#colorUv)" dataKey="value" stroke="#FFFFFF" />
</AreaChart></ResponsiveContainer>
</>
)
}
export default memo(GraphChart);
\ No newline at end of file
import React, { memo } from "react";
import {
ComposableMap,
Geographies,
Geography
} from "react-simple-maps";
import { useTranslation, Trans } from 'react-i18next';
const geoUrl =
// "http://arreport.test/world-110m.json";
"https://yearinreview.cbvinstitute.com/world-110m.json";
const MapChart = ({ setTooltipContent, countries }) => {
const { t } = useTranslation();
return (
<>
<ComposableMap data-tip="" projection="geoMercator" >
<Geographies geography={geoUrl}>
{({ geographies }) =>
geographies.map(geo => {
var found = false;
for(var i = 0;i < countries.length;++i) {
for(const cprop in geo.properties) {
if(typeof geo.properties[cprop].indexOf == 'function' && geo.properties[cprop].indexOf(countries[i].name) !== -1) {
geo.properties.NICENAME = countries[i].name
found = true;
break;
}
}
}
var style = {};
if(found) {
style = {
default: {
fill: "#5CBFBC",
outline: "#0F1647",
stroke: "#0F1647",
strokeWidth: "0.25px"
},
hover: {
fill: "white",
outline: "none"
}
}
} else {
style = {
default: {
fill: "#594D78",
outline: "none",
},
hover: {
fill: "#594D78",
outline: "none"
},
pressed: {
fill: "#594D78",
outline: "none"
}
}
}
return (
<Geography
key={geo.rsmKey}
geography={geo}
onMouseEnter={() => {
if(found) {
const { NICENAME } = geo.properties;
setTooltipContent(`${NICENAME}`);
}
}}
onMouseLeave={() => {
setTooltipContent("");
}}
style={style}
/>
) } )
}
</Geographies>
</ComposableMap>
</>
);
};
export default memo(MapChart);
import React, { memo } from "react";
import { Pie, PieChart, Sector, ResponsiveContainer } from 'recharts';
const renderActiveShape = (props) => {
const RADIAN = Math.PI / 180;
const { cx, cy, midAngle, innerRadius, outerRadius, startAngle, endAngle, fill, payload, percent, value, name, color, font_color } = props;
const sin = Math.sin(-RADIAN * midAngle);
const cos = Math.cos(-RADIAN * midAngle);
const sx = cx + (outerRadius + 10) * cos;
const sy = cy + (outerRadius + 10) * sin;
const mx = cx + (outerRadius + 30) * cos;
const my = cy + (outerRadius + 30) * sin;
const ex = mx + (cos >= 0 ? 1 : -1) * 22;
const ey = my;
const textAnchor = cos >= 0 ? 'start' : 'end';
return (
<g>
<Sector
cx={cx}
cy={cy}
innerRadius={innerRadius}
outerRadius={outerRadius}
startAngle={startAngle}
endAngle={endAngle}
fill={color}
/>
<Sector
cx={cx}
cy={cy}
startAngle={startAngle}
endAngle={endAngle}
innerRadius={outerRadius + 6}
outerRadius={outerRadius + 10}
fill={color}
/>
<path d={`M${sx},${sy}L${mx},${my}L${ex},${ey}`} stroke={color} fill="none" />
<circle cx={ex} cy={ey} r={2} fill={color} stroke="none" />
<text x={ex + (cos >= 0 ? 1 : -1) * 12} y={ey} style={{fontWeight:'bold'}} textAnchor={textAnchor} fill={font_color}>{`${name}`}</text>
<text x={ex + (cos >= 0 ? 1 : -1) * 12} y={ey} dy={18} textAnchor={textAnchor} fill={font_color}>
{`${(value)}%`}
</text>
</g>
);
};
const PiChart = ({ data, color }) => {
return (
<>
<ResponsiveContainer width={'100%'} height={300}><PieChart>
<Pie
activeIndex={Array.from({length: data.length}, (_, i) => (i-1) + 1)}
activeShape={renderActiveShape}
data={ data } dataKey="value" cx="50%" cy="50%" innerRadius={70} outerRadius={100} fill="#82ca9d" />
</PieChart></ResponsiveContainer>
</>
)
}
export default memo(PiChart);
\ No newline at end of file
import React, { memo } from "react";
import { useTranslation, Trans } from 'react-i18next';
const ProgressionChart = (props) => {
const { t } = useTranslation();
return (
<>
<svg width="240px" height="318px" viewBox="0 0 240 318" version="1.1">
<title>sectors-2</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="sectors-2">
<circle cx="94" cy="102" r="0" data-r="85" id="Fill-115" fill="#A4D6CF" ></circle>
<circle cx="78" cy="217" r="0" data-r="31" id="Fill-116" fill="#6BC1BA"></circle>
<circle cx="96" cy="265" r="0" data-r="21" id="Fill-117" fill="#A4D6CF"></circle>
<circle cx="175" cy="230" r="0" data-r="65" id="Fill-118" fill="#DAEEEB"></circle>
<g id="Professional-Valuation-Services" className="115" opacity={0} transform="translate(41.000000, 83.000000)" fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="18" font-weight="300">
<text id="Professional-Valuati">
<tspan x="0.273" y="14">{t('pro.professional')}</tspan>
<tspan x={t('pro.valuation.x')} y="35.6000073">{t('pro.Valuation')}</tspan>
<tspan x={t('pro.services.x')} y="57.2000146">{t('pro.Services')}</tspan>
</text>
</g>
<g id="Financial-Services" className="118" opacity={0} transform="translate(117.000000, 224.000000)" fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="13" font-weight="300">
<text>
<tspan x="0.677" y="10">{t('pro.Financial Services')}</tspan>
<tspan x="17.395" y="25.6000053">{t('pro.Industry')}</tspan>
<tspan x="18.5585" y="41.2000105">{t('pro.Government')}</tspan>
</text>
</g>
<g id="Other" className="116" opacity={0} transform="translate(59.000000, 224.000000)" fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="12" font-weight="300">
<text>
<tspan x="0.802" y="10">{t('pro.Other')}</tspan>
</text>
</g>
<g id="50%" className="115" opacity={0} transform="translate(73.000000, 58.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text id="49%">
<tspan x="0.8076" y="14.8007812">49%</tspan>
</text>
</g>
<g id="34%" className="118" opacity={0} transform="translate(154.000000, 201.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text>
<tspan x="0.5856" y="14.800781">36%</tspan>
</text>
</g>
<g id="10%" className="116" opacity={0} transform="translate(59.000000, 204.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text>
<tspan x="0.2997" y="14.800781">9%</tspan>
</text>
</g>
<g id="Retired" className="117" opacity={0} transform="translate(76.000000, 308.000000)" fill="#FFFFFF" font-family="Gotham-ExtraLight, Gotham" font-size="11" font-weight="300">
<text>
<tspan x="0" y="9">{t('pro.Retired')}</tspan>
</text>
</g>
<g id="6%" className="117" opacity={0} transform="translate(81.000000, 288.000000)" fill="#FFFFFF" font-family="Gotham-Medium, Gotham" font-size="18" font-weight="400">
<text>
<tspan x="0.2495" y="14.800781">6%</tspan>
</text>
</g>
<path className="117" opacity={0} d="M94.4777,289.2349 L94.4777,263.4129" id="Stroke-210" stroke="#FFFFFF" stroke-width="0.5"></path>
</g>
</g>
</svg>
</>
)
}
export default memo(ProgressionChart);
\ No newline at end of file
import React, { memo } from "react";
import { useTranslation, Trans } from 'react-i18next';
const ProgressionChart2021 = () => {
const { t } = useTranslation();
return (
<>
<svg width="240px" height="318px" viewBox="0 0 240 318" version="1.1">
<title>sectors-2</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="sectors-2">
<circle cx="94" cy="102" r="0" data-r="85" id="Fill-115" fill="#A4D6CF" ></circle>
<circle cx="78" cy="217" r="0" data-r="31" id="Fill-116" fill="#6BC1BA"></circle>
<circle cx="96" cy="265" r="0" data-r="21" id="Fill-117" fill="#A4D6CF"></circle>
<circle cx="175" cy="230" r="0" data-r="65" id="Fill-118" fill="#DAEEEB"></circle>
<g id="Professional-Valuation-Services" className="115" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(50.000000, 83.000000)" : "translate(50.000000, 83.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="18" font-weight="300">
<text id="Professional-Valuati">
<tspan x="0.273" y="14">{t('pro.professional')}</tspan>
<tspan x={t('pro.valuation.x')} y="35.6000073">{t('pro.Valuation')}</tspan>
<tspan x={t('pro.services.x')} y="57.2000146">{t('pro.Services')}</tspan>
</text>
</g>
<g id="Financial-Services" className="118" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(125.000000, 224.000000)" : "translate(125.000000, 224.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="13" font-weight="300">
<text>
<tspan x="0.677" y="10">{t('pro.Financial Services')}</tspan>
<tspan x="17.395" y="25.6000053">{t('pro.Industry')}</tspan>
<tspan x="18.5585" y="41.2000105">{t('pro.Government')}</tspan>
</text>
</g>
<g id="Other" className="116" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(55.000000, 224.000000)" : "translate(63.000000, 224.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="10" font-weight="300">
<text>
<tspan x="0.802" y="10">{t('pro.Retired')}</tspan>
</text>
</g>
<g id="50%" className="115" opacity={0} transform="translate(73.000000, 58.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text id="49%">
<tspan x="0.8076" y="14.8007812">50%</tspan>
</text>
</g>
<g id="34%" className="118" opacity={0} transform="translate(154.000000, 201.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text>
<tspan x="0.5856" y="14.800781">39%</tspan>
</text>
</g>
<g id="10%" className="116" opacity={0} transform="translate(66.000000, 204.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text>
<tspan x="0.2997" y="14.800781">7%</tspan>
</text>
</g>
<g id="Retired" className="117" opacity={0} transform="translate(76.000000, 308.000000)" fill="#FFFFFF" font-family="Gotham-ExtraLight, Gotham" font-size="11" font-weight="300">
<text>
<tspan x="0" y="9">{t('pro.Other')}</tspan>
</text>
</g>
<g id="6%" className="117" opacity={0} transform="translate(81.000000, 288.000000)" fill="#FFFFFF" font-family="Gotham-Medium, Gotham" font-size="18" font-weight="400">
<text>
<tspan x="0.2495" y="14.800781">4%</tspan>
</text>
</g>
<path className="117" opacity={0} d="M94.4777,289.2349 L94.4777,263.4129" id="Stroke-210" stroke="#FFFFFF" stroke-width="0.5"></path>
</g>
</g>
</svg>
</>
)
}
export default memo(ProgressionChart2021);
\ No newline at end of file
import React, { memo } from "react";
import { useTranslation, Trans } from 'react-i18next';
const ProgressionChart2022 = () => {
const { t } = useTranslation();
return (
<>
<svg width="1024px" height="400px" viewBox="0 0 1024 400" version="1.1">
<title>sectors-2</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="sectors-2">
<circle cx="450" cy="152" r="15" data-r="15" id="Fill-115" fill="#A4D6CF"></circle>
<circle cx="570" cy="165" r="6" data-r="6" id="Fill-116" fill="#6BC1BA"></circle>
<circle cx="600" cy="225" r="6" data-r="6" id="Fill-117" fill="#A4D6CF"></circle>
<circle cx="505" cy="270" r="10" data-r="10" id="Fill-118" fill="#DAEEEB"></circle>
<g id="Professional-Valuation-Services" className="115" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(0.000000, 160.000000)" : "translate(30.000000, 160.000000)" } fill="#1B193F" font-family="Gotham-Book, Gotham" font-size="18" font-weight="300">
<text id="Professional-Valuati">
<tspan x="0" y="0">{t('pro.professional')}</tspan>
<tspan x={document.documentElement.lang === "fr-FR" ? "78" : "115" } y="0">{t('pro.Valuation')}</tspan>
<tspan x={document.documentElement.lang === "fr-FR" ? "210" : "205" } y="0">{t('pro.Services')}</tspan>
</text>
</g>
<g id="Financial-Services" className="118" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(175.000000, 262.000000)" : "translate(175.000000, 262.000000)" } fill="#1B193F" font-family="Gotham-Book, Gotham" font-size="17" font-weight="300">
<text>
<tspan x={document.documentElement.lang === "fr-FR" ? "50" : "0" } y="0">{t('pro.Financial Services')}</tspan>
<tspan x="85" y="25">{t('pro.Government')}</tspan>
</text>
</g>
<g id="Other" className="116" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(710.000000, 218.000000)" : "translate(710.000000, 218.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="16" font-weight="300">
<text>
<tspan x="0.802" y="10">{t('pro.Retired')}</tspan>
</text>
</g>
<g id="50%" class="115" opacity={0} transform="translate(415.000000, 165.000000)" fill="#221D58" font-family="Gotham-Bold, Gotham" font-size="36" font-weight="bold"><text id="49%"><tspan x="0" y="0">52%</tspan></text></g>
<g id="34%" class="118" opacity={0} transform="translate(470, 265)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="34" font-weight="bold"><text><tspan x="0.5856" y="14.800781">41%</tspan></text></g>
<g id="10%" class="116" opacity={0} transform="translate(557.000000, 158.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="22" font-weight="bold"><text><tspan x="0.2997" y="14.800781">4%</tspan></text></g>
<g id="Retired" className="117" opacity={0} transform="translate(695.000000, 160.000000)" fill="#FFFFFF" font-family="Gotham-Bold, Gotham" font-size="16" font-weight="300">
<text>
<tspan x="0" y="9">{t('pro.Other')}</tspan>
</text>
</g>
<g id="6%" class="117" opacity={0} transform="translate(585.000000, 218.000000)" fill="#221D58" font-family="Gotham-Bold, Gotham" font-size="22" font-weight="700"><text><tspan x="0.2495" y="14.800781">3%</tspan></text></g>
<path class="115-line" opacity={0} d="M320,155 L390,155" id="Stroke-210" stroke="#AED5CF" stroke-width="1.5"></path>
<path class="118-line" opacity={0} d="M410,270 L460,270" id="Stroke-210" stroke="#DEEDEB" stroke-width="1.5"></path>
<path class="116-line" opacity={0} d="M680,165 L595,165" id="Stroke-210" stroke="#7FBFBA" stroke-width="1.5"></path>
<path class="117-line" opacity={0} d="M700,225 L625,225" id="Stroke-210" stroke="#AED5CF" stroke-width="1.5"></path>
</g>
</g>
</svg>
</>
)
}
export default memo(ProgressionChart2022);
\ No newline at end of file
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
i18n
// detect user language
// learn more: https://github.com/i18next/i18next-browser-languageDetector
.use(LanguageDetector)
// pass the i18n instance to react-i18next.
.use(initReactI18next)
// init i18next
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
detection: {
order: ['querystring'],
"lookupQuerystring": 'lang',
lookupCookie: '',
lookupLocalStorage: '',
lookupSessionStorage: '',
caches: [],
},
debug: false,
fallbackLng: 'en',
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
resources: {
en: {
translation: {
"one-term-only":"* ONE TERM ONLY",
"pro.valuation.x":"11.991",
"pro.services.x":"16.401",
"pro.professional":"Professional",
"pro.Valuation":"Valuation",
"pro.Services":"Services",
"pro.Financial Services":"Financial Services, Industry",
"pro.Industry":"Industry",
"pro.Government":"and Government",
"pro.Retired":"Retired",
"charts.members":"Members",
"pro.Other":"Other",
}
},
fr: {
translation: {
"pro.valuation.x":"0",
"pro.services.x":"0",
"one-term-only":"*UN TRIMESTRE SEULEMENT",
"pro.professional":"Services",
"pro.Valuation":"professionnels",
"pro.Services":"d’évaluation",
"pro.Financial Services":"Services financiers,",
"pro.Industry":"industrie, et",
"pro.Government":"gouvernement",
"pro.Retired":"À la retraite",
"charts.members":"Membres",
"pro.Other":"Autres",
}
}
}
});
export default i18n;
\ No newline at end of file
import React, { useState } from "react";
import ReactDOM from "react-dom";
import ReactTooltip from "react-tooltip";
import './i18n';
import MapChart from "./MapChart";
import GraphChart from "./GraphChart";
import PiChart from './PiChart';
import CBVBars from './BarChart';
import ProgressionChart from './ProgressionChart';
import ProgressionChart2021 from './ProgressionChart2021';
import ProgressionChart2022 from './ProgressionChart2022';
import CBVBars2021 from './BarChart2021';
function CBVGlobe(props) {
const [content, setContent] = useState("");
const [countries] = useState(props.countries);
return (
<div>
<MapChart setTooltipContent={setContent} countries={countries} />
<ReactTooltip backgroundColor="#715f8a" textColor="white">{content}</ReactTooltip>
</div>
);
}
window.renderGlobe = (el) => {
ReactDOM.render(<CBVGlobe countries={JSON.parse(el.dataset.countries)} />, el);
}
function CBVGraph(props) {
const [data] = useState(props.data);
return (
<div>
<GraphChart data={data} />
</div>
);
}
window.renderGraph = (el) => {
ReactDOM.render(<CBVGraph data={JSON.parse(el.dataset.points)} />, el);
}
function CBVPI(props) {
const [data] = useState(props.data);
const [color] = useState(props.color);
return (
<PiChart data={data} color={color} />
);
}
window.renderPI = (el) => {
ReactDOM.render(<CBVPI color={el.dataset.color} data={JSON.parse(el.dataset.points)} />, el);
}
function CBVBarChart2021(props) {
const [data] = useState(props.data);
return (
<CBVBars2021 data={data} />
);
}
window.renderBarChart2021 = (el) => {
ReactDOM.render(<CBVBarChart2021 data={JSON.parse(el.dataset.points)} />, el);
}
function CBVBarChart(props) {
const [data] = useState(props.data);
return (
<CBVBars data={data} />
);
}
window.renderBarChart = (el) => {
ReactDOM.render(<CBVBarChart data={JSON.parse(el.dataset.points)} />, el);
}
function CBVProgression(props) {
return (
<ProgressionChart />
);
}
window.renderProgression = (el) => {
ReactDOM.render(<CBVProgression />, el);
}
function CBVProgression2021(props) {
return (
<ProgressionChart2021 />
);
}
window.renderProgression2021 = (el) => {
ReactDOM.render(<CBVProgression2021 />, el);
}
function CBVProgression2022(props) {
return (
<ProgressionChart2022 />
);
}
window.renderProgression2022 = (el) => {
ReactDOM.render(<CBVProgression2022 />, el);
}
\ No newline at end of file
......@@ -19,13 +19,6 @@ if( function_exists('acf_add_options_page') ) {
acf_register_block_type( array(
'title' => __( 'MSF PI Chart', 'client_textdomain' ),
'name' => 'msf-pi',
'render_template' => 'blocks/msf-PI/msf-PI.php',
'mode' => 'edit'
));
acf_register_block_type( array(
'title' => __( 'Promo Area', 'client_textdomain' ),
'name' => 'msf-promo-area',
'render_template' => 'blocks/promo-area/promo-area.php',
......@@ -38,46 +31,20 @@ if( function_exists('acf_add_options_page') ) {
'mode' => 'edit'
));
acf_register_block(array(
'name' => 'call-out-block',
'title' => __('Call Out Block'),
'description' => __('A custom block for Call Out Block items.'),
'render_template' => 'blocks/call-out-block/call-out-block.php',
'category' => 'layout',
'icon' => 'excerpt-view',
'mode' => 'edit',
'supports' => [
'align' => false,
'anchor' => true,
'customClassName' => true
]
));
acf_register_block_type( array(
'title' => __( 'Carousel', 'client_textdomain' ),
'name' => 'carousel',
'render_template' => 'blocks/carousel/carousel.php',
'mode' => 'edit',
'supports' => [
'align' => false,
'anchor' => true,
'customClassName' => true
]
));
acf_register_block_type( array(
'title' => __( 'Mixed Carousel', 'client_textdomain' ),
'name' => 'carouse-mixed',
'render_template' => 'blocks/carousel-mixed/carousel.php',
'mode' => 'edit',
'supports' => [
'align' => false,
'anchor' => true,
'customClassName' => true
]
));
acf_register_block_type( array(
......@@ -85,11 +52,6 @@ if( function_exists('acf_add_options_page') ) {
'name' => 'relevant-resources',
'render_template' => 'blocks/relevant-resources/relevant-resources.php',
'mode' => 'edit',
'supports' => [
'align' => false,
'anchor' => true,
'customClassName' => true
]
));
acf_register_block_type( array(
......@@ -97,11 +59,6 @@ if( function_exists('acf_add_options_page') ) {
'name' => 'post-list-load-more',
'render_template' => 'blocks/post-list-load-more/post-list-load-more.php',
'mode' => 'edit',
'supports' => [
'align' => false,
'anchor' => true,
'customClassName' => true
]
));
}
\ No newline at end of file
......