/*! For license information please see main.365c8e763c5c0fd1c092.js.LICENSE.txt */
(globalThis.webpackChunk_rio_rio_ui=globalThis.webpackChunk_rio_rio_ui||[]).push([[792],{25584(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o=p(t(22155)),s=p(t(75235)),d=p(t(45177)),c=p(t(77443)),u=["id","name","text","color","textColor","open","children","size","solid","inline","onToggle"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},m.apply(null,arguments)}function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=s.default.div(a||(a=f(["\n  ",";\n\n  transition-property: background-color, border-top, border-bottom;\n  transition-duration: 0.2s;\n  transition-timing-function: ease-out;\n"])),function(e){var n=e.inline,t=e.theme,a=e.color,i=e.size,l=e.solid;return"\n    background-color:".concat(l?t.colors[a].normal.background:t.colors[a].light.background,";\n    display:").concat(n?"inline-flex":"flex",";\n    padding:").concat(t.geometry[i].spacing,";\n    border-top:3px solid ").concat(t.colors[a].normal.background,";\n    border-bottom:3px solid ").concat(t.colors[a].normal.background,";\n    align-items: center;\n  ")}),g=s.default.div(i||(i=f(["\n  ",";\n"])),function(e){var n=e.inline;return e.theme,e.color,"\n  \n    display:".concat(n?"inline":"block","\n\n  ")}),h=(0,s.default)(c.default)(l||(l=f(["\n  ",";\n  transition: transform 0.2s ease-out;\n"])),function(e){var n=e.open,t=e.inline,a=e.theme;return"\n  \n    margin-left:".concat(t?a.geometry.sm.spacing:"auto",";\n    transform: rotate(").concat(n?"90deg":"0",");\n  ")}),x=s.default.div(r||(r=f(["\n  ",";\n"])),function(e){var n=e.inline;return"\n  \n  display:".concat(n?"inline":"block","\n")});n.default=function(e){var n=e.id,t=e.name,a=e.text,i=e.color,l=void 0===i?"primary":i,r=e.textColor,s=void 0===r?"white":r,c=e.open,p=e.children,f=e.size,T=e.solid,b=e.inline,v=e.onToggle,C=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,u);return o.default.createElement(g,m({inline:b,id:n,name:t},C),o.default.createElement(y,{solid:T,onClick:v,id:"".concat(n,"-Accordion-Header"),name:"".concat(t,"-Accordion-Header"),size:f,inline:b,color:l},o.default.createElement(d.default,{id:"".concat(n,"-Accordion-Header-Text"),size:"lg",color:s},a),o.default.createElement(h,{inline:b,icon:"angle-right",size:"lg",open:c})),c&&o.default.createElement(x,{inline:b,id:"".concat(n,"-Accordion-ChildContainer")},p))}},74453(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d=m(t(22155)),c=m(t(75235)),u=m(t(77443)),p=m(t(45177));function m(e){return e&&e.__esModule?e:{default:e}}function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=c.default.div(a||(a=f(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    height: 48px;\n    background-color: white;\n    border-top: 1px solid ".concat(n.colors.inputs.normal.background,";\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    justify-content: space-between;\n    cursor: pointer;\n    user-select: none;\n\n    &.active {\n      background-color: ").concat(n.colors.primary.normal.background,";\n    }\n  ")}),g=(0,c.default)(p.default)(i||(i=f(["\n  ",";\n"])),function(){return"\n    font-size: calc(10px + 0.6vmin);\n  "}),h=c.default.div(l||(l=f(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    padding-left: ".concat(n.geometry.md.spacing,";\n    p {\n      color: black;\n    }\n\n    &.active p {\n      color: white;\n    }\n  ")}),x=c.default.div(r||(r=f(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    right: ".concat(n.geometry.md.spacing,";\n    color: black;\n    padding-right: 20px;\n    \n    &.active {\n      color: white;\n    }\n  ")}),T=c.default.div(o||(o=f(["\n  display: none;\n  background-color: white;\n  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);\n  z-index: 1;\n  padding: 5px 0;\n  cursor: pointer;\n\n  &.active {\n    display: block;\n  }\n"]))),b=c.default.div(s||(s=f([""])));n.default=function(e){var n=e.dropdown,t=void 0!==n&&n,a=e.children,i=e.click,l=e.text,r=e.activefunc,o=e.className,s=void 0===o?"active":o,c=t&&"active"===s?"chevron-down":"chevron-right";return d.default.createElement("div",null,d.default.createElement(y,{className:s,onClick:function(){return function(e,n){"function"==typeof e&&e(),"function"==typeof n&&n()}(i,r)}},d.default.createElement(h,{className:s},d.default.createElement(g,{weight:"active"===s?"bold":"normal"},l)),d.default.createElement(x,{className:s},d.default.createElement(u.default,{icon:c}))),t&&d.default.createElement(T,{className:s},d.default.Children.map(a,function(e,n){return d.default.createElement(b,{key:n},e)})))}},86402(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l=s(t(22155)),r=s(t(75235)),o=s(t(45177));function s(e){return e&&e.__esModule?e:{default:e}}function d(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var c=r.default.div(a||(a=d(["\n  ",";\n"])),function(e){var n=e.theme;return" \n    height: 36px;\n    display: flex;\n    align-items: center;\n\n    &:hover {\n      background-color: ".concat(n.colors.inputs.normal.background,";\n    }\n\n    &.active {\n      background-color: ").concat(n.colors.inputs.normal.background,";\n    }\n  ")}),u=(0,r.default)(o.default)(i||(i=d(["\n  ",";\n"])),function(e){var n=e.theme;return"  \n    padding-left: ".concat(n.geometry.md.spacing,";\n  ")});n.default=function(e){var n=e.text,t=e.click,a=e.className;return l.default.createElement(c,{onClick:t,className:a},l.default.createElement(u,null,n))}},1587(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s=y(t(22155)),d=y(t(75235)),c=f(t(25231)),u=f(t(77443)),p=f(t(45177)),m=["id","name","size","icon","text","inline","children"];function f(e){return e&&e.__esModule?e:{default:e}}function y(e,n){if("function"==typeof WeakMap)var t=new WeakMap,a=new WeakMap;return(y=function(e,n){if(!n&&e&&e.__esModule)return e;var i,l,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=n?a:t){if(i.has(e))return i.get(e);i.set(e,r)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((l=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(l.get||l.set)?i(r,o,l):r[o]=e[o]);return r})(e,n)}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},g.apply(null,arguments)}function h(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,x(a.key),a)}}function x(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function T(e,n,t){return n=v(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(n,t||[],v(e).constructor):n.apply(e,t))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function C(e,n){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},C(e,n)}function k(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var S=d.default.div(a||(a=k(["\n  ",";\n"])),function(e){var n=e.inline,t=e.theme,a=e.disabled;return"\n    font-family: ".concat(t.accordionFonts.family,";\n    font-weight: ").concat(t.accordionFonts.weight.default,";\n    display: ").concat(n?"inline-flex":"flex",";\n    flex-direction: column;\n    overflow: hidden;\n    opacity: ").concat(a?"0.5":"1",";\n    border-radius: 2px;\n  ")}),N=d.default.div(i||(i=k(["\n  ",";\n"])),function(e){var n=e.size,t=e.theme;return e.disabled,"\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    background-color: white;\n    padding-left: ".concat(t[n].padding,";\n    height: 70px; \n  ")}),A=d.default.div(l||(l=k([""]))),R=(0,d.default)(u.default)(r||(r=k(["\n  ",";\n"])),function(e){var n=e.sizes,t=e.theme;return e.disabled,"\n    opacity: 0.5;\n    color: ".concat(t.colors.text.dark.background,";\n    font-size: ").concat(t[n].font.size.icon,";\n    padding: ").concat(t[n].iconPadding,";\n  ")}),D=(0,d.default)(p.default)(o||(o=k(["\n  ",";\n"])),function(e){e.size;var n=e.theme;return e.disabled,"\n    // opacity: 0.5;\n    color: ".concat(n.colors.text.dark.background,";\n    font-size: 16px;\n    font-weight: bold;\n    cursor: default;\n    padding-left: 8px;\n  ")}),L=function(e){function n(e){var t;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(t=T(this,n,[e])).handleClick=function(e){t.state.activeItem===e?t.setState({activeItem:null}):t.setState({activeItem:e})},t.props=e,t.state={activeItem:null},t}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&C(e,n)}(n,e),t=n,a=[{key:"render",value:function(){var e=this,n=this.props,t=n.id,a=n.name,i=n.size,l=void 0===i?"md":i,r=n.icon,o=n.text,u=n.inline,p=n.children,f=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(n,m);return s.default.createElement(d.ThemeProvider,{theme:c.default},s.default.createElement(S,g({},f,{inline:u,size:l,id:"".concat(t,"-Container"),name:"".concat(a,"-Container")}),s.default.createElement(N,{size:l},s.default.createElement(R,{icon:r,sizes:l,id:"".concat(t,"-IconStyled"),name:"".concat(a,"-IconStyled")}),s.default.createElement(D,{size:l,id:"".concat(t,"-TextStyled"),name:a},o)),s.default.createElement(A,null,s.default.Children.map(p,function(n,t){return n?s.default.cloneElement(n,{key:t,activefunc:function(){e.handleClick(t)},active:e.state.activeItem===t}):null}))))}}],a&&h(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(s.Component);n.default=L},25231(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){var n=e.fonts,t=e.geometry,i=e.colors;return{colors:i,fonts:n,geometry:t,accordionFonts:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},sm:{font:{size:{icon:n.md.size,text:n.xs.size}},padding:t.sm.spacing,iconPadding:(0,a.divide)(t.sm.spacing,12)},md:{font:{size:{icon:n.lg.size,text:n.sm.size}},padding:t.md.spacing,iconPadding:(0,a.divide)(t.md.spacing,12)},lg:{font:{size:{icon:n.xl.size,text:n.md.size}},padding:t.lg.spacing,iconPadding:(0,a.divide)(t.lg.spacing,12)},accordionColors:{primary:i.primary,secondary:i.secondary,tertiary:i.tertiary,info:i.info,success:i.success,warning:i.warning,danger:i.danger}}}},50595(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o=x(t(22155)),s=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),d=x(t(57439)),c=x(t(5486)),u=x(t(59987)),p=x(t(48144)),m=x(t(77443)),f=x(t(68801)),y=x(t(45177)),g=x(t(6308)),h=["id","name","onTemporaryChange","children","temporary","allowsTemporary","temporaryTooltipHeading","temporaryTooltipText"];function x(e){return e&&e.__esModule?e:{default:e}}function T(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,b(a.key),a)}}function b(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function v(e,n,t){return n=k(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(n,t||[],k(e).constructor):n.apply(e,t))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function S(e,n){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},S(e,n)}function N(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var A=s.default.div(a||(a=N(["\n  display: flex;\n  justify-content: space-between;\n  padding: ",";\n  background-color: ",";\n"])),function(e){return e.theme.geometry.sm.spacing},function(e){return e.theme.colors.overlay.light.background}),R=s.default.div(i||(i=N(["\n  position: relative;\n  text-align: right;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n"]))),D=(0,s.default)(c.default)(l||(l=N(["\n  margin-left: ",";\n  border-radius: 100px;\n"])),function(e){return e.theme.geometry.xs.spacing}),L=(0,s.default)(u.default)(r||(r=N(["\n  margin-right: ",";\n"])),function(e){return e.theme.geometry.xs.spacing}),I=function(e){function n(e){var t;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(t=v(this,n,[e])).tempAnswerToolTipClickHandler=function(e){t.setState(function(e){return{showTooltip:!e.showTooltip}})},t.state={showTooltip:!1},t}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&S(e,n)}(n,e),t=n,a=[{key:"render",value:function(){var e=this.props,n=e.id,t=e.name,a=e.onTemporaryChange,i=e.children,l=e.temporary,r=e.allowsTemporary,c=e.temporaryTooltipHeading,u=e.temporaryTooltipText,x=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,h);return o.default.createElement(s.ThemeProvider,{theme:d.default},o.default.createElement(A,x,r?o.default.createElement(R,null,o.default.createElement(L,{id:"".concat(n,"_TempAnswer"),name:"".concat(t,"-TempAnswer"),inline:!0,onChange:a,checked:l}),o.default.createElement(p.default,{id:"".concat(n,"_checkBoxLabel"),color:"primary",inline:!0,labelFor:"".concat(n,"_TempAnswer")},"This is a temporary answer"),o.default.createElement(D,{color:"primary",id:"".concat(n,"_TempButton"),onClick:this.tempAnswerToolTipClickHandler,size:"xs",inline:!0,pill:!0},o.default.createElement(m.default,{icon:"question",size:"sm"})),o.default.createElement(f.default,{show:this.state.showTooltip,id:"".concat(n,"_toolTip"),color:"white"},o.default.createElement(g.default,{size:"sm",color:"primary"},c),o.default.createElement("br",null),o.default.createElement(y.default,{size:"sm"},u))):o.default.createElement("div",null),o.default.createElement("div",null,i)))}}],a&&T(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(o.default.Component);n.default=I},57439(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){return{colors:e.colors,fonts:e.fonts,geometry:e.geometry}}},45496(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Autocomplete",{enumerable:!0,get:function(){return i.default}});var a,i=(a=t(19049))&&a.__esModule?a:{default:a}},34057(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AutocompleteField=void 0;var a=l(t(75235)),i=l(t(48368));function l(e){return e&&e.__esModule?e:{default:e}}n.AutocompleteField=(0,a.default)(i.default)(function(e){var n=e.theme;return{"& label.Mui-focused":{borderColor:n.colors.primary.normal.background},"& .MuiOutlinedInput-root":{"&:hover fieldset":{borderColor:n.colors.primary.normal.background},"&.Mui-focused fieldset":{borderColor:n.colors.primary.normal.background}},"& .Mui-error":{borderColor:n.colors.danger.background},"& .MuiChip-root":{backgroundColor:n.colors.primary.normal.background,color:n.colors.primary.normal.text},"&& .MuiChip-deleteIcon":{color:"#f2f2f2"},"&& .MuiChip-deleteIcon:hover":{color:n.colors.primary.normal.text},"&& .MuiInputLabel-root.Mui-focused":{color:n.colors.primary.normal.background}}})},26638(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Autocomplete",{enumerable:!0,get:function(){return a.Autocomplete}}),Object.defineProperty(n,"AutocompleteField",{enumerable:!0,get:function(){return i.AutocompleteField}});var a=t(45496),i=t(34057)},40515(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=s(t(22155)),l=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),r=s(t(82271)),o=["children"];function s(e){return e&&e.__esModule?e:{default:e}}var d,c,u=["none","xxs","xxsHalf","xs","xsHalf","sm","smHalf","md","mdHalf","lg","lgHalf","xl","xlHalf","xxl","xxlHalf"],p=["text","text-light","text-normal","text-dark","overlay","overlay-light","overlay-normal","overlay-dark","inputs","inputs-light","inputs-normal","inputs-dark","primary","primary-light","primary-normal","primary-dark","secondary","secondary-light","secondary-normal","secondary-dark","tertiary","tertiary-light","tertiary-normal","tertiary-dark","quaternary","quaternary-light","quaternary-normal","quaternary-dark","neutral","neutral-light","neutral-normal","neutral-dark","info","info-light","info-normal","info-dark","success","success-light","success-normal","success-dark","warning","warning-light","warning-normal","warning-dark","danger","danger-light","danger-normal","danger-dark"],m=l.default.div(a||(d=["\n  ",";\n"],c||(c=d.slice(0)),a=Object.freeze(Object.defineProperties(d,{raw:{value:Object.freeze(c)}}))),function(e){var n=e.theme,t=e.display,a=void 0===t?"block":t,i=e.visuallyHidden,l=(e.shape,e.backgroundColor),r=e.borderColor,o=e.borderSize,s=e.textAlign,d=e.position,c=e.top,m=e.right,f=e.bottom,y=e.left,g=e.grow,h=e.shrink,x=e.flexBasis,T=e.alignSelf,b=e.order,v=e.flexDirection,C=e.flexWrap,k=e.justifyContent,S=e.alignItems,N=e.alignContent,A=e.margin,R=e.marginTop,D=e.marginRight,L=e.marginBottom,I=e.marginLeft,j=e.padding,w=e.paddingTop,O=e.paddingRight,E=e.paddingBottom,_=e.paddingLeft,F=e.overflow,P=e.overflowX,B=e.overflowY,U=e.minHeight,$=e.maxHeight,M=e.height,V=e.minWidth,G=e.maxWidth,z=e.width,W=e.span,q=e.hidden,J=e.fullHeight;return e.sm,e.md,e.lg,"\n    box-sizing: border-box;\n\n    display: ".concat(q?"none":a,";\n    visibility: ").concat(i?"hidden":"initial",";\n    ").concat(l&&"background-color: ".concat(p.includes(l)?n.boxColors[l.split("-",1)[0]][l.split("-")[1]||"normal"].background:l,";"),"\n    ").concat(r&&"border-color: ".concat(p.includes(r)?n.boxColors[r.split("-",1)[0]][r.split("-")[1]||"normal"].background:r,";"),"\n    ").concat(o&&"border-width: ".concat(n.spacing[o].border,";"),"\n    ").concat(o&&r&&"border-style: solid;","\n    ").concat(s&&"text-align: ".concat(s,";"),"\n\n    ").concat(d&&"position: ".concat(d,";"),"\n    ").concat(c&&"top: 0;","\n    ").concat(m&&"right: 0;","\n    ").concat(f&&"bottom: 0;","\n    ").concat(y&&"left: 0;","\n\n    ").concat(g&&"flex-grow: ".concat(g,";"),"\n    ").concat(h&&"flex-shrink: ".concat(h,";"),"\n    ").concat(x&&"flex-basis: ".concat(x,";")||(!!W||0===W||"0"===W)&&"flex-basis: ".concat(W?n.sizes[W]:"0",";"),"\n\n    ").concat(T&&"align-self: ".concat(T,";"),"\n    ").concat(b&&"order: ".concat(b,";"),"\n\n    ").concat(v&&"flex-direction: ".concat(v,";"),"\n    ").concat(C&&"flex-wrap: wrap;","\n    ").concat(k&&"justify-content: ".concat(k,";"),"\n    ").concat(S&&"align-items: ".concat(S,";"),"\n    ").concat(N&&"align-content: ".concat(N,";"),"\n\n    ").concat(A&&"margin: ".concat(u.includes(A)&&n.spacing[A].spacing||A,";"),"\n    ").concat(R&&"margin-top: ".concat(("none"===R?"0":u.includes(R)&&n.spacing[R].spacing)||R,";"),"\n    ").concat(D&&"margin-right: ".concat(("none"===D?"0":u.includes(D)&&n.spacing[D].spacing)||D,";"),"\n    ").concat(L&&"margin-bottom: ".concat(("none"===L?"0":u.includes(L)&&n.spacing[L].spacing)||L,";"),"\n    ").concat(I&&"margin-left: ".concat(("none"===I?"0":u.includes(I)&&n.spacing[I].spacing)||I,";"),"\n\n    ").concat(j&&"padding: ".concat(u.includes(j)&&n.spacing[j].spacing||j,";"),"\n    ").concat(w&&"padding-top: ".concat(("none"===w?"0":u.includes(w)&&n.spacing[w].spacing)||w,";"),"\n    ").concat(O&&"padding-right: ".concat(("none"===O?"0":u.includes(O)&&n.spacing[O].spacing)||O,";"),"\n    ").concat(E&&"padding-bottom: ".concat(("none"===E?"0":u.includes(E)&&n.spacing[E].spacing)||E,";"),"\n    ").concat(_&&"padding-left: ".concat(("none"===_?"0":u.includes(_)&&n.spacing[_].spacing)||_,";"),"\n\n    ").concat(F&&"overflow: ".concat(F,";"),"\n    ").concat(P&&"overflow-x: ".concat(P,";"),"\n    ").concat(B&&"overflow-y: ".concat(B,";"),"\n\n    ").concat($&&"max-height: ".concat($,";"),"\n    ").concat(U&&"min-height: ".concat(U,";"),"\n    ").concat(J?"height: 100%;":M&&"height: ".concat(M,";"),"\n\n    ").concat(G&&"max-width: ".concat(G,";")||(!!W||0===W||"0"===W)&&"max-width: ".concat(W?n.sizes[W]:"100%",";"),"\n    ").concat(V&&"min-width: ".concat(V,";"),"\n    ").concat(z&&"width: ".concat(z,";"),"\n  ")});n.default=function(e){var n=e.children,t=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,o);return i.default.createElement(l.ThemeProvider,{theme:r.default},i.default.createElement(m,t,n))}},82271(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach(function(n){r(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function r(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}n.default=function(e){var n=e.fonts,t=e.geometry,i=e.colors;return l(l({colors:i,fonts:n,geometry:t},t.columns),{},{spacing:{xxs:{spacing:t.xxs.spacing,border:t.xxs.border},xxsHalf:{spacing:(0,a.divide)(t.xxs.spacing,2),border:t.xxs.border},xs:{spacing:t.xs.spacing,border:t.xs.border},xsHalf:{spacing:(0,a.divide)(t.xs.spacing,2),border:t.xs.border},sm:{spacing:t.sm.spacing,border:t.sm.border},smHalf:{spacing:(0,a.divide)(t.sm.spacing,2),border:t.sm.border},md:{spacing:t.md.spacing,border:t.md.border},mdHalf:{spacing:(0,a.divide)(t.md.spacing,2),border:t.md.border},lg:{spacing:t.lg.spacing,border:t.lg.border},lgHalf:{spacing:(0,a.divide)(t.lg.spacing,2),border:t.lg.border},xl:{spacing:t.xl.spacing,border:t.xl.border},xlHalf:{spacing:(0,a.divide)(t.xl.spacing,2),border:t.xl.border},xxl:{spacing:t.xxl.spacing,border:t.xxl.border},xxlHalf:{spacing:(0,a.divide)(t.xxl.spacing,2),border:t.xxl.border}},boxColors:l({},i)})}},99257(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t(22155)),i=o(t(93107)),l=o(t(45177)),r=o(t(69509));function o(e){return e&&e.__esModule?e:{default:e}}n.default=function(e){var n=e.location.pathname.split("/").slice(1),t=n.length-1;return n.map(function(e,o){return o!==t?a.default.createElement(r.default,{component:"routerLink",to:"/".concat(n.slice(0,o+1).join("/")),color:"normal",size:"sm",inline:!0},(0,i.default)(e)):a.default.createElement(l.default,{size:"sm",inline:!0},(0,i.default)(e))})}},31100(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t(22155)),i=r(t(45177)),l=["children"];function r(e){return e&&e.__esModule?e:{default:e}}n.default=function(e){var n=e.children,t=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,l),r=a.default.Children.count(n)-1;return a.default.createElement("div",t,a.default.Children.map(n,function(e,n){return n===r?a.default.createElement("span",null,e):a.default.createElement("span",null,e," ",a.default.createElement(i.default,{inline:!0},"/ "))}))}},5486(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=p(t(22155)),l=p(t(75235)),r=u(t(1992)),o=t(97322),s=u(t(71336)),d=["component","size","color","backgroundImage","gradient","pill","outline","inline","submit"],c=["children","component","disabled","loading"];function u(e){return e&&e.__esModule?e:{default:e}}function p(e,n){if("function"==typeof WeakMap)var t=new WeakMap,a=new WeakMap;return(p=function(e,n){if(!n&&e&&e.__esModule)return e;var i,l,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=n?a:t){if(i.has(e))return i.get(e);i.set(e,r)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((l=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(l.get||l.set)?i(r,o,l):r[o]=e[o]);return r})(e,n)}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},m.apply(null,arguments)}function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach(function(n){g(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function g(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function h(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var x,T,b=(0,l.default)(function(e){var n=e.component,t=(e.size,e.color,e.backgroundImage,e.gradient,e.pill,e.outline,e.inline,e.submit,h(e,d));return i.default.cloneElement(i.default.createElement(n,y({},t)),y({},t))})(a||(x=["\n  ",";\n"],T||(T=x.slice(0)),a=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(T)}}))),function(e){var n=e.theme,t=e.size,a=void 0===t?"md":t,i=e.color,l=void 0===i?"primary":i,r=e.pill,o=void 0===r||r,s=e.outline,d=e.inline,c=e.disabled;return"\n    box-sizing: border-box;\n    text-align: center;\n    text-decoration: none;\n    font-family: ".concat(n.font.family,";\n    font-weight: ").concat(n.font.weight,";\n    opacity: ").concat(c?"0.5":"1",";\n    cursor: ").concat(c?"default":"pointer",";\n    width: ").concat(d?"auto":"100%",";\n    display: ").concat(d?"inline-block":"block",";\n    border-style: ").concat(n[a].border.style,";\n    border-width: ").concat(n[a].border.width,";\n    padding: ").concat(n[a].padding,";\n    font-size: ").concat(n[a].font.size,";\n    line-height: ").concat(n[a].font.lineHeight,";\n    border-radius: ").concat(o&&n[a].pill.radius||n[a].radius,";\n    background-color: ").concat(s&&n[l].outline.background||n[l].background,";\n    border-color: ").concat(s&&n[l].outline.border||n[l].border,";\n    color: ").concat(s&&n[l].outline.text||n[l].text,";\n\n    ").concat(!c&&"\n      &:hover {\n        background-color: ".concat(s&&n[l].outline.hover.background||n[l].hover.background,";\n        border-color: ").concat(s&&n[l].outline.hover.border||n[l].hover.border,";\n        color: ").concat(s&&n[l].outline.hover.text||n[l].hover.text,";\n      }\n\n      &:active,\n      .active {\n        background-color: ").concat(s&&n[l].outline.active.background||n[l].active.background,";\n        border-color: ").concat(s&&n[l].outline.active.border||n[l].active.border,";\n        color: ").concat(s&&n[l].outline.active.text||n[l].active.text,";\n      }\n    "),"\n  ")}),v=function(e){var n=e.children;return e.isLoading?i.default.createElement(s.default,{spinner:"SyncLoader",hexColor:"#FFF",size:"xxxs"}):n||null};n.default=(0,i.forwardRef)(function(e,n){var t=e.children,a=e.component,s=void 0===a?"button":a,d=e.disabled,u=e.loading,p=h(e,c);return i.default.createElement(l.ThemeProvider,{theme:r.default},i.default.createElement(b,m({disabled:d||u,component:("button"===s?"button":"a"===s&&"a")||"routerLink"===s&&o.Link||"routerNavLink"===s&&o.NavLink,ref:n},p),i.default.createElement(v,{children:t,isLoading:u})))})},1992(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){var n=e.fonts,t=e.geometry,i=e.colors;return{colors:i,fonts:n,geometry:t,font:{family:n.family,weight:n.weight.default},xs:{border:{width:t.xs.border,style:"solid"},padding:"".concat(t.xxs.spacing," ").concat(t.xs.spacing),radius:t.sm.radius,pill:{radius:(0,a.add)((0,a.divide)(n.xs.lineHeight,2),t.xxs.spacing)},font:{size:n.xs.size,lineHeight:n.xs.lineHeight}},sm:{border:{width:t.sm.border,style:"solid"},padding:"".concat(t.xs.spacing," ").concat(t.sm.spacing),radius:t.md.radius,pill:{radius:(0,a.add)((0,a.divide)(n.sm.lineHeight,2),t.xs.spacing)},font:{size:n.sm.size,lineHeight:n.sm.lineHeight}},md:{border:{width:t.sm.border,style:"solid"},padding:"".concat(t.sm.spacing," ").concat(t.md.spacing),radius:t.md.radius,pill:{radius:(0,a.add)((0,a.divide)(n.md.lineHeight,2),t.sm.spacing)},font:{size:n.md.size,lineHeight:n.md.lineHeight}},lg:{border:{width:t.sm.border,style:"solid"},padding:"".concat(t.md.spacing," ").concat(t.lg.spacing),radius:t.md.radius,pill:{radius:(0,a.add)((0,a.divide)(n.lg.lineHeight,2),t.md.spacing)},font:{size:n.lg.size,lineHeight:n.lg.lineHeight}},xl:{border:{width:t.sm.border,style:"solid"},padding:"".concat(t.lg.spacing," ").concat(t.xl.spacing),radius:t.md.radius,pill:{radius:(0,a.add)((0,a.divide)(n.xl.lineHeight,2),t.lg.spacing)},font:{size:n.xl.size,lineHeight:n.xl.lineHeight}},primary:{background:i.primary.normal.background,border:i.primary.normal.background,text:i.primary.normal.text,hover:{background:i.primary.dark.background,border:i.primary.dark.background,text:i.primary.dark.text},active:{background:i.primary.dark.background,border:i.primary.dark.background,text:i.primary.dark.text},outline:{background:"none",border:i.primary.normal.background,text:i.primary.normal.background,hover:{background:i.primary.normal.background,border:i.primary.normal.background,text:i.primary.normal.text},active:{background:i.primary.normal.background,border:i.primary.normal.background,text:i.primary.normal.text}}},secondary:{background:i.secondary.normal.background,border:i.secondary.normal.background,text:i.secondary.normal.text,hover:{background:i.secondary.dark.background,border:i.secondary.dark.background,text:i.secondary.dark.text},active:{background:i.secondary.dark.background,border:i.secondary.dark.background,text:i.secondary.dark.text},outline:{background:"none",border:i.secondary.normal.background,text:i.secondary.normal.background,hover:{background:i.secondary.normal.background,border:i.secondary.normal.background,text:i.secondary.normal.text},active:{background:i.secondary.normal.background,border:i.secondary.normal.background,text:i.secondary.normal.text}}},tertiary:{background:i.tertiary.normal.background,border:i.tertiary.normal.background,text:i.tertiary.normal.text,hover:{background:i.tertiary.dark.background,border:i.tertiary.dark.background,text:i.tertiary.dark.text},active:{background:i.tertiary.dark.background,border:i.tertiary.dark.background,text:i.tertiary.dark.text},outline:{background:"none",border:i.tertiary.normal.background,text:i.tertiary.normal.background,hover:{background:i.tertiary.normal.background,border:i.tertiary.normal.background,text:i.tertiary.normal.text},active:{background:i.tertiary.normal.background,border:i.tertiary.normal.background,text:i.tertiary.normal.text}}},neutral:{background:i.neutral.normal.background,border:i.neutral.normal.background,text:i.neutral.normal.text,hover:{background:i.neutral.dark.background,border:i.neutral.dark.background,text:i.neutral.dark.text},active:{background:i.neutral.dark.background,border:i.neutral.dark.background,text:i.neutral.dark.text},outline:{background:"none",border:i.neutral.normal.background,text:i.neutral.normal.background,hover:{background:i.neutral.normal.background,border:i.neutral.normal.background,text:i.neutral.normal.text},active:{background:i.neutral.normal.background,border:i.neutral.normal.background,text:i.neutral.normal.text}}},info:{background:i.info.normal.background,border:i.info.normal.background,text:i.info.normal.text,hover:{background:i.info.dark.background,border:i.info.dark.background,text:i.info.dark.text},active:{background:i.info.dark.background,border:i.info.dark.background,text:i.info.dark.text},outline:{background:"none",border:i.info.normal.background,text:i.info.normal.background,hover:{background:i.info.normal.background,border:i.info.normal.background,text:i.info.normal.text},active:{background:i.info.normal.background,border:i.info.normal.background,text:i.info.normal.text}}},success:{background:i.success.normal.background,border:i.success.normal.background,text:i.success.normal.text,hover:{background:i.success.dark.background,border:i.success.dark.background,text:i.success.dark.text},active:{background:i.success.dark.background,border:i.success.dark.background,text:i.success.dark.text},outline:{background:"none",border:i.success.normal.background,text:i.success.normal.background,hover:{background:i.success.normal.background,border:i.success.normal.background,text:i.success.normal.text},active:{background:i.success.normal.background,border:i.success.normal.background,text:i.success.normal.text}}},warning:{background:i.warning.normal.background,border:i.warning.normal.background,text:i.warning.normal.text,hover:{background:i.warning.dark.background,border:i.warning.dark.background,text:i.warning.dark.text},active:{background:i.warning.dark.background,border:i.warning.dark.background,text:i.warning.dark.text},outline:{background:"none",border:i.warning.normal.background,text:i.warning.normal.background,hover:{background:i.warning.normal.background,border:i.warning.normal.background,text:i.warning.normal.text},active:{background:i.warning.normal.background,border:i.warning.normal.background,text:i.warning.normal.text}}},danger:{background:i.danger.normal.background,border:i.danger.normal.background,text:i.danger.normal.text,hover:{background:i.danger.dark.background,border:i.danger.dark.background,text:i.danger.dark.text},active:{background:i.danger.dark.background,border:i.danger.dark.background,text:i.danger.dark.text},outline:{background:"none",border:i.danger.normal.background,text:i.danger.normal.background,hover:{background:i.danger.normal.background,border:i.danger.normal.background,text:i.danger.normal.text},active:{background:i.danger.normal.background,border:i.danger.normal.background,text:i.danger.normal.text}}}}}},74852(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=p(t(22155)),i=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),l=p(t(14758)),r=p(t(64190));t(23220),t(23308);var o,s,d,c,u=p(t(77443));function p(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},m.apply(null,arguments)}function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=i.default.div(o||(o=f(["\n  ",";\n"])),function(e){var n=e.width;return"\n    width: ".concat(n,";\n    padding: 0 25px;\n  ")}),g=i.default.div(s||(s=f(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    display: block !important;\n    background-color: transparent !important;\n    color: ".concat(n.arrow.colors.default," !important;\n    font-size: 20px !important;\n\n    &:before {\n      content: none !important;\n    }\n\n    &:active {\n      color: ").concat(n.arrow.colors.active," !important;\n    }\n  ")}),h=i.default.div(d||(d=f(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    margin-top: 20px !important;\n\n    & li button:before {\n      color: ".concat(n.dots.colors.default," !important;\n      font-size: 10px !important;\n    }\n\n    & li.slick-active button:before {\n      color: ").concat(n.dots.colors.active," !important;\n    }\n  ")}),x=i.default.div(c||(c=f(["\n  width: 100%;\n  text-align: center;\n  outline: 0;\n"])));function T(e){var n=e.className,t=e.onClick,i=e.icon,l=e.name;return a.default.createElement(g,{name:l,className:n,onClick:t,inline:!0},a.default.createElement(u.default,{icon:i}))}n.default=function(e){var n={dots:!0,infinite:e.infinite||!1,speed:500,slidesToShow:e.show||3,slidesToScroll:e.scroll||2,nextArrow:a.default.createElement(T,{name:"".concat(e.name||"carousel","__next"),icon:"chevron-right"}),prevArrow:a.default.createElement(T,{name:"".concat(e.name||"carousel","__prev"),icon:"chevron-left"}),appendDots:function(e){return a.default.createElement(h,null,e)}};return a.default.createElement(i.ThemeProvider,{theme:l.default},a.default.createElement(y,{width:e.width||"100%"},a.default.createElement(r.default,m({},n,e),a.default.Children.map(e.children,function(e){return a.default.createElement(x,null,e)}))))}},14758(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,arrow:{colors:{default:a.inputs.dark.background,active:a.inputs.normal.background}},dots:{colors:{default:"#00C8B5",active:"#00C8B5"}}}}},93117(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=d(t(22155)),l=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),r=d(t(17865)),o=d(t(77443)),s=["theme","color","icon"];function d(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(null,arguments)}var u,p,m=l.default.div(a||(u=["\n  font-size: ",";\n  display: inline-block;\n"],p||(p=u.slice(0)),a=Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(p)}}))),function(e){var n=e.theme,t=e.size;return n[void 0===t?"sm":t].size});n.default=(0,l.withTheme)(function(e){var n=e.theme,t=e.color,a=void 0===t?"primary":t,d=e.icon,u=void 0===d?"thumbs-up":d,p=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,s),f=(0,r.default)(n);return i.default.createElement(l.ThemeProvider,{theme:r.default},i.default.createElement(m,c({},p,{className:"fa-layers fa-fw"}),i.default.createElement(o.default,{icon:"certificate",color:f.certificateColors[a].normal.background}),i.default.createElement(o.default,{icon:u,inverse:!0,transform:"shrink-8"})))})},17865(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){var n=e.fonts,t=e.geometry,i=e.colors;return{colors:i,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},xs:{size:(0,a.multiply)(t.xs.spacing,5),font:{size:(0,a.multiply)(n.xs.size,5)}},sm:{size:(0,a.multiply)(t.sm.spacing,5),font:{size:(0,a.multiply)(n.sm.size,5)}},md:{size:(0,a.multiply)(t.md.spacing,5),font:{size:(0,a.multiply)(n.md.size,3)}},lg:{size:(0,a.multiply)(t.lg.spacing,5),font:{size:(0,a.multiply)(n.lg.size,5)}},xl:{size:(0,a.multiply)(t.xl.spacing,5),font:{size:(0,a.multiply)(n.xl.size,5)}},certificateColors:{primary:i.primary,secondary:i.secondary,tertiary:i.tertiary,quaternary:i.quaternary,quinary:i.quinary,senary:i.senary,info:i.info,success:i.success,warning:i.warning,danger:i.danger}}}},59987(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r=c(t(22155)),o=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),s=c(t(3855)),d=["id","name","onChange","checked","size","success","error","disabled","inline","readOnly"];function c(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var m=o.default.div(a||(a=p(["\n  ",";\n"])),function(e){var n=e.inline,t=e.disabled,a=e.success,i=e.error,l=e.theme;return"\n    display: ".concat(n?"inline-block":"block",";\n    position: relative;\n\n    ").concat(!t&&!a&&!i&&"\n    &:hover input ~ span {\n      border-color: ".concat(l.checkboxColors.active.border,";\n    }"),"\n  ")}),f=o.default.input(i||(i=p(["\n  ",";\n"])),function(e){var n=e.error,t=e.theme,a=e.success;return"\n    position: absolute;\n    z-index: 0;\n    opacity: 0;\n\n    &:checked + div {\n      border-color: ".concat(n&&t.checkboxColors.error.border||a&&t.checkboxColors.success.border||t.checkboxColors.checked.border,";\n    }\n\n    &:checked + div:after {\n      display: block;\n    }\n  ")}),y=o.default.div(l||(l=p(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size,a=e.error,i=e.success,l=e.disabled,r=e.checked;return"\n    position: relative;\n    z-index: 0;\n    opacity: 0.99;\n    height: ".concat(n[t].height,";\n    width: ").concat(n[t].width,";\n    background-color: ").concat(r&&n.checkboxColors.checked.background||a&&n.checkboxColors.error.background||i&&n.checkboxColors.success.background||n.checkboxColors.default.background,";\n    border-width: ").concat(n[t].border.width,";\n    border-color: ").concat(r&&n.checkboxColors.checked.border||a&&n.checkboxColors.error.border||i&&n.checkboxColors.success.border||n.checkboxColors.default.border,";\n    border-style: solid;\n    border-radius: ").concat(n[t].border.radius,";\n    opacity: ").concat(l?"0.5":"1",";\n    cursor: ").concat(l?"default":"pointer",";\n\n    &:after {\n      content: '';\n      background-image: url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 512 512'%3E%3Cpath fill='").concat(r&&n.checkboxColors.checked.check||a&&n.checkboxColors.error.border||i&&n.checkboxColors.success.border||n.checkboxColors.checked.border,"' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E\");\n      height: ").concat(n[t].check.size,";\n      width: ").concat(n[t].check.size,";\n      margin-top: 11%;\n      margin-left: 11%;\n      display: none;\n    }\n  ")});n.default=function(e){var n=e.id,t=e.name,a=e.onChange,i=e.checked,l=e.size,c=void 0===l?"sm":l,p=e.success,g=e.error,h=e.disabled,x=e.inline,T=e.readOnly,b=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,d);return r.default.createElement(o.ThemeProvider,{theme:s.default},r.default.createElement(m,u({inline:x,disabled:h,success:p,error:g,id:"".concat(n,"Container"),name:"".concat(t,"Container"),onClick:function(){!h&&a&&a({target:{name:t,type:"checkbox",checked:!i}})}},b),r.default.createElement(f,{error:g,success:p,type:"checkbox",id:n,name:t,checked:i,disabled:h,readOnly:T}),r.default.createElement(y,{size:c,error:g,success:p,disabled:h,checked:i})))}},3855(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){var n=e.fonts,t=e.geometry,i=e.colors;return{colors:i,fonts:n,geometry:t,sm:{height:n.sm.lineHeight,width:n.sm.lineHeight,border:{width:t.md.border,style:"solid",radius:"4px"},check:{size:(0,a.multiply)(n.sm.lineHeight,.6)}},md:{height:n.md.lineHeight,width:n.md.lineHeight,border:{width:t.md.border,style:"solid",radius:"6px"},check:{size:(0,a.multiply)(n.md.lineHeight,.7)}},lg:{height:n.lg.lineHeight,width:n.lg.lineHeight,border:{width:t.md.border,style:"solid",radius:"8px"},check:{size:(0,a.multiply)(n.lg.lineHeight,.7)}},xl:{height:n.xl.lineHeight,width:n.xl.lineHeight,border:{width:t.md.border,style:"solid",radius:"10px"},check:{size:(0,a.multiply)(n.xl.lineHeight,.7)}},checkboxColors:{default:{border:i.inputs.dark.background,background:i.inputs.light.background},dark:{border:i.inputs.dark.background,background:i.inputs.light.background},active:{border:i.info.normal.background,background:i.inputs.light.background},checked:{border:i.primary.normal.background,background:i.primary.normal.background,check:i.basic.white},success:{border:i.success.normal.background,background:i.inputs.light.background},error:{border:i.danger.normal.background,background:i.inputs.light.background}}}}},73627(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l=u(t(22155)),r=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),o=u(t(26423)),s=u(t(77443)),d=["iconColor"],c=["icon","size","iconColor","solid"];function u(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},p.apply(null,arguments)}function m(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=r.default.span(a||(a=f(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size,a=e.circleColor,i=void 0===a?"primary":a,l=e.height,r=e.solid;return"\n    border-width: ".concat(n[t].border.width,";\n    border-color: ").concat(n.iconColors[i].border,";\n    border-style: ").concat(n[t].border.style,";\n    border-radius: 50%;\n    width: ").concat(l||n[t].width,";\n    height: ").concat(l||n[t].height,";\n    padding: 0;\n    display: flex;\n    align-items: center;\n\n    ").concat(r?"background-color: ".concat(n.iconColors[i].border):"","\n  ")}),g=(0,r.default)(function(e){e.iconColor;var n=m(e,d);return l.default.createElement(s.default,n)})(i||(i=f(["\n  ",";\n"])),function(e){var n=e.theme,t=e.iconColor;return"\n    flex: 1;\n    width: 60%;\n    height: 60%;\n    color: ".concat(n.iconColors[t].border,";\n  ")});n.default=function(e){var n=e.icon,t=e.size,a=void 0===t?"md":t,i=e.iconColor,s=void 0===i?"primary":i,d=e.solid,u=m(e,c);return l.default.createElement(r.ThemeProvider,{theme:o.default},l.default.createElement(y,p({},u,{size:a,solid:d}),l.default.createElement(g,{iconColor:s,icon:n})))}},26423(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,xxs:{border:{width:t.xxs.border,style:"solid"},width:t.xxs.profile.size,height:t.xxs.profile.size,padding:t.xxs.profile.padding},xs:{border:{width:t.xs.border,style:"solid"},width:t.xs.profile.size,height:t.xs.profile.size,padding:t.xs.profile.padding},sm:{border:{width:t.sm.border,style:"solid"},width:t.sm.profile.size,height:t.sm.profile.size,padding:t.sm.profile.padding},md:{border:{width:t.md.border,style:"solid"},width:t.md.profile.size,height:t.md.profile.size,padding:t.md.profile.padding},lg:{border:{width:t.lg.border,style:"solid"},width:t.lg.profile.size,height:t.lg.profile.size,padding:t.lg.profile.padding},xl:{border:{width:t.xl.border,style:"solid"},width:t.xl.profile.size,height:t.xl.profile.size,padding:t.xl.profile.padding},iconColors:{primary:{border:a.primary.normal.background},secondary:{border:a.secondary.normal.background},tertiary:{border:a.tertiary.normal.background},quaternary:{border:a.quaternary.normal.background},quinary:{border:a.quinary.normal.background},senary:{border:a.senary.normal.background},neutral:{border:a.neutral.normal.background},info:{border:a.info.normal.background},success:{border:a.success.normal.background},warning:{border:a.warning.normal.background},danger:{border:a.danger.normal.background},white:{border:"white"},normal:{border:a.neutral.dark.background}}}}},11832(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=s(t(22155)),l=s(t(75235)),r=t(6871),o=["children"];function s(e){return e&&e.__esModule?e:{default:e}}var d,c,u=l.default.div(a||(d=["\n  ",";\n"],c||(c=d.slice(0)),a=Object.freeze(Object.defineProperties(d,{raw:{value:Object.freeze(c)}}))),function(e){var n=e.hidden,t=e.container,a=e.span,i=e.item,l=e.grow,o=e.shrink,s=e.reverse,d=e.distribution,c=void 0===d?"stretch":d,u=e.vdistribution,p=void 0===u?"stretch":u,m=e.itemAlign,f=void 0===m?"stretch":m,y=e.visuallyHidden,g=e.fullHeight,h=e.wrap,x=void 0===h||h;return"\n    box-sizing: border-box;\n    display: ".concat((n?"none":t&&"flex")||"initial",";\n    flex-basis ").concat(!a&&0!==a&&"0"!==a&&i?"auto":a?(0,r.getSpanWidth)(a):"0",";\n    max-width: ").concat(a?(0,r.getSpanWidth)(a):"100%",";\n    flex-grow: ").concat((!!l||0===l||"0"===l)&&l||i&&"1"||"initial",";\n    flex-shrink: ").concat((!!o||0===o||"0"===o)&&o||i&&"1"||"initial",";\n    flex-direction: ").concat(s?"column-reverse":"column",";\n    flex-wrap: ").concat(x,";\n    align-content: ").concat(c&&(("stretch"===c?"stretch":"center"===c&&"center")||"start"===c&&"flex-start"||"end"===c&&"flex-end"||"between"===c&&"space-between"||"around"===c&&"space-around")||"initial",";\n    justify-content: ").concat(p&&(("stretch"===p?"stretch":"center"===p&&"center")||"start"===p&&"flex-start"||"end"===p&&"flex-end"||"between"===p&&"space-between"||"around"===p&&"space-around")||"initial",";\n    align-items: ").concat((f&&"stretch"===f?"stretch":"center"===f&&"center")||"top"===f&&"flex-start"||"bottom"===f&&"flex-end"||"baseline"===f&&"baseline"||"initial",";\n    visibility: ").concat(y?"hidden":"initial",";\n    height: ").concat(g?"100%;":"initial",";\n  ")});n.default=function(e){var n=e.children,t=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,o);return i.default.createElement(u,t,n)}},59112(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r=c(t(22155)),o=c(t(75235)),s=c(t(50595)),d=["children"];function c(e){return e&&e.__esModule?e:{default:e}}function u(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,p(a.key),a)}}function p(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function m(e,n,t){return n=y(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(n,t||[],y(e).constructor):n.apply(e,t))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function g(e,n){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},g(e,n)}function h(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=o.default.div(a||(a=h(["\n  display: flex;\n  flex-direction: column;\n  background-color: ",";\n  border: ",";\n  border-radius: ",";\n  overflow: auto;\n"])),function(e){return e.theme.colors.inputs.light.background},function(e){var n=e.theme;return"1px solid ".concat(n.colors.inputs.normal.background)},function(e){return e.theme.geometry.md.radius}),T=o.default.div(i||(i=h(["\n  padding: ",";\n"])),function(e){return e.theme.geometry.lg.spacing}),b=o.default.div(l||(l=h(["\n  margin-bottom: ",";\n"])),function(e){return e.theme.geometry.sm.spacing}),v=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),m(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(n,e),t=n,a=[{key:"render",value:function(){var e=this.props,n=e.children,t=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,d);return r.default.createElement(x,t,n)}}],a&&u(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(r.default.Component);v.BodyContainer=T,v.TextContainer=b,v.Footer=s.default,n.default=v},78365(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d,c=x(t(75235)),u=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(22155)),p=x(t(77443)),m=x(t(6308)),f=x(t(45177)),y=x(t(5486)),g=x(t(50271)),h=["id","name","title","body","icon","children","retry","report","details"];function x(e){return e&&e.__esModule?e:{default:e}}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=c.default.div(a||(a=b(["\n  display: flex;\n  flex: 1 1 auto;\n  justify-content: center;\n  align-items: center;\n  background: ",";\n  padding: ",";\n"])),function(e){return e.theme.colors.overlay.light.background},function(e){return e.theme.geometry.md.spacing}),C=c.default.div(i||(i=b(["\n  text-align: center;\n"]))),k=(0,c.default)(p.default)(l||(l=b(["\n  color: ",";\n  display: block;\n  font-size: ",";\n  margin: 0 auto "," auto;\n"])),function(e){return e.theme.colors.text.light.background},function(e){return e.theme.geometry.xxl.spacing},function(e){return e.theme.geometry.md.spacing}),S=(0,c.default)(y.default)(r||(r=b(["\n  display: flex;\n  margin: "," auto 0 auto;\n  padding-left: ",";\n  padding-right: ",";\n  justify-content: center;\n  align-items: center;\n"])),function(e){return e.theme.geometry.md.spacing},function(e){return e.theme.geometry.md.spacing},function(e){return e.theme.geometry.md.spacing}),N=(0,c.default)(p.default)(o||(o=b(["\n  margin-left: ",";\n"])),function(e){return e.theme.geometry.xs.spacing}),A=(0,c.default)(f.default)(s||(s=b(["\n  min-height: 300px;\n  padding: ",";\n"])),function(e){return e.theme.geometry.md.spacing}),R=c.default.div(d||(d=b(["\n  display: flex;\n  justify-content: center;\n"])));n.default=function(e){e.id,e.name;var n,t,a=e.title,i=e.body,l=e.icon,r=e.children,o=e.retry,s=e.report,d=e.details,c=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,h),p=(n=(0,u.useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,l,r,o=[],s=!0,d=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=l.call(t)).done)&&(o.push(a.value),o.length!==n);s=!0);}catch(e){d=!0,i=e}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(d)throw i}}return o}}(n,t)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=p[0],x=p[1];return u.default.createElement(v,c,u.default.createElement(C,null,l&&u.default.createElement(k,{icon:l}),a&&u.default.createElement(m.default,{align:"center",size:"md",color:"dark"},a),i&&u.default.createElement(f.default,{align:"center",size:"md",color:"dark"},i),r&&u.default.createElement(f.default,{align:"center",size:"md",color:"dark"},r),u.default.createElement(R,null,o&&u.default.createElement(S,{inline:!0,size:"sm",outline:!0,color:"primary",onClick:function(){return o()}},"Retry ",u.default.createElement(N,{icon:"redo-alt"})),s&&u.default.createElement(S,{inline:!0,size:"sm",outline:!0,color:"secondary",onClick:function(){return s()}},"Report ",u.default.createElement(N,{icon:"paper-plane"})),d&&u.default.createElement(S,{inline:!0,size:"sm",outline:!0,color:"tertiary",onClick:function(){return x(!0)}},"Details ",u.default.createElement(N,{icon:"info"}))),u.default.createElement(g.default,{show:y,size:"sm",onDismiss:function(){return x(!1)}},u.default.createElement(m.default,{align:"center",size:"md",color:"dark"},"Error details:"),u.default.createElement(A,{align:"center",size:"md",color:"dark"},d))))}},6410(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(22155)),l=(a=t(75235))&&a.__esModule?a:{default:a},r=t(53506),o=t(69773),s=t(64694);t(55607);var d,c=["onMarkdownChange","sourceContent"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}var m=l.default.div(d||(d=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  min-width: 100%;\n\n  .editor-class {\n    border: 1px solid #f1f1f1;\n    border-radius: 2px;\n  }\n\n  .wrapper-class {\n    width: 75%;\n    height: 250px;\n  }\n"])));n.default=function(e){var n=e.onMarkdownChange,t=e.sourceContent,a=void 0===t?"":t,l=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),d=(0,s.markdownToDraft)(a),f=(0,r.convertFromRaw)(d),y=function(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,l,r,o=[],s=!0,d=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=l.call(t)).done)&&(o.push(a.value),o.length!==n);s=!0);}catch(e){d=!0,i=e}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(d)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return p(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)(r.EditorState.createWithContent(f)),2),g=y[0],h=y[1];return i.default.createElement(m,null,i.default.createElement(o.Editor,u({toolbar:{options:["inline","blockType","list","link","emoji","remove","history","image"],inline:{inDropdown:!1,options:["bold","italic","underline","monospace"]},list:{inDropdown:!0},link:{inDropdown:!0},history:{inDropdown:!0}}},l,{editorState:g,wrapperClassName:"wrapper-class",editorClassName:"editor-class",toolbarClassName:"toolbar-class",onEditorStateChange:function(e){h(e),n((0,s.draftToMarkdown)((0,r.convertToRaw)(e.getCurrentContent())))}})))}},68635(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t(22155)),i=r(t(36656)),l=["className","dayPickerRef"];function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(null,arguments)}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach(function(n){c(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function c(e,n,t){return(n=p(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,p(a.key),a)}}function p(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function m(e,n,t){return n=y(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(n,t||[],y(e).constructor):n.apply(e,t))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function g(e,n){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},g(e,n)}var h=i.default.defaultProps.classNames;n.default=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),m(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(n,e),t=n,r=[{key:"render",value:function(){var e=this.props,n=e.className,t=e.dayPickerRef,r=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,l);return a.default.createElement(i.default,o({classNames:d(d({},h),{},{container:"".concat(h.container," ").concat(n)}),ref:t},r))}}],r&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(a.default.Component)},83596(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=S(t(22155)),i=k(t(75235)),l=k(t(86704));t(76314),t(5712);var r,o,s,d,c,u,p,m,f=S(t(82062)),y=S(t(68635)),g=S(t(77443)),h=S(t(63786)),x=S(t(11832)),T=S(t(45177)),b=S(t(78942)),v=t(6871),C=["id","name","color","placeholder","selectedDate","onDayClick","disabledDates","disabledDatesBefore","disabledDatesAfter","size","box","pill","inline","disabled","error","readOnly"];function k(e,n){if("function"==typeof WeakMap)var t=new WeakMap,a=new WeakMap;return(k=function(e,n){if(!n&&e&&e.__esModule)return e;var i,l,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=n?a:t){if(i.has(e))return i.get(e);i.set(e,r)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((l=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(l.get||l.set)?i(r,o,l):r[o]=e[o]);return r})(e,n)}function S(e){return e&&e.__esModule?e:{default:e}}function N(){return N=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},N.apply(null,arguments)}function A(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,R(a.key),a)}}function R(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function D(e,n,t){return n=I(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,L()?Reflect.construct(n,t||[],I(e).constructor):n.apply(e,t))}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function j(e,n){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},j(e,n)}function w(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var O=(0,i.keyframes)(r||(r=w(["\n  0% { opacity: 0; }\n  100% { opacity: 1; }\n"]))),E=(0,i.css)(o||(o=w(["\n  "," 0.3s;\n"])),O),_=(0,i.default)(x.default)(s||(s=w(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    overflow: visible;\n    font-family: ".concat(n.fonts.family,";\n    font-weight: ").concat(n.fonts.weight.default,";\n  ")}),F=(0,i.default)(y.default)(d||(d=w(["\n  ",";\n"])),function(e){var n=e.theme,t=e.color,a=e.size;return(0,i.css)(c||(c=w(["\n    color: ",";\n    font-size: ",";\n    line-height: ",";\n    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);\n    background-color: white;\n    background: #f00;\n\n    .DayPicker-Day--today {\n      color: ",";\n      font-weight: ",";\n    }\n\n    .DayPicker-Day--disabled {\n      color: ",";\n    }\n    .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {\n      background-color: ",";\n      color: ",";\n    }\n\n    .DayPicker:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {\n      background-color: ",";\n    }\n    .DayPickerInput-Overlay {\n      border-radius: ",";\n      margin-left: -",";\n      margin-top: ",";\n      animation: ",";\n    }\n\n    background: transparent;\n    box-shadow: none;\n    display: flex;\n    flex: 1;\n  "])),n.textColors.default.text,n[a].font.size.default,n[a].font.lineHeight,n.colors[t].normal.background,n.fonts.weight.bold,n.colors.neutral.normal.background,n.colors[t].normal.background,n.colors[t].normal.text,n.colors[t].light.background,n[a].radius,n[a].padding.horizontal,(0,v.multiply)(n[a].padding.vertical,2),E)}),P=i.default.div(u||(u=w(["\n  ",";\n"])),function(e){var n=e.box,t=e.inline,a=e.pill,i=e.size,l=e.theme,r=e.error;return"\n    display:".concat(t?"inline-flex":"flex",";\n    outline: ").concat(n?l[i].border.width:"0",";\n    border-width: ").concat(n?l[i].border.width:"0 0 ".concat(l[i].border.width," 0"),";\n    border-color: ").concat(r?l.colors.danger.normal.background:l.textColors.default.border,";\n    border-style: ").concat(l[i].border.style,";\n    border-radius: ").concat(n&&(a?"5000px":l[i].radius),";\n    align-items: center;\n    background-color: ").concat(l.textColors.default.background,";\n    cursor:text;\n    padding: ").concat(l[i].padding.vertical," ").concat(l[i].padding.horizontal,";\n    \n\n  ")}),B=(0,i.default)(g.default)(p||(p=w(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size,a=e.color,i=e.clickable;return"\n    color: ".concat(n.colors[a].normal.background,";\n    font-size: ").concat(n[t].font.size.small,";\n    margin-right: ").concat(n[t].margin,";\n    cursor: ").concat(i?"pointer":"none",";\n  ")}),U=i.default.div(m||(m=w(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    padding: ".concat(n[t].padding.vertical," ").concat(n[t].padding.horizontal,";\n  ")}),$=function(e){function n(e){var t;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(t=D(this,n,[e])).datePicker=a.default.createRef(),t.handleYearMonthChange=function(e){t.datePicker.current.getInput().focus(),t.setState({month:e})},t.getDisabledDatesArray=function(e,n,t){return(e||[]).concat([{before:t||void 0,after:n||void 0}])},t.getYearMonthSelector=function(e){return a.default.createElement(b.default,{name:"".concat(t.props.name,"-YearMonthSelector"),onChange:t.handleYearMonthChange,selectedDate:e.date})};var i=e.selectedDate?e.selectedDate:new Date;return t.state={month:new Date(i.getUTCFullYear(),i.getMonth()),show:!1},t}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&j(e,n)}(n,e),t=n,r=[{key:"render",value:function(){var e=this,n=this.props,t=n.id,r=n.name,o=n.color,s=void 0===o?"primary":o,d=n.placeholder,c=n.selectedDate,u=n.onDayClick,p=n.disabledDates,m=n.disabledDatesBefore,y=n.disabledDatesAfter,g=n.size,x=void 0===g?"md":g,b=n.box,v=void 0===b||b,k=n.pill,S=void 0===k||k,A=n.inline,R=n.disabled,D=n.error,L=n.readOnly,I=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(n,C),j=("sm"===x?"xs":"md"===x&&"sm")||"lg"===x&&"md"||"xl"===x&&"lg"||void 0;return a.default.createElement(i.ThemeProvider,{theme:f.default},a.default.createElement(_,N({name:"".concat(r,"-OuterContainer"),container:!0},I,{id:"".concat(t,"-OuterContainer")}),a.default.createElement(h.default,{item:!0,vdistribution:"center"},a.default.createElement(P,{onClick:function(){e.state.show||L||(e.datePicker.current.handleInputClick(),e.datePicker.current.getInput().focus(),e.setState({show:!0}))},name:"".concat(r,"-TextContainer"),box:v,inline:A,pill:S,size:x,disabled:R,error:D},a.default.createElement(F,{dayPickerRef:this.datePicker,value:c,onDayChange:function(e,n,t){u(e,n,t,r)},onDayPickerHide:function(){return e.setState({show:!1})},dayPickerProps:{name:"".concat(r,"-DayPicker"),month:this.state.month,showOutsideDays:!0,color:s,selectedDays:c,disabledDays:this.getDisabledDatesArray(p,y,m),captionElement:this.getYearMonthSelector,locale:"en-gb",localeUtils:l.default},inputProps:{readOnly:L,disabled:R},keepFocus:!1,inline:A,size:x,color:s,formatDate:l.formatDate,parseDate:l.parseDate,placeholder:d,format:"L",disabled:R,readOnly:L}),!c&&a.default.createElement(B,{color:s,size:x,icon:"calendar-alt"}),c&&a.default.createElement(B,{clickable:!0,onClick:function(e){u(""),e.stopPropagation()},color:s,size:x,icon:"times-circle"}))),a.default.createElement(h.default,null,D&&a.default.createElement(U,{size:x},a.default.createElement(T.default,{size:j,weight:"bold",color:"danger"},D)))))}}],r&&A(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(a.default.Component);n.default=$},82062(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.colors,t=e.fonts,a=e.geometry;return{fonts:t,geometry:a,colors:n,textColors:{default:{border:n.inputs.normal.background,background:n.inputs.light.background,text:n.text.dark.background,placeholder:n.inputs.dark.background},dark:{border:n.inputs.dark.background,background:n.inputs.dark.background,text:n.text.dark.background,placeholder:n.inputs.dark.background},active:{border:n.info.normal.background,background:n.inputs.light.background,text:n.text.dark.background,placeholder:n.inputs.dark.background},success:{border:n.success.normal.background,background:n.inputs.light.background,text:n.text.dark.background,placeholder:n.inputs.dark.background},error:{border:n.danger.normal.background,background:n.inputs.light.background,text:n.text.dark.background,placeholder:n.inputs.dark.background}},sm:{border:{width:a.sm.border,style:"solid"},margin:a.sm.spacing,padding:{vertical:a.xs.spacing,horizontal:a.sm.spacing},radius:a.md.radius,font:{size:{default:t.sm.size,small:t.xs.size},lineHeight:t.sm.lineHeight}},md:{border:{width:a.md.border,style:"solid"},margin:a.sm.spacing,padding:{vertical:a.sm.spacing,horizontal:a.md.spacing},radius:a.md.radius,font:{size:{default:t.md.size,small:t.sm.size},lineHeight:t.md.lineHeight}},lg:{border:{width:a.md.border,style:"solid"},margin:a.md.spacing,padding:{vertical:a.md.spacing,horizontal:a.lg.spacing},radius:a.md.radius,font:{size:{default:t.lg.size,small:t.md.size},lineHeight:t.lg.lineHeight}},xl:{border:{width:a.lg.border,style:"solid"},margin:a.md.spacing,padding:{vertical:a.lg.spacing,horizontal:a.xl.spacing},radius:a.md.radius,font:{size:{default:t.xl.size,small:t.lg.size},lineHeight:t.xl.lineHeight}}}}},80719(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,i(t(22155));var a=i(t(5821));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var n=e.error,t=void 0===n?{}:n,a=e.children;return t&&t.message?a({title:"This page failed to load",body:"There was a problem loading this page, please try again.",icon:"exclamation-triangle"}):null};l.propTypes={error:a.default.object,details:a.default.bool,children:a.default.func.isRequired},n.default=l},73229(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d=g(t(22155)),c=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),u=g(t(75225)),p=t(6871),m=g(t(6308)),f=g(t(45177)),y=g(t(73627));function g(e){return e&&e.__esModule?e:{default:e}}function h(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=c.default.div(a||(a=h(["\n  ",";\n"])),function(e){var n=e.uploaded,t=e.theme,a=e.size;return"\n    background-color: ".concat(n?t.evidenceColors.green:t.evidenceColors.white,";\n    border-radius: 12px;\n    border: 1px solid grey;\n    box-shadow: 0 0 7px 7px rgba(220, 218, 218, 0.3);\n\n    width: ").concat(t[a].width,";\n    height: ").concat(t[a].height,";\n\n    cursor: pointer;\n  ")}),T=c.default.div(i||(i=h(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    height: ".concat((0,p.multiply)((0,p.divide)(n[t].height,8),3),";\n    width: 100%; \n  ")}),b=c.default.div(l||(l=h(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    height: ".concat((0,p.multiply)((0,p.divide)(n[t].height,8),3),";\n    width: 100%;  \n  ")}),v=c.default.div(r||(r=h(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    height: ".concat((0,p.multiply)((0,p.divide)(n[t].height,8),2),";\n    width: 100%;  \n  ")}),C=c.default.div(o||(o=h(["\n  ",";\n"])),function(e){var n=e.uploaded,t=e.theme;return"\n    position: relative;\n    top: 50%;\n    transform: translateY(-50%);\n    text-align: center;\n\n    & a {\n      color: ".concat(n?t.evidenceColors.white:t.evidenceColors.green,";\n    }\n  ")}),k=c.default.div(s||(s=h(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n"])));n.default=function(e){var n=e.title,t=e.desc,a=e.uploaded,i=e.size,l=void 0===i?"md":i,r=e.onClick,o=["sm","md","lg","xl"];return d.default.createElement(c.ThemeProvider,{theme:u.default},d.default.createElement(x,{uploaded:a,size:l,onClick:r},d.default.createElement(T,{size:l},d.default.createElement(C,null,d.default.createElement(m.default,{size:o[o.indexOf(l)+1]||"xl",align:"center",color:a?"white":"normal"},n),d.default.createElement(f.default,{size:l,align:"center",color:a?"white":"normal"},t))),d.default.createElement(b,{size:l},d.default.createElement(k,null,d.default.createElement(y.default,{solid:!a,circleColor:a?"white":"tertiary",iconColor:"white",icon:a?"check":"plus",size:o[o.indexOf(l)-1]||"sm",border:"heavy"}))),d.default.createElement(v,{size:l},d.default.createElement(C,{uploaded:a},a?"View":"Upload"))))}},75225(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){var n=e.colors,t=e.fonts,i=e.geometry;return{colors:n,fonts:t,geometry:i,sm:{width:(0,a.multiply)(i.sm.spacing,8),height:(0,a.multiply)(i.sm.spacing,16)},md:{width:(0,a.multiply)(i.md.spacing,8),height:(0,a.multiply)(i.md.spacing,16)},lg:{width:(0,a.multiply)(i.lg.spacing,8),height:(0,a.multiply)(i.lg.spacing,16)},xl:{width:(0,a.multiply)(i.xl.spacing,8),height:(0,a.multiply)(i.xl.spacing,16)},evidenceColors:{white:n.basic.white,green:"#00C8B5"}}}},22999(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l=c(t(22155)),r=c(t(75235)),o=c(t(59987)),s=c(t(48144)),d=["id","name","text","checked","color","onChange"];function c(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var m=r.default.div(a||(a=p(["\n  display: inline-flex;\n  flex-direction: row;\n  align-items: center;\n"]))),f=(0,r.default)(o.default)(i||(i=p(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    margin-right:".concat(n.geometry.xxs.spacing,";\n")});n.default=function(e){var n=e.id,t=e.name,a=e.text,i=e.checked,r=e.color,o=e.onChange,c=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,d);return l.default.createElement(m,u({id:"".concat(n,"-Container"),name:"".concat(t,"-Container")},c),l.default.createElement(f,{id:n,name:t,onChange:o,checked:i}),l.default.createElement(s.default,{id:"".concat(n,"-Container-Label"),name:"".concat(t,"-Container-Label"),color:r,labelFor:n},a))}},81700(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l=d(t(22155)),r=d(t(75235)),o=d(t(22999)),s=["id","name","children","columns"];function d(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(null,arguments)}function u(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var p=r.default.div(a||(a=u(["\n  display: flex;\n  flex-flow: row wrap;\n  width: 100%;\n"]))),m=r.default.div(i||(i=u(["\n  display: flex;\n  flex-flow: row nowrap;\n  flex: ",";\n"])),function(e){return"0 0 ".concat(100/e.columns,"%")}),f=function(e){var n=e.id,t=e.name,a=e.children,i=e.columns,r=void 0===i?3:i,o=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,s);return l.default.createElement(p,c({id:n,name:t},o),l.default.Children.map(a,function(e){return l.default.createElement(m,{columns:r},e)}))};f.Checkbox=o.default,n.default=f},71336(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=s(t(22155)),i=t(5372),l=t(75235),r=s(t(19026)),o=["id","name","spinner","color","size","hexColor"];function s(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},d.apply(null,arguments)}var c={BarLoader:i.BarLoader,BeatLoader:i.BeatLoader,BounceLoader:i.BounceLoader,ClipLoader:i.ClipLoader,DotLoader:i.DotLoader,FadeLoader:i.FadeLoader,HashLoader:i.HashLoader,MoonLoader:i.MoonLoader,PropagateLoader:i.PropagateLoader,PulseLoader:i.PulseLoader,RotateLoader:i.RotateLoader,ScaleLoader:i.ScaleLoader,SyncLoader:i.SyncLoader},u=function(e){var n=e.id,t=e.name,i=e.spinner,l=void 0===i?"BounceLoader":i,r=e.color,s=void 0===r?"primary":r,u=e.size,p=void 0===u?"md":u,m=e.hexColor,f=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,o),y=c[l];return a.default.createElement(y,d({id:"".concat(n,"-Spinner"),name:"".concat(t,"-Spinner"),color:m||e.theme.colors[s].normal.background,size:parseInt(e.theme.sizes[p].size,10)},f))};n.default=function(e){var n=(0,l.withTheme)(u);return a.default.createElement(l.ThemeProvider,{theme:r.default},a.default.createElement(n,e))}},19026(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){e.fonts;var n=e.geometry,t=e.colors,i=n.md.spacing,l=(0,a.divide)(n.md.spacing,7);return{colors:t,geometry:n,sizes:{xxxs:{border:(0,a.multiply)(l,1.4),size:(0,a.multiply)(i,.5).replace("px","")},xxs:{border:(0,a.multiply)(l,1.4),size:(0,a.multiply)(i,1).replace("px","")},xs:{border:(0,a.multiply)(l,2.2),size:(0,a.multiply)(i,2).replace("px","")},sm:{border:(0,a.multiply)(l,4),size:(0,a.multiply)(i,4).replace("px","")},md:{border:(0,a.multiply)(l,6),size:(0,a.multiply)(i,6).replace("px","")},lg:{border:(0,a.multiply)(l,8),size:(0,a.multiply)(i,8).replace("px","")},xl:{border:(0,a.multiply)(l,10),size:(0,a.multiply)(i,10).replace("px","")}}}}},6308(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=d(t(22155)),l=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),r=d(t(9190)),o=["component"],s=["children","accessibilityLevel","size"];function d(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(null,arguments)}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function p(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var f,y,g=(0,l.default)(function(e){var n=e.component,t=m(e,o);return i.default.cloneElement(i.default.createElement(n),function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach(function(n){p(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},t))})(a||(f=["\n  ",";\n"],y||(y=f.slice(0)),a=Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(y)}}))),function(e){var n=e.theme,t=e.size,a=e.color,i=void 0===a?"dark":a,l=e.weight,r=void 0===l?"normal":l,o=e.italic,s=e.inline,d=e.nowrap,c=e.overflow,u=void 0===c?"visible":c,p=e.align,m=void 0===p?"left":p;return"\n    font-family: ".concat(n.headingFonts.family,";\n    font-weight: ").concat(n.headingFonts.weight[r],";\n    text-align: ").concat(m,";\n    text-overflow: ellipsis;\n    word-wrap: break-word;\n    overflow-wrap: break-word;\n    white-space: ").concat(d?"nowrap":"initial",";\n    overflow: ").concat(u,";\n    font-style: ").concat(o?"italic":"initial",";\n    display: ").concat(s?"inline-block":"block",";\n    margin: ").concat(n.sizes[t].margin,";\n    padding: ").concat(n.sizes[t].padding,";\n    font-size: ").concat(n.sizes[t].font.size,";\n    line-height: ").concat(n.sizes[t].font.lineHeight,";\n    color: ").concat(n.headingColors[i].text,";\n  ")});n.default=function(e){var n=e.children,t=e.accessibilityLevel,a=e.size,o=void 0===a?"xl":a,d=m(e,s);return i.default.createElement(l.ThemeProvider,{theme:r.default},i.default.createElement(g,c({},d,{size:o,component:t&&"h".concat(t)||"xs"===o&&"h6"||"sm"===o&&"h5"||"md"===o&&"h4"||"lg"===o&&"h3"||"xl"===o&&"h2"||"xxl"===o&&"h1"}),n))}},9190(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.colors,t=e.fonts;return{colors:n,fonts:t,geometry:e.geometry,headingFonts:{family:t.family,weight:{light:t.weight.normal,normal:t.weight.bold,bold:t.weight.extra}},headingColors:{light:{text:n.text.light.background,border:""},normal:{text:n.text.normal.background,border:""},dark:{text:n.text.dark.background,border:""},primary:{text:n.primary.normal.background,border:""},secondary:{text:n.secondary.normal.background,border:""},tertiary:{text:n.tertiary.normal.background,border:""},neutral:{text:n.neutral.normal.background,border:""},info:{text:n.info.normal.background,border:""},success:{text:n.success.normal.background,border:""},warning:{text:n.warning.normal.background,border:""},danger:{text:n.danger.normal.background,border:""},white:{text:n.basic.white}},sizes:{xs:{margin:"0",padding:"0",font:{size:t.xs.size,lineHeight:t.xs.lineHeight}},sm:{margin:"0",padding:"0",font:{size:t.sm.size,lineHeight:t.sm.lineHeight}},md:{margin:"0",padding:"0",font:{size:t.md.size,lineHeight:t.md.lineHeight}},lg:{margin:"0",padding:"0",font:{size:t.lg.size,lineHeight:t.lg.lineHeight}},xl:{margin:"0",padding:"0",font:{size:t.xl.size,lineHeight:t.xl.lineHeight}},xxl:{margin:"0",padding:"0",font:{size:t.xxl.size,lineHeight:t.xxl.lineHeight}}}}}},39824(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o=m(t(22155)),s=m(t(75235)),d=m(t(43339)),c=m(t(6308)),u=m(t(77443)),p=["name","id","color","error","size","inline","readOnly","editing","placeholder","value","onChange","onEditChange"];function m(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},f.apply(null,arguments)}function y(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var g=s.default.div(a||(a=y(["\n  ",";\n"])),function(e){var n=e.inline;return"\n    display: ".concat(n?"inline-flex":"flex",";\n    flex-direction: row;\n    align-items: center;\n  ")}),h=(0,s.default)(d.default)(i||(i=y(["\n  flex-basis: 100%;\n  input {\n    padding: 0px;\n    font-weight: 700;\n  }\n"]))),x=(0,s.default)(c.default)(l||(l=y(["\n  flex: 1 1 auto;\n  opacity: ",";\n"])),function(e){return e.value?1:.4}),T=(0,s.default)(u.default)(r||(r=y(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    margin-left: ".concat(n.geometry.md.spacing,";\n    color: ").concat(n.colors.text.normal.background,";\n    background: transparent;\n  ")});n.default=function(e){var n=e.name,t=e.id,a=e.color,i=void 0===a?"tertiary":a,l=e.error,r=e.size,s=void 0===r?"md":r,d=e.inline,c=e.readOnly,u=e.editing,m=e.placeholder,y=e.value,b=e.onChange,v=e.onEditChange,C=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,p);return o.default.createElement(g,f({},C,{name:"".concat(n,"__container"),id:t,inline:d}),u?o.default.createElement(h,{autoFocus:!0,name:"".concat(n,"__textInput"),editMode:u,onChange:b,size:s,color:i,placeholder:m,value:y,box:!1,error:l}):o.default.createElement(x,{name:"".concat(n,"__heading"),size:s,color:i,onDoubleClick:function(){c||v()},value:y},y||m),!c&&o.default.createElement(T,{onClick:v,name:"".concat(n,"__").concat(u?"check-button":"edit-button"),icon:u?"check":"pencil-alt",size:s}))}},77443(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=(a=t(22155))&&a.__esModule?a:{default:a},l=t(5188),r=t(92845),o=t(55897);l.library.add(o.fas),l.library.add({iconName:"clipboard-check-custom",prefix:"rio",icon:[750,1e3,[],"e001","M284.5 87.9C284.5 39.7 325.4 0 375.1 0 424.7 0 465.7 39.7 465.7 87.9V100.8H507.4C516 100.7 524.2 104 530.3 109.9 536.4 115.8 539.8 123.8 539.7 132.1V237.8C539.8 246.1 536.4 254.1 530.3 260 524.2 265.9 516 269.2 507.4 269.2H242.6C234.1 269.1 225.9 265.8 219.9 259.9 213.8 254 210.5 246.1 210.5 237.8V132.1C210.5 123.9 213.8 115.9 219.9 110 225.9 104.1 234.1 100.8 242.6 100.8H284.5V87.9ZM8.3 164C13.7 158.3 21.1 154.6 29 153.9 30.1 153.8 31.2 153.8 32.3 153.9H146.1V237.5C145.9 288.6 189.7 331.4 242.4 331.7L242.6 331.7H507.1C560 331.9 604.4 288.8 604.2 237.5V153.9H717.9C726.4 153.9 734.6 157.2 740.6 163 746.6 168.9 750 176.7 750 185V968.9C750 977.1 746.6 985 740.6 990.9 734.6 996.7 726.4 1000 717.9 1000H32.4C23.8 1000 15.6 996.8 9.5 990.9 3.5 985.1 0 977.2 0 968.9V185C0 177.2 3 169.8 8.3 164ZM612.4 546.8C630.7 527.4 628.9 497.8 608.2 480.6 587.6 463.4 556 465.1 537.6 484.5L308.3 726.3 212.4 625.1C194 605.8 162.4 604 141.8 621.2 121.1 638.4 119.3 668 137.6 687.4L271 828C280.5 838 294.1 843.8 308.3 843.8 322.6 843.8 336.2 838 345.7 828L612.4 546.8Z"]}),l.library.add({iconName:"flows",prefix:"rio",icon:[16,13,[],"e001","M14.0702 5.29391V9.93798C14.0702 14.0207 7.17266 14.0207 7.17266 9.93798L7.17251 3.45C7.17251 0.999813 3.58754 0.999813 3.58754 3.45V7.70643C4.70642 8.05184 5.51749 9.07717 5.51749 10.2889C5.51749 11.7838 4.28316 12.9953 2.7601 12.9953C1.23705 12.9953 0 11.7863 0 10.2914C0 9.07984 0.811025 8.05436 1.92995 7.70895L1.9298 3.67511C1.9298 -1.22504 8.82734 -1.22504 8.82734 3.67511V9.6629C8.82734 11.8406 12.4123 11.8406 12.4123 9.6629V5.29132C11.2934 4.94591 10.4824 3.92057 10.4824 2.70889C10.4824 1.21397 11.7167 0.00244281 13.2397 0.00244281C14.763 0.00244281 16 1.21412 16 2.70905C16 3.92057 15.1891 4.94853 14.0702 5.29391Z"]}),n.default=function(e){return i.default.createElement(r.FontAwesomeIcon,e)}},5631(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r=c(t(22155)),o=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),s=c(t(77443)),d=c(t(45177));function c(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var m=o.default.div(a||(a=p(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: flex-start;\n  padding: ",";\n  border: "," solid ",";\n  border-radius: ",";\n  ","\n"])),function(e){return e.theme.geometry.sm.spacing},function(e){return e.theme.geometry.sm.border},function(e){return e.setActiveColor||e.theme.colors.overlay.normal.background},function(e){return e.theme.geometry.xxs.radius},function(e){return e.disabled?"opacity: 0.5;":"cursor: pointer;"}),f=o.default.div(i||(i=p(["\n  flex: 2;\n"]))),y=(0,o.default)(d.default)(l||(l=p(["\n  padding-top: ",";\n  padding-bottom: ",";\n  word-break: break-word;\n  text-align: center;\n  color: ",";\n"])),function(e){return e.theme.geometry.xs.spacing},function(e){return e.theme.geometry.xs.spacing},function(e){return e.setActiveColor});n.default=(0,o.withTheme)(function(e){var n=e.title,t=(e.category,e.icon),a=void 0===t?"file-alt":t,i=e.iconColor,l=e.disabled,o=e.onClick,d=void 0===o?function(){}:o,c=e.name,p=e.sizeIcon,g=e.active,h=e.activeColor,x=i||e.theme.colors.quinary.normal.background,T=p||"2x",b=h||g&&"#59c5b5";return r.default.createElement(m,u({},e,{onClick:function(){l||d()},setActiveColor:b,name:"".concat(c,"_IconTile")}),r.default.createElement(f,null,r.default.createElement(s.default,{icon:a,size:T,color:g&&b||x,name:"".concat(c,"_IconTile_Icon")})),r.default.createElement(f,null,r.default.createElement(y,{setActiveColor:b,size:"lg",name:"".concat(c,"_IconTile_Title")},n)))})},76198(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=g(t(75235)),i=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(22155)),l=g(t(39588)),r=g(t(82239)),o=g(t(29053));t(76067);var s,d,c,u,p=g(t(38694)),m=g(t(45177)),f=g(t(5486)),y=["width","height","border","radius","sliderColor","readyText","dropText","rejectText","onSave","outputFormat","acceptedFormats","guideNumbers"];function g(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},h.apply(null,arguments)}function x(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}function b(){var e,n,t="function"==typeof Symbol?Symbol:{},a=t.iterator||"@@iterator",i=t.toStringTag||"@@toStringTag";function l(t,a,i,l){var s=a&&a.prototype instanceof o?a:o,d=Object.create(s.prototype);return v(d,"_invoke",function(t,a,i){var l,o,s,d=0,c=i||[],u=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(n,t){return l=n,o=0,s=e,p.n=t,r}};function m(t,a){for(o=t,s=a,n=0;!u&&d&&!i&&n<c.length;n++){var i,l=c[n],m=p.p,f=l[2];t>3?(i=f===a)&&(s=l[(o=l[4])?5:(o=3,3)],l[4]=l[5]=e):l[0]<=m&&((i=t<2&&m<l[1])?(o=0,p.v=a,p.n=l[1]):m<f&&(i=t<3||l[0]>a||a>f)&&(l[4]=t,l[5]=a,p.n=f,o=0))}if(i||t>1)return r;throw u=!0,a}return function(i,c,f){if(d>1)throw TypeError("Generator is already running");for(u&&1===c&&m(c,f),o=c,s=f;(n=o<2?e:s)||!u;){l||(o?o<3?(o>1&&(p.n=-1),m(o,s)):p.n=s:p.v=s);try{if(d=2,l){if(o||(i="next"),n=l[i]){if(!(n=n.call(l,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,o<2&&(o=0)}else 1===o&&(n=l.return)&&n.call(l),o<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),o=1);l=e}else if((n=(u=p.n<0)?s:t.call(a,p))!==r)break}catch(n){l=e,o=1,s=n}finally{d=1}}return{value:n,done:u}}}(t,i,l),!0),d}var r={};function o(){}function s(){}function d(){}n=Object.getPrototypeOf;var c=[][a]?n(n([][a]())):(v(n={},a,function(){return this}),n),u=d.prototype=o.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,v(e,i,"GeneratorFunction")),e.prototype=Object.create(u),e}return s.prototype=d,v(u,"constructor",d),v(d,"constructor",s),s.displayName="GeneratorFunction",v(d,i,"GeneratorFunction"),v(u),v(u,i,"Generator"),v(u,a,function(){return this}),v(u,"toString",function(){return"[object Generator]"}),(b=function(){return{w:l,m:p}})()}function v(e,n,t,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}v=function(e,n,t,a){function l(n,t){v(e,n,function(e){return this._invoke(n,t,e)})}n?i?i(e,n,{value:t,enumerable:!a,configurable:!a,writable:!a}):e[n]=t:(l("next",0),l("throw",1),l("return",2))},v(e,n,t,a)}function C(e,n,t,a,i,l,r){try{var o=e[l](r),s=o.value}catch(e){return void t(e)}o.done?n(s):Promise.resolve(s).then(a,i)}function k(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,S(a.key),a)}}function S(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function N(e,n,t){return n=R(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,A()?Reflect.construct(n,t||[],R(e).constructor):n.apply(e,t))}function A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(A=function(){return!!e})()}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function D(e,n){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},D(e,n)}function L(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var I=(0,l.default)(),j=a.default.div(s||(s=L(["\n  width: ","px;\n"])),function(e){return e.width+2*e.border}),w=a.default.div(d||(d=L([""]))),O=(0,a.default)(m.default)(c||(c=L(["\n  text-align: center;\n  display: block;\n"]))),E=a.default.div(u||(u=L(["\n  margin-top: 30px;\n  margin-bottom: 30px;\n  display: block;\n  .input-range__label-container {\n    ","\n    font-family: ",";\n  }\n  .input-range__track--active,\n  .input-range__slider {\n    background: ",";\n  }\n\n  .input-range__slider {\n    border: 1px solid ",";\n  }\n"])),function(e){return e.guideNumbers?"":"display: none;"},function(e){return e.theme.fonts.family},function(e){var n=e.theme,t=e.sliderColor;return n.colors[t].normal.background},function(e){var n=e.theme,t=e.sliderColor;return n.colors[t].normal.background}),_=function(e){function n(e){var t;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(t=N(this,n,[e])).handleDrop=function(e){t.setState({image:e[0]})},t.editorClick=function(e){e.stopPropagation(),t.state.image||t.dropzone.current.open()},t.onClickSave=function(){var e,n=(e=b().m(function e(n,a){var i,l,r,o;return b().w(function(e){for(;;)switch(e.n){case 0:if(!t.editor){e.n=2;break}return i=t.editor.getImage(),(l=document.createElement("canvas")).width=a.width,l.height=a.height,e.n=1,I.resize(i,l,{alpha:!0});case 1:r=e.v,"image/jpeg"===a.format&&a.background&&((o=r.getContext("2d")).globalCompositeOperation="destination-over",o.fillStyle=a.background,o.fillRect(0,0,a.width,a.height)),n(r.toDataURL(a.format,.95));case 2:return e.a(2)}},e)}),function(){var n=this,t=arguments;return new Promise(function(a,i){var l=e.apply(n,t);function r(e){C(l,a,i,r,o,"next",e)}function o(e){C(l,a,i,r,o,"throw",e)}r(void 0)})});return function(e,t){return n.apply(this,arguments)}}(),t.setEditorRef=function(e){return t.editor=e},t.dropzone=(0,i.createRef)(),t.state={scale:1,image:t.props.defaultImage},t}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&D(e,n)}(n,e),t=n,a=[{key:"render",value:function(){var e=this,n=this.props,t=n.width,a=void 0===t?200:t,l=n.height,s=void 0===l?200:l,d=n.border,c=void 0===d?50:d,u=n.radius,m=void 0===u?0:u,g=n.sliderColor,T=void 0===g?"primary":g,b=n.readyText,v=void 0===b?"Click here or drop a file to upload!":b,C=n.dropText,k=void 0===C?"Drop it like it's hot!":C,S=n.rejectText,N=void 0===S?"File type not accepted, sorry!":S,A=n.onSave,R=n.outputFormat,D=void 0===R?"image/jpeg":R,L=n.acceptedFormats,I=void 0===L?["image/jpeg"]:L,_=n.guideNumbers,F=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(n,y);return i.default.createElement(j,h({onDrop:this.handleDrop,width:a,border:c},F),i.default.createElement(p.default,{onDrop:this.handleDrop,style:{width:a,height:s},accept:x(I),ref:this.dropzone},function(n){var t=n.getRootProps,l=n.getInputProps,o=n.isDragActive,d=n.isDragReject;return i.default.createElement(w,t({className:"dropzone"}),i.default.createElement("input",l()),i.default.createElement(O,null,!o&&v,o&&!d&&k,d&&N),i.default.createElement(r.default,{onClick:e.editorClick,image:e.state.image,ref:e.setEditorRef,width:a,height:s,border:c,borderRadius:m,color:[128,128,128,.6],scale:e.state.scale,rotate:0,crossOrigin:"anonymous"}))}),i.default.createElement(E,{sliderColor:T,guideNumbers:_},i.default.createElement(o.default,{maxValue:100,minValue:0,value:20*this.state.scale,onChange:function(n){return e.setState({scale:n/20})}})),i.default.createElement(f.default,{onClick:function(){return e.onClickSave(A,D)}},"Save"))}}],a&&k(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(i.Component);n.default=_},89003(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o=m(t(75235)),s=m(t(22155)),d=m(t(77443)),c=m(t(6308)),u=m(t(45177)),p=["id","name","dismissable","onDismiss","title","body","icon"];function m(e){return e&&e.__esModule?e:{default:e}}function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=o.default.div(a||(a=f(["\n  ",";\n"])),function(e){var n=e.theme,t=e.inline,a=e.pill;return"\n    position: relative;\n    display: ".concat(t?"inline-flex":"flex",";\n    width: ").concat(t?"auto":"100%",";\n    border-radius: ").concat(a?"5000px":n.geometry.sm.radius,";\n    align-items: center;\n    background-color: ").concat(n.colors.danger.normal.background,";\n    padding: ").concat(n.geometry.sm.spacing,";\n  ")}),g=(0,o.default)(d.default)(i||(i=f(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    flex: 0 0 auto;\n    margin-right: ".concat(n.geometry.sm.spacing,";\n    color: ").concat(n.colors.basic.white,";\n    background:transparent;\n    &:hover {\n      cursor:pointer;\n    }\n  ")}),h=(0,o.default)(d.default)(l||(l=f(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    flex: 0 0 auto;\n    margin-right: ".concat(n.geometry.sm.spacing,";\n    margin-left: ").concat(n.geometry.xs.spacing,";\n    color: ").concat(n.colors.basic.white,";\n  ")}),x=o.default.div(r||(r=f(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    flex: 1 1 auto;\n    margin-right: ".concat(n.geometry.sm.spacing,";\n  ")});n.default=function(e){e.id;var n=e.name,t=e.dismissable,a=e.onDismiss,i=e.title,l=e.body,r=e.icon,o=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,p);return s.default.createElement(y,o,r&&s.default.createElement(h,{icon:r}),s.default.createElement(x,null,i&&s.default.createElement(c.default,{size:"md",color:"white"},i),l&&s.default.createElement(u.default,{size:"md",color:"white"},l)),t&&s.default.createElement(g,{onClick:a,icon:"times",name:"".concat(n,"__dismiss-cross")}))}},41376(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(22155));function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}n.default=function(e){var n=e.id,t=e.name,l=e.accept,r=e.multiple,o=e.onChange,s=e.inputRef,d=e.onInputClick,c=e.children,u=s||(0,a.createRef)(null);return a.default.createElement(a.default.Fragment,null,a.default.createElement("input",{type:"file",onChange:function(e){var n;"function"==typeof o&&o(function(e){if(Array.isArray(e))return i(e)}(n=e.target.files)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return i(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),e)},id:n,name:t,accept:l,multiple:r,ref:u,onClick:function(e){e.stopPropagation(),e.persist(),"function"==typeof d&&d(e)},hidden:!0}),c(function(){return u.current.click()}))}},48144(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=s(t(22155)),l=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),r=s(t(76986)),o=["children","labelFor","textAlign"];function s(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},d.apply(null,arguments)}var c,u,p=l.default.label(a||(c=["\n  ",";\n"],u||(u=c.slice(0)),a=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(u)}}))),function(e){var n=e.theme,t=e.size,a=void 0===t?"md":t,i=e.inline,l=e.color,r=void 0===l?"normal":l,o=e.textAlign,s=void 0===o?"start":o;return"\n    font-family: ".concat(n.font.family,";\n    font-weight: ").concat(n.font.weight.default,";\n    font-size: ").concat(n[a].font.size.default,";\n    line-height: ").concat(n[a].font.lineHeight,";\n    display: ").concat(i?"inline-block":"block",";\n    color: ").concat(n.labelColors[r].text,";\n    text-align: ").concat(s,";\n  ")});n.default=function(e){var n=e.children,t=e.labelFor,a=e.textAlign,s=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,o);return i.default.createElement(l.ThemeProvider,{theme:r.default},i.default.createElement(p,d({},s,{textAlign:a,htmlFor:t}),n))}},76986(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},labelColors:{light:{text:a.text.light.background,border:""},normal:{text:a.text.normal.background,border:""},dark:{text:a.text.dark.background,border:""},primary:{text:a.primary.normal.background,border:""},secondary:{text:a.secondary.normal.background,border:""},tertiary:{text:a.tertiary.normal.background,border:""},neutral:{text:a.neutral.normal.background,border:""},info:{text:a.info.normal.background,border:""},success:{text:a.success.normal.background,border:""},warning:{text:a.warning.normal.background,border:""},danger:{text:a.danger.normal.background,border:""}},sm:{margin:t.sm.spacing,font:{size:{default:n.sm.size,small:n.xs.size},lineHeight:n.sm.lineHeight}},md:{margin:t.md.spacing,font:{size:{default:n.md.size,small:n.sm.size},lineHeight:n.md.lineHeight}},lg:{margin:t.lg.spacing,font:{size:{default:n.lg.size,small:n.md.size},lineHeight:n.lg.lineHeight}},xl:{margin:t.xl.spacing,font:{size:{default:n.xl.size,small:n.lg.size},lineHeight:n.lg.lineHeight}}}}},44663(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d,c,u,p,m,f,y=T(t(22155)),g=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),h=T(t(16155)),x=["size","speed"];function T(e){return e&&e.__esModule?e:{default:e}}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},b.apply(null,arguments)}function v(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var C=g.default.div(a||(a=v(["\n  display: ",";\n  box-sizing: border-box;\n  position: relative;\n  height: ",";\n  width: ",";\n"])),function(e){return e.inline?"inline-block":"block"},function(e){return e.height||e.theme[e.size].size},function(e){return e.height||e.theme[e.size].size}),k=(0,g.keyframes)(i||(i=v(["\n  0% { transform: rotate(0deg); transform-origin: 48% 48%; }\n  100% { transform: rotate(360deg); transform-origin: 48% 48%; }\n"]))),S=(0,g.keyframes)(l||(l=v(["\n  0% { transform: rotate(0deg); transform-origin: 52% 52%; }\n  100% { transform: rotate(360deg); transform-origin: 52% 52%; }\n"]))),N=(0,g.keyframes)(r||(r=v(["\n  0% { transform: rotate(0deg); transform-origin: 48% 52%; }\n  100% { transform: rotate(360deg); transform-origin: 48% 52%; }\n"]))),A=g.default.div(o||(o=v(["\n  box-sizing: border-box;\n  opacity: 1;\n  width: 90%;\n  height: 90%;\n  border-style: solid;\n  border-width: ",";\n  border-radius: 50%;\n  position: absolute;\n  top: 5%;\n  left: 5%;\n"])),function(e){return e.theme[e.size].border}),R=(0,g.default)(A)(s||(s=v(["\n  border-color: ",";\n"])),function(e){return e.theme.loadingColors.primary}),D=(0,g.css)(d||(d=v(["\n  "," infinite ","s linear;\n"])),k,function(e){return 3/e.speed}),L=(0,g.default)(A)(c||(c=v(["\n  border-color: ",";\n  animation: ",";\n"])),function(e){return e.theme.loadingColors.secondary},D),I=(0,g.css)(u||(u=v(["\n  "," infinite ","s linear;\n"])),S,function(e){return 2.5/e.speed}),j=(0,g.default)(A)(p||(p=v(["\n  border-color: ",";\n  animation: ",";\n"])),function(e){return e.theme.loadingColors.tertiary},I),w=(0,g.css)(m||(m=v(["\n  "," infinite ","s linear reverse;\n"])),N,function(e){return 2/e.speed}),O=(0,g.default)(A)(f||(f=v(["\n  border-color: ",";\n  animation: ",";\n"])),function(e){return e.theme.loadingColors.quaternary},w);n.default=function(e){var n=e.size,t=void 0===n?"md":n,a=e.speed,i=void 0===a?1:a,l=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,x);return y.default.createElement(g.ThemeProvider,{theme:h.default},y.default.createElement(C,b({},l,{size:t}),y.default.createElement(O,{speed:i,size:t}),y.default.createElement(j,{speed:i,size:t}),y.default.createElement(L,{speed:i,size:t}),y.default.createElement(R,{speed:i,size:t})))}},16155(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){var n=e.fonts,t=e.geometry,i=e.colors,l=t.md.spacing,r=(0,a.divide)(t.md.spacing,7);return{colors:i,fonts:n,geometry:t,xxs:{border:(0,a.multiply)(r,1.1),size:(0,a.multiply)(l,1)},xs:{border:(0,a.multiply)(r,1.9),size:(0,a.multiply)(l,2)},sm:{border:(0,a.multiply)(r,3.4),size:(0,a.multiply)(l,4)},md:{border:(0,a.multiply)(r,5),size:(0,a.multiply)(l,6)},lg:{border:(0,a.multiply)(r,6.5),size:(0,a.multiply)(l,8)},xl:{border:(0,a.multiply)(r,8),size:(0,a.multiply)(l,10)},loadingColors:{primary:"#270A7F",secondary:i.primary.normal.background,tertiary:i.tertiary.normal.background,quaternary:i.quaternary.normal.background}}}},42176(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=s(t(22155)),i=s(t(75235)),l=s(t(46762));t(57521);var r,o=["id","name","className"];function s(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},d.apply(null,arguments)}var c,u,p=i.default.div(r||(c=["\n  width: 100%;\n  flex-basis: 100%;\n  ol {\n    list-style: decimal;\n  }\n  ul {\n    list-style: initial;\n  }\n"],u||(u=c.slice(0)),r=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(u)}}))));n.default=function(e){var n=e.id,t=e.name,i=e.className,r=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,o);return a.default.createElement(p,{id:"".concat(n,"_Markdown_container"),className:"markdown-body ".concat(i),name:"".concat(t,"_Markdown_container")},a.default.createElement(l.default,d({renderers:{root:a.default.Fragment,link:function(e){var n=e.href,t=e.children;return a.default.createElement("a",{target:"__blank",href:n},t)}}},r)))}},98081(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useEscapeKey=function(e,n,t){(0,a.useEffect)(function(){if(n&&t){var a=function(n){"Escape"===n.key&&e()};return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}},[e])};var a=t(22155)},50271(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,t=e.show,a=e.name,i=e.children,l=e.span,r=e.size,o=e.onDismiss,s=e.minHeight,d=e.height,c=e.maxHeight,u=e.loading,p=e.enableEscapeKey,g=void 0!==p&&p,x=e.bodyRef,C=void 0===x?function(){}:x,k=e.dismissable,A=void 0===k||k,R=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,v),D=function(e){if(Array.isArray(e))return e}(n=(0,m.useState)(!1))||function(e){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,a,i,l,r=[],o=!0,s=!1;try{for(i=(n=n.call(e)).next,!2;!(o=(t=i.call(n)).done)&&(r.push(t.value),2!==r.length);o=!0);}catch(e){s=!0,a=e}finally{try{if(!o&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw a}}return r}}(n)||function(e){if(e){if("string"==typeof e)return N(e,2);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),L=D[0],I=D[1],F=function(){I(!1),"function"==typeof o&&o()};return(0,m.useEffect)(function(){I(t)},[t]),(0,b.useEscapeKey)(F,g,A),L&&m.default.createElement(f.ThemeProvider,{theme:y.default},m.default.createElement(j,S({},R,{name:a}),m.default.createElement(w,{onClick:A&&F}),u?m.default.createElement(h.default,{name:"".concat(a,"__loading-indictor")}):m.default.createElement(O,{span:l,size:r,minHeight:s,height:d,maxHeight:c,ref:C},A&&m.default.createElement(E,{onClick:F,icon:"times",name:"".concat(a,"__dismiss-cross")}),m.default.createElement(_,{height:d},m.default.createElement(T.ScrollContainer,{container:!0},i)))))};var a,i,l,r,o,s,d,c,u,p,m=k(t(22155)),f=k(t(75235)),y=C(t(58467)),g=C(t(77443)),h=C(t(44663)),x=t(6871),T=t(56402),b=t(98081),v=["show","name","children","span","size","onDismiss","minHeight","height","maxHeight","loading","enableEscapeKey","bodyRef","dismissable"];function C(e){return e&&e.__esModule?e:{default:e}}function k(e,n){if("function"==typeof WeakMap)var t=new WeakMap,a=new WeakMap;return(k=function(e,n){if(!n&&e&&e.__esModule)return e;var i,l,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=n?a:t){if(i.has(e))return i.get(e);i.set(e,r)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((l=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(l.get||l.set)?i(r,o,l):r[o]=e[o]);return r})(e,n)}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},S.apply(null,arguments)}function N(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}function A(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var R=(0,f.keyframes)(a||(a=A(["\n  0% { transform: translateY(20%); opacity: 0; }\n  100% { transform: translateY(0%); opacity: 1; }\n"]))),D=(0,f.keyframes)(i||(i=A(["\n  0% { opacity: 0; }\n  100% { opacity: 1; }\n"]))),L=(0,f.css)(l||(l=A(["\n  "," 0.3s;\n"])),D),I=(0,f.css)(r||(r=A(["\n  "," 0.3s;\n"])),R),j=f.default.div(o||(o=A(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  position: fixed;\n  top: 0px;\n  left: 0px;\n  right: 0px;\n  bottom: 0px;\n  z-index: 999;\n"]))),w=f.default.div(s||(s=A(["\n  position: fixed;\n  top: 0px;\n  left: 0px;\n  right: 0px;\n  bottom: 0px;\n  background: rgba(0, 0, 0, 0.5);\n  animation: ",";\n"])),L),O=f.default.div(d||(d=A(["\n  ",";\n"])),function(e){var n=e.theme,t=e.span,a=e.size,i=e.height,l=e.maxHeight,r=e.minHeight;return(0,f.css)(c||(c=A(["\n    position: relative;\n    height: ",";\n    max-height: ",";\n    ",";\n    width: auto;\n    background: #fff;\n    width: ",";\n    border-radius: ",";\n    overflow: auto;\n    box-shadow: 0px 20px 80px -20px rgba(0, 0, 0, 0.3);\n    animation: ",";\n  "])),i||"100%",l||"90%",r&&"\n  min-height: ".concat(r,";\n  "),t&&(0,x.getSpanWidth)(t)||a&&n.size[a]||"auto",n.radius,I)}),E=(0,f.default)(g.default)(u||(u=A(["\n  ",";\n"])),function(e){var n=e.theme;return"\n  position: absolute;\n  top: ".concat(n.dismissOffset,";\n  right: ").concat(n.dismissOffset,";\n  color: ").concat(n.iconColor,";\n  background:transparent;\n  &:hover {\n    cursor:pointer;\n  }\n  z-index: 9999999;\n")}),_=f.default.div(p||(p=A(["\n  ","\n"])),function(e){var n=e.theme,t=e.height;return"\n    display: flex;\n    flex-flow: column;\n    height: 100%;\n    overflow: auto;\n    max-height: ".concat("auto"===t?"inherit":"unset",";\n    padding: ").concat(n.geometry.sm.spacing," 0;\n  ")})},58467(e,n){"use strict";function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n,a=e.fonts,i=e.geometry,l=e.colors;return{colors:l,fonts:a,geometry:i,radius:i.md.radius,dismissOffset:i.md.spacing,col:(n=i.columns.sizes,function(e){if(Array.isArray(e))return t(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),size:{sm:i.columns.sizes[3],md:i.columns.sizes[5],lg:i.columns.sizes[7],xl:i.columns.sizes[9]},iconColor:l.text.light.background}}},44279(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=l(t(22155)),i=l(t(73814));function l(e){return e&&e.__esModule?e:{default:e}}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},r.apply(null,arguments)}n.default=function(e){return a.default.createElement(i.default,r({},e,{isMulti:!0}))}},90735(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r=p(t(22155)),o=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),s=p(t(51795)),d=p(t(77443)),c=p(t(45177)),u=["id","name","size","icon","text","inline"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},m.apply(null,arguments)}function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=o.default.div(a||(a=f(["\n  ",";\n"])),function(e){var n=e.inline,t=(e.box,e.size,e.theme),a=(e.error,e.success,e.disabled);return e.readOnly,"\n    font-family: ".concat(t.font.family,";\n    font-weight: ").concat(t.font.weight.default,";\n    display: ").concat(n?"inline-flex":"flex",";\n    flex-direction: column;\n    align-items: center;\n    background-color: ").concat(t.navColors.primary,";\n    position: relative;\n    overflow: hidden;\n    opacity: ").concat(a?"0.5":"1",";\n  ")}),g=(0,o.default)(d.default)(i||(i=f(["\n  ",";\n"])),function(e){var n=e.size,t=e.theme;return e.disabled,"\n    opacity: 0.5;\n    color: ".concat(t.navColors.primary.dark.background,";\n    font-size: ").concat(t[n].font.size.icon,";\n    padding: ").concat(t[n].iconPadding,";\n  ")}),h=(0,o.default)(c.default)(l||(l=f(["\n  ",";\n"])),function(e){var n=e.size,t=e.theme;return e.disabled,"\n    opacity: 0.5;\n    color: ".concat(t.navColors.primary.dark.background,";\n    font-size: ").concat(t[n].font.size.text,";\n    cursor: default;\n  ")});n.default=function(e){var n=e.id,t=e.name,a=e.size,i=void 0===a?"md":a,l=e.icon,d=e.text,c=e.inline,p=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,u);return r.default.createElement(o.ThemeProvider,{theme:s.default},r.default.createElement(y,m({},p,{inline:c,size:i,id:"".concat(n,"-Container"),name:"".concat(t,"-Container")}),r.default.createElement(g,{icon:l,size:i,id:"".concat(n,"-IconStyled"),name:"".concat(t,"-IconStyled")}),r.default.createElement(h,{size:i,id:"".concat(n,"-TextStyled"),name:t},d)))}},51795(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){var n=e.fonts,t=e.geometry,i=e.colors;return{colors:i,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},sm:{font:{size:{icon:n.md.size,text:n.xs.size}},padding:t.sm.spacing,iconPadding:(0,a.divide)(t.sm.spacing,12)},md:{font:{size:{icon:n.lg.size,text:n.sm.size}},padding:t.md.spacing,iconPadding:(0,a.divide)(t.md.spacing,12)},lg:{font:{size:{icon:n.xl.size,text:n.md.size}},padding:t.lg.spacing,iconPadding:(0,a.divide)(t.lg.spacing,12)},navColors:{primary:i.primary,secondary:i.secondary,tertiary:i.tertiary,info:i.info,success:i.success,warning:i.warning,danger:i.danger}}}},77745(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=c(t(22155)),i=t(4508);t(33014);var l,r,o=c(t(75235)),s=(l=t(64453))&&l.__esModule?l:{default:l},d=["name","color","show","children","onOpen","onClose","preventDuplicate"];function c(e,n){if("function"==typeof WeakMap)var t=new WeakMap,a=new WeakMap;return(c=function(e,n){if(!n&&e&&e.__esModule)return e;var i,l,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=n?a:t){if(i.has(e))return i.get(e);i.set(e,r)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((l=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(l.get||l.set)?i(r,o,l):r[o]=e[o]);return r})(e,n)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function m(e,n,t){return(n=y(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,y(a.key),a)}}function y(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function g(e,n,t){return n=x(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(n,t||[],x(e).constructor):n.apply(e,t))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function T(e,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},T(e,n)}var b=(0,o.default)(i.ToastContainer)(r||(r=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n  ",";\n"])),function(e){var n=e.theme,t=e.color;return"\n    .Toastify__toast { border-radius: ".concat(n.radius,"; padding: ").concat(n.padding,"; overflow: hidden; background-color: ").concat(n.notificationColors[t].normal.background,"; }\n    .Toastify__toast-body { color: ").concat(n.notificationColors[t].normal.text,"; }\n    .Toastify__close-button { color: ").concat(n.notificationColors[t].normal.text,"; }\n    .Toastify__progress-bar { background: ").concat(n.notificationColors[t].light.background,"; }\n  ")}),v=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),g(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&T(e,n)}(n,e),function(e,n){return n&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"notify",value:function(e,n,t,l,r){var o=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach(function(n){m(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({onOpen:l,onClose:r,toastId:t?n:null},this.props.toastOptions);(0,i.toast)(a.default.createElement("div",null,e),o)}},{key:"render",value:function(){var e=this.props,n=e.name,t=e.color,i=e.show,l=e.children,r=e.onOpen,c=e.onClose,p=e.preventDuplicate,m=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,d);return a.default.createElement(o.ThemeProvider,{theme:s.default},a.default.createElement("div",{name:n},a.default.createElement(b,u({name:n,color:t},m)),i&&this.notify(l,n,p,r,c)))}}])}(a.Component);v.defaultProps={color:"success",toastOptions:{},preventDuplicate:!0},n.default=v},64453(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,radius:t.md.radius,padding:t.md.spacing,notificationColors:{primary:a.primary,secondary:a.secondary,tertiary:a.tertiary,quaternary:a.quaternary,quinary:a.quinary,senary:a.senary,info:a.info,success:a.success,warning:a.warning,danger:a.danger}}}},21083(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(22155)),i=t(5463);function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}n.default=function(e){var n,t,r=e.items,o=e.position,s=void 0===o?"bottom":o,d=e.width,c=void 0===d?150:d,u=(n=(0,a.useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,l,r,o=[],s=!0,d=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=l.call(t)).done)&&(o.push(a.value),o.length!==n);s=!0);}catch(e){d=!0,i=e}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(d)throw i}}return o}}(n,t)||function(e,n){if(e){if("string"==typeof e)return l(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=u[0],m=u[1],f=(0,a.useRef)(null),y=r.map(function(e){return a.default.createElement(i.MenuItem,{onClick:e.onClick},e.text)});return(0,a.useEffect)(function(){var e=function(e){f.current&&!f.current.contains(e.target)&&m(!1)},n=function(e){"Escape"===e.key&&m(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",n),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",n)}}),a.default.createElement(i.MenuWrapper,{ref:f},a.default.createElement(i.MenuToggle,{onClick:function(){return m(!p)}},a.default.createElement("span",null),a.default.createElement("span",null),a.default.createElement("span",null)),p&&a.default.createElement(i.Menu,{className:s,width:c},y))}},5463(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MenuWrapper=n.MenuToggle=n.MenuItem=n.Menu=void 0;var a,i,l,r,o,s=(a=t(75235))&&a.__esModule?a:{default:a};function d(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}n.MenuWrapper=s.default.div(i||(i=d(["\n  position: absolute;\n  top: 0;\n  right: 0;\n  font-family: ",";\n  font-size: ",";\n"])),function(e){return e.theme.fonts.family},function(e){return e.theme.fonts.sm.size}),n.MenuToggle=s.default.div(l||(l=d(["\n  cursor: pointer;\n  display: flex;\n  flex-direction: column;\n  padding: 10px;\n\n  & > span {\n    width: 3px;\n    height: 3px;\n    margin-top: 3px;\n    background: #83838e;\n    border-radius: 50%;\n  }\n"]))),n.Menu=s.default.ul(r||(r=d(["\n  width: ","px;\n  position: absolute;\n  right: 0;\n  background-color: ",";\n  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.05));\n  box-sizing: border-box;\n  border 1px solid #E8E9EC;\n  border-radius: 8px;\n  z-index: 1;\n  \n  &.top {\n    bottom: 40px;\n  }\n\n  &.bottom {\n    top: 40px;\n  }\n"])),function(e){return e.width},function(e){return e.theme.colors.basic.white}),n.MenuItem=s.default.li(o||(o=d(["\n  list-style-type: none;\n  border-bottom: 1px solid #e8e9ec;\n  padding: 15px;\n  margin: 0;\n  cursor: pointer;\n\n  &:last-child {\n    border-bottom: 0px;\n  }\n\n  &:hover {\n    background-color: ",";\n  }\n"])),function(e){return e.theme.colors.inputs.normal.background})},92518(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s=p(t(22155)),d=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),c=p(t(77443)),u=p(t(52026));function p(e){return e&&e.__esModule?e:{default:e}}function m(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var f=d.default.ul(a||(a=m(["\n  display: ",";\n  flex-direction: row;\n  font-family: ",";\n  font-size: ",";\n  list-style-type: none;\n"])),function(e){return e.inline?"inline-flex":"flex"},function(e){return e.theme.fonts.family},function(e){var n=e.size;return e.theme.sizes[n].font.size}),y=d.default.li(i||(i=m(["\n  opacity: ",";\n  cursor: ",";\n  background-color: ",";\n  color: ",";\n  border: 1px solid ",";\n  padding: ",";\n  border-right: 0;\n  line-height: ",";\n"])),function(e){return e.disabled?"0.5":"1"},function(e){return e.disabled?"not-allowed":"pointer"},function(e){var n=e.active,t=e.theme;return n?t.page.active.color.background:t.page.default.color.background},function(e){var n=e.active,t=e.theme;return n?t.page.active.color.text:t.page.default.color.text},function(e){return e.theme.page.border.color},function(e){var n=e.theme,t=e.size;return n.sizes[t].padding},function(e){var n=e.theme,t=e.size;return n.sizes[t].font.lineHeight}),g=(0,d.default)(y)(l||(l=m(["\n  border-bottom-left-radius: ",";\n  border-top-left-radius: ",";\n"])),function(e){return e.theme.geometry.xxs.radius},function(e){return e.theme.geometry.xxs.radius}),h=(0,d.default)(y)(r||(r=m(["\n  border-right: 1px solid ",";\n  border-bottom-right-radius: ",";\n  border-top-right-radius: ",";\n"])),function(e){return e.theme.page.border.color},function(e){return e.theme.geometry.xxs.radius},function(e){return e.theme.geometry.xxs.radius}),x=(0,d.default)(y)(o||(o=m(["\n  cursor: default;\n"]))),T=function(e){var n=e.id,t=e.name,a=e.numbers,i=e.size,l=e.activePage,r=e.onClick;return a.map(function(e){return s.default.createElement(y,{id:"".concat(n,"-").concat(e),name:"".concat(t,"-").concat(e),key:e,size:i,active:e===l,onClick:function(){return r(e)}},e)})};n.default=function(e){var n=e.id,t=e.name,a=e.inline,i=e.size,l=void 0===i?"md":i,r=e.activePage,o=e.itemsCountPerPage,p=e.totalItemsCount,m=e.onChange,b=r-(o-1)/2-1;b=b<0?0:Math.ceil(b);var v=Array(o).fill(0).map(function(e,n){return n+1+b}).filter(function(e){return e<=p&&e>0}),C=v.some(function(e){return e===p}),k=function(e,n){m&&!n&&m(e)},S=function(){return s.default.createElement(s.default.Fragment,null,s.default.createElement(g,{id:"".concat(n,"-UnorderedList-FirstPage"),name:"".concat(t,"-UnorderedList-FirstPage"),size:l,disabled:1===r,onClick:function(){return k(1,1===r)}},s.default.createElement(c.default,{icon:"fa-fast-backward"})),s.default.createElement(y,{size:l,id:"".concat(n,"-UnorderedList-StepBack"),name:"".concat(t,"-UnorderedList-StepBack"),disabled:1===r,onClick:function(){return k(r-1,1===r)}},s.default.createElement(c.default,{icon:"step-backward"})))},N=function(){return s.default.createElement(s.default.Fragment,null,s.default.createElement(y,{id:"".concat(n,"-UnorderedList-StepForward"),name:"".concat(t,"-UnorderedList-StepForward"),size:l,disabled:r===p,onClick:function(){return k(r+1,r===p)}},s.default.createElement(c.default,{icon:"step-forward"})),s.default.createElement(h,{id:"".concat(n,"-UnorderedList-LastPage"),name:"".concat(t,"-UnorderedList-LastPage"),size:l,disabled:r===p,onClick:function(){return k(p,r===p)}},s.default.createElement(c.default,{icon:"fa-fast-forward"})))};return s.default.createElement(d.ThemeProvider,{theme:u.default},s.default.createElement(f,{id:"".concat(n,"-UnorderedList"),name:"".concat(t,"-UnorderedList"),inline:a,size:l},s.default.createElement(S,null),s.default.createElement(T,{id:"".concat(n,"-UnorderedList-Numbers"),name:"".concat(t,"-UnorderedList-Numbers"),numbers:v,size:l,activePage:r,onClick:k}),!C&&s.default.createElement(x,{size:l},"..."),!C&&s.default.createElement(y,{id:"".concat(n,"-UnorderedList-LastPage"),name:"".concat(t,"-UnorderedList-LastPage"),size:l,onClick:function(){return k(p)}},p),s.default.createElement(N,null)))}},52026(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.colors,t=e.fonts,a=e.geometry;return{colors:n,fonts:t,geometry:a,page:{active:{color:{background:n.primary.normal.background,text:n.primary.normal.text}},default:{color:{background:n.inputs.light.background,text:n.text.dark.background}},border:{color:n.inputs.normal.background}},sizes:{xs:{padding:a.xxs.spacing,font:{size:t.xs.size,lineHeight:t.xs.lineHeight}},sm:{padding:a.xs.spacing,font:{size:t.sm.size,lineHeight:t.sm.lineHeight}},md:{padding:a.sm.spacing,font:{size:t.md.size,lineHeight:t.md.lineHeight}},lg:{padding:a.md.spacing,font:{size:t.lg.size,lineHeight:t.lg.lineHeight}},xl:{padding:a.lg.spacing,font:{size:t.xl.size,lineHeight:t.xl.lineHeight}},xxl:{padding:a.xl.spacing,font:{size:t.xxl.size,lineHeight:t.xxl.lineHeight}}}}}},90653(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=l(t(22155)),i=l(t(5486));function l(e){return e&&e.__esModule?e:{default:e}}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},r.apply(null,arguments)}n.default=function(e){return a.default.createElement(i.default,r({},e,{pill:!0}),e.children)}},65146(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=o(t(22155)),l=o(t(75235)),r=["children"];function o(e){return e&&e.__esModule?e:{default:e}}var s,d,c=l.default.pre(a||(s=["\n  ",";\n"],d||(d=s.slice(0)),a=Object.freeze(Object.defineProperties(s,{raw:{value:Object.freeze(d)}}))),function(e){var n=e.theme,t=e.wrap,a=e.size,i=void 0===a?"md":a;return"\n    padding: ".concat(n.geometry[i].spacing,";\n    color: ").concat(n.colors.text.light.text,";\n    background: ").concat(n.colors.overlay.light.background,";\n    border: 1px solid ").concat(n.colors.text.normal.background,";\n    border-radius: ").concat(n.geometry.md.radius,";\n    font-size: ").concat(n.fonts[i].size,";\n    line-height: ").concat(n.fonts[i].lineheight,";\n    height: 100%;\n    font-family: ").concat(n.fonts.monospace,";\n    flex-basis: 100%;\n    ").concat(t&&"white-space: pre-wrap;","\n    flex: 1;\n  ")});n.default=function(e){var n=e.children,t=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,r);return i.default.createElement(c,t,n)}},13859(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r=u(t(22155)),o=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),s=u(t(37151)),d=t(6871),c=["size","src","accountName","outline","height"];function u(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},p.apply(null,arguments)}function m(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var f=o.default.div(a||(a=m(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size,a=e.color,i=e.border,l=e.height;return"\n    box-sizing: border-box;\n    width: ".concat(l||n[t].picture.width,";\n    height: ").concat(l||n[t].picture.height,";\n    padding: ").concat(n[t].picture.padding,";\n\n    ").concat(i&&"\n      border-radius: 50%;\n      border-width: ".concat(n[t].border.width,";\n      border-color: ").concat(n.profileColors[a].normal.background,";\n      border-style: ").concat(n[t].border.style,";\n    "),"\n  ")}),y=o.default.img(i||(i=m(["\n  ",";\n"])),function(e){var n=e.theme,t=e.color,a=e.outline;return"\n    height: 100%;\n    width: 100%;\n    border-radius: 50%;\n    background: #eee;\n    ".concat(a&&"\n      box-shadow: 0px 0px 0px 3px ".concat(n.profileColors[t].light.background,"; // Used to create a non-obstructing outline around any shape\n    "),"\n  ")}),g=o.default.div(l||(l=m(["\n  ",";\n"])),function(e){var n=e.theme,t=e.color,a=e.size,i=e.outline,l=e.height;return"\n    width: 100%;\n    height: 0;\n    padding: 50% 0;\n    border-radius: 50%;\n    color: white;\n    text-align: center;\n    background: ".concat(n.profileColors[t].normal.background,";\n    font-family: ").concat(n.font.family,";\n    font-size: ").concat(l?(0,d.divide)(l,2.5):n[a].font.size,";\n    line-height: calc(50% - ").concat(l?(0,d.divide)(l,7):(0,d.divide)(n[a].font.size,2.5),");\n    ").concat(i&&"\n      box-shadow: 0px 0px 0px 3px ".concat(n.profileColors[t].light.background,";\n    "),"\n  ")});n.default=function(e){var n=e.size,t=void 0===n?"md":n,a=e.src,i=e.accountName,l=e.outline,d=void 0!==l&&l,u=e.height,m=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),h=i.charAt(0)?i.charAt(0).toUpperCase():"?",x=["primary","secondary","tertiary","quaternary","quinary","senary"],T=e.color||x[h.charCodeAt(0)%x.length]||"primary";return r.default.createElement(o.ThemeProvider,{theme:s.default},r.default.createElement(f,p({},m,{size:t,color:T,height:u}),a?r.default.createElement(y,{color:T,outline:d,src:a}):r.default.createElement(g,{color:T,outline:d,size:t,height:u},h)))}},37151(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){var n=e.fonts,t=e.geometry,i=e.colors;return{colors:i,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},xxs:{border:{width:t.xxs.border,style:"solid"},picture:{width:t.xxs.profile.size,height:t.xxs.profile.size,padding:t.xxs.profile.padding},font:{size:(0,a.multiply)(n.xs.size,2)}},xs:{border:{width:t.xs.border,style:"solid"},picture:{width:t.xs.profile.size,height:t.xs.profile.size,padding:t.xs.profile.padding},font:{size:(0,a.multiply)(n.xs.size,2.5)}},sm:{border:{width:t.sm.border,style:"solid"},picture:{width:t.sm.profile.size,height:t.sm.profile.size,padding:t.sm.profile.padding},font:{size:(0,a.multiply)(n.sm.size,2.5)}},md:{border:{width:t.md.border,style:"solid"},picture:{width:t.md.profile.size,height:t.md.profile.size,padding:t.md.profile.padding},font:{size:(0,a.multiply)(n.md.size,2.5)}},lg:{border:{width:t.lg.border,style:"solid"},picture:{width:t.lg.profile.size,height:t.lg.profile.size,padding:t.lg.profile.padding},font:{size:(0,a.multiply)(n.lg.size,2.5)}},xl:{border:{width:t.xl.border,style:"solid"},picture:{width:t.xl.profile.size,height:t.xl.profile.size,padding:t.xl.profile.padding},font:{size:(0,a.multiply)(n.xl.size,2.5)}},profileColors:{primary:i.primary,secondary:i.secondary,tertiary:i.tertiary,quaternary:i.quaternary,quinary:i.quinary,senary:i.senary,info:i.info,success:i.success,warning:i.warning,danger:i.danger}}}},315(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l=u(t(22155)),r=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),o=u(t(13859)),s=u(t(33732)),d=t(6871),c=["children","maxChildren","showCount","reverse","showOverflow","color","size","outline","dimSecondary","theme","overlap","height"];function u(e){return e&&e.__esModule?e:{default:e}}function p(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var m=r.default.div(a||(a=p(["\n  display: inline-flex;\n  flex-direction: row-reverse;\n  justify-content: flex-start;\n  position: relative;\n"]))),f=r.default.div(i||(i=p(["\n  ",";\n"])),function(e){var n=e.index,t=e.offset,a=e.reverse;return"\n    height: 100%;\n    margin-left: -".concat(n&&t,";\n    z-index: ").concat(a?100*n:100,";\n  ")});n.default=(0,r.withTheme)(function(e){var n=e.children,t=e.maxChildren,a=void 0===t?3:t,i=e.showCount,r=void 0===i||i,u=e.reverse,p=void 0!==u&&u,y=e.showOverflow,g=void 0===y||y,h=e.color,x=void 0===h?"secondary":h,T=e.size,b=void 0===T?"xs":T,v=e.outline,C=void 0!==v&&v,k=e.dimSecondary,S=void 0===k||k,N=e.theme,A=e.overlap,R=void 0===A?.4:A,D=e.height,L=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),I=(0,s.default)(N),j=1*R,w=function(e){var n=e.children,t=e.height,a=e.maxChildren,i=e.showCount,r=e.showOverflow,s=e.color,d=e.size,c=e.outline,u=e.dimSecondary,p=e.offset,m=e.reverse;if(n&&Array.isArray(n)){var y=n.length,g=a-(y>a);if(n=(n=n.slice(0,g)).map(function(e,n){var a={size:d,color:s,outline:c&&0===n,height:t||null,style:u?{filter:n>0?"contrast(50%) brightness(150%)":"none"}:null};return e=l.default.cloneElement(e,a),l.default.createElement(f,{offset:p,size:d,reverse:m,index:n},e)}),r&&y>g){var h=y-g,x=l.default.createElement(o.default,{name:"overflow-circle",size:d,color:s,height:t,accountName:"".concat(i&&h<=9?h:"+")});x=l.default.createElement(f,{offset:p,size:d,reverse:m,index:g},x),n.push(x)}return n.reverse()}}({children:n,maxChildren:a,showCount:r,showOverflow:g,color:x,size:b,outline:C,dimSecondary:S,offset:(0,d.multiply)(D||I[b].picture.offset,j),height:D,reverse:p});return l.default.createElement(m,L,w)})},33732(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){var n=e.fonts,t=e.geometry;return{colors:e.colors,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},xxs:{border:{width:t.xxs.border,style:"solid"},picture:{width:t.xxs.profile.size,height:t.xxs.profile.size,padding:t.xxs.profile.padding,offset:(0,a.add)(t.xl.profile.size,t.xxs.profile.padding)},font:{size:(0,a.multiply)(n.xs.size,2)}},xs:{border:{width:t.xs.border,style:"solid"},picture:{width:t.xs.profile.size,height:t.xs.profile.size,padding:t.xs.profile.padding,offset:(0,a.add)(t.xs.profile.size,t.xs.profile.padding)},font:{size:(0,a.multiply)(n.xs.size,2.5)}},sm:{border:{width:t.sm.border,style:"solid"},picture:{width:t.sm.profile.size,height:t.sm.profile.size,padding:t.sm.profile.padding,offset:(0,a.add)(t.sm.profile.size,t.sm.profile.padding)},font:{size:(0,a.multiply)(n.sm.size,2.5)}},md:{border:{width:t.md.border,style:"solid"},picture:{width:t.md.profile.size,height:t.md.profile.size,padding:t.md.profile.padding,offset:(0,a.add)(t.md.profile.size,t.md.profile.padding)},font:{size:(0,a.multiply)(n.md.size,2.5)}},lg:{border:{width:t.lg.border,style:"solid"},picture:{width:t.lg.profile.size,height:t.lg.profile.size,padding:t.lg.profile.padding,offset:(0,a.add)(t.lg.profile.size,t.lg.profile.padding)},font:{size:(0,a.multiply)(n.lg.size,2.5)}},xl:{border:{width:t.xl.border,style:"solid"},picture:{width:t.xl.profile.size,height:t.xl.profile.size,padding:t.xl.profile.padding,offset:(0,a.add)(t.xl.profile.size,t.xl.profile.padding)},font:{size:(0,a.multiply)(n.xl.size,2.5)}}}}},5774(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=d(t(22155)),l=d(t(83920)),r=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),o=d(t(42408)),s=["completed","color"];function d(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(null,arguments)}var u,p,m=(0,r.default)(l.default)(a||(u=["\n  &&& {\n    background-color: ",";\n  }\n  & .MuiLinearProgress-barColorPrimary {\n    background-color: ",";\n  }\n  & .MuiLinearProgress-bar2Buffer {\n    background-color: ",";\n  }\n"],p||(p=u.slice(0)),a=Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(p)}}))),function(e){var n=e.theme,t=e.baseColor;return n.colors[t].light.background},function(e){var n=e.theme,t=e.baseColor;return n.colors[t].dark.background},function(e){var n=e.theme,t=e.baseColor;return n.colors[t].normal.background});n.default=function(e){var n=e.completed,t=e.color,a=void 0===t?"green":t,l=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,s);return i.default.createElement(r.ThemeProvider,{theme:o.default},i.default.createElement(m,c({variant:"determinate",value:n,baseColor:a},l)))}},42408(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.colors;return{colors:{primary:n.primary,secondary:n.secondary,tertiary:n.tertiary,quaternary:n.quaternary,quinary:n.quinary,senary:n.senary,info:n.info,success:n.success,warning:n.warning,danger:n.danger,green:n.gradient.green,blue:n.gradient.blue}}}},52805(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t(22155)),i=o(t(5486)),l=o(t(19454)),r=["id","name","onClick","label","span","children","disabled","success","error","labelTextAlign","color"];function o(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},s.apply(null,arguments)}n.default=function(e){e.id;var n=e.name,t=(e.onClick,e.label),o=e.span,d=e.children,c=e.disabled,u=e.success,p=e.error,m=e.labelTextAlign,f=e.color,y=void 0===f?"success":f,g=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,r);return a.default.createElement(l.default.Column,{label:t,span:o,labelTextAlign:m},a.default.createElement(i.default,s({id:"propertySheet__button--".concat(n),name:n,onClick:function(t){return e.onClick(t,n)},color:y,disabled:c,error:p,success:u},g),d))}},94269(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r=u(t(22155)),o=u(t(11832)),s=u(t(48144)),d=u(t(75235)),c=["children","label","span","labelTextAlign"];function u(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},p.apply(null,arguments)}function m(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var f=(0,d.default)(o.default)(a||(a=m(["\n  padding: ",";\n"])),function(e){return e.theme.geometry.xs.spacing}),y=(0,d.default)(s.default)(i||(i=m(["\n  margin-right: ",";\n"])),function(e){return e.theme.geometry.xs.spacing}),g=d.default.div(l||(l=m(["\n  margin-bottom: ",";\n  flex: 1;\n"])),function(e){return e.theme.geometry.xs.spacing});n.default=function(e){var n=e.children,t=e.label,a=e.span,i=e.labelTextAlign,l=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c);return r.default.createElement(f,{container:!0,item:!0,span:a||null},t?r.default.createElement(g,null,r.default.createElement(y,p({textAlign:i},l),t)):null,n)}},72094(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=d(t(22155)),l=d(t(6308)),r=d(t(75235)),o=d(t(19454)),s=["children","name"];function d(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(null,arguments)}var u,p,m=(0,r.default)(l.default)(a||(u=["\n  text-align: center;\n  margin-bottom: ",";\n"],p||(p=u.slice(0)),a=Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(p)}}))),function(e){return e.theme.geometry.sm.spacing});n.default=function(e){var n=e.children,t=e.name,a=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,s);return i.default.createElement(o.default.Row,null,i.default.createElement(o.default.Column,null,i.default.createElement(m,c({id:"propertySheet__heading--".concat(t),name:"propertySheet__heading--".concat(t),size:"lg"},a),n)))}},19965(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t(22155)),i=r(t(63786)),l=["children"];function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(null,arguments)}n.default=function(e){var n=e.children,t=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,l);return a.default.createElement(i.default,o({container:!0,align:"between"},t),n)}},10861(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t(22155)),i=o(t(73814)),l=o(t(19454)),r=["name","children","onChange","value","options","error","success","label","span","labelTextAlign","disabled"];function o(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},s.apply(null,arguments)}n.default=function(e){var n=e.name,t=e.children,o=(e.onChange,e.value),d=e.options,c=e.error,u=e.success,p=e.label,m=e.span,f=e.labelTextAlign,y=e.disabled,g=void 0!==y&&y,h=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,r);return a.default.createElement(l.default.Column,{label:p,span:m,labelTextAlign:f},a.default.createElement(i.default,s({name:n,id:"propertySheet__select--".concat(n),onChange:function(t){return e.onChange(t,n)},color:"success",disabled:g,value:o,options:d,error:c,success:u},h),t))}},65590(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t(22155)),i=o(t(45177)),l=o(t(19454)),r=["name","value","children","error","success","label","span","color","labelTextAlign"];function o(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},s.apply(null,arguments)}n.default=function(e){var n=e.name,t=e.value,o=e.children,d=e.error,c=e.success,u=e.label,p=e.span,m=e.color,f=e.labelTextAlign,y=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,r);return a.default.createElement(l.default.Column,{label:u,span:p,labelTextAlign:f},a.default.createElement(i.default,s({name:n,id:"propertySheet__select--".concat(n),color:m,disabled:!1,error:d,success:c,value:t},y),o))}},76762(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t(22155)),i=o(t(43339)),l=o(t(19454)),r=["name","value","children","onChange","error","success","label","span","color","disabled","textInputRef","labelTextAlign"];function o(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},s.apply(null,arguments)}n.default=function(e){var n=e.name,t=e.value,o=e.children,d=(e.onChange,e.error),c=e.success,u=e.label,p=e.span,m=e.color,f=void 0===m?"normal":m,y=e.disabled,g=void 0!==y&&y,h=e.textInputRef,x=e.labelTextAlign,T=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,r);return a.default.createElement(l.default.Column,{label:u,span:p,labelTextAlign:x},a.default.createElement(i.default,s({name:n,id:"propertySheet__select--".concat(n),onChange:function(t){return e.onChange(t,n)},color:f,disabled:g,error:d,success:c,value:t,textInputRef:h},T),o))}},19454(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=y(t(22155)),l=y(t(96408)),r=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),o=y(t(72094)),s=y(t(19965)),d=y(t(52805)),c=y(t(10861)),u=y(t(94269)),p=y(t(76762)),m=y(t(65590)),f=["id","name","children","error","success"];function y(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},g.apply(null,arguments)}var h,x,T=r.default.div(a||(h=["\n  padding: ",";\n"],x||(x=h.slice(0)),a=Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(x)}}))),function(e){return e.theme.geometry.md.spacing}),b=function(e){var n=e.id,t=e.name,a=e.children,o=e.error,s=e.success,d=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,f);return i.default.createElement(r.ThemeProvider,{theme:l.default},i.default.createElement(T,g({},d,{id:"".concat(n,"__container"),name:"".concat(t,"__container"),success:s,error:o}),a))};b.ButtonColumn=d.default,b.SelectColumn=c.default,b.TextInputColumn=p.default,b.TextColumn=m.default,b.HeaderRow=o.default,b.Row=s.default,b.Column=u.default,n.default=b},96408(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.geometry,t=e.fonts,a=e.colors;return{colors:a,fonts:t,geometry:n,radius:n.md.spacing,iconPadding:n.sm.spacing,containerBorder:n.md.border,containerBorderThickness:n.md.border,selectColors:{default:{border:a.inputs.normal.background,icon:a.text.normal.background},success:{border:a.success.normal.background},error:{border:a.danger.normal.background}}}}},63786(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=s(t(22155)),l=s(t(75235)),r=t(6871),o=["children"];function s(e){return e&&e.__esModule?e:{default:e}}var d,c,u=l.default.div(a||(d=["\n  ",";\n"],c||(c=d.slice(0)),a=Object.freeze(Object.defineProperties(d,{raw:{value:Object.freeze(c)}}))),function(e){var n=e.hidden,t=e.container,a=e.span,i=e.item,l=e.grow,o=e.shrink,s=e.reverse,d=e.distribution,c=void 0===d?"stretch":d,u=e.vdistribution,p=void 0===u?"stretch":u,m=e.itemAlign,f=void 0===m?"stretch":m,y=e.visuallyHidden,g=e.fullHeight,h=e.wrap,x=void 0===h||h;return"\n    box-sizing: border-box;\n    display: ".concat((n?"none":t&&"flex")||"initial",";\n    flex-basis ").concat(!a&&0!==a&&"0"!==a&&i?"auto":a?(0,r.getSpanWidth)(a):"0",";\n    max-width: ").concat(a?(0,r.getSpanWidth)(a):"100%",";\n    flex-grow: ").concat((!!l||0===l||"0"===l)&&l||i&&"1"||"initial",";\n    flex-shrink: ").concat((!!o||0===o||"0"===o)&&o||i&&"1"||"initial",";\n    flex-direction: ").concat(s?"row-reverse":"row",";\n    flex-wrap: ").concat(x,";\n    justify-content: ").concat(c&&(("stretch"===c?"stretch":"center"===c&&"center")||"start"===c&&"flex-start"||"end"===c&&"flex-end"||"between"===c&&"space-between"||"around"===c&&"space-around")||"initial",";\n    align-content: ").concat(p&&(("stretch"===p?"stretch":"center"===p&&"center")||"start"===p&&"flex-start"||"end"===p&&"flex-end"||"between"===p&&"space-between"||"around"===p&&"space-around")||"initial",";\n    align-items: ").concat((f&&"stretch"===f?"stretch":"center"===f&&"center")||"top"===f&&"flex-start"||"bottom"===f&&"flex-end"||"baseline"===f&&"baseline"||"initial",";\n    visibility: ").concat(y?"hidden":"initial",";\n    height: ").concat(g?"100%;":"initial",";\n  ")});n.default=function(e){var n=e.children,t=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,o);return i.default.createElement(u,t,n)}},56402(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ScrollContainer=void 0;var a,i,l,r=s(t(11832)),o=s(t(75235));function s(e){return e&&e.__esModule?e:{default:e}}n.ScrollContainer=(0,o.default)(r.default)(a||(i=["\n  ","\n"],l||(l=i.slice(0)),a=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(l)}}))),function(e){var n=e.theme,t=e.color,a=void 0===t?"overlay":t;return"\n    flex: auto;\n    overflow: auto;\n\n    ::-webkit-scrollbar {\n      width: 12px;\n    }\n    ::-webkit-scrollbar-track {\n      background: ".concat(n.colors[a].light.background,";\n    }\n    ::-webkit-scrollbar-thumb {\n      background: #888;\n      \n      :hover {\n        background: ").concat(n.colors[a].dark.background,";\n      }\n    }\n  ")})},75870(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d=x(t(22155)),c=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),u=x(t(12152)),p=x(t(5486)),m=x(t(77443)),f=["size"],y=["size","inline"],g=["size","active"],h=["onSearch","onChange","onBlur","onFocus","id","name","placeholder","readOnly","disabled","size","autoComplete","value","buttonText","inline","pill","hideButton"];function x(e){return e&&e.__esModule?e:{default:e}}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},T.apply(null,arguments)}function b(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function v(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var C=c.default.div(a||(a=v(["\n  ",";\n"])),function(e){var n=e.theme,t=e.inline,a=e.disabled;return"\n    font-family: ".concat(n.font.family,";\n    font-weight: ").concat(n.font.weight.default,";\n    display: ").concat(t?"inline-flex":"flex",";\n    position: relative;\n    overflow: hidden;\n    opacity: ").concat(a?"0.5":"1",";\n  ")}),k=c.default.div(i||(i=v(["\n  ",";\n"])),function(e){var n=e.size,t=e.theme,a=e.pill,i=e.hideButton;return"\n    box-sizing: border-box;\n    display: flex;\n    flex: 1 1 auto;\n    border-width: ".concat(t[n].border.width,";\n    border-color: ").concat(t.searchColors.default.border,";\n    border-style: ").concat(t[n].border.style,";\n    align-items: center;\n    background-color: ").concat(t.searchColors.default.background,";\n    border-radius: ").concat(a?"5000px":t[n].radius,";\n    ").concat(!i&&"border-top-right-radius: 0; border-bottom-right-radius: 0;","\n  ")}),S=(0,c.default)(function(e){e.size;var n=b(e,f);return d.default.createElement(m.default,n)})(l||(l=v(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    opacity: 0.3;\n    color: ".concat(n.searchColors.default.icon,";\n    font-size: ").concat(n[t].font.size.small,";\n    margin-left: ").concat(n[t].margin,";\n  ")}),N=(0,c.default)(function(e){e.size,e.inline;var n=b(e,y);return d.default.createElement("input",n)})(r||(r=v(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size,a=e.inline,i=e.readOnly,l=e.disabled;return"\n    padding: ".concat(n[t].padding,";\n    color: ").concat(n.searchColors.default.text,";\n    font-size: ").concat(n[t].font.size.default,";\n    font-family: ").concat(n.font.family,";\n    line-height: ").concat(n[t].font.lineHeight,";\n    background-color: transparent;\n    width: ").concat(a?"auto":"100%",";\n    display: block;\n    border: none;\n    flex: 1;\n    &::-ms-clear {\n      display: none;\n    }\n    &:focus {\n      outline: none;\n    }\n\n    ").concat(!i&&"\n      &:focus ~ button {\n        background-color: ".concat(n.searchColors.active.button.background,";\n        color: ").concat(n.searchColors.active.button.text,";\n      }\n    "),"\n\n    ").concat(l&&"\n      cursor: not-allowed;\n    ","\n\n\n    &::placeholder {\n      color: ").concat(n.searchColors.default.placeholder,";\n    }\n  ")}),A=c.default.form(o||(o=v(["\n  display: flex;\n  width: 100%;\n"]))),R=(0,c.default)(function(e){e.size,e.active;var n=b(e,g);return d.default.createElement(p.default,n)})(s||(s=v(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size,a=e.active;return"\n    border-top-left-radius: 0;\n    border-bottom-left-radius: 0;\n    border-width: ".concat(n[t].border.width,";\n    outline: none;\n    background-color: ").concat(a?n.searchColors.active.button.background:n.searchColors.default.button.background,";\n    border-color: ").concat(a?n.searchColors.active.button.background:n.searchColors.default.button.background,";\n    color: ").concat(a?n.searchColors.active.button.text:n.searchColors.default.button.text,";\n\n    &:active, &:focus, &:hover {\n      background-color: ").concat(a?n.searchColors.active.button.background:n.searchColors.default.button.background,";\n      border-color: ").concat(a?n.searchColors.active.button.background:n.searchColors.default.button.background,";\n      color: ").concat(a?n.searchColors.active.button.text:n.searchColors.default.button.text,";\n    }\n  ")});n.default=function(e){var n=e.onSearch,t=e.onChange,a=e.onBlur,i=e.onFocus,l=e.id,r=e.name,o=e.placeholder,s=void 0===o?"Search":o,p=e.readOnly,m=e.disabled,f=e.size,y=void 0===f?"md":f,g=e.autoComplete,x=void 0===g?"off":g,v=e.value,D=e.buttonText,L=void 0===D?"Search":D,I=e.inline,j=e.pill,w=void 0===j||j,O=e.hideButton,E=b(e,h);return d.default.createElement(c.ThemeProvider,{theme:u.default},d.default.createElement(C,T({inline:I,name:"".concat(r,"-Outer"),id:"".concat(l,"-Outer")},E),d.default.createElement(A,{onSubmit:function(e){e.preventDefault(),n()}.bind(void 0),name:"".concat(r,"-Form"),id:"".concat(l,"-Form")},d.default.createElement(k,{size:y,pill:w,hideButton:O},d.default.createElement(S,{size:y,icon:"search",name:"".concat(l,"-Icon"),id:"".concat(l,"-Icon")}),d.default.createElement(N,{id:l,name:r,placeholder:s,type:"search",size:y,disabled:m,readOnly:p,autoComplete:x?"on":"off",onChange:t,onBlur:a,onFocus:i,value:v})),!O&&d.default.createElement(R,{id:"".concat(l,"-SearchButton"),name:"".concat(r,"-SearchButton"),inline:!0,pill:w,size:y,disabled:m||0===v.length,readOnly:p,active:v.length>0},L))))}},12152(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},sm:{border:{width:t.sm.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.xs.spacing," ").concat(t.sm.spacing),radius:t.md.radius,font:{size:{default:n.sm.size,small:n.xs.size},lineHeight:n.sm.lineHeight}},md:{border:{width:t.md.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.sm.spacing," ").concat(t.md.spacing),radius:t.md.radius,font:{size:{default:n.md.size,small:n.sm.size},lineHeight:n.md.lineHeight}},lg:{border:{width:t.md.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.md.spacing," ").concat(t.lg.spacing),radius:t.md.radius,font:{size:{default:n.lg.size,small:n.md.size},lineHeight:n.lg.lineHeight}},xl:{border:{width:t.lg.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.lg.spacing," ").concat(t.xl.spacing),radius:t.md.radius,font:{size:{default:n.xl.size,small:n.lg.size},lineHeight:n.xl.lineHeight}},searchColors:{default:{border:a.inputs.normal.background,background:a.basic.white,text:a.text.dark.background,placeholder:a.inputs.dark.background,button:a.neutral.dark,icon:a.neutral.dark},active:{text:a.text.dark.background,placeholder:a.inputs.dark.background,button:a.success.normal}}}}},73814(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r=g(t(22155)),o=y(t(96107)),s=y(t(97759)),d=y(t(46608)),c=g(t(75235)),u=y(t(45177)),p=t(39579),m=["loadOptions"],f=["id","name","isMulti","multiValueColor","size","classPrefix","error","success","onChange","inline","options","pill","menuPlacement","value","loadOptions","defaultOptions","isDisabled","debounceTimeout"];function y(e){return e&&e.__esModule?e:{default:e}}function g(e,n){if("function"==typeof WeakMap)var t=new WeakMap,a=new WeakMap;return(g=function(e,n){if(!n&&e&&e.__esModule)return e;var i,l,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=n?a:t){if(i.has(e))return i.get(e);i.set(e,r)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((l=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(l.get||l.set)?i(r,o,l):r[o]=e[o]);return r})(e,n)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},h.apply(null,arguments)}function x(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(){var e,n,t="function"==typeof Symbol?Symbol:{},a=t.iterator||"@@iterator",i=t.toStringTag||"@@toStringTag";function l(t,a,i,l){var s=a&&a.prototype instanceof o?a:o,d=Object.create(s.prototype);return b(d,"_invoke",function(t,a,i){var l,o,s,d=0,c=i||[],u=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(n,t){return l=n,o=0,s=e,p.n=t,r}};function m(t,a){for(o=t,s=a,n=0;!u&&d&&!i&&n<c.length;n++){var i,l=c[n],m=p.p,f=l[2];t>3?(i=f===a)&&(s=l[(o=l[4])?5:(o=3,3)],l[4]=l[5]=e):l[0]<=m&&((i=t<2&&m<l[1])?(o=0,p.v=a,p.n=l[1]):m<f&&(i=t<3||l[0]>a||a>f)&&(l[4]=t,l[5]=a,p.n=f,o=0))}if(i||t>1)return r;throw u=!0,a}return function(i,c,f){if(d>1)throw TypeError("Generator is already running");for(u&&1===c&&m(c,f),o=c,s=f;(n=o<2?e:s)||!u;){l||(o?o<3?(o>1&&(p.n=-1),m(o,s)):p.n=s:p.v=s);try{if(d=2,l){if(o||(i="next"),n=l[i]){if(!(n=n.call(l,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,o<2&&(o=0)}else 1===o&&(n=l.return)&&n.call(l),o<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),o=1);l=e}else if((n=(u=p.n<0)?s:t.call(a,p))!==r)break}catch(n){l=e,o=1,s=n}finally{d=1}}return{value:n,done:u}}}(t,i,l),!0),d}var r={};function o(){}function s(){}function d(){}n=Object.getPrototypeOf;var c=[][a]?n(n([][a]())):(b(n={},a,function(){return this}),n),u=d.prototype=o.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,b(e,i,"GeneratorFunction")),e.prototype=Object.create(u),e}return s.prototype=d,b(u,"constructor",d),b(d,"constructor",s),s.displayName="GeneratorFunction",b(d,i,"GeneratorFunction"),b(u),b(u,i,"Generator"),b(u,a,function(){return this}),b(u,"toString",function(){return"[object Generator]"}),(T=function(){return{w:l,m:p}})()}function b(e,n,t,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}b=function(e,n,t,a){function l(n,t){b(e,n,function(e){return this._invoke(n,t,e)})}n?i?i(e,n,{value:t,enumerable:!a,configurable:!a,writable:!a}):e[n]=t:(l("next",0),l("throw",1),l("return",2))},b(e,n,t,a)}function v(e,n,t,a,i,l,r){try{var o=e[l](r),s=o.value}catch(e){return void t(e)}o.done?n(s):Promise.resolve(s).then(a,i)}function C(e,n){if(e){if("string"==typeof e)return k(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?k(e,n):void 0}}function k(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach(function(n){A(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function A(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function R(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function D(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var L=(0,c.default)(function(e){var n=e.loadOptions,t=R(e,m);return r.default.cloneElement(r.default.createElement(n?s.default:o.default),N(N({},t),{},{loadOptions:n}))})(a||(a=D(["\n  ",";\n"])),function(e){var n=e.theme,t=e.pill,a=e.inline,i=e.size,l=e.error,r=e.success,o=e.classNamePrefix,s=e.multiValueColor,d=e.menuMaxHeight,c=e.menuMinHeight;return"    \n  font-family: ".concat(n.font.family,";\n  display: ").concat(a?"inline-block":"block",";\n  width: ").concat(a?"auto":"100%",";\n  background-color: ").concat(l&&n.selectColors.error.background||r&&n.selectColors.success.background||n.selectColors.default.background,";\n  border-width: ").concat(n[i].border.width,";\n  border-color: ").concat(l&&n.selectColors.error.border||r&&n.selectColors.success.border||n.selectColors.default.border,";\n  border-style: ").concat(n[i].border.style,";\n  border-radius: ").concat(t?"5000px":n[i].radius,";\n\n  &:focus-within, &:hover, .focus {\n    border-color: ").concat(l&&n.selectColors.error.border||r&&n.selectColors.success.border||n.selectColors.active.border,";\n    background-color: ").concat(l&&n.selectColors.error.background||r&&n.selectColors.success.background||n.selectColors.active.background,";\n    outline: none;\n    box-shadow: none;\n  }   \n\n  .").concat(o,"__control {\n    font-weight: ").concat(n.font.weight.default,";\n    padding: 0px;\n    background: none;\n    border: none;\n\n    &:focus-within, &:hover, .focus {\n      background: none;\n      border: none;\n      outline: none;\n      box-shadow: none;\n    }   \n\n    .").concat(o,"__indicator {\n      svg { \n        path {\n          fill: ").concat(l&&n.selectColors.error.border||r&&n.selectColors.success.border||n.selectColors.default.text,";\n        }\n      }\n    }\n\n    .").concat(o,"__indicator-separator {\n        display: none;\n    }\n      \n    .").concat(o,"__value-container, .").concat(o,"__value-container:focus-within, .").concat(o,"__value-container:hover, .").concat(o,"__value-container.focus  {\n        padding: ").concat(n[i].padding,";\n        color: ").concat(n.selectColors.default.text,";\n        font-size: ").concat(n[i].font.size.default,";\n        line-height: ").concat(n[i].font.lineHeight,";\n        &>div {\n            padding-top: 0px;\n            padding-bottom: 0px;\n        }\n      }  \n    }\n\n    .").concat(o,"__menu, .").concat(o,"__menu-list {\n      max-height: ").concat(d||"auto","  !important;\n      min-height: ").concat(c||"auto"," !important;\n    }\n\n    .").concat(o,"__multi-value__label {\n      color: ").concat(n.multiValueColors[s].text,";\n      font-size: ").concat(n[i].font.size.default,";\n      line-height: ").concat(n[i].font.lineHeight,";\n      background-color:  ").concat(n.multiValueColors[s].background,";\n      border-radius:0;\n    }\n    .").concat(o,"__multi-value {\n      border-radius: ").concat(n[i].radius,";\n      overflow:hidden;\n    }\n    .").concat(o,"__multi-value__remove {\n      color: ").concat(n.multiValueColors[s].text,";\n      border-color:").concat(n.multiValueColors[s].border,";\n      background-color:  ").concat(n.multiValueColors[s].background,";\n      border-radius:0;\n      &:hover  {\n        color: ").concat(n.multiValueColors[s].hover.text,";\n        border-color:").concat(n.multiValueColors[s].hover.border,";\n        background-color:  ").concat(n.multiValueColors[s].hover.background,";\n      }\n    }\n  ")}),I=c.default.div(i||(i=D(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    padding: ".concat(n[t].padding,";\n  ")}),j=c.default.div(l||(l=D(["\n  ",";\n"])),function(e){var n=e.inline;return"\n    display: ".concat(n?"inline-block":"block",";\n    width: ").concat(n?"auto":"100%",";\n  ")}),w={multiValue:function(e,n){return n.data.isFixed?N(N({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,n){return n.data.isFixed?N(N({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,n){return n.data.isFixed?N(N({},e),{},{display:"none"}):e},menuPortal:function(e){return N(N({},e),{},{zIndex:9999})}};n.default=function(e){e.id;var n,t,a,i,l,o=e.name,s=e.isMulti,m=e.multiValueColor,y=void 0===m?"primary":m,g=e.size,b=void 0===g?"md":g,k=e.classPrefix,S=void 0===k?"rs":k,N=e.error,A=e.success,D=e.onChange,O=e.inline,E=e.options,_=void 0===E?[]:E,F=e.pill,P=void 0===F||F,B=e.menuPlacement,U=void 0===B?"auto":B,$=e.value,M=e.loadOptions,V=e.defaultOptions,G=void 0===V?[]:V,z=e.isDisabled,W=e.debounceTimeout,q=void 0===W?0:W,J=R(e,f),Y=(t=(0,r.useState)(""),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,l,r,o=[],s=!0,d=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=l.call(t)).done)&&(o.push(a.value),o.length!==n);s=!0);}catch(e){d=!0,i=e}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(d)throw i}}return o}}(t,a)||C(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),H=Y[0],K=Y[1],Q=(0,r.useMemo)(function(){return _.sort(function(e){return H?e.label.startsWith(H)?-1:void 0:0})},[H,_]),Z=(0,r.useCallback)(function(e){K(e)},[]),X=N||A||null,ee="".concat(o,"Input").concat(N?"Error":A&&"Success"),ne=("sm"===b?"xs":"md"===b&&"sm")||"lg"===b&&"md"||"xl"===b&&"lg"||void 0,te=(N?"danger":A&&"success")||void 0,ae=document.getElementsByTagName("BODY")[0],ie=null===(n=_.filter)||void 0===n?void 0:n.call(_,function(e){return e.isFixed}),le=(0,r.useCallback)((0,p.debounce)(function(){var e,n=(e=T().m(function e(n){var t,a,i;return T().w(function(e){for(;;)switch(e.n){case 0:if(M){e.n=1;break}return e.a(2);case 1:return e.n=2,M(n);case 2:if(t=e.v,a=t.options,!((i=t.total)&&i>a.length)){e.n=3;break}return e.a(2,[{value:"",label:"Entire list not shown, please start typing to conduct search",isDisabled:!0}].concat(a));case 3:return e.a(2,a)}},e)}),function(){var n=this,t=arguments;return new Promise(function(a,i){var l=e.apply(n,t);function r(e){v(l,a,i,r,o,"next",e)}function o(e){v(l,a,i,r,o,"throw",e)}r(void 0)})});return function(e){return n.apply(this,arguments)}}(),q),[M]);return r.default.createElement(c.ThemeProvider,{theme:d.default},r.default.createElement(j,{name:"".concat(o,"__select__container"),inline:O},r.default.createElement(L,h({styles:w,inline:O,isMulti:s,multiValueColor:y,menuPlacement:U,menuPortalTarget:ae,options:Q,value:"string"==typeof $?(i=_,l=$,i.find(function(e){return e.value===l})):$,name:o,classNamePrefix:S,size:b,error:N,success:A,pill:P,loadOptions:M?le:void 0,defaultOptions:Array.isArray(G)?Array.from(new Set([].concat(x(G),x(ie)))):G,onChange:function(e,n){return function(e,n,t,a,i){i&&i({target:{name:t,action:n,type:"select",value:e?e.value:null,label:e?e.label:null,select:"clear"===n?a:e}})}(e,n.action,o,ie,D)},isDisabled:z,onInputChange:Z},J)),X&&r.default.createElement(I,{name:"".concat(o,"__message"),size:b,error:N,sucess:A},r.default.createElement(u.default,{name:ee,size:ne,weight:"bold",color:te},X))))}},46608(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},sm:{border:{width:t.sm.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.xs.spacing," ").concat(t.sm.spacing),radius:t.md.radius,font:{size:{default:n.sm.size,small:n.xs.size},lineHeight:n.sm.lineHeight}},md:{border:{width:t.md.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.sm.spacing," ").concat(t.md.spacing),radius:t.md.radius,font:{size:{default:n.md.size,small:n.sm.size},lineHeight:n.md.lineHeight}},lg:{border:{width:t.md.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.md.spacing," ").concat(t.lg.spacing),radius:t.md.radius,font:{size:{default:n.lg.size,small:n.md.size},lineHeight:n.lg.lineHeight}},xl:{border:{width:t.lg.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.lg.spacing," ").concat(t.xl.spacing),radius:t.md.radius,font:{size:{default:n.xl.size,small:n.lg.size},lineHeight:n.xl.lineHeight}},selectColors:{default:{border:a.inputs.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},dark:{border:a.inputs.dark.background,background:a.inputs.dark.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},active:{border:a.info.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},success:{border:a.success.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},error:{border:a.danger.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background}},multiValueColors:{primary:{border:a.primary.normal.background,background:a.primary.normal.background,text:a.primary.normal.text,hover:{background:a.primary.dark.background,border:a.primary.dark.background,text:a.primary.dark.text}},secondary:{background:a.secondary.normal.background,border:a.secondary.normal.background,text:a.secondary.normal.text,hover:{background:a.secondary.dark.background,border:a.secondary.dark.background,text:a.secondary.dark.text}},tertiary:{background:a.tertiary.normal.background,border:a.tertiary.normal.background,text:a.tertiary.normal.text,hover:{background:a.tertiary.dark.background,border:a.tertiary.dark.background,text:a.tertiary.dark.text}},neutral:{background:a.neutral.normal.background,border:a.neutral.normal.background,text:a.neutral.normal.text,hover:{background:a.neutral.dark.background,border:a.neutral.dark.background,text:a.neutral.dark.text}},info:{background:a.info.normal.background,border:a.info.normal.background,text:a.info.normal.text,hover:{background:a.info.dark.background,border:a.info.dark.background,text:a.info.dark.text}},success:{background:a.success.normal.background,border:a.success.normal.background,text:a.success.normal.text,hover:{background:a.success.dark.background,border:a.success.dark.background,text:a.success.dark.text}},warning:{background:a.warning.normal.background,border:a.warning.normal.background,text:a.warning.normal.text,hover:{background:a.warning.dark.background,border:a.warning.dark.background,text:a.warning.dark.text}},danger:{background:a.danger.normal.background,border:a.danger.normal.background,text:a.danger.normal.text,hover:{background:a.danger.dark.background,border:a.danger.dark.background,text:a.danger.dark.text}}}}}},91003(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d=g(t(22155)),c=g(t(75235)),u=g(t(74807)),p=g(t(45177)),m=g(t(43339)),f=g(t(59987)),y=t(6871);function g(e){return e&&e.__esModule?e:{default:e}}function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach(function(n){T(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function T(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=c.default.div(a||(a=b(["\n  position: fixed;\n  top: 0px;\n  left: 0px;\n  right: 0px;\n  bottom: 0px;\n"]))),C=c.default.div(i||(i=b(["\n  position: relative;\n  border-radius: ",";\n  background: ",";\n  border: 1px solid ",";\n  overflow: visible;\n  padding: ",";\n  margin-top: ",";\n\n  &:after,\n  &:before {\n    bottom: 100%;\n    left: 50%;\n    border: solid transparent;\n    content: ' ';\n    height: 0;\n    width: 0;\n    position: absolute;\n    pointer-events: none;\n  }\n\n  &:after {\n    border-color: rgba(0, 0, 0, 0);\n    border-bottom-color: ",";\n    border-width: ",";\n    margin-left: -",";\n  }\n  &:before {\n    border-color: rgba(0, 0, 0, 0);\n    border-bottom-color: ",";\n    border-width: ",";\n    margin-left: -",";\n  }\n"])),function(e){return e.theme.geometry.md.radius},function(e){return e.theme.colors.basic.white},function(e){return e.theme.colors.overlay.normal.background},function(e){return e.theme.geometry.sm.spacing},function(e){var n=e.theme;return"".concat(n.geometry.xs.spacing)},function(e){return e.theme.colors.basic.white},function(e){return e.theme.geometry.xs.spacing},function(e){return e.theme.geometry.xs.spacing},function(e){return e.theme.colors.overlay.normal.background},function(e){var n=e.theme;return(0,y.add)(n.geometry.xs.spacing,1)},function(e){var n=e.theme;return(0,y.add)(n.geometry.xs.spacing,1)}),k=c.default.div(l||(l=b(["\n  width: ",";\n  max-width: ",";\n  max-height: ",";\n  overflow: auto;\n"])),function(e){return e.menuWidth||"auto"},function(e){return e.menuMaxWidth||"auto"},function(e){return e.menuMaxHeight||"auto"}),S=c.default.div(r||(r=b(["\n  padding: ",";\n  margin-right: ",";\n  display: flex;\n  justify-content: flex-start;\n  align-items: center;\n"])),function(e){var n=e.theme;return"".concat(n.geometry.xs.spacing," ").concat(n.geometry.xxs.spacing)},function(e){var n=e.theme;return"".concat(n.geometry.xs.spacing," ").concat(n.geometry.sm.spacing)}),N=(0,c.default)(f.default)(o||(o=b(["\n  margin-right: ",";\n"])),function(e){return e.theme.geometry.xs.spacing}),A=(0,c.default)(m.default)(s||(s=b(["\n  margin-top: ",";\n  margin-bottom: ",";\n"])),function(e){return e.theme.geometry.xxs.spacing},function(e){return e.theme.geometry.xs.spacing});n.default=function(e){var n=e.id,t=e.name,a=e.children,i=e.showFilter,l=void 0===i||i,r=e.filterPlaceholder,o=e.onFilterChange,s=void 0===o?function(){}:o,c=e.filterValue,m=e.onSelectChange,f=void 0===m?function(){}:m,y=e.options,g=e.selected,h=void 0===g?[]:g,T=e.showDropdown,b=e.onOutsideClick,R=void 0===b?function(){}:b,D=e.menuMaxHeight,L=e.menuWidth,I=e.menuMaxWidth,j=e.showSelectAll,w=void 0===j||j,O=e.onSelectAll,E=void 0===O?function(){}:O,_=e.allSelected,F=e.groupSelected,P=void 0===F||F,B=e.attachment,U=void 0===B?"top center":B,$=e.constraints,M=void 0===$?[{to:"scrollParent",attachment:"together"}]:$,V=function(e){return f({target:{name:e.value,type:"checkbox",checked:!e.checked}})},G=function(e){return!!h.find(function(n){return"string"==typeof n?n===e.value:n.value===e.value})};return d.default.createElement("div",null,T&&d.default.createElement(v,{onClick:R}),d.default.createElement(u.default,{attachment:U,constraints:M},d.default.Children.only(a),T&&d.default.createElement(C,null,l&&d.default.createElement(A,{id:"".concat(n,"__filter"),name:"".concat(t,"__filter"),size:"sm",placeholder:r,value:c,onChange:s}),d.default.createElement(k,{menuMaxHeight:D,menuWidth:L,menuMaxWidth:I},w&&d.default.createElement(S,null,d.default.createElement(N,{id:"".concat(n,"__select-all__checkbox"),name:"".concat(t,"__select-all__checkbox"),onChange:E,checked:_,inline:!0,pill:!1}),d.default.createElement(p.default,{id:"".concat(n,"__select-all__checkbox-text"),name:"".concat(t,"__select-all__checkbox-text"),inline:!0,color:"normal",onClick:E},_?"Unselect all":"Select all")),!!y&&y.map(function(e){return x(x({},e),{},{checked:G(e)})}).sort(P?function(e,n){return e.checked===n.checked?0:e.checked?-1:1}:function(){}).map(function(e,a){return d.default.createElement(S,{key:e.value},d.default.createElement(N,{id:"".concat(n,"__").concat(e.value,"__checkbox"),name:"".concat(t,"__").concat(e.value,"__checkbox"),onChange:function(){return V(e)},checked:G(e),inline:!0,pill:!1}),d.default.createElement(p.default,{id:"".concat(n,"__").concat(e.value,"__checkbox-text"),name:"".concat(t,"__").concat(e.value,"__checkbox-text"),inline:!0,color:"normal",onClick:function(){return V(e)}},e.label))})))))}},51884(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d,c=b(t(22155)),u=b(t(45902)),p=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),m=b(t(45177)),f=b(t(73814)),y=b(t(77443)),g=b(t(63786)),h=b(t(11832)),x=t(96107),T=["id","name","size","theme","error","success","onChange","options","fileName","templateLabel","value","onDelete","canDelete"];function b(e){return e&&e.__esModule?e:{default:e}}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},v.apply(null,arguments)}function C(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var k=(0,p.default)(h.default)(a||(a=C(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    padding-right: ".concat(n.geometry.md.spacing,";\n    padding-left: ").concat(n.geometry.xxs.spacing,";\n\n  ")}),S=(0,p.default)(k)(i||(i=C(["\n  flex-basis: 10%;\n"]))),N=p.default.div(l||(l=C(["\n  ",";\n"])),function(e){var n=e.theme,t=e.error,a=e.success;return"\n    background-color: white;\n    border: ".concat(n.containerBorderThickness," solid ").concat(t?n.selectColors.error.border:a?n.selectColors.success.border:n.selectColors.default.border,";\n    padding: ").concat(n.geometry.md.spacing,";\n    cursor: pointer;\n    border-radius: ").concat(n.radius,"\n  ")}),A=(0,p.default)(g.default)(r||(r=C(["\n  align-items: center;\n"]))),R=p.default.div(o||(o=C(["\n  padding-bottom: ",";\n"])),function(e){return e.theme.geometry.xs.spacing}),D=p.default.div(s||(s=C(["\n  display: flex;\n  align-items: center;\n  position: relative;\n"]))),L=(0,p.default)(y.default)(d||(d=C(["\n  position: absolute;\n  right: ",";\n  cursor: pointer;\n  :hover {\n    color: ",";\n  }\n"])),function(e){return e.theme.geometry.xs.spacing},function(e){return e.theme.colors.danger.light.text}),I=function(e){var n=e.children,t=e.onDelete,a=e.constructedStyles,i=e.data,l=e.innerProps,r=e.canDelete,o=e.setValue,s=e.selectProps,d=e.clearValue,u=e.isSelected;return c.default.createElement(D,null,c.default.createElement(x.components.Option,v({},e,l)),r&&!i.hiddenIcon&&c.default.createElement(L,{onClick:function(n){t(n,e.value),l.onClick(),u&&d(),o(s.value,"selectOption")},id:n,name:n,icon:"times",color:a.selectColors.default.icon,size:"1x"}))};n.default=(0,p.withTheme)(function(e){var n=e.id,t=e.name,a=e.size,i=void 0===a?"md":a,l=e.theme,r=e.error,o=e.success,s=e.onChange,d=e.options,g=e.fileName,x=e.templateLabel,b=e.value,C=e.onDelete,k=e.canDelete,D=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,T),L=(0,u.default)(l);return c.default.createElement(p.ThemeProvider,{theme:u.default},c.default.createElement(N,v({},D,{id:"".concat(n,"_Container"),success:o,error:r}),c.default.createElement(A,{id:"".concat(n,"__Row_1"),container:!0,fullHeight:!0},c.default.createElement(S,{fullHeight:!0,id:"".concat(n,"__Column_1")},c.default.createElement(y.default,{id:"".concat(n,"__Icon"),name:"".concat(t,"__Icon"),icon:"file-upload",color:L.selectColors.default.icon,size:"6x"})),c.default.createElement(h.default,{item:!0,id:"".concat(n,"__Column_2")},c.default.createElement(R,null,c.default.createElement(m.default,{id:"".concat(n,"__Top_Text"),name:"".concat(t,"__Top_Text"),size:"lg",color:"normal",weight:"normal",overflow:"visible",align:"left"},g),c.default.createElement(m.default,{id:"".concat(n,"__Bottom_Text"),name:"".concat(t,"__Bottom_Text"),size:"md",color:"normal",weight:"normal",overflow:"visible",align:"left"},x)),c.default.createElement(f.default,{id:"".concat(n,"__Select"),name:"".concat(t,"__Select"),size:i,error:r,success:o,options:d,onChange:s,value:b,components:{Option:function(e){var n=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return c.default.createElement(I,v({},n,{onDelete:C,canDelete:k,constructedStyles:L}))}}})))))})},45902(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.geometry,t=e.fonts,a=e.colors;return{colors:a,fonts:t,geometry:n,radius:n.md.spacing,containerBorder:n.md.border,containerBorderThickness:n.md.border,selectColors:{default:{border:a.inputs.normal.background,icon:a.text.light.background},success:{border:a.success.normal.background},error:{border:a.danger.normal.background}}}}},16783(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l=c(t(22155)),r=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),o=c(t(39091)),s=c(t(5486)),d=["options","disabled","id","name","pill","size","onChange","selected","inline","color"];function c(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var m=(0,r.default)(s.default)(a||(a=p(["\n  ",";\n"])),function(e){e.theme,e.size;var n=e.pill,t=e.buttonLeft,a=e.buttonRight;return"\n    border-top-left-radius: ".concat((n&&t?"100000px":"0px")||0,";\n    border-bottom-left-radius: ").concat((n&&t?"100000px":"0px")||0,";\n    border-top-right-radius: ").concat((n&&a?"100000px":"0px")||0,";\n    border-bottom-right-radius: ").concat((n&&a?"100000px":"0px")||0,";\n  ")}),f=r.default.div(i||(i=p(["\n  ",";\n"])),function(e){var n=e.inline;return"\n    display: ".concat(n?"inline-flex":"flex",";\n  ")});n.default=function(e){var n=e.options,t=e.disabled,a=e.id,i=e.name,s=e.pill,c=e.size,p=void 0===c?"md":c,y=e.onChange,g=e.selected,h=e.inline,x=e.color,T=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,d);return l.default.createElement(r.ThemeProvider,{theme:o.default},l.default.createElement(f,u({},T,{inline:h}),n.map(function(e,r){return l.default.createElement(m,{id:"".concat(a,"-").concat(e,"-button"),pill:s,key:e,name:"".concat(i,"-").concat(e,"-button"),inline:h,size:p,buttonLeft:0===r,buttonRight:r===n.length-1,outline:g!==e&&g!==r,onClick:function(n){return y(r,e,n)},color:x,disabled:t},e)})))}},39091(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.colors,t=e.fonts,a=e.geometry;return{colors:n,fonts:t,geometry:a,sm:{radius:a.md.radius},md:{radius:a.md.radius},lg:{radius:a.md.radius},xl:{padding:"".concat(a.lg.spacing," ").concat(a.xl.spacing),radius:a.md.radiu}}}},23050(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=c(t(22155)),i=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),l=c(t(86476)),r=c(t(37357));t(93101);var o,s,d=["id","name","inline"];function c(e){return e&&e.__esModule?e:{default:e}}function u(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var p=i.default.div(o||(o=u(["\n  "," position: relative;\n  display: block;\n  width: 100%;\n  height: 100%;\n"])),function(e){var n=e.theme;return e.inline,"\n  font-family: ".concat(n.font.family,";\n  font-weight: ").concat(n.font.weight.default,";\n")}),m=(0,i.default)(r.default)(s||(s=u(["\n  position: absolute !important;\n  width: 100%;\n  height: 100%;\n"])));n.default=function(e){var n=e.id,t=e.name,r=e.inline,o=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,d);return a.default.createElement(i.ThemeProvider,{theme:l.default},a.default.createElement(p,{id:"".concat(n,"-Outer"),name:"".concat(t,"-Outer"),inline:r},a.default.createElement(m,o)))}},86476(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry;return{colors:e.colors,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},sm:{border:{width:t.sm.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.xs.spacing," ").concat(t.sm.spacing),radius:t.md.radius,font:{size:{default:n.sm.size,small:n.xs.size},lineHeight:n.sm.lineHeight}},md:{border:{width:t.md.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.sm.spacing," ").concat(t.md.spacing),radius:t.md.radius,font:{size:{default:n.md.size,small:n.sm.size},lineHeight:n.md.lineHeight}},lg:{border:{width:t.md.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.md.spacing," ").concat(t.lg.spacing),radius:t.md.radius,font:{size:{default:n.lg.size,small:n.md.size},lineHeight:n.lg.lineHeight}},xl:{border:{width:t.lg.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.lg.spacing," ").concat(t.xl.spacing),radius:t.md.radius,font:{size:{default:n.xl.size,small:n.lg.size},lineHeight:n.xl.lineHeight}}}}},6626(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Tab",{enumerable:!0,get:function(){return s.default}}),n.TabPanel=function(e){var n=e.children,t=e.value,a=e.index;return l.default.createElement(u,{hidden:t!==a},t===a&&n)},n.Tabs=void 0;var a,i,l=d(t(22155)),r=d(t(75235)),o=d(t(62299)),s=d(t(49602));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var u=r.default.div(a||(a=c(["\n  width: 100%;\n  height: 100%;\n"])));n.Tabs=(0,r.default)(o.default)(i||(i=c(["\n  ","\n"])),function(e){var n=e.theme,t=e.indicatorColor;return"\n  & .MuiTabs-indicator {\n    background-color: ".concat(function(e,n){return"secondary"===n?e.colors.secondary.dark.background:"tertiary"===n?e.colors.tertiary.dark.background:e.colors.primary.dark.background}(n,t),";\n  }\n  ")})},45177(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=s(t(22155)),l=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),r=s(t(98125)),o=["children"];function s(e){return e&&e.__esModule?e:{default:e}}var d,c,u=l.default.p(a||(d=["\n  ",";\n"],c||(c=d.slice(0)),a=Object.freeze(Object.defineProperties(d,{raw:{value:Object.freeze(c)}}))),function(e){var n=e.theme,t=e.weight,a=void 0===t?"normal":t,i=e.align,l=void 0===i?"left":i,r=e.nowrap,o=e.overflow,s=void 0===o?"visible":o,d=e.italic,c=e.inline,u=e.size,p=void 0===u?"md":u,m=e.color,f=void 0===m?"normal":m;return"\n    font-family: ".concat(n.textFonts.family,";\n    font-weight: ").concat(n.textFonts.weight[a],";\n    text-align: ").concat(l,";\n    text-overflow: ellipsis;\n    word-wrap: break-word;\n    overflow-wrap: break-word;\n    white-space: ").concat(r?"nowrap":"initial",";\n    overflow: ").concat(s,"\n    font-style: ").concat(d?"italic":"initial",";\n    display: ").concat(c?"inline-block":"block",";\n    margin: ").concat(n.sizes[p].margin,";\n    padding: ").concat(n.sizes[p].padding,";\n    font-size: ").concat(n.sizes[p].font.size,";\n    line-height: ").concat(n.sizes[p].font.lineHeight,";\n    color:").concat(n.textColors[f].text,";\n  ")});n.default=function(e){var n=e.children,t=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,o);return i.default.createElement(l.ThemeProvider,{theme:r.default},i.default.createElement(u,t,n))}},98125(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.colors,t=e.fonts;return{colors:n,fonts:t,geometry:e.geometry,textFonts:{family:t.family,weight:{light:t.weight.light,normal:t.weight.normal,bold:t.weight.bold}},textColors:{light:{text:n.text.light.background,border:""},normal:{text:n.text.normal.background,border:""},dark:{text:n.text.dark.background,border:""},primary:{text:n.primary.normal.background,border:""},secondary:{text:n.secondary.normal.background,border:""},tertiary:{text:n.tertiary.normal.background,border:""},quaternary:{text:n.quaternary.normal.background,border:""},quinary:{text:n.quinary.normal.background,border:""},senary:{text:n.senary.normal.background,border:""},neutral:{text:n.neutral.normal.background,border:""},info:{text:n.info.normal.background,border:""},success:{text:n.success.normal.background,border:""},warning:{text:n.warning.normal.background,border:""},danger:{text:n.danger.normal.background,border:""},white:{text:n.basic.white}},sizes:{xs:{margin:"0",padding:"0",font:{size:t.xs.size,lineHeight:t.xs.lineHeight}},sm:{margin:"0",padding:"0",font:{size:t.sm.size,lineHeight:t.sm.lineHeight}},md:{margin:"0",padding:"0",font:{size:t.md.size,lineHeight:t.md.lineHeight}},lg:{margin:"0",padding:"0",font:{size:t.lg.size,lineHeight:t.lg.lineHeight}},xl:{margin:"0",padding:"0",font:{size:t.xl.size,lineHeight:t.xl.lineHeight}},xxl:{margin:"0",padding:"0",font:{size:t.xxl.size,lineHeight:t.xxl.lineHeight}}}}}},46776(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d=y(t(22155)),c=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),u=y(t(26914)),p=y(t(45177)),m=y(t(77443)),f=["id","name","maxLength","onChange","onBlur","onFocus","placeholder","value","autoComplete","size","success","error","box","disabled","readOnly","resize","pill"];function y(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},g.apply(null,arguments)}function h(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=c.default.div(a||(a=h(["\n  ",";\n"])),function(e){var n=e.theme,t=e.disabled;return"\n    font-family: ".concat(n.font.family,";\n    font-weight: ").concat(n.font.weight.default,";\n    flex-direction: column;\n    display: flex;\n    position: relative;\n    overflow: hidden;\n    opacity: ").concat(t?"0.5":"1",";\n  ")}),T=c.default.div(i||(i=h(["\n  ",";\n"])),function(e){var n=e.box,t=e.pill,a=e.size,i=e.theme,l=e.error,r=e.success,o=e.disabled,s=e.readOnly;return"\n    display: flex;\n    flex: 1 1 auto;\n    position: relative;\n    flex-direction: column;\n\n    outline: ".concat(n?i[a].border.width:"0",";\n    border-width: ").concat(n?i[a].border.width:"0 0 ".concat(i[a].border.width," 0"),";\n    border-color: ").concat(l&&i.textColors.error.border||r&&i.textColors.success.border||i.textColors.default.border,";\n    border-style: ").concat(i[a].border.style,";\n    border-radius: ").concat(n&&(t?i[a].pillRadius:i[a].radius),";\n    align-items: center;\n    background-color: ").concat(n&&(l&&i.textColors.error.background||r&&i.textColors.success.background||i.textColors.default.background)||"transparent",";\n    \n    ").concat(!o&&!s&&"\n    &:focus-within, .focus {\n      border-color: ".concat(l&&i.textColors.error.border||r&&i.textColors.success.border||i.textColors.active.border,";\n      background-color: ").concat(n&&(l&&i.textColors.error.background||r&&i.textColors.success.background||i.textColors.active.background)||"transparent",";\n    }"),"\n  ")}),b=c.default.textarea(l||(l=h(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size,a=e.error,i=e.success,l=e.resize;return"\n    padding: ".concat(n[t].padding,";\n    color: ").concat(a&&n.textColors.error.text||i&&n.textColors.success.text||n.textColors.default.text,";\n    font-size: ").concat(n[t].font.size.default,";\n    line-height: ").concat(n[t].font.lineHeight,";\n    background-color: transparent;\n    display: block;\n    border: none;\n    flex: 1;\n    width: 100%;\n\n    ").concat(l?"":"resize: none;","\n\n    &:focus {\n      outline: none;\n    }\n\n    &::placeholder {\n      color: ").concat(a&&n.textColors.error.placeholder||i&&n.textColors.success.placeholder||n.textColors.default.placeholder,";\n    }\n\n    &::-ms-clear, &::-ms-reveal {\n      display: none;\n    }\n  ")}),v=c.default.div(r||(r=h(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    padding: ".concat(n[t].padding,";\n  ")}),C=c.default.span(o||(o=h(["\n  ",";\n"])),function(e){var n=e.error,t=e.success,a=e.theme,i=e.size;return"\n    color: ".concat(n&&a.textColors.error.border||t&&a.textColors.success.border||a.textColors.dark.border,";\n    font-size: ").concat(a[i].font.size.small,";\n    margin-right: ").concat(a[i].margin,";\n    position: absolute;\n    top: 50%;\n    right: 0;\n    margin-top: -").concat(a[i].font.size.small,";\n  ")}),k=(0,c.default)(p.default)(s||(s=h(["\n  position: absolute;\n  bottom: 0px;\n  right: 20px;\n"])));n.default=function(e){var n=e.id,t=e.name,a=e.maxLength,i=e.onChange,l=e.onBlur,r=e.onFocus,o=e.placeholder,s=e.value,y=e.autoComplete,h=void 0===y||y,S=e.size,N=void 0===S?"md":S,A=e.success,R=e.error,D=e.box,L=void 0===D||D,I=e.disabled,j=e.readOnly,w=e.resize,O=e.pill,E=void 0===O||O,_=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,f),F=R||A;return d.default.createElement(c.ThemeProvider,{theme:u.default},d.default.createElement(x,g({},_,{disabled:I,id:"".concat(n,"-container"),name:"".concat(t,"-container")}),d.default.createElement(T,{box:L,pill:E,size:N,error:R,success:A,disabled:I,readOnly:j},d.default.createElement(b,{size:N,error:R,success:A,id:n,name:t,onChange:i,onFocus:r,onBlur:l,placeholder:o,value:s,autoComplete:h?"on":"off",disabled:I,readOnly:j,resize:w}),F&&d.default.createElement(C,{error:R,success:A,size:N},d.default.createElement(m.default,{icon:R?"exclamation-circle":A&&"check"})),a&&d.default.createElement(k,{name:"charCounter",color:(R?"danger":A&&"success")||void 0},s&&s.length||0,"/",a)),F&&d.default.createElement(v,{id:"".concat(n).concat((R?"Error":A&&"Success")||"","Message"),name:"".concat(t).concat((R?"Error":A&&"Success")||"","Message"),size:N},d.default.createElement(p.default,{name:"".concat(t,"Input").concat(R?"Error":A&&"Success"),weight:"bold",size:("sm"===N?"xs":"md"===N&&"sm")||"lg"===N&&"md"||"xl"===N&&"lg"||void 0,color:R?"danger":A&&"success"},F))))}},26914(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},sm:{border:{width:t.sm.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.xs.spacing," ").concat(t.sm.spacing),radius:t.md.radius,pillRadius:t.xl.radius,font:{size:{default:n.sm.size,small:n.xs.size},lineHeight:n.sm.lineHeight}},md:{border:{width:t.md.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.xs.spacing," ").concat(t.sm.spacing),radius:t.md.radius,pillRadius:t.xl.radius,font:{size:{default:n.md.size,small:n.sm.size},lineHeight:n.md.lineHeight}},lg:{border:{width:t.md.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.sm.spacing," ").concat(t.md.spacing),radius:t.md.radius,pillRadius:t.xl.radius,font:{size:{default:n.lg.size,small:n.md.size},lineHeight:n.lg.lineHeight}},xl:{border:{width:t.lg.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.sm.spacing," ").concat(t.md.spacing),radius:t.md.radius,pillRadius:t.xl.radius,font:{size:{default:n.xl.size,small:n.lg.size},lineHeight:n.xl.lineHeight}},textColors:{default:{border:a.inputs.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},dark:{border:a.inputs.dark.background,background:a.inputs.dark.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},active:{border:a.info.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},success:{border:a.success.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},error:{border:a.danger.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background}}}}},88487(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l=c(t(22155)),r=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),o=c(t(46795)),s=c(t(45177)),d=["id","children","color","size","padding","weight"];function c(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var m=r.default.div(a||(a=p(["\n  ",";\n"])),function(e){var n=e.theme,t=e.color,a=e.inline,i=e.size;return"\n    display: ".concat(a?"inline-block":"block",";\n    background-color: ").concat(n.cardColor[t].background,";\n    box-shadow: 0 1px 2px ").concat(n.cardColor[t].shadow,";\n    padding: ").concat(n[i].padding,";\n    border-radius: ").concat(n[i].radius,";\n  ")}),f=(0,r.default)(s.default)(i||(i=p(["\n  ",";\n"])),function(e){var n=e.theme,t=e.textColor;return"\n    color: ".concat(n.cardColor[t].text,";\n  ")});n.default=function(e){var n=e.id,t=e.children,a=e.color,i=void 0===a?"primary":a,s=e.size,c=void 0===s?"md":s,p=e.padding,y=void 0===p?"md":p,g=e.weight,h=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,d);return l.default.createElement(r.ThemeProvider,{theme:o.default},l.default.createElement(m,u({id:n,size:y,color:i},h),l.default.createElement(f,{id:"".concat(n,"Text"),size:c,textColor:i,align:"center",weight:g},t)))}},46795(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.colors,t=e.fonts,a=e.geometry;return{colors:n,fonts:t,geometry:a,cardColor:{primary:{background:n.primary.normal.background,shadow:n.primary.light.background,text:n.primary.normal.text},secondary:{background:n.secondary.normal.background,shadow:n.secondary.light.background,text:n.secondary.normal.text},tertiary:{background:n.tertiary.normal.background,shadow:n.tertiary.light.background,text:n.tertiary.normal.text},quaternary:{background:n.quaternary.normal.background,shadow:n.quaternary.light.background,text:n.quaternary.normal.text},quinary:{background:n.quinary.normal.background,shadow:n.quinary.light.background,text:n.quinary.normal.text},senary:{background:n.senary.normal.background,shadow:n.senary.light.background,text:n.senary.normal.text},neutral:{background:n.neutral.normal.background,shadow:n.neutral.light.background,text:n.neutral.normal.text},info:{background:n.info.normal.background,shadow:n.info.light.background,text:n.info.normal.text},success:{background:n.success.normal.background,shadow:n.success.light.background,text:n.success.normal.text},warning:{background:n.warning.normal.background,shadow:n.warning.light.background,text:n.warning.normal.text},danger:{background:n.danger.normal.background,shadow:n.danger.light.background,text:n.danger.normal.text},white:{background:n.basic.white,shadow:n.overlay.dark.background,text:n.text.normal.background}},xs:{border:a.xs.border,padding:a.xs.spacing,radius:a.xs.radius},sm:{border:a.sm.border,padding:a.sm.spacing,radius:a.sm.radius},md:{border:a.md.border,padding:a.md.spacing,radius:a.md.radius},lg:{border:a.lg.border,padding:a.lg.spacing,radius:a.lg.radius},xl:{border:a.xl.border,padding:a.xl.spacing,radius:a.xl.radius},xxl:{border:a.xxl.border,padding:a.xxl.spacing,radius:a.xxl.radius}}}},43339(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s=y(t(22155)),d=y(t(75235)),c=f(t(22279)),u=f(t(45177)),p=f(t(77443)),m=["id","name","onChange","onBlur","onFocus","type","placeholder","value","autoComplete","size","success","error","message","box","pill","inline","disabled","readOnly","className","style","textInputRef"];function f(e){return e&&e.__esModule?e:{default:e}}function y(e,n){if("function"==typeof WeakMap)var t=new WeakMap,a=new WeakMap;return(y=function(e,n){if(!n&&e&&e.__esModule)return e;var i,l,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(i=n?a:t){if(i.has(e))return i.get(e);i.set(e,r)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((l=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(l.get||l.set)?i(r,o,l):r[o]=e[o]);return r})(e,n)}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},g.apply(null,arguments)}function h(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,x(a.key),a)}}function x(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function T(e,n,t){return n=v(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(n,t||[],v(e).constructor):n.apply(e,t))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function C(e,n){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},C(e,n)}function k(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var S=d.default.div(a||(a=k(["\n  ",";\n"])),function(e){var n=e.theme,t=e.inline,a=e.disabled;return"\n    font-family: ".concat(n.font.family,";\n    font-weight: ").concat(n.font.weight.default,";\n    display: ").concat(t?"inline-block":"block",";\n    width: ").concat(t?"auto":"100%",";\n    position: relative;\n    overflow: hidden;\n    opacity: ").concat(a?"0.5":"1",";\n  ")}),N=d.default.div(i||(i=k(["\n  ",";\n"])),function(e){var n=e.box,t=e.pill,a=e.size,i=e.theme,l=e.error,r=e.success,o=e.disabled,s=e.readOnly;return"\n    display: flex;\n    overflow: hidden;\n    outline: ".concat(n?i[a].border.width:"0",";\n    border-width: ").concat(n?i[a].border.width:"0 0 ".concat(i[a].border.width," 0"),";\n    border-color: ").concat(l&&i.textColors.error.border||r&&i.textColors.success.border||i.textColors.default.border,";\n    border-style: ").concat(i[a].border.style,";\n    border-radius: ").concat(n&&(t?"5000px":i[a].radius),";\n    align-items: center;\n    background-color: ").concat(n&&(l&&i.textColors.error.background||r&&i.textColors.success.background||i.textColors.default.background)||"transparent",";\n    \n    ").concat(!o&&!s&&"\n    &:focus-within, .focus {\n      border-color: ".concat(l&&i.textColors.error.border||r&&i.textColors.success.border||i.textColors.active.border,";\n      background-color: ").concat(n&&(l&&i.textColors.error.background||r&&i.textColors.success.background||i.textColors.active.background)||"transparent",";\n    }"),"\n  ")}),A=d.default.input(l||(l=k(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size,a=e.error,i=e.success,l=e.inline;return"\n    padding: ".concat(n[t].padding,";\n    color: ").concat(a&&n.textColors.error.text||i&&n.textColors.success.text||n.textColors.default.text,";\n    font-size: ").concat(n[t].font.size.default,";\n    line-height: ").concat(n[t].font.lineHeight,";\n    background-color: transparent;\n    width: ").concat(l?"auto":"100%",";\n    display: block;\n    border: none;\n    flex: 1;\n\n    &:focus {\n      outline: none;\n    }\n\n    &::placeholder {\n      color: ").concat(a&&n.textColors.error.placeholder||i&&n.textColors.success.placeholder||n.textColors.default.placeholder,";\n    }\n\n    &::-ms-clear, &::-ms-reveal {\n      display: none;\n    }\n  ")}),R=d.default.div(r||(r=k(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    padding: ".concat(n[t].padding,";\n  ")}),D=d.default.span(o||(o=k(["\n  ",";\n"])),function(e){var n=e.error,t=e.success,a=e.theme,i=e.size;return"\n    color: ".concat(n&&a.textColors.error.border||t&&a.textColors.success.border||a.textColors.dark.border,";\n    font-size: ").concat(a[i].font.size.small,";\n    margin-right: ").concat(a[i].margin,";\n  ")}),L=function(e){function n(e){var t;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(t=T(this,n,[e])).state={showPassword:!1},t.onPasswordClick=t.onPasswordClick.bind(t),t}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&C(e,n)}(n,e),t=n,a=[{key:"onPasswordClick",value:function(e){this.setState({showPassword:!this.state.showPassword})}},{key:"render",value:function(){var e=this.props,n=e.id,t=e.name,a=e.onChange,i=e.onBlur,l=e.onFocus,r=e.type,o=void 0===r?"text":r,f=e.placeholder,y=e.value,h=e.autoComplete,x=void 0===h||h,T=e.size,b=void 0===T?"md":T,v=e.success,C=e.error,k=e.message,L=e.box,I=void 0===L||L,j=e.pill,w=void 0===j||j,O=e.inline,E=e.disabled,_=e.readOnly,F=e.className,P=e.style,B=e.textInputRef,U=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,m),$=C||v||"password"===o,M=(C?"exclamation-circle":v&&"check")||"eye",V=C&&!!C.length||v&&!!v.length||k&&!!k.length,G=C||v||k,z="".concat(t,"Input").concat((C?"Error":v&&"Success")||k&&"Message"),W=("sm"===b?"xs":"md"===b&&"sm")||"lg"===b&&"md"||"xl"===b&&"lg"||void 0,q=(C?"danger":v&&"success")||void 0;return s.default.createElement(d.ThemeProvider,{theme:c.default},s.default.createElement(S,{className:F,style:P,inline:O,disabled:E,id:"".concat(n,"Container"),name:"".concat(t,"Container")},s.default.createElement(N,{box:I,pill:w,size:b,error:C,success:v,disabled:E,readOnly:_},s.default.createElement(A,g({},U,{size:b,error:C,success:v,inline:O,id:n,name:t,onChange:a,onFocus:l,onBlur:i,type:"password"===o&&(this.state.showPassword?"text":"password")||o,placeholder:f,value:y,autoComplete:x?"on":"off",disabled:E,readOnly:_,ref:B})),$&&s.default.createElement(D,{error:C,success:v,size:b,onClick:"password"===o&&this.onPasswordClick},s.default.createElement(p.default,{icon:M}))),V&&s.default.createElement(R,{id:"".concat(n).concat((C?"Error":v&&"Success")||"","Message"),name:"".concat(t).concat((C?"Error":v&&"Success")||"","Message"),size:b},s.default.createElement(u.default,{name:z,weight:"bold",size:W,color:q},G))))}}],a&&h(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(s.Component);n.default=L},22279(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},sm:{border:{width:t.sm.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.xs.spacing," ").concat(t.sm.spacing),radius:t.md.radius,font:{size:{default:n.sm.size,small:n.xs.size},lineHeight:n.sm.lineHeight}},md:{border:{width:t.md.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.sm.spacing," ").concat(t.md.spacing),radius:t.md.radius,font:{size:{default:n.md.size,small:n.sm.size},lineHeight:n.md.lineHeight}},lg:{border:{width:t.md.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.md.spacing," ").concat(t.lg.spacing),radius:t.md.radius,font:{size:{default:n.lg.size,small:n.md.size},lineHeight:n.lg.lineHeight}},xl:{border:{width:t.lg.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.lg.spacing," ").concat(t.xl.spacing),radius:t.md.radius,font:{size:{default:n.xl.size,small:n.lg.size},lineHeight:n.xl.lineHeight}},xxl:{border:{width:t.xl.border,style:"solid"},margin:t.lg.spacing,padding:"".concat(t.md.spacing," ").concat(t.lg.spacing),radius:t.lg.radius,font:{size:{default:n.xxl.size,small:n.xl.size},lineHeight:n.xxl.lineHeight}},textColors:{default:{border:a.inputs.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},dark:{border:a.inputs.dark.background,background:a.inputs.dark.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},active:{border:a.info.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},success:{border:a.success.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},error:{border:a.danger.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background}}}}},52578(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d=y(t(22155)),c=y(t(42276)),u=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),p=y(t(73814)),m=y(t(77443)),f=["id","name","pill","error","box","size","success","disabled","inline","iconType","onTextChange","onSelectChange","options","selectValue","textValue","textPlaceHolder","selectPlaceholder"];function y(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},g.apply(null,arguments)}function h(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=u.default.div(a||(a=h(["\n  ",";\n"])),function(e){var n=e.theme,t=e.inline,a=e.disabled;return"\n    font-family: ".concat(n.font.family,";\n    font-weight: ").concat(n.font.weight.default,";\n    display: ").concat(t?"inline-block":"block",";\n    width: ").concat(t?"auto":"100%",";\n    position: relative;\n    overflow: hidden;\n    opacity: ").concat(a?"0.5":"1",";\n  ")}),T=u.default.div(i||(i=h(["\n  ",";\n"])),function(e){var n=e.box,t=e.pill,a=e.size,i=e.theme,l=e.error,r=e.success,o=e.disabled;return"\n    display: flex;\n    overflow: hidden;\n    outline: ".concat(n?i[a].border.width:"0",";\n    border-width: ").concat(n?i[a].border.width:"0 0 ".concat(i[a].border.width," 0"),";\n    border-color: ").concat(l&&i.textColors.error.border||r&&i.textColors.success.border||i.textColors.default.border,";\n    border-style: ").concat(i[a].border.style,";\n    border-radius: ").concat(n&&(t?"5000px":i[a].radius),";\n    align-items: center;\n    background-color: ").concat(n&&(l&&i.textColors.error.background||r&&i.textColors.success.background||i.textColors.default.background)||"transparent",";\n    \n    ").concat(!o&&"\n      &:focus-within, .focus {\n        border-color: ".concat(l&&i.textColors.error.border||r&&i.textColors.success.border||i.textColors.active.border,";\n        background-color: ").concat(n&&(l&&i.textColors.error.background||r&&i.textColors.success.background||i.textColors.active.background)||"transparent",";\n      }\n    "),"\n  ")}),b=u.default.input(l||(l=h(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size,a=e.error,i=e.success,l=e.inline;return"\n    padding: ".concat(n[t].padding,";\n    padding-left: 0;\n    color: ").concat(a&&n.textColors.error.text||i&&n.textColors.success.text||n.textColors.default.text,";\n    font-size: ").concat(n[t].font.size.default,";\n    line-height: ").concat(n[t].font.lineHeight,";\n    background-color: transparent;\n    width: ").concat(l?"auto":"100%",";\n    display: block;\n    border: none;\n    flex: 1 1 auto;\n\n    &:focus {\n      outline: none;\n    }\n\n    &::placeholder {\n      color: ").concat(a&&n.textColors.error.placeholder||i&&n.textColors.success.placeholder||n.textColors.default.placeholder,";\n    }\n\n    &::-ms-clear, &::-ms-reveal {\n      display: none;\n    }\n  ")}),v=u.default.span(r||(r=h(["\n  ",";\n"])),function(e){e.error,e.success;var n=e.theme,t=e.size;return"\n    color: ".concat(n.textColors.dark.border,";\n    font-size: ").concat(n[t].font.size.small,";\n    margin-right: ").concat(n[t].margin,";\n    margin-left: ").concat(n[t].margin,";\n  ")}),C=(0,u.default)(p.default)(o||(o=h(["\n  flex: 1 1 33%;\n  border-width: 0 0 0 ",";\n  border-color: ",";\n  border-bottom-left-radius: 0;\n  border-top-left-radius: 0;\n  "," &:focus-within, &:hover, .focus {\n    border-color: ",";\n    background-color: none;\n  }\n"])),function(e){return e.theme[e.size].border.width},function(e){return e.theme.colors.inputs.normal.background},function(e){return e.box?"":"background: none;"},function(e){return e.theme.colors.inputs.normal.background}),k=u.default.div(s||(s=h(["\n  display: flex;\n  flex: 1 1 66%;\n  align-items: center;\n"])));n.default=function(e){var n=e.id,t=e.name,a=e.pill,i=void 0===a||a,l=e.error,r=e.box,o=e.size,s=void 0===o?"md":o,p=e.success,y=e.disabled,h=e.inline,S=e.iconType,N=void 0===S?"search":S,A=e.onTextChange,R=e.onSelectChange,D=e.options,L=e.selectValue,I=e.textValue,j=e.textPlaceHolder,w=e.selectPlaceholder,O=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,f);return d.default.createElement(u.ThemeProvider,{theme:c.default},d.default.createElement(x,g({inline:h,disabled:y},O),d.default.createElement(T,{error:l,box:r,pill:i,size:s,disabled:y,success:p},d.default.createElement(k,null,d.default.createElement(v,{id:"".concat(n,"_icon"),error:l,success:p,size:s},d.default.createElement(m.default,{icon:N})),d.default.createElement(b,{id:"".concat(n,"_Input"),name:"".concat(t,"_Input"),size:s,error:l,success:p,inline:h,onChange:A,value:I,placeholder:j})),d.default.createElement(C,{id:"".concat(n,"_WithSelect"),name:"".concat(t,"_WithSelect"),box:r,classPrefix:"rs",size:s,options:D,onChange:R,value:L,placeholder:w}))))}},42276(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},sm:{border:{width:t.sm.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.xs.spacing," ").concat(t.sm.spacing),radius:t.md.radius,font:{size:{default:n.sm.size,small:n.xs.size},lineHeight:n.sm.lineHeight}},md:{border:{width:t.md.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.sm.spacing," ").concat(t.md.spacing),radius:t.md.radius,font:{size:{default:n.md.size,small:n.sm.size},lineHeight:n.md.lineHeight}},lg:{border:{width:t.md.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.md.spacing," ").concat(t.lg.spacing),radius:t.md.radius,font:{size:{default:n.lg.size,small:n.md.size},lineHeight:n.lg.lineHeight}},xl:{border:{width:t.lg.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.lg.spacing," ").concat(t.xl.spacing),radius:t.md.radius,font:{size:{default:n.xl.size,small:n.lg.size},lineHeight:n.xl.lineHeight}},searchColors:{default:{border:a.inputs.normal.background,background:a.basic.white,text:a.text.dark.background,placeholder:a.inputs.dark.background,button:a.neutral.dark,icon:a.neutral.dark},active:{text:a.text.dark.background,placeholder:a.inputs.dark.background,button:a.success.normal}},textColors:{default:{border:a.inputs.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},dark:{border:a.inputs.dark.background,background:a.inputs.dark.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},active:{border:a.info.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},success:{border:a.success.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},error:{border:a.danger.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background}}}}},26589(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d=y(t(22155)),c=y(t(64617)),u=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),p=y(t(73814)),m=y(t(77443)),f=["id","name","pill","error","box","size","success","disabled","inline","iconType","onTextChange","onSelectChange","options","selectValue","textValue","textPlaceHolder","selectPlaceholder","multiSelectList"];function y(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},g.apply(null,arguments)}function h(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=u.default.div(a||(a=h(["\n  ",";\n"])),function(e){var n=e.theme,t=e.inline,a=e.disabled;return"\n    font-family: ".concat(n.font.family,";\n    font-weight: ").concat(n.font.weight.default,";\n    display: ").concat(t?"inline-block":"block",";\n    width: ").concat(t?"auto":"100%",";\n    position: relative;\n    overflow: hidden;\n    opacity: ").concat(a?"0.5":"1",";\n  ")}),T=u.default.div(i||(i=h(["\n  ",";\n"])),function(e){return e.box,e.pill,e.size,e.theme,e.error,e.success,e.disabled,"\n    display: flex;\n    div{width:auto};\n  "}),b=u.default.input(l||(l=h(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size,a=e.error,i=e.success,l=e.inline;return"\n    padding: ".concat(n[t].padding,";\n    padding-left: 0;\n    color: ").concat(a&&n.textColors.error.text||i&&n.textColors.success.text||n.textColors.default.text,";\n    font-size: ").concat(n[t].font.size.default,";\n    line-height: ").concat(n[t].font.lineHeight,";\n    background-color: transparent;\n    width: ").concat(l?"auto":"100%",";\n    display: block;\n    border: none;\n    flex: 1 1 auto;\n\n    &:focus {\n      outline: none;\n    }\n\n    &::placeholder {\n      color: ").concat(a&&n.textColors.error.placeholder||i&&n.textColors.success.placeholder||n.textColors.default.placeholder,";\n    }\n\n    &::-ms-clear, &::-ms-reveal {\n      display: none;\n    }\n  ")}),v=u.default.span(r||(r=h(["\n  ",";\n"])),function(e){e.error,e.success;var n=e.theme,t=e.size;return"\n    color: ".concat(n.textColors.dark.border,";\n    font-size: ").concat(n[t].font.size.small,";\n    margin-right: ").concat(n[t].margin,";\n    margin-left: ").concat(n[t].margin,";\n  ")}),C=(0,u.default)(p.default)(o||(o=h(["\n  min-width: 200px;\n  border: none;\n  background: none;\n  &:focus-within,\n  &:hover,\n  .focus {\n    background: none;\n  }\n  min-width: 110px;\n"]))),k=u.default.div(s||(s=h(["\n  display: flex;\n  flex: 1 1 100%;\n  align-items: center;\n"])));n.default=function(e){var n=e.id,t=e.name,a=e.pill,i=void 0===a||a,l=e.error,r=e.box,o=e.size,s=void 0===o?"md":o,p=e.success,y=e.disabled,h=e.inline,S=e.iconType,N=void 0===S?"search":S,A=e.onTextChange,R=(e.onSelectChange,e.options,e.selectValue,e.textValue),D=e.textPlaceHolder,L=(e.selectPlaceholder,e.multiSelectList),I=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,f);return d.default.createElement(u.ThemeProvider,{theme:c.default},d.default.createElement(x,g({inline:h,disabled:y},I),d.default.createElement(T,{error:l,box:r,pill:i,size:s,disabled:y,success:p},d.default.createElement(k,null,d.default.createElement(v,{id:"".concat(n,"_icon"),error:l,success:p,size:s},d.default.createElement(m.default,{icon:N})),d.default.createElement(b,{id:"".concat(n,"_Input"),name:"".concat(t,"_Input"),size:s,error:l,success:p,inline:h,onChange:A,value:R,placeholder:D})),L.map(function(e){var t=(null==e?void 0:e.transferredSelect)?e.transferredSelect:C;return d.default.createElement(t,{key:"".concat(n,"_WithSelect").concat(e.selectPlaceholder),box:r,classPrefix:"rs",size:s,options:e.options,onChange:e.onSelectChange,value:e.selectValue,placeholder:e.selectPlaceholder})}))))}},64617(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,font:{family:n.family,weight:{default:n.weight.default,bold:n.weight.bold}},sm:{border:{width:t.sm.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.xs.spacing," ").concat(t.sm.spacing),radius:t.md.radius,font:{size:{default:n.sm.size,small:n.xs.size},lineHeight:n.sm.lineHeight}},md:{border:{width:t.md.border,style:"solid"},margin:t.sm.spacing,padding:"".concat(t.sm.spacing," ").concat(t.md.spacing),radius:t.md.radius,font:{size:{default:n.md.size,small:n.sm.size},lineHeight:n.md.lineHeight}},lg:{border:{width:t.md.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.md.spacing," ").concat(t.lg.spacing),radius:t.md.radius,font:{size:{default:n.lg.size,small:n.md.size},lineHeight:n.lg.lineHeight}},xl:{border:{width:t.lg.border,style:"solid"},margin:t.md.spacing,padding:"".concat(t.lg.spacing," ").concat(t.xl.spacing),radius:t.md.radius,font:{size:{default:n.xl.size,small:n.lg.size},lineHeight:n.xl.lineHeight}},searchColors:{default:{border:a.inputs.normal.background,background:a.basic.white,text:a.text.dark.background,placeholder:a.inputs.dark.background,button:a.neutral.dark,icon:a.neutral.dark},active:{text:a.text.dark.background,placeholder:a.inputs.dark.background,button:a.success.normal}},textColors:{default:{border:a.inputs.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},dark:{border:a.inputs.dark.background,background:a.inputs.dark.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},active:{border:a.info.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},success:{border:a.success.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background},error:{border:a.danger.normal.background,background:a.inputs.light.background,text:a.text.dark.background,placeholder:a.inputs.dark.background}}}}},69509(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=c(t(22155)),l=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),r=t(97322),o=c(t(74161)),s=["component","underline","inline"],d=["children","component"];function c(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function m(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var y,g,h=(0,l.default)(function(e){var n=e.component,t=(e.underline,e.inline,f(e,s));return i.default.cloneElement(i.default.createElement(n),function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach(function(n){m(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},t))})(a||(y=["\n  ",";\n"],g||(g=y.slice(0)),a=Object.freeze(Object.defineProperties(y,{raw:{value:Object.freeze(g)}}))),function(e){var n=e.underline,t=void 0===n||n,a=e.color,i=void 0===a?"light":a,l=e.weight,r=void 0===l?"normal":l,o=e.size,s=void 0===o?"md":o,d=e.theme,c=e.disabled,u=e.inline;return"\n    box-sizing: border-box;\n    opacity: ".concat(c?"0.5":"0.65",";\n    cursor: ").concat(c?"default":"pointer",";\n    width: ").concat(u?"auto":"100%",";\n    display: ").concat(u?"inline-block":"block",";\n    color: ").concat(d.textColors[i].text,";\n    font-weight: ").concat(d.textFonts.weight[r],";\n    font-size: ").concat(d.textFonts[s].size,";\n    line-height: ").concat(d.textFonts[s].lineHeight,";\n    font-family: ").concat(d.textFonts.family,";\n    text-decoration: ").concat(t?"underline":"none",";\n    &:visited {\n      color: ").concat(d.textColors[i].text,";\n    }\n\n    ").concat(!c&&"\n      &:hover {\n        color: ".concat(d.textColors[i].hover,";\n        opacity: 1;\n      }\n\n      &:active,\n      .active {\n        color: ").concat(d.textColors[i].text,";\n        opacity: 1;\n      }\n    "),"\n  ")});n.default=function(e){var n=e.children,t=e.component,a=void 0===t?"a":t,s=f(e,d);return i.default.createElement(l.ThemeProvider,{theme:o.default},i.default.createElement(h,u({component:("a"===a?"a":"routerLink"===a&&r.Link)||"routerNavLink"===a&&r.NavLink},s),n))}},74161(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.colors,t=e.fonts;return{colors:n,fonts:t,geometry:e.geometry,textFonts:{family:t.family,weight:{normal:t.weight.normal,bold:t.weight.bold,extra:t.weight.extra},sm:t.sm,md:t.md,lg:t.lg,xl:t.xl},textColors:{light:{text:n.text.light.text,hover:n.text.normal.background},normal:{text:n.text.dark.background,hover:n.text.light.text},dark:{text:n.text.dark.background,hover:n.text.light.background},inverted:{text:n.text.dark.background,hover:n.text.normal.background},primary:{text:n.primary.normal.background,hover:n.primary.dark.background},secondary:{text:n.secondary.normal.background,hover:n.secondary.dark.background},tertiary:{text:n.tertiary.normal.background,hover:n.tertiary.dark.background},info:{text:n.info.normal.background,hover:n.info.dark.background},success:{text:n.success.normal.background,hover:n.success.dark.background},warning:{text:n.warning.normal.background,hover:n.warning.dark.background},danger:{text:n.danger.normal.background,hover:n.danger.dark.background}}}}},81801(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=d(t(22155)),i=d(t(36656)),l=t(9241),r=t(21946),o=t(3834),s=["className","timePickerRef"];function d(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(null,arguments)}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach(function(n){m(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function m(e,n,t){return(n=y(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,y(a.key),a)}}function y(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function g(e,n,t){return n=x(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(n,t||[],x(e).constructor):n.apply(e,t))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function T(e,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},T(e,n)}var b=i.default.defaultProps.classNames;n.default=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),g(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&T(e,n)}(n,e),t=n,i=[{key:"render",value:function(){var e=this.props,n=e.className,t=e.timePickerRef,i=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,s);return a.default.createElement(r.LocalizationProvider,{dateAdapter:l.AdapterMoment},a.default.createElement(o.TimePicker,c({classNames:p(p({},b),{},{container:"".concat(b.container," ").concat(n)}),ref:t},i)))}}],i&&f(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}(a.default.Component)},36089(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r=y(t(22155)),o=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),s=y(t(48368)),d=y(t(82062)),c=y(t(81801)),u=y(t(63786)),p=y(t(11832)),m=y(t(45177)),f=["id","name","color","placeholder","selectedTime","size","box","onTimeChange","pill","inline","disabled","error","readOnly"];function y(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},g.apply(null,arguments)}function h(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,x(a.key),a)}}function x(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function T(e,n,t){return n=v(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(n,t||[],v(e).constructor):n.apply(e,t))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function C(e,n){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},C(e,n)}function k(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var S=(0,o.default)(p.default)(a||(a=k(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    overflow: visible;\n    font-family: ".concat(n.fonts.family,";\n    font-weight: ").concat(n.fonts.weight.default,";\n  ")}),N=o.default.div(i||(i=k(["\n  ",";\n"])),function(e){var n=e.box,t=e.inline,a=e.pill,i=e.size,l=e.theme,r=e.error;return"\n    display:".concat(t?"inline-flex":"flex",";\n    outline: ").concat(n?l[i].border.width:"0",";\n    border-width: ").concat(n?l[i].border.width:"0 0 ".concat(l[i].border.width," 0"),";\n    border-color: ").concat(r?l.colors.danger.normal.background:l.textColors.default.border,";\n    border-style: ").concat(l[i].border.style,";\n    border-radius: ").concat(n&&(a?"5000px":l[i].radius),";\n    align-items: center;\n    justify-content: center;\n    background-color: ").concat(l.textColors.default.background,";\n    cursor:text;\n    padding: ").concat(l[i].padding.vertical," ").concat(l[i].padding.horizontal,";\n  ")}),A=o.default.div(l||(l=k(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    padding: ".concat(n[t].padding.vertical," ").concat(n[t].padding.horizontal,";\n  ")}),R=function(e){function n(e){var t;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),t=T(this,n,[e]);var a=e.selectedTime?e.selectedTime:null;return t.state={time:a},t}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&C(e,n)}(n,e),t=n,a=[{key:"render",value:function(){var e=this.props,n=e.id,t=e.name,a=e.color,i=void 0===a?"secondary":a,l=e.placeholder,p=e.selectedTime,y=e.size,h=void 0===y?"md":y,x=e.box,T=void 0===x||x,b=e.onTimeChange,v=e.pill,C=void 0===v||v,k=e.inline,R=e.disabled,D=e.error,L=e.readOnly,I=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,f),j=("sm"===h?"xs":"md"===h&&"sm")||"lg"===h&&"md"||"xl"===h&&"lg"||void 0;return r.default.createElement(o.ThemeProvider,{theme:d.default},r.default.createElement(S,g({name:"".concat(t,"-OuterContainer"),container:!0},I,{id:"".concat(n,"-OuterContainer")}),r.default.createElement(u.default,{item:!0,vdistribution:"center"},r.default.createElement(N,{name:"".concat(t,"-TextContainer"),box:T,inline:k,pill:C,size:h,disabled:R,error:D},r.default.createElement(c.default,{size:h,value:p,onChange:function(e){b(e)},renderInput:function(e){return r.default.createElement(s.default,g({},e,{fullWidth:!0}))},color:i,placeholder:l,disabled:R,readOnly:L}))),r.default.createElement(u.default,null,D&&r.default.createElement(A,{size:h},r.default.createElement(m.default,{size:j,weight:"bold",color:"danger"},D)))))}}],a&&h(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(r.default.Component);n.default=R},96646(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o=m(t(22155)),s=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),d=m(t(45177)),c=m(t(6308)),u=m(t(22304)),p=["id","name","imageSrc","cardTitle","bodyText","inline","size","titleColor","textColor","backgroundColor"];function m(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},f.apply(null,arguments)}function y(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var g=s.default.div(a||(a=y(["\n  ",";\n"])),function(e){var n=e.theme,t=e.inline,a=e.backgroundColor;return"\n    display: ".concat(t?"inline-block":"block",";\n    width: ").concat(t?"auto":"100%",";\n    cursor: pointer;\n    background-color: ").concat(n.colors[a].light.background,";\n    box-shadow: 0 1px 2px ").concat(n.colors.overlay.dark.background,";\n    border-radius: ").concat(n.geometry.sm.radius,";\n    overflow: hidden;\n  ")}),h=s.default.div(i||(i=y(["\n  ",";\n"])),function(e){var n=e.theme,t=(e.inline,e.size),a=e.imageSrc;return"\n    width: 100%\n    background-color: ".concat(n.colors.primary.normal.background,";\n    background-image: url(").concat(a,");\n    background-repeat: no-repeat;\n    background-position: center;\n    background-size: cover;\n    height: ").concat(n.imageSize[t],";\n  ")}),x=s.default.div(l||(l=y(["\n  ",";\n"])),function(e){var n=e.theme,t=e.paddingSize;return"\n    padding: ".concat(n.geometry[t].spacing,";\n  ")}),T=(0,s.default)(c.default)(r||(r=y(["\n  ",";\n"])),function(e){var n=e.theme,t=e.marginSize;return"\n    margin-bottom: ".concat(n.geometry[t].spacing,";\n  ")});n.default=function(e){var n=e.id,t=(e.name,e.imageSrc),a=e.cardTitle,i=e.bodyText,l=e.inline,r=e.size,c=void 0===r?"md":r,m=e.titleColor,y=void 0===m?"dark":m,b=e.textColor,v=void 0===b?"normal":b,C=e.backgroundColor,k=void 0===C?"white":C,S=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,p),N=("xs"===c?"xs":"sm"===c&&"sm")||"md"===c&&"sm"||"lg"===c&&"md"||"xl"===c&&"lg"||c;return o.default.createElement(s.ThemeProvider,{theme:u.default},o.default.createElement(g,f({id:n,inline:l,backgroundColor:k},S),o.default.createElement("div",null,o.default.createElement(h,{id:"".concat(n,"_image"),imageSrc:t,size:c})),o.default.createElement(x,{paddingSize:N},o.default.createElement(T,{color:y,size:c,marginSize:N,id:"".concat(n,"_heading")},a),o.default.createElement(d.default,{size:N,color:v,id:"".concat(n,"_bodyText")},i))))}},22304(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach(function(n){r(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function r(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}n.default=function(e){var n=e.colors,t=e.fonts,i=e.geometry;return{fonts:t,geometry:i,colors:l(l({},n),{},{white:{light:{background:"white"}}}),imageSize:{xs:(0,a.multiply)(i.xs.spacing,5),sm:(0,a.multiply)(i.sm.spacing,5),md:(0,a.multiply)(i.md.spacing,5),lg:(0,a.multiply)(i.lg.spacing,5),xl:(0,a.multiply)(i.xl.spacing,5)}}}},68801(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i=o(t(22155)),l=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),r=o(t(18805));function o(e){return e&&e.__esModule?e:{default:e}}var s,d,c=l.default.div(a||(s=["\n  ",";\n"],d||(d=s.slice(0)),a=Object.freeze(Object.defineProperties(s,{raw:{value:Object.freeze(d)}}))),function(e){var n=e.theme,t=e.size,a=e.color;return"\n    position: absolute;\n    right: 0%;\n    top: 0%;\n    transform: translate(100%,-100%);\n    background-color: ".concat(n.tooltipColors[a].background,"\n    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .2);\n    padding: ").concat(n[t].spacing,";\n  \n   \n  ")});n.default=function(e){var n=e.children,t=e.size,a=void 0===t?"sm":t,o=e.show,s=e.color,d=void 0===s?"primary":s;return i.default.createElement(l.ThemeProvider,{theme:r.default},o&&i.default.createElement(c,{size:a,color:d},n))}},18805(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.colors,t=e.fonts,a=e.geometry;return{colors:n,fonts:t,geometry:a,xs:{spacing:a.xs.spacing},sm:{spacing:a.sm.spacing},md:{spacing:a.md.spacing},lg:{spacing:a.lg.spacing},xl:{spacing:a.xl.spacing},xxl:{spacing:a.xxl.spacing},tooltipColors:{light:{background:n.text.light.background},normal:{background:n.text.normal.background},dark:{background:n.text.dark.background},primary:{background:n.primary.normal.background},secondary:{background:n.secondary.normal.background},tertiary:{background:n.tertiary.normal.background},quaternary:{background:n.quaternary.normal.background},quinary:{background:n.quinary.normal.background},senary:{background:n.senary.normal.background},neutral:{background:n.neutral.normal.background},info:{background:n.info.normal.background},success:{background:n.success.normal.background},warning:{background:n.warning.normal.background},danger:{background:n.danger.normal.background},white:{background:n.basic.white}}}}},3379(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d,c,u,p,m=x(t(22155)),f=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),y=x(t(89062)),g=x(t(77443)),h=t(6871);function x(e){return e&&e.__esModule?e:{default:e}}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},b.apply(null,arguments)}function v(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var C=f.default.div(a||(a=v(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    background-color: #fff;\n    width: ".concat(n.geometry.tooltip.width,";\n    border-radius: ").concat(n.geometry.tooltip.border.radius,";\n    font-family: 'Proxima Nova', sans-serif;\n    padding-top: ").concat(n.geometry.tooltip.padding,";\n  ")}),k=f.default.div(i||(i=v(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    color: ".concat(n.colors.overlay.dark.background,";\n    padding: ").concat(n.geometry.tooltip.padding,";\n    margin-left: ").concat(n.geometry.tooltip.margin,";\n    margin-right: ").concat(n.geometry.tooltip.margin,";\n  ")}),S=f.default.h2(l||(l=v(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    color: ".concat(n.colors.background.light.background,";\n    font-weight: bold;\n    padding: ").concat(n.geometry.tooltip.padding,";\n    padding-top: ").concat((0,h.multiply)(n.geometry.tooltip.padding,3),";\n    margin: 0;\n    margin-left: ").concat(n.geometry.tooltip.margin,";\n    margin-right: ").concat(n.geometry.tooltip.margin,";\n  ")}),N=f.default.div(r||(r=v(["\n  ",";\n"])),function(e){return e.theme,"\n    display: flex;\n    align-items: center;\n    position: relative;\n    bottom: 0px;\n  "}),A=f.default.div(o||(o=v(["\n  ",";\n"])),function(e){var n=e.index,t=e.theme;return"\n    text-align: center;\n    & > span:nth-child(".concat(n+1,") {\n      background-color: ").concat(t.colors.primary.dark.background,";\n    }\n  ")}),R=f.default.button(s||(s=v(["\n  ",";\n"])),function(e){var n=e.theme;return" \n    color: #fff;\n    border: none;\n    width: ".concat((0,h.divide)(n.geometry.tooltip.width,2),";\n    height: ").concat((0,h.divide)(n.geometry.tooltip.height,4),";\n    cursor: pointer;\n    outline: 0;\n  ")}),D=(0,f.default)(R)(d||(d=v(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    background-color: ".concat(n.colors.background.light.background,";\n    border-bottom-left-radius: ").concat(n.geometry.tooltip.border.radius,";\n  ")}),L=(0,f.default)(R)(c||(c=v(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    background-color: ".concat(n.colors.primary.normal.background,";\n    border-bottom-right-radius: ").concat(n.geometry.tooltip.border.radius,";\n  ")}),I=f.default.span(u||(u=v(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    height: ".concat(n.geometry.progress.height,";\n    width: ").concat(n.geometry.progress.width,";\n    background-color: ").concat(n.colors.primary.light.background,";\n    border-radius: 50%;\n    display: inline-block;\n    margin-right: ").concat((0,h.divide)(n.geometry.tooltip.margin,4),";\n    margin-left: ").concat((0,h.divide)(n.geometry.tooltip.margin,4),";\n  ")}),j=f.default.span(p||(p=v(["\n  ",";\n"])),function(e){var n=e.theme;return"\n      position: absolute;\n      right: ".concat((0,h.add)(n.geometry.tooltip.padding,1),";\n      cursor: pointer;\n      color: ").concat(n.colors.overlay.dark.background,";\n      font-size: ").concat(n.geometry.tooltip.closeIcon.size,";\n    ")}),w=function(e){var n=e.backProps,t=e.skipProps,a=e.primaryProps,i=e.closeProps,l=e.locale,r=e.continuous,o=e.index,s=e.isLastStep;return m.default.createElement(N,null,o>0&&m.default.createElement(D,b({},n,{title:""}),l.back),0===o&&m.default.createElement(D,b({},t,{title:""}),l.skip),r&&!s&&m.default.createElement(L,b({},a,{title:""}),l.next),s&&m.default.createElement(L,b({},i,{title:""}),l.close))};n.default=function(e){var n,t=e.content,a=e.continuous,i=e.backProps,l=e.closeProps,r=e.index,o=e.isLastStep,s=e.locale,d=e.primaryProps,c=e.setTooltipRef,u=e.size,p=e.skipProps,h=e.title;return m.default.createElement(f.ThemeProvider,{theme:y.default},m.default.createElement(C,{ref:c},m.default.createElement(j,null,m.default.createElement(g.default,b({icon:"times"},p))),h&&m.default.createElement(S,null,h),t&&m.default.createElement(k,null,t),m.default.createElement(A,{index:r},(n=Array(u),function(e){if(Array.isArray(e))return T(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e,n){return m.default.createElement(I,{key:n})})),m.default.createElement(w,{backProps:i,skipProps:p,primaryProps:d,closeProps:l,locale:s,continuous:a,index:r,isLastStep:o})))}},12260(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(22155)),i=o(t(61570)),l=o(t(59457)),r=o(t(3379));function o(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},s.apply(null,arguments)}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach(function(n){u(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function u(e,n,t){return(n=m(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function p(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,m(a.key),a)}}function m(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}function f(e,n,t){return n=g(n),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(n,t||[],g(e).constructor):n.apply(e,t))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function h(e,n){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},h(e,n)}var x=function(e){function n(){var e;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return(e=f(this,n,[].concat(a))).state={styles:{options:{arrowColor:"#fff"},spotlight:{backgroundColor:"rgba(255, 255, 255, 0.1)"}},locale:{back:"Previous",close:"GET STARTED!",last:"Last",next:"Next",open:"Open",skip:"Skip"},tooltipComponent:r.default,floaterProps:{wrapperOptions:{offset:-15}}},e.handleClickStart=function(n){n.preventDefault(),e.setState({run:!0,stepIndex:0})},e.handleClickNextButton=function(){var n=e.state.stepIndex;1===e.state.stepIndex&&e.setState({stepIndex:n+1})},e.handleJoyrideCallback=function(n){var t=e.props.joyride;"close"===n.action&&e.setState({stepIndex:0}),"function"==typeof t.callback&&t.callback(n)},e}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&h(e,n)}(n,e),t=n,(l=[{key:"render",value:function(){var e=c(c({},this.state),this.props.joyride);return a.default.createElement(i.default,s({scrollToFirstStep:!0},e,{run:this.props.run,steps:this.props.steps,callback:this.handleJoyrideCallback}))}}])&&p(t.prototype,l),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,l}(a.Component);x.defaultProps={joyride:{continuous:!0},theme:l.default},n.default=x},89062(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(6871);n.default=function(e){e.fonts;var n=e.geometry,t=e.colors;return{geometry:{tooltip:{width:(0,a.multiply)(n.xxxl.spacing,3),height:(0,a.multiply)(n.xxxl.spacing,2),border:{radius:n.xxl.border},margin:"10px",padding:"5px",closeIcon:{size:"20px"}},progress:{width:n.xs.spacing,height:n.xs.spacing}},colors:{background:t.sidebar,primary:t.secondary,senary:t.senary,overlay:t.overlay}}}},37661(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d,c,u=T(t(22155)),p=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),m=T(t(14121)),f=T(t(6308)),y=T(t(45177)),g=T(t(73814)),h=T(t(48144)),x=T(t(59987));function T(e){return e&&e.__esModule?e:{default:e}}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=p.default.div(a||(a=b(["\n  ",";\n"])),function(e){var n=e.theme,t=e.borderColor,a=e.inline,i=e.disabled;return"\n    opacity: ".concat(i?"0.5":"1",";\n    font-family: ").concat(n.fonts.family,";\n    padding: ").concat(n.geometry.md.spacing,";\n    background-color: #FFF;\n    border-width: ").concat(n.geometry.md.border,";\n    border-radius: ").concat(n.geometry.md.radius," ").concat(n.geometry.md.radius," 0px 0px;\n    border-color: ").concat(n.transpositionColors[t].background,";\n    border-style: solid;\n    display: ").concat(a?"inline-flex":"flex",";\n    flex-direction: column;\n    text-align: center;\n    align-items: center;\n    position: relative;\n  ")}),C=p.default.div(i||(i=b(["\n  ",";\n"])),function(e){var n=e.width;return"\n    width: ".concat(n||"auto",";\n  ")}),k=(0,p.default)(g.default)(l||(l=b(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    width: 100% !important;\n    margin: ".concat(n.geometry.md.spacing," 0;\n    z-index: 100; \n    overflow: visible;\n  ")}),S=p.default.div(r||(r=b(["\n  ",";\n"])),function(e){var n=e.theme,t=e.status;return"\n    text-transform: capitalize;\n    position: absolute;\n    bottom: 0;\n    left: 0;\n    right: 0;\n    padding: ".concat(n.geometry.xs.spacing," ").concat(n.geometry.sm.spacing,";\n    text-align: left;\n    background: ").concat(n.transpositionColors[t].background,";\n    border-radius: 0px 0px ").concat(n.geometry.md.radius," ").concat(n.geometry.md.radius,";\n    z-index: 99; \n    position:relative;\n  ")}),N=(0,p.default)(h.default)(o||(o=b(["\n  ",";\n"])),function(e){var n=e.theme;return"\n    padding-left: ".concat(n.geometry.xs.spacing,";\n    flex: 0 0 auto;\n  ")}),A=p.default.div(s||(s=b(["\n  align-items: center;\n  display: flex;\n"]))),R=(0,p.default)(f.default)(d||(d=b(["\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  width: ","px;\n  text-align: center;\n  ",";\n"])),function(e){var n=e.width;return parseInt(n.split("px"))-50},function(e){var n=e.ignored;return"\n    text-transform: capitalize;\n    opacity: ".concat(n?"0.5":"1",";\n  ")}),D=(0,p.default)(f.default)(c||(c=b(["\n  ",";\n"])),function(e){var n=e.ignored;return"\n    opacity: ".concat(n?"0.4":"0.8",";\n    text-transform: capitalize;\n  ")});n.default=function(e){var n=e.name,t=e.match,a=e.ignored,i=e.suggestion,l=e.onMatch,r=e.onIgnore,o=e.title,s=e.options,d=e.value,c=e.ignoreLabel,f=e.disabled,g=e.readOnly,h=e.width,T=(a?"ignored":t&&"match")||i&&"suggestion"||"unmatched";return u.default.createElement(p.ThemeProvider,{theme:m.default},u.default.createElement(C,{width:h,disabled:f,borderColor:T},u.default.createElement(v,{name:n,disabled:f,borderColor:T},u.default.createElement(R,{name:"".concat(n,"__title-heading"),size:"md",weight:"light",ignored:a,title:o,width:h},o),g?u.default.createElement(D,{name:"".concat(n,"__value-heading"),size:"md",weight:"light",align:"center",ignored:a},"- ",u.default.createElement("br",null)," ",a?"Ignored":d):u.default.createElement(k,{name:"".concat(n,"__select"),isDisabled:f||a,match:t,ignored:a,suggestion:i,options:s,value:d,menuMaxHeight:"800px",menuMinHeight:"auto",onChange:l}),!g&&u.default.createElement(A,null,u.default.createElement(x.default,{disabled:f,inline:!0,id:"".concat(n,"__ignore-checkbox"),name:"".concat(n,"__ignore-checkbox"),checked:a,onChange:r}),u.default.createElement(N,{inline:!0,labelFor:"".concat(n,"__ignore-checkbox"),color:"light"},c))),u.default.createElement(S,{name:"".concat(n,"__status"),status:T},u.default.createElement(y.default,{size:"md",color:a?"normal":"white"},T))))}},14121(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.fonts,t=e.geometry,a=e.colors;return{colors:a,fonts:n,geometry:t,transpositionColors:{match:{background:a.success.normal.background,text:""},ignored:{background:a.neutral.normal.background,text:""},suggestion:{background:a.warning.normal.background,text:""},unmatched:{background:a.danger.normal.background,text:""}}}}},2994(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s=h(t(22155)),d=function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l]);return i}(e)}(t(75235)),c=h(t(15156)),u=h(t(77443)),p=h(t(45177)),m=h(t(5486)),f=h(t(89428)),y=["theme","size"],g=["onClick","isDragActive","isDragEnabled","id","name","dragText","text","buttonText","inline","background","disabled","size"];function h(e){return e&&e.__esModule?e:{default:e}}function x(){return x=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},x.apply(null,arguments)}function T(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=d.default.div(a||(a=b(["\n  ",";\n"])),function(e){var n=e.inline,t=e.isDragActive,a=e.isDragEnabled,i=e.theme,l=e.background;return"\n    display: ".concat(n?"inline-flex":"flex",";\n    justify-content: center;\n    flex-direction: column;\n    align-items: center;\n    text-align: center;\n    padding: ").concat(i.padding,";\n    background: ").concat(l?i.uploadColors.background:null,";\n    border-radius: ").concat(i.radius,";\n    opacity: ").concat(a&&t?.5:1,";\n  ")}),C=(0,d.default)(function(e){e.theme,e.size;var n=T(e,y);return s.default.createElement(u.default,n)})(i||(i=b(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    font-size: ".concat(n[t].font.size.icon,";\n    opacity: 0.1;\n    padding-bottom: 10px;\n  ")}),k=(0,d.default)(p.default)(l||(l=b(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    font-size: ".concat(n[t].font.size.text,";\n    padding-top: ").concat(n[t].padding.text.top,";\n    padding-bottom: ").concat(n[t].padding.text.bottom,";\n  ")}),S=(0,d.default)(m.default)(r||(r=b(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    padding-left: ".concat(n[t].padding.button.left,";\n    padding-right: ").concat(n[t].padding.button.right,"\n  ")}),N=(0,d.default)(p.default)(o||(o=b(["\n  ",";\n"])),function(e){var n=e.theme,t=e.size;return"\n    font-size: ".concat(n[t].font.size.button,";\n  ")});n.default=(0,f.default)(function(e){var n=e.onClick,t=e.isDragActive,a=void 0!==t&&t,i=e.isDragEnabled,l=void 0!==i&&i,r=e.id,o=e.name,p=e.dragText,m=e.text,f=e.buttonText,y=e.inline,h=e.background,b=e.disabled,A=e.size,R=void 0===A?"md":A,D=T(e,g);return s.default.createElement(d.ThemeProvider,{theme:c.default},s.default.createElement(v,x({isDragActive:a,isDragEnabled:l},D,{size:R,inline:y,id:"".concat(r,"-Container"),name:"".concat(o,"-Container"),background:h}),s.default.createElement(C,{size:R,icon:"cloud-upload-alt",id:"".concat(r,"-IconStyled"),name:"".concat(o,"-IconStyled")}),a&&l&&s.default.createElement(k,{color:"dark",weight:"bold",align:"center",size:R,id:"".concat(r,"-TextStyled"),name:"".concat(o,"-TextStyled")},s.default.createElement(u.default,{icon:"arrow-circle-down",size:"sm"})," ",p),!(a&&l)&&s.default.createElement(k,{color:"dark",weight:"bold",align:"center",size:R,id:"".concat(r,"-TextStyled"),name:"".concat(o,"-TextStyled")},m),!!f&&s.default.createElement(S,{disabled:b,color:"primary",inline:!0,onClick:n,size:R,id:"".concat(r,"-ButtonStyled"),name:o},s.default.createElement(N,{size:R,color:"neutral",id:"".concat(r,"-ButtonStyled-Text")},f))))})},15156(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(e){var n=e.colors,t=e.fonts,a=e.geometry;return{colors:n,fonts:t,geometry:a,padding:a.md.spacing,radius:a.md.radius,sm:{font:{size:{icon:"60px",text:t.md.size,button:t.sm.size}},padding:{button:{left:"40px",right:"40px"},text:{top:"0px",bottom:"10px"}}},md:{font:{size:{icon:"80px",text:t.lg.size,button:t.md.size}},padding:{button:{left:"60px",right:"60px"},text:{top:"5px",bottom:"20px"}}},lg:{font:{size:{icon:"100px",text:t.xl.size,button:t.lg.size}},padding:{button:{left:"80px",right:"80px"},text:{top:"10px",bottom:"20px"}}},uploadColors:{border:n.inputs.light.text,background:n.inputs.normal.background,text:n.text.dark.background,placeholder:n.inputs.dark.background},sizes:{xs:{margin:"0",padding:"0",font:{size:t.xs.size,lineHeight:t.xs.lineHeight}},sm:{border:{width:a.sm.border,style:"solid"},margin:"0",padding:"0",font:{size:t.sm.size,lineHeight:t.sm.lineHeight}},md:{border:{width:a.md.border,style:"solid"},margin:"0",padding:"0",font:{size:t.md.size,lineHeight:t.md.lineHeight}},lg:{border:{width:a.lg.border,style:"solid"},margin:"0",padding:"0",font:{size:t.lg.size,lineHeight:t.lg.lineHeight}},xl:{border:{width:a.xl.border,style:"solid"},margin:"0",padding:"0",font:{size:t.xl.size,lineHeight:t.xl.lineHeight}},xxl:{margin:"0",padding:"0",font:{size:t.xxl.size,lineHeight:t.xxl.lineHeight}}}}}},89428(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t(22155)),i=r(t(38694)),l=["onDrop","className","accept","multiple"];function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(null,arguments)}n.default=function(e){return function(n){var t=n.onDrop,r=n.className,s=n.accept,d=n.multiple,c=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(n,l),u=s||"*";return a.default.createElement(i.default,{onDrop:t,accept:u,multiple:d},function(n){var i=n.getRootProps,l=(n.getInputProps,n.isDragActive);return a.default.createElement("div",o({className:r},i()),a.default.createElement(e,o({isDragActive:l,isDragEnabled:!!t},c)))})}}},94841(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t(22155)),i=r(t(45177)),l=["id","name","sources"];function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(null,arguments)}n.default=function(e){e.id,e.name;var n=e.sources,t=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,l);return a.default.createElement("video",o({controls:!0},t),n.map(function(e){return a.default.createElement("source",{src:e.link,type:e.type})}),a.default.createElement(i.default,null,"Your browser does not support this HTML5 Video"))}},24384(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l=d(t(22155)),r=d(t(75235)),o=d(t(77443)),s=t(97322);function d(e){return e&&e.__esModule?e:{default:e}}function c(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var u=(0,r.default)(s.Link)(a||(a=c(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  border-radius: 100%;\n  margin-top: -50px;\n  width: 150px;\n  height: 150px;\n  min-width: 150px;\n  min-height: 150px;\n  color: ",";\n  background: ",";\n  border: 6px solid ",";\n  box-shadow: "," 1px 1px 12px rgba(0, 0, 0, 0.2);\n  transition: transform 0.3s ease-in-out;\n\n  :hover {\n    transform: translateY(-10px);\n    cursor: pointer;\n  }\n"])),function(e){return e.badgeStyle?"rgba(0, 0, 0, 0.2)":e.theme.colors[e.borderColor].normal.background},function(e){return e.badgeStyle?e.theme.colors[e.borderColor].normal.background:"white"},function(e){return e.badgeStyle?"rgba(255, 255, 255, 0.3)":e.theme.colors[e.borderColor].normal.background},function(e){return e.badgeStyle?"inset":""}),p=r.default.h2(i||(i=c(["\n  font-size: 22px;\n  font-weight: bold;\n  color: inherit;\n"])));n.default=function(e){var n=e.accentColor,t=e.icon,a=e.title,i=e.linkTo,r=e.badgeStyle;return l.default.createElement(u,{borderColor:n,badgeStyle:r,size:"s",to:i},l.default.createElement(o.default,{icon:t,size:"3x",color:"inherit"}),l.default.createElement(p,{color:n,badgeStyle:r},a))}},23197(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r,o,s,d,c=m(t(22155)),u=m(t(75235)),p=m(t(24384));function m(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},f.apply(null,arguments)}function y(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var g=u.default.div(a||(a=y(["\n  ",";\n"])),function(e){var n=e.layout;return"\n    display: flex;\n    padding: 0 20px;\n    flex-direction: ".concat("center"!==n?"column":"row",";\n    justify-content: space-between;\n    width: 100%;\n  ")}),h=u.default.div(i||(i=y(["\n  text-align: ",";\n  margin: 5px;\n"])),function(e){return"left"===e.layout?"right":"left"}),x=u.default.div(l||(l=y(["\n  text-align: ",";\n  margin: 5px;\n"])),function(e){return"right"===e.layout?"left":"right"}),T=u.default.p(r||(r=y(["\n  font-size: 16px;\n"]))),b=u.default.h1(o||(o=y(["\n  font-size: 28px;\n  font-weight: bold;\n  color: ",";\n"])),function(e){return e.alert?e.theme.colors.danger.normal.background:e.new?e.theme.colors.success.normal.background:"inherit"}),v=function(e){var n=e.layout,t=e.left,a=e.right;return c.default.createElement(g,{layout:n},t&&c.default.createElement(h,{layout:n},c.default.createElement(T,null,t.name),c.default.createElement(b,{alert:t.alert,new:t.new},t.value)),a&&c.default.createElement(x,{layout:n},c.default.createElement(T,null,a.name),c.default.createElement(b,{alert:a.alert},a.value)))},C=u.default.div(s||(s=y(["\n  ",";\n"])),function(e){var n=e.theme,t=e.layout,a=e.darkMode;return"\n    display: flex;\n    position: relative;\n    flex-direction: ".concat("center"===t?"column":"left"===t?"row":"row-reverse",";\n    justify-content: ").concat("center"===t?"center":"space-between",";\n    align-items: center;\n    background-color: ").concat(a?n.colors.sidebar.normal.background:"white",";\n    color: #888;\n    width: 100%;\n    min-height: 120px;\n    border: 1px solid #bbbbbb;\n    \n    ").concat(a?"\n        background-color: ".concat(n.colors.sidebar.normal.background,";\n        border-color: black;\n        color: white;\n        "):"","\n  ")}),k=u.default.div(d||(d=y(["\n  display: flex;\n  flex-direction: row;\n  justify-content: ",";\n  padding: 0 20px;\n  position: absolute;\n  width: 100%;\n  height: 100%;\n"])),function(e){return"center"===e.layout?"center":"right"===e.layout?"flex-end":"flex-start"});n.default=function(e){var n=e.darkMode,t=void 0!==n&&n,a=e.layout,i=void 0===a?"center":a,l=e.circleProps,r=e.statProps;return c.default.createElement(C,{layout:i,darkMode:t},c.default.createElement(k,{layout:i},c.default.createElement(p.default,l)),c.default.createElement(v,f({layout:i},r)))}},24186(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,i,l,r=d(t(22155)),o=d(t(75235)),s=d(t(23197));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var u=o.default.div(a||(a=c(["\n  width: 100%;\n  height: 100%;\n  background: rgb(212, 213, 216);\n  border: 1px solid #bbbbbb;\n  border-top: none;\n  overflow-y: auto;\n"]))),p=o.default.div(i||(i=c(["\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  height: 100%;\n  border-radius: 2px;\n"]))),m=o.default.div(l||(l=c(["\n  display: flex;\n  font-family: ",";\n  flex-direction: ",";\n  width: 100%;\n  height: 100%;\n  margin-top: 50px;\n  border-radius: 2px;\n  min-height: 120px;\n  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);\n"])),function(e){return e.theme.fonts.family},function(e){return e.reverse?"column-reverse":"column"});n.default=function(e){var n=e.darkMode,t=e.layout,a=e.circleProps,i=e.statProps,l=e.children;return r.default.createElement(p,null,r.default.createElement(m,{reverse:t.reverse},r.default.createElement(s.default,{darkMode:n,layout:t.header,circleProps:a,statProps:i}),r.default.createElement(u,null,l)))}},78942(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t(22155)),i=r(t(63786)),l=r(t(11832));function r(e){return e&&e.__esModule?e:{default:e}}t(76314),n.default=function(e){for(var n=new Date,t=e.id,r=e.selectedDate,o=e.onChange,s=r||n,d=s.getUTCFullYear(),c=[{value:0,label:"January"},{value:1,label:"February"},{value:2,label:"March"},{value:3,label:"April"},{value:4,label:"May"},{value:5,label:"June"},{value:6,label:"July"},{value:7,label:"August"},{value:8,label:"September"},{value:9,label:"October"},{value:10,label:"November"},{value:11,label:"December"}],u=[],p=n.getUTCFullYear(),m=p;m>=p-70;m--)u.push({value:m,label:m.toString()});for(var f=p+1;f<=p+70;f++)u.unshift({value:f,label:f.toString()});var y=function(e){var n=e.target.form,t=n.year,a=n.month;o(new Date(t.value,a.value,2))};return a.default.createElement("form",{className:"DayPicker-Caption"},a.default.createElement(i.default,{container:!0},a.default.createElement(l.default,{item:!0,span:6},a.default.createElement("select",{id:"".concat(t,"-monthSelect"),name:"month",onChange:y,options:c,value:s.getMonth()},c.map(function(e){return a.default.createElement("option",{key:e.value,value:e.value},e.label)}))),a.default.createElement(l.default,{item:!0,span:2},a.default.createElement("select",{id:"".concat(t,"-yearSelect"),name:"year",onChange:y,options:u,value:d},u.map(function(e){return a.default.createElement("option",{key:e.value,value:e.value},e.label)})))))}},82472(e,n,t){"use strict";Object.defineProperty(n,"nD",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"C8",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"nc",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"KH",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"jT",{enumerable:!0,get:function(){return ae.Autocomplete}}),Object.defineProperty(n,"PU",{enumerable:!0,get:function(){return ae.AutocompleteField}}),Object.defineProperty(n,"BI",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"$n",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"FN",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(n,"Sc",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"GQ",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"fv",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"OJ",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"j4",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(n,"lr",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"Kw",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(n,"ON",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"DZ",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(n,"Vo",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(n,"In",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(n,"KK",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(n,"nE",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(n,"Wz",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(n,"bT",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(n,"JU",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(n,"Ip",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(n,"To",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(n,"aF",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(n,"KF",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(n,"Eg",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(n,"ob",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(n,"dK",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(n,"Y3",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(n,"G3",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(n,"z2",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(n,"hh",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(n,"fI",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(n,"P",{enumerable:!0,get:function(){return P.ScrollContainer}}),Object.defineProperty(n,"vj",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(n,"l6",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(n,"Nl",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(n,"t6",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(n,"oz",{enumerable:!0,get:function(){return Q.Tab}}),Object.defineProperty(n,"Kp",{enumerable:!0,get:function(){return Q.TabPanel}}),Object.defineProperty(n,"tU",{enumerable:!0,get:function(){return Q.Tabs}}),Object.defineProperty(n,"EY",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(n,"fs",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(n,"ks",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(n,"sG",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(n,"Yq",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(n,"AG",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(n,"pN",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(n,"ao",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(n,"h$",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(n,"Ce",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(n,"x0",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(n,"SH",{enumerable:!0,get:function(){return ne.default}});var a=ie(t(25584)),i=ie(t(74453)),l=ie(t(86402)),r=ie(t(1587)),o=(ie(t(50595)),ie(t(40515)),ie(t(31100))),s=(ie(t(99257)),ie(t(5486))),d=(ie(t(93117)),ie(t(59987))),c=ie(t(73627)),u=ie(t(11832)),p=(ie(t(59112)),ie(t(78365))),m=ie(t(6410)),f=ie(t(83596)),y=ie(t(36089)),g=ie(t(80719)),h=ie(t(73229)),x=(ie(t(81700)),ie(t(71336)),ie(t(6308))),T=ie(t(77443)),b=ie(t(5631)),v=ie(t(76198)),C=ie(t(89003)),k=ie(t(41376)),S=ie(t(48144)),N=ie(t(44663)),A=ie(t(42176)),R=ie(t(50271)),D=ie(t(44279)),L=(ie(t(90735)),ie(t(77745))),I=ie(t(21083)),j=ie(t(92518)),w=(ie(t(90653)),ie(t(65146))),O=ie(t(13859)),E=ie(t(315)),_=ie(t(5774)),F=ie(t(63786)),P=t(56402),B=ie(t(75870)),U=ie(t(73814)),$=(ie(t(91003)),ie(t(16783)),ie(t(51884))),M=ie(t(45177)),V=ie(t(46776)),G=(ie(t(88487)),ie(t(43339))),z=(ie(t(52578)),ie(t(26589))),W=ie(t(69509)),q=(ie(t(96646)),ie(t(68801)),ie(t(12260))),J=ie(t(37661)),Y=ie(t(2994)),H=ie(t(74852)),K=ie(t(39824)),Q=(ie(t(23050)),t(6626)),Z=ie(t(19454)),X=ie(t(94841)),ee=ie(t(24186)),ne=ie(t(89428)),te=(ie(t(59457)),ie(t(26017)));ie(t(38481)),ie(t(6467)),t(30060);!function(e){if("function"==typeof WeakMap){var n=new WeakMap;new WeakMap}!function(e){if(e&&e.__esModule)return e;var t,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(t=n){if(t.has(e))return t.get(e);t.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(t=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?t(i,l,a):i[l]=e[l])}(e)}(t(6871));var ae=t(26638);function ie(e){return e&&e.__esModule?e:{default:e}}},6484(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={text:{light:{background:"#bcbbca",text:"#4d505b"},normal:{background:"#83838e",text:"#FFFFFF"},dark:{background:"#4d505b",text:"#FFFFFF"}},overlay:{light:{background:"#F3F4F5",text:"#A2A3A5"},normal:{background:"#E8E9EC",text:"#A2A3A5"},dark:{background:"#A2A3A5",text:"#FFFFFF"}},inputs:{light:{background:"#FAFAFA",text:"#ABABAB"},normal:{background:"#F5F5F5",text:"#ABABAB"},dark:{background:"#ABABAB",text:"#FFFFFF"}},basic:{white:"#ffffff",black:"#000000"}}},39052(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={family:"'Proxima Nova', Helvetica, Arial, sans-serif",monospace:"Inconsolata, Monaco, Consolas, 'Courier New', Courier",weight:{default:"400",light:"300",normal:"400",semibold:"600",bold:"700",extra:"800"},xxs:{size:"8px",lineHeight:"12px"},xs:{size:"10px",lineHeight:"14px"},sm:{size:"12px",lineHeight:"16px"},md:{size:"14px",lineHeight:"20px"},lg:{size:"22px",lineHeight:"28px"},xl:{size:"30px",lineHeight:"34px"},xxl:{size:"40px",lineHeight:"46px"}}},57788(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={columns:{sizes:["0%","8.33333333%","16.66666667%","25%","33.33333333%","41.66666667%","50%","58.33333333%","66.66666667%","75%","83.33333333%","91.66666667%","100%"]},xxs:{radius:"32px",border:"1px",spacing:"4px",profile:{size:"50px",padding:"3px"}},xs:{breakpoint:"320px",container:"100%",radius:"32px",border:"1px",spacing:"8px",profile:{size:"75px",padding:"5px"}},sm:{breakpoint:"768px",container:"768px",radius:"32px",border:"1px",spacing:"16px",profile:{size:"100px",padding:"5px"}},md:{breakpoint:"1060px",container:"1060px",radius:"32px",border:"2px",spacing:"24px",profile:{size:"125px",padding:"7px"}},lg:{breakpoint:"1120px",container:"1120px",radius:"32px",border:"4px",spacing:"48px",profile:{size:"150px",padding:"10px"}},xl:{breakpoint:"1680px",container:"1680px",radius:"32px",border:"4px",spacing:"64px",profile:{size:"175px",padding:"10px"}},xxl:{radius:"32px",border:"4px",spacing:"96px",profile:{size:"200px",padding:"10px"}}}},59457(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t(6484)),i=o(t(39052)),l=o(t(57788)),r=o(t(11352));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach(function(n){c(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function c(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}n.default={name:"Default",colors:d(d({},a.default),r.default),fonts:i.default,geometry:l.default}},11352(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={primary:{light:{background:"#4eb2d3",text:"#008acb"},normal:{background:"#0094c9",text:"#ffffff"},dark:{background:"#00749b",text:"#ffffff"}},secondary:{light:{background:"#d6d1ff",text:"#7172c8"},normal:{background:"#a3a0fb",text:"#ffffff"},dark:{background:"#7172c8",text:"#ffffff"}},tertiary:{light:{background:"#60fce7",text:"#009685"},normal:{background:"#00c8b5",text:"#ffffff"},dark:{background:"#009685",text:"#ffffff"}},quaternary:{light:{background:"#ffc2cb",text:"#c9606c"},normal:{background:"#ff909a",text:"#ffffff"},dark:{background:"#c9606c",text:"#ffffff"}},quinary:{light:{background:"#635bc3",text:"#000c63"},normal:{background:"#2e3192",text:"#ffffff"},dark:{background:"#000c63",text:"#ffffff"}},senary:{light:{background:"#6aecff",text:"#008acb"},normal:{background:"#00baff",text:"#ffffff"},dark:{background:"#008acb",text:"#ffffff"}},neutral:{light:{background:"#f3f4f5",text:"#a2a3a5"},normal:{background:"#e8e9ec",text:"#a2a3a5"},dark:{background:"#a2a3a5",text:"#ffffff"}},info:{light:{background:"#c9eeff",text:"#05bafc"},normal:{background:"#94e1ff",text:"#ffffff"},dark:{background:"#05bafc",text:"#ffffff"}},success:{light:{background:"#60fce7",text:"#009685"},normal:{background:"#00c8b5",text:"#ffffff"},dark:{background:"#009685",text:"#ffffff"}},warning:{highlight:{background:"#FFF4E4",text:"#cca269"},light:{background:"#ffd7a2",text:"#cca269"},normal:{background:"#ffca83",text:"#ffffff"},dark:{background:"#cca269",text:"#ffffff"}},danger:{light:{background:"#ffc2cb",text:"#c9606c"},normal:{background:"#ff909a",text:"#ffffff"},dark:{background:"#c9606c",text:"#ffffff"}},gradient:{green:{light:{background:"#c9f3de",text:"#000000"},normal:{background:"#4ad991",text:"#ffffff"},dark:{background:"#3bae7a",text:"#ffffff"}},blue:{light:{background:"#9dc2ff",text:"#000000"},normal:{background:"#3b86ff",text:"#ffffff"},dark:{background:"#2f6bcc",text:"#ffffff"}}}},a={sidebar:{light:{background:"#2f2e41",text:t.primary.light.text},normal:{background:"#2f2e41",text:t.primary.normal.text},dark:{background:"#2f2e41",text:t.primary.dark.text}}},i=Object.assign({},t,a);n.default=i},87092(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={text:{light:{background:"#bcbbca",text:"#4d505b"},normal:{background:"#83838e",text:"#FFFFFF"},dark:{background:"#4d505b",text:"#FFFFFF"}},overlay:{light:{background:"#F3F4F5",text:"#A2A3A5"},normal:{background:"#E8E9EC",text:"#A2A3A5"},dark:{background:"#A2A3A5",text:"#FFFFFF"}},inputs:{light:{background:"#FAFAFA",text:"#ABABAB"},normal:{background:"#F5F5F5",text:"#ABABAB"},dark:{background:"#ABABAB",text:"#FFFFFF"}},basic:{white:"#ffffff",black:"#000000"}}},99052(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={family:"'Proxima Nova', Helvetica, Arial, sans-serif",monospace:"Inconsolata, Monaco, Consolas, 'Courier New', Courier",weight:{default:"400",light:"300",normal:"400",bold:"600",extra:"700"},xxs:{size:"8px",lineHeight:"1.4em"},xs:{size:"12px",lineHeight:"1.4em"},sm:{size:"14px",lineHeight:"1.4em"},md:{size:"16px",lineHeight:"1.4em"},lg:{size:"18px",lineHeight:"1.4em"},xl:{size:"24px",lineHeight:"1.4em"},xxl:{size:"32px",lineHeight:"1.4em"},xxxl:{size:"48px",lineHeight:"1.4em"}}},56796(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={columns:{sizes:["0%","8.33333333%","16.66666667%","25%","33.33333333%","41.66666667%","50%","58.33333333%","66.66666667%","75%","83.33333333%","91.66666667%","100%"]},xxs:{radius:"32px",border:"1px",spacing:"4px",profile:{size:"50px",padding:"3px"}},xs:{breakpoint:"320px",container:"100%",radius:"32px",border:"1px",spacing:"8px",profile:{size:"75px",padding:"5px"}},sm:{breakpoint:"768px",container:"768px",radius:"32px",border:"1px",spacing:"16px",profile:{size:"100px",padding:"5px"}},md:{breakpoint:"1060px",container:"1060px",radius:"32px",border:"2px",spacing:"24px",profile:{size:"125px",padding:"7px"}},lg:{breakpoint:"1120px",container:"1120px",radius:"32px",border:"4px",spacing:"32px",profile:{size:"150px",padding:"10px"}},xl:{breakpoint:"1680px",container:"1680px",radius:"32px",border:"4px",spacing:"48px",profile:{size:"175px",padding:"10px"}},xxl:{radius:"32px",border:"4px",spacing:"64px",profile:{size:"200px",padding:"10px"}},xxxl:{radius:"32px",border:"4px",spacing:"96px",profile:{size:"200px",padding:"10px"}}}},26017(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t(87092)),i=o(t(99052)),l=o(t(56796)),r=o(t(13400));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach(function(n){c(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function c(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}n.default={name:"Ditto Sustainability",colors:d(d({},a.default),r.default),fonts:i.default,geometry:l.default}},13400(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={primary:{light:{background:"#4cb3d9",text:"#0076a1"},normal:{background:"#0094c9",text:"#ffffff"},dark:{background:"#0076a1",text:"#ffffff"}},secondary:{light:{background:"#7D68AB",text:"#37265F"},normal:{background:"#533C89",text:"#ffffff"},dark:{background:"#37265F",text:"#ffffff"}},tertiary:{light:{background:"#47d3c8",text:"#349990"},normal:{background:"#3eb7ad",text:"#ffffff"},dark:{background:"#349990",text:"#ffffff"}},quaternary:{light:{background:"#ffb6ab",text:"#b36a5f"},normal:{background:"#ff9789",text:"#ffffff"},dark:{background:"#b36a5f",text:"#ffffff"}},quinary:{light:{background:"#4cb3d9",text:"#0076a1"},normal:{background:"#0094c9",text:"#ffffff"},dark:{background:"#0076a1",text:"#ffffff"}},senary:{light:{background:"#4cb3d9",text:"#0076a1"},normal:{background:"#0094c9",text:"#ffffff"},dark:{background:"#0076a1",text:"#ffffff"}},neutral:{light:{background:"#f3f4f5",text:"#a2a3a5"},normal:{background:"#e8e9ec",text:"#a2a3a5"},dark:{background:"#a2a3a5",text:"#ffffff"}},info:{light:{background:"#c9eeff",text:"#05bafc"},normal:{background:"#94e1ff",text:"#ffffff"},dark:{background:"#05bafc",text:"#ffffff"}},success:{light:{background:"#60fce7",text:"#009685"},normal:{background:"#00c8b5",text:"#ffffff"},dark:{background:"#009685",text:"#ffffff"}},warning:{highlight:{background:"#FFF4E4",text:"#cca269"},light:{background:"#ffd7a2",text:"#cca269"},normal:{background:"#ffca83",text:"#ffffff"},dark:{background:"#cca269",text:"#ffffff"}},danger:{light:{background:"#ffc2cb",text:"#c9606c"},normal:{background:"#ff909a",text:"#ffffff"},dark:{background:"#c9606c",text:"#ffffff"}},gradient:{green:{light:{background:"#c9f3de",text:"#000000"},normal:{background:"#4ad991",text:"#ffffff"},dark:{background:"#3bae7a",text:"#ffffff"}},blue:{light:{background:"#9dc2ff",text:"#000000"},normal:{background:"#3b86ff",text:"#ffffff"},dark:{background:"#2f6bcc",text:"#ffffff"}}}},a={sidebar:{light:{background:"#2f2e41",text:t.primary.light.text},normal:{background:"#2f2e41",text:t.primary.normal.text},dark:{background:"#2f2e41",text:t.primary.dark.text}}},i=Object.assign({},t,a,{regularText:{text:"#0b4ee6"},redesignPrimary:{background:"#dce1ff"},redesignTertiary:{background:"#bcc4f4"}});n.default=i},20100(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={text:{light:{background:"#bcbbca",text:"#4d505b"},normal:{background:"#83838e",text:"#FFFFFF"},dark:{background:"#4d505b",text:"#FFFFFF"}},overlay:{light:{background:"#F3F4F5",text:"#A2A3A5"},normal:{background:"#E8E9EC",text:"#A2A3A5"},dark:{background:"#A2A3A5",text:"#FFFFFF"}},inputs:{light:{background:"#FAFAFA",text:"#ABABAB"},normal:{background:"#F5F5F5",text:"#ABABAB"},dark:{background:"#ABABAB",text:"#FFFFFF"}},basic:{white:"#ffffff",black:"#000000"}}},78524(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={family:"'Proxima Nova', Helvetica, Arial, sans-serif",monospace:"Inconsolata, Monaco, Consolas, 'Courier New', Courier",weight:{default:"400",light:"300",normal:"400",semibold:"600",bold:"700",extra:"800"},xxs:{size:"8px",lineHeight:"12px"},xs:{size:"10px",lineHeight:"14px"},sm:{size:"12px",lineHeight:"16px"},md:{size:"14px",lineHeight:"20px"},lg:{size:"22px",lineHeight:"28px"},xl:{size:"30px",lineHeight:"34px"},xxl:{size:"40px",lineHeight:"46px"}}},60364(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={columns:{sizes:["0%","8.33333333%","16.66666667%","25%","33.33333333%","41.66666667%","50%","58.33333333%","66.66666667%","75%","83.33333333%","91.66666667%","100%"]},xxs:{radius:"32px",border:"1px",spacing:"4px",profile:{size:"50px",padding:"3px"}},xs:{radius:"32px",border:"1px",spacing:"8px",profile:{size:"75px",padding:"5px"}},sm:{radius:"32px",border:"1px",spacing:"16px",profile:{size:"100px",padding:"5px"}},md:{radius:"32px",border:"2px",spacing:"24px",profile:{size:"125px",padding:"7px"}},lg:{radius:"32px",border:"4px",spacing:"48px",profile:{size:"150px",padding:"10px"}},xl:{radius:"32px",border:"4px",spacing:"64px",profile:{size:"175px",padding:"10px"}},xxl:{radius:"32px",border:"4px",spacing:"96px",profile:{size:"200px",padding:"10px"}}}},38481(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t(20100)),i=o(t(78524)),l=o(t(60364)),r=o(t(88200));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach(function(n){c(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function c(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}n.default={name:"Ditto Tax",colors:d(d({},a.default),r.default),fonts:i.default,geometry:l.default}},88200(e,n){"use strict";function t(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function a(e){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?t(Object(a),!0).forEach(function(n){i(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function i(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l={primary:{light:{background:"#63bfae",text:"#2f9687"},normal:{background:"#44b3a1",text:"#ffffff"},dark:{background:"#2f9687",text:"#ffffff"}},secondary:{light:{background:"#475a7e",text:"#14274b"},normal:{background:"#1a325c",text:"#ffffff"},dark:{background:"#14274b",text:"#ffffff"}},tertiary:{light:{background:"#b7b6c1",text:"#84838e"},normal:{background:"#a5a4b1",text:"#ffffff"},dark:{background:"#84838e",text:"#ffffff"}},quaternary:{light:{background:"#9e519f",text:"#6b1d6b"},normal:{background:"#842985",text:"#ffffff"},dark:{background:"#6b1d6b",text:"#ffffff"}},quinary:{light:{background:"#63bfae",text:"#2f9687"},normal:{background:"#44b3a1",text:"#ffffff"},dark:{background:"#2f9687",text:"#ffffff"}},senary:{light:{background:"#63bfae",text:"#2f9687"},normal:{background:"#44b3a1",text:"#ffffff"},dark:{background:"#2f9687",text:"#ffffff"}},neutral:{light:{background:"#f3f4f5",text:"#a2a3a5"},normal:{background:"#e8e9ec",text:"#a2a3a5"},dark:{background:"#a2a3a5",text:"#ffffff"}},info:{light:{background:"#c9eeff",text:"#05bafc"},normal:{background:"#94e1ff",text:"#ffffff"},dark:{background:"#05bafc",text:"#ffffff"}},success:{light:{background:"#63bfae",text:"#2f9687"},normal:{background:"#44b3a1",text:"#ffffff"},dark:{background:"#2f9687",text:"#ffffff"}},warning:{highlight:{background:"#FFF4E4",text:"#cca269"},light:{background:"#ffd7a2",text:"#cca269"},normal:{background:"#ffca83",text:"#ffffff"},dark:{background:"#cca269",text:"#ffffff"}},danger:{light:{background:"#f1bcc1",text:"#a71321"},normal:{background:"#d11829",text:"#ffffff"},dark:{background:"#a71321",text:"#ffffff"}},gradient:{green:{light:{background:"#c9f3de",text:"#000000"},normal:{background:"#4ad991",text:"#ffffff"},dark:{background:"#3bae7a",text:"#ffffff"}},blue:{light:{background:"#9dc2ff",text:"#000000"},normal:{background:"#3b86ff",text:"#ffffff"},dark:{background:"#2f6bcc",text:"#ffffff"}}}},r={sidebar:{light:{background:l.primary.light.background,text:l.primary.light.text},normal:{background:l.primary.normal.background,text:l.primary.normal.text},dark:{background:l.primary.dark.background,text:l.primary.dark.text}}},o=a(a({},l),r);n.default=o},56746(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={text:{light:{background:"#bcbbca",text:"#4d505b"},normal:{background:"#83838e",text:"#FFFFFF"},dark:{background:"#4d505b",text:"#FFFFFF"}},overlay:{light:{background:"#F3F4F5",text:"#A2A3A5"},normal:{background:"#E8E9EC",text:"#A2A3A5"},dark:{background:"#A2A3A5",text:"#FFFFFF"}},inputs:{light:{background:"#FAFAFA",text:"#ABABAB"},normal:{background:"#F5F5F5",text:"#ABABAB"},dark:{background:"#ABABAB",text:"#FFFFFF"}},basic:{white:"#ffffff",black:"#000000"}}},27458(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={family:"'Proxima Nova', Helvetica, Arial, sans-serif",monospace:"Inconsolata, Monaco, Consolas, 'Courier New', Courier",weight:{default:"400",light:"300",normal:"400",semibold:"600",bold:"700",extra:"800"},xxs:{size:"8px",lineHeight:"12px"},xs:{size:"10px",lineHeight:"14px"},sm:{size:"12px",lineHeight:"16px"},md:{size:"14px",lineHeight:"20px"},lg:{size:"22px",lineHeight:"28px"},xl:{size:"30px",lineHeight:"34px"},xxl:{size:"40px",lineHeight:"46px"}}},17420(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={columns:{sizes:["0%","8.33333333%","16.66666667%","25%","33.33333333%","41.66666667%","50%","58.33333333%","66.66666667%","75%","83.33333333%","91.66666667%","100%"]},xxs:{radius:"32px",border:"1px",spacing:"4px",profile:{size:"50px",padding:"3px"}},xs:{radius:"32px",border:"1px",spacing:"8px",profile:{size:"75px",padding:"5px"}},sm:{radius:"32px",border:"1px",spacing:"16px",profile:{size:"100px",padding:"5px"}},md:{radius:"32px",border:"2px",spacing:"24px",profile:{size:"125px",padding:"7px"}},lg:{radius:"32px",border:"4px",spacing:"48px",profile:{size:"150px",padding:"10px"}},xl:{radius:"32px",border:"4px",spacing:"64px",profile:{size:"175px",padding:"10px"}},xxl:{radius:"32px",border:"4px",spacing:"96px",profile:{size:"200px",padding:"10px"}}}},6467(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t(56746)),i=o(t(27458)),l=o(t(17420)),r=o(t(74490));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach(function(n){c(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function c(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}n.default={name:"Ditto Translation",colors:d(d({},a.default),r.default),fonts:i.default,geometry:l.default}},74490(e,n){"use strict";function t(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function a(e){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?t(Object(a),!0).forEach(function(n){i(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function i(e,n,t){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l={primary:{light:{background:"#FFA74C",text:"#459b84"},normal:{background:"#FF8200",text:"#ffffff"},dark:{background:"#CC6800",text:"#ffffff"}},secondary:{light:{background:"#475a7e",text:"#14274b"},normal:{background:"#1a325c",text:"#ffffff"},dark:{background:"#14274b",text:"#ffffff"}},tertiary:{light:{background:"#b7b6c1",text:"#84838e"},normal:{background:"#a5a4b1",text:"#ffffff"},dark:{background:"#84838e",text:"#ffffff"}},quaternary:{light:{background:"#9e519f",text:"#6b1d6b"},normal:{background:"#842985",text:"#ffffff"},dark:{background:"#6b1d6b",text:"#ffffff"}},quinary:{light:{background:"#FFA74C",text:"#459b84"},normal:{background:"#FF8200",text:"#ffffff"},dark:{background:"#CC6800",text:"#ffffff"}},senary:{light:{background:"#FFA74C",text:"#459b84"},normal:{background:"#FF8200",text:"#ffffff"},dark:{background:"#CC6800",text:"#ffffff"}},neutral:{light:{background:"#f3f4f5",text:"#a2a3a5"},normal:{background:"#e8e9ec",text:"#a2a3a5"},dark:{background:"#a2a3a5",text:"#ffffff"}},info:{light:{background:"#c9eeff",text:"#05bafc"},normal:{background:"#94e1ff",text:"#ffffff"},dark:{background:"#05bafc",text:"#ffffff"}},success:{light:{background:"#bcddcc",text:"#167243"},normal:{background:"#00c8b5",text:"#ffffff"},dark:{background:"#167243",text:"#ffffff"}},warning:{highlight:{background:"#FFF4E4",text:"#cca269"},light:{background:"#ffd7a2",text:"#cca269"},normal:{background:"#ffca83",text:"#ffffff"},dark:{background:"#cca269",text:"#ffffff"}},danger:{light:{background:"#f1bcc1",text:"#a71321"},normal:{background:"#d11829",text:"#ffffff"},dark:{background:"#a71321",text:"#ffffff"}},gradient:{green:{light:{background:"#c9f3de",text:"#000000"},normal:{background:"#4ad991",text:"#ffffff"},dark:{background:"#3bae7a",text:"#ffffff"}},blue:{light:{background:"#9dc2ff",text:"#000000"},normal:{background:"#3b86ff",text:"#ffffff"},dark:{background:"#2f6bcc",text:"#ffffff"}}}},r={sidebar:{light:{background:l.primary.light.background,text:l.primary.light.text},normal:{background:l.primary.normal.background,text:l.primary.normal.text},dark:{background:l.primary.dark.background,text:l.primary.dark.text}}},o=a(a({},l),r);n.default=o},30060(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.withGlobalStyles=n.GlobalStyles=void 0;var a,i,l=(a=t(22155))&&a.__esModule?a:{default:a},r=t(75235),o=n.GlobalStyles=(0,r.createGlobalStyle)(i||(i=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n  a,\n  abbr, \n  acronym, \n  address, \n  applet, \n  area, \n  article, \n  aside, \n  audio, \n  b, \n  base,\n  basefont,\n  bdi, \n  bdo, \n  bgsound, \n  big, \n  blink, \n  blockquote, \n  body, \n  br, \n  button, \n  canvas,\n  caption,\n  center, \n  cite, \n  code, \n  col, \n  colgroup, \n  content, \n  data, \n  datalist, \n  dd, \n  del,\n  details,\n  dfn, \n  dir, \n  div, \n  dl, \n  dt, \n  em, \n  embed, \n  fieldset, \n  figcaption, \n  figure, \n  font,\n  footer,\n  form, \n  frame, \n  frameset,  \n  head, \n  header, \n  hgroup, \n  hr,\n  html,\n  i, \n  iframe, \n  img, \n  input, \n  ins, \n  isindex, \n  kbd, \n  keygen, \n  label, \n  legend, \n  li, \n  link,\n  listing,\n  main, \n  map, \n  mark, \n  marquee, \n  menu, \n  menuitem, \n  meta, \n  meter, \n  nav, \n  nobr,\n  noframes,\n  noscript, \n  object, \n  ol, \n  optgroup, \n  option, \n  output, \n  p, \n  param, \n  plaintext,\n  pre,\n  progress, \n  q, \n  rp, \n  rt, \n  ruby, \n  s, \n  samp, \n  script, \n  section, \n  select, \n  shadow, \n  small,\n  source,\n  spacer, \n  span, \n  strike, \n  strong, \n  style, \n  sub, \n  summary, \n  sup, \n  table, \n  tbody,\n  td,\n  template, \n  textarea, \n  tfoot, \n  th, \n  thead, \n  time, \n  title, \n  tr, \n  track, \n  tt, \n  u, \n  ul,\n  var,\n  video, \n  wbr, \n  xmp {\n    background-color: transparent;\n    border: 0;\n    color: inherit;\n    fill: inherit;\n    font-family: inherit;\n    font-size: 100%;\n    font-weight: inherit;\n    margin: 0;\n    outline: 0;\n    padding: 0;\n    text-decoration: none;\n    vertical-align: baseline;\n  }\n\n\n  h1, \n  h2, \n  h3, \n  h4, \n  h5, \n  h6, {\n    background-color: transparent;\n    border: 0;\n    color: inherit;\n    fill: inherit;\n    font-family: inherit;\n    font-weight: inherit;\n    margin: 0;\n    outline: 0;\n    padding: 0;\n    text-decoration: none;\n    vertical-align: baseline;\n  }\n\n  ol,\n  ul {\n    list-style: none;\n  }\n\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n    width: 100%;\n  }\n\n  th {\n    text-align: left;\n  }\n\n  * {\n    box-sizing: border-box;\n  }\n\n  html,\n  body,\n  #root {\n    // set base font family\n    // set base font size\n    height: 100%;\n    width: 100%;\n  }\n  "])));n.withGlobalStyles=function(e){return l.default.createElement(l.default.Fragment,null,l.default.createElement(o,null),e())}},6871(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.subtract=n.stripUnit=n.multiply=n.getUnit=n.getSpanWidth=n.divide=n.add=void 0;var t=n.getUnit=function(e){return e.toString().replace(/[-\d.%]/g,"")},a=n.stripUnit=function(e){return parseFloat(e)};n.multiply=function(e,n){var i=t(e),l=t(n),r=a(e),o=a(n);return(!i||!l||i===l)&&"".concat(r*o).concat(i)},n.divide=function(e,n){var i=t(e),l=t(n),r=a(e),o=a(n);return(!i||!l||i===l)&&"".concat(r/o).concat(i)},n.add=function(e,n){var i=t(e),l=t(n),r=a(e),o=a(n);return(!i||!l||i===l)&&"".concat(r+o).concat(i)},n.subtract=function(e,n){var i=t(e),l=t(n),r=a(e),o=a(n);return(!i||!l||i===l)&&"".concat(r-o).concat(i)},n.getSpanWidth=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;return n<=0?"0%":e>n?"100%":"".concat(e/n*100,"%")}},39579(e,n){"use strict";function t(){var e,n,i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",r=i.toStringTag||"@@toStringTag";function o(t,i,l,r){var o=i&&i.prototype instanceof d?i:d,c=Object.create(o.prototype);return a(c,"_invoke",function(t,a,i){var l,r,o,d=0,c=i||[],u=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(n,t){return l=n,r=0,o=e,p.n=t,s}};function m(t,a){for(r=t,o=a,n=0;!u&&d&&!i&&n<c.length;n++){var i,l=c[n],m=p.p,f=l[2];t>3?(i=f===a)&&(o=l[(r=l[4])?5:(r=3,3)],l[4]=l[5]=e):l[0]<=m&&((i=t<2&&m<l[1])?(r=0,p.v=a,p.n=l[1]):m<f&&(i=t<3||l[0]>a||a>f)&&(l[4]=t,l[5]=a,p.n=f,r=0))}if(i||t>1)return s;throw u=!0,a}return function(i,c,f){if(d>1)throw TypeError("Generator is already running");for(u&&1===c&&m(c,f),r=c,o=f;(n=r<2?e:o)||!u;){l||(r?r<3?(r>1&&(p.n=-1),m(r,o)):p.n=o:p.v=o);try{if(d=2,l){if(r||(i="next"),n=l[i]){if(!(n=n.call(l,o)))throw TypeError("iterator result is not an object");if(!n.done)return n;o=n.value,r<2&&(r=0)}else 1===r&&(n=l.return)&&n.call(l),r<2&&(o=TypeError("The iterator does not provide a '"+i+"' method"),r=1);l=e}else if((n=(u=p.n<0)?o:t.call(a,p))!==s)break}catch(n){l=e,r=1,o=n}finally{d=1}}return{value:n,done:u}}}(t,l,r),!0),c}var s={};function d(){}function c(){}function u(){}n=Object.getPrototypeOf;var p=[][l]?n(n([][l]())):(a(n={},l,function(){return this}),n),m=u.prototype=d.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,a(e,r,"GeneratorFunction")),e.prototype=Object.create(m),e}return c.prototype=u,a(m,"constructor",u),a(u,"constructor",c),c.displayName="GeneratorFunction",a(u,r,"GeneratorFunction"),a(m),a(m,r,"Generator"),a(m,l,function(){return this}),a(m,"toString",function(){return"[object Generator]"}),(t=function(){return{w:o,m:f}})()}function a(e,n,t,i){var l=Object.defineProperty;try{l({},"",{})}catch(e){l=0}a=function(e,n,t,i){function r(n,t){a(e,n,function(e){return this._invoke(n,t,e)})}n?l?l(e,n,{value:t,enumerable:!i,configurable:!i,writable:!i}):e[n]=t:(r("next",0),r("throw",1),r("return",2))},a(e,n,t,i)}function i(e,n,t,a,i,l,r){try{var o=e[l](r),s=o.value}catch(e){return void t(e)}o.done?n(s):Promise.resolve(s).then(a,i)}function l(e){return function(){var n=this,t=arguments;return new Promise(function(a,l){var r=e.apply(n,t);function o(e){i(r,a,l,o,s,"next",e)}function s(e){i(r,a,l,o,s,"throw",e)}o(void 0)})}}Object.defineProperty(n,"__esModule",{value:!0}),n.debounce=void 0,n.debounce=function(e,n){var a;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return new Promise(function(i,o){a&&clearInterval(a),a=setTimeout(l(t().m(function n(){var a,l;return t().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,e.apply(void 0,r);case 1:a=n.v,i(a),n.n=3;break;case 2:n.p=2,l=n.v,o(l);case 3:return n.a(2)}},n,null,[[0,2]])})),n)})}}},41223(e,n){"use strict";var t,a,i,l,r,o,s,d,c,u,p,m,f,y,g,h,x,T,b,v,C,k,S,N,A,R,D,L,I,j,w,O,E,_,F,P,B,U,$,M,V,G,z,W,q,J,Y,H,K,Q,Z,X,ee,ne,te,ae,ie,le,re,oe,se,de,ce,ue,pe,me,fe,ye,ge,he,xe,Te,be;n.sE=n.KB=n.v7=n._P=n.XY=n.Xj=n.K=n.Q=n.uX=n.mv=n.mh=n.yG=n.US=n.h6=n.mF=n.Ub=n.Ak=n.jN=n.II=n.fj=n.l2=n.Fr=n.gb=n.zM=n.F4=n.oQ=n.oY=n.QT=n.pe=n.kt=n.GV=n.Rh=n.qT=n.RA=n.oo=n.G1=n.ID=n.rA=n.ho=n.Ed=n.go=n.x1=n.nA=n.nE=n.G8=n.Qn=n.VT=n.DF=n.C=n.CO=void 0,n.Ui=n.gG=n.M6=n.BL=n.wZ=n.ou=n.D_=n.iG=n.F9=n.AR=n.W6=n.li=n.Ix=n.Tc=n.ZU=n.iD=n.p2=n.xV=n.d=n.kL=n.HG=n.zB=n.WP=n.PG=void 0,(be=n.CO||(n.CO={})).Enterprise="ENTERPRISE",be.Team="TEAM",be.Engage="ENGAGE",(Te=n.C||(n.C={})).Est="EST",Te.Act="ACT",(xe=n.DF||(n.DF={})).Sum="SUM",xe.Avg="AVG",xe.Min="MIN",xe.Max="MAX",xe.Count="COUNT",xe.None="NONE",(he=n.VT||(n.VT={})).Wastestream="WASTESTREAM",he.Wastetreatmentprocess="WASTETREATMENTPROCESS",he.Wastecontractor="WASTECONTRACTOR",he.Wastecarrier="WASTECARRIER",he.Containertypesize="CONTAINERTYPESIZE",he.Wastein="WASTEIN",he.Wasteout="WASTEOUT",he.Locationpoint="LOCATIONPOINT",he.Meter="METER",he.Transport="TRANSPORT",he.Transportsubtype="TRANSPORTSUBTYPE",he.Fueltype="FUELTYPE",he.Transportfueltype="TRANSPORTFUELTYPE",he.Journeytarget="JOURNEYTARGET",he.Unit="UNIT",he.Accuracy="ACCURACY",he.Currency="CURRENCY",he.Material="MATERIAL",he.Materialorigin="MATERIALORIGIN",he.Tariff="TARIFF",he.Counterparty="COUNTERPARTY",(ge=n.Qn||(n.Qn={})).Clean="CLEAN",ge.Error="ERROR",ge.Infected="INFECTED",ge.Pending="PENDING",(ye=n.G8||(n.G8={})).Activity="ACTIVITY",ye.Aspect="ASPECT",ye.Impact="IMPACT",ye.EmergencyCondition="EMERGENCY_CONDITION",ye.ControlMeasure="CONTROL_MEASURE",ye.Status="STATUS",ye.Departments="DEPARTMENTS",(fe=n.nE||(n.nE={})).FormCampaign="FORM_CAMPAIGN",fe.FormSubmission="FORM_SUBMISSION",(n.nA||(n.nA={})).FormService="FORM_SERVICE",(me=n.x1||(n.x1={})).Video="VIDEO",me.Scorm="SCORM",me.Hyperlink="HYPERLINK",(pe=n.go||(n.go={})).Dec="DEC",pe.Epc="EPC",(ue=n.Ed||(n.Ed={})).A="A",ue.B="B",ue.C="C",ue.D="D",ue.E="E",ue.F="F",ue.G="G",(ce=n.ho||(n.ho={})).Add="ADD",ce.Remove="REMOVE",(de=n.rA||(n.rA={})).Electricity="ELECTRICITY",de.Fuel="FUEL",de.Gas="GAS",de.Materials="MATERIALS",de.Transport="TRANSPORT",de.Waste="WASTE",de.Water="WATER",(se=n.ID||(n.ID={})).Waste="WASTE",se.Water="WATER",se.Energy="ENERGY",se.Transport="TRANSPORT",se.EnvironmentalSocialGovernance="ENVIRONMENTAL_SOCIAL_GOVERNANCE",se.CircularEconomy="CIRCULAR_ECONOMY",se.HealthAndSafety="HEALTH_AND_SAFETY",se.HealthAndWellbeing="HEALTH_AND_WELLBEING",(oe=n.G1||(n.G1={})).Notstarted="NOTSTARTED",oe.Inprogress="INPROGRESS",oe.Complete="COMPLETE",(re=n.oo||(n.oo={})).Learn="LEARN",re.Comply="COMPLY",re.Data="DATA",re.Survey="SURVEY",(le=n.RA||(n.RA={})).FromDate="FROM_DATE",le.ToDate="TO_DATE",le.Year_1="YEAR_1",le.Year_2="YEAR_2",le.Period_1="PERIOD_1",le.Period_2="PERIOD_2",le.StandaloneYear="STANDALONE_YEAR",le.LocationOccupation="LOCATION_OCCUPATION",le.ActualOrEstimated="ACTUAL_OR_ESTIMATED",le.Locations="LOCATIONS",le.Tags="TAGS",le.Departments="DEPARTMENTS",le.Countries="COUNTRIES",le.Regions="REGIONS",le.Meters="METERS",le.Scopes="SCOPES",le.GhgScopes="GHG_SCOPES",le.Sources="SOURCES",le.Units="UNITS",le.Materials="MATERIALS",le.TransportTypes="TRANSPORT_TYPES",le.PurposesOfTravel="PURPOSES_OF_TRAVEL",le.FuelTypes="FUEL_TYPES",le.LocationCustomAttributes="LOCATION_CUSTOM_ATTRIBUTES",le.WasteStreams="WASTE_STREAMS",le.WasteContractors="WASTE_CONTRACTORS",le.WasteCarriers="WASTE_CARRIERS",le.ProjectPhases="PROJECT_PHASES",le.BusinessUnit="BUSINESS_UNIT",le.WaterInOut="WATER_IN_OUT",le.UploadReferences="UPLOAD_REFERENCES",(ie=n.qT||(n.qT={})).Quicksight="QUICKSIGHT",ie.Custom="CUSTOM",(ae=n.Rh||(n.Rh={})).SectionTitleTile="SECTION_TITLE_TILE",ae.TotalElectricityConsumption="TOTAL_ELECTRICITY_CONSUMPTION",ae.TotalElectricityConsumptionPeriodComparisonKpiTile="TOTAL_ELECTRICITY_CONSUMPTION_PERIOD_COMPARISON_KPI_TILE",ae.TotalElectricityCost="TOTAL_ELECTRICITY_COST",ae.TotalElectricityCostPeriodComparisonKpiTile="TOTAL_ELECTRICITY_COST_PERIOD_COMPARISON_KPI_TILE",ae.TotalElectricityGrossCarbonEmissions="TOTAL_ELECTRICITY_GROSS_CARBON_EMISSIONS",ae.TotalElectricityGrossCarbonEmissionsPeriodComparisonKpiTile="TOTAL_ELECTRICITY_GROSS_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE",ae.TotalElectricityNetCarbonEmissions="TOTAL_ELECTRICITY_NET_CARBON_EMISSIONS",ae.TotalElectricityNetCarbonEmissionsPeriodComparisonKpiTile="TOTAL_ELECTRICITY_NET_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE",ae.AverageElectricityChargePerKilowattPeriodComparisonKpiTile="AVERAGE_ELECTRICITY_CHARGE_PER_KILOWATT_PERIOD_COMPARISON_KPI_TILE",ae.AverageElectricityChargePerKilowattByLocationPeriodComparisonTableTile="AVERAGE_ELECTRICITY_CHARGE_PER_KILOWATT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.AverageElectricityChargePerKilowattByTagPeriodComparisonTableTile="AVERAGE_ELECTRICITY_CHARGE_PER_KILOWATT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.ElectricityConsumptionByLocation="ELECTRICITY_CONSUMPTION_BY_LOCATION",ae.ElectricityConsumptionByLocationPeriodComparisonTableTile="ELECTRICITY_CONSUMPTION_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.ElectricityConsumptionByTagPeriodComparisonTableTile="ELECTRICITY_CONSUMPTION_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.ElectricityCostByLocationPeriodComparisonTableTile="ELECTRICITY_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.ElectricityCostByTagPeriodComparisonTableTile="ELECTRICITY_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.ElectricityConsumptionByCountryAndScope="ELECTRICITY_CONSUMPTION_BY_COUNTRY_AND_SCOPE",ae.ElectricityCostAndConsupmtionOverTime="ELECTRICITY_COST_AND_CONSUPMTION_OVER_TIME",ae.ElectricityGrossCarbonEmissionsByScope="ELECTRICITY_GROSS_CARBON_EMISSIONS_BY_SCOPE",ae.ElectricityGrossCarbonEmissionsByLocationPeriodComparisonTableTile="ELECTRICITY_GROSS_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.ElectricityGrossCarbonEmissionsByTagPeriodComparisonTableTile="ELECTRICITY_GROSS_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.ElectricityNetCarbonEmissionsByLocationPeriodComparisonTableTile="ELECTRICITY_NET_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.ElectricityNetCarbonEmissionsByTagPeriodComparisonTableTile="ELECTRICITY_NET_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.TotalCarbonEmissions="TOTAL_CARBON_EMISSIONS",ae.TotalCarbonEmissionsPeriodComparisonKpiTile="TOTAL_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE",ae.TotalCarbonCostPeriodComparisonKpiTile="TOTAL_CARBON_COST_PERIOD_COMPARISON_KPI_TILE",ae.CarbonEmissionsByScopePie="CARBON_EMISSIONS_BY_SCOPE_PIE",ae.CarbonEmissionsBySourceBar="CARBON_EMISSIONS_BY_SOURCE_BAR",ae.CarbonEmissionsByScopeAndSourceTable="CARBON_EMISSIONS_BY_SCOPE_AND_SOURCE_TABLE",ae.CarbonEmissionsByDataTypeBar="CARBON_EMISSIONS_BY_DATA_TYPE_BAR",ae.CarbonWttAndTdEmissionsBySourceTableTile="CARBON_WTT_AND_TD_EMISSIONS_BY_SOURCE_TABLE_TILE",ae.CarbonEmissionsByLocationPeriodComparisonTableTile="CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.CarbonCostByLocationPeriodComparisonTableTile="CARBON_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.CarbonEmissionsByTagPeriodComparisonTableTile="CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.CarbonCostByTagPeriodComparisonTableTile="CARBON_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.CarbonEmissionsByScopePeriodComparisonTableTile="CARBON_EMISSIONS_BY_SCOPE_PERIOD_COMPARISON_TABLE_TILE",ae.CarbonCostByScopePeriodComparisonTableTile="CARBON_COST_BY_SCOPE_PERIOD_COMPARISON_TABLE_TILE",ae.CarbonEmissionsByResourcePeriodComparisonTableTile="CARBON_EMISSIONS_BY_RESOURCE_PERIOD_COMPARISON_TABLE_TILE",ae.CarbonCostByResourcePeriodComparisonTableTile="CARBON_COST_BY_RESOURCE_PERIOD_COMPARISON_TABLE_TILE",ae.CarbonEmissionsByScopeForPeriod_1PieTile="CARBON_EMISSIONS_BY_SCOPE_FOR_PERIOD_1_PIE_TILE",ae.CarbonEmissionsByScopeForPeriod_2PieTile="CARBON_EMISSIONS_BY_SCOPE_FOR_PERIOD_2_PIE_TILE",ae.CarbonEmissionsBySourceForPeriod_1BarTile="CARBON_EMISSIONS_BY_SOURCE_FOR_PERIOD_1_BAR_TILE",ae.CarbonEmissionsBySourceForPeriod_2BarTile="CARBON_EMISSIONS_BY_SOURCE_FOR_PERIOD_2_BAR_TILE",ae.ResourcesUsedByScopeTable="RESOURCES_USED_BY_SCOPE_TABLE",ae.ResourcesUsedByLocationTable="RESOURCES_USED_BY_LOCATION_TABLE",ae.ProportionOfActVsEstPie="PROPORTION_OF_ACT_VS_EST_PIE",ae.QuantityAndCo2EByLocationAndMeterTable="QUANTITY_AND_CO2E_BY_LOCATION_AND_METER_TABLE",ae.CarbonEmissionsByCountryBar="CARBON_EMISSIONS_BY_COUNTRY_BAR",ae.CarbonEmissionsByCountryAndScopeTable="CARBON_EMISSIONS_BY_COUNTRY_AND_SCOPE_TABLE",ae.CarbonEmissionsByCountryMap="CARBON_EMISSIONS_BY_COUNTRY_MAP",ae.TopCarbonEmissionsByCountryTable="TOP_CARBON_EMISSIONS_BY_COUNTRY_TABLE",ae.Top_3CarbonEmissionCountriesTable="TOP_3_CARBON_EMISSION_COUNTRIES_TABLE",ae.Bottom_3CarbonEmissionCountriesTable="BOTTOM_3_CARBON_EMISSION_COUNTRIES_TABLE",ae.TotalEnergyConsumptionKpiTile="TOTAL_ENERGY_CONSUMPTION_KPI_TILE",ae.TotalEnergyGrossCarbonEmissionsKpiTile="TOTAL_ENERGY_GROSS_CARBON_EMISSIONS_KPI_TILE",ae.TotalEnergyNetCarbonEmissionsKpiTile="TOTAL_ENERGY_NET_CARBON_EMISSIONS_KPI_TILE",ae.TotalEnergyCostKpiTile="TOTAL_ENERGY_COST_KPI_TILE",ae.EnergyCostAndConsumptionBarTile="ENERGY_COST_AND_CONSUMPTION_BAR_TILE",ae.EnergyCarbonEmissionsByScopeBarTile="ENERGY_CARBON_EMISSIONS_BY_SCOPE_BAR_TILE",ae.EnergyConsumptionPerLocationTableTile="ENERGY_CONSUMPTION_PER_LOCATION_TABLE_TILE",ae.EnergyConsumptionByScopeAndTariffTableTile="ENERGY_CONSUMPTION_BY_SCOPE_AND_TARIFF_TABLE_TILE",ae.TotalEnergyConsumptionYearOnYearKpiTile="TOTAL_ENERGY_CONSUMPTION_YEAR_ON_YEAR_KPI_TILE",ae.TotalEnergyCostYearOnYearKpiTile="TOTAL_ENERGY_COST_YEAR_ON_YEAR_KPI_TILE",ae.TotalEnergyGrossCarbonEmissionsYearOnYearKpiTile="TOTAL_ENERGY_GROSS_CARBON_EMISSIONS_YEAR_ON_YEAR_KPI_TILE",ae.TotalEnergyNetCarbonEmissionsYearOnYearKpiTile="TOTAL_ENERGY_NET_CARBON_EMISSIONS_YEAR_ON_YEAR_KPI_TILE",ae.MonthlyEnergyConsumptionYearOnYearBarTile="MONTHLY_ENERGY_CONSUMPTION_YEAR_ON_YEAR_BAR_TILE",ae.AnnualEnergyFiguresPerLocationTableTile="ANNUAL_ENERGY_FIGURES_PER_LOCATION_TABLE_TILE",ae.TotalWasteWeightKpiTile="TOTAL_WASTE_WEIGHT_KPI_TILE",ae.TotalWasteCostKpiTile="TOTAL_WASTE_COST_KPI_TILE",ae.TotalWasteCarbonEmissionsKpiTile="TOTAL_WASTE_CARBON_EMISSIONS_KPI_TILE",ae.PercentageDivertedFromDisposalKpiTile="PERCENTAGE_DIVERTED_FROM_DISPOSAL_KPI_TILE",ae.WasteCostAndWeightOverTimeBarTile="WASTE_COST_AND_WEIGHT_OVER_TIME_BAR_TILE",ae.WasteHierarchyByTypeDonutTile="WASTE_HIERARCHY_BY_TYPE_DONUT_TILE",ae.WasteCarbonEmissionsByScopeBarTile="WASTE_CARBON_EMISSIONS_BY_SCOPE_BAR_TILE",ae.WasteByWasteStreamPieTile="WASTE_BY_WASTE_STREAM_PIE_TILE",ae.WasteConsumptionByLocationTableTile="WASTE_CONSUMPTION_BY_LOCATION_TABLE_TILE",ae.TotalWasteWeightYearOnYearKpiTile="TOTAL_WASTE_WEIGHT_YEAR_ON_YEAR_KPI_TILE",ae.TotalWasteCarbonEmissionsYearOnYearKpiTile="TOTAL_WASTE_CARBON_EMISSIONS_YEAR_ON_YEAR_KPI_TILE",ae.TotalWasteCostYearOnYearKpiTile="TOTAL_WASTE_COST_YEAR_ON_YEAR_KPI_TILE",ae.TotalWasteCostPerTonnageYearOnYearKpiTile="TOTAL_WASTE_COST_PER_TONNAGE_YEAR_ON_YEAR_KPI_TILE",ae.AnnualWasteGenerationAndCostPerLocationTableTile="ANNUAL_WASTE_GENERATION_AND_COST_PER_LOCATION_TABLE_TILE",ae.MonthlyWasteGenerationYearOnYearBarTile="MONTHLY_WASTE_GENERATION_YEAR_ON_YEAR_BAR_TILE",ae.MonthlyWasteGenerationAndCostYearOnYearBarTile="MONTHLY_WASTE_GENERATION_AND_COST_YEAR_ON_YEAR_BAR_TILE",ae.WasteWeightOverTimeBarTile="WASTE_WEIGHT_OVER_TIME_BAR_TILE",ae.WasteCostByWasteStreamPieTile="WASTE_COST_BY_WASTE_STREAM_PIE_TILE",ae.WasteStreamCostOverTimeBarTile="WASTE_STREAM_COST_OVER_TIME_BAR_TILE",ae.WasteWeightOverTimeByWasteStreamBarTile="WASTE_WEIGHT_OVER_TIME_BY_WASTE_STREAM_BAR_TILE",ae.WasteCostOverTimeByWasteStreamBarTile="WASTE_COST_OVER_TIME_BY_WASTE_STREAM_BAR_TILE",ae.WasteWeightByLocationPeriodComparisonTableTile="WASTE_WEIGHT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCarbonEmissionsByLocationPeriodComparisonTableTile="WASTE_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WasteWeightByTagPeriodComparisonTableTile="WASTE_WEIGHT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCarbonEmissionsByTagPeriodComparisonTableTile="WASTE_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WasteWeightByContractorPeriodComparisonTableTile="WASTE_WEIGHT_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCarbonEmissionsByContractorPeriodComparisonTableTile="WASTE_CARBON_EMISSIONS_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE",ae.WasteWeightByTreatmentProcessPeriodComparisonTableTile="WASTE_WEIGHT_BY_TREATMENT_PROCESS_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCarbonEmissionsByTreatmentProcessPeriodComparisonTableTile="WASTE_CARBON_EMISSIONS_BY_TREATMENT_PROCESS_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCostByLocationPeriodComparisonTableTile="WASTE_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCostPerTonnageByLocationPeriodComparisonTableTile="WASTE_COST_PER_TONNAGE_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCostByTagPeriodComparisonTableTile="WASTE_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCostPerTonnageByTagPeriodComparisonTableTile="WASTE_COST_PER_TONNAGE_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCostByContractorPeriodComparisonTableTile="WASTE_COST_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCostPerTonnageByContractorPeriodComparisonTableTile="WASTE_COST_PER_TONNAGE_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCostByTreatmentProcessPeriodComparisonTableTile="WASTE_COST_BY_TREATMENT_PROCESS_PERIOD_COMPARISON_TABLE_TILE",ae.WasteCostPerTonnageByTreatmentProcessPeriodComparisonTableTile="WASTE_COST_PER_TONNAGE_BY_TREATMENT_PROCESS_PERIOD_COMPARISON_TABLE_TILE",ae.WasteDisposalPercentagePeriodComparisonKpiTile="WASTE_DISPOSAL_PERCENTAGE_PERIOD_COMPARISON_KPI_TILE",ae.WasteRecycingPercentagePeriodComparisonKpiTile="WASTE_RECYCING_PERCENTAGE_PERIOD_COMPARISON_KPI_TILE",ae.WasteDisposalPercentageByLocationPeriodComparisonTableTile="WASTE_DISPOSAL_PERCENTAGE_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WasteRecycingPercentageByLocationPeriodComparisonTableTile="WASTE_RECYCING_PERCENTAGE_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WasteDisposalPercentageByTagPeriodComparisonTableTile="WASTE_DISPOSAL_PERCENTAGE_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WasteRecycingPercentageByTagPeriodComparisonTableTile="WASTE_RECYCING_PERCENTAGE_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WasteDisposalPercentageByWasteStreamPeriodComparisonTableTile="WASTE_DISPOSAL_PERCENTAGE_BY_WASTE_STREAM_PERIOD_COMPARISON_TABLE_TILE",ae.WasteRecycingPercentageByWasteStreamPeriodComparisonTableTile="WASTE_RECYCING_PERCENTAGE_BY_WASTE_STREAM_PERIOD_COMPARISON_TABLE_TILE",ae.WasteDisposalPercentageOverTimeBarTile="WASTE_DISPOSAL_PERCENTAGE_OVER_TIME_BAR_TILE",ae.WasteRecyclingPercentageOverTimeBarTile="WASTE_RECYCLING_PERCENTAGE_OVER_TIME_BAR_TILE",ae.WasteReusePercentagePeriodComparisonKpiTile="WASTE_REUSE_PERCENTAGE_PERIOD_COMPARISON_KPI_TILE",ae.WasteOtherRecoveryPercentagePeriodComparisonKpiTile="WASTE_OTHER_RECOVERY_PERCENTAGE_PERIOD_COMPARISON_KPI_TILE",ae.WasteReusePercentageByLocationPeriodComparisonTableTile="WASTE_REUSE_PERCENTAGE_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WasteOtherRecoveryPercentageByLocationPeriodComparisonTableTile="WASTE_OTHER_RECOVERY_PERCENTAGE_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WasteReusePercentageByTagPeriodComparisonTableTile="WASTE_REUSE_PERCENTAGE_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WasteOtherRecoveryPercentageByTagPeriodComparisonTableTile="WASTE_OTHER_RECOVERY_PERCENTAGE_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WasteReusePercentageByWasteStreamPeriodComparisonTableTile="WASTE_REUSE_PERCENTAGE_BY_WASTE_STREAM_PERIOD_COMPARISON_TABLE_TILE",ae.WasteOtherRecoveryPercentageByWasteStreamPeriodComparisonTableTile="WASTE_OTHER_RECOVERY_PERCENTAGE_BY_WASTE_STREAM_PERIOD_COMPARISON_TABLE_TILE",ae.GasConsumptionPeriodComparisonKpiTile="GAS_CONSUMPTION_PERIOD_COMPARISON_KPI_TILE",ae.GasCarbonEmissionsPeriodComparisonKpiTile="GAS_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE",ae.GasConsumptionByLocationPeriodComparisonTableTile="GAS_CONSUMPTION_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.GasCarbonEmissionsByLocationPeriodComparisonTableTile="GAS_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.GasConsumptionByTagPeriodComparisonTableTile="GAS_CONSUMPTION_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.GasCarbonEmissionsByTagPeriodComparisonTableTile="GAS_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.GasCostAndConsumptionOverTimeBarTile="GAS_COST_AND_CONSUMPTION_OVER_TIME_BAR_TILE",ae.GasCostPeriodComparisonKpiTile="GAS_COST_PERIOD_COMPARISON_KPI_TILE",ae.GasCostByLocationPeriodComparisonTableTile="GAS_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.GasCostByTagPeriodComparisonTableTile="GAS_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.GasAverageChargePerKilowattPeriodComparisonKpiTile="GAS_AVERAGE_CHARGE_PER_KILOWATT_PERIOD_COMPARISON_KPI_TILE",ae.GasAverageChargePerKilowattByLocationPeriodComparisonTableTile="GAS_AVERAGE_CHARGE_PER_KILOWATT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.GasAverageChargePerKilowattByTagPeriodComparisonTableTile="GAS_AVERAGE_CHARGE_PER_KILOWATT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.FuelConsumptionPeriodComparisonKpiTile="FUEL_CONSUMPTION_PERIOD_COMPARISON_KPI_TILE",ae.FuelCarbonEmissionsPeriodComparisonKpiTile="FUEL_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE",ae.FuelConsumptionByLocationPeriodComparisonTableTile="FUEL_CONSUMPTION_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.FuelCarbonEmissionsByLocationPeriodComparisonTableTile="FUEL_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.FuelConsumptionByTagPeriodComparisonTableTile="FUEL_CONSUMPTION_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.FuelCarbonEmissionsByTagPeriodComparisonTableTile="FUEL_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.FuelCostAndConsumptionOverTimeBarTile="FUEL_COST_AND_CONSUMPTION_OVER_TIME_BAR_TILE",ae.FuelCostPeriodComparisonKpiTile="FUEL_COST_PERIOD_COMPARISON_KPI_TILE",ae.FuelCostByLocationPeriodComparisonTableTile="FUEL_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.FuelCostByTagPeriodComparisonTableTile="FUEL_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.FuelAverageChargePerKilowattPeriodComparisonKpiTile="FUEL_AVERAGE_CHARGE_PER_KILOWATT_PERIOD_COMPARISON_KPI_TILE",ae.FuelAverageChargePerKilowattByLocationPeriodComparisonTableTile="FUEL_AVERAGE_CHARGE_PER_KILOWATT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.FuelAverageChargePerKilowattByTagPeriodComparisonTableTile="FUEL_AVERAGE_CHARGE_PER_KILOWATT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WaterConsumptionPeriodComparisonKpiTile="WATER_CONSUMPTION_PERIOD_COMPARISON_KPI_TILE",ae.WaterCarbonEmissionsPeriodComparisonKpiTile="WATER_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE",ae.WaterConsumptionByLocationPeriodComparisonTableTile="WATER_CONSUMPTION_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WaterCarbonEmissionsByLocationPeriodComparisonTableTile="WATER_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WaterConsumptionByTagPeriodComparisonTableTile="WATER_CONSUMPTION_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WaterCarbonEmissionsByTagPeriodComparisonTableTile="WATER_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WaterCostAndConsumptionOverTimeBarTile="WATER_COST_AND_CONSUMPTION_OVER_TIME_BAR_TILE",ae.WaterCostPeriodComparisonKpiTile="WATER_COST_PERIOD_COMPARISON_KPI_TILE",ae.WaterCostByLocationPeriodComparisonTableTile="WATER_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WaterCostByTagPeriodComparisonTableTile="WATER_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.WaterAverageChargePerKilowattPeriodComparisonKpiTile="WATER_AVERAGE_CHARGE_PER_KILOWATT_PERIOD_COMPARISON_KPI_TILE",ae.WaterAverageChargePerKilowattByLocationPeriodComparisonTableTile="WATER_AVERAGE_CHARGE_PER_KILOWATT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.WaterAverageChargePerKilowattByTagPeriodComparisonTableTile="WATER_AVERAGE_CHARGE_PER_KILOWATT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialWeightPeriodComparisonKpiTile="MATERIAL_WEIGHT_PERIOD_COMPARISON_KPI_TILE",ae.MaterialCarbonEmissionsPeriodComparisonKpiTile="MATERIAL_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE",ae.MaterialWeightByLocationPeriodComparisonTableTile="MATERIAL_WEIGHT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialCarbonEmissionsByLocationPeriodComparisonTableTile="MATERIAL_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialWeightByTagPeriodComparisonTableTile="MATERIAL_WEIGHT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialCarbonEmissionsByTagPeriodComparisonTableTile="MATERIAL_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialWeightByContractorPeriodComparisonTableTile="MATERIAL_WEIGHT_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialCarbonEmissionsByContractorPeriodComparisonTableTile="MATERIAL_CARBON_EMISSIONS_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialWeightByTypeAndOriginPeriodComparisonTableTile="MATERIAL_WEIGHT_BY_TYPE_AND_ORIGIN_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialCarbonEmissionsByTypeAndOriginPeriodComparisonTableTile="MATERIAL_CARBON_EMISSIONS_BY_TYPE_AND_ORIGIN_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialWeightAndConsumptionOverTimeBarTile="MATERIAL_WEIGHT_AND_CONSUMPTION_OVER_TIME_BAR_TILE",ae.MaterialCostPeriodComparisonKpiTile="MATERIAL_COST_PERIOD_COMPARISON_KPI_TILE",ae.MaterialCostPerWeightEmissionsPeriodComparisonKpiTile="MATERIAL_COST_PER_WEIGHT_EMISSIONS_PERIOD_COMPARISON_KPI_TILE",ae.MaterialCostByLocationPeriodComparisonTableTile="MATERIAL_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialCostPerWeightEmissionsByLocationPeriodComparisonTableTile="MATERIAL_COST_PER_WEIGHT_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialCostByTagPeriodComparisonTableTile="MATERIAL_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialCostPerWeightEmissionsByTagPeriodComparisonTableTile="MATERIAL_COST_PER_WEIGHT_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.MaterialCarbonEmissionsKpiTile="MATERIAL_CARBON_EMISSIONS_KPI_TILE",ae.MaterialCostKpiTile="MATERIAL_COST_KPI_TILE",ae.MaterialCostAndCarbonEmissionsByLocationTableTile="MATERIAL_COST_AND_CARBON_EMISSIONS_BY_LOCATION_TABLE_TILE",ae.MaterialCarbonEmissionsOverTimeBarTile="MATERIAL_CARBON_EMISSIONS_OVER_TIME_BAR_TILE",ae.SpendBasedMaterialAmountKpiTile="SPEND_BASED_MATERIAL_AMOUNT_KPI_TILE",ae.SpendBasedMaterialAmountByMaterialTypePieTile="SPEND_BASED_MATERIAL_AMOUNT_BY_MATERIAL_TYPE_PIE_TILE",ae.SpendBasedMaterialAmountByPurchaseTypePieTile="SPEND_BASED_MATERIAL_AMOUNT_BY_PURCHASE_TYPE_PIE_TILE",ae.SpendBasedMaterialAmountBySupplierPieTile="SPEND_BASED_MATERIAL_AMOUNT_BY_SUPPLIER_PIE_TILE",ae.SpendBasedMaterialAmountBySupplierTableTile="SPEND_BASED_MATERIAL_AMOUNT_BY_SUPPLIER_TABLE_TILE",ae.SpendBasedMaterialAmountByMaterialTypeWithLayersTableTile="SPEND_BASED_MATERIAL_AMOUNT_BY_MATERIAL_TYPE_WITH_LAYERS_TABLE_TILE",ae.SpendBasedMaterialAmountOverTimeBarTile="SPEND_BASED_MATERIAL_AMOUNT_OVER_TIME_BAR_TILE",ae.SpendBasedMaterialAmountAndCarbonByLocationTableTile="SPEND_BASED_MATERIAL_AMOUNT_AND_CARBON_BY_LOCATION_TABLE_TILE",ae.SpendBasedMaterialCarbonKpiTile="SPEND_BASED_MATERIAL_CARBON_KPI_TILE",ae.SpendBasedMaterialCarbonByMaterialTypePieTile="SPEND_BASED_MATERIAL_CARBON_BY_MATERIAL_TYPE_PIE_TILE",ae.SpendBasedMaterialCarbonByPurchaseTypePieTile="SPEND_BASED_MATERIAL_CARBON_BY_PURCHASE_TYPE_PIE_TILE",ae.SpendBasedMaterialCarbonBySupplierPieTile="SPEND_BASED_MATERIAL_CARBON_BY_SUPPLIER_PIE_TILE",ae.SpendBasedMaterialCarbonBySupplierTableTile="SPEND_BASED_MATERIAL_CARBON_BY_SUPPLIER_TABLE_TILE",ae.SpendBasedMaterialCarbonByMaterialTypeWithLayersTableTile="SPEND_BASED_MATERIAL_CARBON_BY_MATERIAL_TYPE_WITH_LAYERS_TABLE_TILE",ae.ActivityBasedMaterialWeightKpiTile="ACTIVITY_BASED_MATERIAL_WEIGHT_KPI_TILE",ae.ActivityBasedMaterialWeightByMaterialTypePieTile="ACTIVITY_BASED_MATERIAL_WEIGHT_BY_MATERIAL_TYPE_PIE_TILE",ae.ActivityBasedMaterialWeightByPurchaseTypePieTile="ACTIVITY_BASED_MATERIAL_WEIGHT_BY_PURCHASE_TYPE_PIE_TILE",ae.ActivityBasedMaterialWeightBySubcontractorPieTile="ACTIVITY_BASED_MATERIAL_WEIGHT_BY_SUBCONTRACTOR_PIE_TILE",ae.ActivityBasedMaterialWeightBySubcontractorTableTile="ACTIVITY_BASED_MATERIAL_WEIGHT_BY_SUBCONTRACTOR_TABLE_TILE",ae.ActivityBasedMaterialWeightByMaterialTypeWithLayersTableTile="ACTIVITY_BASED_MATERIAL_WEIGHT_BY_MATERIAL_TYPE_WITH_LAYERS_TABLE_TILE",ae.ActivityBasedMaterialWeightOverTimeBarTile="ACTIVITY_BASED_MATERIAL_WEIGHT_OVER_TIME_BAR_TILE",ae.ActivityBasedMaterialWeightAndCarbonByLocationTableTile="ACTIVITY_BASED_MATERIAL_WEIGHT_AND_CARBON_BY_LOCATION_TABLE_TILE",ae.ActivityBasedMaterialCarbonKpiTile="ACTIVITY_BASED_MATERIAL_CARBON_KPI_TILE",ae.ActivityBasedMaterialCarbonByMaterialTypePieTile="ACTIVITY_BASED_MATERIAL_CARBON_BY_MATERIAL_TYPE_PIE_TILE",ae.ActivityBasedMaterialCarbonByPurchaseTypePieTile="ACTIVITY_BASED_MATERIAL_CARBON_BY_PURCHASE_TYPE_PIE_TILE",ae.ActivityBasedMaterialCarbonBySubcontractorPieTile="ACTIVITY_BASED_MATERIAL_CARBON_BY_SUBCONTRACTOR_PIE_TILE",ae.ActivityBasedMaterialCarbonBySubcontractorTableTile="ACTIVITY_BASED_MATERIAL_CARBON_BY_SUBCONTRACTOR_TABLE_TILE",ae.ActivityBasedMaterialCarbonByMaterialTypeWithLayersTableTile="ACTIVITY_BASED_MATERIAL_CARBON_BY_MATERIAL_TYPE_WITH_LAYERS_TABLE_TILE",ae.GeneralMaterialWeightKpiTile="GENERAL_MATERIAL_WEIGHT_KPI_TILE",ae.GeneralMaterialCarbonKpiTile="GENERAL_MATERIAL_CARBON_KPI_TILE",ae.GeneralMaterialWeightByMaterialTypePieTile="GENERAL_MATERIAL_WEIGHT_BY_MATERIAL_TYPE_PIE_TILE",ae.GeneralMaterialCarbonByMaterialTypePieTile="GENERAL_MATERIAL_CARBON_BY_MATERIAL_TYPE_PIE_TILE",ae.GeneralMaterialWeightOverTimeBarTile="GENERAL_MATERIAL_WEIGHT_OVER_TIME_BAR_TILE",ae.GeneralMaterialWeightAndCarbonByLocationTableTile="GENERAL_MATERIAL_WEIGHT_AND_CARBON_BY_LOCATION_TABLE_TILE",ae.TransportCarbonEmissionsPeriodComparisonKpiTile="TRANSPORT_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE",ae.TransportCostPeriodComparisonKpiTile="TRANSPORT_COST_PERIOD_COMPARISON_KPI_TILE",ae.TransportCarbonEmissionsByLocationPeriodComparisonTableTile="TRANSPORT_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.TransportCostByLocationPeriodComparisonTableTile="TRANSPORT_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE",ae.TransportCarbonEmissionsByTagPeriodComparisonTableTile="TRANSPORT_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.TransportCostByTagPeriodComparisonTableTile="TRANSPORT_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE",ae.TransportCarbonEmissionsByTransportTypePeriodComparisonTableTile="TRANSPORT_CARBON_EMISSIONS_BY_TRANSPORT_TYPE_PERIOD_COMPARISON_TABLE_TILE",ae.TransportCostByTransportTypePeriodComparisonTableTile="TRANSPORT_COST_BY_TRANSPORT_TYPE_PERIOD_COMPARISON_TABLE_TILE",ae.TransportCarbonEmissionsByFuelTypePeriodComparisonTableTile="TRANSPORT_CARBON_EMISSIONS_BY_FUEL_TYPE_PERIOD_COMPARISON_TABLE_TILE",ae.TransportCostByFuelTypePeriodComparisonTableTile="TRANSPORT_COST_BY_FUEL_TYPE_PERIOD_COMPARISON_TABLE_TILE",ae.TransportEmissionsAndCostOverTimeBarTile="TRANSPORT_EMISSIONS_AND_COST_OVER_TIME_BAR_TILE",ae.EstatesReportGridTile="ESTATES_REPORT_GRID_TILE",ae.BusinessAnalyticsSummaryKpiTile="BUSINESS_ANALYTICS_SUMMARY_KPI_TILE",ae.BusinessAnalyticsTransactionVolumeBarTile="BUSINESS_ANALYTICS_TRANSACTION_VOLUME_BAR_TILE",ae.BusinessAnalyticsLocationGrowthTableTile="BUSINESS_ANALYTICS_LOCATION_GROWTH_TABLE_TILE",ae.BusinessAnalyticsEnergySpendGrowthTableTile="BUSINESS_ANALYTICS_ENERGY_SPEND_GROWTH_TABLE_TILE",ae.BusinessAnalyticsGeoDistributionTableTile="BUSINESS_ANALYTICS_GEO_DISTRIBUTION_TABLE_TILE",ae.BusinessAnalyticsCarbonGrowthTableTile="BUSINESS_ANALYTICS_CARBON_GROWTH_TABLE_TILE",ae.Scope_1CarbonSavingsKpiTile="SCOPE_1_CARBON_SAVINGS_KPI_TILE",ae.AverageFlaringFromUpstreamOperationsKpiTile="AVERAGE_FLARING_FROM_UPSTREAM_OPERATIONS_KPI_TILE",ae.FlaringIntensityKpiTile="FLARING_INTENSITY_KPI_TILE",ae.CurrentYearCarbonIntensityKpiTile="CURRENT_YEAR_CARBON_INTENSITY_KPI_TILE",ae.PastYearCarbonIntensityKpiTile="PAST_YEAR_CARBON_INTENSITY_KPI_TILE",ae.CarbonIntensityReductionKpiTile="CARBON_INTENSITY_REDUCTION_KPI_TILE",ae.PastYearEmissionsByScopeBarTile="PAST_YEAR_EMISSIONS_BY_SCOPE_BAR_TILE",ae.CurrentYearEmissionsByScopeBarTile="CURRENT_YEAR_EMISSIONS_BY_SCOPE_BAR_TILE",ae.CarbonEmissionsByScopeOverTimeLineTile="CARBON_EMISSIONS_BY_SCOPE_OVER_TIME_LINE_TILE",ae.Scope_1CarbonSavingsOverTimeLineTile="SCOPE_1_CARBON_SAVINGS_OVER_TIME_LINE_TILE",ae.CarbonIntensityOverTimeLineTile="CARBON_INTENSITY_OVER_TIME_LINE_TILE",ae.CarbonIntensityReductionOverTimeLineTile="CARBON_INTENSITY_REDUCTION_OVER_TIME_LINE_TILE",ae.AverageFlaringFromUpstreamOperationsOverTimeLineTile="AVERAGE_FLARING_FROM_UPSTREAM_OPERATIONS_OVER_TIME_LINE_TILE",ae.FlaringIntensityOverTimeLineTile="FLARING_INTENSITY_OVER_TIME_LINE_TILE",ae.WaterWithdrawalPercentagePieTile="WATER_WITHDRAWAL_PERCENTAGE_PIE_TILE",ae.WaterDischargePercentagePieTile="WATER_DISCHARGE_PERCENTAGE_PIE_TILE",ae.WaterWithdrawalPercentageOverTimeLineTile="WATER_WITHDRAWAL_PERCENTAGE_OVER_TIME_LINE_TILE",ae.WaterDischargePercentageOverTimeLineTile="WATER_DISCHARGE_PERCENTAGE_OVER_TIME_LINE_TILE",ae.BoardAttendanceRateKpiTile="BOARD_ATTENDANCE_RATE_KPI_TILE",ae.BoardFemaleRepresentationPieTile="BOARD_FEMALE_REPRESENTATION_PIE_TILE",ae.ExecutiveFemaleRepresentationPieTile="EXECUTIVE_FEMALE_REPRESENTATION_PIE_TILE",ae.BoardAttendanceRateOverTimeLineTile="BOARD_ATTENDANCE_RATE_OVER_TIME_LINE_TILE",ae.BoardFemaleRepresentationOverTimeLineTile="BOARD_FEMALE_REPRESENTATION_OVER_TIME_LINE_TILE",ae.ExecutiveFemaleRepresentationOverTimeLineTile="EXECUTIVE_FEMALE_REPRESENTATION_OVER_TIME_LINE_TILE",ae.CarbonEmissionsByScopeOverTimeBarTile="CARBON_EMISSIONS_BY_SCOPE_OVER_TIME_BAR_TILE",ae.CarbonMarketAndLocationEmissionsOverTimeBarTile="CARBON_MARKET_AND_LOCATION_EMISSIONS_OVER_TIME_BAR_TILE",ae.NumberOfLocationsKpiTile="NUMBER_OF_LOCATIONS_KPI_TILE",ae.GhgProtocolBreakdownTableTile="GHG_PROTOCOL_BREAKDOWN_TABLE_TILE",ae.CarbonEmittersByLocationTableTile="CARBON_EMITTERS_BY_LOCATION_TABLE_TILE",ae.Top_10CarbonEmittersByLocationPieTile="TOP_10_CARBON_EMITTERS_BY_LOCATION_PIE_TILE",ae.WaterTotalConsumptionKpiTile="WATER_TOTAL_CONSUMPTION_KPI_TILE",ae.WaterTotalTreatmentKpiTile="WATER_TOTAL_TREATMENT_KPI_TILE",ae.WaterTotalCostKpiTile="WATER_TOTAL_COST_KPI_TILE",ae.WaterTotalEmissionsKpiTile="WATER_TOTAL_EMISSIONS_KPI_TILE",ae.WaterCostConsumptionTreatmentOverTimeBarTile="WATER_COST_CONSUMPTION_TREATMENT_OVER_TIME_BAR_TILE",ae.WaterCarbonEmissionsByScopeOverTimeBarTile="WATER_CARBON_EMISSIONS_BY_SCOPE_OVER_TIME_BAR_TILE",ae.WaterCostConsumptionEmissionsPerLocationTableTile="WATER_COST_CONSUMPTION_EMISSIONS_PER_LOCATION_TABLE_TILE",ae.WaterConsumptionYearOnYearComparisonKpiTile="WATER_CONSUMPTION_YEAR_ON_YEAR_COMPARISON_KPI_TILE",ae.WaterEmissionsYearOnYearComparisonKpiTile="WATER_EMISSIONS_YEAR_ON_YEAR_COMPARISON_KPI_TILE",ae.WaterCostYearOnYearComparisonKpiTile="WATER_COST_YEAR_ON_YEAR_COMPARISON_KPI_TILE",ae.WaterAnnualConsumptionOverTimeComparisonBarTile="WATER_ANNUAL_CONSUMPTION_OVER_TIME_COMPARISON_BAR_TILE",ae.WaterCostConsumptionEmissionsPerLocationComparisonTableTile="WATER_COST_CONSUMPTION_EMISSIONS_PER_LOCATION_COMPARISON_TABLE_TILE",ae.TransportTotalDistanceTraveledKpiTile="TRANSPORT_TOTAL_DISTANCE_TRAVELED_KPI_TILE",ae.TransportTotalCostKpiTile="TRANSPORT_TOTAL_COST_KPI_TILE",ae.TransportTotalEmissionsKpiTile="TRANSPORT_TOTAL_EMISSIONS_KPI_TILE",ae.TransportEmissionsPerLocationPieTile="TRANSPORT_EMISSIONS_PER_LOCATION_PIE_TILE",ae.TransportEmissionsPerPurposePieTile="TRANSPORT_EMISSIONS_PER_PURPOSE_PIE_TILE",ae.TransportEmissionsPerTypePieTile="TRANSPORT_EMISSIONS_PER_TYPE_PIE_TILE",ae.TransportEmissionsPerSubtypePieTile="TRANSPORT_EMISSIONS_PER_SUBTYPE_PIE_TILE",ae.TransportTravelActivityPerLocationTableTile="TRANSPORT_TRAVEL_ACTIVITY_PER_LOCATION_TABLE_TILE",ae.TransportTotalDistanceTraveledYearOnYearKpiTile="TRANSPORT_TOTAL_DISTANCE_TRAVELED_YEAR_ON_YEAR_KPI_TILE",ae.TransportTotalEmissionsYearOnYearKpiTile="TRANSPORT_TOTAL_EMISSIONS_YEAR_ON_YEAR_KPI_TILE",ae.TransportCarbonOverTimeYearOnYearBarTile="TRANSPORT_CARBON_OVER_TIME_YEAR_ON_YEAR_BAR_TILE",ae.TransportCarbonAndDistanceTraveledOverTimeBarTile="TRANSPORT_CARBON_AND_DISTANCE_TRAVELED_OVER_TIME_BAR_TILE",ae.TransportAnnualFiguresPerLocationYearOnYearTableTile="TRANSPORT_ANNUAL_FIGURES_PER_LOCATION_YEAR_ON_YEAR_TABLE_TILE",(te=n.GV||(n.GV={})).Initiated="INITIATED",te.Analyzing="ANALYZING",te.Merging="MERGING",te.UserReview="USER_REVIEW",te.CancelledByUser="CANCELLED_BY_USER",te.ExecutionScheduled="EXECUTION_SCHEDULED",te.Executed="EXECUTED",te.Failed="FAILED",te.Aborted="ABORTED",(ne=n.kt||(n.kt={})).Frequency="FREQUENCY",ne.Recurrence="RECURRENCE",(ee=n.pe||(n.pe={})).Text="text",ee.Number="number",ee.Date="date",ee.Set="set",ee.Boolean="boolean",(X=n.QT||(n.QT={})).Skipped="SKIPPED",X.ScheduledForRefresh="SCHEDULED_FOR_REFRESH",X.SchedulingFailed="SCHEDULING_FAILED",X.Refreshing="REFRESHING",X.Refreshed="REFRESHED",X.RefreshFailed="REFRESH_FAILED",(Z=n.oY||(n.oY={})).BatchImported="BATCH_IMPORTED",Z.BatchRolledBack="BATCH_ROLLED_BACK",Z.PeriodicRefresh="PERIODIC_REFRESH",(Q=n.oQ||(n.oQ={})).Percentage="percentage",Q.Fixed="fixed",(K=n.F4||(n.F4={})).Consignmentnote="CONSIGNMENTNOTE",K.Consignmentnoteea="CONSIGNMENTNOTEEA",K.Wastetransfernote="WASTETRANSFERNOTE",K.Salesorder="SALESORDER",K.Evidence="EVIDENCE",K.Wastepermit="WASTEPERMIT",K.Wastecarrierlicence="WASTECARRIERLICENCE",K.Wastecontractorreport="WASTECONTRACTORREPORT",K.Travelreceipt="TRAVELRECEIPT",K.Auditreport="AUDITREPORT",K.Aspectsandimpacts="ASPECTSANDIMPACTS",K.Certificate="CERTIFICATE",K.Communications="COMMUNICATIONS",K.Legislation="LEGISLATION",K.Managementsystems="MANAGEMENTSYSTEMS",K.Policies="POLICIES",K.Reportingframeworks="REPORTINGFRAMEWORKS",K.Standards="STANDARDS",K.Training="TRAINING",K.Lcareports="LCAREPORTS",K.Bill="BILL",K.Licencesandpermits="LICENCESANDPERMITS",K.Invoice="INVOICE",K.Other="OTHER",K.Meterreading="METERREADING",K.Supplieragreement="SUPPLIERAGREEMENT",K.Formupload="FORMUPLOAD",K.Custom="CUSTOM",(H=n.zM||(n.zM={})).Waste="WASTE",H.Electricity="ELECTRICITY",H.Gas="GAS",H.Water="WATER",H.Transport="TRANSPORT",H.Governance="GOVERNANCE",H.Invest="INVEST",H.Custom="CUSTOM",(Y=n.gb||(n.gb={})).Total="TOTAL",Y.Month="MONTH",Y.HalfHour="HALF_HOUR",(J=n.Fr||(n.Fr={})).Assessment="ASSESSMENT",J.Reaction="REACTION",(q=n.l2||(n.l2={})).Initiated="INITIATED",q.InProgress="IN_PROGRESS",q.Ready="READY",q.Completed="COMPLETED",q.Failed="FAILED",q.DeletedByUser="DELETED_BY_USER",(W=n.fj||(n.fj={})).Greater="GREATER",W.Greaterequal="GREATEREQUAL",W.Less="LESS",W.Lessequal="LESSEQUAL",W.Equal="EQUAL",W.Notequal="NOTEQUAL",W.None="NONE",(z=n.II||(n.II={})).Equals="equals",z.NotEqual="notEqual",z.LessThan="lessThan",z.LessThanOrEqual="lessThanOrEqual",z.GreaterThan="greaterThan",z.GreaterThanOrEqual="greaterThanOrEqual",z.Contains="contains",z.NotContains="notContains",z.StartsWith="startsWith",z.EndsWith="endsWith",z.InRange="inRange",z.Blank="blank",z.NotBlank="notBlank",(G=n.jN||(n.jN={})).Daily="Daily",G.Weekly="Weekly",G.Monthly="Monthly",G.Quarterly="Quarterly",G.Annually="Annually",(V=n.Ak||(n.Ak={})).Legislation="LEGISLATION",V.Policy="POLICY",V.ManagementSystem="MANAGEMENT_SYSTEM",V.ReportingFramework="REPORTING_FRAMEWORK",V.VoluntaryAgreement="VOLUNTARY_AGREEMENT",V.Aspect="ASPECT",(M=n.Ub||(n.Ub={})).File="File",M.Ftp="Ftp",($=n.mF||(n.mF={})).In="IN",$.Out="OUT",$.Both="BOTH",(U=n.h6||(n.h6={})).And="AND",U.Or="OR",(B=n.US||(n.US={})).Pdf="PDF",B.Video="VIDEO",B.Scorm="SCORM",B.Url="URL",(P=n.yG||(n.yG={})).Eng="ENG",P.Wal="WAL",P.Sco="SCO",P.Nir="NIR",P.Gbr="GBR",P.Eur="EUR",(F=n.mh||(n.mh={})).High="HIGH",F.Medium="MEDIUM",F.NoteWorthy="NOTE_WORTHY",(_=n.mv||(n.mv={})).Legal="LEGAL",_.Voluntary="VOLUNTARY",(E=n.uX||(n.uX={})).New="NEW",E.Activated="ACTIVATED",E.Expired="EXPIRED",E.Blocked="BLOCKED",(O=n.Q||(n.Q={})).Region="REGION",O.Tenure="TENURE",O.Buildingtype="BUILDINGTYPE",(w=n.K||(n.K={})).Requested="REQUESTED",w.FailedToRequest="FAILED_TO_REQUEST",w.Granted="GRANTED",w.Rejected="REJECTED",(j=n.Xj||(n.Xj={})).Electricity="ELECTRICITY",j.Gas="GAS",j.Water="WATER",j.Heatsteam="HEATSTEAM",(I=n.XY||(n.XY={})).OwnerOperated="OWNER_OPERATED",I.ThirdParty="THIRD_PARTY",(L=n._P||(n._P={})).Oil="OIL",L.OilGas="OIL_GAS",(D=n.v7||(n.v7={})).Month="MONTH",D.Year="YEAR",D.FinancialYear="FINANCIAL_YEAR",D.Quarter="QUARTER",D.Period="PERIOD",(R=n.KB||(n.KB={})).Low="LOW",R.Medium="MEDIUM",R.High="HIGH",(A=n.sE||(n.sE={})).DirectPurchasedDirectly="DIRECT_PURCHASED_DIRECTLY",A.DirectBroker="DIRECT_BROKER",A.DirectIntercompanyTrade="DIRECT_INTERCOMPANY_TRADE",A.IndirectPurchasedBySubcontractorOrContractor="INDIRECT_PURCHASED_BY_SUBCONTRACTOR_OR_CONTRACTOR",A.IndirectBackchargedByClientOrLandlord="INDIRECT_BACKCHARGED_BY_CLIENT_OR_LANDLORD",A.IndirectFreeIssue="INDIRECT_FREE_ISSUE",(N=n.PG||(n.PG={})).Notapplicable="NOTAPPLICABLE",N.Indirectlyapplicable="INDIRECTLYAPPLICABLE",N.Noncompliant="NONCOMPLIANT",N.Compliancerisk="COMPLIANCERISK",N.Compliant="COMPLIANT",(S=n.WP||(n.WP={})).Today="TODAY",S.Yesterday="YESTERDAY",S.StartOfCurrentYear="START_OF_CURRENT_YEAR",S.EndOfCurrentYear="END_OF_CURRENT_YEAR",S.StartOfLastYear="START_OF_LAST_YEAR",S.EndOfLastYear="END_OF_LAST_YEAR",S.StartOfCurrentMonth="START_OF_CURRENT_MONTH",S.EndOfCurrentMonth="END_OF_CURRENT_MONTH",S.StartOfLastMonth="START_OF_LAST_MONTH",S.EndOfLastMonth="END_OF_LAST_MONTH",S.StartOfCurrentQuarter="START_OF_CURRENT_QUARTER",S.EndOfCurrentQuarter="END_OF_CURRENT_QUARTER",S.StartOfLastQuarter="START_OF_LAST_QUARTER",S.EndOfLastQuarter="END_OF_LAST_QUARTER",(k=n.zB||(n.zB={})).Home="HOME",k.Engage="ENGAGE",k.Governance="GOVERNANCE",k.Data="DATA",k.Surveys="SURVEYS",k.Reporting="REPORTING",k.Intelligence="INTELLIGENCE",k.Configuration="CONFIGURATION",k.Documents="DOCUMENTS",k.Tasks="TASKS",k.Support="SUPPORT",(C=n.HG||(n.HG={})).Account="ACCOUNT",C.Tag="TAG",C.Location="LOCATION",(v=n.kL||(n.kL={})).S3="S3",v.Url="URL",(b=n.d||(n.d={})).Supplier="Supplier",b.Contractor="Contractor",b.Subcontractor="Subcontractor",b.Carrier="Carrier",b.Broker="Broker",b.Haulier="Haulier",(T=n.xV||(n.xV={})).Text="text",T.Dropdown="dropdown",T.Radiogroup="radiogroup",T.Tagbox="tagbox",T.Checkbox="checkbox",T.Imagepicker="imagepicker",T.Boolean="boolean",T.Signaturepad="signaturepad",T.Multipletext="multipletext",T.Rating="rating",T.Ranking="ranking",T.Comment="comment",T.File="file",T.Expression="expression",(x=n.p2||(n.p2={})).Active="active",x.Complete="complete",(h=n.iD||(n.iD={})).RequiresChanges="requires_changes",h.Approved="approved",(g=n.ZU||(n.ZU={})).InProgress="in_progress",g.ReadyForReview="ready_for_review",g.RequiresChanges="requires_changes",g.Approved="approved",(y=n.Tc||(n.Tc={})).InProgress="in_progress",y.ReadyForReview="ready_for_review",(f=n.Ix||(n.Ix={})).Engage="ENGAGE",f.Governance="GOVERNANCE",f.Data="DATA",f.Reporting="REPORTING",f.Documents="DOCUMENTS",(m=n.li||(n.li={})).Audit="AUDIT",m.Report="REPORT",m.Observation="OBSERVATION",(p=n.W6||(n.W6={})).High="HIGH",p.Medium="MEDIUM",p.Low="LOW",(u=n.AR||(n.AR={})).Legislation="LEGISLATION",u.Policies="POLICIES",u.Managementsystems="MANAGEMENTSYSTEMS",u.Targets="TARGETS",u.Aspects="ASPECTS",u.Water="WATER",u.Waste="WASTE",u.Electricity="ELECTRICITY",u.Gas="GAS",u.Transport="TRANSPORT",(c=n.F9||(n.F9={})).Comply="COMPLY",c.Electricity="ELECTRICITY",c.Gas="GAS",c.Intel="INTEL",c.Learn="LEARN",c.Materials="MATERIALS",c.Mixed="MIXED",c.Travel="TRAVEL",c.Waste="WASTE",c.Water="WATER",(d=n.iG||(n.iG={})).Year="YEAR",d.Month="MONTH",d.Date="DATE",(s=n.D_||(n.D_={})).Electricity="ELECTRICITY",s.Fuel="FUEL",s.Gas="GAS",s.Materials="MATERIALS",s.Oil="OIL",s.S3C1Activitybasedmaterial="S3C1ACTIVITYBASEDMATERIAL",s.S3C1Spendbasedmaterial="S3C1SPENDBASEDMATERIAL",s.Oilgassales="OILGASSALES",s.Transport="TRANSPORT",s.Waste="WASTE",s.Water="WATER",s.Hotelstays="HOTELSTAYS",s.Heatsteam="HEATSTEAM",s.Refrigerant="REFRIGERANT",s.Investment="INVESTMENT",s.Liquidfuel="LIQUIDFUEL",s.Coreestate="COREESTATE",s.Emissionsdatabase="EMISSIONSDATABASE",(o=n.ou||(n.ou={})).Combustion="COMBUSTION",o.Wtt="WTT",o.Conversion="CONVERSION",(r=n.wZ||(n.wZ={})).Create="CREATE",r.Delete="DELETE",(l=n.BL||(n.BL={})).Allow="ALLOW",l.Deny="DENY",(i=n.M6||(n.M6={})).Location="LOCATION",i.Tag="TAG",i.OrganisationalUnit="ORGANISATIONAL_UNIT",(a=n.gG||(n.gG={})).Sysadmin="SYSADMIN",a.Businessadmin="BUSINESSADMIN",a.Business="BUSINESS",a.Emschampion="EMSCHAMPION",a.Emschampionanalysecontributor="EMSCHAMPIONANALYSECONTRIBUTOR",a.Contributor="CONTRIBUTOR",a.Emscontributor="EMSCONTRIBUTOR",a.Analysechampion="ANALYSECHAMPION",a.Individual="INDIVIDUAL",a.Businessreadonly="BUSINESSREADONLY",a.Mentor="MENTOR",a.Learner="LEARNER",a.Executive="EXECUTIVE",a.Wasteadmin="WASTEADMIN",a.Consultant="CONSULTANT",a.Employee="EMPLOYEE",a.Surveysonly="SURVEYSONLY",(t=n.Ui||(n.Ui={})).OnsiteWork="ONSITE_WORK",t.Headcount="HEADCOUNT",t.Floorspace="FLOORSPACE",t.WaterLeak="WATER_LEAK",t.OtherOperational="OTHER_OPERATIONAL",t.BelowThreshold="BELOW_THRESHOLD",t.SupplierDataIssue="SUPPLIER_DATA_ISSUE",t.NoActionRequired="NO_ACTION_REQUIRED",t.PendingSupplierResponse="PENDING_SUPPLIER_RESPONSE",t.Other="OTHER"},73397(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DocumentCategory=n.YearToCompareType=n.EUR_CURRENCY_CODE=n.estimatesScenarios=n.operationalControlTypes=n.organisationalUnits=n.projectPhases=n.materialOrigins=n.certificationOrigins=void 0,n.certificationOrigins=["BES 6001","Forest Stewardship Council","Grown in Britain","Programme for the Endorsement of Forest Certifications","Waste and Resources Action Programme (WRAP)","None/Unknown"],n.materialOrigins=["Open-loop source","Primary material production","Closed-loop source","Re-used"];var t,a,i=["Construction","Demolition","Excavation","Premises"];n.projectPhases={default:["Unknown"],"9b5da64b-2e0f-4dc7-adf6-e879a88160b9":i,"66fdc17b-308d-4e71-85ee-0d4a77e3276e":i,"094f8a56-5761-4561-a2dd-1b66ee5bb5da":i,"322fec2b-d241-48fc-aef5-fea7de3f6e53":["Construction","Demolition","Excavation","Commercial","Maintenance","Industrial","Production"],"170b5402-e820-4579-a9e6-981c4573ab1f":["Construction","Demolition","Excavation","Premises","Unknown"]},n.organisationalUnits=["Company","Division","Department","Project","Team","Region","Building","Floor","Contract / Framework","Contract","Business Unit","Fund","Programme","Asset"],n.operationalControlTypes=["Combusted in owned / operated equipment","Combusted in 3rd party equipment but operator purchases the fuel directly","Combusted in 3rd party owned / operated equipment"],n.estimatesScenarios=["1","2","3","4","5"],n.EUR_CURRENCY_CODE="EUR",(a=n.YearToCompareType||(n.YearToCompareType={})).CALENDAR="Calendar",a.FINANCIAL="Financial",(t=n.DocumentCategory||(n.DocumentCategory={})).WasteTransferNote="Waste Transfer Note",t.WasteCarrierLicence="Waste Carrier Licence",t.LCAReports="LCA Reports"},6303(e,n){"use strict";var t,a=this&&this.__extends||(t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},t(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function a(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)});Object.defineProperty(n,"__esModule",{value:!0}),n.CustomField=void 0,function(e){var n=function(e){function n(n,t){return e.call(this,'"'.concat(n,'" cannot be casted to ').concat(t,"."))||this}return a(n,e),n}(Error);e.CastAttributeError=n;var t=function(e,n){return e.toLowerCase()===n.toLowerCase()},i=function(){function e(e){this.fields=e}return e.prototype.has=function(e){for(var n=0,a=this.fields;n<a.length;n++){var i=a[n].split(":")[0];if(t(e,i))return!0}return!1},e.prototype.getAttribute=function(e,a,i){for(var l=0,r=this.fields;l<r.length;l++){var o=r[l].split(":"),s=o[0],d=o[1];if(t(e,s))for(var c=0,u=(d||"").split(",");c<u.length;c++){var p=u[c].split("="),m=p[0],f=p[1];if(t(a,m)){if("string"===i)return f||"";if("bool"===i){if("true"!==(y=f||"true")&&"false"!==y)throw new n(f,i);return"true"===y}if("number"===i){var y=Number(f);if(isNaN(y))throw new n(f,i);return y}}}}return null},e.prototype.isRequired=function(e){return!!this.getAttribute(e,"required","bool")},e}();e.Accessor=i}(n.CustomField||(n.CustomField={}))},47496(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DataOverwritingError=void 0,(n.DataOverwritingError||(n.DataOverwritingError={})).OverwritingInProgress="An overwriting process is already in progress for this data type"},29482(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(47496),n)},62912(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(6303),n),i(t(73397),n),i(t(18126),n),i(t(29482),n)},32175(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GAS_COMPONENTS_CARBON_COEFFICIENTS=n.GAS_COMPONENTS_WEIGHTS=n.GAS_COMPONENTS=void 0,n.GAS_COMPONENTS=["O2","N2","CO2","H2","H2S","CH4","C2H6","C3H8","C4H10","C5H12","C6H14","C7H16","C8H18","C9+"],n.GAS_COMPONENTS_WEIGHTS={O2:32,N2:28.01,CO2:44.01,H2:2.02,H2S:34.08,CH4:16.04,C2H6:30.07,C3H8:44.1,C4H10:58.12,C5H12:72.15,C6H14:86.18,C7H16:100.21,C8H18:114.23,"C9+":156.31},n.GAS_COMPONENTS_CARBON_COEFFICIENTS={O2:0,N2:0,CO2:1,H2:0,H2S:0,CH4:1,C2H6:2,C3H8:3,C4H10:4,C5H12:5,C6H14:6,C7H16:7,C8H18:8,"C9+":11}},47178(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},2585(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ImportPayload=void 0,(n.ImportPayload||(n.ImportPayload={})).DATE_FORMAT="DD/MM/YYYY"},18126(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(32175),n),i(t(2585),n),i(t(47178),n)},49476(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CssBaseline=void 0;var a=t(87283);Object.defineProperty(n,"CssBaseline",{enumerable:!0,get:function(){return a.CssBaseline}})},13260(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.useTheme=n.styled=n.ThemeProvider=void 0;const i=t(65723),l=t(54790);Object.defineProperty(n,"styled",{enumerable:!0,get:function(){return l.styled}}),Object.defineProperty(n,"useTheme",{enumerable:!0,get:function(){return l.useTheme}});const r=a(t(15045));n.ThemeProvider=e=>{let{children:n}=e;return(0,i.jsx)(l.ThemeProvider,{theme:r.default,children:n})}},36696(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.AgGrid=void 0;const i=t(65723),l=t(54790);t(66105),t(12628);const r=t(19270),o=a(t(30395)),s=t(22155),d=t(15965),c=t(18647),u=t(19033),p=t(83624),m=a(t(31010)),f=t(89),y=a(t(10946)),g=["gridOptions"],h=(0,l.styled)("div",{shouldForwardProp:e=>!g.includes(e),name:"AgGrid",slot:"Root"})``,x=(0,l.styled)("div")`
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[0]}};
  --ag-material-primary-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  --ag-material-accent-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  --ag-checkbox-checked-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  --ag-header-background-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[95]}};
  --ag-header-cell-hover-background-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[95]}};
  --ag-row-hover-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[90]}};
  --ag-border-radius: 8px;
  --ag-header-foreground-color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
  --ag-data-color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
  --ag-foreground-color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
  --ag-font-family: ${e=>{let{theme:n}=e;return n.typography.fontFamily}};
  --ag-input-focus-box-shadow: none;
  --ag-header-height: 36px;
  --ag-row-height: 40px;
  --ag-popup-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[0]}};
  --ag-card-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[0]}};
  --ag-input-focus-box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[0]}};
  --ag-invalid-color: ${e=>{let{theme:n}=e;return n.sys.color.error}};

  & .ag-input-field-input {
    --ag-border-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }

  & .ag-root-wrapper-body,
  & .ag-layout-normal {
    min-height: 250px;
    height: 100%;
  }
  & .ag-header-cell-text {
    pointer-events: none;
  }
  & .ag-header-cell {
    ${e=>{let{theme:n}=e;return(0,u.textCss)(n,{typescale:"label",size:"large"})}}
    line-height: 36px;
    justify-content: center;
  }
  & .ag-row-selected,
  & .ag-row-hover.ag-row-selected,
  & .ag-row-focus {
    background-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[90]}};
  }
  & .ag-row-selected::before,
  & .ag-row-hover.ag-row-selected::before {
    display: none;
  }
  && .ag-radio-button-input-wrapper.ag-checked::after {
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }
  & .ag-radio-button-input-wrapper:focus-within,
  .ag-radio-button-input-wrapper:active {
    box-shadow: none;
  }
  & .ag-picker-field-wrapper:focus-within,
  & .ag-picker-field-wrapper:active {
    border: none;
    outline: none;
  }
  & .ag-picker-field-wrapper.ag-picker-has-focus {
    box-shadow: none;
  }
  & .ag-label,
  & .ag-filter {
    font-family: ${e=>{let{theme:n}=e;return n.typography.fontFamily}};
  }
  & .ag-label,
  & .ag-paging-row-summary-panel,
  & .ag-picker-field-wrapper,
  & .ag-list-item,
  & .ag-paging-description,
  & .ag-text-field-input::placeholder,
  & .ag-menu-option-text,
  & .ag-column-select-column-label {
    ${e=>{let{theme:n}=e;return(0,u.textCss)(n,{typescale:"label",size:"large"})}}
  }
  & .ag-cell {
    ${e=>{let{theme:n}=e;return(0,u.textCss)(n,{typescale:"body",size:"medium"})}}
    line-height: 40px;
  }
  & .ag-checkbox-input-wrapper.ag-checked::after {
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }

  & .ag-tabs-header {
    background-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[95]}};
  }

  & .ag-popup-child {
    box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[3]}};
  }

  & .ag-menu-option:hover {
    background-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[90]}};
  }
  & .ag-checkbox-input-wrapper.ag-indeterminate::after {
    color: ${e=>{let{theme:n}=e;return n.sys.color.secondary}};
  }
  & .ag-paging-panel {
    justify-content: flex-start;
  }

  & .ag-sort-indicator-icon {
    display: flex;
    align-items: center;
  }

  & .ag-set-filter {
    width: 330px !important;
  }

  & .ag-set-filter-list {
    white-space: nowrap !important;
    overflow-x: auto !important;

    & .ag-virtual-list-container.ag-filter-virtual-list-container {
      overflow-x: visible !important;
      overflow-y: visible !important;
    }
  }

  & .ag-set-filter-item,
  & .ag-set-filter-item-value {
    display: inline-block;
    min-width: max-content;
  }
`;n.AgGrid=(0,s.forwardRef)((e,n)=>{const{gridKey:t}=e,{storedValue:a,setValue:l}=(0,c.useLocalStorage)(d.AG_GRID_PARAMS_V2);return(0,i.jsx)(m.default,{onClear:()=>{a&&(delete a[t],l(a))},children:(0,i.jsx)(T,{...e,ref:n})})});const T=(0,s.forwardRef)((e,n)=>{let{gridOptions:t,gridKey:a,disableColumnStateRestoration:d,...c}=e;const u=(0,l.useColorScheme)(),m=(0,f.useAgGrid)({gridKey:a,rowModel:t?.rowModelType??"clientSide",disableColumnStateRestoration:d});(0,s.useImperativeHandle)(n,()=>({filtersApplied:m.filtersApplied,gridApi:m.api||null,resetGridState:m.resetGridState}),[m.filtersApplied,m.api,m.resetGridState]);const g=(0,o.default)({"ag-theme-material":"light"===u.mode,"ag-theme-material-dark":"dark"===u.mode}),T=(0,y.default)(t?.serverSideDatasource),b=(0,s.useMemo)(()=>({...t,onColumnVisible:e=>{t?.onColumnVisible&&t.onColumnVisible(e),m.onSaveGridColumnState()},onFirstDataRendered:e=>{t?.onFirstDataRendered&&t.onFirstDataRendered(e),m.onFirstDataRendered(e)},onColumnPinned:m.onSaveGridColumnState,onColumnMoved:m.onSaveGridColumnState,onColumnRowGroupChanged:m.onSaveGridColumnState,onColumnValueChanged:m.onSaveGridColumnState,onColumnPivotChanged:m.onSaveGridColumnState,onGridPreDestroyed:m.onDestroy,onFilterChanged:e=>{t?.onFilterChanged?.(e),m.onFilterChanged(e)},onPaginationChanged:e=>{t?.onPaginationChanged&&t.onPaginationChanged(e),m.onPaginationChanged(e)},initialState:m.initialState,onGridReady:e=>{t?.onGridReady&&t.onGridReady(e),m.onGridReady(e)},serverSideDatasource:T}),[t,m,T]);return(0,i.jsx)(h,{...c,children:(0,i.jsx)(x,{className:g,children:(0,i.jsx)(r.AgGridReact,{maintainColumnOrder:!0,loadingCellRenderer:p.CustomLoadingCellRenderer,...b})})})})},83624(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CustomLoadingCellRenderer=void 0;const a=t(65723),i=t(54790),l=t(27592),r=(0,i.styled)("div")`
  display: flex;
  align-items: center;
  height: 40px;
  padding: 24px;
`,o=(0,i.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
`;n.CustomLoadingCellRenderer=e=>{if(e.node.failedLoad){let n=e.api.getGridOption("context")?.loadErrorMessage;return"string"==typeof n&&(n.toLowerCase().includes("timeout")||n.toLowerCase().includes("timed out"))?n="SQL query took too long, try hiding some of the columns from the grid to make the query faster":n&&"string"==typeof n||(n="An unexpected error happened"),(0,a.jsxs)(r,{children:[(0,a.jsx)(o,{children:(0,a.jsx)(l.Icons.ReportProblemOutlined,{color:"error"})}),(0,a.jsx)(l.Text,{typescale:"body",size:"medium",children:n})]})}return(0,a.jsxs)(r,{children:[(0,a.jsx)(o,{children:(0,a.jsx)(l.Loader,{size:25})}),(0,a.jsx)(l.Text,{typescale:"body",size:"medium",children:"Loading..."})]})}},31010(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});const i=t(65723),l=a(t(22155)),r=t(93861),o=t(49680);class s extends l.default.Component{constructor(e){super(e),this.state={}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){console.error(e)}render(){const{error:e}=this.state,{onClear:n}=this.props,t=()=>{this.setState({error:void 0})};return e?(0,i.jsx)(r.LoadFailed,{error:(0,o.isError)(e)?e:void 0,title:"An unexpected error happened",retry:t,clearAndRetry:{title:"Clear cache and retry",solution:()=>{n(),t()}}}):this.props.children}}n.default=s},97878(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n});Object.defineProperty(n,"__esModule",{value:!0}),n.setAgGridLicenseKey=n.valueFormatters=n.AgGrid=void 0;var o=t(36696);Object.defineProperty(n,"AgGrid",{enumerable:!0,get:function(){return o.AgGrid}}),n.valueFormatters=r(t(27888));var s=t(32792);Object.defineProperty(n,"setAgGridLicenseKey",{enumerable:!0,get:function(){return s.setAgGridLicenseKey}})},32792(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setAgGridLicenseKey=void 0;const a=t(67748);n.setAgGridLicenseKey=e=>{a.LicenseManager.setLicenseKey(e)}},89(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.useAgGrid=void 0;const i=a(t(82702)),l=t(22155),r=t(15965),o=t(18647);n.useAgGrid=e=>{let{gridKey:n,rowModel:t,disableColumnStateRestoration:a}=e;const[s,d]=(0,l.useState)(),{storedValue:c,setValue:u}=(0,o.useLocalStorage)(r.AG_GRID_PARAMS_V2),p=s?.gridApi,{storedPagination:m,storedColumnState:f,storedFilterModel:y}=(0,l.useMemo)(()=>{const e=c?c[n]:null;return{storedPagination:e?.paginationState,storedColumnState:e?.columnState,storedFilterModel:e?.filterModel}},[c,n]),g=(0,l.useMemo)(()=>{const e=f?.filter(e=>e.hide)?.map(e=>e.colId),n=f?.reduce((n,t)=>{if(!e?.includes(t.colId))switch(t.pinned){case"left":n.leftColIds.push(t.colId);break;case"right":n.rightColIds.push(t.colId)}return n},{leftColIds:[],rightColIds:[]});return f?{columnPinning:{leftColIds:n?.leftColIds??[],rightColIds:n?.rightColIds??[]},columnVisibility:{hiddenColIds:e??[]}}:{}},[f]),h=(0,l.useMemo)(()=>y?{filter:{filterModel:y}}:{},[y]),x=y&&!!Object.keys(y).length,T=f&&(!!g?.columnVisibility?.hiddenColIds.length||!!g.columnPinning?.leftColIds.length||!!g.columnPinning?.rightColIds.length),b=Boolean(x||T),v=(0,l.useCallback)(()=>{if(c){let e=c;delete e[n],u(e)}switch(p?.setFilterModel(null),p?.resetColumnState(),p?.paginationGoToPage(0),t){case"serverSide":p?.refreshServerSide({purge:!0});break;case"clientSide":p?.refreshClientSideRowModel();break;case"infinite":p?.refreshInfiniteCache()}},[n,p,c,u]),C=(0,l.useCallback)(e=>{let t=null;c&&(t=c);const a=t&&n?{...t,[n]:{...t[n],...e}}:{[n]:e};u(a)},[c,u]),k=(0,l.useMemo)(()=>(0,i.default)(e=>{C(e)},100),[C]),S=(0,l.useCallback)(e=>{if(!p)return;const n=e.api.getFilterModel();C({filterModel:n})},[p,C]),N=(0,l.useCallback)(()=>{d(null)},[]),A=(0,l.useCallback)(()=>{if(!p)return;const e=p.getColumnState();k({columnState:e})},[p,k]),R=(0,l.useCallback)(e=>{if(p&&(e.newPage||e.newPageSize)){const e=p.getState();k({paginationState:e.pagination})}},[p,k]),D=(0,l.useCallback)(e=>{a||("clientSide"!==t&&y&&Object.values(y).length&&e.api.setFilterModel(y),f&&Object.values(f).length&&e.api.applyColumnState({state:f,applyOrder:!0}),d(n=>({...n,gridApi:e.api})))},[y,a]),L=(0,l.useCallback)(e=>{a||("clientSide"===t&&y&&Object.values(y).length&&e.api.setFilterModel(y),m&&e.api.paginationGoToPage(m.page??0))},[m,y,a]);return(0,l.useMemo)(()=>({onGridReady:D,filtersApplied:b,onFilterChanged:S,onSaveGridColumnState:A,onDestroy:N,onPaginationChanged:R,onFirstDataRendered:L,api:p,resetGridState:v,initialState:(g||h.filter?.filterModel||m)&&!a?{...g,...h,pagination:m}:{}}),[b,N,D,p,v,S,L,R,A,m,g,h])}},10946(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){const[n,t]=(0,a.useState)();return(0,a.useEffect)(()=>{if(n)throw n},[n]),(0,a.useMemo)(()=>{if(e)return{...e,getRows:async n=>{t(void 0);const a={...n,fail:()=>{t(new Error("An unexpected error happened"))}};try{await e.getRows(a)}catch(e){t(e)}}}},[e])};const a=t(22155)},27888(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.list=n.dateTime=n.date=n.time=void 0;const a=t(93930),i=e=>n=>null===n.value||void 0===n.value?"":e(n);n.time=i(e=>{let{value:n}=e;return a.formatters.time.format(new Date(n))}),n.date=i(e=>{let{value:n}=e;return a.formatters.date.format(new Date(n))}),n.dateTime=i(e=>{let{value:n}=e;return a.formatters.dateTime.format(new Date(n))}),n.list=e=>{let{value:n}=e;return a.formatters.list.format(n)}},74304(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.AiChat=function(e){let{conversation:n,initialSuggestions:t,inputPlaceholder:a,onUserMessage:l,loading:d,inputRef:u}=e;const[p,m]=(0,c.useState)(""),g=(0,c.useRef)(null),L=u??g,I=(0,c.useRef)(null),j=(0,c.useRef)(!1);(0,c.useEffect)(()=>{I.current?.scrollIntoView({behavior:"smooth"})},[n]),(0,c.useEffect)(()=>{!d&&j.current&&(j.current=!1,L.current?.focus())},[d,L]);const w=(0,c.useCallback)(e=>{m(e.target.value)},[m]),O=(0,c.useCallback)(async e=>{e.preventDefault(),""!==p.trim()&&(j.current=!0,await l(p),m(""))},[l,p,m]),E=(0,c.useCallback)(e=>{"Enter"!==e.key||e.shiftKey||O(e)},[O]);return(0,i.jsxs)(f,{children:[(0,i.jsxs)(y,{children:[n?.map(e=>"ai"===e.author?(0,i.jsxs)(h,{error:null!==e.error,children:[(0,i.jsx)(T,{}),(0,i.jsx)(r.default,{remarkPlugins:[o.default],children:e.error||e.text})]},e.id):(0,i.jsxs)(x,{children:[e.text,(0,i.jsx)(b,{color:"shadow"})]},e.id)),(0,i.jsx)("div",{ref:I})]}),!!t&&t.length>0&&!n.length&&(0,i.jsxs)(v,{children:[(0,i.jsx)(s.Text,{typescale:"body",size:"medium",children:"Suggested questions:"}),(0,i.jsx)(C,{children:t.map(e=>(0,i.jsx)(k,{onClick:()=>l(e),children:(0,i.jsx)(s.Text,{typescale:"body",size:"medium",children:e})},e))})]}),(0,i.jsxs)(S,{onSubmit:O,children:[(0,i.jsx)(N,{id:"AiChat__Input",name:"AiChat__Input",ref:L,placeholder:a,value:p,onChange:w,disabled:d,onKeyDown:E}),(0,i.jsx)(A,{variant:"contained",color:"primary",size:"small",type:"submit",endIcon:d?(0,i.jsx)(D,{size:24}):(0,i.jsx)(R,{color:"onPrimary"}),disabled:d,children:"Enter"})]})]})};const i=t(65723),l=t(87283),r=a(t(82657)),o=a(t(58558)),s=t(19033),d=t(99276),c=t(22155),u=t(71982),p=t(25069),m=t(87283),f=(0,l.styled)("div")`
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
`,y=(0,l.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 24px;
`,g=(0,l.styled)("div")`
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  ${e=>{let{theme:n}=e;return(0,s.textCss)(n,{typescale:"body",size:"medium"})}}
  margin: 0 38px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,h=(0,l.styled)(g,{shouldForwardProp:e=>"error"!==e})`
  border-radius: 0 12px 12px 12px;
  background-color: ${e=>{let{theme:n,error:t}=e;return t?n.sys.color.errorContainer:n.sys.color.primaryContainer}};
  color: ${e=>{let{theme:n,error:t}=e;return t?n.sys.color.onErrorContainer:n.sys.color.onSurfaceVariant}};
`,x=(0,l.styled)(g)`
  border-radius: 12px 0 12px 12px;
  align-self: flex-end;
`,T=(0,l.styled)(d.CustomIcons.Sparkle)`
  position: absolute;
  top: 0;
  left: -38px;
`,b=(0,l.styled)(d.CustomIcons.Person)`
  position: absolute;
  top: 0;
  right: -38px;
`,v=(0,l.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0;
  padding: 24px 0;
  border-top: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
`,C=(0,l.styled)("div")`
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
`,k=(0,l.styled)("span")`
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  text-selection: none;
  &:hover {
    cursor: pointer;
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.primaryContainer}};
  }
  ${e=>{let{theme:n}=e;return(0,s.textCss)(n,{typescale:"body",size:"medium"})}}
`,S=(0,l.styled)("form")`
  display: flex;
  position: relative;
  flex-direction: row;
  gap: 8px;
  flex: 0;
`,N=(0,l.styled)(m.TextareaAutosize)`
  flex: 1;
  height: 56px;
  padding: 12px 100px 12px 12px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  outline: none;
  border-radius: 8px;
  ${e=>{let{theme:n}=e;return(0,s.textCss)(n,{typescale:"body",size:"medium"})}}
  &:focus {
    border-color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  }
  &:placeholder {
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    ${e=>{let{theme:n}=e;return(0,s.textCss)(n,{typescale:"body",size:"medium"})}}
  }
`,A=(0,l.styled)(u.Button)`
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translate(-50%, -50%);
  bottom: 0;
  height: 32px;
  border-radius: 8px;
  padding: 6px 8px;
  &:focus {
    border: none;
    outline: none;
  }
`,R=(0,l.styled)(d.CustomIcons.PaperPlaneRight)`
  margin: 0;
`,D=(0,l.styled)(p.Loader)`
  margin: 0;
`},3154(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(74304),n)},22532(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.AiChatDialog=function(e){let{title:n,subtitle:t,...a}=e;const[r,s]=(0,c.useState)(!1),d=(0,c.useRef)(null);(0,c.useEffect)(()=>{r&&d.current?.focus()},[r]);const p=(0,l.useTheme)(),h=(0,o.default)(p.breakpoints.down("md")),x=(0,c.useCallback)(()=>{s(e=>!e)},[]);return(0,i.jsxs)(f,{children:[(0,i.jsx)(u.Dialog,{hideBackdrop:!0,draggable:!0,disableEnforceFocus:!0,disableScrollLock:!0,allowBackdropClick:!0,keepMounted:!0,closeButton:!0,open:r,onClose:x,fullScreen:h,title:n,subtitle:t,maxWidth:!1,sx:{pointerEvents:"none"},slots:{paper:g},children:(0,i.jsx)(m.AiChat,{...a,inputRef:d})}),(0,i.jsx)(y,{"aria-label":"Open AI Chat",width:"48",height:"48",color:"primary",isActive:!0,onClick:x})]})};const i=t(65723),l=t(87283),r=a(t(20590)),o=a(t(29695)),s=a(t(8668)),d=t(31482),c=t(22155),u=t(92542),p=t(99276),m=t(3154),f=(0,l.styled)("div")`
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
`,y=(0,l.styled)(p.CustomIcons.Sparkle)`
  width: 48px;
  height: 48px;
  &:hover {
    cursor: pointer;
  }
`,g=e=>{const n=(0,c.useRef)(null);return(0,i.jsx)(s.default,{nodeRef:n,handle:"#Dialog__drag_handle",bounds:{top:0},children:(0,i.jsx)("div",{ref:n,style:{position:"fixed",top:0,right:0},children:(0,i.jsx)(d.Resizable,{defaultSize:{width:520,height:"100vh"},minWidth:520,minHeight:300,maxHeight:"100vh",enable:{left:!0,bottom:!0,bottomLeft:!0,top:!1,right:!1,topRight:!1,topLeft:!1,bottomRight:!1},style:{display:"flex",flexDirection:"column",pointerEvents:"auto"},children:(0,i.jsx)(r.default,{...e,sx:{width:"100%",height:"100%",maxHeight:"100%",display:"flex",flexDirection:"column",overflow:"hidden",margin:0}})})})})}},96706(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(22532),n)},86456(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.AutoComplete=void 0;const i=t(65723),l=t(87283),r=a(t(35429)),o=t(54790),s=a(t(35232)),d=t(22155),c=t(54717),u=t(25069),p=t(19033),m=t(87283),f=(0,o.styled)(l.FormHelperText)`
  padding-left: 16px;
  color: ${e=>e.error&&e.theme.sys.color.error};
`,y=(0,o.styled)(s.default)`
  display: flex;
  flex-direction: row;
  align-items: center;

  &.${l.autocompleteClasses.option} {
    justify-content: space-between;
    min-height: 34px;
    padding-top: 0;
    padding-bottom: 0;
    white-space: pre-wrap;
  }

  ${e=>{let{theme:n}=e;return(0,p.textCss)(n,{typescale:"label",size:"large"})}}
`,g=(0,o.styled)(l.TextField)`
  & .${l.inputBaseClasses.root}.${l.inputClasses.root}:before {
    border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
    position: absolute;
    border-top: none;
    height: 9px;
    border-radius: 0px 0px 8px 8px;
  }

  & .${l.inputClasses.underline}:after {
    border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    border-top: none;
    height: 9px;
    border-radius: 0px 0px 8px 8px;
  }

  & .${l.inputClasses.underline}:hover::before {
    border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    border-top: none;
    border-radius: 0px 0px 8px 8px;
  }
`,h=(0,o.styled)(l.Autocomplete)`
  & .${l.inputLabelClasses.root}.Mui-focused {
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}} !important;
  }

  & .${l.inputLabelClasses.root} {
    padding-left: 17px;
  }
  && .${l.inputClasses.root}:hover::before {
    border-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }
  & .${l.autocompleteClasses.popupIndicator} {
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }

  & .${l.inputLabelClasses.outlined}:not(.${l.inputLabelClasses.shrink}) {
    transform: translate(10px, 20px) scale(1) !important;
  }
  & .${l.autocompleteClasses.endAdornment} {
    margin-right: 8px;
  }
`,x=(0,o.styled)(m.IconButton)(e=>{let{theme:n}=e;return{color:n.palette.grey[400]}}),T=25,b={maxHeight:224};function v(e,n){const t=new Map(e);return n.forEach(e=>t.set(e.value,e)),t}n.AutoComplete=e=>{let{sx:n,label:t,value:a,error:l,options:s,loadMore:p,onChange:m,onCreate:C,disabled:k,isLoading:S,helperText:N,placeholder:A,defaultValue:R,createOption:D,noOptionsMessage:L,isMulti:I=!1,fullWidth:j=!0,loadMoreSize:w=T,disableClearable:O,slotProps:E,onDeleteOption:_}=e;const F=(0,o.useTheme)(),[P,B]=(0,d.useState)(0),[U,$]=(0,d.useState)([]),[M,V]=(0,d.useState)([]),[G,z]=(0,d.useState)(new Map),[W,q]=(0,d.useState)("");(0,d.useEffect)(()=>{z(e=>v(e,s))},[s]),(0,d.useEffect)(()=>{z(e=>v(e,M))},[M]),(0,d.useEffect)(()=>{z(e=>v(e,U))},[U]);const J=(0,c.useDebouncedCallback)(async()=>{if(!p)return;const e=P+w;B(e);const n=await p(w,e,W);n.options.length&&(W?V(e=>e.concat(n.options)):$(e=>e.concat(n.options)))},500),Y=(0,c.useDebouncedCallback)(async e=>{if(!p){const n=s.filter(n=>n.label.toLowerCase().includes(e.toLowerCase()));return void V(n)}const n=await p(w,0,e);V(n.options)},500);(0,d.useEffect)(()=>{W?Y(W):W||p?!W&&p&&V([]):V(s)},[W]);const H=e=>{const{value:n}=e.target;q(n),""===n?(V([]),B(0)):Y(n)},K=(0,d.useMemo)(()=>({"& .MuiSelect-autoComplete .notranslate::after":A&&!t?{content:`${A}`,opacity:.42,...n||{}}:n}),[A,n,t]),Q=(0,d.useMemo)(()=>{const e=W?[...M]:s.concat(U),n=!e.find(e=>e.value===D),t=!e.find(e=>e.value===L);return D&&n&&e.unshift({value:D,label:D}),!L||t||D||e.length||e.unshift({value:L,label:L,disabled:!0}),e},[s,M,U]),Z=(0,d.useMemo)(()=>a?"string"==typeof a?G.get(a)||"":Array.isArray(a)&&a.every(e=>"string"==typeof e)?a.map(e=>G.get(e)).filter(Boolean):a:"",[G,a]),X=()=>q("");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h,{autoComplete:!0,isOptionEqualToValue:(e,n)=>e?.value===n?.value,disableClearable:O,clearOnEscape:!1,fullWidth:j,disabled:k,sx:K,filterOptions:e=>e,style:b,defaultValue:R,value:Z,onBlur:X,options:Q,multiple:I,loading:S,slotProps:E,getOptionKey:e=>e?.value,clearIcon:(0,i.jsx)(r.default,{fontSize:"small",onClick:X}),renderOption:(e,n)=>{const t=n,{value:a,label:l,disabled:o}=t,s=_&&a!==D&&!0!==o&&"delete-only"!==o;return(0,i.jsxs)(y,{...e,disabled:!0===o,value:a,sx:{fontWeight:400,zIndex:F.zIndex.modal},onClick:n=>{a===D&&C?C():e.onClick?.(n)},children:[l,s&&(0,i.jsx)(x,{size:"small",onClick:e=>{e.stopPropagation(),_(t)},children:(0,i.jsx)(r.default,{fontSize:"inherit"})})]})},onChange:(e,n)=>{m?.(n),I&&q("")},ListboxProps:{onScroll:e=>{const n=e.currentTarget;n.scrollTop+n.clientHeight>=n.scrollHeight-1&&J()}},renderInput:e=>{const n=I?{value:W}:{},a=I?{}:{onChange:H,value:W};return(0,i.jsx)(g,{...e,variant:"standard",label:t,margin:"normal",fullWidth:j,onChange:H,value:W,InputProps:{...e.InputProps,...a,endAdornment:(0,i.jsxs)(i.Fragment,{children:[S&&(0,i.jsx)(u.Loader,{size:20}),e.InputProps.endAdornment]})},inputProps:{...e.inputProps,...n,style:{padding:8}}})}},"search-autocomplete"),l&&(0,i.jsx)(f,{error:!!l,children:l}),N&&!l&&(0,i.jsx)(f,{children:N})]})}},57998(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(86456),n)},70370(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.StyledBadge=void 0,n.Badge=function(e){let{children:t,className:a,variant:i="standard",badgeContent:l,anchorRightVerticalCenter:r}=e;const o=(0,u.default)(a,{dot:"dot"===i,anchorRightVerticalCenter:r});return(0,s.jsx)(n.StyledBadge,{badgeContent:"dot"===i?" ":l,className:o,children:t})};const s=t(65723),d=t(54790),c=r(t(97239)),u=o(t(30395)),p=o(t(73474));n.StyledBadge=(0,d.styled)(c.default)`
  &.dot > .${c.badgeClasses.badge} {
    border: 4px solid ${e=>{let{theme:n}=e;return(0,p.default)(n.sys.color.error,.3)}};
    background-clip: padding-box;
    color: transparent;
    user-select: none;
  }
  & .${c.badgeClasses.badge} {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.error}};
    font-size: 10px;
    color: ${e=>{let{theme:n}=e;return n.sys.color.onError}};
  }

  &.anchorRightVerticalCenter > .${c.badgeClasses.badge} {
    top: 50%;
    left: 105%;
    transform: translateY(-50%);
  }
`},12513(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Badge=void 0;var a=t(70370);Object.defineProperty(n,"Badge",{enumerable:!0,get:function(){return a.Badge}})},61532(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Button=void 0;const s=t(65723),d=r(t(93756)),c=t(54790),u=o(t(30395)),p=o(t(73474)),m=t(22155),f=t(25069),y="primary",g="Button-withStartIcon",h=["tertiary"],x=e=>void 0===e||!h.includes(e),T=(0,c.styled)(function(e){let{color:n,...t}=e;return(0,s.jsx)(d.default,{...t,color:x(n)?n:"primary"})})`
  gap: 8px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 24px;
  font-family: ${e=>e.theme.sys.typescale.label.large.family};
  font-size: ${e=>e.theme.sys.typescale.label.large.size}px;
  font-style: normal;
  font-weight: ${e=>e.theme.sys.typescale.label.large.weight};
  line-height: ${e=>e.theme.sys.typescale.label.large.lineHeight}px;
  letter-spacing: ${e=>e.theme.sys.typescale.label.large.tracking};
  box-shadow: ${e=>e.theme.sys.elevation[0]};
  border-radius: 500px;
  text-transform: none;

  &:hover {
    box-shadow: none;
  }
  &:focus {
    outline: 4px solid ${e=>{let{theme:n,color:t=y}=e;return n.ref.palette[t][70]}};
  }

  &.${d.buttonClasses.contained} {
    &:hover {
      background-color: ${e=>{let{theme:n,color:t=y}=e;return(0,p.default)(n.sys.color[t],.92)}};
    }
    &:focus {
      background-color: ${e=>{let{theme:n,color:t=y}=e;return n.sys.color[t]}};
    }
    &:active {
      background-color: ${e=>{let{theme:n,color:t=y}=e;return n.ref.palette[t][10]}};
    }
  }
  &.${d.buttonClasses.outlined} {
    outline: 1px solid ${e=>{let{theme:n}=e;return n.ref.palette.neutral[80]}};
    &:hover {
      background-color: ${e=>{let{theme:n,color:t=y}=e;return n.ref.palette[t][95]}};
      outline: 1px solid ${e=>{let{theme:n,color:t=y}=e;return n.ref.palette[t][80]}};
    }
    &:focus {
      background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
      outline: 4px solid ${e=>{let{theme:n,color:t=y}=e;return n.ref.palette[t][80]}};
    }
    &:active {
      background-color: ${e=>{let{theme:n,color:t=y}=e;return n.ref.palette[t][90]}};
      outline: 1px solid ${e=>{let{theme:n,color:t=y}=e;return n.ref.palette[t][80]}};
    }
  }
  &.${d.buttonClasses.text} {
    box-shadow: none;
    &:hover {
      background-color: ${e=>{let{theme:n,color:t=y}=e;return n.ref.palette[t][95]}};
    }
    &:focus {
      background-color: ${e=>{let{theme:n,color:t=y}=e;return n.ref.palette[t][95]}};
    }
    &:active {
      outline: none;
    }
  }

  &.${g} {
    padding-left: 16px;
  }
`;n.Button=(0,m.forwardRef)((e,n)=>{let{children:t,loading:a,loaderTheme:i,...l}=e;const r=(0,u.default)({[g]:!!l.startIcon}),o=(0,m.useMemo)(()=>a?(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsx)("span",{children:(0,s.jsx)(f.Loader,{size:20,theme:i})})]}):t,[a,t]);return(0,s.jsx)(T,{ref:n,className:r,...l,children:o})})},65691(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FileUploadButton=void 0;const a=t(65723),i=t(22155),l=t(54790),r=t(71982),o=(0,l.styled)("input")`
  display: none;
`;n.FileUploadButton=e=>{let{onClick:n,multiple:t,onFileUpload:l,children:s,accept:d="*/*",...c}=e;const u=(0,i.useRef)(null),p=(0,i.useCallback)(e=>{n?.(e),u.current?.click()},[n]),m=(0,i.useCallback)(e=>{const n=e.target?.files;n&&l(Array.from(n))},[l]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Button,{variant:"contained",color:"primary",...c,onClick:p,children:s}),(0,a.jsx)(o,{type:"file",accept:d,onChange:m,ref:u,multiple:t})]})}},71982(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FileUploadButton=n.Button=void 0;var a=t(61532);Object.defineProperty(n,"Button",{enumerable:!0,get:function(){return a.Button}});var i=t(65691);Object.defineProperty(n,"FileUploadButton",{enumerable:!0,get:function(){return i.FileUploadButton}})},4684(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Card=void 0;const a=t(65723),i=t(22155),l=t(54790),r=t(19033),o=t(93930),s=t(99276),d=t(84704),c=t(13260),u=(0,l.styled)("div",{shouldForwardProp:e=>"disabled"!==e})`
  display: flex;
  border-radius: 12px;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: start;
  box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[1]}};
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
  cursor: 'pointer';

  &:hover {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.secondaryContainer}};
  }
`,p=(0,l.styled)("div")`
  align-self: flex-start;
  width: 100%;
  height: 168px;
  background-image: url(${e=>{let{src:n}=e;return n}});
  background-repeat: no-repeat;
  background-color lightgray;
  background-size: cover;
  border-radius: 12px 12px 0 0;
`,m=(0,l.styled)("div")`
  margin-top: ${e=>e.hasImg?"auto":"20px"};
  width: 100%;
  padding: 16px;
  display: flex;
  flex-flow: column nowrap;
  gap: 8px;
  max-width: 100%;
`,f=(0,l.styled)(r.Text)`
  display: flex;
  margin: 0;
  flex: 1;
`.withComponent("h2"),y=(0,l.styled)("div")`
  height: ${e=>e.hasImg?"240px":"100%"};
  width: 100%;
  position: relative;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
`,g=(0,l.styled)("div")`
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0px 16px;
  margin-bottom: -16px;
`;n.Card=e=>{const{src:n,title:t,subContent:l,subTitle:r,children:h,onClick:x,iconName:T,chipContent:b,disabled:v=!1}=e,C=(0,c.useTheme)(),k=(0,i.useCallback)(e=>{x?.(e)},[x]),S=T&&s.Icons[T];return(0,a.jsxs)(y,{hasImg:"src"in e,children:[h,(0,a.jsxs)(u,{onClick:k,disabled:v,children:["src"in e&&(0,a.jsx)(p,{src:n}),(S||b)&&(0,a.jsxs)(g,{children:[S&&(0,a.jsx)(S,{fontSize:"large",sx:{color:C.sys.color.primary}}),b&&(0,a.jsx)(d.Chip,{label:b})]}),(0,a.jsxs)(m,{hasImg:"src"in e,children:[(0,a.jsx)(f,{typescale:"body",size:"medium",title:(0,o.getNodeText)(t),oneLine:!0,children:t}),r&&(0,a.jsx)(f,{typescale:"body",size:"small",title:(0,o.getNodeText)(r),oneLine:!0,children:r}),l&&(0,a.jsx)(f,{typescale:"body",size:"small",title:(0,o.getNodeText)(l),children:l})]})]})]})}},59560(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.HorizontalCard=void 0;const a=t(65723),i=t(22155),l=t(54790),r=t(19033),o=t(93930),s=(0,l.styled)("div")`
  display: flex;
  border-radius: 12px;
  width: 328px;
  min-width: 328px;
  height: 80px;
  min-height: 80px;
  flex-direction: unset;
  justify-content: space-between;
  align-items: start;
  box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[1]}};
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
  overflow: hidden;

  &:hover {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.secondaryContainer}};
  }
`,d=(0,l.styled)("div")`
  background-image: url(${e=>{let{src:n}=e;return n}});
  background-repeat: no-repeat;
  background-color lightgray;
  background-size: cover;
  height: 100%;
  min-height: 80px;
  min-width: 80px;
  flex: 80px 1 0;
`,c=(0,l.styled)("div")`
  flex: 248px 1 0;
  max-width: 248px;
  padding: 16px;
  display: flex;
  flex-flow: column nowrap;
`,u=(0,l.styled)(r.Text)`
  margin: 0;
  margin-bottom: 4px;
`.withComponent("h2"),p=(0,l.styled)(r.Text)`
  margin: 0;
`,m=(0,l.styled)("div")`
  flex: 0 1 80px;
`;n.HorizontalCard=e=>{const{src:n,title:t,subTitle:l,onClick:r}=e,f=(0,i.useCallback)(e=>{r?.(e)},[r]);return(0,a.jsxs)(s,{onClick:f,children:[(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{typescale:"title",size:"medium",title:(0,o.getNodeText)(t),oneLine:!0,children:t}),l&&(0,a.jsx)(p,{typescale:"body",size:"medium",title:(0,o.getNodeText)(l),oneLine:!0,children:l})]}),(0,a.jsx)(m,{children:(0,a.jsx)(d,{src:n})})]})}},46728(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.HorizontalCard=n.Card=void 0;var a=t(4684);Object.defineProperty(n,"Card",{enumerable:!0,get:function(){return a.Card}});var i=t(59560);Object.defineProperty(n,"HorizontalCard",{enumerable:!0,get:function(){return i.HorizontalCard}})},49753(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ChartCard=n.chartCardClassNames=void 0;const a=t(65723),i=t(87283),l=t(54790),r=t(22155),o=(0,l.styled)("span")`
  font-size: ${e=>{let{theme:n}=e;return n.sys.typescale.title.medium.size}}px;
  font-family: ${e=>{let{theme:n}=e;return n.sys.typescale.title.medium.family}};
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  text-align: center;
`,s=(0,l.styled)("div")`
  width: 100%;
  height: 100%;
  display: flex;
  height: 270px;
  border-radius: 16px;
  flex-direction: column;
  max-width: ${e=>{let{maxWidth:n}=e;return n||"257px"}};
  background: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  align-items: ${e=>{let{alignItems:n}=e;return n||"center"}};
  padding: ${e=>{let{withPadding:n}=e;return n?"18px":0}};
  border: ${e=>{let{border:n,theme:t}=e;return n?`1px solid ${t.sys.color.outlineVariant}`:"none"}};
`;n.chartCardClassNames={title:"title"},n.ChartCard=(0,r.forwardRef)((e,n)=>{let{children:t,border:l,title:r,maxWidth:d,alignItems:c,withPadding:u}=e;return(0,a.jsxs)(s,{ref:n,alignItems:c,border:l,withPadding:u,maxWidth:d,children:[(0,a.jsx)(i.Stack,{gap:"12px",display:"flex",margin:0,width:"100%",direction:"row",children:(0,a.jsx)(o,{children:r})}),t]})})},52860(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ChartContainer=n.calculateInnerDimensions=n.ChartSize=void 0;const a=t(65723),i=t(54790),l=t(22155),r=t(17279),o=t(91691),s=t(19033),d=t(52199);var c;!function(e){e.Fluid="Fluid",e.Xs="Xs",e.S="S",e.STall="STall",e.Md="Md",e.L="L",e.Xl="Xl",e.Xxl="Xxl"}(c||(n.ChartSize=c={}));const u={[c.Fluid]:{width:100,height:100,paddingTop:32,paddingRight:32,paddingBottom:32,paddingLeft:32,placeholderIconSize:125,unit:"%"},[c.Xs]:{width:300,height:172,paddingTop:24,paddingRight:0,paddingBottom:0,paddingLeft:24,placeholderIconSize:75,unit:"px"},[c.S]:{width:478,height:172,paddingTop:24,paddingRight:0,paddingBottom:0,paddingLeft:24,placeholderIconSize:75,unit:"px"},[c.STall]:{width:478,height:312,paddingTop:24,paddingRight:0,paddingBottom:0,paddingLeft:24,placeholderIconSize:75,unit:"px"},[c.Md]:{width:626,height:312,paddingTop:32,paddingRight:0,paddingBottom:0,paddingLeft:32,placeholderIconSize:152,unit:"px"},[c.L]:{width:966,height:426,paddingTop:32,paddingRight:32,paddingBottom:32,paddingLeft:32,placeholderIconSize:152,unit:"px"},[c.Xl]:{width:978,height:349,paddingTop:32,paddingRight:32,paddingBottom:0,paddingLeft:32,placeholderIconSize:152,unit:"px"},[c.Xxl]:{width:978,height:651,paddingTop:32,paddingRight:32,paddingBottom:32,paddingLeft:32,placeholderIconSize:152,unit:"px"}},p=e=>"string"==typeof e?u[e]:e,m=(0,i.styled)("div")`
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 0;
  border: ${e=>{let{theme:n,border:t,noData:a}=e;return`${t?1:0}px ${a?"dashed":"solid"} ${n.sys.color.outlineVariant}`}};
  border-radius: ${e=>{let{border:n}=e;return n?16:0}}px;
  overflow: hidden;

  & svg {
    border-radius: ${16}px;
  }

  & .${d.chartClassNames.dataLabel}, & .${d.chartClassNames.legendLabel} {
    ${e=>{let{theme:n}=e;return(0,s.textCss)(n,{typescale:"body",size:"medium"})}}
    font-weight: 500;
  }

  & .${d.chartClassNames.dataLabelText}, & .${d.chartClassNames.legendLabelValue} {
    ${e=>{let{theme:n}=e;return(0,s.textCss)(n,{typescale:"body",size:"medium"})}}
    font-weight: 400;
  }

  ${e=>{let{size:n}=e;const t=p(n);return t?`\n      flex-basis: ${t.width}${t.unit};\n      width: ${t.width}${t.unit};\n      height: ${t.height}${t.unit};\n      padding-top: ${t.paddingTop}px;\n      padding-right: ${t.paddingRight}px;\n      padding-bottom: ${t.paddingBottom}px;\n      padding-left: ${t.paddingLeft}px;\n    `:""}}
`,f=(0,i.styled)("div")`
  position: relative;
  display: flex;
  align-items: center;
  height: ${32}px;
`,y=(0,i.styled)(s.Text)`
  flex: 1;
  align-self: flex-start;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,g=(0,i.styled)(r.DatePeriodBadge)`
  position: relative;
  top: -0.5em;
  right: 0;
`;n.calculateInnerDimensions=e=>{const n=p(e.size);if(!n||e.size===c.Fluid)return{};const t=(e=>!!e.title||!(!e.startDate||!e.endDate))(e)?32:0;return{width:n.width-n.paddingRight-n.paddingLeft,height:n.height-n.paddingTop-n.paddingBottom-t}},n.ChartContainer=(0,l.forwardRef)((e,n)=>{let{title:t,noData:i,children:l,startDate:r,endDate:s,size:u=c.Fluid,border:h=!0,titleSize:x="large",titleTypescale:T="label",noDataStateSuppressSuggestion:b=!1,...v}=e;const C=p(u);return(0,a.jsxs)(m,{size:u,border:h,noData:i,...v,ref:n,children:[(t||r&&s)&&(0,a.jsxs)(f,{style:{paddingRight:C.paddingRight>0?0:24},children:[t&&(0,a.jsx)(y,{typescale:T,size:x,className:d.chartClassNames.chartContainerTitle,oneLine:!0,children:t}),!i&&r&&s&&(0,a.jsx)(g,{startDate:r,endDate:s})]}),i?(0,a.jsx)(o.NoDataPlaceholder,{iconSize:C.placeholderIconSize,suppressSuggestion:b}):l]})})},17279(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DatePeriodBadge=void 0;const a=t(65723),i=t(54790),l=t(22155),r=t(19033),o=t(93930),s=(0,i.styled)("div")`
  border-radius: 12px;
  background: #f7f7ff;
  padding: 8px 12px;
  cursor: default;
`,d=(0,i.styled)(r.Text)`
  line-height: 20px;
  letter-spacing: 0.1px;
  color: #535353;
`;n.DatePeriodBadge=(0,l.forwardRef)((e,n)=>{let{startDate:t,endDate:i,...l}=e;return(0,a.jsx)(s,{...l,ref:n,children:(0,a.jsx)(d,{typescale:"label",size:"large",title:o.formatters.date.formatRange(t,i),children:o.formatters.monthYear.formatRange(t,i)})})})},60503(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.KpiChartCard=function(e){let{value:n,title:t,border:a,fontSize:c,maxWidth:u,delay:p=1,alignItems:m,withPadding:f,initialDelay:y,parentWidth:g=300}=e;const h=(0,l.useMemo)(()=>{const e=Intl.NumberFormat("en-GB",{notation:"compact"}).format(n);return n>=1e12?String(e):o.formatters.number.format(Math.round(n))},[n]),x=(0,l.useMemo)(()=>{const e=g,n=String(h).length,t=e/n,a=`${Math.max(t,12)}px`;return 1===n?"128px":a},[h]);return(0,i.jsx)(d.ChartCard,{border:a,maxWidth:u,alignItems:m,withPadding:f,title:t,children:(0,i.jsx)(s.SlotCharacter,{fontSize:c||x,children:(0,i.jsx)(r.default,{debounceDelay:y,delay:p,value:h})})})};const i=t(65723),l=t(22155),r=a(t(91034)),o=t(93930),s=t(40896),d=t(49753)},91691(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NoDataPlaceholder=void 0;const a=t(65723),i=t(54790),l=t(97322),r=t(99276),o=t(19033),s=(0,i.styled)("div")`
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
`,d=(0,i.styled)(o.Text)`
  margin-bottom: 4px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,c=(0,i.styled)(o.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,u=(0,i.styled)(l.Link)`
  text-decoration: underline;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`;n.NoDataPlaceholder=e=>{let{iconSize:n,suppressSuggestion:t=!1}=e;return(0,a.jsxs)(s,{children:[(0,a.jsx)(r.CustomIcons.NoData,{width:n,height:n}),(0,a.jsx)(d,{typescale:"title",size:"large",children:"No data"}),!t&&(0,a.jsxs)(c,{typescale:"body",size:"small",children:["Upload data in the ",(0,a.jsx)(u,{to:"/v2/data",children:"data"})," section"]})]})}},52199(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.chartClassNames=void 0,n.chartClassNames={dataLabel:"Chart-dataLabel",dataLabelText:"Chart-dataLabelText",legendLabel:"Chart-legendLabel",legendLabelValue:"Chart-legendLabelValue",chartContainerTitle:"Chart-containerTitle"}},98307(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),n.chartClassNames=void 0,i(t(52860),n),i(t(17279),n),i(t(60503),n),i(t(91691),n),i(t(49753),n);var l=t(52199);Object.defineProperty(n,"chartClassNames",{enumerable:!0,get:function(){return l.chartClassNames}})},44244(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnChart=void 0;const i=t(65723),l=t(54790),r=a(t(18814)),o=a(t(66044)),s=a(t(34768)),d=t(22155),c=t(57940),u=t(27718),p=t(98307);n.ColumnChart=(0,d.forwardRef)((e,n)=>{let{yAxisTitle:t,title:a,xAxisDateFormat:m,enableLegend:f=!0,treatZeroAsEmptyData:y=!0,data:g,unit:h,size:x,startDate:T,endDate:b,dataLabels:v,...C}=e;const k=(0,l.useTheme)(),S=k.sys.color.primary,N=k.extendedColors.social.color,A=k.sys.typescale.label.small,R=(0,d.useMemo)(()=>g.length>6?1:.2,[g]),D=(0,d.useMemo)(()=>g.length>6?.2:0,[g]),L=(0,d.useMemo)(()=>({fontSize:`${A.size}px`,fontWeight:`${A.weight}`,fontFamily:`${A.family}`,color:`${k.sys.color.onBackground}`}),[A,k]),{legend:I,tooltip:j,chart:w}=(0,c.useCalculatedHighchartsOptions)({title:a,startDate:T,endDate:b,size:x,dataLabels:v,tooltip:{unit:h,dimensionIn:"series"},legend:{enabled:f}}),O=(0,u.isDataEmpty)(g,y=!0),{seriesData:E,categories:_}=(0,d.useMemo)(()=>{const e=[],n=[];return g&&[...g].sort((e,n)=>(0,r.default)(e.time).valueOf()-(0,r.default)(n.time).valueOf()).forEach(t=>{const a=t.value||0,i=n.findIndex(e=>e.name===t.dimension);-1===i?n.push({name:t.dimension,data:[a]}):n[i].data.push(a);const l=(0,r.default)(t.time).format(m||"YYYY/MM");e.includes(l)||e.push(l)}),{seriesData:n.map(e=>({...e,type:"column",pointRange:R,groupPadding:D,maxPointWidth:12})),categories:e}},[g,m]),F={legend:I,tooltip:j,colors:[S,N],chart:{...w,type:"column"},xAxis:{categories:_,labels:{style:L}},yAxis:{min:0,title:{text:t||""},labels:{style:L}},title:{text:""},credits:{enabled:!1},series:E};return(0,i.jsx)(p.ChartContainer,{noData:O,size:x,startDate:T,endDate:b,title:a,...C,children:(0,i.jsx)(s.default,{highcharts:o.default,options:F,ref:n})})})},33774(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.DonutChart=void 0;const i=t(65723),l=t(22155),r=a(t(46059)),o=t(54790),s=a(t(50277)),d=a(t(66044)),c=a(t(34768)),u=t(98307),p=t(18647),m=t(57940),f=t(27718),y=(0,o.styled)(u.ChartContainer)`
  position: relative;
  padding-right: 0;
`,g={chart:{type:"pie"},title:{text:""},credits:{enabled:!1},plotOptions:{pie:{size:"50%",shadow:!1,allowPointSelect:!0,cursor:"pointer",showInLegend:!0}}};n.DonutChart=(0,l.forwardRef)((e,n)=>{let{title:t,size:a,startDate:o,endDate:u,data:h,unit:x,customOptions:T={},treatZeroAsEmptyData:b=!0,explanations:v,...C}=e;const k=(0,r.default)(h,"value"),S=(0,p.useFindColorByToken)(),{legend:N,tooltip:A,chart:R,dataLabels:D}=(0,m.useCalculatedHighchartsOptions)({title:t,startDate:o,endDate:u,size:a,dataLabels:C.dataLabels,tooltip:{unit:x,explanations:v,dimensionIn:"point"},legend:{labelFormatter(){const{name:e,y:n}=this;return(0,f.formatPieChartLegend)(e,n,k)}}}),L=(0,f.isDataEmpty)(h,b),I=(0,l.useMemo)(()=>(0,s.default)({},g,T,{legend:N,tooltip:A,chart:R,series:[{data:h.map(e=>({name:e.name,y:e.value,color:S(e.color)||e.color})),dataLabels:D,size:"75%",innerSize:"75%"}]}),[T]);return(0,i.jsx)(y,{noData:L,size:a,startDate:o,endDate:u,...C,ref:n,children:(0,i.jsx)(c.default,{highcharts:d.default,options:I})})})},19292(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(33774),n)},65978(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.KpiChart=void 0;const i=t(65723),l=t(54790),r=t(22155),o=a(t(91034)),s=a(t(49680)),d=t(93930),c=t(19033),u=t(27718),p=t(88911),m=t(98557),f=t(98307),y=(0,l.styled)(f.ChartContainer)`
  padding: 32px 32px 28px 32px;
`,g=(0,l.styled)("div")`
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  height: 36px;
  margin-bottom: 24px;
`,h=(0,l.styled)(c.Text)`
  flex-grow: 1;
  margin: 0;
  cursor: default;
  line-height: 28px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`.withComponent("h3"),x=(0,l.styled)("div")`
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  max-width: 100%;
`,T=(0,l.styled)(c.Text)`
  flex: 0 1 auto;
  margin-right: 8px;
  line-height: 46px;
  font-weight: 600;
  cursor: default;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 4px;
`,b=(0,l.styled)(m.KpiChartTrendLabel)`
  flex: 0 1 auto;
`;n.KpiChart=(0,r.forwardRef)((e,n)=>{let{size:t,title:a,metric:l,baseline:r,unit:c,growthEncouraged:m=!1,treatZeroAsEmptyData:v=!0,slot:C=!1,round:k,titleSize:S="large",titleTypescale:N="label",valueTypescale:A="display",valueSize:R="large",...D}=e;const L=(0,p.calculateTrend)({growthEncouraged:!!m,metric:l,baseline:r,unit:c});if((0,u.isValueEmpty)(l.value,v))return(0,i.jsx)(y,{title:a,titleTypescale:N,titleSize:S,noData:!0,size:t,...D,ref:n});const I="number"!=typeof k||Number.isNaN(l.value)?l.value:s.default.round(l.value,k),j=l.value>1e9?d.formatters.numberCompact.format(I):d.formatters.number.format(I);return(0,i.jsxs)(y,{size:t,...D,ref:n,children:[(0,i.jsxs)(g,{children:[(0,i.jsx)(h,{typescale:N,size:S,oneLine:!0,children:a}),(0,i.jsx)(f.DatePeriodBadge,{startDate:l.startDate,endDate:l.endDate})]}),(0,i.jsxs)(x,{children:[(0,i.jsx)(T,{typescale:A,size:R,title:l.value.toString(),children:C?(0,i.jsx)(o.default,{debounceDelay:1,delay:.1,value:j}):j}),r&&L&&(0,i.jsx)(b,{trend:L})]})]})})},98557(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.KpiChartTrendLabel=void 0;const a=t(65723),i=t(54790),l=t(93930),r=t(99276),o=t(32403),s=t(22155),d=["trend"],c=(0,i.styled)("div",{shouldForwardProp:e=>!d.includes(e)})`
  display: flex;
  height: 36px;
  padding: 4px 13px;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
  background: ${e=>{let{trend:n,theme:t}=e;return u(n,t).background}};
  color: ${e=>{let{trend:n,theme:t}=e;return u(n,t).color}};
  cursor: default;
  font-weight: 600;
`,u=(e,n)=>{switch(e.type){case o.TrendType.Positive:return{color:n.customColors.onSuccess.color,background:n.customColors.success.color};case o.TrendType.Negative:return{color:n.sys.color.onErrorContainer,background:n.sys.color.errorContainer};default:return{color:n.sys.color.onSecondaryContainer,background:n.sys.color.secondaryContainer}}},p=e=>{let{trend:n,theme:t}=e;if(0===n.value)return null;const i=u(n,t);return n.value>0?(0,a.jsx)(r.CustomIcons.ArrowUp,{color:i.color}):(0,a.jsx)(r.CustomIcons.ArrowDown,{color:i.color})};n.KpiChartTrendLabel=(0,s.forwardRef)((e,n)=>{let{trend:t,...r}=e;const o=(0,i.useTheme)();return(0,a.jsxs)(c,{trend:t,title:t.explanation,...r,ref:n,children:[(0,a.jsx)(p,{theme:o,trend:t}),l.formatters.percentage.format(Math.abs(t.value)),"%"]})})},28990(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(65978),n),i(t(32403),n)},32403(e,n){"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0}),n.TrendType=void 0,function(e){e.Positive="Positive",e.Negative="Negative",e.Neutral="Neutral"}(t||(n.TrendType=t={}))},88911(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.calculateTrend=void 0;const a=t(32403),i=t(89123),l=e=>Number.isFinite(e),r=e=>{let{metric:n,baseline:t,value:a,unit:l}=e;return`${i.formatters.number.format(n.value)} ${l} in ${i.formatters.monthYear.formatRange(n.startDate,n.endDate)} is ${i.formatters.percentage.format(a)}% ${a>=0?"higher ":"lower "}than ${i.formatters.number.format(t.value)} ${l} in ${i.formatters.monthYear.formatRange(t.startDate,t.endDate)}`};n.calculateTrend=e=>{let{metric:n,baseline:t,growthEncouraged:i,unit:o}=e;if(!l(n.value)||!l(t?.value))return null;const s=(n.value-t.value)/t.value*100,d=((e,n)=>0===e?a.TrendType.Neutral:n?e>0?a.TrendType.Positive:a.TrendType.Negative:e<0?a.TrendType.Positive:a.TrendType.Negative)(s,i);return{value:s,type:d,explanation:r({metric:n,baseline:t,value:s,unit:o})}}},4100(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.LineChart=void 0;const i=t(65723),l=t(22155),r=a(t(18814)),o=a(t(66044)),s=a(t(34768)),d=t(54790),c=t(98307),u=t(57940),p=t(27718);n.LineChart=(0,l.forwardRef)((e,n)=>{let{size:t,title:a,unit:m,yAxisTitle:f,xAxisDateFormat:y,data:g,startDate:h,endDate:x,disableLegend:T,explanations:b,treatZeroAsEmptyData:v=!0,...C}=e;const k=(0,d.useTheme)(),S=k.sys.typescale.body.medium,N=k.sys.color.primary,A=k.extendedColors.social.color,R=k.sys.typescale.label.medium,D=k.sys.typescale.label.small,L=k.sys.typescale.title.medium,I=(0,l.useMemo)(()=>g.length>6?1:.2,[g]),j=(0,l.useMemo)(()=>g.length>6?.2:0,[g]),w=(0,l.useMemo)(()=>({fontSize:`${D.size}px`,fontWeight:`${D.weight}`,fontFamily:`${D.family}`,color:`${k.sys.color.onBackground}`}),[D,k]),{seriesData:O,categories:E}=(0,l.useMemo)(()=>{const e=[],n=[];return g&&[...g].sort((e,n)=>new Date(e.time).getTime()-new Date(n.time).getTime()).forEach(t=>{const a=t.value||0,i=n.findIndex(e=>e.name===t.dimension);-1===i?n.push({name:t.dimension,data:[a]}):n[i].data.push(a);const l=(0,r.default)(new Date(t.time)).format(y||"MMM YYYY");e.includes(l)||e.push(l)}),{seriesData:n.map(e=>({...e,type:"line",pointRange:I,groupPadding:j,maxPointWidth:12})),categories:e}},[g,y]),_=(0,p.isDataEmpty)(g,v),{legend:F,tooltip:P,chart:B}=(0,u.useCalculatedHighchartsOptions)({title:a,startDate:h,endDate:x,size:t,dataLabels:C.dataLabels,tooltip:{unit:m,explanations:b,dimensionIn:"series"},legend:{enabled:!T}}),U=(0,l.useMemo)(()=>({legend:F,colors:[N,A],chart:{...B,type:"line"},title:{text:""},xAxis:{categories:E,labels:{style:w}},yAxis:{min:0,title:{text:f||""},labels:{style:w}},tooltip:P,credits:{enabled:!1},series:O}),[O,E,S,R,L,w,k,a,N,A,T]);return(0,i.jsx)(c.ChartContainer,{noData:_,title:a,size:t,startDate:h,endDate:x,...C,children:(0,i.jsx)(s.default,{highcharts:o.default,options:U,ref:n})})})},14002(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(4100),n)},77786(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.PieChart=void 0;const i=t(65723),l=a(t(50277)),r=a(t(66044)),o=a(t(46059)),s=t(22155),d=a(t(34768)),c=t(98307),u=t(18647),p=t(27718),m=t(57940),f={chart:{type:"pie"},title:{text:""},credits:{enabled:!1},plotOptions:{pie:{shadow:!1,center:["50%","50%"],allowPointSelect:!0,cursor:"pointer",showInLegend:!0},series:{dataLabels:{allowOverlap:!1}}}};n.PieChart=(0,s.forwardRef)((e,n)=>{let{title:t,size:a,startDate:s,endDate:y,customOptions:g,data:h,unit:x="",explanations:T,treatZeroAsEmptyData:b=!0,...v}=e;const C=(0,u.useFindColorByToken)(),k=(0,o.default)(h,"value"),{legend:S,tooltip:N,chart:A,dataLabels:R}=(0,m.useCalculatedHighchartsOptions)({title:t,startDate:s,endDate:y,size:a,dataLabels:v.dataLabels,tooltip:{unit:x,explanations:T,dimensionIn:"point"},legend:{labelFormatter(){const{name:e,y:n}=this;return(0,p.formatPieChartLegend)(e,n,k)}}}),D=(0,p.isDataEmpty)(h,b),L=(0,l.default)({},f,{chart:A,tooltip:N,legend:S,dataLabels:R,series:[{name:"",type:"pie",dataLabels:R,data:h.map(e=>({name:e.name,y:e.value,color:C(e.color)||e.color})),size:"100%"}]},g);return(0,i.jsx)(c.ChartContainer,{noData:D,size:a,startDate:s,endDate:y,...v,ref:n,children:(0,i.jsx)(d.default,{highcharts:r.default,options:L})})})},17850(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(77786),n),i(t(36919),n)},36919(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},74112(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RadialChart=void 0;const i=t(65723),l=t(22155),r=a(t(66044)),o=a(t(34768)),s=t(54790),d=t(42663),c=t(10304),u=t(5233),p=(0,s.styled)(u.RadialChartContainer)`
  & {
    display: flex;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    height: 386px;
  }

  & > div:first-child {
    max-width: 100%;
    width: 100%;
    height: 100%;
  }

  ${e=>{let{theme:n}=e;return n.breakpoints.down("xl")}} {
    height: 300px;
  }

  ${e=>{let{theme:n}=e;return n.breakpoints.down("md")}} {
    height: auto;
    align-items: center;
    flex-direction: column;
    gap: 24px;

    & > div:first-child {
      height: 300px;
    }
  }
`,m=(0,s.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 24px;
`;n.RadialChart=(0,l.forwardRef)((e,n)=>{let{data:t=c.mockData,...a}=e;const u=(0,s.useTheme)(),f=u.sys.typescale.body.medium,y=u.sys.typescale.label.medium,g=(0,l.useMemo)(()=>t.map((e,n)=>({...e,...c.radialData?.[n]})),[t,c.radialData]),h={chart:{type:"solidgauge",events:{}},credits:{enabled:!1},title:{text:c.title,useHTML:!0,x:-100,y:0,style:{fontSize:`${f.size}px`,color:`${u.sys.color.onSurfaceVariant}`,fontFamily:`${f.family}`}},tooltip:{borderWidth:0,backgroundColor:"none",shadow:!1,style:{},valueSuffix:`<p style="font-size: ${y.size}px; font-weight: ${y.weight}">%</p>`,pointFormat:`<span  style="font-size: ${u.sys.typescale.display.small.size}px; color: ${u.sys.color.onSurface}">{point.y}</span>`,positioner:function(e){return{x:(this.chart.chartWidth-e)/2,y:this.chart.plotHeight/2+34}}},pane:{startAngle:0,endAngle:360,background:(0,c.dataPaneBackground)(g)},yAxis:{min:0,max:100,lineWidth:0,tickPositions:[]},plotOptions:{solidgauge:{dataLabels:{enabled:!1},linecap:"round",stickyTracking:!1,rounded:!0}},series:(0,c.dataSeries)(g)};return(0,i.jsxs)(p,{...a,ref:n,children:[(0,i.jsx)(o.default,{highcharts:r.default,options:h}),(0,i.jsx)(m,{children:g?.map(e=>(0,i.jsx)(d.ChartInfoItem,{item:e},e.name))})]})})},5233(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.RadialChartContainer=void 0;const a=t(54790),i=t(19033),l=t(52199);n.RadialChartContainer=(0,a.styled)("div")`
  width: 100%;
  height: 100%;

  & .${l.chartClassNames.dataLabel} {
    display: flex;
    flex-direction: column;
  }
  & .${l.chartClassNames.dataLabelText} {
    display: block;
    margin: 0;
    margin-bottom: 4px;
    ${e=>(0,i.textCss)(e.theme,{typescale:"body",size:"medium"})}
  }
`},42663(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ChartInfoItem=void 0;const i=t(65723),l=t(54790),r=t(19033),o=a(t(10070)),s=(0,l.styled)("div")`
  display: flex;
  width: 236px;
  justify-content: space-between;
`,d=(0,l.styled)("div")`
  display: flex;
`,c=(0,l.styled)("img")`
  margin: 0 2px 0 10px;
`,u=(0,l.styled)(r.Text)`
  margin: 0;
`,p=(0,l.styled)("div")`
  width: 16px;
  height: 16px;
  background-color: ${e=>e.color};
  border-radius: 50%;
  margin: 3px 12px 0 0;
`;n.ChartInfoItem=e=>{let{item:n}=e;const{name:t,percent:a,startColor:l}=n;return(0,i.jsxs)(s,{children:[(0,i.jsxs)(d,{children:[(0,i.jsx)(p,{color:l}),(0,i.jsx)(u,{typescale:"body",size:"medium",children:t})]}),(0,i.jsxs)(d,{children:[(0,i.jsxs)(u,{typescale:"body",size:"medium",children:[a,"%"]}),(0,i.jsx)(c,{src:o.default}),(0,i.jsx)(u,{typescale:"body",size:"medium",children:"4%"})]})]})}},19717(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(74112),n),i(t(2572),n)},2572(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},10304(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.title=n.dataPaneBackground=n.dataSeries=n.mockData=n.radialData=n.linearGradientColor=void 0;const a=t(8244);n.linearGradientColor=(e,n)=>({linearGradient:{x1:0,y1:1,x2:0,y2:0},stops:[[0,e],[1,n]]}),n.radialData=[{radius:"118%",innerRadius:"97%",startColor:a.themeTokens.extendedColors.environmental.color,endColor:a.themeTokens.extendedColors.environmental.endColor},{radius:"96%",innerRadius:"75%",startColor:a.themeTokens.extendedColors.economic.color,endColor:a.themeTokens.extendedColors.economic.endColor},{radius:"74%",innerRadius:"53%",startColor:a.themeTokens.extendedColors.social.color,endColor:a.themeTokens.extendedColors.social.endColor},{radius:"52%",innerRadius:"31%",startColor:a.themeTokens.extendedColors.governance.color,endColor:a.themeTokens.extendedColors.governance.endColor}],n.mockData=[{name:"Environmental",percent:80},{name:"Social",percent:60},{name:"Economic",percent:75},{name:"Governance",percent:83}],n.dataSeries=e=>e.map(e=>{let{radius:t,innerRadius:a,percent:i,startColor:l,endColor:r}=e;return{type:"solidgauge",name:"",data:[{color:(0,n.linearGradientColor)(l,r),radius:t,innerRadius:a,y:i}],custom:{icon:"filter",iconColor:l}}}),n.dataPaneBackground=e=>e.map(e=>{let{radius:n,innerRadius:t,endColor:a}=e;return{outerRadius:n,innerRadius:t,backgroundColor:a,borderWidth:0}}),n.title='<div style="display: flex; align-items: center; gap: 12px"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="none">\n  <path d="M4.5 13.1925L5.5575 14.25L9 10.815L12.4425 14.25L13.5 13.1925L9 8.6925L4.5 13.1925Z" fill="#2E3EFF" />\n  <path d="M4.5 8.25L5.5575 9.3075L9 5.8725L12.4425 9.3075L13.5 8.25L9 3.75L4.5 8.25Z" fill="#2E3EFF" />\n</svg> Up 24% on 2023 Q1</div>'},64144(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.SimplePieDonutChart=void 0;const i=t(65723),l=a(t(73474)),r=a(t(66044)),o=a(t(34768)),s=a(t(50277)),d=a(t(46059)),c=t(22155),u=t(57940),p=t(98307),m=t(18647),f=t(27718),y={chart:{type:"pie"},title:{text:""},credits:{enabled:!1},plotOptions:{pie:{shadow:!1,center:["50%","50%"],allowPointSelect:!0,cursor:"pointer",showInLegend:!0},series:{dataLabels:{allowOverlap:!1}}}},g=(0,c.forwardRef)((e,n)=>{let{size:t,startDate:a,endDate:c,customOptions:g,data:h,title:x,unit:T="",explanations:b,treatZeroAsEmptyData:v=!0,...C}=e;const k=(0,m.useFindColorByToken)(),S=(0,d.default)(h,"value"),{legend:N,chart:A,tooltip:R,dataLabels:D}=(0,u.useCalculatedHighchartsOptions)({title:x,startDate:a,endDate:c,size:t,dataLabels:C.dataLabels,tooltip:{unit:T,explanations:b,dimensionIn:"point"},legend:{labelFormatter(){const{name:e,y:n}=this;return(0,f.formatPieChartLegend)(e,Number(n),S)}}}),L=(0,f.isDataEmpty)(h,v),I=(0,s.default)({},y,{chart:A,legend:N,tooltip:R,series:[{name:"",data:h.map(e=>({name:e.name,y:e.value,color:k(e.color)?(0,l.default)(k(e.color),.3):(0,l.default)(e.color,.3)})),size:"100%",showInLegend:!1,dataLabels:!1},{name:"",dataLabels:D,data:h.map(e=>({name:e.name,y:e.value,color:k(e.color)||e.color})),size:"100%",innerSize:"75%"}],title:{text:""}},g);return(0,i.jsx)(p.ChartContainer,{noData:L,title:x,size:t,startDate:a,endDate:c,...C,ref:n,children:(0,i.jsx)(o.default,{highcharts:r.default,options:I})})});n.SimplePieDonutChart=g},94980(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(64144),n),i(t(93601),n)},93601(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},21732(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.StackedChart=void 0;const i=t(65723),l=t(54790),r=a(t(66044)),o=a(t(34768)),s=t(22155),d=t(57940),c=t(98307),u=t(27718),p=t(18647);n.StackedChart=(0,s.forwardRef)((e,n)=>{let{title:t,type:a,size:m,unit:f,startDate:y,endDate:g,explanations:h,enableLegend:x=!0,treatZeroAsEmptyData:T=!0,data:b,colors:v,...C}=e;const k=(0,l.useTheme)(),S=k.sys.typescale.label.small,N={fontSize:`${S.size}px`,fontWeight:`${S.weight}`,fontFamily:`${S.family}`,color:`${k.sys.color.onBackground}`},A=b?.reduce((e,n)=>{const{dimension:t,time:a,value:i}=n;return e[a]||(e[a]={}),e[a][t]||(e[a][t]=0),e[a][t]+=i||0,e},{})||{},R=Object.keys(A).sort(),D=(0,s.useMemo)(()=>new Set,[]);Object.values(A).forEach(e=>{Object.keys(e).forEach(e=>{D.add(e)})});const L=(0,p.useFindColorByToken)(),I=(0,u.isDataEmpty)(b,T),{tooltip:j,legend:w,chart:O,dataLabels:E}=(0,d.useCalculatedHighchartsOptions)({title:t,startDate:y,endDate:g,size:m,dataLabels:C.dataLabels,tooltip:{unit:f,explanations:h,dimensionIn:"series"},legend:{enabled:x}}),_=(0,s.useMemo)(()=>Array.from(D).map(e=>({name:e,dataLabels:E,color:L(v[e]),data:R.map(n=>A[n][e]||0)})),[R,A,D]),F={legend:w,chart:{...O,type:a||"column"},title:{text:""},xAxis:{categories:R,labels:{style:N}},yAxis:{min:0,title:{text:""},labels:{style:N}},tooltip:j,credits:{enabled:!1},plotOptions:{column:{stacking:"normal"},series:{pointWidth:12}},series:_};return(0,i.jsx)(c.ChartContainer,{noData:I,title:t,size:m,startDate:y,endDate:g,...C,ref:n,children:(0,i.jsx)(o.default,{highcharts:r.default,options:F})})})},42203(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(21732),n),i(t(41434),n)},41434(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},57940(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(91151),n),i(t(90186),n),i(t(32836),n),i(t(89646),n),i(t(8141),n)},8141(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useAgChartsTheme=n.AgChartColor=void 0;const a=t(22155),i=t(54790);var l;!function(e){e.BLACK_1="black-1",e.BLUE_1="blue-1",e.BLUE_2="blue-2",e.BLUE_3="blue-3",e.BLUE_4="blue-4",e.PINK_1="pink-1",e.PINK_2="pink-2",e.PINK_3="pink-3",e.PURPLE_1="purple-1",e.GREEN_1="green-1",e.GREEN_2="green-2",e.GREEN_3="green-3",e.YELLOW_1="yellow-1",e.RED_1="red-1",e.GREY_1="grey-1",e.GREY_2="grey-2"}(l||(n.AgChartColor=l={})),n.useAgChartsTheme=e=>{const n=(0,i.useTheme)(),t=(0,a.useMemo)(()=>({[l.BLACK_1]:n.palette.common.black,[l.BLUE_1]:n.palette.primary.main,[l.BLUE_2]:n.extendedColors.social.color,[l.BLUE_3]:n.semanticColors.refrigerants.color,[l.BLUE_4]:n.semanticColors.hotelStays.color,[l.PINK_1]:n.extendedColors.economic.color,[l.PINK_2]:n.extendedColors.economicVariant.color,[l.PINK_3]:n.semanticColors.workFromHome.color,[l.GREEN_1]:n.extendedColors.environmental.color,[l.GREEN_2]:n.extendedColors.environmentalVariant.color,[l.GREEN_3]:n.semanticColors.finances.color,[l.PURPLE_1]:n.semanticColors.waste.color,[l.YELLOW_1]:n.semanticColors.transport.color,[l.RED_1]:n.semanticColors.heatAndSteam.color,[l.GREY_1]:n.semanticColors.materials.color}),[n]),r=(0,a.useMemo)(()=>{const n=[l.BLUE_1,l.GREEN_1,l.PINK_3,l.BLUE_4,l.GREY_1,l.BLUE_3,l.RED_1,l.PURPLE_1,l.PINK_1,l.BLACK_1,l.RED_1,l.YELLOW_1],a=e&&0!==e.length?e:n,i=(a||n)?.map(e=>t[e]||"").filter(Boolean);return i&&i.length>0?i:n},[e,n]);return{chartTheme:(0,a.useMemo)(()=>({palette:{fills:r,strokes:r},params:{fontFamily:"Plus Jakarta Sans",accentColor:n.palette.primary.main}}),[n,r]),legendTheme:(0,a.useMemo)(()=>({item:{marker:{shape:"circle"}}}),[n]),agChartColorMap:t}}},89646(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useCalculatedHighchartsOptions=function(e){let{title:n,startDate:t,endDate:o,size:s,legend:d,dataLabels:c,tooltip:u}=e;const p=(0,r.calculateInnerDimensions)({title:n,size:s,startDate:t,endDate:o});return{legend:(0,a.useLegendOptions)(d),tooltip:(0,l.useTooltipOptions)(u),dataLabels:(0,i.useDataLabelOptions)(c),chart:{width:p.width,height:p.height}}};const a=t(90186),i=t(91151),l=t(32836),r=t(98307)},91151(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useDataLabelOptions=function(){let{align:e="left",enabled:n=!1,formatter:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const l=(0,a.useTheme)(),r=l.sys.typescale.body.medium,o={align:e,enabled:n,className:i.chartClassNames.dataLabel,padding:0,style:{fontFamily:r.family,fontSize:`${r.size}px`,fontWeight:"400",height:r.lineHeight,color:l.sys.color.onSurface,letterSpacing:"0.25px"}};return t&&(o.formatter=t),o};const a=t(54790),i=t(52199)},90186(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useLegendOptions=function(){let{align:e="right",layout:n="vertical",verticalAlign:t="top",enabled:l=!0,labelFormat:r,labelFormatter:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=(0,a.useTheme)(),d=s.sys.typescale.body.medium,c={enabled:l,layout:n,align:e,verticalAlign:t,className:i.chartClassNames.dataLabel,itemMarginBottom:8,itemStyle:{fontFamily:d.family,fontSize:`${d.size}px`,fontWeight:"500",height:d.lineHeight,color:s.sys.color.onSurface,letterSpacing:"0.5px"},useHTML:!0};return r&&(c.labelFormat=r),o&&(c.labelFormatter=o),c};const a=t(54790),i=t(52199)},32836(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useTooltipOptions=function(e){let{unit:n,dimensionIn:t,explanations:l={}}=e;const r=(0,a.useTheme)(),{medium:o,small:s}=r.sys.typescale.label;return{animation:!1,enabled:!0,outside:!0,hideDelay:0,shadow:!1,borderWidth:0,borderRadius:12,padding:0,useHTML:!0,formatter(){const e="series"===t?this.series.name:this.key||"",a=`${i.formatters.number.format(this.y)} ${n}`,d=e in l?`${a}. ${l[e]}`:a,c=`padding: 12px 16px; border-radius: 12px; background-color: ${r.sys.color.surfaceVariant}`,u=`margin: 0 0 4px 0; font-size: ${o.size}px; font-weight: 600; line-height: ${o.lineHeight}px; letter-spacing: ${o.tracking}; color: ${r.sys.color.onSurfaceVariant};`;return`\n        <div style="${c}">\n          ${e?`<h4 style="${u}">${e}</h4>`:""}\n          <p style="margin: 0; font-size: ${s.size}px; font-weight: ${s.weight}; line-height: 16px; letter-spacing: ${s.tracking}; color: ${r.sys.color.onSurfaceVariant};">${d}</p>\n        </div>`}}};const a=t(54790),i=t(93930)},36187(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.AgChartColor=n.useAgChartsTheme=void 0;const r=l(t(66044)),o=l(t(29132)),s=l(t(69062));(0,o.default)(r.default),(0,s.default)(r.default),i(t(17850),n),i(t(28990),n),i(t(19717),n),i(t(42203),n),i(t(44244),n),i(t(52199),n),i(t(94980),n),i(t(14002),n),i(t(19292),n),i(t(35418),n);var d=t(57940);Object.defineProperty(n,"useAgChartsTheme",{enumerable:!0,get:function(){return d.useAgChartsTheme}}),Object.defineProperty(n,"AgChartColor",{enumerable:!0,get:function(){return d.AgChartColor}})},35418(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},27718(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.formatPieChartLegend=n.formatPieChartDataLabelPercentage=n.formatPieChartDataLabel=n.isDataEmpty=n.isValueEmpty=void 0;const i=a(t(59190)),l=t(98307),r=t(93930);n.isValueEmpty=(e,n)=>0===e?!!n:(0,i.default)(e),n.isDataEmpty=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return!e.length||e.every?.(e=>(0,n.isValueEmpty)(e.value,t))},n.formatPieChartDataLabel=e=>`<span class="${l.chartClassNames.dataLabel}">${e}</span>`,n.formatPieChartDataLabelPercentage=(e,n)=>{const t=r.formatters.number.format(n);return`<span class="${l.chartClassNames.dataLabelText}">${e} (${t}%)</span>`},n.formatPieChartLegend=(e,n,t)=>{const a=r.formatters.numberCompact.format(n),i=r.formatters.percentage.format(n/t*100);return`<span class="${l.chartClassNames.legendLabel}">${e}</span> <span class="${l.chartClassNames.legendLabelValue}">- ${a} (${i}%)</span>`}},62570(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Checkbox=void 0;const i=t(65723),l=t(54790),r=a(t(55687)),o=a(t(49865)),s=t(19033),d=(0,l.styled)(s.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,c=(0,l.styled)(o.default)`
  svg {
    path {
      border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    }
  }

  .PrivateSwitchBase-input:checked ~ svg {
    path {
      fill: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    }
  }

  .PrivateSwitchBase-input:disabled ~ svg {
    path {
      opacity: 0.38;
      fill: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
      border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
    }
  }
`;n.Checkbox=e=>{const{label:n,checked:t,onChange:a,name:l,disabled:o,indeterminate:s}=e;return(0,i.jsx)(r.default,{name:l,control:(0,i.jsx)(c,{checked:t,onChange:a,disabled:o,indeterminate:s}),label:(0,i.jsx)(d,{typescale:"label",size:"large",children:n})})}},56595(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Checkbox=void 0;var a=t(62570);Object.defineProperty(n,"Checkbox",{enumerable:!0,get:function(){return a.Checkbox}})},30700(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Chip=void 0;var i=t(60086);Object.defineProperty(n,"Chip",{enumerable:!0,get:function(){return a(i).default}})},84704(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Chip=void 0;var a=t(30700);Object.defineProperty(n,"Chip",{enumerable:!0,get:function(){return a.Chip}})},54648(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.CircularProgress=void 0;const i=t(65723),l=t(22155),r=t(54790),o=a(t(40850)),s=t(19033),d=t(87283),c=t(93930),u=(0,r.styled)(d.Box)`
  display: flex;
  align-items: center;
  position: relative;
`,p=(0,r.styled)("div")`
  display: flex;
  position: relative:
`,m=(0,r.styled)("div")`
  display: flex;

  ${e=>"simple-center"===e.mode||"chart"===e.mode?"    \n    top: 0;\n    left: 0;\n    bottom: 0;\n    right: 0;\n    position: absolute;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    ":"margin-left: 6px;"}
`,f=(0,r.styled)("div")`
  display: inline-flex;
  position: relative;
`,y=(0,r.styled)(s.Text)`
  position: absolute;
  right: -14px;
`,g=(0,r.styled)(s.Text)`
  margin-left: 4px;
  white-space: nowrap;
`,h=(0,r.styled)(o.default)`
  &.MuiCircularProgress-root {
    z-index: 3;
  }

  .MuiCircularProgress-circle {
    ${e=>{switch(e.color){case"primary":return`color: ${e.theme.sys.color.primary}`;case"secondary":return`color: ${e.theme.extendedColors.social.color}`;case"success":return`color: ${e.theme.palette.success.main}`;case"error":return`color: ${e.theme.palette.error.main}`;case"warning":return`color: ${e.theme.palette.warning.main}`;default:return""}}};
  }
`,x=(0,r.styled)(o.default)`
  &.MuiCircularProgress-root {
    position: absolute;
    z-index: 2;
    /* The default is -90 deg and we need this to create the white gap before and after the main circle */
    transform: rotate(-92deg) !important;
  }

  .MuiCircularProgress-circle {
    color: ${e=>e.theme.sys.color.surface};
  }
`,T=(0,r.styled)(o.default)`
  &.MuiCircularProgress-root {
    position: absolute;
    z-index: 1;
  }

  .MuiCircularProgress-circle {
    color: ${e=>{switch(e.color){case"primary":return(0,c.opacifyHex)(e.theme.sys.color.primary,.1);case"secondary":return(0,c.opacifyHex)(e.theme.extendedColors.social.color,.1);case"success":return(0,c.opacifyHex)(e.theme.palette.success.main,.1);case"error":return(0,c.opacifyHex)(e.theme.palette.error.main,.1);case"warning":return(0,c.opacifyHex)(e.theme.palette.warning.main,.1);default:return"transparent"}}};
  }
`;n.CircularProgress=e=>{let{mode:n="simple-right",mainContainerProps:t={},additionalText:a,textProps:r,...o}=e;const d=(0,l.useMemo)(()=>{switch(n){case"chart":return 160;case"simple-right":return 16;case"simple-center":return 50;default:return 40}},[n]),c=(0,l.useMemo)(()=>"chart"===n?{typescale:"display",size:"small"}:{typescale:"body",size:"medium"},[n]),b=(0,l.useMemo)(()=>`${Math.round(o.value||0)}${"chart"!==n?"%":""}`,[n,o.value]),v=(0,l.useMemo)(()=>({variant:"determinate",size:d,thickness:4.6,color:"primary"}),[d]);return(0,i.jsxs)(u,{...t,children:[(0,i.jsxs)(p,{children:[(0,i.jsx)(h,{...v,...o}),(0,i.jsx)(x,{...v,...o,value:Math.min((o.value||0)+1,100)}),(0,i.jsx)(T,{...v,...o,value:100})]}),(0,i.jsxs)(m,{mode:n,children:[(0,i.jsxs)(f,{children:[(0,i.jsx)(s.Text,{...c,...r,children:b}),"chart"===n&&(0,i.jsx)(y,{typescale:"label",size:"medium",children:"%"})]}),a&&(0,i.jsx)(g,{...c,...r,children:a})]})]})}},27176(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CircularProgress=void 0;var a=t(54648);Object.defineProperty(n,"CircularProgress",{enumerable:!0,get:function(){return a.CircularProgress}})},36098(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.DatePicker=void 0;const i=t(65723),l=t(54790),r=t(41784),o=t(90844),s=t(32099),d=t(5267),c=a(t(18814)),u=a(t(38588)),p=t(22155),m=t(19033),f=a(t(61699)),y=a(t(6105)),g=(0,l.styled)("span")`
  position: absolute;
  top: 0;
  left: 16px;
  ${e=>{let{theme:n}=e;return(0,m.textCss)(n,{typescale:"label",size:"medium"})}}
`,h=(0,l.styled)("div")`
  position: relative;
`,x=(0,l.styled)(o.DatePicker)`
  ${e=>{let{theme:n}=e;return(0,m.textCss)(n,{typescale:"body",size:"large"})}};

  .MuiInputBase-input ~ .MuiOutlinedInput-notchedOutline,
  .MuiOutlinedInput-notchedOutline {
    border-color: ${e=>e.error?e.theme.sys.color.error:e.theme.sys.color.primary};
  }

  .MuiOutlinedInput-notchedOutline,
  .MuiInputBase-input:active ~ .MuiOutlinedInput-notchedOutline,
  .MuiInputBase-input:hover ~ .MuiOutlinedInput-notchedOutline,
  .MuiInputBase-input:focus
    ~ .MuiOutlinedInput-notchedOutline.
    .MuiFormControl-root-MuiTextField-root
    .MuiInputBase-input
    ~ .MuiOutlinedInput-notchedOutline {
    border-color: ${e=>e.error?e.theme.sys.color.error:e.theme.sys.color.primary};
  }

  .MuiInputBase-input {
    padding-left: 16px;
    padding-bottom: 8px;
    z-index: 999;
  }

  .MuiOutlinedInput-notchedOutline {
    top: 32px;
    bottom: -9px;
    margin-bottom: 9px;
    border: 1px solid
      ${e=>e.error?e.theme.sys.color.error:e.theme.sys.color.outlineVariant};
    border-top: none;
    z-index: 0;
    border-radius: 0px 0px 8px 8px;
  }

  svg {
    z-index: 999;
    top: unset !important;
    right: 8px;

    path {
      fill: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    }
  }
`,T=(0,l.styled)("p")`
  padding-left: 16px;
  ${e=>{let{theme:n}=e;return(0,m.textCss)(n,{typescale:"body",size:"small"})}};
  color: ${e=>e.theme.sys.color.error};
`;n.DatePicker=e=>{const{label:n,error:t,name:a,value:l,disabled:o,format:m="DD-MM-YYYY",onChange:b,onFocus:v,...C}=e;c.default.extend(u.default),c.default.extend(f.default),c.default.extend(y.default);const k=(0,p.useCallback)(e=>{const n=e?.format("YYYY-MM-DDTHH:mm:ss.SSSZ")||"";n.startsWith("0")||b(n)},[b]),S=(0,p.useMemo)(()=>l?(0,c.default)(new Date(l)):null,[l]);return(0,i.jsx)(d.LocalizationProvider,{dateAdapter:r.AdapterDayjs,children:(0,i.jsxs)(s.DemoItem,{label:(0,i.jsx)(h,{children:(0,i.jsx)(g,{children:n})}),children:[(0,i.jsx)(x,{...C,slotProps:void 0,format:m,value:S,name:a,onChange:e=>k(e),error:!!t,disabled:o,onOpen:v}),!!t&&(0,i.jsx)(T,{children:t})]})})}},68149(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DatePicker=void 0;var a=t(36098);Object.defineProperty(n,"DatePicker",{enumerable:!0,get:function(){return a.DatePicker}})},32344(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Dialog=n.RioDialog=void 0;const i=t(65723),l=t(22155),r=a(t(28104)),o=a(t(85221)),s=a(t(8668)),d=a(t(20590)),c=t(54790),u=t(19033),p=t(99276),m=(0,c.styled)("div")`
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  cursor: move;
`,f=(0,c.styled)("div")`
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
`,y=(0,c.styled)("div")`
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
`,g=(0,c.styled)("div")`
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 24px;
  align-items: center;
`,h=(0,c.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
`,x=(0,c.styled)(u.Text)`
  font-size: 20px;
  font-weight: 600;
`,T=(0,c.styled)(u.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.secondary}};
`,b=(0,c.styled)("div")`
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex: 0;
  align-left: flex-end;
`,v=(0,c.styled)(r.default)`
  box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[0]}};
`,C="Dialog__drag_handle",k=e=>{const n=(0,l.useRef)(null);return(0,i.jsx)(s.default,{nodeRef:n,handle:`#${C}`,children:(0,i.jsx)(d.default,{...e,ref:n})})},S=(0,l.forwardRef)(function(e,n){return(0,i.jsx)(o.default,{direction:"up",ref:n,...e})});n.RioDialog=(0,l.forwardRef)(function(e,n){let{open:t,onClose:a,children:r,maxWidth:o="lg",hideBackdrop:s,draggable:d,disableEnforceFocus:c,fullScreen:u,title:N,subtitle:A,closeButton:R,allowBackdropClick:D,slots:L,...I}=e;const j=(0,l.useCallback)((e,n)=>{D&&"backdropClick"===n||a?.(e,n)},[a]);return(0,i.jsxs)(v,{fullScreen:u,hideBackdrop:s,open:t,maxWidth:o,onClose:j,slots:{transition:S,...d&&{paper:k},...L},...I,ref:n,children:[(0,i.jsxs)(g,{children:[N&&(0,i.jsxs)(h,{children:[(0,i.jsx)(x,{typescale:"title",size:"medium",children:N}),A&&(0,i.jsx)(T,{typescale:"body",size:"large",children:A})]}),R&&(0,i.jsx)(b,{children:(0,i.jsx)(p.CustomIcons.CloseDialog,{onClick:e=>a?.(e,"closeButtonClick")})})]}),(0,i.jsxs)(y,{children:[d&&(0,i.jsx)(m,{id:C,children:(0,i.jsx)(f,{})}),r]})]})}),n.Dialog=n.RioDialog},92542(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Dialog=void 0;var a=t(32344);Object.defineProperty(n,"Dialog",{enumerable:!0,get:function(){return a.Dialog}})},46130(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Draggable=function(e){let{children:n,...t}=e;const a=(0,d.useRef)(null),i=d.default.Children.only(n),l=d.default.cloneElement(i,{ref:a});return(0,s.jsx)(c.default,{nodeRef:a,...t,children:l})};const s=t(65723),d=r(t(22155)),c=o(t(8668))},25065(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DraggableCore=n.Draggable=void 0;var a=t(46130);Object.defineProperty(n,"Draggable",{enumerable:!0,get:function(){return a.Draggable}});var i=t(8668);Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return i.DraggableCore}})},3554(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n});Object.defineProperty(n,"__esModule",{value:!0}),n.StyledDrawer=void 0,n.Drawer=function(e){let{children:t,className:a,defaultExpanded:i,onChange:l}=e;return(0,o.jsx)(n.StyledDrawer,{className:a,defaultExpanded:i,onChange:l,children:t})};const o=t(65723),s=t(54790),d=r(t(40190));n.StyledDrawer=(0,s.styled)(d.default)`
  &.${d.accordionClasses.root} {
    border-radius: 16px;
    outline: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
    background: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
    box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[1]}};

    &.${d.accordionClasses.expanded} {
      margin: 0;
    }
  }

  &:before {
    height: 0px;
    background-color: transparent;
  }
`},40482(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.StyledDrawerDetails=void 0,n.DrawerDetails=function(e){let{children:t,className:a,sx:l}=e;return(0,i.jsx)(n.StyledDrawerDetails,{className:a,sx:l,children:t})};const i=t(65723),l=t(54790),r=a(t(87248));n.StyledDrawerDetails=(0,l.styled)(r.default)``},43908(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.StyledDrawerSummary=void 0,n.DrawerSummary=function(e){let{children:t,className:a,focusVisibleClassName:i,sx:l,expandIcon:r=(0,s.jsx)(p.default,{})}=e;const o=(0,u.default)(a);return(0,s.jsx)(n.StyledDrawerSummary,{className:o,focusVisibleClassName:i,sx:l,expandIcon:r,children:t})};const s=t(65723),d=t(54790),c=r(t(5922)),u=o(t(30395)),p=o(t(35855));n.StyledDrawerSummary=(0,d.styled)(c.default)`
  .${c.accordionSummaryClasses.expandIconWrapper} {
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }
`},40591(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DrawerSummary=n.DrawerDetails=n.Drawer=void 0;var a=t(3554);Object.defineProperty(n,"Drawer",{enumerable:!0,get:function(){return a.Drawer}});var i=t(40482);Object.defineProperty(n,"DrawerDetails",{enumerable:!0,get:function(){return i.DrawerDetails}});var l=t(43908);Object.defineProperty(n,"DrawerSummary",{enumerable:!0,get:function(){return l.DrawerSummary}})},75890(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DrawerLink=void 0;const a=t(65723),i=t(22155),l=t(97322),r=t(54790),o=t(19033),s=t(99276),d=(0,r.styled)(l.Link)`
  display: flex;
  width: 100%;
  padding: 8px 12px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 16px;
  outline: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  background: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[1]}};
  text-decoration: none;
  ${e=>{let{theme:n}=e;return(0,o.textCss)(n,{typescale:"body",size:"medium"})}}
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};

  &:hover {
    cursor: pointer;
  }

  & * {
    ${e=>{let{theme:n}=e;return(0,o.textCss)(n,{typescale:"body",size:"medium"})}}
  }

  &:hover {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.secondaryContainer}};
  }
`,c=(0,r.styled)("div")`
  width: 24px;
  height: 24px;
`,u=(0,r.styled)(s.Icons.KeyboardArrowRight)`
  width: 100%;
  height: 100%;
  fill: ${e=>e.theme.sys.color.primary};
`;n.DrawerLink=(0,i.forwardRef)(function(e,n){let{children:t,to:i,...l}=e;return(0,a.jsxs)(d,{to:i,ref:n,...l,children:[t,(0,a.jsx)(c,{children:(0,a.jsx)(u,{})})]})})},56155(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DrawerLink=void 0;var a=t(75890);Object.defineProperty(n,"DrawerLink",{enumerable:!0,get:function(){return a.DrawerLink}})},77554(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DurationProgress=void 0;const a=t(65723),i=t(54790),l=t(51908),r=t(93930),o=(0,i.styled)(l.LinearProgress)`
  &.MuiLinearProgress-root {
    width: 100%;
    height: 8px;
    border-radius: 16px;
    width: 100%;
    background-color: ${e=>{switch(e.color){case"white":return(0,r.opacifyHex)("#FFFFFF",.5);case"black":return(0,r.opacifyHex)(e.theme.ref.palette.neutral[10],.5);default:return(0,r.opacifyHex)(e.theme.sys.color.primary,.5)}}};
  }

  .MuiLinearProgress-bar1 {
    width: auto;
    border-radius: 16px;
    animation: progress ${e=>e.duration?e.duration/1e3:5}s linear forwards;
    background-color: ${e=>{switch(e.color){case"white":return"#FFFFFF";case"black":return e.theme.ref.palette.neutral[10];default:return e.theme.sys.color.primary}}};
  }

  .MuiLinearProgress-bar2 {
    display: none;
  }

  @keyframes progress {
    from {
      left: -35%;
      right: 100%;
    }

    to {
      left: 0%;
      right: 0%;
    }
  }
`;n.DurationProgress=e=>{let{duration:n,color:t,...i}=e;return(0,a.jsx)(o,{duration:n,color:t,...i,ref:i.ref,variant:"indeterminate"})}},7465(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DurationProgress=void 0;var a=t(77554);Object.defineProperty(n,"DurationProgress",{enumerable:!0,get:function(){return a.DurationProgress}})},30433(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorLayout=function(e){let{title:n,error:t,retry:i,clearAndRetry:l,withNoIcon:f}=e;const[y,g]=(0,c.useState)(!1),h=(0,c.useCallback)(()=>{g(e=>!e)},[g]),x=(0,c.useCallback)(()=>{i?i():window.location.reload()},[i]);return(0,a.jsxs)(r.Grid,{container:!0,size:12,spacing:1,direction:"column",alignItems:"center",justifyContent:"center",children:[!f&&(0,a.jsx)(r.Grid,{children:(0,a.jsx)(p,{})}),n&&(0,a.jsx)(r.Grid,{children:(0,a.jsx)(o.Text,{typescale:"title",size:"medium",children:n})}),t&&(0,a.jsxs)(u,{container:!0,direction:"row",spacing:2,children:[(0,a.jsx)(r.Grid,{children:(0,a.jsx)(s.Button,{variant:"outlined",color:"secondary",onClick:x,children:"Retry"})}),(0,a.jsx)(r.Grid,{children:(0,a.jsx)(s.Button,{variant:"outlined",color:"secondary",onClick:h,children:"Details"})}),l&&(0,a.jsx)(r.Grid,{children:(0,a.jsx)(s.Button,{variant:"outlined",color:"secondary",onClick:l.solution,children:l.title})})]}),(0,a.jsx)(d.Modal,{title:t?.message,open:y,onClose:h,children:t?.stack&&(0,a.jsx)(m,{children:t?.stack})})]})};const a=t(65723),i=t(92743),l=t(54790),r=t(64022),o=t(19033),s=t(71982),d=t(37791),c=t(22155),u=(0,l.styled)(r.Grid)`
  margin-top: 12px;
`,p=(0,l.styled)(i.ReportProblemOutlined)`
  fill: ${e=>{let{theme:n}=e;return n.sys.color.error}};
`,m=(0,l.styled)("div")`
  width: 400px;
  max-height: 400px;
  overflow-y: auto;
`},15204(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LoadFailed=function(e){return(0,a.jsx)(i.ErrorLayout,{...e})};const a=t(65723),i=t(30433)},93861(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LoadFailed=void 0;var a=t(15204);Object.defineProperty(n,"LoadFailed",{enumerable:!0,get:function(){return a.LoadFailed}})},19714(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Footer=function(e){const n=(0,l.useMemo)(()=>(new Date).getFullYear(),[]);return(0,a.jsxs)(r,{...e,children:["© ",n," Rio AI Ltd"]})};const a=t(65723),i=t(54790),l=t(22155),r=(0,i.styled)("footer")`
  padding-left: 32px;
  font-family: ${e=>e.theme.sys.typescale.body.small.family};
  font-size: ${e=>e.theme.sys.typescale.label.small.size}px;
  font-style: normal;
  font-weight: ${e=>e.theme.sys.typescale.label.small.weight};
  line-height: ${e=>e.theme.sys.typescale.label.small.lineHeight}px;
  color: ${e=>e.theme.sys.color.onSurfaceVariant};

  background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
`},64013(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Footer=void 0;var a=t(19714);Object.defineProperty(n,"Footer",{enumerable:!0,get:function(){return a.Footer}})},3752(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Grid=void 0;var i=t(3352);Object.defineProperty(n,"Grid",{enumerable:!0,get:function(){return a(i).default}})},64022(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Grid=void 0;var a=t(3752);Object.defineProperty(n,"Grid",{enumerable:!0,get:function(){return a.Grid}})},98322(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Header=void 0;const s=t(65723),d=t(92743),c=t(87283),u=t(68272),p=t(54790),m=o(t(30395)),f=o(t(49680)),y=r(t(22155)),g=t(71982),h=t(34859),x=t(47781),T=t(80918),b=t(56166),v=t(32040),C=(0,p.styled)("header",{shouldForwardProp:e=>"scrolling"!==e})`
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  min-height: 72px;
  padding: 8px 18px;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};

  &:after {
    content: '';
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    height: 40px;
    background: linear-gradient(180deg, #fff 62%, rgba(255, 255, 255, 0) 100%);
    background-position: ${e=>{let{scrolling:n}=e;return n?"0% 0%":"0% -100%"}};
    max-height: ${e=>{let{scrolling:n}=e;return n?"40px":"0px"}};
    transition:
      max-height 0.3s linear,
      background-position 0.3s linear;
  }
`,k=(0,p.styled)("ul")`
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
`,S=(0,p.styled)("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;

  & .${u.selectClasses.select} {
    width: 166px;
  }
`,N=(0,p.styled)(d.WorkspacePremiumOutlined)`
  width: 18px;
  height: 18px;
`,A=(0,p.styled)(T.Select)`
  width: 166px;
`,R=(0,p.styled)(c.MenuItem)`
  color: #a8a8aa;
  cursor: auto;
  user-select: text;
  &:hover {
    background-color: unset;
  }
`,D=(0,p.styled)(g.Button)`
  width: 100%;
`;n.Header=e=>{let{className:n,accounts:t,selectedAccount:a,onAccountChanged:i,onProfileClick:l,onResetToursClick:r,onLogoutClick:o,user:u,v2HideItems:p=!0,notifications:g,...T}=e;const L=(0,y.useMemo)(()=>t.map(e=>({value:e.id,label:e.name,imgUrl:e.logo})),[t]),I=(0,m.default)(n,"Header"),[j,w]=y.default.useState(null),O=Boolean(j),E=(0,y.useCallback)(()=>{w(null)},[w]),_=e=>{e(),E()},[F,P]=(0,y.useState)(!1),[B,U]=(0,y.useState)(0),$=(0,y.useMemo)(()=>f.default.debounce(()=>P(!1),1e3),[]);return(0,y.useEffect)(()=>{function e(){const e=window.scrollY;P(0!==window.scrollY),U(e<=0?0:e),$()}return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[B]),(0,s.jsxs)(C,{className:I,scrolling:F,...T,children:[(0,s.jsx)(x.Logo,{width:"70"}),(0,s.jsxs)(S,{className:"actions-container",children:[!p&&(0,s.jsxs)(D,{variant:"contained",to:"/v2/upgrade/courses",children:[(0,s.jsx)(N,{}),"Buy Courses"]}),(0,s.jsx)(A,{hasImage:!0,options:L,value:a,onChange:i,disabled:u.disableAccountSelector}),(0,s.jsxs)(k,{children:[(0,s.jsx)("li",{children:(0,s.jsx)(h.IconButton,{withThickBorder:!0,withHoverShadow:!0,focusable:!1,to:"/v2/contact",variant:"outlined",children:(0,s.jsx)(d.MailOutline,{})})}),(0,s.jsx)("li",{children:(0,s.jsx)(v.NotificationButton,{notifications:g?.items,loading:g?.loading,error:g?.error,onNotificationClick:g?.onNotificationClick})}),(0,s.jsxs)("li",{children:[(0,s.jsx)(b.ProfileButton,{focusable:!1,onClick:e=>{w(e.currentTarget)},profilePicture:u.profilePicture,variant:"outlined"}),(0,s.jsxs)(c.Menu,{id:"dropdown-profile-menu",anchorEl:j,open:O,onClose:E,children:[(0,s.jsx)(R,{children:u.fullname}),(0,s.jsxs)(c.MenuItem,{onClick:()=>_(l),children:[(0,s.jsx)(c.ListItemIcon,{children:(0,s.jsx)(d.ManageAccountsOutlined,{})}),"Profile"]}),!p&&(0,s.jsxs)(c.MenuItem,{onClick:()=>_(r),children:[(0,s.jsx)(c.ListItemIcon,{children:(0,s.jsx)(d.ResetTvOutlined,{})}),"Reset Tours"]}),(0,s.jsxs)(c.MenuItem,{onClick:()=>{localStorage.setItem("from_logout","true"),localStorage.removeItem("failed_url"),_(o)},children:[(0,s.jsx)(c.ListItemIcon,{children:(0,s.jsx)(d.LogoutOutlined,{})}),"Logout"]})]})]})]})]})]})}},32040(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NotificationButton=void 0;const a=t(65723),i=t(22155),l=t(92743),r=t(87283),o=t(54790),s=t(34859),d=(0,o.styled)(r.Menu)`
  .${r.paperClasses.root} {
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
  }
`,c=(0,o.styled)(r.MenuItem)`
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outline}};
  border-left: 4px solid
    ${e=>{let{theme:n,status:t}=e;return"overdue"===t?n.sys.color.error:n.customColors.warning.color}};

  &:last-child {
    border-bottom: none;
  }

  &:hover {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.surfaceVariant}};
  }
`,u=(0,o.styled)(r.Box)`
  margin-right: 12px;
  margin-top: 2px;
  color: ${e=>{let{theme:n,status:t}=e;return"overdue"===t?n.sys.color.error:n.customColors.warning.color}};
`,p=(0,o.styled)(r.Box)`
  flex: 1;
  display: flex;
  flex-direction: column;
`,m=(0,o.styled)(r.Typography)`
  font-weight: 600;
  margin-bottom: 4px;
`,f=(0,o.styled)(r.Typography)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  font-size: 12px;
  margin-bottom: 8px;
`,y=(0,o.styled)(r.Box)`
  padding: 24px;
  text-align: center;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`;n.NotificationButton=e=>{let{notifications:n=[],loading:t=!1,error:o=!1,onNotificationClick:g}=e;const[h,x]=(0,i.useState)(null),T=Boolean(h),b=()=>{x(null)},v=n.length;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.IconButton,{withThickBorder:!0,withHoverShadow:!0,focusable:!1,variant:"outlined",onClick:e=>{x(e.currentTarget)},"aria-label":`${v} notifications`,children:(0,a.jsx)(r.Badge,{badgeContent:v>0?v:void 0,color:"error",children:(0,a.jsx)(l.NotificationsOutlined,{})})}),(0,a.jsxs)(d,{id:"notification-menu",anchorEl:h,open:T,onClose:b,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[t&&(0,a.jsx)(y,{children:(0,a.jsx)(r.Typography,{children:"Loading notifications..."})}),o&&(0,a.jsx)(y,{children:(0,a.jsx)(r.Typography,{children:"Error loading notifications"})}),!t&&!o&&0===v&&(0,a.jsx)(y,{children:(0,a.jsx)(r.Typography,{children:"No new notifications"})}),!t&&!o&&n.map(e=>(0,a.jsxs)(c,{status:e.status,onClick:()=>{return n=e.id,g?.(n),void b();var n},children:[(0,a.jsx)(u,{status:e.status,children:(0,a.jsx)(l.DocumentScanner,{fontSize:"small"})}),(0,a.jsxs)(p,{children:[(0,a.jsx)(m,{variant:"body2",children:e.title}),(0,a.jsx)(f,{variant:"caption",children:e.message}),e.date&&(0,a.jsx)(f,{variant:"caption",sx:{marginTop:"2px",fontSize:"11px"},children:e.date})]})]},e.id))]})]})}},56166(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ProfileButton=function(e){let{profilePicture:n,...t}=e;const r=(0,i.useMemo)(()=>n?(0,a.jsx)(s,{src:n}):(0,a.jsx)(l.PermIdentityOutlined,{}),[n]);return(0,a.jsx)(o.IconButton,{withThickBorder:!0,withHoverShadow:!0,...t,children:r})};const a=t(65723),i=t(22155),l=t(92743),r=t(54790),o=t(34859),s=(0,r.styled)("img")`
  width: 36px;
  border-radius: 50%;
`},83199(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NotificationButton=n.Header=void 0;var a=t(98322);Object.defineProperty(n,"Header",{enumerable:!0,get:function(){return a.Header}});var i=t(32040);Object.defineProperty(n,"NotificationButton",{enumerable:!0,get:function(){return i.NotificationButton}})},11398(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.IconButton=void 0;const s=t(65723),d=t(54790),c=r(t(93756)),u=o(t(73474)),p=o(t(30395)),m="primary",f=(0,d.styled)(c.default)`
  border: 0;
  min-height: 40px;
  height: 40px;
  width: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  padding: 4px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;

  & svg {
    height: 24px;
    width: 24px;
  }

  &:not(:disabled) {
    cursor: pointer;
  }

  //Filled Variant
  &.${c.buttonClasses.contained} {
    &:focus:not(:disabled) {
      background-color: ${e=>{let{theme:n,color:t=m}=e;return n.sys.color[t]}};
    }
    &:active,
    &:hover:active,
    &:active:hover {
      outline: none;
      background-color: ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][10]}};
    }

    &:hover {
      ${e=>{let{theme:n,withHoverShadow:t}=e;return t?`box-shadow: ${n.sys.elevation[1]};`:""}}
      background-color: ${e=>{let{theme:n,color:t=m}=e;return n.sys.color[t]}};
    }
  }

  // Standard Variant
  &.${c.buttonClasses.text} {
    background-color: transparent;

    & svg {
      color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    }

    &:focus:not(:disabled) {
      & svg {
        color: ${e=>{let{theme:n,color:t=m}=e;return n.sys.color[t]}};
      }
      border: ${e=>{let{withThickBorder:n}=e;return n?"1.5px":"1px"}} solid
        ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][80]}};
      background-color: ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][95]}};
    }

    &:active:not(:disabled),
    &:active:hover:not(:disabled),
    &:hover:active:not(:disabled) {
      border: none;
      color: ${e=>{let{theme:n,color:t=m}=e;return n.sys.color[t]}};
      background-color: ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][80]}};
    }

    &:hover:not(:disabled) {
      background-color: ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][95]}};
      & svg {
        color: ${e=>{let{theme:n,color:t=m}=e;return n.sys.color[t]}};
      }
    }

    &:disabled {
      opacity: 0.38;
    }
  }

  &.${c.buttonClasses.outlined} {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
    ${e=>{let{theme:n,withHoverShadow:t,color:a=m}=e;return t?`box-shadow: 0px 0px 0px 1px ${n.ref.palette[a][80]} inset;`:""}}
    & svg {
      color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    }

    &:hover:not(:disabled) {
      ${e=>{let{theme:n,withHoverShadow:t,color:a=m}=e;return t?`box-shadow: 0px 0px 0px 1px ${n.ref.palette[a][80]} inset, ${n.sys.elevation[4]};`:""}}
      background-color: ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][95]}};
    }

    &:focus:not(:disabled) {
      ${e=>{let{theme:n,withHoverShadow:t,color:a=m}=e;return t?`box-shadow: 0px 0px 0px 4px ${n.ref.palette[a][80]} inset;`:""}}
    }

    &:active:not(:disabled),
    &:active:hover:not(:disabled),
    &:hover:active:not(:disabled) {
      ${e=>{let{theme:n,withHoverShadow:t,color:a=m}=e;return t?`box-shadow: 0px 0px 0px 1px ${n.ref.palette[a][80]} inset;`:""}}
      background-color: ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][90]}};
    }

    &:disabled {
      opacity: 0.38;
      box-shadow: none;
      background-color: ${e=>{let{theme:n}=e;return(0,u.default)(n.sys.color.onSurface,n.customStates.disabled.stateLayerOpacity)}};
    }
  }

  // Outlined Variant
  &.${c.buttonClasses.outlined} {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
    border: ${e=>{let{withThickBorder:n}=e;return n?"1.5px":"1px"}} solid
      ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
    &:focus:not(.focusable) {
      box-shadow: none;
      border: ${e=>{let{withThickBorder:n}=e;return n?"1.5px":"1px"}} solid
        ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
    }
    &:active {
      background-color: #f1efff;
    }
    &:focus {
      border: ${e=>{let{withThickBorder:n}=e;return n?"1.5px":"1px"}} solid
        ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][80]}};
    }
    svg {
      color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    }
    &.standard {
      &.Mui-disabled {
        outline: none;
        border: none;
        background-color: ${e=>{let{theme:n}=e;return(0,u.default)(n.sys.color.onSurface,n.customStates.disabled.stateLayerOpacity)}};
      }
    }
    &.toggleable {
      &.isOn {
        outline: none;
        background-color: ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][95]}};
        &:hover {
          background-color: ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][90]}};
        }
        svg {
          color: ${e=>{let{theme:n,color:t=m}=e;return n.sys.color[t]}};
        }
        &:focus {
          outline: ${e=>{let{withThickBorder:n}=e;return n?"1.5px":"1px"}} solid
            ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][70]}};
        }
        &:active {
          outline: none;
          background-color: ${e=>{let{theme:n,color:t=m}=e;return n.ref.palette[t][80]}};
        }
        &.Mui-disabled {
          outline: none;
          border: none;
          background-color: ${e=>{let{theme:n}=e;return(0,u.default)(n.sys.color.onSurface,n.customStates.disabled.stateLayerOpacity)}};
        }
      }
    }
  }
`;n.IconButton=e=>{let{focusable:n=!0,className:t,tabIndex:a,...i}=e;const l=(0,p.default)({focusable:n},t);return(0,s.jsx)(f,{...i,className:l,tabIndex:n?a:-1})}},34859(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.IconButton=void 0;var a=t(11398);Object.defineProperty(n,"IconButton",{enumerable:!0,get:function(){return a.IconButton}})},62077(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ArrowUp=n.ArrowDown=void 0;const a=t(65723),i=t(54790),l=t(46545),r=t(91814);n.ArrowDown=(0,l.buildIcon)(e=>{let{color:n,...t}=e;return(0,a.jsx)(r.Svg,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,a.jsx)("g",{id:"expand_circle_down",children:(0,a.jsx)("path",{id:"Vector",d:"M10.0533 6.39594L8 8.44927L5.94666 6.39594L4.99999 7.33594L8 10.3359L11 7.33594L10.0533 6.39594ZM8 1.33594C4.31999 1.33594 1.33333 4.3226 1.33333 8.0026C1.33333 11.6826 4.31999 14.6693 8 14.6693C11.68 14.6693 14.6667 11.6826 14.6667 8.0026C14.6667 4.3226 11.68 1.33594 8 1.33594ZM8 13.3359C5.05333 13.3359 2.66666 10.9493 2.66666 8.0026C2.66666 5.05594 5.05333 2.66927 8 2.66927C10.9467 2.66927 13.3333 5.05594 13.3333 8.0026C13.3333 10.9493 10.9467 13.3359 8 13.3359Z",fill:n})})})}),n.ArrowUp=(0,i.styled)(n.ArrowDown)`
  & {
    transform: rotate(180deg);
  }
`},74641(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Clear=void 0;const a=t(65723),i=t(46545),l=t(91814);n.Clear=(0,i.buildIcon)(e=>{let{color:n,...t}=e;return(0,a.jsx)(l.Svg,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:n})})})},39736(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CloseDialog=void 0;const a=t(65723),i=t(54790),l=t(46545);n.CloseDialog=(0,l.buildIcon)(e=>{let{...n}=e;const t=(0,i.useTheme)();return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n,children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:t.sys.color.onSurfaceVariant})})})},46334(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Download=void 0;const a=t(65723),i=t(91814),l=t(46545);n.Download=(0,l.buildIcon)(e=>(0,a.jsx)(i.Svg,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M18 15V18H6V15H4V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V15H18ZM17 11L15.59 9.59L13 12.17V4H11V12.17L8.41 9.59L7 11L12 16L17 11Z",fill:e.color})}))},36985(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NoData=void 0;const a=t(65723),i=t(91814),l=t(46545);n.NoData=(0,l.buildIcon)(e=>{let{width:n=152,height:t=152,...l}=e;return(0,a.jsxs)(i.Svg,{width:n,height:t,viewBox:"0 0 152 152",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,a.jsx)("circle",{cx:"76",cy:"76",r:"76",fill:"url(#paint0_linear_58416_60369)"}),(0,a.jsx)("path",{d:"M78 26C60.0659 26 41 30.7797 41 39.6562V104.344C41 113.213 60.0659 118 78 118C95.9341 118 115 113.22 115 104.344V39.6562C115 30.7797 95.9341 26 78 26ZM78 28.875C98.0961 28.875 112.098 34.5531 112.098 39.6562C112.098 44.7594 98.0961 50.4375 78 50.4375C57.9039 50.4375 43.902 44.7594 43.902 39.6562C43.902 34.5531 57.9039 28.875 78 28.875ZM78 115.125C57.9039 115.125 43.902 109.447 43.902 104.344V88.2509C46.579 90.6228 51.019 92.6497 56.9608 94.1087C57.0747 94.137 57.1916 94.1515 57.309 94.1519C57.6653 94.1581 58.0114 94.0341 58.2814 93.8038C58.5513 93.5734 58.7263 93.2527 58.7729 92.9027C58.8196 92.5527 58.7346 92.198 58.5342 91.9061C58.3338 91.6142 58.032 91.4056 57.6863 91.32C49.3069 89.25 43.902 85.915 43.902 82.7812V66.6812C46.579 69.0531 51.019 71.08 56.9608 72.5391C57.0747 72.5673 57.1916 72.5818 57.309 72.5822C57.6653 72.5884 58.0114 72.4645 58.2814 72.2341C58.5513 72.0037 58.7263 71.683 58.7729 71.333C58.8196 70.983 58.7346 70.6283 58.5342 70.3364C58.3338 70.0445 58.032 69.8359 57.6863 69.7503C49.3069 67.6875 43.902 64.3453 43.902 61.2188V45.205C49.9018 50.4878 64.2737 53.3125 78 53.3125C91.7263 53.3125 106.098 50.5094 112.098 45.2266V61.2188C112.098 64.3669 106.635 67.7306 98.1831 69.7862C97.9926 69.8084 97.8083 69.8676 97.6409 69.9603C97.4734 70.053 97.326 70.1775 97.2071 70.3267C97.0882 70.4759 97.0001 70.6468 96.9479 70.8297C96.8956 71.0126 96.8803 71.2039 96.9026 71.3927C96.925 71.5814 96.9847 71.764 97.0783 71.9299C97.1719 72.0958 97.2976 72.2418 97.4482 72.3596C97.5988 72.4774 97.7713 72.5647 97.9559 72.6165C98.1405 72.6682 98.3336 72.6834 98.5241 72.6612C98.6415 72.6609 98.7585 72.6464 98.8724 72.6181C104.901 71.1806 109.399 69.1106 112.098 66.7172V82.7812C112.098 85.9366 106.635 89.3003 98.1831 91.3559C97.8336 91.4347 97.5259 91.6388 97.3193 91.929C97.1127 92.2192 97.0218 92.5749 97.0642 92.9275C97.1065 93.2801 97.2791 93.6047 97.5487 93.8387C97.8183 94.0728 98.1657 94.1997 98.5241 94.195C98.6415 94.1946 98.7585 94.1802 98.8724 94.1519C104.901 92.7144 109.399 90.6444 112.098 88.2509V104.344C112.098 109.447 98.0961 115.125 78 115.125Z",fill:"#006C4B"}),(0,a.jsx)("path",{d:"M78.14 91C73.8589 91 69.9598 92.8893 68.2085 95.8066C68.1102 95.9696 68.045 96.1504 68.0164 96.3387C67.9879 96.5271 67.9966 96.7192 68.0421 96.9041C68.0877 97.0891 68.1691 97.2632 68.2817 97.4164C68.3944 97.5697 68.536 97.6991 68.6986 97.7973C68.9169 97.9274 69.1655 97.9974 69.4193 98C69.6696 97.9972 69.9149 97.929 70.131 97.8021C70.3471 97.6751 70.5266 97.4939 70.6517 97.2761C71.877 95.2347 74.8824 93.8666 78.1184 93.8666C81.2247 93.8666 84.086 95.1045 85.4193 97.0155C85.6456 97.3087 85.9753 97.5035 86.3403 97.5596C86.7054 97.6158 87.078 97.529 87.3813 97.3173C87.6845 97.1056 87.8953 96.785 87.9701 96.4217C88.0449 96.0585 87.978 95.6802 87.7833 95.365C85.9238 92.6867 82.2193 91 78.14 91Z",fill:"#006C4B"}),(0,a.jsx)("path",{d:"M69.5243 76.4757C69.8113 76.7214 70.1804 76.8498 70.5579 76.8352C70.9354 76.8207 71.2935 76.6642 71.5607 76.397C71.8278 76.1299 71.9843 75.7718 71.9989 75.3943C72.0135 75.0168 71.8851 74.6476 71.6393 74.3607L69.7043 72.4182L71.6393 70.4757C71.8851 70.1887 72.0135 69.8196 71.9989 69.4421C71.9843 69.0646 71.8278 68.7065 71.5607 68.4393C71.2935 68.1722 70.9354 68.0157 70.5579 68.0011C70.1804 67.9865 69.8113 68.1149 69.5243 68.3607L67.5818 70.2957L65.6393 68.3607C65.3524 68.1149 64.9833 67.9865 64.6057 68.0011C64.2282 68.0157 63.8701 68.1722 63.603 68.4393C63.3358 68.7065 63.1793 69.0646 63.1647 69.4421C63.1502 69.8196 63.2786 70.1887 63.5243 70.4757L65.4593 72.4182L63.5243 74.3607C63.3673 74.4952 63.2398 74.6606 63.1497 74.8467C63.0597 75.0328 63.0091 75.2355 63.0011 75.4421C62.9931 75.6487 63.0279 75.8547 63.1034 76.0472C63.1788 76.2397 63.2932 76.4145 63.4393 76.5607C63.5855 76.7068 63.7603 76.8212 63.9528 76.8966C64.1453 76.9721 64.3513 77.0069 64.5579 76.9989C64.7645 76.9909 64.9672 76.9403 65.1533 76.8503C65.3394 76.7602 65.5048 76.6327 65.6393 76.4757L67.5818 74.5407L69.5243 76.4757Z",fill:"#006C4B"}),(0,a.jsx)("path",{d:"M92.5674 68.4326C92.2887 68.1555 91.9117 68 91.5187 68C91.1258 68 90.7487 68.1555 90.47 68.4326L88.5437 70.3515L86.6174 68.4326C86.3328 68.1889 85.9667 68.0615 85.5924 68.076C85.218 68.0904 84.8629 68.2456 84.598 68.5106C84.333 68.7755 84.1778 69.1306 84.1634 69.505C84.1489 69.8794 84.2763 70.2454 84.52 70.53L86.4389 72.4563L84.52 74.3826C84.3642 74.516 84.2378 74.6801 84.1485 74.8646C84.0592 75.0492 84.009 75.2502 84.0011 75.4551C83.9932 75.6599 84.0277 75.8642 84.1025 76.0551C84.1773 76.246 84.2907 76.4193 84.4357 76.5643C84.5807 76.7093 84.754 76.8227 84.9449 76.8975C85.1358 76.9723 85.3401 77.0068 85.5449 76.9989C85.7498 76.991 85.9508 76.9408 86.1354 76.8515C86.3199 76.7622 86.484 76.6358 86.6174 76.48L88.5437 74.5611L90.47 76.48C90.7546 76.7237 91.1206 76.8511 91.495 76.8366C91.8694 76.8222 92.2245 76.667 92.4894 76.402C92.7544 76.1371 92.9096 75.782 92.924 75.4076C92.9385 75.0333 92.8111 74.6672 92.5674 74.3826L90.6485 72.4563L92.5674 70.53C92.8445 70.2513 93 69.8742 93 69.4813C93 69.0883 92.8445 68.7113 92.5674 68.4326Z",fill:"#006C4B"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_58416_60369",x1:"76",y1:"0",x2:"76",y2:"152",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{"stop-color":"#08EBA7","stop-opacity":"0.15"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#08EBA7","stop-opacity":"0"})]})})]})})},40198(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PaperPlaneRight=void 0;const a=t(65723),i=t(91814),l=t(46545);n.PaperPlaneRight=(0,l.buildIcon)(e=>{let{color:n,...t}=e;return(0,a.jsx)(i.Svg,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...t,children:(0,a.jsx)("path",{d:"M14.4919 7.12562L3.99186 1.1325C3.81475 1.03279 3.61146 0.989425 3.40908 1.00817C3.2067 1.02691 3.01484 1.10688 2.85905 1.23741C2.70326 1.36795 2.59095 1.54285 2.53707 1.73883C2.4832 1.93481 2.49032 2.14255 2.55748 2.33437L4.47186 8.00062L2.55748 13.6675C2.50421 13.8183 2.48788 13.9797 2.50986 14.1381C2.53184 14.2965 2.5915 14.4473 2.68382 14.5779C2.77615 14.7085 2.89845 14.815 3.04046 14.8886C3.18247 14.9621 3.34005 15.0006 3.49998 15.0006C3.67373 15.0003 3.84445 14.9551 3.99561 14.8694L14.4906 8.86625C14.6454 8.77953 14.7743 8.65319 14.8642 8.50019C14.954 8.34719 15.0016 8.17303 15.0019 7.9956C15.0022 7.81817 14.9553 7.64384 14.866 7.49052C14.7767 7.3372 14.6482 7.21039 14.4937 7.12312L14.4919 7.12562ZM3.49998 14.0006C3.50025 13.9981 3.50025 13.9956 3.49998 13.9931L5.35873 8.50062H8.99998C9.13259 8.50062 9.25977 8.44794 9.35354 8.35418C9.44731 8.26041 9.49998 8.13323 9.49998 8.00062C9.49998 7.86801 9.44731 7.74084 9.35354 7.64707C9.25977 7.5533 9.13259 7.50062 8.99998 7.50062H5.35873L3.50373 2.01062C3.50312 2.00708 3.50185 2.00369 3.49998 2.00062L14 7.99L3.49998 14.0006Z",fill:n})})})},6395(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Person=void 0;const a=t(65723),i=t(91814),l=t(46545);n.Person=(0,l.buildIcon)(e=>{let{color:n,...t}=e;return(0,a.jsxs)(i.Svg,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,a.jsx)("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"15.5",stroke:"#C7C5D0"}),(0,a.jsx)("path",{d:"M22.4325 21.2497C21.4807 19.6041 20.0138 18.4241 18.3019 17.8647C19.1487 17.3607 19.8066 16.5925 20.1746 15.6784C20.5425 14.7642 20.6002 13.7545 20.3388 12.8043C20.0774 11.8542 19.5113 11.0161 18.7275 10.4188C17.9437 9.82153 16.9855 9.49805 16 9.49805C15.0146 9.49805 14.0564 9.82153 13.2726 10.4188C12.4887 11.0161 11.9227 11.8542 11.6613 12.8043C11.3999 13.7545 11.4576 14.7642 11.8255 15.6784C12.1935 16.5925 12.8514 17.3607 13.6982 17.8647C11.9863 18.4235 10.5194 19.6035 9.56755 21.2497C9.53264 21.3067 9.50949 21.37 9.49945 21.436C9.48942 21.502 9.49271 21.5694 9.50912 21.6341C9.52554 21.6988 9.55476 21.7596 9.59504 21.8128C9.63533 21.8661 9.68587 21.9107 9.74369 21.9441C9.8015 21.9775 9.86542 21.999 9.93168 22.0073C9.99793 22.0156 10.0652 22.0105 10.1294 21.9924C10.1937 21.9743 10.2537 21.9435 10.3059 21.9018C10.358 21.8601 10.4013 21.8084 10.4332 21.7497C11.6107 19.7147 13.6919 18.4997 16 18.4997C18.3082 18.4997 20.3894 19.7147 21.5669 21.7497C21.5988 21.8084 21.6421 21.8601 21.6942 21.9018C21.7464 21.9435 21.8064 21.9743 21.8707 21.9924C21.9349 22.0105 22.0022 22.0156 22.0684 22.0073C22.1347 21.999 22.1986 21.9775 22.2564 21.9441C22.3142 21.9107 22.3648 21.8661 22.4051 21.8128C22.4453 21.7596 22.4746 21.6988 22.491 21.6341C22.5074 21.5694 22.5107 21.502 22.5006 21.436C22.4906 21.37 22.4675 21.3067 22.4325 21.2497ZM12.5 13.9997C12.5 13.3075 12.7053 12.6308 13.0899 12.0553C13.4745 11.4797 14.0211 11.0311 14.6607 10.7662C15.3002 10.5013 16.0039 10.432 16.6829 10.567C17.3618 10.702 17.9854 11.0354 18.4749 11.5249C18.9644 12.0144 19.2977 12.638 19.4328 13.3169C19.5678 13.9959 19.4985 14.6996 19.2336 15.3391C18.9687 15.9787 18.5201 16.5253 17.9445 16.9099C17.369 17.2945 16.6923 17.4997 16 17.4997C15.0721 17.4988 14.1824 17.1297 13.5263 16.4735C12.8701 15.8174 12.501 14.9277 12.5 13.9997Z",fill:n})]})})},78865(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.RioBot=void 0;const a=t(65723),i=t(91814),l=t(46545);n.RioBot=(0,l.buildIcon)(e=>{let{color:n,isActive:t,...l}=e;return(0,a.jsxs)(i.Svg,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9958 8.02071C13.2065 5.23138 8.68406 5.23138 5.89473 8.02071C3.1054 10.81 3.1054 15.3324 5.89473 18.1218C8.68406 20.9111 13.2065 20.9111 15.9958 18.1218C18.7851 15.3324 18.7851 10.81 15.9958 8.02071ZM10.9441 16.6424C12.9165 16.6424 14.5154 15.0435 14.5154 13.0711C14.5154 11.0987 12.9165 9.49983 10.9441 9.49983C8.97175 9.49983 7.37284 11.0987 7.37284 13.0711C7.37284 15.0435 8.97175 16.6424 10.9441 16.6424Z",fill:t?n:"#46464F"}),(0,a.jsx)("path",{opacity:"0.6",d:"M17.1644 19.1504C17.949 19.2321 18.5188 19.9344 18.4371 20.719C18.3554 21.5037 17.6531 22.0735 16.8684 21.9918C16.0838 21.9101 15.514 21.2078 15.5957 20.4231C15.6774 19.6385 16.3797 19.0687 17.1644 19.1504Z",fill:t?n:"#46464F"}),(0,a.jsx)("path",{opacity:"0.6",fillRule:"evenodd",clipRule:"evenodd",d:"M14.009 2.95357C14.4687 2.08111 15.5487 1.74653 16.4211 2.20626C18.9305 3.52853 20.92 5.70301 22.0052 8.34827C22.3795 9.26066 21.9433 10.3037 21.0309 10.678C20.1185 11.0523 19.0755 10.6161 18.7012 9.70376C17.936 7.83856 16.5295 6.30009 14.7563 5.36573C13.8838 4.90599 13.5493 3.82604 14.009 2.95357Z",fill:t?n:"#46464F"}),(0,a.jsx)("path",{opacity:"0.6",d:"M2.84184 6.03911C3.88878 4.99217 5.58619 4.99217 6.63313 6.03911C7.68006 7.08604 7.68006 8.78346 6.63313 9.83039C5.58619 10.8773 3.88878 10.8773 2.84184 9.83039C1.79491 8.78346 1.79491 7.08604 2.84184 6.03911Z",fill:t?n:"#46464F"})]})})},65464(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SaudiVision=void 0;const a=t(65723),i=t(54790),l=t(91814),r=t(46545),o=(0,i.styled)(l.Svg)`
  border: 1px solid;
  border-radius: 12px;
`;n.SaudiVision=(0,r.buildIcon)(e=>{let{color:n,isActive:t,...i}=e;return(0,a.jsxs)(o,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,a.jsx)("path",{d:"M27,4H5c-2.209,0-4,1.791-4,4V24c0,2.209,1.791,4,4,4H27c2.209,0,4-1.791,4-4V8c0-2.209-1.791-4-4-4Zm3,20c0,1.654-1.346,3-3,3H5c-1.654,0-3-1.346-3-3V8c0-1.654,1.346-3,3-3H27c1.654,0,3,1.346,3,3V24Z"}),(0,a.jsx)("path",{d:"M25.47,15.008c.105-.506-.616-3.171-.092-2.76,.071-.184-.288-.624-.39-.863-.362,1.107,.47,3.281,.2,4.749-.205,.431-1.607,.948-1.937,1.134,.74,.218,2.5-.651,2.218-2.26Z",fill:"#000"}),(0,a.jsx)("path",{d:"M10.505,16.004c.189-.342,.23-.711,.203-1.119,.285-.116,.625-.309,.739-.323-.078,.268,.108,.557,.485,.52,.075,2.143,.346,1.695,.235-.061,.244-.113,.285-.331,.376-.424,.529,.867,1.302-.28,.818-.752-.005,.039-.118,.415-.118,.415,0,0,.108,.114,.113,.17-.117,.14-.654,.045-.621-.172,.026-.059,.152-.363-.028-.182-.163,.166-.247,.518-.574,.578,.021-.738-.397-2.077-.198-2.519,.186,.233,.189,.069,.075-.16-.189-.337-.287-.981-.469-.283,.189,.786,.217,2.078,.349,2.962-.361-.07-.248-.325-.244-.489-.049-.033-.698,.313-.968,.396-.032-.274-.072-.521-.089-.724,1.012-.097,.623-1.314,.414-1.883,.025-.034,.297,.197,.133-.076-.251-.317-.358-.681-.477-.079,.157,.294,.301,1.089,.451,1.42-.103,.073-.337,.195-.569,.188,.019-.348-.281-1.172-.047-1.233,.161,.185,.185,.105,.072-.126-.195-.297-.349-1.048-.488-.321,.167,.343,.096,.842,.207,1.609-.632-.338-.133-1.385-.652-1.885-.024,.057-.13,.41-.13,.41,.515,.73-.338,2.343-1.17,1.331-.098-.544,.476-2.27-.336-.957-.16,.529-.555,2.134-1.013,.927-.089-.336,.098-1.28-.115-.503-.119,.293,.045,1.443,.567,1.308,.471-.253,.488-1.453,.854-1.754-.724,1.53,.977,2.599,1.429,.747,.013,.287,.224,.749,.612,.848,.023,.228,.06,.525,.094,.838-.072,.022-.144,.042-.217,.059-.605-1.576-2.019,.892-.179,.401,.024,.072,.04,.143,.042,.207-.852,1.187-3.966,1.185-1.934-.889,.066,.024,.191,.147,.18,.158,.073-.112,.11-.232-.09-.308,.33-.876-.875-.159-.14,.119-.149,.156-.5,.385-.715,.519-.167,.094-.68,.407-.803,.479-.057,.104,.455-.213,.61-.266-1.488,2.836,2.314,2.381,3.326,.88Zm-3.208-.938c.106-.053,.207-.104,.29-.15-1.363,2.364,2.618,1.812,2.664,.131,.069-.021,.138-.044,.208-.068,.024,.255,.041,.505,.042,.723-.365,.429-1.203,.928-1.945,1.131-1.368,.433-1.852-.966-1.259-1.766Z",fill:"#000"}),(0,a.jsx)("path",{d:"M16.342,16.611c.242-.267,1.915-.721,2.199-.864,.025-.071,.148-.321,.156-.373-.557,.05-2.089,.134-2.7,.103,.126-.108,.736-.422,1.182-.554,.042,.074,.073,.148,.079,.212,.032-.033,.056-.142,.048-.253,.293-.093,.443-.124,.508-.142,.041-.053,.114-.268,.125-.425-.359-.659-1.502-.446-.957,.322-.457,.192-1.222,.541-1.44,.856l-.035,.017c-.009,.017-.069,.266-.089,.343-.262-.782-.341-1.798-.795-2.093-.247,.506,.507,1.512,.517,2.056-.142,.33-1.991,1.757-2.309,.939,1.134-.431,2.304-1.185,1.336-2.289-.01-.041,.115,.017,.188,.02,.053-.113-.348-.347-.448-.46-.089-.016-.103,.303-.102,.38,.123,.179,.492,.887,.586,1.102-.139,.177-.837,.553-1.518,.863,.005-.176,.414-.656,.299-.786-.283,.515-.322-.323-.122-.485,.201-.642-.663,.951-.09,.897-.06,.114-.134,.253-.187,.419-.792,.369-2,.72-2.528,.893,.029-.094,.025-.174-.006-.15-.542,.637-.017-.81-.096-.67-.302,.23-.48,1.59,.087,.861,.44-.099,1.918-.203,2.471-.534,.084,1.499,2.627-.297,2.513-1.062,.064,.906,.55,1.539,1.847,1.609,.003-.103-.038-.425-.038-.425-.164-.023-.579-.086-.68-.326Zm-.913-.73c.257,.005,1.655-.032,1.921-.04-.491,.171-1.171,.271-1.14,.96-.403-.091-.624-.464-.781-.92Z",fill:"#000"}),(0,a.jsx)("path",{d:"M12.822,13.817c.459-.246,.482-1.398,.854-1.685-.765,1.473,1.05,2.445,1.404,.667,.322,1.701,2.18,.64,1.302-.691-.241-.549,.228,.023,.066-.334-.251-.316-.358-.681-.477-.079,.16,.291,.317,1.085,.451,1.42-1.359,.72-.927-1.166-1.428-1.825-.024,.057-.13,.41-.13,.41,.838,1.883-1.884,2.344-.998,.137-.447-.722-.639,1.657-1.145,1.614-.411,0-.413-.913-.358-1.107-.292,.019-.146,1.653,.458,1.473Z",fill:"#000"}),(0,a.jsx)("path",{d:"M23.777,14.233c.057,.949,.148,1.852,.117,2.524,.349-.356,.155-1.494,.145-2.223,.438,.519,.919,1.113,1.024,1.678,.013,.036,.069-.11,.06-.338,.048-.4-.665-1.312-1.115-1.788,.058-.461-.361-1.665-.114-1.934,.161,.186,.185,.105,.072-.126-.194-.304-.337-1.009-.476-.298,.17,.367,.134,1.245,.25,2.057-.385-.43-.627-.687-.828-.906,.011-.189-.181-.792,.017-.716,.161,.185,.185,.105,.072-.127-.205-.324-.348-1.024-.491-.286,.133,.193,.073,.417,.129,.814-.3-.442-.684-.627-.168-.578-.212-.149-1.029-.919-.813-.171,.305,.143,.63,.818,1.022,1.192,.063,.847,.258,2.221,.288,3.015-.809,.711-.96,.011-1.425-.246,.002-.225-.005-.444-.005-.573,.11-.505-.579-3.324-.041-2.908-.042-.23-.467-1.414-.568-.555,.225,.773,.255,2.393,.371,3.462,.011,.101,.024,.291,.035,.497-.002,0-.003-.001-.004-.002-.664,.19-.965,2.265-1.701,1.066,1.334-1.002,.41-3.321,.327-4.613,.008-.082,.139,.112,.207,.126,.049-.187-.281-.67-.399-.912-.476,.972,.751,3.11,.284,4.421,.061-.629-.685-1.392-1.221-1.883,.048-.267-.519-2.128-.024-1.609,.045-.023-.005-.16-.067-.282-.198-.331-.312-.975-.476-.273,.137,.173,.197,1.62,.287,1.904-.317-.37-1.855-1.462-1.123-1.362-.006-.02-.038-.068-.119-.117-.276-.09-.873-.788-.694-.054,.038,.003,.106,.049,.155,.107,.379,.518,1.263,1.37,1.843,1.886,.221,2.776,.599,3.546,.278,.267,.461,.469,.995,.976,1.103,1.565-.097,.201-.238,.38-.445,.525-.058-.379,.005-.686-.05-.715-.115,.07-.081,.556-.059,.79-1.629,.876-1.893,1.088,.063,.311,.679,1.706,1.129-.408,1.804-.783,.018,.016,.033,.025,.051,.04,.007,.215,.008,.399-.001,.459,.09-.001,.139-.14,.165-.33,1.967,1.537,1.697-1.371,1.455-2.888,.33,.384,.542,.608,.806,.888Z",fill:"#000"}),(0,a.jsx)("path",{fill:"#000",d:"M22.159,20.66h0s-1.5,0-1.5,0c.115-.083,.176-.205,.159-.327-.01-.077-.087-.135-.181-.143h-.047c-.114,.011-.196,.093-.184,.183l.005,.035,.006,.053c.006,.067,0,.134-.019,.199H9.313c.165,.24,.465,.386,.789,.386l10.116-.006c-.116,.083-.176,.205-.16,.328,.012,.09,.114,.154,.227,.143,.114-.011,.196-.093,.184-.183l-.005-.035-.006-.053c-.006-.067,0-.134,.019-.2h1.248s.035,.058,.035,.058c.031,.053,.071,.1,.117,.142l.064,.053h0c.126,.088,.287,.14,.456,.14,.16,0,.289-.111,.289-.248v-.072c0-.25-.237-.453-.529-.453Z"})]})})},95074(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Sparkle=void 0;const a=t(65723),i=t(91814),l=t(46545);n.Sparkle=(0,l.buildIcon)(e=>{let{color:n,isActive:t,...l}=e;return(0,a.jsxs)(i.Svg,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,a.jsx)("rect",{width:"32",height:"32",rx:"16",fill:n}),(0,a.jsx)("g",{clipPath:"url(#clip0_612_18688)",children:(0,a.jsx)("path",{d:"M20.3487 16.0662L17.125 14.875L15.9375 11.6488C15.8672 11.4577 15.7399 11.2928 15.573 11.1764C15.406 11.0599 15.2073 10.9975 15.0037 10.9975C14.8002 10.9975 14.6015 11.0599 14.4345 11.1764C14.2675 11.2928 14.1403 11.4577 14.07 11.6488L12.875 14.875L9.64873 16.0625C9.45768 16.1328 9.29281 16.2601 9.17634 16.427C9.05988 16.594 8.99744 16.7927 8.99744 16.9963C8.99744 17.1998 9.05988 17.3985 9.17634 17.5655C9.29281 17.7324 9.45768 17.8597 9.64873 17.93L12.875 19.125L14.0625 22.3512C14.1328 22.5423 14.26 22.7072 14.427 22.8236C14.594 22.9401 14.7927 23.0025 14.9962 23.0025C15.1998 23.0025 15.3985 22.9401 15.5655 22.8236C15.7324 22.7072 15.8597 22.5423 15.93 22.3512L17.125 19.125L20.3512 17.9375C20.5423 17.8672 20.7071 17.7399 20.8236 17.573C20.9401 17.406 21.0025 17.2073 21.0025 17.0037C21.0025 16.8002 20.9401 16.6015 20.8236 16.4345C20.7071 16.2676 20.5423 16.1403 20.3512 16.07L20.3487 16.0662ZM16.5625 18.2638C16.4946 18.2888 16.433 18.3282 16.3818 18.3793C16.3307 18.4305 16.2912 18.4921 16.2662 18.56L15 21.9906L13.7362 18.5625C13.7113 18.4939 13.6716 18.4316 13.62 18.38C13.5683 18.3284 13.5061 18.2887 13.4375 18.2638L10.0094 17L13.4375 15.7362C13.5061 15.7113 13.5683 15.6716 13.62 15.62C13.6716 15.5684 13.7113 15.5061 13.7362 15.4375L15 12.0094L16.2637 15.4375C16.2887 15.5054 16.3282 15.567 16.3793 15.6182C16.4305 15.6693 16.4921 15.7087 16.56 15.7337L19.9906 17L16.5625 18.2638ZM17 10.5C17 10.3674 17.0527 10.2402 17.1464 10.1464C17.2402 10.0527 17.3674 10 17.5 10H18.5V9C18.5 8.86739 18.5527 8.74021 18.6464 8.64645C18.7402 8.55268 18.8674 8.5 19 8.5C19.1326 8.5 19.2598 8.55268 19.3535 8.64645C19.4473 8.74021 19.5 8.86739 19.5 9V10H20.5C20.6326 10 20.7598 10.0527 20.8535 10.1464C20.9473 10.2402 21 10.3674 21 10.5C21 10.6326 20.9473 10.7598 20.8535 10.8536C20.7598 10.9473 20.6326 11 20.5 11H19.5V12C19.5 12.1326 19.4473 12.2598 19.3535 12.3536C19.2598 12.4473 19.1326 12.5 19 12.5C18.8674 12.5 18.7402 12.4473 18.6464 12.3536C18.5527 12.2598 18.5 12.1326 18.5 12V11H17.5C17.3674 11 17.2402 10.9473 17.1464 10.8536C17.0527 10.7598 17 10.6326 17 10.5ZM23.5 13.5C23.5 13.6326 23.4473 13.7598 23.3535 13.8536C23.2598 13.9473 23.1326 14 23 14H22.5V14.5C22.5 14.6326 22.4473 14.7598 22.3535 14.8536C22.2598 14.9473 22.1326 15 22 15C21.8674 15 21.7402 14.9473 21.6464 14.8536C21.5527 14.7598 21.5 14.6326 21.5 14.5V14H21C20.8674 14 20.7402 13.9473 20.6464 13.8536C20.5527 13.7598 20.5 13.6326 20.5 13.5C20.5 13.3674 20.5527 13.2402 20.6464 13.1464C20.7402 13.0527 20.8674 13 21 13H21.5V12.5C21.5 12.3674 21.5527 12.2402 21.6464 12.1464C21.7402 12.0527 21.8674 12 22 12C22.1326 12 22.2598 12.0527 22.3535 12.1464C22.4473 12.2402 22.5 12.3674 22.5 12.5V13H23C23.1326 13 23.2598 13.0527 23.3535 13.1464C23.4473 13.2402 23.5 13.3674 23.5 13.5Z",fill:"white"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_612_18688",children:(0,a.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(8 8)"})})})]})})},91814(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Svg=void 0;const a=t(54790),i=["color"];n.Svg=(0,a.styled)("svg",{shouldForwardProp:e=>!i.includes(e)})``},3759(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Upload=void 0;const a=t(65723),i=t(91814),l=t(46545);n.Upload=(0,l.buildIcon)(e=>(0,a.jsx)(i.Svg,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M18 15V18H6V15H4V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V15H18ZM7 9L8.41 10.41L11 7.83V16H13V7.83L15.59 10.41L17 9L12 4L7 9Z",fill:e.color})}))},46545(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.buildIcon=void 0;const i=t(65723),l=a(t(22155)),r=t(54790),o=t(18647);n.buildIcon=e=>l.default.forwardRef((n,t)=>{const a=(0,r.useTheme)(),l=(0,o.useFindColorByToken)()(n.color);return(0,i.jsx)(e,{...n,color:l||n.color||a.sys.color.primary,ref:t})})},99276(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n});Object.defineProperty(n,"__esModule",{value:!0}),n.Icons=n.CustomIcons=void 0;const o=r(t(92743));n.Icons=o;const s=t(62077),d=t(74641),c=t(39736),u=t(3759),p=t(78865),m=t(46334),f=t(36985),y=t(6395),g=t(65464),h=t(95074),x=t(40198);n.CustomIcons={ArrowDown:s.ArrowDown,ArrowUp:s.ArrowUp,Clear:d.Clear,CloseDialog:c.CloseDialog,Person:y.Person,Upload:u.Upload,Download:m.Download,NoData:f.NoData,PaperPlaneRight:x.PaperPlaneRight,RioBot:p.RioBot,SaudiVision:g.SaudiVision,Sparkle:h.Sparkle}},66574(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ImageEditor=void 0;const i=t(65723),l=t(22155),r=a(t(92467)),o=t(76916),s=t(38987),d=t(19033),c=t(71982),u=t(54790),p=t(61799),m=(0,u.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
`,f=(0,u.styled)("div")`
  /* +4px for the border */
  width: ${256}px;
  height: ${256}px;
  position: relative;
  margin-bottom: 40px;
  border: 3px solid ${e=>e.theme.sys.color.primary};
`,y=(0,u.styled)("div")`
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  .reactEasyCrop_CropArea {
    border: none;
  }

  ${e=>!e.isImageEditable&&"\n    .reactEasyCrop_CropArea.reactEasyCrop_CropAreaGrid {\n      width: 100%;\n      height: 100%;\n    }\n\n    .reactEasyCrop_Image.reactEasyCrop_Contain {\n      width: 100%;\n      height: 100%;\n    }\n  "}
`,g=(0,u.styled)(d.Text)`
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
`,h=(0,u.styled)(s.Slider)`
  .MuiSlider-rail {
    background-color: ${e=>e.theme.sys.color.inversePrimary};
  }
`,x=(0,u.styled)("div")`
  /* Height of the Slider */
  height: 40px;
`,T=(0,u.styled)(c.Button)`
  margin-top: 40px;
  width: 100%;
`,b=(0,u.styled)(d.Text)`
  display: inline;
  text-decoration: underline;
`,v={x:0,y:0},C={width:0,height:0,x:0,y:0};n.ImageEditor=e=>{let{onSave:n,defaultImageSrc:t="",onError:a,onSuccess:s,shouldResetAfterSuccess:d=!1}=e;const c=(0,l.useRef)(null),u=(0,l.useCallback)(()=>{c.current?.click()},[]),[k,S]=(0,l.useState)(!1),[N,A]=(0,l.useState)(t||""),[R,D]=(0,l.useState)(""),L=(0,l.useMemo)(()=>N.startsWith("data:image"),[N]),[I,j]=(0,l.useState)(1),[w,O]=(0,l.useState)(v),[E,_]=(0,l.useState)(C),F=(0,l.useCallback)(async e=>{if(e[0])try{S(!0);const n=await(0,p.readFile)(e[0]);S(!1),A(n),D(e[0].type)}catch(e){a?.(`Error at uploading image (${e.message})`,"danger"),S(!1)}},[a]),{getRootProps:P,getInputProps:B}=(0,o.useDropzone)({onDrop:F,multiple:!1,accept:{"image/*":[".png",".jpeg",".jpg",".svg",".gif"]},noClick:!!N}),U=(0,l.useCallback)(async()=>{if(N)try{S(!0);const e=await(0,p.getCroppedImageBlobUrl)(N,E,R);await n(e),s?.("File saved successfully","success"),S(!1),d&&(j(1),O(v),_(C))}catch(e){S(!1),a?.(`Error at cropping image (${e.message})`,"danger")}},[E,N,n,a,d,R]);return(0,i.jsxs)(m,{children:[(0,i.jsxs)(g,{typescale:"body",size:"medium",textAlign:"center",onClick:u,children:["Drag and drop an image or"," ",(0,i.jsx)(b,{typescale:"body",size:"medium",children:"click here"})," ","to upload"]}),(0,i.jsx)(f,{...P(),children:(0,i.jsxs)(y,{isImageEditable:L,children:[(0,i.jsx)("input",{...B(),ref:c}),(0,i.jsx)(r.default,{image:N,aspect:1,showGrid:!1,zoom:I,onZoomChange:e=>L&&j(e),crop:w,onCropChange:e=>L&&O(e),onCropComplete:(e,n)=>L&&_(n)})]})}),L?(0,i.jsx)(h,{min:1,max:3,step:.1,value:I,onChange:(e,n)=>j(n),disabled:!L}):(0,i.jsx)(x,{}),(0,i.jsx)(T,{variant:"contained",onClick:U,disabled:k||!L,children:"Save"})]})}},14342(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ImageEditor=void 0;var a=t(66574);Object.defineProperty(n,"ImageEditor",{enumerable:!0,get:function(){return a.ImageEditor}})},61799(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.readFile=n.getCroppedImageBlobUrl=n.createImage=void 0,n.createImage=e=>new Promise((n,t)=>{const a=new Image;a.addEventListener("load",()=>n(a)),a.addEventListener("error",e=>t(e)),a.crossOrigin="Anonymous",a.src=e}),n.getCroppedImageBlobUrl=async(e,t,a)=>{const i=await(0,n.createImage)(e),l=document.createElement("canvas"),r=l.getContext("2d"),o=Math.max(i.width,i.height)/2*Math.sqrt(2)*2;if(l.width=o,l.height=o,r){r.translate(o/2,o/2),r.translate(-o/2,-o/2),r.drawImage(i,o/2-.5*i.width,o/2-.5*i.height);const e=r.getImageData(0,0,o,o);l.width=t.width,l.height=t.height,r.putImageData(e,Math.round(0-o/2+.5*i.width-t.x),Math.round(0-o/2+.5*i.height-t.y))}return l.toDataURL(a,.7)},n.readFile=e=>new Promise((n,t)=>{const a=new FileReader;a.addEventListener("load",()=>n(a.result),{once:!0}),a.addEventListener("error",()=>t(new Error("Error at uploading the files")),{once:!0}),a.readAsDataURL(e)})},51908(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.LinearProgress=void 0;var i=t(41822);Object.defineProperty(n,"LinearProgress",{enumerable:!0,get:function(){return a(i).default}})},65612(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinearProgress=void 0;var a=t(51908);Object.defineProperty(n,"LinearProgress",{enumerable:!0,get:function(){return a.LinearProgress}})},2554(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Loader=void 0;const s=t(65723),d=o(t(19316)),c=r(t(18418)),u=r(t(9794));n.Loader=e=>{let{size:n=90,theme:t="light"}=e;const a={loop:!0,autoplay:!0,animationData:"dark"===t?c:u,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}};return(0,s.jsx)(d.default,{options:a,width:n,height:n,isClickToPauseDisabled:!0})}},25069(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Loader=void 0;var a=t(2554);Object.defineProperty(n,"Loader",{enumerable:!0,get:function(){return a.Loader}})},84794(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=function(e){return(0,a.jsxs)("svg",{width:"99",height:"56",viewBox:"0 0 99 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M81.1421 19.7839C73.3316 11.9734 60.6683 11.9734 52.8579 19.7839C45.0474 27.5944 45.0474 40.2577 52.8579 48.0682C60.6684 55.8786 73.3317 55.8786 81.1421 48.0682C88.9526 40.2577 88.9526 27.5944 81.1421 19.7839ZM67 43.926C72.5229 43.926 77 39.4489 77 33.926C77 28.4032 72.5229 23.926 67 23.926C61.4772 23.926 57 28.4032 57 33.926C57 39.4489 61.4772 43.926 67 43.926Z",fill:"#2E3EFF"}),(0,a.jsx)("path",{opacity:"0.8",d:"M44.308 14.2341C47.2396 11.3025 51.9926 11.3025 54.9241 14.2341C57.8557 17.1656 57.8557 21.9186 54.9241 24.8502C51.9926 27.7817 47.2396 27.7817 44.308 24.8502C41.3765 21.9186 41.3765 17.1656 44.308 14.2341Z",fill:"#E442FF"}),(0,a.jsx)("path",{opacity:"0.8",d:"M82.4143 51.9479C84.6114 52.1767 86.207 54.1433 85.9782 56.3403C85.7493 58.5374 83.7828 60.133 81.5857 59.9042C79.3886 59.6754 77.793 57.7088 78.0218 55.5117C78.2507 53.3146 80.2172 51.719 82.4143 51.9479Z",fill:"#917FFE"}),(0,a.jsx)("path",{opacity:"0.8",fillRule:"evenodd",clipRule:"evenodd",d:"M75.5766 5.59518C76.8639 3.15217 79.8879 2.21529 82.3309 3.5026C89.3574 7.20512 94.9282 13.294 97.9669 20.701C99.0151 23.2558 97.7936 26.1765 95.2389 27.2247C92.6841 28.2728 89.7634 27.0514 88.7152 24.4966C86.5726 19.2738 82.6344 14.9659 77.6692 12.3495C75.2261 11.0622 74.2893 8.03819 75.5766 5.59518Z",fill:"#08EBA7"}),(0,a.jsx)("path",{d:"M35.9582 11.926C34.3582 11.926 32.9582 11.351 31.7582 10.201C30.6082 9.00098 30.0332 7.60098 30.0332 6.00097C30.0332 4.40098 30.6082 3.00098 31.7582 1.80098C32.9582 0.600976 34.3582 0.000976562 35.9582 0.000976562C37.6082 0.000976562 39.0082 0.600976 40.1582 1.80098C41.3582 3.00098 41.9582 4.40098 41.9582 6.00097C41.9582 7.60098 41.3582 9.00098 40.1582 10.201C39.0082 11.351 37.6082 11.926 35.9582 11.926ZM31.1582 52.926V15.426H40.8332V52.926H31.1582Z",fill:"#2E3EFF"}),(0,a.jsx)("path",{d:"M9.675 21.876C11 19.501 14 17.3947 16.1 16.476C17.9516 15.6659 21.3655 14.9223 24 14.676C24.7803 14.603 25.4923 14.676 26.075 14.676V25.476C23.125 25.126 17.475 25.726 15.125 27.276C12.825 28.826 9.675 31.401 9.675 35.001V52.926H0V15.426H9.675V21.876Z",fill:"#2E3EFF"})]})};const a=t(65723)},47781(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=void 0;var a=t(84794);Object.defineProperty(n,"Logo",{enumerable:!0,get:function(){return a.Logo}})},83742(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Modal=n.ModalSurface=void 0;const i=t(65723),l=t(22155),r=t(54790),o=a(t(30395)),s=a(t(43289)),d=t(19033),c=t(64022),u=t(87283),p=t(71982),m=t(99276);n.ModalSurface=(0,r.styled)(c.Grid)`
  position: absolute;
  width: ${e=>{let{viewportWidth:n}=e;return n?`${n}vw`:"90%"}};
  max-width: ${e=>{let{maxWidth:n}=e;return n||"800px"}};
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: ${e=>{let{viewportHeight:n}=e;return n?`${n}vh`:"auto"}};
  overflow-y: auto;

  display: flex;
  padding: 32px;
  flex-flow: column nowrap;
  align-items: flex-start;

  border-radius: 16px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  background: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[0]}};

  /* Makes the modal scrollable when it's too big (leaves 4%/4% padding at top and bottom) */
  max-height: 92%;
`;const f=(0,r.styled)(c.Grid)`
  display: flex;
  width: 100%;
  gap: 32px;

  &.titled {
    margin-bottom: 32px;
  }
`,y=(0,r.styled)(d.Text)`
  flex: 1;
  margin: 0;
  ${e=>e.maxWidth?`max-width: ${e.maxWidth}px;`:""}
`.withComponent("h2"),g=(0,r.styled)("div")`
  width: 24px;
  height: 24px;
  cursor: pointer;
  align-left: flex-end;
`,h=(0,r.styled)(p.Button)`
  margin-bottom: 10px;
`,x=(0,r.styled)(c.Grid)`
  flex: 1;
`;n.Modal=e=>{let{children:t,collapsibleChildren:a,title:r,titleClassName:d,viewportHeight:c,viewportWidth:p,titleMaxWidth:T,maxWidth:b,modalSurfaceProps:v,...C}=e;const[k,S]=(0,l.useState)(!1),N=(0,l.useCallback)(()=>{S(e=>!e)},[]),A=(0,l.useCallback)(e=>{C.onClose?.(e,"closeButtonClick")},[C.onClose]),R=(0,o.default)(d,{titled:!!r});return(0,i.jsx)(s.default,{...C,children:(0,i.jsxs)(n.ModalSurface,{...v,viewportHeight:c,viewportWidth:p,maxWidth:b,container:!0,children:[(C.onClose||r)&&(0,i.jsxs)(f,{className:R,children:[(0,i.jsx)(y,{typescale:"title",size:"large",maxWidth:T,children:r}),C.onClose&&(0,i.jsx)(g,{onClick:A,children:(0,i.jsx)(m.CustomIcons.CloseDialog,{})})]}),(0,i.jsx)(x,{container:!0,direction:"column",size:12,children:t}),a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h,{variant:"outlined",onClick:N,children:k?"Show Details":"Hide Details"}),(0,i.jsx)(u.Collapse,{in:!k,children:a})]})]})})}},37791(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Modal=void 0;var a=t(83742);Object.defineProperty(n,"Modal",{enumerable:!0,get:function(){return a.Modal}})},68706(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MultiSelect=void 0;const a=t(65723),i=t(87283),l=t(22155),r=t(13260),o=t(99276),s=t(25069),d=t(67946),c=25;n.MultiSelect=e=>{const{error:n,label:t,value:u,options:p,loadMore:m,onChange:f,disabled:y,onCreate:g,newValue:h,isLoading:x,helperText:T,placeholder:b,handleClearOption:v,loadMoreSize:C=c,hasMore:k,...S}=e,[N,A]=(0,l.useState)(0),R=(0,l.useMemo)(()=>[...p].sort((e,n)=>{const t=e.label?.toLowerCase()||"",a=n.label?.toLowerCase()||"",i="create new";return t.startsWith(i)?-1:a.startsWith(i)?1:t.localeCompare(a)}),[p]),D=(0,l.useRef)(null),L=(0,r.useTheme)(),I=u?u.map(e=>"string"==typeof e?p.find(n=>n.value===e):e).filter(e=>void 0!==e):[],j=(0,l.useCallback)(e=>{const n=p.filter(n=>e.includes(n.value));n.map(e=>e.value).includes(h||"NEW")&&g?g():f(n)},[h,f,p]),w=(0,l.useCallback)(e=>{e.stopPropagation(),f([])},[f]),O=(0,l.useCallback)(e=>{const n=I?.filter(n=>n.value!==e)||[];f(n)},[f,I]),E=(0,l.useCallback)(e=>{e.stopPropagation()},[]),_=x&&(0,a.jsx)(d.LoaderWrapper,{children:(0,a.jsx)(s.Loader,{size:25})}),F=(0,l.useCallback)(e=>(0,a.jsxs)(d.BlockStyled,{children:[(0,a.jsx)(d.ChipWrapper,{children:e.map(e=>(0,a.jsx)(i.Chip,{clickable:!0,disabled:y,label:p.find(n=>n.value===e)?.label,onDelete:()=>O(e),deleteIcon:(0,a.jsx)(o.Icons.Clear,{onMouseDown:E,fontSize:"small"})},e))}),!!e.length&&!y&&(0,a.jsx)(o.Icons.Clear,{onMouseDown:E,onClick:w,fontSize:"small"})]}),[O,E,w,y]),P=(0,l.useMemo)(()=>R.map(e=>(0,a.jsxs)(d.MenuItemStyled,{value:e.value,children:[e.label,v&&"NEW"!==e.value&&(0,a.jsx)(o.Icons.Clear,{sx:{color:L.palette.grey[400],cursor:"pointer"},onClick:n=>{n.stopPropagation(),v(e.value)}})]},e.value)),[R,v,E,L.palette.grey]);return(0,a.jsxs)(d.StyledFormControl,{variant:"standard",disabled:y,children:[t&&(0,a.jsx)(d.StyledLabel,{children:t}),(0,a.jsxs)(d.StyledSelect,{...S,multiple:!0,ref:D,value:I.map(e=>{let{value:n}=e;return n}),onChange:e=>{let{target:{value:n}}=e;return j(n)},renderValue:F,MenuProps:{PaperProps:{onScroll:async e=>{const n=e.currentTarget;if(n){const e=n.scrollHeight-n.clientHeight;n.scrollTop>=e-1&&k&&(async()=>{const e=N+C;A(e),await(m?.(C,e))})()}},style:{maxHeight:224,width:250}}},children:[P,_]}),n&&(0,a.jsx)(d.StyledHelperText,{error:!!n,children:"boolean"==typeof n?T:n}),T&&!n&&(0,a.jsx)(d.StyledHelperText,{children:T})]})}},88887(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MultiSelect=void 0;var a=t(68706);Object.defineProperty(n,"MultiSelect",{enumerable:!0,get:function(){return a.MultiSelect}})},67946(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.MenuItemStyled=n.BlockStyled=n.ChipWrapper=n.LoaderWrapper=n.StyledSelect=n.StyledMenuImage=n.StyledHelperText=n.StyledLabel=n.StyledFormControl=void 0;const i=a(t(7617)),l=a(t(73474)),r=t(54790),o=t(60086),s=t(68272),d=t(87283),c=t(19033);n.StyledFormControl=(0,r.styled)(d.FormControl)`
  width: 100%;

  label.Mui-focused {
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }
`,n.StyledLabel=(0,r.styled)(d.InputLabel)`
  padding-left: 16px;
  top: 4px;

  &.${d.inputLabelClasses.shrink} {
    padding-left: 22px;
    top: 0;
  }
`,n.StyledHelperText=(0,r.styled)(d.FormHelperText)`
  padding-left: 16px;
  color: ${e=>e.error&&e.theme.sys.color.error};
`,n.StyledMenuImage=(0,r.styled)("img")`
  width: 100%;
  height: 54px;
`,n.StyledSelect=(0,r.styled)(d.Select)`
  display: inline-flex;
  width: 100%;
  cursor: pointer;
  height: auto;

  .${s.selectClasses.select} {
    margin-right: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 8px 24px 8px 16px;
  }

  ${e=>{let{theme:n}=e;return(0,c.textCss)(n,{typescale:"label",size:"large"})}}

  &:hover {
    &:before {
      border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.primary}};
      border-top: none;
    }
  }

  &:before {
    height: 9px;
    border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
    border-radius: 0px 0px 8px 8px;
    border-top: none;
  }

  &:after {
    height: 9px;
    border-radius: 0px 0px 8px 8px;
    border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    border-top: none;
  }

  svg {
    top: unset !important;
    right: 8px;
    cursor: 'pointer';

    path {
      fill: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    }
  }

  .${s.selectClasses.select} {
    padding-left: 16px;

    &:focus {
      background: transparent;
    }
  }
`,n.LoaderWrapper=(0,r.styled)("div")`
  display: flex;
  justify-content: center;
  width: 100%;
`,n.ChipWrapper=(0,r.styled)(i.default)`
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;

  .${o.chipClasses.root} {
    ${e=>{let{theme:n}=e;return(0,c.textCss)(n,{typescale:"label",size:"large"})}}
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
    height: 20px;
  }

  .${o.chipClasses.filled} {
    background-color: ${e=>{let{theme:n}=e;return(0,l.default)(n.sys.color.primary,.8)}};

    &:hover {
      background-color: ${e=>{let{theme:n}=e;return(0,l.default)(n.sys.color.primary,.6)}};
    }
  }

  .${o.chipClasses.deleteIcon} {
    path {
      fill: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}} !important;
    }
  }
`,n.BlockStyled=(0,r.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
`,n.MenuItemStyled=(0,r.styled)(d.MenuItem)`
  display: flex;
  align-items: center;
  justify-content: space-between;
`},92754(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.NavigationDrawer=void 0;const i=t(65723),l=t(54790),r=a(t(30395)),o=a(t(73474)),s=t(22155),d=t(97322),c=t(19033),u=a(t(8948)),p=(0,l.styled)("div")`
  gap: 2px;
  display: flex;
  flex-direction: column;
`,m=(0,l.styled)(c.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  padding: 32px 16px 4px;
  display: block;
  margin: 0;
`,f=(0,l.styled)("div")`
  & {
    ${e=>{let{theme:n}=e;return(0,c.textCss)(n,{typescale:"body",size:"medium"})}};
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    cursor: pointer;
    width: 100%;
    border-radius: 100px;
    padding: 6px 8px 6px 16px;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;

    a {
      display: block;
      width: 100%;
    }

    &:hover {
      background-color: ${e=>{let{theme:n}=e;return(0,o.default)(n.sys.color.onSurface,.08)}};
    }

    &.active {
      background-color: ${e=>{let{theme:n}=e;return(0,o.default)(n.sys.color.primaryContainer,.6)}};

      &:hover {
        background-color: ${e=>{let{theme:n}=e;return n.sys.color.primaryContainer}};
      }
    }

    &.active > a,
    &.active > p,
    &:hover > p,
    &:hover > a {
      color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    }
  }
`,y=(0,l.styled)(c.Text)`
  & {
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    margin: 0px;
    text-decoration: none;
  }
`,g=(0,l.styled)("img")`
  width: 24px;
  height: 24px;
  transform: rotate(0deg);
  transition: all 0.3s;

  &.rotateArrow {
    transform: rotate(-90deg);
    transition: all 0.3s;
  }
`,h=y.withComponent(d.Link);n.NavigationDrawer=e=>{const{title:n,items:t=[],itemStyle:a}=e,l=e=>{let{item:n,to:t,icon:l=null,onClick:r}=e;return t?(0,i.jsxs)(h,{preventScrollReset:!0,typescale:"title",size:"medium",to:t,onClick:r,style:a,children:[n,l]}):(0,i.jsxs)(y,{typescale:"title",size:"medium",onClick:r,style:a,children:[n,l]})},o=(e,n)=>{const[t,a]=(0,s.useState)(!0),o=(0,r.default)({rotateArrow:t});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(f,{onClick:()=>a(!t),children:[(0,i.jsx)(l,{item:e}),n&&(0,i.jsx)(g,{className:o,src:u.default})]}),t&&n.map(e=>(0,i.jsx)(f,{className:e.isActive?"active":"",children:(0,i.jsx)(l,{to:e.to,item:e.item,onClick:e.onClick})}))]})};return(0,i.jsxs)(p,{children:[n&&(0,i.jsx)(m,{typescale:"label",size:"small",children:n}),t.map((e,n)=>{let{item:t,to:a,isActive:r,icon:d,dropdownItems:c,onClick:u}=e;return(0,i.jsx)(s.Fragment,{children:c?o(t,c):(0,i.jsx)(f,{className:r?"active":"",children:(0,i.jsx)(l,{to:a,item:t,icon:d,onClick:u})})},`${n}`)})]})}},9861(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NavigationDrawer=void 0;var a=t(92754);Object.defineProperty(n,"NavigationDrawer",{enumerable:!0,get:function(){return a.NavigationDrawer}})},30384(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NavigationRail=void 0;const a=t(65723),i=t(92743),l=t(54790),r=t(47140),o=t(22155),s=t(97322),d=t(78865),c=t(35107),u=t(19033),p=(0,l.styled)("nav")`
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
`,m=(0,l.styled)(u.Text)`
  margin-bottom: -4px;
  white-space: pre-wrap;
  text-align: center;
`;n.NavigationRail=e=>{let{button:n,v2ShowItems:t=[]}=e;const l=(0,s.useLocation)(),u=(0,o.useMemo)(()=>(new Date).getFullYear(),[]);return(0,a.jsxs)(p,{children:[(0,a.jsxs)(r.Stack,{direction:"column",gap:"4px",children:[n.impact.show&&(0,a.jsx)(c.NavigationRailItem,{label:"Impact",icon:i.AutoGraphOutlined,href:"/v2/impact",className:l.pathname.includes("impact")?"active":void 0,end:!0}),n.data.show&&(0,a.jsx)(c.NavigationRailItem,{label:"Data",icon:i.DatasetOutlined,href:"/v2/data",badgeContent:n.data.badge}),n.reporting.show&&(0,a.jsx)(c.NavigationRailItem,{label:"Reporting",icon:i.BarChartOutlined,href:"/v2/reporting",badgeContent:n.reporting.badge}),n.howto.show&&(0,a.jsx)(c.NavigationRailItem,{label:"How to",icon:i.WorkspacePremiumOutlined,href:"/v2/engage",badgeContent:n.howto.badge}),n.learnworlds.show&&(0,a.jsx)(c.NavigationRailItem,{label:"Learn",icon:i.LocalLibraryOutlined,href:"/",onClick:n.learnworlds.onClick,badgeContent:n.learnworlds.badge}),n.govenance.show&&t.includes("governance")&&(0,a.jsx)(c.NavigationRailItem,{label:"Governance",icon:i.PolicyOutlined,href:"/v2/governance",badgeContent:n.govenance.badge}),n.docs.show&&t.includes("docs")&&(0,a.jsx)(c.NavigationRailItem,{label:"Docs",icon:i.DocumentScanner,href:"/v2/documents",badgeContent:n.docs.badge}),n.surveys.show&&(0,a.jsx)(c.NavigationRailItem,{label:"Surveys",icon:i.RuleOutlined,href:n.surveys.hasAccessToSurveysSent?"/v2/surveys/sent/overview":"/v2/surveys/received",className:l.pathname.includes("surveys")&&!l.pathname.includes("configuration")?"active":void 0,badgeContent:n.surveys.badge}),n.intelligence.show&&t.includes("intelligence")&&(0,a.jsx)(c.NavigationRailItem,{label:"RioBot",icon:e=>(0,a.jsx)(d.RioBot,{...e,isActive:l.pathname.includes("/v2/intelligence")}),href:"/v2/intelligence",badgeContent:n.intelligence.badge}),n.flows.show&&t.includes("flows")&&(0,a.jsx)(c.NavigationRailItem,{label:"Flows",icon:i.AirlineStopsOutlined,href:"/v2/flows",badgeContent:n.flows.badge}),n.tasks.show&&t.includes("tasks")&&(0,a.jsx)(c.NavigationRailItem,{label:"Tasks",icon:i.TaskOutlined,href:"/v2/tasks",badgeContent:n.tasks.badge}),n.configuration.show&&(0,a.jsx)(c.NavigationRailItem,{label:"Configuration",icon:i.SettingsOutlined,href:"/v2/configuration",badgeContent:n.configuration.badge}),(0,a.jsx)(c.NavigationRailItem,{label:"Support",icon:i.SupportAgentOutlined,href:"https://support.rio.ai/knowledge",external:!0,openInNewTab:!0})]}),(0,a.jsxs)(m,{typescale:"body",size:"small",children:["© ",u,"\n"," Rio AI Ltd"]})]})}},31027(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NavigationRail=void 0;var a=t(30384);Object.defineProperty(n,"NavigationRail",{enumerable:!0,get:function(){return a.NavigationRail}})},33366(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NavigationRailItem=n.NavItemLabel=void 0;const a=t(65723),i=t(22155),l=t(54790),r=t(97322),o=t(70370),s=t(47140);n.NavItemLabel=(0,l.styled)("p")`
  font-family: ${e=>{let{theme:n}=e;return n.sys.typescale.label.medium.family}};
  font-size: ${e=>{let{theme:n}=e;return n.sys.typescale.label.medium.size}}px;
  font-weight: ${e=>{let{theme:n}=e;return n.sys.typescale.label.medium.weight}};
  line-height: ${e=>{let{theme:n}=e;return n.sys.typescale.label.medium.lineHeight}}px;
  text-align: center;
  letter-spacing: 0.5px;
  margin: 0px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`;const d=(0,l.styled)("div")`
  display: flex;
  padding: 4px 16px;
  border-radius: 30px;
  justify-content: center;
  align-items: center;

  & svg {
    width: 24px;
    height: 24px;
  }
`,c=s.css`
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  text-decoration: none;
  height: 56px;
`,u=(0,l.styled)(r.NavLink)`
  ${c}
  &:hover div {
    background-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[90]}};
  }

  &.disabled:hover div {
    background-color: transparent;
  }

  &:active div {
    background-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[80]}};
  }

  &:not(.active) {
    & svg {
      color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    }
  }

  &.active div {
    background-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[95]}};
  }

  &.active {
    & svg {
      color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    }
  }

  &.active > p {
    font-weight: 600;
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }

  &.disabled {
    opacity: 0.5;
  }
`,p=(0,l.styled)("a")`
  ${c}

  &:hover div {
    background-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[90]}};
  }

  &:active div {
    background-color: ${e=>{let{theme:n}=e;return n.ref.palette.primary[80]}};
  }

  &.active {
    & svg {
      color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    }
  }

  &:not(.active) {
    & svg {
      color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    }
  }
`;n.NavigationRailItem=e=>{const{href:t,className:l,icon:r,label:s,badgeContent:c,showDot:m,id:f,name:y,external:g,openInNewTab:h,end:x,onClick:T,...b}=e,[v,C]=(0,i.useState)(!1);return g?(0,a.jsxs)(p,{className:l,href:t,id:f,target:h?"_blank":void 0,...b,children:[(0,a.jsx)(d,{children:(0,a.jsx)(o.Badge,{badgeContent:c,variant:m?"dot":"standard",children:(0,a.jsx)(r,{})})}),(0,a.jsx)(n.NavItemLabel,{children:s})]}):(0,a.jsxs)(u,{className:`${v?"disabled":""} ${l}`,to:t,id:f,end:x,onClick:T?async e=>{if(e.preventDefault(),!v)try{C(!0),await T()}finally{C(!1)}}:void 0,...b,children:[(0,a.jsx)(d,{children:(0,a.jsx)(o.Badge,{badgeContent:c,variant:m?"dot":"standard",children:(0,a.jsx)(r,{})})}),(0,a.jsx)(n.NavItemLabel,{children:s})]})}},35107(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NavigationRailItem=void 0;var a=t(33366);Object.defineProperty(n,"NavigationRailItem",{enumerable:!0,get:function(){return a.NavigationRailItem}})},28172(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.usePageErrorContext=n.ErrorContextProvider=n.ErrorContext=void 0;const a=t(65723),i=t(22155);n.ErrorContext=(0,i.createContext)({error:null,setError:e=>{}}),n.ErrorContextProvider=e=>{let{children:t}=e;const[l,r]=(0,i.useState)(null),o=(0,i.useMemo)(()=>({error:l,setError:r}),[l,r]);return(0,a.jsx)(n.ErrorContext.Provider,{value:o,children:t})},n.usePageErrorContext=()=>(0,i.useContext)(n.ErrorContext)},26682(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.usePageLoadingContext=n.LoadingContextProvider=n.LoadingContext=void 0;const a=t(65723),i=t(22155);n.LoadingContext=(0,i.createContext)({loading:!1,setLoading:e=>{}}),n.LoadingContextProvider=e=>{let{children:t}=e;const[l,r]=(0,i.useState)(!1),o=(0,i.useMemo)(()=>({loading:l,setLoading:r}),[l,r]);return(0,a.jsx)(n.LoadingContext.Provider,{value:o,children:t})},n.usePageLoadingContext=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,i.useContext)(n.LoadingContext);return(0,i.useEffect)(()=>{e.defaultValue&&t.setLoading(e.defaultValue)},[]),t}},45410(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Page=function(e){let{loading:n,error:t,title:i,children:o}=e;const{...y}=i,g=(0,l.usePageErrorContext)(),h=(0,r.usePageLoadingContext)();return(0,a.jsx)(u,{children:(0,a.jsxs)(p,{direction:"column",wrap:"nowrap",container:!0,children:[i&&(0,a.jsx)(d.Grid,{size:12,container:!0,children:(0,a.jsx)(s.PageTitle,{...y})}),(0,a.jsxs)(m,{direction:"column",size:12,children:[(n||h.loading)&&(0,a.jsx)(f,{}),t||g.error?(0,a.jsx)(c.LoadFailed,{error:t||g.error,title:"Something went wrong"}):o]})]})})};const a=t(65723),i=t(54790),l=t(28172),r=t(26682),o=t(65612),s=t(79853),d=t(64022),c=t(93861),u=(0,i.styled)("main")`
  display: flex;
  flex-flow: column nowrap;
  padding-left: 32px;
  padding-right: 32px;
  flex: 1;
`,p=(0,i.styled)(d.Grid)`
  flex: 1;
`,m=(0,i.styled)(d.Grid)`
  flex: 1;
  position: relative;
  padding-top: 24px;
`,f=(0,i.styled)(o.LinearProgress)`
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  transform: translateY(-150%);
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};

  .MuiLinearProgress-root {
    height: 1px;
  }

  .MuiLinearProgress-bar1 {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    height: 1px;
  }

  .MuiLinearProgress-bar2 {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    height: 1px;
  }
`},73281(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PageLoadingContextProvider=n.usePageLoadingContext=n.PageErrorContextProvider=n.usePageErrorContext=n.Page=void 0;var a=t(45410);Object.defineProperty(n,"Page",{enumerable:!0,get:function(){return a.Page}});var i=t(28172);Object.defineProperty(n,"usePageErrorContext",{enumerable:!0,get:function(){return i.usePageErrorContext}}),Object.defineProperty(n,"PageErrorContextProvider",{enumerable:!0,get:function(){return i.ErrorContextProvider}});var l=t(26682);Object.defineProperty(n,"usePageLoadingContext",{enumerable:!0,get:function(){return l.usePageLoadingContext}}),Object.defineProperty(n,"PageLoadingContextProvider",{enumerable:!0,get:function(){return l.LoadingContextProvider}})},19058(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.PageTitle=n.PageTitleHeader=void 0;const i=t(65723),l=t(22155),r=t(54790),o=a(t(35455)),s=t(97322),d=t(19033),c=(0,r.styled)("p")`
  ${e=>{let{theme:n}=e;return(0,d.textCss)(n,{typescale:"label",size:"medium"})}}
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  text-decoration: none;
  margin: 0px;

  &:hover {
    cursor: default;
  }
`;n.PageTitleHeader=(0,r.styled)("h1")`
  flex: 1;
  min-width: 300px;
  ${e=>{let{theme:n}=e;return(0,d.textCss)(n,{typescale:"display",size:"small"})}}
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  text-decoration: none;
  margin: 0px;
  &:hover {
    cursor: default;
  }
`;const u=(0,r.styled)(o.default)`
  & {
    height: 12px;
    width: 12px;
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }
`,p=(0,r.styled)("div")`
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: stretch;
`,m=(0,r.styled)("div")`
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
`,f=(0,r.styled)(c)`
  &:hover {
    cursor: pointer;
  }
`.withComponent(s.Link),y=(0,r.styled)("div")`
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
`,g=(0,r.styled)("div")`
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex: 1;
  width: 100%;
`,h=e=>{const{label:n,to:t}=e;return t?(0,i.jsx)(f,{to:t,children:n}):(0,i.jsx)(c,{children:n})};n.PageTitle=e=>{const{crumbs:t=[],content:a,actionButton:r}=e;return(0,i.jsx)(y,{children:(0,i.jsxs)(m,{children:[!!t.length&&(0,i.jsx)(p,{children:t.map((e,n)=>{let{label:a,to:r}=e;const o=n<t.length-1;return(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(h,{to:r,label:a}),o&&(0,i.jsx)(u,{})]},n)})}),(0,i.jsxs)(g,{children:[a&&("string"==typeof a?(0,i.jsx)(n.PageTitleHeader,{children:a}):a),r]})]})})}},79853(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(19058),n)},33002(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.LoadingTextTheme=void 0,n.PreLoader=function(e){let{themes:n=[]}=e;const t=(e=>{const n=s.default;return 0===e.length?n:n.filter(n=>e.includes(n.section))})(n).sort(()=>.5-Math.random()),[a,l]=(0,r.useState)(t[0]);return(0,r.useEffect)(()=>{const e=setInterval(()=>{l(e=>{const n=t.indexOf(e),a=n+1>=t.length?0:n+1;return t[a]})},6e3);return()=>clearInterval(e)},[]),(0,i.jsxs)(c,{children:[(0,i.jsx)(o.Loader,{}),(0,i.jsx)(o.Text,{typescale:"title",size:"large",textAlign:"center",children:a.content}),a.source&&(0,i.jsxs)(o.Text,{typescale:"title",size:"small",textAlign:"center",children:["- ",a.source]}),(0,i.jsx)(u,{})]})};const i=t(65723),l=t(54790),r=t(22155),o=t(58657),s=a(t(62651));var d;!function(e){e.ENGAGE="ENGAGE",e.REPORTING="REPORTING",e.GENERAL="GENERAL"}(d||(n.LoadingTextTheme=d={}));const c=(0,l.styled)("div")`
  display: flex;
  height: 100%;
  width: 100%;
  padding: '12px';
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
`,u=(0,l.styled)(o.LinearProgress)`
  width: 100%;
  transform: translateY(-150%);
  margin-top: 20px;
`},27008(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LoadingTextTheme=n.PreLoader=void 0;const a=t(33002);Object.defineProperty(n,"PreLoader",{enumerable:!0,get:function(){return a.PreLoader}}),Object.defineProperty(n,"LoadingTextTheme",{enumerable:!0,get:function(){return a.LoadingTextTheme}})},45594(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RadioButton=n.StyledRadioButton=void 0;const i=a(t(54727)),l=t(54790);n.StyledRadioButton=(0,l.styled)(i.default)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};

  &:hover {
    background-color: var(--m-3-state-layers-light-primary-opacity-008, rgba(103, 80, 164, 0.08));
  }

  &:focus,
  &:active {
    background-color: var(--m-3-state-layers-light-primary-opacity-012, rgba(103, 80, 164, 0.12));
  }

  &.Mui-checked {
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }

  &.Mui-disabled {
    background-color: none;
    opacity: 0.38;
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
  }
`,n.RadioButton=n.StyledRadioButton},4069(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.RadioButton=void 0;var a=t(45594);Object.defineProperty(n,"RadioButton",{enumerable:!0,get:function(){return a.RadioButton}})},67638(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.SegmentedButton=void 0;const i=t(65723),l=t(22155),r=a(t(73474)),o=t(54790),s=t(87283),d=(0,o.styled)(s.ToggleButtonGroup)`
  width: 100%;

  button {
    width: 100%;
  }

  &:hover: {
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
    background-color: ${e=>{let{theme:n}=e;return(0,r.default)(n.ref.palette.primary[95],.08)}};
  }

  & .${s.toggleButtonClasses.root} {
    width: 100%;
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    text-transform: unset;
    padding: 10px 12px;
    max-height: 40px;
  }

  & .${s.toggleButtonGroupClasses.grouped} {
    &:first-of-type {
      border-color: ${e=>{let{theme:n}=e;return(0,r.default)(n.sys.color.outline,.16)}};
      border-radius: 20px 0 0 20px;
    }

    &:last-of-type {
      border-color: ${e=>{let{theme:n}=e;return(0,r.default)(n.sys.color.outline,.16)}};
      border-radius: ${e=>e.length>1?"0 20px 20px 0":"20px"};
    }
  }

  & .${s.toggleButtonClasses.selected} {
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
    background-color: ${e=>{let{theme:n}=e;return(0,r.default)(n.ref.palette.primary[95],.16)}};
  }
`;n.SegmentedButton=e=>{let{values:n,onClick:t,toggleOff:a}=e;const[r,o]=(0,l.useState)("");(0,l.useEffect)(()=>{a&&o("")},[a]);const c=n.map((e,n)=>{let{offValue:t,onValue:a}=e;return(0,i.jsx)(s.ToggleButton,{selected:r===t,value:r!==t?t:a,children:r!==t?t:a},`${t}-${n}`)});return(0,i.jsx)(d,{length:n.length,exclusive:!0,value:r,onChange:(e,n)=>{o(n),t()},children:c})}},14166(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SegmentedButton=void 0;var a=t(67638);Object.defineProperty(n,"SegmentedButton",{enumerable:!0,get:function(){return a.SegmentedButton}})},22524(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Select=n.isCreateNewOption=void 0;const i=t(65723),l=t(87283),r=t(87283),o=t(54790),s=a(t(30395)),d=t(22155),c=t(25069),u=t(19033),p=a(t(35429)),m=t(15449),f=(0,o.styled)(l.FormControl)`
  width: 100%;

  label.Mui-focused {
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }
`,y=(0,o.styled)(l.InputLabel)`
  padding-left: 16px;
  top: 4px;

  &.${l.inputLabelClasses.shrink} {
    padding-left: 22px;
    top: 0;
  }
`,g=(0,o.styled)(l.FormHelperText)`
  padding-left: 16px;
  color: ${e=>e.error&&e.theme.sys.color.error};
`,h=(0,o.styled)("img")`
  width: 100%;
  height: 54px;
`,x=(0,o.styled)(l.MenuItem)`
  display: flex;
  flex-direction: row;
  align-items: center;
  ${e=>{let{theme:n}=e;return(0,u.textCss)(n,{typescale:"label",size:"large"})}}

  & img {
    display: none;
  }

  & span {
    flex: 1;
    overflow-x: hidden;
    text-overflow: ellipsis;
  }
`,T=(0,o.styled)(l.Select)`
  display: inline-flex;
  width: 100%;
  cursor: pointer;
  height: 40px;

  &:not(.Mui-disabled):hover::before {
    height: 9px;
    border-top: none;
    border-radius: 0px 0px 9px 9px;
    border-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    border-bottom: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }

  .${r.selectClasses.select} {
    margin-right: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 9px 24px 8px 16px;

    & img {
      flex: 0 0 106px;
      height: 40px;
      object-fit: contain;
    }

    & span {
      &.hasImage {
        display: none;
      }

      &.noImage {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }

  ${e=>{let{theme:n}=e;return(0,u.textCss)(n,{typescale:"label",size:"large"})}}

  &:hover {
    &:before {
      border-top: none;
    }
  }

  &:before {
    height: 9px;
    border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
    border-radius: 0px 0px 8px 8px;
    border-top: none;
  }

  &:after {
    height: 9px;
    border-radius: 0px 0px 8px 8px;
    border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    border-top: none;
  }

  svg {
    top: unset !important;
    right: 8px;

    path {
      fill: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    }
  }

  .${r.selectClasses.select} {
    padding-left: 16px;

    &:focus {
      background: transparent;
    }
  }
`,b=(0,o.styled)("div")`
  display: flex;
  justify-content: center;
  width: 100%;
`,v=(0,o.styled)(l.MenuItem)({display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:0,paddingBottom:0,"&.MuiMenuItem-root":{minHeight:"36px"}}),C=(0,o.styled)("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),k=(0,o.styled)(r.IconButton)(e=>{let{theme:n}=e;return{color:n.palette.grey[400]}});function S(e){let{option:t,onDeleteOption:a,key:l,close:r}=e;const{label:o,value:s,disabled:d}=t,c=a&&!(0,n.isCreateNewOption)(t)&&!0!==d&&"delete-only"!==d;return(0,i.jsxs)(v,{value:s,disabled:!0===d,children:[o,c&&(0,i.jsx)(k,{size:"small",onClick:e=>{e.stopPropagation(),a(t),r()},children:(0,i.jsx)(p.default,{fontSize:"small"})})]},l)}n.isCreateNewOption=e=>{let{label:n}=e;return(n||"").toLowerCase().startsWith("create new")},n.Select=e=>{const{value:t,options:a,onChange:l,disabled:r,hasImage:o,error:u,label:v,helperText:N,isLoading:A,placeholder:R,disableSorting:D,onDeleteOption:L,onCreateNew:I,onClear:j,sx:w,...O}=e,{close:E,..._}=(0,m.useToggleSelect)(),F=(0,d.useMemo)(()=>D?a:[...a].sort((e,t)=>{const a=e.label?.toLowerCase()||"",i=t.label?.toLowerCase()||"";return(0,n.isCreateNewOption)(e)?-1:(0,n.isCreateNewOption)(t)?1:a.localeCompare(i)}),[a,D]),P=e=>{const{value:t}=e.target,i=a.find(e=>e.value===t);i&&(I&&(0,n.isCreateNewOption)(i)?I():l(i))},B=e=>(0,i.jsxs)(C,{children:[a.find(n=>{let{value:t}=n;return t===e})?.label||"",j&&(0,i.jsx)(k,{size:"small",onMouseDown:e=>{e.stopPropagation()},onClick:e=>{j(),e.currentTarget.blur()},children:(0,i.jsx)(p.default,{fontSize:"small"})})]}),U=(0,d.useMemo)(()=>({"& .MuiSelect-select .notranslate::after":R&&!v?{content:`"${R}"`,opacity:.42,...w||{}}:w}),[R,w,v]),$=A&&(0,i.jsx)(b,{children:(0,i.jsx)(c.Loader,{})});return o?(0,i.jsxs)(T,{...O,value:t,onChange:P,variant:"standard",disabled:r,sx:U,children:[$,F.map((e,n)=>{const t=(0,s.default)({noImage:!e.imgUrl,hasImage:!!e.imgUrl});return(0,i.jsxs)(x,{value:e.value,children:[e.imgUrl&&(0,i.jsx)(h,{src:e.imgUrl,alt:"icon"}),(0,i.jsx)("span",{className:t,children:e.label})]},n)})]}):v||N?(0,i.jsxs)(f,{variant:"standard",disabled:r,children:[v&&(0,i.jsx)(y,{children:v}),(0,i.jsxs)(T,{...O,..._,value:t,onChange:P,label:v,sx:U,renderValue:B,children:[$,F.map((e,n)=>S({option:e,onDeleteOption:L,key:n,close:E}))]}),u&&(0,i.jsx)(g,{error:!!u,children:"boolean"==typeof u?N:u}),N&&!u&&(0,i.jsx)(g,{children:N})]}):(0,i.jsxs)(T,{...O,..._,value:t,disabled:r,onChange:P,variant:"standard",renderValue:B,sx:U,children:[$,F.map((e,n)=>S({option:e,onDeleteOption:L,key:n,close:E}))]})}},80918(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Select=void 0;var a=t(22524);Object.defineProperty(n,"Select",{enumerable:!0,get:function(){return a.Select}})},15449(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useToggleSelect=function(){const[e,n]=(0,a.useState)(!1);return{open:e,onClose:()=>n(!1),onOpen:()=>n(!0),close:()=>n(!1)}};const a=t(22155)},70738(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SetFilter=n.ALL_OPTIONS_SELECTED=void 0;const a=t(65723),i=t(22155),l=t(17051),r=t(54790),o=t(10879),s=t(19033),d=t(25069),c=t(56595),u=t(64325),p=t(26263),m=(0,r.styled)("div")`
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 55px;
`,f=(0,r.styled)(l.Popover.Root)`
  width: 100%;
`,y=(0,r.styled)("label")`
  font-size: 12px;
  font-weight: 500;
  font-height: 26px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
  margin-left: 16px;
  font-family: 'Plus Jakarta Sans' !important;
`,g=(0,r.styled)(l.Popover.Trigger)`
  position: relative;
  width: 100%;
  display: flex;
  gap: 6px;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 9px;
  padding-bottom: 8px;
  opacity: ${e=>{let{disabled:n}=e;return n?.5:1}};
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
  cursor: ${e=>{let{disabled:n}=e;return n?"not-allowed":"pointer"}};

  // Bottom line styles
  &::before {
    height: 9px;
    border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
    border-radius: 0px 0px 8px 8px;
    border-top: none;

    left: 0;
    bottom: 0;
    content: '';
    position: absolute;
    right: 0;
    -webkit-transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    pointer-events: none;
  }

  &:hover::before {
    border-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    border-top: 0px;
  }

  &::after {
    height: 9px;
    border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
    border-radius: 0px 0px 8px 8px;
    border-top: none;

    left: 0;
    bottom: 0;
    content: '';
    position: absolute;
    right: 0;
    -webkit-transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    pointer-events: none;
  }

  &:hover::after {
    border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    border-top: 0px;
    border-right: 0px;
    border-left: 0px;
  }
`,h=(0,r.styled)(l.Popover.Popup)`
  display: flex;
  flex-direction: column;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  border-radius: 8px;
  box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[5]}};
  overflow: auto;
  width: 350px;
  padding: 8px 16px;
  height: 400px;
`,x=(0,r.styled)(l.Popover.Positioner)`
  z-index: 9000;
`,T=(0,r.styled)("div")`
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  height: ${e=>{let{height:n}=e;return n||42}}px;
  ${e=>{let{translateY:n}=e;return void 0!==n?`transform: translateY(${n}px);`:""}}
  ${e=>{let{isAbsolute:n}=e;return n?"\n    top: 0;\n    left: 0;\n    position: absolute;\n  ":""}}
`,b=(0,r.styled)(o.TextField)`
  margin-bottom: 16px;
`,v=(0,r.styled)(s.Text)`
  width: 100%;
`,C=(0,r.styled)("div")`
  height: calc(400px - 42px - 8px - 8px - 16px - 42px);
  width: 100%;
  overflow: auto;
`,k=(0,r.styled)("div")`
  height: ${e=>{let{height:n}=e;return n}}px;
  width: 100%;
  position: relative;
`;n.ALL_OPTIONS_SELECTED=null,n.SetFilter=e=>{let{error:t,isLoading:r,label:o,selectableOptions:S,selectedOptions:N,setSelectedOptions:A,refetch:R,channel:D,noneSelectedLabel:L}=e;const I=void 0===N?n.ALL_OPTIONS_SELECTED:N,[j,w]=(0,i.useState)(0),O=(0,i.useCallback)(()=>w(e=>e+1),[]),E=(0,i.useMemo)(()=>S.sort((e,n)=>e.label.localeCompare(n.label)),[S]),_=(0,i.useRef)(null),F=(0,i.useRef)(null),{searchValue:P,setSearchValue:B,results:U,loading:$,error:M}=(0,u.useSearchWorker)(E,D),V=(0,p.useVirtualizer)({count:U.length,getScrollElement:()=>_.current,estimateSize:()=>42,overscan:0});(0,i.useLayoutEffect)(()=>{if(!F.current)return;const e=new MutationObserver(e=>{e.forEach(e=>{"attributes"===e.type&&"data-popup-open"===e.attributeName&&O()})});return e.observe(F.current,{attributes:!0,attributeFilter:["data-popup-open"]}),()=>e.disconnect()},[O]);const G=(0,i.useMemo)(()=>S.reduce((e,n)=>({...e,[n.value]:n.label}),{}),[S]);(0,i.useLayoutEffect)(()=>{if(I&&I.length>0&&S&&S.length>0){const e=I.filter(e=>!G[e]),n=e.reduce((e,n)=>({...e,[n]:!0}),{});e.length>0&&A(I.filter(e=>!n[e]))}},[G]);const z=(0,i.useMemo)(()=>I===n.ALL_OPTIONS_SELECTED,[I]),W=(0,i.useMemo)(()=>I&&0===I.length,[I]),q=(0,i.useMemo)(()=>r?"Loading":t?"Loading error":z?"All":W&&L?L:W?"All":I.map(e=>G[e]).sort((e,n)=>e.localeCompare(n)).join(", ").substring(0,70),[r,t,I,W,z,G,L]),J=r||Boolean(t);return(0,a.jsx)(m,{onClick:()=>{t&&!r&&R()},children:(0,a.jsxs)(f,{children:[(0,a.jsxs)(y,{children:[o,t?" - Click here to try again":""]}),(0,a.jsxs)(g,{disabled:J,ref:F,children:[r&&(0,a.jsx)("span",{children:(0,a.jsx)(d.Loader,{size:24})}),(0,a.jsx)(v,{oneLine:!0,size:"large",children:q})]}),(0,a.jsx)(l.Popover.Portal,{children:(0,a.jsx)(x,{align:"start",children:(0,a.jsxs)(h,{children:[(0,a.jsx)(b,{placeholder:"Search",value:P,onChange:e=>B(e.target.value),type:"search"}),$&&(0,a.jsx)(d.Loader,{size:24}),!$&&M&&(0,a.jsx)(s.Text,{textAlign:"center",children:"Error loading options"}),!$&&!M&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T,{children:(0,a.jsx)(c.Checkbox,{checked:z,indeterminate:!!I&&I.length>0,onChange:()=>{B(""),A(W?n.ALL_OPTIONS_SELECTED:[])},label:"Select all"})}),(0,a.jsx)(C,{ref:_,children:(0,a.jsxs)(k,{height:V.getTotalSize(),children:[0===U.length&&(0,a.jsx)(s.Text,{textAlign:"center",children:"No results found"}),V.getVirtualItems().map(e=>{const t=U[e.index];return(0,a.jsx)(T,{height:e.size,translateY:e.start,isAbsolute:!0,children:(0,a.jsx)(c.Checkbox,{checked:I===n.ALL_OPTIONS_SELECTED||I?.some(e=>e===t.value),onChange:e=>{if(e.target.checked){if(I){const e=[...I,t.value];A(e.length===S.length?n.ALL_OPTIONS_SELECTED:e)}}else A((I||S.map(e=>e.value)).filter(e=>e!==t.value))},label:t.label})},t.value)})]})})]})]})})})]})})}},35508(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ALL_OPTIONS_SELECTED=n.SetFilter=void 0;var a=t(70738);Object.defineProperty(n,"SetFilter",{enumerable:!0,get:function(){return a.SetFilter}}),Object.defineProperty(n,"ALL_OPTIONS_SELECTED",{enumerable:!0,get:function(){return a.ALL_OPTIONS_SELECTED}})},64325(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useSearchWorker=void 0;const a=t(22155),i=t(54717);n.useSearchWorker=(e,n)=>{const[t,l]=(0,a.useState)(""),[r]=(0,i.useDebounce)(t,400),[o,s]=(0,a.useState)([]),[d,c]=(0,a.useState)(!1),[u,p]=(0,a.useState)(null),m=(0,a.useRef)();return(0,a.useLayoutEffect)(()=>{const e=new Blob(["\nself.onmessage = (e) => {\n  const { searchValue, data, channel } = e.data;\n\n  try {\n    if (!searchValue) {\n      self.postMessage({ results: data, channel, error: null });\n      return;\n    }\n    const lowerCaseSearchValue = searchValue.toLowerCase().trim();\n    const results = data.filter((item) =>\n      item.label.toLowerCase().startsWith(lowerCaseSearchValue)\n    );\n    self.postMessage({ results, channel, error: null });\n  } catch (error) {\n    self.postMessage({\n      results: [],\n      channel,\n      error: typeof error.message === 'string' ? error.message : 'Something went wrong',\n    });\n  }\n};\n"],{type:"application/javascript"}),t=new Worker(URL.createObjectURL(e));return m.current=t,m.current.onmessage=e=>{const{results:t,error:a,channel:i}=e.data;if(i!==n)return p("Incorrect channel"),s([]),void c(!1);a?(p(a),s([])):(s(t),p(null)),c(!1)},()=>m.current?.terminate()},[]),(0,a.useLayoutEffect)(()=>{if(""===r.trim())return s(e),void c(!1);m.current&&(c(!0),p(null),m.current.postMessage({searchValue:r,data:e,channel:n}))},[r,e,n]),{searchValue:t,debouncedSearchValue:r,setSearchValue:l,results:o,loading:d,error:u}}},77897(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Slider=void 0;var i=t(15277);Object.defineProperty(n,"Slider",{enumerable:!0,get:function(){return a(i).default}})},38987(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Slider=void 0;var a=t(77897);Object.defineProperty(n,"Slider",{enumerable:!0,get:function(){return a.Slider}})},40896(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SlotTextWrapper=n.SlotCharacter=void 0;const a=t(54790);n.SlotCharacter=(0,a.styled)("span")`
  font-size: ${e=>{let{fontSize:n}=e;return n}};
`,n.SlotTextWrapper=(0,a.styled)("div")`
  width: 100%;
  height: 100%;
  align-items: center;
  display: inline-flex;
  justify-content: center;
`},91394(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Surface=void 0;const a=t(54790);n.Surface=(0,a.styled)("div")`
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
`},1865(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Surface=void 0;var a=t(91394);Object.defineProperty(n,"Surface",{enumerable:!0,get:function(){return a.Surface}})},94776(e,n,t){"use strict";var a,i=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),l=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),r=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},a(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=a(e),r=0;r<t.length;r++)"default"!==t[r]&&i(n,e,t[r]);return l(n,e),n}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Tabs=void 0;const s=t(65723),d=r(t(22155)),c=o(t(12243)),u=t(97322),p=o(t(73474)),m=o(t(90268)),f=t(54790),y=t(90268),g=t(64022),h=t(79006),x=(0,f.styled)("div")`
  padding-top: 32px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,T=(0,f.styled)(m.default)`
  .${y.tabsClasses.flexContainer} {
    display: flex;
    gap: 16px;
  }

  .${y.tabsClasses.indicator} {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
    border-radius: 100px;
  }

  button,
  a {
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    font-weight: ${e=>{let{theme:n}=e;return n.sys.typescale.label.large.weight}};
    padding: 14px 16px;
    min-width: auto;
    text-transform: unset;

    &:hover {
      background-color: ${e=>{let{theme:n}=e;return(0,p.default)(n.sys.color.onSurface,.08)}};
    }
  }

  && .Mui-selected {
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};

    &:hover {
      background-color: ${e=>{let{theme:n}=e;return(0,p.default)(n.sys.color.primary,.08)}};
    }
  }
`,b=e=>{const{children:n,value:t,index:a,...i}=e;return(0,s.jsx)(x,{role:"tabpanel",hidden:t!==a,id:`simple-tabpanel-${a}`,"aria-labelledby":`simple-tab-${a}`,...i,children:t===a&&(0,s.jsx)(g.Grid,{size:12,container:!0,children:n})})};n.Tabs=e=>{let{tabs:n,currentTab:t,handlerChangeTab:a,scrollable:i}=e;const[l,r]=d.default.useState(t??0),o=(0,d.useCallback)((e,n)=>{r(n),a&&a(n)},[]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.Grid,{container:!0,size:12,children:(0,s.jsx)(T,{variant:i?"scrollable":void 0,scrollButtons:i?"auto":void 0,value:l,onChange:o,"aria-label":"basic tabs example",children:n.map((e,n)=>e.to?(0,s.jsx)(c.default,{component:u.Link,disableRipple:!1,to:e.to,label:e.label,...(0,h.a11yProps)(n)},`simple-tab-${n}`):(0,s.jsx)(c.default,{disableRipple:!1,label:e.label,...(0,h.a11yProps)(n)},`simple-tab-${n}`))})}),(0,s.jsx)(g.Grid,{size:12,children:n.map((e,n)=>(0,s.jsx)(b,{value:l??0,index:n,children:e.children},`tab-panel-${n}`))})]})}},37634(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Tabs=void 0;var a=t(94776);Object.defineProperty(n,"Tabs",{enumerable:!0,get:function(){return a.Tabs}})},79006(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.a11yProps=n.tabsLink=n.tabs=void 0,n.tabs=[{label:"Item One",children:"Item One Panel"},{label:"Item Two",children:"Item Two Panel"},{label:"Item Three",children:"Item Three Panel"}],n.tabsLink=n.tabs.map((e,n)=>({...e,to:`./tab${n}`})),n.a11yProps=e=>({id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`})},37954(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Text=n.textCss=void 0;const a=t(54790);n.textCss=(e,n)=>{let{typescale:t="body",size:a="medium",fontStyle:i="normal",oneLine:l,weight:r,textAlign:o,color:s}=n;return`\n  font-style: ${i};\n  font-size: ${e.sys.typescale[t]?.[a]?.size}px;\n  font-weight: ${r||e.sys.typescale[t]?.[a]?.weight};\n  line-height: ${e.sys.typescale[t]?.[a]?.lineHeight}px;\n  letter-spacing: ${e.sys.typescale[t]?.[a]?.tracking}px;\n  font-family: ${e.sys.typescale[t]?.[a]?.family};\n  text-align: ${o||"left"};\n  color: ${s||e.sys.color.onSurface};\n  margin: 0;\n  ${l?"\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n  ":""}\n`};const i=["typescale","size","fontStyle","oneLine"];n.Text=(0,a.styled)("p",{shouldForwardProp:e=>!i.includes(e)})`
  ${e=>{let{theme:t,...a}=e;return(0,n.textCss)(t,a)}}
`},19033(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.textCss=n.Text=void 0;var a=t(37954);Object.defineProperty(n,"Text",{enumerable:!0,get:function(){return a.Text}}),Object.defineProperty(n,"textCss",{enumerable:!0,get:function(){return a.textCss}})},18536(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.TextArea=void 0;const i=t(65723),l=t(22155),r=t(54790),o=a(t(66929)),s=t(74554),d=t(19033),c=(0,r.styled)(o.default)`
  display: inline-flex;
  width: 100%;
  margin-top: 0;

  ${e=>{let{theme:n}=e;return(0,d.textCss)(n,{typescale:"label",size:"large"})}}

  label.${s.inputClasses.focused} {
    color: ${e=>e.error?e.theme.sys.color.error:e.theme.sys.color.primary};
  }

  .MuiOutlinedInput-root {
    border-radius: 16px;
  }

  .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
    border-color: ${e=>e.error?e.theme.sys.color.error:e.theme.sys.color.primary};
  }
`;n.TextArea=e=>{const{rows:n,onChange:t,error:a,onKeyPress:r,value:o,type:s,shrink:d,...u}=e,p=(0,l.useCallback)(e=>{t&&t(e)},[t]);return(0,i.jsx)(c,{...u,multiline:!0,variant:"outlined",InputLabelProps:{shrink:d},error:a,value:o,onChange:p,rows:n||4})}},86488(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TextArea=void 0;var a=t(18536);Object.defineProperty(n,"TextArea",{enumerable:!0,get:function(){return a.TextArea}})},94878(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.TextField=void 0;const i=t(65723),l=t(74554),r=t(54790),o=t(14809),s=t(65358),d=a(t(66929)),c=t(22155),u=t(99276),p=t(19033),m=a(t(94282)),f=a(t(91171)),y=(0,r.styled)("div")`
  position: relative;
`,g=(0,r.styled)("img")`
  position: absolute;
  top: 45%;
  right: 12px;
  transform: translateY(-55%);
  cursor: pointer;
`,h=(0,r.styled)(u.Icons.Search)`
  position: absolute;
  top: 45%;
  left: 12px;
  transform: translateY(-45%);

  path {
    fill: ${e=>e.theme.sys.color.primary};
  }
`,x=(0,r.styled)(d.default,{shouldForwardProp:e=>"isIcon"!==e})`
  display: inline-flex;
  width: 100%;
  margin-top: 0;

  ${e=>{let{theme:n}=e;return(0,p.textCss)(n,{typescale:"label",size:"large"})}}

  p.${l.inputClasses.focused} {
    color: ${e=>e.error&&e.theme.sys.color.error};
  }

  label.${l.inputClasses.focused} {
    color: ${e=>e.error?e.theme.sys.color.error:e.theme.sys.color.primary};
  }

  .${s.inputLabelClasses.root} {
    padding-left: ${e=>e.isSearch?"40px":"16px"};
    top: 4px;
  }

  .${s.inputLabelClasses.shrink} {
    padding-left: 22px;
    top: 0px;
  }

  .${o.formHelperTextClasses.root} {
    padding-left: 16px;
  }

  .${l.inputClasses.input} {
    padding: ${e=>e.isIcon?"9px 40px 8px 16px":"9px 16px 8px 16px"};
    padding-left: ${e=>e.isSearch?"40px":"16px"};
  }
  && .MuiInput-root:hover::before {
    border-color: ${e=>e.theme.sys.color.primary};
  }

  .${l.inputClasses.root} {
    &:hover {
      &:before {
        border-top: none;
      }
    }

    &:before {
      height: 9px;
      border: 1px solid
        ${e=>e.error?e.theme.sys.color.error:e.theme.sys.color.outlineVariant};
      border-radius: 0px 0px 8px 8px;
      border-top: none;
    }

    &:after {
      height: 9px;
      border-radius: 0px 0px 8px 8px;
      border: 2px solid ${e=>e.error?e.theme.sys.color.error:e.theme.sys.color.primary};
      border-top: none;
    }
  }

  & input:-webkit-autofill,
  & input:-webkit-autofill:hover,
  & input:-webkit-autofill:focus,
  & input:-webkit-autofill:active {
    border-radius: 0px 0px 8px 8px;
  }
`;n.TextField=e=>{const{shrink:n,onChange:t,onClear:a,fullWidth:l,onKeyPress:r,value:o,icon:s,error:d,className:u,type:p,defaultValue:T,...b}=e,v=(0,c.useCallback)(()=>{a&&a()},[a]),C=(0,c.useCallback)(e=>{t&&t(e)},[t]);return(0,i.jsxs)(y,{className:u,children:[(0,i.jsx)(x,{fullWidth:l,...b,slotProps:{inputLabel:{shrink:n}},error:d,isSearch:"search"===p,onChange:C,onKeyPress:r,isIcon:d||s||a&&""!==o,defaultValue:T,value:o,variant:"standard",type:p}),"search"===p&&(0,i.jsx)(h,{}),a&&""!==o&&(0,i.jsx)(g,{src:m.default,onClick:v}),d&&(0,i.jsx)(g,{src:f.default})]})}},10879(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TextField=void 0;var a=t(94878);Object.defineProperty(n,"TextField",{enumerable:!0,get:function(){return a.TextField}})},74821(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.TimePicker=void 0;const i=t(65723),l=t(22155),r=t(54790),o=t(41784),s=t(74554),d=t(32099),c=t(65358),u=t(99022),p=t(5267),m=t(2181),f=t(19033),y=a(t(18814)),g=(0,r.styled)(m.MobileTimePicker)`
  .${s.inputClasses.input} {
    padding: 16px;
  }

  .${c.inputLabelClasses.root} {
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }

  .${s.inputClasses.input} ~ .${u.outlinedInputClasses.notchedOutline} {
    border-color: ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  }

  .${s.inputClasses.focused} .${u.outlinedInputClasses.notchedOutline} {
    border-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }

  .${u.outlinedInputClasses.root}:hover .${u.outlinedInputClasses.notchedOutline} {
    border-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }

  .${u.outlinedInputClasses.notchedOutline} {
    top: 32px;
    bottom: -9px;
    margin-bottom: 9px;
    border-top: none;
    z-index: 0;
  }

  &:after {
    position: absolute;
    content: '';
    left: 0;
    z-index: 100;
    bottom: 8px;
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.onPrimary}};
    width: 100%;
    height: 10px;
  }
`,h=(0,r.styled)(f.Text)`
  color: ${e=>e.theme.sys.color.error};
`;n.TimePicker=e=>{let{label:n,error:t,value:a,onChange:r,disabled:s,name:c,...u}=e;const m=(0,l.useCallback)(e=>{r(e)},[r]),f=(0,l.useMemo)(()=>a?(0,y.default)(new Date(a)):null,[a]);return(0,i.jsx)(p.LocalizationProvider,{dateAdapter:o.AdapterDayjs,children:(0,i.jsxs)(d.DemoContainer,{components:["MobileDateTimePicker"],children:[(0,i.jsx)(g,{...u,value:f,label:n,defaultValue:f,onChange:e=>m(e?e.toDate():null),openTo:"hours",orientation:"landscape"}),!!t&&(0,i.jsx)(h,{typescale:"body",size:"medium",children:t})]})})}},88162(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TimePicker=void 0;var a=t(74821);Object.defineProperty(n,"TimePicker",{enumerable:!0,get:function(){return a.TimePicker}})},71181(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Toast=void 0;const i=t(65723),l=t(54790),r=a(t(87743)),o=t(7465),s=t(19033),d=t(35401),c=a(t(22155)),u=(0,l.styled)("div")`
  border-radius: 16px;
  background-color: ${e=>{switch(e.color){case"danger":return e.theme.sys.color.error;case"warning":return e.theme.customColors.warning.color;default:return e.theme.extendedColors.environmental.color}}};
  padding: 12px 16px;
  min-width: 282px;
`,p=(0,l.styled)("div")`
  display: flex;
  justify-content: space-between;
  align-items: top;
  gap: 12px;
  margin-bottom: 12px;
`,m=(0,l.styled)(r.default)`
  cursor: pointer;
  margin-top: -2px;
  margin-right: -4px;
  color: ${e=>e.isWhite?e.theme.sys.color.onError:e.theme.ref.palette.neutral[10]};
`,f=(0,l.styled)(s.Text)`
  margin: 0;
  color: ${e=>e.isWhite?e.theme.sys.color.onError:e.theme.ref.palette.neutral[10]};
  max-width: 400px;
`;n.Toast=c.default.forwardRef((e,n)=>{let{id:t,style:a,color:l,message:r}=e;const{closeSnackbar:s}=(0,d.useSnackbar)(),c="danger"===l;return(0,i.jsxs)(u,{color:l,ref:n,style:a,children:[(0,i.jsxs)(p,{children:[(0,i.jsx)(f,{typescale:"body",size:"medium",isWhite:c,children:r}),(0,i.jsx)(m,{onClick:()=>{s(t)},isWhite:c})]}),(0,i.jsx)(o.DurationProgress,{duration:5e3,color:c?"white":"black"})]})})},91319(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ToastProvider=void 0;const a=t(65723),i=t(35401),l=t(71181),r=(0,t(79533).makeStyles)()(()=>({containerRoot:{zIndex:2147483650}}));n.ToastProvider=e=>{let{children:n}=e;const{classes:t}=r();return(0,a.jsx)(i.SnackbarProvider,{Components:{rioToastV2:l.Toast},autoHideDuration:null,preventDuplicate:!0,anchorOrigin:{vertical:"top",horizontal:"right"},maxSnack:5,domRoot:document.body,classes:{containerRoot:t.containerRoot},children:n})}},21445(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useToast=n.ToastProvider=n.Toast=void 0;var a=t(71181);Object.defineProperty(n,"Toast",{enumerable:!0,get:function(){return a.Toast}});var i=t(91319);Object.defineProperty(n,"ToastProvider",{enumerable:!0,get:function(){return i.ToastProvider}});var l=t(93571);Object.defineProperty(n,"useToast",{enumerable:!0,get:function(){return l.useToast}})},93571(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useToast=void 0;const a=t(35401),i=t(22155);n.useToast=()=>{const{enqueueSnackbar:e,closeSnackbar:n}=(0,a.useSnackbar)(),t=(0,i.useCallback)((t,a)=>{const i=e(t,{variant:"rioToastV2",color:a});i&&setTimeout(()=>{n(i)},5e3)},[]);return(0,i.useMemo)(()=>({showToast:t}),[t])}},58657(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),n.LoadingTextTheme=n.PreLoader=n.LoadFailed=n.Dialog=n.DrawerSummary=n.DrawerDetails=n.Drawer=n.NavigationRailItem=n.NavigationDrawer=n.SegmentedButton=n.NavigationRail=n.ImageEditor=n.Slider=n.CircularProgress=n.LinearProgress=n.MultiSelect=n.RadioButton=n.DrawerLink=n.DatePicker=n.TimePicker=n.IconButton=n.Loader=n.PageTitleHeader=n.PageTitle=n.TextArea=n.TextField=n.Checkbox=n.Surface=n.Footer=n.Header=n.Select=n.FileUploadButton=n.Button=n.Badge=n.Text=n.Logo=n.Tabs=n.Grid=n.DraggableCore=n.Draggable=void 0,i(t(97878),n);var l=t(25065);Object.defineProperty(n,"Draggable",{enumerable:!0,get:function(){return l.Draggable}}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.DraggableCore}}),i(t(3154),n),i(t(96706),n),i(t(46728),n),i(t(98307),n),i(t(36187),n),i(t(73281),n),i(t(37791),n),i(t(21445),n),i(t(7465),n),i(t(84704),n),i(t(99276),n);var r=t(64022);Object.defineProperty(n,"Grid",{enumerable:!0,get:function(){return r.Grid}});var o=t(37634);Object.defineProperty(n,"Tabs",{enumerable:!0,get:function(){return o.Tabs}});var s=t(47781);Object.defineProperty(n,"Logo",{enumerable:!0,get:function(){return s.Logo}});var d=t(19033);Object.defineProperty(n,"Text",{enumerable:!0,get:function(){return d.Text}});var c=t(12513);Object.defineProperty(n,"Badge",{enumerable:!0,get:function(){return c.Badge}});var u=t(71982);Object.defineProperty(n,"Button",{enumerable:!0,get:function(){return u.Button}}),Object.defineProperty(n,"FileUploadButton",{enumerable:!0,get:function(){return u.FileUploadButton}});var p=t(80918);Object.defineProperty(n,"Select",{enumerable:!0,get:function(){return p.Select}});var m=t(83199);Object.defineProperty(n,"Header",{enumerable:!0,get:function(){return m.Header}});var f=t(64013);Object.defineProperty(n,"Footer",{enumerable:!0,get:function(){return f.Footer}});var y=t(1865);Object.defineProperty(n,"Surface",{enumerable:!0,get:function(){return y.Surface}});var g=t(56595);Object.defineProperty(n,"Checkbox",{enumerable:!0,get:function(){return g.Checkbox}});var h=t(10879);Object.defineProperty(n,"TextField",{enumerable:!0,get:function(){return h.TextField}});var x=t(86488);Object.defineProperty(n,"TextArea",{enumerable:!0,get:function(){return x.TextArea}}),i(t(57998),n);var T=t(79853);Object.defineProperty(n,"PageTitle",{enumerable:!0,get:function(){return T.PageTitle}}),Object.defineProperty(n,"PageTitleHeader",{enumerable:!0,get:function(){return T.PageTitleHeader}});var b=t(25069);Object.defineProperty(n,"Loader",{enumerable:!0,get:function(){return b.Loader}});var v=t(34859);Object.defineProperty(n,"IconButton",{enumerable:!0,get:function(){return v.IconButton}});var C=t(88162);Object.defineProperty(n,"TimePicker",{enumerable:!0,get:function(){return C.TimePicker}});var k=t(68149);Object.defineProperty(n,"DatePicker",{enumerable:!0,get:function(){return k.DatePicker}});var S=t(56155);Object.defineProperty(n,"DrawerLink",{enumerable:!0,get:function(){return S.DrawerLink}});var N=t(4069);Object.defineProperty(n,"RadioButton",{enumerable:!0,get:function(){return N.RadioButton}});var A=t(88887);Object.defineProperty(n,"MultiSelect",{enumerable:!0,get:function(){return A.MultiSelect}});var R=t(65612);Object.defineProperty(n,"LinearProgress",{enumerable:!0,get:function(){return R.LinearProgress}});var D=t(27176);Object.defineProperty(n,"CircularProgress",{enumerable:!0,get:function(){return D.CircularProgress}});var L=t(38987);Object.defineProperty(n,"Slider",{enumerable:!0,get:function(){return L.Slider}});var I=t(14342);Object.defineProperty(n,"ImageEditor",{enumerable:!0,get:function(){return I.ImageEditor}});var j=t(31027);Object.defineProperty(n,"NavigationRail",{enumerable:!0,get:function(){return j.NavigationRail}});var w=t(14166);Object.defineProperty(n,"SegmentedButton",{enumerable:!0,get:function(){return w.SegmentedButton}});var O=t(9861);Object.defineProperty(n,"NavigationDrawer",{enumerable:!0,get:function(){return O.NavigationDrawer}});var E=t(35107);Object.defineProperty(n,"NavigationRailItem",{enumerable:!0,get:function(){return E.NavigationRailItem}});var _=t(40591);Object.defineProperty(n,"Drawer",{enumerable:!0,get:function(){return _.Drawer}}),Object.defineProperty(n,"DrawerDetails",{enumerable:!0,get:function(){return _.DrawerDetails}}),Object.defineProperty(n,"DrawerSummary",{enumerable:!0,get:function(){return _.DrawerSummary}});var F=t(92542);Object.defineProperty(n,"Dialog",{enumerable:!0,get:function(){return F.Dialog}});var P=t(93861);Object.defineProperty(n,"LoadFailed",{enumerable:!0,get:function(){return P.LoadFailed}});var B=t(27008);Object.defineProperty(n,"PreLoader",{enumerable:!0,get:function(){return B.PreLoader}}),Object.defineProperty(n,"LoadingTextTheme",{enumerable:!0,get:function(){return B.LoadingTextTheme}}),i(t(35508),n)},15965(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AG_GRID_PARAMS_V2=n.font=void 0,n.font="Plus Jakarta Sans",n.AG_GRID_PARAMS_V2="AG_GRID_PARAMS_V2"},18647(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(76184),n),i(t(19048),n)},19048(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useFindColorByToken=function(){const e=(0,a.useTheme)();return(0,i.useCallback)(n=>{if(n)return n in e.customColors?e.customColors[n].color:n in e.extendedColors?e.extendedColors[n].color:n in e.semanticColors?e.semanticColors[n].color:n in e.sys.color?e.sys.color[n]:void 0},[e])};const a=t(54790),i=t(22155)},76184(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useLocalStorage=void 0;const a=t(22155);n.useLocalStorage=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const t=()=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):n}catch(t){return console.error("Error reading localStorage key:",e),n}},[i,l]=(0,a.useState)(()=>t()),r=(0,a.useCallback)(n=>{try{l(n),localStorage.setItem(e,JSON.stringify(n))}catch(n){console.error("Error setting localStorage key:",e)}},[]);return(0,a.useMemo)(()=>({setValue:r,storedValue:i,getValueFromStorage:t}),[i,r])}},27592(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),n.AG_GRID_PARAMS_V2=n.useLocalStorage=n.opacifyHex=n.CssBaseline=void 0,i(t(58657),n),i(t(13260),n),i(t(8950),n);var l=t(49476);Object.defineProperty(n,"CssBaseline",{enumerable:!0,get:function(){return l.CssBaseline}});var r=t(93930);Object.defineProperty(n,"opacifyHex",{enumerable:!0,get:function(){return r.opacifyHex}});var o=t(18647);Object.defineProperty(n,"useLocalStorage",{enumerable:!0,get:function(){return o.useLocalStorage}});var s=t(15965);Object.defineProperty(n,"AG_GRID_PARAMS_V2",{enumerable:!0,get:function(){return s.AG_GRID_PARAMS_V2}})},8244(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.themeTokens=void 0,n.themeTokens={seed:"#001AFF",description:"TYPE: CUSTOM",coreColors:{primary:"#001AFF"},schemes:{light:{primary:"#2E3EFF",onPrimary:"#FFFFFF",primaryContainer:"#E0E0FF",onPrimaryContainer:"#000569",primaryFixed:"#E0E0FF",onPrimaryFixed:"#000569",primaryFixedDim:"#BEC2FF",onPrimaryFixedVariant:"#0016E5",secondary:"#5C5D72",onSecondary:"#FFFFFF",secondaryContainer:"#E1E0F9",onSecondaryContainer:"#191A2C",secondaryFixed:"#E1E0F9",onSecondaryFixed:"#191A2C",secondaryFixedDim:"#C5C4DD",onSecondaryFixedVariant:"#444559",tertiary:"#78536B",onTertiary:"#FFFFFF",tertiaryContainer:"#FFD7EE",onTertiaryContainer:"#2E1126",tertiaryFixed:"#FFD7EE",onTertiaryFixed:"#2E1126",tertiaryFixedDim:"#E7B9D5",onTertiaryFixedVariant:"#5E3C53",error:"#BA1A1A",onError:"#FFFFFF",errorContainer:"#FFDAD6",onErrorContainer:"#410002",outline:"#777680",background:"#FFFBFF",onBackground:"#1B1B1F",surface:"#FFFFFF",onSurface:"#1B1B1F",surfaceVariant:"#E3E1EC",onSurfaceVariant:"#46464F",inverseSurface:"#303034",inverseOnSurface:"#F3F0F4",inversePrimary:"#BEC2FF",shadow:"#000000",surfaceTint:"#2E3EFF",outlineVariant:"#C7C5D0",scrim:"#000000",surfaceContainerHighest:"#FFFFFF",surfaceContainerHigh:"#FFFFFF",surfaceContainer:"#FFFFFF",surfaceContainerLow:"#FFFFFF",surfaceContainerLowest:"#FFFFFF",surfaceBright:"#FFFFFF",surfaceDim:"#FFFFFF"},dark:{primary:"#BEC2FF",onPrimary:"#000DA4",primaryContainer:"#0016E5",onPrimaryContainer:"#E0E0FF",primaryFixed:"#E0E0FF",onPrimaryFixed:"#000569",primaryFixedDim:"#BEC2FF",onPrimaryFixedVariant:"#0016E5",secondary:"#C5C4DD",onSecondary:"#2E2F42",secondaryContainer:"#444559",onSecondaryContainer:"#E1E0F9",secondaryFixed:"#E1E0F9",onSecondaryFixed:"#191A2C",secondaryFixedDim:"#C5C4DD",onSecondaryFixedVariant:"#444559",tertiary:"#E7B9D5",onTertiary:"#45263C",tertiaryContainer:"#5E3C53",onTertiaryContainer:"#FFD7EE",tertiaryFixed:"#FFD7EE",onTertiaryFixed:"#2E1126",tertiaryFixedDim:"#E7B9D5",onTertiaryFixedVariant:"#5E3C53",error:"#FFB4AB",onError:"#690005",errorContainer:"#93000A",onErrorContainer:"#FFDAD6",outline:"#91909A",background:"#1B1B1F",onBackground:"#E4E1E6",surface:"#131316",onSurface:"#C8C5CA",surfaceVariant:"#46464F",onSurfaceVariant:"#C7C5D0",inverseSurface:"#E4E1E6",inverseOnSurface:"#1B1B1F",inversePrimary:"#2E3EFF",shadow:"#000000",surfaceTint:"#BEC2FF",outlineVariant:"#46464F",scrim:"#000000",surfaceContainerHighest:"#131316",surfaceContainerHigh:"#131316",surfaceContainer:"#131316",surfaceContainerLow:"#131316",surfaceContainerLowest:"#131316",surfaceBright:"#131316",surfaceDim:"#131316"}},palettes:{primary:{0:"#000000",5:"#00034A",10:"#000569",dark:"#000569",20:"#000DA4",25:"#0012C4",30:"#0016E5",35:"#0E23FF",40:"#2E3EFF",50:"#5664FF",main:"#2E3EFF",60:"#7A85FF",70:"#9CA4FF",80:"#BEC2FF",light:"#E0E0FF",90:"#E0E0FF",95:"#F1EFFF",98:"#FBF8FF",99:"#FFFBFF",100:"#FFFFFF",contrastText:"#FFFFFF"},secondary:{0:"#000000",5:"#0E0F21",10:"#191A2C",dark:"#191A2C",20:"#2E2F42",25:"#393A4D",30:"#444559",35:"#505165",40:"#5C5D72",50:"#75758B",main:"#5C5D72",60:"#8E8FA6",70:"#A9A9C1",80:"#C5C4DD",light:"#E1E0F9",90:"#E1E0F9",95:"#F1EFFF",98:"#FBF8FF",99:"#FFFBFF",100:"#FFFFFF"},tertiary:{0:"#000000",5:"#21071B",10:"#2E1126",dark:"#2E1126",20:"#45263C",25:"#523147",30:"#5E3C53",35:"#6B475F",40:"#78536B",50:"#926B84",main:"#78536B",60:"#AE849F",70:"#CA9FBA",80:"#E7B9D5",light:"#FFD7EE",90:"#FFD7EE",95:"#FFECF5",98:"#FFF8F9",99:"#FFFBFF",100:"#FFFFFF"},error:{0:"#000000",5:"#2D0001",10:"#410002",dark:"#410002",20:"#690005",25:"#7E0007",30:"#93000A",35:"#A80710",40:"#BA1A1A",main:"#BA1A1A",50:"#DE3730",60:"#FF5449",70:"#FF897D",80:"#FFB4AB",90:"#FFDAD6",light:"#FFDAD6",95:"#FFEDEA",98:"#FFF8F7",99:"#FFFBFF",100:"#FFFFFF"},warning:{0:"#000000",10:"#221B04",dark:"#221B04",20:"#3A2F09",30:"#534612",40:"#6E5D1A",50:"#8C7524",60:"#A88E31",70:"#C5A948",main:"#C5A948",80:"#E2C45F",90:"#FAE190",light:"#FAE190",95:"#FCF1CE",99:"#FEFBFF",100:"#FFFFFF",contrastText:"#FFFFFF"},success:{0:"#000000",10:"#092018",20:"#14372A",dark:"#14372A",30:"#20503E",40:"#2E6B54",main:"#2E6B54",50:"#3B856A",60:"#52A887",70:"#69BD9B",80:"#85D9B6",90:"#A0F5D1",light:"#A0F5D1",95:"#CAFDE5",99:"#F6FFF9",100:"#FFFFFF",contrastText:"#FFFFFF"},neutral:{0:"#000000",5:"#111114",10:"#1B1B1F",dark:"#1B1B1F",17:"#1B1B1F",20:"#303034",22:"#303034",25:"#3C3B3F",30:"#47464A",35:"#535256",40:"#5F5E62",50:"#78767A",main:"#5F5E62",60:"#929094",70:"#ADAAAF",80:"#C8C5CA",light:"#E4E1E6",90:"#E4E1E6",92:"#E4E1E6",95:"#F3F0F4",96:"#F3F0F4",98:"#FCF8FD",99:"#FFFBFF",100:"#FFFFFF"},neutralVariant:{0:"#000000",5:"#101018",10:"#1B1B23",dark:"#1B1B23",20:"#303038",25:"#3B3B43",30:"#46464F",35:"#52525B",40:"#5E5D67",50:"#777680",main:"#5E5D67",60:"#91909A",70:"#ABAAB4",80:"#C7C5D0",light:"#E3E1EC",90:"#E3E1EC",95:"#F2EFFA",98:"#FBF8FF",99:"#FFFBFF",100:"#FFFFFF"},info:{0:"#000000",10:"#05154C",20:"#112874",dark:"#112874",30:"#2D418B",40:"#465AA4",main:"#465AA4",50:"#6073BF",60:"#7A8CDA",70:"#95A7F7",80:"#B9C4FB",90:"#DDE1FD",light:"#DDE1FD",95:"#EFF0FE",99:"#FEFBFF",100:"#ffffff",contrastText:"#FFFFFF"}},styles:{display:{large:{family:"Plus Jakarta Sans",fontFamilyStyle:"Regular",weight:"400",size:57,lineHeight:64,tracking:-.25},medium:{family:"Plus Jakarta Sans",fontFamilyStyle:"Regular",weight:"400",size:45,lineHeight:52,tracking:0},small:{family:"Plus Jakarta Sans",fontFamilyStyle:"Regular",weight:"400",size:36,lineHeight:44,tracking:0}},headline:{large:{family:"Plus Jakarta Sans",fontFamilyStyle:"Regular",weight:"400",size:32,lineHeight:40,tracking:0},medium:{family:"Plus Jakarta Sans",fontFamilyStyle:"Regular",weight:"400",size:28,lineHeight:36,tracking:0},small:{family:"Plus Jakarta Sans",fontFamilyStyle:"Regular",weight:"400",size:24,lineHeight:32,tracking:0}},body:{large:{family:"Plus Jakarta Sans",fontFamilyStyle:"Regular",weight:"400",size:16,lineHeight:24,tracking:.5},medium:{family:"Plus Jakarta Sans",fontFamilyStyle:"Regular",weight:"400",size:14,lineHeight:20,tracking:.25},small:{family:"Plus Jakarta Sans",fontFamilyStyle:"Regular",weight:"400",size:12,lineHeight:16,tracking:.4}},label:{large:{family:"Plus Jakarta Sans",fontFamilyStyle:"Medium",weight:"500",size:14,lineHeight:20,tracking:.1},medium:{family:"Plus Jakarta Sans",fontFamilyStyle:"Medium",weight:"500",size:12,lineHeight:16,tracking:.5},small:{family:"Plus Jakarta Sans",fontFamilyStyle:"Medium",weight:"500",size:11,lineHeight:16,tracking:.5}},title:{large:{family:"Plus Jakarta Sans",fontFamilyStyle:"Regular",weight:"400",size:22,lineHeight:28,tracking:0},medium:{family:"Plus Jakarta Sans",fontFamilyStyle:"Medium",weight:"500",size:16,lineHeight:24,tracking:.15},small:{family:"Plus Jakarta Sans",fontFamilyStyle:"Medium",weight:"500",size:14,lineHeight:20,tracking:.1}}},extendedColors:{environmental:{harmonized:!1,color:"#08EBA7",darkColor:"#006C4B",endColor:"rgba(8, 235, 167, 0.10)",name:"Rio Green (Seed)",description:"Environmental"},environmentalVariant:{harmonized:!1,color:"#3CB770",endColor:"rgba(60, 183, 112, 0.10)",name:"Rio Green Variant",description:"Environmental Variant"},social:{harmonized:!1,color:"#917FFE",endColor:"rgba(228, 66, 255, 0.10)",name:"Rio Purple (Seed)",description:"Social"},economic:{harmonized:!1,color:"#E442FF",endColor:"rgba(145, 127, 254, 0.10)",name:"Rio Pink (Seed)",description:"Economic"},economicVariant:{harmonized:!1,color:"#FABEF1",endColor:"rgba(250, 190, 241, 0.10)",name:"Rio Pink Variant",description:"Economic Variant"},governance:{harmonized:!1,color:"#001AFF",endColor:"rgba(0, 26, 255, 0.10)",name:"Rio Blue (Seed)",description:"Governance"}},customColors:{warning:{harmonized:!1,color:"#FDD238",name:"Yellow",description:"Warning/Charts"},orange:{harmonized:!1,color:"#F27844",name:"Orange",description:"Charts"},success:{harmonized:!1,color:"#EEFFEC",name:"Success",description:"Background for success"},onSuccess:{harmonized:!1,color:"#0C8B00",name:"On success",description:"Success text"}},semanticColors:{electricity:{harmonized:!1,color:"#2E3EFF",name:"Electricity",description:"Represents electricity data in charts"},gas:{harmonized:!1,color:"#08EBA7",name:"Gas",description:"Represents natural gas data in charts"},water:{harmonized:!1,color:"#E442FF",name:"Water",description:"Represents water data in charts"},waste:{harmonized:!1,color:"#917FFE",name:"Waste",description:"Represents waste data in charts"},fuel:{harmonized:!1,color:"#000",name:"Fuel",description:"Represents fuel data in charts"},transport:{harmonized:!1,color:"#FDD237",name:"Transport",description:"Represents transport data in charts"},refrigerants:{harmonized:!1,color:"#A7EAFF",name:"Refrigerants",description:"Represents refrigerants data in charts"},heatAndSteam:{harmonized:!1,color:"#BA1A1A",name:"Heat & steam",description:"Represents heat & steam data in charts"},materials:{harmonized:!1,color:"#AFAFAF",name:"Materials",description:"Represents materials data in charts"},hotelStays:{harmonized:!1,color:"#3786FD",name:"Hotel stays & work from home",description:"Represents hotel stays data"},workFromHome:{harmonized:!1,color:"#FFCCFD",name:"Work from home",description:"Represents number of days worked from home"},finances:{harmonized:!1,color:"#096F00",name:"Finances",description:"Represents finances data"}},name:"M3"}},15045(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.themeConfig=void 0;const a=t(54790),i=t(8244),l=t(97322),r=t(15965);n.themeConfig={cssVariables:!0,ref:{palette:i.themeTokens.palettes},palette:i.themeTokens.palettes,customStates:{disabled:{stateLayerOpacity:.12}},sys:{typescale:i.themeTokens.styles,color:i.themeTokens.schemes.light,state:{hover:{stateLayerOpacity:.84},focus:{stateLayerOpacity:.12},pressed:{stateLayerOpacity:.16}},elevation:["0px 1px 3px 1px rgba(0, 0, 0, 0.05), 0px 1px 2px 0px rgba(0, 0, 0, 0.10)","0px 2px 6px 2px rgba(0, 0, 0, 0.05), 0px 1px 2px 0px rgba(0, 0, 0, 0.10)","0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 4px 8px 3px rgba(0, 0, 0, 0.05)","0px 2px 3px 0px rgba(0, 0, 0, 0.10), 0px 6px 10px 4px rgba(0, 0, 0, 0.05)","0px 4px 4px 0px rgba(0, 0, 0, 0.10), 0px 8px 12px 6px rgba(0, 0, 0, 0.05)","0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)"]},extendedColors:i.themeTokens.extendedColors,customColors:i.themeTokens.customColors,semanticColors:i.themeTokens.semanticColors,typography:{fontFamily:r.font},components:{MuiButton:{defaultProps:{disableElevation:!0}},MuiButtonBase:{defaultProps:{disableRipple:!0,LinkComponent:l.Link}}}};const o=(0,a.createTheme)(n.themeConfig);n.default=o},78585(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},8950(e,n,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(6775),n),i(t(78585),n)},6775(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},89123(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.formatters=void 0;const t={hour:"numeric",minute:"numeric",second:"numeric"},a={day:"numeric",month:"numeric",year:"numeric"},i=new Intl.DateTimeFormat([],t),l=new Intl.DateTimeFormat([],{month:"short"}),r=new Intl.DateTimeFormat([],{month:"short",year:"numeric"}),o=new Intl.DateTimeFormat([],a),s=new Intl.DateTimeFormat([],{...t,...a}),d=new Intl.ListFormat,c=new Intl.NumberFormat,u=new Intl.NumberFormat([],{maximumFractionDigits:1,notation:"compact"}),p=new Intl.NumberFormat([],{maximumFractionDigits:0}),m=new Intl.NumberFormat([],{notation:"compact"});n.formatters={time:i,month:l,monthYear:r,date:o,dateTime:s,list:d,int:p,number:c,percentage:u,numberCompact:m}},93930(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.formatters=n.opacifyHex=n.getNodeText=void 0;var a=t(50489);Object.defineProperty(n,"getNodeText",{enumerable:!0,get:function(){return a.getNodeText}});var i=t(86700);Object.defineProperty(n,"opacifyHex",{enumerable:!0,get:function(){return i.opacifyHex}});var l=t(89123);Object.defineProperty(n,"formatters",{enumerable:!0,get:function(){return l.formatters}})},86700(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.opacifyHex=void 0;var i=t(73474);Object.defineProperty(n,"opacifyHex",{enumerable:!0,get:function(){return a(i).default}})},50489(e,n){"use strict";function t(e){return!(!e||"object"!=typeof e)&&"type"in e}Object.defineProperty(n,"__esModule",{value:!0}),n.isElement=t,n.getNodeText=function e(n){return"string"==typeof n?n:"number"!=typeof n||Number.isNaN(n)?n instanceof Array?n.map(e).join(""):t(n)?e(n.props.children):"":n.toString()}},41738(e,n,t){"use strict";var a={};t.r(a),t.d(a,{ACCOUNT:()=>H,DEPARTMENT:()=>Q,LOCATION:()=>Y,REGION:()=>Z,TAG:()=>K,labels:()=>X,scopeLegislationOptions:()=>ne,scopeOptions:()=>ee});var i={};t.r(i),t.d(i,{cw:()=>jc,K2:()=>$c,vX:()=>Ec,Mk:()=>wc,b1:()=>_c,Vr:()=>$c,Hv:()=>Oc});var l={};t.r(l),t.d(l,{ENG:()=>sse,EUR:()=>mse,GBR:()=>pse,JSONIcon:()=>wg,NIR:()=>cse,SCO:()=>dse,WAL:()=>use}),t(29969);var r=t(58997),o=t(78953),s=t(59263),d=t(28045),c=t(80610),u=t(85531),p=t(97322),m=t(41346),f=t(27592),y=t(27021),g=t(22155),h=t(87472),x=t(4225),T=t(34862),b=t.n(T);function v(e){const{data:{getAccountInfo:n={}}={},...t}=(0,x.IT)(b(),{variables:{id:e},skip:!e});return{data:n,...t}}var C=t(3694),k=t(32055),S=t(27477);const N=S.J1`
  fragment getUserInfoFragment on User {
    id
    email
    first_name
    last_name
    jobTitle
    department
    phone
    mobile
    profilePicture
    roles
    accessLevel
    allowedLocations {
      id
      name
      tags {
        id
        tagName
      }
    }
    allowedTags {
      id
      tagName
      locations {
        id
        name
      }
    }
    account {
      id
      name
      type
      logoPath
      departments {
        id
        name
      }
      children {
        id
        name
        logoPath
      }
    }
    role {
      role
      name
      restrictedAccess
      permissions {
        allowedRioModules
        user
        account
        data
        governance
        document
        documentFolder
        tag
        transposition
        email
        notification
        learn
        licence
        dashboard
        task
        ocr
        intelligence
        project
        scheme
        survey
        dataTracker
        dataTrackerAnomalies
        flows
        invest
        dataOverwriting
      }
    }
    disableAccountSelector
  }
`,A=S.J1`
  query GetUserByUsername($name: String!) {
    getUserInfoById(id: $name) {
      ...getUserInfoFragment
    }
  }
  ${N}
`,R=S.J1`
  {
    loginError @client
  }
`,D=S.J1`
  {
    idToken @client {
      sub
      given_name
      aud
      event_id
      auth_time
      name
      exp
      iat
      family_name
      email
      roles
      accessLevel
      allowedLocations
      allowedTags
    }
    sessionLoading @client
  }
`,L=S.J1`
  mutation LogIn($email: String!, $password: String!, $type: String) {
    login(email: $email, password: $password, type: $type) @client
  }
`,I=S.J1`
  mutation LogInSSO($provider: String!) {
    loginSSO(provider: $provider) @client
  }
`,j=S.J1`
  mutation SetPassword($email: String!, $password: String!, $oldPassword: String!) {
    setPassword(email: $email, password: $password, oldPassword: $oldPassword) @client
  }
`,w=S.J1`
  mutation ForgotPassword($username: String!) {
    forgotPassword(username: $username) @client
  }
`,O=(S.J1`
  mutation ResetPassword($username: String!, $password: String!, $confirmationCode: String!) {
    resetPassword(username: $username, password: $password, confirmationCode: $confirmationCode) @client
  }
`,S.J1`
  mutation LogOut {
    logout @client
  }
`);var E=t(79043);const _=S.J1`
  fragment ReportingYearFields on ReportingYear {
    id
    name
    startDate
    endDate
  }
`,F=S.J1`
  fragment AccessControlsFields on AccessControls {
    learn
    intelligence
    tasks
    projects
    surveys
    flows
    dataTracker
    dromoUpload
    v2Design
    dataOverwriting
    organisation
    comply {
      legislation
      tagLevelLegislation
      policies
      systems
      targets
      frameworks
      agreements
    }
    data {
      waste
      electricity
      gas
      water
      materials
      fuel
      transport
      refrigerants
      heatSteam
      buildingEnergyRatings
      hotelStays
      investment
      scope3ActivityBasedMaterials
      scope3SpendBasedMaterials
      coreEstate
      oilAndGas
      insite
    }
  }
`,P=S.J1`
  fragment FeatureTogglesFields on FeatureToggles {
    enableGlobalEmissionFactors
    dataAnalysisChatbot
  }
`,B=S.J1`
  fragment AccountFields on Account {
    id
    name
    type
    notes
    showChatBot
    n3rgyConsentDocumentLink
    n3rgyUploadGranularity
    sector {
      id
      name
    }
    reportingYear {
      ...ReportingYearFields
    }
    children {
      id
      name
      logoPath
    }
    accessControls {
      ...AccessControlsFields
    }
    featureToggles {
      ...FeatureTogglesFields
    }
    unrestrictedDocuments
  }
  ${_}
  ${F}
  ${P}
`,U=S.J1`
  fragment BannerFields on Banner {
    id
    accountId
    url
    type
    thumbnail
    visible
  }
`,$=S.J1`
  mutation CreateAccount(
    $id: ID!
    $name: String!
    $type: AccountType!
    $accessControls: AccessControlsInput!
    $children: [ID]
    $notes: String
    $showChatBot: Boolean
    $reportingYearId: ID
    $sectorId: String
    $unrestrictedDocuments: [String]
    $featureToggles: FeatureTogglesInput
  ) {
    createAccount(
      input: {
        id: $id
        name: $name
        type: $type
        accessControls: $accessControls
        children: $children
        notes: $notes
        showChatBot: $showChatBot
        sectorId: $sectorId
        unrestrictedDocuments: $unrestrictedDocuments
        featureToggles: $featureToggles
      }
    ) {
      ...AccountFields
    }
    setAccountReportingYear(accountId: $id, reportingYearId: $reportingYearId) {
      ...ReportingYearFields
    }
  }
  ${_}
  ${B}
`,M=S.J1`
  mutation UpdateAccount(
    $id: ID!
    $name: String!
    $type: AccountType!
    $accessControls: AccessControlsInput!
    $children: [ID]
    $notes: String
    $showChatBot: Boolean
    $reportingYearId: ID
    $sectorId: String
    $n3rgyConsentDocumentLink: String
    $n3rgyUploadGranularity: String
    $featureToggles: FeatureTogglesInput
    $unrestrictedDocuments: [String]
    $customImpactDashboardId: String
  ) {
    updateAccount(
      input: {
        id: $id
        name: $name
        type: $type
        accessControls: $accessControls
        children: $children
        notes: $notes
        showChatBot: $showChatBot
        sectorId: $sectorId
        n3rgyConsentDocumentLink: $n3rgyConsentDocumentLink
        n3rgyUploadGranularity: $n3rgyUploadGranularity
        unrestrictedDocuments: $unrestrictedDocuments
        featureToggles: $featureToggles
        customImpactDashboardId: $customImpactDashboardId
      }
    ) {
      ...AccountFields
    }
    setAccountReportingYear(accountId: $id, reportingYearId: $reportingYearId) {
      ...ReportingYearFields
    }
  }
  ${_}
  ${B}
`,V=(S.J1`
  mutation DeleteAccount($id: ID!) {
    deleteAccount(id: $id)
  }
`,S.J1`
  mutation UploadAccountLogo(
    $fileName: String!
    $data: String!
    $contentType: String!
    $accountId: ID!
    $accountName: String!
    $accountType: AccountType!
    $accessControls: AccessControlsInput!
  ) {
    uploadLogo(input: { fileName: $fileName, contentType: $contentType, imageData: $data, accountId: $accountId })

    updateAccount(
      input: {
        id: $accountId
        name: $accountName
        type: $accountType
        accessControls: $accessControls
        logoPath: $fileName
      }
    ) {
      id
      logoPath
    }
  }
`),G=S.J1`
  query GetAccountInfo($id: ID!) {
    getAccountInfo(id: $id) {
      ...AccountFields
      customImpactDashboard {
        id
        name
      }
    }
  }
  ${B}
`,z=(S.J1`
  query GetBanner($accountId: ID!) {
    getBanner(accountId: $accountId) {
      ...BannerFields
    }
  }
  ${U}
`,S.J1`
  query GetAccounts($limit: Int!, $offset: Int, $sort: [SortCommand!], $filters: Filters) {
    getAccounts(offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
        type
        accessControls {
          ...AccessControlsFields
        }
        featureToggles {
          ...FeatureTogglesFields
        }
      }
    }
  }
  ${F}
  ${P}
`),W=S.J1`
  mutation SaveBanner($input: SaveBannerInput!) {
    saveBanner(input: $input) {
      ...BannerFields
    }
  }
  ${U}
`,q=S.J1`
  mutation DeleteBanner($accountId: ID!, $id: ID!) {
    deleteBanner(accountId: $accountId, id: $id)
  }
`,J=S.J1`
  query GetReportingYears {
    getReportingYears {
      ...ReportingYearFields
    }
  }
  ${_}
`,Y="LOCATION",H="ACCOUNT",K="TAG",Q="DEPARTMENT",Z="REGION",X={[Y]:"Location",[H]:"Account",[K]:"Tag",[Q]:"Department",[Z]:"Region"},ee=[{value:H,label:X[H]},{value:Y,label:X[Y]},{value:K,label:X[K]}],ne={[K]:X[K],[Y]:X[Y],[Q]:X[Q],[Z]:X[Z]},te=S.J1`
  query GetCurrentAccountId {
    currentAccountId @client
  }
`,ae=S.J1`
  mutation SetCurrentAccountId($currentAccountId: String!) {
    setCurrentAccountId(currentAccountId: $currentAccountId) @client
  }
`;var ie=t(82472),le=t(75235),re=t(64771),oe=t(47106),se=t.n(oe),de=t(34322),ce=t(81995),ue=t(5821),pe=t.n(ue),me=t(39756),fe=t(65723);const ye=le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
`,ge=(0,le.default)(ie.DZ)`
  text-align: center;
`,he=(0,le.default)(ie.ks)`
  width: 100%;
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,xe=(0,le.default)(ie.$n)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`;class Te extends g.Component{constructor(e){super(e),this.handleChange=e=>{this.setState({username:{value:e.target.value}})},this.handleSendPasswordResetCode=(e,n)=>{this.state.username.value&&n({variables:{username:this.state.username.value}})},this.state={username:{value:e.username||"",error:null},success:!1}}render(){return(0,fe.jsxs)(ye,{name:"forgot-password-container",children:[this.state.success&&(0,fe.jsxs)("div",{children:[(0,fe.jsx)(ge,{size:"lg",children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.success.title"})}),(0,fe.jsx)(ie.EY,{align:"center",children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.success.subheading"})}),(0,fe.jsx)(xe,{name:"forgot-password-container__go-to-resetbutton",component:"routerLink",to:`/reset-password?username=${this.state.username.value}`,children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.goToResetButton"})})]}),!this.state.success&&(0,fe.jsxs)("div",{children:[(0,fe.jsx)(ge,{size:"lg",children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.title"})}),(0,fe.jsx)(ie.EY,{align:"center",children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.subheading"})}),(0,fe.jsx)(he,{name:"username",error:this.state.username.error,box:!0,placeholder:this.props.intl.formatMessage({id:"login.forgotPassword.usernamePlaceholder"}),value:this.state.username.value,onChange:this.handleChange}),(0,fe.jsx)(me.s,{mutation:w,onCompleted:()=>{this.setState({success:!0}),console.log("==== COMPLETE ====")},children:e=>(0,fe.jsx)(xe,{name:"forgot-password-container__button",onClick:n=>this.handleSendPasswordResetCode(n,e),children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.submitButton"})})})]})]})}}Te.propTypes={username:pe().string,errors:pe().object};const be=(0,ce.Ay)(Te),ve=le.default.div`
  ${e=>{let{theme:n,color:t="primary"}=e;return`\n    display: flex;\n    width: 100%;\n    align-items: center;\n    background-color: ${n.colors[t].normal.background};\n    padding: ${n.geometry.sm.spacing};\n  `}};
`,Ce=(0,le.default)(ie.In)`
  ${e=>{let{theme:n}=e;return`\n    flex: 0 0 auto;\n    margin-right: ${n.geometry.sm.spacing};\n    margin-left: ${n.geometry.xs.spacing};\n    color: ${n.colors.basic.white};\n  `}};
`,ke=le.default.div`
  ${e=>{let{theme:n}=e;return`\n    flex: 1 1 auto;\n    margin-right: ${n.geometry.sm.spacing};\n  `}};
`,Se=(0,le.default)(ie.In)`
  ${e=>{let{theme:n}=e;return`\n    flex: 0 0 auto;\n    margin-right: ${n.geometry.sm.spacing};\n    color: ${n.colors.basic.white};\n    background:transparent;\n    &:hover {\n      cursor:pointer;\n    }\n  `}};
`,Ne=e=>{let{name:n,dismissable:t,onDismiss:a,title:i,body:l,icon:r,...o}=e;return(0,fe.jsxs)(ve,{...o,children:[r&&(0,fe.jsx)(Ce,{icon:r}),(0,fe.jsxs)(ke,{children:[i&&(0,fe.jsx)(ie.DZ,{size:"md",color:"white",children:i}),l&&(0,fe.jsx)(ie.EY,{size:"md",color:"white",children:l})]}),t&&(0,fe.jsx)(Se,{onClick:a,icon:"times",name:`${n}__dismiss-cross`})]})};Ne.propTypes={id:pe().string,name:pe().string,title:pe().string,body:pe().string,icon:pe().string};const Ae=Ne,Re=t.p+"RioLogo2021-e9c2bb60af263e60f79c.png",De=e=>({NODE_ENV:"production"}?.[e]||{NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_STRIPE_PUBLIC_KEY:"pk_live_51HLD9AEF3FA3cLa5DWIX6QpW41AHM0f5DALJjUtBoRhvP52iJrBkyGW9HajZ6MHF0M6weW7Nals5CkSZdULWyYyT00Pg5PgL0l",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-085624}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Ditto_sustainability_limited}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2026}____[v3]_[02]_MTc3NDY1NjAwMDAwMA==0f33e64d601fc4473c9e232e427c01f2",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_ANALYST_AGENT_ENDPOINT:"'https://bedrock-agentcore.eu-west-2.amazonaws.com/runtimes/arn%3Aaws%3Abedrock-agentcore%3Aeu-west-2%3A523523762637%3Aruntime%2Fdata_analysis_agent_prod-FHjO5N5Zv7/invocations?qualifier=DEFAULT",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}[e]),Le=(0,le.default)(ie.fv)`
  height: 100%;
  width: 100%;
  padding: ${e=>e.theme.geometry.md.spacing};
`,Ie=(0,le.default)(ie.fv)`
  text-align: center;
`,je=(0,le.default)(ie.ks)`
  width: 100%;
  margin-top: ${e=>e.theme.geometry.sm.spacing};
  margin-left: 5px;
  margin-right: 5px;
`,we=le.default.div`
  height: 70px;
  width: 125px;
  background: no-repeat top center / contain url(${Re});
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
  align-self: center;
  flex: 0 0 auto;
`,Oe=(0,le.default)(ie.EY)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
  text-align: center;
`,Ee=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing} ${e=>e.theme.geometry.xs.spacing};
  flex-basis: initial;
  width: 100%;
`,_e=(0,le.default)(Ee)`
  justify-content: space-between;
`,Fe=(0,le.default)(ie.Yq)`
  flex: 1;
  &:first-child {
    text-align: left;
  }
  &:last-child {
    text-align: right;
  }
`,Pe=le.default.form`
  width: 100%;
`,Be=e=>{let{message:n}=e;switch(n){case"Incorrect username or password.":return"NotAuthorizedException";case"User does not exist.":return"UserNotFoundException";case"User is disabled.":return"UserDisabledException";case"Confirmation code cannot be empty":return"ConfirmationCodeEmptyException";case"Invalid code provided, please request a code again.":return"InvalidCodeException";default:return n}},Ue=e=>{let{loginError:n}=e;if(!n)return null;const t=(e=>({UserNotFoundException:"login.main.userNotFound",NotAuthorizedException:"login.main.incorrectPassword",UserDisabledException:"login.main.userDisabled",GeneralError:"login.main.generalError"}[e]||e))(n);return(0,fe.jsx)(Oe,{name:"formError",color:"danger",size:"sm",weight:"bold",children:(0,fe.jsx)(de.A,{id:t})})};class $e extends g.Component{constructor(e){super(e),this.handleChange=e=>{const n=e.target,t="checkbox"===n.type?n.checked:n.value,a=n.name;this.setState({[a]:{...this.state[a],value:t}})},this.handleSubmit=e=>{e.preventDefault(),this.setState({isLoading:!0});const n={...this.state.email},t={...this.state.password};n.error=this.state.email.value?"":this.props.intl.formatMessage({id:"login.main.emailError"}),t.error=this.state.password.value?"":this.props.intl.formatMessage({id:"login.main.passwordError"}),this.setState({email:n,password:t}),this.state.email.value&&this.state.password.value&&this.props.mutate({variables:{email:this.state.email.value,password:this.state.password.value},onError:e=>{this.enableSubmitButton(),this.setLoginError(e)}}),(n.error||t.error)&&this.setState({isLoading:!1})},this.setLoginError=e=>{this.setState({loginError:Be(e)})},this.enableSubmitButton=()=>{this.state.isLoading&&this.setState({isLoading:!1})},this.handleForgotPassword=()=>{this.setState({forgotPasswordModal:!0})},this.handleForgotPasswordDismiss=()=>{this.setState({forgotPasswordModal:!1})},this.state={isLoading:!1,email:{value:"",error:""},password:{value:"",error:""},remember:{value:!1},formError:"",loginError:null,forgotPasswordModal:!1}}render(){return(0,fe.jsxs)(Le,{container:!0,item:!0,distribution:"center",name:"login-container",children:[("Develop"===De("REACT_APP_ENVIRONMENT_NAME")||"QA"===De("REACT_APP_ENVIRONMENT_NAME")||"UAT"===De("REACT_APP_ENVIRONMENT_NAME"))&&(0,fe.jsx)(Ae,{name:"LoginContainer__NotificationBanner",color:"primary",icon:"exclamation-triangle",title:`This is the ${De("REACT_APP_ENVIRONMENT_NAME")} site`,body:"Please note that we regularly reset the data and anything you enter may be overwritten. We recommend that personal details of real individuals are not entered"}),this.state.forgotPasswordModal&&(0,fe.jsx)(ie.aF,{size:"sm",show:!0,name:"account-create-modal",dismissable:!0,onDismiss:this.handleForgotPasswordDismiss,height:"auto",maxHeight:"90vh",children:(0,fe.jsx)(be,{id:"forgotPasswordModal__Contents",username:this.state.email.value})}),(0,fe.jsx)(ie.fI,{container:!0,item:!0,distribution:"center",children:(0,fe.jsxs)(Ie,{container:!0,vdistribution:"center",item:!0,itemAlign:"center",span:3,children:[(0,fe.jsx)(we,{}),(0,fe.jsx)(ie.DZ,{size:"lg",children:(0,fe.jsx)(de.A,{id:"login.main.title"})}),(0,fe.jsx)(ie.EY,{align:"center",children:(0,fe.jsx)(de.A,{id:"login.main.subheading"})}),(0,fe.jsxs)(Pe,{name:"login__form",onSubmit:this.handleSubmit,children:[(0,fe.jsx)(je,{box:!0,name:"email",placeholder:this.props.intl.formatMessage({id:"login.main.emailPlaceholder"}),value:this.state.email.value,error:this.state.email.error,onChange:this.handleChange}),(0,fe.jsx)(je,{box:!0,name:"password",type:"password",placeholder:this.props.intl.formatMessage({id:"login.main.passwordPlaceholder"}),value:this.state.password.value,error:this.state.password.error,onChange:this.handleChange}),(0,fe.jsxs)(_e,{container:!0,distribution:"between",children:[(0,fe.jsx)(Fe,{inline:!0,id:"forgotPasswordTextLink",onClick:this.handleForgotPassword,children:(0,fe.jsx)(de.A,{id:"login.main.forgotPassword"})}),(0,fe.jsx)(Fe,{to:"/register",component:"routerLink",children:(0,fe.jsx)(de.A,{id:"login.main.newRioUser"})})]}),(0,fe.jsx)(ie.$n,{name:"loginbutton",loading:this.state.isLoading,submit:!0,children:(0,fe.jsx)(de.A,{id:"login.main.loginButton"})})]}),this.state.loginError&&(0,fe.jsx)(Ue,{loginError:this.state.loginError})]})})]})}}se()((0,re.U)(L),ce.Ay)($e);const Me=[{query:D,data:{sessionLoading:!0,idToken:null}},{query:R,data:{loginError:""}}],Ve=e=>e.writeQuery({query:D,data:{sessionLoading:!1}}),Ge=async(e,n)=>{e||Ve(n.cache),localStorage.setItem("ID_TOKEN",e.getIdToken().getJwtToken()),localStorage.setItem("ACCESS_TOKEN",e.getAccessToken().getJwtToken());const t=e.getIdToken().decodePayload(),a=t["custom:access_level"]||H,i={event_id:null,...t,roles:t["cognito:groups"],accessLevel:a,allowedLocations:a===Y?JSON.parse(t["custom:allowed_locations"]||null):null,allowedTags:a===K?JSON.parse(t["custom:allowed_tags"]||null):null,__typename:"IdToken"},{data:{getAccountInfo:l}}=await n.query({query:G,variables:{id:t.name}});var r,o,s,d,c,u,p;E.gV({id:t.sub,email:t.email}),E.o("account",{id:l.id,name:l.name,type:l.type}),E.o("user",{id:t.sub,name:`${t.given_name} ${t.family_name}`,email:t.email}),E.Wt({accountId:l.id,accountName:l.name,username:t.username,email:t.email,userRole:t["cognito:groups"]?.toString()}),n.cache.writeQuery({query:D,data:{idToken:i,sessionLoading:!1}}),k.j.updateEndpoint({address:t.email,userAttributes:{userId:[t.sub],email:[t.email],name:[`${t.given_name} ${t.family_name}`],roles:t["cognito:groups"],accountId:[t.name]}}),r=t.sub,o=t.name,s=t.email,d=`${t.given_name} ${t.family_name}`,c=l.name,u=l.type,p=t["cognito:groups"],window.pendo&&!window.Cypress&&window.pendo.initialize({visitor:{id:r,email:s,full_name:d,roles:p.join(", ")},account:{id:o,name:c,type:u}})};async function ze(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];E.gV(null),E.o("account",null),E.o("user",null);try{await y.N.signOut()}finally{await async function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];localStorage.removeItem("ACCESS_TOKEN"),localStorage.removeItem("ID_TOKEN"),localStorage.removeItem("DISMISSED_BANNERS"),localStorage.removeItem("CURRENT_ACCOUNT"),await e.writeQuery({query:ae,data:{currentAccountId:null}}),n&&window.location.reload()}(e,n)}}const We={Mutation:{login:async(e,n,t)=>{let{email:a,password:i,type:l}=n,{client:r,cache:o}=t;try{let e;if("sso"===l)try{y.N.configure({authenticationFlowType:"CUSTOM_AUTH"}),e=await y.N.signIn(a.toLowerCase()),e=await y.N.sendCustomChallengeAnswer(e,i)}finally{y.N.configure({authenticationFlowType:void 0})}else e=await y.N.signIn(a.toLowerCase(),i);await Ge(e.getSignInUserSession(),r)}catch(e){throw await ze(o,!1),E.Cp(e),e}},loginSSO:async(e,n)=>{let{provider:t}=n;y.N.federatedSignIn({customProvider:t})},logout:async(e,n,t)=>{let{cache:a}=t;return ze(a)},setPassword:async(e,n,t)=>{let{email:a,oldPassword:i,password:l}=n,{client:r,cache:o}=t;try{const e=await y.N.signIn(a.toLowerCase(),i);"NEW_PASSWORD_REQUIRED"===e.challengeName&&await y.N.completeNewPassword(e,l),await Ge(e.getSignInUserSession(),r)}catch(e){o.writeQuery({query:R,data:{loginError:Be(e)}})}},resetPassword:async(e,n,t)=>{let{username:a,password:i,confirmationCode:l}=n,{cache:r}=t;try{await y.N.forgotPasswordSubmit(a,l,i)}catch(e){r.writeQuery({query:R,data:{loginError:Be(e)}})}},forgotPassword:async(e,n,t)=>{let{username:a}=n,{cache:i}=t;try{await y.N.forgotPassword(a.toLowerCase())}catch(e){i.writeQuery({query:R,data:{loginError:"GeneralError"}})}}}};function qe(){const e=(0,C.m)(),{data:n}=(0,x.IT)(D);return(0,g.useEffect)(()=>{n&&n.idToken||(async()=>{try{const n=await y.N.currentSession();await Ge(n,e)}catch{Ve(e)}})()}),{token:n?n.idToken:null,loading:!n||n.sessionLoading}}function Je(e){let{onChange:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{data:t,refetch:a}=(0,x.IT)(te,{partialRefetch:!0}),[i,l]=(0,g.useState)(t&&t.currentAccountId?t.currentAccountId:null),r=(0,C.m)(),{token:o}=qe(),{sub:s}=o||{},d=(0,g.useCallback)(e=>{l(e),n?.(e)},[l,n]);return(0,g.useEffect)(()=>{e&&e!==i&&(d(e),a())},[e]),(0,g.useEffect)(()=>{(async()=>{if(s){if(!t||!t.currentAccountId){const{data:e}=await r.query({query:A,variables:{name:s}});e.getUserInfoById.account&&k.j.updateEndpoint({userAttributes:{account:[e.getUserInfoById.account.name]}});const n=e&&e.getUserInfoById&&e.getUserInfoById.account&&e.getUserInfoById.account.id;return await r.mutate({mutation:ae,variables:{currentAccountId:n}}),d(n)}t&&t.currentAccountId!==i&&d(t.currentAccountId)}})()}),i}const Ye=["b1f7fc4e-714d-4271-bb3f-d736dff38a14","9b5da64b-2e0f-4dc7-adf6-e879a88160b9","66fdc17b-308d-4e71-85ee-0d4a77e3276e","bf0b444f-10c1-4642-b94b-3acb1a529990","094f8a56-5761-4561-a2dd-1b66ee5bb5da"];function He(){const e=Je();return Ye.includes(e)}function Ke(){const e=zo(),n=(0,m.Zp)(),t=(0,m.zy)();(0,g.useEffect)(()=>{if(!e)return;const a=e?.accessControls?.v2Design?2:1,i=t.pathname.startsWith("/v2")?2:1;i!==a&&n(1===i?t.pathname.replace("/","/v2/"):t.pathname.replace(/\/v2\/?/,"/"))},[e,t.pathname,n])}function Qe(){return(0,m.zy)().pathname.startsWith("/v2")}const Ze=(0,g.createContext)({showNotification:()=>{}}),Xe=(0,f.styled)("div")`
  margin: 15px -38px 0 -24px;
  padding-top: 15px;
  text-align: center;
  border-top: 1px solid #fff;
`,en=e=>{let{children:n}=e;const{showToast:t}=(0,f.useToast)(),{pathname:a}=(0,m.zy)(),[i,l]=(0,g.useState)([]),r=i[0],o=Qe(),s=!o,d=(0,g.useCallback)((e,n,a)=>{o?t(e,n||"success"):l(t=>{const i=t.find(n=>n.message===e)||t[0]?.message===e;return i?t:[...t,{message:e,action:a,color:n||"success"}]})},[l,o,t]),c=(0,g.useMemo)(()=>({showNotification:d}),[d]),u=(e,n)=>{"clickaway"!==n&&l(e=>e.slice(1))},{autoClose:p=5e3}=r?.action||{};return(0,fe.jsxs)(Ze.Provider,{value:c,children:[n,s&&(0,fe.jsx)(ie.Eg,{name:"general__notification",show:!!i.length,color:r?.color,autoClose:p,onClose:u,children:r?.action?.callback?(0,fe.jsxs)("div",{onClick:()=>{u(),r.action?.callback?.()},children:[(0,fe.jsx)("div",{children:r?.message}),(0,fe.jsx)(Xe,{children:r?.action?.text||"OK"})]}):(0,fe.jsx)("span",{children:r?.message})})]})},nn=e=>(0,fe.jsx)(f.ToastProvider,{children:(0,fe.jsx)(en,{...e})}),tn=()=>(0,g.useContext)(Ze),an=(e,n,t)=>{const{showNotification:a}=tn();return(0,g.useEffect)(()=>{try{const n=localStorage.getItem(e),a=n?JSON.parse(n||""):[];a.length&&t(a)}catch(e){a("Failed to load aliases from storage")}},[e,a,t]),(0,g.useEffect)(()=>()=>{localStorage.setItem(e,JSON.stringify(n))},[e,n]),{clearStorageItem:()=>{localStorage.removeItem(e)}}};var ln=t(76881);const rn=S.J1`
  fragment AuditEventFields on AuditEvent {
    id
    service
    entityId
    entity
    user {
      ... on User {
        id
        first_name
        last_name
      }
    }
    account {
      ... on Account {
        id
        name
      }
    }
    type
    notes
    payload
    createdDate
  }
`,on=S.J1`
  query GetAuditByEntityId($entityId: ID!) {
    getAuditByEntityId(entityId: $entityId) {
      ...AuditEventFields
    }
  }
  ${rn}
`,sn=S.J1`
  mutation CreateAuditEvent($event: AuditEventInput!) {
    createAuditEvent(event: $event) {
      ...AuditEventFields
    }
  }
  ${rn}
`;function dn(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{loading:t,setLoading:a}=(0,f.usePageLoadingContext)({defaultValue:!0}),{setError:i}=(0,f.usePageErrorContext)(),l=(0,x.IT)(e,{...n,notifyOnNetworkStatusChange:!0,onCompleted:function(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];n.onCompleted?.(...t),setTimeout(()=>{i(null),a(!1)},0)},onError:e=>{n.onError?.(e),setTimeout(()=>{"all"!==n.errorPolicy&&"ignore"!==n.errorPolicy&&i(e),a(!1)},0)}});return(0,g.useEffect)(()=>{!t&&l.loading&&a(!0)},[t,a,l.loading]),(0,g.useEffect)(()=>()=>{n.keepErrorAfterUnmount||i(null),a(!1)},[i,a,n.keepErrorAfterUnmount]),l}function cn(e){return(0,x.IT)(on,{fetchPolicy:"network-only",variables:{entityId:e},skip:!e})}function un(e){return dn(on,{fetchPolicy:"network-only",variables:{entityId:e},skip:!e,keepErrorAfterUnmount:!0})}const pn=S.J1`
  query GetDataTrackerValidationResults(
    $accountId: ID!
    $isIgnored: Boolean
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getDataTrackerValidationResults(
      accountId: $accountId
      isIgnored: $isIgnored
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        dataTrackerConfigId
        startDate
        endDate
        supplierName
        locations
        meters
        utility
        validationType
        note
        frequency
        reason
        __typename
      }
    }
  }
`,mn=S.J1`
  mutation UpdateDataTrackerValidationResults($input: [DataTrackerValidationResultInput]!) {
    updateDataTrackerValidationResults(input: $input) {
      id
    }
  }
`;var fn=t(68352),yn=t.n(fn),gn=t(41223),hn=t(49680),xn=t.n(hn),Tn=t(5866),bn=t.n(Tn),vn=t(20743),Cn=t.n(vn);const kn=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD/MM/YYYY";return e&&bn()(e).format(n)},Sn=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD/MM/YYYY";return e&&bn()(e).utc().format(n)},Nn=e=>e?`${e.split("T")[0]}T00:00:00.000Z`:e,An=e=>e?new Date((e=>e.slice(0,-1))(e)):null,Rn=e=>e?Cn()(1e3*parseInt(e/1e3)):"",Dn=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD/MM/YYYY HH:mm";return e?bn()(e).format(n):""},Ln=e=>bn()(e).subtract((()=>{const e=new Date;return e.getHours()-e.getUTCHours()})(),"hours").toDate(),In=(e,n)=>{if(!n)return 0;const t=new Date(n).setHours(0,0,0,0);return t<e?-1:t>e?1:0};function jn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,hn.cloneDeep)(e),t={};for(const e in n){const a=n[e];let i=a.filterType;const l=a.type,r=("greaterThan"===l||"lessThan"===l)&&l;r&&"date"===i&&(a.type=`${r}OrEqual`),i===gn.pe.Set&&(1!==a.values?.length||"true"!==a.values[0]&&"false"!==a.values[0]?a.values=a.values.flatMap(e=>{try{const n=JSON.parse(e);return n?.value||n}catch(n){return e}}):(i=gn.pe.Boolean,a.values=a.values.map(e=>"true"===e))),t[i]||(t[i]=[]),t[i].push({...a,field:e})}return t}function wn(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(e=>null!==e.sort).map(e=>({field:e.colId,order:e.sort||"asc"}))}const On=e=>{let{value:n}=e;if(!n)return n;try{const e=JSON.parse(n);return e.label||e.value}catch(e){return n}},En=e=>{let{value:n}=e;return!0===n?"Yes":!1===n?"No":""},_n=e=>{let{value:n}=e;return n?Sn(n):""},Fn=function(e){let{value:n}=e;return n?kn(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD/MM/YYYY"):""},Pn=e=>{let{value:n}=e;return n?Dn(n):""},Bn=e=>{let{value:n}=e;return"1"===n?.toString()?"Yes":"0"===n?.toString()?"No":""},Un=e=>{let{value:n}=e;return(0,hn.isNil)(n)?"":(0,hn.round)(Number(n),4).toFixed(4)},$n=e=>{let{value:n}=e;return n?n.toFixed(15).replace(/\.0+$/,""):n},Mn=e=>{let{value:n}=e;return n?new Intl.NumberFormat("en-GB",{minimumFractionDigits:2}).format(n):n},Vn=e=>{let{value:n}=e;if(!n)return n;const t=(e=>{try{return JSON.parse(e)}catch(e){return}})(n);return t?Object.entries(t).map(e=>{let[n,t]=e;return`${n}: ${t}`}).join(", "):n},Gn=e=>n=>(0,hn.get)(n.data,e),zn=e=>e.value?.label||e.value?.value,Wn=e=>e.value?.value||e.value?.id,qn=(e,n)=>{const t=e?.toLowerCase(),a=n?.toLowerCase();return t<a?-1:t>a?1:0},Jn=(e,n)=>Yn("name")(e,n),Yn=e=>(n,t)=>qn(xn().get(n,e),xn().get(t,e)),Hn=qn,Kn=e=>(0,hn.toNumber)(String(e).replace(",",".")),Qn=e=>new RegExp(/^((\d+(\.|,)(\d+)?)|(\d+))$/).test(e),Zn=e=>/^(-)?((\d+(\.|,)(\d+)?)?|(\d+)?)$/.test(e),Xn=(e,n)=>"number"!=typeof e||isNaN(e)?(e=>""!==e&&!Number.isNaN(Number(e))&&"string"==typeof e)(e)?parseFloat(e):n:e,et=e=>{(0,hn.forIn)(e,(n,t)=>e[t]=Qn(n)?Kn(n):0);const{gateFee:n=0,quantity:t=0,managementFee:a=0,binHire:i=0,binExchangeFee:l=0,numberOfCollections:r=0,transportCharge:o=0,liftCharge:s=0,equipmentHire:d=0,miscCost:c=0,miscCostRate:u=0,rebate:p=0}=e;return n*t+a+i+l*r+o+s*r+d+c+u*t+p*t},nt=e=>1.2*Kn(e),tt=(e,n)=>{const t=bn()(bn()(e).format("YYYY-MM-DD")),a=bn()(bn()(n).format("YYYY-MM-DD"));if(!t.isValid()||!a.isValid())throw new Error("Date is invalid");return t.isBefore(a)?1:t.isAfter(a)?-1:0},at=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(T([01]\d|2[0-3]):([0-5]\d):([0-5]\d)(\.\d{3})?(Z|[+-]([01]\d|2[0-3]):[0-5]\d)?)?$/,it=/^(\d{2})\/(\d{2})\/(\d{4})$/,lt=/^(\d{2})-(\d{2})-(\d{4})$/,rt=(e,n)=>{let[t,a]=n;const i=bn()(e),l=bn()(t),r=bn()(a),o=i.isBetween(l,r),s=i.isSame(l)||i.isSame(r);return o||s};function ot(e){let[n,t]=e,{includeReportingYear:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=Sn(n),l=Sn(t),r=l?`${i} — ${l}`:`${i} - Present`;return a?`${r} (Reporting year - ${bn()(n).year()})`:r}function st(e){let[n]=e;if(n)return new Date(n.toString())}function dt(){return bn()().startOf("day")}function ct(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD/MM/YY HH:mm";const t=bn()(e).local();return t.isValid()?t.format(n):"-"}function ut(e){if(e instanceof Date)return!isNaN(e.getTime());if(!at.test(e))return!1;const n=new Date(e);return!isNaN(n.getTime())}var pt=t(62912);let mt=function(e){return e.Single="Single",e.Aggregated="Aggregated",e}({}),ft=function(e){return e[e.Replicated=0]="Replicated",e[e.Distributed=1]="Distributed",e}({});const yt="YYYY-MM-DD";let gt=function(e){return e.Daily="daily",e.Weekly="weekly",e.Monthly="monthly",e.Quarterly="quarterly",e.Annually="annually",e}({});const ht="courseBundle",xt="subscription",Tt="accountCapacity",bt=ht,vt=xt,Ct=Tt,kt=5e4,St=25,Nt="66c23f78-8457-47f7-8825-59abff3e5004",At="70a1f28e-7093-4374-988d-b505cb0a5282",Rt="92e0ed2d-982c-4279-9b82-fc963f2397c5",Dt="dd4d46b9-aae5-4f24-8d5d-d35c763e98b4",Lt="033e466c-9e77-4560-84cf-69e25cef76b7",It="c11f60c9-569e-4f01-b965-05b22df100e5",jt="ce36a6bd-b8a4-4e2f-a895-66b27b732cbb",wt="9bf0a2ba-7151-469c-963d-75000a6a9af0",Ot="608877fc-83e7-4487-b5a4-493e0ba05903",Et="d45a23a6-ad11-4671-ac3c-7f69a4440728",_t="0768ce2f-99d4-4b62-be7a-a4530dd7fede",Ft="cd6b748a-4410-47e6-9c8e-62684f645f42",Pt=[Nt,At],Bt=[Lt,"094f8a56-5761-4561-a2dd-1b66ee5bb5da","1984de26-978f-4e59-af19-b67647c039fa"],Ut="NOTSTARTED",$t="INPROGRESS",Mt="COMPLETE",Vt="CLEAN",Gt="S3",zt=["image/tiff","image/jpeg","image/png","image/gif","image/webp","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain","text/csv","application/pdf","application/json","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/mspowerpoint","application/powerpoint"],Wt=[".csv","text/csv","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel"],qt={allowedDocument:{mimeTypes:zt,mimeType:zt.join(",")},allowedDataFile:{mimeTypes:Wt,mimeType:Wt.join(",")}},Jt=e=>e.toFixed(2),Yt={[gt.Daily]:"days",[gt.Weekly]:"weeks",[gt.Monthly]:"months",[gt.Quarterly]:"quarters",[gt.Annually]:"years"};function Ht(e,n,t){const a=bn().utc(t.startDate).clone().add(n,e),[i,l]=t.dateField;if(l){const r=bn().utc(t.startDate).clone().add(n+1,e).subtract(1,"days");return{[i]:a.toDate(),[l]:r.isAfter(t.endDate)?t.endDate:r.toDate()}}return{[i]:a.toDate()}}function Kt(e,n,t){return xn().mapValues(e,(e,a)=>{if(n.includes(a)){const n=Kn(e)/t;return n>0?Jt(n):0}return e})}function Qt(e,n){return n.dataFormRowsFillingStrategy===ft.Distributed?function(e,n){const t=xn().cloneDeep(e),{startDate:a,endDate:i,dateFrequency:l,dataFormInputStrategy:r,divideFields:o}=n,s=Yt[l],d=bn()(i).diff(bn()(a),s)+1,c=d<1?1:d,u=[];for(let e=0;e<c;e++){const a=Ht(s,e,n),i={...t,...a};if(r===mt.Aggregated){const e=Kt(t,o,c);Object.assign(i,e),Object.assign(i,a)}u.push(i)}return u}(e,n):function(e,n){const t=xn().cloneDeep(e),[a,i]=n.dateField;return t[a]=n.startDate,i&&(t[i]=n.endDate),[t]}(e,n)}const Zt=(e,n)=>e.map(e=>{e=xn().omitBy(e,e=>null==e||""===e);const t=(a=n,e=>xn().mapValues(e,(e,n)=>{const t=e instanceof Date,i="object"==typeof e&&null!==e&&!t;return"purchase type"===n&&i&&"label"===a?xn().get(e,"value"):i?xn().get(e,a):e}))(e);var a;return(t instanceof Date||"string"==typeof t)&&ut(t)?Sn(t,pt.ImportPayload.DATE_FORMAT):t});async function Xt(e,n){try{const t=await fetch(e);if(!t.ok)throw new Error(`Download failed: ${t.status} ${t.statusText}`);const a=await t.blob(),i=n??function(e,n){if(n){const e=n.match(/filename\*?=(?:UTF-8'')?["']?([^"';\n]+)["']?/i);if(e?.[1])try{return decodeURIComponent(e[1])}catch{return e[1]}}const t=new URL(e).pathname.split("/").pop();if(t)try{return decodeURIComponent(t)}catch{return t}}(e,t.headers.get("Content-Disposition"))??"";!function(e,n){const t=document.createElement("a"),a=URL.createObjectURL(e);t.href=a,t.download=n,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(a)}(a,i)}catch{window.location.href=e}}function ea(e){const n=e;return n.graphQLErrors?`GraphQL error: ${e}\nAll errors: ${JSON.stringify(n.graphQLErrors)}\nNetwork error: ${n.networkError}\nExtra info: ${n.extraInfo||""}\nStack: ${n.stack}`:`${e.message}\nStack: ${e.stack}`}function na(e){return"object"==typeof e&&null!==e&&"message"in e&&"name"in e}var ta=t(42625),aa=t(18600);const ia=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e;const i=ta.Wp.book_new(),l=t.map(n=>{const t={};return e.forEach(e=>{t[e]=a(n[e])}),t}),r=ta.Wp.json_to_sheet(l);ta.Wp.book_append_sheet(i,r,"Data"),(0,ta._h)(i,`${n}.xlsx`)};async function la(e){try{const n=await(e=>new Promise((n,t)=>{const a=new FileReader;a.onloadend=()=>{try{const e=(0,ta.LF)(a.result,{cellDates:!0,dateNF:"dd/MM/YYYY"}),t=e.SheetNames,i=e.Sheets[t[0]];n(ta.Wp.sheet_to_json(i))}catch(e){t(e)}},a.onerror=t,a.readAsArrayBuffer(e)}))(e);return[null,n]}catch(e){return[e,null]}}function ra(e){const n=86400*Math.floor(e-25569);return new Date(1e3*n)}function oa(e){return[e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function sa(e,n){let t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"DD/MM/YYYY";t="number"==typeof e?ra(e):e instanceof Date?e:bn().utc(e,a).toDate();const i=bn().utc(t);if(n){const[e,t,a,l]=function(e){if("string"==typeof e&&e.split(":").length>=2){const[n,t,a=0,i=0]=e.split(":").slice(0,4).map(e=>e?parseInt(e,10):0);return[n,t,a,i]}return"number"==typeof e?oa(ra(e)):bn().isMoment(e)?[e.get("hours"),e.get("minutes"),e.get("seconds"),e.get("milliseconds")]:e instanceof Date?oa(e):[0,0,0,0]}(n);return i.set("hours",e).set("minutes",t).set("seconds",a).set("milliseconds",l)}return i}const da=async(e,n,t)=>new Promise((a,i)=>{(0,aa.As)(e,{header:!0,columns:t},(e,t)=>{e&&i(e);const l=(0,ta.LF)(t,{type:"string"}),r=(0,ta.M9)(l,{bookType:"xlsx",type:"array"}),o=new Blob([r],{type:"application/octet-stream"}),s=new File([o],`${n.split(".")[0]}.xlsx`,{type:"application/octet-stream",lastModified:(new Date).getTime()});a(s)})});function ca(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"xlsx",a=arguments.length>3?arguments[3]:void 0;const i=ta.Wp.book_new(),l=a||n;i.SheetNames.push(l);const r=ta.Wp.json_to_sheet(e.map(e=>(0,hn.mapValues)(e,e=>{return("string"==typeof(n=e)?at.test(n)||lt.test(n)||it.test(n):n instanceof Date||bn().isMoment(n))?function(e){if(bn().isMoment(e))return e.toDate();if(e instanceof Date)return e;if("number"==typeof e&&!Number.isNaN(e))return bn()(e).toDate();if("string"==typeof e&&at.test(e))return bn()(e).toDate();if("string"==typeof e&&lt.test(e))return bn()(e,"DD-MM-YYYY").toDate();if("string"==typeof e&&it.test(e))return bn()(e,"DD/MM/YYYY").toDate();const n=new Date(e);if(Number.isNaN(n.getTime()))throw new Error(`${e} is invalid date`);return n}(e):e;var n})),{cellDates:!0});i.Sheets[l]=r;const o=(0,ta.M9)(i,{bookType:t,type:"array",cellDates:!0});return new File([o],`${n}.${t}`,{type:"application/octet-stream"})}const ua=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t=[];for(const a of e)if("children"in a&&a.children)t.push(...ua(a.children,[...n,a.headerName??""]));else{const e=a;e.field&&!e.hide&&t.push({field:e.field,headerName:e.headerName??e.field,groups:n})}return t};async function pa(e){const n=[];for await(const t of e)n.push(t);return n}const ma="IFRAME",fa="EXTERNAL",ya="PDF";class ga{constructor(e){this.course=e}getHandleMethod(){switch(this.course.type){case gn.US.Video:case gn.US.Scorm:return"EMBED";case gn.US.Pdf:return ya;case gn.US.Url:return this.course.metaData.openIframe?ma:fa;default:return fa}}}function ha(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";for(const t in e)n=n.replace(`:${t}`,e[t]);return n}var xa=t(70114),Ta=t.n(xa);const ba="REPORTING_FRAMEWORK",va="VOLUNTARY_AGREEMENT";function Ca(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];const i=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];const a=n.filter(Boolean).join(".");return a?a+".":""}(...t.map(e=>e.number),e.number),l=`${i} ${e.title}`;return e.tocNumber=i,e.tocTitle=l,e.parent=t[t.length-1],e}function ka(e,n){return e.siblings=n,e}function Sa(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e?.parent?Sa(e.parent,n.concat([e.parent])):n}function Na(e){const n={},t={};if(!e)return{tree:n,documents:t};const a=e=>e.documents?.forEach?.(e=>t[e.id]={...e,name:e.fileName}),i=Ta()(e);return a(i),i.chapters?.forEach((e,t)=>{n[e.id]=ka(Ca(e,i),i.chapters),n[e.id].index=t,a(e),e.chapters?.forEach((t,l)=>{n[t.id]=ka(Ca(t,i,e),e.chapters),n[t.id].index=l,a(t),t.chapters?.forEach((l,r)=>{a(l),n[l.id]=ka(Ca(l,i,e,t),t.chapters),n[l.id].index=r})})}),{tree:n,documents:t}}const Aa=e=>{switch(e){case ba:return"Reporting Frameworks";case va:return"Voluntary Agreements";default:return"Management Systems"}},Ra=e=>{switch(e){case ba:return"/governance/frameworks";case va:return"/governance/agreements";default:return"/governance/systems"}};function Da(e,n){return{title:Aa(e),to:n||Ra(e)}}function La(e,n,t){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!e)return[];const i=[Da(e.type,a)];return t&&e&&Sa(n[t.id]).reverse().forEach(n=>{const t=n===e?`${a}/${e.id}`:`${a}/${e.id}/${n.id}`;i.push({to:t,title:n.tocTitle||n.title})}),i}function Ia(e,n){const t=n?.tocNumber||n?.number;return`${e.shortCode}${t?` ${t}`:""} D${(n.documents?.length||0)+1}`.toLocaleLowerCase()}function ja(e,n,t){return e?t.replace(e,n):`${t}/${n}`}const wa=e=>e.length>=3?1:3-e.length,Oa=e=>{let{value:n}=e;const t=Number(n);return isNaN(t)||null==n||void 0===n?0:t<1?Math.round(10*t)/10:Math.round(t)},Ea=e=>{let{value:n}=e;const t=Number(n);return isNaN(t)||null==n||void 0===n?0:t.toFixed(2)};var _a=t(87677),Fa=t.n(_a);const Pa=new Intl.NumberFormat,Ba=e=>Pa.format(Fa()(e,1)),Ua=e=>({label:e.name,value:e.id}),$a=e=>e?.map?.(Ua)||[],Ma="CREATE_NEW",Va={label:"Create new...",value:Ma},Ga=e=>Array.isArray(e)?e.map(e=>e.value):e.value;function za(e,n,t){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3;return async function*(){let i=0;for(;;){const l=n({limit:a,offset:i}),r=await e({variables:l});if(!r.data)break;const o=t(r.data);if(0===o.length)break;for(const e of o)yield e;if(o.length<a)break;i+=a}}}var Wa=t(44301);const qa=e=>{return{id:e.id,accountId:e.accountId,owners:(n=e.owners,n?.map(e=>({label:e.first_name+" "+e.last_name,value:e.id}))),locations:$a(e?.locations),name:e.name,description:e.description||"",priority:e.priority,category:e.scheme?.category,schemeId:e.scheme?.id||"",scheme:void 0,impact:e.impact||"",cost:e.cost||void 0,currencyId:e.currencyId||void 0,baselineStartDate:e.baselineStartDate,startDate:e.startDate,endDate:e.endDate,frequency:e.frequency||"",plannedBenefit:e.plannedBenefit,plannedCostChange:e.plannedCostChange||0,plannedCO2eChange:e.plannedCO2eChange||0,tasks:e.tasks,evidenceNotes:e.evidenceNotes,meters:$a(e.meters)};var n},Ja=e=>e.map(e=>({...e,documents:e?.documents?.map(e=>e?.id)})),Ya=e=>({accountId:e.accountId||"",id:e.id||"",owners:Ga(e?.owners||[]),locations:Ga(e?.locations||[]),priority:e.priority,name:e.name||"",schemeId:e?.schemeId?.toString()||"",baselineStartDate:e?.baselineStartDate||"",startDate:e?.startDate||"",endDate:e?.endDate||"",plannedBenefit:e?.plannedBenefit||0,description:e.description||null,impact:e.impact||null,cost:e.cost||null,currencyId:e.cost?e.currencyId:null,frequency:e.frequency||null,plannedCostChange:e.plannedCostChange&&Math.abs(+e.plannedCostChange)||null,plannedCO2eChange:e.plannedCO2eChange&&Math.abs(+e.plannedCO2eChange)||null,evidenceNotes:Ja(e?.evidenceNotes||[]),meters:Ga(e?.meters||[])}),Ha=e=>({id:e.id,accountId:e.accountId,name:e.name,description:e.description,category:e.category,subject:e.subject||null,itemId:e?.item?.id||null,priority:e.priority,dueDate:e.dueDate,createdAt:e.createdAt||"",completedAt:e.completedAt||null,isCompleted:e.isCompleted,scope:e.scope||null,locationIds:e.locations?.map(e=>e?.id)||null,owners:e.owners?.map(e=>e?.id)||null,tagIds:e.tags?.map(e=>e?.id)||null,projectId:null}),Ka=e=>{const n=(0,hn.get)(e,"target.type");return"text"===n||"textarea"===n},Qa=e=>e instanceof Date?e.toISOString():e;function Za(e){const n=e.split(/[\s\/]/);for(let e=0;e<n.length;e++)n[e].match(/^[A-Z][a-z]+/)&&(n[e]=n[e].toLowerCase());const t=n.join(" ").trim();return t.charAt(0)?.toUpperCase()+t.slice(1)}var Xa=t(80242),ei=t(52642),ni=t(88716);const ti=e=>{let{value:n,label:t}=e;return{value:n,label:t,children:[]}};function ai(e,n){for(let t=1;t<e.length;t++){let a=n.children.find(n=>{let{value:a}=n;return a===e[t].value});a||(a=ti(e[t]),n.children.push(a)),n=a}}const ii=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...new Set(e.flatMap(e=>e.map(e=>{let{value:n}=e;return n}))),...n]},li=(0,ni.Ay)("div")({padding:10}),ri=(0,ni.Ay)(ei.y)(e=>{let{theme:n}=e;const t=n.sys.typescale.label.large;return{[["& .MuiTreeItem-content","& .MuiTreeItem-content.Mui-focused","& .MuiTreeItem-content.Mui-selected","& .MuiTreeItem-content.Mui-selected.Mui-focused","& .MuiTreeItem-content:hover","& .MuiTreeItem-content.Mui-selected:hover"].join(", ")]:{backgroundColor:"transparent"},"& .MuiTreeItem-content .MuiTreeItem-label":{fontFamily:t.family,fontStyle:"normal",lineHeight:`${t.lineHeight}px`,fontSize:t.size,fontWeight:t.weight}}});function oi(e){return(0,fe.jsx)(fe.Fragment,{children:e.map(e=>{let{value:n,label:t,children:a}=e;return(0,fe.jsx)(ri,{itemId:n,label:t,children:a.length>0&&oi(a)},n)})})}function si(e){let{value:n,onChange:t,data:a,loading:i}=e;const l=(0,g.useMemo)(()=>{if(a)return n?function(e,n){if(0===e.length)return[];const t=new Set;for(const a of n){const n=[...e];let i=[];for(const{value:e}of a){const a=n.indexOf(e);if(a>-1?(n.splice(a,1),i.forEach(e=>t.add(e)),i=[e]):i.push(e),0===n.length)break}}return[...t]}(n,a):ii(a)},[a]),r=(0,g.useMemo)(()=>a?function(e){const n=[];for(let t=0;t<e.length;t++){let a=n.find(n=>{let{value:a}=n;return a===e[t][0].value});a||(a=ti(e[t][0]),n.push(a)),ai(e[t],a)}return n}(a):[],[a]),o=(0,g.useMemo)(()=>a?ii(a,["blank"]):[],[a]),s=n||o;return(0,fe.jsxs)(li,{children:[(0,fe.jsx)(Xa.G,{selectedItems:n?"":"all",checkboxSelection:!0,onSelectedItemsChange:(e,n)=>{t(n?null:[])},children:(0,fe.jsx)(ri,{itemId:"all",label:"(Select All)"})}),i&&(0,fe.jsx)(f.Loader,{size:32}),l&&r.map((e,n)=>(0,fe.jsxs)(Xa.G,{multiSelect:!0,checkboxSelection:!0,selectedItems:s,defaultExpandedItems:l,onSelectedItemsChange:(e,n)=>t(n),children:[0===n&&(0,fe.jsx)(ri,{itemId:"blank",label:"(Blanks)"}),oi([e])]},n))]})}const di=S.J1`
  query GetOrganisationalUnitsForFilter($accountId: ID!, $source: String!) {
    getOrganisationalUnitsForFilter(accountId: $accountId, source: $source) {
      value
      label
    }
  }
`;function ci(e){let{source:n}=e;const t=Je(),{data:a,loading:i}=(0,x.IT)(di,{variables:{accountId:t,source:n},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0});return[a?.getOrganisationalUnitsForFilter,i]}function ui(e){let{source:n,onModelChange:t,model:a}=e;const[i,l]=ci({source:n});return(0,fe.jsx)(si,{data:i,loading:l,value:a?.values,onChange:e=>t(e?{filterType:gn.pe.Set,values:e}:e)})}var pi=t(88037),mi=t(56478),fi=t(6273),yi=t(4164),gi=t(30929);const hi="Mui-focused",xi="Mui-disabled",Ti=e=>`0px 0px ${e}px ${e}px`,bi=e=>{let{thickness:n,color:t}=e;return{height:9,borderRadius:Ti(8),content:'""',left:0,bottom:0,right:0,position:"absolute",border:`${n}px solid ${t}`,borderTop:"none"}},vi=(0,f.styled)("div")(e=>{let{theme:n}=e;const t=n.sys.color,a=n.sys.typescale.title.small;return{display:"flex",cursor:"pointer",height:40,fontStyle:"normal",fontSize:a.size,lineHeight:`${a.lineHeight}px`,fontWeight:a.weight,letterSpacing:a.tracking,justifyContent:"space-between",alignItems:"center",color:t.onSurface,marginTop:16,padding:"9px 8px 8px 16px","&:before":{...bi({thickness:1,color:t.outlineVariant}),transition:"border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1)"},[`&:not(.${xi}):hover::before`]:{borderBottomWidth:2,borderColor:t.primary,borderRadius:Ti(9)},"&:after":{...bi({thickness:2,color:t.primary}),transform:"scaleX(0)",transition:"transform 200ms cubic-bezier(0, 0, 0.2, 1)"},[`&.${hi}::after`]:{transform:"scaleX(1) translateX(0px)"},[`&.${xi}`]:{color:n.palette.text.disabled,cursor:"default"},[`&.${xi}::before`]:{borderBottomStyle:"dotted"}}}),Ci=(0,f.styled)("div")({display:"flex",alignItems:"center"}),ki=(0,f.styled)("div")({overflow:"hidden",textOverflow:"ellipsis",flex:1,minWidth:0,whiteSpace:"nowrap"}),Si=(0,f.styled)(pi.A)({transform:"translate(14px, 0) scale(0.75)"}),Ni={horizontal:"left",vertical:"bottom"};function Ai(e,n){return e&&n?0===e.length?"(None)":n.get(e[0])+(e.length>1?` and ${e.length-1} more`:""):"All"}function Ri(e){let{label:n="Organisational units",source:t,value:a,onChange:i,disabled:l}=e;const[r,o]=ci({source:t}),s=(0,g.useMemo)(()=>r?(e=>{const n=new Map([["blank","(Blanks)"]]);for(const t of e)for(const{value:e,label:a}of t)n.set(e,a);return n})(r):void 0,[r]),[d,c]=(0,g.useState)(),[u,p]=(0,g.useState)(null),m=!!u,y=[];m&&y.push(hi),(l||o)&&y.push(xi);const h=y.join(" ");return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(mi.A,{fullWidth:!0,children:[(0,fe.jsx)(Si,{shrink:!0,className:h,children:n}),(0,fe.jsxs)(vi,{onClick:e=>{l||o||(p(e.currentTarget),c(void 0))},className:h,children:[(0,fe.jsx)(ki,{children:Ai(a,s)}),(0,fe.jsxs)(Ci,{children:[o&&(0,fe.jsx)(f.Loader,{size:20}),m?(0,fe.jsx)(gi.A,{fontSize:"medium",color:"primary"}):(0,fe.jsx)(yi.A,{fontSize:"medium",color:"primary"})]})]})]}),(0,fe.jsx)(fi.Ay,{open:m,anchorEl:u,onClose:()=>p(null),anchorOrigin:Ni,transitionDuration:0,slotProps:{transition:{onEntered:e=>{let{clientHeight:n}=e;return c(n)}},paper:{sx:{width:u?u.offsetWidth:void 0,maxHeight:d}}},children:(0,fe.jsx)(si,{onChange:i,value:a,data:r,loading:o})})]})}const Di={[gn.sE.DirectBroker]:"Direct - Broker",[gn.sE.DirectIntercompanyTrade]:"Direct - Intercompany Trade",[gn.sE.DirectPurchasedDirectly]:"Direct - Purchased Directly",[gn.sE.IndirectBackchargedByClientOrLandlord]:"Indirect - Backcharged by Client/Landlord",[gn.sE.IndirectFreeIssue]:"Indirect - Free Issue",[gn.sE.IndirectPurchasedBySubcontractorOrContractor]:"Indirect - Purchased by Subcontractor/Contractor"},Li=function(e){return e?Di[e]:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""},Ii=e=>e&&Di[e]||e;function ji(){return Object.keys(gn.sE).map(e=>({value:gn.sE[e],label:Li(gn.sE[e])}))}const wi=(e,n,t)=>n?.some?.(n=>n.split(":")[0].toLowerCase()===`${e}Transaction.purchaseType`.toLowerCase())?{headerName:"Purchase Type",sortable:!1,field:t?.withDromoCasing?"purchase type":"purchaseType",filter:"agSetColumnFilter",filterParams:{values:[null,...Object.values(gn.sE)],valueFormatter:e=>{let{value:n}=e;return Li(n,"(Blanks)")}},valueFormatter:e=>{let{value:n}=e;return Li(n)}}:null,Oi=(e,n)=>n?.organisation?[{headerName:"Organisational Units",field:"organisationalUnits",sortable:!1,filter:ui,filterParams:{source:e}}]:[],Ei=(e,n,t)=>n?.some?.(n=>n.split(":")[0].toLowerCase()===`${e}Transaction.subcontractor`.toLowerCase())?{headerName:"Subcontractor",field:"subcontractor",filter:"agSetColumnFilter",filterParams:t?.getFilterValues&&t?.gridValueFormatter?{values:t.getFilterValues,valueFormatter:t.gridValueFormatter}:void 0}:null,_i=(e,n,t)=>n?.some?.(n=>n.split(":")[0].toLowerCase()===`${e}Transaction.productCode`.toLowerCase())?{headerName:"Product code",field:t?.withDromoCasing?"product code":"productCode",filter:"agTextColumnFilter"}:null,Fi=(e,n,t)=>n?.some?.(n=>n.split(":")[0].toLowerCase()===`${e}Transaction.materialDescription`.toLowerCase())?{headerName:"Material description",field:t?.withDromoCasing?"material description":"materialDescription",filter:"agTextColumnFilter"}:null,Pi=(e,n,t)=>n?.some?.(n=>n.split(":")[0].toLowerCase()===`${e}Transaction.percentRecycledContent`.toLowerCase())?{headerName:"% Recycled content",field:t?.withDromoCasing?"percent recycled content":"percentRecycledContent",filter:"agNumberColumnFilter",valueFormatter:e=>{let{value:n}=e;return null!=n?`${n}%`:""}}:null,Bi=(e,n,t)=>n?.some?.(n=>n.split(":")[0].toLowerCase()===`${e}Transaction.distanceToSite`.toLowerCase())?{headerName:"Distance to location",field:t?.withDromoCasing?"distance to site":"distanceToSite",filter:"agNumberColumnFilter"}:null,Ui=(e,n,t)=>n?.some?.(n=>n.split(":")[0].toLowerCase()===`${e}Transaction.numberOfDeliveries`.toLowerCase())?{headerName:"Number of deliveries",field:t?.withDromoCasing?"number of deliveries":"numberOfDeliveries",filter:"agNumberColumnFilter"}:null,$i=(e,n,t)=>n?.some?.(n=>n.split(":")[0].toLowerCase()===`${e}Transaction.originOfCertification`.toLowerCase())?{headerName:"Origin of certification",field:t?.withDromoCasing?"origin of certification":"originOfCertification",filter:"agSetColumnFilter",filterParams:t?.getFilterValues&&t?.gridValueFormatter?{values:t.getFilterValues,valueFormatter:t.gridValueFormatter}:void 0}:null,Mi=(e,n,t)=>n?.some?.(n=>n.split(":")[0].toLowerCase()===`${e}Transaction.origin`.toLowerCase())?{headerName:"Origin",field:"origin",filter:"agSetColumnFilter",filterParams:t?.getFilterValues&&t?.gridValueFormatter?{values:t.getFilterValues,valueFormatter:t.gridValueFormatter}:void 0}:null,Vi={headerName:"Estimates Scenario ",field:"estimatesScenario",filter:"agSetColumnFilter",filterParams:{values:[null,...pt.estimatesScenarios]}};function Gi(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(e).reduce((t,a)=>{const i=e[a],l=n?`${n}.${a}`:a;return"string"==typeof i?t[l]=i:Object.assign(t,Gi(i,l)),t},{})}const zi=e=>{const n=/(?:\.([^.]+))?$/.exec(e),t=n&&n[1];switch(t?t.toUpperCase():""){case"PDF":return"file-pdf";case"PNG":case"JPG":case"JPEG":case"BMP":return"file-image";case"DOCX":case"DOCM":case"DOC":return"file-word";case"XLSX":case"XLS":case"CSV":return"file-excel";default:return"file"}},Wi=e=>[e?.first_name,e?.last_name].filter(Boolean).join(" "),qi=e=>{let{value:n}=e;return(0,hn.isBoolean)(n)&&n?"Yes":(0,hn.isBoolean)(n)&&!n?"No":"-"},Ji=()=>({values:[!0,!1],valueFormatter:qi,type:"boolean"}),Yi=e=>{let{value:n}=e;if(null===n)return"Blank";const{value:t}=JSON.parse(n);return"1"===t?"Yes":"No"},Hi=e=>{let{value:n}=e;return"true"===n?"Yes":"false"===n?"No":n?"Yes":"No"},Ki=e=>(0,hn.mapValues)(e,e=>Array.isArray(e)?e.filter(Boolean):(e=>""===e?null:e)(e)),Qi=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Zi=e=>{const n=new Set,t=new Set;for(const a of e)n.has(a)?t.add(a):n.add(a);return[...t]};function Xi(e){return null==e?[]:[e]}function el(e){return new Promise(n=>{setTimeout(n,e)})}async function nl(e,n,t){const a=Date.now()+(t||0);for(;;){if(t&&Date.now()>a)throw new Error("Poll timeout");if(e())return;await el(n)}}const tl=(e,n)=>{const t=[];if(!e)return t;for(const a of e)if(a){const e=n(a);e&&t.push(e)}return t};function al(e){const n=[];for(const t of e)null!=t&&n.push(t);return n}function il(e){return e.split(".").slice(0,-1).join(".")}const ll=e=>{if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(e=>ll(e));const n={};for(const t in e)"__typename"!==t&&(n[t]=ll(e[t]));return n},rl=`File type is not allowed. Allowed types are: ${qt.allowedDocument.mimeTypes.join(", ")}`;function ol(){const e=(0,C.m)();return(0,g.useCallback)(async(n,t,a)=>{try{const{data:i}=await e.query({query:yn(),variables:{accountId:n,documentId:t,mimeType:a.type}});if(!i?.getDocumentUploadLink)throw new Error(rl);const l=await fetch(i.getDocumentUploadLink,{method:"PUT",body:a});if(l.status>=500)throw new Error("File service is temporarily out of order. Please try again later.");if(l.status>=400)throw new Error(rl)}catch(e){if(!na(e))throw new Error("Something went wrong. Please try again later.");if(e.message.includes("File format is not allowed"))throw new Error(rl);throw e}},[e])}function sl(){return(0,m.zy)().pathname.startsWith("/v2")}t(27351);const dl=(e,n,t,a)=>{const i=bn()(n).clone().add(a,e),l=bn()(n).clone().add(a+1,e).subtract(1,"days");return{startDate:i.toDate(),endDate:l.isAfter(t)?t:l.toDate()}};var cl=t(68959),ul=t.n(cl);function pl(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{data:{getBundleById:t}={},...a}=(0,x.IT)(ul(),{variables:{bundleId:e},...n});return{data:t,...a}}var ml=t(15789),fl=t.n(ml),yl=t(2204),gl=t.n(yl);function hl(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=Je(),{data:{getCourseById:a}={},...i}=(0,x.IT)(gl(),{variables:{accountId:t,id:e},...n});return{data:a,...i}}var xl=t(87858),Tl=t.n(xl),bl=t(26873),vl=t.n(bl);const Cl=(0,g.createContext)(null),kl=()=>(0,g.useContext)(Cl);var Sl=t(6134),Nl=t.n(Sl);const Al=(e,n)=>t=>t.map(t=>t.id===e?(e=>{const n={...e};if(e?.offset&&e?.totalRows&&0!==e.offset){const t=Math.ceil(e?.offset/e?.totalRows*100);n.percents=t}return n})({...t,...n}):t),Rl=e=>({id:e.id,step:e.rowsProcessed-e.uploadProgress,isBackendExport:!0,downloadLink:null,percents:e.rowsProcessingProgress,uploadProgress:e.uploadProgress,fileName:e.filename,status:e.exportStatus,error:e.errorMessage?new Error(e.errorMessage):null,completed:[gn.l2.Completed,gn.l2.Ready].includes(e.exportStatus),loading:e.exportStatus===gn.l2.InProgress}),Dl="Rio exports your data. You can safely navigate away from this page.";var Ll=t(97029),Il=t(87653),jl=t.n(Il),wl=t(41621),Ol=t.n(wl);const El=S.J1`
  mutation TriggerExportTransactions(
    $accountId: ID!
    $transactionType: TransactionType!
    $filters: Filters
    $fileName: String!
  ) {
    triggerExportTransactions(
      accountId: $accountId
      transactionType: $transactionType
      filters: $filters
      fileName: $fileName
    ) {
      ...ExportProgressFields
    }
  }

  ${jl()}
`,_l=S.J1`
  subscription OnExportProgressUpdated($userId: ID!) {
    exportProgressUpdated(userId: $userId) {
      ...ExportProgressPayloadFields
    }
  }

  ${Ol()}
`,Fl=S.J1`
  query DownloadMyExport($id: ID!, $userId: ID!) {
    downloadMyExport(id: $id, userId: $userId)
  }
`,Pl=S.J1`
  mutation DeleteMyExport($id: ID!, $userId: ID!) {
    deleteMyExport(id: $id, userId: $userId)
  }
`;function Bl(){const{token:e}=qe();return e?.sub}var Ul=t(7163);const $l={[gn.l2.Initiated]:0,[gn.l2.InProgress]:1,[gn.l2.Ready]:2,[gn.l2.Completed]:3};function Ml(){const e=kl(),{showNotification:n}=tn();return(0,g.useCallback)(async(t,a,i)=>{if(!e)return n("Export is not ready yet. Please try again a couple of seconds later.");await e.startBackendExport({fileName:il(t),transactionType:a,filters:{text:[{filterType:gn.pe.Text,field:"importBatchId",type:gn.II.Equals,filter:i}]}})},[e,n])}t(99451);var Vl=t(3158),Gl=t.n(Vl);function zl(){const e=Je(),{data:{getAllLegislation:n=[]}={},loading:t,error:a}=(0,x.IT)(Gl(),{variables:{accountId:e},skip:!e});return{legislations:n,loading:t,error:a}}const Wl=S.J1`
  fragment AspectFields on Aspect {
    id
    accountId
    scope
    activity {
      id
      name
    }
    locations {
      id
      name
      tags {
        id
        tagName
      }
    }
    tags {
      id
      tagName
    }
    aspects {
      id
      name
    }
    impacts {
      id
      name
    }
    legislations {
      id
      title
    }
    emergencyConditions {
      id
      name
    }
    controlMeasures {
      id
      name
    }
    status {
      id
      name
    }
    task {
      id
    }
    departments {
      id
      name
    }
    likelihoodNoControl
    severityNoControl
    likelihoodControl
    severityControl
    significanceControl
    significanceNoControl
    reviewDate
    author {
      id
      name
    }
    editor {
      id
      name
    }
    owner {
      id
      name
    }
    createdDate
    editedDate
    activeTasks
  }
`,ql=S.J1`
  query GetAspectsByAccountId($accountId: ID!) {
    getAspectsByAccountId(accountId: $accountId) {
      totalRows
      rows {
        ...AspectFields
      }
    }
  }
  ${Wl}
`,Jl=S.J1`
  query GetAspectByIdQuery($id: ID!, $accountId: ID!) {
    getAspectById(id: $id, accountId: $accountId) {
      ...AspectFields
      evidenceNotes {
        id
        notes
        documents {
          id
          fileName
        }
      }
    }
  }
  ${Wl}
`;function Yl(e){const n=Je();for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];return function(e){return(0,g.useMemo)(()=>!!localStorage.getItem(e),[e])}(`ENABLE_${e}`)||[...a].includes(n)}t(26270);var Hl=t(29477),Kl=t.n(Hl);t(13758);var Ql=t(4271),Zl=t.n(Ql),Xl=t(73949),er=t.n(Xl),nr=t(77928),tr=t.n(nr);const ar=S.J1`
  subscription OnUserUpdated($id: ID!) {
    userUpdated(id: $id) {
      id
      email
      first_name
      last_name
      jobTitle
      department
      phone
      mobile
      profilePicture
      roles
      accessLevel
      account {
        id
        name
        type
        logoPath
        children {
          id
          name
          logoPath
        }
      }
      role {
        role
        name
        permissions {
          user
          account
          data
          governance
          document
          tag
          transposition
          email
          notification
          learn
          dashboard
          task
          ocr
          intelligence
          dataOverwriting
        }
      }
    }
  }
`;const ir=e=>e?.account?.find(e=>e?.startsWith("create"))?"accountconfig/accounts":e?.learn?.find(e=>e?.startsWith("createCourse"))?"learnconfig/learncontent":e?.dashboard?.includes("createAll")?"dashboardconfig/dashboards":e?.governance?.includes("createLegislationAll")?"governanceconfig/managementsubscriptions":e?.ocr?.includes("createTemplateAll")?"ocr":e?.data?.find(e=>e?.startsWith("getLocation"))?"accountconfig/locations":e?.data?.find(e=>e?.startsWith("createSupplier"))?"suppliers":e?.data?.find(e=>e?.startsWith("createWasteStream"))?"wasteconfig/wastestream":"";function lr(){const{token:e}=qe(),n=function(){const e=Bl(),{showNotification:n}=tn(),t=(0,C.m)(),{data:a}=(0,Ll.R)(ar,{variables:{id:e},skip:!e,onData:()=>{(async e=>{const n=await y.N.currentSession(),t=await y.N.currentAuthenticatedUser();await t.refreshSession(n.getRefreshToken(),async()=>{const n=await y.N.currentSession();await Ge(n,e)})})(t),n("Your account has been updated")}});return a?.userUpdated}(),{sub:t}=e||{},{data:a,loading:i}=(0,x.IT)(A,{variables:{name:t},skip:!!n||!t}),l=n||a?.getUserInfoById,r=l?.role?.permissions,o=l?.role?.role,s=function(e){return!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).find(n=>n.startsWith(e))};return{loading:i,isSystemAdmin:s("createSubscription",r?.learn||[]),allowedRioModules:r?.allowedRioModules||[],currentUser:l,role:o||null,user:r?.user||[],account:r?.account||[],data:r?.data||[],governance:r?.governance||[],document:r?.document||[],documentFolder:r?.documentFolder||[],tag:r?.tag||[],transposition:r?.transposition||[],email:r?.email||[],notification:r?.notification||[],learn:r?.learn||[],dashboard:r?.dashboard||[],task:r?.task||[],ocr:r?.ocr||[],intelligence:r?.intelligence||[],scheme:r?.scheme||[],project:r?.project||[],survey:r?.survey||[],flows:r?.flows||[],invest:r?.invest||[],configurationRoute:ir(r),learnService:{createCourse:s("createCourse",r?.learn)},licenceService:{createLicence:s("create",r?.licence||[]),assignLicence:s("assign",r?.licence||[])},dataTracker:r?.dataTracker||[],dataTrackerAnomalies:r?.dataTrackerAnomalies||[],dataOverwriting:r?.dataOverwriting||[],insite:r?.insite||[]}}const rr={home:{root:"impact",impact:{emissionByScope:"emission-by-scope",emissionBySource:"emission-by-source",carbonEmissionByScope:"carbon-emission-by-scope",grossNetEmission:"gross-net-emission"}},data:{root:"data"},reporting:{root:"reporting"},learn:{root:"engage"},governance:{root:"governance",legislation:"legislation",systems:"systems",agreements:"agreements",frameworks:"frameworks",policies:"policies",targets:"targets",materiality:"materiality",aspects:"environmental-aspects",health:"health-and-safety-risk-register"},docs:{root:"documents",all:"all",systems:"governance/ManagementSystems"},intelligence:{root:"intelligence"},surveys:{root:"surveys",sent:{overview:"sent/overview",surveys:"sent/surveys",survey:"sent/surveys/:surveyId",contributors:"sent/contributors",contributor:"sent/contributors/:contributorId",contributorAuditLog:"sent/contributors/:contributorId/response-log/:surveyId",submission:"sent/contributors/:contributorId/submission/:submissionId",auditLog:"sent/surveys/:surveyId/survey-log"},received:{surveys:"received",survey:"received/:surveyId",auditLog:"received/:surveyId/response-log"}},flows:{root:"flows"},tasks:{root:"/tasks"},configuration:{root:"configuration",menu:{accounts:"accountconfig/accounts",tracker:{frequency:"datatracker/frequency-recurrence",anomolies:"datatracker/anomaliesthresholds"},locations:"accountconfig/locations",meters:"accountconfig/meters",normalisers:"accountconfig/normalisers",schemes:"accountconfig/schemes",tags:"accountconfig/tags",users:"accountconfig/users",portfolio:{assets:"portfoliomanagement/asset-management",funds:"portfoliomanagement/funds",assetConversionFactors:"portfoliomanagement/asset-conversion-factors",fundFMVs:"portfoliomanagement/fund-fmvs"},aliases:{waste:"aliases/waste",meters:"aliases/meters",transport:"aliases/transport",location:"aliases/location",others:"aliases/others"},suppliers:"suppliers",contractors:"wasteconfig/contractors",containerTypes:"wasteconfig/containertypes",wasteStream:"wasteconfig/wastestream",hierarchies:"wasteconfig/wastehierarchies",hierarchiesNew:"wasteconfig/waste-hierarchies-new",surveys:{templates:"surveys/templates",subscriptions:"surveys/subscriptions",questions:"surveys/questions",categories:"surveys/question-categories"},flows:{root:"flows/flows",subscriptions:"flows/subscriptions"},dashboards:{root:"dashboardconfig/dashboards",subscriptions:"dashboardconfig/subscriptions"},learn:{content:"learnconfig/learncontent",subscriptions:"learnconfig/learnsubscriptions",assignLicense:"learnconfig/account/:accountId/:productType/:productId/licence/assign",createLicense:"learnconfig/account/:accountId/:productType/:productId/licence/create",evaluations:"learnconfig/evaluations",banners:"learnconfig/banners"},governance:{legislation:"governanceconfig/legislation",management:"governanceconfig/managementsubscriptions"},intelligence:{knowledgebases:"intelligenceconfig/knowledgebases",subscriptions:"intelligenceconfig/kbsubscriptions"},ocr:"ocr",organisation:{root:"organisation",organisationalUnits:"organisation/organisational-units",organisationalHierarchies:"organisation/organisational-hierarchies",locationAttachments:"organisation/location-attachments",accessPolicies:"organisation/access-policies",userGroups:"organisation/user-groups"}},emissionFactorsNew:"carbonconversionfactors/emission-factors-new",factors:{location:"carbonconversionfactors/location",market:"carbonconversionfactors/market",gas:"/configuration/carbonconversionfactors/location/gas",electricity:"/configuration/carbonconversionfactors/location/electricity",water:"/configuration/carbonconversionfactors/location/water",waste:"/configuration/carbonconversionfactors/location/waste",transport:"/configuration/carbonconversionfactors/location/transport",fuel:"/configuration/carbonconversionfactors/location/fuel",heat:"/configuration/carbonconversionfactors/location/heat",refrigerant:"/configuration/carbonconversionfactors/location/refrigerant",hotelStays:"/configuration/carbonconversionfactors/location/hotel-stays",material:"/configuration/carbonconversionfactors/location/material"}},projects:{root:"/projects"},header:{profile:"profile",contact:"contact",upgrade:"upgrade"},registration:{verify:"v2/verify-email",setPassword:"v2/set-password",resetPassword:"v2/reset-password",register:"v2/register",login:"v2/login",providerLogin:"login"},market:{checkout:"checkout",cart:"cart",engage:"upgrade/courses"}};function or(){return(0,g.useMemo)(()=>rr,[])}var sr=t(73469),dr=t.n(sr);function cr(){const e=Je(),{showNotification:n}=tn(),t=(0,m.Zp)(),a=or(),{licenceService:i,isSystemAdmin:l}=lr(),{data:{licencesPaid:r}={},...o}=(0,Ll.R)(dr(),{variables:{id:e},skip:!e,onData:()=>{l||i.assignLicence&&n("You have new licences",void 0,{callback:()=>{t(a.configuration.learn.subscriptions)},text:"Configure",autoClose:!1})}});return{data:r,...o}}var ur=t(35809),pr=t.n(ur);function mr(e){const[n,t]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,{data:{getAccountProductLicencesCount:t=[]}={},...a}]=(0,Ul._)(pr(),{...e,fetchPolicy:"cache-and-network"});return[e=>n({variables:{accountId:e}}),{data:t,...a}]}();return(0,g.useEffect)(()=>{e&&n(e)},[]),t}var fr=t(90156),yr=t.n(fr);function gr(e){const{data:{getUserInfoByAccountId:n={}}={},loading:t,error:a}=(0,x.IT)(yr(),{variables:{limit:1e3,accountId:e},skip:!e});return{data:{...n,content:n.users||[]},loading:t,error:a}}const hr=S.J1`
  query GetUserById($id: String!) {
    getUserInfoById(id: $id) {
      id
      email
      username
      roles
      first_name
      last_name
      jobTitle
      department
      mobile
      phone
      profilePicture
      disabled
      last_active_at
      total_time_spent_ms
      userGroupName
      account {
        id
        name
      }
      role {
        role
        name
        restrictedAccess
      }
      accessLevel
      allowedLocations {
        id
        name
        tags {
          id
          tagName
        }
      }
      allowedTags {
        id
        tagName
        locations {
          id
        }
      }
      disableAccountSelector
    }
  }
`;function xr(e){const{data:n}=mr(e),{data:{users:t=[]}={}}=gr(e);return{usersCount:t.length,productLicences:n}}t(10529),t(32356);const Tr="market_cart",br="market_discount";function vr(e,n){const t="percentage"===n.type?e/100*n.discount:n.discount;return(0,hn.round)(t,2)}function Cr(){const[,e]=(0,g.useState)(Math.random()),n=()=>e(Math.random()),t=()=>{const e=localStorage.getItem(Tr);return e?JSON.parse(e):[]},a=()=>new Map(t()),i=t(),l=JSON.parse(localStorage.getItem(br)),r=i.filter(e=>{let[,{parent:n}]=e;return(0,hn.isEmpty)(n)}).length,o=i.reduce((e,n)=>{let[,{totalAmount:t}]=n;return e+parseFloat(t)},0),s=l?function(e,n){if(!n)return e;const t=vr(e,n);return t<e?e-t:0}(o,l):o,d=l?vr(o,l):null,c=.2*s+s;return{addProduct:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=a();let o;r.has(e.id)?(o=r.get(e.id),o.quantity=o.quantity+t,o.totalAmount=Jt(o.quantity*parseFloat(e.price))):o={resizable:l,parent:i,quantity:t,product:e,totalAmount:Jt(t*parseFloat(e.price))},r.set(e.id,o),localStorage.setItem(Tr,JSON.stringify([...r])),n()},setProduct:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=a(),o={resizable:l,parent:i,quantity:t,product:e,totalAmount:Jt(t*parseFloat(e.price))};r.set(e.id,o),localStorage.setItem(Tr,JSON.stringify([...r])),n()},removeProduct:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const i=a();if(!i.has(e.id))return;const l=i.get(e.id),r=l.quantity-t;l.quantity=r<0?0:r,l.totalAmount=Jt(l.quantity*parseFloat(e.price)),i.set(e.id,l),localStorage.setItem(Tr,JSON.stringify([...i])),n()},removeLine:e=>{const t=a();t&&(Array.from(t).filter(n=>{let[t,{parent:a}]=n;return t===e||a===e}).forEach(e=>{let[n]=e;return t.delete(n)}),localStorage.setItem(Tr,JSON.stringify([...t])),n())},hasProduct:e=>a().has(e),clearCart:()=>{localStorage.removeItem(Tr),localStorage.removeItem(br),n()},findLine:e=>a().get(e),setDiscount:e=>{localStorage.setItem(br,JSON.stringify(e)),n()},state:{data:i,isCartEmpty:r<1,subTotal:Jt(o),newSubTotal:Jt(s),total:Jt(c),currency:{symbol:"£"},discount:l,discountFixed:d,linesCount:r}}}var kr=t(69627),Sr=t.n(kr);function Nr(){const[e,n]=function(){const[e,{data:{getProductsPaged:{content:n={},...t}={}}={},...a}]=(0,Ul._)(Sr()),i=e=>t=>{let{id:a,...i}=t;if(!n?.itemList)return;const l=(0,hn.findIndex)(n.itemList,n=>{let{id:t,productType:i}=n;return t===a&&i===e});return{...i,...n.itemList[l],id:a}};return[function(){return e({variables:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{page:0,size:999}})},{data:{...t,content:{[ht]:n.bundlesList?.map(i(ht))||[],[Tt]:[{id:"accountCapacity_id"}].map(i(Tt))||[],[xt]:[{id:"team_sub_id"}].map(i(xt))||[]}},...a}]}();return(0,g.useEffect)(()=>{e()},[]),n}const Ar=S.J1`
  query GetMeterOptions(
    $accountId: ID!
    $type: TransactionType
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getEnergySourceByAccountIdAndType(
      accountId: $accountId
      type: $type
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        value: id
        label: name
      }
    }
  }
`,Rr=S.J1`
  query getEnergySourceByAccountIdAndType(
    $accountId: ID!
    $type: TransactionType
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getEnergySourceByAccountIdAndType(
      accountId: $accountId
      type: $type
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        name
      }
    }
  }
`,Dr=S.J1`
  query getEnergySourceByAccountIdAndType(
    $accountId: ID!
    $type: TransactionType
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getEnergySourceByAccountIdAndType(
      accountId: $accountId
      type: $type
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        name
        inOut
        locationPoint {
          id
          name
          location {
            id
            name
            code
          }
        }
      }
    }
  }
`,Lr=S.J1`
  query GetEnergySourceFilter($accountId: ID!, $field: String!) {
    getEnergySourcePageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`;function Ir(e){let{withLocationData:n=!1,notifyOnNetworkStatusChange:t=!1,onCompleted:a=e=>{},variablesProps:i={},onError:l=()=>{},fetchPolicy:r=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=Je(),{data:{getEnergySourceByAccountIdAndType:s}={},error:d,loading:c,refetch:u,fetchMore:p}=(0,x.IT)(n?Dr:Rr,{variables:{type:e,accountId:o,...i},notifyOnNetworkStatusChange:t,fetchPolicy:r||void 0,onCompleted:a,onError:l,skip:!o});return{data:s?.rows||[],totalRows:s?.totalRows,loading:c,error:d,refetch:u,fetchMore:p,refetch:u}}t(9908);const jr=S.J1`
  fragment ProjectFields on Project {
    id
    accountId
    name
    description
    priority
    scheme {
      id
      name
      category {
        id
        name
      }
    }
    impact
    cost
    currencyId
    baselineStartDate
    startDate
    endDate
    frequency
    plannedBenefit
    plannedCostChange
    plannedCO2eChange
    locations {
      id
      name
    }
    owners {
      id
      first_name
      last_name
      profilePicture
    }
    evidenceNotes {
      id
      notes
      documents {
        id
        fileName
      }
    }
    meters {
      id
      name
    }
  }
`,wr=S.J1`
  fragment TaskFields on Task {
    id
    accountId
    author {
      id
      first_name
      last_name
      profilePicture
    }
    scope
    locations {
      id
      name
    }
    tags {
      id
      tagName
    }
    name
    description
    category
    subject
    item {
      ... on Legislation {
        id
        title
      }
      ... on Aspect {
        id
        activity {
          id
          name
        }
      }
      ... on Target {
        id
        name
      }
    }
    dueDate
    createdAt
    completedAt
    isCompleted
    owners {
      id
      first_name
      last_name
      profilePicture
    }
    priority
    projectId {
      id
      name
    }
  }
`,Or=S.J1`
  query GetProjectById($id: ID!) {
    getProject(id: $id) {
      ...ProjectFields
      tasks {
        ...TaskFields
      }
      scheme {
        id
        name
      }
      evidenceNotes {
        id
        notes
        documents {
          id
          fileName
        }
      }
    }
  }
  ${jr}
  ${wr}
`;var Er=t(16237),_r=t.n(Er);function Fr(){const e=Je(),{data:{getTargetsByAccountId:n=[]}={},loading:t,error:a}=(0,x.IT)(_r(),{variables:{accountId:e},skip:!e});return{targets:n,loading:t,error:a}}const Pr=S.J1`
  fragment getAccountInfoFragment on Account {
    id
    name
    type
    logoPath
    showChatBot
    n3rgyUploadGranularity
    n3rgyConsentDocumentLink
    isSupplierRequiredForDocument
    reportingYear {
      startDate
      endDate
    }
    accessControls {
      learn
      intelligence
      tasks
      projects
      surveys
      flows
      dataTracker
      dromoUpload
      v2Design
      dataOverwriting
      comply {
        legislation
        tagLevelLegislation
        policies
        systems
        targets
        frameworks
        agreements
      }
      data {
        waste
        electricity
        gas
        water
        materials
        fuel
        transport
        refrigerants
        heatSteam
        buildingEnergyRatings
        hotelStays
        investment
        scope3ActivityBasedMaterials
        scope3SpendBasedMaterials
        coreEstate
        oilAndGas
        insite
      }
      customFields
      organisation
    }
    departments {
      id
      name
    }
    children {
      id
      name
      logoPath
    }
    featureToggles {
      enableGlobalEmissionFactors
      dataAnalysisChatbot
    }
    customImpactDashboard {
      id
      name
      description
      area
      provider
      thumbnailType
      sheets {
        title
        filters {
          type
          label
          defaultValue
          relativeDateDefault
          isHidden
          dataset {
            datasetName
            columnName
          }
        }
        tiles {
          type
          title
          colSpan
          rowSpan
        }
        units
        withVat
        withCarbonComponents
      }
    }
  }
`,Br=S.J1`
  query GetAccountInfo($id: ID!) {
    getAccountInfo(id: $id) {
      ...getAccountInfoFragment
    }
  }
  ${Pr}
`;var Ur=t(34226),$r=t.n(Ur);function Mr(){const e=Je(),n=function(){const e=Je(),{showNotification:n}=tn(),{data:t}=(0,Ll.R)($r(),{variables:{id:e},skip:!e,onData:()=>{n("Your account has been updated")}});return t?.accountUpdated}(),{data:t,loading:a}=(0,x.IT)(Br,{variables:{id:e},skip:!!n||!e});return{data:n?.accessControls||t?.getAccountInfo?.accessControls||{intelligence:!1,learn:!0,tasks:!0,projects:!1,dataTracker:!1,organisation:!1,comply:{legislation:!0,tagLevelLegislation:!1,policies:!0,systems:!0,targets:!0,frameworks:!0,agreements:!0},data:{waste:!0,electricity:!0,gas:!0,water:!0,materials:!0,fuel:!0,transport:!0,refrigerants:!0,heatSteam:!0,buildingEnergyRatings:!0,hotelStays:!0,investment:!0,coreEstate:!0,oilAndGas:!0}},loading:a}}function Vr(e){const{data:n}=(0,x.IT)(Br,{variables:{id:e}});return n&&n.getAccountInfo?n.getAccountInfo:null}var Gr=t(63219);const zr="AG_GRID_PARAMS",Wr="Energy generation category (kwh)";function qr(){let{autoFit:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,t]=(0,g.useState)();!function(e){const[n]=(0,Gr.useQueryParam)("selectedRows",Gr.ArrayParam),t=n?.length||0;(0,g.useEffect)(()=>{t&&e&&e.forEachNodeAfterFilter(e=>{e.id&&n?.includes(e.id)&&e.setSelected(!0)})},[n,t,e])}(n?.gridApi);const a=Je(),{token:{sub:i}}=qe(),l=()=>{const e=window.location.pathname;return`${i}-${a}-${e}`},r=(0,g.useCallback)(e=>{let{api:n}=e;const t=l(),a=localStorage.getItem(zr);let i=null;a&&(i=JSON.parse(a));const r=i?i[t]:null;r?.columnState&&n.applyColumnState({state:r.columnState}),r?.filterModel&&n.setFilterModel(r?.filterModel)},[]),o=(0,g.useCallback)(n=>{t(e=>({...e,gridApi:n.api})),e&&n.api.sizeColumnsToFit()},[e]),s=e=>{const n=l(),t=localStorage.getItem(zr);let a=null;t&&(a=JSON.parse(t));const i=a&&n?{...a,[n]:{...a[n],...e}}:{[n]:e};localStorage.setItem(zr,JSON.stringify(i))},d=(0,hn.debounce)(e=>{s({columnState:e})},100),c=(0,g.useCallback)(e=>{const n=e.api.getFilterModel();s({filterModel:n})},[]),u=(0,g.useCallback)(()=>{t(null)},[]),p=(0,g.useCallback)(()=>{if(!n?.gridApi)return;const e=n?.gridApi?.getColumnState();d(e)},[n?.gridApi]),m=(0,g.useCallback)(p,[]);return(0,g.useMemo)(()=>({onFirstDataRendered:r,onGridReady:o,onFilterChanged:c,onSortChanged:m,onSaveGridColumnState:p,onDestroy:u,api:n?.gridApi}),[r,o,c,m,p,u,n])}function Jr(e){let{type:n}=e;return Kr({query:Ar,request:{type:n,accountId:Je()},response:"getEnergySourceByAccountIdAndType"})}var Yr=t(38649),Hr=t.n(Yr);function Kr(e){let{query:n,response:t,request:a}=e;const[i]=(0,Ul._)(n,{fetchPolicy:"network-only"}),l=za(i,e=>{let{limit:n,offset:t}=e;return{limit:n,offset:t,...a}},e=>e[t].rows,1e3);return()=>pa(l())}const Qr={Contractor:"contractorType",Carrier:"carrierType",Haulier:"haulierType",Supplier:"supplierType",Broker:"brokerType"},Zr=function(){let{utility:e,type:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Je(),a={text:[]};return n&&a.text?.push({field:Qr[n],type:gn.II.Equals,filterType:gn.pe.Text,filter:n}),e&&a.text?.push({field:"utility",type:gn.II.Equals,filterType:gn.pe.Text,filter:e}),Kr({query:Hr(),request:{accountId:t,filters:a},response:"getSuppliersPage"})};var Xr=t(53280),eo=t.n(Xr);function no(){const e=Je(),[n]=(0,Ul._)(eo());return(0,g.useCallback)(async()=>{const{data:t}=await n({variables:{accountId:e}});return t?.getMarketCarbonConversionFactors??[]},[n,e])}var to=t(87228),ao=t.n(to);function io(){const[e]=(0,Ul._)(ao());return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getAllCurrencyTypes??[]},[e])}var lo=t(47055),ro=t.n(lo),oo=t(23402),so=t.n(oo),co=t(81526),uo=t.n(co),po=t(76486),mo=t.n(po),fo=t(80691),yo=t.n(fo),go=t(91053),ho=t.n(go);const xo=()=>{const[e]=(0,Ul._)(ho());return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getAllUnits??[]},[e])};var To=t(37308),bo=t.n(To),vo=t(77154),Co=t.n(vo),ko=t(92953),So=t.n(ko);function No(){return Kr({query:So(),request:{accountId:Je()},response:"getLocationsPage"})}var Ao=t(25278),Ro=t.n(Ao),Do=t(20407),Lo=t.n(Do);var Io=t(66259),jo=t.n(Io);var wo=t(57310),Oo=t.n(wo),Eo=t(65522),_o=t.n(Eo);function Fo(e){let{type:n,skip:t}=e;const{showNotification:a}=tn(),i=function(e){const n=Jr({type:e}),t=Zr(),a=no(),i=io();return(0,g.useCallback)(async()=>{const[e,l,r,o]=await Promise.all([n(),t(),a(),i()]);return{"meter name":e,supplier:l,tariff:r,currency:o,"purchase type":ji()}},[n,t,a,i])}(n),l=function(){const e=Jr({type:gn.D_.Water}),n=Zr(),t=no(),a=io();return(0,g.useCallback)(async()=>{const[i,l,r,o]=await Promise.all([e(),n(),t(),a()]);return{"meter name":i,supplier:l,tariff:r,currency:o,"purchase type":ji()}},[e,n,t,a])}(),r=function(){const e=(()=>{const e=Je(),[n]=(0,Ul._)(ro());return(0,g.useCallback)(async()=>{const{data:t}=await n({variables:{id:e}});return t?.getWasteInsByAccountId??[]},[n,e])})(),n=(()=>{const e=Je(),[n]=(0,Ul._)(so());return(0,g.useCallback)(async()=>{const{data:t}=await n({variables:{id:e}});return t?.getWasteOutsByAccountId??[]},[n,e])})(),t=(()=>{const e=Je(),[n]=(0,Ul._)(uo());return(0,g.useCallback)(async()=>{const{data:t}=await n({variables:{accountId:e,page:1,pageSize:kt,filterValue:""}});return t?.getWasteStreamsByAccountId.wasteStreams??[]},[n,e])})(),a=(()=>{const[e]=(0,Ul._)(mo());return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getAllWasteTreatmentProcesses?.map(e=>({value:e.id,label:e.name}))??[]},[e])})(),i=Zr({type:"Contractor",utility:gn.D_.Waste}),l=Zr({type:"Carrier",utility:gn.D_.Waste}),r=(()=>{const[e]=(0,Ul._)(yo());return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getContainerTypeSizePage.typeSizes??[]},[e])})(),o=io(),s=xo();return(0,g.useCallback)(async()=>{const[d,c,u,p,m,f,y,g,h]=await Promise.all([e(),n(),t(),a(),i(),l(),r(),o(),s()]);return{"waste in location":d,"waste out location":c,"purchase type":ji(),"waste stream":u,"treatment process":p,"waste contractor":m,"waste carrier":f,"container type":y,currency:g,"unit of weight":h}},[e,n,t,a,i,l,r,o,s])}(),o=function(){const e=No(),n=Zr(),t=io(),a=(()=>{const[e]=(0,Ul._)(bo(),{variables:{accountId:Je()}});return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getMaterialsByAccountID??[]},[e])})(),i=(()=>{const[e]=(0,Ul._)(Co());return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getAllMaterialOriginTypes??[]},[e])})(),l=xo();return(0,g.useCallback)(async()=>{const[r,o,s,d,c,u]=await Promise.all([e(),n(),t(),a(),i(),l()]);return{location:r,supplier:o,subcontractor:o,currency:s,material:d,origin:c,"quantity (weight) units":u,"purchase type":ji()}},[e,n,t,a,i,l])}(),s=function(){const e=(()=>{const[e]=(0,Ul._)(Ro());return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getRefrigerantGasTypes??[]},[e])})(),n=(()=>{const[e]=(0,Ul._)(Lo());return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getRefrigerantGasGroups??[]},[e])})(),t=No(),a=io(),i=xo();return(0,g.useCallback)(async()=>{const[l,r,o,s,d]=await Promise.all([e(),n(),t(),i(),a()]);return{"gas type":l,"gas group":r,location:o,unit:s,currency:d,"purchase type":ji()}},[a,t,i,e,n])}(),d=function(){const e=No(),n=function(){const[e]=(0,Ul._)(jo());return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getAllFuelTypes??[]},[e])}(),t=Zr(),a=io(),i=xo();return(0,g.useCallback)(async()=>{const[l,r,o,s,d]=await Promise.all([e(),n(),t(),a(),i()]);return{location:l,"fuel type":r,supplier:o,"quantity units":d,currency:s,"purchase type":ji()}},[e,n,t,a,i])}(),c=function(){const e=No(),n=Zr(),t=io(),a=xo(),i=(()=>{const[e]=(0,Ul._)(Oo());return(0,g.useCallback)(async()=>{const{data:n}=await e(),t=[],a=[];for(const e of n?.getAllTransportTypes??[]){t.push({label:e.name,value:e.id});for(const n of e.subtypes??[])n&&a.push({label:n.name,value:n.id})}return{types:t,subtypes:a}},[e])})(),l=(()=>{const[e]=(0,Ul._)(Oo());return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getAllTransportFuelTypes?.map(e=>({label:e.name,value:e.id}))??[]},[e])})(),r=(()=>{const[e]=(0,Ul._)(_o());return(0,g.useCallback)(async()=>{const{data:n}=await e();return n?.getAllJourneyTargets?.map(e=>({label:e.name,value:e.id}))??[]},[e])})();return(0,g.useCallback)(async()=>{const[o,s,d,c,{types:u,subtypes:p},m,f]=await Promise.all([e(),n(),t(),a(),i(),l(),r()]);return{location:o,supplier:s,"unit of volume":c,"unit of distance":c,currency:d,"purchase type":ji(),type:u,subtype:p,"fuel type":m,"journey target":f}},[e,n,t,a,i,l,r])}(),[u,p]=(0,g.useState)({}),[m,f]=(0,g.useState)(!0),[y,h]=(0,g.useState)(null);return(0,g.useEffect)(()=>{if(t)return f(!1);let e;if([gn.D_.Electricity,gn.D_.Heatsteam,gn.D_.Gas].includes(n))e=i();else if(n===gn.D_.Water)e=l();else if(n===gn.D_.Waste)e=r();else if(n===gn.D_.Materials)e=o();else if(n===gn.D_.Refrigerant)e=s();else if(n===gn.D_.Fuel)e=d();else{if(n!==gn.D_.Transport){const e=new Error(`Unsupported transaction type: ${n}`);return h(e),a(e.message,"danger"),f(!1)}e=c()}e.then(e=>{const n=xn().mapValues(e,e=>function(e){const n={};return e.forEach(e=>{n[e.value]=e,n[e.label]=e}),{list:e,index:n}}(e));p(n)}).catch(e=>h(e)).finally(()=>f(!1))},[]),(0,g.useMemo)(()=>({options:u,loading:m,error:y}),[u,m,y])}const Po=S.J1`
  query GetAllCountries {
    getAllCountries {
      id
      numericCode
      name
      alpha2Code
    }
  }
`;function Bo(){const{data:e}=(0,x.IT)(Po);let n=[],t=null;const a=e?.getAllCountries;if(a){const e=(0,hn.sortBy)(a,"name"),i=(0,hn.find)(e,e=>e.name.includes("United Kingdom"));n=e.map(e=>({value:e.id,label:e.name})),t={value:i.id,label:i.name}}return{countryList:n,defaultCountry:t,allCountries:a}}const Uo=(e,n)=>{if(!e||!n)return null;const t=[];return e.forEach(e=>{n.includes(e.id)&&t.push({value:e.id,label:e.name})}),t};function $o(e,n){const[t,a]=(0,g.useState)(!1),i=lr().account.find(e=>e.startsWith("createDepartment")),l=e?e.map(e=>({id:e.id,value:e.id,label:e.name})):[];n&&!Array.isArray(n)&&(0,hn.find)(e,{id:n})&&l.unshift({value:"notSelected",label:"Not selected"}),i&&l.unshift({value:"NEW",label:"Create New ..."});const r=Array.isArray(n)?n.map(e=>({label:e.name||e.label,value:e.id||e.value}))||[]:n,o=(e,n,t)=>{(Array.isArray(e.target.select)?e.target.select.find(e=>{let{value:n}=e;return"NEW"===n}):"NEW"===e.target.select?.value)?n(e):t(e)};return{departmentSelect:e=>(0,fe.jsx)(ie.l6,{options:l,value:r?(0,hn.find)(l,{value:r}):null,onChange:n=>{o(n,()=>a(!0),n=>e({target:{name:"department",value:n.target.value}}))},placeholder:(0,fe.jsx)(de.A,{id:"components.selectPlaceholder"})}),departmentMultipleSelect:(e,n)=>(0,fe.jsx)(ie.KF,{options:l,value:r,onChange:n=>{o(n,()=>a(!0),()=>e(n))},error:n}),showCreateDepartment:t,setShowCreateDepartment:a}}var Mo=t(2646),Vo=t.n(Mo);function Go(){const{data:{getAllCurrencyTypes:e=[]}={},...n}=(0,x.IT)(Vo());return{data:(0,hn.orderBy)(e,["name"],["asc"]),...n}}function zo(){const{data:e}=(0,x.IT)(Br,{variables:{id:Je()}});return e?.getAccountInfo||null}var Wo=t(60680),qo=t.n(Wo);function Jo(){const e=Je(),{data:n}=(0,x.IT)(qo(),{variables:{accountId:e,offset:0,limit:1e3}}),t=n?.getLocationsPage.rows;return(0,g.useMemo)(()=>(0,hn.orderBy)(t??[],"name","asc"),[t])}function Yo(){const e=Bl(),{data:n}=(0,x.IT)(A,{variables:{name:e}});return n?.getUserInfoById}function Ho(){const e=zo(),{customFields:n}=e?.accessControls||{};return(0,g.useMemo)(()=>new pt.CustomField.Accessor(n||[]),[n])}var Ko=t(28892),Qo=t.n(Ko);const Zo=S.J1`
  query GetComplyData($accountId: ID!) {
    getDocumentRecordsForReview(id: $accountId) {
      id
      reviewDate
      fileName
    }
  }
`,Xo=S.J1`
  query GetLegislationAlerts($accountId: ID!) {
    getLegislationAlerts(accountId: $accountId) {
      expired {
        id
        title
      }
      approaching {
        id
        title
      }
      flagged {
        id
        title
      }
    }
  }
`,es=S.J1`
  query GetAspectsAlerts($accountId: ID!) {
    getAspectsAlerts(accountId: $accountId) {
      expired {
        id
        activity {
          id
          name
        }
        reviewDate
      }
      approaching {
        id
        activity {
          id
          name
        }
        reviewDate
      }
    }
  }
`,ns=S.J1`
  query GetAnalyseData($accId: ID!, $wasteBatchPage: Int!) {
    getDataImportBatchesByAccountId(accountId: $accId, page: $wasteBatchPage, type: WASTE, pageSize: 25) {
      page
      pageSize
      pageCount
      isLastPage
      isFirstPage
      batches {
        id
        status
        rowsUploaded
        fileName
        timeStamp
      }
    }
    getTargetsByAccountId(accountId: $accId) {
      ...TargetFields
    }
  }
  ${Qo()}
`,ts=S.J1`
  fragment FlowDetails on Flow {
    id
    progress {
      id
      remainingEstimate
    }
    title
    description
    thumbnailUrl
    totalEstimate
    tags
  }
`,as=S.J1`
  fragment AccountDetails on Account {
    id
    name
    logoPath
    children {
      id
      name
      logoPath
    }
  }
`,is=S.J1`
  query GetFlowSubscriptions {
    getFlowSubscriptions {
      flow {
        ...FlowDetails
      }
      account {
        ...AccountDetails
      }
    }
  }
  ${ts}
  ${as}
`,ls=S.J1`
  mutation CreateFlowSubscription($accountId: ID!, $flowId: ID!) {
    createFlowSubscription(accountId: $accountId, flowId: $flowId) {
      flow {
        ...FlowDetails
      }
      account {
        ...AccountDetails
      }
    }
  }
  ${ts}
  ${as}
`,rs=S.J1`
  mutation DeleteFlowSubscription($accountId: ID!, $flowId: ID!) {
    deleteFlowSubscription(accountId: $accountId, flowId: $flowId) {
      flow {
        ...FlowDetails
      }
      account {
        ...AccountDetails
      }
    }
  }
  ${ts},
  ${as}
`;function os(){return(0,x.IT)(is)}const ss=S.J1`
  query GetAliasByIdAndType($aliasId: ID!, $accountId: ID!, $aliasType: AliasType!, $energyType: TransactionType) {
    getAliasByIdAndType(aliasId: $aliasId, accountId: $accountId, aliasType: $aliasType, energyType: $energyType) {
      id
      name
      parentId
      aliasType
      parentItem {
        id
        name
      }
    }
  }
`,ds=S.J1`
  mutation DeleteAliasByIdAndType($aliasId: ID!, $accountId: ID!, $aliasType: AliasType!) {
    deleteAliasByIdAndType(aliasId: $aliasId, accountId: $accountId, aliasType: $aliasType)
  }
`,cs=S.J1`
  query GetTreatmentProcesses {
    getAllWasteTreatmentProcesses {
      id
      name
    }
  }
`,us=S.J1`
  query GetContainerTypesByAccountId($filterValue: String) {
    getContainerTypeSizePage(page: 1, pageSize: 50, filterValue: $filterValue) {
      typeSizes {
        id
        name
      }
    }
  }
`,ps=S.J1`
  mutation updateAlias($id: ID!, $name: String!, $parentId: ID!, $accountId: ID!, $aliasType: AliasType!) {
    updateAlias(input: { id: $id, name: $name, parentId: $parentId, accountId: $accountId, aliasType: $aliasType }) {
      id
      name
      parentId
      aliasType
      parentItem {
        id
        name
        typeId
      }
    }
  }
`,ms=S.J1`
  query GetLocationsByAccountId(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getLocationsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
      }
    }
  }
`,fs=S.J1`
  query GetAllFuelTypes {
    getAllFuelTypes {
      id
      name
    }
  }
`,ys=S.J1`
  query GetAllTransportFuelTypes {
    getAllTransportFuelTypes {
      id
      name
    }
  }
`,gs=S.J1`
  query GetAllTransportFuelTypes {
    getAllTransportSubTypes {
      id
      name
    }
  }
`,hs=S.J1`
  query GetAllJourneyTargets {
    getAllJourneyTargets {
      id
      name
    }
  }
`,xs=S.J1`
  query GetAllTransportTypes {
    getAllTransportTypes {
      id
      name
    }
  }
`,Ts=S.J1`
  query GetAllUnits {
    getAllUnits {
      id
      name
    }
  }
`,bs=S.J1`
  query GetAllAccuracyTypes {
    getAllAccuracyTypes {
      id
      name
    }
  }
`,vs=S.J1`
  query GetAllCurrencyTypes {
    getAllCurrencyTypes {
      id
      name
    }
  }
`,Cs=(S.J1`
  query GetAllMaterialOriginTypes {
    getAllMaterialOriginTypes {
      id
      name
    }
  }
`,S.J1`
  query GetAliasesPage(
    $accountId: ID!
    $aliasType: AliasType!
    $energyType: TransactionType
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getAliasesPage(
      accountId: $accountId
      aliasType: $aliasType
      energyType: $energyType
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        name
        parentId
        parentItem {
          id
          name
          typeId
        }
        aliasType
        energyType
      }
    }
  }
`),ks=S.J1`
  fragment AnomalyThresholdFields on AnomalyThreshold {
    id
    account {
      id
      name
    }
    thresholdPercentage
    utilityType {
      transactionType
      isDefault
    }
    monthlyVarianceDetectionEnabled
    annuallyVarianceDetectionEnabled
  }
`,Ss=S.J1`
  query GetAnomalyThresholds(
    $accountId: ID
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getAnomalyThresholds(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        ...AnomalyThresholdFields
      }
    }
  }
  ${ks}
`;function Ns(){const e=Bl(),{data:{getUserInfoById:n}={},...t}=(0,x.IT)(A,{variables:{name:e}});let a;return n&&(a=(0,hn.cloneDeep)(n),a.account={...a.account,isEngage:a?.account?.type===gn.CO.Engage,isTeam:a?.account?.type===gn.CO.Team,isEnterprise:a?.account?.type===gn.CO.Enterprise}),{data:a,...t}}const As=S.J1`
  query GetFlows {
    getFlows {
      ...FlowDetails
    }
  }
  ${ts},
`;t(95041);const Rs=S.J1`
  fragment LocationFields on Location {
    id
    name
    address {
      id
      address1
      address2
      address3
      city
      phone1
      postcode
      country {
        alpha2Code
        name
        id
      }
    }
    wasteIn {
      id
      name
    }
    wasteOut {
      id
      name
    }
    tags {
      id
      tagName
    }
    tenure {
      id
      name
    }
    buildingType {
      id
      name
    }
    region {
      id
      name
    }
    departments {
      id
      name
    }
    code
    floorSpace
    sharedEmissionPercentage
    startDate
    endDate
    leaseRenewalDate
    notes
    description
    attributes
    picture
    enableProject
    displayOnImpactDashboard
  }
`,Ds=S.J1`
  fragment WasteTransactionsPageItemFields on WasteTransactionPageItem {
    id
    accountId
    wasteOut
    locationCode
    locationEndDate
    locationSharedEmissionPercentage
    locationCustomAttributes
    location {
      ...LocationFields
    }
    wasteStream
    isHazardous
    ewc
    importBatchFileName
    importBatchId
    currency
    treatmentProcess
    tags
    wasteIn
    individualCollectionDate
    periodStartDate
    periodEndDate
    numberOfContainers
    numberOfCollections
    quantity
    quantityUnitName
    accuracy
    gateFee
    managementFee
    binHire
    binExchangeFee
    transportCharge
    liftCharge
    equipmentHire
    miscCost
    miscCostRate
    rebate
    penalty
    notes
    reference
    consignmentNoteId
    wasteTransferNote
    wtnDocumentId
    consignmentNoteEA
    salesOrder
    invoiceNumber
    evidenceReference
    otherReference
    wasteContractor
    containerTypeSize
    labourCost
    wasteCarrier
    totalCost
    totalCostVat
    carbonEmission
    departments
    projectPhase
    purchaseType
    organisationalUnits
    estimatesScenario
  }
  ${Rs}
`,Ls=S.J1`
  query GetWasteTransactionsPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
    $hiddenColumns: [String!]
  ) {
    getWasteTransactionsPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
      hiddenColumns: $hiddenColumns
    ) {
      totalRows
      rows {
        ...WasteTransactionsPageItemFields
      }
    }
  }
  ${Ds}
`,Is=S.J1`
  query GetWasteTransactionsReportingPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
    $hiddenColumns: [String!]
  ) {
    getWasteTransactionsReportingPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
      hiddenColumns: $hiddenColumns
    ) {
      totalRows
      datasetName
      rows {
        ...WasteTransactionsPageItemFields
      }
    }
  }
  ${Ds}
`,js=S.J1`
  query GetWasteTransactionsPageFilter($accountId: ID!, $field: String!) {
    getWasteTransactionsPageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,ws=S.J1`
  query GetWasteTransactionsReportingPageFilter($accountId: ID!, $field: String!) {
    getWasteTransactionsReportingPageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`;var Os=t(79294),Es=t.n(Os);function _s(){const e=(0,x.IT)(Es(),{notifyOnNetworkStatusChange:!0});return{data:e?.data?.getAllTransportFuelTypes,refetch:n=>e.refetch(n)}}function Fs(){const{data:e}=(0,x.IT)(_o());return e?.getAllJourneyTargets}function Ps(){const{data:e}=(0,x.IT)(Oo());return e?.getAllTransportTypes}t(73543);const Bs=(e,n,t,a)=>{const i=bn()(n).clone().add(a,e),l=bn()(n).clone().add(a+1,e).subtract(1,"days");return{startDate:i.toDate(),endDate:l.isAfter(t)?t:l.toDate()}},Us={[gt.Daily]:"days",[gt.Weekly]:"weeks",[gt.Monthly]:"months",[gt.Quarterly]:"quarters",[gt.Annually]:"years"},$s=(e,n,t,a)=>{const i=bn()(n).clone().add(a,e),l=bn()(n).clone().add(a+1,e).subtract(1,"days");return{startDate:i.toDate(),endDate:l.isAfter(t)?t:l.toDate()}},Ms=(e,n)=>{const t=Kn(e);return Number.isNaN(t)?e:(0,hn.round)(t/n,2)},Vs=JSON.parse('[{"defaultName":"Individual Collection Date","id":"individualCollectionDate","field":null,"displayName":"Individual Collection Date","display":true,"width":200,"dataType":"date","__typename":"WasteColumn","filterable":false},{"defaultName":"Waste Out Location","id":"wasteOut","field":"wasteOut","displayName":"Waste-Out Location","display":true,"width":300,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Waste In Location","id":"wasteIn","field":"wasteIn","displayName":"Waste-In Location","display":true,"width":300,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Waste Stream","id":"wasteStream","field":"wasteStream","displayName":"Waste Stream","display":true,"width":300,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Waste Contractor","id":"wasteContractor","field":"wasteContractor","displayName":"Waste Contractor","display":true,"width":300,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Waste Carrier","id":"wasteCarrier","field":null,"displayName":"Waste Carrier","display":true,"width":300,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Treatment Process","id":"treatmentProcess","field":"treatmentProcess","displayName":"Treatment Process","display":true,"width":200,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Number Of Collections","id":"numberOfCollections","field":null,"displayName":"Number Of Collections","display":true,"width":150,"dataType":"number","__typename":"WasteColumn","filterable":true},{"defaultName":"Number Of Containers","id":"numberOfContainers","field":null,"displayName":"Number Of Containers","display":true,"width":150,"dataType":"number","__typename":"WasteColumn","filterable":true},{"defaultName":"Container Type","id":"containerTypeSize","field":"containerTypeSize","displayName":"Container Type Size","display":true,"width":300,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Quantity","id":"quantity","field":null,"displayName":"Quantity","display":true,"width":150,"dataType":"number","__typename":"WasteColumn","filterable":true},{"defaultName":"Unit Of Weight","id":"unitOfWeight","field":null,"displayName":"Unit Of Weight","display":true,"width":150,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Act/Est","id":"accuracy","field":null,"displayName":"Act/Est","display":true,"width":150,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Gate Fee","id":"gateFee","field":null,"displayName":"Gate Fee","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":"Management Fee","id":"managementFee","field":null,"displayName":"Management Fee","display":true,"dataType":"currency","width":150,"__typename":"WasteColumn","filterable":true},{"defaultName":"Bin Hire","id":"binHire","field":null,"displayName":"Bin Hire","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":"Bin Exchange","id":"binExchangeFee","field":null,"displayName":"Bin Exchange Fee","display":true,"dataType":"currency","width":150,"__typename":"WasteColumn","filterable":true},{"defaultName":"Transport Charge","id":"transportCharge","field":null,"displayName":"Transport Charge","display":true,"dataType":"currency","width":150,"__typename":"WasteColumn","filterable":true},{"defaultName":"Lift Charge","id":"liftCharge","field":null,"displayName":"Lift Charge","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":"Equipment Hire","id":"equipmentHire","field":null,"displayName":"Equipment Hire","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":"Labour Cost","id":"labourCost","field":null,"displayName":"Labour Cost","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":"Misc Cost","id":"miscCost","field":null,"displayName":"Misc Cost","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":"Misc Cost Rate","id":"miscCostRate","field":null,"displayName":"Misc Cost Rate","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":"Rebate","id":"rebate","field":null,"displayName":"Rebate","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":"Penalty","id":"penalty","field":null,"displayName":"Penalty","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":null,"id":"totalCost","field":null,"displayName":"Total Cost","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":null,"id":"totalCostVat","field":null,"displayName":"Total Cost (VAT)","display":true,"width":150,"dataType":"currency","__typename":"WasteColumn","filterable":true},{"defaultName":"Currency","id":"currency","field":null,"displayName":"Currency Code","display":true,"width":150,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Notes","id":"notes","field":null,"displayName":"Notes","display":true,"width":600,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Reference","id":"reference","field":null,"displayName":"Reference","display":true,"width":200,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Waste Transfer Note ID","id":"wasteTransferNote","field":null,"displayName":"Waste Transfer Note ID","display":true,"width":200,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Consignment Note (SEPA) ID","id":"consignmentNoteId","field":null,"displayName":"Consignment Note (SEPA) ID","display":true,"width":220,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Consignment Note (EA) ID","id":"consignmentNoteEA","field":null,"displayName":"Consignment Note (EA) ID","display":true,"width":200,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Sales Order ID","id":"salesOrder","field":null,"displayName":"Sales Order ID","display":true,"width":150,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Invoice Number","id":"invoiceNumber","field":null,"displayName":"Invoice Number","display":true,"width":150,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Evidence Reference","id":"evidenceReference","field":null,"displayName":"Evidence Reference","display":true,"width":150,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":"Other Reference","id":"otherReference","field":null,"displayName":"Other Reference","display":true,"width":150,"dataType":"string","__typename":"WasteColumn","filterable":true},{"defaultName":null,"id":"documentCount","field":null,"displayName":"Documents","display":true,"width":150,"dataType":"documentLink","__typename":"WasteColumn","filterable":false},{"defaultName":null,"id":"carbonScope3","field":null,"displayName":"Carbon Emission Scope 3 (kgCO2e)","display":true,"width":350,"dataType":"number","__typename":"WasteColumn","filterable":true},{"defaultName":null,"id":"importBatch","field":"importBatch.fileName","displayName":"Upload Reference","display":true,"width":350,"dataType":"uploadReference","__typename":"WasteColumn","filterable":true}]'),Gs=JSON.parse('[{"defaultName":"Meter Name","id":"meterName","field":"energySource","displayName":"Meter Name","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Location","id":"locationName","field":"locationPoint.name","displayName":"Location","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Start Date (DD/MM/YYYY)","id":"startDate","field":null,"displayName":"Start Date","display":true,"width":200,"dataType":"date","__typename":"EnergyColumn","filterable":false},{"defaultName":"Start Time (HH:mm)","id":"startTime","field":"startTime","displayName":"Start Time","display":true,"width":200,"dataType":"time","__typename":"EnergyColumn","filterable":false},{"defaultName":"End Date (DD/MM/YYYY)","id":"endDate","field":null,"displayName":"End Date","display":true,"width":150,"dataType":"date","__typename":"EnergyColumn","filterable":false},{"defaultName":"End Time (HH:mm)","id":"endTime","field":"endTime","displayName":"End Time","display":true,"width":200,"dataType":"time","__typename":"EnergyColumn","filterable":false},{"defaultName":"Quantity (kWh)","id":"quantity","field":null,"displayName":"Quantity (kWh)","display":true,"width":150,"dataType":"number","__typename":"EnergyColumn","filterable":true},{"defaultName":"Supplier","id":"supplier","field":null,"displayName":"Supplier","display":true,"width":150,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Charge/kWh","id":"charge/kwh","field":null,"displayName":"Charge/kWh","display":true,"width":150,"dataType":"number","__typename":"EnergyColumn","filterable":true},{"defaultName":"Act/Est","id":"accuracy","field":"accuracy","displayName":"Act/Est","display":true,"width":150,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Total Cost","id":"totalCost","field":null,"displayName":"Total Cost","display":true,"width":150,"dataType":"currency","__typename":"EnergyColumn","filterable":true},{"defaultName":"Total Cost (VAT)","id":"totalCostVat","field":null,"displayName":"Total Cost (VAT)","display":true,"width":150,"dataType":"currency","__typename":"EnergyColumn","filterable":true},{"defaultName":"Tariff","id":"tariff","field":"tariff","displayName":"Tariff","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Currency","id":"currency","field":null,"displayName":"Currency Code","display":true,"width":150,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":null,"id":"carbonScope2","field":null,"displayName":"Carbon Emission Scope 2 (kgCO2e)","display":true,"width":150,"dataType":"number","__typename":"EnergyColumn","filterable":true},{"defaultName":null,"id":"carbonScope3","field":null,"displayName":"Carbon Emission Scope 3 (kgCO2e)","display":true,"width":150,"dataType":"number","__typename":"EnergyColumn","filterable":true},{"defaultName":"Activity","id":"activity","field":null,"displayName":"Activity","display":true,"width":150,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Comment","id":"comment","field":null,"displayName":"Comment","display":true,"width":300,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Invoice Number","id":"invoiceNumber","field":null,"displayName":"Invoice Number","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":false},{"defaultName":"Evidence Reference","id":"evidenceReference","field":null,"displayName":"Evidence Reference","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":false},{"defaultName":"Other Reference","id":"otherReference","field":null,"displayName":"Other Reference","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":false},{"defaultName":null,"id":"importBatch","field":"importBatch.fileName","displayName":"Upload Reference","display":true,"width":350,"dataType":"uploadReference","__typename":"EnergyColumn","filterable":true}]'),zs=JSON.parse('[{"defaultName":"Meter Name","id":"meterName","field":"energySource","displayName":"Meter Name","display":true,"width":200,"dataType":"string","__typename":"GasColumn","filterable":true},{"defaultName":"Location","id":"locationName","field":"locationPoint.name","displayName":"Location","display":true,"width":200,"dataType":"string","__typename":"GasColumn","filterable":true},{"defaultName":"Start Date (DD/MM/YYYY)","id":"startDate","field":null,"displayName":"Start Date","display":true,"width":200,"dataType":"date","__typename":"GasColumn","filterable":false},{"defaultName":"End Date (DD/MM/YYYY)","id":"endDate","field":null,"displayName":"End Date","display":true,"width":150,"dataType":"date","__typename":"GasColumn","filterable":false},{"defaultName":"Quantity (kWh)","id":"quantity","field":null,"displayName":"Quantity (kWh)","display":true,"width":150,"dataType":"number","__typename":"GasColumn","filterable":true},{"defaultName":"Charge/kWh","id":"charge/kwh","field":null,"displayName":"Charge/kWh","display":true,"width":150,"dataType":"number","__typename":"GasColumn","filterable":true},{"defaultName":"Act/Est","id":"accuracy","field":"accuracy","displayName":"Act/Est","display":true,"width":150,"dataType":"string","__typename":"GasColumn","filterable":true},{"defaultName":"Total Cost","id":"totalCost","field":null,"displayName":"Total Cost","display":true,"width":150,"dataType":"currency","__typename":"GasColumn","filterable":true},{"defaultName":"Total Cost (VAT)","id":"totalCostVat","field":null,"displayName":"Total Cost (VAT)","display":true,"width":150,"dataType":"currency","__typename":"GasColumn","filterable":true},{"defaultName":"Currency","id":"currency","field":null,"displayName":"Currency Code","display":true,"width":150,"dataType":"string","__typename":"GasColumn","filterable":true},{"id":"supplier","field":"supplier","displayName":"Supplier","defaultName":"Supplier","display":true,"width":200,"__typename":"GasColumn","filterable":true},{"defaultName":null,"id":"carbonScope1","field":null,"displayName":"Carbon Emission Scope 1 (kgCO2e)","display":true,"width":150,"dataType":"number","__typename":"GasColumn","filterable":true},{"defaultName":null,"id":"carbonScope3","field":null,"displayName":"Carbon Emission Scope 3 (kgCO2e)","display":true,"width":150,"dataType":"number","__typename":"GasColumn","filterable":true},{"defaultName":"Activity","id":"activity","field":null,"displayName":"Activity","display":true,"width":150,"dataType":"string","__typename":"GasColumn","filterable":true},{"defaultName":"Comment","id":"comment","field":null,"displayName":"Comment","display":true,"width":300,"dataType":"string","__typename":"GasColumn","filterable":true},{"defaultName":"Invoice Number","id":"invoiceNumber","field":null,"displayName":"Invoice Number","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":false},{"defaultName":"Evidence Reference","id":"evidenceReference","field":null,"displayName":"Evidence Reference","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":false},{"defaultName":"Other Reference","id":"otherReference","field":null,"displayName":"Other Reference","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":false},{"defaultName":null,"id":"importBatch","field":"importBatch.fileName","displayName":"Upload Reference","display":true,"width":350,"dataType":"uploadReference","__typename":"EnergyColumn","filterable":true}]'),Ws=JSON.parse('[{"defaultName":"Meter Name","id":"meterName","field":"energySource","displayName":"Meter Name","display":true,"width":200,"dataType":"string","__typename":"WaterColumn","filterable":true},{"defaultName":null,"id":"locationName","field":"locationPoint.name","displayName":"Location","display":true,"width":200,"dataType":"string","__typename":"WaterColumn","filterable":true},{"defaultName":null,"id":"locationCode","field":"locationPoint.location.code","displayName":"Location Code","display":true,"width":200,"dataType":"string","__typename":"WaterColumn","filterable":true},{"defaultName":"Start Date (DD/MM/YYYY)","id":"startDate","field":null,"displayName":"Start Date","display":true,"width":200,"dataType":"date","__typename":"WaterColumn","filterable":false},{"defaultName":"End Date (DD/MM/YYYY)","id":"endDate","field":null,"displayName":"End Date","display":true,"width":150,"dataType":"date","__typename":"WaterColumn","filterable":false},{"defaultName":null,"id":"waterIn","field":null,"displayName":"Water In (m³)","display":true,"width":150,"dataType":"number","__typename":"WaterColumn","filterable":true},{"defaultName":null,"id":"waterOut","field":null,"displayName":"Water Out (m³)","display":true,"width":150,"dataType":"number","__typename":"WaterColumn","filterable":true},{"defaultName":"Reading","id":"reading","field":null,"displayName":"Reading","display":true,"width":150,"dataType":"number","__typename":"WaterColumn","filterable":true},{"defaultName":"Supplier","id":"supplier","field":null,"displayName":"Supplier","display":true,"width":200,"dataType":"string","__typename":"WaterColumn","filterable":true},{"defaultName":"Quantity (m3)","id":"quantity","field":null,"displayName":"Quantity","display":true,"width":150,"dataType":"number","__typename":"WaterColumn","filterable":true},{"defaultName":"Act/Est","id":"accuracy","field":"accuracy","displayName":"Act/Est","display":true,"width":150,"dataType":"string","__typename":"WaterColumn","filterable":true},{"defaultName":"Tariff (£/m3)","id":"tariff","field":null,"displayName":"Tariff","display":true,"width":150,"dataType":"string","__typename":"WaterColumn","filterable":true},{"defaultName":"Total Cost","id":"totalCost","field":null,"displayName":"Total Cost","display":true,"width":150,"dataType":"string","__typename":"WaterColumn","filterable":true},{"defaultName":"Total Cost (VAT)","id":"totalCostVat","field":null,"displayName":"Total Cost (VAT)","display":true,"width":150,"dataType":"string","__typename":"WaterColumn","filterable":true},{"defaultName":"Currency","id":"currency","field":null,"displayName":"Currency Code","display":true,"width":150,"dataType":"string","__typename":"WaterColumn","filterable":true},{"defaultName":"Comment","id":"comment","field":null,"displayName":"Comment","display":true,"width":300,"dataType":"string","__typename":"WaterColumn","filterable":true},{"defaultName":"Invoice Number","id":"invoiceNumber","field":null,"displayName":"Invoice Number","display":true,"width":200,"dataType":"linkToDocument","__typename":"WaterColumn","filterable":false},{"defaultName":"Evidence Reference","id":"evidenceReference","field":null,"displayName":"Evidence Reference","display":true,"width":200,"dataType":"linkToDocument","__typename":"WaterColumn","filterable":false},{"defaultName":"Other Reference","id":"otherReference","field":null,"displayName":"Other Reference","display":true,"width":200,"dataType":"linkToDocument","__typename":"WaterColumn","filterable":false},{"defaultName":null,"id":"importBatch","field":"importBatch.fileName","displayName":"Upload Reference","display":true,"width":350,"dataType":"uploadReference","__typename":"WaterColumn","filterable":true}]'),qs=JSON.parse('[{"defaultName":"Date","id":"date","field":null,"displayName":"Date","display":true,"width":200,"dataType":"date","__typename":"TransportColumn","filterable":false},{"defaultName":"Location","id":"location","field":null,"displayName":"Location","display":true,"width":200,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Location Code","id":"locationCode","field":"locationCode","displayName":"Location Code","display":true,"width":200,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Type","id":"type","field":null,"displayName":"Type","display":true,"width":200,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Subtype","id":"subtype","field":null,"displayName":"Subtype","display":true,"width":200,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Fuel Type","id":"fuelType","field":null,"displayName":"Fuel Type","display":true,"width":200,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Origin of Travel","id":"origin","field":null,"displayName":"Origin of Travel","display":true,"width":300,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Destination of Travel","id":"destination","field":null,"displayName":"Destination of Travel","display":true,"width":300,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Volume","id":"volume","field":null,"displayName":"Volume","display":true,"width":150,"dataType":"number","__typename":"TransportColumn","filterable":true},{"defaultName":"Unit of Volume","id":"volumeUnit","field":"volumeUnit","displayName":"Volume Unit","display":true,"width":150,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Number of Journeys","id":"numberOfJourneys","field":null,"displayName":"Number of Journeys","display":true,"width":150,"dataType":"number","__typename":"TransportColumn","filterable":true},{"defaultName":"Journey Distance","id":"journeyDistance","field":null,"displayName":"Journey Distance","display":true,"width":150,"dataType":"number","__typename":"TransportColumn","filterable":true},{"defaultName":"Distance","id":"distance","field":"distance","displayName":"Distance","display":true,"width":150,"dataType":"number","__typename":"TransportColumn","filterable":true},{"defaultName":"Total Distance","id":"totalDistance","field":"distance","displayName":"Total Distance","display":true,"width":150,"dataType":"number","__typename":"TransportColumn","filterable":true},{"defaultName":"Unit of Distance","id":"distanceUnit","field":"distanceUnit","displayName":"Distance Unit","display":true,"width":150,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Freight (tonne.km)","id":"freight","field":null,"displayName":"Freight (tonne.km)","display":true,"width":150,"dataType":"number","__typename":"TransportColumn","filterable":true},{"defaultName":"Carrier","id":"carrier","field":null,"displayName":"Carrier","display":true,"width":150,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Data Provider","id":"dataProvider","field":null,"displayName":"Data Provider","display":true,"width":150,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Purpose of Journey","id":"purpose","field":null,"displayName":"Purpose of Journey","display":true,"width":300,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Cost of Journey","id":"cost","field":null,"displayName":"Cost","display":true,"width":150,"dataType":"currency","__typename":"TransportColumn","filterable":true},{"defaultName":"Cost (VAT)","id":"costVat","field":null,"displayName":"Cost (VAT)","display":true,"width":150,"dataType":"currency","__typename":"TransportColumn","filterable":true},{"defaultName":"Currency","id":"currency","field":null,"displayName":"Currency Code","display":true,"width":150,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":null,"id":"carbonEmissions","field":null,"displayName":"Carbon Emissions (kgCO2e)","display":true,"width":150,"dataType":"number","__typename":"TransportColumn","filterable":true},{"defaultName":"Activity","id":"activity","field":null,"displayName":"Activity","display":true,"width":150,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Document Reference","id":"documentReference","field":null,"displayName":"Document Reference","display":true,"width":150,"dataType":"linkToDocument","__typename":"TransportColumn","filterable":true},{"defaultName":"Notes","id":"notes","field":null,"displayName":"Notes","display":true,"width":150,"dataType":"string","__typename":"TransportColumn","filterable":true},{"defaultName":"Reference","id":"reference","field":null,"displayName":"Reference","display":true,"width":200,"dataType":"linkToDocument","__typename":"TransportColumn","filterable":true},{"defaultName":null,"id":"importBatch","field":"importBatch.fileName","displayName":"Upload Reference","display":true,"width":350,"dataType":"uploadReference","__typename":"WasteColumn","filterable":true}]'),Js=JSON.parse('[{"id":"startDate","field":"startDate","displayName":"Start date","defaultName":"Start date (dd/mm/yyyy)","display":true,"dataType":"date","width":200},{"id":"endDate","field":"endDate","displayName":"End date","defaultName":"End date (dd/mm/yyyy)","display":true,"dataType":"date","width":200},{"id":"location","field":"location","displayName":"Location","defaultName":"Location","display":true,"width":200},{"id":"hotelNights","field":"hotelNights","displayName":"Hotel nights","defaultName":"Hotel nights","display":true,"width":200},{"id":"homeWorkingDays","field":"homeWorkingDays","displayName":"Home working days","defaultName":"Home working days","display":true,"width":200},{"id":"country","field":"country","displayName":"Hotel stay / Home working country","defaultName":"Hotel stay / Home working country","display":true,"width":200},{"id":"dataProvider","field":"dataProvider","displayName":"Data provider","defaultName":"Data provider","display":true,"width":200},{"id":"electricityTariff","field":"electricityTariff","displayName":"Tariff","defaultName":"Tariff","display":true,"width":200},{"id":"totalCost","field":"totalCost","displayName":"Total cost","defaultName":"Total cost","display":true,"width":200},{"id":"currency","field":"currency","displayName":"Currency","defaultName":"Currency","display":true,"width":200},{"id":"notes","field":"notes","displayName":"Notes","defaultName":"Notes","display":true,"width":200},{"id":"reference","field":"reference","displayName":"Reference","defaultName":"Reference","display":true,"width":200},{"id":"invoiceNumber","field":"invoiceNumber","displayName":"Invoice number","defaultName":"Invoice number","display":true,"width":200},{"id":"evidenceReference","field":"evidenceReference","displayName":"Evidence reference","defaultName":"Evidence reference","display":true,"width":200},{"id":"otherReference","field":"otherReference","displayName":"Other reference","defaultName":"Other reference","display":true,"width":200}]'),Ys=JSON.parse('[{"defaultName":"Meter Name","id":"meterName","field":"energySource","displayName":"Meter Name","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Location","id":"locationName","field":"locationPoint.name","displayName":"Location","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Start Date (DD/MM/YYYY)","id":"startDate","field":"startDate","displayName":"Start Date","display":true,"width":200,"dataType":"date","__typename":"EnergyColumn","filterable":false},{"defaultName":"Start Time (HH:mm)","id":"startTime","field":"startTime","displayName":"Start Time","display":true,"width":200,"dataType":"time","__typename":"EnergyColumn","filterable":false},{"defaultName":"End Date (DD/MM/YYYY)","id":"endDate","field":"endDate","displayName":"End Date","display":true,"width":150,"dataType":"date","__typename":"EnergyColumn","filterable":false},{"defaultName":"End Time (HH:mm)","id":"endTime","field":"endTime","displayName":"End Time","display":true,"width":200,"dataType":"time","__typename":"EnergyColumn","filterable":false},{"defaultName":"Quantity (kWh)","id":"quantity","field":"quantity","displayName":"Quantity (kWh)","display":true,"width":150,"dataType":"number","__typename":"EnergyColumn","filterable":true},{"defaultName":"Supplier","id":"supplier","field":"supplier","displayName":"Supplier","display":true,"width":150,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Charge/kWh","id":"charge/kwh","field":"charge/kwh","displayName":"Charge/kWh","display":true,"width":150,"dataType":"number","__typename":"EnergyColumn","filterable":true},{"defaultName":"Act/Est","id":"accuracy","field":"accuracy","displayName":"Act/Est","display":true,"width":150,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Total Cost","id":"totalCost","field":"totalCost","displayName":"Total Cost","display":true,"width":150,"dataType":"currency","__typename":"EnergyColumn","filterable":true},{"defaultName":"Total Cost (VAT)","id":"totalCostVat","field":"totalCostVat","displayName":"Total Cost (VAT)","display":true,"width":150,"dataType":"currency","__typename":"EnergyColumn","filterable":true},{"defaultName":"Tariff","id":"tariff","field":"tariff","displayName":"Tariff","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Currency","id":"currency","field":"currency","displayName":"Currency Code","display":true,"width":150,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":null,"id":"carbonScope2","field":"carbonScope2","displayName":"Carbon Emission Scope 2 (kgCO2e)","display":true,"width":150,"dataType":"number","__typename":"EnergyColumn","filterable":true},{"defaultName":null,"id":"carbonScope3","field":"carbonScope3","displayName":"Carbon Emission Scope 3 (kgCO2e)","display":true,"width":150,"dataType":"number","__typename":"EnergyColumn","filterable":true},{"defaultName":"Activity","id":"activity","field":"activity","displayName":"Activity","display":true,"width":150,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Comment","id":"comment","field":"comment","displayName":"Comment","display":true,"width":300,"dataType":"string","__typename":"EnergyColumn","filterable":true},{"defaultName":"Invoice Number","id":"invoiceNumber","field":"invoiceNumber","displayName":"Invoice Number","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":false},{"defaultName":"Evidence Reference","id":"evidenceReference","field":"evidenceReference","displayName":"Evidence Reference","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":false},{"defaultName":"Other Reference","id":"otherReference","field":"otherReference","displayName":"Other Reference","display":true,"width":200,"dataType":"string","__typename":"EnergyColumn","filterable":false},{"defaultName":"Import Batch","id":"importBatch","field":"importBatch.fileName","displayName":"Upload Reference","display":true,"width":350,"dataType":"uploadReference","__typename":"EnergyColumn","filterable":true}]'),Hs=(e,n)=>n?.some(n=>n.toLowerCase()===`${e}Transaction.purchaseType`.toLowerCase()),Ks=(e,n,t)=>[...n,...e===gn.D_.Waste&&t?.includes("WasteTransaction.projectPhase")?[{defaultName:"Project phase",id:"projectPhase",field:null,displayName:"Project phase",display:!0,width:150,dataType:"string",__typename:"WasteColumn",filterable:!0}]:[],...Hs(e,t)?[{defaultName:"Purchase Type",id:"purchaseType",field:null,displayName:"Purchase Type",display:!0,width:150,dataType:"string",__typename:"EnergyColumn",filterable:!0}]:[]];function Qs(e){const n=function(){const[e,n]=(0,g.useState)(!1),[t,a]=(0,g.useState)([]);return[function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!i.length||e)return;n(!0);const{data:l,startDate:r,endDate:o,dataFormRowsFillingStrategy:s,dateFrequency:d,dataFormInputStrategy:c}=t,u={...(0,hn.mapValues)(l,e=>(0,hn.isDate)(e)?Sn(e):(0,hn.isObject)(e)?(0,hn.get)(e,"label"):e),individualCollectionDate:r};u.totalCost=et({...u}),u.totalCostVat=nt(u.totalCost);const p=[];if(s===ft.Distributed){let e;const n={[gt.Daily]:"days",[gt.Weekly]:"weeks",[gt.Monthly]:"months",[gt.Quarterly]:"quarters",[gt.Annually]:"years"}[d];if(e=bn()(o).diff(bn()(r),n)+1,e=e<1?1:e,e>1e5)throw new Error("Too much rows");if(c===mt.Single)for(let t=0;t<e;t++)p.push({...u,individualCollectionDate:bn()(r).add(t,n).toDate()});else{const t={},a=new Map([["totalCost","currency"],["totalCostVat","currency"]]);i.filter(e=>{let{dataType:n}=e;return"number"===n||"currency"===n}).forEach(e=>{let{id:n,dataType:t}=e;return a.set(n,t)}),(0,hn.forIn)(u,(n,i)=>{if(!a.has(i)||!n)return;const l=Kn(n)/e,r="number"===a.get(i);t[i]=l>0?r?Math.round(l):Jt(l):0}),t.totalCost=et({...t}),t.totalCostVat=nt(t.totalCost);for(let a=0;a<e;a++)p.push({...u,...t,individualCollectionDate:bn()(r).add(a,n).toDate()})}}else p.push(u);const m=p.map((e,n)=>({...e,id:n}));a(m),n(!1)},{data:t,loading:e}]}(),t=function(){const e=sl(),[n,t]=(0,g.useState)(!1),[a,i]=(0,g.useState)([]);return[function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!l.length||n)return;t(!0);const{data:r,startDate:o,endDate:s,startTime:d,endTime:c,dataFormRowsFillingStrategy:u,dateFrequency:p,dataFormInputStrategy:m}=a,f={...(0,hn.mapValues)(r,e=>(0,hn.get)(e,"label",e)),startDate:o,endDate:s,totalCost:r.totalCost||void 0,totalCostVat:void 0,comment:r.comment||void 0,tariff:e?r.tariff?.label||void 0:r.tariff||void 0,meterName:r.energySource.name||r.energySource.label,energySource:r.energySource.name||r.energySource.label,energySourceId:r.energySource.id||r.energySource.value,locationPoint:r.locationPoint,startTime:d?.format("hh:mm"),endTime:c?.format("hh:mm"),tariffId:r.tariff?.id||r.tariff?.value,supplierId:r.supplier?.id||r.supplier?.value,currencyId:r.currency?.id||r.currency?.value};f.totalCost&&(f.totalCostVat=nt(f.totalCost));const y=[];if(u===ft.Distributed){let e;const n={[gt.Daily]:"days",[gt.Weekly]:"weeks",[gt.Monthly]:"months",[gt.Quarterly]:"quarters",[gt.Annually]:"years"}[p];if(e=bn()(s).diff(bn()(o),n)+1,e=e<1?1:e,e>1e5)throw new Error("Too much rows");if(m===mt.Single)for(let t=0;t<e;t++){const e=dl(n,o,s,t);y.push({...f,...e})}else{const t={},a=new Map([["totalCost","currency"],["totalCostVat","currency"]]);l.filter(e=>{let{dataType:n}=e;return"number"===n||"currency"===n}).forEach(e=>{let{id:n,dataType:t}=e;return a.set(n,t)}),(0,hn.forIn)(f,(n,i)=>{if(!a.has(i)||!n)return;const l=Kn(n)/e;t[i]=l>0?Jt(l):0}),t.totalCostVat=nt(t.totalCost);for(let a=0;a<e;a++){const e=dl(n,o,s,a);y.push({...f,...t,...e})}}}else y.push(f);const g=y.map((e,n)=>({...e,id:n}));i(g),t(!1)},{data:a,loading:n}]}(),a=function(){const[e,n]=(0,g.useState)(!1),[t,a]=(0,g.useState)([]);return[function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!i.length||e)return;n(!0);const{data:l,startDate:r,endDate:o,dataFormRowsFillingStrategy:s,dateFrequency:d,dataFormInputStrategy:c}=t,u={...(0,hn.mapValues)(l,e=>(0,hn.get)(e,"label",e)),date:r,cost:l.cost||void 0,distance:l.distance||void 0,volume:l.volume||void 0,freight:l.freight||void 0,carrier:l.carrier||void 0,notes:l.notes||void 0};u.costVat=nt(u.cost);const p=[];if(s===ft.Distributed){let e;const n={[gt.Daily]:"days",[gt.Weekly]:"weeks",[gt.Monthly]:"months",[gt.Quarterly]:"quarters",[gt.Annually]:"years"}[d];if(e=bn()(o).diff(bn()(r),n)+1,e=e<1?1:e,e>1e5)throw new Error("Too much rows");if(c===mt.Single)for(let t=0;t<e;t++)p.push({...u,date:bn()(r).add(t,n).toDate()});else{const t={},a=new Map([["cost","currency"],["costVat","currency"]]);i.filter(e=>{let{dataType:n}=e;return"number"===n||"currency"===n}).forEach(e=>{let{id:n,dataType:t}=e;return a.set(n,t)}),(0,hn.forIn)(u,(n,i)=>{if(!a.has(i)||!n)return;const l=Kn(n)/e,r="number"===a.get(i);t[i]=l>0?r?Math.round(l):Jt(l):0}),t.costVat=nt(t.cost);for(let a=0;a<e;a++)p.push({...u,...t,date:bn()(r).add(a,n).toDate()})}}else p.push(u);const m=p.map((e,n)=>({...e,id:n}));a(m),n(!1)},{data:t,loading:e}]}(),i=function(){const[e,n]=(0,g.useState)(!1),[t,a]=(0,g.useState)([]);return[function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!i.length||e)return;n(!0);const{data:l,startDate:r,endDate:o,dataFormRowsFillingStrategy:s,dateFrequency:d,dataFormInputStrategy:c}=t,u={...(0,hn.mapValues)(l,e=>(0,hn.get)(e,"label",e)),startDate:r,endDate:o,totalCost:l.totalCost||(l.tariff>0?l.quantity*l.tariff:void 0),comment:l.comment||void 0,meterName:l.energySource.name||l.energySource.label,energySource:l.energySource.name||l.energySource.label,locationPoint:l.locationPoint};u.totalCost&&(u.totalCostVat=nt(u.totalCost));const p=l.energySource.inOut;u.waterIn=p===gn.mF.Both||p===gn.mF.In?l.quantity:null,u.waterOut=p===gn.mF.Both||p===gn.mF.Out?l.quantity:null;const m=[];if(s===ft.Distributed){let e;const n={[gt.Daily]:"days",[gt.Weekly]:"weeks",[gt.Monthly]:"months",[gt.Quarterly]:"quarters",[gt.Annually]:"years"}[d];if(e=bn()(o).diff(bn()(r),n)+1,e=e<1?1:e,e>1e5)throw new Error("Too much rows");if(c===mt.Single)for(let t=0;t<e;t++){const e=Bs(n,r,o,t);m.push({...u,...e})}else{const t={},a=new Map([["totalCost","currency"],["totalCostVat","currency"]]);i.filter(e=>{let{dataType:n}=e;return"number"===n||"currency"===n}).forEach(e=>{let{id:n,dataType:t}=e;return a.set(n,t)}),(0,hn.forIn)(u,(n,i)=>{if(!a.has(i)||!n)return;const l=Kn(n)/e,r="number"===a.get(i);t[i]=l>0?r?Math.round(l):Jt(l):0}),t.totalCostVat=nt(t.totalCost);for(let a=0;a<e;a++){const e=Bs(n,r,o,a);m.push({...u,...t,...e})}}}else m.push(u);const f=m.map((e,n)=>({...e,id:n}));a(f),n(!1)},{data:t,loading:e}]}(),l=function(){const[e,n]=(0,g.useState)([]),[t,a]=(0,g.useState)(!0),i=(0,g.useCallback)(e=>{const{data:t,startDate:i,endDate:l,dataFormRowsFillingStrategy:r,dateFrequency:o,dataFormInputStrategy:s}=e,d={...(0,hn.mapValues)(t,e=>(0,hn.get)(e,"label",e)),startDate:i,endDate:l},c=[];if(r===ft.Distributed){const e=Us[o],n=bn()(l).diff(bn()(i),e)+1,t=n<1?1:n;for(let n=0;n<t;n++){const a=$s(e,i,l,n),r={...d,...a};s===mt.Single?c.push(r):c.push({...r,totalCost:Ms(d.totalCost,t),hotelNights:Ms(d.hotelNights,t),homeWorkingDays:Ms(d.homeWorkingDays,t)})}}else c.push(d);const u=c.map((e,n)=>({...e,id:n}));n(u),a(!1)},[]);return(0,g.useMemo)(()=>[i,{data:e,loading:t}],[i,e,t])}(),r=zo(),o=r?.accessControls?.customFields,s=(0,g.useMemo)(()=>Ks(gn.D_.Waste,Vs,o),[o]),d=(0,g.useMemo)(()=>Ks(gn.D_.Electricity,Gs,o),[o]),c=(0,g.useMemo)(()=>Ks(gn.D_.Gas,zs,o),[o]),u=(0,g.useMemo)(()=>Ks(gn.D_.Heatsteam,Ys,o),[o]),p=(0,g.useMemo)(()=>Ks(gn.D_.Water,Ws,o),[o]),m=(0,g.useMemo)(()=>Ks(gn.D_.Transport,qs,o),[o]),f=(0,g.useMemo)(()=>Ks(gn.D_.Hotelstays,Js,o),[o]);switch(e){case gn.D_.Waste:return[s,n];case gn.D_.Electricity:return[d,t];case gn.D_.Gas:return[c,t];case gn.D_.Heatsteam:return[u,t];case gn.D_.Water:return[p,i];case gn.D_.Transport:return[m,a];case gn.D_.Hotelstays:return[f,l];default:throw new Error(`Undefined data section: ${e}`)}}const Zs=S.J1`
  query GetAvailableManagementSystems($accountId: ID!, $type: GovernanceItemType) {
    getAvailableManagementSystems(accountId: $accountId, type: $type) {
      id
      title
    }
  }
`;function Xs(){const e=Je(),{data:n,loading:t}=(0,x.IT)(Zs,{variables:{accountId:e,type:gn.Ak.ManagementSystem}});return{data:n?.getAvailableManagementSystems||[],loading:t}}function ed(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{setLoading:t}=(0,f.usePageLoadingContext)(),{setError:a}=(0,f.usePageErrorContext)(),[i,l]=(0,Ul._)(e,{...n,notifyOnNetworkStatusChange:!0}),r=(0,g.useCallback)(async function(){try{return t(!0),await i(...arguments)}catch(e){throw n.showLoadError&&a(e),e}finally{t(!1)}},[t,a,i]);return[r,l]}function nd(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{loading:t,setLoading:a}=(0,f.usePageLoadingContext)(),{setError:i}=(0,f.usePageErrorContext)(),l=(0,ln.n)(e,{...n,notifyOnNetworkStatusChange:!0,onCompleted:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.onCompleted?.(...t),setTimeout(()=>{a(!1)},0)},onError:e=>{n.onError?.(e),setTimeout(()=>{i(e)},0)}});return(0,g.useEffect)(()=>{const[,e]=l;e.loading&&!t&&a(!0)},[l,t,a,i]),(0,g.useEffect)(()=>()=>{i(null),a(!1)},[i,a]),l}function td(e){const n=(0,g.useRef)();return(0,g.useEffect)(()=>{n.current=e},[e]),n.current}var ad=t(66575),id=t.n(ad);function ld(e){return`${e.first_name} ${e.last_name}`}function rd(e,n){return`\n    <div>Please report this error as a bug.</div>\n    <div>User: ${ld(n)}</div>\n    <div>URL: ${window.location.href}</div>\n    ${ea(e)}\n  `}const od=(e,n,t)=>{const a=e&&e[`${n}${t}GridV2`];let i=[];return a&&a.columnState&&(i=a.columnState.reduce((e,n)=>n.hide?e.concat(n.colId):e,[])),i},sd=S.J1`
  fragment GetDatasetRefreshStatus on DatasetRefreshLogRecord {
    id
    datasetName
    timestamp
    trigger
    status
    description
    error
  }
  query GetDatasetRefreshStatus($datasetName: String!) {
    getDatasetRefreshStatus(datasetName: $datasetName) {
      lastRefresh {
        ...GetDatasetRefreshStatus
      }
      current {
        ...GetDatasetRefreshStatus
      }
    }
  }
`,dd=e=>{const{getValueFromStorage:n}=(0,f.useLocalStorage)(f.AG_GRID_PARAMS_V2),t=Je(),[a,i]=(0,g.useState)(e.defaultVariant),l=(0,x.IT)(sd,{variables:{datasetName:e.datasetName},skip:!0,fetchPolicy:"network-only",errorPolicy:"ignore"}),[r]=ed(e.regularQuery),[o]=ed(e.reportingQuery),[s]=(0,Ul._)(e.regularFiltersQuery),[d]=(0,Ul._)(e.reportingFiltersQuery),c=(0,g.useCallback)(async i=>{const l={...i.variables};if(e.enableHiddenColumns&&"regular"===a){const a=n(),i=od(a,t,e.exportFileName);l.hiddenColumns=i}const s="regular"===a?r:o;return(await s({...i,variables:l})).data[e.mapping[a].data]},[a]),u=(0,g.useCallback)(async n=>{const t="regular"===a?s:d;return(await t(n)).data[e.mapping[a].filters]},[a]),p=(0,g.useMemo)(()=>l.data?.getDatasetRefreshStatus?.lastRefresh?.timestamp?Rn(Date.now()-bn()(l.data.getDatasetRefreshStatus.lastRefresh.timestamp).utc().toDate().getTime()):"unknown time",[l.data]),m=(0,g.useMemo)(()=>(e=>{switch(e){case gn.QT.ScheduledForRefresh:return"Scheduled for refresh";case gn.QT.Refreshing:return"Refreshing";case gn.QT.Refreshed:return"Refreshed";case gn.QT.RefreshFailed:return"Refresh failed";case gn.QT.Skipped:return"Skipped";case gn.QT.SchedulingFailed:return"Scheduling failed";default:return"Unknown"}})(l.data?.getDatasetRefreshStatus.current?.status),[l.data]);return(0,g.useMemo)(()=>({variant:a,setVariant:i,fetchData:c,fetchFilters:u,reportingLastRefreshedHours:p,reportingCurrentStatus:m}),[a,c,u,p,m])};var cd=t(38126);function ud(){const{token:e}=qe(),{accessLevel:n}=e;return n===H?ee:n===K?ee.filter(e=>{let{value:n}=e;return[K,Y].includes(n)}):n===Y?ee.filter(e=>{let{value:n}=e;return Y===n}):[]}var pd=t(85587);function md(e,n,t){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"id";if(!n)return e;const i=new pd.vj(a);for(const e of t)i.addIndex(e);return i.addDocuments(e),i.search(n)}function fd(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const[a,i]=(0,g.useState)(t);return[a,i,md(e,a,n)]}const yd=S.J1`
  query GetSuppliers(
    $accountId: ID!
    $filterValue: String
    $filterBy: String
    $utility: TransactionType
    $pageSize: Int!
    $page: Int!
  ) {
    getSuppliers(
      accountId: $accountId
      filterValue: $filterValue
      filterBy: $filterBy
      utility: $utility
      page: $page
      pageSize: $pageSize
    ) {
      suppliers {
        id
        name
        accountId
        type
        utility
        address {
          id
          address1
          address2
          address3
          city
          postcode
          phone1
        }
      }
    }
  }
`,gd=S.J1`
  query GetSuppliersPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
    $withWasteCarrierLicence: Boolean = false
  ) {
    getSuppliersPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
        accountId
        address {
          id
          address1
          address2
          address3
          city
          postcode
          phone1
        }
        type
        materials {
          id
          name
        }
        notes
        wasteCarrierLicenceDocument @include(if: $withWasteCarrierLicence) {
          id
          referenceId
        }
      }
    }
  }
`,hd=S.J1`
  query GetSupplier($id: ID!) {
    getSupplier(id: $id) {
      id
      name
      accountId
      type
      utility
      address {
        id
        address1
        address2
        address3
        city
        postcode
        phone1
      }
    }
  }
`;function xd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Je(),{data:t}=(0,x.IT)(yd,{variables:{...e,pageSize:e.pageSize||St,accountId:e.accountId||n,page:1}});return t?.getSuppliers.suppliers||[]}const Td=S.J1`
  query GetTags($accountId: String!) {
    getTagsByAccountId(input: { accountId: $accountId, applicationId: "RIO" }) {
      id
      tagName
      isSystemLevelTag
      legislationTag
      locations {
        id
      }
    }
  }
`;function bd(){const e=Je(),n=(0,C.m)(),[t,a]=(0,g.useState)(null);return(0,g.useEffect)(()=>{!async function(){const{data:t}=await n.query({query:Td,variables:{accountId:e}});a(t?.getTagsByAccountId||[])}()},[e,n]),t}const vd=S.J1`
  query GetReceivedSurvey($id: ID!, $accountId: ID!, $userId: ID!, $userGroupId: ID) {
    getReceivedSurveyById(id: $id, accountId: $accountId, userId: $userId, userGroupId: $userGroupId) {
      id
      name
      owner {
        id
        name
      }
      lockedBy {
        id
        first_name
        last_name
      }
      deadlineDate
      template {
        id
        formContent
        questions {
          id
          name
          type
        }
      }
      submission {
        id
        status
        version
        feedback
        owner {
          id
          name
        }
        answers {
          id
          answer
          questionId
        }
      }
      isIndividualContributor
      isUserGroupContributor
    }
  }
`,Cd=S.J1`
  mutation SetSubmission($accountId: ID!, $surveyId: ID!, $submission: SurveySubmissionInput!) {
    setSurveySubmission(accountId: $accountId, surveyId: $surveyId, submission: $submission) {
      accountId
      surveyId
      id
      status
      version
    }
  }
`,kd=S.J1`
  subscription SubscribeToSetSurveySubmission($accountId: ID!, $surveyId: ID!) {
    setSurveySubmissionUpdated(accountId: $accountId, surveyId: $surveyId) {
      id
      status
      version
      answers {
        id
        answer
      }
    }
  }
`,Sd=S.J1`
  query GetDocuments($ids: [ID!]!) {
    getDocumentRecordsByIds(ids: $ids) {
      id
      link
      fileName
    }
  }
`,Nd=S.J1`
  mutation UnlockContributor($accountId: ID!, $campaignId: ID!) {
    unlockContributor(accountId: $accountId, campaignId: $campaignId) {
      campaignId
      accountId
    }
  }
`,Ad=S.J1`
  fragment SubmissionFields on SurveySubmission {
    id
    status
    version
    answers {
      id
      answer
      questionId
    }
  }
`,Rd=S.J1`
  query getMyContributorOverview(
    $accountId: ID!
    $contributorAccountId: ID!
    $contributorUserId: ID
    $contributorUserGroupId: ID
  ) {
    getMySurveyContributorById(
      accountId: $accountId
      contributorAccountId: $contributorAccountId
      contributorUserId: $contributorUserId
      contributorUserGroupId: $contributorUserGroupId
    ) {
      ... on AccountSurveyContributor {
        surveys {
          id
          name
          startDate
          deadlineDate
          submission {
            ...SubmissionFields
          }
          template {
            formContent
            questions {
              id
              type
              name
            }
          }
        }
        account {
          id
          name
        }
        user {
          id
          first_name
          last_name
          email
        }
        userGroup {
          id
          name
        }
      }
    }
  }
  ${Ad}
`,Dd=S.J1`
  query GetReceivedSurveysPage(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getReceivedSurveysPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        id
        name
        lockedBy {
          id
          first_name
          last_name
        }
        deadlineDate
        template {
          id
          formContent
          questions {
            id
            name
          }
        }
        submission {
          ...SubmissionFields
        }
        owner {
          id
          name
        }
        isIndividualContributor
        isUserGroupContributor
      }
      totalRows
    }
  }
  ${Ad}
`,Ld=S.J1`
  query GetReceivedSurveysPageFilter($accountId: ID!, $field: String!) {
    getReceivedSurveysPageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`;function Id(e){let{accountId:n,offset:t=0,limit:a,sort:i=[],filters:l={}}=e;return dn(Dd,{fetchPolicy:"network-only",variables:{accountId:n,offset:t,limit:a,sort:i,filters:l},keepErrorAfterUnmount:!0})}var jd=t(2087),wd=t.n(jd),Od=t(18243),Ed=t.n(Od);function _d(){const e=Je(),[n,t]=function(){const[e,{loading:n}]=(0,ln.n)(Ed()),[t,{loading:a,...i}]=(0,ln.n)(wd());return[async function(){let{file:n,fileName:a,accountId:i,...l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{data:{initiateDataUpload:{signedUrl:r,batchId:o}}={}}=await e({variables:{fileName:a,accountId:i,...l}});return await t({variables:{file:n,fileName:a,accId:i,url:r}}),{signedUrl:r,batchId:o}},{...i,loading:n||a}]}();return[t=>n({...t,accountId:e}),t]}var Fd=t(23047),Pd=t.n(Fd);function Bd(e){const n=(0,C.m)(),[t,a]=(0,g.useState)({user:null,currentAccountId:null,accounts:{},accountIds:[]});return(0,g.useEffect)(()=>{(async()=>{const{data:t}=await n.query({query:A,variables:{name:e}});if(t&&t.getUserInfoById&&t.getUserInfoById.account){const{account:e}=t.getUserInfoById,{role:{permissions:n},disableAccountSelector:i}=t.getUserInfoById,l=!n.account.includes("getChild")&&!n.account.includes("getAll")||i?[]:e.children,r=Pd()([e,...l],"id"),o=l.slice().sort((e,n)=>r[e.id].name<r[n.id].name?-1:r[e.id].name>r[n.id].name?1:0);a({accountIds:[e.id].concat(o.map(e=>{let{id:n}=e;return n})),accounts:r,user:t.getUserInfoById})}})()},[e,n]),t}const Ud="LIST_OR_GRID",$d="GRID",Md="LIST";function Vd(){const[e,n]=(0,g.useState)(localStorage.getItem(Ud)||$d),t=e=>{localStorage.setItem(Ud,e),n(e)};return{view:e,showGrid:()=>t($d),showList:()=>t(Md),isGrid:e===$d,isList:e===Md}}var Gd=t(13426),zd=t.n(Gd);function Wd(){const e=(0,C.m)().cache;return n=>{for(const t of n)e.evict(t);e.gc()}}const qd=S.J1`
  query GetFundsByAccountId(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getFundsByAccountId(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
        externalId
        createdAt
        lastUpdatedAt
        deleted
        currency {
          id
          name
          code
        }
      }
    }
  }
`,Jd=S.J1`
  mutation ImportFunds($funds: [FundInput!]!, $accountId: ID!) {
    importFunds(funds: $funds, accountId: $accountId) {
      deleted
      created
      updated
    }
  }
`,Yd=S.J1`
  query GetFundsFilter($field: String!, $accountId: ID!) {
    getFundsFilter(field: $field, accountId: $accountId) {
      label
      value
    }
  }
`,Hd=S.J1`
  query GetAssetsPageByAccountId(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters!
  ) {
    getAssetsPageByAccountId(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
        description
        externalId
        gicsCode {
          id
          code
        }
        assetLocation
        createdAt
        deleted
        lastUpdatedAt
        accountId
      }
    }
  }
`,Kd=S.J1`
  query GetAssetsPageByAccountIdFilter($field: String!, $accountId: ID!) {
    getAssetsPageByAccountIdFilter(field: $field, accountId: $accountId) {
      label
      value
    }
  }
`,Qd=S.J1`
  mutation ImportAssets($assets: [AssetInput!]!, $accountId: ID!) {
    importAssets(assets: $assets, accountId: $accountId) {
      created
      updated
      deleted
    }
  }
`;function Zd(){const e=Je(),{showNotification:n}=tn(),[t,a]=(0,g.useState)([]),[i,l]=(0,g.useState)(!1),r=Kr({query:Hd,request:{accountId:e,sort:[{field:"name",order:"asc"}],filters:{set:[{values:["0"],filterType:"set",field:"deleted"}]}},response:"getAssetsPageByAccountId"});return(0,g.useEffect)(()=>{l(!0),r().then(e=>{a(e)}).catch(e=>{n(`Failed to load assets: ${e.message}`,"danger")}).finally(()=>{l(!1)})},[]),{loading:i,assets:t}}const Xd=()=>!!lr().data.find(e=>e.startsWith("createImportBatch"));function ec(e){const n=lr(),{token:t}=qe();return(a,i)=>{const l=n[e];return!![`${a}All`,`${a}Parent`,`${a}Child`].some(e=>l.includes(e))||l.includes(`${a}Own`)&&(!i||i===t.sub)}}const nc=(0,f.styled)(f.TextField)`
  margin: 1rem 0;
  width: 100%;
  max-height: 50px;
`,tc=(0,f.styled)(f.Button)`
  width: 100%;
`,ac=(0,f.styled)(f.Logo)`
  margin: 1rem;
`,ic=(0,f.styled)("form")`
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
`,lc=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 30vw;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  place-items: center;
`,rc=(0,f.styled)(f.Text)`
  color: ${e=>e.theme.sys.color.primary};
  text-align: center;
  margin-bottom: 1rem;
  cursor: pointer;
`,oc=h.Yj().email("Invalid email").required("Email is required");function sc(){const e=(0,m.Zp)(),{code:n}=(0,m.g)(),{showNotification:t}=tn(),[a,i]=(0,g.useState)(localStorage.getItem("MEMOIZED_EMAIL")||""),[l,r]=(0,g.useState)(n||""),[o,s]=(0,g.useState)(!1),[d,c]=(0,g.useState)(!1),[u,p]=(0,g.useState)(null),x=async e=>{try{return await oc.validate(e),p(null),!0}catch(e){return e instanceof h.yI&&p(e.message),!1}},T=(0,g.useCallback)(async()=>{if(a)try{await y.N.resendSignUp(a.trim().toLowerCase()),t("Email has been sent again!","success")}catch(e){const n=e instanceof Error?e.message:"An unexpected error occurred";t(`Email wasn't sent: ${n}`,"danger")}},[a,t]);return(0,fe.jsxs)(lc,{children:[(0,fe.jsx)(ac,{height:"70px"}),(0,fe.jsx)(f.Text,{children:"Please verify your email"}),(0,fe.jsxs)(ic,{onSubmit:async n=>{if(n?.preventDefault(),d)e("v2/upgrade/courses");else if(await x(a)&&l)try{s(!0),await y.N.confirmSignUp(a.trim().toLowerCase(),l),c(!0),t("Confirmed! Please proceed to login.","success")}catch(e){const n=e instanceof Error?e.message:"An unexpected error occurred";t(n,"danger")}finally{s(!1)}else t("Please provide valid email and code","warning")},children:[(0,fe.jsx)(nc,{required:!0,type:"email",value:a,placeholder:"Your email",autoComplete:"email",name:"email",helperText:u,error:!!u,onChange:async e=>{const n=e.target.value;i(n),await x(n)}}),(0,fe.jsx)(nc,{required:!0,type:"text",value:l,placeholder:"Verification code",name:"code",onChange:e=>r(e.target.value)}),(0,fe.jsx)(rc,{onClick:T,children:"Not received your confirmation? Resend Email"}),(0,fe.jsxs)(tc,{type:"submit",variant:"contained",disabled:!l||!!u||o,children:[d?"Go to Login":"Verify",(0,fe.jsx)("div",{children:o&&(0,fe.jsx)(f.Loader,{size:20})})]})]})]})}var dc=t(77161);const cc=e=>e.length<10?"Password must be 10 characters or longer":(e.toUpperCase()===e||e.toLowerCase()===e)&&"Password must contain both upper and lower case characters",uc=(0,le.default)(ie.DZ)`
  padding-left: ${e=>e.theme.geometry.xs.spacing};
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
  text-align: center;
`,pc=(0,le.default)(ie.EY)`
  padding-left: ${e=>e.theme.geometry.xs.spacing};
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
  text-align: center;
`;function mc(e){let{email:n}=e;const t=(0,m.Zp)(),{showNotification:a}=tn(),i=(0,C.m)(),[l]=(0,ln.n)(w,{onCompleted:()=>{a(`Verification code has been sent to ${n}. Please enter it below to set your new password.`),i.cache.writeQuery({query:R,data:{loginError:""}}),t(`/reset-password?username=${n}`)},onError:()=>{a("Unfortunately we coulndn't reset your password. Please contact support@rio.ai for help.")}});return(0,fe.jsxs)(ie.hh,{children:[(0,fe.jsx)(uc,{size:"lg",children:"We think you’ve already set your password."}),(0,fe.jsx)(pc,{children:"Please use one of the options below"}),(0,fe.jsxs)(ie.hh.Row,{children:[(0,fe.jsx)(ie.hh.ButtonColumn,{size:"sm",span:6,color:"primary",onClick:()=>t("/login"),children:"Login"}),(0,fe.jsx)(ie.hh.ButtonColumn,{size:"sm",span:6,color:"secondary",onClick:()=>l({variables:{username:n}}),children:"Reset password"})]})]})}function fc(e){let{titleId:n,subtitleId:t}=e;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Logo,{height:"70px",style:{margin:"1rem",marginBottom:"1.5rem"}}),(0,fe.jsx)(f.Text,{size:"large",typescale:"title",style:{marginBottom:"1rem"},children:(0,fe.jsx)(de.A,{id:n})}),(0,fe.jsx)(f.Text,{size:"large",typescale:"label",style:{marginBottom:"1rem"},children:(0,fe.jsx)(de.A,{id:t})})]})}const yc=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  align-items: center;
`,gc=(0,f.styled)("form")`
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 30rem;
  margin-top: 1rem;

  button {
    margin: auto;
  }
`,hc=(0,f.styled)("div")`
  margin-bottom: 1rem;
`,xc=(0,f.styled)(f.Button)({width:"100%"}),Tc=(0,f.styled)("div")(e=>{let{theme:n}=e;return{display:"flex",justifyContent:"space-between",alignItems:"center",gap:n.spacing(1)}});function bc(e){let{titleId:n,loading:t,...a}=e;return(0,fe.jsx)(xc,{...a,variant:"contained",type:"submit",children:(0,fe.jsxs)(Tc,{children:[(0,fe.jsx)(de.A,{id:n}),t&&(0,fe.jsx)(f.Loader,{size:20})]})})}var vc=t(46567);function Cc(e){let{messageId:n}=e;const t=(0,vc.A)();return(0,fe.jsx)(f.Text,{size:"medium",typescale:"body",sx:{color:t.sys.color.error,marginTop:"0.5rem"},children:(0,fe.jsx)(de.A,{id:n})})}const kc=(0,f.styled)("a")`
  color: ${e=>e.theme.sys.color.primary};
`,Sc=e=>{let{terms:n,termsAgreement:t,onChange:a}=e;return(0,fe.jsx)(f.Checkbox,{name:n,checked:t,onChange:a,label:(0,fe.jsxs)(f.Text,{size:"medium",typescale:"body",children:[(0,fe.jsx)(de.A,{id:"login.termsAgreement.termsAgreementText"}),(0,fe.jsx)(kc,{href:`http://www.rio.ai/terms-of-${n}`,target:"_blank",children:(0,fe.jsx)(de.A,{id:"login.termsAgreement.termsLinkText",values:{terms:(0,fe.jsx)(de.A,{id:`login.termsAgreement.${n}`})}})})]})})},Nc=e=>({UserNotFoundException:"login.setPassword.userNotFound",NotAuthorizedException:"login.setPassword.incorrectPassword",UserDisabledException:"login.main.userDisabled",GeneralError:"login.setPassword.generalError"}[e]||e),Ac=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
`,Rc=e=>{let{name:n,...t}=e;return(0,fe.jsx)(Ac,{...t,role:"progressbar",children:(0,fe.jsx)(ie.Ip,{name:n,size:"md"})})},Dc=(0,le.default)(ie.OJ)`
  height: 100%;
`,Lc=(0,le.default)(p.Link)`
  text-decoration: underline;
`,Ic=e=>{let{error:n,title:t,body:a,name:i}=e;return(0,fe.jsx)(ie.Kw,{error:n,children:e=>{let{icon:n}=e;return(0,fe.jsx)(Dc,{name:i,icon:n,title:t,body:a})}})},jc=e=>(0,fe.jsx)(Ic,{title:"Forbidden",body:"Access denied",...e}),wc=e=>(0,fe.jsx)(Ic,{title:"Not found",body:"Requested resource was not found",error:new Error("Not found"),...e}),Oc=e=>(0,fe.jsx)(Ic,{error:new Error("Not found"),title:"Page not found",body:"The page you are looking for does not exist",...e}),Ec=e=>(0,fe.jsx)(Ic,{title:"Not available",body:"This page is not available for this account",...e}),_c=e=>{let{name:n,error:t}=e;const a=or();return(0,fe.jsx)(ie.Kw,{error:t,children:e=>{let{icon:t}=e;return(0,fe.jsxs)(Dc,{name:n,icon:t,title:"You do not have access to this learning content.",children:["Please contact your Rio Administrator to gain access to this Premium content, or purchase it"," ",(0,fe.jsx)(Lc,{to:a.market.engage,children:"here"})]})}})},Fc=(0,le.default)(ie.OJ)`
  height: 100%;
`,Pc=(0,le.default)(ie.v3)`
  text-align: left;
`,Bc=le.default.div`
  text-align: left;
`,Uc=(0,le.default)(ie.Yq)`
  display: inline-block;
  width: auto;
`,$c=e=>{let{error:n,retry:t}=e;const a=function(){const e=Yo(),{showNotification:n}=tn(),[t]=(0,ln.n)(id());return async a=>{try{if(E.Cp(a),!e)throw new Error("Current user is not defined");await t({variables:{replacements:JSON.stringify({topic:"Bug report",name:ld(e),email:e.email,phone:e.phone,company:e.account?.name,enquiry:rd(a,e)})}}),n("Thank you for reporting an issue. We will get onto this soon!","success")}catch(e){n("Sorry, we couldn't automatically report an issue. Please use hello@dittosustainability.ai to contact us.","success")}}}(),[i,l]=(0,g.useState)(!1),r=n instanceof Error?n:new Error(n),o=async()=>{i||(await a(r),l(!0))};return(0,fe.jsx)(Fc,{icon:"exclamation-triangle",title:"This page failed to load",body:"There was a problem loading this page, please try again.",retry:t,report:o,details:(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(Bc,{children:["Please reload the page and if the problem persists please"," ",(0,fe.jsx)(Uc,{to:"/contact",onClick:o,children:"report it"})]}),(0,fe.jsx)(Pc,{size:"md",wrap:!0,children:ea(r)})]})})};function Mc(e){let{result:n,loading:t,error:a,data:i}=e;return n.loading?t?t():(0,fe.jsx)(Rc,{}):n.error?a?a(n.error,n):(0,fe.jsx)($c,{error:n.error,retry:()=>n.refetch(n.variables)}):n.data?i(n.data):null}var Vc=t(8644);const Gc=le.default.div`
  height: auto;
  max-height: 200px;
  width: 100%;
  // Subtract sidebar and padding
  max-width: calc(100vw - 100px - 32px);
`,zc=le.default.div`
  img {
    object-fit: cover;
    width: 100%;
    height: auto;
    max-height: 200px;
  }
`,Wc=e=>{let{item:n,handlerClick:t}=e;const{accountId:a,thumbnail:i,url:l,type:r}=n;return(0,fe.jsx)(zc,{onClick:()=>t(l,r),children:(0,fe.jsx)("img",{src:i,alt:`Banner ${a}`})})},qc=e=>{let{banners:n,handlerClick:t}=e;return(0,fe.jsx)(Gc,{children:(0,fe.jsx)(Vc.A,{dots:!0,infinite:!0,speed:2e3,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:5e3,arrows:!0,centerMode:!0,centerPadding:"0",children:n.map(e=>(0,fe.jsx)(Wc,{handlerClick:t,item:e},e.accountId))})})},Jc=(S.J1`
  query getValue($key: String!, $courseId: String!) {
    getValue(input: { key: $key, courseId: $courseId })
  }
`,S.J1`
  mutation setValue($key: String!, $value: String!, $courseId: String!) {
    setValue(input: { key: $key, value: $value, courseId: $courseId })
  }
`),Yc=S.J1`
  query getAllCourseData($courseId: String!) {
    getAllCourseData(input: { courseId: $courseId }) {
      key
      value
    }
  }
`,Hc=S.J1`
  mutation updateUserCourseProgress($userId: ID!, $courseId: ID!, $courseProgress: CourseProgress!) {
    updateUserCourseProgress(input: { userId: $userId, courseId: $courseId, courseProgress: $courseProgress }) {
      lastUpdatedAt
      courseProgress
    }
  }
`;var Kc=t(97815);const Qc=le.default.div`
  padding: ${e=>e.theme.geometry.xl.spacing};
  position: relative;
  max-height: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
`,Zc=(0,le.default)(ie.Ce)`
  max-width: 100%;
  max-height: 100%;
  min-width: 100%;
`,Xc=(0,Kc.W)(e=>{let{course:n,client:t,courseRefetch:a,onCompleted:i}=e;return(0,fe.jsx)(Qc,{children:(0,fe.jsx)(Zc,{autoPlay:!0,sources:[{link:n.metaData.highQualityLink||n.metaData.lowQualityLink||n.metaData.link}],onPlay:()=>(async(e,n,t)=>{const a=(await n.query({query:D})).data.idToken.sub;await n.mutate({mutation:Hc,variables:{userId:a,courseId:e.id,courseProgress:$t}}),t()})(n,t,a),onEnded:()=>(async(e,n,t,a)=>{const i=(await n.query({query:D})).data.idToken.sub;await n.mutate({mutation:Hc,variables:{userId:i,courseId:e.id,courseProgress:Mt}}),t(),a()})(n,t,a,i)})})}),eu=S.J1`
  mutation updateUserCourseProgress($userId: ID!, $courseId: ID!, $courseProgress: CourseProgress!) {
    updateUserCourseProgress(input: { userId: $userId, courseId: $courseId, courseProgress: $courseProgress }) {
      lastUpdatedAt
      courseProgress
    }
  }
`,nu=S.J1`
  mutation completeEvaluation($answers: [AnswerInput!]!, $courseId: ID!, $evaluationId: ID!, $userId: ID!) {
    completeEvaluation(answers: $answers, courseId: $courseId, evaluationId: $evaluationId, userId: $userId)
  }
`,tu=class{constructor(e){this.startupData=e}initialise(e,n,t,a,i,l,r,o,s,d){window.API={LMSInitialize:()=>{e.mutate({mutation:Jc,variables:{key:"user_name",value:l,courseId:n}}),e.mutate({mutation:Jc,variables:{key:"course_title",value:t,courseId:n}}),e.mutate({mutation:Jc,variables:{key:"cpd_value",value:a||0,courseId:n}}),e.mutate({mutation:Jc,variables:{key:"pass_score",value:i||0,courseId:n}}),r&&r!==Ut||e.mutate({mutation:eu,variables:{userId:o,courseId:n,courseProgress:$t}}).then(()=>s())},LMSFinish:e=>{console.log("TCL: InitialiseScormApi -> initialise -> arg",e)},LMSGetValue:e=>{const n=this.getValueByKey(e);return(n?n.value:n)||""},LMSSetValue:(t,a)=>{e.mutate({mutation:Jc,variables:{key:t,value:a,courseId:n}}),"cmi.core.lesson_status"!==t||"passed"!==a&&"completed"!==a||e.mutate({mutation:eu,variables:{userId:o,courseId:n,courseProgress:Mt}}).then(()=>{s(),d()})},LMSCommit:()=>{},LMSGetLastError:()=>{},LMSGetErrorString:()=>{},LMSGetDiagnostic:()=>{}}}getValueByKey(e){return this.startupData.find(n=>n.key===e)}};var au=t(99051),iu=t(66546);const lu=le.default.iframe`
  padding-top: 50px;
  width: 100%;
  height: 100%;
`,ru=(0,Kc.W)(e=>{let{course:n,link:t,client:a,courseRefetch:i,onCompleted:l}=e;const r=n.userCourseMetaData?n.userCourseMetaData.courseProgress:Ut,o={courseId:n.id};return(0,fe.jsx)(au.X,{query:Yc,variables:o,fetchPolicy:"network-only",children:e=>{let{data:s,loading:d,error:c,refetch:u}=e;return d?null:c?(0,fe.jsx)($c,{error:c,retry:()=>u(o)}):(new tu(s.getAllCourseData).initialise(a,n.id,n.name,n.metaData.cpd,n.metaData.passScore,(()=>{const e=localStorage.getItem("ID_TOKEN"),{given_name:n,family_name:t}=(0,iu.A)(e);return`${n} ${t}`})(),r,(()=>{const e=localStorage.getItem("ID_TOKEN"),{sub:n}=(0,iu.A)(e);return n})(),i,l),(0,fe.jsx)(lu,{src:t}))}})}),ou=le.default.div`
  padding: ${e=>e.theme.geometry.xl.spacing};
  position: relative;
  max-height: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
`,su=e=>{let{course:n}=e;return(0,fe.jsx)(ou,{children:(0,fe.jsx)("iframe",{title:"engage",src:n.metaData.url,width:"100%",height:"100%"})})},du=e=>{let{course:n,link:t,onCompleted:a,courseRefetch:i=()=>{}}=e;return n.type===gn.US.Video?(0,fe.jsx)(Xc,{course:n,courseRefetch:i,onCompleted:a}):n.type===gn.US.Scorm?(0,fe.jsx)(ru,{course:n,link:t,courseRefetch:i,onCompleted:a}):n.type===gn.US.Url?(0,fe.jsx)(su,{course:n}):null},cu=(0,le.default)(ie.fI)`
  flex: 0 0 auto;
  align-items: center;
  padding: ${e=>e.theme.geometry.md.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,uu=le.default.div`
  display: flex;
  align-items: center;
  padding-right: ${e=>e.theme.geometry.md.spacing};
  width: 100%;
`,pu=(0,le.default)(ie.GQ)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  display: inline-flex;
`,mu=le.default.div`
  display: flex;
  flex-direction: column;
`,fu=(0,le.default)(ie.Yq)`
  text-decoration: none;
`,yu=le.default.div`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
`,gu=e=>{let{icon:n,iconColor:t,breadcrumb:a,title:i,children:l,...r}=e;return(0,fe.jsxs)(cu,{container:!0,alignItems:"center",...r,children:[(i||n)&&(0,fe.jsxs)(uu,{children:[n&&"string"==typeof n||Array.isArray(n)?(0,fe.jsx)(pu,{inline:!0,height:"50px",size:"xl",circleColor:t,iconColor:t,icon:n}):n&&(0,fe.jsx)(yu,{children:n}),(0,fe.jsxs)(mu,{children:[a&&a.length>0&&(0,fe.jsx)(ie.BI,{children:a.map(e=>(0,fe.jsx)(fu,{size:"sm",component:"routerLink",to:e.to,inline:!0,children:e.title},e.key||e.to||e.title))}),i&&(0,fe.jsx)(ie.DZ,{children:i})]})]}),l]})},hu=le.default.div`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 30px 20px;
`,xu=(0,le.default)(ie.$n)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,Tu=(0,le.default)(ie.DZ)`
  padding: 30px 30px 0px 30px;
`,bu=le.default.div`
  color: ${e=>e.theme.colors.neutral.dark.background};
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px 30px;
`,vu=e=>{let{onDismissClick:n,onConfirmClick:t,deleteObjectName:a}=e;return(0,fe.jsxs)(ie.aF,{height:"auto",maxHeight:"80vh",show:!0,onDismiss:n,children:[(0,fe.jsxs)(Tu,{children:["Delete ",(0,hn.capitalize)(a)]}),(0,fe.jsxs)(bu,{children:["This action will permanently delete this ",a,". Do you want to proceed?"]}),(0,fe.jsxs)(hu,{children:[(0,fe.jsx)(xu,{onClick:t,color:"danger","data-testid":"Confirm_Deletion_Button",children:"Delete"}),(0,fe.jsx)(xu,{onClick:n,"data-testid":"Abort_Deletion_Button",children:"Cancel"})]})]})},Cu=()=>{const e=(0,m.r5)();return(0,g.useEffect)(()=>{window.console.error(e),E.Cp(e)},[e]),e?(0,fe.jsx)($c,{retry:()=>{window.location.reload()},error:e}):null},ku=(0,f.styled)("div")`
  height: 100%;
`,Su=()=>{const e=(0,m.r5)();return(0,g.useEffect)(()=>{window.console.error(e),E.Cp(e)},[e]),e?(0,fe.jsx)(ku,{children:(0,fe.jsx)(f.LoadFailed,{title:"This page failed to load",error:e})}):null},Nu=le.default.div`
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex: auto;
`,Au=(0,le.default)(ie.In)`
  color: ${e=>e.theme.colors.neutral.light.text};
  height: 50px;
  width: 50px;
  margin-bottom: 40px;
`,Ru=(0,le.default)(ie.EY)`
  width: 500px;
  text-align: center;
  color: #4d505b;
`,Du=(0,le.default)(Ru)`
  font-size: 32px;
  line-height: 39px;
  margin-bottom: 23px;
`,Lu=(0,le.default)(Ru)`
  font-size: 16px;
  line-height: 19.49px;
  letter-spacing: -0.005em;
`;function Iu(e){let{title:n,description:t,icon:a}=e;return(0,fe.jsxs)(Nu,{children:[(0,fe.jsx)(Au,{color:"#83838e",icon:a}),(0,fe.jsx)(Du,{children:n}),(0,fe.jsx)(Lu,{size:"sm",children:t})]})}const ju=S.J1`
  query GetAccounts(
    $offset: Int = 0, 
    $limit: Int = 25,
    $sort: [SortCommand!] = [{ field: "name", order: "asc" }]
    $filters: Filters = {}
  ) {
    getAccounts(offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
      }
    }
  }
`,wu=e=>{let{onChange:n,value:t,allAccountsOption:a,customOption:i,isMulti:l,name:r="AccountSelector",...o}=e;const s=lr(),d=zo(),c=Je(),u=(0,g.useMemo)(()=>s.account.includes("getAll"),[s]),{loading:p,error:m,data:f}=(0,x.IT)(ju,{variables:{limit:9999},skip:!u}),y=(0,g.useMemo)(()=>{if(!f?.getAccounts?.rows||!d)return[];const e=f.getAccounts.rows.map(e=>({value:e.id,label:e.name}));return a&&e.unshift({value:"ALL_ACCOUNTS",label:"All Accounts"}),i&&!e.find(e=>e.value===i.value)&&e.unshift(i),e.find(e=>e.value===c)||e.unshift({value:c,label:d?.name}),e},[f?.getAccounts?.rows,d,a,i,c]);return u?p?(0,fe.jsx)(ie.l6,{...o,placeHolder:"Loading"}):m?(0,fe.jsx)(ie.Kw,{error:m,children:e=>{let{icon:n}=e;return(0,fe.jsx)(ie.Wz,{name:"AccountSelector__error",icon:n,title:"Account selector failed to load"})}}):(0,fe.jsx)(ie.l6,{...o,value:Array.isArray(t)?t.map(e=>y.find(n=>n.value===e)):t,name:r,onChange:e=>{n&&n(l?e.target.select.map(e=>{let{value:n,label:t}=e;return{name:t,id:n}}):{name:e.target.label,id:e.target.value})},options:y,defaultOptions:y,isMulti:l}):null},Ou=e=>({value:e.id,label:e.title}),Eu=e=>{let{value:n,onChange:t,error:a=""}=e;const{showNotification:i}=tn(),{error:l,data:r}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,x.IT)(As,e)}({onError:()=>i("Error occurred while loading options:","danger")}),[o,s]=(0,g.useState)([]);return(0,g.useEffect)(()=>{if(l)s([]);else{const e=(r?.getFlows||[]).map(Ou);s(e)}},[r,l]),(0,fe.jsx)(ie.l6,{id:"AddFlow__Select",name:"FlowSelect",placeholder:"Please select a flow",multiValueColor:"tertiary",defaultValue:n,defaultOptions:!0,onChange:t,classPrefix:"user-select",error:a,options:o})},_u=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing} ${e.theme.geometry.sm.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: ${e=>`${e.theme.colors.danger.light.background}`};
`,Fu=e=>{let{id:n,title:t}=e;return(0,fe.jsx)(_u,{name:`noresults-row--${n}`,container:!0,itemAlign:"center",children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{name:`noresults-row__title--${n}`,size:"md",children:t})})})};function Pu(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";class l extends g.Component{constructor(){return super(...arguments),this.state={runTour:!0},this.updateTourStatus=e=>{const t=this.getTourStatus();t[n]=e,localStorage.setItem("TOUR_STATUS",JSON.stringify(t))},this.getTourStatus=()=>{let e=localStorage.getItem("TOUR_STATUS");return e||(localStorage.setItem("TOUR_STATUS",`{"${n}": false}`),e=localStorage.getItem("TOUR_STATUS")),JSON.parse(e)},this.shouldDisplayTour=()=>this.state.runTour&&!this.getTourStatus()[n],this.joyrideHandleClose=e=>{"close"===e.action&&t.onFinish&&t.onFinish(this),"finished"!==e.status&&"skip"!==e.action||this.updateTourStatus(!0)},this}render(){const{intl:n}=this.props,{joyrideOptions:l}=t;l&&(l.scrollToFirstStep="Explore"===this.props.type);const r={disableOverlayClose:!0,disableCloseOnEsc:!0,continuous:!0,callback:this.joyrideHandleClose,locale:{close:n.formatMessage({id:t.closeLabel?t.closeLabel:"learnTour.letsGo"}),skip:n.formatMessage({id:"learnTour.skip"}),next:n.formatMessage({id:"learnTour.next"}),back:n.formatMessage({id:"learnTour.back"})},...l},o=(this.props.steps?this.props.steps:a).map(e=>({...e,title:n.formatMessage({id:e.title},{name:i}),content:n.formatMessage({id:e.content})}));return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(e,{...this.props}),(0,fe.jsx)(ie.pN,{id:"TourGuide",name:"TourGuide",run:this.shouldDisplayTour(),steps:o,disableBeacon:!0,joyride:r})]})}}return(0,ce.Ay)(l)}const Bu=[{title:"learnTour.explore.item1.title",content:"learnTour.explore.item1.content",placement:"right",target:'[name="Explore-ViewAll"]',textAlign:"left",floaterProps:{disableAnimation:!0},disableBeacon:!0},{title:"learnTour.explore.item2.title",content:"learnTour.explore.item2.content",placement:"auto",target:'[name^="CoursesBanner__Link__"]',textAlign:"left",floaterProps:{disableAnimation:!0},disableBeacon:!0}],Uu=[{title:"learnTour.preview.item1.title",content:"learnTour.preview.item1.content",placement:"auto",target:'[name="StartCourse-Button"]',textAlign:"left",floaterProps:{disableAnimation:!0},disableBeacon:!0}],$u=e=>n=>{const t=lr();return(0,fe.jsx)(e,{...n,permissions:t})};function Mu(e,n,t){const a={};return e.questions.forEach(i=>{const l=n[i.id];if(l||(a[i.id]="Please answer the questions"),l<e.scale.min&&(a[i.id]=`Can't be less than ${e.scale.min}`),l>e.scale.max&&(a[i.id]=`Can't be greater than ${e.scale.max}`),t){const e=t[i.id];l<e&&(a[i.id]=`Can't be less than previous answer - ${e}`)}}),a}const Vu=(0,le.default)(ie.fv)`
  width: 100%;
  height: 100%;
  padding: ${e=>e.theme.geometry.md.spacing};
`,Gu=(0,le.default)(ie.DZ)`
  flex: 0;
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`,zu=(0,le.default)(ie.EY)`
  flex: 0;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Wu=(0,le.default)(ie.fI)`
  flex: 0 1 75px;
  padding: ${e=>e.theme.geometry.xs.spacing} 0;
`,qu=(0,le.default)(ie.fI)`
  flex: 1;
  overflow: auto;
`,Ju=(0,le.default)(ie.fv)`
  flex: 1;
`,Yu=(0,le.default)(ie.EY)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Hu=(0,le.default)(ie.fv)`
  padding-right: ${e=>e.theme.geometry.sm.spacing};
`,Ku=(0,le.default)(ie.fI)`
  flex: 0;
  width: 100%;
  align-self: flex-end;
  justify-content: space-between;
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,Qu=(0,le.default)(ie.$n)`
  flex-basis: 48%;
  padding-right: ${e=>e.theme.geometry.xs.spacing};
`;function Zu(e,n){return e.reduce((e,t)=>({...e,[t.id]:t.answers?.[n]?.value}),{})}function Xu(e){let{evaluation:n,onSubmit:t,onGoNext:a,goNextButtonTitle:i,reevaluation:l,type:r,isSubmitting:o}=e;const[s,d]=(0,g.useState)(Zu(n.questions,0)),[c,u]=(0,g.useState)(Zu(n.questions,1)),[p,m]=(0,g.useState)({}),f=n.questions.every(e=>e?.answers?.length>=1),y=n.questions.every(e=>e?.answers?.length>=2);return(0,fe.jsxs)(Vu,{container:!0,children:[(0,fe.jsx)(Gu,{align:"center",children:n.name}),(0,fe.jsx)(zu,{children:n.description}),(0,fe.jsx)(qu,{container:!0,item:!0,children:(0,fe.jsx)(Ju,{container:!0,item:!0,children:n.questions.map((e,t)=>(0,fe.jsxs)(Wu,{item:!0,container:!0,children:[(0,fe.jsx)(ie.fv,{span:l?8:10,vdistribution:"center",container:!0,item:!0,children:(0,fe.jsxs)(ie.EY,{children:[(0,fe.jsxs)(Yu,{weight:"bold",inline:!0,children:["Q",t+1,":"]}),e.text]})}),(0,fe.jsx)(Hu,{span:2,item:!0,children:(0,fe.jsx)(ie.ks,{type:"number",min:n.scale.min,max:n.scale.max,value:s[e.id],error:l?null:p[e.id],placeholder:`${n.scale.min}-${n.scale.max}`,disabled:f,onChange:n=>{d({...s,[e.id]:n.target.value})}})}),l&&(0,fe.jsx)(Hu,{span:2,item:!0,children:(0,fe.jsx)(ie.ks,{type:"number",min:n.scale.min,max:n.scale.max,value:c[e.id],error:p[e.id],placeholder:`${s[e.id]||n.scale.min}-${n.scale.max}`,disabled:y,onChange:n=>{u({...c,[e.id]:n.target.value})}})})]},e.id))})}),(0,fe.jsxs)(Ku,{container:!0,item:!0,children:[(0,fe.jsx)(Qu,{color:"secondary",onClick:a,children:i}),(0,fe.jsxs)(Qu,{color:"success",disabled:o||(l?y:f),onClick:()=>{const e=l?c:s,a=Mu(n,e,l?s:null);if(Object.keys(a).length)return m(a);Object.keys(p).length&&m({}),t(Object.keys(e).map(n=>({questionId:n,value:e[n]})))},children:["Submit ",r]})]})]})}function ep(e,n){const{token:t}=qe(),[a]=(0,ln.n)(eu,{onCompleted:n});return async()=>{if((e.userCourseMetaData?e.userCourseMetaData.courseProgress:Ut)!==Mt){const n={userId:t.sub,courseId:e.id,courseProgress:Mt};await a({variables:n})}}}function np(e,n,t){const a=ep(e,t);return async()=>{await a(),await Xt(n)}}const tp=S.J1`
  fragment EvaluationFields on Evaluation {
    id
    name
    description
    type
    accountId
    scale {
      min
      max
    }
    questions {
      id
      text
    }
  }
`,ap=S.J1`
  query getAllEvaluations($accountId: ID) {
    getAllEvaluations(accountId: $accountId) {
      ...EvaluationFields
    }
  }
  ${tp}
`,ip=S.J1`
  mutation createEvaluation($input: CreateEvaluationInput!) {
    createEvaluation(input: $input) {
      ...EvaluationFields
    }
  }
  ${tp}
`,lp=S.J1`
  fragment BannersFields on Banner {
    accountId
    name
    type
    url
    thumbnail
  }
`,rp=S.J1`
  query GetAvailableCourses($accountId: String!, $pageNumber: Int!, $userId: ID) {
    getAvailableCourses(accountId: $accountId, pageNumber: $pageNumber, userId: $userId) {
      isLastPage
      totalItemCount
      data {
        id
        name
        type
        accountId
        bundleIdList
        metaData {
          viewed
          link
          thumbnail
          cpd
          description
          categories
        }
        userCourseMetaData(userId: $userId) {
          lastUpdatedAt
          courseProgress
        }
      }
      learnBundleList {
        id
        title
        description
        restricted
        startDate
        endDate
        courses
        isBundleHidden
        isbBundleShow
        isMandatoryBundle
      }
    }
  }
`,op=S.J1`
  query SearchCourses($accountId: String!, $pageNumber: Int!, $searchTerm: String!, $userId: ID, $section: String!) {
    searchCourses(
      accountId: $accountId
      pageNumber: $pageNumber
      searchTerm: $searchTerm
      section: $section
      userId: $userId
    ) {
      isLastPage
      totalItemCount
      data {
        id
        name
        type
        accountId
        bundleIdList
        metaData {
          viewed
          link
          thumbnail
          cpd
          categories
        }
        userCourseMetaData(userId: $userId) {
          lastUpdatedAt
          courseProgress
        }
      }
    }

    getLearnBundlesForAccount(accountId: $accountId) {
      id
      title
      description
      restricted
      startDate
      endDate
      courses
      isBundleHidden
      isbBundleShow
      isMandatoryBundle
    }
  }
`,sp=S.J1`
  query SearchCoursesWithOneBundle(
    $accountId: String!
    $pageNumber: Int!
    $searchTerm: String!
    $userId: ID
    $section: String!
    $bundleId: String!
  ) {
    searchCourses(accountId: $accountId, pageNumber: $pageNumber, searchTerm: $searchTerm, section: $section) {
      isLastPage
      totalItemCount
      data {
        id
        name
        type
        accountId
        bundleIdList
        metaData {
          viewed
          link
          thumbnail
          cpd
          categories
        }
        userCourseMetaData(userId: $userId) {
          lastUpdatedAt
          courseProgress
        }
      }
    }
    getLearnBundleById(accountId: $accountId, bundleId: $bundleId) {
      id
      title
      description
      restricted
      startDate
      endDate
      courses
      isBundleHidden
      isbBundleShow
      isMandatoryBundle
    }
  }
`,dp=S.J1`
  query GetBanners($accountId: ID!) {
    getBanners(accountId: $accountId) {
      ...BannersFields
    }
  }
  ${lp}
`,cp=S.J1`
  query GetCourseById($id: ID!, $userIdNullable: ID, $userId: ID!, $accountId: ID!) {
    getCourseById(id: $id, accountId: $accountId) {
      name
      id
      type
      accountId
      metaData {
        link
        viewed
        thumbnail
        description
        timeToComplete
        progress
        duration
        views
        highQualityLink
        lowQualityLink
        downloadLink
        cpd
        passScore
        categories
        url
        openIframe
      }
      assessment {
        ...EvaluationFields
        questions {
          id
          text
          answers(userId: $userId, courseId: $id) {
            givenAt
            value
          }
        }
      }
      reaction {
        ...EvaluationFields
        questions {
          id
          text
          answers(userId: $userId, courseId: $id) {
            givenAt
            value
          }
        }
      }
      userCourseMetaData(userId: $userIdNullable) {
        lastUpdatedAt
        courseProgress
      }
    }
  }
  ${tp}
`,up=(0,le.default)(ie.fv)`
  height: 100%;
`,pp=(0,le.default)(ie.fI)`
  display: flex;
  flex: auto;
  height: auto;

  iframe {
    min-height: 90vh;
  }
`,mp=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
  justify-content: space-between;
  align-self: flex-end;
  flex: 0 0 auto;
  width: 100%;
`,fp=(0,le.default)(ie.$n)`
  flex-basis: 48%;
  padding-right: ${e=>e.theme.geometry.xs.spacing};
`,yp={display:"block"};function gp(e){let{onDismiss:n,course:t,link:a,courseRefetch:i=()=>{}}=e;const l=t.assessment?.questions?.every?.(e=>e.answers?.length>=1),[r,o]=(0,g.useState)(null),[s,d]=(0,g.useState)(t.assessment?0:1),[c,u]=(0,g.useState)(!1),p=Je(),[m,{loading:f}]=(0,ln.n)(nu,{onError:e=>{o({color:"danger",message:e.message})}}),y=np(t,a,i),{token:h}=qe(),x=(e,n)=>a=>{a.writeQuery({query:cp,variables:{accountId:p,id:t.id,userId:h.sub,userIdNullable:h.sub},data:{getCourseById:{...t,[n]:{...t[n],questions:t[n].questions.map(n=>{const t=e.find(e=>e.questionId===n.id),a=n.answers||[];return{...n,answers:a.concat([{givenAt:(new Date).toISOString(),value:t.value,__typename:"Answer"}])}})}}}})};return(0,fe.jsxs)(ie.aF,{height:"auto",maxHeight:"100%",minHeight:"-webkit-fill-available",span:12,onDismiss:n,style:yp,show:!0,children:[0===s&&(0,fe.jsx)(Xu,{type:"Pre-assessment",goNextButtonTitle:c?"Go to Post-assessment":"Go to Course",evaluation:t.assessment,onSubmit:async e=>{await m({variables:{answers:e,userId:h.sub,courseId:t.id,evaluationId:t.assessment.id},update:x(e,"assessment")}),i()},onGoNext:async()=>{t.type===gn.US.Pdf?c?d(2):(await y(),u(!0)):d(1)},isSubmitting:f}),1===s&&(0,fe.jsxs)(up,{container:!0,children:[(0,fe.jsx)(pp,{item:!0,children:(0,fe.jsx)(du,{course:t,link:a,courseRefetch:i,onCompleted:()=>{t.assesment&&l&&d(2)}})}),t.assessment&&l&&(0,fe.jsxs)(mp,{container:!0,item:!0,children:[(0,fe.jsx)(fp,{color:"secondary",onClick:()=>{d(2)},children:"Go to Post-assessment"}),(0,fe.jsx)(fp,{color:"info",onClick:n,children:"Close"})]}),!t.assessment&&t.reaction&&(0,fe.jsxs)(mp,{container:!0,item:!0,children:[(0,fe.jsx)(fp,{color:"secondary",onClick:()=>{d(3)},children:"Go to Reaction"}),(0,fe.jsx)(fp,{color:"info",onClick:n,children:"Close"})]})]}),2===s&&(0,fe.jsx)(Xu,{type:"Post-assessment",goNextButtonTitle:t.reaction?"Go to reaction":"Close",evaluation:t.assessment,onSubmit:async e=>{await m({variables:{answers:e,userId:h.sub,courseId:t.id,evaluationId:t.assessment.id},update:x(e,"assessment")})},onGoNext:()=>{t.reaction?d(3):n()},isSubmitting:f,reevaluation:!0}),3===s&&(0,fe.jsx)(Xu,{type:"Reaction",goNextButtonTitle:"Close",evaluation:t.reaction,onSubmit:async e=>{await m({variables:{answers:e,userId:h.sub,courseId:t.id,evaluationId:t.reaction.id},update:x(e,"reaction")})},isSubmitting:f,onGoNext:n}),r&&(0,fe.jsx)(ie.Eg,{color:r.color,name:r.message,show:!0,children:r.message})]})}const hp=(0,le.default)(ie.$n)`
  margin-top: ${e=>e.theme.geometry.md.spacing};
  border-radius: 0;
`,xp=(0,ce.Ay)(Pu(function(e){let{course:n,downloadLink:t,handleType:a,courseRefetch:i,component:l,name:r,intl:o}=e;const[s,d]=(0,g.useState)(!1),c=l||hp,u=ep(n,i),p=np(n,t,i),m=a===ya&&null===n.assessment;return(0,fe.jsxs)(fe.Fragment,{children:[s&&(0,fe.jsx)(gp,{onDismiss:()=>{d(!1)},course:n,link:t,courseRefetch:i}),(0,fe.jsx)(c,{color:"success",component:m?"a":"button",target:"_blank",pill:!1,rel:"noopener noreferrer",inline:!0,name:r,onClick:()=>{m?p():a===fa?(u(),window.open(n.metaData.url,"_blank")):a===ma?(u(),d(!0)):d(!0)},children:m?"Download PDF":o.formatMessage({id:"pages.coursesPreview.startCourse"})})]})},"learn.preview",{closeLabel:"learnTour.close",joyrideOptions:{scrollToFirstStep:!1}}));var Tp=t(24257);const bp=le.default.div`
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
`,vp=le.default.div`
  flex: 0 0 auto;
  height: 100%;
  margin-left: auto;
  border-left: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,Cp=(0,le.default)(ie.fI)`
  flex: 0 0 auto;
  height: 100%;
  padding: 0 ${e=>e.theme.geometry.sm.spacing};
  &:hover {
    cursor: pointer;
    background: ${e=>{let{theme:n}=e;return n.colors.overlay.light.background}};
  }
`,kp=(0,le.default)(ie.Y3)`
  flex: 0 0 auto;
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Sp=(0,le.default)(ie.fI)`
  flex: 0 0 auto;
`,Np=(0,le.default)(ie.EY)`
  flex: 0 0 auto;
`,Ap=(0,le.default)(ie.In)`
  flex: 0 0 auto;
  margin-left: ${e=>e.theme.geometry.xs.spacing};
  color: ${e=>e.theme.colors.text.normal.background};
`,Rp=le.keyframes`
  0% { opacity: 0.4; }
  40% { opacity: 0.15; } 
  100% { opacity: 0.4; } 
`,Dp=le.css`
  ${Rp} infinite 2s;
`,Lp=le.default.div`
  height: 44px;
  width: 44px;
  background-color: ${e=>e.theme.colors.overlay.dark.background};
  opacity: 0.4;
  border-radius: 5000px;
  animation: ${Dp};
`,Ip=le.default.div`
  margin-left: ${e=>e.theme.geometry.xs.spacing};
  height: ${e=>e.theme.fonts.md.size};
  width: ${e=>e.width};
  background-color: ${e=>e.theme.colors.text.normal.background};
  opacity: 0.4;
  border-radius: ${e=>e.theme.geometry.md.radius};
  animation: ${Rp} infinite 2s;
  animation-delay: 0.1s;
`,jp=le.default.div`
  border-radius: 5px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: ${e=>{let{theme:n}=e;return n.colors.basic.white}};
  border: 1px solid ${e=>{let{theme:n}=e;return n.colors.overlay.normal.background}};
  border-top: 0;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.4);
`,wp=(0,le.default)(ie.Yq)`
  padding: ${e=>{let{theme:n}=e;return n.geometry.md.spacing}};
  padding-right: ${e=>{let{theme:n}=e;return n.geometry.xxl.spacing}};
  border-top: 1px solid ${e=>{let{theme:n}=e;return n.colors.overlay.normal.background}};

  &:hover {
    background: ${e=>{let{theme:n}=e;return n.colors.overlay.light.background}};
  }
`,Op=()=>{const[e,n]=(0,g.useState)({showDropdown:!1}),{data:t}=Ns(),a=()=>n({showDropdown:!e.showDropdown}),i=(e,n)=>{const t=`${e} ${n}`;return t.length>25?`${t.slice(0,22)}...`:t},l=()=>{localStorage.removeItem("TOUR_STATUS")},r=lr(),{showDropdown:o}=e;return(0,fe.jsxs)(fe.Fragment,{children:[o&&(0,fe.jsx)(bp,{onClick:a}),(0,fe.jsx)(Tp.A,{style:{"z-index":"1"},attachment:"bottom right",targetAttachment:"top right",constraints:[{to:"scrollParent",attachment:"together"}],renderTarget:e=>t?(0,fe.jsx)(vp,{name:"AccountDropdown__User",container:!0,ref:e,children:(0,fe.jsxs)(Cp,{container:!0,itemAlign:"center",onClick:a,children:[(0,fe.jsx)(kp,{name:"AccountDropdown__User-Name",size:"xxs",src:t.profilePicture,accountName:t.first_name}),(0,fe.jsxs)(Sp,{container:!0,itemAlign:"center",children:[(0,fe.jsx)(Np,{name:"AccountDropdown__User-Name",inline:!0,size:"md",children:i(t.first_name,t.last_name)}),(0,fe.jsx)(Ap,{icon:"chevron-down"})]})]})}):(0,fe.jsxs)(vp,{ref:e,name:"AccountDropdown__User--Placeholder",container:!0,itemAlign:"center",onClick:a,children:[(0,fe.jsx)(Lp,{name:"AccountDropdown__User-Image--Placeholder"}),(0,fe.jsx)(Ip,{width:"70px",name:"AccountDropdown__User-Name--Placeholder"}),(0,fe.jsx)(Ip,{width:"16px"})]}),renderElement:e=>o&&(0,fe.jsxs)(jp,{ref:e,children:[(0,fe.jsx)(wp,{name:"AccountDropdown__Link--Profile",underline:!1,color:"dark",component:"routerLink",to:"/profile",children:(0,fe.jsx)(de.A,{id:"home.myProfile"})}),(0,fe.jsx)(wp,{name:"AccountDropdown__Link--Contact",underline:!1,color:"dark",component:"routerLink",to:"/contact",children:(0,fe.jsx)(de.A,{id:"home.contact"})}),r.account.includes("getAll")&&(0,fe.jsx)(wp,{name:"AccountDropdown__Link--ResetTours",underline:!1,color:"dark",onClick:l,children:"Reset tours"}),(0,fe.jsx)(me.s,{mutation:O,children:e=>(0,fe.jsx)(wp,{name:"AccountDropdown__Link--Logout",underline:!1,color:"dark",component:"routerLink",to:"/logout",onClick:e,children:(0,fe.jsx)(de.A,{id:"home.logoutButtonLabel"})})})]})})]})},Ep=(0,le.default)(ie.fI)`
  flex: 0 0 auto;
  width: 100%;
  height: 70px;
  background-color: ${e=>e.theme.colors.basic.white};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  position: relative;
`,_p=(0,le.default)(p.Link)`
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
`,Fp=le.default.div`
  position: relative;
  background: no-repeat center center / contain url(${Re});
  height: 44px;
  width: 88px;
  background-size: 88px 44px;
`,Pp=(0,le.default)(p.NavLink)``,Bp=(0,le.default)(ie.$n)`
  display: inline-block;
  max-width: 160px;
  font-size: 14px;
  width: auto;
  padding: 12px 10px;
  margin-right: ${e=>{let{theme:n}=e;return n.geometry.md.spacing}};
  position: relative;
`,Up=()=>(0,fe.jsxs)(Ep,{container:!0,distribution:"center",itemAlign:"center",children:[(0,fe.jsx)(_p,{to:"/home",children:(0,fe.jsx)(Fp,{})}),(0,fe.jsx)(Pp,{to:"/upgrade/courses",children:(0,fe.jsx)(Bp,{name:"AccountDropdown__Upgrade",children:"Buy Courses"})}),(0,fe.jsx)(Op,{})]});var $p=t(96625),Mp=t.n($p);const Vp=le.default.img`
  height: 70px;
  object-fit: contain;
`;function Gp(e){let{account:n,onClick:t,...a}=e;return(0,fe.jsx)(Vp,{alt:Re,src:n.logoPath||Re,onClick:t,...a})}const zp=le.keyframes`
  0% { opacity: 0.4; }
  40% { opacity: 0.15; } 
  100% { opacity: 0.4; } 
`,Wp=le.css`
  ${zp} infinite 2s;
`,qp=le.default.div`
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
`,Jp=le.default.div`
  height: ${e=>e.theme.fonts.md.size};
  width: ${e=>e.width};
  background-color: ${e=>e.theme.colors.text.normal.background};
  opacity: 0.4;
  border-radius: ${e=>e.theme.geometry.md.radius};
  animation: ${Wp};
  animation-delay: 0.1s;
`,Yp=le.default.div`
  position: relative;
  display: ${e=>{let{collapsed:n}=e;return n?"none":"flex"}};
  padding: ${e=>e.theme.geometry.md.spacing};
  flex: 1 1 auto;
  flex-direction: column;
  place-content: stretch center;
  &:hover {
    cursor: ${e=>e.clickable?"pointer":"default"};
    background: ${e=>e.clickable?e.theme.colors.overlay.light.background:"initial"};
  }
`,Hp=le.default.ul`
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 300px;
  max-height: 350px;
  overflow-y: auto;
  background-color: white;
`,Kp=le.default.li`
  display: flex;
  width: 100%;
  height: 70px;
  min-height: 70px;
  align-items: center;
  padding-left: ${e=>e.theme.geometry.md.spacing};
  padding-top: ${e=>e.theme.geometry.xs.spacing};
  padding-bottom: ${e=>e.theme.geometry.xs.spacing};
  border-top: 1px solid ${e=>{let{theme:n}=e;return n.colors.overlay.normal.background}};

  border-radius: 5px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: ${e=>{let{theme:n}=e;return n.colors.basic.white}};
  border: 1px solid ${e=>{let{theme:n}=e;return n.colors.overlay.normal.background}};
  border-top: 0;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.4);

  &:hover {
    cursor: pointer;
    background: ${e=>{let{theme:n}=e;return n.colors.overlay.light.background}};
  }
`,Qp=le.default.div`
  min-width: 110px;
  max-width: 110px;
  height: 100%;
`,Zp=le.default.img`
  min-width: 110px;
  max-width: 110px;
  height: 100%;
`,Xp=le.default.span`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,em=(0,Kc.W)(()=>{const{token:e}=qe(),n="collapsed"===localStorage.getItem("SIDEBAR_COLLAPSED"),[t,a]=(0,g.useState)(!0),i=e=>{"Sidebar__AccountSection__AcountName--Container"===e.target.id||"Sidebar__AccountSection__AcountName--Logo"===e.target.id?a(!t):a(!0)},l=Je(),{accountIds:r,accounts:o,user:s}=Bd(e.sub),d=s&&s.account,c=!n&&(!d||r.length>1),u=(0,g.useRef)([]),p=(0,g.useCallback)(e=>{const n=Object.keys(o).map(e=>o[e]).sort(Jn).find(n=>n.name.toLowerCase()[0]===e.key);if(n){const e=r.findIndex(e=>e===n.id);u.current[e].scrollIntoView(!1)}},[o,r]);return(0,g.useEffect)(()=>{t?window.removeEventListener("keydown",p):window.addEventListener("keydown",p)},[t,p]),(0,fe.jsx)(me.s,{mutation:ae,children:e=>(0,fe.jsxs)(fe.Fragment,{children:[!t&&(0,fe.jsx)(qp,{onClick:i}),(0,fe.jsx)(Tp.A,{attachment:"bottom left",targetAttachment:"bottom left",constraints:[{to:"scrollParent",attachment:"together"}],renderTarget:e=>(0,fe.jsx)(Yp,{container:!0,item:!0,ref:e,vdistribution:"center",id:"Sidebar__AccountSection__AcountName--Container",collapsed:n,clickable:c,onClick:e=>{c&&i(e)},children:d&&l?o[l]&&(0,fe.jsx)(Gp,{account:o[l],id:"Sidebar__AccountSection__AcountName--Logo"}):(0,fe.jsx)(Jp,{width:"110px",name:"Sidebar__AccountSection__AccountName--Placeholder"})}),renderElement:n=>!t&&(0,fe.jsx)(Hp,{ref:n,children:r.length>1?r.map((n,t)=>{return(0,fe.jsxs)(Kp,{ref:e=>u.current[t]=e,onClick:t=>{e({variables:{currentAccountId:n}}),i(t)},children:[(0,fe.jsx)(Qp,{children:o[n].logoPath?(0,fe.jsx)(Zp,{src:o[n].logoPath}):null}),(0,fe.jsxs)(Xp,{children:[(a=o[n].name,a.length>25?`${a.slice(0,22)}...`:a),n===l?" (Current)":""]})]},n);var a}):null})})]})})});var nm=t(83357);const tm=e=>{const n=[];return e.forEach(e=>{n.push(...e.elements)}),n},am=e=>{const n=(0,hn.keyBy)(e.submissions,n=>e.isIndividualContributor?n.userId||"":e.isUserGroupContributor?n.userGroupId||"":n.owner.id),t=e.contributors.map(t=>{let{account:a,user:i,userGroup:l}=t,r="";return r=e.isIndividualContributor?i?.id||"":e.isUserGroupContributor?l?.id||"":a.id,n[r]?((e,n)=>{if(!n?.status)return 0;if(n?.status!==gn.ZU.InProgress)return 100;const{surveyJSON:t,answers:a}=((e,n)=>{const t=JSON.parse(e.formContent),a={elements:tm(t.pages)||[]},i=function(e,n){const t={},a=(0,hn.keyBy)(n.questions,"id");return e?.forEach(e=>{const n=a[e.questionId];if(!n)return;const i=n.name,l=JSON.parse(e.answer);t[i]=l}),t}(n?.answers,e)||{};return{surveyJSON:a,answers:i}})(e,n);if(!t)return;const i=new nm.SurveyModel(t);return i.progressBarType="requiredQuestions",i.data=a,i.getProgress()})(e.template,n[r]):0});return e.contributors.length?(0,hn.round)((0,hn.sum)(t)/t.length,2):0},im=(e,n)=>{switch(n){case gn.ZU.Approved:return e.colors.success.normal.background;case gn.ZU.InProgress:case gn.ZU.RequiresChanges:case gn.ZU.ReadyForReview:return e.colors.warning.normal.background;default:return e.colors.danger.normal.background}};function lm(e){let n="Not Started";switch(e){case gn.ZU.RequiresChanges:n="Changes Requested";break;case gn.ZU.ReadyForReview:n="Requires Approval";break;case gn.ZU.InProgress:n="In Progress";break;case gn.ZU.Approved:n="Complete"}return n}const rm=e=>"ReceivedSurvey"===e.__typename,om=e=>{if(!e)return!1;const n=bn()(),t=bn()().add(5,"days"),a=bn()(e);return a.isSameOrAfter(n)&&a.isBefore(t)},sm=e=>!!e&&[gn.ZU.ReadyForReview,gn.ZU.Approved].includes(e),dm=e=>{const n=bn()(e).isBefore(bn()()),t=om(e);(e=>{if(!e)return!1;const n=bn()().add(5,"days");bn()(e).isAfter(n)})(e);let a,i,l="normal";switch(!0){case t:a="#FD919C",l="600",i=!1;break;case n:a="#83838E",i=!0;break;default:a="#4D505B",i=!1}return{color:a,isOverDue:i,fontWeight:l}};function cm(e){return void 0!==e.submissions}const um=e=>"number"==typeof e||"boolean"==typeof e?e.toString():null===e?"":Array.isArray(e)?e.join(", "):"object"==typeof e?Object.keys(e).map(n=>`${n}: ${e[n]}`).join(", "):e,pm=le.default.span`
  position: relative;
  display: inline-block;
  padding-left: 20px;
  white-space: nowrap;
  color: ${e=>e.theme.colors.text.light.text};
  &::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: ${e=>{let{status:n,theme:t}=e;return im(t,n)}};
  }
`,mm=S.J1`
  query GetMyContributors($accountId: ID!) {
    getMySurveyContributors(accountId: $accountId) {
      __typename
      ... on AccountSurveyContributor {
        account {
          id
          name
        }
        user {
          id
          first_name
          last_name
          email
        }
        userGroup {
          id
          name
        }
      }
    }
  }
`;function fm(e){return dn(mm,{variables:{accountId:e},keepErrorAfterUnmount:!0})}function ym(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,Ul._)(mm,{variables:{accountId:e},...n})}const gm=(0,le.default)(ie.ob)`
  background-color: red;
  div ul {
    z-index: 100;
  }
`,hm=e=>{let{survey:n,withExportToXLSX:t=!0}=e;const a=Je(),[i]=ym(a),l=(0,m.Zp)(),r=or(),o=(0,g.useMemo)(()=>"Survey"===n.__typename?"survey":"response",[n]),s=(0,g.useMemo)(()=>{const{pathname:e}=window.location,t=e.includes(r.surveys.sent.contributor.replace("/:contributorId","")),a=e.includes(r.surveys.sent.surveys),i=e.includes(r.surveys.sent.overview),l=e.includes(r.surveys.sent.survey.replace(":surveyId",n.id)),s=e.includes(r.surveys.received.surveys),d=e.includes(r.surveys.received.survey.replace(":surveyId",n.id)),c=e.includes("submission");if(i||l)return`../sent/surveys/${n.id}/survey-log`;if((t||a)&&"survey"===o)return`./${n.id}/survey-log`;if("survey"===o)return"./survey-log";if(c){const e=n;return`../sent/contributors/${e?.submission?.owner?.id}/response-log/${n.id}`}return d?"./response-log":s?`./${n.id}/response-log`:`./response-log/${n.id}`},[o,n,r]),d=(0,g.useMemo)(()=>{const e=[{text:`View ${o} log`,onClick:e=>{e.stopPropagation(),l(s)}}];return cm(n)&&t&&e.push({text:"Export to XLSX",onClick:async e=>{e.stopPropagation();const{data:t}=await i(),a=t?.getMySurveyContributors||[],l=["contributor",...n?.template?.questions?.map(e=>`${e.title} - (${e.name})`)||[]],r=Pd()(n.template.questions,"id"),o=n.submissions.map(e=>{const t=a.find(t=>n.isIndividualContributor?t.account.id===e.owner.id&&t.user?.id===e.userId:n.isUserGroupContributor?t.account.id===e.owner.id&&t.userGroup?.id===e.userGroupId:t.account.id===e.owner.id),i=n.isIndividualContributor?`${t?.user?.first_name} ${t?.user?.last_name}`:t?.account?.name;return e.answers.reduce((e,n)=>{const t=r[n.questionId];return t?{...e,[`${t.title} - (${t.name})`]:JSON.parse(n.answer)}:e},{contributor:i})});ia(l,`${n.name} Results`,o,um)}}),e},[o,l,s,n,i,t]);return(0,fe.jsx)(gm,{items:d})},xm=le.default.div`
  flex: 1 1 auto;
  // Fallbacks for IE
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-center;

  // CSS grid for real browsers
  display: grid;
  grid-gap: 20px;

  @media (min-width: 1920px) {
    grid-template-columns: repeat(5, minmax(10px, 1fr));
  }

  @media (min-width: 1601px) and (max-width: 1920px) {
    grid-template-columns: repeat(4, minmax(10px, 1fr));
  }

  @media (min-width: 1367px) and (max-width: 1600px) {
    grid-template-columns: repeat(3, minmax(10px, 1fr));
  }

  @media (max-width: 1366px) {
    grid-template-columns: repeat(2, minmax(10px, 1fr));
  }
`,Tm=le.default.div`
  display: flex;
  flex-flow: column nowrap;
  flex: 0 0 20%;
  height: 202px;
  z-index: 0;
  padding-top: ${e=>e.theme.geometry.sm.spacing};
  opacity: ${e=>e.disabled?"0.5":"1"};
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  position: relative;
  border-radius: 8px;
  color: ${e=>e.theme.colors.text.light.text};
  &:hover {
    cursor: ${e=>e.disabled?"not-allowed":"pointer"};
  }
`,bm=le.default.div`
  position: relative;
  z-index: 10;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 12px;
  padding-top: ${e=>e.theme.geometry.xxs.spacing};
  padding-left: ${e=>e.theme.geometry.md.spacing};
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,vm=le.default.div`
  padding-left: ${e=>e.theme.geometry.md.spacing};
  flex: 1;
  position: relative;
  font-size: 20px;
  line-height: 24px;
`,Cm=le.default.div`
  margin-top: ${e=>e.theme.geometry.xs.spacing};
  font-size: 16px;
  line-height: 19px;
  color: ${e=>e.theme.colors.text.normal.background};
`,km=e=>{let{survey:n,disabled:t,subtitle:a,onClick:i}=e;const{name:l,template:r,deadlineDate:o}=n||{},s=(0,g.useCallback)(e=>{(e=>{const n=e.target.firstChild;return"span"===n?.tagName?.toLowerCase()&&!n?.textContent})(e)||t||i?.(n.id)},[i,n,t]);return(0,fe.jsxs)(Tm,{name:`SurveyTile--${n.id}`,disabled:!!t,onClick:s,children:[(0,fe.jsxs)(bm,{children:[rm(n)&&(0,fe.jsx)(pm,{status:n.submission?.status,children:lm(n.submission?.status)}),(0,fe.jsx)(hm,{survey:n})]}),(0,fe.jsxs)(vm,{children:[l,a&&(0,fe.jsx)(Cm,{children:a})]}),(0,fe.jsx)(wf,{deadlineDate:o,fill:!0})]})},Sm=le.default.div`
  overflow: auto;
  padding: ${e=>e.theme.geometry.md.spacing};
`,Nm=e=>{let{surveys:{rows:n,totalRows:t},onSurveyClick:a}=e;return t?(0,fe.jsx)(Sm,{children:(0,fe.jsx)(xm,{children:n.map(e=>(0,fe.jsx)(km,{onClick:a,survey:e,subtitle:rm(e)?`From ${e.owner.name}`:`${am(e)}% response rate`},e.id))})}):(0,fe.jsx)(Iu,{title:"You don't have any surveys yet",description:"Surveys are a quick way to collect data and insights",icon:["rio","clipboard-check-custom"]})};var Am=t(93785),Rm=t.n(Am);const Dm=e=>({value:e.id,label:e.name}),Lm=e=>{let{accountId:n,value:t,onChange:a,error:i=""}=e;const{data:l}=(0,x.IT)(Rm(),{variables:{accountId:n}}),r=(l?.getSurveyTemplatesByAccountId??[]).map(Dm),o=r.find(e=>e.value===t);return(0,fe.jsx)(ie.l6,{id:"AddSurvey__Select",name:"SurveyTemplateSelect",placeholder:"Please select a survey",multiValueColor:"tertiary",value:o,defaultOptions:!0,onChange:a,classPrefix:"user-select",error:i,options:r})},Im=(0,le.default)(ie.$n)`
  align-self: flex-end;
  width: 200px;
  background-color: ${e=>e.theme.colors.basic.white};
  color: ${e=>e.theme.colors.primary.light.text};
  border-color: ${e=>e.theme.colors.primary.light.text};
  border-width: 1px;
`,jm=e=>{let{fill:n}=e;return(0,fe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 25C50 38.8071 38.8071 50 25 50C11.1929 50 0 38.8071 0 25C0 11.1929 11.1929 0 25 0C38.8071 0 50 11.1929 50 25ZM46 25C46 36.598 36.598 46 25 46C13.402 46 4 36.598 4 25C4 13.402 13.402 4 25 4C36.598 4 46 13.402 46 25Z",fill:n})},wm=(le.default.svg`
  &:hover {
    cursor: ${e=>e.onClick?"pointer":"default"};
  }
`,e=>{let{circle:n,children:t,...a}=e;return(0,fe.jsxs)("svg",{...a,children:[t,n&&(0,fe.jsx)(jm,{fill:n})]})}),Om=e=>{let{width:n=12,height:t=13,fill:a="#83838e",...i}=e;return(0,fe.jsxs)(wm,{width:n,height:t,viewBox:`0 0 ${n} ${t}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,fe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99999 12.5V10.5H9.99998V7.5L12 7.5V12.5H6.99999Z",fill:a}),(0,fe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99999 0.5V2.5L9.99998 2.5V5.49999H12V0.5L6.99999 0.5Z",fill:a}),(0,fe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.99999 12.5V10.5H2L2 7.5L2.52881e-07 7.5L0 12.5H4.99999Z",fill:a}),(0,fe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.99999 0.5V2.5L2 2.5L2 5.49999H2.52881e-07L0 0.5L4.99999 0.5Z",fill:a})]})},Em=e=>{let{width:n=50,height:t=50,fill:a="#fd978b",...i}=e;return(0,fe.jsxs)(wm,{width:n,height:t,viewBox:`0 0 ${n} ${t}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,fe.jsx)("path",{d:"M25.0023 10C23.6783 10 22.5856 11.073 22.5856 12.3731V12.7207H21.4695C21.2417 12.7217 21.0236 12.8113 20.863 12.9703C20.7025 13.129 20.6127 13.3441 20.6137 13.5679V16.4204C20.6127 16.6442 20.7025 16.8591 20.863 17.018C21.0236 17.1768 21.2416 17.2666 21.4695 17.2674H28.5303C28.7593 17.2683 28.9791 17.1795 29.1412 17.0203C29.303 16.8613 29.3938 16.6453 29.3928 16.4205V13.5679C29.3938 13.3431 29.303 13.127 29.1412 12.9679C28.9791 12.8089 28.7593 12.7201 28.5303 12.7208H27.4192V12.3731C27.4192 11.073 26.3263 10 25.0023 10Z",fill:a}),(0,fe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7737 14.1545C15.5616 14.1754 15.3648 14.273 15.2219 14.4282C15.0788 14.5836 14.9998 14.7856 15 14.9949V36.1595C15.001 36.3834 15.0923 36.5975 15.2541 36.7552C15.4158 36.9128 15.6347 37.0009 15.8628 37H34.1442C34.3709 36.9991 34.588 36.9103 34.7484 36.7529C34.9085 36.5954 34.999 36.3822 35 36.1594V14.9948C34.999 14.7722 34.9085 14.559 34.7484 14.4016C34.588 14.2441 34.3707 14.1552 34.144 14.1545H31.1114V16.4137C31.1165 17.7988 29.9341 18.9602 28.5234 18.955H21.4695L21.4628 18.9548C20.0596 18.9487 18.8898 17.7914 18.8951 16.4135V14.1543H15.8625C15.833 14.1528 15.8034 14.153 15.7737 14.1545ZM31.2191 22.9759C31.7695 23.4403 31.8191 24.2403 31.3299 24.7627L24.2188 32.3565C23.9657 32.6267 23.6031 32.7812 23.2222 32.7812C22.8414 32.7812 22.4787 32.6267 22.2257 32.3565L18.6701 28.5596C18.1809 28.0372 18.2305 27.2372 18.7809 26.7728C19.3312 26.3084 20.174 26.3555 20.6632 26.8779L23.2222 29.6106L29.3368 23.0811C29.826 22.5586 30.6688 22.5116 31.2191 22.9759Z",fill:a})]})},_m=e=>{let{width:n=16,height:t=16,fill:a="#00C8B5",...i}=e;return(0,fe.jsx)(wm,{width:n,height:t,viewBox:`0 0 ${n} ${t}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:(0,fe.jsx)("path",{d:"M12.2759 3.31055L13.7242 4.68986L6.33335 12.4502L2.27588 8.18986L3.72415 6.81055L6.33335 9.5502L12.2759 3.31055Z",fill:a})})},Fm=le.default.div`
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  line-height: 19px;
  color: #83838e;
  &:hover {
    cursor: pointer;
  }
`,Pm=le.default.span`
  margin-left: 6px;
`,Bm=e=>{let{onClick:n}=e;return(0,fe.jsxs)(Fm,{onClick:n,children:[(0,fe.jsx)(Om,{})," ",(0,fe.jsx)(Pm,{children:"Expand"})]})};var Um=t(50739);const $m=le.default.span`
  margin-right: 20px;
  color: ${e=>e.theme.colors.text.light.text};
`,Mm=()=>(0,fe.jsxs)($m,{children:[(0,fe.jsx)(ie.In,{icon:"check",size:"md"}),(0,fe.jsx)("span",{children:"Auto-save is on"})]}),Vm=(0,le.default)(ie.fI)`
  justify-content: flex-end;
  margin-top: ${e=>e.theme.geometry.md.spacing};
`,Gm=(0,le.default)(Im)`
  width: auto;
`,zm=le.default.article`
  padding: ${e=>e.theme.geometry.md.spacing};
`,Wm=le.default.h1`
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: ${e=>e.theme.colors.text.light.text};
`,qm=le.default.p`
  font-size: 16px;
  line-height: 19px;
  color: ${e=>e.theme.colors.text.light.text};
`;function Jm(e){let{survey:n}=e;const[t,a]=(0,g.useState)(!1),i=(0,g.useCallback)(()=>a(e=>!e),[a]);return(0,fe.jsxs)(Vm,{container:!0,children:[(0,fe.jsxs)(Gm,{onClick:i,children:["View comments from ",n.owner.name]}),t&&(0,fe.jsx)(ie.aF,{show:!0,size:"md",height:"auto",onDismiss:i,children:(0,fe.jsxs)(zm,{children:[(0,fe.jsxs)(Wm,{children:["Comments from ",n.owner.name]}),(0,fe.jsx)(qm,{children:n.submission?.feedback})]})})]})}const Ym=le.default.form`
  padding: ${e=>e.theme.geometry.md.spacing};
`,Hm=le.default.h1`
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  color: ${e=>e.theme.colors.text.light.text};
`,Km=le.default.h5`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  font-size: 16px;
  line-height: 19px;
`,Qm=(0,le.default)(ie.fs)`
  height: 90px;
  margin-bottom: 12px;
`,Zm=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
  font-size: 14px;
  line-height: 17px;
  color: ${e=>e.theme.colors.text.normal.background};
`,Xm=(0,le.default)(ie.fI)`
  justify-content: space-between;
`,ef=(0,le.default)(Im)`
  width: 95%;
  font-weight: 600;
`,nf=(0,le.default)(ie.$n)`
  color: ${e=>e.theme.colors.text.light.text};
  font-weight: 600;
`;function tf(e){let{intention:n,onDismiss:t,onFeedback:a}=e;const i=n===gn.iD.Approved,[l,r]=(0,g.useState)(null),[o,s]=(0,g.useState)(!1),d=(0,g.useCallback)(e=>r(e.target.value),[r]),c=(0,g.useCallback)(async()=>{try{s(!0),await a(n,l)}finally{s(!1),t()}},[a,l,n,t]);return(0,fe.jsx)(ie.aF,{show:!0,size:"md",height:"auto",dismissable:!0,enableEscapeKey:!0,children:(0,fe.jsxs)(Ym,{children:[(0,fe.jsx)(Hm,{children:i?"Are you sure you want to approve this response?":"Are you sure you want to request changes this response?"}),(0,fe.jsx)(Km,{children:"Comments for recipients (optional)"}),(0,fe.jsx)(Qm,{maxLength:1e3,onChange:d}),(0,fe.jsx)(Zm,{children:"These notes will appear in the email sent to your recipients"}),(0,fe.jsxs)(Xm,{container:!0,children:[(0,fe.jsx)(ie.fv,{item:!0,span:6,children:(0,fe.jsx)(ef,{disabled:o,onClick:t,children:"No, keep as is"})}),(0,fe.jsx)(ie.fv,{item:!0,span:6,children:i?(0,fe.jsx)(ie.$n,{onClick:c,type:"button",color:"success",disabled:o,children:"Yes, approve"}):(0,fe.jsx)(nf,{onClick:c,type:"button",color:"warning",disabled:o,children:"Yes, request changes"})})]})]})})}const af=(0,le.default)(ie.fI)`
  justify-content: flex-end;
  margin-top: ${e=>e.theme.geometry.md.spacing};
`,lf=(0,le.default)(ie.$n)`
  width: auto;
  font-weight: 600;
`,rf=(0,le.default)(lf)`
  color: ${e=>e.theme.colors.text.light.text};
`,of=(0,le.default)(lf)`
  margin-left: ${e=>e.theme.geometry.md.spacing};
`;function sf(e){let{submission:n,sendFeedback:t}=e;const[a,i]=(0,g.useState)(!1),[l,r]=(0,g.useState)(!1),o=(0,g.useCallback)(()=>i(e=>!e),[i]),s=(0,g.useCallback)(()=>r(e=>!e),[]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(af,{item:!0,container:!0,children:[n.status!==gn.ZU.RequiresChanges&&(0,fe.jsx)(rf,{color:"warning",onClick:o,children:"Request changes"}),n.status!==gn.ZU.Approved&&(0,fe.jsx)(of,{color:"success",onClick:s,children:"Approve"})]}),a&&(0,fe.jsx)(tf,{intention:gn.iD.RequiresChanges,onDismiss:o,onFeedback:t}),l&&(0,fe.jsx)(tf,{intention:gn.iD.Approved,onDismiss:s,onFeedback:t})]})}const df=le.default.section`
  display: flex;
  flex-flow: column nowrap;
  padding: 12px 24px 0 24px;
  flex-shrink: 0;
  background-color: white;
`,cf=(0,le.default)(ie.fI)`
  justify-content: space-between;
  flex-flow: row nowrap;
`,uf=le.default.div`
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: -0.005em;
  color: ${e=>e.theme.colors.text.normal.background};
`,pf=le.default.div`
  flex: 1;
  display: flex;
  align-items: center;
`,mf=le.default.div`
  & svg {
    margin-right: 12px;
  }
`,ff=(0,le.default)(()=>(0,fe.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,fe.jsx)("path",{d:"M4.3628 1.1062C4.32796 1.07254 4.28656 1.04583 4.24098 1.02761C4.1954 1.00938 4.14653 1 4.09718 1C4.04782 1 3.99895 1.00938 3.95337 1.02761C3.90779 1.04583 3.86639 1.07254 3.83155 1.1062L1.84155 3.01124L1.13217 2.34563C1.09733 2.31197 1.05594 2.28526 1.01035 2.26704C0.964772 2.24881 0.915902 2.23943 0.866547 2.23943C0.817191 2.23943 0.768321 2.24881 0.72274 2.26704C0.677158 2.28526 0.63576 2.31197 0.600921 2.34563L0.110296 2.81866C0.0753358 2.8522 0.0475969 2.89206 0.0286699 2.93595C0.00974287 2.97985 0 3.0269 0 3.07443C0 3.12195 0.00974287 3.16901 0.0286699 3.2129C0.0475969 3.25679 0.0753358 3.29665 0.110296 3.3302L1.59748 4.75649C1.67172 4.82443 1.77022 4.86232 1.87264 4.86232C1.97506 4.86232 2.07357 4.82443 2.1478 4.75649L2.63499 4.28647L4.89124 2.11424C4.96154 2.04649 5.00126 1.95479 5.00179 1.85902C5.00231 1.76326 4.9636 1.67115 4.89405 1.6027L4.3628 1.1062ZM4.3628 5.89632C4.32796 5.86265 4.28656 5.83594 4.24098 5.81772C4.1954 5.79949 4.14653 5.79011 4.09718 5.79011C4.04782 5.79011 3.99895 5.79949 3.95337 5.81772C3.90779 5.83594 3.86639 5.86265 3.83155 5.89632L1.84155 7.81369L1.13217 7.14868C1.09733 7.11502 1.05594 7.08831 1.01035 7.07009C0.964772 7.05186 0.915902 7.04248 0.866547 7.04248C0.817191 7.04248 0.768321 7.05186 0.72274 7.07009C0.677158 7.08831 0.63576 7.11502 0.600921 7.14868L0.110296 7.62081C0.0753358 7.65435 0.0475969 7.69421 0.0286699 7.7381C0.00974287 7.78199 0 7.82905 0 7.87657C0 7.9241 0.00974287 7.97116 0.0286699 8.01505C0.0475969 8.05894 0.0753358 8.0988 0.110296 8.13234L1.59373 9.56164C1.66792 9.62957 1.76637 9.66745 1.86874 9.66745C1.9711 9.66745 2.06956 9.62957 2.14374 9.56164L2.63436 9.08952L4.89061 6.91639C4.96064 6.84911 5.00023 6.75793 5.00076 6.66268C5.00129 6.56743 4.96271 6.47584 4.89343 6.40786L4.3628 5.89632ZM1.99999 11.1113C1.17217 11.1113 0.481546 11.7583 0.481546 12.5557C0.481546 13.3531 1.1728 14 1.99999 14C2.39781 14 2.77934 13.8478 3.06065 13.577C3.34195 13.3061 3.49999 12.9387 3.49999 12.5557C3.49999 12.1726 3.34195 11.8052 3.06065 11.5343C2.77934 11.2635 2.39781 11.1113 1.99999 11.1113ZM15.5 11.5928H6.49999C6.36738 11.5928 6.2402 11.6435 6.14644 11.7338C6.05267 11.8241 5.99999 11.9465 5.99999 12.0742V13.0371C5.99999 13.1648 6.05267 13.2872 6.14644 13.3775C6.2402 13.4678 6.36738 13.5186 6.49999 13.5186H15.5C15.6326 13.5186 15.7598 13.4678 15.8536 13.3775C15.9473 13.2872 16 13.1648 16 13.0371V12.0742C16 11.9465 15.9473 11.8241 15.8536 11.7338C15.7598 11.6435 15.6326 11.5928 15.5 11.5928ZM15.5 1.96378H6.49999C6.36738 1.96378 6.2402 2.01451 6.14644 2.1048C6.05267 2.19509 5.99999 2.31754 5.99999 2.44523V3.40813C5.99999 3.53582 6.05267 3.65828 6.14644 3.74857C6.2402 3.83885 6.36738 3.88958 6.49999 3.88958H15.5C15.6326 3.88958 15.7598 3.83885 15.8536 3.74857C15.9473 3.65828 16 3.53582 16 3.40813V2.44523C16 2.31754 15.9473 2.19509 15.8536 2.1048C15.7598 2.01451 15.6326 1.96378 15.5 1.96378ZM15.5 6.77827H6.49999C6.36738 6.77827 6.2402 6.82899 6.14644 6.91928C6.05267 7.00957 5.99999 7.13203 5.99999 7.25972V8.22262C5.99999 8.3503 6.05267 8.47276 6.14644 8.56305C6.2402 8.65334 6.36738 8.70406 6.49999 8.70406H15.5C15.6326 8.70406 15.7598 8.65334 15.8536 8.56305C15.9473 8.47276 16 8.3503 16 8.22262V7.25972C16 7.13203 15.9473 7.00957 15.8536 6.91928C15.7598 6.82899 15.6326 6.77827 15.5 6.77827Z",fill:"#83838e"})}))`
  margin-right: 12px;
`,yf=le.default.span`
  text-align: right;
  display: flex;
  align-items: center;
`;function gf(e){const{survey:n,newSubscriptionUpdate:t}=e,{template:a}=n;return(0,fe.jsxs)(df,{name:"SubmissionInfo__Section",children:[(0,fe.jsxs)(cf,{item:!0,container:!0,children:[(0,fe.jsx)(uf,{children:(0,fe.jsx)(pf,{children:e.readonly&&(0,fe.jsxs)(mf,{children:[(0,fe.jsx)(ff,{}),(0,fe.jsxs)("span",{children:["Viewing response from ",e.contributor]})]})})}),(0,fe.jsxs)(yf,{status:n.submission?.status,children:[e.showAutoSave&&(0,fe.jsx)(Mm,{}),(0,fe.jsx)(pm,{status:n.submission?.status,children:lm(n.submission?.status)}),(0,fe.jsx)(wf,{newSubscriptionUpdate:t,showAutoSave:!0,deadlineDate:n.deadlineDate,survey:n})]})]}),e.readonly&&n.feedbackEnabled&&n.submission&&(0,fe.jsx)(sf,{submission:n.submission,sendFeedback:e.sendFeedback}),!e.readonly&&n.submission?.feedback&&(0,fe.jsx)(Jm,{survey:n})]})}const hf=le.default.div`
  display: flex;
  justify-content: ${e=>e.isFirstPage?"flex-end":e.isLastPage?"flex-start":"space-between"};
  padding: 0 25px;
`,xf=(0,le.default)(ie.$n)`
  display: flex;
  align-items: center;
  justify-content: center;
`,Tf=e=>{let{model:n}=e;const[t,a]=(0,g.useState)(n?.currentPageNo||0),i=0===t,l=t===(n?.pageCount||0)-1;(0,g.useEffect)(()=>{a(n?.currentPageNo||0)},[n?.currentPageNo]);const r=(n?.pageCount||0)>1,o=(0,g.useCallback)(()=>{n?.nextPage()&&a(e=>e+1)},[n]),s=(0,g.useCallback)(()=>{n?.prevPage()&&a(e=>e-1)},[n]);return r&&n?(0,fe.jsxs)(hf,{isFirstPage:i,isLastPage:l,children:[!i&&(0,fe.jsx)(xf,{onClick:s,color:"tertiary",size:"md",outline:!0,inline:!0,children:(0,fe.jsx)(ie.In,{icon:"chevron-left"})}),!l&&(0,fe.jsx)(xf,{onClick:o,color:"tertiary",size:"md",outline:!0,inline:!0,children:(0,fe.jsx)(ie.In,{icon:"chevron-right"})})]}):null},bf={themeName:"plain",colorPalette:"light",isPanelless:!1,backgroundImage:"",backgroundOpacity:1,backgroundImageAttachment:"scroll",backgroundImageFit:"cover",headerView:"basic",header:{height:150,inheritWidthFrom:"survey",titlePositionX:"center",descriptionPositionX:"center"},cssVariables:{"--sjs-font-editorfont-family":"Plus Jakarta Sans","--sjs-editorpanel-hovercolor":"rgba(241, 239, 255, 1)","--sjs-editorpanel-cornerRadius":"16px","--sjs-questionpanel-hovercolor":"rgba(255, 255, 255, 1)","--sjs-questionpanel-cornerRadius":"16px","--sjs-corner-radius":"4px","--sjs-base-unit":"8px","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-font-questiontitle-weight":"400","--sjs-font-questiontitle-color":"rgba(27, 27, 31, 1)","--sjs-font-questiondescription-size":"15px","--sjs-font-questiondescription-color":"rgba(27, 27, 31, 1)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-font-editorfont-color":"rgba(27, 27, 31, 0.91)","--sjs-font-editorfont-placeholdercolor":"rgba(27, 27, 31, 0.45)","--sjs-border-default":"rgba(27, 27, 31, 0.15)","--sjs-border-light":"rgba(27, 27, 31, 0.15)","--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(243, 243, 243, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.05)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-primary-backcolor":"rgba(46, 62, 255, 1)","--sjs-primary-backcolor-dark":"rgba(42, 57, 235, 1)","--sjs-primary-backcolor-light":"rgba(46, 62, 255, 0.1)","--sjs-primary-forecolor":"rgba(241, 239, 255, 1)","--sjs-primary-forecolor-light":"rgba(27, 27, 31, 0.38)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-font-surveydescription-size":"21px","--sjs-font-headertitle-weight":"400","--sjs-font-headertitle-color":"rgba(27, 27, 31, 1)","--sjs-font-headerdescription-weight":"400","--sjs-font-headerdescription-color":"rgba(27, 27, 31, 1)","--sjs-header-backcolor":"transparent"}},vf=le.default.div`
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #f3f3f3;
  & > .sd-root-modern {
    height: 100%;
  }
`,Cf=(0,le.default)(ie.aF)`
  & > div:nth-child(2) {
    width: calc(100vw - ${e=>e.theme.geometry.xl.spacing});
    height: calc(100vh - ${e=>e.theme.geometry.xl.spacing});
    border-radius: 0;
    z-index: 9;

    & > * {
      padding: 0;
    }
  }
`,kf=(0,le.default)(Um.Survey)`
  .sd-title {
    color: #4d505b;
    font-weight: 300;
  }
`,Sf=e=>{const n=sl(),[t,a]=(0,g.useState)(null);(0,g.useEffect)(()=>{e.model&&(n&&e.model.applyTheme(bf),a(e.model))},[e.model]);const i=(0,fe.jsxs)(vf,{children:[e.readonly?(0,fe.jsx)(gf,{readonly:!0,survey:e.survey,sendFeedback:e.sendFeedback,contributor:e.contributor}):(0,fe.jsx)(gf,{readonly:!1,showAutoSave:!0,newSubscriptionUpdate:e.newSubscriptionUpdate,survey:e.survey}),e.header,(0,fe.jsx)(kf,{model:t,rootNodeId:"Survey__element",mode:e.readonly?"display":void 0,onValueChanged:e.readonly?void 0:e.onValueChanged}),(0,fe.jsx)(Tf,{model:t}),e.children]});return e.expanded?(0,fe.jsxs)(Cf,{height:"auto",maxHeight:"100%",span:12,onDismiss:e.onDismiss,dismissable:!0,enableEscapeKey:!0,show:!0,children:[(0,fe.jsx)(gu,{title:e.survey.name,iconColor:"#FD978B",icon:(0,fe.jsx)(Em,{circle:"#FD978B"})}),i]}):(0,fe.jsx)(fe.Fragment,{children:!!t&&i})},Nf=e=>{let{model:n,expanded:t,onDismiss:a,survey:i,contributor:l,sendFeedback:r}=e;return(0,fe.jsx)(Sf,{readonly:!0,contributor:l,model:n,expanded:t,onDismiss:a,survey:i,sendFeedback:r})},Af=le.default.div`
  font-size: 14px;
  line-height: 20px;
  color: ${e=>e.color};
  font-weight: ${e=>e.fontWeight};
  white-space: nowrap;
`,Rf=e=>{let{deadlineDate:n,color:t,fontWeight:a}=e;return(0,fe.jsxs)(Af,{color:t,fontWeight:a,children:["Due ",Sn(n,"LL")]})},Df=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: center;
`,Lf=(0,f.styled)("div")`
  color: ${e=>e.color};
  font-weight: ${e=>e.fontWeight};
  font-size: 14px;
  line-height: 20px;
`,If=(0,f.styled)("div")`
  color: ${e=>e.color};
`,jf=(0,f.styled)("div")`
  height: 38px;
  width: 20px;
`,wf=e=>{let{deadlineDate:n,survey:t}=e;const{color:a,isOverDue:i,fontWeight:l}=dm(n);return(0,fe.jsxs)(Df,{children:[n&&(0,fe.jsx)(Lf,{color:a,fontWeight:l,children:i?"Closed":"Open"}),n&&(0,fe.jsx)(If,{color:a,children:"  •  "}),n&&(0,fe.jsx)(Rf,{deadlineDate:n,color:a,fontWeight:l}),(0,fe.jsx)(jf,{children:t&&(0,fe.jsx)(hm,{survey:t})})]})},Of=le.default.div`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  background-color: #ffffff;
  align-items: center;
  padding-top: 12px;
  position: relative;

  &:hover {
    cursor: pointer;
  }
`,Ef=le.default.div`
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #ffffff;
  align-items: flex-end;
  padding-right: 24px;
`,_f=e=>{let{text:n,height:t}=e;const a=le.default.div`
    display: flex;
    position: absolute;
    bottom: 35px;
  `,i=le.default.span`
    position: relative;
    background-color: #d4d5d8;
    border-radius: 6px;
    color: #83838e;
    cursor: default;
    font-size: 14px;
    height: ${t};
    text-align: left;
    padding: 15px 15px;
    width: 250px;
    word-break: break-word;
    text-align: center;

    &::after {
      content: '';
      position: absolute;
      border: 10px solid transparent;
      border-top-color: #d4d5d8;
      bottom: -20px;
      left: calc(80% - 14px);
      transform: translateX(-50%);
    }
  `;return(0,fe.jsx)(a,{children:(0,fe.jsx)(i,{children:n})})},Ff=(0,le.default)(ie.In)`
  margin-right: 4px;
`,Pf=e=>{let{model:n,expanded:t,onDismiss:a,saveSurvey:i,survey:l,isLocked:r,editingUser:o,newSubscriptionUpdate:s,children:d}=e;const c=(0,le.useTheme)(),[u,p]=(0,g.useState)(!1),m=(0,g.useCallback)(()=>{i()},[i]);return(0,fe.jsx)(Sf,{readonly:!1,model:n,expanded:t,onDismiss:a,survey:l,onValueChanged:m,newSubscriptionUpdate:s,header:r&&(0,fe.jsx)(Ef,{children:(0,fe.jsxs)(Of,{onClick:()=>p(!u),children:[u?(0,fe.jsx)(_f,{text:`You cannot edit this survey simultaneously. Editing will become available once ${o} exits the survey.`,height:"120px"}):null,(0,fe.jsx)(Ff,{icon:"lock",size:"md",color:c.colors.neutral.light.text}),(0,fe.jsx)(ie.EY,{children:"Locked"})]})}),children:d})},Bf=[gn.ZU.ReadyForReview,gn.ZU.Approved,gn.ZU.InProgress],Uf=e=>e?.filter(e=>{const{isOverDue:n}=dm(e.deadlineDate),t=om(e.deadlineDate);return!n&&t||!n&&(!e.submission||!Bf.includes(e.submission.status))})?.length,$f=t.p+"rio-logo-rings-99f451b06a9027c84f04.svg",Mf=t.p+"RIO_Logo_White-1dc6492e98541f896212.png",Vf=le.default.div`
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background-color: red;
  top: -7px;
  right: -5px;
  font-size: 10px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
`,Gf=e=>{let{count:n}=e;return(0,fe.jsx)(Vf,{children:n})},zf="32px",Wf="white",qf="md",Jf=le.default.div`
  ${e=>{let{theme:n,collapsed:t}=e;return`\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    justify-content: ${t?"center":"left"};\n    padding: ${t?`${n.geometry.xs.spacing} 0`:`${n.geometry.xs.spacing} ${n.geometry.sm.spacing}`};\n    cursor: pointer;\n\n    &:hover {\n      background-color: rgba(0, 0, 0, 0.1);\n    }\n  `}};
`,Yf=(le.default.div`
  ${e=>{let{theme:n,collapsed:t}=e;return`\n    display: flex;\n    opacity: 0.5; \n    flex-direction: row;\n    align-items: center;\n    justify-content: ${t?"center":"left"};\n    padding: ${t?`${n.geometry.xs.spacing} 0`:`${n.geometry.xs.spacing} ${n.geometry.sm.spacing}`};\n  `}};
`,(0,le.default)(p.NavLink)`
  &.active > div {
    background-color: rgba(0, 0, 0, 0.2);
  }
`),Hf=(0,le.default)(ie.EY)`
  color: white;
  padding-left: ${e=>e.theme.geometry.sm.spacing};
`,Kf=(le.default.div`
  opacity: 0.7;
  display: inline-block;
  background: ${e=>e.theme.colors.basic.white};
  padding: ${e=>e.theme.geometry.xxs.spacing} ${e=>e.theme.geometry.xs.spacing};
  margin-left: ${e=>e.theme.geometry.xs.spacing};
`,le.default.div`
  display: flex;
  align-items: center;
`),Qf=le.default.div`
  position: relative;
  font-size: ${"24px"};
  width: ${zf};
`,Zf=e=>{const{icon:n,messageId:t,id:a,name:i,circleColor:l,collapsed:r,...o}=e;return(0,fe.jsxs)(Jf,{id:`${a}-LinkContainer`,collapsed:r,...o,children:[(0,fe.jsxs)(Qf,{children:[!!e.notificationCount&&(0,fe.jsx)(Gf,{count:e.notificationCount}),(0,fe.jsx)(ie.GQ,{height:zf,circleColor:l,iconColor:Wf,size:qf,icon:n,id:`${a}-CircleIcon`,name:`${i}-CircleIcon`})]}),!r&&(0,fe.jsx)(Kf,{children:(0,fe.jsx)(Hf,{inline:!0,align:"center",id:`${a}-LinkTextStyled`,name:`${i}-LinkTextStyled`,children:(0,fe.jsx)(de.A,{id:t})})})]})},Xf=e=>{const{route:n,id:t,externalLink:a,exact:i,...l}=e;return a?(0,fe.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",id:`${t}-NavLinkStyled`,...l,children:(0,fe.jsx)(Zf,{...e})}):(0,fe.jsx)(Yf,{end:i,to:n,id:`${t}-NavLinkStyled`,children:(0,fe.jsx)(Zf,{...e})})},ey=(0,le.default)(ie.fv)`
  position: relative;
  background-color: ${e=>e.theme.colors.sidebar.normal.background};
  width: ${e=>{let{collapsed:n}=e;return n?"70px":"260px"}};
  flex: 0 0 auto;
`,ny=le.default.div`
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  right: 0;
  top: 78px; // height of header component + xs spacing
  bottom: ${e=>e.theme.geometry.xs.spacing};
  width: ${e=>e.theme.geometry.sm.spacing};
  border-right: 2px solid ${e=>e.theme.colors.sidebar.normal.background};
  color: ${e=>e.theme.colors.sidebar.normal.background};
  margin-right: -${e=>e.theme.geometry.sm.spacing};
  opacity: 0;
  transition: opacity 0.5s;
  cursor: pointer;
  &:hover {
    opacity: 1;
  }
`,ty=(0,le.default)(ie.fI)`
  flex: 0 0 auto;
  width: 100%;
  height: 70px;
  background-color: white;
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  border-right: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,ay=le.default.div`
  flex: 0 0 auto;
  width: 70px;
  height: 100%;
  border-right: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: url(${$f}) center center no-repeat;
  background-size: 35px 35px;

  &:hover {
    background-color: ${e=>{let{theme:n}=e;return n.colors.overlay.light.background}};
  }
`,iy=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.sm.spacing} 0;
`,ly=(0,le.default)(ie.fv)`
  flex: 0 0 auto;
  opacity: 0.3;
  padding: ${e=>e.theme.geometry.sm.spacing};
  display: ${e=>{let{collapsed:n}=e;return n?"none":"flex"}};
`,ry=le.default.div`
  flex: 0 0 auto;
  width: 92px;
  height: 44px;
  background: url(${Mf}) center center no-repeat;
  background-size: 92px 44px;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,oy=(0,le.default)(ie.EY)`
  flex: 0 0 auto;
`,sy=le.default.div`
  height: 1px;
  opacity: 0.1;
  margin: ${e=>e.theme.geometry.xs.spacing} 0;
  background-color: #fff;
`,dy=()=>{const[e,n]=(0,g.useState)("collapsed"===localStorage.getItem("SIDEBAR_COLLAPSED")),t=Je(),{data:a}=Mr(),{token:i}=qe(),l=lr(),r=l.survey.some(e=>e.startsWith("getSurveys")),o={accountId:t,userId:i.sub},{data:s}=(0,x.IT)(Mp(),{variables:o,skip:!i.sub||!t}),{data:d}=Id(o),c=(0,g.useMemo)(()=>s?.getTasksByUserId&&i?.sub?s.getTasksByUserId.filter(e=>!e.isCompleted&&e.owners?.some(e=>{let{id:n}=e;return n.toLowerCase()===i.sub.toLowerCase()})):[],[s?.getTasksByUserId,i?.sub]),u=Uf(d?.getReceivedSurveysPage?.rows),m=Pt.includes(t);return(0,fe.jsxs)(ey,{container:!0,name:"Sidebar",vdistribution:"between",collapsed:e,children:[(0,fe.jsx)(ny,{id:"Sidebar__toggle-collapse",onClick:()=>{localStorage.setItem("SIDEBAR_COLLAPSED",1==!e?"collapsed":"open"),n(!e)},children:(0,fe.jsx)(ie.In,{icon:e?"angle-right":"angle-left"})}),(0,fe.jsxs)(ty,{container:!0,children:[(0,fe.jsx)(p.Link,{to:"",children:(0,fe.jsx)(ay,{})}),(0,fe.jsx)(em,{})]}),(0,fe.jsxs)(iy,{item:!0,children:[(0,fe.jsx)(Xf,{id:"Sidebar__NavLink--Homepage",exact:!0,route:"",messageId:"sidebar.homepage",icon:"home",circleColor:"white",name:"Sidebar__NavLink--Homepage",collapsed:e}),l.allowedRioModules.includes(gn.zB.Engage)&&(0,fe.jsx)(Xf,{id:"Sidebar__NavLink--Learn",route:"engage",messageId:"sidebar.learn",icon:"graduation-cap",circleColor:"secondary",name:"Sidebar__NavLink--Learn",collapsed:e}),l.allowedRioModules.includes(gn.zB.Governance)&&!m&&(0,fe.jsx)(Xf,{id:"Sidebar__NavLink--Comply",route:"governance",messageId:"sidebar.governance",icon:"pencil-alt",circleColor:"tertiary",name:"Sidebar__NavLink--Comply",collapsed:e}),a.surveys&&!m&&(0,fe.jsx)(Xf,{route:r?"surveys/sent/overview":"surveys/received",messageId:"sidebar.surveys",icon:["rio","clipboard-check-custom"],notificationCount:u,circleColor:"quaternary",name:"Sidebar__NavLink--Surveys",id:"Sidebar__NavLink--Surveys",collapsed:e}),l.allowedRioModules.includes(gn.zB.Data)&&!m&&(0,fe.jsx)(Xf,{id:"Sidebar__NavLink--Data",route:"data",messageId:"sidebar.data",icon:"chart-line",circleColor:"quaternary",name:"Sidebar__NavLink--Data",collapsed:e}),l.allowedRioModules.includes(gn.zB.Reporting)&&!m&&(0,fe.jsx)(Xf,{id:"Sidebar__NavLink--Reporting",route:"reporting",messageId:"sidebar.reporting",icon:"chart-area",circleColor:"quaternary",name:"Sidebar__NavLink--Reporting",collapsed:e}),!!a.intelligence&&l.allowedRioModules.includes(gn.zB.Intelligence)&&!m&&(0,fe.jsx)(Xf,{id:"Sidebar__NavLink--Intelligence",route:"intelligence",messageId:"sidebar.intelligence",icon:"brain",circleColor:"primary",name:"Sidebar__NavLink--Intelligence",collapsed:e}),a.flows&&!m&&(0,fe.jsx)(Xf,{route:"flows",messageId:"sidebar.flows",icon:["rio","flows"],circleColor:"quaternary",name:"Sidebar__NavLink--Flows",id:"Sidebar__NavLink--Flows",collapsed:e}),(0,fe.jsx)(sy,{}),l.allowedRioModules.includes(gn.zB.Configuration)&&(0,fe.jsx)(Xf,{id:"Sidebar__NavLink--Configuration",route:`configuration/${l.configurationRoute}`,messageId:"sidebar.configuration",icon:"cog",circleColor:"white",name:"Sidebar__NavLink--Configuration",collapsed:e}),l.allowedRioModules.includes(gn.zB.Documents)&&!m&&(0,fe.jsx)(Xf,{id:"Sidebar__NavLink--Documents",route:"documents",messageId:"sidebar.documents",icon:"file-alt",circleColor:"quaternary",name:"Sidebar__NavLink--Documents",collapsed:e}),l.allowedRioModules.includes(gn.zB.Tasks)&&!m&&(0,fe.jsx)(Xf,{id:"Sidebar__NavLink--Tasks",route:"tasks",notificationCount:c?.length,messageId:"sidebar.tasks",icon:"tasks",circleColor:"tertiary",name:"Sidebar__NavLink--Tasks",collapsed:e}),(0,fe.jsx)(sy,{}),l.allowedRioModules.includes(gn.zB.Support)&&(0,fe.jsx)(Xf,{id:"Sidebar__NavLink--Support",externalLink:!0,route:"https://support.rio.ai/knowledge",messageId:"sidebar.support",icon:"question",circleColor:"info",name:"Sidebar__NavLink--Support","data-cy":"Sidebar__NavLink--Support",collapsed:e})]}),(0,fe.jsxs)(ly,{container:!0,itemAlign:"center",collapsed:e,children:[(0,fe.jsx)(ry,{}),(0,fe.jsxs)(oy,{size:"xs",color:"white",align:"center",children:["© ",(new Date).getFullYear()," Rio AI Ltd"]})]})]})},cy=le.default.div`
  color: ${e=>{let{theme:n,error:t}=e;return t?n.colors.danger.normal.background:"black"}};
`,uy=le.default.div`
  margin: 15px;
  margin-top: 35px;
  padding: 15px;
  border-radius: 25px;
  background: ${e=>{let{theme:n}=e;return n.colors.neutral.normal.background}};
  max-height: 580px;
  overflow-y: auto;
`,py=le.default.div`
  margin: 20px;
`,my=(e,n)=>e.row>n.row?1:e.row<n.row?-1:0,fy=e=>(0,fe.jsxs)(cy,{error:"error"===e.type,children:[e.message,"error"===e.type?` at row ${e.row+2}`:""]}),yy=e=>e.sort(my).map(fy),gy=e=>{let{uploadedItems:n}=e;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(py,{children:"Your uploads"}),(0,fe.jsx)(uy,{children:yy(n)})]})},hy=S.J1`
  fragment UserFields on User {
    id
    email
    username
    roles
    first_name
    last_name
    jobTitle
    department
    mobile
    phone
    profilePicture
    disabled
    last_active_at
    total_time_spent_ms
    account {
      id
      name
    }
    role {
      role
      name
      restrictedAccess
    }
    accessLevel
    allowedLocations {
      id
      name
      tags {
        id
        tagName
      }
    }
    allowedTags {
      id
      tagName
      locations {
        id
      }
    }
    disableAccountSelector
    userGroupName
  }
`,xy=S.J1`
  fragment MysqlUserFields on MysqlUser {
    id
    accountId
    firstName
    lastName
    email
    isDisabled
    accessLevel
    allowedLocations
    allowedTags
    role
    jobTitle
    phone
    mobile
    department
    profilePicture
    lastActiveAt
    totalTimeSpentMs
    accountName
    tags
    locations
    readonly
    isExternalUser
    disableAccountSelector
    userGroupName
  }
`,Ty=S.J1`
  mutation DeleteUser($username: String!) {
    deleteUser(username: $username)
  }
`,by=S.J1`
  query GetUserById($id: String!) {
    getUserInfoById(id: $id) {
      ...UserFields
    }
  }
  ${hy}
`,vy=S.J1`
  mutation createNewUser(
    $email: String!
    $first_name: String!
    $last_name: String!
    $roles: UserRole!
    $password: String!
    $account_id: ID!
    $accessLevel: Scope
    $allowedTagsIds: [ID]
    $allowedLocationsIds: [ID]
    $jobTitle: String
    $department: String
    $phone: String
    $mobile: String
    $disableAccountSelector: Boolean
    $userGroupId: ID
  ) {
    createUser(
      input: {
        username: $email
        first_name: $first_name
        last_name: $last_name
        roles: [$roles]
        password: $password
        account_id: $account_id
        accessLevel: $accessLevel
        allowedTagsIds: $allowedTagsIds
        allowedLocationsIds: $allowedLocationsIds
        jobTitle: $jobTitle
        department: $department
        phone: $phone
        mobile: $mobile
        disableAccountSelector: $disableAccountSelector
        userGroupId: $userGroupId
      }
    ) {
      ...UserFields
    }
  }
  ${hy}
`,Cy=S.J1`
  mutation UpdateUser(
    $email: String!
    $previousEmail: String
    $first_name: String!
    $last_name: String!
    $account_id: ID!
    $id: String!
    $accessLevel: Scope
    $allowedTagsIds: [ID]
    $allowedLocationsIds: [ID]
    $jobTitle: String
    $department: String
    $phone: String
    $mobile: String
    $profile: String
    $disableAccountSelector: Boolean
    $userGroupId: ID
  ) {
    updateUser(
      input: {
        email: $email
        previousEmail: $previousEmail
        first_name: $first_name
        last_name: $last_name
        account_id: $account_id
        id: $id
        accessLevel: $accessLevel
        allowedTagsIds: $allowedTagsIds
        allowedLocationsIds: $allowedLocationsIds
        jobTitle: $jobTitle
        department: $department
        phone: $phone
        mobile: $mobile
        profilePicture: $profile
        disableAccountSelector: $disableAccountSelector
        userGroupId: $userGroupId
      }
    ) {
      ...UserFields
    }
  }
  ${hy}
`,ky=S.J1`
  mutation UpdateUserRole($id: String!, $roles: UserRole!) {
    updateUserRoles(input: { roles: [$roles], username: $id }) {
      id
    }
  }
`,Sy=S.J1`
  mutation resendEmail($username: String!, $password: String!) {
    resendEmail(input: { username: $username, password: $password }) {
      username
    }
  }
`,Ny=S.J1`
  mutation SetUserDisabled($id: String!, $disabled: Boolean!) {
    setUserDisabled(id: $id, disabled: $disabled) {
      ...UserFields
    }
  }
  ${hy}
`,Ay=S.J1`
  mutation ResetUserPassword($username: ID!, $password: String!) {
    resetUserPassword(username: $username, password: $password)
  }
`,Ry=S.J1`
  query GetRoles {
    getUserRoles {
      role
      name
      restrictedAccess
      readonly
    }
  }
`,Dy=S.J1`
  query GetUsers($accountId: String!, $offset: Int, $limit: Int = 25, $sort: [SortCommand!], $filters: Filters) {
    getUsers(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        ...MysqlUserFields
      }
      totalRows
    }
  }
  ${xy}
`,Ly=S.J1`
  query GetUsersFilter($accountId: ID!, $field: String!) {
    getUsersFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,Iy=(S.J1`
  query getUsersLocation($accountId: ID!) {
    getUsersLocation(accountId: $accountId) {
      id
      name
    }
  }
`,le.default.div`
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 360px;
  right: 100px;
  height: 75px;
  background: white;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.3);
`),jy=(e,n,t)=>{const a=e.data[t].success.map(e=>({type:"success",message:`'${e.name||`${e.first_name} ${e.last_name}`}' successfully uploaded!`,row:2})),i=e.data[t].errors.map(e=>({type:"error",message:`Duplicate name: ${e}`,row:n.findIndex(n=>n.name===e.split(": ")[1])}));return[...a,...i]},wy=async(e,n,t,a,i)=>{const l=(e=>e.length<=10?[e]:xn().chunk(e,e.length/10))(e);await Promise.all(l.map(async(i,l)=>{if("users"===a){const l=(e=>{const n=(e=>e.map((e,n)=>`$username${n}: String!, $password${n}: String!, $roles${n}: [UserRole!]!, $first_name${n}: String!, $last_name${n}: String!, $jobTitle${n}: String, $department${n}: String, $phone${n}: String, $mobile${n}: String, $account_id${n}: ID!, $accessLevel${n}: Scope, $allowedLocationsIds${n}: [ID], $allowedTagsIds${n}: [ID]`).join(", "))(e),t=`mutation Create${e.length}Users(${n}) {`,a=(e=>{const n=(e=>`[${e.map((e,n)=>`{\n        username: $username${n}\n        password: $password${n}\n        roles: $roles${n}\n        first_name: $first_name${n}\n        last_name: $last_name${n}\n        jobTitle: $jobTitle${n}\n        department: $department${n}\n        phone: $phone${n}\n        mobile: $mobile${n}\n        account_id: $account_id${n}\n        accessLevel: $accessLevel${n}\n        allowedLocationsIds: $allowedLocationsIds${n}\n        allowedTagsIds: $allowedTagsIds${n}\n      }`).join(",")}]`)(e);return`createUsers(input: ${n}) {\n        success {\n          first_name\n          last_name\n          id\n          username\n          email\n          jobTitle\n          department\n          phone\n          mobile\n          roles\n        }\n        errors\n      }\n      `})(e),i=`\n      ${t}\n      ${a}\n      }\n    `,l=(0,S.J1)(i),r=(e=>{const n={};return e.forEach((e,t)=>{n[`username${t}`]=e.username,n[`password${t}`]=e.password,n[`roles${t}`]=e.roles?e.roles.split(", "):[],n[`first_name${t}`]=e.first_name,n[`last_name${t}`]=e.last_name,n[`jobTitle${t}`]=e.jobTitle,n[`department${t}`]=e.department,n[`phone${t}`]=e.phone,n[`mobile${t}`]=e.mobile,n[`account_id${t}`]=e.account_id,n[`accessLevel${t}`]=e.accessLevel,n[`allowedLocationsIds${t}`]=e.allowedLocationsIds,n[`allowedTagsIds${t}`]=e.allowedTagsIds}),n})(e);return{createMutation:l,variables:r}})(i);console.log(l),await((e,n,t,a,i)=>async(t,l)=>{const r=await e.mutate({mutation:a,variables:t,refetchQueries:t.account_id0?[{query:yr(),variables:{limit:600,accountId:t.account_id0}}]:[]});n(e=>{return[...e,...jy(r,l,(n=i,{locations:"createLocationWithLocationPointsBatch",users:"createUsers"}[n]))];var n})})(n,t,0,l.createMutation,a)(l.variables,e)}})),i&&i()},Oy=le.default.div`
  height: 20px;
  width: 100%;
`,Ey=le.default.div`
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
`,_y=le.default.div`
  position: relative;
  height: 100%;
  width: 100%;
  background: ${e=>{let{theme:n}=e;return n.colors.neutral.normal.background}};
  box-shadow: 1px 1px 6px inset rgba(0, 0, 0, 0.3);
`,Fy=le.default.div`
  height: 100%;
  width: ${e=>{let{percentage:n}=e;return n}}%;
  background: ${e=>{let{theme:n}=e;return n.colors.primary.dark.background}};
`,Py=le.default.div`
  height: 100%;
  width: ${e=>{let{percentage:n}=e;return n}}%;
  background: ${e=>{let{theme:n}=e;return n.colors.danger.dark.background}};
`,By=e=>{let{percentage:n,errorPercentage:t}=e;return(0,fe.jsx)(Oy,{children:(0,fe.jsx)(_y,{children:(0,fe.jsxs)(Ey,{children:[(0,fe.jsx)(Fy,{percentage:n}),(0,fe.jsx)(Py,{percentage:t})]})})})},Uy=(e,n)=>Math.round(e/n*100),$y=le.default.div`
  cursor: pointer;
`,My=(0,le.default)(ie.In)``,Vy=le.default.div`
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
`,Gy=e=>e.filter(e=>"error"===e.type).length,zy=e=>e.filter(e=>"success"===e.type).length,Wy=(0,Kc.W)(e=>{let{client:n,items:t,dismiss:a,createMutation:i,onComplete:l}=e;const[r,o]=(0,g.useState)([]),[s,d]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{wy(t,n,o,i,l)},[t,n,o,i,l]),(0,fe.jsxs)(Iy,{children:[(0,fe.jsxs)(Vy,{children:[(0,fe.jsxs)("div",{children:["Uploaded: ",zy(r)]}),(0,fe.jsxs)("div",{children:["Errors: ",Gy(r)]}),(0,fe.jsx)($y,{onClick:()=>d(!0),children:"View Uploads"}),(0,fe.jsx)(My,{icon:"times",onClick:a})]}),(0,fe.jsx)(By,{percentage:Uy(zy(r),t.length),errorPercentage:Uy(Gy(r),t.length),successCount:zy(r),errorCount:Gy(r)}),(0,fe.jsx)(ie.aF,{span:5,size:"md",show:s,name:"MassUpload__Modal",dismissable:!0,onDismiss:()=>d(!1),children:(0,fe.jsx)(gy,{uploadedItems:r})})]})}),qy=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
`,Jy=(0,le.default)(ie.fI)`
  justify-content: center;
`,Yy=(0,le.default)(ie.EY)`
  padding: ${e=>e.theme.geometry.md.spacing};
`,Hy=e=>{let{headingText:n,bodyText:t,onConfirmAction:a,onCancelAction:i,name:l="confirmAction",confirmButtonTitle:r="Confirm",cancelButtonTitle:o="Cancel"}=e;return(0,fe.jsx)(qy,{id:`${l}__container`,children:(0,fe.jsxs)(ie.hh,{children:[(0,fe.jsx)(ie.DZ,{id:`${l}__text--heading`,name:`${l}__text--heading`,align:"center",size:"lg",children:n}),(0,fe.jsx)(Jy,{container:!0,item:!0,children:(0,fe.jsx)(Yy,{id:`${l}__text--body`,name:`${l}__text--body`,align:"center",children:t})}),(0,fe.jsxs)(ie.hh.Row,{children:[(0,fe.jsx)(ie.hh.ButtonColumn,{span:6,color:"danger",id:`${l}__button--confirm`,name:`${l}__button--confirm`,onClick:()=>a(),children:r}),(0,fe.jsx)(ie.hh.ButtonColumn,{span:6,color:"primary",id:`${l}__button--cancel`,name:`${l}__button--cancel`,onClick:()=>i(),children:o})]})]})})};function Ky(e){let{show:n,size:t="md",onDismiss:a,...i}=e;return(0,fe.jsx)(ie.aF,{size:t,height:"30vh",show:n,onDismiss:a,children:(0,fe.jsx)(Hy,{...i})})}const Qy=le.default.div`
  position: fixed;
  left: 25%;
  bottom: 16px;
  width: 50%;
  height: auto;
  background: white;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.3);
`,Zy=(0,le.default)(ie.In)`
  cursor: pointer;
`,Xy=(0,le.default)(ie.fI)`
  position: relative;
  align-items: center;
  height: 48px;
`,eg=(0,le.default)(ie.z2)`
  & {
    position: absolute;
    height: 36px;
  }
`,ng=(0,le.default)(ie.EY)`
  min-height: 300px;
  padding: ${e=>e.theme.geometry.md.spacing};
`,tg=(0,le.default)(ie.EY)`
  cursor: pointer;
  text-decoration: underline;
`,ag=(0,le.default)(ie.EY)`
  width: 100%;
`,ig=e=>e.error?"danger":100===e.percents?"green":"blue";function lg(){const e=kl(),n=e?.getExports(),[t,a]=(0,g.useState)(null),[i,l]=(0,g.useState)(null);return n?.length?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Draggable,{children:(0,fe.jsx)(Qy,{children:n.map(n=>(0,fe.jsxs)(Xy,{container:!0,children:[(0,fe.jsxs)(ie.fv,{container:!0,span:9,children:[(0,fe.jsx)(ie.fI,{item:!0,container:!0,children:(0,fe.jsx)(ag,{align:"center",children:n.fileName})}),(0,fe.jsx)(eg,{completed:n.percents,color:ig(n),valueBuffer:n.step})]}),(0,fe.jsx)(ie.fv,{span:2,children:n.error?(0,fe.jsx)(tg,{align:"center",onClick:()=>a(n.error),children:"Show details"}):(0,fe.jsxs)(ie.EY,{align:"center",children:[Math.round(n.percents)||0,"%"]})}),(0,fe.jsx)(ie.fv,{span:1,children:n.completed?(0,fe.jsx)(Zy,{onClick:()=>{e?.stopExport(n.id,{shouldDelete:!1})},icon:"check",color:"green"}):(0,fe.jsx)(Zy,{onClick:()=>{n.error?e?.stopExport(n.id,{shouldDelete:!0}):l(n.id)},icon:"times-circle",color:"red"})})]},n.id))})}),(0,fe.jsxs)(ie.aF,{show:!!t,size:"sm",onDismiss:()=>a(null),children:[(0,fe.jsx)(ie.DZ,{align:"center",size:"md",color:"dark",children:"Error details:"}),(0,fe.jsx)(ng,{align:"center",size:"md",color:"dark",children:t?.toString()})]}),(0,fe.jsx)(Ky,{show:!!i,onDismiss:()=>l(null),headingText:"Do you want to abort the export?",bodyText:"All progress will be lost.",onConfirmAction:()=>{e?.stopExport(i,{shouldDelete:!0}),l(null)},onCancelAction:()=>{l(null)}})]}):null}const rg=le.default.div`
  display: flex;
  height: 100%;
  width: 100%;
  min-width: 1200px;
`,og=(0,le.default)(ie.fv)`
  background-color: ${e=>e.theme.colors.neutral.normal.background};
  overflow: hidden;

  & > .Header {
    padding-left: 20px;
    padding-right: 40px;
  }
`,sg=(0,le.default)(ie.fv)`
  height: 100%;
  overflow: hidden;
  flex: 1 1 auto;
`,dg=(0,le.default)(ie.Ip)`
  margin: auto;
  position: relative;
  top: 35%;
`,cg=(0,le.default)(e=>{let{...n}=e;return(0,fe.jsx)(p.Link,{...n})})`
  cursor: ${e=>e.restricted?"default":"pointer"};
`,ug=e=>{const n=(0,m.zy)(),{children:t,to:a="/",base:i,activeClassName:l="active",...r}=e,o=n.pathname.includes(i||a);return(0,fe.jsx)(p.Link,{...r,to:a,children:g.Children.map(t,(e,n)=>g.cloneElement(e,{...r,key:n,className:o?l:""}))})},pg=(0,le.default)(ie.fI)`
  margin: 0 auto 40px;
  width: 80%;

  h2 {
    margin-bottom: ${e=>e.theme.geometry.sm.spacing};
    font-size: ${e=>e.theme.fonts.lg.size};
  }
`,mg=le.default.div`
  margin: 20px auto;
`,fg=le.default.div`
  margin: 20px auto;

  label {
    display: inline-block;
    margin-bottom: 15px;
  }
`,yg=le.default.div`
  text-align: center;
  padding-top: 40px;

  h2 {
    font-size: ${e=>e.theme.fonts.lg.size};
  }

  a {
    text-transform: uppercase;
    text-decoration: underline;
  }
`,gg=(0,le.default)(ie.Ip)`
  margin: 30px auto 0;
`,hg=(0,le.default)(ie.$n)`
  width: 150px;
  float: right;
  margin-left: 10px;
`,xg=le.default.div`
  margin: 0 auto;
  width: 85%;
  padding-top: 40px;

  h1 {
    width: 80%;
    font-size: ${e=>e.theme.fonts.md.size};
    margin: 0 auto;
  }

  p {
    margin: 0 auto 20px;
    font-size: 20px;
    width: 80%;
  }
`,Tg=le.default.span`
  text-transform: capitalize;
`,bg=(le.default.span`
  font-size: ${e=>e.theme.fonts.md.size}
  font-weight: bold;
`,(0,le.default)(ie.fI)`
  align-items: center;
  margin-bottom: 20px;
`,(0,le.default)(ie.$n)`
  width: 200px;
  margin: 0 auto;
`),vg=((0,le.default)(ie.fv)`
  text-align: left;
`,(0,le.default)(ie.fv)`
  text-align: right;
`,(0,le.default)(ie.$n)`
  width: 160px;
  display: inline-block;
`),Cg=(0,le.default)(ie.$n)`
  width: 160px;
  float: right;
`,kg=le.default.div`
  display: inline-block;
  margin-left: 20px;

  & > div {
    float: none;
  }
`,Sg=le.default.div`
  text-align: center;
  margin-bottom: 20px;
`;var Ng=t(51918);function Ag(e){const{value:n,onChange:t,name:a,options:i=[],...l}=e;return(0,fe.jsx)(ie.l6,{...l,name:a,onChange:function(){let{target:{value:e}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(e)},options:i,value:n})}function Rg(){const{productId:e,accountId:n,productType:t}=(0,m.g)(),a=(0,m.Zp)(),i="bundle"===t,l=or(),{control:r,handleSubmit:o,setValue:s}=(0,Ng.mN)(),{isSystemAdmin:d,licenceService:c}=lr(),[u,{loading:f}]=function(){const[e,n]=(0,ln.n)(Kl()),t=function(){let{data:{assignBatchAccountLicence:e=[]}={},...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{data:e,...n}};return[async n=>t(await e({variables:{input:n}})),t(n)]}(),[y,{loading:g}]=function(){const[e,n]=(0,ln.n)(tr()),t=function(){let{data:{assignBatchLicences:e=[]}={},...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{data:e,...n}};return[async n=>t(await e({variables:{input:n}})),t(n)]}(),{data:h,loading:T}=hl(e,{skip:i}),{data:b,loading:v}=pl(e,{skip:!i||!c.createLicence}),{data:C,loading:k}=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{data:{getLearnBundleById:a}={},...i}=(0,x.IT)(vl(),{variables:{accountId:n,bundleId:e},...t});return{data:a,...i}}(e,n,{skip:!i||c.createLicence}),S=b||C,{data:N,loading:A}=function(e,n){const{data:{getLicencesByProductAndAccount:t=[]}={},...a}=(0,x.IT)(Zl(),{variables:{productId:e,accountId:n},fetchPolicy:"cache-and-network"});return{data:t?t.map(e=>({...e,isNew:"NEW"===e.status})):[],...a}}(e,n),{data:{content:R},loading:D}=gr(n),{showNotification:L}=tn(),I=i?S:h,j=new Map(R.map(e=>[e.id,e])),w=new Set(N.map(e=>{let{userId:n,productId:t}=e;return n+t})),O=R.filter(n=>{let{id:t}=n;return!w.has(t+e)}).map(e=>{let{id:n}=e;return n}),E=A||g||f||T||v||k||D,_=!N.length&&!E,F=O.length,P=ha(`/${l.configuration.root}/${l.configuration.menu.learn.createLicense}`,{accountId:n,productType:t,productId:e}),B=d&&c.createLicence;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(gu,{name:"ConfigurationLearnSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:"Licence assigning"}),_&&(0,fe.jsxs)(yg,{children:[B&&(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)("h2",{children:["There are not licences",(0,fe.jsx)("br",{}),(0,fe.jsx)(p.Link,{to:P,children:"Create licences"})]})}),!d&&(0,fe.jsxs)("h2",{children:["You do not currently have any licences. ",(0,fe.jsx)("br",{}),"Please contact your administrator or purchase licences ",(0,fe.jsx)(p.Link,{to:l.market.engage,children:"here"})]})]}),!_&&(0,fe.jsx)(pg,{container:!0,children:(0,fe.jsxs)(ie.fv,{span:12,children:[E&&(0,fe.jsx)(gg,{}),!E&&(0,fe.jsxs)("form",{onSubmit:o(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const t=Object.entries(e).filter(e=>{let[,n]=e;return n}).map(e=>{let[t,a]=e;return d?{licenceId:t,userId:a,accountId:n}:{licenceId:t,userId:a}});if(!t.length)return;const{data:a}=d?await y(t):await u(t);if(!a.length)throw new Error("Not Assigned");L("Licences have been assigned")}catch(e){L("Licences have not been assigned","danger")}}),children:[(0,fe.jsx)("div",{children:(0,fe.jsxs)(mg,{children:[(0,fe.jsxs)(ie.fI,{container:!0,children:[(0,fe.jsx)(ie.fv,{span:6,children:(0,fe.jsx)("h2",{children:i?I?.title:I?.name})}),(0,fe.jsxs)(ie.fv,{span:6,children:[(0,fe.jsxs)(hg,{size:"sm",disabled:!F,onClick:e=>{e.preventDefault(),N.filter(e=>{let{isNew:n}=e;return n}).forEach(e=>{let{id:n}=e;O.length&&s(n,O.shift())})},children:["Assign all (",F,") users"]}),B&&(0,fe.jsx)(hg,{onClick:()=>a(P),size:"sm",children:"Create licence"})]})]}),N.map((e,n)=>{let{id:t,userId:a}=e;return(0,fe.jsxs)(fg,{children:[(0,fe.jsxs)("label",{span:4,children:["Licence # ",++n]}),(0,fe.jsx)("div",{children:a&&j.get(a)?(0,fe.jsxs)("span",{children:["Assigned to: ",j.get(a).first_name," ",j.get(a).last_name," -"," ",j.get(a).email]}):(0,fe.jsx)(Ng.xI,{name:t,control:r,render:e=>{let{field:n}=e;return(0,fe.jsx)(Ag,{...n,options:(t=I?.id,R.filter(e=>!w.has(e.id+t)).map(e=>{let{id:n,email:t,first_name:a,last_name:i}=e;return{label:`${a} ${i} - ${t}`,value:n}}))});var t}})})]},t)})]})}),(0,fe.jsx)("div",{children:(0,fe.jsx)(ie.$n,{children:"Save"})})]})]})})]})}var Dg=t(56137),Lg=t(32249),Ig=t.n(Lg),jg=t(28621);const wg=t.p+"json-file-5c210a7621be8aeec55c.png";jg.hFV.setLicenseKey(De("REACT_APP_AG_GRID_LICENSE_KEY"));const Og=le.default.div`
  flex: 1;
  overflow: auto;
  & .ag-paging-panel {
    justify-content: flex-start;
  }
  /* reduce ag-grid default header line-height and padding */
  & .ag-header-cell {
    line-height: normal;
    padding: 8px;
  }

  /* make header separator height proportional to header height */
  & .ag-header-cell:after,
  & .ag-header-group-cell:after {
    height: 50%;
  }

  /* set icons height to their real absolute value to ensure proper vertical alignment */
  & .ag-header-cell-menu-button .ag-icon-menu,
  & .ag-header-cell-label .ag-header-icon {
    height: 16px;
  }

  /* make header text wrap, without breaking words and without ellipsis */
  & .ag-header-cell-label .ag-header-cell-text {
    height: auto;
    overflow: visible;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: normal;
  }

  & .ag-set-filter {
    width: 330px !important;
  }

  & .ag-set-filter-list {
    white-space: nowrap !important;
    overflow-x: auto !important;

    & .ag-virtual-list-container.ag-filter-virtual-list-container {
      overflow-x: visible !important;
      overflow-y: visible !important;
    }
  }

  & .ag-set-filter-item,
  & .ag-set-filter-item-value {
    display: inline-block;
    min-width: max-content;
  }
`;function Eg(e,n){if(!1!==e.finished){e.api.setGridOption("headerHeight",48);const t=document.querySelectorAll(`#${n} .ag-header-cell-label`);let a=48;t.forEach(e=>{a=Math.max(a,e.scrollHeight)}),e.api.setGridOption("headerHeight",a+16)}}const _g=e=>e?.hasOwnProperty("name")?e?.name:e?.hasOwnProperty("title")?e?.title:Array.isArray(e)?e.map(e=>_g(e)).join(","):null,Fg={processCellCallback:e=>{const n=e.value;return"object"==typeof n?_g(n):n}};function Pg(e){let{onDestroy:n,id:t,onGridReady:a,onColumnResized:i,defaultColDef:l,rowIdField:r="id",...o}=e;(0,g.useEffect)(()=>()=>{n&&n()},[n]);const s=t||"ag-grid",d=(0,g.useMemo)(()=>({wrapText:!0,...l}),[l]);return(0,fe.jsx)(Og,{className:"ag-theme-alpine",id:s,children:(0,fe.jsx)(Dg.W6,{debounceVerticalScrollbar:!0,suppressColumnVirtualisation:"test"===De("NODE_ENV"),getContextMenuItems:e=>(e=>{const n=["copy","copyWithHeaders","paste","separator",{name:"Download JSON",action:()=>{const n=[];e.api.forEachNode(e=>n.push(e.data)),function(e){const n=new Blob([JSON.stringify(e)],{type:"application/json"}),t=URL.createObjectURL(n),a=document.createElement("a");a.setAttribute("href",t),a.setAttribute("download","transactions"),a.click(),a.remove()}(n)},icon:`<img border="0" width="16" height="16" src="${wg}"/>`}];return n})(e),getRowId:e=>{let{data:n}=e;return Ig()(n,r)},onColumnResized:e=>{Eg(e,s),i&&i(e)},onGridReady:e=>{Eg(e,s),a&&a(e)},defaultColDef:d,defaultExcelExportParams:Fg,...o})})}const Bg=(0,g.forwardRef)(function(e,n){const{onChange:t=()=>{},trigger:a=()=>{},type:i="text",value:l="",withNegative:r=!1,...o}=e,s=(0,g.useCallback)(e=>{const{target:{value:n}}=e,i=r?Zn:Qn;return(0,hn.isEmpty)(n)?(t(void 0,e),void a()):i(n)&&n?(t(n,e),void a()):void e.preventDefault()},[t,a,r]);return(0,fe.jsx)(ie.ks,{...o,onChange:s,value:l,textInputRef:n,type:i})}),Ug=(0,g.forwardRef)(function(e,n){return(0,fe.jsx)(Bg,{...e,ref:n,withNegative:!0})}),$g=le.default.div`
  width: 90px;
  height: 40px;
  border: 1px solid #43425d;
  border-radius: 5px;
  background-color: #fff;
  font-size: 22px;
  display: flex;
  float: right;
  
  .cart-line-quantity {
    flex-grow: 1;
    text-align: center;
    align-self: center;
    
    div {
      margin: 0 auto;
      padding: 0;
      font-size: 22px;
      width: 50px;
      height: 30px;
      border: none;
      border-radius: 0;
      background-color: transparent;
      outline-color: transparent;
      outline-offset: 0;
      color: #000;
    }
    
    input {
      padding: 0;
      font-size: 22px;
      width: 50px;
      height: 30px;
      text-align: center;
      border: none;
      border-radius: 0;
      background-color: #fff;
      outline-color: #fff;
      outline-offset: 0;
      color: #000;
    }
  }
  
  .cart-line-arrow-holder {
    display: flex;
    flex-direction: column;
    width: 30px;
    color: #fff;
    text-align: center;
    user-select: none;
    cursor: pointer;
    
    span {
      background-color: #43425d;
      height: 19px;
      font-size: 16px;
    }
  }
`,Mg=(0,g.forwardRef)((e,n)=>{const{value:t=0,onIncrement:a=()=>{},onDecrement:i=()=>{},...l}=e,[r,o]=(0,g.useState)(t);return(0,g.useEffect)(()=>{r!==t&&o(t)},[t]),(0,fe.jsxs)($g,{children:[(0,fe.jsx)("div",{className:"cart-line-quantity",children:(0,fe.jsx)(Bg,{...l,ref:n,value:r,name:"Count-Picker__Number-Input"})}),(0,fe.jsxs)("div",{className:"cart-line-arrow-holder",children:[(0,fe.jsx)("span",{onClick:()=>{const e=r+1;o(e),a(e)},name:"Count-Picker__Increment",children:(0,fe.jsx)(ie.In,{icon:"angle-up",size:"1x"})}),(0,fe.jsx)("span",{onClick:()=>{const e=r>0?r-1:0;o(e),i(e)},name:"Count-Picker__Decrement",children:(0,fe.jsx)(ie.In,{icon:"angle-down",size:"1x"})})]})]})});function Vg(e){const{value:n,onChange:t,name:a,...i}=e;return(0,fe.jsx)(Mg,{...i,name:a,onIncrement:t,onDecrement:t,value:n})}function Gg(){const e=(0,m.Zp)(),{productId:n,accountId:t,productType:a}=(0,m.g)(),i=or(),l="bundle"===a,{control:r,handleSubmit:o,register:s,setValue:d}=(0,Ng.mN)({defaultValues:{accountId:t,productId:n}});(0,g.useEffect)(()=>{s("accountId"),s("productId")},[]);const{licenceService:{assignLicence:c}}=lr(),[u,{loading:p}]=function(){const[e,{data:{createBatchLicences:n=[]}={},...t}]=(0,ln.n)(er());return[n=>e({variables:{input:n}}),{data:n,...t}]}(),{data:f,loading:y}=hl(n,{skip:l}),{data:h,loading:x}=pl(n,{skip:!l}),{data:T,loading:b}=v(t),{data:{users:C},loading:k}=gr(t),{showNotification:S}=tn(),N=y||x||b||k||p,A=l?h:f,R=x||y,D=l?A?.title:A?.name,L=C?.length;return(0,g.useEffect)(()=>{R||A||S(`The ${a} has not been found`,"danger")},[A,R]),(0,fe.jsxs)("section",{children:[(0,fe.jsx)(gu,{name:"ConfigurationLearnSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:"Licence creation"}),N&&(0,fe.jsx)(gg,{}),!N&&A&&(0,fe.jsxs)(xg,{children:[c&&(0,fe.jsx)(ie.fI,{container:!0,itemAlign:"center",children:(0,fe.jsx)(ie.fv,{span:12,children:(0,fe.jsx)(Cg,{size:"sm",onClick:()=>e(ha(`/${i.configuration.root}/${i.configuration.menu.learn.assignLicense}`,{accountId:t,productId:n,productType:a})),children:"Manage licences"})})}),(0,fe.jsxs)("form",{onSubmit:o(async e=>{let{licenceCount:n=0,accountId:t,productId:a}=e;try{const e=Array.from({length:n},()=>({accountId:t,productId:a}));if(!e.length)return;await u(e),S("Licences have been created")}catch(e){S("Licences have not been created","danger"),E.Cp(e)}}),children:[(0,fe.jsx)("h1",{children:"Licences for:"}),(0,fe.jsxs)("p",{children:[(0,fe.jsx)(Tg,{children:a})," ",D]}),(0,fe.jsx)("h1",{children:"Account: "}),(0,fe.jsx)("p",{children:T.name}),(0,fe.jsxs)(Sg,{children:[(0,fe.jsxs)(vg,{size:"sm",onClick:e=>{e.preventDefault(),d("licenceCount",L)},children:["Add for all (",L,") users"]}),(0,fe.jsx)(kg,{children:(0,fe.jsx)(Ng.xI,{name:"licenceCount",control:r,render:e=>{let{field:n}=e;return(0,fe.jsx)(Vg,{...n})}})})]}),(0,fe.jsx)(ie.fI,{container:!0,itemAlign:"center",align:"around",children:(0,fe.jsx)(ie.fv,{span:12,children:(0,fe.jsx)(bg,{children:"Create"})})})]})]})]})}const zg=le.default.span`
  display: inline-block;
  margin-left: ${e=>e.theme.geometry.xxs.spacing};
`;function Wg(e){const{id:n,licencesCountMap:t=new Map}=e,a={total:0,assigned:0};return t.has(n)&&t.get(n).forEach(e=>{let{count:n,status:t}=e;"NEW"!==t&&(a.assigned+=n),a.total+=n}),(0,fe.jsxs)(zg,{children:["Licences ",a.assigned,"/",a.total]})}const qg=e=>{let{gridApi:n,onClick:t,inline:a,title:i}=e;return(0,fe.jsx)(ie.$n,{name:"button-clear-filters",color:"info",onClick:()=>{n&&(n.setFilterModel(null),n.setColumnsVisible(n.getColumns()||[],!0)),t&&t()},disabled:!n,inline:a,children:i||"Clear Filters"})};var Jg=t(44477),Yg=t(18910);const Hg=S.J1`
  query GetTags($accountId: String!) {
    getTagsByAccountId(input: { accountId: $accountId, applicationId: "RIO" }) {
      id
      tagName
      isSystemLevelTag
    }
  }
`;function Kg(e){return{value:e.id,label:e.tagName}}const Qg=e=>{let{accountId:n,value:t,onChange:a,error:i,isSubmitting:l,name:r="tagIds",defaultOptions:o,disabled:s}=e;const{data:d,loading:c}=(0,x.IT)(Hg,{variables:{accountId:n},fetchPolicy:"network-only"}),u=d?.getTagsByAccountId||[],p=(0,g.useMemo)(()=>(0,hn.sortBy)(u.map(Kg),e=>e?.label.trim().toLowerCase()),[u]);return(0,fe.jsx)(ie.KF,{name:r,isLoading:c,isDisabled:c||l||s,onChange:a,multiValueColor:"tertiary",value:t,error:i,defaultOptions:o,options:p})},Zg=S.J1`
  query GetLocationsByAccountId(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getLocationsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
      }
    }
  }
`;function Xg(e){return{value:e.id,label:e.name}}function eh(e){let{accountId:n,value:t,onChange:a,error:i,isSubmitting:l,name:r="locationIds",defaultOptions:o,disabled:s}=e;const d=(0,C.m)();return(0,fe.jsx)(ie.KF,{name:r,onChange:a,isDisabled:l||s,error:i,multiValueColor:"tertiary",defaultOptions:!Array.isArray(o)||o,value:t,placeholder:"Start typing to search for a location",loadOptions:async e=>{const{data:{getLocationsPage:t}}=await d.query({query:Zg,variables:{accountId:n,filters:{text:[{filterType:"text",type:"contains",filter:e,field:"name"}]},sort:[{field:"name",order:"asc"}]}}),{totalRows:a}=t;return{options:t.rows?t.rows.map(Xg):[],total:a}}})}const nh=S.J1`
  mutation CreateAspect($input: AspectInput!) {
    createAspect(input: $input) {
      ...AspectFields
    }
  }
  ${Wl}
`,th=S.J1`
  mutation DeleteAspect($id: ID!, $accountId: ID!) {
    deleteAspect(id: $id, accountId: $accountId)
  }
`,ah=S.J1`
  query GetAspectsByAccountId($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {
    getAspectsByAccountId(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        ...AspectFields
      }
    }
  }
  ${Wl}
`,ih=S.J1`
  query GetAspectsCountByAccountId(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getAspectsByAccountId(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
    }
  }
`,lh=S.J1`
  fragment AspectOptionFields on AspectOption {
    id
    accountId
    name
    type
    isGlobal
    referenced
  }
`,rh=S.J1`
  mutation CreateAspectOption($input: AspectOptionInput!) {
    createAspectOption(input: $input) {
      ...AspectOptionFields
    }
  }
  ${lh}
`,oh=S.J1`
  mutation DeleteAspectOption($id: ID!, $accountId: ID!, $type: AspectOptionType!) {
    deleteAspectOption(id: $id, accountId: $accountId, type: $type)
  }
`,sh=S.J1`
  query GetAspectFilter($accountId: ID!, $field: String!) {
    getAspectFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,dh=S.J1`
  query GetAllAspectOptions($accountId: ID!) {
    activities: getAspectOptions(accountId: $accountId, type: ACTIVITY) {
      ...AspectOptionFields
    }
    aspects: getAspectOptions(accountId: $accountId, type: ASPECT) {
      ...AspectOptionFields
    }
    emergencyConditions: getAspectOptions(accountId: $accountId, type: EMERGENCY_CONDITION) {
      ...AspectOptionFields
    }
    impacts: getAspectOptions(accountId: $accountId, type: IMPACT) {
      ...AspectOptionFields
    }
    controlMeasures: getAspectOptions(accountId: $accountId, type: CONTROL_MEASURE) {
      ...AspectOptionFields
    }
    statuses: getAspectOptions(accountId: $accountId, type: STATUS) {
      ...AspectOptionFields
    }
  }
  ${lh}
`;var ch=t(8296),uh=t.n(ch);const ph={ACTIVITY:"ACTIVITY",ASPECT:"ASPECT",RISK:"RISK",HAZZARDS:"HAZZARDS",WHOISEFFECTED:"WHOISEFFECTED",IMPACT:"IMPACT",EMERGENCY_CONDITION:"EMERGENCY_CONDITION",CONTROL_MEASURE:"CONTROL_MEASURE",STATUS:"STATUS",DEPARTMENT:Q},mh={ACTIVITY:"Activity / Process",ASPECT:"Environmental Aspect",HAZZARDS:"Identified Hazzards",WHOISEFFECTED:"Who may be effected",IMPACT:"Potential Environmental Impact",EMERGENCY_CONDITION:"Potential Emergency Condition",CONTROL_MEASURE:"Relevant Control Measure",STATUS:"Status",DEPARTMENT:X[Q]},fh=[{value:"1",label:"1 - Very unlikely"},{value:"2",label:"2 - Unlikely"},{value:"3",label:"3 - Possible"},{value:"4",label:"4 - Likely"},{value:"5",label:"5 - Very likely"}],yh=[{value:"-1",label:"-1 - Positive impact"},{value:"1",label:"1 - Negligible"},{value:"2",label:"2 - Minimal harm"},{value:"3",label:"3 - Some impact"},{value:"4",label:"4 - Harmful"},{value:"5",label:"5 - Severe impact"}];function gh(){return(e,n,t,a)=>{const i=(0,hn.clone)(e.readQuery({query:A,variables:{name:a}})),l={...i,getUserInfoById:{...i.getUserInfoById,account:{...i.getUserInfoById.account,departments:n}}};e.writeQuery({query:A,variables:{name:a},data:l});const r=(0,hn.clone)(e.readQuery({query:Br,variables:{id:t}})),o={...r,getAccountInfo:{...r.getAccountInfo,departments:n}};e.writeQuery({query:Br,variables:{id:t},data:o})}}const hh=le.default.form`
  padding: ${e=>e.theme.geometry.md.spacing};
`,xh=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Th=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,bh=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,vh=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Ch=(0,le.default)(ie.fI)`
  margin-top: ${e=>e.theme.geometry.xs.spacing};
`,kh=(0,le.default)(ie.fv)`
  padding: 0 ${e=>e.theme.geometry.xs.spacing};
`,Sh=e=>{let{onDismiss:n,onCompleted:t,onError:a,type:i,accountId:l}=e;const r=Bl(),o=gh(),s=(0,g.useRef)(null),[d,c]=(0,g.useState)(!1),[u,p]=(0,g.useState)({name:"",departmentId:(0,Wa.A)()}),[m,f]=(0,g.useState)({}),[y]=(0,ln.n)(ph.DEPARTMENT===i?uh():rh,{onError:a,onCompleted:e=>{t(e,i===ph.DEPARTMENT?e.createDepartment[0]:e.createAspectOption)},update(e,n){let{data:{createDepartment:t}}=n;o(e,t,l,r)}});return(0,g.useEffect)(()=>{s&&s.current&&s.current.focus()}),(0,fe.jsx)(ie.aF,{onDismiss:n,size:"md",show:!0,height:"auto",maxHeight:"80vh",children:(0,fe.jsxs)(hh,{children:[(0,fe.jsxs)(bh,{size:"lg",children:["Create ",mh[i]]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(vh,{item:!0,children:[(0,fe.jsx)(Th,{children:(0,fe.jsx)(xh,{children:"Name"})}),(0,fe.jsx)(ie.ks,{disabled:d,textInputRef:s,type:"text",onChange:e=>{e.target.value&&f({...m,name:null}),p({...u,name:e.target.value,departmentId:(0,Wa.A)()})},name:"name",value:u.name,error:m.name,box:!0})]})}),(0,fe.jsxs)(Ch,{container:!0,children:[(0,fe.jsx)(kh,{container:!0,item:!0,children:(0,fe.jsx)(ie.$n,{color:"info",onClick:n,children:"Cancel"})}),(0,fe.jsx)(kh,{container:!0,item:!0,children:(0,fe.jsx)(ie.$n,{type:"button",onClick:async()=>{const e=function(e){const n={};return e.name||(n.name="Name is required"),n}(u);if(Object.keys(e).length)return f(e);c(!0);const n=u.name.trim(),t=ph.DEPARTMENT===i?{name:n,accountId:l,departmentId:u.departmentId}:{name:n,type:i,accountId:l};await y({variables:{input:t}}),c(!1)},children:"Create"})})]})]})})};function Nh(e){let{showCreateDepartment:n,setShowCreateDepartment:t,passedAccountId:a,onComplete:i}=e;const l=Je(),r=a||l;return n&&(0,fe.jsx)(Sh,{accountId:r,type:ph.DEPARTMENT,onDismiss:()=>t(!1),onCompleted:(e,n)=>{t(!1),i(e,n)}})}function Ah(e){let{userId:n,disabled:t,showNotification:a}=e;const[i,l]=(0,g.useState)(!1),[r]=(0,ln.n)(Ny);return(0,fe.jsx)(ie.$n,{color:t?"secondary":"danger",disabled:i,onClick:async()=>{l(!0);try{await r({variables:{id:n,disabled:!t}}),a(`The user has been successfully ${t?"enabled":"disabled"}!`,"success")}catch(e){a("Something went wrong, if the problem persists please contact support","danger")}finally{l(!1)}},children:t?"Enable user":"Disable user"})}var Rh=t(58476),Dh=t.n(Rh);const Lh=e=>e===gn.HG.Tag||e===gn.HG.Location,Ih=e=>e===gn.HG.ACCOUNT?ee:Lh(e)?ee.filter(e=>e.value!==gn.HG.Account):ee,jh=e=>e.allowedTags.map(e=>{let{id:n,tagName:t}=e;return{value:n,label:t,isFixed:!0}}),wh=S.J1`
  query GetUserGroupOptions($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {
    getUserGroupsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        value: id
        label: name
      }
      totalRows
    }
  }
`,Oh=(e,n)=>({accountId:e,offset:0,limit:20,filters:n?{text:[{filter:n,field:"name",type:gn.II.Contains,filterType:gn.pe.Text}]}:null,sort:[{field:"name",order:"asc"}]}),Eh=e=>{let{value:n,onChange:t,error:a,name:i="userGroup",disabled:l,defaultValue:r}=e;const o=Je(),{error:s,loading:d,refetch:c}=(()=>{const e=Je();return(0,x.IT)(wh,{variables:Oh(e)})})();return(0,g.useEffect)(()=>{r&&(async()=>{const{data:{getUserGroupsPage:e}}=await c(Oh(o,r)),{rows:n}=e;n.length>0&&t({target:{value:n[0].value,name:i,select:n[0],type:"select"}})})()},[]),(0,fe.jsx)(ie.l6,{name:i,onChange:t,isClearable:!0,isDisabled:l,error:a||s?.toString(),value:n,placeholder:"Start typing to search for a user group",isLoading:d,defaultOptions:!0,debounceTimeout:1e3,loadOptions:async e=>{const{data:{getUserGroupsPage:n}}=await c(Oh(o,e)),{totalRows:t,rows:a}=n;return{options:a,total:t}}})},_h=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,Fh=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Ph=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Bh=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,Uh=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,$h=(0,le.default)(ie.Y3)`
  margin: ${e=>e.theme.geometry.sm.spacing} auto;
`,Mh={hasError:!1,isSuccess:!1,values:{emailAddress:{text:"",error:""},firstName:{text:"",error:""},lastName:{text:"",error:""},phone:{text:"",error:""},mobile:{text:"",error:""},jobTitle:{text:"",error:""},department:{text:"",error:""},role:{text:null,error:""},accountId:{text:{value:null},error:""},accessLevel:{text:null,error:""},allowedTags:{text:null,error:""},allowedLocations:{text:null,error:""},userGroup:{text:null,error:""}},isSubmitted:!1,disableAccountSelector:!1},Vh=e=>{const[n,t]=(0,g.useState)(Mh),a=lr(),{showNotification:i}=tn(),l=!!e.userId,r=Lh(a.currentUser?.accessLevel),o=(0,g.useMemo)(()=>l?{value:e.role.role,label:e.role.name,restrictedAccess:e.role.restrictedAccess}:null,[l,e.role]),s=[...e.roleOptions];l&&!e.roleOptions.find(e=>{let{value:n}=e;return n===o.value})&&s.push(o),(0,g.useEffect)(()=>{const n={hasError:!1,isSuccess:!1,values:{emailAddress:{text:e.email||"",error:""},firstName:{text:e.firstName||"",error:""},lastName:{text:e.lastName||"",error:""},phone:{text:e.phone||"",error:""},mobile:{text:e.mobile||"",error:""},jobTitle:{text:e.jobTitle||"",error:""},department:{text:e.department||"",error:""},role:{text:l?o:null,error:""},accountId:{text:e.accountId,error:""},accessLevel:{text:e.scopeOptions.find(n=>{let{value:t}=n;return t===(e.accessLevel||H)}),error:""},allowedTags:{text:e.allowedTags?.map(e=>{let{id:n,tagName:t}=e;return{value:n,label:t}})||[],error:""},allowedLocations:{text:e.allowedLocations?.map(e=>{let{id:n,name:t}=e;return{value:n,label:t}})||[],error:""},userGroup:{text:e.userGroupName?{value:e.userGroupName,label:e.userGroupName}:null,error:""},disableAccountSelector:e.disableAccountSelector||!1},isSubmitted:!1};return t(n),()=>{t(Mh)}},[o,l,e]);const d=Vr("string"==typeof n.values.accountId.text?e.accountId:n.values.accountId.text.value),{departmentSelect:c,showCreateDepartment:u,setShowCreateDepartment:p}=$o(d?.departments,n.values.department.text,d?.id||e.accountId),m=e=>""===e?"Field cannot be empty":null,f=e=>{const a=e.target,i="select"===a.type?a.select:a.value,l={...n,values:{...n.values,[a.name]:{text:i,error:null}}};t(()=>l)},y=()=>e.onSuccess(`The user ${n.values.firstName.text} ${n.values.lastName.text} has been ${l?"updated":"created"}!`,"success"),h=e=>{i(e.message.replace("GraphQL error:","").trim(),"danger"),t(e=>({...e,hasError:!0,isSuccess:!1,isSubmitted:!1}))},[x]=(0,ln.n)(vy,{onCompleted:y,onError:h}),[T]=(0,ln.n)(Cy,{onCompleted:y,onError:h,refetchQueries:["GetUsers",{query:by,variables:{id:e.userId}}]}),[b]=(0,ln.n)(ky,{onError:h}),[v]=(0,ln.n)(Sy,{onCompleted:()=>e.onSuccess("User email has been sent! The unique link is now on your clipboard.","success"),onError:()=>{t(e=>({...e,hasError:!0,isSuccess:!1,isSubmitted:!1})),i("This user has already completed the sign up process. Email can not be resent.","danger")}}),C=(0,g.useCallback)(()=>{t(e=>({...e,values:{...e.values,disableAccountSelector:!e.values.disableAccountSelector}}))},[]);return(0,fe.jsxs)(ie.aF,{size:"md",show:!0,loading:e.loading,dismissable:!0,name:"ConfigurationUsersContainer__Modal",onDismiss:e.onDismiss,children:[(0,fe.jsx)(Nh,{showCreateDepartment:u,setShowCreateDepartment:p,passedAccountId:d?.id||e.accountId,onComplete:async(e,n)=>{t(e=>({...e,values:{...e.values,department:{text:n.departmentId,error:null}}}))}}),(0,fe.jsxs)(_h,{name:"user-modal",children:[(0,fe.jsxs)("form",{name:"user__form",onSubmit:async a=>{a.preventDefault();const i=n.values;var r;if(i.emailAddress.error=(r=i.emailAddress.text,m(r)),i.firstName.error=m(i.firstName.text),i.lastName.error=m(i.lastName.text),i.role.error=i.role.text&&m(i.role.text.value),i.phone.error=!i.phone.text||(0,Rh.isNumeric)(i.phone.text)?"":"Must be a valid phone number.",i.mobile.error=!i.mobile.text||(0,Rh.isMobilePhone)(i.mobile.text)?"":"Must be a valid mobile number.",i.emailAddress.error||i.firstName.error||i.lastName.error||i.role.error||i.phone.error||i.mobile.error)return void t(e=>({...e,values:i}));const o=l?T:x,s={email:n.values.emailAddress.text.toLowerCase(),previousEmail:e.email||null,first_name:n.values.firstName.text,last_name:n.values.lastName.text,jobTitle:n.values.jobTitle.text,department:"notSelected"!==n.values.department.text?n.values.department.text:null,phone:n.values.phone.text,mobile:n.values.mobile.text,roles:n.values.role.text.value,account_id:"string"==typeof n.values.accountId.text?n.values.accountId.text:n.values.accountId.text.value,accessLevel:n.values.accessLevel.text.value,allowedTagsIds:n.values.accessLevel.text.value===K?n.values.allowedTags.text.map(e=>{let{value:n}=e;return n}):[],allowedLocationsIds:n.values.accessLevel.text.value===Y?n.values.allowedLocations.text.map(e=>{let{value:n}=e;return n}):[],profile:e.profilePicture,disableAccountSelector:n.values.disableAccountSelector,userGroupId:n.values.userGroup.text?.value||null};l?s.id=e.userId:s.password=Yg.generate({length:32,numbers:!0,symbols:!1}),l&&s.roles!==e.role.role&&await b({variables:{id:e.userId,roles:s.roles}}),t(e=>({...e,isSubmitted:!0})),await o({variables:s})},children:[(0,fe.jsxs)(Uh,{name:"user__heading",size:"lg",children:[l?"Update":"Add New"," User"]}),l&&(0,fe.jsx)($h,{accountName:n.values.firstName.text,src:e.profilePicture,border:!0,name:"update-user__profile-picture"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fh,{item:!0,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Email Address"})}),(0,fe.jsx)(ie.ks,{disabled:n.isSubmitted,onChange:f,value:n.values.emailAddress.text,error:n.values.emailAddress.error,name:"emailAddress",box:!0})]})}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(Fh,{item:!0,span:6,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"First Name"})}),(0,fe.jsx)(ie.ks,{id:"firstName","aria-label":"first name",disabled:n.isSubmitted,onChange:f,value:n.values.firstName.text,error:n.values.firstName.error,name:"firstName",box:!0})]}),(0,fe.jsxs)(Fh,{item:!0,span:6,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Last Name"})}),(0,fe.jsx)(ie.ks,{disabled:n.isSubmitted,onChange:f,value:n.values.lastName.text,error:n.values.lastName.error,name:"lastName",box:!0})]})]}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(Fh,{item:!0,span:6,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Phone Number (Optional)"})}),(0,fe.jsx)(ie.ks,{disabled:n.isSubmitted,onChange:f,value:n.values.phone.text,error:n.values.phone.error,name:"phone",box:!0})]}),(0,fe.jsxs)(Fh,{item:!0,span:6,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Mobile Number (Optional)"})}),(0,fe.jsx)(ie.ks,{disabled:n.isSubmitted,onChange:f,value:n.values.mobile.text,error:n.values.mobile.error,name:"mobile",box:!0})]})]}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(Fh,{item:!0,span:6,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Job Title (Optional)"})}),(0,fe.jsx)(ie.ks,{disabled:n.isSubmitted,onChange:f,value:n.values.jobTitle.text,name:"jobTitle",box:!0})]}),(0,fe.jsxs)(Fh,{item:!0,span:6,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Department (Optional)"})}),c(f)]})]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fh,{item:!0,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"User Type"})}),(0,fe.jsx)(ie.l6,{name:"role",isDisabled:n.isSubmitted||e.currentUser.accessLevel===Y&&e.email,onChange:n=>{t(t=>({...t,values:{...t.values,role:{text:n.target.select,error:null},accessLevel:{text:e.scopeOptions.find(e=>{let{value:n}=e;return n===H})||e.scopeOptions[0],error:null}}}))},value:n.values.role.text,error:n.values.role.error,options:s})]})}),a.user.includes("editAll")&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fh,{item:!0,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Company"})}),(0,fe.jsx)(wu,{disabled:n.isSubmitted,name:"accountId",value:n.values.accountId.text,onChange:e=>{let{id:a}=e;n.values.allowedTags.text.length||n.values.allowedLocations.text.length?i("Unable to change account until current Tag/Location restrictions are removed.","danger"):t(e=>({...e,values:{...e.values,accountId:{text:a,error:""},department:{...e.values.department,text:n.values.accountId.text.value!==a?null:e.values.department.text}}}))},error:n.values.accountId.error,defaultValue:d?{value:d.id,label:d.name}:void 0})]})}),n.values.role.text&&n.values.role.text?.restrictedAccess&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fh,{item:!0,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Access Level"})}),(0,fe.jsx)(ie.l6,{name:"accessLevel",options:e.scopeOptions,value:n.values.accessLevel.text||{value:null},onChange:f,isDisabled:e.currentUser.accessLevel===Y})]})}),n.values.role.text&&n.values.role.text?.restrictedAccess&&n.values.accessLevel.text.value===Y&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fh,{item:!0,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Location(s)"})}),(0,fe.jsx)(eh,{name:"allowedLocations",accountId:n.values.accountId.text?.value||n.values.accountId.text,value:n.values.allowedLocations.text,onChange:f,error:n.values.allowedLocations.error,isSubmitting:n.isSubmitted,disabled:e.currentUser.accessLevel===Y,defaultOptions:r?(k=e.currentUser,k.allowedLocations.map(e=>{let{id:n,name:t}=e;return{value:n,label:t,isFixed:!0}})):null})]})}),n.values.role.text&&n.values.role.text?.restrictedAccess&&n.values.accessLevel.text.value===K&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fh,{item:!0,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Tag(s)"})}),(0,fe.jsx)(Qg,{name:"allowedTags",accountId:n.values.accountId.text?.value||n.values.accountId.text,value:n.values.allowedTags.text,onChange:f,error:n.values.allowedTags.error,isSubmitting:n.isSubmitted,disabled:e.currentUser.accessLevel===Y,defaultOptions:r?jh(e.currentUser):null})]})}),d?.accessControls?.organisation&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fh,{item:!0,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"User Group (Optional)"})}),(0,fe.jsx)(Eh,{name:"userGroup",accountId:n.values.accountId.text?.value||n.values.accountId.text,value:n.values.userGroup.text,onChange:f,defaultValue:e.userGroupName,error:n.values.userGroup.error,disabled:n.isSubmitted})]})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsxs)(Fh,{item:!0,children:[(0,fe.jsx)(Bh,{children:(0,fe.jsx)(Ph,{children:"Disable Account Selector"})}),(0,fe.jsx)(ie.Sc,{onChange:C,checked:n.values.disableAccountSelector})]})}),!l&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(Fh,{item:!0,children:(0,fe.jsx)(ie.$n,{name:"create-user__button--create",color:"success",submit:!0,disabled:n.isSubmitted||!(n.values.emailAddress.text&&n.values.firstName.text&&n.values.lastName.text&&n.values.role.text),children:"Send Invitation"})})}),l&&(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsx)(Fh,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{disabled:n.isSubmitted,name:"update-user__button--cancel",color:"info",onClick:e.onDismiss,children:"Cancel"})}),(0,fe.jsx)(Fh,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{name:"update-user__button--save",color:"success",submit:!0,disabled:n.isSubmitted||!(n.values.emailAddress.text&&n.values.firstName.text&&n.values.lastName.text&&n.values.role.text&&n.values.accountId.text),children:"Save"})})]})]}),l&&a.user.find(e=>e.startsWith("resendEmail"))&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(Fh,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{disabled:n.isSubmitted,name:"update-user__button--resend",color:"primary",onClick:()=>(e=>{const t=Yg.generate({length:32,numbers:!0,symbols:!1});e({variables:{username:n.values.emailAddress.text,password:t}}),Jg(`${De("REACT_APP_BASE_URL")}/login?username=${n.values.emailAddress.text}&token=${t}`)})(v),children:"Resend Email"})})}),l&&a.user.find(e=>e.startsWith("toggleStatus"))&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(Fh,{item:!0,container:!0,children:(0,fe.jsx)(Ah,{userId:e.userId,disabled:e.disabled,showNotification:i})})})]})]});var k},Gh=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,zh=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Wh=(0,le.default)(ie.EY)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,qh=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`;class Jh extends g.Component{constructor(e){super(e),this.hideNotification=()=>this.setState({notification:{message:null,color:null}}),this.onDeleteError=()=>{this.setState({notification:{message:"Something went wrong. If the problem persists, contact support.",color:"danger"},hasError:!0,isSuccess:!1,isSubmitted:!1})},this.onDeleteClick=e=>{e({variables:{username:this.props.userId}}),this.setState({isSubmitted:!0})},this.state={hasError:!1,isSuccess:!1,notification:{message:null,color:null},isSubmitted:!1}}render(){return(0,fe.jsxs)(Gh,{name:"delete-user",children:[this.state.notification.message&&(0,fe.jsx)(ie.Eg,{name:"delete-user__notification",show:!0,color:this.state.notification.color,onClose:this.hideNotification,children:this.state.notification.message}),(0,fe.jsx)(me.s,{mutation:Ty,onCompleted:()=>this.props.onSuccess("The user has been deleted!","success",this.props.userId),onError:this.onDeleteError,children:e=>(0,fe.jsxs)("div",{children:[(0,fe.jsx)(zh,{name:"delete-user__heading",size:"lg",children:"Delete User"}),(0,fe.jsx)(Wh,{size:"md",children:"Are you sure you want to delete this user?"}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsx)(qh,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{disabled:this.state.isSubmitted,color:"info",name:"delete-user__button--cancel",onClick:this.props.onDismiss,children:"Cancel"})}),(0,fe.jsx)(qh,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{disabled:this.state.isSubmitted,color:"danger",name:"delete-user__button--confirm",onClick:()=>this.onDeleteClick(e),children:"Confirm"})})]})]})})]})}}const Yh=Jh;var Hh=t(96218),Kh=t(18966);let Qh=function(e){return e.DONE="DONE",e.PENDING="PENDING",e.FAILED="FAILED",e.ACTION_REQUIRED="ACTION",e.ABANDONED="ABANDONED",e.DELETED="DELETED",e.EXTERNAL_ACTION_REQUIRED="EXTERNAL",e}({}),Zh=function(e){return e.Dynamic="Dynamic",e.Static="Static",e}({}),Xh=function(e){return e.CREATE="CREATE",e.UPDATE="UPDATE",e.DELETE="DELETE",e}({}),ex=function(e){return e.PROJECTS="Projects",e}({});function nx(e){let{template:n,size:t,color:a}=e;const[i,l]=(0,g.useState)(null),r=Boolean(i),o=Array.isArray(n),s=(0,g.useCallback)(()=>{l(null)},[l]),d=(0,g.useCallback)(async e=>{e.type===Zh.Static?await Xt(e.url):e.type===Zh.Dynamic&&function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const a=ta.Wp.book_new(),i={};e.forEach((e,n)=>{i[e]=t[n]});const l=ta.Wp.json_to_sheet([i]);ta.Wp.book_append_sheet(a,l,"Data"),(0,ta._h)(a,`${n}.xlsx`)}(e.columns,e.fileName,e.exampleValues)},[]),c=(0,g.useCallback)(e=>{o?l(e.currentTarget):d(n)},[l,d,o,n]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.$n,{size:t||"md",color:a||"secondary",onClick:c,inline:!0,children:"Download template"}),Array.isArray(n)&&(0,fe.jsx)(Hh.A,{anchorEl:i,open:r,onClose:s,children:n.map(e=>(0,fe.jsx)(Kh.A,{id:e.name,onClick:()=>d(e),children:e.name},e.name))})]})}const tx=(0,le.default)(ie.fv)`
  ${e=>{let{isDragActive:n,isDragEnabled:t,theme:a,background:i}=e;return`\n    background: ${i?a.uploadColors.background:null};\n    opacity: ${t&&n?.5:1};\n  `}};
`,ax=(0,le.default)(ie.EY)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,ix=(0,ie.SH)(e=>{let{errors:n,isDragActive:t,isDragEnabled:a}=e;return(0,fe.jsxs)(tx,{span:12,isDragActive:t,isDragEnabled:a,children:[(0,fe.jsx)(ax,{children:"We found these errors in your spreadsheet:"}),(0,fe.jsx)(ie.v3,{children:n.map(e=>(0,fe.jsx)(ie.EY,{children:e}))})]})}),lx=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.lg.spacing};
  min-height: 550px;
`,rx=(0,le.default)(ie.fv)`
  width: 100%;
  flex-flow: row nowrap;
  justify-content: center;
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
`,ox=(0,le.default)(ie.fv)`
  min-width: 200px;
  padding: 0 ${e=>e.theme.geometry.sm.spacing};
`,sx=(0,le.default)(ie.fv)`
  flex: 1;
`,dx=(0,le.default)(ie.h$)`
  & > div {
    height: 400px;
  }
`;function cx(e){let{template:n,isUploading:t,errors:a,onFileInput:i,onDismiss:l,multiple:r,handleFileChange:o,children:s,size:d}=e;const c=(0,g.useRef)(null),u=(0,g.useCallback)(function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];i(e,...t),c.current&&(c.current.value="")},[i]);return(0,fe.jsx)(ie.aF,{size:d||"md",onDismiss:l,show:!0,dismissable:!0,height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(lx,{container:!0,children:[(0,fe.jsxs)(rx,{container:!0,children:[(0,fe.jsx)(ox,{span:5,align:"center",container:!0,children:(0,fe.jsx)(ie.bT,{multiple:r,accept:qt.allowedDataFile.mimeType,onChange:o||u,inputRef:c,name:"MassUploadModal__FileInput",children:e=>(0,fe.jsx)(ie.$n,{onClick:e,size:"md",color:"primary","data-cy":"MassUploadModal__UploadSpreadsheet",name:"MassUploadModal__UploadSpreadsheet",inline:!0,children:"Upload spreadsheet"})})}),(0,fe.jsx)(ox,{span:5,align:"center",container:!0,children:(0,fe.jsx)(nx,{template:n})})]}),a&&a.length?(0,fe.jsx)(ix,{errors:a,onDrop:i,dragText:"Drop file"}):(0,fe.jsx)(sx,{align:"center",vdistribution:"center",container:!0,children:t?(0,fe.jsx)(Rc,{}):s||(0,fe.jsx)(dx,{accept:qt.allowedDataFile.mimeType,multiple:r,onDrop:i,dragText:"Drop file",text:"Select an xlsx, xls or csv file...",background:!0})})]})})}const ux=S.J1`
  query GetLocationsByAccountId(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getLocationsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
      }
    }
  }
`,px=async(e,n,t)=>{const a=e.query({query:Td,variables:{accountId:n}}),i=t?[{field:"name",filterType:gn.pe.Set,values:t}]:[],l=e.query({query:ux,variables:{accountId:n,limit:kt,filters:{set:i}}}),[{data:{getTagsByAccountId:r}},{data:{getLocationsPage:o}}]=await Promise.all([a,l]);return{tags:Pd()(r,"tagName"),locations:Pd()(o.rows,"name")}},mx=e=>e["Access Level"]?e["Access Level"].toUpperCase():H,fx=(e,n,t,a)=>{const i=[];e.length||i.push("Your spreadsheet is empty, please add some rows");const l=n.map(e=>{let{label:n}=e;return n}),r=l.map(e=>e.toLowerCase());return e.forEach((e,n)=>{const o=n+2,s=e["User Type"]||"",d=mx(e),c=[H,Y,K];e["Email Address"]||i.push(`Row ${o}: "Email Address" should be defined`),s||i.push(`Row ${o}: "User Type" should be defined`),r.includes(s.toLowerCase())||i.push(`Row ${o}: "User Type" should equal to one of: ${l.join(", ")}`),e["First Name"]||i.push(`Row ${o}: "First Name" should be defined`),e["Last Name"]||i.push(`Row ${o}: "Last Name" should be defined`),e["Mobile Number (Optional)"]&&!(0,Rh.isMobilePhone)(e["Mobile Number (Optional)"])&&i.push(`Row ${o}: "Mobile Number" should be valid`),e["Phone Number (Optional)"]&&!(0,Rh.isNumeric)(e["Phone Number (Optional)"])&&i.push(`Row ${o}: "Phone Number" should be numeric`),c.includes(d)||i.push(`Row ${o}: "Access Level" should equal to one of: ${c.join(", ")}`),d===Y&&e["Allowed Resources"]&&e["Allowed Resources"].split(",").forEach(e=>{a[e.trim()]||i.push(`Row ${o}: Location ${e} wasn't found in your account`)}),d===K&&e["Allowed Resources"]&&e["Allowed Resources"].split(",").forEach(e=>{t[e.trim()]||i.push(`Row ${o}: Tag ${e} wasn't found in your account`)})}),i},yx=(e,n,t,a,i)=>e.map(e=>({username:e["Email Address"],password:Yg.generate({length:32,numbers:!0,symbols:!1}),roles:t.find(n=>{let{label:t}=n;return t.toLowerCase()===e["User Type"].toLowerCase()}).value,first_name:e["First Name"],last_name:e["Last Name"],jobTitle:e["Job Title (Optional)"]||null,department:e["Department (Optional)"]||null,phone:e["Phone Number (Optional)"]||null,mobile:e["Mobile Number (Optional)"]||null,account_id:n,accessLevel:mx(e),allowedLocationsIds:mx(e)===Y?e["Allowed Resources"].split(",").map(e=>a[e.trim()].id):[],allowedTagsIds:mx(e)===K?e["Allowed Resources"].split(",").map(e=>i[e.trim()].id):[]})),gx=["Email Address","User Type","First Name","Last Name","Job Title (Optional)","Department (Optional)","Phone Number (Optional)","Mobile Number (Optional)","Access Level","Allowed Resources","User Group (Optional)"],hx=["test@example.com","Read Only","John","Doe","Supervisor","Sales","01610000000","07000000000","Location","London, Manchester","BU: Sales"];function xx(e){let{onDismiss:n,setCreateMutation:t,startUploadingUsers:a,accountId:i,roleOptions:l}=e;const[r,o]=(0,g.useState)([]),s=(0,C.m)();return(0,fe.jsx)(cx,{template:{columns:gx,exampleValues:hx,type:Zh.Dynamic,fileName:"users-upload"},errors:r,onFileInput:async e=>{let[r]=e;t("users");const[d,c]=await(async(e,n,t,a)=>{const[i,l]=await la(e);if(i)return[[i],null];const r=l.map(e=>(e=>xn().get(e,"Allowed Resources","").split(","))(e)).flat(),{tags:o,locations:s}=await px(a,n,r),d=fx(l,t,o,s);return d.length?[d,null]:[[],yx(l,n,t,s,o)]})(r,i,l,s);if(d&&d.length)return o(d);n(),a(c);const u={accountId:i,limit:600},p=s.readQuery({variables:u,query:yr()});s.writeQuery({variables:u,query:yr(),data:{getUserInfoByAccountId:{...p.getUserInfoByAccountId,users:p.getUserInfoByAccountId.users.concat(c)}}})},onDismiss:n})}const Tx=/^.{10,}$/;function bx(e){const n={};return e.email?.trim()||(n.email="missingEmail"),e.email?.trim()&&!(0,Rh.isEmail)(e.email?.trim())&&(n.email="invalidEmail"),e.password?.trim()||(n.password="missingPassword"),e.password&&!Tx.test(e.password)&&(n.password="passwordPattern"),e.passwordConfirmed?.trim()||(n.passwordConfirmed="confirmPassword"),e.password&&e.passwordConfirmed&&e.password!==e.passwordConfirmed&&(n.passwordConfirmed="mismatchPassword"),n}const vx=le.default.div`
  padding: 20px;
`,Cx=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,kx=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,Sx=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Nx=(0,le.default)(ie.EY)`
  text-align: center;
  font-size: 13px;
`,Ax=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Rx=(0,le.default)(ie.ks)`
  width: 100%;
`,Dx=e=>{let{userId:n,onDissmiss:t}=e;const[a,i]=(0,g.useState)(""),[l,r]=(0,g.useState)(""),o=a===l,[s,{error:d,data:c}]=(0,ln.n)(Ay,{variables:{username:n,password:a}});d&&(E.Cp(d),t({message:"Something went wrong. Please try again later or contact support.",color:"danger",id:n})),c&&t({message:"The password has been reset!",color:"success",id:n});const u=a&&!Tx.test(a);return(0,fe.jsxs)(vx,{children:[(0,fe.jsx)(Sx,{size:"lg",children:"Reset Password"}),(0,fe.jsx)(Nx,{children:" Passwords must be at least 10 characters."}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ax,{item:!0,children:[(0,fe.jsx)(kx,{children:(0,fe.jsx)(Cx,{children:"New Password"})}),(0,fe.jsx)(Rx,{type:"password",inline:!0,value:a,onChange:e=>i(e.target.value)})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ax,{item:!0,children:[(0,fe.jsx)(kx,{children:(0,fe.jsx)(Cx,{children:"Confirm Password"})}),(0,fe.jsx)(Rx,{type:"password",inline:!0,value:l,error:o||!l.length?null:"Passwords do not match.",onChange:e=>r(e.target.value)})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(ie.$n,{name:"SubmitDocuemnt",onClick:s,disabled:!a.length||!l.length||!o||u,color:"success",children:"Reset Password"})})]})},Lx=(e,n,t)=>!!e.find(e=>e.startsWith(n)&&!e.endsWith("Own"))||e.includes(`${n}Own`)&&t,Ix=le.default.button`
  color: ${e=>e.theme.colors.text.normal.background};
  padding: ${e=>`0 ${e.theme.geometry.sm.spacing}`};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
  }
`,jx=e=>{let{user:n,onEdit:t,onPasswordReset:a}=e;const{token:i}=qe(),l=lr(),r=n.role===gn.gG.Sysadmin,o=n.role===gn.gG.Businessadmin,s=n.id===i.sub,d=!n.isExternalUser&&Lx(l.user,"resetPassword",s)&&(!r&&!o||l.user.includes("resetPasswordAll")||s),c=Lx(l.user,"edit",s)&&(!r||l.user.includes("editAll"));return(0,fe.jsxs)(fe.Fragment,{children:[c&&(0,fe.jsx)(Ix,{"aria-label":"edit",onClick:()=>t(n),children:(0,fe.jsx)(ie.In,{name:`user-row__edit--${n.id}`,icon:"pencil-alt"})}),d&&(0,fe.jsx)(Ix,{"aria-label":"reset password",onClick:()=>a(n),children:(0,fe.jsx)(ie.In,{name:`user-row__passwordReset--${n.id}`,icon:"key"})})]})},wx=e=>{let{value:n}=e;return n?"Deactivated":"Active"},Ox=e=>{let{value:n}=e;const t=JSON.parse(n),{label:a}=t;return wx({value:JSON.parse(a)})};const Ex={getRowId:e=>e.data.id,pagination:!0,paginationPageSize:25,paginationPageSizeSelector:!1,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}},_x=e=>{let{accountId:n,setGridApi:t,fetchRows:a,showModal:i,roles:l}=e;const r=function(e){const n=(0,C.m)(),t=zo(),a=t?.id,{showNotification:i}=tn(),l=(0,g.useCallback)(async e=>{try{const t=e.colDef.colId||e.colDef.field,{data:{getUsersFilter:i}}=await n.query({query:Ly,variables:{accountId:a,field:t}});let l=[...i];"department"===t&&(l=i.map(e=>({...e,label:e.value}))),"role"===t&&(l=i.filter(n=>e.context.roles[n.value])),e.success(l.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){i(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning")}},[a,n,i]);return(0,g.useMemo)(()=>({context:{roles:e},columnDefs:[{headerName:"First Name",field:"firstName",filter:"agTextColumnFilter"},{headerName:"Last Name",field:"lastName",filter:"agTextColumnFilter"},{headerName:"Account",field:"accountName",filterParams:{values:l,valueFormatter:On}},{headerName:"Email",field:"email",filter:"agTextColumnFilter",cellStyle:{"text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"}},{headerName:"User Type",field:"role",filterParams:{values:l,valueFormatter:e=>(e=>{let{value:n,context:{roles:t}}=e;if(!n)return n;try{const{label:e}=JSON.parse(n);return e&&t[e]}catch(e){return n}})(e)},valueFormatter:e=>(e=>{let{value:n,context:{roles:t}}=e;return n&&t[n]})(e)},{headerName:"User Group",field:"userGroupName",filter:"agSetColumnFilter",hide:!t?.accessControls?.organisation,filterParams:{values:l,valueFormatter:On}},{headerName:"Tags",field:"tags",filterParams:{values:l,valueFormatter:On}},{headerName:"Locations",field:"locations",filterParams:{values:l,valueFormatter:On}},{headerName:"Last Logged in",field:"lastActiveAt",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Dn(n)},cellStyle:{textAlign:"center"},initialSort:"desc"},{headerName:"Total Time in System",field:"totalTimeSpentMs",filter:"agNumberColumnFilter",valueFormatter:e=>{let{value:n}=e;return Rn(n)}},{headerName:"Department",field:"department",filterParams:{values:l,valueFormatter:On}},{headerName:"Status",field:"isDisabled",valueFormatter:wx,filterParams:{values:l,valueFormatter:Ox}},{headerName:"Actions",cellRenderer:"actions",field:"readonly",sortable:!1,filter:!1,cellStyle:{justifyContent:"center",alignItems:"center",display:"flex"}}]}),[l,e])}(l),o=(0,g.useMemo)(()=>({...Ex,...r}),[r]),s=qr(),d=(0,g.useCallback)(e=>{i("update",e.id.toLowerCase())},[i]),c=(0,g.useCallback)(e=>{i("resetPassword",e.id.toLowerCase())},[i]),u=(0,g.useMemo)(()=>({actions:e=>e.value?null:(0,fe.jsx)(jx,{user:e.data,onEdit:d,onPasswordReset:c})}),[d,c]),p=(0,g.useCallback)(e=>{t({api:e.api})},[t]),m=(0,g.useMemo)(()=>({async getRows(e){try{const{startRow:t,sortModel:i,filterModel:l}=e.request,{rows:r,totalRows:s}=await a({accountId:n,offset:t||0,limit:o.paginationPageSize,sort:wn(i),filters:jn(l)});e.success({rowData:r,rowCount:s})}catch(n){e.fail()}}}),[n,a,o.paginationPageSize]);return(0,fe.jsx)("div",{className:"ag-theme-alpine",style:{height:"100vh"},children:(0,g.createElement)(Dg.W6,{...o,paginationPageSize:o.paginationPageSize,cacheBlockSize:o.paginationPageSize,key:n,components:u,onColumnVisible:s.onSaveGridColumnState,onColumnPinned:s.onSaveGridColumnState,onColumnResized:s.onSaveGridColumnState,onColumnMoved:s.onSaveGridColumnState,onColumnRowGroupChanged:s.onSaveGridColumnState,onColumnValueChanged:s.onSaveGridColumnState,onColumnPivotChanged:s.onSaveGridColumnState,serverSideDatasource:m,onGridReady:p})})},Fx="Enter";function Px(e){let{show:n,onDismiss:t,onSubmit:a,defaultFileName:i}=e;const[l,r]=(0,g.useState)(""),o=e=>{a(e),r("")};return(0,fe.jsx)(ie.aF,{size:"md",show:n,onDismiss:t,height:"auto",maxHeight:"80vh",children:(0,fe.jsxs)(ie.hh,{children:[(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.TextInputColumn,{textInputRef:e=>{e?.focus()},name:"fileName",onChange:e=>r(e.target.value),label:"File name",value:l,onKeyPress:e=>{e.key===Fx&&o(l||i)}})}),(0,fe.jsxs)(ie.hh.Row,{children:[(0,fe.jsx)(ie.hh.ButtonColumn,{span:6,color:"primary",onClick:()=>{o(i)},children:"Use default"}),(0,fe.jsx)(ie.hh.ButtonColumn,{span:6,disabled:!l,color:"tertiary",onClick:()=>{o(l)},children:"Confirm"})]})]})})}const Bx=(0,f.styled)(f.Button)`
  width: 50%;
`,Ux=(0,f.styled)("div")`
  width: 100%;
  padding-top: 24px;
  display: flex;
  gap: 24px;
`,$x=e=>{let{show:n,onDismiss:t,onSubmit:a,defaultFileName:i}=e;const[l,r]=(0,g.useState)(!1),[o,s]=(0,g.useState)(""),d=(0,g.useCallback)(async e=>{r(!0),await a(e),r(!1),t(),s("")},[a,t]),c=(0,g.useCallback)(e=>{e.key===Fx&&d(o||i)},[i,o,d]);return(0,fe.jsx)(f.Modal,{title:"Please enter file name",open:n,onClose:t,children:(0,fe.jsxs)(f.Grid,{container:!0,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{name:"fileName",onChange:e=>s(e.target.value),label:"File name",error:!1,value:o,onKeyPress:c})}),(0,fe.jsxs)(Ux,{children:[(0,fe.jsx)(Bx,{variant:"outlined",color:"primary",onClick:()=>{d(i)},disabled:l,children:"Use default"}),(0,fe.jsx)(Bx,{variant:"contained",disabled:!o||l,onClick:()=>{d(o)},children:"Confirm"})]})]})})};function Mx(e){let{label:n,fetchRows:t,gridApi:a,defaultExportFileName:i,context:l={},columnsToSkip:r=[],step:o,customFilterModelMapper:s,customSortModelMapper:d,rowMutators:c=[]}=e;const[u,p]=(0,g.useState)(!1),m=kl(),f=(0,g.useRef)(),y=(0,g.useMemo)(()=>{const e=a?.getColumns()||[],n={};return e.forEach(e=>{const t=e.getColDef();r.includes(t.headerName)||(n[t.field]={headerName:t.headerName,valueFormatter:(e,n)=>"function"==typeof t.valueFormatter?t.valueFormatter({value:e,context:l,data:n}):e})}),n},[a,l,r]),h=(0,g.useCallback)(e=>{const n={};(0,hn.map)(y,(t,a)=>{const{headerName:i,valueFormatter:l}=t,r=(0,hn.get)(e,a);n[i]=l(r||"",e)});let t=n;for(const e of c)t=e(t);return t},[y]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.$n,{color:"tertiary",onClick:()=>{p(!0)},title:"You are about to export your data. Please note that large datasets may take some time to export.",children:n}),(0,fe.jsx)(Px,{show:u,onDismiss:()=>{p(!1)},defaultFileName:i,onSubmit:e=>{if(!a)throw new Error("Data is not yet ready for export");const n=a.getColumnState(),i=a.getFilterModel();p(!1);const l=d?d(n):wn(n),r=s?s(i):jn(i);f.current=m?.startFrontendExport({fetchRows:t,exportFileName:e,formatRow:h,step:o,sort:l,filters:r})}})]})}var Vx=t(34739);const Gx=(0,f.styled)("span")`
  height: fit-content;
`,zx=e=>{const{fetchRows:n,gridApi:t,defaultExportFileName:a,context:i={},columnsToSkip:l=[],step:r,customFilterModelMapper:o,customSortModelMapper:s,isBackendExport:d=!1}=e,c=(e=>!!e.isBackendExport)(e)?e.transactionType:void 0,[u,p]=(0,g.useState)(!1),m=kl(),y=(0,g.useRef)(),h=(0,g.useMemo)(()=>{const e=t?.getColumns()||[],n={};return e.forEach(e=>{const t=e.getColDef();l.includes(t.headerName)||(n[t.field]={headerName:t.headerName,valueFormatter:(e,n)=>"function"==typeof t.valueFormatter?t.valueFormatter({value:e,context:i,data:n}):e})}),n},[t,i,l]),x=(0,g.useCallback)(e=>{const n={};return(0,hn.map)(h,(t,a)=>{const{headerName:i,valueFormatter:l}=t,r=(0,hn.get)(e,a);n[i]=l(r||"",e)}),n},[h]),T=(0,g.useCallback)(()=>{p(!0)},[]),b=(0,g.useCallback)(()=>{p(!1)},[]),v=(0,g.useCallback)(async e=>{if(!t)throw new Error("Data is not yet ready for export");const a=t.getColumnState(),i=t.getFilterModel();p(!1);const l=s?s(a):wn(a),u=o?o(i):jn(i);y.current=d?await(m?.startBackendExport({fileName:e,filters:u,transactionType:c})):m?.startFrontendExport({fetchRows:n,exportFileName:e,formatRow:x,step:r,sort:l,filters:u})},[t,m,n,x,r,s,o,c,d]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Vx.A,{title:"Export",children:(0,fe.jsx)(Gx,{children:(0,fe.jsx)(f.IconButton,{variant:"outlined",onClick:T,children:(0,fe.jsx)(f.CustomIcons.Download,{width:"20px",height:"20px",color:"primary"})})})}),(0,fe.jsx)($x,{show:u,onDismiss:b,defaultFileName:a,onSubmit:v})]})},Wx=(0,le.default)(gu)`
  justify-content: space-between;
`,qx=e=>{const n=lr(),[t,a]=(0,g.useState)({account:{id:e.accountId},createModal:{show:!1},uploadModal:{show:!1},updateModal:{id:""},deleteModal:{id:""},resetPasswordModal:{id:""},notification:{message:null,color:null,id:null}}),[i,l]=(0,g.useState)({}),r=(0,C.m)(),o=(0,g.useCallback)(()=>i?.api?.refreshServerSide({purge:!0}),[i]),s=function(e){const n=(0,C.m)(),[t,a]=(0,g.useState)(null);return(0,g.useEffect)(()=>{e?(async()=>{const{data:t}=await n.query({query:hr,variables:{id:e}});a(t.getUserInfoById)})():a(null)},[n,e]),t}(t.updateModal.id),d=(0,g.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(n=>({...n,createModal:{show:!1},uploadModal:{show:!1},updateModal:{id:null},deleteModal:{id:null},resetPasswordModal:{id:null},notification:{message:e.message,color:e.color,id:e.id}}))},[]),c=(0,g.useCallback)((e,n)=>"create"===e?a(e=>({...e,createModal:{show:!0}})):"upload"===e?a(e=>({...e,uploadModal:{show:!0}})):"update"===e?a(e=>({...e,updateModal:{id:n}})):"delete"===e?a(e=>({...e,deleteModal:{id:n}})):"resetPassword"===e?a(e=>({...e,resetPasswordModal:{id:n}})):void 0,[]),u=()=>a(e=>({...e,notification:{message:null,color:null,id:null}})),p=(0,g.useCallback)(a=>{const{notification:i,createModal:l,uploadModal:r,updateModal:c,deleteModal:p,resetPasswordModal:m,account:f}=t,y=n.currentUser.accessLevel,g=Ih(y);return(0,fe.jsxs)(fe.Fragment,{children:[i.message&&(0,fe.jsxs)(ie.Eg,{name:"ConfigurationUsersContainer__Notification",show:!0,color:"success",onClose:u,children:[i.message,(0,fe.jsx)("div",{hidden:!0,name:"ConfigurationUsersContainer__Notification__Id",children:i.id})]}),l.show&&(0,fe.jsx)(Vh,{onDismiss:d,onSuccess:(e,n,t)=>d({message:e,color:n,id:t}),accountId:f.id,startUploadingUsers:e.massUploadFunction,setCreateMutation:e.setCreateMutation,roleOptions:a,accessLevel:n.currentUser.accessLevel,allowedLocations:n.currentUser.allowedLocations,allowedTags:n.currentUser.allowedTags,currentUser:n.currentUser,scopeOptions:g}),r.show&&(0,fe.jsx)(xx,{onDismiss:d,accountId:f.id,startUploadingUsers:e.massUploadFunction,setCreateMutation:e.setCreateMutation,roleOptions:a}),c.id&&(0,fe.jsx)(fe.Fragment,{children:!!s&&(0,fe.jsx)(Vh,{userId:s.id,firstName:s.first_name,lastName:s.last_name,phone:s.phone,mobile:s.mobile,jobTitle:s.jobTitle,department:s.department,email:s.email,profilePicture:s.profilePicture,role:s.role,disabled:s.disabled,accountId:s.account.id,accessLevel:s.accessLevel,allowedLocations:s.allowedLocations,allowedTags:s.allowedTags,disableAccountSelector:s.disableAccountSelector,userGroupName:s.userGroupName,onSuccess:(e,n,t)=>{d({message:e,color:n,id:t}),o()},onDismiss:d,roleOptions:a,currentUser:n.currentUser,scopeOptions:g})}),p.id&&(0,fe.jsx)(ie.aF,{size:"sm",show:!0,dismissable:!0,name:"ConfigurationUsersContainer__Modal--delete",onDismiss:d,children:(0,fe.jsx)(Yh,{userId:p.id,onSuccess:(e,n,t)=>d({message:e,color:n,id:t}),onDismiss:d})}),m.id&&(0,fe.jsx)(ie.aF,{size:"sm",show:!0,dismissable:!0,name:"ConfigurationUsersContainer__Modal--resetpassword",onDismiss:d,height:"auto",maxHeight:"90vh",children:(0,fe.jsx)(Dx,{userId:m.id,onDissmiss:d})})]})},[d,n.currentUser,e.massUploadFunction,e.setCreateMutation,o,s,t]),{data:m}=(0,x.IT)(Ry),f=(0,g.useMemo)(()=>m?.getUserRoles.filter(e=>!e.readonly).map(e=>{let{role:n,name:t,restrictedAccess:a}=e;return{value:n,label:t,restrictedAccess:a}}).sort(Yn("label"))||[],[m?.getUserRoles]),y=(0,g.useMemo)(()=>m?.getUserRoles.reduce((e,n)=>{let{role:t,name:a}=n;return e[t]=a,e},{}),[m?.getUserRoles]),h=(0,g.useCallback)(async e=>{const{data:{getUsers:{rows:n,totalRows:t}}}=await r.query({query:Dy,variables:e,fetchPolicy:"network-only"});return{rows:n,totalRows:t}},[r]);return(0,fe.jsxs)(ie.fv,{name:"ConfigurationUsersContainer",container:!0,fullHeight:!0,children:[(0,fe.jsxs)(Wx,{name:"ConfigurationUsersContainer__Controls",icon:"user",iconColor:"primary",title:"Users",children:[(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(qg,{gridApi:i.api})}),(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(ie.$n,{name:"ConfigurationUsersContainer__Controls__Button--create",color:"primary",onClick:()=>c("create"),children:"+ Add Users"})}),(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(ie.$n,{name:"ConfigurationUsersContainer__Controls__Button--upload",color:"secondary",onClick:()=>c("upload"),children:"Upload users"})}),(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(Mx,{fetchRows:h,gridApi:i.api,defaultExportFileName:"users",context:{roles:y},columnsToSkip:["Actions"],label:"Export Users"})})]}),(0,fe.jsx)(fe.Fragment,{children:p(f)}),(0,fe.jsx)(_x,{accountId:e.accountId,setGridApi:l,fetchRows:h,showModal:c,roles:y},e.accountId)]})},Jx="32px",Yx="md",Hx=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Kx=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,Qx=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 0 0 ${e=>e.theme.geometry.xxl.spacing};
  margin-right: ${e=>e.theme.geometry.sm.spacing};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,Zx=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  margin-right: ${e=>e.theme.geometry.sm.spacing};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,Xx=e=>{let{data:{id:n},onEdit:t,onLogoEdit:a}=e;return(0,fe.jsxs)(Kx,{children:[(0,fe.jsx)(Qx,{onClick:()=>t(n),children:(0,fe.jsx)(ie.In,{name:`account-row__edit--${n}`,icon:"pencil-alt"})}),(0,fe.jsx)(Zx,{onClick:()=>a(n),children:(0,fe.jsx)(ie.In,{name:`account-row__edit--${n}`,icon:"image"})})]})},eT=e=>{let{data:{accessControls:n,id:t}}=e;const a=n.comply,i=n.learn,l=Object.values(n.data).some(e=>!0===e);return(0,fe.jsxs)(Kx,{children:[(0,fe.jsx)(Hx,{children:(0,fe.jsx)(ie.GQ,{icon:"graduation-cap",height:Jx,iconColor:i?"secondary":"neutral",size:Yx,circleColor:i?"secondary":"neutral",name:i?`Account-${t}-Learn`:`Account-${t}-NoLearn`})}),(0,fe.jsx)(Hx,{children:(0,fe.jsx)(ie.GQ,{icon:"pencil-alt",height:Jx,iconColor:a?"tertiary":"neutral",size:Yx,circleColor:a?"tertiary":"neutral",name:a?`Account-${t}-Comply`:`Account-${t}-NoComply`})}),(0,fe.jsx)(Hx,{children:(0,fe.jsx)(ie.GQ,{icon:"chart-line",height:Jx,iconColor:l?"quaternary":"neutral",size:Yx,circleColor:l?"quaternary":"neutral",name:l?`Account-${t}-Data`:`Account-${t}-NoData`})})]})};function nT(e){let{setGridApi:n,fetchRows:t,onEdit:a,onLogoEdit:i,onBannerEdit:l}=e;const r=qr({autoFit:!0}),o={pagination:!0,paginationPageSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,cellStyle:{height:"auto"}},columnDefs:[{headerName:"Name",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],newRowsAction:"keep"},field:"name",resizable:!0},{headerName:"Type",field:"type",filter:"agSetColumnFilter",filterParams:{newRowsAction:"keep",values:Object.values(gn.CO)},resizable:!0},{headerName:"",cellRenderer:"permissions",resizable:!1,filter:!1,sortable:!1},{headerName:"",cellRenderer:"action",filter:!1,sortable:!1,resizable:!1}],rowStyle:{width:"100%",display:"flex",alignItems:"center"},rowHeight:58},s={permissions:eT,action:e=>(0,fe.jsx)(Xx,{...e,onEdit:a,onLogoEdit:i,onBannerEdit:l})};return(0,fe.jsx)(Pg,{...o,cacheBlockSize:o.paginationPageSize,onFirstDataRendered:r.onFirstDataRendered,onFilterChanged:r.onFilterChanged,onSortChanged:r.onSortChanged,onColumnVisible:r.onSaveGridColumnState,onColumnPinned:r.onSaveGridColumnState,onColumnResized:r.onSaveGridColumnState,onColumnMoved:r.onSaveGridColumnState,onColumnRowGroupChanged:r.onSaveGridColumnState,onColumnValueChanged:r.onSaveGridColumnState,onColumnPivotChanged:r.onSaveGridColumnState,components:s,onGridReady:e=>{r.onGridReady(e),n({api:e.api}),e.api.setGridOption("serverSideDatasource",{async getRows(e){let{request:n,fail:a,success:i}=e;try{const{startRow:e,sortModel:a,filterModel:l}=n,r=jn(l),{rows:s,totalRows:d}=await t({offset:e||0,limit:o.paginationPageSize,sort:wn(a),filters:r});return i({rowCount:d,rowData:s}),{rows:s,totalRows:d}}catch(e){throw a(),e}}})}})}var tT=t(47396),aT=t.n(tT);const iT=e=>e.replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f"),lT={limit:25};var rT=t(94823),oT=t(30349),sT=t(35963),dT=t(53380),cT=t(49505),uT=t(96597);const pT=e=>{let{id:n,name:t}=e;return{value:n,label:t}},mT=e=>{let{multiValueColor:n="tertiary",name:t="accountIds",value:a,onChange:i,error:l,isSubmitting:r,defaultOptions:o,disabled:s}=e;const d=(0,C.m)();return(0,fe.jsx)(ie.KF,{id:"Accounts__MultiSelect",name:t,onChange:i,isDisabled:r||s,error:l,multiValueColor:n,defaultOptions:!Array.isArray(o)||o,value:a,placeholder:"Start typing to search for an account",loadOptions:(0,g.useMemo)(()=>(e=>async n=>{const{data:{getAccounts:t}}=await e.query({query:ju,variables:{filters:{text:[{filterType:"text",type:"contains",filter:n,field:"name"}]}}}),{totalRows:a}=t;return{options:t.rows?t.rows.map(pT):[],total:a}})(d),[d])})},fT=le.default.div`
  display: flex;
  position: relative;
  padding-bottom: ${e=>e.theme.geometry.md.spacing};
`,yT=(0,le.default)(ie.In)`
  position: absolute;
  top: -15px;
  right: 5px;
  cursor: pointer;
`,gT=le.default.div`
  display: flex;
  flex-direction: column;
  padding: ${e=>e.theme.geometry.md.spacing};
`,hT=le.default.div`
  display: block;
  height: 350px;
  padding-bottom: ${e=>e.theme.geometry.md.spacing};
`,xT=e=>{let{onSave:n,source:t}=e;const[a,i]=(0,g.useState)(!1),[l,r]=(0,g.useState)("");return(0,g.useEffect)(()=>{r(t)},[t]),(0,fe.jsxs)(fT,{children:[(0,fe.jsx)(yT,{icon:"pencil-alt",onClick:()=>i(!0)}),(0,fe.jsx)(ie.To,{source:l}),a&&(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(ie.aF,{size:"lg",show:!0,onDismiss:()=>i(!1),height:"auto",maxHeight:"80vh",children:(0,fe.jsxs)(gT,{children:[(0,fe.jsx)(ie.fI,{container:!0,item:!0,distribution:"center",itemAlign:"center",children:(0,fe.jsx)(ie.DZ,{children:"Edit Content"})}),(0,fe.jsx)(hT,{children:(0,fe.jsx)(ie.j4,{sourceContent:l,onMarkdownChange:r})}),(0,fe.jsx)(ie.$n,{color:"success",onClick:()=>{i(!1),n(iT(l))},children:"Save Content"})]})})})]})},TT=S.J1`
  query GetAccountSectors {
    getAccountSectors {
      value: id
      label: name
    }
  }
`,bT=e=>{let{onChange:n,isSubmitting:t,disabled:a,value:i,name:l="SectorSelector",...r}=e;const{loading:o,error:s,data:d}=(0,x.IT)(TT,{});if(s)return(0,fe.jsx)(ie.Kw,{error:s,children:e=>{let{icon:n}=e;return(0,fe.jsx)(ie.Wz,{name:"SectorSelector__error",icon:n,title:"Sector selector failed to load"})}});const c=d?.getAccountSectors?[...d.getAccountSectors]:[];return(0,fe.jsx)(ie.l6,{...r,value:Array.isArray(i)?i.map(e=>c.find(n=>n.value===e)):i,name:l,isLoading:o,isDisabled:t||a,onChange:n,options:c,defaultOptions:c})},vT=S.J1`
  query GetSubscribedDashboards($accountId: ID!) {
    getSubscribedDashboards(accountId: $accountId) {
      id
      name
      description
      area
      provider
      providerDashboardId
      thumbnailUrl
      sheets {
        title
        filters {
          type
          label
          defaultValue
          relativeDateDefault
          isHidden
          dataset {
            datasetName
            columnName
          }
        }
        tiles {
          type
          title
          colSpan
          rowSpan
        }
        units
        withVat
        withCarbonComponents
      }
    }
  }
`,CT=S.J1`
  query GetAllDashboards {
    getAllDashboards {
      id
      name
      description
      area
      provider
      providerDashboardId
      sheets {
        title
        filters {
          type
          label
          defaultValue
          relativeDateDefault
          isHidden
          dataset {
            datasetName
            columnName
          }
        }
        tiles {
          type
          title
          colSpan
          rowSpan
        }
        units
        withVat
        withCarbonComponents
      }
    }
  }
`,kT=S.J1`
  query GetDashboard($id: ID!) {
    getDashboard(id: $id) {
      id
      name
      description
      area
      provider
      providerDashboardId
      thumbnailType
      sheets {
        title
        filters {
          type
          label
          defaultValue
          relativeDateDefault
          isHidden
          dataset {
            datasetName
            columnName
          }
        }
        tiles {
          type
          title
          colSpan
          rowSpan
        }
        units
        withVat
        withCarbonComponents
      }
    }
  }
`,ST=S.J1`
  mutation CreateDashboard(
    $id: ID!
    $name: String!
    $description: String!
    $provider: DashboardProvider!
    $area: DashboardArea!
    $providerId: String!
    $thumbnail: ThumbnailType
    $sheets: [DashboardSheetInput!]
  ) {
    createDashboard(
      input: {
        id: $id
        name: $name
        description: $description
        area: $area
        provider: $provider
        providerDashboardId: $providerId
        thumbnailType: $thumbnail
        sheets: $sheets
      }
    )
  }
`,NT=S.J1`
  mutation UpdateDashboard(
    $id: ID!
    $name: String!
    $description: String!
    $provider: DashboardProvider!
    $area: DashboardArea!
    $providerId: String!
    $thumbnail: ThumbnailType
    $sheets: [DashboardSheetInput!]
  ) {
    updateDashboard(
      input: {
        id: $id
        name: $name
        description: $description
        area: $area
        provider: $provider
        providerDashboardId: $providerId
        thumbnailType: $thumbnail
        sheets: $sheets
      }
    )
  }
`,AT=e=>({value:e.id,label:e.name}),RT=e=>({value:e.providerDashboardId,label:e.name}),DT=e=>{let{accountId:n,area:t,value:a,onChange:i,optionMapper:l=AT,error:r,name:o="dashboardId",loading:s,label:d="Dashboard",placeholder:c,disabled:u,emptyOptionLabel:p,shouldGetAllDashboards:m=!1}=e;const{data:y,loading:h,error:T}=(0,x.IT)(vT,{variables:{accountId:n},fetchPolicy:"network-only",skip:m}),{data:b,loading:v,error:C}=(0,x.IT)(CT,{variables:{accountId:n},fetchPolicy:"network-only",skip:!m}),k=m?v:h,S=m?C:T,N=(0,g.useMemo)(()=>m?b?.getAllDashboards||[]:y?.getSubscribedDashboards||[],[b?.getAllDashboards,y?.getSubscribedDashboards,m]),A=(0,g.useMemo)(()=>{const e=(0,hn.sortBy)(N.filter(e=>!t||e.area===t).map(l),e=>e?.label.trim().toLowerCase());return p&&e.unshift({value:"",label:p}),e},[N,t,p,l]),R=S?.message||r||"";return(0,fe.jsx)(f.Select,{name:o,label:d,isLoading:k||s,disabled:k||s||u,onChange:i,placeholder:c,value:a,error:Boolean(R),helperText:R,options:A})};function LT(e){let{name:n,onChange:t,value:a}=e;const{data:i}=(0,x.IT)(J),l=(0,g.useMemo)(()=>i?.getReportingYears?i.getReportingYears.map(e=>({value:e.id,label:e.name})):[],[i?.getReportingYears]),r=(0,g.useCallback)(e=>{t(e.target.value)},[t]);return(0,fe.jsx)(ie.l6,{placeholder:"Please select the reporting year type",name:n,value:a,options:l,onChange:r})}const IT=JSON.parse('[{"label":"Consignment Note (EA)","value":"Consignment Note (EA)","category":"Consignment Note (EA) ID","libraries":["WASTE"]},{"label":"Consignment Note (SEPA)","value":"Consignment Note (SEPA)","category":"Consignment Note (SEPA) ID","libraries":["WASTE"]},{"label":"Evidence","value":"Evidence Reference","category":"Evidence Reference ID","libraries":["WASTE"]},{"label":"Invoice","value":"Invoice Number","category":"Invoice Number","libraries":["WASTE","TRANSPORT"]},{"label":"Other Reference","value":"Other Reference","category":"Other Reference ID","libraries":["WASTE","ELECTRICITY","GAS","WATER","TRANSPORT","GOVERNANCE"]},{"label":"Sales Order","value":"Sales Order","category":"Sales Order ID","libraries":["WASTE"]},{"label":"Waste Carrier Licence","value":"Waste Carrier Licence","category":"Waste Carrier Licence ID","libraries":["WASTE"]},{"label":"Waste Permit","value":"Waste Permit","category":"Waste Permit ID","libraries":["WASTE"]},{"label":"Waste Transfer Note","value":"Waste Transfer Note","category":"Waste Transfer Note ID","libraries":["WASTE"]},{"label":"Waste Contractor Report","value":"Waste Contractor Report","category":"Waste Contractor Report","libraries":["WASTE"]},{"label":"Travel Receipt","value":"Travel Receipt","category":"Reference","libraries":["TRANSPORT"]},{"label":"Audit Report","value":"Audit Report","category":"Reference","libraries":["GOVERNANCE"]},{"label":"Aspects and Impacts","value":"Aspects and Impacts","category":"Reference","libraries":["GOVERNANCE"]},{"label":"Certificate","value":"Certificate","category":"Reference","libraries":["GOVERNANCE"]},{"label":"Communications","value":"Communications","category":"Reference","libraries":["GOVERNANCE"]},{"label":"Legislation","value":"Legislation","category":"Reference","libraries":["LEGISLATION","GOVERNANCE"]},{"label":"Management Systems","value":"Management Systems","category":"Reference","libraries":["GOVERNANCE"]},{"label":"Policies","value":"Policies","category":"Reference","libraries":["GOVERNANCE"]},{"label":"Reporting Frameworks","value":"Reporting Frameworks","category":"Reference","libraries":["GOVERNANCE"]},{"label":"Standards","value":"Standards","category":"Reference","libraries":["GOVERNANCE"]},{"label":"Training","value":"Training","category":"Reference","libraries":["GOVERNANCE"]},{"label":"Bill","value":"Bill","category":"Reference","libraries":["ELECTRICITY","GAS","WATER"]},{"label":"Licences and Permits","value":"Licences and Permits","category":"Reference","libraries":["WATER","TRANSPORT","GOVERNANCE"]},{"label":"Meter Readings","value":"Meter Readings","category":"Reference","libraries":["ELECTRICITY","GAS","WATER"]},{"label":"Supplier Agreement","value":"Supplier Agreement","category":"Reference","libraries":["ELECTRICITY","GAS","WATER"]},{"label":"LCA Reports","value":"LCA Reports","category":"Reference","libraries":["GOVERNANCE"]}]'),jT=(0,le.default)(p.Link)`
  text-decoration: underline;
`,wT=(0,le.default)(ie.JU)`
  margin: 0 ${e=>e.theme.geometry.xs.spacing};
`,OT=le.default.div`
  height: 24px;
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,ET=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,_T=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,FT=(0,le.default)(ie.EY)`
  margin-top: ${e=>e.theme.fonts.xs.size};
  margin-bottom: ${e=>e.theme.fonts.xs.size};
  padding-left: ${e=>e.theme.fonts.xs.size};
  padding-right: ${e=>e.theme.fonts.xs.size};
`,PT=(0,le.default)(rT.A)`
  border-radius: 7.5px !important;
  margin-top: ${e=>e.theme.fonts.xs.size};
`,BT={comply:"governance",data:"data"},UT=function(e){const n=(0,dc.A)(),[t,a]=(0,g.useState)(()=>Boolean(e.n3rgyConsentDocumentLink));return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ET,{size:"lg",children:e.heading}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_T,{item:!0,children:[(0,fe.jsx)(OT,{children:(0,fe.jsx)(wT,{children:"Company Name"})}),(0,fe.jsx)(ie.ks,{disabled:e.isSubmitted,onChange:e.handleChange,name:"businessName",value:e.businessName.text,error:e.businessName.error,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_T,{item:!0,children:[(0,fe.jsx)(OT,{children:(0,fe.jsx)(wT,{children:"Sector"})}),(0,fe.jsx)(bT,{name:"Sector__Select",isSubmitting:e.isSubmitted,value:e.selectedSector,onChange:n=>{e.onSectorChange(n.target.select)}})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_T,{item:!0,children:[(0,fe.jsx)(OT,{children:(0,fe.jsx)(wT,{children:"Child Accounts"})}),(0,fe.jsx)(mT,{name:"Child-Accounts__MultiSelect",multiValueColor:"tertiary",onChange:n=>{e.onChildAccountsChange(n.target.select)},isSubmitting:e.isSubmitted,value:e.selectedChildAccounts})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_T,{container:!0,item:!0,children:[Object.keys(BT).map(t=>{const a=e.accessControls[t],i=`pages.configuration.account.sections.${BT[t]}`;return(0,fe.jsxs)(PT,{children:[(0,fe.jsx)(oT.A,{expandIcon:(0,fe.jsx)(ie.In,{icon:"chevron-down"}),"aria-controls":"panel1a-content",children:(0,fe.jsx)(de.A,{id:`${i}.name`})}),(0,fe.jsx)(sT.A,{children:(0,fe.jsx)(dT.A,{"aria-label":"position",row:!0,children:Object.keys(a).map(l=>{if("__typename"===l)return null;const r=hn.isBoolean(a[l])?a[l]:void 0;return(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{id:`update-account-access-${l}`,name:`${t}.${l}`,checked:Boolean(r),onChange:e.onCheckboxClick}),label:n.formatMessage({id:`${i}.${l}`}),labelPlacement:"top"},l)})})})]},t)}),(0,fe.jsxs)(PT,{children:[(0,fe.jsx)(oT.A,{expandIcon:(0,fe.jsx)(ie.In,{icon:"chevron-down"}),"aria-controls":"panel1a-content",children:(0,fe.jsx)(de.A,{id:"pages.configuration.account.sections.other.name"})}),(0,fe.jsx)(sT.A,{children:(0,fe.jsxs)(dT.A,{"aria-label":"position",row:!0,children:[(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{name:"showChatBot",checked:hn.isBoolean(e.showChatBot)?e.showChatBot:void 0,onChange:e.onShowChatBotChange}),label:n.formatMessage({id:"pages.configuration.account.sections.other.chatBot"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{name:"dataTracker",checked:hn.isBoolean(e.accessControls.dataTracker)?e.accessControls.dataTracker:void 0,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.dataTracker"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{name:"learn",checked:e.accessControls.learn,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.engage"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{"data-cy":"AccountDetails_accessControls_flows",name:"flows",checked:hn.isBoolean(e.accessControls.flows)?e.accessControls.flows:void 0,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.flows"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{name:"intelligence",checked:e.accessControls.intelligence,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.intelligence"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{name:"projects",checked:e.accessControls.projects,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.projects"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{"data-cy":"AccountDetails_accessControls_surveys",name:"surveys",checked:hn.isBoolean(e.accessControls.surveys)?e.accessControls.surveys:void 0,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.surveys"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{name:"tasks",checked:e.accessControls.tasks,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.tasks"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{name:"dromoUpload",checked:hn.isBoolean(e.accessControls.dromoUpload)?e.accessControls.dromoUpload:void 0,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.dromoUpload"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{name:"v2Design",checked:hn.isBoolean(e.accessControls.v2Design)?e.accessControls.v2Design:void 0,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.v2Design"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{name:"organisation",checked:hn.isBoolean(e.accessControls.organisation)?e.accessControls.organisation:void 0,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.organisation"}),labelPlacement:"top"}),(0,fe.jsx)(cT.A,{value:"top",control:(0,fe.jsx)(uT.A,{name:"dataOverwriting",checked:hn.isBoolean(e.accessControls.dataOverwriting)?e.accessControls.dataOverwriting:void 0,onChange:e.onCheckboxClick}),label:n.formatMessage({id:"pages.configuration.account.sections.other.dataOverwriting"}),labelPlacement:"top"})]})})]},"other"),(0,fe.jsxs)(PT,{children:[(0,fe.jsx)(oT.A,{expandIcon:(0,fe.jsx)(ie.In,{icon:"chevron-down"}),"aria-controls":"panel1a-content",children:(0,fe.jsx)(de.A,{id:"Restricted Document Types"})}),(0,fe.jsx)(sT.A,{children:(0,fe.jsx)(dT.A,{"aria-label":"position",row:!0,children:IT.map(n=>(0,fe.jsx)(cT.A,{value:n.value,control:(0,fe.jsx)(uT.A,{name:n.value,checked:!e.unrestrictedDocuments.includes(n.value),onChange:e.onRestrictedDocumentChange}),label:n.value,labelPlacement:"top"},n.value))})})]},"documentRestrictions"),(0,fe.jsxs)(PT,{children:[(0,fe.jsx)(oT.A,{expandIcon:(0,fe.jsx)(ie.In,{icon:"chevron-down"}),"aria-controls":"panel1a-content",children:(0,fe.jsx)(de.A,{id:"Features"})}),(0,fe.jsxs)(sT.A,{children:[(0,fe.jsx)(dT.A,{"aria-label":"position",row:!0}),(0,fe.jsxs)(dT.A,{"aria-label":"position",row:!0,children:[(0,fe.jsx)(cT.A,{value:"featureToggles.enableGlobalEmissionFactors",control:(0,fe.jsx)(uT.A,{name:"featureToggles.enableGlobalEmissionFactors",checked:Boolean(e.featureToggles?.enableGlobalEmissionFactors),onChange:e.onCheckboxClick}),label:"Enable scope 3 global emission factors",labelPlacement:"top"},"enableGlobalEmissionFactors"),(0,fe.jsx)(cT.A,{value:"featureToggles.dataAnalysisChatbot",control:(0,fe.jsx)(uT.A,{name:"featureToggles.dataAnalysisChatbot",checked:Boolean(e.featureToggles?.dataAnalysisChatbot),onChange:e.onCheckboxClick}),label:"Data Analysis Chatbot",labelPlacement:"top"},"dataAnalysisChatbot")]})]})]},"featureToggles")]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_T,{item:!0,children:[(0,fe.jsx)(OT,{children:(0,fe.jsx)(wT,{children:"Reporting Year:"})}),(0,fe.jsx)(LT,{name:"reportingYearId",onChange:e.onReportingYearChange,value:e.reportingYearId}),(0,fe.jsxs)(FT,{children:["Please select the reporting year relevant for your account. Your reporting year will affect the conversion factors used for calculating your carbon emissions as explained"," ",(0,fe.jsx)(jT,{to:"/configuration/carbonconversionfactors/location",children:"here"}),". After configuring your account here you later wish to change you reporting year you will need to contact your Customer Support Manager, as Rio will not re-calculate carbon emissions."]})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_T,{item:!0,children:[(0,fe.jsxs)(OT,{children:[(0,fe.jsx)(wT,{children:"Enable AMR Integration"}),(0,fe.jsx)(Vx.A,{title:"This is used to automate data from your smart meter into Rio.",children:(0,fe.jsx)(f.Icons.InfoOutlined,{color:"info"})})]}),(0,fe.jsx)(ie.Sc,{onChange:()=>{a(!t),e.handleChange({target:{name:"n3rgyConsentDocumentLink",value:""}}),e.handleChange({target:{name:"n3rgyUploadGranularity",value:""}}),e.handleChange({target:{name:"n3rgyUploadBatchingEnabled",value:!1}}),e.handleChange({target:{name:"n3rgyTariff",value:""}})},checked:t})]})}),t&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_T,{item:!0,children:[(0,fe.jsx)(OT,{children:(0,fe.jsx)(wT,{children:"Consent document link"})}),(0,fe.jsx)(ie.ks,{value:e.n3rgyConsentDocumentLink,name:"n3rgyConsentDocumentLink",onChange:e.handleChange})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_T,{item:!0,children:[(0,fe.jsx)(OT,{children:(0,fe.jsx)(wT,{children:"Granularity"})}),(0,fe.jsx)(ie.l6,{options:[{value:"day",label:"Daily"},{value:"halfhour",label:"Half-hourly"}],value:e.n3rgyUploadGranularity,onChange:n=>{e.handleChange({target:{name:"n3rgyUploadGranularity",value:n.target.value}})}})]})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsxs)(_T,{item:!0,children:[(0,fe.jsxs)(OT,{children:[(0,fe.jsx)(wT,{children:"Enable batching"}),(0,fe.jsx)(Vx.A,{title:"By enabling this, the monthly data will be batched into a single import for all meters instead of one import per meter.",children:(0,fe.jsx)(f.Icons.InfoOutlined,{color:"info"})})]}),(0,fe.jsx)(ie.Sc,{onChange:n=>{e.handleChange({target:{name:"n3rgyUploadBatchingEnabled}",value:n.target.checked}})},checked:e.n3rgyUploadBatchingEnabled})]})}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsx)(_T,{item:!0,children:(0,fe.jsx)(OT,{children:(0,fe.jsx)(wT,{children:"Tariff"})})}),(0,fe.jsx)(_T,{item:!0,children:(0,fe.jsx)(ie.ks,{value:e.n3rgyTariff,name:"n3rgyTariff",onChange:e.handleChange})})]})]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_T,{item:!0,children:[(0,fe.jsx)(OT,{children:(0,fe.jsx)(wT,{children:"Notes"})}),(0,fe.jsx)(xT,{source:e.notes||"Add Notes here.",onSave:e.onNotesChange})]})}),e.accountId&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(_T,{item:!0,children:(0,fe.jsx)(DT,{shouldGetAllDashboards:!0,accountId:e.accountId,value:e.customImpactDashboardId||"",label:"Custom Impact Dashboard",emptyOptionLabel:"None (clear selection)",onChange:n=>e.onCustomImpactDashboardChange(n.value||null)})})})]})},$T="ENGAGE";function MT(e){return""===e?"Field cannot be empty":null}const VT=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,GT=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`;function zT(e){let{allAccounts:n,onDismiss:t}=e;const[a,i]=(0,g.useState)({hasError:!1,values:{businessName:{text:"",error:""},childAccounts:[],notes:"",sector:{id:null}},accessControls:{learn:!1,intelligence:!1,tasks:!0,projects:!1,surveys:!1,dromoUpload:!1,dataOverwriting:!1,v2Design:!0,comply:{legislation:!1,tagLevelLegislation:!1,policies:!1,systems:!1,targets:!1,frameworks:!1,agreements:!1},data:{waste:!1,electricity:!1,gas:!1,water:!1,materials:!1,fuel:!1,transport:!1,refrigerants:!1,heatSteam:!1,buildingEnergyRatings:!1,hotelStays:!1,investment:!1,scope3ActivityBasedMaterials:!1,scope3SpendBasedMaterials:!1,coreEstate:!1,oilAndGas:!1,insite:!1}},featureToggles:{enableGlobalEmissionFactors:!1,dataAnalysisChatbot:!1},reportingYearId:"0f7e7a35-88a3-11eb-9118-0ad87669f1a4",showChatBot:!1,unrestrictedDocuments:[]}),[l,{loading:r}]=function(e){const{showNotification:n}=tn();return(0,ln.n)($,{onCompleted:t=>{let{createAccount:a}=t;n(`The account ${a.name} has been created!`,"success"),e()},onError:()=>{n("Something went wrong. If the problem persists, contact support.","danger")},update:(e,n)=>{const{getAccounts:t}=e.readQuery({query:z,variables:lT}),a=n.data?.createAccount,i={...a,reportingYear:n.data?.setAccountReportingYear},l=i.id;e.writeQuery({query:z,variables:lT,data:{getAccounts:{...t,accounts:t.rows.concat([{id:i.id,name:i.name,accessControls:i.accessControls,featureToggles:i.featureToggles,type:i.type,children:i.children}])}}}),e.writeQuery({query:G,variables:{id:l},data:{getAccountInfo:i}})}})}(t);return(0,fe.jsx)(VT,{children:(0,fe.jsxs)("form",{name:"create-account__form",onSubmit:e=>{(async e=>{e.preventDefault();const{values:n,accessControls:t,featureToggles:r,showChatBot:o,reportingYearId:s,unrestrictedDocuments:d}=a,c=MT(n.businessName.text);if(c)return i(e=>({...e,values:{...e.values,businessName:{...n.businessName,error:c}}}));const u=(0,Wa.A)();await l({variables:{id:u,accessControls:t,featureToggles:r,reportingYearId:s,showChatBot:o,name:n.businessName.text,type:"ENTERPRISE",notes:iT(n.notes),children:n.childAccounts.map(e=>{let{value:n}=e;return n}),sectorId:n.sector?.id,unrestrictedDocuments:d}})})(e)},children:[(0,fe.jsx)(UT,{heading:"Create Account",handleChange:e=>{e.persist(),i(n=>({...n,values:{...a.values,[e.target.name]:{text:e.target.value,error:null}}}))},businessName:a.values.businessName,isSubmitted:r,onCheckboxClick:e=>{const n=e.target.name;n.startsWith("featureToggles.")?i(t=>({...t,featureToggles:aT()(n.replace("featureToggles.",""),e.target.checked,t.featureToggles)})):i(t=>({...t,accessControls:aT()(n,e.target.checked,t.accessControls)}))},accessControls:a.accessControls,featureToggles:a.featureToggles,allAccounts:n,selectedChildAccounts:a.values.childAccounts,selectedSector:a.values.sector?.id,notes:a.values.notes,showChatBot:a.showChatBot,unrestrictedDocuments:a.unrestrictedDocuments,onRestrictedDocumentChange:e=>{const n=e.target.value,t=[...a.unrestrictedDocuments];if(t.includes(n)){const e=t.indexOf(n);t.splice(e,1)}else t.push(n);i(e=>({...e,unrestrictedDocuments:t}))},onShowChatBotChange:()=>{i(e=>({...e,showChatBot:!a.showChatBot}))},onNotesChange:e=>i(n=>({...n,values:{...n.values,notes:e}})),onChildAccountsChange:e=>i(n=>({...n,values:{...n.values,childAccounts:e}})),onSectorChange:e=>i(n=>({...n,values:{...n.values,sector:{id:e.value}}})),reportingYearId:a.reportingYearId,onReportingYearChange:e=>i(n=>({...n,reportingYearId:e}))}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(GT,{item:!0,children:(0,fe.jsx)(ie.$n,{name:"create-account__button--create",color:"success",submit:!0,disabled:!a.values.businessName.text||r,children:"Create Account"})})})]})})}const WT=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,qT=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`;function JT(e){let{account:n,allAccounts:t,accessControls:a,featureToggles:i,businessName:l,notes:r,showChatBot:o,reportingYearId:s,dismiss:d}=e;const[c,{loading:u}]=function(e){const{showNotification:n}=tn();return(0,ln.n)(M,{onCompleted:t=>{let{updateAccount:a}=t;n(`The account ${a.name} has been updated!`,"success"),e()},onError:()=>{n("Something went wrong. If the problem persists, contact support.","danger")},update:(e,n)=>{const{getAccounts:t}=e.readQuery({query:z,variables:lT}),a=n.data?.updateAccount,i={...a,reportingYear:n.data?.setAccountReportingYear},l=i?.id;e.writeQuery({query:z,variables:lT,data:{getAccounts:{...t,accounts:t.rows.map(e=>e.id===l?i:e)}}}),e.writeQuery({query:G,variables:{id:l},data:{getAccountInfo:i}})}})}(d),p=function(e){return e.children.filter(Boolean).map(e=>({label:e?.name,value:e?.id}))}(n),[m,f]=(0,g.useState)({values:{showChatBot:o,reportingYearId:s,childAccounts:p,businessName:{text:l,error:""},notes:r||"",n3rgyConsentDocumentLink:{text:n?.n3rgyConsentDocumentLink||"",error:""},n3rgyUploadGranularity:{text:n?.n3rgyUploadGranularity||"",error:""},n3rgyUploadBatchingEnabled:{text:n?.n3rgyUploadBatchingEnabled||!1,error:""},n3rgyTariff:{text:n?.n3rgyTariff||"",error:""},sector:{id:n?.sector?.id||""},unrestrictedDocuments:n.unrestrictedDocuments||[],customImpactDashboardId:n?.customImpactDashboard?.id||null},accessControls:{learn:a.learn,intelligence:a.intelligence,comply:a.comply,data:a.data,tasks:a.tasks,projects:a.projects,surveys:a.surveys,flows:a.flows,dataTracker:a.dataTracker,dromoUpload:a.dromoUpload,dataOverwriting:a.dataOverwriting,v2Design:a.v2Design,organisation:a.organisation},featureToggles:{enableGlobalEmissionFactors:Boolean(i?.enableGlobalEmissionFactors),dataAnalysisChatbot:Boolean(i?.dataAnalysisChatbot)}});return(0,fe.jsx)(WT,{children:(0,fe.jsxs)("form",{name:"update-account__form",onSubmit:e=>{(async e=>{e.preventDefault();const{values:t,accessControls:a,featureToggles:i}=m,l=MT(t.businessName.text);if(l)return f(e=>({...e,values:{...t,businessName:{...t.businessName,error:l}}}));await c({variables:{accessControls:a,id:n.id,name:t.businessName.text,type:n.type,notes:iT(t.notes),showChatBot:t.showChatBot,children:t.childAccounts.map(e=>{let{value:n}=e;return n}),reportingYearId:t.reportingYearId,sectorId:t.sector.id,n3rgyConsentDocumentLink:t.n3rgyConsentDocumentLink.text,n3rgyUploadGranularity:t.n3rgyUploadGranularity.text,n3rgyUploadBatchingEnabled:t.n3rgyUploadBatchingEnabled.text,n3rgyTariff:t.n3rgyTariff.text,featureToggles:i,unrestrictedDocuments:t.unrestrictedDocuments,customImpactDashboardId:t.customImpactDashboardId}}),f(e=>({...e,isSubmitted:!0}))})(e)},children:[(0,fe.jsx)(UT,{heading:"Update Account",handleChange:e=>{e.persist?.(),f(n=>({...n,values:{...n.values,[e.target.name]:{text:e.target.value,error:null}}}))},businessName:m.values.businessName,isSubmitted:u,onCheckboxClick:e=>{const n=e.target.name;n.startsWith("featureToggles.")?f(t=>({...t,featureToggles:aT()(n.replace("featureToggles.",""),e.target.checked,t.featureToggles)})):f(t=>({...t,accessControls:aT()(n,e.target.checked,t.accessControls)}))},accessControls:m.accessControls,allAccounts:t,accountId:n.id,selectedChildAccounts:m.values.childAccounts,selectedSector:m.values.sector.id,notes:m.values.notes,n3rgyConsentDocumentLink:m.values.n3rgyConsentDocumentLink.text,n3rgyUploadGranularity:m.values.n3rgyUploadGranularity.text,n3rgyUploadBatchingEnabled:m.values.n3rgyUploadBatchingEnabled.text,n3rgyTariff:m.values.n3rgyTariff.text,featureToggles:m.featureToggles,showChatBot:m.values.showChatBot,reportingYearId:m.values.reportingYearId,unrestrictedDocuments:m.values.unrestrictedDocuments,onRestrictedDocumentChange:e=>{const n=e.target.value,t=[...m.values.unrestrictedDocuments];if(t.includes(n)){const e=t.indexOf(n);t.splice(e,1)}else t.push(n);f(e=>({...e,values:{...e.values,unrestrictedDocuments:t}}))},onShowChatBotChange:()=>{f(e=>({...e,values:{...m.values,showChatBot:!m.values.showChatBot}}))},onNotesChange:e=>f(n=>({...n,values:{...n.values,notes:e}})),onSectorChange:e=>f(n=>({...n,values:{...n.values,sector:{id:e.value}}})),onChildAccountsChange:e=>f(n=>({...n,values:{...n.values,childAccounts:e}})),onReportingYearChange:e=>{f(n=>({...n,values:{...n.values,reportingYearId:e}}))},customImpactDashboardId:m.values.customImpactDashboardId,onCustomImpactDashboardChange:e=>f(n=>({...n,values:{...n.values,customImpactDashboardId:e}}))}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsx)(qT,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{disabled:u,name:"update-account__button--cancel",color:"info",onClick:d,children:"Cancel"})}),(0,fe.jsx)(qT,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{name:"update-account__button--save",color:"success",submit:!0,disabled:u||!m.values.businessName.text,children:"Save"})})]})]})})}const YT=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,HT=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,KT=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`;class QT extends g.Component{constructor(e){super(e),this.hideNotification=()=>this.setState({notification:{...this.state.notification,show:!1}}),this.onUploadError=()=>{this.setState({notification:{show:!0,message:"Something went wrong. If the problem persists, contact support.",color:"danger"},hasError:!0,isSuccess:!1,isSubmitted:!1})},this.onLogoSave=(e,n)=>{n({variables:{fileName:`${this.props.accountData.id}.png`,data:e,contentType:"image/png",accountId:this.props.accountData.id,accountName:this.props.accountData.name,accountType:this.props.accountData.type,accessControls:this.props.accountData.accessControls}}),this.setState({isSubmitted:!0})},this.state={hasError:!1,isSuccess:!1,notification:{show:!1,message:"",color:"success"},isSubmitted:!1}}render(){return(0,fe.jsxs)(YT,{name:"upload-account",children:[this.state.notification.show&&(0,fe.jsx)(ie.Eg,{name:"upload-account__notification",show:!0,color:this.state.notification.color,onClose:this.hideNotification,children:this.state.notification.message}),(0,fe.jsx)(me.s,{mutation:V,onCompleted:()=>this.props.onSuccess("The logo has been uploaded!","success"),onError:this.onUploadError,children:e=>(0,fe.jsxs)("div",{children:[(0,fe.jsx)(HT,{name:"upload-account__heading",size:"lg",children:"Add/Edit Logo"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(KT,{item:!0,container:!0,children:(0,fe.jsx)(ie.nE,{width:141,height:69,border:50,defaultImage:this.props.accountData.logoPath?`${this.props.accountData.logoPath}?v=${(0,Wa.A)()}`:"",onSave:n=>this.onLogoSave(n,e),acceptedFormats:["image/png","image/jpeg","image/svg+xml","image/gif"],outputFormat:{format:"image/png",width:141,height:69}})})})]})})]})}}const ZT=QT;var XT=t(54717);const eb=e=>{let{gridApi:n}=e;const[t,a]=(0,g.useState)(""),i=(0,XT.useDebouncedCallback)(()=>{n?.api?.setColumnFilterModel("name",{filterType:"text",type:"contains",filter:t}),n?.api?.onFilterChanged()},500,{trailing:!0});return(0,fe.jsx)(ie.vj,{name:"ConfigurationAccountsContainer__Controls__Search",value:t,onChange:e=>{a(e.target.value),i()},hideButton:!0})},nb=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,tb="CREATE",ab="UPDATE",ib="LOGO",lb="BANNER",rb=()=>{const e=(0,C.m)(),[n,t]=(0,g.useState)(),{data:a,loading:i,error:l,refetch:r,networkStatus:o}=(0,x.IT)(z,{variables:lT}),[s,d]=(0,g.useState)({type:null,accountId:null}),{data:c,loading:u,error:p}=(m=s?.accountId,f=!s?.accountId,(0,x.IT)(G,{variables:{id:m},skip:f||!m,fetchPolicy:"cache-and-network"}));var m,f;const{showNotification:y}=tn(),h=a?.getAccounts?.rows||[],T=e=>n=>d({type:e,accountId:n}),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};T(null)(null),e.message&&y(e.message,e.color),n()},v=async n=>{const{data:{getAccounts:{rows:t,totalRows:a}}}=await e.query({query:z,variables:n,fetchPolicy:"network-only"});return{rows:t,totalRows:a}};return(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{name:"ConfigurationAccountsContainer__Controls",icon:"briefcase",iconColor:"primary",title:"Accounts",children:[(0,fe.jsx)(ie.fv,{span:6,container:!0,item:!0,children:(0,fe.jsx)(eb,{gridApi:n})}),(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(nb,{name:"ConfigurationAccountsContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>T(tb)(),children:"+ Add Account"})}),(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(Mx,{fetchRows:v,gridApi:n?.api,defaultExportFileName:"Account Exports",label:"Export Data"})})]}),(i&&3!==o||4===o)&&(0,fe.jsx)(Rc,{name:"ConfigurationAccountsContainer__Loading"}),l?(0,fe.jsx)($c,{error:l,retry:v}):(0,fe.jsx)(nT,{fetchRows:v,setGridApi:t,onEdit:T(ab),onLogoEdit:T(ib),onBannerEdit:T(lb)}),s.type===ab&&(0,fe.jsxs)(ie.aF,{size:"lg",show:!0,loading:u,dismissable:!0,name:"ConfigurationAccountsContainer__Modal--update",onDismiss:b,children:[p&&`Error! ${p.message}`,u||p||!c?.getAccountInfo?null:(0,fe.jsx)(JT,{account:c.getAccountInfo,businessName:c.getAccountInfo.name||"",accessControls:c.getAccountInfo.accessControls||[],featureToggles:c.getAccountInfo.featureToggles||null,notes:c.getAccountInfo.notes||"",showChatBot:!!c.getAccountInfo.showChatBot,reportingYearId:c.getAccountInfo.reportingYear?.id||"",dismiss:b,allAccounts:h})]}),s.type===ib&&(0,fe.jsxs)(ie.aF,{size:"sm",show:!0,dismissable:!0,loading:u,name:"ConfigurationAccountsContainer__Modal--Logo",onDismiss:b,children:[p&&`Error! ${p.message}`,!u&&!p&&(0,fe.jsx)(ZT,{accountData:c?.getAccountInfo,onSuccess:(e,n)=>b({message:e,color:n},r),dismiss:b})]}),s.type===lb&&(0,fe.jsx)(ie.aF,{size:"lg",show:!0,dismissable:!0,loading:i,name:"ConfigurationAccountsContainer__Modal--Logo",onDismiss:b,children:p&&`Error! ${p.message}`}),s.type===tb&&(0,fe.jsx)(ie.aF,{size:"lg",show:!0,name:"ConfigurationAccountsContainer__Modal--create",dismissable:!0,onDismiss:b,children:(0,fe.jsx)(zT,{onDismiss:()=>b(),allAccounts:h})})]})},ob=S.J1`
  fragment SurveyTemplateFields on SurveyTemplate {
    id
    owner {
      id
      first_name
      last_name
    }
    name
    version
    description
    formContent
    createdDate
    expiryDate
  }
`,sb=S.J1`
  query GetSurveyTemplates {
    getSurveyTemplates {
      ...SurveyTemplateFields
    }
  }
  ${ob}
`,db=S.J1`
  mutation CreateSurveyTemplate($template: SurveyTemplateInput!) {
    createSurveyTemplate(template: $template) {
      ...SurveyTemplateFields
    }
  }
  ${ob}
`,cb=S.J1`
  mutation UpdateSurveyTemplate($id: ID!, $template: SurveyTemplateInput!) {
    updateSurveyTemplate(id: $id, template: $template) {
      ...SurveyTemplateFields
    }
  }
  ${ob}
`,ub=S.J1`
  mutation DeleteSurveyTemplate($id: ID!) {
    deleteSurveyTemplate(id: $id)
  }
`;function pb(e){const n={};return e.name||(n.name="Name is required"),e.formContent||(n.formContent="Survey content is required"),e.ownerId||(n.ownerId="Owner is required"),Dh().isJSON(e.formContent)||(n.formContent="Should be a valid JSON string"),Object.keys(n).length?[n,null]:[null,e]}const mb=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,fb=(0,le.default)(ie.hh.TextColumn)`
  align-self: center;
`;function yb(e){let{onDismiss:n,buttonDescription:t,TemplateDetails:a,title:i,submitButtonText:l="Create Template"}=e;const[r,o]=(0,g.useState)({name:"",description:"",expiryDate:null}),[s,d]=(0,g.useState)({}),[c,{loading:u}]=function(){const{showNotification:e}=tn();return(0,ln.n)(db,{onCompleted:()=>{e("Template has been successfully created!","success")},onError:n=>{e(`Something went wrong. If the problem persists, contact support. ${n}`,"danger")},update:(e,n)=>{const{getSurveyTemplates:t}=e.readQuery({query:sb}),a=n.data?.createSurveyTemplate;a&&e.writeQuery({query:sb,data:{getSurveyTemplates:t.concat(a)}})}})}(),p=(0,g.useCallback)(e=>{o(n=>({...n,...e}))},[]),m=(0,g.useCallback)(async e=>{e.preventDefault();const[t,a]=pb(r);if(t)return d(e=>({...e,...t}));await c({variables:{template:a},onCompleted:()=>n()})},[r,c,n]);return(0,fe.jsx)(mb,{name:"CreateTemplate",children:(0,fe.jsxs)(ie.hh,{onSubmit:m,children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:i}),(0,fe.jsx)(a,{onChange:p,template:r,errors:s,disabled:u}),(0,fe.jsx)(ie.hh.ButtonColumn,{disabled:u,onClick:m,name:"CreateTemplate__SubmitButton",children:l}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(fb,{span:12,size:"xs",color:"normal",children:t})})]})})}function gb(){return(0,x.IT)(sb)}const hb=e=>({value:e.id.toLowerCase(),label:`${e.firstName} ${e.lastName}`}),xb=e=>{let{accountId:n,value:t,onChange:a,isDisabled:i=!1,selectedOption:l=[],error:r="",isMulti:o=!0}=e;const s=(0,C.m)();return(0,fe.jsx)(ie.l6,{isMulti:o,name:"owner",placeholder:"Begin typing to find users...",multiValueColor:"tertiary",value:t,defaultOptions:!0,onChange:a,selectedOption:l,classPrefix:"user-select",isDisabled:i,error:r,loadOptions:async e=>{const{data:{getUsers:t}}=await s.query({query:Dy,variables:{accountId:n,filters:{text:[{filterType:gn.pe.Text,field:"fullName",type:gn.II.Contains,filter:e},{filterType:gn.pe.Text,operator:gn.h6.Or,condition1:{filterType:gn.pe.Text,field:"accountId",type:gn.II.Equals,filter:n},condition2:{filterType:gn.pe.Text,field:"role",type:gn.II.Equals,filter:gn.gG.Consultant}}]},sort:[{field:"firstName",order:"asc"}]}}),{totalRows:a}=t;return{options:t.rows?.map(hb)||[],total:a}}})},Tb=(0,le.default)(ie.fs)`
  height: 150px;
`;function bb(e){let{template:n,errors:t,onChange:a,owner:i,disabled:l}=e;const r=Je(),o=(0,g.useCallback)(e=>a({[e.target.name]:e.target.value}),[a]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.TextInputColumn,{label:"Title",name:"name",onChange:o,value:n.name,error:t.name,disabled:l})}),(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.TextInputColumn,{label:"Description",name:"description",onChange:o,value:n.description,error:t.description,disabled:l})}),(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.Column,{label:"Form content",name:"formContent",children:(0,fe.jsx)(Tb,{name:"formContent",onChange:o,value:n.formContent,error:t.formContent,disabled:l})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Owner",span:12,children:(0,fe.jsx)(xb,{isMulti:!1,accountId:r,value:i?{value:i.id,label:Wi(i)}:n.ownerId,error:t.ownerId||void 0,onChange:(0,g.useCallback)(e=>a({ownerId:e.target.select.value}),[a])})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Expiry date",span:12,children:(0,fe.jsx)(ie.lr,{onDayClick:(0,g.useCallback)(e=>a({expiryDate:e}),[a]),name:"expiryDate",selectedDate:n.expiryDate,disabledDatesBefore:dt().toDate(),box:!0})})}),(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.TextInputColumn,{label:"Version",name:"version",onChange:o,value:n.version,error:t.version,disabled:l})})]})}const vb=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`;function Cb(e){let{onDismiss:n,existingTemplate:t}=e;const[a,i]=(0,g.useState)({name:t.name,description:t.description,formContent:t.formContent,expiryDate:t.expiryDate?new Date(t.expiryDate):null,ownerId:t.owner.id,version:t.version}),[l,r]=(0,g.useState)({}),[o,{loading:s}]=function(){const{showNotification:e}=tn();return(0,ln.n)(cb,{onCompleted:()=>{e("The template has been successfully updated!","success")},onError:n=>{e(`Something went wrong. If the problem persists, contact support. ${n}`,"danger")},update:(e,n)=>{const{getSurveyTemplates:t}=e.readQuery({query:sb}),a=n.data?.updateFormTemplate;e.writeQuery({query:sb,data:{getSurveyTemplates:t.map(e=>e.id===a?.id?a:e)}})}})}(),[d,{loading:c}]=function(){const{showNotification:e}=tn();return(0,ln.n)(ub,{onCompleted:()=>{e("Template has been deleted.","success")},onError:n=>{e(`Something went wrong. If the problem persists, contact support. ${n}`,"danger")},update:(e,n)=>{const{getSurveyTemplates:t}=e.readQuery({query:sb}),a=n.data?.deleteSurveyTemplate;a&&e.writeQuery({query:sb,data:{getSurveyTemplates:t.filter(e=>e.id!==a)}})}})}(),u=(0,g.useCallback)(e=>{i(n=>({...n,...e}))},[]),p=(0,g.useCallback)(async e=>{e.preventDefault();const[i,l]=pb(a);if(i)return r(e=>({...e,...i}));await o({variables:{id:t.id,template:l},onCompleted:()=>n()})},[a,o,n,t.id]),m=(0,g.useCallback)(()=>{d({variables:{id:t.id},onCompleted:()=>n()})},[t.id,d,n]),f=s||c;return(0,fe.jsx)(vb,{children:(0,fe.jsxs)(ie.hh,{container:!0,onSubmit:p,children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:"Update Form Template"}),(0,fe.jsx)(bb,{onChange:u,template:a,owner:t.owner,errors:l,disabled:f}),(0,fe.jsxs)(ie.hh.Row,{container:!0,children:[(0,fe.jsx)(ie.hh.ButtonColumn,{span:6,disabled:f,onClick:p,name:"UpdateTemplate__UpdateTemplateButton",children:"Update template"}),(0,fe.jsx)(ie.hh.ButtonColumn,{span:6,disabled:f,onClick:m,color:"danger",name:"UpdateTemplate__DeleteTemplateButton",children:"Delete template"})]})]})})}const kb=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,Sb=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 0 0 ${e=>e.theme.geometry.xxl.spacing};
  margin-right: ${e=>e.theme.geometry.sm.spacing};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,Nb=le.default.div`
  height: 100%;
`,Ab=e=>{let{data:n,onEdit:t}=e;return(0,fe.jsx)(kb,{children:(0,fe.jsx)(Sb,{onClick:()=>t(n),children:(0,fe.jsx)(ie.In,{icon:"pencil-alt"})})})},Rb={resizable:!0,sortable:!0,filter:!0,cellStyle:{height:"auto"}},Db=Gn("id"),Lb=[{headerName:"Title",field:"name"},{headerName:"Date Created",field:"createdDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)}},{headerName:"Expiry Date",field:"expiryDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)}},{headerName:"Description",field:"description"},{headerName:"Version",field:"version"},{headerName:"Owner",field:"owner",valueFormatter:e=>{let{value:n}=e;return Wi(n)}},{headerName:"Actions",field:"id",cellRenderer:"edit",colId:"edit"}];function Ib(e){let{rows:n,onEdit:t}=e;const a={edit:e=>(0,fe.jsx)(Ab,{...e,onEdit:e=>t(e)})};return(0,fe.jsx)(Nb,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{rowSelection:"single",defaultColDef:Rb,columnDefs:Lb,components:a,rowData:n,paginationPageSize:25,getRowId:Db,pagination:!0})})}const jb=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,wb=(0,le.default)(gu)`
  justify-content: space-between;
`,Ob=()=>{const{data:e,loading:n,error:t,refetch:a,networkStatus:i}=gb(),[l,r]=(0,g.useState)(!1),[o,s]=(0,g.useState)(null),d=(0,g.useCallback)(()=>r(e=>!e),[]),c=(0,g.useCallback)(e=>s(e),[]),u=(0,g.useCallback)(()=>s(null),[]);return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsx)(wb,{icon:"briefcase",iconColor:"primary",name:"ConfigurationSurveysContainer",title:"Survey Templates",children:(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(jb,{size:"md",color:"primary",onClick:d,name:"AddSurveyTemplateButton",inline:!0,children:"+ Add Survey Template"})})}),(n&&3!==i||4===i)&&(0,fe.jsx)(Rc,{name:"ConfigurationAccountsContainer__Loading"}),t&&(0,fe.jsx)($c,{error:t,retry:a}),!t&&!n&&e?.getSurveyTemplates&&(0,fe.jsx)(Ib,{rows:e?.getSurveyTemplates,onEdit:c}),o&&(0,fe.jsx)(ie.aF,{size:"md",onDismiss:u,dismissable:!0,show:!0,children:(0,fe.jsx)(Cb,{existingTemplate:o,onDismiss:u})}),l&&(0,fe.jsx)(ie.aF,{size:"md",onDismiss:d,dismissable:!0,show:!0,children:(0,fe.jsx)(yb,{onDismiss:d,TemplateDetails:bb,title:"Create Survey Template",submitButtonText:"Create template"})})]})},Eb=S.J1`
  query GetWasteContractorsPaged($page: Int!, $pageSize: Int!, $filterValue: String, $filterBy: String) {
    getWasteContractorsPaged(
      page: $page
      pageSize: $pageSize
      filterValue: $filterValue
      filterExpression: EQUAL
      filterBy: $filterBy
    ) {
      count
      hasNextPage
      hasPreviousPage
      isFirstPage
      isLastPage
      pageCount
      totalItemCount
      page
      pageSize
      wasteContractors {
        name
        id
        address {
          id
          address1
          address2
          address3
          city
          phone1
          postcode
          country {
            alpha2Code
            name
            id
          }
        }
      }
    }
  }
`,_b=S.J1`
  mutation CreateWasteContractor(
    $id: ID!
    $name: String!
    $addressId: ID!
    $add1: String
    $add2: String
    $add3: String
    $city: String!
    $post: String!
    $phone: String
    $countryId: ID!
  ) {
    createAddress(
      input: {
        id: $addressId
        address1: $add1
        address2: $add2
        address3: $add3
        city: $city
        postcode: $post
        coordinates: null
        phone1: $phone
        countryId: $countryId
      }
    ) {
      id
    }
    createWasteContractor(input: { id: $id, name: $name, addressId: $addressId }) {
      id
      name
    }
  }
`,Fb=S.J1`
  mutation UpdateWasteContractor(
    $id: ID!
    $name: String!
    $addressId: ID!
    $add1: String
    $add2: String
    $add3: String
    $city: String!
    $post: String!
    $phone: String
    $countryId: ID!
  ) {
    updateAddress(
      input: {
        id: $addressId
        address1: $add1
        address2: $add2
        address3: $add3
        city: $city
        postcode: $post
        coordinates: null
        phone1: $phone
        countryId: $countryId
      }
    ) {
      id
      address1
      address2
      address3
      city
      postcode
      phone1
      country {
        alpha2Code
        name
        id
      }
    }
    updateWasteContractor(input: { id: $id, name: $name, addressId: $addressId }) {
      id
      name
    }
  }
`,Pb=S.J1`
  {
    wasteContractorsGridPage @client
  }
`,Bb=S.J1`
  {
    wasteContractorsGridTotalPages @client
  }
`,Ub=S.J1`
  mutation SetWasteContractorsGridPage($page: Int!) {
    setWasteContractorsGridPage(page: $page) @client
  }
`,$b=(S.J1`
  mutation SetWasteContractorsGridTotalPages($totalPages: Int!) {
    setWasteContractorsGridTotalPages(totalPages: $totalPages) @client
  }
`,S.J1`
  {
    wasteContractorsGridSearch @client
  }
`),Mb=S.J1`
  mutation SetWasteContractorsGridSearch($search: String!) {
    setWasteContractorsGridSearch(search: $search) @client
  }
`,Vb=(0,le.default)(ie.fI)`
  flex: 0 0 auto;
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  padding-right: ${e=>`${e.theme.geometry.xs.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  opacity: 0.7;
  transition: all 0.2s ease-in;

  &:hover {
    opacity: 1;
  }

  &:hover .slide-in-animation {
    transform: translateX(25px);
  }
`,Gb=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: ${e=>`${e.theme.geometry.md.spacing} ${e.theme.geometry.sm.spacing}`};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
  }
`,zb=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,Wb=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: ${e=>`${e.theme.geometry.md.spacing} ${e.theme.geometry.sm.spacing}`};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
  }
`,qb=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.profile.padding};
`,Jb=(0,le.default)(qb)`
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
`,Yb=e=>{let{contractorId:n,name:t,address:a,phoneNumber:i,onEdit:l}=e;const r=lr();return(0,fe.jsxs)(Vb,{container:!0,name:`contractor-row--${n}`,itemAlign:"center",children:[(0,fe.jsx)(zb,{name:`contractor-row__profile-picture--${n}`,size:"xs",accountName:t}),(0,fe.jsx)(qb,{container:!0,item:!0,contractorId:n,span:3,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`contractor-row__name--${n}`,size:"md",children:t})}),(0,fe.jsx)(qb,{container:!0,item:!0,contractorId:n,span:3,children:i&&(0,fe.jsx)(qb,{contractorId:n,children:(0,fe.jsx)(Wb,{name:`contractor-row__phoneNumber--${n}`,size:"md",href:`tel:${i}`,children:i})})}),(0,fe.jsx)(qb,{container:!0,item:!0,inline:!0,contractorId:n,span:3,children:a&&(0,fe.jsxs)(qb,{contractorId:n,inline:!0,children:[(0,fe.jsx)(ie.EY,{name:`contractorRow__addressLine1--${n}`,size:"md",children:a.address1}),(0,fe.jsx)(ie.EY,{name:`contractorRow__addressLine2--${n}`,size:"md",children:a.address2}),(0,fe.jsx)(ie.EY,{name:`contractorRow__addressLine3--${n}`,size:"md",children:a.address3}),(0,fe.jsx)(ie.EY,{name:`contractorRow__addressCity--${n}`,size:"md",children:a.city}),(0,fe.jsx)(ie.EY,{name:`contractorRow__addressPostcode--${n}`,size:"md",children:a.postcode}),(0,fe.jsx)(ie.EY,{name:`contractorRow__addressPostcode--${n}`,size:"md",children:a.country.name})]})}),r.data.includes("editWasteContractorAll")&&(0,fe.jsx)(Jb,{span:2,children:(0,fe.jsx)(Gb,{onClick:l,children:(0,fe.jsx)(ie.In,{name:`contractorRow__edit--${n}`,icon:"pencil-alt"})})})]})},Hb=e=>{let{id:n,name:t,inline:a=!0,totalPagesCount:i,onChange:l,currentPage:r,itemsCountPerPage:o=5,size:s="md"}=e;return(0,fe.jsx)(ie.dK,{id:n,name:t,inline:a,activePage:r,itemsCountPerPage:o,totalItemsCount:i,onChange:l,size:s})};class Kb extends g.Component{constructor(e){super(e),this.onChange=(e,n,t)=>{this.setState({search:e.target.value},()=>{this.onSearch(n,t)})},this.onSearch=(e,n)=>{const{search:t}=this.state;n({variables:{page:1}}),e({variables:{search:t}})},this.state={search:""}}render(){const{setPageMutation:e,setSearchMutation:n,...t}=this.props;return(0,fe.jsx)(me.s,{mutation:e,children:e=>(0,fe.jsx)(me.s,{mutation:n,children:n=>(0,fe.jsx)(ie.vj,{...t,name:"account-controls__search",value:this.state.search,onChange:t=>this.onChange(t,n,e),onSearch:()=>this.onSearch(n,e)})})})}componentWillUnmount(){const{client:e,setSearchMutation:n}=this.props;e.mutate({mutation:n,variables:{search:""}})}}const Qb=(0,Kc.W)(Kb),Zb=["1","2","3","4","5","6","7","8","9","0"," "],Xb=e=>{if((e=[...e.trim()]).length<=0||1===e.length&&" "===e[0])return!1;let n=!0;for(const t of e)if(!Zb.includes(t)){n=!1;break}return n},ev=e=>null!==e.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g),nv=(0,le.default)(ie.fv)`
  padding: ${e=>`${e.theme.geometry.xs.spacing}`};
`;function tv(e){const{id:n,address1:t,address2:a,address3:i,city:l,postcode:r,phone:o,isSubmitted:s,handleChange:d,countryList:c,selectCountry:u,handleSelectChange:p}=e;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(ie.hh.Row,{container:!0,align:"between",children:[(0,fe.jsx)(ie.hh.TextInputColumn,{id:`${n}-address1`,disabled:s,name:"address1",onChange:d,label:"Address 1",value:t.text,error:t.error}),(0,fe.jsx)(ie.hh.TextInputColumn,{id:`${n}-address2`,disabled:s,name:"address2",onChange:d,label:" Address 2 (Optional)",value:a.text,error:a.error})]}),(0,fe.jsxs)(ie.hh.Row,{container:!0,align:"between",children:[(0,fe.jsx)(ie.hh.TextInputColumn,{id:`${n}-address3`,disabled:s,name:"address3",onChange:d,label:"Address 3 (Optional)",value:i.text,error:i.error}),(0,fe.jsx)(ie.hh.TextInputColumn,{id:`${n}-city`,disabled:s,name:"city",onChange:d,label:"City",value:l.text,error:l.error})]}),(0,fe.jsxs)(ie.hh.Row,{container:!0,align:"between",children:[(0,fe.jsx)(nv,{span:"12",children:(0,fe.jsx)(ie.hh.TextInputColumn,{id:`${n}-postcode`,disabled:s,name:"postcode",onChange:d,label:"Postcode",value:r.text,error:r.error})}),(0,fe.jsx)(nv,{span:"12",children:(0,fe.jsx)(ie.hh.SelectColumn,{id:`${n}-country`,disabled:s,name:"selectCountry",onChange:p,value:u,options:c,label:"Country"})})]}),(0,fe.jsx)(ie.hh.Row,{container:!0,align:"between",children:(0,fe.jsx)(ie.hh.TextInputColumn,{id:`${n}-phone`,disabled:s,name:"phone",onChange:d,label:"Phone (Optional)",value:o.text,error:o.error})})]})}tv.propTypes={id:pe().string,name:pe().string,address1:pe().shape({value:pe().string,error:pe().string}),address2:pe().shape({value:pe().string,error:pe().string}),address3:pe().shape({value:pe().string,error:pe().string}),city:pe().shape({value:pe().string,error:pe().string}),postcode:pe().shape({value:pe().string,error:pe().string}),phone:pe().shape({value:pe().string,error:pe().string}),selectCountry:pe().shape({value:pe().string,error:pe().string}),disabled:pe().bool,handleChange:pe().func};const av=tv,iv=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
`,lv=e=>{let{refetchQuery:n,onUpdate:t,onSuccess:a}=e;const{countryList:i,defaultCountry:l}=Bo(),[r,o]=(0,g.useState)({hasError:!1,isSuccess:!1,notification:{show:!1,message:"",color:"success"},contractorName:{value:"",success:null},address1:{text:"",error:""},address2:{text:"",error:""},address3:{text:"",error:""},city:{text:"",error:""},postcode:{text:"",error:""},phone:{text:"",error:""},selectCountry:null}),s=Je(),[d]=(0,ln.n)(_b,{refetchQueries:n,onError:e=>{e.graphQLErrors&&e.graphQLErrors[0]&&400===e.graphQLErrors[0].errorType?o({...r,notification:{show:!0,message:"Contractor name must be unique.",color:"danger"},hasError:!0,isSuccess:!1}):o({...r,notification:{show:!0,message:"Something went wrong. If the problem continues please contact support.",color:"danger"},hasError:!0,isSuccess:!1})},onCompleted:e=>{o({...r,hasError:!1,isSuccess:!0}),a("Contractor has been created!","success",e.createWasteContractor.id,e.createWasteContractor)},update:(e,n)=>{t&&t(e,n)}}),c=()=>r.contractorName.success&&u(r.address1.text)&&u(r.city.text)&&u(r.postcode.text)&&(0,Rh.isPostalCode)(r.postcode.text,"GB")&&(!r.phone.text||Xb(r.phone.text)),u=e=>!(""===e.trim());return(0,fe.jsxs)(iv,{name:"create-contractor",children:[r.notification.show&&(0,fe.jsx)(ie.Eg,{name:"create-account__notification",show:!0,color:r.notification.color,onClose:()=>{o({...r,notification:{...r.notification,show:!1}})},children:r.notification.message}),(0,fe.jsxs)(ie.hh,{id:"createContractor--propertySheet",children:[(0,fe.jsx)(ie.hh.HeaderRow,{name:"createContractor--header",children:"Create Contractor"}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextInputColumn,{name:"contractor--name",onChange:e=>{const n=e.target.value,t=!!n||null;o({...r,contractorName:{...r.contractorName,value:n,success:t}})},label:"Contractor Name",value:r.contractorName.value,success:r.contractorName.success})}),(0,fe.jsx)(av,{id:"ContractorAddressPropertySheet",name:"ContractorAddressPropertySheet",address1:r.address1,address2:r.address2,address3:r.address3,city:r.city,postcode:r.postcode,phone:r.phone,handleChange:e=>o({...r,[e.target.name]:{text:e.target.value,error:null}}),handleSelectChange:e=>{o(n=>({...n,[e.target.name]:{value:e.target.select.value,label:e.target.select.label}}))},countryList:i||[],selectCountry:r.selectCountry||l}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.ButtonColumn,{name:"createContractor",onClick:()=>{c()&&d({variables:{id:(0,Wa.A)(),name:r.contractorName.value,addressId:(0,Wa.A)(),add1:r.address1.text||null,add2:r.address2.text||null,add3:r.address3.text||null,city:r.city.text,post:r.postcode.text,phone:r.phone.text?r.phone.text.trim():null,accountId:s,countryId:r.selectCountry?.value||l.value,aliases:[]}})},disabled:!c(),children:"Save"})})]})]})},rv=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
`,ov=e=>{let{defaultCountry:n,onDismiss:t,countryList:a,...i}=e;const[l,r]=(0,g.useState)({hasError:!1,isSuccess:!1,notification:{show:!1,message:"",color:"success"},contractorId:{value:i.contractorId},contractorName:{value:i.contractorName,success:!0},contractorAddressId:{value:i.contractorAddressId},address1:{text:i.address1,error:""},address2:{text:i.address2,error:""},address3:{text:i.address3,error:""},city:{text:i.city,error:""},postcode:{text:i.postcode,error:""},phone:{text:i.phone,error:""},options:[],selectCountry:n}),[o]=(0,ln.n)(Fb,{onError:()=>{r({...l,notification:{show:!0,message:"Something went wrong. If the problem continues please contact support.",color:"danger"},hasError:!0,isSuccess:!1})},onCompleted:()=>{t({show:!1,message:"Contractor has been updated!",color:"success"})}}),s=()=>l.contractorName.success&&d(l.address1.text)&&d(l.city.text)&&d(l.postcode.text)&&(0,Rh.isPostalCode)(l.postcode.text,"GB")&&(!l.phone.text||Xb(l.phone.text)),d=e=>e&&""!==e.trim();return(0,fe.jsxs)(rv,{name:"update-contractor",children:[l.notification.show&&(0,fe.jsx)(ie.Eg,{name:"update-account__notification",show:!0,color:l.notification.color,onClose:()=>{r({...l,notification:{...l.notification,show:!1}})},children:l.notification.message}),(0,fe.jsxs)(ie.hh,{id:"PropertySheet",children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:"Update Contractor"}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextInputColumn,{name:"contractor--name",onChange:e=>{const n=e.target.value,t=!!n||null;r({...l,contractorName:{...l.contractorName,value:n,success:t}})},label:"Contractor Name",value:l.contractorName.value,success:l.contractorName.success})}),(0,fe.jsx)(av,{id:"ContractorAddressPropertySheet",name:"ContractorAddressPropertySheet",address1:l.address1,address2:l.address2,address3:l.address3,city:l.city,postcode:l.postcode,phone:l.phone,handleChange:e=>r({...l,[e.target.name]:{text:e.target.value,error:null}}),handleSelectChange:e=>{r(n=>({...n,[e.target.name]:{value:e.target.select.value,label:e.target.select.label}}))},disabled:!1,countryList:a,selectCountry:l.selectCountry}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.ButtonColumn,{name:"updateContractor",onClick:()=>{s()&&o({variables:{id:l.contractorId.value,name:l.contractorName.value,addressId:l.contractorAddressId.value,add1:l.address1.text||null,add2:l.address2.text||null,add3:l.address3.text||null,city:l.city.text,post:l.postcode.text,phone:l.phone.text?l.phone.text.trim():null,countryId:l.selectCountry.value}})},disabled:!s(),children:"Save"})})]})]})},sv=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,dv=e=>{const[n,t]=(0,g.useState)({createModal:{show:!1},updateModal:{id:""},selectedTags:[],notification:{message:null,color:null},account:{id:e.accountId},shouldRefetch:!1,selectAll:!1,orderByDesc:!0,pagination:{page:1,totalPages:0},countryList:[],defaultCountry:null}),{countryList:a}=Bo(),i=lr(),{data:{wasteContractorsGridSearch:l}}=(0,x.IT)($b),r={accountId:n.account.id,page:n.pagination.page,pageSize:20,filterValue:l||null,orderDir:n.orderByDesc?"desc":"asc",filterBy:"name"},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t({...n,createModal:{show:!1},updateModal:{id:null},notification:{message:e.message,color:e.color,id:e.id}})},s=(e,a,i,l)=>"create"===e?t({...n,createModal:{show:!0}}):"update"===e?t({...n,updateModal:{id:a,name:i,address:l}}):void 0,d=()=>{t(e=>({...e,notification:{message:null,color:null,id:null}}))},{data:c,error:u,loading:p,refetch:m}=(0,x.IT)(Eb,{variables:r,onCompleted:e=>(e=>{const a=n.pagination.page!==e.getWasteContractorsPaged.page,i=n.pagination.totalPages!==e.getWasteContractorsPaged.pageCount;(a||i)&&t({...n,pagination:{page:e.getWasteContractorsPaged.page,totalPages:e.getWasteContractorsPaged.pageCount}})})(e)}),f=(e=>{let{data:n,error:t,loading:a,refetch:i}=e;return t?(0,fe.jsx)(ie.Kw,{error:t,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationContractorsContainer__Error",icon:a,title:n,body:t,retry:()=>i()})}}):a?(0,fe.jsx)(Rc,{name:"ConfigurationContractorsContainer__Loading"}):0===(l=n.getWasteContractorsPaged).wasteContractors.length?(0,fe.jsx)(Fu,{name:"ConfigurationContractorsContainer__NoResults",title:"No Contractors found"}):l.wasteContractors.map(e=>(0,fe.jsx)(Yb,{contractorId:e.id,name:e.name,address:e.address,hasTransactions:e.hasTransactions,phoneNumber:e.address?e.address.phone1:null,onEdit:()=>s("update",e.id,e.name,e.address)},e.id));var l})({data:c,error:u,loading:p,refetch:m});return(0,fe.jsxs)(ie.fv,{name:"ConfigurationContractorsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{name:"ConfigurationContractorsContainer__Controls",icon:"business-time",iconColor:"primary",title:"Contractors",children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(Qb,{setPageMutation:Ub,setSearchMutation:Mb,hideButton:!0})}),i.data.includes("createWasteContractorAll")&&(0,fe.jsx)(sv,{name:"ConfigurationContractorsContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>s("create"),children:"+ Create Contractor"})]}),(e=>(0,fe.jsxs)(g.Fragment,{children:[n.notification.message&&(0,fe.jsxs)(ie.Eg,{name:"ConfigurationContractorsContainer__Notification",show:!0,color:"success",onClose:d,children:[n.notification.message,(0,fe.jsx)("div",{hidden:!0,name:"ConfigurationContractorsContainer__Notification__createlocation_id",children:n.notification.id?n.notification.id[0]:null}),(0,fe.jsx)("div",{hidden:!0,name:"ConfigurationContractorsContainer__Notification__createaddress_id",children:n.notification.id?n.notification.id[1]:null})]}),n.createModal.show&&(0,fe.jsx)(ie.aF,{span:5,size:"md",show:!0,name:"ConfigurationContractorsContainer__Modal--create",dismissable:!0,onDismiss:o,children:(0,fe.jsx)(lv,{onSuccess:(e,n,t)=>o({message:e,color:n,id:t}),accountId:n.account.id,countryList:a,refetchQuery:[{query:Eb,variables:e}]})}),n.updateModal.id&&(0,fe.jsx)(ie.aF,{size:"md",show:!0,dismissable:!0,onDismiss:o,name:"ConfigurationContractorsContainer__Modal--update",children:(0,fe.jsx)(ov,{contractorId:n.updateModal.id,contractorName:n.updateModal.name,contractorAddressId:n.updateModal.address&&n.updateModal.address.id,address1:n.updateModal.address&&n.updateModal.address.address1,address2:n.updateModal.address&&n.updateModal.address.address2,address3:n.updateModal.address&&n.updateModal.address.address3,city:n.updateModal.address&&n.updateModal.address.city,postcode:n.updateModal.address&&n.updateModal.address.postcode,phone:n.updateModal.address&&n.updateModal.address.phone1,onDismiss:o,onSuccess:(e,n,t)=>o({message:e,color:n,id:t}),countryList:a,defaultCountry:n.updateModal.address&&{value:n.updateModal.address.country.id,label:n.updateModal.address.country.name}})})]}))(r),f,(0,fe.jsx)(Hb,{totalPagesCount:n.pagination.totalPages,currentPage:n.pagination.page,onChange:e=>{return a=e,void t({...n,pagination:{page:a,totalPages:n.pagination.totalPages}});var a}})]})},cv=S.J1`
  mutation CreateLocation(
    $locId: ID!
    $locName: String!
    $accId: ID!
    $add1: String
    $add2: String
    $add3: String
    $city: String!
    $post: String!
    $phone: String
    $wasteIn: ID
    $wasteOut: ID
    $tags: [ID!]
    $countryId: ID!
    $code: String
    $buildingType: ID
    $departments: [ID!]
    $tenure: ID
    $region: ID
    $floorSpace: Float
    $sharedEmissionPercentage: Float
    $startDate: String
    $endDate: String
    $leaseRenewalDate: String
    $notes: String
    $description: String
    $attributes: AWSJSON
    $enableProject: Boolean
    $displayOnImpactDashboard: Boolean
  ) {
    createLocationWithLocationPoints(
      input: {
        id: $locId
        name: $locName
        address1: $add1
        address2: $add2
        address3: $add3
        city: $city
        postcode: $post
        coordinates: null
        phone1: $phone
        countryId: $countryId
        accountId: $accId
        wasteInId: $wasteIn
        wasteOutId: $wasteOut
        tags: $tags
        code: $code
        buildingType: $buildingType
        departments: $departments
        tenure: $tenure
        region: $region
        floorSpace: $floorSpace
        sharedEmissionPercentage: $sharedEmissionPercentage
        startDate: $startDate
        endDate: $endDate
        leaseRenewalDate: $leaseRenewalDate
        notes: $notes
        description: $description
        attributes: $attributes
        enableProject: $enableProject
        displayOnImpactDashboard: $displayOnImpactDashboard
      }
    ) {
      ...LocationFields
    }
  }
  ${Rs}
`,uv=S.J1`
  mutation UpdateLocation(
    $locId: ID!
    $locName: String!
    $accId: ID!
    $add1: String
    $add2: String
    $add3: String
    $city: String!
    $post: String!
    $phone: String
    $wasteIn: UpdateLocationLocationPointInput
    $wasteOut: UpdateLocationLocationPointInput
    $tags: [ID!]
    $countryId: ID!
    $code: String
    $buildingType: ID
    $departments: [ID!]
    $tenure: ID
    $region: ID
    $floorSpace: Float
    $sharedEmissionPercentage: Float
    $startDate: String
    $endDate: String
    $leaseRenewalDate: String
    $notes: String
    $description: String
    $attributes: AWSJSON
    $enableProject: Boolean
    $displayOnImpactDashboard: Boolean
  ) {
    updateLocationWithLocationPoints(
      input: {
        id: $locId
        name: $locName
        address1: $add1
        address2: $add2
        address3: $add3
        city: $city
        postcode: $post
        coordinates: null
        phone1: $phone
        countryId: $countryId
        accountId: $accId
        wasteIn: $wasteIn
        wasteOut: $wasteOut
        tags: $tags
        code: $code
        buildingType: $buildingType
        departments: $departments
        tenure: $tenure
        region: $region
        floorSpace: $floorSpace
        sharedEmissionPercentage: $sharedEmissionPercentage
        startDate: $startDate
        endDate: $endDate
        leaseRenewalDate: $leaseRenewalDate
        notes: $notes
        description: $description
        attributes: $attributes
        enableProject: $enableProject
        displayOnImpactDashboard: $displayOnImpactDashboard
      }
    ) {
      ...LocationFields
    }
  }
  ${Rs}
`,pv=(S.J1`
  mutation ExportLocations($accountId: ID!) {
    getLocationExport(accountId: $accountId)
  }
`,S.J1`
  query GetLocationById($id: ID!) {
    getLocationById(id: $id) {
      ...LocationFields
    }
  }
  ${Rs}
`),mv=S.J1`
  query GetLocationsByAccountId(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getLocationsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        ...LocationFields
      }
    }
  }
  ${Rs}
`,fv=S.J1`
  query getTagsByAccountId($accountId: String!) {
    getTagsByAccountId(input: { accountId: $accountId, applicationId: "RIO" }) {
      id
      tagName
      isSystemLevelTag
    }
  }
`,yv=S.J1`
  query GetLocationsPageFilter($accountId: ID!, $field: String!) {
    getLocationsPageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,gv=S.J1`
  mutation UpsertLocations($locations: [UpsertLocationsInput!]!, $accountId: ID!) {
    upsertLocations(accountId: $accountId, locations: $locations)
  }
`,hv=S.J1`
  query GetLocationSelectOptions($accountId: ID!, $accountIdAsString: String!) {
    getTagsByAccountId(input: { accountId: $accountIdAsString, applicationId: "RIO" }) {
      value: id
      label: tagName
    }
    getAccountInfo(id: $accountId) {
      departments {
        value: id
        label: name
      }
    }
    getAllCountries {
      value: id
      label: name
    }
    getLocationMetadataOptionsForAccount(accountId: $accountId) {
      tenures {
        value: id
        label: name
      }
      buildingTypes {
        value: id
        label: name
      }
      regions {
        value: id
        label: name
      }
    }
  }
`,xv=S.J1`
  query GetAllLocationIds($accountId: ID!, $limit: Int, $offset: Int) {
    getLocationsPage(accountId: $accountId, limit: $limit, offset: $offset) {
      rows {
        id
        name
      }
      totalRows
    }
  }
`,Tv=S.J1`
  mutation UploadLocationPicture($input: UploadLocationPictureInput!) {
    uploadLocationPicture(input: $input)
  }
`,bv=(0,le.default)(ie.fI)`
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  *:not(:last-child) {
    margin-right: ${e=>e.theme.geometry.xs.spacing};
  }
`,vv=S.J1`
  query GetLocationMetaOptions($accountId: ID!) {
    getLocationMetadataOptionsForAccount(accountId: $accountId) {
      tenures {
        id
        name
      }
      regions {
        id
        name
      }
      buildingTypes {
        id
        name
      }
    }
  }
`,Cv=S.J1`
  mutation CreateLocationMetaOption($id: ID!, $accountId: ID!, $name: String!, $type: LocationMetadataOptionType!) {
    createLocationMetadataOption(input: { id: $id, accountId: $accountId, name: $name, type: $type })
  }
`,kv="TENURE",Sv="REGION",Nv="BUILDINGTYPE",Av=le.default.form`
  padding: ${e=>e.theme.geometry.md.spacing};
`,Rv=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Dv=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,Lv=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Iv=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,jv=(0,le.default)(ie.fI)`
  margin-top: ${e=>e.theme.geometry.xs.spacing};
`,wv=(0,le.default)(ie.fv)`
  padding: 0 ${e=>e.theme.geometry.xs.spacing};
`,Ov=e=>{switch(e){case Sv:return"regions";case Nv:return"buildingTypes";default:return"tenures"}},Ev=e=>{let{optionType:n=kv,accountId:t,selectedOption:a,setSelectedOption:i}=e;const[l,r]=(0,g.useState)(!1),[o,s]=(0,g.useState)(""),{showNotification:d}=tn(),c=Je(),[u]=(0,ln.n)(Cv,{onCompleted:()=>{r(!1),s(""),d("Option has been created.")},onError:()=>{d("Something went wrong please try again later.","danger")}}),{data:p}=(0,x.IT)(vv,{variables:{accountId:t||c}}),m=[...p?.getLocationMetadataOptionsForAccount[Ov(n)]||[]];return m.find(e=>"NEW"===e.id)||(m.unshift({name:"Not Specified",id:null}),m.unshift({name:"Create New...",id:"NEW"})),(0,fe.jsxs)(fe.Fragment,{children:[l&&(0,fe.jsx)(ie.aF,{show:!0,size:"sm",onDismiss:()=>r(!1),span:6,height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(Av,{children:[(0,fe.jsx)(Lv,{size:"lg",children:"Create Option"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Iv,{item:!0,children:[(0,fe.jsx)(Dv,{children:(0,fe.jsx)(Rv,{children:"Name (Required)"})}),(0,fe.jsx)(ie.ks,{onChange:e=>s(e.target.value),name:"name",value:o,box:!0})]})}),(0,fe.jsxs)(jv,{container:!0,children:[(0,fe.jsx)(wv,{container:!0,item:!0,children:(0,fe.jsx)(ie.$n,{color:"info",onClick:()=>r(!1),children:"Cancel"})}),(0,fe.jsx)(wv,{container:!0,item:!0,children:(0,fe.jsx)(ie.$n,{type:"button",onClick:()=>(()=>{if(o){const e=(0,Wa.A)();u({variables:{id:e,accountId:t||c,name:o,type:n},refetchQueries:["GetLocationMetaOptions"]}),i(e)}else d("Name is a required field.","danger")})(),children:"Create"})})]})]})}),(0,fe.jsx)(ie.l6,{options:m.map(e=>({label:e.name,value:e.id})),value:a,onChange:e=>(e=>{"NEW"===e.target.value?r(!0):i(e.target.value)})(e)})]})};function _v(){const[e,n]=(0,g.useState)(!0),t=(0,g.useRef)({}),{showNotification:a}=tn(),i=function(){const e=Kr({query:zd(),request:{accountId:Je()},response:"getLocationsPage"});return(0,g.useCallback)(async()=>(await e()).map(e=>({id:e.id,code:e.code||""})),[e])}();(0,g.useEffect)(()=>{i().then(e=>{t.current=e.reduce((e,n)=>(e[n.code]=n.id,e),{}),n(!1)}).catch(()=>{a("Error fetching location codes to validate your input","danger"),n(!1)})},[]);const l=(0,g.useCallback)(e=>{const n={};for(const t of e){const e=t.locationCode;e&&(n[e]?n[e]++:n[e]=1)}const a=new Set;for(const i of e){const e=i.locationCode,l=i.id;if(e&&n[e]&&n[e]>1){a.add(e);continue}const r=Boolean(t.current[e]),o=t.current[e]!==l;e&&r&&o&&a.add(e)}return Array.from(a).sort((e,n)=>e.localeCompare(n))},[]);return{isLoading:e,validateLocationCodeInDromoRows:(0,g.useCallback)(e=>e.map(e=>{const n=(0,hn.cloneDeep)(e),a=n.row.locationCode.value,i=n.row.id.value,l=Boolean(t.current[a]),r=t.current[a]!==i;return a&&l&&r?(n.row.locationCode.info=[{message:(o=a,`Location codes are usually unique but ${o} already exists in the database. After the upload there will be multiple locations with the same code.`),level:"warning"}],n):(n.row.locationCode.info=[],n);var o}),[]),getDuplicateLocationCodes:l}}const Fv=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Pv=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Bv=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,Uv=e=>{let{accountId:n,selectedOptions:t={},setSelectedOptions:a=()=>{},locationId:i}=e;const l=Vr(n),r=lr(),{departmentMultipleSelect:o,showCreateDepartment:s,setShowCreateDepartment:d}=$o(l?.departments,t.departments),{getDuplicateLocationCodes:c,isLoading:u}=_v(),p=(0,g.useMemo)(()=>c([{locationCode:(t.code||"").trim(),id:i}]).length>0,[c,t.code,i]),m=[gn.gG.Sysadmin,gn.gG.Businessadmin,gn.gG.Consultant].includes(r.role);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Location Code (Location ID / ePIM) (Optional)"})}),(0,fe.jsx)(ie.ks,{onChange:e=>a({...t,code:e.target.value}),value:t.code,box:!0}),u?(0,fe.jsx)(ie.EY,{children:"Loading location codes for validation..."}):null,!u&&p&&(0,fe.jsx)(ie.EY,{color:"warning",children:"Warning: This location code is already configured for another location (it is still possible to use it regardless of this warning)"}),!u&&!p&&t.code&&(0,fe.jsx)(ie.EY,{color:"success",children:"This location code is not used by another location"})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Departments (Optional)"})}),o(e=>{a({...t,departments:e.target.select.map(e=>({id:e.value,name:e.label}))})})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Tenure (Optional)"})}),(0,fe.jsx)(Ev,{accountId:n,optionType:kv,selectedOption:t.tenure,setSelectedOption:e=>a({...t,tenure:e})})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Region (Optional)"})}),(0,fe.jsx)(Ev,{accountId:n,optionType:Sv,selectedOption:t.region,setSelectedOption:e=>a({...t,region:e})})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Building Type (Optional)"})}),(0,fe.jsx)(Ev,{accountId:n,optionType:Nv,selectedOption:t.buildingType,setSelectedOption:e=>a({...t,buildingType:e})})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Floor Space (Square Meters) (Optional)"})}),(0,fe.jsx)(ie.ks,{onChange:e=>a({...t,floorSpace:e.target.value}),type:"number",min:"0",value:t.floorSpace,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Occupation Start Date (Optional)"})}),(0,fe.jsx)(ie.lr,{onDayClick:e=>a({...t,startDate:e||null}),name:"startDate",selectedDate:t.startDate?new Date(t.startDate):t.startDate,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Occupation End Date (Optional)"})}),(0,fe.jsx)(ie.lr,{onDayClick:e=>a({...t,endDate:e||null}),name:"endDate",selectedDate:t.endDate?new Date(t.endDate):t.endDate,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Lease Renewal Date (Optional)"})}),(0,fe.jsx)(ie.lr,{onDayClick:e=>a({...t,leaseRenewalDate:e||null}),name:"leaseDate",selectedDate:t.leaseRenewalDate?new Date(t.leaseRenewalDate):t.leaseRenewalDate,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsxs)(Bv,{children:[(0,fe.jsx)(Pv,{children:"Shared Emission Percentage (Optional)"}),(0,fe.jsx)(Vx.A,{title:"Use this field if emissions generated from this locations are shared with another organisation. The percentage entered will be what you are responsible for. This doesn't apply to the Transport, Hotel Stays/Homeworking or Financed Emission utilities.",children:(0,fe.jsx)(f.Icons.InfoOutlined,{color:"info"})})]}),(0,fe.jsx)(ie.ks,{onChange:e=>{const n=""===e.target.value?null:parseFloat(e.target.value);a({...t,sharedEmissionPercentage:n})},type:"number",min:"0",max:"100",step:".01",value:null===t.sharedEmissionPercentage||void 0===t.sharedEmissionPercentage?"":t.sharedEmissionPercentage,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Notes (Optional)"})}),(0,fe.jsx)(ie.fs,{onChange:e=>a({...t,notes:e.target.value}),value:t.notes,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Fv,{item:!0,children:[(0,fe.jsx)(Bv,{children:(0,fe.jsx)(Pv,{children:"Description (Optional) (Appears on projects map - max 5 lines of text)"})}),(0,fe.jsx)(ie.fs,{onChange:e=>a({...t,description:e.target.value}),value:t.description,box:!0})]})}),(0,fe.jsx)(ie.fI,{children:(0,fe.jsxs)(Fv,{container:!0,item:!0,span:6,children:[(0,fe.jsx)(Pv,{children:"Enable Project Page Button"}),(0,fe.jsx)(ie.Sc,{name:"enableProject",onChange:e=>a({...t,enableProject:e.target.checked}),checked:t.enableProject})]})}),m&&(0,fe.jsx)(ie.fI,{children:(0,fe.jsxs)(Fv,{container:!0,item:!0,span:6,children:[(0,fe.jsx)(Pv,{children:"Display on impact dashboard"}),(0,fe.jsx)(ie.Sc,{name:"displayOnImpactDashboard",onChange:e=>a({...t,displayOnImpactDashboard:e.target.checked}),checked:t.displayOnImpactDashboard})]})}),(0,fe.jsx)(Nh,{showCreateDepartment:s,setShowCreateDepartment:d,passedAccountId:n,onComplete:()=>{}})]})},$v=(e,n)=>""===e.trim()?`${n} cannot be empty.`:null,Mv=e=>e.map(e=>e.value),Vv=(e,n)=>e&&!n?{id:(0,Wa.A)(),operation:"CREATE"}:!e&&n?{id:n,operation:"DELETE"}:null;var Gv=t(82946),zv=t(6131),Wv=t(35429);const qv=(0,le.default)(e=>(0,fe.jsx)(rT.A,{...e,disableGutters:!0,elevation:0,square:!0}))(e=>{let{theme:n}=e;return{border:`${n.geometry.md.border} solid ${n.colors.inputs.normal.background}`,borderRadius:"7.5px",marginTop:n.geometry.sm.spacing,marginBottom:n.geometry.sm.spacing,"&::before":{display:"none"}}}),Jv=(0,le.default)(ie.JU)(e=>{let{theme:n}=e;return{fontWeight:n.fonts.weight.bold}}),Yv=(0,le.default)(ie.JU)(e=>{let{theme:n}=e;return{marginBottom:n.geometry.xs.spacing}}),Hv=(0,le.default)(ie.fI)(e=>{let{theme:n}=e;return{marginBottom:n.geometry.sm.spacing}}),Kv=(0,le.default)("div")(e=>{let{theme:n}=e;return{display:"flex",alignItems:"start",marginBottom:n.geometry.sm.spacing}}),Qv=(0,le.default)(Gv.A)(e=>{let{theme:n}=e;return{marginLeft:`${n.geometry.xxs.spacing} !important`,marginTop:"15px!important"}}),Zv=(0,le.default)(Wv.default)({width:"18px !important",height:"18px !important"}),Xv=(0,le.default)(ie.ks)(e=>{let{theme:n}=e;return{marginRight:n.geometry.xxs.spacing}}),eC=()=>({id:(0,Wa.A)(),name:"",value:""});function nC(e){let{attributes:n,onChange:t,onRemove:a,onTouch:i,errors:l}=e;const r=n?.length?n:[eC()],[o,s]=(0,g.useState)(!1);(0,g.useEffect)(()=>{l?.length&&s(!0)},[l]);const d=(e,n,a)=>{t(r.map(t=>t.id===a.id?{...a,[n]:e}:t)),i(a,n)},c=r.length>1||""!==r[0].name,u=(e,n)=>l?.find(t=>t.id===e&&t.field===n)?.message;return(0,fe.jsxs)(qv,{onChange:()=>s(!o),expanded:o,children:[(0,fe.jsx)(oT.A,{expandIcon:(0,fe.jsx)(zv.A,{}),children:(0,fe.jsx)(Jv,{children:"Add advanced details"})}),(0,fe.jsxs)(sT.A,{children:[(0,fe.jsx)(Hv,{container:!0,children:(0,fe.jsxs)(ie.fv,{item:!0,children:[(0,fe.jsx)(Yv,{children:"Custom attributes"}),r.map(e=>(0,fe.jsxs)(Kv,{children:[(0,fe.jsx)(Xv,{placeholder:"Name",value:e.name,error:u(e.id,"name"),box:!0,onChange:n=>d(n.target.value,"name",e)}),(0,fe.jsx)(ie.ks,{placeholder:"Value",value:e.value,error:u(e.id,"value"),box:!0,onChange:n=>d(n.target.value,"value",e)}),(0,fe.jsx)(Qv,{size:"small",disabled:!c,onClick:()=>{return n=e,1===r.length?t([eC()]):t(r.filter(e=>e.id!==n.id)),void a(n);var n},children:(0,fe.jsx)(Zv,{})})]},e.id))]})}),(0,fe.jsx)(ie.$n,{type:"button",outline:!0,size:"sm",onClick:()=>{t([...r,eC()])},children:"Add new attribute"})]})]})}const tC=e=>""===e.trim();function aC(e){return tC(e)?"must not be blank":e.length>50?"must not exceed 50 chars":/^[a-zA-Z0-9 _-]+$/.test(e)?void 0:"can only include letters, digits, spaces, underscores (_), and dashes (-)"}function iC(e){if(tC(e))return"must not be blank"}function lC(e){const[n,t]=(0,g.useState)(()=>(e=>e?Object.entries(JSON.parse(e)).map(e=>{let[n,t]=e;return{id:n,name:n,value:t}}):[])(e)),[a,i]=(0,g.useState)([]),l=(e,n)=>{let{id:t}=e;return i(a?.filter(e=>!(e.id===t&&(!n||e.field===n))))};return{attributesHandler:{attributes:n,errors:a,onChange:t,onRemove:l,onTouch:l},validateAttributes:(0,g.useCallback)(()=>{const e=[],t=n.filter(e=>{let{name:n,value:t}=e;return!tC(n)||!tC(t)});for(const{id:n,name:a,value:i}of t){const t=aC(a);t&&e.push({id:n,field:"name",message:t});const l=iC(i);l&&e.push({id:n,field:"value",message:l})}if(0===e.length){const n=[];for(const{id:a,name:i}of t){const t=i.trim().toLowerCase();n.includes(t)?e.push({id:a,field:"name",message:"It's already defined"}):n.push(t)}}return i(e),0===e.length},[n]),prepareAttributes:(0,g.useCallback)(()=>JSON.stringify(n.reduce((e,n)=>{let{name:t,value:a}=n;return t=t.trim(),a=a.trim(),""===t?e:{...e,[t]:a}},{})),[n])}}const rC=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,oC=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,sC=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,dC=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,cC=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,uC=le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
  padding-top: ${e=>e.theme.geometry.md.spacing};
`,pC=$u(e=>{const{accountId:n,onSuccess:t,refreshGrid:a,onUpdate:i,showModal:l,locationPoints:r={wasteOut:!1,wasteIn:!1}}=e,{countryList:o,defaultCountry:s}=Bo(),d={hasError:!1,isSuccess:!1,values:{locationId:{text:(0,Wa.A)()},locationName:{text:"",error:""},address1:{text:"",error:""},address2:{text:"",error:""},address3:{text:"",error:""},city:{text:"",error:""},postcode:{text:"",error:""},phone:{text:"",error:""},selectCountry:null,locationPoints:{wasteOut:{checked:(0,hn.get)(r,"wasteOut",!1)},wasteIn:{checked:(0,hn.get)(r,"wasteIn",!1)}},tags:[],aliases:[]},notification:{message:"",color:"success",id:null},isSubmitted:!1},[c,u]=(0,g.useState)(d),[p,m]=(0,g.useState)({code:"",tenure:null,region:null,buildingType:null,floorSpace:null,startDate:null,endDate:null,leaseRenewalDate:null,notes:"",description:"",departments:[],sharedEmissionPercentage:null,enableProject:!1,displayOnImpactDashboard:!0}),f=e=>{e.persist(),u(n=>({...n,values:{...n.values,[e.target.name]:{text:e.target.value,error:null}}}))},y=e=>{u(n=>({...n,values:{...c.values,locationPoints:{...c.values.locationPoints,[e.target.name]:{checked:e.target.checked}}}}))},{loading:h,error:T,data:b}=(0,x.IT)(fv,{variables:{accountId:n}}),v=h||T?[]:b.getTagsByAccountId.map(e=>({label:e.tagName,value:e.id})),C=!((0,hn.get)(r,"wasteIn",!1)||(0,hn.get)(r,"wasteOut",!1)),[k]=(0,ln.n)(cv,{onError:e=>{u(n=>({...n,notification:{message:`Something went wrong: ${e.message}. If the problem persists, contact support.`,color:"danger"},hasError:!0,isSuccess:!1,isSubmitted:!1}))},onCompleted:e=>{u(n=>({...n,createdAccountId:e.createLocationWithLocationPoints.id})),t(`The location ${e.createLocationWithLocationPoints.name} has been created!`,"success",l?e.createLocationWithLocationPoints.id:[e.createLocationWithLocationPoints.id,e.createLocationWithLocationPoints.address.id],e.createLocationWithLocationPoints),a()},update:(e,n)=>{i&&i(e,n)}}),{attributesHandler:S,validateAttributes:N,prepareAttributes:A}=lC(),R=(0,g.useCallback)(e=>{e.preventDefault();const{values:{locationName:t,address1:a,city:i,postcode:l,phone:r}}=c,o=$v(t.text,"Location Name"),d=$v(a.text,"Address 1"),m=$v(i.text,"City"),f=$v(l.text,"Postcode")||((0,Rh.isPostalCode)(l.text,"any")?null:"Please enter a valid postcode."),y=r.text?Xb(r.text)?null:"Please enter a valid phone number using only characters 0 - 9":null,g=N();o||d||m||f||y||!g?u(e=>({...e,values:{...e.values,locationName:{...e.values.locationName,error:o},address1:{...e.values.address1,error:d},city:{...e.values.city,error:m},postcode:{...e.values.postcode,error:f},phone:{...e.values.phone,error:y}}})):(k({variables:{locId:(0,Wa.A)(),locName:c.values.locationName.text,accId:n,add1:c.values.address1.text||null,add2:c.values.address2.text||null,add3:c.values.address3.text||null,city:c.values.city.text,post:c.values.postcode.text,phone:c.values.phone.text?c.values.phone.text.trim():null,wasteOut:c.values.locationPoints.wasteOut.checked?(0,Wa.A)():null,wasteIn:c.values.locationPoints.wasteIn.checked?(0,Wa.A)():null,tags:Mv(c.values.tags),aliases:Mv(c.values.tags),countryId:c.values.selectCountry?.value||s.value,...p,departments:p?.departments.map(e=>e.id)||[],startDate:Qa(p?.startDate),endDate:Qa(p?.endDate),leaseRenewalDate:Qa(p?.leaseRenewalDate),attributes:A()}}),u(e=>({...e,isSubmitted:!0})))},[n,s?.value,p,c,k,N,A]);return(0,fe.jsxs)(rC,{name:"create-location",children:[c.notification.message&&(0,fe.jsx)(ie.Eg,{name:"create-location__notification",LocationId:c.createdAccountId,show:!0,color:c.notification.color,onClose:()=>{u(e=>({...e,notification:{message:null,color:null}}))},children:c.notification.message}),(0,fe.jsxs)("form",{name:"create-location__form",children:[(0,fe.jsx)(cC,{name:"create-location__heading",size:"lg",children:"Add New Location"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(oC,{item:!0,children:[(0,fe.jsx)(dC,{children:(0,fe.jsx)(sC,{children:"Location Name"})}),(0,fe.jsx)(ie.ks,{disabled:c.isSubmitted,onChange:f,value:c.values.locationName.text,error:c.values.locationName.error,name:"locationName",box:!0})]})}),(0,fe.jsx)(av,{id:"LocationAddressPropertySheet",name:"LocationAddressPropertySheet",address1:c.values.address1,address2:c.values.address2,address3:c.values.address3,city:c.values.city,postcode:c.values.postcode,phone:c.values.phone,handleChange:f,handleSelectChange:e=>{u(n=>({...n,values:{...n.values,[e.target.name]:{value:e.target.select.value,label:e.target.select.label}}}))},disabled:c.isSubmitted,countryList:o||[],selectCountry:c.values.selectCountry||s}),C&&(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(oC,{container:!0,item:!0,span:6,children:[(0,fe.jsx)(sC,{id:"create-location-wasteout-label",name:"create-location-wasteout-label",children:"Waste Out"}),(0,fe.jsx)(ie.Sc,{disabled:c.isSubmitted,id:"create-location-wasteout",name:"wasteOut",onChange:y,checked:c.values.locationPoints.wasteOut.checked})]}),(0,fe.jsxs)(oC,{container:!0,item:!0,span:6,children:[(0,fe.jsx)(sC,{id:"create-location-wastein-label",name:"create-location-wastein-label",children:"Waste In"}),(0,fe.jsx)(ie.Sc,{disabled:c.isSubmitted,id:"create-location-wastein",name:"wasteIn",onChange:y,checked:c.values.locationPoints.wasteIn.checked})]})]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(oC,{container:!0,item:!0,span:12,children:(0,fe.jsxs)(sC,{id:"create-location-tags-label",name:"create-location-tags-label",children:["Tags (Optional)",T?(0,fe.jsx)(ie.Kw,{error:T,children:e=>{let{icon:n}=e;return(0,fe.jsx)(uC,{children:(0,fe.jsx)(ie.Wz,{name:"location-tag__error",icon:n,title:"Tags failed to load"})})}}):(0,fe.jsx)(ie.KF,{id:"create-location-tag-multiselection",name:"create-location-tag-multiselection",pill:!1,isLoading:h,components:{LoadingIndicator:()=>(0,fe.jsx)(ie.Ip,{name:"tag-location-Loading",size:"xxs"})},onChange:e=>{const n=e.target.select;u(e=>({...e,values:{...e.values,tags:n}}))},isDisabled:h||T,multiValueColor:"tertiary",options:v,value:c.values.tags})]})})}),(0,fe.jsx)(Uv,{accountId:n,selectedOptions:p,setSelectedOptions:m}),(0,fe.jsx)(nC,{...S}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(oC,{item:!0,children:(0,fe.jsx)(ie.$n,{name:"create-location--create",color:"success",type:"button",onClick:R,disabled:!c.values.locationName.text||c.isSubmitted,children:"Create Location"})})})]})]})}),mC=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,fC=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,yC=(0,le.default)("p")`
  width: fit-content;
`,gC=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,hC=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,xC=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,TC=le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
  padding-top: ${e=>e.theme.geometry.md.spacing};
`,bC=$u(function(e){let{locationId:n,accountId:t,name:a,add1:i,add2:l,add3:r,city:o,postcode:s,phone:d,wasteIn:c,wasteOut:u,tags:p,onSuccess:m,refreshGrid:f,countryList:y,defaultCountry:h,metadata:T,attributes:b}=e;const v={hasError:!1,isSuccess:!1,values:{locationName:{text:a||"",error:""},address1:{text:i||"",error:""},address2:{text:l||"",error:""},address3:{text:r||"",error:""},city:{text:o||"",error:""},postcode:{text:s||"",error:""},phone:{text:d||"",error:""},locationPoints:{wasteIn:{initialCheck:!!c,checked:!!c,id:c},wasteOut:{initialCheck:!!u,checked:!!u,id:u}},tags:p.map(e=>({value:e.id,label:e.tagName})),aliases:p.map(e=>({value:e.id,label:e.tagName})),selectCountry:{value:h.id,label:h.name}},notification:{message:"",color:"success",id:null},isSubmitted:!1},[C,k]=(0,g.useState)(v),{attributesHandler:S,validateAttributes:N,prepareAttributes:A}=lC(b),R=e=>{const n=e.target.name,t=e.target.value;k(e=>({...e,values:{...C.values,[n]:{text:t,error:null}}}))},[D,L]=(0,g.useState)({code:T?.code||"",tenure:T?.tenure?.id||null,region:T?.region?.id||null,buildingType:T?.buildingType?.id||null,floorSpace:T?.floorSpace||null,startDate:T?.startDate||null,endDate:T?.endDate||null,leaseRenewalDate:T?.leaseRenewalDate||null,notes:T?.notes||"",description:T?.description||"",departments:T?.departments||[],sharedEmissionPercentage:T?.sharedEmissionPercentage??null,enableProject:T?.enableProject??!1,displayOnImpactDashboard:T?.displayOnImpactDashboard??!0}),I=e=>{const n=e.target.name;k(e=>({...e,values:{...e.values,locationPoints:{...e.values.locationPoints,[n]:{...e.values.locationPoints[n],checked:!e.values.locationPoints[n].checked}}}}))},{loading:j,error:w,data:O}=(0,x.IT)(fv,{variables:{accountId:t}}),E=j||w?[]:O.getTagsByAccountId.map(e=>({label:e.tagName,value:e.id})),[_]=(0,ln.n)(uv,{onError:e=>{const n=e.toString().includes("Name_AccountID_UNIQUE")?"The location name should be unique.":`Something went wrong: ${e.message}`;k(e=>({...e,notification:{message:`${n} If the problem persists, contact support.`,color:"danger"},hasError:!0,isSuccess:!1,isSubmitted:!1}))},onCompleted:e=>{m(`The location ${e.updateLocationWithLocationPoints.name} has been updated!`,"success",null),f()}});return(0,fe.jsxs)(mC,{name:"update-account",children:[C.notification.message&&(0,fe.jsx)(ie.Eg,{name:"update-location__notification",show:!0,color:C.notification.color,onClose:()=>{k(e=>({...e,notification:{message:null,color:null}}))},children:C.notification.message}),(0,fe.jsxs)("form",{name:"update-location__form",onSubmit:e=>{((e,a)=>{e.preventDefault();const i=C.values;i.locationName.error=$v(i.locationName.text,"Location Name"),i.address1.error=$v(i.address1.text,"Address 1"),i.city.error=$v(i.city.text,"City"),i.postcode.error=$v(i.postcode.text,"Postcode")||((0,Rh.isPostalCode)(i.postcode.text,"any")?null:"Please enter a valid postcode."),i.phone.error=i.phone.text?Xb(i.phone.text)?null:"Please enter a valid phone number using only characters 0 - 9":null;const l=N();i.locationName.error||i.address1.error||i.city.error||i.postcode.error||i.phone.error||!l?k(e=>({...e,values:i})):(a({variables:{locId:n,locName:C.values.locationName.text,accId:t,add1:C.values.address1.text||null,add2:C.values.address2.text||null,add3:C.values.address3.text||null,city:C.values.city.text,post:C.values.postcode.text,phone:C.values.phone.text?C.values.phone.text.trim():null,wasteOut:Vv(C.values.locationPoints.wasteOut.checked,C.values.locationPoints.wasteOut.id),wasteIn:Vv(C.values.locationPoints.wasteIn.checked,C.values.locationPoints.wasteIn.id),tags:Mv(C.values.tags),aliases:Mv(C.values.tags),countryId:C.values.selectCountry.value,...D,departments:D?.departments.map(e=>e.id)||[],startDate:Qa(D?.startDate),endDate:Qa(D?.endDate),leaseRenewalDate:Qa(D?.leaseRenewalDate),attributes:A()}}),k(e=>({...e,isSubmitted:!0})))})(e,_)},children:[(0,fe.jsx)(xC,{name:"update-location__heading",size:"lg",children:"Update Location"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(fC,{item:!0,children:[(0,fe.jsx)(hC,{children:(0,fe.jsx)(gC,{children:"Location Name"})}),(0,fe.jsx)(ie.ks,{disabled:C.isSubmitted,onChange:R,value:C.values.locationName.text,error:C.values.locationName.error,name:"locationName",box:!0})]})}),(0,fe.jsx)(av,{id:"LocationAddressPropertySheet",name:"LocationAddressPropertySheet",address1:C.values.address1,address2:C.values.address2,address3:C.values.address3,city:C.values.city,postcode:C.values.postcode,phone:C.values.phone,handleChange:R,handleSelectChange:e=>{k(n=>({...n,values:{...C.values,[e.target.name]:{value:e.target.select.value,label:e.target.select.label}}}))},disabled:C.isSubmitted,countryList:y,selectCountry:C.values.selectCountry}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(fC,{container:!0,item:!0,span:6,children:[(0,fe.jsx)(gC,{id:"update-location-wasteout-label",name:"update-location-wasteout-label",children:"Waste Out"}),(0,fe.jsx)(Vx.A,{placement:"right-end",title:"Waste Out can not be removed",open:C.values.locationPoints.wasteOut.initialCheck,disableHoverListener:!0,children:(0,fe.jsx)(yC,{children:(0,fe.jsx)(ie.Sc,{id:"update-location-wasteout",name:"wasteOut",onChange:I,checked:C.values.locationPoints.wasteOut.checked,disabled:C.values.locationPoints.wasteOut.initialCheck})})})]}),(0,fe.jsxs)(fC,{container:!0,item:!0,span:6,children:[(0,fe.jsx)(gC,{id:"update-location-wastein-label",name:"update-location-wastein-label",children:"Waste In"}),(0,fe.jsx)(Vx.A,{placement:"right-end",title:"Waste In can not be removed",open:C.values.locationPoints.wasteIn.initialCheck,disableHoverListener:!0,children:(0,fe.jsx)(yC,{children:(0,fe.jsx)(ie.Sc,{id:"update-location-wastein",name:"wasteIn",onChange:I,checked:C.values.locationPoints.wasteIn.checked,disabled:C.values.locationPoints.wasteIn.initialCheck})})})]})]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(fC,{container:!0,item:!0,span:12,children:(0,fe.jsxs)(gC,{id:"update-location-tags-label",name:"update-location-tags-label",children:["Tags (Optional)",w?(0,fe.jsx)(ie.Kw,{error:w,children:e=>{let{icon:n}=e;return(0,fe.jsx)(TC,{children:(0,fe.jsx)(ie.Wz,{name:"location-tag__error",icon:n,title:"Tags failed to load"})})}}):(0,fe.jsx)(ie.KF,{name:"update-location-tag-multiselection",id:"update-location-tag-multiselection",pill:!1,isLoading:j,components:{LoadingIndicator:()=>(0,fe.jsx)(ie.Ip,{name:"tag-location-Loading",size:"xxs"})},onChange:e=>{const n=e.target.select;k(e=>({...e,values:{...e.values,tags:n}}))},isDisabled:j||w,multiValueColor:"tertiary",value:C.values.tags,options:E})]})})}),(0,fe.jsx)(Uv,{accountId:t,selectedOptions:D,setSelectedOptions:L,locationId:n}),(0,fe.jsx)(nC,{...S}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(fC,{item:!0,children:(0,fe.jsx)(ie.$n,{name:"update-location--create",color:"success",submit:!0,disabled:!C.values.locationName.text||C.isSubmitted,children:"Update Location"})})})]})]})});var vC=t(73964),CC=t(8716),kC=t.n(CC);const SC=e=>`<div><p>Please click the link to download a template for this upload, including a separate tab for guidance.</p> <a style="text-decoration: underline" href=${e} download>Template Link</a></div>`,NC={fields:[],settings:{developmentMode:"Develop"===De("REACT_APP_ENVIRONMENT_NAME"),importIdentifier:"",allowCustomFields:!1,invalidDataBehavior:"BLOCK_SUBMIT",backendSyncMode:"FULL_DATA",autoMapHeaders:!0,manualInputDisabled:!1,displayEncoding:!1,matchValuesStep:{maxMappableSelectValues:1e3},uploadStep:{helpText:"Please click the link to download a template for this upload, including a separate tab for guidance."},reviewStep:{processingText:"We're currently processing your data upload now and hope to be complete shortly",enableUserTransformations:!0},styleOverrides:{global:{primaryTextColor:"#394B59",secondaryTextColor:"#667D8D"},primaryButton:{textColor:"#FFFFFF",backgroundColor:"#2E3EFF",borderRadius:"1000000px"},secondaryButton:{textColor:"#FFFFFF",backgroundColor:"#46464F",borderRadius:"1000000px"}}},style:{backgroundColor:"#0094c9",borderColor:"#0094c9",borderRadius:"32px",borderStyle:"solid",borderWidth:"1px",boxSizing:"border-box",color:"#ffffff",cursor:"pointer",display:"inline-block",fontFamily:'"Proxima Nova", Helvetica, Arial, sans-serif',fontSize:"16px",fontWeight:400,lineHeight:"1.4em",marginLeft:"16px",opacity:1,padding:"16px 24px",textAlign:"center",textDecoration:"none",width:"auto"},schemaIds:{dev:"",qa:"",uat:"",live:""}},AC={...NC.settings},RC={...NC.schemaIds},DC={fields:[],settings:AC,style:{...NC.style},schemaIds:RC},LC={tagIds:"getTagsByAccountId",departmentIds:"getAccountInfo.departments",countryId:"getAllCountries",tenureId:"getLocationMetadataOptionsForAccount.tenures",buildingTypeId:"getLocationMetadataOptionsForAccount.buildingTypes",regionId:"getLocationMetadataOptionsForAccount.regions"},IC=[{key:"id",type:"string",label:"ID",description:"Rio ID. Enter it if you want to update existing location. Example value: 5a72c22b-6c56-4eb1-802c-b26d91e7953b"},{key:"name",type:"string",label:"Name",description:"Name of the location",validators:[{validate:"unique_case_insensitive"},{validate:"required"}]},{key:"address1",type:"string",label:"Address 1",validators:[{validate:"required"}],description:"First line of the address"},{key:"address2",type:"string",label:"Address 2",validators:[],description:"Address 2 (optional)"},{key:"address3",type:"string",label:"Address 3",validators:[],description:"Address 3 (optional)"},{key:"city",type:"string",label:"City",description:"City",validators:[{validate:"required"}]},{key:"postCode",type:"string",label:"Postcode",description:"Postcode",validators:[{validate:"required"}]},{key:"countryId",type:"select",label:"Country",selectOptions:[],description:"Country",validators:[{errorMessage:"Please ensure you have selected a country for your locations",validate:"required"}]},{key:"wasteIn",type:"checkbox",label:"Waste In",description:"Check if it is a Waste In location"},{key:"wasteOut",type:"checkbox",label:"Waste Out",description:"Check if it is a Waste Out location"},{key:"tagIds",type:"select",label:"Tags",description:"Selects tags (optional)",manyToOne:!0},{key:"departmentIds",type:"select",label:"Departments",description:"Selects departments (optional)",manyToOne:!0},{key:"regionId",type:"select",label:"Region",selectOptions:[],description:"Select region (optional)"},{key:"tenureId",type:"select",label:"Tenure",selectOptions:[],description:"Select tenure (optional)"},{key:"buildingTypeId",type:"select",label:"Building Type",selectOptions:[],description:"Select building type (optional)"},{key:"locationCode",type:"string",label:"Location code",description:"Location code (Location ID / ePIM) (optional)",validators:[{level:"warning",validate:"unique_case_insensitive",errorMessage:"Location code is usually unique, but this location code is appearing multiple times in this file. After the upload there will be multiple locations with the same code."}]},{key:"phone1",type:"string",label:"Phone",description:"Phone number"},{key:"floorSpace",type:["number","default"],label:"Floor space",description:"Enter floor space (square meters) (optional)",invalidValueMessage:"Please ensure floor space is entered as a number using the m2 unit"},{key:"sharedEmissionPercentage",type:["number",{min:0,max:100}],label:"Shared emissions (%)",description:"Enter the percentage of shared emissions for this location (optional)",invalidValueMessage:"Please ensure shared emissions percentage is entered as a number between 0 and 100"},{key:"startDate",type:["date",{locale:"en-GB"}],label:"Occupation start date",description:"Enter occupation start date (optional)"},{key:"endDate",type:["date",{locale:"en-GB"}],label:"Occupation end date",description:"Enter occupation end date (optional)"},{key:"leaseRenewalDate",type:["date",{locale:"en-GB"}],label:"Lease renewal date",description:"Enter lease renewal date (optional)"},{key:"notes",type:"string",label:"Notes",description:"Enter notes (optional)"}];const jC=t.p+"locations-template-5ce902ec91c79c88510c.xlsx",wC=[De("REACT_APP_BASE_URL"),jC].join("");function OC(e){let{accountId:n,gridApi:t}=e;const a=Vr(n),i=function(){const e=Je(),[n]=(0,Ul._)(xv,{fetchPolicy:"network-only"}),t=za(n,n=>{let{limit:t,offset:a}=n;return{limit:t,offset:a,accountId:e}},e=>e.getLocationsPage.rows,1e3);return async e=>{const n=[],a=new Set,i=await pa(t());for(const e of i)a.add(e.id);for(const t of e)!t.value||a.has(t.value)?n.push(t):n.push({...t,info:[{message:"One or more locations you’re trying to update weren’t recognised in your upload, please review",level:"error"}]});return n}}(),{validateLocationCodeInDromoRows:l,getDuplicateLocationCodes:r,isLoading:o}=_v(),s=Yo(),{showNotification:d}=tn(),c=(0,g.useRef)([]),[u]=(0,ln.n)(gv),p=function(e){const{data:n}=function(e){return(0,x.IT)(hv,{variables:{accountId:e,accountIdAsString:e}})}(e);return(0,g.useMemo)(()=>IC.map(e=>"select"===e.type?{...e,type:"select",selectOptions:Ig()(n,LC[e.key],[])}:e),[n])}(n),m=(0,g.useCallback)(async e=>{try{const a=e.map(Ki);await Promise.all(kC()(a,1e3).map(async e=>u({variables:{locations:e,accountId:n}}))),t.refreshServerSide({purge:!0}),d("The locations have been uploaded!","success")}catch(e){d("Something unexpected happened. Please review your upload document and try again. If the problem persists, please contact support.","danger")}},[n,t,d,u]),f=(0,g.useMemo)(()=>a&&s?{id:s.id,name:Wi(s),email:s.email,companyId:a.id,companyName:a.name}:null,[a,s]),y=(0,g.useCallback)(async e=>{const n=r(e);if(n.length>0&&!(0,hn.isEqual)(c.current,n))return c.current=n,{message:`The following location codes will have duplicates after the upload: ${n.join(", ")}. If this is your intention, press "Finish" again to finalize the upload.`,cancel:!0}},[r]);return f?o?(0,fe.jsx)(ie.$n,{loading:!0,children:"Upload"}):(0,fe.jsx)(vC.A,{licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:f,style:DC.style,settings:{...DC.settings,importIdentifier:"Locations",uploadStep:{...DC.settings.uploadStep,helpText:SC(wC)},manualInputDisabled:!0},columnHooks:[{fieldName:"id",callback:i}],bulkRowHooks:[l],fields:p,onResults:m,beforeFinish:y,children:"Upload"}):null}const EC=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,_C=le.default.img`
  width: 50px;
  height: 50px;
  object-fit: cover;
`,FC=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  margin-right: ${e=>e.theme.geometry.sm.spacing};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,PC=e=>{let{data:{id:n},onEdit:t,onPicture:a}=e;return(0,fe.jsxs)(EC,{children:[(0,fe.jsx)(FC,{onClick:()=>a(n),children:(0,fe.jsx)(ie.In,{name:`location-row__picture--${n}`,icon:"image"})}),(0,fe.jsx)(FC,{onClick:()=>t(n),children:(0,fe.jsx)(ie.In,{name:`location-row__edit--${n}`,icon:"pencil-alt"})})]})},BC=e=>{let{data:n,field:t}=e;return(0,fe.jsx)("input",{type:"checkbox",checked:!!n[t]})},UC=e=>{let{data:{picture:n}}=e;return n?(0,fe.jsx)(_C,{src:n,alt:"Location Picture"}):null};function $C(e){let{onEdit:n,fetchRows:t,accountId:a,setGridApi:i,onPictureClick:l}=e;const r=(0,C.m)(),o=qr({autoFit:!0}),s=!!lr().data.find(e=>e.startsWith("editLocation")),{showNotification:d}=tn(),c=async e=>{try{const{data:{getLocationsPageFilter:n}}=await r.query({query:yv,variables:{accountId:a,field:e.colDef.colId}});e.success(n.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){E.Cp(n),d(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning"),e.success([])}},u=(0,g.useMemo)(()=>({async getRows(e){try{const{startRow:n,sortModel:i,filterModel:l}=e.request,r={accountId:a,offset:n,limit:25,sort:wn(i),filters:jn(l)},{rows:o,totalRows:s}=await t(r);e.success({rowData:o,rowCount:s})}catch(n){E.Cp(n),e.fail()}}}),[a,t]),p={pagination:!0,paginationPageSize:25,paginationPageSizeSelector:!1,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,cellStyle:{height:"auto"}},columnDefs:[{headerName:"Name",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],newRowsAction:"keep"},field:"name",resizable:!0,sortable:!0},{colId:"address1",headerName:"Address 1",field:"address.address1",filter:"agTextColumnFilter",resizable:!0,sortable:!0},{colId:"address2",headerName:"Address 2",field:"address.address2",filter:"agTextColumnFilter",resizable:!0,sortable:!0,hide:!0},{colId:"address3",headerName:"Address 3",field:"address.address3",filter:"agTextColumnFilter",resizable:!0,sortable:!0,hide:!0},{colId:"city",headerName:"City",field:"address.city",filter:"agTextColumnFilter",resizable:!0,sortable:!0},{colId:"postcode",headerName:"Postcode",field:"address.postcode",filter:"agTextColumnFilter",resizable:!0,sortable:!0},{colId:"country",headerName:"Country",field:"address.country.name",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},resizable:!0,sortable:!0},{colId:"attributes",headerName:"Custom attributes",field:"attributes",filter:"agTextColumnFilter",valueFormatter:e=>{let{value:n}=e;try{const e=JSON.parse(n);return Object.entries(e).map(e=>{let[n,t]=e;return`${n}: ${t}`}).join(", ")||"-"}catch{return"-"}},resizable:!0,sortable:!0},{colId:"wasteIn",field:"wasteIn",headerName:"Waste In",valueFormatter:e=>{let{value:n}=e;return n?"Yes":"No"},cellRenderer:"checkWasteIn",filter:!1,sortable:!1,resizable:!0,hide:!0},{colId:"wasteOut",headerName:"Waste Out",field:"wasteOut",valueFormatter:e=>{let{value:n}=e;return n?"Yes":"No"},cellRenderer:"checkWasteOut",filter:!1,sortable:!1,resizable:!0,hide:!0},{colId:"tags",headerName:"Tags",field:"tags",autoHeight:!0,valueFormatter:e=>{let{value:n=[]}=e;return n.map(e=>e.tagName).join(", ")},filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},sortable:!1,resizable:!0,hide:!0},{colId:"departments",headerName:"Departments",field:"departments",autoHeight:!0,valueFormatter:e=>{let{value:n=[]}=e;return n.map(e=>e.name).join(", ")},filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},sortable:!1,resizable:!0,hide:!0},{colId:"region",headerName:"Region",field:"region.name",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},resizable:!0,sortable:!0,hide:!0},{colId:"tenure",headerName:"Tenure",field:"tenure.name",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},resizable:!0,sortable:!0,hide:!0},{colId:"buildingType",headerName:"Building Type",field:"buildingType.name",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},resizable:!0,sortable:!0,hide:!0},{colId:"code",headerName:"Location Code",field:"code",filter:"agTextColumnFilter",resizable:!0,sortable:!0,hide:!0},{colId:"phone1",headerName:"Phone",field:"address.phone1",filter:!1,resizable:!0,sortable:!1,hide:!0},{colId:"floorSpace",headerName:"Floor Space",field:"floorSpace",filter:"agNumberColumnFilter",resizable:!0,sortable:!0,hide:!0},{colId:"sharedEmissionPercentage",headerName:"Shared Emissions (%)",field:"sharedEmissionPercentage",filter:"agNumberColumnFilter",resizable:!0,sortable:!0,hide:!0},{colId:"startDate",headerName:"Occupation start Date",field:"startDate",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},sortable:!0,resizable:!0,hide:!0},{colId:"endDate",headerName:"Occupation end Date",field:"endDate",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},resizable:!0,sortable:!0,hide:!0},{colId:"leaseRenewalDate",headerName:"Lease Renewal Date",field:"leaseRenewalDate",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},resizable:!0,sortable:!0,hide:!0},{colId:"notes",headerName:"Notes",field:"notes",filter:"agTextColumnFilter",resizable:!0,sortable:!0,hide:!0},{colId:"picture",headerName:"Picture",field:"picture",resizable:!0,sortable:!0,hide:!0,cellRenderer:"picture"},{colId:"id",headerName:"ID",field:"id",filter:"agTextColumnFilter",resizable:!0,sortable:!0,hide:!0}],rowStyle:{width:"100%",display:"flex",alignItems:"center"},rowHeight:58};s&&p.columnDefs.push({headerName:"Actions",cellRenderer:"action",filter:!1,sortable:!1,resizable:!0});const m={action:e=>(0,fe.jsx)(PC,{...e,onEdit:n,onPicture:l}),checkWasteIn:e=>(0,fe.jsx)(BC,{...e,field:"wasteIn"}),checkWasteOut:e=>(0,fe.jsx)(BC,{...e,field:"wasteOut"}),picture:e=>(0,fe.jsx)(UC,{...e})};return(0,fe.jsx)(Pg,{gridOptions:p,paginationPageSize:25,cacheBlockSize:25,serverSideDatasource:u,onFirstDataRendered:o.onFirstDataRendered,onFilterChanged:o.onFilterChanged,onSortChanged:o.onSortChanged,onColumnVisible:o.onSaveGridColumnState,onColumnPinned:o.onSaveGridColumnState,onColumnResized:o.onSaveGridColumnState,onColumnMoved:o.onSaveGridColumnState,onColumnRowGroupChanged:o.onSaveGridColumnState,onColumnValueChanged:o.onSaveGridColumnState,onColumnPivotChanged:o.onSaveGridColumnState,components:m,onGridReady:e=>{o.onGridReady(e),i({api:e.api,datasource:u})}})}function MC(e){let{source:n,target:t,quantity:a=5}=e;return e=>{const i=Object.entries(e),l=i.findIndex(e=>{let[t]=e;return t===n}),r=(l>-1?i[l]:[void 0,""])[1],o=null==r?"":r;if("string"!=typeof o)throw new Error(`${n} must be string`);const s=o.split(","),d=[];for(let e=0;e<a;e++)d.push([`${t} ${e+1}`,s[e]||""]);return l>-1?i.splice(l,1,...d):i.push(...d),Object.fromEntries(i)}}const VC=(0,le.default)(ie.fv)`
  .ag-header-cell-resize {
    z-index: 0;
  }
`,GC=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,zC=(0,le.default)(gu)`
  & > div:first-child {
    padding-right: ${e=>e.theme.geometry.xxxl.spacing};
    width: initial;
  }
  justify-content: space-between;
`,WC=$u(e=>{const[n,t]=(0,g.useState)({createModal:{show:!1},updateModal:{id:""},pictureModal:{id:""},selectedTags:[],notification:{message:null,color:null},account:{id:e.accountId},shouldRefetch:!1,selectAll:!1,orderByDesc:!0,pagination:{page:1,totalPages:0},countryList:[],defaultCountry:null}),[a,i]=(0,g.useState)({}),l=(0,C.m)(),{countryList:r}=Bo(),{data:o}=(0,x.IT)(pv,{variables:{id:n.updateModal.id||n.pictureModal.id},skip:!n.updateModal.id&&!n.pictureModal.id}),{showNotification:s}=tn(),[d]=(0,ln.n)(Tv),c=e=>{d({variables:{input:{fileName:"location-picture.png",contentType:"image/png",accountId:n.account.id,locationId:n.pictureModal.id,imageData:e}},onCompleted:()=>{p(),s("Location picture uploaded successfully","success"),y()},onError:e=>{console.error(e),s("Failed to upload location picture","danger")}})},u=e.permissions.data.find(e=>e.startsWith("exportLocation")),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t(n=>({...n,createModal:{show:!1},updateModal:{id:null},pictureModal:{id:null},notification:{message:e.message,color:e.color,id:e.id}}))},m=(e,a)=>"create"===e?t({...n,createModal:{show:!0}}):"update"===e?t({...n,updateModal:{id:a}}):"picture"===e?t({...n,pictureModal:{id:a}}):void 0,y=()=>{a.api.refreshServerSide({purge:!0})},h=()=>t(e=>({...e,notification:{message:null,color:null,id:null}})),T=(0,g.useCallback)(async e=>{const{data:{getLocationsPage:{totalRows:n,rows:t}}}=await l.query({query:mv,variables:e,fetchPolicy:"network-only"});return{rows:t,totalRows:n}},[l]);return(0,fe.jsxs)(VC,{name:"ConfigurationLocationsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(zC,{name:"ConfigurationLocationsContainer__Controls",icon:"map-marker-alt",iconColor:"primary",title:"Locations",children:(0,fe.jsxs)(bv,{container:!0,item:!0,distribution:"center",vdistribution:"center",itemAlign:"center",children:[(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(qg,{gridApi:a.api,title:"Clear"})}),(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(ie.$n,{name:"ConfigurationLocationsContainer__Controls__Button--create",size:"md",color:"primary",onClick:()=>m("create"),children:"+ Add"})}),(0,fe.jsx)(ie.fv,{span:3,children:a?.api&&(0,fe.jsx)(OC,{accountId:n.account.id,gridApi:a.api})}),u&&(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(Mx,{fetchRows:T,gridApi:a?.api,defaultExportFileName:"Location Exports",columnsToSkip:["Actions"],label:"Export",rowMutators:[MC({source:"Tags",target:"Tag"}),MC({source:"Departments",target:"Department"})]})})]})}),e.permissions.account.includes("getAll")&&(0,fe.jsx)(GC,{children:(0,fe.jsx)(wu,{value:n.account.id,onChange:e=>t({...n,account:{id:e.id}})})}),(0,fe.jsx)(g.Fragment,{children:(()=>{const e=o&&o.getLocationById?o.getLocationById.address:null,t=o&&o.getLocationById?o.getLocationById.tags:null,a=o&&{code:o.getLocationById.code||"",tenure:o.getLocationById.tenure||null,region:o.getLocationById.region||null,buildingType:o.getLocationById.buildingType||null,floorSpace:o.getLocationById.floorSpace||null,startDate:o.getLocationById.startDate||null,endDate:o.getLocationById.endDate||null,leaseRenewalDate:o.getLocationById.leaseRenewalDate||null,notes:o.getLocationById.notes||"",description:o.getLocationById.description||"",departments:o.getLocationById.departments||[],sharedEmissionPercentage:o.getLocationById.sharedEmissionPercentage??null,enableProject:o.getLocationById.enableProject??!1,displayOnImpactDashboard:o.getLocationById.displayOnImpactDashboard??!0};return(0,fe.jsxs)(g.Fragment,{children:[n.notification.message&&(0,fe.jsxs)(ie.Eg,{name:"ConfigurationLocationsContainer__Notification",show:!0,color:"success",onClose:h,children:[n.notification.message,(0,fe.jsx)("div",{hidden:!0,name:"ConfigurationLocationsContainer__Notification__createlocation_id",children:n.notification.id?n.notification.id[0]:null}),(0,fe.jsx)("div",{hidden:!0,name:"ConfigurationLocationsContainer__Notification__createaddress_id",children:n.notification.id?n.notification.id[1]:null})]}),n.createModal.show&&(0,fe.jsx)(ie.aF,{span:5,size:"md",show:!0,name:"ConfigurationLocationsContainer__Modal--create",dismissable:!0,onDismiss:p,children:(0,fe.jsx)(pC,{accountId:n.account.id,onSuccess:(e,n,t)=>p({message:e,color:n,id:t}),refreshGrid:y})}),n.updateModal.id&&o&&(0,fe.jsx)(ie.aF,{span:5,size:"sm",show:!0,dismissable:!0,name:"ConfigurationLocationsContainer__Modal--update",onDismiss:p,children:(0,fe.jsx)(bC,{locationId:o.getLocationById.id,name:o.getLocationById.name,add1:e?e.address1:"",add2:e?e.address2:"",add3:e?e.address3:"",city:e?e.city:"",postcode:e?e.postcode:"",phone:e?e.phone1:"",accountId:n.account.id,addressId:e?e.id:"",wasteIn:!!o.getLocationById.wasteIn&&o.getLocationById.wasteIn.id,wasteOut:!!o.getLocationById.wasteOut&&o.getLocationById.wasteOut.id,onSuccess:(e,n,t)=>p({message:e,color:n,id:t}),onDismiss:p,tags:t,countryList:r,defaultCountry:o.getLocationById.address.country,metadata:a,refreshGrid:y,attributes:o.getLocationById.attributes})}),n.pictureModal.id&&o&&(0,fe.jsx)(f.Modal,{open:!0,onClose:p,title:"Edit Location Picture",children:(0,fe.jsx)(f.ImageEditor,{defaultImageSrc:o.getLocationById.picture,onSave:c,shouldResetAfterSuccess:!0})})]})})()}),(0,fe.jsx)($C,{accountId:n.account.id,onEdit:e=>m("update",e),setGridApi:i,fetchRows:T,onPictureClick:e=>m("picture",e)},n.account.id)]})}),qC=S.J1`
  query GetWasteStreamByAccountId($accId: ID!, $page: Int!, $pageSize: Int!, $filterValue: String) {
    getWasteStreamsByAccountId(accountId: $accId, page: $page, pageSize: $pageSize, filterValue: $filterValue) {
      pageCount
      totalItemCount
      wasteStreams {
        id
        name
        ewc {
          description
          code
          id
          hazardous
        }
        isHazardous
      }
    }
  }
`,JC=S.J1`
  query GetAllEWCs {
    getAllEWCs {
      code
      description
      id
      hazardous
    }
  }
`,YC=S.J1`
  mutation CreateWasteStream($id: ID!, $name: String!, $ewcId: ID!, $hazardous: Boolean!, $accId: ID!) {
    createWasteStream(input: { id: $id, name: $name, ewcId: $ewcId, accountId: $accId, isHazardous: $hazardous }) {
      id
      name
      ewc {
        description
        code
        id
        hazardous
      }
      isHazardous
    }
  }
`,HC=S.J1`
  mutation EditWasteStream($id: ID!, $name: String!, $ewcId: ID!, $hazardous: Boolean!, $accId: ID!) {
    editWasteStream(input: { id: $id, name: $name, ewcId: $ewcId, accountId: $accId, isHazardous: $hazardous }) {
      id
    }
  }
`,KC=S.J1`
  {
    wasteStreamGridPage @client
  }
`,QC=S.J1`
  {
    wasteStreamGridTotalPages @client
  }
`,ZC=S.J1`
  mutation SetWasteStreamGridPage($page: Int!) {
    setWasteStreamGridPage(page: $page) @client
  }
`,XC=(S.J1`
  mutation SetWasteStreamGridTotalPages($totalPages: Int!) {
    setWasteStreamGridTotalPages(totalPages: $totalPages) @client
  }
`,S.J1`
  {
    wasteStreamGridSearch @client
  }
`),ek=S.J1`
  mutation SetWasteStreamGridSearch($search: String!) {
    setWasteStreamGridSearch(search: $search) @client
  }
`,nk=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,tk=le.default.div`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,ak=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,ik=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`;class lk extends g.Component{constructor(e){super(e),this.validate=()=>{let e=!1;const n=this.state.values;for(const t of Object.keys(this.state.values))n[t].value||(n[t]={value:n[t].value,error:"Field cannot be left empty"},e|=!0);return e&&this.setState({values:n}),!e},this.handleNameChange=e=>{e.target&&this.setState({values:{...this.state.values,name:{value:e.target.value,error:null}}})},this.handleEWCChange=(e,n)=>{if(e.target&&e.target.value){const t=n.find(n=>n.value===e.target.value).hazardous;this.setState({isChecked:t,showError:!1,values:{...this.state.values,ewc:{value:e.target.value,error:null}}})}},this.handleCreateComplete=e=>{this.props.onSuccess&&this.props.onSuccess("Waste Stream created successfully","success",e.createWasteStream.id,e.createWasteStream)},this.handleCreateError=()=>{this.setState({showError:!0,isSubmitted:!1}),this.props.onError&&this.props.onError("Something went wrong. If the problem continues please contact support.","danger")},this.handleCreateUpdate=(e,n)=>{this.props.onUpdate&&this.props.onUpdate(e,n)},this.state={isChecked:!1,values:{name:{value:null,error:null},ewc:{value:null,error:null}},isSubmitted:!1},this.handleCreateComplete=this.handleCreateComplete.bind(this),this.handleCreateError=this.handleCreateError.bind(this)}render(){const{accountId:e=(0,iu.A)(localStorage.getItem("ID_TOKEN")).name,refetchQueries:n}=this.props;return(0,fe.jsx)(au.X,{query:JC,children:t=>{let{loading:a,error:i,data:l}=t;return i?(0,fe.jsx)("div",{}):(0,fe.jsxs)(nk,{children:[this.state.showError&&(0,fe.jsx)(ie.Eg,{name:"wasteStreamError__notification",show:!0,color:"danger",onClose:()=>this.setState({showError:!1}),children:"There was an error creating the waste stream"}),(0,fe.jsx)(tk,{children:(0,fe.jsx)(ie.DZ,{inline:!0,size:"lg",children:"New Waste Stream"})}),(0,fe.jsx)(ie.fI,{children:(0,fe.jsxs)(ik,{children:[(0,fe.jsx)(ak,{children:(0,fe.jsx)(ie.JU,{children:"Name"})}),(0,fe.jsx)(ie.ks,{name:"Waste_Stream_Name",disabled:this.state.isSubmitted,box:!0,placeholder:"Name",onChange:this.handleNameChange,value:this.state.values.name.value,error:this.state.values.name.error})]})}),(0,fe.jsx)(ie.fI,{children:(0,fe.jsxs)(ik,{children:[(0,fe.jsx)(ak,{children:(0,fe.jsx)(ie.JU,{children:"EWC Code"})}),(()=>{if(l&&l.getAllEWCs&&!a){const e=l.getAllEWCs.map(e=>({label:`${e.code} - ${e.description}`,value:e.id,hazardous:e.hazardous}));return(0,fe.jsx)(ie.l6,{name:"Waste_Stream_EWC_Code",disabled:this.state.isSubmitted,options:e,value:this.state.values.ewc.value,error:this.state.values.ewc.error,onChange:n=>{this.handleEWCChange(n,e)}})}return(0,fe.jsx)(ie.l6,{placeholder:"Loading"})})()]})}),(0,fe.jsxs)(ie.fI,{container:!0,children:[(0,fe.jsx)(ik,{span:11,children:(0,fe.jsx)(ie.JU,{children:"Hazardous"})}),(0,fe.jsx)(ik,{span:1,children:this.state.isChecked?"True":"False"})]}),(0,fe.jsx)(ie.fI,{children:(0,fe.jsx)(ik,{children:(0,fe.jsx)(me.s,{mutation:YC,onCompleted:this.handleCreateComplete,onError:this.handleCreateError,refetchQueries:n,update:this.handleCreateUpdate,children:n=>(0,fe.jsx)(ie.$n,{name:"Waste_Stream_Create",disabled:!l||!l.getAllEWCs||this.state.isSubmitted,color:"primary",onClick:()=>{this.validate()&&(n({variables:{id:(0,Wa.A)(),name:this.state.values.name.value,ewcId:this.state.values.ewc.value,accId:e,hazardous:this.state.isChecked}}),this.setState({isSubmitted:!0}))},children:"Create"})})})})]})}})}}const rk=lk,ok=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,sk=le.default.div`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,dk=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,ck=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`;class uk extends g.Component{constructor(e){super(e),this.validate=()=>{let e=!1;const n=this.state.values;for(const t of Object.keys(this.state.values))n[t].value||(n[t]={value:n[t].value,error:"Field cannot be left empty"},e|=!0);return e&&this.setState({values:n}),!e},this.handleNameChange=e=>{e.target&&this.setState({values:{...this.state.values,name:{value:e.target.value,error:null}}})},this.handleEWCChange=(e,n)=>{if(e.target&&e.target.value){const t=n.find(n=>n.value===e.target.value).hazardous;this.setState({isChecked:t,showError:!1,values:{...this.state.values,ewc:{value:e.target.value,error:null}}})}},this.handleEditComplete=()=>{this.props.onSuccess&&this.props.onSuccess("Waste stream has been updated!","success")},this.handleEditError=e=>{this.setState({showError:!0}),this.props.onError&&this.props.onError(e)},this.state={isChecked:this.props.streamEwc.hazardous,id:this.props.streamId,values:{name:{value:this.props.streamName,error:null},ewc:{value:this.props.streamEwc.id,error:null}},isSubmitted:!1},this.handleEditComplete=this.handleEditComplete.bind(this),this.handleEditError=this.handleEditError.bind(this)}render(){const{accountId:e=(0,iu.A)(localStorage.getItem("ID_TOKEN")).name}=this.props;return(0,fe.jsx)(au.X,{query:JC,children:n=>{let{loading:t,error:a,data:i}=n;return a?(0,fe.jsx)("div",{}):(0,fe.jsxs)(ok,{children:[this.state.showError&&(0,fe.jsx)(ie.Eg,{name:"wasteStreamError__notification",show:!0,color:"danger",onClose:()=>this.setState({showError:!1}),children:"There was an error creating the waste stream"}),(0,fe.jsx)(sk,{children:(0,fe.jsx)(ie.DZ,{inline:!0,size:"lg",children:"Edit Waste Stream"})}),(0,fe.jsx)(ie.fI,{children:(0,fe.jsxs)(ck,{children:[(0,fe.jsx)(dk,{children:(0,fe.jsx)(ie.JU,{children:"Name"})}),(0,fe.jsx)(ie.ks,{name:"Edit_Waste_Stream_Name",box:!0,placeholder:"Name",disabled:this.state.isSubmitted,onChange:this.handleNameChange,value:this.state.values.name.value,error:this.state.values.name.error})]})}),(0,fe.jsx)(ie.fI,{children:(0,fe.jsxs)(ck,{children:[(0,fe.jsx)(dk,{children:(0,fe.jsx)(ie.JU,{children:"EWC Code"})}),(()=>{if(i&&i.getAllEWCs&&!t){const e=i.getAllEWCs.map(e=>({label:`${e.code} - ${e.description}`,value:e.id,hazardous:e.hazardous}));return(0,fe.jsx)(ie.l6,{name:"Edit_Waste_Stream_EWC_Code",options:e,value:this.state.values.ewc.value,error:this.state.values.ewc.error,onChange:n=>{this.handleEWCChange(n,e)},disabled:this.state.isSubmitted})}return(0,fe.jsx)(ie.l6,{placeholder:"Loading"})})()]})}),(0,fe.jsxs)(ie.fI,{container:!0,children:[(0,fe.jsx)(ck,{span:11,children:(0,fe.jsx)(ie.JU,{children:"Hazardous"})}),(0,fe.jsx)(ck,{span:1,children:this.state.isChecked?"True":"False"})]}),(0,fe.jsx)(ie.fI,{children:(0,fe.jsx)(ck,{children:(0,fe.jsx)(me.s,{mutation:HC,onCompleted:this.handleEditComplete,onError:this.handleEditError,children:n=>(0,fe.jsx)(ie.$n,{name:"Waste_Stream_Edit",disabled:!i||!i.getAllEWCs||this.state.isSubmitted,color:"primary",onClick:()=>{this.validate()&&(n({variables:{id:this.state.id,name:this.state.values.name.value,ewcId:this.state.values.ewc.value,accId:e,hazardous:this.state.isChecked}}),this.setState({isSubmitted:!0}))},children:"Edit"})})})})]})}})}}const pk=uk,mk=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  ${e=>{if(e.action)return`background-color: ${e.theme.colors.warning.highlight.background};`}};
`,fk=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.profile.padding};
`,yk=(0,le.default)(fk)`
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
`,gk=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: ${e=>`${e.theme.geometry.md.spacing} ${e.theme.geometry.sm.spacing}`};

  &:hover {
    cursor: pointer;
    color: ${e=>e.theme.colors.text.dark.background};
  }
`,hk=e=>{const{name:n,id:t,streamId:a,ewc:i,description:l,isHazardous:r,onEdit:o}=e;return(0,fe.jsxs)(mk,{container:!0,name:`${t}__WasteStream__Row`,children:[(0,fe.jsx)(fk,{span:2,children:(0,fe.jsx)(ie.EY,{name:`${t}__WasteStream__Name`,children:n})}),(0,fe.jsx)(fk,{span:2,children:(0,fe.jsx)(ie.EY,{name:`${t}__WasteStream__ewc`,children:i})}),(0,fe.jsx)(fk,{span:4,children:(0,fe.jsx)(ie.EY,{name:`${t}__WasteStream__description`,children:l})}),(0,fe.jsx)(fk,{span:2,children:(0,fe.jsx)(ie.EY,{name:`${t}__WasteStream__hazardous`,children:r})}),(0,fe.jsx)(yk,{span:2,children:(0,fe.jsx)(gk,{onClick:()=>{o&&o(a)},children:(0,fe.jsx)(ie.In,{name:`${t}__WasteStream__edit`,icon:"pencil-alt"})})})]})};hk.propTypes={id:pe().string,streamId:pe().string,name:pe().string,ewc:pe().string,isHazardous:pe().string};const xk=(0,le.withTheme)(hk),Tk=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing} ${e.theme.geometry.md.spacing}`};
  background: ${e=>e.theme.colors.overlay.light.background};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  border-top: 1px solid ${e=>e.theme.colors.text.light.background};
  flex: 0 0 auto;
`,bk=(0,le.default)(ie.fv)`
  p {
    padding: ${e=>e.theme.geometry.md.profile.padding};
  }
`,vk=le.default.div`
  flex: 1 1 auto;
`,Ck=e=>{const{queryVariables:n,shouldRefetch:t,onRefetch:a,showModal:i}=e;return(0,fe.jsxs)(g.Fragment,{children:[(0,fe.jsxs)(Tk,{container:!0,align:"between",children:[(0,fe.jsx)(bk,{item:!0,span:2,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Name"})}),(0,fe.jsx)(bk,{item:!0,span:2,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"EWC Code"})}),(0,fe.jsx)(bk,{item:!0,span:4,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Description"})}),(0,fe.jsx)(bk,{item:!0,span:2,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Hazardous"})}),(0,fe.jsx)(bk,{item:!0,span:2})]}),(0,fe.jsx)(au.X,{query:qC,fetchPolicy:"network-only",variables:n,children:e=>{let{data:n,error:l,loading:r,refetch:o}=e;if(t&&((e,n)=>{e(),n()})(o,a),r)return(0,fe.jsx)(Rc,{name:"ConfigurationWasteStreamsContainer__Loading"});if(l)return(0,fe.jsx)(ie.Kw,{error:l,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationWasteStreamsContainer__ContainerError",icon:a,title:n,body:t,retry:()=>o()})}});if(n){const e=n.getWasteStreamsByAccountId.wasteStreams;return(0,fe.jsxs)(g.Fragment,{children:[!e.length&&(0,fe.jsx)(Fu,{name:"ConfigurationWasteStreamsContainer__NoResults",title:"There are no results for this search."}),!!e.length&&(0,fe.jsx)(vk,{children:e.map(e=>(0,fe.jsx)(xk,{name:e.name,id:e.id,streamId:e.id,ewc:e.ewc.code,description:e.ewc.description,isHazardous:e.isHazardous?"True":"False",onEdit:()=>i("update",e.id,e.name,e.ewc)},e.id))})]})}}})]})};Ck.propTypes={queryVariables:pe().shape({accId:pe().string,Page:pe().number,PageSize:pe().number,filterValue:pe().string}),shouldRefetch:pe().bool,onRefetch:pe().func,onGetWasteStreamsCompleted:pe().func};const kk=Ck,Sk=(0,le.default)(ie.$n)({width:"auto",whiteSpace:"nowrap",marginLeft:10}),Nk=e=>({ID:e.id,Name:e.name,"EWC Code":e.ewc?.code,Description:e.ewc?.description,Hazardous:e.isHazardous?"True":"False"});function Ak(e){let{accountId:n}=e;const[t,a]=(0,g.useState)(!1),i=kl(),l=(0,g.useRef)(),[r]=(0,Ul._)(qC,{fetchPolicy:"network-only"});return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Sk,{color:"tertiary",onClick:()=>{a(!0)},title:"You are about to export your data. Please note that large datasets may take some time to export.",children:"Export"}),(0,fe.jsx)(Px,{show:t,onDismiss:()=>{a(!1)},defaultFileName:"waste_streams",onSubmit:e=>{a(!1),l.current=i?.startFrontendExport({fetchRows:async e=>{let{offset:t=0,limit:a=1e3}=e;const{data:i}=await r({variables:{accId:n,page:0===t?1:t/a+1,pageSize:a}}),{totalItemCount:l,wasteStreams:o}=i.getWasteStreamsByAccountId;return{rows:o,totalRows:l}},formatRow:Nk,exportFileName:e,sort:[],filters:{}})}})]})}const Rk=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
`,Dk=(0,le.default)(Qb)`
  flex: 1;
  margin-right: ${e=>e.theme.geometry.md.spacing};
`;class Lk extends g.Component{constructor(e){var n;super(e),n=this,this.dismissModals=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return n.setState({createModal:{show:!1},updateModal:{id:null,name:null,ewc:null},notification:{message:e.message,color:e.color,id:e.id}},t)},this.showModal=(e,n,t,a)=>"create"===e?this.setState({createModal:{show:!0}}):"update"===e?this.setState({updateModal:{id:n,name:t,ewc:a}}):void 0,this.hideNotification=()=>this.setState({notification:{message:null,color:null,id:null}}),this.handleAccountChange=e=>this.setState({account:{id:e.id}}),this.setShouldRefetch=()=>this.setState({shouldRefetch:!0}),this.onRefetch=()=>this.setState({shouldRefetch:!1}),this.renderModals=e=>{const{notification:n,createModal:t,updateModal:a,account:i}=this.state;return(0,fe.jsxs)(g.Fragment,{children:[n.message&&(0,fe.jsxs)(ie.Eg,{name:"ConfigurationWasteStreamsContainer__Notification",show:!0,color:"success",onClose:this.hideNotification,children:[n.message,(0,fe.jsx)("div",{hidden:!0,name:"ConfigurationWasteStreamsContainer__Notification__Id",children:n.id})]}),t.show&&(0,fe.jsx)(ie.aF,{size:"sm",show:!0,dismissable:!0,name:"ConfigurationWasteStreamsContainer__Modal--create",onDismiss:this.dismissModals,height:"auto",maxHeight:"90vh",children:(0,fe.jsx)(rk,{onSuccess:(n,t,a)=>this.dismissModals({message:n,color:t,id:a},e),accountId:i.id})}),a.id&&(0,fe.jsx)(ie.aF,{size:"sm",show:!0,dismissable:!0,name:"ConfigurationUsersContainer__Modal--update",onDismiss:this.dismissModals,height:"auto",maxHeight:"90vh",children:(0,fe.jsx)(pk,{accountId:i.id,streamName:a.name,streamId:a.id,streamEwc:a.ewc,onSuccess:(n,t)=>this.dismissModals({message:n,color:t},e)})})]})},this.state={account:{id:e.accountId},createModal:{show:!1},updateModal:{id:"",name:"",ewc:""},notification:{message:null,color:null,id:null},shouldRefetch:!1}}render(){return(0,fe.jsxs)(ie.fv,{name:"ConfigurationWasteStreamsContainer",container:!0,fullHeight:!0,children:[this.renderModals(this.setShouldRefetch),(0,fe.jsxs)(gu,{name:"ConfigurationWasteStreamsContainer__Controls",icon:"trash-alt",iconColor:"primary",title:"Waste Streams",children:[(0,fe.jsx)(Dk,{setPageMutation:ZC,setSearchMutation:ek}),(0,fe.jsx)(Ak,{accountId:this.state.account.id}),(0,fe.jsx)(Sk,{name:"ConfigurationWasteStreamsContainer__Controls__Button--add",color:"primary",component:"button",onClick:()=>this.showModal("create"),children:"+ Add Waste Stream"})]}),this.props.permissions.data.includes("getWasteStreamsAll")&&(0,fe.jsx)(Rk,{children:(0,fe.jsx)(wu,{onChange:this.handleAccountChange,value:this.state.account.id,name:"ConfigurationWasteStreamsContainer__AccountSelector"})}),(0,fe.jsx)(au.X,{query:XC,children:e=>{let{data:{wasteStreamGridSearch:n}}=e;const t={accId:this.state.account.id,page:1,pageSize:1e3,filterValue:n||null};return(0,fe.jsx)(kk,{queryVariables:t,shouldRefetch:this.state.shouldRefetch,onRefetch:this.onRefetch,showModal:this.showModal})}})]})}}const Ik=$u(Lk),jk=S.J1`
  query getTagsByAccountId($accountId: String!) {
    getTagsByAccountId(input: { accountId: $accountId, applicationId: "RIO" }) {
      tagName
      isSystemLevelTag
      legislationTag
      id
      locations {
        id
        name
      }
    }
  }
`,wk=S.J1`
  mutation createTag(
    $tagName: String!
    $accountId: String!
    $id: ID!
    $description: String
    $isSystemLevelTag: Boolean!
    $legislationTag: Boolean!
  ) {
    createTag(
      input: {
        tagName: $tagName
        id: $id
        applicationId: "RIO"
        accountId: $accountId
        description: $description
        isSystemLevelTag: $isSystemLevelTag
        legislationTag: $legislationTag
      }
    ) {
      id
      tagName
      description
      applicationId
      isSystemLevelTag
      legislationTag
      locations {
        id
        name
      }
    }
  }
`,Ok=S.J1`
  mutation updateTag(
    $tagName: String!
    $accountId: String!
    $id: ID!
    $description: String
    $isSystemLevelTag: Boolean!
    $legislationTag: Boolean!
  ) {
    updateTag(
      input: {
        tagName: $tagName
        id: $id
        applicationId: "RIO"
        accountId: $accountId
        description: $description
        isSystemLevelTag: $isSystemLevelTag
        legislationTag: $legislationTag
      }
    ) {
      id
      tagName
      description
      applicationId
      isSystemLevelTag
      legislationTag
      locations {
        id
        name
      }
    }
  }
`,Ek=S.J1`
  mutation updateLocationTag($id: ID!, $locationsId: [ID!]!, $accountId: ID!) {
    updateLocationTag(input: { tagId: $id, locationsId: $locationsId, accountId: $accountId })
  }
`,_k=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing} ${e.theme.geometry.md.spacing}`};
  background: ${e=>e.theme.colors.overlay.light.background};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  border-top: 1px solid ${e=>e.theme.colors.text.light.background};
  flex: 0 0 auto;
`,Fk=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing} ${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
`,Pk=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.profile.padding};
`,Bk=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.profile.padding};
  justify-content: center;
  display: flex;
`,Uk=le.default.a`
  display: block;
  color: ${e=>e.theme.colors.text.normal.background};

  &:hover {
    cursor: pointer;
    color: ${e=>e.theme.colors.text.dark.background};
  }
`,$k=le.default.span`
  cursor: pointer;
`,Mk=(0,le.default)(ie.In)`
  cursor: pointer;
  margin: 0 0 0 5px;
`,Vk=e=>{let{tags:n,onUpdateTag:t}=e;const[a,i]=(0,g.useState)({openLocation:[]}),l=lr(),r=l.tag.includes("getAll");return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(_k,{container:!0,align:"between",children:[(0,fe.jsx)(Pk,{span:3,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Tag"})}),(0,fe.jsx)(Pk,{span:r?10:20,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Location"})}),r&&(0,fe.jsx)(Pk,{span:10,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Legislation Tag"})}),(0,fe.jsx)(Pk,{span:1})]}),n.map(e=>{const n=(e=>{const n=e.locations.map(e=>e.name).join(", "),t=a.openLocation.includes(e.id)?(0,fe.jsxs)(fe.Fragment,{children:[n,(0,fe.jsx)(Mk,{onClick:()=>(e=>i({...a,openLocation:(0,hn.remove)(a.openLocation,e.id)}))(e),icon:"arrow-up"})]}):(0,fe.jsxs)(fe.Fragment,{children:[n.substr(0,90),(0,fe.jsx)($k,{onClick:()=>(e=>i({...a,openLocation:[...a.openLocation,e.id]}))(e),children:"..."})]});return n.length<90?(0,fe.jsx)(ie.EY,{children:n}):(0,fe.jsx)(ie.EY,{children:t})})(e);return(0,fe.jsxs)(Fk,{container:!0,align:"between",children:[(0,fe.jsx)(Pk,{span:3,children:(0,fe.jsx)(ie.EY,{children:e.tagName})}),(0,fe.jsx)(Pk,{span:r?10:20,children:n}),r&&(0,fe.jsx)(Pk,{span:10,children:e.legislationTag?"Yes":"No"}),(0,fe.jsx)(Bk,{span:1,children:(!e.isSystemLevelTag||l.tag.includes("editAll"))&&(0,fe.jsx)(Uk,{onClick:()=>t(e),children:(0,fe.jsx)(ie.In,{icon:"pencil-alt"})})})]},e.id)})]})},Gk=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,zk=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Wk=le.default.span`
  color: grey;
  font-style: italic;
`,qk=(le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
  padding-top: ${e=>e.theme.geometry.md.spacing};
`,{offset:0,limit:10,filters:{},sort:[{field:"name",order:"asc"}]}),Jk=e=>{let{onSuccess:n,accountId:t,tag:a}=e;const[i,l]=(0,g.useState)({hasError:!1,isSuccess:!1,values:{tagName:{text:a.tagName,error:""},isSystemLevelTag:{checked:a.isSystemLevelTag,error:""},legislationTag:{checked:a.legislationTag,error:""},description:"",locations:a?a.locations.map(e=>({label:e.name,value:e.id})):[]},notification:{message:"",color:"success",id:null}}),r=lr(),o=(0,C.m)(),[s]=(0,ln.n)(Ok,{onError:()=>{l({...i,notification:{show:!0,message:"Something went wrong. If the problem persists, contact support.",color:"danger"},hasError:!0,isSuccess:!1,isSubmitted:!1})}}),d=e=>{l(n=>({...n,values:{...n.values,[e.target.name]:{checked:!n.values[e.target.name].checked,error:null}}}))},{data:c}=(0,x.IT)(mv,{variables:{...qk,accountId:t}}),u=c&&c.getLocationsPage.rows?c.getLocationsPage.rows.map(e=>({label:e.name,value:e.id})):[];return(0,fe.jsxs)(ie.hh,{id:"CreateTagPropSheet",children:[i.notification.message&&(0,fe.jsx)(ie.Eg,{name:"create-tag__notification",show:!0,color:i.notification.color,onClose:()=>{l({...i,notification:{message:null,color:null}})},children:i.notification.message}),(0,fe.jsx)(ie.hh.HeaderRow,{children:"Update Tag"}),(0,fe.jsxs)("form",{name:"create-Tag__form",children:[(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextInputColumn,{name:"tagName",disabled:i.isSubmitted,onChange:e=>{l({...i,values:{...i.values,[e.target.name]:{text:e.target.value,error:null}}})},value:i.values.tagName.text,error:i.values.tagName.error,label:"Tag Name"})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(Gk,{container:!0,item:!0,span:12,children:(0,fe.jsxs)(zk,{id:"create-location-tags-label",name:"create-location-tags-label",children:["Locations ",(0,fe.jsx)(Wk,{children:"(Optional)"}),(0,fe.jsx)(ie.KF,{id:"create-location-tag-multiselection",name:"create-location-tag-multiselection",pill:!1,isLoading:!1,components:{LoadingIndicator:()=>(0,fe.jsx)(ie.Ip,{name:"tag-location-Loading",size:"xxs"})},onChange:e=>{const n=e.target.select;l(e=>({...e,values:{...e.values,locations:n}}))},isDisabled:!1,multiValueColor:"tertiary",value:i.values.locations,defaultOptions:u,loadOptions:async e=>{const{data:{getLocationsPage:n}}=await o.query({query:mv,variables:{...qk,filters:{text:[{filterType:"text",type:"contains",filter:e,field:"name"}]},accountId:t}});return{options:n.rows?n.rows.map(e=>({label:e.name,value:e.id})):[],total:n.totalRows}}})]})})}),r.tag.includes("createAll")&&(0,fe.jsxs)(ie.hh.Row,{align:"center",distribution:"between",children:[(0,fe.jsx)(ie.hh.Column,{label:"System Level Tag",children:(0,fe.jsx)(ie.Sc,{id:"isSystemLevelCheck",disabled:!0,onChange:d,name:"isSystemLevelTag",checked:i.values.isSystemLevelTag.checked})}),(0,fe.jsx)(ie.hh.Column,{label:"Create Legal Register",children:(0,fe.jsx)(ie.Sc,{id:"legislationCheck",onChange:d,name:"legislationTag",checked:i.values.legislationTag.checked})})]}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.ButtonColumn,{name:"create-tag__Button",submit:!0,disabled:""===i.values.tagName.text||i.isSubmitted,onClick:async e=>{e.preventDefault(),l({...i,isSubmitted:!0});const r=i.values;if(r.tagName.error=""===r.tagName.text?"Tag Name cannot be empty.":null,r.tagName.error)return void l({...i,values:r});await(async e=>{await o.mutate({mutation:Ek,variables:{id:e,locationsId:i.values.locations.map(e=>e.value),accountId:t}})})(a.id);const d=r.tagName.text.trim();await s({variables:{id:a.id,tagName:d,accountId:t,locationsId:i.values.locations.map(e=>e.value),description:r.description.trim(),isSystemLevelTag:i.values.isSystemLevelTag.checked,legislationTag:i.values.legislationTag.checked}}),n(`Tag: ${d}  has been updated!`,"success",s.id)},children:"Update Tag"})})]})]})},Yk=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Hk=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Kk=le.default.span`
  color: grey;
  font-style: italic;
`,Qk=le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
  padding-top: ${e=>e.theme.geometry.md.spacing};
`,Zk={offset:0,limit:10,filters:{},sort:[{field:"name",order:"asc"}]},Xk=e=>{let{onSuccess:n,accountId:t}=e;const[a,i]=(0,g.useState)({hasError:!1,isSuccess:!1,values:{tagName:{text:"",error:""},isSystemLevelTag:{checked:!1,error:""},legislationTag:{checked:!1,error:""},description:"",locations:[]},notification:{message:"",color:"success",id:null}}),l=(0,C.m)(),r=lr(),[o]=(0,ln.n)(wk,{onError:()=>{i({...a,notification:{show:!0,message:"Something went wrong. If the problem persists, contact support.",color:"danger"},hasError:!0,isSuccess:!1,isSubmitted:!1})},onCompleted:async e=>{const i=e.createTag,r=a.values.locations.map(e=>e.value);r&&r.length>0&&await l.mutate({mutation:Ek,variables:{id:i.id,locationsId:a.values.locations.map(e=>e.value),accountId:t}}),n(`The tag: ${i.tagName} has been created!`,"success",i.id)}}),s=e=>{i(n=>({...n,values:{...n.values,[e.target.name]:{checked:!n.values[e.target.name].checked,error:null}}}))},{data:d,loading:c,error:u}=(0,x.IT)(mv,{variables:{...Zk,accountId:t}}),p=d&&d.getLocationsPage.rows?d.getLocationsPage.rows.map(e=>({label:e.name,value:e.id})):[];return(0,fe.jsxs)(ie.hh,{id:"CreateTagPropSheet",children:[a.notification.message&&(0,fe.jsx)(ie.Eg,{name:"create-tag__notification",show:!0,color:a.notification.color,onClose:()=>{i({...a,notification:{message:null,color:null}})},children:a.notification.message}),(0,fe.jsx)(ie.hh.HeaderRow,{children:"Create Tag"}),(0,fe.jsxs)("form",{name:"create-Tag__form",children:[(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextInputColumn,{name:"tagName",disabled:a.isSubmitted,onChange:e=>{i({...a,values:{...a.values,[e.target.name]:{text:e.target.value,error:null}}})},value:a.values.tagName.text,error:a.values.tagName.error,label:"Tag Name"})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(Yk,{container:!0,item:!0,span:12,children:(0,fe.jsxs)(Hk,{id:"create-location-tags-label",name:"create-location-tags-label",children:["Locations ",(0,fe.jsx)(Kk,{children:"(Optional)"}),u?(0,fe.jsx)(ie.Kw,{error:u,children:e=>{let{icon:n}=e;return(0,fe.jsx)(Qk,{children:(0,fe.jsx)(ie.Wz,{name:"location-tag__error",icon:n,title:"Locations failed to load"})})}}):(0,fe.jsx)(ie.KF,{id:"create-location-tag-multiselection",name:"create-location-tag-multiselection",pill:!1,isLoading:c,components:{LoadingIndicator:()=>(0,fe.jsx)(ie.Ip,{name:"tag-location-Loading",size:"xxs"})},onChange:e=>{const n=e.target.select;i(e=>({...e,values:{...e.values,locations:n}}))},isDisabled:c||u,multiValueColor:"tertiary",defaultOptions:p,value:a.values.locations,loadOptions:async e=>{const{data:{getLocationsPage:n}}=await l.query({query:mv,variables:{...Zk,filters:{text:[{filterType:"text",type:"contains",filter:e,field:"name"}]},accountId:t}});return{options:n.rows?n.rows.map(e=>({label:e.name,value:e.id})):[],total:n.totalRows}}})]})})}),r.tag.includes("createAll")&&(0,fe.jsxs)(ie.hh.Row,{align:"center",distribution:"between",children:[(0,fe.jsx)(ie.hh.Column,{label:"System Level Tag",children:(0,fe.jsx)(ie.Sc,{id:"isSystemLevelCheck",onChange:s,name:"isSystemLevelTag",checked:a.values.isSystemLevelTag.checked})}),(0,fe.jsx)(ie.hh.Column,{label:"Create Legal Register",children:(0,fe.jsx)(ie.Sc,{id:"legislationCheck",onChange:s,name:"legislationTag",checked:a.values.legislationTag.checked})})]}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.ButtonColumn,{name:"create-tag__Button",disabled:""===a.values.tagName.text||a.isSubmitted,onClick:e=>{e.preventDefault();const n=a.values;if(n.tagName.error=""===n.tagName.text?"Tag Name cannot be empty.":null,n.tagName.error)return void i({...a,values:n});const l=(0,Wa.A)();o({variables:{id:l,tagName:n.tagName.text.trim(),accountId:t,description:n.description.trim(),locationsId:a.values.locations.map(e=>e.value),isSystemLevelTag:a.values.isSystemLevelTag.checked,legislationTag:a.values.legislationTag.checked}}),i({...a,isSubmitted:!0})},children:"Create Tag"})})]})]})},eS=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,nS=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,tS=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,aS=e=>{let{accountId:n}=e;const t=lr(),[a,i]=(0,g.useState)({search:{value:"",error:""},createModal:{show:!1},updateModal:{show:!1,tag:null},selected:[],notification:{message:null,color:null},account:{id:n},shouldRefetch:!1}),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;i(n=>({...n,createModal:{show:!1},updateModal:{show:!1},notification:{message:e.message,color:e.color,id:e.id}})),n&&n()},r=(e,n)=>"create"===e?i(e=>({...e,createModal:{show:!0}})):"update"===e?i(e=>({...e,updateModal:{show:!0,tag:n}})):void 0,o=()=>i(e=>({...e,notification:{message:null,color:null,id:null}})),s=e=>{r("update",e)},{data:d,error:c,loading:u,refetch:p}=(0,x.IT)(jk,{variables:{accountId:a.account.id},fetchPolicy:"network-only"}),m=(e=>{let{data:n,error:t,loading:i}=e;if(t)return(0,fe.jsx)(tS,{children:(0,fe.jsx)(ie.Kw,{error:t,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationTagsContainer__Error",icon:a,title:n,body:t})}})});if(i)return(0,fe.jsx)(Rc,{name:"ConfigurationTagsContainer__Loading"});const l=(0,hn.sortBy)(((e,n)=>{if(!n)return e;const t=new pd.vj("tagName");return t.addIndex("tagName"),t.addDocuments(e),t.search(n)})(n.getTagsByAccountId,a.search.value),"tagName");return l.length?(0,fe.jsx)(Vk,{tags:l,onUpdateTag:s}):(0,fe.jsx)(Fu,{name:"ConfigurationTagsContainer__NoResults",title:"There are no results for this search.",id:"tags-no-results"})})({data:d,error:c,loading:u});return(0,fe.jsxs)(ie.fv,{name:"ConfigurationTagsContainer",container:!0,fullHeight:!0,children:[(e=>{const{notification:n,createModal:t,account:i}=a;return(0,fe.jsxs)(fe.Fragment,{children:[n.message&&(0,fe.jsxs)(ie.Eg,{name:"ConfigurationTagsContainer__Notification",show:!0,color:"success",onClose:o,children:[n.message,(0,fe.jsx)("div",{hidden:!0,name:"ConfigurationTagsContainer__Notification__createtag_id",children:n.id})]}),t.show&&(0,fe.jsx)(ie.aF,{span:5,size:"md",show:!0,name:"ConfigurationTagsContainer__Modal--create",dismissable:!0,onDismiss:l,height:"auto",maxHeight:"90vh",children:(0,fe.jsx)(Xk,{accountId:i.id,onSuccess:(n,t,a)=>l({message:n,color:t,id:a},e)})})]})})(p),(()=>{const{notification:e,updateModal:n,account:t}=a;return(0,fe.jsxs)(fe.Fragment,{children:[e.message&&(0,fe.jsxs)(ie.Eg,{name:"ConfigurationTagsContainer__Notification",show:!0,color:"success",onClose:o,children:[e.message,(0,fe.jsx)("div",{hidden:!0,name:"ConfigurationTagsContainer__Notification__createtag_id",children:e.id})]}),n.show&&(0,fe.jsx)(ie.aF,{span:5,size:"md",show:!0,name:"ConfigurationTagsContainer__Modal--create",dismissable:!0,onDismiss:l,height:"auto",maxHeight:"90vh",children:(0,fe.jsx)(Jk,{accountId:t.id,onSuccess:(e,n,t)=>l({message:e,color:n,id:t}),tag:a.updateModal.tag})})]})})(),(0,fe.jsxs)(gu,{name:"ConfigurationTagsContainer__Controls",icon:"tags",iconColor:"primary",title:"Tags",children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationTagsContainer__Controls__Search",value:a.search.value,onChange:e=>i({...a,search:{...a.search,value:e.target.value}}),hideButton:!0})}),(0,fe.jsx)(nS,{name:"ConfigurationTagsContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>r("create"),children:"+ Create Tag"})]}),t.tag.includes("getAll")&&(0,fe.jsx)(eS,{children:(0,fe.jsx)(wu,{value:a.account.id,onChange:e=>i({...a,account:{id:e.id}})})}),m]})},iS=S.J1`
  query GetSchemesByAccountId($accountId: ID!) {
    getProjectSchemes(accountId: $accountId) {
      id
      name
      category {
        id
        name
      }
    }
  }
`,lS=S.J1`
  query GetSchemesPage(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getProjectSchemesPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
        description
        category {
          id
          name
        }
      }
    }
  }
`;var rS=t(11122),oS=t.n(rS);const sS=S.J1`
  query GetProjectCategories {
    getProjectCategories {
      id
      name
    }
  }
`,dS=S.J1`
  fragment SchemeFields on Scheme {
    id
    name
    accountId
    category {
      id
      name
    }
    description
  }
`,cS=S.J1`
  mutation CreateProjectScheme($name: String!, $accountId: ID!, $categoryId: ID!, $description: String) {
    createProjectScheme(
      input: { name: $name, accountId: $accountId, categoryId: $categoryId, description: $description }
    ) {
      ...SchemeFields
    }
  }
  ${dS}
`,uS=S.J1`
  mutation UpdateProjectScheme($id: ID!, $name: String!, $accountId: ID!, $categoryId: ID!, $description: String) {
    editProjectScheme(
      input: { id: $id, name: $name, accountId: $accountId, categoryId: $categoryId, description: $description }
    ) {
      ...SchemeFields
    }
  }
  ${dS}
`,pS=S.J1`
  mutation DeleteProjectScheme($id: ID!, $accountId: ID!) {
    deleteProjectScheme(id: $id, accountId: $accountId)
  }
`,mS=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,fS=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,yS=(0,le.default)(ie.JU)`
  margin: 0 ${e=>e.theme.geometry.xs.spacing};
`,gS=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,hS=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,xS=e=>{let{accountId:n,schemeToUpdate:t,refresh:a,dismiss:i}=e;const[l,r]=(0,g.useState)(t?.name||""),[o,s]=(0,g.useState)(t?.description||""),[d,c]=(0,g.useState)(t?.category||null),[u,p]=(0,g.useState)(!1),{showNotification:m}=tn(),[f,{loading:y}]=(0,ln.n)(t?uS:cS),{data:h}=(0,x.IT)(sS),T=(0,g.useMemo)(()=>h?.getProjectCategories?.map(Ua)||[],[h?.getProjectCategories]);return(0,fe.jsx)(ie.aF,{size:"md",height:"auto",maxHeight:"90vh",show:!0,loading:y,dismissable:!0,name:"ConfigurationSchemesContainer__Modal--update",onDismiss:i,children:(0,fe.jsx)(mS,{children:(0,fe.jsxs)("form",{name:"create-or-update-scheme__form",onSubmit:e=>{(async e=>{e.preventDefault(),p(!0);const r={accountId:n,name:l,description:o,categoryId:d?.id};try{await f({variables:t?{...r,id:t?.id}:r}),m(`Scheme ${l} has been successfully ${t?"updated":"created"}`,"success"),a()}catch(e){m("Something went wrong. If the problem persists, contact support","danger"),console.error(e)}finally{i()}p(!1)})(e)},children:[(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(hS,{size:"lg",children:t?"Update Scheme":"Create Scheme"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(fS,{item:!0,children:[(0,fe.jsx)(gS,{children:(0,fe.jsx)(yS,{children:"Scheme Name"})}),(0,fe.jsx)(ie.ks,{disabled:u,onChange:e=>r(e?.target.value),name:"schemeName",value:l,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(fS,{item:!0,children:[(0,fe.jsx)(gS,{children:(0,fe.jsx)(yS,{children:"Description"})}),(0,fe.jsx)(ie.ks,{disabled:u,onChange:e=>s(e?.target.value),name:"schemeDescription",value:o,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(fS,{item:!0,children:[(0,fe.jsx)(gS,{children:(0,fe.jsx)(yS,{children:"Category"})}),(0,fe.jsx)(ie.l6,{id:"Categories__Select",onChange:e=>c({id:e.target.value,name:e.target.name}),isDisabled:u,error:"",value:d?.id||"",placeholder:"Start typing to search for a category",options:T,isClearable:!0})]})})]}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(fS,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{name:"create-or-update-scheme__button",color:"success",submit:!0,disabled:y||!l||!d?.id,children:t?"Update":"Create"})})})]})})})},TS=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,bS=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 0 0 ${e=>e.theme.geometry.xl.spacing};
  margin-right: ${e=>e.theme.geometry.sm.spacing};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,vS=e=>{let{data:{id:n},onEdit:t,onDelete:a}=e;const i=lr(),l=i.scheme.find(e=>e.startsWith("edit")),r=i.scheme.find(e=>e.startsWith("delete"));return(0,fe.jsxs)(TS,{children:[l&&(0,fe.jsx)(bS,{onClick:()=>t(Xh.UPDATE,n),children:(0,fe.jsx)(ie.In,{name:`scheme-row__edit--${n}`,icon:"pencil-alt"})}),r&&(0,fe.jsx)(bS,{onClick:()=>a(Xh.DELETE,n),children:(0,fe.jsx)(ie.In,{name:`scheme-row__delete--${n}`,icon:"trash-alt"})})]})},CS=le.css`
  font-family: inherit;
  display: inline-block;
  color: inherit;
  opacity: 1;
  &:hover {
    text-decoration: none;
  }
  text-decoration: underline;
  font-size: ${e=>e.theme.fonts.sm.size};
`,kS=(0,le.default)(ie.Yq)`
  ${CS}
`,SS=(0,le.default)(p.Link)`
  ${CS}
`,NS=(0,le.default)(SS)`
  margin-right: 4px;
  &:hover {
    color: ${e=>e.theme.colors.text.normal.background};
  }
`,AS=e=>{let{data:{relatedProjects:n}}=e;return(0,fe.jsx)("div",{children:n.map(e=>(0,fe.jsx)(NS,{to:`/projects/${e.id}`,target:"_blank",rel:"noopener noreferrer",children:e.name},e.id))})};function RS(e){let{setGridApi:n,fetchRows:t,onEdit:a,onDelete:i}=e;const l=qr({autoFit:!0}),r={pagination:!0,paginationPageSize:25,rowModelType:"serverSide",defaultColDef:{resizable:!1,sortable:!0,filter:!0,cellStyle:{padding:"10px",height:"auto",wordBreak:"break-word",lineHeight:"20px"},autoHeight:!0},columnDefs:[{headerName:"Name",filter:"agTextColumnFilter",field:"name"},{headerName:"Description",filter:"agTextColumnFilter",field:"description"},{headerName:"Category",filter:!1,sortable:!1,field:"category.name"},{headerName:"Related Projects",filter:!1,sortable:!1,field:"relatedProjects",cellRenderer:"relatedProjects"},{headerName:"Projects Related",filter:!1,sortable:!1,hide:!0,field:"projectsRelated"},{headerName:"Actions",cellRenderer:"action",filter:!1,sortable:!1}],rowStyle:{width:"100%",display:"flex",alignItems:"center"},rowHeight:58},o={action:e=>(0,fe.jsx)(vS,{...e,onEdit:a,onDelete:i}),relatedProjects:e=>(0,fe.jsx)(AS,{...e})};return(0,fe.jsx)(Pg,{...r,cacheBlockSize:r.paginationPageSize,onFirstDataRendered:l.onFirstDataRendered,onFilterChanged:l.onFilterChanged,onSortChanged:l.onSortChanged,onColumnVisible:l.onSaveGridColumnState,onColumnPinned:l.onSaveGridColumnState,onColumnResized:l.onSaveGridColumnState,onColumnMoved:l.onSaveGridColumnState,onColumnRowGroupChanged:l.onSaveGridColumnState,onColumnValueChanged:l.onSaveGridColumnState,onColumnPivotChanged:l.onSaveGridColumnState,components:o,onGridReady:e=>{l.onGridReady(e),n({api:e.api}),e.api.setGridOption("serverSideDatasource",{async getRows(e){let{request:n,success:a,fail:i}=e;try{const e=jn(n.filterModel),{rows:i,totalRows:l}=await t({offset:n.startRow||0,limit:r.paginationPageSize,sort:wn(n.sortModel),filters:e});return a({rowData:i,rowCount:l}),{rows:i,totalRows:l}}catch(e){throw i(),e}}})}})}const DS=(0,le.default)(ie.fv)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,LS=()=>{const e=(0,C.m)(),n=Je(),t=lr(),{token:a}=qe(),{showNotification:i}=tn(),[l,r]=(0,g.useState)(""),[o,s]=(0,g.useState)([]),[d,c]=(0,g.useState)(),[u,p]=(0,g.useState)({type:null,schemeId:null}),{data:m,loading:f}=Mr(),y=m?.projects,{error:h,refetch:T,networkStatus:b}=function(e){return(0,x.IT)(lS,{variables:{accountId:e}})}(n),[v]=(0,ln.n)(pS),k=o.find(e=>e.id===u.schemeId),S=(0,g.useCallback)(()=>{d?.api?.setColumnFilterModel("name",{filterType:"text",type:"contains",filter:l}),d?.api?.onFilterChanged()},[d?.api,l]),N=(0,g.useCallback)(()=>d?.api?.refreshServerSide({purge:!0}),[d]),A=(0,g.useMemo)(()=>(0,hn.debounce)(S,250),[S]);(0,g.useEffect)(()=>{A()},[l,A]);const R=(e,n)=>p({type:e,schemeId:n}),D=e=>{R(null,null),e?.message&&i(e?.message,e?.color)},L=async t=>{const{data:{getProjectSchemesPage:{totalRows:i,rows:l}}}=await e.query({query:lS,variables:{...t,accountId:n},fetchPolicy:"network-only"}),{data:{getProjects:r}}=await e.query({query:oS(),variables:{accountId:n,userId:a.sub},fetchPolicy:"network-only"});return s(e=>[...e,...l]),{rows:l.map(e=>({...e,relatedProjects:r.filter(n=>n?.scheme?.name===e.name).map(e=>({id:e.id,name:e.name})),projectsRelated:r.filter(n=>n?.scheme?.name===e.name).map(e=>e.name).join()})),totalRows:i}};return y?(0,fe.jsxs)(ie.fv,{name:"ConfigurationSchemesContainer",container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{name:"ConfigurationSchemesContainer__Controls",icon:"list",iconColor:"primary",title:"Schemes",children:[(0,fe.jsx)(DS,{span:6,container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationSchemesContainer__Controls__Search",value:l,onChange:e=>r(e.target.value),hideButton:!0})}),t.scheme.find(e=>e.startsWith("create"))&&(0,fe.jsx)(DS,{span:4,container:!0,item:!0,children:(0,fe.jsx)(ie.$n,{name:"ConfigurationSchemesContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>R(Xh.CREATE),children:"+ Add Scheme"})}),(0,fe.jsx)(DS,{span:4,container:!0,item:!0,children:(0,fe.jsx)(Mx,{fetchRows:L,gridApi:d?.api,defaultExportFileName:"Schemes Exports",label:"Export Data",columnsToSkip:["Actions","Related Projects"]})})]}),(f&&3!==b||4===b)&&(0,fe.jsx)(Rc,{name:"ConfigurationSchemesContainer__Loading"}),h&&(0,fe.jsx)(ie.Kw,{error:h,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationSchemesContainer__Error",icon:a,title:n,body:t,retry:T})}}),(0,fe.jsx)(RS,{fetchRows:L,setGridApi:c,onEdit:R,onDelete:R}),u.type===Xh.CREATE&&(0,fe.jsx)(xS,{accountId:n,refresh:N,dismiss:D}),u.type===Xh.UPDATE&&(0,fe.jsx)(xS,{accountId:n,schemeToUpdate:k,refresh:N,dismiss:D}),u.type===Xh.DELETE&&(0,fe.jsx)(vu,{deleteObjectName:k?.name,onConfirmClick:async()=>{try{await v({variables:{id:k?.id,accountId:n}}),i(`Scheme ${k?.name} has been successfully deleted`,"success"),N()}catch(e){i("An error has occurred. If the problem persists please contact support","danger"),console.error(e)}finally{D()}},onDismissClick:D})]}):(0,fe.jsx)(Fu,{name:"Schemes__NoResults",title:"Your account has no access to this section"})},IS=(0,f.styled)("span")`
  height: fit-content;
`,jS=e=>{let{filtersApplied:n,resetGridState:t}=e;const a=(0,dc.A)();return(0,fe.jsx)(Vx.A,{title:"Clear filters",children:(0,fe.jsx)(IS,{children:(0,fe.jsx)(f.IconButton,{variant:"contained",title:a.formatMessage({id:"pages.data.overview.clear"}),color:"secondary",disabled:Boolean(!n),onClick:()=>t?.(),children:(0,fe.jsx)(f.Icons.FilterAltOff,{})})})})},wS=S.J1`
  fragment WasteHierarchyFields on WasteHierarchy {
    id
    accountId
    prevention
    preparingForReuse
    recycling
    otherRecovery
    disposal
    unknown
    reference
    isGlobal
    startDate
    endDate
    treatmentProcess {
      name
      id
    }
    user {
      id
      first_name
      last_name
    }
    wasteIn {
      id
      name
    }
  }
`,OS=S.J1`
  query GetWasteHierarchiesData($accountId: ID!) {
    getWasteHierarchiesByAccountId(accountId: $accountId) {
      ...WasteHierarchyFields
    }
    getWasteInsByAccountId(id: $accountId) {
      id
      name
    }
  }
  ${wS}
`,ES=S.J1`
  query GetWasteHierarchiesPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {
    getWasteHierarchiesPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        ...WasteHierarchyFields
      }
      totalRows
    }
  }
  ${wS}
`,_S=S.J1`
  query getTreatmentProcesses {
    getAllWasteTreatmentProcesses {
      id
      name
    }
  }
`,FS=S.J1`
  mutation UpsertHierarchy($input: UpsertCustomWasteHierarchyInput!) {
    upsertCustomWasteHierarchy(input: $input) {
      ...WasteHierarchyFields
    }
  }
  ${wS}
`,PS=S.J1`
  mutation DeleteCustomWasteHierarchy($id: ID!) {
    deleteCustomWasteHierarchy(id: $id)
  }
`,BS=S.J1`
  query GetDefaultWasteHierarchyByWasteTreatmentId($treatmentProcessId: ID!) {
    getDefaultWasteHierarchyByWasteTreatmentId(treatmentProcessId: $treatmentProcessId) {
      ...WasteHierarchyFields
    }
  }
  ${wS}
`,US=(0,f.styled)("div")`
  margin-top: 32px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  ${e=>{let{fullWidth:n}=e;return n?"\n    width: 100%;\n    button {\n      flex: 1;  \n    }\n  ":"\n  justify-content: flex-end;\n  "}}
`,$S=(0,f.styled)(f.Text)`
  min-width: 100%;
  margin-bottom: 16px;
`,MS=(0,f.styled)(f.TextField)`
  margin-top: 16px;
  width: 100%;
  & .MuiOutlinedInput-root {
    background-color: ${e=>{let{theme:n}=e;return n.palette.background.paper}};
  }
`,VS=(0,f.styled)(f.Text)`
  margin-top: 4px;
  color: ${e=>{let{theme:n}=e;return n.palette.text.secondary}};
  text-align: right;
`,GS=e=>{let{open:n,title:t,body:a="",confirmButtonText:i="Confirm",closeButtonText:l="Close",onConfirm:r,onClose:o,onCloseButtonClick:s,closeButtonTestId:d,confirmButtonTestId:c,confirmButtonColor:u="primary",withFullWidthButtons:p,withTextArea:m=!1,textAreaLabel:y="",disabled:h=!1}=e;const[x,T]=(0,g.useState)(""),[b,v]=(0,g.useState)(!1),C=(0,g.useCallback)(async()=>{v(!0);try{await(r?.(m?x:void 0)),o(!0)}finally{v(!1)}},[o,r,m,x]),k=(0,g.useCallback)(()=>{s?s():o(!1)},[s,o]);return(0,g.useEffect)(()=>{n||T("")},[n]),(0,fe.jsxs)(f.Modal,{open:n,onClose:()=>o(!1),title:t,children:[(0,fe.jsx)($S,{typescale:"body",size:"medium",children:a}),m&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(MS,{label:y,value:x,onChange:e=>{const n=e.target.value;n.length<=255&&T(n)},multiline:!0,rows:3,inputProps:{maxLength:255}}),(0,fe.jsxs)(VS,{typescale:"body",size:"small",children:[x.length,"/",255," characters"]})]}),(0,fe.jsxs)(US,{fullWidth:p,children:[(0,fe.jsx)(f.Button,{onClick:k,variant:"outlined",color:"primary","data-testid":d,disabled:h,children:l}),(0,fe.jsx)(f.Button,{onClick:C,variant:"contained",color:u,"data-testid":c,loading:b,disabled:h||b,children:i})]})]})};var zS=t(68384);const WS=(0,f.styled)("form")`
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
`,qS=(0,f.styled)(f.Button)`
  width: calc(50% - 12px);
`,JS=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
`,YS=e=>{let{onDismiss:n,onCompleted:t,onError:a,type:i,accountId:l}=e;const r=Bl(),o=gh(),[s,d]=(0,g.useState)(!1),[c,u]=(0,g.useState)({name:"",departmentId:(0,Wa.A)()}),[p,m]=(0,g.useState)({name:null}),[y]=(0,ln.n)(ph.DEPARTMENT===i?uh():rh,{onError:a,onCompleted:e=>{t(e,i===ph.DEPARTMENT?e.createDepartment[0]:e.createAspectOption)},update(e,n){let{data:{createDepartment:t}}=n;o(e,t,l,r)}}),h=(0,g.useCallback)(async e=>{e.preventDefault();const t=(e=>{const n={name:null};return e.name&&""!==e.name.trim()||(n.name="Name is required"),n})(c);if(t?.name?.length)return m(t);d(!0);const a=c.name.trim(),r=ph.DEPARTMENT===i?{name:a,accountId:l,departmentId:c.departmentId}:{name:a,type:i,accountId:l};await y({variables:{input:r}}),d(!1),n()},[l,c,y,n,i]),x=(0,g.useCallback)(e=>{e.target.value&&m({...p,name:null}),u({...c,name:e.target.value,departmentId:(0,Wa.A)()})},[c,p]);return(0,fe.jsx)(f.Modal,{onClose:n,title:`Create ${mh[i]}`,open:!0,children:(0,fe.jsxs)(WS,{name:"create-option__form",children:[(0,fe.jsx)(f.TextField,{label:"Name",disabled:s,type:"text",onChange:x,name:"name",value:c.name,error:!!p?.name,helperText:p?.name||""}),(0,fe.jsxs)(JS,{children:[(0,fe.jsx)(qS,{variant:"outlined",onClick:n,children:"Cancel"}),(0,fe.jsx)(qS,{onClick:h,variant:"contained",children:"Create"})]})]})})},HS=e=>{let{onError:n,onComplete:t,passedAccountId:a,showCreateDepartment:i,setShowCreateDepartment:l}=e;const r=Je(),o=a||r,s=(0,g.useCallback)((e,n)=>{t?.(e,n),l(!1)},[t,l]);return i?(0,fe.jsx)(YS,{accountId:o,type:ph.DEPARTMENT,onDismiss:()=>l(!1),onError:e=>n?.(e),onCompleted:s}):(0,fe.jsx)(fe.Fragment,{})},KS=(0,f.styled)("form")`
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
`,QS=(0,f.styled)(f.Button)`
  width: calc(50% - 12px);
`,ZS=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
`,XS=e=>{switch(e){case Sv:return"regions";case Nv:return"buildingTypes";case kv:return"tenures";default:return""}},eN=e=>{let{optionType:n=kv,accountId:t,selectedOption:a,label:i,setSelectedOption:l}=e;const[r,o]=(0,g.useState)(!1),[s,d]=(0,g.useState)(""),{showNotification:c}=tn(),u=Je(),{data:p}=(0,x.IT)(vv,{variables:{accountId:t||u}}),[m]=(0,ln.n)(Cv,{onCompleted:()=>{o(!1),d(""),c("Option has been created.")},onError:()=>{c("Something went wrong please try again later.","danger")}}),y=[{name:"Create New...",id:"NEW"},{name:"Not Specified",id:null},...(0,hn.get)(p,`getLocationMetadataOptionsForAccount.${XS(n)}`,[])].map(e=>({label:e.name,value:e.id}));return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Select,{label:i,options:y,value:a,onChange:e=>(e=>{"NEW"===e.value?o(!0):l(e)})(e)}),r&&(0,fe.jsx)(f.Modal,{title:"Create Option",open:!0,onClose:()=>o(!1),children:(0,fe.jsxs)(KS,{children:[(0,fe.jsx)(f.TextField,{onChange:e=>d(e.target.value),label:"Name (Required)",name:"name",value:s}),(0,fe.jsxs)(ZS,{container:!0,children:[(0,fe.jsx)(QS,{variant:"outlined",onClick:()=>o(!1),children:"Cancel"}),(0,fe.jsx)(QS,{variant:"contained",onClick:()=>(()=>{if(s){const e=(0,Wa.A)();m({variables:{id:e,accountId:t||u,name:s,type:n},refetchQueries:["GetLocationMetaOptions"]}),l({value:e,label:s})}else c("Name is a required field.","danger")})(),children:"Create"})]})]})})]})},nN=(0,f.styled)(f.Grid)`
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
`,tN=(0,f.styled)(nN)``.withComponent("form"),aN=(0,f.styled)(f.Grid)`
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  & > *:last-child {
    grid-column: span 2;
  }
`,iN=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  gap: 24px;
`,lN=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.error}};
`,rN=e=>{let{accountId:n,selectedOptions:t,setSelectedOptions:a}=e;const i=Vr(n),l=i?.departments?.map(e=>({value:e.id??"",label:e.name??""})),r=t?.departments?.map(e=>({value:e.id??"",label:e.name??""})),{departmentMultipleSelect:o,showCreateDepartment:s,setShowCreateDepartment:d}=((e,n)=>{const[t,a]=(0,g.useState)(!1),i=lr().account.some(e=>e.startsWith("createDepartment")),l=(0,g.useMemo)(()=>{const t=[...e];return n&&!Array.isArray(n)&&(0,hn.find)(e,{id:n})&&t.unshift({value:"notSelected",label:"Not selected"}),i&&t.unshift({value:"NEW",label:"Create New ..."}),t},[e,n,i]),r=(0,g.useMemo)(()=>Array.isArray(n)?n||[]:n,[n]),o=(0,g.useCallback)((e,n,t)=>{"NEW"===e?.value?n():t(e)},[]),s=(0,g.useCallback)((e,n)=>{o(e,()=>a(!0),e=>n({target:{name:"department",value:e.target.value}}))},[o]);return{departmentSelect:(0,g.useCallback)(e=>(0,fe.jsx)(f.Select,{options:l,value:r?(0,hn.find)(l,{value:r}):{},onChange:n=>s(n,e),placeholder:"Select..."}),[s,l,r]),departmentMultipleSelect:(0,g.useCallback)(e=>(0,fe.jsx)(f.MultiSelect,{options:l,value:r,label:"Departments (Optional)",placeholder:"Select...",newValue:"NEW",onCreate:()=>a(!0),onChange:n=>e(n)}),[l,r]),showCreateDepartment:t,setShowCreateDepartment:a}})(l,r);return(0,fe.jsxs)(nN,{container:!0,children:[(0,fe.jsx)(f.TextField,{label:"Location Code (Location ID / ePIM) (Optional)",onChange:e=>a({...t,code:e.target.value}),value:t.code||""}),o(e=>{a({...t,departments:e.map(e=>({id:e.value,name:e.label}))})}),(0,fe.jsx)(eN,{label:"Tenure (Optional)",accountId:n,optionType:kv,selectedOption:t.tenure?.value||"",setSelectedOption:e=>a({...t,tenure:e})}),(0,fe.jsx)(eN,{label:"Region (Optional)",accountId:n,optionType:Sv,selectedOption:t.region?.value||"",setSelectedOption:e=>a({...t,region:e})}),(0,fe.jsx)(eN,{label:"Building Type (Optional)",accountId:n,optionType:Nv,selectedOption:t.buildingType?.value||"",setSelectedOption:e=>a({...t,buildingType:e})}),(0,fe.jsx)(f.TextField,{label:"Floor Space (Square Meters) (Optional)",onChange:e=>a({...t,floorSpace:e.target.value}),type:"number",inputProps:{min:0},value:t.floorSpace||""}),(0,fe.jsx)(f.DatePicker,{label:"Occupation Start Date (Optional)",onChange:e=>a({...t,startDate:e}),name:"startDate",value:t.startDate||""}),(0,fe.jsx)(f.DatePicker,{label:"Occupation End Date (Optional)",onChange:e=>a({...t,endDate:e}),name:"endDate",value:t?.endDate||""}),(0,fe.jsx)(f.DatePicker,{label:"Lease Renewal Date (Optional)",onChange:e=>a({...t,leaseRenewalDate:e}),name:"leaseDate",value:t?.leaseRenewalDate||""}),(0,fe.jsx)(f.TextField,{label:"Shared Emission Percentage (Optional)",inputProps:{min:0,max:100},onChange:e=>a({...t,sharedEmissionPercentage:e.target.value}),value:t?.sharedEmissionPercentage||"",type:"number"}),(0,fe.jsx)(f.TextField,{label:"Notes (Optional)",onChange:e=>a({...t,notes:e.target.value}),value:t?.notes||""}),(0,fe.jsx)(HS,{showCreateDepartment:s,setShowCreateDepartment:d,passedAccountId:n,onComplete:()=>{},onError:()=>{}})]})},oN=e=>{const{id:n,address1:t,address2:a,address3:i,city:l,postcode:r,phone:o,disabled:s,handleChange:d,countryList:c,selectCountry:u,handleSelectChange:p}=e;return(0,fe.jsxs)(aN,{container:!0,children:[(0,fe.jsx)(f.TextField,{id:`${n}-address1`,disabled:s,name:"address1",onChange:d,label:"Address 1",value:t.text,error:!!t.error,helperText:t.error}),(0,fe.jsx)(f.TextField,{id:`${n}-address2`,disabled:s,name:"address2",onChange:d,label:" Address 2 (Optional)",value:a.text,error:!!a.error,helperText:a.error}),(0,fe.jsx)(f.TextField,{id:`${n}-address3`,disabled:s,name:"address3",onChange:d,label:"Address 3 (Optional)",value:i.text,error:!!i.error,helperText:i.error}),(0,fe.jsx)(f.TextField,{id:`${n}-city`,disabled:s,name:"city",onChange:d,label:"City",value:l.text,error:!!l.error,helperText:l.error}),(0,fe.jsx)(f.TextField,{id:`${n}-postcode`,disabled:s,name:"postcode",onChange:d,label:"Postcode",value:r.text,error:!!r.error,helperText:r.error}),(0,fe.jsx)(f.Select,{id:`${n}-country`,disabled:s,name:"selectCountry",onChange:e=>p(e),value:u?.value||"",options:c,label:"Country"}),(0,fe.jsx)(f.TextField,{id:`${n}-phone`,disabled:s,name:"phone",onChange:d,label:"Phone (Optional)",value:o.text,error:!!o.error,helperText:o.error})]})},sN=e=>{const{accountId:n,onSuccess:t,refreshGrid:a,onUpdate:i,showModal:l,locationPoints:r={wasteOut:!1,wasteIn:!1}}=e,{showNotification:o}=tn(),{countryList:s,defaultCountry:d}=Bo(),[c,u]=(0,g.useState)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{hasError:!1,isSuccess:!1,values:{locationId:{text:""},locationName:{text:"",error:""},address1:{text:"",error:""},address2:{text:"",error:""},address3:{text:"",error:""},city:{text:"",error:""},postcode:{text:"",error:""},phone:{text:"",error:""},selectCountry:null,locationPoints:{wasteOut:{checked:(0,hn.get)(e,"wasteOut",!1)},wasteIn:{checked:(0,hn.get)(e,"wasteIn",!1)}},tags:[],aliases:[]},isSubmitted:!1}}(r)),[p,m]=(0,g.useState)(""),[y,h]=(0,g.useState)({code:null,tenure:null,region:null,buildingType:null,floorSpace:null,startDate:null,endDate:null,leaseRenewalDate:null,notes:null,departments:[]}),T=(0,g.useCallback)(e=>{e.persist(),u(n=>({...n,values:{...n.values,[e.target.name]:{...n.values[e.target.name],text:e.target.value}}}))},[]),b=(0,g.useCallback)(e=>{u(n=>({...n,values:{...n.values,selectCountry:e}}))},[]),v=(0,g.useCallback)(e=>{u(e=>({...e,hasError:!0,isSuccess:!1,isSubmitted:!1})),e instanceof zS.K4&&o("Something went wrong! Please try again later.","danger")},[o]),C=(0,g.useCallback)(e=>{u(n=>({...n,values:{...n.values,locationPoints:{...n.values.locationPoints,[e.target.name]:{checked:e.target.checked}}}}))},[]),k=(0,g.useCallback)((e,n)=>{i&&i(e,n)},[i]),{loading:S,error:N,data:A}=(0,x.IT)(fv,{variables:{accountId:n}}),R=S||N?[]:A.getTagsByAccountId.map(e=>({label:e.tagName,value:e.id})),D=!((0,hn.get)(r,"wasteIn",!1)||(0,hn.get)(r,"wasteOut",!1)),[L]=(0,ln.n)(cv,{onError:v,onCompleted:e=>{u(n=>({...n,createdAccountId:e.createLocationWithLocationPoints.id})),t(`The location ${e.createLocationWithLocationPoints.name} has been created!`,"success",l?e.createLocationWithLocationPoints.id:[e.createLocationWithLocationPoints.id,e.createLocationWithLocationPoints.address.id],e.createLocationWithLocationPoints),a()},update:k}),I=(0,g.useCallback)(e=>{e.preventDefault();const{values:{locationName:t,address1:a,city:i,postcode:l,phone:r}}=c,o=$v(t.text,"Location Name")||"",s=$v(a.text,"Address 1")||"",p=$v(i.text,"City")||"",f=$v(l.text,"Postcode")||((0,Rh.isPostalCode)(l.text,"any")?"":"Please enter a valid postcode."),g=r.text?Xb(r.text)?"":"Please enter a valid phone number using only characters 0 - 9":"";if(o||s||p||f||g)return u(e=>({...e,values:{...e.values,locationName:{...e.values.locationName,error:o},address1:{...e.values.address1,error:s},city:{...e.values.city,error:p},postcode:{...e.values.postcode,error:f},phone:{...e.values.phone,error:g}}})),m("Please correct the errors in the form."),!1;const h={locId:(0,Wa.A)(),locName:c.values.locationName.text,accId:n,add1:c.values.address1.text||null,add2:c.values.address2.text||null,add3:c.values.address3.text||null,city:c.values.city.text,post:c.values.postcode.text,phone:c.values.phone.text?c.values.phone.text.trim():null,wasteOut:c.values.locationPoints.wasteOut.checked?(0,Wa.A)():null,wasteIn:c.values.locationPoints.wasteIn.checked?(0,Wa.A)():null,tags:c.values.tags.map(e=>e.value),aliases:c.values.tags.map(e=>e.value),countryId:c.values.selectCountry?.value||d?.value,...y,tenure:y?.tenure?.value,region:y?.region?.value,buildingType:y?.buildingType?.value,departments:y?.departments?.map(e=>e?.id)||[],startDate:Qa(y?.startDate),endDate:Qa(y?.endDate),leaseRenewalDate:Qa(y?.leaseRenewalDate)};L({variables:h}),u(e=>({...e,isSubmitted:!0}))},[n,d?.value,y,c,L]),j=N instanceof zS.K4?N?.message:N;return(0,fe.jsx)(nN,{container:!0,children:(0,fe.jsxs)(tN,{name:"create-location__form",children:[(0,fe.jsx)(f.TextField,{name:"locationName",disabled:c.isSubmitted,label:"Location Name",onChange:T,value:c.values.locationName.text,error:!!c.values.locationName.error,helperText:c.values.locationName.error}),(0,fe.jsx)(oN,{id:"LocationAddressPropertySheet",name:"LocationAddressPropertySheet",address1:c.values.address1,address2:c.values.address2,address3:c.values.address3,city:c.values.city,postcode:c.values.postcode,phone:c.values.phone,handleChange:T,handleSelectChange:e=>b(e),disabled:c.isSubmitted,countryList:s||[],selectCountry:c.values.selectCountry||d}),D&&(0,fe.jsxs)(iN,{container:!0,children:[(0,fe.jsx)(f.Checkbox,{label:"Waste Out",disabled:c.isSubmitted,name:"wasteOut",onChange:C,checked:c.values.locationPoints.wasteOut.checked}),(0,fe.jsx)(f.Checkbox,{disabled:c.isSubmitted,label:" Waste In",name:"wasteIn",onChange:C,checked:c.values.locationPoints.wasteIn.checked})]}),(0,fe.jsx)(f.MultiSelect,{name:"create-location-tag-multiselection",isLoading:S,value:c?.values?.tags,label:"Tags (Optional)",onChange:e=>{return n=e,void u(e=>({...e,values:{...e.values,tags:n}}));var n},error:!!N,helperText:j||"",disabled:!(!S&&!N),options:R}),(0,fe.jsx)(rN,{accountId:n,selectedOptions:y,setSelectedOptions:h}),p&&(0,fe.jsx)(lN,{typescale:"body",size:"medium",children:p}),(0,fe.jsx)(f.Button,{variant:"contained",onClick:I,disabled:!c.values.locationName.text||c.isSubmitted,children:"Create Location"})]})})},dN=[{order:"asc",field:"name"}],cN="Create new location...",uN=e=>{let{onChange:n,refetch:t,error:a,loading:i,value:l,createNew:r,accountId:o,loadMore:s,label:d,isMulti:c,options:u,locationPoints:p,accessor:m="",disabled:y}=e;const{showNotification:h}=tn(),[x,T]=(0,g.useState)(!1),b=(0,g.useCallback)(e=>{e.value===cN?T(!0):n(e)},[n]),v=(0,g.useCallback)(async(e,n,a,i)=>{const l={text:[{filterType:gn.pe.Text,type:gn.II.Contains,filter:"",field:"name"}]},r={accountId:o,sort:dN,filters:l};await t(r),h(e,n);const s={value:(0,hn.get)(i,`${m}id`),label:(0,hn.get)(i,`${m}name`)};T(!1),b(s)},[m,o,b,t,h]),C=a instanceof Error?a?.message:a;return(0,fe.jsxs)(fe.Fragment,{children:[x&&(0,fe.jsx)(f.Modal,{open:x,title:"Add new location",onClose:()=>T(!1),children:(0,fe.jsx)(sN,{accountId:o,onSuccess:v,locationPoints:p})}),(0,fe.jsx)(f.AutoComplete,{placeholder:'"Begin typing to find locations"',options:u,helperText:C||"",onChange:b,loadMore:s,isLoading:i,value:l,isMulti:c,createOption:r?cN:void 0,label:d,error:a?.toString(),disabled:y})]})},pN=S.J1`
  query GetLocationsByAccountId($accountId: ID!, $offset: Int = 0, $limit: Int = 25, $sort: [SortCommand!] = [], $filters: Filters = {}) {
    getLocationsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
      }
    }
  }
`,mN=S.J1`
  query GetWasteInsByAccountId($id: ID!, $offset: Int = 0, $limit: Int = 25, $sort: [SortCommand!] = [], $filters: Filters = {}) {
    getWasteInsByAccountId(id: $id, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      id
      name
    }
  }
`,fN=S.J1`
  query GetWasteOutsByAccountId($id: ID!, $offset: Int = 0, $limit: Int = 25, $sort: [SortCommand!] = [], $filters: Filters = {}) {
    getWasteOutsByAccountId(id: $id, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      id
      name
    }
  }
`;function yN(){let{onQueryCompleted:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Je(),[t,a]=(0,g.useState)(!1),{data:i,refetch:l,fetchMore:r}=(0,x.IT)(pN,{variables:{accountId:n,sort:dN,limit:St},onCompleted:e,notifyOnNetworkStatusChange:!0});return{options:(0,g.useMemo)(()=>$a(i?.getLocationsPage.rows),[i]),loadMore:async(e,t,i)=>{a(!0);try{const a={accountId:n,offset:t,limit:e};i&&(a.filters={text:[{filterType:gn.pe.Text,type:gn.II.Contains,filter:i,field:"name"}]});const l=await r({variables:a});return{total:l.data.getLocationsPage.totalRows,options:$a(l.data.getLocationsPage.rows)}}finally{a(!1)}},loading:t,refetch:l}}const gN=e=>{let{value:n,name:t,isMulti:a,onChange:i,error:l,label:r,createNew:o}=e;const s=Je(),{loading:d,options:c,refetch:u,loadMore:p}=yN({onQueryCompleted:e=>{const t=$a(e?.getLocationsPage?.rows||[]);n?.value&&!t.find(e=>{let{value:t}=e;return t===n.value})&&t.unshift(n)}});return(0,fe.jsx)(uN,{name:t,value:n,label:r,error:l,loading:d,refetch:u,isMulti:a,options:c,onChange:i,loadMore:p,createNew:o,accountId:s})},hN=e=>{let{value:n,name:t,onChange:a,error:i,label:l,createNew:r,createNewAccessor:o}=e;const s=Je(),{data:d,refetch:c,loading:u,fetchMore:p}=(0,x.IT)(fN,{notifyOnNetworkStatusChange:!0,variables:{id:s,sort:dN,limit:St,filters:{text:[{filterType:gn.pe.Text,type:gn.II.Contains,filter:"",field:"name"}]}}}),m=(0,g.useMemo)(()=>$a(d?.getWasteOutsByAccountId),[d]),f=(0,g.useCallback)(async(e,n,t)=>{const a={id:s,offset:n,limit:e};t&&(a.filters={text:[{filterType:gn.pe.Text,type:gn.II.Contains,filter:t,field:"name"}]});const i=await p({variables:a});return{total:1/0,options:$a(i.data.getWasteOutsByAccountId)}},[p,s]);return(0,fe.jsx)(uN,{name:t,value:n,error:i,label:l,options:m,refetch:c,loading:u,onChange:a,loadMore:f,createNew:r,accountId:s,accessor:o,locationPoints:{wasteOut:!0}})},xN=e=>{let{value:n,name:t,error:a,label:i,onChange:l,createNew:r,createNewAccessor:o,disabled:s}=e;const d=Je(),{data:c,refetch:u,loading:p,fetchMore:m}=(0,x.IT)(mN,{notifyOnNetworkStatusChange:!0,variables:{id:d,sort:dN,limit:St,filters:{text:[{filterType:gn.pe.Text,type:gn.II.Contains,filter:"",field:"name"}]}}}),f=(0,g.useMemo)(()=>$a(c?.getWasteInsByAccountId),[c]),y=(0,g.useCallback)(async(e,n,t)=>{const a={offset:n,limit:e,id:d};t&&(a.filters={text:[{filterType:gn.pe.Text,type:gn.II.Contains,filter:t,field:"name"}]});const i=await m({variables:a});return{total:1/0,options:$a(i.data.getWasteInsByAccountId)}},[m,d]);return(0,fe.jsx)(uN,{name:t,value:n,error:a,label:i,options:f,refetch:u,loading:p,onChange:l,loadMore:y,createNew:r,accountId:d,accessor:o,locationPoints:{wasteIn:!0},disabled:s})},TN=S.J1`
  query GetTreatmentProcesses {
    getAllWasteTreatmentProcesses {
      id
      name
    }
  }
`;function bN(e){let{value:n,onChange:t,error:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(TN);return(0,fe.jsx)(ie.l6,{placeholder:"Please select treatment process",value:n,options:$a(i?.getAllWasteTreatmentProcesses),error:a||r,isLoading:l,onChange:t})}const vN=e=>{let{value:n,onChange:t,label:a,error:i,disabled:l}=e;const{data:r,loading:o,error:s}=(0,x.IT)(TN),d=i||s,c=d instanceof zS.K4?d.message:d,u=$a(r?.getAllWasteTreatmentProcesses);return(0,fe.jsx)(f.Select,{placeholder:"Please select treatment process",value:n,label:a,isLoading:o,options:u,error:!!d,helperText:c||"",onChange:e=>t(e),disabled:l})},CN=e=>{let{onClose:n,onSuccess:t,accountId:a,initialValues:i}=e;const{showNotification:l}=tn(),r=!!i?.wasteHierarchyId,[o,s]=(0,g.useState)(i||{wasteHierarchyId:null,treatmentProcessId:"",wasteInId:"",prevention:0,preparingForReuse:0,recycling:0,otherRecovery:0,disposal:0,unknown:0,startDate:null,endDate:null,reference:"",isGlobal:!1}),[d,{loading:c,error:u}]=(0,ln.n)(FS,{onCompleted:()=>{l("Waste hierarchy submitted successfully","success"),n(),t?.()},onError:e=>{l(`Error: ${e.message}`,"danger")}}),p=e=>{const{name:n,value:t}=e.target;s(e=>({...e,[n]:t}))};return(0,fe.jsx)(f.Modal,{open:!0,onClose:n,title:"Waste Hierarchy",children:(0,fe.jsxs)(f.Grid,{container:!0,spacing:3,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(vN,{label:"Treatment process",onChange:e=>{s(n=>({...n,treatmentProcessId:e.value}))},value:o.treatmentProcessId,disabled:r})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(xN,{label:"Waste in location",onChange:e=>{s(n=>({...n,wasteInId:e.value}))},value:o.wasteInId||void 0,disabled:r})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Checkbox,{label:"Global",onChange:e=>{s(n=>({...n,isGlobal:e.target.checked}))},checked:Boolean(o.isGlobal),disabled:r})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.DatePicker,{label:"Start Date",name:"startDate",value:o.startDate?new Date(o.startDate):void 0,onChange:e=>s(n=>({...n,startDate:e}))})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.DatePicker,{label:"End Date",name:"endDate",value:o.endDate?new Date(o.endDate):void 0,onChange:e=>s(n=>({...n,endDate:e}))})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{label:"Prevention %",name:"prevention",type:"number",value:String(o.prevention),onChange:p})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{label:"Preparing for Reuse %",name:"preparingForReuse",type:"number",value:String(o.preparingForReuse),onChange:p})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{label:"Recycling %",name:"recycling",type:"number",value:String(o.recycling),onChange:p})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{label:"Other Recovery %",name:"otherRecovery",type:"number",value:String(o.otherRecovery),onChange:p})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{label:"Disposal %",name:"disposal",type:"number",value:String(o.disposal),onChange:p})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{label:"Unknown %",name:"unknown",type:"number",value:String(o.unknown),onChange:p})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{label:"Reference",name:"reference",value:o.reference,onChange:p})}),u&&(0,fe.jsx)(f.Text,{color:"error",textAlign:"center",children:u.message}),(0,fe.jsxs)(f.Grid,{size:12,container:!0,spacing:2,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,onClick:n,disabled:c,children:"Close"})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,variant:"contained",color:"primary",onClick:e=>{e.preventDefault(),100===[Number(o.prevention)||0,Number(o.preparingForReuse)||0,Number(o.recycling)||0,Number(o.otherRecovery)||0,Number(o.disposal)||0,Number(o.unknown)||0].reduce((e,n)=>e+n,0)?d({variables:{input:{accountId:a,wasteHierarchyId:o.wasteHierarchyId,treatmentProcessId:o.treatmentProcessId,wasteInId:o.wasteInId||null,prevention:Number(o.prevention)||0,preparingForReuse:Number(o.preparingForReuse)||0,recycling:Number(o.recycling)||0,otherRecovery:Number(o.otherRecovery)||0,disposal:Number(o.disposal)||0,unknown:Number(o.unknown)||0,startDate:o.startDate?bn()(o.startDate).format("YYYY-MM-DD"):null,endDate:o.endDate?bn()(o.endDate).format("YYYY-MM-DD"):null,reference:o.reference,isGlobal:o.isGlobal}}}):l("Percentages must sum to 100%","danger")},disabled:c,children:"Submit"})})]})]})})},kN=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  gap: 8px;
`,SN=(0,f.styled)(f.AgGrid)`
  height: calc(100vh - 216px); // header + page title height;
  padding-bottom: 2px; // border bottom and shadow to show properly
`,NN=()=>{const e=(0,g.useRef)(null),n=Je(),{showNotification:t}=tn(),[a,i]=(0,g.useState)(null),[l,r]=(0,g.useState)(!1),[o,s]=(0,g.useState)(void 0),{canCreateWasteHierarchy:d,canEditWasteHierarchy:c,canDeleteWasteHierarchy:u}=function(){const e=ec("data");return{get canCreateWasteHierarchy(){return e("createWasteHierarchy")},get canEditWasteHierarchy(){return e("createWasteHierarchy")},get canDeleteWasteHierarchy(){return e("createWasteHierarchy")}}}(),[p]=(0,ln.n)(PS,{onCompleted:()=>{t("Waste hierarchy deleted successfully","success"),i(null),e.current?.gridApi?.refreshServerSide({purge:!0})},onError:e=>{t("Failed to delete waste hierarchy","danger"),E.Cp(e)}}),m=(0,g.useCallback)(e=>{i(e)},[]),y=(0,g.useCallback)(()=>{a&&p({variables:{id:a}})},[a,p]),h=(0,g.useCallback)(()=>{r(!0)},[]),x=(0,g.useCallback)(e=>{r(!0),s({...e,wasteHierarchyId:e.id,treatmentProcessId:e.treatmentProcess?.id})},[]),T=(0,g.useCallback)(()=>{r(!1),s(void 0)},[]),[b]=ed(ES,{notifyOnNetworkStatusChange:!0,fetchPolicy:"network-only"}),v=(0,g.useMemo)(()=>[{headerName:"Treatment Process",field:"treatmentProcessName",sortable:!0,filter:"agTextColumnFilter",valueFormatter:e=>e.data.treatmentProcess?.name},{headerName:"Waste In",field:"wasteInName",sortable:!0,filter:"agTextColumnFilter",valueFormatter:e=>e.data.wasteIn?.name||"-"},{field:"startDate",headerName:"Start Date",sortable:!0,filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)||"-"}},{field:"endDate",headerName:"End Date",sortable:!0,filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)||"-"}},{field:"isGlobal",headerName:"Global",sortable:!0,valueFormatter:qi,filter:"agSetColumnFilter",filterParams:Ji()},{field:"reference",headerName:"Reference",sortable:!0,filter:"agTextColumnFilter",valueFormatter:e=>{let{value:n}=e;return n||"-"}},{field:"prevention",headerName:"Prevention %",sortable:!0,filter:"agNumberColumnFilter"},{field:"preparingForReuse",headerName:"Preparing for Reuse %",sortable:!0,filter:"agNumberColumnFilter"},{field:"recycling",headerName:"Recycling %",sortable:!0,filter:"agNumberColumnFilter"},{field:"otherRecovery",headerName:"Other Recovery %",sortable:!0,filter:"agNumberColumnFilter"},{field:"disposal",headerName:"Disposal %",sortable:!0,filter:"agNumberColumnFilter"},{field:"unknown",headerName:"Unknown %",sortable:!0,filter:"agNumberColumnFilter"},...c||u?[{field:"actions",headerName:"Actions",cellRenderer:e=>(0,fe.jsxs)(kN,{children:[c&&(0,fe.jsx)(f.IconButton,{children:(0,fe.jsx)(f.Icons.Edit,{onClick:()=>x(e.data)})}),u&&(0,fe.jsx)(f.IconButton,{onClick:()=>m(e.data.id),children:(0,fe.jsx)(f.Icons.Delete,{})})]})}]:[]],[m,x,c,u]),C=(0,g.useMemo)(()=>({columnDefs:v,rowModelType:"serverSide",serverSideDatasource:{async getRows(e){try{const{startRow:t=0,endRow:a=25,sortModel:i,filterModel:l}=e.request,r=await b({variables:{accountId:n,offset:t,limit:a-t,sort:wn(i),filters:jn(l)}});if(r.error||!r.data)throw r.error||new Error("No data returned from query");const{rows:o,totalRows:s}=r.data.getWasteHierarchiesPage;e.success({rowData:o,rowCount:s})}catch(n){e.fail(),E.Cp(n)}}},pagination:!0,paginationPageSize:20}),[n,v,b]);return(0,fe.jsxs)(f.Page,{title:{content:"Waste Hierarchies",actionButton:(0,fe.jsxs)(kN,{children:[(0,fe.jsx)(jS,{filtersApplied:e.current?.filtersApplied,resetGridState:e.current?.resetGridState}),d&&(0,fe.jsx)(f.Button,{variant:"contained",onClick:h,children:"Add new"})]})},children:[(0,fe.jsx)(SN,{ref:e,gridKey:`${n}WasteHierarchiesGridV2`,gridOptions:C}),u&&(0,fe.jsx)(GS,{open:!!a,onClose:()=>i(null),onConfirm:y,title:"Delete Waste Hierarchy",body:"Are you sure you want to delete this waste hierarchy?",confirmButtonText:"Delete"}),d&&l&&(0,fe.jsx)(CN,{onClose:T,accountId:n,initialValues:o,onSuccess:()=>{e.current?.gridApi?.refreshServerSide({purge:!0})}})]})};var AN=t(69364);const RN=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  transition: all 0.2s ease-in-out;

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
    transform: scale(1.2);
  }
`,DN=e=>{let{id:n,name:t,icon:a,size:i="md",...l}=e;return(0,fe.jsx)(RN,{...l,children:(0,fe.jsx)(ie.In,{id:n,name:t,icon:a,size:i})})},LN=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  ${e=>{if(e.action)return`background-color: ${e.theme.colors.warning.highlight.background};`}};
`,IN=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.profile.padding};
  word-break: break-all;
`,jN=e=>{const{id:n,wasteTreatmentProcessName:t,prevention:a,preparingForReuse:i,recycling:l,otherRecovery:r,disposal:o,unknown:s,reference:d,isGlobal:c,showViewModal:u}=e;return(0,fe.jsxs)(LN,{container:!0,id:`${n}__WasteHierarchy__Row`,name:`${n}__WasteHierarchy__Row`,children:[(0,fe.jsx)(IN,{item:!0,span:2,children:(0,fe.jsx)(ie.EY,{id:`${n}__WasteHierarchy__wasteTreatmentProcessName`,name:`${n}__WasteHierarchy__wasteTreatmentProcessName`,children:t})}),(0,fe.jsx)(IN,{item:!0,span:1.25,children:(0,fe.jsxs)(ie.EY,{id:`${n}__WasteHierarchy__prevention`,name:`${n}__WasteHierarchy__prevention`,children:[a||"0.00","%"]})}),(0,fe.jsx)(IN,{item:!0,span:1.25,children:(0,fe.jsxs)(ie.EY,{id:`${n}__WasteHierarchy__preparingForReuse`,name:`${n}__WasteHierarchy__preparingForReuse`,children:[i||"0.00","%"]})}),(0,fe.jsx)(IN,{item:!0,span:1.25,children:(0,fe.jsxs)(ie.EY,{id:`${n}__WasteHierarchy__recycling`,children:[l||"0.00","%"]})}),(0,fe.jsx)(IN,{item:!0,span:1.25,children:(0,fe.jsxs)(ie.EY,{id:`${n}__WasteHierarchy__otherRecovery`,name:`${n}__WasteHierarchy__otherRecovery`,children:[r||"0.00","%"]})}),(0,fe.jsx)(IN,{item:!0,span:1.25,children:(0,fe.jsxs)(ie.EY,{id:`${n}__WasteHierarchy__disposal`,name:`${n}__WasteHierarchy__disposal`,children:[o||"0.00","%"]})}),(0,fe.jsx)(IN,{item:!0,span:1.25,children:(0,fe.jsxs)(ie.EY,{id:`${n}__WasteHierarchy__unknown`,name:`${n}__WasteHierarchy__unknown`,children:[s||"0.00","%"]})}),(0,fe.jsxs)(IN,{item:!0,span:1.25,children:[d&&(0,fe.jsx)(ie.Yq,{id:`${n}__WasteHierarchy__reference`,name:`${n}__WasteHierarchy__reference`,href:d,target:"_blank",children:(0,fe.jsx)(ie.In,{icon:"external-link-alt"})}),!d&&(0,fe.jsx)(ie.EY,{id:`${n}__WasteHierarchy__reference`,name:`${n}__WasteHierarchy__reference`,children:"-"})]}),(0,fe.jsx)(IN,{item:!0,span:1.25,children:(0,fe.jsx)(ie.EY,{id:`${n}__WasteHierarchy__defaultOrCustom`,name:`${n}__WasteHierarchy__defaultOrCustom`,children:c?"Default":"Custom"})}),(0,fe.jsx)(IN,{item:!0,span:1.25,children:(0,fe.jsx)(DN,{id:`${n}__WasteHierarchy__view`,name:`${n}__WasteHierarchy__view`,icon:"eye",size:"lg",onClick:u})})]})};jN.propTypes={id:pe().string,wasteTreatmentProcessName:pe().string,prevention:pe().number,preparingForReuse:pe().number,recycling:pe().number,otherRecovery:pe().number,disposal:pe().number,reference:pe().string};const wN=jN,ON=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing} ${e.theme.geometry.md.spacing}`};
  background: ${e=>e.theme.colors.overlay.light.background};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  border-top: 1px solid ${e=>e.theme.colors.text.light.background};
  flex: 0 0 auto;
`,EN=le.default.div`
  flex: 1 1 auto;
  overflow: scroll;
`,_N=e=>{const{wasteTreatmentProcessHierarchies:n,showViewModal:t}=e;return(0,fe.jsxs)(g.Fragment,{children:[(0,fe.jsxs)(ON,{id:"WasteHierarchyContainerHeaderRow",name:"WasteHierarchyContainerHeaderRow",container:!0,align:"between",children:[(0,fe.jsx)(ie.fv,{item:!0,span:2,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Waste Treatment Process"})}),(0,fe.jsx)(ie.fv,{item:!0,span:1.25,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Prevention"})}),(0,fe.jsx)(ie.fv,{item:!0,span:1.25,children:(0,fe.jsxs)(ie.EY,{weight:"bold",children:["Preparing for",(0,fe.jsx)("br",{}),"re-use"]})}),(0,fe.jsx)(ie.fv,{item:!0,span:1.25,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Recycling"})}),(0,fe.jsx)(ie.fv,{item:!0,span:1.25,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Other Recovery"})}),(0,fe.jsx)(ie.fv,{item:!0,span:1.25,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Disposal"})}),(0,fe.jsx)(ie.fv,{item:!0,span:1.25,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Unknown"})}),(0,fe.jsx)(ie.fv,{item:!0,span:1.25,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Reference"})}),(0,fe.jsx)(ie.fv,{item:!0,span:1.25,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"Default or Custom"})}),(0,fe.jsx)(ie.fv,{item:!0,span:1.25,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:"View"})})]}),(0,fe.jsx)(EN,{id:"WasteHierarchyContainerRowContainer",name:"WasteHierarchyContainerRowContainer",children:n.map(e=>(0,fe.jsx)(wN,{id:e.id,wasteTreatmentProcessName:e.treatmentProcess.name,prevention:e.prevention,preparingForReuse:e.preparingForReuse,recycling:e.recycling,otherRecovery:e.otherRecovery,disposal:e.disposal,unknown:e.unknown,sum:e.sum,reference:e.reference,isGlobal:e.isGlobal,showViewModal:()=>t(e)},e.id))})]})};_N.propTypes={wasteTreatmentProcessHierarchies:pe().array};const FN=_N,PN=le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
  padding-top: ${e=>e.theme.geometry.md.spacing};
`;function BN(e){if(e&&e.getAllWasteTreatmentProcesses)return e.getAllWasteTreatmentProcesses.map(e=>({label:e.name,value:e.id}))}function UN(e){let{onWasteTreatmentChange:n,wasteTreatmentId:t,disabled:a,validationError:i}=e;const{loading:l,error:r,data:o}=(0,x.IT)(_S);return(0,fe.jsxs)(fe.Fragment,{children:[r&&(0,fe.jsx)(ie.Kw,{error:r,children:e=>{let{icon:n}=e;return(0,fe.jsx)(PN,{children:(0,fe.jsx)(ie.Wz,{icon:n,title:"Treatment Processes failed to load"})})}}),(0,fe.jsx)(ie.hh.SelectColumn,{isDisabled:a,error:i,label:"Treatment Process",name:"treatmentProcessSelectBox",isLoading:l,components:{LoadingIndicator:()=>(0,fe.jsx)(ie.Ip,{size:"xxs"})},options:BN(o),onChange:n,value:t})]})}const $N=(e,n)=>e<0?`${n} should be positive.`:e?null:`${n} cannot be empty.`;var MN=t(9355),VN=t.n(MN);function GN(e){return n=>{const t=!!n.wasteIn,a=t&&n.wasteIn.id===e,i=n.isGlobal,l=n.accountId&&!t;return"Default"===e?i||l:a||l||i}}function zN(e){return e.wasteIn?3:e.accountId?2:1}function WN(e,n){return zN(n)-zN(e)}function qN(e,n){const t=Hn(e.treatmentProcess.name,n.treatmentProcess.name);return 0!==t?t:+n.isGlobal-+e.isGlobal}function JN(e,n){return e.query({query:OS,variables:{accountId:n}})}const YN=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,HN={treatmentProcessId:{value:"",select:{value:"",label:""},error:""},prevention:{value:"",error:"",name:"prevention",label:"Prevention"},preparingForReuse:{value:"",error:"",name:"preparingForReuse",label:"Preparing for Reuse"},recycling:{value:"",error:"",name:"recycling",label:"Recycling"},otherRecovery:{value:"",error:"",name:"otherRecovery",label:"Other Recovery"},disposal:{value:"",error:"",name:"disposal",label:"Disposal"},unknown:{value:"",error:"",name:"unknown",label:"Unknown"},reference:{value:"",error:""},isSubmitting:!1},KN=(0,le.default)(ie.hh.HeaderRow)`
  margin-bottom: 0;
`,QN=(0,le.default)(ie.hh.HeaderRow)`
  font-weight: 400;
`;function ZN(e){let{onNotification:n,onDismiss:t,accountId:a,currentWasteIn:i}=e;const[l,r]=(0,g.useState)(HN),[o]=(0,ln.n)(FS),s=(0,C.m)(),d=e=>{let{target:{name:n,value:t}}=e;r(e=>({...e,[n]:{...e[n],error:"",value:t}}))},{isSubmitting:c,prevention:u,preparingForReuse:p,recycling:m,otherRecovery:f,disposal:y,unknown:h}=l,x=[u,p,m,f,y,h];return(0,fe.jsxs)(YN,{children:[(0,fe.jsx)(KN,{children:"Set Custom Waste Hierarchy Percentages"}),i&&(0,fe.jsxs)(QN,{children:["For Waste In location: ",(0,fe.jsx)("em",{children:i.name})]}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(UN,{onWasteTreatmentChange:e=>{(e=>{r(n=>({...n,treatmentProcessId:{...n.treatmentProcessId,error:"",value:e.target.value,select:e.target.select}}))})(e),(async e=>{const n=i?i.id:null,t=await async function(e,n,t,a){const i=await async function(e,n,t,a){try{const{data:i}=await JN(e,t),l=GN(a);return i.getWasteHierarchiesByAccountId.filter(e=>e.treatmentProcess.id===n&&l(e)).sort(WN).shift()}catch(e){return null}}(e,n,t,a);return i||async function(e,n){try{const{data:t}=await e.query({query:BS,variables:{treatmentProcessId:n}});return t.getDefaultWasteHierarchyByWasteTreatmentId}catch{return null}}(e,n)}(s,e,a,n),l=["prevention","preparingForReuse","recycling","otherRecovery","disposal","unknown"];r(e=>{const n={};return l.forEach(a=>{n[a]={...e[a],value:t?String(t[a]):""}}),{...e,...n}})})(e.target.value)},disabled:c,validationError:l.treatmentProcessId.error,wasteTreatmentId:l.treatmentProcessId.select})}),x.map(e=>(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextInputColumn,{disabled:c,name:e.name,type:"number",label:e.label,error:l[e.name].error,value:l[e.name].value,onChange:d,placeholder:l[e.name].placeholder})},e.name)),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextInputColumn,{disabled:c,name:"reference",type:"text",label:"Reference",error:l.reference.error,value:l.reference.value,onChange:d})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.ButtonColumn,{disabled:c,onClick:async()=>{const{treatmentProcessId:e,prevention:d,preparingForReuse:c,recycling:u,otherRecovery:p,disposal:m,unknown:f,reference:y}=l;if(r(e=>({...e,isSubmitting:!0})),e.error=$N(e.value,"Treatment Process"),d.error=$N(d.value,"Prevention"),c.error=$N(c.value,"Preparing for Reuse"),u.error=$N(u.value,"Recycling"),p.error=$N(p.value,"Other Recovery"),m.error=$N(m.value,"Disposal"),f.error=$N(f.value,"Unknown"),e.error||d.error||c.error||u.error||p.error||m.error||f.error)return void r(e=>({...e,isSubmitting:!1}));let g=y.value;g.match(/https?:\/\/.*/g)||""===g.trim()||(g=`https://${g}`);const h=(e=>{const n=e.reduce((e,n)=>e+ +n,0);return 100===n?null:`Percentages must add up to 100, Total is currently at ${n}`})([d.value,c.value,u.value,p.value,m.value,f.value]);if(h)return n(h,"danger"),void r(e=>({...e,isSubmitting:!1}));try{const{data:{upsertCustomWasteHierarchy:l}}=await o({variables:{input:{accountId:a,treatmentProcessId:e.value,prevention:d.value,preparingForReuse:c.value,recycling:u.value,otherRecovery:p.value,disposal:m.value,unknown:f.value,reference:g,wasteInId:i?i.id:null}}});await async function(e,n,t){const{data:a}=await JN(e,n);a.getWasteHierarchiesByAccountId.find(e=>e.id===t.id)||await e.cache.writeQuery({query:OS,variables:{accountId:n},data:{...a,getWasteHierarchiesByAccountId:[...a.getWasteHierarchiesByAccountId,t]}})}(s,a,l),n("Waste Hierarchy successfully set","success",l.id),t()}catch(e){n("Waste Hierarchy was not set","danger")}},name:"wasteHierarchySubmitButton",children:"Set Percentages"})})]})}const XN=e=>{const{id:n,name:t="PropertySheetTextColumn",label:a,value:i}=e;return(0,fe.jsxs)(ie.hh.Row,{children:[(0,fe.jsx)(ie.hh.TextColumn,{id:`${t}__label--${n}`,name:`${t}__label--${n}`,children:a}),(0,fe.jsx)(ie.hh.TextColumn,{id:`${t}__value--${n}`,name:`${t}__value--${n}`,align:"right",children:i})]})},eA=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,nA=e=>{const{hierarchy:n}=e,{id:t,treatmentProcess:a,prevention:i,preparingForReuse:l,recycling:r,otherRecovery:o,disposal:s,unknown:d,reference:c,isGlobal:u,user:p}=n;return(0,fe.jsxs)(eA,{children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:a.name}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsxs)(ie.hh.TextColumn,{id:`ViewWasteHierarchies__isGlobal--${t}`,name:`ViewWasteHierarchies__isGlobal--${t}`,children:["This is a ",u?"default":"custom"," waste hierarchy"]})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsxs)(ie.hh.TextColumn,{id:`ViewWasteHierarchies__user--${t}`,name:`ViewWasteHierarchies__user--${t}`,children:["Created By: ",p?p.first_name:"Ditto"," ",p?p.last_name:"Sustainability"]})}),(0,fe.jsx)(XN,{id:t,name:"ViewWasteHierarchiesPrevention",label:"Prevention:",value:`${i}%`}),(0,fe.jsx)(XN,{id:t,name:"ViewWasteHierarchiesPreparingForReuse",label:"Preparing For Reuse:",value:`${l}%`}),(0,fe.jsx)(XN,{id:t,name:"ViewWasteHierarchiesRecycling",label:"Recycling:",value:`${r}%`}),(0,fe.jsx)(XN,{id:t,name:"ViewWasteHierarchiesOtherRecovery",label:"Other Recovery:",value:`${o}%`}),(0,fe.jsx)(XN,{id:t,name:"ViewWasteHierarchiesDisposal",label:"Disposal:",value:`${s}%`}),(0,fe.jsx)(XN,{id:t,name:"ViewWasteHierarchiesUnknown",label:"Unknown:",value:`${d}%`}),c&&(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextColumn,{id:`ViewWasteHierarchies__reference--${t}`,name:`ViewWasteHierarchies__reference--${t}`,label:"Reference:",children:(0,fe.jsx)(ie.Yq,{id:`ViewWasteHierarchies__reference--${t}`,name:`ViewWasteHierarchies__reference--${t}`,href:c,target:"_blank",children:c})})})]})},tA=e=>{const{showCreateModal:n,onDismiss:t,onNotification:a,accountId:i,viewHierarchyModal:l,currentWasteIn:r}=e;return(0,fe.jsxs)(fe.Fragment,{children:[n&&(0,fe.jsx)(ie.aF,{span:4,show:!0,name:"CreateWasteHierarchyModal",dismissable:!0,onDismiss:t,children:(0,fe.jsx)(ZN,{accountId:i,onNotification:a,onDismiss:t,currentWasteIn:r})}),l.show&&(0,fe.jsx)(ie.aF,{show:!0,name:"ViewWasteHierarchyModal",dismissable:!0,onDismiss:t,height:"auto",maxHeight:"90vh",children:(0,fe.jsx)(nA,{accountId:i,hierarchy:l.hierarchy})})]})},aA={label:"Default",value:"Default"};function iA(e){return[aA].concat(e.slice().sort(Jn).map(e=>({label:e.name,value:e.id})).slice(0,100))}function lA(e){let{wasteInLocations:n,value:t,onChange:a}=e;const i=iA(n);return(0,fe.jsx)(ie.l6,{placeholder:"Waste In Locations",options:i,defaultOptions:i,onChange:e=>{a(e.target.value)},loadOptions:e=>({options:iA(md(n,e,["id","name"]))}),value:t})}const rA=(0,le.default)(ie.fI)`
  margin-left: auto;
`,oA=(0,le.default)(ie.fv)`
  margin-left: auto;
`,sA=(0,le.default)(ie.fv)`
  padding-right: 32px;
`,dA=$u(function(){const[e,n]=(0,g.useState)({showCreateModal:!1,viewHierarchyModal:{show:!1,hierarchy:{}},notification:{message:null,color:null,id:null}}),[t,a]=(0,g.useState)("Default"),i=Je(),l={accountId:i},{data:r,error:o,refetch:s,networkStatus:d}=(0,x.IT)(OS,{variables:l}),c=(e=>e<AN.pT.refetch)(d),u=function(e){return e&&e.getWasteHierarchiesByAccountId?e.getWasteHierarchiesByAccountId:[]}(r),p=function(e){return e&&e.getWasteInsByAccountId?e.getWasteInsByAccountId:[]}(r),m=function(e,n){const t=e.filter(GN(n)),a=VN()(t,e=>e.treatmentProcess.id);return Object.keys(a).map(e=>a[e].sort(WN).shift())}(u,t).slice().sort(qN);return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[e.notification.message&&(0,fe.jsx)(ie.Eg,{color:e.notification.color,onClose:()=>{n(e=>({...e,notification:{message:null,color:null,id:null}}))},name:e.notification.id,show:!0,preventDuplicate:!0,children:e.notification.message}),(0,fe.jsx)(tA,{showCreateModal:e.showCreateModal,onDismiss:()=>{n(e=>({...e,showCreateModal:!1,viewHierarchyModal:{show:!1,hierarchy:null}}))},onNotification:(e,t,a)=>{n(n=>({...n,notification:{message:e,color:t,id:a}}))},accountId:i,viewHierarchyModal:e.viewHierarchyModal,currentWasteIn:"Default"===t?null:p.find(e=>e.id===t)}),(0,fe.jsx)(gu,{icon:"trash-alt",iconColor:"primary",title:"Waste Hierarchies",children:(0,fe.jsxs)(rA,{span:9,item:!0,container:!0,children:[(0,fe.jsx)(sA,{item:!0,span:6,children:(0,fe.jsx)(lA,{wasteInLocations:p,onChange:a,value:t})}),(0,fe.jsx)(oA,{item:!0,span:6,children:(0,fe.jsx)(ie.$n,{onClick:()=>{n(e=>({...e,showCreateModal:!0}))},children:"+ Set Custom %s"})})]})}),c&&(0,fe.jsx)(Rc,{}),!c&&o&&(0,fe.jsx)(ie.Kw,{error:o,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{icon:a,title:n,body:t,retry:()=>s(l)})}}),!c&&u.length&&(0,fe.jsx)(FN,{wasteTreatmentProcessHierarchies:m,showViewModal:e=>{n(n=>({...n,viewHierarchyModal:{show:!0,hierarchy:e}}))}})]})}),cA=e=>{let{value:n}=e;return!!n&&(0,fe.jsx)("div",{children:(0,fe.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,fe.jsx)("path",{d:"M17 7.5L12 3.5L7 10.5L3 7.5V20.5H21V7.5H17ZM19 17.45L12 12L8 17.5L5 15.1V11.5L7.44 13.33L12.4 6.38L16.3 9.5H19V17.45Z",fill:"#444746"})})})},uA=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,pA=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,mA=e=>{let{data:n,onEdit:t}=e;return(0,fe.jsx)(uA,{children:(0,fe.jsx)(pA,{onClick:()=>t(n.id,n),children:(0,fe.jsx)(ie.In,{name:`edit--${n.id}`,icon:"pencil-alt"})})})},fA=le.default.a`
  text-decoration: underline;
`;function yA(e){let{value:n,to:t,icon:a}=e;const i=t||n,l=a?(0,fe.jsx)(ie.In,{icon:a}):n;return Dh().isURL(i||"")||i?.startsWith("/")?(0,fe.jsx)(fA,{href:i,target:"_blank",rel:"noopener noreferrer",children:l}):l}const gA=le.default.mark`
  background-color: yellow;
`;function hA(e,n){if(!n)return[e];const t=new RegExp(`(${n})`,"ig").exec(e);return t?[e.slice(0,t.index),(0,fe.jsx)(gA,{children:t[0]}),e.slice(t.index+n.length)]:[e]}function xA(e){let{text:n,searchValue:t}=e;return(0,fe.jsx)(fe.Fragment,{children:n?hA(n,t):null})}function TA(e){let{value:n,valueFormatted:t,searchValue:a}=e;const i=t||n||null;return(0,fe.jsx)(xA,{text:i?String(i):null,searchValue:a})}function bA(e){let{onEdit:n,fetchRows:t,accountId:a,setGridApi:i}=e;const l=(0,C.m)(),r=qr({autoFit:!0}),[o,s]=(0,g.useState)(null),{showNotification:d}=tn(),c=async e=>{try{const{data:{getEnergySourcePageFilter:n}}=await l.query({query:Lr,variables:{accountId:a,field:e.colDef.colId||e.colDef.field}}),t="locationPointId"===e.colDef.colId?(e=>e.reduce((e,n)=>{const t=e.findIndex(e=>e.label===n.label);return-1!==t?e[t]={...e[t],value:Array.isArray(e[t].value)?e[t].value.concat([n.value]):[e[t].value].concat([n.value])}:e.push(n),e},[]))(n):"isGeneration"===e.colDef.colId?(e=>e.map(e=>({...e,value:"true"===e.value?"1":"false"===e.value?"0":null})))(n):n;e.success(t.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){E.Cp(n),d(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning")}},u={async getRows(e){try{const{startRow:n,sortModel:i,filterModel:l}=e.request,r={accountId:a,offset:n,limit:25,sort:wn(i),filters:jn(l)},{rows:o,totalRows:s}=await t(r);e.success({rowData:o,rowCount:s})}catch(n){e.fail(),s(n),E.Cp(n)}}},p={pagination:!0,paginationPageSize:25,paginationPageSizeSelector:!1,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}},columnDefs:[{headerName:"Name",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],newRowsAction:"keep"},field:"name"},{colId:"typeId",headerName:"Type",field:"type.name",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{colId:"locationPointId",headerName:"Location",field:"locationPoint.name",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{colId:"meterCode",headerName:"Meter Code",field:"meterCode",filter:"agTextColumnFilter"},{colId:"inOut",headerName:"Water Direction",field:"inOut",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{colId:"isGeneration",headerName:"Renewable energy",field:"isGeneration",valueFormatter:e=>qi(e),filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:Yi}},{colId:"n3rgyConsentStatus",headerName:"AMR Integration",field:"n3rgyConsentStatus",valueFormatter:e=>(e=>{const n=e.value,t=n===gn.K.FailedToRequest,a=e.data.n3rgyConsentRequestDate?`at: ${bn()(e.data.n3rgyConsentRequestDate).format("YYYY-MM-DD")}`:"",i=t&&e.data.n3rgyConsentErrorMessage||"",l=n?Za(n.toLowerCase().replaceAll("_"," ")):"";return n?`${l} ${a} ${i}`:"-"})(e),filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{colId:"startDate",headerName:"Start Date",field:"startDate",cellRenderer:"date"},{colId:"endDate",headerName:"End Date",field:"endDate",cellRenderer:"date"},{headerName:"Actions",cellRenderer:"action",filter:!1,sortable:!1}],rowStyle:{width:"100%",display:"flex",alignItems:"center"},rowHeight:58},m={action:e=>(0,fe.jsx)(mA,{...e,onEdit:n}),date:e=>e.value?Intl.DateTimeFormat().format(new Date(e.value)):null};return o?(0,fe.jsx)($c,{error:o,name:o.message,retry:async()=>{await t({accountId:a,offset:0,limit:25}),s(null)}}):(0,fe.jsx)(Pg,{gridOptions:p,paginationPageSize:25,cacheBlockSize:25,onFirstDataRendered:r.onFirstDataRendered,onFilterChanged:r.onFilterChanged,onSortChanged:r.onSortChanged,onColumnVisible:r.onSaveGridColumnState,onColumnPinned:r.onSaveGridColumnState,onColumnResized:r.onSaveGridColumnState,onColumnMoved:r.onSaveGridColumnState,onColumnRowGroupChanged:r.onSaveGridColumnState,onColumnValueChanged:r.onSaveGridColumnState,onColumnPivotChanged:r.onSaveGridColumnState,components:m,onGridReady:e=>{r.onGridReady(e),i({api:e.api,datasource:u}),e.api.setGridOption("serverSideDatasource",u)}})}const vA="CREATE_NEW";function CA(e){let{options:n,onChange:t,error:a,accountId:i,value:l,selectedOption:r,loadOptions:o,createNew:s,createNewModalSize:d=5,loading:c,locationPoints:u,accessor:p="",labelledBy:m}=e;const{showNotification:f}=tn(),[y,h]=(0,g.useState)(!1),x=(0,g.useCallback)((e,n,a,i)=>{f(e,n);const l={value:(0,hn.get)(i,`${p}id`),label:(0,hn.get)(i,`${p}name`)};t({target:{select:l,value:l}}),h(!1)},[p,t,f]);return(0,fe.jsxs)(fe.Fragment,{children:[y&&(0,fe.jsx)(ie.aF,{span:d,size:"md",show:y,name:"CreateLocation__Modal--create",dismissable:!0,onDismiss:()=>h(!1),children:(0,fe.jsx)(pC,{accountId:i,onSuccess:x,locationPoints:u})}),(0,fe.jsx)(ie.l6,{"aria-labelledby":m,name:"locationId",placeholder:"Begin typing to find locations",value:r||l,options:n,error:a,defaultOptions:!0,debounceTimeout:1e3,isLoading:c,loadOptions:async e=>{const{options:n,total:t}=await o(e);return r&&!n.find(e=>{let{value:n}=e;return n===r.value})&&n.unshift(r),s&&n.unshift({label:"Create new...",value:vA}),{options:n,total:t}},onChange:e=>{e.target.select.value===vA?h(!0):t(e)}})]})}function kA(e){return{value:e.id,label:e.name}}const SA=[{order:"asc",field:"name"}];function NA(e){let{value:n,onChange:t,error:a,selectedOption:i,createNew:l,createNewModalSize:r=5,labelledBy:o}=e;const s=Je(),d=(0,C.m)();return(0,fe.jsx)(CA,{value:n,loadOptions:async e=>{const n=await d.query({query:pN,variables:{accountId:s,sort:SA,filters:{text:[{filterType:"text",type:"contains",filter:e,field:"name"}]}}}),{getLocationsPage:t}=n.data;return{options:t.rows?t.rows.map(kA):[],total:t.totalRows}},onChange:t,accountId:s,error:a,selectedOption:i?kA(i):null,createNew:l,createNewModalSize:r,labelledBy:o})}const AA=[{order:"asc",field:"name"}];function RA(e){let{value:n,onChange:t,error:a,createNew:i,createNewModalSize:l=5,selectedOption:r,createNewAccessor:o}=e;const s=Je(),d=(0,C.m)();return(0,fe.jsx)(CA,{value:n,locationPoints:{wasteOut:!0},onChange:t,accountId:s,error:a,createNew:i,createNewModalSize:l,accessor:o,selectedOption:r,loadOptions:async e=>{const n=await d.query({query:fN,variables:{id:s,sort:AA,filters:{text:[{filterType:"text",type:"contains",filter:e,field:"name"}]}}});return{options:n.data?.getWasteOutsByAccountId?n.data.getWasteOutsByAccountId.map(kA):[]}}})}const DA=[{order:"asc",field:"name"}];function LA(e){let{value:n,onChange:t,error:a,createNew:i,createNewModalSize:l=5,selectedOption:r,createNewAccessor:o}=e;const s=Je(),d=(0,C.m)(),c=(0,g.useRef)({id:s});return(0,fe.jsx)(CA,{value:n,locationPoints:{wasteIn:!0},onChange:t,accountId:s,error:a,createNew:i,createNewModalSize:l,accessor:o,selectedOption:r,loadOptions:async e=>{c.current={id:s,sort:DA,filters:{text:[{filterType:gn.pe.Text,type:gn.II.Contains,filter:e,field:"name"}]}};return{options:(n=await d.query({query:mN,variables:c.current}),n?.data?.getWasteInsByAccountId||[]).map(kA)};var n}})}const IA=S.J1`
  mutation CreateEnergySources($energySources: [EnergySourceInput!]!) {
    createEnergySources(energySources: $energySources) {
      id
      name
      locationPoint {
        id
        name
        location {
          id
          name
          code
        }
      }
    }
  }
`,jA=S.J1`
  mutation UpdateEnergySource(
    $id: ID!
    $name: String!
    $meterId: String!
    $locationId: ID!
    $typeId: ID!
    $accountId: ID!
    $inOut: InOut
    $isGeneration: Boolean
    $meterCode: String
    $hardwareProviderName: String
    $operatorProviderName: String
    $startDate: String
    $endDate: String
    $n3rgyConsentStatus: N3rgyConsentStatus
    $n3rgyIsIndirectSource: Boolean
    $isReadingMeter: Boolean
    $initialReading: Float
  ) {
    updateEnergySource(
      input: {
        id: $id
        name: $name
        locationId: $locationId
        meterId: $meterId
        typeId: $typeId
        accountId: $accountId
        inOut: $inOut
        isGeneration: $isGeneration
        meterCode: $meterCode
        hardwareProviderName: $hardwareProviderName
        operatorProviderName: $operatorProviderName
        startDate: $startDate
        endDate: $endDate
        n3rgyConsentStatus: $n3rgyConsentStatus
        n3rgyIsIndirectSource: $n3rgyIsIndirectSource
        isReadingMeter: $isReadingMeter
        initialReading: $initialReading
      }
    ) {
      id
      name
      n3rgyConsentStatus
      n3rgyConsentErrorMessage
    }
  }
`,wA=S.J1`
  query getEnergySourceByAccountIdAndType(
    $accountId: ID!
    $type: TransactionType
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getEnergySourceByAccountIdAndType(
      accountId: $accountId
      type: $type
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        name
        id
        type {
          name
          id
        }
        locationPoint {
          name
          location {
            id
            name
          }
        }
        meterCode
        inOut
        isGeneration
        hardwareProviderName
        operatorProviderName
        startDate
        endDate
        n3rgyConsentRequestDate
        n3rgyConsentStatus
        n3rgyConsentErrorMessage
        n3rgyIsIndirectSource
        isReadingMeter
        initialReading
      }
    }
  }
`,OA=S.J1`
  query GetLocationsByAccountId(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getLocationsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
      }
    }
  }
`,EA=S.J1`
  query GetAllEnergyTypes {
    getAllEnergyType {
      id
      name
    }
  }
`,_A=S.J1`
  mutation TriggerN3rgyImport($input: TriggerN3rgyImportInput!) {
    triggerN3rgyImport(input: $input) {
      mpxn
      numberOfUploadedMeterReadings
      missingDataTimestamps
      errorMessage
    }
  }
`,FA=e=>{let{onChange:n,value:t,error:a}=e;const{data:i,loading:l}=(0,x.IT)(EA);if(l)return(0,fe.jsx)(ie.l6,{isDisabled:!0,placeholder:"Loading"});if(a||!i||!i.getAllEnergyType)return(0,fe.jsx)(ie.l6,{isDisabled:!0,placeholder:"Something went wrong!"});const r=i.getAllEnergyType.map(e=>({value:{id:e.id,name:e.name},label:e.name}));return(0,fe.jsx)(ie.l6,{value:t,options:r,onChange:n,error:a})},PA={meterName:{error:"",value:""},locationId:{error:"",value:"",label:""},typeId:{error:"",value:{id:"",name:""},label:""},meterIn:!0,meterOut:!1,isGeneration:!1,code:"",hardwareProviderName:null,operatorProviderName:null,startDate:null,endDate:null,n3rgyIntegration:!1,n3rgyIsIndirectSource:!1,isReadingMeter:!1,initialReading:null};function BA(e,n){switch(n.type){case"change-field-value":return{...e,[n.fieldName]:n.value};case"change-meter-name":{let t=n.value?"":"Meter Name cannot be empty";return null!==n.value&&n.value.length>64&&(t="Meter Name cannot exceed 64 characters"),{...e,meterName:{error:t,value:n.value}}}case"change-location":{const t=n.value,a=t?"":"An location must be selected";return{...e,locationId:{error:a,value:t,label:n.label}}}case"change-meter-type":const t=n.value,a=t?"":"Type must be selected";return e.meterIn||e.meterOut||"Water"!==t.name?{...e,typeId:{error:a,value:t,label:t.name}}:{...e,meterIn:!0,typeId:{error:a,value:t,label:t.name}};case"replace-state":return n.newState}}function UA(){const[e,n]=(0,g.useReducer)(BA,PA),t=(0,g.useMemo)(()=>!(!e.meterName.value||e.meterName.error||!e.typeId.value||e.typeId.error||!e.locationId.value||e.locationId.error),[e.meterName,e.typeId,e.locationId]),a=(0,g.useMemo)(()=>"Water"===e.typeId.value.name?e.meterIn&&e.meterOut?"BOTH":e.meterOut?"OUT":"IN":null,[e.meterIn,e.meterOut,e.typeId.value.name]),i=(0,g.useCallback)(()=>{e.meterIn&&!e.meterOut||n({type:"change-field-value",fieldName:"meterIn",value:!e.meterIn})},[e.meterIn,e.meterOut]),l=(0,g.useCallback)(()=>{e.meterOut&&!e.meterIn||n({type:"change-field-value",fieldName:"meterOut",value:!e.meterOut})},[e.meterIn,e.meterOut]),r=(0,g.useCallback)(()=>{n({type:"change-field-value",fieldName:"n3rgyIntegration",value:!e.n3rgyIntegration})},[e.n3rgyIntegration]),o=(0,g.useCallback)(()=>{n({type:"change-field-value",fieldName:"n3rgyIsIndirectSource",value:!e.n3rgyIsIndirectSource})},[e.n3rgyIsIndirectSource]),s=(0,g.useCallback)(()=>{n({type:"change-field-value",fieldName:"isReadingMeter",value:!e.isReadingMeter})},[e.isReadingMeter]);return{isValidData:t,state:e,changeMeterName:e=>n({...e,type:"change-meter-name"}),changeMeterType:e=>n({...e,type:"change-meter-type"}),changeLocation:e=>n({...e,type:"change-location"}),changeFieldValue:e=>n({...e,type:"change-field-value"}),replaceState:e=>n({newState:e,type:"replace-state"}),toggleWaterMeterIn:i,toggleWaterMeterOut:l,toggleN3rgyIntegration:r,waterMeterType:a,toggleN3rgyIsIndirectSource:o,toggleIsReadingMeter:s}}const $A=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,MA=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,VA=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,GA=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,zA=le.default.div`
  height: 24px;
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,WA=e=>{let{accountId:n,onError:t,onSuccess:a}=e;const{state:i,changeMeterName:l,changeMeterType:r,changeLocation:o,isValidData:s,changeFieldValue:d,waterMeterType:c,toggleWaterMeterIn:u,toggleWaterMeterOut:p,toggleN3rgyIntegration:m,toggleN3rgyIsIndirectSource:y,toggleIsReadingMeter:g}=UA(),h=e=>{const n=e.target.value;o({value:n,label:e.target.label})},x=()=>{const e=`The Meter ${i.meterName.value} was created successfully`;a(e)},T=e=>{t(`Something went wrong: ${e.message}. If the problem persists, contact support.`,"danger")},b=()=>(0,fe.jsx)(NA,{value:i.locationId,onChange:h,error:i.locationId.error}),v=()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(MA,{item:!0,children:(0,fe.jsx)(me.s,{mutation:IA,onCompleted:x,onError:T,children:(e,t)=>{let{called:a}=t;return(0,fe.jsx)(ie.$n,{name:"create-energyMeter__button--create",color:"success",disabled:!s||a,onClick:()=>{e({variables:{energySources:[{id:(0,Wa.A)(),name:i.meterName.value,locationId:i.locationId.value,typeId:i.typeId.value.id,accountId:n,inOut:c,isGeneration:"Electricity"===i.typeId.value.name||"Heat & Steam"===i.typeId.value.name?i.isGeneration||!1:null,meterCode:i.code,hardwareProviderName:i.hardwareProviderName,operatorProviderName:i.operatorProviderName,startDate:i.startDate,endDate:i.endDate,n3rgyConsentStatus:"Electricity"===i.typeId.value.name&&i.n3rgyIntegration?gn.K.Requested:void 0,n3rgyIsIndirectSource:i.n3rgyIsIndirectSource,isReadingMeter:i.isReadingMeter,initialReading:i.initialReading}]}})},children:"Add Meter"})}})})});return(0,fe.jsxs)($A,{children:[(0,fe.jsx)(VA,{name:"create-energyMeter__heading",size:"lg",children:"Add New Meter"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsx)(zA,{children:(0,fe.jsx)(GA,{children:"What do you want to call this meter?"})}),(0,fe.jsx)(ie.ks,{value:i.meterName.value,error:i.meterName.error,onChange:e=>{l({value:e.target.value})}})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsx)(zA,{children:(0,fe.jsx)(GA,{children:"What is the meter type?"})}),(0,fe.jsx)(FA,{value:i.typeId,onChange:e=>{const{select:{value:n}}=e.target;r({value:n,label:n.name})},error:i.typeId.error})]})}),"Water"===i.typeId.value.name&&(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsxs)(GA,{children:[i.typeId.value.name," In"]}),(0,fe.jsx)(ie.Sc,{id:"create-meter-in",name:"in",onChange:()=>u(),checked:i.meterIn})]}),(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsxs)(GA,{children:[i.typeId.value.name," Out"]}),(0,fe.jsx)(ie.Sc,{id:"create-meter-out",name:"out",onChange:()=>p(),checked:i.meterOut})]})]}),("Electricity"===i.typeId.value.name||"Heat & Steam"===i.typeId.value.name)&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsx)(zA,{children:(0,fe.jsx)(GA,{children:"Renewable energy generating meter"})}),(0,fe.jsx)(ie.Sc,{id:"is-generating-meter",name:"isGeneration",onChange:()=>d({fieldName:"isGeneration",value:!i.isGeneration}),checked:i.isGeneration||!1})]})}),"Electricity"===i.typeId.value.name&&(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsxs)(zA,{children:[(0,fe.jsx)(GA,{children:"AMR Integrated"}),(0,fe.jsx)(Vx.A,{title:"This is used to automate data from your smart meter into Rio. After the integration is checked and saved it cannot be unchecked anymore (only be the developer team).",children:(0,fe.jsx)(f.Icons.InfoOutlined,{color:"info"})})]}),(0,fe.jsx)(ie.Sc,{onChange:()=>m(),checked:i.n3rgyIntegration})]}),(0,fe.jsx)(MA,{item:!0,children:(0,fe.jsxs)(zA,{children:[(0,fe.jsx)(GA,{children:"Indirect Data Source"}),(0,fe.jsx)(Vx.A,{title:"If this is toggled data imported from smart meters will be considered indirect data.",children:(0,fe.jsx)(f.Icons.InfoOutlined,{color:"info"})})]})}),(0,fe.jsx)(MA,{item:!0,children:(0,fe.jsx)(ie.Sc,{onChange:()=>y(),checked:i.n3rgyIsIndirectSource})})]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsxs)(zA,{children:[(0,fe.jsx)(GA,{children:"Enable Reading Functionality"}),(0,fe.jsx)(Vx.A,{title:"When enabled, this meter will accept reading values instead of consumption values. An initial reading must be provided.",children:(0,fe.jsx)(f.Icons.InfoOutlined,{color:"info"})})]}),(0,fe.jsx)(ie.Sc,{onChange:()=>g(),checked:i.isReadingMeter})]})}),i.isReadingMeter&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsx)(zA,{children:(0,fe.jsx)(GA,{children:"Initial Reading"})}),(0,fe.jsx)(ie.ks,{type:"number",value:Xn(i.initialReading,""),onChange:e=>{d({fieldName:"initialReading",value:Xn(e.target.value,"")})},placeholder:"Enter initial reading value"})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsx)(zA,{children:(0,fe.jsx)(GA,{children:"Which location is this meter at?"})}),(0,fe.jsx)(b,{})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsx)(zA,{children:(0,fe.jsx)(GA,{children:"Meter Code"})}),(0,fe.jsx)(ie.ks,{value:i.code,onChange:e=>d({fieldName:"code",value:e.target.value})})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(MA,{item:!0,children:[(0,fe.jsx)(zA,{children:(0,fe.jsx)(GA,{children:"Has this meter closed?"})}),(0,fe.jsx)(zA,{children:(0,fe.jsx)(GA,{children:"Start Date"})}),(0,fe.jsx)(ie.lr,{name:"startDate",box:!0,onDayClick:e=>{d({fieldName:"startDate",value:e})},selectedDate:i.startDate,disabledDatesAfter:i.endDate}),(0,fe.jsx)(zA,{children:(0,fe.jsx)(GA,{children:"End Date"})}),(0,fe.jsx)(ie.lr,{name:"endDate",box:!0,onDayClick:e=>{d({fieldName:"endDate",value:e})},selectedDate:i.endDate,disabledDatesBefore:i.startDate})]})}),(0,fe.jsx)(v,{})]})},qA=S.J1`
  query GetEnergySourceById($id: ID!) {
    getEnergySourceById(id: $id) {
      name
      id
      inOut
      isGeneration
      type {
        id
        name
      }
      locationPoint {
        name
        location {
          id
          name
        }
      }
      meterCode
      hardwareProviderName
      operatorProviderName
      startDate
      endDate
      n3rgyConsentRequestDate
      n3rgyConsentStatus
      n3rgyConsentErrorMessage
      n3rgyIsIndirectSource
      isReadingMeter
      initialReading
    }
  }
`,JA=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,YA=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,HA=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,KA=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,QA=le.default.div`
  height: 24px;
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,ZA=e=>{let{accountId:n,onSuccess:t,sourceId:a}=e;const{showNotification:i}=tn(),{state:l,changeMeterName:r,changeLocation:o,changeMeterType:s,isValidData:d,changeFieldValue:c,waterMeterType:u,toggleWaterMeterIn:p,toggleWaterMeterOut:m,toggleN3rgyIntegration:y,toggleN3rgyIsIndirectSource:h,toggleIsReadingMeter:T,initialState:b}=function(e){const{state:n,replaceState:t,...a}=UA(),{showNotification:i}=tn(),[l,r]=(0,g.useState)(n);return(0,x.IT)(qA,{variables:{id:e},fetchPolicy:"no-cache",onCompleted:e=>{const n=e.getEnergySourceById,a={meterName:{error:"",value:n.name},locationId:{error:"",value:n.locationPoint.location.id,label:n.locationPoint.location.name},typeId:{error:"",value:{id:n.type.id,name:n.type.name},label:n.type.name},meterIn:"IN"===n.inOut||"BOTH"===n.inOut,meterOut:"OUT"===n.inOut||"BOTH"===n.inOut,isGeneration:n.isGeneration,code:n.meterCode||"",hardwareProviderName:n.hardwareProviderName,operatorProviderName:n.operatorProviderName,startDate:n.startDate?new Date(n.startDate):null,endDate:n.endDate?new Date(n.endDate):null,n3rgyIntegration:n.n3rgyConsentStatus===gn.K.Granted||n.n3rgyConsentStatus===gn.K.Requested,n3rgyIsIndirectSource:n.n3rgyIsIndirectSource||!1,isReadingMeter:n.isReadingMeter||!1,initialReading:n.initialReading||null};t(a),r(a)},onError:()=>{i("Server error occurred. Please try again later.","danger")}}),{state:n,...a,initialState:l}}(a),v=()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(YA,{item:!0,children:(0,fe.jsx)(me.s,{mutation:jA,onCompleted:()=>{t(`The Meter ${l.meterName.value} was updated successfully`)},onError:e=>{i(`Something went wrong: ${e.message}. If the problem persists, contact support.`,"danger")},children:(e,t)=>{let{called:i}=t;return(0,fe.jsx)(ie.$n,{name:"update-energyMeter__button--update",color:"success",disabled:!d||i,onClick:()=>{e({variables:{id:a,name:l.meterName.value,locationId:l.locationId.value,typeId:l.typeId.value.id,accountId:n,meterId:a,inOut:u,isGeneration:"Electricity"===l.typeId.value.name||"Heat & Steam"===l.typeId.value.name?l.isGeneration||!1:null,meterCode:l.code,hardwareProviderName:l.hardwareProviderName,operatorProviderName:l.operatorProviderName,startDate:l.startDate,endDate:l.endDate,n3rgyConsentStatus:"Electricity"===l.typeId.value.name&&!b.n3rgyIntegration&&l.n3rgyIntegration?gn.K.Requested:void 0,n3rgyIsIndirectSource:l.n3rgyIsIndirectSource,isReadingMeter:l.isReadingMeter,initialReading:l.initialReading}})},children:"Update Meter"})}})})});return(0,fe.jsxs)(JA,{children:[(0,fe.jsx)(HA,{name:"update-energyMeter__heading",size:"lg",children:"Update Meter"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(YA,{item:!0,children:[(0,fe.jsx)(QA,{children:(0,fe.jsx)(KA,{children:"What do you want to call this meter?"})}),(0,fe.jsx)(ie.ks,{value:l.meterName.value,error:l.meterName.error,onChange:e=>{r({value:e.target.value})}},"meterName")]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(YA,{item:!0,children:[(0,fe.jsx)(QA,{children:(0,fe.jsx)(KA,{children:"What is the meter type?"})}),(0,fe.jsx)(FA,{value:l.typeId,onChange:e=>{const{select:{value:n}}=e.target;s({value:n,label:n.name})},error:l.typeId.error})]})}),"Water"===l.typeId.value.name&&(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(YA,{item:!0,children:[(0,fe.jsxs)(KA,{children:[l.typeId.value.name," In"]}),(0,fe.jsx)(ie.Sc,{id:"create-meter-in",name:"in",onChange:()=>p(),checked:l.meterIn})]}),(0,fe.jsxs)(YA,{item:!0,children:[(0,fe.jsxs)(KA,{children:[l.typeId.value.name," Out"]}),(0,fe.jsx)(ie.Sc,{id:"create-meter-out",name:"out",onChange:()=>m(),checked:l.meterOut})]}),"Ç"]}),("Electricity"===l.typeId.value.name||"Heat & Steam"===l.typeId.value.name)&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(YA,{item:!0,children:[(0,fe.jsx)(QA,{children:(0,fe.jsx)(KA,{children:"Renewable energy generating meter"})}),(0,fe.jsx)(ie.Sc,{id:"is-generating-meter",name:"isGeneration",onChange:()=>c({fieldName:"isGeneration",value:!l.isGeneration}),checked:l.isGeneration||!1})]})}),"Electricity"===l.typeId.value.name&&(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsx)(YA,{item:!0,children:(0,fe.jsxs)(QA,{children:[(0,fe.jsx)(KA,{children:"AMR Integrated"}),(0,fe.jsx)(Vx.A,{title:"This is used to automate data from smart meters into Rio.",children:(0,fe.jsx)(f.Icons.InfoOutlined,{color:"info"})})]})}),(0,fe.jsx)(YA,{item:!0,children:(0,fe.jsx)(ie.Sc,{disabled:l.n3rgyIntegration,onChange:()=>y(),checked:l.n3rgyIntegration})}),(0,fe.jsx)(YA,{item:!0,children:(0,fe.jsxs)(QA,{children:[(0,fe.jsx)(KA,{children:"Indirect Data Source"}),(0,fe.jsx)(Vx.A,{title:"If this is toggled data imported from smart meters will be considered indirect data.",children:(0,fe.jsx)(f.Icons.InfoOutlined,{color:"info"})})]})}),(0,fe.jsx)(YA,{item:!0,children:(0,fe.jsx)(ie.Sc,{onChange:()=>h(),checked:l.n3rgyIsIndirectSource})})]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(YA,{item:!0,children:[(0,fe.jsxs)(QA,{children:[(0,fe.jsx)(KA,{children:"Enable Reading Functionality"}),(0,fe.jsx)(Vx.A,{title:"When enabled, this meter will accept reading values instead of consumption values. An initial reading must be provided.",children:(0,fe.jsx)(f.Icons.InfoOutlined,{color:"info"})})]}),(0,fe.jsx)(ie.Sc,{onChange:()=>T(),checked:l.isReadingMeter})]})}),l.isReadingMeter&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(YA,{item:!0,children:[(0,fe.jsx)(QA,{children:(0,fe.jsx)(KA,{children:"Initial Reading"})}),(0,fe.jsx)(ie.ks,{type:"number",value:Xn(l.initialReading,""),onChange:e=>{c({fieldName:"initialReading",value:Xn(e.target.value,"")})},placeholder:"Enter initial reading value"})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(YA,{item:!0,children:[(0,fe.jsx)(QA,{children:(0,fe.jsx)(KA,{children:"Which location is this meter at?"})}),(0,fe.jsx)(NA,{value:l.locationId,onChange:e=>{const n=e.target.value;o({value:n,label:e.target.label})},error:l.locationId.error})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(YA,{item:!0,children:[(0,fe.jsx)(QA,{children:(0,fe.jsx)(KA,{children:"Meter Code"})}),(0,fe.jsx)(ie.ks,{value:l.code,onChange:e=>c({fieldName:"code",value:e.target.value})})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(YA,{item:!0,children:[(0,fe.jsx)(QA,{children:(0,fe.jsx)(KA,{children:"Has this meter closed?"})}),(0,fe.jsx)(QA,{children:(0,fe.jsx)(KA,{children:"Start Date"})}),(0,fe.jsx)(ie.lr,{name:"startDate",box:!0,onDayClick:e=>{c({fieldName:"startDate",value:e})},selectedDate:l.startDate,disabledDatesAfter:l.endDate}),(0,fe.jsx)(QA,{children:(0,fe.jsx)(KA,{children:"End Date"})}),(0,fe.jsx)(ie.lr,{name:"endDate",box:!0,onDayClick:e=>{c({fieldName:"endDate",value:e})},selectedDate:l.endDate,disabledDatesBefore:l.startDate})]})}),(0,fe.jsx)(v,{})]})},XA=e=>{let{modalState:n,accountId:t,onSuccess:a,onError:i}=e;return n.createModal?(0,fe.jsx)(WA,{accountId:t,onSuccess:a,onError:i}):n.updateModal?(0,fe.jsx)(ZA,{accountId:t,onSuccess:a,onError:i,sourceId:n.updateModal}):null},eR=e=>{const{onDismiss:n,modalState:t,accountId:a,onComplete:i}=e,{showNotification:l}=tn();return t.createModal||t.updateModal?(0,fe.jsx)(ie.aF,{show:!0,dismissable:!0,name:"ConfigurationEnergyMeter__Modal",onDismiss:n,span:6,height:"auto",maxHeight:"90vh",children:(0,fe.jsx)(XA,{modalState:t,accountId:a,onSuccess:i,onError:l})}):null},nR="Electricity",tR="Heat & Steam",aR=["Meter Name","Meter Type","Meter Location"],iR="Meter Start Date (Optional dd/mm/yyyy)",lR="Meter End Date (Optional dd/mm/yyyy)",rR=[...aR,"Generation","Water In / Water Out","Meter Code (Optional)","Hardware Provider (Optional)","Operator Provider (Optional)",iR,lR],oR=e=>void 0===e?"blank":e.toString().toLowerCase(),sR=[gn.mF.In,gn.mF.Out,gn.mF.Both],dR=["true","false","blank"],cR=e=>e["Meter Type"]!==nR&&e["Meter Type"]!==tR||!dR.includes(oR(e.Generation))?null:"true"===oR(e.Generation),uR=(e,n,t,a,i)=>e.map(e=>({id:(0,Wa.A)(),name:e["Meter Name"],locationId:a[e["Meter Location"]].id,typeId:t[e["Meter Type"]].id,accountId:n,isGeneration:cR(e),inOut:e["Water In / Water Out"]?e["Water In / Water Out"].toUpperCase():null,meterCode:e["Meter Code (Optional)"]||null,hardwareProviderName:e["Hardware Provider (Optional)"]?i[e["Hardware Provider (Optional)"]].id:null,operatorProviderName:e["Operator Provider (Optional)"]?i[e["Operator Provider (Optional)"]].id:null,startDate:e[iR]?new Date(e[iR]):null,endDate:e[lR]?new Date(e[lR]):null,n3rgyConsentStatus:!0===e["Enable N3rgy Integration"]?gn.K.Requested:null}));function pR(e){let{onDismiss:n,accountId:t,onComplete:a}=e;const[i,l]=(0,g.useState)([]),[r]=(0,ln.n)(IA),o=xd({accountId:t,pageSize:kt}),s=(0,C.m)(),d=(0,x.IT)(EA),c=d.data&&d.data.getAllEnergyType?d.data.getAllEnergyType:[],u=xn()(c).keyBy("name").value(),p=xn()(o).keyBy("name").value();return(0,fe.jsx)(cx,{template:{type:Zh.Dynamic,columns:rR,fileName:"meters-upload"},errors:i,onFileInput:async e=>{let[n]=e;const[i,o]=await la(n);if(i&&i.length)return l(i);o.length||l(["Your spreadsheet is empty, please add some rows"]);const d=xn()(o).map("Meter Location").uniq().value(),c=await s.query({query:OA,variables:{accountId:t,limit:kt,filters:{set:[{field:"name",filterType:gn.pe.Set,values:d}]}},fetchPolicy:"network-only"}),m=c?.data?.getLocationsPage?.rows;if(!m?.length)return l(["Locations from spreadsheet are not found in the current account"]);const f=xn()(m).keyBy("name").value(),[y,g]=await(async(e,n,t,a,i)=>{const l=((e,n,t,a)=>{const i=[],l=[];return e.forEach((e,r)=>{const o=r+2,s=e["Meter Name"].toString(),d=(e=>n=>`Row ${e}: value not provided for ${n}`)(o),c=(e=>function(n,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return`Row ${e}: invalid ${n} - ${t}.${a.length?` Should be one of ${a.join(", ")}`:""}`})(o),u=(e=>(n,t,a)=>`Row ${e}: invalid value ${t} for ${n}, format should be ${a}`)(o),p=oR(e.Generation);function m(n){const t=e[n].toString();"Invalid Date"===new Date(t).toString()&&i.push(u(n,t,"dd/mm/yyyy"))}aR.forEach(n=>{e[n]||i.push((e=>`${e} is a required field`)(n))}),l.includes(s.toLowerCase())?i.push(`Row ${o}: name duplicate - ${e["Meter Name"]}`):l.push(s.toLowerCase()),e["Meter Name"]||i.push(d("Meter Name")),e["Meter Type"]||i.push(d("Meter Type")),e["Meter Location"]||i.push(d("Meter Location")),"Water"!==e["Meter Type"]||e["Water In / Water Out"]?"Water"!==e["Meter Type"]||sR.includes(String(e["Water In / Water Out"]).toUpperCase())||i.push(c("Water In / Water Out",e["Water In / Water Out"],sR)):i.push(d("Water In / Water Out")),e["Meter Type"]!==nR&&e["Meter Type"]!==tR&&void 0!==e.Generation&&i.push((e=>`Row ${e} - 'Generation' should be blank`)(o)),e["Meter Type"]!==nR&&e["Meter Type"]!==tR||dR.includes(p)||i.push(c("Generation",e.Generation,dR)),n[e["Meter Type"]]||i.push(c("Meter Type",e["Meter Type"],Object.values(n).map(e=>e.name))),t[e["Meter Location"]]||i.push(c("Meter Location",e["Meter Location"])),e["Hardware Provider (Optional)"]&&!a[e["Hardware Provider (Optional)"]]&&i.push(c("Hardware Provider (Optional)",e["Hardware Provider (Optional)"])),e["Operator Provider (Optional)"]&&!a[e["Operator Provider (Optional)"]]&&i.push(c("Operator Provider (Optional)",e["Operator Provider (Optional)"])),e["Enable N3rgy Integration"]&&!0!==e["Enable N3rgy Integration"]&&i.push(`Row ${o}: 'Enable N3rgy Integration' column invalid value, must be blank or TRUE, instead received: ${e["Enable N3rgy Integration"]}`),e[iR]&&m(iR),e[lR]&&m(lR)}),i})(e,n,t,a);return l.length?[l,null]:[null,uR(e,i,n,t,a)]})(o,u,f,p,t);if(y&&y.length)return l(y);try{await r({variables:{energySources:g}}),a("Meters have been uploaded","success")}catch(e){a("Something went wrong","danger")}},onDismiss:n})}const mR=(0,le.default)("span")`
  font-weight: bold;
`,fR=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,yR=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
`,gR=(0,le.default)(ie.EY)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
`,hR=(0,le.default)(ie.fs)`
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
  min-height: 300px;
`,xR=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,TR=(0,le.default)("div")`
  height: ${e=>e.theme.geometry.lg.spacing};
`,bR=e=>{let{onDismiss:n}=e;const t=Je(),[a]=(0,Ul._)(wA),[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(!1),[s,d]=(0,g.useState)(""),[c,u]=(0,g.useState)([]),[p]=(0,ln.n)(jA),[m,f]=(0,g.useState)(""),y=(0,g.useMemo)(()=>c.filter(e=>{let{status:n}=e;return"success"===n}),[c]),h=(0,g.useMemo)(()=>c.filter(e=>{let{status:n}=e;return"error"===n}),[c]);return(0,fe.jsx)(ie.aF,{show:!0,dismissable:!0,onDismiss:n,span:6,height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(fR,{children:[(0,fe.jsx)(yR,{size:"lg",children:"Bulk Integrate Meters"}),(0,fe.jsx)(gR,{children:"Provide a white space or comma separated list of meter codes that you would like to integrate with the automated monthly readings (max limit 1000)"}),r&&(0,fe.jsx)(gR,{color:"success",children:"Submission was successful (see the results below)! To integrate another set of meters please open the modal again"}),s&&(0,fe.jsxs)(gR,{color:"danger",children:["Error: ",s]}),!r&&(0,fe.jsx)(hR,{disabled:i,value:m,onChange:e=>f(e.target.value)}),r&&(0,fe.jsxs)(fe.Fragment,{children:[!h.length&&(0,fe.jsx)(gR,{color:"success",children:"All meters were successfully integrated!"}),y.length>0&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(gR,{color:"success",children:["Successfully integrated meters (",y.length,"):"]}),y.map(e=>{let{meterCode:n}=e;return(0,fe.jsx)("div",{children:(0,fe.jsx)(mR,{children:n})},n)}),(0,fe.jsx)(TR,{})]}),h.length>0&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(gR,{color:"danger",children:["Failed to integrate meters (",h.length,"):"]}),h.map(e=>{let{meterCode:n,errorMessage:t}=e;return(0,fe.jsxs)("div",{children:[(0,fe.jsx)(mR,{children:n})," - Error: ",t]},n)}),(0,fe.jsx)(TR,{})]})]}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsx)(xR,{item:!0,span:6,children:(0,fe.jsx)(ie.$n,{onClick:n,disabled:i,children:"Cancel"})}),(0,fe.jsx)(xR,{item:!0,span:6,children:(0,fe.jsx)(ie.$n,{color:"success",disabled:i||r||!m,onClick:async()=>{try{l(!0);const e=(0,hn.uniq)(m.replace(/\n/g," ").replace(/,/g," ").split(" ").map(e=>e.trim()).filter(Boolean));if(0===e.length)throw new Error("Please provide at least one meter code");if(e.length>1e3)throw new Error(`The maximum limit of 1000 was exceeded, you provided: ${e.length}`);const n=(await a({variables:{accountId:t,offset:0,limit:1e3,filters:{set:[{values:e,filterType:"set",field:"meterCode"}]}}})).data.getEnergySourceByAccountIdAndType.rows,i=n.map(e=>e.meterCode),r=Zi(i);if(r.length>0)throw new Error(`The following meter codes have more than one meter associated to them in the system, please resolve these and try again: ${r.join(", ")}`);if(n.length<e.length){const n=e.filter(e=>!i.includes(e)).join(", ");throw new Error(`The following meters were not found in the system, please remove them from the list and try again: ${n}`)}const s=n.map(e=>({id:e.id,meterId:e.id,name:e.name,locationId:e.locationPoint.location.id,typeId:e.type.id,accountId:t,inOut:e.inOut,isGeneration:e.isGeneration,meterCode:e.meterCode,hardwareProviderName:e.hardwareProviderName,operatorProviderName:e.operatorProviderName,startDate:e.startDate,endDate:e.endDate,n3rgyConsentStatus:gn.K.Requested,n3rgyIsIndirectSource:e.n3rgyIsIndirectSource})),c=await Promise.allSettled(s.map(e=>p({variables:e})));u(c.map((e,n)=>{const t=s[n];if("fulfilled"===e.status){console.log(e.value);const n=e.value.data.updateEnergySource;return n.n3rgyConsentStatus===gn.K.FailedToRequest?{meterCode:t.meterCode,status:"error",errorMessage:n.n3rgyConsentErrorMessage}:{meterCode:t.meterCode,status:"success",errorMessage:null}}const a="string"==typeof e.reason?e.reason:e.reason.message;return{meterCode:t.meterCode,status:"error",errorMessage:a}})),o(!0),d(""),l(!1)}catch(e){l(!1),d(e.message)}},children:"Start Integration"})})]})]})})},vR=(0,le.default)("span")`
  font-weight: bold;
`,CR=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,kR=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
`,SR=(0,le.default)(ie.EY)`
  text-align: ${e=>e.align||"center"};
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
`,NR=(0,le.default)(ie.fs)`
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
  min-height: 300px;
`,AR=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,RR=(0,le.default)("div")`
  height: ${e=>e.theme.geometry.lg.spacing};
`,DR=e=>{let{onDismiss:n}=e;const t=Je(),[a]=(0,Ul._)(wA),[i,{loading:l,error:r,data:o}]=(0,ln.n)(_A,{onCompleted:()=>{x("")}}),[s,d]=(0,g.useState)(),[c,u]=(0,g.useState)(),[p,m]=(0,g.useState)(""),[f,y]=(0,g.useState)(!1),[h,x]=(0,g.useState)(""),T=o?.triggerN3rgyImport,b=Boolean(T),v=f||l||b,C=h||r?.message,k=T?T.filter(e=>!e.errorMessage&&0===e.missingDataTimestamps.length):[],S=T?T.filter(e=>!e.errorMessage&&e.missingDataTimestamps.length>0):[],N=T?T.filter(e=>e.errorMessage):[];return(0,fe.jsx)(ie.aF,{show:!0,dismissable:!0,onDismiss:n,span:6,height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(CR,{children:[(0,fe.jsx)(kR,{size:"lg",children:"N3rgy Data Import"}),(0,fe.jsx)(SR,{children:"Provide a white space or comma separated list of meter codes that you would like to import n3rgy data from (max limit 50)"}),b&&(0,fe.jsx)(SR,{color:"success",children:"Import was successful (see the results below)! To import data from another set of meters please open the modal again"}),C&&(0,fe.jsxs)(SR,{color:"danger",children:["Error: ",C]}),!b&&(0,fe.jsxs)("div",{children:[(0,fe.jsxs)("div",{children:[(0,fe.jsx)(ie.JU,{children:"Start Date"}),(0,fe.jsx)(ie.lr,{disabled:f||l,selectedDate:s,onDayClick:d})]}),(0,fe.jsx)(RR,{}),(0,fe.jsxs)("div",{children:[(0,fe.jsx)(ie.JU,{children:"End Date"}),(0,fe.jsx)(ie.lr,{disabled:f||l,selectedDate:c,onDayClick:u})]}),(0,fe.jsx)(RR,{}),(0,fe.jsxs)("div",{children:[(0,fe.jsx)(ie.JU,{children:"Meter codes"}),(0,fe.jsx)(NR,{disabled:f||l,value:p,onChange:e=>m(e.target.value)})]})]}),b&&(0,fe.jsxs)(fe.Fragment,{children:[!N.length&&(0,fe.jsx)(SR,{color:"success",children:"All meters' data was successfully imported!"}),k.length>0&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(SR,{color:"success",align:"left",children:["Successfully imported meters with full data (",k.length,"):"]}),k.map((e,n)=>{let{mpxn:t,numberOfUploadedMeterReadings:a}=e;return(0,fe.jsxs)("div",{children:[(0,fe.jsx)(vR,{children:t})," ",0===n?`(Number of readings: ${a})`:""]},t)}),(0,fe.jsx)(RR,{}),(0,fe.jsx)(RR,{})]}),S.length>0&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(SR,{color:"warning",align:"left",children:["Successfully imported meters with partial data (",S.length,"):"]}),S.map(e=>{let{mpxn:n,numberOfUploadedMeterReadings:t,missingDataTimestamps:a}=e;return(0,fe.jsxs)(g.Fragment,{children:[(0,fe.jsxs)("div",{children:[(0,fe.jsx)(vR,{children:n})," (Number of readings: ",t,")",(0,fe.jsxs)("div",{children:["Missing data blocks:"," ",a.map(e=>(0,fe.jsx)("div",{children:e},e))]})]}),(0,fe.jsx)(RR,{})]},n)}),(0,fe.jsx)(RR,{})]}),N.length>0&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(SR,{color:"danger",align:"left",children:["Failed to import meters (",N.length,"):"]}),N.map(e=>{let{mpxn:n,errorMessage:t}=e;return(0,fe.jsxs)("div",{children:[(0,fe.jsx)(vR,{children:n})," - Error: ",t]},n)}),(0,fe.jsx)(RR,{})]})]}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsx)(AR,{item:!0,span:6,children:(0,fe.jsx)(ie.$n,{onClick:n,disabled:v,children:"Cancel"})}),(0,fe.jsx)(AR,{item:!0,span:6,children:(0,fe.jsx)(ie.$n,{color:"success",disabled:v,onClick:async()=>{try{if(y(!0),!s||!c)throw new Error("Please provide a start date and an end date");if(bn()(s).isAfter(bn()(c)))throw new Error("The start date cannot after the end date");if(bn()(s).add(3,"months").isBefore(bn()(c)))throw new Error("The difference between the start and end dates cannot be more than 3 months");if(bn()(s).isSame(bn()(),"day")||bn()(c).isSame(bn()(),"day"))throw new Error("The start and end dates cannot be today");if(bn()(s).isAfter(bn()())||bn()(c).isAfter(bn()()))throw new Error("The start and end dates must be in the past");if(!p)throw new Error("Please provide meter codes to import");const e=(0,hn.uniq)(p.replace(/\n/g," ").replace(/,/g," ").split(" ").map(e=>e.trim()).filter(Boolean));if(e.length>50)throw new Error(`The maximum limit of 50 was exceeded, you provided: ${e.length}`);const n=(await a({variables:{accountId:t,offset:0,limit:50,filters:{set:[{values:e,filterType:"set",field:"meterCode"}]}}})).data.getEnergySourceByAccountIdAndType.rows.map(e=>e.meterCode),l=Zi(n);if(l.length>0)throw new Error(`The following meter codes have more than one meter associated to them in the system, please resolve these and try again: ${l.join(", ")}`);if(n.length<e.length){const t=e.filter(e=>!n.includes(e)).join(", ");throw new Error(`The following meters were not found in the system, please remove them from the list and try again: ${t}`)}const r=bn()(s).startOf("day").add(30,"minutes").format("YYYYMMDDHHmm"),o=bn()(c).startOf("day").add(23,"hours").add(59,"minutes").add(59,"seconds").format("YYYYMMDDHHmm");i({variables:{input:{startDate:r,endDate:o,onlyIncludeAccountIds:[t],onlyIncludeMpxns:e}}}),x("")}catch(e){y(!1),x(e.message)}},children:l?"Importing":"Start Import"})})]})]})})},LR=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
`,IR=(0,le.default)(ie.vj)`
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,jR=(0,le.default)(gu)`
  & > div {
    width: auto;
  }
`,wR={createModal:!1,uploadModal:!1,updateModal:!1,bulkIntegrateModal:!1,n3rgyImportModal:!1,deleteModal:!1},OR=e=>{const[n,t]=(0,g.useState)({accountId:e.accountId,modalState:wR}),[a,i]=(0,g.useState)(""),[l,r]=(0,g.useState)(e.accountId),[o,s]=(0,g.useState)(),d=lr(),c=(0,C.m)(),u=()=>{o?.api&&o?.datasource&&o.api.refreshServerSide({purge:!0})};(0,g.useEffect)(()=>{u()},[l]);const p=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";t(t=>({...t,notification:{message:e,color:n},modalState:wR,shouldRefetch:!0})),u()},m=(e,n)=>{"create"===e&&t(e=>({...e,modalState:{createModal:!0}})),"upload"===e&&t(e=>({...e,modalState:{uploadModal:!0}})),"update"===e&&t(e=>({...e,modalState:{updateModal:n}})),"integrate"===e&&t(e=>({...e,modalState:{bulkIntegrateModal:!0}})),"n3rgy"===e&&t(e=>({...e,modalState:{n3rgyImportModal:!0}})),"delete"===e&&t(e=>({...e,modalState:{deleteModal:n}}))},f=()=>{t(e=>({...e,modalState:wR}))},y=(0,g.useCallback)(()=>{o?.api?.setColumnFilterModel("name",{filterType:"text",type:"contains",filter:a}),o?.api?.onFilterChanged()},[o?.api,a]),h=(0,g.useMemo)(()=>(0,hn.debounce)(y,250),[y]);(0,g.useEffect)(()=>{h()},[a,h]);const x=async e=>{const{data:{getEnergySourceByAccountIdAndType:{totalRows:n,rows:t}}}=await c.query({query:wA,variables:{...e},fetchPolicy:"network-only"});return{rows:t,totalRows:n}};return(0,fe.jsxs)(ie.fv,{name:"ConfigurationEnergyMetersContainer",container:!0,fullHeight:!0,children:[n.notification&&(0,fe.jsx)(ie.Eg,{name:"create-energyMeter__notification",show:!0,color:n.notification.color,onClose:()=>{t(e=>({...e,notification:null}))},children:n.notification.message}),n.modalState.uploadModal?(0,fe.jsx)(pR,{onComplete:p,accountId:l,onDismiss:f}):(0,fe.jsx)(eR,{accountId:l,modalState:n.modalState,onDismiss:f,onComplete:p}),!!n.modalState.bulkIntegrateModal&&(0,fe.jsx)(bR,{onDismiss:f}),!!n.modalState.n3rgyImportModal&&(0,fe.jsx)(DR,{onDismiss:f}),(0,fe.jsxs)(jR,{name:"ConfigurationEnergyMetersContainer__Controls",icon:"bolt",iconColor:"primary",title:"Meters",children:[(0,fe.jsx)(IR,{name:"ConfigurationEnergyMetersContainer__Controls__Search",value:a,onChange:e=>{i(e.target?.value)},hideButton:!0}),(0,fe.jsxs)(bv,{container:!0,item:!0,distribution:"center",vdistribution:"center",itemAlign:"center",children:[(0,fe.jsx)(ie.fv,{item:1,children:(0,fe.jsx)(ie.$n,{name:"ConfigurationEnergyMetersContainer__Controls__Button--add",color:"primary",inline:!0,onClick:()=>m("create"),children:"+ Add Meter"})}),(0,fe.jsx)(ie.fv,{item:2,children:(0,fe.jsx)(ie.$n,{name:"ConfigurationEnergyMetersContainer__Controls__Button--upload",color:"secondary",inline:!0,onClick:()=>m("upload"),children:"Upload Meters"})}),(0,fe.jsx)(ie.fv,{item:2,children:(0,fe.jsx)(ie.$n,{name:"ConfigurationEnergyMetersContainer__Controls__Button--integrate",color:"secondary",inline:!0,onClick:()=>m("integrate"),children:"Bulk Integrate"})}),(0,fe.jsx)(ie.fv,{item:2,children:(0,fe.jsx)(ie.$n,{name:"ConfigurationEnergyMetersContainer__Controls__Button--integrate",color:"secondary",inline:!0,onClick:()=>m("n3rgy"),children:"N3rgy import"})}),(0,fe.jsx)(ie.fv,{item:2,children:(0,fe.jsx)(Mx,{fetchRows:x,gridApi:o?.api,defaultExportFileName:"Meters Exports",label:"Export Data",columnsToSkip:["Actions"]})})]})]}),!!d.account.includes("getAll")&&(0,fe.jsx)(LR,{children:(0,fe.jsx)(wu,{onChange:e=>{r(e.id)},value:l,name:"ConfigurationEnergyMetersContainer__AccountSelector"})}),(0,fe.jsx)(bA,{accountId:l,onEdit:e=>m("update",e),setGridApi:s,fetchRows:x},l)]})},ER=S.J1`
  mutation UploadLearnContent(
    $accountId: ID
    $url: String
    $contentPath: String
    $id: ID
    $title: String!
    $description: String
    $cpd: Int
    $thumbnail: File!
    $content: File!
    $type: LearnContentType!
    $version: String
    $presignedLinks: [String]
  ) {
    uploadLearnContent(
      accountId: $accountId
      url: $url
      contentPath: $contentPath
      id: $id
      title: $title
      description: $description
      cpd: $cpd
      thumbnail: $thumbnail
      content: $content
      type: $type
      version: $version
      presignedLinks: $presignedLinks
    ) @client {
      status
      fileUploaded
    }
  }
`,_R=S.J1`
  query InitiateLearnFileUpload($accountId: ID!, $type: String!, $fileName: String!) {
    initiateLearnFileUpload(accountId: $accountId, type: $type, fileName: $fileName) {
      url
      contentPath
      id
    }
  }
`,FR=S.J1`
  query InitiateLearnFileUpload($accountId: ID!, $type: String!, $files: [ScormFileMetadata!]) {
    initiateScormFileUpload(accountId: $accountId, type: $type, files: $files) {
      url
      contentPath
      id
    }
  }
`,PR=S.J1`
  query GetAllLearnSubscriptions($accountId: String!) {
    getAllLearnSubscriptions(accountId: $accountId) {
      subscriptions
      bundleShow
      bundleHidden
      mandatoryBundleId
    }
  }
`,BR=S.J1`
  mutation SaveLearnSubscriptions(
    $accountId: String!
    $subscriptions: [String!]!
    $bundleShow: [String!]!
    $bundleHidden: [String!]!
    $mandatoryBundleId: String
  ) {
    saveLearnSubscriptions(
      input: {
        accountId: $accountId
        subscriptions: $subscriptions
        bundleShow: $bundleShow
        bundleHidden: $bundleHidden
        mandatoryBundleId: $mandatoryBundleId
      }
    ) {
      subscriptions
      bundleShow
      bundleHidden
      mandatoryBundleId
    }
  }
`,UR=S.J1`
  mutation SaveLearnContentMetadata(
    $id: ID!
    $title: String!
    $description: String
    $cpd: Int
    $passScore: Int
    $contentPath: String
    $type: LearnContentType!
    $categories: [CourseCategory!]
    $assessmentId: ID
    $reactionId: ID
    $accountId: ID
    $isEngage: Boolean
    $url: String
    $openIframe: Boolean
  ) {
    saveLearnContentMetadata(
      input: {
        id: $id
        title: $title
        description: $description
        contentPath: $contentPath
        type: $type
        cpd: $cpd
        passScore: $passScore
        categories: $categories
        assessmentId: $assessmentId
        reactionId: $reactionId
        accountId: $accountId
        isEngage: $isEngage
        url: $url
        openIframe: $openIframe
      }
    ) {
      id
      accountId
      name
      type
      isEngage
      assessment {
        ...EvaluationFields
      }
      reaction {
        ...EvaluationFields
      }
      metaData {
        viewed
        link
        thumbnail
        description
        categories
        cpd
        passScore
        url
        openIframe
      }
    }
  }
  ${tp}
`,$R=S.J1`
  mutation SaveLearnBundle(
    $id: ID!
    $title: String!
    $description: String!
    $restricted: Boolean!
    $startDate: String
    $endDate: String
    $courses: [ID!]!
    $isEngage: Boolean
  ) {
    saveLearnBundle(
      input: {
        id: $id
        title: $title
        description: $description
        restricted: $restricted
        startDate: $startDate
        endDate: $endDate
        courses: $courses
        isEngage: $isEngage
      }
    ) {
      id
      title
      description
      restricted
      startDate
      endDate
      courses
      isEngage
    }
  }
`,MR=S.J1`
  query GetAllCoursesAndLearnData {
    getAllCourses {
      isLastPage
      totalItemCount
      data {
        id
        name
        type
        accountId
        isEngage
        reaction {
          ...EvaluationFields
        }
        assessment {
          ...EvaluationFields
        }
        metaData {
          viewed
          link
          thumbnail
          description
          categories
          cpd
          passScore
          url
          openIframe
        }
      }
    }

    getAllLearnBundles {
      id
      title
      description
      restricted
      startDate
      endDate
      isEngage
      courses
    }
  }
  ${tp}
`,VR=[{label:"Waste",value:"WASTE"},{label:"Water",value:"WATER"},{label:"Energy",value:"ENERGY"},{label:"Transport",value:"TRANSPORT"},{label:"Environmental Social Governance (ESG)",value:"ENVIRONMENTAL_SOCIAL_GOVERNANCE"},{label:"Circular Economy",value:"CIRCULAR_ECONOMY"},{label:"Health & Safety",value:"HEALTH_AND_SAFETY"},{label:"Health & Wellbeing",value:"HEALTH_AND_WELLBEING"}],GR=(e,n,t)=>fetch(e).then(e=>e.arrayBuffer()).then(e=>new File([e],n,{type:t})),zR=e=>new Promise((n,t)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>n(a.result.toString()),a.onerror=e=>t(e)}),WR=e=>e.size<5e9,qR=e=>`File ${e.webkitRelativePath||e.name} is ${Math.round(e.size/5e9)}MB which exceeds the maximum upload limit of 5 GB.\n`,JR=e=>e.length<=0?null:e.map(e=>qR(e)).join("\n"),YR="ASSESSMENT",HR="REACTION",KR={[YR]:"Assessment",[HR]:"Reaction"},QR=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,ZR=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,XR=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,eD=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,nD=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,tD=le.default.img`
  width: 200px;
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,aD=le.default.a`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  text-decoration-line: underline;
  cursor: pointer;
`,iD=le.default.div`
  display: none;
`,lD=le.default.p`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,rD=(0,le.default)(ie.$n)`
  width: 200px;
`,oD=[{label:"PDF",value:gn.US.Pdf},{label:"Video",value:gn.US.Video},{label:"SCORM",value:gn.US.Scorm},{label:"URL",value:gn.US.Url}],sD={label:"Not selected",value:null},dD=function(e){let{course:n,uploadContent:t,onSuccess:a,edit:i}=e;const l=lr(),r=Je(),[o,s]=(0,g.useState)({id:n.id||(0,Wa.A)(),title:n.name||"",description:n.metaData.description||"",isSubmitted:!1,invalidFiles:[],type:n.type||"",categories:n.metaData.categories?n.metaData.categories.map(e=>VR.find(n=>n.value===e)):[],thumbnail:n.metaData.thumbnail||null,thumbnailSource:null,content:n.metaData.link||null,fileError:null,cpd:n.metaData.cpd||0,passScore:n.metaData.passScore||0,assessmentId:n.assessment?.id,reactionId:n.reaction?.id,isEngage:n.isEngage,url:n.metaData.url,openIframe:n.metaData.openIframe}),d=(0,x.IT)(ap,{fetchPolicy:"network-only"}),c=d?.data?.getAllEvaluations||[],u=c.filter(e=>e.type===HR),p=c.filter(e=>e.type===YR),m=e=>l.learn.includes("createEvaluationAll")?e:e.filter(e=>e.accountId===r),f=(0,g.useRef)(null),y=(0,g.useRef)(null),{sub:h}=qe(),T=e=>{e.persist(),s(n=>({...n,[e.target.name]:e.target.value}))},b=e=>{const n=e.target.files[0];WR(n)?s(t=>({...t,[e.target.name]:n,fileError:""})):s(e=>({...e,fileError:qR(n)}))};(0,g.useEffect)(()=>{(async e=>"string"==typeof e?e:e instanceof File?zR(e):null)(o.thumbnail).then(e=>s(n=>({...n,thumbnailSource:e})))},[o.thumbnail]);const v=new ga(n).getHandleMethod();return(0,fe.jsxs)(QR,{name:"create-content",children:[(0,fe.jsx)(XR,{size:"lg",children:"Engage Content Details"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Title"})}),(0,fe.jsx)(ie.ks,{disabled:o.isSubmitted,onChange:T,name:"title",value:o.title,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Content Type"})}),(0,fe.jsx)(ie.l6,{disabled:o.isSubmitted,onChange:e=>{s(n=>({...n,[e.target.name]:e.target.value,fileError:null,content:null}))},name:"type",value:o.type,box:!0,options:oD})]})}),o.type===gn.US.Url&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"URL"})}),(0,fe.jsx)(ie.ks,{disabled:o.isSubmitted,onChange:T,name:"url",value:o.url,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Open URL in Iframe"})}),(0,fe.jsx)(ie.Sc,{checked:void 0===o.openIframe||o.openIframe,size:"md",onChange:e=>{s(n=>({...n,openIframe:e.target.checked}))}})]})})]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Categories"})}),(0,fe.jsx)(ie.KF,{multiValueColor:"tertiary",onChange:e=>{s(n=>({...n,categories:e.target.select}))},isDisabled:o.isSubmitted,value:o.categories,options:VR,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Description"})}),(0,fe.jsx)(ie.fs,{size:"lg",disabled:o.isSubmitted,onChange:T,name:"description",value:o.description,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"CPD Value (Minutes)"})}),(0,fe.jsx)(ie.ks,{type:"number",disabled:o.isSubmitted,onChange:T,name:"cpd",value:parseInt(o.cpd),box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Pass Score"})}),(0,fe.jsx)(ie.ks,{type:"number",disabled:o.isSubmitted,onChange:T,name:"passScore",value:parseInt(o.passScore),box:!0})]})}),l.learn.includes("createCourseAll")&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Include into Engage subscription"})}),(0,fe.jsx)(ie.Sc,{checked:o.isEngage,size:"md",onChange:e=>{s(n=>({...n,isEngage:e.target.checked}))}})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Assessment"})}),(0,fe.jsx)(ie.l6,{disabled:o.isSubmitted,onChange:e=>{s({...o,assessmentId:e.target.select.value})},name:"assessmentId",value:o.assessmentId,options:[sD].concat(m(p).map(e=>({label:e.name,value:e.id}))),box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Reaction"})}),(0,fe.jsx)(ie.l6,{disabled:o.isSubmitted,onChange:e=>{s({...o,reactionId:e.target.select.value})},name:"reactionId",value:o.reactionId,options:[sD].concat(m(u).map(e=>({label:e.name,value:e.id}))),box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Thumbnail"})}),!o.thumbnail&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.h$,{background:!0,disabled:o.isSubmitting,text:o.thumbnailFileError||"Select a file",buttonText:"Select File",onClick:()=>{f.current.click()}}),(0,fe.jsx)(iD,{children:(0,fe.jsx)("input",{name:"thumbnail",type:"file",ref:f,onChange:e=>{const n=e.target.files[0];WR(n)?s(t=>({...t,[e.target.name]:n,thumbnailFileError:""})):s(e=>({...e,thumbnailFileError:qR(n)}))},accept:"image/*"})})]}),o.thumbnail&&(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsxs)(ie.fv,{container:!0,item:!0,fullWidth:!0,children:[(0,fe.jsx)(tD,{src:o.thumbnailSource,alt:""}),o.thumbnail.name?(0,fe.jsx)(lD,{children:o.thumbnail.name}):(0,fe.jsx)(aD,{href:o.thumbnail,children:"Download Thumbnail"}),(0,fe.jsx)(rD,{color:"danger",onClick:()=>{s(e=>({...e,thumbnail:null}))},children:"Remove thumbnail"})]})})]})}),o.type!==gn.US.Url&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ZR,{item:!0,children:[(0,fe.jsx)(nD,{children:(0,fe.jsx)(eD,{children:"Content"})}),!o.content&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.h$,{background:!0,name:"contentfile",disabled:o.isSubmitting||!o.type,text:o.fileError||"Select a file",buttonText:"Select File",onClick:()=>{y.current.click()}}),(0,fe.jsxs)(iD,{children:[o.type===gn.US.Scorm&&(0,fe.jsx)("input",{name:"content",type:"file",ref:y,onChange:e=>{const n=e.target.files,t=(e=>{const n=[];for(let t=0;t<e.length;t++){const a=e[t];WR(a)||n.push(a)}return n})(n);t.length>0?s(e=>({...e,invalidFiles:t,fileError:JR(t)})):(n.name=n[0].webkitRelativePath.split("/")[0],s(t=>({...t,[e.target.name]:n,invalidFiles:[]})))},multiple:!0,mozdirectory:"true",directory:"",webkitdirectory:""}),o.type===gn.US.Pdf&&(0,fe.jsx)("input",{name:"content",type:"file",accept:"application/pdf",ref:y,onChange:b}),o.type===gn.US.Video&&(0,fe.jsx)("input",{name:"content",type:"file",accept:"video/mp4,video/x-m4v,video/*",ref:y,onChange:b})]})]}),o.content&&(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsxs)(ie.fv,{container:!0,item:!0,fullWidth:!0,children:[o.content.name?(0,fe.jsx)(lD,{children:o.content.name}):(0,fe.jsx)(xp,{course:n,handleType:v,downloadLink:n.metaData.link,userId:h,courseRefetch:()=>{},name:"StartCourse-Button",steps:[],component:e=>{let{onClick:n}=e;return(0,fe.jsx)(aD,{onClick:n,children:"View"})}}),(0,fe.jsx)(rD,{color:"danger",onClick:()=>{s(e=>({...e,content:null}))},children:"Remove content"})]})})]})}),(0,fe.jsx)("form",{onSubmit:e=>{e.preventDefault(),t({id:o.id,title:o.title,description:o.description,thumbnail:o.thumbnail,content:o.content,type:o.type,categories:o.categories.map(e=>e.value),cpd:parseInt(o.cpd),passScore:parseInt(o.passScore),assessmentId:o.assessmentId,reactionId:o.reactionId,isEngage:o.isEngage,url:o.url,openIframe:o.openIframe}),a()},children:(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(ZR,{item:!0,children:(0,fe.jsx)(ie.$n,{color:"success",submit:!0,disabled:(C=o,!C.title||C.isSubmitted||!C.description||!C.content&&C.type!==gn.US.Url||!C.url&&C.type===gn.US.Url||!C.type||!C.thumbnail||C.invalidFiles.length>0),children:i?"Update Engage Content":"Upload Engage Content"})})})})]});var C},cD=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,uD=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  display: flex;
  align-items: center;
`,pD=(0,le.default)(ie.ks)`
  width: 90px;
  & input {
    text-align: center;
    flex: auto;
  }
  margin-right: ${e=>e.theme.geometry.sm.spacing};
`,mD=e=>{let{checkedElements:n,courseId:t,courseTitle:a,courseType:i,onChecked:l,changeTyping:r,changeOrder:o}=e;const s=n?.[t]?n[t].order:"",d=n?.[t]?n[t].typingOrder:null;return(0,fe.jsxs)(cD,{name:`account-row--${t}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(uD,{name:`account-row__profile-picture--${t}`,src:null,size:"xs",accountName:`${i}-${a}`}),(0,fe.jsxs)(ie.fv,{container:!0,item:!0,span:18,children:[(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${t}`,size:"md",children:a}),(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__type--${t}`,size:"md",children:i})]}),(0,fe.jsx)(ie.fv,{container:!0,children:(0,fe.jsx)(pD,{box:!0,onChange:r,onBlur:o,value:d||s})}),(0,fe.jsx)(ie.fv,{container:!0,children:(0,fe.jsx)(ie.Sc,{size:"md",onChange:l,checked:n?.[t]&&n[t].checked})})]})},fD=le.default.div`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,yD=e=>{let{checkedElements:n,courses:t,search:a,onChecked:i,changeTyping:l,changeOrder:r}=e;const o=a?t.filter(e=>e.name.toLowerCase().includes(a)):t;return o.length?o.map(e=>(0,fe.jsx)(mD,{checkedElements:n,courseId:e.id,courseTitle:e.name,courseType:e.type,onChecked:()=>i(e),changeTyping:n=>l(n,e),changeOrder:()=>r(e)},e.id)):(0,fe.jsx)(fD,{children:(0,fe.jsx)(Fu,{name:"LearnUploads__NoResults",title:"There are no results for this search."})})},gD=(0,g.memo)(yD),hD=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,xD=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,TD=(0,le.default)(ie.fv)`
  padding-top: ${e=>e.theme.geometry.md.spacing};
  padding-bottom: ${e=>e.theme.geometry.xs.spacing};
  padding-left: ${e=>e.theme.geometry.xs.spacing};
  padding-right: ${e=>e.theme.geometry.xs.spacing};
`,bD=(0,le.default)(ie.DZ)`
  margin: auto;
  padding-left: 100px;
`,vD=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,CD=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
`,kD=(0,le.default)(ie.fv)`
  flex-direction: unset;
  align-items: center;
  justify-content: center;
`,SD=(0,le.default)(ie.fv)`
  position: inherit;
  white-space: nowrap;
`,ND=[{label:"Free",value:"Free"},{label:"Restricted",value:"Restricted"}],AD=(e,n)=>{const t={};if(e.hasOwnProperty("courses")&&e.courses.length){const a={};n.forEach(e=>a[e.id]=e),e.courses.forEach((e,n)=>{t[e]={checked:!0,order:n+1,typingOrder:null,course:a[e]}})}return t},RD=e=>{let{bundle:n,client:t,courses:a,onSuccess:i,edit:l,loading:r}=e;const o=lr();n||(n={id:null,title:null,description:null});const[s,d]=(0,g.useState)({id:n.id||(0,Wa.A)(),title:n.title||"",description:n.description||"",restricted:n.restricted?"Restricted":"Free",checkedElements:AD(n,a),enableSaveButton:!1,isEngage:n.isEngage}),[c,u]=(0,g.useState)(""),p=e=>{e.persist(),d(n=>({...n,[e.target.name]:e.target.value}))};return(0,fe.jsxs)(hD,{name:"create-content",children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(kD,{container:!0,span:"24",children:[(0,fe.jsx)(bD,{size:"lg",children:"Bundle content"}),(0,fe.jsx)(SD,{container:!0,children:(0,fe.jsx)(ie.$n,{color:"success",submit:!0,disabled:!s.title||!s.description,onClick:async()=>{let[e,n]=[[],[]];Object.values(s.checkedElements).forEach(t=>{t.checked&&(t.order?e.push(t):n.push(t))}),e=(0,hn.orderBy)(e,"order","asc"),n=(0,hn.orderBy)(n,[e=>e.course.name.toLowerCase()],"asc");const a=[...e,...n].map(e=>{let{course:n}=e;return n.id}),l={id:s.id,title:s.title,description:s.description,restricted:"Restricted"===s.restricted,courses:a,isEngage:s.isEngage};await((e,n)=>n.mutate({mutation:$R,variables:e,update:(e,n)=>{const t=e.readQuery({query:MR}),a=n.data.saveLearnBundle,i={...t,getAllLearnBundles:[...t.getAllLearnBundles.filter(e=>e.id!==a.id),a]};e.writeQuery({query:MR,data:i})}}))(l,t),i()},children:l?"Update bundle":"Save bundle"})})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(xD,{item:!0,children:[(0,fe.jsx)(CD,{children:(0,fe.jsx)(vD,{children:"Title"})}),(0,fe.jsx)(ie.ks,{onChange:p,name:"title",value:s.title,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(xD,{item:!0,children:[(0,fe.jsx)(CD,{children:(0,fe.jsx)(vD,{children:"Content type"})}),(0,fe.jsx)(ie.l6,{onChange:e=>{d(n=>({...n,restricted:e.target.value}))},name:"type",value:s.restricted,box:!0,options:ND})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(xD,{item:!0,children:[(0,fe.jsx)(CD,{children:(0,fe.jsx)(vD,{children:"Description"})}),(0,fe.jsx)(ie.fs,{size:"lg",disabled:s.isSubmitted,onChange:p,name:"description",value:s.description,box:!0})]})}),o.learn.includes("createCourseAll")&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(xD,{item:!0,children:[(0,fe.jsx)(CD,{children:(0,fe.jsx)(vD,{children:"Include into Engage subscription"})}),(0,fe.jsx)(ie.Sc,{checked:s.isEngage,size:"md",onChange:e=>{d(n=>({...n,isEngage:e.target.checked}))}})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(TD,{item:!0,children:(0,fe.jsx)(ie.vj,{container:!0,name:"ConfigurationLearnUploadContainer__Controls__Search",hideButton:!0,onChange:e=>{e.preventDefault(),u(e.target.value.toLowerCase())},value:c})})}),r?(0,fe.jsx)(Rc,{name:"CoursePreview__Loading"}):(0,fe.jsx)(gD,{client:t,search:c,courses:a,checkedElements:s.checkedElements,changeTyping:(e,n)=>{const t=e.target.value;if(t.match(/^\d+$/)||!t){const e={...s.checkedElements};if(e?.[n.id])e[n.id].typingOrder=+t;else{const a={checked:!1,order:"",typingOrder:+t,course:n};e[n.id]=a}d(n=>({...n,checkedElements:e}))}},changeOrder:e=>{const n={...s.checkedElements};Object.keys(n).map(t=>(n[t].order===n[e.id].typingOrder&&e.id!==t&&(n[t].order=""),t)),n[e.id].order=n[e.id].typingOrder,n[e.id].typingOrder=null,d({...s,checkedElements:n})},onChecked:e=>{const n={...s.checkedElements};if(n.hasOwnProperty(e.id))n[e.id].checked=!s.checkedElements[e.id].checked;else{const t={checked:!0,order:"",typingOrder:null,course:e};n[e.id]=t}d(e=>({...e,checkedElements:n}))}})]})},DD=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,LD=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 0 0 ${e=>e.theme.geometry.xl.spacing};
  margin-right: ${e=>e.theme.geometry.sm.spacing};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,ID=e=>{let{data:{id:n},onEdit:t}=e;return(0,fe.jsx)(DD,{children:(0,fe.jsx)(LD,{onClick:()=>t(n),children:(0,fe.jsx)(ie.In,{name:`scheme-row__edit--${n}`,icon:"pencil-alt"})})})},jD=(0,hn.keyBy)(VR,"value"),wD=(0,le.default)(ie.fI)`
  flex: 1;
`,OD=e=>{let{value:n}=e;return(0,hn.capitalize)(n)},ED=e=>{let{value:n}=e;return null===n?"(Blanks)":(0,hn.capitalize)(jD[n].label)},_D=e=>{let{value:n}=e;return n?.map(e=>" "+(0,hn.capitalize)(jD[e].label))},FD=function(e){let{courses:n,onEdit:t}=e;const a=qr(),i={action:e=>(0,fe.jsx)(ID,{...e,onEdit:t})},l={rowHeight:120,columnDefs:[{headerName:"Title",filter:"agTextColumnFilter",filterParams:{newRowsAction:"keep"},field:"name"},{headerName:"Content Type",filter:"agSetColumnFilter",filterParams:{valueFormatter:OD},valueFormatter:OD,field:"type"},{headerName:"Category",filter:"agSetColumnFilter",filterParams:{valueFormatter:ED},valueFormatter:_D,field:"metaData.categories",width:300},{headerName:"Is Engage",filter:"agSetColumnFilter",filterParams:{valueFormatter:Hi},valueGetter:e=>{let{data:n}=e;return null!==n.isEngage&&n.isEngage},valueFormatter:Hi,field:"isEngage"},{headerName:"Actions",cellRenderer:"action",filter:!1,sortable:!1}],defaultColDef:{sortable:!0,resizable:!0,filter:!0,cellStyle:{padding:"10px",height:"auto",wordBreak:"break-word",lineHeight:"20px"}},rowStyle:{width:"100%",display:"flex",alignItems:"center"}};return(0,fe.jsx)(wD,{container:!0,children:(0,fe.jsx)(Pg,{rowData:n,components:i,getRowId:Gn("id"),onGridReady:e=>a.onGridReady(e),onFilterChanged:a.onFilterChanged,onFirstDataRendered:a.onFirstDataRendered,...l})})},PD=(0,le.default)(ie.fI)`
  flex: 1;
`,BD=e=>{let{value:n}=e;return"true"===n?"Restricted":"false"===n?"Free":n?"Restricted":"Free"},UD=function(e){let{bundles:n,onEdit:t}=e;const a=qr(),i={action:e=>(0,fe.jsx)(ID,{...e,onEdit:t})},l={rowHeight:120,columnDefs:[{headerName:"Unique Identifier",filter:"agTextColumnFilter",filterParams:{newRowsAction:"keep"},field:"id",width:300,hide:!0},{headerName:"Title",filter:"agTextColumnFilter",filterParams:{newRowsAction:"keep"},field:"title"},{headerName:"Content Type",filter:"agSetColumnFilter",filterParams:{valueFormatter:BD},valueFormatter:BD,field:"restricted"},{headerName:"Is Engage",filter:"agSetColumnFilter",filterParams:{valueFormatter:Hi},valueGetter:e=>{let{data:n}=e;return null!==n.isEngage&&n.isEngage},valueFormatter:Hi,field:"isEngage"},{headerName:"Actions",cellRenderer:"action",filter:!1,sortable:!1}],defaultColDef:{sortable:!0,resizable:!0,filter:!0,cellStyle:{padding:"10px",height:"auto",wordBreak:"break-word",lineHeight:"20px"}},rowStyle:{width:"100%",display:"flex",alignItems:"center"}};return(0,fe.jsx)(PD,{container:!0,children:(0,fe.jsx)(Pg,{rowData:n,components:i,getRowId:Gn("id"),onGridReady:e=>a.onGridReady(e),onFilterChanged:a.onFilterChanged,onFirstDataRendered:a.onFirstDataRendered,...l})})},$D=(0,le.default)(ie.tU)`
  &.MuiTabs-root {
    min-height: 60px;
  }
`,MD=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,VD=le.default.div`
  padding: ${e=>e.theme.geometry.xs.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,GD={upload:!1,notification:{show:!1,message:"",color:""},edit:!1,test:!0,editedCourse:{id:"",name:"",type:"",metaData:{link:"",thumbnail:"",description:""}},currentUpload:null,uploadCount:0,error:!1,selectedButton:null,updateBundle:0,editBundle:null},zD=function(){const[e,n]=(0,g.useState)(GD),[t,a]=(0,g.useState)(""),[i,l]=(0,g.useState)(""),[r,o]=(0,g.useState)(0),[s,d]=(0,g.useState)(!1),[c,u]=(0,g.useState)("SYSTEM_LEVEL"),p=(0,C.m)(),m=Je(),f=lr(),y=f.learn.includes("createCourseAll"),h=()=>n(e=>({...e,upload:!1,edit:!1})),T=e=>{n(n=>({...n,notification:e}))},b=e=>{n(n=>({...n,edit:!0,editedCourse:D?.find(n=>n.id===e),selectedButton:"LearnContent"}))},{data:v,loading:k,error:S,refetch:N,networkStatus:A}=function(e,n){const t={accountId:n,pageNumber:1};return e||(t.ownedCourses=!0),(0,x.IT)(e?MR:Tl(),{notifyOnNetworkStatusChange:!0,variables:t})}(y,m),R=v?(e=>{let n,t;return y?(n=e?e.getAllCourses.data:null,t=e?e.getAllLearnBundles:null,{allBundles:t,allCourses:n}):(n=e?e.getAvailableCourses.data:null,t=e?e.getAvailableCourses.learnBundleList:null,{allBundles:t,allCourses:n})})(v):{allCourses:[],allBundles:[]},D=R?.allCourses?.filter(e=>e.name.toLowerCase().includes(t)),L=R?.allBundles?.filter(e=>e.title.toLowerCase().includes(i));return(0,fe.jsxs)(ie.fv,{name:"ConfigurationLearnUploadContainer",container:!0,fullHeight:!0,children:[(e.upload||e.edit)&&(0,fe.jsx)(ie.aF,{size:"lg",show:!0,name:"ConfigurationLearnUploadContainer--create",dismissable:!0,onDismiss:h,children:"LearnBundle"===e.selectedButton?(0,fe.jsx)(RD,{client:p,bundle:e.editBundle,loading:k,onSuccess:()=>{h(),N(),n(e=>({...e})),T({show:!0,message:e.edit?"The bundle was updated":"The bundle was added",color:"primary"})},edit:e.edit,courses:D}):(0,fe.jsx)(dD,{course:e.editedCourse,onSuccess:e.upload?()=>{h(),N(),T({show:!0,message:"Your upload will continue in the background. Check back shortly to see it",color:"primary"})}:h,uploadContent:async t=>{const{edit:a,editedCourse:i}=e;try{const l=t.content instanceof File||t.content instanceof FileList,r=t.thumbnail instanceof File,o=!a||l||r;let s=i.metaData.link;if(o){n(e=>({...e,currentUpload:{contentData:t,status:"In-progress",showNotification:!0,color:"primary"}}));const{data:e}=l?await((e,n,t)=>{const a="network-only",{type:i}=e;if(i===gn.US.Scorm){const l=[...e.content].map(e=>{const{name:n,webkitRelativePath:t}=e;return{name:n,webkitRelativePath:t}});return n.query({query:FR,variables:{accountId:t,type:i,files:l},fetchPolicy:a})}return n.query({query:_R,variables:{accountId:t,type:i,fileName:e.content.name},fetchPolicy:a})})(t,p,m):{},a=((e,n)=>{if(!n)return e;const{initiateLearnFileUpload:t,initiateScormFileUpload:a}=n;if(t){const n=(0,Wa.A)();let{id:a,contentPath:i,url:l}=t;return e.id&&(a=e.id),{...e,id:a,contentPath:i,version:n,url:l}}if(a){let{id:n,contentPath:t,version:i,isNotScorm:l}=(e=>{for(const n of e.values()){const{contentPath:e}=n,[t,a,i,l,...r]=e.split("/");if(e.includes("indexAPI.html")||e.includes("index_lms.html"))return{id:i,contentPath:e,version:l,courseType:a,filePath:r,s:t}}return{isNotScorm:!0}})(a);if(e.id&&(n=e.id),l)throw new Error("No main Scorm file found");const r=a.map(e=>e.url);return{...e,id:n,contentPath:t,version:i,presignedLinks:r}}return e})(t,e);await(async(e,n,t)=>{let{url:a,contentPath:i,id:l,title:r,description:o,cpd:s,thumbnail:d,content:c,type:u,version:p,presignedLinks:m}=e;await n.mutate({mutation:ER,variables:{accountId:t,url:a,presignedLinks:m,contentPath:i,id:l,title:r,description:o,cpd:s,thumbnail:d,content:c,type:u,version:p}})})(a,p,m),l&&(s=a.contentPath)}const d="SYSTEM_LEVEL"===c?f.learn.includes("createCourseAll")?null:m:c,u=t.type===gn.US.Url?void 0===t.openIframe||t.openIframe:void 0;if(await((e,n)=>n.mutate({mutation:UR,variables:e,update:(e,n)=>{const t=e.readQuery({query:MR}),a=n.data.saveLearnContentMetadata,i={...t,getAllCourses:{...t.getAllCourses,data:[...t.getAllCourses.data.filter(e=>e.id!==a.id),a]}};e.writeQuery({query:MR,data:i})}}))({contentPath:t.type!==gn.US.Url?s:void 0,accountId:d,id:t.id,title:t.title,description:t.description,cpd:t.cpd,passScore:t.passScore,type:t.type,categories:t.categories,assessmentId:t.assessmentId,reactionId:t.reactionId,isEngage:t.isEngage,url:t.type===gn.US.Url?t.url:void 0,openIframe:u},p),t.isAccountSpecific)try{const{subscriptions:e,bundleShow:n,bundleHidden:a,mandatoryBundleId:i}=await(async(e,n)=>{const{data:t}=await n.query({query:PR,variables:{accountId:e},fetchPolicy:"network-only"});return t.getAllLearnSubscriptions})(m,p);await(async(e,n)=>{await n.mutate({mutation:BR,variables:{...e}})})({subscriptions:[...e,t.id],bundleShow:n,bundleHidden:a,mandatoryBundleId:i,accountId:m},p)}catch(e){console.log("ERROR",e)}n(n=>({...n,currentUpload:{...e.currentUpload,status:"Complete",color:"success"},uploadCount:e.uploadCount+1})),T({show:!0,message:a?"Your course has been updated!":"Your upload has finished!",color:"success"}),N()}catch(t){T({show:!0,message:a?"Your course failed to update":"Your course failed to upload",color:"danger"}),n(n=>({...n,error:t,currentUpload:{...e.currentUpload,status:"Failed",color:"danger"}}))}},edit:e.edit})}),e.notification.show&&(0,fe.jsx)(ie.Eg,{id:"ConfigurationLearnUpload__notification",name:"ConfigurationLearnUpload__notification",show:!0,color:e.notification.color,onClose:()=>{n(e=>({...e,notification:{show:!1,message:""}}))},children:e.notification.message}),(0,fe.jsxs)(gu,{name:"ConfigurationLearnUploadContainer__Controls",icon:"graduation-cap",iconColor:"primary",title:"Engage Content",children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationLearnUploadContainer__Controls__Search",value:s?t:i,onChange:e=>{e.preventDefault(),s?a(e.target.value.toLowerCase()):l(e.target.value.toLowerCase())},hideButton:!0})}),f.learn.find(e=>e.startsWith("createBundle"))&&(0,fe.jsx)(MD,{name:"ConfigurationLearnUploadContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>{n(e=>({...e,upload:!0,editBundle:null,selectedButton:"LearnBundle"}))},children:"+ Add bundle"}),(0,fe.jsx)(MD,{name:"ConfigurationLearnUploadContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>{n(e=>({...e,upload:!0,selectedButton:"LearnContent",editedCourse:{id:"",name:"",type:"",metaData:{link:"",thumbnail:"",description:"",categories:[]}}}))},children:"+ Add Engage Content"})]}),y&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(VD,{children:(0,fe.jsx)(wu,{value:c,onChange:e=>{let{id:n}=e;return u(n)},customOption:{value:"SYSTEM_LEVEL",label:"System Level"}})}),(0,fe.jsx)($D,{variant:"fullWidth",value:r,onChange:(e,n)=>o(n),children:[{label:"Bundles"},{label:"Courses"}].map(e=>{let{label:n}=e;return(0,fe.jsx)(ie.oz,{label:n,onClick:()=>d("Courses"===n)},n)})})]}),e.currentUpload&&e.currentUpload.showNotification&&(0,fe.jsx)("div",{children:(0,fe.jsx)(Ae,{id:"CurrentUpload__NotificationBanner",name:"CurrentUpload__NotificationBanner",icon:"upload",dismissable:!0,onDismiss:()=>{n(n=>({...n,currentUpload:{...e.currentUpload,showNotification:!1}}))},title:`Uploading Files: ${e.currentUpload.contentData.content?.name||e.currentUpload.contentData.thumbnail.name}`,body:`Upload Status: ${e.currentUpload.status}`,color:e.currentUpload.color})}),(k&&3!==A||4===A)&&(0,fe.jsx)(Rc,{name:"CoursePreview__Loading"}),!k&&y&&"SYSTEM_LEVEL"===c&&s&&(S?(0,fe.jsx)($c,{error:S,retry:N}):D.length?(0,fe.jsx)(FD,{onEdit:b,courses:D}):(0,fe.jsx)(Fu,{name:"LearnUploads__NoResults",title:"There are no results for this search."})),!k&&y&&"SYSTEM_LEVEL"===c&&!s&&(S?(0,fe.jsx)($c,{error:S,retry:N}):L.length?(0,fe.jsx)(UD,{onEdit:e=>{n(n=>({...n,edit:!0,editBundle:L?.find(n=>n.id===e),selectedButton:"LearnBundle"}))},bundles:L}):(0,fe.jsx)(Fu,{name:"LearnUploads__NoResults",title:"There are no results for this search."})),!k&&!y&&(S?(0,fe.jsx)($c,{error:S,retry:N}):D.length?(0,fe.jsx)(FD,{onEdit:b,courses:D}):(0,fe.jsx)(Fu,{name:"LearnUploads__NoResults",title:"There are no results for this search."}))]})},WD=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  flex: 0 0 auto;
`,qD=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,JD=(0,le.default)(ie.fI)`
  align-items: center;
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,YD=le.default.div`
  padding-right: 24px;
  text-align: right;
  width: 145px;
  float: right;

  a {
    text-decoration: underline;
    cursor: pointer;
  }

  a:hover {
    text-decoration: none;
  }
`,HD=e=>{const n=(0,m.Zp)(),{accountId:t,businessName:a,profileImage:i,path:l,isCourseRows:r=!1,record:o,permissions:s={},licencesCountMap:d=new Map}=e,c=or();let u;const p=s?.licenceService?.assignLicence&&r,f=o?.inBundles?.length>0,y=f?o.inBundles[0]:o.id;p&&(u=ha(`/${c.configuration.root}/${c.configuration.menu.learn.assignLicense}`,{accountId:t,productType:f?"bundle":"course",productId:y}));const g=r?u:`${l}/${t}`;return(0,fe.jsx)("div",{children:(0,fe.jsxs)(JD,{container:!0,children:[(0,fe.jsx)(ie.fv,{span:p?8:12,children:(0,fe.jsx)(ug,{name:"configuration-menu__item--contractors",to:g,children:(0,fe.jsxs)(WD,{name:`account-row--${t}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(qD,{name:`account-row__profile-picture--${t}`,src:i,size:"xs",accountName:a}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${t}`,size:"md",children:a})})]})})}),p&&(0,fe.jsx)(ie.fv,{span:4,children:(0,fe.jsx)(YD,{children:(0,fe.jsx)(ie.$n,{size:"sm",onClick:()=>n(u),children:(0,fe.jsx)(Wg,{id:y,licencesCountMap:d})})})})]})})},KD=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,QD=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,ZD=le.default.div`
  height: 3px;
  background-color: rgb(109, 108, 122);
  flex-direction: row;
  flex: 0 0 auto;
`,XD=(0,le.default)(ie.fv)`
  min-width: ${e=>e.minWidth};
  text-align: center;
  & p {
    text-align: center;
  }
  & div {
    display: inline-block;
  }
`,eL=()=>{const e=lr(),n=Je(),t=(0,m.Zp)(),a=(0,m.zy)(),i=or(),{isSystemAdmin:l,licenceService:{assignLicence:r}={}}=e,{courses:o,bundles:s,loading:d}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Je(),{data:{getAvailableCourses:t={}}={},...a}=(0,x.IT)(Tl(),{variables:{accountId:n,pageNumber:0},...e}),i=t?.learnBundleList||[],l=(t.data||[]).map(e=>{let{id:n,...t}=e;const a=i.filter(e=>{let{courses:t}=e;return t.indexOf(n)>-1}).map(e=>{let{id:n}=e;return n});return{...t,id:n,inBundles:a}})||[];return{courses:l,bundles:i,...a}}({skip:l}),[c,u]=(0,g.useState)(),{data:{getAccounts:{rows:p=[]}={}}={},error:f,loading:y,refetch:h}=(0,x.IT)(ju,{variables:{limit:100,filters:{text:[{filterType:"text",type:"contains",filter:c,field:"name"}]}},skip:!l}),{productLicences:T=[],loading:b}=xr(n),v=new Map(T.map(e=>{let{productId:n,count:t}=e;return[n,t]})),C=l?p:o,[k,S,N]=fd(C||[],["name"]),[,A,R]=fd(s||[],["title"]),D=!l,L=y||d||b;return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationLearnSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:"Engage Subscriptions",children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationLearnSubscriptionsContainer__Controls__Search",value:k,onChange:e=>{return n=e.target.value,S(n),l&&u(n),void(r&&A(n));var n},hideButton:!0})})}),L&&(0,fe.jsx)(Rc,{name:"ConfigurationAccountsContainer__Loading"}),f&&(0,fe.jsx)(ie.Kw,{error:f,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationAccountsContainer__Error",icon:a,title:n,body:t,retry:h})}}),!L&&!f&&!N.length&&!R.length&&(0,fe.jsx)(Fu,{name:"ConfigurationLearnSubscriptionsContainer__NoResults",title:"There are no results for this search."}),r&&(0,fe.jsxs)(fe.Fragment,{children:[R.map(e=>(0,fe.jsxs)(KD,{name:`account-row--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(QD,{name:`account-row__profile-picture--${n}`,size:"xs",accountName:"B",color:"secondary"}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${n}`,size:"md",children:e.title})}),(0,fe.jsx)(XD,{minWidth:"120px",children:(0,fe.jsx)(ie.$n,{size:"sm",onClick:()=>t(ha(`/${i.configuration.root}/${i.configuration.menu.learn.assignLicense}`,{productId:e.id,productType:"bundle",accountId:n})),children:(0,fe.jsx)(Wg,{id:e.id,licencesCountMap:v})})})]},e.id)),(0,fe.jsx)(ZD,{})]}),C&&!!N.length&&N.slice().sort((e,n)=>Hn(e.name,n.name)).map(t=>(0,fe.jsx)(HD,{licencesCountMap:v,accountId:D?n:t.id,businessName:t.name,profileImage:t.profile,record:t,isCourseRows:D,permissions:e,path:a.pathname},t.id))]})})},nL=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing} ${e.theme.geometry.md.spacing}`};
`,tL=(0,le.default)(nL)`
  background: ${e=>e.theme.colors.overlay.light.background};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  border-top: 1px solid ${e=>e.theme.colors.text.light.background};
  flex: 0 0 auto;
`,aL=(0,le.default)(ie.fv)`
  flex: ${e=>e.span};
  padding: ${e=>e.theme.geometry.md.profile.padding};
`,iL=(0,le.default)(ie.In)`
  cursor: pointer;
`,lL=[{field:"type",name:"Type",width:5.5,format:e=>KR[e]},{field:"name",name:"Name",width:5.5},{field:"edit",name:null,width:1,format:()=>(0,fe.jsx)(iL,{icon:"pencil-alt"})}];function rL(e){let{evaluations:n,error:t,onEdit:a,retry:i}=e;return(0,fe.jsxs)(ie.fv,{children:[(0,fe.jsx)(tL,{container:!0,children:lL.map(e=>(0,fe.jsx)(aL,{container:!0,item:!0,span:e.width,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:e.name})},e.field))}),t?(0,fe.jsx)($c,{name:t.message,error:t,retry:i}):n.map(e=>(0,fe.jsx)(nL,{container:!0,item:!0,children:lL.map(n=>(0,fe.jsx)(aL,{container:!0,item:!0,inline:!0,span:n.width,children:"edit"===n.field?(0,fe.jsx)(iL,{onClick:()=>{a(e)},icon:"pencil-alt"}):(0,fe.jsx)(ie.EY,{size:"md",children:n.format?n.format(e[n.field]):e[n.field]})},e.id+n.field))},e.id))]})}const oL=(0,le.default)(ie.JU)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,sL=(0,le.default)(ie.In)`
  cursor: pointer;
`;function dL(e){let{label:n,items:t,onChange:a,error:i,placeholder:l}=e;const r=(0,le.useTheme)(),[o,s]=(0,g.useState)(""),[d,c]=(0,g.useState)(null),u=()=>{if(!o)return c("Please fill in the field");a(t.concat([{id:(0,Wa.A)(),text:o}])),s("")};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(oL,{children:n}),(0,fe.jsxs)(ie.hh.Row,{children:[(0,fe.jsx)(ie.hh.TextInputColumn,{value:o,error:d||i,placeholder:l||"Item text",onKeyPress:e=>{e.key===Fx&&u()},onChange:e=>{s(e.target.value)}}),(0,fe.jsx)(ie.fv,{span:1,vdistribution:"center",itemAlign:"center",item:!0,container:!0,children:(0,fe.jsx)(sL,{icon:"save",title:"Add item",color:r.colors.success.normal.background,onClick:()=>{u()}})})]}),t.map(e=>(0,fe.jsxs)(ie.hh.Row,{children:[(0,fe.jsx)(ie.hh.TextInputColumn,{value:e.text,onChange:n=>{a(t.map(t=>t.id===e.id?{...t,text:n.target.value}:t))}}),(0,fe.jsx)(ie.fv,{span:1,vdistribution:"center",itemAlign:"center",item:!0,container:!0,children:(0,fe.jsx)(sL,{icon:"trash-alt",title:"Delete item",color:r.colors.danger.normal.background,onClick:()=>{a(t.filter(n=>n.id!==e.id))}})})]},e.id))]})}const cL={name:"",description:"",type:YR,scale:{min:1,max:5},questions:[]};function uL(e){let{defaultEvaluation:n,heading:t,onDismiss:a,onCompleted:i,onError:l}=e;const[r,o]=(0,g.useState)(n||cL),[s,d]=(0,g.useState)({}),c=lr(),u=Je(),[p,{loading:m}]=(0,ln.n)(ip,{onCompleted:i,onError:l,update:(e,n)=>{const t=n.data.createEvaluation,{getAllEvaluations:a}=e.readQuery({query:ap,variables:{accountId:c.learn.includes("createEvaluationAll")?null:u}});a.find(e=>e.id===t.id)||e.writeQuery({query:ap,variables:{accountId:c.learn.includes("createEvaluationAll")?null:u},data:{getAllEvaluations:a.concat([t])}})}});return(0,fe.jsx)(ie.aF,{onDismiss:a,size:"md",show:!0,children:(0,fe.jsxs)(ie.hh,{children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:t}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextInputColumn,{label:"Name",value:r.name,error:s.name,disabled:m,onChange:e=>{o({...r,name:e.target.value})}})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextInputColumn,{label:"Description",value:r.description,error:s.description,disabled:m,onChange:e=>{o({...r,description:e.target.value})}})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.SelectColumn,{label:"Type",value:r.type,error:s.type,disabled:m,onChange:e=>{o({...r,type:e.target.select.value})},options:[{value:YR,label:KR[YR]},{value:HR,label:KR[HR]}]})}),(0,fe.jsxs)(ie.hh.Row,{children:[(0,fe.jsx)(ie.hh.TextInputColumn,{label:"Minimum score",value:r.scale.min,error:s.scale?.min,disabled:m,onChange:e=>{o({...r,scale:{...r.scale,min:e.target.value}})}}),(0,fe.jsx)(ie.hh.TextInputColumn,{label:"Maximum score",value:r.scale.max,error:s.scale?.max,disabled:m,onChange:e=>{o({...r,scale:{...r.scale,max:e.target.value}})}})]}),(0,fe.jsx)(dL,{label:"Questions",placeholder:"New question",items:r.questions,error:s.questions,onChange:e=>{o({...r,questions:e})}}),(0,fe.jsxs)(ie.hh.Row,{children:[(0,fe.jsx)(ie.hh.ButtonColumn,{color:"info",disabled:m,onClick:()=>{a()},children:"Cancel"}),(0,fe.jsx)(ie.hh.ButtonColumn,{onClick:()=>{const e=function(e){const n={};return e.name||(n.name="Name is required"),e.description||(n.description="Description is required"),e.scale||(n.scale="Please select minimum and maximum value of the scale"),parseFloat(e.scale.min,10)<0&&(n.scale=n.scale||{},n.scale.min="Minimum value of scale should be greater or equal to 0"),parseFloat(e.scale.max,10)<=0&&(n.scale=n.scale||{},n.scale.max="Maximum value of scale should be greater than 0"),e.questions.length||(n.questions="At least one question should be present"),n}(r);if(Object.keys(e).length)return d(e);const n={...r,accountId:c.learn.includes("createEvaluationAll")?null:u};r.id||(n.id=(0,Wa.A)()),p({variables:{input:n}})},disabled:m,children:"Save"})]})]})})}const pL=(0,le.default)(ie.$n)`
  width: 250px;
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`;function mL(){const e=Je(),n=lr(),{data:t,error:a,refetch:i}=(0,x.IT)(ap,{variables:{accountId:n.learn.includes("createEvaluationAll")?null:e}}),[l,r,o]=fd(t?.getAllEvaluations||[],["id","name","type"]),[s,d]=(0,g.useState)(!1),[c,u]=(0,g.useState)(null),[p,m]=(0,g.useState)(null),f=e=>{m({message:e.message,color:"danger"})};return(0,fe.jsxs)(ie.fv,{children:[(0,fe.jsxs)(gu,{icon:"briefcase",iconColor:"primary",title:"Engage Evaluations",children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{value:l,onChange:e=>{r(e.target.value)},hideButton:!0})}),(0,fe.jsx)(pL,{onClick:()=>{d(!0)},children:"+ Add Evaluation"})]}),(0,fe.jsx)(rL,{evaluations:o,error:a,retry:i,onEdit:u}),s&&(0,fe.jsx)(uL,{heading:"Create Evaluation",onDismiss:()=>{d(!1)},onCompleted:()=>{d(!1),m({message:"Evaluation has been successfully created!",color:"success"})},onError:f}),c&&(0,fe.jsx)(uL,{heading:"Edit Evaluation",onDismiss:()=>{u(null)},onCompleted:()=>{u(null),m({message:"Evaluation has been successfully edited!",color:"success"})},onError:f,defaultEvaluation:c}),p&&(0,fe.jsx)(ie.Eg,{name:p.message,show:!0,color:p.color,onClose:()=>m(null),children:p.message})]})}const fL=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,yL=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,gL=e=>{let{accountId:n,businessName:t,profileImage:a}=e;const i=(0,m.zy)();return(0,fe.jsx)(ug,{name:"configuration-menu__item--contractors",to:`${i.pathname}/${n}`,children:(0,fe.jsxs)(fL,{name:`account-row--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(yL,{name:`account-row__profile-picture--${n}`,src:a,size:"xs",accountName:t}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${n}`,size:"md",children:t})})]})})};class hL extends g.Component{constructor(){return super(...arguments),this.state={search:{value:"",error:""}},this.handleSearchChange=e=>{this.setState({search:{...this.state.search,value:e.target.value}})},this}render(){return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationDashboardSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:"Dashboard Subscriptions",children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationDashboardSubscriptionsContainer__Controls__Search",value:this.state.search.value,onChange:this.handleSearchChange,hideButton:!0})})}),(0,fe.jsx)(au.X,{query:ju,variables:{limit:100,filters:{text:[{filterType:"text",type:"contains",filter:this.state.search.value,field:"name"}]}},children:e=>{let{loading:n,error:t,data:a,refetch:i,networkStatus:l}=e;return n&&3!==l||4===l?(0,fe.jsx)(Rc,{name:"ConfigurationAccountsContainer__Loading"}):t?(0,fe.jsx)(ie.Kw,{error:t,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationAccountsContainer__Error",icon:a,title:n,body:t,retry:i})}}):a.getAccounts.totalRows?a.getAccounts.rows.map(e=>(0,fe.jsx)(gL,{accountId:e.id,businessName:e.name,profileImage:e.profile},e.id)):(0,fe.jsx)(Fu,{name:"ConfigurationDashboardSubscriptionsContainer__NoResults",title:"There are no results for this search."})}})]})})}}const xL=hL,TL=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,bL=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`;function vL(e){const{dashboardName:n,accountId:t,id:a,onCheckboxClick:i,checked:l}=e;return(0,fe.jsx)("div",{children:(0,fe.jsxs)(TL,{name:`account-row--${t}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(bL,{name:`account-row__profile-picture--${t}`,src:"",size:"xs",accountName:n}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${t}`,size:"md",children:n})}),(0,fe.jsx)(ie.Sc,{id:`update-subscription-${a}`,name:a,onChange:i,checked:l})]})},a)}const CL=S.J1`
  query GetAccountInfo($id: ID!) {
    getAccountInfo(id: $id) {
      id
      name
      accessControls {
        learn
        intelligence
        v2Design
        comply {
          legislation
          tagLevelLegislation
          policies
          systems
          targets
          frameworks
          agreements
        }
        data {
          waste
          electricity
          gas
          water
          materials
          fuel
          transport
          refrigerants
          heatSteam
          oilAndGas
          coreEstate
        }
      }
    }
  }
`,kL=S.J1`
  query GetDashboardSubscriptions($accountId: ID!) {
    getDashboardSubscriptions(accountId: $accountId)
  }
`,SL=S.J1`
  mutation SaveDashboardSubscriptions($accountId: ID!, $subscriptions: [String!]!) {
    saveDashboardSubscriptions(input: { accountId: $accountId, subscriptions: $subscriptions })
  }
`,NL=(S.J1`
  query GetDashboardById($id: ID!) {
    getDashboard(id: $id) {
      id
      name
      description
      area
      provider
      providerDashboardId
    }
  }
`,S.J1`
  query GetAllDashboards {
    getAllDashboards {
      id
      name
      description
      area
      provider
      providerDashboardId
    }
  }
`);class AL extends g.Component{constructor(e){super(e),this.onCheckboxClick=e=>{const n=[],t=this.state.dashboards.map(n=>{let t=n.checked;return n.id===e.target.name&&(t=!n.checked),{...n,checked:t}});t.map(e=>(e.checked&&n.push(e.id),null)),this.props.client.mutate({mutation:SL,variables:{accountId:this.props.accountId,subscriptions:n}}),this.setState({dashboards:t})},this.state={dashboards:this.props.dashboards.map(e=>({...e,checked:this.props.selectedDashboards.includes(e.id)}))}}render(){const{accountId:e,permissions:n}=this.props;return(0,fe.jsx)(fe.Fragment,{children:this.state.dashboards.sort((e,n)=>Hn(e.name,n.name)).map(t=>(0,fe.jsx)(vL,{permissions:n,id:t.id,dashboardName:t.name,accountId:e,onCheckboxClick:this.onCheckboxClick,checked:t.checked||!1},t.id))})}}const RL=(0,Kc.W)(AL),DL=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
`;class LL extends g.Component{constructor(e){super(e),this.handleSearchChange=e=>{this.setState({search:{...this.state.search,value:e.target.value}})},this.search=(e,n)=>{if(!n)return e;const t=new pd.vj("id");return t.addIndex("name"),t.addDocuments(e),t.search(n)},this.state={search:{value:"",error:""}}}render(){const{title:e,accountId:n,permissions:t}=this.props;return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationLearnSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:e,children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationLearnSubscriptionsContainer__Controls__Search",value:this.state.search.value,onChange:this.handleSearchChange,hideButton:!0})})}),(0,fe.jsx)(au.X,{query:kL,variables:{accountId:n},fetchPolicy:"network-only",children:e=>{let{loading:a,error:i,data:l,refetch:r}=e;return i?(0,fe.jsx)(ie.Kw,{error:i,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationLearnSubscriptionsContainer__Error",icon:a,title:n,body:t,retry:r})}}):a?(0,fe.jsx)(DL,{children:(0,fe.jsx)(ie.Ip,{size:"md"})}):(0,fe.jsx)(au.X,{query:NL,children:e=>{let{loading:a,error:i,data:r,refetch:o}=e;if(i)return(0,fe.jsx)(ie.Kw,{error:i,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationLearnSubscriptionsContainer__Error",icon:a,title:n,body:t,retry:o})}});if(a)return(0,fe.jsx)(DL,{children:(0,fe.jsx)(ie.Ip,{size:"md"})});const s=Array.from(new Set(r.getAllDashboards)),d=this.search(s,this.state.search.value);return d.length?(0,fe.jsx)(RL,{permissions:t,dashboards:d,accountId:n,selectedDashboards:l.getDashboardSubscriptions}):(0,fe.jsx)(Fu,{name:"ConfigurationUsersContainer__NoResults",title:"There are no results for this search."})}})}})]})})}}const IL=LL,jL=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
`;function wL(){const{accountId:e}=(0,m.g)(),n=lr();return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(au.X,{query:CL,variables:{id:e},children:t=>{let{loading:a,error:i,data:l}=t;return a||i?(0,fe.jsx)(jL,{children:(0,fe.jsx)(ie.Ip,{size:"md"})}):(0,fe.jsx)(IL,{accountId:e,permissions:n,title:`Dashboard Subscriptions - ${l.getAccountInfo.name}`})}})})}const OL=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,EL=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,_L=le.default.div`
  height: 3px;
  background-color: rgb(109, 108, 122);
  flex-direction: row;
  flex: 0 0 auto;
`,FL=(0,le.default)(ie.fv)`
  min-width: ${e=>e.minWidth};
  text-align: center;
  & p {
    text-align: center;
  }
  & div {
    display: inline-block;
  }
`,PL=le.default.div`
  & input:checked + div {
    border-color: ${e=>e.theme.colors.secondary.light.text} !important;
    background-color: ${e=>e.theme.colors.secondary.light.text};
  }
`,BL=e=>{let{accountId:n,bundle:t,getAllLearnSubscriptions:a,onClickBundle:i,onClickMandatory:l,licencesCountMap:r=new Map}=e;const o=lr(),s=(0,m.Zp)(),d=or(),c=(0,hn.orderBy)(t,[e=>e.title.toLowerCase()],"asc"),{subscriptions:u,bundleShow:p,bundleHidden:f,mandatoryBundleId:y}=a,g=(0,hn.keyBy)(p),h=(0,hn.keyBy)(f),x=e=>{i({type:"bundleShow",courseId:e.target.name,subscriptions:u,bundleShow:p,bundleHidden:f,mandatoryBundleId:y})},T=e=>{i({type:"bundleHidden",courseId:e.target.name,subscriptions:u,bundleShow:p,bundleHidden:f,mandatoryBundleId:y})},b=e=>{l({courseId:e.target.name,subscriptions:u,bundleShow:p,bundleHidden:f,mandatoryBundleId:y})},v=o.licenceService.assignLicence;return c&&c.length?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(OL,{name:`account-row--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0}),(0,fe.jsx)(FL,{minWidth:"100px",children:(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:"MANDATORY"})}),(0,fe.jsx)(FL,{minWidth:"85px",children:(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:"HIDE"})}),(0,fe.jsx)(FL,{minWidth:"50px",children:(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:"SHOW"})})]}),c.map(e=>(0,fe.jsxs)(OL,{name:`account-row--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(EL,{name:`account-row__profile-picture--${n}`,size:"xs",accountName:"B",color:"secondary"}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${n}`,size:"md",children:e.title})}),v&&(0,fe.jsx)(FL,{minWidth:"150px",children:(0,fe.jsx)(ie.$n,{onClick:()=>{const t=ha(`/${d.configuration.root}/${d.configuration.menu.learn.assignLicense}`,{productId:e.id,productType:"bundle",accountId:n});s(t)},size:"sm",children:(0,fe.jsx)(Wg,{id:e.id,licencesCountMap:r})})}),(0,fe.jsx)(FL,{minWidth:"85px",children:(0,fe.jsx)(PL,{children:(0,fe.jsx)(ie.Sc,{id:`update-subscription-${e.id}`,name:e.id,onChange:b,checked:y===e.id,disabled:y&&y!==e.id})})}),(0,fe.jsx)(FL,{minWidth:"85px",children:(0,fe.jsx)(PL,{children:(0,fe.jsx)(ie.Sc,{id:`update-subscription-${e.id}`,name:e.id,onChange:T,checked:h.hasOwnProperty(e.id)})})}),(0,fe.jsx)(FL,{minWidth:"50px",children:(0,fe.jsx)(PL,{children:(0,fe.jsx)(ie.Sc,{id:`update-subscription-${e.id}`,name:e.id,onChange:x,checked:g.hasOwnProperty(e.id),color:"purple"})})})]},e.id)),(0,fe.jsx)(_L,{})]}):null},UL=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,$L=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,ML=(0,le.default)(ie.fv)`
  min-width: 50px;
  text-align: center;
  & div {
    display: inline-block;
  }
`,VL=(0,le.default)(ie.fv)`
  min-width: 170px;
`,GL=(0,le.default)(ie.fv)`
  min-width: 150px;
`,zL=e=>{let{id:n,onCheckboxClick:t,disabledCheckbox:a,checked:i}=e;return a?(0,fe.jsx)(PL,{children:(0,fe.jsx)(ie.Sc,{id:`update-subscription-${n}`,name:n,onChange:t,checked:a||i,disabled:a})}):(0,fe.jsx)(ie.Sc,{id:`update-subscription-${n}`,name:n,onChange:t,checked:a||i,disabled:a})},WL=e=>{const{courseName:n,accountId:t,id:a,onCheckboxClick:i,checked:l,disabledCheckbox:r,hideProfile:o,permissions:s,licencesCountMap:d=new Map}=e,c=or(),u=(0,m.Zp)(),p=s.licenceService.assignLicence;return(0,fe.jsxs)(UL,{name:`account-row--${t}`,container:!0,itemAlign:"center",children:[!o&&(0,fe.jsx)($L,{name:`account-row__profile-picture--${t}`,size:"xs",accountName:n}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${t}`,size:"md",children:n})}),p&&(0,fe.jsx)(GL,{children:(0,fe.jsx)(ie.$n,{size:"sm",onClick:()=>{const e=ha(`/${c.configuration.root}/${c.configuration.menu.learn.assignLicense}`,{productId:a,accountId:t,productType:"course"});u(e)},children:(0,fe.jsx)(Wg,{id:a,licencesCountMap:d})})}),(0,fe.jsx)(VL,{}),(0,fe.jsx)(ML,{children:(0,fe.jsx)(zL,{id:a,onCheckboxClick:i,disabledCheckbox:r,checked:l})})]},a)},qL=e=>{let{courses:n,getAllLearnSubscriptions:t,onClickCourses:a,accountId:i,getAllLearnBundles:l,licencesCountMap:r=new Map}=e;const{subscriptions:o,bundleShow:s,bundleHidden:d}=t||{subscriptions:[],bundleShow:[],bundleHidden:[]},c=lr(),u=(0,hn.keyBy)(o),p=(0,hn.keyBy)([...s,...d]),m=l.filter(e=>p.hasOwnProperty(e.id)).reduce((e,n)=>{let{courses:t}=n;return e.concat(t)},[]),f=(0,hn.keyBy)(m),y=n.map(e=>({...e,checked:u.hasOwnProperty(e.id)})),g=e=>{a({courseId:e.target.name,subscriptions:o,bundleShow:s,bundleHidden:d})};return(0,fe.jsx)(fe.Fragment,{children:(0,hn.orderBy)(y,[e=>e.name.toLowerCase()],"asc").map(e=>(0,fe.jsx)(WL,{permissions:c,licencesCountMap:r,id:e.id,courseName:e.name,accountId:i,onCheckboxClick:g,checked:e.checked,disabledCheckbox:f.hasOwnProperty(e.id)},e.id))})},JL=S.J1`
  query GetAccountInfo($id: ID!) {
    getAccountInfo(id: $id) {
      id
      name
      accessControls {
        learn
        intelligence
        v2Design
        comply {
          legislation
          tagLevelLegislation
          policies
          systems
          targets
          frameworks
          agreements
        }
        data {
          waste
          electricity
          gas
          water
          materials
          fuel
          transport
          refrigerants
          heatSteam
          oilAndGas
          coreEstate
        }
      }
    }
  }
`,YL=(S.J1`
  query GetAllLearnSubscriptions($accountId: String!) {
    getAllLearnSubscriptions(accountId: $accountId) {
      subscriptions
      bundleShow
      bundleHidden
      mandatoryBundleId
    }
  }
`,S.J1`
  mutation SaveLearnSubscriptions(
    $accountId: String!
    $subscriptions: [String!]!
    $bundleShow: [String!]!
    $bundleHidden: [String!]!
    $mandatoryBundleId: String
  ) {
    saveLearnSubscriptions(
      input: {
        accountId: $accountId
        subscriptions: $subscriptions
        bundleShow: $bundleShow
        bundleHidden: $bundleHidden
        mandatoryBundleId: $mandatoryBundleId
      }
    ) {
      subscriptions
      bundleShow
      bundleHidden
      mandatoryBundleId
    }
  }
`),HL=S.J1`
  fragment PaginatedCoursesFields on PaginatedCourses {
    isLastPage
    totalItemCount
    data {
      id
      name
      type
      metaData {
        viewed
        link
        thumbnail
      }
    }
  }
`,KL=S.J1`
  query GetAllSubscriptionInfo($accountId: String!) {
    getAllLearnBundles {
      id
      title
      description
      restricted
      startDate
      endDate
      courses
    }

    getAllLearnSubscriptions(accountId: $accountId) {
      subscriptions
      bundleShow
      bundleHidden
      mandatoryBundleId
    }

    courses: getAllCourses {
      ...PaginatedCoursesFields
    }
  }
  ${HL}
`,QL=S.J1`
  query GetAvailableSubscriptionInfo($accountId: String!, $userId: ID!) {
    getAllLearnBundles {
      id
      title
      description
      restricted
      startDate
      endDate
      courses
    }

    getAllLearnSubscriptions(accountId: $accountId) {
      subscriptions
      bundleShow
      bundleHidden
      mandatoryBundleId
    }

    courses: getAvailableCourses(accountId: $accountId, userId: $userId, ownedCourses: true, pageNumber: 1) {
      ...PaginatedCoursesFields
    }
  }
  ${HL}
`,ZL=S.J1`
  query GetUserInfoByAccountId($accountId: String!, $limit: Int!, $paginationToken: String) {
    getUserInfoByAccountId(accountId: $accountId, limit: $limit, paginationToken: $paginationToken) {
      paginationToken
      users {
        id
        email
        first_name
        last_name
        username
        last_active_at
        total_time_spent_ms
        roles
        role {
          role
          name
        }
      }
    }
  }
`,XL=S.J1`
  query GetCourseById($id: ID!, $accountId: ID!) {
    getCourseById(id: $id, accountId: $accountId) {
      name
      id
    }
  }
`,eI=S.J1`
  query GetExclusionsForAccount($id: ID!) {
    getExclusionsByAccountId(id: $id) {
      userId
      exclusions
    }
  }
`,nI=S.J1`
  mutation SaveUserExclusion($userId: ID!, $accountId: ID!, $exclusions: [String!]!) {
    saveUserExclusion(input: { userId: $userId, accountId: $accountId, exclusions: $exclusions }) {
      userId
      accountId
      exclusions
    }
  }
`,tI=S.J1`
  mutation BulkUpdateExclusions(
    $courseId: ID!
    $accountId: ID!
    $userIds: [String!]!
    $operation: BulkUpdateExclusionOperation!
  ) {
    bulkUpdateExclusions(
      input: { userIds: $userIds, courseId: $courseId, accountId: $accountId, operation: $operation }
    )
  }
`,aI=(e,n,t)=>{if(!n)return e;const a=new pd.vj("id");return a.addIndex(t),a.addDocuments(e),a.search(n)},iI=e=>{let{accountId:n,title:t,allSubscriptionInfo:a,licencesCountMap:i=new Map}=e;const[l,r]=(0,g.useState)(a),[o,s]=(0,g.useState)(""),[d]=(0,ln.n)(YL),c=(0,C.m)(),u=aI(l.courses.data,o,"name"),p=aI(l.getAllLearnBundles,o,"title");return(0,g.useEffect)(()=>()=>{c.writeQuery({query:KL,variables:{accountId:n},data:l})}),(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationLearnSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:t,children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationLearnSubscriptionsContainer__Controls__Search",value:o,onChange:e=>{s(e.target.value)},hideButton:!0})})}),u.length||p.length?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(BL,{licencesCountMap:i,accountId:n,bundle:p,getAllLearnSubscriptions:l.getAllLearnSubscriptions,onClickBundle:e=>{let{type:t,courseId:a,subscriptions:i,bundleShow:o,bundleHidden:s}=e,[c,u]=[[...o],[...s]];"bundleShow"===t?u=s.filter(e=>e!==a):"bundleHidden"===t&&(c=c.filter(e=>e!==a));const p="bundleShow"===t?c:u;if(p.includes(a)){const e=p.findIndex(e=>e===a);p.splice(e,1)}else p.push(a);const m={...l,getAllLearnSubscriptions:{...l.getAllLearnSubscriptions,subscriptions:i,bundleShow:c,bundleHidden:u}};d({variables:{...m.getAllLearnSubscriptions,accountId:n}}),r(m)},onClickMandatory:e=>{let{courseId:t,subscriptions:a,bundleShow:i,bundleHidden:o,mandatoryBundleId:s}=e;const c={...l,getAllLearnSubscriptions:{...l.getAllLearnSubscriptions,subscriptions:a,bundleShow:i,bundleHidden:o,mandatoryBundleId:s?void 0:t}};d({variables:{...c.getAllLearnSubscriptions,accountId:n}}),r(c)}}),(0,fe.jsx)(qL,{licencesCountMap:i,courses:u,accountId:n,getAllLearnSubscriptions:l.getAllLearnSubscriptions,getAllLearnBundles:l.getAllLearnBundles,onClickCourses:e=>{let{courseId:t,subscriptions:a,bundleShow:i,bundleHidden:o}=e,s=[...a];s.includes(t)?s=s.filter(e=>e!==t):s.push(t);const c={...l,getAllLearnSubscriptions:{...l.getAllLearnSubscriptions,subscriptions:s,bundleShow:i,bundleHidden:o}};d({variables:{...c.getAllLearnSubscriptions,accountId:n}}),r(c)}})]}):(0,fe.jsx)(Fu,{name:"ConfigurationUsersContainer__NoResults",title:"There are no results for this search."})]})})},lI=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
`,rI=e=>{let{title:n,accountId:t}=e;const a=Bl(),{role:i}=lr(),l="SYSADMIN"===i,{loading:r,error:o,data:s,refetch:d}=(0,x.IT)(l?KL:QL,{variables:{accountId:t,userId:a}}),{productLicences:c=[],loading:u}=xr(t),p=new Map(c.map(e=>{let{productId:n,count:t}=e;return[n,t]})),m=u||r;return s&&!o?(0,fe.jsx)(iI,{accountId:t,licencesCountMap:p,allSubscriptionInfo:s,title:n}):(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationLearnSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:n,children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationLearnSubscriptionsContainer__Controls__Search",hideButton:!0})})}),m?(0,fe.jsx)(lI,{children:(0,fe.jsx)(ie.Ip,{size:"md"})}):o?(0,fe.jsx)(ie.Kw,{error:o,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationLearnSubscriptionsContainer__Error",icon:a,title:n,body:t,retry:d})}}):null]})},oI=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
`,sI=e=>{let{title:n,courseId:t,accountId:a}=e;const[i,l]=(0,g.useState)({}),[r,o]=(0,g.useState)(!1),[s]=(0,ln.n)(tI),{loading:d,error:c,data:u,refetch:p}=(0,x.IT)(ZL,{variables:{accountId:a,limit:999}}),{loading:m,error:f,data:y}=(0,x.IT)(eI,{variables:{id:a},fetchPolicy:"network-only"}),h=u&&y&&!d&&!m,[T,b,v]=fd(u?.getUserInfoByAccountId.users||[],["first_name","last_name"]);(0,g.useEffect)(()=>{if(!m&&y){const e=hn.keyBy(y?.getExclusionsByAccountId,"userId"),n=!!y?.getExclusionsByAccountId.filter(e=>e.exclusions.includes(t)).length;l(e),o(!n)}},[m,y,t]);const[C]=(0,ln.n)(nI);return(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationLearnSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:n,children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationLearnSubscriptionsContainer__Controls__Search",hideButton:!0,onChange:e=>b(e.target.value),value:T})})}),d||m?(0,fe.jsx)(oI,{children:(0,fe.jsx)(ie.Ip,{size:"md"})}):c||f?(0,fe.jsx)(ie.Kw,{error:c,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationLearnSubscriptionsContainer__Error",icon:a,title:n,body:t,retry:p})}}):null,h&&(0,fe.jsx)(WL,{hideProfile:!0,id:"ToggleAllUserExclusions",courseName:"Add/Remove All Users",onCheckboxClick:()=>(e=>{const n={...i},r=u.getUserInfoByAccountId.users.map(e=>e.id);r.forEach(a=>{const i=n[a]||{exclusions:[]};n[a]=e?{exclusions:[...new Set([...i.exclusions.filter(e=>e!==t)])]}:{exclusions:[...new Set([...i.exclusions,t])]}}),l(n),o(e),s({variables:{userIds:r,accountId:a,courseId:t,operation:e?"REMOVE":"ADD"}})})(!r),checked:r}),h&&v.map(e=>{const n=!i[e.id]||!i[e.id].exclusions.includes(t);return(0,fe.jsx)(WL,{id:t,courseName:`${e.first_name} ${e.last_name}`,accountId:a,onCheckboxClick:()=>(e=>{const n=i[e]?.exclusions||[];let r;r=n.includes(t)?n.filter(e=>e!==t):[...n,t],C({variables:{userId:e,accountId:a,exclusions:r}});const s={...i,[e]:{exclusions:r}};o(!Object.keys(s).filter(e=>!!s[e]&&s[e].exclusions.includes(t)).length),l(s)})(e.id),checked:n},e.id)})]})},dI=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
`,cI=()=>{const e=Je(),n=(0,m.g)(),{isSystemAdmin:t}=lr(),{data:a,loading:i}=(0,x.IT)(t?JL:XL,{variables:{id:n.accountId,accountId:e}});return(0,fe.jsxs)(fe.Fragment,{children:[i&&(0,fe.jsx)(dI,{children:(0,fe.jsx)(ie.Ip,{size:"md"})}),!i&&a&&t&&(0,fe.jsx)(rI,{accountId:n.accountId,title:`Learn Subscriptions - ${a.getAccountInfo.name}`}),!i&&a&&!t&&(0,fe.jsx)(sI,{courseId:a.getCourseById.id,accountId:e,title:`Learn Subscriptions - ${a.getCourseById.name}`})]})};var uI=t(52269);const pI=S.J1`
  fragment SupplierFields on Supplier {
    name
    id
    accountId
    utility
    type
    materials {
      id
      name
    }
    notes
    address {
      id
      address1
      address2
      address3
      city
      phone1
      postcode
      country {
        alpha2Code
        name
        id
      }
    }
  }
`,mI=S.J1`
  query GetSuppliers(
    $page: Int!
    $pageSize: Int!
    $filterValue: String
    $orderDir: String
    $filterBy: String
    $accountId: ID!
    $utility: TransactionType
    $withWasteCarrierLicence: Boolean = false
  ) {
    getSuppliers(
      accountId: $accountId
      page: $page
      pageSize: $pageSize
      filterValue: $filterValue
      filterExpression: EQUAL
      orderDir: $orderDir
      filterBy: $filterBy
      utility: $utility
    ) {
      count
      hasNextPage
      hasPreviousPage
      isFirstPage
      isLastPage
      pageCount
      totalItemCount
      page
      pageSize
      suppliers {
        ...SupplierFields
        wasteCarrierLicenceDocument @include(if: $withWasteCarrierLicence) {
          id
          referenceId
        }
      }
    }
  }
  ${pI}
`,fI=S.J1`
  mutation CreateSupplier(
    $id: ID!
    $name: String!
    $addressId: ID!
    $add1: String
    $add2: String
    $add3: String
    $city: String!
    $post: String!
    $phone: String
    $accountId: ID!
    $countryId: ID!
    $utility: TransactionType!
    $type: [String!]!
    $materialIds: [ID!]
    $notes: String
  ) {
    createAddress(
      input: {
        id: $addressId
        address1: $add1
        address2: $add2
        address3: $add3
        city: $city
        postcode: $post
        coordinates: null
        phone1: $phone
        countryId: $countryId
      }
    ) {
      id
    }
    createSupplier(
      input: {
        id: $id
        name: $name
        addressId: $addressId
        accountId: $accountId
        utility: $utility
        type: $type
        materialIds: $materialIds
        notes: $notes
      }
    ) {
      ...SupplierFields
    }
  }
  ${pI}
`,yI=S.J1`
  mutation UpdateSupplier(
    $id: ID!
    $name: String!
    $addressId: ID!
    $add1: String
    $add2: String
    $add3: String
    $city: String!
    $post: String!
    $phone: String
    $accountId: ID!
    $countryId: ID!
    $utility: TransactionType!
    $type: [String!]!
    $materialIds: [ID!]
    $notes: String
  ) {
    updateAddress(
      input: {
        id: $addressId
        address1: $add1
        address2: $add2
        address3: $add3
        city: $city
        postcode: $post
        coordinates: null
        phone1: $phone
        countryId: $countryId
      }
    ) {
      id
    }
    updateSupplier(
      input: {
        id: $id
        name: $name
        addressId: $addressId
        accountId: $accountId
        utility: $utility
        type: $type
        materialIds: $materialIds
        notes: $notes
      }
    ) {
      ...SupplierFields
    }
  }
  ${pI}
`,gI=S.J1`
  mutation UpdateSupplierAndCreateAddress(
    $id: ID!
    $name: String!
    $addressId: ID!
    $add1: String
    $add2: String
    $add3: String
    $city: String!
    $post: String!
    $phone: String
    $accountId: ID!
    $countryId: ID!
    $utility: TransactionType!
    $type: [String!]!
    $materialIds: [ID!]
    $notes: String
  ) {
    createAddress(
      input: {
        id: $addressId
        address1: $add1
        address2: $add2
        address3: $add3
        city: $city
        postcode: $post
        coordinates: null
        phone1: $phone
        countryId: $countryId
      }
    ) {
      id
    }
    updateSupplier(
      input: {
        id: $id
        name: $name
        addressId: $addressId
        accountId: $accountId
        utility: $utility
        type: $type
        materialIds: $materialIds
        notes: $notes
      }
    ) {
      ...SupplierFields
    }
  }
  ${pI}
`,hI=S.J1`
  {
    suppliersGridPage @client
  }
`,xI=S.J1`
  {
    suppliersGridTotalPages @client
  }
`,TI=S.J1`
  mutation SetSuppliersGridPage($page: Int!) {
    setSuppliersGridPage(page: $page) @client
  }
`,bI=(S.J1`
  mutation SetSuppliersGridTotalPages($totalPages: Int!) {
    suppliersGridTotalPages(totalPages: $totalPages) @client
  }
`,S.J1`
  {
    suppliersGridSearch @client
  }
`),vI=S.J1`
  mutation SetSuppliersGridSearch($search: String!) {
    setSuppliersGridSearch(search: $search) @client
  }
`,CI=S.J1`
  query GetAllSupplierIds($accountId: ID!, $offset: Int, $limit: Int) {
    getSuppliersPage(accountId: $accountId, offset: $offset, limit: $limit) {
      totalRows
      rows {
        id
      }
    }
  }
`,kI=S.J1`
  mutation UpsertSuppliers($accountId: ID!, $suppliers: [UpsertSuppliersInput!]!) {
    upsertSuppliers(accountId: $accountId, suppliers: $suppliers)
  }
`,SI=(0,le.default)(ie.fv)`
  flex: ${e=>e.span};
  padding: ${e=>e.theme.geometry.md.profile.padding};
`,NI=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing} ${e.theme.geometry.md.spacing}`};
`,AI=e=>[{field:"name",name:"Name",width:4},{field:"address",name:"Address",width:4},...e===gn.D_.Materials?[{field:"material",name:"Materials",width:3}]:[],{field:"type",name:"Type",width:3},{field:"level",name:"Level",width:2},...e===gn.D_.Waste?[{field:"wasteCarrierLicenceDocument",name:"Carrier Licence",width:3}]:[],{field:null,name:null,width:1}],RI=(0,le.default)(NI)`
  flex: 0 0 auto;
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  opacity: 0.7;
  transition: all 0.2s ease-in;

  &:hover {
    opacity: 1;
  }

  &:hover .slide-in-animation {
    transform: translateX(25px);
  }
`,DI=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: ${e=>`${e.theme.geometry.md.spacing} ${e.theme.geometry.sm.spacing}`};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
  }
`,LI=(0,le.default)(ie.EY)({textDecoration:"underline",wordBreak:"break-all"}),II=le.default.a`
  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
  }
`,jI=e=>{let{onEdit:n,supplier:t}=e;const{supplierId:a,name:i,type:l,address:r,utility:o,materials:s,accountId:d,wasteCarrierLicenceDocument:c}=t,u=r?r.phone1:null,m=AI(o),f=Je(),y=ec("data")("createSupplier")&&d===f,h=(e=>(0,g.useMemo)(()=>{const n=AI(e);return new Map(n.map(e=>[e.field,e]))},[e]))(o),x=h.get("wasteCarrierLicenceDocument"),T=h.get("level");return(0,fe.jsxs)(RI,{container:!0,name:`supplier-row--${a}`,children:[(0,fe.jsx)(SI,{container:!0,vdistribution:"center",item:!0,span:m[0].width,children:(0,fe.jsx)(ie.EY,{size:"md",children:i})}),(0,fe.jsx)(SI,{container:!0,item:!0,inline:!0,span:m[1].width,children:r&&(0,fe.jsxs)(SI,{supplierId:a,inline:!0,children:[(0,fe.jsx)(ie.EY,{name:`supplierRow__addressLine1--${a}`,size:"md",children:r.address1}),(0,fe.jsx)(ie.EY,{name:`supplierRow__addressLine2--${a}`,size:"md",children:r.address2}),(0,fe.jsx)(ie.EY,{name:`supplierRow__addressLine3--${a}`,size:"md",children:r.address3}),(0,fe.jsx)(ie.EY,{name:`supplierRow__addressCity--${a}`,size:"md",children:r.city}),(0,fe.jsx)(ie.EY,{name:`supplierRow__addressPostcode--${a}`,size:"md",children:r.postcode}),(0,fe.jsx)(ie.EY,{name:`supplierRow__addressPostcode--${a}`,size:"md",children:r.country.name}),u&&(0,fe.jsx)(ie.EY,{children:(0,fe.jsx)(II,{name:`supplier-row__phoneNumber--${a}`,size:"md",href:`tel:${u}`,children:u})})]})}),(0,fe.jsx)(SI,{vdistribution:"center",span:m[2].width,container:!0,item:!0,children:o===gn.D_.Materials?s?.map(e=>{let{name:n}=e;return n}).join(", "):l.join(", ")}),o===gn.D_.Materials&&(0,fe.jsx)(SI,{vdistribution:"center",span:m[3].width,container:!0,item:!0,children:l.join(", ")}),(0,fe.jsx)(SI,{vdistribution:"center",span:T.width,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{name:`supplierRow__supplierScope--${a}`,size:"md",children:Boolean(d)?"Account":"Global"})}),x&&(0,fe.jsx)(SI,{vdistribution:"center",span:x.width,container:!0,item:!0,children:(0,fe.jsx)(LI,{children:c&&(0,fe.jsx)(p.Link,{to:`/documents/all/${c.id}`,children:c.referenceId})})}),(0,fe.jsx)(SI,{vdistribution:"center",span:m[m.length-1].width,container:!0,item:!0,children:y&&(0,fe.jsx)(DI,{onClick:n,children:(0,fe.jsx)(ie.In,{name:`supplierRow__edit--${a}`,icon:"pencil-alt"})})})]})},wI=(0,le.default)(ie.fI)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
  padding-right: ${e=>e.theme.geometry.sm.spacing};
`,OI=(0,le.default)(ie.JU)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,EI=(0,le.default)(ie.JU)`
  cursor: pointer;
`,_I=(0,le.default)(ie.Sc)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,FI=(0,le.default)(ie.fv)`
  max-height: 100px;
  flex-wrap: wrap;
  flex: 1;
`,PI=(0,le.default)(ie.fI)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,BI=(0,le.default)(ie.EY)`
  color: ${e=>e.theme.colors.danger.normal.background};
  font-size: 14px;
  line-height: 1.4em;
  font-weight: 600;
`,UI={WASTE:["Supplier","Carrier","Contractor"],ELECTRICITY:["Supplier","Broker","Contractor"],GAS:["Supplier","Broker","Contractor"],WATER:["Supplier","Contractor"],TRANSPORT:["Supplier","Haulier","Contractor"],MATERIALS:["Supplier","Subcontractor"],HOTELSTAYS:["Supplier"],FUEL:["Supplier"]},$I=e=>{let{onChange:n,error:t,utility:a,defaultSelected:i=[]}=e;const l={};UI[a].forEach(e=>{l[e]=i.includes(e)});const[r,o]=(0,g.useState)(l);return UI[a].length?(0,fe.jsxs)(ie.fv,{container:!0,children:[(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(OI,{children:"Type"})}),t&&(0,fe.jsx)(PI,{children:(0,fe.jsx)(BI,{children:t})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(FI,{container:!0,children:Object.keys(l).map(e=>{const t=()=>{const t={...r,[e]:!r[e]};o(t);const a=Object.keys(r).filter(e=>t[e]);n(a)};return(0,fe.jsxs)(wI,{container:!0,children:[(0,fe.jsx)(_I,{name:e,size:"md",checked:r[e],onChange:t}),(0,fe.jsx)(EI,{onClick:t,children:e})]},e)})})})]}):null},MI=e=>!e||""===e.trim(),VI=(e,n)=>{let t=!0;const{supplierName:a,address1:i,city:l,postcode:r,phone:o,type:s}=Ta()(e),d=n?.alpha2Code.toUpperCase(),c=Rh.isPostalCodeLocales.includes(d);return MI(a.text)&&(t=!1,e.supplierName.error="Supplier Name is required"),MI(i.text)&&(t=!1,e.address1.error="Address 1 is required"),MI(l.text)&&(t=!1,e.city.error="City is required"),MI(r.text)?(t=!1,e.postcode.error="Postcode is required"):c&&!(0,Rh.isPostalCode)(r.text,d)&&(t=!1,e.postcode.error="Invalid postcode"),MI(o.text)||Xb(o.text)||(t=!1,e.phone.error="Invalid phone number"),s.value.length||(t=!1,e.type.error="At least one supplier type should be selected"),[e,t]},GI=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
`,zI=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,WI=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,qI=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,JI=e=>{let{onSuccess:n,accountId:t,refetchQuery:a,utility:i,heading:l,defaultTypes:r=[],forType:o,materialTypesOptions:s}=e;const d=lr(),{countryList:c,defaultCountry:u,allCountries:p}=Bo(),[m,f]=(0,g.useState)({hasError:!1,isSuccess:!1,notification:{show:!1,message:"",color:"success"},supplierName:{text:"",error:""},address1:{text:"",error:""},address2:{text:"",error:""},address3:{text:"",error:""},city:{text:"",error:""},postcode:{text:"",error:""},phone:{text:"",error:""},selectCountry:null,materials:null,notes:null,type:{value:o?[o]:r,error:""},accountId:t}),[y,h]=(0,g.useState)(!1),[x]=(0,ln.n)(fI,{refetchQueries:a,onError:e=>{h(!1),e.graphQLErrors&&e.graphQLErrors[0]&&400===e.graphQLErrors[0].errorType?f({...m,notification:{show:!0,message:"Supplier name must be unique.",color:"danger"},hasError:!0,isSuccess:!1}):f({...m,notification:{show:!0,message:"Something went wrong. If the problem continues please contact support.",color:"danger"},hasError:!0,isSuccess:!1})},onCompleted:e=>{h(!0),f({...m,hasError:!1,isSuccess:!0}),n("Supplier has been created!","success",e.createSupplier.id,e.createSupplier)}}),T=e=>f({...m,[e.target.name]:{text:e.target.value,error:""}}),{notification:b,supplierName:v,address1:C,address2:k,address3:S,city:N,postcode:A,phone:R,selectCountry:D}=m;return(0,fe.jsxs)(GI,{name:"create-supplier",children:[m.notification.show&&(0,fe.jsx)(ie.Eg,{name:"create-supplier__notification",show:!0,color:b.color,onClose:()=>{f({...m,notification:{...m.notification,show:!1}})},children:b.message}),(0,fe.jsxs)(ie.hh,{id:"createSupplier--propertySheet",children:[(0,fe.jsx)(ie.hh.HeaderRow,{name:"createSupplier--header",children:l}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextInputColumn,{name:"supplier--name",onChange:e=>{const n=e.target.value,t=n?"":m.supplierName.error;f({...m,supplierName:{...m.supplierName,text:n,error:t}})},label:"Supplier Name",value:v.text,error:v.error})}),(0,fe.jsx)(av,{id:"SupplierAddressPropertySheet",name:"SupplierAddressPropertySheet",address1:C,address2:k,address3:S,city:N,postcode:A,phone:R,handleChange:T,handleSelectChange:e=>{f(n=>({...n,[e.target.name]:{value:e.target.select.value,label:e.target.select.label}}))},disabled:y,countryList:c||[],selectCountry:D||u}),d.account.includes("getAll")&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(qI,{item:!0,children:[(0,fe.jsx)(WI,{children:(0,fe.jsx)(zI,{children:"Account"})}),(0,fe.jsx)(wu,{value:m.accountId,onChange:e=>{let{id:n}=e;f(e=>({...e,accountId:n}))}})]})}),!o&&(0,fe.jsx)($I,{utility:i,error:m.type.error,defaultSelected:r,onChange:e=>f({...m,type:{value:e,error:""}})}),i===gn.D_.Materials&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(qI,{item:!0,children:[(0,fe.jsx)(WI,{children:(0,fe.jsx)(zI,{children:"Material Supplied"})}),(0,fe.jsx)(ie.KF,{value:m.materials,options:s,isDisabled:y,onChange:e=>f(n=>({...n,materials:e.target.select})),multi:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(qI,{item:!0,children:[(0,fe.jsx)(WI,{children:(0,fe.jsx)(zI,{children:"Notes"})}),(0,fe.jsx)(ie.fs,{size:"lg",disabled:y,onChange:e=>T(e),name:"notes",value:m.notes?.text,box:!0})]})})]}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.ButtonColumn,{name:"createSupplier",onClick:()=>(()=>{const{supplierName:e,address1:n,address2:t,address3:a,city:l,postcode:r,phone:o,selectCountry:s,type:d,materials:c,notes:y}=m,g=s?.value||u.value,h={utility:i,countryId:g,id:(0,Wa.A)(),name:e.text,addressId:(0,Wa.A)(),add1:n.text||"",add2:t.text||"",add3:a.text||"",city:l.text,post:r.text,phone:o.text?o.text.trim():"",type:d.value,accountId:m.accountId,materialIds:c?.map(e=>{let{value:n}=e;return n}),notes:y?.text,isGlobal:!1},[T,b]=VI(m,p.find(e=>e.id===g));b?x({variables:h}):f({...T})})(),disabled:y,children:"Save"})})]})]})},YI=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
`,HI=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,KI=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,QI=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,ZI=e=>{let{defaultCountry:n,onDismiss:t,countryList:a,accountId:i,supplierId:l,supplierName:r,addressId:o,address1:s,address2:d,address3:c,city:u,postcode:p,phone:m,utility:f,type:y,heading:h,allCountries:x,materials:T,notes:b,materialTypesOptions:v}=e;const[C,k]=(0,g.useState)({hasError:!1,isSuccess:!1,notification:{show:!1,message:"",color:"success"},supplierId:{value:l},supplierName:{text:r,error:""},addressId:{value:o},address1:{text:s||"",error:""},address2:{text:d||"",error:""},address3:{text:c||"",error:""},city:{text:u,error:""},postcode:{text:p,error:""},phone:{text:m||"",error:""},options:[],selectCountry:{value:n?.value,label:n?.label},materials:T?.map(e=>{let{id:n,name:t}=e;return{label:t,value:n}}),notes:{text:b||"",error:""},type:{value:y,error:""}}),[S,N]=(0,g.useState)(!1),[A]=(0,ln.n)(o?yI:gI,{onError:()=>{N(!1),k({...C,notification:{show:!0,message:"Something went wrong. If the problem continues please contact support.",color:"danger"},hasError:!0,isSuccess:!1})},onCompleted:()=>{N(!1),t({show:!1,message:"Supplier has been updated!",color:"success"})}}),R=e=>k({...C,[e.target.name]:{text:e.target.value,error:""}});return(0,fe.jsxs)(YI,{name:"update-supplier",children:[C.notification.show&&(0,fe.jsx)(ie.Eg,{name:"update-supplier__notification",show:!0,color:C.notification.color,onClose:()=>{k({...C,notification:{...C.notification,show:!1}})},children:C.notification.message}),(0,fe.jsxs)(ie.hh,{id:"PropertySheet",children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:h}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextInputColumn,{name:"supplier--name",onChange:e=>{const n=e.target.value;k({...C,supplierName:{...C.supplierName,text:n}})},label:"Supplier Name",value:C.supplierName.text})}),(0,fe.jsx)(av,{id:"SupplierAddressPropertySheet",name:"SupplierAddressPropertySheet",address1:C.address1,address2:C.address2,address3:C.address3,city:C.city,postcode:C.postcode,phone:C.phone,handleChange:R,handleSelectChange:e=>{k(n=>({...n,[e.target.name]:{value:e.target.select.value,label:e.target.select.label}}))},countryList:a,selectCountry:C.selectCountry}),(0,fe.jsx)($I,{utility:f,error:C.type.error,defaultSelected:C.type.value,onChange:e=>{k({...C,type:{value:e,error:""}})}}),f===gn.D_.Materials&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(QI,{item:!0,children:[(0,fe.jsx)(KI,{children:(0,fe.jsx)(HI,{children:"Material Supplied"})}),(0,fe.jsx)(ie.KF,{value:C.materials,options:v,isDisabled:S,onChange:e=>k(n=>({...n,materials:e.target.select})),multi:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(QI,{item:!0,children:[(0,fe.jsx)(KI,{children:(0,fe.jsx)(HI,{children:"Notes"})}),(0,fe.jsx)(ie.fs,{size:"lg",disabled:S,onChange:e=>R(e),name:"notes",value:C.notes?.text,box:!0})]})})]}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.ButtonColumn,{name:"updateSupplier",onClick:()=>{const e=C.selectCountry?.value||n?.value,[t,a]=VI(C,x.find(n=>n.id===e));if(a){const{supplierId:e,supplierName:n,addressId:t,address1:a,address2:l,address3:r,city:o,postcode:s,phone:d,selectCountry:c,type:u}=C;N(!0),A({variables:{utility:f,accountId:i,id:e.value,name:n.text,addressId:t.value||(0,Wa.A)(),add1:a.text||"",add2:l.text||"",add3:r.text||"",city:o.text,post:s.text,phone:d.text?d.text.trim():"",countryId:c.value,type:u.value,materialIds:C.materials?.map(e=>{let{value:n}=e;return n}),notes:C.notes?.text}})}else k({...t})},disabled:S,children:"Update"})})]})]})},XI=S.J1`
  query GetSupplierSelectOptions($accountId: ID!) {
    getAllCountries {
      value: id
      label: name
    }
    getMaterialsByAccountID(accountId: $accountId) {
      value: id
      label: name
    }
  }
`,ej={countryId:"getAllCountries"},nj=[{key:"id",type:"string",label:"ID",description:"Rio ID. Enter it if you want to update existing supplier. Example value: 5a72c22b-6c56-4eb1-802c-b26d91e7953b"},{key:"name",type:"string",label:"Name",description:"Name of the supplier",validators:[{validate:"unique_case_insensitive"},{validate:"required"}]},{key:"address1",type:"string",label:"Address 1",validators:[{validate:"required"}],description:"First line of the address"},{key:"address2",type:"string",label:"Address 2",validators:[],description:"Address 2 (optional)"},{key:"address3",type:"string",label:"Address 3",validators:[],description:"Address 3 (optional)"},{key:"city",type:"string",label:"City",description:"City",validators:[{validate:"required"}]},{key:"postCode",type:"string",label:"Postcode",description:"Postcode",validators:[{validate:"required"}]},{key:"phone1",type:"string",label:"Phone",description:"Phone number (optional)"},{key:"countryId",type:"select",label:"Country",selectOptions:[],description:"Country",validators:[{errorMessage:"Please ensure you have selected a country for your suppliers",validate:"required"}]},{key:"utility",type:"select",label:"Utility",selectOptions:[{value:"WASTE",label:"Waste"},{value:"ELECTRICITY",label:"Electricity"},{value:"GAS",label:"Gas"},{value:"WATER",label:"Water"},{value:"FUEL",label:"Fuel"},{value:"TRANSPORT",label:"Transport"},{value:"MATERIALS",label:"Materials"},{value:"HOTELSTAYS",label:"Hotel Stays"}],description:"Utility type",validators:[{validate:"required"}]},{key:"type",type:"string",label:"Supplier Types",description:"Enter supplier types separated by commas (e.g., Supplier, Contractor, Carrier)",validators:[{validate:"required"}]},{key:"notes",type:"string",label:"Notes",description:"Enter notes (optional)"}];const tj=t.p+"suppliers_template-191ae864c44a69e5456b.xlsx",aj={WASTE:["Supplier","Carrier","Contractor"],ELECTRICITY:["Supplier","Broker","Contractor"],GAS:["Supplier","Broker","Contractor"],WATER:["Supplier","Contractor"],TRANSPORT:["Supplier","Haulier","Contractor"],MATERIALS:["Supplier","Subcontractor"],HOTELSTAYS:["Supplier"],FUEL:["Supplier"]},ij=(e,n)=>`Invalid supplier types for ${e}: ${n.join(", ")}. Valid types are: ${aj[e.toUpperCase()].join(", ")}`,lj=[De("REACT_APP_BASE_URL"),tj].join("");function rj(e){let{accountId:n,gridApi:t}=e;const a=Vr(n),i=function(){const e=Je(),[n]=(0,Ul._)(CI,{fetchPolicy:"network-only"}),t=za(n,n=>{let{limit:t,offset:a}=n;return{limit:t,offset:a,accountId:e}},e=>e.getSuppliersPage.rows,1e3);return async e=>{const n=[],a=new Set,i=await pa(t());for(const e of i)a.add(e.id);for(const t of e)!t.value||a.has(t.value)?n.push(t):n.push({...t,info:[{message:"One or more suppliers you're trying to update weren't recognised in your upload, please review",level:"error"}]});return n}}(),l=Yo(),{showNotification:r}=tn(),[o]=(0,ln.n)(kI),s=function(e){const{data:n}=function(e){return(0,x.IT)(XI,{variables:{accountId:e},fetchPolicy:"cache-and-network"})}(e);return(0,g.useMemo)(()=>nj.map(e=>"select"===e.type&&ej[e.key]?{...e,type:"select",selectOptions:Ig()(n,ej[e.key],[])}:e),[n])}(n),d=a&&l?{id:l.id,name:Wi(l),email:l.email,companyId:a.id,companyName:a.name}:null;return d?(0,fe.jsx)(vC.A,{licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:d,style:DC.style,settings:{...DC.settings,importIdentifier:"Suppliers",backendSyncMode:"DISABLED",uploadStep:{...DC.settings.uploadStep,helpText:SC(lj)},manualInputDisabled:!1},columnHooks:[{fieldName:"id",callback:i}],bulkRowHooks:[e=>e.map(e=>{const n=(0,hn.cloneDeep)(e),t=n.row.utility?.value,a=n.row.type?.value;if(n.row.type&&(n.row.type.info=[]),!t||!a)return n;const i=a.split(",").map(e=>e.trim()).filter(e=>e.length>0),l=aj[t.toUpperCase()];if(l){const e=i.filter(e=>!l.includes(e));e.length>0&&(n.row.type.info=[{message:ij(t,e),level:"error"}])}return n})],fields:s,onResults:async e=>{try{if(e.length>5e3)return void r(`Upload failed: File contains ${e.length} rows, but the maximum allowed is 5000 rows. Please split your file into smaller chunks.`,"danger");const a=e.map(e=>({id:e.id||void 0,name:e.name,address1:e.address1,address2:e.address2||void 0,address3:e.address3||void 0,city:e.city,postCode:e.postCode,phone1:e.phone1||void 0,countryId:e.countryId,utility:e.utility,type:e.type.split(",").map(e=>e.trim()).filter(e=>e.length>0),notes:e.notes||void 0}));await o({variables:{accountId:n,suppliers:a}}),r(`Successfully uploaded ${a.length} supplier${1===a.length?"":"s"}`,"success"),t&&t.refreshInfiniteCache()}catch(e){console.error("Error processing supplier upload results:",e),r("An error occurred while processing the upload","danger")}},children:"Upload"}):null}const oj=JSON.parse('[{"label":"Waste","value":"WASTE"},{"label":"Electricity/Heat/Steam","value":"ELECTRICITY"},{"label":"Fuel","value":"FUEL"},{"label":"Gas","value":"GAS"},{"label":"Water","value":"WATER"},{"label":"Transport","value":"TRANSPORT"},{"label":"Materials","value":"MATERIALS"},{"label":"Hotel Stays And Home Working","value":"HOTELSTAYS"}]'),sj=S.J1`
  query getMaterialsByAccountID($accountId: ID!) {
    getMaterialsByAccountID(accountId: $accountId) {
      id
      name
    }
  }
`,dj=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  gap: 16px;
`;function cj(e){let{fileName:n}=e;return(0,fe.jsxs)(dj,{children:[(0,fe.jsx)(f.Icons.InsertDriveFile,{}),(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:n})]})}const uj=S.J1`
  fragment DocumentFields on DocumentRecord {
    id
    link
    source
    key
    fileName
    documentArea
    category
    type
    supplierId
    supplierName
    reviewDate
    reviewDateStatus
    library
    referenceId
    managementSystemCode
    managementSystemId
    managementSystemChapterId
    createdAt
    createdBy {
      id
      first_name
      last_name
    }
    createdByName
    updatedAt
    updatedBy {
      first_name
      last_name
    }
    updatedByName
    antivirusStatus
    tags {
      id
      tagName
    }
    locations {
      id
      name
    }
    notes
    folderId
    folders {
      parent {
        id
        name
      }
      child {
        id
        name
      }
    }
    startDate
    expirationDate
  }
`,pj=S.J1`
  fragment ChapterFields on Chapter {
    id
    title
    number
    synopsis
    type
    content {
        headerButton {
          text
          link
        }
      }
    documents {
      ...DocumentFields
      __typename
    }
    ... on ManagementSystemChapter {
      id
      title
      number
      synopsis
      type
      content {
        headerButton {
          text
          link
        }
      }
      documents {
        ...DocumentFields
        __typename
      }
    }
    __typename
  }
  ${uj}
`,mj=S.Ay`
  fragment ChapterFieldsNesting on Chapter {
    ... on ManagementSystemChapter {
        chapters {
            ...ChapterFields
            ... on ManagementSystemChapter {
                chapters {
                    ...ChapterFields
                }
            }
        }
    }
   
  }
  ${pj}
`,fj=S.J1`
  mutation CreateDocumentRecord(
    $id: ID!
    $accountId: ID!
    $key: String
    $userId: ID!
    $category: String!
    $type: [String!]
    $supplierId: String
    $fileName: String!
    $library: DocumentLibrary!
    $referenceId: String
    $reviewDate: String
    $managementSystemCode: String
    $managementSystemId: ID
    $managementSystemChapterId: ID
    $source: Source!
    $link: String
    $tags: [String!]
    $locations: [String!]
    $notes: String
    $folderId: String
    $startDate: String
    $expirationDate: String
  ) {
    createDocumentRecord(
      input: {
        id: $id
        userId: $userId
        accountId: $accountId
        key: $key
        category: $category
        type: $type
        supplierId: $supplierId
        fileName: $fileName
        library: $library
        referenceId: $referenceId
        reviewDate: $reviewDate
        managementSystemCode: $managementSystemCode
        managementSystemId: $managementSystemId
        managementSystemChapterId: $managementSystemChapterId
        link: $link
        source: $source
        tags: $tags
        locations: $locations
        notes: $notes
        folderId: $folderId
        startDate: $startDate
        expirationDate: $expirationDate
      }
    ) {
      ...DocumentFields
    }
  }
  ${uj}
`,yj=S.J1`
  query GetDocumentRecordById($id: ID!, $accountId: String) {
    getDocumentRecordById(id: $id, accountId: $accountId) {
      ...DocumentFields
    }
  }
  ${uj}
`,gj=S.J1`
  mutation DeleteDocumentRecord($id: ID!) {
    deleteDocumentRecord(id: $id)
  }
`,hj=S.J1`
  mutation DeleteDocumentRecords($ids: [ID!]!) {
    deleteDocumentRecords(ids: $ids)
  }
`,xj=S.J1`
  query GetManagementSystemById($id: ID!, $accountId: ID!) {
    getManagementSystemById(id: $id, accountId: $accountId) {
      id
      title
      synopsis
      shortCode
      documents {
        ...DocumentFields
      }
      chapters {
        ...ChapterFields
        ... on ManagementSystemChapter {
          chapters {
            ...ChapterFields
            ...ChapterFieldsNesting
          }
        }
      }
    }
    getAvailableManagementSystems(accountId: $accountId) {
      id
      title
    }
  }
  ${uj}
  ${pj}
  ${mj}
`,Tj=S.J1`
  mutation AttachDocumentToManagementSystem($systemId: ID!, $documentId: ID!, $accountId: ID!, $linkId: ID!) {
    attachDocumentToManagementSystem(
      input: { id: $systemId, documentId: $documentId, accountId: $accountId, linkId: $linkId }
    )
  }
`,bj=S.J1`
  query GetDocumentsCount(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 1
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getDocumentsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
    }
  }
`,vj=S.J1`
  mutation CreateFolder($input: CreateDocumentFolderInput!) {
    createDocumentFolder(input: $input)
  }
`,Cj=S.J1`
  mutation UpdateFolder($input: UpdateDocumentFolderInput!) {
    updateDocumentFolder(input: $input)
  }
`,kj=S.J1`
  mutation DeleteFolders($accountId: ID!, $ids: [ID!]!) {
    deleteDocumentFolders(accountId: $accountId, ids: $ids)
  }
`,Sj=S.J1`
  query GetFoldersForOptions($accountId: ID!, $parentId: ID) {
    getDocumentFolders(accountId: $accountId, parentId: $parentId) {
      id
      name
    }
  }
`,Nj=S.J1`
  query GetFoldersForPage($accountId: ID!, $parentId: ID) {
    getDocumentFolders(accountId: $accountId, parentId: $parentId) {
      id
      name
    }
  }
`,Aj=S.J1`
  query GetParentAndChildFoldersForPage($accountId: ID!, $parentId: ID!) {
    getDocumentFolders(accountId: $accountId, parentId: $parentId) {
      id
      name
    }

    getDocumentFolder(accountId: $accountId, id: $parentId) {
      id
      name
      empty
    }
  }
`,Rj=S.J1`
  query GetFolderForDocumentPage($accountId: ID!, $id: ID!) {
    getDocumentFolder(accountId: $accountId, id: $id) {
      id
      name
      empty
      parentId
      parent {
        id
        name
      }
    }
  }
`,Dj=S.J1`
  query GetDocumentDownloadLink($accountId: ID!, $documentId: ID!) {
    getDocumentDownloadLink(accountId: $accountId, documentId: $documentId)
  }
`;function Lj(e){const n=bn()(e).local().format("DD/MM/YYYY");return"Invalid date"===n?"-":n}function Ij(e){const n=bn()(e).local().format("DD/MM/YYYY [at] HH:mm");return"Invalid date"===n?"-":n}function jj(e){return bn().utc(new Date(e)).format("DD/MM/YYYY")}function wj(e){if("string"!=typeof e)return"";const n=e.split(".");return n.length>1?n.slice(0,n.length-1).join("."):e}function Oj(e,n){return`CLEAN/${e}/${n}/${n}`}function Ej(e){const n="quaternary";if(!e)return n;const t={GAS:"quaternary",ELECTRICITY:"quaternary",WASTE:"quaternary",TRANSPORT:"quaternary",WATER:"quaternary",GOVERNANCE:"tertiary"},a=e?.toUpperCase();return e&&a in t&&t[a]||n}function _j(e,n,t,a,i){const l={};return e&&(l.text=[{filterType:gn.pe.Text,type:gn.II.Contains,filter:e,field:"fileName"}]),t&&Fj(t)?l.set=[{values:[t],filterType:gn.pe.Set,field:"folderId"}]:(n||t||a||i)&&(l.set=[],n&&l.set.push({values:[n],filterType:gn.pe.Set,field:"library"}),t&&l.set.push({values:[t],filterType:gn.pe.Set,field:"category"}),a&&l.set.push({values:[a],filterType:gn.pe.Set,field:"managementSystemId"}),(i||null===i&&!e)&&l.set.push({values:[i],filterType:gn.pe.Set,field:"managementSystemChapterId"})),l}const Fj=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(e),Pj=e=>e?.library===gn.zM.Waste&&e?.category===pt.DocumentCategory.WasteCarrierLicence,Bj=e=>e?.library===gn.zM.Waste&&e?.category===pt.DocumentCategory.WasteTransferNote,Uj=e=>{let{value:n,onChange:t,error:a,label:i="",isSubmitting:l,defaultOptions:r,disabled:o}=e;const{loading:s,options:d,loadMore:c}=yN();return(0,fe.jsx)(f.AutoComplete,{isMulti:!0,loadMore:c,label:i||(0,fe.jsx)(de.A,{id:"pages.project.details.locations"}),options:d,onChange:e=>t(e,"locationsSelect"),isLoading:s,error:a?.toString(),value:n,defaultValue:Array.isArray(r)?r:[],disabled:l||o,placeholder:"Start typing to search for a location"})},$j={[gn.d.Broker]:{field:"brokerType",type:gn.II.Equals,filterType:gn.pe.Text,filter:"Broker"},[gn.d.Carrier]:{field:"carrierType",type:gn.II.Equals,filterType:gn.pe.Text,filter:"Carrier"},[gn.d.Contractor]:{field:"contractorType",type:gn.II.Equals,filterType:gn.pe.Text,filter:"Contractor"},[gn.d.Haulier]:{field:"haulierType",type:gn.II.Equals,filterType:gn.pe.Text,filter:"Haulier"},[gn.d.Supplier]:{field:"supplierType",type:gn.II.Equals,filterType:gn.pe.Text,filter:"Supplier"},[gn.d.Subcontractor]:{field:"subcontractorType",type:gn.II.Equals,filterType:gn.pe.Text,filter:"Subcontractor"}},Mj=(e,n)=>{const t=[];return e&&t.push({field:"utility",type:gn.II.Equals,filterType:gn.pe.Text,filter:e}),n&&t.push($j[n]),{text:t}};function Vj(e){let{value:n,error:t,onChange:a,utility:i,supplierType:l,label:r="Supplier",disableClearable:o,withWasteCarrierLicence:s,onSuppliersLoaded:d}=e;const{data:c,fetchMore:u,loading:p}=function(e){let{limit:n,utility:t,supplierType:a,withWasteCarrierLicence:i=!1}=e;const l=Je();return(0,x.IT)(gd,{fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0,variables:{limit:n,accountId:l,filters:Mj(t,a),withWasteCarrierLicence:i}})}({limit:St,utility:i,supplierType:l,withWasteCarrierLicence:s}),[m,y]=(0,g.useState)([]);return(0,g.useEffect)(()=>{const e=c?.getSuppliersPage.rows||[];d?.(e),y($a(e))},[c]),(0,fe.jsx)(f.AutoComplete,{disableClearable:o,isMulti:!1,loadMore:async(e,n,t)=>{const a=Mj(i,l);t&&a.text.push({filterType:gn.pe.Text,type:gn.II.Contains,filter:t,field:"name"});const r=await u({variables:{offset:n,limit:e,filters:a}}),o=r.data.getSuppliersPage.rows;return d?.(o),{total:r.data.getSuppliersPage.totalRows,options:$a(o)}},onChange:a,label:r,value:n,isLoading:p,error:t?.toString(),helperText:t||"",noOptionsMessage:"No suppliers found",options:m})}function Gj(e){return{value:e.id,label:e.tagName}}const zj=e=>{let{accountId:n,value:t,onChange:a,error:i,name:l="tagIds",loading:r,label:o="Tags",disabled:s}=e;const{data:d,loading:c,error:u}=(0,x.IT)(Hg,{variables:{accountId:n},fetchPolicy:"network-only"}),p=(0,g.useMemo)(()=>d?.getTagsByAccountId||[],[d?.getTagsByAccountId]),m=(0,g.useMemo)(()=>(0,hn.sortBy)(p.map(Gj),e=>e?.label.trim().toLowerCase()),[p]),y=u?.message||i||"";return(0,fe.jsx)(f.MultiSelect,{name:l,label:o,isLoading:c||r,disabled:r||s,onChange:a,value:t,error:Boolean(y),helperText:y,options:m})},Wj=JSON.parse('[{"label":"Part A","value":"Part A"},{"label":"Part B","value":"Part B"},{"label":"Part C","value":"Part C"},{"label":"Part D","value":"Part D"},{"label":"Part E","value":"Part E"}]'),qj=[{id:"be36f589-60f2-4e30-923d-0657ca6cbaf7",title:"All Documents",library:"ALL",link:"all",icon:"folder"},{id:"ad1d9409-bfe9-4c34-9ce6-12cf10a1b594",title:"Electricity Documents",library:gn.zM.Electricity,link:"electricity",icon:"folder",accessControlIndexer:"data.electricity"},{id:"4cacab91-659a-4437-ba4e-18020d9badd7",title:"Gas Documents",library:gn.zM.Gas,link:"gas",icon:"folder",accessControlIndexer:"data.gas"},{id:"24cde553-cced-4add-998d-5bbacfed3717",title:"Governance Documents",library:gn.zM.Governance,link:"governance",icon:"folder",iconColor:"tertiary",accessControlIndexer:"comply"},{id:"02cf37a1-b95e-4b05-9731-e3ae5f41af77",title:"Transport Documents",library:gn.zM.Transport,link:"transport",icon:"folder",accessControlIndexer:"data.transport"},{id:"8eb9e9e4-0d6c-4ef4-b1eb-f2850947782a",title:"Waste Documents",library:gn.zM.Waste,link:"waste",icon:"folder",accessControlIndexer:"data.waste"},{id:"71a1ff35-ea84-4a5a-8b5c-bbacc51a3f2b",title:"Water Documents",library:gn.zM.Water,link:"water",icon:"folder",accessControlIndexer:"data.water"}];function Jj(){const e=ec("documentFolder");return{get canGetFolder(){return e("get")},get canCreateFolder(){return e("upsert")},get canEditFolder(){return e("upsert")},get canDeleteFolder(){return e("delete")}}}function Yj(){let{parentId:e,skip:n,preloaded:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=Je(),{canGetFolder:i}=Jj(),{data:l}=(0,x.IT)(Sj,{variables:{accountId:a,parentId:e},skip:n||!i}),r=l?.getDocumentFolders;return(0,g.useMemo)(()=>(r||(t?[t]:[])).map(e=>{let{id:n,name:t}=e;return{value:n,label:t}}),[r,t])}const Hj=qj,Kj=e=>{let{document:n,isSubmitting:t,onChange:a,predefinedValues:i={},errors:l,relocatable:r,shouldParseIdFromFileName:o,onSuppliersLoaded:s}=e;const d=Yo(),{data:c}=Mr(),u=Je(),p=Bj(n),[m,y]=(0,g.useState)(o||!1),h="Consignment Note (EA)"===n.category||"Consignment Note (SEPA)"===n.category,[x,T]=(0,g.useState)(!1),[b,v]=(0,g.useState)(i.customLibrary?.id),C=zo(),k=!!C?.isSupplierRequiredForDocument,S=n.tags,N=d?.allowedTags,A=n.locations,R=d?.allowedLocations,D=r||!i.library&&!i.customLibrary,L=r||!i.category&&!i.customCategory,I=Yj({skip:!D,preloaded:i.customLibrary}),j=(0,g.useMemo)(()=>[...Hj.filter(e=>Ig()(c,e.accessControlIndexer)).map(e=>{let{title:n,library:t}=e;return{label:n,value:t}}),...I],[c,I]),w=n.library,O=Yj({skip:!L||!b,parentId:b,preloaded:i.customCategory}),E=(0,g.useMemo)(()=>w&&w!==gn.zM.Custom?IT.filter(e=>e.libraries.includes(w)):[],[w]),_=b?O:E;(0,g.useEffect)(()=>{(!S&&N?.length||!A&&R?.length)&&a({...n,tags:S||N?.filter(Boolean).map(e=>e.id),locations:A||R?.filter(Boolean).map(e=>e.id)},{})},[S,N,A,R,a]);const F=(e,n)=>{const t={...n,expirationDate:Nn(e)};return a(t,{field:"expirationDate"}),t},P=(e,n)=>{let t={...n,startDate:Nn(e)};if(a(t,{field:"startDate"}),t.startDate&&!n.expirationDate){const e=bn()(t.startDate).add(36,"months");e.isValid()&&(t=F(e.toISOString(),t))}return t},{supplierId:B,supplierName:U}=n||{},$=(0,g.useMemo)(()=>B&&U?{value:B,label:U}:null,[B,U]);return(0,fe.jsxs)(f.Grid,{container:!0,columns:12,rowGap:3,columnGap:3,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Select,{label:"Select document library",value:b||n.library||"",options:j,disabled:!D||t,onChange:e=>{let{value:t}=e;const i=Fj(t),l={...n};i?(v(t),l.library=gn.zM.Custom):(v(void 0),l.library=t),l.category=null,l.folderId=null,a(l,{field:"library"})}})}),(n.library||b)&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Select,{label:"Select document category",error:!!l?.category,helperText:l?.category,value:n.folderId||n.category||"",options:_,disabled:!L||t,onChange:e=>{let{value:t,label:i}=e;const l={...n},r=Fj(t);r?(l.category=i,l.folderId=t):l.category=t,a(l,{field:r?"folderId":"category"}),Pj(l)||F(null,P(null,l))}})}),(n.category||n.folderId)&&(0,fe.jsxs)(fe.Fragment,{children:[h&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.MultiSelect,{label:"Select document type",value:Array.isArray(n.type)?n.type:[],options:Wj,disabled:t,onChange:e=>a({...n,type:e.map(e=>e.value)},{field:"type"})})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Checkbox,{label:"Parse ID From Filename",disabled:p,checked:m||p,value:m,onChange:()=>{const e=!m;y(e),a(e?{...n,referenceId:wj(Ig()(n,"fileName"))}:n,{field:"shouldParse",value:e})}})}),!m&&!p&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{error:!!l?.referenceId,helperText:l?.referenceId,label:`${n.category} ID`,value:n.referenceId||"",onChange:e=>a({...n,referenceId:e.target.value},{field:"referenceId"})})}),Pj(n)&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.DatePicker,{label:"Start date",error:l?.startDate,disabled:t,onChange:e=>P(e,n),value:Nn(n.startDate)})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.DatePicker,{label:"Expiration date",disablePast:!0,error:l?.expirationDate,disabled:t,onChange:e=>F(e,n),value:Nn(n.expirationDate)})})]}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.DatePicker,{label:"Review date (optional)",disabled:t,onChange:e=>a({...n,reviewDate:e?new Date(e).toISOString():void 0},{field:"reviewDate"}),value:n.reviewDate?new Date(n.reviewDate):void 0})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Vj,{disableClearable:k,onSuppliersLoaded:e=>s?.(e),label:"Select supplier/carrier "+(k?"":"(optional)"),error:l?.supplierId,value:$||n.supplierId||"",withWasteCarrierLicence:!0,onChange:e=>{const t=e;a({...n,supplierId:t.value,supplierName:t.label},{field:"supplierId"})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(zj,{label:"Select tags (optional)",value:S||[],accountId:u,onChange:e=>a({...n,tags:e.map(e=>e.value)},{field:"tags"})})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Uj,{label:"Select locations (optional)",value:A||[],onChange:e=>a({...n,locations:e.map(e=>e.value)},{field:"locations"})})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{label:"Notes",value:n.notes||"",error:x,helperText:x&&"Notes can not contain more than 255 symbols",onChange:e=>{T(!1),e?.target?.value?.length>255?T(!0):a({...n,notes:e.target.value},{field:"notes"})}})})]})]})]})},Qj=(0,f.styled)("div")`
  margin-top: 32px;
  display: flex;
  gap: 16px;
`,Zj=(0,f.styled)(f.Button)`
  flex: 1;
`;function Xj(e){let{onDismiss:n,heading:t,children:a,onSubmit:i,submitButtonTitle:l,isSubmitting:r,submitDisabled:o,showButtons:s=!0}=e;return(0,fe.jsxs)(f.Modal,{open:!0,onClose:n,title:t,maxWidth:"1000px",children:[a,s&&(0,fe.jsxs)(Qj,{children:[(0,fe.jsx)(Zj,{variant:"outlined",disabled:r,onClick:n,children:"Cancel"}),(0,fe.jsx)(Zj,{variant:"contained",disabled:r||o,onClick:i,children:l})]})]})}const ew=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}/,nw=()=>e=>!e||ew.test(e)?void 0:"Invalid date",tw=nw(),aw={supplierId:(e,n)=>{let{optional:t,suppliers:a}=n;const{supplierId:i}=e;if(!i)return t?null:"Supplier is required";if(Pj(e)){const n=a?.get(i),t=n?.wasteCarrierLicenceDocument?.id;if(t&&t!==e.id)return"A valid licence already exists for this waste carrier"}return null},referenceId:(e,n)=>{let{referenceId:t}=e,{optional:a}=n;return t||a?null:"ID is required"},category:(e,n)=>{let{files:t}=n;return Pj(e)&&(t?.length||0)>1?"You can upload only one file for the Waste Carrier Licence":null},startDate:e=>Pj(e)?e.startDate?tw(e.startDate)?"Start date is invalid":null:"Start date is required":null,expirationDate:e=>{if(!Pj(e))return null;if(!e.expirationDate)return"Expiration date is required";if(tw(e.expirationDate))return"Expiration date is invalid";const n=bn()(e.expirationDate);if(n.isSameOrBefore(bn()(),"day"))return"Expiration date must be in the future";if(!e.startDate)return null;const t=bn()(e.startDate);return n.isSameOrBefore(t,"day")?"Expiration date must be after the start date":null}};function iw(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{field:t,optionals:a}=n,i={};return(t?[t]:Object.keys(aw)).forEach(t=>{const l=aw[t];l&&(i[t]=l(e,{...n,optional:a.includes(t)}))}),i}function lw(){const[e,n]=(0,g.useState)(),[t,a]=(0,g.useState)(!1),i=zo();return{documentDetailsErrors:e,validateDocumentDetailsOnSubmit:(e,a)=>{const l=[],r=Bj(e);(t||r)&&l.push("referenceId"),i?.isSupplierRequiredForDocument||l.push("supplierId");const o=iw(e,{...a,optionals:l});return n(o),0===Object.values(o).filter(e=>!!e).length},validateDocumentDetailsOnChange:(e,t)=>{let{field:l,value:r}=t;if(!l)return;const o=[];"shouldParse"===l&&(a(r),l="referenceId",r&&o.push("referenceId")),"supplierId"!==l||i?.isSupplierRequiredForDocument||o.push("supplierId");const s=iw(e,{...t,optionals:o});n(e=>({...e,...s}))}}}function rw(){const[e,n]=(0,g.useState)(new Map);return{suppliers:e,addSuppliers:e=>n(n=>{const t=new Map(n);return e.forEach(e=>t.set(e.id,e)),t})}}function ow(e){let{onComplete:n,onError:t,onDismiss:a,document:i,predefinedValues:l}=e;const r=Je(),o=Bl(),[s,d]=(0,g.useState)(function(e){return{...e,tags:e.tags?.map(e=>{let{id:n}=e;return n}),locations:e.locations?.map(e=>{let{id:n}=e;return n})}}(i)),[c,{loading:u}]=(0,ln.n)(fj),p=Wd(),{documentDetailsErrors:m,validateDocumentDetailsOnChange:f,validateDocumentDetailsOnSubmit:y}=lw(),{suppliers:h,addSuppliers:x}=rw();return(0,fe.jsx)(Xj,{heading:"Edit Document",onDismiss:a,submitButtonTitle:u?"Updating...":"Update",isSubmitting:u,onSubmit:async()=>{if(!y(s,{suppliers:h}))return;const e=Bj(s);try{const{data:t}=await c({variables:{...s,notes:s.notes?.trim(),accountId:r,userId:o,fileName:i.fileName,...e?{referenceId:wj(i.fileName)}:{},supplierName:void 0}}),a=t.createDocumentRecord;if(a.folderId!==i.folderId){const e=[];a.folderId&&e.push(a.folderId),i.folderId&&e.push(i.folderId),p(e.map(e=>({fieldName:"getDocumentFolder",args:{accountId:r,id:e}})))}n(a)}catch(e){E.Cp(e),t(new Error(`Document ${i.fileName} failed to update`,{cause:e}))}},children:(0,fe.jsx)(Kj,{predefinedValues:l,relocatable:!0,document:s,onChange:(e,n)=>{f(e,{...n,suppliers:h}),d(e)},isSubmitting:u,errors:m,onSuppliersLoaded:x})})}const sw=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
  flex-shrink: 0;
  border-radius: 16px;
  background-color: ${e=>e.theme.palette.grey[100]};
  padding: 16px;
  min-height: 250px;
`;function dw(e){let{onFiles:n,single:t}=e;return(0,fe.jsxs)(sw,{children:[(0,fe.jsx)(f.Icons.CloudUpload,{fontSize:"large"}),(0,fe.jsx)(f.FileUploadButton,{multiple:!t,onFileUpload:n,accept:qt.allowedDocument.mimeType,children:"Select files"})]})}const cw=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 8px;
`,uw=(0,f.styled)(f.Text)(e=>{let{theme:n}=e;return{color:n.sys.color.error,width:"100%"}}),pw=(0,f.styled)(f.Text)(e=>{let{theme:n}=e;return{color:n.customColors.onSuccess.color,width:"100%"}});function mw(e){let{onDismiss:n,onError:t,onUpload:a,onComplete:i,onTerminate:l,predefinedValues:r,shouldParseIdFromFileName:o,single:s}=e;const[d,c]=(0,g.useState)([]),[u,p]=(0,g.useState)(0),[m,y]=(0,g.useState)(!1),[h,x]=(0,g.useState)(function(){let{customCategory:e,category:n,library:t,customLibrary:a,...i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:null,supplierId:null,reviewDate:null,referenceId:null,library:a?gn.zM.Custom:t||null,category:e?.name||n||null,folderId:e?.id||null,...i||{}}}(r)),T=ol(),[b]=(0,ln.n)(fj),{token:v}=qe(),C=Je(),{showNotification:k}=tn(),{documentDetailsErrors:S,validateDocumentDetailsOnChange:N,validateDocumentDetailsOnSubmit:A}=lw(),[R,D]=(0,g.useState)(),{suppliers:L,addSuppliers:I}=rw(),j=Wd(),w=(0,g.useCallback)(async()=>{if(!A(h,{files:d,suppliers:L}))return;y(!0);const e=100/d.length,r=kC()(d,20);let o=u;const s=[],c=[],m=Bj(h),f=new Map;for(const[n,i]of r.entries())await Promise.all(i.map(async n=>{const i=(0,Wa.A)(),l=n instanceof File,r=n.name;try{l&&await T(C,i,n);const d={...h,id:i,accountId:C,fileName:r,userId:v.sub,key:l?Oj(C,i):null,link:l?null:n.link,source:l?Gt:"URL",referenceId:h.referenceId&&!m?h.referenceId:wj(r),notes:h.notes?.trim(),supplierName:void 0};if(t&&c.length)return void c.forEach(e=>t(e));const u=await b({variables:d}),f=u?.data?.createDocumentRecord;f&&(s.push(f),a&&a(`${r} has been uploaded`,f)),p(o+=e)}catch(e){if(e instanceof zS.K4&&"DuplicateReferenceID"===e.message)return void f.set(n.name,"Reference ID already exists. Please rename the file and try again.");const a="string"==typeof e?e:e.message,i=new Error(`Creation of ${r} failed (${a})`);c.push(i),t&&t(i)}})),n!==r.length-1&&await new Promise(e=>setTimeout(e,15e3));if(s.length>0){const e=[];s[0].folderId&&e.push({fieldName:"getDocumentFolder",args:{accountId:C,id:s[0].folderId}}),j(e)}if(0===f.size&&n(),c.length&&t&&t(new Error(`Unfortunately ${c.length} of your uploads did not go through`)),f.size>0)D({failedFiles:f,succeededFiles:s.map(e=>{let{fileName:n}=e;return n})});else if(s.length>0){const e=(g=s.length===d.length,x=s.length,`${g?"All files ":""}(${x}) ${g?"":`file${0!==x&&"s"} `}have been successfully uploaded.`);i&&i(e,s,c),k(e,"success")}var g,x;l?.(s,c)},[d,u,n,t,h,C,v.sub,b,T,a,i,k,A]),O=Fa()(u,2),E=R?R.succeededFiles.length>0?`Partially uploaded - ${O}%`:"Nothing uploaded":`Uploading... ${O}%`;return(0,fe.jsx)(Xj,{onDismiss:n,heading:"Documents Upload",submitButtonTitle:"Upload",showButtons:!!d.length,submitDisabled:!h.library||!h.category,isSubmitting:m,onSubmit:w,children:(0,fe.jsxs)(f.Grid,{container:!0,columns:12,rowGap:3,children:[d.length?d.map(e=>(0,fe.jsxs)(f.Grid,{size:12,children:[(0,fe.jsx)(cj,{fileName:e.name}),R?.failedFiles.has(e.name)&&(0,fe.jsx)(uw,{children:R?.failedFiles.get(e.name)}),R?.succeededFiles.includes(e.name)&&(0,fe.jsx)(pw,{children:"Uploaded successfully!"})]},e.name)):(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(dw,{single:s,onFiles:e=>{c(e),e.length>0&&o&&x({...h,referenceId:wj(e[0].name)})}})}),!!d.length&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Kj,{document:h,predefinedValues:r,shouldParseIdFromFileName:o,onSuppliersLoaded:I,onChange:(e,n)=>{N(e,{...n,files:d,suppliers:L}),x(e)},errors:S})}),m&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsxs)(cw,{children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:E}),(0,fe.jsx)(f.LinearProgress,{variant:"determinate",color:R?"error":void 0,value:Fa()(u,2)})]})})]})})}function fw(e){let{supplier:n,onDismiss:t,onUploaded:a}=e;return(0,fe.jsx)(mw,{single:!0,predefinedValues:{library:gn.zM.Waste,category:pt.DocumentCategory.WasteCarrierLicence,supplierId:n.id,supplierName:n.name},onDismiss:t,onUpload:a})}const yw=(0,le.default)(NI)`
  background: ${e=>e.theme.colors.overlay.light.background};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  border-top: 1px solid ${e=>e.theme.colors.text.light.background};
  flex: 0 0 auto;
`,gw=(0,le.default)(ie.$n)`
  width: 250px;
  margin-left: ${e=>e.theme.geometry.sm.spacing};
  cursor: po;
`,hw=le.default.div`
  & > div {
    overflow: auto;
  }
`,xw=le.default.div`
  width: 100%;
  height: 100%;
`,Tw=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,bw=(0,uI.A)({root:{justifyContent:"center"},scroller:{flexGrow:"0"}}),vw=()=>{const e=bw(),n=Je(),t=lr(),a={page:1,totalPages:0},[i,l]=(0,g.useState)(a),[r,o]=(0,g.useState)({createModal:{show:!1},updateModal:{id:""},selectedTags:[],notification:{message:null,color:null},shouldRefetch:!1,selectAll:!1,orderByDesc:!0,countryList:[],defaultCountry:null}),[s,d]=(0,g.useState)(0),[c,u]=(0,g.useState)(null),[p,m]=(0,g.useState)(null),f=oj[s],{countryList:y,allCountries:h}=Bo(),{data:{suppliersGridSearch:T}}=(0,x.IT)(bI),b=AI(f?.value),{data:v}=function(e){const{data:{getMaterialsByAccountID:n=[]}={},...t}=(0,x.IT)(sj,{variables:{accountId:e}});return{data:n,...t}}(n),C=v.map(e=>{let{id:n,name:t}=e;return{label:t,value:n}}).sort(Yn("label")),k={accountId:c,page:i.page,pageSize:20,filterValue:T||null,orderDir:r.orderByDesc?"desc":"asc",filterBy:"name",utility:f.value,withWasteCarrierLicence:f.value===gn.D_.Waste},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o({...r,createModal:{show:!1},updateModal:{id:null},notification:{message:e.message,color:e.color,id:e.id}})},N=(e,n,t,a,i,l,s,d,c)=>"create"===e?o({...r,createModal:{show:!0}}):"update"===e?o({...r,updateModal:{id:n,name:t,utility:a,address:i,type:l,materials:s,notes:d,accountId:c}}):void 0,A=()=>{o(e=>({...e,notification:{message:null,color:null,id:null}}))},{data:R,error:D,loading:L,refetch:I}=(0,x.IT)(mI,{variables:k,onCompleted:e=>{const n=i.page!==e.getSuppliers.page,t=i.totalPages!==e.getSuppliers.pageCount;(n||t)&&l({page:e.getSuppliers.page,totalPages:e.getSuppliers.pageCount})},fetchPolicy:"network-only",skip:!t});return(0,g.useEffect)(()=>{u(n)},[n]),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(ie.fv,{name:"ConfigurationMySuppliersContainer",container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{name:"ConfigurationMySuppliersContainer__Controls",icon:"parachute-box",iconColor:"primary",title:"Suppliers",children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(Qb,{setPageMutation:TI,setSearchMutation:vI,hideButton:!0})}),(0,fe.jsx)(gw,{name:"ConfigurationMySuppliersContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>N("create"),children:"+ Add Supplier"}),c&&(0,fe.jsx)(rj,{accountId:c})]}),(e=>(0,fe.jsxs)(g.Fragment,{children:[r.notification.message&&(0,fe.jsxs)(ie.Eg,{name:"ConfigurationMySuppliersContainer__Notification",show:!0,color:"success",onClose:A,children:[r.notification.message,(0,fe.jsx)("div",{hidden:!0,name:"ConfigurationMySuppliersContainer__Notification__createlocation_id",children:r.notification.id?r.notification.id[0]:null}),(0,fe.jsx)("div",{hidden:!0,name:"ConfigurationMySuppliersContainer__Notification__createaddress_id",children:r.notification.id?r.notification.id[1]:null})]}),r.createModal.show&&(0,fe.jsx)(ie.aF,{span:5,size:"md",show:!0,name:"ConfigurationMySuppliersContainer__Modal--create",dismissable:!0,onDismiss:S,children:(0,fe.jsx)(JI,{onSuccess:(e,n,t,a)=>{S({message:e,color:n,id:t}),a.type.includes(gn.d.Carrier)&&m(a)},accountId:n,countryList:y,refetchQuery:[{query:mI,variables:e}],utility:oj[s].value,heading:`Create ${f.label} Supplier`,materialTypesOptions:C})}),r.updateModal.id&&(0,fe.jsx)(ie.aF,{size:"md",show:!0,dismissable:!0,onDismiss:S,name:"ConfigurationMySuppliersContainer__Modal--update",children:(0,fe.jsx)(ZI,{supplierId:r.updateModal.id,notes:r.updateModal.notes,materials:r.updateModal.materials,accountId:r.updateModal.accountId,supplierName:r.updateModal.name,addressId:r.updateModal.address&&r.updateModal.address.id,address1:r.updateModal.address&&r.updateModal.address.address1,address2:r.updateModal.address&&r.updateModal.address.address2,address3:r.updateModal.address&&r.updateModal.address.address3,city:r.updateModal.address&&r.updateModal.address.city,postcode:r.updateModal.address&&r.updateModal.address.postcode,phone:r.updateModal.address&&r.updateModal.address.phone1,utility:r.updateModal.utility,onDismiss:S,onSuccess:(e,n,t)=>S({message:e,color:n,id:t}),countryList:y,defaultCountry:r.updateModal.address&&{value:r.updateModal.address.country.id,label:r.updateModal.address.country.name},allCountries:h,type:r.updateModal.type,materialTypesOptions:C})})]}))(k),t.account.includes("getAll")&&(0,fe.jsx)(Tw,{children:(0,fe.jsx)(wu,{value:c,onChange:e=>{let{id:n}=e;u(n)}})}),(0,fe.jsx)(ie.tU,{classes:{root:e.root,scroller:e.scroller},variant:"scrollable",value:s,onChange:(e,n)=>{l(a),d(n)},children:oj.map(e=>(0,fe.jsx)(ie.oz,{label:e.label},e.label+e.value))}),(0,fe.jsx)(yw,{container:!0,children:b.map(e=>(0,fe.jsx)(SI,{container:!0,item:!0,span:e.width,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:e.name})},e.name))}),oj.map((e,n)=>{return(0,fe.jsx)(hw,{children:(0,fe.jsx)(ie.Kp,{index:n,value:s,children:(0,fe.jsx)(xw,{children:D?(0,fe.jsx)(ie.Kw,{error:D,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationMySuppliersContainer__Error",icon:a,title:n,body:t,retry:()=>I()})}}):L?(0,fe.jsx)(Rc,{name:"ConfigurationMySuppliersContainer__Loading"}):(a=R.getSuppliers,0===a.suppliers.length?(0,fe.jsx)(Fu,{name:"ConfigurationMySuppliersContainer__NoResults",title:"No Suppliers found"}):a.suppliers.map(e=>(0,fe.jsx)(jI,{supplier:e,permissions:t,onEdit:()=>N("update",e.id,e.name,e.utility,e.address,e.type,e.materials,e.notes,e.accountId)},e.id)))})})},e.label+e.value);var a}),i.totalPages>1?(0,fe.jsx)(Hb,{totalPagesCount:i.totalPages,currentPage:i.page,onChange:e=>{l({page:e,totalPages:i.totalPages})}}):null]}),p&&(0,fe.jsx)(fw,{supplier:p,onDismiss:()=>m(null),onUploaded:()=>{m(null),I()}})]})},Cw=S.J1`
  fragment NormaliserFields on Normaliser {
    id
    name
    description
    quantity
    accountId
    locationId
    location {
      name
    }
    tagId
    startDate
    endDate
    type {
      id
      name
    }
  }
`,kw=S.J1`
  query GetNormalisersPage(
    $accountId: ID!
    $limit: Int = 25
    $offset: Int = 0
    $sort: [SortCommand!] = [{ field: "name", order: "asc" }]
    $filters: Filters = {}
  ) {
    getNormalisersPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        ...NormaliserFields
      }
    }
  }
  ${Cw}
`,Sw=S.J1`
  query GetNormalisersPageFilter($accountId: ID!, $field: String!) {
    getNormalisersPageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,Nw=S.J1`
  query GetNormaliserById($id: ID!) {
    getNormaliserById(id: $id) {
      ...NormaliserFields
    }
  }
  ${Cw}
`,Aw=S.J1`
  mutation UpdateNormaliser(
    $id: ID!
    $name: String!
    $description: String!
    $quantity: Float!
    $accountId: String!
    $locationId: String
    $startDate: String!
    $endDate: String!
    $tagId: String
    $type: ID!
  ) {
    updateNormaliser(
      input: {
        id: $id
        name: $name
        description: $description
        quantity: $quantity
        accountId: $accountId
        locationId: $locationId
        startDate: $startDate
        endDate: $endDate
        tagId: $tagId
        type: $type
      }
    ) {
      ... on Normaliser {
        ...NormaliserFields
      }
      ... on UpdateNormaliserError {
        error
      }
    }
  }
  ${Cw}
`,Rw=S.J1`
  mutation CreateNormalisers($normalisers: [NormaliserInput!]!) {
    createNormalisers(normalisers: $normalisers) {
      ... on Normalisers {
        normalisers {
          ...NormaliserFields
        }
      }
      ... on CreateNormalisersErrors {
        errors
      }
    }
  }
  ${Cw}
`,Dw=S.J1`
  {
    getNormaliserTypes {
      id
      name
      scopes
    }
  }
`,Lw=S.J1`
  query GetLocationById($id: ID!) {
    getLocationById(id: $id) {
      id
      name
    }
  }
`;function Iw(e){return e.tagId?K:e.locationId?Y:H}const jw=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,ww=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,Ow=e=>{let{data:{id:n},onEdit:t,canEdit:a}=e;return(0,fe.jsx)(ww,{children:a&&(0,fe.jsx)(jw,{onClick:()=>t(n),children:(0,fe.jsx)(ie.In,{name:`location-row__edit--${n}`,icon:"pencil-alt"})})})};function Ew(e){let{accountId:n,fetchRows:t,showModal:a,setGridApi:i}=e;const l=(0,C.m)(),r=qr({autoFit:!0}),o=lr(),{showNotification:s}=tn(),d=Boolean(o.data.find(e=>e.startsWith("editNormaliser"))),c=async e=>{try{const{data:{getNormalisersPageFilter:t}}=await l.query({query:Sw,variables:{accountId:n,field:e.colDef.colId}});e.success(t.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){s(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning"),e.success([])}},u={pagination:!0,paginationPageSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,cellStyle:{height:"auto"}},columnDefs:[{headerName:"Name",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],newRowsAction:"keep"},field:"name",resizable:!0,sortable:!0},{colId:"type",headerName:"Type",field:"type.name",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},resizable:!0,sortable:!0},{colId:"quantity",headerName:"Quantity",field:"quantity",filter:"agNumberColumnFilter",width:90,resizable:!0,sortable:!0},{colId:"scope",headerName:"Applied to",field:"scope",valueFormatter:e=>{let{data:n}=e;return X[Iw(n)]},filter:!1,width:100,resizable:!0,sortable:!0},{colId:"locationName",headerName:"Location",field:"location.name",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},resizable:!0,sortable:!0},{colId:"startDate",headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},width:110,resizable:!0,sortable:!0},{colId:"endDate",headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},width:110,resizable:!0,sortable:!0},{headerName:"Actions",cellRenderer:"action",filter:!1,width:80,resizable:!0,sortable:!1,hidden:!d}],rowStyle:{width:"100%",display:"flex",alignItems:"center"},rowHeight:58},p={action:e=>(0,fe.jsx)(Ow,{...e,onEdit:e=>a("update",e),canEdit:d})},m={async getRows(e){try{const{startRow:a,sortModel:i,filterModel:l}=e.request,{rows:r,totalRows:o}=await t({accountId:n,offset:a||0,limit:u.paginationPageSize,sort:wn(i),filters:jn(l)});return e.success({rowData:r,rowCount:o}),{rows:r,totalRows:o}}catch(n){throw e.fail(),n}}};return(0,fe.jsx)(Pg,{...u,paginationPageSize:25,cacheBlockSize:25,onFirstDataRendered:r.onFirstDataRendered,onFilterChanged:r.onFilterChanged,onSortChanged:r.onSortChanged,onColumnVisible:r.onSaveGridColumnState,onColumnPinned:r.onSaveGridColumnState,onColumnResized:r.onSaveGridColumnState,onColumnMoved:r.onSaveGridColumnState,onColumnRowGroupChanged:r.onSaveGridColumnState,onColumnValueChanged:r.onSaveGridColumnState,onColumnPivotChanged:r.onSaveGridColumnState,components:p,onGridReady:e=>{r.onGridReady(e),i({api:e.api,datasource:m}),e.api.setGridOption("serverSideDatasource",m)}})}const _w=S.J1`
  query GetTags($accountId: String!) {
    getTagsByAccountId(input: { accountId: $accountId, applicationId: "RIO" }) {
      id
      tagName
      isSystemLevelTag
    }
  }
`;function Fw(e){let{accountId:n,value:t,onChange:a,error:i,additionalOptions:l=[]}=e;const{data:r}=(0,x.IT)(_w,{variables:{accountId:n},fetchPolicy:"network-only"}),o=(r?.getTagsByAccountId||[]).map(e=>({value:e.id,label:e.tagName}));return(0,fe.jsx)(ie.l6,{name:"tagId",placeholder:"Begin typing to find tags",value:t,options:[...l,...o],error:i,onChange:a})}const Pw=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Bw=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,Uw=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,$w=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Mw=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -354px;
    left: 50%;
  }
`,Vw=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -354px;
    left: 50%;
  }
`,Gw=function(e){let{heading:n,accountId:t,isSubmitting:a,setValues:i,values:l,errors:r}=e;const{data:o}=(0,x.IT)(Dw),s=o?.getNormaliserTypes?.map(e=>{let{id:n,name:t,scopes:a}=e;return{label:t,value:n,scopes:a}}).sort(Yn("label"))||[],d=s.find(e=>{let{value:n}=e;return n===l.type}),c=ee.filter(e=>{let{value:n}=e;return d?.scopes.includes(n)})||[],{data:u,loading:p}=(0,x.IT)(Lw,{variables:{id:l.locationId},skip:!l.locationId}),m=e=>{if(a)return;const n=e.target,t="select"===n.type?n.select.value:n.value;i({[e.target.name]:t})};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Uw,{size:"lg",children:n}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($w,{item:!0,children:[(0,fe.jsx)(Bw,{children:(0,fe.jsx)(Pw,{children:"Normaliser Name"})}),(0,fe.jsx)(ie.ks,{disabled:a,onChange:m,name:"name",value:l.name,error:r.name,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($w,{item:!0,children:[(0,fe.jsx)(Bw,{children:(0,fe.jsx)(Pw,{children:"Normaliser Type"})}),(0,fe.jsx)(ie.l6,{name:"type",disabled:a,onChange:e=>{m(e),s.find(n=>{let{value:t}=n;return t===e.target.select.value}).scopes.includes(l.scope)||i({scope:null})},value:l.type,error:r.type,options:s})]})}),!!l.type&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($w,{item:!0,children:[(0,fe.jsx)(Bw,{children:(0,fe.jsx)(Pw,{children:"Normaliser Scope"})}),(0,fe.jsx)(ie.l6,{name:"scope",disabled:a,onChange:e=>{m(e),e.target.select.value===H&&i({locationId:null,tagId:null}),e.target.select.value===K&&i({locationId:null}),e.target.select.value===Y&&i({tagId:null})},value:l.scope,error:r.scope,options:c})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($w,{item:!0,children:[(0,fe.jsx)(Bw,{children:(0,fe.jsx)(Pw,{children:"Description"})}),(0,fe.jsx)(ie.fs,{size:"lg",disabled:a,onChange:m,name:"description",value:l.description,error:r.description,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($w,{item:!0,children:[(0,fe.jsx)(Bw,{children:(0,fe.jsx)(Pw,{children:"Quantity"})}),(0,fe.jsx)(ie.ks,{type:"number",disabled:a,onChange:m,name:"quantity",value:l.quantity,error:r.quantity,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($w,{item:!0,children:[(0,fe.jsx)(Bw,{children:(0,fe.jsx)(Pw,{children:"Start Date"})}),(0,fe.jsx)(Mw,{disabled:a,onDayClick:e=>{e&&m({target:{value:e,name:"startDate"}})},name:"startDate",selectedDate:l.startDate,disabledDatesAfter:l.endDate,error:r.startDate,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($w,{item:!0,children:[(0,fe.jsx)(Bw,{children:(0,fe.jsx)(Pw,{children:"End Date"})}),(0,fe.jsx)(Vw,{disabled:a,onDayClick:e=>{e&&m({target:{value:e,name:"endDate"}})},name:"endDate",selectedDate:l.endDate,disabledDatesBefore:l.startDate,error:r.endDate,box:!0})]})}),l.scope===Y&&!p&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($w,{item:!0,children:[(0,fe.jsx)(Bw,{children:(0,fe.jsx)(Pw,{children:"Location"})}),(0,fe.jsx)(NA,{accountId:t,value:l.locationId,onChange:m,error:r.locationId,disabled:a,selectedOption:u?.getLocationById})]})}),l.scope===K&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($w,{item:!0,children:[(0,fe.jsx)(Bw,{children:(0,fe.jsx)(Pw,{children:"Tag"})}),(0,fe.jsx)(Fw,{accountId:t,value:l.tagId,onChange:m,error:r.tagId,disabled:a})]})})]})},zw={name:"",description:"",quantity:0,scope:H,account:null,locationId:null,startDate:new Date,endDate:(()=>{const e=new Date;return e.setFullYear(e.getFullYear()+1),e})(),tagId:null,type:null},Ww={name:null,description:null,quantity:null,scope:null,account:null,locationId:null,startDate:null,endDate:null,tagId:null,type:null};function qw(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zw;const[n,t]=(0,g.useState)(e),[a,i]=(0,g.useState)(Ww);return[n,e=>{t(n=>({...n,...e}))},a,()=>{const e=function(e){const n={name:"Name must be specified",description:"Description must be specified",quantity:"Quantity must be specified",locationId:"Location must be specified",tagId:"Tag must be specified",startDate:"Start Date must be specified",endDate:"End Date must be specified",type:"Type must be specified",scope:"Scope must be specified"};return Object.keys(n).reduce((t,a)=>{if(!e[a]){const i="locationId"===a&&e.scope!==Y,l="tagId"===a&&e.scope!==K;return i||l?t:{...t,[a]:n[a]}}return t},{})}(n),t=function(e){const n={};return e.startDate&&e.endDate&&e.startDate.getTime()>e.endDate.getTime()&&(n.endDate="End Date cannot be less than Start Date"),n}(n),a={...e,...t};return i(a),!Object.keys(a).length}]}const Jw=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,Yw=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Hw=function(e){let{accountId:n,showNotification:t}=e;const[a,i]=(0,g.useState)(!1),[l]=(0,ln.n)(Rw),[r,o,s,d]=qw();return(0,fe.jsx)(Jw,{name:"create-normaliser",children:(0,fe.jsxs)("form",{name:"create-normaliser__form",onSubmit:async e=>{if(e.preventDefault(),d()&&!a){const e=(0,Wa.A)();try{i(!0);const{data:a}=await l({variables:{normalisers:[{id:e,accountId:n,name:r.name,description:r.description,quantity:r.quantity,locationId:r.locationId,startDate:r.startDate?Dn(r.startDate,"YYYY-MM-DD HH:mm:ss"):null,endDate:r.endDate?Dn(r.endDate,"YYYY-MM-DD HH:mm:ss"):null,tagId:r.scope===K?r.tagId:null,type:r.type}]}}),o=a?.createNormalisers?.errors;o?t(o.join("\n"),"danger","create"):t(`The Normaliser ${r.name} has been created!`,"success")}catch{t("Something went wrong. If the problem persists, contact support.","danger")}finally{i(!1)}}},children:[(0,fe.jsx)(Gw,{setValues:o,values:r,errors:s,isSubmitting:a,heading:"Create Normaliser",accountId:n}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(Yw,{item:!0,children:(0,fe.jsx)(ie.$n,{name:"create-normaliser__button--create",color:"success",submit:!0,disabled:a,children:"Create Normaliser"})})})]})})},Kw=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,Qw=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Zw=function(e){let{id:n,accountId:t,showNotification:a}=e;const{values:i,setValues:l,errors:r,validate:o,loading:s}=function(e){const[n,t,a,i]=qw(),[l,r]=(0,g.useState)(!0),o=(0,C.m)();return(0,g.useEffect)(()=>{!async function(){const{data:n,error:a}=await o.query({query:Nw,variables:{id:e}}).finally(()=>{r(!1)});if(!a&&n&&n.getNormaliserById){const e=n.getNormaliserById,a=Iw(e);t({...e,type:e?.type?.id||null,scope:a,startDate:e.startDate?Ln(e.startDate):null,endDate:e.endDate?Ln(e.endDate):null})}}()},[e]),{values:n,setValues:t,errors:a,validate:i,loading:l}}(n),[d,c]=(0,g.useState)(!1),[u]=(0,ln.n)(Aw);return(0,fe.jsx)(Kw,{name:"update-normaliser",children:s?(0,fe.jsx)(Rc,{name:"ConfigurationNormaliserContainer__Loading"}):(0,fe.jsxs)("form",{name:"update-normaliser__form",onSubmit:async e=>{if(e.preventDefault(),o()&&!d)try{c(!0);const{data:e}=await u({variables:{id:n,accountId:t,name:i.name,description:i.description,quantity:i.quantity,locationId:i.locationId,startDate:i.startDate?Dn(i.startDate,"YYYY-MM-DD HH:mm:ss"):null,endDate:i.endDate?Dn(i.endDate,"YYYY-MM-DD HH:mm:ss"):null,tagId:i.scope===K?i.tagId:null,type:i.type}}),l=e?.updateNormaliser?.error;l?a(l,"danger","update"):a(`The Normaliser ${i.name} has been updated!`,"success")}catch{a("Something went wrong. If the problem persists, contact support.","danger")}finally{c(!1)}},children:[(0,fe.jsx)(Gw,{setValues:l,values:i,errors:r,isSubmitted:d,heading:"Update Normaliser",accountId:t}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(Qw,{item:!0,children:(0,fe.jsx)(ie.$n,{name:"update-normaliser__button--update",color:"success",submit:!0,disabled:d,children:"Update Normaliser"})})})]})})};var Xw=t(40944),eO=t.n(Xw);const nO=["Name","Description","Quantity","Start Date","End Date","Location","Tag","Scope","Type"];function tO(e){let{accountId:n,showNotification:t,onDismiss:i}=e;const[l,r]=(0,g.useState)([]),[o,s]=(0,g.useState)(!1),d=(0,C.m)(),{data:c}=(0,x.IT)(Dw),u=c?c.getNormaliserTypes:[];return(0,fe.jsx)(cx,{template:{columns:nO,type:Zh.Dynamic,fileName:"normalisers-upload"},isUploading:o,errors:l,onFileInput:async e=>{let[i]=e;s(!0);try{const[e,l]=await async function(e,n,t,i){const[l,r]=await la(e);if(l)return[["The file you provided is not a valid XLSX, XLS or CSV file"],null];const o=eO()(r.map(e=>e.Location)),{tags:s,locations:d}=await px(n,t,o),c=function(e,n,t,i){const l=[];return e.length||l.push("Your spreadsheet is empty, please add some rows"),e.forEach((e,r)=>{const o=e.Scope||"",s=r+2,d=parseInt(e.Quantity,10),c=o.toUpperCase()===Y,u=o.toUpperCase()===K,p=!e.Location,m=!e.Tag,f=i.map(e=>e.name);e.Name||l.push(`Row ${s}: Name should be defined`),e.Description||l.push(`Row ${s}: Description should be defined`),c&&p&&l.push(`Row ${s}: Location should be defined if the scope of the normaliser is location`),u&&m&&l.push(`Row ${s}: Tag should be defined if the scope of the normaliser is tag`),o.toUpperCase()in a||l.push(`Row ${s}: Column Scope should be one of: ${H}, ${Y} or ${K}`),!c||t[e.Location]||p||l.push(`Row ${s}: Location ${e.Location} wasn't found in your account`),!u||n[e.Tag]||m||l.push(`Row ${s}: Tag ${e.Tag} wasn't found in your account`),("number"!=typeof d||Number.isNaN(d))&&l.push(`Row ${s}: Quantity should be defined`),e.Type||l.push(`Row ${s}: Type should be defined and equal to one of: ${f.join(", ")}`),"string"!=typeof e.Type||f.find(n=>n.toLowerCase()===e.Type.toLowerCase())||l.push(`Row ${s}: Type is not valid, should be one of: ${f.join(", ")}`)}),l}(r,s,d,i);if(c.length)return[c,null];const u=r.map(e=>{const n=function(e){return"string"==typeof e.Scope?e.Scope.toUpperCase():H}(e),a=d[e.Location],l=s[e.Tag],r=n===Y&&a?a.id:null,o=n===K&&l?l.id:null;return{id:(0,Wa.A)(),accountId:t,locationId:r,tagId:o,name:e.Name,description:e.Description,quantity:parseInt(e.Quantity,10),startDate:e["Start Date"]?sa(e["Start Date"]).format("YYYY-MM-DD 00:00:00"):null,endDate:e["End Date"]?sa(e["End Date"]).format("YYYY-MM-DD 23:59:59"):null,type:i.find(n=>{let{name:t}=n;return t.toLowerCase()===e.Type.toLowerCase()}).id}});return[c,await n.mutate({mutation:Rw,variables:{normalisers:u}})]}(i,d,n,u),o=l?.data?.createNormalisers?.errors||e;r(o),s(!1),o.length||t("Your normalisers have been successfully uploaded!","success")}catch(e){t(`Something went wrong, normalisers weren't uploaded. If the problem persists, contact support. ${e}`,"danger")}},onDismiss:i})}const aO=(0,le.default)(gu)`
  & > div {
    width: auto;
`,iO=(0,le.default)(ie.fv)`
  padding-left: ${e=>e.theme.geometry.sm.spacing};
`,lO=(0,le.default)(ie.$n)`
  width: 100%;
`,rO=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`;var oO=function(e){return e.create="create",e.update="update",e.upload="upload",e}(oO||{});const sO=function(e){let{accountId:n}=e;const[t,a]=(0,g.useState)({accountId:n,search:{value:""},createModal:{show:!1},updateModal:{id:"",show:!1},uploadModal:{id:"",show:!1},notification:{message:null,color:null}}),[i,l]=(0,g.useState)({}),r=lr(),o=(0,C.m)(),s=(0,g.useCallback)(()=>i?.api?.refreshServerSide({purge:!0}),[i]);(0,g.useEffect)(()=>{i?.api?.setColumnFilterModel("name",{filterType:"text",type:"contains",filter:t.search.value}),i.api?.onFilterChanged()},[i?.api,t.search.value]);const d=e=>{let{target:{value:n}}=e;a(e=>({...e,search:{...e.search,value:n}}))},c=(e,n)=>{e===oO.create&&a(e=>({...e,createModal:{show:!0}})),e===oO.update&&a(e=>({...e,updateModal:{id:n,show:!0}})),e===oO.upload&&a(e=>({...e,uploadModal:{id:"",show:!0}}))},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";a(a=>("function"==typeof n&&n(),{...a,createModal:{show:"create"===t},updateModal:{id:"",show:"update"===t},uploadModal:{id:"",show:!1},notification:{message:e.message||null,color:e.color||null}}))};return(0,fe.jsxs)(ie.fv,{name:"ConfigurationNormaliserContainer",container:!0,fullHeight:!0,children:[(0,fe.jsxs)(aO,{name:"ConfigurationNormaliserContainer__Controls",icon:"subscript",iconColor:"primary",title:"Normalisers",children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationNormaliserContainer__Controls__Search",value:t.search.value,onChange:d,onSearch:d,hideButton:!0})}),(0,fe.jsx)(iO,{item:1,container:!0,children:(0,fe.jsx)(lO,{name:"ConfigurationNormaliserContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>c(oO.create),children:"+ Add Normaliser"})}),(0,fe.jsx)(iO,{item:2,container:!0,children:(0,fe.jsx)(lO,{name:"ConfigurationNormaliserContainer__Controls__Button--upload",size:"md",color:"secondary",inline:!0,onClick:()=>c(oO.upload),children:"Upload Normalisers"})})]}),r.account.includes("getAll")&&(0,fe.jsx)(rO,{children:(0,fe.jsx)(wu,{value:t.accountId,onChange:e=>{let{id:n}=e;return a(e=>({...e,accountId:n}))}})}),t.createModal.show&&(0,fe.jsx)(ie.aF,{size:"md",show:!0,name:"ConfigurationNormaliserContainer__Modal--create",dismissable:!0,onDismiss:u,children:(0,fe.jsx)(Hw,{showNotification:(e,n,t)=>u({message:e,color:n},s,t),accountId:t.accountId})}),t.updateModal.show&&(0,fe.jsx)(ie.aF,{size:"md",show:!0,name:"ConfigurationNormaliserContainer__Modal--create",dismissable:!0,onDismiss:u,children:(0,fe.jsx)(Zw,{id:t.updateModal.id,showNotification:(e,n,t)=>u({message:e,color:n},s,t),accountId:t.accountId})}),t.uploadModal.show&&(0,fe.jsx)(tO,{showNotification:(e,n)=>u({message:e,color:n},s),accountId:t.accountId,onDismiss:u}),t.notification.message&&(0,fe.jsx)(ie.Eg,{name:"ConfigurationNormaliserContainer__Notification",show:!0,color:t.notification.color,onClose:()=>{a(e=>({...e,notification:{message:"",color:null}}))},children:t.notification.message}),(0,fe.jsx)(Ew,{accountId:t.accountId,fetchRows:async e=>{!function(e){const n={field:"type",order:"asc"},t={field:"name",order:"asc"};Array.isArray(e.sort)?(e.sort.find(e=>"name"===e.field)||(e.sort=[t,...e.sort]),e.sort.find(e=>"type"===e.field)||(e.sort=[n,...e.sort])):e.sort=[n,t]}(e);const{data:{getNormalisersPage:{rows:n,totalRows:t}}}=await o.query({query:kw,variables:{...e,offset:e.offset||0,limit:e.limit||25},fetchPolicy:"network-only"});return{rows:n,totalRows:t}},showModal:c,setGridApi:l},t.accountId)]})},dO=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,cO=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 0 0 ${e=>e.theme.geometry.xl.spacing};
  margin-right: ${e=>e.theme.geometry.sm.spacing};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,uO=e=>{let{data:n,onEdit:t}=e;return(0,fe.jsx)(dO,{children:(0,fe.jsx)(cO,{onClick:()=>t(n),children:(0,fe.jsx)(ie.In,{name:`alias-row__edit--${n?.id}`,icon:"pencil-alt"})})})},pO=(0,le.default)(ie.fI)`
  flex: 1;
  display: flex;
  height: 100%;
  padding: ${e=>e.theme.geometry.md.spacing};
`,mO=function(e){let{fetchRows:n,setGridApi:t,showModal:a}=e;const i=qr({autoFit:!0}),l={action:e=>(0,fe.jsx)(uO,{...e,onEdit:a})},r={rowHeight:50,pagination:!0,paginationPageSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!1,filter:!0,cellStyle:{padding:"10px",height:"auto",wordBreak:"break-word",lineHeight:"20px"}},columnDefs:[{headerName:"Name",field:"name",filter:"agTextColumnFilter",minWidth:300},{headerName:"Aliased Name",field:"parentItem.name",filter:"agTextColumnFilter",minWidth:300},{headerName:"Actions",cellRenderer:"action",filter:!1,sortable:!1,minWidth:80}],rowStyle:{width:"100%",display:"flex",alignItems:"center"}};return(0,fe.jsx)(pO,{children:(0,fe.jsx)(Pg,{...r,cacheBlockSize:r.paginationPageSize,onFirstDataRendered:i.onFirstDataRendered,onFilterChanged:i.onFilterChanged,onSortChanged:i.onSortChanged,onColumnVisible:i.onSaveGridColumnState,onColumnPinned:i.onSaveGridColumnState,onColumnResized:i.onSaveGridColumnState,onColumnMoved:i.onSaveGridColumnState,onColumnRowGroupChanged:i.onSaveGridColumnState,onColumnValueChanged:i.onSaveGridColumnState,onColumnPivotChanged:i.onSaveGridColumnState,components:l,onGridReady:e=>{i.onGridReady(e),t({api:e.api}),e.api.setGridOption("serverSideDatasource",{async getRows(e){let{request:t,fail:a,success:i}=e;try{const{startRow:e,sortModel:a,filterModel:l}=t,o=jn(l),{rows:s,totalRows:d}=await n({offset:e||0,limit:r.paginationPageSize,sort:wn(a),filters:o});return i({rowData:s,rowCount:d}),{rows:s,totalRows:d}}catch(e){throw a(),e}}})}})})};var fO=t(40337),yO=t.n(fO),gO=t(18552),hO=t.n(gO),xO=t(70303),TO=t.n(xO),bO=t(28342),vO=t.n(bO);const CO=S.J1`
  fragment aliasFragment on Alias {
    id
    name
    parentId
    aliasType
    parentItem {
      id
      name
    }
  }
`,kO=(S.J1`
  mutation createAlias(
    $id: ID!
    $name: String!
    $parentId: ID!
    $accountId: ID!
    $aliasType: AliasType!
    $energyType: TransactionType
  ) {
    createAlias(
      input: {
        id: $id
        name: $name
        parentId: $parentId
        accountId: $accountId
        aliasType: $aliasType
        energyType: $energyType
      }
    ) {
      ...aliasFragment
    }
  }
  ${CO}
`,S.J1`
  mutation createAliases($input: [AliasInput!]!) {
    createAliases(input: $input) {
      ...aliasFragment
    }
  }
  ${CO}
`),SO=(S.J1`
  mutation updateAlias(
    $id: ID!
    $name: String!
    $parentId: ID!
    $accountId: ID!
    $aliasType: AliasType!
    $energyType: TransactionType
  ) {
    updateAlias(
      input: {
        id: $id
        name: $name
        parentId: $parentId
        accountId: $accountId
        aliasType: $aliasType
        energyType: $energyType
      }
    ) {
      ...aliasFragment
    }
  }
  ${CO}
`,S.J1`
  mutation UpdateTransactionDataImportBatchStatus($id: ID!) {
    updateTransactionDataImportBatchStatus(id: $id) {
      id
      status
    }
  }
`),NO=S.J1`
  query getAliasByValueBatch($GetAliasBatchInput: AliasValueBatchInput!) {
    getAliasByValueBatch(input: $GetAliasBatchInput) {
      getParentResponses {
        id
        name
        parentId
        aliasType
        parentItem {
          id
          name
        }
      }
    }
  }
`,AO=S.J1`
  query GetDataImportBatchById($id: ID!) {
    getDataImportBatchById(id: $id) {
      id
      errorsCount
      fileName
      status
      failedReason
      timeStamp
      rowsUploaded
      errors {
        fieldName
        value
        rows
        message
        actionRequired
        possibleAliases
      }
    }
  }
`,RO=S.J1`
  query getEnergySourceByAccountIdAndType(
    $accountId: ID!
    $type: TransactionType
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getEnergySourceByAccountIdAndType(
      accountId: $accountId
      type: $type
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        name
        id
        type {
          name
          id
        }
        locationPoint {
          name
          location {
            id
            name
          }
        }
      }
    }
  }
`,DO=S.J1`
  fragment MarketCarbonConversionFactorFields on MarketCarbonConversionFactor {
    id
    supplierId
    supplierName
    tariff
    renewablePercentage
    isGlobal
    accountIds
    generationFactor
    wellToTankForGenerationFactor
    wellToTankForTransmissionAndDistributionFactor
    transmissionAndDistributionFactor
    startDate
    endDate
    reference
    notes
  }
`,LO=S.J1`
  query getMarketCarbonConversionFactors($accountId: ID) {
    getMarketCarbonConversionFactors(accountId: $accountId) {
      ...MarketCarbonConversionFactorFields
    }
  }
  ${DO}
`,IO=S.J1`
  mutation createMarketCarbonConversionFactor($factor: MarketCarbonConversionFactorInput!) {
    createMarketCarbonConversionFactor(factor: $factor) {
      ...MarketCarbonConversionFactorFields
    }
  }
  ${DO}
`,jO=S.J1`
  mutation editMarketCarbonConversionFactor($factor: MarketCarbonConversionFactorInput!) {
    updateMarketCarbonConversionFactor(factor: $factor) {
      ...MarketCarbonConversionFactorFields
    }
  }
  ${DO}
`,wO=S.J1`
  mutation deleteMarketCarbonConversionFactor($id: ID!) {
    deleteMarketCarbonConversionFactor(id: $id) {
      ...MarketCarbonConversionFactorFields
    }
  }
  ${DO}
`;var OO=t(28704),EO=t.n(OO);const _O=le.default.div`
  margin: ${e=>e.theme.geometry.sm.spacing};
  display: flex;
  flex-direction: column;
`,FO=le.default.div`
  margin: ${e=>e.theme.geometry.sm.spacing};
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
`,PO=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,BO=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,UO=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,$O=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,MO=e=>{let{id:n,name:t}=e;return{value:n,label:t}},VO={WASTESTREAM:{query:vO(),accessor:"getWasteStreamsByAccountId.wasteStreams",mapFunction:MO},WASTEIN:{query:TO(),accessor:"getWasteInsByAccountId",mapFunction:MO},WASTEOUT:{query:hO(),accessor:"getWasteOutsByAccountId",mapFunction:MO},WASTETREATMENTPROCESS:{query:cs,accessor:"getAllWasteTreatmentProcesses",mapFunction:MO},WASTECONTRACTOR:{query:yO(),accessor:"getAllWasteContractors",mapFunction:MO},WASTECARRIER:{query:EO(),accessor:"getSuppliers.suppliers",mapFunction:MO},CONTAINERTYPESIZE:{query:us,accessor:"getContainerTypeSizePage.typeSizes",mapFunction:MO},METER:{ELECTRICITY:{query:RO,accessor:"getEnergySourceByAccountIdAndType.rows",mapFunction:MO},GAS:{query:RO,accessor:"getEnergySourceByAccountIdAndType.rows",mapFunction:MO},WATER:{query:RO,accessor:"getEnergySourceByAccountIdAndType.rows",mapFunction:MO}},LOCATIONPOINT:{query:ms,accessor:"getLocationsPage.rows",mapFunction:MO},TRANSPORT:{query:xs,accessor:"getAllTransportTypes",mapFunction:MO},FUELTYPE:{query:fs,accessor:"getAllFuelTypes",mapFunction:MO},TRANSPORTFUELTYPE:{query:ys,accessor:"getAllTransportFuelTypes",mapFunction:MO},TRANSPORTSUBTYPE:{query:gs,accessor:"getAllTransportSubTypes",mapFunction:MO},JOURNEYTARGET:{query:hs,accessor:"getAllJourneyTargets",mapFunction:MO},UNIT:{query:Ts,accessor:"getAllUnits",mapFunction:MO},ACCURACY:{query:bs,accessor:"getAllAccuracyTypes",mapFunction:MO},CURRENCY:{query:vs,accessor:"getAllCurrencyTypes",mapFunction:MO},[gn.VT.Tariff]:{query:LO,accessor:"getMarketCarbonConversionFactors",mapFunction:e=>({label:e.tariff,value:e.id})}},GO=(e,n)=>{if(!n)return e;const t=n.trim().toLowerCase();return e.filter(e=>e.label.trim().toLowerCase().includes(t))},zO=e=>{let{aliasData:n,onComplete:t}=e;const[a,i]=(0,g.useState)(""),[l,r]=(0,g.useState)(null),[o,s]=(0,g.useState)(!1),d=(0,C.m)(),c=Je(),u=lr(),{showNotification:p}=tn(),m=(0,g.useCallback)(()=>{p("Something went wrong! If the problem persists, please contact support.","danger")},[p]),f=(0,g.useCallback)(()=>{i(""),r(null),s(!1),p("Success! Your alias has been updated.","success"),t()},[i,r,s,p,t]),[y]=(0,ln.n)(ps,{onCompleted:e=>f(e),onError:()=>m(),variables:{id:n.aliasId,name:a,parentId:l?.value,accountId:n.accountId,aliasType:n.aliasType,energyType:n?.energyType},refetchQueries:["GetAliasesPage"]}),{data:h,loading:T}=(0,x.IT)(ss,{notifyOnNetworkStatusChange:!0,variables:{aliasId:n.aliasId,accountId:n.accountId,aliasType:n.aliasType,energyType:n?.energyType}});h&&!a&&(i(h.getAliasByIdAndType.name),r({label:h.getAliasByIdAndType.parentItem.name,value:h.getAliasByIdAndType.parentItem.id}));const[b]=(0,ln.n)(ds,{variables:{aliasId:n.aliasId,accountId:n.accountId,aliasType:n.aliasType},refetchQueries:["GetAliasesPage"]}),v=n.aliasType===gn.VT.Meter?VO[n.aliasType][n.energyType]:VO[n.aliasType],k=!!u.data.find(e=>e.startsWith("deleteAlias"));return(0,fe.jsxs)(_O,{children:[T&&(0,fe.jsx)(FO,{children:(0,fe.jsx)(ie.Ip,{size:"md"})}),h&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(UO,{size:"lg",children:"Update Alias"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($O,{item:!0,children:[(0,fe.jsx)(BO,{children:(0,fe.jsx)(PO,{children:"Name"})}),(0,fe.jsx)(ie.ks,{name:"aliasedName",onChange:e=>i(e.target.value),value:a,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)($O,{item:!0,children:[(0,fe.jsx)(BO,{children:(0,fe.jsx)(PO,{children:"Aliased Name"})}),n.aliasType===gn.VT.Locationpoint&&(0,fe.jsx)(NA,{accountId:c,onChange:e=>r({label:e.target.select.label,value:e.target.select.value}),value:l}),n.aliasType===gn.VT.Wastein&&(0,fe.jsx)(LA,{accountId:c,onChange:e=>r({label:e.target.select.label,value:e.target.select.value}),value:l}),n.aliasType===gn.VT.Wasteout&&(0,fe.jsx)(RA,{accountId:c,onChange:e=>r({label:e.target.select.label,value:e.target.select.value}),value:l}),![gn.VT.Locationpoint,gn.VT.Wastein,gn.VT.Wasteout].includes(n.aliasType)&&(0,fe.jsx)(ie.l6,{name:"item-to-alias",onChange:e=>{r({label:e.target.select.label,value:e.target.select.value})},value:l,loadOptions:async e=>{try{const t=await d.query({query:v.query,variables:{filterValue:e,accountId:n.accountId,type:n.energyType}}),a=t.data?(e=>xn().get(e,v.accessor).map(v.mapFunction))(t.data):[];return{options:GO(a,e)}}catch(e){console.error(e)}},debounceTimeout:1e3,defaultOptions:!0})]})}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsx)($O,{item:!0,children:(0,fe.jsx)(ie.$n,{name:"update-alias__button",color:"success",submit:!0,onClick:()=>{s(!0),y()},disabled:!l||!a||o,children:"Update Alias"})}),k&&(0,fe.jsx)($O,{item:!0,children:(0,fe.jsx)(ie.$n,{name:"delete-alias__button",color:"danger",submit:!0,onClick:async()=>{if(window.confirm("Are you sure you want to delete this alias?"))try{s(!0),await b(),p("Alias has been deleted!","success"),s(!1),t()}catch(e){p(`${e.message}`,"danger")}},disabled:!l||!a||o,children:"Delete Alias"})})]})]})]})},WO=(0,le.default)(ie.tU)`
  &.MuiTabs-root {
    min-height: 60px;
  }
`,qO=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,JO=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,YO=(0,le.default)(ie.fI)`
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
`,HO=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
`;function KO(e){let{error:n,loading:t,showUpdateModal:a,setGridApi:i,fetchRows:l}=e;return n?(0,fe.jsx)($c,{error:n,retry:l}):t?(0,fe.jsx)(HO,{children:(0,fe.jsx)(ie.Ip,{})}):(0,fe.jsx)(mO,{showModal:a,setGridApi:i,fetchRows:l})}function QO(e){let{accountId:n,aliasTypes:t}=e;const a=(0,C.m)(),[i,l]=(0,g.useState)({}),r=lr(),[o,s]=(0,g.useState)(0),[d,c]=(0,g.useState)({accountId:n,updateModal:{alias:null},notification:{show:!1,color:"success",message:""}}),{loading:u,error:p}=function(e){let{accountId:n,aliasType:t,energyType:a}=e;const{data:{getAliasesPage:i=[]}={},loading:l,error:r,networkStatus:o,refetch:s}=(0,x.IT)(Cs,{variables:{accountId:n,aliasType:t,energyType:a},notifyOnNetworkStatusChange:!0,skip:!n});return{data:i,loading:l,error:r,networkStatus:o,refetch:s}}(n,t[o],t[o]),m=(0,g.useCallback)(()=>i?.api?.refreshServerSide({purge:!0}),[i]),f=async e=>{const{data:{getAliasesPage:{rows:n,totalRows:i}}}=await a.query({query:Cs,variables:{...e,accountId:d.accountId,aliasType:t[o].aliasType,energyType:t[o].energyType||null},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0});return{rows:n,totalRows:i}},y=e=>{c(n=>({...n,updateModal:{alias:e}}))},h=()=>{c(e=>({...e,updateModal:{alias:null}})),m()},T=(0,g.useCallback)(e=>{let{aliasType:n,energyType:t}=e;switch(t){case void 0:case void 0:case void 0:case void 0:case void 0:case void 0:case void 0:case"WATER":case"GAS":case"ELECTRICITY":case void 0:case void 0:case void 0:case void 0:case void 0:case void 0:case void 0:return(0,fe.jsx)(KO,{showUpdateModal:y,setGridApi:l,fetchRows:f,loading:u,error:p});default:return null}},[t[o].aliasType,t[o].energyType]);return(0,fe.jsxs)(JO,{children:[(0,fe.jsx)(gu,{name:"ConfigurationContractorsContainer__Controls",icon:"link",iconColor:"primary",title:"Aliases",children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(Mx,{fetchRows:f,gridApi:i.api,defaultExportFileName:"aliases",columnsToSkip:["Actions"],label:"Export Aliases"})})}),r.account.includes("getAll")&&(0,fe.jsx)(qO,{children:(0,fe.jsx)(wu,{value:d.accountId,onChange:e=>{let{id:n}=e;return c(e=>({...e,accountId:n}))}})}),(0,fe.jsx)(WO,{variant:"fullWidth",value:o,onChange:(e,n)=>s(n),children:t.map(e=>{let{label:n}=e;return(0,fe.jsx)(ie.oz,{label:n},n)})}),(0,fe.jsx)(YO,{children:(0,fe.jsx)(ie.Kp,{value:o,index:o,children:(0,fe.jsx)(T,{aliasType:t[o].aliasType,energyType:t[o].energyType})})}),(0,fe.jsx)(ie.Eg,{name:"update-alias__notification",show:d.notification.show,color:d.notification.color,onClose:()=>{c(e=>({...e,notification:{...e.notification,show:!1}}))},children:d.notification.message}),d.updateModal.alias&&(0,fe.jsx)(ie.aF,{size:"md",show:!0,name:"ConfigurationAliasContainer__Modal--update",dismissable:!0,onDismiss:h,height:"auto",maxHeight:"90vh",children:(0,fe.jsx)(zO,{aliasData:{aliasId:d.updateModal.alias.id,typeId:d.updateModal.alias?.parentItem?.typeId,energyType:t[o].energyType,aliasType:t[o].aliasType,accountId:d.accountId},onComplete:h,triggerNotification:e=>{c(n=>({...n,notification:e}))}})})]})}const ZO=[{aliasType:gn.VT.Wastestream,label:"Waste Stream"},{aliasType:gn.VT.Wastein,label:"Waste In Location"},{aliasType:gn.VT.Wasteout,label:"Waste Out Location"},{aliasType:gn.VT.Containertypesize,label:"Container Type"},{aliasType:gn.VT.Wastetreatmentprocess,label:"Treatment Process"},{aliasType:gn.VT.Wastecontractor,label:"Waste Contractor"},{aliasType:gn.VT.Wastecarrier,label:"Waste Carrier"}],XO=function(e){let{accountId:n}=e;return(0,fe.jsx)(QO,{accountId:n,aliasTypes:ZO})},eE=[{aliasType:gn.VT.Meter,energyType:"ELECTRICITY",label:"Electricity"},{aliasType:gn.VT.Meter,energyType:"GAS",label:"Gas"},{aliasType:gn.VT.Meter,energyType:"WATER",label:"Water"}],nE=function(e){let{accountId:n}=e;return(0,fe.jsx)(QO,{accountId:n,aliasTypes:eE})},tE=[{aliasType:gn.VT.Transportfueltype,label:"Transport Fuel Type"},{aliasType:gn.VT.Transport,label:"Transport"},{aliasType:gn.VT.Journeytarget,label:"Purpose"},{aliasType:gn.VT.Transportsubtype,label:"Transport Subtype"}],aE=function(e){let{accountId:n}=e;return(0,fe.jsx)(QO,{accountId:n,aliasTypes:tE})},iE=[{aliasType:gn.VT.Locationpoint,label:"Location"}],lE=function(e){let{accountId:n}=e;return(0,fe.jsx)(QO,{accountId:n,aliasTypes:iE})},rE=[{aliasType:gn.VT.Tariff,label:"Tariffs"},{aliasType:gn.VT.Fueltype,label:"Fuel Type"}],oE=function(e){let{accountId:n}=e;return(0,fe.jsx)(QO,{accountId:n,aliasTypes:rE})},sE=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,dE=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,cE=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 ${e=>e.theme.geometry.xxl.spacing} 0 0;

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,uE=e=>{let{dashboardId:n,dashboardName:t,profileImage:a,onEdit:i}=e;return(0,fe.jsxs)(sE,{name:`account-row--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(dE,{name:`account-row__profile-picture--${n}`,src:a,size:"xs",accountName:t}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${n}`,size:"md",children:t})}),(0,fe.jsx)(cE,{onClick:i,children:(0,fe.jsx)(ie.In,{name:`account-row__edit--${n}`,icon:"pencil-alt"})})]})},pE=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,mE=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,fE=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,yE=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,gE=[{value:"LEARN",label:"Engage"},{value:"COMPLY",label:"Comply"},{value:"DATA",label:"Data"},{value:"SURVEY",label:"Survey"}],hE=[{value:"COMPLY",label:"Comply"},{value:"ELECTRICITY",label:"Electricity"},{value:"GAS",label:"Gas"},{value:"INTEL",label:"Intelligence"},{value:"LEARN",label:"Engage"},{value:"MATERIALS",label:"Materials"},{value:"MIXED",label:"Mixed"},{value:"TRAVEL",label:"Travel"},{value:"WASTE",label:"Waste"},{value:"WATER",label:"Water"}],xE=[{value:gn.qT.Quicksight,label:"Quicksight"},{value:gn.qT.Custom,label:"Custom"}];class TE extends g.Component{render(){return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(fE,{size:"lg",children:this.props.heading}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(yE,{item:!0,children:[(0,fe.jsx)(mE,{children:(0,fe.jsx)(pE,{children:"Dashboard Name"})}),(0,fe.jsx)(ie.ks,{disabled:this.props.isSubmitted,onChange:this.props.handleChange,name:"dashboardName",value:this.props.values.dashboardName.text,error:this.props.values.dashboardName.error,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(yE,{item:!0,children:[(0,fe.jsx)(mE,{children:(0,fe.jsx)(pE,{children:"Description"})}),(0,fe.jsx)(ie.fs,{size:"lg",disabled:this.props.isSubmitted,onChange:this.props.handleChange,name:"description",value:this.props.values.description.text,error:this.props.values.description.error,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(yE,{item:!0,children:[(0,fe.jsx)(mE,{children:(0,fe.jsx)(pE,{children:"Content Area"})}),(0,fe.jsx)(ie.l6,{name:"area",disabled:this.props.isSubmitted,onChange:this.props.handleChange,value:this.props.values.area.text,error:this.props.values.area.error,options:gE})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(yE,{item:!0,children:[(0,fe.jsx)(mE,{children:(0,fe.jsx)(pE,{children:"Thumbnail Type"})}),(0,fe.jsx)(ie.l6,{name:"thumbnail",disabled:this.props.isSubmitted,onChange:this.props.handleChange,value:this.props.values.thumbnail.text,error:this.props.values.thumbnail.error,options:hE})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(yE,{item:!0,children:[(0,fe.jsx)(mE,{children:(0,fe.jsx)(pE,{children:"Type"})}),(0,fe.jsx)(ie.l6,{name:"provider",disabled:this.props.isSubmitted,onChange:this.props.handleChange,value:this.props.values.provider.text,error:this.props.values.provider.error,options:xE})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(yE,{item:!0,children:[(0,fe.jsx)(mE,{children:(0,fe.jsx)(pE,{children:"Quicksight Dashboard Id"})}),(0,fe.jsx)(ie.ks,{disabled:this.props.isSubmitted,onChange:this.props.handleChange,name:"providerId",value:this.props.values.providerId.text,error:this.props.values.providerId.error,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(yE,{item:!0,children:[(0,fe.jsx)(mE,{children:(0,fe.jsx)(pE,{children:"Custom Dashboard Configuration"})}),(0,fe.jsx)(ie.fs,{size:"lg",disabled:this.props.isSubmitted,onChange:this.props.handleChange,name:"customDashboardConfiguration",value:this.props.values.customDashboardConfiguration.text,error:this.props.values.customDashboardConfiguration.error,box:!0})]})})]})}}const bE=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,vE=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`;class CE extends g.Component{constructor(e){super(e),this.validateField=e=>""===e?"Field cannot be empty":null,this.hideNotification=()=>this.setState({notification:{message:null,color:null}}),this.handleChange=e=>{const n=e.target,t="select"===n.type?n.select.value:n.value;this.setState({values:{...this.state.values,[e.target.name]:{text:t,error:null}}})},this.handleCheckboxChange=e=>{this.setState({values:{...this.state.values,[e.target.name]:{text:e.target.checked,error:null}}})},this.handleSubmit=(e,n)=>{e.preventDefault();const t=this.state.values;if(t.dashboardName.error=this.validateField(t.dashboardName.text),t.description.error=this.validateField(t.description.text),t.area.error=this.validateField(t.area.text),t.customDashboardConfiguration.text)try{JSON.parse(this.state.values.customDashboardConfiguration.text)}catch(e){t.customDashboardConfiguration.error="Invalid JSON"}t.dashboardName.error||t.description.error||t.area.error||t.customDashboardConfiguration.error?this.setState({values:t}):(n({variables:{id:(0,Wa.A)(),name:this.state.values.dashboardName.text,description:this.state.values.description.text,area:this.state.values.area.text,thumbnail:this.state.values.thumbnail.text,provider:this.state.values.provider.text,providerId:this.state.values.providerId.text,sheets:this.state.values.customDashboardConfiguration.text?JSON.parse(this.state.values.customDashboardConfiguration.text):null}}),this.setState({isSubmitted:!0}))},this.onCreateComplete=()=>this.props.onSuccess(`The dashboard ${this.state.values.dashboardName.text}, has been created!`,"success"),this.onCreateError=()=>{this.setState({notification:{message:"Something went wrong. If the problem persists, contact support.",color:"danger"},hasError:!0,isSuccess:!1,isSubmitted:!1})},this.onCheckboxClick=e=>{this.setState({accessControls:{...this.state.accessControls,[e.target.name]:e.target.checked}})},this.state={hasError:!1,isSuccess:!1,values:{dashboardName:{text:"",error:""},description:{text:"",error:""},area:{text:"",error:""},thumbnail:{text:"",error:""},providerId:{text:"",error:""},customDashboardConfiguration:{text:"",error:""},provider:{text:gn.qT.Quicksight,error:""}},notification:{message:"",color:"success",id:null},isSubmitted:!1}}render(){return(0,fe.jsxs)(bE,{name:"create-dashboard",children:[this.state.notification.message&&(0,fe.jsxs)(ie.Eg,{name:"create-dashboard__notification",show:!0,color:this.state.notification.color,onClose:this.hideNotification,children:[this.state.notification.message,this.state.notification.id&&(0,fe.jsx)("p",{name:"create-dashboard__id",style:{display:"none"},children:this.state.notification.id})]}),(0,fe.jsx)(me.s,{mutation:ST,onCompleted:this.onCreateComplete,onError:this.onCreateError,children:e=>(0,fe.jsxs)("form",{name:"create-dashboard__form",onSubmit:n=>{this.handleSubmit(n,e)},children:[(0,fe.jsx)(TE,{handleChange:this.handleChange,handleCheckboxChange:this.handleCheckboxChange,values:this.state.values,isSubmitted:this.state.isSubmitted,heading:"Create Dashboard"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(vE,{item:!0,children:(0,fe.jsx)(ie.$n,{name:"create-dashboard__button--create",color:"success",submit:!0,disabled:!this.state.values.dashboardName.text||this.state.isSubmitted,children:"Create Dashboard"})})})]})})]})}}const kE=CE,SE=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,NE=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`;class AE extends g.Component{constructor(e){super(e),this.validateField=e=>""===e?"Field cannot be empty":null,this.hideNotification=()=>this.setState({notification:{message:null,color:null}}),this.handleChange=e=>{const n=e.target,t="select"===n.type?n.select.value:n.value;this.setState({values:{...this.state.values,[e.target.name]:{text:t,error:null}}})},this.handleCheckboxChange=e=>{this.setState({values:{...this.state.values,[e.target.name]:{text:e.target.checked,error:null}}})},this.handleSubmit=(e,n)=>{e.preventDefault();const t=this.state.values;if(t.dashboardName.error=this.validateField(t.dashboardName.text),t.description.error=this.validateField(t.description.text),t.provider.error=this.validateField(t.provider.text),t.area.error=this.validateField(t.area.text),t.customDashboardConfiguration.text)try{JSON.parse(this.state.values.customDashboardConfiguration.text)}catch(e){t.customDashboardConfiguration.error="Invalid JSON"}t.dashboardName.error||t.description.error||t.area.error||t.customDashboardConfiguration.error?this.setState({values:t}):(n({variables:{id:this.props.id,name:this.state.values.dashboardName.text,description:this.state.values.description.text,area:this.state.values.area.text,thumbnail:this.state.values.thumbnail.text,provider:this.state.values.provider.text,providerId:this.state.values.providerId.text,sheets:this.state.values.customDashboardConfiguration.text?JSON.parse(this.state.values.customDashboardConfiguration.text):null}}),this.setState({isSubmitted:!0}))},this.onUpdateComplete=()=>this.props.onSuccess(`The dashboard ${this.state.values.dashboardName.text}, has been updated!`,"success"),this.onUpdateError=()=>{this.setState({notification:{message:"Something went wrong. If the problem persists, contact support.",color:"danger"},hasError:!0,isSuccess:!1,isSubmitted:!1})},this.onCheckboxClick=e=>{this.setState({accessControls:{...this.state.accessControls,[e.target.name]:e.target.checked}})},this.state={hasError:!1,isSuccess:!1,loading:!0,values:{dashboardName:{text:"",error:""},description:{text:"",error:""},provider:{text:"",error:""},area:{text:"",error:""},thumbnail:{text:"",error:""},providerId:{text:"",error:""},customDashboardConfiguration:{text:"",error:""},type:{text:"",error:""}},notification:{message:"",color:"success",id:null},isSubmitted:!1}}async componentDidMount(){const e=await this.props.client.query({query:kT,variables:{id:this.props.id}});this.setState({loading:!1,values:{dashboardName:{text:e.data.getDashboard.name,error:""},description:{text:e.data.getDashboard.description,error:""},provider:{text:e.data.getDashboard.provider,error:""},area:{text:e.data.getDashboard.area,error:""},thumbnail:{text:e.data.getDashboard.thumbnailType,error:""},providerId:{text:e.data.getDashboard.providerDashboardId,error:""},provider:{text:e.data.getDashboard.provider,error:""},customDashboardConfiguration:{text:e.data.getDashboard.sheets?JSON.stringify(ll(e.data.getDashboard.sheets)):"",error:""}}})}render(){return(0,fe.jsxs)(fe.Fragment,{children:[this.state.loading&&(0,fe.jsx)(Rc,{name:"ConfigurationDashboardsContainer__Loading"}),!this.state.loading&&(0,fe.jsxs)(SE,{name:"update-dashboard",children:[this.state.notification.message&&(0,fe.jsxs)(ie.Eg,{name:"update-dashboard__notification",show:!0,color:this.state.notification.color,onClose:this.hideNotification,children:[this.state.notification.message,this.state.notification.id&&(0,fe.jsx)("p",{name:"update-dashboard__id",style:{display:"none"},children:this.state.notification.id})]}),(0,fe.jsx)(me.s,{mutation:NT,onCompleted:this.onUpdateComplete,onError:this.onUpdateError,children:e=>(0,fe.jsxs)("form",{name:"update-dashboard__form",onSubmit:n=>{this.handleSubmit(n,e)},children:[(0,fe.jsx)(TE,{handleChange:this.handleChange,handleCheckboxChange:this.handleCheckboxChange,values:this.state.values,isSubmitted:this.state.isSubmitted,heading:"Update Dashboard"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(NE,{item:!0,children:(0,fe.jsx)(ie.$n,{name:"update-dashboard__button--update",color:"success",submit:!0,disabled:!this.state.values.dashboardName.text||this.state.isSubmitted,children:"Update Dashboard"})})})]})})]})]})}}const RE=(0,Kc.W)(AE),DE=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`;class LE extends g.Component{constructor(e){var n;super(e),n=this,this.handleSearchChange=e=>this.setState({search:{...this.state.search,value:e.target.value}}),this.search=(e,n)=>{if(!n)return e;const t=new pd.vj("id");return t.addIndex("name"),t.addIndex("provider"),t.addIndex("area"),t.addDocuments(e),t.search(n)},this.showModal=(e,n)=>"create"===e?this.setState({createModal:{show:!0}}):"update"===e?this.setState({updateModal:{id:n}}):void 0,this.dismissModals=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};n.setState({createModal:{show:!1},updateModal:{id:""},notification:{message:e.message,color:e.color}},t)},this.state={search:{value:"",error:""},createModal:{show:!1},updateModal:{id:""},notification:{message:null,color:null}}}render(){return(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{name:"ConfigurationAccountsContainer__Controls",icon:"tachometer-alt",iconColor:"primary",title:"Dashboards",children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationAccountsContainer__Controls__Search",value:this.state.search.value,onChange:this.handleSearchChange,hideButton:!0})}),(0,fe.jsx)(DE,{name:"ConfigurationAccountsContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>this.showModal("create"),children:"+ Add Dashboard"})]}),(0,fe.jsx)(au.X,{query:CT,children:e=>{let{loading:n,error:t,data:a,refetch:i,networkStatus:l}=e;if(this.state.shouldRefetch&&this.setState({shouldRefetch:!1},i),n&&3!==l||4===l)return(0,fe.jsx)(Rc,{name:"ConfigurationDashboardsContainer__Loading"});if(t)return(0,fe.jsx)(ie.Kw,{error:t,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationDashboardsContainer__Error",icon:a,title:n,body:t,retry:i})}});const r=this.search(a.getAllDashboards,this.state.search.value);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(fe.Fragment,{children:[this.state.createModal.show&&(0,fe.jsx)(ie.aF,{size:"sm",show:!0,name:"ConfigurationDashboardsContainer__Modal--create",dismissable:!0,onDismiss:this.dismissModals,span:4,children:(0,fe.jsx)(kE,{onSuccess:(e,n)=>this.dismissModals({message:e,color:n},i)})}),this.state.updateModal.id&&(0,fe.jsx)(ie.aF,{size:"sm",show:!0,name:"ConfigurationDashboardsContainer__Modal--create",dismissable:!0,onDismiss:this.dismissModals,span:4,children:(0,fe.jsx)(RE,{id:this.state.updateModal.id,onSuccess:(e,n)=>this.dismissModals({message:e,color:n},i)})}),this.state.notification.message&&(0,fe.jsx)(ie.Eg,{name:"ConfigurationDashboardsContainer__Notification",show:!0,color:"success",onClose:this.hideNotification,children:this.state.notification.message})]}),(0,fe.jsxs)(fe.Fragment,{children:[!r.length&&(0,fe.jsx)(Fu,{name:"ConfigurationDashboardsContainer__NoResults",title:"There are no results for this search."}),!!r.length&&r.slice().sort((e,n)=>Hn(e.name,n.name)).map(e=>(0,fe.jsx)(uE,{dashboardId:e.id,dashboardName:e.name,onEdit:()=>this.showModal("update",e.id)},e.id))]})]})}})]})}}const IE=LE,jE=S.J1`
  query GetAllKnowledgeBases {
    getAllKnowledgeBases {
      id
      externalID
      title
      synopsis
      demoMode
    }
  }
`,wE=S.J1`
  mutation CreateKnowledgeBase($details: KnowledgeBaseDetailsInput!) {
    createKnowledgeBase(input: $details) {
      id
      externalID
      title
      synopsis
      demoMode
    }
  }
`,OE=S.J1`
  mutation UpdateKnowledgeBase($details: KnowledgeBaseDetailsInput!) {
    updateKnowledgeBase(input: $details) {
      id
      externalID
      title
      synopsis
      demoMode
    }
  }
`,EE=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,_E=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,FE=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 ${e=>e.theme.geometry.xxl.spacing} 0 0;

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,PE=e=>{let{kb:n,onEdit:t}=e;return(0,fe.jsxs)(EE,{name:`kb-row--${n.id}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(_E,{name:`kb-row__profile-picture--${n.id}`,size:"xs",accountName:n.title}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:"kb-row__tile",size:"md",children:n.title})}),(0,fe.jsx)(FE,{onClick:t,children:(0,fe.jsx)(ie.In,{name:"kb-row__edit",icon:"pencil-alt"})})]})},BE=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,UE=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,$E=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,ME=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,VE=e=>{let{heading:n,knowledgeBase:t,setKnowledgeBase:a}=e;const i=e=>{let n=e.target.value;"demoMode"===e.target.name&&(n=!t.demoMode),a({...t,[e.target.name]:n})};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)($E,{size:"lg",children:n}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ME,{item:!0,children:[(0,fe.jsx)(UE,{children:(0,fe.jsx)(BE,{children:"Title"})}),(0,fe.jsx)(ie.ks,{onChange:i,name:"title",value:t.title,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ME,{item:!0,children:[(0,fe.jsx)(UE,{children:(0,fe.jsx)(BE,{children:"Description"})}),(0,fe.jsx)(ie.fs,{onChange:i,name:"synopsis",value:t.synopsis,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ME,{item:!0,children:[(0,fe.jsx)(UE,{children:(0,fe.jsx)(BE,{children:"External ID (Builder Public Token)"})}),(0,fe.jsx)(ie.ks,{onChange:i,name:"externalID",value:t.externalID,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ME,{item:!0,children:[(0,fe.jsx)(UE,{children:(0,fe.jsx)(BE,{children:"Demo Mode (Only visible in Rio ESG owned accounts)"})}),(0,fe.jsx)(ie.Sc,{onChange:i,name:"demoMode",checked:t.demoMode})]})})]})},GE=le.default.div`
  padding: 20px;
`,zE=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,WE=e=>{let{onDismiss:n,onComplete:t}=e;const[a]=(0,ln.n)(wE,{onCompleted:()=>{t("Knowledge Base has been created.","success"),n()},onError:()=>{t("Something went wrong! Please try again later.","danger")}}),[i,l]=(0,g.useState)({title:"",synopsis:"",externalID:"",demoMode:!1});return(0,fe.jsx)(ie.aF,{size:"md",show:!0,onDismiss:()=>n(),height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(GE,{children:[(0,fe.jsx)(VE,{heading:"Create New Knowledge Base",knowledgeBase:i,setKnowledgeBase:l}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(zE,{item:!0,children:(0,fe.jsx)(ie.$n,{disabled:(i.title,i.synopsis,!i.externalID),onClick:()=>{a({variables:{details:{id:(0,Wa.A)(),...i}},refetchQueries:["GetAllKnowledgeBases"]})},children:"Submit"})})})]})})},qE=le.default.div`
  padding: 20px;
`,JE=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,YE=e=>{let{onDismiss:n,onComplete:t,selectedKb:a}=e;const[i]=(0,ln.n)(OE,{onCompleted:()=>{t("Knowledge Base has been updated.","success"),n()},onError:()=>{t("Something went wrong! Please try again later.","danger")}}),[l,r]=(0,g.useState)(a);return(0,fe.jsx)(ie.aF,{size:"md",show:!0,onDismiss:()=>n(),height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(qE,{children:[(0,fe.jsx)(VE,{heading:"Update Knowledge Base",knowledgeBase:l,setKnowledgeBase:r}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(JE,{item:!0,children:(0,fe.jsx)(ie.$n,{disabled:(l.title,l.synopsis,!l.externalID),onClick:()=>{i({variables:{details:{id:(0,Wa.A)(),...l}},refetchQueries:["GetAllKnowledgeBases"]})},children:"Submit"})})})]})})},HE=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,KE=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,QE=()=>{const[e,n]=(0,g.useState)(!1),[t,a]=(0,g.useState)(""),[i,l]=(0,g.useState)(null),{showNotification:r}=tn(),{data:o,loading:s,error:d,refetch:c}=(0,x.IT)(jE),[u,p,m]=fd(o?.getAllKnowledgeBases||[],["title"]);return(0,fe.jsxs)(ie.fv,{name:"ConfigurationKbContainer",container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{name:"ConfigurationKbContainer__Controls",icon:"brain",iconColor:"primary",title:"Knowledge Bases",children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationKbContainer__Controls__Search",value:u,onChange:e=>p(e.target.value),hideButton:!0})}),(0,fe.jsx)(HE,{name:"ConfigurationKbContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>n(!0),children:"+ Add KB"})]}),s&&(0,fe.jsx)(KE,{children:(0,fe.jsx)(ie.Ip,{})}),d&&(0,fe.jsx)($c,{error:d,retry:c}),e&&(0,fe.jsx)(WE,{onComplete:r,onDismiss:()=>n(!1)}),t&&(0,fe.jsx)(YE,{onComplete:r,onDismiss:()=>a(!1),selectedKb:i}),!s&&!d&&!m.length&&(0,fe.jsx)(Fu,{name:"ConfigurationKbsContainer__NoResults",title:"There are no results for this search."}),!s&&!!m.length&&m.slice().sort((e,n)=>Hn(e.title,n.title)).map(e=>(0,fe.jsx)(PE,{kb:e,onEdit:()=>{l(e),a(!0)}},e.id))]})},ZE=S.J1`
  query GetAllTemplates {
    getAllTemplates {
      id
      name
      parserId
    }
  }
`,XE=S.J1`
  mutation CreateTemplate($id: ID!, $name: String!, $parserId: String!) {
    createTemplate(input: { id: $id, name: $name, parserId: $parserId }) {
      id
      name
      parserId
    }
  }
`,e_=S.J1`
  mutation UpdateTemplate($id: ID!, $name: String!, $parserId: String!) {
    updateTemplate(input: { id: $id, name: $name, parserId: $parserId }) {
      id
      name
      parserId
    }
  }
`,n_=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,t_=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,a_=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 ${e=>e.theme.geometry.xxl.spacing} 0 0;

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,i_=e=>{let{template:n,onEdit:t}=e;return(0,fe.jsxs)(n_,{name:`template-row--${n.id}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(t_,{name:`template-row__profile-picture--${n.id}`,size:"xs",accountName:n.name}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:"template-row__name",size:"md",children:n.name})}),(0,fe.jsx)(a_,{onClick:t,children:(0,fe.jsx)(ie.In,{name:"template-row__edit",icon:"pencil-alt"})})]})},l_=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,r_=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,o_=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,s_=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,d_=e=>{let{heading:n,template:t,setTemplate:a}=e;const i=e=>{a({...t,[e.target.name]:e.target.value})};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(o_,{size:"lg",children:n}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(s_,{item:!0,children:[(0,fe.jsx)(r_,{children:(0,fe.jsx)(l_,{children:"Template Name"})}),(0,fe.jsx)(ie.ks,{onChange:i,name:"name",value:t.name,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(s_,{item:!0,children:[(0,fe.jsx)(r_,{children:(0,fe.jsx)(l_,{children:"Doc Parser ID"})}),(0,fe.jsx)(ie.ks,{onChange:i,name:"parserId",value:t.parserId,box:!0})]})})]})},c_=le.default.div`
  padding: 20px;
`,u_=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,p_=e=>{let{onDismiss:n,onComplete:t}=e;const[a]=(0,ln.n)(XE,{onCompleted:()=>{t({message:"Template has been created.",colour:"success"}),n()},onError:()=>{t({message:"Something went wrong! Please try again later.",colour:"danger"})}}),[i,l]=(0,g.useState)({name:"",parserId:""});return(0,fe.jsx)(ie.aF,{size:"md",show:!0,onDismiss:()=>n(),height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(c_,{children:[(0,fe.jsx)(d_,{heading:"Create New Template",template:i,setTemplate:l}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(u_,{item:!0,children:(0,fe.jsx)(ie.$n,{disabled:(i.name,!i.parserId),onClick:()=>{a({variables:{id:(0,Wa.A)(),...i},refetchQueries:["GetAllTemplates"]})},children:"Submit"})})})]})})},m_=le.default.div`
  padding: 20px;
`,f_=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,y_=e=>{let{onDismiss:n,onComplete:t,selectedTemplate:a}=e;const[i]=(0,ln.n)(e_,{onCompleted:()=>{t({message:"Template has been updated.",colour:"success"}),n()},onError:()=>{t({message:"Something went wrong! Please try again later.",colour:"danger"})}}),[l,r]=(0,g.useState)(a);return(0,fe.jsx)(ie.aF,{size:"md",show:!0,onDismiss:()=>n(),height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(m_,{children:[(0,fe.jsx)(d_,{heading:"Update Template",template:l,setTemplate:r}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(f_,{item:!0,children:(0,fe.jsx)(ie.$n,{disabled:(l.name,!l.parserId),onClick:()=>{i({variables:{id:(0,Wa.A)(),...l},refetchQueries:["GetAllTemplates"]})},children:"Submit"})})})]})})},g_=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,h_=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,x_=()=>{const[e,n]=(0,g.useState)(!1),[t,a]=(0,g.useState)(""),[i,l]=(0,g.useState)(null),[r,o]=(0,g.useState)(null),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(ZE),[p,m,f]=fd(s?.getAllTemplates||[],["name","parserId"]);return(0,fe.jsxs)(ie.fv,{name:"ConfigurationOcrContainer",container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{name:"ConfigurationOcrContainer__Controls",icon:"tachometer-alt",iconColor:"primary",title:"OCR Templates",children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationOcrContainer__Controls__Search",value:p,onChange:e=>m(e.target.value),hideButton:!0})}),(0,fe.jsx)(g_,{name:"ConfigurationOcrContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>n(!0),children:"+ Add Template"})]}),d&&(0,fe.jsx)(h_,{children:(0,fe.jsx)(ie.Ip,{})}),c&&(0,fe.jsx)($c,{error:c,retry:u}),e&&(0,fe.jsx)(p_,{onComplete:o,onDismiss:()=>n(!1)}),t&&(0,fe.jsx)(y_,{onComplete:o,onDismiss:()=>a(!1),selectedTemplate:i}),r&&(0,fe.jsx)(ie.Eg,{name:"Template__Notification",show:!0,color:r.colour,onClose:()=>o(null),children:r.message}),!d&&!c&&!f.length&&(0,fe.jsx)(Fu,{name:"ConfigurationDashboardsContainer__NoResults",title:"There are no results for this search."}),!d&&!!f.length&&f.slice().sort((e,n)=>Hn(e.name,n.name)).map(e=>(0,fe.jsx)(i_,{template:e,onEdit:()=>{l(e),a(!0)}},e.id))]})},T_=le.default.div`
  position: relative;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  & > div {
    max-height: 100%;
  }
`,b_=le.default.div`
  display: flex;
  flex-flow: column nowrap;
  width: 100%;
  height: 100%;
`;function v_(e){let{error:n,loading:t,currentTab:a,retry:i,index:l,children:r}=e;const o=!!n||t;return(0,fe.jsxs)(ie.Kp,{value:a,index:l,children:[o&&(0,fe.jsxs)(T_,{children:[n&&(0,fe.jsx)($c,{name:n.message,error:n,retry:i}),t&&(0,fe.jsx)(ie.Ip,{})]}),!n&&!t&&(0,fe.jsx)(b_,{children:r})]})}var C_=t(44773),k_=t.n(C_);const S_=S.J1`
  query getWasteStreamsByAccountId($accountId: ID!, $filterValue: String, $page: Int = 1, $pageSize: Int = 200) {
    getWasteStreamsByAccountId(accountId: $accountId, page: $page, pageSize: $pageSize, filterValue: $filterValue) {
      pageCount
      wasteStreams {
        id
        name
        ewc {
          code
          id
        }
      }
    }
  }
`;function N_(e){return{value:e.id,label:e.name}}function A_(e){let{value:n,onChange:t,createNew:a,error:i,createNewModalSize:l=6}=e;const r=Je(),o=(0,C.m)(),s=(0,g.useRef)({}),[d,c]=(0,g.useState)(!1),u=lr(),{showNotification:p}=tn();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.l6,{name:"wasteStreamId",placeholder:"Begin typing to find waste stream",value:n,error:i,defaultOptions:!0,cacheOptions:!0,loadOptions:async e=>{const n=await o.query({query:S_,variables:{accountId:r,filterValue:e}}),{wasteStreams:t,totalItemCount:i}=n.data.getWasteStreamsByAccountId;Object.assign(s.current,Pd()(t,"id"));const l=t.map(N_);return a&&u.data.find(e=>e.startsWith("createWasteStream"))&&l.unshift(Va),{options:l,total:i}},onChange:e=>{let{target:n}=e;n.select.value===Ma?c(!0):t(s.current?.[n.value])}}),d&&(0,fe.jsx)(ie.aF,{size:"md",span:l,onDimiss:()=>{c(!1)},show:!0,children:(0,fe.jsx)(rk,{accountId:r,onSuccess:(e,n,a,i)=>{p(e,n),c(!1),t(i)}})})]})}const R_=(0,f.styled)(f.Grid)`
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
`,D_=e=>{let{onSuccess:n,onError:t,onUpdate:a,refetchQueries:i,accountId:l}=e;const{showNotification:r}=tn(),[o,s]=(0,g.useState)(!1),[d,c]=(0,g.useState)(""),[u,p]=(0,g.useState)(null),[m,y]=(0,g.useState)(!1),{loading:h,error:T,data:b}=(0,x.IT)(JC),[v]=(0,ln.n)(YC,{onCompleted:e=>C(e),onError:()=>k(),update:(e,n)=>S(e,n),refetchQueries:i}),C=e=>{n&&n("Waste Stream created successfully","success",e.createWasteStream.id,Ua(e.createWasteStream))},k=()=>{r("There was an error creating the waste stream"),y(!1),t&&t("Something went wrong. If the problem continues please contact support.","danger")},S=(0,g.useCallback)((e,n)=>{a&&a(e,n)},[a]),N=(0,g.useMemo)(()=>b?.getAllEWCs?.map(e=>({label:`${e.code} - ${e.description}`,value:e.id,hazardous:e.hazardous}))||[],[b?.getAllEWCs]),A=(0,g.useCallback)(()=>{v({variables:{id:(0,Wa.A)(),name:d,ewcId:u?.value,accId:l,hazardous:o}}),y(!0)},[l,v,d,o,u?.value]),R=(0,g.useCallback)(e=>{const n=N.find(n=>n.value===e.value);s(n?.hazardous||!1),p(e)},[N]);return(0,fe.jsxs)(R_,{container:!0,children:[(0,fe.jsx)(f.TextField,{label:"Name",name:"Waste_Stream_Name",disabled:m,placeholder:"Name",onChange:e=>c(e.target.value),value:d??""}),(0,fe.jsx)(f.Select,{label:"EWC Code",name:"Waste_Stream_EWC_Code",disabled:m,options:N,value:u?.value||"",error:!!T,helperText:T?.message||"",onChange:R,isLoading:h,placeholder:h?"Loading":"Select EWC Code"}),(0,fe.jsx)(f.Checkbox,{label:"Hazardous",name:"Waste_Stream_IsHazardous",checked:o,onChange:()=>{}}),(0,fe.jsx)(f.Button,{name:"Waste_Stream_Create",variant:"contained",disabled:!b||!b.getAllEWCs||m,onClick:A,children:"Create"})]})},L_=e=>{let{value:n,onChange:t,createNew:a,label:i,error:l}=e;const r=Je(),o=lr().data.find(e=>e.startsWith("createWasteStream")),{showNotification:s}=tn(),[d,c]=(0,g.useState)(!1),u=(0,g.useMemo)(()=>({accountId:r,pageSize:St}),[r]),{data:p,loading:m,refetch:y,fetchMore:h,error:T}=(0,x.IT)(S_,{notifyOnNetworkStatusChange:!0,variables:u}),b=(0,g.useMemo)(()=>$a(p?.getWasteStreamsByAccountId?.wasteStreams||[]),[p]),v=T?.message||l,C=(0,g.useCallback)(async(e,n,a,i)=>{await y(u),t(i),c(!1),s(e,n)},[t,s,u,c,y]),k=(0,g.useCallback)(e=>{e.value===Ma?c(!0):t(e)},[t]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.AutoComplete,{placeholder:"Begin typing to find waste stream",label:i,createOption:o&&a?"Create new...":void 0,error:v,helperText:v,options:b,value:n,isLoading:m,onCreate:()=>{c(!0)},loadMore:async(e,n,t)=>{const a={page:n/e+1,pageSize:e,accountId:r};t&&(a.filterValue=t);const i=await h({variables:a});return{total:i.data.getWasteStreamsByAccountId.count,options:$a(i.data.getWasteStreamsByAccountId.wasteStreams)}},onChange:k}),d&&(0,fe.jsx)(f.Modal,{title:"New waste stream",onClose:()=>{c(!1)},open:!0,children:(0,fe.jsx)(D_,{accountId:r,onSuccess:C})})]})},I_={startDate:{columnName:"Start Date",width:2,order:1,format:e=>bn().utc(new Date(e)).format("DD/MM/YYYY")},endDate:{columnName:"Expiry",width:2,order:2,format:e=>bn().utc(new Date(e)).format("DD/MM/YYYY")},reportingYear:{columnName:"DEFRA Year",width:1,order:3},fromUnit:{columnName:"From unit",width:1,order:4},toUnit:{columnName:"To unit",width:1,order:5},value:{columnName:"Factor",width:1,order:6,valueFormatter:Un},scope:{columnName:"Scope",width:1,order:7},reference:{columnName:"Reference",width:1,order:8},note:{columnName:"Note",width:2,order:9}},j_={"Re-use":{columnName:"Re-use",width:2,valueFormatter:Un},"Open-loop":{columnName:"Open-loop",width:2,valueFormatter:Un},"Closed-loop":{columnName:"Closed-loop",width:2,valueFormatter:Un},Composting:{columnName:"Composting",width:2,valueFormatter:Un},Combustion:{columnName:"Combustion",width:2,valueFormatter:Un},Landfill:{columnName:"Landfill",width:2,valueFormatter:Un},"Anaerobic Digestion":{columnName:"Anaerobic Digestion",width:2}};function w_(e,n){const t=Object.keys(e);return t.length!==Object.keys(I_).length?12/t.length:e[n].width}function O_(e,n){return new Date(n.startDate).getTime()-new Date(e.startDate).getTime()}const E_=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  ${e=>{if(e.action)return`background-color: ${e.theme.colors.warning.highlight.background};`}};
`,__=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.profile.padding};
  word-break: break-all;
`,F_=(e,n,t)=>e[n]&&"function"==typeof e[n].format?e[n].format(t[n]):t[n];function P_(e){let{factor:n,config:t}=e;return(0,fe.jsx)(E_,{container:!0,children:Object.keys(t).map(e=>"reference"===e?(0,fe.jsx)(__,{item:!0,span:w_(t,e),children:(0,fe.jsx)(ie.Yq,{href:n.reference,target:"_blank",children:(0,fe.jsx)(ie.In,{icon:"external-link-alt"})})},e):(0,fe.jsx)(__,{item:!0,span:w_(t,e),children:(0,fe.jsx)(ie.EY,{children:F_(t,e,n)})},e))})}const B_=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing} ${e.theme.geometry.md.spacing}`};
  background: ${e=>e.theme.colors.overlay.light.background};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  border-top: 1px solid ${e=>e.theme.colors.text.light.background};
  flex: 0 0 auto;
`,U_=le.default.div`
  flex: 1 1 auto;
  overflow: scroll;
`;function $_(e){let{factors:n,config:t,children:a=null}=e;const i=Object.keys(t).sort((e,n)=>t[e].order-t[n].order);return(0,fe.jsxs)(g.Fragment,{children:[a,(0,fe.jsx)(B_,{align:"between",container:!0,children:i.map(e=>(0,fe.jsx)(ie.fv,{item:!0,span:w_(t,e),children:(0,fe.jsx)(ie.EY,{weight:"bold",children:t[e].columnName})},e))}),(0,fe.jsx)(U_,{children:n.slice().sort(O_).map(e=>(0,fe.jsx)(P_,{factor:e,config:t},e.id))})]})}function M_(e){let{ranges:n,value:t,onChange:a,includeReportingYear:i}=e;const{rangesFormatted:l,mapOfDates:r}=function(e){let{includeReportingYear:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t={},a=xn()(e).orderBy(st,"desc").map(e=>{let[a,i]=e;const l=ot([a,i],{includeReportingYear:n});return t[l]||(t[l]=[a,i]),l}).uniq().value();return{rangesFormatted:a,mapOfDates:t}}(n,{includeReportingYear:i});return(0,fe.jsx)(ie.l6,{placeholder:"Select date range",value:t?ot(t,{includeReportingYear:i}):null,options:l.map(e=>({label:e,value:e})),onChange:e=>a(r[e.target.value])})}const V_=le.default.table`
  tr:nth-child(even) {
    background: ${e=>{let{theme:n}=e;return n.colors.overlay.light.background}};
  }
`,G_=le.default.th`
  padding: ${e=>{let{theme:n}=e;return n.geometry.xs.spacing}};
  background: ${e=>{let{theme:n}=e;return n.colors.overlay.light.background}};
  border-bottom: 1px solid ${e=>{let{theme:n}=e;return n.colors.overlay.normal.background}};
  border-right: 1px solid ${e=>{let{theme:n}=e;return n.colors.overlay.normal.background}};
  font-weight: 600;
`,z_=le.default.td`
  padding: ${e=>{let{theme:n}=e;return n.geometry.xs.spacing}};
`,W_=(0,le.default)(ie.Yq)`
  display: inline;
  word-wrap: break-word;
  hyphens: auto;
`,q_=le.default.div`
  margin-top: 12px;
  margin-bottom: 12px;
  padding-left: 12px;
  padding-right: 32px;
  font-size: ${e=>{let{theme:n}=e;return n.fonts.md.size}};
  line-height: 20px;
  color: ${e=>{let{theme:n}=e;return n.colors.text.normal.background}};
`,J_=(0,le.default)(ie.EY)`
  margin-top: 12px;
  margin-bottom: 12px;
  padding-left: 12px;
  padding-right: 32px;
`,Y_=(0,le.default)(p.Link)`
  text-decoration: underline;
`;function H_(){return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(J_,{weight:"bold",children:"Reporting year"}),(0,fe.jsxs)(J_,{children:["If you would like to report in calendar years or financial years, please ask your Customer Support Manager to configure your account. Visit your"," ",(0,fe.jsx)(Y_,{to:"/configuration/accountconfig/accounts",children:"Account Configuration"})," page to see how your reporting period is currently configured."]})]})}function K_(){return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(J_,{weight:"bold",children:"Note:"}),(0,fe.jsx)(J_,{children:"Rio has been configured to account for data ranging across two annual government conversion factor datasets as above. In the unlikely event that factors for the most recent year are not yet published, the most recent available conversion factor will be used. Once new factors are published, Rio will update any calculated carbon emissions."}),(0,fe.jsx)(J_,{children:"If you wish to configure reporting year to calendar or financial you will need to contact your Customer Support Manager as Rio will not re-calculate carbon emissions."})]})}function Q_(){return(0,fe.jsxs)(fe.Fragment,{children:[H_(),K_()]})}function Z_(){return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(J_,{children:["The emission factors applied to your selected waste stream has been based on the"," ",(0,fe.jsx)(W_,{href:"https://www.gov.uk/government/collections/government-conversion-factors-for-company-reporting",target:"_blank",rel:"noopener noreferrer",children:"UK Government GHG Conversion Factors for Company Reporting"}),". Rio has associated the most appropriate conversion factor for your waste stream based on its physical properties and EWC code and the treatment processes you are applying."]}),(0,fe.jsxs)(J_,{children:["These factors cannot be used to determine the relative lifecycle merit of different waste management options. This is because the benefits of energy recovery and recycling are attributed to the user of the recycled materials, not the producer of the waste, in line with"," ",(0,fe.jsx)(W_,{href:"https://ghgprotocol.org/corporate-standard",target:"_blank",rel:"noopener noreferrer",children:"GHG Protocol Guidelines."})]})]})}function X_(){return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(J_,{children:["The emission factors applied to your natural gas consumption are based on the"," ",(0,fe.jsx)(W_,{href:"https://www.gov.uk/government/collections/government-conversion-factors-for-company-reporting",target:"_blank",rel:"noopener noreferrer",children:"UK Government conversion factors for company reporting of greenhouse gas emissions."})]}),(0,fe.jsx)(J_,{children:"Please note for natural gas consumption Rio applies the Gross Calorific Value (Gross CV) emission factor by default. As per UK Government guidance, a majority of energy billing is provided on a Gross CV basis rather than as Net CV. The Gross CV of the fuel accounts for the total energy content of the gas whereas the Net CV assumes some of the energy is not recovered. If you need to report Natural Gas in Net CV, that data can be uploaded accordingly to Rio’s fuel section."}),(0,fe.jsx)(J_,{children:"Publication Dates:"}),(0,fe.jsx)(J_,{children:"To produce carbon reporting in real time, Rio utilises a publication factor logic, applying emission factors for transaction data consumed between the start and end dates indicated in the EF table above. Rio also applies the same factor set’s respective emission factors to show the GHG breakdown by common gases (CO2, CH4, and N2O) all of which are converted to CO2e (Carbon Dioxide equivalent) in alignment with Intergovernmental Panel on Climate Change (IPCC) Global Warming Potentials (GWPs)."}),(0,fe.jsx)(J_,{children:"The Global Warming Potentials (GWPs) are based on the Intergovernmental Panel on Climate Change (IPCC) Fifth Assessment Report (AR5) over a 100-year period so that the Conversion Factors are consistent with current national and international reporting requirements. rom 2023 factor sets onwards."})]})}function eF(){return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(J_,{children:["The emission factors applied to your water consumption are based on the"," ",(0,fe.jsx)(W_,{href:"https://www.gov.uk/government/collections/government-conversion-factors-for-company-reporting",target:"_blank",rel:"noopener noreferrer",children:"UK Government conversion factors for company reporting of greenhouse gas emissions."})]})})}const nF=[{scope:1,column:"Combustion",comment:"Included to Scope 1 if activity is direct, otherwise, goes to Scope 3"},{scope:3,column:"Well-to-tank",comment:"Always included to Scope 3"}];function tF(){return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(J_,{children:["The emission factors applied to your Fuel consumption are based on the"," ",(0,fe.jsx)(W_,{href:"https://www.gov.uk/government/collections/government-conversion-factors-for-company-reporting",target:"_blank",rel:"noopener noreferrer",children:"UK Government conversion factors for company reporting of greenhouse gas emissions."})]}),(0,fe.jsx)(J_,{weight:"bold",children:"Scopes"}),(0,fe.jsx)(J_,{children:"Here is the explanation of how Rio utilises these factors to calculate Scope 1 and Scope 3 for your fuel transactions:"}),(0,fe.jsx)(q_,{children:(0,fe.jsxs)(V_,{children:[(0,fe.jsx)("thead",{children:(0,fe.jsxs)("tr",{children:[(0,fe.jsx)(G_,{children:"Scope"}),(0,fe.jsx)(G_,{children:"Column"}),(0,fe.jsx)(G_,{children:"Comment"})]})}),(0,fe.jsx)("tbody",{children:nF.map((e,n)=>(0,fe.jsxs)("tr",{children:[(0,fe.jsx)(z_,{children:e.scope}),(0,fe.jsx)(z_,{children:e.column}),(0,fe.jsx)(z_,{children:e.comment})]},n))})]})})]})}function aF(){return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(J_,{children:["The emission factors applied to your electricity consumed in the UK are based on the"," ",(0,fe.jsx)(W_,{href:"https://www.gov.uk/government/collections/government-conversion-factors-for-company-reporting",target:"_blank",rel:"noopener noreferrer",children:"UK Government conversion factors for company reporting of greenhouse gas emissions."})]}),(0,fe.jsx)(J_,{children:"Overseas CO2 emission factors are based on data published by the International Energy Agency (IEA) from 2023. This includes emission factors for generation, electricity trade, and transmission and distribution losses."}),(0,fe.jsx)(J_,{children:"The IEA conversion factors have varying associated timeframes. The IEA conversion factor are annual figures (1st Jan-31st Dec). If the timeframe appropriate for the calculation is not available, Rio will use the conversion factor for the most recent year."}),(0,fe.jsx)(Q_,{})]})}function iF(){return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(J_,{children:["The emission factors applied to your refrigerants and other gasses are based on the",(0,fe.jsx)(W_,{href:"https://www.gov.uk/government/collections/government-conversion-factors-for-company-reporting",target:"_blank",rel:"noopener noreferrer",children:"UK Government conversion factors for company reporting of greenhouse gas emissions."})]})})}function lF(){const e={scope:3,comment:"Always included to Scope 3"},n=[{scope:2,column:"Generation",comment:"Included to Scope 2 if activity is direct, otherwise, included to Scope 3"},{...e,column:"Transmission & distribution"},{...e,column:"Well-to-tank generation"},{...e,column:"Well-to-tank transmission and distribution"}];return(0,fe.jsxs)(fe.Fragment,{children:[eF(),H_(),(0,fe.jsx)(J_,{weight:"bold",children:"Scopes"}),(0,fe.jsx)(J_,{children:"Here is the explanation of how Rio utilises these factors to calculate Scope 2 and Scope 3 for your heat & steam transactions:"}),(0,fe.jsx)(q_,{children:(0,fe.jsxs)(V_,{children:[(0,fe.jsx)("thead",{children:(0,fe.jsxs)("tr",{children:[(0,fe.jsx)(G_,{children:"Scope"}),(0,fe.jsx)(G_,{children:"Column"}),(0,fe.jsx)(G_,{children:"Comment"})]})}),(0,fe.jsx)("tbody",{children:n.map((e,n)=>(0,fe.jsxs)("tr",{children:[(0,fe.jsx)(z_,{children:e.scope}),(0,fe.jsx)(z_,{children:e.column}),(0,fe.jsx)(z_,{children:e.comment})]},n))})]})}),K_()]})}function rF(){return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(J_,{children:"Material use conversion factors should be used to report on consumption of procured materials based on their origin (that is, comprised of primary material or recycled materials). For primary materials, these factors cover the extraction, primary processing, manufacturing and transporting materials to the point of sale, not the materials in use. For secondary materials, the factors cover sorting, processing, manufacturing and transporting to the point of sale, not the materials in use. These factors are useful for reporting efficiencies gained through reduced procurement of material or the benefit of procuring items that are the product of a previous recycling process."}),(0,fe.jsx)(J_,{children:"The emission factors applied to your Materials consumption are based on the UK Government conversion factors for company reporting of greenhouse gas emissions."})]})}const oF=S.J1`
  fragment CarbonConversionFactorFields on CarbonConversionFactor {
    id
    startDate
    endDate
    reportingYear
    fromUnit
    toUnit
    value
    scope
    type
    reference
    note
  }
`,sF=S.J1`
  query GetCarbonConversionFactorsByAccountId($accountId: ID!, $ewcId: ID) {
    getCarbonConversionFactorsByAccountId(accountId: $accountId, ewcId: $ewcId) {
      ...CarbonConversionFactorFields
      ... on WasteCarbonConversionFactor {
        ewcId
        defraEquivalent
      }
    }
  }
  ${oF}
`,dF=(0,le.default)(ie.fI)`
  flex-flow: row nowrap;
  padding-top: 12px;
  padding-bottom: 12px;
`,cF=(0,le.default)(ie.fv)`
  padding-left: 12px;
  padding-right: 12px;
`,uF=le.default.div`
  border: 1px solid ${e=>{let{theme:n}=e;return n.colors.text.light.background}};
  padding: 12px;
`,pF=(0,le.default)(ie.EY)`
  text-align: center;
`;function mF(){const e=Je(),[n,t]=(0,g.useState)(null),a=(i=n,i?.ewc);var i;const l=a?.id,[r,{data:o,loading:s}]=(0,Ul._)(sF,{variables:{accountId:e,ewcId:l??void 0},fetchPolicy:"network-only"});(0,g.useEffect)(()=>{l&&r({variables:{accountId:e,ewcId:l}})},[l,e,r]);const d=(0,g.useMemo)(()=>o?.getCarbonConversionFactorsByAccountId??[],[o?.getCarbonConversionFactorsByAccountId]),c=(0,g.useMemo)(()=>d.map(e=>[e.startDate,e.endDate]),[d]),[u,p]=(0,g.useState)(null);(0,g.useEffect)(()=>{if(c.length>0){const n=(e=c,xn().maxBy(e,st));p(n??null)}else p(null);var e},[c]);const m=u?function(e,n){return e.filter(e=>{return t=n,a=[e.startDate,e.endDate],rt(t[0],a)||rt(t[1],a);var t,a})}(d,u):[],f=k_()(Pd()(m,"defraEquivalent"),e=>e.value&&Fa()(e.value,4));return(0,fe.jsxs)("div",{children:[(0,fe.jsxs)(dF,{container:!0,children:[(0,fe.jsx)(cF,{span:5,item:!0,children:(0,fe.jsx)(A_,{onChange:e=>t(e)})}),(0,fe.jsx)(cF,{span:2,vdistribution:"center",item:!0,container:!0,children:(0,fe.jsxs)(ie.EY,{children:["EWC: ",a?a.code:"Not specified"]})}),(0,fe.jsx)(cF,{span:5,item:!0,children:(0,fe.jsx)(M_,{ranges:c,value:u??c[0]??null,onChange:e=>p(e),includeReportingYear:!0})})]}),s&&!d.length?(0,fe.jsx)(uF,{children:(0,fe.jsx)(pF,{children:"Loading..."})}):l?(0,fe.jsx)($_,{factors:[f],config:j_}):(0,fe.jsx)(uF,{children:(0,fe.jsx)(pF,{children:"Select a waste stream to view the factors"})}),(0,fe.jsx)(Z_,{})]})}const fF=S.J1`
  query getTransportConversionFactors($filters: Filters, $limit: Int = 100, $offset: Int, $sort: [SortCommand!]) {
    getTransportConversionFactors(filters: $filters, limit: $limit, offset: $offset, sort: $sort) {
      rows {
        id
        startDate
        endDate
        reportingYear
        fromUnit
        toUnit
        value
        scope
        type
        reference
        note
        transportType
        transportSubtype
        fuelType
      }
      totalRows
    }
  }
`,yF=S.J1`
  query getTransportConversionFactorsFilter($field: String!) {
    getTransportConversionFactorsFilter(field: $field) {
      label
      value
    }
  }
`,gF=([["2012-06-01T00:00:00.000Z","2013-05-31T23:59:59.000Z"],["2013-06-01T00:00:00.000Z","2014-05-31T23:59:59.000Z"],["2014-06-01T00:00:00.000Z","2015-05-31T23:59:59.000Z"],["2015-06-01T00:00:00.000Z","2016-05-31T23:59:59.000Z"],["2016-06-01T00:00:00.000Z","2017-06-30T23:59:59.000Z"],["2017-07-01T00:00:00.000Z","2018-07-31T23:59:59.000Z"],["2018-08-01T00:00:00.000Z","2019-07-31T23:59:59.000Z"],["2019-08-01T00:00:00.000Z","2020-07-31T23:59:59.000Z"],["2020-08-01T00:00:00.000Z","2021-05-31T23:59:59.000Z"],["2021-06-01T00:00:00.000Z","2022-05-31T23:59:59.000Z"],["2022-06-01T00:00:00.000Z","2023-06-07T23:59:59.000Z"]].map(e=>{let[n,t]=e;return[new Date(n),new Date(t)]}),{reportingYear:"Each year represents a “factor set”, these are applied based on year of data being uploaded",startDate:"This refers to the beginning of the consumption period for which this factor set will be applied in the platform",endDate:"This refers to the end of the consumption period for which this factor set will be applied in the platform",scope:"The factor value's scope according to the DEFRA guidance for this factor set/reporting year",reference:"A link to the DEFRA guidance for this factor set/reporting year"}),hF=e=>e.data.id;function xF(e){const n=(0,g.useMemo)(()=>({reference:yA}),[]),[t]=(0,Gr.useQueryParam)("reportingYear",Gr.NumberParam),[a]=(0,Gr.useQueryParam)("type",Gr.StringParam),i=(0,g.useCallback)(n=>{if("serverSide"!==n.api.getGridOption("rowModelType"))n.api.forEachNodeAfterFilter(e=>{e.data.reportingYear===t&&e.setSelected(!0)}),n.api.forEachNodeAfterFilter(e=>{a&&e.data.type===a&&e.setSelected(!0)});else{let e={};t&&(e={...e,reportingYear:{filterType:"set",values:[t.toString()]}}),a&&(e={...e,type:{filterType:"set",values:[a]}}),n.api?.setFilterModel(e)}e.onGridReady&&e.onGridReady(n)},[a,t,e]);return(0,fe.jsx)("div",{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{...e,components:n,onGridReady:i,domLayout:"autoHeight",getRowId:hF})})}const TF={pagination:!0,paginationPageSize:25,defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}},rowModelType:"serverSide",cacheBlockSize:25,maxBlocksInCache:3};function bF(e){let{config:n,serverSideDatasource:t}=e;return(0,fe.jsx)(xF,{...TF,...n,serverSideDatasource:t})}function vF(){const{currentTab:e}=(0,g.useContext)(YF),n=or(),t=function(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async t=>{try{const{data:{getTransportConversionFactorsFilter:n}}=await e.query({query:yF,variables:{field:t.colDef.colId||t.colDef.field}});t.success(n.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){n(`Couldn't load filter values for column "${t.colDef.headerName}"`,"warning")}},[e]);return(0,g.useMemo)(()=>({columnDefs:[{headerName:"DEFRA Year",field:"reportingYear",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},headerTooltip:gF.reportingYear},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.startDate},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.endDate},{headerName:"Scope",field:"scope",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},headerTooltip:gF.scope},{headerName:"From Unit",field:"fromUnit",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On}},{headerName:"To Unit",field:"toUnit",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On}},{headerName:"Type",field:"type",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On}},{headerName:"Transport Type",field:"transportType",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On}},{headerName:"Transport Subtype",field:"transportSubtype",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On}},{headerName:"Fuel Type",field:"fuelType",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On}},{headerName:"kgCO2e",field:"value",minWidth:100,filter:"agNumberColumnFilter",filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"Reference",field:"reference",cellRenderer:"reference",cellRendererParams:{icon:"external-link-alt"},minWidth:100,headerTooltip:gF.reference},{headerName:"Note",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],newRowsAction:"keep"},field:"note",resizable:!0}]}),[t])}(),[a,{error:i,refetch:l}]=(0,Ul._)(fF,{fetchPolicy:"network-only"}),r=(0,g.useCallback)(async e=>{try{const{startRow:n,sortModel:t,filterModel:i}=e.request,{data:{getTransportConversionFactors:{rows:l,totalRows:r}}}=await a({variables:{offset:n,limit:25,sort:wn(t),filters:jn(i)}});e.success({rowData:l,rowCount:r})}catch(n){throw e.fail(),n}},[a]),o=(0,g.useMemo)(()=>({getRows:r}),[r]);return(0,fe.jsx)(v_,{currentTab:e,index:n.configuration.factors.transport,error:i,loading:!1,retry:l,children:(0,fe.jsxs)("div",{className:"ag-theme-alpine",children:[(0,fe.jsx)(bF,{config:t,serverSideDatasource:o}),(0,fe.jsx)(tF,{}),(0,fe.jsx)(Q_,{})]})})}const CF=S.J1`
  query getFuelConversionFactors($filters: Filters, $limit: Int = 100, $offset: Int, $sort: [SortCommand!]) {
    getFuelConversionFactors(filters: $filters, limit: $limit, offset: $offset, sort: $sort) {
      rows {
        id
        reportingYear
        unit
        fuelType
        fuelActivity
        comKgCo2e
        wttKgCO2e
        reference

        comKgCo2
        comKgCh4
        comKgN20
        gjGross
        gjNet
        kWhGross
        kWhNet
        densityKg
        densityM3
        densityT

        startDate
        endDate
      }
      totalRows
    }
  }
`,kF=S.J1`
  query getFuelConversionFactorsFilter($field: String!) {
    getFuelConversionFactorsFilter(field: $field) {
      label
      value
    }
  }
`;function SF(){const{currentTab:e}=(0,g.useContext)(YF),n=or(),t=function(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async t=>{try{const{data:{getFuelConversionFactorsFilter:n}}=await e.query({query:kF,variables:{field:t.colDef.colId||t.colDef.field}}),a=n.map(e=>e.value).filter(e=>void 0!==e);t.success(a)}catch(e){n(`Couldn't load filter values for column "${t.colDef.headerName}"`,"warning")}},[e,n]);return(0,g.useMemo)(()=>({columnDefs:[{headerName:"DEFRA Year",field:"reportingYear",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},headerTooltip:gF.reportingYear},{headerName:"Fuel Type",field:"fuelType",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},initialSort:"asc"},{headerName:"Fuel Activity",field:"fuelActivity",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On}},{headerName:"Unit",field:"unit",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On}},{headerName:"Combustion (kgCO2e)",field:"comKgCo2e",minWidth:100,filter:"agNumberColumnFilter",filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"Well-to-tank (kgCO2e)",field:"wttKgCO2e",minWidth:100,filter:"agNumberColumnFilter",filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.startDate},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.endDate},{headerName:"Combustion (kgCO2)",field:"comKgCo2",minWidth:100,filter:"agNumberColumnFilter",initialHide:!0,filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"Combustion (kgCH4)",field:"comKgCh4",minWidth:100,filter:"agNumberColumnFilter",initialHide:!0,filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"Combustion (kgN2O)",field:"comKgN20",minWidth:100,filter:"agNumberColumnFilter",initialHide:!0,filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"GJ Gross",field:"gjGross",minWidth:100,filter:"agNumberColumnFilter",initialHide:!0,filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"GJ Net",field:"gjNet",minWidth:100,filter:"agNumberColumnFilter",initialHide:!0,filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"kWh Gross",field:"kWhGross",minWidth:100,filter:"agNumberColumnFilter",initialHide:!0,filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"kWh Net",field:"kWhNet",minWidth:100,filter:"agNumberColumnFilter",initialHide:!0,filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"Density (kg)",field:"densityKg",minWidth:100,filter:"agNumberColumnFilter",initialHide:!0,filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"Density (m3)",field:"densityM3",minWidth:100,filter:"agNumberColumnFilter",initialHide:!0,filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"Density (t)",field:"densityT",minWidth:100,filter:"agNumberColumnFilter",initialHide:!0,filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"Reference",field:"reference",cellRenderer:"reference",cellRendererParams:{icon:"external-link-alt"},minWidth:100,headerTooltip:gF.reference}]}),[t])}(),[a,{error:i,refetch:l}]=(0,Ul._)(CF),r=(0,g.useCallback)(async e=>{try{const{startRow:n,sortModel:t,filterModel:i}=e.request,{data:{getFuelConversionFactors:{rows:l,totalRows:r}}}=await a({variables:{offset:n,limit:25,sort:wn(t),filters:jn(i)}});e.success({rowData:l,rowCount:r})}catch(n){throw e.fail(),n}},[a]),o=(0,g.useMemo)(()=>({getRows:r}),[r]);return(0,fe.jsx)(v_,{currentTab:e,index:n.configuration.factors.fuel,error:i,loading:!1,retry:l,children:(0,fe.jsxs)("div",{className:"ag-theme-alpine",children:[(0,fe.jsx)(bF,{config:t,serverSideDatasource:o}),(0,fe.jsx)(tF,{}),(0,fe.jsx)(Q_,{})]})})}const NF=S.J1`
  query getGasConversionFactors($filters: Filters, $limit: Int = 100, $offset: Int, $sort: [SortCommand!]) {
    getGasConversionFactors(filters: $filters, limit: $limit, offset: $offset, sort: $sort) {
      rows {
        id
        reportingYear
        consumptionKgCo2e
        wttKgCo2e
        reference
        startDate
        endDate
      }
      totalRows
    }
  }
`,AF=S.J1`
  query getGasConversionFactorsFilter($field: String!) {
    getGasConversionFactorsFilter(field: $field) {
      label
      value
    }
  }
`;function RF(){const{currentTab:e}=(0,g.useContext)(YF),n=or(),t=function(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async t=>{try{const{data:{getGasConversionFactorsFilter:n}}=await e.query({query:AF,variables:{field:t.colDef.colId||t.colDef.field}}),a=n.map(e=>e.value).filter(e=>void 0!==e);t.success(a)}catch(e){n(`Couldn't load filter values for column "${t.colDef.headerName}"`,"warning")}},[e,n]);return(0,g.useMemo)(()=>({columnDefs:[{headerName:"DEFRA Year",field:"reportingYear",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},initialSort:"desc",headerTooltip:gF.reportingYear},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.startDate},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.endDate},{headerName:"Scope 1 Combustion (kgCO2e)",field:"consumptionKgCo2e",minWidth:200,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 WTT (kgCO2e)",field:"wttKgCo2e",minWidth:200,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Reference",field:"reference",cellRenderer:"reference",cellRendererParams:{icon:"external-link-alt"},minWidth:100,headerTooltip:gF.reference}]}),[t])}(),[a,{error:i,refetch:l}]=(0,Ul._)(NF),r=(0,g.useCallback)(async e=>{try{const{startRow:n,sortModel:t,filterModel:i}=e.request,{data:{getGasConversionFactors:{rows:l,totalRows:r}}}=await a({variables:{offset:n,limit:25,sort:wn(t),filters:jn(i)}});e.success({rowData:l,rowCount:r})}catch(n){throw e.fail(),n}},[a]),o=(0,g.useMemo)(()=>({getRows:r}),[r]);return(0,fe.jsx)(v_,{currentTab:e,index:n.configuration.factors.gas,error:i,loading:!1,retry:l,children:(0,fe.jsxs)("div",{className:"ag-theme-alpine",children:[(0,fe.jsx)(bF,{config:t,serverSideDatasource:o}),(0,fe.jsx)(X_,{})]})})}const DF=S.J1`
  query getElectricityConversionFactors($filters: Filters, $limit: Int = 100, $offset: Int, $sort: [SortCommand!]) {
    getElectricityConversionFactors(filters: $filters, limit: $limit, offset: $offset, sort: $sort) {
      rows {
        id
        reportingYear
        reference

        genKgCo2e
        tdKgCo2e
        wttGenKgCo2e
        wttTdKgCo2e
        wttTradeKgCo2e

        genKgCo2
        tdKgCo2
        wttGenKgCo2
        wttTdKgCo2
        wttTradeKgCo2

        genKgCh4
        tdKgCh4
        wttGenKgCh4
        wttTdKgCh4
        wttTradeKgCh4

        genKgN2o
        tdKgN2o
        wttGenKgN2o
        wttTdKgN2o
        wttTradeKgN2o

        startDate
        endDate
      }
      totalRows
    }
  }
`,LF=S.J1`
  query getElectricityConversionFactorsFilter($field: String!) {
    getElectricityConversionFactorsFilter(field: $field) {
      label
      value
    }
  }
`;function IF(){const{currentTab:e}=(0,g.useContext)(YF),n=or(),t=function(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async t=>{try{const{data:{getElectricityConversionFactorsFilter:n}}=await e.query({query:LF,variables:{field:t.colDef.colId||t.colDef.field}}),a=n.map(e=>e.value).filter(e=>void 0!==e);t.success(a)}catch(e){n(`Couldn't load filter values for column "${t.colDef.headerName}"`,"warning")}},[e,n]);return(0,g.useMemo)(()=>({columnDefs:[{headerName:"DEFRA Year",field:"reportingYear",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},initialSort:"desc",headerTooltip:gF.reportingYear},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.startDate},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.endDate},{headerName:"Scope 2 Generation (kgCO2e)",field:"genKgCo2e",minWidth:320,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 Transmission and Distribution (kgCO2e)",field:"tdKgCo2e",minWidth:320,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 WTT Generation (kgCO2e)",field:"wttGenKgCo2e",minWidth:320,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 WTT T&D",field:"wttTdKgCo2e",minWidth:320,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Reference",field:"reference",cellRenderer:"reference",cellRendererParams:{icon:"external-link-alt"},minWidth:100,headerTooltip:gF.reference},{headerName:"Scope 2 Generation (kgCO2)",field:"genKgCo2",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 T&D (kgCO2)",field:"tdKgCo2",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 WTT generation (kgCO2)",field:"wttGenKgCo2",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3  WTT T&D (kgCO2)",field:"wttTdKgCo2",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 2 Generation (kgCH4)",field:"genKgCh4",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 T&D (kgCH4)",field:"tdKgCh4",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 WTT generation (kgCH4)",field:"wttGenKgCh4",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 WTT T&D (kgCH4)",field:"wttTdKgCh4",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 2 Generation (kgN2O)",field:"genKgN2o",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 T&D (kgN2O)",field:"tdKgN2o",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 WTT generation (kgN2O)",field:"wttGenKgN2o",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope},{headerName:"Scope 3 WTT T&D (kgN2O)",field:"wttTdKgN2o",initialHide:!0,filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:gF.scope}]}),[t])}(),[a,{error:i,refetch:l}]=(0,Ul._)(DF),r=(0,g.useCallback)(async e=>{try{const{startRow:n,sortModel:t,filterModel:i}=e.request,{data:{getElectricityConversionFactors:{rows:l,totalRows:r}}}=await a({variables:{offset:n,limit:25,sort:wn(t),filters:jn(i)}});e.success({rowData:l,rowCount:r})}catch(n){throw e.fail(),n}},[a]),o=(0,g.useMemo)(()=>({getRows:r}),[r]);return(0,fe.jsx)(v_,{currentTab:e,index:n.configuration.factors.electricity,error:i,loading:!1,retry:l,children:(0,fe.jsxs)("div",{className:"ag-theme-alpine",children:[(0,fe.jsx)(bF,{config:t,serverSideDatasource:o}),(0,fe.jsx)(aF,{}),(0,fe.jsx)(Q_,{})]})})}const jF=S.J1`
  query getWaterConversionFactors($filters: Filters, $limit: Int = 100, $offset: Int, $sort: [SortCommand!]) {
    getWaterConversionFactors(filters: $filters, limit: $limit, offset: $offset, sort: $sort) {
      rows {
        id
        reportingYear
        reference
        supplyKgCo2e
        treatmentKgCo2e
        startDate
        endDate
      }
      totalRows
    }
  }
`,wF=S.J1`
  query getWaterConversionFactorsFilter($field: String!) {
    getWaterConversionFactorsFilter(field: $field) {
      label
      value
    }
  }
`;function OF(){const{currentTab:e}=(0,g.useContext)(YF),n=or(),t=function(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async t=>{try{const{data:{getWaterConversionFactorsFilter:n}}=await e.query({query:wF,variables:{field:t.colDef.colId||t.colDef.field}}),a=n.map(e=>e.value).filter(e=>void 0!==e);t.success(a)}catch(e){n(`Couldn't load filter values for column "${t.colDef.headerName}"`,"warning")}},[e,n]);return(0,g.useMemo)(()=>({columnDefs:[{headerName:"DEFRA Year",field:"reportingYear",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},initialSort:"desc",headerTooltip:gF.reportingYear},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.startDate},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.endDate},{headerName:"Water Supply (kgCO2e)",field:"supplyKgCo2e",minWidth:100,filter:"agNumberColumnFilter",valueFormatter:Un},{headerName:"Water Treatment (kgCO2e)",field:"treatmentKgCo2e",minWidth:100,filter:"agNumberColumnFilter",valueFormatter:Un},{headerName:"Reference",field:"reference",cellRenderer:"reference",cellRendererParams:{icon:"external-link-alt"},minWidth:100,headerTooltip:gF.reference}]}),[t])}(),[a,{error:i,refetch:l}]=(0,Ul._)(jF),r=(0,g.useCallback)(async e=>{try{const{startRow:n,sortModel:t,filterModel:i}=e.request,{data:{getWaterConversionFactors:{rows:l,totalRows:r}}}=await a({variables:{offset:n,limit:25,sort:wn(t),filters:jn(i)}});e.success({rowData:l,rowCount:r})}catch(n){throw e.fail(),n}},[a]),o=(0,g.useMemo)(()=>({getRows:r}),[r]);return(0,fe.jsx)(v_,{currentTab:e,index:n.configuration.factors.water,error:i,loading:!1,retry:l,children:(0,fe.jsxs)("div",{className:"ag-theme-alpine",children:[(0,fe.jsx)(bF,{config:t,serverSideDatasource:o}),(0,fe.jsx)(eF,{}),(0,fe.jsx)(Q_,{})]})})}const EF=S.J1`
  query getHeatConversionFactors($filters: Filters, $limit: Int = 100, $offset: Int, $sort: [SortCommand!]) {
    getHeatConversionFactors(filters: $filters, limit: $limit, offset: $offset, sort: $sort) {
      rows {
        id
        reportingYear
        reference

        genKgCo2e
        tdKgCo2e
        wttGenKgCo2e
        wttTdKgCo2e

        genKgCo2
        tdKgCo2

        genKgCh4
        tdKgCh4

        genKgN2o
        tdKgN2o

        startDate
        endDate
      }
      totalRows
    }
  }
`,_F=S.J1`
  query getHeatConversionFactorsFilter($field: String!) {
    getHeatConversionFactorsFilter(field: $field) {
      label
      value
    }
  }
`;function FF(){const{currentTab:e}=(0,g.useContext)(YF),n=or(),t=function(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async t=>{try{const{data:{getHeatConversionFactorsFilter:n}}=await e.query({query:_F,variables:{field:t.colDef.colId||t.colDef.field}}),a=n.map(e=>e.value).filter(e=>void 0!==e);t.success(a)}catch(e){n(`Couldn't load filter values for column "${t.colDef.headerName}"`,"warning")}},[e,n]);return(0,g.useMemo)(()=>({columnDefs:[{headerName:"DEFRA Year",field:"reportingYear",filter:"agSetColumnFilter",filterParams:{values:t,valueFormatter:On},initialSort:"desc",headerTooltip:gF.reportingYear},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.startDate},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.endDate},{headerName:"Generation (kgCO2e)",field:"genKgCo2e",filter:"agNumberColumnFilter",valueFormatter:Un},{headerName:"Transmission & distribution (kgCO2e)",field:"tdKgCo2e",filter:"agNumberColumnFilter",valueFormatter:Un},{headerName:"WTT generation (kgCO2e)",field:"wttGenKgCo2e",filter:"agNumberColumnFilter",valueFormatter:Un},{headerName:"WTT transmission and distribution (kgCO2e)",field:"wttTdKgCo2e",filter:"agNumberColumnFilter",valueFormatter:Un},{headerName:"Generation (kgCO2)",field:"genKgCo2",filter:"agNumberColumnFilter",valueFormatter:Un,initialHide:!0},{headerName:"Generation (kgCH4)",field:"genKgCh4",filter:"agNumberColumnFilter",valueFormatter:Un,initialHide:!0},{headerName:"Generation (kgN2O)",field:"genKgN2o",filter:"agNumberColumnFilter",valueFormatter:Un,initialHide:!0},{headerName:"Transmission and distribution (kgCO2)",field:"tdKgCo2",filter:"agNumberColumnFilter",valueFormatter:Un,initialHide:!0},{headerName:"Transmission and distribution (kgCH4)",field:"tdKgCh4",filter:"agNumberColumnFilter",valueFormatter:Un,initialHide:!0},{headerName:"Transmission and distribution (kgN2O)",field:"tdKgN2o",filter:"agNumberColumnFilter",valueFormatter:Un,initialHide:!0},{headerName:"Reference",field:"reference",cellRenderer:"reference",cellRendererParams:{icon:"external-link-alt"},headerTooltip:gF.reference}]}),[t])}(),[a,{error:i,refetch:l}]=(0,Ul._)(EF),r=(0,g.useCallback)(async e=>{try{const{startRow:n,sortModel:t,filterModel:i}=e.request,{data:{getHeatConversionFactors:{rows:l,totalRows:r}}}=await a({variables:{offset:n,limit:25,sort:wn(t),filters:jn(i)}});e.success({rowData:l,rowCount:r})}catch(n){throw e.fail(),n}},[a]),o=(0,g.useMemo)(()=>({getRows:r}),[r]);return(0,fe.jsx)(v_,{currentTab:e,index:n.configuration.factors.heat,error:i,loading:!1,retry:l,children:(0,fe.jsxs)("div",{className:"ag-theme-alpine",children:[(0,fe.jsx)(bF,{config:t,serverSideDatasource:o}),(0,fe.jsx)(lF,{})]})})}const PF=S.J1`
  query getRefrigerantConversionFactors($filters: Filters, $limit: Int = 100, $offset: Int, $sort: [SortCommand!]) {
    getRefrigerantConversionFactors(filters: $filters, limit: $limit, offset: $offset, sort: $sort) {
      rows {
        id
        reportingYear
        startDate
        endDate
        reference
        kgCO2e
        gasName
        gasGroupName
      }
      totalRows
    }
  }
`,BF=S.J1`
  query getRefrigerantConversionFactorsFilter($field: String!) {
    getRefrigerantConversionFactorsFilter(field: $field) {
      label
      value
    }
  }
`;function UF(){const{currentTab:e}=(0,g.useContext)(YF),n=or(),t=function(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async t=>{try{const{data:{getRefrigerantConversionFactorsFilter:n}}=await e.query({query:BF,variables:{field:t.colDef.colId||t.colDef.field}}),a=n.map(e=>e.value).filter(e=>void 0!==e);t.success(a)}catch(e){n(`Couldn't load filter values for column "${t.colDef.headerName}"`,"warning")}},[e,n]);return(0,g.useMemo)(()=>({columnDefs:[{headerName:"DEFRA Year",field:"reportingYear",filter:"agSetColumnFilter",filterParams:{values:t,valueFormatter:On},initialSort:"desc",headerTooltip:gF.reportingYear},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.startDate},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.endDate},{headerName:"Gas Type",field:"gasName",filter:"agSetColumnFilter",filterParams:{values:t,valueFormatter:On}},{headerName:"Gas Category",field:"gasGroupName",filter:"agSetColumnFilter",filterParams:{values:t,valueFormatter:On}},{headerName:"kgCO2e",field:"kgCO2e",filter:"agNumberColumnFilter",valueFormatter:Un},{headerName:"Unit",filter:"agNumberColumnFilter",valueGetter:()=>"kg",initialWidth:80},{headerName:"Reference",field:"reference",cellRenderer:"reference",cellRendererParams:{icon:"external-link-alt"},headerTooltip:gF.reference}]}),[t])}(),[a,{error:i,refetch:l}]=(0,Ul._)(PF),r=(0,g.useCallback)(async e=>{try{const{startRow:n,sortModel:t,filterModel:i}=e.request,{data:{getRefrigerantConversionFactors:{rows:l,totalRows:r}}}=await a({variables:{offset:n,limit:25,sort:wn(t),filters:jn(i)}});e.success({rowData:l,rowCount:r})}catch(n){throw e.fail(),n}},[a]),o=(0,g.useMemo)(()=>({getRows:r}),[r]);return(0,fe.jsx)(v_,{currentTab:e,index:n.configuration.factors.refrigerant,error:i,loading:!1,retry:l,children:(0,fe.jsxs)("div",{className:"ag-theme-alpine",children:[(0,fe.jsx)(bF,{config:t,serverSideDatasource:o}),(0,fe.jsx)(iF,{})]})})}const $F=S.J1`
  query getMaterialConversionFactors($filters: Filters, $limit: Int = 100, $offset: Int, $sort: [SortCommand!]) {
    getMaterialConversionFactors(filters: $filters, limit: $limit, offset: $offset, sort: $sort) {
      rows {
        id
        reportingYear
        kgCO2e
        startDate
        endDate
        material
        origin
        activity
        reference
      }
      totalRows
    }
  }
`,MF=S.J1`
  query getMaterialConversionFactorsFilter($field: String!) {
    getMaterialConversionFactorsFilter(field: $field) {
      label
      value
    }
  }
`;function VF(){const{currentTab:e}=(0,g.useContext)(YF),n=or(),t=function(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async t=>{try{const{data:{getMaterialConversionFactorsFilter:n}}=await e.query({query:MF,variables:{field:t.colDef.colId||t.colDef.field}}),a=n.map(e=>e.value).filter(e=>void 0!==e);t.success(a)}catch(e){n(`Couldn't load filter values for column "${t.colDef.headerName}"`,"warning")}},[e,n]);return(0,g.useMemo)(()=>({columnDefs:[{headerName:"DEFRA Year",field:"reportingYear",filter:"agSetColumnFilter",filterParams:{values:t,valueFormatter:On},initialSort:"desc",headerTooltip:gF.reportingYear},{headerName:"kgCO2e",field:"kgCO2e",filter:"agNumberColumnFilter",valueFormatter:Un,headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.startDate},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.endDate},{headerName:"Material",field:"material",filter:"agSetColumnFilter",filterParams:{values:t,valueFormatter:On}},{headerName:"Origin",field:"origin",filter:"agSetColumnFilter",filterParams:{values:t,valueFormatter:On}},{headerName:"Activity",headerTooltip:"This shows if the activity falls under your organisation's direct (company owned emission sources) or indirect (non company owned, employee, contractor or third party emission sources) activities",field:"activity",filter:"agSetColumnFilter",filterParams:{values:t,valueFormatter:On}},{headerName:"Reference",field:"reference",cellRenderer:"reference",cellRendererParams:{icon:"external-link-alt"},headerTooltip:gF.reference}]}),[t])}(),[a,{error:i,refetch:l}]=(0,Ul._)($F),r=(0,g.useCallback)(async e=>{try{const{startRow:n,sortModel:t,filterModel:i}=e.request,{data:{getMaterialConversionFactors:{rows:l,totalRows:r}}}=await a({variables:{offset:n,limit:25,sort:wn(t),filters:jn(i)}});e.success({rowData:l,rowCount:r})}catch(n){throw e.fail(),n}},[a]),o=(0,g.useMemo)(()=>({getRows:r}),[r]);return(0,fe.jsx)(v_,{currentTab:e,index:n.configuration.factors.material,error:i,loading:!1,retry:l,children:(0,fe.jsxs)("div",{className:"ag-theme-alpine",children:[(0,fe.jsx)(bF,{config:t,serverSideDatasource:o}),(0,fe.jsx)(rF,{})]})})}const GF=S.J1`
  query getHotelStaysConversionFactors($filters: Filters, $limit: Int = 100, $offset: Int, $sort: [SortCommand!]) {
    getHotelStaysConversionFactors(filters: $filters, limit: $limit, offset: $offset, sort: $sort) {
      rows {
        id
        reportingYear
        type
        unit
        reference
        startDate
        endDate
        country
        kgCO2e
      }
      totalRows
    }
  }
`,zF=S.J1`
  query getHotelStaysConversionFactorsFilter($field: String!) {
    getHotelStaysConversionFactorsFilter(field: $field) {
      label
      value
    }
  }
`;function WF(e){let n,{value:t}=e;try{n=JSON.parse(t).value}catch{n=t}switch(n){case"HOTEL":default:return"Hotel";case"WORK_FROM_HOME":return"Work From Home"}}function qF(){const{currentTab:e}=(0,g.useContext)(YF),n=or(),t=function(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async t=>{try{const{data:{getHotelStaysConversionFactorsFilter:n}}=await e.query({query:zF,variables:{field:t.colDef.colId||t.colDef.field}});t.success(n.map(e=>e.value?e.value:JSON.stringify(e)))}catch(e){n(`Couldn't load filter values for column "${t.colDef.headerName}"`,"warning")}},[e,n]);return(0,g.useMemo)(()=>({columnDefs:[{headerName:"DEFRA Year",field:"reportingYear",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},initialSort:"desc",headerTooltip:gF.reportingYear},{headerName:"Type",field:"type",filter:"agSetColumnFilter",minWidth:100,valueFormatter:WF,filterParams:{values:t,valueFormatter:WF},initialSort:"asc"},{headerName:"Country",field:"country",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On},initialSort:"asc"},{headerName:"Unit",field:"unit",filter:"agSetColumnFilter",minWidth:100,filterParams:{values:t,valueFormatter:On}},{headerName:"kgCO2e",field:"kgCO2e",minWidth:100,filter:"agNumberColumnFilter",filterParams:{values:t,valueFormatter:On},valueFormatter:Un},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",initialHide:!0,minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.startDate},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",initialHide:!0,minWidth:100,filterParams:{values:t,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return Sn(n)},headerTooltip:gF.endDate},{headerName:"Reference",field:"reference",initialHide:!0,cellRenderer:"reference",cellRendererParams:{icon:"external-link-alt"},minWidth:100,headerTooltip:gF.reference}]}),[t])}(),[a,{error:i,refetch:l}]=(0,Ul._)(GF),r=(0,g.useCallback)(async e=>{try{const{startRow:n,sortModel:t,filterModel:i}=e.request,{data:{getHotelStaysConversionFactors:{rows:l,totalRows:r}}}=await a({variables:{offset:n,limit:25,sort:wn(t),filters:jn(i)}});e.success({rowData:l,rowCount:r})}catch(n){throw e.fail(),n}},[a]),o=(0,g.useMemo)(()=>({getRows:r}),[r]);return(0,fe.jsx)(v_,{currentTab:e,index:n.configuration.factors.hotelStays,error:i,loading:!1,retry:l,children:(0,fe.jsxs)("div",{className:"ag-theme-alpine",children:[(0,fe.jsx)(bF,{config:t,serverSideDatasource:o}),(0,fe.jsx)(Q_,{})]})})}const JF=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,YF=(0,g.createContext)({error:void 0,loading:void 0,currentTab:void 0,retry:()=>{}});function HF(){const e=or(),n=function(e){const{pathname:n}=(0,m.zy)(),t=n.includes("v2");for(let a=0;a<e.length;a+=1){const i=t?`/v2${e[a]}`:e[a];if(null!==(0,cd.B6)(i,n))return e[a]}return null}(Object.values(e.configuration.factors))||e.configuration.factors.gas,t={currentTab:n,retry:()=>window.location.reload()};return(0,fe.jsxs)(JF,{children:[(0,fe.jsx)(gu,{name:"ConfigurationContractorsContainer__Controls",icon:"recycle",iconColor:"primary",title:"Location Based Emission Factors"}),(0,fe.jsxs)(ie.tU,{variant:"scrollable",scrollButtons:"auto",value:n,children:[(0,fe.jsx)(ie.oz,{label:"Gas",value:e.configuration.factors.gas,to:e.configuration.factors.gas,component:p.Link}),(0,fe.jsx)(ie.oz,{label:"Electricity",value:e.configuration.factors.electricity,to:e.configuration.factors.electricity,component:p.Link}),(0,fe.jsx)(ie.oz,{label:"Water",value:e.configuration.factors.water,to:e.configuration.factors.water,component:p.Link}),(0,fe.jsx)(ie.oz,{label:"Waste",value:e.configuration.factors.waste,to:e.configuration.factors.waste,component:p.Link}),(0,fe.jsx)(ie.oz,{label:"Transport",value:e.configuration.factors.transport,to:e.configuration.factors.transport,component:p.Link}),(0,fe.jsx)(ie.oz,{label:"Fuel",value:e.configuration.factors.fuel,to:e.configuration.factors.fuel,component:p.Link}),(0,fe.jsx)(ie.oz,{label:"Heat & Steam",value:e.configuration.factors.heat,to:e.configuration.factors.heat,component:p.Link}),(0,fe.jsx)(ie.oz,{label:"Refrigerants & Other gasses",value:e.configuration.factors.refrigerant,to:e.configuration.factors.refrigerant,component:p.Link}),(0,fe.jsx)(ie.oz,{label:"Hotel stays & Home Working",value:e.configuration.factors.hotelStays,to:e.configuration.factors.hotelStays,component:p.Link}),(0,fe.jsx)(ie.oz,{label:"Material",value:e.configuration.factors.material,to:e.configuration.factors.material,component:p.Link})]}),(0,fe.jsxs)(YF.Provider,{value:t,children:[(0,fe.jsx)(RF,{}),(0,fe.jsx)(IF,{}),(0,fe.jsx)(OF,{}),(0,fe.jsxs)(v_,{...t,index:e.configuration.factors.waste,children:[(0,fe.jsx)(mF,{}),(0,fe.jsx)(Q_,{})]}),(0,fe.jsx)(vF,{}),(0,fe.jsx)(SF,{}),(0,fe.jsx)(FF,{}),(0,fe.jsx)(UF,{}),(0,fe.jsx)(qF,{}),(0,fe.jsx)(VF,{})]})]})}function KF(){const e=Je();return{accountId:lr().data.includes("getMarketCarbonConversionFactorAll")?null:e}}const QF=(e,n)=>{const t={value:null,label:"(No supplier)"};if(!e&&n)return[t];const a=xn()(e).map(e=>({value:e.id,label:e.name})).orderBy(["label"],["asc"]).value();return n&&a.unshift(t),a},ZF=()=>!0;function XF(e){let{value:n,error:t,name:a,onChange:i,accountId:l,utility:r,filter:o=ZF,includeEmpty:s=!1,isClearable:d=!0}=e;const c=(0,C.m)(),u={accountId:l,utility:r===gn.D_.Heatsteam?gn.D_.Electricity:r?.toUpperCase(),filterValue:"",filterBy:"name",pageSize:St,page:1},{data:p,loading:m,error:f}=(0,x.IT)(yd,{variables:u,fetchPolicy:"network-only"});let y=p?.getSuppliers?.suppliers||[];const g=y.filter(o),h=QF(g,s),T=t?"string"==typeof t?t:t.message:f?.message||null;return(0,fe.jsx)(ie.l6,{name:a,placeholder:m?"Loading suppliers...":"Start typing to view suppliers...",value:n,loadOptions:async e=>{try{const n=await c.query({query:yd,variables:{...u,filterValue:e}}),{suppliers:t,totalItemCount:a}=n.data?.getSuppliers;return y=t||[],{options:QF(y.filter(o)||[],s),total:a}}catch(e){return{options:[],total:0}}},debounceTimeout:1e3,defaultOptions:h,options:h,error:T,onChange:e=>{const n=y.find(n=>n.id===e.target.value);n&&i({...e,entity:n})},classPrefix:"supplier-select",isClearable:d,isLoading:m})}function eP(e){return e?{id:e.id,supplierId:e.supplierId,tariff:e.tariff,renewablePercentage:e.renewablePercentage,generationFactor:e.generationFactor,wellToTankForGenerationFactor:e.wellToTankForGenerationFactor,wellToTankForTransmissionAndDistributionFactor:e.wellToTankForTransmissionAndDistributionFactor,transmissionAndDistributionFactor:e.transmissionAndDistributionFactor,startDate:e.startDate,endDate:e.endDate,isGlobal:e.isGlobal,accountIds:e.accountIds,reference:e.reference,notes:e.notes}:{id:(0,Wa.A)(),supplierId:"",tariff:"",renewablePercentage:0,generationFactor:0,wellToTankForGenerationFactor:0,wellToTankForTransmissionAndDistributionFactor:0,transmissionAndDistributionFactor:0,startDate:dt().toISOString(),endDate:bn()().add(1,"year").toISOString(),isGlobal:!0,accountIds:[],reference:"",notes:""}}function nP(e){const n={};return e.supplierId||(n.supplierId="Supplier should be selected"),e.tariff||(n.tariff="Tariff shouldn't be empty"),("number"!=typeof e.renewablePercentage||e.renewablePercentage<0||e.renewablePercentage>100)&&(n.renewablePercentage="Renewable (%) should be not greater than 100 or less 0"),n}const tP=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.spacing};
`,aP=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,iP=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,lP=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,rP=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`;function oP(e){let{heading:n,isSubmitting:t,onChange:a,values:i,errors:l,setErrors:r}=e;const o=Je(),s=e=>{let{target:n}=e;const t=n.name,o="checkbox"===n.type?n.checked:"number"===n.type?parseFloat(n.value):n.value,s={...i,[t]:o};if(Object.keys(l).length){const e=nP(s);r(e)}a(s)};return(0,fe.jsxs)(tP,{span:12,container:!0,children:[(0,fe.jsx)(lP,{size:"lg",children:n}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Tariff"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:s,name:"tariff",value:i.tariff,error:l.tariff,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Supplier"})}),(0,fe.jsx)(XF,{value:i.supplierId,name:"supplierId",accountId:o,utility:gn.D_.Electricity,onChange:s,error:l.supplierId,includeEmpty:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Renewable (%)"})}),(0,fe.jsx)(ie.ks,{type:"number",min:0,max:100,name:"renewablePercentage",value:i.renewablePercentage,onChange:s,error:l.renewablePercentage})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Generation (kgCO2e)"})}),(0,fe.jsx)(ie.ks,{type:"number",value:i.generationFactor,name:"generationFactor",onChange:s,error:l.generationFactor})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Well-to-Tank (Generation) (kgCO2e)"})}),(0,fe.jsx)(ie.ks,{type:"number",value:i.wellToTankForGenerationFactor,name:"wellToTankForGenerationFactor",onChange:s,error:l.wellToTankForGenerationFactor})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Well-to-Tank (T&D) (kgCO2e)"})}),(0,fe.jsx)(ie.ks,{type:"number",value:i.wellToTankForTransmissionAndDistributionFactor,name:"wellToTankForTransmissionAndDistributionFactor",onChange:s,error:l.wellToTankForTransmissionAndDistributionFactor})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Transmission & Distribution (kgCO2e)"})}),(0,fe.jsx)(ie.ks,{type:"number",value:i.transmissionAndDistributionFactor,name:"transmissionAndDistributionFactor",onChange:s,error:l.transmissionAndDistributionFactor})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Start Date"})}),(0,fe.jsx)(ie.lr,{placeholder:"Select start date",name:"startDate",disabled:t,onDayClick:e=>{a({...i,startDate:e.toISOString()})},selectedDate:i.startDate?new Date(i.startDate):null})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"End Date"})}),(0,fe.jsx)(ie.lr,{placeholder:"Select end date",name:"endDate",disabled:t,onDayClick:e=>{a({...i,endDate:e.toISOString()})},selectedDate:i.endDate?new Date(i.endDate):null})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Reference"})}),(0,fe.jsx)(ie.ks,{value:i.reference,name:"reference",onChange:s})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Notes"})}),(0,fe.jsx)(ie.ks,{value:i.notes,name:"notes",onChange:s})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Visible to All Accounts"})}),(0,fe.jsx)(ie.Sc,{name:"isGlobal",checked:i.isGlobal,onChange:s})]})}),!i.isGlobal&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(rP,{item:!0,children:[(0,fe.jsx)(iP,{children:(0,fe.jsx)(aP,{children:"Select Accounts"})}),(0,fe.jsx)(wu,{name:"accountIds",value:i.accountIds,onChange:e=>{a({...i,accountIds:e.map(e=>{let{id:n}=e;return n})})},isMulti:!0})]})})]})}const sP=(0,le.default)(ie.fI)`
  justify-content: space-between;
  padding: ${e=>e.theme.geometry.md.spacing};
`,dP=(0,le.default)(ie.fv)`
  max-width: 48%;
  flex-grow: 0;
`;function cP(e){let{factor:n,onDismiss:t,onComplete:a}=e;const[i,l]=(0,g.useState)(n),[r,o]=(0,g.useState)({}),[s]=function(e){let{onComplete:n}=e;const t=KF();return(0,ln.n)(jO,{update:(e,a)=>{const i=a.data?.updateMarketCarbonConversionFactor;if(i){const a=e.readQuery({query:LO,variables:t}),l=(a?.getMarketCarbonConversionFactors||[]).map(e=>e.id===i.id?i:e);e.writeQuery({query:LO,variables:t,data:{getMarketCarbonConversionFactors:l}}),n(l)}}})}({onComplete:a}),[d]=function(e){let{onComplete:n}=e;const t=KF();return(0,ln.n)(wO,{update:(e,a)=>{const i=a.data?.deleteMarketCarbonConversionFactor;e.writeQuery({query:LO,variables:t,data:{getMarketCarbonConversionFactors:i}}),n(i)}})}({onComplete:a}),{showNotification:c}=tn();return(0,fe.jsxs)(ie.aF,{size:"md",onDismiss:t,show:!0,children:[(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(oP,{heading:"Edit Market Based Emission Factors",isSubmitting:!1,onChange:e=>l(n=>({...n,...e})),values:i,errors:r,setErrors:o})}),(0,fe.jsxs)(sP,{container:!0,children:[(0,fe.jsx)(dP,{item:!0,span:6,children:(0,fe.jsx)(ie.$n,{color:"danger",onClick:async()=>{if(window.confirm("Are you sure you want to delete this Tariff?"))try{await d({variables:{id:i.id}}),c("Tariff has been deleted","success")}catch(e){c(e.message,"danger")}},children:"Delete"})}),(0,fe.jsx)(dP,{item:!0,span:6,children:(0,fe.jsx)(ie.$n,{color:"success",onClick:async()=>{try{const e=nP(i);if(Object.keys(e).length)return o(e);await s({variables:{factor:i}}),c("Tariff has been edited","success")}catch(e){c(e.message,"danger")}},children:"Edit"})})]})]})}const uP=[{headerName:"Supplier",field:"supplierName",filter:"agSetColumnFilter",resizable:!0,tooltipField:"supplierName"},{headerName:"Tariff",field:"tariff",filter:"agSetColumnFilter",sort:"asc",resizable:!0,tooltipField:"tariff"},{headerName:"Renewable (%)",field:"renewablePercentage",valueFormatter:e=>{let{value:n}=e;return`${n}%`},filter:"agNumberColumnFilter"},{headerName:"Generation (kgCO2e)",filter:"agNumberColumnFilter",field:"generationFactor"},{headerName:"WTT (Generation) (kgCO2e)",filter:"agNumberColumnFilter",field:"wellToTankForGenerationFactor"},{headerName:"WTT (T&D) (kgCO2e)",filter:"agNumberColumnFilter",field:"wellToTankForTransmissionAndDistributionFactor"},{headerName:"Transmission & Distribution (kgCO2e)",filter:"agNumberColumnFilter",field:"transmissionAndDistributionFactor"},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",filterParams:{comparator:In},valueFormatter:e=>{let{value:n}=e;return Sn(n)}},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",filterParams:{comparator:In},valueFormatter:e=>{let{value:n}=e;return Sn(n)}},{headerName:"Reference",field:"reference",cellRenderer:"link",filter:"agSetColumnFilter",resizable:!0,tooltipField:"reference"},{headerName:"Notes",field:"notes",filter:"agSetColumnFilter"},{headerName:"Edit",cellRenderer:"edit",filter:!1,sortable:!1}];function pP(e){let{factors:n,editAllowed:t,agGrid:a}=e;const[i,l]=(0,g.useState)(null),r={edit:e=>(0,fe.jsx)(mA,{...e,onEdit:(e,n)=>{const t=eP(n);l(t)}}),link:yA};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Pg,{onColumnVisible:a.onSaveGridColumnState,onColumnPinned:a.onSaveGridColumnState,onColumnResized:a.onSaveGridColumnState,onColumnMoved:a.onSaveGridColumnState,onColumnRowGroupChanged:a.onSaveGridColumnState,onColumnValueChanged:a.onSaveGridColumnState,onColumnPivotChanged:a.onSaveGridColumnState,onDestroy:a.onDestroy,onGridReady:e=>{a.onGridReady(e)},components:r,columnDefs:t?uP:uP.filter(e=>"Edit"!==e.headerName),rowData:n}),i&&(0,fe.jsx)(cP,{factor:i,onComplete:e=>{a.api?.setGridOption("rowData",e),l(null)},onDismiss:()=>l(null)})]})}const mP=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
`;function fP(e){let{onDismiss:n,onComplete:t}=e;const[a,i]=(0,g.useState)(eP(null)),[l,r]=(0,g.useState)({}),[o]=function(e){let{onComplete:n}=e;const t=KF();return(0,ln.n)(IO,{update:(e,a)=>{const i=a.data?.createMarketCarbonConversionFactor;if(i){const a=e.readQuery({query:LO,variables:t}),l=(a?.getMarketCarbonConversionFactors||[]).concat([i]);e.writeQuery({query:LO,variables:t,data:{getMarketCarbonConversionFactors:l}}),n(l)}}})}({onComplete:t}),{showNotification:s}=tn();return(0,fe.jsxs)(ie.aF,{size:"md",onDismiss:n,show:!0,children:[(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(oP,{heading:"Market Based Emission Factors",isSubmitting:!1,onChange:i,values:a,errors:l,setErrors:r})}),(0,fe.jsx)(mP,{container:!0,children:(0,fe.jsx)(ie.fv,{item:!0,span:12,children:(0,fe.jsx)(ie.$n,{color:"success",onClick:async()=>{try{const e=nP(a);if(Object.keys(e).length)return r(e);await o({variables:{factor:a}}),s("Tariff has been created","success")}catch(e){s(e.message,"danger")}},children:"Create"})})})]})}const yP=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,gP=(0,le.default)(ie.fv)`
  justify-content: flex-end;
`,hP=(0,le.default)(ie.$n)`
  align-self: flex-end;
  width: 200px;
`;function xP(){const[e,n]=(0,g.useState)(0),[t,a]=(0,g.useState)(!1),{loading:i,data:l,error:r,refetch:o}=function(){const e=KF(),n=(0,x.IT)(LO,{variables:e,skip:lr().loading,notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"});return{...n,refetch:()=>n.refetch(e)}}(),s=l?.getMarketCarbonConversionFactors||[],d=lr(),c=qr(),u=d.data.includes("createMarketCarbonConversionFactorAll");return(0,fe.jsxs)(yP,{children:[(0,fe.jsx)(gu,{name:"MarketBasedCarbonConversionFactors__Controls",icon:"recycle",iconColor:"primary",title:"Market Based Emission Factors",children:(0,fe.jsx)(gP,{span:6,container:!0,children:u&&(0,fe.jsx)(hP,{onClick:()=>{a(!0)},children:"+ Electricity Tariff"})})}),(0,fe.jsx)(ie.tU,{variant:"fullWidth",value:e,onChange:(e,t)=>n(t),children:(0,fe.jsx)(ie.oz,{label:"Electricity"})}),(0,fe.jsx)(v_,{error:r,loading:i,currentTab:e,index:0,retry:o,children:(0,fe.jsx)(pP,{agGrid:c,editAllowed:u,factors:s})}),t&&(0,fe.jsx)(fP,{onComplete:e=>{c.api?.setGridOption("rowData",e),a(!1)},onDismiss:()=>{a(!1)}})]})}var TP=t(13380),bP=t.n(TP),vP=t(24931),CP=t.n(vP);const kP=S.J1`
  {
    getAllUnits {
      id
      name
    }
  }
`,SP=S.J1`
  mutation CreateContainerType($input: CreateContainerTypeInput!) {
    createContainerType(input: $input) {
      ...ContainerTypeFields
    }
  }
  ${bP()}
`,NP=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  ${e=>{if(e.action)return`background-color: ${e.theme.colors.warning.highlight.background};`}};
`,AP=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.profile.padding};
  word-break: break-all;
  flex: 1;
`,RP=(e,n,t)=>e[n]&&"function"==typeof e[n].format?e[n].format(t[n]):t[n];function DP(e){let{containerType:n,config:t}=e;return(0,fe.jsx)(NP,{container:!0,children:Object.keys(t).map(e=>(0,fe.jsx)(AP,{item:!0,span:t[e].width,children:(0,fe.jsx)(ie.EY,{children:RP(t,e,n)})},e))})}const LP={name:{columnName:"Name",width:4},volume:{columnName:"Volume",width:4,format:e=>null===e?"-":Fa()(e,4)},unit:{columnName:"Unit",width:4}},IP=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing} ${e.theme.geometry.md.spacing}`};
  background: ${e=>e.theme.colors.overlay.light.background};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  border-top: 1px solid ${e=>e.theme.colors.text.light.background};
  flex: 0 0 auto;
`,jP=le.default.div`
  flex: 1 1 auto;
  overflow: scroll;
`;function wP(e,n){return Hn(e.name,n.name)}function OP(e){let{typeSizes:n,config:t=LP}=e;return(0,fe.jsxs)(g.Fragment,{children:[(0,fe.jsx)(IP,{align:"between",container:!0,children:Object.keys(t).map(e=>(0,fe.jsx)(ie.fv,{item:!0,span:t[e].width,children:(0,fe.jsx)(ie.EY,{weight:"bold",children:t[e].columnName})},e))}),(0,fe.jsx)(jP,{children:n.slice().sort(wP).map(e=>(0,fe.jsx)(DP,{containerType:e,config:t},e.id))})]})}const EP=le.default.form`
  min-height: 50vh;
  padding: ${e=>e.theme.geometry.md.spacing};
`,_P=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,FP=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,PP=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,BP=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,UP=(0,le.default)(ie.fI)`
  margin-top: ${e=>e.theme.geometry.xs.spacing};
`,$P=(0,le.default)(ie.fv)`
  padding: 0 ${e=>e.theme.geometry.xs.spacing};
`;function MP(e){let{onDismiss:n,onCompleted:t,onError:a}=e;const[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)({name:"",volume:0,volumeUnitId:null}),[s,d]=(0,g.useState)({}),[c]=(0,ln.n)(SP,{onError:a,onCompleted:t}),{data:u}=(0,x.IT)(kP),p=u?.getAllUnits||[];return(0,fe.jsx)(ie.aF,{onDismiss:n,size:"md",show:!0,height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(EP,{children:[(0,fe.jsx)(PP,{size:"lg",children:"Add Container Type"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(BP,{item:!0,children:[(0,fe.jsx)(FP,{children:(0,fe.jsx)(_P,{children:"Container Name"})}),(0,fe.jsx)(ie.ks,{disabled:i,onChange:e=>{e.target.value&&d({...s,name:null}),o({...r,name:e.target.value})},name:"name",value:r.name,error:s.name,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(BP,{item:!0,children:[(0,fe.jsx)(FP,{children:(0,fe.jsx)(_P,{children:"Volume"})}),(0,fe.jsx)(ie.ks,{name:"volume",type:"number",disabled:i,onChange:e=>{e.target.value&&d({...s,volume:null}),o({...r,volume:e.target.value})},value:r.volume,error:s.volume})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(BP,{item:!0,children:[(0,fe.jsx)(FP,{children:(0,fe.jsx)(_P,{children:"Unit"})}),(0,fe.jsx)(ie.l6,{name:"volumeUnitId",disabled:i,error:s.volumeUnitId,onChange:e=>{e.target.select.value&&d({...s,volumeUnitId:null}),o({...r,volumeUnitId:e.target.select.value})},value:r.volumeUnitId,options:p.map(e=>({value:e.id,label:e.name}))})]})}),(0,fe.jsxs)(UP,{container:!0,children:[(0,fe.jsx)($P,{container:!0,item:!0,children:(0,fe.jsx)(ie.$n,{color:"info",onClick:n,children:"Cancel"})}),(0,fe.jsx)($P,{container:!0,item:!0,children:(0,fe.jsx)(ie.$n,{type:"button",onClick:async()=>{const e=function(e){const n={};return e.name||(n.name="Name is required"),e.volume||(n.volume="Volume is required"),parseFloat(e.volume,10)>0||(n.volume="Volume should be greater than 0"),e.volumeUnitId||(n.volumeUnitId="Please select a unit"),n}(r);if(Object.keys(e).length)return d(e);l(!0),await c({variables:{input:{id:(0,Wa.A)(),name:r.name,volume:parseFloat(r.volume,10),volumeUnitId:r.volumeUnitId}}}),l(!1)},children:"Add"})})]})]})})}const VP=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,GP=(0,le.default)(ie.vj)`
  flex: 1;
`,zP=(0,le.default)(ie.fI)`
  flex: 1;
  min-width: 400px;
`,WP=(0,le.default)(ie.fv)`
  padding: 0 ${e=>e.theme.geometry.xs.spacing};
`,qP=(0,le.default)(ie.fv)`
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
`;function JP(){const{data:e,loading:n,error:t,refetch:a}=(0,x.IT)(CP()),i=e&&e.getContainerTypes?e.getContainerTypes:[],[l,r]=(0,g.useState)(null),o=function(e){const n=[];for(const t of e)for(const e of t.sizes)n.push({id:`${t.id}_${e.id}`,name:t.name,volume:e.volume,unit:e.volumeUnit?e.volumeUnit.name:"-"});return n}(i),[s,d,c]=fd(o,["name","unit","volume"]),[u,p]=(0,g.useState)(!1),m=lr().data.includes("createContainerTypeAll");return(0,fe.jsxs)(VP,{children:[u&&(0,fe.jsx)(MP,{onDismiss:()=>p(!1),onError:e=>r({message:e.message,color:"danger"}),onCompleted:()=>{p(!1),r({message:"Container has been created!",color:"success"}),a()}}),l&&(0,fe.jsx)(ie.Eg,{name:l.message,color:l.color,show:!0,children:l.message}),(0,fe.jsx)(gu,{icon:"dumpster",iconColor:"primary",title:"Container Types",children:(0,fe.jsxs)(zP,{container:!0,children:[(0,fe.jsx)(ie.fv,{span:m?6:12,container:!0,item:!0,children:(0,fe.jsx)(GP,{value:s,onChange:e=>d(e.target.value),onSearch:e=>d(e.target.value),hideButton:!0})}),m&&(0,fe.jsx)(WP,{container:!0,item:!0,span:6,children:(0,fe.jsx)(ie.$n,{onClick:()=>p(!0),children:"+ Add Container Type"})})]})}),t?(0,fe.jsx)($c,{error:t,retry:a}):n?(0,fe.jsx)(qP,{children:(0,fe.jsx)(ie.Ip,{})}):(0,fe.jsx)(OP,{typeSizes:c})]})}const YP=S.J1`
  query GetAllLegislation($accountId: ID!) {
    getAllLegislation(accountId: $accountId) {
      id
      title
    }
  }
`,HP=S.J1`
  mutation createLegislation($legislation: LegislationInput, $userId: ID!, $accountId: ID!) {
    createLegislation(input: { legislation: $legislation, userId: $userId, accountId: $accountId }) {
      id
      title
    }
  }
`,KP=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,QP=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,ZP=e=>{let{id:n,title:t,path:a}=e;return(0,fe.jsx)(ug,{name:"configuration-menu__item--contractors",to:`${a}/${n}`,children:(0,fe.jsxs)(KP,{name:`legislation-row--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(QP,{name:`legislation-row__profile-picture--${n}`,size:"xs",accountName:t}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`legislation-row__name--${n}`,size:"md",children:t})})]})})},XP=JSON.parse('[{"label":"England","value":"ENG"},{"label":"Northern Ireland","value":"NIR"},{"label":"Scotland","value":"SCO"},{"label":"Wales","value":"WAL"},{"label":"Europe","value":"EUR"}]'),eB=e=>{let{value:n,onChange:t}=e;return(0,fe.jsx)(ie.KF,{name:"countries",placeholder:"Select applicable countires...",multiValueColor:"tertiary",value:n,options:XP,onChange:t})},nB=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,tB=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,aB=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,iB=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,lB=e=>{let{heading:n,isSubmitting:t,legislation:a,setLegislation:i}=e;const l=e=>{i({...a,[e.target.name]:e.target.value})};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(aB,{size:"lg",children:n}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(iB,{item:!0,children:[(0,fe.jsx)(tB,{children:(0,fe.jsx)(nB,{children:"Legislation Title"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"title",value:a.title,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(iB,{item:!0,children:[(0,fe.jsx)(tB,{children:(0,fe.jsx)(nB,{children:"Synopsis"})}),(0,fe.jsx)(ie.fs,{size:"lg",disabled:t,onChange:e=>l(e),name:"synopsis",value:a.synopsis,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(iB,{item:!0,children:[(0,fe.jsx)(tB,{children:(0,fe.jsx)(nB,{children:"Links (Comma Seperated)"})}),(0,fe.jsx)(ie.fs,{size:"lg",disabled:t,onChange:e=>l(e),name:"links",value:a.links,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(iB,{item:!0,children:[(0,fe.jsx)(tB,{children:(0,fe.jsx)(nB,{children:"Countries"})}),(0,fe.jsx)(eB,{name:"countries",onChange:e=>{l({target:{value:e.target.select,name:"countries"}})},value:a.countries})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(iB,{item:!0,children:[(0,fe.jsx)(tB,{children:(0,fe.jsx)(nB,{children:"Gov API Path (e.g “/asp/2003/3“)"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"apiData",value:a.apiData,box:!0})]})})]})},rB=e=>{const n=!!e.title,t=!!e.synopsis,a=!!e.links.length,i=!!e.countries.length;return n&&t&&a&&i},oB=le.default.div`
  padding: 20px;
`,sB=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,dB=e=>{let{onDismiss:n,onComplete:t}=e;const a=Bl(),i=Je(),[l]=(0,ln.n)(HP,{onCompleted:()=>{t({message:"Legislation has been created.",colour:"success"}),n()},onError:()=>{t({message:"Something went wrong! Please try again later.",colour:"danger"})}}),[r,o]=(0,g.useState)({title:"",synopsis:"",links:"",countries:[],apiData:""}),s=e=>({id:(0,Wa.A)(),...e,countries:e.countries.map(e=>e.value),links:e.links.split(","),isActive:!0,type:"LEGAL",apiData:{path:e.apiData}});return(0,fe.jsx)(ie.aF,{size:"md",show:!0,onDismiss:()=>n(),children:(0,fe.jsxs)(oB,{children:[(0,fe.jsx)(lB,{heading:"Create New Legislation",legislation:r,setLegislation:o}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(sB,{item:!0,children:(0,fe.jsx)(ie.$n,{disabled:!rB(s(r)),onClick:()=>{l({variables:{legislation:{...s(r)},userId:a,accountId:i}})},children:"Submit"})})})]})})},cB=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,uB=le.default.div`
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
`,pB=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,mB=e=>{let{accountId:n}=e;const[t,a]=(0,g.useState)(""),[i,l]=(0,g.useState)(!1),{pathname:r}=(0,m.zy)(),[o,s]=(0,g.useState)(null),{data:d,loading:c}=(0,x.IT)(YP,{variables:{accountId:n}}),u=d?((e,n)=>{if(!n)return e;const t=new pd.vj("id");return t.addIndex("title"),t.addDocuments(e),t.search(n)})(d.getAllLegislation,t):[];return(0,fe.jsxs)(cB,{children:[(0,fe.jsx)(ie.fv,{name:"ConfigurationLegislationContainer",container:!0,fullHeight:!0,children:(0,fe.jsx)(gu,{name:"ConfigurationLegislationContainer__Controls",icon:"pencil-alt",iconColor:"tertiary",title:"Legislation",children:(0,fe.jsxs)(uB,{children:[(0,fe.jsx)(ie.vj,{name:"ConfigurationLegislationContainer__Controls__Search",value:t,onChange:e=>a(e.target.value),hideButton:!0}),(0,fe.jsx)(ie.$n,{name:"ConfigurationLegislationContainer__Controls__Button--add",color:"primary",inline:!0,component:"button",onClick:()=>l(!0),children:"+ Add Legislation"})]})})}),o&&(0,fe.jsx)(ie.Eg,{name:"Task__Notification",show:!0,color:o.colour,onClose:()=>s(null),children:o.message}),c&&(0,fe.jsx)(pB,{children:(0,fe.jsx)(ie.Ip,{})}),!c&&i&&(0,fe.jsx)(dB,{onDismiss:()=>l(!1),onComplete:s}),!!u.length&&u.slice().sort((e,n)=>Hn(e.title,n.title)).map(e=>(0,fe.jsx)(ZP,{id:e.id,title:e.title,path:r},e.id))]})};var fB=t(65718),yB=t.n(fB);const gB=S.J1`
  query GetLegislationById($id: ID!, $accountId: ID!) {
    getLegislationById(id: $id, accountId: $accountId) {
      ...LegislationFields
    }
  }
  ${yB()}
`,hB=S.J1`
  mutation updateLegislation($legislation: LegislationInput, $userId: ID!, $accountId: ID!) {
    updateLegislation(input: { legislation: $legislation, userId: $userId, accountId: $accountId }) {
      ...LegislationFields
    }
  }
  ${yB()}
`,xB=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,TB=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,bB=le.default.div`
  display: flex;
  flex-direction: column;
  padding: ${e=>e.theme.geometry.md.spacing};
`,vB=le.default.div`
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
`,CB=(0,le.default)(ie.DZ)`
  cursor: pointer;
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,kB=e=>{let{accountId:n}=e;const t=Bl(),{legislationId:a}=(0,m.g)(),{data:i,loading:l}=(0,x.IT)(gB,{variables:{id:a,accountId:n}}),[r,o]=(0,g.useState)(""),[s,d]=(0,g.useState)(null),[c,u]=(0,g.useState)(""),[p,f]=(0,g.useState)([]),[y,h]=(0,g.useState)(""),[T,b]=(0,g.useState)(""),[v,C]=(0,g.useState)(""),[k,S]=(0,g.useState)(!1),[N,A]=(0,g.useState)(!1),[R]=(0,ln.n)(hB,{onCompleted:()=>{A(!1),d({colour:"success",message:"Legislation has been updated!"})},onError:()=>{A(!1),d({colour:"danger",message:"Something went wrong! Please try again later."})}});return(0,g.useEffect)(()=>{o(i?i.getLegislationById.title:""),u(i?i.getLegislationById.synopsis:""),C(i?i.getLegislationById.lastFlaggedForReview:""),h(i&&Array.isArray(i.getLegislationById.links)?i.getLegislationById.links.join(","):""),b(i&&i.getLegislationById.apiData?i.getLegislationById.apiData.path:""),f(i&&Array.isArray(i.getLegislationById.countries)?XP.filter(e=>i.getLegislationById.countries.includes(e.value)):"")},[i]),(0,fe.jsxs)(xB,{children:[(0,fe.jsx)(ie.fv,{name:"ConfigurationLegislationContainer",container:!0,fullHeight:!0,children:(0,fe.jsx)(gu,{name:"ConfigurationLegislationContainer__Controls",icon:"pencil-alt",iconColor:"tertiary",title:"Edit Legislation"})}),s&&(0,fe.jsx)(ie.Eg,{name:"ConfigurationLegislationContainer__Notification",show:!0,color:s.colour,onClose:()=>d(null),children:s.message}),l&&(0,fe.jsx)(TB,{children:(0,fe.jsx)(ie.Ip,{})}),!l&&i&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(bB,{children:[(0,fe.jsx)(ie.DZ,{children:"Title"}),(0,fe.jsx)(ie.ks,{onChange:e=>o(e.target.value),value:r,box:!0})]}),(0,fe.jsxs)(bB,{children:[(0,fe.jsx)(ie.DZ,{children:"Synopsis"}),(0,fe.jsx)(xT,{source:c,onSave:e=>u(e)})]}),(0,fe.jsxs)(bB,{children:[(0,fe.jsx)(ie.DZ,{children:"Links"}),(0,fe.jsx)(ie.ks,{onChange:e=>h(e.target.value),value:y,box:!0})]}),(0,fe.jsxs)(bB,{children:[(0,fe.jsx)(ie.DZ,{children:"Countries"}),(0,fe.jsx)(eB,{value:p,onChange:e=>{f(e.target.select)}})]}),(0,fe.jsxs)(bB,{children:[(0,fe.jsx)(ie.DZ,{children:"Api Link"}),(0,fe.jsx)(ie.ks,{onChange:e=>b(e.target.value),value:T,box:!0})]}),(0,fe.jsxs)(vB,{children:[(0,fe.jsxs)(vB,{onClick:()=>S(!k),children:[(0,fe.jsx)(CB,{children:"Flag For Review"}),(0,fe.jsx)(ie.Sc,{checked:k})]}),(0,fe.jsxs)(bB,{children:[!N&&(0,fe.jsx)(ie.$n,{onClick:()=>{S(!1),A(!0)},children:"Clear Review Flag"}),N&&(0,fe.jsx)(CB,{onClick:()=>A(!1),children:"Undo"})]})]}),v&&(0,fe.jsx)(bB,{children:(0,fe.jsx)(ie.EY,{children:`This legislation was last flagged for review on ${bn()(v).format("DD/MM/YYYY")}`})}),(0,fe.jsx)(bB,{children:(0,fe.jsx)(ie.$n,{name:"save",color:"success",onClick:()=>{R({variables:{legislation:{...i.getLegislationById,title:r,apiData:{path:T},synopsis:c,lastFlaggedForReview:N?null:k?(new Date).toISOString():i.getLegislationById.lastFlaggedForReview,countries:p.map(e=>e.value),links:y.split(",")},userId:t,accountId:n}})},children:"Save"})})]})]})},SB=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,NB=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,AB=e=>{let{accountId:n,businessName:t,profileImage:a,path:i}=e;return(0,fe.jsx)(ug,{name:"configuration-menu__item--contractors",to:`${i}/${n}`,children:(0,fe.jsxs)(SB,{name:`account-row--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(NB,{name:`account-row__profile-picture--${n}`,src:a,size:"xs",accountName:t}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${n}`,size:"md",children:t})})]})})},RB=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,DB=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,LB=()=>{const[e,n]=(0,g.useState)(""),{pathname:t}=(0,m.zy)(),{data:a,loading:i}=(0,x.IT)(ju,{variables:{limit:100,filters:{text:[{filterType:"text",type:"contains",filter:e,field:"name"}]}}}),l=a?.getAccounts.rows||[];return(0,fe.jsxs)(RB,{children:[(0,fe.jsx)(ie.fv,{name:"ConfigurationMssContainer",container:!0,fullHeight:!0,children:(0,fe.jsx)(gu,{name:"ConfigurationMssSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:"Management Systems Subscriptions",children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationMssSubscriptionsContainer__Controls__Search",value:e,onChange:e=>n(e.target.value),hideButton:!0})})})}),i&&(0,fe.jsx)(DB,{children:(0,fe.jsx)(ie.Ip,{})}),!i&&!l.length&&(0,fe.jsx)(Fu,{name:"ConfigurationIntelligenceSubscriptionsContainer__NoResults",title:"There are no results for this search."}),!!l.length&&l.slice().map(e=>(0,fe.jsx)(AB,{accountId:e.id,businessName:e.name,profileImage:e.profile,path:t},e.id))]})},IB=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,jB=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`;class wB extends g.Component{render(){const{managementSystemName:e,id:n,onCheckboxClick:t,checked:a}=this.props;return(0,fe.jsx)("div",{children:(0,fe.jsxs)(IB,{name:`mss-row--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(jB,{name:`mss-row__profile-picture--${n}`,src:"",size:"xs",accountName:e}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`mss-row__name--${n}`,size:"md",children:e})}),(0,fe.jsx)(ie.Sc,{id:`update-subscription-${n}`,name:n,onChange:t,checked:a})]})},n)}}const OB=wB,EB=S.J1`
  query GetAllManagementSystems {
    getAllManagementSystems {
      id
      title
    }
  }
`,_B=S.J1`
  query GetManagementSystemSubscription($accountId: ID!) {
    getManagementSystemSubscription(accountId: $accountId)
  }
`,FB=S.J1`
  mutation SetManagementSystemSubscription($accountId: ID!, $subscriptions: [String!]!) {
    setManagementSystemSubscription(accountId: $accountId, subscriptions: $subscriptions)
  }
`,PB=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,BB=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,UB=()=>{const[e,n]=(0,g.useState)(""),[t,a]=(0,g.useState)([]),[i,l]=(0,g.useState)([]),{accountId:r}=(0,m.g)(),{data:o,loading:s}=(0,x.IT)(EB),{data:d,loading:c}=(0,x.IT)(_B,{variables:{accountId:r},fetchPolicy:"network-only"}),[u]=(0,ln.n)(FB);return(0,g.useEffect)(()=>{d&&a(d.getManagementSystemSubscription),o&&l(o.getAllManagementSystems)},[o,d]),(0,fe.jsxs)(PB,{children:[(0,fe.jsx)(ie.fv,{name:"ConfigurationMssContainer",container:!0,fullHeight:!0,children:(0,fe.jsx)(gu,{name:"ConfigurationMssSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:"Management Systems Subscriptions",children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationMssSubscriptionsContainer__Controls__Search",value:e,onChange:e=>n(e.target.value),hideButton:!0})})})}),(s||c)&&(0,fe.jsx)(BB,{children:(0,fe.jsx)(ie.Ip,{})}),!(s||c)&&i&&i.map(e=>(0,fe.jsx)(OB,{id:e.id,managementSystemName:e.title,onCheckboxClick:()=>(e=>{let n=[];n=t.includes(e)?t.filter(n=>n!==e):[...t,e],a(n),u({variables:{accountId:r,subscriptions:n}})})(e.id),checked:t.includes(e.id)},e.id))]})},$B=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,MB=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,VB=e=>{let{accountId:n,businessName:t,profileImage:a,path:i}=e;return(0,fe.jsx)(ug,{name:"configuration-menu__item--contractors",to:`${i}/${n}`,children:(0,fe.jsxs)($B,{name:`account-row--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(MB,{name:`account-row__profile-picture--${n}`,src:a,size:"xs",accountName:t}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${n}`,size:"md",children:t})})]})})},GB=()=>{const e=(0,m.zy)(),[n,t]=(0,g.useState)(""),{loading:a,error:i,data:l,refetch:r,networkStatus:o}=(0,x.IT)(ju,{variables:{limit:100,filters:{text:[{filterType:"text",type:"contains",filter:n,field:"name"}]}}}),s=l?.getAccounts.rows||[];return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationIntelligenceSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:"Intelligence Subscriptions",children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationIntelligenceSubscriptionsContainer__Controls__Search",value:n,onChange:e=>t(e.target.value),hideButton:!0})})}),(a&&3!==o||4===o)&&(0,fe.jsx)(Rc,{name:"ConfigurationAccountsContainer__Loading"}),i&&(0,fe.jsx)(ie.Kw,{error:i,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationAccountsContainer__Error",icon:a,title:n,body:t,retry:r})}}),!a&&!s.length&&(0,fe.jsx)(Fu,{name:"ConfigurationIntelligenceSubscriptionsContainer__NoResults",title:"There are no results for this search."}),s.slice().sort((e,n)=>Hn(e.name,n.name)).map(n=>(0,fe.jsx)(VB,{accountId:n.id,businessName:n.name,profileImage:n.profile,path:e.pathname},n.id))]})})},zB=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,WB=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,qB=e=>{let{name:n,id:t,onCheckboxClick:a,checked:i}=e;return(0,fe.jsx)("div",{children:(0,fe.jsxs)(zB,{name:`kb-row--${t}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(WB,{name:`kb-row__profile-picture--${t}`,src:"",size:"xs",accountName:n}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${t}`,size:"md",children:n})}),(0,fe.jsx)(ie.Sc,{id:`update-subscription-${t}`,name:t,onChange:a,checked:i})]})},t)},JB=S.J1`
  query GetAccountInfo($id: ID!) {
    getAccountInfo(id: $id) {
      id
      name
      accessControls {
        learn
        intelligence
        tasks
        projects
        v2Design
        comply {
          legislation
          tagLevelLegislation
          policies
          systems
          targets
          frameworks
          agreements
        }
        data {
          waste
          electricity
          gas
          water
          materials
          fuel
          transport
          refrigerants
          heatSteam
          oilAndGas
        }
      }
    }
  }
`,YB=S.J1`
  query GetIntelligenceSubscriptions($accountId: ID!) {
    getIntelligenceSubscriptions(accountId: $accountId)
  }
`,HB=S.J1`
  mutation SaveIntelligenceSubscriptions($accountId: ID!, $subscriptions: [String!]!) {
    saveIntelligenceSubscriptions(input: { accountId: $accountId, subscriptions: $subscriptions }) {
      subscriptions
    }
  }
`,KB=(S.J1`
  query GetDashboardById($id: ID!) {
    getDashboard(id: $id) {
      id
      name
      description
      area
      provider
      providerDashboardId
    }
  }
`,S.J1`
  query GetAllDashboards {
    getAllDashboards {
      id
      name
      description
      area
      provider
      providerDashboardId
    }
  }
`,(0,Kc.W)(e=>{let{knowledgebases:n,accountId:t}=e;const{data:a}=(0,x.IT)(YB,{variables:{accountId:t},fetchPolicy:"network-only"}),[i]=(0,ln.n)(HB),[l,r]=(0,g.useState)([]);return(0,g.useEffect)(()=>{r(a?.getIntelligenceSubscriptions||[])},[a]),(0,fe.jsx)(fe.Fragment,{children:n.slice().sort((e,n)=>Hn(e.title,n.title)).map(e=>(0,fe.jsx)(qB,{id:e.id,name:e.title,onCheckboxClick:()=>(e=>{let n=[...l];n.includes(e)?n=n.filter(n=>n!==e):n.push(e),i({variables:{accountId:t,subscriptions:n}}),r(n)})(e.id),checked:!l.includes(e.id)},e.id))})})),QB=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
`,ZB=e=>{let{title:n,accountId:t}=e;const[a,i]=(0,g.useState)(""),{data:l,loading:r}=function(e){const{data:n,loading:t}=(0,x.IT)(jE,{variables:{accountId:e}});return{data:n?.getAllKnowledgeBases||[],loading:t}}(t),o=((e,n)=>{if(!n)return e;const t=new pd.vj("id");return t.addIndex("title"),t.addDocuments(e),t.search(n)})(l,a);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationLearnSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:n,children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationLearnSubscriptionsContainer__Controls__Search",value:a,onChange:e=>i(e.target.value),hideButton:!0})})}),r&&(0,fe.jsx)(QB,{children:(0,fe.jsx)(ie.Ip,{size:"md"})}),!r&&!o.length&&(0,fe.jsx)(Fu,{name:"ConfigurationUsersContainer__NoResults",title:"There are no results for this search."}),!!o.length&&(0,fe.jsx)(KB,{knowledgebases:o,accountId:t})]})})},XB=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
`,eU=()=>{const{accountId:e}=(0,m.g)(),{loading:n,error:t,data:a}=(0,x.IT)(JB,{variables:{id:e}});return(0,fe.jsxs)(fe.Fragment,{children:[(n||t)&&(0,fe.jsx)(XB,{children:(0,fe.jsx)(ie.Ip,{size:"md"})}),!n&&!t&&(0,fe.jsx)(ZB,{accountId:e,title:`Intelligence Subscriptions - ${a.getAccountInfo.name}`})]})},nU=S.J1`
  fragment SurveyTemplateSubscriptionFields on SurveyTemplateSubscription {
    account {
      id
      name
    }
    template {
      id
      name
    }
  }
`,tU=S.J1`
  {
    getSurveyTemplateSubscriptions {
      ...SurveyTemplateSubscriptionFields
    }
  }
  ${nU}
`,aU=S.J1`
  mutation CreateSurveyTemplateSubscription($accountId: ID!, $templateId: ID!) {
    createSurveyTemplateSubscription(accountId: $accountId, templateId: $templateId) {
      ...SurveyTemplateSubscriptionFields
    }
  }
  ${nU}
`,iU=S.J1`
  mutation DeleteSurveyTemplateSubscription($accountId: ID!, $templateId: ID!) {
    deleteSurveyTemplateSubscription(accountId: $accountId, templateId: $templateId) {
      ...SurveyTemplateSubscriptionFields
    }
  }
  ${nU}
`;const lU=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`;function rU(e){let{onDismiss:n}=e;const[t,a]=(0,g.useState)({accountId:"",templateId:""}),[i,l]=(0,g.useState)({}),{data:r}=gb(),[o,{loading:s}]=function(){const{showNotification:e}=tn();return(0,ln.n)(aU,{onCompleted:n=>{let{createSurveyTemplateSubscription:t}=n;e(`Subscribed ${t.account.name} to ${t.template.name}`,"success")},onError:n=>e(n.toString(),"danger"),update:(e,n)=>{const{getSurveyTemplateSubscriptions:t}=e.readQuery({query:tU}),a=n.data?.createSurveyTemplateSubscription;a&&(e.writeQuery({query:tU,data:{getSurveyTemplateSubscriptions:t.concat(a)}}),((e,n)=>{if(!n?.createSurveyTemplateSubscription)return;const t=n.createSurveyTemplateSubscription,a={query:Rm(),variables:{accountId:t.account.id}},i=e.readQuery(a);if(i){const n=i.getSurveyTemplatesByAccountId,l={getSurveyTemplatesByAccountId:Array.isArray(n)?n.concat(t.template):[t.template]};e.writeQuery({...a,data:l})}})(e,n.data))}})}(),d=(0,g.useCallback)(async e=>{e.preventDefault();const[a,i]=function(e){const n={};return e.accountId||(n.accountId="Account is required"),e.templateId||(n.templateId="Template is required"),Object.keys(n).length?[n,null]:[null,e]}(t);if(a)return l(e=>({...e,...a}));await o({variables:i,onCompleted:()=>n()})},[t,o,n]);return(0,fe.jsx)(lU,{children:(0,fe.jsxs)(ie.hh,{onSubmit:d,children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:"Subscribe template"}),(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.Column,{label:"Accounts",children:(0,fe.jsx)(wu,{value:t.accountId,error:i.accountId,onChange:(0,g.useCallback)(e=>a(n=>({...n,accountId:e.id})),[])})})}),(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.SelectColumn,{label:"Template",options:r?.getSurveyTemplates?.map(e=>({value:e.id,label:e.name})),error:i.templateId,onChange:(0,g.useCallback)(e=>a(n=>({...n,templateId:e.target.value})),[])})}),(0,fe.jsx)(ie.hh.ButtonColumn,{disabled:s,onClick:d,children:"Subscribe"})]})})}const oU=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,sU=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,dU=le.default.div`
  height: 100%;
`,cU=e=>{let{data:n,onDelete:t}=e;return(0,fe.jsx)(oU,{children:(0,fe.jsx)(sU,{onClick:()=>t(n),children:(0,fe.jsx)(ie.In,{icon:"trash",color:"#ff909a"})})})},uU={resizable:!0,sortable:!0,filter:!0,cellStyle:{height:"auto"}},pU=[{headerName:"Account",field:"account.name"},{headerName:"Template",field:"template.name"},{headerName:"Actions",cellRenderer:"actions"}];function mU(e){let{rows:n,onDelete:t}=e;const a={actions:e=>(0,fe.jsx)(cU,{...e,onDelete:e=>t(e)})},i=(0,g.useCallback)(e=>{e.api.sizeColumnsToFit()},[]);return(0,fe.jsx)(dU,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{rowSelection:"single",defaultColDef:uU,columnDefs:pU,components:a,rowData:n,onGridReady:i,paginationPageSize:25,pagination:!0})})}const fU=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,yU=(0,le.default)(gu)`
  justify-content: space-between;
`,gU=()=>{const{data:e,loading:n,error:t,refetch:a,networkStatus:i}=(0,x.IT)(tU),[l,r]=(0,g.useState)(!1),[o,s]=(0,g.useState)(null),d=(0,g.useCallback)(()=>r(e=>!e),[]),c=(0,g.useCallback)(e=>s(e),[]),u=(0,g.useCallback)(()=>s(null),[]),[p]=function(){const{showNotification:e}=tn();return(0,ln.n)(iU,{onCompleted:n=>{let{deleteSurveyTemplateSubscription:t}=n;e(`Unsubscribed ${t.account.name} from ${t.template.name}`,"success")},onError:n=>{e(`Something went wrong. If the problem persists, contact support. ${n}`,"danger")},update:(e,n)=>{const{getSurveyTemplateSubscriptions:t}=e.readQuery({query:tU}),a=n.data?.deleteSurveyTemplateSubscription;a&&(e.writeQuery({query:tU,data:{getSurveyTemplateSubscriptions:t.filter(e=>!(e.account.id===a.account.id&&e.template.id===a.template.id))}}),((e,n)=>{if(!n?.deleteSurveyTemplateSubscription)return;const t=n.deleteSurveyTemplateSubscription,a={query:Rm(),variables:{accountId:t.account.id}},i=e.readQuery(a);if(i){const n=i.getSurveyTemplatesByAccountId,l={getSurveyTemplatesByAccountId:Array.isArray(n)?n.filter(e=>e.id!==t.template.id):[]};e.writeQuery({...a,data:l})}})(e,n.data))}})}(),m=(0,g.useCallback)(async()=>{o&&await p({variables:{accountId:o?.account.id,templateId:o?.template.id},onCompleted:()=>u()})},[p,o,u]);return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsx)(yU,{name:"ConfigurationSubscriptionsContainer",icon:"briefcase",iconColor:"primary",title:"Template Subscriptions",children:(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(fU,{size:"md",color:"primary",inline:!0,onClick:d,children:"+ Add Template Subscription"})})}),(n&&3!==i||4===i)&&(0,fe.jsx)(Rc,{}),t&&(0,fe.jsx)($c,{error:t,retry:a}),!t&&!n&&e?.getSurveyTemplateSubscriptions&&(0,fe.jsx)(mU,{rows:e?.getSurveyTemplateSubscriptions,onDelete:c}),o&&(0,fe.jsx)(Ky,{confirmButtonTitle:"Unsubscribe",cancelButtonTitle:"Cancel",headingText:`Are you sure you want to unsubscribe ${o.account.name} from ${o.template.name}?`,bodyText:"The subscription can be re-created at anytime",onConfirmAction:m,onDismiss:u,onCancelAction:u,show:!0}),l&&(0,fe.jsx)(ie.aF,{size:"md",height:"50vh",onDismiss:d,dismissable:!0,show:!0,children:(0,fe.jsx)(rU,{onDismiss:d})})]})},hU=S.J1`
  query GetQuestions($offset: Int, $limit: Int, $filters: Filters, $sort: [SortCommand!]) {
    getQuestions(offset: $offset, limit: $limit, filters: $filters, sort: $sort) {
      totalRows
      rows {
        id
        name
        page
        title
        description
        type
        required
        payload
        order
        createdDate
        isKeyMetric
        options {
          id
          name
          score
          isNotApplicableMarker
          isDataMissingMarker
        }
        category {
          id
          name
        }
        template {
          id
          name
          description
        }
      }
    }
  }
`,xU=S.J1`
  query GetQuestionsFilter($field: String!) {
    getQuestionsFilter(field: $field) {
      label
      value
    }
  }
`,TU=S.J1`
  mutation UpdateSurveyQuestion($question: SurveyQuestionInput!) {
    updateSurveyQuestion(question: $question) {
      id
      name
      isKeyMetric
      options {
        id
        name
        score
        isNotApplicableMarker
        isDataMissingMarker
      }
      category {
        id
        name
      }
    }
  }
`,bU=S.J1`
  query {
    getSurveyQuestionCategories {
      id
      name
      parentCategory {
        id
        name
      }
    }
  }
`,vU=le.default.div`
  height: 100%;
`,CU=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,kU=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 0 0 ${e=>e.theme.geometry.xxl.spacing};
  margin-right: ${e=>e.theme.geometry.sm.spacing};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,SU={resizable:!0,sortable:!0,filter:!0,cellStyle:{height:"auto"}},NU=e=>{let{data:n,onEdit:t}=e;return(0,fe.jsx)(CU,{children:(0,fe.jsx)(kU,{onClick:()=>t(n),children:(0,fe.jsx)(ie.In,{icon:"pencil-alt"})})})},AU=Gn("id");function RU(e){let{onEdit:n,setAgGridApi:t}=e;const[a]=(0,Ul._)(hU),[i]=(0,Ul._)(xU),{showNotification:l}=tn(),r=(0,g.useCallback)(e=>{t(e.api),e.api.sizeColumnsToFit()},[t]),o=(0,g.useMemo)(()=>({edit:e=>(0,fe.jsx)(NU,{...e,onEdit:e=>n(e)})}),[n]),s=(0,g.useCallback)(async e=>{try{const n=e.colDef.colId||e.colDef.field;if(!n)throw new Error("Unfilterable");const t=await i({variables:{field:n}});if(!t.data?.getQuestionsFilter)throw new Error("Filter values not loaded");e.success(t.data.getQuestionsFilter.map(e=>e.label))}catch(e){E.Cp(e),l(new Error(e).message,"danger")}},[i,l]),d=(0,g.useMemo)(()=>({async getRows(e){try{const{startRow:n,sortModel:t,filterModel:i}=e.request,l={offset:n,limit:20,sort:wn(t),filters:jn(i)},r=await a({variables:l});if(!r.data?.getQuestions)throw new Error("Error fetching questions");{const{rows:n,totalRows:t}=r.data?.getQuestions;e.success({rowData:n,rowCount:t})}}catch(n){E.Cp(n),e.fail()}}}),[a]),c=(0,g.useMemo)(()=>[{headerName:"Form Template Name",field:"template.name",filter:"agSetColumnFilter",filterParams:{values:s}},{headerName:"Title",field:"title",filter:"agTextColumnFilter"},{headerName:"Name",field:"name",filter:"agTextColumnFilter"},{headerName:"Type",field:"type",filter:"agSetColumnFilter",filterParams:{values:s}},{headerName:"Category",field:"category.name"},{headerName:"Is Key Metric",field:"isKeyMetric",filter:"agSetColumnFilter",valueFormatter:e=>{let{value:n}=e;return n?"Yes":"No"}},{headerName:"Actions",field:"id",cellRenderer:"edit",colId:"edit"}],[s]);return(0,fe.jsx)(vU,{className:"ag-theme-alpine",id:"FormConfiguration__Grid__Questions",children:(0,fe.jsx)(Dg.W6,{rowModelType:"serverSide",rowSelection:"single",defaultColDef:SU,serverSideDatasource:d,components:o,getRowId:AU,columnDefs:c,onGridReady:r,paginationPageSize:20,cacheBlockSize:20,pagination:!0})})}const DU=(0,f.styled)("div")`
  padding: 20px 8px;
`,LU=(0,f.styled)("div")`
  width: 8px;
`,IU=(0,f.styled)("div")`
  min-width: 145px;
`;function jU(e){let{questionInput:n,question:t,onChange:a,disabled:i,errors:l}=e;const r=e=>t=>{const i=n.scores?.map(n=>n.id===e?{...n,isNotApplicableMarker:t.target.checked}:n);a({scores:i})},o=e=>t=>{const i=n.scores?.map(n=>n.id===e?{...n,isDataMissingMarker:t.target.checked}:n);a({scores:i})},{data:s}=(0,x.IT)(bU),d=(0,g.useMemo)(()=>(0,hn.keyBy)(t.options,"id"),[t.options]);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(ie.hh.Column,{container:!0,children:[(0,fe.jsx)(ie.hh.SelectColumn,{name:"category",label:"Category",disabled:i,value:n.category,options:s?.getSurveyQuestionCategories?.map(e=>({value:e.id,label:e.name})),error:l.category,onChange:(0,g.useCallback)(e=>a({category:e.target.value}),[a])}),(0,fe.jsxs)(DU,{children:[(0,fe.jsx)(ie.JU,{children:"Is key metric"}),(0,fe.jsx)(ie.Sc,{name:"isKeyMetric",disabled:i,checked:n.isKeyMetric,onChange:(0,g.useCallback)(e=>a({isKeyMetric:e.target.checked}),[a])})]}),n.scores&&n.scores.length>0&&(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsxs)(ie.hh.Column,{label:"Question options scores",children:[(0,fe.jsxs)(ie.hh.Row,{children:[(0,fe.jsx)(ie.hh.Column,{label:"Option"}),(0,fe.jsx)(ie.hh.Column,{label:"Score"})]}),n.scores.map((e,t)=>{const l=n.scores[t].score??"";return(0,fe.jsxs)(ie.hh.Row,{className:"score-row",children:[(0,fe.jsx)(ie.hh.TextColumn,{children:d[e.id]?.name}),(0,fe.jsx)(ie.hh.TextInputColumn,{type:"number",min:"0",name:`score-${e.id}`,onChange:(s=e.id,e=>{const t=n.scores?.map(n=>n.id===s?{...n,score:parseInt(e.target.value)}:n);a({scores:t})}),value:l,disabled:i}),(0,fe.jsxs)("div",{children:[(0,fe.jsx)(ie.JU,{children:"N/A"}),(0,fe.jsx)(ie.Sc,{name:`isNotApplicableMarker-${e.id}`,checked:e.isNotApplicableMarker,onChange:r(e.id)})]}),(0,fe.jsx)(LU,{}),(0,fe.jsxs)(IU,{children:[(0,fe.jsx)(ie.JU,{children:"Missing data marker"}),(0,fe.jsx)(ie.Sc,{name:`isDataMissingMarker-${e.id}`,checked:e.isDataMissingMarker,onChange:o(e.id)})]})]},e.id);var s})]})})]})})}const wU=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`;function OU(e){let{onUpdated:n,question:t}=e;const[a,i]=(0,g.useState)({category:t.category?.id,isKeyMetric:t.isKeyMetric||!1,scores:t.options?.map(e=>{let{id:n,score:t,isNotApplicableMarker:a,isDataMissingMarker:i}=e;return{id:n,score:t,isNotApplicableMarker:!!a,isDataMissingMarker:!!i}})||[]}),[l,r]=(0,g.useState)({}),[o,{loading:s}]=(0,ln.n)(TU),{showNotification:d}=tn(),c=(0,g.useCallback)(e=>{i(n=>({...n,...e}))},[]),u=(0,g.useCallback)(async e=>{e.preventDefault();const[i]=function(e){const n={};return e.category||(n.category="Category is required"),Object.keys(n).length?[n,null]:[null,e]}(a);if(i)return r(e=>({...e,...i}));await o({variables:{question:{id:t.id,category:a.category,isKeyMetric:a.isKeyMetric,scores:a.scores||[]}},onCompleted:n,onError:e=>d(e.message,"danger")})},[t,o,n,d,a]);return(0,fe.jsx)(wU,{children:(0,fe.jsxs)(ie.hh,{container:!0,onSubmit:u,children:[(0,fe.jsx)(ie.hh.HeaderRow,{name:"update-question__heading",children:"Update Survey Question"}),(0,fe.jsx)(jU,{onChange:c,questionInput:a,errors:l,question:t}),(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.ButtonColumn,{disabled:s,onClick:u,name:"UpdateQuestion__UpdateQuestionButton",children:"Update Question"})})]})})}const EU=(0,le.default)(gu)`
  justify-content: space-between;
`,_U=()=>{const[e,n]=(0,g.useState)(null),[t,a]=(0,g.useState)(null),i=(0,g.useCallback)(()=>a(null),[]),l=(0,g.useCallback)(e=>a(e),[]),{showNotification:r}=tn(),o=(0,g.useCallback)(async()=>{i(),e&&e.refreshServerSide({purge:!0}),r("Question updated successfully","success")},[i,r,e]);return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsx)(EU,{name:"ConfigurationSurveyQuestionsContainer",icon:"question",iconColor:"primary",title:"Questions"}),(0,fe.jsx)(RU,{setAgGridApi:n,onEdit:l}),t&&(0,fe.jsx)(ie.aF,{size:"md",onDismiss:i,dismissable:!0,show:!0,children:(0,fe.jsx)(OU,{question:t,onUpdated:o})})]})};function FU(e){const n={};return e.name||(n.name="Name is required"),Object.keys(n).length?[n,null]:[null,e]}const PU=S.J1`
  query {
    getSurveyQuestionCategories {
      id
      name
      parentCategory {
        id
        name
      }
    }
  }
`,BU=S.J1`
  mutation CreateSurveyQuestionCategory($category: SurveyQuestionCategoryInput!) {
    createSurveyQuestionCategory(category: $category) {
      id
      name
      parentCategory {
        id
        name
      }
    }
  }
`,UU=S.J1`
  mutation UpdateSurveyQuestionCategory($id: ID!, $category: SurveyQuestionCategoryInput!) {
    updateSurveyQuestionCategory(id: $id, category: $category) {
      id
      name
      parentCategory {
        id
        name
      }
    }
  }
`,$U=S.J1`
  mutation DeleteSurveyQuestionCategory($id: ID!) {
    deleteSurveyQuestionCategory(id: $id) {
      id
      name
      parentCategory {
        id
        name
      }
    }
  }
`,MU=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,VU=(0,le.default)(ie.hh.TextColumn)`
  align-self: center;
`;function GU(e){let{onCompleted:n,buttonDescription:t,CategoryDetails:a}=e;const[i,l]=(0,g.useState)({name:"",parentCategoryId:null}),[r,o]=(0,g.useState)({}),{showNotification:s}=tn(),[d,{loading:c}]=(0,ln.n)(BU,{update:(e,n)=>{let{data:t}=n;e.updateQuery({query:PU},e=>{const n=e?.getSurveyQuestionCategories;if(n&&t?.createSurveyQuestionCategory)return{getSurveyQuestionCategories:n.concat(t?.createSurveyQuestionCategory)}})}}),u=(0,g.useCallback)(e=>{l(n=>({...n,...e}))},[]),p=(0,g.useCallback)(async e=>{e.preventDefault();const[t,a]=FU(i);if(t)return o(e=>({...e,...t}));await d({variables:{category:a},onCompleted:n,onError:e=>{s(e.message,"danger")}})},[i,d,n,s]);return(0,fe.jsx)(MU,{name:"CreateCategory",children:(0,fe.jsxs)(ie.hh,{onSubmit:p,children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:"Add Survey Category"}),(0,fe.jsx)(a,{onChange:u,category:i,errors:r,disabled:c}),(0,fe.jsx)(ie.hh.ButtonColumn,{disabled:c,onClick:p,name:"CreateCategory__SubmitButton",children:"Add Category"}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(VU,{span:12,size:"xs",color:"normal",children:t})})]})})}function zU(e){let{category:n,errors:t,onChange:a,disabled:i}=e;const{data:l}=(0,x.IT)(bU),r=(0,g.useMemo)(()=>[{value:null,label:"(No parent)"},...l?.getSurveyQuestionCategories?.map(e=>({value:e.id,label:e.name}))||[]],[l]),o=(0,g.useCallback)(e=>a({[e.target.name]:e.target.value}),[a]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.TextInputColumn,{label:"Name",name:"name",onChange:o,value:n.name,error:t.name,disabled:i})}),(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.SelectColumn,{name:"parentCategoryId",label:"Parent category",disabled:i,value:n.parentCategoryId,options:r,onChange:e=>o(e)})})]})}const WU=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`;function qU(e){let{onUpdated:n,onDeleted:t,existingCategory:a}=e;const[i,l]=(0,g.useState)({name:a.name,parentCategoryId:a.parentCategory?.id}),[r,o]=(0,g.useState)({}),[s,{loading:d}]=(0,ln.n)(UU,{update:(e,n)=>{let{data:t}=n;e.updateQuery({query:PU},e=>{const n=e?.getSurveyQuestionCategories;if(n&&t?.updateSurveyQuestionCategory)return{getSurveyQuestionCategories:n.map(e=>e.id===t.updateSurveyQuestionCategory.id?t.updateSurveyQuestionCategory:e)}})}}),[c,{loading:u}]=(0,ln.n)($U,{update:(e,n)=>{let{data:t}=n;e.updateQuery({query:PU},e=>{const n=e?.getSurveyQuestionCategories;if(n&&t?.deleteSurveyQuestionCategory)return{getSurveyQuestionCategories:n.filter(e=>e.id!==t.deleteSurveyQuestionCategory.id)}})}}),{showNotification:p}=tn(),m=(0,g.useCallback)(e=>{l(n=>({...n,...e}))},[]),f=(0,g.useCallback)(async e=>{e.preventDefault();const[t,l]=FU(i);if(t)return o(e=>({...e,...t}));await s({variables:{id:a.id,category:{name:l.name,parentCategoryId:l.parentCategoryId}},onCompleted:n,onError:e=>{p(e.message,"danger")}})},[i,s,n,a.id,p]),y=(0,g.useCallback)(()=>{c({variables:{id:a.id},onCompleted:t})},[a.id,c,t]),h=d||u;return(0,fe.jsx)(WU,{children:(0,fe.jsxs)(ie.hh,{container:!0,onSubmit:f,children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:"Update Survey Category"}),(0,fe.jsx)(zU,{onChange:m,category:i,errors:r,disabled:h}),(0,fe.jsxs)(ie.hh.Row,{container:!0,children:[(0,fe.jsx)(ie.hh.ButtonColumn,{span:6,disabled:h,onClick:f,name:"UpdateCategory__UpdateCategoryButton",children:"Update category"}),(0,fe.jsx)(ie.hh.ButtonColumn,{span:6,disabled:h,onClick:y,color:"danger",name:"UpdateCategory__DeleteCategoryButton",children:"Delete category"})]})]})})}const JU=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,YU=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 0 0 ${e=>e.theme.geometry.xxl.spacing};
  margin-right: ${e=>e.theme.geometry.sm.spacing};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,HU=le.default.div`
  height: 100%;
`,KU=e=>{let{data:n,onEdit:t}=e;return(0,fe.jsx)(JU,{children:(0,fe.jsx)(YU,{onClick:()=>t(n.id),children:(0,fe.jsx)(ie.In,{icon:"pencil-alt"})})})},QU={resizable:!0,sortable:!0,filter:!0,cellStyle:{height:"auto"}},ZU=Gn("id"),XU=[{headerName:"Name",field:"name",flex:1},{headerName:"Parent category",field:"parentCategory",valueGetter:e=>{let{data:n}=e;return n.parentCategory?.name},flex:1},{headerName:"Actions",field:"id",cellRenderer:"edit",colId:"edit"}];function e$(e){let{rows:n,onEdit:t}=e;const a={edit:e=>(0,fe.jsx)(KU,{...e,onEdit:t})};return(0,fe.jsx)(HU,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{rowSelection:"single",defaultColDef:QU,columnDefs:XU,components:a,rowData:n,paginationPageSize:25,getRowId:ZU,pagination:!0})})}const n$=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,t$=(0,le.default)(gu)`
  justify-content: space-between;
`,a$=()=>{const{data:e,loading:n,error:t,refetch:a,networkStatus:i}=(0,x.IT)(PU,{notifyOnNetworkStatusChange:!0}),[l,r]=(0,g.useState)(!1),[o,s]=(0,g.useState)(null),d=(0,g.useCallback)(()=>r(e=>!e),[]),c=(0,g.useCallback)(e=>s(e),[]),u=(0,g.useCallback)(()=>s(null),[]),{showNotification:p}=tn(),m=(0,g.useCallback)(()=>{d(),p("Category created successfully","success")},[d,p]),f=(0,g.useCallback)(()=>{u(),p("Category deleted successfully","success")},[u,p]),y=(0,g.useCallback)(()=>{u(),p("Category updated successfully","success")},[u,p]),h=o?e?.getSurveyQuestionCategories.find(e=>e.id===o):null;return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsx)(t$,{icon:"briefcase",iconColor:"primary",title:"Question Categories",children:(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(n$,{size:"md",color:"primary",onClick:d,name:"AddCategoryButton",inline:!0,children:"+ Add Category"})})}),(n&&3!==i||4===i)&&(0,fe.jsx)(Rc,{name:"ConfigurationAccountsContainer__Loading"}),t&&(0,fe.jsx)($c,{error:t,retry:a}),!t&&!n&&e?.getSurveyQuestionCategories&&(0,fe.jsx)(e$,{rows:e?.getSurveyQuestionCategories,onEdit:c}),h&&(0,fe.jsx)(ie.aF,{size:"md",onDismiss:u,dismissable:!0,show:!0,children:(0,fe.jsx)(qU,{existingCategory:h,onDeleted:f,onUpdated:y})}),l&&(0,fe.jsx)(ie.aF,{size:"md",onDismiss:d,dismissable:!0,show:!0,children:(0,fe.jsx)(GU,{onCompleted:m,CategoryDetails:zU})})]})},i$=S.J1`
  fragment DataTrackerConfigFields on DataTrackerConfig {
    id
    account {
      id
      name
    }
    supplier {
      id
      name
    }
    frequency
    recurrence
    locations {
      id
      name
      tags {
        id
        tagName
      }
    }
    meters {
      id
      name
    }
    tags
  }
`,l$=(S.J1`
  query GetDataTrackerConfig($id: ID!) {
    getDataTrackerConfig(id: $id) {
      ...DataTrackerConfigFields
    }
  }
  ${i$}
`,S.J1`
  query GetDataTrackerConfigs(
    $accountId: ID
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getDataTrackerConfigs(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        ...DataTrackerConfigFields
      }
    }
  }
  ${i$}
`),r$=S.J1`
  query GetDataTrackerConfigFilters($accountId: ID, $field: String!) {
    getDataTrackerConfigFilters(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,o$=S.J1`
  mutation CreateDataTrackerConfig(
    $id: ID!
    $accountId: ID!
    $supplierId: ID!
    $frequency: Frequency!
    $recurrence: Int!
    $locationIds: [ID!]!
    $metersIds: [ID!]!
  ) {
    createDataTrackerConfig(
      input: {
        id: $id
        accountId: $accountId
        supplierId: $supplierId
        frequency: $frequency
        recurrence: $recurrence
        locationIds: $locationIds
        metersIds: $metersIds
      }
    ) {
      ...DataTrackerConfigFields
    }
  }
  ${i$}
`,s$=S.J1`
  mutation UpdateDataTrackerConfig(
    $id: ID!
    $accountId: ID!
    $supplierId: ID!
    $frequency: Frequency!
    $recurrence: Int!
    $locationIds: [ID!]!
    $metersIds: [ID!]!
  ) {
    updateDataTrackerConfig(
      input: {
        id: $id
        accountId: $accountId
        supplierId: $supplierId
        frequency: $frequency
        recurrence: $recurrence
        locationIds: $locationIds
        metersIds: $metersIds
      }
    ) {
      ...DataTrackerConfigFields
    }
  }
  ${i$}
`,d$=S.J1`
  mutation DeleteDataTrackerConfig($id: ID!) {
    deleteDataTrackerConfig(id: $id)
  }
`,c$=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,u$=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 0 0 ${e=>e.theme.geometry.xl.spacing};
  margin-right: ${e=>e.theme.geometry.sm.spacing};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,p$=e=>{let{data:{id:n,account:t},onEdit:a,onDelete:i}=e;const l=lr(),r=l.dataTracker.find(e=>e.startsWith("edit")),o=l.dataTracker.find(e=>e.startsWith("delete")),s=n||t?.id;return(0,fe.jsxs)(c$,{children:[r&&(0,fe.jsx)(u$,{onClick:()=>a(Xh.UPDATE,s),children:(0,fe.jsx)(ie.In,{name:`data-tracker-config-row__edit--${s}`,icon:"pencil-alt"})}),o&&(0,fe.jsx)(u$,{onClick:()=>i(Xh.DELETE,s),children:(0,fe.jsx)(ie.In,{name:`data-tracker-config-row__delete--${s}`,icon:"trash-alt"})})]})},m$={pagination:!0,paginationPageSize:25,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{resizable:!1,sortable:!0,filter:!0,cellStyle:{padding:"10px",height:"auto",wordBreak:"break-word",lineHeight:"20px"},autoHeight:!0,minWidth:150},rowStyle:{width:"100%",display:"flex",alignItems:"center"},rowHeight:58};function f$(e){let{setGridApi:n,fetchRows:t,onEdit:a,onDelete:i,isSystemAdmin:l}=e;const r=Je(),o=(0,C.m)(),s=qr({autoFit:!0}),{showNotification:d}=tn(),c=(0,g.useCallback)(async e=>{try{const{data:{getDataTrackerConfigFilters:n}}=await o.query({query:r$,variables:{accountId:l?null:r,field:e.colDef.colId||e.colDef.field}});e.success(n.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){d(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning")}},[o,d,l,r]),u=(0,g.useMemo)(()=>[{headerName:"Account",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],newRowsAction:"keep"},field:"account.name",hide:!l,flex:1},{headerName:"Supplier",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},field:"supplier.name",flex:1},{headerName:"Frequency",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},field:"frequency",flex:1},{headerName:"Recurrence",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},field:"recurrence",flex:1},{headerName:"Locations",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},valueGetter:e=>{let{data:{locations:n}}=e;return n?.map(e=>e?.name)},field:"locations",flex:1},{headerName:"Meters",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},valueGetter:e=>{let{data:{meters:n}}=e;return n?.map(e=>e?.name)},field:"meters",flex:1},{headerName:"Tags",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},field:"tags",flex:1},{cellRenderer:"action",filter:!1,sortable:!1}],[c,l]),p=(0,g.useMemo)(()=>({action:e=>(0,fe.jsx)(p$,{...e,onEdit:a,onDelete:i})}),[i,a]),m=(0,g.useMemo)(()=>({async getRows(e){try{const{startRow:n,sortModel:a,filterModel:i}=e.request,l=jn(i),{rows:r,totalRows:o}=await t({offset:n||0,limit:m$.paginationPageSize,sort:wn(a),filters:l});return e.success({rowData:r,rowCount:o}),{rows:r,totalRows:o}}catch(n){throw e.fail(),n}}}),[t]);return(0,fe.jsx)(Pg,{...m$,serverSideDatasource:m,columnDefs:u,onFirstDataRendered:s.onFirstDataRendered,onFilterChanged:s.onFilterChanged,onSortChanged:s.onSortChanged,onColumnVisible:s.onSaveGridColumnState,onColumnPinned:s.onSaveGridColumnState,onColumnResized:s.onSaveGridColumnState,onColumnMoved:s.onSaveGridColumnState,onColumnRowGroupChanged:s.onSaveGridColumnState,onColumnValueChanged:s.onSaveGridColumnState,onColumnPivotChanged:s.onSaveGridColumnState,components:p,onGridReady:e=>{s.onGridReady(e),n({api:e.api})}})}const y$=(e,n)=>{const t=[];return Array.isArray(e)&&e.length&&t.push({filterType:gn.pe.Set,field:"locationPointId",values:e}),n&&t.push({filterType:gn.pe.Set,field:"typeId",values:["636fddfc-01ef-4ebe-bef8-0c807cecee82","37333633-3533-3533-2d34-3234312d3338"]},{filterType:gn.pe.Set,field:"isGeneration",values:["1"]}),t.length?{set:t}:{}};function g$(e){let{accountId:n,value:t,onChange:a,error:i,isSubmitting:l,name:r="metersIds",locationsToFilter:o,defaultOptions:s,disabled:d,isGenerationMeters:c}=e;const u=o?.map(e=>e.label),{data:p,loading:m}=(0,x.IT)(Lr,{variables:{accountId:n,field:"locationPointId"},fetchPolicy:"network-only"}),f=p?.getEnergySourcePageFilter?.filter(e=>u?.includes(e.label)),y=f?.map(e=>e.value)||[],h=y$(y,c),{data:T,loading:b}=(0,x.IT)(Rr,{variables:{accountId:n,filters:h,sort:[{field:"name",order:"asc"}]},skip:m,fetchPolicy:"network-only"});let v=(0,g.useMemo)(()=>{const e=T?.getEnergySourceByAccountIdAndType?.rows;return(0,hn.sortBy)(e?.map(Ua),e=>e?.label.trim().toLowerCase())},[T?.getEnergySourceByAccountIdAndType?.rows]);return o&&o.length>0&&!y.length&&(v=[{label:"There is no meters for selected locations",value:null,isDisabled:!0}]),(0,fe.jsx)(ie.KF,{name:r,onChange:a,isDisabled:l||d,isLoading:m||b,error:i,options:v,multiValueColor:"tertiary",defaultOptions:!Array.isArray(s)||s,value:t,placeholder:"Start typing to search for a meter"})}const h$=(e,n)=>({accountId:n||e?.account?.value,id:e.id,supplierId:e?.supplier?.value,frequency:e.frequency?.value,recurrence:Number(e.recurrence),locationIds:Ga(e.locations||[]),metersIds:Ga(e.meters||[])}),x$=e=>{const n=(0,hn.get)(e,"target.type");return"text"===n||"textarea"===n};var T$=function(e){return e.account="account",e.supplier="supplier",e.frequency="frequency",e.recurrence="recurrence",e}(T$||{});const b$=Object.keys(gn.jN).map(e=>({label:e,value:e})),v$=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,C$=(0,le.default)(ie.JU)`
  margin: 0 ${e=>e.theme.geometry.xs.spacing};
`,k$=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,S$=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,N$=le.default.div`
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing} 0;
`,A$=(0,le.default)(ie.P)`
  ${e=>{let{theme:n}=e;return`\n    overflow: auto;\n    padding: ${n.geometry.xs.spacing};\n  `}}
`,R$=(0,le.default)(ie.EY)(e=>{let{theme:n}=e;return{margin:`${n.geometry.xs.spacing} 0 ${n.geometry.xs.spacing} ${n.geometry.xs.spacing}`,'& [data-icon="info-circle"]':{color:n.colors.info.dark.background,marginRight:"3px"}}}),D$={offset:0,limit:10,filters:{},sort:[{field:"name",order:"asc"}]},L$=["WATER","ELECTRICITY","GAS","HEATSTEAM"],I$=e=>{let{isSysAdmin:n,currentAccount:t,dataTrackerConfigToUpdate:a,refresh:i,dismiss:l}=e;const r=(0,C.m)(),o=Je(),s=n?{id:null,name:null}:t,[d,c]=(0,g.useState)({name:a?.account?.label||s.name,id:a?.account?.value||s.id}),[u,p]=(0,g.useState)(!1),[m,f]=(0,g.useState)({}),[y,h]=(0,g.useState)(a?.locations||[]),[T,b]=(0,g.useState)(a?.meters||[]),[v,k]=(0,g.useState)(a||{id:(0,Wa.A)(),account:n?null:{value:o,label:t?.name},supplier:null,frequency:null,recurrence:0,locations:[],meters:[],supplierUtility:""}),S=a?.supplier?.value;(0,g.useEffect)(()=>{S&&(async()=>{const e=await r.query({query:hd,variables:{id:S}}),{utility:n}=e.data?.getSupplier;k({...v,supplierUtility:n})})()},[S]),(0,g.useEffect)(()=>{const e=Object.values(m).some(Boolean),n=Object.values(v).every(Boolean);p(!e&&n)},[m,v]);const[N,A]=(0,g.useState)(!1),{showNotification:R}=tn(),{data:D}=(0,x.IT)(Zg,{variables:{...D$,accountId:d.id}}),L=$a(D?.getLocationsPage?.rows),[I,{loading:j}]=(0,ln.n)(a?s$:o$),w=(0,g.useCallback)(e=>{"locationsSelect"===e.target.name?(h(e.target.select),b([]),k({...v,locations:e.target.select,meters:[]})):"meters"===e.target.name?(b(e.target.select),k({...v,meters:e.target.select})):"supplier"===e.target.name?(k({...v,supplier:e.target.select,supplierUtility:e.entity.utility}),L$.includes(e.entity.utility)||(k({...v,supplier:e.target.select,supplierUtility:e.entity.utility,meters:[]}),b([]))):k({...v,[e.target.name]:x$(e)?e.target.value:e.target.select})},[v]),O=(0,g.useCallback)(e=>{const n={...v,[e.target.name]:e.target.value};k(n),f((e=>{const n={};(Number(e.recurrence)<=0||!Number.isInteger(Number(e.recurrence)))&&(n.recurrence="The value must be an number greater than zero");for(const t of Object.values(T$))e[t]||(n[t]="Value required");return n})(n))},[v]),E=n?d.id:o,_=!L$.includes(v.supplierUtility);return(0,fe.jsx)(ie.aF,{size:"md",show:!0,loading:j,dismissable:!0,name:"ConfigurationSchemesContainer__Modal--update",onDismiss:l,children:(0,fe.jsxs)(N$,{children:[(0,fe.jsx)(S$,{size:"lg",children:a?(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.updateHeader"}):(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.createHeader"})}),(0,fe.jsx)(A$,{children:(0,fe.jsxs)("form",{name:"create-or-update-dataTrackerConfig__form",children:[n&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(v$,{item:!0,children:[(0,fe.jsx)(k$,{children:(0,fe.jsx)(C$,{children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.account"})})}),(0,fe.jsx)(wu,{"data-cy":"DataTrackerConfig__Account-name",onChange:e=>{let{name:n,id:t}=e;c({name:n,id:t}),h([]),b([]),k({...v,account:{value:t,label:n},supplier:null,locations:[],meters:[]})},name:"account",value:d.id,error:m.account})]})}),E&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(v$,{item:!0,children:[(0,fe.jsx)(k$,{children:(0,fe.jsx)(C$,{children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.supplier"})})}),(0,fe.jsx)(XF,{"data-cy":"DataTrackerConfig__Supplier",accountId:v?.account?.value||E,onChange:w,name:"supplier",value:v.supplier,error:m.supplier})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(v$,{item:!0,children:[(0,fe.jsx)(k$,{children:(0,fe.jsx)(C$,{children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.frequency"})})}),(0,fe.jsx)(ie.l6,{name:"frequency",classPrefix:"frequency-select",isDisabled:N,onChange:w,value:v.frequency,options:b$,error:m.frequency})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-priority",children:(0,fe.jsxs)(v$,{item:!0,children:[(0,fe.jsx)(k$,{children:(0,fe.jsx)(C$,{children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.recurrence"})})}),(0,fe.jsx)(ie.ks,{"data-cy":"DataTrackerConfigDetails__Input-recurrence",disabled:N,onChange:O,name:"recurrence",value:v.recurrence,error:m.recurrence,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(v$,{item:!0,children:[(0,fe.jsx)(k$,{children:(0,fe.jsx)(C$,{children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.locations"})})}),(0,fe.jsx)(eh,{name:"locationsSelect",accountId:v?.account?.value||E,value:y,onChange:w,isSubmitting:N,disabled:N,defaultOptions:L,error:void 0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(v$,{item:!0,children:[(0,fe.jsx)(k$,{children:(0,fe.jsx)(C$,{children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.meters"})})}),(0,fe.jsx)(g$,{name:"meters",accountId:v?.account?.value||E,locationsToFilter:v.locations,value:T,onChange:w,isSubmitting:N,disabled:N||_,defaultOptions:!1,isGenerationMeters:!1,error:void 0}),_&&(0,fe.jsxs)(R$,{size:"sm",children:[(0,fe.jsx)(ie.In,{icon:"info-circle"}),"Meters can only be selected for suppliers with data types that use meters (electricity, heat & steam, water and gas)"]})]})})]})]})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(v$,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{name:"create-or-update-dataTrackerConfig__button",color:"success",onClick:e=>{(async e=>{e.preventDefault(),A(!0);const n={...h$(v),accountId:v.account?.value||o};try{await I({variables:a?{...n,id:a?.id}:n}),R("Data Tracker configuration has been successfully "+(a?"updated":"created"),"success"),i()}catch(e){R("Something went wrong. If the problem persists, contact support","danger"),console.error(e)}finally{l()}A(!1)})(e)},disabled:j||!u,children:a?(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.update"}):(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.create"})})})})]})})},j$=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,w$=(0,ce.Ay)(()=>{const e=(0,C.m)(),n=Je(),{id:t,name:a}=zo(),i={id:t,name:a},l=lr(),r=l.role===gn.gG.Sysadmin,{showNotification:o}=tn(),[s,d]=(0,g.useState)([]),[c,u]=(0,g.useState)(),[p,m]=(0,g.useState)({type:null,dataTrackerConfigId:null}),{error:f,refetch:y}=function(e){return(0,x.IT)(l$,{variables:{accountId:e||null}})}(r?null:n),[h]=(0,ln.n)(d$),T=s.find(e=>e.id===p.dataTrackerConfigId),b=(0,g.useCallback)(()=>c?.api?.refreshServerSide({purge:!0}),[c]),v=(e,n)=>m({type:e,dataTrackerConfigId:n}),k=e=>{v(null,null),e?.message&&o(e?.message,e?.color)};return(0,fe.jsxs)(ie.fv,{name:"ConfigurationDataTrackerContainer",container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{name:"ConfigurationDataTrackerContainer__Controls",icon:"list",iconColor:"primary",title:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.container.header.missing"}),children:[(0,fe.jsx)(ie.fv,{span:2,children:(0,fe.jsx)(qg,{gridApi:c?.api})}),l.dataTracker.find(e=>e.startsWith("create"))&&(0,fe.jsx)(j$,{name:"ConfigurationDataTrackerContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>v(Xh.CREATE),children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.container.add"})})]}),f&&(0,fe.jsx)(ie.Kw,{error:f,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationDataTrackerContainer__Error",icon:a,title:n,body:t,retry:y})}}),(0,fe.jsx)(f$,{isSystemAdmin:r,fetchRows:async t=>{const{data:{getDataTrackerConfigs:{rows:a,totalRows:i}}}=await e.query({query:l$,variables:{...t,accountId:r?null:n},fetchPolicy:"network-only"});return d(a),{rows:a,totalRows:i}},setGridApi:u,onEdit:v,onDelete:v}),p.type===Xh.CREATE&&(0,fe.jsx)(I$,{isSysAdmin:r,currentAccount:i,refresh:b,dismiss:k}),p.type===Xh.UPDATE&&(0,fe.jsx)(I$,{isSysAdmin:r,currentAccount:i,dataTrackerConfigToUpdate:(S=T,{id:S.id,account:Ua(S.account),supplier:Ua(S.supplier),frequency:(N=S.frequency,{label:N,value:N}),recurrence:S.recurrence,locations:$a(S.locations),meters:$a(S.meters),supplierUtility:S.supplier.utility}),refresh:b,dismiss:k}),p.type===Xh.DELETE&&(0,fe.jsx)(vu,{deleteObjectName:"Data Tracker Configuration",onConfirmClick:async()=>{try{await h({variables:{id:T?.id}}),o("DataTracker configuration has been successfully deleted","success"),b()}catch(e){o("An error has occurred. If the problem persists please contact support","danger"),console.error(e)}finally{k()}},onDismissClick:k})]});var S,N}),O$=(S.J1`
  query GetAnomalyThreshold($accountId: ID!) {
    getAnomalyThreshold(accountId: $accountId) {
      ...AnomalyThresholdFields
    }
  }
  ${ks}
`,S.J1`
  mutation CreateAnomalyThreshold(
    $accountId: ID!,
    $thresholdPercentage: Float!,
    $utilityType: UtilityTypeInput!,
    $monthlyVarianceDetectionEnabled: Boolean!,
    $annuallyVarianceDetectionEnabled: Boolean!
  ) {
    createAnomalyThreshold(
      input: {
        accountId: $accountId,
        thresholdPercentage: $thresholdPercentage,
        utilityType: $utilityType,
        monthlyVarianceDetectionEnabled: $monthlyVarianceDetectionEnabled,
        annuallyVarianceDetectionEnabled: $annuallyVarianceDetectionEnabled
      }
    ) {
      ...AnomalyThresholdFields
    }
  }
  ${ks}
`),E$=S.J1`
  mutation UpdateAnomalyThreshold(
    $id: ID!,
    $accountId: ID!,
    $thresholdPercentage: Float!,
    $utilityType: UtilityTypeInput!,
    $monthlyVarianceDetectionEnabled: Boolean!,
    $annuallyVarianceDetectionEnabled: Boolean!
  ) {
    updateAnomalyThreshold(
      input: {
        id: $id,
        accountId: $accountId,
        thresholdPercentage: $thresholdPercentage,
        utilityType: $utilityType,
        monthlyVarianceDetectionEnabled: $monthlyVarianceDetectionEnabled,
        annuallyVarianceDetectionEnabled: $annuallyVarianceDetectionEnabled
      }
    ) {
      ...AnomalyThresholdFields
    }
  }
  ${ks}
`,_$=S.J1`
  mutation DeleteAnomalyThreshold($id: ID!) {
    deleteAnomalyThreshold(id: $id)
  }
`,F$=S.J1`
  query GetDataTrackerAnomalyFilters($accountId: ID, $field: String!) {
    getDataTrackerAnomalyFilters(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`;function P$(e){let{setGridApi:n,fetchRows:t,onEdit:a,onDelete:i,isSystemAdmin:l}=e;const r=Je(),o=(0,C.m)(),s=qr({autoFit:!0}),{showNotification:d}=tn(),c={pagination:!0,paginationPageSize:25,rowModelType:"serverSide",defaultColDef:{resizable:!1,sortable:!0,filter:!0,cellStyle:{padding:"10px",height:"auto",wordBreak:"break-word",lineHeight:"20px"},autoHeight:!0},columnDefs:[{headerName:"Account",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],newRowsAction:"keep"},field:"account.name",hide:!l,flex:1},{headerName:"Threshold Percentage",filter:"agNumberColumnFilter",field:"thresholdPercentage",valueFormatter:e=>`${e.value}%`,flex:1},{headerName:"Utility Type",filter:"agSetColumnFilter",field:"transactionType",valueGetter:e=>{const{transactionType:n,isDefault:t}=e.data.utilityType;return t?"DEFAULT":n},filterParams:{values:async e=>{try{const{data:{getDataTrackerAnomalyFilters:n}}=await o.query({query:F$,variables:{accountId:l?null:r,field:e.colDef.colId||e.colDef.field}});e.success(n.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){d(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning")}},valueFormatter:On},flex:1},{headerName:"Monthly Variance Detection",field:"monthlyVarianceDetectionEnabled",valueFormatter:e=>e.value?"Enabled":"Disabled",filter:!1,flex:1},{headerName:"Annual Variance Detection",field:"annuallyVarianceDetectionEnabled",valueFormatter:e=>e.value?"Enabled":"Disabled",filter:!1,flex:1},{cellRenderer:"action",filter:!1,sortable:!1}],rowStyle:{width:"100%",display:"flex",alignItems:"center"},rowHeight:58},u={action:e=>(0,fe.jsx)(p$,{...e,onEdit:()=>a(ab,e.data.id),onDelete:()=>i("DELETE",e.data.id)})};return(0,g.createElement)(Pg,{...c,key:r,cacheBlockSize:c.paginationPageSize,onFirstDataRendered:s.onFirstDataRendered,onFilterChanged:s.onFilterChanged,onSortChanged:s.onSortChanged,onColumnVisible:s.onSaveGridColumnState,onColumnPinned:s.onSaveGridColumnState,onColumnResized:s.onSaveGridColumnState,components:u,onGridReady:e=>{s.onGridReady(e),n({api:e.api}),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:n,sortModel:a,filterModel:i}=e.request,l=jn(i),{rows:r,totalRows:o}=await t({offset:n||0,limit:c.paginationPageSize,sort:wn(a),filters:l});return e.success({rowData:r,rowCount:o}),{rows:r,totalRows:o}}catch(n){throw e.fail(),n}}})}})}function B$(e){let{value:n,error:t,name:a,onChange:i}=e;const l=(0,g.useMemo)(()=>Object.entries(gn.D_).map(e=>{let[n,t]=e;return{value:t,label:n}}),[]);return(0,fe.jsx)(ie.l6,{name:a,placeholder:"Select a utility type...",value:n,options:l,error:t,onChange:i,classPrefix:"utility-select"})}const U$=(e,n)=>{const t=e?.account?.value;if(void 0===t)throw new Error("Account ID is undefined");const a=Number(e?.thresholdPercentage);if(isNaN(a))throw new Error("Threshold percentage is not a number");const i=e.utilityType.transactionType,l={transactionType:i,isDefault:!i};if(!l)throw new Error("Utility type is required");const r={accountId:t,thresholdPercentage:a,utilityType:l,monthlyVarianceDetectionEnabled:e.monthlyVarianceDetectionEnabled,annuallyVarianceDetectionEnabled:e.annuallyVarianceDetectionEnabled},o=e.id;if(n){if(!o)throw new Error("Id is required");r.id=o}return r};var $$=function(e){return e.account="account",e.thresholdPercentage="thresholdPercentage",e}($$||{});const M$=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,V$=(0,le.default)(ie.JU)`
  margin: 0 ${e=>e.theme.geometry.xs.spacing};
`,G$=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,z$=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,W$=le.default.div`
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing} 0;
`,q$=(0,le.default)(ie.P)`
  ${e=>{let{theme:n}=e;return`\n    overflow: auto;\n    padding: ${n.geometry.xs.spacing};\n  `}}
`,J$=e=>{let{isSysAdmin:n,currentAccount:t,anomalyThresholdToUpdate:a,refresh:i,dismiss:l}=e;const r=Je(),o=n?{id:null,name:null}:t,[s,d]=(0,g.useState)({name:a?.account?.label||o.name,id:a?.account?.value||o.id}),[c,u]=(0,g.useState)(!1),[p,m]=(0,g.useState)({}),[f,y]=(0,g.useState)(a||{account:n?null:{value:r,label:t?.name},thresholdPercentage:null,utilityType:{isDefault:!0},monthlyVarianceDetectionEnabled:!0,annuallyVarianceDetectionEnabled:!0}),[h,x]=(0,g.useState)(!1),{showNotification:T}=tn(),[b,{loading:v}]=(0,ln.n)(a?E$:O$),C=(0,g.useCallback)((e,n)=>{const t="object"==typeof e&&e.target?e:n;if(!t||!t.target)return;const{name:a,value:i}=t.target;let l={...f};if("transactionType"===a){const e={transactionType:i,isDefault:!i};l={...f,utilityType:e}}else l={...f,[a]:i};y(l),m((e=>{const n={},t=Number(e.thresholdPercentage);(isNaN(t)||t<=0||t>100)&&(n.thresholdPercentage="The value must be a number between 1 and 100");for(const t of Object.values($$))e[t]||(n[t]="Value required");return n})(l))},[f,y,m]);(0,g.useEffect)(()=>{const e=Object.values(p).some(Boolean),n={...f},t=Object.values(n).every(e=>null!=e&&""!==e);u(!e&&t)},[p,f]);const k=n?s.id:r;return(0,fe.jsx)(ie.aF,{size:"md",show:!0,loading:v,dismissable:!0,name:"ConfigurationSchemesContainer__Modal--update",onDismiss:l,children:(0,fe.jsxs)(W$,{children:[(0,fe.jsx)(z$,{size:"lg",children:a?(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.updateHeader"}):(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.createHeader"})}),(0,fe.jsx)(q$,{children:(0,fe.jsxs)("form",{name:"create-or-update-anomalyThresholdConfig__form",children:[n&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(M$,{item:!0,children:[(0,fe.jsx)(G$,{children:(0,fe.jsx)(V$,{children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.account"})})}),(0,fe.jsx)(wu,{"data-cy":"AnomalyThresholdConfig__Account-name",onChange:e=>{let{name:n,id:t}=e;d({name:n,id:t}),y({...f,account:{value:t,label:n}})},name:"account",value:s.id,error:p.account})]})}),k&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-priority",children:(0,fe.jsxs)(M$,{item:!0,children:[(0,fe.jsx)(G$,{children:(0,fe.jsx)(V$,{children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.thresholdPercentage"})})}),(0,fe.jsx)(Bg,{"data-cy":"AnomalyThresholdConfigDetails__Input-thresholdPercentage",disabled:h,onChange:C,name:"thresholdPercentage",value:f.thresholdPercentage,error:p.thresholdPercentage,box:!0,type:"number",step:"1"})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-priority",children:(0,fe.jsxs)(M$,{item:!0,children:[(0,fe.jsx)(G$,{children:(0,fe.jsx)(V$,{children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.utilityType"})})}),(0,fe.jsx)(B$,{"data-cy":"AnomalyThresholdConfig_TransactionType",onChange:C,name:"transactionType",value:f.utilityType?.transactionType})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-varianceDetection",children:(0,fe.jsxs)(M$,{item:!0,children:[(0,fe.jsx)(G$,{children:(0,fe.jsx)(V$,{children:"Monthly"})}),(0,fe.jsx)(ie.Sc,{"data-cy":"AnomalyThresholdConfig_MonthlyVarianceDetection",onChange:e=>{y({...f,monthlyVarianceDetectionEnabled:e.target.checked})},checked:f.monthlyVarianceDetectionEnabled})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-varianceDetection",children:(0,fe.jsxs)(M$,{item:!0,children:[(0,fe.jsx)(G$,{children:(0,fe.jsx)(V$,{children:"Annually"})}),(0,fe.jsx)(ie.Sc,{"data-cy":"AnomalyThresholdConfig_AnnuallyVarianceDetection",onChange:e=>{y({...f,annuallyVarianceDetectionEnabled:e.target.checked})},checked:f.annuallyVarianceDetectionEnabled})]})})]})]})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(M$,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{name:"create-or-update-anomalyThresholdConfig__button",color:"success",onClick:e=>{(async e=>{e.preventDefault(),x(!0);const n={...U$(f,!!a)};try{await b({variables:n}),T("Anomaly Threshold has been successfully "+(a?"updated":"created"),"success"),i()}catch(e){if(e instanceof Error&&e.message.includes("Duplicate"))return T("Anomaly Threshold already exists for this account","danger");T("Something went wrong. If the problem persists, contact support","danger")}finally{l()}x(!1)})(e)},disabled:v||!c,children:a?(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.update"}):(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.modal.create"})})})})]})})},Y$=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,H$=(0,ce.Ay)(()=>{const e=(0,C.m)(),n=Je(),t=zo(),a=lr(),i=a.role===gn.gG.Sysadmin,{showNotification:l}=tn(),[r,o]=(0,g.useState)([]),[s,d]=(0,g.useState)(),[c,u]=(0,g.useState)({id:"",type:null,anomalyThresholdId:null,utilityType:""}),{error:p,refetch:m}=function(e){return(0,x.IT)(Ss,{variables:{accountId:e||null}})}(i?null:n),[f]=(0,ln.n)(_$),y=r.find(e=>e.id===c.id),h=(0,g.useCallback)(()=>{try{s?.api?.refreshServerSide({purge:!0})}catch(e){console.error(e)}},[s]),T=(e,n)=>u({type:e,id:n}),b=e=>{T(null,null),e?.message&&l(e?.message,e?.color)};return(0,fe.jsxs)(ie.fv,{name:"ConfigurationAnomalyContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationAnomalyContainer__Controls",icon:"list",iconColor:"primary",title:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.container.header.anomaly"}),children:a.dataTracker.find(e=>e.startsWith("create"))&&(0,fe.jsx)(Y$,{name:"ConfigurationAnomalyContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>T(Xh.CREATE,null),children:(0,fe.jsx)(de.A,{id:"pages.configuration.dataTracker.container.add"})})}),p&&(0,fe.jsx)(ie.Kw,{error:p,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationAnomalyContainer__Error",icon:a,title:n,body:t,retry:m})}}),(0,fe.jsx)(P$,{isSystemAdmin:i,fetchRows:async t=>{const a=await e.query({query:Ss,variables:{...t,accountId:i?null:n},fetchPolicy:"network-only"}),{data:{getAnomalyThresholds:{rows:l,totalRows:r}}}=a;return o(l),{rows:l,totalRows:r}},setGridApi:d,onEdit:T,onDelete:T}),c.type===Xh.CREATE&&(0,fe.jsx)(J$,{isSysAdmin:i,currentAccount:t,refresh:h,dismiss:b}),c.type===Xh.UPDATE&&(0,fe.jsx)(J$,{isSysAdmin:i,currentAccount:t,anomalyThresholdToUpdate:(v=y,{...v,account:Ua(v.account),monthlyVarianceDetectionEnabled:v.monthlyVarianceDetectionEnabled,annuallyVarianceDetectionEnabled:v.annuallyVarianceDetectionEnabled}),refresh:h,dismiss:b}),c.type===Xh.DELETE&&(0,fe.jsx)(vu,{deleteObjectName:"Anomaly Threshold",onConfirmClick:async()=>{try{await f({variables:{id:y?.id}}),l("DataTracker configuration has been successfully deleted","success"),h()}catch(e){l("An error has occurred. If the problem persists please contact support","danger"),console.error(e)}finally{b()}},onDismissClick:b})]});var v}),K$=le.default.iframe`
  width: 100%;
  height: calc(100% - 5px);
`,Q$=()=>(0,fe.jsx)(K$,{id:"flowsFrame",src:"/rio-flows/configuration/"}),Z$=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,X$=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,eM=e=>{let{accountId:n,businessName:t,profileImage:a,path:i}=e;return(0,fe.jsx)(ug,{name:"configuration-menu__item--contractors",to:`${i}/${n}`,children:(0,fe.jsxs)(Z$,{name:`account-row--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(X$,{name:`account-row__profile-picture--${n}`,src:a,size:"xs",accountName:t}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${n}`,size:"md",children:t})})]})})},nM=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,tM=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,aM=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,iM=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,lM=e=>{let{heading:n,flowSubscriptionDetails:t,setFlowSubscriptionDetails:a}=e;const i=(0,g.useCallback)((e,n)=>{a({...t,[n]:e.id||e.target?.value})},[a,t]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(aM,{size:"lg",children:n}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(iM,{item:!0,children:[(0,fe.jsx)(tM,{children:(0,fe.jsx)(nM,{children:"Account"})}),(0,fe.jsx)(wu,{value:t.accountId,onChange:e=>i(e,"accountId")})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(iM,{item:!0,children:[(0,fe.jsx)(tM,{children:(0,fe.jsx)(nM,{children:"Flow"})}),(0,fe.jsx)(Eu,{value:t.flowId,onChange:e=>i(e,"flowId")})]})})]})},rM=e=>{const n=!!e.accountId,t=!!e.flowId;return n&&t},oM=le.default.div`
  padding: 20px;
`,sM=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,dM=e=>{let{onDismiss:n,onComplete:t}=e;const[a,i]=(0,g.useState)({accountId:"",flowId:""}),[l]=(0,ln.n)(ls,{onCompleted:()=>{t({message:"Flow subscription has been created.",colour:"success"}),n()},onError:()=>{t({message:"Something went wrong! Please try again later.",colour:"danger"})},update:(e,n)=>{let{data:{createFlowSubscription:t}}=n;const a=e.readQuery({query:is});if(a&&t){const n=[...a.getFlowSubscriptions,t];e.writeQuery({query:is,data:{getFlowSubscriptions:n}})}}}),r=(0,g.useCallback)(()=>{l({variables:{accountId:a.accountId,flowId:a.flowId}})},[l,a]);return(0,fe.jsx)(ie.aF,{size:"md",show:!0,onDismiss:n,children:(0,fe.jsxs)(oM,{children:[(0,fe.jsx)(lM,{heading:"Create new Flow Subscription",flowSubscriptionDetails:a,setFlowSubscriptionDetails:i}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(sM,{item:!0,children:(0,fe.jsx)(ie.$n,{disabled:!rM(a),onClick:r,children:"Submit"})})})]})})},cM=(0,le.default)(ie.fv)`
  display: flex;
  flex-direction: row;
`,uM=(0,le.default)(ie.vj)`
  min-width: 150px;
`,pM=(0,le.default)(ie.$n)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,mM=()=>{const e=(0,m.zy)(),[n,t]=(0,g.useState)(""),[a,i]=(0,g.useState)(!1),[l,r]=(0,g.useState)(null),{showNotification:o}=tn(),{data:s,loading:d,networkStatus:c,error:u,refetch:p}=os(),f=s?.getFlowSubscriptions||[],y=new Set,h=f?.filter(e=>{const n=y.has(e.account.id);return y.add(e.account.id),!n}),x=h.filter(e=>e?.account?.name?.includes(n));return o&&l?.message&&l?.colour&&o(l.message,l.colour),(0,fe.jsxs)(ie.fv,{name:"ConfigurationFlowsSubscriptionsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationFlowsSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:"Accounts with Flow Subscriptions",children:(0,fe.jsxs)(cM,{container:!0,item:!0,children:[(0,fe.jsx)(pM,{name:"ConfigurationLegislationContainer__Controls__Button--add",color:"primary",inline:!0,component:"button",onClick:()=>i(!0),children:"+ Add Subscription"}),(0,fe.jsx)(uM,{name:"ConfigurationFlowsSubscriptionsContainer__Controls__Search",value:n,onChange:e=>{t(e.target.value)},hideButton:!0})]})}),(d&&3!==c||4===c)&&(0,fe.jsx)(Rc,{name:"ConfigurationFlowsSubscriptionsContainer__Loading"}),u&&(0,fe.jsx)(ie.Kw,{error:u,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ConfigurationFlowsSubscriptionsContainer__Error",icon:a,title:n,body:t,retry:p})}}),!d&&!x.length&&(0,fe.jsx)(Fu,{name:"ConfigurationFlowsSubscriptionsContainer__NoResults",title:"There are no results for this search."}),!d&&a&&(0,fe.jsx)(dM,{onDismiss:()=>i(!1),onComplete:r}),x.map(n=>{const t=n.account,a="string"==typeof t.logoPath?t.logoPath:"";return(0,fe.jsx)(eM,{accountId:t.id,businessName:t.name,profileImage:a,path:e.pathname},t.id)})]})},fM=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
`,yM=(0,le.default)(ie.Y3)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,gM=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};
  padding: 0 ${e=>e.theme.geometry.xxl.spacing} 0 0;

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,hM=e=>{let{name:n,id:t,onDelete:a,accountId:i}=e;return(0,fe.jsx)("div",{children:(0,fe.jsxs)(fM,{name:`kb-row--${t}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(yM,{name:`kb-row__profile-picture--${t}`,src:"",size:"xs",accountName:n}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,name:`account-row__name--${t}`,size:"md",children:n})}),(0,fe.jsx)(gM,{onClick:()=>a(t,i),children:(0,fe.jsx)(ie.In,{name:"kb-row__edit",icon:"trash-alt"})})]})},t)},xM=e=>{let{flows:n,onComplete:t}=e;const[a]=(0,ln.n)(rs,{onCompleted:()=>{t("Flow subscription has been deleted.","success")},onError:()=>{t("Something went wrong! Please try again later.","danger")},update:(e,n)=>{let{data:{deleteFlowSubscription:t}}=n;const a=e.readQuery({query:is});if(a&&t){const n=a.getFlowSubscriptions.filter(e=>e.flow.id!==t.flow.id);e.writeQuery({query:is,data:{getFlowSubscriptions:n}})}}}),i=(0,g.useCallback)((e,n)=>a({variables:{accountId:n,flowId:e}}),[a]);return(0,fe.jsx)(fe.Fragment,{children:n.map(e=>(0,fe.jsx)(hM,{id:e.flow.id,accountId:e.account.id,name:e.flow.title,onDelete:i},e.flow.id))})},TM=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
`,bM=e=>{let{title:n,filteredFlows:t,onSearchChange:a,loading:i,search:l}=e;const{showNotification:r}=tn();return(0,fe.jsxs)(ie.fv,{name:"ConfigurationAccountsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationLearnSubscriptionsContainer__Controls",icon:"briefcase",iconColor:"primary",title:n,children:(0,fe.jsx)(ie.fv,{container:!0,item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationFlowsSubscriptionsContainer__Controls__Search",value:l,onChange:a,hideButton:!0})})}),i&&(0,fe.jsx)(TM,{children:(0,fe.jsx)(ie.Ip,{size:"md"})}),!i&&!t.length&&(0,fe.jsx)(Fu,{name:"ConfigurationUsersContainer__NoResults",title:"There are no results for this search."}),!!t.length&&(0,fe.jsx)(xM,{flows:t,onComplete:r})]})},vM=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
`,CM=()=>{const{accountId:e}=(0,m.g)(),[n,t]=(0,g.useState)(""),{data:a,loading:i,error:l}=os(),r=(0,g.useCallback)(e=>{t(e.target.value)},[t]),o=(a?.getFlowSubscriptions||[]).filter(t=>t.account.name?.includes(n)&&t.account.id===e).sort((e,n)=>Hn(e.flow.title,n.flow.title));return(0,fe.jsxs)(fe.Fragment,{children:[(i||l)&&(0,fe.jsx)(vM,{children:(0,fe.jsx)(ie.Ip,{size:"md"})}),!i&&!l&&(0,fe.jsx)(bM,{filteredFlows:o,onSearchChange:r,title:"Subscriptions",loading:i,search:n})]})};function kM(){return(0,ln.n)(Qd)}function SM(){const[e]=(0,Ul._)(Hd,{fetchPolicy:"network-only"});return async n=>{const t=await e({variables:n});if(!t.data?.getAssetsPageByAccountId)throw new Error("Failed to fetch assets page");const{rows:a,totalRows:i}=t.data.getAssetsPageByAccountId;return{rows:a,totalRows:i||0}}}const NM=le.default.div`
  display: flex;
  gap: 8px;
  align-items: center;
`,AM=le.default.div`
  height: 100%;
`,RM={pagination:!0,paginationPageSize:25,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}};function DM(e){let{accountId:n,onGridReady:t,onEdit:a}=e;const i=(e=>{const n=Je(),t=Jo(),{showNotification:a}=tn(),[i]=(0,Ul._)(Kd),l=(0,g.useCallback)(e=>{const n=e.value;if(!n)return"";const a=t.find(e=>e.id===n);return a?.name??n},[t]),r=(0,g.useCallback)(async e=>{try{const t=e.colDef.field||e.colDef.colId;if(!t)throw new Error("Unfilterable column");const a=await i({variables:{accountId:n,field:t}}),l=(a.data?.getAssetsPageByAccountIdFilter||[]).map(e=>e.value?JSON.stringify(xn().omit(e,"__typename")):e.value);e.success(l)}catch(n){a(`Couldn't load filter values for column ${e.colDef.field}: ${n}`,"danger")}},[i,n,a]),o=(0,g.useMemo)(()=>({values:r,valueFormatter:On,cache:!1,refreshValuesOnOpen:!0}),[r]),s=(0,g.useMemo)(()=>({...o,valueFormatter:On}),[o]);return(0,g.useMemo)(()=>[{headerName:"ID",field:"id",filter:"agTextColumnFilter"},{headerName:"Name",field:"name",filter:"agTextColumnFilter"},{headerName:"Description",field:"description",filter:"agTextColumnFilter"},{filterParams:o,headerName:"GICS Code",field:"gicsCode.code",colId:"gicsCode.id"},{filterParams:o,headerName:"Asset Location",field:"assetLocation",filter:"agTextColumnFilter",valueFormatter:l},{filterParams:o,headerName:"Asset ID",field:"externalId"},{headerName:"Created At",field:"createdAt",valueFormatter:Pn,filter:"agDateColumnFilter"},{headerName:"Last Updated At",field:"lastUpdatedAt",valueFormatter:Pn,filter:"agDateColumnFilter"},{filterParams:s,headerName:"Deleted",field:"deleted",valueFormatter:En,filter:"agSetColumnFilter"},...e?[{headerName:"Actions",field:"actions",sortable:!1,filter:!1,cellRenderer:n=>{const t=n.data;return(0,fe.jsx)(NM,{children:(0,fe.jsx)(f.IconButton,{onClick:()=>e(t),title:"Edit","aria-label":"Edit",children:(0,fe.jsx)(f.Icons.Edit,{})})})}}]:[]],[l,s,o,e])})(a),l=SM();return(0,fe.jsx)(AM,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{...RM,columnDefs:i,onGridReady:e=>{t(e),e.api.setFilterModel({deleted:{field:"deleted",values:[JSON.stringify({label:"No",value:"0"})],filterType:"set"}}),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:t,sortModel:a,filterModel:i}=e.request,{rows:r,totalRows:o}=await l({accountId:n,offset:t||0,limit:RM.paginationPageSize,sort:wn(a),filters:jn(i)});e.success({rowData:r,rowCount:o})}catch(n){E.Cp(n),e.fail()}}})}})})}const LM=JSON.parse('{"OA":[{"key":"name","type":"string","label":"Name","validators":[],"description":"Name of the asset"},{"key":"description","type":"string","label":"Description","validators":[],"description":"Description of the asset"},{"key":"externalId","type":"string","label":"Asset ID","validators":[],"description":"External identifier"},{"key":"assetLocation","type":"string","label":"Asset Location","validators":[],"description":"Location of the asset (free text)"},{"key":"gicsCodeId","type":"select","label":"GICS Code","validators":[],"description":"Code of The Global Industry Classification Standard (GICS)","selectOptions":[]},{"key":"deleted","type":"checkbox","label":"Deleted","validators":[],"description":"Leave non-empty to mark assets as deleted"},{"key":"id","type":"string","label":"ID (optional)","validators":[],"description":"Leave empty to create new. Provide existing record ID to update."}],"W0":{"version":"v2","styleOverrides":{"global":{},"primaryButton":{},"secondaryButton":{}},"backendSyncMode":"DISABLED","importIdentifier":"Investment Assets","allowCustomFields":false,"invalidDataBehavior":"REMOVE_INVALID_ROWS"},"iF":{"backgroundColor":"#0094c9","borderColor":"#0094c9","borderRadius":"32px","borderStyle":"solid","borderWidth":"1px","boxSizing":"border-box","color":"#ffffff","cursor":"pointer","display":"inline-block","fontFamily":"\'Proxima Nova\', Helvetica, Arial, sans-serif","fontSize":"16px","fontWeight":400,"lineHeight":"1.4em","marginLeft":"16px","opacity":1,"padding":"16px 24px","textAlign":"center","textDecoration":"none","width":"auto"}}'),IM=S.J1`
  query getGicsCodes {
    getGicsCodes {
      id
      name
      code
    }
  }
`;function jM(){const{data:{getGicsCodes:e=[]}={},...n}=(0,x.IT)(IM);return{data:(0,hn.orderBy)(e,["name"],["asc"]),...n}}function wM(e){let{onCompleted:n}=e;const t=zo(),a=Je(),i=Yo(),l=Jo(),{data:r}=jM(),{showNotification:o}=tn(),[s]=kM(),d=(0,g.useCallback)(async e=>{const t=e.map(e=>{const{id:n,...t}=e;return n&&String(n).trim()?{...t,id:String(n).trim()}:t}),i=(0,hn.chunk)(t,500),l={created:0,updated:0,deleted:0,failed:0};for(const e of i){const n=await s({variables:{assets:e,accountId:a}});await new Promise(e=>{setTimeout(()=>{e()},500)}),n.errors?l.failed+=e.length:n.data&&(l.created+=n.data.importAssets.created,l.updated+=n.data.importAssets.updated,l.deleted+=n.data.importAssets.deleted)}const{created:r,updated:d,deleted:c,failed:u}=l;let p=`${r} created, ${d} updated, ${c} deleted`;u>0&&(p+=`, ${u} failed`),o(p),n()},[o,n,s,a]);if(!i)throw new Error("Configuration is not ready");const c={id:i?.id||"",name:Wi(i),email:i?.email,companyId:a,companyName:t?.name},u=(0,g.useMemo)(()=>LM.OA.map(e=>{switch(e.key){case"locationId":return{...e,selectOptions:l.map(e=>({label:e.name,value:e.id}))};case"gicsCodeId":return{...e,selectOptions:r.map(e=>({label:`${e.code} - ${e.name}`,value:e.id}))};default:return e}}),[l,r]);return(0,fe.jsx)(vC.A,{licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:c,style:{...DC.style,...LM.iF},settings:{...DC.settings,...LM.W0},fields:u,onResults:d,children:"+ Upload assets"})}function OM(e){let{asset:n,accountId:t,onClose:a,onCompleted:i}=e;const[l,r]=(0,g.useState)(n.name||""),[o,s]=(0,g.useState)(n.description||""),[d,c]=(0,g.useState)(n.externalId||""),[u,p]=(0,g.useState)(n.gicsCode?.id||""),[m,y]=(0,g.useState)(()=>{const e=n.assetLocation;return e?{value:e,label:e}:void 0}),[h,{loading:x}]=kM(),{showNotification:T}=tn(),{data:b}=jM(),v=(0,g.useCallback)(async()=>{try{await h({variables:{accountId:t,assets:[{id:n.id,name:l.trim(),description:o.trim()||void 0,externalId:d.trim()||void 0,gicsCodeId:u||void 0,assetLocation:m?.value?.trim()||void 0}]},refetchQueries:["GetAssetsPageByAccountId"]}),T(`Asset "${n.name}" updated successfully`,"success"),i(),a()}catch(e){T(`Failed to update asset: ${e instanceof Error?e.message:"Unknown error"}`,"danger")}},[n,t,l,o,d,u,m,h,i,a,T]),C=[{label:"No GICS Code",value:""},...b?.map(e=>({label:`${e.code} - ${e.name}`,value:e.id}))??[]];return(0,fe.jsx)(f.Modal,{open:!0,onClose:a,title:"Edit Asset",children:(0,fe.jsxs)(f.Grid,{container:!0,direction:"column",gap:3,children:[(0,fe.jsx)(f.TextField,{label:"Name",value:l,onChange:e=>r(e.target.value),fullWidth:!0,required:!0}),(0,fe.jsx)(f.TextField,{label:"Description",value:o,onChange:e=>s(e.target.value),fullWidth:!0}),(0,fe.jsx)(f.TextField,{label:"Asset ID",value:d,onChange:e=>c(e.target.value),fullWidth:!0}),(0,fe.jsx)(f.Select,{label:"GICS Code",value:u,onChange:e=>p(e.value),options:C,placeholder:"Select GICS Code"}),(0,fe.jsx)(gN,{label:"Asset Location",value:m,onChange:e=>y(e??void 0)}),(0,fe.jsxs)(f.Grid,{container:!0,gap:2,justifyContent:"flex-end",children:[(0,fe.jsx)(f.Button,{variant:"text",onClick:a,disabled:x,children:"Cancel"}),(0,fe.jsx)(f.Button,{onClick:v,disabled:x,children:"Save"})]})]})})}function EM(e){let{accountId:n}=e;const t=SM(),[a,i]=(0,g.useState)(),[l,r]=(0,g.useState)(null),o=(0,g.useCallback)(e=>{r(e)},[]),s=(0,g.useCallback)(()=>{a?.api?.refreshServerSide({purge:!0})},[a]),d=(0,g.useCallback)(()=>{r(null)},[]);return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{icon:"briefcase",iconColor:"primary",title:"Asset management",children:[(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(Mx,{fetchRows:t,gridApi:a?.api,defaultExportFileName:"assets",columnsToSkip:["Actions"],label:"Export assets"})}),(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(wM,{onCompleted:()=>a?.api?.refreshServerSide({purge:!0})})})]}),(0,fe.jsx)(DM,{accountId:n,onGridReady:i,onEdit:o}),l&&(0,fe.jsx)(OM,{asset:l,accountId:n,onClose:d,onCompleted:s})]})}function _M(){const[e]=(0,Ul._)(qd,{fetchPolicy:"network-only"});return async n=>{const t=await e({variables:n});if(!t.data?.getFundsByAccountId)throw new Error("Failed to fetch funds");const{rows:a,totalRows:i}=t.data.getFundsByAccountId;return{rows:a,totalRows:i||0}}}function FM(){return(0,ln.n)(Jd)}const PM=le.default.div`
  height: 100%;
`,BM={pagination:!0,paginationPageSize:25,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}};function UM(e){let{accountId:n,onGridReady:t,onEdit:a}=e;const i=_M(),l=(e=>{const n=Je(),{showNotification:t}=tn(),[a]=(0,Ul._)(Yd),i=(0,g.useCallback)(async e=>{try{const t=e.colDef.field||e.colDef.colId;if(!t)throw new Error("Unfilterable column");const i=await a({variables:{accountId:n,field:t}}),l=(i.data?.getFundsFilter||[]).map(e=>e.value?JSON.stringify(xn().omit(e,"__typename")):e.value);e.success(l)}catch(n){t(`Couldn't load filter values for column ${e.colDef.field}: ${n}`,"danger")}},[a,n,t]),l=(0,g.useMemo)(()=>({values:i,valueFormatter:On,cache:!1,refreshValuesOnOpen:!0}),[i]),r=(0,g.useMemo)(()=>({...l,valueFormatter:On}),[l]);return(0,g.useMemo)(()=>[{headerName:"ID",field:"id",filter:"agTextColumnFilter"},{headerName:"Name",field:"name",filter:"agTextColumnFilter"},{headerName:"External ID",field:"externalId",filter:"agTextColumnFilter"},{filterParams:l,headerName:"Currency",field:"currency.code",colId:"currency.id"},{headerName:"Created At",field:"createdAt",valueFormatter:Pn,filter:"agDateColumnFilter"},{headerName:"Last Updated At",field:"lastUpdatedAt",valueFormatter:Pn,filter:"agDateColumnFilter"},{filterParams:r,headerName:"Deleted",field:"deleted",valueFormatter:En,filter:"agSetColumnFilter"},...e?[{headerName:"Actions",field:"actions",sortable:!1,filter:!1,cellRenderer:n=>(0,fe.jsx)(f.IconButton,{onClick:()=>e(n.data),children:(0,fe.jsx)(f.Icons.Edit,{})})}]:[]],[l,r,e])})(a),r=(0,g.useCallback)(e=>{t(e),e.api.setFilterModel({deleted:{field:"deleted",values:[JSON.stringify({label:"No",value:"0"})],filterType:"set"}}),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:t,sortModel:a,filterModel:l}=e.request,{rows:r,totalRows:o}=await i({accountId:n,offset:t||0,limit:BM.paginationPageSize,sort:wn(a),filters:jn(l)});e.success({rowData:r,rowCount:o})}catch(n){e.fail()}}})},[i,n,t]);return(0,fe.jsx)(PM,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{...BM,columnDefs:l,onGridReady:r})})}const $M=JSON.parse('{"OA":[{"key":"name","type":"string","label":"Name","validators":[{"validate":"required"}],"description":"Name of the fund"},{"key":"currencyId","type":"select","label":"Currency","validators":[],"description":"The code of main currency of the fund in ISO 4217","selectOptions":[]},{"key":"externalId","type":"string","label":"External ID","validators":[{"validate":"unique_case_insensitive"}],"description":"External ID of the asset"},{"key":"deleted","type":"checkbox","label":"Deleted","validators":[]}],"W0":{"version":"v2","styleOverrides":{"global":{},"primaryButton":{},"secondaryButton":{}},"backendSyncMode":"DISABLED","importIdentifier":"Investment Funds","allowCustomFields":false,"invalidDataBehavior":"REMOVE_INVALID_ROWS"},"iF":{"backgroundColor":"#0094c9","borderColor":"#0094c9","borderRadius":"32px","borderStyle":"solid","borderWidth":"1px","boxSizing":"border-box","color":"#ffffff","cursor":"pointer","display":"inline-block","fontFamily":"\'Proxima Nova\', Helvetica, Arial, sans-serif","fontSize":"16px","fontWeight":400,"lineHeight":"1.4em","marginLeft":"16px","opacity":1,"padding":"16px 24px","textAlign":"center","textDecoration":"none","width":"auto"}}');function MM(e){let{onCompleted:n}=e;const t=zo(),a=Je(),i=Yo(),{data:l}=Go(),{showNotification:r}=tn(),[o]=FM(),s=(0,g.useCallback)(e=>{o({variables:{funds:e,accountId:a},onCompleted:e=>{let{importFunds:{created:t,updated:a,deleted:i}}=e;r(`${t} created, ${a} updated, ${i} deleted`),n()}})},[o,a,r,n]);if(!i)throw new Error("Configuration is not ready");const d={id:i?.id||"",name:Wi(i),email:i?.email,companyId:a,companyName:t?.name},c=(0,g.useMemo)(()=>$M.OA.map(e=>"currencyId"===e.key?{...e,selectOptions:l.map(e=>({label:e.name,value:e.id}))}:e),[l]);return(0,fe.jsx)(vC.A,{licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:d,style:{...DC.style,...$M.iF},settings:{...DC.settings,...$M.W0},fields:c,onResults:s,children:"+ Upload funds"})}function VM(e){let{fund:n,accountId:t,open:a,onClose:i,onCompleted:l}=e;const[r,o]=(0,g.useState)(n.name),[s,{loading:d}]=FM(),{showNotification:c}=tn(),u=(0,g.useCallback)(async()=>{try{await s({variables:{accountId:t,funds:[{id:n.id,name:r,currencyId:n.currency.id}]}}),c(`Fund "${n.name}" changed to "${r}" successfully`,"success"),l(),i()}catch(e){c(`Failed to update fund: ${e instanceof Error?e.message:"Unknown error"}`,"danger")}},[r,n,t,s,l,i,c]),p=(0,g.useCallback)(()=>{o(n.name),i()},[n.name,i]);return(0,fe.jsx)(f.Modal,{open:a,onClose:p,title:"Edit Fund",children:(0,fe.jsxs)(f.Grid,{container:!0,direction:"column",gap:3,children:[(0,fe.jsx)(f.TextField,{label:"Fund Name",value:r,onChange:e=>o(e.target.value),fullWidth:!0,required:!0}),(0,fe.jsxs)(f.Grid,{container:!0,gap:2,justifyContent:"flex-end",children:[(0,fe.jsx)(f.Button,{variant:"text",onClick:p,disabled:d,children:"Cancel"}),(0,fe.jsx)(f.Button,{onClick:u,disabled:d||!r.trim()||r===n.name,children:"Save"})]})]})})}function GM(){const e=Je(),n=_M(),[t,a]=(0,g.useState)(),[i,l]=(0,g.useState)(null),r=(0,g.useCallback)(()=>{t?.api?.refreshServerSide({purge:!0})},[t]),o=(0,g.useCallback)(e=>{l(e)},[]),s=(0,g.useCallback)(()=>{t?.api?.refreshServerSide({purge:!0})},[t]),d=(0,g.useCallback)(()=>{l(null)},[]);return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{icon:"business-time",iconColor:"primary",title:"Fund management",children:[(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(Mx,{fetchRows:n,gridApi:t?.api,defaultExportFileName:"funds",columnsToSkip:["Actions"],label:"Export"})}),(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(MM,{onCompleted:r})})]}),(0,fe.jsx)(UM,{accountId:e,onGridReady:a,onEdit:o}),i&&(0,fe.jsx)(VM,{fund:i,accountId:e,open:!0,onClose:d,onCompleted:s})]})}const zM=S.J1`
  query getBanners($accountId: ID!) {
    getBanners(accountId: $accountId, includeHidden: true) {
      id
      accountId
      name
      thumbnail
      url
      type
      visible
    }
  }
`,WM=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,qM=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,JM=(0,le.default)(ie.fI)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,YM=(0,le.default)(ie.JU)`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,HM=(0,le.default)(ie.$n)`
  width: 656px;
`,KM=[{value:gn.US.Scorm,label:"Scorm"},{value:gn.US.Video,label:"Video"},{value:"HYPERLINK",label:"Hyperlink"}],QM=function(e){let{banner:n,onBannerSaved:t,onBannerDeleted:a,showDelete:i=!1}=e;const[l,r]=(0,g.useState)({}),o=(0,g.useRef)(null),s=()=>r({}),d=(0,C.m)(),[c,u]=(0,g.useState)(n);return(0,fe.jsx)(me.s,{mutation:W,onCompleted:t,children:e=>(0,fe.jsx)(me.s,{mutation:q,update:()=>{d.clearStore(),o.current.setState({image:""})},onCompleted:a,children:t=>(0,fe.jsxs)(WM,{id:"upload-account-banner",children:[l.thumbnail&&(0,fe.jsx)(ie.Eg,{id:"validate-thumbnail__notification",name:"validate-thumbnail__notification",color:"danger",show:!0,children:l.thumbnail}),(0,fe.jsx)(qM,{size:"lg",children:"Add/Edit Banner"}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(YM,{for:"upload-account-banner-url",children:"Name"})}),(0,fe.jsx)(JM,{container:!0,children:(0,fe.jsx)(ie.ks,{onChange:e=>{u(n=>({...n,name:e.target.value})),s()},id:"upload-account-banner-name",value:c.name,error:l.name,required:!0,box:!0})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(YM,{for:"upload-account-banner-url",children:"URL"})}),(0,fe.jsx)(JM,{container:!0,children:(0,fe.jsx)(ie.ks,{onChange:e=>{u(n=>({...n,url:e.target.value})),s()},id:"upload-account-banner-url",value:c.url,error:l.url,required:!0,box:!0})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(YM,{for:"upload-account-banner-type",children:"Type"})}),(0,fe.jsx)(JM,{container:!0,children:(0,fe.jsx)(ie.l6,{id:"upload-account-banner-type",placeholder:"Select banner type...",onChange:e=>{const{value:n}=e.target;u(e=>({...e,type:n})),n&&s()},value:c.type,options:KM,error:l.type,required:!0})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(YM,{for:"upload-account-banner-type",children:"Thumbnail"})}),(0,fe.jsx)(JM,{distribution:"center",container:!0,children:(0,fe.jsx)(ie.fv,{children:(0,fe.jsx)(ie.nE,{width:616,height:75,border:20,defaultImage:c.thumbnail,ref:o,onSave:n=>{const t={...c,thumbnail:n},a=function(e){const n={thumbnail:e.thumbnail?null:"Please upload a thumbnail picture",url:ev(e.url)?null:e.url.trim()?"Incorrect url format":"The url is required",type:e.type?null:"Please select the type of the banner",get any(){const{thumbnail:e,url:t,type:a}=n;return Object.values({thumbnail:e,url:t,type:a}).some(Boolean)}};return n}(t);r(a),a.any||e({variables:{input:t}})},acceptedFormats:["image/png","image/jpeg","image/svg+xml","image/gif"],outputFormat:{format:"image/jpeg",width:1553,height:189,background:"#e8e9ec"}})})}),(0,fe.jsx)(ie.fI,{distribution:"center",container:!0,children:(0,fe.jsx)(HM,{color:"warning",onClick:()=>{u(e=>({...e,visible:!e.visible}))},children:c.visible?"Hide Banner":"Show Banner"})}),i&&(0,fe.jsx)(ie.fI,{distribution:"center",container:!0,style:{marginTop:"1rem"},children:(0,fe.jsx)(HM,{color:"danger",onClick:()=>{window.confirm("Are you sure you want to reset the banner to its default state?")&&t({variables:{accountId:n.accountId,id:n.id}})},children:"Delete Banner"})})]})})})},ZM=(0,g.createContext)({onEdit(){throw new Error("Not implemented")},onCreate(){throw new Error("Not implemented")},onAccountSelectorChange(){throw new Error("Not implemented")},agGrid:{},currentAccountId:""});function XM(){return(0,g.useContext)(ZM)}const eV=e=>{let{children:n}=e;const{showNotification:t}=tn(),a=Je(),[i,l]=(0,g.useState)(a),r=qr(),[o,s]=(0,g.useState)(!1),[d,c]=(0,g.useState)(null),u=(0,g.useCallback)(e=>{c(e)},[c]),p=(0,g.useCallback)(()=>{c(null)},[c]),m=(0,g.useCallback)(()=>{s(!0)},[s]),f=(0,g.useCallback)(()=>{s(!1)},[s]);return(0,fe.jsxs)(ZM.Provider,{value:{onAccountSelectorChange:l,onCreate:m,onEdit:u,agGrid:r,currentAccountId:i},children:[n,d&&(0,fe.jsx)(ie.aF,{size:"lg",show:!0,dismissable:!0,name:"ConfigurationAccountsContainer__Modal--Logo",onDismiss:p,children:(0,fe.jsx)(QM,{banner:d,onBannerSaved:()=>{t("The banner has been updated","success"),r.api?.refreshServerSide(),p()},showDelete:!0,onBannerDeleted:()=>{t("The banner has been deleted","success"),r.api?.refreshServerSide(),p()}})}),o&&(0,fe.jsx)(ie.aF,{size:"lg",show:!0,dismissable:!0,name:"ConfigurationAccountsContainer__Modal--Logo",onDismiss:f,children:(0,fe.jsx)(QM,{banner:{id:(0,Wa.A)(),accountId:i,name:"",thumbnail:"",visible:!0,type:gn.x1.Hyperlink,url:"",__typename:"Banner"},onBannerSaved:()=>{t("The banner has been created","success"),r.api?.refreshServerSide(),s(!1)}})})]})},nV=(0,le.default)(ie.In)`
  cursor: pointer;
`,tV=le.default.img`
  object-fit: contain;
  width: 100%;
`,aV=(0,le.default)(Pg)`
  .ag-header-cell-resize {
    z-index: 0;
  }
`,iV={pagination:!0,paginationPageSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}},columnDefs:[{headerName:"Name",field:"name",filter:"agTextColumnFilter"},{headerName:"URL",field:"url",filter:"agTextColumnFilter"},{headerName:"Thumbnail",field:"thumbnail",cellRenderer:"thumbnail"},{headerName:"Type",field:"type",filter:"agTextColumnFilter"},{headerName:"Visible",field:"visible",cellRenderer:"visibility"},{cellRenderer:"edit"}],components:{thumbnail:e=>{let{data:n}=e;return(0,fe.jsx)(tV,{src:n.thumbnail})},visibility:e=>{let{data:n}=e;return n.visible?(0,fe.jsx)(ie.In,{icon:"eye"}):(0,fe.jsx)(ie.In,{icon:"eye-slash"})},edit:e=>{let{data:n}=e;const{onEdit:t}=XM();return(0,fe.jsx)(nV,{icon:"pencil-alt",onClick:()=>t(n)})}}};function lV(e){let{fetchRows:n}=e;const{agGrid:t,currentAccountId:a}=XM(),i=(0,g.useCallback)(e=>{t.onGridReady(e),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{rows:t,totalRows:i}=await n({accountId:a});e.success({rowData:t,rowCount:i})}catch(n){throw e.fail(),n}}})},[a,t,n]);return(0,g.createElement)(aV,{...iV,key:a,onColumnVisible:t.onSaveGridColumnState,onColumnPinned:t.onSaveGridColumnState,onColumnResized:t.onSaveGridColumnState,onColumnMoved:t.onSaveGridColumnState,onColumnRowGroupChanged:t.onSaveGridColumnState,onColumnValueChanged:t.onSaveGridColumnState,onColumnPivotChanged:t.onSaveGridColumnState,onDestroy:t.onDestroy,onGridReady:i})}const rV=le.default.div`
  ${e=>{let{theme:n,color:t="primary"}=e;return`\n    display: flex;\n    flex-direction: row;\n    justify-content: center;\n    align-items: center;\n\n    -webkit-transition: background .5s ease-out, border .5s ease-out;\n    -moz-transition: background .5s ease-out, border .5s ease-out;\n    -o-transition: background .5s ease-out, border .5s ease-out;\n    transition: background .5s ease-out, border .5s ease-out;\n\n    border: 1px solid transparent;\n    border-radius: 3px;\n\n    :hover {\n      background: ${n.colors[t].light.background};\n      border: 1px solid ${n.colors[t].dark.background} !important;\n    }\n  `}}
`,oV=le.default.div`
  padding: 1.2rem 1.8rem 1.2rem 1.6rem;
  width: 2rem;
`,sV=le.default.p`
  ${e=>{let{theme:n,color:t="primary"}=e;return`\n    border: solid ${n.colors[t].dark.background};\n    border-width: 0 0.1rem 0.1rem 0;\n    display: inline-block;\n    padding: 0.3rem;\n  `}}
`,dV=(0,le.default)(sV)`
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
`,cV=((0,le.default)(sV)`
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
`,(0,le.default)(sV)`
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
`,(0,le.default)(sV)`
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
`,(0,le.default)(ie.fI)`
  background: white;
  padding: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
`),uV=(0,le.default)(ie.GQ)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  display: inline-flex;
  flex: 0 0 auto;
`,pV=le.default.div`
  display: flex;
  align-items: center;
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,mV=(0,le.default)(ie.EY)`
  padding: 0 ${e=>e.theme.geometry.xs.spacing};
`,fV=le.default.div`
  display: flex;
  flex: 0 0 auto;
  width: ${e=>16*e.characterLength+100}px;
  .rs__value-container {
    padding-left: 0 !important;
  }

  .rs__single-value {
    font-size: 32px;
    line-height: 1.4em;
    color: #4d505b;
  }
`,yV=(0,le.default)(ie.l6)`
  background-color: transparent;
  border-radius: 0;
  border: none;
`,gV=(0,le.default)(e=>{let{className:n,onClick:t}=e;return(0,fe.jsx)(rV,{className:n,onClick:t,children:(0,fe.jsx)(oV,{children:(0,fe.jsx)(dV,{})})})})`
  margin-right: 10px;
`,hV=e=>{let{name:n,title:t,breadcrumbs:a,icon:i,iconColor:l,isDropdown:r,dropdownItems:o,dropdownDefault:s,children:d,leftButtonClick:c,...u}=e;const p=(0,m.Zp)(),f=(0,m.zy)();return(0,fe.jsxs)(cV,{name:`${n}__PageHeader`,container:!0,distribution:"between",itemAlign:"center",...u,children:[c?(0,fe.jsx)(gV,{onClick:c}):"",(0,fe.jsxs)(pV,{children:[(0,fe.jsx)(uV,{name:`${n}__PageHeader__Icon`,inline:!0,height:"50px",size:"lg",circleColor:l,iconColor:l,icon:i}),(0,fe.jsxs)(ie.fv,{container:!0,item:!0,vdistribution:"center",span:12,children:[!!a&&(0,fe.jsx)("div",{children:a.map((e,t)=>(0,fe.jsxs)(g.Fragment,{children:[e.to?(0,fe.jsx)(ie.Yq,{name:`${n}__PageHeader__Breadcrumb__Link`,component:"routerLink",inline:!0,underline:!1,color:"dark",size:"sm",to:e.to,children:e.title}):(0,fe.jsx)(ie.EY,{name:`${n}__PageHeader__Breadcrumb__Text`,inline:!0,color:"dark",size:"sm",children:e.title}),t<a.length-1&&(0,fe.jsx)(mV,{inline:!0,color:"dark",size:"sm",children:"/"})]},t))}),!!t&&!r&&(0,fe.jsx)(ie.DZ,{name:`${n}__PageHeader__Title`,size:"xxl",weight:"light",align:"left",children:t}),r&&o&&s&&(0,fe.jsx)(fV,{characterLength:s.length,children:(0,fe.jsx)(yV,{onChange:e=>{p(f.pathname.replace(/[^/]*$/,e.target.select.link))},value:s,options:o.map(e=>({label:e.title,value:e.title,link:e.link})),isSearchable:!1})})]})]}),d||null]})};hV.propTypes={name:pe().string.isRequired,children:pe().node,title:pe().string,isDropdown:pe().bool,dropdownItems:pe().array,dropdownDefault:pe().string,breadcrumbs:pe().array,icon:pe().string,iconColor:pe().oneOf(["primary","secondary","tertiary","info","success","warning","danger","quaternary"])};const xV=hV,TV=(0,le.default)(ie.$n)`
  width: 250px;
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,bV=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`;function vV(){const{currentAccountId:e,onCreate:n,onAccountSelectorChange:t}=XM(),a=lr(),i=(0,C.m)();return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsx)(xV,{name:"Engage Banners",title:"Engage Banners",breadcrumbs:[{title:"Configuration",to:"/configuration"},{title:"Engage",to:"/configuration/learnconfig/learncontent"},{title:"Banners"}],icon:"chart-line",iconColor:"quaternary",children:(0,fe.jsx)(bv,{container:!0,item:!0,distribution:"center",vdistribution:"center",itemAlign:"center",children:(0,fe.jsx)(TV,{name:"ConfigurationEnergyMetersContainer__Controls__Button--add",color:"primary",inline:!0,onClick:()=>n(),children:"+ Create Banner"})})}),a.account.includes("getAll")&&(0,fe.jsx)(bV,{children:(0,fe.jsx)(wu,{value:e,onChange:e=>{let{id:n}=e;return t(n)}})}),(0,fe.jsx)(lV,{fetchRows:async e=>{const{data:{getBanners:n}}=await i.query({query:zM,variables:e,fetchPolicy:"network-only"});return{rows:n,totalRows:n.length}}})]})}const CV=()=>(0,fe.jsx)(eV,{children:(0,fe.jsx)(vV,{})}),kV=S.J1`
  query GetGasComposition(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getGasComposition(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        accountId
        date
        user {
          id
          name
        }
        assetId
        assetName
        higherHeatingValue
        higherHeatingUnit
        gasMolWt
        fuelMixWtC
        molCMol
        co2MolFraction
        ch4MolFraction
        boeConv
        components {
          id
          component
          molePercentage
          molecularWeight
          weight
          weightPercentage
          coefficientCarbon
          weightPercentageCarbon
          weightPercentageCarbonMixture
          molCarbonMolGas
        }
      }
    }
  }
`,SV=S.J1`
  query GetGasCompositionFilter($accountId: ID!, $field: String!) {
    getGasCompositionFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,NV=le.default.div`
  height: 100%;
`,AV={pagination:!0,paginationPageSize:25,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}},masterDetail:!0,detailRowHeight:300,detailCellRendererParams:{detailGridOptions:{columnDefs:[{headerName:"Component",field:"component",sortable:!0},{headerName:"Mole %",field:"molePercentage",sortable:!0,valueFormatter:e=>`${e.value?.toFixed(2)}%`},{headerName:"Molecular Weight",field:"molecularWeight",sortable:!0,valueFormatter:e=>e.value?.toFixed(2)},{headerName:"Weight",field:"weight",sortable:!0,valueFormatter:e=>e.value?.toFixed(4)},{headerName:"Weight %",field:"weightPercentage",sortable:!0,valueFormatter:e=>`${e.value?.toFixed(2)}%`},{headerName:"Carbon Coeff.",field:"coefficientCarbon",sortable:!0,valueFormatter:e=>e.value?.toFixed(2)},{headerName:"Weight % Carbon",field:"weightPercentageCarbon",sortable:!0,valueFormatter:e=>`${e.value?.toFixed(2)}%`},{headerName:"Weight % Carbon Mixture",field:"weightPercentageCarbonMixture",sortable:!0,valueFormatter:e=>`${e.value?.toFixed(2)}%`},{headerName:"Mol Carbon/Mol Gas",field:"molCarbonMolGas",sortable:!0,valueFormatter:e=>e.value?.toFixed(4)}],defaultColDef:{sortable:!0,resizable:!0},pagination:!1,suppressFilter:!0},getDetailRowData:e=>{e.successCallback(e.data.components)}}};function RV(e){let{accountId:n,onGridReady:t}=e;const[a]=(0,Ul._)(kV),i=(()=>{const e=Je(),[n]=(0,Ul._)(SV),{showNotification:t}=tn(),a=(0,g.useCallback)(async a=>{try{const t=a.colDef.field||a.colDef.colId;if(!t)throw new Error("Unfilterable column");const i=await n({variables:{accountId:e,field:t}}),l=(i.data?.getGasCompositionFilter||[]).map(e=>e.value?JSON.stringify(e):e.value);a.success(l)}catch(e){t(`Couldn't load filter values for column ${a.colDef.field}: ${e}`,"danger")}},[n,e,t]),i=(0,g.useMemo)(()=>({values:a,valueFormatter:On,cache:!1,refreshValuesOnOpen:!0}),[a]);return(0,g.useMemo)(()=>[{headerName:"Date",field:"date",valueFormatter:e=>Fn(e),filter:"agDateColumnFilter",sort:"desc",cellRenderer:"agGroupCellRenderer"},{headerName:"Asset",field:"assetName",filter:"agSetColumnFilter",filterParams:i},{headerName:"User",field:"user.name",filter:"agSetColumnFilter",filterParams:i},{headerName:"Higher Heating Value",field:"higherHeatingValue",filter:"agNumberColumnFilter",valueFormatter:e=>null==e.value?"":`${e.value.toFixed(2)} ${e.data.higherHeatingUnit||""}`},{headerName:"Gas Mol Wt",field:"gasMolWt",filter:"agNumberColumnFilter",valueFormatter:e=>null==e.value?"":e.value.toFixed(2)},{headerName:"Fuel Mix Wt% C",field:"fuelMixWtC",filter:"agNumberColumnFilter",valueFormatter:e=>null==e.value?"":`${e.value.toFixed(2)}%`},{headerName:"Mol C/Mol",field:"molCMol",filter:"agNumberColumnFilter",valueFormatter:e=>null==e.value?"":e.value.toFixed(4)},{headerName:"CO2 Mol Fraction",field:"co2MolFraction",filter:"agNumberColumnFilter",valueFormatter:e=>null==e.value?"":e.value.toFixed(4)},{headerName:"CH4 Mol Fraction",field:"ch4MolFraction",filter:"agNumberColumnFilter",valueFormatter:e=>null==e.value?"":e.value.toFixed(4)},{headerName:"BOE Conv",field:"boeConv",filter:"agNumberColumnFilter",valueFormatter:e=>null==e.value?"":e.value.toFixed(2)}],[i])})(),l=(0,g.useCallback)(e=>{t(e),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:t,sortModel:i,filterModel:l}=e.request,r=await a({variables:{accountId:n,offset:t||0,limit:AV.paginationPageSize,sort:wn(i),filters:jn(l)}});if(!r.data?.getGasComposition)throw new Error("Failed to fetch gas compositions");const{rows:o,totalRows:s}=r.data.getGasComposition;e.success({rowData:o,rowCount:s})}catch(n){console.error("Error fetching gas compositions:",n),e.fail()}}})},[a,n,t]);return(0,fe.jsx)(NV,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{...AV,columnDefs:i,onGridReady:l})})}const DV=S.J1`
  mutation CreateGasComposition($input: CreateGasCompositionInput!) {
    createGasComposition(input: $input)
  }
`;S.J1`
  query GetGasComposition(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getGasComposition(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        accountId
        assetName
        date
        user
        higherHeatingValue
        higherHeatingUnit
        components {
          id
          component
          molePercentage
          molecularWeight
          weight
          weightPercentage
          coefficientCarbon
          weightPercentageCarbon
          weightPercentageCarbonMixture
          molCarbonMolGas
        }
      }
    }
  }
`;const LV=(e,n,t)=>(t.forEach(t=>{if(!n.row[t])return;const a=n.row[t].info?.some(n=>n.message===e.message&&n.level===e.level);a||(n.row[t].info||(n.row[t].info=[]),n.row[t].info.push(e))}),n),IV=(e,n)=>(n.forEach(n=>{e.row[n]&&(e.row[n].info=[])}),e),jV=e=>"number"==typeof e&&!Number.isNaN(e)||("string"==typeof e?!!e.trim():!!e),wV=S.J1`
  query GetOilProducingAssetsForSelect($accountId: ID!) {
    getOilProducingAssetsPage(accountId: $accountId, pageSize: 1000, page: 1) {
      items {
        id
        location {
          id
          name
        }
        field
      }
    }
  }
`,OV=t.p+"gas-composition-template-dd653cf877e901f5e77a.xlsx",EV=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,_V=le.default.div`
  flex: 1;
  min-height: 0;
  padding: 0 ${e=>e.theme.geometry.md.spacing};
`,FV=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,PV=le.default.div`
  margin-left: auto;
`,BV=[De("REACT_APP_BASE_URL"),OV].join(""),UV=$u(function(e){let{permissions:n,accountId:t}=e;const a=Je(),[i,l]=(0,g.useState)({id:t||a}),[r,o]=(0,g.useState)(null),s=(0,C.m)(),d=i.id||a,c=Vr(d),u=Yo(),{showNotification:p}=tn(),[m]=(0,ln.n)(DV),f=function(e){const{data:n}=(0,x.IT)(wV,{variables:{accountId:e},fetchPolicy:"network-only",skip:!e});return(0,g.useMemo)(()=>[{key:"assetId",type:"select",label:"Asset",description:"Select the oil producing asset",validators:[{validate:"required"}],selectOptions:n?.getOilProducingAssetsPage?.items?.map(e=>({label:`${e.field} - ${e.location.name}`,value:e.id}))||[]},{key:"date",type:["date",{locale:"en-GB"}],label:"Date",description:"Date of the gas composition measurement",validators:[{validate:"required"}]},{key:"higherHeatingValue",type:["number",{min:0}],label:"Higher Heating Value",description:"Higher heating value of the gas",validators:[{validate:"required"}]},{key:"higherHeatingUnit",type:"select",label:"Higher Heating Unit",description:"Unit for the higher heating value",validators:[{validate:"required"}],selectOptions:[{label:"kJ/m³",value:"kJ/m³"},{label:"BTU/scf",value:"BTU/scf"}]},{key:"o2MolePercentage",type:["number",{min:0}],label:"O2 Mole %",description:"Oxygen mole percentage (0-100)",defaultValue:0},{key:"n2MolePercentage",type:["number",{min:0}],label:"N2 Mole %",description:"Nitrogen mole percentage (0-100)",defaultValue:0},{key:"co2MolePercentage",type:["number",{min:0}],label:"CO2 Mole %",description:"Carbon dioxide mole percentage (0-100)",defaultValue:0},{key:"h2MolePercentage",type:["number",{min:0}],label:"H2 Mole %",description:"Hydrogen mole percentage (0-100)",defaultValue:0},{key:"h2sMolePercentage",type:["number",{min:0}],label:"H2S Mole %",description:"Hydrogen sulfide mole percentage (0-100)",defaultValue:0},{key:"ch4MolePercentage",type:["number",{min:0}],label:"CH4 Mole %",description:"Methane mole percentage (0-100)",defaultValue:0},{key:"c2h6MolePercentage",type:["number",{min:0}],label:"C2H6 Mole %",description:"Ethane mole percentage (0-100)",defaultValue:0},{key:"c3h8MolePercentage",type:["number",{min:0}],label:"C3H8 Mole %",description:"Propane mole percentage (0-100)",defaultValue:0},{key:"c4h10MolePercentage",type:["number",{min:0}],label:"C4H10 Mole %",description:"Butane mole percentage (0-100)",defaultValue:0},{key:"c5h12MolePercentage",type:["number",{min:0}],label:"C5H12 Mole %",description:"Pentane mole percentage (0-100)",defaultValue:0},{key:"c6h14MolePercentage",type:["number",{min:0,max:101}],label:"C6H14 Mole %",description:"Hexane mole percentage (0-100)",defaultValue:0},{key:"c7h16MolePercentage",type:["number",{min:0,max:101}],label:"C7H16 Mole %",description:"Heptane mole percentage (0-100)",defaultValue:0},{key:"c8h18MolePercentage",type:["number",{min:0,max:101}],label:"C8H18 Mole %",description:"Octane mole percentage (0-100)",defaultValue:0},{key:"c9PlusMolePercentage",type:["number",{min:0,max:101}],label:"C9+ Mole %",description:"C9+ compounds mole percentage (0-100)",defaultValue:0}],[n?.getOilProducingAssetsPage?.items])}(d),y=(0,g.useCallback)(e=>{o(e.api)},[]),h=(0,g.useCallback)(async e=>{try{const n=e.map(e=>({assetId:e.assetId,date:e.date,higherHeatingValue:Number(e.higherHeatingValue),higherHeatingUnit:e.higherHeatingUnit,o2MolePercentage:e.o2MolePercentage||null,n2MolePercentage:e.n2MolePercentage||null,co2MolePercentage:e.co2MolePercentage||null,h2MolePercentage:e.h2MolePercentage||null,h2sMolePercentage:e.h2sMolePercentage||null,ch4MolePercentage:e.ch4MolePercentage||null,c2h6MolePercentage:e.c2h6MolePercentage||null,c3h8MolePercentage:e.c3h8MolePercentage||null,c4h10MolePercentage:e.c4h10MolePercentage||null,c5h12MolePercentage:e.c5h12MolePercentage||null,c6h14MolePercentage:e.c6h14MolePercentage||null,c7h16MolePercentage:e.c7h16MolePercentage||null,c8h18MolePercentage:e.c8h18MolePercentage||null,c9PlusMolePercentage:e.c9PlusMolePercentage||null}));await m({variables:{input:{accountId:d,gasCompositions:n}}}),p(`Successfully uploaded ${n.length} gas composition${n.length>1?"s":""}!`,"success"),s.refetchQueries({include:[kV]}).then(()=>{r&&r.refreshServerSide({purge:!0})})}catch(e){p(`Something unexpected happened. Error: ${e.message||"Internal server error"}`,"danger")}},[m,p,d,s,r]),T=(0,g.useMemo)(()=>c&&u?{id:u.id,name:Wi(u),email:u.email,companyId:c.id,companyName:c.name}:null,[c,u]);return(0,fe.jsxs)(EV,{children:[(0,fe.jsx)(gu,{name:"ConfigurationGasCompositionContainer__Controls",icon:"flask",iconColor:"primary",title:"Gas Composition",children:(0,fe.jsx)(PV,{children:T&&(0,fe.jsx)(vC.A,{licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:T,style:DC.style,settings:{...DC.settings,importIdentifier:"GasComposition",uploadStep:{...DC.settings.uploadStep,helpText:SC(BV)},manualInputDisabled:!1},fields:f,onResults:h,bulkRowHooks:[e=>(e=>{const n=["o2MolePercentage","n2MolePercentage","co2MolePercentage","h2MolePercentage","h2sMolePercentage","ch4MolePercentage","c2h6MolePercentage","c3h8MolePercentage","c4h10MolePercentage","c5h12MolePercentage","c6h14MolePercentage","c7h16MolePercentage","c8h18MolePercentage","c9PlusMolePercentage"];return e.map(e=>{const t=n.reduce((n,t)=>n+Number(e.row[t].resultValue||0),0);return IV(e,n),t>=99.9&&t<=100.1?e:LV({message:`The sum of the mole percentages should be 100% (+/- 0.1%), currently it is ${t}%`,level:"error"},e,n)})})(e)],children:"Upload Gas Composition"})})}),n.account.includes("getAll")&&(0,fe.jsx)(FV,{children:(0,fe.jsx)(wu,{value:i.id,onChange:e=>{l({id:e.id})}})}),(0,fe.jsx)(_V,{children:(0,fe.jsx)(RV,{accountId:i.id,onGridReady:y})})]})}),$V=S.J1`
  query GetGasCompositionUncertaintiesFilter($accountId: ID!, $field: String!) {
    getGasCompositionUncertaintiesFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,MV=S.J1`
  query GetGasCompositionUncertainties(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getGasCompositionUncertainties(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        accountId
        assetId
        assetName
        date
        co2MolMean
        co2MolURel
        ch4MolMean
        ch4MolURel
        molCMolGasMean
        molCMolGasURel
        mwMean
        mwURel
        wtCMean
        wtCURel
        boeConvMean
        createdAt
        updatedAt
      }
    }
  }
`,VV={pagination:!0,paginationPageSize:25,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}},GV=e=>{let{accountId:n,onGridReady:t}=e;const[a,i]=(0,g.useState)(null),l=(()=>{const e=Je(),[n]=(0,Ul._)($V),{showNotification:t}=tn(),a=(0,g.useCallback)(async a=>{try{const t=a.colDef.field||a.colDef.colId;if(!t)throw new Error("Unfilterable column");const i=await n({variables:{accountId:e,field:t}}),l=(i.data?.getGasCompositionUncertaintiesFilter||[]).map(e=>e.value?JSON.stringify(e):e.value);a.success(l)}catch(e){t(`Couldn't load filter values for column ${a.colDef.field}: ${e}`,"danger")}},[n,e,t]),i=(0,g.useMemo)(()=>({values:a,valueFormatter:On,cache:!1,refreshValuesOnOpen:!0}),[a]);return(0,g.useMemo)(()=>[{headerName:"Date",filter:"agDateColumnFilter",field:"date",width:120},{headerName:"Asset",field:"assetName",filter:"agSetColumnFilter",filterParams:i,width:250},{headerName:"CO2 Mol Mean (%)",filter:"agNumberColumnFilter",field:"co2MolMean",width:230,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(4)}`:""},{headerName:"CO2 Mol U(rel) (%)",filter:"agNumberColumnFilter",field:"co2MolURel",width:230,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(2)}%`:"0"},{headerName:"CH4 Mol Mean (%)",filter:"agNumberColumnFilter",field:"ch4MolMean",width:230,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(4)}`:"0"},{headerName:"CH4 Mol U(rel) (%)",filter:"agNumberColumnFilter",field:"ch4MolURel",width:230,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(2)}%`:"0"},{headerName:"Mol C/Mol Gas Mean",filter:"agNumberColumnFilter",field:"molCMolGasMean",width:230,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(4)}`:"0"},{headerName:"Mol C/Mol Gas U(rel) (%)",filter:"agNumberColumnFilter",field:"molCMolGasURel",width:230,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(2)}%`:"0"},{headerName:"MW Mean",filter:"agNumberColumnFilter",field:"mwMean",width:180,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(2)}`:"0"},{headerName:"MW U(rel) (%)",filter:"agNumberColumnFilter",field:"mwURel",width:180,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(2)}%`:"0"},{headerName:"Wt C Mean (%)",filter:"agNumberColumnFilter",field:"wtCMean",width:200,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(4)}`:"0"},{headerName:"Wt C U(rel) (%)",filter:"agNumberColumnFilter",field:"wtCURel",width:200,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(2)}%`:"0"},{headerName:"BOE Conv Mean",filter:"agNumberColumnFilter",field:"boeConvMean",width:200,cellStyle:{textAlign:"right"},valueFormatter:e=>e.value?`${e.value.toFixed(4)}`:"0"},{headerName:"Created At",filter:"agDateColumnFilter",field:"createdAt",width:170,valueFormatter:e=>e.value?new Date(e.value).toLocaleString():"0"},{headerName:"Updated At",filter:"agDateColumnFilter",field:"updatedAt",width:170,valueFormatter:e=>e.value?new Date(e.value).toLocaleString():"0"}],[i])})(),[r]=(0,Ul._)(MV,{fetchPolicy:"network-only"}),o=(0,g.useCallback)(e=>{t?.(e),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:t,sortModel:a,filterModel:i}=e.request,l=await r({variables:{accountId:n,offset:t||0,limit:VV.paginationPageSize,sort:wn(a),filters:jn(i)}});if(!l.data?.getGasCompositionUncertainties)throw new Error("Failed to fetch gas composition uncertainties");const{rows:o,totalRows:s}=l.data.getGasCompositionUncertainties;e.success({rowData:o,rowCount:s})}catch(n){console.error("Error fetching gas composition uncertainties:",n),i(n),E.Cp(n),e.fail()}}})},[r,n,t]);if(a)return(0,fe.jsx)($c,{error:a});const s={...VV,columnDefs:l,onGridReady:o};return(0,fe.jsx)("div",{className:"ag-theme-alpine",style:{height:"100%",width:"100%"},children:(0,fe.jsx)(f.AgGrid,{gridKey:"gas-composition-uncertainties",gridOptions:s})})},zV=le.default.div`
  flex: 1;
  min-height: 0;
  padding: 0 ${e=>e.theme.geometry.md.spacing};
`,WV=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,qV=$u(function(e){let{permissions:n,accountId:t}=e;const a=Je(),[i,l]=(0,g.useState)({id:t||a});return(0,fe.jsxs)(f.Page,{title:{content:(0,fe.jsx)(gu,{name:"ConfigurationGasCompositionUncertaintiesContainer__Controls",icon:"calculator",iconColor:"primary",title:"Gas Composition Uncertainties"})},children:[n.account.includes("getAll")&&(0,fe.jsx)(WV,{children:(0,fe.jsx)(wu,{value:i.id,onChange:e=>{l({id:e.id})}})}),(0,fe.jsx)(zV,{children:(0,fe.jsx)(GV,{accountId:i.id})})]})});var JV=t(2904),YV=t(8859);const HV=S.J1`
  query GetEstatesConfiguration(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getEstatesConfiguration(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        accountId
        locationId
        locationName
        forecastYear
      }
    }
  }
`,KV=S.J1`
  query GetEstatesConfigurationById($id: ID!, $accountId: ID!) {
    getEstatesConfigurationById(id: $id, accountId: $accountId) {
      id
      accountId
      locationId
      locationName
      forecastYear
      locationStatus
      cityStatus
      tenure
      tenureStatus
      floorSpace
      floorSpaceStatus
      occupationStartDate
      occupationStartDateStatus
      occupationBreakDate
      occupationBreakDateStatus
      occupationEndDate
      occupationEndDateStatus
      facilitiesCondition
      facilitiesConditionStatus
      facilitiesStatComp
      facilitiesStatCompStatus
      facilitiesEpc
      facilitiesEpcStatus
      facilitiesGovSystem
      facilitiesGovSystemStatus
      locationYearPropertyMilestone
      locationYearPropertyMilestoneStatus
      estateChange
      estateChangeStatus
      desnzEntityHeadcountDesnz
      desnzEntityHeadcountDesnzStatus
      desnzEntityHeadcountIcs
      desnzEntityHeadcountIcsStatus
      desnzEntityHeadcountGbe
      desnzEntityHeadcountGbeStatus
      desnzEntityHeadcountSeahorse
      desnzEntityHeadcountSeahorseStatus
      dsitEntityHeadcountDsit
      dsitEntityHeadcountDsitStatus
      dsitEntityHeadcountUksa
      dsitEntityHeadcountUksaStatus
      totalHeadcountTotal
      totalHeadcountTotalStatus
      totalHeadcountFacilitated
      totalHeadcountFacilitatedStatus
      totalHeadcountVoid
      totalHeadcountVoidStatus
      itEnabledWorkSettingsRequired
      itEnabledWorkSettingsRequiredStatus
      itEnabledWorkSettingsFacilitated
      itEnabledWorkSettingsFacilitatedStatus
      itEnabledWorkSettingsVoid
      itEnabledWorkSettingsVoidStatus
      officeAttendanceFacilitated
      officeAttendanceFacilitatedStatus
      officeAttendanceActual
      officeAttendanceActualStatus
      runningCostRent
      runningCostRentStatus
      runningCostNonRent
      runningCostNonRentStatus
      runningCostTotal
      runningCostTotalStatus
      runningCostPerDesk
      runningCostPerDeskStatus
      runningCostPerHeadcount
      runningCostPerHeadcountStatus
      source
      sourceStatus
      capitalInvestmentCostFitOut
      capitalInvestmentCostFitOutStatus
      dilaps
      dilapsStatus
      runningCostPerEntityDesnzRent
      runningCostPerEntityDesnzRentStatus
      runningCostPerEntityDesnzNonRent
      runningCostPerEntityDesnzNonRentStatus
      runningCostPerEntityDesnzTotal
      runningCostPerEntityDesnzTotalStatus
      runningCostPerEntityIcsRent
      runningCostPerEntityIcsRentStatus
      runningCostPerEntityIcsNonRent
      runningCostPerEntityIcsNonRentStatus
      runningCostPerEntityIcsTotal
      runningCostPerEntityIcsTotalStatus
      runningCostPerEntityGbeRent
      runningCostPerEntityGbeRentStatus
      runningCostPerEntityGbeNonRent
      runningCostPerEntityGbeNonRentStatus
      runningCostPerEntityGbeTotal
      runningCostPerEntityGbeTotalStatus
      runningCostPerEntitySeahorseRent
      runningCostPerEntitySeahorseRentStatus
      runningCostPerEntitySeahorseNonRent
      runningCostPerEntitySeahorseNonRentStatus
      runningCostPerEntitySeahorseTotal
      runningCostPerEntitySeahorseTotalStatus
      runningCostPerEntityDsitRent
      runningCostPerEntityDsitRentStatus
      runningCostPerEntityDsitNonRent
      runningCostPerEntityDsitNonRentStatus
      runningCostPerEntityDsitTotal
      runningCostPerEntityDsitTotalStatus
      runningCostPerEntityUksaRent
      runningCostPerEntityUksaRentStatus
      runningCostPerEntityUksaNonRent
      runningCostPerEntityUksaNonRentStatus
      runningCostPerEntityUksaTotal
      runningCostPerEntityUksaTotalStatus
      runningCostPerEntityTotalCheck
      runningCostPerEntityTotalCheckStatus
      notes
      user {
        id
        name
      }
    }
  }
`,QV=S.J1`
  mutation UpdateEstatesConfiguration($id: ID!, $input: UpdateEstatesConfigurationInput!) {
    updateEstatesConfiguration(id: $id, input: $input)
  }
`,ZV=S.J1`
  mutation DeleteEstatesConfiguration($locationId: ID!, $accountId: ID!, $forecastYear: String!) {
    deleteEstatesConfiguration(locationId: $locationId, accountId: $accountId, forecastYear: $forecastYear)
  }
`,XV=S.J1`
  query GetEstatesReportData($accountId: ID!, $limit: Int = 1000) {
    getEstatesConfiguration(accountId: $accountId, limit: $limit) {
      totalRows
      rows {
        id
        locationId
        locationName
        city
        forecastYear
        locationStatus
        cityStatus
        tenure
        tenureStatus
        floorSpace
        floorSpaceStatus
        occupationStartDate
        occupationStartDateStatus
        occupationBreakDate
        occupationBreakDateStatus
        occupationEndDate
        occupationEndDateStatus
        facilitiesCondition
        facilitiesConditionStatus
        facilitiesStatComp
        facilitiesStatCompStatus
        facilitiesEpc
        facilitiesEpcStatus
        facilitiesGovSystem
        facilitiesGovSystemStatus
        locationYearPropertyMilestone
        locationYearPropertyMilestoneStatus
        estateChange
        estateChangeStatus
        desnzEntityHeadcountDesnz
        desnzEntityHeadcountDesnzStatus
        desnzEntityHeadcountIcs
        desnzEntityHeadcountIcsStatus
        desnzEntityHeadcountGbe
        desnzEntityHeadcountGbeStatus
        desnzEntityHeadcountSeahorse
        desnzEntityHeadcountSeahorseStatus
        dsitEntityHeadcountDsit
        dsitEntityHeadcountDsitStatus
        dsitEntityHeadcountUksa
        dsitEntityHeadcountUksaStatus
        totalHeadcountTotal
        totalHeadcountTotalStatus
        totalHeadcountFacilitated
        totalHeadcountFacilitatedStatus
        totalHeadcountVoid
        totalHeadcountVoidStatus
        itEnabledWorkSettingsRequired
        itEnabledWorkSettingsRequiredStatus
        itEnabledWorkSettingsFacilitated
        itEnabledWorkSettingsFacilitatedStatus
        itEnabledWorkSettingsVoid
        itEnabledWorkSettingsVoidStatus
        officeAttendanceFacilitated
        officeAttendanceFacilitatedStatus
        officeAttendanceActual
        officeAttendanceActualStatus
        runningCostRent
        runningCostRentStatus
        runningCostNonRent
        runningCostNonRentStatus
        runningCostTotal
        runningCostTotalStatus
        runningCostPerDesk
        runningCostPerDeskStatus
        runningCostPerHeadcount
        runningCostPerHeadcountStatus
        source
        sourceStatus
        capitalInvestmentCostFitOut
        capitalInvestmentCostFitOutStatus
        dilaps
        dilapsStatus
        runningCostPerEntityDesnzRent
        runningCostPerEntityDesnzRentStatus
        runningCostPerEntityDesnzNonRent
        runningCostPerEntityDesnzNonRentStatus
        runningCostPerEntityDesnzTotal
        runningCostPerEntityDesnzTotalStatus
        runningCostPerEntityIcsRent
        runningCostPerEntityIcsRentStatus
        runningCostPerEntityIcsNonRent
        runningCostPerEntityIcsNonRentStatus
        runningCostPerEntityIcsTotal
        runningCostPerEntityIcsTotalStatus
        runningCostPerEntityGbeRent
        runningCostPerEntityGbeRentStatus
        runningCostPerEntityGbeNonRent
        runningCostPerEntityGbeNonRentStatus
        runningCostPerEntityGbeTotal
        runningCostPerEntityGbeTotalStatus
        runningCostPerEntitySeahorseRent
        runningCostPerEntitySeahorseRentStatus
        runningCostPerEntitySeahorseNonRent
        runningCostPerEntitySeahorseNonRentStatus
        runningCostPerEntitySeahorseTotal
        runningCostPerEntitySeahorseTotalStatus
        runningCostPerEntityDsitRent
        runningCostPerEntityDsitRentStatus
        runningCostPerEntityDsitNonRent
        runningCostPerEntityDsitNonRentStatus
        runningCostPerEntityDsitTotal
        runningCostPerEntityDsitTotalStatus
        runningCostPerEntityUksaRent
        runningCostPerEntityUksaRentStatus
        runningCostPerEntityUksaNonRent
        runningCostPerEntityUksaNonRentStatus
        runningCostPerEntityUksaTotal
        runningCostPerEntityUksaTotalStatus
        runningCostPerEntityTotalCheck
        runningCostPerEntityTotalCheckStatus
        notes
      }
    }
  }
`,eG=[{label:"Estimated",value:"Estimated"},{label:"Confirmed",value:"Confirmed"},{label:"Current",value:"Current"}];function nG(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{data:t}=(0,x.IT)(mv,{variables:{accountId:e,offset:0,limit:1e3},skip:!e});return(0,g.useMemo)(()=>[{key:n?"locationName":"locationId",type:"select",label:"Location",description:"Select the location for this estates configuration",validators:[{validate:"required"}],selectOptions:t?.getLocationsPage?.rows?.map(e=>({label:e.name,value:e.id}))||[],readOnly:n},{key:"forecastYear",type:"string",label:"Forecast Year",description:"Forecast year (e.g., 2024/25)",validators:[{validate:"required"},{validate:"length",max:9}],readOnly:n},{key:"locationStatus",type:"select",label:"Location Status",description:"Status of the location information",selectOptions:eG},{key:"cityStatus",type:"select",label:"City Status",description:"Status of the city information",selectOptions:eG},{key:"tenure",type:"string",label:"Tenure",description:"Tenure type for this location",validators:[{validate:"length",max:255}]},{key:"tenureStatus",type:"select",label:"Tenure Status",description:"Status of the tenure information",selectOptions:eG},{key:"floorSpace",type:["number",{preset:"decimal_2",min:0}],label:"Floor Space",description:"Floor space area"},{key:"floorSpaceStatus",type:"select",label:"Floor Space Status",description:"Status of the floor space information",selectOptions:eG},{key:"occupationStartDate",type:["date",{locale:"en-GB"}],label:"Occupation Start Date",description:"Date when occupation started"},{key:"occupationStartDateStatus",type:"select",label:"Occupation Start Date Status",description:"Status of the occupation start date information",selectOptions:eG},{key:"occupationBreakDate",type:["date",{locale:"en-GB"}],label:"Occupation Break Date",description:"Date when occupation was broken or interrupted"},{key:"occupationBreakDateStatus",type:"select",label:"Occupation Break Date Status",description:"Status of the occupation break date information",selectOptions:eG},{key:"occupationEndDate",type:["date",{locale:"en-GB"}],label:"Occupation End Date",description:"Date when occupation ended"},{key:"occupationEndDateStatus",type:"select",label:"Occupation End Date Status",description:"Status of the occupation end date information",selectOptions:eG},{key:"facilitiesCondition",type:"string",label:"Facilities Condition",description:"Condition of the facilities",validators:[{validate:"length",max:255}]},{key:"facilitiesConditionStatus",type:"select",label:"Facilities Condition Status",description:"Status of the facilities condition information",selectOptions:eG},{key:"facilitiesStatComp",type:["number",{preset:"decimal_2",min:0}],label:"Facilities Stat Comp",description:"Statistical compliance value for facilities"},{key:"facilitiesStatCompStatus",type:"select",label:"Facilities Stat Comp Status",description:"Status of the facilities statistical compliance information",selectOptions:eG},{key:"facilitiesEpc",type:"string",label:"Facilities EPC",description:"Energy Performance Certificate rating",validators:[{validate:"length",max:255}]},{key:"facilitiesEpcStatus",type:"select",label:"Facilities EPC Status",description:"Status of the facilities EPC information",selectOptions:eG},{key:"facilitiesGovSystem",type:"string",label:"Facilities Gov System",description:"Government system classification",validators:[{validate:"length",max:255}]},{key:"facilitiesGovSystemStatus",type:"select",label:"Facilities Gov System Status",description:"Status of the facilities government system information",selectOptions:eG},{key:"locationYearPropertyMilestone",type:"string",label:"Location Year Property Milestone",description:"Milestone information for location, year and property",validators:[{validate:"length",max:500}]},{key:"locationYearPropertyMilestoneStatus",type:"select",label:"Location Year Property Milestone Status",description:"Status of the milestone information",selectOptions:eG},{key:"estateChange",type:"string",label:"Estate Change",description:"Information about estate changes",validators:[{validate:"length",max:500}]},{key:"estateChangeStatus",type:"select",label:"Estate Change Status",description:"Status of the estate change information",selectOptions:eG},{key:"desnzEntityHeadcountDesnz",type:["number",{preset:"decimal_2",min:0}],label:"DESNZ Entity Headcount - DESNZ",description:"Headcount for DESNZ entity"},{key:"desnzEntityHeadcountDesnzStatus",type:"select",label:"DESNZ Entity Headcount DESNZ Status",description:"Status of DESNZ headcount information",selectOptions:eG},{key:"desnzEntityHeadcountIcs",type:["number",{preset:"decimal_2",min:0}],label:"DESNZ Entity Headcount - ICS",description:"Headcount for ICS entity"},{key:"desnzEntityHeadcountIcsStatus",type:"select",label:"DESNZ Entity Headcount ICS Status",description:"Status of ICS headcount information",selectOptions:eG},{key:"desnzEntityHeadcountGbe",type:["number",{preset:"decimal_2",min:0}],label:"DESNZ Entity Headcount - GBE",description:"Headcount for GBE entity"},{key:"desnzEntityHeadcountGbeStatus",type:"select",label:"DESNZ Entity Headcount GBE Status",description:"Status of GBE headcount information",selectOptions:eG},{key:"desnzEntityHeadcountSeahorse",type:["number",{preset:"decimal_2",min:0}],label:"DESNZ Entity Headcount - Seahorse",description:"Headcount for Seahorse entity"},{key:"desnzEntityHeadcountSeahorseStatus",type:"select",label:"DESNZ Entity Headcount Seahorse Status",description:"Status of Seahorse headcount information",selectOptions:eG},{key:"dsitEntityHeadcountDsit",type:["number",{preset:"decimal_2",min:0}],label:"DSIT Entity Headcount - DSIT",description:"Headcount for DSIT entity"},{key:"dsitEntityHeadcountDsitStatus",type:"select",label:"DSIT Entity Headcount DSIT Status",description:"Status of DSIT headcount information",selectOptions:eG},{key:"dsitEntityHeadcountUksa",type:["number",{preset:"decimal_2",min:0}],label:"DSIT Entity Headcount - UKSA",description:"Headcount for UKSA entity"},{key:"dsitEntityHeadcountUksaStatus",type:"select",label:"DSIT Entity Headcount UKSA Status",description:"Status of UKSA headcount information",selectOptions:eG},{key:"totalHeadcountTotal",type:["number",{preset:"decimal_2",min:0}],label:"Total Headcount - Total",description:"Total headcount"},{key:"totalHeadcountTotalStatus",type:"select",label:"Total Headcount Total Status",description:"Status of total headcount information",selectOptions:eG},{key:"totalHeadcountFacilitated",type:["number",{preset:"decimal_2",min:0}],label:"Total Headcount - Facilitated",description:"Facilitated headcount"},{key:"totalHeadcountFacilitatedStatus",type:"select",label:"Total Headcount Facilitated Status",description:"Status of facilitated headcount information",selectOptions:eG},{key:"totalHeadcountVoid",type:"string",label:"Total Headcount - Void",description:"Void headcount (text field)",validators:[{validate:"length",max:255}]},{key:"totalHeadcountVoidStatus",type:"select",label:"Total Headcount Void Status",description:"Status of void headcount information",selectOptions:eG},{key:"itEnabledWorkSettingsRequired",type:["number",{preset:"decimal_2",min:0}],label:"IT Enabled Work Settings - Required",description:"Required IT enabled work settings"},{key:"itEnabledWorkSettingsRequiredStatus",type:"select",label:"IT Enabled Work Settings Required Status",description:"Status of required IT work settings information",selectOptions:eG},{key:"itEnabledWorkSettingsFacilitated",type:["number",{preset:"decimal_2",min:0}],label:"IT Enabled Work Settings - Facilitated",description:"Facilitated IT enabled work settings"},{key:"itEnabledWorkSettingsFacilitatedStatus",type:"select",label:"IT Enabled Work Settings Facilitated Status",description:"Status of facilitated IT work settings information",selectOptions:eG},{key:"itEnabledWorkSettingsVoid",type:["number",{preset:"decimal_2",min:0}],label:"IT Enabled Work Settings - Void",description:"Void IT enabled work settings"},{key:"itEnabledWorkSettingsVoidStatus",type:"select",label:"IT Enabled Work Settings Void Status",description:"Status of void IT work settings information",selectOptions:eG},{key:"officeAttendanceFacilitated",type:["number",{preset:"decimal_2",min:0}],label:"Office Attendance Facilitated",description:"Facilitated office attendance count"},{key:"officeAttendanceFacilitatedStatus",type:"select",label:"Office Attendance Facilitated Status",description:"Status of facilitated office attendance information",selectOptions:eG},{key:"officeAttendanceActual",type:["number",{preset:"decimal_2",min:0}],label:"Office Attendance Actual",description:"Actual office attendance count"},{key:"officeAttendanceActualStatus",type:"select",label:"Office Attendance Actual Status",description:"Status of actual office attendance information",selectOptions:eG},{key:"runningCostRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Rent",description:"Running cost for rent"},{key:"runningCostRentStatus",type:"select",label:"Running Cost Rent Status",description:"Status of running cost rent information",selectOptions:eG},{key:"runningCostNonRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Non Rent",description:"Running cost for non-rent expenses"},{key:"runningCostNonRentStatus",type:"select",label:"Running Cost Non Rent Status",description:"Status of running cost non-rent information",selectOptions:eG},{key:"runningCostTotal",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Total",description:"Total running cost"},{key:"runningCostTotalStatus",type:"select",label:"Running Cost Total Status",description:"Status of total running cost information",selectOptions:eG},{key:"runningCostPerDesk",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Desk",description:"Running cost per desk"},{key:"runningCostPerDeskStatus",type:"select",label:"Running Cost Per Desk Status",description:"Status of running cost per desk information",selectOptions:eG},{key:"runningCostPerHeadcount",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Headcount",description:"Running cost per headcount"},{key:"runningCostPerHeadcountStatus",type:"select",label:"Running Cost Per Headcount Status",description:"Status of running cost per headcount information",selectOptions:eG},{key:"source",type:"string",label:"Source",description:"Source of the information",validators:[{validate:"length",max:255}]},{key:"sourceStatus",type:"select",label:"Source Status",description:"Status of the source information",selectOptions:eG},{key:"capitalInvestmentCostFitOut",type:["number",{preset:"decimal_2",min:0}],label:"Capital Investment Cost Fit Out",description:"Capital investment cost for fit out"},{key:"capitalInvestmentCostFitOutStatus",type:"select",label:"Capital Investment Cost Fit Out Status",description:"Status of capital investment cost fit out information",selectOptions:eG},{key:"dilaps",type:["number",{preset:"decimal_2",min:0}],label:"Dilaps",description:"Dilapidations cost"},{key:"dilapsStatus",type:"select",label:"Dilaps Status",description:"Status of dilaps information",selectOptions:eG},{key:"runningCostPerEntityDesnzRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity DESNZ Rent",description:"Running cost per entity for DESNZ rent"},{key:"runningCostPerEntityDesnzRentStatus",type:"select",label:"Running Cost Per Entity DESNZ Rent Status",description:"Status of running cost per entity DESNZ rent information",selectOptions:eG},{key:"runningCostPerEntityDesnzNonRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity DESNZ Non Rent",description:"Running cost per entity for DESNZ non-rent"},{key:"runningCostPerEntityDesnzNonRentStatus",type:"select",label:"Running Cost Per Entity DESNZ Non Rent Status",description:"Status of running cost per entity DESNZ non-rent information",selectOptions:eG},{key:"runningCostPerEntityDesnzTotal",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity DESNZ Total",description:"Total running cost per entity for DESNZ"},{key:"runningCostPerEntityDesnzTotalStatus",type:"select",label:"Running Cost Per Entity DESNZ Total Status",description:"Status of running cost per entity DESNZ total information",selectOptions:eG},{key:"runningCostPerEntityIcsRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity ICS Rent",description:"Running cost per entity for ICS rent"},{key:"runningCostPerEntityIcsRentStatus",type:"select",label:"Running Cost Per Entity ICS Rent Status",description:"Status of running cost per entity ICS rent information",selectOptions:eG},{key:"runningCostPerEntityIcsNonRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity ICS Non Rent",description:"Running cost per entity for ICS non-rent"},{key:"runningCostPerEntityIcsNonRentStatus",type:"select",label:"Running Cost Per Entity ICS Non Rent Status",description:"Status of running cost per entity ICS non-rent information",selectOptions:eG},{key:"runningCostPerEntityIcsTotal",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity ICS Total",description:"Total running cost per entity for ICS"},{key:"runningCostPerEntityIcsTotalStatus",type:"select",label:"Running Cost Per Entity ICS Total Status",description:"Status of running cost per entity ICS total information",selectOptions:eG},{key:"runningCostPerEntityGbeRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity GBE Rent",description:"Running cost per entity for GBE rent"},{key:"runningCostPerEntityGbeRentStatus",type:"select",label:"Running Cost Per Entity GBE Rent Status",description:"Status of running cost per entity GBE rent information",selectOptions:eG},{key:"runningCostPerEntityGbeNonRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity GBE Non Rent",description:"Running cost per entity for GBE non-rent"},{key:"runningCostPerEntityGbeNonRentStatus",type:"select",label:"Running Cost Per Entity GBE Non Rent Status",description:"Status of running cost per entity GBE non-rent information",selectOptions:eG},{key:"runningCostPerEntityGbeTotal",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity GBE Total",description:"Total running cost per entity for GBE"},{key:"runningCostPerEntityGbeTotalStatus",type:"select",label:"Running Cost Per Entity GBE Total Status",description:"Status of running cost per entity GBE total information",selectOptions:eG},{key:"runningCostPerEntitySeahorseRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity Seahorse Rent",description:"Running cost per entity for Seahorse rent"},{key:"runningCostPerEntitySeahorseRentStatus",type:"select",label:"Running Cost Per Entity Seahorse Rent Status",description:"Status of running cost per entity Seahorse rent information",selectOptions:eG},{key:"runningCostPerEntitySeahorseNonRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity Seahorse Non Rent",description:"Running cost per entity for Seahorse non-rent"},{key:"runningCostPerEntitySeahorseNonRentStatus",type:"select",label:"Running Cost Per Entity Seahorse Non Rent Status",description:"Status of running cost per entity Seahorse non-rent information",selectOptions:eG},{key:"runningCostPerEntitySeahorseTotal",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity Seahorse Total",description:"Total running cost per entity for Seahorse"},{key:"runningCostPerEntitySeahorseTotalStatus",type:"select",label:"Running Cost Per Entity Seahorse Total Status",description:"Status of running cost per entity Seahorse total information",selectOptions:eG},{key:"runningCostPerEntityDsitRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity DSIT Rent",description:"Running cost per entity for DSIT rent"},{key:"runningCostPerEntityDsitRentStatus",type:"select",label:"Running Cost Per Entity DSIT Rent Status",description:"Status of running cost per entity DSIT rent information",selectOptions:eG},{key:"runningCostPerEntityDsitNonRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity DSIT Non Rent",description:"Running cost per entity for DSIT non-rent"},{key:"runningCostPerEntityDsitNonRentStatus",type:"select",label:"Running Cost Per Entity DSIT Non Rent Status",description:"Status of running cost per entity DSIT non-rent information",selectOptions:eG},{key:"runningCostPerEntityDsitTotal",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity DSIT Total",description:"Total running cost per entity for DSIT"},{key:"runningCostPerEntityDsitTotalStatus",type:"select",label:"Running Cost Per Entity DSIT Total Status",description:"Status of running cost per entity DSIT total information",selectOptions:eG},{key:"runningCostPerEntityUksaRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity UKSA Rent",description:"Running cost per entity for UKSA rent"},{key:"runningCostPerEntityUksaRentStatus",type:"select",label:"Running Cost Per Entity UKSA Rent Status",description:"Status of running cost per entity UKSA rent information",selectOptions:eG},{key:"runningCostPerEntityUksaNonRent",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity UKSA Non Rent",description:"Running cost per entity for UKSA non-rent"},{key:"runningCostPerEntityUksaNonRentStatus",type:"select",label:"Running Cost Per Entity UKSA Non Rent Status",description:"Status of running cost per entity UKSA non-rent information",selectOptions:eG},{key:"runningCostPerEntityUksaTotal",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity UKSA Total",description:"Total running cost per entity for UKSA"},{key:"runningCostPerEntityUksaTotalStatus",type:"select",label:"Running Cost Per Entity UKSA Total Status",description:"Status of running cost per entity UKSA total information",selectOptions:eG},{key:"runningCostPerEntityTotalCheck",type:["number",{preset:"decimal_2",min:0}],label:"Running Cost Per Entity Total Check",description:"Total check for running cost per entity"},{key:"runningCostPerEntityTotalCheckStatus",type:"select",label:"Running Cost Per Entity Total Check Status",description:"Status of running cost per entity total check information",selectOptions:eG},{key:"notes",type:"string",label:"Notes",description:"Additional notes for this estates configuration",validators:[{validate:"length",max:1e3}]}],[t?.getLocationsPage?.rows])}const tG=["floorSpace","facilitiesStatComp","desnzEntityHeadcountDesnz","desnzEntityHeadcountIcs","desnzEntityHeadcountGbe","desnzEntityHeadcountSeahorse","dsitEntityHeadcountDsit","dsitEntityHeadcountUksa","totalHeadcountTotal","totalHeadcountFacilitated","totalHeadcountVoid","itEnabledWorkSettingsRequired","itEnabledWorkSettingsFacilitated","itEnabledWorkSettingsVoid","officeAttendanceFacilitated","officeAttendanceActual","runningCostRent","runningCostNonRent","runningCostTotal","runningCostPerDesk","runningCostPerHeadcount","capitalInvestmentCostFitOut","dilaps","runningCostPerEntityDesnzRent","runningCostPerEntityDesnzNonRent","runningCostPerEntityDesnzTotal","runningCostPerEntityIcsRent","runningCostPerEntityIcsNonRent","runningCostPerEntityIcsTotal","runningCostPerEntityGbeRent","runningCostPerEntityGbeNonRent","runningCostPerEntityGbeTotal","runningCostPerEntitySeahorseRent","runningCostPerEntitySeahorseNonRent","runningCostPerEntitySeahorseTotal","runningCostPerEntityDsitRent","runningCostPerEntityDsitNonRent","runningCostPerEntityDsitTotal","runningCostPerEntityUksaRent","runningCostPerEntityUksaNonRent","runningCostPerEntityUksaTotal","runningCostPerEntityTotalCheck"],aG=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: center;
`,iG=e=>{let{data:n,onEditClick:t,onDeleteClick:a}=e;return(0,fe.jsxs)(aG,{children:[(0,fe.jsx)(f.IconButton,{onClick:()=>t(n),children:(0,fe.jsx)(JV.A,{fontSize:"small",titleAccess:"Edit"})}),(0,fe.jsx)(f.IconButton,{onClick:()=>a(n),children:(0,fe.jsx)(YV.A,{fontSize:"small",titleAccess:"Delete"})})]})},lG=(0,f.styled)("div")`
  height: 100%;
`,rG={pagination:!0,paginationPageSize:25,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}};function oG(e){let{accountId:n,onGridReady:t}=e;const[a]=(0,Ul._)(HV,{fetchPolicy:"cache-and-network"}),[i]=(0,Ul._)(KV,{fetchPolicy:"network-only"}),[l]=(0,ln.n)(QV,{refetchQueries:["GetEstatesConfiguration","GetEstatesConfigurationById"],awaitRefetchQueries:!1}),[r]=(0,ln.n)(ZV,{refetchQueries:["GetEstatesConfiguration"]}),[o,s]=(0,g.useState)(null),[d,c]=(0,g.useState)(null),[u,p]=(0,g.useState)(null),m=Yo(),{showNotification:f}=tn(),y=nG(n,!0),h=(0,g.useRef)(null),x=(0,g.useCallback)(async e=>{try{console.log("Edit clicked for row:",e);const t=await i({variables:{id:e.id,accountId:n}});t.data?.getEstatesConfigurationById?s(t.data.getEstatesConfigurationById):(console.error("Failed to fetch estates configuration details"),f("Failed to fetch estates configuration details","danger"))}catch(e){console.error("Error fetching estates configuration details:",e),f("Error fetching estates configuration details","danger")}},[i,n,f]);(0,g.useEffect)(()=>{o&&h.current&&h.current.open()},[o]);const T=(0,g.useCallback)(e=>{c({locationId:e.locationId,accountId:e.accountId,forecastYear:e.forecastYear})},[]),b=(0,g.useCallback)(async()=>{if(d)try{await r({variables:{locationId:d.locationId,accountId:d.accountId,forecastYear:d.forecastYear}}),f("Successfully deleted estates configuration","success"),u&&u.refreshServerSide({purge:!0})}catch(e){const n=e instanceof Error?e.message:"Failed to delete estates configuration";f(`Error: ${n}`,"danger")}},[d,r,f,u]),v=(0,g.useCallback)(()=>{s(null)},[]),C=(0,g.useCallback)(async e=>{if(o&&0!==e.length)try{console.log("=== UPDATING ESTATES CONFIGURATION ==="),console.log("Original data:",o),console.log("Updated data:",e[0]);const n=e[0],t={};Object.keys(n).forEach(e=>{"locationId"!==e&&"locationName"!==e&&void 0!==n[e]&&(t[e]=""===n[e]?null:n[e])}),console.log("Update input:",t),await l({variables:{id:o.id,input:t}}),f("Successfully updated estates configuration","success"),u&&u.refreshServerSide({purge:!0}),v()}catch(e){console.error("Error updating estates configuration:",e);const n=e instanceof Error?e.message:"Failed to update estates configuration";f(`Error: ${n}`,"danger")}else f("No data to update","warning")},[o,l,f,u,v]),k=(0,g.useCallback)(e=>{t(e),p(e.api),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:t,sortModel:i,filterModel:l}=e.request,r=await a({variables:{accountId:n,offset:t||0,limit:rG.paginationPageSize,sort:wn(i),filters:jn(l)}});if(!r.data?.getEstatesConfiguration)throw new Error("Failed to fetch estates configuration");const{rows:o,totalRows:s}=r.data.getEstatesConfiguration;e.success({rowData:o,rowCount:s})}catch(n){console.error("Error fetching estates configuration:",n),e.fail()}}})},[a,n,t]),S={action:e=>(0,fe.jsx)(iG,{...e,onEditClick:x,onDeleteClick:T})};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(lG,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{...rG,columnDefs:[{headerName:"Location",field:"locationName",sortable:!0,filter:"agTextColumnFilter",flex:1},{headerName:"Forecast Year",field:"forecastYear",sortable:!0,filter:"agTextColumnFilter",width:150},{headerName:"Actions",field:"actions",sortable:!1,filter:!1,width:120,cellRenderer:"action"}],components:S,onGridReady:k})}),m&&(0,fe.jsx)(vC.A,{ref:h,licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:m,style:{display:"none"},settings:{...DC.settings,importIdentifier:"EditEstatesConfiguration",title:"Edit Estates Configuration",uploadStep:{...DC.settings.uploadStep,helpText:"Edit the estates configuration data below and click Submit to save changes."},manualInputDisabled:!1,initialData:o?[o]:[]},fields:y,onResults:C,onCancel:v}),(0,fe.jsx)(GS,{open:Boolean(d),title:"Delete Estates Configuration",body:"Are you sure you want to delete this estates configuration? This action cannot be undone.",confirmButtonText:"Delete",closeButtonText:"Cancel",onConfirm:b,onClose:()=>c(null)})]})}const sG=S.J1`
  mutation CreateEstatesConfiguration($input: CreateEstatesConfigurationInput!) {
    createEstatesConfiguration(input: $input)
  }
`,dG=t.p+"estates-configuration-template-238da9bb756d638ef399.xlsx",cG=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  height: 100%;
`,uG=(0,f.styled)("div")`
  flex: 1;
  min-height: 0;
  padding: 0 16px;
`,pG=(0,f.styled)("div")`
  padding: 16px;
  flex: 0 0 auto;
`,mG=(0,f.styled)("div")`
  margin-left: auto;
`,fG=$u(function(e){let{permissions:n,accountId:t}=e;const a=Je(),[i,l]=(0,g.useState)({id:t||a}),[r,o]=(0,g.useState)(null),s=(0,C.m)(),d=i.id||a,c=(Vr(d),Yo()),{showNotification:u}=tn(),[p]=(0,ln.n)(sG),m=nG(d),f=[De("REACT_APP_BASE_URL"),dG].join(""),y=(0,g.useMemo)(()=>c?{id:c.id,name:Wi(c)}:null,[c]),h=(0,g.useCallback)(e=>{l({id:e})},[]),x=(0,g.useCallback)(e=>{o(e.api)},[]),T=(0,g.useCallback)(async e=>{try{const n=e.map(e=>{const n={accountId:d,...e};return function(e){tG.forEach(n=>{if(void 0!==e[n]&&null!==e[n]&&""!==e[n]){const t=parseFloat(e[n]);isNaN(t)?e[n]=null:e[n]=t}else""===e[n]&&(e[n]=null)})}(n),p({variables:{input:n}})});await Promise.all(n),u("Successfully created estates configuration records","success"),s.refetchQueries({include:[HV]}).then(()=>{r&&r.refreshServerSide({purge:!0})})}catch(e){const n=e instanceof Error?e.message:"Failed to create estates configuration data";u(`Error: ${n}`,"danger")}},[d,p,u,r,s]);return(0,fe.jsxs)(cG,{children:[(0,fe.jsx)(gu,{name:"ConfigurationEstatesContainer__Controls",icon:"building",iconColor:"primary",title:"Estates Configuration",children:(0,fe.jsx)(mG,{children:y&&(0,fe.jsx)(vC.A,{licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:y,style:DC.style,settings:{...DC.settings,importIdentifier:"EstatesConfiguration",uploadStep:{...DC.settings.uploadStep,helpText:SC(f)},manualInputDisabled:!1},fields:m,onResults:T,bulkRowHooks:[e=>e],children:"Upload Estates Configuration"})})}),n.account.includes("getAll")&&(0,fe.jsx)(pG,{children:(0,fe.jsx)(wu,{value:i.id,onChange:h})}),(0,fe.jsx)(uG,{children:(0,fe.jsx)(oG,{accountId:i.id,onGridReady:x})})]})}),yG=S.J1`
  mutation ImportOilProducingAssets($oilProducingAssets: [OilProducingAssetInput!]!, $accountId: ID!) {
    importOilProducingAssets(oilProducingAssets: $oilProducingAssets, accountId: $accountId) {
      created
      updated
      deleted
    }
  }
`,gG=S.J1`
  mutation UpdateOilProducingAsset($id: ID!, $accountId: ID!, $input: UpdateOilProducingAssetInput!) {
    updateOilProducingAsset(id: $id, accountId: $accountId, input: $input)
  }
`,hG=S.J1`
  query GetOilProducingAssetsPage(
    $accountId: ID!
    $page: Int!
    $pageSize: Int!
    $sortBy: String
    $sortOrder: String
    $filters: Filters
  ) {
    getOilProducingAssetsPage(
      accountId: $accountId
      page: $page
      pageSize: $pageSize
      sortBy: $sortBy
      sortOrder: $sortOrder
      filters: $filters
    ) {
      items {
        id
        locationId
        countryName
        field
        operation
        jointVenture
        equityShare
        fuelGasConsumption
        flaredGas
        liquidFuelCombustion
        fugitiveEmissions
        releaseValves
        platforms
        products
        notes
        createdAt
        updatedAt
        createdBy
        updatedBy
        location {
          id
          name
        }
      }
      totalCount
      page
      pageSize
    }
  }
`,xG=(0,f.styled)("div")`
  margin-bottom: 16px;
`,TG=(0,f.styled)(f.Text)`
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
`,bG=(0,f.styled)(f.Text)`
  display: block;
`,vG=(0,f.styled)("div")`
  display: flex;
  gap: 16px;
  margin-top: 32px;
`;function CG(e){let{asset:n,accountId:t,onDismiss:a,onComplete:i}=e;const[l]=(0,ln.n)(gG),{showNotification:r}=tn(),[o,s]=(0,g.useState)({field:n.field,operation:n.operation,products:n.products,jointVenture:n.jointVenture,equityShare:n.equityShare,fuelGasConsumption:n.fuelGasConsumption,flaredGas:n.flaredGas,liquidFuelCombustion:n.liquidFuelCombustion,fugitiveEmissions:n.fugitiveEmissions,releaseValves:n.releaseValves,platforms:n.platforms,notes:n.notes||""}),[d,c]=(0,g.useState)({});return(0,fe.jsx)(f.Modal,{open:!0,onClose:a,title:"Edit Oil Producing Asset",children:(0,fe.jsxs)(f.Grid,{container:!0,spacing:3,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsxs)(xG,{children:[(0,fe.jsx)(TG,{typescale:"label",size:"large",children:"Location"}),(0,fe.jsx)(bG,{typescale:"body",size:"medium",children:n.location?.name})]})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{fullWidth:!0,label:"Field",value:o.field,onChange:e=>s({...o,field:e.target.value}),error:!!d.field,helperText:d.field})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Select,{fullWidth:!0,label:"Operation",value:o.operation,onChange:e=>{let{value:n}=e;return s({...o,operation:n})},error:!!d.operation,helperText:d.operation,options:[{value:"OWNER_OPERATED",label:"Owner Operated"},{value:"THIRD_PARTY",label:"Third Party"}]})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Select,{fullWidth:!0,label:"Products",value:o.products,onChange:e=>{let{value:n}=e;return s({...o,products:n})},error:!!d.products,helperText:d.products,options:[{value:"OIL",label:"Oil"},{value:"OIL_GAS",label:"Oil & Gas"}]})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Checkbox,{label:"Joint Venture",checked:o.jointVenture,onChange:e=>s({...o,jointVenture:e.target.checked})})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{fullWidth:!0,label:"Equity Share (%)",type:"number",value:o.equityShare.toString(),onChange:e=>s({...o,equityShare:parseFloat(e.target.value)||0}),error:!!d.equityShare,helperText:d.equityShare,slotProps:{htmlInput:{min:0,max:100,step:.01}}})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Checkbox,{label:"Fuel Gas Consumption",checked:o.fuelGasConsumption,onChange:e=>s({...o,fuelGasConsumption:e.target.checked})})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Checkbox,{label:"Flared Gas",checked:o.flaredGas,onChange:e=>s({...o,flaredGas:e.target.checked})})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Checkbox,{label:"Liquid Fuel Combustion",checked:o.liquidFuelCombustion,onChange:e=>s({...o,liquidFuelCombustion:e.target.checked})})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Checkbox,{label:"Fugitive Emissions",checked:o.fugitiveEmissions,onChange:e=>s({...o,fugitiveEmissions:e.target.checked})})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{fullWidth:!0,label:"Release Valves",type:"number",value:o.releaseValves.toString(),onChange:e=>s({...o,releaseValves:parseInt(e.target.value)||0}),error:!!d.releaseValves,helperText:d.releaseValves,slotProps:{htmlInput:{min:0,step:1}}})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{fullWidth:!0,label:"Platforms",type:"number",value:o.platforms.toString(),onChange:e=>s({...o,platforms:parseInt(e.target.value)||0}),error:!!d.platforms,helperText:d.platforms,slotProps:{htmlInput:{min:0,step:1}}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextArea,{fullWidth:!0,label:"Notes",value:o.notes,onChange:e=>s({...o,notes:e.target.value}),rows:4})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsxs)(vG,{children:[(0,fe.jsx)(f.Button,{variant:"outlined",onClick:a,fullWidth:!0,children:"Cancel"}),(0,fe.jsx)(f.Button,{variant:"contained",onClick:async()=>{(()=>{const e={};return o.field&&""!==o.field.trim()||(e.field="Field is required"),o.operation||(e.operation="Operation is required"),o.products||(e.products="Products is required"),(o.equityShare<0||o.equityShare>100)&&(e.equityShare="Equity share must be between 0 and 100"),o.releaseValves<0&&(e.releaseValves="Release valves cannot be negative"),o.platforms<0&&(e.platforms="Platforms cannot be negative"),c(e),0===Object.keys(e).length})()&&await l({variables:{id:n.id,accountId:t,input:o},onCompleted:()=>{i(),r("Oil Producing Asset updated successfully","success"),a()},onError:e=>{r(e.message,"danger")}})},fullWidth:!0,children:"Save Changes"})]})})]})})}const kG=le.default.div`
  height: 100%;
`,SG={pagination:!0,paginationPageSize:25,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}};function NG(e){let{accountId:n,onGridReady:t}=e;const[a]=(0,Ul._)(hG,{fetchPolicy:"network-only"}),i=(0,g.useMemo)(()=>[{headerName:"Location",field:"location.name",filter:"agTextColumnFilter",sortable:!0},{headerName:"Country",field:"countryName",filter:"agTextColumnFilter",sortable:!0},{headerName:"Field",field:"field",filter:"agTextColumnFilter",sortable:!0},{headerName:"Operation",field:"operation",filter:"agTextColumnFilter",sortable:!0},{headerName:"Joint Venture",field:"jointVenture",filter:"agBooleanColumnFilter",sortable:!0,valueFormatter:e=>e.value?"Yes":"No"},{headerName:"Equity Share (%)",field:"equityShare",filter:"agNumberColumnFilter",sortable:!0,valueFormatter:e=>null==e.value?"":`${e.value.toFixed(2)}%`},{headerName:"Fuel Gas Consumption",field:"fuelGasConsumption",filter:"agBooleanColumnFilter",sortable:!0,valueFormatter:e=>e.value?"Yes":"No"},{headerName:"Flared Gas",field:"flaredGas",filter:"agBooleanColumnFilter",sortable:!0,valueFormatter:e=>e.value?"Yes":"No"},{headerName:"Liquid Fuel Combustion",field:"liquidFuelCombustion",filter:"agBooleanColumnFilter",sortable:!0,valueFormatter:e=>e.value?"Yes":"No"},{headerName:"Fugitive Emissions",field:"fugitiveEmissions",filter:"agBooleanColumnFilter",sortable:!0,valueFormatter:e=>e.value?"Yes":"No"},{headerName:"Release Valves",field:"releaseValves",filter:"agNumberColumnFilter",sortable:!0},{headerName:"Platforms",field:"platforms",filter:"agNumberColumnFilter",sortable:!0},{headerName:"Products",field:"products",filter:"agTextColumnFilter",sortable:!0},{headerName:"Notes",field:"notes",filter:"agTextColumnFilter",sortable:!0,cellRenderer:"agTextCellRenderer",cellRendererParams:{maxLength:50}},{headerName:"Created At",field:"createdAt",filter:"agDateColumnFilter",sortable:!0,valueFormatter:_n},{headerName:"Updated At",field:"updatedAt",filter:"agDateColumnFilter",sortable:!0,valueFormatter:_n},{headerName:"Actions",cellRenderer:"editCell",filter:!1,sortable:!1,maxWidth:100}],[]),[l,r]=(0,g.useState)(null),[o,s]=(0,g.useState)(null),d={editCell:e=>(0,fe.jsx)(mA,{...e,onEdit:(e,n)=>{r(n)}})},c=(0,g.useCallback)(e=>{t(e),s(e.api),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:t,sortModel:i,filterModel:l}=e.request,r=await a({variables:{accountId:n,page:Math.floor((t||0)/SG.paginationPageSize)+1,pageSize:SG.paginationPageSize,sortBy:i?.[0]?.colId,sortOrder:i?.[0]?.sort,filters:jn(l)}});if(!r.data?.getOilProducingAssetsPage)throw new Error("Failed to fetch oil producing assets");const{items:o,totalCount:s}=r.data.getOilProducingAssetsPage;e.success({rowData:o,rowCount:s})}catch(n){console.error("Error fetching oil producing assets:",n),e.fail()}}})},[a,n,t]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(kG,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{...SG,columnDefs:i,onGridReady:c,components:d})}),l&&(0,fe.jsx)(CG,{asset:l,accountId:n,onComplete:()=>{r(null),o&&o.refreshServerSide({purge:!0})},onDismiss:()=>r(null)})]})}const AG=JSON.parse('{"OA":[{"key":"locationId","label":"Location","type":"select","validators":[{"validate":"required"}],"description":"Select the location for this asset data. Only one asset record per location is allowed."},{"key":"field","label":"Field","type":"string","validators":[{"validate":"required"}],"description":"Which field does this site / activity support?"},{"key":"operation","label":"Operation","type":"select","validators":[{"validate":"required"}],"description":"Is this site / activity owner operated or a service provided by a third-party?"},{"key":"jointVenture","label":"Joint Venture","type":"checkbox","description":"Is this a joint venture?"},{"key":"equityShare","label":"Equity Share (%)","type":"number","min":0,"max":100,"validators":[{"validate":"required"}],"description":"Enter equity share percentage (0-100)"},{"key":"fuelGasConsumption","label":"Fuel Gas Consumption","type":"checkbox","description":"Please select the emission sources relevant to this site / activity"},{"key":"flaredGas","label":"Flared Gas","type":"checkbox","description":"Please select the emission sources relevant to this site / activity"},{"key":"liquidFuelCombustion","label":"Liquid Fuel Combustion","type":"checkbox","description":"Please select the emission sources relevant to this site / activity"},{"key":"fugitiveEmissions","label":"Fugitive Emissions","type":"checkbox","description":"Please select the emission sources relevant to this site / activity"},{"key":"releaseValves","label":"Release Valves","type":"number","min":0,"default":0,"validators":[{"validate":"required"}],"description":"If the site is a production platform or FPSO, please supply details on the number of Pressure Relief Valves / Safety Relief Valves"},{"key":"platforms","label":"Platforms","type":"number","min":0,"default":0,"validators":[{"validate":"required"}],"description":"If the location is a field which aggregates a number of platforms, please input the number of platforms"},{"key":"products","label":"Products","type":"select","validators":[{"validate":"required"}],"description":"Which products are sent to the market for sale?"},{"key":"notes","label":"Notes","type":"string","description":"Additional notes (optional)"}],"W0":{"importIdentifier":"locationAssetData","allowCustomFields":false,"invalidDataBehavior":"BLOCK_SUBMIT","backendSyncMode":"FULL_DATA","autoMapHeaders":true,"manualInputDisabled":false,"displayEncoding":false,"matchValuesStep":{"maxMappableSelectValues":1000},"uploadStep":{"helpText":"Please click the link to download a template for this upload, including a separate tab for guidance. Note: Only one asset record is allowed per location. If a location already has asset data, it will be updated."},"reviewStep":{"processingText":"We\'re currently processing your data upload now and hope to be complete shortly","enableUserTransformations":true}},"iF":{"backgroundColor":"#0094c9","borderColor":"#0094c9","borderRadius":"32px","borderStyle":"solid","borderWidth":"1px","boxSizing":"border-box","color":"#ffffff","cursor":"pointer","display":"inline-block","fontFamily":"\\"Proxima Nova\\", Helvetica, Arial, sans-serif","fontSize":"16px","fontWeight":400,"lineHeight":"1.4em","marginLeft":"16px","opacity":1,"padding":"16px 24px","textAlign":"center","textDecoration":"none","width":"auto"}}'),RG=t.p+"oil-producing-asset-template-ff3e531a40f89139004b.xlsx",DG=[De("REACT_APP_BASE_URL"),RG].join("");function LG(e){let{onCompleted:n}=e;const t=zo(),a=Je(),i=Yo(),l=Jo(),{showNotification:r}=tn(),[o]=(0,ln.n)(yG),s=(0,g.useCallback)(async e=>{const t=function(e){const n=[];return e.forEach((e,t)=>{const a=function(e,n){const t=[];return e.locationId||t.push({row:n+1,field:"locationId",message:"Location is required"}),e.field&&""!==e.field.trim()||t.push({row:n+1,field:"field",message:"Field is required"}),e.operation?["OWNER_OPERATED","THIRD_PARTY"].includes(e.operation)||t.push({row:n+1,field:"operation",message:'Operation must be either "OWNER_OPERATED" or "THIRD_PARTY"'}):t.push({row:n+1,field:"operation",message:"Operation is required"}),void 0!==e.jointVenture&&null!==e.jointVenture||t.push({row:n+1,field:"jointVenture",message:"Joint venture is required"}),void 0===e.equityShare||null===e.equityShare?t.push({row:n+1,field:"equityShare",message:"Equity share is required"}):"number"!=typeof e.equityShare?t.push({row:n+1,field:"equityShare",message:"Equity share must be a number"}):(e.equityShare<0||e.equityShare>100)&&t.push({row:n+1,field:"equityShare",message:`Equity share must be between 0 and 100 percent (got ${e.equityShare})`}),void 0!==e.fuelGasConsumption&&null!==e.fuelGasConsumption||t.push({row:n+1,field:"fuelGasConsumption",message:"Fuel gas consumption is required"}),void 0!==e.flaredGas&&null!==e.flaredGas||t.push({row:n+1,field:"flaredGas",message:"Flared gas is required"}),void 0!==e.liquidFuelCombustion&&null!==e.liquidFuelCombustion||t.push({row:n+1,field:"liquidFuelCombustion",message:"Liquid fuel combustion is required"}),void 0!==e.fugitiveEmissions&&null!==e.fugitiveEmissions||t.push({row:n+1,field:"fugitiveEmissions",message:"Fugitive emissions is required"}),void 0===e.releaseValves||null===e.releaseValves?t.push({row:n+1,field:"releaseValves",message:"Release valves is required"}):"number"!=typeof e.releaseValves?t.push({row:n+1,field:"releaseValves",message:"Release valves must be a number"}):e.releaseValves<0&&t.push({row:n+1,field:"releaseValves",message:"Release valves must be 0 or greater"}),void 0===e.platforms||null===e.platforms?t.push({row:n+1,field:"platforms",message:"Platforms is required"}):"number"!=typeof e.platforms?t.push({row:n+1,field:"platforms",message:"Platforms must be a number"}):e.platforms<0&&t.push({row:n+1,field:"platforms",message:"Platforms must be 0 or greater"}),e.products?["OIL","OIL_GAS"].includes(e.products)||t.push({row:n+1,field:"products",message:'Products must be either "OIL" or "OIL_GAS"'}):t.push({row:n+1,field:"products",message:"Products is required"}),void 0!==e.notes&&null!==e.notes&&"string"!=typeof e.notes&&t.push({row:n+1,field:"notes",message:"Notes must be a string"}),t}(e,t);n.push(...a)}),n}(e);if(t.length>0){const e=function(e){if(0===e.length)return"";const n=e.reduce((e,n)=>(e[n.row]||(e[n.row]=[]),e[n.row].push(`${n.field}: ${n.message}`),e),{});return`Validation failed: ${Object.entries(n).map(e=>{let[n,t]=e;return`Row ${n}: ${t.join(", ")}`}).join("; ")}`}(t);return void r(e,"danger")}const i=(0,hn.chunk)(e,500),l={created:0,updated:0,deleted:0,failed:0};for(const e of i){const n=await o({variables:{oilProducingAssets:e,accountId:a}});await new Promise(e=>{setTimeout(()=>{e()},500)}),n.errors?l.failed+=e.length:n.data&&(l.created+=n.data.importOilProducingAssets.created,l.updated+=n.data.importOilProducingAssets.updated,l.deleted+=n.data.importOilProducingAssets.deleted)}const{created:s,updated:d,deleted:c,failed:u}=l;let p=`${s} created, ${d} updated, ${c} deleted`;u>0&&(p+=`, ${u} failed`),r(p),n()},[r,n,o,a]);if(!i)throw new Error("Configuration is not ready");const d={id:i?.id||"",name:Wi(i),email:i?.email,companyId:a,companyName:t?.name},c=(0,g.useMemo)(()=>AG.OA.map(e=>{switch(e.key){case"locationId":return{...e,selectOptions:l.map(e=>({label:e.name,value:e.id}))};case"operation":return{...e,selectOptions:[{label:"Owner Operated",value:"OWNER_OPERATED"},{label:"Third Party",value:"THIRD_PARTY"}]};case"products":return{...e,selectOptions:[{label:"Oil",value:"OIL"},{label:"Oil & Gas",value:"OIL_GAS"}]};default:return e}}),[l]);return(0,fe.jsx)(vC.A,{licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:d,style:{...DC.style,...AG.iF},settings:{...DC.settings,...AG.W0,uploadStep:{...DC.settings.uploadStep,helpText:SC(DG)}},fields:c,onResults:s,children:"+ Upload Oil Producing Assets"})}const IG=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,jG=le.default.div`
  flex: 1;
  min-height: 0;
  padding: 0 ${e=>e.theme.geometry.md.spacing};
`,wG=le.default.div`
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
`,OG=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,EG=$u(function(e){let{permissions:n,accountId:t}=e;const a=Je(),[i,l]=(0,g.useState)({id:t||a}),[r,o]=(0,g.useState)(),s=(0,C.m)(),d=(()=>{const[e]=(0,Ul._)(hG);return async n=>{const t=n.offset?Math.floor(n.offset/(n.limit||25))+1:1,a=n.limit||25,{data:i}=await e({variables:{accountId:n.accountId,page:t,pageSize:a,sortBy:n.sort?.[0]?.field,sortOrder:n.sort?.[0]?.order,filters:n.filters}});return{rows:i?.getOilProducingAssetsPage?.items||[],totalRows:i?.getOilProducingAssetsPage?.totalCount||0}}})(),c=(0,g.useCallback)(e=>{o(e)},[]),u=(0,g.useCallback)(()=>{console.log("handleUploadCompleted called, refetching data..."),s.refetchQueries({include:[hG]}).then(()=>{r?.api&&r.api.refreshServerSide({purge:!0})})},[s,r?.api]);return(0,fe.jsxs)(IG,{children:[(0,fe.jsx)(gu,{name:"ConfigurationOilProducingAssetContainer__Controls",icon:"map-marker-alt",iconColor:"primary",title:"Oil Producing Assets",children:(0,fe.jsxs)(wG,{children:[(0,fe.jsx)(Mx,{fetchRows:d,gridApi:r?.api,defaultExportFileName:"oil-producing-asset-data",columnsToSkip:["Actions"],label:"Export Oil Producing Assets"}),(0,fe.jsx)(LG,{onCompleted:u})]})}),n.account.includes("getAll")&&(0,fe.jsx)(OG,{children:(0,fe.jsx)(wu,{value:i.id,onChange:e=>{l({id:e.id})}})}),(0,fe.jsx)(jG,{children:(0,fe.jsx)(NG,{accountId:i.id,onGridReady:c})})]})}),_G=e=>{let{fetchRows:n}=e;const t=qr({autoFit:!0}),[a,i]=(0,g.useState)(null),l={async getRows(e){try{const t=await n();e.success({rowData:t,rowCount:t.length})}catch(n){e.fail(),i(n),E.Cp(n)}}};return a?(0,fe.jsx)($c,{error:a,name:a.message,retry:async()=>{await n(),i(null)}}):(0,fe.jsx)(Pg,{gridOptions:{pagination:!0,paginationPageSize:25,paginationPageSizeSelector:!1,rowModelType:"serverSide",defaultColDef:{sortable:!1,resizable:!0,filter:!1,autoHeight:!0,filterParams:{showTooltip:!0}},columnDefs:[{headerName:"Factor Name",field:"factorName"},{headerName:"Unit From",field:"unitFrom"},{headerName:"Unit To",field:"unitTo"},{headerName:"Factor Value",field:"factorValue"}],rowStyle:{width:"100%",display:"flex",alignItems:"center"},rowHeight:58},paginationPageSize:25,cacheBlockSize:25,onFirstDataRendered:t.onFirstDataRendered,onFilterChanged:t.onFilterChanged,onSortChanged:t.onSortChanged,onColumnVisible:t.onSaveGridColumnState,onColumnPinned:t.onSaveGridColumnState,onColumnResized:t.onSaveGridColumnState,onColumnMoved:t.onSaveGridColumnState,onColumnRowGroupChanged:t.onSaveGridColumnState,onColumnValueChanged:t.onSaveGridColumnState,onColumnPivotChanged:t.onSaveGridColumnState,onGridReady:e=>{t.onGridReady(e),e.api.setServerSideDatasource(l)}})},FG=S.J1`
  query GetApiConversionFactors {
    getApiConversionFactors {
      id
      factorName
      unitFrom
      unitTo
      factorValue
      source
    }
  }
`,PG=(0,le.default)(gu)`
  & > div {
    width: auto;
  }
`;function BG(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async()=>{try{const{data:n}=await e.query({query:FG});return n.getApiConversionFactors}catch(e){return n("Error fetching API Conversion Factors","danger"),[]}},[e,n]);return(0,fe.jsxs)(ie.fv,{name:"ConfigurationApiConversionFactorsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(PG,{name:"ConfigurationApiConversionFactorsContainer__Controls",icon:"calculator",iconColor:"primary",title:"API Conversion Factors"}),(0,fe.jsx)(_G,{fetchRows:t})]})}const UG={pagination:!0,paginationPageSize:25,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}},$G=e=>{let{fetchRows:n}=e;const[t,a]=(0,g.useState)(null),i=(0,g.useMemo)(()=>[{headerName:"ID",field:"id",hide:!0},{headerName:"Activity",filter:"agTextColumnFilter",field:"activity",width:300},{headerName:"Value",filter:"agNumberColumnFilter",field:"value",width:150,valueFormatter:e=>null===e.value||void 0===e.value?"":Number(e.value).toFixed(6)},{headerName:"Asset",filter:"agTextColumnFilter",field:"asset",width:200,valueFormatter:e=>e.value&&e.value.name?e.value.name:"N/A"}],[]),l=(0,g.useCallback)(e=>{e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const t=await n();e.success({rowData:t,rowCount:t.length})}catch(n){console.error("Error fetching uncertainties background:",n),a(n),E.Cp(n),e.fail()}}})},[n]);if(t)return(0,fe.jsx)($c,{error:t});const r={...UG,columnDefs:i,onGridReady:l};return(0,fe.jsx)("div",{className:"ag-theme-alpine",style:{height:"100%",width:"100%"},children:(0,fe.jsx)(f.AgGrid,{gridKey:"uncertainties-background",gridOptions:r})})},MG=S.J1`
  query GetUncertaintiesBackground {
    getUncertaintiesBackground {
      id
      activity
      value
      asset {
        id
        name
      }
    }
  }
`,VG=le.default.div`
  flex: 1;
  min-height: 0;
  padding: 0 ${e=>e.theme.geometry.md.spacing};
`;function GG(){const e=(0,C.m)(),{showNotification:n}=tn(),t=(0,g.useCallback)(async()=>{try{const{data:n}=await e.query({query:MG});return n.getUncertaintiesBackground}catch(e){return n("Error fetching Uncertainties Background data","danger"),[]}},[e,n]);return(0,fe.jsx)(f.Page,{title:{content:(0,fe.jsx)(gu,{name:"ConfigurationUncertaintiesBackgroundContainer__Controls",icon:"chart-line",iconColor:"primary",title:"Uncertainties Background"})},children:(0,fe.jsx)(VG,{children:(0,fe.jsx)($G,{fetchRows:t})})})}const zG=S.J1`
  query GetLiquidFuelEmissionFactors {
    getLiquidFuelEmissionFactors {
      fuelType
      unit
      totalKgCO2ePerUnit
      kgCO2eOfCO2PerUnit
      kgCO2eOfCH4PerUnit
      kgCO2eOfN2OPerUnit
      kgCH4PerUnit
      kgN2OPerUnit
    }
  }
`,WG=(0,f.styled)("div")`
  min-height: 350px;
`,qG=(0,f.styled)(f.AgGrid)`
  flex: 1;
  height: calc(100vh - 240px);
`,JG=(0,f.styled)("div")`
  display: flex;
  justify-content: center;
  align-items: center;
`;function YG(){const{data:e,loading:n,error:t}=(0,x.IT)(zG),a=(0,g.useMemo)(()=>e?.getLiquidFuelEmissionFactors||[],[e]),i=(0,g.useMemo)(()=>({rowData:a,pagination:!1,defaultColDef:{sortable:!0,resizable:!0,filter:!0},columnDefs:[{headerName:"Fuel Type",filter:"agTextColumnFilter",field:"fuelType"},{headerName:"Unit",filter:"agTextColumnFilter",field:"unit"},{headerName:"Total kg CO2e per Unit",filter:"agNumberColumnFilter",field:"totalKgCO2ePerUnit"},{headerName:"kg CO2e of CO2 per Unit",filter:"agNumberColumnFilter",field:"kgCO2eOfCO2PerUnit"},{headerName:"kg CO2e of CH4 per Unit",filter:"agNumberColumnFilter",field:"kgCO2eOfCH4PerUnit"},{headerName:"kg CO2e of N2O per Unit",filter:"agNumberColumnFilter",field:"kgCO2eOfN2OPerUnit"},{headerName:"kg CH4 per Unit",filter:"agNumberColumnFilter",field:"kgCH4PerUnit"},{headerName:"kg N2O per Unit",filter:"agNumberColumnFilter",field:"kgN2OPerUnit"}]}),[a]);return n||0===a.length?(0,fe.jsx)(JG,{children:(0,fe.jsx)(f.Loader,{})}):t?(0,fe.jsx)(JG,{children:(0,fe.jsx)(f.LoadFailed,{error:t})}):(0,fe.jsxs)(ie.fv,{name:"ConfigurationLiquidFuelConversionFactorsContainer",container:!0,fullHeight:!0,children:[(0,fe.jsx)(gu,{name:"ConfigurationLiquidFuelConversionFactorsContainer__Controls",icon:"calculator",iconColor:"primary",title:"Liquid Fuel Conversion Factors"}),(0,fe.jsx)(WG,{children:(0,fe.jsx)(qG,{gridOptions:i,gridKey:"ConfigurationLiquidFuelConversionFactorsContainer"})})]})}const HG={rowModelType:"serverSide",pagination:!0,paginationPageSize:25,paginationPageSizeSelector:[25,50,100],autoSizeStrategy:{type:"fitGridWidth"}};function KG(e){let{columnDefs:n,serverSideDatasource:t}=e;return(0,g.useMemo)(()=>({...HG,columnDefs:n,serverSideDatasource:t}),[n,t])}function QG(e,n){const[t]=ed(e,{notifyOnNetworkStatusChange:!0,fetchPolicy:"network-only"});return(0,g.useCallback)(async e=>{const{error:a,data:i}=await t({variables:e});if(a||!i)throw a||new Error("No data returned from query");return i[n]},[t,n])}function ZG(e,n){const t=Je(),a=QG(e,n);return(0,g.useMemo)(()=>({async getRows(e){const{startRow:n=0,endRow:i=25,sortModel:l,filterModel:r}=e.request;try{const o=await a({accountId:t,offset:n,limit:i-n,sort:wn(l),filters:jn(r)}),{rows:s,totalRows:d}=o;e.success({rowData:s,rowCount:d})}catch(n){e.fail(),E.Cp(n)}}}),[a,t])}const XG=S.J1`
  fragment UserAccessPolicyFields on UserAccessPolicy {
    id
    name
    accountId
    effect
    resourceType
    resources
    createdAt
    lastUpdatedAt
  }
`,ez=S.J1`
  query GetUserAccessPoliciesPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getUserAccessPoliciesPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        ...UserAccessPolicyFields
      }
      totalRows
    }
  }
  ${XG}
`,nz=S.J1`
  mutation CreateUserAccessPolicy($accountId: ID!, $input: UserAccessPolicyInput!) {
    createUserAccessPolicy(accountId: $accountId, input: $input) {
      ...UserAccessPolicyFields
    }
  }
  ${XG}
`,tz=S.J1`
  mutation UpdateUserAccessPolicy($accountId: ID!, $id: ID!, $input: UserAccessPolicyInput!) {
    updateUserAccessPolicy(accountId: $accountId, id: $id, input: $input) {
      ...UserAccessPolicyFields
    }
  }
  ${XG}
`,az=S.J1`
  mutation DeleteUserAccessPolicy($accountId: ID!, $id: ID!) {
    deleteUserAccessPolicy(accountId: $accountId, id: $id)
  }
`,iz=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  gap: 8px;
`;function lz(e){let{data:n,onEditClick:t,onDeleteClick:a}=e;const i=(0,g.useCallback)(()=>{t(n)},[t,n]),l=(0,g.useCallback)(()=>{a(n)},[a,n]);return(0,fe.jsxs)(iz,{children:[(0,fe.jsx)(f.IconButton,{children:(0,fe.jsx)(f.Icons.Edit,{onClick:i})}),(0,fe.jsx)(f.IconButton,{children:(0,fe.jsx)(f.Icons.Delete,{onClick:l})})]})}const rz={[gn.BL.Allow]:"Allow",[gn.BL.Deny]:"Deny"},oz={[gn.M6.OrganisationalUnit]:"Organisational unit",[gn.M6.Tag]:"Tag",[gn.M6.Location]:"Location"},sz=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  gap: 8px;
`,dz=(0,f.styled)(f.AgGrid)`
  height: calc(100vh - 216px); // header + page title height;
  padding-bottom: 2px; // border bottom and shadow to show properly
`;function cz(e){let{gridRef:n,onCreateClick:t,allowManage:a}=e;return(0,fe.jsxs)(sz,{children:[(0,fe.jsx)(jS,{filtersApplied:n.current?.filtersApplied,resetGridState:n.current?.resetGridState}),a&&(0,fe.jsx)(Vx.A,{title:"Create new access policy",children:(0,fe.jsx)(f.IconButton,{color:"primary",variant:"contained",onClick:t,children:(0,fe.jsx)(f.Icons.Add,{})})})]})}const uz=S.J1`
  query GetOrganisationalUnitOptions(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getOrganisationalUnitsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        value: id
        label: name
      }
      totalRows
    }
  }
`;const pz=e=>{let{value:n,onChange:t,error:a,defaultOptions:i,disabled:l}=e;const{loading:r,options:o}=function(){const e=Je(),[n,t]=(0,g.useState)([]),[a,i]=(0,g.useState)(!1),l=(0,g.useRef)(0),[r]=(0,Ul._)(uz,{notifyOnNetworkStatusChange:!0});return(0,g.useEffect)(()=>{(async()=>{i(!0);const n=[],a=await r({variables:{accountId:e,sort:[{field:"name",order:"asc"}],offset:l.current,limit:St}});if(!a?.data?.getOrganisationalUnitsPage)return;const o=a.data.getOrganisationalUnitsPage.totalRows??0;for(n.push(...a.data.getOrganisationalUnitsPage.rows);n.length<o&&l.current<=o;){const t=await r({variables:{accountId:e,offset:l.current,sort:[{field:"name",order:"asc"}],limit:St}});if(!t?.data?.getOrganisationalUnitsPage?.rows)return;n.push(...t.data.getOrganisationalUnitsPage.rows),l.current+=St}t(n),i(!1)})()},[]),(0,g.useMemo)(()=>({options:n,loading:a}),[n,a])}();return(0,fe.jsx)(f.AutoComplete,{isMulti:!0,label:"Select your organisational unit(s)",options:o,onChange:t,isLoading:r,error:a?.toString(),value:n,defaultValue:Array.isArray(i)?i:[],disabled:l,placeholder:"Start typing to search for an organisational unit"})},mz={name:"",effect:gn.BL.Allow,resourceType:gn.M6.OrganisationalUnit,resources:[]};function fz(e){let{onSubmit:n,defaultValues:t,disabled:a}=e;const i=Je(),[l,r]=(0,g.useState)(t||mz),[o,s]=(0,g.useState)({}),d=(0,g.useCallback)(e=>{r(n=>({...n,[e.target.name]:e.target.value}))},[]),c=e=>n=>{r(t=>({...t,[e]:Array.isArray(n)?n.map(e=>e.value):n.value}))},u=(0,g.useMemo)(()=>Object.entries(rz).map(e=>{let[n,t]=e;return{value:n,label:t}}),[]),p=(0,g.useMemo)(()=>Object.entries(oz).map(e=>{let[n,t]=e;return{value:n,label:t}}),[]),m=(0,g.useCallback)(()=>{const e={};l.name||(e.name="Name is required"),l.effect||(e.effect="Allow / deny is required"),l.resourceType||(e.resourceType="Resource type is required"),l.resources.length||(e.resources="At least one resource has to be selected"),0===Object.keys(e).length?n(l):s(e)},[l,n]);return(0,fe.jsxs)(f.Grid,{container:!0,direction:"column",justifyContent:"space-between",gap:2,children:[(0,fe.jsx)(f.TextField,{label:"Name",name:"name",value:l.name,onChange:d,error:!!o.name,disabled:a}),(0,fe.jsx)(f.Select,{label:"Allow / deny",name:"effect",value:l.effect,options:u,onChange:c("effect"),disabled:a,error:!!o.effect}),(0,fe.jsx)(f.Select,{label:"Resource type",name:"resourceType",options:p,value:l.resourceType,onChange:c("resourceType"),disabled:a,error:!!o.resourceType}),l.resourceType===gn.M6.Location&&(0,fe.jsx)(Uj,{value:l.resources,onChange:c("resources"),error:o.resources,disabled:a}),l.resourceType===gn.M6.Tag&&(0,fe.jsx)(zj,{accountId:i,value:l.resources,onChange:c("resources"),disabled:a,error:o.resources}),l.resourceType===gn.M6.OrganisationalUnit&&(0,fe.jsx)(pz,{value:l.resources,defaultOptions:l.resources,onChange:c("resources"),disabled:a,error:o.resources}),(0,fe.jsx)(f.Button,{variant:"contained",color:"primary",onClick:m,disabled:a,children:"Submit"})]})}function yz(e){let{open:n,onClose:t,onCompleted:a,onError:i}=e;const[l,{loading:r}]=(0,ln.n)(nz),o=Je(),s=(0,g.useCallback)(e=>{l({onCompleted:()=>{a()},onError:e=>{i(e)},variables:{input:e,accountId:o}})},[l,a,o,i]);return(0,fe.jsx)(f.Modal,{title:"Configure your new access policy",open:n,onClose:t,children:(0,fe.jsx)(fz,{onSubmit:s,disabled:r})})}function gz(e){let{open:n,policy:t,onClose:a,onCompleted:i,onError:l}=e;const[r,{loading:o}]=(0,ln.n)(tz),s=Je(),d=(0,g.useCallback)(e=>{t&&r({onCompleted:()=>{i()},onError:e=>{l(e)},variables:{id:t.id,input:e,accountId:s}})},[r,s,t,i,l]),c=(0,g.useMemo)(()=>{if(t)return{name:t.name,effect:t.effect,resourceType:t.resourceType,resources:t.resources}},[t]);return(0,fe.jsx)(f.Modal,{title:"Update your access policy",open:n,onClose:a,children:(0,fe.jsx)(fz,{onSubmit:d,defaultValues:c,disabled:o})})}function hz(){const e=ec("data"),n=ec("user");return{get canGetOrganisationalUnit(){return e("getOrganisationalUnit")},get canCreateOrganisationalUnit(){return e("createOrganisationalUnit")},get canGetOrganisationalHierarchy(){return e("getOrganisationalHierarchy")},get canCreateOrganisationalHierarchy(){return e("createOrganisationalHierarchy")},get canDeleteOrganisationalHierarchy(){return e("deleteOrganisationalHierarchy")},get canGetOrganisationalUnitLocationAttachment(){return e("getOrganisationalUnitLocationAttachment")},get canCreateOrganisationalUnitLocationAttachment(){return e("createOrganisationalUnitLocationAttachment")},get canDeleteOrganisationalUnitLocationAttachment(){return e("deleteOrganisationalUnitLocationAttachment")},get canGetUserAccessPolicy(){return n("getUserAccessPolicy")},get canManageUserAccessPolicy(){return n("manageUserAccessPolicy")},get canGetUserGroup(){return n("getUserGroup")},get canManageUserGroup(){return n("manageUserGroup")}}}function xz(e){let{policy:n,onClose:t,onCompleted:a,onError:i}=e;const[l,{loading:r}]=(0,ln.n)(az),o=Je(),s=(0,g.useCallback)(()=>{n&&l({onCompleted:()=>{a()},onError:e=>{i(e)},variables:{id:n.id,accountId:o}})},[l,a,i,n,o]);return(0,fe.jsx)(GS,{title:"Delete access policy",body:`Are you sure you want to delete the access policy "${n?.name}"? Policy may be undeletable until it is detached from all user groups.`,closeButtonText:"No, cancel",confirmButtonText:"Yes, delete it",open:!!n,disabled:r,onClose:t,onConfirm:s})}function Tz(){const e=(0,g.useRef)(null),n=Je(),{canManageUserAccessPolicy:t}=hz(),[a,i]=(0,g.useState)(!1),[l,r]=(0,g.useState)(null),[o,s]=(0,g.useState)(null),{showNotification:d}=tn(),c=`${n}_Organisation_AccessPolicies`,u=(e=>{let{onEditClick:n,onDeleteClick:t,allowManage:a}=e;const i=(0,g.useMemo)(()=>{const e=[{headerName:"Name",field:"name",sortable:!0,filter:"agTextColumnFilter"},{headerName:"Effect",field:"effect",sortable:!0,filter:"agTextColumnFilter",valueFormatter:e=>{return n=e.value,rz[n];var n}},{headerName:"Resource type",field:"resourceType",sortable:!0,filter:"agTextColumnFilter",valueFormatter:e=>{return n=e.value,oz[n];var n}},{headerName:"Resources",field:"resources",sortable:!0,filter:"agTextColumnFilter",valueFormatter:e=>e.value.length},{headerName:"Created at",field:"createdAt",sortable:!0,filter:"agTextColumnFilter",valueFormatter:Pn},{headerName:"Last updated at",field:"lastUpdatedAt",sortable:!0,filter:"agTextColumnFilter",valueFormatter:Pn}];return a&&e.push({field:"actions",sortable:!1,filter:!1,resizable:!1,maxWidth:200,cellRenderer:e=>(0,fe.jsx)(lz,{...e,onEditClick:n,onDeleteClick:t})}),e},[a,n,t]);return KG({columnDefs:i,serverSideDatasource:ZG(ez,"getUserAccessPoliciesPage")})})({allowManage:t,onDeleteClick:e=>{r(e)},onEditClick:e=>{s(e)}}),p=(0,g.useCallback)(()=>{i(e=>!e)},[]),m=(0,g.useCallback)(()=>{s(null)},[]),y=(0,g.useCallback)(e=>{console.error(e),d(e.message,"danger")},[d]),h=(0,g.useCallback)(()=>{d("Success","success"),i(!1),s(null),r(null),e.current?.gridApi?.refreshServerSide({purge:!0})},[d,s,i]);return(0,fe.jsxs)(f.Page,{title:{content:"Access policies",actionButton:(0,fe.jsx)(cz,{gridRef:e,onCreateClick:p,allowManage:t})},children:[(0,fe.jsx)(dz,{ref:e,gridKey:c,gridOptions:u}),(0,fe.jsx)(yz,{open:a,onClose:p,onCompleted:h,onError:y}),(0,fe.jsx)(gz,{open:!!o,policy:o,onClose:m,onCompleted:h,onError:y}),(0,fe.jsx)(xz,{policy:l,onClose:()=>r(null),onError:y,onCompleted:h})]})}const bz=S.J1`
  query GetOrganisationalUnitsPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getOrganisationalUnitsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        id
        name
        type
      }
      totalRows
    }
  }
`,vz=S.J1`
  query GetOrganisationalUnitsForValidator($accountId: ID!, $offset: Int, $limit: Int) {
    getOrganisationalUnitsPage(accountId: $accountId, offset: $offset, limit: $limit) {
      rows {
        id
        name
      }
      totalRows
    }
  }
`,Cz=S.J1`
  mutation UpsertOrganisationalUnits($accountId: ID!, $inputs: [UpsertOrganisationalUnitInput!]!) {
    upsertOrganisationalUnits(accountId: $accountId, inputs: $inputs)
  }
`,kz=(0,f.styled)(f.Text)({textAlign:"center",color:"#ba1a1a",width:"100%"}),Sz=pt.organisationalUnits.map(e=>({value:e,label:e})),Nz={"Some organisational units with the provided names already exist":{field:"name",message:"This name is already taken"}};function Az(e){let{data:n,onClose:t}=e;const a=!!n,{handleSubmit:i,control:l,setError:r,formState:{isDirty:o,isValid:s}}=(0,Ng.mN)({defaultValues:{name:n?.name,type:n?.type},mode:"onChange"}),[d,c]=(0,g.useState)(!1),[u,p]=(0,g.useState)(),m=function(){const e=Je(),[n]=(0,ln.n)(Cz);return t=>n({variables:{accountId:e,inputs:[t]}})}(),{showNotification:y}=tn(),h=s&&o&&!d;return(0,fe.jsx)(f.Modal,{open:!0,onClose:()=>t(),title:(a?"Update":"Create")+" an organisational unit",children:(0,fe.jsx)("form",{onSubmit:i(async e=>{c(!0),p(void 0);try{const a={...e,id:n?.id};await m(a),y("Organisational unit saved successfully","success"),t(a)}catch(e){if(!(e instanceof zS.K4))throw e;{const{message:n}=e,t=Nz[n];t?r(t.field,{message:t.message}):p(n)}}finally{c(!1)}}),children:(0,fe.jsxs)(f.Grid,{container:!0,spacing:3,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"name",control:l,rules:{required:"Name is required"},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Name",fullWidth:!0,error:!!t,helperText:t?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"type",control:l,rules:{required:"Type is required"},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(f.Select,{...n,placeholder:"Please select type",fullWidth:!0,options:Sz,error:!!t,helperText:t?.message,onChange:e=>{let{value:t}=e;return n.onChange(t)}})}})}),u&&(0,fe.jsx)(kz,{children:u}),(0,fe.jsxs)(f.Grid,{size:12,container:!0,spacing:2,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,onClick:()=>t(),children:"Close"})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",disabled:!h,children:"Submit"})})]})]})})})}const Rz=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  gap: 8px;
`;function Dz(e){let{data:n,api:t,rowIndex:a}=e;const[i,l]=(0,g.useState)(!1),{canCreateOrganisationalUnit:r}=hz();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Rz,{children:r&&(0,fe.jsx)(f.IconButton,{children:(0,fe.jsx)(f.Icons.Edit,{onClick:()=>l(!0)})})}),i&&(0,fe.jsx)(Az,{data:n,onClose:e=>{l(!1),e&&t.applyServerSideRowData({startRow:a,successParams:{rowData:[e]}})}})]})}function Lz(e,n){let{row:t}=e;for(const[e,a]of Object.entries(n)){const n=t[e];n&&(n.resultValue=a(n.resultValue))}}const Iz=e=>void 0===e||""===e||null===e?null:e,jz=e=>null!=e&&""!==e;function wz(e,n){let{row:t,rowId:a}=e;for(const[e,i]of Object.entries(n)){const n=t[e];if(n&&(n.info=[],jz(n.resultValue))){const e=i(n.resultValue,{row:t,rowId:a});n.info=e?[{message:e,level:"error"}]:[]}}}function Oz(e,n,t){const a=t.get(n);a&&(a.delete(e),0===a.size&&t.delete(n))}const Ez=e=>n=>e.has(n)?null:"No organisational unit was found with this ID",_z=(e,n)=>(t,a)=>{let{row:i,rowId:l}=a;const r=t.toLowerCase(),o=n.get(r);if(o&&o.size>(o.has(l)?1:0))return"This name is already added";const s=e.has(r),d=e.get(r),c=i.id?.resultValue;return!s||"string"==typeof c&&c===d?null:"This name already exists"},Fz=t.p+"organisational-units-template-836a059d8c9fb83efc79.xlsx",Pz=(0,f.styled)("span")`
  height: fit-content;
`;function Bz(e){let{importIdentifier:n,templateUrl:t,fields:a,columnHooks:i,bulkRowHooks:l,rowDeleteHooks:r,tooltip:o,onClick:s,onResults:d,onClose:c,disabled:u}=e;const p=Yo(),m=zo(),y=Xd(),h=(0,g.useRef)(null),x=(0,g.useCallback)(()=>{s?.(),h.current?.open()},[s]),T=(0,g.useCallback)(()=>{c?.(),h.current?.dromo?.close()},[c]),b=(0,g.useCallback)((e,n)=>{d(e,n),T()},[d,T]),v=(0,g.useMemo)(()=>m&&p?{id:p.id,name:Wi(p),email:p.email,companyId:m.id,companyName:m.name}:null,[m,p]),C=!v||!y,k=C||u;if(!v)return null;const{settings:S}=NC,{uploadStep:N}=S,A=t?{helpText:SC(`${De("REACT_APP_BASE_URL")}${t}`)}:{helpText:null};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Vx.A,{title:C?"You don't have permission to upload data":o,children:(0,fe.jsx)(Pz,{children:(0,fe.jsx)(f.IconButton,{variant:"contained",name:"DromoUploaderButton__uploadDataButton",onClick:k?void 0:x,disabled:k,children:(0,fe.jsx)(f.CustomIcons.Upload,{color:"onPrimary"})})})}),(0,fe.jsx)(vC.A,{ref:h,licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:v,settings:{...S,importIdentifier:n,uploadStep:{...N,...A}},style:{display:"none"},onCancel:T,columnHooks:i,onResults:b,bulkRowHooks:l,rowDeleteHooks:r,fields:a})]})}function Uz(e){let{gridApi:n,mutation:t,sanitizers:a,bulkRowHooks:i,rowDeleteHooks:l,validator:r,errorRecognizer:o,tooltip:s,templateUrl:d,formatRow:c,...u}=e;const{importIdentifier:p}=u,m=Je(),{showNotification:f}=tn();return(0,fe.jsx)(Bz,{...u,onResults:async e=>{try{await Promise.all((0,hn.chunk)(e,1e3).map(e=>{const n=a?function(e,n){for(const[t,a]of Object.entries(n))for(const n of e)n[t]=a(n[t]);return e}(e,a):e,i=c?n.map(c):n;return t({variables:{inputs:i,accountId:m}})})),n?.refreshServerSide?.({purge:!0}),f(`${p} have been uploaded!`,"success")}catch(e){if(e instanceof zS.K4&&o?.(e.message))return void f(e.message,"warning");f("Something unexpected happened. Please review your upload document and try again. If the problem persists, please contact support.","danger")}},bulkRowHooks:[r,...i||[]],templateUrl:d,tooltip:s,rowDeleteHooks:[e=>{r([e],"delete")},...l||[]]})}const $z=[{key:"name",type:"string",label:"Name",validators:[{validate:"required"}]},{key:"type",type:"select",label:"Type",validators:[{validate:"required"}],selectOptions:pt.organisationalUnits.map(e=>({label:e,value:e})).sort((e,n)=>e.label.localeCompare(n.label))},{key:"id",type:["uuid",{version:4}],label:"ID"}];function Mz(e){let{gridApi:n}=e;const[t]=(0,ln.n)(Cz),a=function(){const e=Je(),n=Kr({query:vz,request:{accountId:e},response:"getOrganisationalUnitsPage"}),t=new Map,a=new Set,{clearAddedNames:i,handleAddedName:l,removeAddedName:r,indexedNames:o}=function(){const e=new Map,n=new Map,t=t=>{const a=e.get(t);e.delete(t),a&&Oz(t,a,n)};return{indexedNames:n,clearAddedNames:()=>{e.clear(),n.clear()},handleAddedName:a=>{let{row:i,rowId:l}=a;const r=i.name.resultValue;if(jz(r)){const t=e.get(l),a=r.toLowerCase();e.set(l,a),t&&Oz(l,t,n),function(e,n,t){const a=t.get(n)||new Set;a.add(e),t.set(n,a)}(l,a,n)}else t(l)},removeAddedName:e=>{let{rowId:n}=e;return t(n)}}}();return async(e,s)=>{if("init"===s){t.clear(),a.clear(),i();const e=await n();for(const{id:n,name:i}of e)t.set(i.toLowerCase(),n),a.add(n)}for(const n of e)"delete"!==s?(Lz(n,{id:Iz}),wz(n,{id:Ez(a),name:_z(t,o)}),l(n)):r(n);return e}}();return(0,fe.jsx)(Uz,{tooltip:"Bulk upload organisational units",importIdentifier:"Organisational units",gridApi:n,mutation:t,templateUrl:Fz,sanitizers:{id:Iz},validator:a,fields:$z})}function Vz(e){let{gridRef:n}=e;const t=n.current?.gridApi,{canCreateOrganisationalUnit:a}=hz(),i=a&&t,l=QG(bz,"getOrganisationalUnitsPage");return(0,fe.jsxs)(sz,{children:[(0,fe.jsx)(jS,{filtersApplied:n.current?.filtersApplied,resetGridState:n.current?.resetGridState}),t&&(0,fe.jsx)(zx,{fetchRows:l,gridApi:t,defaultExportFileName:"organisational-units",columnsToSkip:["Actions"]}),i&&(0,fe.jsx)(Mz,{gridApi:t})]})}function Gz(){const e=(0,g.useRef)(null),n=KG({columnDefs:(0,g.useMemo)(()=>[{headerName:"ID",field:"id",hide:!0},{headerName:"Name",field:"name",sortable:!0,filter:"agTextColumnFilter"},{headerName:"Type",field:"type",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:pt.organisationalUnits}},{headerName:"Actions",field:"actions",sortable:!1,filter:!1,resizable:!1,maxWidth:200,cellRenderer:e=>(0,fe.jsx)(Dz,{...e})}],[]),serverSideDatasource:ZG(bz,"getOrganisationalUnitsPage")}),t=`${Je()}_Organisation_OrganisationalUnits`;return(0,fe.jsx)(f.Page,{title:{content:"Organisational Units",actionButton:(0,fe.jsx)(Vz,{gridRef:e})},children:(0,fe.jsx)(dz,{ref:e,gridKey:t,gridOptions:n})})}const zz=S.J1`
  query GetOrganisationalHierarchiesPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getOrganisationalHierarchiesPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      rows {
        ancestor {
          id
          name
        }
        descendant {
          id
          name
        }
      }
      totalRows
    }
  }
`,Wz=S.J1`
  mutation InsertOrganisationalHierarchies($accountId: ID!, $inputs: [InsertOrganisationalHierarchyInput!]!) {
    insertOrganisationalHierarchies(accountId: $accountId, inputs: $inputs)
  }
`,qz=S.J1`
  query GetOrganisationalUnitsForHierarchiesUpload($accountId: ID!, $offset: Int, $limit: Int) {
    getOrganisationalUnitsPage(accountId: $accountId, offset: $offset, limit: $limit) {
      rows {
        id
        name
      }
      totalRows
    }
  }
`,Jz=S.J1`
  mutation DeleteOrganisationalHierarchy($accountId: ID!, $ancestorId: ID!, $descendantId: ID!) {
    deleteOrganisationalHierarchy(accountId: $accountId, ancestorId: $ancestorId, descendantId: $descendantId)
  }
`,Yz=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  gap: 2px;
`,Hz=(0,f.styled)("div")`
  width: 36px;
  height: 36px;
`,Kz=(0,f.styled)(f.IconButton)({transform:"scale(0.9)",color:"#1B1B1F"});function Qz(e){let{hint:n,onClick:t,icon:a,disabled:i}=e;return(0,fe.jsx)(Vx.A,{title:n,children:(0,fe.jsx)(Hz,{children:(0,fe.jsx)(Kz,{disabled:i,onClick:t,children:a})})})}function Zz(e){let{buttons:n}=e;return(0,fe.jsx)(Yz,{children:n.map((e,n)=>(0,fe.jsx)(Qz,{...e},n))})}function Xz(e){let{api:n,rowIndex:t,data:a}=e;const[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(!1),s=function(){const e=Je(),[n]=(0,ln.n)(Jz),t=Wd();return async a=>{let{ancestor:i,descendant:l}=a;await n({variables:{accountId:e,ancestorId:i.id,descendantId:l.id}}),t([{fieldName:"getOrganisationalHierarchiesPage"}])}}(),d=[],{canDeleteOrganisationalHierarchy:c}=hz();return c&&d.push({hint:"Delete",onClick:()=>l(!0),icon:(0,fe.jsx)(f.Icons.Delete,{}),disabled:r}),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Zz,{buttons:d}),(0,fe.jsx)(GS,{open:i,onClose:()=>l(!1),onConfirm:async()=>{o(!0);try{await s(a),n.applyServerSideRowData({startRow:t,successParams:{rowData:[null]}})}finally{o(!1)}},title:"Delete organizational hierarchy",body:"This will permanently delete the organizational hierarchy. Do you want to proceed?",confirmButtonText:"Delete"})]})}function eW(e){return{headerName:"Actions",field:"actions",sortable:!1,filter:!1,resizable:!1,maxWidth:200,cellRenderer:e}}const nW=(e,n)=>{let{row:t}=n;return e===t.ancestorId.resultValue?"Descendant must be different than ancestor":null},tW=t.p+"organisational-hierarchies-template-08015504d77c1c8f9c4c.xlsx",aW=e=>e.includes("create a hierarchy exceeding the maximum allowed depth")||e.includes("create a circular hierarchy");function iW(e){let{gridApi:n,data:t}=e;const a=function(){const[e]=(0,ln.n)(Wz),n=Wd();return async t=>{await e(t),n([{fieldName:"getOrganisationalHierarchiesPage"}])}}(),i=(e=>{let{organisationalUnits:n}=e;return(0,g.useMemo)(()=>[{key:"descendantId",type:"select",label:"Unit",validators:[{validate:"required"}],selectOptions:n.map(e=>{let{name:n,id:t}=e;return{label:n,value:t}})},{key:"ancestorId",type:"select",label:"Report to",validators:[{validate:"required"}],selectOptions:n.map(e=>{let{name:n,id:t}=e;return{label:n,value:t}})}],[n])})(t);return(0,fe.jsx)(Uz,{tooltip:"Bulk upload organisational hierarchies",gridApi:n,validator:async(e,n)=>{if(["init","update"].includes(n))for(const n of e)wz(n,{descendantId:nW});return e},mutation:a,importIdentifier:"Organisational hierarchies",fields:i,templateUrl:tW,errorRecognizer:aW})}const lW=(0,f.styled)("span")`
  height: fit-content;
`;function rW(e){let{hint:n,onClick:t,disabled:a,icon:i,variant:l,color:r}=e;return(0,fe.jsx)(Vx.A,{title:n,children:(0,fe.jsx)(lW,{children:(0,fe.jsx)(f.IconButton,{color:r,variant:l||"contained",onClick:t,disabled:a,children:i})})})}var oW=t(81206),sW=t(49366),dW=(t(26079),t(70381)),cW=t.n(dW);const uW={width:172,height:36};const pW=(0,f.styled)("div")({width:"100%",height:"100%"});function mW(e){let{onClose:n}=e;const{nodes:t,edges:a}=function(){const e=Je(),[n,t]=(0,g.useState)([]),[a,i]=(0,g.useState)([]),{data:l}=(0,x.IT)(zz,{variables:{accountId:e,limit:1e3}}),r=l?.getOrganisationalHierarchiesPage.rows;return(0,g.useEffect)(()=>{if(r){const[e,n]=function(e){const n=(new(cW().graphlib.Graph)).setGraph({}).setDefaultEdgeLabel(()=>({})),t=new Map,a=[],i=[],l=new Set,r=new Set;for(const{ancestor:i,descendant:o}of e){for(const e of[i,o])t.has(e.id)||(t.set(e.id,e),n.setNode(e.id,{...uW})),l.add(e.id),r.add(e.id);a.push({id:`${i.id}-${o.id}`,source:i.id,target:o.id}),n.setEdge(i.id,o.id)}for(const{ancestor:n,descendant:t}of e)l.delete(t.id),r.delete(n.id);cW().layout(n);for(const e of t.values()){const t=n.node(e.id);i.push({id:e.id,type:l.has(e.id)?"input":r.has(e.id)?"output":void 0,data:{label:e.name},position:{x:t.x-uW.width/2,y:t.y-uW.height/2}})}return[i,a]}(r);t(e),i(n)}},[r]),{nodes:n,edges:a}}();return(0,fe.jsx)(f.Modal,{title:"Visual Hierarchy",open:!0,onClose:n,maxWidth:"95vw",viewportWidth:95,viewportHeight:90,children:(0,fe.jsx)(pW,{children:(0,fe.jsxs)(sW.Gc,{nodes:t,edges:a,nodesDraggable:!1,nodesConnectable:!1,fitView:!0,children:[(0,fe.jsx)(sW.VS,{}),(0,fe.jsx)(sW.H2,{showInteractive:!1})]})})})}function fW(e){let{gridRef:n}=e;const t=n.current?.gridApi,{canCreateOrganisationalHierarchy:a}=hz(),i=function(){const{canCreateOrganisationalHierarchy:e}=hz(),n=Je(),t=Kr({query:qz,request:{accountId:n},response:"getOrganisationalUnitsPage"}),[a,i]=(0,g.useState)();return(0,g.useEffect)(()=>{e&&(async()=>{i({organisationalUnits:await t()})})()},[e]),a}(),[l,r]=(0,g.useState)(!1),o=QG(zz,"getOrganisationalHierarchiesPage"),s=a&&t&&i;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(sz,{children:[(0,fe.jsx)(rW,{hint:"Visualize",onClick:()=>r(!0),icon:(0,fe.jsx)(oW.A,{})}),(0,fe.jsx)(jS,{filtersApplied:n.current?.filtersApplied,resetGridState:n.current?.resetGridState}),t&&(0,fe.jsx)(zx,{fetchRows:o,gridApi:t,defaultExportFileName:"organisational-hierarchies"}),s&&(0,fe.jsx)(iW,{data:i,gridApi:t})]}),l&&(0,fe.jsx)(mW,{onClose:()=>r(!1)})]})}function yW(){const e=(0,g.useRef)(null),n=KG({columnDefs:(0,g.useMemo)(()=>[{headerName:"Unit",field:"descendant.name",sortable:!0,filter:"agTextColumnFilter"},{headerName:"Report to",field:"ancestor.name",sortable:!0,filter:"agTextColumnFilter"},eW(e=>(0,fe.jsx)(Xz,{...e}))],[]),serverSideDatasource:ZG(zz,"getOrganisationalHierarchiesPage")}),t=`${Je()}_Organisation_OrganisationalHierarchies`;return(0,fe.jsx)(f.Page,{title:{content:"Organisational hierarchies",actionButton:(0,fe.jsx)(fW,{gridRef:e})},children:(0,fe.jsx)(dz,{ref:e,gridKey:t,gridOptions:n})})}const gW=S.J1`
  query GetLocationAttachmentsPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getOrganisationalUnitLocationAttachmentsPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      rows {
        organisationalUnit {
          id
          name
        }
        location {
          id
          name
        }
      }
      totalRows
    }
  }
`,hW=S.J1`
  mutation InsertLocationAttachments($accountId: ID!, $inputs: [InsertOrganisationalUnitLocationAttachmentInput!]!) {
    insertOrganisationalUnitLocationAttachments(accountId: $accountId, inputs: $inputs)
  }
`,xW=e=>S.J1`
  query GetDataForLocationAttachmentsUpload($accountId: ID!, $offset: Int, $limit: Int) {
    ${e.map(e=>`\n      ${e}(accountId: $accountId, offset: $offset, limit: $limit) {\n        rows {\n          id\n          name\n        }\n        totalRows\n      }  \n    `)}
  }
`,TW=S.J1`
  mutation DeleteLocationAttachment($accountId: ID!, $organisationalUnitId: ID!, $locationId: ID!) {
    deleteOrganisationalUnitLocationAttachment(
      accountId: $accountId
      organisationalUnitId: $organisationalUnitId
      locationId: $locationId
    )
  }
`;function bW(e){let{api:n,rowIndex:t,data:a}=e;const[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(!1),s=function(){const e=Je(),[n]=(0,ln.n)(TW);return async t=>{let{location:a,organisationalUnit:i}=t;await n({variables:{accountId:e,locationId:a.id,organisationalUnitId:i.id}})}}(),d=[],{canDeleteOrganisationalUnitLocationAttachment:c}=hz();return c&&d.push({hint:"Delete",onClick:()=>l(!0),icon:(0,fe.jsx)(f.Icons.Delete,{}),disabled:r}),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Zz,{buttons:d}),(0,fe.jsx)(GS,{open:i,onClose:()=>l(!1),onConfirm:async()=>{o(!0);try{await s(a),n.applyServerSideRowData({startRow:t,successParams:{rowData:[null]}})}finally{o(!1)}},title:"Delete location attachment",body:"This will permanently delete the location attachment. Do you want to proceed?",confirmButtonText:"Delete"})]})}const vW=t.p+"location-attachments-template-8fa74a9d20e32a86097f.xlsx";function CW(e){let{gridApi:n,data:t}=e;const[a]=(0,ln.n)(hW),i=(e=>{let{organisationalUnits:n,locations:t}=e;return(0,g.useMemo)(()=>[{key:"organisationalUnitId",type:"select",label:"Organisational unit",validators:[{validate:"required"}],selectOptions:n.map(e=>{let{name:n,id:t}=e;return{label:n,value:t}})},{key:"locationId",type:"select",label:"Location",validators:[{validate:"required"}],selectOptions:t.map(e=>{let{name:n,id:t}=e;return{label:n,value:t}})}],[n,t])})(t);return(0,fe.jsx)(Uz,{tooltip:"Bulk upload location attachments",gridApi:n,validator:async e=>e,mutation:a,templateUrl:vW,importIdentifier:"Location attachments",fields:i})}var kW=t(54679),SW=t(55096),NW=t(98506),AW=t(41809),RW=t(46297),DW=t(63417),LW=t(97763);const IW=JSON.parse('{"__schema":{"queryType":{"name":"Query"},"mutationType":{"name":"Mutation"},"subscriptionType":{"name":"Subscription"},"types":[{"kind":"SCALAR","name":"AWSDate","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"SCALAR","name":"AWSDateTime","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"SCALAR","name":"AWSJSON","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AccessControls","description":null,"fields":[{"name":"learn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"comply","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GovernanceAccessControls","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"data","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataAccessControls","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"intelligence","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"tasks","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"projects","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"surveys","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"flows","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dataTracker","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dromoUpload","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"v2Design","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"customFields","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"activityBasedUploads","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dataOverwriting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"SCALAR","name":"Boolean","description":"The `Boolean` scalar type represents `true` or `false`.","fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"SCALAR","name":"String","description":"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.","fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AccessControlsInput","description":null,"fields":null,"inputFields":[{"name":"learn","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"intelligence","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"comply","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"GovernanceAccessControlsInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"data","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DataAccessControlsInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tasks","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"projects","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"surveys","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"flows","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dataTracker","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dromoUpload","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"investment","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"v2Design","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"activityBasedUploads","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dataOverwriting","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Account","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AccountType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"children","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"logoPath","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyConsentDocumentLink","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyUploadGranularity","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyUploadBatchingEnabled","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyTariff","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"featureToggles","description":null,"args":[],"type":{"kind":"OBJECT","name":"FeatureToggles","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accessControls","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AccessControls","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"showChatBot","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"capacity","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"OBJECT","name":"ReportingYear","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"sector","description":null,"args":[],"type":{"kind":"OBJECT","name":"AccountSector","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tenantId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"unrestrictedDocuments","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isSupplierRequiredForDocument","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"customImpactDashboard","description":null,"args":[],"type":{"kind":"OBJECT","name":"Dashboard","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"SCALAR","name":"ID","description":"The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\\"4\\"`) or integer (such as `4`) input value will be accepted as an ID.","fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"SCALAR","name":"Int","description":"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.","fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AccountDepartmentInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"departmentId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AccountInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AccountType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tenantId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accessControls","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AccessControlsInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"featureToggles","description":null,"type":{"kind":"INPUT_OBJECT","name":"FeatureTogglesInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"logoPath","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyConsentDocumentLink","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyUploadGranularity","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"children","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"showChatBot","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"capacity","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"NamedEntityInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sectorId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"unrestrictedDocuments","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"customImpactDashboardId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AccountPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AccountSector","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AccountSurveyContributor","description":null,"fields":[{"name":"account","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"userGroup","description":null,"args":[],"type":{"kind":"OBJECT","name":"UserGroup","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"surveys","description":null,"args":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ReceivedSurvey","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"SurveyContributorInterface","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"AccountType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ENTERPRISE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TEAM","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ENGAGE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"Accuracy","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"EST","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACT","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"Address","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"address1","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"address2","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"address3","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"city","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buildingType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coordinates","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"phone1","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Country","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AddressInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address1","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address2","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address3","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"city","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"coordinates","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"phone1","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"countryId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AggregationCommand","description":null,"fields":null,"inputFields":[{"name":"functions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AggregationFunction","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"partitions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"PartitionCommand","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AggregationFunction","description":null,"fields":null,"inputFields":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"aggregationType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AggregationType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"AggregationType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"SUM","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"AVG","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MIN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MAX","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"COUNT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"NONE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"Alias","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"OBJECT","name":"Account","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"aliasType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"parentItem","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AliasParentItem","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AliasBatchResult","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"aliasType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"parentItem","description":null,"args":[],"type":{"kind":"OBJECT","name":"AliasParentItem","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"energyType","description":null,"args":[],"type":{"kind":"ENUM","name":"TransactionType","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AliasBatchResults","description":null,"fields":[{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getParentResponses","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AliasBatchResult","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AliasInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"aliasType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"energyType","description":null,"type":{"kind":"ENUM","name":"TransactionType","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AliasParentItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"typeId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"AliasType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"WASTESTREAM","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTETREATMENTPROCESS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTECONTRACTOR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTECARRIER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CONTAINERTYPESIZE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTEIN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTEOUT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LOCATIONPOINT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"METER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORTSUBTYPE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUELTYPE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORTFUELTYPE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"JOURNEYTARGET","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"UNIT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACCURACY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CURRENCY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIALORIGIN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TARIFF","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"COUNTERPARTY","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AliasValueBatchInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"aliasValues","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AliasValueInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AliasValueInput","description":null,"fields":null,"inputFields":[{"name":"aliasType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"energyType","description":null,"type":{"kind":"ENUM","name":"TransactionType","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AliasesPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"AliasBatchResult","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AllLearnSubscriptions","description":null,"fields":[{"name":"subscriptions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"bundleShow","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"bundleHidden","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"mandatoryBundleId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AnomalyThreshold","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"thresholdPercentage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"utilityType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UtilityType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"monthlyVarianceDetectionEnabled","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"annuallyVarianceDetectionEnabled","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"SCALAR","name":"Float","description":"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).","fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnomalyThresholdInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"thresholdPercentage","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"utilityType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UtilityTypeInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"monthlyVarianceDetectionEnabled","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"annuallyVarianceDetectionEnabled","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AnomalyThresholdsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AnomalyThreshold","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Answer","description":null,"fields":[{"name":"givenAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerBreakdownQuestionInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"BreakdownInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerChoiceQuestionInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerDateQuestionInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerFloatQuestionInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerInput","description":null,"fields":null,"inputFields":[{"name":"value","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerIntegerQuestionInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerMultipleChoiceQuestionInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerOpenEndedQuestionInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerOpenEndedRichQuestionInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerReportingQuestionInput","description":null,"fields":null,"inputFields":[{"name":"choice","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerChoiceQuestionInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"multipleChoice","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerMultipleChoiceQuestionInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"yesNo","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerYesNoQuestionInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"openEnded","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerOpenEndedQuestionInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"openEndedRich","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerOpenEndedRichQuestionInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"int","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerIntegerQuestionInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"float","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerFloatQuestionInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerDateQuestionInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"breakdown","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerBreakdownQuestionInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sequenceRepeatable","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerSequenceRepeatableQuestionInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerSequenceRepeatableQuestionInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SequenceRepeatableQuestionRowInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AnswerYesNoQuestionInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"AntivirusStatus","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"CLEAN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ERROR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INFECTED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PENDING","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"ApiConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"factorName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"unitFrom","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"unitTo","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"factorValue","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"source","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Aspect","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"author","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"Scope","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Tag","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"activity","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"aspects","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"impacts","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"legislations","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Legislation","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"likelihoodNoControl","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"severityNoControl","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"significanceNoControl","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"emergencyConditions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"controlMeasures","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"likelihoodControl","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"severityControl","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"significanceControl","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reviewDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"task","description":null,"args":[],"type":{"kind":"OBJECT","name":"Task","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"editor","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"editedDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceNotes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AspectEvidenceNotes","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"activeTasks","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"owner","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AspectEvidenceInput","description":null,"fields":null,"inputFields":[{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AspectEvidenceNotes","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AspectInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"authorId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"Scope","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"activity","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"aspects","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"impacts","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"legislationIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"likelihoodNoControl","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"severityNoControl","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"emergencyConditions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"controlMeasures","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"likelihoodControl","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"severityControl","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"reviewDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"taskId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"editorId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"createdDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"editedDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"evidenceNotes","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AspectEvidenceInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"activeTasks","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ownerId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AspectOption","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AspectOptionType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isGlobal","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"referenced","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AspectOptionInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AspectOptionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"AspectOptionType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ACTIVITY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ASPECT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"IMPACT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EMERGENCY_CONDITION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CONTROL_MEASURE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"STATUS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DEPARTMENTS","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"AspectsAlerts","description":null,"fields":[{"name":"expired","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Aspect","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"approaching","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Aspect","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AspectsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Aspect","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Asset","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Code","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"externalId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"gicsCode","description":null,"args":[],"type":{"kind":"OBJECT","name":"Code","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleted","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"lastUpdatedAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetLocation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"factors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AssetFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AssetFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"referenceLink","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"factorYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleted","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AssetFactorInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"assetId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"referenceLink","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"factorYear","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"deleted","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AssetFactorPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AssetFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AssetInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"externalId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"gicsCodeId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"deleted","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"assetLocation","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AssetPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Asset","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AssignAccountLicenceInput","description":null,"fields":null,"inputFields":[{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"licenceId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AssignLicenceInput","description":null,"fields":null,"inputFields":[{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"licenceId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AttachContentInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"linkId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"synopsis","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AttachDocumentInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"linkId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"documentId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AttachLegislationContentInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"linkId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"content","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"LegislationContentInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AttachmentQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AuditEvent","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"service","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AuditEventService","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"entityId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"entity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AuditEventEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"OBJECT","name":"Account","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"payload","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSJSON","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"AuditEventEntity","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"FORM_CAMPAIGN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FORM_SUBMISSION","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"AuditEventInput","description":null,"fields":null,"inputFields":[{"name":"service","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AuditEventService","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"entityId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"entity","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AuditEventEntity","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"payload","description":null,"type":{"kind":"SCALAR","name":"AWSJSON","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"AuditEventService","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"FORM_SERVICE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"Banner","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"url","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"BannerType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"thumbnail","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"visible","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"BannerType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"VIDEO","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SCORM","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"HYPERLINK","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"BooleanFilter","description":null,"fields":null,"inputFields":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"values","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DataType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Breakdown","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"figures","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"partition","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"BreakdownInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"figures","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"partition","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"BreakdownQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"questions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"QuestionUnion","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"reportedBreakdown","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Breakdown","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"BuildEnergyRatingType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"DEC","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EPC","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"BuildingEnergyRating","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"A","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"B","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"C","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"D","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"E","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"F","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"G","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"BuildingEnergyRatingRow","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"heatingFuelType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"nominatedDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dataProvider","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rating","description":null,"args":[],"type":{"kind":"ENUM","name":"BuildingEnergyRating","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"score","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buildingEnvironment","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"gia","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"issueDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"certificateValidTo","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"certificateReferenceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"resurveyed","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"comments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"BuildEnergyRatingType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"block","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"BuildingEnergyRatingsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"BuildingEnergyRatingRow","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"BuildingType","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"BulkEstatesConfigurationInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"estatesConfigurations","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateEstatesConfigurationInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"BulkGasCompositionInput","description":null,"fields":null,"inputFields":[{"name":"assetId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"higherHeatingValue","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"higherHeatingUnit","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"o2MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"n2MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"co2MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"h2MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"h2sMolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ch4MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"c2h6MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"c3h8MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"c4h10MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"c5h12MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"c6h14MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"c7h16MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"c8h18MolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"c9PlusMolePercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"BulkUpdateExclusionInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userIds","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"courseId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"operation","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"BulkUpdateExclusionOperation","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"BulkUpdateExclusionOperation","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ADD","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REMOVE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"BuyProductsInput","description":null,"fields":null,"inputFields":[{"name":"items","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"paymentMethod","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"couponId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"BuySubscriptionInput","description":null,"fields":null,"inputFields":[{"name":"items","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"paymentMethod","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"couponId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INTERFACE","name":"CarbonConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fromUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"toUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"CarbonConversionFactorType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"note","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"EnergyCarbonConversionFactor","ofType":null},{"kind":"OBJECT","name":"TransportConversionFactor","ofType":null},{"kind":"OBJECT","name":"WasteCarbonConversionFactor","ofType":null}]},{"kind":"ENUM","name":"CarbonConversionFactorType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ELECTRICITY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIALS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INTERFACE","name":"Chapter","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"number","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"synopsis","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"chapters","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ManagementSystemChapter","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"content","description":null,"args":[],"type":{"kind":"OBJECT","name":"ManagementSystemPageContent","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"ManagementSystemChapter","ofType":null}]},{"kind":"OBJECT","name":"ChoiceQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"variants","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"canSpecifyOwnChoice","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportedChoice","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Code","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"code","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ColumnMapper","description":null,"fields":[{"name":"mappings","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Mapping","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"ColumnMapperInput","description":null,"fields":null,"inputFields":[{"name":"mappings","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"MappingInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ColumnSplitter","description":null,"fields":[{"name":"quantity","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"OBJECT","name":"DateColumnSplitter","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ContainerSize","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"volume","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"volumeUnit","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"weight","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"weightUnit","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ContainerType","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"sizes","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ContainerSize","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ContainerTypeSizePage","description":null,"fields":[{"name":"count","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasNextPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasPreviousPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isFirstPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isLastPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"totalItemCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"typeSizes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"Page","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ContractorsPage","description":null,"fields":[{"name":"count","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasNextPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasPreviousPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isFirstPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isLastPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"totalItemCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"wasteContractors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteContractor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"Page","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Country","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"numericCode","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"alpha2Code","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Course","description":null,"fields":[{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"metaData","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"CourseMetaData","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"userCourseMetaData","description":null,"args":[{"name":"userId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"UserCourseMetaData","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"assessment","description":null,"args":[],"type":{"kind":"OBJECT","name":"Evaluation","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"Evaluation","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"licence","description":null,"args":[],"type":{"kind":"OBJECT","name":"Licence","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isEngage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"bundleIdList","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"CourseCategory","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"WASTE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ENERGY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ENVIRONMENTAL_SOCIAL_GOVERNANCE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CIRCULAR_ECONOMY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"HEALTH_AND_SAFETY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"HEALTH_AND_WELLBEING","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"CourseMetaData","description":null,"fields":[{"name":"link","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"viewed","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"thumbnail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"cpd","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"passScore","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"categories","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"CourseCategory","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"isEngage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"openIframe","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"url","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"timeToComplete","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":true,"deprecationReason":"Not used"},{"name":"progress","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":true,"deprecationReason":"Not used"},{"name":"duration","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":true,"deprecationReason":"Not used"},{"name":"views","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":true,"deprecationReason":"Not used"},{"name":"size","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":true,"deprecationReason":"Not used"},{"name":"highQualityLink","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":true,"deprecationReason":"Not used"},{"name":"lowQualityLink","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":true,"deprecationReason":"Not used"},{"name":"downloadLink","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":true,"deprecationReason":"Not used"}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"CourseProgress","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"NOTSTARTED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INPROGRESS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"COMPLETE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"CreateAddressBatchResponse","description":null,"fields":[{"name":"success","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Address","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"errors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"CreateContainerTypeInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"volume","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"volumeUnitId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"weight","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"weightUnitId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"CreateDocumentFolderInput","description":null,"fields":null,"inputFields":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"CreateDocumentRecordInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"key","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"category","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"supplierId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"referenceId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"library","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DocumentLibrary","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"reviewDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"managementSystemCode","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"managementSystemId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"managementSystemChapterId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"source","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"Source","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"link","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"reviewDateStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"folderId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"expirationDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"CreateEstatesConfigurationInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"forecastYear","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"cityStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tenure","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tenureStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"floorSpace","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"floorSpaceStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationStartDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationStartDateStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationBreakDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationBreakDateStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationEndDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationEndDateStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesCondition","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesConditionStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesStatComp","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesStatCompStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesEpc","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesEpcStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesGovSystem","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesGovSystemStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationYearPropertyMilestone","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationYearPropertyMilestoneStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"estateChange","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"estateChangeStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountDesnz","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountDesnzStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountIcs","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountIcsStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountGbe","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountGbeStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountSeahorse","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountSeahorseStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountDsit","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountDsitStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountUksa","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountUksaStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountFacilitated","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountFacilitatedStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountVoid","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountVoidStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsRequired","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsRequiredStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsFacilitated","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsFacilitatedStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsVoid","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsVoidStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceFacilitated","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceFacilitatedStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceActual","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceActualStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerDesk","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerDeskStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerHeadcount","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerHeadcountStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"source","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sourceStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"capitalInvestmentCostFitOut","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"capitalInvestmentCostFitOutStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dilaps","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dilapsStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityTotalCheck","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityTotalCheckStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"CreateEvaluationInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"EvaluationType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"questions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"QuestionInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scale","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"ScaleInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"CreateGasCompositionInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"gasCompositions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"BulkGasCompositionInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"CreateLicenceInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"productId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"CreateNormalisersErrors","description":null,"fields":[{"name":"errors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"UNION","name":"CreateNormalisersResponse","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"Normalisers","ofType":null},{"kind":"OBJECT","name":"CreateNormalisersErrors","ofType":null}]},{"kind":"INPUT_OBJECT","name":"CreateTagInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"applicationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isSystemLevelTag","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"legislationTag","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"CreateTargetErrors","description":null,"fields":[{"name":"errors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"UNION","name":"CreateTargetResponse","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"Target","ofType":null},{"kind":"OBJECT","name":"CreateTargetErrors","ofType":null}]},{"kind":"INPUT_OBJECT","name":"CreateTranspositionInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"transpositionName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"columnMapper","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"ColumnMapperInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"CreateUserInput","description":null,"fields":null,"inputFields":[{"name":"username","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"password","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"roles","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UserRole","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"first_name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"last_name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"account_id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accessLevel","description":null,"type":{"kind":"ENUM","name":"Scope","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"allowedLocationsIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"allowedTagsIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"jobTitle","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"department","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"phone","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"mobile","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"profilePicture","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"disableAccountSelector","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userGroupId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"CreateUsersResponse","description":null,"fields":[{"name":"success","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"errors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Dashboard","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"area","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DashboardArea","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"provider","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DashboardProvider","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"providerDashboardId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"thumbnailType","description":null,"args":[],"type":{"kind":"ENUM","name":"ThumbnailType","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"thumbnailUrl","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"sheets","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DashboardSheet","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"DashboardArea","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"LEARN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"COMPLY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DATA","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SURVEY","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"DashboardFilter","description":null,"fields":[{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DashboardFilterType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"label","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"defaultValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"relativeDateDefault","description":null,"args":[],"type":{"kind":"ENUM","name":"RelativeDateDefault","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isHidden","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dataset","description":null,"args":[],"type":{"kind":"OBJECT","name":"DashboardFilterDataset","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DashboardFilterDataset","description":null,"fields":[{"name":"datasetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"columnName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DashboardFilterDatasetInput","description":null,"fields":null,"inputFields":[{"name":"datasetName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"columnName","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DashboardFilterInput","description":null,"fields":null,"inputFields":[{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DashboardFilterType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"label","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"defaultValue","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"relativeDateDefault","description":null,"type":{"kind":"ENUM","name":"RelativeDateDefault","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isHidden","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dataset","description":null,"type":{"kind":"INPUT_OBJECT","name":"DashboardFilterDatasetInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"DashboardFilterType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"FROM_DATE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TO_DATE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"YEAR_1","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"YEAR_2","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PERIOD_1","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PERIOD_2","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"STANDALONE_YEAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LOCATION_OCCUPATION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTUAL_OR_ESTIMATED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LOCATIONS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TAGS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DEPARTMENTS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"COUNTRIES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REGIONS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"METERS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SCOPES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GHG_SCOPES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SOURCES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"UNITS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIALS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_TYPES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PURPOSES_OF_TRAVEL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_TYPES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LOCATION_CUSTOM_ATTRIBUTES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_STREAMS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_CONTRACTORS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_CARRIERS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PROJECT_PHASES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUSINESS_UNIT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_IN_OUT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"UPLOAD_REFERENCES","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DashboardInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"area","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DashboardArea","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"provider","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DashboardProvider","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"providerDashboardId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"thumbnailType","description":null,"type":{"kind":"ENUM","name":"ThumbnailType","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sheets","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DashboardSheetInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"DashboardProvider","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"QUICKSIGHT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CUSTOM","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"DashboardSheet","description":null,"fields":[{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DashboardFilter","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"tiles","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DashboardTile","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"units","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"withCarbonComponents","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"withVat","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DashboardSheetInput","description":null,"fields":null,"inputFields":[{"name":"title","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DashboardFilterInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tiles","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DashboardTileInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"units","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"withCarbonComponents","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"withVat","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DashboardSubscriptionInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"subscriptions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DashboardTile","description":null,"fields":[{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DashboardTileType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"colSpan","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rowSpan","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"colors","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DashboardTileData","description":null,"fields":[{"name":"dataPoints","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataPoint","ofType":null}}}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DashboardTileInput","description":null,"fields":null,"inputFields":[{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DashboardTileType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"colSpan","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"rowSpan","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"DashboardTileType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"SECTION_TITLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ELECTRICITY_CONSUMPTION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ELECTRICITY_CONSUMPTION_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ELECTRICITY_COST","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ELECTRICITY_COST_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ELECTRICITY_GROSS_CARBON_EMISSIONS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ELECTRICITY_GROSS_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ELECTRICITY_NET_CARBON_EMISSIONS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ELECTRICITY_NET_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"AVERAGE_ELECTRICITY_CHARGE_PER_KILOWATT_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"AVERAGE_ELECTRICITY_CHARGE_PER_KILOWATT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"AVERAGE_ELECTRICITY_CHARGE_PER_KILOWATT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_CONSUMPTION_BY_LOCATION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_CONSUMPTION_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_CONSUMPTION_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_CONSUMPTION_BY_COUNTRY_AND_SCOPE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_COST_AND_CONSUPMTION_OVER_TIME","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_GROSS_CARBON_EMISSIONS_BY_SCOPE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_GROSS_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_GROSS_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_NET_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY_NET_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_CARBON_EMISSIONS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_CARBON_COST_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_SCOPE_PIE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_SOURCE_BAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_SCOPE_AND_SOURCE_TABLE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_DATA_TYPE_BAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_WTT_AND_TD_EMISSIONS_BY_SOURCE_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_SCOPE_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_COST_BY_SCOPE_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_RESOURCE_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_COST_BY_RESOURCE_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_SCOPE_FOR_PERIOD_1_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_SCOPE_FOR_PERIOD_2_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_SOURCE_FOR_PERIOD_1_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_SOURCE_FOR_PERIOD_2_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"RESOURCES_USED_BY_SCOPE_TABLE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"RESOURCES_USED_BY_LOCATION_TABLE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PROPORTION_OF_ACT_VS_EST_PIE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"QUANTITY_AND_CO2E_BY_LOCATION_AND_METER_TABLE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_COUNTRY_BAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_COUNTRY_AND_SCOPE_TABLE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_COUNTRY_MAP","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOP_CARBON_EMISSIONS_BY_COUNTRY_TABLE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOP_3_CARBON_EMISSION_COUNTRIES_TABLE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BOTTOM_3_CARBON_EMISSION_COUNTRIES_TABLE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ENERGY_CONSUMPTION_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ENERGY_GROSS_CARBON_EMISSIONS_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ENERGY_NET_CARBON_EMISSIONS_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ENERGY_COST_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ENERGY_COST_AND_CONSUMPTION_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ENERGY_CARBON_EMISSIONS_BY_SCOPE_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ENERGY_CONSUMPTION_PER_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ENERGY_CONSUMPTION_BY_SCOPE_AND_TARIFF_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ENERGY_CONSUMPTION_YEAR_ON_YEAR_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ENERGY_COST_YEAR_ON_YEAR_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ENERGY_GROSS_CARBON_EMISSIONS_YEAR_ON_YEAR_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_ENERGY_NET_CARBON_EMISSIONS_YEAR_ON_YEAR_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MONTHLY_ENERGY_CONSUMPTION_YEAR_ON_YEAR_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ANNUAL_ENERGY_FIGURES_PER_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_WASTE_WEIGHT_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_WASTE_COST_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_WASTE_CARBON_EMISSIONS_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PERCENTAGE_DIVERTED_FROM_DISPOSAL_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_AND_WEIGHT_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_HIERARCHY_BY_TYPE_DONUT_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_CARBON_EMISSIONS_BY_SCOPE_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_BY_WASTE_STREAM_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_CONSUMPTION_BY_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_WASTE_WEIGHT_YEAR_ON_YEAR_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_WASTE_CARBON_EMISSIONS_YEAR_ON_YEAR_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_WASTE_COST_YEAR_ON_YEAR_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOTAL_WASTE_COST_PER_TONNAGE_YEAR_ON_YEAR_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ANNUAL_WASTE_GENERATION_AND_COST_PER_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MONTHLY_WASTE_GENERATION_YEAR_ON_YEAR_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MONTHLY_WASTE_GENERATION_AND_COST_YEAR_ON_YEAR_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_WEIGHT_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_BY_WASTE_STREAM_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_STREAM_COST_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_WEIGHT_OVER_TIME_BY_WASTE_STREAM_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_OVER_TIME_BY_WASTE_STREAM_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_WEIGHT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_WEIGHT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_WEIGHT_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_CARBON_EMISSIONS_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_WEIGHT_BY_TREATMENT_PROCESS_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_CARBON_EMISSIONS_BY_TREATMENT_PROCESS_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_PER_TONNAGE_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_PER_TONNAGE_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_PER_TONNAGE_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_BY_TREATMENT_PROCESS_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_COST_PER_TONNAGE_BY_TREATMENT_PROCESS_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_DISPOSAL_PERCENTAGE_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_RECYCING_PERCENTAGE_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_DISPOSAL_PERCENTAGE_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_RECYCING_PERCENTAGE_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_DISPOSAL_PERCENTAGE_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_RECYCING_PERCENTAGE_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_DISPOSAL_PERCENTAGE_BY_WASTE_STREAM_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_RECYCING_PERCENTAGE_BY_WASTE_STREAM_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_DISPOSAL_PERCENTAGE_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_RECYCLING_PERCENTAGE_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_REUSE_PERCENTAGE_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_OTHER_RECOVERY_PERCENTAGE_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_REUSE_PERCENTAGE_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_OTHER_RECOVERY_PERCENTAGE_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_REUSE_PERCENTAGE_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_OTHER_RECOVERY_PERCENTAGE_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_REUSE_PERCENTAGE_BY_WASTE_STREAM_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE_OTHER_RECOVERY_PERCENTAGE_BY_WASTE_STREAM_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_CONSUMPTION_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_CONSUMPTION_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_CONSUMPTION_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_COST_AND_CONSUMPTION_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_COST_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_AVERAGE_CHARGE_PER_KILOWATT_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_AVERAGE_CHARGE_PER_KILOWATT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS_AVERAGE_CHARGE_PER_KILOWATT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_CONSUMPTION_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_CONSUMPTION_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_CONSUMPTION_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_COST_AND_CONSUMPTION_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_COST_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_AVERAGE_CHARGE_PER_KILOWATT_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_AVERAGE_CHARGE_PER_KILOWATT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL_AVERAGE_CHARGE_PER_KILOWATT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_CONSUMPTION_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_CONSUMPTION_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_CONSUMPTION_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_COST_AND_CONSUMPTION_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_COST_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_AVERAGE_CHARGE_PER_KILOWATT_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_AVERAGE_CHARGE_PER_KILOWATT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_AVERAGE_CHARGE_PER_KILOWATT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_WEIGHT_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_WEIGHT_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_WEIGHT_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_WEIGHT_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_CARBON_EMISSIONS_BY_CONTRACTOR_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_WEIGHT_BY_TYPE_AND_ORIGIN_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_CARBON_EMISSIONS_BY_TYPE_AND_ORIGIN_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_WEIGHT_AND_CONSUMPTION_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_COST_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_COST_PER_WEIGHT_EMISSIONS_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_COST_PER_WEIGHT_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_COST_PER_WEIGHT_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_CARBON_EMISSIONS_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_COST_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_COST_AND_CARBON_EMISSIONS_BY_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIAL_CARBON_EMISSIONS_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_AMOUNT_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_AMOUNT_BY_MATERIAL_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_AMOUNT_BY_PURCHASE_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_AMOUNT_BY_SUPPLIER_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_AMOUNT_BY_SUPPLIER_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_AMOUNT_BY_MATERIAL_TYPE_WITH_LAYERS_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_AMOUNT_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_AMOUNT_AND_CARBON_BY_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_CARBON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_CARBON_BY_MATERIAL_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_CARBON_BY_PURCHASE_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_CARBON_BY_SUPPLIER_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_CARBON_BY_SUPPLIER_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SPEND_BASED_MATERIAL_CARBON_BY_MATERIAL_TYPE_WITH_LAYERS_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_WEIGHT_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_WEIGHT_BY_MATERIAL_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_WEIGHT_BY_PURCHASE_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_WEIGHT_BY_SUBCONTRACTOR_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_WEIGHT_BY_SUBCONTRACTOR_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_WEIGHT_BY_MATERIAL_TYPE_WITH_LAYERS_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_WEIGHT_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_WEIGHT_AND_CARBON_BY_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_CARBON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_CARBON_BY_MATERIAL_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_CARBON_BY_PURCHASE_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_CARBON_BY_SUBCONTRACTOR_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_CARBON_BY_SUBCONTRACTOR_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVITY_BASED_MATERIAL_CARBON_BY_MATERIAL_TYPE_WITH_LAYERS_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GENERAL_MATERIAL_WEIGHT_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GENERAL_MATERIAL_CARBON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GENERAL_MATERIAL_WEIGHT_BY_MATERIAL_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GENERAL_MATERIAL_CARBON_BY_MATERIAL_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GENERAL_MATERIAL_WEIGHT_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GENERAL_MATERIAL_WEIGHT_AND_CARBON_BY_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_CARBON_EMISSIONS_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_COST_PERIOD_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_CARBON_EMISSIONS_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_COST_BY_LOCATION_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_CARBON_EMISSIONS_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_COST_BY_TAG_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_CARBON_EMISSIONS_BY_TRANSPORT_TYPE_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_COST_BY_TRANSPORT_TYPE_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_CARBON_EMISSIONS_BY_FUEL_TYPE_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_COST_BY_FUEL_TYPE_PERIOD_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_EMISSIONS_AND_COST_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ESTATES_REPORT_GRID_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUSINESS_ANALYTICS_SUMMARY_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUSINESS_ANALYTICS_TRANSACTION_VOLUME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUSINESS_ANALYTICS_LOCATION_GROWTH_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUSINESS_ANALYTICS_ENERGY_SPEND_GROWTH_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUSINESS_ANALYTICS_GEO_DISTRIBUTION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUSINESS_ANALYTICS_CARBON_GROWTH_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SCOPE_1_CARBON_SAVINGS_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"AVERAGE_FLARING_FROM_UPSTREAM_OPERATIONS_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FLARING_INTENSITY_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CURRENT_YEAR_CARBON_INTENSITY_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PAST_YEAR_CARBON_INTENSITY_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_INTENSITY_REDUCTION_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PAST_YEAR_EMISSIONS_BY_SCOPE_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CURRENT_YEAR_EMISSIONS_BY_SCOPE_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_SCOPE_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SCOPE_1_CARBON_SAVINGS_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_INTENSITY_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_INTENSITY_REDUCTION_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"AVERAGE_FLARING_FROM_UPSTREAM_OPERATIONS_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FLARING_INTENSITY_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_WITHDRAWAL_PERCENTAGE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_DISCHARGE_PERCENTAGE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_WITHDRAWAL_PERCENTAGE_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_DISCHARGE_PERCENTAGE_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BOARD_ATTENDANCE_RATE_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BOARD_FEMALE_REPRESENTATION_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EXECUTIVE_FEMALE_REPRESENTATION_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BOARD_ATTENDANCE_RATE_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BOARD_FEMALE_REPRESENTATION_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EXECUTIVE_FEMALE_REPRESENTATION_OVER_TIME_LINE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMISSIONS_BY_SCOPE_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_MARKET_AND_LOCATION_EMISSIONS_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"NUMBER_OF_LOCATIONS_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GHG_PROTOCOL_BREAKDOWN_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CARBON_EMITTERS_BY_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TOP_10_CARBON_EMITTERS_BY_LOCATION_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_TOTAL_CONSUMPTION_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_TOTAL_TREATMENT_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_TOTAL_COST_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_TOTAL_EMISSIONS_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_COST_CONSUMPTION_TREATMENT_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_CARBON_EMISSIONS_BY_SCOPE_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_COST_CONSUMPTION_EMISSIONS_PER_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_CONSUMPTION_YEAR_ON_YEAR_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_EMISSIONS_YEAR_ON_YEAR_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_COST_YEAR_ON_YEAR_COMPARISON_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_ANNUAL_CONSUMPTION_OVER_TIME_COMPARISON_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_COST_CONSUMPTION_EMISSIONS_PER_LOCATION_COMPARISON_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_TOTAL_DISTANCE_TRAVELED_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_TOTAL_COST_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_TOTAL_EMISSIONS_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_EMISSIONS_PER_LOCATION_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_EMISSIONS_PER_PURPOSE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_EMISSIONS_PER_TYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_EMISSIONS_PER_SUBTYPE_PIE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_TRAVEL_ACTIVITY_PER_LOCATION_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_TOTAL_DISTANCE_TRAVELED_YEAR_ON_YEAR_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_TOTAL_EMISSIONS_YEAR_ON_YEAR_KPI_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_CARBON_OVER_TIME_YEAR_ON_YEAR_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_CARBON_AND_DISTANCE_TRAVELED_OVER_TIME_BAR_TILE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT_ANNUAL_FIGURES_PER_LOCATION_YEAR_ON_YEAR_TABLE_TILE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"DataAccessControls","description":null,"fields":[{"name":"waste","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"electricity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gas","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"water","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materials","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuel","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transport","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"refrigerants","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"heatSteam","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"buildingEnergyRatings","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hotelStays","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"investment","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scope3ActivityBasedMaterials","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope3SpendBasedMaterials","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coreEstate","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"oilAndGas","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"insite","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DataAccessControlsInput","description":null,"fields":null,"inputFields":[{"name":"waste","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"electricity","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"gas","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"water","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"materials","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fuel","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"transport","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"refrigerants","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"heatSteam","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"buildingEnergyRatings","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"hotelStays","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"investment","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"oilProduction","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"salesData","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"liquidFuels","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scope3SpendBasedMaterials","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scope3ActivityBasedMaterials","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"coreEstate","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"oilAndGas","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"insite","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INTERFACE","name":"DataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"ElectricityDataAnomaly","ofType":null},{"kind":"OBJECT","name":"FuelDataAnomaly","ofType":null},{"kind":"OBJECT","name":"GasDataAnomaly","ofType":null},{"kind":"OBJECT","name":"HeatAndSteamDataAnomaly","ofType":null},{"kind":"OBJECT","name":"HotelStayDataAnomaly","ofType":null},{"kind":"OBJECT","name":"MaterialDataAnomaly","ofType":null},{"kind":"OBJECT","name":"RefrigerantDataAnomaly","ofType":null},{"kind":"OBJECT","name":"TransportDataAnomaly","ofType":null},{"kind":"OBJECT","name":"WasteDataAnomaly","ofType":null},{"kind":"OBJECT","name":"WaterDataAnomaly","ofType":null}]},{"kind":"UNION","name":"DataAnomalyItem","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"ElectricityDataAnomaly","ofType":null},{"kind":"OBJECT","name":"GasDataAnomaly","ofType":null},{"kind":"OBJECT","name":"HeatAndSteamDataAnomaly","ofType":null},{"kind":"OBJECT","name":"WaterDataAnomaly","ofType":null},{"kind":"OBJECT","name":"WasteDataAnomaly","ofType":null},{"kind":"OBJECT","name":"FuelDataAnomaly","ofType":null},{"kind":"OBJECT","name":"MaterialDataAnomaly","ofType":null},{"kind":"OBJECT","name":"HotelStayDataAnomaly","ofType":null},{"kind":"OBJECT","name":"RefrigerantDataAnomaly","ofType":null},{"kind":"OBJECT","name":"TransportDataAnomaly","ofType":null}]},{"kind":"OBJECT","name":"DataAnomalyPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"DataAnomalyItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataImportBatch","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"failedReason","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rowsUploaded","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalRowsExpected","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rollbackUser","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"timeStamp","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"lastUpdated","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"errors","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportError","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"errorsCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isLegacy","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importType","description":null,"args":[],"type":{"kind":"ENUM","name":"ImportType","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"approved","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transposition","description":null,"args":[],"type":{"kind":"OBJECT","name":"Transposition","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"externalActionUrl","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"anomaliesCount","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rollbackReason","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"anomalyCount","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isOverwriting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataImportBatchGridPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataImportBatchPage","description":null,"fields":[{"name":"count","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasNextPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasPreviousPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isFirstPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isLastPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"totalItemCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"batches","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"Page","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataImportError","description":null,"fields":[{"name":"message","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fieldName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"recordUniqueId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"actionRequired","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"possibleAliases","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataOverwritingKeyMapping","description":null,"fields":[{"name":"key","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"label","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataOverwritingStrategy","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DataOverwritingStrategyStatus","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"statusExplanation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"statusProgress","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"key","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"batchType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"batchId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfRowsAnalyzing","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfRowsAfterMerge","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfDuplicatesFound","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfBatchesWithDuplicates","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"overwritingNeeded","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"batchesSuitableForOverwriting","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TransactionImportBatchOverview","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"mergedFileS3Key","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"mergedFileUrl","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdBy","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"lastUpdatedAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scheduledExecutionAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scheduledExecutionBy","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"executedAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"executionError","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"executionCloudWatchLogGroup","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"duplicationKey","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"DataOverwritingStrategyStatus","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"INITIATED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ANALYZING","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MERGING","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"USER_REVIEW","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CANCELLED_BY_USER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EXECUTION_SCHEDULED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EXECUTED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FAILED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ABORTED","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"DataPoint","description":null,"fields":[{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dimension","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataQualityBreakdownItem","description":null,"fields":[{"name":"utility","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dataQuality","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dataCompleteness","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataQualityPercentage","description":null,"fields":[{"name":"overallDataQuality","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"overallDataCompleteness","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dataQualityBreakdown","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataQualityBreakdownItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataTrackerConfig","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"supplier","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Supplier","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"frequency","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"Frequency","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"recurrence","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"meters","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergySource","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DataTrackerConfigInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"supplierId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"frequency","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"Frequency","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"recurrence","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationIds","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"metersIds","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataTrackerConfigsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataTrackerConfig","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataTrackerValidationResult","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dataTrackerConfigId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"supplierName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"meters","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"utility","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"validationType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DataTrackerValidationType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isIgnored","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"note","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"frequency","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"Frequency","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DataTrackerValidationResultInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"note","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isIgnored","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DataTrackerValidationResultsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"DataTrackerValidationResult","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"DataTrackerValidationType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"FREQUENCY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"RECURRENCE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"DataType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"text","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"number","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"set","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"boolean","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DatasetFilters","description":null,"fields":null,"inputFields":[{"name":"from","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"to","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"year1","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"year2","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"period1","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"period2","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"standaloneYear","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"meters","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"countries","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"regions","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"actualOrEstimated","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationOccupation","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scopes","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sources","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"units","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteStreams","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteContractors","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteCarriers","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"projectPhases","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"materials","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"transportTypes","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fuelTypes","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"businessUnit","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"waterInOut","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"uploadReferences","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"purposesOfTravel","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DatasetRefreshLogRecord","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"datasetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"timestamp","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"trigger","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DatasetRefreshTrigger","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DatasetRefreshStatus","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"error","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"DatasetRefreshStatus","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"SKIPPED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SCHEDULED_FOR_REFRESH","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SCHEDULING_FAILED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REFRESHING","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REFRESHED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REFRESH_FAILED","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"DatasetRefreshTrigger","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"BATCH_IMPORTED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BATCH_ROLLED_BACK","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PERIODIC_REFRESH","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"DateColumnSplitter","description":null,"fields":[{"name":"columnName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"start","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"end","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startTime","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endTime","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DateFilter","description":null,"fields":null,"inputFields":[{"name":"field","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"ENUM","name":"FilterStrategy","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DataType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dateFrom","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dateTo","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"condition1","description":null,"type":{"kind":"INPUT_OBJECT","name":"DateFilter","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"condition2","description":null,"type":{"kind":"INPUT_OBJECT","name":"DateFilter","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"conditions","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DateFilter","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"operator","description":null,"type":{"kind":"ENUM","name":"JoinOperator","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DateQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportedDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"DeleteTranspositionInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"DiscountType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"percentage","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"fixed","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"DocumentArea","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"CONSIGNMENTNOTE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CONSIGNMENTNOTEEA","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTETRANSFERNOTE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SALESORDER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EVIDENCE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTEPERMIT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTECARRIERLICENCE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTECONTRACTORREPORT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRAVELRECEIPT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"AUDITREPORT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ASPECTSANDIMPACTS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CERTIFICATE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"COMMUNICATIONS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LEGISLATION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MANAGEMENTSYSTEMS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"POLICIES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REPORTINGFRAMEWORKS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"STANDARDS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRAINING","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LCAREPORTS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BILL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LICENCESANDPERMITS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INVOICE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"OTHER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"METERREADING","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SUPPLIERAGREEMENT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FORMUPLOAD","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CUSTOM","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"DocumentFolder","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"empty","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parent","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"DocumentLibrary","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"WASTE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GOVERNANCE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INVEST","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CUSTOM","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"DocumentRecord","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"link","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"key","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"source","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"Source","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"category","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"documentArea","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DocumentArea","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"library","description":null,"args":[],"type":{"kind":"ENUM","name":"DocumentLibrary","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reviewDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reviewDateStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"supplierId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"supplierName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"referenceId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"antivirusStatus","description":null,"args":[],"type":{"kind":"ENUM","name":"AntivirusStatus","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"managementSystemCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"managementSystemId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"managementSystemChapterId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createdBy","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdByName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"updatedAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"updatedBy","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"updatedByName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Tag","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"folderId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"folders","description":null,"args":[],"type":{"kind":"OBJECT","name":"DocumentRecordFoldersPath","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"expirationDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DocumentRecordFoldersPath","description":null,"fields":[{"name":"parent","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"child","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"DocumentsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EWC","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"code","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hazardous","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"editable","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ElectricityConsumptionDataPoint","description":null,"fields":[{"name":"time","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"ElectricityConsumptionTimeGranularity","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"TOTAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MONTH","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"HALF_HOUR","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"ElectricityConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"genKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tdKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttGenKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttTdKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttTradeKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"genKgCo2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tdKgCo2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttGenKgCo2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttTdKgCo2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttTradeKgCo2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"genKgCh4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tdKgCh4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttGenKgCh4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttTdKgCh4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttTradeKgCh4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"genKgN2o","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tdKgN2o","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttGenKgN2o","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttTdKgN2o","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttTradeKgN2o","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ElectricityConversionFactorPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ElectricityConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ElectricityDataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"ElectricityTransactionPageItem","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"DataAnomaly","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ElectricityTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ElectricityTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ElectricityTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"chargePerKilowatt","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tariff","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tariffId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"supplier","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startTime","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endTime","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reading","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"quantity","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"ENUM","name":"Accuracy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCostVat","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"comment","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"energySource","description":null,"args":[],"type":{"kind":"OBJECT","name":"EnergySource","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"activity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgCO2Scope2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgCO2Scope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgCH4Scope2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgCH4Scope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgN2OScope2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgN2OScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"marketBasedCarbonScope2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"marketBasedCarbonScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tdScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttGenScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttTdScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYearOfFactors","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"factorsArePrivate","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"EmailInput","description":null,"fields":null,"inputFields":[{"name":"external","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"replacements","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EmissionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"factorKey","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"sourceName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"factorYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountingMethod","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"emissionSource","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"emissionSourceType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"subtype1","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"subtype2","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"subtype3","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fromUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fromUnitToStandardUnitConversionFactor","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"toGhgUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"method","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accountName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope1Emissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope2Emissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope3Emissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deprecated","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deprecationReason","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"EmissionFactorInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sourceName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"factorYear","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountingMethod","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"emissionSource","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"emissionSourceType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"subtype1","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"subtype2","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"subtype3","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fromUnit","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fromUnitToStandardUnitConversionFactor","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"toGhgUnit","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"method","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scope1Emissions","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scope2Emissions","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scope3Emissions","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"deprecated","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"deprecationReason","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EmissionFactorPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EmissionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EmissionsDatabasePage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EmissionsDatabasePageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"datasetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EmissionsDatabasePageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"recordNo","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"platforms","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"releaseValves","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dateOfEntryIntoDatabase","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dataEntryByName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"recordDataDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetField","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"typeOfFuelConsumption","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"units","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"oilProductionBbl","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasProductionKscf","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasExportKscf","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasInjectionKscf","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasImport","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasInjected","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasKscf","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"flareGasKscf","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fuelUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"quantityConsumed","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"operationalControl","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"mboeAllPerDay","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"mboeGasPerDay","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasCO2eT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasCO2T","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasCH4T","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasN2OT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"flareCO2eT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"flareCO2T","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"flareCH4T","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"flareN2OT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ventingCO2eT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ventingCH4T","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"liqFCO2eT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"liqFCO2EmissionsT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"liqFCH4EmissionsCO2","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"liqFN2OEmissionsT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"liqFCH4EmissionsT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"liqFN2OEmissionsTonnesN2O","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fugitiveCO2e","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fugitiveCH4T","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasCompositionRecordUsed","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"naturalGasSalesVolume","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"crudeOilSalesVolume","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"naturalGasSalesVolumeUnit","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"soldProductsCO2eT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"soldProductsCO2T","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"soldProductsCH4T","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"soldProductsN2OT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ghgScope1EmissionsT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ghgScope2EmissionsT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ghgScope3EmissionsT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"waterProductionBbl","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"prodWaterOverboardBwpd","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"oilInWaterPpm","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dataMarker","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"codeForCheckingNewDataEntry","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"monthAvWaterLimitPPM1","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"monthAverageLimitP65","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"oilDischargeBpd","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"noxT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"soxT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pm25T","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"coT","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EnergyCarbonConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fromUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"toUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"CarbonConversionFactorType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"note","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"CarbonConversionFactor","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EnergyIn","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dateCreated","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"aliases","description":null,"args":[{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Alias","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"LocationPoint","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"EnergyInInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dateCreated","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EnergyOut","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dateCreated","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"aliases","description":null,"args":[{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Alias","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"LocationPoint","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"EnergyOutInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dateCreated","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EnergySource","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationPoint","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergySourceLocationPoint","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"inOut","description":null,"args":[],"type":{"kind":"ENUM","name":"InOut","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isGeneration","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"meterCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"hardwareProviderName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"operatorProviderName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isDeleted","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyConsentRequestDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyConsentStatus","description":null,"args":[],"type":{"kind":"ENUM","name":"N3rgyConsentStatus","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyConsentErrorMessage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyIsIndirectSource","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isReadingMeter","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"initialReading","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EnergySourceBatchPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergySource","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"EnergySourceInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"typeId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"inOut","description":null,"type":{"kind":"ENUM","name":"InOut","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isGeneration","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"meterCode","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"hardwareProviderName","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"operatorProviderName","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyConsentStatus","description":null,"type":{"kind":"ENUM","name":"N3rgyConsentStatus","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyIsIndirectSource","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isReadingMeter","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"initialReading","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EnergySourceLocationPoint","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dateCreated","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"aliases","description":null,"args":[{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Alias","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"LocationPoint","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EstatesConfiguration","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"city","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"forecastYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"cityStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tenure","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tenureStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"floorSpace","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"floorSpaceStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupationStartDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupationStartDateStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupationBreakDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupationBreakDateStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupationEndDateStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesCondition","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesConditionStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesStatComp","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesStatCompStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesEpc","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesEpcStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesGovSystem","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesGovSystemStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationYearPropertyMilestone","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationYearPropertyMilestoneStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estateChange","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estateChangeStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountDesnz","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountDesnzStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountIcs","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountIcsStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountGbe","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountGbeStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountSeahorse","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountSeahorseStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountDsit","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountDsitStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountUksa","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountUksaStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountTotal","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountTotalStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountFacilitated","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountFacilitatedStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountVoid","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountVoidStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsRequired","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsRequiredStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsFacilitated","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsFacilitatedStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsVoid","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsVoidStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceFacilitated","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceFacilitatedStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceActual","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceActualStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostNonRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostNonRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostTotal","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostTotalStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerDesk","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerDeskStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerHeadcount","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerHeadcountStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"source","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"sourceStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"capitalInvestmentCostFitOut","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"capitalInvestmentCostFitOutStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dilaps","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dilapsStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzNonRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzNonRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzTotal","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzTotalStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsNonRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsNonRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsTotal","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsTotalStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeNonRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeNonRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeTotal","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeTotalStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseNonRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseNonRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseTotal","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseTotalStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitNonRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitNonRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitTotal","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitTotalStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaNonRent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaNonRentStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaTotal","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaTotalStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityTotalCheck","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityTotalCheckStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"EstatesConfigurationPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EstatesConfiguration","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Evaluation","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"EvaluationType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"questions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Question","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"scale","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Scale","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"EvaluationType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ASSESSMENT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REACTION","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"ExportProgress","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transactionType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rowsProcessingProgress","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadProgress","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"exportStatus","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"ExportStatus","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"filename","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"errorMessage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"lastUpdatedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rowsProcessed","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ExportProgressPayload","description":null,"fields":[{"name":"items","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ExportProgress","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"ExportStatus","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"INITIATED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"IN_PROGRESS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"READY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"COMPLETED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FAILED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DELETED_BY_USER","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"FILTEREXPRESSION","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"GREATER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GREATEREQUAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LESS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LESSEQUAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EQUAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"NOTEQUAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"NONE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"FeatureToggles","description":null,"fields":[{"name":"enableGlobalEmissionFactors","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dataAnalysisChatbot","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"FeatureTogglesInput","description":null,"fields":null,"inputFields":[{"name":"enableGlobalEmissionFactors","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dataAnalysisChatbot","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"FilterData","description":null,"fields":[{"name":"label","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"FilterStrategy","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"equals","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"notEqual","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"lessThan","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"lessThanOrEqual","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"greaterThan","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"greaterThanOrEqual","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"contains","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"notContains","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"startsWith","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"endsWith","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"inRange","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"blank","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"notBlank","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"Filters","description":null,"fields":null,"inputFields":[{"name":"text","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"TextFilter","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"number","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"NumberFilter","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DateFilter","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"set","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SetFilter","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"search","description":null,"type":{"kind":"INPUT_OBJECT","name":"SearchFilter","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"boolean","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"BooleanFilter","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"FloatQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportedFloat","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Flow","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"progress","description":null,"args":[],"type":{"kind":"OBJECT","name":"Progress","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"thumbnailUrl","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalEstimate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"FlowSubscription","description":null,"fields":[{"name":"flow","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Flow","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"Frequency","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"Daily","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"Weekly","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"Monthly","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"Quarterly","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"Annually","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"FuelConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"unit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelActivity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"comKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttKgCO2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"comKgCo2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"comKgCh4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"comKgN20","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"gjGross","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"gjNet","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kWhGross","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kWhNet","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"densityKg","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"densityM3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"densityT","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"FuelConversionFactorPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FuelConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"FuelDataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"FuelTransactionPageItem","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"DataAnomaly","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"FuelTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FuelTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"FuelTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"quantity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"unit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"supplier","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fuelActivityName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope1","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionScope3WTT","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgCO2Scope1","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgCO2Scope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgCH4Scope1","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgCH4Scope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgN2OScope1","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgN2OScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"energyConsumption","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"activity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"comment","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Fund","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Code","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"externalId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"lastUpdatedAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deleted","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"FundFMV","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fundId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fundName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleted","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"FundFMVInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fundId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"deleted","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"FundFMVPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FundFMV","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"FundInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"currencyId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"externalId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"deleted","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"FundPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Fund","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GasComposition","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"higherHeatingValue","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"higherHeatingUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"components","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GasCompositionComponent","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"gasMolWt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelMixWtC","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"molCMol","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"co2MolFraction","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ch4MolFraction","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"boeConv","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GasCompositionComponent","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"component","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"compositionId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"molePercentage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"molecularWeight","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"weight","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"weightPercentage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"coefficientCarbon","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"weightPercentageCarbon","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"weightPercentageCarbonMixture","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"molCarbonMolGas","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"GasCompositionComponentInput","description":null,"fields":null,"inputFields":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"molePercentage","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GasCompositionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GasComposition","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GasCompositionUncertainty","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"co2MolMean","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"co2MolURel","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ch4MolMean","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ch4MolURel","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"molCMolGasMean","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"molCMolGasURel","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"mwMean","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"mwURel","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wtCMean","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wtCURel","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"boeConvMean","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updatedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GasCompositionUncertaintyPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GasCompositionUncertainty","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GasConversionFactorPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NaturalGasConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GasDataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"GasTransactionPageItem","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"DataAnomaly","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GasTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GasTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GasTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reading","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"quantity","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"ENUM","name":"Accuracy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCostVat","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"supplier","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"comment","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"energySource","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergySource","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"activity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope1","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionCO2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionN2O","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionCH4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYearOfFactors","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"GetAllDataInput","description":null,"fields":null,"inputFields":[{"name":"courseId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GetDatasetRefreshStatusResponse","description":null,"fields":[{"name":"lastRefresh","description":null,"args":[],"type":{"kind":"OBJECT","name":"DatasetRefreshLogRecord","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"current","description":null,"args":[],"type":{"kind":"OBJECT","name":"DatasetRefreshLogRecord","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GetEmissionsByScopeAndSourceResponse","description":null,"fields":[{"name":"totalNet","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalGross","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"emissions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ScopeSourceEmissions","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GetPossibleDataOverwritingKeysResponse","description":null,"fields":[{"name":"keys","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataOverwritingKeyMapping","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"defaultKey","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GetSuppliersPageResult","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Supplier","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"GetTagsByAccountIdInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"applicationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"GetTranspositionsInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"includeSystemLevel","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GetUserInfoByAccountIdResponse","description":null,"fields":[{"name":"users","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"paginationToken","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"GetValueInput","description":null,"fields":null,"inputFields":[{"name":"key","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"courseId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GovApiInfo","description":null,"fields":[{"name":"path","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"lastModified","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"GovApiInfoInput","description":null,"fields":null,"inputFields":[{"name":"path","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"lastModified","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"GovernanceAccessControls","description":null,"fields":[{"name":"legislation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"tagLevelLegislation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"policies","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"systems","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"targets","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"frameworks","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"agreements","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"GovernanceAccessControlsInput","description":null,"fields":null,"inputFields":[{"name":"legislation","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagLevelLegislation","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"policies","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"systems","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"targets","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"frameworks","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"agreements","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"GovernanceItemType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"LEGISLATION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"POLICY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MANAGEMENT_SYSTEM","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REPORTING_FRAMEWORK","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"VOLUNTARY_AGREEMENT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ASPECT","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"HazardousWasteTransactions","description":null,"fields":[{"name":"count","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"wasteTransactions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"WasteTransactionPageItem","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"HeatAndSteamDataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"HeatSteamTransactionPageItem","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"DataAnomaly","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"HeatConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"genKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tdKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttGenKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttTdKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"genKgCo2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tdKgCo2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"genKgCh4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tdKgCh4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"genKgN2o","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tdKgN2o","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"HeatConversionFactorPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"HeatConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"HeatSteamTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"HeatSteamTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"HeatSteamTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tariff","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tariffId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"supplier","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startTime","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endTime","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"quantity","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"ENUM","name":"Accuracy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCostVat","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"comment","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"energySource","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergySource","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"activity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionCO2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionN2O","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionCH4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"marketBasedCarbonScope2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"marketBasedCarbonScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYearOfFactors","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"HotelStayDataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"HotelStaysTransactionPageItem","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"DataAnomaly","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"HotelStaysConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"unit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"kgCO2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"HotelStaysConversionFactorPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"HotelStaysConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"HotelStaysTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"HotelStaysTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"HotelStaysTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hotelNights","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"homeWorkingDays","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uploadReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tariff","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dataProvider","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"ENUM","name":"Accuracy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYearOfHSFactors","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYearOfWFHFactors","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ImpactDashboardData","description":null,"fields":[{"name":"targetTotalEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"targetScopeBreakdown","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"PieChartData","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"targetEmissionsByScope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TimeSeriesDataPoint","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"targetEmissionsBySource","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TimeSeriesDataPoint","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"baselineTotalEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"baselineScopeBreakdown","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"PieChartData","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"baselineEmissionsByScope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TimeSeriesDataPoint","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"baselineEmissionsBySource","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TimeSeriesDataPoint","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"currentPeriodTotalEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currentPeriodScopeBreakdown","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"PieChartData","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"currentPeriodEmissionsByScope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TimeSeriesDataPoint","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"currentPeriodEmissionsBySource","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TimeSeriesDataPoint","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ImportLocationWithLocationPointsBatchResponse","description":null,"fields":[{"name":"success","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"errors","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ImportResult","description":null,"fields":[{"name":"created","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updated","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleted","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"ImportType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"File","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"Ftp","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"InOut","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"IN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"OUT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BOTH","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"InSiteBreeam","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"propertyId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"buildingId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"streetName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"town","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"localAuthority","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"latitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"longitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"easting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"northing","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coordinateReferenceSystem","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uprn","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"landArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"usage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ancientMonument","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"specialScientificInterest","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentOrganisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userEmail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"securityClassification","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reasonForArchivingARecord","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"listedBuilding","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"constructionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buildingCondition","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buildingConditionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"breeamRating","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"breeamCertificateRefNo","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteBreeamsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteBreeam","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteDec","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"propertyId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"buildingId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"streetName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"town","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"localAuthority","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"latitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"longitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"easting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"northing","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coordinateReferenceSystem","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uprn","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"landArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"usage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ancientMonument","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"specialScientificInterest","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentOrganisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userEmail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"securityClassification","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reasonForArchivingARecord","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"listedBuilding","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"constructionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buildingCondition","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buildingConditionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buildingRating","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"certificateReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"expiryDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"operationalRating","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"operatingRatingValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"certificateIssueDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"outOfScopeReason","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteDecsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteDec","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteDisposal","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"propertyId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"contractId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"streetName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"town","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"localAuthority","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"latitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"longitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"easting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"northing","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coordinateReferenceSystem","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uprn","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"landArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"usage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ancientMonument","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"specialScientificInterest","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentOrganisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userEmail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"securityClassification","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reasonForArchivingARecord","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"acquisitionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"physicalConstraints","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"contractFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"contractFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"valueType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"valuationDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"capitalExpenditure","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"futureDisposalDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"futurePropertyDisposalValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"costMaintainingSurplusProperty","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"pfiEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"surplusStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"disposalDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"statusOfSale","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"datePropertyDisposalReceiptClaimed","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"disposalMethod","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"disposalProceeds","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"embargoPeriodStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reasonForPropertyDisposal","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalSurplusLandArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatedHousingCapacity","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteDisposalsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteDisposal","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteEpc","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"propertyId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"buildingId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"streetName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"town","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"localAuthority","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"latitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"longitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"easting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"northing","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coordinateReferenceSystem","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uprn","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"landArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"usage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ancientMonument","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"specialScientificInterest","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentOrganisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userEmail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"securityClassification","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reasonForArchivingARecord","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"listedBuilding","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"constructionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buildingCondition","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buildingConditionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyRating","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyRatingValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"certificateReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"expiryDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"certificateIssueDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"outOfScopeReason","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteEpcsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteEpc","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteLandParcel","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"propertyId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"streetName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"town","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"localAuthority","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"latitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"longitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"easting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"northing","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coordinateReferenceSystem","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uprn","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"landArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"usage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ancientMonument","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"specialScientificInterest","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentOrganisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userEmail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"securityClassification","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reasonForArchivingARecord","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"conservationArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"titleNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteLandParcelsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteLandParcel","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteLease","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"propertyId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"contractId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"streetName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"town","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"localAuthority","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"latitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"longitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"easting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"northing","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coordinateReferenceSystem","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uprn","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"landArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"usage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ancientMonument","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"specialScientificInterest","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentOrganisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userEmail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"securityClassification","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reasonForArchivingARecord","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"acquisitionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"physicalConstraints","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"contractFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"contractFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"valueType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"valuationDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"capitalExpenditure","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"futureDisposalDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"futurePropertyDisposalValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"costMaintainingSurplusProperty","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"pfiEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"landlordName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"licence","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupancyAgreementExpiryDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"earliestLeaseOccupancyAgreementBreakDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"actualLeaseOccupancyAgreementBreakDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"leaseOccupancyAgreementBreakNoticeTerm","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupancyAgreementLastBreakDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupancyAgreementBreakPenalty","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postExpiryOccupancyAgreementStatus","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupancyPaymentFrequency","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rentReviewFrequency","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"repairLiability","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupancyAgreementReviewDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupancyAgreementStartDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteLeasesPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteLease","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteOccupancyFact","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"propertyId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"contractId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"streetName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"town","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"localAuthority","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"latitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"longitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"easting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"northing","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coordinateReferenceSystem","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uprn","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"landArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"usage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ancientMonument","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"specialScientificInterest","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentOrganisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userEmail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"securityClassification","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reasonForArchivingARecord","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"acquisitionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"physicalConstraints","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"contractFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"contractFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"valueType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"valuationDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"capitalExpenditure","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"futureDisposalDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"futurePropertyDisposalValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"costMaintainingSurplusProperty","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"pfiEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupationId","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rates","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"unitaryCharge","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalOperationalCosts","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalPropertyCosts","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteOccupancyFactsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteOccupancyFact","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteOccupation","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"propertyId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"contractId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"streetName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"town","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"localAuthority","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"latitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"longitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"easting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"northing","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coordinateReferenceSystem","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uprn","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"landArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"usage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ancientMonument","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"specialScientificInterest","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentOrganisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userEmail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"securityClassification","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reasonForArchivingARecord","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"acquisitionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"physicalConstraints","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"contractFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"contractFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"valueType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"valuationDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"capitalExpenditure","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"futureDisposalDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"futurePropertyDisposalValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"costMaintainingSurplusProperty","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"pfiEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tenure","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteOccupationsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteOccupation","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteVacantSpace","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"propertyId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"contractId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"primaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"secondaryPropertyNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"streetName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"town","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"localAuthority","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"latitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"longitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"easting","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"northing","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"coordinateReferenceSystem","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uprn","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"propertyFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"landArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"usage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ancientMonument","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"specialScientificInterest","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentOrganisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userEmail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"securityClassification","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reasonForArchivingARecord","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"acquisitionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"physicalConstraints","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"contractFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"contractFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"valueType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"valuationDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"capitalExpenditure","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"futureDisposalDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"futurePropertyDisposalValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"costMaintainingSurplusProperty","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"pfiEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"vacantSpaceFloorArea","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"vacantSpaceFloorAreaMeasurement","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"vacationDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"availableStartDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"availabilityEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupyingOrganisation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupierContactName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"occupierContactEmail","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InSiteVacantSpacesPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteVacantSpace","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InitiateDataUploadResponse","description":null,"fields":[{"name":"signedUrl","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"batchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InitiateLearnFileUploadResponse","description":null,"fields":[{"name":"url","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"contentPath","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"InsertOrganisationalHierarchyInput","description":null,"fields":null,"inputFields":[{"name":"ancestorId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"descendantId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"InsertOrganisationalUnitLocationAttachmentInput","description":null,"fields":null,"inputFields":[{"name":"organisationalUnitId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"IntegerQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportedInt","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"IntelligenceSubscription","description":null,"fields":[{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"subscriptions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"IntelligenceSubscriptionInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"subscriptions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InvestmentTransaction","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatch","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fund","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Fund","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fundCommitment","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fundOwnership","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fundRevenue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"asset","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Asset","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetFactorName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"assetFactorValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"assetFactorYear","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"assetFactorLink","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"assetRevenue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"assetRevenueDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"assetValuation","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentFund","description":null,"args":[],"type":{"kind":"OBJECT","name":"Fund","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentFundCommitment","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentFundOwnership","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatedFactorName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatedFactorValue","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"financedEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"comment","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fundCurrencyCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentFundCurrencyCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currencyCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"InvestmentTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InvestmentTransaction","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"JoinOperator","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"AND","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"OR","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"KnowledgeBase","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"publicToken","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"lastModified","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"versionNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"hasExpired","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"KnowledgeBaseDetails","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"externalID","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"synopsis","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"demoMode","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"KnowledgeBaseDetailsInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"externalID","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"synopsis","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"demoMode","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"LearnBundle","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"restricted","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"courses","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"isEngage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"LearnBundleEngage","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"restricted","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"courses","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"isBundleHidden","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isbBundleShow","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isMandatoryBundle","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isEngage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"LearnBundleEngageFull","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"restricted","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"courses","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Course","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"isBundleHidden","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isbBundleShow","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isMandatoryBundle","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isEngage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"LearnContentMetaDataInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"cpd","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"passScore","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"contentPath","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"LearnContentType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"categories","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"CourseCategory","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"assessmentId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"reactionId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isEngage","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"openIframe","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"url","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"LearnContentType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"PDF","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"VIDEO","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SCORM","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"URL","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"LearnSubscriptionInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"subscriptions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"bundleShow","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"bundleHidden","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"mandatoryBundleId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Legislation","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"synopsis","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"links","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"applicability","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"countries","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"LegislationCountryCode","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"LegislationType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"args":[],"type":{"kind":"ENUM","name":"RagStatus","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reviewDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"lastFlaggedForReview","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"lastClearedReviewFlag","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"apiData","description":null,"args":[],"type":{"kind":"OBJECT","name":"GovApiInfo","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tag","description":null,"args":[],"type":{"kind":"OBJECT","name":"Tag","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Tag","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"departmentIds","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"regions","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"tasks","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Task","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"priority","description":null,"args":[],"type":{"kind":"ENUM","name":"LegislationPriority","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"LegislationAlerts","description":null,"fields":[{"name":"expired","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Legislation","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"approaching","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Legislation","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"flagged","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Legislation","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"LegislationContentInput","description":null,"fields":null,"inputFields":[{"name":"applicability","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"reviewDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"type":{"kind":"ENUM","name":"RagStatus","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"priority","description":null,"type":{"kind":"ENUM","name":"LegislationPriority","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"lastClearedReviewFlag","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"departmentIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"regionIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"LegislationCountryCode","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ENG","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SCO","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"NIR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GBR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EUR","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"LegislationCreateInput","description":null,"fields":null,"inputFields":[{"name":"legislation","description":null,"type":{"kind":"INPUT_OBJECT","name":"LegislationInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"LegislationInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"synopsis","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"links","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"countries","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"LegislationCountryCode","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"LegislationType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"lastFlaggedForReview","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"apiData","description":null,"type":{"kind":"INPUT_OBJECT","name":"GovApiInfoInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"priority","description":null,"type":{"kind":"ENUM","name":"LegislationPriority","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"LegislationPriority","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"HIGH","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MEDIUM","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"NOTE_WORTHY","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"LegislationType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"LEGAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"VOLUNTARY","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"Licence","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"LicenceStatus","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"productId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ownerId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"updatedAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"LicenceStatus","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"NEW","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ACTIVATED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EXPIRED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BLOCKED","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"LinkButton","description":null,"fields":[{"name":"text","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"link","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"LiquidFuelEmissionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"unit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"totalKgCO2ePerUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"kgCO2eOfCO2PerUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"kgCO2eOfCH4PerUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"kgCO2eOfN2OPerUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"kgCH4PerUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"kgN2OPerUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"LiquidFuelTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LiquidFuelTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"LiquidFuelTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelConsumptionType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"volume","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"operationalControl","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"originalRowNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope1GhgEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope2GhgEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope3GhgEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"co2eEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"co2Emissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ch4InCo2Emissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"n2oInCo2Emissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ch4Emissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"n2oEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Location","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"address","description":null,"args":[],"type":{"kind":"OBJECT","name":"Address","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"OBJECT","name":"Account","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wasteOut","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wasteIn","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Tag","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"code","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buildingType","description":null,"args":[],"type":{"kind":"OBJECT","name":"BuildingType","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"tenure","description":null,"args":[],"type":{"kind":"OBJECT","name":"Tenure","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"args":[],"type":{"kind":"OBJECT","name":"Region","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"floorSpace","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"sharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"leaseRenewalDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"attributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSJSON","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"latitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"longitude","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"picture","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"enableProject","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displayOnImpactDashboard","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"LocationMetadataOptionInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"LocationMetadataOptionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"LocationMetadataOptionType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"REGION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TENURE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUILDINGTYPE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"LocationMetadataOptions","description":null,"fields":[{"name":"tenures","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Tenure","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"buildingTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"BuildingType","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"regions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Region","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INTERFACE","name":"LocationPoint","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dateCreated","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"aliases","description":null,"args":[{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Alias","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"EnergyIn","ofType":null},{"kind":"OBJECT","name":"EnergyOut","ofType":null},{"kind":"OBJECT","name":"EnergySourceLocationPoint","ofType":null}]},{"kind":"INPUT_OBJECT","name":"LocationPointInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dateCreated","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"LocationWithLocationPointsInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address1","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address2","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address3","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"city","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"coordinates","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"phone1","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"countryId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteOutId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteInId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"code","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"buildingType","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tenure","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"floorSpace","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sharedEmissionPercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"leaseRenewalDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"attributes","description":null,"type":{"kind":"SCALAR","name":"AWSJSON","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"enableProject","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"displayOnImpactDashboard","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"LocationsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"SCALAR","name":"Long","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ManagementSystem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"synopsis","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"GovernanceItemType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortCode","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"chapters","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ManagementSystemChapter","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"content","description":null,"args":[],"type":{"kind":"OBJECT","name":"ManagementSystemPageContent","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ManagementSystemChapter","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"number","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"synopsis","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"content","description":null,"args":[],"type":{"kind":"OBJECT","name":"ManagementSystemPageContent","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"chapters","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ManagementSystemChapter","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"Chapter","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ManagementSystemPageContent","description":null,"fields":[{"name":"headerButton","description":null,"args":[],"type":{"kind":"OBJECT","name":"LinkButton","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Mapping","description":null,"fields":[{"name":"columnName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transposition","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"MappingInput","description":null,"fields":null,"inputFields":[{"name":"columnName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"transposition","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"MarketCarbonConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"supplierId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"supplierName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"tariff","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"renewablePercentage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isGlobal","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountIds","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"generationFactor","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"wellToTankForGenerationFactor","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wellToTankForTransmissionAndDistributionFactor","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"transmissionAndDistributionFactor","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"MarketCarbonConversionFactorInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"supplierId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tariff","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"renewablePercentage","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isGlobal","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"generationFactor","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wellToTankForGenerationFactor","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wellToTankForTransmissionAndDistributionFactor","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"transmissionAndDistributionFactor","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"MaterialConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"material","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"origin","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"activity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"kgCO2e","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"MaterialConversionFactorPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"MaterialConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"MaterialDataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"MaterialsTransactionPageItem","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"DataAnomaly","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"MaterialsTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"MaterialsTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"MaterialsTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"activity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"material","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"origin","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"supplier","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"productCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"ENUM","name":"Accuracy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"unitsQuantity","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"weight","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"quantityUnit","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCostVat","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope1","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialSubcategory","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"materialDetails","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"materialDescription","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"subcontractor","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"distanceToLocation","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"percentRecycledContent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfDeliveries","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"certificationOrigin","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"MetadataInput","description":null,"fields":null,"inputFields":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"references","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"MultipleChoiceQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"variants","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"canSpecifyOwnChoice","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportedChoices","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Mutation","description":null,"fields":[{"name":"createProject","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"ProjectInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Project","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateProject","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"ProjectInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Project","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteProject","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createAccount","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AccountInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteAccount","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createDepartment","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AccountDepartmentInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteDepartment","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"departmentId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateAccount","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AccountInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadLogo","description":null,"args":[{"name":"input","description":null,"type":{"kind":"INPUT_OBJECT","name":"UploadLogoInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"publishAccountChanges","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importAssets","description":null,"args":[{"name":"assets","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AssetInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ImportResult","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importAssetConversionFactors","description":null,"args":[{"name":"assetFactors","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AssetFactorInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ImportResult","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createAuditEvent","description":null,"args":[{"name":"event","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AuditEventInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AuditEvent","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteDataImportBatch","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"DataImportBatch","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rollBackDataImportBatch","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"rollbackReason","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createDashboard","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DashboardInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"updateDashboard","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DashboardInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"saveDashboardSubscriptions","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DashboardSubscriptionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createPreSignedUploadLink","description":null,"args":[{"name":"key","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"batchType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scheduleDataOverwritingExecution","description":null,"args":[{"name":"strategyId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"batchId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"batchType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataOverwritingStrategy","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"cancelDataOverwritingExecution","description":null,"args":[{"name":"strategyId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"batchType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataOverwritingStrategy","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"initiateDataOverwriting","description":null,"args":[{"name":"key","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"batchType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"customDuplicationKey","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataOverwritingStrategy","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"publishDataOverwritingStrategyUpdate","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"batchType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataOverwritingStrategy","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"initiateDataUpload","description":null,"args":[{"name":"transactionType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isDirectActivity","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"transpositionId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InitiateDataUploadResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createNormalisers","description":null,"args":[{"name":"normalisers","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"NormaliserInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"CreateNormalisersResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateNormaliser","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"NormaliserInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"UpdateNormaliserResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"upsertCustomWasteHierarchy","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpsertCustomWasteHierarchyInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteHierarchy","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteCustomWasteHierarchy","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createAlias","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AliasInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Alias","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createAliases","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AliasInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Alias","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"updateAlias","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AliasInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Alias","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteAliasByIdAndType","description":null,"args":[{"name":"aliasId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"aliasType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createTarget","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"TargetInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"CreateTargetResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateTarget","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"TargetInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"UpdateTargetResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateTransactionDataImportBatchStatus","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createContainerType","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateContainerTypeInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ContainerType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getLocationExport","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createMarketCarbonConversionFactor","description":null,"args":[{"name":"factor","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"MarketCarbonConversionFactorInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"MarketCarbonConversionFactor","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateMarketCarbonConversionFactor","description":null,"args":[{"name":"factor","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"MarketCarbonConversionFactorInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"MarketCarbonConversionFactor","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteMarketCarbonConversionFactor","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"MarketCarbonConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"setAccountReportingYear","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"reportingYearId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"ReportingYear","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"approveUpload","description":null,"args":[{"name":"batchId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"triggerN3rgyImport","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"TriggerN3rgyImportInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"N3rgyImportStatusInfo","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"triggerExportTransactions","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"transactionType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ExportProgress","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"publishExportProgress","description":null,"args":[{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"ExportProgressPayload","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"upsertEmissionFactors","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"EmissionFactorInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteEmissionFactor","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteMyExport","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignoreDataAnomalies","description":null,"args":[{"name":"anomalyIds","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataAnomalyPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignoreFilteredDataAnomalies","description":null,"args":[{"name":"varianceReason","description":null,"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataAnomalyPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createAnomalyThreshold","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnomalyThresholdInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AnomalyThreshold","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateAnomalyThreshold","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnomalyThresholdInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AnomalyThreshold","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteAnomalyThreshold","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createDataTrackerConfig","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DataTrackerConfigInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataTrackerConfig","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateDataTrackerConfig","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DataTrackerConfigInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataTrackerConfig","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteDataTrackerConfig","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"updateDataTrackerValidationResults","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DataTrackerValidationResultInput","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"DataTrackerValidationResult","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"getZippedFileExport","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"ZippedFileExportInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createDocumentRecord","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateDocumentRecordInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteDocumentRecord","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteDocumentRecords","description":null,"args":[{"name":"ids","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"createDocumentFolder","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateDocumentFolderInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateDocumentFolder","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpdateDocumentFolderInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteDocumentFolders","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ids","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"initiateDromoUpload","description":null,"args":[{"name":"transactionType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dromoId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isDirectActivity","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"sendEmail","description":null,"args":[{"name":"input","description":null,"type":{"kind":"INPUT_OBJECT","name":"EmailInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createEnergySources","description":null,"args":[{"name":"energySources","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"EnergySourceInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergySource","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"updateEnergySource","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpdateEnergySource","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"EnergySource","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deleteEnergySource","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createEstatesConfiguration","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateEstatesConfigurationInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"updateEstatesConfiguration","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpdateEstatesConfigurationInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deleteEstatesConfiguration","description":null,"args":[{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"forecastYear","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deleteFlowSubscription","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"flowId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FlowSubscription","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createFlowSubscription","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"flowId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FlowSubscription","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importFunds","description":null,"args":[{"name":"funds","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"FundInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ImportResult","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importFundFMVs","description":null,"args":[{"name":"fundFMVs","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"FundFMVInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ImportResult","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createAspectOption","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AspectOptionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AspectOption","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteAspectOption","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AspectOptionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createLegislation","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"LegislationCreateInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Legislation","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateLegislation","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"LegislationCreateInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Legislation","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"savePolicy","description":null,"args":[{"name":"policy","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SavePolicyInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Policy","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createAspect","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AspectInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Aspect","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteAspect","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"setManagementSystemSubscription","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"subscriptions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"attachDocumentToManagementSystem","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AttachDocumentInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"attachDocumentToLegislation","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AttachDocumentInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"attachContentToManagementSystem","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AttachContentInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"attachContentToLegislation","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AttachLegislationContentInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"saveIntelligenceSubscriptions","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"IntelligenceSubscriptionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"IntelligenceSubscription","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createKnowledgeBase","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"KnowledgeBaseDetailsInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"KnowledgeBaseDetails","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateKnowledgeBase","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"KnowledgeBaseDetailsInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"KnowledgeBaseDetails","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"saveLearnSubscriptions","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"LearnSubscriptionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"AllLearnSubscriptions","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"saveLearnContentMetadata","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"LearnContentMetaDataInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Course","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"updateUserCourseProgress","description":null,"args":[{"name":"input","description":null,"type":{"kind":"INPUT_OBJECT","name":"UpdateUserCourseProgressInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"UserCourseMetaData","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"saveBanner","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SaveBannerInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Banner","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteBanner","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"saveLearnBundle","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SaveLearnBundleInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"LearnBundle","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createEvaluation","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateEvaluationInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Evaluation","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"completeEvaluation","description":null,"args":[{"name":"answers","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"evaluationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"courseId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"saveUserExclusion","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SaveUserExclusionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserExclusion","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"bulkUpdateExclusions","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"BulkUpdateExclusionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteLearnSubscription","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createBatchLicences","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateLicenceInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Licence","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"assignAccountLicence","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AssignAccountLicenceInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Licence","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assignBatchAccountLicence","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AssignAccountLicenceInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Licence","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"assignBatchLicences","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AssignLicenceInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Licence","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"trigerLicencesPaid","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Account","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deleteUserLicences","description":null,"args":[{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createAddress","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AddressInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Address","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createAddressBatch","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AddressInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"CreateAddressBatchResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateAddress","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AddressInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Address","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createEnergyIn","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"EnergyInInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergyIn","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateEnergyIn","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"EnergyInInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergyIn","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteEnergyIn","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createEnergyOut","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"EnergyOutInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergyOut","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateEnergyOut","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"EnergyOutInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergyOut","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteEnergyOut","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createLocationWithLocationPoints","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"LocationWithLocationPointsInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createLocationWithLocationPointsBatch","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"LocationWithLocationPointsInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ImportLocationWithLocationPointsBatchResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateLocationWithLocationPoints","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpdateLocationWithLocationPointsInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createLocationMetadataOption","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"LocationMetadataOptionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateLocationPoint","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"LocationPointInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INTERFACE","name":"LocationPoint","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createWasteIn","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteInInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateWasteIn","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteInInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"attachWasteInEwc","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteInEwcInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"detachWasteInEwc","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteInEwcInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"attachWasteInEwcPermitUpload","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteInEwcPermitUploadInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"detachWasteInEwcPermitUpload","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteInEwcPermitUploadInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createWasteInPermit","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteInPermitInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteInPermit","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateWasteInPermit","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteInPermitInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteInPermit","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteWasteInPermit","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"attachWasteInPermitTreatmentProcess","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteInPermitTreatmentProcessInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detachWasteInPermitTreatmentProcess","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createWasteOut","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteOutInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateWasteOut","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteOutInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"attachWasteInEWCAndTreatmentProcess","description":null,"args":[{"name":"input","description":null,"type":{"kind":"INPUT_OBJECT","name":"WasteInEWCTreatmentProcessInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detachWasteInEWCAndTreatmentProcess","description":null,"args":[{"name":"input","description":null,"type":{"kind":"INPUT_OBJECT","name":"WasteInEWCTreatmentProcessInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deleteLocationPoint","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteLocations","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationIds","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"upsertLocations","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpsertLocationsInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadLocationPicture","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UploadLocationPictureInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"buyProducts","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"BuyProductsInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Response","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"buySubscription","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"BuySubscriptionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Response","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createTemplate","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"TemplateInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Template","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateTemplate","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"TemplateInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Template","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadOcrDocument","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"OcrDocumentInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"markOcrDataAsReviewed","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createGasComposition","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateGasCompositionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importOilProducingAssets","description":null,"args":[{"name":"oilProducingAssets","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"OilProducingAssetInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ImportResult","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateOilProducingAsset","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpdateOilProducingAssetInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"upsertOrganisationalUnits","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"inputs","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpsertOrganisationalUnitInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"insertOrganisationalHierarchies","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"inputs","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"InsertOrganisationalHierarchyInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"insertOrganisationalUnitLocationAttachments","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"inputs","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"InsertOrganisationalUnitLocationAttachmentInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteOrganisationalHierarchy","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ancestorId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"descendantId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteOrganisationalUnitLocationAttachment","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnitId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"answerReportingQuestions","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AnswerReportingQuestionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"QuestionUnion","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"createProjectScheme","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SchemeInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Scheme","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"editProjectScheme","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SchemeEditInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Scheme","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteProjectScheme","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"setValue","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SetValueInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createSupplier","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SupplierInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Supplier","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateSupplier","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SupplierInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Supplier","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"upsertSuppliers","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"suppliers","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpsertSuppliersInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createSurveyTemplate","description":null,"args":[{"name":"template","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SurveyTemplateInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplate","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateSurveyTemplate","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"template","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SurveyTemplateInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplate","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateSurvey","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"survey","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SurveyInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Survey","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteSurveyTemplate","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteSurvey","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createSurveyTemplateSubscription","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"templateId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplateSubscription","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteSurveyTemplateSubscription","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"templateId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplateSubscription","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createSurvey","description":null,"args":[{"name":"survey","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SurveyInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Survey","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"setSurveySubmission","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"surveyId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"submission","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SurveySubmissionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveySubmission","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"setSurveyContributorTag","description":null,"args":[{"name":"surveyId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deleteSurveySubmission","description":null,"args":[{"name":"submissionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createSurveyQuestionCategory","description":null,"args":[{"name":"category","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SurveyQuestionCategoryInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyQuestionCategory","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateSurveyQuestionCategory","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"category","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SurveyQuestionCategoryInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyQuestionCategory","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteSurveyQuestionCategory","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyQuestionCategory","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateSurveyQuestion","description":null,"args":[{"name":"question","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SurveyQuestionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyQuestion","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"sendFeedbackOnSurveySubmission","description":null,"args":[{"name":"submissionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"SurveySubmissionFeedbackStatus","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"feedback","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveySubmission","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"unlockContributor","description":null,"args":[{"name":"campaignId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UnlockContributorResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createTag","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateTagInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Tag","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"updateTag","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpdateTagInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Tag","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"updateLocationTag","description":null,"args":[{"name":"input","description":null,"type":{"kind":"INPUT_OBJECT","name":"UpdateLocationTagInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createTask","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"TaskInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Task","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createTaskEvidence","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"TaskEvidenceInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Task","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateTask","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"TaskInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Task","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteTask","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Task","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createTransposition","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateTranspositionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Transposition","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteTransposition","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DeleteTranspositionInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Transposition","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createUser","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateUserInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createUsers","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"CreateUserInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"CreateUsersResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteUser","description":null,"args":[{"name":"username","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateUser","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UpdateUserInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateUserProfile","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UserProfileInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateUserRoles","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UserRolesInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"publishUserChanges","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"resendEmail","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"ResendEmailInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ResendEmailResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"setUserDisabled","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"disabled","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"resetUserPassword","description":null,"args":[{"name":"username","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"password","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"uploadProfilePicture","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UploadProfilePictureInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createUserAccessPolicy","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UserAccessPolicyInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserAccessPolicy","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateUserAccessPolicy","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UserAccessPolicyInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserAccessPolicy","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteUserAccessPolicy","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createUserGroup","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UserGroupInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserGroup","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createUserGroups","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"inputs","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UserGroupInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateUserGroup","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"UserGroupInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserGroup","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deleteUserGroup","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createWasteStream","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteStreamInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteStream","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"editWasteStream","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteStreamInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteStream","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createWasteContractor","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteContractorInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteContractor","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updateWasteContractor","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"WasteContractorInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteContractor","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"MysqlUser","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"firstName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"lastName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"email","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isDisabled","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accessLevel","description":null,"args":[],"type":{"kind":"ENUM","name":"Scope","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"allowedLocations","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"allowedTags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"role","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"jobTitle","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"phone","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"mobile","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"department","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"profilePicture","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"lastActiveAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalTimeSpentMs","description":null,"args":[],"type":{"kind":"SCALAR","name":"Long","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accountName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"readonly","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isExternalUser","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"disableAccountSelector","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userGroupName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"N3rgyConsentStatus","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"REQUESTED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FAILED_TO_REQUEST","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GRANTED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REJECTED","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"N3rgyImportStatusInfo","description":null,"fields":[{"name":"mpxn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfUploadedMeterReadings","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"missingDataTimestamps","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"errorMessage","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"NamedEntity","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"NamedEntityInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"NaturalGasConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"consumptionKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wttKgCo2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Normaliser","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"OBJECT","name":"Location","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"quantity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"OBJECT","name":"NormaliserType","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"NormaliserInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"quantity","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"NormaliserType","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scopes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"Scope","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Normalisers","description":null,"fields":[{"name":"normalisers","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Normaliser","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"NormalisersPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Normaliser","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Notification","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"message","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isVisible","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"NumberFilter","description":null,"fields":null,"inputFields":[{"name":"field","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"ENUM","name":"FilterStrategy","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DataType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filter","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterTo","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"condition1","description":null,"type":{"kind":"INPUT_OBJECT","name":"NumberFilter","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"condition2","description":null,"type":{"kind":"INPUT_OBJECT","name":"NumberFilter","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"conditions","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"NumberFilter","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"operator","description":null,"type":{"kind":"ENUM","name":"JoinOperator","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"OcrDocumentInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"parserId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fileContent","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"utility","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"OcrUtility","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"OcrOutput","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"utility","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"OcrUtility","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedBy","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"quantity","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reading","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tariff","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"OcrUtility","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ELECTRICITY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"HEATSTEAM","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"OilProducingAsset","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"countryName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"operation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"OilProducingAssetOperation","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"jointVenture","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"equityShare","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasConsumption","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"flaredGas","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"liquidFuelCombustion","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fugitiveEmissions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"releaseValves","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"platforms","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"products","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"OilProducingAssetProducts","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updatedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createdBy","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"updatedBy","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"OilProducingAssetInput","description":null,"fields":null,"inputFields":[{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"operation","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"OilProducingAssetOperation","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"jointVenture","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"equityShare","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasConsumption","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"flaredGas","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"liquidFuelCombustion","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fugitiveEmissions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"releaseValves","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"platforms","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"products","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"OilProducingAssetProducts","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"OilProducingAssetOperation","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"OWNER_OPERATED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"THIRD_PARTY","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"OilProducingAssetPage","description":null,"fields":[{"name":"items","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OilProducingAsset","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"OilProducingAssetProducts","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"OIL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"OIL_GAS","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"OilTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OilTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"OilTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"oilProductionBbl","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasExportKscf","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"waterProductionBbl","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasProductionKscf","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasInjectionKscf","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasKscf","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"flareGasKscf","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"prodWaterOverboardBwpd","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"oilInWaterPpm","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"mBoeAllPerDay","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"mBoeGasPerDay","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasT","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"flareGasT","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ventingT","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fugitiveEmissionsT","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"gasCompositionId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope1GhgEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope2GhgEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope3GhgEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"monthlyAverageWaterLimitPPM1","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"monthlyAverageWaterLimitP65","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"oilDischargeBpd","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherParticulatesT","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dataMarker","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasTCO2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasTCO2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasTCH4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasTN2O","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"flareGasTCO2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"flareGasTCO2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"flareGasTCH4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"flareGasTN2O","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ventingTCO2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ventingTCH4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fugitiveEmissionsTCO2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fugitiveEmissionsTCO2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fugitiveEmissionsTCH4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherParticulatesTNOx","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherParticulatesTSOx","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherParticulatesTCO","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherParticulatesTpm25","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"OpenEndedQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportedText","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"OpenEndedRichQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportedText","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"OrganisationalHierarchiesPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OrganisationalHierarchy","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"OrganisationalHierarchy","description":null,"fields":[{"name":"ancestor","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OrganisationalUnit","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"descendant","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OrganisationalUnit","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"depth","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"OrganisationalUnit","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"OrganisationalUnitLocationAttachment","description":null,"fields":[{"name":"organisationalUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OrganisationalUnit","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"OrganisationalUnitLocationAttachmentsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OrganisationalUnitLocationAttachment","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"OrganisationalUnitsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OrganisationalUnit","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INTERFACE","name":"Page","description":null,"fields":[{"name":"count","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasNextPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasPreviousPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isFirstPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isLastPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"totalItemCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"ContainerTypeSizePage","ofType":null},{"kind":"OBJECT","name":"ContractorsPage","ofType":null},{"kind":"OBJECT","name":"DataImportBatchPage","ofType":null},{"kind":"OBJECT","name":"SupplierPage","ofType":null},{"kind":"OBJECT","name":"WasteStreamsPaged","ofType":null}]},{"kind":"OBJECT","name":"PaginatedCourses","description":null,"fields":[{"name":"isLastPage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"pageNo","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"pageCount","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalItemCount","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"section","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"data","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Course","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"learnBundleList","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LearnBundleEngage","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"PartitionCommand","description":null,"fields":null,"inputFields":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"partitionFunction","description":null,"type":{"kind":"ENUM","name":"PartitionFunction","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"alias","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"PartitionFunction","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"MONTH","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"YEAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FINANCIAL_YEAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"QUARTER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PERIOD","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"PieChartData","description":null,"fields":[{"name":"series","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"PieChartItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"drilldown","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"PieChartDrilldownItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"PieChartDrilldownItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"relativeValue","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"absoluteValue","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"PieChartItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"relativeValue","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"absoluteValue","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Policy","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"version","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reviewDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"PolicyOverview","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"version","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reviewDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Product","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"stripeId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"price","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"productType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"image","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"active","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ProductContent","description":null,"fields":[{"name":"itemList","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Product","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"bundlesList","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LearnBundleEngageFull","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"coursesList","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Course","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"managementSystemList","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Legislation","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ProductPage","description":null,"fields":[{"name":"content","description":null,"args":[],"type":{"kind":"OBJECT","name":"ProductContent","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"pageCount","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"count","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfElements","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"hasPreviousPage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isLastPage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isFirstPage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Progress","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"remainingEstimate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Project","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"owners","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"priority","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"ProjectPriority","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scheme","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Scheme","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"impact","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"cost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currencyId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"baselineStartDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"frequency","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"plannedBenefit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"plannedCostChange","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"plannedCO2eChange","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tasks","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Task","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceNotes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ProjectEvidenceNotes","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"meters","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergySource","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"ProjectEvidenceInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ProjectEvidenceNotes","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"ProjectInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"owners","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"priority","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"ProjectPriority","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"schemeId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"impact","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"cost","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"currencyId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"baselineStartDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"frequency","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"plannedBenefit","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"plannedCostChange","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"plannedCO2eChange","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"evidenceNotes","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"ProjectEvidenceInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"meters","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"ProjectPriority","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"LOW","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MEDIUM","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"HIGH","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"PromotionCode","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"code","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DiscountType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"discount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"couponId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ProuctLicenceCount","description":null,"fields":[{"name":"productId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"count","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"ProuctLicenceStatusCount","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ProuctLicenceStatusCount","description":null,"fields":[{"name":"status","description":null,"args":[],"type":{"kind":"ENUM","name":"LicenceStatus","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"count","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"PublicUserInfo","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"first_name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"last_name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"profilePicture","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"PurchaseType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"DIRECT_PURCHASED_DIRECTLY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DIRECT_BROKER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DIRECT_INTERCOMPANY_TRADE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INDIRECT_PURCHASED_BY_SUBCONTRACTOR_OR_CONTRACTOR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INDIRECT_BACKCHARGED_BY_CLIENT_OR_LANDLORD","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INDIRECT_FREE_ISSUE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"Query","description":null,"fields":[{"name":"getProject","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Project","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getProjects","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Project","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getProjectFilters","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAccountInfo","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAccounts","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AccountPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAssetsPageByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AssetPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAssetsPageByAccountIdFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAssetFactorsByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AssetFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getGicsCodes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Code","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAuditByEntityId","description":null,"args":[{"name":"entityId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AuditEvent","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getBuildingEnergyRatingsByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"BuildingEnergyRatingsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getBuildingEnergyRatingsFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"getElectricityConversionFactors","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ElectricityConversionFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getElectricityConversionFactorsFilter","description":null,"args":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getFuelConversionFactors","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FuelConversionFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getFuelConversionFactorsFilter","description":null,"args":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getGasConversionFactors","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GasConversionFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getGasConversionFactorsFilter","description":null,"args":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getHeatConversionFactors","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"HeatConversionFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getHeatConversionFactorsFilter","description":null,"args":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getRefrigerantConversionFactors","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"RefrigerantConversionFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getRefrigerantConversionFactorsFilter","description":null,"args":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getWaterConversionFactors","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WaterConversionFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWaterConversionFactorsFilter","description":null,"args":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getHotelStaysConversionFactors","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"HotelStaysConversionFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getHotelStaysConversionFactorsFilter","description":null,"args":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getMaterialConversionFactors","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"MaterialConversionFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getMaterialConversionFactorsFilter","description":null,"args":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getTransportConversionFactors","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TransportConversionFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getTransportConversionFactorsFilter","description":null,"args":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDashboard","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Dashboard","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllDashboards","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Dashboard","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDashboardSubscriptions","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getSubscribedDashboards","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Dashboard","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getEmissionsPercentageBreakdownByScope","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnitIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"from","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"to","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"excludeScope","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"PieChartData","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getTotalEmissions","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnitIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"from","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"to","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"excludeScope","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getEmissionsBySource","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnitIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"timeGranularity","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TimeGranularity","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"from","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"to","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"excludeScope","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TimeSeriesDataPoint","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getEmissionsByScope","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnitIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"timeGranularity","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TimeGranularity","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"from","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"to","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"excludeScope","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TimeSeriesDataPoint","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getEmissionsByScopeAndSource","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"from","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"to","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"excludeScope","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GetEmissionsByScopeAndSourceResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getEmissionsNetAndGross","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"timeGranularity","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TimeGranularity","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"from","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"to","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"excludeScope","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TimeSeriesDataPoint","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataQualityPercentage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"from","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"to","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataQualityPercentage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getTotalConsumption","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"from","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"to","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getDashboardTileData","description":null,"args":[{"name":"datasetName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"datasetFilters","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"DatasetFilters","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"aggregation","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AggregationCommand","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DashboardTileData","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteTransactionsReportingPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"hiddenColumns","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteTransactionReportingPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteTransactionsReportingPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDatasetRefreshStatus","description":null,"args":[{"name":"datasetName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GetDatasetRefreshStatusResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getTransportTransactionReportingPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"hiddenColumns","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TransportTransactionReportingPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getTransportTransactionReportingPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getEmissionsDatabasePage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EmissionsDatabasePage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getEmissionsDatabaseFilters","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getImpactDashboardData","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"targetStartDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"targetEndDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"baselineStartDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"baselineEndDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"currentPeriodStartDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"currentPeriodEndDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDate","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"excludeScope","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnitIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ImpactDashboardData","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getBusinessAnalyticsDashboardData","description":null,"args":[{"name":"datasetName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DashboardTileData","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getPossibleDataOverwritingKeys","description":null,"args":[{"name":"batchType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GetPossibleDataOverwritingKeysResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWaterTransactionPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"hiddenColumns","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WaterTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWaterTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataImportBatchesByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"search","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatchPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataImportBatchesPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatchGridPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataImportBatchById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"DataImportBatch","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getDataImportBatchImportFileUrl","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getCarbonConversionFactorsByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ewcId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INTERFACE","name":"CarbonConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getMarketCarbonConversionFactors","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"MarketCarbonConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getEnergySourceByAccountIdAndType","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"ENUM","name":"TransactionType","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergySourceBatchPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getEnergySourcePageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getEnergySourceById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergySource","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getEnergySourcesByIds","description":null,"args":[{"name":"ids","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergySource","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getContainerTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ContainerType","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteHierarchiesByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteHierarchy","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteHierarchiesPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteHierarchyPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDefaultWasteHierarchyByWasteTreatmentId","description":null,"args":[{"name":"treatmentProcessId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"WasteHierarchy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getTransportTransactionPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"hiddenColumns","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TransportTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getTransportTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAliasesPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"aliasType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"energyType","description":null,"type":{"kind":"ENUM","name":"TransactionType","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AliasesPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAliasByIdAndType","description":null,"args":[{"name":"aliasId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"aliasType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"AliasType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"energyType","description":null,"type":{"kind":"ENUM","name":"TransactionType","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Alias","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getNormaliserById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Normaliser","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getNormalisersByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Normaliser","ofType":null}}}},"isDeprecated":true,"deprecationReason":"Use `getNormalisersPage` instead."},{"name":"getNormalisersPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NormalisersPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getNormalisersPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getNormaliserTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NormaliserType","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getTargetTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getTargetTopics","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TargetTopic","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getTargetsByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Target","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"getTargetById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Target","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getAllUnits","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllJourneyTargets","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllFuelTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllTransportFuelTypes","description":null,"args":[{"name":"typeId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllTransportSubTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllTransportTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TransportType","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllAccuracyTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllCurrencyTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getMaterialsByAccountID","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllMaterialOriginTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getFuelTransactionPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FuelTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getFuelTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getReportingYears","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ReportingYear","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getBatchErrorsByBatchId","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportError","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAccountSectors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AccountSector","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAccountSectorById","description":null,"args":[{"name":"sectorId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AccountSector","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getElectricityConsumption","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"from","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"to","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"timeGranularity","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"ElectricityConsumptionTimeGranularity","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnitIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ElectricityConsumptionDataPoint","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"downloadMyExport","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getApiConversionFactors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ApiConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getEmissionFactorsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EmissionFactorPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getEmissionFactorsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataAnomaliesByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataAnomalyPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataAnomaliesFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAnomalyThreshold","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AnomalyThreshold","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAnomalyThresholds","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AnomalyThresholdsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataTrackerAnomalyFilters","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataTrackerConfig","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataTrackerConfig","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataTrackerConfigs","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataTrackerConfigsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataTrackerConfigFilters","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataTrackerValidationResults","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isIgnored","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataTrackerValidationResultsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDataTrackerValidationFilters","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDocumentRecordsForReview","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDocumentRecordById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDocumentRecordsByIds","description":null,"args":[{"name":"ids","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDocumentsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDocumentsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"library","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"category","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDocumentUploadLink","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"documentId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"mimeType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDocumentFolders","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentFolder","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getDocumentFolder","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentFolder","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDocumentDownloadLink","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"documentId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getDromoSchema","description":null,"args":[{"name":"transactionType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"SCALAR","name":"AWSJSON","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getElectricityTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ElectricityTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllEnergyType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"getEstatesConfiguration","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":"0","isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":"25","isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":"[]","isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":"{}","isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EstatesConfigurationPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getEstatesConfigurationById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"EstatesConfiguration","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getEstatesConfigurationFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getFlowSubscriptions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FlowSubscription","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getFlows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Flow","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getFundsByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FundPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getFundsFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getFundFMVsByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FundFMVPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getFundFMVsFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getGasTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GasTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getEnergyTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"energyType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllLegislation","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Legislation","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getLegislationById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Legislation","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getPoliciesByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"PolicyOverview","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAspectsByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AspectsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAspectById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Aspect","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getPolicyById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Policy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getManagementSystemById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ManagementSystem","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAvailableManagementSystems","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"ENUM","name":"GovernanceItemType","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ManagementSystem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getManagementSystemSubscription","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllManagementSystems","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ManagementSystem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getLegislationAlerts","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LegislationAlerts","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAspectsAlerts","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AspectsAlerts","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAspectOptions","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"ENUM","name":"AspectOptionType","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"AspectOption","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAspectFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getHeatSteamTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"HeatSteamTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getHeatSteamTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"energyType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getHotelStaysTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"HotelStaysTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getHotelStaysTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAvailableKnowledgeBases","description":null,"args":[{"name":"accessToken","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"KnowledgeBase","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getLandbotId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteLandParcelsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteLandParcelsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteLandParcelsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteBreeamsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteBreeamsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteBreeamsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteDecsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteDecsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteDecsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteEpcsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteEpcsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteEpcsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteLeasesPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteLeasesPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteLeasesPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteDisposalsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteDisposalsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteDisposalsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteVacantSpacesPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteVacantSpacesPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteVacantSpacesPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteOccupationsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteOccupationsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteOccupationsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteOccupancyFactsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InSiteOccupancyFactsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInSiteOccupancyFactsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getIntelligenceSubscriptions","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getKnowledgeBasesForAccount","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"KnowledgeBaseDetails","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllKnowledgeBases","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"KnowledgeBaseDetails","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getInvestmentTransactionsByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"InvestmentTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getInvestmentTransactionsFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllLearnSubscriptions","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"AllLearnSubscriptions","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getAvailableCourses","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"pageNumber","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ownedCourses","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"PaginatedCourses","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllCourses","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"PaginatedCourses","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getLearnProgressLogByUserId","description":null,"args":[{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"type":{"kind":"ENUM","name":"CourseProgress","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserCourseMetaData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"searchCourses","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"searchTerm","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"pageNumber","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"section","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"PaginatedCourses","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getCourseById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Course","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getUserCourse","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"bundleId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"courseId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Course","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getScormCourseById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Course","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getBanner","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Banner","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getBanners","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"includeHidden","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Banner","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"initiateLearnFileUpload","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"InitiateLearnFileUploadResponse","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"initiateScormFileUpload","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"files","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"ScormFileMetadata","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"InitiateLearnFileUploadResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllLearnBundles","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"LearnBundle","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getBundleById","description":null,"args":[{"name":"bundleId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LearnBundleEngage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getLearnBundleById","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"bundleId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LearnBundleEngage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getLearnBundlesForAccount","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LearnBundleEngage","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllEvaluations","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Evaluation","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getEvaluationById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Evaluation","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getExclusionByUserId","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserExclusion","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getExclusionsByAccountId","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserExclusion","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getLearnWorldsUrl","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAccountLicences","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Licence","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getProductLicences","description":null,"args":[{"name":"productId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Licence","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getLicencesByProductAndAccount","description":null,"args":[{"name":"productId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Licence","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAccountProductLicencesCount","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ProuctLicenceCount","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllAddresses","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Address","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"getEnergyInById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergyIn","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getEnergyOutById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EnergyOut","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getLocationById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getLocationPointById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INTERFACE","name":"LocationPoint","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteDestinationById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteDestination","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteInById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteInsByAccountId","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteInPermitById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteInPermit","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteOutById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteOutsByAccountId","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getLocationOperationTypeById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllLocationOperationTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getLocationTypeByName","description":null,"args":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteInEwcById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteInEwc","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllFacilityPermitTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getFacilityPermitTypeById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getLocationsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"withCoordinatesOnly","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LocationsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getLocationsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllCountries","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Country","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getLocationMetadataOptionsForAccount","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LocationMetadataOptions","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getProductsPaged","description":null,"args":[{"name":"page","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"size","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"ProductPage","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getPromotionCode","description":null,"args":[{"name":"code","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"PromotionCode","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getMaterialsTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"MaterialsTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getMaterialsTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getS3C1ActivityBasedMaterialTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"S3C1ActivityBasedMaterialTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getS3C1ActivityBasedMaterialTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getS3C1SpendBasedMaterialTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"S3C1SpendBasedMaterialTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getS3C1SpendBasedMaterialTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getTemplateById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Template","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllTemplates","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Template","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getOcrDataForAccount","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"utility","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"OcrUtility","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OcrOutput","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getUncertaintiesBackground","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UncertaintiesBackground","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getGasComposition","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GasCompositionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getGasCompositionUncertainties","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GasCompositionUncertaintyPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getOilTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OilTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getSalesDataTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SalesDataTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getSalesDataTransactionFilters","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getGasCompositionFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getGasCompositionUncertaintiesFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getOilTransactionFilters","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getOilProducingAssetsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sortBy","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sortOrder","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OilProducingAssetPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getLiquidFuelTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LiquidFuelTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getLiquidFuelTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getLiquidFuelEmissionFactors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"LiquidFuelEmissionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getOrganisationalUnitsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OrganisationalUnitsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getOrganisationalHierarchiesPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OrganisationalHierarchiesPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getOrganisationalUnitLocationAttachmentsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"OrganisationalUnitLocationAttachmentsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getOrganisationalUnitsForFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"source","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getProjectCategories","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getProjectCategoriesByIds","description":null,"args":[{"name":"ids","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getQuicksightDashboard","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"QuicksightDashboardInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getUploadSummaryDashboard","description":null,"args":[{"name":"uploadType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"batchId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getQuicksightPreloaderDashboard","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getRefrigerantTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"RefrigerantTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getRefrigerantTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getRefrigerantGasTypes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getRefrigerantGasGroups","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getReportingQuestions","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"frameworkId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"chapterId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"QuestionUnion","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getReportProgressChapterBreakdown","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"frameworkId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ReportProgress","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getReportProgressGroupBreakdown","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"frameworkId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"groupId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ReportProgress","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getProjectScheme","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Scheme","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getProjectSchemes","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Scheme","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getProjectSchemesPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SchemePage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getProjectSchemesByIds","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ids","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Scheme","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getValue","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"GetValueInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllCourseData","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"GetAllDataInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"ScormKeyValue","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"getSuppliers","description":null,"args":[{"name":"page","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"orderDir","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterExpression","description":null,"type":{"kind":"ENUM","name":"FILTEREXPRESSION","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterValue","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterBy","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"utility","description":null,"type":{"kind":"ENUM","name":"TransactionType","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SupplierPage","ofType":null}},"isDeprecated":true,"deprecationReason":"Does not support Filters and SortCommand\'s"},{"name":"getSuppliersPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GetSuppliersPageResult","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getSupplier","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Supplier","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getSurveyTemplates","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplate","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getSurveyTemplatesByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplate","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getSurveysPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveysPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getReceivedSurveysPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ReceivedSurveysPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getReceivedSurveysPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getSurveysPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getQuestions","description":null,"args":[{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyQuestionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getQuestionsFilter","description":null,"args":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getSurveyLatest","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Survey","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getSurveyById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Survey","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getReceivedSurveyById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userGroupId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"ReceivedSurvey","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getSurveyTemplateSubscriptions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplateSubscription","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getSurveySubmissionById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveySubmission","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getMySurveyContributors","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"SurveyContributor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getMySurveyContributorById","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"contributorAccountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"contributorUserId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"contributorUserGroupId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"SurveyContributor","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getSurveyQuestionCategories","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyQuestionCategory","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getTagsByAccountId","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"GetTagsByAccountIdInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Tag","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getTaskById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Task","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getTasksByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Task","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getTasksByUserId","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Task","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getTranspositionById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Transposition","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getTranspositionsByAccountId","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"GetTranspositionsInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Transposition","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"getNotifications","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Notification","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getUserInfoById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getUsersByIds","description":null,"args":[{"name":"ids","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"getUserInfoByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"paginationToken","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":"null","isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"GetUserInfoByAccountIdResponse","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getUserRoles","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Role","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getUsers","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getUsersFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getUserAccessPoliciesPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserAccessPoliciesPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getUserGroupsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserGroupsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getUserGroupById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserGroup","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteStreamsByAccountId","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterValue","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteStreamsPaged","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllEWCs","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EWC","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getContainerTypeSizePage","description":null,"args":[{"name":"page","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"orderDir","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterValue","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ContainerTypeSizePage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllWasteTreatmentProcesses","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteTreatmentProcess","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteTreatmentProcessById","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteTreatmentProcess","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getAllWasteContractors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteContractor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteContractorsPaged","description":null,"args":[{"name":"page","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"orderDir","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterExpression","description":null,"type":{"kind":"ENUM","name":"FILTEREXPRESSION","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterValue","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterBy","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ContractorsPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteTransactionsPage","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"offset","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"limit","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sort","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SortCommand","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filters","description":null,"type":{"kind":"INPUT_OBJECT","name":"Filters","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"hiddenColumns","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteTransactionPage","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getWasteTransactionsPageFilter","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"FilterData","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"getAliasByValueBatch","description":null,"args":[{"name":"input","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"AliasValueBatchInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"AliasBatchResults","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"getCountMissingConsignmentNotes","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getCountMissingWasteTransferNotes","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getHazardousWasteTransactions","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"HazardousWasteTransactions","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"getHazardousWasteTransactionsWithNoLinkedConsignmentNotes","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"HazardousWasteTransactions","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Question","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"text","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"answers","description":null,"args":[{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"courseId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Answer","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"QuestionDisplaySettings","description":null,"fields":[{"name":"colSpan","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"showFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"QuestionInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"text","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"QuestionSequence","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"questions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"QuestionUnion","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"QuestionSequenceRepeatable","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportedRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SequenceRepeatableQuestionRow","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"questions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"QuestionUnion","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"UNION","name":"QuestionUnion","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"ChoiceQuestion","ofType":null},{"kind":"OBJECT","name":"MultipleChoiceQuestion","ofType":null},{"kind":"OBJECT","name":"YesNoQuestion","ofType":null},{"kind":"OBJECT","name":"OpenEndedQuestion","ofType":null},{"kind":"OBJECT","name":"OpenEndedRichQuestion","ofType":null},{"kind":"OBJECT","name":"IntegerQuestion","ofType":null},{"kind":"OBJECT","name":"FloatQuestion","ofType":null},{"kind":"OBJECT","name":"DateQuestion","ofType":null},{"kind":"OBJECT","name":"QuestionSequence","ofType":null},{"kind":"OBJECT","name":"QuestionSequenceRepeatable","ofType":null},{"kind":"OBJECT","name":"BreakdownQuestion","ofType":null},{"kind":"OBJECT","name":"AttachmentQuestion","ofType":null}]},{"kind":"INPUT_OBJECT","name":"QuicksightDashboardInput","description":null,"fields":null,"inputFields":[{"name":"username","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dashboardId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"RagStatus","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"NOTAPPLICABLE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INDIRECTLYAPPLICABLE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"NONCOMPLIANT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"COMPLIANCERISK","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"COMPLIANT","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"ReceivedSurvey","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"template","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplate","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"submission","description":null,"args":[],"type":{"kind":"OBJECT","name":"SurveySubmission","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deadlineDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"owner","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"lockedBy","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"feedbackEnabled","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"automatedScoring","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isIndividualContributor","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isUserGroupContributor","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ReceivedSurveysPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ReceivedSurvey","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"RefrigerantConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"kgCO2e","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"gasName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasGroupName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"RefrigerantConversionFactorPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"RefrigerantConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"RefrigerantDataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"RefrigerantTransactionPageItem","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"DataAnomaly","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"RefrigerantTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"RefrigerantTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"RefrigerantTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"gasGroup","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gasType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dataProvider","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"quantity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"quantityUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"Accuracy","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"comment","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope1","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Region","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"RelativeDateDefault","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"TODAY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"YESTERDAY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"START_OF_CURRENT_YEAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"END_OF_CURRENT_YEAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"START_OF_LAST_YEAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"END_OF_LAST_YEAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"START_OF_CURRENT_MONTH","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"END_OF_CURRENT_MONTH","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"START_OF_LAST_MONTH","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"END_OF_LAST_MONTH","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"START_OF_CURRENT_QUARTER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"END_OF_CURRENT_QUARTER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"START_OF_LAST_QUARTER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"END_OF_LAST_QUARTER","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"ReportProgress","description":null,"fields":[{"name":"totalProgress","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"subProgressBreakdown","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ReportSubProgressBreakdownItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ReportSubProgressBreakdownItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"progress","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INTERFACE","name":"ReportingQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"AttachmentQuestion","ofType":null},{"kind":"OBJECT","name":"BreakdownQuestion","ofType":null},{"kind":"OBJECT","name":"ChoiceQuestion","ofType":null},{"kind":"OBJECT","name":"DateQuestion","ofType":null},{"kind":"OBJECT","name":"FloatQuestion","ofType":null},{"kind":"OBJECT","name":"IntegerQuestion","ofType":null},{"kind":"OBJECT","name":"MultipleChoiceQuestion","ofType":null},{"kind":"OBJECT","name":"OpenEndedQuestion","ofType":null},{"kind":"OBJECT","name":"OpenEndedRichQuestion","ofType":null},{"kind":"OBJECT","name":"QuestionSequence","ofType":null},{"kind":"OBJECT","name":"QuestionSequenceRepeatable","ofType":null},{"kind":"OBJECT","name":"YesNoQuestion","ofType":null}]},{"kind":"OBJECT","name":"ReportingYear","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"ResendEmailInput","description":null,"fields":null,"inputFields":[{"name":"username","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"password","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ResendEmailResponse","description":null,"fields":[{"name":"username","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Response","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"RioModule","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"HOME","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ENGAGE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GOVERNANCE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DATA","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SURVEYS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REPORTING","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INTELLIGENCE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CONFIGURATION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DOCUMENTS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TASKS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SUPPORT","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"Role","description":null,"fields":[{"name":"role","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UserRole","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"permissions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserPermissions","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"restrictedAccess","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"readonly","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"S3C1ActivityBasedMaterialTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"S3C1ActivityBasedMaterialTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"S3C1ActivityBasedMaterialTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationCountry","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationRegion","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"factorSet","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"subtype1","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"subtype2","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"subtype3","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"weight","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"weightUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"weightInKg","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"weightUnitToKgConversionFactor","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"unitsQuantity","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"supplier","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"factorKey","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scope3Emission","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"emissionFactorValue","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"productCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"materialDescription","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"percentRecycledContent","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"distanceToSite","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfDeliveries","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"originOfCertification","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"origin","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"subcontractor","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"S3C1SpendBasedMaterialTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"S3C1SpendBasedMaterialTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"S3C1SpendBasedMaterialTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locationCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"country","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"supplier","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"factorSet","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"subtype1","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"subtype2","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"subtype3","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"amount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"factorCurrencyAmount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"factorCurrencyCode","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"standardCurrencyAmount","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"factorKey","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scope3Emission","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"emissionFactorValue","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SalesDataTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SalesDataTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SalesDataTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"assetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"volumeNaturalGas","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"volumeNaturalGasUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"volumeCrudeOilBbl","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"naturalGasSalesVolumeM3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"crudeOilSalesVolumeM3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"soldProductEmissionsCO2e","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"soldProductEmissionsCO2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"soldProductEmissionsCH4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"soldProductEmissionsN2O","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope1GhgEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope2GhgEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"scope3GhgEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SaveBannerInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"url","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"BannerType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"thumbnail","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"visible","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SaveLearnBundleInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"restricted","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"courses","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isEngage","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SavePolicyInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"version","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"reviewDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SaveUserExclusionInput","description":null,"fields":null,"inputFields":[{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"exclusions","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Scale","description":null,"fields":[{"name":"min","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"max","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"ScaleInput","description":null,"fields":null,"inputFields":[{"name":"min","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"max","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Scheme","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"category","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SchemeEditInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"categoryId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SchemeInput","description":null,"fields":null,"inputFields":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"categoryId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SchemePage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Scheme","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"Scope","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ACCOUNT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TAG","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LOCATION","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"ScopeSourceEmissions","description":null,"fields":[{"name":"scope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"source","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"gross","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"net","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"ScormFileMetadata","description":null,"fields":null,"inputFields":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"lastModified","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"lastModifiedDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"webkitRelativePath","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"size","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"ScormKeyValue","description":null,"fields":[{"name":"key","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SearchFilter","description":null,"fields":null,"inputFields":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SequenceRepeatableQuestionAnswer","description":null,"fields":[{"name":"questionId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SequenceRepeatableQuestionAnswerInput","description":null,"fields":null,"inputFields":[{"name":"questionId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SequenceRepeatableQuestionRow","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"answers","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SequenceRepeatableQuestionAnswer","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SequenceRepeatableQuestionRowInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answers","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SequenceRepeatableQuestionAnswerInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SetFilter","description":null,"fields":null,"inputFields":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DataType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"values","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SetValueInput","description":null,"fields":null,"inputFields":[{"name":"key","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"courseId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SortCommand","description":null,"fields":null,"inputFields":[{"name":"field","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"Source","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"S3","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"URL","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"Subscription","description":null,"fields":[{"name":"accountUpdated","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Account","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dataOverwritingStrategyUpdated","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"batchType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"DataOverwritingStrategy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"exportProgressUpdated","description":null,"args":[{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"ExportProgressPayload","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"licencesPaid","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"Account","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"setSurveySubmissionUpdated","description":null,"args":[{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"surveyId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"SurveySubmission","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userUpdated","description":null,"args":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Supplier","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"address","description":null,"args":[],"type":{"kind":"OBJECT","name":"Address","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"utility","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"SupplierType","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"materials","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wasteCarrierLicenceDocument","description":null,"args":[],"type":{"kind":"OBJECT","name":"WasteCarrierLicenceDocument","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SupplierInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"addressId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"utility","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"materialIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SupplierPage","description":null,"fields":[{"name":"count","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasNextPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasPreviousPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isFirstPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isLastPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"totalItemCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"suppliers","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Supplier","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"Page","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"SupplierType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"Supplier","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"Contractor","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"Subcontractor","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"Carrier","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"Broker","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"Haulier","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"Survey","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"owner","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"template","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplate","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"contributors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"UNION","name":"SurveyContributor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"SurveyStatus","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"submissions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveySubmission","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"automatedScoring","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deadlineDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"feedbackEnabled","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isIndividualContributor","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isUserGroupContributor","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dashboardId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"sendToAllUsers","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SurveyAnswer","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"questionId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"answer","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"url","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"verified","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"verifiedNotes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SurveyAnswerInput","description":null,"fields":null,"inputFields":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"UNION","name":"SurveyContributor","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"AccountSurveyContributor","ofType":null}]},{"kind":"INTERFACE","name":"SurveyContributorInterface","description":null,"fields":[{"name":"surveys","description":null,"args":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ReceivedSurvey","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"AccountSurveyContributor","ofType":null}]},{"kind":"INPUT_OBJECT","name":"SurveyInput","description":null,"fields":null,"inputFields":[{"name":"ownerAccountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"surveyTemplateId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"automatedScoring","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"deadlineDate","description":null,"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"contributors","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"individualContributors","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userGroups","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notifyByEmail","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"feedbackEnabled","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dashboardId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sendToAllUsers","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SurveyQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"title","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"SurveyQuestionType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"required","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"payload","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"options","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyQuestionOption","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createdDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"template","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplate","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"category","description":null,"args":[],"type":{"kind":"OBJECT","name":"SurveyQuestionCategory","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isKeyMetric","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SurveyQuestionCategory","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"parentCategory","description":null,"args":[],"type":{"kind":"OBJECT","name":"SurveyQuestionCategory","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SurveyQuestionCategoryInput","description":null,"fields":null,"inputFields":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"parentCategoryId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SurveyQuestionInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"category","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scores","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SurveyQuestionOptionInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isKeyMetric","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SurveyQuestionOption","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"score","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isNotApplicableMarker","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isDataMissingMarker","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SurveyQuestionOptionInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"score","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isNotApplicableMarker","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isDataMissingMarker","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SurveyQuestionPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyQuestion","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"SurveyQuestionType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"text","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"dropdown","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"radiogroup","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagbox","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"checkbox","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"imagepicker","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"boolean","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"signaturepad","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"multipletext","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"rating","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ranking","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"comment","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"file","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"expression","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"SurveyStatus","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"active","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"complete","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"SurveySubmission","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"owner","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"SurveySubmissionStatus","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"answers","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyAnswer","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"submittedDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"survey","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ReceivedSurvey","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"version","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"feedback","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userGroupId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"surveyId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deletedAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deletedByUserId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"deletedByUser","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"SurveySubmissionFeedbackStatus","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"requires_changes","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"approved","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SurveySubmissionInput","description":null,"fields":null,"inputFields":[{"name":"surveyId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"SurveySubmissionStatusInput","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"answers","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"SurveyAnswerInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"version","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"SurveySubmissionStatus","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"in_progress","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ready_for_review","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"requires_changes","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"approved","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"SurveySubmissionStatusInput","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"in_progress","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ready_for_review","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"SurveyTemplate","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"owner","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"questions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyQuestion","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"version","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"formContent","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSJSON","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createdDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"expiryDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"SurveyTemplateInput","description":null,"fields":null,"inputFields":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ownerId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"expiryDate","description":null,"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"formContent","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSJSON","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"version","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SurveyTemplateSubscription","description":null,"fields":[{"name":"account","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"template","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"SurveyTemplate","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"SurveysPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Survey","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Tag","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"tagName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"OBJECT","name":"Account","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"applicationId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isSystemLevelTag","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"legislationTag","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Target","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"Scope","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"topic","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TargetTopic","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"normaliserType","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isRelative","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"baselineStartDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"baselineEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"status","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"configurationErrors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"TargetInput","description":null,"fields":null,"inputFields":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"typeId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"topicId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"normaliserTypeId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isRelative","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"baselineStartDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"baselineEndDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"TargetTopic","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"unit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"utility","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Task","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"author","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"category","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TaskCategory","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"subject","description":null,"args":[],"type":{"kind":"ENUM","name":"TaskSubject","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"item","description":null,"args":[],"type":{"kind":"UNION","name":"TaskItem","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"owners","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"User","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"priority","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TaskPriority","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dueDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"completedAt","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isCompleted","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"evidence","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TaskEvidence","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"args":[],"type":{"kind":"ENUM","name":"Scope","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Tag","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"projectId","description":null,"args":[],"type":{"kind":"OBJECT","name":"Project","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"TaskCategory","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ENGAGE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GOVERNANCE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DATA","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REPORTING","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DOCUMENTS","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"TaskEvidence","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"taskId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TaskEvidenceType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DocumentRecord","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"TaskEvidenceInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"taskId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"evidenceType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TaskEvidenceType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"documents","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"TaskEvidenceType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"AUDIT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REPORT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"OBSERVATION","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"TaskInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"category","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TaskCategory","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"subject","description":null,"type":{"kind":"ENUM","name":"TaskSubject","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itemId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"owners","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"priority","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TaskPriority","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dueDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"completedAt","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isCompleted","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"type":{"kind":"ENUM","name":"Scope","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"projectId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"UNION","name":"TaskItem","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"Legislation","ofType":null},{"kind":"OBJECT","name":"Aspect","ofType":null},{"kind":"OBJECT","name":"Target","ofType":null}]},{"kind":"ENUM","name":"TaskPriority","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"HIGH","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MEDIUM","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LOW","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"TaskSubject","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"LEGISLATION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"POLICIES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MANAGEMENTSYSTEMS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TARGETS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ASPECTS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"Template","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"parserId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"TemplateInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"parserId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Tenure","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"TextFilter","description":null,"fields":null,"inputFields":[{"name":"field","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"ENUM","name":"FilterStrategy","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filterType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"DataType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"filter","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"condition1","description":null,"type":{"kind":"INPUT_OBJECT","name":"TextFilter","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"condition2","description":null,"type":{"kind":"INPUT_OBJECT","name":"TextFilter","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"conditions","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"TextFilter","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"operator","description":null,"type":{"kind":"ENUM","name":"JoinOperator","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"ThumbnailType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"COMPLY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ELECTRICITY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INTEL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LEARN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIALS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MIXED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRAVEL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"ENUM","name":"TimeGranularity","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"YEAR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MONTH","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DATE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"TimeSeriesDataPoint","description":null,"fields":[{"name":"dimension","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"time","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"TransactionImportBatchOverview","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dromoId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"TransactionType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ELECTRICITY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FUEL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"GAS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MATERIALS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"OIL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"S3C1ACTIVITYBASEDMATERIAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"S3C1SPENDBASEDMATERIAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"OILGASSALES","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TRANSPORT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"HOTELSTAYS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"HEATSTEAM","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"REFRIGERANT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INVESTMENT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LIQUIDFUEL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"COREESTATE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EMISSIONSDATABASE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"TransportConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fromUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"toUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"CarbonConversionFactorType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"note","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"transportType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transportSubtype","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fuelType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"CarbonConversionFactor","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"TransportConversionFactorPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TransportConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"TransportDataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"TransportTransaction","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"DataAnomaly","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"TransportTransaction","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"date","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"OBJECT","name":"Location","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"subtype","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fuelType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purpose","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"origin","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"destination","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"volume","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"volumeUnit","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"distance","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"distanceUnit","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"ENUM","name":"Accuracy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"freight","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carrier","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dataProvider","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"activity","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"cost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"costVat","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"documentReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionsScope1","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionsScope2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionsScope3Indirect","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionsScope3WTT","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionsScope3TD","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionsScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionCO2","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionN2O","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionCH4","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfJourneys","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"journeyDistance","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"TransportTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TransportTransaction","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"TransportTransactionReportingPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"TransportTransaction","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"datasetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"TransportType","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"subtypes","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"Transposition","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transpositionName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"OBJECT","name":"Account","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"columnMapper","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"ColumnMapper","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"columnSplitter","description":null,"args":[],"type":{"kind":"OBJECT","name":"ColumnSplitter","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isHalfHourly","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isHeadless","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"defaultValues","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"TranspositionDefaultValue","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"TranspositionDefaultValue","description":null,"fields":[{"name":"columnName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"TriggerN3rgyImportInput","description":null,"fields":null,"inputFields":[{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"onlyIncludeAccountIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"excludeAccountIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"onlyIncludeMpxns","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"excludeMpxns","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"TypeDisposal","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"COMBUSTION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WTT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CONVERSION","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"UncertaintiesBackground","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"activity","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"asset","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UnlockContributorResponse","description":null,"fields":[{"name":"campaignId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpdateDocumentFolderInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpdateEnergySource","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"meterId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"typeId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"inOut","description":null,"type":{"kind":"ENUM","name":"InOut","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isGeneration","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"meterCode","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"hardwareProviderName","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"operatorProviderName","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyConsentStatus","description":null,"type":{"kind":"ENUM","name":"N3rgyConsentStatus","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"n3rgyIsIndirectSource","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isReadingMeter","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"initialReading","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpdateEstatesConfigurationInput","description":null,"fields":null,"inputFields":[{"name":"locationId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"forecastYear","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"cityStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tenure","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tenureStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"floorSpace","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"floorSpaceStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationStartDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationStartDateStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationBreakDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationBreakDateStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationEndDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"occupationEndDateStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesCondition","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesConditionStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesStatComp","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesStatCompStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesEpc","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesEpcStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesGovSystem","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"facilitiesGovSystemStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationYearPropertyMilestone","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationYearPropertyMilestoneStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"estateChange","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"estateChangeStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountDesnz","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountDesnzStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountIcs","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountIcsStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountGbe","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountGbeStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountSeahorse","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"desnzEntityHeadcountSeahorseStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountDsit","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountDsitStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountUksa","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dsitEntityHeadcountUksaStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountFacilitated","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountFacilitatedStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountVoid","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"totalHeadcountVoidStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsRequired","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsRequiredStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsFacilitated","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsFacilitatedStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsVoid","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"itEnabledWorkSettingsVoidStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceFacilitated","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceFacilitatedStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceActual","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"officeAttendanceActualStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerDesk","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerDeskStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerHeadcount","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerHeadcountStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"source","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sourceStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"capitalInvestmentCostFitOut","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"capitalInvestmentCostFitOutStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dilaps","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dilapsStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDesnzTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityIcsTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityGbeTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntitySeahorseTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityDsitTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaNonRent","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaNonRentStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaTotal","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityUksaTotalStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityTotalCheck","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"runningCostPerEntityTotalCheckStatus","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpdateLocationLocationPointInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"operation","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UpdateLocationPointOperation","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"UpdateLocationPointOperation","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"CREATE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DELETE","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpdateLocationTagInput","description":null,"fields":null,"inputFields":[{"name":"tagId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationsId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpdateLocationWithLocationPointsInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address1","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address2","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address3","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"city","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"postcode","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"coordinates","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"phone1","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"countryId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteIn","description":null,"type":{"kind":"INPUT_OBJECT","name":"UpdateLocationLocationPointInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteOut","description":null,"type":{"kind":"INPUT_OBJECT","name":"UpdateLocationLocationPointInput","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"code","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"buildingType","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tenure","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"region","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"floorSpace","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sharedEmissionPercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"leaseRenewalDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"attributes","description":null,"type":{"kind":"SCALAR","name":"AWSJSON","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"enableProject","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"displayOnImpactDashboard","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UpdateNormaliserError","description":null,"fields":[{"name":"error","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"UNION","name":"UpdateNormaliserResponse","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"Normaliser","ofType":null},{"kind":"OBJECT","name":"UpdateNormaliserError","ofType":null}]},{"kind":"INPUT_OBJECT","name":"UpdateOilProducingAssetInput","description":null,"fields":null,"inputFields":[{"name":"field","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"operation","description":null,"type":{"kind":"ENUM","name":"OilProducingAssetOperation","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"products","description":null,"type":{"kind":"ENUM","name":"OilProducingAssetProducts","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"jointVenture","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"equityShare","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fuelGasConsumption","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"flaredGas","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"liquidFuelCombustion","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"fugitiveEmissions","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"releaseValves","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"platforms","description":null,"type":{"kind":"SCALAR","name":"Int","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpdateTagInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"applicationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isSystemLevelTag","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"legislationTag","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UpdateTargetErrors","description":null,"fields":[{"name":"errors","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"UNION","name":"UpdateTargetResponse","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":null,"possibleTypes":[{"kind":"OBJECT","name":"Target","ofType":null},{"kind":"OBJECT","name":"UpdateTargetErrors","ofType":null}]},{"kind":"INPUT_OBJECT","name":"UpdateUserCourseProgressInput","description":null,"fields":null,"inputFields":[{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"courseId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"courseProgress","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"CourseProgress","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpdateUserInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"email","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"previousEmail","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"first_name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"last_name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"account_id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accessLevel","description":null,"type":{"kind":"ENUM","name":"Scope","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"allowedLocationsIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"allowedTagsIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"jobTitle","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"department","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"phone","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"mobile","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"profilePicture","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"disableAccountSelector","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userGroupId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UploadLocationPictureInput","description":null,"fields":null,"inputFields":[{"name":"fileName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"contentType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"imageData","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UploadLogoInput","description":null,"fields":null,"inputFields":[{"name":"fileName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"contentType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"imageData","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UploadProfilePictureInput","description":null,"fields":null,"inputFields":[{"name":"fileName","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"contentType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"imageData","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"userId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpsertCustomWasteHierarchyInput","description":null,"fields":null,"inputFields":[{"name":"wasteHierarchyId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"treatmentProcessId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"prevention","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"preparingForReuse","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"recycling","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"otherRecovery","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"disposal","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"unknown","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteInId","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isGlobal","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpsertLocationsInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address1","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address2","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address3","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"city","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"postCode","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"phone1","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"countryId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteIn","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteOut","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"regionId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tenureId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"buildingTypeId","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationCode","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"floorSpace","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"sharedEmissionPercentage","description":null,"type":{"kind":"SCALAR","name":"Float","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"tagIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"departmentIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"leaseRenewalDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpsertOrganisationalUnitInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UpsertSuppliersInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"SCALAR","name":"ID","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address1","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address2","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"address3","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"city","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"postCode","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"phone1","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"countryId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"utility","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TransactionType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"materialIds","description":null,"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"User","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"email","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"username","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"roles","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UserRole","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"role","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Role","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"first_name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"last_name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"jobTitle","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"department","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"phone","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"mobile","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"profilePicture","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"OBJECT","name":"Account","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"disabled","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"last_active_at","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"total_time_spent_ms","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accessLevel","description":null,"args":[],"type":{"kind":"ENUM","name":"Scope","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"allowedLocations","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Location","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"allowedTags","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"OBJECT","name":"Tag","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"disableAccountSelector","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"userGroupName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UserAccessPoliciesPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserAccessPolicy","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UserAccessPolicy","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"effect","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UserAccessPolicyEffect","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"resourceType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UserAccessPolicyResourceType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"resources","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"lastUpdatedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"UserAccessPolicyEffect","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ALLOW","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"DENY","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UserAccessPolicyInput","description":null,"fields":null,"inputFields":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"effect","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UserAccessPolicyEffect","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"resourceType","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UserAccessPolicyResourceType","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"resources","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"UserAccessPolicyResourceType","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"LOCATION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"TAG","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ORGANISATIONAL_UNIT","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"UserCourseMetaData","description":null,"fields":[{"name":"courseProgress","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"CourseProgress","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"lastUpdatedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"course","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Course","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UserExclusion","description":null,"fields":[{"name":"userId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"exclusions","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UserGroup","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"createdAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"lastUpdatedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accessPolicies","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserAccessPolicy","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"accessPolicyNames","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UserGroupInput","description":null,"fields":null,"inputFields":[{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accessPolicies","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UserGroupsPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"UserGroup","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UserPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"MysqlUser","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UserPermissions","description":null,"fields":[{"name":"user","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"allowedRoles","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UserRole","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"allowedRioModules","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"RioModule","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"allowedTaskCategories","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"TaskCategory","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"data","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"governance","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"document","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"documentFolder","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"tag","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transposition","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"email","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"notification","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"licence","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"learn","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"dashboard","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"task","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ocr","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"intelligence","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"readonlyAllowedRoles","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UserRole","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"project","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"projectCategory","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"scheme","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"survey","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"dataTracker","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"dataTrackerAnomalies","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"flows","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"invest","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"dataOverwriting","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"dataAnalysis","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"insite","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UserProfileInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"account_id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"first_name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"last_name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"email","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"previousEmail","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"jobTitle","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"department","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"phone","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"mobile","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"profilePicture","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"UserRole","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"SYSADMIN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUSINESSADMIN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUSINESS","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EMSCHAMPION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EMSCHAMPIONANALYSECONTRIBUTOR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CONTRIBUTOR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EMSCONTRIBUTOR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"ANALYSECHAMPION","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"INDIVIDUAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BUSINESSREADONLY","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"MENTOR","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"LEARNER","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EXECUTIVE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WASTEADMIN","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"CONSULTANT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"EMPLOYEE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SURVEYSONLY","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UserRolesInput","description":null,"fields":null,"inputFields":[{"name":"roles","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"UserRole","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"username","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"UtilityType","description":null,"fields":[{"name":"transactionType","description":null,"args":[],"type":{"kind":"ENUM","name":"TransactionType","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isDefault","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"UtilityTypeInput","description":null,"fields":null,"inputFields":[{"name":"transactionType","description":null,"type":{"kind":"ENUM","name":"TransactionType","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isDefault","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"VarianceReason","description":null,"fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"ONSITE_WORK","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"HEADCOUNT","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"FLOORSPACE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"WATER_LEAK","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"OTHER_OPERATIONAL","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"BELOW_THRESHOLD","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"SUPPLIER_DATA_ISSUE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"NO_ACTION_REQUIRED","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"PENDING_SUPPLIER_RESPONSE","description":null,"isDeprecated":false,"deprecationReason":null},{"name":"OTHER","description":null,"isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"VarianceTimeseries","description":null,"fields":[{"name":"error","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"data","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"VarianceTimeseriesDataItem","ofType":null}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"VarianceTimeseriesDataItem","description":null,"fields":[{"name":"dimension","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"time","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteCarbonConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fromUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"toUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"value","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"scope","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"CarbonConversionFactorType","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"note","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ewcId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"defraEquivalent","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"treatmentProcessCategoryId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"CarbonConversionFactor","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteCarrierLicenceDocument","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"fileName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"referenceId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteContractor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"address","description":null,"args":[],"type":{"kind":"OBJECT","name":"Address","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"WasteContractorInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"addressId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteDataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"WasteTransactionPageItem","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"DataAnomaly","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteDestination","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"wasteFrom","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"wasteTo","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteHierarchy","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"treatmentProcess","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ewc","description":null,"args":[],"type":{"kind":"OBJECT","name":"EWC","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isGlobal","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"prevention","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"preparingForReuse","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"recycling","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"disposal","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"unknown","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherRecovery","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"PublicUserInfo","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wasteIn","description":null,"args":[],"type":{"kind":"OBJECT","name":"NamedEntity","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"dateCreated","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteHierarchyPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteHierarchy","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"WasteInEWCTreatmentProcessInput","description":null,"fields":null,"inputFields":[{"name":"treatmentProcessId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteInEWCId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteInEwc","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"wasteIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ewc","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"EWC","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"WasteInEwcInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteInId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ewcId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"WasteInEwcPermitUploadInput","description":null,"fields":null,"inputFields":[{"name":"wasteInEwcPermitId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"uploadedDocumentId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"WasteInInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dateCreated","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"permitRequired","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteInPermit","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"wasteIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"weightAccepted","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"weightAcceptedUnit","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"permitType","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"NamedEntity","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"issueDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"expiryDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"WasteInPermitInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteInId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"weightAccepted","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"weightAcceptedUnitId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"permitTypeId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"issueDate","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"expiryDate","description":null,"type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"WasteInPermitTreatmentProcessInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"wasteInPermitId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"treatmentProcessId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"WasteOutInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"locationId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isActive","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"dateCreated","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteStream","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ewc","description":null,"args":[],"type":{"kind":"OBJECT","name":"EWC","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isHazardous","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"account","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"Account","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"WasteStreamInput","description":null,"fields":null,"inputFields":[{"name":"id","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"ewcId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"isHazardous","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteStreamsPaged","description":null,"fields":[{"name":"count","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"page","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageSize","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"pageCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"totalItemCount","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasNextPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"hasPreviousPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isFirstPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isLastPage","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"wasteStreams","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteStream","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"Page","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteTransactionPageItem","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"wasteOut","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wasteOutId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wasteStream","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"ewc","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isHazardous","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"treatmentProcess","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wasteIn","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"individualCollectionDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"periodStartDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"periodEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfContainers","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"numberOfCollections","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"quantity","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"quantityUnitName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"ENUM","name":"Accuracy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"gateFee","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"managementFee","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"binHire","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"binExchangeFee","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"transportCharge","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"liftCharge","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"equipmentHire","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"miscCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"miscCostRate","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"rebate","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"penalty","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"consignmentNoteId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wasteTransferNote","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wtnDocumentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"consignmentNoteEA","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"salesOrder","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wasteContractor","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"containerTypeSize","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"labourCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"wasteCarrier","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCostVat","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmission","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"location","description":null,"args":[],"type":{"kind":"OBJECT","name":"Location","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"projectPhase","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteTransactionReportingPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WasteTransactionPageItem","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"datasetName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WasteTreatmentProcess","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"orderNumber","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"wasteTreatmentProcessCategoryId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"preventionDefraWasteTreatmentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"preparingForReuseDefraWasteTreatmentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"recyclingDefraWasteTreatmentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherRecoveryDefraWasteTreatmentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"disposalDefraWasteTreatmentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"unknownDefraWasteTreatmentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"ID","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WaterConversionFactor","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYear","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"supplyKgCo2e","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"treatmentKgCo2e","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Float","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WaterConversionFactorPage","description":null,"fields":[{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WaterConversionFactor","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WaterDataAnomaly","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDate","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reason","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"ignored","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"uploadedIn","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"DataImportBatch","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"transaction","description":null,"args":[],"type":{"kind":"OBJECT","name":"WaterTransaction","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"user","description":null,"args":[],"type":{"kind":"OBJECT","name":"User","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"detectedAt","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"AWSDateTime","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"varianceReason","description":null,"args":[],"type":{"kind":"ENUM","name":"VarianceReason","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"varianceTimeseries","description":null,"args":[],"type":{"kind":"OBJECT","name":"VarianceTimeseries","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"notes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"percentDiff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"DataAnomaly","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WaterTransaction","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"startDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"endDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"supplier","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"waterIn","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"waterOut","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCost","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"totalCostVat","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reading","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"accuracy","description":null,"args":[],"type":{"kind":"ENUM","name":"Accuracy","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tariff","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"currency","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"comment","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"energySource","description":null,"args":[],"type":{"kind":"OBJECT","name":"EnergySource","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatch","description":null,"args":[],"type":{"kind":"OBJECT","name":"TransactionImportBatchOverview","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"invoiceNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"evidenceReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"otherReference","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"meterName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationPointActive","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationPointDateCreated","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationPointName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCode","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationEndDate","description":null,"args":[],"type":{"kind":"SCALAR","name":"AWSDateTime","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationSharedEmissionPercentage","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"locationCustomAttributes","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"importBatchFileName","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"inEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"outEmissions","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"carbonEmissionsScope3","description":null,"args":[],"type":{"kind":"SCALAR","name":"Float","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tags","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"departments","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingYearOfFactors","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"purchaseType","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"organisationalUnits","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"estimatesScenario","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"WaterTransactionPage","description":null,"fields":[{"name":"totalRows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Int","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"rows","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"WaterTransaction","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"YesNoQuestion","description":null,"fields":[{"name":"id","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"formulation","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"shortFormulation","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"reportingFrameworkChapterId","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"materialityMetricId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"parentId","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"reportedAnswer","description":null,"args":[],"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"displaySettings","description":null,"args":[],"type":{"kind":"OBJECT","name":"QuestionDisplaySettings","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"order","description":null,"args":[],"type":{"kind":"SCALAR","name":"Int","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"tableOfContentsNumber","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[{"kind":"INTERFACE","name":"ReportingQuestion","ofType":null}],"enumValues":null,"possibleTypes":null},{"kind":"INPUT_OBJECT","name":"ZippedFileExportInput","description":null,"fields":null,"inputFields":[{"name":"files","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"INPUT_OBJECT","name":"NamedEntityInput","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null},{"name":"accountId","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"__Schema","description":"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.","fields":[{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"types","description":"A list of all types supported by this server.","args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__Type","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"queryType","description":"The type that query operations will be rooted at.","args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__Type","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"mutationType","description":"If this server supports mutation, the type that mutation operations will be rooted at.","args":[],"type":{"kind":"OBJECT","name":"__Type","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"subscriptionType","description":"If this server support subscription, the type that subscription operations will be rooted at.","args":[],"type":{"kind":"OBJECT","name":"__Type","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"directives","description":"A list of all directives supported by this server.","args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__Directive","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"__Type","description":"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\\n\\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.","fields":[{"name":"kind","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"__TypeKind","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"name","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"specifiedByUrl","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"fields","description":null,"args":[{"name":"includeDeprecated","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":"false","isDeprecated":false,"deprecationReason":null}],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__Field","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"interfaces","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__Type","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"possibleTypes","description":null,"args":[],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__Type","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"enumValues","description":null,"args":[{"name":"includeDeprecated","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":"false","isDeprecated":false,"deprecationReason":null}],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__EnumValue","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"inputFields","description":null,"args":[{"name":"includeDeprecated","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":"false","isDeprecated":false,"deprecationReason":null}],"type":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__InputValue","ofType":null}}},"isDeprecated":false,"deprecationReason":null},{"name":"ofType","description":null,"args":[],"type":{"kind":"OBJECT","name":"__Type","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"__TypeKind","description":"An enum describing what kind of type a given `__Type` is.","fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"SCALAR","description":"Indicates this type is a scalar.","isDeprecated":false,"deprecationReason":null},{"name":"OBJECT","description":"Indicates this type is an object. `fields` and `interfaces` are valid fields.","isDeprecated":false,"deprecationReason":null},{"name":"INTERFACE","description":"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.","isDeprecated":false,"deprecationReason":null},{"name":"UNION","description":"Indicates this type is a union. `possibleTypes` is a valid field.","isDeprecated":false,"deprecationReason":null},{"name":"ENUM","description":"Indicates this type is an enum. `enumValues` is a valid field.","isDeprecated":false,"deprecationReason":null},{"name":"INPUT_OBJECT","description":"Indicates this type is an input object. `inputFields` is a valid field.","isDeprecated":false,"deprecationReason":null},{"name":"LIST","description":"Indicates this type is a list. `ofType` is a valid field.","isDeprecated":false,"deprecationReason":null},{"name":"NON_NULL","description":"Indicates this type is a non-null. `ofType` is a valid field.","isDeprecated":false,"deprecationReason":null}],"possibleTypes":null},{"kind":"OBJECT","name":"__Field","description":"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.","fields":[{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"args","description":null,"args":[{"name":"includeDeprecated","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":"false","isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__InputValue","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__Type","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"isDeprecated","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deprecationReason","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"__InputValue","description":"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.","fields":[{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"type","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__Type","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"defaultValue","description":"A GraphQL-formatted string representing the default value for this input value.","args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isDeprecated","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deprecationReason","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"__EnumValue","description":"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.","fields":[{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isDeprecated","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"deprecationReason","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"__Directive","description":"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\\n\\nIn some cases, you need to provide options to alter GraphQL\'s execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.","fields":[{"name":"name","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"description","description":null,"args":[],"type":{"kind":"SCALAR","name":"String","ofType":null},"isDeprecated":false,"deprecationReason":null},{"name":"isRepeatable","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"isDeprecated":false,"deprecationReason":null},{"name":"locations","description":null,"args":[],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"ENUM","name":"__DirectiveLocation","ofType":null}}}},"isDeprecated":false,"deprecationReason":null},{"name":"args","description":null,"args":[{"name":"includeDeprecated","description":null,"type":{"kind":"SCALAR","name":"Boolean","ofType":null},"defaultValue":"false","isDeprecated":false,"deprecationReason":null}],"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"OBJECT","name":"__InputValue","ofType":null}}}},"isDeprecated":false,"deprecationReason":null}],"inputFields":null,"interfaces":[],"enumValues":null,"possibleTypes":null},{"kind":"ENUM","name":"__DirectiveLocation","description":"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.","fields":null,"inputFields":null,"interfaces":null,"enumValues":[{"name":"QUERY","description":"Location adjacent to a query operation.","isDeprecated":false,"deprecationReason":null},{"name":"MUTATION","description":"Location adjacent to a mutation operation.","isDeprecated":false,"deprecationReason":null},{"name":"SUBSCRIPTION","description":"Location adjacent to a subscription operation.","isDeprecated":false,"deprecationReason":null},{"name":"FIELD","description":"Location adjacent to a field.","isDeprecated":false,"deprecationReason":null},{"name":"FRAGMENT_DEFINITION","description":"Location adjacent to a fragment definition.","isDeprecated":false,"deprecationReason":null},{"name":"FRAGMENT_SPREAD","description":"Location adjacent to a fragment spread.","isDeprecated":false,"deprecationReason":null},{"name":"INLINE_FRAGMENT","description":"Location adjacent to an inline fragment.","isDeprecated":false,"deprecationReason":null},{"name":"VARIABLE_DEFINITION","description":"Location adjacent to a variable definition.","isDeprecated":false,"deprecationReason":null},{"name":"SCHEMA","description":"Location adjacent to a schema definition.","isDeprecated":false,"deprecationReason":null},{"name":"SCALAR","description":"Location adjacent to a scalar definition.","isDeprecated":false,"deprecationReason":null},{"name":"OBJECT","description":"Location adjacent to an object type definition.","isDeprecated":false,"deprecationReason":null},{"name":"FIELD_DEFINITION","description":"Location adjacent to a field definition.","isDeprecated":false,"deprecationReason":null},{"name":"ARGUMENT_DEFINITION","description":"Location adjacent to an argument definition.","isDeprecated":false,"deprecationReason":null},{"name":"INTERFACE","description":"Location adjacent to an interface definition.","isDeprecated":false,"deprecationReason":null},{"name":"UNION","description":"Location adjacent to a union definition.","isDeprecated":false,"deprecationReason":null},{"name":"ENUM","description":"Location adjacent to an enum definition.","isDeprecated":false,"deprecationReason":null},{"name":"ENUM_VALUE","description":"Location adjacent to an enum value definition.","isDeprecated":false,"deprecationReason":null},{"name":"INPUT_OBJECT","description":"Location adjacent to an input object type definition.","isDeprecated":false,"deprecationReason":null},{"name":"INPUT_FIELD_DEFINITION","description":"Location adjacent to an input object field definition.","isDeprecated":false,"deprecationReason":null}],"possibleTypes":null}],"directives":[{"name":"aws_cognito_user_pools","description":"To specify that the field is AMAZON_COGNITO_USER_POOLS authorized.","isRepeatable":false,"locations":["OBJECT","FIELD_DEFINITION"],"args":[]},{"name":"aws_iam","description":"To specify that the field is AWS_IAM authorized.","isRepeatable":false,"locations":["OBJECT","FIELD_DEFINITION"],"args":[]},{"name":"aws_subscribe","description":"Specify multiple mutations which trigger a subscription.","isRepeatable":false,"locations":["FIELD_DEFINITION"],"args":[{"name":"mutations","description":null,"type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"LIST","name":null,"ofType":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}}}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}]},{"name":"include","description":"Directs the executor to include this field or fragment only when the `if` argument is true.","isRepeatable":false,"locations":["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],"args":[{"name":"if","description":"Included when true.","type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}]},{"name":"skip","description":"Directs the executor to skip this field or fragment when the `if` argument is true.","isRepeatable":false,"locations":["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],"args":[{"name":"if","description":"Skipped when true.","type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"Boolean","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}]},{"name":"deprecated","description":"Marks an element of a GraphQL schema as no longer supported.","isRepeatable":false,"locations":["FIELD_DEFINITION","ARGUMENT_DEFINITION","INPUT_FIELD_DEFINITION","ENUM_VALUE"],"args":[{"name":"reason","description":"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).","type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":"\\"No longer supported\\"","isDeprecated":false,"deprecationReason":null}]},{"name":"specifiedBy","description":"Exposes a URL that specifies the behaviour of this scalar.","isRepeatable":false,"locations":["SCALAR"],"args":[{"name":"url","description":"The URL that specifies the behaviour of this scalar.","type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null,"isDeprecated":false,"deprecationReason":null}]}]}}');var jW=t(50277),wW=t.n(jW),OW=t(1363),EW=t.n(OW);const _W={Mutation:{uploadDataFile:async(e,n,t)=>{let{file:a,url:i}=n,{cache:l}=t;const r={"Content-Type":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};return i||(r.Authorization=localStorage.getItem("ACCESS_TOKEN")),FW({url:i,headers:r,file:a,cache:l})}}},FW=async e=>{let{url:n,headers:t,file:a}=e;try{const e=await EW()({method:"PUT",url:n,headers:t,data:a}),i={status:e.status,fileUploaded:200===e.status};return E.v4(n=>{n.setTag("action","document_uploading"),E.wd("Upload document",{extra:{...e}})}),i}catch(e){console.error(e),E.v4(t=>{t.setTag("action","document_uploading"),E.Cp(e,{extra:{url:n,error:e}})})}},PW=[{query:Pb,data:{wasteContractorsGridPage:1}},{query:$b,data:{wasteContractorsGridSearch:""}},{query:Bb,data:{wasteContractorsGridTotalPages:1}}],BW={Mutation:{setWasteContractorsGridPage:async(e,n,t)=>{let{page:a}=n,{cache:i}=t;return i.writeQuery({query:Pb,data:{wasteContractorsGridPage:a}}),a},setWasteContractorsGridSearch:async(e,n,t)=>{let{search:a}=n,{cache:i}=t;return i.writeQuery({query:$b,data:{wasteContractorsGridSearch:a}}),a},setWasteContractorsGridTotalPages:async(e,n,t)=>{let{totalPages:a}=n,{cache:i}=t;return i.writeQuery({query:Bb,data:{wasteContractorsGridTotalPages:a}}),a}}},UW=[{query:hI,data:{suppliersGridPage:1}},{query:bI,data:{suppliersGridSearch:""}},{query:xI,data:{suppliersGridTotalPages:1}}],$W={Mutation:{setSuppliersGridPage:async(e,n,t)=>{let{page:a}=n,{cache:i}=t;return i.writeQuery({query:hI,data:{suppliersGridPage:a}}),a},setSuppliersGridSearch:async(e,n,t)=>{let{search:a}=n,{cache:i}=t;return i.writeQuery({query:bI,data:{suppliersGridSearch:a}}),a},setSuppliersGridTotalPages:async(e,n,t)=>{let{totalPages:a}=n,{cache:i}=t;return i.writeQuery({query:xI,data:{suppliersGridTotalPages:a}}),a}}},MW=[{query:KC,data:{wasteStreamGridPage:1}},{query:XC,data:{wasteStreamGridSearch:""}},{query:QC,data:{wasteStreamGridTotalPages:1}}],VW={Mutation:{setWasteStreamGridPage:async(e,n,t)=>{let{page:a}=n,{cache:i}=t;return i.writeQuery({query:KC,data:{wasteStreamGridPage:a}}),a},setWasteStreamGridSearch:async(e,n,t)=>{let{search:a}=n,{cache:i}=t;return i.writeQuery({query:XC,data:{wasteStreamGridSearch:a}}),a},setWasteStreamGridTotalPages:async(e,n,t)=>{let{totalPages:a}=n,{cache:i}=t;return i.writeQuery({query:QC,data:{wasteStreamGridTotalPages:a}}),a}}};var GW=t(82829);const zW=e=>{const n=e.name.split("."),t=n[n.length-1];return"html"===t||"css"===t||"js"===t?GW.contentType(e.name):"binary/octet-stream"},WW={Mutation:{uploadLearnContent:async(e,n,t)=>{let{url:a,id:i,thumbnail:l,content:r,type:o,presignedLinks:s}=n,{cache:d}=t;if((o===gn.US.Pdf||o===gn.US.Video)&&r instanceof File){const e={"Content-Type":zW(r)};await FW({url:a,headers:e,file:r,cache:d})}else r&&r.length&&r.length>1&&"string"!=typeof r&&await(async(e,n,t)=>{await Promise.all(n.map(async(n,a)=>{const i=e[a],l={"Content-Type":zW(i)};await FW({url:n,headers:l,file:i,cache:t})}))})(r,s,d);if(l instanceof File){const e=`${i}.jpg`,n=`${De("REACT_APP_LEARN_THUMBNAIL_UPLOAD")}/${e}`;await FW({url:n,cache:d,file:l,headers:{"Content-Type":zW(l),Authorization:localStorage.getItem("ACCESS_TOKEN")}})}}}},qW={query:te,data:{currentAccountId:(()=>{const e=localStorage.getItem("CURRENT_ACCOUNT")||null;if(e)return e;const n=localStorage.getItem("ID_TOKEN"),t=n?(0,iu.A)(n):null;return t?.name||null})()}},JW={Mutation:{setCurrentAccountId:(e,n,t)=>{let{currentAccountId:a}=n,{cache:i}=t;var l;a&&(l=a,localStorage.setItem("CURRENT_ACCOUNT",l),i.writeQuery({query:te,data:{currentAccountId:a}}))}}},YW=wW()(We,_W,BW,$W,VW,WW,JW),HW=[qW,...Me,...PW,...UW,...MW],KW=(e,n)=>{if(!e)return;const t=Object.keys(e),a={};return t.forEach(t=>{if(t!==n){const i=e[t];i instanceof Date?a[t]=i:Array.isArray(i)?a[t]=i.map(e=>Array.isArray(e)||"object"==typeof e?KW(e,n):e):a[t]="object"==typeof i&&null!==i?KW(i,n):i}}),a},QW=new AW.D({typePolicies:{InitiateLearnFileUploadResponse:{keyFields:["url"]},Role:{keyFields:["role"]},CourseMetaData:{keyFields:["link"]},PieChartItem:{keyFields:["id","absoluteValue","relativeValue"]},SurveyTemplateSubscription:{keyFields:["account",["id"],"template",["id"]]},AccountFormContributor:{keyFields:["account",["id"]]},ExportProgressPayload:{keyFields:["userId"]}},possibleTypes:(e=>{const n={};return e.__schema.types.forEach(e=>{e.possibleTypes&&(n[e.name]=e.possibleTypes.map(e=>e.name))}),n})(IW)});HW.forEach(e=>{let{query:n,data:t}=e;return QW.writeQuery({query:n,data:t})});const ZW=new RW.C((e,n)=>(e.variables&&(e.variables=KW(e.variables,"__typename")),n(e).map(e=>e))),XW={type:"AMAZON_COGNITO_USER_POOLS",jwtToken:async()=>{try{const e=await y.N.currentSession();if(e)return e.getIdToken().getJwtToken()}catch{}}},eq=De("REACT_APP_GRAPHQL_URI"),nq=De("REACT_APP_AWS_REGION"),tq=new DW.R({connectToDevTools:!0,link:RW.C.from([ZW,new LW.G,(0,NW.S)(e=>{let{networkError:n,operation:t}=e;const a=t.getContext();n&&a&&a.response&&(401===a.response.status||403===a.response.status)&&"GetUserByUsername"!==t?.operationName&&tq.mutate({mutation:O})}),(0,kW.createAuthLink)({url:eq,region:nq,auth:XW}),(0,SW.createSubscriptionHandshakeLink)({url:eq,region:nq,auth:XW})]),cache:QW,resolvers:YW,typeDefs:"\n    extend type Query {\n        wasteTransactionGridColumns: [Column!]\n        electricityTransactionGridColumns: [Column!]\n        gasTransactionGridColumns: [Column!]\n        transportTransactionGridColumns: [Column!]\n        idToken: IdToken!\n        loginError: String\n        currentAccountId: String\n    }\n    \n    type Column {\n        id: String!\n        defaultName: String!\n        displayName: String!\n        display: Boolean!\n        width: Int!\n        dataType: String!\n    }\n    \n    type IdToken {\n        sub: String!\n        aud: String!\n        event_id: String\n        auth_time: Int!\n        exp: Int!\n        iat: Int!\n        email: String!\n        roles: [String!]!\n        given_name: String\n        name: String\n        family_name: String\n        isAuthed: Boolean\n    }\n\n    extend type Mutation {\n        setWasteTransactionGridColumns(columns: [Column!]): [Column!]\n    }\n\n    type WasteTreatmentProcessHierarchy {\n        wasteTreatmentProcessName: String!\n        prevention: Number\n        preparingForReuse: Number\n        recycling: Number\n        otherRecovery: Number\n        disposal: Number\n        reference: string\n    }\n"}),aq=tq;function iq(e){let{gridRef:n}=e;const t=n.current?.gridApi,{canCreateOrganisationalUnitLocationAttachment:a}=hz(),i=function(){const{canCreateOrganisationalUnitLocationAttachment:e}=hz(),[n,t]=(0,g.useState)(),a=Je();if((0,g.useEffect)(()=>{(async()=>{const e=await async function(e){let{request:n,response:t,queryProvider:a,limit:i=1e3}=e,l=[...Object.keys(t)],r=0;const o=Object.fromEntries(Object.values(t).map(e=>[e,[]]));for(;l.length>0;){const{data:e}=await aq.query({query:a(l),variables:{...n,limit:i,offset:r},fetchPolicy:"network-only"});r+=i;const s=[];for(const n of l){const a=e[n];o[t[n]].push(...a.rows),a.totalRows>r&&s.push(n)}l=s}return o}({request:{accountId:a},response:{getOrganisationalUnitsPage:"organisationalUnits",getLocationsPage:"locations"},queryProvider:xW});t(e)})()},[a]),e)return n}(),l=QG(gW,"getOrganisationalUnitLocationAttachmentsPage"),r=a&&t&&i;return(0,fe.jsxs)(sz,{children:[(0,fe.jsx)(jS,{filtersApplied:n.current?.filtersApplied,resetGridState:n.current?.resetGridState}),t&&(0,fe.jsx)(zx,{fetchRows:l,gridApi:t,defaultExportFileName:"location-attachments"}),r&&(0,fe.jsx)(CW,{data:i,gridApi:t})]})}function lq(){const e=(0,g.useRef)(null),n=KG({columnDefs:(0,g.useMemo)(()=>[{headerName:"Organisational unit",field:"organisationalUnit.name",sortable:!0,filter:"agTextColumnFilter"},{headerName:"Location",field:"location.name",sortable:!0,filter:"agTextColumnFilter"},eW(e=>(0,fe.jsx)(bW,{...e}))],[]),serverSideDatasource:ZG(gW,"getOrganisationalUnitLocationAttachmentsPage")}),t=`${Je()}_Organisation_LocationAttachments`;return(0,fe.jsx)(f.Page,{title:{content:"Location attachments",actionButton:(0,fe.jsx)(iq,{gridRef:e})},children:(0,fe.jsx)(dz,{ref:e,gridKey:t,gridOptions:n})})}const rq=S.J1`
  fragment UserGroupFields on UserGroup {
    id
    name
    description
    accountId
    createdAt
    lastUpdatedAt
    accessPolicyNames
    accessPolicies {
      id
      name
    }
  }
`,oq=S.J1`
  query GetUserGroupsPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {
    getUserGroupsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        ...UserGroupFields
      }
      totalRows
    }
  }
  ${rq}
`,sq=S.J1`
  mutation CreateUserGroup($accountId: ID!, $input: UserGroupInput!) {
    createUserGroup(accountId: $accountId, input: $input) {
      ...UserGroupFields
    }
  }
  ${rq}
`,dq=S.J1`
  mutation UpdateUserGroup($accountId: ID!, $id: ID!, $input: UserGroupInput!) {
    updateUserGroup(accountId: $accountId, id: $id, input: $input) {
      ...UserGroupFields
    }
  }
  ${rq}
`,cq=S.J1`
  mutation DeleteUserGroup($accountId: ID!, $id: ID!) {
    deleteUserGroup(accountId: $accountId, id: $id)
  }
`,uq=S.J1`
  mutation CreateUserGroups($accountId: ID!, $inputs: [UserGroupInput!]!) {
    createUserGroups(accountId: $accountId, inputs: $inputs)
  }
`,pq=S.J1`
  query GetUserAccessPolicyOptions($accountId: ID!, $offset: Int, $limit: Int) {
    getUserAccessPoliciesPage(accountId: $accountId, offset: $offset, limit: $limit) {
      rows {
        value: id
        label: name
      }
      totalRows
    }
  }
`,mq=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  gap: 8px;
`;function fq(e){let{data:n,onEditClick:t,onDeleteClick:a}=e;const i=(0,g.useCallback)(()=>{t(n)},[t,n]),l=(0,g.useCallback)(()=>{a(n)},[a,n]);return(0,fe.jsxs)(mq,{children:[(0,fe.jsx)(f.IconButton,{children:(0,fe.jsx)(f.Icons.Edit,{onClick:i})}),(0,fe.jsx)(f.IconButton,{children:(0,fe.jsx)(f.Icons.Delete,{onClick:l})})]})}const yq=t.p+"user-groups-template-bd9ec8ca03977a713575.xlsx",gq=S.J1`
  query GetUserAccessPolicyOptions(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getUserAccessPoliciesPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        value: id
        label: name
      }
      totalRows
    }
  }
`,hq=[{key:"name",type:"string",label:"Name",validators:[{validate:"required"}]},{key:"description",type:"string",label:"Description"},{key:"accessPolicy1",type:"select",label:"Attach access policy 1",selectOptions:[]},{key:"accessPolicy2",type:"select",label:"Attach access policy 2",selectOptions:[]},{key:"accessPolicy3",type:"select",label:"Attach access policy 3",selectOptions:[]},{key:"accessPolicy4",type:"select",label:"Attach access policy 4",selectOptions:[]},{key:"accessPolicy5",type:"select",label:"Attach access policy 5",selectOptions:[]}];function xq(e){let{gridRef:n,onCreateClick:t,allowManage:a}=e;const i=function(){const e=Je(),n=Kr({query:gq,request:{accountId:e},response:"getUserAccessPoliciesPage"}),t=new Map,a=new Set;return async(e,i)=>{if("init"===i){t.clear(),a.clear();const e=await n();for(const{id:n,name:i}of e)t.set(i.toLowerCase(),n),a.add(n)}return e}}(),[l]=(0,ln.n)(uq),r=(0,f.useTheme)(),o=function(){const[e,n]=(0,g.useState)(),t=Je(),a=Kr({query:pq,request:{accountId:t},response:"getUserAccessPoliciesPage"});return(0,g.useEffect)(()=>{(async()=>{const e=await a();n({accessPolicies:e})})()},[]),e}(),s=(0,g.useMemo)(()=>hq.map(e=>"select"===e.type&&e.key.startsWith("accessPolicy")?{...e,selectOptions:o?.accessPolicies??[]}:e),[o]);return(0,fe.jsxs)(sz,{children:[(0,fe.jsx)(jS,{filtersApplied:n.current?.filtersApplied,resetGridState:n.current?.resetGridState}),a&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Vx.A,{title:"Create new user group",children:(0,fe.jsx)(f.IconButton,{color:"primary",variant:"outlined",onClick:t,children:(0,fe.jsx)(f.Icons.Add,{color:r.sys.color.primary})})}),(0,fe.jsx)(Uz,{importIdentifier:"User groups",fields:s,gridApi:n.current?.gridApi??void 0,mutation:l,validator:i,tooltip:"Bulk upload user groups",formatRow:e=>({name:e.name,description:e.description,accessPolicies:[e.accessPolicy1,e.accessPolicy2,e.accessPolicy3,e.accessPolicy4,e.accessPolicy5].filter(Boolean)}),templateUrl:yq})]})]})}const Tq=e=>{let{value:n,onChange:t,error:a,defaultOptions:i,disabled:l}=e;const{loading:r,options:o}=function(){const e=Je(),[n,t]=(0,g.useState)([]),[a,i]=(0,g.useState)(!1),l=(0,g.useRef)(0),[r]=(0,Ul._)(gq,{notifyOnNetworkStatusChange:!0});return(0,g.useEffect)(()=>{(async()=>{i(!0);const n=[],a=await r({variables:{accountId:e,sort:[{field:"name",order:"asc"}],offset:l.current,limit:St}});if(!a?.data?.getUserAccessPoliciesPage)return;const o=a.data.getUserAccessPoliciesPage.totalRows??0;for(n.push(...a.data.getUserAccessPoliciesPage.rows);n.length<o&&l.current<=o;){const t=await r({variables:{accountId:e,offset:l.current,sort:[{field:"name",order:"asc"}],limit:St}});if(!t?.data?.getUserAccessPoliciesPage?.rows)return;n.push(...t.data.getUserAccessPoliciesPage.rows),l.current+=St}t(n),i(!1)})()},[]),(0,g.useMemo)(()=>({options:n,loading:a}),[n,a])}();return(0,fe.jsx)(f.AutoComplete,{isMulti:!0,label:"Select your access policies",options:o,onChange:t,isLoading:r,error:a?.toString(),value:n,defaultValue:Array.isArray(i)?i:[],disabled:l,placeholder:"Start typing to search for an access policy"})},bq={name:"",description:"",accessPolicies:[]};function vq(e){let{onSubmit:n,defaultValues:t,disabled:a}=e;const[i,l]=(0,g.useState)(t||bq),[r,o]=(0,g.useState)({}),s=(0,g.useCallback)(e=>{l(n=>({...n,[e.target.name]:e.target.value}))},[]),d=(0,g.useCallback)(()=>{const e={};i.name||(e.name="Name is required"),i.accessPolicies.length||(e.accessPolicies="At least one policy has to be selected"),0===Object.keys(e).length?n(i):o(e)},[i,n]);return(0,fe.jsxs)(f.Grid,{container:!0,direction:"column",justifyContent:"space-between",gap:2,children:[(0,fe.jsx)(f.TextField,{label:"Name",name:"name",value:i.name,onChange:s,error:!!r.name,disabled:a}),(0,fe.jsx)(f.TextField,{label:"Description",name:"description",value:i.description,onChange:s,disabled:a}),(0,fe.jsx)(Tq,{label:"Access policies",name:"accessPolicies",value:i.accessPolicies,onChange:(c="accessPolicies",e=>{l(n=>({...n,[c]:Array.isArray(e)?e.map(e=>e.value):e.value}))}),disabled:a}),(0,fe.jsx)(f.Button,{variant:"contained",color:"primary",onClick:d,disabled:a,children:"Submit"})]});var c}function Cq(e){let{open:n,onClose:t,onCompleted:a,onError:i}=e;const[l,{loading:r}]=(0,ln.n)(sq),o=Je(),s=(0,g.useCallback)(e=>{l({onCompleted:()=>{a()},onError:e=>{i(e)},variables:{input:e,accountId:o}})},[l,a,o,i]);return(0,fe.jsx)(f.Modal,{title:"Configure your new user group",open:n,onClose:t,children:(0,fe.jsx)(vq,{onSubmit:s,disabled:r})})}function kq(e){let{open:n,group:t,onClose:a,onCompleted:i,onError:l}=e;const r=Je(),[o,{loading:s}]=(0,ln.n)(dq),d=(0,g.useCallback)(e=>{t&&o({onCompleted:()=>{i()},onError:e=>{l(e)},variables:{id:t.id,input:e,accountId:r}})},[o,r,t,i,l]),c=(0,g.useMemo)(()=>{if(t)return{name:t.name,description:t.description,accessPolicies:t.accessPolicies.map(e=>e.id)}},[t]);return(0,fe.jsx)(f.Modal,{title:"Update your access policy",open:n,onClose:a,children:(0,fe.jsx)(vq,{onSubmit:d,defaultValues:c,disabled:s})})}function Sq(e){let{group:n,onClose:t,onCompleted:a,onError:i}=e;const[l,{loading:r}]=(0,ln.n)(cq),o=Je(),s=(0,g.useCallback)(()=>{n&&l({onCompleted:()=>{a()},onError:e=>{i(e)},variables:{id:n.id,accountId:o}})},[l,a,i,n,o]);return(0,fe.jsx)(GS,{title:"Delete user group",body:`Are you sure you want to delete the user group "${n?.name}"? This group may be undeletable until it is dereferenced from all users.`,closeButtonText:"No, cancel",confirmButtonText:"Yes, delete it",open:!!n,disabled:r,onClose:t,onConfirm:s})}function Nq(){const e=(0,g.useRef)(null),n=Je(),{canManageUserGroup:t}=hz(),[a,i]=(0,g.useState)(!1),[l,r]=(0,g.useState)(null),[o,s]=(0,g.useState)(null),{showNotification:d}=tn(),c=`${n}_Organisation_AccessPolicies`,u=(e=>{let{onEditClick:n,onDeleteClick:t,allowManage:a}=e;const i=(0,g.useMemo)(()=>{const e=[{headerName:"Name",field:"name",sortable:!0,filter:"agTextColumnFilter"},{headerName:"Description",field:"description",sortable:!0,filter:"agTextColumnFilter"},{headerName:"Access policies",field:"accessPolicyNames",sortable:!0,filter:"agTextColumnFilter"},{headerName:"Created at",field:"createdAt",sortable:!0,filter:"agTextColumnFilter",valueFormatter:Pn},{headerName:"Last updated at",field:"lastUpdatedAt",sortable:!0,filter:"agTextColumnFilter",valueFormatter:Pn}];return a&&e.push({field:"actions",sortable:!1,filter:!1,resizable:!1,maxWidth:200,cellRenderer:e=>(0,fe.jsx)(fq,{...e,onEditClick:n,onDeleteClick:t})}),e},[a,n,t]);return KG({columnDefs:i,serverSideDatasource:ZG(oq,"getUserGroupsPage")})})({allowManage:t,onDeleteClick:e=>{r(e)},onEditClick:e=>{s(e)}}),p=(0,g.useCallback)(()=>{i(e=>!e)},[]),m=(0,g.useCallback)(()=>{s(null)},[]),y=(0,g.useCallback)(e=>{console.error(e),d(e.message,"danger")},[d]),h=(0,g.useCallback)(()=>{d("Success","success"),i(!1),s(null),r(null),e.current?.gridApi?.refreshServerSide({purge:!0})},[d,s,i]);return(0,fe.jsxs)(f.Page,{title:{content:"User groups",actionButton:(0,fe.jsx)(xq,{gridRef:e,onCreateClick:p,allowManage:t,gridApi:e.current?.gridApi})},children:[(0,fe.jsx)(dz,{ref:e,gridKey:c,gridOptions:u}),(0,fe.jsx)(Cq,{open:a,onClose:p,onCompleted:h,onError:y}),(0,fe.jsx)(kq,{open:!!o,group:o,onClose:m,onCompleted:h,onError:y}),(0,fe.jsx)(Sq,{group:l,onClose:()=>r(null),onError:y,onCompleted:h})]})}const Aq=S.J1`
  query GetEmissionFactorsPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {
    getEmissionFactorsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        factorKey
        sourceName
        factorYear
        accountingMethod
        startDate
        endDate
        emissionSource
        emissionSourceType
        scope
        type
        subtype1
        subtype2
        subtype3
        fromUnit
        fromUnitToStandardUnitConversionFactor
        toGhgUnit
        region
        method
        accountId
        accountName
        scope1Emissions
        scope2Emissions
        scope3Emissions
        notes
        deprecated
        deprecationReason
      }
    }
  }
`,Rq=S.J1`
  query GetEmissionFactorsPageFilter($accountId: ID!, $field: String!) {
    getEmissionFactorsPageFilter(accountId: $accountId, field: $field) {
      value
      label
    }
  }
`,Dq=S.J1`
  mutation DeleteEmissionFactor($id: ID!) {
    deleteEmissionFactor(id: $id)
  }
`,Lq=S.J1`
  mutation UpsertEmissionFactors($input: [EmissionFactorInput!]!) {
    upsertEmissionFactors(input: $input)
  }
`,Iq=[{key:"sourceName",type:"string",label:"Source name",validators:[{validate:"required"}],description:'Ex. "DEFRA UK"'},{key:"factorYear",type:"string",label:"Factor year",validators:[{validate:"required"}],description:'Ex. "2024"'},{key:"accountingMethod",type:"select",label:"Accounting method",validators:[{validate:"required"}],description:'Ex. "Location-Based"',selectOptions:[{label:"Location-Based",value:"Location-Based"}]},{key:"startDate",type:["date",{locale:"en-GB"}],label:"Start date",description:'Ex. "01/01/2024"',validators:[{validate:"required"}]},{key:"endDate",type:["date",{locale:"en-GB"}],label:"End date",description:'Ex. "01/01/2024"',validators:[{validate:"required"}]},{key:"emissionSource",type:"select",label:"Emission source",description:'Ex. "Materials"',selectOptions:[{label:"Materials",value:"Materials"}],validators:[{validate:"required"}]},{key:"emissionSourceType",type:"select",label:"Emission source type",description:'Ex. "Material Type"',selectOptions:[{label:"Material Type",value:"Material Type"}],validators:[{validate:"required"}]},{key:"scope",type:"select",selectOptions:[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"}],label:"Scope",description:'Ex. "1"',validators:[{validate:"required"}]},{key:"type",type:"string",label:"Type",description:'Ex. "Metal"',validators:[{validate:"required"}]},{key:"subtype1",type:"string",label:"Subtype 1",description:'Ex. "Glazing by thickness of glass - Per m2"',validators:[{validate:"required"}]},{key:"subtype2",type:"string",label:"Subtype 2",description:'Ex. "Multi layer safety glass, not a filled core - no frame"'},{key:"subtype3",type:"string",label:"Subtype 3",description:'Ex. "10 mm of glass, ex frame"'},{key:"fromUnit",type:"string",label:"From unit",description:'Ex. "m2"',validators:[{validate:"required"}]},{key:"fromUnitToStandardUnitConversionFactor",type:["number","default"],label:"From unit to kg conversion factor",description:'Ex. "2345.23"'},{key:"toGhgUnit",type:"select",label:"To GHG unit",description:'Ex. "kgCO2e"',selectOptions:[{label:"kgCO2e",value:"kgCO2e"}],validators:[{validate:"required"}]},{key:"region",type:"select",label:"Region",description:'Ex. "Global"',selectOptions:[{label:"Global",value:"Global"}],validators:[{validate:"required"}]},{key:"accountId",type:"select",label:"Only for current account",description:"If true, the emission factor will only be used for the currently selected account (recommended)",defaultValue:"Yes",selectOptions:[{label:"Yes",value:"Yes"},{label:"No",value:"No"}]},{key:"scope1Emissions",type:["number","default"],label:"Scope 1 emissions",description:'Ex. "56.7"'},{key:"scope2Emissions",type:["number","default"],label:"Scope 2 emissions",description:'Ex. "56.7"'},{key:"scope3Emissions",type:["number","default"],label:"Scope 3 emissions",description:'Ex. "56.7"'},{key:"notes",type:"string",label:"Notes",description:"Enter notes (optional)"}],jq=t.p+"activity-based-factors-template-0ce5feae6ca8c7df2086.xlsx",wq=t.p+"spend-based-factors-template-fce67b38eefb89eafa4b.xlsx",Oq=(e,n)=>{if(1!==e.length&&2!==e.length)throw new Error("validateDates expects 2 date fields");return n.map(n=>{const[t,a]=function(e,n){return n.map(n=>(0,hn.get)(e,n).resultValue)}(n.row,e),i=bn()(t,yt),l=bn()(a,yt);return l.isBefore(i)?LV({message:"End date should be equal to or greater than start date.",level:"error"},n,e):l.diff(i,"years",!0)>1?LV({message:"Date range cannot exceed 1 year.",level:"error"},n,e):IV(n,e)})};function Eq(e,n){return n.map(n=>{const t={...n};return e.some(e=>jV(n.row[e].resultValue))?IV(n,e):e.forEach(n=>{LV({message:`At least one of ${e.join(", ")} should be present.`,level:"error"},t,[n])}),t})}function _q(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.map(n=>{const a={...n};return e.forEach(e=>{let[i,...l]=e;jV(n.row[i].resultValue)?l.forEach(e=>{const l=jV(n.row[e].resultValue),r=!t.allowZeroValues&&0===n.row[e].resultValue;!l||r?LV({message:`When ${i} is present, ${e} must be specified.`,level:"error"},a,[e]):IV(n,[e])}):IV(n,l)}),a})}function Fq(e){return!e||""===e||"null"===e||"undefined"===e||""===e.toString().trim()}function Pq(e,n){return n.map(n=>(0,hn.get)(e,n)?.toString().trim()).join("/")}function Bq(e,n,t){if(n.length<2)throw new Error("Dependency validation requires at least 2 fields");const a=function(e){return e.flatMap(e=>Array.isArray(e)?e:[e])}(n),i=function(e){return e.reduce((e,n)=>{const t=Array.isArray(n)?n:[n];return e.flatMap(e=>t.map(n=>[...e,n]))},[[]])}(n);if(!i.some(n=>n.every(n=>e.every(e=>!Fq((0,hn.get)(e,n))))))throw new Error("Some required fields are missing");const l={};return i.forEach(n=>{e.forEach(e=>{l[Pq(e,n).toLowerCase()]=!0})}),t.map(e=>{const t={...e},r=i.filter(n=>n.every(n=>!Fq((0,hn.get)(e.row,`${n}.resultValue`))));if(0===r.length)return t;if(r.some(n=>{const t=Pq(e.row,n.map(e=>`${e}.resultValue`));return l[t.toLowerCase()]}))IV(t,a);else{const e=n.map(e=>Array.isArray(e)?e.map(hn.capitalize).join(" or "):(0,hn.capitalize)(e));LV({message:`Incorrect value combination for ${e.join(", ")}.`,level:"error"},t,a)}return t})}function Uq(e){let{records:n,fields:t,condition:a,message:i,strategy:l}=e;return n.map(e=>{let n=!0;for(const r of t){const t=e.row;t[r]&&(("allow"===l?!Fq(t[r].value)&&!a(t):Fq(t[r].value)&&a(t))&&(LV({message:i||"allow"===l?"Must be left empty":"Required",level:"error"},e,[r]),n=!1))}return n&&IV(e,t),e})}function $q(e){return null==e||"string"==typeof e&&""===e.trim()}function Mq(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"quantity (m3)";const a="reading",i=new Map;return e.forEach(e=>{i.set(e.meterId.toLowerCase(),e)}),n.map(e=>{const n={...e},l=e.row,r=l["meter name"]?.resultValue?.toString()?.trim();if(!r)return n;const o=i.get(r.toLowerCase());if(!o)return n;const s=l[t]?.resultValue,d=l[a]?.resultValue,c=!$q(s),u=!$q(d);let p=!0;const m=[t,a];return o.isReadingMeter?u||(LV({message:`Reading is required for reading meter "${r}".`,level:"error"},n,[a]),p=!1):c||(LV({message:`Quantity is required for consumption meter "${r}".`,level:"error"},n,[t]),p=!1),p&&IV(n,m),n})}const Vq=(0,f.styled)("div")`
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-left: 22px;
`,Gq=(0,f.styled)(f.Select)`
  width: 250px;
`,zq=["1","2","3"].map(e=>n=>(e=>Uq({strategy:"require",...e}))({records:n,fields:[`scope${e}Emissions`],condition:n=>n.scope.value?.toString()===e}));function Wq(e){let{gridApi:n}=e;const t=Je(),{showNotification:a}=tn(),[i,l]=(0,g.useState)("Activity-Based"),[r]=(0,ln.n)(Lq),o=function(e){const{allCountries:n}=Bo();return(0,g.useMemo)(()=>{if("Spend-Based"===e&&(!n||0===n.length))return[];const t=(0,hn.cloneDeep)(Iq);if("Spend-Based"===e){const e=Iq.findIndex(e=>"fromUnit"===e.key),a=Iq.findIndex(e=>"fromUnitToStandardUnitConversionFactor"===e.key),i=Iq.findIndex(e=>"region"===e.key);-1!==e&&(t[e]={key:"fromUnit",type:"select",label:"Currency",description:'Ex. "EUR"',selectOptions:[{label:"USD",value:"USD"},{label:"EUR",value:"EUR"},{label:"GBP",value:"GBP"}],validators:[{validate:"required"}]}),-1!==i&&(t[i]={key:"region",type:"select",label:"Country/Region",description:'Ex. "Global", use "Global" if not country specific',selectOptions:n.map(e=>({label:e.name,value:e.name})),validators:[{validate:"required"}]}),-1!==a&&t.splice(a,1)}return t},[n,e])}(i),s=(0,g.useCallback)(async e=>{try{const l=e.map(Ki);await Promise.all(kC()(l,1e3).map(async e=>r({variables:{input:e.map(e=>({...e,accountId:"Yes"===(e.accountId??"Yes")?t:null,method:i}))}}))),n.refreshServerSide({purge:!0}),a("The emission factors have been uploaded!","success")}catch(e){a(`Error uploading emission factors: ${e.message}`,"danger")}},[n,a,r,t,i]);return(0,fe.jsxs)(Vq,{children:[(0,fe.jsx)(Gq,{label:"What type would you like to upload?",value:i,options:[{label:"Activity-Based",value:"Activity-Based"},{label:"Spend-Based",value:"Spend-Based"}],onChange:e=>l(e.value)}),(0,fe.jsx)(Bz,{templateUrl:"Activity-Based"===i?jq:wq,importIdentifier:"Emission factors",onResults:s,fields:o,bulkRowHooks:zq,tooltip:"Upload",disabled:0===o.length},i)]})}const qq=(0,f.styled)("div")`
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
`,Jq=(0,f.styled)("div")`
  width: 100%;
  display: flex;
  gap: 16px;
`,Yq=e=>{let{onClose:n,emissionFactor:t,onSuccess:a}=e;const{showNotification:i}=tn(),{control:l,handleSubmit:r,formState:{isDirty:o}}=(0,Ng.mN)({defaultValues:{scope1Emissions:t.scope1Emissions?.toString()||"",scope2Emissions:t.scope2Emissions?.toString()||"",scope3Emissions:t.scope3Emissions?.toString()||"",fromUnitToStandardUnitConversionFactor:t?.fromUnitToStandardUnitConversionFactor?.toString()||"",deprecated:t.deprecated,deprecationReason:t.deprecationReason||""}}),[s,{loading:d}]=(0,ln.n)(Lq,{onCompleted:()=>{i("Emission factor updated successfully","success"),a(),n()},onError:e=>{i(`Failed to update emission factor: ${e.message}`,"danger")}}),c=()=>{d||n()},u="Activity-Based"===t.method,p=!d&&o;return(0,fe.jsx)(f.Modal,{open:!0,onClose:c,title:"Edit emission factor",children:(0,fe.jsx)("form",{onSubmit:r(async e=>{let{fromUnitToStandardUnitConversionFactor:n,scope1Emissions:a,scope2Emissions:i,scope3Emissions:l,deprecated:r,deprecationReason:o}=e;const d={...(0,hn.omit)(t,["factorKey","accountName"]),fromUnitToStandardUnitConversionFactor:n?Number(n):null,scope1Emissions:a?Number(a):null,scope2Emissions:i?Number(i):null,scope3Emissions:l?Number(l):null,deprecated:r,deprecationReason:o};await s({variables:{input:[d]}})}),children:(0,fe.jsxs)(qq,{children:[(0,fe.jsxs)("div",{children:[(0,fe.jsx)(f.Text,{typescale:"label",size:"large",children:"Factor Key:"}),(0,fe.jsx)(f.Text,{typescale:"body",size:"large",children:t.factorKey})]}),(0,fe.jsx)(Ng.xI,{name:"scope1Emissions",control:l,rules:1===t.scope?{required:"Scope 1 emissions is required"}:void 0,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(f.TextField,{...n,type:"number",label:"Scope 1 emissions",fullWidth:!0,error:!!t?.message,helperText:t?.message})}}),(0,fe.jsx)(Ng.xI,{name:"scope2Emissions",control:l,rules:2===t.scope?{required:"Scope 2 emissions is required"}:void 0,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(f.TextField,{...n,type:"number",label:"Scope 2 emissions",fullWidth:!0,error:!!t?.message,helperText:t?.message})}}),(0,fe.jsx)(Ng.xI,{name:"scope3Emissions",control:l,rules:3===t.scope?{required:"Scope 3 emissions is required"}:void 0,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(f.TextField,{...n,type:"number",label:"Scope 3 emissions",fullWidth:!0,error:!!t?.message,helperText:t?.message})}}),(0,fe.jsx)(Ng.xI,{name:"fromUnitToStandardUnitConversionFactor",control:l,render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,type:"number",label:u?`From unit (${t.fromUnit}) to kg conversion factor`:`Currency (${t.fromUnit}) to £ conversion factor`,fullWidth:!0})}}),(0,fe.jsx)(Ng.xI,{name:"deprecated",control:l,render:e=>{let{field:n}=e;return(0,fe.jsx)(f.Checkbox,{...n,disabled:t.deprecated,label:"Deprecated",checked:n.value})}}),(0,fe.jsx)(Ng.xI,{name:"deprecationReason",control:l,render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextArea,{...n,label:"Deprecation reason",fullWidth:!0})}}),(0,fe.jsxs)(Jq,{children:[(0,fe.jsx)(f.Button,{fullWidth:!0,variant:"outlined",onClick:c,disabled:d,children:"Cancel"}),(0,fe.jsx)(f.Button,{fullWidth:!0,variant:"contained",type:"submit",disabled:!p,loading:d,children:"Update"})]})]})})})},Hq=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  gap: 8px;
`,Kq=(0,f.styled)(f.AgGrid)`
  height: calc(100vh - 216px); // header + page title height;
  padding-bottom: 2px; // border bottom and shadow to show properly
`,Qq=()=>{const e=(0,g.useRef)(null),n=(0,C.m)(),t=Je(),a=lr().data.find(e=>e.startsWith("createEmissionFactor")),{showNotification:i}=tn(),[l,r]=(0,g.useState)(null),[o,s]=(0,g.useState)(null),[d]=(0,ln.n)(Dq,{onCompleted:()=>{i("Emission factor deleted successfully","success"),r(null),e.current?.gridApi?.refreshServerSide({purge:!0})},onError:e=>{i("Failed to emission factor","danger"),E.Cp(e)}}),c=(0,g.useCallback)(async e=>{try{const{data:{getEmissionFactorsPageFilter:a}}=await n.query({query:Rq,variables:{accountId:t,field:e.colDef.colId||e.colDef.field}});e.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){i(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning")}},[t,n,i]),u=(0,g.useCallback)(e=>{s(e)},[]),p=(0,g.useCallback)(()=>{l&&d({variables:{id:l}})},[l,d]),m=(0,g.useCallback)(()=>{e.current?.gridApi?.refreshServerSide({purge:!0})},[]),y=(0,g.useCallback)(()=>{s(null)},[]),[h]=ed(Aq,{notifyOnNetworkStatusChange:!0,fetchPolicy:"network-only"}),x=(0,g.useMemo)(()=>[{headerName:"Factor Key",field:"factorKey",filter:"agTextColumnFilter"},{headerName:"Source Name",field:"sourceName",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Factor Year",field:"factorYear",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Accounting Method",field:"accountingMethod",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)||"-"}},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)||"-"}},{headerName:"Emission Source",field:"emissionSource",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Emission Source Type",field:"emissionSourceType",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Scope",field:"scope",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Type",field:"type",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Subtype 1",field:"subtype1",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Subtype 2",field:"subtype2",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Subtype 3",field:"subtype3",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"From Unit",field:"fromUnit",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"From Unit to standard unit conversion factor",field:"fromUnitToStandardUnitConversionFactor",filter:"agNumberColumnFilter",width:350},{headerName:"To GHG Unit",field:"toGhgUnit",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Scope 1 Emissions",field:"scope1Emissions",filter:"agNumberColumnFilter"},{headerName:"Scope 2 Emissions",field:"scope2Emissions",filter:"agNumberColumnFilter"},{headerName:"Scope 3 Emissions",field:"scope3Emissions",filter:"agNumberColumnFilter"},{headerName:"Region",field:"region",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Method",field:"method",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Account",field:"accountName",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{headerName:"Deprecated",field:"deprecated",filter:"agSetColumnFilter",valueFormatter:qi,filterParams:Ji()},{headerName:"Deprecation Reason",field:"deprecationReason",filter:"agTextColumnFilter"},{headerName:"ID",field:"id",filter:"agTextColumnFilter"},{field:"actions",cellRenderer:e=>(0,fe.jsx)(Hq,{children:a&&(0,fe.jsx)(f.IconButton,{onClick:()=>u(e.data),children:(0,fe.jsx)(f.Icons.Edit,{})})})}],[u,c,a]),T=(0,g.useMemo)(()=>({columnDefs:x,rowModelType:"serverSide",serverSideDatasource:{async getRows(e){try{const{startRow:n=0,endRow:a=25,sortModel:i,filterModel:l}=e.request,r=await h({variables:{accountId:t,offset:n,limit:a-n,sort:wn(i),filters:jn(l)}});if(r.error||!r.data)throw r.error||new Error("No data returned from query");const{rows:o,totalRows:s}=r.data.getEmissionFactorsPage;e.success({rowData:o,rowCount:s})}catch(n){e.fail(),E.Cp(n)}}},pagination:!0,paginationPageSize:20}),[t,x,h]);return(0,fe.jsxs)(f.Page,{title:{content:"Emission Factors (New)",actionButton:(0,fe.jsxs)(Hq,{children:[(0,fe.jsx)(jS,{filtersApplied:e.current?.filtersApplied,resetGridState:e.current?.resetGridState}),e.current?.gridApi&&a&&(0,fe.jsx)(Wq,{gridApi:e.current.gridApi})]})},children:[(0,fe.jsx)(Kq,{ref:e,gridKey:`${t}EmissionFactorsNewGridV2`,gridOptions:T}),(0,fe.jsx)(GS,{open:!!l,onClose:()=>r(null),onConfirm:p,title:"Delete Emission Factor",body:"Are you sure you want to delete this emission factors?",confirmButtonText:"Delete"}),o&&(0,fe.jsx)(Yq,{onClose:y,emissionFactor:o,onSuccess:m})]})},Zq=(0,le.default)(ie.In)`
  cursor: pointer;
`,Xq=le.default.div`
  display: flex;
  gap: 8px;
  align-items: center;
`,eJ=S.J1`
  query GetAssetFactorsByAccountId(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters!
  ) {
    getAssetFactorsByAccountId(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        assetId
        assetName
        value
        referenceLink
        factorYear
        name
      }
    }
  }
`,nJ=S.J1`
  mutation ImportAssetConversionFactors($assetFactors: [AssetFactorInput!]!, $accountId: ID!) {
    importAssetConversionFactors(assetFactors: $assetFactors, accountId: $accountId) {
      created
      updated
      deleted
    }
  }
`,tJ=()=>{const e=(0,C.m)();return(0,g.useCallback)(async n=>{const{data:t}=await e.query({query:eJ,variables:n,fetchPolicy:"network-only"});return t.getAssetFactorsByAccountId},[e])},aJ=()=>(0,ln.n)(nJ),iJ=le.default.div`
  height: 100%;
`,lJ={pagination:!0,paginationPageSize:25,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}};function rJ(e){let{accountId:n,onGridReady:t,onDelete:a,onEdit:i}=e;const[l,r]=(0,g.useState)(null),o=(e=>{let{onDelete:n,onEdit:t}=e;return(0,g.useMemo)(()=>[{headerName:"ID",field:"id",filter:"agTextColumnFilter"},{headerName:"Asset Name",field:"assetName",filter:"agTextColumnFilter"},{headerName:"Factor Name",field:"name",filter:"agTextColumnFilter"},{headerName:"Factor Value",field:"value",filter:"agNumberColumnFilter"},{headerName:"Factor Year",field:"factorYear",filter:"agNumberColumnFilter"},{headerName:"Reference Link",field:"referenceLink",filter:"agTextColumnFilter",cellRenderer:e=>(0,fe.jsx)(yA,{value:e.value})},{headerName:"Actions",field:"actions",filter:!1,sortable:!1,cellRenderer:e=>(0,fe.jsxs)(Xq,{children:[t&&(0,fe.jsx)(f.IconButton,{onClick:()=>t(e.data),title:"Edit","aria-label":"Edit",children:(0,fe.jsx)(f.Icons.Edit,{})}),(0,fe.jsx)(Zq,{title:"Delete",icon:"trash-alt",onClick:()=>n({...(0,hn.omit)(e.data,["__typename","assetName"]),deleted:!0})})]})}],[n,t])})({onDelete:e=>{r(e)},onEdit:i}),s=tJ();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(iJ,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{...lJ,columnDefs:o,onGridReady:e=>{t(e),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:t,sortModel:a,filterModel:i}=e.request,{rows:l,totalRows:r}=await s({accountId:n,offset:t||0,limit:lJ.paginationPageSize,sort:wn(a),filters:jn(i)});e.success({rowData:l,rowCount:r})}catch(n){E.Cp(n),e.fail()}}})}})}),(0,fe.jsx)(GS,{open:!!l,onClose:()=>r(null),onConfirm:async()=>{l&&(await a(l),r(null))},title:"Delete asset conversion factor",body:"This will permanently delete the asset conversion factor. Do you want to proceed?",confirmButtonText:"Delete"})]})}const oJ=JSON.parse('[{"key":"assetId","type":"select","label":"Asset ID","validators":[{"validate":"required"}],"description":"ID of the asset","selectOptions":[]},{"key":"name","type":"string","label":"Factor name","validators":[{"validate":"required"}],"description":"Name of the conversion factor"},{"key":"value","type":["number","plain"],"label":"Factor value","validators":[{"validate":"required"}],"description":"The actual value of the factor"},{"key":"factorYear","type":["number","plain"],"label":"Factor year","validators":[{"validate":"required"}],"description":"Year for which this factor applies"},{"key":"referenceLink","type":"string","label":"Reference link","validators":[{"validate":"required"}],"description":"Reference URL or link to the factor source"},{"key":"id","type":"string","label":"ID (optional)","validators":[],"description":"Leave empty to create new. Provide existing record ID to update."}]'),sJ=t.p+"asset-conversion-factors-template-f42815cb175f09b45401.xlsx";function dJ(e){let{onCompleted:n}=e;const t=zo(),a=Yo(),{showNotification:i}=tn(),[l]=aJ(),{assets:r,loading:o}=Zd(),s=(0,g.useCallback)(async e=>{const a=e.map(e=>{const{id:n,...t}=e;return n&&String(n).trim()?{...t,id:String(n).trim()}:t});await l({variables:{assetFactors:a,accountId:t?.id},onError:e=>{i(`Failed to import asset factors: ${e.message}`)},onCompleted:e=>{const{created:t=0,updated:a=0}=e?.importAssetConversionFactors??{},l=[];t&&l.push(`${t} created`),a&&l.push(`${a} updated`),i(l.length?l.join(", "):"Asset factors imported successfully"),n()}})},[i,n,l,t?.id]);if(!a)throw new Error("Configuration is not ready");const d={id:a?.id||"",name:Wi(a),email:a?.email,companyId:t?.id,companyName:t?.name},c=(0,g.useMemo)(()=>oJ.map(e=>"assetId"===e.key?{...e,selectOptions:r.map(e=>({label:e.externalId?`${e.externalId} - ${e.name}`:e.name,value:e.id,alternateMatches:[e.name]}))}:e),[r]);return o?(0,fe.jsx)(f.Loader,{size:32}):(0,fe.jsx)(vC.A,{licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:d,style:DC.style,settings:{...DC.settings,importIdentifier:"Asset Conversion Factors",uploadStep:{...DC.settings.uploadStep,helpText:SC(`${De("REACT_APP_BASE_URL")}${sJ}`)}},fields:c,onResults:s,children:"+ Upload"})}function cJ(e){let{assetFactor:n,accountId:t,assets:a,open:i,onClose:l,onCompleted:r}=e;const[o,s]=(0,g.useState)(n.assetId),[d,c]=(0,g.useState)(n.name||""),[u,p]=(0,g.useState)(String(n.value??"")),[m,y]=(0,g.useState)(String(n.factorYear??"")),[h,x]=(0,g.useState)(n.referenceLink||""),[T,{loading:b}]=aJ(),{showNotification:v}=tn();(0,g.useEffect)(()=>{i&&(s(n.assetId),c(n.name||""),p(String(n.value??"")),y(String(n.factorYear??"")),x(n.referenceLink||""))},[i,n]);const C=(0,g.useCallback)(async()=>{try{const e=parseFloat(u),a=parseInt(m,10);if(!h.trim())return void v("Please enter a reference link","danger");if(isNaN(e))return void v("Please enter a valid factor value","danger");if(isNaN(a))return void v("Please enter a valid factor year","danger");await T({variables:{accountId:t,assetFactors:[{id:n.id,assetId:o,name:d.trim(),value:e,factorYear:a,referenceLink:h.trim()}]}}),v("Asset conversion factor updated successfully","success"),r(),l()}catch(e){v(`Failed to update asset conversion factor: ${e instanceof Error?e.message:"Unknown error"}`,"danger")}},[n,t,o,d,u,m,h,T,r,l,v]),k=(0,g.useCallback)(()=>{s(n.assetId),c(n.name||""),p(String(n.value??"")),y(String(n.factorYear??"")),x(n.referenceLink||""),l()},[n,l]),S=o!==n.assetId||d!==(n.name||"")||u!==String(n.value??"")||m!==String(n.factorYear??"")||h!==(n.referenceLink||""),N=d.trim()&&u.trim()&&m.trim()&&h.trim()&&!isNaN(parseFloat(u))&&!isNaN(parseInt(m,10)),A=a.map(e=>({label:e.externalId?`${e.externalId} - ${e.name}`:e.name,value:e.id}));return(0,fe.jsx)(f.Modal,{open:i,onClose:k,title:"Edit Asset Conversion Factor",children:(0,fe.jsxs)(f.Grid,{container:!0,direction:"column",gap:3,children:[(0,fe.jsx)(f.Select,{label:"Asset",value:o,onChange:e=>s(e.value),options:A,required:!0}),(0,fe.jsx)(f.TextField,{label:"Factor Name",value:d,onChange:e=>c(e.target.value),fullWidth:!0,required:!0}),(0,fe.jsx)(f.TextField,{label:"Factor Value",type:"number",value:u,onChange:e=>p(e.target.value),fullWidth:!0,required:!0}),(0,fe.jsx)(f.TextField,{label:"Factor Year",type:"number",value:m,onChange:e=>y(e.target.value),fullWidth:!0,required:!0}),(0,fe.jsx)(f.TextField,{label:"Reference Link",value:h,onChange:e=>x(e.target.value),fullWidth:!0}),(0,fe.jsxs)(f.Grid,{container:!0,gap:2,justifyContent:"flex-end",children:[(0,fe.jsx)(f.Button,{variant:"text",onClick:k,disabled:b,children:"Cancel"}),(0,fe.jsx)(f.Button,{onClick:C,disabled:b||!S||!N,children:"Save"})]})]})})}function uJ(e){let{accountId:n}=e;const t=tJ(),[a,i]=(0,g.useState)(),[l,r]=(0,g.useState)(null),[o]=aJ(),{showNotification:s}=tn(),{assets:d}=Zd(),c=(0,g.useCallback)(async e=>{try{await o({variables:{assetFactors:[e],accountId:n}}),s("Asset factor deleted successfully","success"),a?.api?.refreshServerSide({purge:!0})}catch(e){s(`Failed to delete asset factor: ${e}`,"danger")}},[o,n,s,a]),u=(0,g.useCallback)(e=>{r(e)},[]),p=(0,g.useCallback)(()=>{a?.api?.refreshServerSide({purge:!0})},[a]),m=(0,g.useCallback)(()=>{r(null)},[]);return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{icon:"calculator",iconColor:"primary",title:"Asset Conversion Factors",children:[(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(Mx,{fetchRows:t,gridApi:a?.api,defaultExportFileName:"asset-conversion-factors",columnsToSkip:["Actions"],label:"Export"})}),(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(dJ,{onCompleted:()=>a?.api?.refreshServerSide({purge:!0})})})]}),(0,fe.jsx)(rJ,{accountId:n,onGridReady:i,onDelete:c,onEdit:u}),l&&(0,fe.jsx)(cJ,{assetFactor:l,accountId:n,assets:d,open:!0,onClose:m,onCompleted:p})]})}const pJ=S.J1`
  query GetFundFMVsByAccountId(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getFundFMVsByAccountId(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        fundId
        fundName
        accountId
        value
        startDate
        endDate
      }
    }
  }
`,mJ=S.J1`
  mutation ImportFundFMVs($fundFMVs: [FundFMVInput!]!, $accountId: ID!) {
    importFundFMVs(fundFMVs: $fundFMVs, accountId: $accountId) {
      deleted
      created
      updated
    }
  }
`,fJ=S.J1`
  query GetFundFMVsFilter($field: String!, $accountId: ID!) {
    getFundFMVsFilter(field: $field, accountId: $accountId) {
      label
      value
    }
  }
`;function yJ(){const[e]=(0,Ul._)(pJ,{fetchPolicy:"network-only"});return async n=>{const t=await e({variables:n});if(!t.data?.getFundFMVsByAccountId)throw new Error("Failed to fetch fund FMVs");const{rows:a,totalRows:i}=t.data.getFundFMVsByAccountId;return{rows:a,totalRows:i||0}}}function gJ(){return(0,ln.n)(mJ)}const hJ=(0,le.default)(ie.In)`
  cursor: pointer;
`,xJ=le.default.div`
  display: flex;
  gap: 8px;
  align-items: center;
`,TJ=le.default.div`
  height: 100%;
`,bJ={pagination:!0,paginationPageSize:25,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}};function vJ(e){let{accountId:n,onGridReady:t,onDeleteFundFMV:a,onEdit:i}=e;const l=yJ(),r=(e=>{let{onDelete:n,onEdit:t}=e;const a=Je(),{showNotification:i}=tn(),[l]=(0,Ul._)(fJ,{fetchPolicy:"network-only"}),r=(0,g.useCallback)(async e=>{try{const n=e.colDef.field||e.colDef.colId;if(!n)throw new Error("Unfilterable column");const t=await l({variables:{accountId:a,field:n}}),i=(t.data?.getFundFMVsFilter||[]).map(e=>e.value?JSON.stringify(xn().omit(e,"__typename")):e.value);e.success(i)}catch(n){i(`Couldn't load filter values for column ${e.colDef.field}: ${n}`,"danger")}},[l,a,i]);return(0,g.useMemo)(()=>[{headerName:"ID",field:"id",filter:"agTextColumnFilter"},{headerName:"Fund",field:"fundName",filter:"agSetColumnFilter",filterParams:{values:r,valueFormatter:On,cache:!1,refreshValuesOnOpen:!0}},{headerName:"Start Date",field:"startDate",valueFormatter:Fn,filter:"agDateColumnFilter"},{headerName:"End Date",field:"endDate",valueFormatter:Fn,filter:"agDateColumnFilter"},{headerName:"Value",field:"value",filter:"agNumberColumnFilter"},{headerName:"Actions",field:"actions",filter:!1,sortable:!1,cellRenderer:e=>(0,fe.jsxs)(xJ,{children:[t&&(0,fe.jsx)(f.IconButton,{onClick:()=>t(e.data),title:"Edit","aria-label":"Edit",children:(0,fe.jsx)(f.Icons.Edit,{})}),(0,fe.jsx)(hJ,{title:"Delete",icon:"trash-alt",onClick:()=>n({...(0,hn.omit)(e.data,["__typename","fundName","accountId"]),deleted:!0})})]})}],[r,n,t])})({onDelete:a,onEdit:i}),o=(0,g.useCallback)(e=>{t(e),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:t,sortModel:a,filterModel:i}=e.request,{rows:r,totalRows:o}=await l({accountId:n,offset:t||0,limit:bJ.paginationPageSize,sort:wn(a),filters:jn(i)});e.success({rowData:r,rowCount:o})}catch(n){e.fail()}}})},[l,n,t]);return(0,fe.jsx)(TJ,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{...bJ,columnDefs:r,onGridReady:o})})}const CJ=JSON.parse('{"O":[{"key":"startDate","type":["date",{"displayFormat":"dd/MM/yyyy"}],"label":"Start date (dd/mm/yyyy)","validators":[{"validate":"required"}]},{"key":"endDate","type":["date",{"displayFormat":"dd/MM/yyyy"}],"label":"End date (dd/mm/yyyy)","validators":[{"validate":"required"}],"description":"If left empty, the fund FMV is valid indefinitely"},{"key":"value","type":["number","plain"],"label":"Value","validators":[{"validate":"required"}]},{"key":"fundId","type":"select","label":"Fund","validators":[{"validate":"required"}],"selectOptions":[]},{"key":"id","type":"string","label":"ID (optional)","validators":[],"description":"Leave empty to create new. Provide existing record ID to update."}]}');function kJ(e){let{onCompleted:n}=e;const t=zo(),a=Je(),i=Yo(),{data:l}=function(){const e=Je(),{data:{getFundsByAccountId:n=[]}={},loading:t,error:a}=(0,x.IT)(qd,{variables:{accountId:e,limit:1e3,filters:{set:[{values:["0"],filterType:"set",field:"deleted"}]}},fetchPolicy:"network-only"}),i=n.rows;return{data:(0,hn.orderBy)(i,["name"],["asc"]),loading:t,error:a}}(),{showNotification:r}=tn(),[o]=gJ(),s=(0,g.useCallback)(e=>{const t=e.map(e=>{const{id:n,...t}=e;return n&&String(n).trim()?{...t,id:String(n).trim()}:t});o({variables:{fundFMVs:t,accountId:a},onCompleted:()=>{r("Import completed"),n()}})},[o,a,r,n]);if(!i)throw new Error("Configuration is not ready");const d={id:i?.id||"",name:Wi(i),email:i?.email,companyId:a,companyName:t?.name},c=(0,g.useMemo)(()=>CJ.O.map(e=>"fundId"===e.key?{...e,selectOptions:l.map(e=>({label:e.name,value:e.id}))}:e),[l]);return(0,fe.jsx)(vC.A,{licenseKey:De("REACT_APP_DROMO_LICENSE_KEY"),user:d,style:DC.style,settings:{...DC.settings,importIdentifier:"Investment Fund FMVs"},fields:c,onResults:s,children:"+ Upload fund FMVs"})}function SJ(e){let{fundFMV:n,accountId:t,onClose:a,onCompleted:i}=e;const[l,r]=(0,g.useState)(n.startDate||""),[o,s]=(0,g.useState)(n.endDate||""),[d,c]=(0,g.useState)(String(n.value??"")),[u,{loading:p}]=gJ(),{showNotification:m}=tn(),y=(0,g.useCallback)(async()=>{try{const e=parseFloat(d);if(isNaN(e))return void m("Please enter a valid value","danger");await u({variables:{accountId:t,fundFMVs:[{id:n.id,fundId:n.fundId,startDate:l,endDate:o,value:e}]}}),m("Fund FMV updated successfully","success"),i(),a()}catch(e){m(`Failed to update fund FMV: ${e instanceof Error?e.message:"Unknown error"}`,"danger")}},[n,t,l,o,d,u,i,a,m]),h=l!==(n.startDate||"")||o!==(n.endDate||"")||d!==String(n.value??""),x=l.trim()&&o.trim()&&d.trim()&&!isNaN(parseFloat(d));return(0,fe.jsx)(f.Modal,{open:!0,onClose:a,title:"Edit Fund FMV",children:(0,fe.jsxs)(f.Grid,{container:!0,direction:"column",gap:3,children:[(0,fe.jsx)(f.TextField,{label:"Fund",value:n.fundName,disabled:!0,fullWidth:!0}),(0,fe.jsx)(f.DatePicker,{label:"Start Date",value:l,onChange:e=>r(e),format:"DD/MM/YYYY"}),(0,fe.jsx)(f.DatePicker,{label:"End Date",value:o,onChange:e=>s(e),format:"DD/MM/YYYY"}),(0,fe.jsx)(f.TextField,{label:"Value",type:"number",value:d,onChange:e=>c(e.target.value),fullWidth:!0,required:!0}),(0,fe.jsxs)(f.Grid,{container:!0,gap:2,justifyContent:"flex-end",children:[(0,fe.jsx)(f.Button,{variant:"text",onClick:a,disabled:p,children:"Cancel"}),(0,fe.jsx)(f.Button,{onClick:y,disabled:p||!h||!x,children:"Save"})]})]})})}function NJ(){const e=Je(),n=yJ(),[t,a]=(0,g.useState)(),[i,l]=(0,g.useState)(null),r=function(){const e=Je(),[n]=(0,ln.n)(mJ);return async(t,a)=>{await n({variables:{fundFMVs:[t],accountId:e},onCompleted:()=>{a?.()}})}}(),o=(0,g.useCallback)(e=>{r(e,()=>{t?.api?.refreshServerSide({purge:!0})})},[r,t]),s=(0,g.useCallback)(e=>{l(e)},[]),d=(0,g.useCallback)(()=>{t?.api?.refreshServerSide({purge:!0})},[t]),c=(0,g.useCallback)(()=>{l(null)},[]),u=(0,g.useCallback)(()=>{t?.api?.refreshServerSide({purge:!0})},[t]);return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsxs)(gu,{icon:"business-time",iconColor:"primary",title:"Fund FMVs management",children:[(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(Mx,{fetchRows:n,gridApi:t?.api,defaultExportFileName:"fund-fmvs",columnsToSkip:["Actions"],label:"Export"})}),(0,fe.jsx)(ie.fv,{span:4,container:!0,item:!0,children:(0,fe.jsx)(kJ,{onCompleted:u})})]}),(0,fe.jsx)(vJ,{accountId:e,onGridReady:a,onDeleteFundFMV:o,onEdit:s}),i&&(0,fe.jsx)(SJ,{fundFMV:i,accountId:e,onClose:c,onCompleted:d})]})}const AJ=le.default.div`
  height: 100%;
  overflow: hidden;
  padding: ${e=>e.theme.geometry.md.spacing};
`,RJ=le.default.div`
  flex: 1 1 auto;
  background-color: ${e=>e.theme.colors.basic.white};
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,DJ=(0,le.default)(ie.KH)`
  overflow: auto;
`,LJ=(0,le.default)(ie.fI)`
  height: 100%;
`,IJ=(0,le.default)(ie.fv)`
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,jJ=(0,ce.Ay)(e=>{const{massUploadFunction:n,setCreateMutation:t,intl:a}=e,i=lr(),{licenceService:l,learnService:r}=i,o=zo(),s=Je(),d=or(),c=d.configuration.root,u=d.configuration.menu.organisation,p=[gn.gG.Sysadmin,gn.gG.Businessadmin,gn.gG.Consultant,gn.gG.Business].includes(i.role)&&o?.accessControls?.data?.oilAndGas,f=hz(),y=o?.accessControls?.organisation&&(f.canGetOrganisationalUnit||f.canGetOrganisationalHierarchy||f.canGetOrganisationalUnitLocationAttachment||f.canGetUserAccessPolicy||f.canGetUserGroup),g=r.createCourse,h=r.createCourse||l.createLicence||l.assignLicence,x=r.createCourse,T=g||h||x;return(0,fe.jsx)(AJ,{children:(0,fe.jsxs)(LJ,{container:!0,item:!0,children:[(0,fe.jsx)(IJ,{container:!0,item:!0,span:3,children:(0,fe.jsxs)(DJ,{id:"pic",name:"configuration-menu",inline:!0,size:"md",icon:"cog",text:(0,fe.jsx)(de.A,{id:"pages.configuration.nav.heading"}),children:[!!i.allowedRioModules.includes(gn.zB.Configuration)&&(0,fe.jsx)(ug,{name:"configuration-menu__item--accounts",to:"../configuration/accountconfig/accounts",base:"configuration/accountconfig",children:(0,fe.jsxs)(ie.C8,{text:"Account Configuration",dropdown:!0,children:[!!i.user.includes("createAll")&&(0,fe.jsx)(ug,{name:"configuration-menu__item--accounts",to:"accountconfig/accounts",base:"configuration/accountconfig/accounts",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.accounts"})})}),(0,fe.jsxs)(fe.Fragment,{children:[!!i.data.find(e=>e.startsWith("getLocation"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--locations",to:"../configuration/accountconfig/locations",base:"configuration/accountconfig/locations",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.locations"})})}),!!i.data.find(e=>e.startsWith("createEnergySource"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--meters",to:"../configuration/accountconfig/meters",base:"configuration/accountconfig/meters",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.meters"})})}),!!i.data.find(e=>e.startsWith("createNormaliser"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--normalisers",to:"../configuration/accountconfig/normalisers",base:"configuration/accountconfig/normalisers",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.normalisers"})})}),Boolean(i.scheme.find(e=>e.startsWith("get")))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--schemes",to:"../configuration/accountconfig/schemes",base:"configuration/accountconfig/schemes",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.schemes"})})}),!!i.tag.find(e=>e.startsWith("create"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--tags",to:"../configuration/accountconfig/tags",base:"configuration/accountconfig/tags",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.tags"})})}),!!i.user.find(e=>e.startsWith("create"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--users",to:"../configuration/accountconfig/users",base:"configuration/accountconfig/users",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.users"})})})]})]})}),p&&(0,fe.jsx)(ug,{name:"configuration-menu__item--api",to:"../configuration/api/conversion-factors",base:"configuration/api",children:(0,fe.jsxs)(ie.C8,{text:"American Petroleum Institute",dropdown:!0,children:[(0,fe.jsx)(ug,{name:"configuration-menu__item--api-conversion-factors",to:"../configuration/api/conversion-factors",base:"configuration/api/conversion-factors",children:(0,fe.jsx)(ie.nc,{text:"Conversion Factors"})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--uncertainties-background",to:"../configuration/api/uncertainties-background",base:"configuration/api/uncertainties-background",children:(0,fe.jsx)(ie.nc,{text:"Uncertainties Background"})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--gas-compositions",to:"../configuration/api/gas-compositions",base:"configuration/api/gas-compositions",children:(0,fe.jsx)(ie.nc,{text:"Gas Composition"})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--gas-composition-uncertainties",to:"../configuration/api/gas-composition-uncertainties",base:"configuration/api/gas-composition-uncertainties",children:(0,fe.jsx)(ie.nc,{text:"Gas Composition Uncertainties"})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--oil-producing-assets",to:"../configuration/api/location-asset-data",base:"configuration/api/location-asset-data",children:(0,fe.jsx)(ie.nc,{text:"Oil Producing Assets"})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--liquid-fuel-conversion-factors",to:"../configuration/api/liquid-fuel-conversion-factors",base:"configuration/api/liquid-fuel-conversion-factors",children:(0,fe.jsx)(ie.nc,{text:"Liquid Fuel Conversion Factors"})})]})}),!!o?.accessControls?.data?.coreEstate&&(0,fe.jsx)(ug,{name:"configuration-menu__item--core-estates",to:"../configuration/core-estates/estates",base:"configuration/core-estates",children:(0,fe.jsx)(ie.C8,{text:"Core Estates",dropdown:!0,children:(0,fe.jsx)(ug,{name:"configuration-menu__item--estates",to:"../configuration/core-estates/estates",base:"configuration/core-estates/estates",children:(0,fe.jsx)(ie.nc,{text:"Estates Configuration"})})})}),!!i.invest.find(e=>e.startsWith("import"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--funds",to:"../configuration/portfoliomanagement/funds",base:"configuration/portfoliomanagement",children:(0,fe.jsxs)(ie.C8,{text:"Portfolio Management",dropdown:!0,children:[(0,fe.jsx)(ug,{name:"configuration-menu__item--funds",to:"../configuration/portfoliomanagement/funds",base:"configuration/portfoliomanagement/funds",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.funds"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--fund-fmvs",to:"../configuration/portfoliomanagement/fund-fmvs",base:"configuration/portfoliomanagement/fund-fmvs",children:(0,fe.jsx)(ie.nc,{text:"Fund FMVs"})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--assets",to:"../configuration/portfoliomanagement/asset-management",base:"configuration/portfoliomanagement/asset-management",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.assetManagement"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--assets",to:"../configuration/portfoliomanagement/asset-conversion-factors",base:"configuration/portfoliomanagement/asset-conversion-factors",children:(0,fe.jsx)(ie.nc,{text:"Asset Conversion Factors"})})]})}),i.data.find(e=>e.startsWith("getCarbonConversionFactor"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--carbon-conversion-factors",to:"../configuration/carbonconversionfactors/location",base:"configuration/carbonconversionfactors",children:(0,fe.jsxs)(ie.C8,{text:a.formatMessage({id:"pages.configuration.nav.carbonConversionFactors"}),dropdown:!0,children:[(0,fe.jsx)(ug,{name:"configuration-menu__item--carbon-conversion-factors",to:"../configuration/carbonconversionfactors/location",base:"configuration/carbonconversionfactors/location",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.locationBased"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--market-carbon-conversion-factors",to:"../configuration/carbonconversionfactors/market",base:"configuration/carbonconversionfactors/market",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.marketBased"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--emission-factors-new",to:"../configuration/carbonconversionfactors/emission-factors-new",base:"configuration/carbonconversionfactors/emission-factors-new",children:(0,fe.jsx)(ie.nc,{text:"Emission Factors (New)"})})]})}),i.dashboard.includes("createAll")&&(0,fe.jsx)(ug,{name:"configuration-menu__item--dashboards",to:"../configuration/dashboardconfig/dashboards",base:"configuration/dashboardconfig",children:(0,fe.jsxs)(ie.C8,{text:"Dashboard Configuration",dropdown:!0,children:[(0,fe.jsx)(ug,{name:"configuration-menu__item--dashboards",to:"../configuration/dashboardconfig/dashboards",base:"configuration/dashboardconfig/dashboards",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.dashboards.list"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--dashboardSubscriptions",to:"../configuration/dashboardconfig/subscriptions",base:"configuration/dashboardconfig/subscriptions",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.dashboards.subscriptions"})})})]})}),Boolean(i.dataTracker.find(e=>e.startsWith("get")))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--dataTracker",to:"../configuration/datatracker/frequency-recurrence",base:"configuration/datatracker",children:(0,fe.jsxs)(ie.C8,{text:"Data Tracker Configuration",dropdown:!0,children:[(0,fe.jsx)(ug,{name:"configuration-menu__item--dataTracker",to:"../configuration/datatracker/frequency-recurrence",base:"configuration/datatracker/frequency-recurrence",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.dataTracker.container.header.missing"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--dataTracker",to:"../configuration/datatracker/anomaliesthresholds",base:"configuration/datatracker/anomaliesthresholds",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.dataTracker.container.header.anomaly"})})})]})}),T&&(0,fe.jsx)(ug,{name:"configuration-menu__item--learnconfig",to:"../configuration/learnconfig/learncontent",base:"configuration/learnconfig",children:(0,fe.jsxs)(ie.C8,{text:"Engage Configuration",dropdown:!0,children:[g&&(0,fe.jsx)(ug,{name:"configuration-menu__item--learn",to:"../configuration/learnconfig/learncontent",base:"configuration/learnconfig/learncontent",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.learnContent"})})}),h&&(0,fe.jsx)(ug,{name:"configuration-menu__item--learnSubscriptions",to:"../configuration/learnconfig/learnsubscriptions",base:"configuration/learnconfig/learnsubscriptions",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.learnSubscriptions"})})}),x&&(0,fe.jsx)(ug,{name:"configuration-menu__item--learnEvaluations",to:"../configuration/learnconfig/evaluations",base:"configuration/learnconfig/evaluations",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.evaluations"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--learnBanners",to:"../configuration/learnconfig/banners",base:"configuration/learnconfig/banners",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.engageBanners"})})})]})}),i.flows.find(e=>e.startsWith("configureFlows"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--flows",to:"../configuration/flows/flows",base:"configuration/flows",children:(0,fe.jsxs)(ie.C8,{text:"Flows",dropdown:!0,children:[(0,fe.jsx)(ug,{name:"configuration-menu__item--flows",to:"../configuration/flows/flows",base:"configuration/flows/flows",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.flows.configuration"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--flows-subscriptions",to:"../configuration/flows/subscriptions",base:"configuration/flows/subscriptions",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.flows.subscriptions"})})})]})}),i.governance.includes("createLegislationAll")&&(0,fe.jsx)(ug,{name:"configuration-menu__item--govconfig",to:"../configuration/governanceconfig/managementsubscriptions",base:"configuration/governanceconfig",children:(0,fe.jsxs)(ie.C8,{text:"Governance Configuration",dropdown:!0,children:[(0,fe.jsx)(ug,{name:"configuration-menu__item--legislation",to:"../configuration/governanceconfig/legislation",base:"configuration/governanceconfig/legislation",children:(0,fe.jsx)(ie.nc,{text:"Legislation"})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--mss",to:"../configuration/governanceconfig/managementsubscriptions",base:"configuration/governanceconfig/managementsubscriptions",children:(0,fe.jsx)(ie.nc,{text:"Management Systems Subscriptions"})})]})}),i.intelligence.includes("getAllKnowledgeBasesAll")&&(0,fe.jsx)(ug,{name:"configuration-menu__item--intelconfig",to:"../configuration/intelligenceconfig/knowledgebases",base:"configuration/intelligenceconfig",children:(0,fe.jsxs)(ie.C8,{text:"Intelligence Configuration",dropdown:!0,children:[(0,fe.jsx)(ug,{name:"configuration-menu__item--kbs",to:"../configuration/intelligenceconfig/knowledgebases",base:"configuration/intelligenceconfig/knowledgebases",children:(0,fe.jsx)(ie.nc,{text:"Knowledge Bases"})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--kbsubscriptions",to:"../configuration/intelligenceconfig/kbsubscriptions",base:"configuration/intelligenceconfig/kbsubscriptions",children:(0,fe.jsx)(ie.nc,{text:"KB Subscriptions"})})]})}),i.ocr.includes("createTemplateAll")&&(0,fe.jsx)(ug,{name:"configuration-menu__item--ocr",to:"../configuration/ocr",base:"configuration/ocr",children:(0,fe.jsx)(ie.C8,{text:"OCR Templates"})}),i.data.find(e=>e.startsWith("createSupplier"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--mySuppliers",to:"../configuration/suppliers",base:"configuration/suppliers",children:(0,fe.jsx)(ie.C8,{text:a.formatMessage({id:"pages.configuration.nav.suppliers"})})}),i.survey.find(e=>e.startsWith("createSurveyTemplate"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--surveys",to:"../configuration/surveys/templates",base:"configuration/surveys",children:(0,fe.jsxs)(ie.C8,{text:"Surveys",dropdown:!0,children:[(0,fe.jsx)(ug,{name:"configuration-menu__item--form",to:"../configuration/surveys/templates",base:"configuration/surveys/templates",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.formTemplates"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--survey-subscriptions-link",to:"../configuration/surveys/subscriptions",base:"configuration/surveys/subscriptions",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.formSubscriptions"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--survey-questions-link",to:"../configuration/surveys/questions",base:"configuration/surveys/questions",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.questions"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--survey-questions-categories-link",to:"../configuration/surveys/question-categories",base:"configuration/surveys/question-categories",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.questionsCategories"})})})]})}),i.data.find(e=>e.startsWith("createWasteStream"))&&(0,fe.jsx)(ug,{name:"configuration-menu__item--wasteconfig",to:"../configuration/wasteconfig/containertypes",base:"configuration/wasteconfig",children:(0,fe.jsxs)(ie.C8,{text:"Waste Configuration",dropdown:!0,children:[(0,fe.jsx)(ug,{name:"configuration-menu__item--waste",to:"../configuration/wasteconfig/containertypes",base:"configuration/wasteconfig/containertypes",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.containerTypes"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--wastestream",to:"../configuration/wasteconfig/wastestream",base:"configuration/wasteconfig/wastestream",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.wasteStreams"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--wasteHierarchy",to:"../configuration/wasteconfig/wastehierarchies",base:"configuration/wasteconfig/wastehierarchies",children:(0,fe.jsx)(ie.nc,{text:a.formatMessage({id:"pages.configuration.nav.wasteHierarchies"})})}),(0,fe.jsx)(ug,{name:"configuration-menu__item--wasteHierarchyNew",to:"../configuration/wasteconfig/waste-hierarchies-new",base:"configuration/wasteconfig/waste-hierarchies-new",children:(0,fe.jsx)(ie.nc,{text:"Waste Hierarchies (New)"})})]})}),y&&(0,fe.jsx)(ug,{name:"configuration-menu__item--organization",to:`../${c}/${u.organisationalUnits}`,base:`${c}/${u.root}`,children:(0,fe.jsxs)(ie.C8,{text:"Organisation",dropdown:!0,children:[f.canGetOrganisationalUnit&&(0,fe.jsx)(ug,{name:"configuration-menu__item--organisational_units",to:`../${c}/${u.organisationalUnits}`,base:`${c}/${u.organisationalUnits}`,children:(0,fe.jsx)(ie.nc,{text:"Organisational Units"})}),f.canGetOrganisationalHierarchy&&(0,fe.jsx)(ug,{name:"configuration-menu__item--organisational_hierarchies",to:`../${c}/${u.organisationalHierarchies}`,base:`${c}/${u.organisationalHierarchies}`,children:(0,fe.jsx)(ie.nc,{text:"Organisational Hierarchies"})}),f.canGetOrganisationalUnitLocationAttachment&&(0,fe.jsx)(ug,{name:"configuration-menu__item--organisational_unit_location_attachments",to:`../${c}/${u.locationAttachments}`,base:`${c}/${u.locationAttachments}`,children:(0,fe.jsx)(ie.nc,{text:"Location Attachments"})}),f.canGetUserAccessPolicy&&(0,fe.jsx)(ug,{name:"configuration-menu__item--access_policies",to:`../${c}/${u.accessPolicies}`,base:`${c}/${u.accessPolicies}`,children:(0,fe.jsx)(ie.nc,{text:"Access Policies"})}),f.canGetUserGroup&&(0,fe.jsx)(ug,{name:"configuration-menu__item--user_groups",to:`../${c}/${u.userGroups}`,base:`${c}/${u.userGroups}`,children:(0,fe.jsx)(ie.nc,{text:"User Groups"})})]})})]})}),(0,fe.jsx)(ie.fv,{container:!0,inline:!0,span:9,children:(0,fe.jsx)(RJ,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:d.configuration.menu.accounts,element:(0,fe.jsx)(rb,{})}),(0,fe.jsx)(m.qh,{path:"api/conversion-factors",element:(0,fe.jsx)(BG,{})}),(0,fe.jsx)(m.qh,{path:"api/uncertainties-background",element:(0,fe.jsx)(GG,{})}),(0,fe.jsx)(m.qh,{path:"api/gas-compositions",element:(0,fe.jsx)(UV,{})}),(0,fe.jsx)(m.qh,{path:"api/gas-composition-uncertainties",element:(0,fe.jsx)(qV,{})}),(0,fe.jsx)(m.qh,{path:"core-estates/estates",element:o?.accessControls?.data?.coreEstate?(0,fe.jsx)(fG,{}):(0,fe.jsx)(m.C5,{to:d.configuration.menu.accounts})}),(0,fe.jsx)(m.qh,{path:"api/location-asset-data",element:(0,fe.jsx)(EG,{accountId:s})}),(0,fe.jsx)(m.qh,{path:"api/liquid-fuel-conversion-factors",element:(0,fe.jsx)(YG,{})}),(0,fe.jsx)(m.qh,{path:"api",element:(0,fe.jsx)(m.C5,{to:"api/conversion-factors"})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.tracker.frequency,element:(0,fe.jsx)(w$,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.tracker.anomolies,element:(0,fe.jsx)(H$,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.locations,element:(0,fe.jsx)(WC,{accountId:s,massUploadFunction:n,setCreateMutation:t})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.meters,element:(0,fe.jsx)(OR,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.normalisers,element:(0,fe.jsx)(sO,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.schemes,element:(0,fe.jsx)(LS,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.tags,element:(0,fe.jsx)(aS,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.users,element:(0,fe.jsx)(qx,{accountId:s,massUploadFunction:n,setCreateMutation:t})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.portfolio.assets,element:(0,fe.jsx)(EM,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.portfolio.assetConversionFactors,element:(0,fe.jsx)(uJ,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.portfolio.funds,element:(0,fe.jsx)(GM,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.portfolio.fundFMVs,element:(0,fe.jsx)(NJ,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.aliases.waste,element:(0,fe.jsx)(XO,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.aliases.meters,element:(0,fe.jsx)(nE,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.aliases.transport,element:(0,fe.jsx)(aE,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.aliases.location,element:(0,fe.jsx)(lE,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.aliases.others,element:(0,fe.jsx)(oE,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.emissionFactorsNew,element:(0,fe.jsx)(Qq,{})}),(0,fe.jsx)(m.qh,{path:`${d.configuration.factors.location}/*`,element:(0,fe.jsx)(HF,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.factors.market,element:(0,fe.jsx)(xP,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.suppliers,element:(0,fe.jsx)(vw,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.contractors,element:(0,fe.jsx)(dv,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.containerTypes,element:(0,fe.jsx)(JP,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.surveys.templates,element:(0,fe.jsx)(Ob,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.surveys.subscriptions,element:(0,fe.jsx)(gU,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.surveys.questions,element:(0,fe.jsx)(_U,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.surveys.categories,element:(0,fe.jsx)(a$,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.flows.root,element:(0,fe.jsx)(Q$,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.wasteStream,element:(0,fe.jsx)(Ik,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.hierarchies,element:(0,fe.jsx)(dA,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.hierarchiesNew,element:(0,fe.jsx)(NN,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.dashboards.root,element:(0,fe.jsx)(IE,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.dashboards.subscriptions,element:(0,fe.jsx)(xL,{accountId:s})}),(0,fe.jsx)(m.qh,{path:`${d.configuration.menu.dashboards.subscriptions}/:accountId`,element:(0,fe.jsx)(wL,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.flows.subscriptions,element:(0,fe.jsx)(mM,{})}),(0,fe.jsx)(m.qh,{path:`${d.configuration.menu.flows.subscriptions}/:accountId`,element:(0,fe.jsx)(CM,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.learn.content,element:(0,fe.jsx)(zD,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.learn.subscriptions,element:(0,fe.jsx)(eL,{})}),(0,fe.jsx)(m.qh,{path:`${d.configuration.menu.learn.subscriptions}/:accountId`,element:(0,fe.jsx)(cI,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.learn.assignLicense,element:(0,fe.jsx)(Rg,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.learn.createLicense,element:(0,fe.jsx)(Gg,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.learn.evaluations,element:(0,fe.jsx)(mL,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.learn.banners,element:(0,fe.jsx)(CV,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.governance.legislation,element:(0,fe.jsx)(mB,{accountId:s})}),(0,fe.jsx)(m.qh,{path:`${d.configuration.menu.governance.legislation}/:legislationId`,element:(0,fe.jsx)(kB,{accountId:s})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.governance.management,element:(0,fe.jsx)(LB,{})}),(0,fe.jsx)(m.qh,{path:`${d.configuration.menu.governance.management}/:accountId`,element:(0,fe.jsx)(UB,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.intelligence.knowledgebases,element:(0,fe.jsx)(QE,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.intelligence.subscriptions,element:(0,fe.jsx)(GB,{})}),(0,fe.jsx)(m.qh,{path:`${d.configuration.menu.intelligence.subscriptions}/:accountId`,element:(0,fe.jsx)(eU,{})}),(0,fe.jsx)(m.qh,{path:d.configuration.menu.ocr,element:(0,fe.jsx)(x_,{})}),(0,fe.jsx)(m.qh,{path:u.organisationalUnits,element:(0,fe.jsx)(Gz,{})}),(0,fe.jsx)(m.qh,{path:u.organisationalHierarchies,element:(0,fe.jsx)(yW,{})}),(0,fe.jsx)(m.qh,{path:u.locationAttachments,element:(0,fe.jsx)(lq,{})}),(0,fe.jsx)(m.qh,{path:u.accessPolicies,element:(0,fe.jsx)(Tz,{})}),(0,fe.jsx)(m.qh,{path:u.userGroups,element:(0,fe.jsx)(Nq,{})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:d.configuration.menu.accounts})})]})})})]})},s)}),wJ=S.J1`
  query GetKnowledgeBasesForAccount($accountId: ID!) {
    getKnowledgeBasesForAccount(accountId: $accountId) {
      id
      externalID
      title
      synopsis
      demoMode
    }
  }
`,OJ=S.J1`
  query GetLandbotId {
    getLandbotId
  }
`;var EJ=t(3892),_J=t(77654),FJ=t(41991);const PJ=(0,le.default)(ie.DZ)`
  display: flex;
  align-items: center;
  font-size: 16px;
  ${e=>e.active?"\n    color: white;\n  ":""}
`,BJ=(0,le.default)(ie.To)`
  padding-top: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  ${e=>e.active?"\n    color: white;\n  ":""}
`,UJ=le.css`
  &:before {
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    content: '';
    opacity: 1;
    position: absolute;
    transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    background-color: rgba(0, 0, 0, 0.12);
  }
`,$J=le.css`
  padding: 16px 24px;
  cursor: pointer;
  text-align: left;
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: initial;
  overflow: visible;
  font-style: initial;
  font-size: 16px;
  line-height: 1.4em;
  font-family: 'Proxima Nova', Helvetica, Arial, sans-serif;
  font-weight: 600;
  background-color: ${e=>e.active?e.theme.colors.tertiary.light.background:"white"};
  color: #4d505b;
`,MJ=(0,le.default)(EJ.A)`
  min-width: 100%;
  & > .MuiAccordionSummary-root {
    background-color: ${e=>e.active?e.theme.colors.tertiary.light.background:"white"};
  }
  & .MuiAccordionSummary-root,
  & .MuiAccordionSummary-root.Mui-expanded {
    min-height: 64px;
    padding: 16px 24px;
  }
  & .MuiAccordionDetails-root {
    padding-top: 0;
    display: flex;
    flex-direction: column !important;
  }
  & .MuiAccordionSummary-content,
  & .MuiAccordionSummary-content.Mui-expanded {
    margin: 0;
  }
`,VJ=(0,le.default)(ie.In)`
  position: absolute;
  top: 30px;
  right: 60px;
  cursor: pointer;
`,GJ=e=>{let{heading:n,summary:t,children:a,defaultExpanded:i,active:l,editable:r=!1,onEdit:o=()=>{}}=e;const[s,d]=(0,g.useState)(i);return(0,fe.jsxs)(MJ,{active:l,expanded:s,children:[(0,fe.jsxs)(_J.A,{expandIcon:(0,fe.jsx)(ie.In,{icon:"chevron-down",size:"md",onClick:()=>{d(!s)}}),id:"panel1a-header",children:[r&&(0,fe.jsx)(VJ,{icon:"pencil-alt",onClick:o}),(0,fe.jsxs)("div",{children:[(0,fe.jsx)(PJ,{active:l,children:n}),!s&&t&&(0,fe.jsx)(BJ,{active:l,source:t})]})]}),(0,fe.jsx)(FJ.A,{children:g.Children.map(a,e=>e)})]})},zJ=le.default.iframe`
  width: 100%;
  height: 100%;
`,WJ=e=>{let{accountId:n,kbId:t,accessToken:a,landbotId:i,fullName:l}=e;return(0,g.useEffect)(()=>{const e=t?"H-1220830-V6QWNXTLPPYJS8O3":"H-752857-L6DAXUHW9TJ2J7Q1";document.getElementById("myLandbot").src=`https://chats.landbot.io/v3/${e}/index.html?accountid=${n}&jwt=${a}&kbtoken=${t}&apistage=${De("REACT_APP_INTELLIGENCE_API_STAGE")}&fullname=${l}`},[n,t,a,i,l]),(0,fe.jsx)(zJ,{id:"myLandbot"})},qJ=le.default.div`
  display: flex;
  flex-direction: column;
  height: 110%;
`,JJ=le.default.div`
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin: 0 ${e=>e.theme.geometry.md.spacing} ${e=>e.theme.geometry.md.spacing}
    ${e=>e.theme.geometry.md.spacing};
`,YJ=(0,le.default)(ie.fI)`
  padding-right: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.dark.background};
`,HJ=(0,le.default)(ie.vj)`
  flex: 1 1 auto;
  form > div {
    background: none;
    border: 0;
    border-radius: 0;
  }
`,KJ=le.default.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: ${e=>e.theme.geometry.sm.spacing};
  width: 40%;
`,QJ=le.default.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: ${e=>e.theme.geometry.sm.spacing};
  width: 60%;
  height: 90vh;
`,ZJ=le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
  max-height: 20vh;
  overflow-y: scroll;
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,XJ=le.default.div`
  display: flex;
  flex-direction: column;
  align-items: center;
`,eY=(0,le.default)(ie.GQ)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  display: inline-flex;
  flex: 0 0 auto;
`,nY=le.default.div`
  display: flex;
  align-items: center;
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,tY=le.default.div`
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: ${e=>e.theme.colors.basic.white};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  width: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing};
`,aY=le.default.div`
  background-color: ${e=>e.theme.colors.basic.white};
  width: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing};
`,iY=le.default.div`
  display: flex;
  width: 100%;
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
`,lY=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,rY=(0,ce.Ay)(()=>{const[e,n]=(0,g.useState)(""),t=(0,m.g)(),a=Je(),{currentUser:i}=lr(),l=localStorage.getItem("ACCESS_TOKEN"),{data:r,loading:o}=(0,x.IT)(wJ,{variables:{accountId:a}}),{data:s}=(0,x.IT)(OJ),d=He(),c=["primary","secondary","tertiary","quaternary"],u=r?.getKnowledgeBasesForAccount||[],f=u.find(e=>e.externalID===t.id),y=(e=>d?e:e.filter(e=>!e.demoMode))(u),h=((e,n)=>{if(!n)return e;const t=new pd.vj("id");return t.addIndex("title"),t.addDocuments(e),t.search(n)})(y.map((e,n)=>({...e,colour:c[n%c.length]})),e);return(0,fe.jsxs)(qJ,{name:"Intelligence",children:[(0,fe.jsx)(xV,{name:"Intelligence_Header",title:"Intelligence",breadcrumbs:[{title:"Intelligence"}],icon:"brain",iconColor:"primary"}),o&&(0,fe.jsx)(lY,{children:(0,fe.jsx)(ie.Ip,{})}),!o&&r&&(0,fe.jsxs)(JJ,{children:[(0,fe.jsxs)(KJ,{children:[(0,fe.jsxs)(aY,{children:[(0,fe.jsx)(iY,{children:(0,fe.jsxs)(nY,{children:[(0,fe.jsx)(eY,{inline:!0,height:"50px",size:"xl",circleColor:"primary",iconColor:"primary",icon:"crosshairs"}),(0,fe.jsx)(ie.DZ,{name:"KB__Title",inline:!0,children:"Knowledge Bases"})]})}),(0,fe.jsx)(iY,{children:(0,fe.jsx)(YJ,{container:!0,item:!0,itemAlign:"center",children:(0,fe.jsx)(HJ,{name:"IntelligenceBots__Search",value:e,onChange:e=>n(e.target.value),hideButton:!0})})})]}),h.map(e=>{const n=e.externalID===f?.externalID;return(0,fe.jsx)(GJ,{defaultExpanded:!1,active:n,heading:(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(eY,{inline:!0,height:"50px",size:"lg",icon:"robot",circleColor:n?"white":e.colour,iconColor:n?"white":e.colour})," ",e.title]}),summary:e.synopsis,children:(0,fe.jsxs)(XJ,{children:[(0,fe.jsx)(ZJ,{children:(0,fe.jsx)(ie.To,{name:"LegislationItem__Synopsis",source:e.synopsis})}),(0,fe.jsxs)(p.Link,{to:`/intelligence/${e.externalID}`,children:[(0,fe.jsx)(ie.In,{icon:"external-link-alt"})," Start Consultation"]})]})},e.externalID)})]}),(0,fe.jsxs)(QJ,{children:[(0,fe.jsxs)(tY,{children:[(0,fe.jsx)(eY,{inline:!0,height:"50px",size:"lg",icon:"robot",circleColor:f?.colour||"primary",iconColor:f?.colour||"primary"}),(0,fe.jsxs)("div",{children:[(0,fe.jsx)(ie.DZ,{children:f?.title||"Choose a Knowledge Base to get started..."}),f&&(0,fe.jsx)(ie.EY,{children:`Rio's guide to ${f.title}`})]})]}),(0,fe.jsx)(WJ,{kbId:f?.externalID,accountId:a,accessToken:l,landbotId:s?.getLandbotId,fullName:`${i?.first_name} ${i?.last_name}`})]})]})]})}),oY=le.default.div`
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,sY=()=>(0,fe.jsx)(oY,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(rY,{})}),(0,fe.jsx)(m.qh,{path:"/:id",element:(0,fe.jsx)(rY,{})})]})}),dY=S.J1`
  query getNotifications {
    getNotifications {
      id
      title
      message
      isVisible
    }
  }
`,cY=(0,le.default)(Ae)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,uY=le.default.div`
  padding-right: ${e=>e.padding};
  padding-left: ${e=>e.padding};
`;class pY extends g.Component{constructor(e){super(e),this.dismissBanner=e=>{const n=this.state.dismissedBanners;n.push(e),this.setState({dismissedBanners:n},localStorage.setItem("DISMISSED_BANNERS",n))},this.state={dismissedBanners:[]},this.staticBanners=e.staticBanners||[];try{const e=localStorage.getItem("DISMISSED_BANNERS")||[];Array.isArray(e)?this.state.dismissedBanners=e:this.state.dismissedBanners=e.split(","),this.userNotifications=this.props.client.query({query:dY}).then(e=>this.setState({notifications:[...this.staticBanners,...e.data.getNotifications]})).catch(console.log)}catch(e){console.log(e)}}render(){return(0,fe.jsx)(uY,{id:`${this.props.id||""}__UserBannersSection--container`,name:`${this.props.id||""}__UserBannersSection--container`,padding:this.props.padding||0,children:this.state.notifications&&this.state.notifications.length>0&&this.state.notifications.map(e=>this.state.dismissedBanners.includes(e.id)?null:(0,fe.jsx)(cY,{id:`UserBannersSection__NotificationBanner--${e.id}`,name:`UserBannersSection__NotificationBanner--${e.id}`,icon:e.icon||"info-circle",color:e.color||"quinary",title:e.title,body:e.message,dismissable:!0,onDismiss:()=>this.dismissBanner(e.id)},e.id))})}}const mY=(0,Kc.W)(pY),fY=(0,le.default)(ie.fv)`
  opacity: ${e=>e.disabled?"0.5":"1"};
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,yY=(0,le.default)(ie.fI)`
  padding: 0 0 60% 0;
  flex: 0 0 auto;
  background: ${e=>{let{theme:n}=e;return n.colors.overlay.light.background}} url(${e=>{let{src:n}=e;return n}}) center center no-repeat;
  background-size: cover;
  position: relative;
  &:hover .overlay {
    opacity: 1;
    div {
      display: block;
    }
  }
`,gY=(0,le.default)(ie.GQ)`
  display: inline-flex;
  flex: 0 0 auto;
  background: ${e=>{let{theme:n}=e;return n.colors.basic.white}};
  margin-right: ${e=>e.theme.geometry.xs.spacing};
  margin-top: -${e=>e.theme.geometry.xl.spacing};
`,hY=(0,le.default)(ie.DZ)`
  margin-top: -${e=>e.theme.geometry.xs.spacing};
`,xY=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.sm.spacing};
  border-top: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: ${e=>{let{theme:n}=e;return n.colors.basic.white}};
  position: relative;
`,TY=le.default.div`
  position: absolute;
  right: ${e=>e.theme.geometry.sm.spacing};
  top: ${e=>e.theme.geometry.sm.spacing};
  flex: 0 0 auto;
  opacity: 0.7;
  display: inline-block;
  background: ${e=>e.theme.colors.text.dark.background};
  padding: ${e=>e.theme.geometry.xs.spacing} ${e=>e.theme.geometry.sm.spacing};
`,bY=le.default.div`
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s ease;
  background-color: ${e=>e.theme.colors[e.color].normal.background};
`,vY=le.default.div`
  position: absolute;
  width: 80%;
  top: 50%;
  left: 50%;
  color: white;
  font-size: 20px;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  display: none;
`,CY=e=>{let{title:n,icon:t,iconColor:a,comingSoon:i,image:l,fullAccess:r,description:o}=e;return(0,fe.jsxs)(fY,{name:`SubjectTile SubjectTile--${n}`,container:!0,item:!0,disabled:i||!r,children:[(0,fe.jsxs)(yY,{name:"SubjectTile__Thumbnail",container:!0,item:!0,distribution:"between",src:l,children:[o&&(0,fe.jsx)(bY,{className:"overlay",color:a,children:(0,fe.jsx)(vY,{children:o})}),i&&(0,fe.jsx)(TY,{children:(0,fe.jsx)(ie.EY,{align:"center",size:"xs",color:"white",children:"Upgrade here"})})]}),(0,fe.jsx)(xY,{container:!0,item:!0,vdistribution:"between",children:(0,fe.jsxs)(ie.fI,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(gY,{name:"SubjectTile__Icon",height:"70px",size:"lg",icon:t,iconColor:a,circleColor:a}),(0,fe.jsx)(hY,{name:"SubjectTile__Title",size:"lg",color:"dark",children:n})]})})]})},kY=t.p+"Electricity-49febb196ce7a615957d.jpg",SY=t.p+"Fuel-d4021baf7ad0eac58e79.jpg",NY=t.p+"Gas-30926961250fe0344fcf.jpg",AY=t.p+"Materials-f697c01499c0a01bfd23.jpg",RY=t.p+"Waste-e4f9374af0a0304b6ba5.jpg",DY=t.p+"Water-7d70703a81c532cd3774.jpg",LY=t.p+"Transport-29e190ae4b4f635c2360.jpg",IY=t.p+"Safety-ce5658366fd22e90f38f.jpg",jY=t.p+"Employees-59034ce2a3671b22c03b.jpg",wY=t.p+"Engagement-de52b7531e97f51dc5f8.jpg",OY=t.p+"Ethics-a3336a74419ed09a2f90.jpg",EY={electricity:kY,fuel:SY,gas:NY,materials:AY,waste:RY,water:DY,transport:LY,refrigerants:t.p+"Refrigerants-03f6f20be5be80a14e3a.jpg",heatSteam:t.p+"HeatSteam-875a0b0570c6ad6a9353.jpg",safety:IY,employees:jY,engagement:wY,ethics:OY,biodiversity:t.p+"Biodiversity-45409e5dac8277a204d7.jpg",buildingEnergyRatings:t.p+"BuildingEnergyRatings-de82a25dac95635bc58d.jpg",hotelStays:t.p+"HotelStays-a705d2474679be20f6b7.jpg"},_Y=le.default.div`
  flex: 1 1 auto;

  // Fallbacks for IE
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-center;

  // CSS grid for real browsers
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: ${e=>e.theme.geometry.md.spacing};

  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,FY=(0,ce.Ay)(e=>{let{items:n,fullAccess:t,intl:a}=e;return(0,fe.jsx)(_Y,{children:n.map(e=>{const n=t[e.title],i=e.comingSoon||!n?"/contact":`/data/${e.title}`;return(0,fe.jsx)(p.Link,{name:`DataSubjectsGrid__Link__${e.id}`,to:i,children:(0,fe.jsx)(CY,{fullAccess:n,title:a.formatMessage({id:`pages.data.subjects.${e.title}`}),image:EY[e.title],comingSoon:e.comingSoon||!n,icon:e.icon,iconColor:e.iconColor,description:e.description},e.id)},e.id)})})}),PY=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: ${e=>e.styleSelected?e.theme.colors.overlay.light.background:"none"};
`,BY=(0,le.default)(ie.fI)`
  opacity: ${e=>e.disabled?"0.5":"1"};
`,UY=(0,le.default)(ie.GQ)`
  display: inline-flex;
  flex: 0 0 auto;
  margin-right: ${e=>e.theme.geometry.sm.spacing};
`,$Y=le.default.div`
  flex: 0 0 auto;
  opacity: 0.7;
  display: inline-block;
  background: ${e=>e.theme.colors.text.dark.background};
  padding: ${e=>e.theme.geometry.xxs.spacing} ${e=>e.theme.geometry.xs.spacing};
  margin-left: ${e=>e.theme.geometry.xs.spacing};
`,MY=e=>{let{botId:n,title:t,icon:a,iconColor:i,comingSoon:l,fullAccess:r}=e;return(0,fe.jsx)(PY,{name:`BotRow--${n}`,container:!0,itemAlign:"center",children:(0,fe.jsxs)(BY,{container:!0,item:!0,itemAlign:"center",distribution:"between",disabled:l||!r,children:[(0,fe.jsxs)(ie.fI,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(UY,{height:"30px",size:"md",icon:a,iconColor:i,circleColor:i}),(0,fe.jsx)(ie.EY,{weight:"bold",color:"dark",inline:!0,name:`BotRow__Title--${n}`,size:"md",children:t})]}),l&&(0,fe.jsx)($Y,{children:(0,fe.jsx)(ie.EY,{inline:!0,size:"xs",color:"white",children:"Upgrade here"})})]})})},VY=le.default.div`
  flex: 1 1 auto;
  overflow: auto;
  background: ${e=>e.theme.colors.basic.white};
  margin-top: ${e=>e.theme.geometry.md.spacing};
`,GY=(0,ce.Ay)(e=>{let{items:n,fullAccess:t,intl:a}=e;return(0,fe.jsx)(VY,{children:n.map(e=>{const n=t[e.title],i=e.comingSoon||!n?"/contact":`/data/${e.title}`;return(0,fe.jsx)(p.Link,{name:`DataSubjectsList__Link__${e.id}`,to:i,children:(0,fe.jsx)(MY,{fullAccess:n,botId:e.id,title:a.formatMessage({id:`pages.data.subjects.${e.title.toLowerCase()}`}),icon:e.icon,iconColor:e.iconColor,comingSoon:e.comingSoon||!n},e.id)},e.id)})})}),zY=JSON.parse('[{"id":"2be76209-c61e-4904-99f6-3e2d9da80794","demo":false,"title":"waste","icon":"trash","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your business waste data here."},{"id":"c5a3d2b7-b798-49a7-9d2b-70e71439c808","demo":false,"title":"electricity","icon":"bolt","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your business electricity data here."},{"id":"893fcaab-a2df-49d1-aea8-d522bff5b785","demo":false,"title":"gas","icon":"burn","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your metered natural gas data here. Please view the Fuels section for other gasses."},{"id":"69b15ee6-aec3-46fb-8956-60867138cc5a","demo":false,"title":"water","icon":"tint","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your business water data here."},{"id":"c7236a8a-25a5-4d7a-878d-57f3cb25c949","demo":false,"title":"transport","icon":"truck","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your business travel data here, including cars, trains, flights, and more."},{"id":"066f7800-1cdd-4e5d-81f4-cbdf727bc40e","demo":false,"title":"fuel","icon":"gas-pump","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your fuels data, including gaseous fuels (except Natural Gas), liquid fuels, solid fuels, and bioenergy."},{"id":"2da77908-7ac4-4ca4-a84c-6f51c0dbce45","demo":false,"title":"buildingEnergyRatings","icon":"fa-solid fa-building","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your building energy ratings data."},{"id":"ea53e04a-a75f-4590-bdee-e4b9214c0b35","demo":false,"title":"refrigerants","icon":"temperature-low","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your data for fugitive emissions including refrigerants and other gases that have global warming potential."},{"id":"9b3890bf-3cc8-4847-b8f6-a72d385be5cf","demo":false,"title":"heatSteam","icon":"fire","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your purchased heat/steam and district heat and steam data."},{"id":"d90b5eb3-eb67-4de0-9274-e62620bcf1e5","demo":false,"title":"materials","icon":"box","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your Materials data here."},{"id":"570bde73-ca02-4266-9375-c0a89de7507e","demo":false,"title":"hotelStays","icon":"bed","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your Hotel stays and Home working data here."},{"id":"f8a2b3c4-d5e6-4f7a-8b9c-0d1e2f3a4b5c","demo":false,"title":"liquid-fuels","icon":"oil-can","iconColor":"quaternary","comingSoon":false,"description":"Upload and analyse your liquid fuel consumption data here."},{"id":"c5ba1e0c-52cd-4159-88f0-bb030d921d7b","demo":true,"title":"safety","icon":"book-medical","iconColor":"quaternary","comingSoon":true},{"id":"cb37f489-778a-4328-822b-5ec5f6304a70","demo":true,"title":"employees","icon":"user-friends","iconColor":"quaternary","comingSoon":true},{"id":"0e81642b-9187-4725-bd3b-d187c912c4ed","demo":true,"title":"engagement","icon":"thumbs-up","iconColor":"quaternary","comingSoon":true},{"id":"51900c6c-ee66-4bfd-8c73-348032c596c8","demo":true,"title":"ethics","icon":"business-time","iconColor":"quaternary","comingSoon":true},{"id":"bd00d203-28bd-43a6-88e5-1e322452b63e","demo":true,"title":"biodiversity","icon":"tree","iconColor":"quaternary","comingSoon":true}]'),WY=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,qY=le.default.div`
  overflow: auto;
  padding: ${e=>e.theme.geometry.xl.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,JY=(0,le.default)(ie.fI)`
  padding-right: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.dark.background};
`,YY=(0,le.default)(ie.vj)`
  flex: 1 1 auto;
  form > div {
    background: none;
    border: 0;
    border-radius: 0;
  }
`,HY=(0,le.default)(ie.Yq)`
  margin-left: ${e=>e.theme.geometry.md.spacing};
`,KY=(0,le.default)(Ae)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,QY=(0,ce.Ay)(e=>{let{fullAccess:n,intl:t}=e;const[a,i]=(0,g.useState)(""),[l,r]=(0,g.useState)(!0),o=((e,n)=>{if(!n)return e;const t=new pd.vj("id");return t.addIndex("title"),t.addDocuments(e),t.search(n)})(He()?zY:zY.filter(e=>!e.demo),a),s=o.length>0;return(0,fe.jsxs)(WY,{name:"DataSubjects",children:[(0,fe.jsx)(xV,{name:"DataSubjects",title:t.formatMessage({id:"pages.data.heading"}),breadcrumbs:[{title:t.formatMessage({id:"pages.data.breadcrumbs.one"})},{title:t.formatMessage({id:"pages.data.breadcrumbs.two"})}],icon:"chart-line",iconColor:"quaternary"}),(0,fe.jsxs)(qY,{children:[(0,fe.jsxs)(JY,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(YY,{name:"DataSubjects__Search",value:a,onChange:e=>i(e.target.value),hideButton:!0}),(0,fe.jsx)(HY,{name:"DataSubjects__ShowGrid",size:"md",color:l?"primary":"normal",weight:l?"bold":"normal",underline:!1,onClick:()=>r(!l),inline:!0,children:(0,fe.jsx)(ie.In,{icon:"th"})}),(0,fe.jsx)(HY,{name:"DataSubjects__ShowList",size:"md",color:l?"normal":"primary",weight:l?"normal":"bold",underline:!1,onClick:()=>r(!l),inline:!0,children:(0,fe.jsx)(ie.In,{icon:"th-list"})})]}),!Object.values(n).some(e=>!0===e)&&(0,fe.jsx)(KY,{name:"DataContainer_Access_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Data",body:"Currently Data is not included in your subscription, if you’d like access to Data please contact Rio AI Ltd or get in touch with your Business Admin."}),(0,fe.jsx)(mY,{id:"data"}),!!s&&l&&(0,fe.jsx)(FY,{items:o,fullAccess:n}),!!s&&!l&&(0,fe.jsx)(GY,{items:o,fullAccess:n}),!s&&(0,fe.jsx)(Fu,{name:"DataSubjects__NoResults",title:"There are no results for this search."})]})]})}),ZY=[10,25,50,100,200].map(e=>({label:`${e} rows`,value:e.toString()}));function XY(e){let{value:n,onChange:t}=e;return(0,fe.jsx)(ie.l6,{placeholder:"Show",value:n.toString(),options:ZY,onChange:e=>{const{value:n}=e.target.select,a=Number(n);t(a)}})}const eH=(0,le.default)(ie.fv)`
  flex: 1;
`,nH=(0,le.default)(ie.fv)`
  flex: 1;
  padding: ${e=>e.theme.geometry.md.spacing};
`,tH=le.default.div`
  flex: 1;
  overflow: auto;
  & .ag-paging-panel {
    justify-content: flex-start;
  }
  /* reduce ag-grid default header line-height and padding */
  & .ag-header-cell {
    line-height: normal;
    padding: 8px;
  }

  /* make header separator height proportional to header height */
  & .ag-header-cell:after,
  & .ag-header-group-cell:after {
    height: 50%;
  }

  /* set icons height to their real absolute value to ensure proper vertical alignment */
  & .ag-header-cell-menu-button .ag-icon-menu,
  & .ag-header-cell-label .ag-header-icon {
    height: 16px;
  }

  /* make header text wrap, without breaking words and without ellipsis */
  & .ag-header-cell-label .ag-header-cell-text {
    height: auto;
    overflow: visible;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: normal;
  }
`,aH={pagination:!0,paginationPageSize:25,paginationPageSizeSelector:!1,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}},getRowId:e=>e.data.id};function iH(e){let{config:n,title:t,breadcrumbs:a,uploadLink:i,fetchRows:l,defaultExportFileName:r}=e;const o=Je(),s={...aH,...n},d=lr(),[c,u]=(0,g.useState)(null),[p,m]=(0,g.useState)(s.paginationPageSize),[f,y]=(0,g.useState)(),h=(0,g.useMemo)(()=>({async getRows(e){try{const{startRow:n,sortModel:t,filterModel:a}=e.request;for(const e in a)if(a[e].filterType===gn.pe.Set){const n=a[e].values;n.includes(null)&&n.push(" ")}const{rows:i,totalRows:r}=await l({accountId:o,offset:n,limit:p,sort:wn(t),filters:jn(a)});e.success({rowData:i,rowCount:r})}catch(n){e.fail(),u(n)}}}),[o,l,u,p]),x=(0,g.useCallback)(e=>{y(e.api)},[]),T=(0,g.useCallback)(e=>{m(e),f&&f.setGridOption("paginationPageSize",e)},[f,m]),b=(0,g.useCallback)(async()=>{await l({accountId:o,offset:0,limit:p,sort:[]}),u(null)},[l,u,o,p]),v=(0,g.useCallback)((e,n)=>{let t=[...e.defaultItems||[]];return n.role===gn.gG.Contributor&&(t=t.filter(e=>!["export","separator"].includes(e))),t},[]);return(0,fe.jsxs)(eH,{container:!0,item:!0,children:[(0,fe.jsx)(xV,{name:t,title:t,breadcrumbs:a,icon:"chart-line",iconColor:"quaternary",children:(0,fe.jsxs)(bv,{container:!0,item:!0,distribution:"center",vdistribution:"center",itemAlign:"center",children:[(0,fe.jsx)(ie.fv,{span:4,children:(0,fe.jsx)(XY,{value:p,onChange:T})}),(0,fe.jsx)(ie.fv,{span:4,children:(0,fe.jsx)(qg,{gridApi:f})}),!!d.data.find(e=>e.startsWith("exportTransactions"))&&!!r&&(0,fe.jsx)(ie.fv,{span:4,children:(0,fe.jsx)(Mx,{fetchRows:l,gridApi:f,defaultExportFileName:r,label:"Export Data"})}),!!i&&(0,fe.jsx)(ie.fv,{span:4,children:(0,fe.jsx)(ie.$n,{component:"routerLink",to:i,children:"Upload Data"})})]})}),c?(0,fe.jsx)($c,{error:c,name:c.message,retry:b}):(0,fe.jsx)(nH,{container:!0,item:!0,children:(0,fe.jsx)(tH,{className:"ag-theme-alpine",id:"transactions",children:(0,fe.jsx)(Dg.W6,{...s,paginationPageSize:p,cacheBlockSize:p,serverSideDatasource:h,onGridReady:x,getContextMenuItems:e=>v(e,d)})})})]})}const lH=(0,f.styled)(f.Grid)`
  & > button,
  & > a {
    width: 100%;
  }
`,rH=(0,f.styled)(f.Grid)`
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
`,oH=(0,f.styled)(f.AgGrid)`
  height: calc(100vh - 216px); // header + page title height;
  padding-bottom: 2px; // border bottom and shadow to show properly
`;(0,f.setAgGridLicenseKey)(De("REACT_APP_AG_GRID_LICENSE_KEY"));const sH=(0,f.styled)("span")`
  height: fit-content;
`,dH={pagination:!0,paginationPageSize:25,paginationPageSizeSelector:[10,25,50,100],cacheBlockSize:100,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}},cH=e=>{let{title:n,breadcrumbs:t,config:{columnDefs:a,...i},uploadLink:l,fetchRows:r,defaultExportFileName:o,transactionType:s,extraButtons:d}=e;const c=Je(),u=lr(),p=(0,g.useRef)(null),m=(0,g.useMemo)(()=>!!u.data.find(e=>e.startsWith("exportTransactions")),[u]),y="function"==typeof r?r:e=>{let{accountId:n,...t}=e;return r.fetchData({variables:{accountId:n,...t}})},h={crumbs:t,content:n,actionButton:(0,fe.jsxs)(rH,{wrap:"wrap",container:!0,size:6,children:[d,"function"!=typeof r&&(0,fe.jsx)(f.IconButton,{variant:"contained",onClick:()=>r.setVariant("regular"===r.variant?"reporting":"regular"),color:"reporting"===r.variant?"primary":"secondary",children:(0,fe.jsx)(f.Icons.BoltSharp,{})}),(0,fe.jsx)(jS,{filtersApplied:p.current?.filtersApplied,resetGridState:p.current?.resetGridState}),m&&!!o&&p.current?.gridApi&&(0,fe.jsx)(zx,{fetchRows:y,gridApi:p.current?.gridApi,defaultExportFileName:o,isBackendExport:s&&![gn.D_.Investment,"BUILDING_ENERGY_RATINGS",gn.D_.Emissionsdatabase].includes(s),transactionType:s}),!!l&&(0,fe.jsx)(Vx.A,{title:"Upload",children:(0,fe.jsx)(sH,{children:(0,fe.jsx)(f.IconButton,{variant:"contained",to:l,children:(0,fe.jsx)(f.CustomIcons.Upload,{width:"20px",height:"20px",color:"onPrimary"})})})})]})},x=(0,g.useCallback)((e,n)=>{let t=[...e.defaultItems||[]];return n.role===gn.gG.Contributor&&(t=t.filter(e=>!["export","separator"].includes(e))),t},[]),T=(0,g.useMemo)(()=>({...dH,...i,columnDefs:a?.map(e=>({...e,headerName:e.headerName?Za(e.headerName):e.headerName})),serverSideDatasource:{async getRows(e){try{const{startRow:n=0,endRow:t=25,sortModel:a,filterModel:i}=e.request,l=(0,hn.cloneDeep)(i);for(const e in l)if(l[e].filterType===gn.pe.Set){const n=l[e].values;n.includes(null)&&n.push(" ")}const{rows:r,totalRows:o}=await y({accountId:c,offset:n,limit:t-n,sort:wn(a),filters:jn(l)});e.success({rowData:r,rowCount:o})}catch(n){e.fail(),E.Cp(n)}}},getContextMenuItems:e=>x(e,u)}),[r]);return(0,fe.jsx)(f.Page,{title:h,children:(0,fe.jsx)(oH,{ref:p,gridKey:`${c}${o}GridV2`,gridOptions:T})})};var uH=t(33140),pH=t.n(uH),mH=t(51998),fH=t.n(mH);const yH={headerName:"Occupation End Date",field:"locationEndDate",filter:"agDateColumnFilter",valueFormatter:_n,hide:!0,cellStyle:{textAlign:"center"}},gH=(e,n,t)=>{let a=`${e}?reportingYear=${n}`;return t&&(a+=`&type=${t}`),a},hH=e=>{let{value:n,data:t,to:a,type:i}=e;return n?t.factorsArePrivate?(0,fe.jsx)(kS,{component:"a",href:"https://www.iea.org/data-and-statistics/data-product/emissions-factors-2021",target:"_blank",rel:"noopener noreferrer",children:n}):(0,fe.jsx)(SS,{to:gH(a,n,i),children:n}):null},xH=e=>{let{value:n,data:t}=e;return n&&t.tariffId?(0,fe.jsx)(SS,{to:`/configuration/carbonconversionfactors/market?selectedRows=${t.tariffId}`,children:n}):""},TH=e=>{let{value:n}=e;return n?(0,fe.jsx)(SS,{to:`/documents/all?search=${n}`,children:n}):""},bH=e=>{let{data:n}=e;const t=Ml(),{showNotification:a}=tn(),i=(0,g.useCallback)(async()=>{try{const e=(e=>{switch(e){case"WasteTransactionPageItem":return gn.D_.Waste;case"ElectricityTransactionPageItem":return gn.D_.Electricity;case"GasTransactionPageItem":return gn.D_.Gas;case"HeatSteamTransactionPageItem":return gn.D_.Heatsteam;case"WaterTransaction":return gn.D_.Water;case"FuelTransactionPageItem":return gn.D_.Fuel;case"TransportTransaction":return gn.D_.Transport;case"MaterialsTransactionPageItem":return gn.D_.Materials;case"S3C1ActivityBasedMaterialTransactionPageItem":return gn.D_.S3C1Activitybasedmaterial;case"S3C1SpendBasedMaterialTransactionPageItem":return gn.D_.S3C1Spendbasedmaterial;case"HotelStaysTransactionPageItem":return gn.D_.Hotelstays;case"OilTransactionPageItem":return gn.D_.Oil;case"SalesDataTransactionPageItem":return gn.D_.Oilgassales;case"LiquidFuelTransactionPageItem":return gn.D_.Liquidfuel;case"RefrigerantTransactionPageItem":return gn.D_.Refrigerant;case"InvestmentTransaction":return gn.D_.Investment;default:throw new Error(`Unknown __typename: ${e}`)}})(n.__typename);await t(n.importBatchFileName,e,n.importBatchId)}catch(e){a("Export failed. Please contact support.")}},[t,n,a]);return n?.importBatchId?(0,fe.jsx)(kS,{onClick:i,children:n.importBatchFileName}):""},vH=e=>{let{value:n}=e;return n?(0,fe.jsx)(SS,{to:`/v2/documents/all?search=${n}`,children:n}):""};function CH(){const[e]=(0,Ul._)(fH()),n=zo(),t=n?.id,a=n?.accessControls.customFields,{showNotification:i}=tn(),l=(0,g.useMemo)(()=>async n=>{try{const{data:{getEnergyTransactionsPageFilter:a}}=await e({variables:{accountId:t,field:n.colDef.colId||n.colDef.field,energyType:gn.D_.Electricity}});return n.success(a)}catch(e){i(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning")}},[i,t,e]);return(0,g.useMemo)(()=>({rowSelection:"multiple",getRowId:Gn("id"),components:{uploadReference:bH,documentReference:TH,tariffReference:xH,factorReference:hH},columnDefs:[{headerName:"Meter Name",field:"meterName",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},{headerName:"Location",field:"locationName",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn,refreshValuesOnOpen:!1}},{headerName:"Location Code",field:"energySource.locationPoint.location.code",colId:"locationCode",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},...Oi(gn.D_.Electricity,n?.accessControls),{headerName:"Shared Emission Percentage",field:"locationSharedEmissionPercentage",filter:"agNumberColumnFilter"},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter"},yH,{headerName:"Tags",field:"tags",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},{headerName:"Departments",field:"departments",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},{headerName:"Supplier",field:"supplier",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},{headerName:"Tariff",field:"tariff",cellRenderer:"tariffReference",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},{headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},initialSort:"desc"},{headerName:"Start Time",field:"startTime",cellStyle:{textAlign:"center"},filter:"agTextColumnFilter"},{headerName:"End Date",field:"endDate",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"}},{headerName:"End Time",field:"endTime",cellStyle:{textAlign:"center"},filter:"agTextColumnFilter"},{headerName:"Quantity (kWh)",field:"quantity",filter:"agNumberColumnFilter"},{headerName:"Reading",field:"reading",filter:"agNumberColumnFilter"},{headerName:"Act/Est",field:"accuracy",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},Vi,{headerName:"Charge/kWh",field:"chargePerKilowatt",filter:"agNumberColumnFilter"},{headerName:"Total Cost",field:"totalCost",filter:"agNumberColumnFilter"},{headerName:"Total Cost (VAT)",field:"totalCostVat",filter:"agNumberColumnFilter"},{headerName:"Currency Code",field:"currency",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},{headerName:"Total Scope 2 Location-Based emissions (kgCO2e)",field:"carbonScope2",filter:"agNumberColumnFilter",headerTooltip:"This shows how much CO2e was emitted utilising the standard grid location-based factor"},{headerName:"Total Scope 3 Location-Based emissions (kgCO2e)",field:"carbonScope3",filter:"agNumberColumnFilter",headerTooltip:"This column calculates the total scope 3 kgCO2e from WTT & T&D if you have uploaded direct (scope 2) electricity or the total CO2e from WTT, T&D + the transaction's emissions if it is an indirect (Scope 3) upload"},{headerName:"Scope 2 CO2 in kgCO2e (Location-Based)",field:"kgCO2Scope2",filter:"agNumberColumnFilter",headerTooltip:"This shows how much CO2 was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",initialHide:!0},{headerName:"Scope 3 CO2 in kgCO2e (Location-Based) from indirect and T&D emission sources",field:"kgCO2Scope3",filter:"agNumberColumnFilter",headerTooltip:"This scope 3 column calculates the total CO2 in kgCO2e from T&D if you have uploaded direct (scope 2) electricity. If you uploaded indirect (scope 3) electricity, this is the total CO2e from T&D + the transaction's scope 3 emissions",initialHide:!0},{headerName:"Scope 2 CH4 in kgCO2e (Location-Based)",field:"kgCH4Scope2",filter:"agNumberColumnFilter",headerTooltip:"This shows how much CH4 was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",initialHide:!0},{headerName:"Scope 3 CH4 in kgCO2e (Location-Based) from indirect and T&D emission sources",field:"kgCH4Scope3",filter:"agNumberColumnFilter",headerTooltip:"This scope 3 column calculates the total CH4 in kgCO2e from T&D if you have uploaded direct (scope 2) electricity. If you uploaded indirect (scope 3) electricity, this is the total CO2e from T&D + the transaction's scope 3 emissions",initialHide:!0},{headerName:"Scope 2 N2O in KgCO2e (Location-Based)",field:"kgN2OScope2",filter:"agNumberColumnFilter",headerTooltip:"This shows how much N2O was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",initialHide:!0},{headerName:"Scope 3 N2O in kgCO2e (Location-Based) from indirect and T&D emission sources",field:"kgN2OScope3",filter:"agNumberColumnFilter",headerTooltip:"This scope 3 column calculates the total N2O in kgCO2e from T&D if you have uploaded direct (scope 2) electricity. If you uploaded indirect (scope 3) electricity, this is the total CO2e from T&D + the transaction's scope 3 emissions",initialHide:!0},{headerName:"Total Scope 2 Market-Based Emissions (kgCO2e)",field:"marketBasedCarbonScope2",filter:"agNumberColumnFilter",headerTooltip:"This shows how much CO2e was emitted where the tariff indicates a market-based factor is applied"},{headerName:"Scope 3 Market-Based emissions (kgCO2e)",field:"marketBasedCarbonScope3",filter:"agNumberColumnFilter",headerTooltip:"This shows how much scope 3 CO2e was emitted where the tariff indicates a market-based factor is applied"},{headerName:"Scope 3 T&D emissions (kgCO2e)",field:"tdScope3",filter:"agNumberColumnFilter",headerTooltip:"This shows the Scope 3 Transmission & Distribution (T&D) emissions associated with grid losses (the energy loss that occurs in getting the electricity from the power plant to the organisations that purchase it)."},{headerName:"Scope 3 WTT of Generation emissions (kgCO2e)",field:"wttGenScope3",filter:"agNumberColumnFilter",headerTooltip:"This shows Well-to-tank (WTT) emissions associated with the generation of electricity for the consumer. WTT emissions are from the  extraction, refining, and transportation of primary fuels before their use in the generation of electricity."},{headerName:"Scope 3  WTT of T&D emissions (kgCO2e)",field:"wttTdScope3",filter:"agNumberColumnFilter",headerTooltip:"This shows Well-to-tank (WTT) emissions associated with the grid loses of energy when the electricity is distributed to the consumer.  WTT emissions are from the  extraction, refining, and transportation of primary fuels before their use in the generation of electricity."},{headerName:"Activity",headerTooltip:"This shows if the activity falls under your organisation's direct (company owned emission sources) or indirect (non company owned, employee, contractor or third party emission sources) activities",field:"activity",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},{headerName:"Comment",field:"comment",filter:"agTextColumnFilter"},{headerName:"Invoice Number",field:"invoiceNumber",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn},cellRenderer:"documentReference"},{headerName:"Country",field:"energySource.locationPoint.location.address.country.name",colId:"country",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},{headerName:"Region",field:"energySource.locationPoint.location.region.name",colId:"region",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},{headerName:"Evidence Reference",field:"evidenceReference",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn},cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn},cellRenderer:"documentReference"},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:zn,keyCreator:Wn}},{headerName:"Factors used",headerTooltip:"The factor set applied to this transaction, click the link to see the factors for this year in more detail",field:"reportingYearOfFactors",cellRenderer:"factorReference",cellRendererParams:{to:"/configuration/carbonconversionfactors/location/electricity"},filter:!1},...Xi(wi(gn.D_.Electricity,a))],reactiveCustomComponents:!0}),[a,l])}const kH=[{title:"Data",to:".."},{title:"Electricity Transactions"}];function SH(){const[e]=(0,Ul._)(pH(),{fetchPolicy:"network-only"}),n=CH(),t=(0,g.useCallback)(async n=>{const{data:{getElectricityTransactionsPage:{totalRows:t,rows:a}}}=await e({variables:n});return{rows:a,totalRows:t}},[e]);return(0,fe.jsx)(iH,{title:"Electricity Transactions",defaultExportFileName:"electricity-export",breadcrumbs:kH,uploadLink:"../electricity/uploads",config:n,fetchRows:t})}const NH=S.J1`
  query GetRefrigerantTransactionsPage(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getRefrigerantTransactionsPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        locationName
        locationSharedEmissionPercentage
        locationCustomAttributes
        location {
          ...LocationFields
        }
        quantityUnit {
          id
          name
        }
        locationCode
        locationEndDate
        gasType
        gasGroup
        date
        quantity
        accuracy
        carbonScope1
        tags
        dataProvider
        comment
        evidenceReference
        otherReference
        currency
        totalCost
        purchaseType
        organisationalUnits
        estimatesScenario
      }
    }
  }
  ${Rs}
`,AH=S.J1`
  query GetRefrigerantTransactionsPageFilter($accountId: ID!, $field: String!) {
    getRefrigerantTransactionsPageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`;function RH(){const e=(0,C.m)(),n=zo(),t=n?.id,a=n?.accessControls.customFields,{showNotification:i}=tn(),l=async n=>{try{const{data:{getRefrigerantTransactionsPageFilter:a}}=await e.query({query:AH,variables:{accountId:t,field:n.colDef.colId||n.colDef.field}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){i(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Location",field:"locationName",filterParams:{values:l,valueFormatter:On}},{colId:"locationCode",headerName:"Location Code",field:"locationCode",filterParams:{values:l,valueFormatter:On}},...Oi(gn.D_.Refrigerant,n?.accessControls),{headerName:"Shared Emission Percentage",field:"locationSharedEmissionPercentage",filter:"agNumberColumnFilter"},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter"},yH,{headerName:"Date",field:"date",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter",initialSort:"desc"},{headerName:"Gas Type",field:"gasType",filterParams:{values:l,valueFormatter:On}},{headerName:"Gas Group",field:"gasGroup",filterParams:{values:l,valueFormatter:On}},{headerName:"Quantity",field:"quantity",filter:"agNumberColumnFilter"},{colId:"unitName",headerName:"Quantity Unit",field:"quantityUnit.name",filterParams:{values:l,valueFormatter:On}},{headerName:"Act/Est",field:"accuracy",filterParams:{values:l,valueFormatter:On}},Vi,{headerName:"Tags",field:"tags",filterParams:{values:l,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:l,valueFormatter:On}},{headerName:"Data Provider",field:"dataProvider",filterParams:{values:l,valueFormatter:On}},{headerName:"Total Scope 1 emissions (kgCO2e)",field:"carbonScope1",filter:"agNumberColumnFilter",headerTooltip:"These column calculates in CO2e total emissions related to the direct leakage of gases from air-conditioning, refrigeration units or the release to the atmosphere of other gases that have global warming potential (GWP)."},{headerName:"Comment",field:"comment",filter:"agTextColumnFilter"},{headerName:"Country",field:"location.address.country.name",colId:"country",filterParams:{values:l,valueFormatter:On}},{headerName:"Region",field:"location.region.name",colId:"region",filterParams:{values:l,valueFormatter:On}},{headerName:"Evidence Reference",field:"evidenceReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filterParams:{values:l,valueFormatter:On}},{headerName:"Total Cost",field:"totalCost",filter:"agNumberColumnFilter"},{headerName:"Currency Code",field:"currency",filterParams:{values:l,valueFormatter:On}},...Xi(wi(gn.D_.Refrigerant,a))],reactiveCustomComponents:!0}}function DH(){const e=(0,C.m)(),n=RH();return(0,fe.jsx)(iH,{title:"Refrigerants and Other Gases Transactions",defaultExportFileName:"refrigerants-export",breadcrumbs:[{title:"Data",to:".."},{title:"Refrigerants and Other Gases Transactions"}],uploadLink:"../refrigerants/uploads",config:{...n,components:{tariffReference:xH,uploadReference:bH,documentReference:TH,factorReference:hH}},fetchRows:async n=>{const{data:{getRefrigerantTransactionsPage:{totalRows:t,rows:a}}}=await e.query({query:NH,variables:n,fetchPolicy:"network-only"});return{rows:a,totalRows:t}}})}var LH=t(78122),IH=t.n(LH),jH=t(60180),wH=t.n(jH);function OH(){const e=(0,C.m)(),n=zo(),t=n?.id,a=n?.accessControls.customFields,{showNotification:i}=tn(),l=async n=>{try{const{data:{getEnergyTransactionsPageFilter:a}}=await e.query({query:wH(),variables:{accountId:t,energyType:gn.D_.Heatsteam,field:n.colDef.colId||n.colDef.field}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){i(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Meter Name",field:"meterName",filterParams:{values:l,valueFormatter:On}},{headerName:"Location",field:"locationName",filterParams:{values:l,valueFormatter:On}},{colId:"locationCode",headerName:"Location Code",field:"energySource.locationPoint.location.code",filterParams:{values:l,valueFormatter:On}},...Oi(gn.D_.Heatsteam,n?.accessControls),{headerName:"Shared Emission Percentage",field:"locationSharedEmissionPercentage",filter:"agNumberColumnFilter"},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter"},yH,{headerName:"Tags",field:"tags",filterParams:{values:l,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:l,valueFormatter:On}},{headerName:"Supplier",field:"supplier",filterParams:{values:l,valueFormatter:On,filter:"agSetColumnFilter"}},{headerName:"Tariff",field:"tariff",cellRenderer:"tariffReference",filterParams:{values:l,valueFormatter:On,filter:"agSetColumnFilter"}},{headerName:"Start Date",field:"startDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter",initialSort:"desc"},{headerName:"Start Time",field:"startTime",cellStyle:{textAlign:"center"},filter:"agTextColumnFilter"},{headerName:"End Date",field:"endDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter"},{headerName:"End Time",field:"endTime",cellStyle:{textAlign:"center"},filter:"agTextColumnFilter"},{headerName:"Quantity (kWh)",field:"quantity",filter:"agNumberColumnFilter"},{headerName:"Act/Est",field:"accuracy",filterParams:{values:l,valueFormatter:On}},Vi,{headerName:"Total Cost",field:"totalCost",filter:"agNumberColumnFilter"},{headerName:"Total Cost (VAT)",field:"totalCostVat",filter:"agNumberColumnFilter"},{headerName:"Currency Code",field:"currency",filterParams:{values:l,valueFormatter:On}},{headerName:"Carbon Emission Scope 2 (kgCO2e)",field:"carbonScope2",filter:"agNumberColumnFilter",headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Carbon Emission Scope 3 (kgCO2e)",field:"carbonScope3",filter:"agNumberColumnFilter",headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Scope 2 kgCO2e (Market Based)",field:"marketBasedCarbonScope2",filter:"agNumberColumnFilter",headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Scope 3 kgCO2e (Market Based)",field:"marketBasedCarbonScope3",filter:"agNumberColumnFilter",headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"kg CO2e of CO2",headerTooltip:"This shows how much CO2 was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",field:"carbonEmissionCO2",filter:"agNumberColumnFilter"},{headerName:"kg CO2e of N2O",headerTooltip:"This shows how much N2O was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",field:"carbonEmissionN2O",filter:"agNumberColumnFilter"},{headerName:"kg CO2e of CH4",headerTooltip:"This shows how much CH4 was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",field:"carbonEmissionCH4",filter:"agNumberColumnFilter"},{headerName:"Activity",headerTooltip:"This shows if the activity falls under your organisation's direct (company owned emission sources) or indirect (non company owned, employee, contractor or third party emission sources) activities",field:"activity",filterParams:{values:l,valueFormatter:On}},{headerName:"Comment",field:"comment",filter:"agTextColumnFilter"},{headerName:"Invoice Number",field:"invoiceNumber",filterParams:{values:l,valueFormatter:On}},{headerName:"Country",field:"energySource.locationPoint.location.address.country.name",colId:"country",filterParams:{values:l,valueFormatter:On}},{headerName:"Region",field:"energySource.locationPoint.location.region.name",colId:"region",filterParams:{values:l,valueFormatter:On}},{headerName:"Evidence Reference",field:"evidenceReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filterParams:{values:l,valueFormatter:On}},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:l,valueFormatter:On}},{headerName:"Factors used",headerTooltip:"The factor set applied to this transaction, click the link to see the factors for this year in more detail",field:"reportingYearOfFactors",cellRenderer:"factorReference",cellRendererParams:{to:"/configuration/carbonconversionfactors/location/heat"},filter:!1},...Xi(wi(gn.D_.Heatsteam,a))],reactiveCustomComponents:!0}}const EH=[{title:"Data",to:".."},{title:"Heat and Steam"}];function _H(){const e=(0,C.m)(),n=OH();return(0,fe.jsx)(iH,{title:"Heat and Steam",defaultExportFileName:"heatsteam-export",breadcrumbs:EH,uploadLink:"../heatSteam/uploads",config:{...n,components:{tariffReference:xH,uploadReference:bH,documentReference:TH,factorReference:hH}},fetchRows:async n=>{const{data:{getHeatSteamTransactionsPage:{totalRows:t,rows:a}}}=await e.query({query:IH(),variables:n,fetchPolicy:"network-only"});return{rows:a,totalRows:t}}})}var FH=t(45867),PH=t.n(FH),BH=t(47520),UH=t.n(BH);const $H=(0,le.default)(ie.fI)`
  background: white;
`;function MH(e){let{text:n,color:t,children:a}=e;const[i,l]=(0,g.useState)(!1);return(0,fe.jsx)($H,{span:12,item:!0,children:(0,fe.jsx)(ie.nD,{onToggle:()=>l(e=>!e),open:i,size:"md",text:n,color:t,children:a})})}const VH=S.J1`
  query GetAllTransportTypes {
    getAllTransportTypes {
      id
      name
    }
  }
`;function GH(e){let{value:n,onChange:t}=e;const{data:a,loading:i,error:l}=(0,x.IT)(VH);return(0,fe.jsx)(ie.l6,{placeholder:"Please select type of transport",value:n,options:$a(a?.getAllTransportTypes),error:l,isLoading:i,onChange:t})}const zH=S.J1`
  query GetAllFuelTypes {
    getAllFuelTypes {
      id
      name
    }
  }
`;function WH(e){let{value:n,onChange:t}=e;const{data:a,loading:i,error:l}=(0,x.IT)(zH);return(0,fe.jsx)(ie.l6,{placeholder:"Please select type of fuel",value:n,options:$a(a?.getAllFuelTypes),error:l,isLoading:i,onChange:t})}const qH=S.J1`
  query GetAllTransportSubTypes {
    getAllTransportSubTypes {
      id
      name
    }
  }
`;function JH(e){let{value:n,onChange:t}=e;const{data:a,loading:i,error:l}=(0,x.IT)(qH);return(0,fe.jsx)(ie.l6,{placeholder:"Please select a subtype",value:n,options:$a(a?.getAllTransportSubTypes),error:l,isLoading:i,onChange:t})}const YH=S.J1`
  query GetAllAccuracyTypes {
    getAllAccuracyTypes {
      id
      name
    }
  }
`;var HH=function(e){return e.Act="ea50d0b7-6a27-11eb-bd03-06b5345f8dda",e.Est="ea50d410-6a27-11eb-bd03-06b5345f8dda",e}(HH||{});function KH(e){let{value:n,onChange:t,error:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(YH);return(0,fe.jsx)(ie.l6,{placeholder:"Actual/Estimated",value:n||HH.Act,options:$a(i?.getAllAccuracyTypes),isLoading:l,onChange:t,error:r?r.message:a})}const QH=S.J1`
  query getContainerTypeSizes($page: Int = 1, $pageSize: Int!, $filterValue: String) {
    getContainerTypeSizePage(page: $page, pageSize: $pageSize, filterValue: $filterValue) {
      count
      hasNextPage
      hasPreviousPage
      isFirstPage
      isLastPage
      pageCount
      totalItemCount
      page
      pageSize
      typeSizes {
        id
        name
      }
    }
  }
`;function ZH(e){let{value:n,onChange:t,error:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(QH,{variables:{page:1,pageSize:St}}),o=$a(i?.getContainerTypeSizePage?.typeSizes),s=a||(r?r.message:null);return(0,fe.jsx)(ie.l6,{placeholder:"Please select type of container",value:n,options:o,error:s,isLoading:l,onChange:e=>{let{target:{select:n}}=e;t(n.value,n.label)}})}function XH(e){let{value:n,onChange:t,error:a,label:i}=e;const{loading:l,data:r,fetchMore:o,error:s}=(0,x.IT)(QH,{notifyOnNetworkStatusChange:!0,variables:{page:1,pageSize:St}}),d=(0,g.useMemo)(()=>$a(r?.getContainerTypeSizePage.typeSizes),[r]),c=(0,g.useCallback)(async(e,n,t)=>{const a={filterValue:t,page:Math.floor(n/e)+1,pageSize:St},i=await o({variables:a});return{total:i.data.getContainerTypeSizePage.totalItemCount,options:$a(i.data.getContainerTypeSizePage.typeSizes)}},[o]);return(0,fe.jsx)(f.AutoComplete,{label:i,options:d,loadMore:c,isLoading:l,value:n,error:a,onChange:e=>t(e),loadMoreSize:St,helperText:a||s?.message,placeholder:"Please select type of container"})}const eK={label:"Loading...",value:"",disabled:!0},nK={label:"No energy sources found",value:"",disabled:!0};function tK(e){let{value:n,error:t,name:a,onChange:i,label:l="Energy type",disabled:r,onEnergySourceLoadComplete:o}=e;const{data:s,loading:d,error:c}=(0,x.IT)(EA,{onCompleted:o?e=>o(e.getAllEnergyType||[]):void 0}),u=(s?.getAllEnergyType||[]).map(e=>({value:e?.id,label:e?.name})).sort((e,n)=>e.label?.localeCompare(n.label||"")||1);return d||c||0!==u.length||u.unshift(nK),(0,fe.jsx)(f.Select,{name:a,label:l,value:n,options:d?[eK]:u,isLoading:d,error:Boolean(t),helperText:t||"",disabled:r,onChange:e=>i(e)})}const aK=(0,f.styled)(f.Button)`
  width: 100%;
`,iK=(0,f.styled)("div")`
  width: 100%;
  display: flex;
  gap: 16px;
`,lK=(0,f.styled)("div")`
  width: 50%;
`,rK=e=>{let{onError:n,onSuccess:t,energyType:a}=e;const{state:i,changeMeterName:l,changeMeterType:r,changeLocation:o,isValidData:s,changeFieldValue:d,waterMeterType:c,toggleWaterMeterIn:u,toggleWaterMeterOut:p}=UA(),[m,y]=(0,g.useState)(!a),h=Je(),x=(0,g.useCallback)(e=>{if(y(!0),!a)return;const n=e.find(e=>e.name.toLowerCase()===a.toLowerCase());n&&r({label:n.name,value:n})},[a,r]),[T,{called:b,loading:v}]=(0,ln.n)(IA,{onCompleted:e=>{let{createEnergySources:n}=e;const[a]=n,i=`The Meter ${a.name} was created successfully`;t(i,a)},onError:e=>{n(`Something went wrong. If the problem persists, contact support. ${e}`,"danger")}}),C=(0,g.useCallback)(e=>{d({fieldName:"startDate",value:e})},[d]),k=(0,g.useCallback)(e=>{d({fieldName:"endDate",value:e})},[d]);return(0,fe.jsxs)(f.Grid,{container:!0,columns:12,rowGap:3,columnGap:2,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{label:"What do you want to call this meter?",value:i.meterName.value||"",error:Boolean(i.meterName.error),helperText:i.meterName.error,onChange:e=>l({value:e.target.value})})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(tK,{label:"What is the meter type?",value:i.typeId?.value?.id||"",onChange:e=>r({label:e.label,value:{id:e.value,name:e.label}}),error:i.typeId.error,disabled:Boolean(a),onEnergySourceLoadComplete:a?x:void 0})}),"Water"===i.typeId.value.name&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Checkbox,{name:"in",id:"create-meter-in",label:`${i.typeId.value.name} In`,onChange:()=>u(),checked:i.meterIn,value:i.meterIn})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Checkbox,{id:"create-meter-out",name:"out",label:`${i.typeId.value.name} Out`,onChange:()=>p(),checked:i.meterOut,value:i.meterOut})})]}),("Electricity"===i.typeId.value.name||"Heat & Steam"===i.typeId.value.name)&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Checkbox,{label:"Renewable energy generating meter",id:"is-generating-meter",name:"isGeneration",onChange:()=>d({fieldName:"isGeneration",value:!i.isGeneration}),checked:i.isGeneration||!1,value:i.isGeneration||!1})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(gN,{label:"Which location is this meter at?",value:i.locationId,onChange:o,error:i.locationId.error})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{value:i.code||"",label:"Meter code",onChange:e=>d({fieldName:"code",value:e.target.value})})}),(0,fe.jsxs)(f.Grid,{size:12,children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:"Has this meter closed?"}),(0,fe.jsxs)(iK,{children:[(0,fe.jsx)(lK,{children:(0,fe.jsx)(f.DatePicker,{name:"startDate",label:"Start date",onChange:e=>C(new Date(e)),value:i.startDate?new Date(i.startDate):void 0})}),(0,fe.jsx)(lK,{children:(0,fe.jsx)(f.DatePicker,{name:"endDate",label:"End date",onChange:e=>k(new Date(e)),value:i.endDate?new Date(i.endDate):void 0})})]})]}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(aK,{name:"create-energyMeter__button--create",color:"primary",variant:"contained",disabled:!s||b||!m,loading:v,onClick:()=>{T({variables:{energySources:[{id:(0,Wa.A)(),name:i.meterName.value,locationId:i.locationId.value,typeId:i.typeId.value.id,accountId:h,inOut:c,isGeneration:"Electricity"===i.typeId.value.name||"Heat & Steam"===i.typeId.value.name?i.isGeneration||!1:null,meterCode:i.code,hardwareProviderName:i.hardwareProviderName,operatorProviderName:i.operatorProviderName,startDate:i.startDate,endDate:i.endDate}]}})},children:"Add meter"})})]})};function oK(e){const{onSuccess:n,onDismiss:t,energyType:a}=e,[i,l]=(0,g.useState)(!1),{showNotification:r}=tn(),o=Je(),s=(0,g.useCallback)((e,n)=>{r(e,n),l(!1)},[r]);return(0,fe.jsxs)(f.Modal,{maxWidth:"700px",open:!0,onClose:t,title:"Add new meter",children:[!i&&(0,fe.jsx)(rK,{onSuccess:(e,t)=>{n(t)},onError:r,energyType:a}),i&&(0,fe.jsx)(pC,{accountId:o,onSuccess:s})]})}const sK=[{order:"asc",field:"name"}],dK="Create new meter...";function cK(e){let{type:n,onChange:t,onMeterCreated:a,accountId:i,value:l,label:r,error:o,createNew:s}=e;const d=lr(),[c,u]=(0,g.useState)(!1),p=d.data.some(e=>e.startsWith("createEnergySource")),{data:m,loading:y,fetchMore:h}=(0,x.IT)(Rr,{variables:{type:n,limit:St,accountId:i,sort:sK},skip:!i,notifyOnNetworkStatusChange:!0}),T=(0,g.useMemo)(()=>$a(m?.getEnergySourceByAccountIdAndType?.rows||[]),[m]);return(0,fe.jsxs)(fe.Fragment,{children:[c&&(0,fe.jsx)(oK,{energyType:n,onDismiss:()=>u(!1),onSuccess:e=>{t({value:e.id,label:e.name}),a?.(e),u(!1)}}),(0,fe.jsx)(f.AutoComplete,{label:r,value:l,error:o,options:T,createOption:p&&s?dK:void 0,loadMore:async(e,n,t)=>{const a={accountId:i,offset:n,limit:e};t&&(a.filters={text:[{filterType:gn.pe.Text,type:gn.II.Contains,filter:t,field:"name"}]});const l=await h({variables:a});return{total:l.data.getEnergySourceByAccountIdAndType.totalRows,options:$a(l.data.getEnergySourceByAccountIdAndType.rows)}},isLoading:y,onChange:e=>{e.value===dK?u(!0):t(e)},placeholder:"Begin typing to find meters"})]})}const uK=S.J1`
  query GetAllTransportFuelTypes {
    getAllTransportFuelTypes {
      id
      name
    }
  }
`;function pK(e){let{value:n,onChange:t}=e;const{data:a,loading:i,error:l}=(0,x.IT)(uK);return(0,fe.jsx)(ie.l6,{placeholder:"Please select type of fuel",value:n,options:$a(a?.getAllTransportFuelTypes),error:l,isLoading:i,onChange:t})}const mK=S.J1`
  query GetAllJourneyTargets {
    getAllJourneyTargets {
      id
      name
    }
  }
`;function fK(e){let{value:n,onChange:t}=e;const{data:a,loading:i,error:l}=(0,x.IT)(mK);return(0,fe.jsx)(ie.l6,{placeholder:"Please select purpose of journey",value:n,options:$a(a?.getAllJourneyTargets),error:l,isLoading:i,onChange:t})}const yK=S.J1`
  query getAllUnits {
    getAllUnits {
      id
      name
    }
  }
`;function gK(e){let{value:n,onChange:t,possibleOptions:a,error:i,placeholder:l}=e;const{data:r,loading:o,error:s}=(0,x.IT)(yK),d=$a(r?.getAllUnits).filter(e=>a?.includes(e.label));return(0,fe.jsx)(ie.l6,{placeholder:l||"Please select unit of measurement",value:n,options:d,error:s||i,isLoading:o,onChange:t})}const hK=e=>{let{value:n,label:t,onChange:a,placeholder:i,possibleOptions:l,error:r}=e;const{data:o,loading:s,error:d}=(0,x.IT)(yK),c=$a(o?.getAllUnits).filter(e=>l?.includes(e.label)),u=d||r,p=u instanceof zS.K4?u.message:u;return(0,fe.jsx)(f.Select,{placeholder:i||"Please select unit of measurement",value:n,label:t,isLoading:s,options:c,error:!!u,helperText:p||"",onChange:e=>a(e)})},xK=S.J1`
  query getAllCurrencyTypes {
    getAllCurrencyTypes {
      id
      name
    }
  }
`;function TK(e){let{name:n,value:t,onChange:a,isMulti:i,currencyId:l,isDisabled:r}=e;const{data:o,loading:s,error:d}=(0,x.IT)(xK),c=(o?.getAllCurrencyTypes||[]).find(e=>e.id===l),u=c&&Ua(c);return(0,fe.jsxs)(fe.Fragment,{children:[s&&(0,fe.jsx)("div",{children:"Loading..."}),!s&&o&&(0,fe.jsx)(ie.l6,{name:n,placeholder:"Please select currency",isMulti:i,value:t||u,options:$a(o?.getAllCurrencyTypes),error:d,isLoading:s,onChange:a,isDisabled:r})]})}const bK=e=>{let{name:n,value:t,onChange:a,label:i,errorMessage:l}=e;const{data:r,loading:o,error:s}=(0,x.IT)(xK),d=$a(r?.getAllCurrencyTypes);return(0,fe.jsx)(f.Select,{name:n,placeholder:"Please select currency",value:t,options:d,error:!!s||!!l,helperText:s&&s.message||l||"",isLoading:o,label:i,onChange:e=>a(e)})};function vK(e){let{value:n,onChange:t,accountId:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(sj,{variables:{accountId:a}});return(0,fe.jsx)(ie.l6,{placeholder:"Please select material",value:n,options:$a(i?.getMaterialsByAccountID),error:r,isLoading:l,onChange:t})}const CK=S.J1`
  query GetAllMaterialOriginTypes {
    getAllMaterialOriginTypes {
      id
      name
    }
  }
`;function kK(e){let{value:n,onChange:t}=e;const{data:a,loading:i,error:l}=(0,x.IT)(CK);return(0,fe.jsx)(ie.l6,{placeholder:"Please select origin of material",value:n,options:$a(a?.getAllMaterialOriginTypes),error:l,isLoading:i,onChange:t})}const SK=S.J1`
  query getMarketCarbonConversionFactors($accountId: ID) {
    getMarketCarbonConversionFactors(accountId: $accountId) {
      id
      tariff
    }
  }
`;function NK(e){let{value:n,onChange:t,accountId:a,valueAsLabel:i}=e;const{data:l,loading:r,error:o}=(0,x.IT)(SK,{variables:{accountId:a}});return(0,fe.jsx)(ie.l6,{placeholder:"Please select a tariff",value:n,options:l?.getMarketCarbonConversionFactors?.map(e=>({label:e.tariff,value:i?e.tariff:e.id})),error:o,isLoading:r,onChange:t,isClearable:!0})}const AK=e=>{let{value:n,onChange:t,label:a,accountId:i,valueAsLabel:l}=e;const{data:r,loading:o,error:s}=(0,x.IT)(SK,{variables:{accountId:i}}),d=r?.getMarketCarbonConversionFactors?.map(e=>({label:e.tariff,value:l?e.tariff:e.id}))||[];return(0,fe.jsx)(f.Select,{placeholder:"Please select a tariff",value:n,label:a,options:d,error:!!s,isLoading:o,helperText:s?.message??"",onChange:e=>t(e)})};function RK(e){let{transactionType:n,aliasType:t,onChange:a,value:i,accountId:l,possibleOptions:r=[]}=e;const o=e=>{let{target:{select:n}}=e;a(n.value,n.label)};switch(t){case gn.VT.Accuracy:return(0,fe.jsx)(KH,{onChange:o,value:i});case gn.VT.Transport:return(0,fe.jsx)(GH,{onChange:o,value:i});case gn.VT.Locationpoint:return(0,fe.jsx)(NA,{value:i,onChange:o,createNew:!0});case gn.VT.Wastein:return(0,fe.jsx)(LA,{onChange:o,value:i,createNew:!0,createNewAccessor:"wasteIn."});case gn.VT.Wasteout:return(0,fe.jsx)(RA,{onChange:o,value:i,createNew:!0,createNewAccessor:"wasteOut."});case gn.VT.Wastestream:return(0,fe.jsx)(A_,{onChange:e=>a(e.id,e.name),value:i,createNew:!0});case gn.VT.Containertypesize:return(0,fe.jsx)(ZH,{onChange:a,value:i});case gn.VT.Wastecontractor:return(0,fe.jsx)(XF,{onChange:o,value:i,accountId:l,utility:gn.D_.Waste,filter:e=>e.type.includes(gn.d.Contractor)});case gn.VT.Wastecarrier:return(0,fe.jsx)(XF,{onChange:o,value:i,accountId:l,utility:gn.D_.Waste,filter:e=>e.type.includes(gn.d.Carrier)});case gn.VT.Meter:return(0,fe.jsx)(cK,{type:n,onChange:e=>a(e.value,e.label),value:i,label:"Select meter",accountId:l,createNew:!0});case gn.VT.Wastetreatmentprocess:return(0,fe.jsx)(bN,{onChange:o,value:i});case gn.VT.Fueltype:return(0,fe.jsx)(WH,{onChange:o,value:i});case gn.VT.Transportfueltype:return(0,fe.jsx)(pK,{onChange:o,value:i});case gn.VT.Transportsubtype:return(0,fe.jsx)(JH,{onChange:o,value:i});case gn.VT.Journeytarget:return(0,fe.jsx)(fK,{onChange:o,value:i});case gn.VT.Unit:return(0,fe.jsx)(gK,{onChange:o,value:i,possibleOptions:r});case gn.VT.Currency:return(0,fe.jsx)(TK,{onChange:o,value:i});case gn.VT.Tariff:return(0,fe.jsx)(NK,{onChange:o,value:i,accountId:l});case gn.VT.Material:return(0,fe.jsx)(vK,{onChange:o,value:i,accountId:l});case gn.VT.Materialorigin:return(0,fe.jsx)(kK,{onChange:o,value:i});case gn.VT.Counterparty:return(0,fe.jsx)(XF,{onChange:o,value:i,accountId:l,utility:n});default:return null}}const DK=le.keyframes`
  from {
    height:0;
    overflow:hidden;
    padding: 0px ${e=>`${e.theme.geometry.md.spacing}`};
    opacity:0;
  }
  to {
    height: auto;
    padding: ${e=>`${e.theme.geometry.md.spacing}`};
    opacity:1;
  }
`,LK=le.css`
  ${DK} 0.2s;
`,IK=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  align-items: start;
  animation: ${LK};
`,jK=(0,le.default)(ie.In)`
  color: ${e=>e.theme.colors.success.normal.background};
  transition: opacity 0.2s, transform 0.2s;
  transform: ${e=>e.matched&&!e.loading?"":"rotate(-180deg) scale(.5)"};
  opacity: ${e=>e.matched&&!e.loading?"1":"0"};
`,wK=(0,le.default)(ie.In)`
  color: ${e=>e.theme.colors.danger.normal.background};
  transition: opacity 0.2s, transform 0.2s;
  transform: ${e=>e.matched||e.loading?"rotate(-180deg) scale(.5)":""};
  opacity: ${e=>e.matched||e.loading?"0":"1"};
`,OK=le.default.div`
  position: absolute;
  top: 100%;
  left: 0;
`,EK=(0,le.default)(ie.fv)`
  position: relative;
`,_K=(0,le.default)(ie.fv)`
  margin-left: auto;
`,FK=e=>{let{transactionType:n,aliasType:t,unknownString:a,value:i,onChange:l,accountId:r,possibleOptions:o,...s}=e;return(0,fe.jsxs)(IK,{container:!0,...s,children:[(0,fe.jsx)(EK,{item:!0,span:1,children:(0,fe.jsx)(OK,{children:i?(0,fe.jsx)(jK,{matched:i,icon:"check"}):(0,fe.jsx)(wK,{matched:i,icon:"times"})})}),(0,fe.jsx)(ie.fv,{item:!0,span:4,children:(0,fe.jsx)(ie.EY,{children:a})}),(0,fe.jsx)(_K,{item:!0,span:4,children:(0,fe.jsx)(RK,{transactionType:n,aliasType:t,value:i,accountId:r,onChange:l,possibleOptions:o})})]})},PK=[[gn.VT.Wastestream,"Waste Stream",gn.D_.Waste],[gn.VT.Wastetreatmentprocess,"Treatment Process",gn.D_.Waste],[gn.VT.Containertypesize,"Container Type",gn.D_.Waste],[gn.VT.Wastecontractor,"Waste Contractor",gn.D_.Waste],[gn.VT.Wastecarrier,"Waste Carrier",gn.D_.Waste],[gn.VT.Wastein,"Waste In Location",gn.D_.Waste],[gn.VT.Wasteout,"Waste Out Location",gn.D_.Waste],[gn.VT.Meter,"Meter Name",gn.D_.Electricity],[gn.VT.Meter,"Meter Name",gn.D_.Gas],[gn.VT.Meter,"Meter Name",gn.D_.Water],[gn.VT.Meter,"Meter Name",gn.D_.Heatsteam],[gn.VT.Locationpoint,"Location",gn.D_.Transport],[gn.VT.Locationpoint,"Location",gn.D_.Fuel],[gn.VT.Locationpoint,"Location",gn.D_.Materials],[gn.VT.Locationpoint,"Location",gn.D_.Hotelstays],[gn.VT.Transport,"Type",gn.D_.Transport],[gn.VT.Fueltype,"Fuel Type",gn.D_.Fuel],[gn.VT.Transportfueltype,"Fuel Type",gn.D_.Transport],[gn.VT.Transportsubtype,"Subtype",gn.D_.Transport],[gn.VT.Journeytarget,"Purpose Of Journey",gn.D_.Transport],[gn.VT.Unit,"Quantity units",gn.D_.Fuel],[gn.VT.Unit,"Quantity Weight Units",gn.D_.Materials],[gn.VT.Accuracy,"Act/Est",gn.D_.Fuel],[gn.VT.Currency,"Currency",gn.D_.Waste],[gn.VT.Currency,"Currency",gn.D_.Electricity],[gn.VT.Currency,"Currency",gn.D_.Heatsteam],[gn.VT.Currency,"Currency",gn.D_.Gas],[gn.VT.Currency,"Currency",gn.D_.Water],[gn.VT.Currency,"Currency",gn.D_.Transport],[gn.VT.Currency,"Currency",gn.D_.Fuel],[gn.VT.Currency,"Currency",gn.D_.Materials],[gn.VT.Currency,"Currency",gn.D_.Hotelstays],[gn.VT.Tariff,"Tariff",gn.D_.Electricity],[gn.VT.Tariff,"Tariff",gn.D_.Heatsteam],[gn.VT.Tariff,"Tariff",gn.D_.Hotelstays],[gn.VT.Material,"Material",gn.D_.Materials],[gn.VT.Materialorigin,"Origin",gn.D_.Materials],[gn.VT.Counterparty,"Supplier",gn.D_.Materials],[gn.VT.Counterparty,"Data Provider",gn.D_.Hotelstays],[gn.VT.Counterparty,"Supplier",gn.D_.Electricity],[gn.VT.Counterparty,"Supplier",gn.D_.Gas],[gn.VT.Counterparty,"Supplier",gn.D_.Heatsteam],[gn.VT.Counterparty,"Supplier",gn.D_.Water],[gn.VT.Counterparty,"Supplier",gn.D_.Fuel],[gn.VT.Counterparty,"Data Provider",gn.D_.Transport]],BK=(e,n)=>{const t=PK.find(t=>{let[,a,i]=t;return a===e&&n===i});if(t){const[e]=t;return e}return null},UK=(0,le.default)(ie.EY)`
  margin: auto;
  padding: ${e=>e.theme.geometry.md.spacing};
`,$K=e=>{let{accountId:n,aliases:t,setAliases:a,transactionType:i,valuesToAlias:l}=e;return(0,fe.jsxs)(g.Fragment,{children:[(0,fe.jsxs)(UK,{weight:"bold",children:["Currently viewing ",l.length," out of ",l.length," aliasable items"]}),xn()(l).groupBy(e=>e.error.fieldName).map((e,l)=>{const r=BK(l,i),o=t.filter(e=>e.aliasType===r),s=o.length===e.length;return(0,fe.jsx)(MH,{text:`${l} (${o.length} of ${e.length} matched)`,color:s?"success":"danger",children:e.map(e=>{const t=o.find(n=>n.aliasType===e.aliasType&&n.name===e.error.value),r=t?{value:t.parentId,label:t.parentName}:null;return(0,fe.jsx)(FK,{transactionType:i,aliasType:e.aliasType,unknownString:e.error.value,value:r,accountId:n,possibleOptions:e?.error?.possibleAliases,onChange:(t,l)=>{const r=(0,Wa.A)();a(a=>[...a.filter(n=>n.aliasType!==e.aliasType||n.name!==e.error.value),{id:r,accountId:n,parentId:t,parentName:l,name:e.error.value||"",aliasType:e.aliasType,energyType:i}])}},[l,e.error.value].join("-"))})},l)}).value()]})};function MK(e,n,t){const a={id:n},{data:i,error:l,loading:r,refetch:o}=(0,x.IT)(AO,{variables:a,fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}),s=i?.getDataImportBatchById||null,d=xn()(s?.errors).filter(e=>!!e.actionRequired).uniqBy(e=>[e.fieldName,e.value].join()).value(),c={GetAliasBatchInput:{accountId:e,aliasValues:d.map(e=>({name:e.value,aliasType:BK(e.fieldName,t),energyType:t}))}},{data:u,error:p,loading:m,refetch:f}=(0,x.IT)(NO,{variables:c,skip:r||!!l,notifyOnNetworkStatusChange:!0}),y=u?.getAliasByValueBatch?.getParentResponses||[],g=xn()(d).map(e=>({error:e,aliasType:BK(e.fieldName,t)})).filter(e=>{let{error:n,aliasType:t}=e;return!y?.find(e=>e.aliasType===t&&n.value===e.name)}).value()||[];return[{batch:s,valuesToAlias:g},{loading:r||m,error:l||p,refetch:async()=>{await o(a),await f(c)}}]}const VK=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,GK=le.default.div`
  overflow: auto;
  padding: ${e=>e.theme.geometry.md.spacing};
`,zK=(0,le.default)(ie.$n)`
  flex: 0 0 auto;
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,WK=le.default.div`
  background: white;
  display: flex;
  flex-direction: column;
  height: auto;
`,qK=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  flex: 0 0 auto;
`,JK=(0,le.default)(ie.fI)`
  flex: 0 0 auto;
  padding: ${e=>e.theme.geometry.lg.spacing};
`,YK=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,HK=(0,le.default)(ie.fI)`
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,KK=(0,le.default)(ie.$n)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,QK=le.default.div`
  flex: 1 1 auto;
  overflow: auto;
  padding: ${e=>e.theme.geometry.sm.spacing};
`,ZK=(0,le.default)(ie.Ip)`
  margin: 10px auto;
  padding: ${e=>e.theme.geometry.md.spacing};
`,XK=(0,le.default)(ie.EY)`
  margin: auto;
  padding: ${e=>e.theme.geometry.md.spacing};
`,eQ=()=>{const[e,n]=(0,g.useState)([]),{subject:t,id:a}=(0,m.g)(),i=Je(),l=(0,m.Zp)(),[r,o]=(0,g.useState)(!1),[{batch:s,valuesToAlias:d},{loading:c,error:u,refetch:p}]=MK(i,a,t?.toUpperCase()),f=(0,g.useMemo)(()=>`${i}-${a}-${t?.toUpperCase()}`,[i,a,t]),{clearStorageItem:y}=an(f,e,n),[h]=(0,ln.n)(SO),{showNotification:x}=tn(),T=async()=>{await h({variables:{id:a}}),l(`/data/${t}/uploads`),y()},[b]=(0,ln.n)(kO,{onCompleted:T,onError:e=>{x(e.message,"danger")}}),v=PH()(t),C=d.length>0&&e.length<d.length,k=t?.toUpperCase(),S=d.length?"Confirm Aliases":"Re-Submit Batch",N=d.length?"Are you sure these Aliases are correct?":"";return(0,fe.jsxs)(VK,{children:[r&&(0,fe.jsx)(ie.aF,{onDismiss:()=>o(!1),show:!0,height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(YK,{children:[(0,fe.jsx)(HK,{item:!0,children:(0,fe.jsx)(ie.DZ,{children:S})}),(0,fe.jsx)(HK,{item:!0,children:(0,fe.jsx)(ie.EY,{children:N})}),(0,fe.jsxs)(HK,{container:!0,distribution:"around",children:[(0,fe.jsx)(KK,{color:"info",onClick:()=>o(!1),children:"Cancel"}),(0,fe.jsx)(KK,{onClick:()=>{e.length?b({variables:{input:e.map(e=>UH()(e,"parentName"))}}):T()},children:"Confirm"})]})]})}),(0,fe.jsx)(xV,{name:"back",title:`${v} Upload Aliases`,breadcrumbs:[{title:"Data",to:"/data"},{title:v,to:`/data/${t}`},{title:"Uploads",to:`/data/${t}/uploads`},{title:"Aliases"}],icon:"chart-line",iconColor:"quaternary",children:(0,fe.jsx)(ie.$n,{inline:!0,component:"routerLink",color:"info",to:`/data/${t}/uploads`,children:"Back to Uploads"})}),(0,fe.jsx)(GK,{children:(0,fe.jsxs)(WK,{children:[(0,fe.jsx)(qK,{container:!0,distribution:"between",itemAlign:"center",children:(0,fe.jsx)(ie.EY,{children:"To help keep your data consistent we need to match some unrecognized entries to existing types. Please review each item and either match it to an existing type, or create a new type."})}),c&&(0,fe.jsx)(QK,{children:(0,fe.jsx)(ZK,{})}),u&&(0,fe.jsx)($c,{error:u,retry:p}),s&&!c&&!u&&!!d.length&&(0,fe.jsx)($K,{accountId:i,aliases:e,transactionType:k,setAliases:n,valuesToAlias:d,batch:s}),s&&!c&&!u&&!d.length&&(0,fe.jsx)(XK,{weight:"bold",children:"All items has been aliased"}),(0,fe.jsxs)(JK,{itemAlign:"center",distribution:"end",vdistributon:"center",container:!0,children:[(0,fe.jsx)(zK,{inline:!0,color:"info",onClick:()=>{l(`/data/${t}/uploads`)},children:"Cancel"}),(0,fe.jsx)(zK,{inline:!0,disabled:C,onClick:()=>{o(!0)},children:"Confirm"})]})]})})]})},nQ=S.J1`
  mutation DeleteTransposition($ID: ID!) {
    deleteTransposition(input: { id: $ID }) {
      id
    }
  }
`,tQ=JSON.parse('["Individual Collection Date","Waste In Location","Waste Out Location","Waste Stream","Waste Contractor","Waste Carrier","Treatment Process","Number Of Collections","Number Of Containers","Container Type","Quantity","Unit Of Weight","Act/Est","Gate Fee","Management Fee","Bin Hire","Bin Exchange","Transport Charge","Lift Charge","Equipment Hire","Labour Cost","Misc Cost","Misc Cost Rate","Rebate","Penalty","Currency","Notes","Reference","Waste Transfer Note ID","Consignment Note (EA) ID","Consignment Note (SEPA) ID","Sales Order ID","Invoice Number","Evidence Reference","Reference","Other Reference"]'),aQ=JSON.parse('["Meter Name","Tariff","Start Date (dd/mm/yyyy)","Start time (HH:mm)","End Date (dd/mm/yyyy)","End time (HH:mm)","Quantity (kWh)","Act/Est","Charge/kWh","Total Cost","Currency","Supplier","Comment","Invoice Number","Evidence Reference","Other Reference"]'),iQ=JSON.parse('["Meter Name","Tariff","Start Date (dd/mm/yyyy)","Start time (HH:mm)","End Date (dd/mm/yyyy)","End time (HH:mm)","Quantity (kWh)","Act/Est","Charge/kWh","Total Cost","Currency","Supplier","Comment","Invoice Number","Evidence Reference","Other Reference"]'),lQ=JSON.parse('["Meter Name","Start Date (dd/mm/yyyy)","End Date (dd/mm/yyyy)","Quantity (kWh)","Act/Est","Charge/kWh","Total Cost","Supplier","Currency","Comment","Invoice Number","Evidence Reference","Other Reference"]'),rQ=JSON.parse('["Meter name","Start Date (dd/mm/yyyy)","End Date (dd/mm/yyyy)","Reading","Quantity (m3)","Act/Est","Tariff (£/m3)","Currency","Supplier","Comment","Invoice Number","Evidence Reference","Other Reference"]'),oQ=JSON.parse('["Date","Location","Reference","Type","Subtype","Origin of Travel","Destination of Travel","Volume","Unit of Volume","Number of Journeys","Journey Distance","Total Distance","Unit of Distance","Freight (tonne.km)","Data Provider","Carrier","Purpose of Journey","Fuel Type","Cost of Journey","Currency","Document Reference","Notes"]'),sQ=JSON.parse('["Location","Date (dd/mm/yyyy)","Fuel Type","Quantity","Quantity units","Act/Est","Total cost","Currency","Supplier","Comment","Invoice Number","Evidence Reference","Other Reference"]'),dQ=JSON.parse('["Location","Date (dd/mm/yyyy)","Material","Origin","Supplier","Product Code","Quantity (number of units)","Quantity (weight)","Quantity (weight) units","Total Cost","Currency","Notes","Reference","Invoice Number","Evidence Reference","Other Reference"]'),cQ=JSON.parse('["Start Date (DD/MM/YYYY)","End Date (DD/MM/YYYY)","Location","Hotel Nights","Home Working Days","Hotel stay / Home working country","Data Provider","Tariff","Total Cost","Currency","Notes","Reference","Invoice Number","Evidence Reference","Other Reference"]'),uQ=JSON.parse('["Location","End Date (dd/mm/yyyy)","Gas Type","Gas Group","Quantity","Quantity Unit","Act/Est","Total Cost","Comment","Evidence Reference","Other Reference","Currency"]'),pQ="DEFAULT_TRANSPOSITION",mQ={WASTE:tQ,ELECTRICITY:aQ,GAS:lQ,WATER:rQ,TRANSPORT:oQ,FUEL:sQ,[gn.D_.Heatsteam]:iQ,[gn.D_.Materials]:dQ,[gn.D_.Hotelstays]:cQ,[gn.D_.Refrigerant]:uQ},fQ=le.default.div`
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
`,yQ=le.default.div`
  flex: ${e=>e.noflex?"0 0 auto":"1 1 auto"};
  display: flex;
  flex-direction: column;
`,gQ=le.default.div`
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  background: ${e=>{let{theme:n}=e;return n.colors.inputs.normal.background}};
  margin-top: ${e=>{let{theme:n}=e;return n.geometry.md.spacing}};
`,hQ=(0,le.default)(ie.aF)`
  z-index: 999 !important;
`;class xQ extends g.Component{constructor(e){super(e),this.handleChange=e=>{const{onTemplateChange:n=()=>{}}=this.props;this.setState({templateSelected:!0}),n(e)},this.deleteFunction=(e,n)=>{const{onTemplateChange:t=()=>{}}=this.props;n({variables:{ID:e}}),t({target:{value:null}})},this.onDismiss=()=>{this.setState({showModal:!1,idToBeDeleted:""})},this.deleteModal=e=>{const n=this.state.idToBeDeleted;return(0,fe.jsx)(hQ,{name:"PickTemplate__DeleteModal",size:"sm",show:!0,dismissable:!0,onDismiss:this.onDismiss,children:(0,fe.jsx)(Hy,{name:"deleteTranspositions",notification:{show:!1},headingText:"Delete Transposition",bodyText:"Are you sure you want to delete this transposition?",onConfirmAction:()=>{this.deleteFunction(n,e),this.onDismiss()},onCancelAction:this.onDismiss})})},this.onDelete=(e,n)=>{e.preventDefault(),this.setState({showModal:!0,idToBeDeleted:n})},this.state={templateSelected:!1,showModal:!1,idToBeDeleted:""}}render(){const{loading:e,error:n,transpositions:t,value:a,defaultValue:i,refetch:l,permissions:r}=this.props,o=!!r.transposition.find(e=>e.startsWith("delete"));if(e)return(0,fe.jsx)(fQ,{children:(0,fe.jsx)(ie.Ip,{size:"lg"})});if(n)return(0,fe.jsx)(fQ,{children:(0,fe.jsx)(ie.EY,{children:"error"})});const s=t.map(e=>({label:e.transpositionName,value:e.id,hiddenIcon:e.isHalfHourly}));return s.unshift({value:pQ,label:"Default",hiddenIcon:!0}),s.unshift({value:i,label:"New Template...",hiddenIcon:!0}),(0,fe.jsxs)(yQ,{noflex:this.state.templateSelected,children:[(0,fe.jsx)(me.s,{mutation:nQ,onCompleted:l,children:e=>(0,fe.jsxs)(fe.Fragment,{children:[this.state.showModal&&this.deleteModal(e),(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(ie.Nl,{id:"uploadContainer__SelectTemplate",name:"uploadContainer__SelectTemplate",fileName:this.props.fileName,templateLabel:"Choose a template",size:"md",value:a,options:s,onChange:this.handleChange,onDelete:this.onDelete,canDelete:o})})]})}),!this.state.templateSelected&&(0,fe.jsx)(gQ,{children:(0,fe.jsx)(ie.EY,{size:"lg",weight:"bold",children:"Choose template..."})})]})}}const TQ=$u(xQ),bQ={[gn.D_.Waste]:["Waste In Location","Waste Out Location","Waste Stream","Waste Contractor","Container Type","Treatment Process"],[gn.D_.Electricity]:["Meter Name","Start Date (dd/mm/yyyy)","End Date (dd/mm/yyyy)","Quantity (kWh)","Act/Est"],[gn.D_.Gas]:["Meter Name","Start Date (dd/mm/yyyy)","End Date (dd/mm/yyyy)","Quantity (kWh)","Act/Est"],[gn.D_.Water]:["Meter Name","Start Date (dd/mm/yyyy)","End Date (dd/mm/yyyy)","Act/Est","Quantity (m3)","Tariff (£/m3)"],[gn.D_.Transport]:["Date","Location","Type","Subtype","Origin of Travel","Destination of Travel","Purpose of Journey","Fuel Type","Notes"],[gn.D_.Fuel]:["Location","Date (dd/mm/yyyy)","Quantity","Quantity units"],[gn.D_.Materials]:["Location","Date (dd/mm/yyyy)","Material","Origin"],[gn.D_.Hotelstays]:["StartDate","EndDate","Location","Hotel stay / Home working country","Data Provider"],[gn.D_.Heatsteam]:["Meter Name","Start Date (dd/mm/yyyy)","End Date (dd/mm/yyyy)","Quantity (kWh)","Act/Est"],[gn.D_.Refrigerants]:["Location","End Date (dd/mm/yyyy)","Gas Type","Gas Group","Quantity","Act/Est"]},vQ=(e,n)=>e.map(e=>({name:e,required:bQ[n].includes(e)})),CQ={[gn.D_.Waste]:vQ(tQ,gn.D_.Waste),[gn.D_.Electricity]:vQ(aQ,gn.D_.Electricity),[gn.D_.Gas]:vQ(lQ,gn.D_.Gas),[gn.D_.Water]:vQ(rQ,gn.D_.Water),[gn.D_.Transport]:vQ(oQ,gn.D_.Transport),[gn.D_.Fuel]:vQ(sQ,gn.D_.Fuel),[gn.D_.Materials]:vQ(dQ,gn.D_.Materials),[gn.D_.Hotelstays]:vQ(cQ,gn.D_.Hotelstays),[gn.D_.Heatsteam]:vQ(iQ,gn.D_.Heatsteam),[gn.D_.Refrigerants]:vQ(uQ,gn.D_.Refrigerants)},kQ=le.default.div`
  ${e=>{let{theme:n}=e;return`\n    padding: ${n.geometry.md.spacing};\n    background: ${n.colors.overlay.light.background};\n    margin: ${n.geometry.md.spacing} 0; \n    overflow: hidden;\n  `}};
`,SQ=le.default.div`
  ${e=>{let{theme:n}=e;return`\n    padding: ${n.geometry.md.spacing} ${n.geometry.sm.spacing}; \n    align-self: stretch;\n    background: ${n.colors.basic.white};\n    margin-top: ${n.geometry.md.spacing}; \n  `}};
`,NQ=le.default.div`
  text-align: right;
`,AQ=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.xs.spacing};
`,RQ=(e,n)=>n.dittoColumn||n.ignored?e:e+1,DQ=e=>{const n=((e,n)=>{if(!n)return e.map(e=>({userColumn:e,dittoColumn:null,ignored:null}));const{mappings:t,ignored:a}=n,i=a.map(e=>e.toUpperCase().trim()),l=t.map(e=>e.columnName.toUpperCase().trim());return e.map(e=>{const n=String(e).toUpperCase().trim(),a=-1!==i.indexOf(n),r=l.indexOf(n);return{userColumn:e,dittoColumn:-1!==r?t[r].transposition:null,ignored:a}})})(e.headers,e.transpositions),[t,a]=(0,g.useState)(n),[i,l]=(0,g.useState)(e.templateName||e.defaultTemplateValue),[r,o]=(0,g.useState)(!1),{readOnly:s,defaultTemplateValue:d,onSave:c=()=>{},transpositionNames:u}=e,p=t.reduce(RQ,0),m=CQ[e.type].filter(e=>e.required).filter(e=>!t.find(n=>n.dittoColumn===e.name))&&!e.isHalfHourly,f=u&&!u.find(e=>e===i);return(0,fe.jsxs)("div",{children:[(0,fe.jsxs)(kQ,{children:[(0,fe.jsx)(ie.Vo,{name:"TranspositionSection-HeadingEdit",size:"lg",readOnly:s,inline:!0,placeholder:i,color:s?"dark":"tertiary",onEditChange:()=>{o(!0)},editing:r,onChange:e=>l(e.target.value)}),(0,fe.jsx)(ie.EY,{name:"TranspositionSection-MappedColsText",color:"dark",children:s?"Here are your mapped columns":"Create a template to map your excel columns to Rio’s columns. We’ll remember this for next time."}),(0,fe.jsx)(SQ,{children:(0,fe.jsx)(ie.FN,{show:3,scroll:3,name:"TranspositionSection__Carousel",responsive:[{breakpoint:1250,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:1660,settings:{slidesToShow:2,slidesToScroll:2}}],children:t.map((n,i)=>{return(0,fe.jsx)(ie.ao,{title:n.userColumn,name:`transposition-section__transposition-column__${n.userColumn}`,value:n.dittoColumn||"Unmatched",ignored:n.ignored,options:(l=e.type,(0,hn.sortBy)(CQ[l],"name").map(e=>({value:e.name,label:e.name}))).filter(e=>!t.find(n=>n.dittoColumn===e.value)),width:"250px",onMatch:e=>a(n=>[...n.slice(0,i),{...n[i],dittoColumn:e.target.value},...n.slice(i+1)]),onIgnore:e=>a(n=>[...n.slice(0,i),{...n[i],dittoColumn:null,ignored:e.target.checked},...n.slice(i+1)]),readOnly:e.readOnly,match:t[i].dittoColumn,ignoreLabel:"Ignore column"},`transposition-section__transposition-column__${n.userColumn}__${i}`);var l})})})]}),!p&&!!m.length&&(0,fe.jsx)(ie.EY,{color:"danger",children:`There are columns missing from your upload. ${m.map(e=>e.name).join(", ")} are required fields and need to be matched. Note, this applies to every row in your upload.`}),(0,fe.jsx)(NQ,{children:(0,fe.jsx)(AQ,{name:"TranspositionSection-Upload-Button",inline:!0,disabled:p||!s&&i===d||!s&&!f||!!m.length,color:p||!s&&i===d||!s&&!f?"danger":"success",onClick:n=>((n,a,l,r)=>(e.readOnly||!r&&i!==l)&&a({transpositionName:i,transposition:t}))(0,c,d,p),children:p&&`${p} not matched or ignored`||!s&&i===d&&"Give your template a name"||!s&&!f&&"Name already exists"||s&&"Upload"||"Save & Upload"})})]})},LQ=S.J1`
  query GetTranspositionByAccountId($accId: ID!, $type: TransactionType!) {
    getTranspositionsByAccountId(input: { accountId: $accId, includeSystemLevel: true, type: $type }) {
      id
      transpositionName
      isHalfHourly
    }
  }
`,IQ=S.J1`
  query GetTranspositionById($id: ID!) {
    getTranspositionById(id: $id) {
      id
      transpositionName
      isHalfHourly
      columnMapper {
        mappings {
          columnName
          transposition
        }
        ignored
      }
    }
  }
`,jQ=S.J1`
  mutation CreateTransposition(
    $id: ID!
    $name: String!
    $mappings: [MappingInput!]!
    $ignored: [String!]!
    $accountId: String
    $type: TransactionType!
  ) {
    createTransposition(
      input: {
        id: $id
        accountId: $accountId
        transpositionName: $name
        columnMapper: { mappings: $mappings, ignored: $ignored }
        type: $type
      }
    ) {
      id
      transpositionName
      columnMapper {
        mappings {
          columnName
          transposition
        }
        ignored
      }
    }
  }
`,wQ=le.default.div`
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  justify-content: center;
  height: 100%;
`,OQ=e=>{let{template:n,onConfirm:t,headers:a,type:i}=e;const l=n===pQ,{data:r,error:o,loading:s}=(0,x.IT)(IQ,{variables:{id:n},skip:l,fetchPolicy:"network-only"});if(s)return(0,fe.jsx)(wQ,{children:(0,fe.jsx)(ie.Ip,{name:"viewTranspositionSection-loading",size:"md"})});if(o)return(0,fe.jsx)(wQ,{children:(0,fe.jsx)(ie.EY,{name:"viewTranspositionSection-error",children:"error"})});const d=l?(e=>{const n={id:pQ,transpositionName:"Default",columnMapper:{mappings:mQ[e].map(e=>({columnName:e,transposition:e})),ignored:[]}};return"TRANSPORT"===e&&n.columnMapper.mappings.push({columnName:"Distance",transposition:"Total Distance"}),n})(i):r.getTranspositionById;return(0,fe.jsx)(DQ,{type:i,name:"viewTranspositionSection-TranspositionSection",readOnly:!0,onSave:()=>t(d),headers:a,templateName:d.transpositionName,transpositions:d.columnMapper,isHalfHourly:d.isHalfHourly},n)},EQ="New template name...",_Q=le.default.div`
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  height: 100%;
`,FQ=le.default.div`
  display: flex;
  flex: 1;
  flex-direction: column;
`;class PQ extends g.Component{constructor(e){super(e),this.onTemplateChange=e=>e.target.value===EQ?this.setState({template:null,createTemplate:!0}):this.setState({template:e.target.value,createTemplate:!1}),this.onTranspositionSave=(e,n)=>{const{accountId:t}=this.props;this.setState({transposition:e.transposition});const a=(0,Wa.A)();n({variables:{id:a,name:e.transpositionName||a,mappings:e.transposition.reduce((e,n)=>(n.dittoColumn&&e.push({columnName:n.userColumn.trim(),transposition:n.dittoColumn.trim()}),e),[]),ignored:e.transposition.reduce((e,n)=>(n.ignored&&e.push(n.userColumn),e),[]),accountId:t,type:this.state.type}})},this.onTranspositionConfirm=e=>{this.props.onTemplateSelect(e)},this.state={template:null,createTemplate:!1,transposition:null,type:e.type}}render(){const{transpositions:e,headers:n,fileName:t,accountId:a,loading:i,error:l,refetch:r}=this.props,{template:o,createTemplate:s}=this.state;return(0,fe.jsxs)(FQ,{children:[(0,fe.jsx)(TQ,{fileName:t,name:"pickTemplate",defaultValue:EQ,value:o,onTemplateChange:this.onTemplateChange,accountId:a,transpositions:e,error:l,loading:i,refetch:r}),o&&!s&&(0,fe.jsx)(OQ,{name:"viewTranspositionSection",onConfirm:this.onTranspositionConfirm,headers:n,template:o,type:this.state.type}),!o&&s&&(0,fe.jsx)(me.s,{mutation:jQ,onCompleted:e=>{this.onTranspositionConfirm(!!e&&e.createTransposition)},children:(t,a)=>{let{error:i,loading:l}=a;return l?(0,fe.jsx)(_Q,{children:(0,fe.jsx)(ie.Ip,{name:"createTemplate-Loading",size:"lg"})}):i?(0,fe.jsx)(_Q,{children:(0,fe.jsx)(ie.EY,{name:"createTemplate-error",children:"Template name already exists. Please try again with a different name."})}):(0,fe.jsx)(DQ,{name:"TranspositionSection",defaultTemplateValue:EQ,headers:n,onSave:e=>{this.onTranspositionSave(e,t)},transpositionNames:e.map(e=>e.transpositionName),type:this.state.type})}})]})}}const BQ=(UQ=PQ,(0,re.U)(LQ,{options:e=>({variables:{accId:e.accountId,type:e.type},fetchPolicy:"network-only"}),props:e=>{let{ownProps:n,data:t}=e;return t.loading?{loading:!0}:t.error?{error:t.error}:{...n,refetch:t.refetch,transpositions:t.getTranspositionsByAccountId}}})(UQ));var UQ;const $Q={ELECTRICITY:{header:"Does this electricity data relate to the account holder’s direct activities?",text:"This question allows Rio to determine which carbon emission scope your data relates to.\nSelect 'yes' if this data relates to electricity purchased and consumed directly by your company for its own buildings and operations (scope 2 and 3).\nSelect 'no' if the data relates to activities of contractors or other third parties (scope 3)."},GAS:{header:"Does this gas data relate to the account holder’s direct activities?",text:"This question allows Rio to determine which carbon emission scope your data relates to.\nSelect 'yes' if the data relates to gas purchased and consumed directly by your company for its own buildings and operations (scope 1 and 3).\nSelect 'no' if the data relates to activities of contractors or other third parties (scope 3)."},TRANSPORT:{header:"Does this data relate to the account holder’s owned and controlled vehicles?",text:"This question allows Rio to determine which carbon emission scope your data relates to.\nSelect 'yes' if the data relates to company-owned vehicles (scope 1, 2, and 3).\nSelect 'no' if the data relates to third party operated and/or owned vehicles, or commuting (scope 3)"},FUEL:{header:"Does this data relate to the account holder’s direct activities?",text:"This question allows Rio to determine which carbon emission scope your data relates to. \nSelect 'yes' if the data relates to fuels purchased and consumed directly by your company for its own buildings, operations and transport (scope 1 and 3). \nSelect 'no' if the data relates to activities of contractors or other third parties (scope 3)."},HEATSTEAM:{header:"Does this heat and steam data relate to the account holder's direct activities?",text:"This question allows Rio to determine which carbon emission scope your data relates to. Select 'yes' if this data relates to heat or steam purchased and consumed directly by your company for its own buildings and operations (scope 2 and 3). Select 'no' if the data relates to activities of contractors or other third parties (scope 3)."}},MQ=le.default.div`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  padding: ${e=>e.theme.geometry.md.spacing};
`,VQ=(0,le.default)(ie.fI)`
  width: 100%;
  flex-flow: row nowrap;
  justify-content: center;
`,GQ=(0,le.default)(ie.$n)`
  width: 100%;
`,zQ=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
  min-width: 200px;
`,WQ=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,qQ=e=>{let{type:n,onConfirm:t}=e;return(0,fe.jsxs)(MQ,{children:[(0,fe.jsx)(WQ,{size:"lg",children:$Q[n].header}),(0,fe.jsx)(WQ,{size:"md",children:$Q[n].text}),(0,fe.jsxs)(VQ,{container:!0,children:[(0,fe.jsx)(zQ,{span:4,children:(0,fe.jsx)(GQ,{name:"create-energyMeter__button--create",color:"success",onClick:()=>t(!0),children:"Yes"})}),(0,fe.jsx)(zQ,{span:4,children:(0,fe.jsx)(GQ,{name:"create-energyMeter__button--create",color:"info",onClick:()=>t(!1),children:"No"})})]})]})},{Electricity:JQ,Gas:YQ,Transport:HQ,Fuel:KQ}=gn.D_,QQ=e=>{let{template:n,transactionType:t,onComplete:a,onDismiss:i}=e;const l=Je(),[r,o]=(0,g.useState)({transpositionHeaders:null,error:null,file:null,transpositionId:null,showIsDirectActivityModal:!1,isDirectActivity:null}),s=e=>o(n=>({...n,...e})),{file:d,transpositionId:c,showIsDirectActivityModal:u,transpositionHeaders:p}=r||{},[m,{loading:f}]=_d(),y=[JQ,YQ,HQ,KQ].includes(t),h=(e,n)=>e&&null===n;var x;x=f,(0,g.useEffect)(()=>{const e=e=>{if(x)return e.preventDefault(),e.returnValue="",""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[x]);const T=async e=>{const{isDirectActivity:n,transpositionId:i=c}=e||{};if(i&&s({transpositionId:i}),y&&d&&i&&!u)s({showIsDirectActivityModal:!0});else if(((e,n,t,a)=>{const i=!n||null!==t,l=!h(e,a);return e&&i&&l})(d,u,n,i)){const e={transactionType:t,fileName:d?.name};null!==n&&(e.isDirectActivity=n),i&&i!==pQ&&(e.transpositionId=i);try{s({transpositionId:i,isDirectActivity:n}),await m({...e,file:d}),a()}catch(e){s({error:e})}finally{s({file:null,showIsDirectActivityModal:!1})}}},b=BQ;return(0,fe.jsx)(cx,{isUploading:f,errors:null,size:"lg",template:n,onFileInput:async e=>{let[n]=e;const t=await(a=n,new Promise((e,n)=>{const t=new FileReader;t.onloadend=()=>{const n=function(e){const n=(0,ta.LF)(e,{type:"array"}),t=n.Sheets[n.SheetNames[0]];if(!t["!ref"])return[];const a=ta.Wp.decode_range(t["!ref"]);let i;const l=a.s.r,r=[];for(i=a.s.c;i<=a.e.c;i+=1){const e=t[ta.Wp.encode_cell({c:i,r:l})];e&&r.push(e.v)}return r}(t.result);e(n)},t.onerror=n,t.readAsArrayBuffer(a)}));var a;s({file:n,transpositionHeaders:t})},onDismiss:i,children:u?(0,fe.jsx)(qQ,{onConfirm:e=>{T({isDirectActivity:e})},type:t}):h(d,c)&&(0,fe.jsx)(b,{fileName:d?.name,headers:p,template:n,onTemplateSelect:e=>{T({transpositionId:e.id})},accountId:l,type:t})})},ZQ=S.J1`
  query GetDataImportBatchImportFileUrl($id: ID!) {
    getDataImportBatchImportFileUrl(id: $id)
  }
`,XQ=S.J1`
  query GetDataImportBatchesPage(
    $accountId: ID!
    $type: TransactionType!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getDataImportBatchesPage(
      accountId: $accountId
      type: $type
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        status
        fileName
        user {
          id
          first_name
          last_name
        }
        lastUpdated
        rowsUploaded
        isLegacy
        approved
        transposition {
          transpositionName
        }
        anomalyCount
        externalActionUrl
        rollbackUser {
          id
          first_name
          last_name
        }
        rollbackReason
        isOverwriting
      }
    }
  }
`,eZ=S.J1`
  mutation deleteBatch($id: ID!) {
    deleteDataImportBatch(id: $id) {
      id
    }
  }
`,nZ=S.J1`
  mutation RollBackDataImportBatch($id: ID!, $rollbackReason: String) {
    rollBackDataImportBatch(id: $id, rollbackReason: $rollbackReason)
  }
`,tZ=S.J1`
  mutation UploadOcrDocument(
    $id: ID!
    $accountId: String!
    $parserId: String!
    $fileName: String!
    $fileContent: String!
    $utility: OcrUtility!
  ) {
    uploadOcrDocument(
      input: {
        id: $id
        accountId: $accountId
        parserId: $parserId
        fileName: $fileName
        fileContent: $fileContent
        utility: $utility
      }
    )
  }
`,aZ=S.J1`
  query GetAllTemplates {
    getAllTemplates {
      id
      name
      parserId
    }
  }
`,iZ=S.J1`
  query GetUploadSummaryDashboardUrl($uploadType: TransactionType!, $batchId: ID!, $accountId: String!) {
    getUploadSummaryDashboard(uploadType: $uploadType, batchId: $batchId, accountId: $accountId)
  }
`,lZ=S.J1`
  mutation ApproveUpload($batchId: ID!) {
    approveUpload(batchId: $batchId) {
      id
      errorsCount
      fileName
      status
      timeStamp
      importType
      rowsUploaded
      anomalyCount
      approved
      transposition {
        transpositionName
      }
    }
  }
`;var rZ=t(72168),oZ=t.n(rZ);const sZ=JSON.parse('{"USD":"$","CAD":"CA$","EUR":"€","AED":"AED","AFN":"Af","ALL":"ALL","AMD":"AMD","ARS":"AR$","AUD":"AU$","AZN":"man.","BAM":"KM","BDT":"Tk","BGN":"BGN","BHD":"BD","BIF":"FBu","BND":"BN$","BOB":"Bs","BRL":"R$","BWP":"BWP","BYN":"Br","BZD":"BZ$","CDF":"CDF","CHF":"CHF","CLP":"CL$","CNY":"CN¥","COP":"CO$","CRC":"₡","CVE":"CV$","CZK":"Kč","DJF":"Fdj","DKK":"Dkr","DOP":"RD$","DZD":"DA","EEK":"Ekr","EGP":"EGP","ERN":"Nfk","ETB":"Br","GBP":"£","GEL":"GEL","GHS":"GH₵","GNF":"FG","GTQ":"GTQ","HKD":"HK$","HNL":"HNL","HRK":"kn","HUF":"Ft","IDR":"Rp","ILS":"₪","INR":"Rs","IQD":"IQD","IRR":"IRR","ISK":"Ikr","JMD":"J$","JOD":"JD","JPY":"¥","KES":"Ksh","KHR":"KHR","KMF":"CF","KRW":"₩","KWD":"KD","KZT":"KZT","LBP":"LB£","LKR":"SLRs","LTL":"Lt","LVL":"Ls","LYD":"LD","MAD":"MAD","MDL":"MDL","MGA":"MGA","MKD":"MKD","MMK":"MMK","MOP":"MOP$","MUR":"MURs","MXN":"MX$","MYR":"RM","MZN":"MTn","NAD":"N$","NGN":"₦","NIO":"C$","NOK":"Nkr","NPR":"NPRs","NZD":"NZ$","OMR":"OMR","PAB":"B/.","PEN":"S/.","PHP":"₱","PKR":"PKRs","PLN":"zł","PYG":"₲","QAR":"QR","RON":"RON","RSD":"din.","RUB":"RUB","RWF":"RWF","SAR":"SR","SDG":"SDG","SEK":"Skr","SGD":"S$","SOS":"Ssh","SYP":"SY£","THB":"฿","TND":"DT","TOP":"T$","TRY":"TL","TTD":"TT$","TWD":"NT$","TZS":"TSh","UAH":"₴","UGX":"USh","UYU":"$U","UZS":"UZS","VEF":"Bs.F","VND":"₫","XAF":"FCFA","XOF":"CFA","YER":"YR","ZAR":"R","ZMK":"ZK","ZWL":"ZWL$"}'),dZ=le.default.td`
  padding: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  border-right: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,cZ=le.default.div`
  width: ${e=>e.width}px;
`,uZ=(0,le.default)(p.Link)`
  font-family: inherit;
  display: inline-block;
  color: inherit;
  opacity: 1;
  &:hover {
    text-decoration: none;
  }
  text-decoration: underline;
  font-size: ${e=>e.theme.fonts.sm.size};
`,pZ=e=>{const n=bn()(e).local().format("DD/MM/YYYY");return"Invalid date"===n?"-":n},mZ=(e,n)=>{if(n.currency){const t=sZ[n.currency]||"";return null!==e?oZ().formatMoney(e,t):"-"}return null!==e?oZ().formatMoney(e):"-"},fZ=e=>null!==e||void 0!==e?e:"-",yZ=e=>{let{id:n,rowData:t,columnHeaderModel:a}=e;return(0,fe.jsx)("tr",{name:`wasteTransaction-row--${n}`,"data-id":n,children:a.map(e=>{const a=e.field?(0,hn.get)(t,e.field):t[e.id];if(!e.display)return null;const i=`${n}-${e.id}`;let l;switch(e.dataType){case"boolean":l=(0,fe.jsx)(ie.Sc,{id:`${e.id}__checkBox--${n}`,name:`${e.id}__checkBox--${n}`,size:"md",disabled:!0,checked:a});break;case"time":l=(0,fe.jsx)(ie.EY,{children:a});break;case"date":l=(0,fe.jsx)(ie.EY,{children:pZ(a)});break;case"currency":l=(0,fe.jsx)(ie.EY,{children:mZ(a,t)});break;case"number":l=(0,fe.jsx)(ie.EY,{children:a?fZ(a):"-"});break;case"linkToDocument":l=(0,fe.jsx)(uZ,{to:`/documents/all?search=${a}`,children:a});break;default:l=(0,fe.jsx)(ie.EY,{children:a||"-"})}return(0,fe.jsx)(dZ,{children:(0,fe.jsx)(cZ,{width:e.width,children:l})},i)})})},gZ=le.default.table`
  tr:nth-child(even) {
    background: ${e=>e.theme.colors.overlay.light.background};
  }
`,hZ=le.default.th`
  padding: ${e=>e.theme.geometry.sm.spacing};
  background: ${e=>e.theme.colors.overlay.light.background};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  border-right: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,xZ=le.default.div`
  width: ${e=>e.width}px;
`,TZ=e=>{const{columnHeaderModel:n,data:t,onDocumentClick:a=()=>{}}=e;return(0,fe.jsxs)(gZ,{children:[(0,fe.jsx)("thead",{children:(0,fe.jsx)("tr",{children:n.map(e=>e.display?(0,fe.jsx)(hZ,{children:(0,fe.jsx)(xZ,{width:e.width,children:(0,fe.jsx)(ie.EY,{inline:!0,name:`wasteTransaction-row__${e.id}`,size:"md",weight:"bold",children:e.displayName})})},e.id):null)})}),(0,fe.jsx)("tbody",{children:t.map(e=>(0,fe.jsx)(yZ,{id:e.id,rowData:e,columnHeaderModel:n,onDocumentClick:a},e.id))})]})},bZ=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-top: ${e=>e.theme.geometry.md.spacing};
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`,vZ=le.default.div`
  width: 100%;
  padding-bottom: 15px;
  overflow-y: auto;
`,CZ=le.default.div`
  text-align: center;
  margin: ${e=>e.theme.geometry.md.spacing};
`,kZ=(0,le.default)(ie.Ip)`
  margin: 0 auto;
`,SZ=(0,le.default)(ie.$n)`
  width: 240px;
`;function NZ(e){const{formData:n={},onConfirm:t=()=>{},onBack:a=()=>{},dataSection:i}=e,[l,r]=Qs(i),[o,{data:s,loading:d}]=r;return(0,g.useEffect)(()=>{o(n,l)},[]),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(bZ,{children:"Data preview"}),(0,fe.jsxs)(vZ,{children:[d&&(0,fe.jsx)(kZ,{}),!d&&(0,fe.jsx)(TZ,{columnHeaderModel:l,data:s})]}),(0,fe.jsxs)(CZ,{children:[(0,fe.jsx)(SZ,{onClick:a,color:"info",style:{marginRight:"20px"},disabled:d,inline:!0,children:"Back"}),(0,fe.jsx)(SZ,{onClick:t,disabled:d,inline:!0,children:"Confirm data import to RIO"})]})]})}const AZ=le.default.div`
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
`,RZ="Direct",DZ="Indirect",LZ=e=>e.data.activity===RZ;function IZ(e){const{onUploadCompleted:n=()=>{},onError:t=()=>{},formData:a={},dataSection:i}=e,[l,r]=Qs(i),[o,{data:s}]=r,[d]=_d();return(0,g.useEffect)(()=>{o(a,l)},[]),(0,g.useEffect)(()=>{l.length&&s.length&&(async()=>{const e=((e,n)=>{const t=new Map(n.map(e=>{let{defaultName:n,id:t}=e;return[t,n]}));return e.map(e=>{const n={};return(0,hn.forIn)(e,(e,a)=>{t.get(a)&&((0,hn.isDate)(e)?n[t.get(a)]=Sn(e):(0,hn.isObject)(e)?n[t.get(a)]=(0,hn.get)(e,"name"):n[t.get(a)]=e)}),n})})(s,l),{sheetName:r,fileName:o}=(e=>{let{startDate:n,endDate:t,uploadReference:a}=e;const i="DD-MM-YYYY",l=t?`—${Sn(t,i)}`:"",r=`${Sn(n,i)}${l}`;return{sheetName:r,fileName:`${r} ${a.replace(/[^a-zA-Z0-9]/g," ")}`}})(a),c=ca(e,o,"xlsx",r),u="WASTE"===i;try{await d({file:c,fileName:c.name,transactionType:i,isDirectActivity:!u&&LZ(a)}),n()}catch(e){t(e)}})()},[s,l]),(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(AZ,{children:[(0,fe.jsx)(ie.DZ,{children:"Data uploading"}),(0,fe.jsx)(ie.Ip,{})]})})}const jZ=le.default.div`
  min-height: 550px;
`,wZ=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`,OZ=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,EZ=(0,le.default)(ie.fv)`
  margin: 8px 0;
  padding: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;

  & small {
    font-size: 14px;
  }
`,_Z=(0,le.default)(ie.JU)`
  padding-left: 20px;
`,FZ=(0,le.default)(_Z)`
  font-size: 12px;
`,PZ=le.default.div`
  display: flex;
  align-items: center;
`,BZ=le.default.div`
  display: flex;
  flex-direction: column;
  justify-content: center;
`,UZ=le.default.div`
  text-align: center;
  margin: ${e=>e.theme.geometry.md.spacing};
`,$Z=(0,le.default)(ie.l6)`
  text-transform: capitalize;
`,MZ=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -150px;
    left: 50%;
  }
`,VZ=(0,le.default)(ie.AG)`
  .DayPickerInput-Overlay {
    top: -150px;
    left: 50%;
  }
`,GZ=le.default.div`
  text-align: left;
  margin: 18px 0;
`,zZ=le.default.div`
  text-align: center;
  color: #ff909a;
`,WZ=(0,le.default)(ie.Ip)`
  margin: 0 auto;
`,qZ=le.default.div`
  display: ${e=>{let{isVisible:n}=e;return n?"block":"none"}};
`,JZ=(0,le.default)(ie.fI)`
  padding: 18px 0;
`;function YZ(e){const{form:n,onSubmit:t=()=>{},children:a,showEndDate:i,showSubmitButton:l=!0,showTime:r}=e,{handleSubmit:o,setValue:s,watch:d,register:c,control:u,formState:{isValid:p,errors:m}}=n||{},f=(e=>"maxLength"===e.uploadReference?.type?"Upload reference max length is 80 characters":e.data?"Please fill all mandatory fields":void 0)(m);(0,g.useEffect)(()=>{c("dataFormInputStrategy"),c("dataFormRowsFillingStrategy"),c("data.currency"),c("startDate",{required:!0}),c("endDate"),c("startTime"),c("endTime")},[c]);const[y,h,x,T,b,v,C]=d(["dataFormRowsFillingStrategy","dataFormInputStrategy","startDate","endDate","startTime","endTime","dateFrequency"]),k=h===mt.Single,S=h===mt.Aggregated,N=y===ft.Distributed,A=!k&&!S,R=y===ft.Replicated,D=!(0,hn.isNil)(h)||A,L=N,I=R||!(0,hn.isNil)(C),j=!(0,hn.isNil)(x)&&""!==x,w=(N&&!(0,hn.isNil)(C)&&j||R&&x)&&(!i||T),O=y===ft.Distributed||i,E=!p&&w,_=Object.entries(gt).map(e=>{let[,n]=e;return{label:(0,hn.capitalize)(n),value:n}});return A&&s("dataFormInputStrategy",mt.Single),(0,fe.jsx)("form",{onSubmit:o(t),children:(0,fe.jsx)(ie.hh,{children:(0,fe.jsxs)(jZ,{children:[(0,fe.jsx)(wZ,{children:"Direct Data Upload"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(GZ,{children:"Is this data entry for a single transaction or for aggregated set of data?"})}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(EZ,{item:!0,span:6,children:[(0,fe.jsx)(ie.Sc,{size:"md",id:"isSingle",checked:k||A,value:mt.Single,onChange:()=>s("dataFormInputStrategy",mt.Single)}),(0,fe.jsx)(PZ,{children:(0,fe.jsxs)(_Z,{labelFor:"isSingle",children:["Single ",(0,fe.jsx)("br",{})," ",(0,fe.jsxs)("small",{children:["(i.e. single commuter journey, ",(0,fe.jsx)("br",{})," regular waste collection ",(0,fe.jsx)("br",{})," or meter reading)"]})]})})]}),(0,fe.jsxs)(EZ,{item:!0,span:6,children:[(0,fe.jsx)(ie.Sc,{size:"md",id:"isAggregated",name:"Aggregated__Container",checked:S,value:mt.Aggregated,onChange:()=>s("dataFormInputStrategy",mt.Aggregated)}),(0,fe.jsx)(PZ,{children:(0,fe.jsxs)(_Z,{labelFor:"isAggregated",children:["Aggregated data ",(0,fe.jsx)("br",{})," ",(0,fe.jsxs)("small",{children:["(i.e annual waste tonnage, ",(0,fe.jsx)("br",{}),"quarterly energy bill)"]})]})})]})]}),D&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(GZ,{children:["Do you want this data entry to be ",k||A?"replicated":"distributed"," in your database and reports?"]})}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(EZ,{item:!0,span:6,children:[(0,fe.jsx)(ie.Sc,{size:"md",id:"isReplicated",checked:N,onChange:()=>s("dataFormRowsFillingStrategy",ft.Distributed)}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{labelFor:"isReplicated",children:"Yes"})})]}),(0,fe.jsxs)(EZ,{item:!0,span:6,children:[(0,fe.jsx)(ie.Sc,{size:"md",id:"isNotReplicated",checked:R,onChange:()=>s("dataFormRowsFillingStrategy",ft.Replicated)}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{labelFor:"isNotReplicated",children:"No"})})]})]})]}),L&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(OZ,{item:!0,children:(0,fe.jsx)(PZ,{children:(0,fe.jsxs)(_Z,{children:["Frequency of data to be ",k?"replicated":"distributed",":"]})})})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(OZ,{item:!0,children:(0,fe.jsx)(Ng.xI,{name:"dateFrequency",render:e=>{let{field:n}=e;return(0,fe.jsx)($Z,{...n,onChange:function(){let{target:{value:e}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.onChange(e)},options:_})},control:u})})})]}),I&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Start date"})}),(0,fe.jsx)(MZ,{onDayClick:e=>s("startDate",e),name:"startDate",selectedDate:x,disabledDatesAfter:T,box:!0})]})}),r&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Start time (optional)"})}),(0,fe.jsx)(VZ,{onTimeChange:e=>s("startTime",e),name:"startTime",selectedTime:b||null,box:!0})]})}),O&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"End date"})}),(0,fe.jsx)(MZ,{onDayClick:e=>s("endDate",e),name:"endDate",selectedDate:T,disabledDatesBefore:x,box:!0})]})}),r&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"End time (optional)"})}),(0,fe.jsx)(VZ,{onTimeChange:e=>s("endTime",e),name:"endTime",selectedTime:v||null,box:!0})]})})]})]}),w&&a,E&&(0,fe.jsx)(zZ,{children:f}),w&&l&&(0,fe.jsx)(UZ,{children:(0,fe.jsx)(ie.$n,{type:"submit",inline:!0,children:"Confirm data entry"})})]})})})}function HZ(e){const{value:n,onChange:t,name:a,error:i,trigger:l=()=>{},onCreateNew:r=()=>{},mapper:o=()=>{},options:s=[],...d}=e;return(0,fe.jsx)(ie.l6,{...d,name:a,error:i,onChange:function(){let{target:{value:e}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:n}=e;if("createNew"===n)return r(a);t(e),l()},options:s,value:n&&o(n)})}const KZ=e=>{const{value:n,onChange:t,error:a,label:i,options:l=[],onCreateNew:r=()=>{},disabled:o,helperText:s,...d}=e,c=(0,g.useCallback)(e=>{if("createNew"===e.value&&r)return r(e.label);t(e)},[t,r]),u="string"==typeof n?n:n?.value;return(0,fe.jsx)(f.Select,{...d,value:u,label:i,error:!!a,disabled:o,options:l,helperText:a||s,onChange:c})},QZ=e=>{const{form:n,onSubmit:t=()=>{}}=e,{setValue:a,control:i,register:l,watch:r}=n;(0,g.useEffect)(()=>{l("isFinancialDataRequired"),l("isReferenceDataRequired")},[l]);const o=Je(),[s,d]=r(["isFinancialDataRequired","isReferenceDataRequired"]),c=e=>a("isFinancialDataRequired",e),u=e=>a("isReferenceDataRequired",e),p=(0,g.useCallback)(e=>{let{data:n,financial:a,reference:i,...l}=e;const r={...l,data:n};s&&(r.data={...r.data,...a}),d&&(r.data={...r.data,...i}),t(r)},[t,s,d]);return(0,fe.jsx)(YZ,{onSubmit:p,form:n,children:(0,fe.jsxs)("div",{children:[(0,fe.jsx)(ie.fI,{children:(0,fe.jsx)(GZ,{children:"Please enter the following mandatory transactional waste data:"})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Waste-Out Location"})}),(0,fe.jsx)(Ng.xI,{name:"data.wasteOut",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(RA,{value:n.value,onChange:e=>a("data.wasteOut",e.target.select),error:t.error?.message,createNewModalSize:11,createNew:!0})},rules:{required:"Waste-Out Location is required"},defaultValue:null,control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Waste Stream"})}),(0,fe.jsx)(Ng.xI,{name:"data.wasteStream",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(A_,{createNew:!0,value:n.value,onChange:e=>a("data.wasteStream",{value:e.id,label:e.name}),createNewModalSize:11,error:t.error?.message})},rules:{required:"Waste Stream is required"},defaultValue:null,control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Waste-In Location"})}),(0,fe.jsx)(Ng.xI,{name:"data.wasteIn",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(LA,{value:n.value,onChange:e=>a("data.wasteIn",e.target.select),error:t.error?.message,createNewModalSize:11,createNew:!0})},rules:{required:"Waste-In Location is required"},defaultValue:null,control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Waste Contractor"})}),(0,fe.jsx)(Ng.xI,{name:"data.wasteContractor",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(XF,{value:n.value,onChange:e=>a("data.wasteContractor",e.target.select),accountId:o,error:t.error?.message,filter:e=>e.type.includes(gn.d.Contractor),includeEmpty:!0,utility:gn.D_.Waste})},rules:{required:"Waste Contractor is required"},defaultValue:null,control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Waste Carrier"})}),(0,fe.jsx)(Ng.xI,{name:"data.wasteCarrier",render:e=>{let{field:n}=e;return(0,fe.jsx)(XF,{value:n.value,onChange:e=>a("data.wasteCarrier",e.target.select),accountId:o,filter:e=>e.type.includes(gn.d.Carrier),includeEmpty:!0,utility:gn.D_.Waste})},defaultValue:null,control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Container Type Size"})}),(0,fe.jsx)(Ng.xI,{name:"data.containerTypeSize",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(ZH,{value:n.value,onChange:(e,n)=>a("data.containerTypeSize",{value:e,label:n}),error:t.error?.message})},rules:{required:"Container Type Size is required"},defaultValue:null,control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Number Of Collections"})}),(0,fe.jsx)(Ng.xI,{name:"data.numberOfCollections",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Quantity"})}),(0,fe.jsx)(Ng.xI,{name:"data.quantity",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Ug,{error:t.error?.message,...n})},rules:{required:"Quantity is required"},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Unit of Weight"})}),(0,fe.jsx)(Ng.xI,{name:"data.unitOfWeight",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(gK,{onChange:e=>a("data.unitOfWeight",e.target.select),value:n.value,possibleOptions:["kg","t"],error:t.error?.message,placeholder:"Please select unit of weight"})},rules:{required:"Unit of Weight is required"},defaultValue:null,control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Number Of Containers"})}),(0,fe.jsx)(Ng.xI,{name:"data.numberOfContainers",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Treatment Process"})}),(0,fe.jsx)(Ng.xI,{name:"data.treatmentProcess",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(bN,{value:n.value,onChange:e=>a("data.treatmentProcess",e.target.select),error:t.error?.message})},rules:{required:"Treatment Process is required"},control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Act/Est"})}),(0,fe.jsx)(Ng.xI,{name:"data.accuracy",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{...n,options:[{value:gn.C.Act,label:gn.C.Act},{value:gn.C.Est,label:gn.C.Est}],error:t.error?.message})},rules:{required:"Act/Est is required"},control:i})]})}),(0,fe.jsxs)(JZ,{container:!0,itemAlign:"center",children:[(0,fe.jsx)("div",{style:{width:"50%"},children:"Do you want to add Financial data?"}),(0,fe.jsx)("div",{children:(0,fe.jsxs)(ie.fI,{container:!0,align:"center",children:[(0,fe.jsxs)(EZ,{item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:s,onChange:()=>c(!0)}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Yes"})})]}),(0,fe.jsxs)(EZ,{item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:!s,onChange:()=>c(!1)}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"No"})})]})]})})]}),(0,fe.jsxs)(qZ,{isVisible:s,children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Gate Fee"})}),(0,fe.jsx)(Ng.xI,{name:"financial.gateFee",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Management Fee"})}),(0,fe.jsx)(Ng.xI,{name:"financial.managementFee",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Bin Hire"})}),(0,fe.jsx)(Ng.xI,{name:"financial.binHire",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Bin Exchange Fee"})}),(0,fe.jsx)(Ng.xI,{name:"financial.binExchangeFee",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Lift Charge"})}),(0,fe.jsx)(Ng.xI,{name:"financial.liftCharge",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Labour Cost"})}),(0,fe.jsx)(Ng.xI,{name:"financial.labourCost",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Equipment Hire"})}),(0,fe.jsx)(Ng.xI,{name:"financial.equipmentHire",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Misc Cost"})}),(0,fe.jsx)(Ng.xI,{name:"financial.miscCost",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Misc Cost Rate"})}),(0,fe.jsx)(Ng.xI,{name:"financial.miscCostRate",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Transport Charge"})}),(0,fe.jsx)(Ng.xI,{name:"financial.transportCharge",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Rebate"})}),(0,fe.jsx)(Ng.xI,{name:"financial.rebate",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Penalty"})}),(0,fe.jsx)(Ng.xI,{name:"financial.penalty",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Currency"})}),(0,fe.jsx)(Ng.xI,{name:"financial.currency",render:e=>{let{field:n}=e;return(0,fe.jsx)(TK,{value:n.value,onChange:e=>a("financial.currency",e.target.select)})},control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Notes"})}),(0,fe.jsx)(Ng.xI,{name:"financial.notes",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:i})]})})]}),(0,fe.jsxs)(JZ,{container:!0,itemAlign:"center",children:[(0,fe.jsx)("div",{style:{width:"50%"},children:"Do you want to add any references?"}),(0,fe.jsx)("div",{children:(0,fe.jsxs)(ie.fI,{container:!0,align:"center",children:[(0,fe.jsxs)(EZ,{item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:d,onChange:()=>u(!0)}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Yes"})})]}),(0,fe.jsxs)(EZ,{item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:!d,onChange:()=>u(!1)}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"No"})})]})]})})]}),(0,fe.jsxs)(qZ,{isVisible:d,children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Waste Transfer Note ID"})}),(0,fe.jsx)(Ng.xI,{name:"reference.wasteTransferNote",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Consignment Note (SEPA) ID "})}),(0,fe.jsx)(Ng.xI,{name:"reference.consignmentNoteId",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Consignment Note (EA) ID"})}),(0,fe.jsx)(Ng.xI,{name:"reference.consignmentNoteEA",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Invoice Number"})}),(0,fe.jsx)(Ng.xI,{name:"reference.invoiceNumber",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Sales Order ID"})}),(0,fe.jsx)(Ng.xI,{name:"reference.salesOrder",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Reference"})}),(0,fe.jsx)(Ng.xI,{name:"reference.reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Evidence Reference"})}),(0,fe.jsx)(Ng.xI,{name:"reference.evidenceReference",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Other Reference"})}),(0,fe.jsx)(Ng.xI,{name:"reference.otherReference",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:i})]})})]}),e.children]})})};function ZZ(e){const{onSuccess:n,onDismiss:t,showModal:a,energyType:i}=e,[l,r]=(0,g.useState)(!1),[o,s]=(0,g.useState)(null),[d,c]=(0,g.useState)(null),{showNotification:u}=tn(),p=Je();return(0,fe.jsxs)(ie.aF,{span:5,size:"md",show:!0,name:"CreateWasteStream__Modal--create",dismissable:!0,onDismiss:t,children:[!l&&(0,fe.jsx)(WA,{onSuccess:function(e,t,a){let{id:i,name:l,locationPoint:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n("data.energySource",{id:i,name:l,locationPoint:r})},onError:u,showModal:a,accountId:p,defaultEnergyType:i,disableType:!0,onCreateClick:()=>r(!0),locationData:o,onMeterNameChange:c,createItem:{value:d}}),l&&(0,fe.jsx)(pC,{accountId:p,onSuccess:(e,n,t,a)=>{u(e,n),s(a),r(!1)}})]})}function XZ(e){const{form:n={},onSubmit:t=()=>{},dataSection:a}=e,{setValue:i,control:l,trigger:r,register:o,watch:s}=n,[d,c]=(0,g.useState)(!1),[u]=(0,g.useState)(n.getValues("data.currency")),p=lr(),m=Je(),{data:f,loading:y}=Ir(a),{data:h,loading:x}=Go(),T=p.data.find(e=>e.startsWith("createEnergySource"));(0,g.useEffect)(()=>{o("isReferenceDataRequired")},[o]);const[b]=s(["isReferenceDataRequired"]),v={"data.energySource":()=>c(!0)},C=e=>v[e]&&v[e](),k=e=>i("isReferenceDataRequired",e),S=function(){let{id:e,name:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:n,value:{id:e,name:n}}},N=function(){let{id:e,name:n,locationPoint:t,inOut:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:n,value:{id:e,name:n,locationPoint:t,inOut:a}}},A=f.map(N);T&&A.unshift({label:"Create new ...",value:{id:"createNew"}});const R=[{id:"ACT",name:"ACT"},{id:"EST",name:"EST"}].map(S),D=[{id:RZ,name:RZ},{id:DZ,name:DZ}].map(S),L=h.map(S),I={id:RZ,name:RZ},j=L.find(e=>e.label===u)?.value,w=y||x;return(0,fe.jsxs)(YZ,{onSubmit:e=>{let{data:n,financial:a,reference:i,...l}=e;const r={...l,data:{...n,accuracy:n?.accuracy?.name||"ACT",activity:n.activity.name,currency:a?.currency?.name||u}};b&&(r.data={...r.data,...i}),t(r)},form:n,showEndDate:!0,showTime:!0,children:[w&&(0,fe.jsx)(WZ,{}),!w&&(0,fe.jsxs)("div",{children:[d&&(0,fe.jsx)(ZZ,{energyType:a,onSuccess:(e,n)=>{const t=N(n);i(e,t),r(),c(!1)},onDismiss:c,showModal:d,accountId:m}),(0,fe.jsx)(ie.fI,{children:(0,fe.jsxs)(GZ,{children:["Please enter the following transactional ",a.toLowerCase()," data:"]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Meter Name"})}),(0,fe.jsx)(Ng.xI,{name:"data.energySource",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{...n,onCreateNew:C,mapper:N,options:A,error:t.error?.message})},rules:{required:"Meter Name is required"},defaultValue:null,control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Tariff (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.tariff",render:e=>{let{field:n}=e;return(0,fe.jsx)(NK,{...n,accountId:m,valueAsLabel:!0})},defaultValue:null,control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Quantity (kWh)"})}),(0,fe.jsx)(Ng.xI,{name:"data.quantity",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Ug,{...n,error:t.error?.message})},rules:{required:"Quantity is required"},control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Total Cost (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.totalCost",render:e=>{let{field:n}=e;return(0,fe.jsx)(Bg,{...n})},control:l,defaultValue:""})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Currency"})}),(0,fe.jsx)(Ng.xI,{name:"financial.currency",render:e=>{let{field:n}=e;return(0,fe.jsx)(HZ,{...n,mapper:S,options:L})},defaultValue:j,control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Act/Est (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.accuracy",render:e=>{let{field:n}=e;return(0,fe.jsx)(HZ,{...n,mapper:S,options:R})},defaultValue:null,control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Supplier (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.supplier",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(XF,{accountId:m,value:n.value,onChange:e=>i("data.supplier",e.target.select),error:t.error?.message,utility:a,isClearable:!0})},defaultValue:null,control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Charge/kWh (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.charge/kwh",render:e=>{let{field:n}=e;return(0,fe.jsx)(Ug,{...n})},defaultValue:"",control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Activity"})}),(0,fe.jsx)(Ng.xI,{name:"data.activity",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{...n,mapper:S,options:D,error:t.error?.message})},rules:{required:"Activity is required"},defaultValue:I,control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Comment (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.comment",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},control:l,defaultValue:""})]})}),(0,fe.jsxs)(JZ,{container:!0,itemAlign:"center",children:[(0,fe.jsx)("div",{style:{width:"50%"},children:"Do you want to add any references?"}),(0,fe.jsx)("div",{children:(0,fe.jsxs)(ie.fI,{container:!0,align:"center",children:[(0,fe.jsxs)(EZ,{item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:b,onChange:()=>k(!0)}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Yes"})})]}),(0,fe.jsxs)(EZ,{item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:!b,onChange:()=>k(!1)}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"No"})})]})]})})]}),(0,fe.jsxs)(qZ,{isVisible:b,children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Invoice Number (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"reference.invoiceNumber",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Evidence Reference (optional) "})}),(0,fe.jsx)(Ng.xI,{name:"reference.evidenceReference",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Other Reference (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"reference.otherReference",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:l})]})})]}),e.children]})]})}function eX(e){const{value:n,onChange:t,name:a,trigger:i=()=>{},mapper:l=()=>{},error:r,...o}=e;return(0,fe.jsx)(NA,{...o,name:a,createNewModalSize:4,onChange:function(){let{target:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t({name:e.select.label,id:e.select.value}),i()},value:n&&l(n),error:r,createNew:!0})}function nX(e){const{form:n={},onSubmit:t=()=>{},dataSection:a}=e,{setValue:i,control:l,watch:r,getValues:o,getFieldState:s,formState:d}=n,[c]=(0,g.useState)(n.getValues("data.currency")),{data:u,refetch:p}=_s(),m=Fs(),f=Ps(),{data:y}=Go(),h=Je(),[x]=r(["isReferenceDataRequired"]),T=(0,g.useCallback)(e=>i("isReferenceDataRequired",e),[i]),b=(0,g.useCallback)(()=>T(!0),[T]),v=(0,g.useCallback)(()=>T(!1),[T]),C=function(){let{id:e,name:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:n,value:{id:e,name:n}}},k=[{id:RZ,name:"Yes"},{id:DZ,name:"No"}].map(C),S=(0,g.useMemo)(()=>({id:"L",name:"L"}),[]),N=[S,{id:"t",name:"t"}].map(C),A=(0,g.useMemo)(()=>({id:"km",name:"km"}),[]),R=[A,{id:"mi",name:"mi"},{id:"passenger.km",name:"passenger.km"}].map(C),D=y.map(C),L=D.find(e=>e.label===c)?.value,I=n.getValues().data,j=!(I?.distance||I?.volume||I.journeyDistance),w=!(I?.distance||I?.freight||I.journeyDistance),O=!(I?.volume||I?.freight),E=I?.distance&&"Distance Unit is required",_=(0,g.useCallback)(()=>{const e=n.getValues().data.journeyDistance,t=n.getValues().data.numberOfJourneys;i("data.distance",e*t)},[n,i]),F=(0,g.useCallback)(e=>{i("data.numberOfJourneys",e),_()},[_,i]),P=(0,g.useCallback)(e=>{i("data.journeyDistance",e||null),_()},[_,i]),B=(0,g.useCallback)(e=>{i("data.type",e),i("data.subtype",null),p({typeId:e.id})},[p,i]),U=(0,g.useCallback)((e,n)=>{const{isTouched:t}=s(e,d);return{required:{value:t,message:n}}},[s,d]),$=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{id:"purposeOfJourneyLabel",children:"Purpose of Journey"})}),(0,fe.jsx)(Ng.xI,{name:"data.purpose",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{"aria-labelledby":"purposeOfJourneyLabel",mapper:C,options:m?.map(C),...n,error:t.error?.message})},rules:{required:"Purpose of Journey is required "},defaultValue:null,control:l})]})}),[l,m]),M=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{id:"accountHolderOwnedAndControlled",children:"Account holder’s owned and controlled vehicles"})}),(0,fe.jsx)(Ng.xI,{name:"data.activity",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{mapper:C,options:k,...n,"aria-labelledby":"accountHolderOwnedAndControlled",error:t.error?.message})},rules:{required:"Account holder's owned and controlled vehicles is required"},control:l})]})}),[k,l]),V=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{id:"locationLabel",children:"Location"})}),(0,fe.jsx)(Ng.xI,{name:"data.location",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(eX,{...n,mapper:C,labelledBy:"locationLabel",error:t.error?.message})},rules:{required:"Location is required"},defaultValue:null,control:l})]})}),[l]),G=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{id:"typeSelect",children:"Type"})}),(0,fe.jsx)(Ng.xI,{name:"data.type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{...n,onChange:e=>{n.onChange(e),B(e)},options:f?.map(C),mapper:C,"aria-labelledby":"typeSelect",error:t.error?.message})},rules:{required:"Type is required"},defaultValue:null,control:l})]})}),[l,f,B]),z=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{id:"subtypeSelect",children:"Subtype"})}),(0,fe.jsx)(Ng.xI,{name:"data.subtype",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{...n,mapper:C,options:f.find(e=>{let{id:n}=e;return n===I?.type.id})?.subtypes.map(C),"aria-labelledby":"subtypeSelect",error:t.error?.message})},rules:{required:"Subtype is required"},defaultValue:null,control:l})]})}),[f,I,l]),W=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{id:"fuelSelect",children:"Fuel Type"})}),(0,fe.jsx)(Ng.xI,{name:"data.fuelType",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{...n,error:t.error?.message,mapper:C,options:u?.map(C),"aria-labelledby":"fuelSelect"})},rules:{required:"Fuel Type is required"},defaultValue:null,control:l})]})}),[u,l]),q=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{id:"dataProviderSelect",children:"Data Provider (Optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.dataProvider",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(XF,{accountId:h,value:n.value,onChange:e=>i("data.dataProvider",e.target.select),error:t.error?.message,utility:gn.D_.Transport})},defaultValue:null,control:l})]})}),[l,i]),J=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{labelFor:"originOfTravel",children:"Origin of Travel"})}),(0,fe.jsx)(Ng.xI,{name:"data.origin",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(ie.ks,{id:"originOfTravel",...n,error:t.error?.message})},rules:{required:"Origin of Travel is required"},control:l,defaultValue:""})]})}),[l]),Y=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{labelFor:"destinationOfTravel",children:"Destination of Travel"})}),(0,fe.jsx)(Ng.xI,{name:"data.destination",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(ie.ks,{id:"destinationOfTravel",...n,error:t.error?.message})},control:l,defaultValue:"",rules:{required:"Destination of Travel is required"}})]})}),[l]),H=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsxs)(BZ,{children:[(0,fe.jsxs)(_Z,{labelFor:"fuelVolume",children:["Fuel Volume",w?"":" (optional)"]}),(0,fe.jsx)(FZ,{children:"If no Volume figure is entered you will need to provide a value for 'Journey Distance'"})]}),(0,fe.jsx)(Ng.xI,{name:"data.volume",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Ug,{...n,id:"fuelVolume",error:t.error?.message})},rules:{required:!!w&&"Fuel Volume is required"},defaultValue:null,control:l})]})}),[l,w]),K=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsxs)(_Z,{children:["Volume Unit ",!o("data.volume")&&"(optional)"]})}),(0,fe.jsx)(Ng.xI,{name:"data.volumeUnit",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{...n,mapper:C,options:N,error:t.error?.message})},defaultValue:S,control:l,rules:U("data.volumeUnit","Unit of Volume is required")})]})}),[l,S,U,o,N]),Q=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{labelFor:"numberOfJourneys",children:"Number of Journeys"})}),(0,fe.jsx)(Ng.xI,{name:"data.numberOfJourneys",control:l,defaultValue:1,rules:{required:!1},render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Bg,{...n,id:"numberOfJourneys",error:t.error?.message,onChange:e=>{n.onChange(e),F(e)}})}})]})}),[l,F]),Z=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsxs)(_Z,{labelFor:"journeyDistance",children:["Journey Distance",O?"":" (optional)"]})}),(0,fe.jsx)(Ng.xI,{name:"data.journeyDistance",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Ug,{...n,id:"journeyDistance",onChange:e=>{n.onChange(e),P(e)},error:t.error?.message})},rules:{required:O},defaultValue:null,control:l})]})}),[l,P,O]),X=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsxs)(_Z,{labelFor:"totalDistance",children:["Total Distance",O?"":" (optional)"]})}),(0,fe.jsx)(Ng.xI,{name:"data.distance",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Bg,{...n,id:"totalDistance",error:t.error?.message})},rules:{required:O},defaultValue:null,control:l})]})}),[l,O]),ee=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsxs)(_Z,{id:"distanceUnitLabel",children:["Distance Unit",E?"":" (optional)"]})}),(0,fe.jsx)(Ng.xI,{name:"data.distanceUnit",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{"aria-labelledby":"distanceUnitLabel",...n,mapper:C,options:R,error:t.error?.message})},defaultValue:A,control:l,rules:U("data.distance","Unit of Distance is required")})]})}),[l,A,R,U,E]),ne=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsxs)(_Z,{children:["Freight (tonne.km)",j?"":" (optional)"]})}),(0,fe.jsx)(Ng.xI,{name:"data.freight",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Ug,{...n,error:t.error?.message})},rules:{required:j},defaultValue:"",control:l})]})}),[l,j]),te=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsxs)(_Z,{children:["Carrier",I?.freight?"":" (optional)"]})}),(0,fe.jsx)(Ng.xI,{name:"data.carrier",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(ie.ks,{...n,error:t.error?.message})},control:l,defaultValue:"",rules:U("data.freight","Carrier is required")})]})}),[I?.freight,l,U]),ae=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Cost (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.cost",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Bg,{...n,error:t.error?.message})},control:l,defaultValue:""})]})}),[l]),le=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Currency"})}),(0,fe.jsx)(Ng.xI,{name:"financial.currency",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{...n,mapper:C,options:D,error:t.error?.message})},rules:{required:"Currency is required"},defaultValue:L,control:l})]})}),[l,L,D]),re=(0,g.useCallback)(()=>(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Notes (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.notes",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(ie.ks,{...n,error:t.error?.message})},control:l,defaultValue:""})]})}),[l]),oe=(0,g.useCallback)(()=>(0,fe.jsxs)(JZ,{container:!0,itemAlign:"center",children:[(0,fe.jsx)("div",{style:{width:"50%"},children:"Do you want to add any references?"}),(0,fe.jsx)("div",{children:(0,fe.jsxs)(ie.fI,{container:!0,align:"center",children:[(0,fe.jsxs)(EZ,{item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:x,onChange:b}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Yes"})})]}),(0,fe.jsxs)(EZ,{item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:!x,onChange:v}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"No"})})]})]})})]}),[v,x,b]),se=(0,g.useCallback)(()=>(0,fe.jsxs)(qZ,{isVisible:!0,children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Reference"})}),(0,fe.jsx)(Ng.xI,{name:"reference.reference",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(ie.ks,{...n,error:t.error?.message})},defaultValue:"",control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Document Reference"})}),(0,fe.jsx)(Ng.xI,{name:"reference.documentReference",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(ie.ks,{...n,error:t.error?.message})},defaultValue:"",control:l})]})})]}),[l]);return(0,fe.jsxs)(YZ,{onSubmit:e=>{let{data:n,financial:a,reference:i,...l}=e;const r={...l,data:{...n,activity:n.activity.id,location:n.location.name,type:n.type.name,subtype:n.subtype.name,fuelType:n.fuelType.name,volumeUnit:n.volume?n.volumeUnit?.name:null,distanceUnit:n.journeyDistance?n.distanceUnit?.name:null,dataProvider:n.dataProvider?n.dataProvider:null,purpose:n.purpose.name,currency:a?.currency?.name||c,volume:n.volume&&Number(n.volume),freight:n.freight&&Number(n.freight),distance:n.distance&&Number(n.distance),journeyDistance:n.journeyDistance&&Number(n.journeyDistance)}};x&&(r.data={...r.data,...i}),t(r)},form:n,showSubmitButton:!!r("data.activity"),children:[(0,fe.jsx)(ie.fI,{children:(0,fe.jsxs)(GZ,{children:["Please enter the following transactional ",a.toLowerCase()," data:"]})}),V(),$(),!!r("data.purpose")&&M(),!!r("data.activity")&&(0,fe.jsxs)(fe.Fragment,{children:[G(),!!r("data.type")&&z(),W(),q(),H(),!!r("data.volume")&&K(),J(),Y(),Q(),Z(),!!r("data.journeyDistance")&&X(),!!r("data.journeyDistance")&&ee(),ne(),te(),ae(),le(),re(),oe(),x&&se(),e.children]})]})}function tX(e){const{form:n,onSubmit:t=()=>{},dataSection:a}=e,{setValue:i,control:l,trigger:r,register:o,watch:s}=n,[d,c]=(0,g.useState)(!1),[u]=(0,g.useState)(n.getValues("data.currency")),p=Je(),m=lr(),{data:f,loading:y}=Ir(a),{data:h,loading:x}=Go(),T=m.data.find(e=>e.startsWith("createEnergySource"));(0,g.useEffect)(()=>{o("isReferenceDataRequired")},[o]);const[b]=s(["isReferenceDataRequired"]),v={"data.energySource":()=>c(!0)},C=e=>v[e]&&v[e](),k=e=>i("isReferenceDataRequired",e),S=e=>{let{id:n,name:t}=e;return{label:t,value:{id:n,name:t}}},N=e=>{let{id:n,name:t,locationPoint:a,inOut:i}=e;return{label:t,value:{id:n,name:t,locationPoint:a,inOut:i}}},A=(0,g.useMemo)(()=>[{id:gn.C.Act,name:gn.C.Act},{id:gn.C.Est,name:gn.C.Est}].map(S),[S]),R=f.map(N);T&&R.unshift({label:"Create new ...",value:{id:"createNew"}});const D=h.map(S),L={id:gn.C.Act,name:gn.C.Act},I=D.find(e=>e.label===u)?.value,j=y||x,w=()=>{const e=n.getValues().data?.totalCost||0,t=n.getValues().data?.quantity||0;e>0&&t>0&&i("data.tariff",e/t)},O=()=>{const e=n.getValues().data?.tariff||0,t=n.getValues().data?.quantity||0;e>0&&t>0&&i("data.totalCost",e*t)};return(0,fe.jsxs)(YZ,{onSubmit:e=>{let{data:n,financial:a,reference:i,...l}=e;const r={...l,data:{...n,accuracy:n?.accuracy?.name||"ACT",currency:a?.currency?.name||u}};b&&(r.data={...r.data,...i}),t(r)},form:n,showEndDate:!0,children:[j&&(0,fe.jsx)(WZ,{}),!j&&(0,fe.jsxs)("div",{children:[d&&(0,fe.jsx)(ZZ,{energyType:a,onSuccess:(e,n)=>{const t=N(n);i(e,t),r(),c(!1)},onDismiss:c,showModal:d,accountId:p}),(0,fe.jsx)(ie.fI,{children:(0,fe.jsxs)(GZ,{children:["Please enter the following transactional ",a.toLowerCase()," data:"]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Meter Name"})}),(0,fe.jsx)(Ng.xI,{name:"data.energySource",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{onCreateNew:C,mapper:N,options:R,error:t.error?.message,...n})},rules:{required:"Meter Name is required"},control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Reading (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.reading",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Bg,{...n,error:t.error?.message})},defaultValue:"",control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Supplier (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.supplier",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(XF,{accountId:p,value:n.value,onChange:e=>i("data.supplier",e.target.select),error:t.error?.message,utility:gn.D_.Water})},control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Quantity (m3)"})}),(0,fe.jsx)(Ng.xI,{name:"data.quantity",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Ug,{...n,error:t.error?.message,onChange:e=>{n.onChange(e),(e=>{i("data.quantity",e),w(),O()})(e)}})},rules:{required:"Quantity is required"},defaultValue:"",control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Act/Est"})}),(0,fe.jsx)(Ng.xI,{name:"data.accuracy",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{...n,mapper:S,options:A,error:t.error?.message})},rules:{required:"Act/Est is required"},defaultValue:L,control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Tariff (cost per m3) (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.tariff",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Bg,{...n,error:t.error?.message,onChange:e=>{n.onChange(e),(e=>{i("data.tariff",e),O()})(e)}})},defaultValue:"",control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Total Cost (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.totalCost",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Bg,{...n,error:t.error?.message,onChange:e=>{n.onChange(e),(e=>{i("data.totalCost",e),w()})(e)}})},defaultValue:"",control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Currency"})}),(0,fe.jsx)(Ng.xI,{name:"financial.currency",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(HZ,{...n,mapper:S,options:D,error:t.error?.message})},rules:{required:"Currency is required"},defaultValue:I,control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Comment (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"data.comment",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},control:l,defaultValue:""})]})}),(0,fe.jsxs)(JZ,{container:!0,itemAlign:"center",children:[(0,fe.jsx)("div",{style:{width:"50%"},children:"Do you want to add any references?"}),(0,fe.jsx)("div",{children:(0,fe.jsxs)(ie.fI,{container:!0,align:"center",children:[(0,fe.jsxs)(EZ,{item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:b,onChange:()=>k(!0)}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Yes"})})]}),(0,fe.jsxs)(EZ,{item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:!b,onChange:()=>k(!1)}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"No"})})]})]})})]}),(0,fe.jsxs)(qZ,{isVisible:b,children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Invoice Number (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"reference.invoiceNumber",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Evidence Reference (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"reference.evidenceReference",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:l})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Other Reference (optional)"})}),(0,fe.jsx)(Ng.xI,{name:"reference.otherReference",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},defaultValue:"",control:l})]})})]}),e.children]})]})}function aX(e){let{value:n,error:t,name:a,placeholder:i,isMulti:l,onChange:r,disabled:o}=e;const{allCountries:s}=Bo(),d=(0,g.useMemo)(()=>xn()(s).map(e=>({value:e.id,label:e.name})).orderBy(["label"],["asc"]),[s]);return(0,fe.jsx)(ie.l6,{isMulti:l,name:a,placeholder:i||"Please select the country",value:n,options:d,error:t,onChange:r,isDisabled:o})}const iX=e=>{let{name:n,value:t,error:a,label:i,onChange:l,disabled:r,placeholder:o}=e;const{allCountries:s,loading:d,error:c}=Bo(),u=a||c,p=u instanceof zS.K4?u.message:u,m=(0,g.useMemo)(()=>xn()(s).map(e=>({value:e.id,label:e.name})).orderBy(["label"],["asc"]).value(),[s]);return(0,fe.jsx)(f.Select,{name:n,placeholder:o||"Please select the country",value:t,label:i,isLoading:d,helperText:p??"",options:m,error:!!u,onChange:e=>l(e),disabled:r})},lX="Either Hotel nights either Home working days are required";function rX(e){let{form:n,onSubmit:t,children:a}=e;const{control:i,setValue:l}=n,r=Je(),[o,s]=(0,g.useState)(!1),d=()=>s(e=>!e),c=n.getValues(),u=(0,g.useCallback)(e=>{let{data:n,...a}=e;const i={...a,data:n};t(i)},[t]);return(0,fe.jsxs)(YZ,{onSubmit:u,form:n,showEndDate:!0,children:[(0,fe.jsx)(ie.fI,{children:(0,fe.jsx)(GZ,{children:"Please enter the following transactional hotel stays data:"})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Location",children:(0,fe.jsx)(Ng.xI,{name:"data.location",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(NA,{value:n.value,onChange:e=>l("data.location",e.target.select),error:t.error?.message})},rules:{required:"Location is required"},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Hotel stay / Home working country",children:(0,fe.jsx)(Ng.xI,{name:"data.country",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(aX,{value:n.value,onChange:e=>l("data.country",e.target.select),error:t.error?.message})},rules:{required:"Country is required"},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Hotel nights",children:(0,fe.jsx)(Ng.xI,{name:"data.hotelNights",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Bg,{...n,error:t.error?.message})},rules:{required:!c.data?.homeWorkingDays&&lX},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Home working days",children:(0,fe.jsx)(Ng.xI,{name:"data.homeWorkingDays",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Bg,{...n,error:t.error?.message})},rules:{required:!c.data?.hotelNights&&lX},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Data provider",children:(0,fe.jsx)(Ng.xI,{name:"data.dataProvider",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(XF,{accountId:r,value:n.value,onChange:e=>l("data.dataProvider",e.target.select),error:t.error?.message,utility:gn.D_.Hotelstays})},rules:{required:"Data provider is required"},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Electricity tariff (optional)",children:(0,fe.jsx)(Ng.xI,{name:"data.electricityTariff",render:e=>{let{field:n}=e;return(0,fe.jsx)(NK,{accountId:r,value:n.value,onChange:e=>l("data.electricityTariff",e.target.select)})},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Total cost (optional)",children:(0,fe.jsx)(Ng.xI,{name:"data.totalCost",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Bg,{...n,error:t.error?.message})},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Currency (optional)",children:(0,fe.jsx)(Ng.xI,{name:"data.currency",render:e=>{let{field:n}=e;return(0,fe.jsx)(TK,{value:n.value,onChange:e=>l("data.currency",e.target.select)})},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Notes (optional)",children:(0,fe.jsx)(Ng.xI,{name:"data.notes",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},control:i})})}),(0,fe.jsxs)(ie.hh.Row,{children:[(0,fe.jsx)(ie.hh.Column,{span:6,children:"Do you want to add any references?"}),(0,fe.jsx)(ie.hh.Column,{span:3,children:(0,fe.jsxs)(ie.fI,{container:!0,item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:o,onChange:d}),(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{children:"Yes"})})]})}),(0,fe.jsx)(ie.hh.Column,{span:3,children:(0,fe.jsxs)(ie.fI,{container:!0,item:!0,children:[(0,fe.jsx)(ie.Sc,{size:"md",checked:!o,onChange:d}),(0,fe.jsx)(_Z,{children:"No"})]})})]}),(0,fe.jsxs)(qZ,{isVisible:o,children:[(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Reference (optional)",children:(0,fe.jsx)(Ng.xI,{name:"data.reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Invoice number (optional)",children:(0,fe.jsx)(Ng.xI,{name:"data.invoiceNumber",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Evidence reference (optional)",children:(0,fe.jsx)(Ng.xI,{name:"data.evidenceReference",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},control:i})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Other reference (optional)",children:(0,fe.jsx)(Ng.xI,{name:"data.otherReference",render:e=>{let{field:n}=e;return(0,fe.jsx)(ie.ks,{...n})},control:i})})})]}),a]})}const oX=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`;function sX(e){const{onDismiss:n=()=>{},onComplete:t=()=>{},onError:a=()=>{},dataSection:i}=e,[l,r]=(0,g.useState)(!0),[o,s]=(0,g.useState)(!1),[d,c]=(0,g.useState)(!1),[u,p]=(0,g.useState)(),m=(0,Ng.mN)({mode:"onSubmit",reValidateMode:"onBlur",defaultValues:{data:{currency:"GBP"}}}),{reset:f,control:y}=m;(0,g.useEffect)(()=>()=>{f()},[]);const h=()=>{r(!0),s(!1),c(!1)},x=()=>n(),T=(e=>{switch(e){case gn.D_.Waste:return QZ;case gn.D_.Electricity:case gn.D_.Gas:case gn.D_.Heatsteam:return XZ;case gn.D_.Water:return tX;case gn.D_.Transport:return nX;case gn.D_.Hotelstays:return rX;default:throw new Error(`Undefined section: ${e}`)}})(i);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.aF,{show:l,size:"md",onDismiss:x,children:(0,fe.jsx)(oX,{children:(0,fe.jsxs)(T,{form:m,onSubmit:e=>{p(e),r(!1),s(!0),c(!1)},dataSection:i,children:[(0,fe.jsx)(ie.fI,{children:(0,fe.jsx)(GZ,{children:"Upload Reference"})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(OZ,{item:!0,children:[(0,fe.jsx)(PZ,{children:(0,fe.jsx)(_Z,{labelFor:"uploadReference",children:"Please input a description to this upload which will be used to identify it in the Upload log. This could be your organisation name, relevant tag, department, region, or location."})}),(0,fe.jsx)(Ng.xI,{name:"uploadReference",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(ie.ks,{id:"uploadReference",...n,error:t.error?.message})},defaultValue:"",control:y,rules:{required:"Upload Reference is required",maxLength:80}})]})})]})})}),(0,fe.jsx)(ie.aF,{show:o,onDismiss:h,size:"xl",children:(0,fe.jsx)(oX,{children:(0,fe.jsx)(NZ,{formData:u,onBack:h,onConfirm:()=>{r(!1),s(!1),c(!0)},dataSection:i})})}),(0,fe.jsx)(ie.aF,{show:d,onDismiss:x,size:"lg",children:(0,fe.jsx)(oX,{children:(0,fe.jsx)(IZ,{formData:u,onUploadCompleted:()=>{r(!1),s(!1),c(!1),t(),n()},onError:e=>{h(),a(e)},dataSection:i})})})]})}(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`,le.default.div`
  text-align: center;
  margin: ${e=>e.theme.geometry.md.spacing};
`;const dX=S.J1`
  query GetOcrDataForAccount($accountId: String!, $utility: OcrUtility!) {
    getOcrDataForAccount(accountId: $accountId, utility: $utility) {
      id
      accountId
      fileName
      uploadedAt
      uploadedBy {
        first_name
        last_name
      }
      utility
      meterName
      invoiceNumber
      quantity
      startDate
      endDate
      totalCost
      tariff
      reading
    }
  }
`,cX=S.J1`
  mutation MarkAsreviewed($id: ID!) {
    markOcrDataAsReviewed(id: $id)
  }
`,uX=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,pX=le.default.div`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: ${e=>e.theme.geometry.md.spacing};
  z-index: 1000;
`,mX=S.J1`
  mutation InitiateDromoUpload(
    $transactionType: TransactionType!
    $accountId: ID!
    $fileName: String!
    $dromoId: ID!
    $isDirectActivity: Boolean
  ) {
    initiateDromoUpload(
      transactionType: $transactionType
      accountId: $accountId
      fileName: $fileName
      dromoId: $dromoId
      isDirectActivity: $isDirectActivity
    )
  }
`,fX=S.J1`
  query GetDromoSchema($transactionType: TransactionType!, $accountId: ID!) {
    getDromoSchema(transactionType: $transactionType, accountId: $accountId)
  }
`;function yX(e){return e?JSON.parse(e):{fields:[],data:{}}}const gX=t.p+"gas-template-911bc6b53c57aeee5ca1.xlsx",hX=t.p+"electricity-template-23c4f6d86b3b9221c524.xlsx",xX=t.p+"heatsteam-template-a90d2d97a54543f099de.xlsx",TX=e=>(e=>Uq({strategy:"allow",...e}))({records:e,fields:["estimates scenario"],condition:e=>["act/est","accuracy"].some(n=>["est","estimate"].includes(e[n]?.value.toLowerCase())),message:'"Estimates Scenario" must be empty when "Act/Est" is set to any value other than \'EST\'.'}),bX=[De("REACT_APP_BASE_URL"),gX].join(""),vX=[De("REACT_APP_BASE_URL"),hX].join(""),CX=[De("REACT_APP_BASE_URL"),xX].join("");function kX(e,n){const t=e?.metersConfig?.map(e=>({meterId:e.meterId,isReadingMeter:e.readingMeter||!1}))||[];return{...NC,bulkRowHooks:[e=>Oq(["start date (dd/mm/yyyy)","end date (dd/mm/yyyy)"],e),t.length>0?e=>Mq(t,e,n):e=>Eq([n,"reading"],e),TX]}}const SX=t.p+"advanced-hotel-stays-template-620eebbb6672b6984cd6.xlsx",NX="Hotel Stays & Home Working",AX=[De("REACT_APP_BASE_URL"),SX].join("");const RX=t.p+"materials-template-754e70e397116b45ec27.xlsx",DX="Materials",LX=[De("REACT_APP_BASE_URL"),RX].join(""),IX=t.p+"refrigerants-template-cb3d1ec11c310adc2456.xlsx",jX="Refrigerants & Other Gases",wX=[De("REACT_APP_BASE_URL"),IX].join(""),OX=t.p+"water-template-13050fdcfcef30382329.xlsx",EX="Water",_X=[De("REACT_APP_BASE_URL"),OX].join(""),FX=t.p+"transport-template-ab53f153c036691e288a.xlsx",PX="Transport",BX=[De("REACT_APP_BASE_URL"),FX].join(""),UX=t.p+"fuel-template-cea3b5511a4b2b2a6c8b.xlsx",$X="Fuel",MX=[De("REACT_APP_BASE_URL"),UX].join(""),VX=t.p+"waste-template-c8a79ef1c4e9a08943f5.xlsx",GX=t.p+"waste-template-with-project-phase-13808e4d14c9a77687db.xlsx",zX="Waste",WX="Investment Transactions",qX=t.p+"oil-production-template-5fe777093b4fb664a85f.xlsx",JX=[De("REACT_APP_BASE_URL"),qX].join(""),YX={...NC,bulkRowHooks:[]},HX=t.p+"sales-data-template-a50d5457ec095de10159.xlsx",KX=[De("REACT_APP_BASE_URL"),HX].join(""),QX={...NC,bulkRowHooks:[]},ZX=t.p+"s3c1-activity-based-materials-template-32618e8126e62ba03ca8.xlsx",XX=[De("REACT_APP_BASE_URL"),ZX].join("");function e0(e,n){const t=n.region?.value||n.country?.value||"Global",a=n["factor set"]?.value,i=n["end date (dd/mm/yyyy)"]?.value&&bn()(n["end date (dd/mm/yyyy)"]?.value,"DD/MM/YYYY").isValid()?Number(bn()(n["end date (dd/mm/yyyy)"]?.value,"DD/MM/YYYY").format("YYYY")):0,l="Materials",r=n["material type"]?.value,o=n["subtype 1"]?.value,s=n["subtype 2"]?.value,d=n["subtype 3"]?.value;return Object.entries(n).map(n=>{let[c,u]=n;try{if("country"===c)return u.selectOptions=Object.keys(e[i]||{}).map(e=>({value:e,label:e})),[c,u];if("factor set"===c)return u.selectOptions=Object.keys(e[i]?.[t]||{}).map(e=>({value:e,label:e})),[c,u];if("material type"===c)return u.selectOptions=Object.keys(e[i]?.[t]?.[a]?.[l]||{}).map(e=>({value:e,label:e})),[c,u];if("subtype 1"===c)return u.selectOptions=Object.keys(e[i]?.[t]?.[a]?.[l]?.[r]||{}).map(e=>({value:e,label:e})),[c,u];if("subtype 2"===c)return u.selectOptions=Object.keys(e[i]?.[t]?.[a]?.[l]?.[r]?.[o]?.subtypes2||{}).map(e=>({value:e,label:e})),[c,u];if("subtype 3"===c)return u.selectOptions=Object.keys(e[i]?.[t]?.[a]?.[l]?.[r]?.[o]?.subtypes2?.[s]?.subtypes3||{}).map(e=>({value:e,label:e})),[c,u];if("weight unit"===c){let n={};const p=e[i]?.[t]?.[a]?.[l]?.[r]?.[o];return s||d||!p||(n=p.fromUnits),s&&!d&&p?.subtypes2?.[s]&&(n=p.subtypes2[s].fromUnits),s&&d&&p?.subtypes2?.[s]?.subtypes3?.[d]&&(n=p.subtypes2[s].subtypes3[d]),u.selectOptions=Object.keys(n).map(e=>({value:e,label:e})),[c,u]}}catch{return u.selectOptions=[],[c,u]}return[c,u]}).reduce((e,n)=>{let[t,a]=n;return e[t]=a,e},{})}const n0={message:"This field is required.",level:"error"};function t0(e){for(const n of["subtype 2","subtype 3"]){const t=e.row[n];t&&(t.selectOptions&&t.selectOptions.length>0&&!jV(t.resultValue)?LV(n0,e,[n]):IV(e,[n]))}}const a0="Activity based materials";const i0=t.p+"s3c1-spend-based-materials-template-1fa614a7ae117096787b.xlsx",l0=[De("REACT_APP_BASE_URL"),i0].join(""),r0="Spend based materials";const o0=t.p+"liquid-fuels-template-a295e1323c29323a4de5.xlsx",s0=[De("REACT_APP_BASE_URL"),o0].join(""),d0="Liquid Fuels";function c0(e,n,t){const a=zo();switch(e){case gn.D_.Refrigerant:return{...NC,settings:{...NC.settings,importIdentifier:jX,title:`Upload ${jX}`,uploadStep:{...NC.settings.uploadStep,helpText:SC(wX)}},bulkRowHooks:[TX]};case gn.D_.Hotelstays:return{...NC,settings:{...NC.settings,importIdentifier:NX,title:`Upload ${NX}`,uploadStep:{...NC.settings.uploadStep,helpText:SC(AX)}},bulkRowHooks:[e=>function(e,n){return n.map(n=>{const t={...n};return e.some(e=>{const t=n.row[e].resultValue;return"number"==typeof t&&!Number.isNaN(t)&&t>0})?IV(n,e):e.forEach(n=>{LV({message:`At least one of ${e.join(", ")} should have a value greater than 0.`,level:"error"},t,[n])}),t})}(["hotel nights","home working days"],e),e=>Oq(["start date (dd/mm/yyyy)","end date (dd/mm/yyyy)"],e),TX]};case gn.D_.Materials:return function(e){return{...NC,settings:{...NC.settings,importIdentifier:DX,title:`Upload ${DX}`,uploadStep:{...NC.settings.uploadStep,helpText:SC(LX)}},bulkRowHooks:[n=>Bq(e?.materialMaterialOrigin,["material","origin"],n),TX]}}(n);case gn.D_.Electricity:return function(e){return{...kX(e,"quantity (kwh)"),settings:{...NC.settings,importIdentifier:"Electricity",title:"Upload Electricity",uploadStep:{...NC.settings.uploadStep,helpText:SC(vX)}}}}(n);case gn.D_.Gas:return function(e){return{...kX(e,"quantity (kwh)"),settings:{...NC.settings,importIdentifier:"Gas",title:"Upload Gas",uploadStep:{...NC.settings.uploadStep,helpText:SC(bX)}}}}(n);case gn.D_.Heatsteam:return function(e){return{...kX(e,"quantity (kwh)"),settings:{...NC.settings,importIdentifier:"Heat & Steam",title:"Upload Heat & Steam",uploadStep:{...NC.settings.uploadStep,helpText:SC(CX)}}}}(n);case gn.D_.Water:return function(e){const n=e?.metersConfig?.map(e=>({meterId:e.meterId,isReadingMeter:e.readingMeter||!1}))||[];return{...NC,settings:{...NC.settings,importIdentifier:EX,title:`Upload ${EX}`,uploadStep:{...NC.settings.uploadStep,helpText:SC(_X)}},bulkRowHooks:[e=>Oq(["start date (dd/mm/yyyy)","end date (dd/mm/yyyy)"],e),n.length>0?e=>Mq(n,e,"quantity (m3)"):e=>Eq(["quantity (m3)","reading"],e),TX]}}(n);case gn.D_.Transport:return function(e){return{...NC,settings:{...NC.settings,importIdentifier:PX,title:`Upload ${PX}`,uploadStep:{...NC.settings.uploadStep,helpText:SC(BX)}},bulkRowHooks:[e=>_q([["volume","unit of volume"],["freight (tonne.km)","carrier"],["total distance","unit of distance"],["journey distance","unit of distance"]],e),e=>Eq(["volume","freight (tonne.km)","journey distance","total distance"],e),n=>Bq(e?.typeSubType,["type","subtype"],n),n=>Bq(e?.subTypeFuelType,["subtype","fuel type"],n),n=>Bq(e?.typeSubTypeFuelTypeVolumeDistanceUnit.map(e=>({...e,"unit of distance":e["unit of volume"]})),["type","subtype","fuel type",["unit of volume","unit of distance"]],n),TX]}}(n);case gn.D_.Fuel:return function(e){return{...NC,settings:{...NC.settings,importIdentifier:$X,title:`Upload ${$X}`,uploadStep:{...NC.settings.uploadStep,helpText:SC(MX)}},bulkRowHooks:[n=>Bq(e?.fuelTypeQuantityUnit,["quantity units","fuel type"],n),e=>_q([["total cost","currency"]],e),TX]}}(n);case gn.D_.Waste:return function(e){const n=e?.accessControls.customFields?.includes("WasteTransaction.projectPhase"),t=[De("REACT_APP_BASE_URL"),n?GX:VX].join("");return{...NC,settings:{...NC.settings,importIdentifier:zX,title:`Upload ${zX}`,uploadStep:{...NC.settings.uploadStep,helpText:SC(t)}},bulkRowHooks:[TX]}}(a);case gn.D_.Investment:return{...NC,settings:{...NC.settings,importIdentifier:WX,title:`Upload ${WX}`,templateDownloadFilename:"investment-transactions.csv"}};case gn.D_.Oil:return{...YX,settings:{...NC.settings,importIdentifier:"Oil",title:"Upload Production",uploadStep:{...NC.settings.uploadStep,helpText:SC(JX)}}};case gn.D_.Oilgassales:return{...QX,settings:{...NC.settings,importIdentifier:"OILGASSALES",title:"Upload Sales Data",uploadStep:{...NC.settings.uploadStep,helpText:SC(KX)}}};case gn.D_.S3C1Activitybasedmaterial:return function(e){return{...NC,settings:{...NC.settings,importIdentifier:a0,title:`Upload ${a0}`,uploadStep:{...NC.settings.uploadStep,helpText:SC(XX)},reviewStep:{...NC.settings.reviewStep,helpText:"Please complete the fields from left to right for the dropdown options to load properly. If there are no options available, it could mean that for the current input there are no matching emission factors. In many cases for Subtype 3 there are no options available even with correct inputs - in these cases it should be skipped."}},bulkRowHooks:[n=>function(e,n){return e.map(e=>{const t={...e,region:"Global"};return t.row=e0(n,t.row),t0(t),t})}(n,e),TX]}}(t);case gn.D_.S3C1Spendbasedmaterial:return function(e){return{...NC,settings:{...NC.settings,importIdentifier:r0,title:`Upload ${r0}`,uploadStep:{...NC.settings.uploadStep,helpText:SC(l0)},reviewStep:{...NC.settings.reviewStep,helpText:"Please complete the fields from left to right for the dropdown options to load properly. If there are no options available, it could mean that for the current input there are no matching emission factors. In many cases for Subtype 3 there are no options available even with correct inputs - in these cases it should be skipped."}},bulkRowHooks:[n=>function(e,n){return e.map(e=>{const t={...e};return t.row=e0(n,t.row),t0(t),t})}(n,e),TX]}}(t);case gn.D_.Liquidfuel:return{...NC,bulkRowHooks:[],settings:{...NC.settings,importIdentifier:d0,title:`Upload ${d0}`,uploadStep:{...NC.settings.uploadStep,helpText:SC(s0)}}};default:throw new Error(`No dromo configuration for ${e}`)}}const u0=e=>{let{transactionType:n,showDromoButton:t}=e;const{showNotification:a}=tn(),i=zo(),l=Je(),r=Yo(),[o]=(0,ln.n)(mX),s=Xd(),d=(0,g.useRef)(null),[c,u]=(0,g.useState)(!1),[p,m]=(0,g.useState)(!1),[f,y]=(0,g.useState)(!1),[h,T]=(0,g.useState)(!1),b=(0,g.useMemo)(()=>$Q[n]&&!f,[f,n]),{data:v,loading:C,error:k,refetch:S}=(0,x.IT)(fX,{variables:{transactionType:n,accountId:l},notifyOnNetworkStatusChange:!0,onError:()=>{a(`Could not retrieve Dromo Schema for ${n}`,"danger")}}),{fields:N,data:A}=yX(v?.getDromoSchema),R=c0(n,A),D=(0,g.useCallback)((e,t)=>{const a=`${n}_${(new Date).toISOString()}`;o({variables:{transactionType:n,accountId:l,fileName:t.filename||a,dromoId:t.id,isDirectActivity:p}}),y(!1)},[l,o,p,n]);(0,g.useEffect)(()=>{!b&&h&&d.current?.open()},[h,f,b,d,v]);const L=De("REACT_APP_DROMO_LICENSE_KEY");if(!L)return a("Dromo license key not found","danger"),null;if(!R)return null;R.fields=N;const I={id:r?.id||"",name:`${r?.first_name} ${r?.last_name}`,email:r?.email,companyId:l,companyName:i?.name},j=()=>(0,fe.jsx)(uX,{inline:!0,name:"DromoUploaderButton__uploadDataButton",component:"button",onClick:()=>{k?S():C||(u(!0),T(!0))},children:"Upload Data"});return b||C?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(j,{}),b&&(0,fe.jsx)(ie.aF,{show:c,size:"lg",height:"fit-content",onDismiss:()=>u(!1),children:(0,fe.jsx)(qQ,{onConfirm:e=>{m(e),u(!1),y(!0)},type:n})}),C&&(0,fe.jsx)(pX,{children:(0,fe.jsx)(ie.Ip,{})})]}):(0,fe.jsx)(vC.A,{licenseKey:L,settings:R.settings,fields:R.fields,user:I,style:t?R.style:{display:"none"},onResults:s?D:()=>{},onCancel:()=>y(!1),ref:d,bulkRowHooks:R.bulkRowHooks,children:"Upload Data"})},p0=le.default.div`
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background-color: red;
  top: 0px;
  right: 0px;
  font-size: 10px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
`,m0=e=>{let{count:n}=e;return(0,fe.jsx)(p0,{children:n})},f0=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,y0=le.default.div`
  position: relative;
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,g0=(0,le.default)(ie.fI)`
  flex: 0 1 auto;
`,h0=$u(e=>{const n=(0,m.zy)(),t=(0,g.useMemo)(()=>n.pathname.startsWith("/v2"),[n]),{dataSection:a,onFileUploadClick:i=()=>{},onDirectUploadClick:l=()=>{},permissions:r,onOcrClick:o,allowOcr:s,gridApi:d,isDirectActivityValue:c}=e,u=function(e){switch(e){case gn.D_.Hotelstays:return"Hotel Stays";case gn.D_.Heatsteam:return"Heat and Steam";case gn.D_.Oilgassales:return"Sales Data";default:return hn.capitalize(e)}}(a),p=zo(),f=p?.id,{data:y}=(0,x.IT)(dX,{variables:{accountId:f,utility:u.toUpperCase()},pollInterval:3e3,skip:!s}),h=y?.getOcrDataForAccount.length,T=[gn.D_.Waste,gn.D_.Electricity,gn.D_.Gas,gn.D_.Transport,gn.D_.Water,gn.D_.Heatsteam,gn.D_.Hotelstays],b=[gn.D_.Fuel,gn.D_.Materials],v=[gn.D_.Refrigerant,gn.D_.Hotelstays,gn.D_.Electricity,gn.D_.Gas,gn.D_.Heatsteam,gn.D_.Materials,gn.D_.Water,gn.D_.Transport,gn.D_.Fuel,gn.D_.Waste,gn.D_.Investment,gn.D_.Oil,gn.D_.Liquidfuel,gn.D_.Oilgassales],C=r.data.find(e=>e.startsWith("createImportBatch")),k=p?.accessControls?.dromoUpload||!1,S=v.includes(a)&&k&&C,N=[...T].includes(a),A=[...T,...b].includes(a)&&!S&&C,R=`${u} Data Uploads`,D=(0,g.useMemo)(()=>[{title:"Data",to:".."},{title:R}],[R]);return(0,fe.jsx)(xV,{name:"Uploads",title:R,breadcrumbs:D,icon:"chart-line",iconColor:"quaternary",children:(0,fe.jsxs)(g0,{container:!0,distribution:"center",vdistribution:"center",itemAlign:"center",children:[(0,fe.jsx)(qg,{inline:!0,gridApi:d?.api}),(0,fe.jsxs)(f0,{inline:!0,component:"routerLink",color:"info",to:`../${(e=>{switch(e){case gn.D_.Refrigerant:return"refrigerants";case gn.D_.Heatsteam:return"heatSteam";case gn.D_.Hotelstays:return"hotelStays";case gn.D_.Oilgassales:return"salesData";default:return e.toLowerCase()}})(a)}/view`,children:["View ",u," Transactions"]}),s&&!!r.ocr.find(e=>e.startsWith("getData"))&&(0,fe.jsxs)(y0,{children:[(0,fe.jsx)(ie.$n,{inline:!0,component:"routerLink",color:"info",to:"ocr",children:"Review OCR"}),!!h&&h>0&&(0,fe.jsx)(m0,{count:h})]}),!t&&!!r.data.find(e=>e.startsWith("createImportBatch"))&&N&&(0,fe.jsx)(f0,{inline:!0,name:"DataUploadContainer__directDataUploadButton",component:"button",onClick:l,children:"Direct Data Upload"}),s&&!!r.ocr.find(e=>e.startsWith("uploadDocument"))&&(0,fe.jsx)(f0,{inline:!0,name:"DataUploadContainer__uploadInvoiceButton",component:"button",onClick:o,children:"Upload Invoice"}),S&&(0,fe.jsx)(u0,{transactionType:a,isDirectActivity:c,showDromoButton:S}),A&&(0,fe.jsx)(f0,{inline:!0,name:"DataUploadContainer__uploadButton",component:"button",onClick:i,children:"Upload Data"})]})})}),x0=e=>{let{onDismiss:n,rollBackFunction:t}=e;return(0,fe.jsx)(ie.aF,{name:"wasteDataUploadContainer__uploadModal",size:"sm",show:!0,dismissable:!0,onDismiss:n,height:"auto",maxHeight:"90vh",children:(0,fe.jsx)(Hy,{name:"confirmRollback",notification:{show:!1},headingText:"Start Rollback",bodyText:"Are you sure you want to roll back this data?",onConfirmAction:()=>{t(),n()},onCancelAction:n})})},T0=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
  width: 100%;
`,b0=(0,le.default)(ie.h$)`
  min-height: 40vh;
  display: flex;
  flex: 1;
  & > div {
    width: 100%;
  }
`,v0=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
`,C0=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`;function k0(e){let{onComplete:n,dataSection:t}=e;const a=Je(),{token:i}=qe(),[l,r]=(0,g.useState)(null),[o,s]=(0,g.useState)(!1),{data:d,loading:c}=(0,x.IT)(aZ),[u,{error:p,loading:m}]=(0,ln.n)(tZ),f=ol(),[y,{error:h,loading:T}]=(0,ln.n)(fj),b=async(e,n)=>{const t=e[0],a=new FileReader;a.readAsDataURL(t),a.onload=()=>{const e={name:t.name,type:t.type,base64:a.result.split(",")[1],file:t};n(e)}},v=e=>{s(!0);const n=(0,Wa.A)();f(a,n,e.file),u({variables:{id:n,accountId:a,parserId:l,fileName:e.name,fileContent:e.base64,utility:t}}),y({variables:{id:n,userId:i.sub,accountId:a,fileName:e.name,key:Oj(a,n),category:"Bill",source:"S3",library:t,referenceId:e.name.split(".")[0]}})},C=d&&d.getAllTemplates?d.getAllTemplates:[],k=m||T,S=!p&&!h;return(0,g.useEffect)(()=>{o&&!k&&S&&n("Your document is now being processed with OCR.","success")},[k,S,n,o]),(0,fe.jsxs)(T0,{children:[(0,fe.jsx)(v0,{children:(0,fe.jsx)(ie.DZ,{align:"center",children:"OCR Document Upload"})}),(c||k)&&(0,fe.jsx)(C0,{children:(0,fe.jsx)(ie.Ip,{})}),d&&!c&&!k&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(v0,{children:[(0,fe.jsx)(ie.EY,{children:"Select Template"}),(0,fe.jsx)(ie.l6,{options:C.map(e=>({label:e.name,value:e.parserId})),value:l,onChange:e=>r(e.target.value)})]}),l&&(0,fe.jsx)(v0,{children:(0,fe.jsx)(ie.bT,{accept:qt.allowedDocument.mimeType,onChange:e=>{b([...e],v)},children:e=>(0,fe.jsx)(b0,{buttonText:"Select files",onClick:e,onDrop:e=>{b([...e],v)},background:!0})})})]})]})}var S0=t(14538);const N0=e=>Object.entries(e).map(e=>{let[n,t]=e;return{Name:n,Values:[t]}}),A0={label:"Loading...",value:"",disabled:!0},R0={label:"No legislations found",value:"",disabled:!0};function D0(e){let{value:n,error:t,name:a,onChange:i,disabled:l}=e;const{legislations:r,error:o,loading:s}=zl(),d=r.map(e=>({value:e.id,label:e.title})).sort((e,n)=>e.label.localeCompare(n.label));return s||t||0!==d.length||d.unshift(R0),(0,fe.jsx)(f.Select,{name:a,label:"Legislation",placeholder:"Please select the legislation item",value:n,options:s?[A0]:d,error:Boolean(t||o),helperText:t||o?.message||void 0,onChange:i,disabled:l})}const L0=S.J1`
  query GetProjects($accountId: ID!) {
    getProjects(accountId: $accountId) {
      id
      name
    }
  }
`,I0={label:"Loading...",value:"",disabled:!0},j0={label:"No projects found",value:"",disabled:!0};function w0(e){let{accountId:n,name:t,value:a,onChange:i,disabled:l}=e;const{data:r,loading:o,error:s}=(0,x.IT)(L0,{variables:{accountId:n}}),d=(r?.getProjects||[]).map(e=>({value:e.id,label:e.name||""}));return o||s||0!==d.length||d.unshift(j0),(0,fe.jsx)(f.Select,{name:t,label:"Project",value:a||"",options:o?[I0]:d,error:Boolean(s),helperText:s?.message,onChange:i,disabled:l})}const O0={label:"Loading...",value:"",disabled:!0},E0={label:"No targets found",value:"",disabled:!0};function _0(e){let{value:n,error:t,name:a,onChange:i,disabled:l}=e;const{targets:r,loading:o,error:s}=Fr(),d=r.filter(Boolean).map(e=>({value:e.id,label:e.name})).sort((e,n)=>e.label.localeCompare(n.label));return o||t||0!==d.length||d.unshift(E0),(0,fe.jsx)(f.Select,{name:a,label:"Target",placeholder:"Please select the target",value:n,options:o?[O0]:d,error:Boolean(t||s),helperText:t||s?.message||void 0,onChange:i,disabled:l})}const F0=S.J1`
  query GetBasicUsers($accountId: String!, $offset: Int, $limit: Int = 25, $sort: [SortCommand!], $filters: Filters) {
    getUsers(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        id
        accountId
        firstName
        lastName
      }
      totalRows
    }
  }
`,P0=e=>e.map(e=>({value:e.id,label:`${e.firstName} ${e.lastName}`})),B0=e=>{let{accountId:n,value:t,onChange:a,isMultiple:i=!0,loading:l,label:r="Users",disabled:o,scope:s,locationIds:d,tagIds:c,error:u}=e;const{options:p,loading:m,loadMore:y,error:h}=(e=>{let{accountId:n,onQueryCompleted:t,scope:a,locationIds:i,tagIds:l}=e;const r=(0,g.useMemo)(()=>({text:[{filterType:gn.pe.Text,field:"fullName",type:gn.II.Contains,filter:""},{filterType:gn.pe.Text,operator:gn.h6.Or,condition1:{filterType:gn.pe.Text,field:"accountId",type:gn.II.Equals,filter:n},condition2:{filterType:gn.pe.Text,field:"role",type:gn.II.Equals,filter:gn.gG.Consultant}}],set:[...a===gn.HG.Location&&i?.length?[{filterType:gn.pe.Set,field:"allowedLocations",values:i}]:[],...a===gn.HG.Tag&&l?.length?[{filterType:gn.pe.Set,field:"allowedTags",values:l}]:[]]}),[n,a,i,l]),{data:o,refetch:s,loading:d,error:c,fetchMore:u}=(0,x.IT)(F0,{variables:{accountId:n,offset:0,limit:St,filters:r,sort:[{field:"firstName",order:"asc"}]},onCompleted:t,notifyOnNetworkStatusChange:!0});return{options:(0,g.useMemo)(()=>P0(o?.getUsers?.rows||[]),[JSON.stringify(o)]),loadMore:async(e,n,t)=>{const a=t?{...r,text:[{...r.text[0],filter:t},...r.text.slice(1)]}:r,{data:i}=await u({variables:{offset:n,limit:e,filters:a}}),l=i?.getUsers?.totalRows,o=i?.getUsers.rows;return{total:l,options:P0(o)}},loading:d,refetch:s,error:c}})({accountId:n,scope:s,locationIds:d,tagIds:c}),T=(0,g.useMemo)(()=>t?.map(e=>"string"==typeof t?e:{value:e.value||e.id,label:e.label||`${e.firstName||e.first_name} ${e.lastName||e.last_name}`})||[],[t]);return(0,fe.jsx)(f.AutoComplete,{label:r,isMulti:i,loadMore:y,isLoading:m||l,disabled:l||o,onChange:a,value:T,error:h?.message||u,options:p})},U0=JSON.parse('[{"label":"Engage","value":"ENGAGE"},{"label":"Governance","value":"GOVERNANCE"},{"label":"Data","value":"DATA"},{"label":"Reporting","value":"REPORTING"},{"label":"Documents","value":"DOCUMENTS"}]'),$0=JSON.parse('[{"id":"HIGH","name":"High","icon":"exclamation-triangle","colour":"danger","label":"High","value":"HIGH"},{"id":"MEDIUM","name":"Medium","icon":"exclamation-circle","colour":"warning","label":"Medium","value":"MEDIUM"},{"id":"LOW","name":"Low","icon":"exclamation-circle","colour":"text","label":"Low","value":"LOW"}]'),M0=JSON.parse('{"DATA":[{"label":"Waste","value":"WASTE"},{"label":"Electricity","value":"ELECTRICITY"},{"label":"Gas","value":"GAS"},{"label":"Water","value":"WATER"},{"label":"Transport","value":"TRANSPORT"}],"GOVERNANCE":[{"label":"Legislation","value":"LEGISLATION"},{"label":"Policies","value":"POLICIES"},{"label":"Management Systems","value":"MANAGEMENTSYSTEMS"},{"label":"Targets","value":"TARGETS"},{"label":"Aspects & Impacts","value":"ASPECTS"},{"label":"H&S Risk Register","value":"RISKREGISTER"}]}'),V0=e=>{let{isSubmitting:n,task:t,setTask:a,accountId:i,isEditing:l,disabled:r={},projectId:o="",hasProjectsAccess:s=!1,errors:d}=e;const c=ud(),u=(0,g.useCallback)(e=>{"projectId"===e.target.name&&(e.target.select=e.target.value),a(n=>({...n,[e.target.name]:e.target.value})),"subject"===e.target.name&&(t.item?.id||t?.itemId)&&a(e=>({...e,itemId:null,item:null}))},[a,t]),p=(0,g.useCallback)((e,n,t)=>{a(a=>({...a,...t||{},[e]:n}))},[a]),m=t.itemId||t.item?.id;return(0,fe.jsxs)(f.Grid,{container:!0,columns:12,rowSpacing:3,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{label:"Task Name","data-cy":"TaskDetails__Input--name",disabled:n,onChange:e=>u(e),name:"name",value:t.name,error:Boolean(d.name),helperText:d.name})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextArea,{label:"Description",rows:4,"data-cy":"TaskDetails__Input--description",disabled:n,onChange:e=>u(e),name:"description",value:t.description,error:Boolean(d.description),helperText:d.description})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Select,{label:"Scope",name:"scope",options:c,value:t.scope,onChange:e=>{let{value:n}=e;return p("scope",n)},disabled:r.scope||n})}),t.scope===Y&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Uj,{label:"Location(s)",name:"locationIds",value:t.locationIds,onChange:e=>p("locationIds",e?.map(e=>e.value)||[]),disabled:r.locations||n})}),t.scope===K&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(zj,{label:"Tag(s)",name:"tagIds",accountId:i,value:t.tagIds||[],onChange:e=>p("tagIds",e?.map(e=>e.value)||[]),disabled:r.tags||n})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Select,{label:"Priority",name:"priority",disabled:n,onChange:e=>{let{value:n}=e;return p("priority",n)},value:t.priority,options:$0,error:Boolean(d.priority),helperText:d.priority})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Select,{label:"Category",name:"category",disabled:r.category||n,onChange:e=>{let{value:n}=e;return p("category",n,{subject:null,itemId:null,item:null})},value:t.category,options:U0,error:Boolean(d.category),helperText:d.category})}),t.category&&M0[t.category]&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Select,{label:"Subject",name:"subject",onChange:e=>{let{value:n}=e;return p("subject",n)},value:t.subject?.toUpperCase(),options:M0[t.category],disabled:r.subject||n,error:Boolean(d.subject),helperText:d.subject})}),t.subject===gn.AR.Aspects&&!m&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:"Related item (Please go to your Aspect and Impact Register to create a task relating to a single aspect or impact.)"})}),t.subject===gn.AR.Legislation&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(D0,{name:"itemId",onChange:e=>{let{value:n}=e;return p("itemId",n)},value:m||"",disabled:r[gn.AR.Legislation]||n})}),t.subject===gn.AR.Targets&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(_0,{name:"itemId",onChange:e=>{let{value:n}=e;return p("itemId",n)},value:m||"",disabled:n})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(B0,{label:"Owners",onChange:e=>{u({target:{value:e,name:"owners"}})},value:t.owners||[],accountId:i,error:d.owner})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.DatePicker,{label:"Due Date",disabled:n,onChange:e=>{u({target:{value:e?new Date(e).toISOString():void 0,name:"dueDate"}})},name:"dueDate",value:t.dueDate?new Date(t.dueDate):void 0,error:d.dueDate})}),s?(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(w0,{name:"projectId",accountId:i,onChange:e=>{let{value:n}=e;return p("projectId",n)},value:t.projectId||o||"",disabled:n})}):null,l&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Checkbox,{label:"Completed",checked:t.isCompleted,value:t.isCompleted,onChange:()=>a({...t,isCompleted:!t.isCompleted})})})]})};var G0=t(95196),z0=t.n(G0);const W0="Required field",q0=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const t={},a=!!e.name,i=!!e.description,l=!!$0.find(n=>n.id===e.priority),r=!!e.priority,o=!!U0.find(n=>n.value===e.category),s="GOVERNANCE"===e.category||"DATA"===e.category?!!M0[e.category].find(n=>n.value===e.subject):null===e.subject,d=!!e.owners.length,c=bn()(e.dueDate).isValid();return a||(t.name=W0),i||(t.description=W0),l||(t.priority="Invalid value"),r||(t.priority=W0),o||(t.category=W0),s||(t.subject=W0),d||n||(t.owner=W0),c||(t.dueDate=W0),t},J0=(0,f.styled)(f.Button)`
  margin-top: 32px;
  width: 100%;
`,Y0=e=>{let{accountId:n,onDismiss:t,onComplete:a,sourcePage:i,defaultValues:l,disabled:r={},projectId:o,hasProjectsAccess:s=!1,open:d}=e;const c=(0,g.useMemo)(()=>({scope:l?.scope||null,locationIds:l?.locationIds||[],tagIds:l?.tagIds||[],name:l?.name||"",description:l?.description||"",category:l?.category||null,subject:l?.subject||null,item:l?.item||void 0,itemId:l?.itemId||null,accountId:l?.accountId||"",owners:l?.owners||[],dueDate:l?.dueDate||(new Date).toISOString(),priority:l?.priority||null,isCompleted:l?.isCompleted||!1,projectId:o||null}),[l,o]),[u,p]=(0,g.useState)(c),[m,{loading:y}]=(0,ln.n)(z0(),{onCompleted:e=>{a({message:"Task has been created.",colour:"success"},e),t(),p(c)},update(e,n){let{data:t}=n;if(!o)return;const a=t.createTask,i=e.readQuery({query:Or,variables:{id:o}}),l=i?.getProject;e.writeQuery({query:Or,variables:{id:o},data:{getProject:{...l,tasks:[...l?.tasks||[],a]}}})},onError:()=>{a({message:"Something went wrong! Please try again later.",colour:"danger"})}}),h=(0,g.useMemo)(()=>({name:"",description:"",priority:"",category:"",subject:"",owner:"",dueDate:""}),[]),[x,T]=(0,g.useState)(h),b=(0,g.useCallback)(async()=>{const e=q0(u);if(!(0,hn.isEmpty)(e))return void T({...h,...e});T(h);const t=(0,Wa.A)(),a=u.scope===K?u.tagIds:[];m({variables:{id:t,createdAt:(new Date).toISOString(),...u,accountId:n,itemId:u.itemId||u.item?.id||null,locationIds:u.scope===Y?u.locationIds:[],tagIds:a,owners:u.owners.map(e=>e.value)||[]},refetchQueries:["GetTasksByAccountId","GetLegislationById"]})},[n,m,h,u]);return(0,fe.jsxs)(f.Modal,{open:d,onClose:()=>t(),title:"Create New Task",children:[(0,fe.jsx)(V0,{task:u,setTask:p,accountId:n,sourcePage:i,disabled:r,isSubmitting:y,isEditing:void 0,projectId:o,hasProjectsAccess:s,errors:x}),(0,fe.jsx)(J0,{loading:y,disabled:y,variant:"contained","data-cy":"CreateTaskModal__submit",onClick:()=>b(),children:"Submit"})]})};function H0(e){switch(e.toUpperCase()){case"ACTION REQUIRED":return Qh.ACTION_REQUIRED;case"EXTERNAL ACTION REQUIRED":return Qh.EXTERNAL_ACTION_REQUIRED;case"COMPLETED":return Qh.DONE;case"INITIATED":case"PROCESSING":default:return Qh.PENDING;case"FAILED":return Qh.FAILED;case"ROLLED BACK":return Qh.ABANDONED;case"DELETED":return Qh.DELETED}}const K0=(0,f.styled)(f.Modal)`
  & > div {
    min-height: 98vh;
    min-width: 98vw;
    display: flex;
    flex-direction: column;
  }
`,Q0=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
`,Z0=(0,f.styled)(e=>{const{id:n,dashboardurl:t,accountId:a,onDashboardInit:i,parameters:l={},...r}=e;return(0,g.useEffect)(()=>{!async function(){const e=document.getElementById(n);if(!e)return;const r={url:t,container:e,scrolling:"yes",height:"100%",width:"100%"},o={toolbarOptions:{undoRedo:!1,export:!0},parameters:N0({...l,accountId:a,ucAccountId:a.toUpperCase()})},s=await(0,S0.createEmbeddingContext)(),{embedDashboard:d}=s,c=await d(r,o);i?.(c)}()},[]),(0,fe.jsx)("div",{id:n,...r})})`
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex: 1;
  & > iframe {
    flex: 1;
  }
`,X0=(0,f.styled)("div")`
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  flex: 0;
`,e1=e=>{let{batch:n,accountId:t,uploadType:a,onDismiss:i,refetchBatches:l}=e;const{approved:r,id:o,lastUpdated:s,status:d,anomaliesCount:c}=n,u=lr(),p=!!c&&!r,m=u.data.find(e=>e.startsWith("approveUpload")),{showNotification:y}=tn(),{data:h,loading:T,error:b,refetch:v}=(0,x.IT)(iZ,{variables:{uploadType:a,batchId:o,accountId:t},notifyOnNetworkStatusChange:!0,fetchPolicy:"network-only"}),[C,{loading:k}]=function(){const{showNotification:e}=tn();return(0,ln.n)(nZ,{onCompleted:()=>{e("The data has been successfully rolled back!")},onError:()=>{e("Something went wrong. The data wasn't rolled back.","danger")}})}(),[S,{loading:N}]=function(){const{showNotification:e}=tn();return(0,ln.n)(lZ,{onCompleted:()=>{e("Approved!")},onError:()=>{e("Something went wrong. The data wasn't approved.","danger")}})}(),[A,R]=(0,g.useState)(!1),D=(0,g.useCallback)(()=>{R(!0)},[]),L=(0,g.useCallback)(()=>{R(!1)},[]),I=(0,g.useCallback)(e=>{let{message:n,colour:t}=e;y(n,t)},[y]),j=(0,g.useCallback)(async()=>{window.confirm("Are you sure you want to rollback the data?")&&(await C({variables:{id:o}}),i(),l())},[C,o,l,i]),w=(0,g.useCallback)(async()=>{p&&window.confirm(`This batch has ${c} anomalies, do you want to approve it?`)&&(await S({variables:{batchId:o}}),l()),i()},[S,o,p,i,l,c]),O=T||k||N,E=H0(d)===Qh.DONE,_=(F=s,bn()().diff(bn()(F),"minutes")>15);var F;const P=E&&_;return(0,fe.jsxs)(K0,{open:!0,title:"Upload summary",onClose:i,children:[(0,fe.jsx)(Q0,{children:b?(0,fe.jsx)(f.LoadFailed,{title:"Something went wrong loading summary dashboard. Please contact us to solve this problem.",error:b,retry:()=>v({uploadType:a,batchId:o})}):T?(0,fe.jsx)(f.Loader,{}):(0,fe.jsx)(Z0,{parameters:{ImportBatchId:o},id:`QuickViewModal__${o}`,accountId:t,dashboardurl:h.getUploadSummaryDashboard},`QuickSightFrameStyled__${o}`)}),(0,fe.jsxs)(X0,{children:[(0,fe.jsx)(f.Button,{color:"tertiary",disabled:O,onClick:i,children:"Close"}),P&&(0,fe.jsx)(f.Button,{color:"tertiary",disabled:O,onClick:j,children:"Roll back"}),(0,fe.jsx)(f.Button,{variant:"contained",color:"secondary",disabled:O,onClick:D,children:"Create task"}),p&&m&&(0,fe.jsx)(f.Button,{variant:"contained",color:"primary",disabled:O,onClick:w,children:"Approve upload"})]}),(0,fe.jsx)(Y0,{open:A,accountId:t,onComplete:I,onDismiss:L})]})},n1=le.default.div`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 30px 20px;
`,t1=(0,le.default)(ie.$n)`
  margin: 0 5px;
`,a1=le.default.div`
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 30px 30px 0px 30px;
`,i1=e=>{let{onDismissClick:n,onConfirmClick:t}=e;return(0,fe.jsxs)(ie.aF,{size:"sm",show:!0,dismissable:!0,onDismiss:n,height:"auto",maxHeight:"90vh",children:[(0,fe.jsx)(a1,{children:"Are you sure you want to delete this data upload attempt?"}),(0,fe.jsxs)(n1,{children:[(0,fe.jsx)(t1,{color:"info",onClick:n,children:"Cancel"}),(0,fe.jsx)(t1,{onClick:t,color:"danger",children:"Confirm"})]})]})},l1=(0,le.default)(ie.v3)`
  height: auto;
`,r1=(0,le.default)(ie.DZ)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,o1=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,s1=le.default.ul`
  list-style-type: disc;
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,d1=le.default.li`
  margin-left: ${e=>e.theme.geometry.md.spacing};
`;function c1(e){let{errors:n,errorsCount:t}=e;const a=n.filter(Boolean).reduce((e,n)=>{const t=n.rows?.split(",");return t?.length?e.concat(t.map(e=>({...n,row:e}))):e.concat([n])},[]),i=Object.keys(xn()(a).groupBy("row").value()).length;return(0,fe.jsxs)(l1,{size:"md",wrap:!0,children:[(0,fe.jsxs)(r1,{size:"lg",children:["Showing ",t," errors in ",i," rows:"]}),xn()(a).groupBy("row").map((e,n)=>(0,fe.jsxs)(o1,{children:[(0,fe.jsxs)(ie.DZ,{size:"md",children:["Row ",n,":"]}),xn()(e).filter(Boolean).groupBy(e=>xn().capitalize(e.fieldName)||"Other errors").map((e,n)=>(0,fe.jsxs)(s1,{children:[(0,fe.jsxs)(ie.DZ,{size:"sm",children:[n,":"]}),e.map(e=>(0,fe.jsxs)(d1,{children:[e.message?.includes("Something unexpected happened")||e.message?.includes("0 rows")?(0,fe.jsx)(ie.EY,{weight:e.actionRequired?"normal":"bold",children:e.message}):(0,fe.jsx)(ie.EY,{weight:e.actionRequired?"normal":"bold",children:`You've provided: "${e.value}". ${e.message}`}),e.actionRequired&&(0,fe.jsx)(ie.EY,{children:"Field can be aliased."})]},JSON.stringify(e)))]},n)).value()]},n)).value()]})}const u1=(0,le.default)(ie.v3)`
  height: auto;
  overflow: auto;
`;function p1(e){let{error:n}=e;return(0,fe.jsx)(u1,{children:n})}const m1=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  display: flex;
  flex-direction: column;
  align-items: center;
  pre {
    width: 100%;
  }
`,f1=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`,y1=((0,le.default)(ie.DZ)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,le.default.div`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,le.default.ul`
  list-style-type: disc;
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,le.default.li`
  margin-left: ${e=>e.theme.geometry.md.spacing};
`,le.default.div`
  height: 100%;
  display: flex;
  align-items: center;
  padding: ${e=>e.theme.geometry.sm.spacing};
`),g1=(0,le.default)(ie.Ip)`
  padding: ${e=>e.theme.geometry.sm.spacing};
`;function h1(e){let{batchId:n}=e;const{data:t,error:a,loading:i,refetch:l}=(0,x.IT)(AO,{variables:{id:n},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}),{getDataImportBatchById:r}=t||{};return(0,fe.jsxs)(m1,{children:[i&&(0,fe.jsx)(y1,{children:(0,fe.jsx)(g1,{})}),a&&(0,fe.jsx)($c,{error:a,retry:l}),r&&!i&&!a&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f1,{size:"lg",children:"Batch Errors"}),r.failedReason?(0,fe.jsx)(p1,{error:r.failedReason}):(0,fe.jsx)(c1,{errors:r.errors,errorsCount:r.errorsCount})]})]})}const x1=e=>{let{data:n}=e;const t=(0,C.m)();return n.fileName?(0,fe.jsx)(kS,{onClick:()=>(async e=>{const{data:{getDataImportBatchImportFileUrl:n}}=await t.query({query:ZQ,variables:{id:e}});n&&await Xt(n)})(n.id),children:n.fileName}):null},T1=e=>{let{data:n,rollBackStatusLink:t}=e;const{token:a}=qe(),i=lr(),l=n.userId===a.sub,r="Completed"===n.status&&((e,n,t)=>!!e.data?.find(e=>e?.startsWith?.(n)&&!e?.endsWith?.("Own"))||e.data?.includes(`${n}Own`)&&t)(i,"rollbackImportBatch",l);return(0,fe.jsx)(fe.Fragment,{children:r&&t(n.id)})},b1=le.default.div`
  display: flex;
  align-items: center;
`,v1=(0,le.default)(ie.In)`
  margin: 0 10px;
`,C1=e=>{let{data:n,download:t,defineStatusProps:a,statusLink:i,onActionClick:l,onDataClick:r,onErrorClick:o}=e;const s=sl(),d=(0,le.useTheme)(),c=(0,f.useTheme)(),u=s?c:d,{token:p}=qe(),m=lr(),y=n?.user?.id?.toLowerCase()===p.sub,g=H0(n.status),h=a(g,u,n.isLegacy,o,r,l);return(0,fe.jsx)(b1,{children:(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(v1,{icon:h?.icon,color:h?.iconColor}),i(g,n.isLegacy,"Uploads",()=>o(n.id),()=>r(n.id),()=>l(n.id),h,t?.[n.id],m,y)]})})},k1=(0,le.default)(ie.In)`
  @-webkit-keyframes eye {
    0%,
    10% {
      fill: rgba(197, 204, 215, 56);
    }
    11%,
    20% {
      fill: rgba(187, 194, 215, 56);
    }
    21%,
    30% {
      fill: rgba(167, 184, 215, 56);
    }
    31%,
    40% {
      fill: rgba(157, 174, 215, 56);
    }
    41%,
    50% {
      fill: rgba(147, 164, 215, 56);
    }
    51%,
    60% {
      fill: rgba(137, 154, 215, 56);
    }
    61%,
    70% {
      fill: rgba(127, 144, 215, 56);
    }
    71%,
    80% {
      fill: rgba(137, 154, 215, 56);
    }
    81%,
    90% {
      fill: rgba(147, 164, 215, 56);
    }
    91%,
    100% {
      fill: rgba(157, 174, 215, 56);
    }
  }
  @-moz-keyframes eye {
    0%,
    10% {
      fill: rgba(197, 204, 215, 56);
    }
    11%,
    20% {
      fill: rgba(187, 194, 215, 56);
    }
    21%,
    30% {
      fill: rgba(167, 184, 215, 56);
    }
    31%,
    40% {
      fill: rgba(157, 174, 215, 56);
    }
    41%,
    50% {
      fill: rgba(147, 164, 215, 56);
    }
    51%,
    60% {
      fill: rgba(137, 154, 215, 56);
    }
    61%,
    70% {
      fill: rgba(127, 144, 215, 56);
    }
    71%,
    80% {
      fill: rgba(137, 154, 215, 56);
    }
    81%,
    90% {
      fill: rgba(147, 164, 215, 56);
    }
    91%,
    100% {
      fill: rgba(157, 174, 215, 56);
    }
  }
  @keyframes eye {
    0%,
    10% {
      fill: rgba(197, 204, 215, 56);
    }
    11%,
    20% {
      fill: rgba(187, 194, 215, 56);
    }
    21%,
    30% {
      fill: rgba(167, 184, 215, 56);
    }
    31%,
    40% {
      fill: rgba(157, 174, 215, 56);
    }
    41%,
    50% {
      fill: rgba(147, 164, 215, 56);
    }
    51%,
    60% {
      fill: rgba(137, 154, 215, 56);
    }
    61%,
    70% {
      fill: rgba(127, 144, 215, 56);
    }
    71%,
    80% {
      fill: rgba(137, 154, 215, 56);
    }
    81%,
    90% {
      fill: rgba(147, 164, 215, 56);
    }
    91%,
    100% {
      fill: rgba(157, 174, 215, 56);
    }
  }
`;function S1(e){let{showDeleteButton:n,isCompleted:t,onDeleteClick:a,handleQuickViewClick:i}=e;const{title:l,color:r,cursor:o,onClick:s}=function(e){return{title:"Quick View",color:"#47d3c8",cursor:"pointer",onClick:e}}(i);return(0,fe.jsxs)(fe.Fragment,{children:[n&&(0,fe.jsx)(ie.In,{icon:"times",size:"md",color:"#83838e",cursor:"pointer",onClick:a}),t&&(0,fe.jsx)(k1,{icon:"eye",title:l,size:"md",color:r,cursor:o,onClick:s})]})}const N1=e=>{let{data:n,onDeleteClick:t,onQuickViewClick:a}=e;const{token:i}=qe(),l=lr(),r=n.userId===i.sub,o="Completed"===n.status,s=["Failed","Action Required","Rolled Back"].includes(n.status)&&((e,n,t)=>!!e.data.find(e=>e.startsWith(n)&&!e.endsWith("Own"))||e.data.includes(`${n}Own`)&&t)(l,"deleteImportBatch",r);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(S1,{showDeleteButton:s,isCompleted:o,onDeleteClick:()=>t(n.id),approved:n.approved,handleQuickViewClick:()=>a(n.id)})})},A1=e=>{let{data:n}=e;const t=n?.transposition?.transpositionName;return(0,fe.jsx)(fe.Fragment,{children:t||"Default Template"})},R1=(0,le.default)(ie.fI)`
  flex: 1;
  height: 100%;
  display: flex;
  padding: ${e=>e.theme.geometry.md.spacing};
`,D1=function(e){let{fetchRows:n,setGridApi:t,download:a,rollBackStatusLink:i,statusLink:l,onErrorClick:r,onDataClick:o,onActionClick:s,onDeleteClick:d,onQuickViewClick:c,defineStatusProps:u}=e;const p=qr({autoFit:!0}),m=[{colId:"lastUpdated",sort:"desc",sortIndex:0}],f={fileName:e=>(0,fe.jsx)(x1,{...e}),status:e=>(0,fe.jsx)(C1,{...e,download:a,onErrorClick:r,onDataClick:o,onActionClick:s,defineStatusProps:u,statusLink:l}),rollback:e=>(0,fe.jsx)(T1,{...e,rollBackStatusLink:i}),summary:e=>(0,fe.jsx)(N1,{...e,onDeleteClick:d,onQuickViewClick:c}),transposition:e=>(0,fe.jsx)(A1,{...e})},[y,h]=(0,g.useState)(!1),x={pagination:!0,paginationPageSizeSelector:!1,paginationPageSize:25,rowModelType:"serverSide",rowHeight:100,defaultColDef:{resizable:!1,sortable:!0,filter:!0,cellStyle:{paddingLeft:"10px",height:"auto",wordBreak:"break-word",lineHeight:"20px"}},columnDefs:[{headerName:"Status",field:"status",filter:"agTextColumnFilter",cellRenderer:"status"},{headerName:"Filename",field:"fileName",filter:"agTextColumnFilter",cellRenderer:"fileName"},{headerName:"User First Name",field:"user.first_name",filter:"agTextColumnFilter"},{headerName:"User Last Name",field:"user.last_name",filter:"agTextColumnFilter"},{headerName:"Last Updated Date",field:"lastUpdated",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Dn(new Date(n))}},{headerName:"Rows",field:"rowsUploaded",filter:"agTextColumnFilter",maxWidth:120},{headerName:"Template used",cellRenderer:"transposition",filter:!1,sortable:!1,maxWidth:130},{headerName:"Rollback",filter:!1,sortable:!1,cellRenderer:"rollback",maxWidth:100},{headerName:"Summary",sortable:!1,filter:!1,cellRenderer:"summary",cellStyle:{marginLeft:"20px"},maxWidth:100}],rowStyle:{width:"100%",display:"flex",alignItems:"center"}};return function(e,n,t,a){const[i,l]=(0,g.useState)(null),[r,o]=(0,g.useState)(null),s=(0,g.useCallback)(n=>{const{startRow:t,sortModel:i,filterModel:l}=n?.request,r=jn(l);return e({offset:t||0,limit:a.paginationPageSize,sort:wn(i),filters:r})},[e,a.paginationPageSize]),d=(0,g.useCallback)(()=>{n.api?.setGridOption("serverSideDatasource",{async getRows(e){try{const n=await s(e);l(n);const{rows:t,totalRows:a}=n;return e.success({rowData:t,rowCount:a}),{rows:t,totalRows:a}}catch(n){throw e.fail(),n}}})},[n.api,s]);(0,g.useEffect)(()=>{if(t)return d(),()=>{n?.api?.destroy()}},[t,d,n.api]),(0,g.useEffect)(()=>{if(!i||r)return;const e=setInterval(async()=>n?.api?.refreshServerSide(),1e4);return o(e),()=>{r&&clearInterval(r)}},[i,r,n.api])}(n,p,y,x),(0,fe.jsx)(R1,{children:(0,fe.jsx)(Pg,{...x,cacheBlockSize:x.paginationPageSize,onFirstDataRendered:p.onFirstDataRendered,onFilterChanged:p.onFilterChanged,onSortChanged:p.onSortChanged,onColumnVisible:p.onSaveGridColumnState,onColumnPinned:p.onSaveGridColumnState,onColumnResized:p.onSaveGridColumnState,onColumnMoved:p.onSaveGridColumnState,onColumnRowGroupChanged:p.onSaveGridColumnState,onColumnValueChanged:p.onSaveGridColumnState,onColumnPivotChanged:p.onSaveGridColumnState,components:f,onGridReady:e=>{e.api.applyColumnState({state:m}),p.onGridReady(e),t({api:e.api}),h(!0)}})})},L1=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,I1=le.default.div`
  overflow: auto;
  height: 100%;
`,j1=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,w1=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,O1=(0,le.default)(ie.Yq)`
  opacity: unset;
  font-size: 14px;
  font-family: unset;
`,E1=(0,le.default)(ie.EY)`
  opacity: unset;
  font-size: 14px;
  font-family: unset;
  text-decoration: none;
  color: unset;
  cursor: default;
`,_1={pollForBatch:null,isFileUploadModalVisible:!1,isDataFormModalVisible:!1,showConfirmRollbackModal:!1,showOcrModal:!1,showErrorModal:{show:!1,id:null},deleteConfirmation:!1,batchIdToDelete:null,currentPage:1,downloading:{},rollbackFunction:()=>{}},F1=e=>{const n={params:(0,m.g)()},t=(0,m.zy)(),a=(0,m.Zp)(),i=(0,C.m)(),l=Je(),{showNotification:r}=tn(),[o,s]=(0,g.useState)([]),[d,c]=(0,g.useState)(),[u,p]=(0,g.useState)(null),[f,y]=(0,g.useState)(_1),{dataSection:h}=e,x=(0,g.useCallback)(async e=>{const{data:{getDataImportBatchesPage:{rows:n,totalRows:t}}}=await i.query({query:XQ,variables:{...e,accountId:l,type:h},fetchPolicy:"network-only"});return s(n),{rows:n,totalRows:t}},[l,i,h,s]),T=(0,g.useCallback)(()=>d?.api?.refreshServerSide({purge:!0}),[d]),[b]=(0,ln.n)(nZ,{onCompleted:()=>{T(),y({...f,showConfirmRollbackModal:!1}),r("Batch roll back succeeded","success")},onError:()=>{y({...f,showConfirmRollbackModal:!1}),r("Error rolling back batch","danger")}}),[v]=(0,ln.n)(eZ,{onCompleted:()=>{T(),r("Batch deleted","success")},onError:()=>{r("Error deleting batch","danger")}}),k=Ml();(0,g.useEffect)(()=>()=>{localStorage.removeItem(zr)},[]);const S=()=>{T(),y({...f,isFileUploadModalVisible:!1})},N=e=>{y({...f,showConfirmRollbackModal:!0,rollbackFunction:()=>{b({variables:{id:e}}),r("Batch roll back has been started","success")}})},A=()=>{v({variables:{id:f.batchIdToDelete}}),r("Batch deletion has been started","success")},R=()=>y({...f,isFileUploadModalVisible:!1,isDataFormModalVisible:!1,showConfirmRollbackModal:!1,showOcrModal:!1}),D=(e,n,t)=>!!e.data.find(e=>e.startsWith(n)&&!e.endsWith("Own"))||e.data.includes(`${n}Own`)&&t,L=(e,n)=>{switch(e){case Qh.DONE:return"Success";case Qh.FAILED:return"Error";default:return n}};return(0,fe.jsxs)(L1,{children:[(0,fe.jsx)(h0,{dataSection:h,match:n,onDirectUploadClick:()=>y({...f,isFileUploadModalVisible:!1,isDataFormModalVisible:!0}),onFileUploadClick:()=>y({...f,isFileUploadModalVisible:!0,isDataFormModalVisible:!1}),onOcrClick:()=>y({...f,showOcrModal:!0}),allowOcr:e.showInvoiceUpload,gridApi:d}),(0,fe.jsx)(I1,{children:(0,fe.jsxs)(w1,{children:[f.isFileUploadModalVisible&&(0,fe.jsx)(QQ,{onComplete:()=>{S(),r("Upload started! Please check back for progress...","success")},template:e.template,transactionType:h,onDismiss:R}),f.isDataFormModalVisible&&(0,fe.jsx)(sX,{onComplete:()=>{S(),r("Upload has completed","success")},onError:()=>{r("Upload has failed","danger")},onDismiss:R,dataSection:h}),f.showOcrModal&&(0,fe.jsx)(ie.aF,{show:!0,size:"lg",onDismiss:R,children:(0,fe.jsx)(k0,{dataSection:e.dataSection,onComplete:(e,n)=>{r(e,n),y({...f,showOcrModal:!1})}})}),f.showConfirmRollbackModal&&(0,fe.jsx)(x0,{onDismiss:R,rollBackFunction:f.rollbackFunction}),f.deleteConfirmation&&(0,fe.jsx)(i1,{onConfirmClick:()=>{setTimeout(A,300),y({...f,deleteConfirmation:!1})},onDismissClick:()=>{y({...f,deleteConfirmation:!1})}}),f.showErrorModal?.show&&f.showErrorModal?.id&&(0,fe.jsx)(ie.aF,{size:"lg",height:"auto",maxHeight:"90vh",show:!0,onDismiss:()=>y({...f,showErrorModal:{show:!1,id:null}}),children:(0,fe.jsx)(h1,{batchId:f.showErrorModal.id})}),u&&(0,fe.jsx)(e1,{batch:o.find(e=>e.id===u),uploadType:h,onDismiss:()=>{p(null)},refetchBatches:()=>{i.refetchQueries({include:[XQ]})},accountId:l}),(0,fe.jsx)(j1,{children:(0,fe.jsx)(I1,{children:(0,fe.jsx)(D1,{dataSection:h,download:f.downloading,fetchRows:x,setGridApi:c,gridApi:d,defineStatusProps:(e,n,t,a,i,l)=>{switch(e){case Qh.DONE:return{icon:"check",iconColor:n.colors.success.normal.background,linkText:t?"Migrated":"Export Data",onClick:a};case Qh.PENDING:return{icon:"clock",iconColor:n.colors.text.normal.background,linkText:"In Progress"};case Qh.ABANDONED:return{icon:"undo",iconColor:n.colors.neutral.dark.background,linkText:"Rolled Back"};case Qh.FAILED:return{icon:"minus-circle",iconColor:n.colors.danger.normal.background,linkText:"View Errors",onClick:i};case Qh.ACTION_REQUIRED:return{icon:"exclamation-circle",iconColor:n.colors.warning.normal.background,linkText:"Action Required",onClick:l};default:return{icon:"",iconColor:"",linkText:""}}},statusLink:(e,n,t,a,i,l,r,o,s,d)=>{const c=D(s,"exportImportBatch",d),u=D(s,"editImportBatch",d),p=e===Qh.DONE&&c,m=e===Qh.ACTION_REQUIRED&&u,f=e===Qh.FAILED;return((e,n)=>(e===Qh.DONE||e===Qh.FAILED||e===Qh.ACTION_REQUIRED)&&!n)(e,n)&&(p||m||f)?(0,fe.jsx)(O1,{name:`${t}__statusLink`,component:"a",disabled:o,onClick:e===Qh.FAILED&&a||e===Qh.DONE&&i||e===Qh.ACTION_REQUIRED&&l,children:o?"Downloading":r?.linkText}):(0,fe.jsx)(E1,{name:`${t}__statusText`,children:L(e,r?.linkText)})},rollBackStatusLink:e=>(0,fe.jsx)(ie.Yq,{name:"Uploads__rollBackLink",onClick:()=>N(e),children:"Roll Back"}),onDataClick:async e=>{k(`${h} export`,h,e)},onErrorClick:e=>{y({...f,showErrorModal:{show:!0,id:e}})},onQuickViewClick:p,onRollBackClick:N,onDeleteClick:e=>{y({...f,deleteConfirmation:!0,batchIdToDelete:e})},onActionClick:e=>a(`${t.pathname}/alias/${e}`)})})})]})})]})},P1=function(e){return(0,fe.jsx)(F1,{...e,template:{fileName:VX,type:Zh.Static,url:VX},dataSection:gn.D_.Waste})};function B1(e){let{value:n,data:t}=e;const{wtnDocumentId:a}=t;return n?a?(0,fe.jsx)(SS,{to:`/v2/documents/all/${a}`,children:n}):n:""}function U1(e){let{fetchFilters:n}=e;const t=zo(),a=Je(),i=t?.accessControls.customFields,{showNotification:l}=tn(),r=(0,g.useCallback)(async e=>{try{const t=await n({variables:{accountId:a,field:e.colDef.colId||e.colDef.field}});e.success(t.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){l(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning")}},[a,l,n]);return(0,g.useMemo)(()=>({getRowId:Gn("id"),columnDefs:[{headerName:"Individual Collection Date",field:"individualCollectionDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter",sort:"desc",headerTooltip:"Individual Collection Date"},{headerName:"Waste-Out Location",field:"wasteOut",filter:"agSetColumnFilter",filterParams:{values:r,valueFormatter:On}},{headerName:"Location Code",field:"locationCode",filter:"agSetColumnFilter",filterParams:{values:r,valueFormatter:On}},...Oi(gn.D_.Waste,t?.accessControls),{headerName:"Shared Emission Percentage",field:"locationSharedEmissionPercentage",filter:"agNumberColumnFilter"},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter",valueFormatter:Vn},yH,{headerName:"Waste-In Location",field:"wasteIn",filter:"agSetColumnFilter",filterParams:{values:r,valueFormatter:On}},{headerName:"Tags",field:"tags",filterParams:{values:r,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:r,valueFormatter:On}},{headerName:"Waste Stream",field:"wasteStream",filterParams:{values:r,valueFormatter:On}},{headerName:"EWC",field:"ewc",filterParams:{values:r,valueFormatter:On}},{headerName:"Waste Contractor",field:"wasteContractor",filterParams:{values:r,valueFormatter:On}},{headerName:"Hazardous",field:"isHazardous",valueFormatter:qi,filter:"agSetColumnFilter",filterParams:Ji()},{headerName:"Waste Carrier",field:"wasteCarrier",filterParams:{values:r,valueFormatter:On}},{headerName:"Treatment Process",field:"treatmentProcess",filterParams:{values:r,valueFormatter:On}},{headerName:"Number Of Collections",field:"numberOfCollections",filter:"agNumberColumnFilter"},{headerName:"Number Of Containers",field:"numberOfContainers",filter:"agNumberColumnFilter"},{headerName:"Container Type Size",field:"containerTypeSize",filterParams:{values:r,valueFormatter:On}},{headerName:"Quantity",field:"quantity",filter:"agNumberColumnFilter"},{headerName:"Unit Of Weight",field:"quantityUnitName",filterParams:{values:r,valueFormatter:On}},{headerName:"Act/Est",field:"accuracy",filterParams:{values:r,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return"ACT"===n?"Act":"Est"}},Vi,{headerName:"Gate Fee",field:"gateFee",filter:"agNumberColumnFilter"},{headerName:"Management Fee",field:"managementFee",filter:"agNumberColumnFilter"},{headerName:"Bin Hire",field:"binHire",filter:"agNumberColumnFilter"},{headerName:"Bin Exchange Fee",field:"binExchangeFee",filter:"agNumberColumnFilter"},{headerName:"Transport Charge",field:"transportCharge",filter:"agNumberColumnFilter"},{headerName:"Lift Charge",field:"liftCharge",filter:"agNumberColumnFilter"},{headerName:"Equipment Hire",field:"equipmentHire",filter:"agNumberColumnFilter"},{headerName:"Labour Cost",field:"labourCost",filter:"agNumberColumnFilter"},{headerName:"Misc Cost",field:"miscCost",filter:"agNumberColumnFilter"},{headerName:"Misc Cost Rate",field:"miscCostRate",filter:"agNumberColumnFilter"},{headerName:"Rebate",field:"rebate",filter:"agNumberColumnFilter"},{headerName:"Penalty",field:"penalty",filter:"agNumberColumnFilter"},{headerName:"Total Cost",field:"totalCost",filter:"agNumberColumnFilter"},{headerName:"Total Cost (VAT)",field:"totalCostVat",filter:"agNumberColumnFilter"},{headerName:"Currency Code",field:"currency",filterParams:{values:r,valueFormatter:On}},{headerName:"Notes",field:"notes",filter:"agTextColumnFilter"},{headerName:"Reference",field:"reference",filter:"agTextColumnFilter"},{headerName:"Waste Transfer Note ID",field:"wasteTransferNote",filter:"agTextColumnFilter",cellRenderer:B1},{headerName:"Consignment Note (SEPA) ID",field:"consignmentNoteId",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Consignment Note (EA) ID",field:"consignmentNoteEA",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Sales Order ID",field:"salesOrder",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Invoice Number",field:"invoiceNumber",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Country",field:"location.address.country.name",colId:"country",filterParams:{values:r,valueFormatter:On}},{headerName:"Region",field:"location.region.name",colId:"region",filterParams:{values:r,valueFormatter:On}},{headerName:"Evidence Reference",field:"evidenceReference",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Carbon Emission Scope 3 (kgCO2e)",headerTooltip:"These are the indirect emissions associated with the uploaded activity data",field:"carbonEmission",filter:"agNumberColumnFilter"},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:r,valueFormatter:On}},...i?.includes("WasteTransaction.projectPhase")?[{headerName:"Project Phase",sortable:!1,field:"projectPhase",filterParams:{values:r,valueFormatter:On}}]:[],...Xi(wi(gn.D_.Waste,i))],reactiveCustomComponents:!0}),[i,r])}const $1=e=>{let{defaultVariant:n,exportFileName:t}=e;return dd({defaultVariant:n,exportFileName:t,enableHiddenColumns:!0,datasetName:"WasteTransactionPage",regularQuery:Ls,reportingQuery:Is,regularFiltersQuery:js,reportingFiltersQuery:ws,mapping:{regular:{data:"getWasteTransactionsPage",filters:"getWasteTransactionsPageFilter"},reporting:{data:"getWasteTransactionsReportingPage",filters:"getWasteTransactionsReportingPageFilter"}}})},M1=[{title:"Data",to:".."},{title:"Waste Transactions"}],V1="waste-export";function G1(){const e=$1({defaultVariant:"regular",exportFileName:V1}),n=U1({fetchFilters:e.fetchFilters}),t=(0,g.useCallback)(async n=>{const{totalRows:t,rows:a}=await e.fetchData({variables:n});return{rows:a,totalRows:t}},[]);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(iH,{title:"Waste Transactions",defaultExportFileName:V1,breadcrumbs:M1,uploadLink:"../waste/uploads",config:{...n,components:{uploadReference:bH,documentReference:TH}},fetchRows:t})})}const z1=function(e){return(0,fe.jsx)(F1,{...e,dataSection:gn.D_.Electricity,template:{columns:aQ,fileName:"electricity-template",type:Zh.Dynamic},showInvoiceUpload:!0})},W1=function(e){return(0,fe.jsx)(F1,{...e,dataSection:gn.D_.Heatsteam,template:{columns:iQ,fileName:"heatsteam-template",type:Zh.Dynamic}})},q1=function(e){return(0,fe.jsx)(F1,{...e,dataSection:gn.D_.Gas,template:{columns:lQ,fileName:"gas-template",type:Zh.Dynamic},showInvoiceUpload:!0})},J1=function(e){let{...n}=e;return(0,fe.jsx)(F1,{...n,dataSection:gn.D_.Water,template:{columns:rQ,fileName:"water-template",type:Zh.Dynamic},showInvoiceUpload:!0})};var Y1=t(86768),H1=t.n(Y1),K1=t(330),Q1=t.n(K1);function Z1(){const e=(0,C.m)(),n=zo(),t=n?.id,a=n?.accessControls.customFields,{showNotification:i}=tn(),l=async n=>{try{const{data:{getEnergyTransactionsPageFilter:a}}=await e.query({query:Q1(),variables:{accountId:t,field:n.colDef.colId||n.colDef.field,energyType:gn.D_.Gas}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){i(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Meter Name",field:"meterName",filterParams:{values:l,valueFormatter:On}},{headerName:"Location",field:"locationName",filterParams:{values:l,valueFormatter:On}},{field:"energySource.locationPoint.location.code",headerName:"Location Code",colId:"locationCode",filterParams:{values:l,valueFormatter:On}},...Oi(gn.D_.Gas,n?.accessControls),{headerName:"Shared Emission Percentage",field:"locationSharedEmissionPercentage",filter:"agNumberColumnFilter"},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter"},yH,{headerName:"Tags",field:"tags",filterParams:{values:l,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:l,valueFormatter:On}},{headerName:"Supplier",field:"supplier",filterParams:{values:l,valueFormatter:On}},{headerName:"Start Date",field:"startDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter",initialSort:"desc"},{headerName:"End Date",field:"endDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter"},{headerName:"Quantity (kWh)",field:"quantity",filter:"agNumberColumnFilter"},{headerName:"Reading",field:"reading",filter:"agNumberColumnFilter"},{headerName:"Act/Est",field:"accuracy",filterParams:{values:l,valueFormatter:On}},Vi,{headerName:"Total Cost",field:"totalCost",filter:"agNumberColumnFilter"},{headerName:"Total Cost (VAT)",field:"totalCostVat",filter:"agNumberColumnFilter"},{headerName:"Currency Code",field:"currency",filterParams:{values:l,valueFormatter:On}},{headerName:"Total Scope 1 emissions (kgCO2e)",field:"carbonScope1",filter:"agNumberColumnFilter",headerTooltip:"This column shows the total scope 1 emissions associated with the direct combustion of natural gas at a site or in an asset owned or controlled by your organisation."},{headerName:"Total Scope 3 emissions (kgCO2e)",field:"carbonScope3",filter:"agNumberColumnFilter",headerTooltip:"The column shows the scope 3 emissions of your natural gas consumption. If you have uploaded direct (scope 1) natural gas, this scope 3 total shows the Well-to-tank (WTT) emissions of your consumption. WTT emissions are those associated with extraction, refining and transportation of the raw fuel sources to an organisation's site (or asset), prior to combustion. If you uploaded indirect (scope 3) natural gas, this column shows the total scope 3 emissions associated with combustion and WTT"},{headerName:"Scope 1 CO2 in kgCO2e",headerTooltip:"This shows how much CO2 was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",field:"carbonEmissionCO2",filter:"agNumberColumnFilter"},{headerName:"Scope 1 N2O in kgCO2e",headerTooltip:"This shows how much N2O was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",field:"carbonEmissionN2O",filter:"agNumberColumnFilter"},{headerName:"Scope 1 CH4 in kgCO2e",headerTooltip:"This shows how much CH4 was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",field:"carbonEmissionCH4",filter:"agNumberColumnFilter"},{headerName:"Activity",headerTooltip:"This shows if the activity falls under your organisation's direct (company owned emission sources) or indirect (non company owned, employee, contractor or third party emission sources) activities",field:"activity",filterParams:{values:l,valueFormatter:On}},{headerName:"Comment",field:"comment",filter:"agTextColumnFilter"},{headerName:"Invoice Number",field:"invoiceNumber",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Country",field:"energySource.locationPoint.location.address.country.name",colId:"country",filterParams:{values:l,valueFormatter:On}},{headerName:"Region",field:"energySource.locationPoint.location.region.name",colId:"region",filterParams:{values:l,valueFormatter:On}},{headerName:"Evidence Reference",field:"evidenceReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:l,valueFormatter:On}},{headerName:"Factors used",headerTooltip:"The factor set applied to this transaction, click the link to see the factors for this year in more detail",field:"reportingYearOfFactors",cellRenderer:"link",cellRendererParams:{to:"/configuration/carbonconversionfactors/location/gas"},filterParams:{values:l,valueFormatter:On}},...Xi(wi(gn.D_.Gas,a))],reactiveCustomComponents:!0}}const X1=[{title:"Data",to:".."},{title:"Gas Transactions"}];function e2(){const e=(0,C.m)(),n=Z1();return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(iH,{title:"Gas Transactions",defaultExportFileName:"gas-export",breadcrumbs:X1,uploadLink:"../gas/uploads",config:{...n,components:{uploadReference:bH,documentReference:TH,link:hH}},fetchRows:async n=>{const{data:{getGasTransactionsPage:{totalRows:t,rows:a}}}=await e.query({query:H1(),variables:n,fetchPolicy:"network-only"});return{rows:a,totalRows:t}}})})}const n2=S.J1`
  fragment EnergySourceFields on EnergySource {
    id
    name
    locationPoint {
      location {
        code
        region {
          id
          name
        }
        address {
          country {
            name
            alpha2Code
          }
        }
      }
    }
  }
`,t2=S.J1`
  query GetWaterTransactionsPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
    $hiddenColumns: [String!]
  ) {
    getWaterTransactionPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
      hiddenColumns: $hiddenColumns
    ) {
      totalRows
      rows {
        id
        startDate
        endDate
        waterIn
        waterOut
        totalCost
        totalCostVat
        reading
        accuracy
        tariff
        inEmissions
        outEmissions
        carbonEmissionsScope3
        comment
        currency
        invoiceNumber
        evidenceReference
        otherReference
        meterName
        importBatchFileName
        importBatchId
        locationName
        locationCode
        locationEndDate
        locationSharedEmissionPercentage
        locationCustomAttributes
        locationPointName
        tags
        supplier
        departments
        reportingYearOfFactors
        energySource {
          ...EnergySourceFields
        }
        purchaseType
        organisationalUnits
        estimatesScenario
      }
    }
  }
  ${n2}
`;S.J1`
  {
    waterTransactionGridColumns @client {
      id
      displayName
      display
      width
      dataType
      field
      filterable
    }
  }
`,S.J1`
  mutation SwapWaterTransactionColumnDisplay($id: String!) {
    swapWaterTransactionColumnDisplay(id: $id) @client
  }
`,S.J1`
  mutation SetWaterTransactionGridTotalPages($totalPages: Int!) {
    setWaterTransactionGridTotalPages(totalPages: $totalPages) @client
  }
`;var a2=t(59802),i2=t.n(a2);function l2(){const e=(0,C.m)(),n=zo(),t=n?.id,a=n?.accessControls.customFields,{showNotification:i}=tn(),l=async n=>{try{const{data:{getWaterTransactionsPageFilter:a}}=await e.query({query:i2(),variables:{accountId:t,field:n.colDef.colId||n.colDef.field}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){i(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Meter Name",field:"meterName",filterParams:{values:l,valueFormatter:On}},{headerName:"Location",field:"locationName",filterParams:{values:l,valueFormatter:On}},{headerName:"Location Code",field:"locationCode",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:On}},...Oi(gn.D_.Water,n?.accessControls),{headerName:"Shared Emission Percentage",field:"locationSharedEmissionPercentage",filter:"agNumberColumnFilter"},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter"},yH,{headerName:"Tags",field:"tags",filterParams:{values:l,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:l,valueFormatter:On}},{headerName:"Supplier",field:"supplier",filterParams:{values:l,valueFormatter:On}},{headerName:"Start Date",field:"startDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter"},{headerName:"End Date",field:"endDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter"},{headerName:"Water In (m³)",field:"waterIn",filter:"agNumberColumnFilter"},{headerName:"Water Out (m³)",field:"waterOut",filter:"agNumberColumnFilter"},{headerName:"Reading",field:"reading",filter:"agNumberColumnFilter"},{headerName:"Actual/Estimated",field:"accuracy",filterParams:{values:l,valueFormatter:On},valueFormatter:e=>{let{value:n}=e;return"ACT"===n?"Actual":"Estimated"}},Vi,{headerName:"Tariff",field:"tariff",filterParams:{values:l,valueFormatter:On}},{headerName:"Total Cost",field:"totalCost",filter:"agNumberColumnFilter"},{headerName:"Total Cost (VAT)",field:"totalCostVat",filter:"agNumberColumnFilter"},{headerName:"Currency Code",field:"currency",filterParams:{values:l,valueFormatter:On}},{headerName:"Emissions from Water Supply (kgCO2e)",headerTooltip:"Emissions from Water Supply (kgCO2e)",field:"inEmissions",filter:"agNumberColumnFilter"},{headerName:"Emissions from Water Treatment (kgCO2e)",headerTooltip:"Emissions from Water Treatment (kgCO2e)",field:"outEmissions",filter:"agNumberColumnFilter"},{headerName:"Total Scope 3 emissions (kgCO2e)",headerTooltip:"These are the indirect emissions associated with the uploaded activity data",field:"carbonEmissionsScope3",filter:"agNumberColumnFilter"},{headerName:"Comment",field:"comment",filter:"agTextColumnFilter"},{headerName:"Invoice Number",field:"invoiceNumber",filter:"agTextColumnFilter",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Country",field:"energySource.locationPoint.location.address.country.name",colId:"country",filterParams:{values:l,valueFormatter:On}},{headerName:"Region",field:"energySource.locationPoint.location.region.name",colId:"region",filterParams:{values:l,valueFormatter:On}},{headerName:"Evidence Reference",field:"evidenceReference",filter:"agTextColumnFilter",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:l,valueFormatter:On}},{headerName:"Factors used",headerTooltip:"The factor set applied to this transaction, click the link to see the factors for this year in more detail",field:"reportingYearOfFactors",cellRenderer:"factorReference",cellRendererParams:{to:"/configuration/carbonconversionfactors/location/water"},filter:!1},...Xi(wi(gn.D_.Water,a))],reactiveCustomComponents:!0}}const r2=[{title:"Data",to:".."},{title:"Water Transactions"}];function o2(){const e=(0,C.m)(),n=l2();return(0,fe.jsx)(iH,{title:"Water Transactions",defaultExportFileName:"water-export",breadcrumbs:r2,uploadLink:"../water/uploads",config:{...n,components:{uploadReference:bH,documentReference:TH,factorReference:hH}},fetchRows:async n=>{const{data:{getWaterTransactionPage:{totalRows:t,rows:a}}}=await e.query({query:t2,variables:n,fetchPolicy:"network-only"});return{rows:a,totalRows:t}}})}function s2(e){let{fetchFilters:n}=e;const t=Je(),a=zo(),i=a?.accessControls.customFields,{showNotification:l}=tn(),r=async e=>{try{const a=await n({variables:{accountId:t,field:e.colDef.colId||e.colDef.field}});e.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){l(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Date",field:"date",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter",headerTooltip:"Date",sort:"desc"},{headerName:"Location",field:"location.name",colId:"locationName",filterParams:{values:r,valueFormatter:On}},{headerName:"Location Code",field:"locationCode",filterParams:{values:r,valueFormatter:On}},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter",valueFormatter:Vn},...Oi(gn.D_.Transport,a?.accessControls),{...yH,field:"location.endDate"},{headerName:"Tags",field:"tags",filterParams:{values:r,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:r,valueFormatter:On}},{headerName:"Data Provider",field:"dataProvider",filterParams:{values:r,valueFormatter:On}},{headerName:"Type",field:"type",filter:"agSetColumnFilter",filterParams:{values:r,valueFormatter:On}},{headerName:"Sub Type",field:"subtype",filter:"agSetColumnFilter",filterParams:{values:r,valueFormatter:On}},{headerName:"Fuel Type",field:"fuelType",filterParams:{values:r,valueFormatter:On}},{headerName:"Origin of Travel",field:"origin",filterParams:{values:r,valueFormatter:On}},{headerName:"Destination of Travel",field:"destination",filterParams:{values:r,valueFormatter:On}},{headerName:"Volume",field:"volume",filter:"agNumberColumnFilter"},{headerName:"Volume Unit",field:"volumeUnit",filterParams:{values:r,valueFormatter:On}},{headerName:"Number of Journeys",field:"numberOfJourneys",filter:"agNumberColumnFilter"},{headerName:"Journey Distance",field:"journeyDistance",filter:"agNumberColumnFilter"},{headerName:"Total Distance",field:"distance",filter:"agNumberColumnFilter"},{headerName:"Distance Unit",field:"distanceUnit",filterParams:{values:r,valueFormatter:On}},{headerName:"Freight (tonne.km)",field:"freight",filter:"agNumberColumnFilter"},{headerName:"Carrier",field:"carrier",filterParams:{values:r,valueFormatter:On}},{headerName:"Purpose of Journey",field:"purpose",filterParams:{values:r,valueFormatter:On}},{headerName:"Cost",field:"cost",filter:"agNumberColumnFilter"},{headerName:"Cost (VAT)",field:"costVat",filter:"agNumberColumnFilter"},{headerName:"Currency Code",field:"currency",filterParams:{values:r,valueFormatter:On}},{headerName:"Act/Est",field:"accuracy",filterParams:{values:r,valueFormatter:On}},Vi,{headerName:"Total Scope 1 emissions - fuel use (kgCO2e)",headerTooltip:"These are the direct emissions associated with the uploaded activity data",field:"carbonEmissionsScope1",filter:"agNumberColumnFilter"},{headerName:"Scope 2 emissions for EV electricity' (kgCO2e)",headerTooltip:"These are the indirect emissions associated with the uploaded activity data",field:"carbonEmissionsScope2",filter:"agNumberColumnFilter"},{headerName:"Scope 3 emissions from fuel use (kgCO2e)",headerTooltip:"These are the indirect emissions associated with the uploaded activity data",field:"carbonEmissionsScope3Indirect",filter:"agNumberColumnFilter"},{headerName:"Scope 3 WTT emissions (kgCO2e)",headerTooltip:"This column calculates the scope 3 (indirect) Well-to-tank (WTT) emissions associated with extraction, refining and transportation of the raw fuels before they are used to power the transport mode",field:"carbonEmissionsScope3WTT",filter:"agNumberColumnFilter"},{headerName:"Scope 3 T&D emissions (kgCO2e) associated with EV electricity",headerTooltip:"This column calculates the scope 3 (indirect) Transmission and Distribution (T&D) emissions associated with losses of the electricity used by electric vehicles, which occur between the power station and their site(s)/public recharging points",field:"carbonEmissionsScope3TD",filter:"agNumberColumnFilter"},{headerName:"Total Scope 3 emissions (kgCO2e)",headerTooltip:"This column is the sum of all scope 3 (indirect) emissions associated with this transport transaction (Fuel use, WTT, and T&D)",field:"carbonEmissionsScope3",filter:"agNumberColumnFilter"},{headerName:"Scope 1 CO2 in kgCO2e from direct fuel use",headerTooltip:"This shows how much CO2 was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",field:"carbonEmissionCO2",filter:"agNumberColumnFilter"},{headerName:"Scope 1 N2O in kgCO2e from direct fuel use",headerTooltip:"This shows how much N2O was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",field:"carbonEmissionN2O",filter:"agNumberColumnFilter"},{headerName:"Scope 1 CH4 in kgCO2e from direct fuel use",headerTooltip:"This shows how much CH4 was emitted in terms of CO2e (Converted to CO2e via the IPCC's Global warming potentials to show emissions from various GHGs in a common unit of CO2e)",field:"carbonEmissionCH4",filter:"agNumberColumnFilter"},{headerName:"Activity",headerTooltip:"This shows if the activity falls under your organisation's direct (company owned emission sources) or indirect (non company owned, employee, contractor or third party emission sources) activities",field:"activity",filterParams:{values:r,valueFormatter:On}},{headerName:"Document Reference",field:"documentReference",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Notes",field:"notes",filter:"agTextColumnFilter"},{headerName:"Country",field:"location.address.country.name",colId:"country",filterParams:{values:r,valueFormatter:On}},{headerName:"Region",field:"location.region.name",colId:"region",filterParams:{values:r,valueFormatter:On}},{headerName:"Reference",field:"reference",filter:"agTextColumnFilter"},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:r,valueFormatter:On}},...Xi(wi(gn.D_.Transport,i))],reactiveCustomComponents:!0}}const d2=S.J1`
  fragment TransportTransactionFields on TransportTransaction {
    id
    date
    location {
      ...LocationFields
    }
    locationCode
    locationSharedEmissionPercentage
    locationCustomAttributes
    type
    subtype
    fuelType
    purpose
    reference
    origin
    destination
    volume
    volumeUnit
    distance
    numberOfJourneys
    journeyDistance
    distanceUnit
    freight
    carrier
    dataProvider
    activity
    cost
    costVat
    currency
    accuracy
    documentReference
    carbonEmissionsScope1
    carbonEmissionsScope2
    carbonEmissionsScope3Indirect
    carbonEmissionsScope3WTT
    carbonEmissionsScope3
    carbonEmissionCO2
    carbonEmissionN2O
    carbonEmissionCH4
    carbonEmissionsScope3TD
    notes
    importBatchId
    importBatchFileName
    tags
    departments
    purchaseType
    organisationalUnits
    estimatesScenario
  }
  ${Rs}
`,c2=S.J1`
  query GetTransportTransactionPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
    $hiddenColumns: [String!]
  ) {
    getTransportTransactionPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
      hiddenColumns: $hiddenColumns
    ) {
      totalRows
      rows {
        ...TransportTransactionFields
      }
    }
  }
  ${d2}
`,u2=S.J1`
  query GetTransportTransactionsPageFilter($accountId: ID!, $field: String!) {
    getTransportTransactionsPageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,p2=S.J1`
  query GetTransportTransactionReportingPageFilter($accountId: ID!, $field: String!) {
    getTransportTransactionReportingPageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,m2=S.J1`
  query GetTransportTransactionReportingPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
    $hiddenColumns: [String!]
  ) {
    getTransportTransactionReportingPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
      hiddenColumns: $hiddenColumns
    ) {
      totalRows
      datasetName
      rows {
        ...TransportTransactionFields
      }
    }
  }
  ${d2}
`,f2=(S.J1`
  {
    transportTransactionGridColumns @client {
      id
      displayName
      display
      width
      dataType
      field
      filterable
    }
  }
`,S.J1`
  mutation SwapTransportTransactionColumnDisplay($id: String!) {
    swapTransportTransactionColumnDisplay(id: $id) @client
  }
`,S.J1`
  mutation SetWaterTransactionGridTotalPages($totalPages: Int!) {
    setTransportTransactionGridTotalPages(totalPages: $totalPages) @client
  }
`,e=>{let{defaultVariant:n,exportFileName:t}=e;return dd({defaultVariant:n,exportFileName:t,enableHiddenColumns:!0,datasetName:"TransportTransactionPage",regularQuery:c2,reportingQuery:m2,regularFiltersQuery:u2,reportingFiltersQuery:p2,mapping:{regular:{data:"getTransportTransactionPage",filters:"getTransportTransactionsPageFilter"},reporting:{data:"getTransportTransactionReportingPage",filters:"getTransportTransactionReportingPageFilter"}}})}),y2=[{title:"Data",to:".."},{title:"Transport Transactions"}],g2="transport-export",h2=function(){const{fetchData:e,fetchFilters:n}=f2({defaultVariant:"regular",exportFileName:g2}),t=s2({fetchFilters:n}),a=(0,g.useCallback)(async n=>{const{totalRows:t,rows:a}=await e({variables:n});return{rows:a,totalRows:t}},[]);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(iH,{title:"Transport Transactions",defaultExportFileName:g2,breadcrumbs:y2,uploadLink:"../transport/uploads",config:{...t,components:{uploadReference:bH,documentReference:TH}},fetchRows:a})})};function x2(e){let{...n}=e;return(0,fe.jsx)(F1,{...n,dataSection:gn.D_.Transport,template:{type:Zh.Static,fileName:"advanced-transport-template",url:FX}})}const T2=S.J1`
  query GetFuelTransactionsPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {
    getFuelTransactionPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        locationName
        locationCode
        locationEndDate
        locationSharedEmissionPercentage
        tags
        date
        fuelActivityName
        fuelType
        quantity
        unit
        accuracy
        totalCost
        currency
        carbonScope1
        carbonScope3
        carbonEmissionScope3WTT
        kgCO2Scope1
        kgCO2Scope3
        kgCH4Scope1
        kgCH4Scope3
        kgN2OScope1
        kgN2OScope3
        energyConsumption
        activity
        comment
        invoiceNumber
        evidenceReference
        otherReference
        importBatchId
        importBatchFileName
        departments
        supplier
        location {
          ...LocationFields
        }
        purchaseType
        organisationalUnits
        estimatesScenario
      }
    }
  }
  ${Rs}
`;S.J1`
  query GetRefrigerantTransactionsPageFilter($accountId: ID!, $field: String!) {
    getRefrigerantTransactionsPageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`;var b2=t(6166),v2=t.n(b2);function C2(){const e=(0,C.m)(),n=zo(),t=n?.id,a=n?.accessControls.customFields,{showNotification:i}=tn(),l=async n=>{try{const{data:{getFuelTransactionsPageFilter:a}}=await e.query({query:v2(),variables:{accountId:t,field:n.colDef.colId||n.colDef.field}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){i(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Location",field:"locationName",filterParams:{values:l,valueFormatter:On}},{headerName:"Location Code",field:"locationCode",filterParams:{values:l,valueFormatter:On}},...Oi(gn.D_.Fuel,n?.accessControls),{headerName:"Shared Emission Percentage",field:"locationSharedEmissionPercentage",filter:"agNumberColumnFilter"},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter"},yH,{headerName:"Tags",field:"tags",filterParams:{values:l,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:l,valueFormatter:On}},{headerName:"Supplier",field:"supplier",filterParams:{values:l,valueFormatter:On}},{headerName:"Date",field:"date",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter",initialSort:"desc"},{headerName:"Fuel Activity",field:"fuelActivityName",filterParams:{values:l,valueFormatter:On}},{headerName:"Fuel Type",field:"fuelType",filterParams:{values:l,valueFormatter:On}},{headerName:"Quantity",field:"quantity",filter:"agNumberColumnFilter",headerTooltip:"Quantity"},{headerName:"Quantity Units",field:"unit",filterParams:{values:l,valueFormatter:On}},{headerName:"Energy (kWh)",field:"energyConsumption",filter:"agNumberColumnFilter"},{headerName:"Act/Est",field:"accuracy",filterParams:{values:l,valueFormatter:On}},Vi,{headerName:"Total Cost",field:"totalCost",filter:"agNumberColumnFilter"},{headerName:"Currency",field:"currency",filterParams:{values:l,valueFormatter:On}},{headerName:"Carbon Emission Scope 1 (kgCO2e)",field:"carbonScope1",filter:"agNumberColumnFilter",headerTooltip:"These are the direct emissions associated with the uploaded activity data"},{headerName:"Carbon Emission Scope 3 (kgCO2e)",field:"carbonScope3",filter:"agNumberColumnFilter",headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Scope 3 WTT",field:"carbonEmissionScope3WTT",filter:"agNumberColumnFilter",headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Scope 1 kgCO2",field:"kgCO2Scope1",filter:"agNumberColumnFilter",initialHide:!0,headerTooltip:"These are the direct emissions associated with the uploaded activity data"},{headerName:"Scope 3 kgCO2",field:"kgCO2Scope3",filter:"agNumberColumnFilter",initialHide:!0,headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Scope 1 kgCH4",field:"kgCH4Scope1",filter:"agNumberColumnFilter",initialHide:!0,headerTooltip:"These are the direct emissions associated with the uploaded activity data"},{headerName:"Scope 3 kgCH4",field:"kgCH4Scope3",filter:"agNumberColumnFilter",initialHide:!0,headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Scope 1 kgN2O",field:"kgN2OScope1",filter:"agNumberColumnFilter",initialHide:!0,headerTooltip:"These are the direct emissions associated with the uploaded activity data"},{headerName:"Scope 3 kgN2O",field:"kgN2OScope3",filter:"agNumberColumnFilter",initialHide:!0,headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Activity",headerTooltip:"This shows if the activity falls under your organisation's direct (company owned emission sources) or indirect (non company owned, employee, contractor or third party emission sources) activities",field:"activity",filterParams:{values:l,valueFormatter:On}},{headerName:"Comment",field:"comment",filter:"agTextColumnFilter"},{headerName:"Invoice Number",field:"invoiceNumber",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Country",field:"location.address.country.name",colId:"country",filterParams:{values:l,valueFormatter:On}},{headerName:"Region",field:"location.region.name",colId:"region",filterParams:{values:l,valueFormatter:On}},{headerName:"Evidence Reference",field:"evidenceReference",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filter:"agTextColumnFilter",cellRenderer:"documentReference"},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:l,valueFormatter:On}},...Xi(wi(gn.D_.Fuel,a))],reactiveCustomComponents:!0}}const k2=[{title:"Data",to:".."},{title:"Fuel Transactions"}];function S2(){const e=(0,C.m)(),n=C2();return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(iH,{title:"Fuel Transactions",defaultExportFileName:"fuel-export",breadcrumbs:k2,uploadLink:"../fuel/uploads",config:{...n,components:{uploadReference:bH,documentReference:TH}},fetchRows:async n=>{const{data:{getFuelTransactionPage:{totalRows:t,rows:a}}}=await e.query({query:T2,variables:n,fetchPolicy:"network-only"});return{rows:a,totalRows:t}}})})}function N2(e){let{...n}=e;return(0,fe.jsx)(F1,{...n,dataSection:gn.D_.Fuel,dromoConfiguration:NC.fuel,template:{columns:sQ,fileName:"fuel-template",type:Zh.Dynamic}})}const A2=S.J1`
  query GetMaterialsTransactionsPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getMaterialsTransactionsPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        locationName
        locationCode
        locationEndDate
        locationSharedEmissionPercentage
        locationCustomAttributes
        date
        activity
        material
        origin
        supplier
        productCode
        unitsQuantity
        weight
        quantityUnit
        totalCost
        totalCostVat
        currency
        accuracy
        notes
        reference
        invoiceNumber
        evidenceReference
        otherReference
        tags
        carbonScope3
        carbonScope1
        importBatchId
        importBatchFileName
        departments
        location {
          ...LocationFields
        }
        materialSubcategory
        materialDetails
        materialDescription
        subcontractor
        distanceToLocation
        purchaseType
        percentRecycledContent
        numberOfDeliveries
        certificationOrigin
        organisationalUnits
        estimatesScenario
      }
    }
  }
  ${Rs}
`;var R2=t(91512),D2=t.n(R2);function L2(){const e=(0,C.m)(),n=zo(),t=n?.id,a=n?.accessControls.customFields,{showNotification:i}=tn(),l=async n=>{try{const{data:{getMaterialsTransactionsPageFilter:a}}=await e.query({query:D2(),variables:{accountId:t,field:n.colDef.colId||n.colDef.field}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){i(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Location",field:"locationName",filterParams:{values:l,valueFormatter:On}},{headerName:"Location Code",field:"locationCode",filterParams:{values:l,valueFormatter:On}},...Oi(gn.D_.Materials,n?.accessControls),{headerName:"Shared Emission Percentage",field:"locationSharedEmissionPercentage",filter:"agNumberColumnFilter"},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter"},yH,{headerName:"Date",field:"date",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter",initialSort:"desc"},{headerName:"Activity",headerTooltip:"This shows if the activity falls under your organisation's direct (company owned emission sources) or indirect (non company owned, employee, contractor or third party emission sources) activities",field:"activity",filterParams:{values:l,valueFormatter:On}},{headerName:"Material",field:"material",filterParams:{values:l,valueFormatter:On}},{headerName:"Material Subcategory",field:"materialSubcategory",filter:"agTextColumnFilter"},{headerName:"Material Description",field:"materialDescription",filter:"agTextColumnFilter"},{headerName:"Material Details",field:"materialDetails",filter:"agTextColumnFilter"},{headerName:"Origin",field:"origin",filterParams:{values:l,valueFormatter:On}},{headerName:"Supplier",field:"supplier",filterParams:{values:l,valueFormatter:On}},{headerName:"Subcontractor",field:"subcontractor",filterParams:{values:l,valueFormatter:On}},{headerName:"Product Code",field:"productCode",filterParams:{values:l,valueFormatter:On}},{headerName:"Units Quantity",field:"unitsQuantity",filter:"agNumberColumnFilter"},{headerName:"Weight",field:"weight",filter:"agNumberColumnFilter"},{headerName:"Quantity Unit",field:"quantityUnit",filterParams:{values:l,valueFormatter:On}},{headerName:"Distance to Location (km)",field:"distanceToLocation",filter:"agNumberColumnFilter"},{headerName:"Total Cost",field:"totalCost",filter:"agNumberColumnFilter"},{headerName:"Total Cost (VAT)",field:"totalCostVat",filter:"agNumberColumnFilter"},{headerName:"Carbon Emission Scope 1 (kgCO2e)",field:"carbonScope1",filter:"agNumberColumnFilter",hide:!0,headerTooltip:"These are the direct emissions associated with the uploaded activity data"},{headerName:"Embodied Carbon (kgCO2e)",field:"carbonScope3",filter:"agNumberColumnFilter",headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Currency Code",field:"currency",filterParams:{values:l,valueFormatter:On}},{headerName:"Act/Est",field:"accuracy",filterParams:{values:l,valueFormatter:On}},Vi,{headerName:"Tags",field:"tags",filterParams:{values:l,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:l,valueFormatter:On}},{headerName:"Notes",field:"notes",filter:"agTextColumnFilter"},{headerName:"Reference",field:"reference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Invoice Number",field:"invoiceNumber",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Country",field:"location.address.country.name",colId:"country",filterParams:{values:l,valueFormatter:On}},{headerName:"Region",field:"location.region.name",colId:"region",filterParams:{values:l,valueFormatter:On}},{headerName:"Evidence Reference",field:"evidenceReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:l,valueFormatter:On}},...Xi(wi(gn.D_.Materials,a)),{headerName:"% Recycled Content",field:"percentRecycledContent",filter:"agNumberColumnFilter"},{headerName:"Number of Deliveries",field:"numberOfDeliveries",filter:"agNumberColumnFilter"},{headerName:"Origin of Certification",field:"certificationOrigin",filter:"agSetColumnFilter",filterParams:{values:pt.certificationOrigins}}],reactiveCustomComponents:!0}}const I2=()=>{const e=(0,C.m)(),n=L2();return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(iH,{title:"Materials Transactions",defaultExportFileName:"materials-export",breadcrumbs:[{title:"Data",to:".."},{title:"Materials Transactions"}],uploadLink:"../materials/uploads",config:{...n,components:{documentReference:TH,uploadReference:bH}},fetchRows:async n=>{const{data:{getMaterialsTransactionsPage:{totalRows:t,rows:a}}}=await e.query({query:A2,variables:n,fetchPolicy:"network-only"});return{rows:a,totalRows:t}}})})},j2=function(e){return(0,fe.jsx)(F1,{...e,dataSection:gn.D_.Materials,template:[{columns:dQ,type:Zh.Dynamic,name:"Simple",fileName:"simple-materials-template"},{type:Zh.Static,name:"Advanced",fileName:"advanced-materials-template",url:RX}]})},w2=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,O2=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,E2=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,_2=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,F2=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -354px;
    left: 50%;
  }
`,P2=e=>{let{heading:n,isSubmitting:t,upload:a,setUpload:i}=e;const l=e=>{i({...a,[e.target.name]:e.target.value})};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(E2,{size:"lg",children:n}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_2,{item:!0,children:[(0,fe.jsx)(O2,{children:(0,fe.jsx)(w2,{children:"Meter Name"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"meterName",value:a.meterName,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_2,{item:!0,children:[(0,fe.jsx)(O2,{children:(0,fe.jsx)(w2,{children:"Invoice Number"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"invoiceNumber",value:a.invoiceNumber,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_2,{item:!0,children:[(0,fe.jsx)(O2,{children:(0,fe.jsx)(w2,{children:"Quantity"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"quantity",value:a.quantity,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_2,{item:!0,children:[(0,fe.jsx)(O2,{children:(0,fe.jsx)(w2,{children:"Start Date"})}),(0,fe.jsx)(F2,{disabled:t,onDayClick:e=>{l({target:{value:e?e.toISOString():e,name:"startDate"}})},name:"startDate",selectedDate:a.startDate?new Date(a.startDate):a.startDate,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_2,{item:!0,children:[(0,fe.jsx)(O2,{children:(0,fe.jsx)(w2,{children:"End Date"})}),(0,fe.jsx)(F2,{disabled:t,onDayClick:e=>{l({target:{value:e?e.toISOString():e,name:"endDate"}})},name:"endDate",selectedDate:a.endDate?new Date(a.endDate):a.endDate,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(_2,{item:!0,children:[(0,fe.jsx)(O2,{children:(0,fe.jsx)(w2,{children:"Total Cost"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"totalCost",value:a.totalCost,box:!0})]})})]})},B2=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,U2=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,$2=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,M2=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,V2=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -354px;
    left: 50%;
  }
`,G2=e=>{let{heading:n,isSubmitting:t,upload:a,setUpload:i}=e;const l=e=>{i({...a,[e.target.name]:e.target.value})};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)($2,{size:"lg",children:n}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(M2,{item:!0,children:[(0,fe.jsx)(U2,{children:(0,fe.jsx)(B2,{children:"Meter Name"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"meterName",value:a.meterName,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(M2,{item:!0,children:[(0,fe.jsx)(U2,{children:(0,fe.jsx)(B2,{children:"Invoice Number"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"invoiceNumber",value:a.invoiceNumber,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(M2,{item:!0,children:[(0,fe.jsx)(U2,{children:(0,fe.jsx)(B2,{children:"Reading"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"reading",value:a.reading,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(M2,{item:!0,children:[(0,fe.jsx)(U2,{children:(0,fe.jsx)(B2,{children:"Quantity"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"quantity",value:a.quantity,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(M2,{item:!0,children:[(0,fe.jsx)(U2,{children:(0,fe.jsx)(B2,{children:"Tariff"})}),(0,fe.jsx)(ie.ks,{disabled:t,onChange:e=>l(e),name:"tariff",value:a.tariff,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(M2,{item:!0,children:[(0,fe.jsx)(U2,{children:(0,fe.jsx)(B2,{children:"Start Date"})}),(0,fe.jsx)(V2,{disabled:t,onDayClick:e=>{l({target:{value:e?e.toISOString():e,name:"startDate"}})},name:"startDate",selectedDate:a.startDate?new Date(a.startDate):a.startDate,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(M2,{item:!0,children:[(0,fe.jsx)(U2,{children:(0,fe.jsx)(B2,{children:"End Date"})}),(0,fe.jsx)(V2,{disabled:t,onDayClick:e=>{l({target:{value:e?e.toISOString():e,name:"endDate"}})},name:"endDate",selectedDate:a.endDate?new Date(a.endDate):a.endDate,box:!0})]})})]})},z2=le.default.div`
  padding: 20px;
`,W2=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,q2=e=>{let{onDismiss:n,selectedUpload:t,onComplete:a,utility:i}=e;const[l,r]=(0,g.useState)(t),o=(0,C.m)();return(0,fe.jsx)(ie.aF,{size:"md",show:!0,onDismiss:()=>n(),children:(0,fe.jsxs)(z2,{children:[i!==gn.D_.Water&&(0,fe.jsx)(P2,{heading:"Review OCR Results",upload:l,setUpload:r}),i===gn.D_.Water&&(0,fe.jsx)(G2,{heading:"Review OCR Results",upload:l,setUpload:r}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(W2,{item:!0,children:(0,fe.jsx)(ie.$n,{onClick:async()=>{try{const e=i===gn.D_.Water?((e,n)=>{const t=[];return t.push([e.meterName,e.startDate,e.endDate,e.reading,e.quantity,"act",e.tariff,"GBP","",e.invoiceNumber.toString(),"",n.split(".")[0]]),t})(l,t.fileName):((e,n)=>{const t=[];return t.push([e.meterName,e.startDate,e.endDate,e.quantity,"act",e.totalCost,"GBP","",e.invoiceNumber,"",n.split(".")[0]]),t})(l,t.fileName),r=i===gn.D_.Water?await da(e,t.fileName,rQ):await da(e,t.fileName,lQ),{data:{initiateDataUpload:{signedUrl:s}}}=await o.mutate({mutation:Ed(),variables:{transactionType:i.toUpperCase(),accountId:l.accountId,fileName:r.name,isDirectActivity:!0}});await o.mutate({mutation:wd(),variables:{file:r,fileName:r.name,accId:l.accountId,url:s}}),await o.mutate({mutation:cX,variables:{id:t.id},refetchQueries:["GetOcrDataForAccount"]}),a({colour:"success",message:"Transaction uploaded. Check uploads page to view progress."}),n()}catch(e){a({colour:"danger",message:"Something went wrong. Please try again later or contact support."})}},children:"Accept Results"})})})]})})},J2=le.default.div`
  flex: 1 1 auto;
  background-color: ${e=>e.theme.colors.basic.white};
  overflow-x: hidden;
`,Y2=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing} ${e.theme.geometry.md.spacing}`};
  background: ${e=>e.theme.colors.overlay.light.background};
  border-top: 1px solid ${e=>e.theme.colors.text.light.background};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  flex: 0 0 auto;
`,H2=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
  background-color: white;
`,K2=le.default.div`
  background-color: ${e=>e.theme.colors[e.colour].normal.background};
  color: white;
  padding: 5px 10px;
  text-align: center;
  display: inline-block;
  border-radius: 20px;
  cursor: pointer;
`;function Q2(e){let{ocrData:n,onEdit:t}=e;return(0,fe.jsxs)(H2,{name:`upload-row--${n.id}`,container:!0,itemAlign:"center",id:n.id,children:[(0,fe.jsx)(ie.fv,{span:2,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{align:"left",name:`upload-row__date--${n.id}`,children:(a=n.uploadedAt,bn()(a).local().format("DD/MM/YYYY"))})}),(0,fe.jsx)(ie.fv,{span:2,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{align:"left",name:`upload-row__name--${n.id}`,children:n.fileName})}),(0,fe.jsx)(ie.fv,{span:3,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{align:"left",name:`upload-user--${n.id}`,children:`${n.uploadedBy.first_name} ${n.uploadedBy.last_name}`})}),(0,fe.jsx)(ie.fv,{span:2,container:!0,item:!0,children:(0,fe.jsx)(p.Link,{to:`/documents/all/${n.id}`,target:"__blank",children:(0,fe.jsx)(ie.In,{name:"upload-row__link",icon:"external-link-alt"})})}),(0,fe.jsx)(ie.fv,{span:2.5,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{align:"left",name:`upload-row__subject--${n.id}`,children:(0,fe.jsx)(K2,{colour:"primary",onClick:()=>t(n),children:"Review Upload"})})})]});var a}function Z2(e){let{uploads:n,onEdit:t}=e;return(0,fe.jsxs)(J2,{children:[(0,fe.jsxs)(Y2,{container:!0,align:"between",children:[(0,fe.jsx)(ie.fv,{span:2,item:!0,container:!0,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"Upload Date"})}),(0,fe.jsx)(ie.fv,{span:2,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"File Name"})}),(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"User"})}),(0,fe.jsx)(ie.fv,{span:2,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"Document Link"})}),(0,fe.jsx)(ie.fv,{span:2.5,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"Review"})})]}),n&&n.map(e=>(0,fe.jsx)(Q2,{ocrData:e,onEdit:t},e.id))]})}const X2=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,e5=le.default.div`
  overflow: auto;
  margin: 32px 48px 0 48px;
  padding-right: ${e=>e.theme.geometry.sm.spacing};
`,n5=e=>{let{utility:n}=e;const t=Je(),{showNotification:a}=tn(),[i,l]=(0,g.useState)(null),r=(0,x.IT)(dX,{variables:{accountId:t,utility:n},pollInterval:5e3}),o=(0,g.useCallback)(e=>{let{getOcrDataForAccount:n}=e;return n.length?(0,fe.jsx)(e5,{children:(0,fe.jsx)(Z2,{uploads:n,onEdit:e=>l(e)})}):(0,fe.jsx)(Fu,{title:"There are currently no OCR results to review."})},[]),s=(0,g.useCallback)(e=>a(e,"success"),[a]),d=(0,g.useCallback)(()=>l(null),[l]),c=hn.startCase(n.toLowerCase()),u=`${c} OCR Review`,p=`/data/${n.toLowerCase()}/uploads`;return(0,fe.jsxs)(X2,{children:[(0,fe.jsx)(xV,{name:"Ocr_Header",title:u,breadcrumbs:[{title:"Data",to:".."},{title:`${c} Data Uploads`,to:p},{title:u}],icon:"microscope",iconColor:"quaternary",children:(0,fe.jsxs)(ie.$n,{inline:!0,component:"routerLink",color:"info",to:p,children:["View ",hn.startCase(n.toLowerCase())," Uploads"]})}),(0,fe.jsx)(Mc,{result:r,data:o}),i&&(0,fe.jsx)(q2,{onDismiss:d,selectedUpload:i,onComplete:s,utility:n})]})},t5=S.J1`
  query GetBuildingEnergyRatingsByAccountId(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getBuildingEnergyRatingsByAccountId(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        location {
          id
          name
          code
          endDate
          tags {
            id
            tagName
          }
          departments {
            id
            name
          }
          address {
            country {
              id
              name
            }
          }
        }
        heatingFuelType
        nominatedDate
        rating
        score
        dataProvider
        buildingEnvironment
        gia
        issueDate
        certificateValidTo
        certificateReferenceNumber
        otherReference
        resurveyed
        comments
        type
        block
      }
    }
  }
`,a5=S.J1`
  query GetBuildingEnergyRatingsFilter($accountId: ID!, $field: String!) {
    getBuildingEnergyRatingsFilter(accountId: $accountId, field: $field)
  }
`;function i5(){const e=Je(),{showNotification:n}=tn(),[t]=(0,Ul._)(a5),a=(0,g.useCallback)(async a=>{try{const n=a.colDef.refData?.filterBy||a.colDef.field,{data:i}=await t({variables:{accountId:e,field:n}});i?.getBuildingEnergyRatingsFilter&&a.success(i.getBuildingEnergyRatingsFilter)}catch(e){n(`Couldn't load filter values for column "${a.colDef.headerName}"`,"warning")}},[e,n,t]);return(0,g.useMemo)(()=>({getRowId:Gn("id"),columnDefs:[{headerName:"Location",field:"location.name",filterParams:{values:a}},{headerName:"Block",field:"block",filterParams:{values:a}},{headerName:"Location Code",field:"location.code",refData:{filterBy:"locationCode"},filterParams:{values:a}},{...yH,field:"location.endDate"},{headerName:"Rating",field:"rating",filterParams:{values:a}},{headerName:"Score",field:"score",filter:"agNumberColumnFilter"},{headerName:"Type of heating fuel",field:"heatingFuelType",filterParams:{values:a}},{headerName:"Data Provider",field:"dataProvider",filterParams:{values:a,valueFormatter:On}},{headerName:"Department(s)",field:"location.departments",refData:{filterBy:"location.departments.name"},valueFormatter:e=>{let{value:n}=e;return Array.isArray(n)?n.map(e=>{let{name:n}=e;return n}).join(", "):""},filterParams:{values:a,valueFormatter:On}},{headerName:"Tag(s)",field:"location.tags",refData:{filterBy:"location.tags.tagName"},valueFormatter:e=>{let{value:n}=e;return Array.isArray(n)?n.filter(Boolean).map(e=>{let{tagName:n}=e;return n}).join(", "):""},filterParams:{values:a,valueFormatter:On}},{headerName:"Country",field:"location.address.country.name",filterParams:{values:a}},{headerName:"Region",field:"location.region.name",filterParams:{values:a}},{headerName:"Nominated date",field:"nominatedDate",filter:"agDateColumnFilter",valueFormatter:_n},{headerName:"Issue date",field:"issueDate",filter:"agDateColumnFilter",valueFormatter:_n},{headerName:"Valid to",field:"certificateValidTo",filter:"agDateColumnFilter",valueFormatter:_n},{headerName:"Certificate Reference number",field:"certificateReferenceNumber",filter:"agTextColumnFilter"},{headerName:"Building environment",field:"buildingEnvironment",filter:"agTextColumnFilter"},{headerName:"GIA",field:"gia",filter:"agNumberColumnFilter"},{headerName:"Resurveyed",field:"resurveyed",filter:!1,valueFormatter:En},{headerName:"Other Reference",field:"otherReference",filter:"agTextColumnFilter"},{headerName:"Comments",field:"comments",filter:"agTextColumnFilter"},{headerName:"Type",field:"type",filterParams:{values:a}}]}),[a])}function l5(){return ed(t5)}const r5=[{title:"Data",to:".."},{title:"Building Energy Ratings"}],o5=()=>{const e=i5(),[n]=l5(),t=(0,g.useCallback)(async e=>{const{data:t}=await n({variables:e});if(t){const{getBuildingEnergyRatingsByAccountId:{totalRows:e,rows:n}}=t;return{rows:n,totalRows:e}}throw new Error("Couldn't fetch building energy ratings")},[n]);return(0,fe.jsx)(iH,{title:"Building Energy Ratings",defaultExportFileName:"building-energy-ratings",breadcrumbs:r5,config:e,fetchRows:t})},s5=S.J1`
  query GetHotelStaysTransactionsPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getHotelStaysTransactionsPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      rows {
        id
        startDate
        endDate
        hotelNights
        homeWorkingDays
        totalCost
        currency
        notes
        reference
        invoiceNumber
        evidenceReference
        otherReference
        carbonScope3
        uploadReference
        importBatchId
        importBatchFileName
        country
        tariff
        dataProvider
        accuracy
        tags
        departments
        location {
          ...LocationFields
        }
        locationSharedEmissionPercentage
        locationCustomAttributes
        reportingYearOfHSFactors
        reportingYearOfWFHFactors
        purchaseType
        organisationalUnits
        estimatesScenario
      }
      totalRows
    }
  }
  ${Rs}
`,d5=S.J1`
  query GetHotelStaysTransactionsPageFilter($accountId: ID!, $field: String!) {
    getHotelStaysTransactionsPageFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`;function c5(){const e=(0,C.m)(),n=Je(),{showNotification:t}=tn(),a=zo(),i=a?.accessControls?.customFields,l=(0,g.useCallback)(async a=>{try{const{data:{getHotelStaysTransactionsPageFilter:t}}=await e.query({query:d5,variables:{accountId:n,energyType:gn.D_.Hotelstays,field:a.colDef.colId||a.colDef.field}});a.success(t.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){t(`Couldn't load filter values for column "${a.colDef.headerName}"`,"warning")}},[n,e,t]),r=(0,g.useCallback)(e=>{let{value:n}=e;return Sn(n)},[]);return(0,g.useMemo)(()=>({getRowId:Gn("id"),columnDefs:[{headerName:"Start Date",field:"startDate",valueFormatter:r,cellStyle:{textAlign:"center"},filter:"agDateColumnFilter",initialSort:"desc"},{headerName:"End Date",field:"endDate",valueFormatter:r,cellStyle:{textAlign:"center"},filter:"agDateColumnFilter"},{headerName:"Location",colId:"locationName",field:"location.name",filterParams:{values:l,valueFormatter:On}},...Oi(gn.D_.Hotelstays,a?.accessControls),{headerName:"Hotel Nights",field:"hotelNights",filter:"agNumberColumnFilter"},{headerName:"Home Working Days",field:"homeWorkingDays",filter:"agNumberColumnFilter"},{headerName:"Hotel stay / Home working country",field:"country",filterParams:{values:l,valueFormatter:On}},{headerName:"Electricity Tariff",field:"tariff",filterParams:{values:l,valueFormatter:On}},{headerName:"Data Provider",field:"dataProvider",filterParams:{values:l,valueFormatter:On}},{headerName:"Total Cost",field:"totalCost",filter:"agNumberColumnFilter"},{headerName:"Currency Code",field:"currency",filterParams:{values:l,valueFormatter:On}},{headerName:"Act/Est",field:"accuracy",filterParams:{values:l,valueFormatter:On}},Vi,{headerName:"Notes",field:"notes",filter:"agTextColumnFilter"},{headerName:"Reference",field:"reference",filterParams:{values:l,valueFormatter:On}},{headerName:"Invoice Number",field:"invoiceNumber",filterParams:{values:l,valueFormatter:On}},{headerName:"Evidence Reference",field:"evidenceReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filterParams:{values:l,valueFormatter:On}},{headerName:"Region",field:"location.region.name",colId:"region",filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:On}},{headerName:"Carbon Emission Scope 3 (kgCO2e)",field:"carbonScope3",filter:"agNumberColumnFilter",headerTooltip:"These are the indirect emissions associated with the uploaded activity data"},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:l,valueFormatter:On}},{headerName:"Tags",field:"tags",filterParams:{values:l,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:l,valueFormatter:On}},{headerName:"Hotel Nights Factors used",field:"reportingYearOfHSFactors",cellRenderer:"link",cellRendererParams:{to:"/configuration/carbonconversionfactors/location/hotel-stays",type:"HOTEL"},filterParams:{values:l,valueFormatter:On},headerTooltip:"The factor set applied to this transaction, click the link to see the factors for this year in more detail"},{headerName:"Work From Home Factors used",field:"reportingYearOfWFHFactors",cellRenderer:"link",cellRendererParams:{to:"/configuration/carbonconversionfactors/location/hotel-stays",type:"WORK_FROM_HOME"},filterParams:{values:l,valueFormatter:On},headerTooltip:"The factor set applied to this transaction, click the link to see the factors for this year in more detail"},...Xi(wi(gn.D_.Hotelstays,i))],reactiveCustomComponents:!0}),[r,l,i])}const u5="Hotel stays and Home working",p5=[{title:"Data",to:".."},{title:u5}];function m5(){const e=(0,C.m)(),n=c5(),t=(0,g.useMemo)(()=>({...n,components:{tariffReference:xH,uploadReference:bH,link:hH}}),[n]),a=(0,g.useCallback)(async n=>{const{data:{getHotelStaysTransactionsPage:{totalRows:t,rows:a}}}=await e.query({query:s5,variables:n,fetchPolicy:"network-only"});return{rows:a,totalRows:t}},[e]);return(0,fe.jsx)(iH,{title:u5,breadcrumbs:p5,config:t,fetchRows:a,uploadLink:"../hotelStays/uploads",defaultExportFileName:"Hotel Stays & Home Work Exports"})}const f5=function(){return(0,fe.jsx)(F1,{dataSection:gn.D_.Hotelstays,template:[{columns:cQ,name:"Simple",fileName:"Hotelstays-template",type:Zh.Dynamic},{name:"Advanced",fileName:"advanced-hotel-stays-template",url:SX,type:Zh.Static}]})};var y5=t(85533),g5=t(99217),h5=t(93688),x5=t(54391),T5=t(99405),b5=t(63568),v5=t(6446),C5=t(94446),k5=t(18321),S5=t(63595),N5=t(29280),A5=t(40868),R5=t(38607),D5=t(88527),L5=t(8292),I5=t(7775),j5=t(93085),w5=t(67510),O5=t(85804),E5=t(99495),_5=t(23370);const F5=e=>{switch(e){case"overview":return(0,fe.jsx)(y5.A,{});case"waste":return(0,fe.jsx)(g5.A,{});case"electricity":return(0,fe.jsx)(h5.A,{});case"gas":return(0,fe.jsx)(x5.A,{});case"water":return(0,fe.jsx)(T5.A,{});case"transport":return(0,fe.jsx)(b5.A,{});case"fuel":return(0,fe.jsx)(v5.A,{});case"buildingEnergyRatings":return(0,fe.jsx)(C5.A,{});case"refrigerants":return(0,fe.jsx)(k5.A,{});case"heatSteam":return(0,fe.jsx)(S5.A,{});case"materials":return(0,fe.jsx)(N5.A,{});case"hotelStays":return(0,fe.jsx)(A5.A,{});case"safety":return(0,fe.jsx)(R5.A,{});case"employees":return(0,fe.jsx)(D5.A,{});case"community":return(0,fe.jsx)(L5.A,{});case"business":return(0,fe.jsx)(I5.A,{});case"biodiversity":return(0,fe.jsx)(j5.A,{});case"oilProduction":return(0,fe.jsx)(w5.A,{});case"salesData":return(0,fe.jsx)(O5.A,{});case"liquidFuels":return(0,fe.jsx)(E5.A,{});case"emissionsDatabase":return(0,fe.jsx)(_5.A,{})}},P5=le.default.div`
  padding: 32px 24px;
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
  height: fit-content;
  width: 100%;
  background-color: ${e=>e.theme.colors.primary.normal.text};
  font-family: 'Akkurat', Helvetica, Arial, sans-serif;
`,B5=le.default.div`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 20px;
`,U5=le.default.div`
  display: flex;
  flex-direction: row;
  align-items: center;
  color: ${e=>e.theme.colors.regularText.text};
  font-size: ${e=>e.theme.fonts.sm.size};
  font-weight: ${e=>e.theme.fonts.weight.bold};
  &:hover {
    cursor: pointer;
  }
`,$5=le.default.div`
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 224px;
`,M5=le.default.div`
  display: block;
  border-bottom: 1px solid #dedede;
  margin-right: 22px;

  &.Mui-selected {
    color: #000 !important;
  }

  button {
    font-size: ${e=>e.theme.fonts.sm.size};
    padding: 0;
    text-align: center;
    max-width: 112px;
    width: 100%;
    color: #46464f;
    text-transform: none;
  }
`,V5=(le.default.div`
  display: flex;

  .Mui-selected {
    color: #2e3eff !important;
  }

  .MuiTabs-indicator {
    background-color: #2e3eff !important;
  }

  button {
    font-size: ${e=>e.theme.fonts.sm.size};
    padding: 0;
    margin-right: 16px;
    text-align: center;
    max-width: 89px;
    width: 100%;
    color: #46464f;
    text-transform: none;
  }
`,(0,le.default)(ie.oz)`
  &.Mui-selected {
    color: #1b1b1f !important;
  }
`),G5=le.default.div`
  display: flex;
  align-items: center;
  width: 100%;
`,z5=le.default.div`
  font-size: ${e=>e.theme.fonts.xs.size};
  text-transform: uppercase;
  vertical-align: middle;
`,W5=le.default.div`
  font-size: ${e=>e.theme.fonts.sm.size};
`,q5=le.default.div`
  font-size: ${e=>e.theme.fonts.xxl.size};
`,J5=le.default.div`
  margin-bottom: 15px;

  .MuiAccordionSummary-expandIconWrapper {
    color: ${e=>e.theme.colors.regularText.text};
  }
`,Y5=le.default.div`
  font-size: ${e=>e.theme.fonts.sm.size};

  &:before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 7.5px;
    background-color: ${e=>e.theme.colors.danger.normal.background};
    margin-right: 10px;
    position: relative;
    top: 3px;
  }
`,H5=le.default.div`
  font-size: ${e=>e.theme.fonts.sm.size};

  &:before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 7.5px;
    background-color: ${e=>e.theme.colors.warning.light.background};
    margin-right: 10px;
    position: relative;
    top: 3px;
  }
`,K5=le.default.div`
  max-width: 450px;
  flex-shrink: 0;
`,Q5=le.default.div`
  max-width: 450px;
  background-color: ${e=>e.theme.colors.primary.normal.text};
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
  height: fit-content;
  margin-bottom: 20px;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
`,Z5=le.default.div`
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 0.5em 1em;
  font-size: ${e=>e.theme.fonts.sm.size};
  &:first-child {
    background-color: ${e=>e.theme.colors.redesignPrimary.background};
    color: ${e=>e.theme.colors.regularText.text};
  }
  &:hover {
    background-color: ${e=>e.theme.colors.redesignPrimary.background};
    color: ${e=>e.theme.colors.regularText.text};
    cursor: pointer;
  }
`,X5=(0,le.default)(p.Link)`
  display: block;
  text-decoration: none;
  margin-left: 10px;
  flex-shrink: 3;
`,e3=le.default.div`
  display: flex;
  margin-right: 10px;
  align-items: center;
  justify-content: flex-start;
  svg {
    font-size: 20px;
  }
`,n3=le.default.div`
  width: 40px;
  height: 40px;
  color: ${e=>e.theme.colors.regularText.text};
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  ${e=>e.isDisabledAccess&&`\n    &:before {\n      color: ${e.theme.colors.basic.black};\n      background-color: ${e.theme.colors.redesignTertiary.background};\n      content: 'Upgrade';\n      font-weight: bold;\n      text-align: center;\n      font-size: 10px;\n      padding: 0 3px;\n      border-radius: 8px;\n      margin-top: -1em;\n    }\n  `}
  svg {
    font-size: 20px;
  }
`,t3=le.default.div`
  color: ${e=>e.theme.colors.regularText.text};
  display: flex;
  flex-direction: row;
  align-items: center;
  &:hover {
    cursor: pointer;
  }
  svg {
    font-size: 14px;
  }
`,a3=(0,le.default)(W5)`
  font-weight: ${e=>e.theme.fonts.weight.bold};
`,i3=le.default.div`
  width: 77px;
  height: 74px;
  border-radius: 8px;
  border: 1px solid #F3F0F4
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1), 0px 8px 12px 6px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgb(0 0 0 /0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  svg {
    font-size: 48px;
    color: ${e=>e.theme.colors.regularText.text};
  }
`,l3=le.default.div`
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 25px;
  gap: 16px;
`,r3=le.default.div`
  gap: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  &:hover {
    cursor: pointer;
  }
`,o3=(0,le.default)(z5)`
  width: 80px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-transform: none;
  color: #000;
`,s3=(le.default.span`
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
`,e=>{let{iconName:n,label:t,to:a,isDisabledAccess:i,show:l}=e;const r=F5(n),o=(0,m.Zp)();return(0,fe.jsxs)(Z5,{onClick:()=>o(a),children:[(0,fe.jsx)(n3,{isDisabledAccess:i,children:r}),!l&&(0,fe.jsx)(X5,{to:a,children:(0,fe.jsx)(de.A,{id:t})})]})}),d3=e=>{let{show:n,onClick:t}=e;return(0,fe.jsxs)(t3,{onClick:t,children:[(0,fe.jsx)(e3,{children:(0,fe.jsx)(ie.In,{size:"0.5x",icon:n?"chevron-right":"chevron-left"})}),(0,fe.jsx)(a3,{children:n?"Show":"Hide"})]})},c3=e=>{let{activeAccessControls:n,inactiveAccessControls:t}=e;const[a,i]=(0,g.useState)(!1);return(0,fe.jsxs)(K5,{children:[(0,fe.jsxs)(Q5,{children:[(0,fe.jsx)(s3,{iconName:"overview",label:"pages.data.subjects.overview",to:"data",isDisabledAccess:!1,show:a}),n.map((e,n)=>(0,fe.jsx)(s3,{iconName:e,label:`pages.data.subjects.${e}`,to:`./${e}/view`,isDisabledAccess:!1,show:a},`${e} - ${n}`)),t.map((e,n)=>(0,fe.jsx)(s3,{iconName:e,label:`pages.data.subjects.${e}`,to:"contact",isDisabledAccess:!0,show:a},`${e} - ${n}`))]}),(0,fe.jsx)(d3,{show:a,onClick:()=>i(!a)})]})};var u3=t(11475),p3=t(86822);const m3=S.J1`
  fragment DataAnomalyFields on DataAnomaly {
    id
    type
    reason
    ignored
    uploadedIn {
      id
      fileName
    }
    user {
      id
      first_name
      last_name
    }
    detectedAt
    varianceTimeseries {
      error
      data {
        dimension
        value
        time
      }
    }
    varianceReason
    notes
    locationName
    meterName
    percentDiff
    startDate
    endDate
    __typename
  }
`,f3=S.J1`
  query GetDataAnomaliesByAccountId(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getDataAnomaliesByAccountId(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        ...DataAnomalyFields
      }
    }
  }
  ${m3}
`,y3=S.J1`
  mutation IgnoreDataAnomalies($anomalyIds: [ID!]!, $varianceReason: VarianceReason, $notes: String) {
    ignoreDataAnomalies(anomalyIds: $anomalyIds, varianceReason: $varianceReason, notes: $notes) {
      totalRows
      rows {
        ...DataAnomalyFields
      }
    }
  }
  ${m3}
`,g3=S.J1`
  mutation IgnoreFilteredDataAnomalies($varianceReason: VarianceReason, $notes: String, $accountId: ID!, $filters: Filters!) {
    ignoreFilteredDataAnomalies(varianceReason: $varianceReason, notes: $notes, accountId: $accountId, filters: $filters) {
      totalRows
      rows {
        ...DataAnomalyFields
      }
    }
  }
  ${m3}
`,h3=(S.J1`
  query GetDataAnomaliesByAccountIdCount($accountId: ID!) {
    getDataAnomaliesByAccountId(accountId: $accountId) {
      totalRows
    }
  }
`,S.J1`
  query GetDataAnomaliesFilter($accountId: ID!, $field: String!, $filters: Filters) {
    getDataAnomaliesFilter(accountId: $accountId, field: $field, filters: $filters)
  }
`);function x3(){return(0,Ul._)(f3)}function T3(){const{showNotification:e}=tn();return(0,ln.n)(y3,{refetchQueries:["GetDataAnomaliesByAccountId","GetDataAnomaliesByAccountIdCount"],onCompleted:()=>{e("Those anomalies have been accepted, they will now appear under accepted variances","success")},onError:n=>{e(`Anomalies haven't been accepted due to this error: ${n}`,"danger")}})}function b3(){return(0,Ul._)(h3,{fetchPolicy:"network-only"})}var v3=t(86425),C3=t(3835),k3=t(77275),S3=t(98528),N3=t(60419);const A3=e=>{let{title:n="Confrimation required",body:t="",agreeButtonCaption:a="Agree",disagreeButtonCaption:i="Disagree",onAgree:l,onDisagree:r,onClose:o}=e;const[s,d]=g.useState(!0),c=()=>{d(!1),o&&o(),r&&r()};return(0,fe.jsxs)(v3.A,{open:s,onClose:c,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,fe.jsx)(C3.A,{id:"alert-dialog-title",children:n}),(0,fe.jsx)(k3.A,{children:(0,fe.jsx)(S3.A,{id:"alert-dialog-description",children:t})}),(0,fe.jsxs)(N3.A,{children:[(0,fe.jsx)(p3.A,{onClick:c,children:i}),(0,fe.jsx)(p3.A,{onClick:()=>{d(!1),o&&o(),l&&l()},autoFocus:!0,children:a})]})]})};function R3(e,n,t){if(e){const a=e.paginationGetCurrentPage()*n,i=a+n-1,l=[];for(let n=a;n<=i;n++){const t=e.getDisplayedRowAtIndex(n);t&&l.push(t)}l.forEach(e=>{t?e.setSelected(!1):e.isSelected()||e.setSelected(!0)})}}const D3=e=>{let{data:n}=e;return n.startDate||n.transaction?.startDate||n.transaction?.individualCollectionDate||n.transaction?.date},L3=e=>{let{data:n}=e;return n.endDate||n.transaction?.endDate||n.transaction?.individualCollectionDate||n.transaction?.date},I3=e=>{let{data:n}=e;return`${n.user.first_name} ${n.user.last_name}`},j3=e=>{let{data:n}=e;return`${n.locationName?n.locationName:""}`},w3=e=>{let{data:n}=e;return`${n.meterName?n.meterName:""}`},O3=e=>{let{data:n}=e;return n.uploadedIn.fileName},E3=le.default.div`
  & .grid-body {
    display: flex;
    flex-direction: column;
    min-height: 300px;
  }
  & .ag-root-wrapper {
    flex: 1;
  }
  .ag-root-wrapper-body {
    flex: 1;
  }
`,_3=le.default.div`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
`,F3=le.default.div`
  margin-right: 10px;
`,P3={resizable:!0};function B3(e){let{accountId:n,onError:t,showPlaceholder:a}=e;const i=(0,dc.A)(),[l]=x3(),r=(0,g.useRef)(),[o,s]=(0,g.useState)(!1),[d,c]=(0,g.useState)(!1),u=lr(),p=(0,g.useCallback)(()=>s(e=>!e),[]),[m]=T3(),f=(0,g.useCallback)(e=>{r.current=e.api,e.api.setFilterModel({ignored:{values:["0"],filterType:"set"}})},[]),y=(0,g.useMemo)(()=>({getRows:async e=>{let{request:i,success:r,fail:o}=e;const s=wn(i.sortModel),d=jn(i.filterModel);try{const{data:e,error:t}=await l({variables:{accountId:n,sort:s,filters:d,limit:10,offset:i.startRow||0}});if(!e)throw new Error("Error in get getDataAnomalies");if(t)throw t;if(!e.getDataAnomaliesByAccountId.rows.length&&!Object.keys(i.filterModel).length)return a();r({rowData:e.getDataAnomaliesByAccountId.rows,rowCount:e.getDataAnomaliesByAccountId.totalRows})}catch(e){t(e),o()}}}),[l,n,t,a]),h=(0,g.useCallback)(()=>{if(!r.current)throw new Error("Anomalies are not ready");const e=r.current.getSelectedRows();m({variables:{anomalyIds:e.map(e=>e.id)},onCompleted:()=>{r.current?.refreshServerSide()}})},[m]),x=(()=>{const e=Je(),{showNotification:n}=tn(),t=(0,dc.A)(),[a]=b3(),i=(0,g.useCallback)(e=>t.formatMessage({id:`pages.dataAnomalies.transactionTypes.${e}`}),[t]),l=(0,g.useCallback)(e=>{let{data:n}=e;return i(n.__typename)},[i]),r=(0,g.useCallback)(async t=>{try{const{field:n}=t.colDef;if(!n)throw new Error("Unfilterable column");const l=t.api.getFilterModel(),r=await a({variables:{accountId:e,field:n,filters:jn(l)}}),o=r.data?.getDataAnomaliesFilter||[];t.success(o.map(e=>"transactionType"===n?i(e):e))}catch(e){if(e instanceof Error&&"Virtual list has not been created."===e.message)return;n(`Couldn't load filter values for column ${t.colDef.field}: ${e}`,"danger")}},[a,e,n,i]),o=(0,g.useMemo)(()=>({values:r,cache:!1}),[r]),s=(0,g.useMemo)(()=>({...o,valueFormatter:Bn}),[o]);return(0,g.useMemo)(()=>[{headerName:"Utility",valueGetter:l,field:"transactionType",filterParams:o,filter:"agSetColumnFilter",checkboxSelection:!0,sortable:!0},{headerName:"Start date",valueGetter:D3,valueFormatter:_n,filter:!1,sortable:!1},{headerName:"End date",valueGetter:L3,valueFormatter:_n,filter:!1,sortable:!1},{headerName:"Detected time",field:"detectedAt",valueFormatter:Pn,initialSort:"desc",filter:"agDateColumnFilter",sortable:!0},{headerName:"Location",field:"locationName",valueGetter:j3,filter:"agSetColumnFilter",filterParams:o,sortable:!0},{headerName:"Meter",field:"meterName",valueGetter:w3,filter:"agSetColumnFilter",filterParams:o,sortable:!0},{headerName:"Reason",field:"reason",minWidth:400,filter:"agTextColumnFilter",sortable:!0},{headerName:"Notes",field:"notes",minWidth:400,filter:"agTextColumnFilter",cellEditor:"agTextCellEditor",sortable:!0,editable:!0},{headerName:"Uploader",field:"user",valueGetter:I3,filterParams:o,filter:"agSetColumnFilter",sortable:!0},{headerName:"Filename",field:"uploadedIn",valueGetter:O3,filterParams:o,filter:"agSetColumnFilter",sortable:!0},{headerName:"Accepted",field:"ignored",valueFormatter:En,filterParams:s,filter:"agSetColumnFilter",sortable:!0,hide:!0},{headerName:"% Variance",field:"percentDiff",filterParams:o,filter:"agNumberColumnFilter",sortable:!0}],[o,l,s])})();return(0,fe.jsxs)(E3,{className:"ag-theme-alpine",children:[u.dataTrackerAnomalies.find(e=>e.startsWith("ignoreDataAnomalies"))&&(0,fe.jsxs)(_3,{children:[(0,fe.jsx)(F3,{children:(0,fe.jsx)(p3.A,{variant:"outlined",onClick:()=>R3(r.current,10),disabled:!r.current,title:i.formatMessage({id:"pages.data.overview.selectAll"}),children:(0,fe.jsx)(de.A,{id:"pages.data.overview.selectAllButtonText"})})}),d&&(0,fe.jsx)(F3,{children:(0,fe.jsx)(p3.A,{variant:"outlined",onClick:()=>R3(r.current,10,!0),disabled:!r.current,title:i.formatMessage({id:"pages.data.overview.deselectAll"}),children:(0,fe.jsx)(de.A,{id:"pages.data.overview.deselectAllButtonText"})})}),(0,fe.jsx)(F3,{children:(0,fe.jsx)(p3.A,{variant:"outlined",onClick:p,title:i.formatMessage({id:"pages.data.overview.acceptInfo"}),children:(0,fe.jsx)(de.A,{id:"pages.data.overview.accept"})})})]}),(0,fe.jsx)(Dg.W6,{suppressRowClickSelection:!0,pagination:!0,paginationPageSize:10,cacheBlockSize:10,rowModelType:"serverSide",serverSideDatasource:y,className:"grid-body",rowSelection:"multiple",onGridReady:f,defaultColDef:P3,getRowId:Gn("id"),noRowsOverlayComponent:$3,columnDefs:x,onSelectionChanged:()=>{if(!r.current)throw new Error("Anomalies are not ready");const e=r.current.getSelectedRows();c(!!e?.length)}}),o&&(0,fe.jsx)(A3,{title:(0,fe.jsx)(de.A,{id:"pages.data.overview.confirmationDialog.title"}),agreeButtonCaption:(0,fe.jsx)(de.A,{id:"pages.data.overview.confirmationDialog.agree"}),disagreeButtonCaption:(0,fe.jsx)(de.A,{id:"pages.data.overview.confirmationDialog.disagree"}),onAgree:h,onClose:p})]})}const{Vr:U3}=i,$3=()=>(0,fe.jsx)(Iu,{title:"Nothing to display...",description:"If any validation or anomalies are found they will be displayed here.",icon:["rio","clipboard-check-custom"]}),M3=()=>{const e=Je(),[n,t]=(0,g.useState)(null),[a,i]=(0,g.useState)(!1),l=(0,g.useCallback)(()=>i(!0),[]),r=(0,g.useCallback)(e=>{t(e)},[]);return n?(0,fe.jsx)(U3,{error:n}):a?(0,fe.jsx)($3,{}):(0,fe.jsx)(B3,{accountId:e,onError:r,showPlaceholder:l})},V3=()=>(0,fe.jsx)(J5,{children:(0,fe.jsxs)(rT.A,{children:[(0,fe.jsx)(oT.A,{expandIcon:(0,fe.jsx)(ie.In,{icon:"chevron-down"}),"aria-controls":"panel1a-content",children:(0,fe.jsx)(H5,{children:"Anomalies found in your data"})}),(0,fe.jsx)(sT.A,{children:(0,fe.jsx)(M3,{})})]})});var G3=t(46484);const z3=S.J1`
  query GetDataTrackerValidationFilters($accountId: ID!, $field: String!) {
    getDataTrackerValidationFilters(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`;function W3(e){let{setGridApi:n,fetchRows:t,onCellEditingStopped:a,onCellEditingStarted:i,showPlaceholder:l,onSelectionChanged:r,onFilterChanged:o}=e;const s=Je(),d=(0,C.m)(),{showNotification:c}=tn(),u=async e=>{try{const{data:{getDataTrackerValidationFilters:n}}=await d.query({query:z3,variables:{accountId:s,field:e.colDef.colId||e.colDef.field}});e.success(n.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){c(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning"),E.Cp(n)}},p=qr({autoFit:!0}),m={pagination:!0,paginationPageSizeSelector:!1,paginationPageSize:25,rowSelection:"multiple",rowModelType:"serverSide",enableCellChangeFlash:!0,tooltipShowDelay:500,defaultColDef:{resizable:!0,sortable:!0,filter:!0,cellStyle:{paddingTop:"5px",paddingBottom:"5px",height:"auto",wordBreak:"break-word",lineHeight:"20px"},autoHeight:!0},columnDefs:[{headerName:"Utility",headerTooltip:"Resource for which data is expected",checkboxSelection:!0,filterParams:{values:u,valueFormatter:On},field:"utility",minWidth:150},{headerName:"Supplier",headerTooltip:"Upload supplier",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},field:"supplierName",minWidth:200},{headerName:"Start Date",headerTooltip:"Start date of the expected time frame",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},field:"startDate",minWidth:200},{headerName:"End Date",headerTooltip:"End date of the expected time frame",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},field:"endDate",minWidth:200},{headerName:"Location",filterParams:{values:u,valueFormatter:On},field:"locations",minWidth:200},{headerName:"Meter",filterParams:{values:u,valueFormatter:On},field:"meters",minWidth:200},{headerName:"Reason",headerTooltip:"Notification reason",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},field:"reason",minWidth:300},{headerName:"Notes",headerTooltip:"Notification notes can be left here",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},field:"note",editable:!0,cellEditor:"agTextCellEditor",valueGetter:e=>{let{data:{note:n}}=e;return n},valueSetter:e=>e.newValue!==e.oldValue,minWidth:200},{headerName:"Uploader",headerTooltip:"Username",valueGetter:()=>"-",field:"emptyField",sortable:!1,filter:!1,minWidth:200},{headerName:"Filename",headerTooltip:"Filename",valueGetter:()=>"-",field:"emptyField2",sortable:!1,filter:!1,minWidth:200}],rowStyle:{width:"100%",display:"flex",alignItems:"center"},rowHeight:58};return(0,fe.jsx)(Pg,{...m,suppressRowClickSelection:!0,cacheBlockSize:m.paginationPageSize,onFirstDataRendered:p.onFirstDataRendered,onFilterChanged:e=>{p.onFilterChanged(e),o?.()},onSortChanged:p.onSortChanged,onColumnVisible:p.onSaveGridColumnState,onColumnPinned:p.onSaveGridColumnState,onColumnResized:p.onSaveGridColumnState,onColumnMoved:p.onSaveGridColumnState,onColumnRowGroupChanged:p.onSaveGridColumnState,onColumnValueChanged:p.onSaveGridColumnState,onColumnPivotChanged:p.onSaveGridColumnState,onCellEditingStopped:a,onCellEditingStarted:i,onSelectionChanged:r,onGridReady:e=>{p.onGridReady(e),n({api:e.api}),e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:n,sortModel:a,filterModel:i}=e.request,r=jn(i),{rows:o,totalRows:s}=await t({offset:n||0,limit:m.paginationPageSize,sort:wn(a),filters:r});if(e.success({rowData:o,rowCount:s}),0===s&&(0,hn.isEmpty)(r))return l()}catch(n){e.fail(),E.Cp(n)}}})}})}const q3=le.default.div`
  display: flex;
  height: 450px;
  border-radius: 5px;

  .ag-theme-alpine {
    .utility-header-class {
      .ag-header-cell-label {
        padding-left: 10px;
      }
    }
    .ag-paging-panel {
      justify-content: flex-end;
    }
  }
`,J3=le.default.div`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Y3=le.default.div`
  margin-right: 10px;
`,H3=(0,ce.Ay)(e=>{let{intl:n}=e;const t=Je(),a=(0,C.m)(),{showNotification:i}=tn(),[l,r]=(0,g.useState)(),[o,s]=(0,g.useState)(!1),[d,c]=(0,g.useState)(!1),[u,p]=(0,g.useState)(!1),[m,f]=(0,g.useState)(!1),[y,h]=(0,g.useState)(null),x=(0,g.useCallback)(()=>f(!0),[]),T=lr(),b=(0,g.useCallback)(()=>l?.api?.refreshServerSide({purge:!0}),[l]),[v]=(0,ln.n)(mn),k=(0,g.useCallback)(e=>{h(e.node)},[h]),S=g.useCallback(async e=>{if(null===y)return;const n=e.newValue||null;if(n!==e.oldValue)try{y.updateData({...y.data,note:e.newValue}),await v({variables:{input:[{id:e.data.id,accountId:t,note:n}]}}),y.setSelected(!1),i("The data tracker result note has been successfully updated!")}catch(n){y.updateData({...y.data,note:e.oldValue}),i("Something went wrong. The data tracker result note wasn't updated.","danger")}},[t,v,i,y]),N=g.useCallback(()=>{const e=l?.api.getSelectedRows();0!==e?.length&&c(!0)},[l]),A=T.dataTracker.find(e=>e.startsWith("updateDataTrackerValidationResults")),R=(0,g.useCallback)(()=>{if(l?.api){const e=l.api.getFilterModel();s(e&&Object.keys(e).length>0)}},[l]);return(0,fe.jsxs)(G3.A,{flexDirection:"column",children:[d&&(0,fe.jsx)(A3,{title:(0,fe.jsx)(de.A,{id:"pages.data.overview.confirmationDialog.title"}),agreeButtonCaption:(0,fe.jsx)(de.A,{id:"pages.data.overview.confirmationDialog.agree"}),disagreeButtonCaption:(0,fe.jsx)(de.A,{id:"pages.data.overview.confirmationDialog.disagree"}),onAgree:async()=>{const e=l?.api.getSelectedRows();if(e?.length)try{await v({variables:{input:e?.map(e=>{let{id:n}=e;return{id:n.toString(),accountId:t,isIgnored:!0}})}}),i("The data tracker result(-s) has been successfully updated!"),b()}catch(e){i("Something went wrong. The data tracker result(-s) wasn't updated.","danger")}},onClose:()=>c(!1)}),m?(0,fe.jsx)($3,{}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(J3,{children:[!!A&&(0,fe.jsx)(Y3,{children:(0,fe.jsx)(p3.A,{variant:"outlined",onClick:()=>R3(l?.api,25),disabled:!l,title:n.formatMessage({id:"pages.data.overview.selectAll"}),children:(0,fe.jsx)(de.A,{id:"pages.data.overview.selectAllButtonText"})})}),u&&(0,fe.jsx)(Y3,{children:(0,fe.jsx)(p3.A,{variant:"outlined",onClick:()=>R3(l?.api,25,!0),disabled:!l,title:n.formatMessage({id:"pages.data.overview.deselectAll"}),children:(0,fe.jsx)(de.A,{id:"pages.data.overview.deselectAllButtonText"})})}),(0,fe.jsx)(Y3,{children:(0,fe.jsx)(jS,{filtersApplied:o,resetGridState:()=>{l?.api?.setFilterModel(null),s(!1)}})}),!!A&&(0,fe.jsx)(p3.A,{variant:"outlined",onClick:N,title:n.formatMessage({id:"pages.data.overview.acceptInfo"}),children:(0,fe.jsx)(de.A,{id:"pages.data.overview.accept"})})]}),(0,fe.jsx)(q3,{children:(0,fe.jsx)(W3,{fetchRows:async e=>{const{data:{getDataTrackerValidationResults:{rows:n,totalRows:i}}}=await a.query({query:pn,variables:{...e,accountId:t,isIgnored:!1},fetchPolicy:"network-only"});return{rows:n,totalRows:i}},setGridApi:r,onCellEditingStopped:S,onCellEditingStarted:k,showPlaceholder:x,onSelectionChanged:()=>{const e=l?.api.getSelectedRows();p(!!e?.length)},onFilterChanged:R},"MissingTransactionsGrid")})]})]})}),K3=H3,Q3=(0,le.default)("li")`
  margin-left: 15px;
`,Z3=(0,le.default)("div")`
  margin-left: 20px;
`,X3=()=>(0,fe.jsxs)("div",{children:[(0,fe.jsx)(J5,{children:(0,fe.jsxs)(rT.A,{children:[(0,fe.jsx)(oT.A,{expandIcon:(0,fe.jsx)(ie.In,{icon:"chevron-down"}),"aria-controls":"panel1a-content",children:(0,fe.jsx)(Y5,{children:(0,fe.jsx)(de.A,{id:"pages.data.overview.missingTransactions"})})}),(0,fe.jsx)(sT.A,{children:(0,fe.jsx)(K3,{})})]})}),(0,fe.jsx)(V3,{})]}),e4=(0,ce.Ay)(()=>{const[e,n]=(0,g.useState)(null),t=Boolean(e),a=t?"simple-popover":void 0;return(0,fe.jsxs)(P5,{children:[(0,fe.jsxs)(B5,{children:[(0,fe.jsx)(q5,{children:(0,fe.jsx)(de.A,{id:"pages.data.overview.dataCollection"})}),(0,fe.jsxs)(U5,{"aria-describedby":a,onClick:e=>{n(e.currentTarget)},children:[(0,fe.jsx)($5,{children:(0,fe.jsx)(ie.In,{icon:"info-circle"})}),(0,fe.jsx)(de.A,{id:"pages.data.overview.about"})]}),(0,fe.jsx)(fi.Ay,{id:a,open:t,anchorEl:e,onClose:()=>{n(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},sx:{marginRight:"50px",marginTop:"10px"},children:(0,fe.jsxs)(u3.A,{sx:{p:2,maxWidth:"900px"},children:["The Rio platform automatically performs checks against data that is being uploaded alongside identifying missing data from your suppliers, locations and meters.",(0,fe.jsx)("p",{children:"Checks performed include:"}),(0,fe.jsxs)(Z3,{children:[(0,fe.jsxs)("ul",{children:[(0,fe.jsx)("li",{children:"Identifying missing data,or rows of data based on:"}),(0,fe.jsxs)("ul",{children:[(0,fe.jsx)(Q3,{children:"Supplier"}),(0,fe.jsx)(Q3,{children:"Locations"}),(0,fe.jsx)(Q3,{children:"Meters"})]})]}),(0,fe.jsxs)("ul",{children:[(0,fe.jsx)("li",{children:"Finding locations with data being uploaded outside of their open/closed dates"}),(0,fe.jsx)("li",{children:"Finding meters with zero data being provided"}),(0,fe.jsx)("li",{children:"Time-period analysis, uploaded data is checked against the same period for previous months or previous year (for seasonality)"})]})]})]})})]}),(0,fe.jsx)(X3,{})]})}),n4=()=>(0,fe.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,fe.jsx)("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"#2E3EFF"})}),t4=()=>(0,fe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",children:[(0,fe.jsx)("rect",{width:"64",height:"64"}),(0,fe.jsx)("path",{d:"M44.5259 28.177C44.2455 28.177 43.9675 28.1851 43.692 28.1979V10.432C43.692 4.23979 33.2049 1 22.846 1C12.487 1 2 4.23979 2 10.432V42.541H2.01772C2.40285 48.5076 12.6812 51.6278 22.846 51.6278C24.5903 51.6278 26.3339 51.5275 28.0347 51.3436C30.4261 58.1243 36.912 63 44.5251 63C54.1605 63 62 55.1895 62 45.5881C62.0008 35.9883 54.1613 28.177 44.5259 28.177ZM22.846 5.81634C33.246 5.81634 38.8578 9.09226 38.8578 10.432C38.8578 11.7718 33.246 15.0477 22.846 15.0477C12.4451 15.0477 6.83423 11.7718 6.83423 10.432C6.83423 9.09226 12.4451 5.81634 22.846 5.81634ZM6.83423 16.6828C10.8571 18.7836 16.8709 19.864 22.846 19.864C28.8211 19.864 34.8333 18.7836 38.8578 16.6828V21.1941C38.8578 22.5339 33.246 25.8098 22.846 25.8098C12.4451 25.8098 6.83423 22.5339 6.83423 21.1941V16.6828ZM27.0816 46.6092C25.7699 46.7336 24.368 46.8115 22.846 46.8115C12.4451 46.8115 6.83423 43.5355 6.83423 42.1958V37.6997C10.8571 39.7997 16.8709 40.8801 22.846 40.8801C24.5033 40.8801 26.1574 40.7878 27.7769 40.6225C27.3056 42.1974 27.0493 43.8631 27.0493 45.5889C27.0493 45.9309 27.0614 46.2712 27.0816 46.6092ZM22.846 36.0638C12.4451 36.0638 6.83423 32.7879 6.83423 31.4489V27.4449C10.8571 29.5457 16.8709 30.6261 22.846 30.6261C28.8211 30.6261 34.8333 29.5457 38.8578 27.4449V29.1226C35.4134 30.3034 32.4524 32.5254 30.3576 35.4136C28.2297 35.8069 25.7296 36.0638 22.846 36.0638ZM44.5259 58.1845C37.5549 58.1845 31.8836 52.5341 31.8836 45.5889C31.8836 38.6446 37.5549 32.9942 44.5259 32.9942C51.4952 32.9942 57.1666 38.6446 57.1666 45.5889C57.1666 52.5341 51.4952 58.1845 44.5259 58.1845Z",fill:"#0B4EE6"}),(0,fe.jsx)("path",{d:"M44.3504 43.9324C42.3302 43.6922 41.3045 43.4039 41.3045 42.4934C41.3045 41.1353 43.1311 40.9327 44.2192 40.9327C45.5098 40.9327 46.9379 41.5573 47.4028 42.3253L47.5868 42.632L50.536 41.2667L50.3559 40.8991C49.3182 38.7779 47.4788 38.1373 46.0586 37.8762V36H42.611V37.8658C39.5731 38.339 37.7729 40.0511 37.7729 42.4934C37.7729 46.5125 41.5373 46.9329 44.0264 47.2108C46.2891 47.4798 47.3436 48.0235 47.3436 48.922C47.3436 50.6605 44.8889 50.7958 44.1352 50.7958C42.4478 50.7958 40.822 49.959 40.3548 48.8491L40.1988 48.4792L37 49.8357L37.1576 50.2048C38.0577 52.3157 39.9859 53.6449 42.6094 53.9765V56H46.057V53.8748C48.5741 53.5641 51 51.9537 51 48.9212C51.0008 44.7516 46.9987 44.2583 44.3504 43.9324Z",fill:"#0B4EE6"})]}),a4=["buildingEnergyRatings"],i4=e=>{let{kind:n,to:t}=e;const a=(0,m.Zp)(),i=F5(n),l=!a4.includes(n);return(0,fe.jsxs)(r3,{onClick:l?()=>a(t):()=>{},children:[(0,fe.jsx)(i3,{children:i}),(0,fe.jsx)(o3,{children:(0,fe.jsx)(de.A,{id:`pages.data.subjects.${n}`})})]})},l4=e=>{let{activeAccessControls:n,isPortfolio:t}=e;const a=(0,m.Zp)();return t?(0,fe.jsx)(l3,{children:(0,fe.jsxs)(r3,{onClick:()=>a("./investment/uploads"),children:[(0,fe.jsx)(i3,{children:(0,fe.jsx)(t4,{})}),(0,fe.jsx)(o3,{children:"Funds & Assets"})]})}):(0,fe.jsx)(l3,{children:n?.filter(e=>!a4.includes(e)).map((e,n)=>(0,fe.jsx)(i4,{kind:e,to:`/data/${e}/uploads`},`${e} - ${n}`))})},r4={organization:{label:"Organisation",value:"/organisation"},portfolio:{label:"Portfolio",value:"/portfolio"},api:{label:"American Petroleum Institute",value:"/api"}},o4=["Organisation","Portfolio","American Petroleum Institute"],s4=e=>localStorage.setItem("UPLOAD_CURRENT_TAB",e),d4=e=>localStorage.setItem("UPLOAD_CURRENT_TAB_V2",e),c4=e=>{let{activeAccessControls:n}=e;const t=localStorage.getItem("UPLOAD_CURRENT_TAB")||null,a=zo(),i=!a?.accessControls.data.investment,l=i?r4.organization.value:t,[r,o]=(0,g.useState)(l),s=i?[r4.organization]:Object.values(r4);return(0,g.useEffect)(()=>{i&&s4(r4.organization.value)},[i]),(0,fe.jsxs)(P5,{children:[(0,fe.jsx)(B5,{children:(0,fe.jsx)(q5,{children:(0,fe.jsx)(de.A,{id:"pages.data.overview.uploadHeader"})})}),(0,fe.jsxs)(G5,{children:[(0,fe.jsx)(M5,{style:{width:i?"112px":"224px"},children:(0,fe.jsx)(ie.tU,{variant:"standard",value:r,children:s.map(e=>{let{label:n,value:t}=e;return(0,fe.jsx)(V5,{label:n,onClick:()=>{return o(e=t),s4(e);var e},value:t},n)})})}),(0,fe.jsx)(n4,{})]}),(0,fe.jsx)(ie.Kp,{value:r,index:r4.organization.value,children:(0,fe.jsx)(l4,{activeAccessControls:n})}),!i&&(0,fe.jsx)(ie.Kp,{value:r,index:r4.portfolio.value,children:(0,fe.jsx)(l4,{isPortfolio:!0})})]})},u4=["waste","electricity","gas","water","transport","fuel","buildingEnergyRatings","refrigerants","heatSteam","materials","hotelStays","safety","employees","community","business","biodiversity","oilProduction","salesData","liquidFuels","emissionsDatabase"],p4=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing} ${e=>e.theme.geometry.md.spacing};
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  height: 100%;
  overflow: auto;
  font-family: 'Akkurat', Helvetica, Arial, sans-serif;
`,m4=le.default.div`
  display: flex;
  flex-direction: column;
  flex-grow: 2;
  min-width: 100px;
  margin-left: ${e=>e.theme.geometry.md.spacing};
`;function f4(){const{data:e}=Mr(),n=Object.entries(e.data).reduce((e,n)=>{let[t,a]=n;return u4.includes(t)&&a&&e.push(t),e},[]),t=Object.entries(e.data).reduce((e,n)=>{let[t,a]=n;return u4.includes(t)&&!a&&e.push(t),e},[]);return(0,fe.jsxs)(p4,{children:[(0,fe.jsx)(c3,{activeAccessControls:n,inactiveAccessControls:t}),(0,fe.jsxs)(m4,{children:[(0,fe.jsx)(e4,{}),(0,fe.jsx)(c4,{activeAccessControls:n})]})]})}const y4=function(e){return(0,fe.jsx)(F1,{...e,dataSection:gn.D_.Refrigerant,template:{columns:uQ,fileName:"refrigerants-template",type:Zh.Dynamic}})},g4=S.J1`
  query GetInvestmentTransactionsByAccountId(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getInvestmentTransactionsByAccountId(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        date
        fundCommitment
        fundOwnership
        fundRevenue
        fund {
          id
          name
        }
        asset {
          id
          name
        }
        assetFactorName
        assetFactorValue
        assetFactorYear
        assetFactorLink
        assetRevenue
        assetRevenueDate
        assetValuation
        parentFund {
          id
          name
        }
        parentFundCommitment
        parentFundOwnership
        comment
        importBatch {
          id
          fileName
        }
        financedEmissions
        fundCurrencyCode
        parentFundCurrencyCode
        currencyCode
      }
    }
  }
`,h4=S.J1`
  query GetInvestmentTransactionsFilter($accountId: ID!, $field: String!) {
    getInvestmentTransactionsFilter(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`;function x4(){const[e]=(0,Ul._)(h4),n=Je(),{showNotification:t}=tn(),a=async a=>{try{const{data:{getInvestmentTransactionsFilter:t}}=await e({variables:{accountId:n,field:a.colDef.colId||a.colDef.field}});a.success(t.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){t(`Couldn't load filter values for column "${a.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Date",field:"date",valueFormatter:Fn,filter:"agDateColumnFilter",initialSort:"desc"},{headerName:"Parent Fund",field:"parentFund.name",colId:"parentFund",filterParams:{values:a,valueFormatter:On},hide:!0},{headerName:"Parent Fund Commitment",field:"parentFundCommitment",filter:"agNumberColumnFilter",valueFormatter:Mn,hide:!0},{headerName:"Parent Fund Currency",field:"parentFundCurrencyCode",filterParams:{values:a,valueFormatter:On},hide:!0},{headerName:"Parent Fund Ownership",field:"parentFundOwnership",filter:"agNumberColumnFilter",hide:!0,valueFormatter:$n},{headerName:"Fund",field:"fund.name",colId:"fund",filterParams:{values:a,valueFormatter:On}},{headerName:"Fund Commitment",field:"fundCommitment",filter:"agNumberColumnFilter",valueFormatter:Mn,hide:!0},{headerName:"Fund Currency",field:"fundCurrencyCode",filterParams:{values:a,valueFormatter:On}},{headerName:"Fund Ownership",field:"fundOwnership",filter:"agNumberColumnFilter",valueFormatter:$n},{headerName:"Fund Revenue",field:"fundRevenue",filter:"agNumberColumnFilter",hide:!0},{headerName:"Asset",field:"asset.name",colId:"asset",filterParams:{values:a,valueFormatter:On}},{headerName:"Asset Revenue",field:"assetRevenue",filter:"agNumberColumnFilter",valueFormatter:Mn},{headerName:"Asset Valuation",field:"assetValuation",filter:"agNumberColumnFilter"},{headerName:"Investment Currency",field:"currencyCode",filterParams:{values:a,valueFormatter:On}},{headerName:"Asset Revenue Date",field:"assetRevenueDate",valueFormatter:Fn,filter:"agDateColumnFilter"},{headerName:"Estimated Factor Name",field:"assetFactorName",filter:"agTextColumnFilter"},{headerName:"Estimated Factor Value",field:"assetFactorValue",filter:"agNumberColumnFilter"},{headerName:"Asset Factor Year",field:"assetFactorYear",filter:"agNumberColumnFilter"},{headerName:"Asset Factor Reference",field:"assetFactorLink",filter:"agTextColumnFilter",cellRenderer:e=>(0,fe.jsx)(yA,{value:e.value})},{headerName:"Financed Emissions (tCO2e)",field:"financedEmissions",filter:"agNumberColumnFilter",valueFormatter:$n},{headerName:"Comment",field:"comment",filter:"agTextColumnFilter"}]}}function T4(){const[e]=(0,Ul._)(g4,{fetchPolicy:"network-only"}),n=x4(),t=(0,g.useCallback)(async n=>{const{data:{getInvestmentTransactionsByAccountId:{totalRows:t,rows:a}}}=await e({variables:n});return{rows:a,totalRows:t}},[e]);return(0,fe.jsx)(iH,{title:"Investment Transactions",defaultExportFileName:"investment-transactions",breadcrumbs:[{title:"Data",to:".."},{title:"Investment Transactions"}],uploadLink:"../investment/uploads",config:n,fetchRows:t})}function b4(e){return(0,fe.jsx)(F1,{...e,dataSection:gn.D_.Investment})}var v4=t(97586),C4=t.n(v4),k4=t(94573),S4=t.n(k4);const N4=(0,f.styled)(f.Text)`
  text-decoration: underline;
  cursor: pointer;
`,A4=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 8px;
`,R4=(0,f.styled)("div")`
  display: flex;
  gap: 2px;
`,D4=e=>{let{uncertaintyId:n,onClose:t}=e;const a=Je(),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(MV,{variables:{accountId:a,filters:{text:[{field:"id",type:"equals",filterType:"text",filter:n}]}},fetchPolicy:"network-only"}),s=i?.getGasCompositionUncertainties.rows[0];return(0,fe.jsxs)(f.Modal,{open:!!n,onClose:t,title:"Uncertainty Used",children:[l&&(0,fe.jsx)(f.Loader,{}),!l&&r&&(0,fe.jsx)(f.LoadFailed,{title:"Failed to load uncertainty",retry:o,error:r}),!l&&!r&&i&&!s&&(0,fe.jsx)(f.Text,{children:"No uncertainty found"}),!l&&!r&&s&&(0,fe.jsxs)(A4,{children:[(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"ID:"}),(0,fe.jsx)(f.Text,{children:s.id})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"Date:"}),(0,fe.jsx)(f.Text,{children:s.date})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"Asset:"}),(0,fe.jsx)(f.Text,{children:s.assetName})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"CO2 Mol Mean:"}),(0,fe.jsx)(f.Text,{children:s.co2MolMean})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"CO2 Mol U Rel:"}),(0,fe.jsx)(f.Text,{children:s.co2MolURel})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"CH4 Mol Mean:"}),(0,fe.jsx)(f.Text,{children:s.ch4MolMean})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"CH4 Mol U Rel:"}),(0,fe.jsx)(f.Text,{children:s.ch4MolURel})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"Mol C/Mol Gas Mean:"}),(0,fe.jsx)(f.Text,{children:s.molCMolGasMean})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"Mol C/Mol Gas U Rel:"}),(0,fe.jsx)(f.Text,{children:s.molCMolGasURel})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"MW Mean:"}),(0,fe.jsx)(f.Text,{children:s.mwMean})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"MW U Rel:"}),(0,fe.jsx)(f.Text,{children:s.mwURel})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"Wt C Mean:"}),(0,fe.jsx)(f.Text,{children:s.wtCMean})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"Wt C U Rel:"}),(0,fe.jsx)(f.Text,{children:s.wtCURel})]}),(0,fe.jsxs)(R4,{children:[(0,fe.jsx)(f.Text,{weight:500,children:"Boe Conv Mean:"}),(0,fe.jsx)(f.Text,{children:s.boeConvMean})]})]})]})},L4=[{label:"Data",to:"/v2/data"},{label:"Production"}],I4=()=>{const[e,n]=(0,g.useState)(null),[t]=(0,Ul._)(C4(),{fetchPolicy:"network-only"}),a=function(e){let{onUncertaintyUsedClick:n}=e;const t=Je(),a=(0,C.m)(),{showNotification:i}=tn(),l=(0,g.useCallback)(async e=>{try{const{data:n}=await a.query({query:S4(),variables:{accountId:t,field:e.colDef.colId||e.colDef.field}});e.success(n?.getOilTransactionFilters?.map(e=>e.value?JSON.stringify(e):e.value)||[])}catch(n){i(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning")}},[t,a,i]),r=(0,g.useMemo)(()=>[{field:"date",headerName:"Date",sortable:!0,filter:"agDateColumnFilter",valueFormatter:e=>kn(e.value),width:120},{field:"assetName",headerName:"Asset",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:On},width:300},{field:"oilProductionBbl",headerName:"Oil Production (bbl)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:250,cellStyle:{textAlign:"right"}},{field:"gasExportKscf",headerName:"Gas Export (kscf)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:250,cellStyle:{textAlign:"right"}},{field:"waterProductionBbl",headerName:"Water Production (bbl)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:250,cellStyle:{textAlign:"right"}},{field:"gasProductionKscf",headerName:"Gas Production (kscf)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:250,cellStyle:{textAlign:"right"}},{field:"gasInjectionKscf",headerName:"Gas Injection (kscf)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:250,cellStyle:{textAlign:"right"}},{field:"fuelGasKscf",headerName:"Fuel Gas (kscf)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"flareGasKscf",headerName:"Flare Gas (kscf)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"prodWaterOverboardBwpd",headerName:"Water Overboard (bwpd)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:250,cellStyle:{textAlign:"right"}},{field:"oilInWaterPpm",headerName:"Oil in Water (ppm)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:250,cellStyle:{textAlign:"right"}},{field:"mBoeAllPerDay",headerName:"MBOE All/Day",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"mBoeGasPerDay",headerName:"MBOE Gas/Day",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"fuelGasTCO2e",headerName:"Fuel Gas tCO2e",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"fuelGasTCO2",headerName:"Fuel Gas tCO2",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"fuelGasTCH4",headerName:"Fuel Gas tCH4",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"fuelGasTN2O",headerName:"Fuel Gas tN2O",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"flareGasTCO2e",headerName:"Flare Gas tCO2e",type:"numericColumn",valueFormatter:Un,width:200,cellStyle:{textAlign:"right"}},{field:"flareGasTCO2",headerName:"Flare Gas tCO2",type:"numericColumn",valueFormatter:Un,width:200,cellStyle:{textAlign:"right"}},{field:"flareGasTCH4",headerName:"Flare Gas tCH4",type:"numericColumn",valueFormatter:Un,width:200,cellStyle:{textAlign:"right"}},{field:"flareGasTN2O",headerName:"Flare Gas tN2O",type:"numericColumn",valueFormatter:Un,width:200,cellStyle:{textAlign:"right"}},{field:"ventingTCO2e",headerName:"Venting tCO2e",type:"numericColumn",valueFormatter:Un,width:200,cellStyle:{textAlign:"right"}},{field:"ventingTCH4",headerName:"Venting tCH4",type:"numericColumn",valueFormatter:Un,width:200,cellStyle:{textAlign:"right"}},{field:"fugitiveEmissionsTCO2",headerName:"Fugitive Emissions tCO2",type:"numericColumn",valueFormatter:Un,width:200},{field:"fugitiveEmissionsTCO2e",headerName:"Fugitive Emissions tCO2e",type:"numericColumn",valueFormatter:Un,width:230,cellStyle:{textAlign:"right"}},{field:"fugitiveEmissionsTCH4",headerName:"Fugitive Emissions tCH4",type:"numericColumn",valueFormatter:Un,width:230,cellStyle:{textAlign:"right"}},{field:"oilDischargeBpd",headerName:"Oil Discharge (bpd)",type:"numericColumn",valueFormatter:Un,width:200,cellStyle:{textAlign:"right"}},{field:"otherParticulatesTNOx",headerName:"Other Particulates tNOx",type:"numericColumn",valueFormatter:Un,width:230,cellStyle:{textAlign:"right"}},{field:"otherParticulatesTSOx",headerName:"Other Particulates tSOx",type:"numericColumn",valueFormatter:Un,width:230,cellStyle:{textAlign:"right"}},{field:"otherParticulatesTCO",headerName:"Other Particulates tCO",type:"numericColumn",valueFormatter:Un,width:230,cellStyle:{textAlign:"right"}},{field:"otherParticulatesTpm25",headerName:"Other Particulates tPM2.5",type:"numericColumn",valueFormatter:Un,width:250,cellStyle:{textAlign:"right"}},{field:"scope1GhgEmissions",headerName:"Scope 1 GHG Emissions",type:"numericColumn",valueFormatter:Un,width:230,cellStyle:{textAlign:"right"}},{field:"scope2GhgEmissions",headerName:"Scope 2 GHG Emissions",type:"numericColumn",valueFormatter:Un,width:230,cellStyle:{textAlign:"right"}},{field:"scope3GhgEmissions",headerName:"Scope 3 GHG Emissions",type:"numericColumn",valueFormatter:Un,width:230,cellStyle:{textAlign:"right"}},{field:"gasCompositionId",headerName:"Uncertainty ID",type:"text",sortable:!0,filter:"agTextColumnFilter",width:230,cellRenderer:e=>(0,fe.jsx)(N4,{onClick:()=>n(e.value),children:e.value})},{field:"notes",headerName:"Notes",sortable:!0,filter:"agTextColumnFilter",width:200},{field:"dataMarker",headerName:"Data Marker",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:l,valueFormatter:On},width:180},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:l,valueFormatter:On}}],[l,n]);return{getRowId:Gn("id"),columnDefs:r,defaultColDef:{resizable:!0,sortable:!0,filter:!0}}}({onUncertaintyUsedClick:(0,g.useCallback)(e=>{n(e)},[])}),i=(0,g.useCallback)(async e=>{const{data:{getOilTransactionsPage:{totalRows:n,rows:a}}}=await t({variables:e});return{rows:a,totalRows:n}},[t]);return(0,fe.jsxs)(fe.Fragment,{children:[e&&(0,fe.jsx)(D4,{uncertaintyId:e,onClose:()=>n(null)}),(0,fe.jsx)(cH,{title:"Production Transactions",defaultExportFileName:"oil-production-export",breadcrumbs:L4,uploadLink:"../oilProduction/uploads",config:a,fetchRows:i,transactionType:gn.D_.Oil})]})};var j4=t(9632),w4=t(14176),O4=t(45640),E4=t(80696),_4=t(61939);const F4=(0,f.styled)(f.Grid)`
  display: flex;
  flex-direction: column;
  gap: 24px;
`,P4=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
`,B4=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.error}};
`,U4=(e,n)=>{const t=new Date(e),[a,i]=n.split(":");return t.setHours(a),t.setMinutes(i),t},$4="true"===De("REACT_APP_IS_SAVE_DRAFT_FEATURE_ENABLED"),M4=e=>{const{form:n,onSubmit:t=()=>{},children:a,showEndDate:i,dateLabels:l={},showSubmitButton:r=!0,showTime:o,transactionType:s}=e,{handleSubmit:d,getValues:c,setValue:u,reset:p,watch:m,register:y,control:h,trigger:x,formState:{isValid:T,errors:b}}=n||{},v=(e=>"maxLength"===e.uploadReference?.type?"Upload reference max length is 80 characters":e.data?"Please fill all mandatory fields":void 0)(b),C=Je(),{showNotification:k}=tn(),S=`data_form_draft_${s}_${C}`;(0,g.useEffect)(()=>{y("dataFormInputStrategy",{defaultValue:mt.Single}),y("dataFormRowsFillingStrategy",{defaultValue:ft.Distributed}),y("startDate",{defaultValue:null,required:!0}),y("endDate",{defaultValue:null,validate:e=>{if(!e||!c("startDate"))return!0;const n=U4(c("startDate"),c("startTime")||"12:00"),t=U4(e,c("endTime")||"12:00");return bn()(t).isBefore(bn()(n))?`End date ${o?"(and time) ":""}has to be the same or after the start date`:!(bn()(t).diff(bn()(n),"years",!0)>1)||"Date range cannot exceed 1 year"}}),y("startTime",{defaultValue:null}),y("endTime",{defaultValue:null})},[y,c,o]);const[N,A,R,D,L,I,j]=m(["endTime","endDate","startTime","startDate","dateFrequency","dataFormInputStrategy","dataFormRowsFillingStrategy"]),w=I===mt.Single,O=I===mt.Aggregated,E=j===ft.Distributed,_=!w&&!O,F=j===ft.Replicated,P=!(0,hn.isNil)(I)||_,B=E,U=F||!(0,hn.isNil)(L),$=!(0,hn.isNil)(D)&&""!==D,M=(E&&!(0,hn.isNil)(L)&&$||F&&D)&&(!i||A),V=E||i,G=!T&&M,z=Object.entries(gt).map(e=>{let[,n]=e;return{label:(0,hn.capitalize)(n),value:n}});return _&&u("dataFormInputStrategy",mt.Single),(0,fe.jsx)("form",{onSubmit:d(t),children:(0,fe.jsxs)(F4,{container:!0,children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:"Is this data entry for a single transaction or for aggregated set of data?"}),(0,fe.jsxs)(P4,{container:!0,children:[(0,fe.jsx)(f.Grid,{size:5.5,children:(0,fe.jsx)(f.Checkbox,{name:"Single_Container",checked:w||_,value:mt.Single,onChange:()=>u("dataFormInputStrategy",mt.Single),label:"Single (i.e. single commuter journey, regular waste collection or meter reading)"})}),(0,fe.jsx)(f.Grid,{size:5.5,width:"50%",children:(0,fe.jsx)(f.Checkbox,{name:"Aggregated_Container",checked:O,value:mt.Aggregated,onChange:()=>u("dataFormInputStrategy",mt.Aggregated),label:"Aggregated data (i.e annual waste tonnage, quarterly energy bill)"})})]}),P&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:w||_?"Should the data you are uploading be replicated at regular intervals (such as monthly or weekly) over a time period that can be specified below?":"Should the data you are uploading be divided into regular intervals (such as monthly or weekly) over a time period that can be specified below?"}),(0,fe.jsxs)(f.Grid,{container:!0,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Checkbox,{name:"Replicated",checked:E,onChange:()=>u("dataFormRowsFillingStrategy",ft.Distributed),label:"Yes"})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Checkbox,{name:"NotReplicated",checked:F,onChange:()=>u("dataFormRowsFillingStrategy",ft.Replicated),label:"No"})})]})]}),B&&(0,fe.jsx)(Ng.xI,{name:"dateFrequency",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:`Frequency of data to be ${w?"replicated":"distributed"}:`,onChange:e=>{u("dateFrequency",e.value)},options:z,error:t.error?.message})},control:h}),U&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.DatePicker,{onChange:e=>(e=>{const n=U4(e,R||"12:00");u("startDate",n),x("endDate")})(e),name:"startDate",label:l[V?"start":"start-only"]||"Start date",value:D||null}),o&&(0,fe.jsx)(f.TimePicker,{label:"Start time (optional)",name:"startTime",onChange:e=>(e=>{if(D){const n=U4(D,e||"12:00");u("startDate",n),x("endDate")}u("startTime",e)})(e),value:R}),V&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.DatePicker,{name:"endDate",label:l.end||"End date",disabled:!D,value:A,onChange:e=>(e=>{const n=U4(e,N||"12:00");u("endDate",n),x("endDate")})(e),error:b?.endDate?.message}),o&&(0,fe.jsx)(f.TimePicker,{name:"endTime",label:"End time (optional)",value:N,onChange:e=>(e=>{if(c(A)){const n=U4(A,e||"12:00");u("endDate",n),x("endDate")}u("endTime",e)})(e)})]})]}),M&&a,G&&(0,fe.jsx)(B4,{typescale:"body",size:"medium",children:v}),M&&r&&(0,fe.jsx)(f.Button,{type:"submit",variant:"contained",children:"Confirm data entry"}),M&&$4&&(0,fe.jsx)(f.Button,{variant:"outlined",onClick:()=>{try{localStorage.setItem(S,JSON.stringify(c())),k("Draft saved successfully","success")}catch(e){k("Failed to save draft","danger")}},children:"Save draft"}),$4&&(0,fe.jsx)(f.Button,{variant:"outlined",onClick:()=>{try{const e=localStorage.getItem(S);if(!e)return void k("No draft found","warning");p(JSON.parse(e)),k("Draft loaded successfully","success")}catch(e){k("Failed to load draft","danger")}},children:"Load latest draft"})]})})},V4=(0,f.styled)(f.Grid)`
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
`,G4=((0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 24px;
`,(0,f.styled)("div")`
  display: ${e=>{let{isVisible:n}=e;return n?"flex":"none"}};
  flex-direction: column;
  gap: 24px;
  width: 100%;
`),z4=(0,f.styled)(f.TextField)`
  width: 100%;
`,W4=e=>{const{onChange:n=()=>{},trigger:t=()=>{},type:a="text",value:i="",label:l,withNegative:r=!1,...o}=e,s=(0,g.useCallback)(e=>{const{target:{value:a}}=e,i=r?Zn:Qn;return(0,hn.isEmpty)(a)?(n("",e),void t()):i(a)&&a?(n(a,e),void t()):void e.preventDefault()},[n,t,r]);return(0,fe.jsx)(z4,{...o,onChange:s,value:String(i),label:l,type:a})},q4=e=>(0,fe.jsx)(W4,{...e,withNegative:!0});function J4(e){let{form:n,accuracyAs:t="act/est"}=e;const{watch:a,control:i,setValue:l}=n,r=a(`data.${t}`)?.value;return(0,g.useEffect)(()=>{r!==gn.C.Est&&l("data.estimates scenario","")},[r]),r===gn.C.Est&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.estimates scenario",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Estimates Scenario",options:pt.estimatesScenarios.map(e=>({label:e,value:e})),error:t.error?.message,onClear:()=>n.onChange("")})},control:i})})}const Y4=e=>{const{form:n,onSubmit:t=()=>{},dataSection:a}=e,{setValue:i,control:l,register:r,watch:o}=n;(0,g.useEffect)(()=>{r("isFinancialDataRequired"),r("isReferenceDataRequired")},[r]);const[s,d]=o(["isFinancialDataRequired","isReferenceDataRequired"]),c=e=>i("isFinancialDataRequired",e),u=e=>i("isReferenceDataRequired",e),p=(0,g.useCallback)(e=>{const{data:n,startDate:a,endDate:i,dataFormRowsFillingStrategy:l,dateFrequency:r,dataFormInputStrategy:o}=e,s=Qt(n,{startDate:a,endDate:i,dateField:["individual collection date"],divideFields:["quantity"],dataFormRowsFillingStrategy:l,dateFrequency:r,dataFormInputStrategy:o});t(e,s)},[t]),m=zo(),y=(pt.projectPhases[m?.id||"default"]||pt.projectPhases.default).map(e=>({value:e,label:e})),h=Ho();return(0,fe.jsxs)(M4,{onSubmit:p,form:n,transactionType:gn.D_.Waste,dateLabels:{"start-only":"Individual collection date",start:"Individual collection start date",end:"Individual collection end date"},children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"small",children:"Please enter the following mandatory transactional waste data:"}),(0,fe.jsx)(Ng.xI,{name:"data.waste out location",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(hN,{...n,value:n?.value,label:"Waste-out location",onChange:e=>i("data.waste out location",e),error:t.error?.message,createNew:!0})},rules:{required:"Waste-out location is required"},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.waste stream",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(L_,{...n,label:"Waste stream",value:n?.value,onChange:e=>i("data.waste stream",e),error:t.error?.message,createNew:!0})},rules:{required:"Waste stream is required"},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.waste in location",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(xN,{...n,createNew:!0,value:n?.value,label:"Waste-in location",error:t.error?.message,onChange:e=>i("data.waste in location",e)})},rules:{required:"Waste-in location is required"},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.waste contractor",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Vj,{value:n?.value,label:"Waste contractor",utility:a,supplierType:gn.d.Contractor,onChange:e=>i("data.waste contractor",e),error:t.error?.message})},rules:{required:"Waste contractor is required"},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.waste carrier",render:e=>{let{field:n}=e;return(0,fe.jsx)(Vj,{value:n?.value,label:"Waste carrier",utility:a,onChange:e=>i("data.waste carrier",e),supplierType:gn.d.Carrier})},rules:{required:"Waste carrier is required"},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.container type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(XH,{value:n?.value,label:"Container type size",onChange:e=>i("data.container type",e),error:t.error?.message})},rules:{required:"Container type size is required"},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.number of collections",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Number of collections",...n})},rules:{required:"Number of collections is required"},defaultValue:1,control:l}),(0,fe.jsx)(Ng.xI,{name:"data.quantity",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(q4,{label:"Quantity",error:t.error?.message,...n})},rules:{required:"Quantity is required"},control:l}),h.has("WasteTransaction.purchaseType")&&(0,fe.jsx)(Ng.xI,{name:"data.purchase type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Purchase type"+(h.isRequired("WasteTransaction.purchaseType")?"":" (optional)"),value:n?.value,options:ji(),onChange:e=>i("data.purchase type",e),error:t.error?.message})},rules:h.isRequired("WasteTransaction.purchaseType")?{required:"Required"}:{},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.unit of weight",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(hK,{label:"Unit of weight",onChange:e=>i("data.unit of weight",e),value:n?.value,possibleOptions:["kg","t"],error:t.error?.message,placeholder:"Please select unit of weight"})},rules:{required:"Unit of Weight is required"},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.number of containers",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{label:"Number of containers",error:t.error?.message,...n})},rules:{required:"Number of containers is required"},defaultValue:1,control:l}),(0,fe.jsx)(Ng.xI,{name:"data.treatment process",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(vN,{value:n?.value,label:"Treatment process",onChange:e=>i("data.treatment process",e),error:t.error?.message})},rules:{required:"Treatment process is required"},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.act/est",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Act/Est",value:n?.value,options:[{value:gn.C.Act,label:"Act"},{value:gn.C.Est,label:"Est"}],onChange:e=>i("data.act/est",e),error:t.error?.message})},rules:{required:"Act/Est is required"},control:l}),(0,fe.jsx)(J4,{form:n}),h.has("WasteTransaction.projectPhase")&&(0,fe.jsx)(Ng.xI,{name:"data.project phase",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Project phase"+(h.isRequired("WasteTransaction.projectPhase")?"":" (optional)"),value:n?.value,options:y,onChange:e=>i("data.project phase",e.value),error:t.error?.message})},rules:h.isRequired("WasteTransaction.projectPhase")?{required:"Required"}:{},control:l}),(0,fe.jsxs)(V4,{container:!0,children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:"Do you want to add financial data?"}),(0,fe.jsxs)(f.Grid,{container:!0,children:[(0,fe.jsx)(f.Checkbox,{name:"Financial",label:"Yes",checked:!!s,onChange:()=>c(!0)}),(0,fe.jsx)(f.Checkbox,{name:"NoFinancial",label:"No",checked:!s,onChange:()=>c(!1)})]})]}),(0,fe.jsxs)(G4,{isVisible:s,children:[(0,fe.jsx)(Ng.xI,{name:"data.gate fee",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Gate fee (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.management fee",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Management fee (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.bin hire",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Bin hire (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.bin exchange",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Bin exchange fee (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.lift charge",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Lift charge (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.labour cost",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Labour cost (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.equipment hire",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Equipment hire (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.misc cost",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Misc cost (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.misc cost rate",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Misc cost rate (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.transport charge",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Transport charge (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.rebate",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Rebate (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.penalty",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Penalty (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.currency",render:e=>{let{field:n}=e;return(0,fe.jsx)(bK,{label:"Currency (optional)",value:n?.value,onChange:e=>i("data.currency",e)})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.notes",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Notes (optional)",...n})},control:l})]}),(0,fe.jsxs)(V4,{container:!0,children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:"Do you want to add any references?"}),(0,fe.jsxs)(f.Grid,{container:!0,children:[(0,fe.jsx)(f.Checkbox,{name:"Reference",label:"Yes",checked:!!d,onChange:()=>u(!0)}),(0,fe.jsx)(f.Checkbox,{name:"NoReference",label:"No",checked:!d,onChange:()=>u(!1)})]})]}),(0,fe.jsxs)(G4,{isVisible:d,children:[(0,fe.jsx)(Ng.xI,{name:"data.waste transfer note id",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Waste transfer note ID (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.consignment note (sepa) id",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Consignment note (SEPA) ID (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.consignment note (ea) id",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Consignment note (EA) ID (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.invoice number",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Invoice number (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.sales order id",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Sales order ID (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Reference (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.evidence reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Evidence reference (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.other reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Other reference (optional)",...n})},control:l})]}),e.children]})},H4=(e,n)=>{const{data:t}=(0,x.IT)(qA,{variables:{id:e?.value},skip:!e?.value});return{validateFields:(a,i)=>{if(!e?.value||!t?.getEnergySourceById)return{quantityError:null,readingError:null};const l=t.getEnergySourceById.isReadingMeter;return!l||null!=i&&""!==i?l||null!=a&&""!==a?{quantityError:null,readingError:null}:{quantityError:`${n===gn.D_.Water?"Quantity (m3)":"Quantity (kWh)"} is required for consumption meter '${e.label}'.`,readingError:null}:{quantityError:null,readingError:`Reading is required for reading meter '${e.label}'.`}}}},K4=(0,f.styled)("div")`
  width: 100%;
  margin-top: 16px;
  height: 4px;
`,Q4=(0,f.styled)(f.LinearProgress)`
  width: 100%;
`,Z4=(0,f.styled)("div")`
  display: flex;
  gap: 16px
  margin-left: 16px;
  flex-shrink: 0;
`;function X4(e){const{form:n,onSubmit:t=()=>{},dataSection:a}=e,{setValue:i,control:l,register:r,watch:o}=n,[s]=(0,g.useState)(n.getValues("data.currency")),d=Je(),{data:c,loading:u}=Go(),[p]=o(["data.meter name"]),{validateFields:m}=H4(p,a);(0,g.useEffect)(()=>{r("isReferenceDataRequired")},[r]);const[y]=o(["isReferenceDataRequired"]),h=(0,g.useCallback)(()=>i("isReferenceDataRequired",!0),[i]),x=(0,g.useCallback)(()=>i("isReferenceDataRequired",!1),[i]),T=(0,g.useCallback)(e=>{const{data:n,startDate:a,endDate:i,dataFormRowsFillingStrategy:l,dateFrequency:r,dataFormInputStrategy:o}=e,s=Qt(n,{startDate:a,endDate:i,dateField:["start date (dd/mm/yyyy)","end date (dd/mm/yyyy)"],divideFields:["quantity (m3)"],dataFormRowsFillingStrategy:l,dateFrequency:r,dataFormInputStrategy:o});t(e,s)},[t]),b=(0,g.useMemo)(()=>[{value:gn.C.Act,label:"Act"},{value:gn.C.Est,label:"Est"}],[]),v=(0,g.useMemo)(()=>c.map(e=>({value:e.id,label:e.name})),[c]),C=(0,g.useMemo)(()=>v.find(e=>e.label===s),[s,v]),k=Ho(),S=u;return(0,fe.jsxs)(M4,{transactionType:gn.D_.Water,onSubmit:T,form:n,showEndDate:!0,children:[S&&(0,fe.jsx)(K4,{children:(0,fe.jsx)(Q4,{})}),(0,fe.jsxs)(f.Grid,{container:!0,columns:12,rowGap:4,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsxs)(f.Text,{typescale:"body",size:"large",children:["Please enter the following transactional ",a.toLowerCase()," data:"]})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.meter name",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(cK,{...n,accountId:d,label:"Meter name",value:n?.value,type:a,createNew:!0,onChange:async e=>{i("data.meter name",e)},error:t.error?.message})},rules:{required:"Meter name is required"},control:l})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.reading",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Reading (optional)",error:t.error?.message})},rules:{validate:e=>{const t=n.getValues("data.quantity (m3)"),{readingError:a}=m(t,e);return a||!0}},defaultValue:"",control:l})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.supplier",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Vj,{label:"Supplier (optional)",onChange:e=>{i("data.supplier",e)},error:t.error?.message,utility:gn.D_.Water,value:n?.value})},control:l})}),k.has("WaterTransaction.purchaseType")&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.purchase type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Purchase type"+(k.isRequired("WaterTransaction.purchaseType")?"":" (optional)"),value:n?.value,options:ji(),onChange:e=>i("data.purchase type",e),error:t.error?.message})},rules:k.isRequired("WaterTransaction.purchaseType")?{required:"Required"}:{},control:l})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.quantity (m3)",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(q4,{...n,label:"Quantity (m3)",error:t.error?.message,onChange:e=>{n.onChange(e)}})},rules:{validate:e=>{const t=n.getValues("data.reading"),{quantityError:a}=m(e,t);return a||!0}},control:l})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.act/est",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Act/Est",value:n?.value,options:b,error:t.error?.message,onChange:e=>{const n=(t=e,b.find(e=>e.value===t.value)||{});var t;i("data.act/est",n)}})},rules:{required:"Act/Est is required"},control:l})}),(0,fe.jsx)(J4,{form:n}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.tariff (£/m3)",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Tariff (cost per m3) (optional)",error:t.error?.message,onChange:e=>{n.onChange(e)}})},control:l})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.total cost",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Total cost (optional)",error:t.error?.message,onChange:e=>{n.onChange(e)}})},defaultValue:"",control:l})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.currency",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Currency",value:n.value,options:v,error:t.error?.message,onChange:e=>i("data.currency",e)})},defaultValue:C,control:l})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.comment",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Comment"})},control:l,defaultValue:""})}),(0,fe.jsxs)(f.Grid,{container:!0,size:12,alignItems:"center",justifyContent:"space-between",children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"large",children:"Do you want to add any references?"}),(0,fe.jsxs)(Z4,{children:[(0,fe.jsx)(f.Checkbox,{label:"Yes",checked:Boolean(y),onChange:h}),(0,fe.jsx)(f.Checkbox,{label:"No",checked:!Boolean(y),onChange:x})]})]}),y&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.invoice number",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Invoice number (optional)"})},defaultValue:"",control:l})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.evidence reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Evidence reference (optional)"})},defaultValue:"",control:l})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.other reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Other reference (optional)"})},defaultValue:"",control:l})})]}),e.children]})]})}const e6=e=>{const{form:n={},onSubmit:t=()=>{},dataSection:a=gn.D_.Electricity}=e,{setValue:i,control:l,register:r,watch:o}=n,[s]=(0,g.useState)(n.getValues("data.currency")),d=Je(),{data:c,loading:u}=Go(),[p]=o(["data.meter name"]),{validateFields:m}=H4(p,a);(0,g.useEffect)(()=>{r("isReferenceDataRequired")},[r]);const[y]=o(["isReferenceDataRequired"]),h=e=>i("isReferenceDataRequired",e),x=[{value:"ACT",label:"Act"},{value:"EST",label:"Est"}],T=[{value:RZ,label:RZ},{value:DZ,label:DZ}],b=(c||[])?.map(Ua),v=b.find(e=>e.label===s),C=u,k=Ho(),S=k.has(`${a}Transaction.purchaseType`),N=k.isRequired(`${a}Transaction.purchaseType`);return(0,fe.jsxs)(M4,{onSubmit:e=>{const{data:n,startDate:a,endDate:i,dataFormRowsFillingStrategy:l,dateFrequency:r,dataFormInputStrategy:o}=e,s=Qt(n,{startDate:a,endDate:i,dateField:["start date (dd/mm/yyyy)","end date (dd/mm/yyyy)"],divideFields:["quantity (kwh)","total cost"],dataFormRowsFillingStrategy:l,dateFrequency:r,dataFormInputStrategy:o});t(e,s)},form:n,showEndDate:!0,showTime:!0,transactionType:a,children:[C&&(0,fe.jsx)(f.LinearProgress,{}),!C&&(0,fe.jsx)(f.Grid,{container:!0,children:(0,fe.jsxs)(G4,{isVisible:!0,children:[(0,fe.jsxs)(f.Text,{typescale:"title",size:"small",children:["Please enter the following transactional ",a.toLowerCase()," data:"]}),(0,fe.jsx)(Ng.xI,{name:"data.meter name",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(cK,{...n,accountId:d,label:"Meter name",value:n?.value,type:a,createNew:!0,onChange:e=>{i("data.meter name",e)},error:t.error?.message})},rules:{required:"Meter name is required"},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.tariff",render:e=>{let{field:n}=e;return(0,fe.jsx)(AK,{...n,value:n?.value,label:"Tariff (optional)",onChange:e=>i("data.tariff",e),accountId:d})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.quantity (kwh)",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(q4,{label:"Quantity (kWh)",...n,error:t.error?.message})},rules:{validate:e=>{const t=n.getValues("data.reading"),{quantityError:a}=m(e,t);return a||!0}},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.reading",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(q4,{label:"Reading",...n,error:t.error?.message})},rules:{validate:e=>{const t=n.getValues("data.quantity (kwh)"),{readingError:a}=m(t,e);return a||!0}},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.total cost",render:e=>{let{field:n}=e;return(0,fe.jsx)(W4,{label:"Total cost (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.currency",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.AutoComplete,{...n,label:"Currency",value:n?.value,options:b,defaultValue:v,onChange:e=>i("data.currency",e)})},defaultValue:v?.label,control:l}),(0,fe.jsx)(Ng.xI,{name:"data.act/est",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,value:n?.value,label:"Act/Est",onChange:e=>i("data.act/est",e),options:x,error:t.error?.message})},rules:{required:"Act/Est is required"},control:l}),(0,fe.jsx)(J4,{form:n}),(0,fe.jsx)(Ng.xI,{name:"data.supplier",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Vj,{...n,utility:a,label:"Supplier (optional)",value:n?.value,error:t.error?.message,supplierType:gn.d.Supplier,onChange:e=>i("data.supplier",e)})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.charge/kwh",render:e=>{let{field:n}=e;return(0,fe.jsx)(q4,{label:"Charge/kWh (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"activity",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,value:n?.value,label:"Activity",onChange:e=>i("activity",e.value),options:T,error:t.error?.message})},rules:{required:"Activity is required"},control:l}),S&&(0,fe.jsx)(Ng.xI,{name:"data.purchase type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Purchase type"+(N?"":" (optional)"),value:n?.value,options:ji(),onChange:e=>i("data.purchase type",e),error:t.error?.message})},rules:N?{required:"Required"}:{},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.comment",render:e=>{let{field:n}=e;return(0,fe.jsx)(z4,{label:"Comment (optional)",...n})},control:l}),(0,fe.jsxs)(V4,{container:!0,children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:"Do you want to add any references?"}),(0,fe.jsxs)(f.Grid,{container:!0,children:[(0,fe.jsx)(f.Checkbox,{name:"Reference",label:"Yes",checked:!!y,onChange:()=>h(!0)}),(0,fe.jsx)(f.Checkbox,{name:"NoReference",label:"No",checked:!y,onChange:()=>h(!1)})]})]}),(0,fe.jsxs)(G4,{isVisible:y,children:[(0,fe.jsx)(Ng.xI,{name:"data.invoice number",render:e=>{let{field:n}=e;return(0,fe.jsx)(z4,{label:"Invoice number (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.evidence reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(z4,{label:"Evidence reference (optional)",...n})},control:l}),(0,fe.jsx)(Ng.xI,{name:"data.other reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(z4,{label:"Other reference (optional)",...n})},control:l})]}),e.children]})})]})},n6=(0,f.styled)("div")`
  display: flex;
  gap: 16px
  margin-left: 16px;
  flex-shrink: 0;
`;function t6(e){const{form:n,onSubmit:t,dataSection:a}=e,{setValue:i,control:l,watch:r,getValues:o,getFieldState:s,formState:d}=n,[c]=(0,g.useState)(n.getValues("data.currency")),{data:u,refetch:p}=_s(),m=Fs(),y=Ps(),{data:h}=Go(),x=Ho(),[T]=r(["isReferenceDataRequired"]),b=(0,g.useCallback)(e=>i("isReferenceDataRequired",e),[i]),v=(0,g.useCallback)(()=>b(!0),[b]),C=(0,g.useCallback)(()=>b(!1),[b]),k=(0,g.useCallback)(e=>{const{data:n,startDate:a,endDate:i,dataFormRowsFillingStrategy:l,dateFrequency:r,dataFormInputStrategy:o}=e;n.volume||(n["unit of volume"]=void 0);const s=Qt(n,{startDate:a,endDate:i,dataFormInputStrategy:o,dateFrequency:r,dataFormRowsFillingStrategy:l,dateField:["date"],divideFields:["volume","number of journeys","journey distance","distance","total distance","freight (tonne.km)"]}).map(e=>({...e,"freight (tonne.km)":e["freight (tonne/km)"]}));t(e,s)},[t]),S=(0,g.useMemo)(()=>({value:RZ,label:"Yes"}),[]),N=(0,g.useMemo)(()=>[S,{value:DZ,label:"No"}],[S]),A=(0,g.useMemo)(()=>({value:"L",label:"L"}),[]),R=(0,g.useMemo)(()=>[A,{value:"t",label:"t"}],[A]),D=(0,g.useMemo)(()=>({value:"km",label:"km"}),[]),L=(0,g.useMemo)(()=>[D,{value:"mi",label:"mi"},{value:"passenger.km",label:"passenger.km"}],[D]),I=(0,g.useMemo)(()=>h.map(Ua),[h]),j=(0,g.useMemo)(()=>I.find(e=>e.label===c)?.value,[c,I]),w=n.getValues().data,O=!(w?.distance||w?.volume||w?.["journey distance"]),E=!(w?.distance||w?.["freight (tonne/km)"]||w?.["journey distance"]),_=!(w?.volume||w?.["freight (tonne/km)"]),F=w?.distance&&"Distance Unit is required",P=(0,g.useCallback)(()=>{const e=n.getValues().data?.["journey distance"],t=n.getValues().data?.["number of journeys"];void 0!==e&&void 0!==t&&i("data.distance",Number(e)*Number(t))},[n,i]),B=(0,g.useCallback)(e=>{i("data.number of journeys",Number.isNaN(e)?1:Number(e)),P()},[P,i]),U=(0,g.useCallback)(e=>{i("data.journey distance",Number.isNaN(e)?0:Number(e)),P()},[P,i]),$=(0,g.useCallback)(e=>{i("data.type",e),i("data.subtype",null),p({typeId:e.value})},[p,i]),M=(0,g.useCallback)((e,n)=>{const{isTouched:t}=s(e,d);return{required:{value:t,message:n}}},[s,d]),V=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.purpose of journey",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Purpose of journey",options:m?.map(Ua),value:n.value,onChange:e=>i("data.purpose of journey",e),error:t.error?.message})},rules:{required:"Purpose of journey is required "},control:l})}),[l,m,i]),G=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"activity",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Account holder's owned and controlled vehicles",options:N,value:n.value,onChange:e=>i("activity",e.value),error:t.error?.message})},rules:{required:"Account holder's owned and controlled vehicles is required"},control:l})}),[N,l,i]),z=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.location",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(gN,{...n,createNew:!0,label:"Location",value:n.value,error:t.error?.message,onChange:e=>i("data.location",e)})},rules:{required:"Location is required"},control:l})}),[l,i]),W=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Type",options:y?.map(Ua),value:n.value,onChange:e=>{i("data.type",e),$(e)},error:t.error?.message})},rules:{required:"Type is required"},control:l})}),[l,y,i,$]),q=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.subtype",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Subtype",options:y.find(e=>{let{id:n}=e;return n===w?.type?.value})?.subtypes.map(Ua),value:n.value,onChange:e=>i("data.subtype",e),error:t.error?.message})},rules:{required:"Subtype is required"},control:l})}),[l,y,w?.type,i]),J=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.fuel type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Fuel type",options:u?.map(Ua),value:n.value,onChange:e=>i("data.fuel type",e),error:t.error?.message})},rules:{required:"Fuel type is required"},control:l})}),[l,u,i]),Y=(0,g.useCallback)(()=>x.has("TransportTransaction.purchaseType")?(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.purchase type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.AutoComplete,{...n,label:"Purchase type"+(x.isRequired("TransportTransaction.purchaseType")?"":" (optional)"),options:ji(),value:n.value,onChange:e=>i("data.purchase type",e),error:t.error?.message})},rules:x.isRequired("TransportTransaction.purchaseType")?{required:"Required"}:{},control:l})}):null,[l,x,i]),H=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.data provider",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Vj,{label:"Data provider (optional)",value:n.value,onChange:e=>i("data.data provider",e),error:t.error?.message,utility:gn.D_.Transport})},control:l})}),[l,i]),K=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.origin of travel",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,value:n.value,label:"Origin of travel",id:"origin of travel",onChange:e=>i("data.origin of travel",e.target.value),error:Boolean(t.error?.message),helperText:t.error?.message})},rules:{required:"Origin of travel is required"},control:l,defaultValue:""})}),[l,i]),Q=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.destination of travel",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,value:n.value,label:"Destination of travel",id:"destination of travel",onChange:e=>i("data.destination of travel",e.target.value),error:Boolean(t.error?.message),helperText:t.error?.message})},control:l,defaultValue:"",rules:{required:"Destination of travel is required"}})}),[l,i]),Z=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.volume",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(q4,{...n,label:"Fuel volume"+(E?"":" (optional)"),value:n.value,onChange:e=>i("data.volume",e),id:"volume",error:Boolean(t.error?.message),helperText:t.error?.message||"If no Volume figure is entered you will need to provide a value for 'Journey distance'"})},rules:{required:!!E&&"Fuel volume is required"},control:l})}),[l,E,i]),X=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.unit of volume",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Volume unit "+(o("data.unit of volume")?"":"(optional)"),options:R,value:n.value,onChange:e=>i("data.unit of volume",e),error:t.error?.message})},defaultValue:A,control:l,rules:M("data.unit of volume","Unit of Volume is required")})}),[l,A,M,o,i,R]),ee=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.number of journeys",control:l,defaultValue:1,rules:{required:!1},render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,id:"number of journeys",label:"Number of journeys",error:Boolean(t.error?.message),helperText:t.error?.message,value:n.value,onChange:e=>{i("data.number of journeys",e),B(e)}})}})}),[l,B,i]),ne=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.journey distance",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(q4,{...n,label:"Journey Distance"+(_?"":" (optional)"),id:"journey distance",value:n.value,onChange:e=>{i("data.journey distance",e),U(e)},error:Boolean(t.error?.message),helperText:t.error?.message})},rules:{required:_},control:l})}),[l,U,_,i]),te=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.distance",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Total distance"+(_?"":" (optional)"),id:"totalDistance",value:n.value,onChange:e=>{i("data.distance",e),U(e)},error:Boolean(t.error?.message),helperText:t.error?.message})},rules:{required:_},control:l})}),[l,U,_,i]),ae=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.unit of distance",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Distance unit"+(F?"":" (optional)"),options:L,value:n.value,onChange:e=>i("data.unit of distance",e),error:t.error?.message})},defaultValue:D,control:l,rules:M("data.unit of distance","Unit of distance is required")})}),[l,D,L,M,F,i]),ie=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.freight (tonne/km)",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(q4,{...n,label:"Freight (tonne/km)"+(O?"":" (optional)"),error:Boolean(t.error?.message),helperText:t.error?.message,value:n.value,onChange:e=>{i("data.freight (tonne/km)",e)}})},rules:{required:O},defaultValue:"",control:l})}),[l,O,i]),le=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.carrier",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Carrier"+(w?.["freight (tonne/km)"]?"":" (optional)"),value:n.value,onChange:e=>{i("data.carrier",e.target.value)},error:Boolean(t.error?.message),helperText:t.error?.message})},control:l,defaultValue:"",rules:M("data.freight (tonne/km)","Carrier is required")})}),[l,M,w,i]),re=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.cost of journey",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Cost (optional)",value:n.value,onChange:e=>i("data.cost of journey",e),error:Boolean(t.error?.message),helperText:t.error?.message})},control:l,defaultValue:""})}),[l,i]),oe=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.currency",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.AutoComplete,{...n,label:"Currency",onChange:e=>i("data.currency",e),value:n.value,options:I,error:t.error?.message})},rules:{required:"Currency is required"},defaultValue:j,control:l})}),[l,j,I,i]),se=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.act/est",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Act/Est",options:[{value:"ACT",label:"ACT"},{value:"EST",label:"EST"}],value:n.value,onChange:e=>i("data.act/est",e),error:t.error?.message})},rules:{required:"Act/Est is required"},defaultValue:{value:"ACT",label:"ACT"},control:l})}),[l,i]),de=(0,g.useCallback)(()=>(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.notes",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Notes (optional)",value:n.value,onChange:e=>{i("data.notes",e.target.value)},error:Boolean(t.error?.message),helperText:t.error?.message})},control:l,defaultValue:""})}),[l,i]),ce=(0,g.useCallback)(()=>(0,fe.jsxs)(f.Grid,{container:!0,size:12,alignItems:"center",justifyContent:"space-between",children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"large",children:"Do you want to add any references?"}),(0,fe.jsxs)(n6,{children:[(0,fe.jsx)(f.Checkbox,{label:"Yes",checked:Boolean(T),onChange:v}),(0,fe.jsx)(f.Checkbox,{label:"No",checked:!Boolean(T),onChange:C})]})]}),[C,T,v]),ue=(0,g.useCallback)(()=>(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.reference",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Reference",value:n.value,onChange:e=>i("data.reference",e.target.value),helperText:t.error?.message,error:Boolean(t.error?.message)})},defaultValue:"",control:l})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"data.document reference",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Document reference",value:n.value,onChange:e=>i("data.document reference",e.target.value),helperText:t.error?.message,error:Boolean(t.error?.message)})},defaultValue:"",control:l})})]}),[l,i]);return(0,fe.jsxs)(M4,{onSubmit:k,form:n,showSubmitButton:!!r("activity"),dateLabels:{"start-only":"Date"},transactionType:gn.D_.Transport,children:[(0,fe.jsxs)(f.Text,{typescale:"body",size:"large",children:["Please enter the following transactional ",a.toLowerCase()," data:"]}),z(),V(),!!r("data.purpose of journey")&&G(),!!r("activity")&&(0,fe.jsxs)(fe.Fragment,{children:[W(),!!r("data.type")&&q(),J(),Y(),H(),Z(),!!r("data.volume")&&X(),K(),Q(),ee(),ne(),!!r("data.journey distance")&&te(),!!r("data.journey distance")&&ae(),ie(),le(),se(),(0,fe.jsx)(J4,{form:n}),re(),oe(),de(),ce(),T&&ue(),e.children]})]})}const a6="Either Hotel nights either Home working days are required",i6=e=>{let{form:n,onSubmit:t,children:a,dataSection:i}=e;const l=Je(),r=zo(),o=r?.accessControls?.customFields,{control:s,setValue:d}=n,c=n.getValues(),[u,p]=(0,g.useState)(!1),m=()=>p(e=>!e),y=(0,g.useCallback)(e=>{const{data:n,startDate:a,endDate:i,dataFormRowsFillingStrategy:l,dateFrequency:r,dataFormInputStrategy:o}=e,s=Qt(n,{startDate:a,endDate:i,dataFormInputStrategy:o,dateFrequency:r,dataFormRowsFillingStrategy:l,dateField:["start date (dd/mm/yyyy)","end date (dd/mm/yyyy)"],divideFields:["hotel nights","home working days","total cost"]});t(e,s)},[t]);return(0,fe.jsxs)(M4,{onSubmit:y,form:n,showEndDate:!0,transactionType:gn.D_.Hotelstays,children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"small",children:"Please enter the following transactional hotel stays data:"}),(0,fe.jsx)(Ng.xI,{name:"data.location",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(gN,{value:n?.value,label:"Location",onChange:e=>d("data.location",e),error:t.error?.message})},rules:{required:"Location is required"},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.hotel stay / home working country",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(iX,{value:n?.value,label:"Hotel stay / Home working country",onChange:e=>d("data.hotel stay / home working country",e),error:t.error?.message})},rules:{required:"Country is required"},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.hotel nights",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{label:"Hotel nights",...n,error:t.error?.message})},rules:{required:!c.data?.["home working days"]&&a6},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.home working days",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Home working days",error:t.error?.message})},rules:{required:!c.data?.["hotel nights"]&&a6},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.data provider",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Vj,{value:n?.value,label:"Data provider",onChange:e=>d("data.data provider",e),error:t.error?.message,utility:i,supplierType:gn.d.Supplier})},rules:{required:"Data provider is required"},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.tariff",render:e=>{let{field:n}=e;return(0,fe.jsx)(AK,{accountId:l,value:n?.value,label:"Electricity tariff (optional)",onChange:e=>d("data.tariff",e)})},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.total cost",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Total cost (optional)",error:t.error?.message})},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.currency",render:e=>{let{field:n}=e;return(0,fe.jsx)(bK,{value:n?.value,label:"Currency (optional)",onChange:e=>d("data.currency",e)})},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.act/est",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Act/Est",options:[{value:"ACT",label:"ACT"},{value:"EST",label:"EST"}],value:n.value,onChange:e=>d("data.act/est",e),error:t.error?.message})},rules:{required:"Act/Est is required"},defaultValue:{value:"ACT",label:"ACT"},control:s}),(0,fe.jsx)(J4,{form:n}),o?.includes("HotelStaysTransaction.purchaseType")&&(0,fe.jsx)(Ng.xI,{name:"data.purchase type",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.Select,{...n,label:"Purchase type",options:ji(),onChange:e=>d("data.purchase type",e)})},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.notes",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Notes (optional)"})},control:s}),(0,fe.jsxs)(V4,{container:!0,children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:"Do you want to add any references?"}),(0,fe.jsxs)(f.Grid,{container:!0,children:[(0,fe.jsx)(f.Checkbox,{name:"Reference",label:"Yes",checked:!!u,onChange:m}),(0,fe.jsx)(f.Checkbox,{name:"NoReference",label:"No",checked:!u,onChange:m})]})]}),(0,fe.jsxs)(G4,{isVisible:u,children:[(0,fe.jsx)(Ng.xI,{name:"data.reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Reference (optional)",...n})},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.invoice number",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Invoice number (optional)",...n})},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.evidence reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Evidence reference (optional)"})},control:s}),(0,fe.jsx)(Ng.xI,{name:"data.other reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Other reference (optional)"})},control:s})]}),a]})};var l6=t(29147),r6=t.n(l6);const o6=S.J1`
  mutation initiateDromoUpload(
    $transactionType: TransactionType!
    $accountId: ID!
    $fileName: String!
    $dromoId: ID!
    $isDirectActivity: Boolean
  ) {
    initiateDromoUpload(
      transactionType: $transactionType
      accountId: $accountId
      fileName: $fileName
      dromoId: $dromoId
      isDirectActivity: $isDirectActivity
    )
  }
`,s6=S.J1`
  query getDromoSchema($transactionType: TransactionType!, $accountId: ID!) {
    getDromoSchema(transactionType: $transactionType, accountId: $accountId)
  }
`,d6=(S.J1`
  mutation createPreSignedUploadLink($key: ID!, $accountId: ID!, $batchType: TransactionType!) {
    createPreSignedUploadLink(key: $key, accountId: $accountId, batchType: $batchType)
  }
`,S.J1`
  mutation initiateDataOverwriting($key: ID!, $batchType: TransactionType!, $accountId: ID!) {
    initiateDataOverwriting(key: $key, batchType: $batchType, accountId: $accountId) {
      ...DataOverwritingStrategyFields
    }
  }
  ${r6()}
`,S.J1`
  mutation scheduleDataOverwritingExecution(
    $strategyId: ID!
    $accountId: ID!
    $batchId: ID!
    $batchType: TransactionType!
  ) {
    scheduleDataOverwritingExecution(
      strategyId: $strategyId
      accountId: $accountId
      batchId: $batchId
      batchType: $batchType
    ) {
      ...DataOverwritingStrategyFields
    }
  }
  ${r6()}
`,S.J1`
  subscription dataOverwritingStrategyUpdated($id: ID!, $batchType: TransactionType!) {
    dataOverwritingStrategyUpdated(id: $id, batchType: $batchType) {
      ...DataOverwritingStrategyFields
    }
  }
  ${r6()}
`,S.J1`
  query GetEmissionFactorsPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {
    getEmissionFactorsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        id
        factorKey
        sourceName
        factorYear
        accountingMethod
        emissionSource
        emissionSourceType
        scope
        type
        subtype1
        subtype2
        subtype3
        fromUnit
        toGhgUnit
        accountId
        region
      }
      totalRows
    }
  }
`),c6=e=>{let{enabled:n=!1,scopes:t,methods:a}=e;const i=Je(),{showNotification:l}=tn(),[r,o]=(0,g.useState)(!1),[s,d]=(0,g.useState)([]),[c]=(0,Ul._)(d6,{variables:{accountId:i,filters:{boolean:[{values:[!1],field:"deprecated",filterType:gn.pe.Set}],set:[t?.length?{values:t.map(e=>e.toString()),field:"scope",filterType:gn.pe.Set}:null,a?.length?{values:a.map(e=>e),field:"method",filterType:gn.pe.Set}:null].filter(Boolean)}}}),u=(0,g.useCallback)(e=>{let{limit:n,offset:t}=e;return{limit:n,offset:t,accountId:i}},[i]),p=(0,g.useCallback)(e=>e.getEmissionFactorsPage.rows,[]),m=(0,g.useCallback)(e=>e.getEmissionFactorsPage.totalRows,[]),f=(0,g.useMemo)(()=>function(e,n,t,a){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1e3,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:10;return async function*(){const r=n({limit:i,offset:0}),o=await e({variables:r});if(!o.data)return;const s=a(o.data),d=t(o.data),c=Math.ceil(s/i);for(const e of d)yield e;if(c<=1)return;const u=Array.from({length:c-1},(e,n)=>(n+1)*i);for(let a=0;a<u.length;a+=l){const r=u.slice(a,a+l).map(async a=>{const l=n({limit:i,offset:a}),r=await e({variables:l});return{offset:a,items:r.data?t(r.data):[]}}),o=await Promise.all(r);for(const e of o.sort((e,n)=>e.offset-n.offset))for(const n of e.items)yield n}}}(c,u,p,m,500),[c,u,p,m]),y=(0,g.useCallback)(async()=>{try{o(!0),d([]);const e=[],n=await pa(f());for(const t of n)e.push(t);d(e),o(!1)}catch(e){l("Error fetching emission factors","danger"),o(!1)}},[f,l]);(0,g.useLayoutEffect)(()=>{n&&y()},[n,y]);const h=(0,g.useMemo)(()=>function(e){const n={};for(const t of e){const{factorYear:e,region:a,sourceName:i,emissionSource:l,type:r,subtype1:o,subtype2:s,subtype3:d,fromUnit:c,toGhgUnit:u}=t;n[e]||(n[e]={}),n[e][a]||(n[e][a]={}),n[e][a][i]||(n[e][a][i]={}),n[e][a][i][l]||(n[e][a][i][l]={}),n[e][a][i][l][r]||(n[e][a][i][l][r]={});const p=n[e][a][i][l][r];p[o]||(p[o]={subtypes2:null,fromUnits:{}});const m=p[o];if(s){m.subtypes2||(m.subtypes2={}),m.subtypes2[s]||(m.subtypes2[s]={subtypes3:null,fromUnits:{}});const e=m.subtypes2[s];if(d){e.subtypes3||(e.subtypes3={}),e.subtypes3[d]||(e.subtypes3[d]={});const n=e.subtypes3[d];n[c]||(n[c]={toGhgUnits:{}}),n[c].toGhgUnits[u]||(n[c].toGhgUnits[u]={})}else e.fromUnits[c]||(e.fromUnits[c]={toGhgUnits:{}}),e.fromUnits[c].toGhgUnits[u]||(e.fromUnits[c].toGhgUnits[u]={})}else m.fromUnits[c]||(m.fromUnits[c]={toGhgUnits:{}}),m.fromUnits[c].toGhgUnits[u]||(m.fromUnits[c].toGhgUnits[u]={})}return n}(s),[s]);return{areEmissionFactorsLoading:r,emissionFactors:s,fetchEmissionFactors:y,validEmissionFactorCombinationTree:h}},u6=e=>{let{form:n,onSubmit:t,children:a}=e;const{control:i,setValue:l,watch:r}=n,o=n.getValues(),{validEmissionFactorCombinationTree:s,areEmissionFactorsLoading:d}=c6({enabled:!0,scopes:[3],methods:["Activity-Based"]}),[c,u,p,m,y,h]=r(["endDate","data.factor set","data.material type","data.subtype 1","data.subtype 2","data.subtype 3"]),x=c?new Date(c).getFullYear():null;(0,g.useEffect)(()=>{l("data.factor set",""),l("data.material type",""),l("data.subtype 1",""),l("data.subtype 2",""),l("data.subtype 3","")},[x]);const T=x?s?.[x]:null,b=T?T?.Global:null,v=b?b?.[u?.value]?.Materials:null,C=v?v?.[p?.value]:null,k=C?C?.[m?.value]?.subtypes2:null,S=k?k[y?.value]?.subtypes3:null,N=C&&m?.value&&!k&&!S?C[m?.value].fromUnits:k&&y?.value&&!S?k[y?.value].fromUnits:S&&h?.value?S[h?.value]:null,A=b?Object.keys(b||{}).map(e=>({value:e,label:e})):[],R=v?Object.keys(v||{}).map(e=>({value:e,label:e})):[],D=C?Object.keys(C||{}).map(e=>({value:e,label:e})):[],L=k?Object.keys(k||{}).map(e=>({value:e,label:e})):[],I=S?Object.keys(S||{}).map(e=>({value:e,label:e})):[],j=N?Object.keys(N||{}).map(e=>({value:e,label:e})):[],[w,O]=(0,g.useState)(!1),E=()=>O(e=>!e),_=Ho(),F=(0,g.useCallback)(e=>{const{data:n,startDate:a,endDate:i,dataFormRowsFillingStrategy:l,dateFrequency:r,dataFormInputStrategy:o}=e,s=Qt(n,{startDate:a,endDate:i,dataFormInputStrategy:o,dateFrequency:r,dataFormRowsFillingStrategy:l,dateField:["start date (dd/mm/yyyy)","end date (dd/mm/yyyy)"],divideFields:["weight","total cost"]});t(e,s)},[t]);return(0,fe.jsxs)(M4,{onSubmit:F,form:n,showEndDate:!0,transactionType:gn.D_.S3C1Activitybasedmaterial,children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"small",children:"Please enter the following transactional activity based material data:"}),(0,fe.jsx)(Ng.xI,{name:"data.location",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(gN,{value:n?.value,label:"Location",onChange:e=>l("data.location",e),error:t.error?.message})},rules:{required:"Location is required"},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.factor set",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Factor set",value:n?.value,disabled:d,options:A,helperText:d||A.length?"":"There are no available factor sets for the selected year",onChange:e=>{l("data.factor set",e),l("data.material type",""),l("data.subtype 1",""),l("data.subtype 2",""),l("data.subtype 3","")},error:t.error?.message})},rules:{required:"Factor set is required"},control:i}),u&&(0,fe.jsx)(Ng.xI,{name:"data.material type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Material type",value:n?.value,disabled:d,options:R,onChange:e=>{l("data.material type",e),l("data.subtype 1",""),l("data.subtype 2",""),l("data.subtype 3","")},error:t.error?.message})},rules:{required:"Material type is required"},control:i}),p&&(0,fe.jsx)(Ng.xI,{name:"data.subtype 1",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Subtype 1",value:n?.value,options:D,onChange:e=>{l("data.subtype 1",e),l("data.subtype 2",""),l("data.subtype 3","")},error:t.error?.message})},rules:{required:"Subtype 1 is required"},control:i}),m&&L.length>0&&(0,fe.jsx)(Ng.xI,{name:"data.subtype 2",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Subtype 2",value:n?.value,options:L,onChange:e=>{l("data.subtype 2",e),l("data.subtype 3","")},error:t.error?.message})},rules:{required:"Subtype 2 is required"},control:i}),y&&I.length>0&&(0,fe.jsx)(Ng.xI,{name:"data.subtype 3",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Subtype 3",value:n?.value,options:I,onChange:e=>l("data.subtype 3",e),error:t.error?.message})},rules:{required:"Subtype 3 is required"},control:i}),_.has("S3C1ActivityBasedMaterialTransaction.materialDescription")&&(0,fe.jsx)(Ng.xI,{name:"data.material description",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Material description"+(_.isRequired("S3C1ActivityBasedMaterialTransaction.materialDescription")?"":" (optional)"),helperText:t.error?.message,error:!!t.error?.message})},rules:_.isRequired("S3C1ActivityBasedMaterialTransaction.materialDescription")?{required:"Required"}:{},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.units quantity",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Number of units",error:t.error?.message})},rules:{required:"Number of units is required"},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.weight",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{label:"Quantity",...n,error:t.error?.message,helperText:t.error?.message})},rules:{required:!o.data?.weight&&"Quantity is required"},control:i}),j?.length>0&&(0,fe.jsx)(Ng.xI,{name:"data.weight unit",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Units of measurement",value:n?.value,options:j,onChange:e=>l("data.weight unit",e),error:t.error?.message})},rules:{required:"Units of measurement is required"},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.accuracy",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Act/Est",value:n?.value,options:[{value:gn.C.Act,label:"Act"},{value:gn.C.Est,label:"Est"}],onChange:e=>l("data.accuracy",e),error:t.error?.message})},rules:{required:"Act/Est is required"},control:i}),(0,fe.jsx)(J4,{form:n,accuracyAs:"accuracy"}),_.has("S3C1ActivityBasedMaterialTransaction.origin")&&(0,fe.jsx)(Ng.xI,{name:"data.origin",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Origin"+(_.isRequired("S3C1ActivityBasedMaterialTransaction.origin")?"":" (optional)"),value:n?.value,options:pt.materialOrigins.map(e=>({value:e,label:e})),onChange:e=>l("data.origin",e),error:t.error?.message})},rules:_.isRequired("S3C1ActivityBasedMaterialTransaction.origin")?{required:"Required"}:{},control:i}),_.has("S3C1ActivityBasedMaterialTransaction.originOfCertification")&&(0,fe.jsx)(Ng.xI,{name:"data.origin of certification",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Origin of certification"+(_.isRequired("S3C1ActivityBasedMaterialTransaction.originOfCertification")?"":" (optional)"),value:n?.value,options:pt.certificationOrigins.map(e=>({value:e,label:e})),onChange:e=>l("data.origin of certification",e),error:t.error?.message})},rules:_.isRequired("S3C1ActivityBasedMaterialTransaction.originOfCertification")?{required:"Required"}:{},control:i}),_.has("S3C1ActivityBasedMaterialTransaction.percentRecycledContent")&&(0,fe.jsx)(Ng.xI,{name:"data.percent recycled content",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"% Recycled content"+(_.isRequired("S3C1ActivityBasedMaterialTransaction.percentRecycledContent")?"":" (optional)"),helperText:t.error?.message,error:!!t.error?.message,min:0,max:100})},rules:_.isRequired("S3C1ActivityBasedMaterialTransaction.percentRecycledContent")?{required:"Required"}:{},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.supplier",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Vj,{value:n?.value,label:"Supplier",onChange:e=>l("data.supplier",e),error:t.error?.message,utility:gn.D_.Materials,supplierType:gn.d.Supplier})},rules:{required:"Supplier is required"},control:i}),_.has("S3C1ActivityBasedMaterialTransaction.subcontractor")&&(0,fe.jsx)(Ng.xI,{name:"data.subcontractor",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Vj,{value:n?.value,label:"Subcontractor"+(_.isRequired("S3C1ActivityBasedMaterialTransaction.subcontractor")?"":" (optional)"),onChange:e=>l("data.subcontractor",e),error:t.error?.message,utility:gn.D_.Materials,supplierType:gn.d.Subcontractor})},rules:_.isRequired("S3C1ActivityBasedMaterialTransaction.subcontractor")?{required:"Required"}:{},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.total cost",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Total cost (optional)",error:t.error?.message})},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.currency",render:e=>{let{field:n}=e;return(0,fe.jsx)(bK,{value:n?.value,label:"Currency (optional)",onChange:e=>l("data.currency",e)})},control:i}),_.has("S3C1ActivityBasedMaterialTransaction.distanceToSite")&&(0,fe.jsx)(Ng.xI,{name:"data.distance to site",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Distance to location"+(_.isRequired("S3C1ActivityBasedMaterialTransaction.distanceToSite")?"":" (optional)"),helperText:t.error?.message,error:!!t.error?.message})},rules:_.isRequired("S3C1ActivityBasedMaterialTransaction.distanceToSite")?{required:"Required"}:{},control:i}),_.has("S3C1ActivityBasedMaterialTransaction.numberOfDeliveries")&&(0,fe.jsx)(Ng.xI,{name:"data.number of deliveries",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{...n,label:"Number of deliveries"+(_.isRequired("S3C1ActivityBasedMaterialTransaction.numberOfDeliveries")?"":" (optional)"),helperText:t.error?.message,error:!!t.error?.message,integer:!0})},rules:_.isRequired("S3C1ActivityBasedMaterialTransaction.numberOfDeliveries")?{required:"Required"}:{},control:i}),_.has("S3C1ActivityBasedMaterialTransaction.productCode")&&(0,fe.jsx)(Ng.xI,{name:"data.product code",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Product code"+(_.isRequired("S3C1ActivityBasedMaterialTransaction.productCode")?"":" (optional)"),helperText:t.error?.message,error:!!t.error?.message})},rules:_.isRequired("S3C1ActivityBasedMaterialTransaction.productCode")?{required:"Required"}:{},control:i}),_.has("S3C1ActivityBasedMaterialTransaction.purchaseType")&&(0,fe.jsx)(Ng.xI,{name:"data.purchase type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Purchase type"+(_.isRequired("S3C1ActivityBasedMaterialTransaction.purchaseType")?"":" (optional)"),value:n?.value,options:ji(),onChange:e=>l("data.purchase type",e),error:t.error?.message})},rules:_.isRequired("S3C1ActivityBasedMaterialTransaction.purchaseType")?{required:"Purchase type is required"}:void 0,control:i}),(0,fe.jsx)(Ng.xI,{name:"data.notes",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Notes (optional)"})},control:i}),(0,fe.jsxs)(V4,{container:!0,children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:"Do you want to add any references?"}),(0,fe.jsxs)(f.Grid,{container:!0,children:[(0,fe.jsx)(f.Checkbox,{name:"Reference",label:"Yes",checked:!!w,onChange:E}),(0,fe.jsx)(f.Checkbox,{name:"NoReference",label:"No",checked:!w,onChange:E})]})]}),(0,fe.jsxs)(G4,{isVisible:w,children:[(0,fe.jsx)(Ng.xI,{name:"data.reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Reference (optional)",...n})},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.invoice number",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Invoice number (optional)",...n})},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.evidence reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Evidence reference (optional)"})},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.other reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Other reference (optional)"})},control:i})]}),a]})},p6=e=>{let{form:n,onSubmit:t,children:a}=e;const{control:i,setValue:l,watch:r}=n,o=n.getValues(),{validEmissionFactorCombinationTree:s,areEmissionFactorsLoading:d}=c6({enabled:!0,scopes:[3],methods:["Spend-Based"]}),[c,u,p,m,y,h]=r(["endDate","data.country","data.factor set","data.material type","data.subtype 1","data.subtype 2"]),x=c?new Date(c).getFullYear():null,T="object"==typeof u&&null!=u?.label?String(u.label):"string"==typeof u?u:void 0;(0,g.useEffect)(()=>{l("data.country",""),l("data.factor set",""),l("data.material type",""),l("data.subtype 1",""),l("data.subtype 2",""),l("data.subtype 3","")},[x]),(0,g.useEffect)(()=>{l("data.factor set",""),l("data.material type",""),l("data.subtype 1",""),l("data.subtype 2",""),l("data.subtype 3","")},[T]);const b=x?s?.[x]:null,v=T&&b?b?.[T]:null,C=v?v?.[p?.value]?.Materials:null,k=C?C?.[m?.value]:null,S=k?k?.[y?.value]?.subtypes2:null,N=S?S[h?.value]?.subtypes3:null,A=b?Object.keys(b||{}).sort((e,n)=>e.localeCompare(n)).map(e=>({value:e,label:e})):[],R=v?Object.keys(v||{}).map(e=>({value:e,label:e})):[],D=C?Object.keys(C||{}).map(e=>({value:e,label:e})):[],L=k?Object.keys(k||{}).map(e=>({value:e,label:e})):[],I=S?Object.keys(S||{}).map(e=>({value:e,label:e})):[],j=N?Object.keys(N||{}).map(e=>({value:e,label:e})):[],[w,O]=(0,g.useState)(!1),E=()=>O(e=>!e),_=Ho(),F=(0,g.useCallback)(e=>{const{data:n,startDate:a,endDate:i,dataFormRowsFillingStrategy:l,dateFrequency:r,dataFormInputStrategy:o}=e,s=Qt(n,{startDate:a,endDate:i,dataFormInputStrategy:o,dateFrequency:r,dataFormRowsFillingStrategy:l,dateField:["start date (dd/mm/yyyy)","end date (dd/mm/yyyy)"],divideFields:["amount"]});t(e,s)},[t]);return(0,fe.jsxs)(M4,{onSubmit:F,form:n,showEndDate:!0,transactionType:gn.D_.S3C1Spendbasedmaterial,children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"small",children:"Please enter the following transactional activity based material data:"}),(0,fe.jsx)(Ng.xI,{name:"data.location",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(gN,{value:n?.value,label:"Location",onChange:e=>l("data.location",e),error:t.error?.message})},rules:{required:"Location is required"},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.country",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Country of spend",value:n?.value,disabled:d,options:A,helperText:d||A.length||!x?x?"":"Please select an end date first":"There are no available countries for the selected year",onChange:e=>{l("data.country",e),l("data.factor set",""),l("data.material type",""),l("data.subtype 1",""),l("data.subtype 2",""),l("data.subtype 3","")},error:t.error?.message})},rules:{required:"Country is required"},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.supplier",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Vj,{value:n?.value,label:"Supplier",onChange:e=>l("data.supplier",e),error:t.error?.message,utility:gn.D_.Materials,supplierType:gn.d.Supplier})},rules:{required:"Supplier is required"},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.factor set",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Factor set",value:n?.value,disabled:d,options:R,helperText:d||R.length?"":"There are no available factor sets for the selected year",onChange:e=>{l("data.factor set",e),l("data.material type",""),l("data.subtype 1",""),l("data.subtype 2",""),l("data.subtype 3","")},error:t.error?.message})},rules:{required:"Factor set is required"},control:i}),p&&(0,fe.jsx)(Ng.xI,{name:"data.material type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Material type",value:n?.value,disabled:d,options:D,onChange:e=>{l("data.material type",e),l("data.subtype 1",""),l("data.subtype 2",""),l("data.subtype 3","")},error:t.error?.message})},rules:{required:"Material type is required"},control:i}),m&&(0,fe.jsx)(Ng.xI,{name:"data.subtype 1",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Subtype 1",value:n?.value,options:L,onChange:e=>{l("data.subtype 1",e),l("data.subtype 2",""),l("data.subtype 3","")},error:t.error?.message})},rules:{required:"Subtype 1 is required"},control:i}),y&&I.length>0&&(0,fe.jsx)(Ng.xI,{name:"data.subtype 2",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Subtype 2",value:n?.value,options:I,onChange:e=>{l("data.subtype 2",e),l("data.subtype 3","")},error:t.error?.message})},rules:{required:"Subtype 2 is required"},control:i}),h&&j.length>0&&(0,fe.jsx)(Ng.xI,{name:"data.subtype 3",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Subtype 3",value:n?.value,options:j,onChange:e=>l("data.subtype 3",e),error:t.error?.message})},rules:{required:"Subtype 3 is required"},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.amount",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(W4,{label:"Amount of spend",...n,error:t.error?.message,helperText:t.error?.message})},rules:{required:!o.data?.amount&&"Amount is required"},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.accuracy",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{label:"Act/Est",value:n?.value,options:[{value:gn.C.Act,label:"Act"},{value:gn.C.Est,label:"Est"}],onChange:e=>l("data.accuracy",e),error:t.error?.message})},rules:{required:"Act/Est is required"},control:i}),(0,fe.jsx)(J4,{form:n,accuracyAs:"accuracy"}),(0,fe.jsx)(Ng.xI,{name:"data.currency",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(bK,{value:n?.value,label:"Currency",onChange:e=>l("data.currency",e),errorMessage:t.error?.message})},rules:{required:"Currency is required"},control:i}),_.has("S3C1SpendBasedMaterialTransaction.purchaseType")&&(0,fe.jsx)(Ng.xI,{name:"data.purchase type",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(KZ,{...n,label:"Purchase type"+(_.isRequired("S3C1SpendBasedMaterialTransaction.purchaseType")?"":" (optional)"),value:n?.value,options:ji(),onChange:e=>l("data.purchase type",e),error:t.error?.message})},rules:{required:"Purchase type is required"},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.notes",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Notes (optional)"})},control:i}),(0,fe.jsxs)(V4,{container:!0,children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:"Do you want to add any references?"}),(0,fe.jsxs)(f.Grid,{container:!0,children:[(0,fe.jsx)(f.Checkbox,{name:"Reference",label:"Yes",checked:!!w,onChange:E}),(0,fe.jsx)(f.Checkbox,{name:"NoReference",label:"No",checked:!w,onChange:E})]})]}),(0,fe.jsxs)(G4,{isVisible:w,children:[(0,fe.jsx)(Ng.xI,{name:"data.reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Reference (optional)",...n})},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.invoice number",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{label:"Invoice number (optional)",...n})},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.evidence reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Evidence reference (optional)"})},control:i}),(0,fe.jsx)(Ng.xI,{name:"data.other reference",render:e=>{let{field:n}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Other reference (optional)"})},control:i})]}),a]})},m6=(0,f.styled)("div")`
  width: 100%;
`,f6=e=>{let{startDate:n,endDate:t,uploadReference:a}=e;const i="DD-MM-YYYY",l=t?`—${Sn(t,i)}`:"";return`${Sn(n,i)}${l} ${a.replace(/[^a-zA-Z0-9]/g," ")}`},y6=e=>{let{onDismiss:n,dataSection:t,onSubmit:a,open:i}=e;const[,l]=(0,g.useState)(),{showNotification:r}=tn(),o=(0,Ng.mN)({mode:"onSubmit",reValidateMode:"onBlur",defaultValues:{uploadReference:""}}),{reset:s,control:d}=o;(0,g.useEffect)(()=>{i||s()},[i,s]);const c=(0,g.useCallback)((e,n)=>{n.length>=1e5?r("Number of rows cannot exceed 100,000","warning"):(l(e),a(n,{fileName:f6(e),isDirectActivity:t!==gn.D_.Waste&&e?.activity===RZ}))},[r,a,t]),u=(e=>{switch(e){case gn.D_.Waste:return Y4;case gn.D_.Electricity:case gn.D_.Gas:case gn.D_.Heatsteam:return e6;case gn.D_.Water:return X4;case gn.D_.Transport:return t6;case gn.D_.Hotelstays:return i6;case gn.D_.S3C1Activitybasedmaterial:return u6;case gn.D_.S3C1Spendbasedmaterial:return p6;default:return null}})(t);return u?(0,fe.jsx)(f.Modal,{title:"Direct data upload",open:i,viewportHeight:90,onClose:()=>n(),children:(0,fe.jsx)(u,{form:o,onSubmit:c,dataSection:t,children:(0,fe.jsxs)(m6,{children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:"Upload reference"}),(0,fe.jsx)(Ng.xI,{name:"uploadReference",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(z4,{...n,error:!!t.error,helperText:!!t.error&&t.error?.message,label:"Enter a brief description for this upload, such as your organization name, relevant tag, department, region, or location."})},defaultValue:"",control:d,rules:{required:"Upload reference is required",maxLength:80}})]})})}):null},g6=((0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px;
  z-index: 1000;
`,(0,f.styled)(f.Button)`
  height: 40px;
`),h6=De("REACT_APP_DROMO_LICENSE_KEY"),x6=e=>{let{transactionType:n,iconOnly:t,onCompleted:a,onSubmit:i}=e;const{showNotification:l}=tn(),r=Je(),o=Xd(),{data:s}=function(e){return(0,x.IT)(s6,e)}({variables:{transactionType:n,accountId:r},notifyOnNetworkStatusChange:!0,onError:()=>{l(`Could not retrieve Dromo Schema for ${n}`,"danger")}}),d=zo(),c=Yo(),[u]=function(e){return(0,ln.n)(o6,e)}({onCompleted:a}),p=(0,g.useRef)(null),[m,y]=(0,g.useState)(!1),h=(0,g.useRef)(null),{validEmissionFactorCombinationTree:T,areEmissionFactorsLoading:b}=c6({enabled:n===gn.D_.S3C1Activitybasedmaterial||n===gn.D_.S3C1Spendbasedmaterial,scopes:[3],methods:[n===gn.D_.S3C1Activitybasedmaterial?"Activity-Based":"Spend-Based"]}),v=(0,g.useMemo)(()=>`${n}_${(new Date).toISOString()}`,[n]),{fields:C,data:k}=(0,g.useMemo)(()=>yX(s?.getDromoSchema),[s?.getDromoSchema]),S=c0(n,k,T),N=(0,g.useCallback)(async(e,t)=>{if(!t.id)return l("Sorry, we couldn't upload your data. Please try again later.","danger");await u({variables:{transactionType:n,accountId:r,fileName:t.filename||v,dromoId:t.id,isDirectActivity:h.current}}),h.current=null},[r,u,n,l,v]),A=(0,g.useCallback)(()=>{y(!0)},[]),R=(0,g.useCallback)(()=>{y(!1)},[]),D=(0,g.useCallback)(async()=>{await nl(()=>!!p.current,100,5e3),p.current?.open()},[]),L=(0,g.useCallback)(()=>{p.current?.dromo?.close()},[]),I=(0,g.useCallback)(async(e,n)=>{const t=await i(e,n.filename||v,h.current);if(t)return t.abort&&setTimeout(L,500),t.validation?t.validation:void 0},[i,L,v]),j=(0,g.useCallback)(()=>{$Q[n]?A():D()},[n,D,A]),w={id:c?.id||"",name:`${c?.first_name} ${c?.last_name}`,email:c?.email,companyId:r,companyName:d?.name};return(0,fe.jsxs)(fe.Fragment,{children:[t?(0,fe.jsx)(f.IconButton,{variant:"contained",name:"DromoUploaderButton__uploadDataButton",onClick:o?j:void 0,disabled:b||!o,children:(0,fe.jsx)(f.CustomIcons.Upload,{color:"onPrimary"})}):(0,fe.jsx)(g6,{variant:"contained",name:"DromoUploaderButton__uploadDataButton",startIcon:(0,fe.jsx)(f.CustomIcons.Upload,{color:"onPrimary"}),onClick:o?D:void 0,disabled:b||!o,children:"Upload"}),(0,fe.jsx)(GS,{open:m,title:$Q[n]?.header,body:$Q[n]?.text,onClose:()=>{R()},onCloseButtonClick:()=>{h.current=!1,R(),D()},onConfirm:()=>{h.current=!0,R(),D()},confirmButtonText:"Yes",closeButtonText:"No"}),!!C?.length&&S&&(0,fe.jsx)(vC.A,{licenseKey:h6,settings:S.settings,fields:C,user:w,style:{display:"none"},onResults:N,onCancel:()=>{h.current=null},ref:p,bulkRowHooks:S.bulkRowHooks,beforeFinish:I,children:"Upload Data"})]})},T6=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid ${e=>e.theme.ref.palette.neutral[70]};
  background-color: ${e=>e.theme.ref.palette.neutral[90]};
`,b6=(0,f.styled)(f.Text)`
  margin-bottom: 16px;
`,v6=(0,f.styled)("div")`
  margin-bottom: 16px;
`,C6=(0,f.styled)("ul")`
  list-style-type: disc;
  margin-bottom: 12px;
`,k6=(0,f.styled)("li")`
  margin-left: 20px;
`;function S6(e){let{errors:n,errorsCount:t}=e;const a=(0,g.useMemo)(()=>n.filter(Boolean).reduce((e,n)=>{const t=n.rows?.split(",");return t?.length?e.concat(t.map(e=>({...n,row:e}))):e.concat([n])},[]),[n]),i=(0,g.useMemo)(()=>Object.keys(xn()(a).groupBy("row").value()).length,[a]),l=(0,g.useMemo)(()=>xn()(a).groupBy("row").map((e,n)=>(0,fe.jsxs)(v6,{children:[(0,fe.jsxs)(f.Text,{typescale:"title",size:"large",children:["Row ",n,":"]}),xn()(e).filter(Boolean).groupBy(e=>xn().capitalize(e.fieldName||"")||"Other errors").map((e,n)=>(0,fe.jsxs)(C6,{children:[(0,fe.jsxs)(f.Text,{typescale:"title",size:"medium",children:[n,":"]}),e.map(e=>(0,fe.jsxs)(k6,{children:[e.message?.includes("Something unexpected happened")||e.message?.includes("0 rows")?(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",weight:e.actionRequired?"normal":"bold",children:e.message}):(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",weight:e.actionRequired?"normal":"bold",children:`You've provided: "${e.value}". ${e.message}`}),e.actionRequired&&(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:"Field can be aliased."})]},JSON.stringify(e)))]},n)).value()]},n)).value(),[a]);return(0,fe.jsxs)(T6,{children:[(0,fe.jsxs)(b6,{typescale:"body",size:"large",children:["Showing ",t," errors in ",i," rows:"]}),l]})}const N6=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
`,A6=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid ${e=>e.theme.ref.palette.neutral[70]};
  background-color: ${e=>e.theme.ref.palette.neutral[90]};
`,R6=(0,f.styled)(f.Text)`
  text-align: center;
  margin-bottom: 16px;
`,D6=(0,f.styled)("div")`
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 16px;
`,L6=(0,f.styled)(f.LinearProgress)`
  width: 100%;
`;function I6(e){let{batchId:n,withTitle:t=!0}=e;const{data:a,error:i,loading:l,refetch:r}=(0,x.IT)(AO,{variables:{id:n},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}),{getDataImportBatchById:o}=a||{};return(0,fe.jsxs)(N6,{children:[l&&(0,fe.jsx)(D6,{children:(0,fe.jsx)(L6,{variant:"indeterminate"})}),i&&(0,fe.jsx)(f.LoadFailed,{title:"Something went wrong",error:i,retry:r}),!l&&!i&&o&&(0,fe.jsxs)(fe.Fragment,{children:[t&&(0,fe.jsx)(R6,{typescale:"title",size:"medium",children:"Batch Errors"}),o.failedReason?(0,fe.jsx)(A6,{children:(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:o.failedReason})}):(0,fe.jsx)(S6,{errors:o.errors,errorsCount:o.errorsCount})]})]})}const j6=(0,f.styled)(f.Text)`
  text-decoration: underline;
  cursor: pointer;
`.withComponent("span"),w6=e=>{let{data:n}=e;const t=(0,C.m)(),{showNotification:a}=tn(),i=(0,g.useCallback)(async()=>{try{const{data:{getDataImportBatchImportFileUrl:e}}=await t.query({query:ZQ,variables:{id:n.id}});e&&await Xt(e)}catch(e){a(`Something went wrong. ${e}`,"danger")}},[t,n,a]);return n.fileName?n.isOverwriting?n.fileName:(0,fe.jsx)(j6,{size:"medium",typescale:"body",title:"Click to download your source file",onClick:i,children:n.fileName}):null},O6=(0,f.styled)("span")`
  display: inline-flex;
  place-items: center;
  ${e=>e.isV2?"padding-top: 8px;":""}
`,E6=(0,f.styled)("span")`
  display: inline-flex;
  place-items: center;
  margin: 0 10px;
`,_6={[Qh.DONE]:"Click to export data",[Qh.ACTION_REQUIRED]:"Click to proceed",[Qh.EXTERNAL_ACTION_REQUIRED]:"Click to proceed",[Qh.FAILED]:"Click to view errors"},F6=e=>{let{data:n,download:t,defineStatusProps:a,done:i,pending:l,abandoned:r,failed:o,actionRequired:s,statusLink:d,onActionClick:c,onDataClick:u,onErrorClick:p}=e;const m=Qe(),y=(0,vc.A)(),g=(0,f.useTheme)(),h=m?g:y,{token:x}=qe(),T=lr(),b=n?.user?.id?.toLowerCase()===x.sub,v=H0(n.status),C=a(n,h,p,u,c);return(0,fe.jsxs)(O6,{isV2:m,title:_6[v],children:[(0,fe.jsxs)(E6,{children:[v===Qh.DONE&&i,v===Qh.ACTION_REQUIRED&&s,v===Qh.ABANDONED&&r,v===Qh.FAILED&&o,v===Qh.PENDING&&l,v===Qh.EXTERNAL_ACTION_REQUIRED&&s]}),d(v,!!n.isLegacy,()=>p(n),()=>u(n),()=>c(n),C,t?.[n.id],T,b,v===Qh.ACTION_REQUIRED)]})},P6=(0,f.styled)(f.Text)``.withComponent("span"),B6=e=>{let{data:n,onDeleteClick:t,onRollbackClick:a}=e;const{token:i}=qe(),l=lr(),r=(0,g.useMemo)(()=>n.user?.id===i.sub,[n,i]),o=(0,g.useMemo)(()=>["Failed","Action Required","Rolled Back"].includes(n.status)&&!!l.data.find(e=>e.startsWith("deleteImportBatch")&&!e.endsWith("Own"))||l.data.includes("deleteImportBatchOwn")&&r,[l,n.status,r]),s="Completed"===n.status&&((e,n,t)=>!!e.data?.find(e=>e?.startsWith?.(n)&&!e?.endsWith?.("Own"))||e.data?.includes(`${n}Own`)&&t)(l,"rollbackImportBatch",r);return s?(0,fe.jsx)(P6,{onClick:()=>a(n.id),sx:{textDecoration:"underline",cursor:"pointer"},children:"Roll Back"}):o?(0,fe.jsx)(P6,{onClick:()=>t(n.id),sx:{textDecoration:"underline",cursor:"pointer"},children:"Delete"}):null},U6=(0,f.styled)("div")`
  display: flex;
  justify-content: flex-end;
  gap: 8px;
`,$6=(0,f.styled)(f.AgGrid)`
  height: calc(100vh - 216px); // header + page title height
  padding-bottom: 2px; // border bottom and shadow to show properly

  ${e=>{let{theme:n}=e;return n.breakpoints.down("lg")}} {
    height: calc(100vh - 268px); // header + page title height in lg
  }
`;function M6(e){const[n,t]=(0,g.useState)(null),[a,i]=(0,g.useState)(null),[l,r]=(0,g.useState)(null),[o,s]=(0,g.useState)(null),d=(0,C.m)(),c=(0,m.Zp)(),u=Je(),p=Ml();return{confirmQuickViewId:a,confirmRollbackId:l,confirmDeleteId:n,erroredRowId:o,handleErrorClick:(0,g.useCallback)(e=>s(e?.id||null),[s]),handleDeleteClick:(0,g.useCallback)(e=>{t(e)},[t]),handleQuickviewClick:(0,g.useCallback)(e=>{i(e)},[i]),handleRollbackClick:(0,g.useCallback)(e=>{r(e)},[r]),handleDownloadClick:(0,g.useCallback)(async n=>{const t=new Date,a=`${t.toLocaleDateString()} - ${t.toLocaleTimeString()} - ${e.toLowerCase()} export`,i=n.fileName||a;await p(i,e,n.id)},[p,e]),handleActionClick:(0,g.useCallback)(e=>c(`${location.pathname}/alias/${e.id}`),[c]),fetchRows:(0,g.useCallback)(async n=>{const{data:{getDataImportBatchesPage:{rows:t,totalRows:a}}}=await d.query({query:XQ,variables:{...n,accountId:u,type:e},fetchPolicy:"network-only"});return{rows:t,totalRows:a}},[u,d,e])}}const V6=e=>{let{data:n,onSummaryClick:t}=e;const a=(0,f.useTheme)(),i=(0,g.useCallback)(()=>{t(n.id)},[t,n]);return"Completed"!==n.status?null:(0,fe.jsx)(f.Icons.Visibility,{onClick:i,sx:{color:a.sys.color.primary,marginTop:"12px",cursor:"pointer"}})},G6=(0,f.styled)(f.Text)``.withComponent("span"),z6=(e,n,t)=>!!e.data.find(e=>e.startsWith(n)&&!e.endsWith("Own"))||e.data.includes(`${n}Own`)&&t,W6=(e,n)=>{switch(e){case Qh.DONE:return"Success";case Qh.FAILED:return"Error";default:return n}},q6=(e,n,t,a,i,l,r,o,s,d)=>{const c=z6(o,"exportImportBatch",s),u=z6(o,"editImportBatch",s),p=e===Qh.DONE&&c,m=e===Qh.ACTION_REQUIRED&&u,y=e===Qh.FAILED;return e===Qh.EXTERNAL_ACTION_REQUIRED&&u?(0,fe.jsx)(G6,{size:"medium",typescale:"body",sx:{textDecoration:"underline",cursor:"pointer"},onClick:l?.onClick,children:l?.linkText}):d||((e,n)=>(e===Qh.DONE||e===Qh.FAILED||e===Qh.ACTION_REQUIRED)&&!n)(e,!!n)&&(p||m||y)?(0,fe.jsx)(f.Text,{size:"medium",typescale:"body",sx:{textDecoration:"underline",cursor:"pointer"},onClick:()=>{switch(e){case Qh.FAILED:return t();case Qh.DONE:return a();case Qh.ACTION_REQUIRED:return i()}},children:r?"Downloading":l?.linkText}):(0,fe.jsx)(f.Text,{size:"medium",typescale:"body",children:W6(e,l?.linkText)})},J6=S.J1`
  mutation createPreSignedUploadLink($key: ID!, $accountId: ID!, $batchType: TransactionType!) {
    createPreSignedUploadLink(key: $key, accountId: $accountId, batchType: $batchType)
  }
`,Y6=S.J1`
  mutation initiateDataOverwriting(
    $key: ID!
    $batchType: TransactionType!
    $accountId: ID!
    $customDuplicationKey: [String!]!
  ) {
    initiateDataOverwriting(
      key: $key
      batchType: $batchType
      accountId: $accountId
      customDuplicationKey: $customDuplicationKey
    ) {
      ...DataOverwritingStrategyFields
    }
  }
  ${r6()}
`,H6=S.J1`
  mutation scheduleDataOverwritingExecution(
    $strategyId: ID!
    $accountId: ID!
    $batchId: ID!
    $batchType: TransactionType!
  ) {
    scheduleDataOverwritingExecution(
      strategyId: $strategyId
      accountId: $accountId
      batchId: $batchId
      batchType: $batchType
    ) {
      ...DataOverwritingStrategyFields
    }
  }
  ${r6()}
`,K6=S.J1`
  mutation CancelDataOverwritingExecution($strategyId: ID!, $accountId: ID!, $batchType: TransactionType!) {
    cancelDataOverwritingExecution(strategyId: $strategyId, accountId: $accountId, batchType: $batchType) {
      ...DataOverwritingStrategyFields
    }
  }
  ${r6()}
`,Q6=S.J1`
  subscription dataOverwritingStrategyUpdated($id: ID!, $batchType: TransactionType!) {
    dataOverwritingStrategyUpdated(id: $id, batchType: $batchType) {
      ...DataOverwritingStrategyFields
    }
  }
  ${r6()}
`,Z6=S.J1`
  query GetPossibleDataOverwritingKeys($batchType: TransactionType!) {
    getPossibleDataOverwritingKeys(batchType: $batchType) {
      keys {
        key
        label
      }
      defaultKey
    }
  }
`,X6="Failed to analyse historical data for duplicates, please try again later",e7=[gn.D_.Waste,gn.D_.Electricity,gn.D_.Gas,gn.D_.Heatsteam,gn.D_.Water,gn.D_.Refrigerant,gn.D_.Materials,gn.D_.Fuel,gn.D_.Transport];const n7=[{field:"meter name",headerName:"Meter name",filter:"agSetColumnFilter"},{field:"tariff",headerName:"Tariff",filter:"agSetColumnFilter"},{field:"start date (dd/mm/yyyy)",headerName:"Start date (dd/mm/yyyy)",filter:"agDateColumnFilter",valueFormatter:Fn,sort:"asc"},{field:"start time (hh:mm)",headerName:"Start time (hh:mm)"},{field:"end date (dd/mm/yyyy)",headerName:"End date (dd/mm/yyyy)",filter:"agDateColumnFilter",valueFormatter:Fn},{field:"end time (hh:mm)",headerName:"End time (hh:mm)"},{field:"quantity (kwh)",headerName:"Quantity (kWh)",filter:"agNumberColumnFilter"},{field:"act/est",headerName:"Act/Est",filter:"agSetColumnFilter"},{field:"estimates scenario",headerName:"Estimates Scenario",filter:"agSetColumnFilter"},{field:"total cost",headerName:"Total cost",filter:"agNumberColumnFilter"},{field:"charge/kwh",headerName:"Charge/kWh",filter:"agNumberColumnFilter"},{field:"currency",headerName:"Currency",filter:"agSetColumnFilter"},{field:"comment",headerName:"Comment",filter:"agTextColumnFilter"},{field:"supplier",headerName:"Supplier",filter:"agSetColumnFilter"},{field:"invoice number",headerName:"Invoice number",filter:"agTextColumnFilter"},{field:"evidence reference",headerName:"Evidence reference",filter:"agTextColumnFilter"},{field:"other reference",headerName:"Other reference",filter:"agTextColumnFilter"}];let t7=function(e){return e.Options="options",e.Values="values",e.Labels="labels",e}({});const a7=[{field:"meter name",headerName:"Meter",filter:"agSetColumnFilter"},{field:"start date (dd/mm/yyyy)",headerName:"Start date",valueFormatter:Fn,sort:"asc"},{field:"end date (dd/mm/yyyy)",headerName:"End date",valueFormatter:Fn},{field:"reading",headerName:"Reading"},{field:"quantity (m3)",headerName:"Quantity (m³)"},{field:"act/est",headerName:"Act/Est",filter:"agSetColumnFilter"},{field:"estimates scenario",headerName:"Estimates Scenario",filter:"agSetColumnFilter"},{field:"tariff (£/m3)",headerName:"Tariff (£/m³)"},{field:"total cost",headerName:"Total cost"},{field:"currency",headerName:"Currency",filter:"agSetColumnFilter"},{field:"comment",headerName:"Comment"},{field:"supplier",headerName:"Supplier",filter:"agSetColumnFilter"},{field:"invoice number",headerName:"Invoice number"},{field:"evidence reference",headerName:"Evidence reference"},{field:"other reference",headerName:"Other reference"}],i7=[{field:"individual collection date",headerName:"Individual collection date",filter:"agDateColumnFilter",valueFormatter:Fn,sort:"asc"},{field:"waste in location",headerName:"Waste in location",filter:"agSetColumnFilter"},{field:"waste out location",headerName:"Waste out location",filter:"agSetColumnFilter"},{field:"waste stream",headerName:"Waste stream",filter:"agSetColumnFilter"},{field:"waste contractor",headerName:"Waste contractor",filter:"agSetColumnFilter"},{field:"waste carrier",headerName:"Waste carrier",filter:"agSetColumnFilter"},{field:"treatment process",headerName:"Treatment process",filter:"agSetColumnFilter"},{field:"number of collections",headerName:"Number of collections",filter:"agNumberColumnFilter"},{field:"number of containers",headerName:"Number of containers",filter:"agNumberColumnFilter"},{field:"container type",headerName:"Container type",filter:"agSetColumnFilter"},{field:"quantity",headerName:"Quantity",filter:"agNumberColumnFilter"},{field:"unit of weight",headerName:"Unit of weight",filter:"agSetColumnFilter"},{field:"act/est",headerName:"Act/Est",filter:"agSetColumnFilter"},{field:"estimates scenario",headerName:"Estimates Scenario",filter:"agSetColumnFilter"},{field:"gate fee",headerName:"Gate fee",filter:"agNumberColumnFilter"},{field:"management fee",headerName:"Management fee",filter:"agNumberColumnFilter"},{field:"bin hire",headerName:"Bin hire",filter:"agNumberColumnFilter"},{field:"bin exchange",headerName:"Bin exchange",filter:"agNumberColumnFilter"},{field:"transport charge",headerName:"Transport charge",filter:"agNumberColumnFilter"},{field:"lift charge",headerName:"Lift charge",filter:"agNumberColumnFilter"},{field:"equipment hire",headerName:"Equipment hire",filter:"agNumberColumnFilter"},{field:"labour cost",headerName:"Labour cost",filter:"agNumberColumnFilter"},{field:"misc cost",headerName:"Misc cost",filter:"agNumberColumnFilter"},{field:"misc cost rate",headerName:"Misc cost rate",filter:"agNumberColumnFilter"},{field:"rebate",headerName:"Rebate",filter:"agNumberColumnFilter"},{field:"penalty",headerName:"Penalty",filter:"agNumberColumnFilter"},{field:"notes",headerName:"Notes",filter:"agTextColumnFilter"},{field:"project phase",headerName:"Project phase",filter:"agTextColumnFilter"},{field:"reference",headerName:"Reference",filter:"agTextColumnFilter"},{field:"waste transfer note id",headerName:"Waste transfer note ID",filter:"agTextColumnFilter"},{field:"consignment note (ea) id",headerName:"Consignment note (EA) ID",filter:"agTextColumnFilter"},{field:"consignment note (sepa) id",headerName:"Consignment note (SEPA) ID",filter:"agTextColumnFilter"},{field:"sales order id",headerName:"Sales order ID",filter:"agTextColumnFilter"},{field:"invoice number",headerName:"Invoice number",filter:"agTextColumnFilter"},{field:"evidence reference",headerName:"Evidence reference",filter:"agTextColumnFilter"},{field:"other reference",headerName:"Other reference",filter:"agTextColumnFilter"},{field:"currency",headerName:"Currency",filter:"agSetColumnFilter"}],l7=[{field:"date (dd/mm/yyyy)",headerName:"Date",filter:"agDateColumnFilter",valueFormatter:Fn,sort:"asc"},{field:"location",headerName:"Location",filter:"agSetColumnFilter"},{field:"material",headerName:"Material",filter:"agSetColumnFilter"},{field:"origin",headerName:"Origin",filter:"agSetColumnFilter"},{field:"supplier",headerName:"Supplier",filter:"agSetColumnFilter"},{field:"product code",headerName:"Product code",filter:"agTextColumnFilter"},{field:"quantity (number of units)",headerName:"Quantity (units)",filter:"agSetColumnFilter"},{field:"quantity (weight)",headerName:"Quantity (weight)",filter:"agNumberColumnFilter"},{field:"quantity (weight) units",headerName:"Weight units",filter:"agSetColumnFilter"},{field:"total cost",headerName:"Total cost",filter:"agNumberColumnFilter"},{field:"currency",headerName:"Currency",filter:"agSetColumnFilter"},{field:"notes",headerName:"Notes",filter:"agTextColumnFilter"},{field:"reference",headerName:"Reference",filter:"agTextColumnFilter"},{field:"invoice number",headerName:"Invoice number",filter:"agTextColumnFilter"},{field:"evidence reference",headerName:"Evidence reference",filter:"agTextColumnFilter"},{field:"other reference",headerName:"Other reference",filter:"agTextColumnFilter"},{field:"material subcategory",headerName:"Material subcategory",filter:"agTextColumnFilter"},{field:"material details",headerName:"Material details",filter:"agTextColumnFilter"},{field:"material description",headerName:"Material description",filter:"agTextColumnFilter"},{field:"subcontractor",headerName:"Subcontractor",filter:"agTextColumnFilter"},{field:"distance to location",headerName:"Distance to location",filter:"agNumberColumnFilter"},{field:"percent recycled content",headerName:"% recycled content",filter:"agNumberColumnFilter"},{field:"number of deliveries",headerName:"Number of deliveries",filter:"agNumberColumnFilter"},{field:"origin of certification",headerName:"Origin of certification",filter:"agTextColumnFilter"}],r7=[{field:"location",headerName:"Location",filter:"agSetColumnFilter"},{field:"end date (dd/mm/yyyy)",headerName:"Date (dd/mm/yyyy)",filter:"agDateColumnFilter",valueFormatter:Fn,sort:"asc"},{field:"gas type",headerName:"Gas type",filter:"agSetColumnFilter"},{field:"gas group",headerName:"Gas group",filter:"agSetColumnFilter"},{field:"quantity",headerName:"Quantity",filter:"agNumberColumnFilter"},{field:"unit",headerName:"Unit",filter:"agSetColumnFilter"},{field:"act/est",headerName:"Act/Est",filter:"agSetColumnFilter"},{field:"estimates scenario",headerName:"Estimates Scenario",filter:"agSetColumnFilter"},{field:"total cost",headerName:"Total cost",filter:"agNumberColumnFilter"},{field:"comment",headerName:"Comment",filter:"agTextColumnFilter"},{field:"evidence reference",headerName:"Evidence reference",filter:"agTextColumnFilter"},{field:"other reference",headerName:"Other reference",filter:"agTextColumnFilter"},{field:"currency",headerName:"Currency",filter:"agSetColumnFilter"}],o7=[{field:"date",headerName:"Date",valueFormatter:Fn,filter:"agDateColumnFilter",sort:"asc"},{field:"location",headerName:"Location",filter:"agSetColumnFilter"},{field:"type",headerName:"Type",filter:"agSetColumnFilter"},{field:"subtype",headerName:"Subtype",filter:"agSetColumnFilter"},{field:"origin of travel",headerName:"Origin of travel",filter:"agTextColumnFilter"},{field:"destination of travel",headerName:"Destination of travel",filter:"agTextColumnFilter"},{field:"volume",headerName:"Volume",filter:"agNumberColumnFilter"},{field:"unit of volume",headerName:"Unit of volume",filter:"agSetColumnFilter"},{field:"data provider",headerName:"Data provider",filter:"agSetColumnFilter"},{field:"distance",headerName:"Distance",filter:"agNumberColumnFilter"},{field:"number of journeys",headerName:"Number of journeys",filter:"agNumberColumnFilter"},{field:"journey distance",headerName:"Journey distance",filter:"agNumberColumnFilter"},{field:"unit of distance",headerName:"Unit of distance",filter:"agSetColumnFilter"},{field:"freight (tonne/km)",headerName:"Freight (tonne.km)",filter:"agNumberColumnFilter"},{field:"carrier",headerName:"Carrier",filter:"agSetColumnFilter"},{field:"purpose of journey",headerName:"Purpose of journey",filter:"agSetColumnFilter"},{field:"fuel type",headerName:"Fuel type",filter:"agSetColumnFilter"},{field:"act/est",headerName:"Act/Est",filter:"agSetColumnFilter"},{field:"estimates scenario",headerName:"Estimates Scenario",filter:"agSetColumnFilter"},{field:"document reference",headerName:"Document reference",filter:"agTextColumnFilter"},{field:"notes",headerName:"Notes",filter:"agTextColumnFilter"},{field:"currency",headerName:"Currency",filter:"agSetColumnFilter"},{field:"cost of journey",headerName:"Total cost",filter:"agNumberColumnFilter"},{field:"reference",headerName:"Reference",filter:"agTextColumnFilter"}],s7=[{field:"start date (dd/mm/yyyy)",headerName:"Start date",valueFormatter:Fn,filter:"agDateColumnFilter",sort:"asc"},{field:"end date (dd/mm/yyyy)",headerName:"End date",valueFormatter:Fn,filter:"agDateColumnFilter"},{field:"location",headerName:"Location",filter:"agSetColumnFilter"},{field:"hotel nights",headerName:"Hotel nights",filter:"agNumberColumnFilter"},{field:"home working days",headerName:"Home working days",filter:"agNumberColumnFilter"},{field:"hotel stay / home working country",headerName:"Country",filter:"agSetColumnFilter"},{field:"data provider",headerName:"Data provider",filter:"agSetColumnFilter"},{field:"tariff",headerName:"Tariff",filter:"agSetColumnFilter"},{field:"act/est",headerName:"Act/Est",filter:"agSetColumnFilter"},{field:"estimates scenario",headerName:"Estimates Scenario",filter:"agSetColumnFilter"},{field:"total cost",headerName:"Total cost",filter:"agNumberColumnFilter"},{field:"currency",headerName:"Currency",filter:"agSetColumnFilter"},{field:"notes",headerName:"Notes",filter:"agTextColumnFilter"},{field:"reference",headerName:"Reference",filter:"agTextColumnFilter"},{field:"invoice number",headerName:"Invoice number",filter:"agTextColumnFilter"},{field:"evidence reference",headerName:"Evidence reference",filter:"agTextColumnFilter"},{field:"other reference",headerName:"Other reference",filter:"agTextColumnFilter"},{field:"purchase type",headerName:"Purchase type",filter:"agSetColumnFilter"}],d7=[{field:"date (dd/mm/yyyy)",headerName:"Date",valueFormatter:Fn,filter:"agDateColumnFilter",sort:"asc"},{field:"location",headerName:"Location",filter:"agSetColumnFilter"},{field:"quantity",headerName:"Quantity",filter:"agNumberColumnFilter"},{field:"quantity units",headerName:"Quantity units",filter:"agSetColumnFilter"},{field:"act/est",headerName:"Act/Est",filter:"agSetColumnFilter"},{field:"total cost",headerName:"Total cost",filter:"agSetColumnFilter"},{field:"currency",headerName:"Currency",filter:"agSetColumnFilter"},{field:"supplier",headerName:"Supplier",filter:"agSetColumnFilter"},{field:"evidence reference",headerName:"Evidence reference",filter:"agSetColumnFilter"},{field:"other reference",headerName:"Other reference",filter:"agNumberColumnFilter"},{field:"purchase type",headerName:"Purchase type",filter:"agSetColumnFilter"},{field:"estimates scenario",headerName:"Estimates scenario",filter:"agTextColumnFilter"},{field:"comment",headerName:"Comment",filter:"agTextColumnFilter"}],c7=[{field:"start date (dd/mm/yyyy)",headerName:"Start date",valueFormatter:Fn,filter:"agDateColumnFilter",sort:"asc"},{field:"end date (dd/mm/yyyy)",headerName:"End date",valueFormatter:Fn,filter:"agDateColumnFilter"},{field:"location",headerName:"Location",filter:"agSetColumnFilter"},{field:"factor set",headerName:"Factor set",filter:"agSetColumnFilter"},{field:"material type",headerName:"Material type",filter:"agSetColumnFilter"},{field:"subtype 1",headerName:"Subtype 1",filter:"agSetColumnFilter"},{field:"subtype 2",headerName:"Subtype 2",filter:"agSetColumnFilter"},{field:"subtype 3",headerName:"Subtype 3",filter:"agSetColumnFilter"},{field:"weight unit",headerName:"Weight unit",filter:"agSetColumnFilter"},{field:"weight",headerName:"Weight",filter:"agSetColumnFilter"},{field:"units quantity",headerName:"Units quantity",filter:"agNumberColumnFilter"},{field:"accuracy",headerName:"Act/Est",filter:"agSetColumnFilter"},{field:"estimates scenario",headerName:"Estimates Scenario",filter:"agSetColumnFilter"},{field:"total cost",headerName:"Total cost",filter:"agNumberColumnFilter"},{field:"currency",headerName:"Currency",filter:"agSetColumnFilter"},{field:"supplier",headerName:"Supplier",filter:"agSetColumnFilter"},{field:"notes",headerName:"Notes",filter:"agTextColumnFilter"},{field:"reference",headerName:"Reference",filter:"agTextColumnFilter"},{field:"invoice number",headerName:"Invoice number",filter:"agTextColumnFilter"},{field:"evidence reference",headerName:"Evidence reference",filter:"agTextColumnFilter"},{field:"other reference",headerName:"Other reference",filter:"agTextColumnFilter"}],u7=[{field:"start date (dd/mm/yyyy)",headerName:"Start date",valueFormatter:Fn,filter:"agDateColumnFilter",sort:"asc"},{field:"end date (dd/mm/yyyy)",headerName:"End date",valueFormatter:Fn,filter:"agDateColumnFilter"},{field:"location",headerName:"Location",filter:"agSetColumnFilter"},{field:"country",headerName:"Country",filter:"agSetColumnFilter"},{field:"supplier",headerName:"Supplier",filter:"agSetColumnFilter"},{field:"factor set",headerName:"Factor set",filter:"agSetColumnFilter"},{field:"material type",headerName:"Material type",filter:"agSetColumnFilter"},{field:"subtype 1",headerName:"Subtype 1",filter:"agSetColumnFilter"},{field:"subtype 2",headerName:"Subtype 2",filter:"agSetColumnFilter"},{field:"subtype 3",headerName:"Subtype 3",filter:"agSetColumnFilter"},{field:"amount",headerName:"Amount of spend",filter:"agNumberColumnFilter"},{field:"currency",headerName:"Currency",filter:"agSetColumnFilter"},{field:"amount",headerName:"Amount of spend",filter:"agNumberColumnFilter"},{field:"accuracy",headerName:"Act/Est",filter:"agSetColumnFilter"},{field:"estimates scenario",headerName:"Estimates scenario",filter:"agSetColumnFilter"},{field:"purchase type",headerName:"Purchase type",filter:"agSetColumnFilter"},{field:"notes",headerName:"Notes",filter:"agTextColumnFilter"},{field:"reference",headerName:"Reference",filter:"agTextColumnFilter"},{field:"invoice number",headerName:"Invoice number",filter:"agTextColumnFilter"},{field:"evidence reference",headerName:"Evidence reference",filter:"agTextColumnFilter"},{field:"other reference",headerName:"Other reference",filter:"agTextColumnFilter"}],p7={[gn.D_.Electricity]:n7,[gn.D_.Gas]:n7,[gn.D_.Heatsteam]:n7,[gn.D_.Water]:a7,[gn.D_.Waste]:i7,[gn.D_.Materials]:l7,[gn.D_.Refrigerant]:r7,[gn.D_.Transport]:o7,[gn.D_.Hotelstays]:s7,[gn.D_.Fuel]:d7,[gn.D_.S3C1Activitybasedmaterial]:c7,[gn.D_.S3C1Spendbasedmaterial]:u7},m7=e=>{let{type:n,options:t,customFields:a,mode:i}=e;if(!p7[n])throw new Error(`No column definitions found for type: ${n}`);const l=[...p7[n]];return[wi(n,a,{withDromoCasing:!0}),Ei(n,a),Mi(n,a),$i(n,a,{withDromoCasing:!0}),Ui(n,a,{withDromoCasing:!0}),Bi(n,a,{withDromoCasing:!0}),Fi(n,a,{withDromoCasing:!0}),Pi(n,a,{withDromoCasing:!0})].forEach(e=>{e&&l.push(e)}),l.map(e=>{const n=xn().cloneDeep(e),a=e.field;return"agSetColumnFilter"===e.filter&&i===t7.Options&&(n.valueFormatter=e=>{let{value:n}=e;return n?.label}),"agSetColumnFilter"===e.filter&&t[a]&&i===t7.Values&&(n.refData=(0,hn.mapValues)(t[a]?.index,e=>e.label)),n})},f7=(0,f.styled)("div")`
  width: 100%;
  padding-bottom: 15px;
  overflow-y: auto;
`,y7=(0,f.styled)("div")`
  min-height: 350px;
`,g7=(0,f.styled)(f.AgGrid)`
  flex: 1;
  height: calc(100vh - 316px); // header + page title height
`,h7=(0,f.styled)("div")`
  margin-top: 32px;
  width: 100%;
  display: flex;
  gap: 16px;
`,x7=(0,f.styled)("div")`
  width: 100%;
  margin-top: 16px;
`,T7=(0,f.styled)(f.LinearProgress)`
  width: 100%;
`,b7=(0,f.styled)(f.Button)`
  width: 50%;
`;function v7(e){let{onConfirm:n,onBack:t,data:a,type:i,mode:l,isUploading:r}=e;const{loading:o,options:s,error:d}=Fo({type:i,skip:l!==t7.Values}),c=zo(),u=(0,g.useMemo)(()=>({columnDefs:m7({type:i,options:s,mode:l,customFields:c?.accessControls.customFields}),rowData:a,pagination:!0,paginationPageSize:25,paginationPageSizeSelector:!1,suppressLoadingOverlay:!0,defaultColDef:{sortable:!0,filter:"agTextColumnFilter",cellDataType:"text"}}),[i,a,s,c?.accessControls.customFields,l]);return(0,fe.jsxs)(fe.Fragment,{children:[o&&(0,fe.jsx)(x7,{children:(0,fe.jsx)(T7,{})}),d&&(0,fe.jsx)(f.LoadFailed,{error:d}),!o&&!d&&(0,fe.jsx)(f7,{children:(0,fe.jsx)(y7,{children:(0,fe.jsx)(g7,{gridKey:"ImportPayloadPreview",gridOptions:u})})}),(0,fe.jsxs)(h7,{children:[(0,fe.jsx)(b7,{onClick:t,variant:"outlined",disabled:r||o,children:"Back"}),(0,fe.jsx)(b7,{onClick:n,variant:"contained",disabled:r||o,children:"Confirm data import to Rio"})]})]})}var C7=t(70316);const k7=5000000001,S7=(0,f.styled)("div")`
  position: fixed;
  left: 15%;
  bottom: 16px;
  width: 70%;
  height: auto;
  background: ${e=>e.theme.sys.color.surface};
  border-radius: 16px;
  padding: 16px;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.3);
  z-index: ${5e9};
`,N7=(0,f.styled)(f.Icons.Check)`
  cursor: pointer;
`,A7=(0,f.styled)(f.Icons.Warning)`
  cursor: pointer;
`,R7=(0,f.styled)(f.Grid)`
  position: relative;
  align-items: center;
  height: 48px;
`,D7=(0,f.styled)(f.LinearProgress)`
  width: 100%;
`,L7=(0,f.styled)("ul")`
  margin: 16px;
  list-style: initial;
`,I7=e=>e.status===gn.GV.Failed?"error":j7(e.status)?"success":"primary";function j7(e){return[gn.GV.Executed,gn.GV.Aborted,gn.GV.CancelledByUser].includes(e)}function w7(e){let{strategy:n,onComplete:t,onShowError:a}=e;return j7(n.status)?(0,fe.jsx)(N7,{onClick:t,color:"success"}):n.status===gn.GV.Failed?(0,fe.jsx)(A7,{onClick:a,color:"error"}):(0,fe.jsx)(fe.Fragment,{})}function O7(e){let{strategy:n,error:t,onComplete:a}=e;const[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(!1);if(!n)return null;const s=t||(n.executionError?new Error(n.executionError):null);return(0,C7.createPortal)((0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(S7,{children:(0,fe.jsxs)(R7,{columns:12,container:!0,columnGap:2,children:[(0,fe.jsxs)(f.Grid,{flexGrow:1,size:10,children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",textAlign:"center",children:n.statusExplanation}),(0,fe.jsx)(D7,{value:n.statusProgress||0,color:I7(n),variant:n.statusProgress?"determinate":"indeterminate"})]}),(0,fe.jsx)(f.Grid,{flexGrow:0,flexShrink:1,container:!0,justifyContent:"flex-end",children:(0,fe.jsx)(w7,{strategy:n,onComplete:a,onShowError:()=>l(!0)})})]})}),(0,fe.jsx)(f.Modal,{open:i,onClose:()=>{l(!1),a()},title:"Error details",style:{zIndex:k7},children:(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:s?.message})}),(0,fe.jsx)(f.Modal,{open:r,onClose:()=>o(!1),title:`${n.numberOfDuplicatesFound||0} duplicates found`,style:{zIndex:k7},children:!!n.batchesSuitableForOverwriting?.length&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:"We have automatically merged the following uploads for you:"}),(0,fe.jsx)(L7,{children:n.batchesSuitableForOverwriting?.map(e=>(0,fe.jsx)("li",{children:(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:e.fileName})},e.id))})]})})]}),document.body)}const E7={mode:t7.Options,data:[]},_7=(0,f.styled)(f.Modal)`
  .ModalClassName {
    width: 100%;
    max-width: 984px;
    padding-bottom: 72px;
    z-index: 2147483650;
  }

  .TitleClassName {
    margin-bottom: 29px;

    & > h2 {
      padding-top: 40px;
      text-align: center;
    }
  }
`,F7=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  gap: 16px;
  ${e=>{let{fullWidth:n}=e;return n?"\n    width: 100%;\n    button {\n      flex: 1;  \n    }\n  ":"\n  justify-content: center;\n  "}}
`,P7=(0,f.styled)(f.Text)`
  min-width: 100%;
  text-align: center;
  margin-bottom: 32px;
  max-width: 650px;
`,B7=e=>{let{open:n,disabled:t,title:a,body:i="",closeButtonText:l="Close",onClose:r,onCloseButtonClick:o,closeButtonTestId:s,withFullWidthButtons:d,choices:c,style:u,children:p}=e;const m=(0,g.useCallback)(()=>{o?o():r?.()},[o,r]),y=(0,g.useMemo)(()=>c.map((e,n)=>(0,fe.jsx)(f.Button,{onClick:()=>{r?.(),e.onAccept()},color:e.color||"primary",variant:e.variant||"contained","data-testid":e.testId,disabled:t,children:e.text},n)),[c,r,t]);return(0,fe.jsxs)(_7,{open:n,title:a,style:u,onClose:r,titleClassName:"TitleClassName",modalSurfaceProps:{className:"ModalClassName"},children:[(0,fe.jsx)(P7,{typescale:"body",size:"medium",children:i}),p,(0,fe.jsxs)(F7,{fullWidth:d,children:[(0,fe.jsx)(f.Button,{onClick:m,variant:"outlined",color:"primary","data-testid":s,disabled:t,children:l}),y]})]})},U7=(0,f.styled)(rT.A)`
  & {
    margin-bottom: 16px;
  }
`;function $7(e){let{open:n,loading:t,batchType:a,permittedToOverwriting:i,onDismiss:l,onConfirm:r}=e;const[o,s]=(0,g.useState)(null),[d,c]=(0,g.useState)({}),{data:u,networkStatus:p}=function(e){return(0,x.IT)(Z6,e)}({variables:{batchType:a},skip:!i,notifyOnNetworkStatusChange:!0});(0,g.useEffect)(()=>{p===AN.pT.ready&&!o&&u?.getPossibleDataOverwritingKeys.defaultKey&&s(u?.getPossibleDataOverwritingKeys.defaultKey??[])},[p,o,u]);const m=(0,g.useCallback)(e=>{e.length>0&&c({}),s(e.map(e=>e.value))},[]),y=(0,g.useMemo)(()=>{const e=u?.getPossibleDataOverwritingKeys.keys.map(e=>({value:e.key,label:e.label}))||[];return{defaultOptions:u?.getPossibleDataOverwritingKeys.defaultKey||[],allOptions:e}},[u]),h=(0,g.useCallback)(()=>{0!==o?.length?r({customDuplicationKey:o||u?.getPossibleDataOverwritingKeys.defaultKey||[]}):c({customDuplicationKey:"Duplication key should not be empty"})},[r,o,u]);return(0,fe.jsx)(B7,{open:n,disabled:t,title:"Would you like us to check your upload for duplicates against historical data?",body:"If any are found, you’ll have the option to review and automatically overwrite them.",choices:[{onAccept:h,text:"Yes, let’s check"}],onCloseButtonClick:l,closeButtonTestId:"close-button",closeButtonText:"No, I don’t want to check",style:{zIndex:2147483650},children:(0,fe.jsxs)(U7,{children:[(0,fe.jsx)(oT.A,{expandIcon:(0,fe.jsx)(f.Icons.Settings,{}),"aria-controls":"panel1a-content",children:(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:"Customise your duplication key:"})}),(0,fe.jsx)(sT.A,{children:y.defaultOptions.length>0&&(0,fe.jsx)(f.AutoComplete,{isMulti:!0,error:d.customDuplicationKey,options:y.allOptions,defaultValue:y.defaultOptions||[],value:o||[],onChange:m,slotProps:{popper:{style:{zIndex:999999999999999}}}})})]})})}const M7=(0,f.styled)("div")`
  width: 100%;
  margin-top: 16px;
  height: 4px;
`,V7=(0,f.styled)(f.LinearProgress)`
  width: 100%;
`;function G7(){return(0,fe.jsx)(M7,{children:(0,fe.jsx)(V7,{})})}const z7=(0,f.styled)(f.Button)`
  height: 40px;
`,W7=(0,f.styled)("span")`
  height: fit-content;
`,q7=(0,f.styled)(f.Modal)`
  margin-bottom: 20px;
`,J7=(0,f.styled)(f.Modal)`
  z-index: 5000000001;
`;(0,f.setAgGridLicenseKey)(De("REACT_APP_AG_GRID_LICENSE_KEY"));const Y7={getRowId:e=>e.data.id,pagination:!0,paginationPageSize:25,paginationPageSizeSelector:[10,25,50,100],cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}}},H7=(e,n,t,a,i)=>{switch(H0(e.status)){case Qh.DONE:return{icon:"check",iconColor:n.palette.success.main,linkText:e.isLegacy?"Migrated":"Export data",onClick:()=>t(e)};case Qh.PENDING:return{icon:"clock",iconColor:n.palette.grey[400],linkText:"In progress"};case Qh.ABANDONED:return{icon:"undo",iconColor:n.palette.info.main,linkText:"Rolled back"};case Qh.FAILED:return{icon:"minus-circle",iconColor:n.palette.error.main,linkText:"View errors",onClick:a};case Qh.ACTION_REQUIRED:return{icon:"exclamation-circle",iconColor:n.palette.warning.main,linkText:"Action required",onClick:i};case Qh.EXTERNAL_ACTION_REQUIRED:return{icon:"exclamation-circle",iconColor:n.palette.warning.main,linkText:"Action required",onClick:()=>window.open(e.externalActionUrl||"","_blank")};default:return{icon:"",iconColor:"",linkText:""}}},K7=e=>{let{gridKey:n,title:t,breadcrumbs:a,config:i,uploadLink:l,dataType:r,extraButtons:o}=e;const{confirmDeleteId:s,confirmQuickViewId:d,confirmRollbackId:c,handleRollbackClick:u,handleDeleteClick:p,handleQuickviewClick:y,erroredRowId:h,handleErrorClick:x,handleDownloadClick:T,handleActionClick:b,fetchRows:v}=M6(r),[k,S]=(0,g.useState)([]),[N,A]=(0,g.useState)(!1),R=Je(),D=(0,g.useRef)(null),L=D.current?.gridApi,I=(0,f.useTheme)(),j=lr(),w=()=>L?.refreshServerSide(),{dataPreview:O,setDataPreview:_,resetPreviewState:F,dataPreviewOpen:P,setDataPreviewOpen:B}=function(){const[e,n]=(0,g.useState)(E7),[t,a]=(0,g.useState)(!1),i=(0,g.useCallback)(()=>{n(E7),a(!1)},[n]);return{dataPreview:e,setDataPreview:n,resetPreviewState:i,dataPreviewOpen:t,setDataPreviewOpen:a}}(),U=function(e){let{transactionType:n}=e;const t=lr(),a=(0,g.useRef)(null),i=Je(),l=zo(),{showNotification:r}=tn(),[o,s]=(0,g.useState)(!1),d=(0,g.useCallback)(e=>{a.current=e},[]),c=(0,g.useMemo)(()=>e7.includes(n)&&!!t.dataOverwriting.find(e=>e.startsWith("createDataOverwriteStrategy"))&&!!l?.accessControls.dataOverwriting,[t,l,n]),[u,p]=(0,g.useState)(null),[m,f]=(0,g.useState)(!1),y=(0,g.useRef)(null),[h]=(0,ln.n)(Y6),[x]=(0,ln.n)(H6),[T]=(0,ln.n)(K6),[b]=(0,ln.n)(J6),v=(0,g.useCallback)(e=>{console.error(e),e.message.includes(pt.DataOverwritingError.OverwritingInProgress)?r(`${pt.DataOverwritingError.OverwritingInProgress}. Please wait for the current process to complete and then try again.`,"danger"):r(X6,"danger"),(0,E.Cp)(e)},[r]),C=(0,g.useCallback)(async e=>{try{if(!y.current)throw new Error("No overwriting strategy found");await x({variables:{accountId:i,batchId:e,batchType:n,strategyId:y.current.id}})}catch(e){v(e)}},[x,v,i,n]),k=(0,g.useCallback)(async()=>{if(!y.current)throw new Error("No overwriting strategy found");await T({variables:{accountId:i,batchType:n,strategyId:y.current.id}})},[T,i,n]);!function(e){(0,Ll.R)(Q6,e)}({variables:{id:u,batchType:n},skip:!u,onError:v,onData:async e=>{let{data:n}=e;n?.data?.dataOverwritingStrategyUpdated&&(y.current=n.data.dataOverwritingStrategyUpdated)}});const S=(0,g.useCallback)(async(e,t)=>{try{f(!0);const a=(0,Wa.A)(),l={batchType:n,key:a,accountId:i,customDuplicationKey:t},r=await b({variables:l});if(!r?.data?.createPreSignedUploadLink)throw new Error(X6);const o=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4,t=arguments.length>2?arguments[2]:void 0;if(!Array.isArray(e))throw new Error("Payload must be an array.");if(void 0!==t&&e.length>t)throw new Error(`Payload too large: ${e.length} items > max ${t}`);if(e.length<=n)try{const n=JSON.stringify(e);return Buffer.from(n,"utf8")}catch(e){throw new Error(`Failed to serialize payload: ${e instanceof Error?e.message:String(e)}`)}const a=[];a.push((new TextEncoder).encode("["));let i=!0;for(let t=0;t<e.length;t+=n){const l=e.slice(t,t+n);let r;try{r=JSON.stringify(l)}catch(e){throw new Error(`Failed to serialize chunk at index ${t}: ${e instanceof Error?e.message:String(e)}`)}const o=r.slice(1,-1).trim();o&&(i||a.push((new TextEncoder).encode(",")),a.push((new TextEncoder).encode(o)),i=!1)}a.push((new TextEncoder).encode("]"));const l=a.reduce((e,n)=>e+n.length,0),r=new Uint8Array(l);let o=0;for(const e of a)r.set(e,o),o+=e.length;return Buffer.from(r)}(e.map(e=>xn().mapValues(e,e=>e instanceof Date?bn()(e).format("YYYY-MM-DD"):e)));await EW().put(r.data.createPreSignedUploadLink,o,{headers:{"Content-Type":"application/json"}});const{data:s}=await h({variables:l});if(s?.initiateDataOverwriting&&(p(s.initiateDataOverwriting.id),y.current=s.initiateDataOverwriting),await nl(()=>{if(y?.current){const{overwritingNeeded:e,status:n}=y.current;return n===gn.GV.Failed||null!=e}return!1},1e3),!y.current)throw new Error(X6);if(y.current.status===gn.GV.Failed)return{message:y.current.statusExplanation,mergedData:null,strategy:y.current};const{batchesSuitableForOverwriting:d,numberOfDuplicatesFound:c}=y.current;if(!c)return{message:"No duplicates were found in your upload",mergedData:null,strategy:y.current};await nl(()=>null!==y.current?.mergedFileUrl,1e3);const u=await EW().get(y.current.mergedFileUrl);if(200!==u.status)throw new Error(X6);const m=(d||[]).map(e=>{let{fileName:n}=e;return n}).join(", ");return{message:m.length?`We have merged the following historical uploads with your current upload: ${m}. Duplicates have been overwritten by the latter.`:`We have found ${c} duplicate(s) in your current upload and deduplicated them. Please make sure to check the data before submitting.`,strategy:y.current,mergedData:u.data}}catch(e){throw v(e),e}finally{f(!1)}},[b,h,i,n,v]),N=(0,g.useCallback)(()=>{y.current=null,a.current=null,p(null)},[]),A=(0,g.useCallback)(e=>{c&&s(e)},[c]);return{strategyLoading:m,initiateDataOverwriting:S,permittedToOverwriting:c,scheduleDataOverwritingExecution:C,cancelDataOverwritingExecution:k,overwritingStrategy:y,dismissOverwritingUi:N,promptOpen:o,promptResponse:a,setPromptResponse:d,setPromptOpen:A}}({transactionType:r}),$=()=>A(!1),{uploadDirectData:M,prepareDirectDataUpload:V,directDataUploadInProgress:G,isUploading:z}=(e=>{let{onComplete:n,dataType:t,dataOverwritingFlow:a}=e;const[i]=_d(),[l,r]=(0,g.useState)(!1),{showNotification:o}=tn(),[s,d]=(0,g.useState)(null),[c,u]=(0,g.useState)(null),[p,m]=(0,g.useState)(!1),f=(0,g.useCallback)(async e=>{if(!c)throw new Error("File name is not set");m(!0);try{const l=Zt(e,"label"),d=await async function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD",a=arguments.length>3?arguments[3]:void 0;if(!e.length)throw new Error("No rows provided");const i=a||Object.keys(e[0]),l=Array.isArray(i)?i:Object.keys(i),r=[(Array.isArray(i)?i:Object.values(i)).map(e=>`"${e}"`).join(","),...e.map(e=>l.map(n=>{const a=e[n];return ut(a)?bn()(a).format(t):null==a?'""':`"${String(a).replace(/"/g,'""')}"`}).join(","))].join("\n"),o=new Blob([r],{type:"text/csv;charset=utf-8;"});return new File([o],`${n}.csv`,{type:"text/csv;charset=utf-8;",lastModified:(new Date).getTime()})}(l,c,pt.ImportPayload.DATE_FORMAT);r(!0);const{batchId:u}=await i({file:d,isDirectActivity:s,fileName:d.name,transactionType:t});a.overwritingStrategy?.current?.overwritingNeeded&&await a.scheduleDataOverwritingExecution(u),n(),o("Upload has started","success"),m(!1)}catch(e){o(`Failed to upload data: ${e}`,"danger"),(0,E.Cp)(e),m(!1)}finally{r(!1)}},[i,n,a,o,t,c,s]),y=(0,g.useCallback)(e=>{let{fileName:n,isDirectActivity:t}=e;n&&u(n),null!=t&&d(t)},[]);return{directDataUploadInProgress:l,uploadDirectData:f,prepareDirectDataUpload:y,isUploading:p}})({dataType:r,dataOverwritingFlow:U,onComplete:()=>{$(),w(),F()}}),W=[gn.D_.Waste,gn.D_.Electricity,gn.D_.Gas,gn.D_.Transport,gn.D_.Water,gn.D_.Heatsteam,gn.D_.Hotelstays,gn.D_.S3C1Activitybasedmaterial,gn.D_.S3C1Spendbasedmaterial].includes(r),q=(0,g.useMemo)(()=>({...Y7,...i,components:{fileName:w6,status:e=>(0,fe.jsx)(F6,{...e,done:(0,fe.jsx)(j4.A,{onClick:()=>T(e.data),sx:{color:I.palette.success.main,cursor:"pointer"}}),actionRequired:(0,fe.jsx)(w4.A,{onClick:()=>b(e.data),sx:{color:I.palette.warning.main,cursor:"pointer"}}),abandoned:(0,fe.jsx)(O4.A,{sx:{color:I.palette.info.main}}),failed:(0,fe.jsx)(E4.A,{onClick:()=>x(e.data),sx:{color:I.palette.error.main,cursor:"pointer"}}),pending:(0,fe.jsx)(_4.A,{sx:{color:I.palette.grey[400]}}),onErrorClick:x,onDataClick:T,onActionClick:b,defineStatusProps:H7,statusLink:q6}),summary:e=>(0,fe.jsx)(V6,{...e,onSummaryClick:y}),actions:e=>(0,fe.jsx)(B6,{...e,onDeleteClick:p,onRollbackClick:u})},columnDefs:i?.columnDefs?.map(e=>({...e,headerName:e.headerName?Za(e.headerName):e.headerName}))}),[wn,jn]),{setLoading:J}=(0,f.usePageLoadingContext)(),{setError:Y}=(0,f.usePageErrorContext)(),H=(0,g.useMemo)(()=>({...q,onGridReady:e=>{e.api.setGridOption("serverSideDatasource",{async getRows(e){try{const{startRow:n=0,endRow:t=25,sortModel:a,filterModel:i}=e.request;for(const e in i)if(i[e].filterType===gn.pe.Set){const n=i[e].values;n.includes(null)&&n.push(" ")}J(!0);const{rows:l,totalRows:r}=await v({offset:n,limit:t-n,sort:wn(a),filters:jn(i)});return S(l),e.success({rowData:l,rowCount:r}),{rows:l,totalRows:r}}catch(n){e.fail(),Y(new Error(n))}finally{J(!1)}}})}}),[v,q,Y,J,S]),K=(0,m.zy)(),Q=(0,g.useMemo)(()=>K.pathname.split("/").slice(0,4).concat("view").join("/"),[K.pathname]);((e,n)=>{const t=(0,g.useRef)();(0,g.useEffect)(()=>{t.current=e},[e]),(0,g.useEffect)(()=>{{const e=setInterval(()=>{t.current&&t.current()},n);return()=>clearInterval(e)}},[n])})(()=>{w()},3e4);const Z=(0,C.m)(),X=function(e){let{dataOverwritingFlow:n,onDromoPayloadReady:t,onDataPreviewOpen:a}=e;return(0,g.useCallback)(async(e,i,l)=>{const{overwritingStrategy:r,permittedToOverwriting:o}=n;if(o)if(t(e,i,l),n.setPromptOpen(!0),await nl(()=>null!==n.promptResponse.current,1e3),!1!==n.promptResponse.current){if(await nl(()=>{if(r?.current){const{overwritingNeeded:e,status:n}=r.current;return n===gn.GV.Failed||null!=e}return!1},1e3),r?.current?.status===gn.GV.Failed)return n.setPromptResponse(null),{abort:!1,validation:{cancel:!0,message:`${r.current.statusExplanation}. Click "No, I don't want to check" to proceed with the upload.`}};if(!1!==n.overwritingStrategy?.current?.overwritingNeeded)return await nl(()=>r.current?.status===gn.GV.UserReview,1e3),a(),await nl(()=>r.current?.status!==gn.GV.UserReview,1e3),r.current?.status===gn.GV.CancelledByUser?{abort:!1,validation:{cancel:!0,message:"Warning: you are uploading potential duplicates, please confirm to proceed..."}}:r.current?.status===gn.GV.ExecutionScheduled?{abort:!0,validation:{cancel:!0,message:"Data overwriting scheduled, you will be redirected to the upload page soon..."}}:void 0}else n.setPromptResponse(null)},[n,t,a])}({dataOverwritingFlow:U,onDromoPayloadReady:(e,n,t)=>{V({fileName:n,isDirectActivity:t}),_({data:e,mode:t7.Values})},onDataPreviewOpen:()=>{B(!0)}}),ee={crumbs:a,content:t,actionButton:(0,fe.jsxs)(U6,{children:[o,(0,fe.jsx)(z7,{variant:"text",color:"primary",startIcon:(0,fe.jsx)(f.Icons.TableView,{}),to:Q,disabled:!L,children:"View transactions"}),(0,fe.jsx)(jS,{filtersApplied:D.current?.filtersApplied,resetGridState:D.current?.resetGridState}),!!j.data.find(e=>e.startsWith("createImportBatch"))&&W&&(0,fe.jsx)(Vx.A,{title:"Manually enter data into Rio",children:(0,fe.jsx)(W7,{children:(0,fe.jsx)(f.IconButton,{variant:"contained",onClick:()=>A(!0),children:(0,fe.jsx)(f.Icons.Create,{fontSize:"small"})})})}),!!l&&(0,fe.jsx)(Vx.A,{title:"Bulk upload your data using our uploader",children:(0,fe.jsx)(W7,{children:(0,fe.jsx)(f.IconButton,{children:(0,fe.jsx)(x6,{iconOnly:!0,onSubmit:X,transactionType:r,onCompleted:w})})})})]})},{showNotification:ne}=tn(),[te]=(0,ln.n)(eZ,{onCompleted:()=>{L?.refreshServerSide({purge:!0}),p(null),ne("Batch deleted","success")},onError:()=>{ne("Error deleting batch","danger")}}),[ae]=(0,ln.n)(nZ,{onCompleted:()=>{L?.refreshServerSide({purge:!0}),u(null),ne("Batch roll back succeeded","success")},onError:()=>{ne("Error rolling back batch","danger")}}),ie=(0,g.useCallback)(e=>{ae({variables:{id:c,rollbackReason:e}}),ne("Rollback has been started","success")},[c,ae,ne]),le=(0,g.useCallback)(()=>{te({variables:{id:s}}),ne("Batch deletion has been started","success")},[s,te,ne]),re=(0,g.useMemo)(()=>k.find(e=>e.id===d),[k,d]),oe=(0,g.useCallback)(async e=>{let{customDuplicationKey:n}=e;U.setPromptResponse(!0);const t=(a=O.data,Zt(a,"value"));var a;const{mergedData:i,strategy:l,message:r}=await U.initiateDataOverwriting(t,n);U.setPromptOpen(!1),ne(r,"success"),l.overwritingNeeded&&_({mode:t7.Values,data:i}),(l.overwritingNeeded||N)&&B(!0)},[U,ne,O,_,B,N]),se=(0,g.useCallback)(()=>{U.setPromptResponse(!1),U.setPromptOpen(!1),N&&B(!0)},[U,B,N]);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(f.Page,{title:ee,children:[d&&re&&(0,fe.jsx)(e1,{batch:re,uploadType:r,onDismiss:()=>{y(null)},refetchBatches:()=>{Z.refetchQueries({include:[XQ]})},accountId:R}),(0,fe.jsx)(GS,{open:Boolean(c),onClose:()=>u(null),title:"Start rollback",body:"Are you sure you want to roll back this data?",onConfirm:ie,confirmButtonText:"Confirm",closeButtonText:"Cancel",withTextArea:!0,textAreaLabel:"Rollback reason (Optional)"}),(0,fe.jsx)(GS,{open:Boolean(s),title:"Are you sure you want to delete this data upload attempt?",onConfirm:le,onClose:()=>p(null),withFullWidthButtons:!0}),h&&(0,fe.jsx)(q7,{open:!0,onClose:()=>{x(null)},collapsibleChildren:(0,fe.jsx)(I6,{batchId:h,withTitle:!1}),title:"There's been errors on your upload, please review the details"}),(0,fe.jsx)($6,{ref:D,gridKey:n,gridOptions:H},R),(0,fe.jsx)(y6,{open:N,onDismiss:$,dataSection:r,onSubmit:(e,n)=>{U.setPromptOpen(!0),V(n),_({data:e,mode:t7.Options}),U.permittedToOverwriting||B(!0)}}),(0,fe.jsx)(O7,{strategy:U.overwritingStrategy?.current,onComplete:()=>{U.dismissOverwritingUi(),w()}}),(0,fe.jsx)($7,{loading:U.strategyLoading,open:U.promptOpen,batchType:r,onDismiss:se,onConfirm:oe,permittedToOverwriting:U.permittedToOverwriting}),(0,fe.jsx)(J7,{open:P&&!U.promptOpen,onClose:()=>{B(!1),U.dismissOverwritingUi()},maxWidth:"99vw",title:"Data preview",children:(0,fe.jsx)(v7,{type:r,onBack:async()=>{F(),(N||U.overwritingStrategy?.current?.status===gn.GV.ExecutionScheduled)&&U.dismissOverwritingUi(),U.overwritingStrategy?.current&&await U.cancelDataOverwritingExecution()},onConfirm:()=>M(O.data),isUploading:z,mode:O.mode,data:O.data})}),(0,fe.jsx)(f.Modal,{open:G,title:"Data uploading",children:(0,fe.jsx)(G7,{})})]})})};function Q7(){return{columnDefs:[{headerName:"Status",field:"status",filter:"agTextColumnFilter",cellRenderer:"status"},{headerName:"Filename",field:"fileName",filter:"agTextColumnFilter",cellRenderer:"fileName"},{headerName:"User",field:"uploadUserFullName",filter:"agTextColumnFilter",valueGetter:e=>`${e.data?.user?.first_name||""} ${e.data?.user?.last_name||""}`.trim()},{headerName:"Last Updated Date",field:"lastUpdated",filter:"agDateColumnFilter",sort:"desc",initialSortIndex:1,valueFormatter:e=>{let{value:n,data:t}=e;return`${"Rolled Back"===t?.status?"Rolled Back at":""} ${Dn(new Date(n))}`}},{headerName:"Rows",field:"rowsUploaded",filter:"agTextColumnFilter"},{headerName:"Rollback User",field:"rollbackUserFullName",filter:"agTextColumnFilter",valueGetter:e=>{const n=e.data?.rollbackUser?.first_name,t=e.data?.rollbackUser?.last_name;return"Rolled Back"===e.data?.status&&(n||t)?`${n} ${t}`:""}},{headerName:"Rollback Reason",field:"rollbackReason",filter:"agTextColumnFilter"},{headerName:"Anomalies Found",field:"anomalyCount",filter:"agNumberColumnFilter"},{headerName:"Summary",cellRenderer:"summary",sortable:!1,filter:!1},{headerName:"Actions",cellRenderer:"actions",sortable:!1,filter:!1}]}}const Z7=[{label:"Data",to:".."},{label:"Production",to:"/data/oilProduction/view"},{label:"Uploads"}],X7=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"oilUploadGridV2",title:"Here's your upload history",breadcrumbs:Z7,uploadLink:"../oilProduction/uploads",config:e,dataType:gn.D_.Oil})},e8=()=>(0,fe.jsx)(X7,{});var n8=t(72801),t8=t.n(n8),a8=t(14558),i8=t.n(a8);const l8={lineHeight:"21px",wordBreak:"inherit",display:"inline-block",alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r8=[{label:"Data",to:"/v2/data"},{label:"Sales Data"}],o8=()=>{const[e]=(0,Ul._)(t8(),{fetchPolicy:"network-only"}),n=function(){const e=(0,C.m)(),n=Je(),{showNotification:t}=tn(),a=(0,g.useCallback)(async a=>{try{const t=a.colDef.field||a.colDef.colId;if(!t)throw new Error("Unfilterable column");const i=await e.query({query:i8(),variables:{accountId:n,field:t}}),l=(i.data?.getSalesDataTransactionFilters||[]).map(e=>e.value?JSON.stringify(e):e.value);a.success(l)}catch(e){t(`Couldn't load filter values for column ${a.colDef.field}: ${e}`,"danger"),a.success([])}},[e,n,t]);return(0,g.useMemo)(()=>({rowHeight:56,getRowId:Gn("id"),columnDefs:[{field:"date",headerName:"Date",valueFormatter:e=>kn(e.value),filter:"agDateColumnFilter",width:120,cellStyle:l8},{field:"assetName",headerName:"Asset",filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:150,cellStyle:l8},{field:"volumeNaturalGas",headerName:"Natural gas sales volume",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:250,cellStyle:{textAlign:"right"}},{field:"volumeNaturalGasUnit",headerName:"Natural gas sales volume unit",filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:260,cellStyle:l8},{field:"volumeCrudeOilBbl",headerName:"Crude Oil Volume (Bbl)",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:250,cellStyle:{textAlign:"right"}},{field:"naturalGasSalesVolumeM3",headerName:"Natural Gas Sales Volume (m³)",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:280,cellStyle:{textAlign:"right"}},{field:"crudeOilSalesVolumeM3",headerName:"Crude Oil Sales Volume (m³)",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:280,cellStyle:{textAlign:"right"}},{field:"soldProductEmissionsCO2e",headerName:"Sold Product Emissions (tCO2e)",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:300,cellStyle:{textAlign:"right"}},{field:"soldProductEmissionsCO2",headerName:"Sold Product CO2 (t)",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:220,cellStyle:{textAlign:"right"}},{field:"soldProductEmissionsCH4",headerName:"Sold Product CH4 (t)",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:220,cellStyle:{textAlign:"right"}},{field:"soldProductEmissionsN2O",headerName:"Sold Product N2O (t)",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:220,cellStyle:{textAlign:"right"}},{field:"scope1GhgEmissions",headerName:"Scope 1 GHG Emissions (tCO2e)",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:300,cellStyle:{textAlign:"right"}},{field:"scope2GhgEmissions",headerName:"Scope 2 GHG Emissions (tCO2e)",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:300,cellStyle:{textAlign:"right"}},{field:"scope3GhgEmissions",headerName:"Scope 3 GHG Emissions (tCO2e)",type:"numericColumn",filter:"agNumberColumnFilter",valueFormatter:Un,width:300,cellStyle:{textAlign:"right"}},{field:"notes",headerName:"Notes",width:200,cellStyle:l8},{field:"tags",headerName:"Tags",filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:150,cellStyle:l8},{field:"departments",headerName:"Departments",filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:150,cellStyle:l8},{field:"importBatchFileName",headerName:"Import File",filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:200,cellStyle:l8}],defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0},cellStyle:{height:"auto"}},rowStyle:{width:"100%",display:"flex",alignItems:"center"}}),[a])}(),t=(0,g.useCallback)(async n=>{const{data:{getSalesDataTransactionsPage:{totalRows:t,rows:a}}}=await e({variables:n});return{rows:a,totalRows:t}},[e]);return(0,fe.jsx)(cH,{title:"Sales Data Transactions",defaultExportFileName:"sales-data-export",breadcrumbs:r8,uploadLink:"../salesData/uploads",config:n,fetchRows:t,transactionType:gn.D_.Oilgassales})},s8=()=>(0,fe.jsx)(o8,{}),d8=[{label:"Data",to:".."},{label:"Sales Data",to:"/data/salesData/view"},{label:"Uploads"}],c8=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"salesDataUploadGridV2",title:"Here's your upload history",breadcrumbs:d8,uploadLink:"../salesData/uploads",config:e,dataType:gn.D_.Oilgassales})},u8=()=>(0,fe.jsx)(c8,{}),p8=S.J1`
  query GetLiquidFuelTransactionsPageFilter($accountId: ID!, $field: String!) {
    getLiquidFuelTransactionsPageFilter(accountId: $accountId, field: $field) {
      value
      label
    }
  }
`,m8=S.J1`
  query GetLiquidFuelTransactionsPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getLiquidFuelTransactionsPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        assetName
        date
        fuelConsumptionType
        fuelType
        fuelUnit
        volume
        operationalControl
        notes
        tags
        departments
        importBatchFileName
        co2eEmissions
        co2Emissions
        ch4InCo2Emissions
        n2oInCo2Emissions
        ch4Emissions
        n2oEmissions
        scope1GhgEmissions
        scope2GhgEmissions
        scope3GhgEmissions
      }
    }
  }
`,f8=[{label:"Data",to:".."},{label:"Liquid fuels"}],y8={uploadReference:bH,documentReference:vH},g8=()=>{const e=function(){const e=(0,C.m)(),n=zo(),t=n?.id,{showNotification:a}=tn(),i=async n=>{try{const{data:{getLiquidFuelTransactionsPageFilter:a}}=await e.query({query:p8,variables:{accountId:t,field:n.colDef.colId||n.colDef.field}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){a(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Asset",field:"assetName",filter:"agSetColumnFilter",filterParams:{valueFormatter:On,values:i}},{headerName:"Date",field:"date",valueFormatter:Fn,filter:"agDateColumnFilter",sortable:!0},{headerName:"Fuel consumption type",field:"fuelConsumptionType",filter:"agSetColumnFilter",filterParams:{valueFormatter:On,values:i},width:250},{headerName:"Fuel type",field:"fuelType",filter:"agSetColumnFilter",filterParams:{valueFormatter:On,values:i}},{headerName:"Fuel unit",field:"fuelUnit",filter:"agSetColumnFilter",filterParams:{valueFormatter:On,values:i}},{headerName:"Quantity consumed",field:"volume",filter:"agNumberColumnFilter",width:250,sortable:!0},{headerName:"Operational Control",field:"operationalControl",filter:"agSetColumnFilter",width:300,filterParams:{valueFormatter:On,values:i}},{headerName:"Tags",field:"tags",filterParams:{values:i,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:i,valueFormatter:On}},{headerName:"Liq F CO2e (tonnes)",field:"co2eEmissions",filter:"agNumberColumnFilter"},{headerName:"Liq F CO2 (tonnes)",field:"co2Emissions",filter:"agNumberColumnFilter"},{headerName:"CH4 in CO2 emissions (t)",field:"ch4InCo2Emissions",filter:"agNumberColumnFilter"},{headerName:"N2O in CO2 emissions (t)",field:"n2oInCo2Emissions",width:250,filter:"agNumberColumnFilter"},{headerName:"CH4 emissions (t)",field:"ch4Emissions",filter:"agNumberColumnFilter"},{headerName:"N2O emissions (t)",field:"n2oEmissions",filter:"agNumberColumnFilter"},{headerName:"Scope 1 GHG emissions (tCO2e)",field:"scope1GhgEmissions",filter:"agNumberColumnFilter",width:300},{headerName:"Scope 2 GHG emissions (tCO2e)",field:"scope2GhgEmissions",filter:"agNumberColumnFilter",width:300},{headerName:"Scope 3 GHG emissions (tCO2e)",field:"scope3GhgEmissions",filter:"agNumberColumnFilter",width:300},{headerName:"Notes",field:"notes",filter:"agTextColumnFilter",minWidth:200,cellStyle:{textOverflow:"ellipsis"}},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:i,valueFormatter:On}}]}}(),[n]=ed(m8,{fetchPolicy:"network-only"}),t=(0,g.useCallback)(async e=>{const{data:{getLiquidFuelTransactionsPage:{totalRows:t,rows:a}}}=await n({variables:e});return{rows:a,totalRows:t}},[n]);return(0,fe.jsx)(cH,{title:"Your liquid fuel data",defaultExportFileName:"liquid-fuel-export",breadcrumbs:f8,uploadLink:"../liquid-fuels/uploads",config:{...e,components:y8},fetchRows:t,transactionType:gn.D_.Liquidfuel})},h8=function(e){const n=c0(gn.D_.Liquidfuel);return(0,fe.jsx)(F1,{...e,dataSection:gn.D_.Liquidfuel,dromoConfiguration:n,template:{name:"Liquid Fuels Template",fileName:"liquid-fuels-template",url:o0,type:Zh.Static}})};var x8=t(70359),T8=t.n(x8),b8=t(12505),v8=t.n(b8);const C8=[{label:"Data",to:"/v2/data"},{label:"Emissions Database"}],k8=()=>{const[e]=ed(T8(),{fetchPolicy:"network-only"}),n=function(){const e=Je(),{showNotification:n}=tn(),[t]=(0,Ul._)(v8()),a=(0,g.useCallback)(async a=>{try{const{data:n}=await t({variables:{accountId:e,field:a.colDef.colId||a.colDef.field}});a.success(n?.getEmissionsDatabaseFilters?.map(e=>e.value?JSON.stringify(e):e.value)||[])}catch(e){n(`Couldn't load filter values for column "${a.colDef.headerName}"`,"warning")}},[e,t,n]),i=(0,g.useMemo)(()=>[{field:"recordDataDate",headerName:"Date",sortable:!0,filter:"agDateColumnFilter",valueFormatter:e=>kn(e.value),width:120,pinned:"left"},{field:"assetField",headerName:"Asset / Field",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:200,pinned:"left"},{field:"location",headerName:"Location",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:200,pinned:"left"},{field:"recordNo",headerName:"Record No",sortable:!0,filter:"agTextColumnFilter",width:120},{field:"country",headerName:"Country",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:150},{field:"platforms",headerName:"Platforms",sortable:!0,filter:"agTextColumnFilter",width:150},{field:"releaseValves",headerName:"Release Valves",sortable:!0,filter:"agTextColumnFilter",width:150},{field:"dataEntryByName",headerName:"Data Entry By",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:150},{field:"dateOfEntryIntoDatabase",headerName:"Date of Entry",sortable:!0,filter:"agDateColumnFilter",valueFormatter:e=>kn(e.value),width:150},{field:"oilProductionBbl",headerName:"Oil Production (bbl)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"gasProductionKscf",headerName:"Gas Production (kscf)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"gasExportKscf",headerName:"Gas Export (kscf)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:160,cellStyle:{textAlign:"right"}},{field:"gasInjectionKscf",headerName:"Gas Injection (kscf)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:170,cellStyle:{textAlign:"right"}},{field:"gasImport",headerName:"Gas Import",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:130,cellStyle:{textAlign:"right"}},{field:"gasInjected",headerName:"Gas Injected",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:140,cellStyle:{textAlign:"right"}},{field:"waterProductionBbl",headerName:"Water Production (bbl)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"typeOfFuelConsumption",headerName:"Fuel Consumption Type",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:180},{field:"fuelType",headerName:"Fuel Type",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:120},{field:"fuelUnits",headerName:"Fuel Units",sortable:!0,filter:"agTextColumnFilter",width:120},{field:"quantityConsumed",headerName:"Quantity Consumed",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:160,cellStyle:{textAlign:"right"}},{field:"fuelGasKscf",headerName:"Fuel Gas (kscf)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:150,cellStyle:{textAlign:"right"}},{field:"flareGasKscf",headerName:"Flare Gas (kscf)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:150,cellStyle:{textAlign:"right"}},{field:"operationalControl",headerName:"Operational Control",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:160},{field:"units",headerName:"Units",sortable:!0,filter:"agTextColumnFilter",width:100},{field:"mboeAllPerDay",headerName:"Mboe (all)/day",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:140,cellStyle:{textAlign:"right"}},{field:"mboeGasPerDay",headerName:"Mboe (gas)/day",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:140,cellStyle:{textAlign:"right"}},{field:"dataMarker",headerName:"Data Marker",sortable:!0,filter:"agSetColumnFilter",filterParams:{values:a,valueFormatter:On},width:130},{field:"notes",headerName:"Notes",sortable:!0,filter:"agTextColumnFilter",width:200},{field:"ghgScope1EmissionsT",headerName:"Scope 1 GHG Emissions (tCO2e)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:220,cellStyle:{textAlign:"right"}},{field:"ghgScope2EmissionsT",headerName:"Scope 2 GHG Emissions (tCO2e)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:220,cellStyle:{textAlign:"right"}},{field:"ghgScope3EmissionsT",headerName:"Scope 3 GHG Emissions (tCO2e)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:220,cellStyle:{textAlign:"right"}},{field:"fuelGasCO2eT",headerName:"Fuel Gas CO2e (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:160,cellStyle:{textAlign:"right"}},{field:"fuelGasCO2T",headerName:"Fuel Gas CO2 (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:160,cellStyle:{textAlign:"right"}},{field:"fuelGasCH4T",headerName:"Fuel Gas CH4 (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:160,cellStyle:{textAlign:"right"}},{field:"fuelGasN2OT",headerName:"Fuel Gas N2O (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:160,cellStyle:{textAlign:"right"}},{field:"flareCO2eT",headerName:"Flare CO2e (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:140,cellStyle:{textAlign:"right"}},{field:"flareCO2T",headerName:"Flare CO2 (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:140,cellStyle:{textAlign:"right"}},{field:"flareCH4T",headerName:"Flare CH4 (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:140,cellStyle:{textAlign:"right"}},{field:"flareN2OT",headerName:"Flare N2O (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:140,cellStyle:{textAlign:"right"}},{field:"ventingCO2eT",headerName:"Venting CO2e (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:150,cellStyle:{textAlign:"right"}},{field:"ventingCH4T",headerName:"Venting CH4 (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:150,cellStyle:{textAlign:"right"}},{field:"liqFCO2eT",headerName:"Liquid Fuel CO2e (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:170,cellStyle:{textAlign:"right"}},{field:"liqFCO2EmissionsT",headerName:"Liquid Fuel CO2 (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:170,cellStyle:{textAlign:"right"}},{field:"liqFCH4EmissionsCO2",headerName:"Liquid Fuel CH4 (CO2)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"liqFN2OEmissionsT",headerName:"Liquid Fuel N2O (tCO2)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"liqFCH4EmissionsT",headerName:"Liquid Fuel CH4 (tCH4)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"liqFN2OEmissionsTonnesN2O",headerName:"Liquid Fuel N2O (tonnes N2O)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:200,cellStyle:{textAlign:"right"}},{field:"fugitiveCO2e",headerName:"Fugitive CO2e",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:140,cellStyle:{textAlign:"right"}},{field:"fugitiveCH4T",headerName:"Fugitive CH4 (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:150,cellStyle:{textAlign:"right"}},{field:"gasCompositionRecordUsed",headerName:"Gas Composition Record Used",sortable:!0,filter:"agTextColumnFilter",width:220},{field:"naturalGasSalesVolume",headerName:"Natural Gas Sales Volume",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:190,cellStyle:{textAlign:"right"}},{field:"crudeOilSalesVolume",headerName:"Crude Oil Sales Volume",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"naturalGasSalesVolumeUnit",headerName:"Natural Gas Sales Unit",sortable:!0,filter:"agTextColumnFilter",width:170},{field:"soldProductsCO2eT",headerName:"Sold Products CO2e (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"soldProductsCO2T",headerName:"Sold Products CO2 (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"soldProductsCH4T",headerName:"Sold Products CH4 (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"soldProductsN2OT",headerName:"Sold Products N2O (t)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:180,cellStyle:{textAlign:"right"}},{field:"prodWaterOverboardBwpd",headerName:"Prod. Water Overboard (bwpd)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:200,cellStyle:{textAlign:"right"}},{field:"oilInWaterPpm",headerName:"Oil in Water (ppm)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:160,cellStyle:{textAlign:"right"}},{field:"monthAvWaterLimitPPM1",headerName:"Month Av Water Limit PPM-1 (PPM)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:230,cellStyle:{textAlign:"right"}},{field:"monthAverageLimitP65",headerName:"Month Average Limit P-65 (PPM)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:220,cellStyle:{textAlign:"right"}},{field:"oilDischargeBpd",headerName:"Oil Discharge (bpd)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:160,cellStyle:{textAlign:"right"}},{field:"noxT",headerName:"NOx (tonnes)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:130,cellStyle:{textAlign:"right"}},{field:"soxT",headerName:"SOx (tonnes)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:130,cellStyle:{textAlign:"right"}},{field:"pm25T",headerName:"PM2.5 (tonnes)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:140,cellStyle:{textAlign:"right"}},{field:"coT",headerName:"CO (tonnes)",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",valueFormatter:Un,width:120,cellStyle:{textAlign:"right"}},{field:"codeForCheckingNewDataEntry",headerName:"Code for Checking New Data Entry",sortable:!0,filter:"agTextColumnFilter",width:240}],[a]);return{getRowId:Gn("id"),columnDefs:i,defaultColDef:{resizable:!0,sortable:!0,filter:!0}}}(),t=(0,g.useCallback)(async n=>{const{data:{getEmissionsDatabasePage:{totalRows:t,rows:a}}}=await e({variables:n});return{rows:a,totalRows:t}},[e]);return(0,fe.jsx)(cH,{title:"Emissions Database",defaultExportFileName:"emissions-database-export",breadcrumbs:C8,config:n,fetchRows:t,transactionType:gn.D_.Emissionsdatabase})},S8={scope3ActivityBasedMaterials:"s3c1-activity-based-materials",scope3SpendBasedMaterials:"s3c1-spend-based-materials",liquidFuels:"liquid-fuels",inSiteLeases:"insite-leases",inSiteBreeams:"insite-breeams",inSiteLandParcels:"insite-land-parcels"},N8=Object.entries(S8).reduce((e,n)=>{let[t,a]=n;return{...e,[a]:t}},{}),A8=["oilProduction","salesData","liquidFuels","emissionsDatabase"],R8=e=>S8[e]||e,D8=(e,n)=>{const t=(e=>N8[e]||e)(e);return!(!e.startsWith("insite-")||!n.insite)||!(!A8.includes(t)||!n.oilAndGas)||n[t]},L8=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,I8=e=>{let{dataAccessControls:n}=e;const{subject:t}=(0,m.g)();if(D8(t,n))switch(t){case"waste":return(0,fe.jsx)(G1,{});case"electricity":return(0,fe.jsx)(SH,{});case"gas":return(0,fe.jsx)(e2,{});case"water":return(0,fe.jsx)(o2,{});case"transport":return(0,fe.jsx)(h2,{});case"fuel":return(0,fe.jsx)(S2,{});case"materials":return(0,fe.jsx)(I2,{});case"refrigerants":return(0,fe.jsx)(DH,{});case"heatSteam":return(0,fe.jsx)(_H,{});case"buildingEnergyRatings":return(0,fe.jsx)(o5,{});case"hotelStays":return(0,fe.jsx)(m5,{});case"investment":return(0,fe.jsx)(T4,{});case"oilProduction":return(0,fe.jsx)(I4,{});case"liquid-fuels":return(0,fe.jsx)(g8,{});case"salesData":return(0,fe.jsx)(s8,{});case"emissionsDatabase":return(0,fe.jsx)(k8,{});default:return null}return(0,fe.jsx)(m.C5,{to:"data"})},j8=e=>{let{dataAccessControls:n}=e;const{subject:t}=(0,m.g)();if(D8(t,n))switch(t){case"waste":return(0,fe.jsx)(P1,{});case"electricity":return(0,fe.jsx)(z1,{});case"gas":return(0,fe.jsx)(q1,{});case"water":return(0,fe.jsx)(J1,{});case"transport":return(0,fe.jsx)(x2,{});case"fuel":return(0,fe.jsx)(N2,{});case"materials":return(0,fe.jsx)(j2,{});case"hotelStays":return(0,fe.jsx)(f5,{});case"heatSteam":return(0,fe.jsx)(W1,{});case"refrigerants":return(0,fe.jsx)(y4,{});case"investment":return(0,fe.jsx)(b4,{});case"oilProduction":return(0,fe.jsx)(e8,{});case"liquid-fuels":return(0,fe.jsx)(h8,{});case"salesData":return(0,fe.jsx)(u8,{});default:return null}return(0,fe.jsx)(m.C5,{to:"data"})},w8=e=>{let{dataAccessControls:n}=e;const{subject:t}=(0,m.g)();if(D8(t,n))switch(t){case"electricity":case"gas":case"water":case"heatSteam":return(0,fe.jsx)(n5,{utility:t.toUpperCase()});default:return null}return(0,fe.jsx)(m.C5,{to:"data"})},O8=()=>{const{data:e}=Mr(),n=e.data,t=()=>(0,fe.jsx)(m.C5,{to:"./view"}),a=(i=e).dataTracker?(0,fe.jsx)(f4,{}):(0,fe.jsx)(QY,{fullAccess:i.data});var i;return(0,fe.jsx)(L8,{children:n?(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"",element:a}),(0,fe.jsx)(m.qh,{path:":subject/view",element:(0,fe.jsx)(I8,{dataAccessControls:n})}),(0,fe.jsx)(m.qh,{path:":subject/uploads",element:(0,fe.jsx)(j8,{dataAccessControls:n})}),(0,fe.jsx)(m.qh,{path:":subject/uploads/ocr",element:(0,fe.jsx)(w8,{dataAccessControls:n})}),(0,fe.jsx)(m.qh,{path:":subject/uploads/alias/:id",element:(0,fe.jsx)(eQ,{})}),(0,fe.jsx)(m.qh,{path:":subject/",element:(0,fe.jsx)(t,{})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:"/data"})})]}):(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"",element:a}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:"/data"})})]})})},E8=e=>`./${e.id}/${e.name}?providerDashboardId=${e.providerDashboardId}`,_8=e=>"FOLDER"===e.type?`./${e.id}?providerDashboardId=${e.providerDashboardId}`:E8(e),F8=(0,le.default)(ie.fv)`
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,P8=(0,le.default)(ie.fI)`
  padding: 0 0 75% 0;
  display: block;
  width: 100%;
  height: auto;
  background: ${e=>{let{theme:n}=e;return n.colors.overlay.light.background}} url(${e=>{let{src:n}=e;return n}}) center center no-repeat;
  background-size: contain;
`,B8=(0,le.default)(ie.GQ)`
  background: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  margin-right: ${e=>e.theme.geometry.sm.spacing};
`,U8=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.sm.spacing};
  border-top: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: ${e=>{let{theme:n}=e;return n.colors.basic.white}};
`,$8=le.default.div`
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s ease;
  background-color: ${e=>e.theme.colors[e.color].normal.background};
`,M8=le.default.div`
  position: absolute;
  width: 80%;
  top: 50%;
  left: 50%;
  color: white;
  font-size: 20px;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  display: none;
`,V8=le.default.div`
  position: relative;

  &:hover .overlay {
    opacity: 1;
    div {
      display: block;
    }
  }
`,G8=e=>{let{title:n,subject:t,reportId:a,description:i,thumbnail:l}=e,r="chart-line",o="quaternary";return"LEARN"===t?(r="graduation-cap",o="secondary"):"COMPLY"===t&&(r="pencil-alt",o="tertiary"),(0,fe.jsxs)(F8,{name:`ReportTile ReportTile--${a}`,container:!0,item:!0,children:[(0,fe.jsxs)(V8,{children:[(0,fe.jsx)(P8,{name:"ReportTile__DashboardThumbnail",container:!0,item:!0,distribution:"between",src:l}),(0,fe.jsx)($8,{className:"overlay",color:o,children:(0,fe.jsx)(M8,{children:i})})]}),(0,fe.jsx)(U8,{container:!0,item:!0,vdistribution:"between",children:(0,fe.jsxs)(ie.fI,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(B8,{name:"ReportTile__Icon",height:"50px",size:"lg",icon:r,iconColor:o,circleColor:o}),(0,fe.jsx)(ie.DZ,{name:"ReportTile__Title",size:"lg",color:"dark",weight:"light",children:n})]})})]})},z8=le.default.div`
  flex: 1 1 auto;

  // Fallbacks for IE
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-center;

  // CSS grid for real browsers
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: ${e=>e.theme.geometry.md.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,W8=e=>{let{items:n}=e;return(0,fe.jsx)(z8,{children:n.map(e=>(0,fe.jsx)(p.Link,{name:`ReportingReportsGrid__Link ReportingReportsGrid__Link__${e.id}`,to:_8(e),children:(0,fe.jsx)(G8,{reportId:e.providerDashboardId,title:e.name,subject:e.area,description:e.description,thumbnail:e.thumbnailUrl},e.id)},e.id))})},q8=(0,le.default)(ie.fI)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  overflow: hidden;
`,J8=le.default.div`
  margin-left: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,Y8=(0,le.default)(ie.DZ)`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,H8=(0,le.default)(ie.EY)`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,K8=(0,le.default)(ie.EY)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,Q8=le.default.div`
  width: 192px;
  height: 142px;
  display: block;
  background: ${e=>{let{theme:n}=e;return n.colors.overlay.light.background}} url(${e=>{let{src:n}=e;return n}}) center center no-repeat;
  background-size: cover;
  flex: 0 0 auto;
  border: 1px solid ${e=>{let{theme:n}=e;return n.colors.overlay.normal.background}};
`,Z8=e=>{let{reportId:n,title:t,type:a,description:i,thumbnail:l}=e;return(0,fe.jsxs)(q8,{name:`ReportRow ReportRow--${n}`,container:!0,itemAlign:"center",children:[(0,fe.jsx)(Q8,{name:"ReportRow__Thumbnail",src:l}),(0,fe.jsxs)(ie.fI,{container:!0,item:!0,distribution:"between",itemAlign:"center",children:[(0,fe.jsxs)(J8,{children:[(0,fe.jsx)(Y8,{size:"lg",weight:"normal",color:"dark",name:"ReportRow__Title",children:t}),(0,fe.jsxs)(H8,{name:"ReportRow__Category",size:"md",color:"normal",children:["Category: ",a]}),(0,fe.jsxs)(ie.EY,{name:"ReportRow__LastModified",size:"md",color:"normal",children:["Description: ",i]})]}),(0,fe.jsx)(K8,{size:"lg",color:"normal",children:(0,fe.jsx)(ie.In,{icon:"chevron-right"})})]})]})},X8=le.default.div`
  flex: 1 1 auto;
  overflow: auto;
`,e9=e=>{let{items:n}=e;return(0,fe.jsx)(X8,{children:n.map(e=>(0,fe.jsx)(p.Link,{name:`ReportingReportsList__Link ReportingReportsList__Link--${e.id}`,to:_8(e),children:(0,fe.jsx)(Z8,{reportId:e.providerDashboardId,title:e.name,description:e.description,type:e.area,thumbnail:e.thumbnailUrl},e.id)},e.id))})},n9="32px",t9="md",a9=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
  cursor: pointer;
`,i9=(0,le.default)(ie.fI)``,l9=e=>{let{showComply:n,showData:t,showLearn:a,onClick:i}=e;return(0,fe.jsxs)(i9,{container:!0,children:[(0,fe.jsx)(a9,{onClick:()=>i("Learn"),children:(0,fe.jsx)(ie.GQ,{icon:"graduation-cap",height:n9,iconColor:a?"secondary":"normal",size:t9,circleColor:a?"secondary":"normal",name:`Reports-ShowLearn-${a}`})}),(0,fe.jsx)(a9,{onClick:()=>i("Comply"),children:(0,fe.jsx)(ie.GQ,{icon:"pencil-alt",height:n9,iconColor:n?"tertiary":"normal",size:t9,circleColor:n?"tertiary":"normal",name:`Reports-ShowComply-${n}`})}),(0,fe.jsx)(a9,{onClick:()=>i("Data"),children:(0,fe.jsx)(ie.GQ,{icon:"chart-line",height:n9,iconColor:t?"quaternary":"normal",size:t9,circleColor:t?"quaternary":"normal",name:`Reports-ShowData-${t}`})})]})},r9=le.default.div`
  overflow: auto;
  padding: ${e=>e.theme.geometry.xl.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,o9=(0,le.default)(ie.fI)`
  padding-right: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.dark.background};
`,s9=(0,le.default)(ie.vj)`
  flex: 1 1 auto;
  form > div {
    background: none;
    border: 0;
    border-radius: 0;
  }
`,d9=(0,le.default)(ie.Yq)`
  margin-left: ${e=>e.theme.geometry.md.spacing};
`,c9=le.default.div`
  padding: 10px 0px 0px 10px;
`,u9=function(e){let{dashboards:n,filterOnClick:t,subjectFilters:a}=e;const[i,l,r=[]]=fd(n,["name"]),{showGrid:o,showList:s,isGrid:d,isList:c}=Vd();return(0,fe.jsxs)(r9,{children:[(0,fe.jsxs)(ie.fI,{container:!0,children:[(0,fe.jsxs)(o9,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(s9,{name:"ReportingReports__Search",value:i,onChange:e=>l(e.target.value),hideButton:!0}),(0,fe.jsx)(d9,{name:"ReportingReports__ShowGrid",size:"md",color:d?"primary":"normal",weight:o?"bold":"normal",underline:!1,onClick:o,inline:!0,children:(0,fe.jsx)(ie.In,{icon:"th"})}),(0,fe.jsx)(d9,{name:"ReportingReports__ShowList",size:"md",color:c?"primary":"normal",weight:s?"bold":"normal",underline:!1,onClick:s,inline:!0,children:(0,fe.jsx)(ie.In,{icon:"th-list"})})]}),(0,fe.jsx)(c9,{children:(0,fe.jsx)(l9,{onClick:t,showLearn:a.showLearn,showComply:a.showComply,showData:a.showData})})]}),r.length>0&&d&&(0,fe.jsx)(W8,{items:r}),r.length>0&&c&&(0,fe.jsx)(e9,{items:r}),!r.length>0&&(0,fe.jsx)(Fu,{name:"ReportingReports__NoResults",title:"There are no results for this search."})]})},p9=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,m9=(0,le.default)(Ae)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,f9=["b1f7fc4e-714d-4271-bb3f-d736dff38a14","608877fc-83e7-4487-b5a4-493e0ba05903"],y9=[{id:"0f7db846-67a6-4d3e-807d-67c3ef5f4f30",name:"Patron Capital - Carbon Report"},{id:"65236e34-ca0d-42e1-a8f1-b7c71ca08555",name:"Patron Capital - Dalton Park"},{id:"1a8ee51b-e5c9-483a-85d6-86e9117e0aa1",name:"Patron Capital - MK Gateway"},{id:"3e75ba9e-3c96-4396-b1b7-ba4f64680907",name:"Patron Capital - GRESB"}],g9=(0,ce.Ay)(e=>{let{intl:n}=e;const t=Je(),{folderId:a}=(0,m.g)(),[i,l]=(0,g.useState)({showLearn:!0,showComply:!0,showData:!0}),r=zo(),o=r?.type===gn.CO.Engage,{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(vT,{variables:{accountId:t}}),[p,f]=(0,g.useState)(s),y=(0,g.useMemo)(()=>[{title:n.formatMessage({id:"pages.reporting.breadcrumbs.one"}),to:"/reporting"},{title:n.formatMessage({id:"pages.reporting.breadcrumbs.two"}),to:"/reporting"}],[n]);(0,g.useEffect)(()=>{if(!d)if(f9.includes(r.id)){const e=s?.getSubscribedDashboards.filter(e=>!y9.map(e=>{let{id:n}=e;return n}).includes(e.id));f({getSubscribedDashboards:e})}else f(s)},[d,s,r]);const h=p?.getSubscribedDashboards.filter(e=>e?.folderId===a).filter(e=>{const n=!!i.showLearn&&"LEARN"===e.area,t=!!i.showComply&&"COMPLY"===e.area,a=!!i.showData&&"DATA"===e.area;return n||a||t}).sort((e,n)=>e.name.toLowerCase()>n.name.toLowerCase()?1:e.name.toLowerCase()<n.name.toLowerCase()?-1:0);return(0,fe.jsxs)(p9,{name:"ReportingReports",children:[(0,fe.jsx)(xV,{name:"ReportingReports",title:n.formatMessage({id:"pages.reporting.heading"}),breadcrumbs:y,icon:"chart-line",iconColor:"quaternary"}),o&&(0,fe.jsx)(m9,{name:"ComplyContainer_Access_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Reporting",body:"Currently Reporting is not included in your subscription, if you’d like access to Reporting please contact Rio AI Ltd or get in touch with your Business Admin."}),!o&&d&&(0,fe.jsx)(Rc,{name:"ReportingReports__Loading"}),!o&&c&&(0,fe.jsx)(ie.Kw,{error:c,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"ReportingReports__error",icon:a,title:n,body:t,retry:u})}}),!o&&s&&(0,fe.jsx)(u9,{dashboards:h,accountId:t,subjectFilters:i,filterOnClick:e=>{const n={...i};"Learn"===e?n.showLearn=!i.showLearn:"Comply"===e?n.showComply=!i.showComply:"Data"===e&&(n.showData=!i.showData),l({...n})}})]})}),h9=()=>{const e=Je(),{data:n,loading:t,error:a}=(0,x.IT)(vT,{variables:{accountId:e},notifyOnNetworkStatusChange:!0}),[i,l]=(0,g.useState)(n);return(0,g.useEffect)(()=>{if(!t){const t=[{id:"0f7db846-67a6-4d3e-807d-67c3ef5f4f30",name:"Patron Capital - Carbon Report"},{id:"65236e34-ca0d-42e1-a8f1-b7c71ca08555",name:"Patron Capital - Dalton Park"},{id:"1a8ee51b-e5c9-483a-85d6-86e9117e0aa1",name:"Patron Capital - MK Gateway"},{id:"3e75ba9e-3c96-4396-b1b7-ba4f64680907",name:"Patron Capital - GRESB"}];if(["b1f7fc4e-714d-4271-bb3f-d736dff38a14","608877fc-83e7-4487-b5a4-493e0ba05903"].includes(e)){const e=n?.getSubscribedDashboards.filter(e=>!t.map(e=>{let{id:n}=e;return n}).includes(e.id));l({getSubscribedDashboards:e})}else l(n)}},[t,n,e]),[i,t,a]};function x9(){return Yl("ESTATES_DASHBOARD","4836705a-96db-464f-97e7-6af6e775c5a6")}const T9=(0,ni.Ay)("div")`
  width: 100%;
  min-width: 250px;
  max-width: 260px;
  height: max-content;
  overflow: auto;
  margin-right: 24px;
  flex-shrink: 0;
`,b9=e=>{let{dashboards:n}=e;const t=(0,m.zy)(),{pathname:a}=t,i=x9(),l=(0,g.useMemo)(()=>{const e=[...n].sort(Jn).filter(e=>"Quicksight Preloader"!==e.name).map(e=>{const n=encodeURIComponent(e.name);return{to:`/v2/reporting/${n}/${e.id}?providerDashboardId=${e.providerDashboardId}`,item:e.name,isActive:a.includes(`/${n}/`),onClick:()=>window.scrollTo({top:0})}}),t={to:"/v2/reporting/overview",item:"Overview",isActive:"/v2/reporting/overview"===a,onClick:()=>window.scrollTo({top:0})},l=[];return i&&l.push({to:"/v2/reporting/estates",item:"Estates",isActive:"/v2/reporting/estates"===a,onClick:()=>window.scrollTo({top:0})}),[t,...e,...l]},[n,a,i]);return(0,fe.jsx)(T9,{children:(0,fe.jsx)(f.NavigationDrawer,{items:l})})},v9=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  overflow: hidden;
`,C9=(0,f.styled)("div")`
  display: flex;
  overflow-x: auto;
  gap: 24px;
  margin-bottom: 48px;
  width: 100%;
`,k9=[{headerName:"Scope",field:"scope"},{headerName:"Source",field:"source"},{headerName:"Gross carbon emissions",field:"gross",aggFunc:"sum",valueFormatter:e=>{let{value:n}=e;return Ba(n||0)}},{headerName:"Net carbon emissions",field:"net",aggFunc:"sum",valueFormatter:e=>{let{value:n}=e;return Ba(n||0)}}],S9=(0,f.styled)(f.AgGrid)`
  flex: 1;
  height: 276px;

  && .ag-layout-normal {
    min-height: 100px;
  }

  & .ag-root-wrapper {
    border-radius: 16px;
    border: ${e=>{let{tableBorder:n,theme:t}=e;return n?`1px solid ${t.sys.color.outlineVariant}`:"none"}};
  }

  & .ag-row-footer > div:first-child:after {
    content: 'Total';
    font-family: ${e=>e.theme.sys.typescale.label.medium.family};
    font-size: ${e=>e.theme.sys.typescale.label.medium.size}px;
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
    font-weight: 600;
  }
`,N9=e=>{let{emissions:n}=e;const t=(0,g.useRef)(),a=(0,g.useCallback)(e=>{t.current=e.api},[]),i=(0,g.useMemo)(()=>({onGridReady:a,rowData:n,columnDefs:k9,defaultColDef:{flex:1,minWidth:150},grandTotalRow:"bottom",groupIncludeTotalFooter:!0}),[n,a]);return(0,fe.jsx)(S9,{tableBorder:!1,gridKey:"emissionsByScopeSourceGridV2",gridOptions:i})};var A9=t(31883);const R9={"Scope 1":"governance","Scope 2":"economic","Scope 3":"environmental",Electricity:"electricity",Water:"water",Waste:"waste","Natural Gas":"gas",Transport:"transport",Gas:"gas",HeatSteam:"heatAndSteam",Fuel:"fuel","Home working":"workFromHome","Refrigerants and Other Gases":"refrigerants",Materials:"materials","Hotel stays":"hotelStays"},D9=e=>R9[e],L9={HeatSteam:"Heat and Steam"},I9=e=>L9[e]||e,j9=e=>xn()(e).map(e=>({value:e.absoluteValue,color:D9(e.id),name:I9(e.id)})).orderBy(["name"]).value(),w9=e=>xn()(e).orderBy(["dimension"]).map(e=>({...e,dimension:I9(e.dimension)})).value(),O9=e=>{const n=e.reduce((e,n)=>{const t=e[n.dimension];return t?{...e,[n.dimension]:{...t,value:t.value+(n.value||0)}}:{...e,[n.dimension]:{color:D9(n.dimension)||"primary",value:n.value||0,name:I9(n.dimension)}}},{});return Object.values(n)},E9=(e,n)=>{if(n)return n;switch(e){case gn.RA.Locations:return"Locations";case gn.RA.Tags:return"Tags";case gn.RA.Departments:return"Departments";case gn.RA.Countries:return"Countries";case gn.RA.Regions:return"Regions";case gn.RA.Meters:return"Meters";case gn.RA.ActualOrEstimated:return"Accuracy";case gn.RA.LocationOccupation:return"Location occupation";case gn.RA.GhgScopes:case gn.RA.Scopes:return"Scope";case gn.RA.Sources:return"Source";case gn.RA.Units:return"Units";case gn.RA.FromDate:return"From";case gn.RA.ToDate:return"To";case gn.RA.LocationCustomAttributes:return"Location custom attributes";case gn.RA.Year_1:return"Year 1";case gn.RA.Year_2:return"Year 2";case gn.RA.Period_1:return"Period 1";case gn.RA.Period_2:return"Period 2";case gn.RA.StandaloneYear:return"Year";case gn.RA.WasteStreams:return"Waste streams";case gn.RA.WasteContractors:return"Waste contractors";case gn.RA.WasteCarriers:return"Waste carriers";case gn.RA.ProjectPhases:return"Project phases";case gn.RA.FuelTypes:return"Fuel types";case gn.RA.TransportTypes:return"Transport types";case gn.RA.Materials:return"Materials";case gn.RA.BusinessUnit:return"Business unit";case gn.RA.WaterInOut:return"Water in/out";case gn.RA.UploadReferences:return"Upload references";case gn.RA.PurposesOfTravel:return"Purpose of travel";default:return}},_9=e=>{switch(e){case gn.RA.FromDate:return"from";case gn.RA.ToDate:return"to";case gn.RA.Locations:return"locations";case gn.RA.Tags:return"tags";case gn.RA.Departments:return"departments";case gn.RA.Countries:return"countries";case gn.RA.Regions:return"regions";case gn.RA.Meters:return"meters";case gn.RA.ActualOrEstimated:return"actualOrEstimated";case gn.RA.LocationOccupation:return"locationOccupation";case gn.RA.Scopes:case gn.RA.GhgScopes:return"scopes";case gn.RA.Sources:return"sources";case gn.RA.Units:return"units";case gn.RA.LocationCustomAttributes:return"locationCustomAttributes";case gn.RA.Year_1:return"year1";case gn.RA.Year_2:return"year2";case gn.RA.Period_1:return"period1";case gn.RA.Period_2:return"period2";case gn.RA.StandaloneYear:return"standaloneYear";case gn.RA.WasteStreams:return"wasteStreams";case gn.RA.WasteContractors:return"wasteContractors";case gn.RA.WasteCarriers:return"wasteCarriers";case gn.RA.ProjectPhases:return"projectPhases";case gn.RA.FuelTypes:return"fuelTypes";case gn.RA.TransportTypes:return"transportTypes";case gn.RA.Materials:return"materials";case gn.RA.BusinessUnit:return"businessUnit";case gn.RA.WaterInOut:return"waterInOut";case gn.RA.UploadReferences:return"uploadReferences";case gn.RA.PurposesOfTravel:return"purposesOfTravel";default:return}},F9=e=>e.includes(pt.YearToCompareType.CALENDAR)?pt.YearToCompareType.CALENDAR:pt.YearToCompareType.FINANCIAL,P9=e=>Number(e.split(" ")[0]),B9=["Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Jan","Feb","Mar"],U9=e=>{let{filter:{type:n,label:t}}=e;const{filters:a,setFilter:i}=iee(),l=(0,g.useMemo)(()=>{const e=n===gn.RA.Year_1,t=bn()().year(),a=e?5:6;return[...Array.from({length:a},(e,n)=>`${t-5+n} ${pt.YearToCompareType.CALENDAR} Year`),...Array.from({length:a},(e,n)=>`${t-5+n} ${pt.YearToCompareType.FINANCIAL} Year`)].map(e=>({value:e,label:e})).sort((e,n)=>e.label.includes(pt.YearToCompareType.CALENDAR)||n.label.includes(pt.YearToCompareType.CALENDAR)?-1:1).sort((e,n)=>{const t=P9(e.label);return P9(n.label)-t})},[n]),r=(0,g.useMemo)(()=>n===gn.RA.Year_1?a.year1:a.year2,[n,a.year1,a.year2]),o=(0,g.useCallback)((e,n)=>{if(a.year1&&a.year2)if("year1"===e){const e=P9(n),t=P9(a.year2),l=F9(n),r=F9(a.year2);e&&t&&(e>=t||l!==r)&&i("year2",`${e>=t?e+1:t} ${l!==r?l:r} Year`)}else{const e=P9(a.year1),t=P9(n),l=F9(a.year1),r=F9(n);e&&t&&(e>=t||l!==r)&&i("year1",`${e>=t?t-1:e} ${l!==r?r:l} Year`)}},[a.year1,a.year2,i]),s=(0,g.useCallback)(e=>{n===gn.RA.Year_1?(i("year1",e.value),o("year1",e.value)):(i("year2",e.value),o("year2",e.value))},[n,i,o]);return(0,g.useEffect)(()=>{o("year1",a.year1)},[a?.year1]),(0,g.useEffect)(()=>{o("year2",a.year2)},[a?.year2]),(0,fe.jsx)(f.Select,{disableSorting:!0,label:E9(n,t),value:r,options:l,onChange:s})},$9=(e,n)=>{if(e===dee.Year){const e=bn()().year()-("period1"===n?2:1);return`${bn()().year(e).startOf("year").format("YYYY-MM-DD")} - ${bn()().year(e).endOf("year").format("YYYY-MM-DD")}`}if(e===dee.Quarter){const e=bn()().year()-("period1"===n?1:0),t=bn()().quarter();return`${bn()().year(e).quarter(t).startOf("quarter").format("YYYY-MM-DD")} - ${bn()().year(e).quarter(t).endOf("quarter").format("YYYY-MM-DD")}`}if(e===dee.Month){const e=bn()().year()-("period1"===n?1:0),t=bn()().month();return`${bn()().year(e).month(t).startOf("month").format("YYYY-MM-DD")} - ${bn()().year(e).month(t).endOf("month").format("YYYY-MM-DD")}`}if(e===dee.HalfYear){const e=bn()().year()-("period1"===n?1:0),t=bn()().month()<6?1:2;return`${bn()().year(e).month(6*(t-1)).startOf("month").format("YYYY-MM-DD")} - ${bn()().year(e).month(6*(t-1)+5).endOf("month").format("YYYY-MM-DD")}`}return null},M9=(e,n)=>{const t=bn()().year();return e===dee.Year?Array.from({length:n},(e,n)=>{const a=t-5+n;return{value:`${bn()().year(a).startOf("year").format("YYYY-MM-DD")} - ${bn()().year(a).endOf("year").format("YYYY-MM-DD")}`,label:`${a}`}}):e===dee.Quarter?Array.from({length:n},(e,n)=>{const a=t-5+n,i=Array.from({length:4},(e,n)=>{const t=n+1;return{value:`${bn()().year(a).quarter(t).startOf("quarter").format("YYYY-MM-DD")} - ${bn()().year(a).quarter(t).endOf("quarter").format("YYYY-MM-DD")}`,label:`${a} Q${t}`}});return i}).flat():e===dee.Month?Array.from({length:n},(e,n)=>{const a=t-5+n,i=Array.from({length:12},(e,n)=>{const t=n;return{value:`${bn()().year(a).month(t).startOf("month").format("YYYY-MM-DD")} - ${bn()().year(a).month(t).endOf("month").format("YYYY-MM-DD")}`,label:`${a} ${bn()().month(t).format("MMM")}`}});return i}).flat():e===dee.HalfYear?Array.from({length:n},(e,n)=>{const a=t-5+n,i=Array.from({length:2},(e,n)=>{const t=n+1;return{value:`${bn()().year(a).month(6*(t-1)).startOf("month").format("YYYY-MM-DD")} - ${bn()().year(a).month(6*(t-1)+5).endOf("month").format("YYYY-MM-DD")}`,label:`${a} H${t}`}});return i}).flat():[]},V9=e=>{let{filter:{type:n,label:t}}=e;const{setFilter:a,periodGranularity:i,filters:l}=iee(),r=(0,g.useMemo)(()=>{const e=n===gn.RA.Period_1;return i?M9(i,e?5:6):[]},[n,i]),o=(0,g.useMemo)(()=>i?M9(i,6):[],[i]),s=(0,g.useCallback)(()=>{i&&(a("period1",$9(i,"period1")),a("period2",$9(i,"period2")))},[i,a]),d=(0,g.useCallback)(e=>{n===gn.RA.Period_1?a("period1",e.value):a("period2",e.value)},[n,a]),c=(0,g.useMemo)(()=>n===gn.RA.Period_1?l.period1:l.period2,[n,l.period1,l.period2]),u=(0,g.useCallback)(e=>{if(!l.period1||!l.period2)return;const n=o.findIndex(e=>e.value===l.period1),t=o.findIndex(e=>e.value===l.period2);if(!(-1===n||-1===t||n<t))if("period1"===e){const e=n+1;e<o.length?a("period2",o[e].value):(a("period1",l.period2),a("period2",l.period1))}else{const e=t-1;e>=0?a("period1",o[e].value):(a("period1",l.period2),a("period2",l.period1))}},[o,l.period1,l.period2,a]);return(0,g.useEffect)(()=>{u("period1")},[l.period1,u]),(0,g.useEffect)(()=>{u("period2")},[l.period2,u]),(0,g.useEffect)(()=>{s()},[i]),(0,fe.jsx)(f.Select,{disableSorting:!0,label:E9(n,t),value:c,options:r,onChange:d})},G9=()=>{const{periodGranularity:e,setPeriodGranularity:n}=iee();return(0,fe.jsx)(f.Select,{label:"Granularity",value:e,options:Object.values(dee).map(e=>({label:(0,hn.capitalize)(e.replace("-"," ")),value:e})),onChange:e=>n(e.value)})};var z9=t(5255),W9=t(52076);const q9="print-dashboard-sheet";function J9(e){let{name:n,onError:t,onSuccess:a}=e;setTimeout(async()=>{try{const e=document.getElementById(q9);if(!e)throw new Error("Dashboard sheet element not found");const t=await(0,W9.Ay)(e,{scale:2}),i=t.toDataURL("image/png"),l=444.46,r=l/t.width*t.height,o=new z9.Ay("p","px",[l,r],!0),s=o.internal.pageSize.getWidth(),d=8,c=s-2*d,u=t.height*c/t.width;o.addImage(i,"PNG",d,d,c,u),o.save(`${n}.pdf`),a?.()}catch(e){t?.(e)}},1500)}const Y9={from:null,to:null,year1:null,year2:null,period1:null,period2:null,standaloneYear:null,locations:null,tags:null,departments:null,countries:null,regions:null,meters:null,actualOrEstimated:null,locationOccupation:null,scopes:null,sources:null,units:null,wasteStreams:null,wasteContractors:null,wasteCarriers:null,projectPhases:null,businessUnit:null,waterInOut:null,uploadReferences:null,purposesOfTravel:null};let H9=function(e){return e.WTT="WTT",e.TD="TD",e}({});const K9=(e,n,t)=>`dashboard-filters-${e}-${n}-${t}`,Q9=(e,n,t)=>{const a=K9(e,n,t);localStorage.removeItem(a)},Z9=(e,n,t)=>{try{const a=K9(e,n,t),i=localStorage.getItem(a);return i?JSON.parse(i):null}catch(a){return console.warn("Failed to retrieve cached filters:",a),Q9(e,n,t),null}},X9=(e,n,t)=>`dashboard-unit-${e}-${n}-${t}`,eee=(e,n,t)=>`dashboard-with-vat-${e}-${n}-${t}`,nee=(e,n,t)=>`dashboard-carbon-components-${e}-${n}-${t}`,tee=(e,n,t)=>`dashboard-period-granularity-${e}-${n}-${t}`,aee=(0,g.createContext)({dashboardId:"",dashboardName:"",activeSheet:null,setActiveSheetByIndex:()=>{},setActiveSheetByTitle:()=>{},setFilters:()=>{},setFilter:()=>{},partitionFunctionForYearComparison:null,resetFilters:()=>{},selectedUnit:"",setSelectedUnit:()=>{},withVat:!1,setWithVat:()=>{},selectedCarbonComponents:null,setSelectedCarbonComponents:()=>{},areFiltersOpen:!0,setAreFiltersOpen:()=>{},isAnyFilterActive:!1,filters:Y9,queryVariablesFilters:Y9,activeFilters:{},pdfExportFilters:{},periodGranularity:null,setPeriodGranularity:()=>{},downloadPdf:()=>{},isExportingPdf:!1,doesSheetHaveMultipleUnits:!1,doesSheetHaveVatCalculation:!1,doesSheetHavePeriodFilters:!1,doesSheetHaveYearComparisonFilters:!1,doesSheetHaveCarbonComponents:!1}),iee=()=>(0,g.useContext)(aee),lee=e=>{const{isExportingPdf:n}=iee();return n&&e.current?e.current.getBoundingClientRect().width-120:void 0},ree=(e,n)=>e||(n===gn.WP.Today?bn()().format(yt):n===gn.WP.StartOfCurrentMonth?bn()().startOf("month").format(yt):n===gn.WP.EndOfCurrentMonth?bn()().endOf("month").format(yt):n===gn.WP.StartOfCurrentYear?bn()().startOf("year").format(yt):n===gn.WP.EndOfCurrentYear?bn()().endOf("year").format(yt):n===gn.WP.StartOfCurrentQuarter?bn()().startOf("quarter").format(yt):n===gn.WP.EndOfCurrentQuarter?bn()().endOf("quarter").format(yt):n===gn.WP.StartOfLastYear?bn()().subtract(1,"year").startOf("year").format(yt):n===gn.WP.EndOfLastYear?bn()().subtract(1,"year").endOf("year").format(yt):n===gn.WP.StartOfLastQuarter?bn()().subtract(1,"quarter").startOf("quarter").format(yt):n===gn.WP.EndOfLastQuarter?bn()().subtract(1,"quarter").endOf("quarter").format(yt):n===gn.WP.StartOfLastMonth?bn()().subtract(1,"month").startOf("month").format(yt):n===gn.WP.EndOfLastMonth?bn()().subtract(1,"month").endOf("month").format(yt):""),oee=e=>{const n={...Y9};return e.some(e=>e.type===gn.RA.GhgScopes)&&(n.scopes=["1","2"]),e.forEach(e=>{switch(e.type){case gn.RA.FromDate:n.from=ree(e.defaultValue,e.relativeDateDefault||gn.WP.StartOfCurrentMonth);break;case gn.RA.ToDate:n.to=ree(e.defaultValue,e.relativeDateDefault||gn.WP.EndOfCurrentMonth);break;case gn.RA.Year_1:n.year1=e.defaultValue||`${bn()().year()-2} ${pt.YearToCompareType.CALENDAR} Year`;break;case gn.RA.Year_2:n.year2=e.defaultValue||`${bn()().year()-1} ${pt.YearToCompareType.CALENDAR} Year`;break;case gn.RA.Period_1:n.period1=$9(dee.Quarter,"period1");break;case gn.RA.Period_2:n.period2=$9(dee.Quarter,"period2");break;case gn.RA.StandaloneYear:n.standaloneYear=e.defaultValue||"2024"}}),n},see=["from","to","period1","period2","year1","year2","standaloneYear"];let dee=function(e){return e.Year="year",e.HalfYear="half-year",e.Quarter="quarter",e.Month="month",e}({});const cee=e=>{let{dashboard:n,children:t}=e;const a=Je(),[i,l]=(0,g.useState)(n?.sheets?.[0]?.title||""),[r,o]=(0,g.useState)(!0),[s,d]=(0,g.useState)(!1),[c,u]=(0,g.useState)(null),[p,m]=(0,g.useState)(""),[f,y]=(0,g.useState)(null),[h,x]=(0,g.useState)(!1),{showNotification:T}=tn(),[b,v]=(0,g.useState)(()=>{const e=n?.sheets?.[0];if(!n||!e?.filters||!a)return Y9;return Z9(a,n.id,e.title)||oee(e.filters)}),C=(0,g.useCallback)(e=>{const t=e?.filters,i=e?.units?.[0]||"",r=t?.some(e=>e.type===gn.RA.Period_1||e.type===gn.RA.Period_2);if(!(t&&e&&a&&n?.id))return;l(e.title);const o=Z9(a,n.id,e.title);v(o||oee(t));const s=((e,n,t)=>{const a=X9(e,n,t);return localStorage.getItem(a)??null})(a,n.id,e.title);m(s||i);const d=((e,n,t)=>{const a=eee(e,n,t),i=localStorage.getItem(a);return i?JSON.parse(i):null})(a,n.id,e.title);x(d||(e.withVat??!1));const c=((e,n,t)=>{const a=nee(e,n,t),i=localStorage.getItem(a);return i?JSON.parse(i):null})(a,n.id,e.title);y(c);const p=((e,n,t)=>{const a=tee(e,n,t),i=localStorage.getItem(a);return i?JSON.parse(i):null})(a,n.id,e.title);u(p||(r?dee.Month:null))},[n,a]),k=(0,g.useCallback)(e=>{const t=n?.sheets?.[e];t&&C(t)},[C,n?.sheets]),S=(0,g.useCallback)(e=>{const t=n?.sheets?.find(n=>n.title===e);t&&C(t)},[C,n?.sheets]),N=(0,g.useCallback)(e=>{m(e),n?.id&&((e,n,t,a)=>{const i=X9(e,n,t);localStorage.setItem(i,a)})(a,n.id,i,e)},[a,n?.id,i]),A=(0,g.useCallback)(e=>{const t="true"===e;x(t),n?.id&&((e,n,t,a)=>{const i=eee(e,n,t);localStorage.setItem(i,JSON.stringify(a))})(a,n.id,i,t)},[a,n?.id,i]),R=(0,g.useCallback)(e=>{y(e),n?.id&&((e,n,t,a)=>{const i=nee(e,n,t);localStorage.setItem(i,JSON.stringify(a))})(a,n.id,i,e)},[a,n?.id,i]),D=(0,g.useCallback)(e=>{u(e),n?.id&&((e,n,t,a)=>{const i=tee(e,n,t);localStorage.setItem(i,JSON.stringify(a))})(a,n.id,i,e)},[a,n?.id,i]),L=(0,g.useMemo)(()=>{const e=n?.sheets?.find(e=>e.title===i)?.filters;return e?oee(e):{...Y9}},[i,n]),I=(0,g.useMemo)(()=>Object.entries(b).reduce((e,n)=>{let[t,a]=n;const i=Array.isArray(a)&&0===a.length,l=null===L[t];return i&&l||(0,hn.isEqual)(a,L[t])||(e[t]=a),e},{}),[b,L]),j=(0,g.useMemo)(()=>Object.keys(I).length>0,[I]),w=(0,g.useCallback)((e,n)=>{v(t=>({...t,[e]:n}))},[]),O=(0,g.useCallback)(e=>{const t=!e||0===e.length;if(i&&n?.id&&a){if(c&&D(dee.Quarter),t)return Q9(a,n?.id,i),void v(L);((e,n,t,a)=>{const i=K9(e,n,t),l=Z9(e,n,t);l&&(a.forEach(e=>{delete l[e]}),localStorage.setItem(i,JSON.stringify(l)))})(a,n?.id,i,e),(e?.includes("period1")||e?.includes("period2"))&&D(dee.Quarter),v(n=>({...n,...e.reduce((e,n)=>(e[n]=L[n],e),{})}))}},[L,i,n?.id,a,c,D]),E=(0,g.useMemo)(()=>{const e=n?.sheets?.findIndex(e=>e.title===i)??-1,t=n?.sheets?.[e];return t&&-1!==e?{sheet:t,index:e}:null},[i,n]),_=(0,g.useMemo)(()=>{const e=new Set((E?.sheet?.filters??[]).map(e=>_9(e.type)).filter(e=>void 0!==e)),n={...I};for(const t of see)if(e.has(t)){const e=b[t];(Array.isArray(e)?e.length>0:null!=e&&""!==e)&&(n[t]=e)}return n},[I,E?.sheet?.filters,b]),F=(0,g.useMemo)(()=>Object.fromEntries(Object.entries(b).map(e=>{let[n,t]=e;return[n,Array.isArray(t)&&0===t.length?null:t]})),[b]),P=(0,g.useMemo)(()=>b.year1&&b.year2?F9(b.year1)===pt.YearToCompareType.CALENDAR?gn.v7.Year:gn.v7.FinancialYear:null,[b.year1,b.year2]),B=(0,g.useCallback)(()=>{d(!0),T("Generating PDF, please wait until it's ready","success"),J9({name:`${n?.name} - ${E?.sheet.title}`,onSuccess:()=>d(!1),onError:e=>{T(`Error downloading PDF: ${e.message}`,"danger"),d(!1)}})},[T,n?.name,E?.sheet.title]);(0,g.useLayoutEffect)(()=>{if(n?.id&&a){const e=n?.sheets?.[0]?.title||"";if(e){S(e);const t=Z9(a,n.id,e);b.from||t||v(oee(n.sheets?.[0]?.filters||[])),!b.from&&t&&v(t)}}},[n?.id,a]),(0,g.useLayoutEffect)(()=>{i&&n?.id&&a&&(b.from&&b.to||b.year1&&b.year2)&&((e,n,t,a)=>{const i=K9(e,n,t);localStorage.setItem(i,JSON.stringify(a))})(a,n.id,i,b)},[b,i,n?.id,a]);const U=(0,g.useMemo)(()=>(E?.sheet.units&&E?.sheet.units.length>1)??!1,[E]),$=(0,g.useMemo)(()=>E?.sheet.withVat??!1,[E]),M=(0,g.useMemo)(()=>E?.sheet.filters.some(e=>e.type===gn.RA.Period_1||e.type===gn.RA.Period_2)??!1,[E]),V=(0,g.useMemo)(()=>E?.sheet.filters.some(e=>e.type===gn.RA.Year_1||e.type===gn.RA.Year_2)??!1,[E]),G=(0,g.useMemo)(()=>E?.sheet.withCarbonComponents??!1,[E]);return(0,fe.jsx)(aee.Provider,{value:{dashboardId:n?.id||"",dashboardName:n?.name||"",activeSheet:E,setActiveSheetByIndex:k,setActiveSheetByTitle:S,filters:b,queryVariablesFilters:F,activeFilters:I,pdfExportFilters:_,partitionFunctionForYearComparison:P,setFilters:v,setFilter:w,selectedUnit:p,setSelectedUnit:N,withVat:h,setWithVat:A,selectedCarbonComponents:f,setSelectedCarbonComponents:R,isAnyFilterActive:j,resetFilters:O,areFiltersOpen:r,setAreFiltersOpen:o,downloadPdf:B,isExportingPdf:s,periodGranularity:c,setPeriodGranularity:D,doesSheetHaveMultipleUnits:U,doesSheetHaveVatCalculation:$,doesSheetHavePeriodFilters:M,doesSheetHaveYearComparisonFilters:V,doesSheetHaveCarbonComponents:G},children:t})},uee=e=>null==e||""===e?.trim?.()||"null"===e?.trim?.()||"undefined"===e?.trim?.(),pee=(e,n)=>null!==e&&!e.includes(n),mee=(e,n)=>{const t="number"==typeof e?String(e):e;return uee(t)?n:t},fee=(e,n)=>{let t=0;return t="number"==typeof e?e:Number(mee(e,"0")),Number(t)?e:Number(mee(n,"0"))},yee=e=>{let{co2eValue:n,wttValue:t,tdValue:a,selectedCarbonComponents:i}=e,l=hee(n);const r=pee(i,H9.WTT),o=pee(i,H9.TD);return r&&(l-=hee(t)),o&&(l-=hee(a)),l},gee=function(e){let n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||Number.isNaN(e))return 0;if("string"==typeof e){if("null"===e||"undefined"===e||""===e)return 0;n=Number(e)}else n=e;if(isNaN(n))return 0;const i=Number.isInteger(n)?n.toString():parseFloat(n.toFixed(t)).toString();if(a){const e=i.split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}return Number(i)},hee=(e,n)=>{let t=0;return t="number"==typeof e?e:Number(gee(Number(mee(e,"0")),"t"===n?.originalUnit?4:2)),"t"===n?.originalUnit&&"kg"===n?.targetUnit&&(t*=1e3),"kg"===n?.originalUnit&&"t"===n?.targetUnit&&(t/=1e3),"km"===n?.originalUnit&&"mi"===n?.targetUnit&&(t*=.621371),"mi"===n?.originalUnit&&"km"===n?.targetUnit&&(t/=.621371),"L"===n?.originalUnit&&"m3"===n?.targetUnit&&(t/=1e3),"m3"===n?.originalUnit&&"L"===n?.targetUnit&&(t*=1e3),n?.withVat&&(t*=1.2),n?.percentageOverTotal&&(t=n.percentageOverTotal?Number(t)/n.percentageOverTotal*100:0,t=Number(t.toFixed(2))),n?.percentageOverTotal&&(t=n.percentageOverTotal?Number(t)/n.percentageOverTotal*100:0,t=Number(t.toFixed(2))),t},xee=e=>mee(e,"N/A"),Tee="MMM YYYY",bee=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tee;return bn()(e,"YYYY/MM").format(n)},vee=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tee;return bn()(e?.Date,t).toDate().getTime()-bn()(n?.Date,t).toDate().getTime()},Cee=new Intl.NumberFormat("en-GB",{notation:"compact",maximumFractionDigits:1}),kee=(e,n)=>n?.percentageOverTotal?`${gee(Number(e)/n.percentageOverTotal*100,2,!0)}${n.suppressPercentageSign?"":"%"}`:n?.compact&&Math.abs(Number(e))>=1e6?Cee.format(Number(e)):gee(e,"t"===n?.selectedUnit?4:2,!0),See=new Intl.NumberFormat([],{notation:"compact"}),Nee=e=>Number.isNaN(Number(e))?0:See.format(Number(e)),Aee=e=>e?"(VAT included)":"(VAT excluded)",Ree=e=>{if(!e||e.length===Object.values(H9).length)return"";let n=" ";return pee(e,H9.WTT)&&(n+="- WTT"),pee(e,H9.TD)&&(n+="- T&D"),n},Dee=e=>xn().capitalize(xn().startCase(e).toLowerCase());function Lee(e,n){if(!e)return[];const t=Array.isArray(e)?e[0]:e;return null==t||"object"!=typeof t?[]:Object.keys(t).filter(e=>!n?.excludeKeys?.includes(e)).map(e=>{let t=e;return n?.removeSuffixFromLabels&&t.endsWith(n?.removeSuffixFromLabels)&&(t=t.slice(0,-n?.removeSuffixFromLabels.length)),n?.removePrefixFromLabels&&t.startsWith(n?.removePrefixFromLabels)&&(t=t.slice(n?.removePrefixFromLabels.length)),{valueKey:e,labelKey:t}})}function Iee(e,n,t,a,i){if(!e)return null;const l=new Map,r=new Set;for(const i of e){const e=n.map(e=>i[e]).join("||");if(!l.has(e)){const t={};for(const e of n)t[e]=i[e],r.add(e);l.set(e,t)}const o=l.get(e),s=i[t],d=i[a],c=`${t}${s}${a}`;r.add(c),"number"==typeof o[c]&&"number"==typeof d?o[c]=o[c]+d:o[c]=d;for(const[e,l]of Object.entries(i))n.includes(e)||e===t||e===a||"number"!=typeof l||(r.add(e),o[e]=("number"==typeof o[e]?o[e]:0)+l)}const o=Array.from(r);return Array.from(l.values()).map(e=>{for(const n of o)n in e||(e[n]=(e[n],0));if(i){let t=0;for(const[a,i]of Object.entries(e))n.includes(a)||"number"!=typeof i||(t+=i);e[i]=t,r.add(i)}return e})}const jee=e=>e?e.dataPoints.map(e=>e.reduce((e,n)=>(e[n.dimension]=n.value,e),{})):null;function wee(e){if("number"==typeof e)return Number.isFinite(e)?e:0;if("string"==typeof e){const n=Number(e);return Number.isFinite(n)?n:0}return 0}function Oee(e){return null==e?"":String(e)}const Eee=e=>"Act"===e||"ACT"===e?"Actual":"Est"===e||"EST"===e?"Estimated":"N/A",_ee=(0,f.styled)(f.SimplePieDonutChart)`
  & {
    width: 100%;
    height: 100%;

    svg {
      width: 100% !important;
      height: 100% !important;
    }
  }

  & div[data-highcharts-chart] {
    overflow: visible !important;
  }

  & > div:first-child {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: visible !important;

    & > div:first-child {
      display: flex;
      justify-content: center;
      justify-content: center;
      height: 100% !important;
      overflow: visible !important;
    }
  }

  ${e=>{let{theme:n}=e;return n.breakpoints.down("md")}} {
    & {
      position: static;
      flex-direction: column;
      gap: 24px;
    }
  }
`;function Fee(e){let{scopeBreakdown:n,title:t,border:a}=e;const i=(0,f.useTheme)(),l=(0,A9.A)(i.breakpoints.down("md")),r=(0,A9.A)(i.breakpoints.down("lg")),o=(0,g.useMemo)(()=>({chart:{width:l?320:r?480:600,height:l?140:r?160:212}}),[l,r]),s=(0,g.useMemo)(()=>xn()(n.series).map(e=>({value:e.absoluteValue,name:e.id,color:D9(e.id)})).orderBy(["name"],["asc"]).value(),[n]);return(0,fe.jsx)(_ee,{title:t,size:f.ChartSize.Fluid,data:s,unit:"tCO2e",customOptions:o,border:a})}const Pee=S.J1`
  query getReportingOverview(
    $accountId: ID!
    $from: AWSDate!
    $to: AWSDate!
    $baselineFrom: AWSDate!
    $baselineTo: AWSDate!
    $timeGranularity: TimeGranularity!
  ) {
    getTotalEmissions(accountId: $accountId, from: $from, to: $to)

    baselineTotalEmissions: getTotalEmissions(accountId: $accountId, from: $baselineFrom, to: $baselineTo)

    getEmissionsPercentageBreakdownByScope(accountId: $accountId, from: $from, to: $to) {
      series {
        id
        relativeValue
        absoluteValue
      }
      drilldown {
        id
        parentId
        relativeValue
        absoluteValue
      }
    }
    getEmissionsBySource(accountId: $accountId, timeGranularity: $timeGranularity, from: $from, to: $to) {
      dimension
      time
      value
    }
    getEmissionsByScopeAndSource(accountId: $accountId, from: $from, to: $to) {
      totalNet
      totalGross
      emissions {
        scope
        source
        gross
        net
      }
    }
    getEmissionsNetAndGross(accountId: $accountId, timeGranularity: $timeGranularity, from: $from, to: $to) {
      dimension
      time
      value
    }
  }
`;function Bee(){return[bn()().subtract(1,"year").startOf("month"),bn()().add(-1,"month").endOf("month")]}const[Uee,$ee]=Bee(),Mee=Uee.clone().add(-1,"year"),Vee=$ee.clone().add(-1,"year"),Gee=Uee.toDate(),zee=$ee.toDate();function Wee(){const e=Je(),{data:n,loading:t}=(0,x.IT)(Pee,{variables:{accountId:e,timeGranularity:gn.iG.Month,to:$ee.format("YYYY-MM-DD"),from:Uee.format("YYYY-MM-DD"),baselineFrom:Mee.format("YYYY-MM-DD"),baselineTo:Vee.format("YYYY-MM-DD")}});return t||!n?null:(0,fe.jsxs)(v9,{id:q9,children:[(0,fe.jsxs)(C9,{children:[(0,fe.jsx)(f.KpiChart,{slot:!0,title:"Total carbon (tCO2e)",unit:"tCO2e",round:0,metric:{startDate:Gee,endDate:zee,value:n.getTotalEmissions},baseline:{value:n.baselineTotalEmissions,startDate:Mee.toDate(),endDate:Vee.toDate()},size:f.ChartSize.STall}),(0,fe.jsx)(f.SimplePieDonutChart,{title:"Emissions by Scope",border:!0,unit:"tCO2e",size:f.ChartSize.Md,startDate:Gee,endDate:zee,data:j9(n.getEmissionsPercentageBreakdownByScope.series)})]}),(0,fe.jsx)(C9,{children:(0,fe.jsx)(f.StackedChart,{title:"Emissions by Source",data:w9(n.getEmissionsBySource),size:f.ChartSize.Xl,colors:R9,unit:"tCO2e",startDate:Gee,endDate:zee,dataLabels:{enabled:!1}})}),(0,fe.jsx)(C9,{children:(0,fe.jsx)(f.ChartContainer,{border:!0,title:"Carbon Emissions by Scope & Source",size:f.ChartSize.Fluid,startDate:Gee,endDate:zee,noData:!n?.getEmissionsByScopeAndSource?.emissions?.length||n?.getEmissionsByScopeAndSource?.emissions?.every?.(e=>!e.net&&!e.gross),children:(0,fe.jsx)(N9,{emissions:n?.getEmissionsByScopeAndSource?.emissions||[]})})}),(0,fe.jsx)(C9,{children:(0,fe.jsx)(f.ColumnChart,{title:"Gross & Net Emissions",data:n?.getEmissionsNetAndGross||[],size:f.ChartSize.Xl,unit:"tCO2e",startDate:Gee,endDate:zee,dataLabels:{enabled:!1}})})]})}var qee=t(85255),Jee=t(59434);const Yee={apiKey:De("REACT_APP_GOOGLE_MAP_API_KEY"),mapIds:{impactLocations:De("REACT_APP_IMPACT_LOCATIONS_MAP_ID")}},Hee=S.J1`
  query GetLocationsWithCoordinates($accountId: ID!) {
    getLocationsPage(accountId: $accountId, withCoordinatesOnly: true, offset: 0, limit: 100) {
      rows {
        id
        name
        description
        picture
        latitude
        longitude
        address {
          address1
          address2
          address3
          city
          postcode
          country {
            name
          }
        }
        wasteIn {
          id
          name
        }
        wasteOut {
          id
          name
        }
        enableProject
        displayOnImpactDashboard
      }
    }
  }
`,Kee=t.p+"pin-map-cce3c0177e4f38b9d92b.svg",Qee=(0,f.styled)("div")(e=>{let{width:n,height:t}=e;return{flexShrink:0,width:n||"115px",height:t||"188px",backgroundColor:"#f0f0f0",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"}}),Zee=(0,f.styled)("img")(e=>{let{width:n,height:t}=e;return{flexShrink:0,width:n||"115px",height:t||"188px",objectFit:"cover",borderRadius:"3px"}}),Xee=e=>{let{width:n,height:t}=e;return(0,fe.jsx)(Qee,{width:n,height:t,children:(0,fe.jsx)(f.Text,{size:"small",typescale:"title",children:"No picture"})})},ene=e=>{let{src:n,width:t,height:a}=e;return n?(0,fe.jsx)(Zee,{src:n,width:t,height:a}):(0,fe.jsx)(Xee,{width:t,height:a})},nne={"Scope 1":"Scope 1 (direct) emissions occur from combustion in sources which are directly owned or controlled by your organisation.","Scope 2":"Scope 2 (indirect) emissions occur from purchased electricity, heat, and steam where the energy has been generated at another facility, but is consumed by your organisation.","Scope 3":"Scope 3 (indirect) emissions are all other indirect emissions which occur within your organisation’s value chain."},tne="tCO2e",ane=f.ChartSize.S,ine=f.ChartSize.Md,lne=f.ChartSize.Xl,rne="Target total emissions",one="Current period total emissions",sne=`\n{\n  text: [\n    {\n      filterType: text,\n      operator: OR,\n      condition1: {\n        filterType: text,\n        type: equals,\n        filter: "${rne}",\n      },\n      condition2: {\n        filterType: text,\n        type: equals,\n        filter: "${one}",\n      },\n      conditions: [\n        {\n          filterType: text,\n          type: equals,\n          filter: "${rne}",\n        },\n        {\n          filterType: text,\n          type: equals,\n          filter: "${one}",\n        },\n      ],\n      field: "name",\n    },\n  ],\n}`,dne=S.J1`
  query getImpactDashboardData(
    $accountId: ID!
    $locationId: ID
    $targetStartDate: AWSDate!
    $targetEndDate: AWSDate!
    $baselineStartDate: AWSDate!
    $baselineEndDate: AWSDate!
    $currentPeriodStartDate: AWSDate!
    $currentPeriodEndDate: AWSDate!
    $excludeScope: Int
    $organisationalUnitIds: [ID!]
  ) {
    analysis: getImpactDashboardData(
      accountId: $accountId
      locationId: $locationId
      targetStartDate: $targetStartDate
      targetEndDate: $targetEndDate
      baselineStartDate: $baselineStartDate
      baselineEndDate: $baselineEndDate
      currentPeriodStartDate: $currentPeriodStartDate
      currentPeriodEndDate: $currentPeriodEndDate
      excludeScope: $excludeScope
      organisationalUnitIds: $organisationalUnitIds
    ) {
      targetTotalEmissions

      baselineTotalEmissions

      currentPeriodTotalEmissions

      targetScopeBreakdown {
        ...ScopeBreakdownFields
      }

      targetEmissionsByScope {
        ...TimeSeriesDataPointFields
      }

      targetEmissionsBySource {
        ...TimeSeriesDataPointFields
      }

      baselineScopeBreakdown {
        ...ScopeBreakdownFields
      }

      baselineEmissionsByScope {
        ...TimeSeriesDataPointFields
      }

      baselineEmissionsBySource {
        ...TimeSeriesDataPointFields
      }

      currentPeriodScopeBreakdown {
        ...ScopeBreakdownFields
      }

      currentPeriodEmissionsByScope {
        ...TimeSeriesDataPointFields
      }

      currentPeriodEmissionsBySource {
        ...TimeSeriesDataPointFields
      }
    }

    normalizers: getNormalisersPage(
      accountId: $accountId
      filters: ${sne}
    ) {
      rows {
        name
        quantity
      }
    }
  }

  fragment ScopeBreakdownFields on PieChartData {
    series {
      id
      relativeValue
      absoluteValue
    }
    drilldown {
      id
      parentId
      relativeValue
      absoluteValue
    }
  }

  fragment TimeSeriesDataPointFields on TimeSeriesDataPoint {
    dimension
    time
    value
  }
`,cne=S.J1`
  query getElectricityConsumption(
    $accountId: ID!
    $from: String!
    $to: String!
    $timeGranularity: ElectricityConsumptionTimeGranularity!
    $locationId: String
    $organisationalUnitIds: [ID!]
  ) {
    getElectricityConsumption(
      accountId: $accountId
      from: $from
      to: $to
      timeGranularity: $timeGranularity
      locationId: $locationId
      organisationalUnitIds: $organisationalUnitIds
    ) {
      time
      value
    }
  }
`;function une(){const e=zo();return(0,g.useMemo)(()=>{if(!e)return null;let n=e?.reportingYear;n?.startDate&&n?.endDate||(n={startDate:"1000-01-01T00:00:00.000Z",endDate:"1000-12-31T23:59:59.000Z"});const t=bn()(n.startDate).utc().format("MM"),a=bn()(n.startDate).utc().format("DD"),i=bn()(n.endDate).utc().format("MM"),l=bn()(n.endDate).utc().format("DD"),r=bn()(),o=`${t}-${a}`,s=`${i}-${l}`;return Number(r.format("MM"))>=Number(t)?{targetStartDate:bn()(o,"MM-DD").add(-1,"year").toDate(),targetEndDate:bn()(s,"MM-DD").toDate(),baselineStartDate:bn()(o,"MM-DD").add(-2,"year").toDate(),baselineEndDate:bn()(s,"MM-DD").add(-1,"year").toDate(),currentPeriodStartDate:bn()(o,"MM-DD").toDate(),currentPeriodEndDate:r.toDate()}:{targetStartDate:bn()(o,"MM-DD").add(-2,"year").toDate(),targetEndDate:bn()(s,"MM-DD").add(-1,"year").toDate(),baselineStartDate:bn()(o,"MM-DD").add(-3,"year").toDate(),baselineEndDate:bn()(s,"MM-DD").add(-2,"years").toDate(),currentPeriodStartDate:bn()(o,"MM-DD").add(-1,"year").toDate(),currentPeriodEndDate:r.toDate()}},[e])}const pne=(0,f.styled)("div")`
  display: flex;
  padding: 16px 16px 20px 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  width: 626px;
  max-width: 626px;
  border-radius: 16px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  background: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  box-shadow: 0px 8px 12px 2px rgba(0, 0, 0, 0.05), 0px 2x 2px 0px rgba(0, 0, 0, 0.1);
`,mne=(0,f.styled)(f.Text)`
  line-height: 24px;
  margin-bottom: 8px;
`,fne=(0,f.styled)(f.Text)`
  line-height: 16px;
`,yne=e=>{let{title:n,text:t}=e;return(0,fe.jsxs)(pne,{children:[(0,fe.jsx)(mne,{typescale:"body",size:"large",children:n}),(0,fe.jsx)(fne,{typescale:"body",size:"small",children:t})]})};var gne=t(25573);const hne=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
`,xne=(0,f.styled)(f.Button)`
  position: absolute;
  top: 24px;
  right: 28px;
`,Tne=e=>{let{locationId:n,startDate:t,endDate:a,organisationalUnitIds:i}=e;const l=Je(),[r,o]=(0,g.useState)(null),{chartTheme:s}=(0,f.useAgChartsTheme)(),{loading:d,data:c,error:u}=(0,x.IT)(cne,{variables:{accountId:l,from:bn()(t).format("YYYY-MM-DD"),to:bn()(a).format("YYYY-MM-DD"),locationId:n,organisationalUnitIds:i,timeGranularity:gn.gb.Month}}),{loading:p,data:m,error:y}=(0,x.IT)(cne,{variables:{accountId:l,from:bn()(r).format("YYYY-MM-DD"),to:bn()(r).endOf("month").format("YYYY-MM-DD"),locationId:n,organisationalUnitIds:i,timeGranularity:gn.gb.HalfHour},skip:!r}),h=(0,g.useMemo)(()=>c?.getElectricityConsumption.map(e=>({...e,time:bn()(e.time,"YYYY/MM").toDate()})),[c]),T=(0,g.useMemo)(()=>m?.getElectricityConsumption&&r?((e,n)=>{const t=e.reduce((e,n)=>{const t=bn()(n.time.substring(0,17).replace("T"," "),"YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm");return{...e,[t]:n.value}},{});return(e=>{const n=bn()(e).startOf("month").add(30,"minutes"),t=bn()(e).add(1,"month").startOf("month"),a=[];for(;n.isBefore(t)||n.isSame(t,"minute");)a.push(n.format("YYYY-MM-DD HH:mm")),n.add(30,"minutes");return a})(n).map(e=>({time:new Date(e),value:t[e]||0}))})(m.getElectricityConsumption,r):[],[m,r]),b=(0,g.useMemo)(()=>({theme:s,data:h,series:[{type:"bar",xKey:"time",yKey:"value",yName:"Kwh",fillOpacity:1,listeners:{nodeClick:e=>{"nodeClick"===e.type&&o(bn()(e.datum.time,"YYYY-MM-DD").startOf("month").toDate())}},tooltip:{renderer:e=>({heading:bn()(e.datum.time,"YYYY-MM-DD").format("YYYY/MM")})}}],axes:[{type:"category",position:"bottom",label:{formatter:e=>bn()(e.value).format("YYYY/MM")}},{type:"number",position:"left"}]}),[s,h]),v=(0,g.useMemo)(()=>({theme:s,data:T,zoom:{enabled:!0,enableScrolling:!0,enableSelecting:!1},navigator:{enabled:!0},series:[{type:"bar",xKey:"time",yKey:"value",yName:"Kwh",fillOpacity:1,tooltip:{renderer:e=>({heading:bn()(e.datum[e.xKey]).format("MMM D - HH:mm")})}}],axes:[{type:"time",position:"bottom",nice:!1,min:r?.getTime(),max:bn()(r).endOf("month").toDate().getTime()},{type:"number",position:"left"}]}),[r,s,T]),C=d||p,k=u||y;return(0,fe.jsxs)(f.ChartContainer,{size:f.ChartSize.Xl,startDate:t,endDate:a,children:[C?(0,fe.jsx)(hne,{children:(0,fe.jsx)(f.Loader,{})}):null,!C&&k?(0,fe.jsx)(hne,{children:(0,fe.jsxs)(f.Text,{textAlign:"center",children:["Error: ",k.message]})}):null,C||k?null:(0,fe.jsx)(fe.Fragment,{children:r?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(xne,{startIcon:(0,fe.jsx)(f.Icons.ArrowBack,{}),onClick:()=>o(null),children:"Back to yearly view"}),(0,fe.jsx)(gne.ui,{options:v})]}):(0,fe.jsx)(gne.ui,{options:b})})]})},bne=(0,f.styled)("div")`
  border: ${e=>{let{theme:n}=e;return`1px solid ${n.sys.color.outlineVariant}`}};
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 0px;
  max-width: 100%;
  width: 100%;
`,vne=(0,f.styled)("div")`
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 8px;
  cursor: pointer;
`,Cne=(0,f.styled)("div")(e=>{let{visible:n}=e;return{width:"100%",position:"relative",display:n?"block":"none",marginTop:16}}),kne=(0,f.styled)(f.Icons.ChevronRight)`
  transform: ${e=>{let{areFiltersOpen:n}=e;return n?"rotate(-90deg)":"rotate(90deg)"}};
`,Sne=(0,g.forwardRef)(function(e,n){let{open:t=!1,onToggle:a,children:i}=e;const[l,r]=(0,g.useState)(t),o=a?t:l;return(0,fe.jsxs)(bne,{ref:n,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsxs)(vne,{onClick:()=>a?a():r(!l),children:[(0,fe.jsx)(f.Text,{typescale:"title",children:"Filters"}),(0,fe.jsx)(f.IconButton,{children:(0,fe.jsx)(kne,{areFiltersOpen:o})})]})}),(0,fe.jsx)(Cne,{visible:o,children:i})]})});Sne.displayName="DashboardFilterPanel";var Nne=t(60517);const Ane=(0,f.styled)(f.Text)`
  margin-bottom: 24px;
  font-size: 24px;
`,Rne=(0,f.styled)(f.KpiChart)`
  & .${f.chartClassNames.chartContainerTitle} {
    font-size: 20px;
    font-weight: 400;
    color: #5c5757;
  }
`,Dne=(0,f.styled)("div")({marginBottom:48}),Lne=(0,f.styled)("div")({marginBottom:20,display:"flex",justifyContent:"right"}),Ine=(0,f.styled)("div")({marginBottom:48}),jne=(0,f.styled)("div")({position:"relative"}),wne=(0,f.styled)(Nne.A)(e=>{let{theme:n}=e;return{position:"absolute",backgroundColor:"rgba(255, 255, 255, 0.5)",zIndex:n.zIndex.drawer+1}}),One=(0,f.styled)(f.LinearProgress)({height:2,marginBottom:48});function Ene(e){let{locationId:n}=e;const[t,a]=(0,g.useState)(null),{data:i,loading:l,error:r}=function(e){let{organisationalUnitIds:n,locationId:t}=e;const a=Je(),i=une(),l=(0,g.useMemo)(()=>i?k_()(i,e=>bn()(e).format("YYYY-MM-DD")):null,[i]),[r,o]=(0,g.useState)(),s=(0,g.useRef)(!1),d=(0,g.useRef)(),[c,{error:u}]=(0,Ul._)(dne);return(0,g.useEffect)(()=>{a&&l&&(async()=>{const e={accountId:a,organisationalUnitIds:n,locationId:t,excludeScope:[Dt,Rt].includes(a)?3:void 0,...l};if(s.current)d.current=e;else{let n;try{do{s.current=!0;const t=d.current||e;d.current=void 0,n=(await c({variables:t})).data}while(d.current);o(n)}finally{s.current=!1}}})()},[n,t,a,l]),{loading:s.current,error:u,data:(0,g.useMemo)(()=>r?{...r.analysis,normalizers:r.normalizers}:void 0,[r])}}({locationId:n,organisationalUnitIds:t}),o=i?.normalizers.rows,s=o?.find(e=>{let{name:n}=e;return n===rne})?.quantity,d=o?.find(e=>{let{name:n}=e;return n===one})?.quantity,c=Yl("IMPACT_NORMALIZED_CARBON_TILES",Rt,...Bt.filter(e=>e!==Lt)),u=Yl("HH_ELECTRICITY_TILE",Rt,jt,wt,It,...Bt),p=une();if(r)return(0,fe.jsx)(Ine,{children:(0,fe.jsx)(f.LoadFailed,{title:"Something went wrong",error:r})});if(!p)return null;const m={value:i?.targetTotalEmissions&&s?1e3*i.targetTotalEmissions/s:null,startDate:p.targetStartDate,endDate:p.targetEndDate},y={value:i?.currentPeriodTotalEmissions&&d?1e3*i.currentPeriodTotalEmissions/d:null,startDate:p.currentPeriodStartDate,endDate:p.currentPeriodEndDate},h={value:i?.targetTotalEmissions||null,startDate:p.targetStartDate,endDate:p.targetEndDate},x={value:i?.currentPeriodTotalEmissions||null,startDate:p.currentPeriodStartDate,endDate:p.currentPeriodEndDate};return(0,fe.jsxs)(fe.Fragment,{children:[!n&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Lne,{children:(0,fe.jsx)(rW,{disabled:!t,hint:"Clear filters",color:"secondary",icon:(0,fe.jsx)(f.Icons.FilterAltOff,{}),onClick:()=>a(null)})}),(0,fe.jsx)(Dne,{children:(0,fe.jsx)(Sne,{children:(0,fe.jsx)(f.Grid,{container:!0,size:12,spacing:2,children:(0,fe.jsx)(f.Grid,{size:4,children:(0,fe.jsx)(Ri,{source:"location",onChange:a,value:t})})})})})]}),l&&(0,fe.jsx)(One,{}),(0,fe.jsxs)(jne,{children:[(0,fe.jsx)(wne,{open:l,transitionDuration:0,color:"#fff"}),c&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Ane,{typescale:"title",size:"large",children:"Normalised Carbon per M2 of Produced Volumetric Unit"}),(0,fe.jsxs)(C9,{children:[(0,fe.jsx)(Rne,{title:"Total Carbon (kgCO2e per m2)",size:ane,unit:tne,metric:m,explanations:nne,titleTypescale:"title"}),(0,fe.jsx)(Rne,{title:"Total Carbon (kgCO2e per m2)",size:ane,unit:tne,metric:y,baseline:m,explanations:nne,titleTypescale:"title"})]})]}),(0,fe.jsx)(Ane,{typescale:"title",size:"large",children:"Total Carbon"}),(0,fe.jsxs)(C9,{children:[(0,fe.jsx)(Rne,{title:"Total Carbon (tCO2e)",size:ane,unit:tne,metric:h,titleTypescale:"title"}),(0,fe.jsx)(Rne,{title:"Total Carbon (tCO2e)",size:ane,unit:tne,metric:x,baseline:h,explanations:nne,titleTypescale:"title"})]}),(0,fe.jsx)(Ane,{typescale:"title",size:"large",children:"Emissions by Scope (tCO2e)"}),(0,fe.jsxs)(C9,{children:[(0,fe.jsx)(f.DonutChart,{size:ine,unit:tne,data:j9(i?.targetScopeBreakdown.series||[]),startDate:p.targetStartDate,endDate:p.targetEndDate,explanations:nne,dataLabels:{enabled:!0}}),(0,fe.jsx)(f.DonutChart,{size:ine,unit:tne,data:j9(i?.currentPeriodScopeBreakdown.series||[]),startDate:p.currentPeriodStartDate,endDate:p.currentPeriodEndDate,explanations:nne,dataLabels:{enabled:!0}})]}),(0,fe.jsxs)(C9,{children:[(0,fe.jsx)(f.StackedChart,{enableLegend:!0,size:lne,unit:tne,data:w9(i?.targetEmissionsByScope||[]),startDate:p.targetStartDate,endDate:p.targetEndDate,colors:R9,explanations:nne,dataLabels:{enabled:!1}}),(0,fe.jsx)(f.StackedChart,{enableLegend:!0,size:lne,unit:tne,data:w9(i?.currentPeriodEmissionsByScope||[]),startDate:p.currentPeriodStartDate,endDate:p.currentPeriodEndDate,colors:R9,explanations:nne,dataLabels:{enabled:!1}})]}),(0,fe.jsx)(Ane,{typescale:"title",size:"large",children:"Emissions by Source"}),(0,fe.jsxs)(C9,{children:[(0,fe.jsx)(f.SimplePieDonutChart,{size:ine,unit:tne,data:O9(i?.targetEmissionsBySource||[]),startDate:p.targetStartDate,endDate:p.targetEndDate,explanations:nne,dataLabels:{enabled:!1}}),(0,fe.jsx)(f.SimplePieDonutChart,{size:ine,unit:tne,data:O9(i?.currentPeriodEmissionsBySource||[]),startDate:p.currentPeriodStartDate,endDate:p.currentPeriodEndDate,explanations:nne,dataLabels:{enabled:!1}})]}),(0,fe.jsxs)(C9,{children:[(0,fe.jsx)(f.StackedChart,{enableLegend:!0,size:lne,unit:tne,data:w9(i?.targetEmissionsBySource||[]),startDate:p.targetStartDate,endDate:p.targetEndDate,explanations:nne,colors:R9,dataLabels:{enabled:!1}}),(0,fe.jsx)(f.StackedChart,{enableLegend:!0,size:lne,unit:tne,data:w9(i?.currentPeriodEmissionsBySource||[]),startDate:p.currentPeriodStartDate,endDate:p.currentPeriodEndDate,explanations:nne,colors:R9,dataLabels:{enabled:!1}})]}),u&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Ane,{typescale:"title",size:"large",children:"Half Hourly Electricity Consumption"}),(0,fe.jsxs)(C9,{children:[(0,fe.jsx)(Tne,{startDate:p.targetStartDate,endDate:p.targetEndDate,locationId:n,organisationalUnitIds:t}),(0,fe.jsx)(Tne,{startDate:p.currentPeriodStartDate,endDate:p.currentPeriodEndDate,locationId:n,organisationalUnitIds:t})]})]}),(0,fe.jsxs)(C9,{children:[(0,fe.jsx)(yne,{title:"Scope 1",text:nne["Scope 1"]}),(0,fe.jsx)(yne,{title:"Scope 2",text:nne["Scope 2"]})]}),(0,fe.jsx)(C9,{children:(0,fe.jsx)(yne,{title:"Scope 3",text:nne["Scope 3"]})})]})]})}const _ne=S.J1`
  query GetImpactLocationData($accountId: ID!, $locationId: ID!, $filters: Filters!) {
    location: getLocationById(id: $locationId) {
      id
      name
      code
      picture
      description
      address {
        address1
        address2
        address3
        city
        postcode
        country {
          name
        }
      }
    }
    lcaReports: getDocumentsPage(accountId: $accountId, limit: 100, filters: $filters) {
      totalRows
      rows {
        id
        referenceId
        fileName
      }
    }
  }
`,Fne=(0,f.styled)("div")`
  display: flex;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  border-radius: 16px;
  overflow: hidden;
  padding: 24px;
  margin-bottom: 24px;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  gap: 24px;
`,Pne=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 10px;
`,Bne=(0,f.styled)("div")({maxWidth:"100%",overflowX:"hidden"}),Une=(0,f.styled)("div")({display:"flex",flexDirection:"column",gap:"4px"}),$ne=(0,f.styled)(f.Button)({marginTop:20,alignSelf:"flex-start"}),Mne=(0,f.styled)("div")({display:"flex",gap:3}),Vne=(0,f.styled)(p.Link)({textDecoration:"underline",display:"block"}),Gne=e=>{let{description:n}=e;return n?(0,fe.jsx)(Une,{children:n.split("\n").slice(0,5).map((e,n)=>(0,fe.jsxs)(f.Text,{size:"small",children:["•"," ",e]},n))}):null},zne=e=>{let{address:n}=e;return n?(0,fe.jsxs)(f.Text,{size:"medium",color:"onSurfaceVariant",children:[[n.address1,n.address2,n.address3,[n.city,n.postcode].filter(Boolean).join(" ")].filter(Boolean).join(", "),", ",n.country.name]}):null},Wne=()=>{const{locationId:e}=(0,m.g)(),n=(0,m.Zp)(),{location:t,lcaReports:a,loading:i}=function(e){let{locationId:n}=e;const t=Je(),{data:a,loading:i}=(0,x.IT)(_ne,{variables:{accountId:t,locationId:n,filters:{set:[{field:"locations",filterType:gn.pe.Set,values:[n]},{field:"library",filterType:gn.pe.Set,values:[gn.zM.Governance]},{field:"category",filterType:gn.pe.Set,values:[pt.DocumentCategory.LCAReports]}]}},skip:!n||!t});return{location:a?.location,lcaReports:a?.lcaReports.rows,loading:i}}({locationId:e}),l={content:i?"Location Impact Dashboard":`${t?.name} Impact Dashboard`};return(0,fe.jsx)(f.Page,{title:l,children:(0,fe.jsxs)(Bne,{children:[!i&&t&&(0,fe.jsxs)(Fne,{children:[(0,fe.jsx)(ene,{src:t.picture,width:200,height:200}),(0,fe.jsxs)(Pne,{children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"large",color:"onSurfaceVariant",children:t.name}),t.code&&(0,fe.jsxs)(f.Text,{size:"small",color:"textSecondary",children:["Code: ",t.code]}),(0,fe.jsx)(zne,{address:t.address}),(0,fe.jsx)(Gne,{description:t.description}),a&&a.length>0&&(0,fe.jsxs)(Mne,{children:[(0,fe.jsx)(f.Text,{size:"medium",color:"onSurfaceVariant",children:"LCA Report:"}),a.map(e=>(0,fe.jsx)(f.Text,{size:"medium",color:"onSurfaceVariant",children:(0,fe.jsx)(Vne,{to:`/documents/all/${e.id}`,children:e.referenceId||e.fileName})},e.id))]}),(0,fe.jsx)($ne,{variant:"outlined",onClick:()=>{n("/impact")},children:"Back to map"})]})]}),(0,fe.jsx)(Ene,{locationId:e})]})})},qne=(0,f.styled)("div")(e=>{let{active:n=!1,height:t}=e;return{backgroundColor:"white",height:t?`${t}px`:"210px",border:"1px solid "+(n?"#2e3eff":"#c7c5d0"),borderRadius:"5px",boxShadow:"2px 2px 8px rgba(0, 0, 0, 0.2)",padding:"10px",display:"flex",gap:"10px"}}),Jne=(0,f.styled)("div")({display:"flex",flexDirection:"column",padding:"1px",overflow:"auto"}),Yne=(0,f.styled)("div")({width:"100%",flexShrink:0,paddingTop:5}),Hne=(0,f.styled)(f.Button)({fontSize:"12px",fontWeight:"bold",padding:"6px 20px",color:"#46464f",width:"100%","&.MuiButton-outlined:hover":{outline:"1px solid #c8c5ca",backgroundColor:"#efefef"},"&.MuiButton-outlined:focus":{outline:"1px solid #c8c5ca",backgroundColor:"#efefef"},"&.MuiButton-outlined:active":{outline:"1px solid #c8c5ca",backgroundColor:"#efefef"}}),Kne=(0,f.styled)(f.Text)({marginBottom:"6px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),Qne=(0,f.styled)("div")({overflow:"auto",flex:1}),Zne=e=>{let{location:n,onCardClick:t,onOpenLocationClick:a,active:i,omitWrapper:l,omitOpenLocationButton:r,locationPictureSize:o,containerHeight:s}=e;const[d,c]=(0,g.useState)(),u=(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ene,{src:n.picture,width:o?.width,height:o?.height}),(0,fe.jsxs)(Jne,{children:[(0,fe.jsxs)(Qne,{children:[(0,fe.jsx)(Kne,{typescale:"title",size:"medium",children:n.name}),n.description?(0,fe.jsx)(Gne,{description:n.description}):(0,fe.jsx)(zne,{address:n.address})]}),!r&&(0,fe.jsx)(Yne,{children:(0,fe.jsx)(Hne,{variant:"outlined",onClick:()=>a?.(n),children:"Open Project"})})]})]});return l?u:(0,fe.jsx)(qne,{height:s,active:i,onMouseDown:c,onMouseUp:e=>{(e=>{const n=Math.abs((d?.clientX||0)-e.clientX),t=Math.abs((d?.clientY||0)-e.clientY);return n>2||t>2})(e)||t?.(n)},children:u})},Xne=(0,f.styled)(Jee.Fu)({display:"flex",gap:"12px",padding:"1px"});function ete(e){let{active:n,location:t,onClick:a,shouldOpenInfoWindow:i}=e;const l=n?32:24,r=n?9999:1,[o,s]=(0,Jee.vH)(),[d,c]=(0,g.useState)(!1);(0,g.useEffect)(()=>{n&&i&&c(!0),n||c(!1)},[n,i]);const u=(0,g.useCallback)(()=>{a?.(t)},[a,t]);return(0,g.useEffect)(()=>{i||c(!1)},[i]),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Jee.J8,{position:{lat:t.latitude,lng:t.longitude},onClick:u,zIndex:r,ref:o,children:(0,fe.jsx)("img",{src:Kee,alt:"pin",width:l,height:l})}),d&&(0,fe.jsx)(Xne,{shouldFocus:!1,headerDisabled:!0,anchor:s,onClose:()=>c(!1),children:(0,fe.jsx)(Zne,{location:t,omitWrapper:!0,omitOpenLocationButton:!0,locationPictureSize:{height:130}})})]})}const nte=(0,f.styled)("div")({width:"100%",height:"800px",border:"1px solid #C7C5D0",borderRadius:"16px",marginBottom:"48px",padding:"32px"}),tte=(0,f.styled)("div")(e=>{let{isListOpen:n}=e;return{width:"100%",height:n?"530px":"700px",borderRadius:"16px",overflow:"hidden"}}),ate=(0,f.styled)(f.Text)({marginBottom:"24px",fontSize:"24px"}),ite=e=>{let{latitude:n,longitude:t}=e;return{lat:n,lng:t}},lte=(0,f.styled)("div")({display:"flex",flexDirection:"column"}),rte=(0,f.styled)("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),ote=(0,f.styled)("div")({display:"flex",alignItems:"center",justifyContent:"space-between"}),ste=(0,f.styled)(f.Icons.ArrowForward)(e=>{let{disabled:n,isBack:t}=e;return{opacity:n?.5:1,cursor:n?"default":"pointer",pointerEvents:n?"none":"auto",transform:t?"rotate(180deg)":"rotate(0deg)"}}),dte=(0,f.styled)("div")(e=>{let{isListOpen:n}=e;return{display:"flex",alignItems:"center",cursor:"pointer",marginTop:"20px",marginBottom:n?"12px":"0"}}),cte=(0,f.styled)("div")({padding:"0 6px 12px 6px"}),ute={mapId:Yee.mapIds.impactLocations,cameraControl:!1,zoomControl:!0,gestureHandling:"greedy",zoomControlOptions:{position:Jee.HF.TOP_RIGHT},fullscreenControl:!1,streetViewControl:!1,mapTypeControl:!1,defaultZoom:10},pte={lat:51.5072,lng:.1276},mte=e=>e*Math.PI/180,fte=(e,n)=>{const t=mte(n.lat-e.lat),a=mte(n.lng-e.lng),i=mte(e.lat),l=mte(n.lat),r=Math.sin(t/2),o=Math.sin(a/2),s=r*r+Math.cos(i)*Math.cos(l)*o*o;return 12742e3*Math.asin(Math.sqrt(s))},yte=(0,f.styled)(f.Icons.ChevronRight)(e=>{let{isListOpen:n}=e;return{transform:n?"rotate(90deg)":"rotate(0deg)"}}),gte=e=>`impactMap_center_${e}`,hte=e=>`impactMap_isListOpen_${e}`;function xte(){const{locations:e,loading:n}=function(){let{excludeWasteInLocations:e}={excludeWasteInLocations:!0};const n=Je(),{showNotification:t}=tn(),{data:a,loading:i,error:l}=(0,x.IT)(Hee,{variables:{accountId:n},onError:()=>{t("Error at loading the locations, refresh the page to try again","danger")}});return{locations:(0,g.useMemo)(()=>{const n=(a?.getLocationsPage.rows||[]).filter(e=>e.displayOnImpactDashboard);return e?n.filter(e=>!e.wasteIn||!!e.wasteIn&&!!e.wasteOut):n},[a,e]),loading:i,error:l}}(),t=Je(),[a,i]=(0,g.useState)(()=>localStorage.getItem(gte(t))?JSON.parse(localStorage.getItem(gte(t))||"{}"):pte),[l,r]=(0,g.useState)(),[o,s]=(0,g.useState)(()=>{const e=localStorage.getItem(hte(t));return"true"===e||"false"!==e}),[d,c]=(0,g.useState)(0),[u,p]=(0,g.useState)(3),y=d>=e.length-u,h=0===d,T=(0,g.useCallback)(()=>{const e=b.current?.innerSlider?.props?.slidesToShow;"number"==typeof e&&p(e)},[]),b=(0,g.useRef)(null),v=(0,g.useMemo)(()=>({dots:!1,speed:300,slidesToShow:3,slidesToScroll:3,infinite:!1,arrows:!1,onInit:T,onReInit:T,beforeChange(e,n){c(n)},responsive:[{breakpoint:1400,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:800,settings:{slidesToShow:1,slidesToScroll:1}}]}),[T]),C=(0,m.Zp)(),k=(n,t)=>{n.id===l?.id?r(void 0):(r(n),b.current?.slickGoTo(e.findIndex(e=>n===e)),t?.shouldCenter&&i(ite(n)))};return(0,g.useEffect)(()=>{if(localStorage.getItem(gte(t)))return void i(JSON.parse(localStorage.getItem(gte(t))||"{}"));if(0===e.length)return;let n=!1;return navigator.geolocation?.getCurrentPosition(t=>{if(n)return;const a={lat:t.coords.latitude,lng:t.coords.longitude},l=e.reduce((e,n,t,i)=>fte(a,ite(n))<fte(a,ite(i[e]))?t:e,0),r=e[l];r&&(i(ite(r)),b.current?.slickGoTo(l))},e=>{console.error("Error getting geolocation",e)},{enableHighAccuracy:!0,maximumAge:6e4,timeout:5e3}),()=>{n=!0}},[]),(0,g.useEffect)(()=>{localStorage.setItem(gte(t),JSON.stringify(a))},[a,t]),(0,g.useEffect)(()=>{localStorage.setItem(hte(t),String(o)),o&&l&&b.current?.slickGoTo(e.findIndex(e=>e.id===l.id))},[o,t]),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ate,{typescale:"title",size:"large",children:"Projects"}),(0,fe.jsxs)(nte,{children:[(0,fe.jsx)(tte,{isListOpen:o,children:(0,fe.jsx)(Jee.T5,{...ute,onCameraChanged:e=>i(e.detail.center),center:a,children:e.map((e,n)=>(0,fe.jsx)(ete,{active:e.id===l?.id,onClick:k,location:e,shouldOpenInfoWindow:!0},n))})}),(0,fe.jsxs)(lte,{children:[(0,fe.jsxs)(rte,{children:[(0,fe.jsxs)(dte,{isListOpen:o,onClick:()=>s(!o),tabIndex:0,children:[(0,fe.jsx)(yte,{isListOpen:o,color:"primary"}),(0,fe.jsx)(f.Text,{size:"medium",typescale:"title",children:"List"})]}),o&&(0,fe.jsxs)(ote,{children:[(0,fe.jsx)(ste,{color:"primary",isBack:!0,disabled:h,onClick:()=>b.current?.slickPrev()}),(0,fe.jsx)(ste,{color:"primary",disabled:y,onClick:()=>b.current?.slickNext()})]})]}),o&&(0,fe.jsxs)(fe.Fragment,{children:[n&&(0,fe.jsx)(f.Loader,{}),!n&&e.length>0&&(0,fe.jsx)(Vc.A,{ref:e=>b.current=e,...v,children:e.map((e,n)=>(0,fe.jsx)(cte,{children:(0,fe.jsx)(Zne,{active:e.id===l?.id,location:e,onCardClick:e=>k(e,{shouldCenter:!0}),omitOpenLocationButton:!e.enableProject,onOpenLocationClick:()=>(e=>{C(`/impact/location/${e.id}`)})(e),locationPictureSize:{width:115,height:130},containerHeight:153})},n))}),!n&&0===e.length&&(0,fe.jsx)(f.Text,{textAlign:"center",size:"large",color:"secondary",children:"No locations found"})]})]})]})]})}const Tte=e=>{let{filter:{type:n,label:t}}=e;const{filters:a,setFilter:i}=iee(),l=(0,g.useMemo)(()=>n===gn.RA.FromDate?a.from:a.to,[n,a.from,a.to]),r=(0,g.useCallback)(e=>{n===gn.RA.FromDate?i("from",bn()(e).format("YYYY-MM-DD")):i("to",bn()(e).format("YYYY-MM-DD"))},[n,i]);return(0,fe.jsx)(f.DatePicker,{label:E9(n,t),value:l,onChange:r})},bte=S.J1`
  query getDashboardTileData(
    $accountId: ID!
    $datasetName: String!
    $datasetFilters: DatasetFilters!
    $aggregation: AggregationCommand!
  ) {
    getDashboardTileData(
      accountId: $accountId
      datasetName: $datasetName
      datasetFilters: $datasetFilters
      aggregation: $aggregation
    ) {
      dataPoints {
        dimension
        value
      }
    }
  }
`,vte=S.J1`
  query getBusinessAnalyticsDashboardData($datasetName: String!) {
    getBusinessAnalyticsDashboardData(datasetName: $datasetName) {
      dataPoints {
        dimension
        value
      }
    }
  }
`,Cte=e=>{let{filter:{type:n,label:t}}=e;const{filters:a,setFilter:i}=iee(),l=(0,g.useCallback)(e=>{const n="All"===e.value?null:e.value;i("locationOccupation",n)},[i]),r=(0,g.useMemo)(()=>a.locationOccupation?a.locationOccupation:"All",[a.locationOccupation]);return(0,fe.jsx)(f.Select,{label:E9(n,t),value:r,disableSorting:!0,options:[{label:"All",value:"All"},{label:"Exclude out of occupancy",value:"Exclude out of occupancy"}],onChange:l})},kte=e=>{let{filter:{type:n,label:t}}=e;const{filters:a,setFilter:i}=iee(),l=(0,g.useCallback)(e=>{const n="All"===e.value?null:e.value;i("actualOrEstimated",n)},[i]),r=(0,g.useMemo)(()=>a.actualOrEstimated?a.actualOrEstimated:"All",[a.actualOrEstimated]);return(0,fe.jsx)(f.Select,{label:E9(n,t),value:r,disableSorting:!0,options:[{label:"All",value:"All"},{label:"Actual",value:"ACT"},{label:"Estimated",value:"EST"}],onChange:l})},Ste=e=>{let{filter:{type:n,label:t}}=e;const{filters:a,setFilter:i}=iee(),l=(0,g.useCallback)(e=>{const n="All"===e.value?null:e.value;i("businessUnit",n)},[i]),r=(0,g.useMemo)(()=>[{label:"All",value:"All"},{label:"Bapco Energies Corporate",value:"Bapco Energies Corporate"},{label:"Bapco Upstream",value:"Bapco Upstream"},{label:"Bapco Refining",value:"Bapco Refining"},{label:"Bapco Gas",value:"Bapco Gas"},{label:"Bapco Tazweed",value:"Bapco Tazweed"}],[]);return(0,fe.jsx)(f.Select,{label:E9(n,t),value:a.businessUnit||"All",disableSorting:!0,options:r,onChange:l})},Nte=e=>{let{filter:{type:n,label:t}}=e;const{filters:a,setFilter:i}=iee(),l=(0,g.useCallback)(e=>{const n="All"===e.value?null:e.value;i("standaloneYear",n)},[i]),r=(0,g.useMemo)(()=>[{label:"2024",value:"2024"},{label:"2025",value:"2025"}],[]);return(0,fe.jsx)(f.Select,{label:E9(n,t),value:a.standaloneYear,disableSorting:!0,options:r,onChange:l})},Ate=e=>{let{filter:{type:n,label:t}}=e;const{filters:a,setFilter:i}=iee(),l=(0,g.useCallback)(e=>{const n="All"===e.value?null:e.value;i("waterInOut",n)},[i]),r=(0,g.useMemo)(()=>a.waterInOut?a.waterInOut:"All",[a.waterInOut]);return(0,fe.jsx)(f.Select,{label:E9(n,t),value:r,disableSorting:!0,options:[{label:"All",value:"All"},{label:'In (does not include "Both")',value:"IN"},{label:'Out (does not include "Both")',value:"OUT"},{label:'Both (not specifically "In" or "Out")',value:"BOTH"}],onChange:l})},Rte=(0,f.styled)(f.Icons.FilterAltOff)`
  width: 15px;
  height: 15px;
`,Dte=(0,f.styled)("div")`
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
  z-index: 1;
  padding: 6px;
`,Lte=e=>{let{filter:n}=e;const{activeFilters:t,resetFilters:a}=iee(),i=_9(n.type),l=t[i];return i&&l?(0,fe.jsx)(Dte,{children:(0,fe.jsx)(Rte,{onClick:()=>{a([i])}})}):null},Ite=e=>{let{filter:n}=e;const t=Je(),{filters:a,setFilter:i}=iee(),{data:l,loading:r,error:o,refetch:s}=(0,x.IT)(bte,{variables:{accountId:t,datasetName:n.dataset?.datasetName,datasetFilters:{from:a.from,to:a.to,year1:a.year1,year2:a.year2,period1:a.period1,period2:a.period2},aggregation:{functions:[],partitions:[{field:n.dataset?.columnName||n.type}]}},skip:!n.dataset}),d=(0,g.useMemo)(()=>l?l.getDashboardTileData.dataPoints.map(e=>({value:e[0].value,label:e[0].value})):[],[l]),c=(0,g.useMemo)(()=>{const e=_9(n.type);return e?a[e]:null},[a,n.type]),u=(0,g.useCallback)(e=>{const t=_9(n.type);t&&i(t,e)},[i,n.type]),p=(0,g.useMemo)(()=>({isLoading:r,error:o,refetch:s,selectedOptions:c,setSelectedOptions:u,selectableOptions:d,label:E9(n.type,n.label),channel:E9(n.type,n.label)}),[r,o,s,c,u,d,n.label,n.type]);let m=null;return n.type===gn.RA.FromDate||n.type===gn.RA.ToDate?m=(0,fe.jsx)(Tte,{filter:n}):n.type===gn.RA.Year_1||n.type===gn.RA.Year_2?m=(0,fe.jsx)(U9,{filter:n}):n.type===gn.RA.Period_1||n.type===gn.RA.Period_2?m=(0,fe.jsx)(V9,{filter:n}):n.type===gn.RA.LocationOccupation?m=(0,fe.jsx)(Cte,{filter:n}):n.type===gn.RA.ActualOrEstimated?m=(0,fe.jsx)(kte,{filter:n}):n.type===gn.RA.WaterInOut?m=(0,fe.jsx)(Ate,{filter:n}):n.type===gn.RA.BusinessUnit?m=(0,fe.jsx)(Ste,{filter:n}):n.type===gn.RA.StandaloneYear?m=(0,fe.jsx)(Nte,{filter:n}):[gn.RA.Locations,gn.RA.Tags,gn.RA.Departments,gn.RA.Countries,gn.RA.Regions,gn.RA.Meters,gn.RA.Scopes,gn.RA.Sources,gn.RA.Units,gn.RA.LocationCustomAttributes,gn.RA.WasteStreams,gn.RA.WasteContractors,gn.RA.WasteCarriers,gn.RA.ProjectPhases,gn.RA.TransportTypes,gn.RA.FuelTypes,gn.RA.Materials,gn.RA.UploadReferences,gn.RA.PurposesOfTravel].includes(n.type)&&(m=(0,fe.jsx)(f.SetFilter,{...p})),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Lte,{filter:n}),m]})},jte=()=>{const{selectedUnit:e,setSelectedUnit:n,activeSheet:t}=iee(),a=(0,g.useMemo)(()=>t?.sheet.units?.map(e=>({label:e,value:e}))||[],[t]);return(0,g.useEffect)(()=>{e&&!a.some(n=>n.value===e)&&n(a[0].value)},[a,n,e]),(0,fe.jsx)(f.Select,{label:"Display unit",value:e,options:a,onChange:e=>n(e.value)})},wte=()=>{const{withVat:e,setWithVat:n}=iee();return(0,fe.jsx)(f.Select,{label:"VAT",value:e?"true":"false",options:[{label:"Excluded",value:"false"},{label:"Included",value:"true"}],onChange:e=>n(e.value)})},Ote=()=>{const{selectedCarbonComponents:e,setSelectedCarbonComponents:n}=iee();return(0,fe.jsx)(f.SetFilter,{isLoading:!1,error:void 0,refetch:()=>{},channel:"carbon-components",label:"Energy supply emissions",selectedOptions:e,selectableOptions:[{label:"Well to tank",value:H9.WTT},{label:"Transmission and distribution",value:H9.TD}],setSelectedOptions:e=>n(e),noneSelectedLabel:"None"})},Ete=(0,f.styled)("div")`
  gap: 8px;
  border: ${e=>{let{theme:n}=e;return`1px solid ${n.sys.color.outlineVariant}`}};
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  width: 100%;
`,_te=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
`,Fte=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  width: 100%;
`,Pte=(0,f.styled)(f.Grid)`
  position: relative;
`,Bte=e=>Object.entries(e).sort((e,n)=>{let[t]=e,[a]=n;const i=see.indexOf(t),l=see.indexOf(a);return-1!==i&&-1!==l?i-l:-1!==i?-1:-1!==l?1:t.localeCompare(a)}),Ute=(0,g.memo)(e=>{let{filters:n}=e;const{areFiltersOpen:t,setAreFiltersOpen:a,isExportingPdf:i,pdfExportFilters:l,activeSheet:r,dashboardName:o,doesSheetHaveMultipleUnits:s,doesSheetHaveVatCalculation:d,doesSheetHavePeriodFilters:c,doesSheetHaveCarbonComponents:u}=iee(),p=(0,g.useRef)(null),[m,y]=(0,g.useState)(4);(0,g.useEffect)(()=>{const e=p.current;if(!e)return;const n=new ResizeObserver(e=>{const{width:n}=e[0]?.contentRect??{width:0};y(n>1100?3:4)});return n.observe(e),()=>n.disconnect()},[]);const h=(0,g.useCallback)(e=>E9(n.find(n=>_9(n.type)===e)?.type,n.find(n=>_9(n.type)===e)?.label),[n]);return 0===n.length||n.every(e=>e.isHidden)?null:i?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(Fte,{children:[(0,fe.jsxs)(f.Text,{typescale:"display",children:[o," report"]}),(0,fe.jsxs)(f.Text,{typescale:"title",children:[r?.sheet.title," sheet"]})]}),(0,fe.jsxs)(Ete,{children:[(0,fe.jsx)(f.Text,{typescale:"title",children:"Filters"}),Bte(l).map(e=>{let[n,t]=e;return(0,fe.jsxs)(_te,{children:[(0,fe.jsxs)(f.Text,{typescale:"title",weight:"bold",children:[h(n),":"]}),(0,fe.jsx)(f.Text,{typescale:"body",children:Array.isArray(t)?t.join(", "):t?.toString()})]},n)})]})]}):(0,fe.jsx)(Sne,{ref:p,open:t,onToggle:()=>a(!t),children:t&&(0,fe.jsx)(f.Grid,{container:!0,size:12,spacing:2,children:t&&(0,fe.jsxs)(fe.Fragment,{children:[c&&(0,fe.jsx)(Pte,{size:m,children:(0,fe.jsx)(G9,{})}),n.filter(e=>!e.isHidden).map(e=>(0,fe.jsx)(Pte,{size:m,children:(0,fe.jsx)(Ite,{filter:e})},e.type)),s&&(0,fe.jsx)(Pte,{size:m,children:(0,fe.jsx)(jte,{})}),d&&(0,fe.jsx)(Pte,{size:m,children:(0,fe.jsx)(wte,{})}),u&&(0,fe.jsx)(Pte,{size:m,children:(0,fe.jsx)(Ote,{})})]})})})});Ute.displayName="DashboardFilters";const $te=(0,f.styled)("div")`
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
`,Mte=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,Vte=()=>(0,fe.jsx)($te,{children:(0,fe.jsx)(Mte,{typescale:"body",textAlign:"center",size:"large",children:"No data for the applied filters"})}),Gte=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  border: ${e=>{let{theme:n,noData:t}=e;return`1px ${t?"dashed":"solid"} ${n.sys.color.outlineVariant}`}};
  border-radius: 16px;
  overflow: hidden;
  padding: 24px;
  height: 100%;
`,zte=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
`,Wte=(0,f.styled)("div")`
  display: flex;
  gap: 8px;
  justify-content: space-between;
`,qte=(0,f.styled)(f.Text)`
  width: 100%;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  margin-bottom: 16px;
`,Jte=(0,f.styled)(f.Icons.ReportProblemOutlined)`
  fill: ${e=>{let{theme:n}=e;return n.sys.color.error}};
`,Yte=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  gap: 8px;
`,Hte=(0,f.styled)("div")`
  width: 100%;
  height: calc(100vh - 120px);
`,Kte=g.forwardRef((e,n)=>{let{title:t,actions:a,enableFullscreen:i,onExport:l,noData:r,children:o,loading:s,error:d,retry:c}=e;const[u,p]=(0,g.useState)(!1),m=(0,g.useCallback)(()=>p(!0),[]),y=(0,g.useCallback)(()=>p(!1),[]),h=(0,g.useMemo)(()=>s?(0,fe.jsx)(zte,{children:(0,fe.jsx)(f.Loader,{size:40})}):d?(0,fe.jsx)(zte,{children:(0,fe.jsx)(f.LoadFailed,{withNoIcon:!0,error:d,retry:c})}):r?(0,fe.jsx)(zte,{children:(0,fe.jsx)(Vte,{})}):null,[d,s,r,c]),x=(0,g.useMemo)(()=>l||i?(0,fe.jsxs)(fe.Fragment,{children:[l&&(0,fe.jsx)(Vx.A,{title:"Export to Excel",children:(0,fe.jsx)(f.IconButton,{onClick:l,size:"small",children:(0,fe.jsx)(f.Icons.Download,{fontSize:"small"})})}),i&&(0,fe.jsx)(Vx.A,{title:"Fullscreen",children:(0,fe.jsx)(f.IconButton,{onClick:m,size:"small",children:(0,fe.jsx)(f.Icons.OpenInFull,{fontSize:"small"})})})]}):null,[l,i,m]),T=a||x?(0,fe.jsxs)(fe.Fragment,{children:[a,x]}):null;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(Gte,{noData:!s&&!d&&r,ref:n,children:[(t||T)&&(0,fe.jsxs)(Wte,{children:[(0,fe.jsx)(qte,{typescale:"title",oneLine:!0,children:t}),(0,fe.jsxs)(Yte,{children:[d&&(0,fe.jsx)(Jte,{}),T]})]}),h||o]}),i&&u&&(0,fe.jsxs)(f.Dialog,{open:!0,onClose:y,fullScreen:!0,children:[(0,fe.jsxs)(Wte,{children:[(0,fe.jsx)(qte,{typescale:"title",oneLine:!0,children:t}),(0,fe.jsxs)(Yte,{children:[l&&(0,fe.jsx)(Vx.A,{title:"Export to Excel",children:(0,fe.jsx)(f.IconButton,{onClick:l,size:"small",children:(0,fe.jsx)(f.Icons.Download,{fontSize:"small"})})}),a,(0,fe.jsx)(Vx.A,{title:"Close fullscreen",children:(0,fe.jsx)(f.IconButton,{onClick:y,size:"small",children:(0,fe.jsx)(f.Icons.CloseFullscreen,{fontSize:"small"})})})]})]}),(0,fe.jsx)(Hte,{children:o})]})]})});Kte.displayName="TileContainer";const Qte={small:{fontSize:"28px",lineHeight:"36px"},medium:{fontSize:"36px",lineHeight:"46px"}},Zte=(0,f.styled)(f.Text)`
  width: 100%;
  line-height: ${e=>{let{size:n="medium"}=e;return Qte[n].lineHeight}};
  text-align: center;
  font-size: ${e=>{let{size:n="medium"}=e;return Qte[n].fontSize}};
  cursor: default;
  overflow: hidden;
  text-overflow: ellipsis;
`,Xte=(0,f.styled)("span")`
  font-size: 20px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,eae=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
`,nae=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
`,tae=(0,f.styled)(f.Text)`
  font-size: 12px;
  font-weight: 600;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,aae=(0,f.styled)(f.Text)`
  font-size: 16px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,iae=(0,f.styled)(f.Icons.ArrowUpward)`
  color: ${e=>{let{iconColor:n}=e;return n}};
`,lae=(0,f.styled)(f.Icons.ArrowDownward)`
  color: ${e=>{let{iconColor:n}=e;return n}};
`,rae=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
`,oae=(0,f.styled)(f.Text)`
  font-size: 24px;
  font-weight: 500;
  color: ${e=>{let{textColor:n}=e;return n}};
`,sae=e=>{let{value1:n,value2:t,doesMoreMeanPositive:a=!1}=e;const i=(0,f.useTheme)(),l=i.palette.success.main,r=i.palette.error.main,o=i.sys.color.onSurfaceVariant,s=n?(t-n)/n*100:0,d=s>0,c=s<0,u=(0,g.useMemo)(()=>d?(0,fe.jsx)(iae,{iconColor:a?l:r}):c?(0,fe.jsx)(lae,{iconColor:a?r:l}):null,[d,a,c,l,r]),p=(0,g.useMemo)(()=>d?a?l:r:c?a?r:l:o,[d,c,l,r,a,o]);return(0,fe.jsxs)(rae,{children:[(0,fe.jsxs)(oae,{textColor:p,children:[kee(s),"%"]}),u]})},dae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a}=iee(),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"ElectricityByLocationReport",aggregation:{functions:[{field:"Quantity",aggregationType:gn.DF.Sum}],partitions:[]}}}),s=jee(i?.getDashboardTileData),d=hee(s?.[0]?.Quantity||"0"),c=Number.isNaN(d)||null===d,u=c?null:kee(d);return(0,fe.jsx)(Kte,{title:n.title||"Total consumption (kWh)",loading:l,error:r,retry:o,noData:c,children:(0,fe.jsx)(Zte,{children:u})})},cae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a}=iee(),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"ElectricityByLocationReport",aggregation:{functions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],partitions:[]}}}),s=jee(i?.getDashboardTileData),d=hee(s?.[0]?.TotalCost||"0"),c=Number.isNaN(d)||null===d,u=c?null:kee(d);return(0,fe.jsx)(Kte,{title:n.title||"Total cost (£)",loading:l,error:r,retry:o,noData:c,children:(0,fe.jsx)(Zte,{children:u})})},uae=(0,f.styled)(f.AgGrid)`
  width: 100%;
  height: calc(100% - ${e=>{let{pivotModeEnabled:n}=e;return n?30:40}}px);
  padding-bottom: 2px;
`,pae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o}=iee(),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"ElectricityByLocationReport",aggregation:{functions:[{field:"Quantity",aggregationType:gn.DF.Sum},{field:"TotalCost",aggregationType:gn.DF.Sum},{field:"CO2e",aggregationType:gn.DF.Sum},{field:"MarketOrLocationCO2e",aggregationType:gn.DF.Sum},{field:"GrossVsNetCarbonDifference",aggregationType:gn.DF.Sum}],partitions:[{field:"Country"},{field:"LocationCode"},{field:"LocationName"}]}}}),p=(0,g.useMemo)(()=>jee(s?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e.Quantity),TotalCost:hee(e.TotalCost),CO2e:hee(e.CO2e),MarketOrLocationCO2e:hee(e.MarketOrLocationCO2e),GrossVsNetCarbonDifference:hee(e.GrossVsNetCarbonDifference)})),[s]),m=Boolean(p&&0===p.length),f=(0,g.useMemo)(()=>[{headerName:"Country",field:"Country",rowGroup:!0,hide:!0},{headerName:"Location code",field:"LocationCode",rowGroup:!0,hide:!0},{headerName:"Location name",field:"LocationName",rowGroup:!0,hide:!0},{headerName:"Consumption (kWh)",field:"Quantity",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Cost (£)",field:"TotalCost",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Location-based emissions (kgCO2e)",field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Market-based emissions (kgCO2e)",field:"MarketOrLocationCO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Difference (Location vs Market-based)",field:"GrossVsNetCarbonDifference",aggFunc:"sum",valueFormatter:e=>kee(e.value)}],[]);return(0,fe.jsx)(Kte,{title:n.title||"Consumption by location",loading:d,error:c,retry:u,noData:m,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-ElectricityConsumptionPerLocationTile`,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:f,rowData:p}})})},mae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a}=iee(),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"ElectricityByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[]}}}),s=jee(i?.getDashboardTileData),d=hee(s?.[0]?.CO2e||"0"),c=Number.isNaN(d)||null===d,u=c?null:kee(d);return(0,fe.jsx)(Kte,{title:n.title||"Total location-based carbon (kgCO2e)",loading:l,error:r,retry:o,noData:c,children:(0,fe.jsx)(Zte,{children:u})})},fae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a}=iee(),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"ElectricityByLocationReport",aggregation:{functions:[{field:"MarketOrLocationCO2e",aggregationType:gn.DF.Sum}],partitions:[]}}}),s=jee(i?.getDashboardTileData),d=hee(s?.[0]?.MarketOrLocationCO2e||"0"),c=Number.isNaN(d)||null===d,u=c?null:kee(d);return(0,fe.jsx)(Kte,{title:n.title||"Total market-based carbon (kgCO2e)",loading:l,error:r,retry:o,noData:c,children:(0,fe.jsx)(Zte,{children:u})})},yae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,activeSheet:i,dashboardId:l}=iee(),r=(0,g.useRef)(null),{data:o,loading:s,error:d,refetch:c}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"ElectricityByLocationReport",aggregation:{functions:[{field:"Quantity",aggregationType:gn.DF.Sum},{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Country"},{field:"Scope"}]}}}),u=(0,g.useMemo)(()=>jee(o?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e.Quantity),CO2e:hee(e.CO2e)})),[o]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>[{headerName:"Country",field:"Country",rowGroup:!0,hide:!0},{headerName:"Scope",field:"Scope",aggFunc:"sum"},{headerName:"Consumption (kWh)",field:"Quantity",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Location-based carbon emissions (kgCO2e)",field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value)}],[]);return(0,fe.jsx)(Kte,{title:n.title||"Consumption by country and scope",loading:s,error:d,retry:c,noData:p,ref:r,children:(0,fe.jsx)(uae,{gridKey:`${t}-${l}-${i}-ElectricityConsumptionByCountryAndScopeTile`,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:m,rowData:u}})})},gae=(0,f.styled)("div")`
  display: grid;
  width: 100%;
  height: 100%;
`,hae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,withVat:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"ElectricityByLocationReport",aggregation:{functions:[{field:"Quantity",aggregationType:gn.DF.Sum},{field:"TotalCost",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Accuracy"}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>Iee(jee(s?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e.Quantity),TotalCost:hee(e.TotalCost,{withVat:l}),Date:bee(e.Month),Accuracy:Eee(e.Accuracy)})),["Date"],"Accuracy","Quantity")?.sort(vee),[s,l]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,legend:m,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"AccuracyActualQuantity",yName:"Actual Quantity (kWh)",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"Actual Quantity (kWh)",value:kee(e.datum.AccuracyActualQuantity)},{label:"Estimated Quantity (kWh)",value:kee(e.datum.AccuracyEstimatedQuantity)},{label:"Total Quantity (kWh)",value:kee((e.datum.AccuracyActualQuantity||0)+(e.datum.AccuracyEstimatedQuantity||0))}]})}},{type:"bar",xKey:"Date",yKey:"AccuracyEstimatedQuantity",yName:"Estimated Quantity (kWh)",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"Estimated Quantity (kWh)",value:kee(e.datum.AccuracyEstimatedQuantity)},{label:"Actual Quantity (kWh)",value:kee(e.datum.AccuracyActualQuantity)},{label:"Total Quantity (kWh)",value:kee((e.datum.AccuracyActualQuantity||0)+(e.datum.AccuracyEstimatedQuantity||0))}]})}},{type:"line",xKey:"Date",yKey:"TotalCost",yName:"Cost (£)",tooltip:{renderer:e=>({data:[{label:"Cost (£)",value:kee(e.datum.TotalCost)}]})}}],axes:[{type:"number",position:"left",keys:["AccuracyActualQuantity","AccuracyEstimatedQuantity"],label:{formatter:e=>Nee(e.value)}},{type:"number",position:"right",keys:["TotalCost"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[y,p,o,m]);return(0,fe.jsx)(Kte,{title:n.title||`Electricity cost and consumption (kWh) over time ${Aee(l)}`,loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},xae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),{queryVariablesFilters:i}=iee(),l=lee(a),{data:r,loading:o,error:s,refetch:d}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:i,datasetName:"ElectricityByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Scope"}]}}}),{chartTheme:c,legendTheme:u}=(0,f.useAgChartsTheme)(n.colors),p=(0,g.useMemo)(()=>Iee(jee(r?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e.CO2e),Scope:hee(e.Scope),Date:bee(e.Month)})),["Date"],"Scope","CO2e")?.sort(vee),[r]),m=Boolean(p&&0===p.length),y=(0,g.useMemo)(()=>({theme:c,legend:u,width:l,data:p||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"Scope2CO2e",yName:"Scope 2",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"Scope 2",value:kee(e.datum.Scope2CO2e)},{label:"Scope 3",value:kee(e.datum.Scope3CO2e)},{label:"Total CO2e",value:kee(e.datum.Scope2CO2e+e.datum.Scope3CO2e)}]})}},{type:"bar",xKey:"Date",yKey:"Scope3CO2e",yName:"Scope 3",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"Scope 2",value:kee(e.datum.Scope2CO2e)},{label:"Scope 3",value:kee(e.datum.Scope3CO2e)},{label:"Total CO2e",value:kee(e.datum.Scope2CO2e+e.datum.Scope3CO2e)}]})}}],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[p,c,l,u]);return(0,fe.jsx)(Kte,{title:n.title||"Location-based carbon emissions by scope",loading:o,error:s,retry:d,noData:m,ref:a,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:y})})})},Tae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,selectedUnit:i,selectedCarbonComponents:l}=iee(),{data:r,loading:o,error:s,refetch:d}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum},{field:"TotalWtt(kgCO2e)",aggregationType:gn.DF.Sum},{field:"Td(kgCO2e)",aggregationType:gn.DF.Sum}],partitions:[]}}}),c=jee(r?.getDashboardTileData)?.map(e=>({...e,CO2e:yee({co2eValue:e.CO2e,wttValue:e["TotalWtt(kgCO2e)"],tdValue:e["Td(kgCO2e)"],selectedCarbonComponents:l})})),u=hee(c?.[0]?.CO2e,{originalUnit:"kg",targetUnit:i}),p=Number.isNaN(u)||null===u,m=p?null:kee(u,{selectedUnit:i});return(0,fe.jsx)(Kte,{title:n.title||`Total carbon (${i}CO2e${Ree(l)})`,loading:o,error:s,retry:d,noData:p,children:(0,fe.jsx)(Zte,{children:m})})},bae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,selectedUnit:l,selectedCarbonComponents:r}=iee(),o=(0,g.useRef)(null),s=lee(o),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum},{field:"TotalWtt(kgCO2e)",aggregationType:gn.DF.Sum},{field:"Td(kgCO2e)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Type"}]}}}),{chartTheme:m,legendTheme:y,agChartColorMap:h}=(0,f.useAgChartsTheme)(n.colors),T=(0,g.useMemo)(()=>({Electricity:h[f.AgChartColor.BLUE_1],Finances:h[f.AgChartColor.YELLOW_1],Gas:h[f.AgChartColor.GREEN_1],"Home Working":h[f.AgChartColor.PINK_3],"Hotel Stays":h[f.AgChartColor.BLUE_4],Materials:h[f.AgChartColor.GREY_1],"Refrigerants and Other Gases":h[f.AgChartColor.BLUE_3],Waste:h[f.AgChartColor.PURPLE_1],Water:h[f.AgChartColor.PINK_1],Fuel:h[f.AgChartColor.BLACK_1],"Heat and Steam":h[f.AgChartColor.RED_1],Transport:h[f.AgChartColor.YELLOW_1]}),[h]),b=(0,g.useMemo)(()=>Iee(jee(d?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(yee({co2eValue:e.CO2e,wttValue:e["TotalWtt(kgCO2e)"],tdValue:e["Td(kgCO2e)"],selectedCarbonComponents:r}),{originalUnit:"kg",targetUnit:l}),Date:bee(e.Month),Type:e.Type}))?.sort((e,n)=>e.Type.toLowerCase().localeCompare(n.Type.toLowerCase())),["Date"],"Type","CO2e")?.sort(vee),[d,l,r]),v=(0,g.useMemo)(()=>Lee(b,{excludeKeys:["Date"],removeSuffixFromLabels:"CO2e",removePrefixFromLabels:"Type"}),[b]),C=Boolean(b&&0===b.length),k=(0,g.useMemo)(()=>({theme:m,width:s,data:b||[],zoom:{enabled:!0},series:[...v.map(e=>{let{labelKey:n,valueKey:t}=e;return{type:"bar",xKey:"Date",yKey:t,yName:n,stacked:!0,fillOpacity:1,fill:T[n],tooltip:{renderer:e=>({title:e.yName,data:[{label:`${l}CO2e${Ree(r)}`,value:`${kee(e.datum[t],{selectedUnit:l})}`}]})}}})],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"right",...y}}),[b,m,s,v,y,T,l,r]);return(0,fe.jsx)(Kte,{title:n.title||`Carbon by source (${l}CO2e${Ree(r)})`,loading:c,error:u,retry:p,noData:C,ref:o,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:k})})},i?"exporting-pdf":void 0)},vae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),{queryVariablesFilters:i,selectedUnit:l,selectedCarbonComponents:r}=iee(),o=lee(a),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:i,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum},{field:"TotalWtt(kgCO2e)",aggregationType:gn.DF.Sum},{field:"Td(kgCO2e)",aggregationType:gn.DF.Sum}],partitions:[{field:"Scope"}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.PINK_1,f.AgChartColor.BLUE_1,f.AgChartColor.GREEN_1]),y=(0,g.useMemo)(()=>jee(s?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(yee({co2eValue:e.CO2e,wttValue:e["TotalWtt(kgCO2e)"],tdValue:e["Td(kgCO2e)"],selectedCarbonComponents:r}),{originalUnit:"kg",targetUnit:l}),Scope:`Scope ${e.Scope}`}))?.sort((e,n)=>Number(e.Scope)-Number(n.Scope)),[s,l,r]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>y?.reduce((e,n)=>e+Number(n.CO2e),0)||1,[y]),b=(0,g.useMemo)(()=>({theme:p,legend:m,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"pie",fillOpacity:1,angleKey:"CO2e",calloutLabelKey:"Scope",sectorLabelKey:"CO2e",sectorLabel:{color:"white",fontWeight:"bold",formatter:e=>{let{value:n}=e;return kee(n,{percentageOverTotal:T})}},tooltip:{renderer:e=>({data:[{label:`${l}CO2e${Ree(r)}`,value:kee(e.datum.CO2e,{selectedUnit:l})}]})}}]}),[y,p,o,T,l,m,r]);return(0,fe.jsx)(Kte,{title:n.title||"Carbon emissions by scope",loading:d,error:c,retry:u,noData:h,ref:a,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:b})})})},Cae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,selectedUnit:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Accuracy"}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>Iee(jee(s?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e.CO2e,{originalUnit:"kg",targetUnit:l}),Date:bee(e.Month),Accuracy:e.Accuracy})),["Date"],"Accuracy","CO2e")?.reduce((e,n)=>[...e,{Date:String(n.Date),AccuracyActCO2e:(Number(n.AccuracyACTCO2e)||0)+(Number(n.AccuracyActCO2e)||0),AccuracyEstCO2e:(Number(n.AccuracyESTCO2e)||0)+(Number(n.AccuracyEstCO2e)||0)}],[])?.sort(vee),[s,l]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"AccuracyActCO2e",yName:`Actual ${l}CO2e`,stacked:!0,fillOpacity:1},{type:"bar",xKey:"Date",yKey:"AccuracyEstCO2e",yName:`Estimated ${l}CO2e`,stacked:!0,fillOpacity:1}],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"right",...m}}),[y,p,o,l,m]);return(0,fe.jsx)(Kte,{title:n.title||`Carbon by data type (${l}CO2e)`,loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},kae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,selectedUnit:s,selectedCarbonComponents:d}=iee(),{data:c,loading:u,error:p,refetch:m}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum},{field:"TotalWtt(kgCO2e)",aggregationType:gn.DF.Sum},{field:"Td(kgCO2e)",aggregationType:gn.DF.Sum},{field:"MarketBasedCO2e",aggregationType:gn.DF.Sum},{field:"MarketTd(kgCO2e)",aggregationType:gn.DF.Sum},{field:"MarketTotalWtt(kgCO2e)",aggregationType:gn.DF.Sum}],partitions:[{field:"Scope"},{field:"Type"}]}}}),f=(0,g.useMemo)(()=>jee(c?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(yee({co2eValue:e.CO2e,wttValue:e["TotalWtt(kgCO2e)"],tdValue:e["Td(kgCO2e)"],selectedCarbonComponents:d}),{originalUnit:"kg",targetUnit:s}),MarketBasedCO2e:hee(fee(yee({co2eValue:e.CO2e,wttValue:e["MarketTotalWtt(kgCO2e)"],tdValue:e["MarketTd(kgCO2e)"],selectedCarbonComponents:d}),yee({co2eValue:e.CO2e,wttValue:e["TotalWtt(kgCO2e)"],tdValue:e["Td(kgCO2e)"],selectedCarbonComponents:d})),{originalUnit:"kg",targetUnit:s})}))?.sort((e,n)=>e.Scope===n.Scope?e.Type.toLowerCase().localeCompare(n.Type.toLowerCase()):e.Scope.toLowerCase().localeCompare(n.Scope.toLowerCase())),[c,s,d]),y=Boolean(f&&0===f.length),h=(0,g.useMemo)(()=>[{headerName:"Scope",field:"Scope",rowGroup:!0,hide:!0},{headerName:"Type",field:"Type"},{headerName:`Gross carbon emissions (${s}CO2e${Ree(d)})`,field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:s})},{headerName:`Net carbon emissions (${s}CO2e${Ree(d)})`,field:"MarketBasedCO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:s})}],[s,d]);return(0,fe.jsx)(Kte,{title:n.title||"Carbon emissions by scope and source",loading:u,error:p,retry:m,noData:y,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-ElectricityConsumptionPerLocationTile`,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:h,rowData:f}})})},Sae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,selectedUnit:s}=iee(),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"TotalWtt(kgCO2e)",aggregationType:gn.DF.Sum},{field:"Td(kgCO2e)",aggregationType:gn.DF.Sum}],partitions:[{field:"Type"}]}}}),m=(0,g.useMemo)(()=>jee(d?.getDashboardTileData)?.map(e=>({...e,"TotalWtt(kgCO2e)":hee(e["TotalWtt(kgCO2e)"],{originalUnit:"kg",targetUnit:s}),"Td(kgCO2e)":hee(e["Td(kgCO2e)"],{originalUnit:"kg",targetUnit:s})})).filter(e=>0!==Number(e["TotalWtt(kgCO2e)"])||0!==Number(e["Td(kgCO2e)"]))?.sort((e,n)=>e.Type.toLowerCase().localeCompare(n.Type.toLowerCase())),[d,s]),f=Boolean(m&&0===m.length),y=(0,g.useMemo)(()=>[{headerName:"Type",field:"Type"},{headerName:`Well to Tank (${s}CO2e)`,field:"TotalWtt(kgCO2e)",aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:s})},{headerName:`Transmission & Distribution (${s}CO2e)`,field:"Td(kgCO2e)",aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:s})}],[s]);return(0,fe.jsx)(Kte,{title:n.title||"Carbon WTT and TD emissions by source",loading:c,error:u,retry:p,noData:f,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-CarbonWttAndTdEmissionsBySourceTableTile`,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:y,rowData:m}})})},Nae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,selectedUnit:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Type"},{field:"Country"}]}}}),{chartTheme:p,legendTheme:m,agChartColorMap:y}=(0,f.useAgChartsTheme)(n.colors),h=(0,g.useMemo)(()=>({Electricity:y[f.AgChartColor.BLUE_1],Finances:y[f.AgChartColor.YELLOW_1],Gas:y[f.AgChartColor.GREEN_1],"Home Working":y[f.AgChartColor.PINK_3],"Hotel Stays":y[f.AgChartColor.BLUE_4],Materials:y[f.AgChartColor.GREY_1],"Refrigerants and Other Gases":y[f.AgChartColor.BLUE_3],Waste:y[f.AgChartColor.PURPLE_1],Water:y[f.AgChartColor.PINK_1],Fuel:y[f.AgChartColor.BLACK_1],"Heat and Steam":y[f.AgChartColor.RED_1],Transport:y[f.AgChartColor.YELLOW_1]}),[y]),T=(0,g.useMemo)(()=>Iee(jee(s?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e.CO2e,{originalUnit:"kg",targetUnit:l}),Type:e.Type,Country:e.Country}))?.sort((e,n)=>Number(n.CO2e)-Number(e.CO2e)),["Country"],"Type","CO2e","TotalCO2e"),[s,l]),b=(0,g.useMemo)(()=>Lee(T,{excludeKeys:["Country","TotalCO2e"],removeSuffixFromLabels:"CO2e",removePrefixFromLabels:"Type"}),[T]),v=Boolean(T&&0===T.length),C=(0,g.useMemo)(()=>({theme:p,width:o,data:T||[],zoom:{enabled:!0},series:[...b.map(e=>{let{labelKey:n,valueKey:t}=e;return{type:"bar",xKey:"Country",yKey:t,yName:n,stacked:!0,fillOpacity:1,fill:h[n],tooltip:{renderer:e=>{let{datum:t,yKey:a}=e;return{data:[{label:`${n} ${l}CO2e`,value:kee(Number(t[a]),{selectedUnit:l})},{label:`Total ${l}CO2e`,value:kee(Number(t.TotalCO2e),{selectedUnit:l})}]}}}}})],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"right",...m}}),[T,p,o,l,b,m,h]);return(0,fe.jsx)(Kte,{title:n.title||`Carbon by country (${l}CO2e)`,loading:d,error:c,retry:u,noData:v,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:C})})},i?"exporting-pdf":void 0)},Aae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,selectedUnit:s}=iee(),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Country"},{field:"Scope"}]}}}),m=(0,g.useMemo)(()=>jee(d?.getDashboardTileData)?.map(e=>({...e,Country:e.Country,Scope:e.Scope,CO2e:hee(e.CO2e,{originalUnit:"kg",targetUnit:s})}))?.sort((e,n)=>e.Scope===n.Scope?e.Country.toLowerCase().localeCompare(n.Country.toLowerCase()):e.Scope.toLowerCase().localeCompare(n.Scope.toLowerCase())),[d,s]),f=Boolean(m&&0===m.length),y=(0,g.useMemo)(()=>[{headerName:"Country",field:"Country",rowGroup:!0,hide:!0},{headerName:"Scope",field:"Scope"},{headerName:`${s}CO2e`,field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:s})}],[s]);return(0,fe.jsx)(Kte,{title:n.title||"Emissions by country and scope",loading:c,error:u,retry:p,noData:f,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-CarbonEmissionsByCountryAndScopeTableTile`,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:y,rowData:m}})})},Rae={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Polygon",coordinates:[[[3.0871,-54.4014],[3.407,-54.3486],[3.5662,-54.3224],[3.5714,-54.5157],[3.407,-54.5279],[3.2236,-54.5414],[3.0871,-54.4014]]]},properties:{name:"Bouvet Island"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[25.2703,-17.7989],[26.1873,-19.5021],[27.6166,-20.5719],[27.7788,-21.1231],[28.123,-21.5265],[28.9194,-21.7879],[29.3608,-22.1966],[28.2714,-22.6602],[27.0526,-23.648],[26.7949,-24.2778],[26.0025,-24.7193],[25.5853,-25.5825],[25.3317,-25.7424],[24.4722,-25.7662],[23.4396,-25.3063],[23.0327,-25.3248],[22.5598,-26.1926],[21.661,-26.8299],[21.2827,-26.8663],[20.7004,-26.8181],[20.8245,-26.0714],[20.6983,-25.63],[20.4129,-25.096],[19.9995,-24.752],[20.0143,-22.0939],[20.9363,-21.9709],[20.9991,-21.6023],[20.9992,-21.4074],[20.9993,-20.8507],[20.9994,-20.5666],[20.9995,-20.1422],[20.9999,-18.3196],[21.463,-18.3043],[21.7196,-18.256],[23.1849,-18.0102],[23.668,-18.4216],[24.3074,-18.0188],[25.2628,-17.7914],[25.2703,-17.7989]]]},properties:{name:"Botswana"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[31.7869,52.1115],[30.9112,52.0252],[30.5778,51.675],[30.5213,51.3278],[30.1126,51.4902],[29.3584,51.4228],[29.0542,51.6149],[28.7544,51.4177],[28.2365,51.6329],[27.7579,51.5175],[27.1051,51.7564],[25.3462,51.9465],[24.4673,51.8703],[23.6174,51.5095],[23.5477,51.6914],[23.6455,52.0553],[23.1783,52.2831],[23.8616,52.7073],[23.9162,52.9048],[23.8116,53.255],[23.5887,53.6959],[23.5147,53.9566],[24.4754,53.9309],[24.8359,54.149],[25.6697,54.195],[25.761,54.5791],[25.7708,54.7943],[25.9578,54.9506],[26.1932,55.0034],[26.3111,55.1325],[26.6447,55.1608],[26.7404,55.2639],[26.6304,55.6807],[27.6312,55.8737],[28.1546,56.1698],[30.7426,55.6294],[30.9746,54.6727],[31.8888,53.8522],[32.2832,53.7654],[32.5875,53.4898],[32.526,53.3094],[31.3967,53.0369],[31.7869,52.1115]]]},properties:{name:"Belarus"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-87.6804,17.3598],[-87.8544,17.1216],[-88.0451,17.259],[-87.8529,17.5203],[-87.6804,17.3598]]],[[[-88.9128,15.9001],[-89.1806,15.9683],[-89.1972,16.2896],[-89.147,17.8095],[-88.3168,18.4888],[-88.1381,18.1966],[-88.2692,16.8235],[-88.9128,15.9001]]]]},properties:{name:"Belize"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[44.812,39.6317],[45.6126,38.9511],[46.1407,38.8449],[46.5458,38.8781],[47.9849,39.664],[48.2959,39.3917],[48.1125,38.8555],[48.5934,38.4644],[48.8878,38.4412],[48.9806,37.8463],[49.3825,37.5063],[50.087,37.3942],[51.0059,36.7758],[51.8799,36.5928],[53.8846,36.9251],[53.9068,37.3399],[54.2432,37.3273],[54.7706,37.5063],[55.3309,38.0319],[56.7141,38.2659],[57.2392,38.2153],[57.5183,37.9459],[58.2749,37.6987],[59.3708,37.5063],[59.5306,37.1849],[60.3349,36.6789],[61.0913,36.5821],[61.2741,35.6051],[60.8534,34.3412],[60.5205,34.0684],[60.799,33.4155],[60.6222,33.069],[60.8565,32.1149],[60.8832,31.5377],[61.6443,31.3638],[61.8061,31.0542],[61.6934,30.7331],[60.873,29.8585],[61.8091,28.6605],[62.7458,28.2253],[62.8319,27.3052],[63.1741,27.1781],[63.1929,26.8423],[63.0911,26.6676],[62.4742,26.5693],[61.8842,26.2036],[61.6105,25.195],[57.5287,25.767],[56.9532,26.942],[56.4839,27.1427],[56.0946,27.0537],[55.9736,26.7682],[54.8176,26.5647],[53.6711,26.7478],[52.3164,27.6817],[51.4145,27.9721],[50.0673,30.0967],[49.5687,30.0989],[49.0414,30.3363],[48.4844,29.9791],[47.7508,31.0984],[47.7857,31.7734],[47.4435,32.3096],[46.2417,32.9842],[45.5675,33.8898],[45.5289,34.4408],[46.0875,35.1508],[46.0584,35.6666],[45.1379,36.4692],[44.7931,37.1763],[44.6485,37.4271],[44.4629,37.8096],[44.2847,37.9314],[44.4142,38.2972],[44.05,39.3628],[44.3729,39.452],[44.5021,39.717],[44.812,39.6317]]]},properties:{name:"Iran"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[13.7142,46.5227],[13.684,46.4375],[13.511,46.3484],[13.4969,46.0513],[13.5971,45.8195],[13.5962,45.8079],[13.7847,45.7428],[13.9032,45.6358],[13.836,45.5875],[13.7221,45.595],[13.5798,45.787],[13.4503,45.704],[13.3525,45.7354],[13.0988,45.6445],[12.2277,45.3255],[12.3306,45.1606],[12.3991,44.7926],[12.2699,44.63],[12.3843,44.2247],[12.4503,44.1622],[12.7507,43.9697],[13.1726,43.7503],[13.6421,43.4741],[13.743,43.2941],[13.7462,43.2888],[13.7521,43.2777],[13.7575,43.2673],[13.7642,43.2555],[13.7675,43.2502],[13.7742,43.2399],[13.7777,43.2352],[13.7907,43.1989],[13.8039,43.1717],[13.8108,43.1631],[13.8179,43.1451],[13.8291,43.1268],[13.8418,43.1032],[13.8455,43.0944],[13.8467,43.0801],[13.8495,43.0667],[13.9157,42.8946],[14.0154,42.6893],[14.1469,42.5306],[14.254,42.4448],[14.7796,42.07],[15.1382,41.927],[16.0491,41.9056],[16.0404,41.7331],[16.0247,41.4256],[16.5423,41.2294],[17.389,40.8919],[17.9006,40.6819],[18.0975,40.5154],[18.4343,40.1839],[18.3281,39.8804],[18.102,39.937],[17.7635,40.2955],[16.8673,40.3978],[16.6443,40.1191],[16.5399,39.7215],[17.0251,39.4836],[17.11,39.0493],[16.8907,38.9271],[16.7476,38.8823],[16.5724,38.7103],[16.5821,38.4698],[15.8327,37.931],[15.6528,38.1424],[15.919,38.5068],[16.2138,38.8104],[16.0932,39.0487],[15.756,39.9235],[15.6449,40.0428],[15.094,40.1788],[14.7762,40.5698],[14.4813,40.6426],[14.0321,40.8988],[13.7608,41.2232],[12.7733,41.4163],[12.3087,41.7331],[11.7338,42.1581],[11.4499,42.3777],[10.7057,42.9419],[10.2998,43.5819],[10.2581,43.8151],[10.1435,43.9754],[10.0188,44.0445],[9.5113,44.2167],[8.633,44.3798],[8.1354,43.9389],[7.5298,43.784],[7.7142,44.0615],[6.8874,44.3613],[6.9484,44.6547],[7.0658,44.7135],[6.6301,45.1099],[7.1311,45.2671],[7.1047,45.4685],[6.8024,45.7786],[7.0449,45.9224],[7.8641,45.9168],[7.8771,45.927],[8.3847,46.4522],[8.7139,46.0973],[8.9121,45.8304],[9.1594,46.1696],[9.2485,46.2338],[9.3475,46.472],[10.0507,46.335],[10.1739,46.5798],[10.4528,46.5307],[10.4697,46.8549],[10.9817,46.8074],[11.1643,46.9657],[11.6272,47.0133],[11.8572,47.0038],[12.136,47.0807],[12.2407,47.0692],[12.2117,46.8968],[12.4779,46.6798],[12.6906,46.657],[12.7314,46.6343],[13.5042,46.5663],[13.7142,46.5227]],[[12.3624,41.8843],[12.3911,41.869],[12.5186,41.8784],[12.4897,41.9547],[12.4327,41.9402],[12.3624,41.8843]],[[12.453,43.8945],[12.4624,43.8938],[12.4688,43.8966],[12.4874,43.8965],[12.4931,43.9069],[12.47,43.973],[12.4504,43.8972],[12.453,43.8945]]],[[[13.2265,38.1933],[14.1835,38.0194],[15.3432,38.1648],[15.2581,37.8072],[15.0915,37.3577],[15.2479,37.0747],[15.0004,36.7028],[14.5732,36.7696],[14.3376,37.002],[14.0362,37.106],[12.8965,37.5771],[12.6447,37.6388],[12.5503,37.9303],[12.9773,38.0402],[13.2265,38.1933]]],[[[12.1937,36.8246],[11.9944,36.6104],[11.76,36.8816],[11.856,36.9636],[12.1937,36.8246]]],[[[9.5207,39.1815],[8.6124,38.9578],[8.3658,39.0693],[8.393,39.4465],[8.5023,39.713],[8.4666,40.1984],[8.3998,40.4076],[8.2316,40.795],[8.8027,40.931],[9.3804,41.196],[9.7494,40.6581],[9.628,40.1984],[9.6511,39.5493],[9.5207,39.1815]]]]},properties:{name:"Italy"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-2.3643,49.2882],[-2.014,49.2781],[-1.9469,49.1354],[-2.2715,49.1496],[-2.3643,49.2882]]]},properties:{name:"Jersey"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-78.2914,18.2884],[-78.0766,18.4752],[-77.4957,18.4829],[-76.915,18.3837],[-76.3799,18.0417],[-76.4044,17.9423],[-77.4957,17.8484],[-78.2914,18.2884]]]},properties:{name:"Jamaica"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[39.2009,32.1543],[37.0883,31.5014],[37.9246,30.5466],[37.4562,30.0187],[36.7808,29.8457],[36.081,29.223],[34.957,29.3567],[34.9601,29.359],[34.9666,29.3638],[34.9608,29.3683],[34.9642,29.3734],[34.9622,29.3799],[34.9662,29.3879],[34.9604,29.3984],[34.9681,29.4029],[34.9749,29.4098],[34.9708,29.4219],[34.9731,29.4313],[34.9668,29.4462],[34.9764,29.4623],[34.9751,29.4701],[34.9771,29.4738],[34.9915,29.5015],[34.9938,29.5101],[35,29.5161],[35,29.524],[34.9982,29.5287],[34.9911,29.5349],[34.9782,29.5418],[35.476,31.4905],[35.5551,32.389],[35.6716,32.6911],[36.8551,32.3662],[38.7925,33.3747],[39.2009,32.1543]]]},properties:{name:"Jordan"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[143.7459,42.7022],[143.2036,42.1068],[142.9945,42.1068],[141.8174,42.5459],[141.0993,42.4226],[140.6396,42.4965],[140.4363,42.2295],[140.9257,41.8218],[140.1806,41.5037],[139.8677,42.3012],[140.4815,43.2037],[141.3431,43.391],[141.7074,44.4718],[141.6927,45.172],[141.922,45.3698],[143.6403,44.2562],[145.1581,43.9917],[145.2182,43.1959],[143.7459,42.7022]]],[[[142.3139,27.64],[142.2605,27.3207],[141.974,27.5119],[142.1367,27.7013],[142.3139,27.64]]],[[[141.3843,41.3148],[141.4656,40.6779],[141.9617,39.9522],[141.9127,39.3419],[141.4592,38.4797],[140.9518,38.091],[141.0202,37.2545],[140.6044,36.3526],[140.7576,35.7614],[140.3355,35.2033],[139.8772,34.9981],[139.847,35.2989],[140.0474,35.5553],[139.8713,35.5787],[139.2019,35.1931],[138.9179,34.7682],[138.8207,34.7851],[138.7345,35.13],[138.1493,34.6372],[137.4608,34.6762],[136.735,34.9873],[136.654,34.5805],[136.8518,34.5186],[136.8251,34.3817],[136.373,34.171],[135.7332,33.502],[135.1309,33.9027],[135.1434,34.3064],[135.4375,34.5805],[135.2971,34.6852],[134.9658,34.5805],[134.7432,34.7231],[134.2243,34.6772],[134.2243,34.3503],[134.491,34.2284],[134.8237,34.4083],[134.9082,34.3112],[134.6652,34.1592],[134.65,33.8435],[134.2243,33.4048],[134.1674,33.2633],[133.7255,33.5211],[133.362,33.4095],[132.8394,32.79],[132.396,33.0202],[132.4776,33.2633],[132.3856,33.4772],[132.7772,33.9829],[132.7523,34.1208],[132.4453,34.2682],[132.2094,33.9829],[132.2703,33.8237],[132.1182,33.7695],[131.8767,33.9829],[130.9728,33.9651],[131.1571,33.6347],[131.6728,33.6428],[131.6913,33.2633],[131.9458,32.8316],[131.5257,32.0747],[131.3905,31.502],[130.8656,31.1442],[130.6665,31.4888],[130.5626,31.2684],[130.2842,31.2779],[130.1614,32.1463],[129.9792,32.252],[130.0512,32.4653],[130.1883,32.5441],[130.2633,32.3751],[130.4852,32.3881],[130.4599,32.5245],[130.6204,32.581],[130.4164,33.0226],[130.1883,33.1315],[130.1883,32.7764],[129.78,32.7169],[129.5281,33.3202],[129.8479,33.5638],[130.145,33.5906],[130.4633,33.8723],[130.8524,33.9651],[130.9359,34.3818],[131.5257,34.5557],[131.8033,34.6874],[132.902,35.5294],[134.2243,35.5441],[135.162,35.7225],[135.4529,35.4853],[135.9832,35.6504],[136.0372,36.0428],[136.6944,36.7816],[136.7192,37.2545],[136.8244,37.3689],[137.2308,37.4549],[137.2348,37.3314],[136.9482,37.1061],[137.2679,36.803],[138.3599,37.2545],[139.3692,38.1345],[139.7816,38.867],[140.0439,39.668],[139.7196,39.9522],[139.9682,40.1985],[139.9278,40.6275],[140.2332,40.8438],[140.3716,41.1996],[140.7139,40.9245],[141.1719,40.9888],[141.1952,41.212],[140.8212,41.207],[140.9694,41.4952],[141.3843,41.3148]]],[[[141.4516,45.128],[141.2428,45.0076],[141.0125,45.1926],[141.1655,45.3497],[141.4516,45.128]]],[[[138.5999,38.058],[138.2952,37.8091],[138.2018,38.0174],[138.4719,38.2694],[138.5999,38.058]]],[[[133.4804,36.2723],[133.3682,36.0854],[133.2079,36.1234],[133.0802,35.9376],[132.8788,36.0841],[133.2778,36.4247],[133.4804,36.2723]]],[[[131.3757,25.7243],[131.066,25.7087],[131.1244,25.9636],[131.3461,26.0201],[131.3757,25.7243]]],[[[131.1503,30.505],[130.9761,30.4341],[130.8236,30.6856],[131.0942,30.8134],[131.1503,30.505]]],[[[130.6362,30.224],[130.4351,30.1966],[130.3349,30.3737],[130.4617,30.4917],[130.7217,30.3928],[130.6362,30.224]]],[[[129.34,34.4432],[129.3736,34.0703],[129.0985,34.1138],[129.2238,34.6098],[129.5626,34.7815],[129.5177,34.5074],[129.34,34.4432]]],[[[129.5144,28.4103],[129.4426,28.0497],[129.2902,28.0849],[129.1927,28.335],[129.5144,28.4103]]],[[[129.0434,32.7774],[128.7058,32.5712],[128.5822,32.6539],[129.0065,32.9667],[129.0434,32.7774]]],[[[128.0224,26.4734],[127.8872,26.2837],[127.735,26.3854],[127.883,26.6917],[128.0096,26.6917],[128.0224,26.4734]]],[[[124.1338,24.3741],[123.9283,24.1489],[123.6603,24.4046],[123.7167,24.4693],[124.1338,24.3741]]],[[[123.2932,24.4998],[123.1436,24.3506],[122.6928,24.4117],[122.8343,24.5471],[123.2932,24.4998]]]]},properties:{name:"Japan"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[35.9477,4.62],[36.9621,4.3833],[38.1026,3.6459],[38.9731,3.5158],[39.5667,3.5224],[39.9305,3.8858],[40.708,4.2326],[41.2328,3.9616],[41.9101,3.9823],[41.0171,2.6734],[41.0554,-.8786],[41.5645,-1.6558],[41.4558,-1.766],[40.8487,-2.2733],[40.2335,-2.7873],[39.6021,-4.2684],[39.2042,-4.6703],[37.7537,-3.6303],[37.5178,-2.9658],[36.2553,-2.2733],[35.6903,-1.9633],[35.4478,-1.8303],[35.3306,-1.766],[33.934,-.9999],[33.9422,-.8786],[34.0186,.252],[34.5428,1.1019],[34.9796,1.7951],[34.8669,2.5352],[34.5428,3.1339],[34.4095,3.6353],[33.9945,4.2144],[34.3785,4.62],[35.5088,4.62],[35.9477,4.62]]]},properties:{name:"Kenya"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[80.2456,42.2209],[80.0734,42.1059],[79.6793,41.8428],[79.2841,41.7331],[78.9227,41.6328],[78.124,41.0801],[76.8949,40.9933],[76.3508,40.3902],[75.7474,40.329],[75.5366,40.5992],[74.004,40.0502],[73.8806,39.5608],[73.6582,39.4651],[73.4844,39.4679],[72.2515,39.2305],[71.4569,39.5692],[70.8614,39.4289],[70.4856,39.5952],[69.5209,39.5656],[69.3322,39.7854],[69.5137,40.0502],[69.6253,40.1138],[70.0058,40.2165],[70.5257,40.0502],[70.6555,40.0502],[70.9676,40.2285],[71.7869,40.2283],[72.7923,40.7655],[71.8407,41.3602],[71.2273,41.179],[70.6296,41.3903],[70.4493,41.5111],[70.4682,41.7331],[71.0708,42.1059],[71.177,42.1716],[70.9402,42.2592],[71.0385,42.3929],[71.555,42.7757],[73.3125,42.5357],[73.7513,43.0076],[74.2231,43.1398],[75.4801,42.8656],[77.0929,42.9409],[78.8408,42.7334],[79.8198,42.3929],[80.2456,42.2209]]]},properties:{name:"Kyrgyzstan"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[104.4386,10.4245],[103.6272,10.5957],[103.5771,11.0007],[103.1292,10.9936],[102.9109,11.6472],[102.9011,11.7642],[102.7276,12.1572],[102.7756,12.435],[102.524,12.6873],[102.5082,13.006],[102.3986,13.1639],[102.4114,13.5271],[103.1615,14.3049],[105.2001,14.3427],[106.0246,13.9409],[106.0779,14.3576],[106.6894,14.4307],[106.9803,14.3702],[107.5561,14.6866],[107.407,14.1765],[107.5795,13.4943],[107.4792,12.4166],[105.9956,11.599],[106.102,10.9073],[105.2582,10.9203],[104.4386,10.4245]]]},properties:{name:"Cambodia"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[159.2966,-31.6438],[159.1312,-31.6991],[158.8469,-31.3638],[159.0007,-31.2949],[159.2966,-31.6438]]],[[[155.9704,-17.2969],[155.973,-17.556],[155.7584,-17.5196],[155.6617,-17.345],[155.8034,-17.2219],[155.9704,-17.2969]]],[[[143.3715,-12.6082],[143.8063,-14.3006],[144.5405,-14.2989],[145.232,-14.9531],[145.5013,-16.4924],[145.9725,-17.1891],[146.4035,-18.9198],[149.0378,-20.302],[149.0683,-20.4459],[148.7901,-20.6295],[149.249,-21.1971],[149.7084,-22.3402],[150.0021,-22.1271],[150.7057,-22.5271],[150.9186,-23.4939],[152.6114,-25.0964],[152.8872,-25.2023],[153.285,-25.029],[153.0982,-26.3843],[153.1753,-27.2224],[153.4694,-27.6758],[153.5647,-28.7456],[152.8692,-31.5895],[152.4464,-32.4572],[151.5009,-33.2363],[150.2193,-35.8375],[149.8727,-37.5021],[149.3792,-37.7606],[147.7855,-37.9714],[146.3968,-38.788],[146.2835,-39.0539],[145.0217,-38.4085],[144.887,-37.9609],[144.6176,-38.2848],[143.432,-38.777],[142.3993,-38.3878],[141.4856,-38.3568],[140.4176,-37.883],[139.8416,-37.2501],[139.7534,-36.5051],[139.3294,-35.8924],[138.8109,-35.5927],[138.2753,-35.5625],[138.4692,-34.8268],[138.128,-34.2953],[137.5221,-35.1263],[136.9587,-35.1346],[137.0529,-34.9514],[137.4216,-34.7907],[137.5221,-34.1005],[137.8794,-33.508],[137.9169,-32.8395],[137.5221,-33.0944],[136.0338,-34.4602],[135.9271,-34.8001],[135.6967,-34.8212],[135.4824,-34.6888],[134.8275,-33.4176],[134.3206,-33.0516],[134.1826,-32.6088],[133.6319,-32.2527],[132.2258,-31.9878],[131.2217,-31.5341],[129.2891,-31.663],[127.2572,-32.2475],[125.8716,-32.3456],[124.3256,-33.0179],[123.8423,-33.6636],[123.286,-33.9514],[120.033,-33.9575],[119.378,-34.4489],[117.8687,-35.073],[116.654,-35.0256],[116.0491,-34.81],[115.0278,-34.0106],[115.0605,-33.7253],[115.6402,-33.1935],[115.7013,-31.8384],[115.0463,-30.3686],[114.8743,-29.2035],[114.2243,-28.1324],[113.7431,-26.8072],[113.8982,-26.2244],[114.1168,-26.3553],[114.1982,-26.0276],[113.4607,-24.3896],[113.9093,-22.1271],[114.0134,-21.9227],[114.2925,-22.4072],[114.5846,-21.9122],[115.2139,-21.5393],[115.4685,-21.5224],[115.8755,-21.1998],[116.6373,-20.5215],[117.5124,-20.6781],[119.1302,-20.0296],[119.7266,-19.9948],[121.0812,-19.5399],[122.2487,-18.1397],[122.1926,-17.3851],[122.3787,-17.012],[122.8903,-16.6285],[123.426,-17.1848],[123.6661,-17.1235],[123.7459,-16.9045],[123.4248,-16.524],[123.42,-16.11],[124.3935,-16.25],[124.5049,-15.3163],[124.9746,-15.1558],[125.2466,-14.4512],[125.6992,-14.472],[125.9939,-14.2521],[126.0438,-13.9079],[126.5201,-14.1004],[126.8112,-13.8389],[127.3487,-13.9719],[128.0612,-14.6176],[128.2075,-15.0149],[128.5841,-14.8256],[129.536,-14.8953],[129.4737,-14.2464],[130.1384,-13.3701],[130.4102,-12.6682],[131.0988,-12.2102],[132.0646,-12.2717],[132.5565,-12.0334],[132.5268,-11.6283],[132.0463,-11.4709],[131.9684,-11.2603],[135.123,-12.2306],[135.8323,-12.1924],[136.496,-11.9267],[136.813,-12.4018],[136.5071,-13.0754],[135.9222,-13.4949],[136.167,-13.8234],[135.5535,-14.5414],[135.4682,-14.8617],[136.3046,-15.5358],[136.835,-15.5487],[136.881,-15.6719],[136.6733,-15.7347],[136.7543,-15.8652],[137.5221,-16.1578],[139.9767,-17.6244],[140.7841,-17.4143],[141.3251,-16.2907],[141.5836,-15.2458],[141.5086,-13.89],[141.7907,-12.7449],[141.7342,-12.2479],[142.1218,-11.1308],[142.4452,-10.8017],[142.7381,-11.1191],[142.901,-11.8067],[143.3715,-12.6082]]],[[[149.3052,-15.9431],[149.1402,-16.2252],[148.9648,-16.1924],[149.1548,-15.7879],[149.3052,-15.9431]]],[[[149.2777,-17.0875],[149.0543,-17.1564],[148.9714,-16.9853],[149.0282,-16.8454],[149.2765,-16.8752],[149.2777,-17.0875]]],[[[148.3998,-40.4443],[148.1487,-40.5268],[147.8945,-40.1393],[147.8945,-39.7542],[148.2461,-39.9791],[148.3998,-40.4443]]],[[[145.5098,-40.871],[146.175,-41.1528],[146.8238,-41.129],[146.9568,-41.0118],[148.1511,-40.8069],[148.278,-41.0944],[148.2549,-41.9098],[147.8895,-42.7506],[147.9785,-42.9314],[147.8895,-43.1614],[147.5227,-43.046],[147.4265,-43.2354],[146.8859,-43.5748],[146.0882,-43.5296],[145.4941,-42.9411],[145.2782,-42.5438],[145.3213,-42.1548],[144.8812,-41.6283],[144.6774,-41.129],[144.7947,-40.6765],[145.5098,-40.871]]],[[[144.1221,-40.0012],[143.9274,-40.1309],[143.847,-39.92],[143.963,-39.5844],[144.1125,-39.6906],[144.1221,-40.0012]]],[[[143.618,-9.687],[143.3843,-9.8851],[143.1337,-9.7773],[143.373,-9.5873],[143.618,-9.687]]],[[[142.3386,-10.7332],[142.1641,-10.8484],[142.0643,-10.5364],[141.9054,-10.4878],[141.9453,-10.2793],[142.2907,-10.0598],[142.4221,-10.159],[142.1947,-10.3637],[142.3386,-10.7332]]],[[[139.4754,-16.6758],[139.2364,-16.7256],[139.1597,-16.6319],[139.3119,-16.4637],[139.544,-16.3972],[139.6519,-16.4731],[139.4754,-16.6758]]],[[[138.2414,-35.8657],[138.0753,-35.9737],[137.7635,-35.804],[138.0132,-35.6618],[138.2414,-35.8657]]],[[[137.7266,-35.8128],[137.5253,-36.022],[136.6355,-35.9795],[136.6141,-35.7793],[137.3114,-35.5824],[137.5997,-35.5867],[137.7266,-35.8128]]],[[[136.8058,-13.8258],[136.8024,-14.2601],[136.4606,-14.2217],[136.3797,-13.6939],[136.6855,-13.6875],[136.8058,-13.8258]]],[[[130.4534,-11.2221],[130.6917,-11.3805],[131.1161,-11.2597],[131.417,-11.2588],[131.4688,-11.6059],[130.943,-11.9338],[130.6937,-11.7998],[130.2008,-11.7619],[130.1512,-11.7057],[130.2545,-11.3476],[130.4534,-11.2221]]],[[[123.7093,-12.6268],[123.6241,-12.7447],[123.4844,-12.6569],[123.4103,-12.4125],[123.5695,-12.3123],[123.7093,-12.6268]]],[[[122.3117,-16.9294],[122.074,-16.9798],[121.8675,-16.856],[121.9528,-16.7655],[122.2908,-16.7555],[122.3117,-16.9294]]],[[[113.7008,-26.0876],[113.5801,-26.0937],[113.4135,-25.6794],[113.4904,-25.5869],[113.7618,-25.8839],[113.7008,-26.0876]]],[[[113.5749,-26.4047],[113.2979,-26.4047],[113.1899,-26.1588],[113.3362,-26.0519],[113.5749,-26.4047]]]]},properties:{name:"Australia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-70.1872,12.5799],[-70.173,12.7716],[-69.7737,12.4417],[-69.7655,12.2842],[-70.1872,12.5799]]]},properties:{name:"Aruba"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[48.5735,41.8254],[48.6559,41.7331],[49.5501,40.732],[50.1459,40.4007],[49.5004,40.0607],[49.2098,39.2264],[48.9454,38.9508],[48.8878,38.4412],[48.5934,38.4644],[48.1125,38.8555],[48.2959,39.3917],[47.9849,39.664],[46.5458,38.8781],[46.4532,39.4681],[45.8952,39.8651],[45.9149,40.1148],[45.9168,40.2364],[45.6126,40.4017],[45.4264,40.634],[45.4846,40.9218],[45.0131,41.2966],[46.5337,41.1855],[46.5821,41.3432],[46.2829,41.7331],[46.4205,41.9043],[46.7291,41.7331],[47.6587,41.2176],[48.5735,41.8254]]],[[[46.1407,38.8449],[45.6126,38.9511],[44.812,39.6317],[44.7683,39.7141],[45.6126,39.5652],[45.9781,39.2712],[46.1407,38.8449]]]]},properties:{name:"Azerbaijan"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[19.0221,44.8554],[19.3512,44.8891],[19.1422,44.422],[19.4971,44.0991],[19.4764,43.6372],[19.2241,43.5275],[18.7067,43.1554],[18.4381,42.5557],[18.1539,42.6893],[17.4508,43.1769],[16.5443,43.9742],[16.4384,44.0425],[16.1724,44.2092],[16.1322,44.4545],[15.7367,44.9356],[15.84,45.2245],[16.2537,45.0676],[17.1412,45.1633],[17.4433,45.1597],[17.8339,45.0615],[18.019,45.1294],[18.5297,45.0875],[18.7408,45.0207],[18.8337,44.8701],[19.0221,44.8554]]]},properties:{name:"Bosnia and Herzegovina"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-59.7048,13.2272],[-59.5985,13.3256],[-59.3407,13.1483],[-59.4786,12.9895],[-59.6562,13.0331],[-59.7048,13.2272]]]},properties:{name:"Barbados"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[92.6068,21.9712],[92.6238,21.4616],[92.3081,21.3804],[92.2021,21.1507],[91.7732,22.2937],[91.4733,22.6557],[90.6837,22.0496],[89.4416,21.7456],[89.0628,21.9257],[88.9238,23.0935],[88.6343,23.6942],[88.6844,24.2282],[88.1499,24.6608],[88.8173,25.3069],[88.2105,25.8776],[88.5924,26.3771],[89.1233,26.2142],[89.7217,26.0307],[90.0071,25.3633],[92.2478,25.0052],[92.1082,24.5094],[91.453,24.0284],[91.2736,23.6319],[91.6475,23.1403],[92.0094,23.5264],[92.1892,23.5198],[92.6068,21.9712]]]},properties:{name:"Bangladesh"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[6.021,50.7543],[6.3156,50.497],[6.405,50.3233],[6.1377,50.13],[6.0249,50.1828],[5.7463,49.8536],[5.8181,49.5463],[5.7346,49.5457],[5.4709,49.4972],[5.3935,49.6171],[5.1537,49.7179],[4.9694,49.8018],[4.7928,50.147],[4.4325,49.9416],[4.2331,49.9578],[4.1409,49.9788],[4.0278,50.3583],[3.7407,50.358],[3.6555,50.4617],[3.6151,50.4904],[3.3897,50.5453],[3.2453,50.713],[3.0985,50.779],[3.0187,50.7735],[3.0149,50.7736],[3.0112,50.7702],[3.0059,50.7661],[2.9833,50.7572],[2.9722,50.7502],[2.9642,50.75],[2.9566,50.7529],[2.9401,50.7453],[2.938,50.7402],[2.9442,50.732],[2.9372,50.73],[2.9306,50.7262],[2.93,50.7117],[2.9223,50.7028],[2.9116,50.7031],[2.9092,50.6945],[2.9004,50.6933],[2.8864,50.7057],[2.8701,50.7029],[2.8633,50.7083],[2.607,50.9127],[2.546,51.0894],[2.7491,51.1618],[3.1107,51.3123],[3.3658,51.3698],[3.3807,51.2743],[3.8563,51.2111],[3.9777,51.2251],[4.2348,51.3483],[4.242,51.354],[4.2437,51.3747],[4.2796,51.376],[4.6695,51.4264],[4.7599,51.5025],[5.1022,51.429],[5.2377,51.2616],[5.5663,51.2208],[5.7983,51.0599],[5.7661,51.0087],[5.6876,50.8119],[5.8191,50.7146],[6.021,50.7543]]]},properties:{name:"Belgium"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[.2293,14.9897],[.1942,14.5692],[.4331,14.031],[.7453,13.7626],[.9463,13.5898],[1.0371,13.0366],[1.5993,12.6512],[2.1167,12.6689],[2.1412,12.269],[2.4051,11.8998],[2.0416,11.5059],[1.4594,11.3946],[.9122,10.9965],[.7453,11.019],[-.142,11.139],[-.6868,10.9912],[-1.8933,10.9871],[-2.7279,10.9884],[-2.7863,10.8872],[-2.9125,10.6685],[-2.7863,10.0094],[-2.6869,9.4907],[-2.7863,9.5629],[-3.198,9.8618],[-3.3739,9.8912],[-3.6098,9.9307],[-4.3699,9.6182],[-4.812,9.777],[-5.117,10.2222],[-5.5189,10.4333],[-5.2335,11.6898],[-4.5928,12.2275],[-4.1467,13.1869],[-3.4208,13.2926],[-2.6484,14.1311],[-2.1123,14.2218],[-1.8933,14.4694],[-1.7859,14.5221],[-.721,15.0452],[.2293,14.9897]]]},properties:{name:"Burkina Faso"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.5789,43.7387],[28.498,43.4341],[28.0602,43.3164],[27.8826,42.8384],[27.7205,42.3929],[27.9411,42.1059],[28.0355,41.9831],[27.0597,42.0883],[26.9492,42.0002],[26.5615,41.9263],[26.3579,41.7111],[25.9486,41.3203],[25.9064,41.3076],[25.2247,41.2646],[25.1794,41.3102],[24.784,41.3602],[24.4917,41.5436],[24.0597,41.5221],[23.6242,41.3757],[23.4604,41.4025],[22.9276,41.3385],[22.9683,41.5198],[22.9254,41.7331],[22.8672,42.0222],[22.6425,42.1059],[22.5104,42.1552],[22.3602,42.3112],[22.4615,42.6485],[22.4428,42.8255],[22.5155,42.8685],[22.7484,42.8898],[23.0062,43.1929],[22.7475,43.3866],[22.667,43.4027],[22.4069,43.7517],[22.5361,44.0455],[22.6752,44.2157],[22.9664,44.0983],[22.9972,43.8079],[23.1554,43.8123],[23.6304,43.791],[24.112,43.6999],[24.3235,43.6977],[24.6548,43.7236],[25.2964,43.6554],[25.5445,43.6428],[25.6722,43.6881],[26.3582,44.0372],[26.3818,44.0386],[27.2713,44.1263],[27.6954,43.9873],[28.5789,43.7387]]]},properties:{name:"Bulgaria"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[50.3613,26.1572],[50.4618,26.2513],[50.6533,26.1748],[50.616,25.8703],[50.4541,25.9299],[50.3613,26.1572]]]},properties:{name:"Bahrain"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[29.4233,-4.4475],[29.0406,-2.7438],[29.1824,-2.638],[29.7073,-2.7799],[30.0189,-2.4386],[30.5433,-2.4132],[30.472,-2.8532],[30.806,-3.0324],[30.8015,-3.2214],[30.0119,-4.2813],[29.4233,-4.4475]]]},properties:{name:"Burundi"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[3.5631,11.7331],[3.7869,10.624],[3.5493,9.9526],[3.407,9.7552],[2.7788,8.8841],[2.7094,6.3757],[1.6287,6.2345],[1.7479,6.3304],[1.5719,6.8296],[1.6158,8.974],[1.3304,9.9647],[.9463,10.2593],[.7968,10.3989],[.8005,10.6685],[.9122,10.9965],[1.4594,11.3946],[2.0416,11.5059],[2.4051,11.8998],[2.4326,12.2297],[2.8313,12.3625],[3.407,11.8673],[3.5631,11.7331]]]},properties:{name:"Benin"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-62.979,17.9891],[-62.8672,17.912],[-62.7774,17.9639],[-62.6999,17.8746],[-62.866,17.8245],[-62.979,17.9891]]]},properties:{name:"Saint Barthélemy"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-65.2669,32.2352],[-65.1432,32.1305],[-64.5569,32.4167],[-64.5745,32.5468],[-64.3621,32.4789],[-64.8349,32.1658],[-65.1885,32.0922],[-65.2669,32.2352]]]},properties:{name:"Bermuda"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[115.1546,4.9128],[115.1809,4.6253],[114.8561,4.647],[114.6759,4.1459],[114.0715,4.5889],[114.9395,4.9924],[115.1546,4.9128]],[[115.0116,4.8917],[115.0194,4.8894],[115.0208,4.8858],[115.0139,4.8753],[115.0228,4.8731],[115.0228,4.8704],[115.0148,4.8563],[115.0184,4.8524],[115.0227,4.8354],[115.0173,4.8184],[115.0173,4.8131],[115.0317,4.7987],[115.0341,4.7979],[115.0359,4.8044],[115.0306,4.8176],[115.0314,4.8232],[115.0448,4.8388],[115.0531,4.86],[115.0293,4.8796],[115.0284,4.8951],[115.0116,4.8917]]]},properties:{name:"Brunei"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-58.1635,-20.1625],[-58.2561,-19.7822],[-59.1211,-19.2995],[-59.9788,-19.3035],[-61.658,-19.6476],[-62.2348,-20.5542],[-62.6104,-22.1424],[-62.6452,-22.2505],[-63.1001,-22.0135],[-63.774,-22.0199],[-64.3371,-22.6392],[-64.7318,-22.1889],[-66.1231,-21.8884],[-67.1775,-22.8047],[-67.8122,-22.812],[-67.9519,-22.1424],[-68.1699,-21.5829],[-68.186,-21.287],[-68.3472,-21.0169],[-68.7187,-20.3202],[-68.4825,-19.3753],[-68.8976,-18.9789],[-69.0894,-18.1169],[-69.4726,-17.499],[-69.5634,-17.2192],[-68.8869,-16.3343],[-69.2396,-16.0733],[-69.3798,-15.6492],[-69.1901,-15.2484],[-69.3052,-14.785],[-68.8868,-14.1931],[-68.9523,-12.9637],[-68.7259,-12.4796],[-69.5103,-10.9543],[-68.5679,-11.0587],[-66.6161,-9.9352],[-65.4168,-9.8233],[-65.2426,-11.4858],[-64.4633,-12.3126],[-63.4294,-12.6018],[-61.7725,-13.4912],[-61.0701,-13.5338],[-60.5969,-13.7761],[-60.1059,-16.1795],[-58.4129,-16.4288],[-58.3443,-17.1387],[-57.8067,-17.6314],[-57.6125,-18.2358],[-58.0283,-19.5601],[-57.9822,-19.9775],[-58.1635,-20.1625]]]},properties:{name:"Bolivia"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-67.1775,-22.8047],[-67.0288,-23.0701],[-67.3388,-23.9728],[-68.1852,-24.386],[-68.5056,-24.7511],[-68.4182,-25.0728],[-68.5762,-25.3721],[-68.4207,-26.0951],[-68.5625,-26.4666],[-68.3337,-26.93],[-68.7444,-27.191],[-69.0586,-27.6623],[-69.6223,-28.4279],[-69.9632,-29.3913],[-69.8858,-30.2257],[-70.5245,-31.3244],[-70.0282,-32.9751],[-69.7883,-33.4437],[-69.8573,-34.177],[-70.4916,-35.194],[-70.4275,-36.05],[-71.0288,-36.5279],[-71.1446,-36.85],[-71.0074,-38.3952],[-70.8969,-38.6298],[-71.3805,-38.9559],[-71.6473,-39.7234],[-71.8698,-41.0051],[-71.7579,-42.0332],[-72.1151,-42.3196],[-72.0854,-42.897],[-71.774,-43.2167],[-71.8492,-43.481],[-71.5891,-43.6776],[-71.6484,-43.8615],[-71.7271,-44.2778],[-71.2402,-44.6116],[-71.7838,-44.8667],[-71.4171,-45.2791],[-71.7062,-45.6759],[-71.8582,-47.009],[-72.4113,-47.8215],[-72.3592,-48.2851],[-72.5453,-48.6615],[-73.3904,-49.2987],[-73.4824,-49.619],[-73.5128,-50.1948],[-73.3262,-50.5264],[-73.1348,-50.6998],[-72.7285,-50.6302],[-72.3501,-50.7088],[-72.3194,-51.5264],[-71.8645,-51.952],[-69.9918,-52.0205],[-68.7018,-52.3124],[-69.2271,-52.2196],[-69.4436,-52.3513],[-69.1363,-52.6596],[-68.7018,-52.5998],[-68.6086,-52.6495],[-68.6082,-53.5411],[-68.6075,-54.8934],[-68.6158,-54.9019],[-68.399,-54.9469],[-67.754,-54.9019],[-67.6519,-54.9064],[-67.3051,-55.1588],[-68.3668,-55.5442],[-69.4001,-55.5008],[-70.7663,-54.871],[-71.2784,-54.946],[-73.2332,-54.0189],[-73.8055,-53.2904],[-73.346,-53.2318],[-73.3566,-52.9965],[-74.8772,-52.1327],[-74.954,-51.4749],[-74.7321,-51.1646],[-74.9112,-50.7134],[-74.5482,-50.1266],[-74.8052,-50.1022],[-75.2986,-50.3995],[-75.5487,-49.0989],[-75.3736,-48.8505],[-75.4213,-48.3697],[-74.5858,-48.1136],[-74.2009,-47.5096],[-74.4279,-46.8667],[-75.3599,-46.8124],[-75.4953,-46.6339],[-74.4965,-45.4889],[-74.2857,-44.2389],[-73.7298,-43.9727],[-73.6399,-44.5323],[-73.4196,-44.6435],[-72.6044,-42.2863],[-72.8183,-41.733],[-73.1808,-41.8254],[-73.2645,-42.3159],[-73.624,-42.6409],[-73.6999,-43.1792],[-73.9552,-43.3108],[-74.1693,-43.1982],[-74.1247,-42.4395],[-73.7858,-41.7002],[-73.8086,-40.574],[-73.3248,-39.3449],[-73.5163,-37.3961],[-72.2518,-35.0886],[-71.5136,-32.6493],[-71.6509,-30.8281],[-71.3907,-29.8674],[-71.4575,-28.943],[-70.6623,-26.2968],[-70.4799,-25.0536],[-70.5185,-23.2234],[-70.2163,-21.8582],[-70.1569,-20.0275],[-70.3762,-18.3536],[-69.9206,-18.183],[-69.7443,-17.665],[-69.4726,-17.499],[-69.0894,-18.1169],[-68.8976,-18.9789],[-68.4825,-19.3753],[-68.7187,-20.3202],[-68.3472,-21.0169],[-68.186,-21.287],[-68.1699,-21.5829],[-67.9519,-22.1424],[-67.8122,-22.812],[-67.1775,-22.8047]]],[[[-67.4254,-55.5888],[-67.3754,-55.983],[-67.5914,-55.8994],[-67.7233,-55.7422],[-67.7233,-55.3884],[-67.4254,-55.5888]]],[[[-68.5111,-56.3814],[-68.5101,-56.5589],[-69.0158,-56.5093],[-68.9102,-56.3725],[-68.5111,-56.3814]]],[[[-69.0718,-55.7921],[-69.1137,-55.9825],[-69.5704,-55.7994],[-69.4497,-55.6961],[-69.0718,-55.7921]]],[[[-72.9266,-42.8634],[-73.1143,-42.885],[-73.1932,-42.7366],[-73.0779,-42.4871],[-72.9238,-42.4746],[-72.9906,-42.7002],[-72.9266,-42.8634]]],[[[-74.736,-47.9138],[-75.2478,-48.0023],[-75.2288,-47.8864],[-74.8877,-47.7275],[-74.736,-47.9138]]],[[[-78.9289,-33.5366],[-78.7724,-33.8838],[-79.0279,-33.823],[-79.1771,-33.5871],[-78.9289,-33.5366]]],[[[-79.6161,-26.3664],[-79.8105,-26.4758],[-80.1288,-26.3703],[-79.9074,-26.1932],[-79.6161,-26.3664]]],[[[-105.1993,-26.4128],[-105.2813,-26.6869],[-105.5616,-26.448],[-105.4088,-26.2983],[-105.1993,-26.4128]]]]},properties:{name:"Chile"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[15.5075,7.5275],[14.5004,6.0684],[14.5544,5.3255],[15.1777,3.8331],[16.0122,2.9309],[16.192,2.2205],[16.0227,1.7813],[14.5151,2.1889],[13.299,2.1706],[11.8459,2.2795],[11.3346,2.1739],[10.1506,2.1693],[9.8215,2.3478],[9.9418,3.1147],[9.5717,3.8991],[9.0721,4.0643],[8.5392,4.7005],[8.5638,4.8182],[8.9762,5.9087],[10.0174,6.8872],[10.6677,6.9687],[11.3091,6.5958],[11.7815,7.0341],[12.2559,8.3308],[12.7578,8.8108],[13.6915,10.8135],[14.5709,11.6606],[14.6064,12.1066],[14.2342,12.4916],[14.0854,13.0781],[14.4197,13.0406],[14.8196,12.5718],[15.11,11.7138],[15.1229,10.7159],[15.5186,10.0058],[14.3073,9.9856],[14.0726,9.6656],[14.6321,8.9454],[15.2028,8.553],[15.5075,7.5275]]]},properties:{name:"Cameroon"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[130.6238,42.45],[130.0276,42.8517],[129.4314,42.3929],[128.2927,41.948],[128.0305,41.4865],[126.716,41.6181],[126.0071,40.978],[124.3583,40],[124.171,39.8251],[123.3093,39.7567],[121.8493,39.1658],[121.5895,39.6445],[122.1101,40.5153],[121.2806,40.8325],[119.5759,39.8584],[118.9333,39.2514],[118.0196,39.1777],[117.6997,38.9261],[117.719,38.4562],[118.7738,38.0871],[119.0286,37.4139],[119.2678,37.2265],[119.682,37.2329],[120.8565,37.7417],[122.3952,37.3245],[122.2813,36.9096],[121.3184,36.6931],[120.1931,36.0618],[119.3091,34.9226],[119.4466,34.6765],[120.2355,34.2007],[120.8933,32.697],[121.7869,31.7912],[121.7599,30.9648],[120.8367,30.2761],[121.7266,30.0425],[122.094,30.1116],[122.1758,29.9153],[121.6241,29.0011],[121.4865,28.3922],[120.857,27.8813],[120.5222,27.256],[119.8793,26.5848],[119.6043,25.7465],[118.91,24.8786],[116.4097,23.009],[114.2348,22.5558],[114.0376,22.5037],[113.626,22.7011],[113.5509,22.2145],[113.5331,22.1856],[113.2517,21.9123],[113.0244,22.068],[112.6755,21.7496],[110.6701,21.3622],[110.339,20.9293],[110.4282,20.4521],[110.1936,20.3096],[109.9482,20.392],[109.7699,20.728],[109.8039,21.4003],[108.7886,21.7088],[108.0236,21.5489],[106.7942,22.0576],[106.6447,22.8138],[105.3207,23.2985],[104.0941,22.6352],[103.37,22.7152],[102.9794,22.5457],[102.5296,22.6804],[102.1439,22.4007],[101.6416,22.2745],[101.7015,21.2366],[101.2992,21.2567],[101.1432,21.5641],[100.9638,21.6867],[100.2985,21.5455],[99.8935,22.0023],[99.3116,22.1851],[99.4242,22.9783],[98.9544,23.2538],[98.7357,24.0311],[97.6624,23.9718],[97.6323,24.7947],[98.6174,25.8964],[98.7586,26.6967],[98.6505,27.4662],[98.3001,27.67],[98.0277,28.1945],[97.6607,28.4374],[97.3471,28.2081],[96.4079,28.4508],[96.5583,28.8405],[96.2042,29.0341],[96.0434,29.4013],[95.4413,29.1482],[94.4925,29.2273],[93.3732,28.6225],[93.2491,28.5107],[92.697,28.0134],[92.5723,27.901],[91.6421,27.7585],[91.3732,27.9617],[90.0071,28.1425],[89.5442,28.0925],[89.1233,27.5369],[88.9233,27.2728],[88.7725,28.0233],[88.1351,27.8819],[87.2191,27.8565],[87.0575,27.9138],[86.6441,28.0606],[86.0082,27.9649],[85.6902,28.2767],[85.1957,28.3587],[85.1125,28.6226],[84.5559,28.7241],[84.0841,29.255],[83.6232,29.2272],[83.2769,29.5084],[81.7779,30.3959],[81.4846,30.4064],[81.1786,30.0816],[81.0369,30.2028],[80.2176,30.583],[80.2241,30.6046],[80.2058,30.6217],[80.2061,30.6279],[80.2201,30.6353],[80.2218,30.6396],[80.2064,30.6634],[80.1928,30.6743],[80.2044,30.6848],[80.2244,30.6883],[80.2383,30.7087],[80.2545,30.7176],[80.2554,30.7378],[80.2475,30.7563],[80.2385,30.7621],[80.2269,30.7622],[80.2208,30.7651],[80.2144,30.7763],[80.2025,30.7824],[80.1945,30.7983],[80.18,30.8069],[80.165,30.804],[80.1519,30.7916],[80.139,30.7844],[80.0915,30.7919],[80.0753,30.8041],[80.0453,30.813],[80.0258,30.8423],[80.0006,30.867],[79.992,30.8796],[79.9765,30.8862],[79.9683,30.8862],[79.9526,30.8744],[79.4224,31.064],[79.1149,31.3794],[78.8882,31.2723],[78.769,31.9377],[78.6791,32.0931],[78.4736,32.2395],[78.398,32.5232],[78.7005,32.6471],[78.9227,32.3637],[79.2537,32.5233],[79.5132,32.7273],[79.3416,33.1356],[79.1467,33.1883],[78.9227,33.3924],[78.9826,33.9808],[79.4735,34.1377],[80.0029,34.6687],[80.2549,35.3651],[79.3089,35.9267],[77.9244,35.4936],[77.318,35.4964],[76.1908,35.877],[75.8285,36.6678],[75.3164,36.9453],[74.5646,37.0309],[74.5722,37.2118],[74.8899,37.2341],[75.096,37.4764],[74.7852,38.5064],[73.7953,38.664],[73.6582,39.4651],[73.8806,39.5608],[74.004,40.0502],[75.5366,40.5992],[75.7474,40.329],[76.3508,40.3902],[76.8949,40.9933],[78.124,41.0801],[78.9227,41.6328],[79.2841,41.7331],[79.6793,41.8428],[80.0734,42.1059],[80.2456,42.2209],[80.2371,42.3929],[80.6646,43.3477],[80.2882,44.9512],[81.5111,45.2789],[82.375,45.2653],[82.4415,45.832],[83.0421,47.0395],[84.825,46.9384],[85.3679,47.0945],[85.7846,48.2473],[87.3126,49.0997],[87.825,49.1833],[88.164,48.5182],[88.8093,48.1353],[89.1233,48.0475],[90.0071,47.8003],[90.8926,46.7843],[90.9625,46.1517],[90.7868,45.5843],[90.9154,45.324],[92.697,45.042],[93.6971,44.8837],[95.0889,44.3062],[96.5054,42.8216],[99.3602,42.5821],[100.937,42.6407],[101.5726,42.45],[101.7629,42.3929],[103.412,41.8982],[104.7319,41.7331],[104.9939,41.6306],[105.3061,41.7331],[106.4412,42.1059],[107.315,42.3929],[109.382,42.4713],[110.2689,42.7433],[111.7456,43.6738],[111.5444,44.3827],[111.8923,44.9111],[113.6553,44.836],[114.6043,45.3288],[115.8268,45.5901],[116.9594,46.3931],[118.2867,46.7064],[119.7421,46.8031],[119.5494,47.2549],[118.4115,47.9874],[117.8818,47.99],[117.3447,47.7443],[115.7462,47.8633],[115.726,48.3132],[116.7209,49.8498],[117.8074,49.5794],[119.1095,50.0654],[119.9519,51.4479],[120.6644,52.0663],[120.6094,52.4875],[120.1502,52.6928],[120.208,52.7974],[120.9957,53.2739],[123.3487,53.5256],[125.4695,53.0542],[126.48,52.1446],[127.6584,49.7757],[129.5609,49.3475],[130.3126,48.931],[131.1145,47.7422],[131.9987,47.7036],[134.6067,48.3298],[134.6406,47.6454],[134.1834,47.2206],[133.8238,46.2524],[133.0211,45.139],[131.8756,45.2894],[131.2039,44.8571],[131.1583,43.1226],[130.46,42.6893],[130.5711,42.6363],[130.6238,42.45]]],[[[121.6525,39.0179],[121.5156,38.7935],[121.1792,38.8744],[121.3766,39.0768],[121.6525,39.0179]]],[[[116.8984,20.7791],[116.9517,20.5385],[116.6036,20.6042],[116.4792,20.751],[116.8984,20.7791]]],[[[110.6812,20.139],[110.9933,19.6819],[110.6583,19.3126],[110.4176,18.6723],[110.3237,18.6723],[109.5218,18.21],[108.8271,18.4595],[108.7016,18.6723],[108.6957,19.3258],[109.4167,19.8652],[109.6572,19.9902],[110.037,19.9477],[110.1603,20.0432],[110.5712,20.0432],[110.6812,20.139]]],[[[109.2882,21.0897],[109.1969,20.9009],[108.9371,20.9479],[108.9618,21.1177],[109.1447,21.2118],[109.2882,21.0897]]]]},properties:{name:"China"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[121.6339,24.001],[120.7859,21.9547],[120.0743,23.0877],[120.3462,24.001],[120.7267,24.6108],[121.2063,25.1118],[121.526,25.2491],[121.7688,25.1615],[121.928,24.9948],[121.6339,24.001]]]]},properties:{name:"Taiwan"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-66.8698,1.2256],[-67.053,1.2347],[-67.1246,1.7233],[-67.4033,2.0748],[-67.9063,1.7868],[-68.1691,1.952],[-68.4389,1.7354],[-69.7411,1.7222],[-69.8199,1.1472],[-69.2979,1.0299],[-69.1631,.7249],[-70.0018,.5188],[-70.0201,.252],[-70.0325,.0707],[-70.0455,-.1179],[-69.6569,-.5135],[-69.5206,-.8786],[-69.4207,-1.1466],[-69.517,-1.766],[-69.6069,-2.2733],[-69.9534,-4.2305],[-70.5831,-3.7195],[-70.1573,-2.707],[-70.8922,-2.3015],[-72.9094,-2.42],[-74.2103,-.8786],[-74.5531,-.4725],[-75.2882,-.0937],[-76.1433,.3503],[-77.1784,.3755],[-78.7509,1.3888],[-78.8299,1.46],[-78.9409,1.6692],[-78.649,1.8523],[-78.5197,2.4711],[-77.8031,2.6963],[-77.1966,3.6179],[-77.1966,3.8358],[-77.4736,4.1128],[-77.3908,5.1931],[-77.3768,6.5361],[-77.893,7.2218],[-77.2491,7.9096],[-77.3675,8.6728],[-76.8545,8.1711],[-76.7509,8.6538],[-75.6626,9.543],[-75.4211,10.6021],[-74.9272,10.994],[-73.2096,11.361],[-71.6858,12.3922],[-71.2438,12.2088],[-71.3241,11.8457],[-71.9211,11.6612],[-72.7638,10.6322],[-73.3126,9.2426],[-72.8017,9.0532],[-72.4152,8.3431],[-72.3943,7.4355],[-71.9631,7.0539],[-70.0816,6.9418],[-69.3548,6.1185],[-67.5876,6.2176],[-67.4644,5.9946],[-67.8207,5.1931],[-67.8354,4.4178],[-67.3557,3.4424],[-67.721,2.8964],[-67.2208,2.3424],[-66.8698,1.2256]]],[[[-81.6496,12.1222],[-81.7201,12.0434],[-82.0257,12.1255],[-82.0559,12.2338],[-81.8332,12.3566],[-81.6496,12.1222]]]]},properties:{name:"Colombia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-109.4225,10.3676],[-109.3337,10.4888],[-109.0251,10.3615],[-109.2315,10.1217],[-109.4225,10.3676]]]},properties:{name:"Clipperton Island"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-83.6929,10.9389],[-83.2913,10.2475],[-82.5646,9.572],[-82.9148,9.3744],[-82.7781,8.9311],[-82.9936,8.3047],[-82.9004,8.0398],[-83.2399,8.5852],[-83.5973,8.5528],[-83.7582,9.0982],[-84.72,9.8332],[-85.1356,9.6863],[-85.6179,9.9526],[-85.788,10.3238],[-85.6948,11.0803],[-84.6235,11.0333],[-83.9461,10.7432],[-83.6929,10.9389]]],[[[-86.8714,5.5178],[-87.139,5.3445],[-87.2699,5.4705],[-87.1732,5.6042],[-86.8876,5.6556],[-86.8714,5.5178]]]]},properties:{name:"Costa Rica"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-80.7927,23.2314],[-80.3015,22.9185],[-80.1475,23.0896],[-80.0102,22.9185],[-79.6882,22.8847],[-79.6882,22.7549],[-79.237,22.4071],[-78.1189,22.1349],[-77.9062,22.2326],[-77.6506,21.7738],[-77.3719,21.7581],[-76.9956,21.52],[-75.7122,21.0869],[-75.5304,20.8008],[-74.7817,20.6089],[-74.2065,20.1628],[-75.141,19.9082],[-77.6514,19.8409],[-77.4936,20.1126],[-77.1257,20.4183],[-77.2683,20.6525],[-77.4936,20.6717],[-78.2602,20.8656],[-78.6391,21.52],[-78.8347,21.6068],[-79.2225,21.555],[-79.6882,21.682],[-80.5515,22.0569],[-81.8095,22.1806],[-82.0464,22.3689],[-81.6881,22.4685],[-81.8095,22.6605],[-82.8384,22.5965],[-83.0706,22.4898],[-83.3656,22.2078],[-83.8897,22.1742],[-84.0947,21.9151],[-84.4389,21.8999],[-84.3845,22.4228],[-83.8897,22.7202],[-83.3556,22.9185],[-82.3231,23.1525],[-81.8095,23.149],[-81.1668,23.0847],[-80.7927,23.2314]]],[[[-78.1494,22.4968],[-78.069,22.3098],[-78.3505,22.3118],[-78.5818,22.5031],[-78.4575,22.6604],[-78.1494,22.4968]]],[[[-82.6183,21.5187],[-82.8466,21.4411],[-83.1218,21.5187],[-83.0307,21.8254],[-82.8353,21.9283],[-82.496,21.733],[-82.6183,21.5187]]]]},properties:{name:"Cuba"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-22.6286,16.0611],[-22.8344,15.9359],[-23.0065,16.0611],[-22.8765,16.2542],[-22.7028,16.2196],[-22.6286,16.0611]]],[[[-23.0363,15.1297],[-23.157,15.0276],[-23.319,15.1183],[-23.2308,15.4072],[-23.0734,15.3733],[-23.0363,15.1297]]],[[[-23.4074,14.9603],[-23.5034,14.8595],[-23.8304,15.0653],[-23.6342,15.2625],[-23.4074,14.9603]]],[[[-24.2242,14.8452],[-24.4445,14.7451],[-24.5924,14.9295],[-24.3733,15.1233],[-24.2242,14.8452]]],[[[-24.9271,17.1146],[-25.2871,16.8756],[-25.3939,17.0384],[-25.0606,17.2238],[-24.9271,17.1146]]]]},properties:{name:"Cape Verde"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[1.7258,42.5044],[1.4956,42.4736],[1.4426,42.6037],[1.7861,42.5737],[1.7258,42.5044]]]},properties:{name:"Andorra"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[56.2658,25.6247],[56.3647,25.5033],[56.3742,24.9804],[56.1415,24.8043],[55.851,24.8578],[55.8942,24.1886],[55.5272,23.8382],[55.2083,22.7083],[52.6453,22.9764],[51.5906,24.243],[52.1447,24.0061],[54.08,24.2199],[56.0846,26.0505],[56.0871,26.0513],[56.2658,25.6247]]]},properties:{name:"United Arab Emirates"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[74.8899,37.2341],[74.5722,37.2118],[74.5646,37.0309],[73.6393,36.9034],[73.2944,36.8773],[72.3359,36.7654],[71.2997,36.1094],[71.6228,35.1948],[71.2242,34.7534],[70.9817,34.0291],[69.9165,33.9708],[70.2571,33.3559],[69.5333,33.0026],[69.2828,32.1149],[68.9944,31.6561],[68.2247,31.7982],[67.8555,31.6214],[67.5736,31.2768],[66.9026,31.2606],[66.4208,30.9063],[66.2579,29.8854],[65.2412,29.5782],[62.4953,29.403],[60.873,29.8585],[61.6934,30.7331],[61.8061,31.0542],[61.6443,31.3638],[60.8832,31.5377],[60.8565,32.1149],[60.6222,33.069],[60.799,33.4155],[60.5205,34.0684],[60.8534,34.3412],[61.2741,35.6051],[62.2905,35.2271],[62.7395,35.2921],[63.2646,35.8341],[64.4207,36.2878],[64.8799,37.0996],[65.7703,37.4986],[66.5537,37.3548],[67.7787,37.1796],[67.8555,37.0629],[68.0528,36.9765],[68.9042,37.2831],[69.2866,37.1431],[69.4312,37.4764],[70.1791,37.5831],[70.2538,37.9541],[70.8413,38.4213],[71.3126,38.2515],[71.3153,37.9763],[71.5601,37.8039],[71.5235,37.4764],[71.4851,36.9595],[71.8083,36.7149],[73.2944,37.4584],[73.8567,37.2769],[74.5767,37.4012],[74.8899,37.2341]]]},properties:{name:"Afghanistan"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.999,17.1139],[-61.6956,17.2266],[-61.5387,17.0178],[-61.9731,16.969],[-61.999,17.1139]]]},properties:{name:"Antigua and Barbuda"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-63.2563,18.1237],[-63.128,18.1817],[-63.0849,18.248],[-62.9099,18.3163],[-62.9461,18.2326],[-63.1074,18.1429],[-63.2563,18.1237]]]},properties:{name:"Anguilla"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[20.0763,42.5558],[20.2649,42.3929],[20.4701,42.2156],[20.5181,42.1059],[20.5943,41.8773],[20.5629,41.8461],[20.5607,41.7331],[20.5578,41.5819],[20.5017,41.3172],[20.5977,41.092],[20.8378,40.9277],[20.9802,40.8557],[21.0561,40.6167],[20.7785,40.3488],[20.6129,40.0797],[20.3833,39.9827],[20.3913,39.7885],[20.3023,39.8127],[20.01,39.6918],[19.9824,39.7035],[19.9957,39.8519],[19.885,40.0039],[19.5715,40.1747],[19.3188,40.645],[19.4425,41.0005],[19.5178,41.2687],[19.5573,41.5777],[19.5353,41.7331],[19.5201,41.8403],[19.3725,41.8441],[19.3841,42.1059],[19.3924,42.2956],[19.488,42.3929],[19.6623,42.5469],[19.831,42.4664],[20.0763,42.5558]]]},properties:{name:"Albania"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[46.5458,38.8781],[46.1407,38.8449],[45.9781,39.2712],[45.6126,39.5652],[44.7683,39.7141],[44.3752,40.001],[43.6539,40.1304],[43.7018,40.7773],[43.4696,41.0573],[43.4738,41.1233],[45.0131,41.2966],[45.4846,40.9218],[45.4264,40.634],[45.6126,40.4017],[45.9168,40.2364],[45.9149,40.1148],[45.8952,39.8651],[46.4532,39.4681],[46.5458,38.8781]]]},properties:{name:"Armenia"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[23.983,-10.9113],[24.0347,-12.3467],[23.8836,-12.9513],[22.0281,-13.0808],[22.1075,-16.3334],[23.4299,-17.6345],[21.7196,-17.9666],[19.0299,-17.8279],[18.2636,-17.3914],[14.0264,-17.3778],[13.2413,-16.9985],[11.7509,-17.2525],[11.7666,-15.9191],[12.2657,-14.7705],[12.5454,-13.4814],[13.6519,-12.2049],[13.8308,-10.9113],[13.0383,-9.1111],[13.368,-8.6957],[13.3455,-8.3207],[12.4007,-6.2987],[12.8501,-5.9411],[16.4629,-5.9179],[17.0219,-7.2667],[17.7714,-8.0899],[19.2527,-7.9545],[19.8263,-6.9975],[20.4216,-6.9498],[20.7264,-7.2513],[21.6619,-7.309],[21.9191,-8.4515],[21.8433,-9.4449],[22.2739,-10.3412],[22.2761,-11.0428],[23.0649,-11.0941],[23.983,-10.9113]]],[[[12.1955,-5.7639],[11.9892,-4.9993],[12.7888,-4.4786],[13.1018,-4.6851],[12.5746,-5.0613],[12.4994,-5.6868],[12.1955,-5.7639]]]]},properties:{name:"Angola"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-62.6452,-22.2505],[-61.9084,-23.0815],[-60.9507,-23.795],[-59.9462,-24.0628],[-57.6904,-25.2889],[-57.6289,-25.5065],[-58.5741,-27.253],[-56.4174,-27.5161],[-56.1084,-27.3439],[-55.7448,-27.4423],[-55.4625,-27.0428],[-54.7923,-26.5932],[-54.5941,-25.5923],[-53.8961,-25.7766],[-53.6653,-26.3689],[-53.8273,-27.051],[-55.6513,-28.1901],[-57.619,-30.1759],[-58.1316,-31.8015],[-58.1303,-33.0265],[-58.3743,-33.136],[-58.4914,-33.4943],[-58.4834,-33.702],[-58.4566,-34.4633],[-57.2109,-35.3391],[-57.3462,-35.9249],[-56.7541,-36.4367],[-56.7878,-37.0294],[-57.6193,-38.1231],[-57.9886,-38.3253],[-60.6751,-38.9478],[-61.8092,-38.9887],[-61.9758,-39.1231],[-62.1663,-39.0175],[-62.1826,-39.0117],[-62.1998,-39.0113],[-62.2164,-39.0164],[-62.2304,-39.0265],[-62.2405,-39.0406],[-62.2456,-39.0571],[-62.2454,-39.0745],[-62.1117,-39.7951],[-62.3525,-40.3306],[-62.1751,-40.5378],[-62.7461,-41.0215],[-63.6197,-41.1504],[-65.0042,-40.8392],[-65.1398,-41.0948],[-65.0425,-41.8371],[-64.6583,-42.3566],[-64.8868,-42.7454],[-64.5576,-43.016],[-65.2511,-43.6178],[-65.3166,-43.8615],[-65.2571,-44.331],[-65.647,-44.7515],[-65.5962,-45.0064],[-66.9428,-45.263],[-67.5674,-46.0023],[-67.4974,-46.4579],[-67.392,-46.5923],[-67.1426,-46.7074],[-66.9428,-46.8651],[-65.9098,-47.116],[-65.7435,-47.3694],[-65.9201,-48.0645],[-66.9428,-48.6064],[-67.5227,-49.016],[-67.6201,-49.3262],[-67.8641,-49.94],[-68.8488,-50.3421],[-69.0991,-50.67],[-68.9347,-51.6166],[-68.5314,-52.1567],[-68.399,-52.2936],[-68.4322,-52.3975],[-68.7018,-52.3124],[-69.9918,-52.0205],[-71.8645,-51.952],[-72.3194,-51.5264],[-72.3501,-50.7088],[-72.7285,-50.6302],[-73.1348,-50.6998],[-73.3262,-50.5264],[-73.5128,-50.1948],[-73.4824,-49.619],[-73.3904,-49.2987],[-72.5453,-48.6615],[-72.3592,-48.2851],[-72.4113,-47.8215],[-71.8582,-47.009],[-71.7062,-45.6759],[-71.4171,-45.2791],[-71.7838,-44.8667],[-71.2402,-44.6116],[-71.7271,-44.2778],[-71.6484,-43.8615],[-71.5891,-43.6776],[-71.8492,-43.481],[-71.774,-43.2167],[-72.0854,-42.897],[-72.1151,-42.3196],[-71.7579,-42.0332],[-71.8698,-41.0051],[-71.6473,-39.7234],[-71.3805,-38.9559],[-70.8969,-38.6298],[-71.0074,-38.3952],[-71.1446,-36.85],[-71.0288,-36.5279],[-70.4275,-36.05],[-70.4916,-35.194],[-69.8573,-34.177],[-69.7883,-33.4437],[-70.0282,-32.9751],[-70.5245,-31.3244],[-69.8858,-30.2257],[-69.9632,-29.3913],[-69.6223,-28.4279],[-69.0586,-27.6623],[-68.7444,-27.191],[-68.3337,-26.93],[-68.5625,-26.4666],[-68.4207,-26.0951],[-68.5762,-25.3721],[-68.4182,-25.0728],[-68.5056,-24.7511],[-68.1852,-24.386],[-67.3388,-23.9728],[-67.0288,-23.0701],[-67.1775,-22.8047],[-66.1231,-21.8884],[-64.7318,-22.1889],[-64.3371,-22.6392],[-63.774,-22.0199],[-63.1001,-22.0135],[-62.6452,-22.2505]]],[[[-63.622,-42.7699],[-64.1122,-42.8904],[-64.2681,-42.7552],[-64.2271,-42.627],[-64.4189,-42.4845],[-64.0614,-42.3769],[-64.082,-42.1686],[-63.7576,-42.0628],[-63.6078,-42.2787],[-63.622,-42.7699]]],[[[-63.999,-54.7849],[-64.2264,-54.9118],[-64.4464,-54.7703],[-64.1295,-54.5903],[-63.999,-54.7849]]],[[[-68.6075,-54.8934],[-68.6082,-53.5411],[-68.6086,-52.6495],[-68.3954,-52.9204],[-68.4324,-53.2536],[-67.4603,-53.9586],[-66.2523,-54.5256],[-65.3835,-54.6442],[-65.3179,-54.7799],[-65.3917,-54.898],[-66.4723,-55.0265],[-68.0502,-54.846],[-68.6075,-54.8934]]]]},properties:{name:"Argentina"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-171.0195,-14.3773],[-170.6403,-14.1571],[-170.5857,-14.2729],[-170.7849,-14.5267],[-171.0195,-14.3773]]]},properties:{name:"American Samoa"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[16.9403,48.6172],[16.9498,48.5358],[16.8511,48.4386],[16.9762,48.1722],[17.0667,48.1187],[17.1608,48.0067],[16.9914,47.72],[16.4215,47.6653],[16.6462,47.4466],[16.4338,47.3529],[16.4594,47.0441],[16.1138,46.8691],[15.9962,46.8354],[15.7864,46.7075],[15.65,46.7058],[15.402,46.6535],[15.0651,46.6521],[14.6746,46.4507],[14.5652,46.3725],[14.4345,46.4429],[13.7142,46.5227],[13.5042,46.5663],[12.7314,46.6343],[12.6906,46.657],[12.4779,46.6798],[12.2117,46.8968],[12.2407,47.0692],[12.136,47.0807],[11.8572,47.0038],[11.6272,47.0133],[11.1643,46.9657],[10.9817,46.8074],[10.4697,46.8549],[10.145,46.851],[9.6071,47.0608],[9.6206,47.1516],[9.5307,47.2706],[9.5587,47.5419],[9.9678,47.5462],[9.9995,47.483],[10.1784,47.2701],[10.419,47.3881],[10.4544,47.5558],[10.8862,47.5368],[10.9912,47.3961],[11.0165,47.3964],[11.4214,47.4449],[11.4102,47.4953],[11.6329,47.5924],[11.8572,47.602],[12.0607,47.6187],[12.338,47.6971],[12.575,47.6323],[12.6958,47.6822],[13.0461,47.5205],[12.9593,47.8754],[12.8758,47.9626],[12.8602,47.9966],[12.7516,48.1128],[12.9447,48.2067],[13.177,48.2944],[13.4564,48.5588],[13.4633,48.5544],[13.4751,48.556],[13.4765,48.5633],[13.4855,48.5624],[13.4916,48.5648],[13.4938,48.5692],[13.5042,48.573],[13.5063,48.5765],[13.5031,48.5837],[13.5066,48.5896],[13.5097,48.59],[13.7271,48.513],[13.7961,48.7136],[13.8395,48.7716],[14.691,48.5843],[15.0403,48.9668],[15.5424,48.9077],[15.7536,48.8522],[16.9403,48.6172]]]},properties:{name:"Austria"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-68.5308,12.3126],[-68.4701,12.411],[-68.1175,12.2437],[-68.111,12.0789],[-68.2476,12.0769],[-68.5308,12.3126]]]},properties:{name:"Bonaire, Sint Eustatius and Saba"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-29.149,-20.4968],[-29.4064,-20.6874],[-29.5118,-20.4398],[-29.4459,-20.2808],[-29.149,-20.4968]]],[[[-29.1999,.9741],[-29.2323,.683],[-29.5286,.9462],[-29.464,1.1052],[-29.1999,.9741]]],[[[-56.4774,1.9459],[-56.0897,1.9331],[-55.8909,2.4178],[-55.0333,2.5492],[-54.5879,2.3221],[-54.1804,2.1379],[-53.7392,2.2956],[-52.966,2.2123],[-52.5292,2.588],[-51.6555,4.056],[-51.4718,4.3036],[-51.1503,3.9792],[-50.7314,2.3536],[-49.9735,1.5367],[-50.1581,.5286],[-49.671,.252],[-49.5423,.0707],[-48.4877,-.3838],[-48.6017,-.8786],[-48.7243,-1.4109],[-48.4925,-1.3663],[-48.0778,-.8786],[-47.896,-.6648],[-47.2356,-.6835],[-46.6886,-.8786],[-45.6863,-1.2363],[-45.4124,-1.4762],[-44.7663,-1.5308],[-44.6547,-1.766],[-44.5033,-2.2733],[-44.3967,-2.6305],[-43.4509,-2.4341],[-41.5256,-2.8667],[-40.024,-2.8996],[-38.5537,-3.7185],[-37.1805,-4.8144],[-35.5716,-5.2793],[-35.2181,-5.7609],[-34.9246,-6.7583],[-34.9096,-8.0417],[-35.4473,-9.2894],[-37.0799,-11.0563],[-38.088,-12.5827],[-38.8672,-13.2038],[-39.0183,-14.6246],[-38.9357,-15.9485],[-39.1746,-17.4734],[-39.6543,-18.5131],[-39.8568,-19.5645],[-40.7067,-20.8939],[-41.1183,-21.9585],[-42.2084,-22.8766],[-44.4428,-23.1122],[-45.3959,-23.8004],[-46.33,-24.0058],[-48.1332,-25.2447],[-48.5494,-26.0651],[-48.4988,-27.6248],[-48.8159,-28.4568],[-49.817,-29.5314],[-50.7132,-30.9112],[-50.8901,-30.9417],[-50.8869,-30.5116],[-51.3091,-30.7064],[-51.9917,-31.5832],[-52.6172,-32.9915],[-53.378,-33.7504],[-53.5095,-33.3089],[-53.3047,-32.9751],[-53.1514,-32.7404],[-53.83,-32.0405],[-55.5446,-30.9301],[-55.7448,-30.9943],[-55.9687,-31.002],[-56.1653,-30.6435],[-56.8071,-30.1365],[-57.3474,-30.2723],[-57.619,-30.1759],[-55.6513,-28.1901],[-53.8273,-27.051],[-53.6653,-26.3689],[-53.8961,-25.7766],[-54.5941,-25.5923],[-54.3851,-24.0606],[-54.6633,-23.8829],[-55.3922,-23.8396],[-55.8971,-22.3237],[-56.4163,-22.1247],[-57.0908,-22.2421],[-57.8684,-22.0614],[-57.863,-20.9629],[-58.1635,-20.1625],[-57.9822,-19.9775],[-58.0283,-19.5601],[-57.6125,-18.2358],[-57.8067,-17.6314],[-58.3443,-17.1387],[-58.4129,-16.4288],[-60.1059,-16.1795],[-60.5969,-13.7761],[-61.0701,-13.5338],[-61.7725,-13.4912],[-63.4294,-12.6018],[-64.4633,-12.3126],[-65.2426,-11.4858],[-65.4168,-9.8233],[-66.6161,-9.9352],[-68.5679,-11.0587],[-69.5103,-10.9543],[-70.5742,-10.9321],[-70.631,-9.6918],[-71.3377,-9.9639],[-72.0116,-9.9595],[-72.3919,-9.5555],[-72.9782,-9.3412],[-73.0739,-8.8492],[-73.8818,-7.5555],[-73.712,-6.95],[-73.1725,-6.3431],[-72.6878,-5.0578],[-71.899,-4.564],[-70.8737,-4.2367],[-69.9534,-4.2305],[-69.6069,-2.2733],[-69.517,-1.766],[-69.4207,-1.1466],[-69.5206,-.8786],[-69.6569,-.5135],[-70.0455,-.1179],[-70.0325,.0707],[-70.0201,.252],[-70.0018,.5188],[-69.1631,.7249],[-69.2979,1.0299],[-69.8199,1.1472],[-69.7411,1.7222],[-68.4389,1.7354],[-68.1691,1.952],[-67.9063,1.7868],[-67.4033,2.0748],[-67.1246,1.7233],[-67.053,1.2347],[-66.8698,1.2256],[-66.2879,.8221],[-65.6926,.9257],[-65.4471,.8038],[-64.2898,1.4973],[-63.4774,2.2297],[-63.5034,2.3999],[-64.0031,2.6686],[-64.5692,4.1305],[-62.9241,3.7234],[-62.4283,4.0929],[-61.0145,4.5424],[-60.7041,4.8701],[-60.7318,5.1961],[-60.1578,5.1926],[-60.0054,4.5779],[-59.642,4.1358],[-59.9399,2.6147],[-59.511,1.7084],[-58.8112,1.2685],[-57.2818,1.9505],[-56.4774,1.9459]]],[[[-51.2522,-31.6331],[-51.4852,-31.7964],[-51.6325,-31.7099],[-51.4244,-31.4022],[-51.2522,-31.6331]]]]},properties:{name:"Brazil"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-73.1493,20.9629],[-73.6893,20.9268],[-73.7181,21.0135],[-73.3883,21.2411],[-73.0939,21.1267],[-73.1493,20.9629]]],[[[-74.0223,22.1938],[-74.0715,22.0152],[-74.5221,22.1416],[-74.3805,22.2736],[-74.0223,22.1938]]],[[[-74.9795,23.2998],[-75.0108,23.0301],[-75.3351,23.169],[-75.2003,23.3688],[-74.9795,23.2998]]],[[[-76.5124,25.3883],[-76.8707,25.3176],[-76.8752,25.5264],[-76.5767,25.6062],[-76.5124,25.3883]]],[[[-77.0504,26.3037],[-77.1951,26.2581],[-77.2769,26.4217],[-77.4308,26.6343],[-77.4133,26.8136],[-77.022,26.582],[-77.0395,26.4217],[-77.0504,26.3037]]],[[[-77.0938,25.9844],[-77.2876,25.8603],[-77.428,26.0231],[-77.3605,26.1749],[-77.1485,26.1845],[-77.0938,25.9844]]],[[[-77.5251,23.9231],[-77.6502,23.7113],[-77.8477,23.8001],[-77.864,24.0619],[-77.6502,24.2187],[-77.5251,23.9231]]],[[[-77.6868,24.3623],[-77.891,24.1782],[-78.4268,24.6332],[-78.1335,25.1679],[-77.9749,25.0498],[-77.6868,24.3623]]],[[[-77.6902,25.8231],[-77.8002,25.7253],[-78.0892,25.7283],[-78.1598,25.7985],[-78.1081,25.8748],[-77.7586,25.945],[-77.6902,25.8231]]],[[[-78.4492,26.6183],[-78.696,26.4226],[-78.9533,26.5993],[-78.5452,26.7947],[-78.4492,26.6183]]]]},properties:{name:"Bahamas"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[91.6421,27.7585],[91.6596,27.5403],[92.0573,27.3683],[92.1079,26.8583],[90.0071,26.7529],[89.7443,26.7397],[89.1233,26.8977],[89.0273,26.9609],[88.9233,27.2728],[89.1233,27.5369],[89.5442,28.0925],[90.0071,28.1425],[91.3732,27.9617],[91.6421,27.7585]]]},properties:{name:"Bhutan"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[44.6336,-12.299],[44.5193,-12.4303],[44.2599,-12.2072],[44.4497,-12.0245],[44.6336,-12.299]]],[[[43.8492,-12.2743],[43.7563,-12.504],[43.5732,-12.476],[43.5401,-12.2329],[43.6108,-12.1556],[43.8492,-12.2743]]],[[[43.3976,-11.3608],[43.4694,-11.8271],[43.2213,-11.7449],[43.2747,-11.3832],[43.3976,-11.3608]]]]},properties:{name:"Comoros"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-62.9797,17.4048],[-62.846,17.5142],[-62.6684,17.3285],[-62.6529,17.2963],[-62.6847,17.2366],[-62.8002,17.2452],[-62.9797,17.4048]]]},properties:{name:"Saint Kitts and Nevis"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[130.6238,42.45],[130.6749,42.2836],[129.8444,41.7331],[129.5878,40.8241],[127.6243,39.7112],[127.5348,39.3078],[128.3613,38.6149],[128.0712,38.3378],[127.159,38.287],[126.6658,37.833],[126.6505,37.8017],[126.6544,37.7888],[126.6201,37.788],[126.6084,37.7824],[126.5949,37.7701],[126.578,37.7691],[126.5577,37.7866],[126.5283,37.803],[126.5163,37.8069],[126.5062,37.8141],[126.4733,37.8168],[126.4582,37.8393],[126.423,37.8529],[126.4055,37.8779],[126.4164,37.9],[126.4147,37.9058],[126.4109,37.9084],[126.3926,37.8852],[126.3372,37.8757],[126.2816,37.8473],[126.2724,37.8469],[126.2639,37.8432],[126.2106,37.8635],[126.2114,37.8545],[126.2085,37.8498],[126.1937,37.8455],[126.1567,37.8347],[126.1518,37.8219],[126.1444,37.8082],[126.1333,37.7972],[126.1196,37.7899],[126.1043,37.7868],[126.096,37.7869],[125.7654,37.9466],[125.3655,37.8399],[124.9484,38.1557],[124.9571,38.5202],[125.2639,38.7013],[125.3446,39.432],[125.0612,39.5911],[124.6655,39.4497],[124.3583,40],[126.0071,40.978],[126.716,41.6181],[128.0305,41.4865],[128.2927,41.948],[129.4314,42.3929],[130.0276,42.8517],[130.6238,42.45]]]},properties:{name:"North Korea"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-68.7404,12.0681],[-68.8129,12.0275],[-68.9567,12.072],[-69.0009,12.1451],[-68.9327,12.1936],[-68.7926,12.1652],[-68.7404,12.0681]]],[[[-68.9581,12.2085],[-69.0259,12.1305],[-69.2531,12.282],[-69.3065,12.5395],[-69.0997,12.4728],[-68.9581,12.2085]]]]},properties:{name:"Curaçao"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[105.425,-10.5147],[105.7299,-10.3025],[105.8258,-10.3326],[105.6829,-10.6863],[105.425,-10.5147]]]},properties:{name:"Christmas Island"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[33.6251,34.8511],[32.9417,34.6418],[32.559,34.6875],[32.3694,34.8511],[32.4435,35.0778],[33.0172,35.3338],[34.0072,35.4317],[34.1708,35.5577],[34.543,35.6809],[34.5581,35.641],[34.0609,35.3269],[33.9628,35.3196],[33.9299,35.06],[33.6251,34.8511]]]},properties:{name:"Cyprus"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[14.8234,50.8706],[15.1816,50.9574],[15.5353,50.7794],[16.1073,50.6621],[16.3325,50.5925],[16.5803,50.1428],[16.8633,50.1981],[16.9079,50.4495],[17.4296,50.2545],[18.0351,50.0658],[18.5757,49.9104],[18.8516,49.5172],[18.4036,49.3967],[18.3224,49.3151],[17.6469,48.8543],[17.3967,48.8133],[16.9403,48.6172],[15.7536,48.8522],[15.5424,48.9077],[15.0403,48.9668],[14.691,48.5843],[13.8395,48.7716],[13.5516,48.9678],[13.4167,48.98],[13.1709,49.1736],[12.6338,49.4762],[12.5938,49.5422],[12.4015,49.7584],[12.551,49.9051],[12.2608,50.0582],[12.1607,50.2198],[12.1009,50.318],[12.5838,50.4071],[12.9481,50.4043],[13.5018,50.6336],[13.6522,50.7304],[14.1512,50.8516],[14.3179,51.0547],[14.4912,51.0435],[14.6188,50.8578],[14.8234,50.8706]]]},properties:{name:"Czechia"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[9.4222,54.832],[9.4685,54.8172],[9.4919,54.8226],[9.7781,54.7277],[9.7944,54.5625],[10.1685,54.4328],[10.1742,54.3457],[10.7138,54.3051],[11.0064,54.3232],[10.8413,53.9919],[10.9037,53.9568],[11.5618,54.0281],[11.9985,54.175],[12.2011,54.2447],[12.2855,54.275],[13.2531,54.5684],[13.548,54.4363],[13.3194,54.1935],[14.2263,53.9287],[14.2131,53.8665],[14.0982,53.7654],[14.2675,53.6978],[14.4122,53.3296],[14.1437,52.9614],[14.1567,52.8956],[14.4364,52.6799],[14.5651,52.6245],[14.5344,52.395],[14.6009,52.2721],[14.7552,52.07],[14.7167,52.0012],[14.7299,51.5818],[14.9742,51.3639],[14.8234,50.8706],[14.6188,50.8578],[14.4912,51.0435],[14.3179,51.0547],[14.1512,50.8516],[13.6522,50.7304],[13.5018,50.6336],[12.9481,50.4043],[12.5838,50.4071],[12.1009,50.318],[12.1607,50.2198],[12.2608,50.0582],[12.551,49.9051],[12.4015,49.7584],[12.5938,49.5422],[12.6338,49.4762],[13.1709,49.1736],[13.4167,48.98],[13.5516,48.9678],[13.8395,48.7716],[13.7961,48.7136],[13.7271,48.513],[13.5097,48.59],[13.5066,48.5896],[13.5031,48.5837],[13.5063,48.5765],[13.5042,48.573],[13.4938,48.5692],[13.4916,48.5648],[13.4855,48.5624],[13.4765,48.5633],[13.4751,48.556],[13.4633,48.5544],[13.4564,48.5588],[13.177,48.2944],[12.9447,48.2067],[12.7516,48.1128],[12.8602,47.9966],[12.8758,47.9626],[12.9593,47.8754],[13.0461,47.5205],[12.6958,47.6822],[12.575,47.6323],[12.338,47.6971],[12.0607,47.6187],[11.8572,47.602],[11.6329,47.5924],[11.4102,47.4953],[11.4214,47.4449],[11.0165,47.3964],[10.9912,47.3961],[10.8862,47.5368],[10.4544,47.5558],[10.419,47.3881],[10.1784,47.2701],[9.9995,47.483],[9.9678,47.5462],[9.5587,47.5419],[9.4956,47.5515],[9.1822,47.6559],[8.6705,47.6849],[8.6634,47.6859],[8.6138,47.8011],[8.5101,47.7762],[8.5149,47.6272],[8.4264,47.5675],[7.8941,47.5864],[7.7138,47.5394],[7.6341,47.5611],[7.589,47.5899],[7.546,47.7436],[7.5814,47.9145],[7.5773,48.1157],[7.5779,48.1214],[7.6807,48.2573],[7.9596,48.7186],[8.2326,48.9666],[8.0684,48.9993],[7.9107,49.0452],[7.6357,49.054],[7.3688,49.1615],[7.2643,49.1338],[7.1011,49.156],[6.7235,49.2188],[6.557,49.4192],[6.3671,49.4695],[6.3801,49.5511],[6.475,49.8213],[6.1377,50.13],[6.405,50.3233],[6.3156,50.497],[6.021,50.7543],[6.0869,50.9131],[5.8771,51.0321],[6.1748,51.1845],[6.0727,51.2426],[6.2244,51.365],[5.9532,51.7478],[6.1678,51.9008],[6.4078,51.8281],[6.6817,51.9324],[6.7605,52.1186],[7.0657,52.2414],[7.0041,52.3996],[6.6979,52.4863],[6.7097,52.6278],[7.0062,52.6388],[7.0927,52.8382],[7.2028,53.1133],[7.2089,53.2431],[7.2643,53.3255],[7.0927,53.3725],[7.4917,53.68],[7.8099,53.7077],[8.0913,53.6381],[8.1422,53.555],[8.0613,53.506],[8.1956,53.4092],[8.5549,53.5251],[8.5204,53.6062],[8.6133,53.7654],[8.6872,53.8919],[8.8326,54.0239],[8.8448,54.2663],[8.6359,54.9117],[8.889,54.8915],[9.1131,54.8736],[9.2736,54.8117],[9.4222,54.832]]],[[[8.7077,53.9405],[8.4781,53.8105],[8.3246,53.8376],[8.4763,54.0527],[8.7077,53.9405]]],[[[8.0547,54.2508],[7.9827,53.9925],[7.6358,54.2677],[7.8982,54.3426],[8.0547,54.2508]]]]},properties:{name:"Germany"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[43.2603,11.4606],[42.9681,10.9974],[41.8348,11.0448],[41.816,11.6292],[42.4043,12.4686],[42.6867,12.4073],[43.1261,12.7101],[43.3732,12.1093],[42.7821,11.6427],[43.2603,11.4606]]]},properties:{name:"Djibouti"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[15.1629,55.0937],[15.094,54.9962],[14.948,55.0011],[14.6968,55.1306],[14.774,55.2754],[14.948,55.2179],[15.1629,55.0937]]],[[[12.525,55.9115],[12.5828,55.808],[12.5841,55.722],[12.7503,55.6491],[12.6192,55.5715],[12.5018,55.6274],[12.3635,55.5938],[12.2196,55.4251],[12.2912,55.207],[11.9573,54.6835],[11.3756,54.8133],[11.4797,55.0525],[11.2262,55.3129],[11.2326,55.6431],[11.5259,55.8584],[11.9424,55.8223],[12.1495,56.095],[12.5176,56.0562],[12.525,55.9115]]],[[[10.8837,55.0372],[10.8037,54.8744],[10.4282,54.8835],[10.3072,54.8835],[9.7656,55.369],[10.0455,55.5688],[10.6948,55.5438],[10.8837,55.0372]]],[[[9.4222,54.832],[9.2736,54.8117],[9.1131,54.8736],[8.889,54.8915],[8.6359,54.9117],[8.1897,55.5629],[8.1837,55.8223],[8.1907,56.5531],[8.6728,56.527],[8.889,56.7146],[9.3048,56.693],[9.0659,56.9285],[8.889,56.9243],[8.7173,56.7262],[8.3249,56.8385],[8.6317,57.1018],[8.889,57.1206],[10.283,57.5981],[10.4957,57.3511],[10.199,56.6836],[10.8182,56.4896],[10.8509,56.3228],[9.9457,55.7305],[9.6721,55.7121],[9.8384,54.999],[9.6229,54.8818],[9.4222,54.832]]]]},properties:{name:"Denmark"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.5123,15.5686],[-61.2352,15.5425],[-61.2355,15.2169],[-61.3652,15.1829],[-61.5123,15.5686]]]},properties:{name:"Dominica"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-71.7536,18.0307],[-71.8766,18.5572],[-71.6752,19.1658],[-71.7579,19.702],[-71.0165,19.8737],[-70.1124,19.6603],[-69.6952,19.3275],[-69.285,19.281],[-69.3763,19.0976],[-68.7534,18.908],[-68.4468,18.57],[-68.6771,18.2116],[-69.7448,18.4306],[-70.3492,18.2502],[-70.8751,18.3096],[-71.4373,17.7791],[-71.7536,18.0307]]]},properties:{name:"Dominican Republic"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[8.6421,36.9412],[8.3435,36.5284],[8.4128,35.1988],[8.2407,34.6847],[7.5356,33.8878],[7.7925,33.2741],[8.6877,32.3104],[9.0952,31.9812],[9.5516,30.2464],[9.4464,30.0952],[9.8055,29.2946],[9.9363,27.8899],[9.8837,26.6543],[9.4591,26.143],[9.9784,25.3828],[10.1392,24.8009],[10.4325,24.5274],[11.6027,24.2015],[11.9985,23.5127],[8.7142,21.6026],[7.4448,20.8222],[5.8191,19.4689],[4.243,19.1389],[3.5631,19.0665],[3.407,19.0499],[3.2945,19.0379],[3.182,19.8421],[1.8141,20.3039],[1.235,20.7351],[.9463,21.2628],[.7453,21.3959],[.5578,21.5201],[-1.7859,23.0319],[-1.8933,23.1012],[-2.7863,23.6772],[-3.3739,24.0562],[-4.8333,24.9976],[-8.6667,27.3127],[-8.6666,27.662],[-8.6296,28.5136],[-8.3109,28.8968],[-7.1492,29.458],[-5.5291,29.6274],[-4.9056,30.1258],[-3.8126,30.6884],[-3.5844,31.5104],[-3.0082,31.7988],[-2.7778,32.0677],[-1.2332,32.2639],[-1.1187,32.5223],[-1.5962,33.2215],[-1.8091,34.6952],[-2.2097,35.0846],[-1.8933,35.1581],[-1.7859,35.183],[-1.5608,35.2352],[-.8764,35.7128],[-.0547,35.8673],[.7453,36.3212],[.9549,36.4402],[2.5173,36.6076],[2.9693,36.7924],[3.407,36.8057],[3.5631,36.8104],[3.8798,36.9112],[4.7588,36.8859],[5.3146,36.6516],[6.1198,36.8823],[6.4162,37.063],[6.9707,36.8953],[7.353,37.0632],[7.8867,36.8665],[8.6421,36.9412]]]},properties:{name:"Algeria"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-80.2733,-3.4262],[-80.2896,-3.4106],[-80.0893,-2.9775],[-80.7308,-2.2506],[-80.8365,-1.3353],[-80.6015,-.8786],[-80.0197,.252],[-80.009,.7931],[-78.7509,1.3888],[-77.1784,.3755],[-76.1433,.3503],[-75.2882,-.0937],[-75.511,-.2279],[-75.2664,-.8786],[-75.6084,-1.582],[-75.7923,-1.766],[-76.3212,-2.2733],[-76.5151,-2.4592],[-78.0291,-3.2721],[-79.0222,-4.799],[-80.2973,-4.3463],[-80.2733,-3.4262]]],[[[-89.3141,-.8786],[-89.3676,-.9753],[-89.6306,-.9132],[-89.5928,-.8786],[-89.2874,-.599],[-89.189,-.6522],[-89.3141,-.8786]]],[[[-90.2343,-.7503],[-90.3987,-.7812],[-90.5575,-.6282],[-90.2875,-.3823],[-90.162,-.5731],[-90.2343,-.7503]]],[[[-90.2194,-1.247],[-90.4877,-1.4671],[-90.6339,-1.3532],[-90.5386,-1.1297],[-90.2194,-1.247]]],[[[-90.5618,-.1994],[-90.6005,-.4734],[-90.9233,-.2625],[-90.8506,-.1152],[-90.5618,-.1994]]],[[[-91.0745,-.8786],[-91.1901,-.9842],[-91.3584,-.8786],[-91.2651,-.5463],[-91.5239,-.3004],[-91.3957,.0588],[-90.9264,-.6562],[-91.0745,-.8786]]]]},properties:{name:"Ecuador"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[27.3516,57.5182],[26.4549,57.5549],[25.0463,58.0401],[24.8341,57.9728],[24.3528,57.8766],[24.5109,58.2945],[23.9606,58.2911],[23.5211,58.5818],[23.5183,59.1406],[23.7306,59.2373],[25.8302,59.5641],[26.0153,59.6195],[26.7594,59.4994],[28.0419,59.4701],[28.1202,59.3526],[27.357,58.7871],[27.6449,57.981],[27.3516,57.5182]]],[[[23.0127,58.8772],[22.8917,58.6388],[23.1995,58.6473],[23.16,58.4714],[22.4883,58.1535],[22.1153,58.1784],[21.9044,58.4282],[22.4604,58.6315],[22.6103,59.053],[23.0127,58.8772]]]]},properties:{name:"Estonia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.2198,31.3217],[34.2688,31.2205],[34.5937,30.3802],[34.9051,29.4932],[34.3905,28.0194],[34.1419,27.8534],[33.2866,28.5757],[32.6275,29.7499],[32.4577,29.6796],[32.7278,28.8485],[33.572,27.8321],[34.0863,26.4969],[35.3875,24.2632],[35.6218,23.1455],[34.9524,22.7943],[34.5937,22.2811],[34.2134,22.2],[34.0865,22.0025],[33.1826,22.0017],[25,22],[25,24.9875],[25,25.5268],[25,26.8805],[24.9948,29.1507],[24.7452,30.1337],[24.9888,30.7293],[24.892,31.3739],[25.1472,31.6497],[27.1871,31.3899],[29.0734,30.8521],[31.0638,31.5733],[31.9143,31.4752],[32.7141,31.0714],[34.2198,31.3217]]]},properties:{name:"Egypt"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-8.6666,27.662],[-8.6667,27.3127],[-8.8245,26.0382],[-11.9441,25.882],[-12.022,23.6542],[-13.0409,22.8389],[-13.0576,21.3647],[-16.825,21.3191],[-17.0513,20.7716],[-16.9587,21.7111],[-15.7411,23.8954],[-14.9633,24.6788],[-14.4726,26.0925],[-13.6084,26.7669],[-13.173,27.667],[-8.6666,27.662]]]},properties:{name:"Western Sahara"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[28.0777,36.1182],[27.8606,35.9226],[27.7226,35.9288],[27.6996,36.1182],[27.7048,36.2643],[28.0929,36.3913],[28.0777,36.1182]]],[[[27.0088,37.7299],[26.6951,37.45],[26.2824,37.492],[26.2357,37.6322],[26.6264,37.6111],[26.5842,37.7779],[26.8644,37.8529],[27.0088,37.7299]]],[[[26.0328,40.7303],[25.6324,40.8628],[25.1395,40.9907],[24.8135,40.8581],[24.6926,40.6531],[24.5139,40.9053],[23.8677,40.7787],[23.7651,40.7579],[23.7569,40.6346],[23.6512,40.3129],[23.2995,40.2157],[23.0042,40.3503],[22.6824,40.529],[22.664,40.4916],[22.5589,40.1747],[22.6646,39.9748],[22.9159,39.6029],[23.0946,39.3836],[22.9625,38.9755],[22.7999,38.8142],[23.3778,38.5258],[23.4604,38.4988],[23.4977,38.7546],[24.0531,38.4939],[23.9884,38.3775],[23.6556,38.3521],[23.6904,38.3403],[23.9905,38.2351],[23.9836,38.0911],[24.0433,37.7052],[23.7436,37.8538],[23.6722,37.9418],[23.597,38.0152],[23.4604,38.024],[23.1797,37.9516],[23.12,37.73],[23.1935,37.5912],[23.3192,37.6097],[23.313,37.7614],[23.4336,37.7616],[23.4162,37.4558],[22.8171,37.4458],[22.9808,37.0479],[22.9735,36.7312],[22.3987,36.7163],[22.0867,36.9279],[21.813,36.8056],[21.6802,37.3774],[21.4883,37.5912],[21.2096,37.8627],[21.3511,38.1021],[21.8645,38.2852],[22.373,38.1422],[23.1175,38.0606],[23.1262,38.1684],[22.8945,38.2198],[22.6083,38.3587],[22.0551,38.3922],[21.8517,38.3745],[21.2055,38.3544],[20.768,38.8622],[21.1086,39.0461],[20.7033,39.0501],[20.4778,39.2748],[20.01,39.6918],[20.3023,39.8127],[20.3913,39.7885],[20.3833,39.9827],[20.6129,40.0797],[20.7785,40.3488],[21.0561,40.6167],[20.9802,40.8557],[21.7874,40.9311],[21.9294,41.1004],[22.2162,41.1705],[22.3321,41.1203],[22.8792,41.3407],[22.9276,41.3385],[23.4604,41.4025],[23.6242,41.3757],[24.0597,41.5221],[24.4917,41.5436],[24.784,41.3602],[25.1794,41.3102],[25.2247,41.2646],[25.9064,41.3076],[25.9486,41.3203],[26.3579,41.7111],[26.5923,41.4201],[26.0328,40.7303]]],[[[26.3896,39.3419],[26.4805,39.1632],[26.4268,38.9834],[26.1649,39.0105],[26.1649,39.1914],[26.0217,39.0983],[25.8524,39.205],[25.9117,39.2784],[26.3896,39.3419]]],[[[24.0973,35.5568],[24.3174,35.3538],[24.928,35.4069],[25.4907,35.2983],[26.2086,35.1708],[26.1133,35.0322],[25.5506,34.9908],[24.875,34.9554],[24.7225,35.0925],[24.2875,35.176],[23.6393,35.2486],[23.5541,35.3592],[23.6489,35.491],[24.0973,35.5568]]],[[[26.1554,38.3107],[26.0119,38.1529],[25.9174,38.2494],[25.9902,38.3889],[25.8343,38.5419],[26.0035,38.6018],[26.1625,38.5512],[26.1554,38.3107]]],[[[25.7442,40.3674],[25.5042,40.2894],[25.4107,40.4392],[25.5042,40.602],[25.7231,40.5587],[25.7442,40.3674]]],[[[25.6114,37.1296],[25.6419,36.8851],[25.4413,36.8597],[25.3632,37.0238],[25.1663,36.9122],[25.0262,36.9996],[25.1428,37.1707],[25.6114,37.1296]]],[[[25.6088,36.4028],[25.4913,36.2191],[25.1951,36.4505],[25.4428,36.5758],[25.6088,36.4028]]],[[[25.2632,40.0608],[25.289,39.7529],[24.9851,39.8112],[24.978,39.996],[25.2632,40.0608]]],[[[25.0724,37.9127],[24.9876,37.6671],[24.6661,37.8695],[24.869,38.012],[25.0724,37.9127]]],[[[24.5977,38.1182],[24.4072,37.9119],[24.0932,38.0951],[24.2194,38.1912],[24.5977,38.1182]]],[[[24.5907,40.0422],[24.3493,39.977],[24.1553,40.2273],[23.8854,40.2974],[23.8604,40.5728],[24.2109,40.3959],[24.5907,40.0422]]],[[[24.0937,38.9901],[23.8864,38.8942],[23.784,39.104],[24.1162,39.2788],[24.0937,38.9901]]],[[[24.0296,40.1756],[24.0599,39.9279],[23.7817,39.9659],[23.6895,40.2006],[24.0296,40.1756]]],[[[23.1388,36.3676],[23.0534,36.0275],[22.8546,36.1415],[22.8384,36.3676],[23.1388,36.3676]]],[[[21.2434,37.1953],[20.9354,37.1004],[20.7617,37.2426],[21.1453,37.3813],[21.2434,37.1953]]],[[[20.9506,37.7489],[20.8642,37.6089],[20.5468,37.8293],[20.6797,38.0053],[20.9506,37.7489]]],[[[20.8474,38.6571],[20.4881,38.5244],[20.5649,38.8161],[20.7219,38.9069],[20.8474,38.6571]]],[[[20.709,38.4519],[20.709,38.0598],[20.3827,38.2101],[20.525,38.4293],[20.709,38.4519]]],[[[19.8831,39.5638],[19.7308,39.56],[19.5448,39.7784],[19.7873,39.8571],[19.9233,39.7814],[19.8831,39.5638]]]]},properties:{name:"Greece"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[43.1261,12.7101],[42.6867,12.4073],[42.4043,12.4686],[41.6307,13.3913],[40.8941,14.0891],[40.0851,14.5456],[39.0217,14.5899],[38.5391,14.4413],[37.9201,14.8128],[37.5268,14.2588],[37.2972,14.3876],[36.5603,14.2577],[36.4673,15.1054],[36.8653,16.1186],[37.0295,17.0223],[38.2556,17.6008],[38.5696,18.005],[39.6434,15.3839],[39.9153,15.3649],[41.2338,14.532],[43.1261,12.7101]]],[[[40.8196,15.8159],[40.8516,15.5192],[40.5282,15.5556],[40.5469,15.7454],[40.8196,15.8159]]],[[[40.3757,16.5021],[40.0675,16.2685],[40.0397,16.615],[40.3431,16.6081],[40.3757,16.5021]]],[[[40.2398,15.9624],[40.2691,15.6519],[39.9571,15.6541],[39.8498,15.974],[40.0853,16.0916],[40.2398,15.9624]]]]},properties:{name:"Eritrea"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[4.391,39.8617],[4.1907,39.7981],[3.9068,39.9986],[4.1586,40.1071],[4.391,39.8617]]],[[[3.0272,39.9286],[3.1413,39.771],[3.3402,39.7851],[3.4469,39.6566],[3.2245,39.3643],[3.0486,39.2718],[2.7901,39.3675],[2.6354,39.5678],[2.5259,39.4609],[2.4094,39.591],[2.7816,39.8511],[3.0272,39.9286]]],[[[-1.786,43.3505],[-1.7694,43.3347],[-1.7289,43.2961],[-1.4389,43.2579],[-.7245,42.9202],[-.3133,42.8494],[.4778,42.7],[.6601,42.691],[.7453,42.7489],[.8582,42.8257],[1.3298,42.6999],[1.4426,42.6037],[1.4956,42.4736],[1.7258,42.5044],[1.731,42.4924],[3.1748,42.4354],[3.0758,41.9496],[2.7785,41.6488],[1.6453,41.1956],[.93,40.9773],[.7453,40.775],[.5152,40.5229],[-.1885,39.722],[-.296,39.3774],[-.0376,38.8864],[.1442,38.7061],[-.4319,38.3781],[-.7621,37.847],[-1.63,37.3752],[-1.7859,37.1805],[-1.8933,37.0464],[-2.0979,36.7908],[-2.7863,36.7642],[-3.1287,36.7509],[-3.3739,36.746],[-3.7775,36.7379],[-4.3798,36.6987],[-5.2524,36.3113],[-5.3392,36.152],[-5.3515,36.1526],[-5.3694,36.1554],[-5.4235,36.1675],[-5.4456,36.0714],[-5.5951,36.0149],[-5.7926,36.0817],[-5.9068,36.176],[-6.0355,36.192],[-6.4087,36.6705],[-6.43,36.7375],[-6.3456,36.7988],[-6.9451,37.1593],[-7.4019,37.1748],[-7.5127,37.5263],[-7.4457,37.694],[-6.9317,38.2084],[-7.108,38.1881],[-7.2758,38.4539],[-7.2031,38.751],[-7.0209,39.0127],[-7.2315,39.2784],[-7.5429,39.6628],[-7.0106,39.7363],[-6.9513,40.2574],[-6.8651,40.2707],[-6.8022,40.5288],[-6.9299,41.0295],[-6.6898,41.2052],[-6.4797,41.2944],[-6.3008,41.5924],[-6.6375,41.8984],[-6.9858,41.9714],[-7.2005,41.8797],[-8.0519,41.8206],[-8.1651,41.8183],[-8.199,42.1544],[-8.8632,41.8721],[-8.786,42.334],[-8.7267,42.6883],[-8.9621,42.6303],[-9.2093,42.979],[-9.1336,43.0807],[-8.9905,43.2731],[-8.6289,43.3347],[-8.3239,43.3866],[-7.6997,43.7351],[-7.6014,43.6731],[-7.0318,43.5445],[-5.8535,43.612],[-4.5123,43.3932],[-3.3739,43.4082],[-3.1533,43.3532],[-2.7863,43.4305],[-2.4592,43.3347],[-2.123,43.3347],[-1.8933,43.3454],[-1.786,43.3505]]],[[[1.5747,39.0405],[1.3846,38.8022],[1.1328,38.8746],[1.2463,39.0789],[1.5747,39.0405]]],[[[-2.9323,35.2776],[-2.9698,35.2933],[-2.9525,35.3198],[-2.9459,35.3141],[-2.9457,35.3077],[-2.932,35.2934],[-2.9359,35.2914],[-2.937,35.2826],[-2.9323,35.2776]]],[[[-5.3434,35.8709],[-5.3819,35.913],[-5.3777,35.916],[-5.365,35.9167],[-5.3489,35.9078],[-5.3363,35.8952],[-5.3252,35.8999],[-5.3146,35.8899],[-5.3019,35.8937],[-5.2978,35.901],[-5.2879,35.9059],[-5.2792,35.8999],[-5.2801,35.8955],[-5.288,35.891],[-5.3062,35.8849],[-5.3196,35.8864],[-5.3281,35.8793],[-5.3378,35.8781],[-5.3434,35.8709]]],[[[-13.4371,29.0022],[-13.7995,28.8585],[-13.877,28.9395],[-13.8555,29.0358],[-13.4611,29.1565],[-13.4371,29.0022]]],[[[-13.9045,28.2315],[-14.2422,28.2011],[-14.0392,28.615],[-13.874,28.7975],[-13.8004,28.6101],[-13.9045,28.2315]]],[[[-15.373,27.8509],[-15.6011,27.7205],[-15.85,27.9717],[-15.7041,28.1628],[-15.4172,28.1572],[-15.373,27.8509]]],[[[-16.4257,28.1504],[-16.7084,28.0082],[-16.9265,28.3522],[-16.5229,28.4185],[-16.3182,28.5798],[-16.2224,28.5306],[-16.4257,28.1504]]],[[[-17.004,28.08],[-17.2554,27.9517],[-17.4329,28.0885],[-17.2817,28.2909],[-17.004,28.08]]],[[[-17.7361,28.5452],[-17.8792,28.4927],[-18.0407,28.7934],[-17.759,28.8716],[-17.7361,28.5452]]],[[[-17.8024,27.8558],[-17.9781,27.5665],[-18.2623,27.7101],[-17.8673,27.9174],[-17.8024,27.8558]]]]},properties:{name:"Spain"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[42.4043,12.4686],[41.816,11.6292],[41.8348,11.0448],[42.9681,10.9974],[42.7628,10.7159],[42.9804,10.0644],[43.9589,9.0545],[45.6126,8.4674],[46.9411,8.0224],[47.8524,7.9151],[45.6126,5.5657],[45.4747,5.4241],[45.2923,5.2367],[44.9162,4.9368],[43.4741,4.7993],[42.8138,4.301],[41.9101,3.9823],[41.2328,3.9616],[40.708,4.2326],[39.9305,3.8858],[39.5667,3.5224],[38.9731,3.5158],[38.1026,3.6459],[36.9621,4.3833],[35.9477,4.62],[35.8294,5.2367],[35.3235,5.413],[35.0325,5.8494],[34.9588,6.4537],[34.5428,6.7418],[33.7557,7.6074],[33.0448,7.899],[33.2485,8.381],[33.8204,8.4168],[34.0937,8.6026],[34.1132,9.4986],[34.4181,10.6735],[34.8021,10.8052],[35.2153,11.9187],[35.6227,12.5064],[36.1342,12.8315],[36.5603,14.2577],[37.2972,14.3876],[37.5268,14.2588],[37.9201,14.8128],[38.5391,14.4413],[39.0217,14.5899],[40.0851,14.5456],[40.8941,14.0891],[41.6307,13.3913],[42.4043,12.4686]]]},properties:{name:"Ethiopia"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[28.8967,69.0426],[28.4782,68.5109],[28.6388,68.2375],[28.8967,68.1515],[29.956,67.6452],[29.1273,66.9908],[29.4643,66.5492],[29.5729,66.4329],[30.0785,65.7704],[29.7547,65.4974],[29.7009,64.9085],[30.0443,64.7388],[30.0598,64.547],[30.0686,64.4375],[30.4884,64.1574],[30.2805,63.8509],[29.9719,63.7572],[31.128,63.2578],[31.5218,62.8942],[31.1863,62.4872],[30.144,61.8522],[27.9913,60.669],[27.8036,60.5486],[27.4542,60.4236],[26.7304,60.4075],[26.4539,60.4877],[23.4699,59.8757],[23.0034,59.8867],[22.9896,60.0826],[22.526,59.9512],[22.2141,60.2235],[21.3727,60.1112],[21.1787,60.7855],[21.4207,61.0455],[21.5937,61.5386],[21.3296,61.9539],[21.116,62.7127],[21.1799,63.0766],[23.0234,63.8509],[23.6173,64.0488],[24.2982,64.547],[24.562,64.777],[24.5412,65.0792],[24.8163,65.0981],[24.9085,64.8645],[25.2608,64.9432],[25.0846,65.5889],[24.6602,65.6676],[24.1551,65.816],[23.7656,66.2739],[23.8453,66.837],[23.4078,68.023],[20.5486,69.06],[21.0332,69.2348],[21.3103,69.3065],[21.5888,69.2786],[21.6919,69.2348],[21.9836,69.0729],[23.0757,68.6756],[24.0289,68.7802],[25.012,68.6429],[25.638,68.9632],[26.0763,69.7256],[27.7472,70.0602],[29.1537,69.588],[28.8967,69.0426]]],[[[22.1562,59.7949],[21.9437,59.6886],[21.847,59.8419],[21.7649,59.9724],[22.0745,60.0004],[22.1562,59.7949]]],[[[21.1062,60.4652],[21.0595,60.2693],[20.7092,60.2983],[20.8791,60.5594],[21.1062,60.4652]]],[[[20.55,60.0961],[20.1365,60.0355],[19.548,60.2237],[19.6324,60.32],[20.1365,60.3373],[20.4009,60.3136],[20.55,60.0961]]]]},properties:{name:"Finland"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[179.6738,-16.4902],[179.9173,-16.6526],[179.7354,-16.757],[179.6784,-16.5883],[179.4587,-16.7284],[178.7776,-16.9537],[178.6168,-16.8573],[178.5993,-16.6408],[179.6622,-16.219],[179.836,-16.3106],[179.6738,-16.4902]]],[[[178.501,-18.1185],[177.9862,-18.2601],[177.3939,-18.1281],[177.2656,-17.9593],[177.4317,-17.6272],[177.6413,-17.4673],[178.1928,-17.3103],[178.5482,-17.6272],[178.501,-18.1185]]],[[[178.2849,-19.1472],[178.1542,-19.3847],[177.988,-19.2959],[177.965,-18.9902],[178.2849,-19.1472]]],[[[-179.9307,-16.8438],[-180,-16.9728],[-180,-16.7973],[-179.9488,-16.8052],[-179.9307,-16.8438]]]]},properties:{name:"Fiji"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-58.3365,-51.3236],[-58.3004,-51.3984],[-57.9228,-51.3727],[-57.7233,-51.6659],[-58.0596,-51.7907],[-58.3365,-51.8246],[-58.4347,-52.0524],[-58.6392,-52.0524],[-59.7554,-52.3821],[-59.6972,-52.1115],[-59.8029,-51.8657],[-60.282,-52.0524],[-60.4624,-52.2166],[-60.7826,-52.166],[-60.8703,-52.0468],[-60.5288,-51.9344],[-60.5288,-51.6823],[-60.4058,-51.6823],[-60.2337,-51.3236],[-59.4376,-51.3236],[-59.2842,-51.4358],[-59.5801,-51.6909],[-59.3968,-51.8047],[-59.0744,-51.694],[-59.0744,-51.5646],[-58.8831,-51.3053],[-58.3365,-51.3236]]],[[[-60.6288,-51.6623],[-61.0179,-51.6852],[-60.9604,-51.4587],[-60.6836,-51.4524],[-60.6288,-51.6623]]]]},properties:{name:"Falkland Islands"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[162.441,11.7853],[162.4662,11.4213],[162.1497,11.5683],[162.1379,11.6753],[162.441,11.7853]]],[[[158.3919,6.8645],[158.3248,6.7299],[158.1289,6.7633],[158.0496,6.9413],[158.2678,7.0729],[158.3919,6.8645]]],[[[155.0335,1.0626],[154.9879,.9026],[154.8092,1.0508],[154.5622,1.124],[154.5513,1.2456],[154.8189,1.2144],[155.0335,1.0626]]],[[[152.0497,7.5599],[152.0173,7.1788],[151.7651,7.3273],[151.9196,7.6092],[152.0497,7.5599]]],[[[139.7787,10.0227],[139.8461,9.6924],[139.6418,9.7071],[139.5233,10.0093],[139.7787,10.0227]]]]},properties:{name:"Micronesia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-7.1612,62.127],[-7.1326,62.2843],[-6.5477,62.3301],[-6.6617,62.127],[-6.8239,61.9419],[-7.1612,62.127]]]},properties:{name:"Faroes"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[55.8498,-21.1858],[55.7858,-21.3757],[55.3304,-21.2876],[55.202,-21.035],[55.4471,-20.8597],[55.6529,-20.9056],[55.8498,-21.1858]]],[[[45.3392,-12.7143],[45.2392,-13.0535],[45.0223,-12.9229],[45.1091,-12.6808],[45.3392,-12.7143]]],[[[9.3497,41.7331],[9.241,41.4735],[8.9872,41.5136],[8.8934,41.7331],[8.7341,42.1059],[8.62,42.3732],[9.4119,42.797],[9.4022,41.8587],[9.3497,41.7331]]],[[[5.8181,49.5463],[5.8934,49.4969],[6.3671,49.4695],[6.557,49.4192],[6.7235,49.2188],[7.1011,49.156],[7.2643,49.1338],[7.3688,49.1615],[7.6357,49.054],[7.9107,49.0452],[8.0684,48.9993],[8.2326,48.9666],[7.9596,48.7186],[7.6807,48.2573],[7.5779,48.1214],[7.5773,48.1157],[7.5814,47.9145],[7.546,47.7436],[7.589,47.5899],[7.5552,47.5646],[7.5109,47.5026],[7.3809,47.4319],[7.1304,47.503],[6.9392,47.4337],[6.8584,47.1672],[6.8602,47.1655],[6.463,46.8511],[6.1381,46.5577],[6.064,46.4162],[6.1256,46.3172],[5.9561,46.1321],[6.1776,46.1816],[6.2414,46.3436],[6.463,46.432],[6.8211,46.4272],[7.0449,45.9224],[6.8024,45.7786],[7.1047,45.4685],[7.1311,45.2671],[6.6301,45.1099],[7.0658,44.7135],[6.9484,44.6547],[6.8874,44.3613],[7.7142,44.0615],[7.5298,43.784],[7.4392,43.749],[7.4374,43.7516],[7.4129,43.7328],[7.4103,43.7293],[7.4147,43.7266],[6.9313,43.4803],[6.463,43.1567],[5.6719,43.1793],[4.2303,43.4602],[4.1011,43.5547],[3.5631,43.341],[3.407,43.279],[3.2405,43.2129],[3.0434,42.8382],[3.0523,42.6893],[3.1748,42.4354],[1.731,42.4924],[1.7258,42.5044],[1.7861,42.5737],[1.4426,42.6037],[1.3298,42.6999],[.8582,42.8257],[.7453,42.7489],[.6601,42.691],[.4778,42.7],[-.3133,42.8494],[-.7245,42.9202],[-1.4389,43.2579],[-1.7289,43.2961],[-1.7694,43.3347],[-1.786,43.3505],[-1.5248,43.5296],[-1.2541,44.4676],[-1.1393,45.4131],[-.7148,45.3284],[-1.1438,45.7955],[-1.1625,46.3242],[-1.7859,46.5279],[-1.8933,46.6465],[-2.0158,46.7818],[-1.9805,47.0287],[-2.4585,47.448],[-2.7863,47.5636],[-3.0916,47.4437],[-3.3739,47.7091],[-3.523,47.8491],[-4.3251,47.8813],[-4.3643,48.158],[-4.6593,48.3933],[-4.4342,48.6204],[-3.6592,48.6594],[-3.3739,48.7307],[-3.1221,48.7936],[-2.7863,48.5849],[-1.9481,48.5389],[-1.5711,48.6265],[-1.7613,49.516],[-1.4101,49.6094],[-1.1196,49.3223],[.2972,49.4299],[.6443,49.4431],[.6911,49.5073],[.7453,49.5183],[.7453,49.5209],[.7453,49.5234],[.1167,49.5391],[.2717,49.7307],[.7453,49.8709],[1.3796,50.0651],[1.6447,50.3504],[1.5785,50.5895],[1.6472,50.8631],[2.0677,51.0066],[2.546,51.0894],[2.607,50.9127],[2.8633,50.7083],[2.8701,50.7029],[2.8864,50.7057],[2.9004,50.6933],[2.9092,50.6945],[2.9116,50.7031],[2.9223,50.7028],[2.93,50.7117],[2.9306,50.7262],[2.9372,50.73],[2.9442,50.732],[2.938,50.7402],[2.9401,50.7453],[2.9566,50.7529],[2.9642,50.75],[2.9722,50.7502],[2.9833,50.7572],[3.0059,50.7661],[3.0112,50.7702],[3.0149,50.7736],[3.0187,50.7735],[3.0985,50.779],[3.2453,50.713],[3.3897,50.5453],[3.6151,50.4904],[3.6555,50.4617],[3.7407,50.358],[4.0278,50.3583],[4.1409,49.9788],[4.2331,49.9578],[4.4325,49.9416],[4.7928,50.147],[4.9694,49.8018],[5.1537,49.7179],[5.3935,49.6171],[5.4709,49.4972],[5.7346,49.5457],[5.8181,49.5463]]],[[[-54.5879,2.3221],[-54.326,2.588],[-54.0163,3.5593],[-54.4353,4.386],[-54.298,5.2363],[-54.0056,5.6025],[-53.8517,5.6949],[-53.066,5.4745],[-52.7219,5.2363],[-51.8475,4.6165],[-51.6555,4.056],[-52.5292,2.588],[-52.966,2.2123],[-53.7392,2.2956],[-54.1804,2.1379],[-54.5879,2.3221]]],[[[-60.7977,14.5053],[-60.9485,14.4332],[-61.1957,14.7745],[-60.8696,14.7984],[-60.7977,14.5053]]],[[[-61.0749,15.9501],[-61.2968,15.7521],[-61.4556,15.9501],[-61.289,16.1336],[-61.0749,15.9501]]],[[[-61.5638,16.1518],[-61.7221,15.9609],[-61.8407,16.2787],[-61.5435,16.3898],[-61.4564,16.5499],[-61.2889,16.2942],[-61.5638,16.1518]]]]},properties:{name:"France"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[13.299,2.1706],[13.3162,1.4466],[14.0479,1.3393],[14.3513,1.0236],[14.008,.0173],[14.4299,-.8786],[14.3759,-1.7141],[14.1596,-2.16],[13.3829,-2.3436],[12.6158,-2.0511],[12.3425,-2.3577],[11.8464,-2.5027],[11.7476,-2.7148],[11.9433,-3.1022],[11.8945,-3.4408],[11.201,-3.9916],[9.7678,-2.5299],[8.9799,-1.2056],[8.9194,-.8786],[9.5261,.1929],[9.4768,.5178],[9.662,1.0598],[11.2847,1.0376],[11.3346,2.1739],[11.8459,2.2795],[13.299,2.1706]]]},properties:{name:"Gabon"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.8872,11.9187],[-61.7536,12.2389],[-61.5437,12.3092],[-61.6175,11.9707],[-61.8872,11.9187]]]},properties:{name:"Grenada"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[46.4205,41.9043],[46.2829,41.7331],[46.5821,41.3432],[46.5337,41.1855],[45.0131,41.2966],[43.4738,41.1233],[42.815,41.5555],[42.5152,41.4383],[41.5471,41.5204],[41.6572,41.7331],[41.73,41.8738],[41.6548,42.1059],[41.536,42.3929],[41.2964,42.7667],[40.0103,43.3853],[41.0039,43.4488],[42.4524,43.1829],[43.9013,42.6535],[45.0431,42.6553],[45.6621,42.3929],[45.9086,42.1059],[46.4205,41.9043]]]},properties:{name:"Georgia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-2.7205,49.4438],[-2.4703,49.6425],[-2.3118,49.638],[-2.4045,49.3183],[-2.7205,49.4438]]]},properties:{name:"Guernsey"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[1.1996,6.1124],[1.0504,6.0026],[.9463,5.8001],[.7453,5.7835],[.2362,5.7413],[-1.7859,4.8801],[-1.8933,4.8344],[-2.0007,4.7886],[-2.7863,5.0035],[-3.1058,5.0909],[-2.8322,5.299],[-3.1813,6.7737],[-2.5205,8.2869],[-2.6869,9.4907],[-2.7863,10.0094],[-2.9125,10.6685],[-2.7863,10.8872],[-2.7279,10.9884],[-1.8933,10.9871],[-.6868,10.9912],[-.142,11.139],[-.0713,10.6685],[.3087,10.2935],[.6206,8.2206],[.57,6.8716],[.7453,6.6207],[.9463,6.333],[1.1996,6.1124]]]},properties:{name:"Ghana"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-5.3392,36.152],[-5.3413,36.1247],[-5.3481,36.1135],[-5.3559,36.1252],[-5.3595,36.1458],[-5.3588,36.1497],[-5.3515,36.1526],[-5.3392,36.152]]]},properties:{name:"Gibraltar"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-24.5304,82.9324],[-24.4093,82.8762],[-23.2855,82.9788],[-20.7029,82.6728],[-20.7038,82.5656],[-24.4093,82.1877],[-29.6414,82.1427],[-31.3607,81.9014],[-31.3505,81.7942],[-26.7037,82.0293],[-25.0188,81.9299],[-24.999,81.8272],[-25.3418,81.6662],[-25.3144,81.5637],[-24.4093,81.6406],[-22.7312,82.0151],[-21.4404,82.0356],[-21.1128,81.8798],[-21.2646,81.5342],[-22.182,81.1618],[-22.149,81.0507],[-20.9853,81.223],[-19.8059,81.6237],[-17.4748,81.3867],[-16.1693,81.7027],[-13.5572,81.7367],[-11.8645,81.4732],[-11.8412,81.3761],[-12.0501,81.2256],[-16.15,80.6122],[-16.4702,80.2369],[-18.4958,80.1732],[-18.4906,80.0514],[-17.6459,80.0598],[-17.5098,79.9343],[-17.9872,79.7213],[-19.2888,79.6632],[-19.5438,79.3166],[-19.2253,79.0851],[-19.4133,78.7149],[-20.8328,78.7492],[-21.202,78.2926],[-20.9822,77.9536],[-20.6203,77.8806],[-20.3063,78.068],[-20.2393,77.8355],[-19.4048,77.886],[-19.2569,77.6422],[-20.4562,77.6491],[-20.5382,77.5168],[-18.3317,77.2026],[-18.249,76.8768],[-18.509,76.7507],[-20.403,76.8639],[-20.8252,76.7415],[-21.1093,76.9169],[-21.2599,76.8153],[-21.1539,76.5862],[-21.3334,76.491],[-22.1374,76.8207],[-22.2859,76.6469],[-21.4751,76.3065],[-20.8002,76.5533],[-20.3676,76.4907],[-19.5648,75.7519],[-19.4036,75.4898],[-19.487,75.2248],[-20.453,75.2262],[-20.5773,75.0378],[-20.0158,74.8814],[-19.9334,74.6328],[-19.2983,74.6009],[-19.2908,74.369],[-21.6066,74.1776],[-21.6143,74.0713],[-20.5412,73.825],[-20.6637,73.5018],[-22.3417,73.2677],[-23.6477,73.5041],[-24.1112,73.7424],[-24.4093,73.6884],[-24.5881,73.5084],[-24.4093,73.2662],[-23.6044,73.3098],[-22.1746,72.8266],[-22.4045,72.1564],[-24.4093,72.6197],[-24.7163,73.0444],[-24.8871,72.8232],[-24.7126,72.5973],[-24.4093,72.4509],[-22.7891,71.9446],[-22.4061,71.4146],[-21.7873,71.4592],[-21.7142,71.235],[-21.8837,70.973],[-21.6908,70.5033],[-22.3012,70.4915],[-22.5288,70.7284],[-22.7192,70.4715],[-23.4574,70.4829],[-24.0236,70.6969],[-24.4093,71.0672],[-24.7349,71.2767],[-25.4402,71.3729],[-25.4072,70.6816],[-26.4459,70.4185],[-26.2876,70.2382],[-25.4435,70.3427],[-24.4093,70.2232],[-22.8339,70.0895],[-22.8237,69.984],[-23.3521,69.8338],[-23.8153,69.5235],[-26.5918,68.7098],[-29.3278,68.301],[-29.9246,68.3444],[-30.3883,68.1358],[-31.4976,68.1459],[-32.1596,68.3845],[-32.1755,67.9331],[-33.2563,67.6329],[-33.5693,67.1124],[-34.381,66.5626],[-35.6327,66.2369],[-36.0778,65.9268],[-36.5346,66.0181],[-36.7984,65.586],[-37.0909,65.7371],[-37.7907,65.6315],[-37.6365,66.1909],[-37.829,66.2034],[-38.245,65.692],[-39.6725,65.5714],[-39.8643,65.0151],[-41.0277,65.0016],[-40.9698,64.8671],[-40.5484,64.8728],[-40.4842,64.6577],[-40.5522,64.3781],[-40.9836,64.2925],[-40.6582,63.9687],[-40.8335,63.5446],[-41.4075,63.4999],[-41.2675,63.1684],[-42.2538,62.6127],[-42.3548,61.4764],[-42.7287,61.1172],[-42.8919,60.6246],[-43.3139,60.4483],[-43.1456,60.0556],[-43.6036,59.8993],[-43.7145,60.0889],[-44.0578,60.1286],[-44.1567,59.879],[-45.0497,59.9181],[-45.3466,60.0704],[-45.6719,60.7496],[-45.8693,60.5369],[-46.0752,60.6825],[-45.7814,60.9722],[-45.7946,61.096],[-46.2184,61.0055],[-46.3362,60.7582],[-46.4446,60.9548],[-46.7499,60.7631],[-47.0282,60.6894],[-48.0324,60.7278],[-48.5494,61.4588],[-49.2875,61.562],[-49.3335,61.7886],[-49.1724,61.9553],[-49.3602,62.1364],[-49.5243,62.0358],[-49.4176,61.8013],[-49.5672,61.8106],[-50.5142,62.8611],[-51.0991,63.2159],[-51.3711,63.7806],[-51.7672,63.8783],[-52.1646,64.6577],[-52.4448,65.3604],[-53.1565,65.4725],[-53.6664,66.1379],[-53.6594,66.4304],[-53.3269,66.8604],[-53.5897,66.8855],[-53.7896,67.2589],[-53.7983,67.9389],[-53.6315,68.2638],[-52.9788,68.7395],[-51.6436,68.5612],[-51.2829,68.6939],[-50.8333,69.5984],[-50.9065,69.7122],[-51.2139,69.6055],[-51.6107,69.9891],[-52.3858,70.0919],[-54.0515,70.4609],[-54.3088,70.6749],[-53.9298,70.7999],[-51.203,70.4182],[-50.9137,70.558],[-50.9248,70.7947],[-51.3603,71.0978],[-51.8913,70.9061],[-52.1743,71.1477],[-52.975,71.1948],[-53.3814,71.8271],[-54.123,71.4392],[-55.3981,71.5146],[-55.5916,71.7935],[-55.1204,72.2678],[-55.4181,72.3016],[-55.3,72.5594],[-55.6037,72.6139],[-55.9824,73.0312],[-56.2152,73.4147],[-55.8732,73.5217],[-55.6982,73.0166],[-55.1977,72.8887],[-55.1442,72.9769],[-56.0253,73.9643],[-56.1978,74.4686],[-56.9687,74.8562],[-57.5503,74.887],[-58.8398,75.5776],[-58.8044,75.6888],[-59.3677,75.8821],[-63.2778,76.3524],[-63.9139,76.1182],[-64.332,76.3118],[-65.5026,76.0263],[-66.0459,76.2401],[-66.8312,76.2289],[-67.2235,76.0072],[-68.3758,76.0815],[-69.2535,76.3222],[-68.9588,76.6632],[-70.5125,76.8242],[-70.731,76.929],[-70.7152,77.031],[-68.3758,77.3623],[-66.514,77.4848],[-66.502,77.5903],[-66.8193,77.6859],[-68.3758,77.535],[-69.1155,77.4873],[-71.674,77.8686],[-72.5651,78.2338],[-72.2831,78.5038],[-68.3758,79.027],[-66.0848,79.1524],[-64.7909,79.5435],[-64.513,80.0252],[-66.9557,80.0786],[-67.2451,80.2154],[-67.1247,80.3518],[-63.5449,81.1763],[-62.0161,81.092],[-61.5368,81.4102],[-61.597,81.7588],[-59.3692,82.0882],[-55.173,82.3007],[-54.5609,82.0524],[-54.4875,81.6684],[-54.0033,81.817],[-54.0841,82.1849],[-53.8333,82.2551],[-51.7017,81.7286],[-51.2207,81.8837],[-51.5735,82.4264],[-50.4164,82.4312],[-49.5024,82.2718],[-49.032,82.3538],[-48.4243,82.0743],[-45.823,81.6455],[-45.5096,82.0038],[-45.6244,82.1269],[-45.825,81.9411],[-46.5168,82.1052],[-47.6208,82.2747],[-47.7632,82.478],[-46.77,82.5647],[-46.1292,82.5893],[-46.199,82.761],[-47.1275,82.7809],[-47.1715,82.9864],[-46.77,82.997],[-45.6356,82.8842],[-43.5391,83.2165],[-39.6446,82.9078],[-38.9224,83.012],[-38.9153,83.1172],[-39.3401,83.2382],[-39.3386,83.4149],[-32.5912,83.6315],[-26.8793,83.5214],[-26.147,83.423],[-26.0334,83.1866],[-24.4093,83.1561],[-24.5304,82.9324]]],[[[-17.2649,75.0442],[-17.6003,74.9329],[-17.6953,75.0381],[-17.6481,75.1756],[-17.3607,75.1828],[-17.2649,75.0442]]],[[[-17.3861,81.5452],[-17.6235,81.5387],[-17.9342,81.6715],[-17.8555,81.7566],[-17.411,81.6739],[-17.3861,81.5452]]],[[[-17.5816,77.65],[-18.0207,77.5849],[-18.0786,77.6494],[-17.8382,77.8448],[-17.5374,77.8124],[-17.5816,77.65]]],[[[-17.5804,79.0358],[-18.0817,78.9271],[-18.0431,79.0874],[-17.7734,79.2066],[-17.5804,79.0358]]],[[[-18.5653,75.3622],[-18.3484,75.3142],[-17.9481,75.3339],[-17.9885,75.0448],[-18.1892,75.0098],[-18.8317,75.0354],[-18.8272,75.247],[-18.5653,75.3622]]],[[[-18.3165,78.6781],[-18.3217,78.4218],[-18.624,78.482],[-18.6947,78.5795],[-18.6527,78.6529],[-18.3165,78.6781]]],[[[-18.4531,76.0546],[-18.5643,75.9973],[-19.0874,76.4571],[-19.0731,76.6711],[-18.8351,76.6039],[-18.4531,76.0546]]],[[[-18.719,78.1402],[-18.6553,77.9265],[-19.2828,77.9391],[-19.3204,78.1402],[-18.8862,78.0305],[-18.719,78.1402]]],[[[-18.7015,74.6539],[-18.9369,74.4328],[-19.1717,74.573],[-19.0131,74.7286],[-18.7015,74.6539]]],[[[-18.7265,81.8228],[-19.0254,81.8053],[-19.4416,82.0286],[-19.207,82.1289],[-18.7085,81.9408],[-18.7265,81.8228]]],[[[-22.0096,71.5912],[-22.3027,71.5214],[-22.4128,71.745],[-22.2005,71.8426],[-22.0096,71.5912]]],[[[-39.8943,83.4248],[-40.0202,83.221],[-40.4045,83.3422],[-40.3036,83.4598],[-39.8943,83.4248]]],[[[-52.269,69.4511],[-53.9908,69.3202],[-54.0375,69.5312],[-54.7382,69.6289],[-54.7804,70.0919],[-54.6738,70.185],[-54.2786,70.3043],[-53.6205,70.248],[-53.0825,70.0919],[-52.269,69.8418],[-52.0279,69.8041],[-51.9308,69.741],[-51.9982,69.572],[-52.269,69.4511]]],[[[-53.4106,71.0613],[-53.6342,71.0077],[-53.9188,71.1585],[-53.6118,71.3306],[-53.4106,71.0613]]],[[[-56.7563,73.8478],[-56.9074,73.8149],[-56.9682,73.9902],[-56.8828,74.2048],[-56.5285,74.1965],[-56.7563,73.8478]]],[[[-57.0764,74.4304],[-57.2939,74.3446],[-57.4436,74.4668],[-57.0764,74.7186],[-57.0764,74.4304]]]]},properties:{name:"Greenland"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-16.747,13.0637],[-16.8106,13.3348],[-16.5467,13.5909],[-16.5068,13.5909],[-16.1395,13.5914],[-15.0767,13.7903],[-13.9619,13.512],[-13.8396,13.3348],[-14.0997,13.2862],[-14.2079,13.2305],[-14.383,13.2445],[-14.5538,13.3348],[-15.102,13.5695],[-15.3101,13.3781],[-15.8026,13.3348],[-15.8577,13.1872],[-16.1395,13.1667],[-16.747,13.0637]]]},properties:{name:"Gambia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-11.3795,12.4136],[-11.3138,12.1429],[-10.6468,11.9712],[-9.0923,12.3591],[-8.5611,11.3615],[-8.5566,11.0662],[-7.9785,10.1751],[-8.1218,9.6107],[-7.8783,9.2737],[-7.9101,8.8593],[-7.7092,8.5226],[-8.1489,8.4531],[-8.2025,8.2206],[-8.0418,8.107],[-8.1719,7.6791],[-8.4722,7.5546],[-9.1699,7.3537],[-9.5993,8.3707],[-10.282,8.488],[-10.5938,8.3973],[-10.5221,8.6984],[-10.7248,9.3546],[-11.3001,9.9887],[-12.4355,9.8266],[-13.0138,9.1406],[-13.3027,9.0404],[-13.481,9.5749],[-14.3944,10.2521],[-14.9028,11.0929],[-14.6662,11.4317],[-13.7975,11.7717],[-13.7083,12.6762],[-13.2641,12.649],[-12.4334,12.3458],[-11.3795,12.4136]]]},properties:{name:"Guinea"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[9.8215,2.3478],[10.1506,2.1693],[11.3346,2.1739],[11.2847,1.0376],[9.662,1.0598],[9.4026,1.2325],[9.7791,1.8945],[9.8215,2.3478]]],[[[8.9477,3.6456],[8.6776,3.1916],[8.3963,3.3507],[8.5671,3.4704],[8.6916,3.7949],[8.9007,3.7856],[8.9477,3.6456]]],[[[5.7677,-1.4352],[5.7396,-1.6057],[5.533,-1.591],[5.5092,-1.2886],[5.6073,-1.2091],[5.7677,-1.4352]]]]},properties:{name:"Equatorial Guinea"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-36.1482,-54.3785],[-36.0495,-54.572],[-35.8595,-54.5547],[-35.8709,-54.7898],[-36.2473,-54.8133],[-36.4526,-54.5331],[-36.8273,-54.4593],[-37.2127,-54.2092],[-36.9226,-54.0603],[-36.6745,-54.2796],[-36.1482,-54.3785]]],[[[-37.3814,-54.1483],[-37.6379,-54.2553],[-37.8265,-54.128],[-37.4428,-53.9379],[-37.3814,-54.1483]]],[[[-41.4845,-53.6988],[-41.5768,-53.7952],[-41.9803,-53.6333],[-41.7669,-53.4771],[-41.4845,-53.6988]]]]},properties:{name:"South Georgia and The South Sandwich Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-88.9128,15.9001],[-88.2213,15.7205],[-89.0755,15.0705],[-89.3532,14.4185],[-89.435,14.3466],[-89.6593,14.1495],[-90.0133,13.8384],[-90.1243,13.7409],[-90.1338,13.7454],[-90.7911,13.8738],[-91.0362,13.9216],[-92.2313,14.5333],[-92.1126,15.2942],[-91.8002,15.8454],[-90.4981,16.2084],[-91.1617,17.0796],[-90.9613,17.6841],[-90.0133,17.7907],[-89.6593,17.7984],[-89.435,17.8032],[-89.147,17.8095],[-89.1972,16.2896],[-89.1806,15.9683],[-88.9128,15.9001]]]},properties:{name:"Guatemala"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[144.5399,13.4638],[144.7864,13.5479],[144.866,13.7133],[145.0169,13.6423],[144.6352,13.1516],[144.5399,13.4638]]]},properties:{name:"Guam"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-14.9028,11.0929],[-14.9581,10.9988],[-15.2684,11.2026],[-15.2842,11.6135],[-15.6256,11.6966],[-15.9355,11.4707],[-16.0111,11.7422],[-16.7074,12.3386],[-15.1085,12.6633],[-13.7083,12.6762],[-13.7975,11.7717],[-14.6662,11.4317],[-14.9028,11.0929]]],[[[-15.6251,10.7377],[-15.8016,10.6407],[-15.9372,10.8898],[-15.5471,10.9821],[-15.6251,10.7377]]],[[[-15.8081,11.0723],[-16.0685,10.9738],[-16.2077,11.0476],[-16.2077,11.2233],[-15.9304,11.2239],[-15.8081,11.0723]]]]},properties:{name:"Guinea-Bissau"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-57.134,5.8374],[-57.2815,5.2363],[-57.3549,5.0511],[-57.8536,4.8346],[-58.0157,4.0688],[-57.786,3.6417],[-57.3197,3.3177],[-57.0218,2.6002],[-56.4774,1.9459],[-57.2818,1.9505],[-58.8112,1.2685],[-59.511,1.7084],[-59.9399,2.6147],[-59.642,4.1358],[-60.0054,4.5779],[-60.1578,5.1926],[-60.7318,5.1961],[-61.2634,5.8625],[-61.2089,6.4133],[-60.4378,6.9909],[-60.6142,7.5487],[-59.9947,8.1428],[-59.994,8.5334],[-59.037,7.9339],[-58.3467,6.9418],[-57.2986,6.2066],[-57.134,5.8374]]]},properties:{name:"Guyana"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[114.0376,22.5037],[114.2348,22.5558],[114.2598,22.252],[113.9355,22.1785],[113.8834,22.3116],[114.0376,22.5037]]]},properties:{name:"Hong Kong"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[73.3253,-53.1447],[73.4256,-52.988],[73.7196,-53.023],[73.7196,-53.1581],[73.4531,-53.2566],[73.3253,-53.1447]]]},properties:{name:"Heard Island and Mcdonald Islands"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-83.145,14.9981],[-84.4054,14.6387],[-84.9132,14.7538],[-85.3235,14.1899],[-86.6936,13.744],[-86.7646,13.3165],[-87.3121,12.9829],[-87.5178,13.2785],[-87.8057,13.3959],[-87.8678,13.8204],[-88.5397,13.9656],[-89.3532,14.4185],[-89.0755,15.0705],[-88.2213,15.7205],[-87.7568,15.8825],[-86.7792,15.7641],[-85.9388,15.9862],[-84.9024,15.9532],[-84.3175,15.798],[-83.8765,15.3067],[-83.4621,15.2635],[-83.145,14.9981]]],[[[-86.0956,16.2984],[-86.3235,16.2529],[-86.3901,16.503],[-86.149,16.6249],[-86.0956,16.2984]]]]},properties:{name:"Honduras"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[18.8897,45.9212],[19.0339,45.4868],[19.0053,45.4346],[19.0771,45.3405],[19.4252,45.1677],[19.1373,45.1187],[19.0221,44.8554],[18.8337,44.8701],[18.7408,45.0207],[18.5297,45.0875],[18.019,45.1294],[17.8339,45.0615],[17.4433,45.1597],[17.1412,45.1633],[16.2537,45.0676],[15.84,45.2245],[15.7367,44.9356],[16.1322,44.4545],[16.1724,44.2092],[16.4384,44.0425],[16.5443,43.9742],[17.4508,43.1769],[18.1539,42.6893],[18.4381,42.5557],[18.5252,42.4205],[17.9364,42.6878],[17.6492,42.8889],[17.5813,42.9384],[17.3561,43.0842],[16.9389,43.3334],[16.0165,43.5019],[15.5392,43.8578],[15.3244,43.9473],[15.3244,43.9136],[15.3244,43.9094],[15.3244,43.8762],[15.3244,43.872],[15.3244,43.8665],[15.3244,43.8488],[15.3244,43.8185],[15.3244,43.7913],[15.2224,43.8714],[15.0388,44.1357],[15.2786,44.3661],[14.954,44.5495],[14.9025,44.6902],[14.8813,45.0311],[14.5261,44.9265],[14.2264,45.1538],[13.8453,44.8883],[13.543,45.3405],[13.6513,45.4541],[14.1113,45.4823],[14.1182,45.4812],[14.3909,45.5034],[14.57,45.6729],[15.2264,45.4271],[15.3313,45.7629],[15.4044,45.7927],[15.7064,45.9753],[15.6273,46.086],[15.7915,46.2593],[15.8735,46.2793],[16.3015,46.3783],[16.2421,46.4901],[16.5968,46.4759],[16.8548,46.3504],[16.876,46.3206],[17.2943,45.9885],[17.4433,45.9496],[17.6515,45.8478],[17.9121,45.7908],[18.8213,45.9144],[18.8897,45.9212]]],[[[17.3294,42.9672],[17.2813,42.8579],[16.9818,42.8645],[16.9248,42.9563],[17.0344,43.0844],[17.2145,43.0935],[17.3294,42.9672]]],[[[16.6308,42.2935],[16.3305,42.2716],[16.1233,42.3939],[16.2575,42.4915],[16.5125,42.4661],[16.6308,42.2935]]],[[[15.8854,42.9677],[15.6582,42.908],[15.4565,42.992],[15.5523,43.0512],[15.8748,43.15],[16.0236,43.0999],[15.8854,42.9677]]]]},properties:{name:"Croatia"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-71.7536,18.0307],[-72.1734,18.2281],[-73.8928,18.1341],[-74.4327,18.4518],[-74.2391,18.6521],[-72.8756,18.4506],[-72.3981,18.5879],[-72.8389,19.4889],[-73.3781,19.6946],[-73.2461,19.873],[-72.7983,19.9331],[-71.7579,19.702],[-71.6752,19.1658],[-71.8766,18.5572],[-71.7536,18.0307]]],[[[-72.8109,18.8339],[-72.7474,18.7171],[-73.034,18.743],[-73.3489,18.9417],[-73.2274,18.9926],[-72.8109,18.8339]]]]},properties:{name:"Haiti"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.1553,48.4034],[22.8963,47.9541],[22.1808,47.6001],[22.1283,47.5981],[21.659,47.0221],[21.4414,46.6515],[21.1475,46.3359],[20.7756,46.2759],[20.7053,46.1609],[20.2643,46.1264],[20.1365,46.1341],[19.8654,46.1503],[19.6981,46.1879],[19.3027,45.9916],[18.8897,45.9212],[18.8213,45.9144],[17.9121,45.7908],[17.6515,45.8478],[17.4433,45.9496],[17.2943,45.9885],[16.876,46.3206],[16.8548,46.3504],[16.5968,46.4759],[16.3708,46.7222],[16.1138,46.8691],[16.4594,47.0441],[16.4338,47.3529],[16.6462,47.4466],[16.4215,47.6653],[16.9914,47.72],[17.1608,48.0067],[17.2474,48.012],[17.7054,47.759],[17.8939,47.7395],[18.8485,47.8182],[18.7602,47.9145],[18.9284,48.0568],[19.0143,48.0777],[20.0519,48.1677],[20.4639,48.464],[21.4106,48.5497],[22.1211,48.3783],[22.1553,48.4034]]]},properties:{name:"Hungary"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-6.268,54.1023],[-6.2149,53.6334],[-6.0843,53.4842],[-6.1028,53.2108],[-6.1445,52.7377],[-6.4842,52.2218],[-7.8422,51.9542],[-9.6116,51.5096],[-10.2193,51.7677],[-10.1497,52.2477],[-9.3755,52.5878],[-9.4044,52.9687],[-9.0093,53.1408],[-9.8734,53.3329],[-10.1572,53.5751],[-10.0368,53.7783],[-10.1697,54.0152],[-9.9073,54.2643],[-9.1323,54.1624],[-8.4004,54.4797],[-8.6423,54.6824],[-8.2513,55.1317],[-7.3138,55.311],[-7.2561,55.067],[-7.6551,54.7729],[-7.5702,54.6426],[-7.8411,54.3349],[-7.4291,54.1829],[-7.1885,54.3377],[-6.8642,54.3302],[-6.6439,54.18],[-6.595,54.0447],[-6.268,54.1023]]]},properties:{name:"Ireland"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[35.6716,32.6911],[35.5551,32.389],[35.2216,32.5167],[35.0135,32.3104],[35.0826,31.7397],[34.9515,31.4243],[35.476,31.4905],[34.9782,29.5418],[34.9051,29.4932],[34.5937,30.3802],[34.2688,31.2205],[34.4994,31.4912],[34.4909,31.5959],[34.5937,31.7385],[34.7067,31.9416],[34.8436,32.3104],[35.1034,33.0936],[35.6244,33.2423],[35.6716,32.6911]]]},properties:{name:"Israel"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-4.7696,54.0657],[-4.7212,54.2029],[-4.5499,54.3537],[-4.3866,54.3997],[-4.3376,54.2928],[-4.5499,54.1006],[-4.7696,54.0657]]]},properties:{name:"Isle of Man"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[78.398,32.5232],[78.4736,32.2395],[78.5766,32.0593],[78.769,31.9377],[78.8882,31.2723],[79.138,31.003],[79.4224,31.064],[79.9526,30.8744],[80.2176,30.583],[81.0369,30.2028],[80.4172,29.7013],[80.1928,28.9158],[80.3067,28.7183],[83.0809,27.4663],[84.2444,27.4339],[85.2178,26.8066],[87.0575,26.4379],[87.4011,26.3831],[88.0627,26.484],[88.1704,26.852],[88.0432,27.206],[88.1351,27.8819],[88.7725,28.0233],[88.9233,27.2728],[89.0273,26.9609],[89.1233,26.8977],[89.7443,26.7397],[90.0071,26.7529],[92.1079,26.8583],[92.697,26.9058],[93.2491,26.9504],[93.6616,26.9837],[94.2529,27.5398],[95.7527,28.2572],[96.3086,28.1895],[97.0575,27.7441],[96.8989,27.2897],[96.1868,27.1873],[95.203,26.5525],[94.2381,24.0841],[94.0361,23.9215],[93.3872,23.9016],[93.1232,22.3714],[92.6068,21.9712],[92.1892,23.5198],[92.0094,23.5264],[91.6475,23.1403],[91.2736,23.6319],[91.453,24.0284],[92.1082,24.5094],[92.2478,25.0052],[90.0071,25.3633],[89.7217,26.0307],[89.1233,26.2142],[88.5924,26.3771],[88.2105,25.8776],[88.8173,25.3069],[88.1499,24.6608],[88.6844,24.2282],[88.6343,23.6942],[88.9238,23.0935],[89.0628,21.9257],[89.0238,21.887],[88.6191,21.6875],[87.8076,21.7084],[87.3346,21.4676],[86.4061,20.0929],[84.9085,19.1741],[82.6146,17.2281],[82.0003,16.4865],[80.3399,15.5112],[80.1667,14.9797],[80.2595,13.2612],[79.8627,11.8084],[79.7489,10.5292],[78.7661,9.2097],[77.9593,8.4451],[77.5097,8.2855],[76.494,9.1984],[73.438,16.3077],[72.792,19.4375],[72.8081,20.7982],[72.5294,21.9031],[72.3579,21.9557],[72.1176,21.4636],[71.6404,21.0458],[70.9636,20.8337],[70.3921,21.0003],[69.2859,22.2151],[70.0091,22.6016],[70.1621,22.8467],[69.485,22.8793],[68.7003,23.3122],[68.6735,23.6224],[69.218,23.9453],[68.9389,24.2488],[70.0829,24.2255],[69.9677,23.8801],[70.1285,23.6507],[70.316,23.881],[70.9228,23.9726],[70.8701,24.2488],[71.0157,24.7573],[70.716,25.4417],[70.2013,25.93],[70.084,26.4979],[69.5759,26.9485],[70.3421,27.909],[70.9183,27.7815],[71.9298,28.0722],[74.4044,30.8691],[74.65,31.8079],[75.3339,32.3266],[76.5852,33.1567],[77.3152,32.8606],[77.7621,32.9237],[78.398,32.5232]]],[[[93.9514,7.0194],[93.8073,6.808],[93.6389,7.1267],[93.8473,7.2598],[93.9514,7.0194]]],[[[92.7744,11.8045],[92.6556,11.6296],[92.5401,11.8045],[92.8167,13.1674],[92.945,13.6002],[93.087,13.4621],[92.9348,13.0071],[92.9758,12.5434],[92.9348,12.1948],[92.7584,12.0256],[92.7744,11.8045]]],[[[93.0147,8.8774],[92.8391,8.5952],[92.7008,8.6844],[92.8953,9.0924],[93.0147,8.8774]]],[[[92.61,10.6965],[92.5338,10.497],[92.3721,10.523],[92.3637,10.7851],[92.523,10.9194],[92.61,10.6965]]],[[[73.25,8.2245],[73.1115,8.034],[72.8237,8.2237],[73.1579,8.3749],[73.25,8.2245]]],[[[68.9485,23.9873],[68.7147,23.8086],[68.5248,23.9208],[68.7308,24.154],[68.9485,23.9873]]]]},properties:{name:"India"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[72.2496,-7.2082],[72.4022,-7.1035],[72.5587,-7.2509],[72.5618,-7.4562],[72.4008,-7.582],[72.3982,-7.3365],[72.2496,-7.2082]]]},properties:{name:"British Indian Ocean Territory"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[44.7931,37.1763],[45.1379,36.4692],[46.0584,35.6666],[46.0875,35.1508],[45.5289,34.4408],[45.5675,33.8898],[46.2417,32.9842],[47.4435,32.3096],[47.7857,31.7734],[47.7508,31.0984],[48.4844,29.9791],[47.9591,30.0038],[47.2144,30.0133],[46.553,29.1012],[46.4258,29.0612],[46.1115,29.0876],[45.6126,29.1294],[44.663,29.2518],[42.1579,31.0566],[40.4951,31.898],[39.2009,32.1543],[38.7925,33.3747],[41.0138,34.4548],[41.3561,35.6375],[41.3313,36.384],[42.3557,37.108],[42.8718,37.37],[43.4246,37.2753],[44.1298,37.279],[44.3175,37.0426],[44.7931,37.1763]]]},properties:{name:"Iraq"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[179.0015,-49.6501],[178.7724,-49.8507],[178.5452,-49.6947],[178.909,-49.5191],[179.0015,-49.6501]]],[[[175.211,-36.9434],[175.4301,-37.208],[175.5268,-37.1542],[175.4246,-36.7147],[175.4907,-36.6256],[175.8471,-36.9434],[176.1621,-37.6155],[177.2769,-37.9942],[177.9092,-37.5919],[178.3213,-37.5744],[178.4965,-37.7213],[178.3276,-38.3317],[177.8392,-39.0056],[177.0026,-39.2801],[176.9183,-40.0124],[176.066,-41.1167],[175.3236,-41.5785],[174.715,-41.3285],[175.1401,-40.6613],[175.1781,-40.2119],[173.7984,-39.3176],[173.9188,-39.1348],[174.533,-38.8729],[174.6003,-38.7145],[174.8117,-37.7731],[174.3377,-36.4518],[174.0344,-36.3225],[173.3415,-35.512],[173.1236,-35.1608],[173.2284,-34.8726],[173.904,-35.0379],[174.4677,-35.512],[174.4877,-35.9133],[174.5887,-36.0626],[174.8279,-36.712],[175.211,-36.9434]]],[[[172.7362,-40.69],[173.1993,-41.2224],[173.9697,-40.9516],[174.1467,-41.8038],[172.8252,-43.2176],[172.9688,-43.7881],[171.8361,-44.0752],[171.3433,-44.3576],[171.1099,-44.7518],[170.5556,-45.8222],[169.6687,-46.4979],[168.9475,-46.6627],[168.3749,-46.5934],[167.5117,-46.1908],[166.7007,-46.1853],[166.4494,-45.8621],[166.8476,-45.2798],[167.4731,-44.7518],[168.1666,-44.1848],[170.8669,-42.7873],[172.4063,-40.7032],[172.7362,-40.69]]],[[[173.148,-34.7698],[173.012,-34.8214],[172.7207,-34.4944],[173.0069,-34.3878],[172.9857,-34.5219],[173.148,-34.7698]]],[[[168.2008,-47.0612],[167.6336,-47.2661],[167.5502,-47.1551],[167.7658,-46.8901],[167.7198,-46.705],[167.8617,-46.677],[168.1705,-46.8607],[168.2008,-47.0612]]],[[[166.3205,-50.841],[166.1375,-50.9601],[165.8918,-50.8077],[166.1559,-50.5356],[166.3205,-50.841]]],[[[-176.3517,-44.0765],[-176.5996,-44.2034],[-176.7921,-43.9919],[-176.3561,-43.9203],[-176.3517,-44.0765]]],[[[-176.6359,-43.5673],[-176.6389,-43.7018],[-176.9625,-43.6642],[-177.0155,-43.5437],[-176.7712,-43.4085],[-176.6359,-43.5673]]],[[[-178.4544,-30.4002],[-178.4299,-30.7471],[-178.7271,-30.6285],[-178.697,-30.4381],[-178.4544,-30.4002]]]]},properties:{name:"New Zealand"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[56.3742,24.9804],[56.8749,24.2008],[57.2627,23.9326],[58.6784,23.5339],[59.305,22.7683],[59.7246,22.502],[59.749,22.1614],[59.4198,21.5894],[58.5057,20.4815],[58.1107,20.4832],[57.878,20.2393],[57.7116,19.7373],[57.7294,18.9955],[56.8314,18.7324],[56.3286,17.9621],[55.4639,17.7892],[54.987,17.055],[54.0762,16.9726],[53.107,16.6544],[52,19],[54.9485,20.0059],[55.5332,21.6026],[55.623,21.8699],[55.6667,22],[55.2083,22.7083],[55.5272,23.8382],[55.8942,24.1886],[55.851,24.8578],[56.1415,24.8043],[56.3742,24.9804]]],[[[58.7788,20.2184],[58.5562,20.2053],[58.8901,20.6868],[59.0327,20.5538],[58.8419,20.4561],[58.7788,20.2184]]],[[[56.2658,25.6247],[56.0871,26.0513],[56.364,26.1347],[56.2658,25.6247]]]]},properties:{name:"Oman"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-77.3675,8.6728],[-77.2491,7.9096],[-77.893,7.2218],[-78.3561,7.898],[-78.3616,8.3659],[-79.2671,8.954],[-80.3163,8.2753],[-80.1249,7.5415],[-80.6084,7.2851],[-81.9829,8.1676],[-82.7153,8.2748],[-82.9004,8.0398],[-82.9936,8.3047],[-82.7781,8.9311],[-82.9148,9.3744],[-82.5646,9.572],[-82.1142,9.2781],[-82.1606,9.0042],[-81.2964,8.7963],[-79.5888,9.5775],[-78.9287,9.5371],[-78.1197,9.2829],[-77.3675,8.6728]]],[[[-78.781,8.4146],[-78.9039,8.1216],[-79.1048,8.3141],[-78.9004,8.5713],[-78.781,8.4146]]],[[[-81.6151,7.4985],[-81.7789,7.3184],[-81.9587,7.5187],[-81.7272,7.7381],[-81.6151,7.4985]]]]},properties:{name:"Panama"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-69.9534,-4.2305],[-70.8737,-4.2367],[-71.899,-4.564],[-72.6878,-5.0578],[-73.1725,-6.3431],[-73.712,-6.95],[-73.8818,-7.5555],[-73.0739,-8.8492],[-72.9782,-9.3412],[-72.3919,-9.5555],[-72.0116,-9.9595],[-71.3377,-9.9639],[-70.631,-9.6918],[-70.5742,-10.9321],[-69.5103,-10.9543],[-68.7259,-12.4796],[-68.9523,-12.9637],[-68.8868,-14.1931],[-69.3052,-14.785],[-69.1901,-15.2484],[-69.3798,-15.6492],[-69.2396,-16.0733],[-68.8869,-16.3343],[-69.5634,-17.2192],[-69.4726,-17.499],[-69.7443,-17.665],[-69.9206,-18.183],[-70.3762,-18.3536],[-71.2706,-17.7324],[-71.4978,-17.3049],[-75.1079,-15.4055],[-76.235,-14.2095],[-76.2379,-13.3923],[-77.1075,-12.0879],[-77.2567,-11.6027],[-77.5984,-11.2957],[-78.9821,-8.2756],[-79.9678,-6.8066],[-81.0363,-6.0325],[-80.9295,-5.5289],[-81.1436,-5.149],[-81.2324,-4.3904],[-80.2733,-3.4262],[-80.2973,-4.3463],[-79.0222,-4.799],[-78.0291,-3.2721],[-76.5151,-2.4592],[-76.3212,-2.2733],[-75.7923,-1.766],[-75.6084,-1.582],[-75.2664,-.8786],[-75.511,-.2279],[-75.2882,-.0937],[-74.5531,-.4725],[-74.2103,-.8786],[-72.9094,-2.42],[-70.8922,-2.3015],[-70.1573,-2.707],[-70.5831,-3.7195],[-69.9534,-4.2305]]]},properties:{name:"Peru"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[155.9192,-6.7298],[155.7032,-6.8882],[155.2445,-6.602],[154.6647,-5.5612],[155.0348,-5.5601],[155.4671,-6.1312],[155.9192,-6.5093],[155.9192,-6.7298]]],[[[154.7075,-5.4061],[154.5641,-5.4238],[154.4816,-5.2075],[154.6129,-4.9528],[154.731,-5.2106],[154.7075,-5.4061]]],[[[154.1991,-11.4815],[153.9769,-11.4966],[153.8434,-11.3865],[153.9506,-11.2186],[154.2051,-11.2912],[154.1991,-11.4815]]],[[[153.8364,-9.277],[153.6307,-9.5031],[153.5542,-9.3382],[153.5685,-9.133],[153.8052,-9.122],[153.8364,-9.277]]],[[[153.713,-11.5138],[153.6874,-11.6582],[153.3321,-11.5633],[153.2803,-11.4371],[153.3863,-11.3614],[153.713,-11.5138]]],[[[153.0721,-9.1649],[152.827,-9.3065],[152.6431,-9.1305],[152.7584,-8.9624],[153.0721,-9.1649]]],[[[152.654,-3.8377],[153.0189,-4.1505],[153.0268,-4.5844],[152.8729,-4.793],[152.6887,-4.5631],[152.6512,-4.1505],[152.5602,-3.9215],[152.4332,-3.9308],[152.2907,-3.7164],[152.4929,-3.5236],[152.654,-3.8377]]],[[[152.7791,-3.1485],[152.5692,-3.2793],[152.3707,-3.0695],[152.7167,-2.9522],[152.7791,-3.1485]]],[[[151.4771,-5.5212],[151.1822,-5.9341],[149.9341,-6.3042],[148.9713,-6.1273],[148.4082,-5.571],[148.9495,-5.4603],[149.1987,-5.578],[149.9043,-5.4776],[150.0993,-5.5212],[150.466,-5.4361],[150.714,-5.5212],[151.6195,-4.866],[151.5873,-4.2316],[152.1767,-4.1451],[152.3445,-4.7203],[151.9945,-5.0447],[152.0686,-5.3754],[151.9402,-5.5212],[151.4771,-5.5212]]],[[[152.0773,-3.2554],[152.2006,-3.4598],[151.9254,-3.4501],[151.2746,-2.9349],[151.3856,-2.8803],[151.8075,-3.1893],[152.0773,-3.2554]]],[[[151.3415,-9.9479],[151.2365,-10.2085],[150.9062,-10.1224],[150.8864,-10.0152],[151.3415,-9.9479]]],[[[151.023,-2.8145],[150.6524,-2.8372],[150.8226,-2.5295],[151.0564,-2.687],[151.023,-2.8145]]],[[[150.2231,-9.2357],[150.5593,-9.3687],[150.7054,-9.276],[150.8846,-9.5559],[150.8088,-9.6712],[150.2297,-9.4642],[150.1334,-9.294],[150.2231,-9.2357]]],[[[141.0194,-9.1296],[141.0191,-8.5941],[141.019,-8.2445],[140.8902,-6.6579],[140.9999,-5.5208],[141,-2.7849],[141,-2.6087],[144.5226,-3.895],[145.6132,-4.7063],[145.8885,-5.4302],[147.645,-6.2159],[147.7216,-6.6203],[147.0257,-6.8644],[147.1783,-7.3019],[148.1154,-8.1191],[148.5796,-8.9479],[149.2016,-9.0947],[149.4396,-9.528],[149.8839,-9.6781],[149.9092,-9.97],[150.5112,-10.2194],[150.6114,-10.5194],[150.2823,-10.6789],[149.6128,-10.3643],[147.8877,-10.0593],[147.0302,-9.4153],[146.1837,-8.2648],[144.7153,-7.7091],[144.0224,-7.8248],[143.4401,-8.2673],[143.3445,-8.955],[142.7941,-9.234],[141.0194,-9.1296]]],[[[150.5565,-2.669],[150.1644,-2.6868],[150.0071,-2.4738],[150.1888,-2.3563],[150.5155,-2.4882],[150.5565,-2.669]]],[[[150.3047,-5.1354],[149.9896,-5.2158],[149.8801,-5.0624],[150.1617,-4.9033],[150.3047,-5.1354]]],[[[149.8273,-1.5788],[149.6128,-1.6318],[149.4282,-1.4102],[149.5519,-1.2421],[149.8273,-1.5788]]],[[[148.1247,-5.6672],[147.918,-5.8171],[147.692,-5.4815],[147.918,-5.4815],[148.1247,-5.6672]]],[[[147.1952,-2.2054],[146.9684,-2.2163],[146.6056,-2.1052],[146.5614,-2.0248],[146.6361,-1.9726],[147.3562,-1.9772],[147.1952,-2.2054]]],[[[147.2773,-5.4451],[147.1237,-5.4997],[146.9265,-5.2551],[147.0787,-5.1438],[147.2334,-5.2326],[147.2773,-5.4451]]],[[[146.0852,-4.7733],[145.8994,-4.8281],[145.8177,-4.6723],[146.004,-4.4377],[146.1186,-4.5388],[146.0852,-4.7733]]]]},properties:{name:"Papua New Guinea"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[141,-2.6087],[141,-2.7849],[140.9999,-5.5208],[140.8902,-6.6579],[141.019,-8.2445],[141.0191,-8.5941],[141.0194,-9.1296],[139.6527,-8.2242],[138.0183,-8.2334],[138.0749,-7.7967],[138.5287,-7.0576],[137.9026,-5.4377],[137.3299,-5.0153],[135.4366,-4.4563],[134.0279,-3.828],[132.9843,-3.7966],[132.4483,-2.92],[133.2113,-2.3929],[132.431,-2.1467],[131.9076,-1.5438],[131.1531,-1.4128],[130.7478,-.9912],[131.0971,-.8786],[132.5168,-.4211],[133.762,-.7198],[133.857,-.8786],[134.1699,-1.4015],[134.3555,-2.3404],[135.1215,-3.1887],[137.8487,-1.5936],[141,-2.6087]]],[[[136.7028,-1.8337],[136.3807,-1.9596],[136.0103,-1.7117],[136.1796,-1.6502],[136.6722,-1.7337],[136.7028,-1.8337]]],[[[136.4118,-1.1122],[136.3297,-1.288],[135.8664,-1.1994],[135.7721,-.8786],[135.7097,-.7855],[135.8485,-.7237],[136.0431,-.8786],[136.22,-1.0698],[136.4118,-1.1122]]],[[[135.0428,-.9106],[134.9622,-1.1615],[134.7692,-1.1553],[134.7059,-.9938],[134.8537,-.8786],[134.9871,-.8786],[135.0428,-.9106]]],[[[134.7918,-6.5361],[134.1571,-6.8062],[134.1282,-6.235],[134.2335,-5.6965],[134.5107,-5.4001],[134.671,-5.4598],[134.7918,-5.7306],[134.7342,-5.9834],[134.7918,-6.5361]]],[[[132.878,-5.9113],[132.7926,-5.9679],[132.6177,-5.7992],[132.7274,-5.4757],[132.8091,-5.5499],[132.878,-5.9113]]],[[[131.6413,-7.1302],[131.6172,-7.6325],[131.2814,-8.045],[131.0996,-8.0712],[131.0773,-7.7427],[131.1634,-7.7105],[131.2636,-7.3135],[131.3535,-7.344],[131.4364,-7.1152],[131.6413,-7.1302]]],[[[131.1805,-.1179],[131.2427,-.3525],[130.4911,-.526],[130.4911,-.3392],[130.2408,-.3015],[130.2438,-.1179],[130.5256,-.0633],[130.7124,-.1179],[130.873,.0234],[131.1805,-.1179]]],[[[129.5424,-2.8],[130.4791,-3.0764],[130.8132,-3.5021],[130.8177,-3.7784],[129.8004,-3.3317],[129.1405,-3.3606],[128.8638,-3.2681],[128.5035,-3.4098],[128.1367,-3.1482],[128.0364,-3.3124],[127.8956,-3.2257],[128.1986,-2.8853],[129.0463,-2.8],[129.1405,-2.9566],[129.3707,-2.8],[129.5424,-2.8]]],[[[130.4641,-1.9867],[130.1849,-2.0825],[129.8044,-1.9045],[130.0452,-1.7297],[130.3317,-1.6684],[130.4641,-1.9867]]],[[[130.1121,-4.4137],[130.1308,-4.858],[130.0002,-4.7958],[129.8955,-4.5682],[130.0107,-4.3802],[130.1121,-4.4137]]],[[[129.9435,-1.2418],[129.8027,-1.3592],[129.5463,-1.3466],[129.5437,-1.2152],[129.8395,-1.0825],[129.9435,-1.2418]]],[[[129.9033,-7.8182],[129.8011,-8.1062],[129.5254,-7.8828],[129.6895,-7.741],[129.9033,-7.8182]]],[[[129.6687,-6.5658],[129.5318,-6.9486],[129.3441,-6.837],[129.3694,-6.6367],[129.6687,-6.5658]]],[[[128.1375,-.5962],[128.0744,-.6888],[127.6611,.0707],[127.6542,.252],[127.6356,.737],[128.3419,1.4333],[128.6653,1.5285],[128.6909,1.2071],[128.3963,.7703],[128.5436,.4354],[128.0541,.3986],[128.0121,.252],[127.9602,.0707],[128.1375,-.5962]]],[[[128.5643,2.1554],[128.3598,2.0596],[128.2212,2.2568],[128.3573,2.5017],[128.5774,2.6362],[128.6812,2.5017],[128.5643,2.1554]]],[[[128.5983,-1.1836],[128.5427,-1.2665],[128.2216,-1.1392],[128.1674,-.9419],[128.2852,-.9159],[128.5983,-1.1836]]],[[[128.3978,-3.4399],[128.4126,-3.7222],[128.0286,-3.6294],[128.2244,-3.4254],[128.3978,-3.4399]]],[[[128.0776,-1.6743],[127.5978,-1.7293],[127.4354,-1.6659],[127.4054,-1.4761],[127.634,-1.3388],[127.9563,-1.4761],[128.0776,-1.6743]]],[[[127.9018,1.1698],[127.5574,.8969],[127.423,1.0583],[127.4152,1.1698],[127.5525,1.7282],[127.9256,2.0919],[128.0291,1.6494],[127.9018,1.1698]]],[[[127.7813,-5.2153],[127.9353,-5.5008],[127.588,-5.4971],[127.5657,-5.2881],[127.7813,-5.2153]]],[[[127.5969,-.6143],[127.8898,-.7863],[127.7346,-.8786],[127.7274,-.8786],[127.6211,-.7545],[127.4573,-.816],[127.4715,-.6446],[127.3218,-.6749],[127.103,-.4346],[127.1078,-.2914],[127.5259,-.3165],[127.688,-.4747],[127.5969,-.6143]]],[[[127.24,-3.4701],[126.821,-3.7999],[126.352,-3.7],[126.0326,-3.3329],[126.099,-3.1559],[126.352,-3.0964],[126.8752,-3.1076],[127.24,-3.4701]]],[[[126.9145,4.02],[126.7869,3.9151],[126.5624,3.9606],[126.7362,4.2006],[126.656,4.3353],[126.7295,4.5964],[126.8741,4.5233],[126.9503,4.244],[126.9145,4.02]]],[[[126.8214,-6.7672],[126.5579,-6.7672],[126.4506,-6.5777],[126.794,-6.4962],[126.8214,-6.7672]]],[[[126.6625,5.4401],[126.5285,5.3064],[126.4378,5.4526],[126.523,5.7022],[126.6993,5.775],[126.6625,5.4401]]],[[[126.688,-7.7041],[126.4723,-7.9296],[126.352,-7.9226],[125.848,-7.8527],[125.9512,-7.7023],[126.352,-7.6753],[126.5769,-7.5815],[126.688,-7.7041]]],[[[126.048,-1.7592],[126.0326,-2.0564],[125.6222,-1.8309],[125.6782,-1.7749],[126.048,-1.7592]]],[[[125.6825,3.4811],[125.522,3.402],[125.4681,3.4853],[125.5218,3.6003],[125.6825,3.4811]]],[[[125.5586,3.6723],[125.5197,3.6049],[125.4259,3.6215],[125.3794,3.6826],[125.4052,3.7481],[125.5141,3.7392],[125.5586,3.6723]]],[[[125.1281,-1.8957],[124.4547,-1.9904],[124.3065,-1.766],[124.6221,-1.6523],[125.1635,-1.7209],[125.2646,-1.766],[125.1281,-1.8957]]],[[[124.9795,1.1237],[124.2471,.4228],[123.6163,.3077],[120.6846,.4843],[120.2126,.252],[120.1255,.0707],[120.1728,-.7484],[120.3237,-.8786],[120.8602,-1.3421],[121.5654,-.9473],[121.8579,-.8786],[122.9771,-.6159],[123.3408,-.726],[123.3089,-.8786],[122.7457,-1.0869],[121.7172,-2.0886],[122.4409,-3.6697],[123.0816,-4.1828],[122.9862,-5.3197],[122.7302,-5.5155],[122.4999,-5.3696],[122.4154,-4.9715],[122.6224,-4.5947],[121.9035,-4.7502],[121.6749,-4.6471],[120.7748,-2.7805],[120.3042,-3.2254],[120.2894,-5.2903],[119.7709,-5.5801],[119.5409,-5.4177],[119.5018,-3.8519],[118.9632,-3.3302],[118.8499,-2.9709],[119.563,-.8786],[119.7402,-.5736],[119.7744,.0707],[119.8606,.252],[120.0635,.6216],[120.5987,.8708],[120.9464,1.2721],[123.7339,.8724],[125.0099,1.7289],[125.1568,1.5864],[124.9795,1.1237]]],[[[125.1339,-8.2599],[124.5099,-8.4419],[124.3425,-8.3184],[124.6738,-8.1665],[125.0074,-8.1496],[125.1339,-8.2599]]],[[[125.0819,-9.4462],[124.4302,-10.1008],[123.7921,-10.3282],[123.4692,-10.2739],[123.7337,-9.6205],[124.045,-9.343],[124.3535,-9.3971],[124.4772,-9.175],[124.95,-8.9581],[125.1277,-9.0687],[125.0819,-9.4462]]],[[[124.2976,-8.475],[123.9794,-8.6549],[123.9515,-8.4237],[124.1625,-8.2623],[124.2976,-8.475]]],[[[123.9468,-2.1083],[123.6464,-2.2176],[123.6522,-1.9584],[123.8887,-1.8478],[123.9468,-2.1083]]],[[[123.6426,-1.7702],[123.5094,-1.7702],[123.3394,-1.6479],[123.5086,-1.4815],[123.7497,-1.5692],[123.6426,-1.7702]]],[[[123.7389,-8.3574],[123.4021,-8.5397],[123.0603,-8.3984],[123.0889,-8.2549],[123.713,-8.2549],[123.7389,-8.3574]]],[[[123.4912,-1.2722],[123.5135,-1.471],[123.0685,-1.3948],[122.8795,-1.6235],[122.7693,-1.471],[123.1149,-1.1623],[123.4912,-1.2722]]],[[[123.3186,-10.7526],[122.9218,-10.9127],[122.8445,-10.8665],[122.9062,-10.7337],[123.2907,-10.6091],[123.3186,-10.7526]]],[[[120.6213,-8.2574],[121.4625,-8.5841],[122.3064,-8.6088],[122.6035,-8.5187],[122.5602,-8.6907],[120.9999,-8.9618],[120.5599,-8.8153],[119.9016,-8.8297],[119.6931,-8.6439],[119.4114,-8.646],[119.4001,-8.5008],[119.7537,-8.5045],[120.413,-8.2574],[120.6213,-8.2574]]],[[[122.1654,-.2968],[122.1299,-.4312],[121.9389,-.355],[122.08,-.2127],[122.1654,-.2968]]],[[[122.0723,-10.524],[121.8009,-10.7016],[121.6997,-10.5776],[121.8244,-10.3975],[122.0739,-10.3908],[122.0723,-10.524]]],[[[122.067,-5.1713],[122.0544,-5.454],[121.735,-5.3514],[121.8387,-5.1335],[122.067,-5.1713]]],[[[121.9493,-.4103],[121.8823,-.5427],[121.7719,-.4362],[121.8934,-.3195],[121.9493,-.4103]]],[[[120.6492,-10.2134],[120.2576,-10.2626],[119.711,-9.8291],[118.9571,-9.5824],[119.1419,-9.4038],[119.5751,-9.3551],[119.978,-9.3527],[120.2429,-9.5824],[120.7457,-9.9622],[120.6492,-10.2134]]],[[[120.6771,-6.0935],[120.4509,-6.2451],[120.3384,-6.0379],[120.5818,-5.8378],[120.6771,-6.0935]]],[[[118.0921,-8.1333],[118.3212,-8.3434],[118.5009,-8.2603],[118.9646,-8.3627],[119.1702,-8.6774],[118.8012,-8.855],[118.195,-8.8447],[116.9965,-9.0773],[116.783,-8.9597],[116.6906,-8.6065],[116.4604,-8.8606],[116.0999,-8.8871],[116.0517,-8.445],[116.3764,-8.2133],[116.5477,-8.2603],[116.8056,-8.4685],[117.521,-8.4166],[118.109,-8.6384],[118.1576,-8.543],[117.7282,-8.2603],[117.8888,-8.0895],[118.0921,-8.1333]]],[[[109.643,2.076],[109.7189,1.6007],[110.4947,.905],[111.7875,.9963],[112.1786,1.2951],[112.5607,1.5663],[113.6416,1.2735],[114.5414,1.4939],[114.8213,1.9271],[114.8113,2.2131],[115.1387,2.4688],[115.1395,2.8234],[115.4801,3.1051],[115.8436,4.3193],[117.0734,4.3762],[117.7554,4.1668],[117.8959,4.1667],[117.5481,3.513],[117.5543,3.1743],[118.0559,1.7823],[118.7863,1.0052],[117.774,.6638],[117.5885,.252],[117.5129,.0841],[117.4502,-.7924],[117.365,-.8786],[116.4885,-1.766],[116.5064,-2.2733],[116.5119,-2.4285],[116.2024,-3.7304],[114.8134,-4.0478],[114.3456,-3.5118],[113.1529,-3.12],[112.115,-3.4116],[111.6289,-3.0637],[110.4658,-2.9451],[110.1816,-2.2733],[109.967,-1.766],[109.9643,-1.3814],[109.4272,-.9967],[109.3906,-.8786],[109.0401,.252],[108.8866,.7473],[109.042,1.3967],[109.643,2.076]]],[[[118.7224,2.3269],[118.76,2.0697],[118.5013,2.125],[118.5106,2.4988],[118.7224,2.3269]]],[[[107.0461,-5.9273],[108.3472,-6.322],[108.7056,-6.7783],[109.8693,-6.9108],[110.155,-6.8716],[110.4804,-6.9262],[110.6755,-6.5445],[110.9164,-6.4525],[111.2071,-6.6551],[112.5963,-6.9262],[112.7182,-7.0419],[113.002,-6.8819],[113.911,-6.8646],[113.9825,-6.9847],[113.5864,-7.2048],[112.8594,-7.2388],[112.7916,-7.506],[113.2628,-7.7514],[114.1108,-7.6683],[114.6297,-8.1202],[115.4692,-8.1764],[115.6441,-8.4174],[115.4692,-8.5567],[115.1635,-8.665],[114.4693,-8.2485],[114.3798,-8.2485],[114.482,-8.7189],[113.2125,-8.3188],[112.627,-8.4254],[111.1012,-8.2485],[110.6176,-8.1643],[109.8693,-7.8384],[108.2266,-7.784],[107.0461,-7.4491],[106.4949,-7.3635],[106.4498,-6.9944],[105.5433,-6.7661],[105.9583,-5.9881],[106.8785,-6.0856],[107.0461,-5.9273]]],[[[108.292,3.6701],[108.132,3.6365],[107.9074,3.9065],[108.2152,4.2172],[108.3878,3.9614],[108.292,3.6701]]],[[[108.2617,-2.7948],[108.1126,-3.1765],[107.612,-3.1134],[107.6006,-2.7948],[107.6648,-2.5979],[107.8068,-2.549],[108.2617,-2.7948]]],[[[107.648,.9447],[107.411,.8335],[107.2667,1.0292],[107.375,1.1505],[107.6441,1.0482],[107.648,.9447]]],[[[106.3714,-2.2733],[106.582,-2.9165],[106.0495,-2.7466],[105.7373,-2.2733],[105.3193,-1.9868],[105.414,-1.766],[105.6093,-1.5481],[105.9736,-1.6191],[106.0339,-1.766],[106.3714,-2.2733]]],[[[106.5122,3.1842],[106.4163,2.9895],[106.1573,3.3387],[106.3426,3.4309],[106.5122,3.1842]]],[[[105.9748,-3.1274],[105.6646,-5.7527],[104.7093,-5.5988],[104.383,-5.7113],[102.3591,-3.991],[101.0404,-2.4721],[100.9427,-2.2733],[100.6934,-1.766],[100.2783,-.8786],[99.1631,.4309],[98.6906,1.6615],[97.8741,2.2957],[96.9479,3.5275],[95.5685,4.7281],[95.3465,5.1664],[95.4219,5.428],[97.5344,5.0736],[98.4114,4.0921],[99.6667,3.1949],[100.4713,2.3804],[101.5518,2.0194],[102.6702,1.1256],[103.4741,.8441],[103.7046,.0964],[103.5984,-.6624],[103.8633,-.8786],[104.3262,-1.1385],[104.6592,-1.766],[104.9251,-2.213],[105.0451,-2.2733],[105.5831,-2.5431],[105.9748,-3.1274]]],[[[104.7347,-.1246],[104.4905,-.5724],[104.2953,-.5163],[104.4937,-.1329],[104.3405,.1632],[104.4524,.4518],[104.7347,-.1246]]],[[[104.6311,1.1455],[104.6594,.8854],[104.4013,.9806],[104.1714,.8854],[103.7964,.8393],[103.7358,.8982],[103.8862,1.0958],[104.6311,1.1455]]],[[[102.4806,-5.3315],[102.4298,-5.5778],[102.2056,-5.5632],[102.0971,-5.3299],[102.4806,-5.3315]]],[[[100.5247,-3.1488],[100.4948,-3.3303],[100.3367,-3.2822],[100.1827,-2.8695],[99.9877,-2.755],[100.1404,-2.6254],[100.5247,-3.1488]]],[[[99.8006,-2.3453],[99.6017,-2.3663],[99.4535,-2.1449],[99.6201,-1.9584],[99.8006,-2.3453]]],[[[99.2935,-1.7403],[99.0749,-1.7677],[98.7771,-1.5369],[98.6554,-1.0321],[98.8921,-.9809],[99.2935,-1.7403]]],[[[98.5559,-.3306],[98.5307,-.6294],[98.2976,-.5521],[98.4386,-.1462],[98.5559,-.3306]]],[[[97.8792,.9705],[97.7805,.6049],[97.2774,1.202],[97.2224,1.3677],[97.3613,1.4891],[97.6662,1.202],[97.8792,.9705]]],[[[96.4661,2.4402],[96.2482,2.3423],[96.0973,2.5642],[95.7378,2.6674],[95.695,2.8271],[96.0973,2.7676],[96.4661,2.4402]]]]},properties:{name:"Indonesia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-13.9795,65.5766],[-13.7583,65.2412],[-13.955,64.8599],[-14.991,64.2925],[-18.2325,63.4908],[-20.1327,63.5482],[-21.9677,63.883],[-22.1255,64.0406],[-21.7569,64.3256],[-21.37,64.3803],[-22.1039,64.4324],[-22.9771,64.8024],[-22.5479,65.4471],[-23.6334,65.4704],[-23.9554,65.6835],[-22.7011,66.2838],[-21.8994,66.1389],[-20.973,65.5252],[-20.0898,65.9505],[-17.4718,66.0604],[-16.0154,66.4212],[-14.8549,66.0685],[-13.9795,65.5766]]]},properties:{name:"Iceland"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[96.722,-12.1294],[96.7655,-11.9425],[96.91,-11.9769],[97.0362,-12.2452],[96.7881,-12.3034],[96.722,-12.1294]]]},properties:{name:"Cocos (Keeling) Islands"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-56.5765,50.0328],[-56.514,49.9506],[-56.1747,50.0772],[-55.486,49.4964],[-54.8391,49.5075],[-54.3228,49.7405],[-53.5861,49.2583],[-53.7108,48.9673],[-53.6122,48.6333],[-53.2101,48.4958],[-53.6108,47.8203],[-53.548,47.7414],[-53.2551,47.8352],[-52.7355,47.5814],[-53.1183,46.7567],[-54.0635,46.893],[-54.027,47.3325],[-54.1678,47.4615],[-54.5468,47.4398],[-55.5303,46.9241],[-55.7128,47.0319],[-55.2853,47.3492],[-55.2401,47.5781],[-56.0516,47.709],[-58.841,47.6074],[-59.2959,47.7606],[-58.67,48.4096],[-57.1875,50.841],[-56.4434,51.4306],[-55.8965,51.5913],[-55.514,51.4954],[-56.5765,50.0328]]],[[[-67.2702,45.1886],[-67.7647,45.7142],[-67.7815,46.0459],[-67.8174,47.0362],[-68.3747,47.349],[-68.8921,47.206],[-68.9977,47.3552],[-69.2777,47.3844],[-69.8084,46.8614],[-70.3752,45.8014],[-70.8839,45.369],[-71.7863,45.0078],[-74.9771,44.9407],[-76.011,44.2472],[-76.8745,43.668],[-78.7616,43.5853],[-79.0575,43.4429],[-79.0567,43.3347],[-79.0466,42.8794],[-79.241,42.7271],[-82.7186,41.7827],[-82.9607,42.0964],[-82.3027,43.3347],[-82.1811,43.6656],[-82.3354,44.2472],[-82.6251,45.3393],[-85.0831,46.9699],[-88.0434,48.1758],[-89.435,47.9857],[-89.6593,48.0179],[-90.0133,48.0688],[-90.7911,48.1805],[-91.0362,48.1534],[-91.5593,48.1211],[-92.9202,48.5702],[-94.2745,48.6951],[-95.0687,49.2416],[-95.824,49.0008],[-122.8092,49.0215],[-123.1007,49.0215],[-123.4626,49.4002],[-124.6564,49.7725],[-124.5411,49.4832],[-123.4779,48.757],[-123.6216,48.4456],[-124.1405,48.4645],[-125.2315,48.8222],[-127.8586,50.2265],[-128.2026,50.678],[-127.7437,50.9841],[-127.8236,51.3989],[-128.4085,52.2116],[-129.2663,52.7032],[-129.4957,53.1624],[-130.4093,53.5743],[-130.534,54.8067],[-130.4276,54.8695],[-130.4192,54.8695],[-130.2438,54.8695],[-130.1553,54.8695],[-130.1037,54.8695],[-130.0749,54.8695],[-130.0719,54.874],[-130.0594,54.887],[-130.0521,54.9002],[-130.0493,54.903],[-130.0412,54.9186],[-130.0387,54.9364],[-130.0422,54.9541],[-130.0514,54.9696],[-130.0652,54.9812],[-130.082,54.9877],[-130.1001,54.9883],[-130.1071,54.9873],[-130.1148,54.9937],[-130.1311,55.0209],[-130.1376,55.0491],[-130.1517,55.0596],[-130.1617,55.0721],[-130.164,55.0812],[-130.1602,55.0912],[-130.1386,55.1183],[-130.1266,55.1493],[-130.1075,55.1667],[-130.0873,55.1911],[-130.034,55.2271],[-130.0081,55.2493],[-129.9558,55.2807],[-129.9469,55.2902],[-129.9492,55.2946],[-129.9605,55.302],[-129.9714,55.3182],[-129.9943,55.3306],[-130.0015,55.3372],[-130.0049,55.3616],[-130.0151,55.3836],[-130.0163,55.4122],[-130.0118,55.424],[-130.0193,55.4354],[-130.0244,55.4579],[-130.0678,55.4961],[-130.0747,55.5061],[-130.0787,55.5232],[-130.0889,55.5331],[-130.0984,55.5548],[-130.1088,55.5654],[-130.1095,55.5806],[-130.1042,55.6162],[-130.0946,55.6285],[-130.0896,55.6448],[-130.0912,55.6664],[-130.0875,55.6831],[-130.1046,55.6967],[-130.1184,55.703],[-130.1287,55.714],[-130.1366,55.7477],[-130.1308,55.7673],[-130.1131,55.7864],[-130.1072,55.7963],[-130.0699,55.8189],[-130.032,55.8624],[-130.0185,55.8734],[-130.0138,55.8806],[-130.0036,55.887],[-129.9901,55.9158],[-129.994,55.9205],[-130.0002,55.9222],[-130.0061,55.9213],[-130.0102,55.9171],[-131.7547,56.6577],[-133.4872,58.471],[-134.5386,59.1177],[-135.0304,59.5094],[-135.4947,59.7832],[-136.1363,59.635],[-136.2508,59.5094],[-136.5724,59.1992],[-137.0381,59.0793],[-137.4221,58.9656],[-138.0988,59.5094],[-139.0965,60.0754],[-139.1645,60.3358],[-139.9046,60.2219],[-140.8352,60.2915],[-141,60.5156],[-140.999,64.4949],[-140.999,64.7661],[-140.9942,68.2307],[-140.9923,69.6172],[-139.3778,69.5422],[-137.9611,69.1467],[-136.6084,68.9884],[-134.9684,69.4984],[-133.1407,69.4792],[-130.3626,70.0533],[-129.6589,69.7592],[-129.2014,69.7561],[-127.811,70.2888],[-125.7819,69.508],[-124.7253,69.8874],[-123.9277,69.4961],[-122.7378,69.7326],[-121.5173,69.7247],[-117.5206,69.0146],[-114.948,68.755],[-114.4288,68.48],[-114.5186,68.0542],[-114.095,67.8625],[-111.8357,67.7432],[-109.4388,67.9373],[-108.6718,67.6161],[-108.1858,67.871],[-108.3965,68.2454],[-108.2937,68.4449],[-106.4051,68.8372],[-105.5947,68.7064],[-103.9784,68.0309],[-102.4075,67.8603],[-99.1508,67.9024],[-98.5005,68.5568],[-98.7368,69.1683],[-97.5263,69.7122],[-96.4408,69.4904],[-95.9272,69.1323],[-96.4467,68.355],[-95.696,67.5406],[-95.2905,67.9147],[-94.4406,68.2865],[-94.0012,68.7589],[-94.2568,69.3459],[-95.5422,69.5189],[-96.2832,70.3142],[-96.2689,71.0031],[-95.6691,71.4902],[-95.3822,71.9751],[-95.398,73.4821],[-93.2258,74.1045],[-91.1484,73.954],[-90.7357,73.7537],[-92.0829,72.8431],[-93.5219,72.6496],[-94.0476,71.8608],[-93.129,71.3532],[-92.1471,70.5143],[-91.9321,69.6981],[-90.0133,69.1615],[-88.4412,68.8645],[-88.138,68.5301],[-87.9399,67.755],[-87.0639,67.4663],[-86.4941,68.0551],[-85.3995,68.7259],[-85.1384,69.521],[-84.7889,69.8181],[-86.4354,70.2708],[-88.1811,70.4404],[-88.6872,70.6769],[-88.8827,71.2027],[-89.7216,71.6464],[-89.7758,72.1788],[-89.5814,72.4993],[-87.9973,73.5359],[-86.7641,73.7605],[-85.7874,73.6732],[-85.7165,73.5005],[-86.1608,73.0173],[-86.3245,72.4901],[-86.0552,72.0023],[-85.5669,71.7875],[-85.3559,72.7713],[-84.4327,73.3551],[-82.9486,73.6203],[-81.7693,73.5421],[-80.831,73.0294],[-80.2391,72.4191],[-79.8277,72.342],[-78.864,72.4324],[-78.6286,72.5918],[-79.9532,73.0126],[-80.3313,73.2731],[-80.3662,73.5016],[-78.1027,73.5641],[-76.8959,73.2283],[-76.1224,72.6543],[-74.8499,72.1739],[-74.4059,71.626],[-71.9445,71.4616],[-70.4937,70.8428],[-69.008,70.5967],[-67.9682,70.2006],[-67.5952,69.9388],[-67.467,69.5059],[-67.8496,68.9237],[-67.7593,68.7263],[-65.9779,68.069],[-64.7092,67.8345],[-63.1422,67.1183],[-62.0934,66.8906],[-61.8229,66.6387],[-63.8759,65.2494],[-64.7196,65.3706],[-66.2115,66.069],[-66.9466,65.9731],[-67.0573,65.662],[-66.8539,65.2661],[-65.5592,64.582],[-64.5783,63.6743],[-65.0837,62.7371],[-67.3908,63.1229],[-67.2886,62.8874],[-66.354,62.2975],[-66.2703,61.9785],[-70.4062,62.6748],[-72.0739,63.574],[-74.0855,64.2396],[-76.5583,64.2738],[-77.6771,64.5845],[-77.6977,64.9509],[-77.2058,65.27],[-75.4539,65.3396],[-74.3871,65.6222],[-73.8732,66.3804],[-72.7415,67.4922],[-73.4276,68.2274],[-73.7263,68.2726],[-74.3337,68.0068],[-75.1629,68.6727],[-76.1914,68.9253],[-76.802,69.5982],[-77.9055,70.1187],[-78.6401,70.2417],[-79.8116,69.731],[-80.7852,69.9102],[-82.0054,69.6635],[-81.5547,68.9269],[-81.8718,68.2421],[-81.6273,67.3838],[-81.9579,66.9476],[-83.5704,66.4754],[-84.0305,66.0376],[-85.2198,66.3715],[-85.8537,66.353],[-88.0746,64.3328],[-90.0133,63.8897],[-90.6491,63.5232],[-91.0362,63.0553],[-92.0439,62.7129],[-92.6448,62.2673],[-92.8154,61.8699],[-93.8632,61.4412],[-94.526,60.5553],[-94.7573,59.8097],[-94.5633,58.9588],[-93.2035,58.5386],[-92.3943,57.2082],[-91.0362,57.2002],[-90.0133,56.9973],[-88.9249,56.7678],[-87.2257,55.9936],[-85.4401,55.4453],[-82.7271,54.9859],[-81.9936,53.1694],[-81.1298,53.1518],[-80.7269,52.7814],[-81.7804,52.9563],[-81.8014,52.7503],[-80.6083,51.6691],[-79.7291,51.4105],[-79.0711,51.6588],[-78.8132,52.1842],[-79.3486,54.6638],[-77.8159,55.3825],[-76.7132,56.3715],[-77.1515,57.7435],[-78.3083,58.7537],[-77.6812,59.8697],[-78.0104,61.2482],[-77.9943,61.9607],[-77.7448,62.3235],[-76.977,62.4467],[-75.481,62.2637],[-73.6147,62.3018],[-72.2227,61.8358],[-71.162,61.2419],[-69.8858,60.9316],[-69.5644,60.5604],[-69.2923,59.4739],[-67.7417,58.598],[-66.6124,58.7119],[-65.2886,59.7983],[-64.3842,59.9948],[-61.9721,57.7991],[-60.4872,55.8211],[-59.4916,55.1841],[-57.7432,54.6536],[-57.1405,54.0534],[-56.191,53.481],[-55.9106,52.4896],[-56.8548,51.6009],[-58.3277,51.1443],[-60.1202,50.3193],[-66.2184,50.11],[-68.3068,49.082],[-68.9977,48.2561],[-66.6534,49.0046],[-65.1852,49.0974],[-64.7853,48.9734],[-64.6137,48.5881],[-65.3673,47.8865],[-64.9618,47.5552],[-64.6095,46.8288],[-64.4036,46.6956],[-64.0601,46.9239],[-63.4098,46.4767],[-62.2794,46.4139],[-62.4591,46.0575],[-62.7009,45.9843],[-64.3195,46.5303],[-64.0986,46.183],[-63.4742,45.9214],[-62.0915,45.8108],[-60.7162,46.547],[-60.3791,46.2387],[-60.4891,45.9772],[-61.4726,45.2013],[-65.4186,43.69],[-65.8272,43.8294],[-65.891,44.2139],[-65.0052,45.3319],[-67.2702,45.1886]]],[[[-58.863,48.5019],[-59.0496,48.4247],[-59.2231,48.5084],[-59.1352,48.6998],[-58.904,48.7033],[-58.863,48.5019]]],[[[-60.1621,56.3627],[-60.3062,56.1331],[-60.6857,56.2554],[-60.6032,56.3497],[-60.1621,56.3627]]],[[[-61.7247,49.1508],[-62.2186,49.0682],[-63.3233,49.3232],[-64.2525,49.8069],[-64.2813,49.849],[-64.1519,49.9417],[-63.3233,49.8129],[-61.9415,49.3513],[-61.7247,49.1508]]],[[[-64.634,82.8393],[-62.8285,82.2455],[-63.5304,81.8894],[-65.809,81.6127],[-66.3801,81.1774],[-71.1978,79.8647],[-76.8768,79.3447],[-76.969,79.2079],[-76.7239,79.0734],[-75.4125,79.0071],[-75.2548,78.6978],[-76.0256,78.1013],[-78.0005,77.7695],[-78.7169,77.2111],[-78.5193,76.7064],[-79.9227,76.3434],[-82.0678,76.5072],[-85.4058,76.3658],[-88.8467,76.573],[-89.0176,76.6748],[-88.9425,76.8133],[-87.8415,77.2064],[-87.4276,77.7323],[-86.6853,77.768],[-85.3855,77.5307],[-85.2001,77.821],[-86.7618,78.2927],[-87.3589,78.6476],[-88.8949,78.3188],[-90.0133,78.2807],[-91.0362,78.2563],[-92.2878,78.3216],[-93.4558,78.8088],[-92.9526,79.2081],[-92.9775,79.3699],[-95.1843,79.3743],[-96.0661,79.946],[-95.6138,80.6963],[-93.6758,81.2499],[-92.3157,81.214],[-91.0362,80.8467],[-90.0133,80.5777],[-88.8305,80.2772],[-87.794,80.2427],[-86.8415,79.865],[-85.5152,80.2641],[-82.3146,79.9506],[-81.3021,80.5144],[-85.3214,80.5719],[-86.4412,80.9213],[-87.9007,80.7733],[-89.247,80.9846],[-90.0133,81.441],[-90.4005,81.687],[-90.0133,81.8375],[-87.2029,82.0392],[-85.4819,82.401],[-83.2212,82.3593],[-81.2588,82.7922],[-75.554,83.0968],[-64.634,82.8393]]],[[[-64.4904,60.5822],[-64.6757,60.4546],[-64.9297,60.4606],[-64.7762,60.6936],[-64.5538,60.7051],[-64.4904,60.5822]]],[[[-64.6824,61.4667],[-64.8241,61.3185],[-65.4341,61.6079],[-65.2985,61.8063],[-65.096,61.9197],[-64.7749,61.8063],[-64.6824,61.4667]]],[[[-68.0029,60.2987],[-68.3889,60.2024],[-68.3889,60.3594],[-68.1652,60.5739],[-67.8776,60.4617],[-68.0029,60.2987]]],[[[-75.8326,67.2588],[-76.7658,67.2192],[-77.1596,67.3849],[-77.2674,67.7328],[-77.1596,67.8934],[-76.7331,68.2183],[-76.3889,68.3091],[-75.5942,68.3091],[-75.0948,68.1834],[-75.0406,67.6097],[-75.8326,67.2588]]],[[[-76.638,63.4113],[-76.9357,63.3801],[-77.251,63.5979],[-77.1901,63.6594],[-76.7518,63.6104],[-76.638,63.4113]]],[[[-76.9385,69.174],[-77.1576,69.1314],[-77.3486,69.2686],[-77.3131,69.4079],[-77.1576,69.4467],[-76.7579,69.3554],[-76.9385,69.174]]],[[[-77.4909,56.4498],[-77.6975,56.1912],[-77.9406,56.3449],[-77.7018,56.5131],[-77.4909,56.4498]]],[[[-77.5025,64.042],[-77.5602,63.8396],[-77.913,63.9513],[-77.6702,64.1692],[-77.5025,64.042]]],[[[-77.5392,63.2428],[-77.915,63.1115],[-78.3512,63.3036],[-78.4372,63.3997],[-78.3072,63.4675],[-77.7613,63.4387],[-77.5392,63.2428]]],[[[-78.0398,69.6028],[-78.5557,69.4952],[-78.646,69.5597],[-78.3636,69.699],[-77.997,69.7162],[-78.0398,69.6028]]],[[[-78.8433,68.9103],[-79.2693,68.837],[-79.3917,68.8927],[-79.3095,68.9986],[-78.5376,69.3941],[-78.3191,69.2421],[-78.8433,68.9103]]],[[[-78.5227,68.6605],[-78.6028,68.4607],[-78.936,68.4827],[-78.8512,68.7053],[-78.5227,68.6605]]],[[[-78.6262,56.8871],[-78.7017,56.6116],[-78.9507,56.7162],[-78.9553,56.9256],[-78.6262,56.8871]]],[[[-79.0735,56.4461],[-78.708,56.3891],[-78.664,56.1747],[-78.7927,56.0237],[-79.0959,56.0516],[-79.2156,56.1747],[-79.3997,55.9255],[-79.6946,55.8329],[-80.0602,55.8365],[-80.0824,56.1832],[-79.8088,56.0661],[-79.8088,56.3689],[-79.5522,56.5141],[-79.3449,56.4011],[-79.2039,56.6387],[-79.0735,56.4461]]],[[[-78.8122,68.2803],[-79.0089,68.1435],[-79.2415,68.227],[-79.1799,68.3905],[-78.9156,68.4049],[-78.8122,68.2803]]],[[[-78.9366,75.9665],[-79.2229,75.8124],[-79.3987,75.9092],[-79.1078,76.141],[-78.9366,75.9665]]],[[[-79.134,51.9211],[-79.4743,51.8714],[-79.5693,51.9558],[-79.1708,52.181],[-79.134,51.9211]]],[[[-79.4762,61.8566],[-79.6792,61.6126],[-80.1522,61.8203],[-80.1993,62.152],[-79.9465,62.3472],[-79.6762,62.3946],[-79.4022,62.3282],[-79.2964,62.152],[-79.3329,62.0291],[-79.4269,61.9648],[-79.4762,61.8566]]],[[[-94.833,76.9745],[-90.7953,76.5602],[-90.0133,76.6288],[-89.7865,76.3309],[-90.0133,76.0853],[-90.0133,75.9908],[-89.6593,75.8131],[-89.435,75.7129],[-88.9084,75.4624],[-88.6472,75.6199],[-86.4242,75.4013],[-84.0155,75.7922],[-82.6153,75.7929],[-79.8986,75.5356],[-79.6258,75.3944],[-79.4489,74.9901],[-80.602,74.5878],[-82.5764,74.5454],[-83.2128,74.7429],[-84.7803,74.5058],[-89.435,74.6262],[-89.6593,74.6402],[-90.0133,74.6656],[-91.8478,74.9562],[-92.883,76.0794],[-95.0143,76.3256],[-95.6133,76.7282],[-94.833,76.9745]]],[[[-79.8685,53.2163],[-80.1555,53.1964],[-80.1734,53.3762],[-80.0095,53.4618],[-79.8052,53.3969],[-79.8685,53.2163]]],[[[-79.8494,59.9737],[-79.8394,59.7016],[-80.1243,59.7139],[-80.3602,59.5323],[-80.4539,59.6548],[-80.3618,59.8907],[-80.1771,59.8368],[-79.9893,60.0204],[-79.8494,59.9737]]],[[[-85.1864,65.5481],[-84.9418,65.3192],[-84.4343,65.3741],[-82.246,64.6579],[-81.8456,64.5007],[-81.5201,64.1043],[-80.8286,64.0271],[-80.5021,63.7557],[-81.1424,63.4783],[-83.344,64.0817],[-84.8175,63.2434],[-85.3688,63.141],[-85.7767,63.6411],[-86.7482,63.6854],[-86.7996,63.7393],[-86.3666,64.0987],[-86.3026,64.6579],[-85.9173,65.7099],[-84.9339,66.033],[-84.6282,65.6982],[-85.1864,65.5481]]],[[[-83.0197,62.2169],[-83.733,62.1515],[-83.8854,62.452],[-83.4624,62.8497],[-82.1604,62.9751],[-81.9062,62.8897],[-82.0289,62.6718],[-83.0197,62.2169]]],[[[-86.5326,70.092],[-86.5528,69.9828],[-87.1228,70.0126],[-87.1745,70.0681],[-87.0819,70.1622],[-86.5326,70.092]]],[[[-90.0133,77.3929],[-91.0092,77.1827],[-91.1136,77.2544],[-91.1656,77.4586],[-91.1013,77.5717],[-90.97,77.6054],[-90.2109,77.5592],[-90.0133,77.4185],[-90.0133,77.3929]]],[[[-95.4147,77.8092],[-93.9653,77.7465],[-93.5232,77.7717],[-93.3416,77.6694],[-93.5198,77.4673],[-93.9653,77.4561],[-95.9977,77.4895],[-96.2635,77.6327],[-96.055,77.7372],[-95.4147,77.7652],[-95.4147,77.8092]]],[[[-93.5013,74.7845],[-93.9823,74.6497],[-96.2486,74.9573],[-96.3837,75.032],[-96.274,75.2432],[-95.681,75.5192],[-94.7543,75.6115],[-93.5674,75.2432],[-93.5013,74.7845]]],[[[-94.4815,76.0104],[-94.3575,75.7355],[-94.8515,75.7996],[-94.8178,75.942],[-94.4815,76.0104]]],[[[-94.8963,78.1037],[-95.1153,77.9672],[-95.4119,77.9688],[-96.8501,77.7885],[-97.2136,77.9492],[-97.2436,78.1407],[-97.9712,78.2509],[-98.2853,78.6715],[-97.9674,78.8153],[-96.8779,78.697],[-95.4174,78.4959],[-95.0803,78.4207],[-94.8963,78.1037]]],[[[-95.4626,74.6956],[-95.3838,74.4766],[-95.7246,74.4989],[-95.8748,74.6624],[-95.4626,74.6956]]],[[[-96.3969,75.4318],[-96.6837,75.3288],[-96.8415,75.4426],[-96.2946,75.6848],[-95.9934,75.6268],[-95.9554,75.5039],[-96.3969,75.4318]]],[[[-97.88,73.0734],[-97.0126,72.777],[-97.0524,73.0718],[-96.823,73.1717],[-96.4015,72.4342],[-96.8809,71.8208],[-98.6701,71.3129],[-101.8311,72.4226],[-102.6382,72.759],[-102.4485,72.9756],[-101.8311,72.9935],[-101.2478,72.7399],[-100.4041,72.8561],[-100.5413,73.1934],[-101.3264,73.4662],[-100.7734,73.8151],[-97.7582,74.082],[-97.6879,73.8986],[-97.0759,73.6786],[-97.2122,73.4228],[-97.8059,73.2384],[-97.88,73.0734]]],[[[-96.9622,76.4161],[-97.2393,76.3408],[-97.3729,76.5176],[-97.1817,76.6802],[-96.9622,76.4161]]],[[[-97.2386,74.6784],[-97.2929,74.424],[-97.6589,74.5584],[-97.4391,74.7278],[-97.2386,74.6784]]],[[[-97.9147,76.4941],[-97.4178,75.5273],[-97.8048,75.482],[-97.8886,75.1289],[-98.0308,75.0461],[-99.6238,74.979],[-100.2619,75.0499],[-100.4783,75.586],[-102.4592,75.5089],[-102.704,75.7702],[-103.7575,75.8914],[-104.3683,76.1469],[-104.4543,76.5494],[-103.9215,76.635],[-101.9721,75.9686],[-101.7795,76.4066],[-100.6133,76.2143],[-100.5612,76.2998],[-100.7677,76.5772],[-100.7212,76.6632],[-97.9147,76.4941]]],[[[-98.6659,79.8217],[-98.909,79.6889],[-99.8492,79.9269],[-99.8898,79.9752],[-99.8407,80.0331],[-98.9605,80.1096],[-98.6659,79.8217]]],[[[-102.9396,79.2494],[-102.5686,78.8768],[-101.5083,79.0614],[-99.7049,78.5941],[-99.7049,78.3019],[-99.0691,78.1025],[-99.2325,77.8615],[-99.7049,77.8185],[-100.4781,77.8729],[-100.8606,78.1061],[-101.5999,78.2548],[-102.5686,78.2389],[-103.2252,78.3494],[-104.0423,78.2396],[-104.7025,78.3333],[-104.8906,78.4569],[-104.6674,78.5809],[-104.0423,78.5203],[-103.5632,78.5978],[-103.7027,78.8029],[-104.0423,78.8029],[-104.0423,78.9523],[-104.7528,78.8698],[-104.9512,79.0377],[-105.5071,79.0197],[-105.6443,79.1494],[-105.5071,79.253],[-104.0423,79.3838],[-102.9396,79.2494]]],[[[-100.4044,68.7105],[-100.6374,68.4301],[-100.8119,68.4579],[-100.7931,68.6218],[-100.626,68.6835],[-100.7474,68.804],[-100.5105,69.0421],[-100.2316,69.0421],[-100.1209,69.1493],[-99.994,69.0421],[-100.0428,68.7873],[-100.4044,68.7105]]],[[[-100.1155,70.5892],[-100.1401,70.4241],[-100.6654,70.5828],[-100.7013,70.6967],[-100.5447,70.819],[-100.3902,70.6967],[-100.1155,70.5892]]],[[[-105.2221,72.6833],[-104.3428,71.4584],[-104.3357,71.0246],[-103.8412,70.7572],[-101.8355,70.3488],[-101.0933,70.2146],[-100.9141,70.043],[-100.9171,69.9116],[-101.1428,69.712],[-100.8891,69.4933],[-101.1049,69.3543],[-101.3283,69.4937],[-101.3179,69.7102],[-101.8355,69.7051],[-102.3125,69.8289],[-102.7389,69.5621],[-102.7088,69.4625],[-102.2548,69.4756],[-101.7501,69.2359],[-101.8355,69.1418],[-102.7899,68.8376],[-104.7223,68.8869],[-106.1736,69.1765],[-106.6447,69.4203],[-107.472,69.0244],[-109.1225,68.7213],[-112.6339,68.4935],[-113.2259,68.5488],[-113.8908,69.2008],[-116.0305,69.3347],[-117.0197,69.651],[-117.3066,69.9628],[-116.4708,70.1785],[-114.5359,70.312],[-112.6339,70.2603],[-112.4132,70.2756],[-112.3107,70.4562],[-113.9367,70.7106],[-117.1482,70.5476],[-117.9915,70.9246],[-117.9834,71.0259],[-116.8858,71.3185],[-116.9014,71.4244],[-118.0035,71.3903],[-118.9192,71.8132],[-118.2328,72.239],[-118.3273,72.5325],[-117.2304,72.9289],[-114.3876,73.3235],[-114.0156,73.0806],[-114.2225,72.6195],[-113.503,72.7266],[-113.1294,72.959],[-112.6339,72.94],[-111.3353,72.7281],[-111.1915,72.6046],[-111.1886,72.4153],[-110.4109,72.6557],[-110.2948,72.9462],[-109.8232,72.9279],[-108.5943,72.5739],[-108.4309,72.1653],[-107.8917,71.7223],[-107.4532,71.9007],[-108.0046,72.7207],[-108.0476,73.2378],[-106.5375,73.2711],[-106.6812,73.5292],[-106.54,73.6625],[-105.3363,73.7339],[-104.5731,73.4787],[-105.2221,72.6833]]],[[[-101.2059,77.7343],[-102.0822,77.6812],[-102.432,77.7519],[-102.488,77.8373],[-102.4295,77.8894],[-101.758,77.9116],[-101.2025,77.8425],[-101.2059,77.7343]]],[[[-101.6833,68.712],[-101.8306,68.5891],[-102.1469,68.6128],[-102.2525,68.6979],[-101.8306,68.804],[-101.6833,68.712]]],[[[-103.7767,75.2433],[-104.1951,75.0408],[-104.6732,75.121],[-104.7081,75.2433],[-104.3159,75.4419],[-104.0786,75.4379],[-103.7767,75.2433]]],[[[-104.2454,68.4797],[-104.511,68.3328],[-104.7591,68.4994],[-104.5718,68.6179],[-104.2454,68.4797]]],[[[-104.5417,77.17],[-104.917,77.1132],[-105.5118,77.2857],[-105.8716,77.6607],[-105.5118,77.7265],[-104.5268,77.2763],[-104.5417,77.17]]],[[[-108.3209,76.0307],[-107.3727,75.9059],[-106.3451,76.0395],[-105.546,75.8839],[-105.4376,75.659],[-105.858,75.2433],[-106.1079,75.0561],[-108.4827,74.9374],[-108.93,75.0174],[-111.414,74.568],[-112.6341,74.4562],[-113.2271,74.4295],[-114.0031,74.6144],[-113.9991,74.7201],[-112.0824,75.0361],[-112.0807,75.1419],[-112.6341,75.1917],[-113.6837,75.0803],[-114.009,75.4392],[-114.375,75.1365],[-115.0009,74.9954],[-117.3462,75.2316],[-117.3941,75.2935],[-116.6303,76.0423],[-115.6926,76.3877],[-114.3342,76.4672],[-113.7928,76.2331],[-112.6341,76.1889],[-111.0779,75.5522],[-109.0441,75.5375],[-108.9996,75.6525],[-109.5307,75.85],[-109.5904,76.1549],[-110.1009,76.3663],[-109.3993,76.744],[-108.8421,76.8094],[-108.2831,76.2969],[-108.3209,76.0307]]],[[[-109.7381,78.412],[-112.6657,78.3158],[-112.8388,78.4256],[-112.7913,78.4726],[-110.4607,78.7363],[-109.7243,78.5202],[-109.7381,78.412]]],[[[-110.3821,77.5079],[-112.1137,77.3568],[-113.1834,77.594],[-113.2337,77.85],[-112.6441,77.9594],[-110.0182,78.0399],[-110.3821,77.5079]]],[[[-111.5035,68.171],[-111.8802,68.1509],[-111.9607,68.2251],[-111.6133,68.437],[-111.5035,68.171]]],[[[-113.6985,76.892],[-113.6178,76.7117],[-114.6547,76.7444],[-114.7274,76.8039],[-114.6606,76.8648],[-113.6985,76.892]]],[[[-113.7993,77.7334],[-114.3405,77.7072],[-114.7195,77.9061],[-114.3405,78.0948],[-114.3405,78.0127],[-113.6523,77.848],[-113.7993,77.7334]]],[[[-121.3047,74.5393],[-118.9321,74.0881],[-118.1611,74.2722],[-117.1603,74.1672],[-116.9752,74.1142],[-115.5888,73.5649],[-115.5964,73.4622],[-118.7569,72.7354],[-119.4055,72.3395],[-119.9617,72.232],[-120.3803,71.9613],[-120.6059,71.5197],[-121.9312,71.3785],[-122.0624,71.2928],[-122.5414,71.1983],[-122.8087,71.084],[-123.2288,71.1276],[-123.5077,71.3567],[-124.2544,71.7416],[-125.6619,71.963],[-125.7307,72.0537],[-125.6619,72.2569],[-125.5253,72.2802],[-125.1229,72.6513],[-124.964,72.6845],[-124.4509,73.3708],[-123.896,73.736],[-124.5878,74.2423],[-124.5575,74.3379],[-122.8087,74.4603],[-121.3047,74.5393]]],[[[-115.9759,76.929],[-116.1233,76.6379],[-117.0356,76.5275],[-116.9858,76.3726],[-117.1527,76.2903],[-117.7573,76.3284],[-117.9772,76.5058],[-117.9589,76.7079],[-118.1453,76.7722],[-118.5494,76.5058],[-118.642,76.3771],[-119.0739,76.1429],[-119.5321,76.2913],[-119.5562,75.9818],[-119.9432,75.8513],[-120.4099,75.8741],[-120.6347,76.0108],[-121.0154,75.7094],[-121.1406,75.9524],[-122.5985,76.0193],[-122.6834,76.2114],[-122.408,76.3952],[-121.3904,76.5058],[-121.1092,76.733],[-119.9432,77.0218],[-119.0408,77.3289],[-117.1527,77.3603],[-116.4539,77.5506],[-115.7531,77.3612],[-115.7516,77.2575],[-116.1792,77.1285],[-115.9759,76.929]]],[[[-118.3616,75.5448],[-118.5534,75.4962],[-119.145,75.5576],[-119.1932,75.6193],[-118.6909,75.8966],[-118.1422,75.9845],[-117.7591,76.13],[-117.4868,76.082],[-117.767,75.8388],[-118.3616,75.5448]]],[[[-124.8749,70.2862],[-124.9891,69.9567],[-125.2347,70.0163],[-125.2088,70.1956],[-124.8749,70.2862]]],[[[-130.6891,54.4046],[-130.8338,54.2143],[-130.9982,54.5676],[-130.7585,54.6445],[-130.6891,54.4046]]],[[[-131.0971,52.2697],[-131.2355,52.1354],[-131.5019,52.4746],[-131.2355,52.4942],[-131.0971,52.2697]]],[[[-131.5903,52.9486],[-132.1017,52.7488],[-132.2233,52.8573],[-132.4797,53.3343],[-132.9286,53.5556],[-133.1223,53.8956],[-133.085,54.2386],[-132.9016,54.1635],[-131.7587,54.0151],[-131.9297,53.5556],[-131.9061,53.2954],[-131.5903,52.9486]]]]},properties:{name:"Canada"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[27.4436,5.0194],[28.3376,4.3157],[29.7103,4.5969],[30.8545,3.4875],[30.7765,2.5135],[31.2496,2.0752],[30.0157,.8003],[29.8398,.252],[29.7816,.0707],[29.721,-.1179],[29.6422,-.8786],[29.5895,-1.3866],[29.2083,-1.766],[28.9949,-2.2733],[28.9465,-2.3881],[29.0406,-2.7438],[29.4233,-4.4475],[29.3874,-5.0153],[29.5996,-5.587],[29.5926,-6.3587],[30.2771,-7.1145],[30.7712,-8.1922],[29.016,-8.5161],[28.454,-9.2529],[28.6626,-9.794],[28.5408,-10.9113],[28.4861,-11.8258],[29.1044,-12.3704],[29.7932,-12.2818],[29.7527,-13.4086],[29.5569,-13.2535],[29.0399,-13.3796],[28.4077,-12.5205],[27.6036,-12.2134],[27.1699,-11.6261],[26.7612,-11.9646],[26.0386,-11.9177],[25.4764,-11.7233],[25.2205,-11.26],[24.396,-11.3999],[24.1243,-10.9113],[23.983,-10.9113],[23.0649,-11.0941],[22.2761,-11.0428],[22.2739,-10.3412],[21.8433,-9.4449],[21.9191,-8.4515],[21.6619,-7.309],[20.7264,-7.2513],[20.4216,-6.9498],[19.8263,-6.9975],[19.2527,-7.9545],[17.7714,-8.0899],[17.0219,-7.2667],[16.4629,-5.9179],[12.8501,-5.9411],[12.7227,-5.9948],[12.4187,-5.982],[12.1955,-5.7639],[12.4994,-5.6868],[12.5746,-5.0613],[13.1018,-4.6851],[13.4772,-4.7956],[13.7912,-4.4961],[14.2824,-4.3716],[14.4064,-4.4542],[14.4575,-4.7733],[14.6688,-4.8486],[15.1942,-4.3563],[15.86,-3.9206],[16.1709,-3.3396],[16.2257,-2.2733],[16.8321,-1.3121],[17.3029,-.8786],[17.6376,-.5705],[17.7769,.252],[18.1044,2.1845],[18.6251,3.4716],[18.6554,4.3279],[19.4799,5.075],[19.8888,5.0123],[20.6682,4.4533],[22.1795,4.175],[22.9998,4.6994],[23.5054,4.6884],[24.443,5.0286],[24.9587,4.9801],[25.5177,5.3238],[27.4436,5.0194]]]},properties:{name:"Democratic Republic of The Congo"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.8755,10.9314],[23.608,9.9187],[23.5994,8.8147],[24.2234,8.6422],[24.321,8.3317],[24.9801,8.016],[25.4062,7.3523],[26.29,6.6847],[26.6049,6.0962],[27.1693,5.6776],[27.4436,5.0194],[25.5177,5.3238],[24.9587,4.9801],[24.443,5.0286],[23.5054,4.6884],[22.9998,4.6994],[22.1795,4.175],[20.6682,4.4533],[19.8888,5.0123],[19.4799,5.075],[18.6554,4.3279],[18.6251,3.4716],[18.392,3.6187],[16.6837,3.5022],[16.192,2.2205],[16.0122,2.9309],[15.1777,3.8331],[14.5544,5.3255],[14.5004,6.0684],[15.5075,7.5275],[15.8854,7.4815],[16.5651,7.8021],[16.883,7.591],[17.6801,7.9654],[18.5893,8.0831],[19.0457,8.6058],[18.9757,8.9098],[20.3063,9.1517],[20.7327,9.3974],[21.6697,10.3052],[21.7863,10.7159],[22.4744,10.9768],[22.8755,10.9314]]]},properties:{name:"Central African Republic"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[18.6251,3.4716],[18.1044,2.1845],[17.7769,.252],[17.6376,-.5705],[17.3029,-.8786],[16.8321,-1.3121],[16.2257,-2.2733],[16.1709,-3.3396],[15.86,-3.9206],[15.1942,-4.3563],[14.6688,-4.8486],[14.4575,-4.7733],[14.4064,-4.4542],[14.2824,-4.3716],[13.7912,-4.4961],[13.4772,-4.7956],[13.1018,-4.6851],[12.7888,-4.4786],[11.9892,-4.9993],[11.201,-3.9916],[11.8945,-3.4408],[11.9433,-3.1022],[11.7476,-2.7148],[11.8464,-2.5027],[12.3425,-2.3577],[12.6158,-2.0511],[13.3829,-2.3436],[14.1596,-2.16],[14.3759,-1.7141],[14.4299,-.8786],[14.008,.0173],[14.3513,1.0236],[14.0479,1.3393],[13.3162,1.4466],[13.299,2.1706],[14.5151,2.1889],[16.0227,1.7813],[16.192,2.2205],[16.6837,3.5022],[18.392,3.6187],[18.6251,3.4716]]]},properties:{name:"Congo"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[9.5587,47.5419],[9.5307,47.2706],[9.476,47.0518],[9.6071,47.0608],[10.145,46.851],[10.4697,46.8549],[10.4528,46.5307],[10.1739,46.5798],[10.0507,46.335],[9.3475,46.472],[9.2485,46.2338],[9.1594,46.1696],[8.9121,45.8304],[8.7139,46.0973],[8.3847,46.4522],[7.8771,45.927],[7.8641,45.9168],[7.0449,45.9224],[6.8211,46.4272],[6.463,46.432],[6.2414,46.3436],[6.1776,46.1816],[5.9561,46.1321],[6.1256,46.3172],[6.064,46.4162],[6.1381,46.5577],[6.463,46.8511],[6.8602,47.1655],[6.8584,47.1672],[6.9392,47.4337],[7.1304,47.503],[7.3809,47.4319],[7.5109,47.5026],[7.5552,47.5646],[7.589,47.5899],[7.6341,47.5611],[7.7138,47.5394],[7.8941,47.5864],[8.4264,47.5675],[8.5149,47.6272],[8.5101,47.7762],[8.6138,47.8011],[8.6634,47.6859],[8.6705,47.6849],[9.1822,47.6559],[9.4956,47.5515],[9.5587,47.5419]]]},properties:{name:"Switzerland"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-5.5189,10.4333],[-5.117,10.2222],[-4.812,9.777],[-4.3699,9.6182],[-3.6098,9.9307],[-3.3739,9.8912],[-3.198,9.8618],[-2.7863,9.5629],[-2.6869,9.4907],[-2.5205,8.2869],[-3.1813,6.7737],[-2.8322,5.299],[-3.1058,5.0909],[-3.3739,5.1348],[-4.0246,5.2415],[-5.595,5.0728],[-7.5231,4.3617],[-7.4568,5.7608],[-8.4496,6.4988],[-8.3267,7.0841],[-8.4722,7.5546],[-8.1719,7.6791],[-8.0418,8.107],[-8.2025,8.2206],[-8.1489,8.4531],[-7.7092,8.5226],[-7.9101,8.8593],[-7.8783,9.2737],[-8.1218,9.6107],[-7.9785,10.1751],[-7.5603,10.415],[-6.9796,10.2777],[-6.3759,10.6631],[-6.0283,10.3127],[-5.5189,10.4333]]]},properties:{name:"Ivory Coast"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-157.7861,-9.075],[-157.9637,-9.1776],[-158.1467,-8.9599],[-158.1209,-8.8361],[-157.8847,-8.8845],[-157.7861,-9.075]]],[[[-159.5685,-21.2758],[-159.6923,-21.3824],[-159.9369,-21.3179],[-159.9866,-21.1757],[-159.6782,-21.1139],[-159.5685,-21.2758]]],[[[-162.9359,-13.4211],[-163.1309,-13.4225],[-163.415,-13.085],[-163.242,-13.0414],[-162.9359,-13.4211]]]]},properties:{name:"Cook Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[46.553,29.1012],[47.4177,28.9797],[47.7643,28.5452],[48.4333,28.5314],[48.9148,27.6301],[49.9616,26.8423],[50.2035,26.3608],[50.1167,25.8365],[50.815,24.7395],[51.3072,24.5064],[51.3465,24.3093],[51.5906,24.243],[52.6453,22.9764],[55.2083,22.7083],[55.6667,22],[55.623,21.8699],[55.5332,21.6026],[54.9485,20.0059],[52,19],[49.0135,18.5638],[48.1849,18.1433],[47.1932,16.9779],[46.7083,17.2521],[45.6126,17.308],[43.3633,17.4977],[43.183,16.6552],[42.7639,16.4046],[42.2907,17.3713],[41.6108,18.1055],[40.533,19.886],[39.3742,20.8823],[38.9569,22.7932],[38.4486,23.6967],[37.45,24.498],[37.1665,25.218],[36.6707,25.724],[35.3225,27.8117],[34.6586,28.1161],[34.957,29.3567],[36.081,29.223],[36.7808,29.8457],[37.4562,30.0187],[37.9246,30.5466],[37.0883,31.5014],[39.2009,32.1543],[40.4951,31.898],[42.1579,31.0566],[44.663,29.2518],[45.6126,29.1294],[46.1115,29.0876],[46.4258,29.0612],[46.553,29.1012]]]},properties:{name:"Saudi Arabia"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[179.9962,70.9763],[179.583,70.8674],[179.2345,70.8757],[178.7808,70.8069],[178.6083,71.0683],[178.8815,71.2158],[179.4381,71.4027],[179.9973,71.5246],[179.9962,70.9763]]],[[[130.6749,42.2836],[130.6238,42.45],[130.5711,42.6363],[130.46,42.6893],[131.1583,43.1226],[131.2039,44.8571],[131.8756,45.2894],[133.0211,45.139],[133.8238,46.2524],[134.1834,47.2206],[134.6406,47.6454],[134.6067,48.3298],[131.9987,47.7036],[131.1145,47.7422],[130.3126,48.931],[129.5609,49.3475],[127.6584,49.7757],[126.48,52.1446],[125.4695,53.0542],[123.3487,53.5256],[120.9957,53.2739],[120.208,52.7974],[120.1502,52.6928],[120.6094,52.4875],[120.6644,52.0663],[119.9519,51.4479],[119.1095,50.0654],[117.8074,49.5794],[116.7209,49.8498],[116.2426,49.9903],[115.4261,49.9355],[114.3649,50.236],[112.887,49.5712],[110.9163,49.2007],[108.8074,49.3345],[107.8553,49.9138],[106.5203,50.3292],[105.4152,50.4519],[103.5057,50.2012],[102.4373,50.5965],[101.9481,51.3734],[98.9786,52.0482],[97.9549,51.1391],[98.1961,50.2828],[97.3304,49.8163],[94.7987,50.0463],[94.1016,50.5591],[92.697,50.77],[92.4372,50.809],[90.0071,50.0358],[89.5277,49.6654],[89.1233,49.6048],[88.2913,49.48],[87.825,49.1833],[87.3126,49.0997],[86.6632,49.68],[86.0644,49.5438],[85.3276,49.658],[83.538,50.9008],[81.6483,50.8179],[80.754,51.2158],[79.9616,51.0371],[78.2111,52.9706],[76.7984,53.8832],[76.5796,54.2755],[75.5425,54.0876],[74.3649,53.5615],[73.6202,53.5211],[73.1022,54.0044],[71.2665,54.2568],[70.7176,55.2085],[69.013,55.3543],[67.9852,54.952],[65.6722,54.6387],[64.8622,54.3622],[61.3583,53.9303],[61.2404,53.6425],[61.6281,53.0971],[60.9869,52.8069],[60.8386,52.2997],[60.2825,51.9603],[61.3899,51.3192],[61.3457,50.9419],[61.1066,50.7718],[59.4875,50.6292],[58.0642,51.0787],[56.5075,50.972],[55.6774,50.6643],[54.9145,50.8104],[54.5327,50.6975],[53.2814,51.483],[52.3307,51.6643],[51.5214,51.544],[50.8212,51.6542],[48.9207,50.6761],[48.573,49.9575],[47.446,50.2984],[46.9351,49.7296],[46.6827,48.4677],[47.2665,47.8148],[48.0285,47.6876],[48.4852,47.4156],[48.8096,46.9554],[48.7942,46.599],[49.2136,46.3332],[48.3519,45.8178],[47.604,45.6259],[46.863,44.6345],[47.3607,43.8888],[47.5658,42.9899],[48.0231,42.3929],[48.3039,42.1059],[48.5218,41.8833],[48.5735,41.8254],[47.6587,41.2176],[46.7291,41.7331],[46.4205,41.9043],[45.9086,42.1059],[45.6621,42.3929],[45.0431,42.6553],[43.9013,42.6535],[42.4524,43.1829],[41.0039,43.4488],[40.0103,43.3853],[38.7996,44.2241],[36.9458,45.1824],[37.9777,45.9863],[38.0723,46.5853],[38.5103,46.9405],[38.231,47.1187],[38.5666,47.6752],[39.756,47.9207],[39.8787,48.3158],[39.7817,48.848],[40.0937,49.271],[39.9709,49.5281],[39.1438,49.8497],[38.0083,49.9928],[37.3983,50.3916],[36.5636,50.2607],[35.6852,50.4062],[35.1589,51.1293],[34.307,51.4173],[34.3442,51.8126],[33.7694,52.2996],[31.7869,52.1115],[31.3967,53.0369],[32.526,53.3094],[32.5875,53.4898],[32.2832,53.7654],[31.8888,53.8522],[30.9746,54.6727],[30.7426,55.6294],[28.1546,56.1698],[27.6908,57.3706],[27.3516,57.5182],[27.6449,57.981],[27.357,58.7871],[28.1202,59.3526],[28.0419,59.4701],[29.3172,60.1181],[28.5672,60.5],[27.7476,60.4578],[27.8036,60.5486],[27.9913,60.669],[30.144,61.8522],[31.1863,62.4872],[31.5218,62.8942],[31.128,63.2578],[29.9719,63.7572],[30.2805,63.8509],[30.4884,64.1574],[30.0686,64.4375],[30.0598,64.547],[30.0443,64.7388],[29.7009,64.9085],[29.7547,65.4974],[30.0785,65.7704],[29.5729,66.4329],[29.4643,66.5492],[29.1273,66.9908],[29.956,67.6452],[28.8967,68.1515],[28.6388,68.2375],[28.4782,68.5109],[28.8967,69.0426],[29.6453,69.3474],[30.0753,69.4717],[30.2617,69.6417],[30.8426,69.5422],[30.9297,69.6195],[30.8654,69.7596],[32.2282,69.7951],[33.6469,69.3004],[36.3959,69.0059],[40.877,67.4097],[40.9794,67.0664],[40.6709,66.6558],[38.9814,66.192],[34.184,66.4059],[35.1704,64.5412],[36.3256,64.0662],[37.1374,63.9503],[37.5223,64.16],[37.0853,64.6282],[37.1902,64.9043],[39.6429,64.7651],[39.9186,64.9561],[40.1409,65.4991],[40.6412,65.835],[42.25,66.3431],[43.9817,66.4973],[44.1706,66.8837],[44.0179,68.1538],[44.4091,68.4926],[45.9114,68.2653],[46.0643,67.9449],[45.4559,67.4089],[47.0008,66.9654],[49.3314,67.9542],[53.298,68.7358],[54.8435,68.3345],[58.404,68.7985],[59.6601,68.5647],[60.4865,68.9586],[60.442,69.3314],[59.2881,69.95],[59.3619,70.1626],[60.7346,69.7979],[64.6961,69.3395],[68.4408,68.5423],[68.6217,68.7039],[68.5329,68.9701],[67.2152,69.7906],[67.2366,71.1079],[69.3769,72.6976],[71.7354,72.7044],[72.4602,72.3494],[72.2713,71.4029],[72.5962,70.6168],[72.6748,69.2239],[73.1332,68.1285],[72.6757,67.5559],[71.4922,66.8091],[70.2403,66.5432],[70.5087,66.3892],[71.798,66.3446],[73.2985,66.8302],[74.0269,67.2874],[74.517,67.8502],[74.7341,68.4802],[75.014,68.6814],[76.4,68.7806],[77.3041,68.1731],[77.5638,68.2629],[77.4465,68.7061],[76.9954,68.9722],[73.9087,69.6016],[73.9252,70.6072],[73.5653,71.4963],[74.9319,72.4185],[75.2424,72.3581],[75.5185,71.6873],[76.1227,71.2727],[77.16,71.2259],[76.7108,71.7767],[78.2618,72.4203],[82.3964,71.6931],[82.7167,71.0218],[83.1657,70.815],[83.1295,71.6767],[81.2609,72.455],[80.9349,73.2703],[85.8455,73.8889],[86.2336,74.1623],[86.192,74.6654],[86.6244,74.8754],[95.1844,76.1808],[96.8181,75.9747],[98.5686,76.151],[100.7834,76.614],[102.6562,77.4333],[104.5472,77.6314],[105.6401,77.4411],[107.3126,76.6255],[111.2225,76.7131],[113.0457,76.3156],[113.5029,75.9571],[113.4201,75.4638],[112.8646,75.0958],[107.4182,73.633],[106.8982,73.3679],[107.0256,73.1779],[109.1608,73.4013],[110.686,73.9045],[112.7292,73.7814],[113.8377,73.4997],[115.6978,73.6525],[117.636,73.5748],[119.3563,73.1501],[121.2509,72.9724],[123.0428,73.0515],[124.284,73.6563],[127.1877,73.4971],[129.0678,72.9295],[129.2629,72.5375],[129.1489,71.9184],[129.2731,71.6075],[129.9087,71.2165],[131.049,70.9136],[132.9632,71.6747],[134.5583,71.4507],[139.1177,71.5684],[139.9969,72.3703],[142.1795,72.77],[148.4814,72.251],[152.7627,70.9087],[158.2213,70.8941],[159.3347,70.6216],[160.2129,69.847],[161.3828,69.5239],[164.1068,69.6802],[166.6541,69.5592],[168.3886,69.8244],[168.6206,69.7125],[168.8372,69.238],[170.0048,68.9403],[170.5578,69.1405],[170.9095,69.7566],[172.1652,70.002],[176.7193,69.7286],[178.6221,69.3595],[179.7432,68.6856],[179.9559,67.3162],[179.8103,65.4272],[179.1361,64.8671],[178.1761,64.3831],[179.1082,63.207],[179.065,62.5938],[176.7371,62.3957],[174.2536,61.8157],[170.5153,60.2446],[168.4208,60.4862],[163.8424,59.7762],[162.4195,58.2071],[162.968,57.4438],[162.951,56.3],[162.1297,55.7562],[161.6682,54.7698],[160.3802,54.1602],[159.7945,53.4023],[158.7737,52.8946],[158.0959,52.0229],[157.2446,51.4472],[156.4905,51.9416],[155.7786,54.4608],[155.7272,55.6758],[156.0364,56.5102],[157.2578,57.7648],[158.6874,58.3422],[161.6927,60.1765],[163.3851,60.9563],[164.1342,62.3923],[163.6561,62.3609],[162.7223,61.5942],[160.7523,60.9377],[160.2363,61.1361],[159.6791,61.7447],[158.2131,61.7836],[157.2974,61.6169],[154.7298,60.0415],[154.5438,59.721],[154.6514,59.3363],[154.3106,59.1655],[151.9522,58.9866],[151.344,59.425],[149.8162,59.614],[148.2633,59.3343],[145.0309,59.3263],[141.8573,58.7491],[135.7775,54.8981],[137.697,53.7632],[138.2982,53.7639],[139.4491,54.1061],[141.0637,53.2194],[141.1846,51.9968],[140.6448,50.8282],[140.4238,49.5567],[139.9505,48.4355],[137.7699,45.9533],[135.0391,43.5659],[133.3857,42.8819],[131.7936,43.0045],[130.6749,42.2836]],[[73.4786,53.86],[73.723,53.8039],[73.8138,54.1065],[73.4388,54.0281],[73.4786,53.86]]],[[[166.6501,54.8319],[166.5906,54.7281],[166.1652,54.9469],[165.8504,55.299],[165.9027,55.3759],[166.2665,55.3136],[166.2171,55.1826],[166.4334,54.9488],[166.6501,54.8319]]],[[[164.2051,58.8131],[163.7877,58.6996],[163.72,58.7597],[163.8509,59.0184],[164.3197,59.1114],[164.6075,59.2435],[164.7632,59.0307],[164.6653,58.8686],[164.2051,58.8131]]],[[[158.3604,76.6476],[157.9497,76.6178],[157.889,76.6755],[158.0828,76.8249],[158.4223,76.7663],[158.3604,76.6476]]],[[[156.4938,50.8867],[156.42,50.6418],[156.1875,50.6428],[155.8912,50.2403],[155.6073,50.1772],[155.4085,50.0019],[155.1865,50.061],[155.2288,50.2336],[155.7289,50.4393],[155.8524,50.651],[156.4938,50.8867]]],[[[155.7858,50.8553],[155.4719,50.7231],[155.2973,50.9106],[155.6449,51.0009],[155.7858,50.8553]]],[[[154.9165,49.3392],[154.706,49.1914],[154.5409,49.3045],[154.7255,49.58],[154.9165,49.3392]]],[[[146.4403,75.5745],[146.9721,75.34],[147.8902,75.4213],[150.7066,75.0449],[150.507,74.8549],[149.114,74.7376],[146.4403,75.1545],[146.3229,75.1949],[146.2658,75.3731],[146.4403,75.5745]]],[[[150.2144,45.9421],[149.6699,45.6062],[149.577,45.6632],[150.0645,46.0962],[150.3738,46.2397],[150.4113,46.1106],[150.2144,45.9421]]],[[[149.2942,76.7884],[149.316,76.5856],[148.9788,76.5878],[148.8857,76.68],[148.9755,76.7752],[149.2942,76.7884]]],[[[139.1009,76.1731],[140.7059,75.7049],[141.0207,76.0599],[141.7878,76.0833],[144.9837,75.5577],[145.0101,75.4635],[144.6004,75.1119],[143.3834,74.8961],[142.532,74.8204],[142.133,74.9936],[140.7059,74.8724],[139.7162,74.9286],[138.9392,74.6615],[138.2309,74.7684],[137.045,75.2611],[137.2451,75.7087],[137.5548,75.9213],[138.5049,76.1401],[139.1009,76.1731]]],[[[143.4824,46.7446],[143.5727,46.3982],[143.4439,46.2889],[143.1663,46.5671],[142.5957,46.6828],[142.06,45.9602],[141.8412,46.5501],[142.0904,47.8449],[142.1556,48.1942],[141.9093,48.7132],[142.1339,49.6014],[142.0652,50.6516],[142.206,51.1814],[141.6632,51.9611],[141.8786,53.0959],[141.8595,53.3932],[142.3801,53.3971],[142.7286,53.736],[142.4494,54.1962],[142.6729,54.3563],[142.9365,54.1028],[143.1762,53.295],[143.0919,53.0959],[143.2945,52.7832],[143.1524,52.0745],[143.2807,51.5226],[144.2659,49.2706],[143.0677,49.1501],[142.5374,47.8449],[143.1224,46.9378],[143.4824,46.7446]]],[[[143.4715,56.3041],[143.2011,56.287],[143.1509,56.3905],[143.4736,56.5562],[143.6132,56.4675],[143.4715,56.3041]]],[[[143.5483,73.4003],[143.2072,73.1882],[140.7059,73.4297],[140.7059,73.5507],[141.1108,73.8288],[142.1034,73.9058],[143.1833,73.6505],[143.5483,73.4003]]],[[[140.7059,73.9426],[140.4556,73.9297],[140.2354,74.0393],[140.2984,74.2149],[140.7059,74.2716],[141.05,74.1907],[141.0734,74.0393],[140.9748,73.989],[140.7059,73.9426]]],[[[137.8863,54.7467],[137.6871,54.676],[137.3793,54.8843],[137.5562,55.1282],[137.8863,55.1266],[138.0625,55.0042],[137.9914,54.8],[137.8863,54.7467]]],[[[137.1123,55.1828],[137.1161,54.8394],[136.9025,54.8416],[136.7915,55.0038],[137.1123,55.1828]]],[[[136.1841,74.0414],[136.179,73.8826],[135.7278,74.0414],[135.6923,74.1284],[135.7665,74.1826],[136.1841,74.0414]]],[[[136.073,75.4394],[135.6046,75.3791],[135.5453,75.4375],[135.658,75.7493],[135.7989,75.8089],[136.0893,75.6475],[136.073,75.4394]]],[[[123.4194,73.3718],[123.1781,73.3336],[123.0671,73.5256],[123.2466,73.716],[123.4194,73.3718]]],[[[120.6889,74.1524],[120.7267,73.9112],[120.2539,74.1349],[120.4311,74.2332],[120.6889,74.1524]]],[[[113.2672,74.2988],[112.8544,74.1066],[112.5141,74.1074],[111.772,74.2699],[111.7296,74.316],[112.0715,74.5334],[112.5141,74.5258],[113.2532,74.402],[113.2672,74.2988]]],[[[107.8406,78.1845],[107.5342,77.9552],[107.4017,78.1333],[107.5614,78.2893],[107.8406,78.1845]]],[[[107.7193,77.2311],[107.3022,77.1709],[107.2358,77.2404],[107.5477,77.4667],[107.7193,77.2311]]],[[[102.9989,79.3069],[102.9629,79.0049],[103.4345,79.1651],[104.1392,78.9859],[104.6229,78.7858],[105.0665,78.8603],[105.3192,78.5861],[104.8884,78.3354],[104.1392,78.2922],[101.2335,78.1585],[100.0011,77.9474],[99.6648,78.0684],[99.6914,78.1076],[101.2335,78.9897],[101.2335,79.0904],[101.6038,79.2177],[101.6576,79.3069],[102.2392,79.2348],[102.2996,79.3825],[102.4684,79.4075],[102.9989,79.3069]]],[[[97.3491,80.3705],[98.037,79.9604],[99.1615,80.0135],[99.8236,79.8713],[100.0212,79.6344],[99.7718,78.9424],[98.4008,78.793],[94.9671,79.0881],[94.1448,79.543],[94.2977,79.8455],[94.1995,79.9542],[92.697,79.7265],[92.0682,79.8426],[91.9828,79.9006],[92.0659,79.9669],[92.697,80.0335],[92.8065,80.5418],[93.073,80.8378],[95.8425,81.2164],[97.4925,80.8099],[97.3491,80.3705]]],[[[96.5787,77.1055],[96.1356,76.9867],[96.0468,77.0523],[96.4981,77.2961],[96.5787,77.1055]]],[[[95.7166,76.5293],[95.3627,76.4593],[95.3051,76.7214],[95.6495,76.6784],[95.7166,76.5293]]],[[[95.2074,76.7409],[95.2107,76.6349],[94.9486,76.5709],[94.748,76.6664],[94.4417,76.548],[94.3569,76.6613],[94.446,76.8473],[95.2074,76.7409]]],[[[91.6152,81.0744],[91.3624,81.0341],[90.177,81.0668],[90.122,81.1305],[90.2109,81.1856],[91.0617,81.2148],[91.5945,81.183],[91.6152,81.0744]]],[[[89.7209,77.1344],[89.3885,77.0937],[89.2568,77.2216],[89.7042,77.3474],[89.7209,77.1344]]],[[[88.9291,77.2058],[89.0054,76.8986],[88.6801,76.9955],[88.5976,77.1375],[88.9291,77.2058]]],[[[86.4772,75.1964],[86.178,75.183],[86.0744,75.2832],[86.2189,75.3963],[86.5524,75.3543],[86.4772,75.1964]]],[[[85.79,74.9463],[85.6884,74.6624],[85.4114,74.769],[85.4423,74.9309],[85.79,74.9463]]],[[[85.2905,74.9815],[85.2707,74.6556],[85.0063,74.6946],[85.0166,74.9102],[85.2905,74.9815]]],[[[82.7731,77.3925],[82.4151,77.3925],[82.3052,77.5101],[82.6754,77.6375],[82.7731,77.3925]]],[[[82.1842,75.3675],[82.2128,75.0836],[81.8092,75.3043],[81.8714,75.4135],[82.1842,75.3675]]],[[[80.1964,80.8439],[79.2602,80.818],[79.2016,80.8819],[79.3042,80.9469],[80.1737,80.9568],[80.1964,80.8439]]],[[[79.5228,72.7714],[79.0944,72.7084],[78.7097,72.8399],[79.0944,73.0877],[79.3465,73.0564],[79.5228,72.7714]]],[[[77.0163,79.6159],[77.0309,79.4465],[76.6165,79.456],[76.5982,79.5591],[76.6892,79.6457],[77.0163,79.6159]]],[[[74.7877,72.8876],[74.4961,72.8503],[74.1352,72.9955],[74.3164,73.1244],[74.6343,73.1095],[74.7877,72.8876]]],[[[70.8998,73.1102],[70.3531,73.0088],[69.9009,73.0347],[69.97,73.3898],[70.7916,73.4971],[71.2866,73.4324],[71.4738,73.2462],[71.44,73.154],[70.8998,73.1102]]],[[[60.6482,75.0826],[60.5357,74.9811],[57.9374,74.0185],[57.6462,73.6944],[56.0805,73.0383],[56.0111,72.8035],[55.5047,72.4354],[55.4097,72.0392],[55.5679,71.7391],[56.2,71.2126],[57.3108,70.7434],[57.2587,70.5796],[53.9065,70.7669],[53.3653,71.2894],[52.9667,71.0505],[51.5364,71.7143],[51.7052,72.0557],[52.631,72.3382],[52.802,72.53],[52.7288,72.7929],[54.0632,73.4463],[54.1002,73.8192],[55.755,74.4466],[56.3957,74.9097],[56.3563,75.0068],[55.9842,74.9811],[55.8588,75.1311],[56.3525,75.1799],[56.5068,74.9907],[56.9112,75.3038],[57.5774,75.3618],[58.9175,75.9046],[61.282,76.272],[64.7371,76.39],[66.3923,76.818],[67.9314,77.0007],[68.5623,76.9228],[68.9223,76.6995],[68.754,76.4897],[67.9314,76.2308],[62.1638,75.4412],[60.6482,75.0826]]],[[[64.7421,80.7443],[63.2269,80.6433],[63.0105,80.7734],[63.0533,80.8217],[64.7421,81.1801],[65.256,81.1284],[65.2985,80.8656],[64.7421,80.7443]]],[[[63.5888,81.5908],[62.9418,81.5651],[62.8257,81.6486],[62.8818,81.7034],[63.5866,81.703],[63.5888,81.5908]]],[[[61.9379,80.6744],[61.0955,80.383],[59.5099,80.4518],[59.3552,80.5111],[59.5099,80.7063],[60.5084,80.8078],[60.4005,81.0167],[61.2035,81.1108],[61.4511,81.0533],[61.3115,80.8546],[61.9268,80.7792],[61.9379,80.6744]]],[[[59.8616,80.0555],[59.8687,79.9288],[59.0246,79.9528],[58.971,80.0168],[59.1336,80.122],[59.8616,80.0555]]],[[[59.3789,81.4929],[59.2856,81.2131],[58.9052,81.3833],[58.9567,81.4437],[59.3789,81.4929]]],[[[59.2392,81.7672],[58.7185,81.619],[58.6887,81.7239],[58.1947,81.6835],[58.0247,81.7496],[58.0666,81.8239],[59.1947,81.8522],[59.2392,81.7672]]],[[[57.887,81.1628],[57.9152,81.0628],[58.6549,81.1059],[58.8513,80.8092],[57.9537,80.7118],[57.9441,80.608],[58.6928,80.3823],[58.693,80.2805],[58.1437,80.1125],[57.2006,80.2366],[56.5837,80.0651],[56.147,80.0903],[55.9987,80.3252],[56.5837,80.3169],[57.2954,80.5415],[57.1448,80.6585],[56.5837,80.6117],[54.8218,80.7516],[54.6711,81.0825],[55.2488,81.0339],[55.3523,80.8959],[56.1414,81.0825],[56.5288,81.1034],[56.4204,81.3017],[56.5837,81.3946],[57.887,81.1628]]],[[[58.4195,81.49],[58.3478,81.3594],[57.8258,81.3603],[57.6595,81.4975],[57.719,81.5521],[58.4195,81.49]]],[[[56.0887,81.2991],[56.074,81.1771],[55.6238,81.193],[55.5703,81.2547],[55.6648,81.3703],[56.0887,81.2991]]],[[[55.3282,80.4653],[55.4145,80.2406],[55.0916,80.2843],[55.0386,80.3916],[54.467,80.3788],[54.3835,80.1556],[54.0764,80.0907],[54.1666,80.3402],[53.9738,80.5357],[54.0094,80.5914],[55.3282,80.4653]]],[[[53.4413,80.3596],[53.6411,80.2738],[53.566,80.1398],[52.9392,80.1428],[52.9005,80.1008],[52.1956,80.2484],[52.2326,80.3477],[52.6935,80.3135],[53.1959,80.3892],[53.2734,80.668],[53.4595,80.618],[53.4413,80.3596]]],[[[50.9457,80.8918],[50.9457,80.7832],[51.3322,80.7871],[51.3624,80.6661],[50.9457,80.5421],[48.8848,80.3571],[48.2444,80.1193],[47.9053,80.1014],[47.634,80.3309],[47.743,80.4806],[48.2279,80.5309],[48.1,80.7261],[48.2559,80.8315],[48.5067,80.5576],[48.879,80.5031],[49.323,80.5893],[49.6696,80.8746],[50.5486,80.7725],[50.9457,80.8918]]],[[[51.2966,80.0142],[51.2119,79.9097],[50.7875,79.9172],[50.7326,79.9781],[50.9434,80.105],[51.2966,80.0142]]],[[[50.7839,81.0254],[50.5768,80.9693],[50.408,81.1223],[50.464,81.2271],[50.7732,81.2173],[50.7839,81.0254]]],[[[50.2024,80.0387],[49.8618,80.031],[49.696,80.1646],[50.1126,80.2555],[50.2024,80.0387]]],[[[50.0416,69.0698],[49.0204,68.6767],[48.3887,68.7546],[48.2164,69.084],[48.544,69.3951],[49.1407,69.4946],[50.0404,69.171],[50.0416,69.0698]]],[[[47.4145,80.2039],[46.8957,80.1688],[46.8642,80.3009],[47.3693,80.3755],[47.4145,80.2039]]],[[[47.4016,80.604],[46.3208,80.4513],[45.4918,80.5364],[45.4429,80.592],[45.4946,80.6449],[47.4042,80.7419],[47.4016,80.604]]],[[[36.0347,65.0758],[35.7619,64.9198],[35.5474,65.0203],[35.7619,65.2178],[36.0347,65.0758]]],[[[22.7921,54.3634],[21.5593,54.3225],[20.3135,54.4022],[20.1365,54.4162],[19.8038,54.4424],[20.1243,54.5992],[20.0733,54.9187],[21.0449,54.9481],[21.2735,55.2457],[21.3903,55.2694],[21.6511,55.18],[22.589,55.0703],[22.8215,54.8264],[22.7921,54.3634]]],[[[-174.767,66.6963],[-174.3756,66.4825],[-174.1416,66.5499],[-173.8895,67.0173],[-173.3363,67.0735],[-171.6973,66.8848],[-170.0108,66.0919],[-171.0349,65.5597],[-172.1842,65.474],[-172.3177,64.8106],[-172.6108,64.6866],[-172.6615,64.4123],[-173.0582,64.2992],[-175.4565,64.8842],[-176.2657,65.445],[-178.3359,65.5331],[-178.868,66.1801],[-179.5633,66.018],[-179.4817,65.5034],[-180,65.0276],[-180,65.213],[-180,65.3972],[-180,65.5801],[-180,65.7618],[-180,65.9421],[-180,66.1212],[-180,66.2991],[-180,66.4757],[-180,66.5336],[-180,66.651],[-180,66.8251],[-180,66.998],[-180,67.1697],[-180,67.3401],[-180,67.5094],[-180,67.6774],[-180,67.8443],[-180,68.01],[-180,68.1745],[-180,68.2648],[-180,68.3378],[-180,68.5],[-180,68.661],[-180,68.8208],[-180,68.9795],[-175.354,67.6315],[-174.9293,67.3214],[-174.767,66.6963]]],[[[-178.2836,71.2987],[-179.1037,70.9697],[-180,70.9748],[-179.9949,71.5296],[-178.6318,71.5065],[-178.2836,71.2987]]]]},properties:{name:"Russian Federation"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[169.0654,-12.2911],[168.6567,-12.4646],[168.582,-12.3865],[168.808,-12.1342],[169.0654,-12.2911]]],[[[166.0288,-10.6189],[165.8587,-10.9636],[165.6911,-10.7777],[165.7618,-10.579],[166.0288,-10.6189]]],[[[162.0684,-10.5134],[162.2098,-10.7511],[161.7851,-10.7345],[161.2908,-10.3389],[161.2908,-10.2071],[162.0684,-10.5134]]],[[[161.664,-9.605],[161.4358,-9.8238],[161.3176,-9.5469],[161.4384,-9.405],[161.664,-9.605]]],[[[161.3,-9.3743],[161.2026,-9.4169],[160.7174,-8.8216],[160.6496,-8.4101],[160.7314,-8.3273],[160.9764,-8.6162],[160.947,-8.8216],[161.1445,-8.9869],[161.3,-9.3743]]],[[[159.7096,-9.3089],[159.9623,-9.4305],[160.331,-9.4158],[160.71,-9.7403],[160.6676,-9.8332],[159.8791,-9.7864],[159.5777,-9.5018],[159.7096,-9.3089]]],[[[160.3505,-11.6083],[160.2583,-11.7928],[159.9092,-11.4825],[160.0953,-11.4172],[160.3505,-11.6083]]],[[[159.7778,-8.3268],[159.6281,-8.4461],[159.1383,-8.1378],[158.5854,-7.7388],[158.5043,-7.6262],[158.5855,-7.5797],[159.6142,-8.1378],[159.7778,-8.3268]]],[[[159.308,-8.9274],[159.3881,-9.2218],[159.0956,-9.2034],[159.0744,-8.9455],[159.308,-8.9274]]],[[[157.1557,-7.9031],[157.2373,-8.1869],[157.4836,-8.0224],[157.8821,-8.3807],[158.1822,-8.5675],[158.2467,-8.8039],[157.9055,-8.7165],[157.7783,-8.5675],[157.0243,-8.24],[156.9471,-7.974],[157.1557,-7.9031]]],[[[158.0137,-7.5081],[157.634,-7.6184],[157.5783,-7.4477],[157.8047,-7.3086],[158.0137,-7.5081]]],[[[157.528,-7.3447],[157.4848,-7.4465],[157.2472,-7.3671],[156.412,-6.7291],[156.5461,-6.6125],[157.095,-6.9582],[157.1494,-7.1226],[157.528,-7.3447]]],[[[156.7189,-7.9385],[156.5763,-7.9495],[156.4976,-7.6445],[156.6205,-7.5695],[156.7945,-7.7328],[156.7189,-7.9385]]],[[[155.9426,-7.1688],[155.8412,-7.4957],[155.5308,-7.3838],[155.435,-7.6161],[155.2505,-7.5775],[155.1611,-7.3125],[155.5058,-7.3295],[155.9426,-7.1688]]]]},properties:{name:"Solomon Islands"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[55.6578,-4.6765],[55.65,-4.8496],[55.1718,-4.5707],[55.3526,-4.4859],[55.6578,-4.6765]]],[[[53.149,-6.3584],[52.8456,-6.3803],[53.0169,-6.047],[53.2077,-6.1346],[53.149,-6.3584]]],[[[46.4807,-9.4728],[46.1499,-9.5654],[46.083,-9.3353],[46.4023,-9.2874],[46.4807,-9.4728]]],[[[-63.4882,15.5918],[-63.5773,15.4115],[-63.7901,15.7552],[-63.5773,15.8927],[-63.4882,15.5918]]]]},properties:{name:"Seychelles"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[38.5696,18.005],[38.2556,17.6008],[37.0295,17.0223],[36.8653,16.1186],[36.4673,15.1054],[36.5603,14.2577],[36.1342,12.8315],[35.6227,12.5064],[35.2153,11.9187],[34.8021,10.8052],[34.4181,10.6735],[34.1132,9.4986],[33.9183,9.5986],[33.8946,10.1882],[33.298,10.7159],[33.1567,11.5649],[33.2446,12.1394],[32.9459,12.2235],[32.3227,11.8954],[32.4186,11.0739],[32.1035,10.7159],[31.2168,9.7703],[30.8069,9.7642],[29.9635,10.2429],[29.6187,10.097],[29.4717,9.7791],[28.977,9.6412],[28.9293,10.1061],[27.9298,10.1398],[27.8156,10.0193],[27.9072,9.6102],[26.5343,9.5362],[25.8244,10.3885],[25.2549,10.3366],[24.7697,9.7561],[24.5255,8.9136],[24.2234,8.6422],[23.5994,8.8147],[23.608,9.9187],[22.8755,10.9314],[22.9543,11.2968],[22.6063,11.6278],[22.3889,12.6326],[21.9575,12.6808],[21.8593,12.8394],[22.2317,13.3473],[22.1293,13.8043],[22.4859,14.1342],[22.4535,14.5476],[22.9335,15.1702],[23.0384,15.6361],[23.941,15.7526],[23.9993,16.1186],[23.9995,17.1753],[24,19.5],[24.0666,19.9725],[24.9765,20.0689],[25,21.6026],[25,22],[33.1826,22.0017],[33.6406,21.7398],[33.9661,21.7899],[34.0865,22.0025],[34.5937,22.003],[36.8825,22.0051],[36.9175,21.6026],[37.1381,21.2085],[37.4135,18.905],[38.5696,18.005]]]},properties:{name:"Sudan"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[20.5486,69.06],[23.4078,68.023],[23.8453,66.837],[23.7656,66.2739],[24.1551,65.816],[24.1623,65.6931],[22.922,65.6743],[22.3981,65.3894],[22.0983,65.442],[21.5436,65.0631],[21.1527,64.7698],[21.2899,64.547],[21.2205,64.2262],[20.1365,63.6328],[19.2865,63.4697],[18.4235,63.0127],[18.3811,62.8492],[17.4629,62.3561],[17.4893,62.137],[17.3451,61.84],[17.4842,61.6791],[17.1739,61.1723],[17.3726,60.6543],[18.6903,60.2312],[19.0245,59.7064],[18.5904,59.049],[17.913,58.8055],[17.5724,58.9509],[17.3896,58.7121],[16.756,58.6265],[16.9569,58.1695],[16.6667,57.9961],[16.7278,57.5476],[16.5007,57.115],[16.7676,56.7915],[16.5072,56.3617],[16.2846,56.5734],[16.0499,56.3219],[15.7826,56.1053],[14.5464,56.0613],[14.1554,55.4493],[13.1754,55.3938],[12.6635,56.0409],[12.8993,56.449],[11.9229,57.5622],[11.4977,57.984],[11.195,58.652],[11.2142,58.9726],[11.4563,58.99],[11.622,58.9296],[11.7167,59.049],[11.8262,59.2378],[11.927,59.7905],[11.8397,59.8408],[12.1495,59.8882],[12.4381,60.0782],[12.5685,60.4347],[12.295,60.9869],[12.6702,61.056],[12.6933,61.4259],[12.1824,61.7672],[12.2994,62.2675],[12.2547,62.331],[12.0525,63.1834],[12.1495,63.4182],[12.2057,63.6188],[12.5221,63.8509],[13.1489,64.0748],[14.0136,64.0734],[14.1092,64.383],[13.8381,64.547],[13.7303,64.6122],[14.326,65.1189],[14.6273,66.0639],[15.454,66.3452],[15.4153,66.5045],[16.3425,67.0642],[16.168,67.4289],[16.7204,67.8874],[17.2661,68.0913],[17.6849,68.0325],[18.0706,68.1372],[18.1259,68.5365],[19.9221,68.3845],[20.3346,69.0186],[20.5486,69.06]]],[[[18.7588,57.2794],[18.2025,56.9712],[18.2209,57.1417],[18.0973,57.2638],[18.1911,57.3863],[18.1109,57.5336],[18.4614,57.8163],[18.7354,57.9249],[19.0979,57.9367],[19.0105,57.7422],[18.8075,57.6524],[18.7588,57.2794]]]]},properties:{name:"Sweden"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[103.723,1.3309],[103.8895,1.394],[103.9327,1.3452],[103.9091,1.2386],[103.832,1.2386],[103.723,1.3309]]]},properties:{name:"Singapore"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-5.4914,-15.9213],[-5.8189,-16.1433],[-5.943,-16.0496],[-5.6955,-15.7865],[-5.4914,-15.9213]]],[[[-9.7092,-40.2449],[-9.7302,-40.4051],[-10.0662,-40.3971],[-10.0977,-40.2569],[-9.8982,-40.1569],[-9.7092,-40.2449]]],[[[-14.1234,-7.9509],[-14.4647,-8.1134],[-14.5561,-7.9362],[-14.3329,-7.7822],[-14.1234,-7.9509]]]]},properties:{name:"Saint Helena, Ascension and Tristan Da Cunha"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[16.5968,46.4759],[16.2421,46.4901],[16.3015,46.3783],[15.8735,46.2793],[15.7915,46.2593],[15.6273,46.086],[15.7064,45.9753],[15.4044,45.7927],[15.3313,45.7629],[15.2264,45.4271],[14.57,45.6729],[14.3909,45.5034],[14.1182,45.4812],[14.1113,45.4823],[13.6513,45.4541],[13.7221,45.595],[13.836,45.5875],[13.9032,45.6358],[13.7847,45.7428],[13.5962,45.8079],[13.5971,45.8195],[13.4969,46.0513],[13.511,46.3484],[13.684,46.4375],[13.7142,46.5227],[14.4345,46.4429],[14.5652,46.3725],[14.6746,46.4507],[15.0651,46.6521],[15.402,46.6535],[15.65,46.7058],[15.7864,46.7075],[15.9962,46.8354],[16.1138,46.8691],[16.3708,46.7222],[16.5968,46.4759]]]},properties:{name:"Slovenia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[43.2137,-22.1543],[43.4715,-21.6025],[44.427,-19.9892],[44.2552,-18.8432],[44.0486,-18.3599],[43.9764,-17.4492],[44.3868,-16.7473],[44.4775,-16.2465],[44.9906,-16.1579],[46.1213,-15.7139],[47.4311,-14.7568],[47.5788,-14.8911],[47.9587,-13.6829],[48.2476,-13.7471],[48.841,-13.2709],[48.8575,-12.48],[49.009,-12.2361],[49.2934,-12.1746],[49.8209,-12.8145],[50.0402,-13.539],[50.4555,-15.3578],[50.1955,-15.928],[49.8548,-15.4876],[49.6896,-15.5414],[49.7518,-16.1579],[49.8396,-16.4548],[49.4612,-17.2579],[49.4847,-17.8103],[49.1547,-18.8432],[48.2422,-21.6025],[47.591,-23.7626],[47.0338,-24.9599],[45.2664,-25.5843],[44.2372,-25.1692],[43.7044,-24.3522],[43.7058,-23.435],[43.2137,-22.1543]]]},properties:{name:"Madagascar"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[171.7561,6.895],[171.546,6.8706],[171.3904,7.1192],[171.6032,7.2327],[171.7561,6.895]]],[[[170.1342,9.2736],[169.9945,9.2386],[169.9067,9.4378],[170.0462,9.5249],[170.3432,9.491],[170.1342,9.2736]]],[[[169.7075,5.813],[169.5108,5.702],[169.4636,5.8357],[169.672,6.1153],[169.8185,6.0168],[169.7075,5.813]]],[[[168.9821,7.4149],[168.8497,7.3168],[168.6817,7.4579],[168.9762,7.7048],[169.057,7.6792],[168.9821,7.4149]]],[[[168.8662,4.5601],[168.661,4.4785],[168.5211,4.6571],[168.587,4.7577],[168.8511,4.7716],[168.8662,4.5601]]],[[[168.2683,5.7334],[168.1779,5.4402],[168.0267,5.4711],[167.9382,5.7812],[168.2683,5.7334]]],[[[166.8366,11.3453],[166.4795,11.3043],[166.5503,11.5014],[166.7992,11.6374],[166.8366,11.3453]]]]},properties:{name:"Marshall Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.9276,41.3385],[22.8792,41.3407],[22.3321,41.1203],[22.2162,41.1705],[21.9294,41.1004],[21.7874,40.9311],[20.9802,40.8557],[20.8378,40.9277],[20.5977,41.092],[20.5017,41.3172],[20.5578,41.5819],[20.5607,41.7331],[20.5629,41.8461],[20.5943,41.8773],[20.9223,42.1087],[21.2127,42.1107],[21.443,42.2349],[21.5869,42.2628],[22.3602,42.3112],[22.5104,42.1552],[22.6425,42.1059],[22.8672,42.0222],[22.9254,41.7331],[22.9683,41.5198],[22.9276,41.3385]]]},properties:{name:"North Macedonia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[4.243,19.1389],[4.2092,17.0347],[3.8653,15.7915],[3.407,15.3552],[1.4597,15.2725],[.9463,14.9749],[.7453,14.9791],[.2293,14.9897],[-.721,15.0452],[-1.7859,14.5221],[-1.8933,14.4694],[-2.1123,14.2218],[-2.6484,14.1311],[-3.4208,13.2926],[-4.1467,13.1869],[-4.5928,12.2275],[-5.2335,11.6898],[-5.5189,10.4333],[-6.0283,10.3127],[-6.3759,10.6631],[-6.9796,10.2777],[-7.5603,10.415],[-7.9785,10.1751],[-8.5566,11.0662],[-8.5611,11.3615],[-9.0923,12.3591],[-10.6468,11.9712],[-11.3138,12.1429],[-11.3795,12.4136],[-11.4311,13.0175],[-11.864,13.4525],[-12.2392,14.7594],[-11.8803,14.8646],[-11.5868,15.5771],[-10.9241,15.1701],[-10.4675,15.4386],[-5.6391,15.5124],[-5.3816,16.0758],[-5.6236,16.7004],[-6.1671,21.5201],[-6.5279,24.9366],[-4.8333,24.9976],[-3.3739,24.0562],[-2.7863,23.6772],[-1.8933,23.1012],[-1.7859,23.0319],[.5578,21.5201],[.7453,21.3959],[.9463,21.2628],[1.235,20.7351],[1.8141,20.3039],[3.182,19.8421],[3.2945,19.0379],[3.407,19.0499],[3.5631,19.0665],[4.243,19.1389]]]},properties:{name:"Mali"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[101.1432,21.5641],[100.9577,21.3822],[100.0853,20.3527],[99.5946,20.2881],[98.8831,19.8187],[98.0265,19.6724],[97.8338,19.3888],[97.7543,18.6525],[97.5345,18.396],[97.7527,17.8227],[98.8009,16.2881],[98.255,14.9941],[99.0747,13.843],[99.161,13.1048],[99.6209,11.8668],[98.7537,10.3893],[98.5412,10.3768],[98.6717,11.3316],[98.5438,12.0993],[98.128,12.304],[98.5626,12.6711],[98.5738,13.0363],[98.1283,13.8448],[97.6984,15.8071],[97.1599,16.8995],[96.9675,16.9794],[95.4334,15.8209],[94.4348,15.964],[94.2838,16.3627],[94.5297,17.5142],[94.3263,18.3094],[93.955,18.8288],[93.715,18.6498],[93.5355,18.7713],[93.7593,19.0141],[93.2491,19.9619],[93.0232,19.9866],[92.697,20.4491],[92.2021,21.1507],[92.3081,21.3804],[92.6238,21.4616],[92.6068,21.9712],[93.1232,22.3714],[93.3872,23.9016],[94.0361,23.9215],[94.2381,24.0841],[95.203,26.5525],[96.1868,27.1873],[96.8989,27.2897],[97.0575,27.7441],[97.3443,27.9963],[97.3471,28.2081],[97.6607,28.4374],[98.0277,28.1945],[98.3001,27.67],[98.6505,27.4662],[98.7586,26.6967],[98.6174,25.8964],[97.6323,24.7947],[97.6624,23.9718],[98.7357,24.0311],[98.9544,23.2538],[99.4242,22.9783],[99.3116,22.1851],[99.8935,22.0023],[100.2985,21.5455],[100.9638,21.6867],[101.1432,21.5641]]]},properties:{name:"Myanmar/Burma"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[116.7209,49.8498],[115.726,48.3132],[115.7462,47.8633],[117.3447,47.7443],[117.8818,47.99],[118.4115,47.9874],[119.5494,47.2549],[119.7421,46.8031],[118.2867,46.7064],[116.9594,46.3931],[115.8268,45.5901],[114.6043,45.3288],[113.6553,44.836],[111.8923,44.9111],[111.5444,44.3827],[111.7456,43.6738],[110.2689,42.7433],[109.382,42.4713],[107.315,42.3929],[106.4412,42.1059],[105.3061,41.7331],[104.9939,41.6306],[104.7319,41.7331],[103.412,41.8982],[101.7629,42.3929],[101.5726,42.45],[100.937,42.6407],[99.3602,42.5821],[96.5054,42.8216],[95.0889,44.3062],[93.6971,44.8837],[92.697,45.042],[90.9154,45.324],[90.7868,45.5843],[90.9625,46.1517],[90.8926,46.7843],[90.0071,47.8003],[89.1233,48.0475],[88.8093,48.1353],[88.164,48.5182],[87.825,49.1833],[88.2913,49.48],[89.1233,49.6048],[89.5277,49.6654],[90.0071,50.0358],[92.4372,50.809],[92.697,50.77],[94.1016,50.5591],[94.7987,50.0463],[97.3304,49.8163],[98.1961,50.2828],[97.9549,51.1391],[98.9786,52.0482],[101.9481,51.3734],[102.4373,50.5965],[103.5057,50.2012],[105.4152,50.4519],[106.5203,50.3292],[107.8553,49.9138],[108.8074,49.3345],[110.9163,49.2007],[112.887,49.5712],[114.3649,50.236],[115.4261,49.9355],[116.2426,49.9903],[116.7209,49.8498]]]},properties:{name:"Mongolia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[113.5331,22.1856],[113.5509,22.2145],[113.5533,22.2032],[113.5643,22.1943],[113.5648,22.1893],[113.559,22.1867],[113.5504,22.1841],[113.5331,22.1856]]]},properties:{name:"Macau"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[145.5548,14.967],[145.6383,15.2891],[145.8721,15.3231],[145.7153,14.9178],[145.5548,14.967]]]},properties:{name:"Northern Mariana Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-4.8333,24.9976],[-6.5279,24.9366],[-6.1671,21.5201],[-5.6236,16.7004],[-5.3816,16.0758],[-5.6391,15.5124],[-10.4675,15.4386],[-10.9241,15.1701],[-11.5868,15.5771],[-11.8803,14.8646],[-12.2392,14.7594],[-13.3922,16.0124],[-14.3668,16.5898],[-16.0689,16.4984],[-16.4217,16.2162],[-16.4,16.3836],[-16.4703,16.1801],[-16.5064,16.0758],[-16.0504,17.922],[-16.1516,18.7368],[-16.4264,19.3425],[-16.2798,20.1715],[-16.8251,20.9275],[-17.0513,20.7716],[-16.825,21.3191],[-13.0576,21.3647],[-13.0409,22.8389],[-12.022,23.6542],[-11.9441,25.882],[-8.8245,26.0382],[-8.6667,27.3127],[-4.8333,24.9976]]]},properties:{name:"Mauritania"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-62.2655,16.7143],[-62.2094,16.8665],[-62.1283,16.7441],[-62.1209,16.6755],[-62.1879,16.6416],[-62.2655,16.7143]]]},properties:{name:"Montserrat"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[14.6459,35.9333],[14.4334,35.717],[14.234,35.8815],[14.4119,36.0669],[14.6459,35.9333]]],[[[14.3482,36.0308],[14.2622,36.0067],[14.1727,36.0691],[14.2307,36.0879],[14.3482,36.0308]]]]},properties:{name:"Malta"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[59.9207,-16.6311],[59.8305,-16.7145],[59.6371,-16.6882],[59.5469,-16.5925],[59.5469,-16.3777],[59.8079,-16.5168],[59.9207,-16.6311]]],[[[57.8201,-20.2272],[57.6806,-20.4906],[57.295,-20.474],[57.352,-20.2886],[57.6029,-19.9678],[57.8201,-20.2272]]],[[[56.6337,-10.3004],[56.4859,-10.3535],[56.2872,-10.0508],[56.5007,-9.9448],[56.6337,-10.3004]]]]},properties:{name:"Mauritius"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[73.71,2.9097],[73.5532,2.8675],[73.532,3.0986],[73.5768,3.3129],[73.7724,3.1829],[73.71,2.9097]]],[[[73.6138,1.915],[73.5132,1.897],[73.4939,1.951],[73.5489,2.3858],[73.7555,2.2028],[73.6138,1.915]]],[[[73.5107,5.8299],[73.2603,5.6292],[73.129,5.8511],[73.4245,6.0007],[73.5107,5.8299]]],[[[73.45,.5286],[73.2334,.3392],[73.0536,.5433],[73.1494,.6307],[73.4418,.6343],[73.45,.5286]]],[[[73.2809,-.8992],[73.1341,-.9461],[73.1042,-.8786],[72.9709,-.578],[73.2311,-.578],[73.2778,-.8786],[73.2809,-.8992]]],[[[73.1135,6.9997],[72.9024,6.8634],[72.682,7.1261],[72.8867,7.2046],[73.1135,6.9997]]],[[[73.0821,5.4272],[72.9394,5.228],[72.8077,5.509],[73.1022,5.709],[73.0821,5.4272]]]]},properties:{name:"Maldives"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.9596,-11.5733],[34.6477,-11.683],[34.4272,-12.1589],[34.59,-13.2477],[35.1871,-13.8221],[35.8884,-14.9206],[35.7988,-15.8783],[35.3313,-16.3299],[35.2071,-16.8302],[34.6506,-16.4046],[34.3592,-15.9208],[34.5628,-15.1596],[34.4393,-14.5468],[33.6496,-14.4564],[33.2422,-13.9985],[32.8162,-13.5758],[33.0256,-12.7461],[33.4181,-12.4294],[33.2902,-10.9113],[33.6324,-10.4637],[32.9535,-9.4014],[34.1574,-9.6216],[34.4913,-10.0245],[34.6491,-10.9113],[34.9596,-11.5733]]]},properties:{name:"Malawi"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-86.7243,20.493],[-87.0304,20.1789],[-87.0877,20.3151],[-86.9277,20.629],[-86.7243,20.493]]],[[[-97.1461,25.9561],[-97.6605,24.9927],[-97.7995,22.4507],[-97.1874,20.7668],[-96.2089,19.3064],[-95.5126,18.7465],[-94.334,18.242],[-92.3658,18.6267],[-91.525,18.57],[-91.0362,19.0664],[-90.7911,19.3481],[-90.1713,21.0539],[-90.0133,21.0954],[-89.6593,21.1884],[-89.435,21.2474],[-88.205,21.5705],[-87.0275,21.4897],[-86.8074,21.1134],[-87.4043,20.1524],[-87.7328,18.6498],[-87.837,18.4743],[-88.1012,18.6276],[-88.2278,18.4563],[-88.3168,18.4888],[-89.147,17.8095],[-89.435,17.8032],[-89.6593,17.7984],[-90.0133,17.7907],[-90.9613,17.6841],[-91.1617,17.0796],[-90.4981,16.2084],[-91.8002,15.8454],[-92.1126,15.2942],[-92.2313,14.5333],[-93.9772,15.9773],[-94.8804,16.1769],[-96.7674,15.7411],[-100.8916,17.2207],[-101.9017,17.8987],[-103.0395,18.2055],[-104.8583,19.2912],[-105.5735,20.2491],[-105.2503,21.2477],[-105.5393,22.2618],[-108.3362,25.2414],[-109.303,25.748],[-109.4406,26.6009],[-110.468,27.2919],[-110.7126,27.8157],[-112.0317,28.8587],[-112.4559,28.8865],[-112.4243,29.4301],[-113.2073,31.1889],[-113.8855,31.5756],[-114.7204,31.7052],[-114.8459,31.1849],[-114.6152,30.2489],[-112.9819,28.4931],[-112.6547,27.7506],[-111.6015,26.6305],[-111.2092,25.7112],[-110.6464,24.9759],[-110.631,24.3806],[-109.8852,24.029],[-109.5568,23.5705],[-109.5387,23.2777],[-109.7247,23.0591],[-110.026,23.0347],[-110.4614,23.6254],[-112.1424,24.7711],[-112.0994,25.6934],[-112.2911,26.0556],[-113.1841,26.7169],[-114.0845,27.0565],[-114.735,27.6012],[-114.1474,27.8024],[-114.1633,28.5421],[-115.6737,29.8209],[-117.1236,32.5346],[-115.002,32.6693],[-110.9234,31.3386],[-108.5185,31.3352],[-107.9988,31.7599],[-106.4688,31.7164],[-104.9579,30.5767],[-104.4209,29.6204],[-103.4137,29.0808],[-103.0936,29.1084],[-102.5338,29.7138],[-101.3814,29.6713],[-100.7311,29.1117],[-100.2721,28.305],[-99.5889,27.5721],[-99.0549,26.4642],[-98.2152,26.0797],[-97.1461,25.9561]]],[[[-89.5916,22.6071],[-89.7403,22.3668],[-89.9653,22.3878],[-89.835,22.6266],[-89.6579,22.7248],[-89.5916,22.6071]]],[[[-113.1275,29.2853],[-113.193,29.0258],[-113.5937,29.4303],[-113.4045,29.5082],[-113.3401,29.2956],[-113.1275,29.2853]]],[[[-115.0844,28.2245],[-115.138,27.9482],[-115.4617,28.034],[-115.1849,28.3096],[-115.0844,28.2245]]]]},properties:{name:"Mexico"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[117.8959,4.1667],[117.7554,4.1668],[117.0734,4.3762],[115.8436,4.3193],[115.4801,3.1051],[115.1395,2.8234],[115.1387,2.4688],[114.8113,2.2131],[114.8213,1.9271],[114.5414,1.4939],[113.6416,1.2735],[112.5607,1.5663],[112.1786,1.2951],[111.7875,.9963],[110.4947,.905],[109.7189,1.6007],[109.643,2.076],[109.8927,1.7452],[110.931,1.5752],[111.2899,2.6103],[111.3616,2.7531],[112.1786,2.9376],[112.9749,3.193],[114.0715,4.5889],[114.6759,4.1459],[114.8561,4.647],[115.1809,4.6253],[115.1546,4.9128],[115.4643,5.0522],[115.5133,5.4198],[115.9276,5.7279],[116.6864,6.8434],[117.2094,6.8787],[117.5639,6.5633],[117.7781,5.9958],[119.1523,5.2991],[118.9874,5.0505],[118.2168,4.9102],[118.2273,4.7465],[118.6761,4.4497],[117.8959,4.1667]]],[[[117.4104,7.2793],[117.0352,7.0492],[116.9808,7.2621],[117.1402,7.3915],[117.4104,7.2793]]],[[[102.091,6.2409],[103.2234,5.1722],[103.4637,4.5054],[103.4749,2.9794],[103.8553,2.5039],[104.241,1.5689],[104.1831,1.4124],[103.7262,1.4425],[103.4985,1.3149],[103.3195,1.5544],[102.1602,2.2308],[101.3433,2.8563],[101.1733,3.3788],[100.6182,4.2201],[100.5967,4.791],[100.4296,5.2091],[100.2362,5.3984],[100.2982,5.9874],[100.1213,6.4217],[100.2294,6.6479],[100.7624,6.4231],[101.0625,6.1551],[101.1972,5.6487],[101.4768,5.8798],[101.8326,5.8096],[102.091,6.2409]]],[[[99.9522,6.3149],[99.7176,6.1649],[99.6681,6.3568],[99.8637,6.4716],[99.9522,6.3149]]]]},properties:{name:"Malaysia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[32.8915,-26.8583],[32.1337,-26.835],[31.9821,-25.952],[31.9765,-24.3034],[31.3113,-22.4177],[32.1429,-21.5651],[32.9546,-19.9683],[32.7663,-18.9699],[33.0077,-18.2738],[33.0194,-17.3795],[32.8225,-16.6907],[31.1972,-16.04],[30.5713,-15.9585],[30.4183,-15.6176],[30.3073,-14.9824],[31.8523,-14.4588],[33.2422,-13.9985],[33.6496,-14.4564],[34.4393,-14.5468],[34.5628,-15.1596],[34.3592,-15.9208],[34.6506,-16.4046],[35.2071,-16.8302],[35.3313,-16.3299],[35.7988,-15.8783],[35.8884,-14.9206],[35.1871,-13.8221],[34.59,-13.2477],[34.4272,-12.1589],[34.6477,-11.683],[34.9596,-11.5733],[35.8549,-11.4522],[36.4576,-11.7048],[37.4237,-11.6577],[37.9279,-11.3183],[38.5264,-11.3686],[39.7605,-10.9113],[40.3944,-10.5107],[40.5415,-10.5884],[40.5174,-10.9113],[40.3936,-11.4514],[40.6121,-12.3398],[40.5476,-13.5827],[40.7767,-14.9679],[39.9336,-16.3334],[39.032,-16.9959],[37.2608,-17.7392],[36.2902,-18.8289],[35.787,-19.0561],[34.8284,-19.8782],[34.729,-20.4597],[34.9977,-20.7831],[35.2559,-21.6023],[35.5255,-22.3972],[35.4795,-24.1018],[35.027,-24.6372],[33.7149,-25.1251],[32.9295,-25.5292],[32.6816,-25.8667],[32.648,-26.0849],[32.9086,-26.4004],[32.8915,-26.8583]]]},properties:{name:"Mozambique"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[23.4299,-17.6345],[24.5991,-17.4938],[25.2628,-17.7914],[24.3074,-18.0188],[23.668,-18.4216],[23.1849,-18.0102],[21.7196,-18.256],[21.463,-18.3043],[20.9999,-18.3196],[20.9995,-20.1422],[20.9994,-20.5666],[20.9993,-20.8507],[20.9992,-21.4074],[20.9991,-21.6023],[20.9363,-21.9709],[20.0143,-22.0939],[19.9995,-24.752],[19.9434,-28.4086],[19.162,-28.9253],[18.2081,-28.8908],[17.4762,-28.6959],[17.32,-28.29],[17.0144,-28.0716],[16.4556,-28.6347],[15.7299,-27.9936],[15.254,-27.1958],[14.8631,-25.7884],[14.8279,-25.004],[14.485,-24.1025],[14.4948,-22.5568],[13.8909,-21.6023],[12.5735,-19.1047],[11.9214,-18.2655],[11.7509,-17.2525],[13.2413,-16.9985],[14.0264,-17.3778],[18.2636,-17.3914],[19.0299,-17.8279],[21.7196,-17.9666],[23.4299,-17.6345]]]},properties:{name:"Namibia"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[172.1671,-22.2252],[172.2382,-22.5566],[171.9814,-22.5296],[171.943,-22.2584],[172.1671,-22.2252]]],[[[168.1442,-21.6031],[167.9749,-21.6829],[167.8474,-21.5987],[167.7974,-21.368],[168.1463,-21.453],[168.1442,-21.6031]]],[[[167.4577,-21.0543],[167.3421,-21.1873],[167.0069,-20.9174],[167.1424,-20.7425],[167.303,-20.7355],[167.2589,-20.9079],[167.4577,-21.0543]]],[[[166.9325,-22.1296],[166.9472,-22.3244],[166.2347,-22.1604],[164.9671,-21.3204],[164.1152,-20.265],[164.1871,-20.2119],[164.5396,-20.3357],[166.9325,-22.1296]]],[[[163.6947,-19.9618],[163.5126,-19.9923],[163.5123,-19.8762],[163.7564,-19.5852],[163.8436,-19.7765],[163.7931,-19.8762],[163.6947,-19.9618]]],[[[163.2525,-18.483],[163.202,-18.694],[162.8579,-18.4238],[163.0713,-18.3063],[163.2525,-18.483]]],[[[158.6014,-19.9746],[158.2371,-20.043],[158.1715,-19.9178],[158.4364,-19.7314],[158.6014,-19.9746]]]]},properties:{name:"New Caledonia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[14.9984,22.9972],[15.1963,21.6026],[15.9427,20.3452],[15.6327,19.025],[15.5004,16.9853],[14.3535,15.68],[13.5373,14.4407],[13.6346,13.7107],[12.398,13.123],[10.7545,13.3442],[9.3565,12.8289],[7.9448,13.2833],[6.9574,13.0844],[6.3889,13.5974],[5.7132,13.8248],[4.8269,13.7524],[4.184,13.4108],[3.6932,12.4497],[3.5631,11.7331],[3.407,11.8673],[2.8313,12.3625],[2.4326,12.2297],[2.4051,11.8998],[2.1412,12.269],[2.1167,12.6689],[1.5993,12.6512],[1.0371,13.0366],[.9463,13.5898],[.7453,13.7626],[.4331,14.031],[.1942,14.5692],[.2293,14.9897],[.7453,14.9791],[.9463,14.9749],[1.4597,15.2725],[3.407,15.3552],[3.8653,15.7915],[4.2092,17.0347],[4.243,19.1389],[5.8191,19.4689],[7.4448,20.8222],[8.7142,21.6026],[11.9985,23.5127],[13.4242,23.1955],[14.1827,22.692],[14.9984,22.9972]]]},properties:{name:"Niger"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[167.7712,-28.9017],[168.1835,-29.0073],[168.0342,-29.1822],[167.7824,-29.1318],[167.7712,-28.9017]]]},properties:{name:"Norfolk Island"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[13.6346,13.7107],[14.0854,13.0781],[14.2342,12.4916],[14.6064,12.1066],[14.5709,11.6606],[13.6915,10.8135],[12.7578,8.8108],[12.2559,8.3308],[11.7815,7.0341],[11.3091,6.5958],[10.6677,6.9687],[10.0174,6.8872],[8.9762,5.9087],[8.5638,4.8182],[8.1918,4.5512],[6.1424,4.2937],[5.645,4.6124],[5.3273,5.3255],[4.5444,6.2784],[3.8834,6.425],[3.5631,6.4115],[3.407,6.405],[2.7094,6.3757],[2.7788,8.8841],[3.407,9.7552],[3.5493,9.9526],[3.7869,10.624],[3.5631,11.7331],[3.6932,12.4497],[4.184,13.4108],[4.8269,13.7524],[5.7132,13.8248],[6.3889,13.5974],[6.9574,13.0844],[7.9448,13.2833],[9.3565,12.8289],[10.7545,13.3442],[12.398,13.123],[13.6346,13.7107]]]},properties:{name:"Nigeria"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-83.6929,10.9389],[-83.9461,10.7432],[-84.6235,11.0333],[-85.6948,11.0803],[-87.6309,12.9115],[-87.3121,12.9829],[-86.7646,13.3165],[-86.6936,13.744],[-85.3235,14.1899],[-84.9132,14.7538],[-84.4054,14.6387],[-83.145,14.9981],[-83.5184,13.6278],[-83.5441,12.4635],[-83.8427,11.3267],[-83.6929,10.9389]]]},properties:{name:"Nicaragua"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[6.021,50.7543],[5.8191,50.7146],[5.6876,50.8119],[5.7661,51.0087],[5.7983,51.0599],[5.5663,51.2208],[5.2377,51.2616],[5.1022,51.429],[4.7599,51.5025],[4.6695,51.4264],[4.2796,51.376],[4.2437,51.3747],[3.6874,51.5167],[3.8391,51.7583],[4.1278,52.0005],[4.198,52.0541],[4.3742,52.1871],[4.4938,52.3283],[4.5606,52.4374],[4.6097,52.5734],[4.6491,52.7562],[4.7639,53.2074],[5.1644,53.0009],[5.4112,53.1517],[5.5199,53.255],[5.877,53.3821],[6.1913,53.4109],[6.4492,53.4229],[6.8749,53.408],[7.0981,53.255],[7.2089,53.2431],[7.2028,53.1133],[7.0927,52.8382],[7.0062,52.6388],[6.7097,52.6278],[6.6979,52.4863],[7.0041,52.3996],[7.0657,52.2414],[6.7605,52.1186],[6.6817,51.9324],[6.4078,51.8281],[6.1678,51.9008],[5.9532,51.7478],[6.2244,51.365],[6.0727,51.2426],[6.1748,51.1845],[5.8771,51.0321],[6.0869,50.9131],[6.021,50.7543]]],[[[3.3658,51.3698],[4.2348,51.3483],[3.9777,51.2251],[3.8563,51.2111],[3.3807,51.2743],[3.3658,51.3698]]]]},properties:{name:"Netherlands"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[30.8654,69.7596],[30.9297,69.6195],[30.8426,69.5422],[30.2617,69.6417],[30.0753,69.4717],[29.6453,69.3474],[28.8967,69.0426],[29.1537,69.588],[27.7472,70.0602],[26.0763,69.7256],[25.638,68.9632],[25.012,68.6429],[24.0289,68.7802],[23.0757,68.6756],[21.9836,69.0729],[21.6919,69.2348],[21.5888,69.2786],[21.3103,69.3065],[21.0332,69.2348],[20.5486,69.06],[20.3346,69.0186],[19.9221,68.3845],[18.1259,68.5365],[18.0706,68.1372],[17.6849,68.0325],[17.2661,68.0913],[16.7204,67.8874],[16.168,67.4289],[16.3425,67.0642],[15.4153,66.5045],[15.454,66.3452],[14.6273,66.0639],[14.326,65.1189],[13.7303,64.6122],[13.8381,64.547],[14.1092,64.383],[14.0136,64.0734],[13.1489,64.0748],[12.5221,63.8509],[12.2057,63.6188],[12.1495,63.4182],[12.0525,63.1834],[12.2547,62.331],[12.2994,62.2675],[12.1824,61.7672],[12.6933,61.4259],[12.6702,61.056],[12.295,60.9869],[12.5685,60.4347],[12.4381,60.0782],[12.1495,59.8882],[11.8397,59.8408],[11.927,59.7905],[11.8262,59.2378],[11.7167,59.049],[11.622,58.9296],[11.4563,58.99],[11.4085,59.049],[10.9111,59.0499],[10.6697,59.448],[10.502,59.7816],[10.5301,59.5794],[10.3241,59.691],[10.447,59.4335],[10.4489,59.1292],[10.2051,59.0038],[9.8392,59.0442],[9.2921,58.7823],[8.889,58.4734],[8.1852,58.1429],[7.2885,57.9989],[6.4384,58.2907],[5.5556,58.7508],[5.5115,59.0063],[5.7563,59.2668],[5.6747,59.574],[5.8523,59.6292],[5.6053,59.7698],[5.5356,59.4677],[5.5429,59.3359],[5.2682,59.1639],[5.2432,59.4677],[4.9588,60.3744],[5.126,60.8317],[4.6278,60.9062],[4.8476,61.2295],[4.8928,61.7154],[5.1509,61.8975],[5.1092,62.1405],[5.4796,61.9843],[5.4364,62.1798],[5.7295,62.1712],[6.2456,62.6269],[7.004,62.9534],[7.6824,62.9924],[7.8809,63.4079],[8.6235,63.3851],[8.3296,63.5338],[8.3801,63.6655],[8.889,63.6323],[9.0465,63.5245],[9.7046,63.6577],[9.9284,64.0215],[10.7295,64.4134],[11.0527,64.6068],[11.0773,64.9574],[12.1396,65.0203],[12.0265,65.6489],[12.3307,66.1444],[12.8026,66.4914],[13.0668,66.4101],[13.2066,66.746],[13.6302,67.0023],[14.1927,67.1709],[14.7901,67.8194],[15.7675,68.1432],[15.6182,68.3187],[14.5495,68.283],[14.6388,68.713],[15.8247,69.1515],[15.9768,68.7925],[16.4767,68.9513],[17.1721,68.7446],[17.0086,69.3203],[18.5131,69.7278],[18.8896,70.088],[19.7581,70.0822],[19.8665,69.8299],[20.4595,69.7886],[20.6753,70.0573],[21.1304,69.9502],[21.489,70.1871],[22.3418,70.2529],[22.9628,70.6847],[23.7409,70.6295],[25.5574,70.9647],[25.6335,70.556],[27.8602,70.9848],[28.4654,70.7187],[29.2455,70.7613],[30.3277,70.5198],[30.4967,70.2885],[30.1455,69.9302],[30.8654,69.7596]]],[[[24.3547,70.8951],[24.0672,70.8887],[24.018,71.1137],[24.2857,71.1782],[24.3547,70.8951]]],[[[14.0206,68.1948],[13.4925,68.0436],[13.3644,68.1188],[13.9204,68.3658],[14.0206,68.1948]]],[[[13.2331,68.002],[13.0289,67.7984],[12.8363,67.8951],[13.0927,68.1817],[13.2331,68.002]]],[[[9.1976,64.0278],[9.0578,63.8197],[8.6588,63.8945],[8.7361,64.0097],[9.1976,64.0278]]]]},properties:{name:"Norway"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[88.1351,27.8819],[88.0432,27.206],[88.1704,26.852],[88.0627,26.484],[87.4011,26.3831],[87.0575,26.4379],[85.2178,26.8066],[84.2444,27.4339],[83.0809,27.4663],[80.3067,28.7183],[80.1928,28.9158],[80.4172,29.7013],[81.0369,30.2028],[81.1786,30.0816],[81.4846,30.4064],[81.7779,30.3959],[83.2769,29.5084],[83.6232,29.2272],[84.0841,29.255],[84.5559,28.7241],[85.1125,28.6226],[85.1957,28.3587],[85.6902,28.2767],[86.0082,27.9649],[86.6441,28.0606],[87.0575,27.9138],[87.2191,27.8565],[88.1351,27.8819]]]},properties:{name:"Nepal"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[166.7442,-.5586],[166.9388,-.3275],[167.1234,-.4761],[166.8652,-.7265],[166.7442,-.5586]]]},properties:{name:"Nauru"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-170.0501,-19.0977],[-169.8976,-18.8573],[-169.6837,-19.0626],[-169.8271,-19.2469],[-170.0501,-19.0977]]]},properties:{name:"Niue"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.5668,49.0884],[22.3828,48.8623],[22.3336,48.7016],[22.1758,48.5744],[22.1553,48.4034],[22.1211,48.3783],[21.4106,48.5497],[20.4639,48.464],[20.0519,48.1677],[19.0143,48.0777],[18.9284,48.0568],[18.7602,47.9145],[18.8485,47.8182],[17.8939,47.7395],[17.7054,47.759],[17.2474,48.012],[17.1608,48.0067],[17.0667,48.1187],[16.9762,48.1722],[16.8511,48.4386],[16.9498,48.5358],[16.9403,48.6172],[17.3967,48.8133],[17.6469,48.8543],[18.3224,49.3151],[18.4036,49.3967],[18.8516,49.5172],[19.1237,49.4201],[19.4674,49.6138],[19.8839,49.2042],[20.1365,49.278],[20.6149,49.4178],[21.3977,49.4338],[22.5668,49.0884]]]},properties:{name:"Slovakia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-10.282,8.488],[-10.6672,7.7454],[-11.4975,6.9234],[-12.7133,7.5119],[-12.9538,8.1236],[-13.2316,8.3453],[-13.3027,9.0404],[-13.0138,9.1406],[-12.4355,9.8266],[-11.3001,9.9887],[-10.7248,9.3546],[-10.5221,8.6984],[-10.5938,8.3973],[-10.282,8.488]]]},properties:{name:"Sierra Leone"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[12.453,43.8945],[12.4504,43.8972],[12.47,43.973],[12.4931,43.9069],[12.4874,43.8965],[12.4688,43.8966],[12.4624,43.8938],[12.453,43.8945]]]},properties:{name:"San Marino"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-12.2392,14.7594],[-11.864,13.4525],[-11.4311,13.0175],[-11.3795,12.4136],[-12.4334,12.3458],[-13.2641,12.649],[-13.7083,12.6762],[-15.1085,12.6633],[-16.7074,12.3386],[-16.747,13.0637],[-16.1395,13.1667],[-15.8577,13.1872],[-15.8026,13.3348],[-15.3101,13.3781],[-15.102,13.5695],[-14.5538,13.3348],[-14.383,13.2445],[-14.2079,13.2305],[-14.0997,13.2862],[-13.8396,13.3348],[-13.9619,13.512],[-15.0767,13.7903],[-16.1395,13.5914],[-16.5068,13.5909],[-17.2351,14.6308],[-17.4539,14.7405],[-17,15.1117],[-16.5087,16.0573],[-16.5006,16.0601],[-16.4217,16.2162],[-16.0689,16.4984],[-14.3668,16.5898],[-13.3922,16.0124],[-12.2392,14.7594]]]},properties:{name:"Senegal"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[41.5645,-1.6558],[41.0554,-.8786],[41.0171,2.6734],[41.9101,3.9823],[42.8138,4.301],[43.4741,4.7993],[44.9162,4.9368],[45.2923,5.2367],[45.4747,5.4241],[45.6126,5.5657],[47.8524,7.9151],[46.9411,8.0224],[45.6126,8.4674],[43.9589,9.0545],[42.9804,10.0644],[42.7628,10.7159],[42.9681,10.9974],[43.2603,11.4606],[44.0533,10.616],[44.6392,10.4017],[45.6371,10.7459],[46.5238,10.7437],[47.4038,11.1335],[49.3662,11.336],[50.8088,11.9173],[51.2139,11.6403],[51.1329,10.6053],[50.7576,9.3318],[48.4946,5.297],[47.6689,4.166],[45.7523,2.3236],[44.4979,1.493],[43.1674,.252],[42.9729,.0707],[42.1985,-.8786],[41.5645,-1.6558]]]},properties:{name:"Somalia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-54.0056,5.6025],[-54.298,5.2363],[-54.4353,4.386],[-54.0163,3.5593],[-54.326,2.588],[-54.5879,2.3221],[-55.0333,2.5492],[-55.8909,2.4178],[-56.0897,1.9331],[-56.4774,1.9459],[-57.0218,2.6002],[-57.3197,3.3177],[-57.786,3.6417],[-58.0157,4.0688],[-57.8536,4.8346],[-57.3549,5.0511],[-57.2815,5.2363],[-57.134,5.8374],[-56.8909,5.9852],[-56.0947,5.8443],[-55.5568,5.9977],[-54.2265,5.8741],[-54.0056,5.6025]]]},properties:{name:"Suriname"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.1132,9.4986],[34.0937,8.6026],[33.8204,8.4168],[33.2485,8.381],[33.0448,7.899],[33.7557,7.6074],[34.5428,6.7418],[34.9588,6.4537],[35.0325,5.8494],[35.3235,5.413],[35.8294,5.2367],[35.9477,4.62],[35.5088,4.62],[35.2489,4.9563],[34.5428,4.7504],[34.3785,4.62],[33.9945,4.2144],[33.4753,3.7622],[32.973,3.8481],[32.3907,3.7291],[32.0987,3.5511],[31.8199,3.7886],[31.5619,3.6758],[31.2097,3.7851],[30.9998,3.6956],[30.8545,3.4875],[29.7103,4.5969],[28.3376,4.3157],[27.4436,5.0194],[27.1693,5.6776],[26.6049,6.0962],[26.29,6.6847],[25.4062,7.3523],[24.9801,8.016],[24.321,8.3317],[24.2234,8.6422],[24.5255,8.9136],[24.7697,9.7561],[25.2549,10.3366],[25.8244,10.3885],[26.5343,9.5362],[27.9072,9.6102],[28.0981,9.3663],[28.5512,9.3479],[28.977,9.6412],[29.4717,9.7791],[29.6187,10.097],[29.9635,10.2429],[30.8069,9.7642],[31.2168,9.7703],[32.1035,10.7159],[32.4186,11.0739],[32.3227,11.8954],[32.9459,12.2235],[33.2446,12.1394],[33.1567,11.5649],[33.298,10.7159],[33.8946,10.1882],[33.9183,9.5986],[34.1132,9.4986]]]},properties:{name:"South Sudan"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[6.4432,.2468],[6.6142,.4337],[6.7711,.2443],[6.5052,-.0085],[6.4432,.2468]]]},properties:{name:"São Tomé and Príncipe"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-87.8057,13.3959],[-87.8115,13.3603],[-88.2278,13.1624],[-89.435,13.5306],[-89.6593,13.5991],[-90.0133,13.7071],[-90.1243,13.7409],[-90.0133,13.8384],[-89.6593,14.1495],[-89.435,14.3466],[-89.3532,14.4185],[-88.5397,13.9656],[-87.8678,13.8204],[-87.8057,13.3959]]]},properties:{name:"El Salvador"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-63.189,18.0113],[-63.0744,18.1233],[-62.997,18.0851],[-62.9939,18.0051],[-63.1006,17.9691],[-63.189,18.0113]]]},properties:{name:"Sint-Maarten"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[42.3557,37.108],[41.3313,36.384],[41.3561,35.6375],[41.0138,34.4548],[38.7925,33.3747],[36.8551,32.3662],[35.6716,32.6911],[35.6244,33.2423],[36.5688,34.2017],[36.4058,34.578],[35.9756,34.6334],[35.7849,35.5954],[35.9168,35.9285],[36.2014,35.8768],[36.6168,36.2635],[36.66,36.8332],[36.6788,36.8327],[37.16,36.6767],[37.5855,36.7038],[38.0476,36.8456],[39.2161,36.6749],[40.226,36.9014],[40.7628,37.096],[41.6633,37.1029],[42.1596,37.2329],[42.3557,37.108]]]},properties:{name:"Syria"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[31.9821,-25.952],[32.1337,-26.835],[31.94,-27.2766],[31.5496,-27.3065],[31.2284,-27.2042],[30.8609,-26.7714],[30.9531,-26.2532],[31.338,-25.8256],[31.9821,-25.952]]]},properties:{name:"Eswatini"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-71.487,21.2881],[-71.6267,21.0124],[-71.8048,21.3111],[-71.6644,21.4721],[-71.487,21.2881]]],[[[-71.6517,21.7242],[-71.7664,21.6609],[-72.121,21.9314],[-71.9244,22.0401],[-71.6517,21.7242]]]]},properties:{name:"Turks and Caicos Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[24,19.5],[23.9995,17.1753],[23.9993,16.1186],[23.941,15.7526],[23.0384,15.6361],[22.9335,15.1702],[22.4535,14.5476],[22.4859,14.1342],[22.1293,13.8043],[22.2317,13.3473],[21.8593,12.8394],[21.9575,12.6808],[22.3889,12.6326],[22.6063,11.6278],[22.9543,11.2968],[22.8755,10.9314],[22.4744,10.9768],[21.7863,10.7159],[21.6697,10.3052],[20.7327,9.3974],[20.3063,9.1517],[18.9757,8.9098],[19.0457,8.6058],[18.5893,8.0831],[17.6801,7.9654],[16.883,7.591],[16.5651,7.8021],[15.8854,7.4815],[15.5075,7.5275],[15.2028,8.553],[14.6321,8.9454],[14.0726,9.6656],[14.3073,9.9856],[15.5186,10.0058],[15.1229,10.7159],[15.11,11.7138],[14.8196,12.5718],[14.4197,13.0406],[14.0854,13.0781],[13.6346,13.7107],[13.5373,14.4407],[14.3535,15.68],[15.5004,16.9853],[15.6327,19.025],[15.9427,20.3452],[15.1963,21.6026],[14.9984,22.9972],[16.1947,23.3281],[24,19.5]]]},properties:{name:"Chad"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[77.6118,-38.6497],[77.7596,-38.8443],[77.4076,-38.8389],[77.3545,-38.6388],[77.4064,-38.5375],[77.6118,-38.6497]]],[[[69.1051,-48.7638],[69.4074,-48.9438],[69.4856,-48.8566],[69.7606,-49.173],[70.1501,-49.1668],[70.3549,-49.0702],[70.5111,-49.1506],[70.5015,-49.329],[70.1817,-49.4662],[70.2855,-49.622],[70.1501,-49.6958],[69.4856,-49.6459],[68.8324,-49.6715],[68.7849,-49.0072],[69.1051,-48.7638]]],[[[50.5593,-46.352],[50.6421,-46.5809],[50.2171,-46.4718],[50.1557,-46.3267],[50.5593,-46.352]]]]},properties:{name:"French Southern and Antarctic Lands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[.9122,10.9965],[.8005,10.6685],[.7968,10.3989],[.9463,10.2593],[1.3304,9.9647],[1.6158,8.974],[1.5719,6.8296],[1.7479,6.3304],[1.6287,6.2345],[1.1996,6.1124],[.9463,6.333],[.7453,6.6207],[.57,6.8716],[.6206,8.2206],[.3087,10.2935],[-.0713,10.6685],[-.142,11.139],[.7453,11.019],[.9122,10.9965]]]},properties:{name:"Togo"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[105.2001,14.3427],[103.1615,14.3049],[102.4114,13.5271],[102.3986,13.1639],[102.5082,13.006],[102.524,12.6873],[102.7756,12.435],[102.7276,12.1572],[102.9011,11.7642],[102.9109,11.6472],[102.6947,11.972],[102.3531,11.8911],[102.3439,12.2567],[101.9368,12.5584],[100.9522,12.7195],[100.8061,13.4329],[100.1981,13.4058],[99.9636,12.155],[99.2679,10.3895],[99.2889,9.4351],[99.8671,9.1319],[100.6558,7.1775],[101.5666,6.7747],[102.091,6.2409],[101.8326,5.8096],[101.4768,5.8798],[101.1972,5.6487],[101.0625,6.1551],[100.7624,6.4231],[100.2294,6.6479],[100.1213,6.4217],[98.8763,8.0211],[98.5966,8.1227],[98.289,7.9949],[98.2418,8.8636],[98.7537,10.3893],[99.6209,11.8668],[99.161,13.1048],[99.0747,13.843],[98.255,14.9941],[98.8009,16.2881],[97.7527,17.8227],[97.5345,18.396],[97.7543,18.6525],[97.8338,19.3888],[98.0265,19.6724],[98.8831,19.8187],[99.5946,20.2881],[100.0853,20.3527],[100.4885,20.1911],[100.5125,19.5883],[101.2249,19.5387],[101.3116,18.9891],[101.179,18.5917],[100.9955,17.6658],[101.1487,17.5228],[101.3548,17.6701],[102.0799,18.1552],[102.7248,17.8976],[103.3719,18.4053],[103.9616,18.2846],[104.7439,17.4068],[104.7661,16.548],[105.3708,15.8632],[105.6101,15.563],[105.5365,14.6777],[105.2001,14.3427]]],[[[100.1835,9.6249],[100.0062,9.3116],[99.8344,9.4273],[99.8581,9.6438],[100.1835,9.6249]]]]},properties:{name:"Thailand"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[70.9676,40.2285],[70.6555,40.0502],[70.5257,40.0502],[70.0058,40.2165],[69.6253,40.1138],[69.5137,40.0502],[69.3322,39.7854],[69.5209,39.5656],[70.4856,39.5952],[70.8614,39.4289],[71.4569,39.5692],[72.2515,39.2305],[73.4844,39.4679],[73.6582,39.4651],[73.7953,38.664],[74.7852,38.5064],[75.096,37.4764],[74.8899,37.2341],[74.5767,37.4012],[73.8567,37.2769],[73.2944,37.4584],[71.8083,36.7149],[71.4851,36.9595],[71.5235,37.4764],[71.5601,37.8039],[71.3153,37.9763],[71.3126,38.2515],[70.8413,38.4213],[70.2538,37.9541],[70.1791,37.5831],[69.4312,37.4764],[69.2866,37.1431],[68.9042,37.2831],[68.0528,36.9765],[67.8555,37.0629],[67.7787,37.1796],[68.3151,38.2289],[68.0963,38.8623],[67.5335,39.2951],[67.5514,39.5075],[68.456,39.6133],[69.4317,40.6763],[70.4136,40.9551],[70.6152,40.7776],[70.5038,40.3699],[70.9676,40.2285]]]},properties:{name:"Tajikistan"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-172.4922,-8.5781],[-172.501,-8.5845],[-172.5028,-8.5827],[-172.4974,-8.5773],[-172.4922,-8.5781]]],[[[-172.4922,-8.5781],[-172.4886,-8.5744],[-172.4872,-8.5766],[-172.4922,-8.5781]]],[[[-172.4872,-8.5766],[-172.4824,-8.5736],[-172.4765,-8.5715],[-172.4748,-8.5696],[-172.469,-8.5728],[-172.4659,-8.572],[-172.4649,-8.5746],[-172.479,-8.576],[-172.4872,-8.5766]]],[[[-172.4943,-8.5341],[-172.4863,-8.5425],[-172.4782,-8.5496],[-172.4677,-8.557],[-172.4652,-8.5578],[-172.467,-8.5597],[-172.472,-8.5577],[-172.4816,-8.5513],[-172.4901,-8.5422],[-172.4943,-8.5341]]]]},properties:{name:"Tokelau"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[125.0819,-9.4462],[125.1277,-9.0687],[124.95,-8.9581],[125.2317,-8.6243],[126.352,-8.4368],[127.0499,-8.3337],[127.2463,-8.4341],[126.352,-8.9637],[125.0819,-9.4462]]],[[[124.4772,-9.175],[124.3535,-9.3971],[124.045,-9.343],[124.3038,-9.2066],[124.4772,-9.175]]]]},properties:{name:"Timor-Leste"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[66.5537,37.3548],[65.7703,37.4986],[64.8799,37.0996],[64.4207,36.2878],[63.2646,35.8341],[62.7395,35.2921],[62.2905,35.2271],[61.2741,35.6051],[61.0913,36.5821],[60.3349,36.6789],[59.5306,37.1849],[59.3708,37.5063],[58.2749,37.6987],[57.5183,37.9459],[57.2392,38.2153],[56.7141,38.2659],[55.3309,38.0319],[54.7706,37.5063],[54.2432,37.3273],[53.9068,37.3399],[53.8822,37.5063],[53.923,38.9001],[53.198,39.3832],[53.4719,39.5742],[53.4125,39.8629],[52.7581,40.1148],[52.9824,40.878],[53.8494,40.6472],[54.6972,41.0293],[54.1055,41.4865],[53.9561,41.7331],[53.7339,42.0997],[53.046,42.0246],[52.9106,41.7331],[52.7772,41.4461],[52.4614,41.7331],[52.4322,41.7597],[53.0753,42.1059],[53.2532,42.2017],[54.1353,42.3174],[54.6085,42.1059],[54.8453,42.0001],[55.0793,41.7331],[55.4482,41.3123],[56.0006,41.318],[56.7141,41.2841],[56.9976,41.3132],[57.0023,41.7331],[57.2518,42.0348],[57.9738,42.3929],[58.089,42.45],[58.6272,42.717],[59.2965,42.45],[59.4397,42.3929],[59.7804,42.257],[60.1297,41.7331],[60.3327,41.3003],[61.8085,41.1353],[62.6116,39.8876],[65.419,38.3671],[66.5616,38.0044],[66.6138,37.5063],[66.5537,37.3548]]]},properties:{name:"Turkmenistan"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[11.5643,33.1651],[11.5395,32.5327],[11.3188,32.3104],[10.2329,31.5973],[10.234,30.7743],[9.5516,30.2464],[9.0952,31.9812],[8.6877,32.3104],[7.7925,33.2741],[7.5356,33.8878],[8.2407,34.6847],[8.4128,35.1988],[8.3435,36.5284],[8.6421,36.9412],[9.7533,37.2992],[10.1132,37.1835],[10.4177,36.8321],[10.9207,36.8774],[10.5683,36.1102],[10.9916,35.571],[11.0506,35.1702],[10.1311,34.0606],[10.6992,33.6176],[10.9345,33.7902],[11.2219,33.3328],[11.5643,33.1651]]]},properties:{name:"Tunisia"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-173.5961,-15.9317],[-173.8066,-16.1695],[-174.0395,-15.9118],[-173.6904,-15.8471],[-173.5961,-15.9317]]],[[[-173.8699,-18.7001],[-174.0728,-18.8811],[-174.2448,-18.8352],[-174.1979,-18.7018],[-173.8856,-18.5138],[-173.8699,-18.7001]]],[[[-174.9909,-21.1613],[-175.0842,-21.3447],[-175.4439,-21.0636],[-175.2814,-20.9815],[-174.9909,-21.1613]]],[[[-176.0368,-22.4012],[-176.2261,-22.5309],[-176.4144,-22.2532],[-176.1702,-22.1682],[-176.0368,-22.4012]]]]},properties:{name:"Tonga"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[126.6544,37.7888],[126.6641,37.804],[126.6665,37.8173],[126.667,37.8226],[126.6663,37.8283],[126.6658,37.833],[127.159,38.287],[128.0712,38.3378],[128.3613,38.6149],[128.8236,37.8986],[129.0375,37.6816],[129.2009,37.4058],[129.4412,36.9331],[129.5186,35.8656],[129.2023,35.1948],[128.8027,35.0394],[128.5847,34.7469],[127.8148,34.69],[127.7971,34.6856],[127.7819,34.6755],[127.771,34.661],[127.7655,34.6436],[127.7661,34.6254],[127.7727,34.6083],[127.8149,34.5388],[127.6834,34.4943],[127.6286,34.5807],[127.6431,34.5948],[127.6528,34.6075],[127.6584,34.6224],[127.6594,34.6383],[127.6557,34.6538],[127.6476,34.6675],[127.6359,34.6782],[127.6215,34.6851],[127.6057,34.6875],[127.5551,34.6875],[127.5317,34.7142],[127.5178,34.7255],[127.501,34.7317],[127.483,34.732],[127.466,34.7263],[127.4518,34.7154],[127.4419,34.7004],[127.4384,34.6874],[127.395,34.5008],[127.2719,34.5093],[127.2399,34.6875],[127.1611,34.6875],[127.1542,34.6875],[127.1178,34.6875],[127.028,34.5084],[127.0994,34.3339],[127.088,34.3339],[127.0631,34.3339],[127.0502,34.3339],[127.0414,34.3339],[127.0242,34.3339],[126.8984,34.3339],[126.8882,34.3339],[126.878,34.3339],[126.8162,34.3339],[126.7935,34.3339],[126.7802,34.3339],[126.7328,34.3339],[126.7026,34.3339],[126.7026,34.2869],[126.5757,34.1451],[126.521,34.3339],[126.5312,34.6424],[126.5293,34.6585],[126.5227,34.6733],[126.512,34.6854],[126.4982,34.6938],[126.4825,34.6978],[126.4664,34.6969],[126.4512,34.6912],[126.4457,34.6882],[126.4248,34.6875],[126.4171,34.6875],[126.3924,34.6875],[126.3732,34.6875],[126.3459,34.6875],[126.337,34.6875],[126.3086,34.4783],[126.0558,34.4707],[126.0091,34.6089],[125.9164,34.6875],[126.0099,34.6875],[126.0106,34.7026],[126.0106,34.8607],[126.0106,34.897],[126.2126,35.0549],[126.2089,34.9862],[126.2106,34.9701],[126.2169,34.9552],[126.2273,34.9428],[126.2409,34.9341],[126.2564,34.9299],[126.2726,34.9304],[126.2878,34.9357],[126.3008,34.9452],[126.3104,34.9582],[126.3157,34.9735],[126.3846,35.3457],[126.6634,36.0243],[126.3626,36.7223],[126.3601,36.7229],[126.3456,36.7324],[126.3354,36.7451],[126.3294,36.7603],[126.3283,36.7766],[126.3322,36.7925],[126.3406,36.8065],[126.3528,36.8173],[126.7291,37.0602],[126.6911,37.4068],[126.688,37.4117],[126.6798,37.4245],[126.6756,37.4391],[126.6755,37.4497],[126.6726,37.4673],[126.6641,37.4829],[126.651,37.4949],[126.6348,37.5019],[126.6234,37.503],[126.6192,37.5037],[126.615,37.5033],[126.6103,37.5062],[126.6103,37.5109],[126.6105,37.5227],[126.6051,37.5397],[126.5945,37.5539],[126.5798,37.564],[126.5642,37.5679],[126.5587,37.5702],[126.5529,37.5729],[126.5356,37.5776],[126.5254,37.5776],[126.5182,37.5767],[126.503,37.5736],[126.4847,37.5726],[126.4671,37.5778],[126.4523,37.5886],[126.4419,37.6038],[126.4379,37.6125],[126.4287,37.6226],[126.4175,37.6349],[126.4106,37.6503],[126.4011,37.672],[126.3901,37.6818],[126.3879,37.6927],[126.3802,37.6968],[126.3555,37.7012],[126.3486,37.7106],[126.355,37.7214],[126.3556,37.7477],[126.3661,37.7556],[126.3598,37.7633],[126.3568,37.7803],[126.3694,37.7951],[126.3802,37.7993],[126.3802,37.8019],[126.384,37.8008],[126.3915,37.8045],[126.3959,37.8148],[126.4108,37.8171],[126.4302,37.8241],[126.4377,37.8199],[126.442,37.8096],[126.4617,37.8008],[126.4789,37.7866],[126.4895,37.7835],[126.5028,37.7843],[126.5056,37.7812],[126.5075,37.7794],[126.5202,37.7706],[126.5339,37.766],[126.5396,37.7649],[126.5457,37.765],[126.5754,37.7521],[126.6058,37.7526],[126.6229,37.761],[126.6384,37.7747],[126.6423,37.7768],[126.6474,37.7826],[126.6544,37.7888]]],[[[126.6049,33.2413],[126.2812,33.2101],[126.1661,33.2958],[126.3548,33.4663],[126.7281,33.5472],[126.8894,33.4431],[126.7751,33.2958],[126.6049,33.2413]]],[[[126.4848,37.2841],[126.3746,37.0416],[125.871,37.2254],[126.1092,37.1514],[126.249,37.3667],[126.4848,37.2841]]],[[[125.7708,37.6949],[125.8116,37.5285],[125.7133,37.564],[125.7059,37.5666],[125.6918,37.5765],[125.6815,37.5903],[125.6762,37.6067],[125.6763,37.6239],[125.6818,37.6403],[125.6922,37.654],[125.7065,37.6637],[125.7708,37.6949]]]]},properties:{name:"South Korea"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[47.9591,30.0038],[48.3365,29.7801],[47.882,29.4296],[48.0921,29.2944],[48.4333,28.5314],[47.7643,28.5452],[47.4177,28.9797],[46.553,29.1012],[47.2144,30.0133],[47.9591,30.0038]]]},properties:{name:"Kuwait"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-81.5321,19.4131],[-80.982,19.3761],[-81.0083,19.2749],[-81.4641,19.2261],[-81.5321,19.4131]]]},properties:{name:"Cayman Islands"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[87.3126,49.0997],[85.7846,48.2473],[85.3679,47.0945],[84.825,46.9384],[83.0421,47.0395],[82.4415,45.832],[82.375,45.2653],[81.5111,45.2789],[80.2882,44.9512],[80.6646,43.3477],[80.2371,42.3929],[80.2456,42.2209],[79.8198,42.3929],[78.8408,42.7334],[77.0929,42.9409],[75.4801,42.8656],[74.2231,43.1398],[73.7513,43.0076],[73.3125,42.5357],[71.555,42.7757],[71.0385,42.3929],[70.9402,42.2592],[70.6274,42.1059],[69.8741,41.7331],[69.1476,41.3736],[68.4646,40.6663],[67.8782,41.1359],[66.6943,41.3166],[66.5069,41.7331],[66.4486,41.8377],[66.0488,42.1109],[66.0376,42.3929],[65.9536,42.7934],[65.0384,43.6349],[62.0428,43.6178],[60.8103,44.4097],[58.5043,45.4677],[56.1524,44.8265],[56.0252,42.3929],[56.0005,41.7331],[56.0006,41.318],[55.4482,41.3123],[55.0793,41.7331],[54.8453,42.0001],[54.6085,42.1059],[54.1353,42.3174],[53.2532,42.2017],[53.0753,42.1059],[52.4322,41.7597],[52.5391,42.1059],[52.6277,42.3929],[52.626,42.7096],[51.3899,43.2306],[50.465,44.4641],[51.1379,44.5785],[51.0993,44.975],[51.5158,45.3353],[52.7943,45.464],[53.0812,46.215],[52.9723,46.7786],[51.1616,47.0596],[49.2136,46.3332],[48.7942,46.599],[48.8096,46.9554],[48.4852,47.4156],[48.0285,47.6876],[47.2665,47.8148],[46.6827,48.4677],[46.9351,49.7296],[47.446,50.2984],[48.573,49.9575],[48.9207,50.6761],[50.8212,51.6542],[51.5214,51.544],[52.3307,51.6643],[53.2814,51.483],[54.5327,50.6975],[54.9145,50.8104],[55.6774,50.6643],[56.5075,50.972],[58.0642,51.0787],[59.4875,50.6292],[61.1066,50.7718],[61.3457,50.9419],[61.3899,51.3192],[60.2825,51.9603],[60.8386,52.2997],[60.9869,52.8069],[61.6281,53.0971],[61.2404,53.6425],[61.3583,53.9303],[64.8622,54.3622],[65.6722,54.6387],[67.9852,54.952],[69.013,55.3543],[70.7176,55.2085],[71.2665,54.2568],[73.1022,54.0044],[73.6202,53.5211],[74.3649,53.5615],[75.5425,54.0876],[76.5796,54.2755],[76.7984,53.8832],[78.2111,52.9706],[79.9616,51.0371],[80.754,51.2158],[81.6483,50.8179],[83.538,50.9008],[85.3276,49.658],[86.0644,49.5438],[86.6632,49.68],[87.3126,49.0997]]],[[[73.4786,53.86],[73.4388,54.0281],[73.8138,54.1065],[73.723,53.8039],[73.4786,53.86]]]]},properties:{name:"Kazakhstan"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[107.5561,14.6866],[106.9803,14.3702],[106.6894,14.4307],[106.0779,14.3576],[106.0246,13.9409],[105.2001,14.3427],[105.5365,14.6777],[105.6101,15.563],[105.3708,15.8632],[104.7661,16.548],[104.7439,17.4068],[103.9616,18.2846],[103.3719,18.4053],[102.7248,17.8976],[102.0799,18.1552],[101.3548,17.6701],[101.1487,17.5228],[100.9955,17.6658],[101.179,18.5917],[101.3116,18.9891],[101.2249,19.5387],[100.5125,19.5883],[100.4885,20.1911],[100.0853,20.3527],[100.9577,21.3822],[101.1432,21.5641],[101.2992,21.2567],[101.7015,21.2366],[101.6416,22.2745],[102.1439,22.4007],[102.9271,21.7266],[102.897,21.3822],[103.2157,20.8666],[103.665,20.7839],[104.1421,20.9297],[104.4887,20.719],[104.5298,20.4333],[104.9197,20.0654],[104.6562,19.6942],[104.1919,19.6463],[103.9581,19.3062],[105.1551,18.6727],[105.1906,18.3486],[106.5116,16.9689],[106.74,16.4137],[107.3734,16.1224],[107.2941,15.8632],[107.5938,15.3404],[107.5561,14.6866]]]},properties:{name:"Laos"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[35.6244,33.2423],[35.1034,33.0936],[35.9756,34.6334],[36.4058,34.578],[36.5688,34.2017],[35.6244,33.2423]]]},properties:{name:"Lebanon"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.1329,13.8767],[-61.0349,14.0693],[-60.829,14.0373],[-60.9347,13.6443],[-61.1329,13.8767]]]},properties:{name:"Saint Lucia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[9.6071,47.0608],[9.476,47.0518],[9.5307,47.2706],[9.6206,47.1516],[9.6071,47.0608]]]},properties:{name:"Liechtenstein"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[79.7508,7.9286],[79.8337,8.0142],[79.7794,8.5235],[79.9183,8.5541],[79.9225,8.9409],[80.0675,9.0611],[80.0634,9.3925],[80.2181,9.558],[80.0272,9.7745],[80.2852,9.8441],[80.4738,9.5725],[80.8076,9.2901],[81.0332,8.8855],[81.3498,8.4939],[81.473,8.0411],[81.7848,7.5987],[81.8754,7.0229],[81.697,6.4947],[81.322,6.2049],[80.7152,5.9644],[80.2653,6.0023],[80.0643,6.1959],[79.8676,6.8183],[79.8361,7.322],[79.7508,7.9286]]]},properties:{name:"Sri Lanka"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-8.4722,7.5546],[-8.3267,7.0841],[-8.4496,6.4988],[-7.4568,5.7608],[-7.5231,4.3617],[-8.491,4.718],[-9.4809,5.3693],[-10.3175,6.0775],[-10.7788,6.3029],[-11.4975,6.9234],[-10.6672,7.7454],[-10.282,8.488],[-9.5993,8.3707],[-9.1699,7.3537],[-8.4722,7.5546]]]},properties:{name:"Liberia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[27.0327,-29.6171],[27.37,-29.4774],[27.7666,-28.8974],[28.0366,-28.8784],[28.1938,-28.6929],[28.6524,-28.5749],[28.9973,-28.9141],[29.3202,-29.0855],[29.4624,-29.352],[29.1825,-29.665],[29.172,-29.9121],[28.8475,-30.093],[28.4128,-30.1401],[28.1178,-30.6655],[27.7514,-30.5918],[27.3808,-30.2],[27.0327,-29.6171]]]},properties:{name:"Lesotho"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[26.6304,55.6807],[26.7404,55.2639],[26.6447,55.1608],[26.3111,55.1325],[26.1932,55.0034],[25.9578,54.9506],[25.7708,54.7943],[25.761,54.5791],[25.6697,54.195],[24.8359,54.149],[24.4754,53.9309],[23.5147,53.9566],[23.3215,54.2533],[22.7921,54.3634],[22.8215,54.8264],[22.589,55.0703],[21.6511,55.18],[21.3903,55.2694],[21.2735,55.2457],[21.05,55.9115],[21.0642,56.0691],[21.9782,56.3851],[22.6356,56.3682],[22.9205,56.3991],[23.1554,56.3288],[24.1518,56.2533],[24.8485,56.3676],[25.8214,56.0522],[26.0462,55.9441],[26.6304,55.6807]]]},properties:{name:"Lithuania"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[6.1377,50.13],[6.475,49.8213],[6.3801,49.5511],[6.3671,49.4695],[5.8934,49.4969],[5.8181,49.5463],[5.7463,49.8536],[6.0249,50.1828],[6.1377,50.13]]]},properties:{name:"Luxembourg"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.1546,56.1698],[27.6312,55.8737],[26.6304,55.6807],[26.0462,55.9441],[25.8214,56.0522],[24.8485,56.3676],[24.1518,56.2533],[23.1554,56.3288],[22.9205,56.3991],[22.6356,56.3682],[21.9782,56.3851],[21.0642,56.0691],[21.073,56.7843],[21.7132,57.54],[22.4918,57.7045],[23.1469,57.3163],[23.477,57.0452],[23.9345,57.0064],[24.1192,57.0863],[24.3819,57.3167],[24.3528,57.8766],[24.8341,57.9728],[25.0463,58.0401],[26.4549,57.5549],[27.3516,57.5182],[27.6908,57.3706],[28.1546,56.1698]]]},properties:{name:"Latvia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[25.1472,31.6497],[24.892,31.3739],[24.9888,30.7293],[24.7452,30.1337],[24.9948,29.1507],[25,26.8805],[25,25.5268],[25,24.9875],[25,22],[25,21.6026],[24.9765,20.0689],[24.0666,19.9725],[24,19.5],[16.1947,23.3281],[14.9984,22.9972],[14.1827,22.692],[13.4242,23.1955],[11.9985,23.5127],[11.6027,24.2015],[10.4325,24.5274],[10.1392,24.8009],[9.9784,25.3828],[9.4591,26.143],[9.8837,26.6543],[9.9363,27.8899],[9.8055,29.2946],[9.4464,30.0952],[9.5516,30.2464],[10.234,30.7743],[10.2329,31.5973],[11.3188,32.3104],[11.5395,32.5327],[11.5643,33.1651],[12.3804,32.8311],[13.3439,32.8653],[15.1861,32.3341],[15.4797,31.7506],[15.8354,31.3853],[17.4555,31.0433],[19.1543,30.3129],[19.6354,30.4643],[20.0481,30.8943],[19.9817,31.8874],[20.2437,32.2947],[20.9944,32.7107],[21.7671,32.9048],[22.9352,32.6696],[23.1522,32.325],[23.4122,32.1894],[24.1654,32.0109],[24.9115,31.9798],[25.1472,31.6497]]]},properties:{name:"Libya"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-5.3434,35.8709],[-5.3282,35.7175],[-5.2469,35.5748],[-4.9374,35.3311],[-4.6931,35.2112],[-4.4183,35.1574],[-4.3025,35.1701],[-4.2979,35.1704],[-4.297,35.1728],[-3.3739,35.2562],[-2.9698,35.2933],[-2.9323,35.2776],[-2.9247,35.2784],[-2.7863,35.1869],[-2.6593,35.103],[-2.2097,35.0846],[-1.8091,34.6952],[-1.5962,33.2215],[-1.1187,32.5223],[-1.2332,32.2639],[-2.7778,32.0677],[-3.0082,31.7988],[-3.5844,31.5104],[-3.8126,30.6884],[-4.9056,30.1258],[-5.5291,29.6274],[-7.1492,29.458],[-8.3109,28.8968],[-8.6296,28.5136],[-8.6666,27.662],[-13.173,27.667],[-12.8629,27.947],[-11.5272,28.3192],[-10.2316,29.3082],[-9.6511,30.2728],[-9.8437,30.6757],[-9.8045,31.4344],[-9.2562,32.1908],[-9.1851,32.6104],[-8.0741,33.4365],[-6.8681,34.0174],[-5.9489,35.701],[-5.3819,35.913],[-5.3434,35.8709]]]},properties:{name:"Morocco"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[7.4392,43.749],[7.4375,43.7471],[7.4345,43.7442],[7.4272,43.737],[7.4249,43.7348],[7.4147,43.7266],[7.4103,43.7293],[7.4129,43.7328],[7.4374,43.7516],[7.4392,43.749]]]},properties:{name:"Monaco"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.2114,45.4673],[28.1158,46.1078],[28.2283,46.438],[28.1138,46.8384],[27.3912,47.5894],[27.1926,47.9044],[26.6306,48.2597],[27.6199,48.4649],[28.7544,48.135],[28.9245,47.9859],[29.1968,47.9044],[29.223,47.477],[29.5435,47.3214],[29.9594,46.6108],[29.8609,46.431],[29.0181,46.4516],[29.0061,46.1012],[28.7122,45.8204],[28.2114,45.4673]]]},properties:{name:"Moldova"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[20.0763,42.5558],[19.831,42.4664],[19.6623,42.5469],[19.488,42.3929],[19.3924,42.2956],[19.3841,42.1059],[19.3725,41.8441],[18.5252,42.4205],[18.4381,42.5557],[18.7067,43.1554],[19.2241,43.5275],[20.0639,43.0068],[20.3529,42.8334],[20.0763,42.5558]]]},properties:{name:"Montenegro"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[125.6861,9.6278],[125.8361,9.5882],[126.107,9.9587],[126.1614,9.7729],[125.9535,9.5762],[125.9359,9.3815],[126.1536,9.2283],[126.4463,7.8063],[126.5799,7.2993],[126.1161,6.6926],[125.8266,7.2332],[125.4592,6.8735],[125.6755,6.0802],[125.3546,5.6143],[125.1942,6.0334],[124.8356,5.9022],[124.1152,6.3351],[124.0154,6.9154],[124.1561,7.4061],[123.6916,7.8063],[123.431,7.8063],[123.4058,7.6304],[123.1658,7.4765],[122.8249,7.3662],[122.7577,7.7004],[122.583,7.7118],[122.047,6.93],[121.9491,7.1314],[122.1163,7.7856],[122.8725,8.1648],[123.1658,8.5318],[123.6352,8.5998],[123.8856,8.2461],[124.125,8.2219],[124.3902,8.5589],[124.6849,8.5461],[124.8246,8.9461],[125.1071,8.8939],[125.5349,9.0955],[125.3984,9.7538],[125.5163,10.1026],[125.6199,10.0975],[125.6861,9.6278]]],[[[125.4721,11.804],[125.5206,11.1264],[125.0263,11.1264],[125.2002,10.2724],[124.9086,10.1223],[124.7292,10.4333],[124.7489,10.8159],[124.6181,10.9569],[124.4139,10.915],[124.3469,11.3798],[124.5098,11.5885],[124.6933,11.3616],[124.8277,11.804],[124.692,11.804],[124.2724,12.3896],[124.425,12.5825],[125.2575,12.4981],[125.5018,12.1218],[125.4721,11.804]]],[[[124.554,9.7499],[124.1137,9.5874],[123.7753,9.7499],[124.2086,10.1875],[124.554,10.048],[124.554,9.7499]]],[[[124.4114,13.6703],[124.2144,13.529],[124.0284,13.6647],[124.2093,14.0943],[124.4189,13.7977],[124.4114,13.6703]]],[[[120.8602,18.6314],[121.7969,18.3347],[122.2742,18.3771],[122.1613,17.6999],[122.4768,16.9427],[122.1039,16.255],[121.6409,15.9685],[121.415,15.3049],[121.6132,14.5872],[121.7686,14.1867],[122.0776,13.9676],[122.5338,14.317],[123.0292,14.1058],[123.1517,13.7755],[123.5631,13.9908],[123.8272,13.9235],[123.5822,13.615],[123.758,13.1798],[124.1064,12.9458],[124.0644,12.5893],[123.3668,13.0143],[123.1909,13.409],[122.6648,13.7578],[122.5816,13.7003],[122.6966,13.2475],[122.5944,13.1618],[122.2393,13.5122],[122.0655,13.2257],[121.8268,13.4128],[122.128,13.6221],[121.8851,13.8618],[121.1879,13.6245],[120.6831,13.9667],[120.6373,14.2172],[120.967,14.5872],[120.8672,14.7358],[120.5553,14.7259],[120.5733,14.4607],[120.4062,14.4696],[120.3647,14.6193],[120.0985,14.8397],[119.7507,15.9685],[119.8185,16.2568],[120.1641,16.0803],[120.3786,16.2105],[120.3844,17.616],[120.5963,18.4478],[120.8602,18.6314]]],[[[124.0118,10.4343],[123.4238,9.5791],[123.3245,9.6161],[123.3451,9.751],[123.671,10.4343],[123.9177,11.0284],[124.0218,11.0067],[124.0118,10.4343]]],[[[123.8546,12.2471],[124.0067,11.9178],[123.9277,11.8497],[123.4977,12.1325],[123.2473,12.099],[123.246,12.4994],[123.4715,12.4994],[123.8546,12.2471]]],[[[123.1762,11.5024],[123.1396,11.1284],[123.0299,11.1638],[122.762,10.9007],[122.8632,10.6977],[123.0299,10.9174],[123.2333,10.985],[123.5158,10.8717],[123.5238,10.6787],[123.3623,10.4331],[123.1678,9.9116],[123.1262,9.6261],[123.29,9.3411],[123.1678,9.0711],[122.4225,9.7112],[122.4695,9.9183],[122.8223,10.1131],[122.8339,10.4331],[122.4146,10.65],[121.9947,10.5542],[122.0574,11.6352],[121.9405,11.8141],[122.0507,11.8623],[123.0299,11.5121],[123.1762,11.5024]]],[[[122.7642,12.3937],[122.6602,12.1984],[122.3423,12.4583],[122.661,12.5425],[122.7642,12.3937]]],[[[122.1357,12.5344],[122.0532,12.1977],[121.8693,12.2828],[121.986,12.5711],[121.9377,12.8789],[122.1352,12.9554],[122.111,12.7116],[122.2425,12.6743],[122.1357,12.5344]]],[[[122.1953,6.4803],[122.0017,6.3728],[121.7696,6.608],[122.0303,6.7336],[122.1836,6.6514],[122.1953,6.4803]]],[[[122.14,14.8988],[122.0808,14.7915],[121.7002,14.9294],[121.9476,15.1311],[122.14,14.8988]]],[[[121.6348,19.2069],[121.3886,19.1892],[121.303,19.3081],[121.3427,19.4221],[121.5952,19.4847],[121.6348,19.2069]]],[[[121.5068,12.6039],[121.2253,12.2764],[120.5282,13.2468],[120.3679,13.3761],[120.3679,13.5128],[121.1294,13.4286],[121.3763,13.2468],[121.5068,12.6039]]],[[[121.4029,6.032],[121.2269,5.7985],[120.9035,5.9594],[120.9731,6.0848],[121.4029,6.032]]],[[[120.3661,5.3313],[120.3567,5.0974],[120.1416,5.1384],[119.7954,4.9493],[119.723,5.0221],[120.0211,5.3738],[120.2128,5.4542],[120.3661,5.3313]]],[[[120.304,5.9371],[120.1589,5.7836],[119.8749,5.8961],[120.2134,6.1273],[120.304,5.9371]]],[[[120.2768,12.0826],[120.0136,11.794],[119.8994,11.8578],[119.8289,12.1349],[119.9905,12.2288],[120.2768,12.0826]]],[[[120.2696,13.7973],[120.1287,13.7074],[119.8008,13.951],[120.0259,14.0509],[120.2696,13.7973]]],[[[120.0657,10.621],[120.0883,10.4319],[119.7052,10.5025],[119.7696,10.73],[120.0657,10.621]]],[[[120.046,11.6003],[119.9487,11.4286],[119.6158,11.4672],[119.803,11.7212],[120.046,11.6003]]],[[[117.7595,8.6997],[117.4018,8.4719],[117.2442,8.4954],[117.7595,9.1212],[119.0966,10.4337],[119.1817,10.4337],[119.2374,11.1383],[119.4415,11.3476],[119.6885,11.3603],[119.5746,11.1383],[119.6101,10.4337],[118.8845,9.9421],[118.5119,9.3531],[117.7595,8.6997]]],[[[118.653,7.1332],[118.5864,6.8393],[118.2745,6.9411],[118.2451,7.0498],[118.653,7.1332]]],[[[117.113,8.0559],[117.0351,7.8539],[116.9193,7.9417],[116.9852,8.1737],[117.2447,8.3998],[117.3449,8.1861],[117.113,8.0559]]]]},properties:{name:"Philippines"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[75.3339,32.3266],[74.65,31.8079],[74.4044,30.8691],[71.9298,28.0722],[70.9183,27.7815],[70.3421,27.909],[69.5759,26.9485],[70.084,26.4979],[70.2013,25.93],[70.716,25.4417],[71.0157,24.7573],[70.8701,24.2488],[70.0829,24.2255],[68.9389,24.2488],[68.8662,24.2488],[67.5192,24.0224],[67.3698,24.633],[66.7746,24.8824],[66.35,25.4884],[61.6105,25.195],[61.8842,26.2036],[62.4742,26.5693],[63.0911,26.6676],[63.1929,26.8423],[63.1741,27.1781],[62.8319,27.3052],[62.7458,28.2253],[61.8091,28.6605],[60.873,29.8585],[62.4953,29.403],[65.2412,29.5782],[66.2579,29.8854],[66.4208,30.9063],[66.9026,31.2606],[67.5736,31.2768],[67.8555,31.6214],[68.2247,31.7982],[68.9944,31.6561],[69.2828,32.1149],[69.5333,33.0026],[70.2571,33.3559],[69.9165,33.9708],[70.9817,34.0291],[71.2242,34.7534],[71.6228,35.1948],[71.2997,36.1094],[72.3359,36.7654],[73.2944,36.8773],[73.6393,36.9034],[73.6909,36.7433],[73.2944,36.7238],[72.5938,36.2273],[72.5308,36.0297],[72.6179,35.8638],[73.049,35.8283],[73.2944,35.6086],[73.7126,35.5074],[73.7903,35.2386],[74.0657,35.092],[73.7156,34.7534],[73.4315,34.3917],[73.6386,33.1515],[75.3339,32.3266]]]},properties:{name:"Pakistan"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[19.8038,54.4424],[20.1365,54.4162],[20.3135,54.4022],[21.5593,54.3225],[22.7921,54.3634],[23.3215,54.2533],[23.5147,53.9566],[23.5887,53.6959],[23.8116,53.255],[23.9162,52.9048],[23.8616,52.7073],[23.1783,52.2831],[23.6455,52.0553],[23.5477,51.6914],[23.6174,51.5095],[23.7092,51.2776],[24.096,50.6123],[23.5476,50.2516],[22.6861,49.5732],[22.7088,49.2022],[22.5668,49.0884],[21.3977,49.4338],[20.6149,49.4178],[20.1365,49.278],[19.8839,49.2042],[19.4674,49.6138],[19.1237,49.4201],[18.8516,49.5172],[18.5757,49.9104],[18.0351,50.0658],[17.4296,50.2545],[16.9079,50.4495],[16.8633,50.1981],[16.5803,50.1428],[16.3325,50.5925],[16.1073,50.6621],[15.5353,50.7794],[15.1816,50.9574],[14.8234,50.8706],[14.9742,51.3639],[14.7299,51.5818],[14.7167,52.0012],[14.7552,52.07],[14.6009,52.2721],[14.5344,52.395],[14.5651,52.6245],[14.4364,52.6799],[14.1567,52.8956],[14.1437,52.9614],[14.4122,53.3296],[14.2675,53.6978],[15.3881,54.1589],[16.6991,54.5692],[17.6666,54.7832],[18.2896,54.8068],[18.5417,54.5845],[18.95,54.3583],[19.6389,54.4582],[19.6451,54.4516],[19.3315,54.3523],[19.257,54.2785],[19.8038,54.4424]]]},properties:{name:"Poland"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-56.1805,47.1484],[-56.2609,46.8912],[-55.9808,46.7185],[-56.1685,46.6411],[-56.5198,46.8061],[-56.3798,46.9702],[-56.3849,47.2296],[-56.1805,47.1484]]]},properties:{name:"Saint Pierre and Miquelon"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-128.4739,-24.3403],[-128.4006,-24.2028],[-128.2309,-24.1758],[-128.2155,-24.5814],[-128.385,-24.5115],[-128.4739,-24.3403]]]},properties:{name:"Pitcairn Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-67.2167,18.3365],[-67.0683,18.4872],[-66.4737,18.4709],[-65.9003,18.4404],[-65.626,18.2782],[-65.95,17.9884],[-66.4737,17.9896],[-67.0637,17.9836],[-67.2167,18.3365]]]},properties:{name:"Puerto Rico"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[35.476,31.4905],[34.9515,31.4243],[35.0826,31.7397],[35.0135,32.3104],[35.2216,32.5167],[35.5551,32.389],[35.476,31.4905]]],[[[34.2688,31.2205],[34.2198,31.3217],[34.234,31.3334],[34.4729,31.5726],[34.4909,31.5959],[34.4994,31.4912],[34.2688,31.2205]]]]},properties:{name:"Palestine"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-7.4019,37.1748],[-8.0741,37.053],[-8.8579,37.1415],[-8.7963,37.4429],[-8.7924,37.694],[-8.7351,38.5157],[-9.1747,38.4665],[-9.4452,38.7632],[-9.4165,39.0547],[-9.0403,39.7414],[-8.8949,40.0455],[-8.7749,40.5145],[-8.6531,40.9648],[-8.7764,41.472],[-8.8116,41.6116],[-8.8632,41.8721],[-8.199,42.1544],[-8.1651,41.8183],[-8.0519,41.8206],[-7.2005,41.8797],[-6.9858,41.9714],[-6.6375,41.8984],[-6.3008,41.5924],[-6.4797,41.2944],[-6.6898,41.2052],[-6.9299,41.0295],[-6.8022,40.5288],[-6.8651,40.2707],[-6.9513,40.2574],[-7.0106,39.7363],[-7.5429,39.6628],[-7.2315,39.2784],[-7.0209,39.0127],[-7.2031,38.751],[-7.2758,38.4539],[-7.108,38.1881],[-6.9317,38.2084],[-7.4457,37.694],[-7.5127,37.5263],[-7.4019,37.1748]]],[[[-15.8103,29.9885],[-15.9142,29.8996],[-16.1934,29.9542],[-16.2041,30.0776],[-16.0535,30.2138],[-15.8103,29.9885]]],[[[-16.6542,32.7289],[-16.9703,32.5887],[-17.1775,32.7607],[-16.8521,32.8591],[-16.6542,32.7289]]],[[[-25.1259,37.7314],[-25.5507,37.6875],[-25.6229,37.7689],[-25.5234,37.8623],[-25.099,37.8667],[-25.1259,37.7314]]],[[[-25.6029,37.8163],[-25.7462,37.705],[-25.9489,37.8788],[-25.8024,37.9838],[-25.6029,37.8163]]],[[[-27.0259,38.8346],[-26.9863,38.5909],[-27.3268,38.6063],[-27.4303,38.7367],[-27.0259,38.8346]]],[[[-28.2995,38.5007],[-28.3758,38.4157],[-28.7859,38.4612],[-28.9592,38.6194],[-28.713,38.7097],[-28.2995,38.5007]]],[[[-31.025,39.4895],[-31.1392,39.2852],[-31.3079,39.287],[-31.3542,39.4642],[-31.2793,39.625],[-31.025,39.4895]]]]},properties:{name:"Portugal"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[134.679,7.7471],[134.6162,7.2854],[134.403,7.3024],[134.5227,7.6612],[134.679,7.7471]]],[[[134.2794,6.8402],[133.9897,6.7108],[134.0188,7.0616],[134.1988,7.0905],[134.2794,6.8402]]],[[[131.2904,3.0827],[131.1123,2.7578],[130.9605,3.0182],[131.2545,3.2259],[131.2904,3.0827]]]]},properties:{name:"Palau"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-58.1635,-20.1625],[-57.863,-20.9629],[-57.8684,-22.0614],[-57.0908,-22.2421],[-56.4163,-22.1247],[-55.8971,-22.3237],[-55.3922,-23.8396],[-54.6633,-23.8829],[-54.3851,-24.0606],[-54.5941,-25.5923],[-54.7923,-26.5932],[-55.4625,-27.0428],[-55.7448,-27.4423],[-56.1084,-27.3439],[-56.4174,-27.5161],[-58.5741,-27.253],[-57.6289,-25.5065],[-57.6904,-25.2889],[-59.9462,-24.0628],[-60.9507,-23.795],[-61.9084,-23.0815],[-62.6452,-22.2505],[-62.6104,-22.1424],[-62.2348,-20.5542],[-61.658,-19.6476],[-59.9788,-19.3035],[-59.1211,-19.2995],[-58.2561,-19.7822],[-58.1635,-20.1625]]]},properties:{name:"Paraguay"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[51.3072,24.5064],[50.815,24.7395],[50.8625,24.8402],[50.7772,25.1654],[50.8085,25.5978],[50.8094,25.6029],[51.2627,26.0579],[51.4887,25.9122],[51.5749,25.0543],[51.3072,24.5064]]]},properties:{name:"Qatar"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.2114,45.4673],[28.6519,45.2511],[29.2976,45.4112],[29.667,45.3119],[29.6796,45.2118],[29.5569,44.874],[28.9941,44.6796],[28.7122,44.3774],[28.5789,43.7387],[27.6954,43.9873],[27.2713,44.1263],[26.3818,44.0386],[26.3582,44.0372],[25.6722,43.6881],[25.5445,43.6428],[25.2964,43.6554],[24.6548,43.7236],[24.3235,43.6977],[24.112,43.6999],[23.6304,43.791],[23.1554,43.8123],[22.9972,43.8079],[22.9664,44.0983],[22.6752,44.2157],[22.4997,44.6117],[22.0161,44.5992],[22.0124,44.6023],[21.3585,44.8216],[21.4792,45.193],[21.0166,45.3246],[20.6628,45.7941],[20.2643,46.1264],[20.7053,46.1609],[20.7756,46.2759],[21.1475,46.3359],[21.4414,46.6515],[21.659,47.0221],[22.1283,47.5981],[22.1808,47.6001],[22.8963,47.9541],[23.1554,48.1127],[23.4936,47.9678],[24.5608,47.9339],[24.9471,47.7291],[26.0988,47.9788],[26.6306,48.2597],[27.1926,47.9044],[27.3912,47.5894],[28.1138,46.8384],[28.2283,46.438],[28.1158,46.1078],[28.2114,45.4673]]]},properties:{name:"Romania"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.6752,44.2157],[22.5361,44.0455],[22.4069,43.7517],[22.667,43.4027],[22.7475,43.3866],[23.0062,43.1929],[22.7484,42.8898],[22.5155,42.8685],[22.4428,42.8255],[22.4615,42.6485],[22.3602,42.3112],[21.5869,42.2628],[21.443,42.2349],[21.2127,42.1107],[20.9223,42.1087],[20.5943,41.8773],[20.5181,42.1059],[20.4701,42.2156],[20.2649,42.3929],[20.0763,42.5558],[20.3529,42.8334],[20.0639,43.0068],[19.2241,43.5275],[19.4764,43.6372],[19.4971,44.0991],[19.1422,44.422],[19.3512,44.8891],[19.0221,44.8554],[19.1373,45.1187],[19.4252,45.1677],[19.0771,45.3405],[19.0053,45.4346],[19.0339,45.4868],[18.8897,45.9212],[19.3027,45.9916],[19.6981,46.1879],[19.8654,46.1503],[20.1365,46.1341],[20.2643,46.1264],[20.6628,45.7941],[21.0166,45.3246],[21.4792,45.193],[21.3585,44.8216],[22.0124,44.6023],[22.0161,44.5992],[22.4997,44.6117],[22.6752,44.2157]]]},properties:{name:"Serbia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[30.5433,-2.4132],[30.0189,-2.4386],[29.7073,-2.7799],[29.1824,-2.638],[29.0406,-2.7438],[28.9465,-2.3881],[28.9949,-2.2733],[29.2083,-1.766],[29.5895,-1.3866],[30.0925,-1.3689],[30.4735,-1.0574],[30.7956,-1.5802],[30.8216,-1.766],[30.8289,-2.1109],[30.6755,-2.2733],[30.5433,-2.4132]]]},properties:{name:"Rwanda"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[148.9425,45.5027],[148.882,45.3125],[148.4784,45.3935],[148.6407,45.5687],[148.9425,45.5027]]],[[[147.1653,44.6366],[147.0266,44.414],[146.8157,44.5694],[146.9151,44.7252],[147.1664,44.7272],[147.2386,44.8552],[147.8835,45.2387],[147.9437,45.4666],[148.2504,45.1744],[147.9142,44.96],[147.6584,44.958],[147.5901,44.8417],[147.1653,44.6366]]],[[[146.3048,44.3015],[145.9094,44.0684],[145.8106,44.133],[146.0545,44.4502],[146.3048,44.3015]]],[[[145.6386,43.8878],[145.5989,43.6582],[145.3799,43.6597],[145.3254,43.841],[145.5652,43.9908],[145.6386,43.8878]]]]},properties:{name:"Kuril Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-75.2511,18.5294],[-74.8958,18.5166],[-74.8365,18.2647],[-75.0892,18.2897],[-75.2511,18.5294]]]},properties:{name:"Navassa Island"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[117.6048,15.2975],[117.6846,15.3492],[117.811,15.2409],[117.9928,15.0852],[117.9236,15.0038],[117.6374,15.0731],[117.6048,15.2975]]]},properties:{name:"Scarborough Reef"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[123.1791,25.6798],[123.5462,25.8885],[123.6814,25.7112],[123.2995,25.5839],[123.1791,25.6798]]]},properties:{name:"Senkaku Islands"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[54.7024,-15.8799],[54.6127,-16.1313],[54.3092,-15.7546],[54.4674,-15.7155],[54.7024,-15.8799]]],[[[47.5513,-11.4763],[47.4245,-11.715],[47.1644,-11.5048],[47.4023,-11.3411],[47.5513,-11.4763]]],[[[42.9694,-17.1823],[42.6813,-17.2191],[42.5171,-17.0453],[42.8528,-16.9499],[42.9694,-17.1823]]],[[[40.4369,-22.1561],[40.3489,-22.5928],[40.1548,-22.3855],[40.1858,-22.2105],[40.4369,-22.1561]]],[[[39.9182,-21.5501],[39.652,-21.6126],[39.549,-21.428],[39.8571,-21.2869],[39.9182,-21.5501]]]]},properties:{name:"Bassas Da India"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.977,9.6412],[28.5512,9.3479],[28.0981,9.3663],[27.9072,9.6102],[27.8156,10.0193],[27.9298,10.1398],[28.9293,10.1061],[28.977,9.6412]]]},properties:{name:"Abyei"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[33.1826,22.0017],[34.0865,22.0025],[33.9661,21.7899],[33.6406,21.7398],[33.1826,22.0017]]]},properties:{name:"Bir Tawil (Disputed Territory)"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[53.6461,12.7028],[53.8461,12.6042],[54.0848,12.7012],[54.4634,12.5445],[54.1329,12.3503],[53.7284,12.3021],[53.5462,12.3426],[53.3068,12.5372],[53.3993,12.6551],[53.6461,12.7028]]],[[[52,19],[53.107,16.6544],[52.4364,16.3497],[52.1341,15.654],[51.5872,15.3288],[49.5638,14.7052],[48.6192,14.0676],[45.6726,13.3012],[44.9607,12.7815],[44.1175,12.6413],[43.5481,12.8001],[43.282,13.3288],[42.8826,15.0012],[42.6016,15.3149],[42.7639,16.4046],[43.183,16.6552],[43.3633,17.4977],[45.6126,17.308],[46.7083,17.2521],[47.1932,16.9779],[48.1849,18.1433],[49.0135,18.5638],[52,19]]],[[[42.5415,16.2997],[42.358,16.1296],[42.2473,16.233],[42.2172,16.3172],[42.2973,16.4013],[42.5415,16.2997]]]]},properties:{name:"Yemen"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[38.0254,-46.8953],[37.8873,-47.0414],[37.5201,-46.9346],[37.5976,-46.7765],[38.0254,-46.8953]]],[[[31.9821,-25.952],[31.338,-25.8256],[30.9531,-26.2532],[30.8609,-26.7714],[31.2284,-27.2042],[31.5496,-27.3065],[31.94,-27.2766],[32.1337,-26.835],[32.8915,-26.8583],[32.7946,-27.2265],[32.3221,-28.5947],[31.3118,-29.4248],[30.0787,-31.214],[28.4291,-32.6388],[27.0545,-33.5418],[26.4843,-33.7479],[26.0025,-33.7064],[25.5483,-34.0063],[25.0772,-33.9884],[24.7605,-34.1775],[22.4286,-34.0265],[21.8498,-34.3301],[19.6936,-34.762],[18.7471,-34.1344],[18.3898,-34.0763],[18.4155,-33.6879],[17.8844,-32.9057],[18.2742,-32.6388],[18.2235,-31.8078],[17.3617,-30.4882],[16.8538,-29.1859],[16.4556,-28.6347],[17.0144,-28.0716],[17.32,-28.29],[17.4762,-28.6959],[18.2081,-28.8908],[19.162,-28.9253],[19.9434,-28.4086],[19.9995,-24.752],[20.4129,-25.096],[20.6983,-25.63],[20.8245,-26.0714],[20.7004,-26.8181],[21.2827,-26.8663],[21.661,-26.8299],[22.5598,-26.1926],[23.0327,-25.3248],[23.4396,-25.3063],[24.4722,-25.7662],[25.3317,-25.7424],[25.5853,-25.5825],[26.0025,-24.7193],[26.7949,-24.2778],[27.0526,-23.648],[28.2714,-22.6602],[29.3608,-22.1966],[31.3113,-22.4177],[31.9765,-24.3034],[31.9821,-25.952]],[[27.0327,-29.6171],[27.3808,-30.2],[27.7514,-30.5918],[28.1178,-30.6655],[28.4128,-30.1401],[28.8475,-30.093],[29.172,-29.9121],[29.1825,-29.665],[29.4624,-29.352],[29.3202,-29.0855],[28.9973,-28.9141],[28.6524,-28.5749],[28.1938,-28.6929],[28.0366,-28.8784],[27.7666,-28.8974],[27.37,-29.4774],[27.0327,-29.6171]]]]},properties:{name:"South Africa"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[32.9535,-9.4014],[33.6324,-10.4637],[33.2902,-10.9113],[33.4181,-12.4294],[33.0256,-12.7461],[32.8162,-13.5758],[33.2422,-13.9985],[31.8523,-14.4588],[30.3073,-14.9824],[30.4183,-15.6176],[29.2568,-15.7693],[28.8954,-16.0421],[28.8357,-16.3334],[27.8657,-16.9601],[26.8734,-18.0039],[25.2703,-17.7989],[25.2628,-17.7914],[24.5991,-17.4938],[23.4299,-17.6345],[22.1075,-16.3334],[22.0281,-13.0808],[23.8836,-12.9513],[24.0347,-12.3467],[23.983,-10.9113],[24.1243,-10.9113],[24.396,-11.3999],[25.2205,-11.26],[25.4764,-11.7233],[26.0386,-11.9177],[26.7612,-11.9646],[27.1699,-11.6261],[27.6036,-12.2134],[28.4077,-12.5205],[29.0399,-13.3796],[29.5569,-13.2535],[29.7527,-13.4086],[29.7932,-12.2818],[29.1044,-12.3704],[28.4861,-11.8258],[28.5408,-10.9113],[28.6626,-9.794],[28.454,-9.2529],[29.016,-8.5161],[30.7712,-8.1922],[31.0424,-8.5543],[31.8419,-8.8977],[32.9535,-9.4014]]]},properties:{name:"Zambia"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[31.3113,-22.4177],[29.3608,-22.1966],[28.9194,-21.7879],[28.123,-21.5265],[27.7788,-21.1231],[27.6166,-20.5719],[26.1873,-19.5021],[25.2703,-17.7989],[26.8734,-18.0039],[27.8657,-16.9601],[28.8357,-16.3334],[28.8954,-16.0421],[29.2568,-15.7693],[30.4183,-15.6176],[30.5713,-15.9585],[31.1972,-16.04],[32.8225,-16.6907],[33.0194,-17.3795],[33.0077,-18.2738],[32.7663,-18.9699],[32.9546,-19.9683],[32.1429,-21.5651],[31.3113,-22.4177]]]},properties:{name:"Zimbabwe"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-134.7579,-23.1154],[-134.7909,-23.3127],[-135.1201,-23.1118],[-134.9228,-22.9104],[-134.7579,-23.1154]]],[[[-136.2456,-21.4833],[-136.3384,-21.6367],[-136.6038,-21.5361],[-136.4457,-21.247],[-136.2456,-21.4833]]],[[[-139.9806,-8.8384],[-140.2076,-9.0745],[-140.3476,-8.7899],[-140.1728,-8.6834],[-139.9806,-8.8384]]],[[[-140.1892,-19.6886],[-140.5305,-19.7723],[-140.611,-19.642],[-140.4799,-19.4334],[-140.1892,-19.6886]]],[[[-141.2121,-13.9895],[-141.2349,-14.3925],[-141.3503,-14.3622],[-141.4912,-14.0328],[-141.2121,-13.9895]]],[[[-142.6566,-16.7862],[-142.9553,-16.8839],[-142.9694,-16.5838],[-142.7705,-16.5391],[-142.6566,-16.7862]]],[[[-144.3074,-14.9291],[-144.5782,-15.0848],[-144.7973,-15.0784],[-144.6374,-14.8603],[-144.4682,-14.8155],[-144.3074,-14.9291]]],[[[-145.2975,-17.5118],[-145.41,-17.607],[-145.7677,-17.2639],[-145.5388,-17.2302],[-145.2975,-17.5118]]],[[[-146.2769,-15.6763],[-146.3912,-15.7489],[-146.5943,-15.4177],[-146.4065,-15.2788],[-146.2769,-15.6763]]],[[[-149.2971,-17.5072],[-149.2994,-17.7917],[-149.6171,-17.773],[-149.675,-17.5456],[-149.2971,-17.5072]]]]},properties:{name:"French Polynesia"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[174.9552,-1.4438],[174.8784,-1.5532],[174.6115,-1.0983],[174.7712,-1.0228],[174.9552,-1.4438]]],[[[173.3124,1.339],[172.885,1.2419],[172.7632,1.3067],[173.1087,1.5196],[173.3124,1.339]]],[[[-150.2038,-10.0616],[-150.2717,-10.2322],[-150.3905,-10.1317],[-150.3674,-9.9742],[-150.185,-9.8879],[-150.0565,-9.7159],[-149.9841,-9.8257],[-150.2038,-10.0616]]],[[[-151.6949,-11.5565],[-151.8044,-11.6107],[-151.9819,-11.333],[-151.9549,-11.106],[-151.825,-11.2001],[-151.6949,-11.5565]]],[[[-157.2719,1.7957],[-157.4346,1.7279],[-157.651,1.8745],[-157.4777,2.1201],[-157.2719,1.7957]]],[[[-159.104,3.8492],[-159.3473,3.7047],[-159.5227,3.9568],[-159.3991,4.065],[-159.104,3.8492]]],[[[-171.3732,-3.5481],[-171.4838,-3.8226],[-171.7045,-3.4779],[-171.565,-3.3669],[-171.3732,-3.5481]]]]},properties:{name:"Kiribati"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[41.5471,41.5204],[42.5152,41.4383],[42.815,41.5555],[43.4738,41.1233],[43.4696,41.0573],[43.7018,40.7773],[43.6539,40.1304],[44.3752,40.001],[44.7683,39.7141],[44.812,39.6317],[44.5021,39.717],[44.3729,39.452],[44.05,39.3628],[44.4142,38.2972],[44.2847,37.9314],[44.4629,37.8096],[44.6485,37.4271],[44.7931,37.1763],[44.3175,37.0426],[44.1298,37.279],[43.4246,37.2753],[42.8718,37.37],[42.3557,37.108],[42.1596,37.2329],[41.6633,37.1029],[40.7628,37.096],[40.226,36.9014],[39.2161,36.6749],[38.0476,36.8456],[37.5855,36.7038],[37.16,36.6767],[36.6788,36.8327],[36.66,36.8332],[36.6168,36.2635],[36.2014,35.8768],[35.9168,35.9285],[35.8433,36.3198],[36.178,36.6918],[35.9631,36.903],[35.4678,36.5777],[34.8992,36.7383],[34.3261,36.6099],[33.6143,36.1545],[32.5763,36.0932],[31.8435,36.5909],[30.8497,36.8627],[30.6382,36.8079],[30.3761,36.3065],[29.7811,36.1705],[29.2606,36.3044],[28.5149,36.8091],[27.9346,36.6959],[27.9561,36.9364],[27.4194,37.0671],[27.4107,37.4271],[27.25,37.5028],[27.2646,37.875],[26.4588,38.2949],[26.8499,38.7906],[26.7639,39.1752],[26.7978,39.505],[26.6187,39.5479],[26.2563,39.4912],[26.1284,39.6273],[26.1063,39.9289],[26.3733,40.3468],[27.5063,40.3047],[28.1648,40.3956],[28.8484,40.3813],[28.9912,40.4663],[28.9906,40.5902],[29.5409,40.7025],[29.3425,40.8077],[28.9343,40.9418],[29.1373,41.2447],[29.8656,41.1434],[30.3547,41.1842],[30.9821,41.0726],[31.2957,41.1163],[32.0626,41.5803],[32.4456,41.7331],[32.7361,41.849],[33.3698,42.0073],[34.2289,41.955],[35.0028,42.0121],[35.3818,41.7331],[35.5137,41.636],[35.9494,41.6995],[36.3344,41.3177],[36.7806,41.3414],[37.1523,41.1484],[38.11,40.9585],[39.1793,41.0741],[40.3283,40.9879],[41.2519,41.3299],[41.5471,41.5204]]],[[[26.0328,40.7303],[26.5923,41.4201],[26.3579,41.7111],[26.5615,41.9263],[26.9492,42.0002],[27.0597,42.0883],[28.0355,41.9831],[28.1082,41.7331],[28.153,41.579],[28.1817,41.5641],[28.8484,41.2849],[28.8484,40.9701],[27.9911,41.0183],[27.5657,40.9609],[26.9687,40.5534],[26.7349,40.6429],[26.0328,40.7303]]],[[[26.0736,40.1324],[25.7962,40.0214],[25.6179,40.1527],[26.0253,40.3299],[26.0736,40.1324]]]]},properties:{name:"Türkiye"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.633,10.1375],[-61.4993,10.6322],[-61.4387,10.7532],[-60.9865,10.8108],[-61.0316,10.6322],[-61.0278,10.1839],[-61.2816,10.0874],[-61.633,10.1375]]]},properties:{name:"Trinidad and Tobago"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[177.0395,-6.9988],[177.2368,-7.0769],[177.2696,-7.3884],[177.0657,-7.4184],[177.0395,-6.9988]]]},properties:{name:"Tuvalu"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[34.9596,-11.5733],[34.6491,-10.9113],[34.4913,-10.0245],[34.1574,-9.6216],[32.9535,-9.4014],[31.8419,-8.8977],[31.0424,-8.5543],[30.7712,-8.1922],[30.2771,-7.1145],[29.5926,-6.3587],[29.5996,-5.587],[29.3874,-5.0153],[29.4233,-4.4475],[30.0119,-4.2813],[30.8015,-3.2214],[30.806,-3.0324],[30.472,-2.8532],[30.5433,-2.4132],[30.6755,-2.2733],[30.8289,-2.1109],[30.8216,-1.766],[30.7956,-1.5802],[30.4735,-1.0574],[31.8419,-.9999],[33.934,-.9999],[35.3306,-1.766],[35.4478,-1.8303],[35.6903,-1.9633],[36.2553,-2.2733],[37.5178,-2.9658],[37.7537,-3.6303],[39.2042,-4.6703],[39.2074,-4.6813],[38.8561,-6.1048],[39.4608,-6.9615],[39.2874,-8.3571],[39.8111,-9.8797],[40.3944,-10.5107],[39.7605,-10.9113],[38.5264,-11.3686],[37.9279,-11.3183],[37.4237,-11.6577],[36.4576,-11.7048],[35.8549,-11.4522],[34.9596,-11.5733]]],[[[39.7978,-5.4211],[39.5471,-5.4242],[39.713,-4.8848],[39.8457,-4.9639],[39.7978,-5.4211]]],[[[39.5402,-6.3985],[39.3763,-6.4222],[39.1421,-6.1478],[39.2312,-5.8857],[39.4504,-6.0408],[39.5402,-6.3985]]]]},properties:{name:"United Republic of Tanzania"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[38.231,47.1187],[34.4589,46.1535],[34.51,45.8949],[35.228,45.369],[36.2129,45.4559],[36.4191,45.2813],[36.2692,45.0994],[35.4954,45.0545],[34.2033,44.527],[33.6689,44.5026],[33.4795,45.0505],[32.7281,45.4251],[33.3489,46.0144],[31.9721,46.2089],[31.9859,46.6013],[31.017,46.551],[29.9149,45.6926],[29.667,45.3119],[29.2976,45.4112],[28.6519,45.2511],[28.2114,45.4673],[28.7122,45.8204],[29.0061,46.1012],[29.0181,46.4516],[29.8609,46.431],[29.9594,46.6108],[29.5435,47.3214],[29.223,47.477],[29.1968,47.9044],[28.9245,47.9859],[28.7544,48.135],[27.6199,48.4649],[26.6306,48.2597],[26.0988,47.9788],[24.9471,47.7291],[24.5608,47.9339],[23.4936,47.9678],[23.1554,48.1127],[22.8963,47.9541],[22.1553,48.4034],[22.1758,48.5744],[22.3336,48.7016],[22.3828,48.8623],[22.5668,49.0884],[22.7088,49.2022],[22.6861,49.5732],[23.5476,50.2516],[24.096,50.6123],[23.7092,51.2776],[23.6174,51.5095],[24.4673,51.8703],[25.3462,51.9465],[27.1051,51.7564],[27.7579,51.5175],[28.2365,51.6329],[28.7544,51.4177],[29.0542,51.6149],[29.3584,51.4228],[30.1126,51.4902],[30.5213,51.3278],[30.5778,51.675],[30.9112,52.0252],[31.7869,52.1115],[33.7694,52.2996],[34.3442,51.8126],[34.307,51.4173],[35.1589,51.1293],[35.6852,50.4062],[36.5636,50.2607],[37.3983,50.3916],[38.0083,49.9928],[39.1438,49.8497],[39.9709,49.5281],[40.0937,49.271],[39.7817,48.848],[39.8787,48.3158],[39.756,47.9207],[38.5666,47.6752],[38.231,47.1187]]]},properties:{name:"Ukraine"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[33.934,-.9999],[31.8419,-.9999],[30.4735,-1.0574],[30.0925,-1.3689],[29.5895,-1.3866],[29.6422,-.8786],[29.721,-.1179],[29.7816,.0707],[29.8398,.252],[30.0157,.8003],[31.2496,2.0752],[30.7765,2.5135],[30.8545,3.4875],[30.9998,3.6956],[31.2097,3.7851],[31.5619,3.6758],[31.8199,3.7886],[32.0987,3.5511],[32.3907,3.7291],[32.973,3.8481],[33.4753,3.7622],[33.9945,4.2144],[34.4095,3.6353],[34.5428,3.1339],[34.8669,2.5352],[34.9796,1.7951],[34.5428,1.1019],[34.0186,.252],[33.9422,-.8786],[33.934,-.9999]]]},properties:{name:"Uganda"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-.1102,51.5096],[-.0247,51.4856],[.2174,51.4801],[.2309,51.4732],[.2398,51.4687],[.2441,51.467],[.2557,51.4625],[.2776,51.4535],[.2835,51.4539],[.2931,51.4557],[.3094,51.4661],[.3155,51.465],[.3291,51.4508],[.3397,51.4475],[.356,51.4458],[.3697,51.4452],[.4066,51.4433],[.4285,51.4468],[.4336,51.4474],[.4378,51.4474],[.4432,51.45],[.4589,51.4549],[.593,51.4661],[.6269,51.3752],[.7453,51.3644],[.9503,51.3457],[1.2689,51.3419],[1.3465,51.2285],[.964,50.9267],[.8548,50.9237],[.7453,50.9085],[-.0382,50.7995],[-.216,50.8276],[-.9413,50.8252],[-1.0404,50.8049],[-1.2098,50.8064],[-1.3652,50.8801],[-1.3983,50.8896],[-1.692,50.7366],[-1.7407,50.7215],[-1.7859,50.7203],[-1.8933,50.7175],[-1.9642,50.7156],[-2.7863,50.7179],[-2.9478,50.7183],[-3.3739,50.615],[-3.509,50.5165],[-3.4953,50.4324],[-3.5603,50.3856],[-3.7853,50.258],[-4.0693,50.3541],[-4.1622,50.3762],[-4.1576,50.4329],[-4.2186,50.4752],[-5.1343,50.0624],[-5.4569,50.1431],[-4.546,50.9284],[-3.7208,51.2331],[-3.3739,51.2083],[-3.2367,51.1985],[-2.9929,51.3203],[-2.7126,51.5041],[-2.6738,51.5444],[-2.5347,51.6773],[-2.6661,51.6394],[-2.7863,51.5997],[-3.0827,51.5019],[-3.3739,51.3914],[-3.6379,51.4698],[-3.8862,51.6174],[-4.0525,51.7033],[-4.9714,51.6358],[-5.201,51.7973],[-3.931,52.5536],[-4.3644,52.9835],[-4.0074,53.2469],[-3.3739,53.3392],[-3.0842,53.2561],[-3.1107,53.2963],[-3.0899,53.4035],[-2.9286,53.3083],[-2.7863,53.3134],[-2.8267,53.3317],[-2.8322,53.336],[-3.0087,53.4384],[-3.0672,53.5672],[-2.9562,53.6975],[-2.7863,53.7265],[-2.9425,53.8508],[-2.8754,53.9739],[-2.8695,54.1767],[-3.1453,54.0955],[-3.5562,54.5554],[-3.3788,54.8232],[-3.1191,54.9279],[-3.0574,54.9869],[-3.3739,54.9334],[-4.5498,54.7347],[-5.0764,54.8525],[-5.0412,54.9989],[-4.8444,55.3258],[-4.6583,55.5703],[-4.8708,55.6993],[-4.889,55.8748],[-4.7892,55.9521],[-4.5498,55.9233],[-4.5498,55.9356],[-4.6916,56.0002],[-4.7487,56.2033],[-5.2358,55.5504],[-5.7501,55.3713],[-5.665,56.2692],[-6.1561,56.5357],[-5.8807,56.7063],[-5.7146,57.2297],[-5.5044,57.3669],[-5.5662,57.7852],[-5.0712,58.3285],[-3.8391,58.3993],[-4.4321,57.4944],[-3.3739,57.6247],[-2.8015,57.6952],[-1.9158,57.4522],[-2.4253,56.7552],[-2.5116,56.6408],[-2.6789,56.5182],[-3.0519,56.4585],[-3.277,56.3505],[-2.9528,56.3097],[-2.9359,56.3046],[-2.9215,56.2944],[-2.9112,56.2801],[-2.9061,56.2633],[-2.9067,56.2457],[-2.9129,56.2292],[-2.9241,56.2157],[-2.9392,56.2063],[-3.3747,56.0293],[-3.3854,56.0257],[-3.3941,56.0271],[-3.3999,56.0248],[-3.3889,56.0224],[-3.3904,56.0172],[-3.3883,56.0121],[-3.3909,56.0066],[-3.3958,56.0095],[-3.4036,56.0101],[-3.4084,56.0143],[-3.4141,56.0171],[-3.4415,56.0228],[-3.4466,56.0211],[-3.4485,56.0194],[-3.4544,56.0217],[-3.4584,56.0274],[-3.4861,56.0344],[-3.5041,56.0342],[-3.5186,56.0414],[-3.5298,56.0398],[-3.5456,56.0407],[-3.5548,56.0442],[-3.5602,56.0504],[-3.5765,56.0588],[-3.5896,56.0592],[-3.5863,56.0549],[-3.5871,56.0503],[-3.5897,56.0474],[-3.5948,56.046],[-3.6074,56.0466],[-3.6141,56.0543],[-3.6181,56.0557],[-3.6502,56.0529],[-3.6701,56.0466],[-3.6852,56.0481],[-3.7068,56.0557],[-3.7256,56.0697],[-3.7396,56.0781],[-3.7494,56.0801],[-3.7576,56.0826],[-3.7618,56.0839],[-3.7759,56.0937],[-3.7924,56.1055],[-3.8041,56.1104],[-3.8197,56.1109],[-3.8294,56.1028],[-3.8311,56.1047],[-3.8328,56.1066],[-3.8271,56.1099],[-3.8277,56.1143],[-3.835,56.1181],[-3.8489,56.1222],[-3.857,56.1204],[-3.8582,56.118],[-3.8588,56.1101],[-3.864,56.1072],[-3.8591,56.1076],[-3.8566,56.1088],[-3.8541,56.1121],[-3.8557,56.1182],[-3.8486,56.1171],[-3.8382,56.1149],[-3.8409,56.107],[-3.8375,56.1015],[-3.832,56.0992],[-3.8202,56.0991],[-3.6946,56.0239],[-3.5157,56.0023],[-3.4253,55.994],[-3.0776,55.9469],[-2.3666,55.9461],[-2.0343,55.8112],[-1.8933,55.7117],[-1.7859,55.636],[-1.6281,55.5231],[-1.5573,55.3074],[-1.4617,55.0744],[-1.3639,54.9442],[-1.3474,54.8607],[-1.2422,54.7226],[-1.2089,54.5805],[-.7909,54.5595],[-.2143,54.154],[-.1957,53.9739],[-.0491,53.7654],[-.2963,53.7654],[-.4191,53.7196],[-.6984,53.6847],[-.4014,53.6921],[.0174,53.5254],[.2763,53.2308],[.1167,52.9094],[.266,52.8101],[.7453,52.918],[.9463,52.9633],[1.3301,52.9157],[1.6755,52.7427],[1.7405,52.5321],[1.52,52.0943],[1.0564,51.9515],[.9463,51.7343],[.7453,51.6757],[.5908,51.6306],[.6069,51.5176],[.5137,51.5312],[.3815,51.4592],[.2105,51.49],[.097,51.5157],[.0094,51.5071],[-.0794,51.5078],[-.1102,51.5096]],[[-.1102,51.5096],[-.1126,51.5104],[-.1499,51.4855],[-.2445,51.4887],[-.2228,51.4718],[-.1284,51.4851],[-.1102,51.5096]]],[[[.6222,51.5405],[.636,51.5764],[.7453,51.5596],[.788,51.553],[.7902,51.5223],[.7453,51.5272],[.6222,51.5405]]],[[[-1.4369,60.4236],[-1.3351,60.5431],[-1.1501,60.4735],[-1.1498,60.743],[-.8706,60.743],[-1.1669,60.241],[-1.3213,60.1145],[-1.4369,60.4236]]],[[[-1.5322,59.8857],[-1.4423,60.0197],[-1.0717,59.8842],[-1.2856,59.7158],[-1.4423,59.8015],[-1.5322,59.8857]]],[[[-1.4814,50.6951],[-1.3794,50.805],[-1.1285,50.7707],[-1.1278,50.5491],[-1.375,50.5496],[-1.4814,50.6951]]],[[[-2.7829,59.1653],[-3.1724,58.8149],[-3.3753,58.9168],[-3.3179,59.0737],[-2.9554,59.314],[-2.7829,59.1653]]],[[[-2.7829,59.1653],[-2.7888,59.1806],[-2.6063,59.3241],[-2.5143,59.1109],[-2.7118,59.0122],[-2.7829,59.1653]]],[[[-3.0996,53.7385],[-3.0952,53.8286],[-3.0099,53.936],[-2.944,53.7567],[-3.0996,53.7385]]],[[[-4.6228,53.3398],[-4.2798,53.4379],[-4.1506,53.245],[-4.3542,53.1021],[-4.6228,53.3398]]],[[[-7.2561,55.067],[-7.1491,55.0434],[-6.9366,55.1703],[-6.2092,55.2732],[-5.9765,55.0566],[-5.8683,54.6888],[-5.9052,54.6553],[-5.8135,54.6553],[-5.5493,54.6553],[-5.4625,54.4169],[-5.519,54.3612],[-5.6191,54.4588],[-5.6101,54.3089],[-5.9681,54.0619],[-6.268,54.1023],[-6.595,54.0447],[-6.6439,54.18],[-6.8642,54.3302],[-7.1885,54.3377],[-7.4291,54.1829],[-7.8411,54.3349],[-7.5702,54.6426],[-7.6551,54.7729],[-7.2561,55.067]]],[[[-6.7615,57.4256],[-6.4199,57.5571],[-6.301,57.7386],[-5.9506,57.3175],[-5.9931,57.0247],[-6.159,57.0852],[-6.3201,56.86],[-6.4761,56.9838],[-6.2245,57.2117],[-6.3554,57.3175],[-6.7103,57.3175],[-6.7615,57.4256]]],[[[-6.0409,55.6844],[-6.1667,55.6337],[-6.4548,55.7973],[-6.3518,55.8832],[-5.987,55.9516],[-5.987,55.7947],[-6.0409,55.6844]]],[[[-7.2113,57.5922],[-7.1682,57.4962],[-7.3508,57.093],[-7.4517,57.1198],[-7.3672,57.4036],[-7.4517,57.6711],[-7.0812,57.8133],[-7.1589,58.0163],[-6.9642,58.2507],[-6.3092,58.4676],[-6.2033,58.295],[-6.3734,58.0163],[-6.8742,57.7982],[-7.2113,57.5922]]],[[[-7.8718,58.2784],[-7.3775,58.4243],[-7.462,58.1623],[-7.798,58.1889],[-7.8718,58.2784]]],[[[-8.8381,57.9178],[-8.3377,57.8201],[-8.4254,57.6463],[-8.7676,57.7509],[-8.8381,57.9178]]]]},properties:{name:"United Kingdom"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[166.6872,19.471],[166.8216,19.1497],[166.5113,19.2327],[166.3937,19.396],[166.6872,19.471]]],[[[-159.8328,-.262],[-159.8173,-.4786],[-160.2398,-.4453],[-160.0809,-.2405],[-159.8328,-.262]]],[[[-162.1623,6.2639],[-162.2521,6.1459],[-162.6343,6.5266],[-163.1964,6.812],[-162.8348,6.6967],[-162.3237,6.3678],[-162.1623,6.2639]]],[[[-177.1042,28.2133],[-177.5001,28.0922],[-177.5719,28.1537],[-177.4906,28.318],[-177.2633,28.3605],[-177.1042,28.2133]]]]},properties:{name:"United States Minor Outlying Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-53.378,-33.7504],[-53.8632,-34.4342],[-54.9524,-34.9739],[-55.4492,-34.758],[-55.8346,-34.8021],[-56.1532,-34.9257],[-56.3373,-34.8826],[-57.1761,-34.4798],[-57.8338,-34.4414],[-58.2546,-34.0846],[-58.417,-33.4995],[-58.1303,-33.0265],[-58.1316,-31.8015],[-57.619,-30.1759],[-57.3474,-30.2723],[-56.8071,-30.1365],[-56.1653,-30.6435],[-55.9687,-31.002],[-55.7448,-30.9943],[-55.5446,-30.9301],[-53.83,-32.0405],[-53.1514,-32.7404],[-53.3047,-32.9751],[-53.5095,-33.3089],[-53.378,-33.7504]]]},properties:{name:"Uruguay"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[70.9402,42.2592],[71.177,42.1716],[71.0708,42.1059],[70.4682,41.7331],[70.4493,41.5111],[70.6296,41.3903],[71.2273,41.179],[71.8407,41.3602],[72.7923,40.7655],[71.7869,40.2283],[70.9676,40.2285],[70.5038,40.3699],[70.6152,40.7776],[70.4136,40.9551],[69.4317,40.6763],[68.456,39.6133],[67.5514,39.5075],[67.5335,39.2951],[68.0963,38.8623],[68.3151,38.2289],[67.7787,37.1796],[66.5537,37.3548],[66.6138,37.5063],[66.5616,38.0044],[65.419,38.3671],[62.6116,39.8876],[61.8085,41.1353],[60.3327,41.3003],[60.1297,41.7331],[59.7804,42.257],[59.4397,42.3929],[59.2965,42.45],[58.6272,42.717],[58.089,42.45],[57.9738,42.3929],[57.2518,42.0348],[57.0023,41.7331],[56.9976,41.3132],[56.7141,41.2841],[56.0006,41.318],[56.0005,41.7331],[56.0252,42.3929],[56.1524,44.8265],[58.5043,45.4677],[60.8103,44.4097],[62.0428,43.6178],[65.0384,43.6349],[65.9536,42.7934],[66.0376,42.3929],[66.0488,42.1109],[66.4486,41.8377],[66.5069,41.7331],[66.6943,41.3166],[67.8782,41.1359],[68.4646,40.6663],[69.1476,41.3736],[69.8741,41.7331],[70.6274,42.1059],[70.9402,42.2592]]]},properties:{name:"Uzbekistan"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[12.3624,41.8843],[12.4327,41.9402],[12.4897,41.9547],[12.5186,41.8784],[12.3911,41.869],[12.3624,41.8843]]]},properties:{name:"Vatican City"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.3573,13.1668],[-61.2124,13.473],[-61.0578,13.3956],[-61.1054,13.0698],[-61.3573,13.1668]]]},properties:{name:"Saint Vincent and The Grenadines"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-59.994,8.5334],[-59.9947,8.1428],[-60.6142,7.5487],[-60.4378,6.9909],[-61.2089,6.4133],[-61.2634,5.8625],[-60.7318,5.1961],[-60.7041,4.8701],[-61.0145,4.5424],[-62.4283,4.0929],[-62.9241,3.7234],[-64.5692,4.1305],[-64.0031,2.6686],[-63.5034,2.3999],[-63.4774,2.2297],[-64.2898,1.4973],[-65.4471,.8038],[-65.6926,.9257],[-66.2879,.8221],[-66.8698,1.2256],[-67.2208,2.3424],[-67.721,2.8964],[-67.3557,3.4424],[-67.8354,4.4178],[-67.8207,5.1931],[-67.4644,5.9946],[-67.5876,6.2176],[-69.3548,6.1185],[-70.0816,6.9418],[-71.9631,7.0539],[-72.3943,7.4355],[-72.4152,8.3431],[-72.8017,9.0532],[-73.3126,9.2426],[-72.7638,10.6322],[-71.9211,11.6612],[-71.3241,11.8457],[-71.9114,11.5009],[-71.5952,10.8613],[-70.322,11.3475],[-70.2244,11.9498],[-70.0181,12.1182],[-69.8586,11.9569],[-69.8887,11.5525],[-69.1734,11.4875],[-68.549,11.2224],[-68.2506,10.6699],[-67.9129,10.5131],[-66.2761,10.6192],[-65.7125,10.2685],[-65.0224,10.1064],[-64.039,10.4236],[-63.7676,10.6644],[-62.4112,10.6783],[-62.3189,10.6204],[-62.6974,10.4323],[-62.383,9.9678],[-61.3003,9.6877],[-60.858,9.3429],[-60.6854,8.6872],[-59.994,8.5334]]],[[[-63.8668,11.2606],[-63.7008,10.9783],[-63.8663,10.879],[-64.1632,10.8692],[-64.4483,11.0041],[-64.1757,11.1584],[-64.0732,11.0298],[-63.8668,11.2606]]]]},properties:{name:"Venezuela"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-64.8273,18.4534],[-64.5684,18.5125],[-64.44,18.4159],[-64.6272,18.2782],[-64.8273,18.4534]]]},properties:{name:"British Virgin Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-65.077,17.6065],[-65.0123,17.8202],[-64.7111,17.8491],[-64.6234,17.6811],[-65.077,17.6065]]]},properties:{name:"Us Virgin Islands"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[108.0236,21.5489],[107.7238,21.3719],[107.4317,20.8393],[106.8152,20.8642],[106.4903,20.2841],[105.8986,19.7262],[105.711,18.9371],[106.7883,17.33],[108.38,15.8786],[108.9017,15.1994],[109.3789,12.8643],[109.0658,11.5804],[107.4511,10.5171],[106.789,10.3884],[106.4598,9.6024],[104.991,8.6881],[104.8492,9.3839],[104.9907,9.979],[104.4386,10.4245],[105.2582,10.9203],[106.102,10.9073],[105.9956,11.599],[107.4792,12.4166],[107.5795,13.4943],[107.407,14.1765],[107.5561,14.6866],[107.5938,15.3404],[107.2941,15.8632],[107.3734,16.1224],[106.74,16.4137],[106.5116,16.9689],[105.1906,18.3486],[105.1551,18.6727],[103.9581,19.3062],[104.1919,19.6463],[104.6562,19.6942],[104.9197,20.0654],[104.5298,20.4333],[104.4887,20.719],[104.1421,20.9297],[103.665,20.7839],[103.2157,20.8666],[102.897,21.3822],[102.9271,21.7266],[102.1439,22.4007],[102.5296,22.6804],[102.9794,22.5457],[103.37,22.7152],[104.0941,22.6352],[105.3207,23.2985],[106.6447,22.8138],[106.7942,22.0576],[108.0236,21.5489]]],[[[104.0837,10.3015],[104.0134,10.1833],[103.9211,10.2872],[103.9706,10.4427],[104.0837,10.3015]]]]},properties:{name:"Vietnam"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[169.5451,-19.6006],[169.4505,-19.7089],[169.1717,-19.4341],[169.2756,-19.2419],[169.5451,-19.6006]]],[[[169.3591,-18.9369],[169.1993,-18.9746],[168.9984,-18.853],[169.0342,-18.6486],[169.1974,-18.6656],[169.3591,-18.9369]]],[[[168.5879,-17.6865],[168.3906,-17.8248],[168.1441,-17.6432],[168.3506,-17.4148],[168.5879,-17.6865]]],[[[168.406,-16.7999],[168.1437,-16.863],[168.0404,-16.6649],[168.1118,-16.551],[168.3718,-16.6504],[168.406,-16.7999]]],[[[168.3271,-16.3668],[168.1915,-16.4172],[167.941,-16.2296],[168.1646,-16.0315],[168.3271,-16.3668]]],[[[168.0146,-15.4002],[167.8673,-15.5386],[167.6182,-15.4341],[167.8009,-15.2574],[167.9876,-15.2345],[168.0146,-15.4002]]],[[[167.7941,-16.5119],[167.4671,-16.5344],[167.3834,-16.2251],[167.1851,-16.0832],[167.2145,-15.9171],[167.6049,-16.2251],[167.7941,-16.5119]]],[[[167.6703,-14.1518],[167.5679,-14.4519],[167.3281,-14.4111],[167.4253,-14.1354],[167.6703,-14.1518]]],[[[167.6132,-13.8992],[167.4784,-14.0795],[167.3037,-13.8348],[167.4843,-13.6113],[167.6132,-13.8992]]],[[[166.825,-15.1545],[166.9491,-15.1609],[166.9847,-14.9575],[167.1171,-14.9507],[167.2905,-15.5612],[167.2301,-15.735],[167.055,-15.6152],[166.778,-15.6407],[166.6537,-15.3919],[166.6773,-15.2426],[166.5505,-14.8535],[166.619,-14.6567],[166.761,-14.833],[166.825,-15.1545]]],[[[166.7624,-13.1032],[166.5578,-13.3178],[166.4214,-13.1446],[166.4616,-13.0012],[166.7322,-12.9822],[166.7624,-13.1032]]]]},properties:{name:"Vanuatu"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-176.0257,-13.2825],[-176.2605,-13.5069],[-176.3346,-13.2899],[-176.2092,-13.0355],[-176.0257,-13.2825]]]},properties:{name:"Wallis and Futuna"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[179.8851,51.9945],[179.6069,51.8073],[179.3511,51.9293],[179.6774,52.088],[179.8851,51.9945]]],[[[177.76,51.9239],[177.4784,51.8305],[177.3861,51.9458],[177.5436,52.2151],[177.76,51.9239]]],[[[173.1771,52.9586],[173.1834,52.7922],[172.9249,52.7443],[172.7832,52.8909],[172.6093,52.8666],[172.6692,53.0006],[173.1771,52.9586]]],[[[-67.2702,45.1886],[-66.9835,44.9097],[-68.2758,44.2472],[-68.3846,44.1914],[-69.9476,43.7632],[-70.3129,43.3347],[-70.6719,42.9137],[-70.768,42.4816],[-70.7354,42.334],[-70.5614,41.8794],[-70.7074,41.5642],[-72.7517,41.2539],[-72.904,41.1372],[-72.8531,40.845],[-74.0036,40.5421],[-74.1687,39.8466],[-74.5222,39.4016],[-74.8005,39.1919],[-75.2722,39.1532],[-75.1845,38.4685],[-75.6268,37.6941],[-76.0962,38.3308],[-76.2247,39.0578],[-76.3737,39.1491],[-76.3684,37.301],[-75.9375,36.544],[-75.9173,35.6802],[-76.3858,35.2758],[-76.6634,34.7175],[-78.8994,33.5851],[-80.6595,32.163],[-81.0733,31.5811],[-81.3883,30.8222],[-81.3479,30.2933],[-80.5855,28.5131],[-80.1642,26.9557],[-80.1978,25.8115],[-80.549,25.1714],[-81.1091,25.3183],[-82.1535,26.5466],[-82.739,27.775],[-82.8471,29.0099],[-83.8386,29.9165],[-84.289,29.9857],[-85.1412,29.7554],[-86.1958,30.2582],[-88.1274,30.4787],[-89.5133,30.1464],[-89.6035,29.9927],[-89.3631,29.8545],[-89.6524,29.4756],[-90.0133,29.4052],[-90.7805,29.2555],[-91.0362,29.3255],[-91.8794,29.5444],[-92.0339,29.7299],[-92.4404,29.6131],[-93.3831,29.7924],[-94.7819,29.6223],[-95.2861,29.0205],[-97.0261,28.1015],[-97.3091,27.599],[-97.3829,26.9252],[-97.1461,25.9561],[-98.2152,26.0797],[-99.0549,26.4642],[-99.5889,27.5721],[-100.2721,28.305],[-100.7311,29.1117],[-101.3814,29.6713],[-102.5338,29.7138],[-103.0936,29.1084],[-103.4137,29.0808],[-104.4209,29.6204],[-104.9579,30.5767],[-106.4688,31.7164],[-107.9988,31.7599],[-108.5185,31.3352],[-110.9234,31.3386],[-115.002,32.6693],[-117.1236,32.5346],[-117.66,33.4],[-119.5453,34.366],[-120.5355,34.5811],[-120.7439,35.1518],[-121.8039,36.2684],[-121.8909,36.8265],[-122.3564,37.2307],[-122.5427,37.8584],[-123.6126,38.8603],[-123.8577,39.7452],[-124.3149,40.3203],[-124.1112,41.4593],[-124.3579,42.334],[-124.4815,42.8651],[-124.3638,43.3347],[-124.1351,44.2472],[-123.9899,45.9257],[-124.5489,48.0587],[-124.2765,48.2617],[-122.933,48.2411],[-122.8092,49.0215],[-95.824,49.0008],[-95.0687,49.2416],[-94.2745,48.6951],[-92.9202,48.5702],[-91.5593,48.1211],[-91.0362,48.1534],[-90.7911,48.1805],[-90.0133,48.0688],[-89.6593,48.0179],[-89.435,47.9857],[-88.0434,48.1758],[-85.0831,46.9699],[-82.6251,45.3393],[-82.3354,44.2472],[-82.1811,43.6656],[-82.3027,43.3347],[-82.9607,42.0964],[-82.7186,41.7827],[-79.241,42.7271],[-79.0466,42.8794],[-79.0567,43.3347],[-79.0575,43.4429],[-78.7616,43.5853],[-76.8745,43.668],[-76.011,44.2472],[-74.9771,44.9407],[-71.7863,45.0078],[-70.8839,45.369],[-70.3752,45.8014],[-69.8084,46.8614],[-69.2777,47.3844],[-68.9977,47.3552],[-68.8921,47.206],[-68.3747,47.349],[-67.8174,47.0362],[-67.7815,46.0459],[-67.7647,45.7142],[-67.2702,45.1886]]],[[[-69.8183,41.6633],[-69.9354,41.4943],[-70.237,41.7523],[-70.0203,41.8592],[-69.8183,41.6633]]],[[[-81.1897,24.6405],[-81.4693,24.5676],[-81.6764,24.6585],[-81.437,24.8648],[-81.1897,24.6405]]],[[[-89.0385,29.2483],[-89.2514,29.03],[-89.4264,29.2328],[-89.2795,29.4033],[-89.0385,29.2483]]],[[[-119.9832,33.8457],[-120.1181,33.7975],[-120.3402,34.0121],[-119.9445,34.1235],[-119.9832,33.8457]]],[[[-140.9923,69.6172],[-140.9942,68.2307],[-140.999,64.7661],[-140.999,64.4949],[-141,60.5156],[-140.8352,60.2915],[-139.9046,60.2219],[-139.1645,60.3358],[-139.0965,60.0754],[-138.0988,59.5094],[-137.4221,58.9656],[-137.0381,59.0793],[-136.5724,59.1992],[-136.2508,59.5094],[-136.1363,59.635],[-135.4947,59.7832],[-135.0304,59.5094],[-134.5386,59.1177],[-133.4872,58.471],[-131.7547,56.6577],[-130.0102,55.9171],[-130.0093,55.9114],[-130.0119,55.9078],[-130.0242,55.9069],[-130.029,55.9048],[-130.0361,55.8913],[-130.0519,55.8767],[-130.0603,55.863],[-130.0891,55.8321],[-130.112,55.8225],[-130.1282,55.8218],[-130.1397,55.8162],[-130.1491,55.8006],[-130.1693,55.7792],[-130.1752,55.7593],[-130.1663,55.7451],[-130.1636,55.7334],[-130.1689,55.7143],[-130.1403,55.6937],[-130.1269,55.6753],[-130.1276,55.6446],[-130.1377,55.6287],[-130.1403,55.6126],[-130.1493,55.5965],[-130.14,55.5711],[-130.139,55.5535],[-130.1181,55.5273],[-130.115,55.5146],[-130.1061,55.4953],[-130.0619,55.2542],[-130.44,54.8695],[-130.5183,54.8695],[-130.534,54.8695],[-130.534,54.8628],[-130.5257,54.8622],[-130.5164,54.8536],[-130.5073,54.8338],[-130.5216,54.8246],[-130.5248,54.8182],[-130.534,54.8147],[-130.534,54.8105],[-130.534,54.8067],[-130.6423,54.7507],[-131.4035,55.0646],[-131.992,55.6064],[-132.2095,55.5914],[-132.1389,55.1308],[-132.3992,54.8623],[-132.878,54.9285],[-133.5288,55.4766],[-133.7269,56.1541],[-134.067,56.2619],[-134.1955,56.5645],[-134.0599,56.8656],[-133.6383,57.1463],[-133.6492,57.5041],[-133.8447,57.6161],[-134.4763,57.2893],[-134.7914,58.2695],[-135.077,58.6338],[-135.4452,58.3491],[-136.5879,58.3495],[-139.2481,59.3321],[-139.9775,59.7654],[-145.7361,60.2847],[-146.8959,60.8323],[-147.7155,60.9004],[-148.2782,60.7401],[-148.0373,60.3987],[-148.2365,60.041],[-151.4689,59.3299],[-151.5905,60.0891],[-151.2032,60.6379],[-150.6095,60.9727],[-150.7682,61.1379],[-151.6115,60.8802],[-153.8089,59.4121],[-153.9219,59.1562],[-153.6659,58.7197],[-154.4768,58.1019],[-156.0148,57.5013],[-156.7197,57.0129],[-158.2631,56.4289],[-159.0484,55.9308],[-160.3948,55.5631],[-160.681,55.2971],[-161.4111,55.4277],[-161.9879,55.1034],[-162.6444,55.0464],[-162.7133,55.3224],[-162.1446,55.6651],[-160.7428,55.9412],[-158.5296,57.0208],[-157.8319,57.6312],[-157.4129,58.5755],[-158.4358,58.762],[-159.0941,58.5567],[-160.2873,58.9094],[-160.9417,58.6572],[-161.4338,58.6784],[-161.7802,58.9542],[-161.992,59.6625],[-162.2754,59.9612],[-164.0544,59.9629],[-164.7925,60.3086],[-165.7555,61.5051],[-165.5572,62.1509],[-164.3354,63.0738],[-163.1606,63.1419],[-161.1527,63.6774],[-160.9492,63.9765],[-161.0236,64.5972],[-163.003,64.419],[-163.6588,64.5563],[-165.3792,64.5116],[-166.209,64.7067],[-167.1507,65.6045],[-164.4554,66.5191],[-163.2031,66.1033],[-162.0556,66.0908],[-161.4603,66.3159],[-161.8333,66.8187],[-163.3911,67.0937],[-164.355,67.6435],[-165.9368,68.2247],[-166.1372,68.5492],[-165.9563,68.7483],[-163.7403,69.1472],[-162.2064,70.1213],[-159.8727,70.7111],[-158.0854,70.8749],[-156.5917,71.2616],[-156.0296,71.2004],[-155.5742,70.9153],[-153.1711,70.8697],[-151.3528,70.4503],[-148.5162,70.3723],[-145.0148,70.0024],[-143.1852,70.0715],[-140.9923,69.6172]]],[[[-134.6337,56.3747],[-134.915,56.3747],[-135.405,56.908],[-135.4345,57.0361],[-135.8127,57.0551],[-135.883,57.425],[-136.5538,57.9476],[-136.0531,58.2318],[-135.6046,58.209],[-134.9212,57.9476],[-134.9026,57.425],[-134.7098,56.908],[-134.6337,56.3747]]],[[[-146.9694,60.204],[-147.2609,60.0512],[-147.2609,60.3555],[-146.9772,60.4021],[-146.9694,60.204]]],[[[-147.3685,59.857],[-147.6864,59.8094],[-147.8124,59.8909],[-147.4183,60.1161],[-147.3685,59.857]]],[[[-152.5848,58.0209],[-152.5625,57.9173],[-152.3302,57.9173],[-152.3188,57.5046],[-153.7286,57.1143],[-153.5949,56.911],[-153.8361,56.7244],[-154.0232,56.7622],[-153.8072,56.9858],[-153.8532,57.0813],[-154.3715,56.9442],[-154.505,57.0061],[-154.7022,57.4038],[-154.3715,57.6186],[-153.7744,57.5495],[-153.8399,57.8139],[-153.418,57.7503],[-153.2998,57.8924],[-153.3698,58.0166],[-152.8815,58.3418],[-152.5363,58.6297],[-152.5189,58.4237],[-152.1675,58.3129],[-152.1615,58.2119],[-152.5848,58.0209]]],[[[-154.0302,56.5127],[-154.2296,56.3788],[-154.4393,56.5479],[-154.2099,56.7322],[-154.0302,56.5127]]],[[[-155.5039,19.1318],[-155.6363,18.934],[-155.8808,19.03],[-155.8868,19.3317],[-156.0645,19.7297],[-155.8246,20.0258],[-155.8395,20.271],[-155.2752,20.0197],[-155.0799,19.8488],[-155.0864,19.7327],[-154.8084,19.5263],[-154.9698,19.3473],[-155.5039,19.1318]]],[[[-156.5749,21.0277],[-156.4834,20.8988],[-156.2319,20.9447],[-155.9741,20.7916],[-156.0237,20.64],[-156.3758,20.5574],[-156.4734,20.78],[-156.7248,20.937],[-156.5749,21.0277]]],[[[-156.7592,20.7216],[-157.0039,20.6577],[-157.0916,20.919],[-156.9886,21.0559],[-157.3309,21.1305],[-157.314,21.2879],[-156.8217,21.1585],[-156.8809,21.0075],[-156.7592,20.7216]]],[[[-157.6617,21.3113],[-158.1021,21.3025],[-158.2659,21.5706],[-157.9689,21.7011],[-157.6617,21.3113]]],[[[-159.3151,21.9515],[-159.438,21.8529],[-159.8096,22.017],[-159.5848,22.2382],[-159.2953,22.1938],[-159.3151,21.9515]]],[[[-159.4398,55.0989],[-159.6772,54.9481],[-159.7703,55.0969],[-159.7225,55.2509],[-159.4637,55.2712],[-159.4398,55.0989]]],[[[-162.2022,54.3381],[-162.6927,54.297],[-162.6796,54.4941],[-162.2558,54.4585],[-162.2022,54.3381]]],[[[-163.1577,55.1258],[-163.1176,54.9135],[-163.2888,54.6982],[-163.5876,54.6159],[-164.0979,54.6215],[-164.3468,54.4707],[-164.6443,54.3934],[-164.8352,54.4229],[-164.9374,54.5787],[-164.6891,54.6608],[-164.5457,54.886],[-164.2187,54.8949],[-163.8926,55.033],[-163.5387,55.0482],[-163.363,54.9809],[-163.1577,55.1258]]],[[[-165.638,59.9732],[-166.2902,59.7757],[-167.1355,60.0781],[-167.1717,60.1323],[-167.1303,60.1826],[-166.3709,60.3711],[-165.7389,60.306],[-165.638,59.9732]]],[[[-165.7769,54.0967],[-165.8468,53.9993],[-166.0799,54.0133],[-166.1784,54.1223],[-165.9863,54.2616],[-165.8601,54.2553],[-165.7769,54.0967]]],[[[-165.9588,61.5724],[-166.0564,61.3855],[-166.1855,61.4286],[-166.2785,61.6215],[-166.2244,61.7348],[-166.0387,61.7],[-165.9588,61.5724]]],[[[-166.3934,53.6565],[-167.0445,53.4444],[-167.1136,53.489],[-167.0674,53.8859],[-166.7916,53.9907],[-166.3831,53.7556],[-166.3934,53.6565]]],[[[-167.4326,53.2224],[-167.691,53.1901],[-167.8322,53.3117],[-167.7903,53.4018],[-167.4068,53.4039],[-167.4326,53.2224]]],[[[-168.4378,53.0095],[-168.7531,52.9657],[-168.8105,53.0663],[-168.1863,53.532],[-168.0207,53.4027],[-168.3378,53.1728],[-168.4378,53.0095]]],[[[-170.2934,63.6864],[-170.0521,63.4841],[-169.5379,63.3711],[-168.8183,63.3101],[-168.8585,63.1479],[-169.3735,63.1519],[-169.7555,62.9609],[-169.8629,63.0987],[-170.2866,63.1895],[-170.6176,63.3687],[-171.0831,63.4236],[-171.3979,63.323],[-171.7362,63.3687],[-171.8437,63.4841],[-171.7947,63.6294],[-171.5342,63.66],[-170.8959,63.5729],[-170.6443,63.6678],[-170.2934,63.6864]]],[[[-170.141,57.0375],[-170.3448,56.9501],[-170.7134,57.028],[-170.5861,57.1467],[-170.2278,57.1272],[-170.141,57.0375]]],[[[-174.0122,52.127],[-174.459,52.127],[-174.5138,52.1819],[-174.3614,52.3199],[-174.0676,52.3741],[-174.0122,52.127]]],[[[-175.8817,51.9613],[-176.2253,51.8894],[-176.301,52.0951],[-176.0227,52.1711],[-175.8817,51.9613]]],[[[-176.483,51.7738],[-176.7545,51.6424],[-176.9307,51.8314],[-176.7189,51.9623],[-176.483,51.7738]]],[[[-177.7821,51.7965],[-177.9155,51.6188],[-178.1504,51.6563],[-178.0961,51.9444],[-177.7821,51.7965]]]]},properties:{name:"United States"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-171.5311,-13.9149],[-171.5794,-14.0384],[-171.9186,-14.0083],[-172.0308,-13.8761],[-171.8332,-13.7882],[-171.5311,-13.9149]]],[[[-172.1378,-13.6745],[-172.5407,-13.8272],[-172.764,-13.5574],[-172.2869,-13.4376],[-172.1378,-13.6745]]]]},properties:{name:"Samoa"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[112.5204,16.7931],[112.3207,16.6434],[112.1436,16.916],[112.2708,16.9745],[112.5187,16.901],[112.5204,16.7931]]],[[[111.4671,15.9211],[111.235,15.6204],[111.0326,15.7651],[111.1423,15.9214],[111.4671,15.9211]]]]},properties:{name:"Paracel Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[114.1161,10.9954],[114.1834,11.1959],[114.2851,11.2327],[114.4818,11.0087],[114.3172,10.8856],[114.1161,10.9954]]]},properties:{name:"Spratly Islands"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[78.9227,33.3924],[78.7315,33.6703],[78.7594,34.0457],[78.9227,34.1568],[78.9227,34.3701],[78.6855,34.5165],[78.3085,34.6245],[78.2078,34.7534],[77.9244,35.4936],[79.3089,35.9267],[80.2549,35.3651],[80.0029,34.6687],[79.4735,34.1377],[78.9826,33.9808],[78.9227,33.3924]]]},properties:{name:"Aksai Chin"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[97.3471,28.2081],[97.3443,27.9963],[97.0575,27.7441],[96.3086,28.1895],[95.7527,28.2572],[94.2529,27.5398],[93.6616,26.9837],[93.2491,26.9504],[92.697,26.9058],[92.1079,26.8583],[92.0573,27.3683],[91.6596,27.5403],[91.6421,27.7585],[92.5723,27.901],[92.697,28.0134],[93.2491,28.5107],[93.3732,28.6225],[94.4925,29.2273],[95.4413,29.1482],[96.0434,29.4013],[96.2042,29.0341],[96.5583,28.8405],[96.4079,28.4508],[97.3471,28.2081]]]},properties:{name:"Arunachal Pradesh"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[80.2176,30.583],[79.9526,30.8744],[79.9683,30.8862],[79.9765,30.8862],[79.992,30.8796],[80.0006,30.867],[80.0258,30.8423],[80.0453,30.813],[80.0753,30.8041],[80.0915,30.7919],[80.139,30.7844],[80.1519,30.7916],[80.165,30.804],[80.18,30.8069],[80.1945,30.7983],[80.2025,30.7824],[80.2144,30.7763],[80.2208,30.7651],[80.2269,30.7622],[80.2385,30.7621],[80.2475,30.7563],[80.2554,30.7378],[80.2545,30.7176],[80.2383,30.7087],[80.2244,30.6883],[80.2044,30.6848],[80.1928,30.6743],[80.2064,30.6634],[80.2218,30.6396],[80.2201,30.6353],[80.2061,30.6279],[80.2058,30.6217],[80.2241,30.6046],[80.2176,30.583]]],[[[79.2537,32.5233],[79.1467,33.1883],[79.3416,33.1356],[79.5132,32.7273],[79.2537,32.5233]]],[[[79.4224,31.064],[79.138,31.003],[78.8882,31.2723],[79.1149,31.3794],[79.4224,31.064]]],[[[78.769,31.9377],[78.5766,32.0593],[78.4736,32.2395],[78.6791,32.0931],[78.769,31.9377]]]]},properties:{name:"China/India"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[36.8825,22.0051],[34.5937,22.003],[34.0865,22.0025],[34.2134,22.2],[34.5937,22.2811],[34.9524,22.7943],[35.6218,23.1455],[35.8194,22.8034],[36.8825,22.0051]]]},properties:{name:"Hala'Ib Triangle"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[35.5088,4.62],[34.3785,4.62],[34.5428,4.7504],[35.2489,4.9563],[35.5088,4.62]]]},properties:{name:"Ilemi Triangle"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[77.9244,35.4936],[78.2078,34.7534],[78.3085,34.6245],[78.6855,34.5165],[78.9227,34.3701],[78.9227,34.1568],[78.7594,34.0457],[78.7315,33.6703],[78.9227,33.3924],[79.1467,33.1883],[79.2537,32.5233],[78.9227,32.3637],[78.7005,32.6471],[78.398,32.5232],[77.7621,32.9237],[77.3152,32.8606],[76.5852,33.1567],[75.3339,32.3266],[73.6386,33.1515],[73.4315,34.3917],[73.7156,34.7534],[74.0657,35.092],[73.7903,35.2386],[73.7126,35.5074],[73.2944,35.6086],[73.049,35.8283],[72.6179,35.8638],[72.5308,36.0297],[72.5938,36.2273],[73.2944,36.7238],[73.6909,36.7433],[73.6393,36.9034],[74.5646,37.0309],[75.3164,36.9453],[75.8285,36.6678],[76.1908,35.877],[77.318,35.4964],[77.9244,35.4936]]]},properties:{name:"Jammu Kashmir"}}]},Dae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),{queryVariablesFilters:i,isExportingPdf:l,selectedUnit:r}=iee(),o=lee(a),{chartTheme:s,agChartColorMap:d}=(0,f.useAgChartsTheme)(n.colors),{data:c,loading:u,error:p,refetch:m}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:i,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Country"}]}}}),y=(0,g.useMemo)(()=>jee(c?.getDashboardTileData)?.map(e=>({...e,Country:e.Country,CO2e:hee(e.CO2e,{originalUnit:"kg",targetUnit:r})})),[c,r]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:s,width:o,topology:Rae,data:y||[],zoom:{enabled:!0},series:[{type:"map-shape-background"},{type:"map-shape",title:"Carbon emissions",idKey:"Country",colorKey:"CO2e",colorRange:[d[f.AgChartColor.GREEN_1],d[f.AgChartColor.BLUE_1]],colorName:`${r}CO2e`,tooltip:{renderer:e=>({data:[{label:`${r}CO2e`,value:kee(e.datum.CO2e,{selectedUnit:r})}]})}}],gradientLegend:{enabled:!0,position:"right",gradient:{preferredLength:200,thickness:2},scale:{label:{fontSize:10,formatter:e=>Nee(e.value)}}}}),[y,s,o,r,d]);return(0,fe.jsx)(Kte,{title:n.title||`Carbon by country map (${r}CO2e)`,loading:u,error:p,retry:m,noData:h,ref:a,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},l?"exporting-pdf":void 0)},Lae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,selectedUnit:s}=iee(),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Country"}]}}}),m=(0,g.useMemo)(()=>jee(d?.getDashboardTileData)?.map(e=>({...e,Country:e.Country,CO2e:hee(e.CO2e,{originalUnit:"kg",targetUnit:s})}))?.sort((e,n)=>Number(n.CO2e)-Number(e.CO2e)).slice(0,3),[d,s]),f=Boolean(m&&0===m.length),y=(0,g.useMemo)(()=>[{headerName:"Country",field:"Country"},{headerName:`${s}CO2e`,field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:s})}],[s]);return(0,fe.jsx)(Kte,{title:n.title||"Top 3 countries by emissions",loading:c,error:u,retry:p,noData:f,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-Top3CarbonEmissionsCountriesTableTile`,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:y,rowData:m}})})},Iae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,selectedUnit:s}=iee(),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Country"}]}}}),m=(0,g.useMemo)(()=>jee(d?.getDashboardTileData)?.map(e=>({...e,Country:e.Country,CO2e:hee(e.CO2e,{originalUnit:"kg",targetUnit:s})}))?.sort((e,n)=>Number(n.CO2e)-Number(e.CO2e)).slice(-3),[d,s]),f=m&&0===m.length,y=(0,g.useMemo)(()=>[{headerName:"Country",field:"Country"},{headerName:`${s}CO2e`,field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:s})}],[s]);return(0,fe.jsx)(Kte,{title:n.title||"Bottom 3 countries by emissions",loading:c,error:u,retry:p,noData:f,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-Bottom3CarbonEmissionsCountriesTableTile`,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:y,rowData:m}})})},jae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,filters:s}=iee(),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"Quantity",aggregationType:gn.DF.Sum}],partitions:[{field:"Department1"},{field:"Scope"},{field:"Type"},{field:"Tariff"},{field:"FuelType"},{field:"Unit"}]}}}),m=(0,g.useMemo)(()=>jee(d?.getDashboardTileData)?.map(e=>({...e,Department:xee(e.Department1),Scope:xee(e.Scope),Type:xee(e.Type),"Tariff/FuelType":"Fuel"===e.Type?xee(e.FuelType):"Electricity"===e.Type?xee(e.Tariff):"N/A",Unit:xee(e.Unit),Quantity:hee(e.Quantity)}))?.sort((e,n)=>e.Department!==n.Department?e.Department.toLowerCase().localeCompare(n.Department.toLowerCase()):e.Scope!==n.Scope?e.Scope.toLowerCase().localeCompare(n.Scope.toLowerCase()):e.Type!==n.Type?e.Type.toLowerCase().localeCompare(n.Type.toLowerCase()):e.Unit!==n.Unit?e.Unit.toLowerCase().localeCompare(n.Unit.toLowerCase()):e["Tariff/FuelType"].toLowerCase().localeCompare(n["Tariff/FuelType"].toLowerCase())),[d]),f=m&&0===m.length,y=(0,g.useMemo)(()=>[{headerName:"Department",field:"Department",rowGroup:!0,hide:!0},{headerName:"Scope",field:"Scope",rowGroup:!0,hide:!0},{headerName:"Source",field:"Type",rowGroup:!0,hide:!0},{headerName:"Tariff/FuelType",field:"Tariff/FuelType",rowGroup:!0,hide:!0},{headerName:"Unit",field:"Unit"},{headerName:"Quantity",field:"Quantity",aggFunc:"sum",valueFormatter:e=>kee(e.value)}],[]);return(0,g.useEffect)(()=>{i.current?.gridApi?.resetColumnState()},[s]),(0,fe.jsx)(Kte,{title:n.title||"Resource use by scope",loading:c,error:u,retry:p,noData:f,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-ResourcesUsedByScopeTableTile`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:y,rowData:m}})})},wae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),{queryVariablesFilters:i}=iee(),l=lee(a),{data:r,loading:o,error:s,refetch:d}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:i,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"Quantity",aggregationType:gn.DF.Count}],partitions:[{field:"Accuracy"}]}}}),{chartTheme:c,legendTheme:u}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.GREEN_1,f.AgChartColor.PINK_1]),p=(0,g.useMemo)(()=>{const e=jee(r?.getDashboardTileData)?.map(e=>({...e,Quantity:Number(e.Quantity),Accuracy:Eee(e.Accuracy)})).reduce((e,n)=>{const t=e.find(e=>e.Accuracy===n.Accuracy);return t?t.Quantity+=n.Quantity:e.push({Accuracy:n.Accuracy,Quantity:n.Quantity}),e},[])||[],n=e.reduce((e,n)=>e+n.Quantity,0);return e.map(e=>({...e,Percent:n>0?e.Quantity/n*100:0}))},[r]),m=0===p.length,y=(0,g.useMemo)(()=>({theme:c,legend:u,width:l,data:p||[],zoom:{enabled:!0},series:[{type:"pie",fillOpacity:1,angleKey:"Quantity",calloutLabelKey:"Accuracy",sectorLabelKey:"Percent",sectorLabel:{formatter:e=>{let{value:n}=e;return`${n.toFixed(1)}%`}},tooltip:{renderer:e=>{let{datum:n}=e;const t=Number(n.Percent??0);return{title:n.Accuracy,content:`${t.toFixed(1)}% (${n.Quantity})`}}}}]}),[p,c,l,u]);return(0,fe.jsx)(Kte,{title:n.title||"Proportion of Actual datapoints vs Estimated datapoints",loading:o,error:s,retry:d,noData:m,ref:a,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:y})})})},Oae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,filters:s}=iee(),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"Quantity",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Department1"},{field:"Tag1"},{field:"Tag2"},{field:"Tag3"},{field:"Tag4"},{field:"Tag5"},{field:"LocationName"},{field:"Type"},{field:"Unit"}]}}}),{dates:m,rows:f}=(0,g.useMemo)(()=>{const e=function(e,n){const t=e??[],a=n.emptyDateLabel??"N/A",i=n.fillValue??0,l=n.totalKey??"TotalQuantity",r=new Set,o=new Map;for(const e of t){const t=Oee(e[n.dateKey]).trim()||a;r.add(t);const i=n.groupBy.map(n=>Oee(e[n]).trim()).join(""),s=wee(e[n.valueKey]),d=o.get(i);if(!d){const a={};for(const t of n.groupBy)a[String(t)]=e[t];a[t]=s,a[l]=s,o.set(i,a);continue}d[t]=wee(d[t])+s,d[l]=wee(d[l])+s}const s=Array.from(r).sort((e,n)=>e.localeCompare(n));for(const e of o.values()){for(const n of s)void 0===e[n]&&(e[n]=i);void 0===e[l]&&(e[l]=i)}return{dates:s,rows:Array.from(o.values())}}(jee(d?.getDashboardTileData)?.map(e=>({...e,Date:xee(e.Month),Department:xee(e.Department1),Tags:[e.Tag1,e.Tag2,e.Tag3,e.Tag4,e.Tag5].filter(e=>!uee(e)).join(", ")||"N/A",LocationName:xee(e.LocationName),Type:xee(e.Type),Unit:xee(e.Unit),Quantity:hee(e.Quantity)}))??[],{groupBy:["Department","Tags","LocationName","Type","Unit"],dateKey:"Date",valueKey:"Quantity",totalKey:"TotalQuantity",fillValue:0});return e.rows.sort((e,n)=>{const t=String(e.Department??""),a=String(n.Department??"");if(t!==a)return t.toLowerCase().localeCompare(a.toLowerCase());const i=String(e.Tags??""),l=String(n.Tags??"");if(i!==l)return i.toLowerCase().localeCompare(l.toLowerCase());const r=String(e.LocationName??""),o=String(n.LocationName??"");if(r!==o)return r.toLowerCase().localeCompare(o.toLowerCase());const s=String(e.Type??""),d=String(n.Type??"");if(s!==d)return s.toLowerCase().localeCompare(d.toLowerCase());const c=String(e.Unit??""),u=String(n.Unit??"");return c.toLowerCase().localeCompare(u.toLowerCase())}),e},[d]),y=f&&0===f.length,h=(0,g.useMemo)(()=>[{headerName:"Department",field:"Department",rowGroup:!0,hide:!0},{headerName:"Tags",field:"Tags",rowGroup:!0,hide:!0},{headerName:"Location",field:"LocationName",rowGroup:!0,hide:!0},{headerName:"Type",field:"Type",rowGroup:!0,hide:!0},{headerName:"Unit",field:"Unit"},...m.map(e=>({headerName:bee(e),field:e,aggFunc:"sum",valueFormatter:e=>kee(e.value)})),{headerName:"Total quantity",field:"TotalQuantity",aggFunc:"sum",valueFormatter:e=>kee(e.value)}],[m]);return(0,g.useEffect)(()=>{i.current?.gridApi?.resetColumnState()},[s]),(0,fe.jsx)(Kte,{title:n.title||"Resource use by location",loading:c,error:u,retry:p,noData:y,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-ResourcesUsedByLocationTableTile`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:h,rowData:f}})})},Eae=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,filters:s}=iee(),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"Quantity",aggregationType:gn.DF.Sum},{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Tag1"},{field:"Department1"},{field:"LocationName"},{field:"Type"},{field:"Unit"},{field:"MeterName"},{field:"Accuracy"}]}}}),m=(0,g.useMemo)(()=>jee(d?.getDashboardTileData)?.map(e=>({...e,Tag:xee(e.Tag1),Department:xee(e.Department1),LocationName:xee(e.LocationName),Type:xee(e.Type),Unit:xee(e.Unit),MeterName:xee(e.MeterName),Accuracy:Eee(e.Accuracy),Quantity:hee(e.Quantity),CO2e:hee(e.CO2e)}))?.sort((e,n)=>e.Tag1!==n.Tag1?e.Tag1.toLowerCase().localeCompare(n.Tag1.toLowerCase()):e.Department!==n.Department?e.Department.toLowerCase().localeCompare(n.Department.toLowerCase()):e.LocationName!==n.LocationName?e.LocationName.toLowerCase().localeCompare(n.LocationName.toLowerCase()):e.Type!==n.Type?e.Type.toLowerCase().localeCompare(n.Type.toLowerCase()):e.Unit!==n.Unit?e.Unit.toLowerCase().localeCompare(n.Unit.toLowerCase()):e.MeterName!==n.MeterName?e.MeterName.toLowerCase().localeCompare(n.MeterName.toLowerCase()):e.Accuracy.toLowerCase().localeCompare(n.Accuracy.toLowerCase())),[d]),f=Boolean(m&&0===m.length),y=(0,g.useMemo)(()=>[{headerName:"Tag",field:"Tag",rowGroup:!0,hide:!0},{headerName:"Department",field:"Department",rowGroup:!0,hide:!0},{headerName:"Location",field:"LocationName",rowGroup:!0,hide:!0},{headerName:"Type",field:"Type",rowGroup:!0,hide:!0},{headerName:"Unit",field:"Unit",rowGroup:!0,hide:!0},{headerName:"Meter",field:"MeterName",rowGroup:!0,hide:!0},{headerName:"Accuracy",field:"Accuracy",rowGroup:!0,hide:!0},{headerName:"Quantity",field:"Quantity",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"CO2e",field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value)}],[]);return(0,g.useEffect)(()=>{i.current?.gridApi?.resetColumnState()},[s]),(0,fe.jsx)(Kte,{title:n.title||"Breakdown including meter name and accuracy",loading:c,error:u,retry:p,noData:f,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-QuantityAndCO2eByLocationAndMeterTableTile`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:y,rowData:m}})})},_ae=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
`,Fae=(0,f.styled)(f.Text)`
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
  color: ${e=>{let{color:n,theme:t}=e;return"green"===n?t.palette.success.main:"red"===n?t.palette.error.main:t.sys.color.onSurfaceVariant}};
`,Pae=e=>{let{cellRendererParams:n,valueKey:t,doesMoreMeanPositive:a=!1,selectedUnit:i=""}=e;const l=n.node?.aggData[`pivot_Date_Period 1_${t}`]||0,r=n.node?.aggData[`pivot_Date_Period 2_${t}`]||0,o=(0,g.useMemo)(()=>l&&r?(r-l)/l*100:0,[l,r]),s=(0,g.useMemo)(()=>o>0?a?"green":"red":o<0?a?"red":"green":"none",[o,a]),d=(0,g.useMemo)(()=>o>0?"+":"",[o]);return(0,fe.jsxs)(_ae,{color:s,children:[kee(r,{selectedUnit:i})," ",o?(0,fe.jsxs)(Fae,{color:s,children:[d,o.toFixed(),"%"]}):null]})},Bae=(e,n,t)=>{const{valueColumn:a}=n,{transform:i}=a,{selectedUnit:l,withVat:r}=t;if("numeric"===i.kind){const n={};return i.unitOptions&&(n.originalUnit=i.unitOptions.originalUnit,n.targetUnit=l),"withVat"===i.withVatKey&&(n.withVat=r),hee(e[i.field],n)}if("percentage"===i.kind)return hee(e[i.numeratorField],{percentageOverTotal:Number(e[i.denominatorField])});if("costPerWeight"===i.kind){const n=hee(e[i.costField],i.withVatKey?{withVat:r}:void 0),t=e[i.weightField];if(!t||0===Number(t))return 0;const a=i.weightUnitOptions?hee(t,{originalUnit:i.weightUnitOptions.originalUnit,targetUnit:l}):Number(t);return a?n/a:0}if("averageChargePerKwh"===i.kind){const n=Number(e[i.costField])||0,t=Number(e[i.quantityField])||0;if(!t)return 0;const a=i.withVatKey&&r?1.2:1;return hee(String(n/(t*a)))}return 0},Uae=e=>{let{tile:n,config:t}=e;const a=Je(),i=(0,g.useRef)(null),l=(0,g.useRef)(null),{queryVariablesFilters:r,activeSheet:o,dashboardId:s,filters:d,selectedUnit:c,withVat:u}=iee(),p=(0,g.useMemo)(()=>({functions:t.aggregationFunctions,partitions:[{field:t.periodField,partitionFunction:gn.v7.Period,...t.periodAlias&&{alias:t.periodAlias}},...t.groupPartitionFields.map(e=>{let{field:n}=e;return{field:n}})]}),[t]),{data:m,loading:f,error:y,refetch:h}=(0,x.IT)(bte,{variables:{accountId:a,datasetFilters:r,datasetName:t.datasetName,aggregation:p}}),T=(0,g.useMemo)(()=>({selectedUnit:c,withVat:u}),[c,u]),b=(0,g.useMemo)(()=>{const e=jee(m?.getDashboardTileData);return e?e.map(e=>({...e,Date:xee(e.Period??e[t.periodAlias??"Period"]??""),...Object.fromEntries(t.groupPartitionFields.map(n=>{let{field:t}=n;return[t,xee(e[t])]})),[t.valueColumn.field]:Bae(e,t,T)})).sort((e,n)=>String(e.Date).localeCompare(String(n.Date))):null},[m,t,T]),v=Boolean(b&&0===b.length),C=(0,g.useMemo)(()=>{const e="function"==typeof t.valueColumn.headerName?t.valueColumn.headerName({selectedUnit:c,withVat:u}):t.valueColumn.headerName;return[...t.groupPartitionFields.map(e=>{let{field:n,headerName:t}=e;return{headerName:t,field:n,rowGroup:!0,hide:!0}}),{headerName:"Period",field:"Date",pivot:!0},{headerName:e,field:t.valueColumn.field,aggFunc:"sum",cellRenderer:e=>e.colDef?.field?.includes("Period 2")?(0,fe.jsx)(Pae,{cellRendererParams:e,valueKey:t.valueColumn.valueKey,selectedUnit:"numeric"===t.valueColumn.transform.kind&&t.valueColumn.transform.unitOptions?c??"":"",doesMoreMeanPositive:t.valueColumn.doesMoreMeanPositive}):kee(e.value,{selectedUnit:"numeric"===t.valueColumn.transform.kind&&t.valueColumn.transform.unitOptions?c:void 0})}]},[t,c,u]),k=n.title??("function"==typeof t.defaultTitle?t.defaultTitle({selectedUnit:c,withVat:u}):t.defaultTitle);return(0,g.useEffect)(()=>{l.current?.gridApi?.resetColumnState()},[d]),(0,fe.jsx)(Kte,{title:k,loading:f,error:y,retry:h,noData:v,ref:i,children:(0,fe.jsx)(uae,{pivotModeEnabled:!0,ref:l,gridKey:`${a}-${s}-${o}-${t.tileTypeId}`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:C,rowData:b,pivotMode:!0}})})},$ae=(e,n)=>({tileTypeId:e,datasetName:"",periodField:"Date",aggregationFunctions:[],groupPartitionFields:[],valueColumn:{field:"",headerName:"",valueKey:"",transform:{kind:"numeric",field:""}},defaultTitle:"",...n}),Mae=e=>({datasetName:"CarbonByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[e],valueColumn:{field:"CO2e",headerName:e=>`Emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}},doesMoreMeanPositive:!1},defaultTitle:n=>`Emissions by ${e.headerName.toLowerCase()} (${n?.selectedUnit??"kg"}CO2e)`}),Vae=e=>({datasetName:"CarbonByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],groupPartitionFields:[e],valueColumn:{field:"TotalCost",headerName:"Total cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost",withVatKey:"withVat"},doesMoreMeanPositive:!1},defaultTitle:n=>`Cost by ${e.headerName.toLowerCase()} (£) ${Aee(n?.withVat??!1)}`}),Gae={[gn.Rh.ElectricityConsumptionByLocationPeriodComparisonTableTile]:$ae("ElectricityConsumptionByLocationPeriodComparisonTableTile",{datasetName:"ElectricityByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"Quantity",headerName:"Consumption (kWh)",valueKey:"Quantity",transform:{kind:"numeric",field:"Quantity"}},defaultTitle:"Consumption by location (kWh)"}),[gn.Rh.ElectricityConsumptionByTagPeriodComparisonTableTile]:$ae("ElectricityConsumptionByTagPeriodComparisonTableTile",{datasetName:"ElectricityByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"Quantity",headerName:"Consumption (kWh)",valueKey:"Quantity",transform:{kind:"numeric",field:"Quantity"}},defaultTitle:"Consumption by tag (kWh)"}),[gn.Rh.ElectricityCostByLocationPeriodComparisonTableTile]:$ae("ElectricityCostByLocationPeriodComparisonTableTile",{datasetName:"ElectricityByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost",withVatKey:"withVat"}},defaultTitle:e=>`Cost by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.ElectricityCostByTagPeriodComparisonTableTile]:$ae("ElectricityCostByTagPeriodComparisonTableTile",{datasetName:"ElectricityByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost",withVatKey:"withVat"}},defaultTitle:e=>`Cost by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.ElectricityGrossCarbonEmissionsByLocationPeriodComparisonTableTile]:$ae("ElectricityGrossCarbonEmissionsByLocationPeriodComparisonTableTile",{datasetName:"ElectricityByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CO2e",headerName:e=>`Gross emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Gross carbon emissions by location (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.ElectricityGrossCarbonEmissionsByTagPeriodComparisonTableTile]:$ae("ElectricityGrossCarbonEmissionsByTagPeriodComparisonTableTile",{datasetName:"ElectricityByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CO2e",headerName:e=>`Gross emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Gross carbon emissions by tag (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.ElectricityNetCarbonEmissionsByLocationPeriodComparisonTableTile]:$ae("ElectricityNetCarbonEmissionsByLocationPeriodComparisonTableTile",{datasetName:"ElectricityByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CO2e",headerName:e=>`Net emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Net carbon emissions by location (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.ElectricityNetCarbonEmissionsByTagPeriodComparisonTableTile]:$ae("ElectricityNetCarbonEmissionsByTagPeriodComparisonTableTile",{datasetName:"ElectricityByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CO2e",headerName:e=>`Net emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Net carbon emissions by tag (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.CarbonEmissionsByLocationPeriodComparisonTableTile]:$ae("CarbonEmissionsByLocationPeriodComparisonTableTile",Mae({field:"LocationName",headerName:"Location"})),[gn.Rh.CarbonEmissionsByTagPeriodComparisonTableTile]:$ae("CarbonEmissionsByTagPeriodComparisonTableTile",Mae({field:"Tag1",headerName:"Tag"})),[gn.Rh.CarbonEmissionsByScopePeriodComparisonTableTile]:$ae("CarbonEmissionsByScopePeriodComparisonTableTile",Mae({field:"Scope",headerName:"Scope"})),[gn.Rh.CarbonEmissionsByResourcePeriodComparisonTableTile]:$ae("CarbonEmissionsByResourcePeriodComparisonTableTile",Mae({field:"Type",headerName:"Resource"})),[gn.Rh.CarbonCostByLocationPeriodComparisonTableTile]:$ae("CarbonCostByLocationPeriodComparisonTableTile",Vae({field:"LocationName",headerName:"Location"})),[gn.Rh.CarbonCostByTagPeriodComparisonTableTile]:$ae("CarbonCostByTagPeriodComparisonTableTile",Vae({field:"Tag1",headerName:"Tag"})),[gn.Rh.CarbonCostByScopePeriodComparisonTableTile]:$ae("CarbonCostByScopePeriodComparisonTableTile",Vae({field:"Scope",headerName:"Scope"})),[gn.Rh.CarbonCostByResourcePeriodComparisonTableTile]:$ae("CarbonCostByResourcePeriodComparisonTableTile",Vae({field:"Type",headerName:"Resource"})),[gn.Rh.WasteWeightByLocationPeriodComparisonTableTile]:$ae("WasteWeightByLocationPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"Quantity",headerName:e=>`Weight (${e?.selectedUnit??"t"})`,valueKey:"Quantity",transform:{kind:"numeric",field:"Quantity(t)",unitOptions:{originalUnit:"t",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Weight by location (${e?.selectedUnit??"t"})`}),[gn.Rh.WasteWeightByTagPeriodComparisonTableTile]:$ae("WasteWeightByTagPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"Quantity",headerName:e=>`Weight (${e?.selectedUnit??"t"})`,valueKey:"Quantity",transform:{kind:"numeric",field:"Quantity(t)",unitOptions:{originalUnit:"t",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Weight by tag (${e?.selectedUnit??"t"})`}),[gn.Rh.WasteWeightByContractorPeriodComparisonTableTile]:$ae("WasteWeightByContractorPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"WasteContractor",headerName:"Contractor"}],valueColumn:{field:"Quantity",headerName:e=>`Weight (${e?.selectedUnit??"t"})`,valueKey:"Quantity",transform:{kind:"numeric",field:"Quantity(t)",unitOptions:{originalUnit:"t",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Weight by contractor (${e?.selectedUnit??"t"})`}),[gn.Rh.WasteWeightByTreatmentProcessPeriodComparisonTableTile]:$ae("WasteWeightByTreatmentProcessPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"TreatmentProcess",headerName:"Treatment process"}],valueColumn:{field:"Quantity",headerName:e=>`Weight (${e?.selectedUnit??"t"})`,valueKey:"Quantity",transform:{kind:"numeric",field:"Quantity(t)",unitOptions:{originalUnit:"t",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Weight by treatment process (${e?.selectedUnit??"t"})`}),[gn.Rh.WasteCarbonEmissionsByLocationPeriodComparisonTableTile]:$ae("WasteCarbonEmissionsByLocationPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e(kg)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CO2e(kg)",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e(kg)",transform:{kind:"numeric",field:"CO2e(kg)",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by location (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.WasteCarbonEmissionsByTagPeriodComparisonTableTile]:$ae("WasteCarbonEmissionsByTagPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e(kg)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CO2e(kg)",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e(kg)",transform:{kind:"numeric",field:"CO2e(kg)",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by tag (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.WasteCarbonEmissionsByContractorPeriodComparisonTableTile]:$ae("WasteCarbonEmissionsByContractorPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e(kg)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"WasteContractor",headerName:"Contractor"}],valueColumn:{field:"CO2e(kg)",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e(kg)",transform:{kind:"numeric",field:"CO2e(kg)",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by contractor (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.WasteCarbonEmissionsByTreatmentProcessPeriodComparisonTableTile]:$ae("WasteCarbonEmissionsByTreatmentProcessPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e(kg)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"TreatmentProcess",headerName:"Treatment process"}],valueColumn:{field:"CO2e(kg)",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e(kg)",transform:{kind:"numeric",field:"CO2e(kg)",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by treatment process (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.WasteCostByLocationPeriodComparisonTableTile]:$ae("WasteCostByLocationPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"TotalCost",headerName:"Total cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WasteCostByTagPeriodComparisonTableTile]:$ae("WasteCostByTagPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"TotalCost",headerName:"Total cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WasteCostByContractorPeriodComparisonTableTile]:$ae("WasteCostByContractorPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"WasteContractor",headerName:"Contractor"}],valueColumn:{field:"TotalCost",headerName:"Total cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by contractor (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WasteCostByTreatmentProcessPeriodComparisonTableTile]:$ae("WasteCostByTreatmentProcessPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"TreatmentProcess",headerName:"Treatment process"}],valueColumn:{field:"TotalCost",headerName:"Total cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by treatment process (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WasteCostPerTonnageByLocationPeriodComparisonTableTile]:$ae("WasteCostPerTonnageByLocationPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum},{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CostPerWeight",headerName:e=>`Cost per ${e?.selectedUnit??"t"} (£)`,valueKey:"CostPerWeight",transform:{kind:"costPerWeight",costField:"TotalCost(£)",weightField:"Quantity(t)",withVatKey:"withVat",weightUnitOptions:{originalUnit:"t",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Cost per ${e?.selectedUnit??"t"} by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WasteCostPerTonnageByTagPeriodComparisonTableTile]:$ae("WasteCostPerTonnageByTagPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum},{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CostPerWeight",headerName:e=>`Cost per ${e?.selectedUnit??"t"} (£)`,valueKey:"CostPerWeight",transform:{kind:"costPerWeight",costField:"TotalCost(£)",weightField:"Quantity(t)",withVatKey:"withVat",weightUnitOptions:{originalUnit:"t",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Cost per ${e?.selectedUnit??"t"} by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WasteCostPerTonnageByContractorPeriodComparisonTableTile]:$ae("WasteCostPerTonnageByContractorPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum},{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"WasteContractor",headerName:"Contractor"}],valueColumn:{field:"CostPerWeight",headerName:e=>`Cost per ${e?.selectedUnit??"t"} (£)`,valueKey:"CostPerWeight",transform:{kind:"costPerWeight",costField:"TotalCost(£)",weightField:"Quantity(t)",withVatKey:"withVat",weightUnitOptions:{originalUnit:"t",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Cost per ${e?.selectedUnit??"t"} by contractor (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WasteCostPerTonnageByTreatmentProcessPeriodComparisonTableTile]:$ae("WasteCostPerTonnageByTreatmentProcessPeriodComparisonTableTile",{datasetName:"WasteByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum},{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"TreatmentProcess",headerName:"Treatment process"}],valueColumn:{field:"CostPerWeight",headerName:e=>`Cost per ${e?.selectedUnit??"t"} (£)`,valueKey:"CostPerWeight",transform:{kind:"costPerWeight",costField:"TotalCost(£)",weightField:"Quantity(t)",withVatKey:"withVat",weightUnitOptions:{originalUnit:"t",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Cost per ${e?.selectedUnit??"t"} by treatment process (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WasteDisposalPercentageByLocationPeriodComparisonTableTile]:$ae("WasteDisposalPercentageByLocationPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"DisposalValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"Percentage",headerName:"% disposal",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"DisposalValue",denominatorField:"Value"}},defaultTitle:"% disposal by location"}),[gn.Rh.WasteDisposalPercentageByTagPeriodComparisonTableTile]:$ae("WasteDisposalPercentageByTagPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"DisposalValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"Percentage",headerName:"% disposal",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"DisposalValue",denominatorField:"Value"}},defaultTitle:"% disposal by tag"}),[gn.Rh.WasteDisposalPercentageByWasteStreamPeriodComparisonTableTile]:$ae("WasteDisposalPercentageByWasteStreamPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"DisposalValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"WasteStream",headerName:"Waste stream"}],valueColumn:{field:"Percentage",headerName:"% disposal",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"DisposalValue",denominatorField:"Value"}},defaultTitle:"% disposal by waste stream"}),[gn.Rh.WasteRecycingPercentageByLocationPeriodComparisonTableTile]:$ae("WasteRecycingPercentageByLocationPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"RecyclingValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"Percentage",headerName:"% recycling",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"RecyclingValue",denominatorField:"Value"},doesMoreMeanPositive:!0},defaultTitle:"% recycling by location"}),[gn.Rh.WasteRecycingPercentageByTagPeriodComparisonTableTile]:$ae("WasteRecycingPercentageByTagPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"RecyclingValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"Percentage",headerName:"% recycling",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"RecyclingValue",denominatorField:"Value"},doesMoreMeanPositive:!0},defaultTitle:"% recycling by tag"}),[gn.Rh.WasteRecycingPercentageByWasteStreamPeriodComparisonTableTile]:$ae("WasteRecycingPercentageByWasteStreamPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"RecyclingValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"WasteStream",headerName:"Waste stream"}],valueColumn:{field:"Percentage",headerName:"% recycling",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"RecyclingValue",denominatorField:"Value"},doesMoreMeanPositive:!0},defaultTitle:"% recycling by waste stream"}),[gn.Rh.WasteReusePercentageByLocationPeriodComparisonTableTile]:$ae("WasteReusePercentageByLocationPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"ReuseValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"Percentage",headerName:"% reuse",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"ReuseValue",denominatorField:"Value"},doesMoreMeanPositive:!0},defaultTitle:"% reuse by location"}),[gn.Rh.WasteReusePercentageByTagPeriodComparisonTableTile]:$ae("WasteReusePercentageByTagPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"ReuseValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"Percentage",headerName:"% reuse",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"ReuseValue",denominatorField:"Value"},doesMoreMeanPositive:!0},defaultTitle:"% reuse by tag"}),[gn.Rh.WasteReusePercentageByWasteStreamPeriodComparisonTableTile]:$ae("WasteReusePercentageByWasteStreamPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"ReuseValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"WasteStream",headerName:"Waste stream"}],valueColumn:{field:"Percentage",headerName:"% reuse",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"ReuseValue",denominatorField:"Value"},doesMoreMeanPositive:!0},defaultTitle:"% reuse by waste stream"}),[gn.Rh.WasteOtherRecoveryPercentageByLocationPeriodComparisonTableTile]:$ae("WasteOtherRecoveryPercentageByLocationPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"OtherRecoveryValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"Percentage",headerName:"% other recovery",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"OtherRecoveryValue",denominatorField:"Value"},doesMoreMeanPositive:!0},defaultTitle:"% other recovery by location"}),[gn.Rh.WasteOtherRecoveryPercentageByTagPeriodComparisonTableTile]:$ae("WasteOtherRecoveryPercentageByTagPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"OtherRecoveryValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"Percentage",headerName:"% other recovery",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"OtherRecoveryValue",denominatorField:"Value"},doesMoreMeanPositive:!0},defaultTitle:"% other recovery by tag"}),[gn.Rh.WasteOtherRecoveryPercentageByWasteStreamPeriodComparisonTableTile]:$ae("WasteOtherRecoveryPercentageByWasteStreamPeriodComparisonTableTile",{datasetName:"WasteHierarchyByLocationReport",periodField:"IndividualCollectionDate",periodAlias:"Period",aggregationFunctions:[{field:"OtherRecoveryValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"WasteStream",headerName:"Waste stream"}],valueColumn:{field:"Percentage",headerName:"% other recovery",valueKey:"Percentage",transform:{kind:"percentage",numeratorField:"OtherRecoveryValue",denominatorField:"Value"},doesMoreMeanPositive:!0},defaultTitle:"% other recovery by waste stream"}),[gn.Rh.GasConsumptionByLocationPeriodComparisonTableTile]:$ae("GasConsumptionByLocationPeriodComparisonTableTile",{datasetName:"GasByLocationReport",periodField:"Date",aggregationFunctions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"Quantity",headerName:"Consumption (kWh)",valueKey:"Quantity",transform:{kind:"numeric",field:"DailyQuantity(kWh)"}},defaultTitle:"Consumption by location (kWh)"}),[gn.Rh.GasConsumptionByTagPeriodComparisonTableTile]:$ae("GasConsumptionByTagPeriodComparisonTableTile",{datasetName:"GasByLocationReport",periodField:"Date",aggregationFunctions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"Quantity",headerName:"Consumption (kWh)",valueKey:"Quantity",transform:{kind:"numeric",field:"DailyQuantity(kWh)"}},defaultTitle:"Consumption by tag (kWh)"}),[gn.Rh.GasCarbonEmissionsByLocationPeriodComparisonTableTile]:$ae("GasCarbonEmissionsByLocationPeriodComparisonTableTile",{datasetName:"GasByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by location (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.GasCarbonEmissionsByTagPeriodComparisonTableTile]:$ae("GasCarbonEmissionsByTagPeriodComparisonTableTile",{datasetName:"GasByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by tag (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.GasCostByLocationPeriodComparisonTableTile]:$ae("GasCostByLocationPeriodComparisonTableTile",{datasetName:"GasByLocationReport",periodField:"Date",aggregationFunctions:[{field:"DailyCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"DailyCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.GasCostByTagPeriodComparisonTableTile]:$ae("GasCostByTagPeriodComparisonTableTile",{datasetName:"GasByLocationReport",periodField:"Date",aggregationFunctions:[{field:"DailyCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"DailyCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.GasAverageChargePerKilowattByLocationPeriodComparisonTableTile]:$ae("GasAverageChargePerKilowattByLocationPeriodComparisonTableTile",{datasetName:"GasByLocationReport",periodField:"Date",aggregationFunctions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum},{field:"DailyCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"AverageChargePerKilowatt",headerName:"Average charge per kWh (£)",valueKey:"AverageChargePerKilowatt",transform:{kind:"averageChargePerKwh",costField:"DailyCost(£)",quantityField:"DailyQuantity(kWh)",withVatKey:"withVat"}},defaultTitle:e=>`Average charge per kWh by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.GasAverageChargePerKilowattByTagPeriodComparisonTableTile]:$ae("GasAverageChargePerKilowattByTagPeriodComparisonTableTile",{datasetName:"GasByLocationReport",periodField:"Date",aggregationFunctions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum},{field:"DailyCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"AverageChargePerKilowatt",headerName:"Average charge per kWh (£)",valueKey:"AverageChargePerKilowatt",transform:{kind:"averageChargePerKwh",costField:"DailyCost(£)",quantityField:"DailyQuantity(kWh)",withVatKey:"withVat"}},defaultTitle:e=>`Average charge per kWh by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.FuelConsumptionByLocationPeriodComparisonTableTile]:$ae("FuelConsumptionByLocationPeriodComparisonTableTile",{datasetName:"FuelByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(kWh)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"Quantity",headerName:"Consumption (kWh)",valueKey:"Quantity",transform:{kind:"numeric",field:"Quantity(kWh)"}},defaultTitle:"Consumption by location (kWh)"}),[gn.Rh.FuelConsumptionByTagPeriodComparisonTableTile]:$ae("FuelConsumptionByTagPeriodComparisonTableTile",{datasetName:"FuelByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(kWh)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"Quantity",headerName:"Consumption (kWh)",valueKey:"Quantity",transform:{kind:"numeric",field:"Quantity(kWh)"}},defaultTitle:"Consumption by tag (kWh)"}),[gn.Rh.FuelCarbonEmissionsByLocationPeriodComparisonTableTile]:$ae("FuelCarbonEmissionsByLocationPeriodComparisonTableTile",{datasetName:"FuelByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by location (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.FuelCarbonEmissionsByTagPeriodComparisonTableTile]:$ae("FuelCarbonEmissionsByTagPeriodComparisonTableTile",{datasetName:"FuelByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by tag (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.FuelCostByLocationPeriodComparisonTableTile]:$ae("FuelCostByLocationPeriodComparisonTableTile",{datasetName:"FuelByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.FuelCostByTagPeriodComparisonTableTile]:$ae("FuelCostByTagPeriodComparisonTableTile",{datasetName:"FuelByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.FuelAverageChargePerKilowattByLocationPeriodComparisonTableTile]:$ae("FuelAverageChargePerKilowattByLocationPeriodComparisonTableTile",{datasetName:"FuelByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(kWh)",aggregationType:gn.DF.Sum},{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"AverageChargePerKilowatt",headerName:"Average charge per kWh (£)",valueKey:"AverageChargePerKilowatt",transform:{kind:"averageChargePerKwh",costField:"TotalCost(£)",quantityField:"Quantity(kWh)",withVatKey:"withVat"}},defaultTitle:e=>`Average charge per kWh by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.FuelAverageChargePerKilowattByTagPeriodComparisonTableTile]:$ae("FuelAverageChargePerKilowattByTagPeriodComparisonTableTile",{datasetName:"FuelByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity(kWh)",aggregationType:gn.DF.Sum},{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"AverageChargePerKilowatt",headerName:"Average charge per kWh (£)",valueKey:"AverageChargePerKilowatt",transform:{kind:"averageChargePerKwh",costField:"TotalCost(£)",quantityField:"Quantity(kWh)",withVatKey:"withVat"}},defaultTitle:e=>`Average charge per kWh by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WaterConsumptionByLocationPeriodComparisonTableTile]:$ae("WaterConsumptionByLocationPeriodComparisonTableTile",{datasetName:"WaterByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"Quantity",headerName:"Consumption (m3)",valueKey:"Quantity",transform:{kind:"numeric",field:"Quantity"}},defaultTitle:"Consumption by location (m3)"}),[gn.Rh.WaterConsumptionByTagPeriodComparisonTableTile]:$ae("WaterConsumptionByTagPeriodComparisonTableTile",{datasetName:"WaterByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"Quantity",headerName:"Consumption (m3)",valueKey:"Quantity",transform:{kind:"numeric",field:"Quantity"}},defaultTitle:"Consumption by tag (m3)"}),[gn.Rh.WaterCarbonEmissionsByLocationPeriodComparisonTableTile]:$ae("WaterCarbonEmissionsByLocationPeriodComparisonTableTile",{datasetName:"WaterByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by location (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.WaterCarbonEmissionsByTagPeriodComparisonTableTile]:$ae("WaterCarbonEmissionsByTagPeriodComparisonTableTile",{datasetName:"WaterByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by tag (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.WaterCostByLocationPeriodComparisonTableTile]:$ae("WaterCostByLocationPeriodComparisonTableTile",{datasetName:"WaterByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost",withVatKey:"withVat"}},defaultTitle:e=>`Cost by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WaterCostByTagPeriodComparisonTableTile]:$ae("WaterCostByTagPeriodComparisonTableTile",{datasetName:"WaterByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost",withVatKey:"withVat"}},defaultTitle:e=>`Cost by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WaterAverageChargePerKilowattByLocationPeriodComparisonTableTile]:$ae("WaterAverageChargePerKilowattByLocationPeriodComparisonTableTile",{datasetName:"WaterByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity",aggregationType:gn.DF.Sum},{field:"TotalCost",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CostPerM3",headerName:"Cost per m3 (£)",valueKey:"CostPerM3",transform:{kind:"averageChargePerKwh",costField:"TotalCost",quantityField:"Quantity",withVatKey:"withVat"}},defaultTitle:e=>`Cost per m3 by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.WaterAverageChargePerKilowattByTagPeriodComparisonTableTile]:$ae("WaterAverageChargePerKilowattByTagPeriodComparisonTableTile",{datasetName:"WaterByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Quantity",aggregationType:gn.DF.Sum},{field:"TotalCost",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CostPerM3",headerName:"Cost per m3 (£)",valueKey:"CostPerM3",transform:{kind:"averageChargePerKwh",costField:"TotalCost",quantityField:"Quantity",withVatKey:"withVat"}},defaultTitle:e=>`Cost per m3 by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.MaterialWeightByLocationPeriodComparisonTableTile]:$ae("MaterialWeightByLocationPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Weight",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"Weight",headerName:e=>`Weight (${e?.selectedUnit??"kg"})`,valueKey:"Weight",transform:{kind:"numeric",field:"Weight",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Weight by location (${e?.selectedUnit??"kg"})`}),[gn.Rh.MaterialWeightByTagPeriodComparisonTableTile]:$ae("MaterialWeightByTagPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Weight",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"Weight",headerName:e=>`Weight (${e?.selectedUnit??"kg"})`,valueKey:"Weight",transform:{kind:"numeric",field:"Weight",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Weight by tag (${e?.selectedUnit??"kg"})`}),[gn.Rh.MaterialWeightByContractorPeriodComparisonTableTile]:$ae("MaterialWeightByContractorPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Weight",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"SupplierName",headerName:"Contractor"}],valueColumn:{field:"Weight",headerName:e=>`Weight (${e?.selectedUnit??"kg"})`,valueKey:"Weight",transform:{kind:"numeric",field:"Weight",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Weight by contractor (${e?.selectedUnit??"kg"})`}),[gn.Rh.MaterialWeightByTypeAndOriginPeriodComparisonTableTile]:$ae("MaterialWeightByTypeAndOriginPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"Weight",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Material",headerName:"Material"},{field:"Origin",headerName:"Origin"}],valueColumn:{field:"Weight",headerName:e=>`Weight (${e?.selectedUnit??"kg"})`,valueKey:"Weight",transform:{kind:"numeric",field:"Weight",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Weight by material and origin (${e?.selectedUnit??"kg"})`}),[gn.Rh.MaterialCarbonEmissionsByLocationPeriodComparisonTableTile]:$ae("MaterialCarbonEmissionsByLocationPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by location (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.MaterialCarbonEmissionsByTagPeriodComparisonTableTile]:$ae("MaterialCarbonEmissionsByTagPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by tag (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.MaterialCarbonEmissionsByContractorPeriodComparisonTableTile]:$ae("MaterialCarbonEmissionsByContractorPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"SupplierName",headerName:"Contractor"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by contractor (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.MaterialCarbonEmissionsByTypeAndOriginPeriodComparisonTableTile]:$ae("MaterialCarbonEmissionsByTypeAndOriginPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Material",headerName:"Material"},{field:"Origin",headerName:"Origin"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by material and origin (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.MaterialCostByLocationPeriodComparisonTableTile]:$ae("MaterialCostByLocationPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost",withVatKey:"withVat"}},defaultTitle:e=>`Cost by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.MaterialCostByTagPeriodComparisonTableTile]:$ae("MaterialCostByTagPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost",withVatKey:"withVat"}},defaultTitle:e=>`Cost by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.MaterialCostPerWeightEmissionsByLocationPeriodComparisonTableTile]:$ae("MaterialCostPerWeightEmissionsByLocationPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum},{field:"Weight",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CostPerWeight",headerName:e=>`Cost (£) per ${e?.selectedUnit??"kg"}`,valueKey:"CostPerWeight",transform:{kind:"costPerWeight",costField:"TotalCost",weightField:"Weight",withVatKey:"withVat",weightUnitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Cost (£) ${Aee(e?.withVat??!1)} per ${e?.selectedUnit??"kg"} by location`}),[gn.Rh.MaterialCostPerWeightEmissionsByTagPeriodComparisonTableTile]:$ae("MaterialCostPerWeightEmissionsByTagPeriodComparisonTableTile",{datasetName:"MaterialByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum},{field:"Weight",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CostPerWeight",headerName:e=>`Cost (£) per ${e?.selectedUnit??"kg"}`,valueKey:"CostPerWeight",transform:{kind:"costPerWeight",costField:"TotalCost",weightField:"Weight",withVatKey:"withVat",weightUnitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Cost (£) ${Aee(e?.withVat??!1)} per ${e?.selectedUnit??"kg"} by tag`}),[gn.Rh.TransportCarbonEmissionsByLocationPeriodComparisonTableTile]:$ae("TransportCarbonEmissionsByLocationPeriodComparisonTableTile",{datasetName:"TransportByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by location (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.TransportCarbonEmissionsByTagPeriodComparisonTableTile]:$ae("TransportCarbonEmissionsByTagPeriodComparisonTableTile",{datasetName:"TransportByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by tag (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.TransportCarbonEmissionsByTransportTypePeriodComparisonTableTile]:$ae("TransportCarbonEmissionsByTransportTypePeriodComparisonTableTile",{datasetName:"TransportByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Type",headerName:"Transport type"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by transport type (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.TransportCarbonEmissionsByFuelTypePeriodComparisonTableTile]:$ae("TransportCarbonEmissionsByFuelTypePeriodComparisonTableTile",{datasetName:"TransportByLocationReport",periodField:"Date",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Fuel",headerName:"Fuel type"}],valueColumn:{field:"CO2e",headerName:e=>`Carbon emissions (${e?.selectedUnit??"kg"}CO2e)`,valueKey:"CO2e",transform:{kind:"numeric",field:"CO2e",unitOptions:{originalUnit:"kg",targetUnitKey:"selectedUnit"}}},defaultTitle:e=>`Carbon emissions by fuel type (${e?.selectedUnit??"kg"}CO2e)`}),[gn.Rh.TransportCostByLocationPeriodComparisonTableTile]:$ae("TransportCostByLocationPeriodComparisonTableTile",{datasetName:"TransportByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"LocationName",headerName:"Location"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by location (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.TransportCostByTagPeriodComparisonTableTile]:$ae("TransportCostByTagPeriodComparisonTableTile",{datasetName:"TransportByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Tag1",headerName:"Tag"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by tag (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.TransportCostByTransportTypePeriodComparisonTableTile]:$ae("TransportCostByTransportTypePeriodComparisonTableTile",{datasetName:"TransportByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Type",headerName:"Transport type"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by transport type (£) ${Aee(e?.withVat??!1)}`}),[gn.Rh.TransportCostByFuelTypePeriodComparisonTableTile]:$ae("TransportCostByFuelTypePeriodComparisonTableTile",{datasetName:"TransportByLocationReport",periodField:"Date",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],groupPartitionFields:[{field:"Fuel",headerName:"Fuel type"}],valueColumn:{field:"TotalCost",headerName:"Cost (£)",valueKey:"TotalCost",transform:{kind:"numeric",field:"TotalCost(£)",withVatKey:"withVat"}},defaultTitle:e=>`Cost by fuel type (£) ${Aee(e?.withVat??!1)}`})},zae=e=>{let{tile:n,period:t}=e;const a=Je(),i=(0,g.useRef)(null),{queryVariablesFilters:l,selectedUnit:r}=iee(),o=lee(i),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:a,datasetFilters:(0,hn.omit)(l,"Period 1"===t?"period2":"period1"),datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Scope"}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.PINK_1,f.AgChartColor.BLUE_1,f.AgChartColor.GREEN_1]),y=(0,g.useMemo)(()=>jee(s?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e.CO2e,{originalUnit:"kg",targetUnit:r}),Scope:`Scope ${e.Scope}`}))?.sort((e,n)=>Number(e.Scope)-Number(n.Scope)),[s,r]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>y?.reduce((e,n)=>e+Number(n.CO2e),0)||1,[y]),b=(0,g.useMemo)(()=>({theme:p,legend:m,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"pie",fillOpacity:1,angleKey:"CO2e",calloutLabelKey:"Scope",sectorLabelKey:"CO2e",sectorLabel:{color:"white",fontWeight:"bold",formatter:e=>{let{value:n}=e;return kee(n,{percentageOverTotal:T})}},tooltip:{renderer:e=>({title:e.datum.Scope,data:[{label:`${r}CO2e`,value:`${kee(e.datum.CO2e,{percentageOverTotal:T})} (${kee(e.datum.CO2e,{selectedUnit:r})})`}]})}}]}),[y,p,o,T,r,m]);return(0,fe.jsx)(Kte,{title:n.title||`${t} carbon emissions (${r}CO2e) by scope`,loading:d,error:c,retry:u,noData:h,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:b})})})},Wae=e=>{let{tile:n,period:t}=e;const a=Je(),{queryVariablesFilters:i,isExportingPdf:l,selectedUnit:r}=iee(),o=(0,g.useRef)(null),s=lee(o),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:a,datasetFilters:(0,hn.omit)(i,"Period 1"===t?"period2":"period1"),datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Type"}]}}}),{chartTheme:m,legendTheme:y,agChartColorMap:h}=(0,f.useAgChartsTheme)(n.colors),T=(0,g.useMemo)(()=>({Electricity:h[f.AgChartColor.BLUE_1],Finances:h[f.AgChartColor.YELLOW_1],Gas:h[f.AgChartColor.GREEN_1],"Home Working":h[f.AgChartColor.PINK_3],"Hotel Stays":h[f.AgChartColor.BLUE_4],Materials:h[f.AgChartColor.GREY_1],"Refrigerants and Other Gases":h[f.AgChartColor.BLUE_3],Waste:h[f.AgChartColor.PURPLE_1],Water:h[f.AgChartColor.PINK_1],Fuel:h[f.AgChartColor.BLACK_1],"Heat and Steam":h[f.AgChartColor.RED_1],Transport:h[f.AgChartColor.YELLOW_1]}),[h]),b=(0,g.useMemo)(()=>Iee(jee(d?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e.CO2e,{originalUnit:"kg",targetUnit:r}),Date:bee(e.Month),Type:e.Type}))?.sort((e,n)=>e.Type.toLowerCase().localeCompare(n.Type.toLowerCase())),["Date"],"Type","CO2e")?.sort(vee),[d,r]),v=(0,g.useMemo)(()=>Lee(b,{excludeKeys:["Date"],removeSuffixFromLabels:"CO2e",removePrefixFromLabels:"Type"}),[b]),C=Boolean(b&&0===b.length),k=(0,g.useMemo)(()=>({theme:m,width:s,data:b||[],zoom:{enabled:!0},series:[...v.map(e=>{let{labelKey:n,valueKey:t}=e;return{type:"bar",xKey:"Date",yKey:t,yName:n,stacked:!0,fillOpacity:1,fill:T[n],tooltip:{renderer:e=>({title:e.yName,data:[{label:`${r}CO2e`,value:`${kee(e.datum[t],{selectedUnit:r})}`}]})}}})],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"right",...y}}),[b,m,s,v,y,T,r]);return(0,fe.jsx)(Kte,{title:n.title||`${t} carbon by source (${r}CO2e)`,loading:c,error:u,retry:p,noData:C,ref:o,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:k})})},l?"exporting-pdf":void 0)},qae=function(){return{field:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Date",partitionFunction:gn.v7.Period,alias:"Period"}};function Jae(e){let{tile:n,datasetName:t,aggregationFunctions:a,defaultTitle:i,supportsPeriodFilters:l=!1,comparisonPartition:r,getValue:o,getDisplayValue:s}=e;const d=Je(),c=iee(),{queryVariablesFilters:u,partitionFunctionForYearComparison:p,doesSheetHavePeriodFilters:m,withVat:f,selectedUnit:y,filters:g}=c,h=r??(l?{field:"Date",partitionFunction:m?gn.v7.Period:p,alias:"Period",dimensionField:"Period"}:{field:"Date",partitionFunction:p,dimensionField:"Year"}),T=[{field:h.field,partitionFunction:h.partitionFunction,...h.alias?{alias:h.alias}:{}}],b=h.dimensionField??h.alias??h.field,{data:v,loading:C,error:k,refetch:S}=(0,x.IT)(bte,{variables:{accountId:d,datasetFilters:u,datasetName:t,aggregation:{functions:a,partitions:T}}}),N=jee(v?.getDashboardTileData)?.map(e=>({__value:o(e,{withVat:f,selectedUnit:y}),__dimension:e[b]})).sort((e,n)=>new Date(e.__dimension).getTime()-new Date(n.__dimension).getTime()),A=p&&g.year1&&g.year2&&!r&&!m?[String(P9(g.year1)),String(P9(g.year2))].sort((e,n)=>Number(e)-Number(n)):null,R=A?A.map(e=>{const n=N?.find(n=>(e=>{if(!e)return;const n=e.match(/\d{4}/);return n?.[0]})(n.__dimension)===e);return{__dimension:e,__value:n?.__value??null}}):N,D=R?.[0]?.__value,L=R?.[1]?.__value,I=R?.[0]?.__dimension,j=R?.[1]?.__dimension,w=(Number.isNaN(D)||null===D)&&(Number.isNaN(L)||null===L),O={withVat:f,selectedUnit:y},E=e=>s?s(e,O):kee(e),_=n.title||("string"==typeof i?i:i(c));return(0,fe.jsx)(Kte,{title:_,loading:C,error:k,retry:S,noData:w,children:(0,fe.jsxs)(eae,{children:[(0,fe.jsxs)(nae,{children:[(0,fe.jsx)(tae,{children:I}),(0,fe.jsx)(aae,{children:E(D??null)})]}),(0,fe.jsx)(sae,{value1:D,value2:L}),(0,fe.jsxs)(nae,{children:[(0,fe.jsx)(tae,{children:j}),(0,fe.jsx)(aae,{children:E(L??null)})]})]})})}const Yae=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"CarbonByLocationReport",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total carbon cost ${Aee(e.withVat)}`,comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t}=n;return hee(e.TotalCost,{withVat:t})}})},Hae=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"CarbonByLocationReport",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total carbon emitted (${e.selectedUnit}CO2e)`,comparisonPartition:qae(),getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e.CO2e,{originalUnit:"kg",targetUnit:t})},getDisplayValue:(e,n)=>{let{selectedUnit:t}=n;return kee(e,{selectedUnit:t})}})},Kae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a}=iee(),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"EnergyByLocationReport",aggregation:{functions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum}],partitions:[]}}}),s=jee(i?.getDashboardTileData),d=hee(s?.[0]?.["DailyQuantity(kWh)"]||"0"),c=Number.isNaN(d)||null===d,u=c?null:kee(d);return(0,fe.jsx)(Kte,{title:n.title||"Total energy consumption (kWh)",loading:l,error:r,retry:o,noData:c,children:(0,fe.jsx)(Zte,{children:u})})},Qae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a}=iee(),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"EnergyByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[]}}}),s=jee(i?.getDashboardTileData),d=hee(s?.[0]?.CO2e||"0"),c=Number.isNaN(d)||null===d,u=c?null:kee(d);return(0,fe.jsx)(Kte,{title:n.title||"Total gross carbon (kgCO2e)",loading:l,error:r,retry:o,noData:c,children:(0,fe.jsx)(Zte,{children:u})})},Zae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a}=iee(),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"EnergyByLocationReport",aggregation:{functions:[{field:"MarketOrLocationCO2e",aggregationType:gn.DF.Sum}],partitions:[]}}}),s=jee(i?.getDashboardTileData),d=hee(s?.[0]?.MarketOrLocationCO2e||"0"),c=Number.isNaN(d)||null===d,u=c?null:kee(d);return(0,fe.jsx)(Kte,{title:n.title||"Total net carbon (kgCO2e)",loading:l,error:r,retry:o,noData:c,children:(0,fe.jsx)(Zte,{children:u})})},Xae=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,withVat:i}=iee(),{data:l,loading:r,error:o,refetch:s}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"EnergyByLocationReport",aggregation:{functions:[{field:"DailyCost(£)",aggregationType:gn.DF.Sum}],partitions:[]}}}),d=jee(l?.getDashboardTileData),c=hee(d?.[0]?.["DailyCost(£)"]||"0",{withVat:i}),u=Number.isNaN(c)||null===c,p=u?null:kee(c);return(0,fe.jsx)(Kte,{title:n.title||`Total cost (£) ${Aee(i)}`,loading:r,error:o,retry:s,noData:u,children:(0,fe.jsx)(Zte,{children:p})})},eie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,withVat:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"EnergyByLocationReport",aggregation:{functions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum},{field:"DailyCost(£)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),y=(0,g.useMemo)(()=>jee(s?.getDashboardTileData)?.map(e=>({...e,"DailyQuantity(kWh)":hee(e["DailyQuantity(kWh)"]),"DailyCost(£)":hee(e["DailyCost(£)"],{withVat:l}),Date:bee(e.Month)}))?.sort(vee),[s,l]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,legend:m,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"DailyQuantity(kWh)",yName:"Consumption (kWh)",fillOpacity:1,tooltip:{renderer:e=>({data:[{label:"Consumption (kWh)",value:kee(e.datum["DailyQuantity(kWh)"])}]})}},{type:"line",xKey:"Date",yKey:"DailyCost(£)",yName:`Total cost (£) ${Aee(l)}`,tooltip:{renderer:e=>({data:[{label:`Total cost (£) ${Aee(l)}`,value:kee(e.datum["DailyCost(£)"])}]})}}],axes:[{type:"number",position:"left",keys:["DailyQuantity(kWh)"],label:{formatter:e=>Nee(e.value)}},{type:"number",position:"right",keys:["DailyCost(£)"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[y,p,o,m,l]);return(0,fe.jsx)(Kte,{title:n.title||"Energy cost and consumption over time",loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},nie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i}=iee(),l=(0,g.useRef)(null),r=lee(l),{data:o,loading:s,error:d,refetch:c}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Scope"}]}}}),{chartTheme:u,legendTheme:p}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.PINK_1,f.AgChartColor.BLUE_1,f.AgChartColor.GREEN_1]),m=(0,g.useMemo)(()=>Iee(jee(o?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e.CO2e),Date:bee(e.Month),Scope:e.Scope})),["Date"],"Scope","CO2e","TotalCO2e")?.sort(vee),[o]),y=Boolean(m&&0===m.length),h=(0,g.useMemo)(()=>({theme:u,width:r,data:m||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"Scope1CO2e",yName:"Scope 1",stacked:!0,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:"Scope 1",value:kee(e.datum.Scope1CO2e)},{label:"Total kgCO2e",value:kee(e.datum.TotalCO2e)}]})}},{type:"bar",xKey:"Date",yKey:"Scope2CO2e",yName:"Scope 2",stacked:!0,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:"Scope 2",value:kee(e.datum.Scope2CO2e)},{label:"Total kgCO2e",value:kee(e.datum.TotalCO2e)}]})}},{type:"bar",xKey:"Date",yKey:"Scope3CO2e",yName:"Scope 3",stacked:!0,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:"Scope 3",value:kee(e.datum.Scope3CO2e)},{label:"Total kgCO2e",value:kee(e.datum.TotalCO2e)}]})}}],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"right",...p}}),[m,u,r,p]);return(0,fe.jsx)(Kte,{title:n.title||"Carbon emissions by scope (kgCO2e)",loading:s,error:d,retry:c,noData:y,ref:l,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:h})})},i?"exporting-pdf":void 0)},tie=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,filters:s,withVat:d}=iee(),{data:c,loading:u,error:p,refetch:m}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"EnergyByLocationReport",aggregation:{functions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum},{field:"DailyCost(£)",aggregationType:gn.DF.Sum},{field:"CO2e",aggregationType:gn.DF.Sum},{field:"MarketOrLocationCO2e",aggregationType:gn.DF.Sum},{field:"GrossVsNetCO2eDifference",aggregationType:gn.DF.Sum}],partitions:[{field:"LocationCode"},{field:"LocationName"}]}}}),f=(0,g.useMemo)(()=>jee(c?.getDashboardTileData)?.map(e=>({...e,LocationCode:xee(e.LocationCode),LocationName:xee(e.LocationName),"DailyQuantity(kWh)":hee(e["DailyQuantity(kWh)"]),"DailyCost(£)":hee(e["DailyCost(£)"],{withVat:d}),CO2e:hee(e.CO2e),MarketOrLocationCO2e:hee(e.MarketOrLocationCO2e),GrossVsNetCO2eDifference:hee(e.GrossVsNetCO2eDifference)}))?.sort((e,n)=>e.LocationCode!==n.LocationCode?e.LocationCode.toLowerCase().localeCompare(n.LocationCode.toLowerCase()):e.LocationName!==n.LocationName?e.LocationName.toLowerCase().localeCompare(n.LocationName.toLowerCase()):1),[c,d]),y=Boolean(f&&0===f.length),h=(0,g.useMemo)(()=>[{headerName:"LocationCode",field:"LocationCode",rowGroup:!0,hide:!0},{headerName:"LocationName",field:"LocationName",rowGroup:!0,hide:!0},{headerName:"Consumption (kWh)",field:"DailyQuantity(kWh)",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:`Cost (£) ${Aee(d)}`,field:"DailyCost(£)",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Gross carbon emissions (kgCO2e)",field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Market carbon emissions (kgCO2e)",field:"MarketOrLocationCO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Difference between gross and market carbon emissions (kgCO2e)",field:"GrossVsNetCO2eDifference",aggFunc:"sum",valueFormatter:e=>kee(e.value)}],[d]);return(0,g.useEffect)(()=>{i.current?.gridApi?.resetColumnState()},[s]),(0,fe.jsx)(Kte,{title:n.title||"Consumption by location",loading:u,error:p,retry:m,noData:y,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-ConsumptionPerLocationTableTile`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:h,rowData:f}})})},aie=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,filters:s}=iee(),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"EnergyByLocationReport",aggregation:{functions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum},{field:"CarbonNetEmissionsCO2eMinusWTT",aggregationType:gn.DF.Sum}],partitions:[{field:"Scope"},{field:"Source"},{field:"TariffOrFuelType"}]}}}),m=(0,g.useMemo)(()=>jee(d?.getDashboardTileData)?.map(e=>({...e,Scope:xee(e.Scope),Source:xee(e.Source),TariffOrFuelType:xee(e.TariffOrFuelType),"DailyQuantity(kWh)":hee(e["DailyQuantity(kWh)"]),CarbonNetEmissionsCO2eMinusWTT:hee(e.CarbonNetEmissionsCO2eMinusWTT,{originalUnit:"kg",targetUnit:"t"})}))?.sort((e,n)=>e.Scope!==n.Scope?e.Scope.toLowerCase().localeCompare(n.Scope.toLowerCase()):e.Source!==n.Source?e.Source.toLowerCase().localeCompare(n.Source.toLowerCase()):e.TariffOrFuelType.toLowerCase().localeCompare(n.TariffOrFuelType.toLowerCase())),[d]),f=Boolean(m&&0===m.length),y=(0,g.useMemo)(()=>[{headerName:"Scope",field:"Scope",rowGroup:!0,hide:!0},{headerName:"Source",field:"Source",rowGroup:!0,hide:!0},{headerName:"Tariff/Fuel type",field:"TariffOrFuelType",rowGroup:!0,hide:!0},{headerName:"Consumption (kWh)",field:"DailyQuantity(kWh)",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Carbon net emissions (tCO2e-WTT)",field:"CarbonNetEmissionsCO2eMinusWTT",aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:"t"})}],[]);return(0,g.useEffect)(()=>{i.current?.gridApi?.resetColumnState()},[s]),(0,fe.jsx)(Kte,{title:n.title||"Consumption by source and tariff",loading:c,error:u,retry:p,noData:f,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-EnergyConsumptionPerLocationTableTile`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:y,rowData:m}})})},iie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"EnergyByLocationReport",aggregationFunctions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum}],defaultTitle:"Total consumption (kWh)",getValue:e=>hee(e["DailyQuantity(kWh)"])})},lie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"EnergyByLocationReport",aggregationFunctions:[{field:"DailyCost(£)",aggregationType:gn.DF.Sum}],defaultTitle:e=>{let{withVat:n}=e;return`Total cost (£) ${Aee(n)}`},getValue:(e,n)=>{let{withVat:t}=n;return hee(e["DailyCost(£)"],{withVat:t})}})};var rie=t(36636);const oie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,filters:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"EnergyByLocationReport",aggregation:{functions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>jee(s?.getDashboardTileData)?.map(e=>({...e,"DailyQuantity(kWh)":hee(e["DailyQuantity(kWh)"]),Date:bee(e.Month)})).reduce((e,n)=>{const t=(0,rie.m)(e),a=F9(l.year1),i=P9(l.year1),r=P9(l.year2),o=bn()(n.Date,"MMM YYYY").format("MMM"),s=bn()(n.Date,"MMM YYYY").year()-(a===pt.YearToCompareType.CALENDAR?0:bn()(n.Date,"MMM YYYY").month()<4?1:0),d=t.findIndex(e=>e.Month===o&&null!==e.Year1Quantity);if(-1!==d)return t[d].Year2Quantity=Number(n["DailyQuantity(kWh)"]),t;const c=e.findIndex(e=>e.Month===o&&null!==e.Year2Quantity);return-1!==c?(t[c].Year1Quantity=Number(n["DailyQuantity(kWh)"]),t):[...t,{...n,Year1Quantity:s===i?Number(n["DailyQuantity(kWh)"]):null,Year2Quantity:s===r?Number(n["DailyQuantity(kWh)"]):null,Month:o}]},[])?.sort((e,n)=>F9(l.year1)===pt.YearToCompareType.CALENDAR?bn()(e.Month,"MMM").toDate().getTime()-bn()(n.Month,"MMM").toDate().getTime():B9.indexOf(e.Month)-B9.indexOf(n.Month)),[s,l.year1,l.year2]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Month",yKey:"Year1Quantity",yName:`${l.year1} Consumption (kWh)`,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`${l.year1} Consumption (kWh)`,value:kee(e.datum.Year1Quantity)},{label:`${l.year2} Consumption (kWh)`,value:kee(e.datum.Year2Quantity)}]})}},{type:"bar",xKey:"Month",yKey:"Year2Quantity",yName:`${l.year2} Consumption (kWh)`,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`${l.year1} Consumption (kWh)`,value:kee(e.datum.Year1Quantity)},{label:`${l.year2} Consumption (kWh)`,value:kee(e.datum.Year2Quantity)}]})}}],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"bottom",...m}}),[y,p,o,m,l.year1,l.year2]);return(0,fe.jsx)(Kte,{title:n.title||"Monthly energy consumption",loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},sie=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,filters:s,partitionFunctionForYearComparison:d}=iee(),{data:c,loading:u,error:p,refetch:m}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"EnergyByLocationReport",aggregation:{functions:[{field:"DailyCost(£)",aggregationType:gn.DF.Sum},{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum},{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:d},{field:"LocationName"}]}}}),f=(0,g.useMemo)(()=>jee(c?.getDashboardTileData)?.map(e=>({...e,Date:xee(e.Year),LocationName:xee(e.LocationName),"DailyCost(£)":hee(e["DailyCost(£)"]),"DailyQuantity(kWh)":hee(e["DailyQuantity(kWh)"]),CO2e:hee(e.CO2e)}))?.sort((e,n)=>e.Date.localeCompare(n.Date)),[c]),y=Boolean(f&&0===f.length),h=(0,g.useMemo)(()=>[{headerName:"Location",field:"LocationName",rowGroup:!0,hide:!0},{headerName:"Year",field:"Date",pivot:!0},{headerName:"Cost (£)",field:"DailyCost(£)",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Consumption (kWh)",field:"DailyQuantity(kWh)",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Gross carbon emissions (kgCO2e)",field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value)}],[]);return(0,g.useEffect)(()=>{i.current?.gridApi?.resetColumnState()},[s]),(0,fe.jsx)(Kte,{title:n.title||"Annual figures per location",loading:u,error:p,retry:m,noData:y,ref:a,children:(0,fe.jsx)(uae,{pivotModeEnabled:!0,ref:i,gridKey:`${t}-${o}-${r}-AnnualEnergyFiguresPerLocationTableTile`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:h,rowData:f,pivotMode:!0}})})},die=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"EnergyByLocationReport",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],defaultTitle:"Total gross carbon emissions (kgCO2e)",getValue:e=>hee(e.CO2e)})},cie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"EnergyByLocationReport",aggregationFunctions:[{field:"MarketOrLocationCO2e",aggregationType:gn.DF.Sum}],defaultTitle:"Total net carbon emissions (kgCO2e)",getValue:e=>hee(e.MarketOrLocationCO2e)})},uie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,selectedUnit:i}=iee(),{data:l,loading:r,error:o,refetch:s}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteByLocationReport",aggregation:{functions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum}],partitions:[]}}}),d=jee(l?.getDashboardTileData)?.map(e=>({...e,Weight:hee(e["Quantity(t)"],{originalUnit:"t",targetUnit:i})})),c=Number(d?.[0]?.Weight),u=Number.isNaN(c)||null===c,p=u?null:kee(c,{selectedUnit:i});return(0,fe.jsx)(Kte,{title:n.title||`Total weight (${i})`,loading:r,error:o,retry:s,noData:u,children:(0,fe.jsx)(Zte,{children:p})})},pie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,withVat:i}=iee(),{data:l,loading:r,error:o,refetch:s}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteByLocationReport",aggregation:{functions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],partitions:[]}}}),d=jee(l?.getDashboardTileData),c=hee(d?.[0]?.["TotalCost(£)"]||"0",{withVat:i}),u=Number.isNaN(c)||null===c,p=u?null:kee(c);return(0,fe.jsx)(Kte,{title:n.title||`Total cost (£) ${Aee(i)}`,loading:r,error:o,retry:s,noData:u,children:(0,fe.jsx)(Zte,{children:p})})},mie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a}=iee(),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteHierarchyByLocationReport",aggregation:{functions:[{field:"Value",aggregationType:gn.DF.Sum}],partitions:[{field:"Type"}]}}}),s=jee(i?.getDashboardTileData),d=s?.reduce((e,n)=>e+hee(n.Value),0)||0,c=(s?.reduce((e,n)=>e+(["Unknown","Disposal"].includes(n.Type)?0:hee(n.Value)),0)||0)/d*100,u=Number.isNaN(c)||null===c,p=u?null:kee(c,{suppressPercentageSign:!0});return(0,fe.jsx)(Kte,{title:n.title||"% diverted from disposal",loading:l,error:r,retry:o,noData:u,children:(0,fe.jsx)(Zte,{children:p?`${p}%`:null})})},fie=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),{queryVariablesFilters:i,selectedUnit:l}=iee(),r=lee(a),{data:o,loading:s,error:d,refetch:c}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:i,datasetName:"WasteHierarchyByLocationReport",aggregation:{functions:[{field:"Value",aggregationType:gn.DF.Sum}],partitions:[{field:"Type"}]}}}),{chartTheme:u,legendTheme:p}=(0,f.useAgChartsTheme)(n.colors),m=(0,g.useMemo)(()=>jee(o?.getDashboardTileData)?.map(e=>({...e,Weight:hee(e.Value,{originalUnit:"t",targetUnit:l}),Type:"OtherRecovery"===e.Type?"Other recovery":"PreparingForReuse"===e.Type?"Preparing for re-use":e.Type})),[o,l]),y=Boolean(m&&0===m.length),h=(0,g.useMemo)(()=>m?.reduce((e,n)=>e+Number(n.Weight),0)||1,[m]),T=(0,g.useMemo)(()=>({theme:u,legend:p,width:r,data:m||[],zoom:{enabled:!0},series:[{type:"pie",fillOpacity:1,angleKey:"Weight",calloutLabelKey:"Type",sectorLabelKey:"Weight",sectorLabel:{color:"white",fontWeight:"bold",formatter:e=>{let{value:n}=e;return kee(n,{percentageOverTotal:h})}},tooltip:{renderer:e=>({heading:"Weight %",title:e.datum.Type,data:[{value:`${kee(e.datum.Weight,{percentageOverTotal:h})} (${kee(e.datum.Weight,{selectedUnit:l})} ${l})`}]})}}]}),[m,u,r,h,l,p]);return(0,fe.jsx)(Kte,{title:n.title||"Waste hierarchy",loading:s,error:d,retry:c,noData:y,ref:a,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})})},yie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,selectedUnit:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteByLocationReport",aggregation:{functions:[{field:"CO2e(kg)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Scope"}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.PINK_1,f.AgChartColor.BLUE_1,f.AgChartColor.GREEN_1]),y=(0,g.useMemo)(()=>Iee(jee(s?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e["CO2e(kg)"],{originalUnit:"kg",targetUnit:l}),Date:bee(e.Month),Scope:e.Scope})),["Date"],"Scope","CO2e","TotalCO2e")?.sort(vee),[s,l]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"Scope1CO2e",yName:`Scope 1 (${l}CO2e)`,stacked:!0,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`Scope 1 (${l}CO2e)`,value:kee(e.datum.Scope1CO2e,{selectedUnit:l})},{label:`Scope 2 (${l}CO2e)`,value:kee(e.datum.Scope2CO2e,{selectedUnit:l})},{label:`Scope 3 (${l}CO2e)`,value:kee(e.datum.Scope3CO2e,{selectedUnit:l})},{label:`Total ${l}CO2e`,value:kee(e.datum.TotalCO2e,{selectedUnit:l})}]})}},{type:"bar",xKey:"Date",yKey:"Scope2CO2e",yName:`Scope 2 (${l}CO2e)`,stacked:!0,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`Scope 2 (${l}CO2e)`,value:kee(e.datum.Scope2CO2e,{selectedUnit:l})},{label:`Scope 1 (${l}CO2e)`,value:kee(e.datum.Scope1CO2e,{selectedUnit:l})},{label:`Scope 3 (${l}CO2e)`,value:kee(e.datum.Scope3CO2e,{selectedUnit:l})},{label:`Total ${l}CO2e`,value:kee(e.datum.TotalCO2e,{selectedUnit:l})}]})}},{type:"bar",xKey:"Date",yKey:"Scope3CO2e",yName:`Scope 3 (${l}CO2e)`,stacked:!0,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`Scope 3 (${l}CO2e)`,value:kee(e.datum.Scope3CO2e,{selectedUnit:l})},{label:`Scope 1 (${l}CO2e)`,value:kee(e.datum.Scope1CO2e,{selectedUnit:l})},{label:`Scope 2 (${l}CO2e)`,value:kee(e.datum.Scope2CO2e,{selectedUnit:l})},{label:`Total ${l}CO2e`,value:kee(e.datum.TotalCO2e,{selectedUnit:l})}]})}}],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"right",...m}}),[y,p,o,m,l]);return(0,fe.jsx)(Kte,{title:n.title||`Carbon emissions by scope (${l}CO2e)`,loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},gie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WasteByLocationReport",aggregationFunctions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum}],defaultTitle:e=>{let{selectedUnit:n}=e;return`Total waste generated (${n})`},supportsPeriodFilters:!0,getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e["Quantity(t)"],{originalUnit:"t",targetUnit:t})},getDisplayValue:(e,n)=>{let{selectedUnit:t}=n;return kee(e,{selectedUnit:t})}})},hie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WasteByLocationReport",aggregationFunctions:[{field:"CO2e(kg)",aggregationType:gn.DF.Sum}],defaultTitle:e=>{let{selectedUnit:n}=e;return`Emitted carbon (${n}CO2e)`},supportsPeriodFilters:!0,getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e["CO2e(kg)"],{originalUnit:"kg",targetUnit:t})},getDisplayValue:(e,n)=>{let{selectedUnit:t}=n;return kee(e,{selectedUnit:t})}})},xie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WasteByLocationReport",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],defaultTitle:e=>{let{withVat:n}=e;return`Total cost (£) ${Aee(n)}`},supportsPeriodFilters:!0,getValue:(e,n)=>{let{withVat:t}=n;return hee(e["TotalCost(£)"],{withVat:t})}})},Tie=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,filters:s,partitionFunctionForYearComparison:d,withVat:c,selectedUnit:u}=iee(),{data:p,loading:m,error:f,refetch:y}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"WasteByLocationReport",aggregation:{functions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum},{field:"Quantity(t)",aggregationType:gn.DF.Sum},{field:"CO2e(kg)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:d},{field:"Country"},{field:"LocationName"}]}}}),h=(0,g.useMemo)(()=>jee(p?.getDashboardTileData)?.map(e=>({...e,Date:xee(e.Year),Country:xee(e.Country),LocationName:xee(e.LocationName),TotalCost:hee(e["TotalCost(£)"],{withVat:c}),Quantity:hee(e["Quantity(t)"],{originalUnit:"t",targetUnit:u}),CO2e:hee(e["CO2e(kg)"],{originalUnit:"kg",targetUnit:u})}))?.sort((e,n)=>e.Date.localeCompare(n.Date)),[p,c,u]),T=Boolean(h&&0===h.length),b=(0,g.useMemo)(()=>[{headerName:"Country",field:"Country",rowGroup:!0,hide:!0},{headerName:"Location",field:"LocationName",rowGroup:!0,hide:!0},{headerName:"Year",field:"Date",pivot:!0},{headerName:`Cost (£) ${Aee(c)}`,field:"TotalCost",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:`Waste (${u})`,field:"Quantity",aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:u})},{headerName:`Carbon (${u}CO2e)`,field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:u})}],[u,c]);return(0,g.useEffect)(()=>{i.current?.gridApi?.resetColumnState()},[s]),(0,fe.jsx)(Kte,{title:n.title||"Annual figures per location",loading:m,error:f,retry:y,noData:T,ref:a,children:(0,fe.jsx)(uae,{pivotModeEnabled:!0,ref:i,gridKey:`${t}-${o}-${r}-AnnualWasteGenerationAndCostPerLocationTableTile`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:b,rowData:h,pivotMode:!0}})})},bie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,filters:l,selectedUnit:r}=iee(),o=(0,g.useRef)(null),s=lee(o),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteByLocationReport",aggregation:{functions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month}]}}}),{chartTheme:m,legendTheme:y}=(0,f.useAgChartsTheme)(n.colors),h=(0,g.useMemo)(()=>jee(d?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e["Quantity(t)"],{originalUnit:"t",targetUnit:r}),Date:bee(e.Month)})).reduce((e,n)=>{const t=(0,rie.m)(e),a=F9(l.year1),i=P9(l.year1),r=P9(l.year2),o=bn()(n.Date,"MMM YYYY").format("MMM"),s=bn()(n.Date,"MMM YYYY").year()-(a===pt.YearToCompareType.CALENDAR?0:bn()(n.Date,"MMM YYYY").month()<4?1:0),d=t.findIndex(e=>e.Month===o&&null!==e.Year1Quantity);if(-1!==d)return t[d].Year2Quantity=Number(n.Quantity),t;const c=e.findIndex(e=>e.Month===o&&null!==e.Year2Quantity);return-1!==c?(t[c].Year1Quantity=Number(n.Quantity),t):[...t,{...n,Year1Quantity:s===i?Number(n.Quantity):null,Year2Quantity:s===r?Number(n.Quantity):null,Month:o}]},[])?.sort((e,n)=>F9(l.year1)===pt.YearToCompareType.CALENDAR?bn()(e.Month,"MMM").toDate().getTime()-bn()(n.Month,"MMM").toDate().getTime():B9.indexOf(e.Month)-B9.indexOf(n.Month)),[d,l.year1,l.year2,r]),T=Boolean(h&&0===h.length),b=(0,g.useMemo)(()=>({theme:m,width:s,data:h||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Month",yKey:"Year1Quantity",yName:`${l.year1} Waste (${r})`,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`${l.year1} Waste (${r})`,value:kee(e.datum.Year1Quantity,{selectedUnit:r})},{label:`${l.year2} Waste (${r})`,value:kee(e.datum.Year2Quantity,{selectedUnit:r})}]})}},{type:"bar",xKey:"Month",yKey:"Year2Quantity",yName:`${l.year2} Waste (${r})`,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`${l.year2} Waste (${r})`,value:kee(e.datum.Year2Quantity,{selectedUnit:r})},{label:`${l.year1} Waste (${r})`,value:kee(e.datum.Year1Quantity,{selectedUnit:r})}]})}}],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"bottom",...y}}),[h,m,s,y,l.year1,l.year2,r]);return(0,fe.jsx)(Kte,{title:n.title||`Monthly waste generation (${r})`,loading:c,error:u,retry:p,noData:T,ref:o,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:b})})},i?"exporting-pdf":void 0)},vie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,selectedUnit:l,withVat:r}=iee(),o=(0,g.useRef)(null),s=lee(o),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteByLocationReport",aggregation:{functions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum},{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month}]}}}),{chartTheme:m,legendTheme:y}=(0,f.useAgChartsTheme)(n.colors),h=(0,g.useMemo)(()=>jee(d?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e["Quantity(t)"],{originalUnit:"t",targetUnit:l}),TotalCost:hee(e["TotalCost(£)"],{withVat:r}),Date:bee(e.Month)}))?.sort(vee),[d,l,r]),T=Boolean(h&&0===h.length),b=(0,g.useMemo)(()=>({theme:m,legend:y,width:s,data:h||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"Quantity",yName:`Weight (${l})`,stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:`Weight (${l})`,value:kee(e.datum.Quantity,{selectedUnit:l})}]})}},{type:"line",xKey:"Date",yKey:"TotalCost",yName:`Total cost (£) ${Aee(r)}`,tooltip:{renderer:e=>({data:[{label:`Total cost (£) ${Aee(r)}`,value:kee(e.datum.TotalCost)}]})}}],axes:[{type:"number",position:"left",keys:["Quantity"],label:{formatter:e=>Nee(e.value)}},{type:"number",position:"right",keys:["TotalCost"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[h,m,s,y,l,r]);return(0,fe.jsx)(Kte,{title:n.title||`Waste generation and cost over time (${l})`,loading:c,error:u,retry:p,noData:T,ref:o,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:b})})},i?"exporting-pdf":void 0)},Cie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,selectedUnit:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteByLocationReport",aggregation:{functions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>jee(s?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e["Quantity(t)"],{originalUnit:"t",targetUnit:l}),Date:bee(e.Month)}))?.sort(vee),[s,l]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,legend:m,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"Quantity",yName:`Weight (${l})`,stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:`Weight (${l})`,value:kee(e.datum.Quantity,{selectedUnit:l})}]})}}],axes:[{type:"number",position:"left",keys:["Quantity"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[y,p,o,m,l]);return(0,fe.jsx)(Kte,{title:n.title||`Weight over time (${l})`,loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},kie=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),{queryVariablesFilters:i,withVat:l}=iee(),r=lee(a),{data:o,loading:s,error:d,refetch:c}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:i,datasetName:"WasteByLocationReport",aggregation:{functions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],partitions:[{field:"WasteStream"}]}}}),{chartTheme:u,legendTheme:p}=(0,f.useAgChartsTheme)(n.colors),m=(0,g.useMemo)(()=>jee(o?.getDashboardTileData)?.map(e=>({...e,Cost:hee(e["TotalCost(£)"],{withVat:l})})).filter(e=>e.Cost>0),[o,l]),y=Boolean(m&&0===m.length),h=(0,g.useMemo)(()=>m?.reduce((e,n)=>e+Number(n.Cost),0)||1,[m]),T=(0,g.useMemo)(()=>({theme:u,legend:p,width:r,data:m||[],zoom:{enabled:!0},series:[{type:"pie",fillOpacity:1,angleKey:"Cost",calloutLabelKey:"WasteStream",sectorLabelKey:"Cost",sectorLabel:{color:"white",fontWeight:"bold",formatter:e=>{let{value:n}=e;return kee(n,{percentageOverTotal:h})}},tooltip:{renderer:e=>({heading:"Cost %",title:e.datum.WasteStream,data:[{value:`${kee(e.datum.Cost,{percentageOverTotal:h})} (${kee(e.datum.Cost)} £)`}]})}}]}),[m,u,r,h,p]);return(0,fe.jsx)(Kte,{title:n.title||`Cost % by waste stream ${Aee(l)}`,loading:s,error:d,retry:c,noData:y,ref:a,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})})},Sie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,withVat:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteByLocationReport",aggregation:{functions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"WasteStream"}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>Iee(jee(s?.getDashboardTileData)?.map(e=>({...e,Cost:hee(e["TotalCost(£)"],{withVat:l}),Date:bee(e.Month)}))?.sort(vee),["Date"],"WasteStream","Cost"),[s,l]),h=(0,g.useMemo)(()=>Lee(y,{excludeKeys:["Date"],removeSuffixFromLabels:"Cost",removePrefixFromLabels:"WasteStream"}),[y]),T=Boolean(y&&0===y.length),b=(0,g.useMemo)(()=>({theme:p,width:o,data:y||[],zoom:{enabled:!0},series:[...h.map(e=>{let{labelKey:n,valueKey:t}=e;return{type:"bar",xKey:"Date",yKey:t,yName:n,stacked:!0,fillOpacity:1,tooltip:{renderer:e=>{const a=Object.entries(e.datum).reduce((e,n)=>{let[t,a]=n;return"Date"!==t&&(e+=Number(a)),e},0);return{data:[{label:n,value:kee(e.datum[t])},{label:`Total cost (£) ${Aee(l)}`,value:kee(a)}]}}}}})],axes:[{type:"number",position:"left",min:0,label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"bottom",...m}}),[y,p,o,h,m,l]);return(0,fe.jsx)(Kte,{title:n.title||"Cost by waste stream "+(l?"(VAT included)":"(VAT excluded)"),loading:d,error:c,retry:u,noData:T,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:b})})},i?"exporting-pdf":void 0)},Nie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,selectedUnit:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteByLocationReport",aggregation:{functions:[{field:"Quantity(t)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"WasteStream"}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>Iee(jee(s?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e["Quantity(t)"],{originalUnit:"t",targetUnit:l}),Date:bee(e.Month),WasteStream:e.WasteStream}))?.sort((e,n)=>e.WasteStream.toLowerCase().localeCompare(n.WasteStream.toLowerCase())),["Date"],"WasteStream","Quantity")?.sort(vee),[s,l]),h=(0,g.useMemo)(()=>Lee(y,{excludeKeys:["Date"],removeSuffixFromLabels:"Quantity",removePrefixFromLabels:"WasteStream"}),[y]),T=Boolean(y&&0===y.length),b=(0,g.useMemo)(()=>({theme:p,width:o,data:y||[],zoom:{enabled:!0},series:[...h.map(e=>{let{labelKey:n,valueKey:t}=e;return{type:"bar",xKey:"Date",yKey:t,yName:n,stacked:!0,fillOpacity:1,tooltip:{renderer:e=>{const a=Object.entries(e.datum).reduce((e,n)=>{let[t,a]=n;return"Date"!==t&&(e+=Number(a)),e},0);return{data:[{label:n,value:kee(e.datum[t],{selectedUnit:l})},{label:`Total weight (${l})`,value:kee(a,{selectedUnit:l})}]}}}}})],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"bottom",...m}}),[y,p,o,l,h,m]);return(0,fe.jsx)(Kte,{title:n.title||`Weight by waste stream (${l})`,loading:d,error:c,retry:u,noData:T,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:b})})},i?"exporting-pdf":void 0)},Aie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WasteByLocationReport",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum},{field:"Quantity(t)",aggregationType:gn.DF.Sum}],defaultTitle:e=>{let{withVat:n,selectedUnit:t}=e;return`Cost per ${t} (£) ${Aee(n)}`},supportsPeriodFilters:!0,getValue:(e,n)=>{let{withVat:t,selectedUnit:a}=n;const i=hee(e["Quantity(t)"],{originalUnit:"t",targetUnit:a});return i?hee(e["TotalCost(£)"],{withVat:t})/i:0}})},Rie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"ElectricityByLocationReport",aggregationFunctions:[{field:"Quantity",aggregationType:gn.DF.Sum}],defaultTitle:"Total consumption (kWh)",comparisonPartition:qae(),getValue:e=>hee(e.Quantity)})},Die=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"ElectricityByLocationReport",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],defaultTitle:e=>{let{withVat:n}=e;return`Total cost (£) ${Aee(n)}`},comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t}=n;return hee(e.TotalCost,{withVat:t})}})},Lie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"ElectricityByLocationReport",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],defaultTitle:e=>{let{selectedUnit:n}=e;return`Total location-based carbon (${n}CO2e)`},comparisonPartition:qae(),getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e.CO2e,{originalUnit:"kg",targetUnit:t})}})},Iie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"ElectricityByLocationReport",aggregationFunctions:[{field:"MarketCO2e",aggregationType:gn.DF.Sum}],defaultTitle:e=>{let{selectedUnit:n}=e;return`Total market-based carbon (${n}CO2e)`},comparisonPartition:qae(),getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e.MarketCO2e,{originalUnit:"kg",targetUnit:t})}})},jie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WasteHierarchyByLocationReport",aggregationFunctions:[{field:"DisposalValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],defaultTitle:"% disposal",comparisonPartition:qae("IndividualCollectionDate"),getValue:e=>hee(e.DisposalValue,{percentageOverTotal:Number(e.Value)}),getDisplayValue:(e,n)=>{let{selectedUnit:t}=n;return kee(e,{selectedUnit:t})}})},wie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WasteHierarchyByLocationReport",aggregationFunctions:[{field:"RecyclingValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],defaultTitle:"% recycling",comparisonPartition:qae("IndividualCollectionDate"),getValue:e=>hee(e.RecyclingValue,{percentageOverTotal:Number(e.Value)}),getDisplayValue:(e,n)=>{let{selectedUnit:t}=n;return kee(e,{selectedUnit:t})}})},Oie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i}=iee(),l=(0,g.useRef)(null),r=lee(l),{data:o,loading:s,error:d,refetch:c}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteHierarchyByLocationReport",aggregation:{functions:[{field:"DisposalValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],partitions:[{field:"IndividualCollectionDate",partitionFunction:gn.v7.Month}]}}}),{chartTheme:u,legendTheme:p}=(0,f.useAgChartsTheme)(n.colors),m=(0,g.useMemo)(()=>jee(o?.getDashboardTileData)?.map(e=>({...e,Percentage:hee(e.DisposalValue,{percentageOverTotal:Number(e.Value)}),Date:bee(e.Month)}))?.sort(vee),[o]),y=Boolean(m&&0===m.length),h=(0,g.useMemo)(()=>({theme:u,legend:p,width:r,data:m||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"Percentage",yName:"% disposal",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"% disposal",value:`${kee(e.datum.Percentage)}%`}]})}}],axes:[{type:"number",position:"left",keys:["Percentage"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[m,u,r,p]);return(0,fe.jsx)(Kte,{title:n.title||"% disposal over time",loading:s,error:d,retry:c,noData:y,ref:l,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:h})})},i?"exporting-pdf":void 0)},Eie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i}=iee(),l=(0,g.useRef)(null),r=lee(l),{data:o,loading:s,error:d,refetch:c}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WasteHierarchyByLocationReport",aggregation:{functions:[{field:"RecyclingValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],partitions:[{field:"IndividualCollectionDate",partitionFunction:gn.v7.Month}]}}}),{chartTheme:u,legendTheme:p}=(0,f.useAgChartsTheme)(n.colors),m=(0,g.useMemo)(()=>jee(o?.getDashboardTileData)?.map(e=>({...e,Percentage:hee(e.RecyclingValue,{percentageOverTotal:Number(e.Value)}),Date:bee(e.Month)}))?.sort(vee),[o]),y=Boolean(m&&0===m.length),h=(0,g.useMemo)(()=>({theme:u,legend:p,width:r,data:m||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"Percentage",yName:"% recycling",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"% recycling",value:`${kee(e.datum.Percentage)}%`}]})}}],axes:[{type:"number",position:"left",keys:["Percentage"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[m,u,r,p]);return(0,fe.jsx)(Kte,{title:n.title||"% recycling over time",loading:s,error:d,retry:c,noData:y,ref:l,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:h})})},i?"exporting-pdf":void 0)},_ie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WasteHierarchyByLocationReport",aggregationFunctions:[{field:"ReuseValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],defaultTitle:"% reuse",comparisonPartition:qae("IndividualCollectionDate"),getValue:e=>hee(e.ReuseValue,{percentageOverTotal:Number(e.Value)}),getDisplayValue:(e,n)=>{let{selectedUnit:t}=n;return kee(e,{selectedUnit:t})}})},Fie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WasteHierarchyByLocationReport",aggregationFunctions:[{field:"OtherRecoveryValue",aggregationType:gn.DF.Sum},{field:"Value",aggregationType:gn.DF.Sum}],defaultTitle:"% other recovery",comparisonPartition:qae("IndividualCollectionDate"),getValue:e=>hee(e.OtherRecoveryValue,{percentageOverTotal:Number(e.Value)}),getDisplayValue:(e,n)=>{let{selectedUnit:t}=n;return kee(e,{selectedUnit:t})}})},Pie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"GasByLocationReport",aggregationFunctions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum}],defaultTitle:"Total consumption (kWh)",comparisonPartition:qae(),getValue:e=>hee(e["DailyQuantity(kWh)"])})},Bie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"GasByLocationReport",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total carbon (${e.selectedUnit}CO2e)`,comparisonPartition:qae(),getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e.CO2e,{originalUnit:"kg",targetUnit:t})}})},Uie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,withVat:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"GasByLocationReport",aggregation:{functions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum},{field:"DailyCost(£)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Accuracy"}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>Iee(jee(s?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e["DailyQuantity(kWh)"]),TotalCost:hee(e["DailyCost(£)"],{withVat:l}),Date:bee(e.Month),Accuracy:Eee(e.Accuracy)})),["Date"],"Accuracy","Quantity")?.sort(vee),[s,l]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,legend:m,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"AccuracyActualQuantity",yName:"Actual Quantity (kWh)",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"Actual Quantity (kWh)",value:kee(e.datum.AccuracyActualQuantity)},{label:"Estimated Quantity (kWh)",value:kee(e.datum.AccuracyEstimatedQuantity)},{label:"Total Quantity (kWh)",value:kee((e.datum.AccuracyActualQuantity||0)+(e.datum.AccuracyEstimatedQuantity||0))}]})}},{type:"bar",xKey:"Date",yKey:"AccuracyEstimatedQuantity",yName:"Estimated Quantity (kWh)",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"Estimated Quantity (kWh)",value:kee(e.datum.AccuracyEstimatedQuantity)},{label:"Actual Quantity (kWh)",value:kee(e.datum.AccuracyActualQuantity)},{label:"Total Quantity (kWh)",value:kee((e.datum.AccuracyActualQuantity||0)+(e.datum.AccuracyEstimatedQuantity||0))}]})}},{type:"line",xKey:"Date",yKey:"TotalCost",yName:"Cost (£)",tooltip:{renderer:e=>({data:[{label:"Cost (£)",value:kee(e.datum.TotalCost)}]})}}],axes:[{type:"number",position:"left",keys:["AccuracyActualQuantity","AccuracyEstimatedQuantity"],label:{formatter:e=>Nee(e.value)}},{type:"number",position:"right",keys:["TotalCost"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[y,p,o,m]);return(0,fe.jsx)(Kte,{title:n.title||`Gas cost and consumption (kWh) over time ${Aee(l)}`,loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},$ie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"GasByLocationReport",aggregationFunctions:[{field:"DailyCost(£)",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total cost (£) ${Aee(e.withVat)}`,comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t}=n;return hee(e["DailyCost(£)"],{withVat:t})}})},Mie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"GasByLocationReport",aggregationFunctions:[{field:"DailyQuantity(kWh)",aggregationType:gn.DF.Sum},{field:"DailyCost(£)",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Average charge per kWh (£) ${Aee(e.withVat)}`,comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t}=n;return Number(e["DailyQuantity(kWh)"])?hee(String(Number(e["DailyCost(£)"])/(Number(e["DailyQuantity(kWh)"])*(t?1.2:1)))):0}})},Vie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"FuelByLocationReport",aggregationFunctions:[{field:"Quantity(kWh)",aggregationType:gn.DF.Sum}],defaultTitle:"Total consumption (kWh)",comparisonPartition:qae(),getValue:e=>hee(e["Quantity(kWh)"])})},Gie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"FuelByLocationReport",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total carbon (${e.selectedUnit}CO2e)`,comparisonPartition:qae(),getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e.CO2e,{originalUnit:"kg",targetUnit:t})}})},zie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,withVat:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"FuelByLocationReport",aggregation:{functions:[{field:"Quantity(kWh)",aggregationType:gn.DF.Sum},{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>jee(s?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e["Quantity(kWh)"]),TotalCost:hee(e["TotalCost(£)"],{withVat:l}),Date:bee(e.Month)})),[s,l]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,legend:m,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"Quantity",yName:"Consumption (kWh)",stacked:!0,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:"Consumption (kWh)",value:kee(e.datum.Quantity)}]})}},{type:"line",xKey:"Date",yKey:"TotalCost",yName:"Cost (£)",tooltip:{renderer:e=>({data:[{label:"Cost (£)",value:kee(e.datum.TotalCost)}]})}}],axes:[{type:"number",position:"left",keys:["Quantity"],label:{formatter:e=>Nee(e.value)}},{type:"number",position:"right",keys:["TotalCost"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[y,p,o,m]);return(0,fe.jsx)(Kte,{title:n.title||`Fuel cost and consumption (kWh) over time ${Aee(l)}`,loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},Wie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"FuelByLocationReport",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total cost (£) ${Aee(e.withVat)}`,comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t}=n;return hee(e["TotalCost(£)"],{withVat:t})}})},qie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"FuelByLocationReport",aggregationFunctions:[{field:"Quantity(kWh)",aggregationType:gn.DF.Sum},{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Average charge per kWh (£) ${Aee(e.withVat)}`,comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t}=n;return Number(e["Quantity(kWh)"])?hee(String(Number(e["TotalCost(£)"])/(Number(e["Quantity(kWh)"])*(t?1.2:1)))):0}})},Jie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WaterByLocationReport",aggregationFunctions:[{field:"Quantity",aggregationType:gn.DF.Sum}],defaultTitle:"Total consumption (m³)",comparisonPartition:qae(),getValue:e=>hee(e.Quantity)})},Yie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WaterByLocationReport",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total carbon (${e.selectedUnit}CO2e)`,comparisonPartition:qae(),getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e.CO2e,{originalUnit:"kg",targetUnit:t})}})},Hie=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,withVat:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WaterByLocationReport",aggregation:{functions:[{field:"Quantity",aggregationType:gn.DF.Sum},{field:"TotalCost",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Accuracy"}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>Iee(jee(s?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e.Quantity),TotalCost:hee(e.TotalCost,{withVat:l}),Date:bee(e.Month),Accuracy:Eee(e.Accuracy)})),["Date"],"Accuracy","Quantity")?.sort(vee),[s,l]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,legend:m,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"AccuracyActualQuantity",yName:"Actual Quantity (m3)",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"Actual Quantity (m3)",value:kee(e.datum.AccuracyActualQuantity)},{label:"Estimated Quantity (m3)",value:kee(e.datum.AccuracyEstimatedQuantity)},{label:"Total Quantity (m3)",value:kee((e.datum.AccuracyActualQuantity||0)+(e.datum.AccuracyEstimatedQuantity||0))}]})}},{type:"bar",xKey:"Date",yKey:"AccuracyEstimatedQuantity",yName:"Estimated Quantity (m3)",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"Estimated Quantity (m3)",value:kee(e.datum.AccuracyEstimatedQuantity)},{label:"Actual Quantity (m3)",value:kee(e.datum.AccuracyActualQuantity)},{label:"Total Quantity (m3)",value:kee((e.datum.AccuracyActualQuantity||0)+(e.datum.AccuracyEstimatedQuantity||0))}]})}},{type:"line",xKey:"Date",yKey:"TotalCost",yName:"Cost (£)",tooltip:{renderer:e=>({data:[{label:"Cost (£)",value:kee(e.datum.TotalCost)}]})}}],axes:[{type:"number",position:"left",keys:["AccuracyActualQuantity","AccuracyEstimatedQuantity"],label:{formatter:e=>Nee(e.value)}},{type:"number",position:"right",keys:["TotalCost"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[y,p,o,m]);return(0,fe.jsx)(Kte,{title:n.title||`Water cost and consumption (m3) over time ${Aee(l)}`,loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},Kie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WaterByLocationReport",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total cost (£) ${Aee(e.withVat)}`,comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t}=n;return hee(e.TotalCost,{withVat:t})}})},Qie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WaterByLocationReport",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum},{field:"Quantity",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Average cost per m3 (£) ${Aee(e.withVat)}`,comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t}=n;return Number(e.Quantity)?hee(String(Number(e.TotalCost)/(Number(e.Quantity)*(t?1.2:1)))):0}})},Zie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"MaterialByLocationReport",aggregationFunctions:[{field:"Weight",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total weight (${e.selectedUnit})`,comparisonPartition:qae(),getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e.Weight,{originalUnit:"kg",targetUnit:t})}})},Xie=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"MaterialByLocationReport",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total carbon (${e.selectedUnit}CO2e)`,comparisonPartition:qae(),getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e.CO2e,{originalUnit:"kg",targetUnit:t})}})},ele=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,withVat:l,selectedUnit:r}=iee(),o=(0,g.useRef)(null),s=lee(o),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"MaterialByLocationReport",aggregation:{functions:[{field:"Weight",aggregationType:gn.DF.Sum},{field:"TotalCost",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Accuracy"}]}}}),{chartTheme:m,legendTheme:y}=(0,f.useAgChartsTheme)(n.colors),h=(0,g.useMemo)(()=>Iee(jee(d?.getDashboardTileData)?.map(e=>({...e,Quantity:hee(e.Quantity,{originalUnit:"kg",targetUnit:r}),TotalCost:hee(e.TotalCost,{withVat:l}),Date:bee(e.Month),Accuracy:Eee(e.Accuracy)})),["Date"],"Accuracy","Quantity")?.sort(vee),[d,r,l]),T=Boolean(h&&0===h.length),b=(0,g.useMemo)(()=>({theme:m,legend:y,width:s,data:h||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"AccuracyActualQuantity",yName:"Actual Weight (kg)",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:`Actual Weight (${r})`,value:kee(e.datum.AccuracyActualQuantity)},{label:`Estimated Weight (${r})`,value:kee(e.datum.AccuracyEstimatedQuantity)},{label:`Total Weight (${r})`,value:kee((e.datum.AccuracyActualQuantity||0)+(e.datum.AccuracyEstimatedQuantity||0))}]})}},{type:"bar",xKey:"Date",yKey:"AccuracyEstimatedQuantity",yName:`Estimated Weight (${r})`,stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:`Estimated Weight (${r})`,value:kee(e.datum.AccuracyEstimatedQuantity)},{label:`Actual Weight (${r})`,value:kee(e.datum.AccuracyActualQuantity)},{label:`Total Weight (${r})`,value:kee((e.datum.AccuracyActualQuantity||0)+(e.datum.AccuracyEstimatedQuantity||0))}]})}},{type:"line",xKey:"Date",yKey:"TotalCost",yName:"Cost (£)",tooltip:{renderer:e=>({data:[{label:"Cost (£)",value:kee(e.datum.TotalCost)}]})}}],axes:[{type:"number",position:"left",keys:["AccuracyActualQuantity","AccuracyEstimatedQuantity"],label:{formatter:e=>Nee(e.value)}},{type:"number",position:"right",keys:["TotalCost"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[h,m,s,y,r]);return(0,fe.jsx)(Kte,{title:n.title||`Material weight (${r}) and cost (£) ${Aee(l)} over time`,loading:c,error:u,retry:p,noData:T,ref:o,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:b})})},i?"exporting-pdf":void 0)},nle=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"MaterialByLocationReport",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total cost (£) ${Aee(e.withVat)}`,comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t}=n;return hee(e.TotalCost,{withVat:t})}})},tle=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"MaterialByLocationReport",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum},{field:"Weight",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Cost (£) ${Aee(e.withVat)} per ${e.selectedUnit} by location`,comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t,selectedUnit:a}=n;const i=Number(e.Weight);return hee(String(i?hee(String(Number(e.TotalCost)*(t?1.2:1)/(i*("kg"===a?1:1e3)))):0))}})},ale=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"TransportByLocationReport",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total carbon (${e.selectedUnit}CO2e)`,comparisonPartition:qae(),getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e.CO2e,{originalUnit:"kg",targetUnit:t})}})},ile=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"TransportByLocationReport",aggregationFunctions:[{field:"TotalCost(£)",aggregationType:gn.DF.Sum}],defaultTitle:e=>`Total cost (£) ${Aee(e.withVat)}`,comparisonPartition:qae(),getValue:(e,n)=>{let{withVat:t}=n;return hee(e["TotalCost(£)"],{withVat:t})}})},lle=(0,f.styled)("div")({width:"100%",height:"100%","& .ag-header-group-cell-label":{justifyContent:"center"},"& .ag-header-cell, & .ag-header-group-cell":{borderLeft:"1px solid var(--ag-border-color, #babfc7)",borderRight:"1px solid var(--ag-border-color, #babfc7)"}}),rle={locationName:"locationStatus",tenure:"tenureStatus",floorSpace:"floorSpaceStatus",occupationStartDate:"occupationStartDateStatus",occupationBreakDate:"occupationBreakDateStatus",occupationEndDate:"occupationEndDateStatus",facilitiesCondition:"facilitiesConditionStatus",facilitiesStatComp:"facilitiesStatCompStatus",facilitiesEpc:"facilitiesEpcStatus",facilitiesGovSystem:"facilitiesGovSystemStatus",locationYearPropertyMilestone:"locationYearPropertyMilestoneStatus",estateChange:"estateChangeStatus",desnzEntityHeadcountDesnz:"desnzEntityHeadcountDesnzStatus",desnzEntityHeadcountIcs:"desnzEntityHeadcountIcsStatus",desnzEntityHeadcountGbe:"desnzEntityHeadcountGbeStatus",desnzEntityHeadcountSeahorse:"desnzEntityHeadcountSeahorseStatus",dsitEntityHeadcountDsit:"dsitEntityHeadcountDsitStatus",dsitEntityHeadcountUksa:"dsitEntityHeadcountUksaStatus",totalHeadcountTotal:"totalHeadcountTotalStatus",totalHeadcountFacilitated:"totalHeadcountFacilitatedStatus",totalHeadcountVoid:"totalHeadcountVoidStatus",itEnabledWorkSettingsRequired:"itEnabledWorkSettingsRequiredStatus",itEnabledWorkSettingsFacilitated:"itEnabledWorkSettingsFacilitatedStatus",itEnabledWorkSettingsVoid:"itEnabledWorkSettingsVoidStatus",officeAttendanceFacilitated:"officeAttendanceFacilitatedStatus",officeAttendanceActual:"officeAttendanceActualStatus",runningCostRent:"runningCostRentStatus",runningCostNonRent:"runningCostNonRentStatus",runningCostTotal:"runningCostTotalStatus",runningCostPerDesk:"runningCostPerDeskStatus",runningCostPerHeadcount:"runningCostPerHeadcountStatus",source:"sourceStatus",capitalInvestmentCostFitOut:"capitalInvestmentCostFitOutStatus",dilaps:"dilapsStatus",runningCostPerEntityDesnzRent:"runningCostPerEntityDesnzRentStatus",runningCostPerEntityDesnzNonRent:"runningCostPerEntityDesnzNonRentStatus",runningCostPerEntityDesnzTotal:"runningCostPerEntityDesnzTotalStatus",runningCostPerEntityIcsRent:"runningCostPerEntityIcsRentStatus",runningCostPerEntityIcsNonRent:"runningCostPerEntityIcsNonRentStatus",runningCostPerEntityIcsTotal:"runningCostPerEntityIcsTotalStatus",runningCostPerEntityGbeRent:"runningCostPerEntityGbeRentStatus",runningCostPerEntityGbeNonRent:"runningCostPerEntityGbeNonRentStatus",runningCostPerEntityGbeTotal:"runningCostPerEntityGbeTotalStatus",runningCostPerEntitySeahorseRent:"runningCostPerEntitySeahorseRentStatus",runningCostPerEntitySeahorseNonRent:"runningCostPerEntitySeahorseNonRentStatus",runningCostPerEntitySeahorseTotal:"runningCostPerEntitySeahorseTotalStatus",runningCostPerEntityDsitRent:"runningCostPerEntityDsitRentStatus",runningCostPerEntityDsitNonRent:"runningCostPerEntityDsitNonRentStatus",runningCostPerEntityDsitTotal:"runningCostPerEntityDsitTotalStatus",runningCostPerEntityUksaRent:"runningCostPerEntityUksaRentStatus",runningCostPerEntityUksaNonRent:"runningCostPerEntityUksaNonRentStatus",runningCostPerEntityUksaTotal:"runningCostPerEntityUksaTotalStatus",runningCostPerEntityTotalCheck:"runningCostPerEntityTotalCheckStatus"},ole=new Set(["city","locationYearPropertyMilestone","locationName"]),sle=new Set(["tenure","occupationStartDate","occupationBreakDate","occupationEndDate","floorSpace","facilitiesCondition","facilitiesStatComp","facilitiesEpc","facilitiesGovSystem","estateChange"]),dle=(e,n,t,a)=>{const i=n[e],l=sle.has(e),r=t=>t[e]===i&&(!l||t.locationId===n.locationId),o=a.getRenderedNodes();let s=!0;if(t>0){const e=o.find(e=>e.rowIndex===t-1);e?.data&&r(e.data)&&(s=!1)}let d=1;if(s)for(let e=t+1;e<o.length;e++){const n=o.find(n=>n.rowIndex===e);if(!n?.data||!r(n.data))break;d++}return{isFirstInGroup:s,span:d}},cle=e=>{const n=e.value;if(null==n||""===n)return"N/A";const t=new Date(n);return isNaN(t.getTime())?n:`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`},ule=e=>{const n=e.value;return null==n||""===n||isNaN(Number(n))?"N/A":`${Number(n)}%`},ple=e=>{const n=e.value;return null==n||""===n||isNaN(Number(n))?"N/A":new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP",maximumFractionDigits:0}).format(Number(n))},mle=(e,n,t)=>{const a=rle[e],i="Total"===n||n.includes("Total"),l=ole.has(e)||sle.has(e),r=a?((e,n)=>t=>{const a=t.data?.[e],i=n?{fontWeight:"bold"}:{};return"Estimated"===a?{...i,color:"#D32F2F"}:"Current"===a?{...i,color:"#388E3C"}:Object.keys(i).length>0?i:null})(a,i):i?()=>({fontWeight:"bold"}):null,o={field:e,headerName:n};return l?(o.rowSpan=(e=>n=>{if(!n.data)return 1;const{isFirstInGroup:t,span:a}=dle(e,n.data,n.node?.rowIndex??0,n.api);return t?a:1})(e),o.cellStyle=((e,n)=>t=>{if(!t.data)return;const{isFirstInGroup:a}=dle(e,t.data,t.node?.rowIndex??0,t.api);return a?{display:"flex",alignItems:"center",borderTop:"1px solid var(--ag-border-color, #babfc7)",borderBottom:"1px solid var(--ag-border-color, #babfc7)",borderRight:"1px solid var(--ag-border-color, #babfc7)",backgroundColor:"#fff",...n?.(t)??{}}:{color:"transparent",borderTop:"none",borderBottom:"none",borderRight:"1px solid var(--ag-border-color, #babfc7)"}})(e,r)):r&&(o.cellStyle=r),{...o,...t}},fle=(e,n)=>{const t=(e.city??"").toLowerCase(),a=(n.city??"").toLowerCase();return t<a?-1:t>a?1:(Number(e.forecastYear)||0)-(Number(n.forecastYear)||0)},yle=()=>{const e=Je(),{data:n}=(0,x.IT)(XV,{variables:{accountId:e},skip:!e,fetchPolicy:"cache-and-network"}),t=(0,g.useMemo)(()=>{const e=n?.getEstatesConfiguration?.rows??[],t=new Date,a=t.getFullYear(),i=t.getMonth()<3?a-1:a,l=e.filter(e=>{const n=Number(e.forecastYear);return!isNaN(n)&&n>=i}),r=l.reduce((e,n)=>{const t=Number(n.forecastYear);return!isNaN(t)&&t<e?t:e},1/0);return l.map(e=>Number(e.forecastYear)===r?{...e,locationYearPropertyMilestone:"Current"}:e)},[n]),a=(0,g.useMemo)(()=>{return[{headerName:"Location, year and property",children:[mle("city","City",{pinned:"left",sort:"asc",sortIndex:0,sortable:!1,filter:!0,wrapText:!0,autoHeight:!0}),mle("locationYearPropertyMilestone","Milestone",{pinned:"left"}),mle("locationName","Location Name",{pinned:"left"}),mle("forecastYear","Forecast Year",{hide:!0,sort:"asc",sortIndex:1})]},{headerName:"Licence",children:[mle("tenure","Landlord"),mle("occupationStartDate","Start",{valueFormatter:cle}),mle("occupationBreakDate","Break",{valueFormatter:cle}),mle("occupationEndDate","End",{valueFormatter:cle})]},{headerName:"Facilities",children:[mle("floorSpace","msq"),mle("facilitiesCondition","Condition"),mle("facilitiesStatComp","Stat Comp",{valueFormatter:ule}),mle("facilitiesEpc","EPC"),mle("facilitiesGovSystem","Gov System")]},mle("estateChange","Estate Change"),{headerName:"DESNZ Entity Headcount",children:[mle("desnzEntityHeadcountDesnz","DESNZ"),mle("desnzEntityHeadcountIcs","ICS"),mle("desnzEntityHeadcountGbe","GBE"),mle("desnzEntityHeadcountSeahorse","Seahorse")]},{headerName:"DSIT Entity Headcount",children:[mle("dsitEntityHeadcountDsit","DSIT"),mle("dsitEntityHeadcountUksa","UKSA")]},{headerName:"Total Headcount",children:[mle("totalHeadcountTotal","Total"),mle("totalHeadcountFacilitated","Facilitated"),mle("totalHeadcountVoid","Void")]},{headerName:"IT Enabled Work Settings",children:[mle("itEnabledWorkSettingsRequired","Required"),mle("itEnabledWorkSettingsFacilitated","Facilitated"),mle("itEnabledWorkSettingsVoid","Void")]},{headerName:"Office Attendance",children:[mle("officeAttendanceFacilitated","Facilitated"),mle("officeAttendanceActual","Actual",{cellStyle:(e="officeAttendanceActualStatus",n=>{const t=n.data?.[e],a=n.data?.officeAttendanceActual,i={};return"Estimated"===t?i.color="#D32F2F":"Current"===t&&(i.color="#388E3C"),null==a||isNaN(Number(a))||(i.backgroundColor=((e,n,t,a,i,l,r)=>{const o=Math.max(30,Math.min(40,e));let s,d,c;if(o<=35){const e=(o-30)/5;s=Math.round(i[0]+e*(l[0]-i[0])),d=Math.round(i[1]+e*(l[1]-i[1])),c=Math.round(i[2]+e*(l[2]-i[2]))}else{const e=(o-35)/5;s=Math.round(l[0]+e*(r[0]-l[0])),d=Math.round(l[1]+e*(r[1]-l[1])),c=Math.round(l[2]+e*(r[2]-l[2]))}return`rgba(${s},${d},${c},0.4)`})(Number(a),0,0,0,[248,105,107],[255,235,132],[99,190,123])),Object.keys(i).length>0?i:null}),valueFormatter:ule})]},{headerName:"Running Costs",children:[mle("runningCostRent","Rent",{valueFormatter:ple}),mle("runningCostNonRent","Non-Rent",{valueFormatter:ple}),mle("runningCostTotal","Total",{valueFormatter:ple}),mle("runningCostPerDesk","Per Desk",{valueFormatter:ple}),mle("runningCostPerHeadcount","Per Headcount",{valueFormatter:ple})]},mle("source","Source"),{headerName:"Capital Investment",children:[mle("capitalInvestmentCostFitOut","Fit Out",{valueFormatter:ple}),mle("dilaps","Dilaps",{valueFormatter:ple})]},{headerName:"Running cost per entity based on headcount",children:[{headerName:"DESNZ",children:[mle("runningCostPerEntityDesnzRent","Rent",{valueFormatter:ple}),mle("runningCostPerEntityDesnzNonRent","Non-Rent",{valueFormatter:ple}),mle("runningCostPerEntityDesnzTotal","Total",{valueFormatter:ple})]},{headerName:"ICS",children:[mle("runningCostPerEntityIcsRent","Rent",{valueFormatter:ple}),mle("runningCostPerEntityIcsNonRent","Non-Rent",{valueFormatter:ple}),mle("runningCostPerEntityIcsTotal","Total",{valueFormatter:ple})]},{headerName:"GBE",children:[mle("runningCostPerEntityGbeRent","Rent",{valueFormatter:ple}),mle("runningCostPerEntityGbeNonRent","Non-Rent",{valueFormatter:ple}),mle("runningCostPerEntityGbeTotal","Total",{valueFormatter:ple})]},{headerName:"Seahorse",children:[mle("runningCostPerEntitySeahorseRent","Rent",{valueFormatter:ple}),mle("runningCostPerEntitySeahorseNonRent","Non-Rent",{valueFormatter:ple}),mle("runningCostPerEntitySeahorseTotal","Total",{valueFormatter:ple})]},{headerName:"DSIT",children:[mle("runningCostPerEntityDsitRent","Rent",{valueFormatter:ple}),mle("runningCostPerEntityDsitNonRent","Non-Rent",{valueFormatter:ple}),mle("runningCostPerEntityDsitTotal","Total",{valueFormatter:ple})]},{headerName:"UKSA",children:[mle("runningCostPerEntityUksaRent","Rent",{valueFormatter:ple}),mle("runningCostPerEntityUksaNonRent","Non-Rent",{valueFormatter:ple}),mle("runningCostPerEntityUksaTotal","Total",{valueFormatter:ple})]},mle("runningCostPerEntityTotalCheck","Total Check",{valueFormatter:ple})]},mle("notes","Notes",{tooltipField:"notes"})];var e},[]),i=(0,g.useCallback)(()=>(e=>{const{rowData:n,columnDefs:t,fileName:a="Export",sheetName:i="Sheet1",sortComparator:l,mergeConfigs:r}=e,o=ua(t),s=(e=>{const n={},t=e=>{for(const a of e)if("children"in a&&a.children)t(a.children);else{const e=a;e.field&&e.valueFormatter&&(n[e.field]=e.valueFormatter)}};return t(e),n})(t),d=l?[...n].sort(l):n,c=o.reduce((e,n)=>Math.max(e,n.groups.length),0),u=[];for(let e=0;e<c;e++)u.push(o.map(n=>n.groups[e]??""));u.push(o.map(e=>e.headerName));const p=d.map(e=>o.map(n=>{const t=e[n.field],a=s[n.field];return null==t||""===t?"N/A":"function"==typeof a?a({value:t}):t})),m=[...u,...p],f=ta.Wp.aoa_to_sheet(m),y=[];for(let e=0;e<c;e++){const n=u[e];let t=0;for(;t<n.length;){const a=n[t];if(!a){t++;continue}let i=t;for(;i+1<n.length&&n[i+1]===a;)i++;i>t&&y.push({s:{r:e,c:t},e:{r:e,c:i}}),t=i+1}}if(r){const e=u.length,n=new Map;for(const e of r)for(const t of e.fields)n.set(t,e.groupByField);for(let t=0;t<o.length;t++){const{field:a}=o[t];if(!n.has(a))continue;const i=n.get(a);let l=0;for(;l<d.length;){const n=d[l],r=n[a];let o=l;for(;o+1<d.length;){const e=d[o+1];if(e[a]!==r)break;if(i&&e[i]!==n[i])break;o++}o>l&&y.push({s:{r:e+l,c:t},e:{r:e+o,c:t}}),l=o+1}}}f["!merges"]=y;const g=ta.Wp.book_new();ta.Wp.book_append_sheet(g,f,i),(0,ta._h)(g,`${a}.xlsx`)})({rowData:t,columnDefs:a,fileName:"Estates Report",sheetName:"Estates Report",sortComparator:fle,mergeConfigs:[{fields:ole},{fields:sle,groupByField:"locationId"}]}),[t,a]),l=(0,g.useMemo)(()=>({columnDefs:a,rowData:t,suppressRowTransform:!0,autoSizeStrategy:{type:"fitCellContents"},enableBrowserTooltips:!0,defaultColDef:{sortable:!1,resizable:!0,filter:!1,valueFormatter:e=>null==e.value||""===e.value?"N/A":e.value}}),[a,t]);return(0,fe.jsx)(lle,{children:(0,fe.jsx)(Kte,{title:"Estates",enableFullscreen:!0,onExport:i,children:(0,fe.jsx)(uae,{gridKey:"estates-report-grid",gridOptions:l})})})},gle=(0,f.styled)("div")`
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
  padding: 8px 0;
`,hle=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  gap: 4px;
`,xle=(0,f.styled)(f.Text)`
  font-size: 12px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  text-align: center;
`,Tle=[{key:"TotalLocations",label:"Total Locations"},{key:"ActiveLocations",label:"Active Locations"},{key:"AvgLocationsPerClient",label:"Avg Locations / Client"},{key:"TotalClients",label:"Total Clients"},{key:"CountriesCovered",label:"Countries Covered"},{key:"TotalActiveAccounts",label:"Active Accounts"},{key:"EnterpriseAccounts",label:"Enterprise Accounts"},{key:"EngageAccounts",label:"Engage Accounts"},{key:"TotalUsers",label:"Total Users"},{key:"ActiveUsers",label:"Active Users"},{key:"DisabledUsers",label:"Disabled Users"},{key:"TotalCarbonTCO2e",label:"Total Carbon (tCO₂e)"},{key:"TotalUtilitiesSpendGBP",label:"Total Utilities Spend",prefix:"£"}],ble=e=>{let{tile:n}=e;const{data:t,loading:a,error:i,refetch:l}=(0,x.IT)(vte,{variables:{datasetName:"BusinessAnalyticsSummary"}}),r=(0,g.useMemo)(()=>{const e=jee(t?.getBusinessAnalyticsDashboardData);return e?.[0]??null},[t]),o=!r;return(0,fe.jsx)(Kte,{title:n.title||"Business Analytics Summary",loading:a,error:i,retry:l,noData:o,children:(0,fe.jsx)(gle,{children:Tle.map(e=>{let{key:n,label:t,prefix:a,suffix:i}=e;const l=hee(r?.[n]??"0"),o=kee(l,{compact:!0});return(0,fe.jsxs)(hle,{children:[(0,fe.jsxs)(Zte,{size:"small",children:[a,o,i]}),(0,fe.jsx)(xle,{children:t})]},n)})})})},vle=e=>{let{tile:n}=e;const t=(0,g.useRef)(null),{isExportingPdf:a}=iee(),i=lee(t),{data:l,loading:r,error:o,refetch:s}=(0,x.IT)(vte,{variables:{datasetName:"BusinessAnalyticsTransactionVolume"}}),{chartTheme:d,legendTheme:c}=(0,f.useAgChartsTheme)(n.colors),u=(0,g.useMemo)(()=>{const e=jee(l?.getBusinessAnalyticsDashboardData);return e?e.map(e=>({TransactionType:e.TransactionType??"Unknown",TransactionCount:hee(e.TransactionCount)})):null},[l]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:d,width:i,data:u||[],series:[{type:"bar",xKey:"TransactionType",yKey:"TransactionCount",yName:"Transaction Count",fillOpacity:1,tooltip:{renderer:e=>({data:[{label:e.datum.TransactionType,value:kee(e.datum.TransactionCount)}]})}}],axes:[{type:"number",position:"left",min:0,label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"bottom",...c}}),[u,d,i,c]);return(0,fe.jsx)(Kte,{title:n.title||"Transaction Volume by Type",loading:r,error:o,retry:s,noData:p,ref:t,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},Cle=e=>{let{tile:n}=e;const t=(0,g.useRef)(null),a=(0,g.useRef)(null),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(vte,{variables:{datasetName:"BusinessAnalyticsLocationGrowth"}}),s=(0,g.useMemo)(()=>{const e=jee(i?.getBusinessAnalyticsDashboardData);return e?e.map(e=>({Year:Number(e.Year),LocationsAdded:hee(e.LocationsAddedThisYear),TotalLocations:hee(e.TotalLocationsByEndOfYear),YoYGrowth:hee(e.YoYGrowthPercentage)})).sort((e,n)=>e.Year-n.Year):null},[i]),d=Boolean(s&&0===s.length),c=(0,g.useMemo)(()=>[{headerName:"Year",field:"Year"},{headerName:"Locations Added",field:"LocationsAdded",valueFormatter:e=>kee(e.value)},{headerName:"Total Locations",field:"TotalLocations",valueFormatter:e=>kee(e.value)},{headerName:"YoY Growth (%)",field:"YoYGrowth",valueFormatter:e=>null!=e.value?`${kee(e.value)}%`:"N/A"}],[]);return(0,fe.jsx)(Kte,{title:n.title||"Year-over-Year Location Growth",loading:l,error:r,retry:o,noData:d,ref:t,children:(0,fe.jsx)(uae,{ref:a,gridKey:"BusinessAnalyticsLocationGrowthTableTile",disableColumnStateRestoration:!0,gridOptions:{suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},columnDefs:c,rowData:s}})})},kle=e=>{let{tile:n}=e;const t=(0,g.useRef)(null),a=(0,g.useRef)(null),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(vte,{variables:{datasetName:"BusinessAnalyticsEnergySpendGrowth"}}),s=(0,g.useMemo)(()=>{const e=jee(i?.getBusinessAnalyticsDashboardData);return e?e.map(e=>({Year:Number(e.Year),AnnualEnergySpend:hee(e.AnnualEnergySpend),YoYGrowth:hee(e.YoYGrowthPercentage)})).sort((e,n)=>e.Year-n.Year):null},[i]),d=Boolean(s&&0===s.length),c=(0,g.useMemo)(()=>[{headerName:"Year",field:"Year"},{headerName:"Annual Energy Spend (£)",field:"AnnualEnergySpend",valueFormatter:e=>null!=e.value?`£${kee(e.value)}`:"N/A"},{headerName:"YoY Growth (%)",field:"YoYGrowth",valueFormatter:e=>null!=e.value?`${kee(e.value)}%`:"N/A"}],[]);return(0,fe.jsx)(Kte,{title:n.title||"Year-over-Year Energy Spend Growth",loading:l,error:r,retry:o,noData:d,ref:t,children:(0,fe.jsx)(uae,{ref:a,gridKey:"BusinessAnalyticsEnergySpendGrowthTableTile",disableColumnStateRestoration:!0,gridOptions:{suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},columnDefs:c,rowData:s}})})},Sle=e=>{let{tile:n}=e;const t=(0,g.useRef)(null),a=(0,g.useRef)(null),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(vte,{variables:{datasetName:"BusinessAnalyticsGeoDistribution"}}),s=(0,g.useMemo)(()=>{const e=jee(i?.getBusinessAnalyticsDashboardData);return e?e.map(e=>({CountryName:e.CountryName??"Unknown",CountryCode:e.CountryCode??"",LocationCount:hee(e.LocationCount),PercentageOfTotal:hee(e.PercentageOfTotal)})).sort((e,n)=>n.LocationCount-e.LocationCount):null},[i]),d=Boolean(s&&0===s.length),c=(0,g.useMemo)(()=>[{headerName:"Country",field:"CountryName"},{headerName:"Code",field:"CountryCode"},{headerName:"Locations",field:"LocationCount",valueFormatter:e=>kee(e.value)},{headerName:"% of Total",field:"PercentageOfTotal",valueFormatter:e=>null!=e.value?`${kee(e.value)}%`:"N/A"}],[]);return(0,fe.jsx)(Kte,{title:n.title||"Geographic Distribution of Locations",loading:l,error:r,retry:o,noData:d,ref:t,children:(0,fe.jsx)(uae,{ref:a,gridKey:"BusinessAnalyticsGeoDistributionTableTile",disableColumnStateRestoration:!0,gridOptions:{suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},columnDefs:c,rowData:s}})})},Nle=e=>{let{tile:n}=e;const t=(0,g.useRef)(null),a=(0,g.useRef)(null),{data:i,loading:l,error:r,refetch:o}=(0,x.IT)(vte,{variables:{datasetName:"BusinessAnalyticsCarbonGrowth"}}),s=(0,g.useMemo)(()=>{const e=jee(i?.getBusinessAnalyticsDashboardData);return e?e.map(e=>({Year:Number(e.Year),TotalCarbon:hee(e.TotalCarbonTCO2e),PreviousYearCarbon:hee(e.PreviousYearCarbonTCO2e),AbsoluteGrowth:hee(e.AbsoluteGrowthTCO2e),YoYGrowth:hee(e.YoYGrowthPercentage)})).sort((e,n)=>e.Year-n.Year).slice(-10):null},[i]),d=Boolean(s&&0===s.length),c=(0,g.useMemo)(()=>[{headerName:"Year",field:"Year"},{headerName:"Total Carbon (tCO₂e)",field:"TotalCarbon",valueFormatter:e=>kee(e.value)},{headerName:"Previous Year (tCO₂e)",field:"PreviousYearCarbon",valueFormatter:e=>null!=e.value?kee(e.value):"N/A"},{headerName:"Absolute Growth (tCO₂e)",field:"AbsoluteGrowth",valueFormatter:e=>null!=e.value?kee(e.value):"N/A"},{headerName:"YoY Growth (%)",field:"YoYGrowth",valueFormatter:e=>null!=e.value?`${kee(e.value)}%`:"N/A"}],[]);return(0,fe.jsx)(Kte,{title:n.title||"Year-over-Year Carbon Growth",loading:l,error:r,retry:o,noData:d,ref:t,children:(0,fe.jsx)(uae,{ref:a,gridKey:"BusinessAnalyticsCarbonGrowthTableTile",disableColumnStateRestoration:!0,gridOptions:{suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},columnDefs:c,rowData:s}})})},Ale=(0,f.styled)(f.Text)({padding:"80px 0 0 0",marginBottom:"-15px"}),Rle=e=>{let{tile:n}=e;return(0,fe.jsx)(Ale,{typescale:"headline",size:"medium",children:n.title})},Dle=JSON.parse('{"2024":{"Direct use of energy":{"Total":69414293.5407514,"Bapco Energies Corporate":"","Bapco Upstream":13267248.969999999,"Bapco Refining":43029045,"Bapco Gas":13117999.570751397,"Bapco Tazweed":""},"Indirect use of energy":{"Total":1683388.17,"Bapco Energies Corporate":"","Bapco Upstream":378538.2,"Bapco Refining":907246.8,"Bapco Gas":397603.17,"Bapco Tazweed":""},"Energy savings":{"Total":0,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"CO2e savings":{"Total":0,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Solar power energy savings":{"Total":8700,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":8700,"Bapco Gas":"","Bapco Tazweed":""},"Real-time energy optimiser savings":{"Total":342000,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":342000,"Bapco Gas":"","Bapco Tazweed":""},"Steam trap repair savings":{"Total":65000,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":65000,"Bapco Gas":"","Bapco Tazweed":""},"Advanced Process Control savings":{"Total":24000,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":24000,"Bapco Gas":"","Bapco Tazweed":""},"Energy Consumption Cost":{"Total":"","Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Scope 1 CO2e savings":{"Total":660,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"2017 Emissions":{"Scope 1":{"Total":5723,"Bapco Energies Corporate":"","Bapco Upstream":962.59,"Bapco Refining":3675.17,"Bapco Gas":817.4814051340727,"Bapco Tazweed":""},"Scope 2":{"Total":216,"Bapco Energies Corporate":"","Bapco Upstream":86.72,"Bapco Refining":106.13399999999999,"Bapco Gas":22.842312983414033,"Bapco Tazweed":""},"Total":{"Total":5939,"Bapco Energies Corporate":"","Bapco Upstream":1049.31,"Bapco Refining":3781.304,"Bapco Gas":840.3237181174867,"Bapco Tazweed":""}},"Current Year Emissions":{"Scope 1":{"Total":5628.882390000001,"Bapco Energies Corporate":"","Bapco Upstream":1716.0954,"Bapco Refining":2824.42,"Bapco Gas":1088.36699,"Bapco Tazweed":""},"Scope 2":{"Total":232.41179000000002,"Bapco Energies Corporate":"","Bapco Upstream":79.358,"Bapco Refining":102.54,"Bapco Gas":50.51379,"Bapco Tazweed":""},"Total":{"Total":5861.294179999999,"Bapco Energies Corporate":"","Bapco Upstream":1795.4533999999999,"Bapco Refining":2926.96,"Bapco Gas":1138.88078,"Bapco Tazweed":""}},"2017 Carbon Itensity":{"Carbon intensity (2017)":{"Total":4.29,"Bapco Energies Corporate":"","Bapco Upstream":1.31248738,"Bapco Refining":6.701578815,"Bapco Gas":41.95754603,"Bapco Tazweed":""}},"Current Year Carbon Intensity":{"Carbon intensity (current year)":{"Total":3.86,"Bapco Energies Corporate":"","Bapco Upstream":1.951924868,"Bapco Refining":5.140221036,"Bapco Gas":43.29287531,"Bapco Tazweed":""}},"Carbon Intensity Reduction":{"Reduction in carbon emissions intensity":{"Total":0.1,"Bapco Energies Corporate":"","Bapco Upstream":0.487195151,"Bapco Refining":-0.232983573,"Bapco Gas":0.031825724,"Bapco Tazweed":""}},"Average flaring from Upstream Operations":{"Total":3.2,"Bapco Energies Corporate":"","Bapco Upstream":3.2,"Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Flaring intensity":{"Total":6.8,"Bapco Energies Corporate":"","Bapco Upstream":6.8,"Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Water Withdrawal":{"Seawater":{"Total":0.93,"Bapco Energies Corporate":"","Bapco Upstream":0.004760584827243638,"Bapco Refining":0.9891408471004467,"Bapco Gas":0.94869053,"Bapco Tazweed":""},"Producted water":{"Total":0.053,"Bapco Energies Corporate":"","Bapco Upstream":0.8895390870609408,"Bapco Refining":0,"Bapco Gas":0,"Bapco Tazweed":""},"Groundwater":{"Total":0.015,"Bapco Energies Corporate":"","Bapco Upstream":0.08314830258601649,"Bapco Refining":0.010859152899553356,"Bapco Gas":0,"Bapco Tazweed":""},"Utility Water":{"Total":0.001,"Bapco Energies Corporate":"","Bapco Upstream":0.022552025525799158,"Bapco Refining":0,"Bapco Gas":0.05130947,"Bapco Tazweed":""}},"Water Discharge":{"Seawater":{"Total":0.937,"Bapco Energies Corporate":"","Bapco Upstream":0,"Bapco Refining":0.9937155230282285,"Bapco Gas":0.9099,"Bapco Tazweed":""},"Producted water":{"Total":0.055,"Bapco Energies Corporate":"","Bapco Upstream":0.9765954698997796,"Bapco Refining":0,"Bapco Gas":0.0005,"Bapco Tazweed":""},"Groundwater":{"Total":0.006,"Bapco Energies Corporate":"","Bapco Upstream":0,"Bapco Refining":0.006284476971771476,"Bapco Gas":0,"Bapco Tazweed":""},"Utility Water":{"Total":0.002,"Bapco Energies Corporate":"","Bapco Upstream":0.023404530100220387,"Bapco Refining":0,"Bapco Gas":0.0896,"Bapco Tazweed":""}},"Water consumption cost":{"Total":"","Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of recorded major environmental violations/incidents":{"Total":0,"Bapco Energies Corporate":"","Bapco Upstream":0,"Bapco Refining":0,"Bapco Gas":0,"Bapco Tazweed":""},"Waste generated":{"Total":1048789.1706,"Bapco Energies Corporate":"","Bapco Upstream":1036915,"Bapco Refining":11279.9306,"Bapco Gas":594.24,"Bapco Tazweed":""},"Hazardous waste directed and diverted from dispoal":{"Total":40085.1405,"Bapco Energies Corporate":"","Bapco Upstream":32389.3427,"Bapco Refining":7181.9178,"Bapco Gas":513.88,"Bapco Tazweed":""},"Cost of waste treatement":{"Total":"","Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of FTEs":{"Total":4813,"Bapco Energies Corporate":117,"Bapco Upstream":1025,"Bapco Refining":2887,"Bapco Gas":640,"Bapco Tazweed":144},"Total Employees by Gender":{"Female":{"Total":0.123,"Bapco Energies Corporate":0.41025641,"Bapco Upstream":0.14146341463414633,"Bapco Refining":0.11915483200554208,"Bapco Gas":0.071875,"Bapco Tazweed":0.0625},"Male":{"Total":0.887,"Bapco Energies Corporate":0.58974359,"Bapco Upstream":0.8585365853658536,"Bapco Refining":0.8808451679944579,"Bapco Gas":0.928125,"Bapco Tazweed":0.9375}},"Total Employees by Age Group":{"Under 30 years":{"Total":0.226,"Bapco Energies Corporate":0.21367521367521367,"Bapco Upstream":0.2146341463414634,"Bapco Refining":0.2060962937305161,"Bapco Gas":0.2578125,"Bapco Tazweed":0.5625},"Between 30 - 50 years":{"Total":0.617,"Bapco Energies Corporate":0.6666666666666666,"Bapco Upstream":0.6497560975609756,"Bapco Refining":0.6182888811915483,"Bapco Gas":0.60625,"Bapco Tazweed":0.3611111111111111},"Above 50 years":{"Total":0.157,"Bapco Energies Corporate":0.11965811965811966,"Bapco Upstream":0.13560975609756099,"Bapco Refining":0.17561482507793558,"Bapco Gas":0.1359375,"Bapco Tazweed":0.0763888888888889}},"New Hires by Gender":{"Female":{"Total":0.261,"Bapco Energies Corporate":0.35,"Bapco Upstream":0.1,"Bapco Refining":0.3,"Bapco Gas":0.3333333333333333,"Bapco Tazweed":0.014},"Male":{"Total":0.739,"Bapco Energies Corporate":0.647887323943662,"Bapco Upstream":0.9,"Bapco Refining":0.7,"Bapco Gas":0.6666666666666666,"Bapco Tazweed":0.86}},"New Hires by Age Group":{"Under 30 years":{"Total":0.4097,"Bapco Energies Corporate":0.2535211267605634,"Bapco Upstream":0.3,"Bapco Refining":0.524822695035461,"Bapco Gas":1,"Bapco Tazweed":0.28},"Between 30 - 50 years":{"Total":0.4548,"Bapco Energies Corporate":0.6197183098591549,"Bapco Upstream":0.43333333333333335,"Bapco Refining":0.36879432624113473,"Bapco Gas":0,"Bapco Tazweed":19},"Above 50 years":{"Total":0.1355,"Bapco Energies Corporate":0.1267605633802817,"Bapco Upstream":0.26666666666666666,"Bapco Refining":0.10638297872340426,"Bapco Gas":0,"Bapco Tazweed":0.66}},"Employees Leaving by Gender":{"Female":{"Total":104,"Bapco Energies Corporate":3,"Bapco Upstream":5,"Bapco Refining":93,"Bapco Gas":13,"Bapco Tazweed":8},"Male":{"Total":314,"Bapco Energies Corporate":2,"Bapco Upstream":48,"Bapco Refining":246,"Bapco Gas":10,"Bapco Tazweed":2}},"Total Number of Employees Leaving":{"Total number of employees leaving":{"Total":418,"Bapco Energies Corporate":5,"Bapco Upstream":53,"Bapco Refining":339,"Bapco Gas":3,"Bapco Tazweed":10}},"Turnnover Rate":{"Turnover rate":{"Total":0.1,"Bapco Energies Corporate":0.02564102564102564,"Bapco Upstream":0.0517,"Bapco Refining":0.117,"Bapco Gas":0.0203125,"Bapco Tazweed":0.07}},"Turnover Rate by Gender":{"Female":{"Total":0.23,"Bapco Energies Corporate":0.008547008547008548,"Bapco Upstream":0.005,"Bapco Refining":0.032,"Bapco Gas":0.0046875,"Bapco Tazweed":0.03},"Male":{"Total":0.77,"Bapco Energies Corporate":0.017094017094017096,"Bapco Upstream":0.047,"Bapco Refining":0.085,"Bapco Gas":0.015625,"Bapco Tazweed":0.06}},"Turnover Rate by Age Group":{"Under 30 years":{"Total":0.1,"Bapco Energies Corporate":0,"Bapco Upstream":0.002,"Bapco Refining":0.011,"Bapco Gas":0.0078125,"Bapco Tazweed":""},"Between 30 - 50 years":{"Total":0.49,"Bapco Energies Corporate":0.017094017094017096,"Bapco Upstream":0.02,"Bapco Refining":0.051,"Bapco Gas":0.0125,"Bapco Tazweed":""},"Above 50 years":{"Total":0.41,"Bapco Energies Corporate":0.008547008547008548,"Bapco Upstream":0.03,"Bapco Refining":0.055,"Bapco Gas":0,"Bapco Tazweed":""}},"Employees Taking Parental Leave":{"Female":{"Total":30,"Bapco Energies Corporate":0,"Bapco Upstream":13,"Bapco Refining":13,"Bapco Gas":4,"Bapco Tazweed":0},"Male":{"Total":245,"Bapco Energies Corporate":3,"Bapco Upstream":54,"Bapco Refining":146,"Bapco Gas":42,"Bapco Tazweed":0}},"Employees Returning to Work After Parental Leave":{"Female":{"Total":0.9,"Bapco Energies Corporate":"","Bapco Upstream":1,"Bapco Refining":1,"Bapco Gas":1,"Bapco Tazweed":""},"Male":{"Total":0.91,"Bapco Energies Corporate":1,"Bapco Upstream":1,"Bapco Refining":1,"Bapco Gas":1,"Bapco Tazweed":""}},"Number of training sessions delivered":{"Total":94,"Bapco Energies Corporate":94,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of participating employees":{"Total":3611,"Bapco Energies Corporate":3611,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of BE Talks sessions":{"Total":32,"Bapco Energies Corporate":32,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Empower Program Interns":{"Total":372,"Bapco Energies Corporate":372,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Furas Program Interns":{"Total":112,"Bapco Energies Corporate":112,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of employees in senior management positions":{"Total":20,"Bapco Energies Corporate":29,"Bapco Upstream":14,"Bapco Refining":61,"Bapco Gas":20,"Bapco Tazweed":3},"Number of female employees in senior management positions":{"Total":6,"Bapco Energies Corporate":6,"Bapco Upstream":3,"Bapco Refining":14,"Bapco Gas":2,"Bapco Tazweed":1},"Number of employees enrolled in Women Exectuive Leadership Program":{"Total":32,"Bapco Energies Corporate":32,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Bahrainization rate":{"Total":0.85,"Bapco Energies Corporate":0.79,"Bapco Upstream":0.89,"Bapco Refining":0.71,"Bapco Gas":0.88,"Bapco Tazweed":0.98},"Coverage rate of workforce":{"Total":1,"Bapco Energies Corporate":1,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of hours worked":{"Total":43068089,"Bapco Energies Corporate":"","Bapco Upstream":16801752,"Bapco Refining":23693088,"Bapco Gas":1951486,"Bapco Tazweed":621763},"Lost Time Injury Rate":{"Total":0.023,"Bapco Energies Corporate":"","Bapco Upstream":0,"Bapco Refining":0,"Bapco Gas":0.51,"Bapco Tazweed":0},"Number of H&S courses":{"Total":636,"Bapco Energies Corporate":"","Bapco Upstream":332,"Bapco Refining":260,"Bapco Gas":28,"Bapco Tazweed":""},"Number of discrimination cases":{"Total":0,"Bapco Energies Corporate":"","Bapco Upstream":0,"Bapco Refining":0,"Bapco Gas":0,"Bapco Tazweed":""},"Number of employees volunteering":{"Total":1217,"Bapco Energies Corporate":1217,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Hours of volunteering":{"Total":6054,"Bapco Energies Corporate":6054,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Board attendance rate":{"Total":0.84,"Bapco Energies Corporate":0.84,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Female representation at Board level":{"Total":0.1,"Bapco Energies Corporate":0.1,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Male representation at Board level":{"Total":0.9,"Bapco Energies Corporate":0.9,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Female representation at Executive management level":{"Total":0.333,"Bapco Energies Corporate":0.333,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Male representation at Executive management level":{"Total":0.66,"Bapco Energies Corporate":0.66,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Cybersecurity awareness trained users":{"Total":4800,"Bapco Energies Corporate":4800,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Data privacy and cybersecurity complaints":{"Total":0,"Bapco Energies Corporate":0,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Economic value distributed":{"Total":1525634150,"Bapco Energies Corporate":1525634150,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Revenue Generated":{"Total":9534617850,"Bapco Energies Corporate":9534617850,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""}},"2025":{"Direct use of energy":{"Total":69384293.5407514,"Bapco Energies Corporate":"","Bapco Upstream":13257248.969999999,"Bapco Refining":43019045,"Bapco Gas":13107999.570751397,"Bapco Tazweed":""},"Indirect use of energy":{"Total":1653388.17,"Bapco Energies Corporate":"","Bapco Upstream":368538.2,"Bapco Refining":897246.8,"Bapco Gas":387603.17,"Bapco Tazweed":""},"Energy savings":{"Total":0,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"CO2e savings":{"Total":0,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Solar power energy savings":{"Total":9700,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":9700,"Bapco Gas":"","Bapco Tazweed":""},"Real-time energy optimiser savings":{"Total":352000,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":352000,"Bapco Gas":"","Bapco Tazweed":""},"Steam trap repair savings":{"Total":75000,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":75000,"Bapco Gas":"","Bapco Tazweed":""},"Advanced Process Control savings":{"Total":34000,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":34000,"Bapco Gas":"","Bapco Tazweed":""},"Energy Consumption Cost":{"Total":60000,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Scope 1 CO2e savings":{"Total":994.1176099999993,"Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"2017 Emissions":{"Scope 1":{"Total":5723,"Bapco Energies Corporate":"","Bapco Upstream":962.59,"Bapco Refining":3675.17,"Bapco Gas":817.4814051340727,"Bapco Tazweed":""},"Scope 2":{"Total":216,"Bapco Energies Corporate":"","Bapco Upstream":86.72,"Bapco Refining":106.13399999999999,"Bapco Gas":22.842312983414033,"Bapco Tazweed":""},"Total":{"Total":5939,"Bapco Energies Corporate":"","Bapco Upstream":1049.31,"Bapco Refining":3781.304,"Bapco Gas":840.3237181174867,"Bapco Tazweed":""}},"Current Year Emissions":{"Scope 1":{"Total":4728.882390000001,"Bapco Energies Corporate":"","Bapco Upstream":1416.0954,"Bapco Refining":2524.42,"Bapco Gas":788.36699,"Bapco Tazweed":""},"Scope 2":{"Total":202.41179000000002,"Bapco Energies Corporate":"","Bapco Upstream":69.358,"Bapco Refining":92.54,"Bapco Gas":40.51379,"Bapco Tazweed":""},"Total":{"Total":4931.294179999999,"Bapco Energies Corporate":"","Bapco Upstream":1485.4533999999999,"Bapco Refining":2616.96,"Bapco Gas":828.88078,"Bapco Tazweed":""}},"2017 Carbon Itensity":{"Carbon intensity (2017)":{"Total":4.29,"Bapco Energies Corporate":"","Bapco Upstream":1.31248738,"Bapco Refining":6.701578815,"Bapco Gas":41.95754603,"Bapco Tazweed":""}},"Current Year Carbon Intensity":{"Carbon intensity (current year)":{"Total":3.81,"Bapco Energies Corporate":"","Bapco Upstream":1.851924868498842,"Bapco Refining":5.040221036147068,"Bapco Gas":43.19287531426309,"Bapco Tazweed":""}},"Carbon Intensity Reduction":{"Reduction in carbon emissions intensity":{"Total":0.11188811188811189,"Bapco Energies Corporate":"","Bapco Upstream":0.4871951513723068,"Bapco Refining":-0.23298357326742844,"Bapco Gas":0.03182572401402502,"Bapco Tazweed":""}},"Average flaring from Upstream Operations":{"Total":3,"Bapco Energies Corporate":"","Bapco Upstream":3,"Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Flaring intensity":{"Total":6.5,"Bapco Energies Corporate":"","Bapco Upstream":6.5,"Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Water Withdrawal":{"Seawater":{"Total":0.93,"Bapco Energies Corporate":"","Bapco Upstream":0.004760584827243638,"Bapco Refining":0.9891408471004467,"Bapco Gas":0.94869053,"Bapco Tazweed":""},"Producted water":{"Total":0.053,"Bapco Energies Corporate":"","Bapco Upstream":0.8895390870609408,"Bapco Refining":0,"Bapco Gas":0,"Bapco Tazweed":""},"Groundwater":{"Total":0.015,"Bapco Energies Corporate":"","Bapco Upstream":0.08314830258601649,"Bapco Refining":0.010859152899553356,"Bapco Gas":0,"Bapco Tazweed":""},"Utility Water":{"Total":0.001,"Bapco Energies Corporate":"","Bapco Upstream":0.022552025525799158,"Bapco Refining":0,"Bapco Gas":0.05130947,"Bapco Tazweed":""}},"Water Discharge":{"Seawater":{"Total":0.937,"Bapco Energies Corporate":"","Bapco Upstream":0,"Bapco Refining":0.9937155230282285,"Bapco Gas":0.9099,"Bapco Tazweed":""},"Producted water":{"Total":0.055,"Bapco Energies Corporate":"","Bapco Upstream":0.9765954698997796,"Bapco Refining":0,"Bapco Gas":0.0005,"Bapco Tazweed":""},"Groundwater":{"Total":0.006,"Bapco Energies Corporate":"","Bapco Upstream":0,"Bapco Refining":0.006284476971771476,"Bapco Gas":0,"Bapco Tazweed":""},"Utility Water":{"Total":0.002,"Bapco Energies Corporate":"","Bapco Upstream":0.023404530100220387,"Bapco Refining":0,"Bapco Gas":0.0896,"Bapco Tazweed":""}},"Water consumption cost":{"Total":"","Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of recorded major environmental violations/incidents":{"Total":0,"Bapco Energies Corporate":"","Bapco Upstream":0,"Bapco Refining":0,"Bapco Gas":0,"Bapco Tazweed":""},"Waste generated":{"Total":1048489.1706,"Bapco Energies Corporate":"","Bapco Upstream":1036815,"Bapco Refining":11179.9306,"Bapco Gas":494.24,"Bapco Tazweed":""},"Hazardous waste directed and diverted from dispoal":{"Total":39785.1405,"Bapco Energies Corporate":"","Bapco Upstream":32289.3427,"Bapco Refining":7081.9178,"Bapco Gas":413.88,"Bapco Tazweed":""},"Cost of waste treatement":{"Total":"","Bapco Energies Corporate":"","Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of FTEs":{"Total":4823,"Bapco Energies Corporate":119,"Bapco Upstream":1027,"Bapco Refining":2889,"Bapco Gas":642,"Bapco Tazweed":146},"Total Employees by Gender":{"Female":{"Total":0.123,"Bapco Energies Corporate":0.41025641,"Bapco Upstream":0.14146341463414633,"Bapco Refining":0.11915483200554208,"Bapco Gas":0.071875,"Bapco Tazweed":0.0625},"Male":{"Total":0.887,"Bapco Energies Corporate":0.58974359,"Bapco Upstream":0.8585365853658536,"Bapco Refining":0.8808451679944579,"Bapco Gas":0.928125,"Bapco Tazweed":0.9375}},"Total Employees by Age Group":{"Under 30 years":{"Total":0.226,"Bapco Energies Corporate":0.21367521367521367,"Bapco Upstream":0.2146341463414634,"Bapco Refining":0.2060962937305161,"Bapco Gas":0.2578125,"Bapco Tazweed":0.5625},"Between 30 - 50 years":{"Total":0.617,"Bapco Energies Corporate":0.6666666666666666,"Bapco Upstream":0.6497560975609756,"Bapco Refining":0.6182888811915483,"Bapco Gas":0.60625,"Bapco Tazweed":0.3611111111111111},"Above 50 years":{"Total":0.157,"Bapco Energies Corporate":0.11965811965811966,"Bapco Upstream":0.13560975609756099,"Bapco Refining":0.17561482507793558,"Bapco Gas":0.1359375,"Bapco Tazweed":0.0763888888888889}},"New Hires by Gender":{"Female":{"Total":0.261,"Bapco Energies Corporate":0.35,"Bapco Upstream":0.1,"Bapco Refining":0.3,"Bapco Gas":0.3333333333333333,"Bapco Tazweed":0.014},"Male":{"Total":0.739,"Bapco Energies Corporate":0.647887323943662,"Bapco Upstream":0.9,"Bapco Refining":0.7,"Bapco Gas":0.6666666666666666,"Bapco Tazweed":0.86}},"New Hires by Age Group":{"Under 30 years":{"Total":0.4097,"Bapco Energies Corporate":0.2535211267605634,"Bapco Upstream":0.3,"Bapco Refining":0.524822695035461,"Bapco Gas":1,"Bapco Tazweed":0.28},"Between 30 - 50 years":{"Total":0.4548,"Bapco Energies Corporate":0.6197183098591549,"Bapco Upstream":0.43333333333333335,"Bapco Refining":0.36879432624113473,"Bapco Gas":0,"Bapco Tazweed":19},"Above 50 years":{"Total":0.1355,"Bapco Energies Corporate":0.1267605633802817,"Bapco Upstream":0.26666666666666666,"Bapco Refining":0.10638297872340426,"Bapco Gas":0,"Bapco Tazweed":0.66}},"Employees Leaving by Gender":{"Female":{"Total":104,"Bapco Energies Corporate":3,"Bapco Upstream":5,"Bapco Refining":93,"Bapco Gas":13,"Bapco Tazweed":8},"Male":{"Total":314,"Bapco Energies Corporate":2,"Bapco Upstream":48,"Bapco Refining":246,"Bapco Gas":10,"Bapco Tazweed":2}},"Total Number of Employees Leaving":{"Total number of employees leaving":{"Total":418,"Bapco Energies Corporate":5,"Bapco Upstream":53,"Bapco Refining":339,"Bapco Gas":3,"Bapco Tazweed":10}},"Turnnover Rate":{"Turnover rate":{"Total":0.1,"Bapco Energies Corporate":0.02564102564102564,"Bapco Upstream":0.0517,"Bapco Refining":0.117,"Bapco Gas":0.0203125,"Bapco Tazweed":0.07}},"Turnover Rate by Gender":{"Female":{"Total":0.23,"Bapco Energies Corporate":0.008547008547008548,"Bapco Upstream":0.005,"Bapco Refining":0.032,"Bapco Gas":0.0046875,"Bapco Tazweed":0.03},"Male":{"Total":0.77,"Bapco Energies Corporate":0.017094017094017096,"Bapco Upstream":0.047,"Bapco Refining":0.085,"Bapco Gas":0.015625,"Bapco Tazweed":0.06}},"Turnover Rate by Age Group":{"Under 30 years":{"Total":0.1,"Bapco Energies Corporate":0,"Bapco Upstream":0.002,"Bapco Refining":0.011,"Bapco Gas":0.0078125,"Bapco Tazweed":""},"Between 30 - 50 years":{"Total":0.49,"Bapco Energies Corporate":0.017094017094017096,"Bapco Upstream":0.02,"Bapco Refining":0.051,"Bapco Gas":0.0125,"Bapco Tazweed":""},"Above 50 years":{"Total":0.41,"Bapco Energies Corporate":0.008547008547008548,"Bapco Upstream":0.03,"Bapco Refining":0.055,"Bapco Gas":0,"Bapco Tazweed":""}},"Employees Taking Parental Leave":{"Female":{"Total":30,"Bapco Energies Corporate":0,"Bapco Upstream":13,"Bapco Refining":13,"Bapco Gas":4,"Bapco Tazweed":0},"Male":{"Total":245,"Bapco Energies Corporate":3,"Bapco Upstream":54,"Bapco Refining":146,"Bapco Gas":42,"Bapco Tazweed":0}},"Employees Returning to Work After Parental Leave":{"Female":{"Total":0.9,"Bapco Energies Corporate":"","Bapco Upstream":1,"Bapco Refining":1,"Bapco Gas":1,"Bapco Tazweed":""},"Male":{"Total":0.91,"Bapco Energies Corporate":1,"Bapco Upstream":1,"Bapco Refining":1,"Bapco Gas":1,"Bapco Tazweed":""}},"Number of training sessions delivered":{"Total":97,"Bapco Energies Corporate":97,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of participating employees":{"Total":3629,"Bapco Energies Corporate":3629,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of BE Talks sessions":{"Total":35,"Bapco Energies Corporate":35,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Empower Program Interns":{"Total":380,"Bapco Energies Corporate":380,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Furas Program Interns":{"Total":115,"Bapco Energies Corporate":115,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of employees in senior management positions":{"Total":23,"Bapco Energies Corporate":3,"Bapco Upstream":4,"Bapco Refining":5,"Bapco Gas":5,"Bapco Tazweed":6},"Number of female employees in senior management positions":{"Total":11,"Bapco Energies Corporate":1,"Bapco Upstream":2,"Bapco Refining":2,"Bapco Gas":3,"Bapco Tazweed":3},"Number of employees enrolled in Women Exectuive Leadership Program":{"Total":36,"Bapco Energies Corporate":36,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Bahrainization rate":{"Total":0.86,"Bapco Energies Corporate":0.8,"Bapco Upstream":0.9,"Bapco Refining":0.72,"Bapco Gas":0.89,"Bapco Tazweed":0.99},"Coverage rate of workforce":{"Total":1,"Bapco Energies Corporate":1,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Number of hours worked":{"Total":43068089,"Bapco Energies Corporate":"","Bapco Upstream":16801752,"Bapco Refining":23693088,"Bapco Gas":1951486,"Bapco Tazweed":621763},"Lost Time Injury Rate":{"Total":0.023,"Bapco Energies Corporate":"","Bapco Upstream":0,"Bapco Refining":0,"Bapco Gas":0.51,"Bapco Tazweed":0},"Number of H&S courses":{"Total":636,"Bapco Energies Corporate":"","Bapco Upstream":332,"Bapco Refining":260,"Bapco Gas":28,"Bapco Tazweed":""},"Number of discrimination cases":{"Total":0,"Bapco Energies Corporate":"","Bapco Upstream":0,"Bapco Refining":0,"Bapco Gas":0,"Bapco Tazweed":""},"Number of employees volunteering":{"Total":1217,"Bapco Energies Corporate":1217,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Hours of volunteering":{"Total":6054,"Bapco Energies Corporate":6054,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Board attendance rate":{"Total":0.84,"Bapco Energies Corporate":0.84,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Female representation at Board level":{"Total":0.1,"Bapco Energies Corporate":0.1,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Male representation at Board level":{"Total":0.9,"Bapco Energies Corporate":0.9,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Female representation at Executive management level":{"Total":0.333,"Bapco Energies Corporate":0.333,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Male representation at Executive management level":{"Total":0.66,"Bapco Energies Corporate":0.66,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Cybersecurity awareness trained users":{"Total":4800,"Bapco Energies Corporate":4800,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Data privacy and cybersecurity complaints":{"Total":0,"Bapco Energies Corporate":0,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Economic value distributed":{"Total":1525634150,"Bapco Energies Corporate":1525644150,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""},"Revenue Generated":{"Total":9534617850,"Bapco Energies Corporate":9534627850,"Bapco Upstream":"","Bapco Refining":"","Bapco Gas":"","Bapco Tazweed":""}}}'),Lle=e=>{let{tile:n}=e;const{filters:t}=iee(),a=t.standaloneYear,i="All"===(t.businessUnit||"All")?"Total":t.businessUnit,l=kee(Dle[a]?.["Scope 1 CO2e savings"]?.[i]||0);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:0===Number(l),children:(0,fe.jsxs)(Zte,{children:[l,(0,fe.jsx)(Xte,{children:"Gg"})]})})},Ile=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Scope 1 CO2e savings"],c=Dle[2025]?.["Scope 1 CO2e savings"],u=(0,g.useMemo)(()=>[{Date:"2024",Value:d?.[s]},{Date:"2025",Value:c?.[s]}].filter(e=>!!e.Value),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Value",yName:"Scope 1 CO2e savings (Gg)",tooltip:{renderer:e=>({data:[{label:"Scope 1 CO2e savings (Gg)",value:kee(e.datum.Value)}]})}}],axes:[{type:"number",position:"left",keys:["Value"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},jle=e=>{let{tile:n}=e;const{filters:t}=iee(),a=t.standaloneYear,i="All"===(t.businessUnit||"All")?"Total":t.businessUnit,l=kee(Dle[a]?.["Average flaring from Upstream Operations"]?.[i]||0);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:0===Number(l),children:(0,fe.jsxs)(Zte,{children:[l,(0,fe.jsx)(Xte,{children:"mmscfd"})]})})},wle=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Average flaring from Upstream Operations"],c=Dle[2025]?.["Average flaring from Upstream Operations"],u=(0,g.useMemo)(()=>[{Date:"2024",Value:d?.[s]},{Date:"2025",Value:c?.[s]}].filter(e=>!!e.Value),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Value",yName:"Average flaring from upstream operations (mmscfd)",tooltip:{renderer:e=>({data:[{label:"Average flaring from upstream operations (mmscf)",value:kee(e.datum.Value)}]})}}],axes:[{type:"number",position:"left",keys:["Value"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},Ole=e=>{let{tile:n}=e;const{filters:t}=iee(),a=t.standaloneYear,i="All"===(t.businessUnit||"All")?"Total":t.businessUnit,l=kee(Dle[a]?.["Flaring intensity"]?.[i]||0);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:0===Number(l),children:(0,fe.jsxs)(Zte,{children:[l,(0,fe.jsx)(Xte,{children:"scf/BOE"})]})})},Ele=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Flaring intensity"],c=Dle[2025]?.["Flaring intensity"],u=(0,g.useMemo)(()=>[{Date:"2024",Value:d?.[s]},{Date:"2025",Value:c?.[s]}].filter(e=>!!e.Value),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Value",yName:"Flaring intensity (scf/BOE)",tooltip:{renderer:e=>({data:[{label:"Flaring intensity (scf/BOE)",value:kee(e.datum.Value)}]})}}],axes:[{type:"number",position:"left",keys:["Value"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},_le=e=>{let{tile:n}=e;const{filters:t}=iee(),a=t.standaloneYear,i="All"===(t.businessUnit||"All")?"Total":t.businessUnit,l=kee(Dle[a]?.["Current Year Carbon Intensity"]?.["Carbon intensity (current year)"]?.[i]||0);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:0===Number(l),children:(0,fe.jsxs)(Zte,{children:[l,(0,fe.jsx)(Xte,{children:"g/MJ"})]})})},Fle=e=>{let{tile:n}=e;const{filters:t}=iee(),a=t.standaloneYear,i="All"===(t.businessUnit||"All")?"Total":t.businessUnit,l=kee(Dle[a]?.["2017 Carbon Itensity"]?.["Carbon intensity (2017)"]?.[i]||0);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:0===Number(l),children:(0,fe.jsxs)(Zte,{children:[l,(0,fe.jsx)(Xte,{children:"g/MJ"})]})})},Ple=e=>{let{tile:n}=e;const{filters:t}=iee(),a=t.standaloneYear,i="All"===(t.businessUnit||"All")?"Total":t.businessUnit,l=kee(100*(Dle[a]?.["Carbon Intensity Reduction"]?.["Reduction in carbon emissions intensity"]?.[i]||0));return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:0===Number(l),children:(0,fe.jsxs)(Zte,{children:[l,(0,fe.jsx)(Xte,{children:"%"})]})})},Ble=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Current Year Carbon Intensity"]["Carbon intensity (current year)"],c=Dle[2025]?.["Current Year Carbon Intensity"]["Carbon intensity (current year)"],u=(0,g.useMemo)(()=>[{Date:"2024",Value:d?.[s]},{Date:"2025",Value:c?.[s]}].filter(e=>!!e.Value),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Value",yName:"Carbon intensity (g/MJ Production)",tooltip:{renderer:e=>({data:[{label:"Carbon intensity (g/MJ Production)",value:kee(e.datum.Value)}]})}}],axes:[{type:"number",position:"left",keys:["Value"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},Ule=e=>{let{tile:n}=e;const{queryVariablesFilters:t}=iee(),a=(0,g.useRef)(null),i=lee(a),{chartTheme:l}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),r=t.standaloneYear,o="All"===(t.businessUnit||"All")?"Total":t.businessUnit,s=Dle[r]?.["2017 Emissions"],d=(0,g.useMemo)(()=>[{Scope:"Scope 1","Total Emissions":s?.["Scope 1"]?.[o]},{Scope:"Scope 2","Total Emissions":s?.["Scope 2"]?.[o]},{Scope:"Total","Total Emissions":s?.Total?.[o]}].filter(e=>!!e["Total Emissions"]),[s,o]),c=Boolean(d&&0===d.length),u=(0,g.useMemo)(()=>({theme:l,legend:{enabled:!1},width:i,data:d||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Scope",yKey:"Total Emissions",yName:"Total Emissions",fillOpacity:1,tooltip:{renderer:e=>({data:[{label:"Emissions (Gg)",value:kee(e.datum["Total Emissions"])}]})}}],axes:[{type:"number",position:"left",keys:["Total Emissions"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[d,l,i]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:c,ref:a,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:u})})})},$le=e=>{let{tile:n}=e;const{queryVariablesFilters:t}=iee(),a=(0,g.useRef)(null),i=lee(a),{chartTheme:l}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),r=t.standaloneYear,o="All"===(t.businessUnit||"All")?"Total":t.businessUnit,s=Dle[r]?.["Current Year Emissions"],d=(0,g.useMemo)(()=>[{Scope:"Scope 1","Total Emissions":s?.["Scope 1"]?.[o]},{Scope:"Scope 2","Total Emissions":s?.["Scope 2"]?.[o]},{Scope:"Total","Total Emissions":s?.Total?.[o]}].filter(e=>!!e["Total Emissions"]),[s,o]),c=Boolean(d&&0===d.length),u=(0,g.useMemo)(()=>({theme:l,legend:{enabled:!1},width:i,data:d||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Scope",yKey:"Total Emissions",yName:"Total Emissions",fillOpacity:1,tooltip:{renderer:e=>({data:[{label:"Emissions (Gg)",value:kee(e.datum["Total Emissions"])}]})}}],axes:[{type:"number",position:"left",keys:["Total Emissions"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[d,l,i]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:c,ref:a,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:u})})})},Mle=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1,f.AgChartColor.GREEN_1]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Current Year Emissions"],c=Dle[2025]?.["Current Year Emissions"],u=(0,g.useMemo)(()=>[{Date:"2024","Scope 1":d?.["Scope 1"]?.[s],"Scope 2":d?.["Scope 2"]?.[s],Total:d?.Total?.[s]},{Date:"2025","Scope 1":c?.["Scope 1"]?.[s],"Scope 2":c?.["Scope 2"]?.[s],Total:c?.Total?.[s]}].filter(e=>!!e.Total),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Scope 1",yName:"Scope 1",tooltip:{renderer:e=>({data:[{label:"Scope 1 emissions (Gg)",value:kee(e.datum["Scope 1"])}]})}},{type:"line",xKey:"Date",yKey:"Scope 2",yName:"Scope 2",tooltip:{renderer:e=>({data:[{label:"Scope 2 emissions (Gg)",value:kee(e.datum["Scope 2"])}]})}},{type:"line",xKey:"Date",yKey:"Total",yName:"Total",tooltip:{renderer:e=>({data:[{label:"Total emissions (Gg)",value:kee(e.datum.Total)}]})}}],axes:[{type:"number",position:"left",keys:["Scope 1","Scope 2","Total"],label:{formatter:e=>Nee(e.value)}},{type:"category",keys:["Date"],position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},Vle=e=>{let{tile:n}=e;const t=(0,g.useRef)(null),{queryVariablesFilters:a}=iee(),i=lee(t),{chartTheme:l,legendTheme:r}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.BLUE_2,f.AgChartColor.BLACK_1,f.AgChartColor.BLUE_3]),o=a.standaloneYear,s="All"===(a.businessUnit||"All")?"Total":a.businessUnit,d=Dle[o]?.["Water Withdrawal"],c=(0,g.useMemo)(()=>[{Value:d?.Seawater?.[s],Dimension:"Seawater"},{Value:d?.["Producted water"]?.[s],Dimension:"Produced water"},{Value:d?.Groundwater?.[s],Dimension:"Groundwater"},{Value:d?.["Utility Water"]?.[s],Dimension:"Utility water"}].filter(e=>!!e.Value),[d,s]),u=Boolean(c&&0===c.length),p=(0,g.useMemo)(()=>({theme:l,legend:r,width:i,data:c||[],zoom:{enabled:!0},series:[{type:"pie",fillOpacity:1,angleKey:"Value",calloutLabelKey:"Dimension",sectorLabelKey:"Value",sectorLabel:{color:"white",fontWeight:"bold",formatter:e=>{let{value:n}=e;return`${(100*n).toFixed(1)}%`}},tooltip:{renderer:e=>({data:[{label:`${e.datum.Dimension}`,value:`${(100*e.datum.Value).toFixed(1)}%`}]})}}]}),[c,l,i,r]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:u,ref:t,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:p})})})},Gle=e=>{let{tile:n}=e;const t=(0,g.useRef)(null),{queryVariablesFilters:a}=iee(),i=lee(t),{chartTheme:l,legendTheme:r}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.BLUE_2,f.AgChartColor.BLACK_1,f.AgChartColor.BLUE_3]),o=a.standaloneYear,s="All"===(a.businessUnit||"All")?"Total":a.businessUnit,d=Dle[o]?.["Water Discharge"],c=(0,g.useMemo)(()=>[{Value:d?.Seawater?.[s],Dimension:"Seawater"},{Value:d?.["Producted water"]?.[s],Dimension:"Produced water"},{Value:d?.Groundwater?.[s],Dimension:"Groundwater"},{Value:d?.["Utility Water"]?.[s],Dimension:"Utility water"}].filter(e=>!!e.Value),[d,s]),u=Boolean(c&&0===c.length),p=(0,g.useMemo)(()=>({theme:l,legend:r,width:i,data:c||[],zoom:{enabled:!0},series:[{type:"pie",fillOpacity:1,angleKey:"Value",calloutLabelKey:"Dimension",sectorLabelKey:"Value",sectorLabel:{color:"white",fontWeight:"bold",formatter:e=>{let{value:n}=e;return`${(100*n).toFixed(1)}%`}},tooltip:{renderer:e=>({data:[{label:`${e.datum.Dimension}`,value:`${(100*e.datum.Value).toFixed(1)}%`}]})}}]}),[c,l,i,r]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:u,ref:t,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:p})})})},zle=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.BLUE_2,f.AgChartColor.BLACK_1,f.AgChartColor.BLUE_3]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Water Withdrawal"],c=Dle[2025]?.["Water Withdrawal"],u=(0,g.useMemo)(()=>[{Date:"2024",Seawater:100*d?.Seawater[s],"Produced water":100*d?.["Producted water"][s],Groundwater:100*d?.Groundwater[s],"Utility water":100*d?.["Utility Water"][s]},{Date:"2025",Seawater:100*c?.Seawater[s],"Produced water":100*c?.["Producted water"][s],Groundwater:100*c?.Groundwater[s],"Utility water":100*c?.["Utility Water"][s]}].filter(e=>!!(e.Seawater||e["Produced water"]||e.Groundwater||e["Utility water"])),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Seawater",yName:"Seawater (%)",tooltip:{renderer:e=>({data:[{label:"Seawater (%)",value:kee(e.datum.Seawater)}]})}},{type:"line",xKey:"Date",yKey:"Produced water",yName:"Produced water (%)",tooltip:{renderer:e=>({data:[{label:"Produced water (%)",value:kee(e.datum["Produced water"])}]})}},{type:"line",xKey:"Date",yKey:"Groundwater",yName:"Groundwater (%)",tooltip:{renderer:e=>({data:[{label:"Groundwater (%)",value:kee(e.datum.Groundwater)}]})}},{type:"line",xKey:"Date",yKey:"Utility water",yName:"Utility water (%)",tooltip:{renderer:e=>({data:[{label:"Utility water (%)",value:kee(e.datum["Utility water"])}]})}}],axes:[{type:"number",position:"left",keys:["Seawater","Produced water","Groundwater","Utility water"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},Wle=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.BLUE_2,f.AgChartColor.BLACK_1,f.AgChartColor.BLUE_3]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Water Discharge"],c=Dle[2025]?.["Water Discharge"],u=(0,g.useMemo)(()=>[{Date:"2024",Seawater:100*d?.Seawater[s],"Produced water":100*d?.["Producted water"][s],Groundwater:100*d?.Groundwater[s],"Utility water":100*d?.["Utility Water"][s]},{Date:"2025",Seawater:100*c?.Seawater[s],"Produced water":100*c?.["Producted water"][s],Groundwater:100*c?.Groundwater[s],"Utility water":100*c?.["Utility Water"][s]}].filter(e=>!!(e.Seawater||e["Produced water"]||e.Groundwater||e["Utility water"])),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Seawater",yName:"Seawater (%)",tooltip:{renderer:e=>({data:[{label:"Seawater (%)",value:kee(e.datum.Seawater)}]})}},{type:"line",xKey:"Date",yKey:"Produced water",yName:"Produced water (%)",tooltip:{renderer:e=>({data:[{label:"Produced water (%)",value:kee(e.datum["Produced water"])}]})}},{type:"line",xKey:"Date",yKey:"Groundwater",yName:"Groundwater (%)",tooltip:{renderer:e=>({data:[{label:"Groundwater (%)",value:kee(e.datum.Groundwater)}]})}},{type:"line",xKey:"Date",yKey:"Utility water",yName:"Utility water (%)",tooltip:{renderer:e=>({data:[{label:"Utility water (%)",value:kee(e.datum["Utility water"])}]})}}],axes:[{type:"number",position:"left",keys:["Seawater","Produced water","Groundwater","Utility water"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},qle=e=>{let{tile:n}=e;const{filters:t}=iee(),a=t.standaloneYear,i="All"===(t.businessUnit||"All")?"Total":t.businessUnit,l=kee(100*(Dle[a]?.["Board attendance rate"]?.[i]||0));return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:0===Number(l),children:(0,fe.jsxs)(Zte,{children:[l,(0,fe.jsx)(Xte,{children:"%"})]})})},Jle=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Board attendance rate"],c=Dle[2025]?.["Board attendance rate"],u=(0,g.useMemo)(()=>[{Date:"2024",Value:100*d?.[s]},{Date:"2025",Value:100*c?.[s]}].filter(e=>!!e.Value),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Value",yName:"Board attendance rate (%)",tooltip:{renderer:e=>({data:[{label:"Board attendance rate (%)",value:kee(e.datum.Value)}]})}}],axes:[{type:"number",position:"left",keys:["Value"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},Yle=e=>{let{tile:n}=e;const{filters:t}=iee(),a=t.standaloneYear,i="All"===(t.businessUnit||"All")?"Total":t.businessUnit,l=kee(100*(Dle[a]?.["Female representation at Board level"]?.[i]||0));return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:0===Number(l),children:(0,fe.jsxs)(Zte,{children:[l,(0,fe.jsx)(Xte,{children:"%"})]})})},Hle=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Female representation at Board level"],c=Dle[2025]?.["Female representation at Board level"],u=(0,g.useMemo)(()=>[{Date:"2024",Value:100*d?.[s]},{Date:"2025",Value:100*c?.[s]}].filter(e=>!!e.Value),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Value",yName:"Female representation at Board level (%)",tooltip:{renderer:e=>({data:[{label:"Female representation at Board level (%)",value:kee(e.datum.Value)}]})}}],axes:[{type:"number",position:"left",keys:["Value"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},Kle=e=>{let{tile:n}=e;const{filters:t}=iee(),a=t.standaloneYear,i="All"===(t.businessUnit||"All")?"Total":t.businessUnit,l=kee(100*(Dle[a]?.["Female representation at Executive management level"]?.[i]||0));return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:0===Number(l),children:(0,fe.jsxs)(Zte,{children:[l,(0,fe.jsx)(Xte,{children:"%"})]})})},Qle=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Female representation at Executive management level"],c=Dle[2025]?.["Female representation at Executive management level"],u=(0,g.useMemo)(()=>[{Date:"2024",Value:100*d?.[s]},{Date:"2025",Value:100*c?.[s]}].filter(e=>!!e.Value),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Value",yName:"Female representation at Executive management level (%)",tooltip:{renderer:e=>({data:[{label:"Female representation at Executive management level (%)",value:kee(e.datum.Value)}]})}}],axes:[{type:"number",position:"left",keys:["Value"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)},Zle=e=>{let{tile:n}=e;const{filters:t,isExportingPdf:a}=iee(),i=(0,g.useRef)(null),l=lee(i),{chartTheme:r,legendTheme:o}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.BLUE_1,f.AgChartColor.PINK_1]),s="All"===(t.businessUnit||"All")?"Total":t.businessUnit,d=Dle[2024]?.["Carbon Intensity Reduction"]["Reduction in carbon emissions intensity"],c=Dle[2025]?.["Carbon Intensity Reduction"]["Reduction in carbon emissions intensity"],u=(0,g.useMemo)(()=>[{Date:"2024",Value:100*d?.[s]},{Date:"2025",Value:100*c?.[s]}].filter(e=>!!e.Value),[d,c,s]),p=Boolean(u&&0===u.length),m=(0,g.useMemo)(()=>({theme:r,legend:o,width:l,data:u||[],zoom:{enabled:!0},series:[{type:"line",xKey:"Date",yKey:"Value",yName:"Carbon intensity reduction (%)",tooltip:{renderer:e=>({data:[{label:"Carbon intensity reduction (%)",value:kee(e.datum.Value)}]})}}],axes:[{type:"number",position:"left",keys:["Value"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[u,r,l,o]);return(0,fe.jsx)(Kte,{title:n.title||"",loading:!1,error:null,retry:()=>{},noData:p,ref:i,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:m})})},a?"exporting-pdf":void 0)};function Xle(e){let{tile:n,dataset:t,aggregationField:a,title:i,formatter:l,aggregationType:r=gn.DF.Sum}=e;const o=Je(),s=iee(),{queryVariablesFilters:d}=s,{data:c,loading:u,error:p,refetch:m}=(0,x.IT)(bte,{variables:{accountId:o,datasetFilters:d,datasetName:t,aggregation:{functions:[{field:a,aggregationType:r}],partitions:[]}}}),f=l?l(s,c?.getDashboardTileData):c?.getDashboardTileData?.dataPoints?.[0]?.[0]?.value||0,y=n.title||("string"==typeof i?i:i(s));return(0,fe.jsx)(Kte,{title:y,loading:u,error:p,retry:m,noData:null===f,children:(0,fe.jsx)(Zte,{children:f})})}const ere=["mass","distance","volume"],nre=e=>ere.includes(e),tre=e=>{const{field:n,type:t}=e;return(a,i)=>{let{selectedUnit:l,withVat:r}=a;const o=jee(i),s=hee(o?.[0]?.[n]||"0",{...nre(t)?{originalUnit:e.originalUnit,targetUnit:l}:{},..."money"===t?{withVat:r}:{}});return Number.isNaN(s)||null===s?null:kee(s,{...nre(t)?{selectedUnit:l}:{}})}};function are(e){let{tile:n,dataset:t,aggregationField:a,partitionField:i,title:l,formatter:r,topResultsCount:o}=e;const s=Je(),d=(0,g.useRef)(null),c=iee(),{queryVariablesFilters:u}=c,p=lee(d),{data:m,loading:y,error:h,refetch:T}=(0,x.IT)(bte,{variables:{accountId:s,datasetFilters:u,datasetName:t,aggregation:{functions:[{field:a,aggregationType:gn.DF.Sum}],partitions:[{field:i}]}}}),{chartTheme:b,legendTheme:v}=(0,f.useAgChartsTheme)(n.colors),C=r.resolveDataInputs(c,m?.getDashboardTileData),k=r.resolveSeriesInputs(c,m?.getDashboardTileData),S=r.configureSeries(k),N=r.partitionField,A=function(e,n,t,a){if(!e||!n||n<1||e.length<=n)return e;const i=[...e].sort((e,n)=>Number(n[a]??0)-Number(e[a]??0)),l=i.slice(0,n),r=i.slice(n).reduce((e,n)=>e+Number(n[a]??0),0);return[...l,{[t]:"Other",[a]:r}]}(r.transformData(C),o,N,S.key),R=Boolean(A&&0===A.length),D=r.countTotal(A),L=(0,g.useMemo)(()=>({theme:b,legend:v,width:p,data:A||[],zoom:{enabled:!0},series:[{type:"pie",fillOpacity:1,angleKey:S.key,calloutLabelKey:N,sectorLabelKey:S.key,sectorLabel:{color:"white",fontWeight:"bold",formatter:e=>{let{value:n}=e;return kee(n,{percentageOverTotal:D})}},tooltip:{renderer:e=>({title:e.datum[N],data:S.resolveTooltipData(e.datum,D)})}}]}),[A,S,N,b,p,D,v]),I=n.title||("string"==typeof l?l:l(c));return(0,fe.jsx)(Kte,{title:I,loading:y,error:h,retry:T,noData:R,ref:d,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:L})})})}const ire=e=>{const{type:n,field:t,label:a,partitionField:i,formatPartitionValue:l}=e,r="money"===n,o=nre(n);return{partitionField:i,resolveDataInputs:(e,n)=>{let{selectedUnit:t,withVat:a}=e;return{...o?{selectedUnit:t}:{},...r?{withVat:a}:{},data:n}},transformData:a=>{let{selectedUnit:r,withVat:o,data:s}=a;return jee(s)?.map(a=>{const s=l?l(a[i]):a[i];return{...a,[i]:xee(s),Quantity:hee(a[t],{...nre(n)?{originalUnit:e.originalUnit,targetUnit:r}:{},..."money"===n?{withVat:o}:{}})}})},countTotal:e=>e?.reduce((e,n)=>e+Number(n.Quantity),0)||1,resolveSeriesInputs:e=>{let{selectedUnit:n,withVat:t}=e;return{...o?{selectedUnit:n}:{},...r?{withVat:t}:{}}},configureSeries:e=>({key:"Quantity",resolveTooltipData:(t,i)=>{const{selectedUnit:l}=e;return[{label:"string"==typeof a?a:a(e),value:`${kee(t.Quantity,{...nre(n)?{selectedUnit:l}:{}})} (${kee(t.Quantity,{percentageOverTotal:i})})`}]}})}};function lre(e){let{aggregationFields:n,partitionFields:t,title:a,type:i,formatter:l,tile:r,dataset:o}=e;const s=Je(),d=(0,g.useRef)(null),c=(0,g.useRef)(null),u=iee(),{queryVariablesFilters:p,activeSheet:m,dashboardId:f,filters:y}=u,{data:h,loading:T,error:b,refetch:v}=(0,x.IT)(bte,{variables:{accountId:s,datasetFilters:p,datasetName:o,aggregation:{functions:n.map(e=>({field:e,aggregationType:gn.DF.Sum})),partitions:t.map(e=>({field:e}))}}}),C=l.resolveDataInputs(u,h?.getDashboardTileData),k=(0,g.useMemo)(()=>l.transformData(C),Object.values(C)),S=Boolean(k&&0===k.length),N=l.resolveColumnsInputs(u),A=(0,g.useMemo)(()=>l.configureColumns(N),Object.values(N));(0,g.useEffect)(()=>{c.current?.gridApi?.resetColumnState()},[y]);const R=r.title||("string"==typeof a?a:a(u));return(0,fe.jsx)(Kte,{title:R,loading:T,error:b,retry:v,noData:S,ref:d,children:(0,fe.jsx)(uae,{ref:c,gridKey:`${s}-${f}-${m}-${i}`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},columnDefs:A,rowData:k}})})}const rre=e=>{let{quantities:n,additionalFields:t,partitionField:a}=e;const i=n.some(e=>{let{type:n}=e;return"money"===n}),l=n.some(e=>{let{type:n}=e;return nre(n)});return{resolveDataInputs:(e,n)=>{let{withVat:t,selectedUnit:a}=e;return{...i?{withVat:t}:{},...l?{selectedUnit:a}:{},data:n}},transformData:e=>{let{data:i,selectedUnit:l,withVat:r}=e;return jee(i)?.map(e=>{const i={...e,[a]:xee(e[a])};t?.forEach(n=>i[n]=xee(e[n]));for(const t of n){const n=t.alias||t.field;nre(t.type)?i[n]=hee(e[t.field],{originalUnit:t.originalUnit,targetUnit:l}):"money"===t.type?i[n]=hee(e[t.field],{withVat:r}):i[n]=hee(e[t.field])}return i})?.sort((e,n)=>{const i=[...t||[],a].find(t=>e[t]!==n[t]);return i?e[i].toLowerCase().localeCompare(n[i].toLowerCase()):1})},resolveColumnsInputs:e=>{let{withVat:n,selectedUnit:t}=e;return{...i?{withVat:n}:{},...l?{selectedUnit:t}:{}}},configureColumns:e=>{const{selectedUnit:i}=e,l=[...t?.map(e=>({headerName:Dee(e),field:e,rowGroup:!0,hide:!0}))||[],{headerName:Dee(a),field:a}];for(const t of n){const n=t.alias||t.field;nre(t.type)?l.push({headerName:t.title(e),field:n,aggFunc:"sum",valueFormatter:e=>kee(e.value,{selectedUnit:i}).toString()}):(t.type,l.push({headerName:t.title(e),field:n,aggFunc:"sum",valueFormatter:e=>kee(e.value).toString()}))}return l}}};function ore(e){let{tile:n,title:t,dataset:a,aggregationFields:i,partitionFields:l,formatter:r}=e;const o=Je(),s=iee(),{queryVariablesFilters:d,isExportingPdf:c}=s,u=(0,g.useRef)(null),p=lee(u),{data:m,loading:y,error:h,refetch:T}=(0,x.IT)(bte,{variables:{accountId:o,datasetFilters:d,datasetName:a,aggregation:{functions:i.map(e=>({field:e,aggregationType:gn.DF.Sum})),partitions:l.map(e=>({field:"string"==typeof e?e:e[0],partitionFunction:"string"==typeof e?void 0:e[1]}))}}}),{chartTheme:b,legendTheme:v}=(0,f.useAgChartsTheme)(n.colors),C=r.resolveDataInputs(s,m?.getDashboardTileData),k=(0,g.useMemo)(()=>r.transformData(C),Object.values(C)),S=Boolean(k&&0===k.length),N=r.resolveSeriesInputs(s,m?.getDashboardTileData),A=r.baselineField,R=(0,g.useMemo)(()=>{const e=r.configureSeries(N),n=r.configureOverlay?.(N);return{theme:b,legend:v,width:p,data:k||[],zoom:{enabled:!0},series:[...e.map(e=>({type:"bar",xKey:A,yKey:e.key,yName:e.label,stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:n=>({data:e.resolveTooltipData(n.datum)})}})),...n?[{type:"line",xKey:A,yKey:n.key,yName:n.label,tooltip:{renderer:e=>({data:n.resolveTooltipData(e.datum)})}}]:[]],axes:[{type:"number",position:"left",keys:e.map(e=>{let{key:n}=e;return n}),label:{formatter:e=>Nee(e.value)}},...n?[{type:"number",position:"right",keys:[n.key],label:{formatter:e=>Nee(e.value)}}]:[],{type:"category",position:"bottom"}]}},[A,k,b,p,v,...Object.values(N)]),D=n.title||("string"==typeof t?t:t(s));return(0,fe.jsx)(Kte,{title:D,loading:y,error:h,retry:T,noData:S,ref:u,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:R})})},c?"exporting-pdf":void 0)}const sre=e=>{const{field:n,label:t,type:a,totalCostField:i}=e,l="money"===a||i,r=nre(a),o={baselineField:"Date",resolveDataInputs:(e,n)=>{let{withVat:t,selectedUnit:a}=e;return{...l?{withVat:t}:{},...r?{selectedUnit:a}:{},data:n}},transformData:t=>{let{data:l,withVat:r,selectedUnit:o}=t;return jee(l)?.map(t=>({...t,Quantity:hee(t[n],{...nre(a)?{originalUnit:e.originalUnit,targetUnit:o}:{},..."money"===a?{withVat:r}:{}}),...i?{TotalCost:hee(t[i],{withVat:r})}:{},Date:bee(t.Month)}))},resolveSeriesInputs:e=>{let{withVat:n,selectedUnit:t}=e;return{...l?{withVat:n}:{},...r?{selectedUnit:t}:{}}},configureSeries:e=>{const{selectedUnit:n}=e,i="string"==typeof t?t:t(e);return[{key:"Quantity",label:i,resolveTooltipData:e=>[{label:i,value:kee(e.Quantity,{...nre(a)?{selectedUnit:n}:{}}).toString()}]}]}};return i&&(o.configureOverlay=e=>{let{withVat:n}=e;return{key:"TotalCost",label:`Total cost (£) ${Aee(n)}`,resolveTooltipData:e=>[{label:`Total cost (£) ${Aee(n)}`,value:kee(e.TotalCost).toString()}]}}),o},dre=e=>{const{field:n,labels:t,type:a,totalCostField:i}=e,l="money"===a||i,r=nre(a),o={baselineField:"Date",resolveDataInputs:(e,n)=>{let{withVat:t,selectedUnit:a}=e;return{...l?{withVat:t}:{},...r?{selectedUnit:a}:{},data:n}},transformData:t=>{let{data:l,withVat:r,selectedUnit:o}=t;return Iee(jee(l)?.map(t=>({...t,Quantity:hee(t[n],{...nre(a)?{originalUnit:e.originalUnit,targetUnit:o}:{},..."money"===a?{withVat:r}:{}}),...i?{TotalCost:hee(t[i],{withVat:r})}:{},Date:bee(t.Month)})),["Date"],"Accuracy","Quantity")?.sort(vee)},resolveSeriesInputs:e=>{let{withVat:n,selectedUnit:t}=e;return{...l?{withVat:n}:{},...r?{selectedUnit:t}:{},selectedUnit:t}},configureSeries:e=>{const{selectedUnit:n}=e,i=t(e),l={...nre(a)?{selectedUnit:n}:{}},r=e=>({label:i.actual,value:kee(e.AccuracyACTQuantity,l).toString()}),o=e=>({label:i.estimated,value:kee(e.AccuracyESTQuantity,l).toString()}),s=e=>({label:i.total,value:kee(e.AccuracyESTQuantity+e.AccuracyACTQuantity,l).toString()});return[{key:"AccuracyACTQuantity",label:i.actual,resolveTooltipData:e=>[r(e),o(e),s(e)]},{key:"AccuracyESTQuantity",label:i.estimated,resolveTooltipData:e=>[o(e),r(e),s(e)]}]}};return i&&(o.configureOverlay=e=>{let{withVat:n}=e;return{key:"TotalCost",label:`Total cost (£) ${Aee(n)}`,resolveTooltipData:e=>[{label:`Total cost (£) ${Aee(n)}`,value:kee(e.TotalCost).toString()}]}}),o},cre=e=>{const{field:n,labels:t,type:a,totalCostField:i}=e,l="money"===a||i,r=nre(a),o={baselineField:"Date",resolveDataInputs:(e,n)=>{let{withVat:t,selectedUnit:a}=e;return{...l?{withVat:t}:{},...r?{selectedUnit:a}:{},data:n}},transformData:t=>{let{data:l,withVat:r,selectedUnit:o}=t;return Iee(jee(l)?.map(t=>({...t,Quantity:hee(t[n],{...nre(a)?{originalUnit:e.originalUnit,targetUnit:o}:{},..."money"===a?{withVat:r}:{}}),...i?{TotalCost:hee(t[i],{withVat:r})}:{},Date:bee(t.Year??t.Month,t.Year?"YYYY":"MMM YYYY")})),["Date"],"Scope","Quantity")?.sort(vee)},resolveSeriesInputs:e=>{let{withVat:n,selectedUnit:t}=e;return{...l?{withVat:n}:{},...r?{selectedUnit:t}:{},selectedUnit:t}},configureSeries:e=>{const{selectedUnit:n}=e,i=t(e),l={...nre(a)?{selectedUnit:n}:{}},r=i.scope1.disabled?null:e=>({label:i.scope1.label,value:kee(e.Scope1Quantity,l).toString()}),o=i.scope2.disabled?null:e=>({label:i.scope2.label,value:kee(e.Scope2Quantity,l).toString()}),s=i.scope3.disabled?null:e=>({label:i.scope3.label,value:kee(e.Scope3Quantity,l).toString()}),d=e=>({label:i.total,value:kee((e.Scope1Quantity||0)+(e.Scope2Quantity||0)+(e.Scope3Quantity||0),l).toString()}),c=[];return r&&c.push({key:"Scope1Quantity",label:i.scope1.label,resolveTooltipData:e=>[r?.(e),o?.(e),s?.(e),d(e)].filter(Boolean)}),o&&c.push({key:"Scope2Quantity",label:i.scope2.label,resolveTooltipData:e=>[o?.(e),r?.(e),s?.(e),d(e)].filter(Boolean)}),s&&c.push({key:"Scope3Quantity",label:i.scope3.label,resolveTooltipData:e=>[s?.(e),o?.(e),r?.(e),d(e)].filter(Boolean)}),c}};return i&&(o.configureOverlay=e=>{let{withVat:n}=e;return{key:"TotalCost",label:`Total cost (£) ${Aee(n)}`,resolveTooltipData:e=>[{label:`Total cost (£) ${Aee(n)}`,value:kee(e.TotalCost).toString()}]}}),o};function ure(e){switch(e.type){case gn.Rh.SpendBasedMaterialAmountKpiTile:return(0,fe.jsx)(Xle,{tile:e,dataset:"SpendBasedMaterialByLocationReport",aggregationField:"Amount",formatter:tre({type:"money",field:"Amount"}),title:e=>{let{withVat:n}=e;return`Total amount of spend (£) ${Aee(n)}`}});case gn.Rh.SpendBasedMaterialCarbonKpiTile:return(0,fe.jsx)(Xle,{tile:e,dataset:"SpendBasedMaterialByLocationReport",aggregationField:"CO2e",formatter:tre({type:"mass",field:"CO2e",originalUnit:"kg"}),title:e=>{let{selectedUnit:n}=e;return`Total carbon (${n}CO2e)`}});case gn.Rh.SpendBasedMaterialAmountByMaterialTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"SpendBasedMaterialByLocationReport",aggregationField:"Amount",partitionField:"PrimaryMaterial",title:e=>{let{withVat:n}=e;return`Amount of spend by type (£) ${Aee(n)}`},formatter:ire({type:"money",field:"Amount",label:e=>{let{withVat:n}=e;return`Amount (£) ${Aee(n)}`},partitionField:"PrimaryMaterial"})});case gn.Rh.SpendBasedMaterialCarbonByMaterialTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"SpendBasedMaterialByLocationReport",aggregationField:"CO2e",partitionField:"PrimaryMaterial",title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by type (${n}CO2e)`},formatter:ire({type:"mass",field:"CO2e",label:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`},originalUnit:"kg",partitionField:"PrimaryMaterial"})});case gn.Rh.SpendBasedMaterialAmountByPurchaseTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"SpendBasedMaterialByLocationReport",aggregationField:"Amount",partitionField:"PurchaseType",title:e=>{let{withVat:n}=e;return`Amount of spend by purchase type (£) ${Aee(n)}`},formatter:ire({type:"money",field:"Amount",label:e=>{let{withVat:n}=e;return`Amount (£) ${Aee(n)}`},partitionField:"PurchaseType",formatPartitionValue:Ii})});case gn.Rh.SpendBasedMaterialCarbonByPurchaseTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"SpendBasedMaterialByLocationReport",aggregationField:"CO2e",partitionField:"PurchaseType",title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by purchase type (${n}CO2e)`},formatter:ire({type:"mass",field:"CO2e",label:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`},originalUnit:"kg",partitionField:"PurchaseType",formatPartitionValue:Ii})});case gn.Rh.SpendBasedMaterialAmountBySupplierPieTile:return(0,fe.jsx)(are,{tile:e,dataset:"SpendBasedMaterialByLocationReport",aggregationField:"Amount",partitionField:"SupplierName",title:e=>{let{withVat:n}=e;return`Amount of spend by supplier (£) ${Aee(n)}`},formatter:ire({type:"money",field:"Amount",label:e=>{let{withVat:n}=e;return`Amount (£) ${Aee(n)}`},partitionField:"SupplierName"})});case gn.Rh.SpendBasedMaterialCarbonBySupplierPieTile:return(0,fe.jsx)(are,{tile:e,dataset:"SpendBasedMaterialByLocationReport",aggregationField:"CO2e",partitionField:"SupplierName",title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by supplier (${n}CO2e)`},formatter:ire({type:"mass",field:"CO2e",label:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`},originalUnit:"kg",partitionField:"SupplierName"})});case gn.Rh.SpendBasedMaterialAmountBySupplierTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.SpendBasedMaterialAmountBySupplierTableTile,dataset:"SpendBasedMaterialByLocationReport",aggregationFields:["Amount"],partitionFields:["SupplierName"],title:e=>{let{withVat:n}=e;return`Amount of spend by supplier (£) ${Aee(n)}`},formatter:rre({quantities:[{type:"money",field:"Amount",title:e=>{let{withVat:n}=e;return`Amount (£) ${Aee(n)}`}}],partitionField:"SupplierName"})});case gn.Rh.SpendBasedMaterialCarbonBySupplierTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.SpendBasedMaterialCarbonBySupplierTableTile,dataset:"SpendBasedMaterialByLocationReport",aggregationFields:["CO2e"],partitionFields:["SupplierName"],title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by supplier (${n}CO2e)`},formatter:rre({quantities:[{type:"mass",originalUnit:"kg",field:"CO2e",title:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`}}],partitionField:"SupplierName"})});case gn.Rh.SpendBasedMaterialAmountByMaterialTypeWithLayersTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.SpendBasedMaterialAmountByMaterialTypeWithLayersTableTile,dataset:"SpendBasedMaterialByLocationReport",aggregationFields:["Amount"],partitionFields:["Material"],title:e=>{let{withVat:n}=e;return`Amount of spend by type with layers (£) ${Aee(n)}`},formatter:rre({quantities:[{type:"money",field:"Amount",title:e=>{let{withVat:n}=e;return`Amount (£) ${Aee(n)}`}}],partitionField:"Material"})});case gn.Rh.SpendBasedMaterialCarbonByMaterialTypeWithLayersTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.SpendBasedMaterialCarbonByMaterialTypeWithLayersTableTile,dataset:"SpendBasedMaterialByLocationReport",aggregationFields:["CO2e"],partitionFields:["Material"],title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by type with layers (${n}CO2e)`},formatter:rre({quantities:[{type:"mass",originalUnit:"kg",field:"CO2e",title:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`}}],partitionField:"Material"})});case gn.Rh.SpendBasedMaterialAmountOverTimeBarTile:return(0,fe.jsx)(ore,{tile:e,title:e=>{let{withVat:n}=e;return`Amount of spend over time (£) ${Aee(n)}`},dataset:"SpendBasedMaterialByLocationReport",aggregationFields:["Amount"],partitionFields:[["Date",gn.v7.Month]],formatter:sre({type:"money",field:"Amount",label:e=>{let{withVat:n}=e;return`Amount (£) ${Aee(n)}`}})});case gn.Rh.SpendBasedMaterialAmountAndCarbonByLocationTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.SpendBasedMaterialAmountAndCarbonByLocationTableTile,dataset:"SpendBasedMaterialByLocationReport",aggregationFields:["Amount","CO2e"],partitionFields:["LocationName"],title:e=>{let{selectedUnit:n,withVat:t}=e;return`Amount of spend (£) ${Aee(t)} and Carbon emissions (${n}CO2e) by location`},formatter:rre({quantities:[{type:"money",field:"Amount",title:e=>{let{withVat:n}=e;return`Amount (£) ${Aee(n)}`}},{type:"mass",originalUnit:"kg",field:"CO2e",title:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`}}],partitionField:"LocationName"})});default:return null}}function pre(e){switch(e.type){case gn.Rh.MaterialCarbonEmissionsKpiTile:return(0,fe.jsx)(Xle,{tile:e,dataset:"MaterialByLocationReport",aggregationField:"CO2e",formatter:tre({type:"mass",field:"CO2e",originalUnit:"kg"}),title:e=>{let{selectedUnit:n}=e;return`Total carbon (${n}CO2e)`}});case gn.Rh.MaterialCostKpiTile:return(0,fe.jsx)(Xle,{tile:e,dataset:"MaterialByLocationReport",aggregationField:"TotalCost",formatter:tre({type:"money",field:"TotalCost"}),title:e=>{let{withVat:n}=e;return`Total cost (£) ${Aee(n)}`}});case gn.Rh.MaterialCostAndCarbonEmissionsByLocationTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.MaterialCostAndCarbonEmissionsByLocationTableTile,dataset:"MaterialByLocationReport",aggregationFields:["TotalCost","CO2e"],partitionFields:["LocationName"],title:e=>{let{selectedUnit:n,withVat:t}=e;return`Cost (£) ${Aee(t)} and carbon emissions (${n}CO2e) by location`},formatter:rre({quantities:[{type:"money",field:"TotalCost",title:e=>{let{withVat:n}=e;return`Cost (£) ${Aee(n)}`}},{type:"mass",field:"CO2e",originalUnit:"kg",title:e=>{let{selectedUnit:n}=e;return`Carbon emissions (${n}CO2e)`}}],partitionField:"LocationName"})});case gn.Rh.MaterialCarbonEmissionsOverTimeBarTile:return(0,fe.jsx)(ore,{tile:e,title:e=>{let{selectedUnit:n}=e;return`Carbon emissions over time (${n}CO2e)`},dataset:"MaterialByLocationReport",aggregationFields:["CO2e"],partitionFields:[["Date",gn.v7.Month]],formatter:sre({type:"mass",field:"CO2e",label:e=>{let{selectedUnit:n}=e;return`Carbon emissions (${n}CO2e)`},originalUnit:"kg"})});default:return null}}function mre(e){switch(e.type){case gn.Rh.ActivityBasedMaterialWeightKpiTile:return(0,fe.jsx)(Xle,{tile:e,dataset:"ActivityBasedMaterialByLocationReport",aggregationField:"WeightInKg",formatter:tre({type:"mass",originalUnit:"kg",field:"WeightInKg"}),title:e=>{let{selectedUnit:n}=e;return`Total weight (${n})`}});case gn.Rh.ActivityBasedMaterialCarbonKpiTile:return(0,fe.jsx)(Xle,{tile:e,dataset:"ActivityBasedMaterialByLocationReport",aggregationField:"CO2e",formatter:tre({type:"mass",field:"CO2e",originalUnit:"kg"}),title:e=>{let{selectedUnit:n}=e;return`Total carbon (${n}CO2e)`}});case gn.Rh.ActivityBasedMaterialWeightByMaterialTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"ActivityBasedMaterialByLocationReport",aggregationField:"WeightInKg",partitionField:"PrimaryMaterial",title:e=>{let{selectedUnit:n}=e;return`Weight by type (${n})`},formatter:ire({type:"mass",originalUnit:"kg",field:"WeightInKg",label:e=>{let{selectedUnit:n}=e;return`Weight (${n})`},partitionField:"PrimaryMaterial"})});case gn.Rh.ActivityBasedMaterialCarbonByMaterialTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"ActivityBasedMaterialByLocationReport",aggregationField:"CO2e",partitionField:"PrimaryMaterial",title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by type (${n}CO2e)`},formatter:ire({type:"mass",field:"CO2e",label:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`},originalUnit:"kg",partitionField:"PrimaryMaterial"})});case gn.Rh.ActivityBasedMaterialWeightByPurchaseTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"ActivityBasedMaterialByLocationReport",aggregationField:"WeightInKg",partitionField:"PurchaseType",title:e=>{let{selectedUnit:n}=e;return`Weight by purchase type (${n})`},formatter:ire({type:"mass",field:"WeightInKg",originalUnit:"kg",label:e=>{let{selectedUnit:n}=e;return`Weight (${n})`},partitionField:"PurchaseType",formatPartitionValue:Ii})});case gn.Rh.ActivityBasedMaterialCarbonByPurchaseTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"ActivityBasedMaterialByLocationReport",aggregationField:"CO2e",partitionField:"PurchaseType",title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by purchase type (${n}CO2e)`},formatter:ire({type:"mass",field:"CO2e",label:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`},originalUnit:"kg",partitionField:"PurchaseType",formatPartitionValue:Ii})});case gn.Rh.ActivityBasedMaterialWeightBySubcontractorPieTile:return(0,fe.jsx)(are,{tile:e,dataset:"ActivityBasedMaterialByLocationReport",aggregationField:"WeightInKg",partitionField:"SubcontractorName",title:e=>{let{selectedUnit:n}=e;return`Weight by subcontractor (${n})`},formatter:ire({type:"mass",originalUnit:"kg",field:"WeightInKg",label:e=>{let{selectedUnit:n}=e;return`Weight (${n})`},partitionField:"SubcontractorName"})});case gn.Rh.ActivityBasedMaterialCarbonBySubcontractorPieTile:return(0,fe.jsx)(are,{tile:e,dataset:"ActivityBasedMaterialByLocationReport",aggregationField:"CO2e",partitionField:"SubcontractorName",title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by subcontractor (${n}CO2e)`},formatter:ire({type:"mass",field:"CO2e",label:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`},originalUnit:"kg",partitionField:"SubcontractorName"})});case gn.Rh.ActivityBasedMaterialWeightBySubcontractorTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.ActivityBasedMaterialWeightBySubcontractorTableTile,dataset:"ActivityBasedMaterialByLocationReport",aggregationFields:["WeightInKg"],partitionFields:["SubcontractorName"],title:e=>{let{selectedUnit:n}=e;return`Weight by subcontractor (${n})`},formatter:rre({quantities:[{type:"mass",originalUnit:"kg",field:"WeightInKg",title:e=>{let{selectedUnit:n}=e;return`Weight (${n})`}}],partitionField:"SubcontractorName"})});case gn.Rh.ActivityBasedMaterialCarbonBySubcontractorTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.ActivityBasedMaterialCarbonBySubcontractorTableTile,dataset:"ActivityBasedMaterialByLocationReport",aggregationFields:["CO2e"],partitionFields:["SubcontractorName"],title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by subcontractor (${n}CO2e)`},formatter:rre({quantities:[{type:"mass",originalUnit:"kg",field:"CO2e",title:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`}}],partitionField:"SubcontractorName"})});case gn.Rh.ActivityBasedMaterialWeightByMaterialTypeWithLayersTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.ActivityBasedMaterialWeightByMaterialTypeWithLayersTableTile,dataset:"ActivityBasedMaterialByLocationReport",aggregationFields:["WeightInKg"],partitionFields:["Material"],title:e=>{let{selectedUnit:n}=e;return`Weight by type with layers (${n})`},formatter:rre({quantities:[{type:"mass",originalUnit:"kg",field:"WeightInKg",title:e=>{let{selectedUnit:n}=e;return`Weight (${n})`}}],partitionField:"Material"})});case gn.Rh.ActivityBasedMaterialCarbonByMaterialTypeWithLayersTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.ActivityBasedMaterialCarbonByMaterialTypeWithLayersTableTile,dataset:"ActivityBasedMaterialByLocationReport",aggregationFields:["CO2e"],partitionFields:["Material"],title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by type with layers (${n}CO2e)`},formatter:rre({quantities:[{type:"mass",originalUnit:"kg",field:"CO2e",title:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`}}],partitionField:"Material"})});case gn.Rh.ActivityBasedMaterialWeightOverTimeBarTile:return(0,fe.jsx)(ore,{tile:e,title:e=>{let{selectedUnit:n}=e;return`Weight over time (${n})`},dataset:"ActivityBasedMaterialByLocationReport",aggregationFields:["WeightInKg"],partitionFields:[["Date",gn.v7.Month]],formatter:sre({type:"mass",originalUnit:"kg",field:"WeightInKg",label:e=>{let{selectedUnit:n}=e;return`Weight (${n})`}})});case gn.Rh.ActivityBasedMaterialWeightAndCarbonByLocationTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.ActivityBasedMaterialWeightAndCarbonByLocationTableTile,dataset:"ActivityBasedMaterialByLocationReport",aggregationFields:["WeightInKg","CO2e"],partitionFields:["LocationName"],title:e=>{let{selectedUnit:n}=e;return`Weight (${n}) and Carbon emissions (${n}CO2e) by location`},formatter:rre({quantities:[{type:"mass",field:"WeightInKg",originalUnit:"kg",title:e=>{let{selectedUnit:n}=e;return`Weight (${n})`}},{type:"mass",originalUnit:"kg",field:"CO2e",title:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`}}],partitionField:"LocationName"})});default:return null}}function fre(e){switch(e.type){case gn.Rh.GeneralMaterialWeightKpiTile:return(0,fe.jsx)(Xle,{tile:e,dataset:"GeneralMaterialByLocationReport",aggregationField:"Weight",formatter:tre({type:"mass",originalUnit:"kg",field:"Weight"}),title:e=>{let{selectedUnit:n}=e;return`Total weight (${n})`}});case gn.Rh.GeneralMaterialCarbonKpiTile:return(0,fe.jsx)(Xle,{tile:e,dataset:"GeneralMaterialByLocationReport",aggregationField:"CO2e",formatter:tre({type:"mass",field:"CO2e",originalUnit:"kg"}),title:e=>{let{selectedUnit:n}=e;return`Total carbon (${n}CO2e)`}});case gn.Rh.GeneralMaterialWeightByMaterialTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"GeneralMaterialByLocationReport",aggregationField:"Weight",partitionField:"Material",title:e=>{let{selectedUnit:n}=e;return`Weight by type (${n})`},formatter:ire({type:"mass",originalUnit:"kg",field:"Weight",label:e=>{let{selectedUnit:n}=e;return`Weight (${n})`},partitionField:"Material"})});case gn.Rh.GeneralMaterialCarbonByMaterialTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"GeneralMaterialByLocationReport",aggregationField:"CO2e",partitionField:"Material",title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by type (${n}CO2e)`},formatter:ire({type:"mass",field:"CO2e",label:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`},originalUnit:"kg",partitionField:"Material"})});case gn.Rh.GeneralMaterialWeightOverTimeBarTile:return(0,fe.jsx)(ore,{tile:e,title:e=>{let{selectedUnit:n}=e;return`Weight over time (${n})`},dataset:"GeneralMaterialByLocationReport",aggregationFields:["Weight"],partitionFields:[["Date",gn.v7.Month]],formatter:sre({type:"mass",originalUnit:"kg",field:"Weight",label:e=>{let{selectedUnit:n}=e;return`Weight (${n})`}})});case gn.Rh.GeneralMaterialWeightAndCarbonByLocationTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.GeneralMaterialWeightAndCarbonByLocationTableTile,dataset:"GeneralMaterialByLocationReport",aggregationFields:["Weight","CO2e"],partitionFields:["LocationName"],title:e=>{let{selectedUnit:n}=e;return`Weight (${n}) and Carbon emissions (${n}CO2e) by location`},formatter:rre({quantities:[{type:"mass",field:"Weight",originalUnit:"kg",title:e=>{let{selectedUnit:n}=e;return`Weight (${n})`}},{type:"mass",originalUnit:"kg",field:"CO2e",title:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`}}],partitionField:"LocationName"})});default:return null}}const yre=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,filters:s,withVat:d,doesSheetHavePeriodFilters:c,partitionFunctionForYearComparison:u}=iee(),{data:p,loading:m,error:f,refetch:y}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"TransportByLocationReport",aggregation:{functions:[{field:"TotalDistance(km)",aggregationType:gn.DF.Sum},{field:"TotalCost(£)",aggregationType:gn.DF.Sum},{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:c?gn.v7.Period:u,alias:"Period"},{field:"Country"},{field:"LocationCode"},{field:"LocationName"}]}}}),h=(0,g.useMemo)(()=>jee(p?.getDashboardTileData)?.map(e=>({...e,Country:xee(e.Country),LocationCode:xee(e.LocationCode),LocationName:xee(e.LocationName),"TotalDistance(km)":hee(e["TotalDistance(km)"]),"TotalCost(£)":hee(e["TotalCost(£)"],{withVat:d}),CO2e:hee(e.CO2e)}))?.sort((e,n)=>e.Country!==n.Country?e.Country.toLowerCase().localeCompare(n.Country.toLowerCase()):e.LocationCode!==n.LocationCode?e.LocationCode.toLowerCase().localeCompare(n.LocationCode.toLowerCase()):e.LocationName!==n.LocationName?e.LocationName.toLowerCase().localeCompare(n.LocationName.toLowerCase()):1),[p,d]),T=Boolean(h&&0===h.length),b=(0,g.useMemo)(()=>[{headerName:"Country",field:"Country",rowGroup:!0,hide:!0},{headerName:"Location Code",field:"LocationCode",rowGroup:!0,hide:!0},{headerName:"Location Name",field:"LocationName",rowGroup:!0,hide:!0},{headerName:"Year",field:"Period",pivot:!0},{headerName:`Cost (£) ${Aee(d)}`,field:"TotalCost(£)",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Distance (km)",field:"TotalDistance(km)",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Carbon (kgCO2e)",field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value)}],[d]);return(0,g.useEffect)(()=>{i.current?.gridApi?.resetColumnState()},[s]),(0,fe.jsx)(Kte,{title:n.title||"Annual figures per location",loading:m,error:f,retry:y,noData:T,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-TransportAnnualFiguresPerLocationYearOnYearTableTile`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},pivotMode:!0,columnDefs:b,rowData:h}})})},gre=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i}=iee(),l=(0,g.useRef)(null),r=lee(l),{data:o,loading:s,error:d,refetch:c}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"TransportByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum},{field:"TotalDistance(km)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month}]}}}),{chartTheme:u,legendTheme:p}=(0,f.useAgChartsTheme)(n.colors),m=(0,g.useMemo)(()=>jee(o?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e.CO2e),"TotalDistance(km)":hee(e["TotalDistance(km)"]),Date:bee(e.Month)}))?.sort(vee),[o]),y=Boolean(m&&0===m.length),h=(0,g.useMemo)(()=>({theme:u,legend:p,width:r,data:m||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"CO2e",yName:"Carbon emissions (kgCO2e)",stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:"Carbon emissions (kgCO2e)",value:kee(e.datum.CO2e)}]})}},{type:"line",xKey:"Date",yKey:"TotalDistance(km)",yName:"Distance traveled (km)",tooltip:{renderer:e=>({data:[{label:"Distance traveled (km)",value:kee(e.datum["TotalDistance(km)"])}]})}}],axes:[{type:"number",position:"left",keys:["CO2e"],label:{formatter:e=>Nee(e.value)}},{type:"number",position:"right",keys:["TotalDistance(km)"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[m,u,r,p]);return(0,fe.jsx)(Kte,{title:n.title||"Carbon emissions (kgCO2e) and distance traveled (km) over time",loading:s,error:d,retry:c,noData:y,ref:l,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:h})})},i?"exporting-pdf":void 0)},hre=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,filters:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"TransportByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>jee(s?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e.CO2e),Date:bee(e.Month)})).reduce((e,n)=>{const t=(0,rie.m)(e),a=F9(l.year1),i=P9(l.year1),r=P9(l.year2),o=bn()(n.Date,"MMM YYYY").format("MMM"),s=bn()(n.Date,"MMM YYYY").year()-(a===pt.YearToCompareType.CALENDAR?0:bn()(n.Date,"MMM YYYY").month()<4?1:0),d=t.findIndex(e=>e.Month===o&&null!==e.Year1Quantity);if(-1!==d)return t[d].Year2Quantity=Number(n.CO2e),t;const c=e.findIndex(e=>e.Month===o&&null!==e.Year2Quantity);return-1!==c?(t[c].Year1Quantity=Number(n.CO2e),t):[...t,{...n,Year1Quantity:s===i?Number(n.CO2e):null,Year2Quantity:s===r?Number(n.CO2e):null,Month:o}]},[])?.sort((e,n)=>F9(l.year1)===pt.YearToCompareType.CALENDAR?bn()(e.Month,"MMM").toDate().getTime()-bn()(n.Month,"MMM").toDate().getTime():B9.indexOf(e.Month)-B9.indexOf(n.Month)),[s,l.year1,l.year2]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Month",yKey:"Year1Quantity",yName:`${l.year1} Carbon emissions (kgCO2e)`,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`${l.year1} Carbon emissions (kgCO2e)`,value:kee(e.datum.Year1Quantity)},{label:`${l.year2} Carbon emissions (kgCO2e)`,value:kee(e.datum.Year2Quantity)}]})}},{type:"bar",xKey:"Month",yKey:"Year2Quantity",yName:`${l.year2} Carbon emissions (kgCO2e)`,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`${l.year1} Carbon emissions (kgCO2e)`,value:kee(e.datum.Year1Quantity)},{label:`${l.year2} Carbon emissions (kgCO2e)`,value:kee(e.datum.Year2Quantity)}]})}}],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"bottom",...m}}),[y,p,o,m,l.year1,l.year2]);return(0,fe.jsx)(Kte,{title:n.title||"Carbon emissions (kgCO2e) over time",loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},xre=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"TransportByLocationReport",aggregationFunctions:[{field:"TotalDistance(km)",aggregationType:gn.DF.Sum}],defaultTitle:"Total distance traveled (km)",supportsPeriodFilters:!0,getValue:e=>hee(e["TotalDistance(km)"])})},Tre=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"TransportByLocationReport",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],defaultTitle:"Total carbon emitted (kgCO2e)",supportsPeriodFilters:!0,getValue:e=>hee(e.CO2e)})};function bre(e){switch(e.type){case gn.Rh.TransportTotalDistanceTraveledKpiTile:return(0,fe.jsx)(Xle,{dataset:"TransportByLocationReport",aggregationField:"TotalDistance(km)",tile:e,title:()=>"Total distance traveled (km)",formatter:tre({type:"distance",field:"TotalDistance(km)",originalUnit:"km"})});case gn.Rh.TransportTotalCostKpiTile:return(0,fe.jsx)(Xle,{dataset:"TransportByLocationReport",aggregationField:"TotalCost(£)",tile:e,title:e=>{let{withVat:n}=e;return`Total cost (£) ${Aee(n)}`},formatter:tre({type:"money",field:"TotalCost(£)"})});case gn.Rh.TransportTotalEmissionsKpiTile:return(0,fe.jsx)(Xle,{dataset:"TransportByLocationReport",aggregationField:"CO2e",tile:e,title:()=>"Total carbon emitted (kgCO2e)",formatter:tre({type:"mass",field:"CO2e",originalUnit:"kg"})});case gn.Rh.TransportEmissionsPerLocationPieTile:return(0,fe.jsx)(are,{tile:e,dataset:"TransportByLocationReport",aggregationField:"CO2e",partitionField:"LocationName",title:()=>"Breakdown of emissions per location (%)",formatter:ire({type:"mass",originalUnit:"kg",field:"CO2e",label:()=>"Carbon emissions (kgCO2e)",partitionField:"LocationName"})});case gn.Rh.TransportEmissionsPerPurposePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"TransportByLocationReport",aggregationField:"CO2e",partitionField:"Purpose",title:()=>"Breakdown of emissions per purpose (%)",formatter:ire({type:"mass",originalUnit:"kg",field:"CO2e",label:()=>"Carbon emissions (kgCO2e)",partitionField:"Purpose"})});case gn.Rh.TransportEmissionsPerTypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"TransportByLocationReport",aggregationField:"CO2e",partitionField:"Type",title:()=>"Breakdown of emissions per type (%)",formatter:ire({type:"mass",originalUnit:"kg",field:"CO2e",label:()=>"Carbon emissions (kgCO2e)",partitionField:"Type"})});case gn.Rh.TransportEmissionsPerSubtypePieTile:return(0,fe.jsx)(are,{tile:e,dataset:"TransportByLocationReport",aggregationField:"CO2e",partitionField:"Subtype",title:()=>"Breakdown of emissions per subtype (%)",formatter:ire({type:"mass",originalUnit:"kg",field:"CO2e",label:()=>"Carbon emissions (kgCO2e)",partitionField:"Subtype"})});case gn.Rh.TransportTravelActivityPerLocationTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.WasteConsumptionByLocationTableTile,dataset:"TransportByLocationReportFlat",aggregationFields:["Distance(km)","Volume(L)","TotalCost(£)","CarbonEmissionScope1","CarbonEmissionScope2","CarbonEmissionScope3"],partitionFields:["Country","LocationCode","LocationName"],title:()=>"Annual figures per location",formatter:rre({quantities:[{type:"distance",title:()=>"Distance (km)",alias:"Distance(km)",field:"Distance(km)",originalUnit:"km"},{type:"money",title:e=>{let{withVat:n}=e;return`Cost (£) ${Aee(n)}`},alias:"TotalCost",field:"TotalCost(£)"},{type:"volume",title:()=>"Volume (L)",alias:"Volume(L)",field:"Volume(L)",originalUnit:"L"},{type:"mass",title:()=>"Scope 1 emissions (kgCO2e)",alias:"CarbonEmissionScope1",field:"CarbonEmissionScope1",originalUnit:"kg"},{type:"mass",title:()=>"Scope 2 emissions (kgCO2e)",alias:"CarbonEmissionScope2",field:"CarbonEmissionScope2",originalUnit:"kg"},{type:"mass",title:()=>"Scope 3 emissions (kgCO2e)",alias:"CarbonEmissionScope3",field:"CarbonEmissionScope3",originalUnit:"kg"}],partitionField:"LocationName",additionalFields:["Country","LocationCode"]})});case gn.Rh.TransportTotalDistanceTraveledYearOnYearKpiTile:return(0,fe.jsx)(xre,{tile:e});case gn.Rh.TransportTotalEmissionsYearOnYearKpiTile:return(0,fe.jsx)(Tre,{tile:e});case gn.Rh.TransportCarbonOverTimeYearOnYearBarTile:return(0,fe.jsx)(hre,{tile:e});case gn.Rh.TransportCarbonAndDistanceTraveledOverTimeBarTile:return(0,fe.jsx)(gre,{tile:e});case gn.Rh.TransportAnnualFiguresPerLocationYearOnYearTableTile:return(0,fe.jsx)(yre,{tile:e});default:return null}}const vre=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,withVat:l,selectedUnit:r}=iee(),o=(0,g.useRef)(null),s=lee(o),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WaterByLocationReport",aggregation:{functions:[{field:"Consumption(m3)",aggregationType:gn.DF.Sum},{field:"TotalCost",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Accuracy"}]}}}),{chartTheme:m,legendTheme:y}=(0,f.useAgChartsTheme)(n.colors),h=(0,g.useMemo)(()=>Iee(jee(d?.getDashboardTileData)?.map(e=>({...e,"Consumption(m3)":hee(e["Consumption(m3)"],{originalUnit:"m3",targetUnit:r}),TotalCost:hee(e.TotalCost,{withVat:l}),Date:bee(e.Month),Accuracy:Eee(e.Accuracy)})),["Date"],"Accuracy","Consumption(m3)")?.sort(vee),[d,l,r]),T=Boolean(h&&0===h.length),b=(0,g.useMemo)(()=>({theme:m,legend:y,width:s,data:h||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"AccuracyActualConsumption(m3)",yName:`Actual Consumption (${r})`,stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:`Actual Consumption (${r})`,value:kee(e.datum["AccuracyActualConsumption(m3)"])},{label:`Estimated Consumption (${r})`,value:kee(e.datum["AccuracyEstimatedConsumption(m3)"])},{label:`Total Consumption (${r})`,value:kee((e.datum["AccuracyActualConsumption(m3)"]||0)+(e.datum["AccuracyEstimatedConsumption(m3)"]||0))}]})}},{type:"bar",xKey:"Date",yKey:"AccuracyEstimatedConsumption(m3)",yName:`Estimated Consumption (${r})`,stacked:!0,fillOpacity:1,tooltip:{range:"nearest",renderer:e=>({data:[{label:`Estimated Consumption (${r})`,value:kee(e.datum["AccuracyEstimatedConsumption(m3)"])},{label:`Actual Consumption (${r})`,value:kee(e.datum["AccuracyActualConsumption(m3)"])},{label:`Total Consumption (${r})`,value:kee((e.datum["AccuracyActualConsumption(m3)"]||0)+(e.datum["AccuracyEstimatedConsumption(m3)"]||0))}]})}},{type:"line",xKey:"Date",yKey:"TotalCost",yName:"Cost (£)",tooltip:{renderer:e=>({data:[{label:`Total Cost (£) ${Aee(l)}`,value:kee(e.datum.TotalCost)}]})}}],axes:[{type:"number",position:"left",keys:["AccuracyActualConsumption(m3)","AccuracyEstimatedConsumption(m3)"],label:{formatter:e=>Nee(e.value)}},{type:"number",position:"right",keys:["TotalCost"],label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}]}),[h,m,s,y,r,l]);return(0,fe.jsx)(Kte,{title:n.title||`Cost (£) ${Aee(l)}, consumption (${r}) over time`,loading:c,error:u,retry:p,noData:T,ref:o,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:b})})},i?"exporting-pdf":void 0)},Cre=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i}=iee(),l=(0,g.useRef)(null),r=lee(l),{data:o,loading:s,error:d,refetch:c}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WaterByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month},{field:"Scope"}]}}}),{chartTheme:u,legendTheme:p}=(0,f.useAgChartsTheme)(n.colors||[f.AgChartColor.PINK_1,f.AgChartColor.BLUE_1,f.AgChartColor.GREEN_1]),m=(0,g.useMemo)(()=>Iee(jee(o?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e.CO2e),Date:bee(e.Month),Scope:e.Scope})),["Date"],"Scope","CO2e","TotalCO2e")?.sort(vee),[o]),y=Boolean(m&&0===m.length),h=(0,g.useMemo)(()=>({theme:u,width:r,data:m||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"Scope1CO2e",yName:"Scope 1 (kgCO2e)",stacked:!0,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:"Scope 1 (kgCO2e)",value:kee(e.datum.Scope1CO2e)},{label:"Scope 2 (kgCO2e)",value:kee(e.datum.Scope2CO2e)},{label:"Scope 3 (kgCO2e)",value:kee(e.datum.Scope3CO2e)},{label:"Total kgCO2e",value:kee(e.datum.TotalCO2e)}]})}},{type:"bar",xKey:"Date",yKey:"Scope2CO2e",yName:"Scope 2 (kgCO2e)",stacked:!0,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:"Scope 2 (kgCO2e)",value:kee(e.datum.Scope2CO2e)},{label:"Scope 1 (kgCO2e)",value:kee(e.datum.Scope1CO2e)},{label:"Scope 3 (kgCO2e)",value:kee(e.datum.Scope3CO2e)},{label:"Total kgCO2e",value:kee(e.datum.TotalCO2e)}]})}},{type:"bar",xKey:"Date",yKey:"Scope3CO2e",yName:"Scope 3 (kgCO2e)",stacked:!0,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:"Scope 3 (kgCO2e)",value:kee(e.datum.Scope3CO2e)},{label:"Scope 1 (kgCO2e)",value:kee(e.datum.Scope1CO2e)},{label:"Scope 2 (kgCO2e)",value:kee(e.datum.Scope2CO2e)},{label:"Total kgCO2e",value:kee(e.datum.TotalCO2e)}]})}}],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"bottom",...p}}),[m,u,r,p]);return(0,fe.jsx)(Kte,{title:n.title||"Carbon emissions by scope (kgCO2e)",loading:s,error:d,retry:c,noData:y,ref:l,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:h})})},i?"exporting-pdf":void 0)},kre=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WaterByLocationReport",aggregationFunctions:[{field:"Consumption(m3)",aggregationType:gn.DF.Sum}],defaultTitle:e=>{let{selectedUnit:n}=e;return`Total consumption (${n})`},supportsPeriodFilters:!0,getValue:(e,n)=>{let{selectedUnit:t}=n;return hee(e["Consumption(m3)"],{originalUnit:"m3",targetUnit:t})}})},Sre=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WaterByLocationReport",aggregationFunctions:[{field:"CO2e",aggregationType:gn.DF.Sum}],defaultTitle:"Total carbon emitted (kgCO2e)",supportsPeriodFilters:!0,getValue:e=>hee(e.CO2e)})},Nre=e=>{let{tile:n}=e;return(0,fe.jsx)(Jae,{tile:n,datasetName:"WaterByLocationReport",aggregationFunctions:[{field:"TotalCost",aggregationType:gn.DF.Sum}],defaultTitle:e=>{let{withVat:n}=e;return`Total cost (£) ${Aee(n)}`},supportsPeriodFilters:!0,getValue:(e,n)=>{let{withVat:t}=n;return hee(e.TotalCost,{withVat:t})}})},Are=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,filters:l,selectedUnit:r}=iee(),o=(0,g.useRef)(null),s=lee(o),{data:d,loading:c,error:u,refetch:p}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"WaterByLocationReport",aggregation:{functions:[{field:"Consumption(m3)",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Month}]}}}),{chartTheme:m,legendTheme:y}=(0,f.useAgChartsTheme)(n.colors),h=(0,g.useMemo)(()=>jee(d?.getDashboardTileData)?.map(e=>({...e,"Consumption(m3)":hee(e["Consumption(m3)"],{originalUnit:"m3",targetUnit:r}),Date:bee(e.Month)})).reduce((e,n)=>{const t=(0,rie.m)(e),a=F9(l.year1),i=P9(l.year1),r=P9(l.year2),o=bn()(n.Date,"MMM YYYY").format("MMM"),s=bn()(n.Date,"MMM YYYY").year()-(a===pt.YearToCompareType.CALENDAR?0:bn()(n.Date,"MMM YYYY").month()<4?1:0),d=t.findIndex(e=>e.Month===o&&null!==e.Year1Quantity);if(-1!==d)return t[d].Year2Quantity=Number(n["Consumption(m3)"]),t;const c=e.findIndex(e=>e.Month===o&&null!==e.Year2Quantity);return-1!==c?(t[c].Year1Quantity=Number(n["Consumption(m3)"]),t):[...t,{...n,Year1Quantity:s===i?Number(n["Consumption(m3)"]):null,Year2Quantity:s===r?Number(n["Consumption(m3)"]):null,Month:o}]},[])?.sort((e,n)=>F9(l.year1)===pt.YearToCompareType.CALENDAR?bn()(e.Month,"MMM").toDate().getTime()-bn()(n.Month,"MMM").toDate().getTime():B9.indexOf(e.Month)-B9.indexOf(n.Month)),[d,l.year1,l.year2,r]),T=Boolean(h&&0===h.length),b=(0,g.useMemo)(()=>({theme:m,width:s,data:h||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Month",yKey:"Year1Quantity",yName:`${l.year1} Consumption (${r})`,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`${l.year1} Consumption (${r})`,value:kee(e.datum.Year1Quantity)},{label:`${l.year2} Consumption (${r})`,value:kee(e.datum.Year2Quantity)}]})}},{type:"bar",xKey:"Month",yKey:"Year2Quantity",yName:`${l.year2} Consumption (${r})`,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`${l.year1} Consumption (${r})`,value:kee(e.datum.Year1Quantity)},{label:`${l.year2} Consumption (${r})`,value:kee(e.datum.Year2Quantity)}]})}}],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"bottom",...y}}),[h,m,s,y,l.year1,l.year2,r]);return(0,fe.jsx)(Kte,{title:n.title||`Annual consumption (${r}) over time`,loading:c,error:u,retry:p,noData:T,ref:o,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:b})})},i?"exporting-pdf":void 0)},Rre=e=>{let{tile:n}=e;const t=Je(),a=(0,g.useRef)(null),i=(0,g.useRef)(null),{queryVariablesFilters:l,activeSheet:r,dashboardId:o,filters:s,withVat:d,selectedUnit:c,doesSheetHavePeriodFilters:u,partitionFunctionForYearComparison:p}=iee(),{data:m,loading:f,error:y,refetch:h}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:l,datasetName:"WaterByLocationReport",aggregation:{functions:[{field:"Consumption(m3)",aggregationType:gn.DF.Sum},{field:"TotalCost",aggregationType:gn.DF.Sum},{field:"CO2e",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:u?gn.v7.Period:p,alias:"Period"},{field:"Country"},{field:"LocationCode"},{field:"LocationName"}]}}}),T=(0,g.useMemo)(()=>jee(m?.getDashboardTileData)?.map(e=>({...e,Country:xee(e.Country),LocationCode:xee(e.LocationCode),LocationName:xee(e.LocationName),Quantity:hee(e.Quantity,{originalUnit:"m3",targetUnit:c}),TotalCost:hee(e.TotalCost,{withVat:d}),CO2e:hee(e.CO2e)}))?.sort((e,n)=>e.Country!==n.Country?e.Country.toLowerCase().localeCompare(n.Country.toLowerCase()):e.LocationCode!==n.LocationCode?e.LocationCode.toLowerCase().localeCompare(n.LocationCode.toLowerCase()):e.LocationName!==n.LocationName?e.LocationName.toLowerCase().localeCompare(n.LocationName.toLowerCase()):1),[m,d,c]),b=Boolean(T&&0===T.length),v=(0,g.useMemo)(()=>[{headerName:"Country",field:"Country",rowGroup:!0,hide:!0},{headerName:"Location Code",field:"LocationCode",rowGroup:!0,hide:!0},{headerName:"Location Name",field:"LocationName",rowGroup:!0,hide:!0},{headerName:"Year",field:"Period",pivot:!0},{headerName:`Consumption (${c})`,field:"Consumption(m3)",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:`Cost (£) ${Aee(d)}`,field:"TotalCost",aggFunc:"sum",valueFormatter:e=>kee(e.value)},{headerName:"Carbon (kgCO2e)",field:"CO2e",aggFunc:"sum",valueFormatter:e=>kee(e.value)}],[d,c]);return(0,g.useEffect)(()=>{i.current?.gridApi?.resetColumnState()},[s]),(0,fe.jsx)(Kte,{title:n.title||"Consumption per location",loading:f,error:y,retry:h,noData:b,ref:a,children:(0,fe.jsx)(uae,{ref:i,gridKey:`${t}-${o}-${r}-ConsumptionPerLocationTableTile`,disableColumnStateRestoration:!0,gridOptions:{groupHideOpenParents:!0,groupDefaultExpanded:-1,suppressAggFuncInHeader:!0,autoSizeStrategy:{type:"fitCellContents"},autoGroupColumnDef:{cellRendererParams:{suppressCount:!0}},pivotMode:!0,columnDefs:v,rowData:T}})})};function Dre(e){switch(e.type){case gn.Rh.WaterTotalConsumptionKpiTile:return(0,fe.jsx)(Xle,{dataset:"WaterByLocationReport",aggregationField:"Consumption(m3)",tile:e,title:e=>{let{selectedUnit:n}=e;return`Total consumption (${n})`},formatter:tre({type:"volume",field:"Consumption(m3)",originalUnit:"m3"})});case gn.Rh.WaterTotalTreatmentKpiTile:return(0,fe.jsx)(Xle,{dataset:"WaterByLocationReport",aggregationField:"Treatment(m3)",tile:e,title:e=>{let{selectedUnit:n}=e;return`Total treatment (${n})`},formatter:tre({type:"volume",field:"Treatment(m3)",originalUnit:"m3"})});case gn.Rh.WaterTotalCostKpiTile:return(0,fe.jsx)(Xle,{dataset:"WaterByLocationReport",aggregationField:"TotalCost",tile:e,title:e=>{let{withVat:n}=e;return`Total cost (£) ${Aee(n)}`},formatter:tre({type:"money",field:"TotalCost"})});case gn.Rh.WaterTotalEmissionsKpiTile:return(0,fe.jsx)(Xle,{dataset:"WaterByLocationReport",aggregationField:"CO2e",tile:e,title:()=>"Total carbon emitted (kgCO2e)",formatter:tre({type:"mass",field:"CO2e",originalUnit:"kg"})});case gn.Rh.WaterCostConsumptionTreatmentOverTimeBarTile:return(0,fe.jsx)(vre,{tile:e});case gn.Rh.WaterCarbonEmissionsByScopeOverTimeBarTile:return(0,fe.jsx)(Cre,{tile:e});case gn.Rh.WaterCostConsumptionEmissionsPerLocationTableTile:return(0,fe.jsx)(lre,{tile:e,type:gn.Rh.WasteConsumptionByLocationTableTile,dataset:"WaterByLocationReport",aggregationFields:["Consumption(m3)","TotalCost","CO2e"],partitionFields:["Country","LocationCode","LocationName"],title:()=>"Consumption per location",formatter:rre({quantities:[{type:"volume",title:e=>{let{selectedUnit:n}=e;return`Consumption (${n})`},alias:"Consumption(m3)",field:"Consumption(m3)",originalUnit:"m3"},{type:"money",title:e=>{let{withVat:n}=e;return`Cost (£) ${Aee(n)}`},alias:"TotalCost",field:"TotalCost"},{type:"mass",title:()=>"Carbon emissions (kgCO2e)",alias:"CO2e",field:"CO2e",originalUnit:"kg"}],partitionField:"LocationName",additionalFields:["Country","LocationCode"]})});case gn.Rh.WaterConsumptionYearOnYearComparisonKpiTile:return(0,fe.jsx)(kre,{tile:e});case gn.Rh.WaterEmissionsYearOnYearComparisonKpiTile:return(0,fe.jsx)(Sre,{tile:e});case gn.Rh.WaterCostYearOnYearComparisonKpiTile:return(0,fe.jsx)(Nre,{tile:e});case gn.Rh.WaterAnnualConsumptionOverTimeComparisonBarTile:return(0,fe.jsx)(Are,{tile:e});case gn.Rh.WaterCostConsumptionEmissionsPerLocationComparisonTableTile:return(0,fe.jsx)(Rre,{tile:e});default:return null}}const Lre=e=>{let{tile:n}=e;const t=Je(),{queryVariablesFilters:a,isExportingPdf:i,selectedUnit:l}=iee(),r=(0,g.useRef)(null),o=lee(r),{data:s,loading:d,error:c,refetch:u}=(0,x.IT)(bte,{variables:{accountId:t,datasetFilters:a,datasetName:"CarbonByLocationReport",aggregation:{functions:[{field:"CO2e",aggregationType:gn.DF.Sum},{field:"MarketBasedCO2eWithFallback",aggregationType:gn.DF.Sum}],partitions:[{field:"Date",partitionFunction:gn.v7.Year}]}}}),{chartTheme:p,legendTheme:m}=(0,f.useAgChartsTheme)(n.colors),y=(0,g.useMemo)(()=>jee(s?.getDashboardTileData)?.map(e=>({...e,CO2e:hee(e.CO2e,{originalUnit:"kg",targetUnit:l}),MarketBasedCO2eWithFallback:hee(e.MarketBasedCO2eWithFallback,{originalUnit:"kg",targetUnit:l}),Date:bee(e.Year,"YYYY")}))?.sort((e,n)=>vee(e,n,"YYYY")),[s,l]),h=Boolean(y&&0===y.length),T=(0,g.useMemo)(()=>({theme:p,width:o,data:y||[],zoom:{enabled:!0},series:[{type:"bar",xKey:"Date",yKey:"CO2e",yName:`Location based emissions (${l}CO2e)`,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`Location based emissions (${l}CO2e)`,value:kee(e.datum.CO2e)}]})}},{type:"bar",xKey:"Date",yKey:"MarketBasedCO2eWithFallback",yName:`Market based emissions (${l}CO2e)`,fillOpacity:1,tooltip:{renderer:e=>({data:[{label:`Market based emissions (${l}CO2e)`,value:kee(e.datum.MarketBasedCO2eWithFallback)}]})}}],axes:[{type:"number",position:"left",label:{formatter:e=>Nee(e.value)}},{type:"category",position:"bottom"}],legend:{position:"bottom",...m}}),[y,p,o,m,l]);return(0,fe.jsx)(Kte,{title:n.title||`Carbon market and location emissions over time (${l}CO2e)`,loading:d,error:c,retry:u,noData:h,ref:r,children:(0,fe.jsx)(gae,{children:(0,fe.jsx)(gne.ui,{options:T})})},i?"exporting-pdf":void 0)},Ire=(0,g.memo)(e=>{let{tile:n}=e;const t=Gae[n.type];if(t)return(0,fe.jsx)(Uae,{tile:n,config:t});const a=[mre,ure,pre,fre,bre,Dre];for(const e of a){const t=e(n);if(t)return t}switch(n.type){case gn.Rh.TotalElectricityConsumption:return(0,fe.jsx)(dae,{tile:n});case gn.Rh.TotalElectricityCost:return(0,fe.jsx)(cae,{tile:n});case gn.Rh.ElectricityConsumptionByLocation:return(0,fe.jsx)(pae,{tile:n});case gn.Rh.TotalElectricityGrossCarbonEmissions:return(0,fe.jsx)(mae,{tile:n});case gn.Rh.TotalElectricityGrossCarbonEmissionsPeriodComparisonKpiTile:return(0,fe.jsx)(Lie,{tile:n});case gn.Rh.TotalElectricityNetCarbonEmissions:return(0,fe.jsx)(fae,{tile:n});case gn.Rh.TotalElectricityNetCarbonEmissionsPeriodComparisonKpiTile:return(0,fe.jsx)(Iie,{tile:n});case gn.Rh.TotalElectricityConsumptionPeriodComparisonKpiTile:return(0,fe.jsx)(Rie,{tile:n});case gn.Rh.TotalElectricityCostPeriodComparisonKpiTile:return(0,fe.jsx)(Die,{tile:n});case gn.Rh.ElectricityConsumptionByCountryAndScope:return(0,fe.jsx)(yae,{tile:n});case gn.Rh.ElectricityCostAndConsupmtionOverTime:return(0,fe.jsx)(hae,{tile:n});case gn.Rh.ElectricityGrossCarbonEmissionsByScope:return(0,fe.jsx)(xae,{tile:n});case gn.Rh.TotalCarbonEmissions:return(0,fe.jsx)(Tae,{tile:n});case gn.Rh.TotalCarbonEmissionsPeriodComparisonKpiTile:return(0,fe.jsx)(Hae,{tile:n});case gn.Rh.TotalCarbonCostPeriodComparisonKpiTile:return(0,fe.jsx)(Yae,{tile:n});case gn.Rh.CarbonEmissionsBySourceBar:return(0,fe.jsx)(bae,{tile:n});case gn.Rh.CarbonEmissionsByScopePie:return(0,fe.jsx)(vae,{tile:n});case gn.Rh.CarbonEmissionsByDataTypeBar:return(0,fe.jsx)(Cae,{tile:n});case gn.Rh.CarbonEmissionsByScopeAndSourceTable:return(0,fe.jsx)(kae,{tile:n});case gn.Rh.CarbonWttAndTdEmissionsBySourceTableTile:return(0,fe.jsx)(Sae,{tile:n});case gn.Rh.CarbonEmissionsByCountryBar:return(0,fe.jsx)(Nae,{tile:n});case gn.Rh.CarbonEmissionsByCountryAndScopeTable:return(0,fe.jsx)(Aae,{tile:n});case gn.Rh.CarbonEmissionsByCountryMap:return(0,fe.jsx)(Dae,{tile:n});case gn.Rh.Top_3CarbonEmissionCountriesTable:return(0,fe.jsx)(Lae,{tile:n});case gn.Rh.Bottom_3CarbonEmissionCountriesTable:return(0,fe.jsx)(Iae,{tile:n});case gn.Rh.CarbonEmissionsByScopeForPeriod_1PieTile:return(0,fe.jsx)(zae,{tile:n,period:"Period 1"});case gn.Rh.CarbonEmissionsByScopeForPeriod_2PieTile:return(0,fe.jsx)(zae,{tile:n,period:"Period 2"});case gn.Rh.CarbonEmissionsBySourceForPeriod_1BarTile:return(0,fe.jsx)(Wae,{tile:n,period:"Period 1"});case gn.Rh.CarbonEmissionsBySourceForPeriod_2BarTile:return(0,fe.jsx)(Wae,{tile:n,period:"Period 2"});case gn.Rh.ResourcesUsedByScopeTable:return(0,fe.jsx)(jae,{tile:n});case gn.Rh.ResourcesUsedByLocationTable:return(0,fe.jsx)(Oae,{tile:n});case gn.Rh.QuantityAndCo2EByLocationAndMeterTable:return(0,fe.jsx)(Eae,{tile:n});case gn.Rh.ProportionOfActVsEstPie:return(0,fe.jsx)(wae,{tile:n});case gn.Rh.TotalEnergyConsumptionKpiTile:return(0,fe.jsx)(Kae,{tile:n});case gn.Rh.TotalEnergyGrossCarbonEmissionsKpiTile:return(0,fe.jsx)(Qae,{tile:n});case gn.Rh.TotalEnergyNetCarbonEmissionsKpiTile:return(0,fe.jsx)(Zae,{tile:n});case gn.Rh.TotalEnergyCostKpiTile:return(0,fe.jsx)(Xae,{tile:n});case gn.Rh.EnergyCostAndConsumptionBarTile:return(0,fe.jsx)(eie,{tile:n});case gn.Rh.EnergyCarbonEmissionsByScopeBarTile:return(0,fe.jsx)(nie,{tile:n});case gn.Rh.EnergyConsumptionPerLocationTableTile:return(0,fe.jsx)(tie,{tile:n});case gn.Rh.EnergyConsumptionByScopeAndTariffTableTile:return(0,fe.jsx)(aie,{tile:n});case gn.Rh.TotalEnergyConsumptionYearOnYearKpiTile:return(0,fe.jsx)(iie,{tile:n});case gn.Rh.TotalEnergyGrossCarbonEmissionsYearOnYearKpiTile:return(0,fe.jsx)(die,{tile:n});case gn.Rh.TotalEnergyNetCarbonEmissionsYearOnYearKpiTile:return(0,fe.jsx)(cie,{tile:n});case gn.Rh.TotalEnergyCostYearOnYearKpiTile:return(0,fe.jsx)(lie,{tile:n});case gn.Rh.MonthlyEnergyConsumptionYearOnYearBarTile:return(0,fe.jsx)(oie,{tile:n});case gn.Rh.AnnualEnergyFiguresPerLocationTableTile:return(0,fe.jsx)(sie,{tile:n});case gn.Rh.TotalWasteWeightKpiTile:return(0,fe.jsx)(uie,{tile:n});case gn.Rh.TotalWasteCostKpiTile:return(0,fe.jsx)(pie,{tile:n});case gn.Rh.TotalWasteCarbonEmissionsKpiTile:return(0,fe.jsx)(Xle,{dataset:"WasteByLocationReport",aggregationField:"CO2e(kg)",tile:n,title:e=>{let{selectedUnit:n}=e;return`Total carbon emitted (${n}CO2e)`},formatter:tre({type:"mass",field:"CO2e(kg)",originalUnit:"kg"})});case gn.Rh.PercentageDivertedFromDisposalKpiTile:return(0,fe.jsx)(mie,{tile:n});case gn.Rh.WasteCostAndWeightOverTimeBarTile:return(0,fe.jsx)(ore,{tile:n,title:e=>{let{selectedUnit:n}=e;return`Waste cost and weight over time (${n})`},dataset:"WasteByLocationReport",aggregationFields:["Quantity(t)","TotalCost(£)"],partitionFields:[["Date",gn.v7.Month],"Accuracy"],formatter:dre({type:"mass",field:"Quantity(t)",totalCostField:"TotalCost(£)",labels:e=>{let{selectedUnit:n}=e;return{actual:`Actual Weight (${n})`,estimated:`Estimated Weight (${n})`,total:`Total Weight (${n})`}},originalUnit:"t"})});case gn.Rh.WasteHierarchyByTypeDonutTile:return(0,fe.jsx)(fie,{tile:n});case gn.Rh.WasteCarbonEmissionsByScopeBarTile:return(0,fe.jsx)(yie,{tile:n});case gn.Rh.WasteByWasteStreamPieTile:return(0,fe.jsx)(are,{tile:n,dataset:"WasteByLocationReport",aggregationField:"Quantity(t)",partitionField:"WasteStream",title:e=>{let{selectedUnit:n}=e;return`Weight % by waste stream (${n})`},formatter:ire({type:"mass",originalUnit:"t",field:"Quantity(t)",label:e=>{let{selectedUnit:n}=e;return`Weight (${n})`},partitionField:"WasteStream"})});case gn.Rh.WasteConsumptionByLocationTableTile:return(0,fe.jsx)(lre,{tile:n,type:gn.Rh.WasteConsumptionByLocationTableTile,dataset:"WasteByLocationReport",aggregationFields:["Quantity(t)","TotalCost(£)","CO2e(kg)"],partitionFields:["Country","LocationCode","LocationName"],title:e=>{let{selectedUnit:n}=e;return`Consumption by location (${n})`},formatter:rre({quantities:[{type:"mass",title:e=>{let{selectedUnit:n}=e;return`Weight (${n})`},alias:"Weight",field:"Quantity(t)",originalUnit:"t"},{type:"money",title:e=>{let{withVat:n}=e;return`Cost (£) ${Aee(n)}`},alias:"TotalCost",field:"TotalCost(£)"},{type:"mass",title:e=>{let{selectedUnit:n}=e;return`Carbon emissions (${n}CO2e)`},alias:"CO2e",field:"CO2e(kg)",originalUnit:"kg"}],partitionField:"LocationName",additionalFields:["Country","LocationCode"]})});case gn.Rh.TotalWasteWeightYearOnYearKpiTile:return(0,fe.jsx)(gie,{tile:n});case gn.Rh.TotalWasteCarbonEmissionsYearOnYearKpiTile:return(0,fe.jsx)(hie,{tile:n});case gn.Rh.TotalWasteCostYearOnYearKpiTile:return(0,fe.jsx)(xie,{tile:n});case gn.Rh.TotalWasteCostPerTonnageYearOnYearKpiTile:return(0,fe.jsx)(Aie,{tile:n});case gn.Rh.AnnualWasteGenerationAndCostPerLocationTableTile:return(0,fe.jsx)(Tie,{tile:n});case gn.Rh.MonthlyWasteGenerationYearOnYearBarTile:return(0,fe.jsx)(bie,{tile:n});case gn.Rh.MonthlyWasteGenerationAndCostYearOnYearBarTile:return(0,fe.jsx)(vie,{tile:n});case gn.Rh.WasteWeightOverTimeBarTile:return(0,fe.jsx)(Cie,{tile:n});case gn.Rh.WasteCostByWasteStreamPieTile:return(0,fe.jsx)(kie,{tile:n});case gn.Rh.WasteStreamCostOverTimeBarTile:return(0,fe.jsx)(Sie,{tile:n});case gn.Rh.WasteWeightOverTimeByWasteStreamBarTile:return(0,fe.jsx)(Nie,{tile:n});case gn.Rh.WasteDisposalPercentagePeriodComparisonKpiTile:return(0,fe.jsx)(jie,{tile:n});case gn.Rh.WasteRecycingPercentagePeriodComparisonKpiTile:return(0,fe.jsx)(wie,{tile:n});case gn.Rh.WasteDisposalPercentageOverTimeBarTile:return(0,fe.jsx)(Oie,{tile:n});case gn.Rh.WasteRecyclingPercentageOverTimeBarTile:return(0,fe.jsx)(Eie,{tile:n});case gn.Rh.WasteReusePercentagePeriodComparisonKpiTile:return(0,fe.jsx)(_ie,{tile:n});case gn.Rh.WasteOtherRecoveryPercentagePeriodComparisonKpiTile:return(0,fe.jsx)(Fie,{tile:n});case gn.Rh.GasConsumptionPeriodComparisonKpiTile:return(0,fe.jsx)(Pie,{tile:n});case gn.Rh.GasCarbonEmissionsPeriodComparisonKpiTile:return(0,fe.jsx)(Bie,{tile:n});case gn.Rh.GasCostAndConsumptionOverTimeBarTile:return(0,fe.jsx)(Uie,{tile:n});case gn.Rh.GasCostPeriodComparisonKpiTile:return(0,fe.jsx)($ie,{tile:n});case gn.Rh.GasAverageChargePerKilowattPeriodComparisonKpiTile:return(0,fe.jsx)(Mie,{tile:n});case gn.Rh.FuelConsumptionPeriodComparisonKpiTile:return(0,fe.jsx)(Vie,{tile:n});case gn.Rh.FuelCarbonEmissionsPeriodComparisonKpiTile:return(0,fe.jsx)(Gie,{tile:n});case gn.Rh.FuelCostAndConsumptionOverTimeBarTile:return(0,fe.jsx)(zie,{tile:n});case gn.Rh.FuelCostPeriodComparisonKpiTile:return(0,fe.jsx)(Wie,{tile:n});case gn.Rh.FuelAverageChargePerKilowattPeriodComparisonKpiTile:return(0,fe.jsx)(qie,{tile:n});case gn.Rh.WaterConsumptionPeriodComparisonKpiTile:return(0,fe.jsx)(Jie,{tile:n});case gn.Rh.WaterCarbonEmissionsPeriodComparisonKpiTile:return(0,fe.jsx)(Yie,{tile:n});case gn.Rh.WaterCostAndConsumptionOverTimeBarTile:return(0,fe.jsx)(Hie,{tile:n});case gn.Rh.WaterCostPeriodComparisonKpiTile:return(0,fe.jsx)(Kie,{tile:n});case gn.Rh.WaterAverageChargePerKilowattPeriodComparisonKpiTile:return(0,fe.jsx)(Qie,{tile:n});case gn.Rh.MaterialWeightPeriodComparisonKpiTile:return(0,fe.jsx)(Zie,{tile:n});case gn.Rh.MaterialCarbonEmissionsPeriodComparisonKpiTile:return(0,fe.jsx)(Xie,{tile:n});case gn.Rh.MaterialWeightAndConsumptionOverTimeBarTile:return(0,fe.jsx)(ele,{tile:n});case gn.Rh.MaterialCostPeriodComparisonKpiTile:return(0,fe.jsx)(nle,{tile:n});case gn.Rh.MaterialCostPerWeightEmissionsPeriodComparisonKpiTile:return(0,fe.jsx)(tle,{tile:n});case gn.Rh.TransportCarbonEmissionsPeriodComparisonKpiTile:return(0,fe.jsx)(ale,{tile:n});case gn.Rh.TransportCostPeriodComparisonKpiTile:return(0,fe.jsx)(ile,{tile:n});case gn.Rh.TransportEmissionsAndCostOverTimeBarTile:return(0,fe.jsx)(ore,{tile:n,title:e=>{let{selectedUnit:n,withVat:t}=e;return`Carbon emissions (${n}CO2e) and cost (£) ${Aee(t)} over time`},dataset:"TransportByLocationReport",aggregationFields:["CO2e","TotalCost(£)"],partitionFields:[["Date",gn.v7.Month]],formatter:sre({type:"mass",originalUnit:"kg",field:"CO2e",totalCostField:"TotalCost(£)",label:e=>{let{selectedUnit:n}=e;return`Carbon emissions (${n}CO2e)`}})});case gn.Rh.EstatesReportGridTile:return(0,fe.jsx)(yle,{});case gn.Rh.BusinessAnalyticsSummaryKpiTile:return(0,fe.jsx)(ble,{tile:n});case gn.Rh.BusinessAnalyticsTransactionVolumeBarTile:return(0,fe.jsx)(vle,{tile:n});case gn.Rh.BusinessAnalyticsLocationGrowthTableTile:return(0,fe.jsx)(Cle,{tile:n});case gn.Rh.BusinessAnalyticsEnergySpendGrowthTableTile:return(0,fe.jsx)(kle,{tile:n});case gn.Rh.BusinessAnalyticsGeoDistributionTableTile:return(0,fe.jsx)(Sle,{tile:n});case gn.Rh.BusinessAnalyticsCarbonGrowthTableTile:return(0,fe.jsx)(Nle,{tile:n});case gn.Rh.SectionTitleTile:return(0,fe.jsx)(Rle,{tile:n});case gn.Rh.Scope_1CarbonSavingsKpiTile:return(0,fe.jsx)(Lle,{tile:n});case gn.Rh.Scope_1CarbonSavingsOverTimeLineTile:return(0,fe.jsx)(Ile,{tile:n});case gn.Rh.AverageFlaringFromUpstreamOperationsKpiTile:return(0,fe.jsx)(jle,{tile:n});case gn.Rh.AverageFlaringFromUpstreamOperationsOverTimeLineTile:return(0,fe.jsx)(wle,{tile:n});case gn.Rh.FlaringIntensityKpiTile:return(0,fe.jsx)(Ole,{tile:n});case gn.Rh.FlaringIntensityOverTimeLineTile:return(0,fe.jsx)(Ele,{tile:n});case gn.Rh.CurrentYearCarbonIntensityKpiTile:return(0,fe.jsx)(_le,{tile:n});case gn.Rh.PastYearCarbonIntensityKpiTile:return(0,fe.jsx)(Fle,{tile:n});case gn.Rh.CarbonIntensityReductionKpiTile:return(0,fe.jsx)(Ple,{tile:n});case gn.Rh.CarbonIntensityOverTimeLineTile:return(0,fe.jsx)(Ble,{tile:n});case gn.Rh.CarbonIntensityReductionOverTimeLineTile:return(0,fe.jsx)(Zle,{tile:n});case gn.Rh.PastYearEmissionsByScopeBarTile:return(0,fe.jsx)(Ule,{tile:n});case gn.Rh.CurrentYearEmissionsByScopeBarTile:return(0,fe.jsx)($le,{tile:n});case gn.Rh.CarbonEmissionsByScopeOverTimeLineTile:return(0,fe.jsx)(Mle,{tile:n});case gn.Rh.CarbonEmissionsByScopeOverTimeBarTile:return(0,fe.jsx)(ore,{tile:n,title:e=>{let{selectedUnit:n}=e;return`Carbon emissions by scope (${n}CO2e)`},dataset:"CarbonByLocationReport",aggregationFields:["CO2e"],partitionFields:[["Date",gn.v7.Year],"Scope"],formatter:cre({type:"mass",originalUnit:"kg",field:"CO2e",labels:e=>{let{selectedUnit:n}=e;return{scope1:{label:`Scope 1 (${n}CO2e)`},scope2:{label:`Scope 2 (${n}CO2e)`},scope3:{label:`Scope 3 (${n}CO2e)`,disabled:!0},total:`Total (${n}CO2e)`}}})});case gn.Rh.CarbonMarketAndLocationEmissionsOverTimeBarTile:return(0,fe.jsx)(Lre,{tile:n});case gn.Rh.NumberOfLocationsKpiTile:return(0,fe.jsx)(Xle,{dataset:"CarbonByLocationReport",aggregationField:"LocationName",aggregationType:gn.DF.Count,tile:n,title:()=>"Number of locations"});case gn.Rh.GhgProtocolBreakdownTableTile:return(0,fe.jsx)(lre,{tile:n,type:gn.Rh.GhgProtocolBreakdownTableTile,dataset:"CarbonByLocationReport",aggregationFields:["Quantity","CO2e","MarketBasedCO2eWithFallback"],partitionFields:["GHGScope","GHGCategory","FuelType","Unit"],title:()=>"Scope 1 and 2 GHG protocol breakdown",formatter:rre({quantities:[{type:"none",field:"Quantity",title:()=>"Quantity (based on unit)"},{type:"mass",field:"CO2e",originalUnit:"kg",title:e=>{let{selectedUnit:n}=e;return`Location based emissions (${n}CO2e)`}},{type:"mass",field:"MarketBasedCO2eWithFallback",originalUnit:"kg",title:e=>{let{selectedUnit:n}=e;return`Market based emissions (${n}CO2e)`}}],partitionField:"Unit",additionalFields:["GHGScope","GHGCategory","FuelType"]})});case gn.Rh.CarbonEmittersByLocationTableTile:return(0,fe.jsx)(lre,{tile:n,type:gn.Rh.CarbonEmittersByLocationTableTile,dataset:"CarbonByLocationReport",aggregationFields:["CO2e"],partitionFields:["LocationName","Scope"],title:()=>"Carbon emitters by location",formatter:rre({quantities:[{type:"mass",field:"CO2e",originalUnit:"kg",title:e=>{let{selectedUnit:n}=e;return`Carbon emissions (${n}CO2e)`}}],partitionField:"Scope",additionalFields:["LocationName"]})});case gn.Rh.Top_10CarbonEmittersByLocationPieTile:return(0,fe.jsx)(are,{tile:n,dataset:"CarbonByLocationReport",aggregationField:"CO2e",partitionField:"LocationName",topResultsCount:10,title:e=>{let{selectedUnit:n}=e;return`Top 10 carbon emitters by location (${n}CO2e)`},formatter:ire({type:"mass",field:"CO2e",label:e=>{let{selectedUnit:n}=e;return`Carbon (${n}CO2e)`},originalUnit:"kg",partitionField:"LocationName"})});case gn.Rh.WaterWithdrawalPercentagePieTile:return(0,fe.jsx)(Vle,{tile:n});case gn.Rh.WaterDischargePercentagePieTile:return(0,fe.jsx)(Gle,{tile:n});case gn.Rh.WaterWithdrawalPercentageOverTimeLineTile:return(0,fe.jsx)(zle,{tile:n});case gn.Rh.WaterDischargePercentageOverTimeLineTile:return(0,fe.jsx)(Wle,{tile:n});case gn.Rh.BoardAttendanceRateKpiTile:return(0,fe.jsx)(qle,{tile:n});case gn.Rh.BoardAttendanceRateOverTimeLineTile:return(0,fe.jsx)(Jle,{tile:n});case gn.Rh.BoardFemaleRepresentationPieTile:return(0,fe.jsx)(Yle,{tile:n});case gn.Rh.BoardFemaleRepresentationOverTimeLineTile:return(0,fe.jsx)(Hle,{tile:n});case gn.Rh.ExecutiveFemaleRepresentationPieTile:return(0,fe.jsx)(Kle,{tile:n});case gn.Rh.ExecutiveFemaleRepresentationOverTimeLineTile:return(0,fe.jsx)(Qle,{tile:n});default:return null}});Ire.displayName="DashboardTile";const jre=140,wre=(0,f.styled)("div")`
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: ${16}px;
  padding-bottom: 4px;
`,Ore=(0,f.styled)("div")`
  position: relative;
  grid-column: span ${e=>e.colSpan};
  ${e=>e.height?`height: ${e.height}px;`:""}
`,Ere=(0,f.styled)("div")`
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: ${10}px;
  cursor: ns-resize;
  user-select: none;
  background: transparent;
  opacity: 0.3;
  transition: opacity 0.15s ease;
  border-radius: 0 0 16px 16px;

  &:hover {
    background: ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  }
`,_re=[...Object.values(gn.Rh).filter(e=>"string"==typeof e&&(e.endsWith("TableTile")||e.endsWith("TABLE_TILE"))),gn.Rh.ElectricityConsumptionByLocation,gn.Rh.ElectricityConsumptionByCountryAndScope,gn.Rh.AverageElectricityChargePerKilowattByLocationPeriodComparisonTableTile,gn.Rh.AverageElectricityChargePerKilowattByTagPeriodComparisonTableTile,gn.Rh.ElectricityConsumptionByLocationPeriodComparisonTableTile,gn.Rh.ElectricityConsumptionByTagPeriodComparisonTableTile,gn.Rh.ElectricityCostByLocationPeriodComparisonTableTile,gn.Rh.ElectricityCostByTagPeriodComparisonTableTile,gn.Rh.ElectricityGrossCarbonEmissionsByLocationPeriodComparisonTableTile,gn.Rh.ElectricityGrossCarbonEmissionsByTagPeriodComparisonTableTile,gn.Rh.ElectricityNetCarbonEmissionsByLocationPeriodComparisonTableTile,gn.Rh.ElectricityNetCarbonEmissionsByTagPeriodComparisonTableTile,gn.Rh.CarbonEmissionsByScopeAndSourceTable,gn.Rh.ResourcesUsedByScopeTable,gn.Rh.ResourcesUsedByLocationTable,gn.Rh.QuantityAndCo2EByLocationAndMeterTable,gn.Rh.CarbonEmissionsByCountryAndScopeTable,gn.Rh.TopCarbonEmissionsByCountryTable,gn.Rh.Top_3CarbonEmissionCountriesTable,gn.Rh.Bottom_3CarbonEmissionCountriesTable,gn.Rh.CarbonEmissionsByLocationPeriodComparisonTableTile,gn.Rh.CarbonCostByLocationPeriodComparisonTableTile,gn.Rh.CarbonEmissionsByTagPeriodComparisonTableTile,gn.Rh.CarbonCostByTagPeriodComparisonTableTile,gn.Rh.CarbonEmissionsByScopePeriodComparisonTableTile,gn.Rh.CarbonCostByScopePeriodComparisonTableTile,gn.Rh.CarbonEmissionsByResourcePeriodComparisonTableTile,gn.Rh.CarbonCostByResourcePeriodComparisonTableTile,gn.Rh.EnergyConsumptionPerLocationTableTile,gn.Rh.EnergyConsumptionByScopeAndTariffTableTile,gn.Rh.AnnualEnergyFiguresPerLocationTableTile,gn.Rh.WasteConsumptionByLocationTableTile,gn.Rh.AnnualWasteGenerationAndCostPerLocationTableTile,gn.Rh.WasteWeightByLocationPeriodComparisonTableTile,gn.Rh.WasteCarbonEmissionsByLocationPeriodComparisonTableTile,gn.Rh.WasteWeightByTagPeriodComparisonTableTile,gn.Rh.WasteCarbonEmissionsByTagPeriodComparisonTableTile,gn.Rh.WasteWeightByContractorPeriodComparisonTableTile,gn.Rh.WasteCarbonEmissionsByContractorPeriodComparisonTableTile,gn.Rh.WasteWeightByTreatmentProcessPeriodComparisonTableTile,gn.Rh.WasteCarbonEmissionsByTreatmentProcessPeriodComparisonTableTile,gn.Rh.WasteCostByLocationPeriodComparisonTableTile,gn.Rh.WasteCostPerTonnageByLocationPeriodComparisonTableTile,gn.Rh.WasteCostByTagPeriodComparisonTableTile,gn.Rh.WasteCostPerTonnageByTagPeriodComparisonTableTile,gn.Rh.WasteCostByContractorPeriodComparisonTableTile,gn.Rh.WasteCostPerTonnageByContractorPeriodComparisonTableTile,gn.Rh.WasteCostByTreatmentProcessPeriodComparisonTableTile,gn.Rh.WasteCostPerTonnageByTreatmentProcessPeriodComparisonTableTile,gn.Rh.WasteDisposalPercentageByLocationPeriodComparisonTableTile,gn.Rh.WasteRecycingPercentageByLocationPeriodComparisonTableTile,gn.Rh.WasteDisposalPercentageByTagPeriodComparisonTableTile,gn.Rh.WasteRecycingPercentageByTagPeriodComparisonTableTile,gn.Rh.WasteDisposalPercentageByWasteStreamPeriodComparisonTableTile,gn.Rh.WasteRecycingPercentageByWasteStreamPeriodComparisonTableTile,gn.Rh.WasteReusePercentageByLocationPeriodComparisonTableTile,gn.Rh.WasteOtherRecoveryPercentageByLocationPeriodComparisonTableTile,gn.Rh.WasteReusePercentageByTagPeriodComparisonTableTile,gn.Rh.WasteOtherRecoveryPercentageByTagPeriodComparisonTableTile,gn.Rh.WasteReusePercentageByWasteStreamPeriodComparisonTableTile,gn.Rh.WasteOtherRecoveryPercentageByWasteStreamPeriodComparisonTableTile,gn.Rh.GasConsumptionByLocationPeriodComparisonTableTile,gn.Rh.GasCarbonEmissionsByLocationPeriodComparisonTableTile,gn.Rh.GasConsumptionByTagPeriodComparisonTableTile,gn.Rh.GasCarbonEmissionsByTagPeriodComparisonTableTile,gn.Rh.GasCostByLocationPeriodComparisonTableTile,gn.Rh.GasCostByTagPeriodComparisonTableTile,gn.Rh.GasAverageChargePerKilowattByLocationPeriodComparisonTableTile,gn.Rh.GasAverageChargePerKilowattByTagPeriodComparisonTableTile,gn.Rh.FuelConsumptionByLocationPeriodComparisonTableTile,gn.Rh.FuelCarbonEmissionsByLocationPeriodComparisonTableTile,gn.Rh.FuelConsumptionByTagPeriodComparisonTableTile,gn.Rh.FuelCarbonEmissionsByTagPeriodComparisonTableTile,gn.Rh.FuelCostByLocationPeriodComparisonTableTile,gn.Rh.FuelCostByTagPeriodComparisonTableTile,gn.Rh.FuelAverageChargePerKilowattByLocationPeriodComparisonTableTile,gn.Rh.FuelAverageChargePerKilowattByTagPeriodComparisonTableTile,gn.Rh.WaterConsumptionByLocationPeriodComparisonTableTile,gn.Rh.WaterCarbonEmissionsByLocationPeriodComparisonTableTile,gn.Rh.WaterConsumptionByTagPeriodComparisonTableTile,gn.Rh.WaterCarbonEmissionsByTagPeriodComparisonTableTile,gn.Rh.WaterCostByLocationPeriodComparisonTableTile,gn.Rh.WaterCostByTagPeriodComparisonTableTile,gn.Rh.WaterAverageChargePerKilowattByLocationPeriodComparisonTableTile,gn.Rh.WaterAverageChargePerKilowattByTagPeriodComparisonTableTile,gn.Rh.MaterialWeightByLocationPeriodComparisonTableTile,gn.Rh.MaterialCarbonEmissionsByLocationPeriodComparisonTableTile,gn.Rh.MaterialWeightByTagPeriodComparisonTableTile,gn.Rh.MaterialCarbonEmissionsByTagPeriodComparisonTableTile,gn.Rh.MaterialWeightByContractorPeriodComparisonTableTile,gn.Rh.MaterialCarbonEmissionsByContractorPeriodComparisonTableTile,gn.Rh.MaterialWeightByTypeAndOriginPeriodComparisonTableTile,gn.Rh.MaterialCarbonEmissionsByTypeAndOriginPeriodComparisonTableTile,gn.Rh.MaterialCostByLocationPeriodComparisonTableTile,gn.Rh.MaterialCostPerWeightEmissionsByLocationPeriodComparisonTableTile,gn.Rh.MaterialCostByTagPeriodComparisonTableTile,gn.Rh.MaterialCostPerWeightEmissionsByTagPeriodComparisonTableTile,gn.Rh.TransportCarbonEmissionsByLocationPeriodComparisonTableTile,gn.Rh.TransportCostByLocationPeriodComparisonTableTile,gn.Rh.TransportCarbonEmissionsByTagPeriodComparisonTableTile,gn.Rh.TransportCostByTagPeriodComparisonTableTile,gn.Rh.TransportCarbonEmissionsByTransportTypePeriodComparisonTableTile,gn.Rh.TransportCostByTransportTypePeriodComparisonTableTile,gn.Rh.TransportCarbonEmissionsByFuelTypePeriodComparisonTableTile,gn.Rh.TransportCostByFuelTypePeriodComparisonTableTile,gn.Rh.EstatesReportGridTile,gn.Rh.BusinessAnalyticsLocationGrowthTableTile,gn.Rh.BusinessAnalyticsEnergySpendGrowthTableTile,gn.Rh.BusinessAnalyticsGeoDistributionTableTile,gn.Rh.BusinessAnalyticsCarbonGrowthTableTile],Fre=(0,g.memo)(e=>{let{tiles:n,isExportingPdf:t}=e;const[a,i]=(0,g.useState)({}),l=(0,g.useRef)({mousemove:null,mouseup:null});(0,g.useEffect)(()=>()=>{l.current.mousemove&&document.removeEventListener("mousemove",l.current.mousemove),l.current.mouseup&&document.removeEventListener("mouseup",l.current.mouseup)},[]);const r=(0,g.useCallback)(e=>!!_re.includes(e.type),[]),o=(0,g.useCallback)(e=>{const n=(e.rowSpan||1)*jre,i=a[e.type];return t||r(e)?r(e)?i:n:i??n},[a,t,r]),s=(0,g.useCallback)((e,n,t)=>{const a=(e.rowSpan||1)*jre,r=l=>{const r=l.clientY-n,o=t+r,s=Math.round(o/jre)*jre,d=Math.max(a,s);i(n=>({...n,[e.type]:d}))},o=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o),l.current.mousemove=null,l.current.mouseup=null};l.current.mousemove=r,l.current.mouseup=o,document.addEventListener("mousemove",r),document.addEventListener("mouseup",o)},[]);return(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(wre,{children:n.map(e=>{const n=o(e);return(0,fe.jsxs)(Ore,{colSpan:e.colSpan||6,height:n,children:[(0,fe.jsx)(Ire,{tile:e}),!t&&(0,fe.jsx)(Ere,{onMouseDown:t=>{t.preventDefault();const a=t.target.parentElement,i=n??a?.offsetHeight??jre;s(e,t.clientY,i)}})]},e.type)})})})});Fre.displayName="DashboardTiles";const Pre=(0,f.styled)(f.Grid)`
  width: 100%;
`,Bre=e=>{let{sheet:n}=e;const{isExportingPdf:t}=iee();return(0,fe.jsxs)(Pre,{id:q9,container:!0,gap:2,children:[(0,fe.jsx)(Ute,{filters:n.filters}),(0,fe.jsx)(Fre,{tiles:n.tiles,isExportingPdf:t})]})},Ure=e=>{let{dashboard:n}=e;const{activeSheet:t,setActiveSheetByIndex:a}=iee(),i=(0,g.useMemo)(()=>n?.sheets?n?.sheets.map((e,n)=>({label:e.title,value:n,children:(0,fe.jsx)(Bre,{sheet:e})})):[],[n]);return n?.sheets&&t?1===n?.sheets.length?(0,fe.jsx)(Bre,{sheet:n.sheets[0]}):(0,fe.jsx)(f.Tabs,{scrollable:!0,currentTab:t.index,handlerChangeTab:a,tabs:i}):null};function $re(e){let{dashboard:n}=e;return(0,fe.jsx)(cee,{dashboard:n,children:(0,fe.jsx)(Ure,{dashboard:n})})}qee.hF.setLicenseKey(De("REACT_APP_AG_CHARTS_LICENSE_KEY"));const Mre={content:"Your impact dashboard"};function Vre(e){let{customDashboard:n}=e;const t=Yl("IMPACT_LOCATIONS_MAP",Dt,jt,wt,It,Ot,_t,Ft,Et,...Bt);return(0,fe.jsxs)(f.Page,{title:Mre,children:[t&&(0,fe.jsx)(xte,{}),n?(0,fe.jsx)($re,{dashboard:n}):(0,fe.jsx)(Ene,{})]})}const Gre=S.J1`
  query GetQuicksightDashboard($username: String!, $dashboardId: String!, $accountId: String!) {
    getQuicksightDashboard(input: { username: $username, dashboardId: $dashboardId, accountId: $accountId })
  }
`,zre=S.J1`
  query GetQuicksightPreloaderDashboard($accountId: String!) {
    getQuicksightPreloaderDashboard(accountId: $accountId)
  }
`,Wre="dashboard-preloader-container-id",qre="arn:aws:quicksight:eu-west-2:523523762637:theme/985f7adb-d835-4e18-bb87-f94c077d4f6c",Jre="reporting-breadcrumbs-id",Yre={x:0,y:0,width:0,height:0,zIndex:0},Hre=(0,f.styled)("div")`
  position: absolute;

  ${e=>{let{canShow:n,anchorDimensions:t}=e;return n&&0!==t.x?`\n        left: ${t.x}px;\n        top: ${t.y}px;\n        width: ${t.width}px;\n        ${t.height?`height: ${t.height}${"number"==typeof t.height?"px":""};`:""}\n        ${t.zIndex?`z-index: ${t.zIndex};`:""}\n    `:"\n        left: 0px;\n        top: 0px;\n        width: 0px; \n        height: 0px; \n      "}}
`,Kre=(0,g.createContext)({isLoading:!0,isLoadingForTheFirstTime:!0,loadingError:void 0,wasInitialEmbeddingSuccessful:!1,dashboardAnchorElementRef:{current:null},handleDashboardAnchoring:()=>{},dashboardParameters:{},setDashboardParameters:()=>{},dashboardInstance:null}),Qre=()=>(0,g.useContext)(Kre),Zre="providerDashboardId",Xre=e=>{let{children:n}=e;const t=Qe(),[a]=(0,p.useSearchParams)(),i=a.get(Zre)||De("REACT_APP_QUICKSIGHT_PRELOADER_DASHBOARD_ID"),l=td(i),r=i!==l,o="clean-score"===i,s=(0,g.useRef)(null),d=Je(),c=(0,g.useRef)(null),[u,f]=(0,g.useState)(Yre),y=(0,g.useCallback)(()=>{if(!c.current)return void f(Yre);const e=c.current.getBoundingClientRect(),n="true"===c.current.dataset.isFullScreen,a=n?5e3:Yre.zIndex;let i=0;if(t||(i=70+(document.getElementsByName("ReportingReport__PageHeader")?.[0]?.offsetHeight||112)+0),t){const e=90,t=document.getElementById(Jre)?.offsetHeight||68,a=16;i=n?56+a:e+t+32+a}const l=`calc(100vh - ${i}px)`;f({x:e.x,y:e.y,width:e.width,height:l,zIndex:a})},[t]),[h,T]=(0,g.useState)({}),[b,v]=(0,g.useState)(!1),[C,k]=(0,g.useState)(!1),[S,N]=(0,g.useState)(),[A,R]=(0,g.useState)(null),[D,L]=(0,g.useState)(!1),[I,j]=(0,g.useState)(!1),w=localStorage.getItem("ID_TOKEN"),O=(0,g.useMemo)(()=>w&&(0,iu.A)(w)?.sub||"",[w]),{pathname:_}=(0,m.zy)(),F=(0,g.useMemo)(()=>{if(I)return"";const e=!t,n=_.split("/"),a=_.includes("/reporting/")&&!_.includes("/reporting/overview")&&!_.includes("CleanScore")&&!(e&&"/reporting"===_),i=t?n[n.length-1]:n[2];return a?i:""},[_,I,t]),P=(0,g.useCallback)(async e=>{try{L(!0),N(void 0);const n=await(0,S0.createEmbeddingContext)(),a={url:e,container:`#${Wre}`,height:"100%",width:"100%",resizeHeightOnSizeChangedEvent:!1},i={parameters:[{Name:"accountId",Values:[d]},{Name:"ucAccountId",Values:[d.toUpperCase()]},...Object.keys(h).map(e=>({Name:e,Values:[h[e].toString()]}))],locale:"en-GB",toolbarOptions:{export:!0,undoRedo:!0,reset:!0},attributionOptions:{overlayContent:!1},themeOptions:t?{themeArn:qre}:void 0,onMessage:async e=>{switch(e.eventName){case"SIZE_CHANGED":case"CONTENT_LOADED":v(!1)}}},l=await n.embedDashboard(a,i);j(!0),R(l),L(!1)}catch(e){E.Cp(e),console.error(e),N(e),L(!1)}},[d,h,t]),[B]=(0,Ul._)(Gre),{loading:U,error:$}=(0,x.IT)(Gre,{variables:{accountId:d,username:O,dashboardId:F},fetchPolicy:"network-only",skip:I||!Boolean(F)||!d||!O,onCompleted:async e=>{D||(await P(e.getQuicksightDashboard),y())}}),{loading:M,error:V}=(0,x.IT)(zre,{variables:{accountId:d},fetchPolicy:"network-only",skip:I||Boolean(F)||U||!d,onCompleted:async e=>{D||(await P(e.getQuicksightPreloaderDashboard),y())}});(0,g.useLayoutEffect)(()=>{(async()=>{if(I&&!o)try{k(!0),N(void 0),await async function(e){let{retries:n=2,delay:t=500,backoff:a=!1,shouldRetry:i=()=>!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=0,r=t;for(;l<=n;)try{return await e(l)}catch(e){if(!(l<n&&i(e,l)))throw e;await new Promise(e=>setTimeout(e,r)),a&&(r*=2),l++}throw new Error("Retry failed unexpectedly.")}(async e=>{if(Boolean(e)){const{data:e}=await B({variables:{accountId:d,username:O,dashboardId:i}});e?.getQuicksightDashboard&&await P(e?.getQuicksightDashboard)}return A.navigateToDashboard(i,{parameters:Object.keys(h).map(e=>({Name:e,Values:[h[e].toString()]}))})},{retries:2,delay:500,backoff:!0}),t&&(setTimeout(()=>{A?.setTheme(qre)},200),setTimeout(()=>{A?.setTheme(qre)},2e3),setTimeout(()=>{A?.setTheme(qre)},5e3)),k(!1),y()}catch(e){E.Cp(e),console.error(e),k(!1),N(e)}})()},[i,t]);const G=b||C||U||M,z=G&&!I,W=S||$||V,q=0!==u.x||0!==u.y;return(0,g.useEffect)(()=>{const e=(0,hn.throttle)(()=>{0===window.scrollY&&q&&y()},200);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[y,q]),(0,g.useEffect)(()=>{j(!1)},[d]),(0,fe.jsxs)(Kre.Provider,{value:{isLoading:G,isLoadingForTheFirstTime:z,loadingError:W,wasInitialEmbeddingSuccessful:I,dashboardAnchorElementRef:c,handleDashboardAnchoring:y,dashboardParameters:h,setDashboardParameters:T,dashboardInstance:A},children:[n,(0,fe.jsx)(Hre,{canShow:!r&&!G&&!o&&q,anchorDimensions:u,id:Wre,ref:s},`DashboardContainer__${d}`)]})},eoe=e=>{let{isFullScreen:n}=e;const{dashboardAnchorElementRef:t,handleDashboardAnchoring:a}=Qre();return(0,g.useLayoutEffect)(()=>{let e=null;return t.current&&(e=new ResizeObserver(()=>{a()}),e.observe(t.current)),()=>{e?.disconnect()}},[]),(0,g.useEffect)(()=>()=>{a()},[]),(0,g.useLayoutEffect)(()=>{n&&setTimeout(()=>{a()},500)},[n,a]),(0,fe.jsx)("div",{style:{width:"100%"},ref:t,"data-is-full-screen":n?"true":"false"})},noe=(0,f.styled)("div")`
  width: calc(100% - 274px);
  min-height: 50vh;
  gap: 24px;
`,toe=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow-x: auto;
`,aoe=(0,f.styled)("div")`
  height: 80vh;
  margin-left: 24px;
  overflow: scroll;
`,ioe=(0,f.styled)("div")`
  padding-top: 24px;
  width: 100%;
`,loe=(0,f.styled)("div")`
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
`,roe=(0,f.styled)("img")`
  max-width: 100%;
`,ooe=(0,f.styled)(f.Grid)`
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
`,soe=(0,f.styled)(f.LinearProgress)`
  position: absolute;
  top: 76px;
  left: 0;
  width: 100%;
  transform: translateY(-150%);
`,doe="https://dashboard-thumbnails-dev.s3.eu-west-1.amazonaws.com/clean-score.png",coe=e=>{let{expandAction:n,closeAction:t,withCrossCloseIcon:a,shouldHideResetButton:i,printAction:l,printing:r}=e;const{dashboardInstance:o}=Qre(),{dashboardId:s,resetFilters:d,isAnyFilterActive:c,isExportingPdf:u,downloadPdf:p}=iee(),m=!!s,y=(0,g.useCallback)(()=>{m?d():o?.reset()},[o,m,d]),h=(0,g.useCallback)(()=>{l?l():m?p():o?.initiatePrint()},[o,m,p,l]);return(0,fe.jsxs)(ooe,{wrap:"wrap",container:!0,size:12,children:[!i&&(0,fe.jsx)(f.IconButton,{variant:"contained",color:"secondary",disabled:m&&!c,onClick:()=>y(),title:"Reset filters",children:m?(0,fe.jsx)(f.Icons.FilterAltOff,{}):(0,fe.jsx)(f.Icons.LoopRounded,{})}),(0,fe.jsx)(f.IconButton,{variant:"contained",onClick:()=>h(),title:"Print",disabled:u||r,children:(0,fe.jsx)(f.Icons.PrintRounded,{})}),n&&(0,fe.jsx)(f.IconButton,{variant:"contained",onClick:()=>n(),title:"Full screen",children:(0,fe.jsx)(f.Icons.Fullscreen,{})}),t&&(0,fe.jsx)(f.IconButton,{variant:"contained",onClick:()=>t(),title:"Exit full screen",children:a?(0,fe.jsx)(f.Icons.Close,{}):(0,fe.jsx)(f.Icons.FullscreenExit,{})})]})};function uoe(){const[e,n,t]=h9(),[a,i]=(0,g.useState)(!1),{isLoadingForTheFirstTime:l,loadingError:r}=Qre(),{id:o,name:s}=(0,m.g)(),d="CleanScore"===s,{printReportingOverview:c,printingReportingOverview:u}=function(){const{showNotification:e}=tn(),[n,t]=(0,g.useState)(!1);return{printReportingOverview:()=>{e("Generating PDF, please wait until it's ready","success"),t(!0),J9({name:"Reporting Overview",onSuccess:()=>t(!1),onError:n=>{e(`Error downloading PDF: ${n.message}`,"danger"),t(!1)}})},printingReportingOverview:n}}(),p=e?.getSubscribedDashboards.length>0,y=(0,g.useMemo)(()=>o?e?.getSubscribedDashboards.find(e=>e.id===o):null,[e,o]),h=y?.provider===gn.qT.Custom;return(0,fe.jsx)(cee,{dashboard:h?y:void 0,children:(0,fe.jsx)(f.Page,{loading:n,error:t,title:{content:s?`Your ${s} report`:"Overview",crumbs:[{label:"Reporting",to:"../../reporting"},{label:s||"Overview"}],actionButton:(0,fe.jsx)(coe,{shouldHideResetButton:!o,printing:u,printAction:o?void 0:c,expandAction:()=>{i(!a)}}),wrapperId:Jre},children:(0,fe.jsxs)(toe,{children:[p&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(b9,{dashboards:e.getSubscribedDashboards}),o&&(0,fe.jsx)(noe,{children:d?(0,fe.jsx)(aoe,{children:(0,fe.jsx)(roe,{src:doe})}):(0,fe.jsxs)(fe.Fragment,{children:[!h&&l&&!r&&(0,fe.jsx)(f.PreLoader,{themes:[f.LoadingTextTheme.REPORTING,f.LoadingTextTheme.GENERAL]}),!h&&!l&&r&&(0,fe.jsx)(f.LoadFailed,{title:"Failed to load dashboard",retry:()=>location.reload(),error:r}),!h&&!a&&!l&&!r&&(0,fe.jsx)(eoe,{}),h&&y&&!a&&(0,fe.jsx)(Ure,{dashboard:y})]})})]}),n?(0,fe.jsx)(f.Loader,{}):!o&&!d&&(0,fe.jsx)(Wee,{}),(0,fe.jsxs)(f.Dialog,{open:a,fullScreen:!0,children:[(0,fe.jsx)(coe,{shouldHideResetButton:!o,printing:u,printAction:o?void 0:c,closeAction:()=>{i(e=>!e)}}),n&&(0,fe.jsx)(soe,{}),(0,fe.jsxs)(loe,{children:[o&&!d&&a&&!l&&!h&&(0,fe.jsx)(eoe,{isFullScreen:!0}),o&&!d&&a&&!l&&h&&(0,fe.jsx)(ioe,{children:(0,fe.jsx)(Ure,{dashboard:y})}),d&&(0,fe.jsx)(aoe,{children:(0,fe.jsx)(roe,{src:doe})}),!o&&!d&&(0,fe.jsx)(Wee,{})]})]})]})})})}const poe=(0,le.default)(ie.fv)`
  height: 100%;
  overflow: hidden;
`,moe=(0,le.default)(ie.fv)`
  position: relative;
`,foe=(0,le.default)(ie.$n)`
  white-space: nowrap;
  margin-right: ${e=>e.mr};
`,yoe=le.default.div`
  height: 80vh;
  overflow: scroll;
`,goe=le.default.img`
  max-width: 100%;
`,hoe=()=>{const{name:e}=(0,m.g)(),{isLoadingForTheFirstTime:n,loadingError:t,dashboardInstance:a}=Qre(),i="CleanScore"===e;return(0,fe.jsxs)(poe,{container:!0,children:[(0,fe.jsx)(xV,{name:"ReportingReport",title:`Report - ${e}`,breadcrumbs:[{title:"Reporting",to:"/reporting"},{title:"Report"}],icon:"chart-line",iconColor:"quaternary",children:(0,fe.jsxs)(ie.fI,{container:!0,distribution:"between",children:[(0,fe.jsx)(foe,{name:"Reset_filters",inline:!0,mr:"20px",color:"tertiary",onClick:()=>{a&&a.reset()},children:"Reset Filters"}),(0,fe.jsx)(foe,{name:"ReportingReport__Button-back",inline:!0,color:"info",component:"routerLink",to:"/reporting",children:"Back to Reports"})]})}),(0,fe.jsx)(moe,{item:!0,children:i?(0,fe.jsx)(yoe,{children:(0,fe.jsx)(goe,{src:"https://dashboard-thumbnails-dev.s3.eu-west-1.amazonaws.com/clean-score.png"})}):(0,fe.jsxs)(fe.Fragment,{children:[n&&!t&&(0,fe.jsx)(Rc,{name:"ReportingReport__Loading"}),!n&&!t&&(0,fe.jsx)(eoe,{}),!n&&t&&(0,fe.jsx)(fe.Fragment,{children:t.graphQLErrors&&"Forbidden"===t.graphQLErrors[0]?.message?(0,fe.jsx)(Ec,{name:"ReportingReports__error",error:t}):(0,fe.jsx)($c,{name:"ReportingReports__error",retry:()=>location.reload(),error:t})})]})})]})},xoe={normal:[{name:"North West (England)",value:515479.6},{name:"Northern Ireland",value:0},{name:"North East (England)",value:300131.9},{name:"Yorkshire and The Humber",value:572430.8},{name:"East Midlands (England)",value:453666},{name:"West Midlands (England)",value:513326.3},{name:"East (England)",value:429710.4},{name:"London",value:26379},{name:"South East (England)",value:13014},{name:"South West (England)",value:383869.1},{name:"Wales",value:196499.33},{name:"Scotland",value:1176}],ha:[{name:"North West (England)",value:51.55},{name:"Northern Ireland",value:0},{name:"North East (England)",value:30.01},{name:"Yorkshire and The Humber",value:57.24},{name:"East Midlands (England)",value:45.37},{name:"West Midlands (England)",value:51.33},{name:"East (England)",value:42.97},{name:"London",value:2.64},{name:"South East (England)",value:1.3},{name:"South West (England)",value:38.39},{name:"Wales",value:19.65},{name:"Scotland",value:.12}]},Toe=JSON.parse('{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-0.791891321622779,54.5582385423252],[-0.898180943856563,54.5719568624355],[-1.01639413304144,54.5982483853578],[-1.05959649237511,54.6180564196669],[-1.15462417114531,54.6275034986944],[-1.19849239250194,54.6795835308633],[-1.3088508421947,54.780967883289],[-1.31262837676667,54.8117796931329],[-1.36164017162446,54.8982975142585],[-1.35742903230474,54.9663909967755],[-1.41690452560967,55.014391905422],[-1.49457030005263,55.1023998592376],[-1.52493482293934,55.1605144052681],[-1.49919222615189,55.1856363265395],[-1.55436756973493,55.247300683574],[-1.56995760796806,55.291834854682],[-1.54939419416243,55.3217234433974],[-1.61142133180323,55.385168006816],[-1.57884615580075,55.4088976102969],[-1.59548925868755,55.4912718333147],[-1.626519839178,55.5576756012459],[-1.69201921769641,55.6061584391172],[-1.813186225269,55.6337046372378],[-1.88409332954301,55.6944591247616],[-1.96077232432745,55.7332662484133],[-2.03456758533587,55.811183932416],[-2.0861230942702,55.793045271488],[-2.0856391490368,55.7620403330448],[-2.14429584165104,55.7392700694797],[-2.16723105928948,55.7060351656943],[-2.24834586160377,55.6521497554078],[-2.33600510128162,55.6324814828842],[-2.28881057092811,55.5803072667808],[-2.2403065059112,55.5556271692665],[-2.22884551551699,55.509518780902],[-2.18807797549864,55.4621152753329],[-2.34494682160794,55.399313431888],[-2.33752995734802,55.3671909676834],[-2.37891180668306,55.3491694380124],[-2.47539346393945,55.3547399208929],[-2.62665606673464,55.262220938519],[-2.63141420722149,55.2236980857955],[-2.68978972314827,55.1889838768114],[-2.65693941785208,55.1361318311632],[-2.59890282488408,55.1245757167589],[-2.56213639511458,55.0834621700379],[-2.50257438882916,55.0907586762788],[-2.48304985288842,55.0400190767258],[-2.57285163622922,55.0163983334404],[-2.57641404338101,54.8967171106932],[-2.60543022085515,54.8843823124884],[-2.5583066678318,54.8167246166541],[-2.4953568980919,54.8103421048662],[-2.42275637725897,54.8428302557336],[-2.3084868101346,54.7735427980108],[-2.35574349125271,54.6976521794555],[-2.28797868797798,54.6504801041079],[-2.32493776754246,54.6316502370591],[-2.30451453732035,54.5961978460776],[-2.17239803091537,54.5324441161867],[-2.17021302340634,54.4581987855746],[-2.04472952149334,54.4751862741994],[-1.94254323627035,54.4533953549934],[-1.85912998438283,54.4818579033168],[-1.79297648414091,54.4844924296004],[-1.77969652861129,54.5318729948094],[-1.72031664601336,54.5423479518656],[-1.61148472706396,54.5200007878436],[-1.54582496831421,54.4712759743885],[-1.41788675584371,54.4770861945626],[-1.34390824026251,54.4641506390909],[-1.23060453308383,54.5118815664864],[-0.952589374508347,54.4880153432179],[-0.880825023321814,54.4970468612461],[-0.791891321622779,54.5582385423252]]]},"properties":{"ITL125CD":"TLC","ITL125NM":"North East (England)","BNG_E":417317,"BNG_N":575393,"LAT":55.07271,"LONG":-1.73036,"GlobalID":"33c985b2-6025-4a45-822b-dd94a559046b"},"id":1},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-2.17021302340634,54.4581987855746],[-2.17239803091537,54.5324441161867],[-2.30451453732035,54.5961978460776],[-2.32493776754246,54.6316502370591],[-2.28797868797798,54.6504801041079],[-2.35574349125271,54.6976521794555],[-2.3084868101346,54.7735427980108],[-2.42275637725897,54.8428302557336],[-2.4953568980919,54.8103421048662],[-2.5583066678318,54.8167246166541],[-2.60543022085515,54.8843823124884],[-2.57641404338101,54.8967171106932],[-2.57285163622922,55.0163983334404],[-2.48304985288842,55.0400190767258],[-2.50257438882916,55.0907586762788],[-2.56213639511458,55.0834621700379],[-2.59890282488408,55.1245757167589],[-2.65693941785208,55.1361318311632],[-2.68978972314827,55.1889838768114],[-2.7848482544576,55.1417914408718],[-2.82550257520544,55.1383140722935],[-2.89704669119711,55.0778720526317],[-3.0258749316412,55.0364588169844],[-3.05639300834839,54.9866593513123],[-3.1040230149421,54.9713739064015],[-3.13796409463066,54.9274627324061],[-3.20439217458803,54.9538753136407],[-3.28330649706739,54.9421233213207],[-3.39886993497874,54.8685058326993],[-3.4378546668328,54.8016272630037],[-3.43331644392299,54.7662264678999],[-3.50712873863077,54.7176216618908],[-3.57174335475492,54.6508463234165],[-3.59159259148016,54.5521967526089],[-3.63766913389805,54.5131323966065],[-3.47650486491259,54.3864080548977],[-3.43528528972723,54.3433826122152],[-3.39421568711067,54.2544402207594],[-3.31430579829842,54.1885623821146],[-3.25398110018546,54.1916383628285],[-3.23930826998406,54.1041391370387],[-3.1647913866967,54.0832242589777],[-3.1046483830116,54.1200044185462],[-3.06162191164685,54.18082055095],[-2.99953197208596,54.1532614639095],[-2.9253595496205,54.1502924529874],[-2.88590270016895,54.1975648250651],[-2.83721686204006,54.1741724007201],[-2.79354013238121,54.1285879094222],[-2.82619662102057,54.0869000416773],[-2.88947834494135,54.0664521552798],[-2.91241947640711,54.0337623745692],[-2.90022783303898,53.9920330973712],[-2.86193231841356,53.9646091832096],[-3.0501496964756,53.9192141231351],[-3.05502289109455,53.7619850634633],[-3.00082176254005,53.736711116856],[-2.92913475068414,53.7314577856745],[-3.00236758960063,53.6769572879199],[-3.10051940107972,53.5693935592256],[-3.04145607648159,53.4656287475057],[-2.96929985749059,53.3758042875494],[-2.8781584032105,53.3341988138049],[-2.75247772983128,53.3147354613668],[-2.78896613468561,53.2954509196755],[-2.87838965649441,53.2907828201086],[-2.92857185482182,53.3082489283384],[-2.9953485042943,53.3680057174514],[-3.04032032385677,53.4428974501825],[-3.17760588455519,53.3997272778065],[-3.19057115642075,53.3682434485254],[-3.12234023235646,53.3225416731634],[-3.101136143917,53.2656903057713],[-3.09511108874127,53.261882089401],[-3.09133063807348,53.2594880602806],[-3.09017503265769,53.2588675969056],[-3.02546229105649,53.2483150711708],[-2.949510091719,53.2112797159544],[-2.92783850918185,53.1714114107239],[-2.9950230554338,53.154023960488],[-2.86147506310468,53.0606604001837],[-2.83599558996295,52.997150146825],[-2.7268406065337,52.9832729462979],[-2.63265093996284,52.9966707872024],[-2.53189371702813,52.9472629931384],[-2.38027990140092,52.9987866474815],[-2.38129694046648,53.0525807781467],[-2.31805569446669,53.0814075176033],[-2.24643157183402,53.090307630252],[-2.15554543171792,53.1596534951874],[-2.07021816358765,53.171653125585],[-1.98737982955689,53.2136037474881],[-2.0094248420728,53.2606147236468],[-2.01364994432454,53.3324201566667],[-1.97158630305122,53.5043419938961],[-1.90962083195551,53.5383909865468],[-2.00947078713106,53.6167795111392],[-2.05124217318775,53.6836917586463],[-2.1180850077117,53.6712452241623],[-2.17329132180093,53.7230096469322],[-2.13083482347585,53.7520705652718],[-2.12835851818789,53.7990313038972],[-2.04692463706631,53.8295102819506],[-2.08991499194819,53.8681819729435],[-2.11309296486617,53.915439302302],[-2.18227343100205,53.9354059641897],[-2.23039881478544,53.9815667896336],[-2.29451918094864,53.9744631577094],[-2.35228494459096,54.0105532697488],[-2.37407297715162,54.0490890614635],[-2.4643555540214,54.0430463312627],[-2.46434741774283,54.0752794330057],[-2.56474222741882,54.1268638437646],[-2.46086273483392,54.2267161360628],[-2.32564664212512,54.2414383484097],[-2.30984140863991,54.3243149783909],[-2.36771223910638,54.3560706152439],[-2.2974404079712,54.3768987653342],[-2.30814588994671,54.4197937724531],[-2.24953922329874,54.4519434362394],[-2.17021302340634,54.4581987855746]]]},"properties":{"ITL125CD":"TLD","ITL125NM":"North West (England)","BNG_E":349989,"BNG_N":463422,"LAT":54.06431,"LONG":-2.7656,"GlobalID":"0eff8897-1a46-48cc-80be-503c33840ef3"},"id":2},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[0.0149702812770375,53.5279599585584],[-0.204422800569946,53.63790004551],[-0.289364002000774,53.7131988210608],[-0.273243784773328,53.7409107089215],[-0.103546755829809,53.6353418765989],[-0.056993793697097,53.6293838088772],[0.0344835459387662,53.6492119952179],[0.141776539465768,53.621985629392],[0.116999388408663,53.6622591249029],[-0.0442714974922277,53.7953832122577],[-0.153965034285028,53.8993206911935],[-0.215056738521342,54.015834896736],[-0.208530564194227,54.0638167130594],[-0.0968016173443425,54.1291365302012],[-0.264452670666596,54.1765101399499],[-0.275394771128287,54.2176691265164],[-0.363890554746246,54.2450950743591],[-0.458807885867095,54.3825610618979],[-0.531109728814527,54.4255089297409],[-0.526459901633784,54.4495194683173],[-0.593332412332016,54.4878372258877],[-0.67027867888638,54.5007549178771],[-0.71218151222954,54.5330922626202],[-0.791891321622779,54.5582385423252],[-0.880825023321814,54.4970468612461],[-0.952589374508347,54.4880153432179],[-1.23060453308383,54.5118815664864],[-1.34390824026251,54.4641506390909],[-1.41788675584371,54.4770861945626],[-1.54582496831421,54.4712759743885],[-1.61148472706396,54.5200007878436],[-1.72031664601336,54.5423479518656],[-1.77969652861129,54.5318729948094],[-1.79297648414091,54.4844924296004],[-1.85912998438283,54.4818579033168],[-1.94254323627035,54.4533953549934],[-2.04472952149334,54.4751862741994],[-2.17021302340634,54.4581987855746],[-2.24953922329874,54.4519434362394],[-2.30814588994671,54.4197937724531],[-2.2974404079712,54.3768987653342],[-2.36771223910638,54.3560706152439],[-2.30984140863991,54.3243149783909],[-2.32564664212512,54.2414383484097],[-2.46086273483392,54.2267161360628],[-2.56474222741882,54.1268638437646],[-2.46434741774283,54.0752794330057],[-2.4643555540214,54.0430463312627],[-2.37407297715162,54.0490890614635],[-2.35228494459096,54.0105532697488],[-2.29451918094864,53.9744631577094],[-2.23039881478544,53.9815667896336],[-2.18227343100205,53.9354059641897],[-2.11309296486617,53.915439302302],[-2.08991499194819,53.8681819729435],[-2.04692463706631,53.8295102819506],[-2.12835851818789,53.7990313038972],[-2.13083482347585,53.7520705652718],[-2.17329132180093,53.7230096469322],[-2.1180850077117,53.6712452241623],[-2.05124217318775,53.6836917586463],[-2.00947078713106,53.6167795111392],[-1.90962083195551,53.5383909865468],[-1.87349262570415,53.5404296508189],[-1.79603746177152,53.5026410934739],[-1.74528551665239,53.4621249958085],[-1.74657253202956,53.426017250077],[-1.65461081618027,53.3929530702989],[-1.66254430742755,53.3660727649314],[-1.61230306160512,53.3432186697883],[-1.59900458569526,53.3113277872523],[-1.53714140318818,53.3047033893617],[-1.40874684512064,53.3419650586082],[-1.38683300477939,53.3176505913393],[-1.2438683827737,53.301569792195],[-1.13871810210376,53.3413828117799],[-1.14603291441165,53.3690411457852],[-1.08043943279743,53.4268678599403],[-0.995669798894032,53.4369266843309],[-0.985978085087804,53.471673371995],[-0.935564625288195,53.5025165293909],[-0.9004706270826,53.4751558672792],[-0.797483349537156,53.4550644469113],[-0.739591684118626,53.5199359490779],[-0.624491104429227,53.5128392148578],[-0.629752674978015,53.4582189924615],[-0.551788631166795,53.4595199872907],[-0.486630004727343,53.4804701677829],[-0.487638685249183,53.5052454943431],[-0.405074524830151,53.5176169033637],[-0.41696297298743,53.5632146898956],[-0.335938821094677,53.5586265922375],[-0.300930360808405,53.6163880602418],[-0.191692269491797,53.5684652895759],[-0.219882527217496,53.5326064916734],[-0.210604976147154,53.4862884751414],[-0.153680016923717,53.4656777580012],[-0.0752620038904992,53.4893357399272],[-0.0652891253341398,53.5185880312365],[0.0149702812770375,53.5279599585584]]]},"properties":{"ITL125CD":"TLE","ITL125NM":"Yorkshire and The Humber","BNG_E":452737,"BNG_N":445838,"LAT":53.90604,"LONG":-1.19878,"GlobalID":"d83d3af4-9631-4736-bb2c-3473ddd636fa"},"id":3},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[0.0149702812770375,53.5279599585584],[-0.0652891253341398,53.5185880312365],[-0.0752620038904992,53.4893357399272],[-0.153680016923717,53.4656777580012],[-0.210604976147154,53.4862884751414],[-0.219882527217496,53.5326064916734],[-0.191692269491797,53.5684652895759],[-0.300930360808405,53.6163880602418],[-0.335938821094677,53.5586265922375],[-0.41696297298743,53.5632146898956],[-0.405074524830151,53.5176169033637],[-0.487638685249183,53.5052454943431],[-0.486630004727343,53.4804701677829],[-0.551788631166795,53.4595199872907],[-0.629752674978015,53.4582189924615],[-0.624491104429227,53.5128392148578],[-0.739591684118626,53.5199359490779],[-0.797483349537156,53.4550644469113],[-0.9004706270826,53.4751558672792],[-0.935564625288195,53.5025165293909],[-0.985978085087804,53.471673371995],[-0.995669798894032,53.4369266843309],[-1.08043943279743,53.4268678599403],[-1.14603291441165,53.3690411457852],[-1.13871810210376,53.3413828117799],[-1.2438683827737,53.301569792195],[-1.38683300477939,53.3176505913393],[-1.40874684512064,53.3419650586082],[-1.53714140318818,53.3047033893617],[-1.59900458569526,53.3113277872523],[-1.61230306160512,53.3432186697883],[-1.66254430742755,53.3660727649314],[-1.65461081618027,53.3929530702989],[-1.74657253202956,53.426017250077],[-1.74528551665239,53.4621249958085],[-1.79603746177152,53.5026410934739],[-1.87349262570415,53.5404296508189],[-1.90962083195551,53.5383909865468],[-1.97158630305122,53.5043419938961],[-2.01364994432454,53.3324201566667],[-2.0094248420728,53.2606147236468],[-1.98737982955689,53.2136037474881],[-1.87404306112304,53.1953837010505],[-1.81258693659541,53.1543650420164],[-1.82141926984971,53.1357911781773],[-1.75977677847912,53.0387143509213],[-1.76256960898942,52.9996692928129],[-1.82856056786268,52.9751558823607],[-1.85657875821379,52.9233447106857],[-1.81171126944986,52.8805966212323],[-1.77711673567319,52.8837929782468],[-1.62676534855207,52.8544579282665],[-1.58538036585949,52.8315965582062],[-1.61112950153712,52.7814035608609],[-1.66653674723611,52.7847230322657],[-1.70375048971327,52.7299552227781],[-1.6550635927941,52.6987757766166],[-1.59081094061654,52.698024609287],[-1.55280663728848,52.6684622521305],[-1.56069803676403,52.5961193283491],[-1.52244185311375,52.5703281858256],[-1.30714044411013,52.4942446712166],[-1.24074319604153,52.4401350777721],[-1.17212636579044,52.3613009289764],[-1.26228669833728,52.3341934742487],[-1.20923383158981,52.3152040796742],[-1.21585144103408,52.2639110515478],[-1.26685236231198,52.2352486391455],[-1.25498199738882,52.1978310710958],[-1.3318971346503,52.168485056197],[-1.2480850615427,52.0971607919138],[-1.31292004347286,52.0514526634399],[-1.27816401885651,52.0142726693672],[-1.28353449972237,51.9795993829644],[-1.19763689128177,51.9772816472427],[-1.13432869833779,51.997296387881],[-1.12198746604179,52.0451472428701],[-1.04206410377149,52.0739350801836],[-0.967805300661276,52.0709109281604],[-0.908376568151801,52.0222399672463],[-0.831313005313099,52.0720063385771],[-0.880758452631504,52.1262921523493],[-0.832040075305798,52.1312603534096],[-0.701671512157467,52.1933084347047],[-0.668135637658982,52.1950341117758],[-0.63733162156624,52.2273176317195],[-0.653655470981071,52.2682893071709],[-0.541969414284237,52.2899424469085],[-0.466656737619639,52.3389275764],[-0.495946267815481,52.3795155302795],[-0.441509864468212,52.3849964344035],[-0.362408041008102,52.4335312780284],[-0.341590492473876,52.4669426273503],[-0.354345203263394,52.5064950723187],[-0.413602640818525,52.5256796137016],[-0.415381402678347,52.5787426397479],[-0.478814868225147,52.573645147065],[-0.452832300952799,52.6542749156432],[-0.405694618313302,52.6480559479697],[-0.334985138827247,52.6748706355815],[-0.260628419607621,52.6514134409202],[-0.206037616936727,52.6680733124595],[-0.14106199482318,52.6515074247825],[-0.102195958212229,52.6722061953853],[-0.0312706832650579,52.6615327439854],[0.048848482208305,52.6817708046624],[0.0441494759872833,52.7143823496307],[0.142076106979268,52.7399180828341],[0.186323197484379,52.7353486313374],[0.272228339358099,52.7728129925168],[0.267002148567531,52.8157118965235],[0.215079923686474,52.8284803929697],[0.176331510149807,52.874116224234],[0.0883820805446973,52.8951252729192],[0.0516750687059226,52.9171952464905],[0.151425050200805,53.0081071211682],[0.239196633060485,53.0459464174134],[0.348210789726189,53.1091843379926],[0.355627376907466,53.1920584284764],[0.322179964590588,53.2664710597843],[0.187804612702328,53.4377082520006],[0.168164852774028,53.4767973553097],[0.0849958704864657,53.496967055967],[0.0149702812770375,53.5279599585584]]]},"properties":{"ITL125CD":"TLF","ITL125NM":"East Midlands (England)","BNG_E":477748,"BNG_N":322635,"LAT":52.79571,"LONG":-0.84837,"GlobalID":"1ceaa16b-08a7-40ae-b749-c0376b3f68b2"},"id":4},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-1.3318971346503,52.168485056197],[-1.25498199738882,52.1978310710958],[-1.26685236231198,52.2352486391455],[-1.21585144103408,52.2639110515478],[-1.20923383158981,52.3152040796742],[-1.26228669833728,52.3341934742487],[-1.17212636579044,52.3613009289764],[-1.24074319604153,52.4401350777721],[-1.30714044411013,52.4942446712166],[-1.52244185311375,52.5703281858256],[-1.56069803676403,52.5961193283491],[-1.55280663728848,52.6684622521305],[-1.59081094061654,52.698024609287],[-1.6550635927941,52.6987757766166],[-1.70375048971327,52.7299552227781],[-1.66653674723611,52.7847230322657],[-1.61112950153712,52.7814035608609],[-1.58538036585949,52.8315965582062],[-1.62676534855207,52.8544579282665],[-1.77711673567319,52.8837929782468],[-1.81171126944986,52.8805966212323],[-1.85657875821379,52.9233447106857],[-1.82856056786268,52.9751558823607],[-1.76256960898942,52.9996692928129],[-1.75977677847912,53.0387143509213],[-1.82141926984971,53.1357911781773],[-1.81258693659541,53.1543650420164],[-1.87404306112304,53.1953837010505],[-1.98737982955689,53.2136037474881],[-2.07021816358765,53.171653125585],[-2.15554543171792,53.1596534951874],[-2.24643157183402,53.090307630252],[-2.31805569446669,53.0814075176033],[-2.38129694046648,53.0525807781467],[-2.38027990140092,52.9987866474815],[-2.53189371702813,52.9472629931384],[-2.63265093996284,52.9966707872024],[-2.7268406065337,52.9832729462979],[-2.72843937384749,52.9253018633927],[-2.79884789455756,52.8957587642381],[-2.84101496067848,52.9426237150063],[-2.9288886576968,52.9386788302752],[-2.98202234589558,52.9591982546682],[-3.03512347363092,52.9294624894448],[-3.09595322236249,52.9302818603715],[-3.16788753046969,52.8192666796899],[-3.15842528976348,52.793488103831],[-3.04779141568697,52.7726355742841],[-2.99199278312435,52.7437560385489],[-3.04704782420661,52.6912658409262],[-3.05112433418108,52.6473703199561],[-3.11741414899447,52.5857631475343],[-3.11149542440582,52.5413637648399],[-3.01684357415423,52.5751648644213],[-2.99421971300057,52.5524392755137],[-3.02920219998827,52.501268025898],[-3.11101713479608,52.498934828381],[-3.23555870572831,52.4425418770695],[-3.21954231380943,52.4212465662123],[-3.11060650812059,52.3771928586202],[-3.0008661068012,52.3217658048495],[-3.00577598466957,52.2642595027327],[-3.07303671037743,52.2358769206364],[-3.07209180392951,52.213087287645],[-3.13587330508285,52.1379083922528],[-3.10492212967307,52.1167418938091],[-3.1258949917356,52.0783106756457],[-3.0683134013526,51.9838948193478],[-2.97184633087118,51.9049816267882],[-2.87783522764085,51.9338143761337],[-2.76830730538435,51.880444841636],[-2.73884858634764,51.8366165103794],[-2.65040070567432,51.8261246889383],[-2.60121663304725,51.8562162644087],[-2.53162394037576,51.8607715469017],[-2.43927491603518,51.8973822861564],[-2.49491293332375,51.9810752068267],[-2.39289223171328,52.0129587700424],[-2.32470967818414,52.0035672783312],[-2.32656514420703,51.9758107384483],[-2.25135998124032,51.9665649342157],[-2.18508403441562,51.9905609788574],[-2.18045118695184,52.0422625534122],[-2.11219762720392,52.0153447349971],[-2.03835621126119,52.0046006235229],[-1.98413574037062,52.0358792744237],[-1.86344917989937,52.053417723062],[-1.7676920738422,52.1125783283983],[-1.66382433788403,52.0312666555567],[-1.66575430454863,51.9874888219864],[-1.61234247849955,51.9554034171782],[-1.52530903761447,51.9928568262056],[-1.48780444309778,52.0939574330421],[-1.42585527139589,52.1182494968197],[-1.38539981246728,52.0941455730689],[-1.3318971346503,52.168485056197]]]},"properties":{"ITL125CD":"TLG","ITL125NM":"West Midlands (England)","BNG_E":386293,"BNG_N":295477,"LAT":52.55697,"LONG":-2.2036,"GlobalID":"778f3e42-f79b-410d-a2d4-a8ecce2bfcfd"},"id":5},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[0.955316883466157,51.6131647784353],[0.874374641083865,51.614150861476],[0.83799748353139,51.5936189646791],[0.866370064397508,51.5589408418077],[0.955316883466157,51.6131647784353]]],[[[0.211576815311689,51.4900222752128],[0.340845314505118,51.4523277375829],[0.433979747212772,51.4614986163648],[0.447625001861972,51.5001580391275],[0.522193879480497,51.5159664821137],[0.54758298196772,51.5476889503497],[0.787770680963095,51.5218312602018],[0.848619668975376,51.5513920080604],[0.80424520359453,51.5893398744431],[0.926546958770398,51.6289482364597],[0.950057791342381,51.683496409888],[0.950572298872485,51.7308319634607],[0.890704052787805,51.7413360345106],[0.848178284675708,51.7157052282464],[0.769185517779274,51.7083592430127],[0.763141441063553,51.7386966987261],[0.852430417976529,51.7416123536087],[0.927476617217011,51.8075545546132],[0.982322645310723,51.8173587219362],[1.02976994835261,51.8003869160919],[1.04268242610963,51.769909603606],[1.12442069290619,51.7754509222182],[1.22496400253739,51.8140797034861],[1.24313871020205,51.8592180305604],[1.19901633333596,51.8847874870654],[1.25891137764335,51.9152815082974],[1.27686640373224,51.9447127043926],[1.36280407325483,51.9625430177576],[1.43095881925985,52.0058519092006],[1.47847779982907,52.0585317123558],[1.57917506486644,52.0867558911587],[1.62231803241683,52.1868984631442],[1.63038742895536,52.2684621108478],[1.67552678155121,52.3134187527658],[1.72771610649078,52.4000777986844],[1.73274227484442,52.4448612301528],[1.76357118981522,52.4816350668861],[1.73285379250645,52.5568485479782],[1.74308394536663,52.6205644485387],[1.69756952021577,52.7235391910612],[1.58671256096868,52.8016594826067],[1.41389396511274,52.8907039347454],[1.30717161426657,52.9307754952351],[1.13605060792138,52.9499754221525],[1.0444304986932,52.9673414353232],[0.903827536894482,52.9619968435296],[0.866611474241805,52.9790259337746],[0.534937821290634,52.9746560478121],[0.490019892682054,52.9478293370796],[0.432668536555114,52.8529890393306],[0.351922628534727,52.8094450848774],[0.267002148567531,52.8157118965235],[0.272228339358099,52.7728129925168],[0.186323197484379,52.7353486313374],[0.142076106979268,52.7399180828341],[0.0441494759872833,52.7143823496307],[0.048848482208305,52.6817708046624],[-0.0312706832650579,52.6615327439854],[-0.102195958212229,52.6722061953853],[-0.14106199482318,52.6515074247825],[-0.206037616936727,52.6680733124595],[-0.260628419607621,52.6514134409202],[-0.334985138827247,52.6748706355815],[-0.405694618313302,52.6480559479697],[-0.452832300952799,52.6542749156432],[-0.478814868225147,52.573645147065],[-0.415381402678347,52.5787426397479],[-0.413602640818525,52.5256796137016],[-0.354345203263394,52.5064950723187],[-0.341590492473876,52.4669426273503],[-0.362408041008102,52.4335312780284],[-0.441509864468212,52.3849964344035],[-0.495946267815481,52.3795155302795],[-0.466656737619639,52.3389275764],[-0.541969414284237,52.2899424469085],[-0.653655470981071,52.2682893071709],[-0.63733162156624,52.2273176317195],[-0.668135637658982,52.1950341117758],[-0.627446652788111,52.1815454683205],[-0.635451654776416,52.1392536208873],[-0.591810331121503,52.1106918880999],[-0.66897597717708,52.0487168407765],[-0.645680806107934,51.9722283113145],[-0.702156753865155,51.909119113469],[-0.583563578497735,51.8703238406752],[-0.560611753444012,51.8301117501207],[-0.581825667306615,51.8069054436194],[-0.709295276544129,51.8205395961038],[-0.669160530446024,51.7659344422225],[-0.550082820807204,51.7305750653227],[-0.539260817248429,51.6380393912766],[-0.500595886737316,51.5996898995638],[-0.39946517299048,51.6134074682185],[-0.316672244970353,51.6405355675681],[-0.191066699360921,51.6638967053238],[-0.163477125868523,51.6881208420383],[-0.0110655316635855,51.6808696803679],[-0.0122596870547121,51.6462286971895],[0.0626225817304307,51.6070398176063],[0.224087730411796,51.6317377623678],[0.264104230272526,51.6088770949816],[0.290289733913774,51.5642993932384],[0.211576815311689,51.4900222752128]]]]},"properties":{"ITL125CD":"TLH","ITL125NM":"East (England)","BNG_E":571245,"BNG_N":262605,"LAT":52.23502,"LONG":0.506332,"GlobalID":"9538fe66-2065-42af-aa8d-cc05002e5239"},"id":6},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[0.211576815311689,51.4900222752128],[0.290289733913774,51.5642993932384],[0.264104230272526,51.6088770949816],[0.224087730411796,51.6317377623678],[0.0626225817304307,51.6070398176063],[-0.0122596870547121,51.6462286971895],[-0.0110655316635855,51.6808696803679],[-0.163477125868523,51.6881208420383],[-0.191066699360921,51.6638967053238],[-0.316672244970353,51.6405355675681],[-0.39946517299048,51.6134074682185],[-0.500595886737316,51.5996898995638],[-0.476595819817008,51.5580311861359],[-0.483266374938188,51.5066408013912],[-0.510241120496709,51.467500348706],[-0.45646755928571,51.438106680605],[-0.359043730240249,51.4118811454518],[-0.307365443633207,51.3783835460082],[-0.260996427671818,51.3795939518848],[-0.21777747301199,51.3456313944137],[-0.163076717058335,51.3302642201145],[-0.124302262796713,51.2867903756192],[-0.0379200854497904,51.3387247442131],[0.00229471949257023,51.3291388504504],[0.0150093784679093,51.2917860700628],[0.136958108456318,51.3441746058011],[0.155875040956964,51.430876583241],[0.221044799984653,51.478617503161],[0.211576815311689,51.4900222752128]]]},"properties":{"ITL125CD":"TLI","ITL125NM":"London","BNG_E":529614,"BNG_N":178394,"LAT":51.48965,"LONG":-0.13448,"GlobalID":"106b3ef7-7bff-4e21-8341-f99683212df1"},"id":7},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-1.40115565054014,50.7272153610471],[-1.52379131514764,50.7062618251926],[-1.54894329761731,50.6644335300202],[-1.48518299364819,50.6669477975234],[-1.28552165138244,50.57759928666],[-1.18260622067861,50.5983951860798],[-1.16600493090572,50.644002265374],[-1.09805247534114,50.665226816547],[-1.10970780844137,50.7215633046281],[-1.21755528485512,50.7349656497475],[-1.30946692325857,50.7670054761092],[-1.40115565054014,50.7272153610471]]],[[[-1.04423118218365,50.8316944135723],[-1.07660783193164,50.8367971232421],[-1.08863268658145,50.7777370735639],[-1.03209702078451,50.7867846234214],[-1.04423118218365,50.8316944135723]]],[[[0.902019423826626,51.4164905093793],[0.744691897713629,51.446938796652],[0.731033222347362,51.4013736091197],[0.788106767537405,51.3733917881737],[0.897167768282596,51.3543359759935],[0.951024989787225,51.3734796277168],[0.902019423826626,51.4164905093793]]],[[[-0.500595886737316,51.5996898995638],[-0.539260817248429,51.6380393912766],[-0.550082820807204,51.7305750653227],[-0.669160530446024,51.7659344422225],[-0.709295276544129,51.8205395961038],[-0.581825667306615,51.8069054436194],[-0.560611753444012,51.8301117501207],[-0.583563578497735,51.8703238406752],[-0.702156753865155,51.909119113469],[-0.645680806107934,51.9722283113145],[-0.66897597717708,52.0487168407765],[-0.591810331121503,52.1106918880999],[-0.635451654776416,52.1392536208873],[-0.627446652788111,52.1815454683205],[-0.668135637658982,52.1950341117758],[-0.701671512157467,52.1933084347047],[-0.832040075305798,52.1312603534096],[-0.880758452631504,52.1262921523493],[-0.831313005313099,52.0720063385771],[-0.908376568151801,52.0222399672463],[-0.967805300661276,52.0709109281604],[-1.04206410377149,52.0739350801836],[-1.12198746604179,52.0451472428701],[-1.13432869833779,51.997296387881],[-1.19763689128177,51.9772816472427],[-1.28353449972237,51.9795993829644],[-1.27816401885651,52.0142726693672],[-1.31292004347286,52.0514526634399],[-1.2480850615427,52.0971607919138],[-1.3318971346503,52.168485056197],[-1.38539981246728,52.0941455730689],[-1.42585527139589,52.1182494968197],[-1.48780444309778,52.0939574330421],[-1.52530903761447,51.9928568262056],[-1.61234247849955,51.9554034171782],[-1.66575430454863,51.9874888219864],[-1.64552984349675,51.9222942568441],[-1.68686790516724,51.865499769979],[-1.68193160633868,51.8039930873526],[-1.71948863302901,51.783211828608],[-1.6870208353919,51.7398840237491],[-1.69059536080077,51.6054112343858],[-1.64768626504516,51.5719347094789],[-1.58240025292512,51.4942544255071],[-1.52402343880987,51.4474724287348],[-1.55559663765941,51.3955386540797],[-1.49537262165059,51.3696578986654],[-1.49822987932554,51.3293659541047],[-1.53356185391502,51.3162235803486],[-1.53603185288199,51.2485479818718],[-1.60759078945477,51.2527924070843],[-1.63362097701599,51.2175905587049],[-1.68969464697899,51.2148276707553],[-1.6263412733448,51.1173368735328],[-1.62888498210167,50.9990317656901],[-1.60292975190204,50.9785041796413],[-1.66165999760679,50.9452778925552],[-1.83581730052681,51.0094733419781],[-1.92787590068259,50.9976972353567],[-1.92084101012651,50.9614073112474],[-1.84855553218411,50.8898873570296],[-1.85094373356272,50.8587249577509],[-1.80247295729644,50.8429625299587],[-1.81214229625864,50.8067566681678],[-1.78794920841908,50.7665658737608],[-1.69187957994834,50.7372941957472],[-1.57604818098248,50.7166516769893],[-1.51378626707686,50.753230457766],[-1.34237081129794,50.7859307486969],[-1.30640856372924,50.8406796708424],[-1.13625801592775,50.7750348214876],[-1.11641588726261,50.7880080667879],[-1.15233380516287,50.8411291352156],[-1.02412894889485,50.826322559802],[-0.956186029832178,50.8396935408519],[-0.902039961498244,50.7727948555733],[-0.789194243134213,50.722375479603],[-0.716416006237349,50.7742500454352],[-0.538128372787456,50.8021963388375],[-0.388391469458141,50.8066887279008],[-0.272917302021477,50.8269606192727],[-0.0918783287492784,50.8117026378898],[0.0667733107989352,50.7824834522624],[0.123948852211865,50.7581148441573],[0.258222661568121,50.737650970381],[0.349963764592404,50.8098223697895],[0.42729989655128,50.8321261730249],[0.658637808389318,50.8699506781983],[0.788087914509276,50.9332862809526],[0.959860592482384,50.9126188584193],[0.964140643478175,50.9680805161416],[0.997348035727354,51.0250792561785],[1.07559834449459,51.0634836081353],[1.16546522259503,51.0733668649868],[1.37957862132471,51.1421788484779],[1.40106443053318,51.1651813893069],[1.40303442729352,51.2349840575312],[1.36760031676848,51.3133931462204],[1.43633136690188,51.3426241933446],[1.42492483282119,51.3937887726707],[1.28015673354218,51.3781952983324],[1.1021519589929,51.3724648279207],[0.997763933217489,51.3475622355384],[0.897630039101061,51.3444082927545],[0.764794268508334,51.3630820755324],[0.726436540736452,51.3990184313265],[0.6716996732238,51.3773532049329],[0.616297375930775,51.3779268560425],[0.610866385052462,51.417404290701],[0.635814795441336,51.4462226459689],[0.710285623311776,51.4348165241746],[0.703174915090527,51.4712712929666],[0.481491396074262,51.4871629927932],[0.406564619600801,51.4432964970138],[0.276519122502966,51.4535685006829],[0.221044799984653,51.478617503161],[0.155875040956964,51.430876583241],[0.136958108456318,51.3441746058011],[0.0150093784679093,51.2917860700628],[0.00229471949257023,51.3291388504504],[-0.0379200854497904,51.3387247442131],[-0.124302262796713,51.2867903756192],[-0.163076717058335,51.3302642201145],[-0.21777747301199,51.3456313944137],[-0.260996427671818,51.3795939518848],[-0.307365443633207,51.3783835460082],[-0.359043730240249,51.4118811454518],[-0.45646755928571,51.438106680605],[-0.510241120496709,51.467500348706],[-0.483266374938188,51.5066408013912],[-0.476595819817008,51.5580311861359],[-0.500595886737316,51.5996898995638]]]]},"properties":{"ITL125CD":"TLJ","ITL125NM":"South East (England)","BNG_E":470064,"BNG_N":172924,"LAT":51.45098,"LONG":-0.99309,"GlobalID":"047a2ec4-5248-4cf4-bd26-82e7affc102e"},"id":8},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-1.66575430454863,51.9874888219864],[-1.66382433788403,52.0312666555567],[-1.7676920738422,52.1125783283983],[-1.86344917989937,52.053417723062],[-1.98413574037062,52.0358792744237],[-2.03835621126119,52.0046006235229],[-2.11219762720392,52.0153447349971],[-2.18045118695184,52.0422625534122],[-2.18508403441562,51.9905609788574],[-2.25135998124032,51.9665649342157],[-2.32656514420703,51.9758107384483],[-2.32470967818414,52.0035672783312],[-2.39289223171328,52.0129587700424],[-2.49491293332375,51.9810752068267],[-2.43927491603518,51.8973822861564],[-2.53162394037576,51.8607715469017],[-2.60121663304725,51.8562162644087],[-2.65040070567432,51.8261246889383],[-2.68045213470349,51.7689294147768],[-2.68379147622247,51.7006275155784],[-2.66890807150658,51.6444487463034],[-2.6687900106744,51.6444175670051],[-2.65899196744982,51.6261538649165],[-2.65725547645622,51.6196703528005],[-2.65874827946541,51.6153910725494],[-2.60999005665618,51.6724091606476],[-2.55827028671273,51.6664201929963],[-2.5852071698116,51.6260118935904],[-2.66389522945569,51.5731525412049],[-2.67384501612315,51.5443988058629],[-2.7354325353046,51.4942913667495],[-2.79942435637146,51.4853858021707],[-2.91302295917806,51.3959849116756],[-2.95023859752553,51.3945056578746],[-3.01123616570036,51.3202919498599],[-3.02189668640386,51.2690266975803],[-3.00233165891691,51.226010615079],[-3.07637887941965,51.2013744825612],[-3.15482147932731,51.2086011484176],[-3.27584819130941,51.1797755022787],[-3.41164398996629,51.183863191301],[-3.44201426749691,51.2065061114039],[-3.55454928781029,51.2330952845833],[-3.62171408877056,51.2167743618655],[-3.7697535302731,51.2376665639481],[-3.95823254769538,51.2192154574896],[-4.08811792350737,51.2174541684383],[-4.20159568165928,51.2003275490687],[-4.22255989135025,51.1177960167932],[-4.21035810392336,51.0519360730821],[-4.25689982262869,51.0382284705341],[-4.30358542731271,50.9973453553117],[-4.37495421036809,50.9901035467705],[-4.42771993299643,51.0133330276088],[-4.52604956486267,51.0221885784511],[-4.5450072931772,50.9330400901018],[-4.56984576322975,50.9037021502053],[-4.5584999365786,50.7882580685442],[-4.62888689958319,50.7503850632162],[-4.68412104820778,50.6956755682151],[-4.75705161075224,50.672008241222],[-4.77043196086056,50.6223799598839],[-4.80003004826747,50.597163131432],[-4.88519880226634,50.5822878109695],[-4.97764037479962,50.54535901689],[-5.02422225891532,50.5386668102749],[-5.04246183545353,50.4441491795785],[-5.07468977721508,50.4169369688917],[-5.1473606618623,50.4031808216834],[-5.15386655699987,50.3461438459321],[-5.23404490586802,50.318403036169],[-5.24262899493606,50.2871605580773],[-5.34081757973173,50.2382510481762],[-5.39165282028383,50.2287110301733],[-5.43363286935838,50.1936716053821],[-5.49525370038061,50.218483252072],[-5.53868843800676,50.216206924246],[-5.6712359724266,50.162682378063],[-5.70982532928711,50.1274666629698],[-5.68903190325079,50.0885157977166],[-5.71697949558696,50.0686729823523],[-5.68289882552719,50.037905587891],[-5.55428256304666,50.0601222645866],[-5.52796933243259,50.1250849159249],[-5.31631260633159,50.0841455934866],[-5.25646626740159,50.0231854239882],[-5.23709469738624,49.9766107201884],[-5.19696383967157,49.9639429471095],[-5.16663255993957,50.0037349819917],[-5.10137981771245,50.0042070558271],[-5.06198662441044,50.0604293863355],[-5.10307701237792,50.0866683971677],[-5.09339101856256,50.1261700731163],[-5.04639839616252,50.1687604300563],[-4.99591306252559,50.1619936544852],[-4.95759464655832,50.202226636039],[-4.91909429561605,50.1961633243133],[-4.8629347859456,50.2359660786629],[-4.78096616157119,50.2374898975204],[-4.78119012187568,50.2901557057444],[-4.75647245112486,50.3311868688618],[-4.69156562205376,50.3468302739362],[-4.53901644433005,50.3237156781775],[-4.38697130300878,50.3656935914224],[-4.28270553294373,50.3568352199554],[-4.22034844245105,50.3260503744981],[-4.18148154490139,50.3771557214475],[-4.1258705200411,50.3569892527957],[-4.11899825525202,50.3193411675659],[-4.03867012135073,50.2929256642254],[-3.99320867773481,50.3068326535854],[-3.92245853527117,50.2969999685511],[-3.85808770705541,50.2607796926889],[-3.82309488792993,50.2172593989121],[-3.77331730784705,50.2240619358548],[-3.72120836451095,50.2028975838067],[-3.65900436911631,50.2363563826297],[-3.64617244970509,50.2830158351637],[-3.61038144806727,50.319242056441],[-3.51792808597184,50.3465052485505],[-3.49323036089794,50.4012701007382],[-3.54470197690165,50.4020991491434],[-3.55316895765202,50.449302878172],[-3.51480198381588,50.4816900252691],[-3.49745375480285,50.5383072811641],[-3.44367293738485,50.6015892906849],[-3.35904176136924,50.6090566421346],[-3.30609307434285,50.6294830066613],[-3.26183126617225,50.6718701175488],[-3.18476687391533,50.684945504526],[-3.09603403295296,50.6852230894165],[-3.01094133233363,50.7000238085488],[-2.92089930437522,50.7318231188605],[-2.79363775591863,50.7179641237133],[-2.65255110326318,50.6700254269659],[-2.47240168316337,50.584523901688],[-2.42336640411731,50.6358967211322],[-2.24218349868671,50.6163693241423],[-2.19751592820478,50.6226780367146],[-2.10349625132467,50.5973207425532],[-2.02634590356957,50.5890017812645],[-1.95133668915064,50.5945562590197],[-1.94082790755989,50.6406895896358],[-1.9711021926418,50.6694130112638],[-1.86518879585138,50.7174528351238],[-1.76682686149852,50.7161068873797],[-1.69187957994834,50.7372941957472],[-1.78794920841908,50.7665658737608],[-1.81214229625864,50.8067566681678],[-1.80247295729644,50.8429625299587],[-1.85094373356272,50.8587249577509],[-1.84855553218411,50.8898873570296],[-1.92084101012651,50.9614073112474],[-1.92787590068259,50.9976972353567],[-1.83581730052681,51.0094733419781],[-1.66165999760679,50.9452778925552],[-1.60292975190204,50.9785041796413],[-1.62888498210167,50.9990317656901],[-1.6263412733448,51.1173368735328],[-1.68969464697899,51.2148276707553],[-1.63362097701599,51.2175905587049],[-1.60759078945477,51.2527924070843],[-1.53603185288199,51.2485479818718],[-1.53356185391502,51.3162235803486],[-1.49822987932554,51.3293659541047],[-1.49537262165059,51.3696578986654],[-1.55559663765941,51.3955386540797],[-1.52402343880987,51.4474724287348],[-1.58240025292512,51.4942544255071],[-1.64768626504516,51.5719347094789],[-1.69059536080077,51.6054112343858],[-1.6870208353919,51.7398840237491],[-1.71948863302901,51.783211828608],[-1.68193160633868,51.8039930873526],[-1.68686790516724,51.865499769979],[-1.64552984349675,51.9222942568441],[-1.66575430454863,51.9874888219864]]]},"properties":{"ITL125CD":"TLK","ITL125NM":"South West (England)","BNG_E":333577,"BNG_N":128616,"LAT":51.05302,"LONG":-2.94905,"GlobalID":"c3c72dfa-dd09-4884-b212-6587c2757ea7"},"id":9},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-3.09017503265769,53.2588675969056],[-3.12177494453644,53.2484706882161],[-3.1933464090179,53.288980285055],[-3.30355096153455,53.3348726522715],[-3.32734489101776,53.356697279022],[-3.49023696774786,53.3250025742618],[-3.6095823605631,53.2904723406925],[-3.70756956057963,53.2938411938098],[-3.77505210893402,53.3282395843884],[-3.85101152212337,53.2961126550192],[-4.03102873997766,53.2374244359824],[-4.12254050657918,53.2371966595688],[-4.19941972268261,53.2099672597167],[-4.20811988704334,53.1872314917486],[-4.34654804111915,53.1045595362021],[-4.3534953340235,53.0334924148751],[-4.52886576395015,52.9374194901787],[-4.58032191299854,52.9359785154372],[-4.65005599146328,52.9060256401572],[-4.76759420810777,52.797586464316],[-4.644623055652,52.7997436612825],[-4.61127589018767,52.8244708795537],[-4.51480487042661,52.7929669764928],[-4.45706160763392,52.871139486661],[-4.31654481205767,52.9085188146797],[-4.22364269316436,52.9193065282645],[-4.1697524600374,52.9058338558527],[-4.11910313682173,52.8480675409748],[-4.1442023094245,52.8008955250637],[-4.06016091758353,52.7204946709919],[-4.12837192385126,52.6111683000604],[-4.05755647652972,52.5307147004556],[-4.05187380754881,52.4817273974756],[-4.09028526538313,52.3982321131635],[-4.14034181844144,52.322615666916],[-4.20749508262614,52.263672116946],[-4.32490781087039,52.2136508482331],[-4.37750288965228,52.2157864341602],[-4.51861821217753,52.1349963367386],[-4.64130368143714,52.1382582950505],[-4.73150798502387,52.1178941339316],[-4.75941942891069,52.0777580506804],[-4.83798154399858,52.0502984949434],[-4.84912079966488,52.0220828972212],[-4.97251988550628,51.9966946525704],[-4.99992968403784,52.0245325429189],[-5.07484734573979,52.0307612056157],[-5.08542811405377,51.9685514823617],[-5.19332493267861,51.9482826333822],[-5.30013702875879,51.9091087085765],[-5.28254490717664,51.8702190701384],[-5.21762981834464,51.8734479605505],[-5.12842590051533,51.8584571996473],[-5.1034937625494,51.7792088563013],[-5.16025408252089,51.7721306958591],[-5.21480565288077,51.7236865618533],[-5.0946890152052,51.7211427382765],[-5.05118326939394,51.693902058717],[-5.05932965267491,51.6205982514537],[-4.92630403656103,51.5961137733767],[-4.86080230678263,51.6471259261845],[-4.78107642494656,51.6349414740423],[-4.69347661544758,51.6719252176408],[-4.69791777661605,51.7111168599515],[-4.6611201196416,51.7316521891459],[-4.55918662978946,51.7419697469822],[-4.37967140720467,51.7273488500246],[-4.33562718965963,51.6861734212881],[-4.28309240376888,51.6676018189667],[-4.19663874386868,51.6837500913205],[-4.14561677345334,51.654808547862],[-4.16474485145329,51.6252103108218],[-4.23782621509286,51.630979145944],[-4.30920622894354,51.6096183824107],[-4.2913391985379,51.5630829763001],[-4.22737175174291,51.5422550855574],[-4.16188040531125,51.5433295452584],[-4.14352311336311,51.5689633971235],[-4.07414867869458,51.5621675412074],[-3.99954145027406,51.5787555133267],[-3.96131636767036,51.6116313588789],[-3.85110423407492,51.6184292886603],[-3.80264815364537,51.5818044080595],[-3.72173005789416,51.4820092591865],[-3.6416243632329,51.466709833445],[-3.5589612520361,51.4013263058974],[-3.40517518144139,51.3813443932825],[-3.28865659949269,51.3871552585437],[-3.16961189759061,51.4062283331254],[-3.1641183772287,51.4518408397825],[-3.1213109906155,51.490508775003],[-2.99535948097479,51.5363869278832],[-2.90504052688807,51.5324171849628],[-2.74844875395497,51.5801430828779],[-2.71039200015043,51.5836694640183],[-2.65794608894467,51.6221251079351],[-2.66890807150658,51.6444487463034],[-2.68379147622247,51.7006275155784],[-2.68045213470349,51.7689294147768],[-2.65040070567432,51.8261246889383],[-2.73884858634764,51.8366165103794],[-2.76830730538435,51.880444841636],[-2.87783522764085,51.9338143761337],[-2.97184633087118,51.9049816267882],[-3.0683134013526,51.9838948193478],[-3.1258949917356,52.0783106756457],[-3.10492212967307,52.1167418938091],[-3.13587330508285,52.1379083922528],[-3.07209180392951,52.213087287645],[-3.07303671037743,52.2358769206364],[-3.00577598466957,52.2642595027327],[-3.0008661068012,52.3217658048495],[-3.11060650812059,52.3771928586202],[-3.21954231380943,52.4212465662123],[-3.23555870572831,52.4425418770695],[-3.11101713479608,52.498934828381],[-3.02920219998827,52.501268025898],[-2.99421971300057,52.5524392755137],[-3.01684357415423,52.5751648644213],[-3.11149542440582,52.5413637648399],[-3.11741414899447,52.5857631475343],[-3.05112433418108,52.6473703199561],[-3.04704782420661,52.6912658409262],[-2.99199278312435,52.7437560385489],[-3.04779141568697,52.7726355742841],[-3.15842528976348,52.793488103831],[-3.16788753046969,52.8192666796899],[-3.09595322236249,52.9302818603715],[-3.03512347363092,52.9294624894448],[-2.98202234589558,52.9591982546682],[-2.9288886576968,52.9386788302752],[-2.84101496067848,52.9426237150063],[-2.79884789455756,52.8957587642381],[-2.72843937384749,52.9253018633927],[-2.7268406065337,52.9832729462979],[-2.83599558996295,52.997150146825],[-2.86147506310468,53.0606604001837],[-2.9950230554338,53.154023960488],[-2.92783850918185,53.1714114107239],[-2.949510091719,53.2112797159544],[-3.02546229105649,53.2483150711708],[-3.09017503265769,53.2588675969056]]],[[[-4.58367354821708,53.290184678637],[-4.49914962514113,53.2067450849194],[-4.50503080660914,53.1878874186144],[-4.41969908598104,53.1639730773067],[-4.35836917888885,53.1314536594533],[-4.2185537429484,53.185627885891],[-4.21443141010517,53.2051363280978],[-4.10054208511342,53.2547763456606],[-4.04274933974566,53.3112830115811],[-4.11897056790485,53.319235851929],[-4.19905863852834,53.2968277157071],[-4.26466032322636,53.3608023569255],[-4.29271747459422,53.4115942026001],[-4.42539823487589,53.4298722278014],[-4.57270334553612,53.4035799703439],[-4.55513130397222,53.3739198616756],[-4.58367354821708,53.290184678637]]]]},"properties":{"ITL125CD":"TLL","ITL125NM":"Wales","BNG_E":263397,"BNG_N":283889,"LAT":52.43587,"LONG":-4.01089,"GlobalID":"548e3f49-cca7-43ce-bb5e-ad71ff1253d1"},"id":10},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-5.21090169076064,55.7055598559491],[-5.25999792915359,55.7206549567886],[-5.36481326245821,55.6783151236743],[-5.39526813269949,55.611320856379],[-5.34908329510326,55.5709022085495],[-5.35002632481625,55.5137138467048],[-5.30304213441411,55.4602165740497],[-5.19644010432409,55.4338342188231],[-5.08318374827647,55.4554811107711],[-5.12521231510518,55.5241907691053],[-5.08318027493232,55.5521976836516],[-5.1536466318071,55.5784438913144],[-5.12918696996756,55.613495829438],[-5.1591473106074,55.6750925057123],[-5.21090169076064,55.7055598559491]]],[[[-5.18094180440538,55.9244294442871],[-5.22140622792085,55.9012142195968],[-5.10260549978918,55.7797077986069],[-5.03201305379556,55.7535613610925],[-5.00105106482045,55.769971082016],[-5.07837459850971,55.8813899587204],[-5.18094180440538,55.9244294442871]]],[[[-6.12732346859181,55.9380408332869],[-6.19688705719102,55.9269167927419],[-6.30537511381664,55.8668524449313],[-6.45464598780516,55.8524387613955],[-6.456560402719,55.7824524836236],[-6.51333938532306,55.6994963753271],[-6.48844780496896,55.6710724943341],[-6.41476272034893,55.7060422604897],[-6.34729816457538,55.7841635862399],[-6.25226151859654,55.7710233491837],[-6.33150153084837,55.7419856069515],[-6.25909042877479,55.6575921355175],[-6.30376053900368,55.6487025123136],[-6.33918693765328,55.5910941418117],[-6.26783881647806,55.5790683678979],[-6.19400082724871,55.6329764437287],[-6.14939238466816,55.6255645107685],[-6.03752659951771,55.6759948840758],[-6.04691220445192,55.7636435556967],[-6.10403123771251,55.8128819911965],[-6.13208478025674,55.8897247947355],[-6.12732346859181,55.9380408332869]]],[[[-6.13965968779651,56.1228415729883],[-6.24623639185694,56.0840948630188],[-6.25508292829101,56.0488653920159],[-6.21745225914185,56.0303390859813],[-6.13965968779651,56.1228415729883]]],[[[-5.70754609152299,56.1484844851023],[-5.82237673595947,56.0895558740739],[-5.94998695146609,56.0375358421344],[-5.99437833929795,55.9757162673924],[-6.08686129930068,55.8999831280713],[-6.08736638504845,55.8312940126067],[-6.03585964737483,55.7954542483324],[-5.96375035116964,55.7928145831463],[-5.79306080135819,56.0132107183539],[-5.68757708372335,56.1114193433438],[-5.70754609152299,56.1484844851023]]],[[[-6.72652184836342,56.5405843823839],[-6.81766741516864,56.5430752111201],[-6.87287796323518,56.5189188927023],[-6.9509134551597,56.5290115851984],[-6.98769560881446,56.5039688642883],[-6.96682060654614,56.4581522744503],[-6.89406209697054,56.444758374512],[-6.86746458367415,56.4907155931481],[-6.81163091438906,56.4888570195081],[-6.80475363255336,56.5236462035728],[-6.72652184836342,56.5405843823839]]],[[[-6.12622733517066,56.6555099437105],[-6.2270049761724,56.633437121218],[-6.26287972514866,56.6047451356556],[-6.32376728782468,56.6061610904085],[-6.28203268034019,56.5234181234182],[-6.22988778921953,56.5288077977554],[-6.15977181727592,56.503521976563],[-6.11838448157086,56.4513717244603],[-6.20599342359873,56.3852228557376],[-6.19485369854764,56.3588456076382],[-6.10596848379502,56.3668233822175],[-6.10299361863917,56.3422084962318],[-6.19029857150191,56.3322051040238],[-6.3567246611394,56.343663799897],[-6.3495397103022,56.2848291689494],[-6.30504782705575,56.2672547835961],[-6.25201287494862,56.2860904788709],[-6.04400565993726,56.2930439035663],[-5.99025473935573,56.3203435686131],[-5.87648919830498,56.3250191111814],[-5.83409605790918,56.310871166319],[-5.69677562920051,56.3696971267457],[-5.65262336383264,56.4154722461238],[-5.66156011596821,56.4481851494451],[-5.7966136760538,56.514845962288],[-5.95148996046346,56.5180445735701],[-5.98937144776148,56.5796877218104],[-6.06656016671157,56.6385850999588],[-6.12622733517066,56.6555099437105]]],[[[-6.45345124121321,56.6878148916729],[-6.56567606378342,56.6585932749995],[-6.63701593048795,56.6179205749334],[-6.56671189860839,56.5865007987966],[-6.49415718490454,56.6268254986252],[-6.45345124121321,56.6878148916729]]],[[[-6.11171763096846,56.9245064178611],[-6.20807340046603,56.9049360311962],[-6.16320589839704,56.8721142224272],[-6.11634643985419,56.888664672643],[-6.11171763096846,56.9245064178611]]],[[[-6.30803397022311,57.0535975402376],[-6.39778887952175,57.0426992130785],[-6.45964756412455,57.0071797283015],[-6.31188922849399,56.9348963708466],[-6.2599801725716,56.962379000899],[-6.23833951065639,57.0047568667551],[-6.30803397022311,57.0535975402376]]],[[[-7.44924734520651,57.0251746694028],[-7.49946253111143,57.0141858891707],[-7.53112582882186,56.9474188616292],[-7.44945403485902,56.9467555813812],[-7.40322923798221,56.9869371496818],[-7.44924734520651,57.0251746694028]]],[[[-7.32568245679051,57.4051209993616],[-7.42953329348576,57.388045423682],[-7.40376189256762,57.3592957068048],[-7.39670052165491,57.3014604335375],[-7.43549300849561,57.2365044368198],[-7.41241299758139,57.1496474997464],[-7.37348850631353,57.1039114649842],[-7.23399966119821,57.1040785532429],[-7.26563161995983,57.1931847184746],[-7.22699087242752,57.3233908351075],[-7.27136609212472,57.3241923326403],[-7.26988899214429,57.3790462395322],[-7.32568245679051,57.4051209993616]]],[[[-5.97839010772008,57.4945850996114],[-6.05721303400658,57.459836714714],[-6.08486121148516,57.4213213684379],[-6.08284582213661,57.3522508695649],[-6.05026873848664,57.3283824845843],[-5.99276981352828,57.3581882440775],[-6.03234615260128,57.4294448492211],[-5.97839010772008,57.4945850996114]]],[[[-7.23962803773831,57.4647999827045],[-7.36762037526967,57.4917520708722],[-7.40528105910037,57.472085722633],[-7.39221739432497,57.4240642685304],[-7.23793565294895,57.4017637966499],[-7.23962803773831,57.4647999827045]]],[[[-6.34173046258963,57.7014666395638],[-6.35357217839783,57.6712057593609],[-6.42770448904871,57.6421503004449],[-6.39423759506935,57.6127239755971],[-6.39847905808816,57.5624097670074],[-6.36518715058967,57.515202660943],[-6.44823361058412,57.4860362016879],[-6.5043194340484,57.5340497482609],[-6.56551356049658,57.5482273531915],[-6.63746225746075,57.5022672816996],[-6.59048651969531,57.4489116919335],[-6.63967634651037,57.4427343020501],[-6.71691998334388,57.5136863447414],[-6.78610938655949,57.4375220805666],[-6.74312246374005,57.4176194155505],[-6.7194619607821,57.3716639241057],[-6.56355526898543,57.3386188251443],[-6.57297990686793,57.3884914343712],[-6.53158660972898,57.404353281203],[-6.46780687185908,57.3779718653702],[-6.43532727994443,57.3244912605588],[-6.48278322202102,57.3109793429642],[-6.45149042311158,57.2624271859075],[-6.36296980867077,57.1922074305737],[-6.20967556567633,57.1778059761359],[-6.16329317350294,57.1990857742492],[-6.1019494109198,57.1701115006674],[-6.04975057886596,57.1757619400601],[-5.93180387169076,57.1585537263308],[-5.99775586565346,57.1241107876466],[-6.03764063630621,57.0474207125344],[-6.00182246584785,57.0201507770687],[-5.92382795637895,57.0431689286817],[-5.85444118168507,57.1069885658921],[-5.80463351800149,57.1210258263367],[-5.80096285108261,57.1526439600131],[-5.66936766132999,57.2088896685018],[-5.66708872542593,57.2648337769139],[-5.75345843530521,57.2747009104146],[-5.86366113206409,57.2416117444196],[-5.99387072369783,57.2704189873963],[-6.0558326977032,57.3131675589303],[-6.10891573975881,57.3196953849868],[-6.14621153964635,57.371033341874],[-6.13899024515472,57.5452985278361],[-6.18928024835615,57.6315190069176],[-6.23535224544889,57.6373616674448],[-6.2526237156488,57.6746182718847],[-6.34173046258963,57.7014666395638]]],[[[-7.3111222842175,57.6863449246065],[-7.37590370193799,57.658788303484],[-7.46091827883694,57.6579679276091],[-7.53223376730076,57.5985954173506],[-7.4645630622701,57.5651029745451],[-7.40987179472149,57.5712869395768],[-7.36933931411494,57.502474269765],[-7.31694907359662,57.5245506529599],[-7.17681464746848,57.5083563412161],[-7.13899609192663,57.5257696661059],[-7.10039256769793,57.6079222336017],[-7.06311739023324,57.6403036613688],[-7.19501460810746,57.6908409486704],[-7.27827535982044,57.6642875145352],[-7.3111222842175,57.6863449246065]]],[[[-6.82815322709202,58.204643801702],[-6.93241930378667,58.1878417089994],[-6.94208350916556,58.2188909268176],[-7.03859113805938,58.2327987440001],[-7.13544864779399,58.1228438373468],[-7.10048365055463,58.0701591139598],[-7.03894850173118,58.0337421133025],[-7.09022372233112,57.99490628919],[-7.07994979884332,57.9671202656922],[-6.94387472279696,57.9506904036106],[-6.91843040359009,57.9108412349768],[-7.02314890203309,57.8346744616619],[-7.11949997816631,57.8163295285352],[-6.99266985424681,57.7443541358764],[-6.87504233489946,57.7741953631746],[-6.86288188970532,57.8124233705189],[-6.80686245175423,57.8155845540625],[-6.75558292492095,57.8426398170132],[-6.74454968484115,57.8861257528312],[-6.66574245638554,57.8821256892989],[-6.67388063471026,57.9172226632746],[-6.54128144799867,57.9173249535733],[-6.47154195025196,57.937927910048],[-6.4373771162578,58.0162336705148],[-6.36008938877363,58.0369827009711],[-6.39863948455536,58.1104354734584],[-6.34798274062359,58.1904069710594],[-6.28652204017575,58.2039441878568],[-6.251843140482,58.1802183522442],[-6.17894357201317,58.2038527951781],[-6.20134864416088,58.2477905605769],[-6.28473712953667,58.2067445396995],[-6.32839239218663,58.2616240751465],[-6.18643227672217,58.3479755529637],[-6.21291290558099,58.3716334869007],[-6.16712460829173,58.4296769144002],[-6.18282839494052,58.4679562115944],[-6.27151487470557,58.4988008397582],[-6.30789004938023,58.4767580461697],[-6.43586207615504,58.4345450183109],[-6.54713539941229,58.3650744255361],[-6.66812560288009,58.3497287158585],[-6.82370858317497,58.2817952720053],[-6.74355244706668,58.2119798532017],[-6.82815322709202,58.204643801702]]],[[[-2.03456758533587,55.811183932416],[-2.07690339436692,55.8726280106266],[-2.12565988173364,55.8836546190265],[-2.13738692652476,55.9164548840261],[-2.22370023215499,55.9330029889817],[-2.33715819709701,55.9344848244836],[-2.44525552503395,55.9879121680546],[-2.57018295487758,56.0070821615422],[-2.62043225603374,56.0479754977206],[-2.81312554203663,56.0633018598096],[-2.85487377159978,56.016276101304],[-2.9214664295023,55.9735180257234],[-3.06839303321462,55.9466086279348],[-3.15719603564969,55.981917843242],[-3.29171134374161,55.9791891722812],[-3.35196599482099,56.0015800368501],[-3.38969103059679,55.9897893699212],[-3.5047104743099,55.9979565395031],[-3.66839977553361,56.0467156183916],[-3.48224119283248,56.0338203432555],[-3.40908288162381,56.0161978616082],[-3.29496189153614,56.0529577521595],[-3.17437959615683,56.0626004661124],[-3.15101599569897,56.116699748493],[-3.08422197515844,56.1397073468872],[-2.97216677423337,56.2054454138259],[-2.92469344486672,56.2122041273038],[-2.83646759598554,56.1851280297995],[-2.69295584283694,56.2210701319789],[-2.58878339972878,56.2755544017735],[-2.66038262371551,56.3183236811436],[-2.77743418036487,56.3327366053637],[-2.88129140965178,56.3623407775984],[-2.82434449939238,56.3799261685743],[-2.80359358614587,56.4295389737573],[-2.91811563516902,56.451641592958],[-3.19568711851728,56.3638554800211],[-3.19367190611288,56.3846099509044],[-3.08549128865512,56.4504953055355],[-2.99043387525283,56.4513207483275],[-2.80273638514148,56.4801692181579],[-2.73356377121039,56.4649777040715],[-2.71603748778778,56.4953617640208],[-2.61888720211905,56.5448904462924],[-2.53758557684175,56.5668359026146],[-2.48203177238337,56.6264243219863],[-2.51609065990643,56.6985510999012],[-2.42456007949952,56.7547406709866],[-2.31619437757075,56.8015154969504],[-2.2300671700327,56.8660313964503],[-2.19647210106079,56.9088542823016],[-2.20915358245314,56.96764048985],[-2.09209775082078,57.0679964716408],[-2.04862698998353,57.1283144094158],[-2.0768388229462,57.1775781990949],[-2.04385338424142,57.2432252019561],[-1.96553663070551,57.327896907955],[-1.86509441837235,57.3890633518789],[-1.78038112511705,57.464670742278],[-1.82208914180923,57.5705515725593],[-1.82345683514347,57.6121233064668],[-1.88533788767429,57.6351214860598],[-1.91939604348959,57.6739005621478],[-2.1180893038638,57.7011152899011],[-2.17526852106945,57.6735944598026],[-2.29754875592422,57.6962031526027],[-2.39650245648291,57.6682882311068],[-2.50623590584054,57.6682498600529],[-2.82424097673323,57.6925136483939],[-2.85145147699116,57.7065548290813],[-3.02725011656668,57.6636069041905],[-3.23058875521146,57.7015726019388],[-3.29262075544818,57.7246682551631],[-3.38215765881666,57.7198059688258],[-3.48951632993923,57.6994841552387],[-3.51488616653805,57.668357514661],[-3.62311509969695,57.6352463390142],[-3.64402948126245,57.6631649772723],[-3.78233768201308,57.6241931263205],[-3.83248352224543,57.5972308962699],[-3.9301177765617,57.5858184253474],[-4.0128590527559,57.6010305550754],[-4.03821625403576,57.567991234046],[-4.16988310772966,57.489646567302],[-4.37754973988867,57.4794048475581],[-4.41713521723024,57.50437752893],[-4.23440764972875,57.500776341783],[-4.17493271071284,57.5588998245324],[-3.99418026984981,57.6768151531476],[-4.1612291780861,57.6579398268089],[-4.16589148376907,57.6861408876324],[-4.07318382543195,57.7322623671878],[-4.03641310697851,57.697561513104],[-3.97490098845411,57.6946628360145],[-3.91632248156291,57.7525629366064],[-3.79331743577587,57.8364521673817],[-3.89521220781347,57.8209001525672],[-3.96633927485811,57.8452036339153],[-4.04802693688735,57.8153204624269],[-4.14112209378142,57.8553951948205],[-4.01861369179117,57.8630256981155],[-3.99220805026075,57.9030799578842],[-3.9832737181571,57.9695621766463],[-3.84119059648804,58.0131637923999],[-3.80426880893597,58.0570554970674],[-3.74536155155804,58.068199087613],[-3.66040534318858,58.1115311245609],[-3.50841307954147,58.1718153648497],[-3.38137310598298,58.2703848503104],[-3.22884390524471,58.3045289953868],[-3.10811831883957,58.3711299190509],[-3.0496946543013,58.4518932566393],[-3.11184283858609,58.4758011099614],[-3.12590008143844,58.5273750919458],[-3.06812826320143,58.564071949731],[-3.02451190967768,58.6436777692642],[-3.15754686647441,58.6372073952004],[-3.23875452857638,58.6494529281771],[-3.41265868952103,58.6400354166634],[-3.37062770119101,58.5944192733004],[-3.53584942880138,58.6229762438069],[-3.65789176877068,58.6195531121666],[-3.74994381614654,58.5789733937949],[-3.86357562731323,58.5632970839685],[-3.9328709067765,58.5730569459321],[-4.08457651534891,58.5577171283705],[-4.12609790695417,58.5694025137255],[-4.23796554361005,58.5261840934417],[-4.30588147032392,58.5431742371561],[-4.40922874002423,58.5216550063008],[-4.49915479594041,58.5762344858655],[-4.58054829251093,58.5798857125731],[-4.5932612076552,58.5346274940878],[-4.65420003651836,58.5445191907565],[-4.87251810859524,58.6101034873351],[-5.01579168644655,58.6153298575433],[-5.01554594479704,58.5780504776873],[-5.05058257179878,58.5407711015683],[-5.11347294937963,58.5216440697707],[-5.12493227838426,58.493916043075],[-5.05745913523114,58.4638057146685],[-5.1156250676389,58.4283955822211],[-5.17486892069264,58.3630653782574],[-5.11854647713125,58.2688607938852],[-5.24360049809994,58.2494440788494],[-5.36162453357889,58.217893211551],[-5.27896107104926,58.1142207930082],[-5.28224193723305,58.0737814713884],[-5.35760505529284,58.0681138090985],[-5.40208090736194,58.0968085923977],[-5.44399075503933,58.0620738980199],[-5.35703836040245,58.0263824773993],[-5.30828598317839,57.9876969053514],[-5.1922337511536,57.9574555975834],[-5.17945572195673,57.9410092132349],[-5.29727714480783,57.9103780641886],[-5.30935448517509,57.8784686833943],[-5.42223861061913,57.9092075363278],[-5.45466634136853,57.8509299805983],[-5.53624169148898,57.8679363950551],[-5.56144869721007,57.9177834676019],[-5.61832594672294,57.9243390291369],[-5.65587732033726,57.8890392869785],[-5.58190795585728,57.8360869313554],[-5.62348364449156,57.768318243926],[-5.70050458982514,57.8706948225285],[-5.81402413490596,57.8581772115629],[-5.80139995266349,57.783340809475],[-5.81298294589838,57.7498885002804],[-5.69683366160478,57.7301414177818],[-5.67169801605204,57.7014383698583],[-5.78921134617074,57.6974051211015],[-5.81888072201793,57.6389706750533],[-5.73332887174511,57.6067448387629],[-5.6702454570752,57.5531614580053],[-5.51678055473932,57.5495734178215],[-5.65198155871603,57.5115313365223],[-5.70876855785095,57.5562136604401],[-5.83736546281518,57.5782450745113],[-5.87287766740317,57.4741414220665],[-5.81726909860618,57.4438462378128],[-5.83057584891813,57.389052990739],[-5.78843854447811,57.3463828909576],[-5.68876201136783,57.3784778249551],[-5.63394239020257,57.3800609455738],[-5.61869826380189,57.3375263929095],[-5.68042856871546,57.339075767785],[-5.71820050693424,57.2835542777713],[-5.53486506728848,57.2821667715769],[-5.63599846660008,57.25041877408],[-5.62372427515525,57.2124863830773],[-5.68946379908101,57.1723729092127],[-5.64696121647963,57.1274733817977],[-5.72192509466588,57.1182214544658],[-5.79761808814623,57.06526597423],[-5.72744412590039,57.0183086397618],[-5.82071120153899,57.0118628519032],[-5.86371312565058,56.8842353537174],[-5.75888768942857,56.8785343636528],[-5.75732113188347,56.8480641666102],[-5.86500348867224,56.8106616756343],[-5.8623251322722,56.7781364191883],[-5.90945849578769,56.7497890632938],[-5.97133087224068,56.7723746092446],[-6.06495301861683,56.7586252541726],[-6.1191856295522,56.7654041796059],[-6.22495934390485,56.7206007649364],[-6.18452082427458,56.6873902383363],[-6.1178309316986,56.6966671587028],[-6.03020307396274,56.6803074280434],[-5.84473194650131,56.674343753781],[-5.83977671368727,56.6605807449089],[-6.00401746110046,56.6493519807459],[-6.00097055998957,56.6198111288015],[-5.90771982995657,56.5558029919945],[-5.77140250521469,56.532541039652],[-5.68349015295185,56.4976987380401],[-5.56113339146726,56.5440412744049],[-5.48829257740021,56.6102599237969],[-5.39967648531135,56.6465188921927],[-5.12560786594113,56.8271916668343],[-5.22909544149103,56.7294232079955],[-5.2514705720801,56.667162686165],[-5.3610016443532,56.6036362127777],[-5.40827273064794,56.5606796537577],[-5.42704492859331,56.4956696691291],[-5.40699595336606,56.4589399384464],[-5.48331375945313,56.4359125245084],[-5.53677070491538,56.3583158508867],[-5.57773398847559,56.3331765802058],[-5.59802921232159,56.2520274113573],[-5.54295787882353,56.2395249207057],[-5.55733708167353,56.2038566870944],[-5.50738144278866,56.1823499478623],[-5.70469364728839,55.9625258384427],[-5.67612041828945,55.9591933388501],[-5.67844790976634,55.886623100922],[-5.66445902753637,55.799778166453],[-5.59148545410797,55.7665767511619],[-5.61999622105933,55.7097221071145],[-5.66307152596796,55.6678373244596],[-5.69272925960353,55.5873719547761],[-5.71541276461605,55.5749081865809],[-5.7129178342699,55.4583033934861],[-5.72227692574052,55.4266909757543],[-5.7947118767293,55.392058234773],[-5.80322576215421,55.3048920952193],[-5.75461380192295,55.2896077381027],[-5.69083661310555,55.3066857142021],[-5.60351648269672,55.3075382163166],[-5.5214947539335,55.3598163845915],[-5.55256344450865,55.4178355818009],[-5.54448139688574,55.4677410691527],[-5.48995535457048,55.5300058677883],[-5.46492605282648,55.5854059343128],[-5.48176362027284,55.6436824618952],[-5.45102838420286,55.7071148889272],[-5.39096849717472,55.7512625362428],[-5.31467931347365,55.782650171144],[-5.41951307261804,55.8964589813877],[-5.44954818819314,55.9727081178763],[-5.44815717537295,56.0173195507861],[-5.38375393746794,56.0032148294789],[-5.32954272911849,55.9543505610429],[-5.34910877594276,55.9083158685331],[-5.31239242885885,55.8566040568711],[-5.2030500053585,55.8406502604256],[-5.2421890234865,55.8944308883638],[-5.1664803625721,55.9324010352035],[-5.04472554815256,55.8709643931823],[-4.97783047518659,55.8646358042558],[-4.89578832092172,55.9878594356463],[-4.91025293613236,56.0454702353411],[-4.88000273856419,56.0581683293615],[-4.84086794132882,55.985902893145],[-4.72461949698433,56.0011669007334],[-4.64505385963967,55.9310865773514],[-4.81757705526848,55.9628251289198],[-4.87694317608202,55.9435304669371],[-4.891527791794,55.8359731309847],[-4.85738855095161,55.746882943912],[-4.90305406185517,55.7222008973901],[-4.81533808273687,55.6475101351794],[-4.69701417890925,55.6059218876016],[-4.65740436208644,55.5697820853596],[-4.66409731434978,55.5419381495431],[-4.620345838045,55.4970011383552],[-4.65093567716405,55.440830838042],[-4.74058999799188,55.4228239903609],[-4.77548868418967,55.3593601111688],[-4.84607346648394,55.3246102345555],[-4.8361139824092,55.2831549615175],[-4.85904853824098,55.2322135401876],[-4.94153296269468,55.1640249188707],[-4.99319252229729,55.1405471521024],[-5.01371354041456,55.0885037872264],[-5.05194411637251,55.050397220221],[-5.0551435065576,55.0128601946057],[-4.99078213166036,54.9217557546393],[-5.07056830165024,54.9360514535349],[-5.06082340245594,54.9676951505394],[-5.09740038368603,55.0171985676593],[-5.15778433181836,55.0080068496557],[-5.18611912775582,54.9749079237418],[-5.18531306462216,54.916400127012],[-5.10572775695323,54.8303787525837],[-5.00114320977942,54.7728705872658],[-4.99252770533244,54.7349606862841],[-4.94785032278166,54.7000657719252],[-4.96486915680276,54.6640776451635],[-4.88207872266321,54.6693028209661],[-4.96110987419294,54.8040210741848],[-4.939169641558,54.8308518710815],[-4.81122702893403,54.8642482465544],[-4.78340430706132,54.8349389029638],[-4.70903677604128,54.8240847398676],[-4.60081169678793,54.7769596852111],[-4.57158766205834,54.7381045091755],[-4.50841138586815,54.7090182411956],[-4.39380587684284,54.677463265339],[-4.3669425941919,54.7228625663229],[-4.35449319744665,54.8133613879825],[-4.4122381159587,54.8279812039689],[-4.4256874606691,54.8822846844541],[-4.30724468836978,54.844626828951],[-4.22098392944494,54.8291745172838],[-4.15970093064761,54.7803066399342],[-3.9849919216907,54.7686881922632],[-3.83692988543512,54.8162757439379],[-3.78839761147345,54.8532069578637],[-3.72610375988832,54.876016352636],[-3.59493194424663,54.8839544026013],[-3.54990647573041,54.9733330084433],[-3.47607008352192,54.9667824019146],[-3.330775394889,54.9794595977712],[-3.26911472452693,54.9655089525568],[-3.11873053475892,54.9744244541297],[-3.11757390265339,54.9748505475602],[-3.05639300834839,54.9866593513123],[-3.0258749316412,55.0364588169844],[-2.89704669119711,55.0778720526317],[-2.82550257520544,55.1383140722935],[-2.7848482544576,55.1417914408718],[-2.68978972314827,55.1889838768114],[-2.63141420722149,55.2236980857955],[-2.62665606673464,55.262220938519],[-2.47539346393945,55.3547399208929],[-2.37891180668306,55.3491694380124],[-2.33752995734802,55.3671909676834],[-2.34494682160794,55.399313431888],[-2.18807797549864,55.4621152753329],[-2.22884551551699,55.509518780902],[-2.2403065059112,55.5556271692665],[-2.28881057092811,55.5803072667808],[-2.33600510128162,55.6324814828842],[-2.24834586160377,55.6521497554078],[-2.16723105928948,55.7060351656943],[-2.14429584165104,55.7392700694797],[-2.0856391490368,55.7620403330448],[-2.0861230942702,55.793045271488],[-2.03456758533587,55.811183932416]]],[[[-3.35182866573298,58.9319394116814],[-3.40512284191145,58.9200805109363],[-3.43511134359024,58.8756026053285],[-3.296501034476,58.7779340766508],[-3.18817219784265,58.7770344130947],[-3.13910403303522,58.8015231075909],[-3.21488810859729,58.8406185568399],[-3.21306909101265,58.8779596367689],[-3.35182866573298,58.9319394116814]]],[[[-2.80220890195221,59.0807805890982],[-2.93394841306716,59.0303738496367],[-2.83597634158049,59.0254607974833],[-2.80220890195221,59.0807805890982]]],[[[-3.35628990510188,59.0478488004109],[-3.35579811989467,58.9648620218573],[-3.23034247639343,58.9670451975357],[-3.19875073535455,58.9137694572196],[-3.0268668290085,58.9411830677803],[-2.98347942736216,58.962617607438],[-2.91344660063805,58.8691413282299],[-2.96332230205122,58.849620939697],[-2.98338166100798,58.8121765579162],[-2.93059285790979,58.7942932211701],[-2.88087946793731,58.8522660610665],[-2.77900863376968,58.9162888799487],[-2.71249280804205,58.920665022377],[-2.70823956295436,58.9728853018568],[-2.78785356950702,58.9513396300192],[-2.91893105896559,58.9649651605008],[-3.00439842334219,59.0091011165009],[-3.00592923468611,59.0734159719906],[-3.09531009556557,59.1182584881072],[-3.19828992004681,59.1541189468698],[-3.31530990852461,59.1348383268769],[-3.35778943594402,59.1035942236106],[-3.35628990510188,59.0478488004109]]],[[[-3.0682010801677,59.1951665651733],[-3.11835812848009,59.17266193959],[-3.04010505636203,59.1264751935203],[-2.965639977414,59.135059004843],[-2.97875199033675,59.1631720223725],[-3.0682010801677,59.1951665651733]]],[[[-2.95257742710886,59.3543475325913],[-3.0369183453404,59.3122550448628],[-3.00841893861634,59.2743877272539],[-2.92809161534498,59.2855454594498],[-2.95257742710886,59.3543475325913]]],[[[-1.07965721830233,60.1879362093539],[-1.1479174922677,60.1732210269118],[-1.0749240235678,60.1081860470996],[-1.0502631007239,60.1606585482545],[-1.07965721830233,60.1879362093539]]],[[[-1.27070291287785,60.2357577758082],[-1.3023538419665,60.1488855624313],[-1.274152825931,60.0974970587684],[-1.3177285728705,60.0128498245397],[-1.34694184868252,59.9989339919228],[-1.37907808382909,59.8943929051402],[-1.31885307438073,59.8975151438065],[-1.27026839572518,59.9330508374702],[-1.20043843717109,60.0384164991728],[-1.21685836188833,60.0741397241121],[-1.18819724900589,60.1277448947311],[-1.14908183175821,60.1509592263834],[-1.15400469534866,60.2038999666588],[-1.23139257094865,60.2297457424017],[-1.12502409737741,60.2731224407206],[-1.11819292218845,60.3453022958669],[-1.07549959591459,60.3567350250298],[-1.09336280279183,60.4085312942683],[-1.15136335205299,60.4034003850428],[-1.22766376345946,60.4948136969701],[-1.31148339672881,60.4822033810092],[-1.30565128192613,60.6189495143405],[-1.41132933081384,60.6153386135752],[-1.43456451215942,60.5737832635846],[-1.51831466391848,60.5316963964894],[-1.6107131242509,60.5088668038141],[-1.61226798441089,60.4771501682862],[-1.49627652339582,60.4841218424781],[-1.44939788035094,60.4442878649961],[-1.45275263873404,60.4160140083266],[-1.33866430636206,60.3559637253182],[-1.37018845324094,60.3367210261383],[-1.50542105867654,60.3194736506825],[-1.56918586874331,60.2948786171169],[-1.68958152655901,60.2989150040477],[-1.68968220687181,60.2346024796128],[-1.54074954754347,60.2101697798022],[-1.51056139559084,60.1647017862479],[-1.42225414712558,60.1647444563186],[-1.39453599875981,60.1998743002744],[-1.27070291287785,60.2357577758082]]],[[[-1.04342641592854,60.7316401807911],[-1.12788582354832,60.7266578119685],[-1.12587473029554,60.6924615749818],[-1.18814439728047,60.6349227489354],[-1.2024039341059,60.5669668944988],[-1.16791612619831,60.4991418276405],[-1.04166735401712,60.4899989424274],[-1.00572788321,60.5655124348915],[-1.03092156960853,60.6295015552996],[-0.989223947726648,60.6549844227799],[-1.00938717766991,60.712923141647],[-1.04342641592854,60.7316401807911]]],[[[-0.875920811331636,60.8456753003228],[-0.954934066062826,60.7913444724844],[-0.939173453742349,60.7509138346868],[-0.984261025834677,60.7194221205988],[-0.957037225527502,60.676298599823],[-0.870727920235312,60.702224828331],[-0.802805507457854,60.7584874915457],[-0.823541815469482,60.7896430566489],[-0.787905447936431,60.8260470830142],[-0.875920811331636,60.8456753003228]]]]},"properties":{"ITL125CD":"TLM","ITL125NM":"Scotland","BNG_E":277797,"BNG_N":700481,"LAT":56.18123,"LONG":-3.97028,"GlobalID":"32ff79cd-56d5-4f62-811b-2b3e4c251c41"},"id":11},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-5.63980565703616,54.2629886432719],[-5.60858887114142,54.2512944002762],[-5.55054113027579,54.3063507320996],[-5.4967641358556,54.3332820510907],[-5.45815125000125,54.3929894909045],[-5.47929553005898,54.4303795944434],[-5.4356139142063,54.457127811339],[-5.52161466863824,54.5976168612403],[-5.53019904968831,54.6449182121535],[-5.57646024935499,54.6751356307944],[-5.72067687547252,54.6670337788185],[-5.74102429190467,54.6776159538106],[-5.85522913160919,54.6335224770354],[-5.91285948795053,54.6479848355848],[-5.84070013154874,54.705219001141],[-5.74424872422853,54.7253427882057],[-5.68804706275384,54.7669586146604],[-5.71431692859883,54.8384420810149],[-5.79760395007116,54.8521544729954],[-5.87805459518433,54.9076396726483],[-5.91898707001459,54.9617533994696],[-5.99166571770805,54.9863956005934],[-5.96479416705047,55.0488349782718],[-6.04244812238582,55.0529667037484],[-6.0284109748082,55.1621367524353],[-6.07413148321216,55.1979701018179],[-6.1459150896172,55.2280094061846],[-6.23618491046875,55.2026761066815],[-6.28942674601603,55.2302465723164],[-6.36802002692282,55.2458111722722],[-6.40930554102057,55.2322799198476],[-6.50461309737399,55.2436866059411],[-6.53624172055231,55.2195414385284],[-6.71027854717151,55.1915556622004],[-6.75262324907807,55.1685470567638],[-6.87472061554582,55.1680703785114],[-6.9654125985202,55.1944495321838],[-6.96675845093961,55.1527156108338],[-7.01449417799302,55.0760345008798],[-7.05954799950252,55.0476027843045],[-7.13081405113029,55.0420123051312],[-7.193842308717,55.0595614626483],[-7.34581158338121,55.0504271671838],[-7.40558090810418,55.0033098726733],[-7.4060907351913,54.9544813490238],[-7.4471873528439,54.934915674574],[-7.44316031457941,54.8712170227346],[-7.48407812861888,54.8237740197135],[-7.54930558585403,54.7893537464456],[-7.54918948339756,54.740485503449],[-7.63662067766314,54.7515008447956],[-7.74493161313278,54.7051987610734],[-7.83668374304635,54.7364274220209],[-7.91367841866587,54.6755965976516],[-7.81325914533255,54.6438839956879],[-7.75147497886599,54.5987990265961],[-7.85051187442265,54.5330034424757],[-7.94972356429179,54.5336450692052],[-8.00596571136953,54.5459418315675],[-8.04175544626199,54.5064922694045],[-8.15924947012895,54.4403151335847],[-8.08413725874874,54.3973973768306],[-8.05739402500478,54.3657415563228],[-8.00028816203084,54.3580955956059],[-7.96165131898819,54.3124348820642],[-7.88818652258611,54.3005416211367],[-7.86046471107513,54.2602601265533],[-7.86024218460512,54.2175535507195],[-7.80367474061294,54.2070152743076],[-7.68542757447256,54.2077593896842],[-7.6104043629189,54.1437969797738],[-7.47932887615282,54.1222484755681],[-7.44233997568184,54.1539028096938],[-7.33945498671651,54.1468352310104],[-7.27976514993974,54.1676268133549],[-7.22084650877722,54.2158112540253],[-7.14495174669456,54.2247154737627],[-7.18883022750182,54.3376489453031],[-7.15331165024891,54.3352650013301],[-7.02907277361944,54.4213258057242],[-6.92379310878419,54.3828964293487],[-6.87595228738454,54.3465223252159],[-6.81616846653069,54.2230075553295],[-6.74110982825868,54.1824530535835],[-6.69185994092017,54.2002286755499],[-6.62971588703464,54.1535378798767],[-6.66888232457386,54.0728376502768],[-6.62383843790942,54.0364871479256],[-6.44352624932341,54.0564653965045],[-6.36355274375571,54.0725925202476],[-6.29088218758648,54.1126750153287],[-6.19809850043,54.098170061891],[-6.15938706237367,54.0649566834428],[-6.09494940355491,54.0626422695916],[-6.06317856379422,54.0228460978972],[-5.89833942067442,54.1040136670771],[-5.87177602642365,54.1676037211965],[-5.89286626873741,54.2054256269818],[-5.8216236976748,54.2433773459281],[-5.63980565703616,54.2629886432719]]]},"properties":{"ITL125CD":"TLN","ITL125NM":"Northern Ireland","BNG_E":86544,"BNG_N":535337,"LAT":54.61502,"LONG":-6.85571,"GlobalID":"9aab521a-2fca-4e2f-a342-5fcc8029c377"},"id":12}]}');function boe(e){const n=1e3,t=1e6;return e>=t?(e/t).toFixed(e%t===0?0:1)+"M":e>=n?(e/n).toFixed(e%n===0?0:1)+"K":e.toString()}function voe(){const e=(0,dc.A)();return{renderer:n=>{let{datum:t}=n;return{heading:t.name,title:e.formatNumber(t.value),data:[]}}}}const Coe=(0,f.styled)("div")({width:"100%",borderRadius:10,overflow:"hidden"});function koe(e){let{type:n}=e;const t=xoe[n],a=voe();return(0,fe.jsx)(Coe,{children:(0,fe.jsx)(gne.ui,{options:{height:700,data:t,topology:Toe,background:{fill:"#f7f7f8"},series:[{type:"map-shape",idKey:"name",topologyIdKey:"ITL125NM",colorKey:"value",colorRange:["#dbdef9","#c4c8f5","#a1a8f3","#636ff9","#2838ff"],tooltip:a,stroke:"#b1b2bf",highlightStyle:{item:{strokeWidth:1}}}],gradientLegend:{enabled:!0,position:"left",scale:{label:{formatter:e=>{let{value:n}=e;return boe(n)},fontSize:10}}}}})})}const Soe=[{name:"East Midlands",value:451166},{name:"East of England",value:427210.4},{name:"Greater London",value:704404.4},{name:"Greater Manchester",value:13529},{name:"Kent & Sussex",value:278174.65},{name:"Kent, Surrey & Sussex",value:10016},{name:"London",value:23879},{name:"Midlands",value:10750},{name:"National",value:49469.2},{name:"North East",value:297631.9},{name:"North East & Scotland",value:926},{name:"North West",value:512979.6},{name:"South Central",value:7199},{name:"South East",value:10514},{name:"South West",value:381369.1},{name:"Wales",value:193999.33},{name:"West Midlands",value:510826.3},{name:"Yorkshire & Humberside",value:569930.8}];function Noe(){const e=voe();return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(gne.ui,{options:{height:400,data:Soe,series:[{type:"donut",calloutLabelKey:"name",angleKey:"value",fills:["#d209f4","#0ad7a0","#0315af","#9d3ffa","#fcc708","#1ac8ff","#8a92fa","#ea78fc","#bcedfd","#aaf7e0","#cacef9","#d8b4fb","#faecbd","#f2cef7"],tooltip:e}],legend:{orientation:"vertical",position:"right"}}})})}const Aoe=[{name:"East Midlands",value:448666},{name:"East of England",value:424710.4},{name:"Greater London",value:701904.4},{name:"Greater Manchester",value:11029},{name:"Kent & Sussex",value:275674.65},{name:"Kent, Surrey & Sussex",value:7516},{name:"London",value:21379},{name:"Midlands",value:8250},{name:"National",value:46969.2},{name:"North East",value:295131.9},{name:"North East & Scotland",value:176},{name:"North West",value:510479.6},{name:"South Central",value:4699},{name:"South East",value:8014},{name:"South West",value:378869.1},{name:"Wales",value:191499.33},{name:"West Midlands",value:508326.3},{name:"Yorkshire & Humberside",value:567430.8}];function Roe(){const e=voe();return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(gne.ui,{options:{data:Aoe,height:400,tooltip:{mode:"single"},axes:[{type:"category",position:"bottom"},{type:"number",position:"left",label:{formatter:e=>{let{value:n}=e;return boe(n)}}}],series:[{type:"bar",xKey:"name",yKey:"value",fill:"#9d3ffa",tooltip:e}]}})})}const Doe={total:[{name:"Annual rent for leaseholds",value:25666759.24},{name:"Total Annual Rates",value:149250747.81},{name:"Security Cost",value:187357032.16},{name:"Soft FM Cost",value:531081203.21},{name:"Hard FM Cost (Fixed)",value:302579223.26},{name:"Other Costs",value:84065034.32}],adjusted:[{name:"Annual Rent for leaseholds",value:26642096.09},{name:"Total Annual Rates",value:154922276.23},{name:"Security Cost",value:194476599.38},{name:"Soft FM Cost",value:551262288.94},{name:"Hard FM Cost (Fixed)",value:314077233.75},{name:"Other Costs",value:87259505.62}]},Loe=["#d209f4","#0ad7a0","#0315af","#9d3ffa","#fcc708","#1ac8ff"];function Ioe(e){let{type:n}=e;const t=Doe[n];t.sort((e,n)=>e.value-n.value);let a=0;const i=[];for(const e of t)i.push({...e,lowerValue:a}),a=e.value;i.reverse();const l=(0,dc.A)();return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(gne.ui,{options:{tooltip:{mode:"compact"},data:i,minHeight:350,axes:[{type:"number",position:"bottom",label:{formatter:e=>{let{value:n}=e;return boe(n)}}},{type:"category",position:"left"}],series:[{type:"range-bar",direction:"horizontal",xKey:"name",yLowKey:"lowerValue",yHighKey:"value",tooltip:{renderer:e=>{let{datum:n}=e;return{title:n.name,data:[{label:"Start",value:l.formatNumber(n.lowerValue)},{label:"End",value:l.formatNumber(n.value)}]}}},itemStyler:e=>{let{datum:n}=e;const a=t.findIndex(e=>{let{name:t}=e;return t===n.name}),i=Loe.length-1;return{fill:Loe[a>i?a%i:a]}}}]}})})}const joe=(0,f.styled)("div")({display:"flex",flexDirection:"row",width:"100%",height:"100%",overflowX:"auto"}),woe=(0,f.styled)("div")({width:"100%"}),Ooe=(0,f.styled)("div")(e=>{let{theme:n}=e;return{marginBottom:16,borderRadius:16,border:`1px solid ${n.sys.color.outlineVariant}`,padding:24}}),Eoe=(0,f.styled)(f.Text)(e=>{let{theme:n}=e;return{width:"100%",color:n.sys.color.onSurfaceVariant,marginBottom:16}});function _oe(){const[e,n,t]=h9();return(0,fe.jsx)(f.Page,{loading:n,error:t,title:{content:"Your Estates report",crumbs:[{label:"Reporting",to:"../../reporting"},{label:"Estates"}]},children:(0,fe.jsxs)(joe,{children:[(0,fe.jsx)(b9,{dashboards:e?.getSubscribedDashboards||[]}),(0,fe.jsxs)(woe,{children:[(0,fe.jsxs)(Ooe,{children:[(0,fe.jsx)(Eoe,{typescale:"title",children:"UK Heatmap (by region)"}),(0,fe.jsx)(f.Tabs,{tabs:[{label:"Total Floor Area",children:(0,fe.jsx)(koe,{type:"normal"})},{label:"Total Land Area (ha)",children:(0,fe.jsx)(koe,{type:"ha"})}]})]}),(0,fe.jsxs)(Ooe,{children:[(0,fe.jsx)(Eoe,{typescale:"title",children:"Total Floor Area, by region (Converted to GIA)"}),(0,fe.jsx)(Noe,{})]}),(0,fe.jsxs)(Ooe,{children:[(0,fe.jsx)(Eoe,{typescale:"title",children:"Total Floor Area, by region (Converted to NIA)"}),(0,fe.jsx)(Roe,{})]}),(0,fe.jsxs)(Ooe,{children:[(0,fe.jsx)(Eoe,{typescale:"title",children:"Total Property Running Cost"}),(0,fe.jsx)(Ioe,{type:"total"})]}),(0,fe.jsxs)(Ooe,{children:[(0,fe.jsx)(Eoe,{typescale:"title",children:"Inflation Adjusted Running Cost"}),(0,fe.jsx)(Ioe,{type:"adjusted"})]})]})]})})}const Foe=()=>{const e=(0,m.zy)().pathname.startsWith("/v2"),n=x9();return(0,fe.jsxs)(m.BV,{children:[e&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(m.qh,{path:"/overview",element:(0,fe.jsx)(uoe,{})}),n&&(0,fe.jsx)(m.qh,{path:"/estates",element:(0,fe.jsx)(_oe,{})}),(0,fe.jsx)(m.qh,{path:":name/:id",element:(0,fe.jsx)(uoe,{})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:"./overview"})})]}),!e&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(m.qh,{path:"",element:(0,fe.jsx)(g9,{})}),(0,fe.jsx)(m.qh,{path:":folderId",element:(0,fe.jsx)(g9,{})}),(0,fe.jsx)(m.qh,{path:":id/:name",element:(0,fe.jsx)(hoe,{})})]})]})};var Poe=t(1721),Boe=t.n(Poe);const Uoe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
  min-height: 100%;
  display: flex;
`,$oe=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Moe=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,Voe=(0,le.default)(ie.DZ)`
  padding: 0 0 ${e=>e.theme.geometry.xs.spacing} 0;
`,Goe=(0,le.default)(ie.ks)`
  padding-bottom: ${e=>e.theme.geometry.xs.spacing};
`,zoe=(0,le.default)(ie.fs)`
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
`,Woe=le.default.form`
  padding: ${e=>e.theme.geometry.md.spacing};
`,qoe=(0,le.default)(ie.$n)``;class Joe extends g.Component{constructor(e){super(e),this.state={notification:{message:"",color:"success",id:null},values:{fullname:{value:"",error:""},companyname:{value:"",error:""},phonenumber:{value:"",error:""},subject:{value:"",error:"",selectedOption:""},enquiry:{value:"",error:""}},options:[{value:"comply",label:"Comply"},{value:"data",label:"Data"},{value:"learn",label:"Engage"},{value:"other",label:"Other"},{value:"reporting",label:"Reporting"},{value:"upgrades",label:"Upgrades"}]},this.handleChange=this.handleChange.bind(this),this.handleSubmit=this.handleSubmit.bind(this),this.handleSelectChange=this.handleSelectChange.bind(this),this.onCreateComplete=this.onCreateComplete.bind(this),this.onCreateError=this.onCreateError.bind(this),this.onNotificationClose=this.onNotificationClose.bind(this)}onCreateComplete(){this.setState({notification:{message:"Your enquiry has been sent!",color:"success"},values:{fullname:{value:"",error:""},companyname:{value:"",error:""},phonenumber:{value:"",error:""},subject:{value:"",error:"",selectedOption:null},enquiry:{value:"",error:""}}})}onCreateError(){this.setState({notification:{message:"Something went wrong. If the problem persists, contact support.",color:"danger"}})}onNotificationClose(){this.setState({notification:{message:"",color:""}})}handleSubmit(e,n){e.preventDefault();const t={...this.state.values.fullname},a={...this.state.values.companyname},i={...this.state.values.phonenumber},l={...this.state.values.subject},r={...this.state.values.enquiry};if(t.error=this.state.values.fullname.value?"":"Please enter your full name.",a.error=this.state.values.companyname.value?"":"Please enter a valid company name.",i.error=this.state.values.phonenumber.value?(0,Rh.isNumeric)(this.state.values.phonenumber.value)?"":"Only numbers are valid in this field.":"Please enter a valid phone number.",r.error=this.state.values.enquiry.value?this.state.values.enquiry.value.length>1e3?"You have exceeded the character limit.":"":"Please enter an enquiry.",l.error=this.state.values.subject.value?"":"Please choose an option.",this.setState({values:{fullname:t,companyname:a,phonenumber:i,subject:l,enquiry:r}}),!(t.error||a.error||i.error||r.error||l.error)){const e={name:Boe()(this.state.values.fullname.value),company:Boe()(this.state.values.companyname.value),email:(0,iu.A)(localStorage.getItem("ID_TOKEN")).email,phone:Boe()(this.state.values.phonenumber.value),enquiry:Boe()(this.state.values.enquiry.value),topic:Boe()(this.state.values.subject.value)};n({variables:{replacements:JSON.stringify(e)}})}}handleChange(e){const n=e.target,t=n.value,a=n.name;"subject"===a?this.setState({values:{...this.state.values,[a]:{value:t,selectedOption:e.option,error:""}}}):this.setState({values:{...this.state.values,[a]:{value:t,error:""}}})}handleSelectChange(e){const n={target:{name:e.target.name,value:e.target.value,option:e}};this.handleChange(n)}render(){const{intl:e}=this.props;return(0,fe.jsxs)("div",{children:[this.state.notification.message&&(0,fe.jsx)(ie.Eg,{name:"send_email__notification",show:!0,color:this.state.notification.color,onClose:this.onNotificationClose,children:this.state.notification.message}),(0,fe.jsx)(me.s,{mutation:id(),onCompleted:this.onCreateComplete,onError:this.onCreateError,children:n=>(0,fe.jsxs)(Woe,{name:"email-form",onSubmit:e=>this.handleSubmit(e,n),children:[(0,fe.jsx)(Voe,{size:"lg",align:"left",children:e.formatMessage({id:"pages.support.header"})}),(0,fe.jsxs)(ie.fI,{container:!0,children:[(0,fe.jsxs)(Uoe,{span:6,children:[(0,fe.jsx)(Moe,{children:(0,fe.jsx)($oe,{children:e.formatMessage({id:"pages.support.fullName"})})}),(0,fe.jsx)(Goe,{name:"fullname",onChange:this.handleChange,value:this.state.values.fullname.value,error:this.state.values.fullname.error,placeholder:"John Doe",box:!0}),(0,fe.jsx)(Moe,{children:(0,fe.jsx)($oe,{children:e.formatMessage({id:"pages.support.companyName"})})}),(0,fe.jsx)(Goe,{name:"companyname",onChange:this.handleChange,value:this.state.values.companyname.value,error:this.state.values.companyname.error,placeholder:"Rio AI Ltd",box:!0}),(0,fe.jsx)(Moe,{children:(0,fe.jsx)($oe,{children:e.formatMessage({id:"pages.support.phoneNumber"})})}),(0,fe.jsx)(Goe,{name:"phonenumber",onChange:this.handleChange,value:this.state.values.phonenumber.value,error:this.state.values.phonenumber.error,placeholder:"07000000000",box:!0}),(0,fe.jsx)(Moe,{children:(0,fe.jsx)($oe,{children:e.formatMessage({id:"pages.support.enquiryQuestion"})})}),(0,fe.jsx)(ie.l6,{name:"subject",options:this.state.options,onChange:this.handleSelectChange,value:this.state.values.subject.selectedOption,error:this.state.values.subject.error,placeholder:e.formatMessage({id:"pages.support.enquirySelectPlaceholder"})})]}),(0,fe.jsxs)(Uoe,{span:6,children:[(0,fe.jsx)(Moe,{children:(0,fe.jsx)($oe,{children:e.formatMessage({id:"pages.support.enquiry"})})}),(0,fe.jsx)(zoe,{flex:!0,name:"enquiry",onChange:this.handleChange,value:this.state.values.enquiry.value,error:this.state.values.enquiry.error,box:!0,displayCharCounter:!0,maxLength:1e3,placeholder:e.formatMessage({id:"pages.support.enquiryPlaceholder"})}),(0,fe.jsx)(qoe,{name:"send",submit:!0,children:e.formatMessage({id:"pages.support.send"})})]})]})]})})]})}}const Yoe=(0,ce.Ay)(Joe),Hoe=le.default.div`
  display: flex;
  align-items: top;
  padding: ${e=>e.theme.geometry.md.spacing} 0 ${e=>e.theme.geometry.xs.spacing} 0;
`,Koe=(0,le.default)(ie.In)`
  margin: 0 ${e=>e.theme.geometry.sm.spacing} 0 ${e=>e.theme.geometry.xs.spacing};
`,Qoe=(0,le.default)(ie.DZ)`
  padding: 0 0 ${e=>e.theme.geometry.xs.spacing} 0;
`,Zoe=le.default.form`
  padding: ${e=>e.theme.geometry.md.spacing};
`,Xoe=(0,ce.Ay)(e=>{let{intl:n}=e;return(0,fe.jsxs)(Zoe,{children:[(0,fe.jsx)(Qoe,{size:"lg",align:"left",children:n.formatMessage({id:"pages.support.contactInformation"})}),(0,fe.jsxs)(Hoe,{children:[(0,fe.jsx)(Koe,{inline:!0,size:"lg",icon:"home",color:"#ccc"}),(0,fe.jsxs)(ie.EY,{inline:!0,children:["Rio AI Ltd ",(0,fe.jsx)("br",{}),"1 Mark Square ",(0,fe.jsx)("br",{}),"London ",(0,fe.jsx)("br",{}),"EC2A 4EG ",(0,fe.jsx)("br",{}),"UK"]})]}),(0,fe.jsxs)(Hoe,{children:[(0,fe.jsx)(Koe,{inline:!0,size:"lg",icon:"envelope",color:"#ccc"}),(0,fe.jsx)(ie.EY,{inline:!0,children:"support@rio.ai"})]})]})}),ese=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
`,nse=le.default.div`
  flex: 1 1 auto;
  background-color: ${e=>e.theme.colors.basic.white};
`,tse=(0,le.default)(ie.fv)`
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,ase=le.default.a`
  text-decoration: underline;
`,ise=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing} 0;
`,lse=(0,ce.Ay)(e=>{let{intl:n}=e;return(0,fe.jsxs)(ese,{children:[(0,fe.jsx)(ise,{children:(0,fe.jsx)(Ae,{title:n.formatMessage({id:"pages.support.banner.header"}),body:(0,fe.jsx)(de.A,{id:"pages.support.banner.message",values:{Link:(0,fe.jsx)(ase,{href:"https://support.rio.ai/knowledge",target:"_blank",rel:"noopener noreferrer","data-cy":"Contact__SupportPageLink",children:(0,fe.jsx)(de.A,{id:"pages.support.banner.link"})})}}),dismissable:!1,icon:"question"})}),(0,fe.jsxs)(ise,{container:!0,children:[(0,fe.jsx)(tse,{container:!0,item:!0,span:3,children:(0,fe.jsx)(nse,{children:(0,fe.jsx)(Xoe,{})})}),(0,fe.jsx)(ie.fv,{container:!0,item:!0,span:9,children:(0,fe.jsx)(nse,{children:(0,fe.jsx)(Yoe,{})})})]})]})}),rse=(0,le.default)(ie.DZ)`
  text-align: right;
`;function ose(e){let{tags:n,value:t,onChange:a,error:i,additionalOptions:l=[]}=e;const r=n?.filter(e=>e.legislationTag)||[],o=(0,hn.orderBy)(r,[e=>e.tagName.toLowerCase()],["asc"]).map(e=>({value:e.id,label:e.tagName})),s=1===o.length;return(0,g.useEffect)(()=>{o.length&&!t&&a({target:o[0]})},[o]),(0,fe.jsxs)(fe.Fragment,{children:[s&&(0,fe.jsx)(rse,{children:o[0].label}),!s&&(0,fe.jsx)(ie.l6,{name:"tagId",placeholder:n?"No Available Tags":"Loading...",value:t,options:[...l,...o],error:i,onChange:a})]})}const sse=t.p+"ENG-53932693035dc0783fcb.png",dse=t.p+"SCO-a275946c9b731627a269.png",cse=t.p+"NIR-80c3ad43008d4e448e29.png",use=t.p+"WAL-441c4b20e9108c8e5494.png",pse=t.p+"GBR-6447b71bb5f3f6d71718.png",mse=t.p+"EUR-1c34e8ab13589de84098.png",fse={id:"573e0c6e-8a60-431e-bb9d-dd0f2849dba4",link:"legislation",title:"Legislation",description:"A legal library of environmental legislation complete with synopsis and URL to gov.uk ",icon:"balance-scale",iconColor:"tertiary",accessIndex:"legislation",basePermission:"getLegislation",permissionSection:"governance",comingSoon:!1},yse={id:"841f7f86-9497-474d-9fd6-b543aac42bba",link:"systems",title:"Management Systems and Standards",description:"Document your progress towards a number of different management systems such as ISO 14001 and ISO 50001",icon:"university",iconColor:"tertiary",accessIndex:"systems",basePermission:"getManagementSystem",permissionSection:"governance",comingSoon:!1},gse={id:"59d00cd4-2758-4e04-83fe-e7945ac2a35b",link:"environmental-aspects",title:"Environmental Management System",description:"Aspects & Impacts Register",icon:"clipboard-list",iconColor:"tertiary",accessIndex:"systems",basePermission:"getManagementSystem",permissionSection:"governance",restricted:!0,restrictionId:"cc0838fd-fcf3-4211-ab1e-506d31348216",comingSoon:!1},hse=[fse,yse,gse],xse=[fse,{id:"184ea723-60d3-459a-bcd3-6f4e8d4b1d0e",link:"policies",title:"Policies",description:"Upload your organisations policy documents",icon:"scroll",iconColor:"tertiary",accessIndex:"policies",basePermission:"getPolicy",permissionSection:"governance",comingSoon:!1},yse,{id:"8d28b74b-cc59-400f-98e3-2824c5f50ae3",link:"targets",title:"Targets",description:"Set and manage your targets to track your performance",icon:"subscript",iconColor:"tertiary",accessIndex:"targets",basePermission:"getTarget",permissionSection:"data",comingSoon:!1},{id:"e531d074-7210-47c1-b9ba-8a2edc8b5475",link:"frameworks",title:"Reporting Frameworks",description:"Build your submissions for reporting frameworks such as TCFD, CDP, ESOS, SECR",icon:"drafting-compass",iconColor:"tertiary",accessIndex:"frameworks",basePermission:"getManagementSystem",permissionSection:"governance",comingSoon:!1},{id:"9e9a35ec-43d8-49f7-b83e-44603aa18af9",link:"agreements",title:"Voluntary Agreements",description:"Build your company strategy around voluntary agreements or frameworks such as the UN SDGs, WEF, SASB",icon:"thumbs-up",iconColor:"tertiary",accessIndex:"agreements",basePermission:"getManagementSystem",permissionSection:"governance",comingSoon:!1},gse,{id:"a0ab613d-e506-47da-8113-5a0ddc75fab8",link:"health-and-safety-risk-register",title:"Health & Safety Risk Register",description:"",icon:"notes-medical",iconColor:"tertiary",accessIndex:"systems",basePermission:"getManagementSystem",permissionSection:"governance",restricted:!0,restrictionId:"92eec0c0-18d4-497e-a8ed-5517056eec93",comingSoon:!1},{id:"9e9a35ec-43d8-49f7-b83e-44603aa18af1",link:"materiality",title:"Materiality",description:"Conduct your materiality analysis here to identify what Sustainability/ESG topics are most important to your organisation.",icon:"file-contract",iconColor:"tertiary",accessIndex:"systems",basePermission:"getManagementSystem",permissionSection:"governance",comingSoon:!1,restricted:!0,restrictionId:"421f50fa-aeab-4f6a-952a-dcd535f3cc3d"}],Tse=JSON.parse('[{"id":"COMPLIANT","label":"Compliant","name":"Compliant","value":"COMPLIANT","icon":"check-circle","colour":"success"},{"id":"COMPLIANCERISK","label":"Compliance Risk","name":"Compliance Risk","value":"COMPLIANCERISK","icon":"hourglass-half","colour":"warning"},{"id":"NONCOMPLIANT","label":"Non Compliant","name":"Non Compliant","value":"NONCOMPLIANT","icon":"exclamation-circle","colour":"danger"},{"id":"NOTAPPLICABLE","label":"Not Applicable","name":"Not Applicable","value":"NOTAPPLICABLE","icon":"ban","colour":"overlay"},{"id":"INDIRECTLYAPPLICABLE","label":"Indirectly Applicable","name":"Indirectly Applicable","value":"INDIRECTLYAPPLICABLE","icon":"exclamation-triangle","colour":"warning"}]'),bse=(e,n)=>!(!e||(!e||n)&&bn()(n).isSameOrAfter(bn()(e))),vse=e=>bse(e.lastFlaggedForReview,e.lastClearedReviewFlag),Cse=e=>{const n=Tse.find(n=>n.value===e.value);return n?.name||"TBD"},kse=S.J1`
  query GetAllLegislation($accountId: ID!, $tagId: ID) {
    getAllLegislation(accountId: $accountId, tagId: $tagId) {
      id
      title
      synopsis
      isActive
      countries
      type
      status
      reviewDate
      lastFlaggedForReview
      lastClearedReviewFlag
      applicability
      priority
      tags {
        id
        tagName
      }
      locations {
        id
        name
      }
      regions {
        id
        name
      }
      departmentIds
    }
  }
`,Sse=(0,le.default)(ie.In)`
  color: ${e=>e.theme.colors[e.colour].normal.background};
`,Nse=e=>{let{status:n}=e;if(!n)return(0,fe.jsx)(fe.Fragment,{children:"TBD"});const t=Tse.find(e=>e.value===n);return(0,fe.jsx)(Sse,{title:t.label,icon:t.icon,colour:t.colour})},Ase=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Rse=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Dse=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,Lse=qj,Ise=e=>{let{document:n,isSubmitting:t,onChange:a,predefinedValues:i={}}=e;const l=Yo(),{data:r}=Mr(),o=Je(),[s,d]=(0,g.useState)(!0),c="Consignment Note (EA)"===n.category||"Consignment Note (SEPA)"===n.category,u=n.tags,[p,m]=(0,g.useState)(!1),f=l?.allowedTags||[],y=(0,g.useMemo)(()=>Lse.filter(e=>Ig()(r,e.accessControlIndexer)),[r]);return(0,g.useEffect)(()=>{!u&&f?.length&&a({...n,tags:f.map(e=>({value:e?.id,label:e?.tagName}))})},[u,f,n,a]),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ase,{item:!0,children:[(0,fe.jsx)(Dse,{children:(0,fe.jsx)(Rse,{children:"Select document library"})}),(0,fe.jsx)(ie.l6,{value:n.library,options:y.map(e=>({label:e.title,value:e.library})),isDisabled:!!i.library||t,onChange:e=>{a({...n,library:e.target.value})}})]})}),n.library&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ase,{item:!0,children:[(0,fe.jsx)(Dse,{children:(0,fe.jsx)(Rse,{children:"Select document category"})}),(0,fe.jsx)(ie.l6,{value:n.category,options:IT.filter(e=>e.libraries.includes(n.library)),isDisabled:!!i.category||t,onChange:e=>{a({...n,category:e.target.value})}})]})}),n.category&&(0,fe.jsxs)(fe.Fragment,{children:[c&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ase,{item:!0,children:[(0,fe.jsx)(Dse,{children:(0,fe.jsx)(Rse,{children:"Select document type"})}),(0,fe.jsx)(ie.KF,{value:Array.isArray(n.type)?n.type.map(e=>({label:e,value:e})):[],options:Wj,isDisabled:t,onChange:e=>{a({...n,type:e.target.select.map(e=>e.value)})},multi:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ase,{item:!0,children:[(0,fe.jsx)(Dse,{children:(0,fe.jsx)(Rse,{children:"Parse ID From Filename"})}),(0,fe.jsx)(ie.Sc,{checked:s,onChange:()=>{const e=!s;d(e),e&&a({...n,referenceId:wj(Ig()(n,"fileName"))})}})]})}),!s&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ase,{item:!0,children:[(0,fe.jsx)(Dse,{children:(0,fe.jsxs)(Rse,{children:[n.category," ID"]})}),(0,fe.jsx)(ie.ks,{value:n.referenceId,onChange:e=>{a({...n,referenceId:e.target.value})}})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ase,{item:!0,children:[(0,fe.jsx)(Dse,{children:(0,fe.jsx)(Rse,{children:"Review date (optional)"})}),(0,fe.jsx)(ie.lr,{placeholder:"Select review date",disabled:t,onDayClick:e=>{a({...n,reviewDate:e.toISOString()})},selectedDate:n.reviewDate?new Date(n.reviewDate):null})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ase,{item:!0,children:[(0,fe.jsx)(Dse,{children:(0,fe.jsx)(Rse,{children:"Select supplier/carrier (optional)"})}),(0,fe.jsx)(XF,{accountId:o,value:n.supplierId,onChange:e=>a({...n,supplierId:e.target.value})})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ase,{item:!0,children:[(0,fe.jsx)(Dse,{children:(0,fe.jsx)(Rse,{children:"Select Tags (optional)"})}),(0,fe.jsx)(Qg,{value:u?.map(e=>({value:e.id||e.value,label:e.tagName||e.label})),accountId:o,onChange:e=>{a({...n,tags:e.target.select})}})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ase,{item:!0,children:[(0,fe.jsx)(Dse,{children:(0,fe.jsx)(Rse,{children:"Notes"})}),(0,fe.jsx)(ie.ks,{value:n.notes,error:p&&"Notes can not contain more than 255 symbols",onChange:e=>{m(!1),e?.target?.value?.length>255?m(!0):a({...n,notes:e.target.value})}})]})})]})]})]})},jse=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,wse=(0,le.default)(ie.fI)`
  padding-top: ${e=>e.theme.geometry.md.spacing};
`,Ose=(0,le.default)(ie.fv)`
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,Ese=(0,le.default)(ie.DZ)`
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`;function _se(e){let{onDismiss:n,heading:t,children:a,onSubmit:i,submitButtonTitle:l,isSubmitting:r,submitDisabled:o,showButtons:s=!0}=e;return(0,fe.jsx)(ie.aF,{size:"lg",onDismiss:n,show:!0,dismissable:!0,children:(0,fe.jsxs)(jse,{children:[(0,fe.jsx)(Ese,{align:"center",children:t}),a,s&&(0,fe.jsxs)(wse,{container:!0,children:[(0,fe.jsx)(Ose,{item:!0,children:(0,fe.jsx)(ie.$n,{color:"info",disabled:r,onClick:n,children:"Cancel"})}),(0,fe.jsx)(ie.fv,{item:!0,children:(0,fe.jsx)(ie.$n,{color:"success",disabled:r||o,onClick:i,children:l})})]})]})})}const Fse=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
  margin-top: ${e=>e.theme.geometry.md.spacing};
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`,Pse=(0,le.default)(ie.In)`
  flex: 0 0 auto;
  color: ${e=>e.theme.colors.text.light.background};
  font-size: ${e=>e.theme.geometry.xl.spacing};
  margin-right: ${e=>e.theme.geometry.sm.spacing};
`;function Bse(e){let{fileName:n}=e;return(0,fe.jsxs)(Fse,{container:!0,itemAlign:"center",children:[(0,fe.jsx)(Pse,{name:"file-upload-icon",icon:"file-upload"}),(0,fe.jsx)(ie.EY,{children:n})]})}const Use=(0,le.default)(ie.fv)`
  display: flex;
  flex-grow: 1;
  flex-shrink: 0;
`,$se=(0,le.default)(ie.fv)`
  min-height: 60vh;
  justify-content: center;
  align-items: center;
  background-color: ${e=>e.theme.colors.inputs.normal.background};
`,Mse=(0,le.default)(ie.h$)`
  min-height: 60vh;
  display: flex;
  flex: 1;
  & > div {
    width: 100%;
  }
`,Vse=(0,le.default)(ie.oz)`
  & .MuiTab-wrapper {
    text-transform: none;
  }
`,Gse=(0,le.default)(ie.fv)`
  align-items: flex-start;
  width: 50%;
  height: 150px;
  margin: auto;
`,zse=(0,le.default)(ie.fI)`
  width: 100%;
  height: auto;
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,Wse=(0,le.default)(ie.$n)``;function qse(e){return e.match(/^http/)?e:`https://${e}`}function Jse(e){let{onFiles:n,onLink:t,accountId:a}=e;const[i,l]=(0,g.useState)(0),[r,o]=(0,g.useState)({id:null,name:"",error:null}),[s,d]=(0,g.useState)({url:"",name:"",error:null}),{data:c}=(0,x.IT)(vT,{variables:{accountId:a}}),u=c?.getSubscribedDashboards||[],p=e=>!(e&&!Dh().isURL(e)&&(d({url:e,name:s.name,error:`"${e}" is not a valid URL`}),1)),m=(e,n)=>({name:e||n,link:qse(n)});return(0,fe.jsxs)(Use,{children:[(0,fe.jsxs)(ie.tU,{variant:"fullWidth",value:i,onChange:(e,n)=>l(n),children:[(0,fe.jsx)(Vse,{label:"Select files"}),(0,fe.jsx)(Vse,{label:"Provide link"}),(0,fe.jsx)(Vse,{label:"Select dashboard"})]}),(0,fe.jsxs)($se,{container:!0,children:[(0,fe.jsx)(ie.Kp,{value:i,index:0,children:(0,fe.jsx)(ie.bT,{accept:qt.allowedDocument.mimeType,onChange:e=>{n([...e])},multiple:!0,children:e=>(0,fe.jsx)(Mse,{buttonText:"Select files",onClick:e,onDrop:e=>{n([...e])},background:!0})})}),(0,fe.jsx)(ie.Kp,{value:i,index:1,children:(0,fe.jsxs)(Gse,{container:!0,item:!0,children:[(0,fe.jsx)(zse,{item:!0,children:(0,fe.jsx)(ie.ks,{value:s.name,onChange:e=>{d({name:e.target.value,url:s.url,error:s.error})},placeholder:"Document name"})}),(0,fe.jsx)(zse,{item:!0,children:(0,fe.jsx)(ie.ks,{value:s.url,onChange:e=>{d({name:s.name,url:e.target.value,error:null})},placeholder:"Documents link",onKeyPress:e=>{const n=e.target.value;if(p(n)&&e.key===Fx){const e=qse(n);t(m(s.name,e))}},error:s.error,onBlur:e=>{p(e.target.value)}})}),(0,fe.jsx)(zse,{item:!0,children:(0,fe.jsx)(Wse,{disabled:!s.url||!!s.error,onClick:()=>{t(m(s.name,s.url))},children:"Submit"})})]})}),(0,fe.jsx)(ie.Kp,{value:i,index:2,children:(0,fe.jsxs)(Gse,{container:!0,item:!0,children:[(0,fe.jsx)(zse,{item:!0,children:(0,fe.jsx)(ie.ks,{value:r.name,onChange:e=>{o({...r,name:e.target.value,error:null})},placeholder:"Document name"})}),(0,fe.jsx)(zse,{children:(0,fe.jsx)(ie.l6,{placeholder:"Select a dashboard from the list...",onChange:e=>{o({...r,id:e.target.select.value})},value:r.id,options:u.map(e=>({value:e.id,label:e.name}))})}),(0,fe.jsx)(zse,{children:(0,fe.jsx)(Wse,{disabled:!r.id,onClick:()=>{const e=u.find(e=>e.id===r.id),n=E8(e),a=window.location.origin+n;t(m(r.name||e.name,a))},children:"Submit"})})]})})]})]})}function Yse(e){let{onDismiss:n,onError:t,onUpload:a,onComplete:i,predefinedValues:l}=e;const[r,o]=(0,g.useState)([]),[s,d]=(0,g.useState)(0),[c,u]=(0,g.useState)(!1),[p,m]=(0,g.useState)(function(e){return{documentArea:null,category:null,type:null,supplierId:null,reviewDate:null,library:null,referenceId:null,metadata:null,...e}}(l)),f=ol(),[y]=(0,ln.n)(fj),{token:h}=qe(),x=Je();return(0,fe.jsxs)(_se,{onDismiss:n,heading:"Documents Upload",submitButtonTitle:"Upload",showButtons:!!r.length,submitDisabled:!p.library||!p.category,isSubmitting:c,onSubmit:async()=>{u(!0);const e=100/(2*r.length),l=kC()(r,20);let o=s;const c=[],m=[];for(const[n,i]of l.entries())await Promise.all(i.map(async n=>{const i=(0,Wa.A)(),l=n instanceof File,r=n.name;try{l&&(await f(x,i,n),d(o+=e));const s={...p,id:i,accountId:x,fileName:r,userId:h.sub,key:l?Oj(x,i):null,link:l?null:n.link,source:l?Gt:"URL",referenceId:p.referenceId||wj(r),tags:p.tags?.map(e=>e.value),notes:p.notes?.trim()};if(t&&m.length)return void m.forEach(e=>t(e));const u=await y({variables:s}),g=u?.data?.createDocumentRecord;a&&g&&(c.push(g),a(`${r} has been uploaded`,g)),d(o+=e)}catch(e){const n=new Error(`Creation of ${r} failed.`);m.push(n),t&&t(n)}})),n!==l.length-1&&await new Promise(e=>setTimeout(e,15e3));if(n(),c.length===r.length&&i&&t)if(m.length){const e=m.filter(e=>e.message.includes("too large"));e.length&&t(new Error("Unfortunately one or more of your uploads are too large, please upload files smaller than 10Mb"))}else i("All files have been successfully uploaded.",c,m)},children:[r.length?r.map(e=>(0,fe.jsx)(Bse,{fileName:e.name},e.name)):(0,fe.jsx)(Jse,{accountId:x,onLink:e=>o([e]),onFiles:o}),!!r.length&&(0,fe.jsx)(Ise,{document:p,predefinedValues:l,onChange:m}),c&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Ase,{item:!0,children:[(0,fe.jsx)(Dse,{children:(0,fe.jsxs)(Rse,{children:["Loading... ",Fa()(s,2),"%"]})}),(0,fe.jsx)(ie.z2,{completed:Fa()(s,2)})]})})]})}function Hse(e){let{value:n,error:t,name:a,onChange:i,isDisabled:l}=e;const{legislations:r}=zl(),o=xn()(r).map(e=>({value:e.id,label:e.title})).orderBy(["label"],["asc"]);return(0,fe.jsx)(ie.l6,{name:a,placeholder:"Please select the legislation item",value:n,options:o,error:t,onChange:i,classPrefix:"legislation-select",isDisabled:l})}const Kse=[{order:"asc",field:"activity.name"}];function Qse(e){let{value:n,error:t,name:a,onChange:i,isDisabled:l}=e;const r=(0,C.m)(),o=Je();return(0,fe.jsx)(ie.l6,{defaultOptions:!0,name:a,placeholder:"Please select the Activity/Process",value:n,error:t,onChange:i,classPrefix:"aspects-select",isDisabled:l,loadOption:async e=>{return(n=await r.query({query:ql,variables:{accountId:o,sort:Kse,filters:{text:[{filterType:"text",type:"contains",filter:e,field:"activity.name"}]}}}),n?.data?.getAspectsByAccountId?.rows||[]).map(e=>({value:e.id,label:e.activity?.name}));var n}})}function Zse(e){let{value:n,error:t,name:a,onChange:i}=e;const{targets:l}=Fr(),r=xn()(l).map(e=>({value:e.id,label:e.name})).orderBy(["label"],["asc"]);return(0,fe.jsx)(ie.l6,{name:a,placeholder:"Please select the target",value:n,options:r,error:t,onChange:i,classPrefix:"targets-select"})}function Xse(e){let{accountId:n,name:t,value:a,onChange:i,canBeEmpty:l=!0}=e;const{data:r,loading:o,error:s}=(0,x.IT)(L0,{variables:{accountId:n}}),d=$a(r?.getProjects);l&&d.unshift({label:"(No project)",value:null});const c=Array.isArray(a)?a.map(e=>d.find(n=>n.value===e)):"string"==typeof a?d.find(e=>e.value===a):a?.id?d.find(e=>e.value===a.id):a;return(0,fe.jsx)(ie.l6,{name:t,placeholder:"Please select project",value:c,options:d,error:s,isLoading:o,onChange:i})}const ede=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,nde=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,tde=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,ade=(0,le.default)(ie.fI)`
  cursor: ${e=>e.disabled?"not-allowed":"default"};
`,ide=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -354px;
    left: 50%;
  }
`,lde=e=>{let{isSubmitting:n,task:t,setTask:a,accountId:i,isEditing:l,sourcePage:r,disabled:o={},projectId:s="",hasProjectsAccess:d=!1}=e;const[c,u]=(0,g.useState)(t.selectedUsers||null),p=ud(),m=e=>{"projectId"===e.target.name&&(e.target.select=e.target.value),a({...t,[e.target.name]:e.target.value||e.target.select}),"subject"===e.target.name&&(t.item?.id||t?.itemId)&&a({...t,itemId:null,item:null})},f=t.itemId||t.item?.id;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Task Name"})}),(0,fe.jsx)(ie.ks,{"data-cy":"TaskDetails__Input--name",disabled:n,onChange:e=>m(e),name:"name",value:t.name,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Description"})}),(0,fe.jsx)(ie.fs,{"data-cy":"TaskDetails__Input--description",size:"lg",disabled:n,onChange:e=>m(e),name:"description",value:t.description,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"TaskDetails__Input-scope",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Scope"})}),(0,fe.jsx)(ie.l6,{name:"scope",options:p,value:t.scope,onChange:m,isDisabled:o.scope})]})}),t.scope===Y&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Location(s)"})}),(0,fe.jsx)(eh,{name:"locationIds",accountId:i,value:t.locationIds,onChange:m,disabled:o.locations})]})}),t.scope===K&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Tag(s)"})}),(0,fe.jsx)(Qg,{name:"tagIds",accountId:i,value:t.tagIds,onChange:m,disabled:o.tags})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"TaskDetails__Input--priority",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Priority"})}),(0,fe.jsx)(ie.l6,{name:"priority",classPrefix:"priority-select",disabled:n,onChange:e=>m(e),value:t.priority,options:$0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"TaskDetails__Input--category",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Category"})}),(0,fe.jsx)(ie.l6,{name:"category",classPrefix:"category-select",isDisabled:o.category||n,onChange:e=>{a({...t,[e.target.name]:e.target.value,subject:null,itemId:null,item:null})},value:t.category,options:U0})]})}),M0[t.category]&&(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"TaskDetails__Input--subject",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Subject"})}),(0,fe.jsx)(ie.l6,{name:"subject",classPrefix:"subject-select",disabled:n,onChange:e=>m(e),value:t.subject?.toUpperCase(),options:M0[t.category],isDisabled:o.subject})]})}),t.subject&&[gn.AR.Legislation,gn.AR.Aspects,gn.AR.Targets].includes(t.subject)&&(0,fe.jsx)(ade,{container:!0,align:"between","data-cy":"TaskDetails__Input--item",disabled:o[t.subject],children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsxs)(ede,{children:["Related item"," ",o[t.subject]&&t.subject===gn.AR.Aspects&&"TASKS"===r&&"(Please go to your Aspect and Impact Register to create a task relating to a single aspect or impact.)"]})}),t.subject===gn.AR.Legislation&&(0,fe.jsx)(Hse,{name:"itemId",onChange:m,value:f,isDisabled:o[gn.AR.Legislation]}),t.subject===gn.AR.Aspects&&(0,fe.jsx)(Qse,{name:"itemId",onChange:m,value:f,isDisabled:o[gn.AR.Aspects]}),t.subject===gn.AR.Targets&&(0,fe.jsx)(Zse,{name:"itemId",onChange:m,value:f})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"TaskDetails__Input--owners",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Owners"})}),(0,fe.jsx)(xb,{name:"owners",onChange:e=>{m({target:{value:e.target.select.map(e=>e.value),name:"owners"}}),u(e.target.select)},value:c,accountId:i})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"TaskDetails__Input--dueDate",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Due Date"})}),(0,fe.jsx)(ide,{disabled:n,onDayClick:e=>{m({target:{value:e?e.toISOString():e,name:"dueDate"}})},name:"dueDate",selectedDate:t.dueDate?new Date(t.dueDate):t.dueDate,box:!0})]})}),d?(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"TaskDetails__Input-project",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Project"})}),(0,fe.jsx)(Xse,{name:"projectId",accountId:i,onChange:m,value:t.projectId||s})]})}):"",l&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(tde,{item:!0,children:[(0,fe.jsx)(nde,{children:(0,fe.jsx)(ede,{children:"Completed"})}),(0,fe.jsx)(ie.Sc,{size:"md",checked:t.isCompleted,onClick:()=>a({...t,isCompleted:!t.isCompleted})})]})})]})};var rde=t(7653),ode=t.n(rde);const sde=(0,le.default)(ie.fv)`
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  opacity: ${e=>e.disabled?"0.5":"1"};
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  z-index: 0;
`,dde=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
  padding-bottom: 0;
  flex: 0 0 auto;
`,cde=(0,le.default)(ie.GQ)`
  z-index: 1;
  background: #fff;
  display: inline-flex;
`,ude=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.spacing};
  padding-top: ${e=>e.theme.geometry.xl.spacing};
  border-top: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  margin-top: -${e=>e.theme.geometry.lg.spacing};
`,pde=e=>{let{fileName:n,iconColor:t}=e;const a=zi(n);return(0,fe.jsx)(cde,{name:"DocumentTile__Icon",height:"70px",size:"lg",icon:a,iconColor:t,circleColor:t})},mde=e=>{let{title:n,category:t,id:a,iconColor:i,code:l}=e;return(0,fe.jsxs)(sde,{container:!0,item:!0,children:[(0,fe.jsxs)(dde,{container:!0,item:!0,distribution:"between",children:[(0,fe.jsx)(pde,{fileName:n,iconColor:i}),(0,fe.jsx)(ie.DZ,{inline:"inline",size:"md",color:"normal",weight:"light",children:t})]}),(0,fe.jsx)(ude,{container:!0,item:!0,vdistribution:"between",children:(0,fe.jsx)(ie.DZ,{size:"lg",color:"dark",weight:"light",children:`${n} ${l?`(${l.toUpperCase()})`:""}`})})]},a)},fde=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.spacing};
`,yde=(0,le.default)(ie.fI)`
  border-top: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,gde=le.default.div`
  flex: 1 1 auto;

  // Fallbacks for IE
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-center;

  // CSS grid for real browsers
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: ${e=>e.theme.geometry.md.spacing};
`,hde=(0,le.default)(ie.ks)`
  & > div {
    height: 63px;
    border-radius: 5px;
  }
`,xde=le.default.div`
  padding: 1px;
  position: relative;
`,Tde=(0,le.default)(ie.In)`
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  color: black;
  &:hover,
  &:focus {
    cursor: pointer;
  }
`,bde=e=>{let{evidence:n,taskId:t=null,projectId:a="",onEditEvidence:i=hn.noop,isProjectPage:l=!1,canEditProject:r=!1,key:o}=e;return(0,fe.jsx)(yde,{container:!0,children:(0,fe.jsxs)(ie.fv,{item:!0,span:12,children:[(0,fe.jsxs)(fde,{children:[(0,fe.jsx)(ie.fI,{container:!0,span:12,distribution:"between",children:(0,fe.jsx)(ie.DZ,{size:"md",children:"Notes:"})}),l&&(0,fe.jsx)(hde,{"data-testid":`Evidence-Note-${n.id}`,size:"md",name:"evidenceNote",onChange:e=>{i(e,o)},value:n.notes,readOnly:!r},o),!l&&(0,fe.jsx)(ie.EY,{children:n.notes})]}),(0,fe.jsxs)(fde,{children:[(0,fe.jsx)(ie.DZ,{size:"md",children:"Documents:"}),(0,fe.jsx)(gde,{children:n.documents.map(e=>(0,fe.jsxs)(xde,{id:e.id,children:[l&&r&&(0,fe.jsx)(Tde,{icon:"times",onClick:()=>i(e,o)},o),(0,fe.jsx)(p.Link,{to:{pathname:`/documents/all/${e.id}`},state:{taskId:t,projectId:a},children:(0,fe.jsx)(mde,{title:e.fileName,category:e.category,id:e.id,iconColor:"tertiary"})},`EvidenceRow_Link_${e.id}`)]},e.id))})]})]})})},vde=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Cde=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,kde=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Sde=(0,le.default)(kde)`
  flex-basis: 50%;
`,Nde=(0,le.default)(ie.$n)`
  width: 100%;
  margin-top: 12px;
`,Ade=(0,le.default)(ie.fv)`
  text-align: left;
  align-items: center;
  flex-flow: row nowrap;
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Rde=(0,le.default)(kde)`
  flex-basis: 120px;
  max-width: 120px;
`;function Dde(e){let{file:n,onDelete:t,readOnly:a}=e;const i=n instanceof window.File;return(0,fe.jsxs)(ie.fI,{container:!0,children:[(0,fe.jsx)(kde,{grow:"0",children:(0,fe.jsx)(ie.GQ,{size:"xxs",icon:"file",color:"tretiary"})}),(0,fe.jsx)(Ade,{grow:"1",item:!0,container:!0,children:i&&n.name}),!a&&(0,fe.jsx)(Rde,{item:!0,grow:"0",children:(0,fe.jsx)(ie.$n,{type:"button",color:"danger",onClick:t,children:"Remove"})})]})}const Lde=e=>{let{evidenceDocuments:n=[],setEvidenceDocuments:t,evidenceNotes:a,setEvidenceNotes:i}=e;return(0,g.useEffect)(()=>()=>{i(""),t([])},[]),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(kde,{item:!0,children:[(0,fe.jsx)(Cde,{children:(0,fe.jsx)(vde,{children:"Evidence Name"})}),(0,fe.jsx)(ie.fs,{size:"lg",onChange:e=>{i(e.target.value)},name:"notes",value:a,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsxs)(kde,{item:!0,children:[(0,fe.jsx)(Cde,{children:(0,fe.jsx)(vde,{children:"Evidence"})}),!!n?.length&&n.map(e=>(0,fe.jsx)(Dde,{file:e,onDelete:()=>{t(n.filter(n=>n!==e))}},e instanceof window.File?e.name:e.fileName))]})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(Sde,{item:!0,grow:"1",children:(0,fe.jsx)(ie.bT,{multiple:!0,accept:qt.allowedDocument.mimeType,onChange:async e=>{const a=n.concat(e);t(a)},children:e=>(0,fe.jsx)(Nde,{type:"button",color:"tertiary",onClick:()=>{e()},children:"Attach Evidence"})})})})]})},Ide=S.J1`
  mutation CreateDocumentRecord(
    $id: ID!
    $accountId: ID!
    $referenceId: String
    $key: String!
    $userId: ID!
    $category: String!
    $type: [String!]
    $fileName: String!
    $library: DocumentLibrary!
    $reviewDate: String
    $source: Source!
    $tags: [String!]
  ) {
    createDocumentRecord(
      input: {
        id: $id
        userId: $userId
        accountId: $accountId
        referenceId: $referenceId
        key: $key
        category: $category
        type: $type
        fileName: $fileName
        library: $library
        reviewDate: $reviewDate
        source: $source
        tags: $tags
      }
    ) {
      id
    }
  }
`;function jde(){const{token:{sub:e}}=qe(),n=Je(),t=ol(),[a]=(0,ln.n)(Ide);return async(i,l,r)=>{const o=Array.isArray(i)?i:[];return await Promise.all(o.filter(e=>e instanceof window.File).map(async i=>{const o=(0,Wa.A)();await t(n,o,i);const s={id:o,userId:e,accountId:n,fileName:i.name,category:r,key:Oj(n,o),library:"GOVERNANCE",referenceId:null,reviewDate:null,source:Gt,tags:l},{data:{createDocumentRecord:{id:d}}}=await a({variables:s});return d}))}}const wde="AUDIT",Ode=le.default.div`
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing} 0;
`,Ede=(0,le.default)(ie.DZ)`
  text-align: center;
`,_de=(0,le.default)(ie.fv)`
  padding: ${e=>`${e.theme.geometry.xs.spacing} ${e.theme.geometry.sm.spacing}`};
`,Fde=(0,le.default)(ie.P)`
  ${e=>{let{theme:n}=e;return`\n    overflow: auto;\n    padding: ${n.geometry.xs.spacing};\n  `}}
`,Pde=e=>{let{accountId:n,onDismiss:t,onComplete:a,sourcePage:i,defaultValues:l={},disabled:r={},projectId:o,hasProjectsAccess:s=!1}=e;const[d]=(0,ln.n)(z0(),{onCompleted:e=>{a({message:"Task has been created.",colour:"success"},e.createTask),t()},update(e,n){let{data:t}=n;if(!t||!o)return;const a=t.createTask,i=e.readQuery({query:Or,variables:{id:o}}),l=i?.getProject;e.writeQuery({query:Or,variables:{id:o},data:{getProject:{...l,tasks:[...l?.tasks||[],a]}}})},onError:()=>{a({message:"Something went wrong! Please try again later.",colour:"danger"})}}),[c]=(0,ln.n)(ode()),[u,p]=(0,g.useState)({scope:l.scope||"",locationIds:l.locationIds||[],tagIds:l.tagIds||[],name:l.name||"",description:l.description||"",category:l.category||null,subject:l.subject||null,item:l.item||null,owners:l.owners||"",dueDate:l.dueDate||"",priority:l.priority||null,isCompleted:l.isCompleted||!1,projectId:o||null}),m=jde(),[f,y]=(0,g.useState)([]),[h,x]=(0,g.useState)(""),[T,b]=(0,g.useState)(!1);return(0,fe.jsx)(ie.aF,{size:"md",show:!0,onDismiss:()=>t(),children:(0,fe.jsxs)(Ode,{children:[(0,fe.jsx)(Ede,{size:"lg",children:"Create New Task"}),(0,fe.jsxs)(Fde,{children:[(0,fe.jsx)(lde,{task:u,setTask:p,accountId:n,sourcePage:i,disabled:r,isSubmitting:void 0,isEditing:void 0,projectId:o,hasProjectsAccess:s}),(0,fe.jsx)(Lde,{evidenceDocuments:f,setEvidenceDocuments:y,evidenceNotes:h,setEvidenceNotes:x})]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(_de,{item:!0,children:(0,fe.jsx)(ie.$n,{"data-cy":"CreateTaskModal__submit",disabled:!(0,hn.isEmpty)(q0(u))||T,onClick:()=>(async()=>{b(!0);try{const e=(0,Wa.A)(),t=u.scope===K?u.tagIds.map(e=>{let{value:n}=e;return n}):[];if(await d({variables:{id:e,createdAt:(new Date).toISOString(),accountId:n,itemId:u.item?.id||null,...u,locationIds:u.scope===Y?u.locationIds.map(e=>{let{value:n}=e;return n}):[],tagIds:t},refetchQueries:["GetTasksByAccountId","GetLegislationById"]}),f.length){const n=await m(f,t,"Other Reference");await c({variables:{id:(0,Wa.A)(),taskId:e,evidenceType:wde,notes:h,documents:n}})}}finally{b(!1)}})(),children:T?"Submitting...":"Submit"})})})]})})};var Bde=t(25032),Ude=t.n(Bde);const $de=S.J1`
  query GetLegislationById($id: ID!, $accountId: ID!, $tagId: ID) {
    getLegislationById(id: $id, accountId: $accountId, tagId: $tagId) {
      id
      title
      isActive
      synopsis
      links
      countries
      type
      applicability
      reviewDate
      status
      lastFlaggedForReview
      lastClearedReviewFlag
      priority
      documents {
        id
        fileName
        managementSystemCode
        category
      }
      tags {
        id
        tagName
      }
      locations {
        id
        name
      }
      regions {
        id
        name
      }
      tasks {
        ...TaskFields
      }
      departmentIds
    }
  }
  ${Ude()}
`,Mde=S.J1`
  mutation attachContent($id: ID!, $accountId: ID!, $linkId: ID!, $content: LegislationContentInput!, $tagId: ID) {
    attachContentToLegislation(
      input: { id: $id, accountId: $accountId, linkId: $linkId, content: $content, tagId: $tagId }
    )
  }
`,Vde=S.J1`
  mutation attachDocument($id: ID!, $accountId: ID!, $legislationId: ID!, $tagId: ID) {
    attachDocumentToLegislation(
      input: { id: $legislationId, accountId: $accountId, linkId: $legislationId, documentId: $id, tagId: $tagId }
    )
  }
`,Gde=(0,le.default)(ie.fv)`
  border: ${e=>e.hasChildren?"none":`1px solid ${e.theme.colors.overlay.normal.background}`};
  background-color: ${e=>e.theme.colors.basic.white};
  opacity: ${e=>e.disabled?"0.5":"1"};
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
  cursor: ${e=>e.disabled?"not-allowed":"pointer"};
`,zde=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
`,Wde=e=>{const{id:n,onClick:t,children:a,disabled:i}=e,l=(0,le.useTheme)();return(0,fe.jsxs)(Gde,{container:!0,hasChildren:a,item:!0,disabled:i,onClick:i?null:t,children:[a&&(0,fe.jsx)(fe.Fragment,{children:a}),!a&&(0,fe.jsx)(zde,{children:(0,fe.jsx)(ie.In,{icon:"plus-circle",size:"6x",color:l.colors.success.normal.background})})]},n)},qde=(e,n)=>({HIGH:{icon:"exclamation-triangle",color:n.colors.danger.normal.background},MEDIUM:{icon:"exclamation-circle",color:n.colors.warning.normal.background},LOW:{icon:"exclamation-circle",color:n.colors.text.normal.background},COMPLETED:{icon:"check",color:n.colors.success.normal.background},INCOMPLETED:{icon:"times",color:n.colors.danger.normal.background},OVERDUE:{icon:"exclamation-circle",color:n.colors.warning.normal.background}}[e]||{});function Jde(e){const{data:{priority:n}={}}=e,t=(0,le.useTheme)();return(0,fe.jsx)(ie.In,{name:"task-row__priority",size:"lg",...qde(n,t)})}const Yde=le.default.div`
  color: ${e=>e.theme.colors.text.normal.background};
`;function Hde(e){const{data:{description:n}}=e;return n&&(0,fe.jsx)(Yde,{children:(0,fe.jsx)(ie.In,{name:"task-row__info",icon:"info-circle",title:n})})}const Kde={GOVERNANCE:"tertiary",DATA:"quaternary",REPORTING:"quaternary",DOCUMENTS:"quaternary",ENGAGE:"secondary"},Qde=le.default.div`
  background-color: ${e=>e.theme.colors[e.colour].normal.background};
  color: white;
  padding: 5px 10px;
  text-align: center;
  display: inline-block;
  border-radius: 20px;
`;function Zde(e){const{data:n}=e;return(0,fe.jsx)(ie.EY,{align:"left",name:`task-row__subject--${n.id}`,children:(0,fe.jsx)(Qde,{colour:Kde[n.category],children:PH()(n.category)})})}const Xde=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,ece=(0,ce.Ay)(function(e){const{data:{owners:n=[]}={},intl:{formatMessage:t}}=e,a=n.length?n.slice().reverse().filter(Boolean).map(e=>{let{first_name:n,last_name:t}=e;return`${n} ${t}`}).join(", "):[],i=n.slice().reverse().filter(Boolean).map(e=>(0,fe.jsx)(ie.Y3,{src:e.profilePicture,accountName:e.first_name},e.profilePicture+e.first_name));return(0,fe.jsxs)(fe.Fragment,{children:[!!i.length&&(0,fe.jsx)(Xde,{children:(0,fe.jsx)(ie.G3,{title:a,outline:!0,size:"xxs",color:{GOVERNANCE:"tertiary",DATA:"quaternary",REPORTING:"quaternary",DOCUMENTS:"quaternary",ENGAGE:"secondary"}[e.data.category],children:i})}),!i.length&&(0,fe.jsx)(ie.EY,{align:"left",children:t({id:"pages.task.grid.column.emptyOwners"})})]})}),nce="Deleted User",tce=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`;function ace(e){const{data:{author:n}}=e;if(!n)return(0,fe.jsx)("span",{children:nce});const t=`${n.first_name} ${n.last_name}`;return(0,fe.jsx)(tce,{children:(0,fe.jsx)(ie.Y3,{title:t,outline:!0,size:"xxs",src:n.profilePicture,accountName:t})})}function ice(e){const{data:{dueDate:n}={}}=e,t=Sn(n);return n&&(0,fe.jsx)(ie.EY,{align:"left",children:t})}function lce(e){const{data:{isCompleted:n,dueDate:t}={}}=e,a=n?"COMPLETED":new Date(t)>new Date?"INCOMPLETED":"OVERDUE",i=(0,le.useTheme)();return(0,fe.jsx)(ie.In,{name:"task-row__status",size:"lg",...qde(a,i)})}function rce(e){const{data:{completedAt:n}={}}=e,t=Sn(n);return n&&(0,fe.jsx)(ie.EY,{align:"left",children:t})}function oce(e){if(!e.item)return null;switch(e.item?.__typename){case"Aspect":return e.item?.activity?.name;case"Target":return e.item?.name;case"Legislation":return e.item?.title;default:return null}}function sce(e){return e.map(e=>({...e,subject:e.subject&&M0[e.category].find(n=>n.value===e.subject).label}))}const dce=e=>{switch(e.scope){case gn.HG.Location:return e.locations.map(e=>e?.name||"");case gn.HG.Tag:return e.tags.map(e=>{let{tagName:n}=e;return n});case gn.HG.Account:default:return"Organisation"}};function cce(e){const n=e.value;return(0,hn.capitalize)(n)}const uce=e=>{const{isCompleted:n,dueDate:t}=e;return n?"Completed":new Date(t)>new Date?"Incompleted":"Overdue"},pce=(0,le.default)(ie.fI)`
  flex: 1;

  .ag-header-cell-resize {
    z-index: 0;
  }
`,mce=[{colId:"dueDate",sort:"asc",sortIndex:0},{colId:"name",sort:"asc",sortIndex:1}],fce=function(e){const{formatMessage:n}=(0,dc.A)(),t=(0,m.Zp)(),{tasks:a}=e,i={status:lce,priority:Jde,description:Hde,category:Zde,owners:ece,creator:ace,dueDate:ice,completedAt:rce},l={lineHeight:"21px",wordBreak:"inherit",display:"flex",alignItems:"center"},r={rowHeight:120,columnDefs:[{headerName:"Priority",field:"priority",cellRenderer:"priority",width:100,cellStyle:{textAlign:"center",verticalAlign:"middle"},filterParams:{buttons:["reset","apply"],closeOnApply:!0,valueFormatter:cce}},{headerName:"Status",field:"status",cellRenderer:"status",valueGetter:e=>{let{data:n}=e;return uce(n)},minWidth:50,cellStyle:{textAlign:"center",verticalAlign:"middle"},filterParams:{buttons:["reset","apply"],closeOnApply:!0}},{headerName:n({id:"pages.task.grid.header.task"}),field:"name",filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:90,cellStyle:l},{headerName:"Description",field:"description",cellRenderer:"description",sortable:!1,filter:!1,cellStyle:{textAlign:"center"}},{headerName:"Scope",field:"scope",filterParams:{buttons:["reset","apply"],closeOnApply:!0},valueFormatter:e=>{let{data:n}=e;return dce(n)},minWidth:130,cellStyle:l},{headerName:n({id:"pages.task.grid.header.category"}),field:"category",cellRenderer:"category",filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:150},{headerName:n({id:"pages.task.grid.header.subject"}),valueGetter:e=>{let{data:n}=e;return PH()(n.subject)},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:110,cellStyle:l},{headerName:n({id:"pages.task.grid.header.item"}),valueGetter:e=>{let{data:n}=e;return oce(n)},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120,cellStyle:{display:"flex",lineHeight:"21px",wordBreak:"inherit"}},{headerName:n({id:"pages.task.grid.header.owners"}),field:"owners",cellRenderer:"owners",valueGetter:e=>{let{data:{owners:n=[]}}=e;return n.filter(Boolean).map(e=>{let{first_name:n,last_name:t}=e;return`${n} ${t}`})},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:90},{headerName:n({id:"pages.task.grid.header.creator"}),field:"author",cellRenderer:"creator",valueGetter:e=>{let{data:{author:n}}=e;return n?`${n.first_name} ${n.last_name}`:nce},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:n({id:"pages.task.grid.header.date"}),field:"dueDate",cellRenderer:"dueDate",filter:"agDateColumnFilter",sort:"asc",filterParams:{buttons:["reset","apply"],closeOnApply:!0,comparator:tt},minWidth:120},{headerName:n({id:"pages.task.grid.header.completedDate"}),field:"completedAt",cellRenderer:"completedAt",filter:"agDateColumnFilter",sort:"asc",filterParams:{buttons:["reset","apply"],closeOnApply:!0,comparator:tt},minWidth:120},{headerName:n({id:"pages.task.grid.header.project"}),valueGetter:e=>{let{data:{projectId:n}}=e;return n?.name||""},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:90,cellStyle:l}],defaultColDef:{sortable:!0,resizable:!0,filter:!0,cellStyle:{height:"auto"}},rowStyle:{width:"100%",display:"flex",alignItems:"center"}};return(0,fe.jsx)(pce,{container:!0,children:(0,fe.jsx)(Pg,{rowData:a,components:i,getRowId:e=>{let{data:n}=e;return n.id},onGridReady:n=>{n.api.applyColumnState({state:mce}),e.agGrid.onGridReady(n)},onRowClicked:e=>{t(`/tasks/${e.data.id}`)},onFilterChanged:e.agGrid.onFilterChanged,onFirstDataRendered:e.agGrid.onFirstDataRendered,...r})})};var yce=t(77001),gce=t.n(yce),hce=t(7895),xce=t.n(hce);const Tce=le.default.div`
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing} 0;
`,bce=(0,le.default)(ie.DZ)`
  text-align: center;
`,vce=(0,le.default)(ie.fv)`
  padding: ${e=>`${e.theme.geometry.xs.spacing} ${e.theme.geometry.sm.spacing}`};
`,Cce=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,kce=(0,le.default)(ie.fI)`
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,Sce=(0,le.default)(ie.$n)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,Nce=(0,le.default)(ie.fI)`
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing};
  background-color: ${e=>e.theme.colors.basic.white};
`,Ace=(0,le.default)(ie.P)`
  ${e=>{let{theme:n}=e;return`\n    overflow: auto;\n    padding: ${n.geometry.xs.spacing};\n  `}}
`,Rce=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";return e?.map(e=>({...e,label:e[n],value:e[t]}))||[]},Dce=e=>{let{onDismiss:n,selectedTask:t,sourcePage:a,disabled:i,hasProjectsAccess:l=!1}=e;const r=Je(),{token:o}=qe(),{showNotification:s}=tn(),[d]=(0,ln.n)(gce(),{onCompleted:()=>{s("Task has been updated"),n()},onError:()=>{s("Something went wrong! Please try again later.","danger")}}),[c,u]=(0,g.useState)(!1),[p,m]=(0,g.useState)({...t,itemId:t?.item?.id??null,scope:t.scope||H,locationIds:Rce(t.locations),tagIds:Rce(t.tags,"tagName"),projectId:t?.projectId?.id??t?.projectId}),f=jde(),[y,h]=(0,g.useState)([]),[x,T]=(0,g.useState)(""),[b]=(0,ln.n)(ode(),{onCompleted:()=>{s("Evidence has been attached to the current task.","success"),u(!1)},onError:()=>{s("Something went wrong! Please try again later.","danger")}}),v=lr(),[C,k]=(0,g.useState)(!1),S=((e,n,t)=>!!e.task.find(e=>e.startsWith(n)&&!e.endsWith("Own"))||e.task.includes(`${n}Own`)&&t)(v,"delete",p.author?.id===o.sub),[N,A]=(0,g.useState)(!1),[R]=(0,ln.n)(xce(),{onError:e=>{s(e.message,"danger"),k(!1)},onCompleted:()=>{s("Task has been deleted!"),n()},refetchQueries:["GetTasksByAccountId"]});return(0,fe.jsxs)(ie.aF,{size:"md",show:!0,onDismiss:()=>n(),children:[(0,fe.jsxs)(Tce,{children:[(0,fe.jsx)(bce,{size:"lg",children:"Edit Task"}),(0,fe.jsx)(Ace,{children:(0,fe.jsx)(lde,{task:p,setTask:m,accountId:r,isEditing:!0,sourcePage:a,disabled:i,hasProjectsAccess:l})}),(0,fe.jsx)(vce,{item:!0,children:(0,fe.jsx)(ie.$n,{onClick:()=>u(!0),children:"Add Evidence"})}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[S&&(0,fe.jsx)(vce,{item:!0,children:(0,fe.jsx)(ie.$n,{color:"danger",disabled:C,onClick:e=>{e.preventDefault(),A(!0)},children:"Delete"})}),(0,fe.jsx)(vce,{item:!0,children:(0,fe.jsx)(ie.$n,{disabled:!isEmpty(q0(p)),onClick:()=>{d({variables:{accountId:r,...p,createdAt:p?.createdAt?p.createdAt:(new Date).toISOString(),completedAt:p?.isCompleted?(new Date).toISOString():null,locationIds:p.scope===Y?p.locationIds.map(e=>{let{value:n}=e;return n}):[],tagIds:p.scope===K?p.tagIds.map(e=>{let{value:n}=e;return n}):[]},refetchQueries:["GetTasksByAccountId","GetLegislationById","GetTaskById"]})},children:"Update"})})]})]}),N&&(0,fe.jsx)(ie.aF,{onDismiss:()=>A(!1),show:!0,name:"confirmationModal",children:(0,fe.jsxs)(Cce,{children:[(0,fe.jsx)(kce,{item:!0,children:(0,fe.jsx)(ie.DZ,{children:"Delete Task"})}),(0,fe.jsx)(kce,{item:!0,children:(0,fe.jsx)(ie.EY,{children:"This action will permanently delete this task. Do you want to proceed?"})}),(0,fe.jsxs)(kce,{container:!0,distribution:"around",children:[(0,fe.jsx)(Sce,{color:"danger",disabled:C,onClick:()=>{k(!0),R({variables:{id:p.id,accountId:r},refetchQueries:["GetTasksByAccountId","GetAspectsByAccountId"]})},children:"Delete"}),(0,fe.jsx)(Sce,{disabled:C,onClick:()=>A(!1),children:"Cancel"})]})]})}),c&&(0,fe.jsx)(ie.aF,{show:!0,size:"md",onDismiss:()=>u(!1),height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(Nce,{item:!0,children:[(0,fe.jsx)(ie.DZ,{children:"Add Evidence"}),(0,fe.jsx)(Lde,{evidenceDocuments:y,setEvidenceDocuments:h,evidenceNotes:x,setEvidenceNotes:T}),(0,fe.jsx)(ie.$n,{onClick:()=>(async()=>{if(y.length){const e=await f(y,[],"Other Reference");b({variables:{id:(0,Wa.A)(),taskId:t.id,evidenceType:wde,notes:x,documents:e},refetchQueries:["GetTaskById"]})}})(),children:"Save Evidence"})]})})]})},Lce=e=>e?.governance?.some(e=>["attachContentToLegislationAll","attachContentToLegislationParent"].includes(e||""))||!1,Ice=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,jce=(0,le.default)(ie.fv)`
  padding: ${e=>{const n=e.theme.geometry.xs.spacing;return`${n} 0 ${n} ${n}`}};
`,wce=(0,le.default)(ie.fv)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Oce=(0,le.default)(ie.fv)`
  overflow: auto;
  padding: ${e=>e.theme.geometry.md.spacing};
`,Ece=(0,le.default)(ie.fI)`
  background-color: ${e=>e.theme.colors.basic.white};
`,_ce=(0,le.default)(ie.fI)`
  display: flex;
  flex: 1;
  background-color: ${e=>e.theme.colors.basic.white};
  height: 300px;
  overflow: scroll;
`,Fce=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,Pce=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  display: flex;
  align-items: center;
`,Bce=le.default.div`
  display: flex;
  align-items: center;
`,Uce=(0,le.default)(ie.GQ)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  display: inline-flex;
  flex: 0 0 auto;
`,$ce=(0,le.default)(ie.DZ)`
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Mce=le.default.img`
  height: 22px;
  width: 32px;
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  border-radius: 5px;
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,Vce=le.default.div`
  display: flex;
  align-items: center;
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,Gce=le.default.div`
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 70%;
`,zce=(0,le.default)(ie.$n)`
  width: 100%;
`,Wce=le.default.div`
  width: 50%;
`,qce=le.default.div`
  flex: 1 1 auto;

  // Fallbacks for IE
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-center;

  // CSS grid for real browsers
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: ${e=>e.theme.geometry.md.spacing};
`,Jce=(0,le.default)(Ae)`
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`,Yce=le.default.div`
  display: flex;
`,Hce=le.default.span`
  color: ${e=>Qce(e.priority,e.theme)};
  font-weight: bold;
`,Kce=e=>e?(0,hn.capitalize)(e.toLowerCase()).replace("_","-"):"Not set",Qce=(e,n)=>{switch(e){case gn.mh.High:return n.colors.danger.normal.background;case gn.mh.Medium:return n.colors.warning.normal.background;case gn.mh.NoteWorthy:return n.colors.success.normal.background;default:return n.colors.text.normal.background}},Zce=(e,n)=>(0,hn.pickBy)(e,(e,t)=>!n||t!==K&&n),Xce=e=>e&&e?.length?$a(e):[],eue=(0,ce.Ay)(e=>{let{accessControls:n,intl:t,isShouldUserUpgrade:a}=e;const i=n.tagLevelLegislation,{showNotification:r}=tn(),{id:o,tagId:s}=(0,m.g)(),d=(0,m.Zp)(),c=bd(),u=qr(),[f,y]=(0,g.useState)(s||""),[h,T]=(0,g.useState)(!1),b=Je(),v=Vr(b),C=lr(),[k,S]=(0,g.useState)(!1),[N,A]=(0,g.useState)(!1),{data:R,error:D,loading:L,refetch:I}=(0,x.IT)($de,{variables:{id:o,accountId:b,tagId:s},fetchPolicy:"network-only"}),j=R?.getLegislationById.tasks??[],w=R?R.getLegislationById:null,[O,E]=(0,g.useState)({departmentIds:void 0,locationIds:void 0,tagIds:void 0,regionIds:void 0,applicability:null,priority:null,status:null,reviewDate:null,shouldUpdate:null,showScope:[],flagCleared:!1});!function(e){let{id:n,tagId:t,accountId:a,accountData:i,data:l,setAccountData:r}=e;const[o]=(0,ln.n)(Mde);(0,g.useEffect)(()=>{i.shouldUpdate&&(o({variables:{id:n,accountId:a,tagId:t,linkId:n,content:{applicability:i.applicability,reviewDate:i.reviewDate,status:i.status,lastClearedReviewFlag:i.flagCleared||i.reviewDate!==l?.getLegislationById.reviewDate?(new Date).toISOString():l?.getLegislationById.lastClearedReviewFlag,regionIds:i.regionIds?.map(e=>e.value),departmentIds:i.departmentIds?.map(e=>e.value),locationIds:i.locationIds?.map(e=>e.value),tagIds:i.tagIds?.map(e=>e.value),title:l?.getLegislationById.title,priority:i.priority||null}},refetchQueries:["GetLegislationById"]}),r({...i,shouldUpdate:!1,flagCleared:i.flagCleared&&!1}))},[i])}({id:o||"",tagId:s||"",accountId:b,accountData:O,data:R,setAccountData:E});const[_,{error:F}]=(0,ln.n)(Vde),P=bse(R?.getLegislationById?.lastFlaggedForReview,R?.getLegislationById?.lastClearedReviewFlag),{departmentMultipleSelect:B,showCreateDepartment:U,setShowCreateDepartment:$}=$o(v?.departments,O?.departmentIds),M={[Q]:"departmentIds",[Y]:"locationIds",[K]:"tagIds",[Z]:"regionIds"},V=Zce((0,hn.pickBy)(M,(e,n)=>O[e]?.length||O?.showScope?.includes(n)),i),G=Zce((0,hn.pickBy)(M,(e,n)=>!V[n]?.length),i),z=(0,g.useRef)(null);z.current=O;const{data:W}=(0,x.IT)(vv,{variables:{accountId:b}}),q=v?.departments;(0,g.useEffect)(()=>{d(`/governance/legislation/${o}${f?`/${f}`:""}`)},[f]),(0,g.useEffect)(()=>{R&&E({...z.current,departmentIds:z.current?.departmentIds||Uo(q,R.getLegislationById?.departmentIds),locationIds:z.current.locationIds||Xce(R.getLegislationById?.locations),tagIds:z.current.tagIds||R.getLegislationById.tags?.map(e=>({value:e.id,label:e.tagName})),regionIds:z.current.regionIds||Xce(R.getLegislationById?.regions),applicability:R.getLegislationById.applicability,status:R.getLegislationById.status,reviewDate:R.getLegislationById.reviewDate,priority:R.getLegislationById.priority})},[R,W,q]);const J=e=>{e?r("Something went wrong. Please try again later. ","danger"):r("Document succesfully added. Now scanning for viruses.","success"),I({id:o,accountId:b})},H=C.governance?.some(e=>e.startsWith("editLegislation")),X=e=>{let n=(0,fe.jsx)(fe.Fragment,{});switch(e){case Y:const t=O?.locationIds||Xce(w?.locations);n=(0,fe.jsx)(eh,{accountId:b,value:(0,hn.sortBy)(t,"label"),onChange:e=>{E({...O,locationIds:e.target.select,shouldUpdate:!0})},error:null,disabled:!1},e);break;case K:const a=O?.tagIds||w?.tags?.map(e=>({value:e.id,label:e.tagName}));n=(0,fe.jsx)(Qg,{accountId:b,value:(0,hn.sortBy)(a,"label"),onChange:e=>{E({...O,tagIds:e.target.select,shouldUpdate:!0})},error:"",defaultOptions:void 0,disabled:!1},e);break;case Q:n=B(e=>{E({...O,departmentIds:e.target.select,shouldUpdate:!0})});break;case Z:n=(0,fe.jsx)(ie.KF,{name:"Child-Accounts__MultiSelect",id:"Child-Accounts__MultiSelect",multiValueColor:"tertiary",onChange:e=>{E({...O,regionIds:e.target.select,shouldUpdate:!0})},isDisabled:!1,value:O?.regionIds,options:Xce(W?.getLocationMetadataOptionsForAccount?.regions)})}return n},ee=s?[{value:s,label:c?.find(e=>e.id===s)?.tagName}]:null;return(0,fe.jsxs)(Ice,{name:"LegislationItem",children:[(0,fe.jsx)(xV,{name:"LegislationItem",title:"Legislation Item",breadcrumbs:[{title:"Legislation",to:"../legislation"},{title:"Legislation Item"}],icon:"pencil-alt",iconColor:"tertiary",dropdownItems:void 0,isDropdown:void 0,dropdownDefault:void 0,children:i&&(0,fe.jsx)(Gce,{children:(0,fe.jsx)(Wce,{children:(0,fe.jsx)(ose,{tags:c,value:f,onChange:e=>{E({...O,departmentIds:void 0,locationIds:void 0,tagIds:void 0,regionIds:void 0}),y(e.target.value)},error:""})})})}),N&&(0,fe.jsx)(Dce,{disabled:!1,selectedTask:N,onDismiss:()=>A(!1),sourcePage:"TASKS"}),L&&(0,fe.jsx)(Rc,{name:"LegislationItem__Loading"}),D&&(0,fe.jsx)(ie.Kw,{error:D,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"LegislationItem__Error",icon:a,title:n,body:t,retry:I})}}),!L&&w&&(0,fe.jsxs)(Oce,{container:!0,item:!0,children:[a&&(0,fe.jsx)(Jce,{name:"ComplyContainer_Access_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Governance",body:t.formatMessage({id:"pages.governance.permissionsProblem"})}),(0,fe.jsxs)(Ece,{item:!0,children:[(0,fe.jsxs)(Pce,{children:[(0,fe.jsx)(ie.fv,{item:!0,span:8,children:(0,fe.jsxs)(Vce,{children:[(0,fe.jsx)(Uce,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"file-alt"}),(0,fe.jsxs)(ie.DZ,{name:"LegislationItem__Title",inline:!0,children:[w.title,(0,fe.jsx)(Bce,{children:w.countries.map(e=>(0,fe.jsx)(Mce,{name:"LegislationItem__Flag",src:l[e],alt:e,title:e},e))})]})]})}),(0,fe.jsx)(wce,{item:!0,span:2,children:(0,fe.jsx)(zce,{name:"LegislationItem__Button-back",inline:!0,color:"info",component:"routerLink",to:"/governance/legislation",children:"Back to Library"})}),(0,fe.jsx)(ie.fv,{item:!0,span:2,children:(0,fe.jsx)(zce,{fullWidth:!0,name:"LegislationItem__Button-create-task",onClick:()=>T(!0),inline:!0,children:"Create task"})})]}),k&&(0,fe.jsx)(Yse,{onDismiss:()=>{S(!1)},onUpload:async(e,n)=>{await _({variables:{id:n.id,accountId:b,tagId:s,legislationId:o}}),J(F)},onError:J,predefinedValues:{category:"Legislation",library:"GOVERNANCE",tags:ee||[]},onComplete:()=>{}}),!!h&&(0,fe.jsx)(Pde,{accountId:b,onDismiss:()=>T(!1),onComplete:()=>r("The associated task has been created"),defaultValues:{category:"GOVERNANCE",subject:"LEGISLATION",item:{id:w?.id},locationIds:O.locationIds,tagIds:ee||O.tagIds},disabled:{category:!0,subject:!0,[gn.AR.Legislation]:!!w?.id}}),(0,fe.jsxs)(Pce,{children:[(0,fe.jsxs)(jce,{container:!0,item:!0,children:[(0,fe.jsxs)($ce,{size:"md",children:["Status: ",(0,fe.jsx)(Nse,{status:O.status})]}),H&&(0,fe.jsx)(ie.l6,{value:O.status,options:[...Tse,{label:"To Be Determined",value:null}].filter(e=>!!e.label),onChange:e=>{return E({...O,status:e.target.value,reviewDate:(n=e.target.value,O.reviewDate?O.reviewDate:"NOTAPPLICABLE"!==n?new Date((new Date).setFullYear((new Date).getFullYear()+1)).toISOString():null),shouldUpdate:!0});var n},placeholder:"To Be Determined"})]}),(0,fe.jsxs)(jce,{container:!0,item:!0,children:[(0,fe.jsxs)($ce,{size:"md",children:["Priority:"," ",(0,fe.jsx)(Hce,{priority:O.priority,children:Kce(O.priority)})]}),H&&(0,fe.jsx)(ie.l6,{value:O.priority,options:[...Object.values(gn.mh).map(e=>({label:Kce(e),value:e})),{label:"Not set",value:""}],onChange:e=>E({...O,priority:e.target.value,shouldUpdate:!0}),placeholder:"Not Set"})]}),(0,fe.jsxs)(jce,{container:!0,item:!0,children:[(0,fe.jsx)($ce,{size:"md",children:`Review Date: ${O.reviewDate?bn()(O.reviewDate).format("DD/MM/YY"):"Not Set"}`}),H&&(0,fe.jsx)(ie.lr,{disabled:!H,placeholder:"Review Date...",onDayClick:e=>E({...O,reviewDate:e?e.toISOString():null,shouldUpdate:!0}),box:!0,selectedDate:O.reviewDate?new Date(O.reviewDate):null})]}),P&&(0,fe.jsxs)(jce,{container:!0,item:!0,children:[(0,fe.jsx)($ce,{size:"md",children:"Legislation is flagged as changed."}),(0,fe.jsx)(ie.$n,{onClick:()=>E({...O,flagCleared:!0,shouldUpdate:!0}),children:"Clear Flag"})]})]}),(0,fe.jsxs)(Fce,{container:!0,children:[(0,fe.jsx)($ce,{size:"md",children:"Synopsis:"}),(0,fe.jsx)(ie.To,{name:"LegislationItem__Synopsis",source:w.synopsis})]}),(0,fe.jsxs)(Fce,{container:!0,children:[(0,fe.jsx)($ce,{size:"md",children:"Applicability:"}),H&&(0,fe.jsx)(xT,{name:"LegislationItem__Applicability",onSave:e=>E({...O,applicability:iT(e),shouldUpdate:!0}),source:O.applicability}),!H&&(0,fe.jsx)(ie.To,{name:"LegislationItem__Applicability",source:O.applicability})]}),Lce(C)&&!!Object.keys(G)?.length&&(0,fe.jsxs)(Fce,{container:!0,children:[(0,fe.jsx)($ce,{size:"md",children:"Scope:"}),(0,fe.jsx)(Yce,{children:(0,fe.jsx)(ie.fv,{span:"6",children:(0,fe.jsx)(ie.l6,{options:Object.keys(G).map(e=>({value:e,label:ne[e]})),value:null,onChange:e=>{const n=e.target.value;E({...O,showScope:[...O.showScope,n]})}})})})]}),Lce(C)&&V&&Object.keys(V).map(e=>(0,fe.jsxs)(Fce,{container:!0,children:[(0,fe.jsxs)($ce,{size:"md",children:[ne[e],"s"]}),(0,fe.jsx)(Yce,{children:(0,fe.jsx)(ie.fv,{span:"6",children:X(e)})})]},e)),(0,fe.jsxs)(Fce,{container:!0,children:[(0,fe.jsx)($ce,{size:"md",children:"Links:"}),(0,fe.jsx)("div",{children:w.links.map(e=>(0,fe.jsx)(ie.Yq,{name:"LegislationItem__Link",href:e,target:"_blank",children:e},e))})]}),(0,fe.jsxs)(Fce,{container:!0,children:[(0,fe.jsx)($ce,{size:"md",children:"Attached Documents:"}),(0,fe.jsx)(qce,{children:C.governance?.some(e=>e.startsWith("attachDocumentToLegislation"))&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Wde,{id:`${w.title}-addDocuments`,onClick:()=>S(!0),disabled:void 0}),w?.documents?.map(e=>(0,fe.jsx)(p.Link,{target:"_blank",to:`/documents/all/${e.id}`,children:(0,fe.jsx)(mde,{title:e.fileName,category:e.category,id:e.id,iconColor:"tertiary",code:void 0})},e.id))]})})]}),(0,fe.jsxs)(Fce,{container:!0,children:[(0,fe.jsx)($ce,{size:"md",children:"Tasks:"}),!L&&!D&&0===j.length&&(0,fe.jsx)("p",{children:"There are no tasks associated with this Legislation."}),!L&&!D&&j.length>0&&(0,fe.jsx)(_ce,{name:"gridContainers",children:(0,fe.jsx)(fce,{canEdit:!!C.task?.find(e=>e?.startsWith("edit")),tasks:j,agGrid:u})})]})]})]}),(0,fe.jsx)(Nh,{showCreateDepartment:U,setShowCreateDepartment:$,passedAccountId:b,onComplete:()=>{}})]})}),nue={"align-items":"center",display:"flex"},tue=[{headerName:"Title",field:"title",resizable:!0,minWidth:500},{headerName:"Review Date",field:"reviewDate",valueFormatter:e=>Sn(e.data.reviewDate),resizable:!0,cellStyle:nue,filter:"agDateColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0,comparator:tt}},{headerName:"Compliance Status",field:"status",resizable:!0,cellRenderer:"legislationStatusIcon",cellStyle:nue,filterParams:{cellRenderer:"legislationStatusIcon"}},{headerName:"Priority",field:"priority",resizable:!0,cellStyle:nue,cellRenderer:"priority",filterParams:{valueFormatter:e=>Kce(e.value),values:Object.values(gn.mh).concat("")}},{headerName:"Flagged",valueGetter:e=>bse(e.data.lastFlaggedForReview,e.data.lastClearedReviewFlag),resizable:!0,filterParams:{valueFormatter:e=>"true"===e.value?"Yes":"No"},cellRenderer:"activeFlag"},{headerName:"Countries",field:"countries",resizable:!0,cellRenderer:"listCountries",cellStyle:nue,minWidth:250}],aue={headerName:"Scope (Tags)",field:"tags",resizable:!0,valueGetter:e=>e.data.tags?.map(e=>e.tagName),cellStyle:nue},iue=[{headerName:"Scope (Location)",field:"locations",resizable:!0,valueGetter:e=>e.data.locations?.map(e=>e.name),cellStyle:nue},{headerName:"Scope (Departments)",field:"departments",resizable:!0,cellStyle:nue,valueGetter:e=>e.data.departments?.map(e=>e.label)},{headerName:"Scope (Regions)",field:"regions",resizable:!0,valueGetter:e=>e.data.regions?.map(e=>e.name),cellStyle:nue}],lue=[...tue,aue,...iue],rue=[...tue,...iue],oue=(0,le.default)(ie.fI)`
  flex: 1;
  padding: ${e=>e.theme.geometry.md.spacing};
`,sue=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  flex: 1;
`,due=le.default.div`
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
`,cue=le.default.div`
  overflow: auto;
  padding: ${e=>e.theme.geometry.xl.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,uue=(0,le.default)(ie.fv)`
  max-width: ${e=>e.desireWidth||"55%"};
  display: flex;
  flex-direction: revert;
`,pue=le.default.div`
  height: 22px;
  width: 32px;
  margin-right: ${e=>e.theme.geometry.xs.spacing};
  border-radius: 5px;
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: url(${e=>l[e.flag]}) center center no-repeat;
  background-size: cover;
  overflow: hidden;
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  display: inline-block;
`,mue=(0,le.default)(ie.fv)`
  margin-right: 15px;
  flex-grow: 1;
  min-width: 150px;
`,fue=(0,le.default)(ie.fv)`
  margin-right: 15px;
  flex-grow: 2;
`,yue=(0,le.default)(ie.In)`
  color: ${e=>e.theme.colors.danger.normal.background};
  margin-right: 10px;
`,gue=le.default.div`
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
`,hue=le.default.div`
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  color: ${e=>Qce(e.priority,e.theme)};
  font-weight: bold;
`,xue=g.memo(e=>(0,fe.jsx)(fe.Fragment,{children:e.data.countries.length?e.data.countries.map(e=>(0,fe.jsx)(pue,{name:"LegislationTile__Flag",flag:e,alt:e,title:e},e)):""}));xue.displayName="ListCountriesChild";const Tue=g.memo(e=>{const n=Tse.find(n=>n.value===e.value);return n?.name?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Nse,{status:e.value})," ",n?.name]}):(0,fe.jsx)(fe.Fragment,{children:e.value})});Tue.displayName="LegislationStatusChild";const bue="LEGISLATION_LIBRARY_FILTERS",vue={listCountries:xue,legislationStatusIcon:Tue,activeFlag:e=>bse(e.data.lastFlaggedForReview,e.data.lastClearedReviewFlag)&&(0,fe.jsx)(yue,{icon:"history",title:"Rio has detected a change to this legislation."}),priority:e=>{const n=e.data.priority;return n?(0,fe.jsx)(hue,{priority:n,children:Kce(n)}):"-"}},Cue=e=>{let{accessControls:n}=e;const t=(0,m.Zp)(),a=qr(),i=n.tagLevelLegislation,l=Je(),r=Vr(l),o=bd(),[s,d]=(0,g.useState)(""),c=i&&!s,{data:u,error:p,loading:f,refetch:y}=(0,x.IT)(kse,{variables:{accountId:l,tagId:s},fetchPolicy:"network-only",skip:c}),h=u?.getAllLegislation||[],T=xse.filter(e=>!e.comingSoon&&n[e.accessIndex]),b=localStorage.getItem(bue)?JSON.parse(localStorage.getItem(bue)):null,[v,C,k]=fd(h,["title"],b?.searchValue),S=e=>{const n=[];e.forEachNodeAfterFilterAndSort(e=>n.push(e.data)),((e,n)=>{const t=[];e.forEach(e=>{let a={Title:e.title,Synopsis:e.synopsis,"Compliance Status":Cse({value:e.status}),"Review Date":Sn(e.reviewDate),Applicability:"You can add content relating to the applicability of this legislation here."!==e.applicability?e.applicability:"",Countries:e.countries.join(", ")};a=n?a:{...a,"Scope (Tags)":e.tags?.map(e=>e.tagName).join(", ")},a={...a,"Scope (Location)":e.locations?.map(e=>e.name).join(", "),"Scope (Departments)":e.departments?.map(e=>e.label).join(", "),"Scope (Regions)":e.regions?.map(e=>e.name).join(", ")},t.push(a)});const a=ca(t);Nl()(a,"export-legislation.xlsx")})(n,i)};(0,g.useEffect)(()=>{localStorage.setItem(bue,JSON.stringify({searchValue:v}))},[v]);const N=r?.departments,A=(0,g.useMemo)(()=>k.map(e=>({...e,status:e.status||"TBD",departments:Uo(N||[],e.departmentIds)})),[k,N]);return(0,fe.jsxs)(sue,{name:"LegislationList",children:[(0,fe.jsx)(xV,{name:"LegislationList",breadcrumbs:[{title:"Governance",to:"/governance"},{title:"Legislation"}],icon:"pencil-alt",iconColor:"tertiary",title:"PageHeader",isDropdown:!0,dropdownItems:T,dropdownDefault:"Legislation",children:(0,fe.jsxs)(uue,{item:!0,desireWidth:i&&"65%",children:[i&&(0,fe.jsx)(fue,{children:(0,fe.jsx)(gue,{children:(0,fe.jsx)(ose,{tags:o,value:s,onChange:e=>d(e.target.value),error:""})})}),(0,fe.jsx)(fue,{children:(0,fe.jsx)(ie.vj,{name:"ConfigurationAspectContainer__Controls__Search",value:v,onChange:e=>C(e.target.value),hideButton:!0})}),(0,fe.jsx)(mue,{children:(0,fe.jsx)(qg,{gridApi:a.api,onClick:()=>C("")})}),(0,fe.jsx)(mue,{children:(0,fe.jsx)(ie.$n,{color:"tertiary",onClick:()=>{a?.api&&S(a.api)},children:"Export Data"})})]})}),(f||!o)&&(0,fe.jsx)(due,{children:(0,fe.jsx)(ie.Ip,{size:"md",name:"LegislationList__Loading"})}),p&&(0,fe.jsx)(ie.Kw,{error:p,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"LegislationList__Error",icon:a,title:n,body:t,retry:y})}}),!f&&!p&&u&&(0,fe.jsx)(oue,{container:!0,item:!0,children:(0,fe.jsx)(Pg,{defaultColDef:{sortable:!0,resizable:!0,filter:!0,wrapText:!0,autoHeight:!0},columnDefs:(R=i,R?rue:lue),components:vue,rowData:A,onFirstDataRendered:a.onFirstDataRendered,onGridReady:a.onGridReady,onFilterChanged:a.onFilterChanged,onSortChanged:a.onSortChanged,onColumnVisible:a.onSaveGridColumnState,onColumnPinned:a.onSaveGridColumnState,onColumnResized:a.onSaveGridColumnState,onColumnMoved:a.onSaveGridColumnState,onColumnRowGroupChanged:a.onSaveGridColumnState,onColumnValueChanged:a.onSaveGridColumnState,onColumnPivotChanged:a.onSaveGridColumnState,onCellClicked:e=>{t(s?`./${e.data.id}/${s}`:`./${e.data.id}`)},rowSelection:"single",suppressCsvExport:!0,getContextMenuItems:e=>{let{api:n}=e;return["copy","copyWithHeaders","separator",{name:"Excel Export",action:()=>{n&&S(n)}}]}})}),!f&&!p&&o&&(!h||c)&&(0,fe.jsxs)(cue,{children:[!h&&!c&&(0,fe.jsx)(Fu,{name:"LegislationList__NoResults",title:"There are no results for this search."}),c&&(0,fe.jsx)(Fu,{name:"LegislationList__NoResults",title:"This account operates a tag level legal register however your user is not assigned to any applicable tags. Contact your business admin or support for more information."})]})]});var R},kue=g.memo(Cue),Sue=S.J1`
  query GetAvailableManagementSystems($accountId: ID!, $type: GovernanceItemType) {
    getAvailableManagementSystems(accountId: $accountId, type: $type) {
      id
      title
      type
    }
  }
`,Nue=(0,le.default)(ie.fv)`
  opacity: ${e=>e.disabled?"0.5":"1"};
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
`,Aue=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
  margin: ${e=>e.theme.geometry.xs.spacing} 0;
`,Rue=(0,le.default)(ie.GQ)`
  display: inline-flex;
  flex: 0 0 auto;
  background: ${e=>{let{theme:n}=e;return n.colors.basic.white}};
`,Due=e=>{let{title:n}=e;return(0,fe.jsxs)(Nue,{name:`SubjectTile SubjectTile--${n}`,container:!0,item:!0,children:[(0,fe.jsx)(Aue,{children:(0,fe.jsx)(Rue,{name:"SubjectTile__Icon",height:"70px",size:"lg",icon:"pencil-alt",iconColor:"tertiary",circleColor:"tertiary"})}),(0,fe.jsx)(Aue,{children:(0,fe.jsx)(ie.DZ,{align:"center",size:"lg",children:n})})]})},Lue=le.default.div`
  flex: 1 1 auto;

  // Fallbacks for IE
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-center;

  // CSS grid for real browsers
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: ${e=>e.theme.geometry.md.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,Iue=e=>{let{items:n}=e;return(0,fe.jsx)(Lue,{children:n.map(e=>(0,fe.jsx)(p.Link,{name:`ManagementSystemGrid__Link__${e.title}`,to:{pathname:`${Ra(e.type)}/${e.id}`,state:{title:e.title}},children:(0,fe.jsx)(Due,{title:e.title},e.id)},e.id))})},jue=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: ${e=>e.styleSelected?e.theme.colors.overlay.light.background:"none"};
`,wue=(0,le.default)(ie.fI)`
  opacity: ${e=>e.disabled?"0.5":"1"};
`,Oue=(0,le.default)(ie.GQ)`
  display: inline-flex;
  flex: 0 0 auto;
  margin-right: ${e=>e.theme.geometry.sm.spacing};
`,Eue=e=>{let{title:n}=e;return(0,fe.jsx)(jue,{name:`BotRow--${n}`,container:!0,itemAlign:"center",children:(0,fe.jsx)(wue,{container:!0,item:!0,itemAlign:"center",distribution:"between",children:(0,fe.jsxs)(ie.fI,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(Oue,{height:"30px",size:"md",icon:"pencil-alt",iconColor:"tertiary",circleColor:"tertiary"}),(0,fe.jsx)(ie.EY,{weight:"bold",color:"dark",inline:!0,name:`BotRow__Title--${n}`,size:"md",children:n})]})})})},_ue=le.default.div`
  flex: 1 1 auto;
  overflow: auto;
  background: ${e=>e.theme.colors.basic.white};
  margin-top: ${e=>e.theme.geometry.md.spacing};
`,Fue=e=>{let{items:n}=e;return(0,fe.jsx)(_ue,{children:n.map(e=>(0,fe.jsx)(p.Link,{name:`ManagementSystemRow__Link__${e.id}`,to:{pathname:`${Ra(e.type)}/${e.id}`,state:{title:e.title}},children:(0,fe.jsx)(Eue,{title:e.title},e.id)},e.id))})},Pue=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,Bue=le.default.div`
  overflow: auto;
  padding: ${e=>e.theme.geometry.xl.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,Uue=(0,le.default)(ie.fI)`
  padding-right: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.dark.background};
`,$ue=(0,le.default)(ie.vj)`
  flex: 1 1 auto;
  form > div {
    background: none;
    border: 0;
    border-radius: 0;
  }
`,Mue=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,Vue=(0,le.default)(ie.Yq)`
  margin-left: ${e=>e.theme.geometry.md.spacing};
`,Gue=(0,le.default)(Ae)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,zue=e=>{const{fullAccess:n}=e,t=(0,m.zy)(),{data:a}=Mr(),[i,l]=(0,g.useState)(!0),[r,o]=(0,g.useState)(""),s=Je(),d={systems:{type:"MANAGEMENT_SYSTEM",title:"Management Systems and Standards"},agreements:{type:va,title:"Voluntary Agreements"},frameworks:{type:ba,title:"Reporting Frameworks"}},c=d[t.pathname.split("/").pop()],{loading:u,data:p}=(0,x.IT)(Sue,{variables:{accountId:s,type:c.type||d[0].type}}),f=!u&&p?((e,n)=>{if(!n)return e;const t=new pd.vj("id");return t.addIndex("title"),t.addDocuments(p),t.search(n)})(p.getAvailableManagementSystems,r):[],y=xse.filter(e=>!e.comingSoon&&a.comply[e.accessIndex]);return(0,fe.jsxs)(Pue,{name:"ManagementSystemLandingPage",children:[(0,fe.jsx)(xV,{name:"ManagementSystemLandingPageHeader",breadcrumbs:[{title:"Governance",to:".."},{title:c.title}],icon:"pencil-alt",iconColor:"tertiary",isDropdown:!0,dropdownItems:y,dropdownDefault:c.title}),(0,fe.jsxs)(Bue,{children:[(0,fe.jsxs)(Uue,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)($ue,{name:"DataSubjects__Search",value:r,onChange:e=>o(e.target.value),hideButton:!0}),(0,fe.jsx)(Vue,{name:"DataSubjects__ShowGrid",size:"md",color:i?"primary":"normal",weight:i?"bold":"normal",underline:!1,onClick:()=>l(!i),inline:!0,children:(0,fe.jsx)(ie.In,{icon:"th"})}),(0,fe.jsx)(Vue,{name:"DataSubjects__ShowList",size:"md",color:i?"normal":"primary",weight:i?"normal":"bold",underline:!1,onClick:()=>l(!i),inline:!0,children:(0,fe.jsx)(ie.In,{icon:"th-list"})})]}),u&&(0,fe.jsx)(Mue,{children:(0,fe.jsx)(ie.Ip,{})}),!u&&!f.length&&(0,fe.jsx)(Gue,{name:"GovContainer_NoManagementSystems_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Management Systems and Standards",body:"Currently this account does not have any assigned Management Systems. Please contact support for more information."}),i&&(0,fe.jsx)(Iue,{items:f,fullAccess:n}),!i&&(0,fe.jsx)(Fue,{items:f,fullAccess:n})]})]})},Wue=S.J1`
  query GetManagementSystemById($id: ID!, $accountId: ID!) {
    getManagementSystemById(id: $id, accountId: $accountId) {
      id
      title
      synopsis
      shortCode
      type
      content {
        headerButton {
          text
          link
        }
      }
      documents {
        id
        fileName
        managementSystemCode
        category
      }
      chapters {
        ...ChapterFields
        ... on ManagementSystemChapter {
          chapters {
            ...ChapterFields
            ...ChapterFieldsNesting
          }
        }
      }
    }
  }
  ${pj}
  ${mj}
`,que=S.J1`
  mutation attachDocument($id: ID!, $accountId: ID!, $systemId: ID!, $linkId: ID!) {
    attachDocumentToManagementSystem(input: { id: $systemId, accountId: $accountId, linkId: $linkId, documentId: $id })
  }
`,Jue=S.J1`
  mutation attachContent($id: ID!, $accountId: ID!, $linkId: ID!, $synopsis: String!) {
    attachContentToManagementSystem(input: { id: $id, accountId: $accountId, linkId: $linkId, synopsis: $synopsis })
  }
`,Yue=S.J1`
  query GetAvailableManagementSystemsAndDocuments($accountId: ID!) {
    getAvailableManagementSystems(accountId: $accountId) {
      id
      title
    }
  }
`,Hue=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return`${Ra(e)}/${n}/${t}`},Kue=(e,n)=>{if(!e)return[];const t=e.chapters.map(t=>({heading:n[t.id].tocTitle,link:Hue(e.type,e.id,t.id),id:t.id,children:t.chapters?.map(t=>({heading:n[t.id].tocTitle,link:Hue(e.type,e.id,t.id),id:t.id,children:t.chapters?.map(t=>({heading:n[t.id].tocTitle,link:Hue(e.type,e.id,t.id),id:t.id,children:[]}))}))}));return[{heading:e.title,link:Hue(e.type,e.id),id:e.id,children:t,expanded:!0}]},Que=(0,le.default)(ie.fI)`
  position: relative;
  width: 100%;
  min-height: 64px;
  align-items: center;
  ${$J}
  ${UJ}
`;function Zue(e){let{menu:n,active:t}=e;return(0,fe.jsx)(ie.fv,{span:12,container:!0,children:n.map(e=>{const n=e.id===t,a=e.children?.some(e=>e.id===t),i=e.children?.some(e=>e?.children?.some(e=>e.id===t));return(0,fe.jsx)(p.Link,{to:e.link,children:e.children?.length?(0,fe.jsx)(GJ,{heading:e.heading,active:n,defaultExpanded:n||a||i||e.expanded,hasChildren:!0,children:(0,fe.jsx)(ie.fv,{span:12,container:!0,children:(0,fe.jsx)(Zue,{menu:e.children,active:t})})}):(0,fe.jsx)(Que,{active:n,container:!0,item:!0,children:(0,fe.jsx)(PJ,{children:e.heading})})},e.id)})})}const Xue=(0,le.default)(ie.fI)`
  display: flex;
  align-items: start;
  justify-content: space-between;
`,epe=le.default.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: ${e=>e.theme.colors.basic.white};
  padding: ${e=>e.theme.geometry.sm.spacing};
  width: 100%;
`,npe=le.default.div`
  display: flex;
  width: 100%;
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
`,tpe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.spacing};
`,ape=(0,le.default)(ie.fI)`
  display: flex;
  align-items: center;
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,ipe=(0,le.default)(ie.GQ)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  display: inline-flex;
  flex: 0 0 auto;
`,lpe=le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
`,rpe=le.default.div`
  height: 100%;
  overflow: auto;
  background-color: ${e=>e.theme.colors.basic.white};
`,ope=le.default.div`
  background-color: ${e=>e.theme.colors.basic.white};
`,spe=(0,le.default)(ie.JU)`
  margin-bottom: 15px;
  margin-top: 20px;
  font-weight: bolder;
  font-size: ${e=>e.theme.fonts.sm.size};
  color: ${e=>e.theme.colors.text.light.text};
`,dpe=(0,le.default)(ie.ks)`
  & > div {
    border-color: ${e=>e.theme.colors.text.normal.background};
  }
`,cpe=(0,le.default)(ie.fI)`
  margin-right: 15px;

  &:last-of-type {
    margin-right: 0;
  }
`,upe=(0,le.default)(ie.fs)`
  & > div {
    border-radius: 5px;
  }
`,ppe=(0,le.default)(ie.l6)`
  border-radius: 5px;
`,mpe=((0,le.default)(f.Select)`
  border-radius: 5px;
`,(0,le.default)(ie.ks)`
  & > div {
    height: 63px;
    border-radius: 5px;
  }
`),fpe=(0,le.default)(ie.lr)`
  & > div > div {
    height: 65px;
    border-radius: 5px;
  }
`,ype=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,gpe=le.default.div`
  & > div > div {
    border-radius: 5px;
  }
`,hpe=(le.default.div`
  & > div > div {
    border-radius: 5px;
  }
`,(0,le.default)(ie.$n)`
  width: 150px;
  border-radius: 10px;
  align-self: center;
`),xpe=(0,le.default)(hpe)`
  margin-right: 20px;
  border-radius: ${e=>e.theme.geometry.md.radius};
`,Tpe=(0,le.default)(hpe)`
  margin-right: 20px;
  background-color: #cccccc;
  border-color: #cccccc;
  border-radius: ${e=>e.theme.geometry.md.radius};
  &:hover,
  &:focus {
    background-color: #c1bebe;
    border-color: #cccccc;
  }
`,bpe=(0,le.default)(hpe)`
  background-color: ${e=>e.theme.colors.danger.normal.background};
  border-color: ${e=>e.theme.colors.danger.normal.background};
  border-radius: ${e=>e.theme.geometry.md.radius};
  &:hover,
  &:focus {
    background-color: ${e=>e.theme.colors.danger.dark.background};
    border-color: ${e=>e.theme.colors.danger.dark.background};
  }
`,vpe=le.default.div`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin-right: 30px;
`,Cpe=(0,le.default)(spe)`
  & {
    position: relative;
    font-weight: bolder;
    font-size: ${e=>e.theme.fonts.sm.size};
  }
  &:after {
    content: '*';
    position: absolute;
    top: 0;
    color: red;
  }
`,kpe=(0,le.default)(ie.In)`
  color: black;
  &:hover,
  &:focus {
    cursor: pointer;
  }
`,Spe=(0,le.default)(ie.In)`
  color: ${e=>e.theme.colors.warning.normal.background};
  &:hover,
  &:focus {
    cursor: pointer;
  }
`,Npe=le.default.div`
  > svg {
    cursor: pointer;
    margin: 5px 0 0 10px;
  }
  display: flex;
  align-items: center;
`,Ape=le.default.div`
  background-color: #ffe5b4;
  border-radius: 6px;
  color: #83838e;
  cursor: default;
  font-size: 14px;
  height: 65px;
  margin-left: 10px;
  text-align: left;
  padding: 5px 10px;
  width: 51%;
  word-break: break-word;
`,Rpe=le.default.div`
  display: flex;
`,Dpe=le.default.div`
  width: 100%;
`,Lpe=le.default.div`
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: ${e=>e.theme.colors.basic.white};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,Ipe=le.default.div`
  & > div > div {
    border-radius: 5px;
  }
`,jpe=(le.default.div`
  margin-right: 10px;
`,S.J1`
  mutation attachDocument($input: AttachDocumentInput!) {
    attachDocumentToManagementSystem(input: $input)
  }
`),wpe=S.J1`
  mutation attachContent($input: AttachContentInput!) {
    attachContentToManagementSystem(input: $input)
  }
`,Ope=(0,le.default)(ie.fv)`
  flex: 1;
  padding-left: ${e=>e.theme.geometry.md.spacing};
`,Epe=(0,le.default)(ie.fv)`
  display: flex;
  flex-direction: row;
  align-items: center;
`,_pe=(0,le.default)(ie.$n)`
  width: 100%;
`,Fpe=le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
`,Ppe=(0,le.default)(ie.DZ)`
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Bpe=(0,le.default)(ie.fv)`
  flex-grow: ${e=>e.flexGrow||0};
  background-color: ${e=>e.theme.colors.basic.white};
  padding: ${e=>e.theme.geometry.sm.spacing};
  margin-bottom: ${e=>"marginBottom"in e?`${e.marginBottom}px`:e.theme.geometry.md.spacing};
`,Upe=(0,le.default)(ie.fv)`
  flex-grow: 0;
  flex-basis: 220px;
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`;function $pe(e){let{header:n,synopsis:t,content:a,documents:i,managementSystem:l,page:r}=e;const[o,s]=(0,g.useState)(!1),[d]=function(){const{showNotification:e}=tn(),n=(0,g.useCallback)(()=>{e("Document successfully added. Now scanning for viruses.","success")},[e]),t=(0,g.useCallback)(()=>{e("Something went wrong. Please try again later.","danger")},[e]);return(0,ln.n)(jpe,{onCompleted:n,onError:t,refetchQueries:["GetManagementSystemById"]})}(),[c]=function(){const{showNotification:e}=tn(),n=(0,g.useCallback)(()=>{e("Synopsis saved","success")},[e]),t=(0,g.useCallback)(()=>{e("Something went wrong. Please try again later.","danger")},[e]);return(0,ln.n)(wpe,{onCompleted:n,onError:t,refetchQueries:["GetManagementSystemById"]})}(),u=Je(),m=(0,g.useMemo)(()=>{if(i)return{...i.predefinedValues,library:gn.zM.Governance,category:"MANAGEMENT_SYSTEM"===l.type?"Management Systems":"Reporting Frameworks",managementSystemId:l.id,managementSystemChapterId:r.id,managementSystemCode:l.shortCode}},[i,l,r]),f=(0,g.useCallback)((e,n)=>{d({variables:{input:{accountId:u,id:l.id,linkId:r.id,documentId:n.id}}})},[d,l,r,u]),y=(0,g.useCallback)(e=>{c({variables:{input:{accountId:u,id:l.id,linkId:r.id,synopsis:iT(e)}}})},[c,u,l,r]),h=(0,g.useCallback)(()=>{s(!1)},[s]);return(0,fe.jsxs)(Ope,{container:!0,item:!0,children:[(0,fe.jsxs)(Bpe,{container:!0,item:!0,children:[(0,fe.jsxs)(ape,{distribution:"between",item:!0,container:!0,children:[(0,fe.jsxs)(Epe,{span:8,item:!0,children:[(0,fe.jsx)(ipe,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"pencil-alt"}),(0,fe.jsx)(ie.DZ,{inline:!0,children:n.title})]}),n.buttons?.map((e,n)=>(0,fe.jsx)(Upe,{grow:0,item:!0,children:(0,fe.jsx)(_pe,{size:"md",color:e.color,onClick:n=>{e.onClick(n)},inline:!0,children:e.title})},`ManagementSystemChapterLayout__ButtonCol__${n}`))]}),(0,fe.jsxs)(Fpe,{children:[(0,fe.jsx)(Ppe,{size:"md",children:"Overview:"}),"markdown"===t.mode?(0,fe.jsx)(fe.Fragment,{children:t.editable?(0,fe.jsx)(xT,{onSave:y,source:t.content||"Add your own content here."}):(0,fe.jsx)(ie.To,{source:t.content||"Add your own content here."})}):t.content]})]}),a&&(0,fe.jsxs)(Bpe,{flexGrow:1,marginBottom:i?24:0,children:[a.header&&(0,fe.jsx)(npe,{children:(0,fe.jsx)(ape,{container:!0,item:!0,children:(0,fe.jsx)(Epe,{span:12,item:!0,children:(0,fe.jsx)(ie.DZ,{inline:!0,children:a.header})})})}),a.loading?"Loading...":a.render()]}),i&&(0,fe.jsx)(Xue,{container:!0,item:!0,children:(0,fe.jsxs)(epe,{children:[(0,fe.jsx)(npe,{children:(0,fe.jsxs)(ape,{distribution:"start",span:12,children:[(0,fe.jsx)(ipe,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"file-alt"}),(0,fe.jsx)(ie.DZ,{inline:!0,children:"Evidence Library"})]})}),(0,fe.jsx)(npe,{children:(0,fe.jsx)(Ppe,{size:"md",children:"Upload documents to support this section of the management system."})}),(0,fe.jsx)(lpe,{children:(0,fe.jsxs)(ie.FN,{show:3,scroll:1,width:"675px",infinite:!1,children:[new Array(wa(i.records)).fill(0).map((e,n)=>(0,fe.jsx)(Wde,{id:e.id,disabled:i.readonly,onClick:()=>s(!0),children:(0,fe.jsx)(ie.ON,{title:"Upload Evidence"})},`upload-evidence${n}`)),i?.records?.map(e=>(0,fe.jsx)(p.Link,{target:"_blank",to:`/documents/all/${e.id}`,children:(0,fe.jsx)(ie.ON,{title:e.managementSystemCode?`${e.managementSystemCode.toUpperCase()}`:"Evidence",desc:e.fileName,uploaded:!0})},e.id))]})})]})}),i&&o&&(0,fe.jsx)(Yse,{predefinedValues:m,onDismiss:h,onUpload:f})]})}function Mpe(e){let{managementSystem:n,page:t,canEditContent:a,isReadOnly:i}=e;const l=(0,m.Zp)();return(0,fe.jsx)($pe,{header:{title:t.title||n.title,buttons:function(e){if("EMS"===e?.shortCode)return[{color:"tertiary",title:"Aspects & Impacts Register",onClick:()=>{l("/governance/environmental-aspects")}}];if(e?.content?.headerButton){const{content:{headerButton:{link:n,text:t}}}=e;return[{color:"tertiary",title:t,onClick:()=>{n&&(n.indexOf("http")>=0?window.open(n):l(n))}}]}return null}(n)},page:t,managementSystem:n,synopsis:{mode:"markdown",content:t.synopsis||"Add your own content here.",editable:a},documents:{records:t.documents||[],readonly:i,predefinedValues:{managementSystemId:n.id,managementSystemChapterId:t.id,category:"Management Systems",library:gn.zM.Governance,managementSystemCode:Ia(n,t)}}})}function Vpe(e){let{question:n,onAnswer:t}=e;const a=(0,g.useCallback)((e,a)=>{t({...n,reportedChoice:a})},[n,t]);return(0,fe.jsx)(ie.jT,{fullWidth:!0,value:n.reportedChoice||null,onChange:a,options:n.variants||[],renderInput:e=>(0,fe.jsx)(ie.PU,{...e,label:n.shortFormulation||n.formulation,placeholder:n.shortFormulation||n.formulation})})}function Gpe(e){let{question:n,onAnswer:t}=e;const a=(0,g.useCallback)((e,a)=>{t({...n,reportedChoices:a||[]})},[n,t]);return(0,fe.jsx)(ie.jT,{fullWidth:!0,multiple:!0,limitTags:1,value:n.reportedChoices||[],onChange:a,options:n.variants||[],renderInput:e=>(0,fe.jsx)(ie.PU,{...e,label:n.shortFormulation||n.formulation||"Select all that apply",placeholder:n.shortFormulation||""})})}var zpe=t(95933),Wpe=t.n(zpe),qpe=t(31348),Jpe=t.n(qpe);function Ype(e){let{question:n,onAnswer:t}=e;const a=(0,g.useCallback)((e,a)=>{var i;t({...n,reportedAnswer:(i=a,"Yes"===i||"No"!==i&&null)})},[n,t]);return(0,fe.jsx)(ie.jT,{fullWidth:!0,value:Wpe()(n.reportedAnswer)||Jpe()(n.reportedAnswer)?null:(i=n.reportedAnswer,i?"Yes":"No"),onChange:a,options:["Yes","No"],renderInput:e=>(0,fe.jsx)(ie.PU,{...e,label:n.shortFormulation||n.formulation,placeholder:n.shortFormulation||"Yes/No"})});var i}function Hpe(e){let{question:n,onAnswer:t,answerOnBlur:a}=e;const i=(0,g.useCallback)(e=>t({...n,["FloatQuestion"===n.__typename?"reportedFloat":"reportedInt"]:e}),[n,t]),l=(0,g.useCallback)(e=>{i(+e.target.value)},[i]),r=(0,g.useCallback)(e=>{i(+e.target.value)},[i]),o=a?{onBlur:r}:{onChange:l};return(0,fe.jsx)(ie.PU,{fullWidth:!0,name:n.id,type:"number",id:n.id,defaultValue:"FloatQuestion"===n.__typename?(0,hn.get)(n,"reportedFloat",""):(0,hn.get)(n,"reportedInt",""),placeholder:n.shortFormulation||n.formulation,label:n.shortFormulation||n.formulation,...o})}const Kpe=(0,le.default)(ie.fv)`
  padding-right: 16px;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Qpe=(0,le.default)(ie.fI)`
  position: relative;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Zpe=(0,le.default)(ie.To)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Xpe=(0,le.default)(ie.In)`
  position: absolute;
  right: -${e=>e.theme.geometry.sm.spacing};
  top: ${e=>e.theme.geometry.sm.spacing};
  cursor: pointer;
`,eme=e=>{let{onClick:n}=e;return(0,fe.jsx)(Xpe,{icon:"trash",color:"#a2a3a5",onClick:n})};function nme(e){let{question:n,onAnswer:t}=e;const[a,i]=(0,g.useState)(n.reportedText||""),l=(0,g.useCallback)(e=>t({...n,reportedText:e.target.value||null}),[n,t]),r=(0,g.useMemo)(()=>(0,hn.debounce)(l,3e3),[l]);return(0,fe.jsxs)(fe.Fragment,{children:[n?.displaySettings?.showFormulation&&(0,fe.jsx)(Zpe,{source:n.formulation}),(0,fe.jsx)(ie.PU,{fullWidth:!0,name:n.id,id:n.id,value:a||"",placeholder:n.shortFormulation||n.formulation||"Enter your value",label:n.shortFormulation||n.formulation,onChange:e=>{i(e.target.value),r(e)}})]})}const tme=le.default.div`
  margin-bottom: 50px;
  width: 100%;
  .editor-class {
    padding: 10px !important;
  }
  .wrapper-class {
    width: 100%;
  }
`;function ame(e){let{question:n,onAnswer:t}=e;const a=(0,g.useCallback)(e=>{t({...n,reportedText:e||null})},[n,t]),i=(0,g.useMemo)(()=>(0,hn.debounce)(a,3e3),[a]),l=(0,g.useCallback)(()=>!n?.displaySettings||!!n?.displaySettings?.showFormulation,[n]);return(0,fe.jsxs)(tme,{children:[l()&&(0,fe.jsx)(Zpe,{source:n.formulation}),(0,fe.jsx)(ie.j4,{fullWidth:!0,name:n.id,id:n.id,placeholder:n.shortFormulation||n.formulation||"Enter your value",label:n.shortFormulation||n.formulation,sourceContent:n.reportedText||"",onMarkdownChange:i})]})}function ime(e){let{question:n,onAnswer:t}=e;switch(n.__typename){case"ChoiceQuestion":return(0,fe.jsx)(Vpe,{question:n,onAnswer:t});case"MultipleChoiceQuestion":return(0,fe.jsx)(Gpe,{question:n,onAnswer:t});case"OpenEndedQuestion":return(0,fe.jsx)(nme,{question:n,onAnswer:t});case"OpenEndedRichQuestion":return(0,fe.jsx)(ame,{question:n,onAnswer:t});default:return null}}var lme=t(49423),rme=t(72445),ome=t(1749);function sme(e){let{question:n,onAnswer:t}=e;const a=(0,g.useCallback)(e=>{t({...n,reportedDate:e?.toISOString()||null})},[n,t]);return(0,fe.jsx)(rme.A,{dateAdapter:lme.A,children:(0,fe.jsx)(ome.A,{label:n.formulation,value:n.reportedDate?bn()(n.reportedDate):null,onChange:a,renderInput:e=>(0,fe.jsx)(ie.PU,{...e,label:n.formulation,placeholder:n.shortFormulation||n.formulation})})})}function dme(e,n){return e.map(e=>n.id===e.id?n:"QuestionSequence"===e.__typename?{...e,questions:dme(e.questions,n)}:e)}function cme(e){let n,t;switch(e.__typename){case"YesNoQuestion":n="yesNo",t="reportedAnswer";break;case"ChoiceQuestion":n="choice",t="reportedChoice";break;case"MultipleChoiceQuestion":n="multipleChoice",t="reportedChoices";break;case"DateQuestion":n="date",t="reportedDate";break;case"FloatQuestion":n="float",t="reportedFloat";break;case"IntegerQuestion":n="int",t="reportedInt";break;case"OpenEndedQuestion":n="openEnded",t="reportedText";break;case"OpenEndedRichQuestion":n="openEndedRich",t="reportedText";break;case"BreakdownQuestion":n="breakdown",t="reportedBreakdown";break;case"QuestionSequenceRepeatable":n="sequenceRepeatable",t="reportedRows";break;default:throw new Error(`${e.__typename} is invalid __typename `)}return[n,t,xn().get(e,t)]}function ume(e){const[n,,t]=cme(e);return{[n]:[{questionId:e.id,answer:t}]}}function pme(e){return{figures:e.questions.filter(e=>["IntegerQuestion","FloatQuestion"].includes(e.__typename)),partition:e.questions.filter(e=>["ChoiceQuestion","MultipleChoiceQuestion","OpenEndedQuestion"].includes(e.__typename))}}function mme(e){const{figures:n,partition:t}=pme(e);return{figures:Array(n.length).fill(null),partition:Array(t.length).fill(null)}}function fme(e,n){if(!e)return n;const t=xn().keyBy(e.answers,"questionId");return n.map(e=>{const[,n]=cme(e),a=t[e.id]?.answer?JSON.parse(t[e.id].answer):null;return{...e,[n]:a}})}function yme(e){return e.tableOfContentsNumber?`**${e.tableOfContentsNumber} ${e.formulation}**`:e.formulation}function gme(e,n,t){return`${e.shortCode} ${n.tableOfContentsNumber||t?.tableOfContentsNumber}`}function hme(e){const{question:n,breakdown:t,draft:a}=e,i=(0,g.useCallback)(()=>{a||e.onDelete(e.breakdown.id)},[e,a]),l=(0,g.useCallback)((e,n)=>"id"in n?`${n.id}__${e.id}}`:`DraftQuestionCol__${e.id}`,[]),r=12/n.questions.length,{figures:o,partition:s}=pme(n);return(0,fe.jsxs)(Qpe,{wrap:"no",container:!0,item:!0,children:[o.map((n,a)=>(0,fe.jsx)(Kpe,{span:r,container:!0,item:!0,children:(0,fe.jsx)(Hpe,{answerOnBlur:!0,question:{...n,["FloatQuestion"===n.__typename?"reportedFloat":"reportedInt"]:e.breakdown.figures[a]},onAnswer:n=>{const t="FloatQuestion"===n.__typename?n.reportedFloat:n.reportedInt,i=aT()(["figures",a],t,e.breakdown);e.onChange(i)}})},l(n,t))),s.map((n,a)=>(0,fe.jsx)(Kpe,{span:r,container:!0,item:!0,children:(0,fe.jsx)(ime,{question:{...n,[cme(n)[1]]:e.breakdown.partition[a]},onAnswer:n=>{let t=null;"ChoiceQuestion"===n.__typename&&(t=n.reportedChoice),"MultipleChoiceQuestion"===n.__typename&&(t=n.reportedChoices),"OpenEndedQuestion"===n.__typename&&(t=n.reportedText);const i=aT()(["partition",a],t,e.breakdown);e.onChange(i)}})},l(n,t))),!e.draft&&(0,fe.jsx)(eme,{onClick:i})]})}function xme(e){let{question:n,onAnswer:t}=e;const a=(0,g.useMemo)(()=>n.reportedBreakdown||[],[n]),[i,l]=(0,g.useState)(mme(n)),r=(0,g.useCallback)(e=>{if(e.figures.every(e=>null!==e)&&e.partition.every(e=>null!==e)){const i={...e,id:(0,Wa.A)()};l(mme(n)),t({...n,reportedBreakdown:[i].concat(a)})}else l(e)},[l,n,t,a]),o=(0,g.useCallback)(e=>{t({...n,reportedBreakdown:a.map(n=>n.id===e.id?e:n)})},[n,t,a]),s=(0,g.useCallback)(e=>{t({...n,reportedBreakdown:(n.reportedBreakdown||[]).filter(n=>n.id!==e)})},[n,t]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(hme,{draft:!0,question:n,breakdown:i,onChange:r}),a.map(e=>(0,fe.jsx)(hme,{draft:!1,breakdown:e,question:n,onChange:o,onDelete:s},e.id))]})}const Tme=(e,n)=>{if(e.displaySettings?.colSpan)return e.displaySettings.colSpan;{const t=n.some(e=>e.formulation.length>=75);return 1===n.length||"OpenEndedRichQuestion"===e.__typename||t?12:6}};function bme(e){let{framework:n,question:t,questions:a,onAnswer:i}=e;return(0,fe.jsx)(Qpe,{wrap:"wrap",container:!0,item:!0,children:a.map(e=>(0,fe.jsx)(Kpe,{span:Tme(e,a),container:!0,item:!0,children:(0,fe.jsx)(Fme,{framework:n,question:e,onAnswer:i,parent:t})},e.id))})}const vme=(0,le.default)(ie.hh)`
  padding: ${e=>e.theme.geometry.sm.spacing};
`,Cme=(0,le.default)(ie.DZ)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,kme=le.default.ul`
  list-style-type: disc;
  list-style-position: inside;
`;function Sme(e){let{framework:n,question:t,onAnswer:a}=e;const[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(t.questions),[s,d]=(0,g.useState)(null),c=(0,g.useCallback)(()=>{l(!0)},[]),u=(0,g.useCallback)(e=>{i&&o(n=>n.map(n=>n.id===e.id?e:n)),s&&d(n=>{if(n){const i={...n,answers:n.answers.map(n=>n.questionId===e.id?{...n,answer:JSON.stringify(cme(e)[2])}:n)};return a({...t,reportedRows:t.reportedRows.map(e=>e.id===i.id?i:e)}),i}return n})},[o,s,i,t,a]),p=(0,g.useCallback)(()=>{i&&(l(!1),o(t.questions)),s&&d(null)},[i,o,t,s]),m=(0,g.useCallback)(()=>{const e=t.reportedRows||[];a({...t,reportedRows:e.concat({id:(0,Wa.A)(),answers:r.map(e=>({questionId:e.id,answer:JSON.stringify(cme(e)[2])}))})}),p()},[a,t,r,p]),f=(0,g.useCallback)(()=>{if(!s)return;const e=t.reportedRows||[];a({...t,reportedRows:e.filter(e=>e.id!==s.id)}),p()},[s,a,t,p]);return(0,fe.jsxs)("div",{children:[(0,fe.jsx)(ie.Yq,{onClick:c,children:"Add new row"}),!!t.reportedRows?.length&&(0,fe.jsx)(kme,{children:t.reportedRows.map((e,n)=>(0,fe.jsx)("li",{onClick:()=>d(e),children:(0,fe.jsxs)(ie.Yq,{inline:!0,children:["Row ",n+1]})},e.id))}),(0,fe.jsx)(ie.aF,{size:"lg",onDismiss:p,show:i||s,children:(0,fe.jsxs)(vme,{container:!0,item:!0,children:[(0,fe.jsx)(Cme,{align:"center",item:!0,children:t.formulation}),(0,fe.jsx)(bme,{question:t,framework:n,questions:i?r:fme(s,t.questions),onAnswer:u}),(0,fe.jsx)(ie.hh.Row,{children:i?(0,fe.jsx)(ie.hh.ButtonColumn,{type:"button",color:"success",onClick:m,children:"Save"}):(0,fe.jsx)(ie.hh.ButtonColumn,{type:"button",color:"danger",onClick:f,children:"Delete"})})]})})]})}const Nme=S.J1`
  mutation CreateDocumentRecord($input: CreateDocumentRecordInput!) {
    createDocumentRecord(input: $input) {
      ...DocumentFields
    }
  }
  ${uj}
`;function Ame(e){let{children:n,onUpload:t,predefinedValues:a}=e;const i=Je(),l=ol(),[r]=(0,ln.n)(Nme),{token:o}=qe(),s=(0,g.useCallback)(e=>n(e),[n]),d=(0,g.useCallback)(async e=>{let[n]=e;const s=(0,Wa.A)();await l(i,s,n);const d=await r({variables:{input:{id:s,accountId:i,fileName:n.name,userId:o.sub,source:gn.kL.S3,key:Oj(i,s),...a}}}),c=d?.data?.createDocumentRecord;c&&t&&t(c)},[i,o,l,t,r,a]);return(0,fe.jsx)(ie.bT,{onChange:d,accept:qt.allowedDocument.mimeType,children:s})}const Rme=S.Ay`
  fragment SingleQuestionFields on ReportingQuestion {
    id
    formulation
    shortFormulation
    reportingFrameworkId
    reportingFrameworkChapterId
    materialityMetricId
    parentId
    displaySettings {
      colSpan
      showFormulation
    }
    order
    tableOfContentsNumber
    ... on ChoiceQuestion {
      variants
      canSpecifyOwnChoice
      reportedChoice
    }
    ... on MultipleChoiceQuestion {
      variants
      canSpecifyOwnChoice
      reportedChoices
    }
    ... on YesNoQuestion {
      reportedAnswer
    }
    ... on OpenEndedQuestion {
      reportedText
    }
    ... on OpenEndedRichQuestion {
      reportedText
    }
    ... on IntegerQuestion {
      reportedInt
    }
    ... on FloatQuestion {
      reportedFloat
    }
    ... on DateQuestion {
      reportedDate
    }
  }
`,Dme=S.Ay`
  fragment ReportingQuestionFields on ReportingQuestion {
    ...SingleQuestionFields
    ... on QuestionSequence {
      questions {
        ...SingleQuestionFields
        ... on QuestionSequence {
          questions {
            ...SingleQuestionFields
          }
        }
      }
    }
    ... on QuestionSequenceRepeatable {
      questions {
        ...SingleQuestionFields
        ... on QuestionSequence {
          questions {
            ...SingleQuestionFields
          }
        }
      }
      reportedRows {
        id
        answers {
          questionId
          answer
        }
      }
    }
    ... on BreakdownQuestion {
      questions {
        ...SingleQuestionFields
      }
      reportedBreakdown {
        id
        figures
        partition
      }
    }
  }
  ${Rme}
`,Lme=S.Ay`
  query GetReportingFrameworkQuestions($accountId: ID!, $frameworkId: ID!, $chapterId: ID) {
    getReportingQuestions(accountId: $accountId, frameworkId: $frameworkId, chapterId: $chapterId) {
      ...ReportingQuestionFields
    }
  }
  ${Dme}
`,Ime=S.Ay`
  mutation AnswerReportingQuestions($accountId: ID!, $input: AnswerReportingQuestionInput!) {
    answerReportingQuestions(accountId: $accountId, input: $input) {
      ...ReportingQuestionFields
    }
  }
  ${Dme}
`,jme=S.Ay`
  query GetReportProgressChapterBreakdown($accountId: ID!, $frameworkId: ID!) {
    getReportProgressChapterBreakdown(accountId: $accountId, frameworkId: $frameworkId) {
      totalProgress
      subProgressBreakdown {
        id
        name
        progress
      }
    }
  }
`,wme=S.Ay`
  query GetReportProgressGroupBreakdown($accountId: ID!, $frameworkId: ID!, $groupId: ID) {
    getReportProgressGroupBreakdown(accountId: $accountId, frameworkId: $frameworkId, groupId: $groupId ) {
      totalProgress
      subProgressBreakdown {
        id
        name
        progress
      }
    }
  }
`,Ome=S.Ay`
  mutation attachDocument($id: ID!, $accountId: ID!, $systemId: ID!, $linkId: ID!) {
    attachDocumentToManagementSystem(input: { id: $systemId, accountId: $accountId, linkId: $linkId, documentId: $id })
  }
`,Eme=(0,le.default)(ie.Yq)`
  display: flex;
  align-items: center;
  height: 100%;
`;function _me(e){let{question:n,framework:t,parent:a}=e;const{showNotification:i}=tn(),[l]=(0,ln.n)(Ome,{onCompleted:()=>{i("Document has been uploaded!")}}),r=Je(),o=(0,g.useCallback)(e=>{l({variables:{accountId:r,id:e.id,systemId:n.reportingFrameworkId,linkId:n.reportingFrameworkChapterId}})},[l,r,n]);return(0,fe.jsx)(Ame,{onUpload:o,predefinedValues:{category:"Reporting Frameworks",library:gn.zM.Governance,managementSystemChapterId:n.reportingFrameworkChapterId,managementSystemCode:gme(t,n,a),managementSystemId:t.id},children:e=>(0,fe.jsx)(Eme,{onClick:e,children:n.formulation})})}function Fme(e){let{framework:n,question:t,onAnswer:a,parent:i}=e;switch(t.__typename){case"YesNoQuestion":return(0,fe.jsx)(Ype,{question:t,onAnswer:a});case"OpenEndedQuestion":case"OpenEndedRichQuestion":case"MultipleChoiceQuestion":case"ChoiceQuestion":return(0,fe.jsx)(ime,{question:t,onAnswer:a});case"IntegerQuestion":case"FloatQuestion":return(0,fe.jsx)(Hpe,{question:t,onAnswer:a});case"DateQuestion":return(0,fe.jsx)(sme,{question:t,onAnswer:a});case"BreakdownQuestion":return(0,fe.jsx)(xme,{question:t,onAnswer:a});case"QuestionSequence":return(0,fe.jsx)(bme,{question:t,framework:n,questions:t.questions,onAnswer:a});case"QuestionSequenceRepeatable":return(0,fe.jsx)(Sme,{framework:n,question:t,onAnswer:a});case"AttachmentQuestion":return(0,fe.jsx)(_me,{parent:i,framework:n,question:t,onAnswer:a});default:return null}}const Pme=(0,le.default)(ie.hh)`
  & .MuiInputLabel-root {
    z-index: 0; /* Fix of labels overlapping the modal window */
  }
`;function Bme(e){let{framework:n,questions:t,onAnswer:a}=e;return(0,fe.jsx)(Pme,{container:!0,children:t.map(e=>(0,fe.jsxs)(g.Fragment,{children:[(0,fe.jsx)(Zpe,{source:yme(e)}),["BreakdownQuestion","QuestionSequence"].includes(e.__typename)?(0,fe.jsx)(Fme,{framework:n,question:e,onAnswer:a}):(0,fe.jsx)(Qpe,{container:!0,item:!0,children:(0,fe.jsx)(Fme,{framework:n,question:e,onAnswer:a})})]},e.id))})}function Ume(){const e=function(){const e=(0,C.m)(),n=Je();return(0,g.useCallback)((t,a)=>e.readQuery({query:Lme,variables:{accountId:n,frameworkId:t,chapterId:a}}),[e,n])}(),n=function(){const e=(0,C.m)(),n=Je();return(0,g.useCallback)((t,a,i)=>e.writeQuery({query:Lme,data:{getReportingQuestions:t},variables:{accountId:n,frameworkId:a,chapterId:i}}),[e,n])}();return(0,g.useCallback)((t,a,i)=>{const l=e(a,i);if(l?.getReportingQuestions){const e=dme(l.getReportingQuestions,t);n(e,a,i)}},[e,n])}function $me(e,n){const{data:t,...a}=function(e){const n=Je(),{showNotification:t}=tn();return(0,x.IT)(Lme,{variables:{accountId:n,frameworkId:e.frameworkId,chapterId:e.chapterId},onError:e=>{t(`Couldn't load reporting framework: ${e}`,"danger")}})}({frameworkId:e,chapterId:n}),i=function(){const[e]=function(){const{showNotification:e}=tn();return(0,ln.n)(Ime,{onError:n=>{e(`Couldn't update the answer: ${n}`,"danger")}})}(),n=Je(),t=Ume();return(0,g.useCallback)(a=>{t(a,a.reportingFrameworkId,a.reportingFrameworkChapterId),e({variables:{accountId:n,input:ume(a)}})},[e,n,t])}();return[t?.getReportingQuestions||[],i,a]}function Mme(e){let{framework:n,page:t,buttons:a,title:i,synopsis:l,content:r,documents:o}=e;const[s,d,{loading:c}]=$me(n.id,t.id),u=(0,g.useMemo)(()=>({buttons:a,title:i||t.tocTitle}),[i,t.tocTitle,a]),p=(0,g.useMemo)(()=>({mode:"markdown",content:t.synopsis,editable:!1}),[t.synopsis]),m=(0,g.useMemo)(()=>({loading:c,render:()=>(0,fe.jsx)(Bme,{framework:n,questions:s,onAnswer:d})}),[s,d,c,n]),f=(0,g.useMemo)(()=>({records:t.documents||[],readonly:!1}),[t.documents]);return(0,fe.jsx)($pe,{header:u,synopsis:l||p,content:r||m,documents:o||f,managementSystem:n,page:t})}const Vme=le.default.div`
  height: 20px;
  width: 80%;
  background-color: #e0e0de;
  border-radius: 50px;
  margin: 10px;
`,Gme=le.default.div`
  position: relative;
  height: 100%;
  width: ${e=>e.completed||0}%;
  background-color: ${e=>{let{theme:n}=e;return n.colors.success.normal.background}};
  border-radius: inherit;
  text-align: right;
  > label {
    margin-left: 10px;
  }
`,zme=e=>{let{completed:n=0}=e;return(0,fe.jsx)(Vme,{children:(0,fe.jsx)(Gme,{completed:n,children:(0,fe.jsx)(ie.JU,{color:"dark",children:`${n||0}%`})})})},Wme=e=>{let{name:n,completed:t,link:a}=e;return(0,fe.jsxs)(ie.fI,{container:!0,item:!0,children:[(0,fe.jsx)(ie.fv,{container:!0,item:!0,span:6,vdistribution:"center",distribution:"start",children:a?(0,fe.jsx)(ie.Yq,{component:"routerLink",to:a,children:n}):(0,fe.jsx)("span",{children:n})}),(0,fe.jsx)(ie.fv,{item:!0,span:6,vdistribution:"center",children:(0,fe.jsx)(zme,{completed:t})})]})};function qme(e,n){const t=Je(),{showNotification:a}=tn();return(0,x.IT)(jme,{...n,variables:{accountId:t,frameworkId:e},fetchPolicy:"network-only",onError:e=>{a(`Couldn't load report progress: ${e}`,"danger")}})}const Jme=(0,le.default)(ie.fI)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,Yme=(0,le.default)(ie.DZ)`
  margin-top: 20px;
`;function Hme(e){let{reportProgress:n,deadline:t,withHyperlinks:a,managementSystem:i}=e;const l=bn()().startOf("day"),r=t?bn()(t):null,o=r?bn().duration(r.diff(l)).asDays():null;return(0,fe.jsxs)(ie.fv,{container:!0,children:[n.subProgressBreakdown.map(e=>(0,fe.jsx)(Wme,{completed:e.progress,name:e.name,link:a?`${Ra(i.type)}/${i.id}/${e.id}`:"/"},`ProgressChartRow__${e.id}`)),r&&(0,fe.jsxs)(Jme,{children:["Deadline for completion: ",r.format("LL")," (",r.isBefore(l)?"Days until deadline":"Days since overdue"," - ",o,")"]})]})}function Kme(e){let{managementSystem:n}=e;const{data:t,loading:a}=qme(n.id),i=(0,g.useMemo)(()=>function(e,n){if(!e)return null;const{tree:t}=Na(n),a=xn().keyBy(e.subProgressBreakdown,"id"),i=xn()(t).filter(e=>!!a[e.id]).map(e=>({id:e.id,name:xn().get(t,[e.id,"tocTitle"]),progress:xn().round(xn().get(a,[e.id,"progress"],0),0)})).value();return{...e,subProgressBreakdown:i}}(t?.getReportProgressChapterBreakdown,n),[n,t?.getReportProgressChapterBreakdown]);return a||!i?(0,fe.jsx)(fe.Fragment,{children:"Loading..."}):(0,fe.jsx)(Hme,{reportProgress:i,managementSystem:n,withHyperlinks:!0})}function Qme(e){let{managementSystem:n,page:t,progressMainPage:a}=e;const{data:i,loading:l}=function(e,n){const t=Je(),{showNotification:a}=tn();return(0,x.IT)(wme,{variables:{accountId:t,frameworkId:e,groupId:n},fetchPolicy:"network-only",onError:e=>{a(`Couldn't load report progress: ${e}`,"danger")}})}(n.id,t?.id===a?null:t?.id),r=(0,g.useMemo)(()=>{const e=function(e,n){if(!e)return null;const{tree:t}=Na(n),a=xn().keyBy(e.subProgressBreakdown,"id"),i=n.chapters.map(e=>e.id),l=xn().orderBy([...e.subProgressBreakdown.reduce((e,n)=>{const l=i.includes(t[n.id].parent.id)?null:t[n.id].parent.id,r=i.includes(t[n.id].parent.id)?null:t[n.id].parent.title,o=i.includes(t[n.id].parent.id)?0:t[n.id].parent.index,s=e.get(l);return s?s.subProgressBreakdown.push({id:n.id,name:xn().get(t,[n.id,"tocTitle"]),progress:xn().round(xn().get(a,[n.id,"progress"],0)),index:xn().get(t,[n.id,"index"])}):e.set(l,{id:l,title:r,index:o,subProgressBreakdown:[{id:n.id,name:xn().get(t,[n.id,"tocTitle"]),progress:xn().round(xn().get(a,[n.id,"progress"],0)),index:xn().get(t,[n.id,"index"])}]}),e},new Map).values()].map(e=>{let{id:n,title:t,index:a,subProgressBreakdown:i}=e;return{id:n,title:t,index:a,progressBreakdown:{subProgressBreakdown:xn().orderBy(i,["index"],["asc"]),totalProgress:xn().round(xn().meanBy(i,e=>e.progress),0)}}}),["index"],["asc"]);return l}(i?.getReportProgressGroupBreakdown,n);return(0,fe.jsx)(fe.Fragment,{children:e?.map((e,t)=>(0,fe.jsxs)("div",{children:[e.title&&(0,fe.jsx)(Yme,{size:"lg",children:e.title}),(0,fe.jsx)(Hme,{reportProgress:e.progressBreakdown,managementSystem:n,withHyperlinks:!0})]},t))})},[n,i?.getReportProgressGroupBreakdown]);return l||!r?(0,fe.jsx)(fe.Fragment,{children:"Loading..."}):r}const Zme=le.default.div`
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex: 1;
`,Xme=le.default.div`
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: ${e=>e.percentage}%;
  height: ${e=>e.theme.geometry.md.spacing};
  background-color: ${e=>e.color};
`,efe=(0,le.default)(Gme)`
  position: absolute;
  z-index: 0;
`,nfe=le.default.span`
  z-index: 1;
`;function tfe(e){let{scores:n,currentScore:t}=e;return(0,fe.jsx)(Zme,{children:n.map((e,a)=>(0,fe.jsxs)(Xme,{percentage:(a+1)*(100/n.length),color:e.color,children:[t&&t.name===e.name&&(0,fe.jsx)(efe,{completed:t.progress}),(0,fe.jsx)(nfe,{children:e.name}),(0,fe.jsx)(nfe,{children:e.description})]},`ScoreChartRow_${e.name}`))})}const afe=[{level:"Leadership",name:"A",climateChangeMinPercentage:80,climateChangeMaxPercentage:100,color:"#C1D7EC"},{level:"",name:"A-",climateChangeMinPercentage:1,climateChangeMaxPercentage:44,color:"#C1D7EC"},{level:"Management",name:"B",climateChangeMinPercentage:45,climateChangeMaxPercentage:79,color:"#DBDBDB"},{level:"",name:"B-",climateChangeMinPercentage:1,climateChangeMaxPercentage:44,color:"#DBDBDB"},{level:"Awareness",name:"C",climateChangeMinPercentage:45,climateChangeMaxPercentage:79,color:"#CBE0B8"},{level:"",name:"C-",climateChangeMinPercentage:1,climateChangeMaxPercentage:44,color:"#CBE0B8"},{level:"Disclosure",name:"D",climateChangeMinPercentage:45,climateChangeMaxPercentage:79,color:"#F5D7B7"},{level:"",name:"D-",climateChangeMinPercentage:1,climateChangeMaxPercentage:44,color:"#F5D7B7"}];function ife(e){let{currentScore:n}=e;return(0,fe.jsx)(tfe,{currentScore:n,scores:afe.map(e=>({name:e.name,description:e.level,color:e.color}))})}function lfe(){const e=(0,g.useMemo)(()=>[{field:"level",headerName:"Level"},{headerName:"Climate change",valueGetter:e=>{let{data:n}=e;return`${(t=n).climateChangeMinPercentage}-${t.climateChangeMaxPercentage}%`;var t}},{field:"name",headerName:"Score band"}],[]);return(0,fe.jsx)(Pg,{rowIdField:"name",suppressRowTransform:!0,onGridReady:e=>{let{api:n}=e;n.sizeColumnsToFit()},getRowStyle:e=>({backgroundColor:e.data.color}),columnDefs:e,rowData:afe.slice().sort(),domLayout:"autoHeight"})}const rfe=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`,ofe=le.default.div`
  display: flex;
  height: auto;
`;function sfe(){return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(rfe,{children:(0,fe.jsx)(ife,{})}),(0,fe.jsx)(ofe,{children:(0,fe.jsx)(lfe,{})})]})}function dfe(e){let{page:n,framework:t}=e;const{showNotification:a}=tn(),i=(0,g.useMemo)(()=>[{title:"Generate report",color:"primary",onClick:()=>{a("Not implemented","warning")}}],[a]),l=(0,g.useMemo)(()=>({mode:"markdown",content:n.synopsis,editable:!1}),[n.synopsis]),r=(0,g.useMemo)(()=>({header:"Scoring scheme and parameters:",render:()=>(0,fe.jsx)(sfe,{})}),[]);return(0,fe.jsx)(Mme,{framework:t,page:n,buttons:i,synopsis:l,content:r})}function cfe(e){let{page:n,framework:t}=e;const{data:a}=qme(t.id),i=(0,g.useMemo)(()=>({mode:"jsx",content:(0,fe.jsx)(Kme,{managementSystem:t})}),[t]),l=(0,g.useMemo)(()=>({header:"Scoring progress:",render:()=>(0,fe.jsx)(ife,{currentScore:{name:"D-",progress:a?.getReportProgressChapterBreakdown.totalProgress||0}})}),[a?.getReportProgressChapterBreakdown]);return(0,fe.jsx)(Mme,{title:"Completion",page:n,framework:t,synopsis:i,content:l})}function ufe(e){let{page:n,framework:t}=e;const a=(0,m.Zp)(),i=(0,g.useMemo)(()=>[{title:"Learn more",color:"primary",onClick:()=>{a("/engage/course/scorm/eaf6fa55-fce4-4244-b324-ceea22ed5c90")}}],[a]);return(0,fe.jsx)(Mme,{framework:t,page:n,buttons:i})}function pfe(e){let{page:n,framework:t}=e;const a=(0,g.useMemo)(()=>[{title:"View guidance",color:"primary",onClick:()=>{window.open("https://www.cdp.net/en/guidance","noopener","noreferrer")}}],[]);return(0,fe.jsx)(Mme,{page:n,framework:t,buttons:a})}function mfe(e){let{page:n,framework:t}=e;const a=(0,g.useMemo)(()=>[{title:"View guidance",color:"primary",onClick:()=>{window.open("https://www.cdp.net/en/guidance","noopener","noreferrer")}}],[]);return(0,fe.jsx)(Mme,{page:n,framework:t,buttons:a})}function ffe(e){let{page:n,framework:t}=e;const{showNotification:a}=tn(),i=(0,g.useMemo)(()=>[{title:"Export disclosure",color:"primary",onClick:()=>{a("Not implemented","warning")}}],[a]);return(0,fe.jsx)(Mme,{framework:t,page:n,buttons:i})}function yfe(e){let{page:n,framework:t}=e;const{showNotification:a}=tn(),i=(0,g.useMemo)(()=>[{title:"Export disclosure",color:"primary",onClick:()=>{a("Not implemented","warning")}}],[a]);return(0,fe.jsx)(Mme,{page:n,framework:t,buttons:i})}function gfe(e){let{page:n,framework:t}=e;const a=(0,g.useMemo)(()=>[{title:"View guidance",color:"primary",onClick:()=>{window.open("https://www.cdp.net/en/guidance","noopener","noreferrer")}}],[]);return(0,fe.jsx)(Mme,{framework:t,page:n,buttons:a})}function hfe(e){let{page:n,framework:t}=e;const a=(0,m.Zp)(),{governance:i}=or(),l=(0,g.useMemo)(()=>[{title:"Export disclosure",color:"primary",onClick:()=>{a(i.root)}}],[a,i.root]);return(0,fe.jsx)(Mme,{page:n,framework:t,buttons:l})}function xfe(e){let{page:n,framework:t}=e;const a=(0,g.useMemo)(()=>n?.content?.headerButton?[{title:n?.content?.headerButton?.text||"Learn more",color:"primary",onClick:()=>{n?.content?.headerButton?.link&&window.open(n?.content?.headerButton?.link)}}]:[],[n]);return(0,fe.jsx)(Mme,{page:n,framework:t,buttons:a})}let Tfe=function(e){return e.SFDR="cacfd19f-3752-4c6a-b08c-543e77e6c32e",e.EBA="28d46d20-1e94-454e-a541-1764a72e5a59",e.ECB="f099d419-b491-42a1-9ffc-fbac1c2c2aae",e}({});function bfe(e){let{page:n,framework:t}=e;const a=(0,g.useMemo)(()=>({header:"Progress:",render:()=>(0,fe.jsx)(Qme,{managementSystem:t,page:n,progressMainPage:Tfe.EBA})}),[t,n]);return(0,fe.jsx)(Mme,{title:"Completion",page:n,framework:t,content:a})}function vfe(e){let{page:n,framework:t}=e;const a=(0,g.useMemo)(()=>n?.content?.headerButton?[{title:n?.content?.headerButton?.text||"Learn more",color:"primary",onClick:()=>{n?.content?.headerButton?.link&&window.open(n?.content?.headerButton?.link)}}]:[],[n]);return(0,fe.jsx)(Mme,{page:n,framework:t,buttons:a})}function Cfe(e){let{page:n,framework:t}=e;const a=(0,g.useMemo)(()=>({header:"Progress:",render:()=>(0,fe.jsx)(Qme,{managementSystem:t,page:n,progressMainPage:Tfe.ECB})}),[t,n]);return(0,fe.jsx)(Mme,{title:"Completion",page:n,framework:t,content:a})}const kfe=(()=>{const e=[];return[{name:"Business Models and Strategy (Chapter 4)",chapters:[{name:"Business Environment (Expectation 4.1)"},{name:"Business Strategy (Expectation 4.2)"}]},{name:"Governance and Risk Appetite (Chapter 5)",chapters:[{name:"Management Body (Expectation 5.1)"},{name:"Risk Appetite (Expectation 5.2)"},{name:"Organisation Structure (Expectation 5.3)"},{name:"Reporting (Expectation 5.4)"}]},{name:"Risk Management (Chapter 6)",chapters:[{name:"Risk Management Framework (Expectation 6.1)"},{name:"Credit Risk Management (Expectation 6.2)"},{name:"Operational Risk Management (Expectation 6.3)"},{name:"Market Risk Management (Expectation 6.4)"},{name:"Scenario Analysis and Stress Testing (Expectation 6.5)"},{name:"Liquidity Risk Management (Expectation 6.6)"}]},{name:"Disclosures (Chapter 7)",chapters:[{name:"Disclosure Policies and Procedures (Expectation 7.1)"},{name:"Content of Climate-Related and Environmental Risk Disclosures (Expectation 7.2)"}]}].forEach(n=>{n.chapters?.forEach(t=>{e.push("(^"+(0,hn.escapeRegExp)(`ECB.${n.name}.${t.name}`)+"(\\..+)?$)")})}),e.join("|")})(),Sfe=/^ECB\.Progress(.+$|$)/;function Nfe(e){let{page:n,framework:t}=e;const a=(0,g.useMemo)(()=>n?.content?.headerButton?[{title:n?.content?.headerButton?.text,color:"primary",onClick:()=>{n?.content?.headerButton?.link&&window.open(n?.content?.headerButton?.link)}}]:[],[n]);return(0,fe.jsx)(Mme,{page:n,framework:t,buttons:a})}function Afe(e){let{page:n,framework:t}=e;const a=(0,g.useMemo)(()=>({header:"Progress:",render:()=>(0,fe.jsx)(Qme,{managementSystem:t,page:n,progressMainPage:Tfe.SFDR})}),[t,n]);return(0,fe.jsx)(Mme,{title:"Completion",page:n,framework:t,content:a})}function Rfe(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.parent?Rfe(e.parent,[e.title,...n]):n}function Dfe(e,n){return[e.shortCode].concat(Rfe(n)).join(".")}function Lfe(e){let{managementSystem:n,page:t,canEditContent:a,isReadOnly:i}=e;const l=Dfe(n,t);switch(l){case"CDP.Overview":return(0,fe.jsx)(dfe,{framework:n,page:t});case"CDP.Overview.Track your progress":return(0,fe.jsx)(cfe,{framework:n,page:t});case"CDP.Introduction":return(0,fe.jsx)(ufe,{framework:n,page:t});case"CDP.Governance":return(0,fe.jsx)(pfe,{framework:n,page:t});case"CDP.Risks and Opportunities":return(0,fe.jsx)(mfe,{framework:n,page:t});case"CDP.Risks and Opportunities.Risks":return(0,fe.jsx)(ffe,{framework:n,page:t});case"CDP.Risks and Opportunities.Opportunities":return(0,fe.jsx)(yfe,{framework:n,page:t});case"CDP.Business Strategy":return(0,fe.jsx)(gfe,{framework:n,page:t});case"CDP.Targets and Performance":case"CDP.Emissions Methodology":return(0,fe.jsx)(Mme,{framework:n,page:t});case"CDP.Verification":return(0,fe.jsx)(hfe,{framework:n,page:t});case"CDP.Emissions Data":case"CDP.Emissions Breakdown":return(0,fe.jsx)(Mme,{framework:n,page:t});case l.match(/^CDP\.Other land management impacts$/)?.input:return(0,fe.jsx)(Mpe,{managementSystem:n,page:t,canEditContent:a,isReadOnly:i});case l.match(/^CDP\..+$/)?.input:return(0,fe.jsx)(Mme,{framework:n,page:t});case l.match(/^GRI\.(Content Index|GRI 2|GRI 3|Material Topics)\.(The organization and its reporting practices|Activities and workers|Governance|Strategy, policies and practices|Stakeholder engagement|Material Topics|Management of material topics|3-3 Management of material topics|1 Business model resilience|2 Climate change & GHG emissions|3 Customer privacy & data security|4 Employee diversity & inclusion|5 Employee health & safety|6 Ethical corporate behavior|7 Human rights)$/)?.input:return(0,fe.jsx)(Mpe,{managementSystem:n,page:t,canEditContent:a,isReadOnly:i});case l.match(/^EBA\.(Environmental Risk|Social Risk|Governance Risk)\.(Business Strategy and Processes|Governance|Risk Management)\..+$/)?.input:return(0,fe.jsx)(xfe,{framework:n,page:t});case l.match(/^EBA\.Progress(.+$|$)/)?.input:return(0,fe.jsx)(bfe,{framework:n,page:t});case l.match(kfe)?.input:return(0,fe.jsx)(vfe,{framework:n,page:t});case l.match(Sfe)?.input:return(0,fe.jsx)(Cfe,{framework:n,page:t});case l.match(/^SFDR\.(Entity)\..+$/)?.input:return(0,fe.jsx)(Nfe,{framework:n,page:t});case l.match(/^SFDR\.Performance(.+$|$)/)?.input:return(0,fe.jsx)(Afe,{framework:n,page:t});default:return(0,fe.jsx)(Mpe,{managementSystem:n,page:t,canEditContent:a,isReadOnly:i})}}const Ife=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,jfe=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,wfe=(0,le.default)(ie.GQ)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  display: inline-flex;
  flex: 0 0 auto;
`,Ofe=le.default.div`
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,Efe=le.default.div`
  background-color: ${e=>e.theme.colors.basic.white};
  width: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing} ${e=>e.theme.geometry.sm.spacing} 0
    ${e=>e.theme.geometry.sm.spacing};
`,_fe=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
`,Ffe=(0,le.default)(ie.fv)`
  max-height: 100vh;
  overflow: auto;
`,Pfe=le.default.div`
  display: flex;
  width: 100%;
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Bfe=()=>{const{id:e}=(0,m.g)(),{pathname:n}=(0,m.zy)(),t=n.split("/").pop(),a=Je(),i=lr(),l=!i.document.find(e=>e.startsWith("create")),{loading:r,data:o,error:s,refetch:d}=(0,x.IT)(Wue,{variables:{id:e,accountId:a},notifyOnNetworkStatusChange:!1}),c=(0,g.useCallback)(()=>d({id:e,accountId:a}),[e,a,d]),u=(0,hn.cloneDeep)(o?.getManagementSystemById);if(!u)return null;const{tree:p}=Na(u),f=p[t]||u,y=i.governance.some(e=>e.startsWith("attachContentToManagementSystem")),h=[{title:"Governance",to:".."},...La(u,p,f)],T=p[t]||u,b=(0,fe.jsx)(Lfe,{managementSystem:u,page:T,canEditContent:y,isReadOnly:l,refetch:()=>{d({id:e,accountId:a})}});return(0,fe.jsxs)(Ife,{children:[(0,fe.jsx)(xV,{name:"ManagementSystemOverviewHeader",title:u?.title||"",breadcrumbs:h,icon:"pencil-alt",iconColor:"tertiary"}),r&&(0,fe.jsx)(jfe,{children:(0,fe.jsx)(ie.Ip,{})}),"Forbidden"===s?.graphQLErrors?.[0]?.message&&(0,fe.jsx)(Ec,{name:"Forbidden_Management_System",error:s}),s&&"Forbidden"!==s?.graphQLErrors?.[0]?.message&&(0,fe.jsx)($c,{name:"LoadFailed_Management_System",error:s,retry:()=>c}),!r&&u&&(0,fe.jsxs)(_fe,{container:!0,children:[(0,fe.jsxs)(Ffe,{span:4,item:!0,children:[(0,fe.jsx)(Efe,{children:(0,fe.jsx)(Pfe,{children:(0,fe.jsxs)(Ofe,{children:[(0,fe.jsx)(wfe,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"link"}),(0,fe.jsx)(ie.DZ,{name:"LegislationItem_Docs__Title",inline:!0,children:"REPORTING_FRAMEWORK"===u.type?"Reporting Framework":"Management System Breakdown"})]})})}),(0,fe.jsx)(Zue,{active:t||u?.id,menu:Kue(u,p)})]}),(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"",element:b}),(0,fe.jsx)(m.qh,{path:":itemId",element:b})]})]})]})},Ufe=[{field:"country",headerName:"Country"},{field:"type",headerName:"Property Type"},{field:"assets",headerName:"Assets"},{field:"area",headerName:"Floor Area"},{field:"gav",headerName:"% GAV"}],$fe=()=>{const[e]=(0,g.useState)([{country:"UK",type:"Office",assets:3,area:"120,000",gav:30},{country:"Italy",type:"Retail",assets:6,area:"400,000",gav:40},{country:"USA",type:"Office",assets:2,area:"50,000",gav:25},{country:"France",type:"Hotel",assets:1,area:"100,000",gav:70},{country:"China",type:"Education",assets:1,area:"75,000",gav:30},{country:"Australia",type:"Healthcare",assets:1,area:"12,000",gav:5}]);return(0,fe.jsx)("div",{className:"ag-theme-alpine",style:{height:400,width:700},children:(0,fe.jsx)(Dg.W6,{onGridReady:function(e){e.api.sizeColumnsToFit()},rowData:e,columnDefs:Ufe})})},Mfe=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,Vfe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,Gfe=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,zfe=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,Wfe=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,qfe=[{value:"1",label:"Government"},{value:"2",label:"Public (listed) – Property company"},{value:"3",label:"Public (listed) – Real Estate Investment Trust (REIT)"},{value:"4",label:"Private (non-listed)"}],Jfe=[{value:"1",label:"Core"},{value:"2",label:"Value Added"},{value:"3",label:"Opportunistic"},{value:"4",label:"Debt"}],Yfe=[{value:"1",label:"Open End"},{value:"2",label:"Closed End"}],Hfe=[{value:"1",label:"Club Deal"},{value:"2",label:"Direct Investment"},{value:"3",label:"Fund"},{value:"4",label:"Joint Venture"},{value:"5",label:"Separate Account"},{value:"6",label:"Special Purpose Vehicle"}],Kfe=[{value:"1",label:"2020"},{value:"2",label:"2021"}],Qfe=[{value:"1",label:"Calenadar Year"},{value:"2",label:"Fiscal Year"}],Zfe=[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],Xfe=[{value:"1",label:"GBP"},{value:"2",label:"USD"},{value:"3",label:"AED"},{value:"4",label:"EUR"}],eye=[{value:"1",label:"Square Feet"},{value:"2",label:"Square Meters"}],nye=[{value:"1",label:"United Kingdom"},{value:"2",label:"United States"},{value:"3",label:"Germany"},{value:"4",label:"France"},{value:"5",label:"China"}],tye=[{value:"1",label:"Retail"},{value:"2",label:"Office"},{value:"3",label:"Industrial"},{value:"4",label:"Residential"},{value:"5",label:"Hotel"},{value:"6",label:"Lodging"},{value:"7",label:"Education"},{value:"8",label:"Technology/Science"},{value:"9",label:"Healthcare"},{value:"10",label:"Mixed Use"},{value:"11",label:"Diversified"},{value:"12",label:"Other"}],aye=[{value:"1",label:"Management of standing investments only"},{value:"2",label:"Management of standing investments and development of new construction and major renovation projects"},{value:"3",label:"Development of new construction and major renovation projects"}],iye=e=>{const[n,t]=(0,g.useState)({}),a=e=>{const a=e.target.value||e.target.select;t({...n,[e.target.name]:a})};return(0,fe.jsx)(ie.aF,{size:"md",show:!0,dismissable:!0,name:"GRESBContainer__Modal",onDismiss:e.onDismiss,children:(0,fe.jsxs)(Mfe,{name:"Characteristics-modal",children:[(0,fe.jsx)(Wfe,{name:"heading",size:"lg",children:"Characteristics"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Entity Name"})}),(0,fe.jsx)(ie.ks,{onChange:a,value:n.entityName||"",name:"entityName",box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Nature of Ownership"})}),(0,fe.jsx)(ie.l6,{name:"ownership",onChange:a,value:n.ownership||null,options:qfe})]})}),"4"===n.ownership&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Investment Style"})}),(0,fe.jsx)(ie.l6,{name:"investmentStyle",onChange:a,value:n.investmentStyle||null,options:Jfe})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Open / Closed End"})}),(0,fe.jsx)(ie.l6,{name:"end",onChange:a,value:n.end||null,options:Yfe})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Investment Vehicle"})}),(0,fe.jsx)(ie.l6,{name:"vehicle",onChange:a,value:n.vehicle||null,options:Hfe})]})})]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Entity Commencement Date"})}),(0,fe.jsx)(ie.l6,{name:"commencement",onChange:a,value:n.commencement||null,options:Kfe})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Reporting Period"})}),(0,fe.jsx)(ie.l6,{name:"reporting",onChange:a,value:n.reporting||null,options:Qfe})]})}),"2"===n.reporting&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Starting Month"})}),(0,fe.jsx)(ie.l6,{name:"starting",onChange:a,value:n.starting||null,options:Zfe})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Reporting Currency"})}),(0,fe.jsx)(ie.l6,{name:"currency",onChange:a,value:n.currency||null,options:Xfe})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Gross Asset Value in millions (At end of period)"})}),(0,fe.jsx)(ie.ks,{onChange:a,value:n.value||"",name:"value",box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Floor Area Unit"})}),(0,fe.jsx)(ie.l6,{name:"area",onChange:a,value:n.area||null,options:eye})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Portfolio Location"})}),(0,fe.jsx)(ie.l6,{name:"location",onChange:a,value:n.location||null,options:nye})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Predominemnt Proprty Type"})}),(0,fe.jsx)(ie.l6,{name:"property",onChange:a,value:n.property||null,options:tye})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Vfe,{item:!0,children:[(0,fe.jsx)(zfe,{children:(0,fe.jsx)(Gfe,{children:"Entity's Core Business"})}),(0,fe.jsx)(ie.l6,{name:"business",onChange:a,value:n.business||null,options:aye})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(Vfe,{item:!0,container:!0,children:(0,fe.jsx)(ie.$n,{color:"success",children:"Save"})})})]})})},lye=(0,le.default)(ie.fv)`
  flex: 1;
  padding-left: ${e=>e.theme.geometry.md.spacing};
`,rye=(0,le.default)(ie.fv)`
  display: flex;
  flex-direction: row;
  align-items: center;
`,oye=le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
`,sye=(0,le.default)(ie.GQ)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  display: inline-flex;
  flex: 0 0 auto;
`,dye=(0,le.default)(ie.fI)`
  display: flex;
  align-items: center;
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,cye=(0,le.default)(ie.DZ)`
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
`,uye=(0,le.default)(ie.fv)`
  flex-grow: 0;
  background-color: ${e=>e.theme.colors.basic.white};
  margin-bottom: 0 ${e=>e.theme.geometry.md.spacing};
  padding: ${e=>e.theme.geometry.sm.spacing};
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`,pye=(0,le.default)(ie.fI)`
  display: flex;
  align-items: start;
  justify-content: space-between;
`,mye=le.default.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: ${e=>e.theme.colors.basic.white};
  padding: ${e=>e.theme.geometry.sm.spacing};
  width: 100%;
`,fye=le.default.div`
  display: flex;
  width: 100%;
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
`,yye=le.default.div`
  padding: ${e=>e.theme.geometry.sm.spacing};
`;function gye(e){let{managementSystem:n,managementSystemTree:t,canEditContent:a,isReadOnly:i,refetch:l}=e;const{itemId:r}=(0,m.g)(),o=t[r]||n,[s,d]=(0,g.useState)(!1),[c,u]=(0,g.useState)(null),[f,y]=(0,g.useState)(null),[h,{error:x}]=(0,ln.n)(que),[T]=(0,ln.n)(Jue),b=Je();return(0,fe.jsxs)(lye,{container:!0,item:!0,children:[(0,fe.jsxs)(uye,{container:!0,item:!0,children:[(0,fe.jsx)(dye,{item:!0,container:!0,children:(0,fe.jsxs)(rye,{span:12,item:!0,children:[(0,fe.jsxs)(ie.fv,{span:8,item:!0,children:[(0,fe.jsx)(sye,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"pencil-alt"}),(0,fe.jsx)(ie.DZ,{inline:!0,children:o.tocTitle||o.title})]}),o.content?.headerButton&&(0,fe.jsxs)(ie.fv,{span:4,item:!0,children:[o.content?.headerButton.link&&(0,fe.jsx)(ie.Yq,{target:"__blank",href:o.content?.headerButton.link,children:(0,fe.jsx)(ie.$n,{children:o.content?.headerButton.text})}),o.content?.headerButton.modal&&(0,fe.jsx)(ie.$n,{onClick:()=>y(o.content?.headerButton.modal),children:o.content?.headerButton.text})]})]})}),(0,fe.jsxs)(oye,{container:!0,item:!0,children:[(0,fe.jsx)(cye,{size:"md",children:"Overview:"}),a?(0,fe.jsx)(xT,{onSave:e=>(async(e,n,t)=>{T({variables:{accountId:b,id:n,linkId:t,synopsis:iT(e)},update:a=>{const i=a.readQuery({query:Wue,variables:{id:n,accountId:b}});i.getManagementSystemById.id===t?i.getManagementSystemById.synopsis=iT(e):i.getManagementSystemById.chapters.forEach(n=>{n.id===t&&(n.synopsis=iT(e)),n.chapters.forEach(n=>{n.id===t&&(n.synopsis=iT(e))})}),a.writeQuery({data:i,query:Wue})}}).catch(()=>{u({message:"Something went wrong when saving your content. Please try again later.",color:"danger"})})})(e,n.id,o.id),source:o.synopsis||"Add your own content here."}):(0,fe.jsx)(ie.To,{source:o.synopsis||"Add your own content here."})]})]}),!!f&&(0,fe.jsx)(iye,{onDismiss:()=>y(null)}),o.content?.showInvestments&&(0,fe.jsxs)(uye,{container:!0,item:!0,children:[(0,fe.jsx)(dye,{item:!0,container:!0,children:(0,fe.jsx)(rye,{span:12,item:!0,children:(0,fe.jsxs)(ie.fv,{span:8,item:!0,children:[(0,fe.jsx)(sye,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"pencil-alt"}),(0,fe.jsx)(ie.DZ,{inline:!0,children:"Standing Investments Portfolio"})]})})}),(0,fe.jsx)(oye,{container:!0,item:!0,children:(0,fe.jsx)($fe,{})})]}),o.content?.showAssets&&(0,fe.jsx)(uye,{container:!0,item:!0,children:(0,fe.jsx)(oye,{container:!0,item:!0,children:["A","B","C","D","E"].map(e=>(0,fe.jsx)(GJ,{heading:`Asset ${e}`,hasChildren:!0,children:(0,fe.jsx)(ie.EY,{children:"Asset Details..."})},e))})}),o.content?.showCompletion&&(0,fe.jsxs)(uye,{container:!0,item:!0,children:[(0,fe.jsx)(dye,{item:!0,container:!0,children:(0,fe.jsx)(rye,{span:12,item:!0,children:(0,fe.jsxs)(ie.fv,{span:8,item:!0,children:[(0,fe.jsx)(sye,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"pencil-alt"}),(0,fe.jsx)(ie.DZ,{inline:!0,children:"Completion"})]})})}),(0,fe.jsx)(oye,{container:!0,item:!0,children:o.chapters?.map(e=>(0,fe.jsx)(Wme,{completed:e.completion,name:e.title},e.id))})]}),(0,fe.jsx)(pye,{container:!0,item:!0,children:(0,fe.jsxs)(mye,{children:[(0,fe.jsx)(fye,{children:(0,fe.jsxs)(dye,{span:12,children:[(0,fe.jsx)(sye,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"file-alt"}),(0,fe.jsx)(ie.DZ,{inline:!0,children:"Evidence Library"})]})}),(0,fe.jsx)(fye,{children:(0,fe.jsx)(cye,{size:"md",children:"Upload documents to support this section of the management system."})}),(0,fe.jsx)(yye,{children:(0,fe.jsxs)(ie.FN,{show:3,scroll:1,width:"675px",infinite:!1,children:[new Array(wa(o.documents)).fill(0).map((e,n)=>(0,fe.jsx)(Wde,{disabled:i,onClick:()=>d(!0),children:(0,fe.jsx)(ie.ON,{title:"Upload Evidence"})},`upload-evidence${n}`)),o.documents.map(e=>(0,fe.jsx)(p.Link,{target:"_blank",to:`/documents/all/${e.id}`,children:(0,fe.jsx)(ie.ON,{title:e.managementSystemCode?e.managementSystemCode.toUpperCase():`${n.shortCode.toUpperCase()} Evidence`,desc:e.fileName,uploaded:!0})},e.id))]})})]})}),s&&(0,fe.jsx)(Yse,{predefinedValues:{category:"Management Systems",library:"GOVERNANCE",managementSystemCode:Ia(n,o)},onDismiss:()=>{d(!1)},onUpload:async(e,t)=>{await h({variables:{id:t.id,accountId:b,systemId:n.id,linkId:o.id}}),(e=>{u(e?{message:"Something went wrong. Please try again later. ",color:"danger"}:{message:"Document successfully added. Now scanning for viruses.",color:"success"}),l()})(x)}}),c&&(0,fe.jsx)(ie.Eg,{name:c.message,show:!0,color:c.color,onClose:()=>u(null),children:c.message})]})}const hye=JSON.parse('{"id":"50f543aa-da72-4090-8f1f-0a1fbd218b0b","title":"GRESB","synopsis":"GRESB assesses and benchmarks the Environmental, Social and Governance (ESG) performance of real assets, providing standardized and validated data to the capital markets. The Assessments are guided by what investors and the industry consider to be material issues in the sustainability performance of real asset investments, and are aligned with international reporting frameworks, such as PRI, SASB, DJSI, TCFD recommendations, the Paris Climate Agreement, UN SDGs, region and country specific disclosure guidelines. Investors use the ESG data and GRESB’s analytical tools to monitor their investments, engage with their managers, and make decisions that lead to a more sustainable and resilient real asset industry.","shortCode":"GRESB","documents":[],"content":{"headerButton":{"text":"Asset Portal","link":"https://portal.gresb.com/user/sign_in"}},"chapters":[{"id":"f5ce1b1a-698b-44c1-8ab5-075e19faf667","title":"Introduction","number":"1","synopsis":"GRESB offers separate benchmarks for standing investments and development projects.\\n\\n**A: Portfolios with only standing investments submit:**\\n\\nManagement and Performance Components to receive a GRESB Standing Investments Benchmark Report including a GRESB Score and a GRESB Rating\\n\\n**B: Portfolios with only development projects submit:**\\n\\nManagement and Development Components to receive a GRESB Development Benchmark Report including a GRESB Score and a GRESB Rating\\n\\n**C: Portfolios with both standing investments and development projects submit:**\\n\\nManagement, Performance and Development Components to receive two Benchmark Reports: Standing Investments Benchmark Report including a GRESB Score and a GRESB Rating; and Development Benchmark Report including a GRESB Score and a GRESB RatingWhile each Component determines an individual score, the GRESB Scores and GRESB Ratings will only apply to entities completing all relevant Components for their portfolios.","documents":[],"chapters":[]},{"id":"6e089da9-0238-431b-85de-5ead1786d348","title":"Characteristics","number":"2","synopsis":"Information provided in the Characteristics section provides the framework for the submission of the GRESB Real Estate Assessment. This section determines the property types included across the Assessment and uses the information for benchmark-based scoring. The profile of the reporting entity is also used for peer group selection, which is based on property type and country/regional allocation, as well as the nature of ownership and management structure. GRESB requires property companies and funds to report on their whole portfolio, including both Landlord Controlled and Tenant Controlled areas but excluding vacant land, cash, ground leases or other non-real estate assets owned by the entity.","documents":[],"content":{"showInvestments":true,"headerButton":{"text":"Edit Response","modal":"characteristics"}},"chapters":[{"id":"db8ee548-6410-4f98-9a43-574d436ce7bd","title":"Asset Characteristics","number":"1","synopsis":"Asset Characteristics covers information intrinsic to the assets in the portfolio. It identifies the participating entity, based on characteristics that remain constant across different reporting periods (year-over-year).","documents":[],"chapters":[],"completion":80,"content":{"showAssets":true,"headerButton":{"text":"Edit Response","modal":"characteristics"}}},{"id":"b57c0076-8872-42b1-928a-e0943606990b","title":"Reporting Characteristics","number":"2","synopsis":"Reporting characteristics defines the reporting scope of the entity for the reporting period and determines the structure of the Assessment submission. Information provided relates to asset attributes that may change over time e.g. vacancy rate.","documents":[],"chapters":[],"completion":35,"content":{"showAssets":true,"headerButton":{"text":"Edit Response","modal":"characteristics"}}}]},{"id":"54a52a51-5af5-4664-9385-9785841810b7","title":"Management","number":"3","synopsis":"The Performance Component measures the entity’s asset portfolio performance, comprising of information collected at the asset and at the portfolio level. It is suitable for any real estate company or fund with operational assets.","documents":[],"content":{"showCompletion":true,"headerButton":{"text":"Guidance","link":"https://documents.gresb.com/generated_files/real_estate/2020/real_estate/reference_guide/complete.html"}},"chapters":[{"id":"197f8243-ad1f-4c09-9da4-46ca7b453a25","title":"Leadership","number":"1","completion":60,"synopsis":"This aspect evaluates how the entity integrates ESG into its overall business strategy. The purpose of this section is to (1) identify public ESG commitments made by the entity, (2) identify who is responsible for managing ESG issues and has decision-making authority; (3) communicate to investors how the entity structures management of ESG issues and (4) determine how ESG is embedded into the entity.","documents":[],"content":{"headerButton":{"text":"Guidance","link":"https://documents.gresb.com/generated_files/real_estate/2020/real_estate/reference_guide/complete.html#management-leadership"}},"chapters":[{"id":"11904f78-ae27-4a9e-a7a0-870325c9bf4b","title":"LE1 ESG Commitments","number":"1","synopsis":"This aspect evaluates public commitment to ESG leadership standards and/or principles.","documents":[]},{"id":"a0794640-d725-4b76-8f2c-9ec55cc7be1f","title":"LE2 ESG Objectives","number":"2","synopsis":"Awaiting description.","documents":[]},{"id":"2585379c-3464-4c4e-a460-f131ea0a5605","title":"LE3 ESG Individual Responsible","number":"3","synopsis":"Awaiting description.","documents":[]},{"id":"7cf06015-09d6-4597-bb16-9cc3f44dab47","title":"LE4 ESG Taskforce / Committee","number":"4","synopsis":"Awaiting description.","documents":[]},{"id":"ea7b0b2a-6b3b-4038-8076-94ebbd66389e","title":"LE5 ESG Senior Decision Maker","number":"5","synopsis":"Awaiting description.","documents":[]},{"id":"dca7ed78-48cf-4301-b11f-a921d61e5efe","title":"LE6 ESG Personnel Targets","number":"6","synopsis":"Awaiting description.","documents":[]}]},{"id":"ac917b27-0b0e-4b2c-a0b0-4ff9f0f169fc","title":"Risk Management","completion":45,"number":"2","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"8bc94101-55e0-49a9-832a-2413c3758219","title":"Policies","completion":25,"number":"3","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"eec3d774-32e9-4377-8283-5e54cbeb99b4","title":"Stakeholder Engagement","completion":90,"number":"4","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"eadaaaec-75cd-48cf-9990-e70d5143c371","title":"Reporting","completion":30,"number":"5","synopsis":"Awaiting description.","documents":[],"chapters":[]}]},{"id":"f1890cb6-fcb3-4121-b58a-58021f9a14bc","title":"Performance","number":"4","synopsis":"The Performance Component measures the entity’s asset portfolio performance, comprising of information collected at the asset and at the portfolio level. It is suitable for any real estate company or fund with operational assets.","documents":[],"content":{"showCompletion":true,"headerButton":{"text":"Guidance","link":"https://documents.gresb.com/generated_files/real_estate/2020/real_estate/reference_guide/complete.html"}},"chapters":[{"id":"4283ac1c-567d-46c9-9464-657ded85ff1c","title":"Risk Assesment","completion":25,"number":"1","synopsis":"Awaiting Description.","documents":[],"chapters":[]},{"id":"4073e1ad-34eb-45a1-a4eb-8dcd0d3c3923","title":"Targets","completion":40,"number":"2","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"15419d7b-1362-40d5-9721-a3f52808865b","title":"Energy","completion":55,"number":"3","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"f93d7e4a-adea-4544-b8dd-cf4aa86d88f1","title":"GHG","completion":30,"number":"4","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"71fa5ee8-a0d6-4337-8158-bd0d5d97c669","title":"Water","completion":80,"number":"5","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"d34481cc-a359-481e-99ce-e28a3c620c02","title":"Waste","completion":20,"number":"6","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"91331f54-0818-4c37-9751-72b9a9f39bd0","title":"Building Certifications","completion":15,"number":"7","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"3afa8a1c-611f-4d15-b63f-d1008173ea79","title":"Tenants & Community","completion":35,"number":"8","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"ff271b28-6cb1-4e5c-938f-9594ec56d3de","title":"Data Monitoring & Review","completion":20,"number":"9","synopsis":"Awaiting description.","documents":[],"chapters":[]}]},{"id":"20a7deaf-da93-4bcc-81e8-ea0a63e08687","title":"Development","number":"5","synopsis":"The Development Component measures the entity’s efforts to address ESG issues during the design, construction, and renovation of buildings. This component is suitable for entities involved innew construction (building design, site selection and/or construction) and/or major renovation projects, with on-going projects or completed projects during the reporting period.","documents":[],"content":{"showCompletion":true,"headerButton":{"text":"Guidance","link":"https://documents.gresb.com/generated_files/real_estate/2020/real_estate/reference_guide/complete.html"}},"chapters":[{"id":"2769d650-a818-416e-83c9-29833fb851c4","title":"ESG Requirements","completion":60,"number":"1","synopsis":"Awaiting Description.","documents":[],"chapters":[]},{"id":"97e54833-e953-478d-88b9-689ada8e422f","title":"Materials","completion":30,"number":"2","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"336e2bd2-de48-4f29-aa10-918d22cca1b5","title":"Energy","completion":30,"number":"3","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"8276e93e-02a0-47f1-bd0e-dd37e98f7f8c","title":"Water","completion":75,"number":"4","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"8a2fa525-d0a7-4b99-bba7-5cdac833946d","title":"Waste","completion":25,"number":"5","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"6eef4001-9d67-4b27-85bc-5571f0c3d065","title":"Building Certifications","completion":90,"number":"6","synopsis":"Awaiting description.","documents":[],"chapters":[]},{"id":"81c4f6a9-5f27-4e3e-bc1d-e9087692dd67","title":"Stakeholder Engagement","completion":60,"number":"7","synopsis":"Awaiting description.","documents":[],"chapters":[]}]}]}'),xye=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,Tye=(0,le.default)(ie.GQ)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  display: inline-flex;
  flex: 0 0 auto;
`,bye=le.default.div`
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,vye=le.default.div`
  background-color: ${e=>e.theme.colors.basic.white};
  width: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing} ${e=>e.theme.geometry.sm.spacing} 0
    ${e=>e.theme.geometry.sm.spacing};
`,Cye=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
`,kye=(0,le.default)(ie.fv)`
  max-height: 100vh;
  overflow: auto;
`,Sye=le.default.div`
  display: flex;
  width: 100%;
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Nye=()=>{const{pathname:e}=(0,m.zy)(),n=e.split("/").pop(),t=lr(),a=!t.document.find(e=>e.startsWith("create")),i=hye,{tree:l}=Na(i),r=l[n]||i,o=t.governance.find(e=>e.startsWith("attachContentToManagementSystem")),s=[{title:"Governance",to:"/governance"},...La(i,l,r,"/governance/systems")],d=()=>(0,fe.jsx)(gye,{managementSystem:i,managementSystemTree:l,canEditContent:o,isReadOnly:a});return(0,fe.jsxs)(xye,{name:"ManagementSystemOverview",children:[(0,fe.jsx)(xV,{name:"ManagementSystemOverviewHeader",title:i?.title,breadcrumbs:s,icon:"pencil-alt",iconColor:"tertiary"}),i&&(0,fe.jsxs)(Cye,{container:!0,children:[(0,fe.jsxs)(kye,{span:4,item:!0,children:[(0,fe.jsx)(vye,{children:(0,fe.jsx)(Sye,{children:(0,fe.jsxs)(bye,{children:[(0,fe.jsx)(Tye,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"link"}),(0,fe.jsx)(ie.DZ,{name:"LegislationItem_Docs__Title",inline:!0,children:"Management System Breakdown"})]})})}),(0,fe.jsx)(Zue,{active:n||i?.id,menu:Kue(i,l)})]}),(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(d,{})}),(0,fe.jsx)(m.qh,{path:"/:itemId",element:(0,fe.jsx)(d,{})})]})]})]})},Aye=(0,le.default)(ie.fv)`
  opacity: ${e=>e.disabled?"0.5":"1"};
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
`,Rye=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
  margin: ${e=>e.theme.geometry.xs.spacing} 0;
`,Dye=(0,le.default)(ie.GQ)`
  display: inline-flex;
  flex: 0 0 auto;
  background: ${e=>{let{theme:n}=e;return n.colors.basic.white}};
`,Lye=(0,le.default)(ie.EY)`
  font-size: ${e=>e.theme.fonts.sm.size};
  padding: 0 ${e=>e.theme.geometry.lg.spacing};
`,Iye=le.default.div`
  position: absolute;
  right: ${e=>e.theme.geometry.sm.spacing};
  top: ${e=>e.theme.geometry.sm.spacing};
  flex: 0 0 auto;
  opacity: 0.7;
  display: inline-block;
  background: ${e=>e.theme.colors.text.dark.background};
  padding: ${e=>e.theme.geometry.xs.spacing} ${e=>e.theme.geometry.sm.spacing};
`,jye=e=>{let{title:n,description:t,icon:a,iconColor:i,comingSoon:l,fullAccess:r}=e;return(0,fe.jsxs)(Aye,{name:`SubjectTile SubjectTile--${n}`,container:!0,item:!0,disabled:l||!r,children:[(l||!r)&&(0,fe.jsx)(Iye,{children:(0,fe.jsx)(ie.EY,{align:"center",size:"xs",color:"white",children:l?"Coming Soon":"Upgrade Now"})}),(0,fe.jsx)(Rye,{children:(0,fe.jsx)(Dye,{name:"SubjectTile__Icon",height:"70px",size:"lg",icon:a,iconColor:i,circleColor:i})}),(0,fe.jsx)(Rye,{children:(0,fe.jsx)(ie.DZ,{align:"center",size:"lg",children:n})}),(0,fe.jsx)(Rye,{children:(0,fe.jsx)(Lye,{align:"center",children:t})})]})},wye=le.default.div`
  flex: 1 1 auto;

  // Fallbacks for IE
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-center;

  // CSS grid for real browsers
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: ${e=>e.theme.geometry.md.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,Oye=e=>{let{items:n,fullAccess:t}=e;return(0,fe.jsx)(wye,{children:n.map(e=>e.comingSoon||!t[e.accessIndex]?(0,fe.jsx)(p.Link,{name:`GovernanceGrid__Link__${e.title}`,to:"systems"===e.accessIndex?"/upgrade/compliance":"/contact",children:(0,fe.jsx)(jye,{title:e.title,description:e.description,icon:e.icon,iconColor:e.iconColor,comingSoon:e.comingSoon,fullAccess:t[e.accessIndex]},e.id)},e.id):(0,fe.jsx)(p.Link,{name:`GovernanceGrid__Link__${e.title}`,to:e.link,children:(0,fe.jsx)(jye,{title:e.title,description:e.description,icon:e.icon,iconColor:e.iconColor,comingSoon:e.comingSoon,fullAccess:t[e.accessIndex]})},e.id))})},Eye=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: ${e=>e.styleSelected?e.theme.colors.overlay.light.background:"none"};
`,_ye=(0,le.default)(ie.fI)`
  opacity: ${e=>e.disabled?"0.5":"1"};
`,Fye=(0,le.default)(ie.GQ)`
  display: inline-flex;
  flex: 0 0 auto;
  margin-right: ${e=>e.theme.geometry.sm.spacing};
`,Pye=le.default.div`
  flex: 0 0 auto;
  opacity: 0.7;
  display: inline-block;
  background: ${e=>e.theme.colors.text.dark.background};
  padding: ${e=>e.theme.geometry.xxs.spacing} ${e=>e.theme.geometry.xs.spacing};
  margin-left: ${e=>e.theme.geometry.xs.spacing};
`,Bye=e=>{let{botId:n,title:t,icon:a,iconColor:i,comingSoon:l,fullAccess:r}=e;return(0,fe.jsx)(Eye,{name:`BotRow--${n}`,container:!0,itemAlign:"center",children:(0,fe.jsxs)(_ye,{container:!0,item:!0,itemAlign:"center",distribution:"between",disabled:l||!r,children:[(0,fe.jsxs)(ie.fI,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(Fye,{height:"30px",size:"md",icon:a,iconColor:i,circleColor:i}),(0,fe.jsx)(ie.EY,{weight:"bold",color:"dark",inline:!0,name:`BotRow__Title--${n}`,size:"md",children:t})]}),(l||!r)&&(0,fe.jsx)(Pye,{children:(0,fe.jsx)(ie.EY,{inline:!0,size:"xs",color:"white",children:l?"Coming Soon":"Upgrade Now"})})]})})},Uye=le.default.div`
  flex: 1 1 auto;
  overflow: auto;
  background: ${e=>e.theme.colors.basic.white};
  margin-top: ${e=>e.theme.geometry.md.spacing};
`,$ye=e=>{let{items:n,fullAccess:t}=e;return(0,fe.jsx)(Uye,{children:n.map(e=>e.comingSoon||!t[e.accessIndex]?(0,fe.jsx)(p.Link,{name:`GovernanceAreaList__Link__${e.id}`,to:"systems"===e.accessIndex?"/upgrade/compliance":"/contact",children:(0,fe.jsx)(Bye,{fullAccess:t[e.accessIndex],title:e.title,description:e.description,icon:e.icon,iconColor:e.iconColor,comingSoon:e.comingSoon},e.id)},e.id):(0,fe.jsx)(p.Link,{name:`GovernanceAreaList__Link__${e.id}`,to:e.link,children:(0,fe.jsx)(Bye,{fullAccess:t[e.accessIndex],title:e.title,description:e.description,icon:e.icon,iconColor:e.iconColor,comingSoon:e.comingSoon},e.id)},e.id))})},Mye=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,Vye=le.default.div`
  overflow: auto;
  padding: ${e=>e.theme.geometry.xl.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,Gye=(0,le.default)(ie.fI)`
  padding-right: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.dark.background};
`,zye=(0,le.default)(ie.vj)`
  flex: 1 1 auto;
  form > div {
    background: none;
    border: 0;
    border-radius: 0;
  }
`,Wye=(0,le.default)(ie.Yq)`
  margin-left: ${e=>e.theme.geometry.md.spacing};
`,qye=(0,le.default)(Ae)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,Jye=(0,ce.Ay)(e=>{const{intl:n,accessControls:t,isShouldUserUpgrade:a}=e,[i,l]=(0,g.useState)(""),{data:r,loading:o}=Xs(),s=lr(),d=xse.filter(e=>!!s[e.permissionSection]?.find(n=>n.startsWith(e.basePermission))),[c,u]=hn.partition(d,e=>!!e.restricted),p=((e,n)=>{const t=[];return e.forEach(e=>{n[e.accessIndex].find(n=>n.id===e.restrictionId)&&t.push(e)}),t})(c,{systems:r}),m=((e,n)=>{if(!n)return e;const t=new pd.vj("id");return t.addIndex("title"),t.addDocuments(e),t.search(n)})(u.concat(p),i),{isList:f,isGrid:y,showGrid:h,showList:x}=Vd();return(0,fe.jsxs)(Mye,{name:"GovernanceLandingPage",children:[(0,fe.jsx)(xV,{name:"GovernanceLandingPageHeader",title:n.formatMessage({id:"pages.governance.heading"}),breadcrumbs:[{title:n.formatMessage({id:"pages.governance.breadcrumbs.one"})},{title:n.formatMessage({id:"pages.governance.breadcrumbs.two"})}],icon:"pencil-alt",iconColor:"tertiary"}),(0,fe.jsxs)(Vye,{children:[(0,fe.jsxs)(Gye,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(zye,{name:"DataSubjects__Search",value:i,onChange:e=>l(e.target.value),hideButton:!0}),(0,fe.jsx)(Wye,{name:"DataSubjects__ShowGrid",size:"md",color:y?"primary":"normal",weight:y?"bold":"normal",underline:!1,onClick:h,inline:!0,children:(0,fe.jsx)(ie.In,{icon:"th"})}),(0,fe.jsx)(Wye,{name:"DataSubjects__ShowList",size:"md",color:f?"primary":"normal",weight:f?"bold":"normal",underline:!1,onClick:x,inline:!0,children:(0,fe.jsx)(ie.In,{icon:"th-list"})})]}),a&&(0,fe.jsx)(qye,{name:"ComplyContainer_Access_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Governance",body:n.formatMessage({id:"pages.governance.permissionsProblem"})}),y&&!o?(0,fe.jsx)(Oye,{items:m,fullAccess:t}):(0,fe.jsx)(gg,{}),!y&&(0,fe.jsx)($ye,{items:m,fullAccess:t})]})]})}),Yye=S.J1`
  fragment PolicyFields on Policy {
    id
    accountId
    title
    version
    createdAt
    reviewDate
  }
`,Hye=S.J1`
  fragment PolicyDocumentFields on DocumentRecord {
    id
    link
    fileName
  }
`,Kye=S.J1`
  query GetPoliciesByAccountId($accountId: ID!) {
    getPoliciesByAccountId(accountId: $accountId) {
      id
      accountId
      title
      version
      createdAt
      reviewDate
    }
  }
`,Qye=S.J1`
  query GetPolicyById($id: ID!, $accountId: ID!) {
    getPolicyById(id: $id, accountId: $accountId) {
      ...PolicyFields
      documents {
        ...PolicyDocumentFields
      }
    }
  }
  ${Yye}
  ${Hye}
`,Zye=S.J1`
  mutation SavePolicy($policy: SavePolicyInput!, $accountId: String!) {
    savePolicy(policy: $policy, accountId: $accountId) {
      ...PolicyFields
      documents {
        ...PolicyDocumentFields
      }
    }
  }
  ${Yye}
  ${Hye}
`,Xye=S.J1`
  mutation CreateDocumentRecord(
    $id: ID!
    $accountId: ID!
    $referenceId: String
    $key: String!
    $userId: ID!
    $category: String!
    $type: [String!]
    $fileName: String!
    $library: DocumentLibrary!
    $reviewDate: String
    $source: Source!
  ) {
    createDocumentRecord(
      input: {
        id: $id
        userId: $userId
        accountId: $accountId
        referenceId: $referenceId
        key: $key
        category: $category
        type: $type
        fileName: $fileName
        library: $library
        reviewDate: $reviewDate
        source: $source
      }
    ) {
      id
    }
  }
`,ege=le.css`
  width: auto;
  height: 200px;
  padding: 24px;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(232, 233, 236);
  background-color: white;
`;function nge(e){return{accountId:e,id:(0,Wa.A)(),title:"",version:"1",createdAt:bn()().toISOString(),reviewDate:null,documents:[]}}function tge(e){return!!e&&"DocumentRecord"===e.__typename}function age(e){const n={};return e.documents.length||(n.documents="No attachments yet. Please attach some documents."),e.title||(n.title="Title is required"),n}const ige=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,lge=le.default.form`
  padding: 32px;
`,rge=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,oge=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,sge=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,dge=(0,le.default)(sge)`
  flex-basis: 50%;
`,cge=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -200px;
    left: 50%;
  }
`,uge=(0,le.default)(ie.$n)`
  width: 100%;
  margin-top: 12px;
`,pge=(0,le.default)(ie.fv)`
  text-align: left;
  align-items: center;
  flex-flow: row nowrap;
  padding: ${e=>e.theme.geometry.xs.spacing};
`,mge=(0,le.default)(ie.fI)`
  color: ${e=>e.error?e.theme.colors.danger.normal.background:"initial"};
  text-align: left;
`,fge=(0,le.default)(sge)`
  flex-basis: 120px;
  max-width: 120px;
`;function yge(e){let{file:n,onDelete:t,readOnly:a}=e;const i=n instanceof window.File,l=tge(n);return(0,fe.jsxs)(ie.fI,{container:!0,children:[(0,fe.jsx)(sge,{grow:"0",children:(0,fe.jsx)(ie.GQ,{size:"xxs",icon:"file",color:"tretiary"})}),(0,fe.jsxs)(pge,{grow:"1",item:!0,container:!0,children:[i&&n.name,l&&n.fileName]}),l&&(0,fe.jsx)(fge,{item:!0,grow:"0",children:(0,fe.jsx)(p.Link,{to:`/documents/governance/Policies/${n.id}`,children:(0,fe.jsx)(ie.$n,{type:"button",color:"secondary",children:"View"})})}),!a&&(0,fe.jsx)(fge,{item:!0,grow:"0",children:(0,fe.jsx)(ie.$n,{type:"button",color:"danger",onClick:t,children:"Remove"})})]})}function gge(e){let{show:n,title:t,submitTitle:a,onDismiss:i,onChange:l,onSubmit:r,policy:o,isSubmitting:s,readOnly:d}=e;const[c,u]=(0,g.useState)({}),p=e=>{Object.keys(c).length?u(age(e)):u({})};return!!n&&(0,fe.jsx)(ie.aF,{size:"md",height:"auto",maxHeight:"90vh",onDismiss:()=>{i()},dismissable:!0,show:!0,children:(0,fe.jsxs)(lge,{children:[(0,fe.jsx)(oge,{children:t}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(sge,{item:!0,children:[(0,fe.jsx)(rge,{children:(0,fe.jsx)(ige,{children:"Policy Title"})}),(0,fe.jsx)(ie.ks,{disabled:s,onChange:e=>{let{target:{value:n}}=e;const t={...o,title:n};p(t),l(t)},name:"title",value:o.title,error:c.title,readOnly:d,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(sge,{item:!0,children:[(0,fe.jsx)(rge,{children:(0,fe.jsx)(ige,{children:"Review Date"})}),(0,fe.jsx)(cge,{onDayClick:e=>{l({...o,reviewDate:e.toISOString()})},name:"reviewDate",placeholder:"YYYY/MM/DD",selectedDate:o.reviewDate?new Date(o.reviewDate):null,disabledDatesBefore:o.createdAt?new Date(o.createdAt):null,error:c.reviewDate,readOnly:d,disabled:s||d,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(sge,{item:!0,children:[(0,fe.jsx)(rge,{children:(0,fe.jsx)(ige,{children:"Version"})}),(0,fe.jsx)(ie.ks,{name:"version",disabled:s,onChange:e=>{l({...o,version:e.target.value})},value:o.version,readOnly:d})]})}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsxs)(sge,{item:!0,children:[(0,fe.jsx)(rge,{children:(0,fe.jsx)(ige,{children:"Attachments"})}),o.documents&&o.documents.length?o.documents.map(e=>(0,fe.jsx)(yge,{file:e,onDelete:()=>{l({...o,documents:o.documents.filter(n=>n!==e)})},readOnly:d},e instanceof window.File?e.name:e.fileName)):(0,fe.jsx)(mge,{error:c.documents,container:!0,children:c.documents||"No attachments yet"})]})}),!d&&(0,fe.jsxs)(ie.fI,{container:!0,children:[(0,fe.jsx)(dge,{item:!0,grow:"1",children:(0,fe.jsx)(ie.bT,{multiple:!0,accept:qt.allowedDocument.mimeType,onChange:async e=>{const n=o.documents.concat(e),t={...o,documents:n};p(t),l(t)},children:e=>(0,fe.jsx)(uge,{type:"button",color:"tertiary",disabled:s,onClick:()=>{e()},children:"Attach Documents"})})}),(0,fe.jsx)(dge,{item:!0,grow:"1",children:(0,fe.jsx)(uge,{disabled:s,onClick:e=>{e.preventDefault();const n=age(o);Object.keys(n).length?u(n):r(o)},children:a})})]})]})})}function hge(){const{token:{sub:e}}=qe(),n=Je(),[t]=(0,ln.n)(Zye),a=ol(),[i]=(0,ln.n)(Xye);return async l=>{const r=Array.isArray(l.documents)?l.documents:[],o=await Promise.all(r.filter(e=>e instanceof window.File).map(async t=>{const r=(0,Wa.A)();await a(n,r,t);const o={id:r,userId:e,accountId:n,fileName:l.title,category:"Policies",key:Oj(n,r),library:"GOVERNANCE",referenceId:l.id,reviewDate:l.reviewDate||null,source:Gt},{data:{createDocumentRecord:{id:s}}}=await i({variables:o});return s})),s=r.filter(tge).map(e=>e.id).concat(o);await t({variables:{policy:{accountId:n,version:l.version,id:l.id,title:l.title,reviewDate:l.reviewDate,createdAt:(new Date).toISOString(),documents:s},accountId:n},update:(e,t)=>{const a={accountId:n},i=e.readQuery({query:Kye,variables:a}),l=Array.isArray(i.getPoliciesByAccountId)?i.getPoliciesByAccountId:[],r=t.data.savePolicy,o=!!l.find(e=>e.id===r.id),s={...i,getPoliciesByAccountId:o?i.getPoliciesByAccountId.map(e=>e.id===r.id?{...r,__typename:"PolicyOverview"}:e):[...l,r]};e.writeQuery({query:Kye,variables:a,data:s})}})}}const xge=le.default.div`
  ${ege}
`,Tge=(0,le.default)(ie.fI)`
  padding-bottom: 0;
  flex: 0 0 auto;
  height: 50%;
`,bge=(0,le.default)(ie.GQ)`
  z-index: 1;
  background: #fff;
  display: inline-flex;
`,vge=(0,le.default)(ie.fv)`
  padding-top: 12px;
  border-top: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,Cge=(0,le.default)(ie.DZ)`
  margin-bottom: 8px;
`,kge=(0,le.default)(ie.EY)``;function Sge(e){let{policy:n,showNotification:t,canEdit:a}=e;const[i,l]=(0,g.useState)(!1),r=(0,C.m)(),[o,s]=(0,g.useState)(null),[d,c]=(0,g.useState)(!1),u=Je(),p=hge(),{title:m}=n,f=m.length>28?`${m.substr(0,24)} ...`:m;return(0,fe.jsxs)(xge,{onClick:async()=>{if(l(!0),!o){const{data:{getPolicyById:e}}=await r.query({query:Qye,variables:{accountId:u,id:n.id}});e&&s(e)}},children:[(0,fe.jsx)(Tge,{children:(0,fe.jsx)(bge,{height:"70px",size:"lg",icon:"file-contract",iconColor:"tertiary",circleColor:"tertiary"})}),(0,fe.jsxs)(vge,{container:!0,item:!0,vdistribution:"between",children:[(0,fe.jsxs)(Cge,{size:"lg",color:"dark",weight:"light",children:[f," (v",n.version,")"]}),(0,fe.jsxs)(kge,{children:["Created: ",bn()(n.createdAt).format("DD/MM/YYYY hh:mm:ss")]}),n.reviewDate&&(0,fe.jsxs)(kge,{children:["Review Date: ",bn()(n.reviewDate).format("DD/MM/YYYY hh:mm:ss")]})]}),o&&(0,fe.jsx)(gge,{readOnly:!a,title:a?"Update Policy":"View Policy",submitTitle:"Update Policy",show:i,isSubmitting:d,policy:o,onDismiss:()=>{setTimeout(()=>{l(!1),s(null)},0)},onChange:e=>{s(e)},onSubmit:async e=>{c(!0);try{await p(e),t({message:"Your policy has been updated!",color:"success"})}catch(e){t({message:"Something went wrong. Try again later.",color:"danger"})}finally{c(!1),l(!1),s(null)}}},`${n.id}-${n.version}`)]})}var Nge=t(78664),Age=t.n(Nge);function Rge(e){let{policies:n,showNotification:t,canEdit:a}=e;return Age()(n,"title").map(e=>(0,fe.jsx)(Sge,{policy:e,canEdit:a,showNotification:t},e.id))}const Dge=le.default.button`
  ${ege}
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  font-family: 'Proxima Nova', Helvetica, Arial, sans-serif;
`,Lge=(0,le.default)(ie.In)`
  margin-bottom: 16px;
`;function Ige(e){let{showNotification:n}=e;const t=Je(),[a,i]=(0,g.useState)(!1),[l,r]=(0,g.useState)(!1),o=(0,le.useTheme)(),[s,d]=(0,g.useState)(nge(t)),c=hge();return(0,fe.jsxs)(Dge,{onClick:()=>i(!0),children:[(0,fe.jsx)(Lge,{icon:"plus-circle",size:"6x",color:o.colors.success.normal.background}),"Add new",(0,fe.jsx)(gge,{title:"Create Policy",submitTitle:"Create Policy",show:a,isSubmitting:l,policy:s,onDismiss:()=>{setTimeout(()=>i(!1),0)},onChange:d,onSubmit:async e=>{r(!0);try{await c(e),n({message:"Your policy has been created!",color:"success"})}catch(e){n({message:"Something went wrong. Try again later.",color:"danger"})}finally{r(!1),i(!1),d(nge(t))}}})]})}const jge=le.default.div`
  padding: 32px 48px 48px;
`,wge=le.default.div`
  flex-direction: row;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  padding-top: 32px;
  flex: 1 1 auto;
  gap: 24px;
`,Oge=(0,le.default)(ie.fI)`
  padding-right: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.dark.background};
`,Ege=(0,le.default)(ie.vj)`
  flex: 1 1 auto;
  form > div {
    background: none;
    border: 0;
    border-radius: 0;
  }
`,_ge=()=>{const e=lr(),n=Je(),{data:t}=Mr(),a={accountId:n},[i,l]=(0,g.useState)(null),{data:r}=(0,x.IT)(Kye,{variables:a}),o=r?.getPoliciesByAccountId||[],[s,d,c]=fd(o,["id","title","version"]),u=!!e.governance.find(e=>e.startsWith("createPolicy")),p=xse.filter(e=>!e.comingSoon&&t.comply[e.accessIndex]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(xV,{title:"Policies",breadcrumbs:[{title:"Governance",to:"/governance"},{title:"Policies"}],icon:"pencil-alt",iconColor:"tertiary",isDropdown:!0,dropdownItems:p,dropdownDefault:"Policies"}),(0,fe.jsxs)(jge,{children:[(0,fe.jsx)(Oge,{container:!0,item:!0,itemAlign:"center",children:(0,fe.jsx)(Ege,{value:s,onChange:e=>d(e.target.value),hideButton:!0})}),(0,fe.jsxs)(wge,{children:[u&&(0,fe.jsx)(Ige,{showNotification:e=>l(e)}),(0,fe.jsx)(Rge,{policies:c,showNotification:l,canEdit:u})]}),i&&(0,fe.jsx)(ie.Eg,{show:!0,color:i.color,onClose:()=>l(null),children:i.message})]})]})},Fge="Reduce",Pge="Employee Numbers",Bge="Office Area",Uge="Turnover",$ge="Custom 1",Mge="Custom 2",Vge="Custom 3",Gge={[Pge]:"employee number",[Bge]:"office area",[Uge]:"turnover",[$ge]:"custom normaliser 1",[Mge]:"custom normaliser 2",[Vge]:"custom normaliser 3"};var zge=t(41696),Wge=t.n(zge),qge=t(8455),Jge=t.n(qge);const Yge=S.J1`
  {
    getNormaliserTypes {
      id
      name
    }
  }
`,Hge=S.J1`
  query GetLocationById($id: ID!) {
    getLocationById(id: $id) {
      id
      name
    }
  }
`,Kge=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Qge=le.default.form`
  padding: 32px;
`,Zge=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,Xge=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,ehe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,nhe=(0,le.default)(ehe)`
  flex-basis: 50%;
`,the=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -200px;
    left: 50%;
  }
`,ahe=(0,le.default)(ie.$n)`
  width: 100%;
  margin-top: 12px;
`,ihe=e=>{let{accountId:n,title:t,submitTitle:a,onDismiss:i,onSubmit:l,readOnly:r,errors:o,editedTarget:s}=e;const d={accountId:n,name:s?.name,scope:s?.scope,locationId:s?.locationId,tagId:s?.tagId,typeId:s?.type?.id,topicId:s?.topic?.id,normaliserTypeId:s?.normaliserType?.id||null,value:s?.value,isRelative:s?.isRelative||!1,baselineStartDate:s?.baselineStartDate,baselineEndDate:s?.baselineEndDate,startDate:s?.startDate,endDate:s?.endDate},[c,u]=(0,g.useState)({}),[p,m]=(0,g.useState)(d),[f,y]=(0,g.useState)(!1),{data:h}=(0,x.IT)(Wge()),T=h?.getTargetTypes?.map(e=>{let{id:n,name:t}=e;return{label:t,value:n}}).sort(Yn("label"))||[],{data:b}=(0,x.IT)(Jge()),v=b?.getTargetTopics?.map(e=>{let{id:n,name:t}=e;return{label:t,value:n}}).sort(Yn("label"))||[],{data:C}=(0,x.IT)(Yge),{data:k}=(0,x.IT)(Hge,{variables:{id:s?.locationId},skip:!s?.locationId}),S=!!p.typeId&&p.typeId===T.find(e=>{let{label:n}=e;return"Reduce"===n})?.value,N=((e,n,t,a)=>{if(!e||!n||!t)return[];const i=e?.getTargetTopics.find(e=>{let{id:n}=e;return n===t}),l=[{label:i?.unit?.name||"",value:{normaliserTypeId:null,isRelative:!1}}];return a&&l.push({label:"%",value:{normaliserTypeId:null,isRelative:!0}}),n.getNormaliserTypes.slice().sort(Yn("name")).forEach(e=>{l.push({label:`${i?.unit?.name||""}/${Gge[e.name]}`,value:{normaliserTypeId:e.id,isRelative:!1}}),a&&l.push({label:`%/${Gge[e.name]}`,value:{normaliserTypeId:e.id,isRelative:!0}})}),l})(b,C,p.topicId,S),A=N.find(e=>{let{value:n}=e;return n.isRelative===p.isRelative&&n.normaliserTypeId===p.normaliserTypeId});return(0,fe.jsx)(ie.aF,{size:"md",onDismiss:i,dismissable:!0,show:!0,children:(0,fe.jsxs)(Qge,{children:[(0,fe.jsx)(Xge,{children:t}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Name"})}),(0,fe.jsx)(ie.ks,{type:"text",disabled:f,value:p.name,onChange:e=>{m({...p,name:e.target.value}),u({...c,name:null})},name:"name",error:c.name,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Scope"})}),(0,fe.jsx)(ie.l6,{options:ee,value:p.scope,onChange:e=>{m({...p,scope:e.target.value,tagId:null,locationId:null}),u({...c,scope:null,tagId:null,locationId:null})},error:c.scope})]})}),p.scope===Y&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Location"})}),(0,fe.jsx)(NA,{value:p.locationId,onChange:e=>{m({...p,locationId:e.target.value}),u({...c,locationId:null})},error:c.locationId,selectedOption:k?.getLocationById})]})}),p.scope===K&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Tag"})}),(0,fe.jsx)(Fw,{accountId:n,value:p.tagId,onChange:e=>{m({...p,tagId:e.target.value}),u({...c,tagId:null})},error:c.tagId})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Type"})}),(0,fe.jsx)(ie.l6,{options:T,value:p.typeId,onChange:e=>{m({...p,typeId:e.target.value,isRelative:!1}),u({...c,typeId:null})},error:c.typeId})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Topic"})}),(0,fe.jsx)(ie.l6,{options:v,value:p.topicId,onChange:e=>{m({...p,topicId:e.target.value}),u({...c,topicId:null})},error:c.topicId})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Value"})}),(0,fe.jsx)(ie.ks,{type:"number",disabled:f,value:p.value,onChange:e=>{m({...p,value:parseInt(e.target.value)}),u({...c,value:null})},name:"value",error:c.value,box:!0})]})}),p.topicId&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Unit"})}),(0,fe.jsx)(ie.l6,{options:N,value:A,onChange:e=>{m({...p,...e.target.value}),u({...c,unit:null})},error:c.unit})]})}),S&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Baseline From"})}),(0,fe.jsx)(the,{onDayClick:e=>{m({...p,baselineStartDate:e.toISOString()}),u({...c,baselineStartDate:null})},name:"reviewDate",placeholder:"YYYY/MM/DD",selectedDate:An(p.baselineStartDate),disabledDatesAfter:An(p.baselineEndDate)||new Date,error:c.baselineStartDate,readOnly:r,disabled:f||r,box:!0})]})}),S&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Baseline To"})}),(0,fe.jsx)(the,{onDayClick:e=>{m({...p,baselineEndDate:e.toISOString()}),u({...c,baselineEndDate:null})},name:"reviewDate",placeholder:"YYYY/MM/DD",selectedDate:An(p.baselineEndDate),disabledDatesBefore:An(p.baselineStartDate),disabledDatesAfter:new Date,error:c.baselineEndDate,readOnly:r,disabled:f||r,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Target Start"})}),(0,fe.jsx)(the,{onDayClick:e=>{m({...p,startDate:e.toISOString()}),u({...c,startDate:null})},name:"reviewDate",placeholder:"YYYY/MM/DD",selectedDate:An(p.startDate),disableDatesAfter:An(p.endDate),error:c.startDate,readOnly:r,disabled:f||r,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(ehe,{item:!0,children:[(0,fe.jsx)(Zge,{children:(0,fe.jsx)(Kge,{children:"Target End"})}),(0,fe.jsx)(the,{onDayClick:e=>{m({...p,endDate:e.toISOString()}),u({...c,endDate:null})},name:"reviewDate",placeholder:"YYYY/MM/DD",selectedDate:An(p.endDate),disabledDatesBefore:An(p.startDate),error:c.endDate,readOnly:r,disabled:f||r,box:!0})]})}),o.length>0&&(0,fe.jsx)(ie.fI,{container:!0,children:o.map(e=>(0,fe.jsx)(ie.EY,{size:"md",color:"danger",children:e},e))}),!r&&(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(nhe,{item:!0,grow:"1",children:(0,fe.jsx)(ahe,{disabled:f,onClick:async e=>{e.preventDefault();const n=function(e,n){const t={},a=n.find(n=>{let{value:t}=n;return t===e.typeId});return e.name||(t.name="Name is required"),e.scope||(t.scope="Scope is required"),e.scope!==Y||e.locationId||(t.locationId="Location is required"),e.scope!==K||e.tagId||(t.tagId="Tag is required"),e.typeId||(t.typeId="Type is required"),e.topicId||(t.topicId="Topic is required"),e.startDate||(t.startDate="Start Date is required"),e.endDate||(t.endDate="End Date is required"),e.value||0===e.value||(t.value="Value is required"),a&&a.label===Fge&&(e.baselineStartDate||(t.baselineStartDate="Baseline Start Date is required"),e.baselineEndDate||(t.baselineEndDate="Baseline Start Date is required")),t}(p,T);Object.keys(n).length?u(n):(y(!0),await l(p),y(!1))},children:a})})})]})})};var lhe=t(25180),rhe=t.n(lhe),ohe=t(91153),she=t.n(ohe);const dhe="ACHIEVING",che="NOT ACHIEVING",uhe="ACTION REQUIRED",phe=(le.keyframes`
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
`,le.keyframes`
  to {
    width: 1.25em;
  }
`),mhe=(le.css`
  &:after {
    position: absolute;
    overflow: hidden;
    display: inline-block;
    width: 0px;
    vertical-align: bottom;
    animation: ${phe} steps(4, end) 900ms infinite;
    content: '\\2026';
  }
`,()=>le.keyframes`
  from {
    background-color: rgba(125,104,171,0.2);
  }
`),fhe="Paper reduction",yhe="Domestic Flights (km)",ghe="Reuse",hhe="Non-traded emissions",xhe="Water consumption",The="Food waste",bhe="Natural Gas consumption",vhe="Recycled Waste",Che="Waste generation",khe="International Flights (km)",She="Electricity consumption",Nhe="Landfilled waste",Ahe="Transport",Rhe="Carbon emissions",Dhe={[dhe]:{[fhe]:"You have used less paper than your target.",[yhe]:"You have travelled less distance by flight than your target.",[ghe]:"You have achieved or exceeded your reuse target.",[hhe]:"You have emitted less carbon from non-traded emissions than your target.",[xhe]:"You have used less water than your target.",[The]:"You have generated less food waste than your target.",[bhe]:"You have used less natural gas than your target.",[vhe]:"You have achieved or exceeded your recycling target.",[Che]:"You have generated less waste than your target.",[khe]:"You have travelled less distance by flight than your target.",[She]:"You have used less electricity than your target.",[Nhe]:"You have landfilled less waste than your target.",[Ahe]:"You have travelled less distance than your target.",[Rhe]:"You have emitted less carbon than your target."},[che]:{[fhe]:"You have used more paper than your target.",[yhe]:"You have travelled more distance by flight than your target",[ghe]:"You have reused less waste than your target.",[hhe]:"You have emitted more carbon from non-traded emissions than your target.",[xhe]:"You have used more water than your target.",[The]:"You have generated more food waste than your target",[bhe]:"You have used more natural gas than your target.",[vhe]:"You have recycled less waste than your target.",[Che]:"You have generated more waste than your target.",[khe]:"You have travelled more distance by flight than your target",[She]:"You have used more electricity than your target.",[Nhe]:"You have landfilled more waste than your target.",[Ahe]:"You have travelled more distance than your target.",[Rhe]:"You have emitted more carbon than your target."}},Lhe=le.default.div`
  flex: 1 1 auto;
  background-color: ${e=>e.theme.colors.basic.white};
  overflow-x: hidden;
  margin: 32px 48px 48px;
`,Ihe=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.sm.spacing} ${e.theme.geometry.md.spacing}`};
  background: ${e=>e.theme.colors.overlay.light.background};
  border-top: 1px solid ${e=>e.theme.colors.text.light.background};
  border-bottom: 1px solid ${e=>e.theme.colors.text.light.background};
  flex: 0 0 auto;
`,jhe=(0,le.default)(ie.fI)`
  padding: ${e=>`${e.theme.geometry.md.spacing}`};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  flex: 0 0 auto;
  background-color: white;
  ${e=>e.anchored?le.css`
          animation: ${mhe} 2s normal forwards ease-in-out;
        `:""}
`,whe=le.default.a`
  display: inline-block;
  color: ${e=>e.theme.colors.text.normal.background};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,Ohe={avatar:1,topic:1.5,target:3,scope:1,baseline:2,start:1,end:1,status:1,editButton:1},Ehe=e=>{let{id:n,status:t,topic:a,onActionRequiredClick:i}=e;const l=(0,g.useContext)(le.ThemeContext),r={[dhe]:{icon:"circle",iconColor:l.colors.success.normal.background},[che]:{icon:"circle",iconColor:l.colors.danger.normal.background},[uhe]:{icon:"exclamation-circle"}}[t],o=((e,n)=>Dhe[e]?.[n]||PH()(e))(t,a.name);return t===uhe?(0,fe.jsx)(ie.In,{name:`target-row__status--${n}`,icon:r.icon,size:"lg",onClick:i,title:o}):(0,fe.jsx)(ie.In,{name:`target-row__status--${n}`,icon:r.icon,size:"lg",color:r.iconColor,title:o})};function _he(e){let{target:n,onEdit:t,onActionRequiredClick:a,canEdit:i,anchored:l}=e;return(0,fe.jsxs)(jhe,{name:`target-row--${n.id}`,container:!0,itemAlign:"center",id:n.id,anchored:l,children:[(0,fe.jsx)(ie.fv,{span:Ohe.avatar,children:(0,fe.jsx)(ie.Y3,{name:`target-row__profile-picture--${n.id}`,src:null,size:"xs",accountName:n.topic.utility})}),(0,fe.jsx)(ie.fv,{span:Ohe.topic,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{align:"left",name:`target-row__topic--${n.id}`,children:n.topic.utility})}),(0,fe.jsx)(ie.fv,{span:Ohe.name,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{align:"left",name:`target-row__target--${n.id}`,children:n.name})}),(0,fe.jsx)(ie.fv,{span:Ohe.scope,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{align:"left",name:`target-row__scope--${n.id}`,children:`${n.scope.charAt(0)+n.scope.slice(1).toLowerCase()}`})}),(0,fe.jsx)(ie.fv,{span:Ohe.baseline,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{align:"left",name:`target-row__startDate--${n.startDate}`,children:n.type.name===Fge?`${Sn(n.baselineStartDate)} - ${Sn(n.baselineEndDate)}`:null})}),(0,fe.jsx)(ie.fv,{span:Ohe.start,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{align:"left",name:`target-row__endDate--${n.endDate}`,children:Sn(n.startDate)})}),(0,fe.jsx)(ie.fv,{span:Ohe.end,container:!0,item:!0,children:(0,fe.jsx)(ie.EY,{align:"left",name:`target-row__endDate--${n.endDate}`,children:Sn(n.endDate)})}),(0,fe.jsx)(ie.fv,{span:Ohe.end,container:!0,item:!0,children:(0,fe.jsx)(whe,{title:`${n.status.charAt(0)+n.status.slice(1).toLowerCase()}`,children:(0,fe.jsx)(Ehe,{...n,onActionRequiredClick:a})})}),i&&(0,fe.jsx)(ie.fv,{span:Ohe.editButton,container:!0,item:!0,children:(0,fe.jsx)(whe,{onClick:t,children:(0,fe.jsx)(ie.In,{name:`target-row__edit--${n.id}`,icon:"pencil-alt"})})})]})}function Fhe(e){let{targets:n,showEditModal:t,showActionRequiredModal:a,canEdit:i}=e;const l=(0,m.zy)(),r=n.slice().sort(Yn("topic.utility")),o=l.hash?.slice?.(1);return(0,fe.jsxs)(Lhe,{children:[(0,fe.jsxs)(Ihe,{container:!0,align:"between",children:[(0,fe.jsx)(ie.fv,{span:Ohe.avatar,container:!0}),(0,fe.jsx)(ie.fv,{span:Ohe.topic,item:!0,container:!0,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"Topic"})}),(0,fe.jsx)(ie.fv,{span:Ohe.target,item:!0,container:!0,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"Target"})}),(0,fe.jsx)(ie.fv,{span:Ohe.scope,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"Applied to"})}),(0,fe.jsx)(ie.fv,{span:Ohe.baseline,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"Baseline"})}),(0,fe.jsx)(ie.fv,{span:Ohe.start,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"Start"})}),(0,fe.jsx)(ie.fv,{span:Ohe.end,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"End"})}),(0,fe.jsx)(ie.fv,{span:Ohe.status,children:(0,fe.jsx)(ie.EY,{weight:"bold",align:"left",children:"Status"})}),i&&(0,fe.jsx)(ie.fv,{span:Ohe.editButton})]}),r.map(e=>(0,fe.jsx)(_he,{target:e,onEdit:()=>t(e.id),onActionRequiredClick:()=>a(!!e.configurationErrors.length),canEdit:i,anchored:o===e.id},e.id))]})}const Phe=(0,le.default)(ie.fI)`
  flex: 1;
  align-items: center;
`,Bhe=(0,le.default)(ie.fv)`
  padding-left: ${e=>e.theme.geometry.sm.spacing};
`,Uhe=(0,le.default)(ie.$n)`
  width: 100%;
`,$he=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  pre {
    width: 100%;
  }
`,Mhe=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Vhe=()=>{const e=Je(),{data:n}=Mr(),t=lr(),[a,i]=(0,Gr.useQueryParam)("showCreateModal",Gr.BooleanParam),[l,r]=(0,g.useState)(null),[o,s]=(0,g.useState)([]),[d,c]=(0,g.useState)([]),[u]=(0,ln.n)(rhe()),[p]=(0,ln.n)(she()),{showNotification:m}=tn(),{loading:f,data:y,refetch:h,networkStatus:T}=(0,x.IT)(_r(),{variables:{accountId:e}}),b=y?.getTargetsByAccountId||[],[v,C,k]=fd(b,["name"]),S=l?b.find(e=>{let{id:n}=e;return n===l}):void 0,N=xse.filter(e=>!e.comingSoon&&n.comply[e.accessIndex]);return(0,fe.jsxs)(fe.Fragment,{children:[a&&(0,fe.jsx)(ihe,{title:"Create Target",submitTitle:"Create Target",onDismiss:()=>i(!1),accountId:e,onSubmit:async n=>{c([]);try{const t=await u({variables:{target:n}});if(t.data){const{data:{createTarget:n}}=t;"Target"===n.__typename?(m("Target successfully created","success"),i(!1),h({accountId:e})):"CreateTargetErrors"===n.__typename&&c(n.errors)}}catch{m("Something went wrong, please try again or contact support","danger")}},errors:d}),l&&(0,fe.jsx)(ihe,{title:"Edit Target",submitTitle:"Edit Target",onDismiss:()=>r(null),accountId:e,onSubmit:async n=>{c([]);try{const t=await p({variables:{target:n,id:l}});if(t?.data){const{data:{updateTarget:n}}=t;"Target"===n.__typename?(m("Target successfully updated","success"),r(null),h({accountId:e})):"UpdateTargetErrors"===n.__typename&&c(n.errors)}}catch{m("Something went wrong, please try again or contact support","danger")}},editedTarget:S,errors:d}),o.length>0&&(0,fe.jsx)(ie.aF,{size:"lg",show:!0,onDismiss:()=>s([]),children:(0,fe.jsxs)($he,{children:[(0,fe.jsx)(Mhe,{size:"lg",children:"Actions Required"}),(0,fe.jsx)(ie.v3,{size:"md",wrap:!0,children:o.map(e=>(0,fe.jsx)(ie.EY,{children:e},e))})]})}),(0,fe.jsx)(xV,{title:"Targets",name:"",breadcrumbs:[{title:"Governance",to:".."},{title:"Targets"}],icon:"pencil-alt",iconColor:"tertiary",isDropdown:!0,dropdownItems:N,dropdownDefault:"Targets",children:(0,fe.jsxs)(Phe,{name:"ConfigurationTargetContainer__Controls",container:!0,alignItems:"center",children:[(0,fe.jsx)(ie.fv,{item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationTargetContainer__Controls__Search",value:v,onChange:e=>C(e.target.value),hideButton:!0})}),!!t.data.find(e=>e.startsWith("createTarget"))&&(0,fe.jsx)(Bhe,{span:4,item:!0,children:(0,fe.jsx)(Uhe,{name:"ConfigurationTargetContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>i(!0),children:"+ Add Targets"})})]})}),f&&3!==T&&(0,fe.jsx)(Rc,{name:"ConfigurationNormaliserContainer__Loading"}),k&&!k.length&&!f&&v?(0,fe.jsx)(Fu,{name:"ConfigurationTargetContainer__NoResults",title:"There are no results for this search."}):!f&&(0,fe.jsx)(Fhe,{targets:k,showEditModal:r,showActionRequiredModal:s,canEdit:!!t.data.find(e=>e.startsWith("editTarget"))})]})},Ghe=e=>{switch(e){case gn.HG.Location:return"Location";case gn.HG.Tag:return"Tag";case gn.HG.Account:default:return"Organisation"}},zhe=e=>e.scope===gn.HG.Account?Ghe(e.scope):e.scope===gn.HG.Location?(e.locations?.map(e=>e?.name)||[]).filter(Boolean).join(", "):"",Whe=e=>e.scope===gn.HG.Account?Ghe(e.scope):e.scope===gn.HG.Tag?(e.tags?.map(e=>e?.tagName)||[]).filter(Boolean).join(", "):"",qhe=e=>e?.map(e=>e.name).join(", "),Jhe=e=>e?.map(e=>e.name).join(", ")||"-",Yhe=["tags","locations","departments","activity","aspects","impacts","legislations","emergencyConditions","controlMeasures","status"],Hhe=(e,n)=>{const t=jn(e);return t.set&&(t.set=t.set.map(e=>Yhe.includes(e.field)?{...e,field:`${e.field}.id`}:e)),n&&(t.search={value:n,field:["tags.name","locations.name","departments.name","legislations.name","activity.name","aspects.name","impacts.name","emergencyConditions.name","controlMeasures.name","likelihoodNoControl","severityNoControl","likelihoodControl","severityControl","status.name"]}),t},Khe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e?e.map(e=>({label:e.name,value:e.id})):[]},Qhe=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";return e?.filter(Boolean).map(e=>({...e,label:Ig()(e,n),value:Ig()(e,t)}))||[]},Zhe=e=>function(){const n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(e=>({...e,value:e.id,label:e.name})).sort((e,n)=>e.name.toLowerCase().localeCompare(n.name.toLowerCase()));return e&&n.unshift({value:"NEW",label:"Create New ..."}),n},Xhe=(e,n,t)=>{(Array.isArray(e.target.select)?e.target.select.find(e=>{let{value:n}=e;return"NEW"===n}):"NEW"===e.target.select?.value)?n(e):t(e)},exe=(e,n,t)=>({id:e.id||(0,Wa.A)(),accountId:n,scope:e.scope,locationIds:Qhe(e.locations),tagIds:Qhe(e.tags,"tagName"),ownerId:e.owner?.id||null,activity:e.activity?.id||null,departments:Khe(e.departments),aspects:Khe(e.aspects),impacts:Khe(e.impacts),legislationIds:Qhe(e.legislations,"title"),likelihoodNoControl:String(e.likelihoodNoControl),severityNoControl:String(e.severityNoControl),emergencyConditions:Khe(e.emergencyConditions),controlMeasures:Khe(e.controlMeasures),likelihoodControl:String(e.likelihoodControl),severityControl:String(e.severityControl),reviewDate:e.reviewDate,status:e.status?.id,taskId:e.task?.id,authorId:e.author?.id||t.sub}),nxe=(e,n,t,a,i)=>{let l;return t||(l=(new Date).toISOString()),{...e,authorId:(a?i?.sub:e.authorId)||"",scope:e.scope,likelihoodNoControl:Number(e.likelihoodNoControl),likelihoodControl:Number(e.likelihoodControl),severityNoControl:Number(e.severityNoControl),severityControl:Number(e.severityControl),activity:e.activity||"",locationIds:e.locationIds?.map(e=>{let{value:n}=e;return n}),tagIds:e.tagIds?.map(e=>{let{value:n}=e;return n}),legislationIds:e.legislationIds?.map(e=>{let{value:n}=e;return n}),impacts:e.impacts?.map(e=>{let{value:n}=e;return n})||[],aspects:e.aspects?.map(e=>{let{value:n}=e;return n})||[],emergencyConditions:e.emergencyConditions?.map(e=>{let{value:n}=e;return n})||[],controlMeasures:e.controlMeasures?.map(e=>{let{value:n}=e;return n})||[],departments:e.departments?.map(e=>{let{value:n}=e;return n}),ownerId:e.ownerId||null,createdDate:l,editedDate:t?(new Date).toISOString():null,editorId:t?i?.sub:null,evidenceNotes:n}};function txe(){return wn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(e=>Yhe.includes(e.field)?{...e,field:`${e.field}.name`}:e)}const axe=e=>{const n={[gn.G8.Activity]:"activity.id",[gn.G8.Aspect]:"aspects.id",[gn.G8.ControlMeasure]:"controlMeasures.id",[gn.G8.EmergencyCondition]:"emergencyConditions.id",[gn.G8.Impact]:"impacts.id",[gn.G8.Status]:"status.id"};return Ig()(n,e)},ixe=(e,n)=>{const t={alignText:"center"};return"Control measure(s) in place"===e?{...t,backgroundColor:n.colors.success.dark.background}:"Opportunity for improvement"===e?{...t,backgroundColor:n.colors.warning.dark.background}:"Risk identified"===e?{...t,backgroundColor:n.colors.danger.dark.background}:t},lxe=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,rxe=le.default.a`
  margin: 0 5px;
  display: inline-block;
  text-align: center;
  color: ${e=>e.theme.colors.text.normal.background};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,oxe=e=>{let{data:n,onEdit:t,onCopy:a}=e;return(0,fe.jsxs)(lxe,{children:[(0,fe.jsx)(rxe,{onClick:()=>t(n?.id),children:(0,fe.jsx)(ie.In,{name:`account-row__edit--${n?.id}`,title:"Edit",icon:"pencil-alt"})}),(0,fe.jsx)(rxe,{onClick:()=>a(n),children:(0,fe.jsx)(ie.In,{name:`account-row__copy--${n?.id}`,title:"Duplicate",icon:"copy"})})]})},sxe=(0,le.default)(p.Link)`
  text-decoration: underline;
  margin-right: 10px;
  &:hover {
    text-decoration: none;
  }
`,dxe=e=>e.data.legislations.length?e.data.legislations.map(n=>(0,fe.jsx)(sxe,{to:`/governance/legislation/${n.id}`,children:(0,fe.jsx)(xA,{text:n.title,searchValue:e.searchValue})},n.id)):"Not exist";var cxe=t(68605);const uxe="aspectSearchValue";function pxe(){return(0,Gr.useQueryParam)(uxe,Gr.StringParam)}function mxe(){const{query:e}=(0,cxe.parseUrl)(window.location.href);return e[uxe]}const fxe="optionToDelete";function yxe(){return(0,Gr.useQueryParam)(fxe,Gr.JsonParam)}function gxe(){const{query:e}=(0,cxe.parseUrl)(window.location.href),n=(0,Gr.decodeJson)(e[fxe]);return n?.option?.name||null}function hxe(){const e=(0,C.m)();return async n=>{const{data:{getAspectsByAccountId:t}}=await e.query({query:ah,variables:n});return t}}const xxe=(0,le.default)(ie.fI)`
  flex: 1;
  padding: ${e=>e.theme.geometry.md.spacing};
`;function Txe(e){let{showEditModal:n,showCopyModal:t,canEdit:a,agGrid:i}=e;const l=Je(),r=(0,m.Zp)(),o=(0,g.useRef)(!1);o.current=a;const s=function(){const e=(0,C.m)(),n=(0,le.useTheme)(),t=Je(),{showNotification:a}=tn(),i={filter:"agSetColumnFilter",values:async n=>{try{const{data:{getAspectFilter:a}}=await e.query({query:sh,variables:{accountId:t,field:n.colDef.field}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){a(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning"),E.Cp(e),n.success([])}},valueFormatter:On,comparator:(e,n)=>JSON.parse(e)?.label-JSON.parse(n)?.label},l=e=>{let{value:n}=e;return Array.isArray(n)?qhe(n):n?.name};return{columnDefs:[{headerName:"Aspect Id",field:"id",cellRenderer:"searchable",filterParams:i,hide:!0},{headerName:"Scope",field:"scope",resizable:!0,filterParams:{...i,valueFormatter:e=>Ghe(On(e))},valueFormatter:e=>{let{data:n}=e;return Ghe(n.scope)}},{headerName:"Scope (Tags)",cellRenderer:"searchable",field:"tags",resizable:!0,valueFormatter:e=>{let{data:n}=e;return Whe(n)},filterParams:i},{headerName:"Scope (Locations)",cellRenderer:"searchable",field:"locations",resizable:!0,valueFormatter:e=>{let{data:n}=e;return zhe(n)},filterParams:i},{headerName:"Departments",cellRenderer:"searchable",field:"departments",resizable:!0,filterParams:i,valueFormatter:l},{headerName:"Activity / Process",cellRenderer:"searchable",field:"activity",filterParams:i,valueFormatter:l},{headerName:"Environmental Aspect(s)",cellRenderer:"searchable",field:"aspects",filterParams:i,valueFormatter:l},{headerName:"Potential Environmental Impact(s)",cellRenderer:"searchable",field:"impacts",filterParams:i,valueFormatter:l},{headerName:"Legislation Reference(s)",field:"legislations",cellRenderer:"legislationReference",filterParams:i,valueFormatter:e=>{let{value:n}=e;return n?.map(e=>e.title).join(", ")}},{headerName:"Likelihood (no control)",cellRenderer:"searchable",field:"likelihoodNoControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Severity (no control)",cellRenderer:"searchable",field:"severityNoControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Significance (no control)",field:"significanceNoControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Potential Emergency Condition(s)",cellRenderer:"searchable",field:"emergencyConditions",filterParams:i,valueFormatter:l},{headerName:"Relevant Control Measure(s)",cellRenderer:"searchable",field:"controlMeasures",filterParams:i,valueFormatter:l},{headerName:"Likelihood (with control)",cellRenderer:"searchable",field:"likelihoodControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Severity (with control)",cellRenderer:"searchable",field:"severityControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Significance (with control)",field:"significanceControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Review Date",field:"reviewDate",valueGetter:e=>e.data.reviewDate&&jj(e.data.reviewDate)||"",cellStyle:{textAlign:"center"},width:140,filter:"agDateColumnFilter",filterParams:{filterOptions:["equals","greaterThan","lessThan","notEqual","inRange",{displayKey:"emptyValue",displayName:"Empty",filter:(e,n)=>!n}]}},{headerName:"Created Date",field:"createdDate",valueGetter:e=>e.data.createdDate&&jj(e.data.createdDate)||"",cellStyle:{textAlign:"center"},width:140,filter:"agDateColumnFilter",filterParams:{filterOptions:["equals","greaterThan","lessThan","notEqual","inRange"]}},{headerName:"Owner",cellRenderer:"searchable",field:"owner.name",cellStyle:{textAlign:"center"},filterParams:i},{headerName:"Author",cellRenderer:"searchable",field:"author.name",cellStyle:{textAlign:"center"},filterParams:i},{headerName:"Status",cellRenderer:"searchable",field:"status",filterParams:i,valueFormatter:l,cellStyle:e=>{const t=e?.value?.name;return ixe(t,n)}},{headerName:"Active Tasks",cellRenderer:"searchable",field:"activeTasks",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"",cellRenderer:"action",cellStyle:{textAlign:"center"},width:75,sortable:!1,filter:!1}],pagination:!0,paginationPageSizeSelector:!1,cacheBlockSize:25,paginationPageSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,wrapText:!0,autoHeight:!0,filterParams:{showTooltip:!0}}}}(),d=(0,m.zy)(),c=d.hash?.slice?.(1),{showNotification:u}=tn(),p=hxe();return(0,fe.jsx)(xxe,{container:!0,item:!0,children:(0,fe.jsx)(Pg,{...s,components:{legislationReference:e=>(0,fe.jsx)(dxe,{...e,searchValue:gxe()||mxe()}),action:e=>o.current&&(0,fe.jsx)(oxe,{...e,onEdit:n,onCopy:t}),searchable:e=>(0,fe.jsx)(TA,{...e,searchValue:gxe()||mxe()})},onFirstDataRendered:e=>{c&&i?.api?.forEachNodeAfterFilter(e=>{e.data.id===c&&e.setSelected(!0)}),i.onFirstDataRendered(e)},onGridReady:e=>{i.onGridReady(e),e.api.setGridOption("serverSideDatasource",{async getRows(e){let{request:n,success:t,fail:a}=e;try{const{rows:e,totalRows:a}=await p({accountId:l,offset:n.startRow,limit:25,sort:txe(n.sortModel),filters:Hhe(n.filterModel,gxe()||mxe())});return t({rowData:e,rowCount:a}),{rows:e,totalRows:a}}catch(e){u(`Failed to update grid: ${e}`,"danger"),E.Cp(e),a()}}})},onCellClicked:e=>{"action"!==e.colDef.cellRenderer&&r(`/governance/environmental-aspects/${e.data.id}`)},onFilterChanged:i.onFilterChanged,onSortChanged:i.onSortChanged,onColumnVisible:i.onSaveGridColumnState,onColumnPinned:i.onSaveGridColumnState,onColumnResized:i.onSaveGridColumnState,onColumnMoved:i.onSaveGridColumnState,onColumnRowGroupChanged:i.onSaveGridColumnState,onColumnValueChanged:i.onSaveGridColumnState,onColumnPivotChanged:i.onSaveGridColumnState,rowSelection:"single"})})}const bxe=le.default.div`
  z-index: 10000;
`;var vxe=t(23555),Cxe=t.n(vxe),kxe=t(92322);const Sxe=le.default.div`
  display: flex;
  align-items: center;
  position: relative;
`,Nxe=(0,le.default)(ie.In)`
  position: absolute;
  right: ${e=>e.theme.geometry.xs.spacing};
  cursor: pointer;
  :hover {
    color: ${e=>e.theme.colors.danger.light.text};
  }
`,Axe=e=>{let{...n}=e;const t=(0,le.useTheme)(),{children:a,onDelete:i,data:l,innerProps:r,canDelete:o,clearValue:s,isSelected:d}=n,{showNotification:c}=tn();return(0,fe.jsxs)(Sxe,{children:[(0,fe.jsx)(kxe.c.Option,{...n,...r}),!l.isGlobal&&!l.isDeleted&&"NEW"!==l.value&&i&&(0,fe.jsx)(Nxe,{onClick:()=>{if(!o)return c("You are not permitted to delete this option, please contact your business admin.","warning");i(l.id,l.type),d&&s()},id:a,name:a,icon:"times",color:t.colors.text.light.background,size:"1x"})]})};function Rxe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{showNotification:n}=tn(),t=Wd(),[a]=(0,ln.n)(th,{...e,onCompleted:function(){n("Aspect has been deleted","success"),e.onCompleted&&e.onCompleted(...arguments)},onError:t=>{n(t.message,"danger"),e.onError&&e.onError(t)}});return async e=>{const{id:n,accountId:i}=e;await a({variables:e}),t([{fieldName:"getAspectsByAccountId",args:{accountId:i}},{fieldName:"getAspectOptions"},{fieldName:"getAspectById",args:{accountId:i,id:n}}])}}const Dxe=["activities","aspects","emergencyConditions","impacts","controlMeasures","statuses"];function Lxe(){const e=Je();return(0,x.IT)(dh,{variables:{accountId:e},notifyOnNetworkStatusChange:!0})}function Ixe(e){const n={text:[{field:"scope",filterType:gn.pe.Text,type:gn.II.Equals,filter:e.scope},{field:"activity.id",filterType:gn.pe.Text,type:gn.II.Equals,filter:e.activity}],set:[]};return e.locationIds?.length&&n?.set?.push({field:"locations.id",filterType:gn.pe.Set,values:e.locationIds}),e.tagIds?.length&&n?.set?.push({field:"tags.id",filterType:gn.pe.Set,values:e.tagIds}),e.departments?.length&&n?.set?.push({field:"departments.id",filterType:gn.pe.Set,values:e.departments}),e.aspects?.length&&n?.set?.push({field:"aspects.id",filterType:gn.pe.Set,values:e.aspects}),e.impacts?.length&&n?.set?.push({field:"impacts.id",filterType:gn.pe.Set,values:e.impacts}),e.legislationIds?.length&&n?.set?.push({field:"legislations.id",filterType:gn.pe.Set,values:e.legislationIds}),n}function jxe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{showNotification:n}=tn(),t=Wd(),[a]=(0,ln.n)(oh,{onCompleted:function(){n("Deleted","success"),e.onCompleted&&e.onCompleted(...arguments)},onError:t=>{n(t.message,"danger"),e.onError&&e.onError(t)},refetchQueries:["GetAllAspectOptions"]});return async e=>{const{accountId:n,type:i}=e;await a({variables:e}),t([{fieldName:"getAspectOptions",args:{accountId:n,type:i}}])}}function wxe(e){let{accountId:n,portalRef:t,onError:a,onCompleted:i,onDismiss:l,onReviewAspects:r}=e;const{showNotification:o}=tn(),s=(0,m.Zp)(),d=jxe({onError:e=>{a(e),o(e.message,"danger")},onCompleted:()=>{i()}}),[c,u]=yxe();return(0,fe.jsx)(fe.Fragment,{children:t.current&&c&&(0,C7.createPortal)((0,fe.jsx)(Ky,{show:!!c,headingText:`Are you sure you want to delete this ${Ig()(mh,c.option.type)}?`,bodyText:`This might affect ${c.relatedAspectsCount} related aspects`,onConfirmAction:async()=>{await d({accountId:n,id:c.option.id,type:c.option.type}),o(`${c.option.name} has been deleted!`),u(null)},confirmButtonTitle:"Yes, delete",cancelButtonTitle:"Review aspects",onCancelAction:()=>{l(),r(),s("/governance/environmental-aspects"),u({...c,isReviewingAspects:!0})},onDismiss:()=>{l(),u(null)}}),t.current)})}const Oxe=S.J1`
  query GetUsers($accountId: String!, $offset: Int, $limit: Int = 25, $sort: [SortCommand!], $filters: Filters) {
    getUsers(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      rows {
        id
        firstName
        lastName
      }
      totalRows
    }
  }
`;var Exe=t(76691);const _xe=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,Fxe=le.default.form`
  padding: 32px;
`,Pxe=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,Bxe=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,Uxe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,$xe=(0,le.default)(Uxe)`
  flex-basis: 50%;
`,Mxe=(0,le.default)(ie.$n)`
  width: 100%;
  margin-top: 12px;
`,Vxe=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -340px;
    left: 50%;
  }
`,Gxe=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,zxe=(0,le.default)(ie.fI)`
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,Wxe=(0,le.default)(ie.$n)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,qxe={[ph.ACTIVITY]:"activity",[ph.ASPECT]:"aspects",[ph.IMPACT]:"impacts",[ph.EMERGENCY_CONDITION]:"emergencyConditions",[ph.CONTROL_MEASURE]:"controlMeasures",[ph.STATUS]:"status",[ph.DEPARTMENT]:"departments"},Jxe=e=>{let{accountId:n,title:t,submitTitle:a,submittingTitle:i,onDismiss:l,onSubmit:r,values:o={},modalPortalRef:s,isCopy:d,hideDelete:c=!1}=e;const{token:u}=qe(),p=zo(),m=exe(o,n,u),[f,y]=(0,g.useState)({}),[h,T]=(0,g.useState)(m),[b,v]=(0,g.useState)(!1),[k,S]=(0,g.useState)(!1),[,N]=yxe(),{showNotification:A}=tn(),R=function(){const e=(0,C.m)();return async n=>{const{data:{getAspectsByAccountId:t}}=await e.query({query:ih,variables:n});return t}}(),D=function(){const e=hxe();return async n=>{const t=nxe(n,[],!1,!1,null),{totalRows:a}=await e({accountId:t.accountId,filters:Ixe(t)});return a>=1}}(),{data:L}=(0,x.IT)(kse,{variables:{accountId:n}}),I=Qhe(L?.getAllLegislation,"title").sort(Yn("label")),j=lr(),w=j.governance.some(e=>e.startsWith("createAspectOption")),O=j.governance.some(e=>e.startsWith("deleteAspectOption")),_=!!o.id,F=!c&&_&&((e,n,t)=>!!e.governance?.find(e=>e?.startsWith(n)&&!e.includes("Option")&&!e.endsWith("Own"))||e.governance?.includes(`${n}Own`)&&t)(j,"deleteAspect",o.author?.id===u.sub),[P,B]=(0,g.useState)(!1),U=Zhe(w),$=Zhe(!1),{data:M,refetch:V}=Lxe(),{departmentMultipleSelect:G,showCreateDepartment:z,setShowCreateDepartment:W}=$o(p?.departments,h.departments),q=Rxe({onError:()=>{v(!1)},onCompleted:()=>{l()}}),J=jxe(),Y=(0,g.useCallback)(async e=>{const t=Object.values(M),a=Cxe()(t).find(n=>n.id===e);if(!a)return;const{totalRows:i}=await R({accountId:n,filters:{set:[{filterType:gn.pe.Set,field:axe(a.type),values:[a.id]}]}});if(i>=1)return N({option:a,isReviewingAspects:!1,relatedAspectsCount:i});await J({accountId:n,id:a.id,type:a.type})},[M,n,N,R,J]),H=c?void 0:Y,K=(0,g.useMemo)(()=>({Option:e=>{let{...n}=e;return(0,fe.jsx)(Axe,{...n,onDelete:H,canDelete:O})}}),[O,H]),Q=(0,g.useMemo)(()=>({Option:e=>{let{...n}=e;return(0,fe.jsx)(Axe,{...n,onDelete:H,canDelete:!1})}}),[H]),[Z,X]=(0,g.useState)([]),[ne,te]=(0,g.useState)(""),{data:ae,loading:le}=(0,x.IT)(Oxe,{variables:{accountId:n,offset:0,sort:[{field:"firstName",order:"asc"}],filters:{text:[{filterType:gn.pe.Text,field:"accountId",type:gn.II.Equals,filter:n}],set:[...h.scope===gn.HG.Location&&h.locationIds?.length?[{filterType:gn.pe.Set,field:"allowedLocations",values:h.locationIds.map(e=>e.value)}]:[],...h.scope===gn.HG.Tag&&h.tagIds?.length?[{filterType:gn.pe.Set,field:"allowedTags",values:h.tagIds.map(e=>e.value)}]:[]]}},skip:!n||!h.scope}),re=(0,g.useMemo)(()=>ae?.getUsers?.rows?.map(e=>({value:e.id,label:`${e.firstName} ${e.lastName}`}))||[],[ae]),oe=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];T(t=>({...t,[e]:n})),f[e]&&y(n=>({...n,[e]:null})),t.forEach(e=>{T(n=>({...n,[e]:Array.isArray(n[e])?[]:null}))})};return(0,fe.jsxs)(ie.aF,{size:"md",onDismiss:l,dismissable:!0,show:!0,children:[(0,fe.jsx)(Exe.A,{children:(0,fe.jsx)(Nh,{showCreateDepartment:z,setShowCreateDepartment:W,onComplete:async(e,n)=>{const t=h.departments||[];T({...h,departments:[...t,{label:n.name,value:n.id}]})},passedAccountId:n})}),k&&(0,fe.jsx)(Exe.A,{children:(0,fe.jsx)(Sh,{accountId:n,type:k,onDismiss:()=>S(!1),onError:e=>A(e.message,"danger"),onCompleted:e=>{const{type:n,name:t,id:a}=e.createAspectOption;V(),S(!1);const i=qxe[n];if(Array.isArray(h[i])){const e=h[i];T({...h,[i]:[...e,{label:t,value:a}]})}else T({...h,[i]:a});y({...f,[i]:null}),A(`${Ig()(mh,n)} has been created!`)}})}),(0,fe.jsx)(wxe,{accountId:n,portalRef:s,onReviewAspects:()=>{l()},onError:()=>{v(!1)},onCompleted:()=>{V({accountId:n})},onDismiss:()=>{N(null)}}),(0,fe.jsxs)(Fxe,{children:[(0,fe.jsx)(Bxe,{children:t}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Scope"})}),(0,fe.jsx)(ie.l6,{options:ee,value:h.scope,onChange:e=>{oe("scope",e.target.value,["ownerId","tagIds","locationIds"])},error:f.scope})]})}),h.scope===gn.HG.Location&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Location(s)"})}),(0,fe.jsx)(eh,{defaultOptions:!0,disabled:!1,accountId:n,value:h.locationIds,onChange:e=>{oe("locationIds",e.target.select,["ownerId","tagIds"])},error:f.locationIds,isSubmitting:b})]})}),h.scope===gn.HG.Tag&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Tag(s)"})}),(0,fe.jsx)(Qg,{accountId:n,value:h.tagIds,onChange:e=>{oe("tagIds",e.target.select,["ownerId","locationIds"])},error:f.tagIds,isSubmitting:b})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Departments"})}),G(e=>{oe("departments",e.target.select)},f.departments)]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Owner"})}),(0,fe.jsx)(ie.l6,{value:re.find(e=>e.value===h.ownerId)||null,options:re,onChange:e=>{oe("ownerId",e.target.value)},isLoading:le,isClearable:!1,isDisabled:b,error:f?.ownerId})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Activity / Process"})}),(0,fe.jsx)(ie.l6,{options:U(M?.activities),value:h.activity,onChange:e=>{Xhe(e,()=>S(ph.ACTIVITY),()=>{oe("activity",e.target.value)})},components:K,error:f.activity})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Environmental Aspect(s)"})}),(0,fe.jsx)(ie.KF,{options:U(M?.aspects),value:h.aspects,onChange:e=>{Xhe(e,()=>S(ph.ASPECT),()=>{oe("aspects",e.target.select)})},error:f.aspects,components:K})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Potential Environmental Impact(s)"})}),(0,fe.jsx)(ie.KF,{options:U(M?.impacts),value:h.impacts,onChange:e=>{Xhe(e,()=>S(ph.IMPACT),()=>{oe("impacts",e.target.select)})},error:f.impacts,components:K})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Legislation Reference(s)"})}),(0,fe.jsx)(ie.KF,{options:I,value:h.legislationIds,onChange:e=>{oe("legislationIds",e.target.select)},error:f.legislationIds})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Likelihood (no control) (optional)"})}),(0,fe.jsx)(ie.l6,{isClearable:!0,options:fh,value:String(h.likelihoodNoControl),onChange:e=>{oe("likelihoodNoControl",e.target.value)},error:f.likelihoodNoControl})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Severity (no control) (optional)"})}),(0,fe.jsx)(ie.l6,{isClearable:!0,options:yh,value:String(h.severityNoControl),onChange:e=>{oe("severityNoControl",e.target.value)},error:f.severityNoControl})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Potential Emergency Condition(s) (optional)"})}),(0,fe.jsx)(ie.KF,{options:U(M?.emergencyConditions),value:h.emergencyConditions,onChange:e=>{Xhe(e,()=>S(ph.EMERGENCY_CONDITION),()=>{oe("emergencyConditions",e.target.select)})},error:f.emergencyConditions,components:K})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Relevant Control Measure(s)"})}),(0,fe.jsx)(ie.KF,{options:U(M?.controlMeasures),value:h.controlMeasures,onChange:e=>{Xhe(e,()=>S(ph.CONTROL_MEASURE),()=>{oe("controlMeasures",e.target.select)})},error:f.controlMeasures,components:K})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Likelihood (with control) (optional)"})}),(0,fe.jsx)(ie.l6,{isClearable:!0,options:fh,value:String(h.likelihoodControl),onChange:e=>{oe("likelihoodControl",e.target.value)},error:f.likelihoodControl})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Severity (with control) (optional)"})}),(0,fe.jsx)(ie.l6,{isClearable:!0,options:yh,value:String(h.severityControl),onChange:e=>{oe("severityControl",e.target.value)},error:f.severityControl})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Review date (optional)"})}),(0,fe.jsx)(Vxe,{placeholder:"Select review date",disabled:b,onDayClick:e=>{oe("reviewDate",e?.toISOString())},selectedDate:h.reviewDate?new Date(h.reviewDate):null})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(Uxe,{item:!0,children:[(0,fe.jsx)(Pxe,{children:(0,fe.jsx)(_xe,{children:"Status (optional)"})}),(0,fe.jsx)(ie.l6,{isClearable:!0,options:$(M?.statuses),value:h.status,onChange:e=>{Xhe(e,()=>S(ph.STATUS),()=>{oe("status",e.target.value)})},components:Q,error:f.status})]})}),(0,fe.jsx)(Lde,{evidenceDocuments:Z,setEvidenceDocuments:X,evidenceNotes:ne,setEvidenceNotes:te}),f?.general&&(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(ie.EY,{color:"danger",name:"errorMessage",children:f.general})}),(0,fe.jsxs)(ie.fI,{container:!0,children:[F&&(0,fe.jsx)($xe,{item:!0,grow:"1",children:(0,fe.jsx)(Mxe,{color:"danger",disabled:b,onClick:e=>{e.preventDefault(),B(!0)},children:"Delete"})}),(0,fe.jsx)($xe,{item:!0,grow:"1",children:(0,fe.jsx)(Mxe,{disabled:b,onClick:async e=>{e.preventDefault();const n=function(e){const n={};return e.scope||(n.scope="Scope is required"),e.scope!==gn.HG.Location||e.locationIds&&e.locationIds.length||(n.locationIds="Location is required"),e.scope!==gn.HG.Tag||e.tagIds&&e.tagIds.length||(n.tagIds="Tag is required"),e.activity||(n.activity="Activity / Process is required"),e.aspects&&e.aspects.length||(n.aspects="Environmental Aspect is required"),e.impacts&&e.impacts.length||(n.impacts="Potential Environmental Impact is required"),e.controlMeasures&&e.controlMeasures.length||(n.controlMeasures="Relevant Conrol Measure is required"),e.departments&&e.departments.length||(n.departments="Department is required"),n}(h);if(Object.keys(n).length)return y(n);if(d&&await D(h))return y({general:"It seems you are attempting to create an aspect which already exists. Please create a unique aspect."});v(!0);try{await r(h,ne,Z)}catch(e){(0,E.Cp)(e)}finally{v(!1)}},children:b&&i?i:a})})]})]}),P&&(0,fe.jsx)(ie.aF,{onDismiss:()=>B(!1),show:!0,name:"confirmationModal",children:(0,fe.jsxs)(Gxe,{children:[(0,fe.jsx)(zxe,{item:!0,children:(0,fe.jsx)(ie.DZ,{children:"Delete Aspect"})}),(0,fe.jsx)(zxe,{item:!0,children:(0,fe.jsx)(ie.EY,{children:"This action will permanently delete this aspect. Do you want to proceed?"})}),(0,fe.jsxs)(zxe,{container:!0,distribution:"around",children:[(0,fe.jsx)(Wxe,{color:"danger",disabled:b,onClick:()=>{v(!0),q({id:h.id,accountId:n})},children:"Delete"}),(0,fe.jsx)(Wxe,{disabled:b,onClick:()=>B(!1),children:"Cancel"})]})]})})]})},Yxe=(0,le.default)(ie.fI)`
  padding-left: ${e=>e.theme.geometry.md.spacing};
  padding-top: ${e=>e.theme.geometry.md.spacing};
`,Hxe=(0,le.default)(ie.fv)`
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,Kxe=(0,le.default)(ie.Yq)`
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
`,Qxe=(0,le.default)(Kxe)`
  color: red;
  &:hover {
    color: red;
  }
`;function Zxe(e){let{accountId:n,optionToDelete:t,onCancelReview:a}=e;const i=jxe({onCompleted:()=>{a()}});return(0,fe.jsxs)(Yxe,{alignItems:"center",container:!0,children:[(0,fe.jsx)(Hxe,{item:!0,span:6,children:(0,fe.jsxs)(Qxe,{color:"danger",onClick:()=>{i({accountId:n,type:t.option.type,id:t.option.id})},children:["Yes, delete ",t.option.name]})}),(0,fe.jsx)(Hxe,{item:!0,span:6,children:(0,fe.jsx)(Kxe,{to:"#",onClick:()=>{a()},children:"Cancel"})})]})}const Xxe=(0,le.default)(ie.fI)`
  width: 100%;
  flex-flow: row nowrap;
  justify-content: center;
`,eTe=(0,le.default)(ie.$n)`
  width: 100%;
`,nTe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
  min-width: 200px;
`,tTe=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
  padding: 20px;
`,aTe=e=>{let{onConfirm:n}=e;return(0,fe.jsxs)(ie.aF,{size:"md",onDismiss:()=>n(!1),show:!0,children:[(0,fe.jsx)(tTe,{size:"lg",children:"Do you want to create an associated task?"}),(0,fe.jsxs)(Xxe,{container:!0,children:[(0,fe.jsx)(nTe,{span:4,children:(0,fe.jsx)(eTe,{color:"success",onClick:()=>n(!0),children:"Yes"})}),(0,fe.jsx)(nTe,{span:4,children:(0,fe.jsx)(eTe,{color:"info",onClick:()=>n(!1),children:"No"})})]})]})};function iTe(){const e=jde();let n;return async(t,a,i)=>{if(!t.length&&!a)return[];if(t.length){const a=i.scope===gn.HG.Tag?i.tagIds?.map(e=>{let{value:n}=e;return n}):[];n=await e(t,a,"Aspects and Impacts")}return[{notes:a,documents:n}]}}function lTe(){return(0,ln.n)(nh)}const rTe=e=>{let{isUpdate:n,aspectId:t}=e;return(0,fe.jsxs)(fe.Fragment,{children:["Aspect successfully ",n?"updated":"created",".",!n&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)("span",{children:"You can check it "}),(0,fe.jsx)(ie.Yq,{href:`/governance/environmental-aspects/${t}`,target:"_blank",noreferrer:!0,noopener:!0,inline:!0,children:"here"})]})]})},oTe=(0,le.default)(ie.fI)`
  flex: 1;
  align-items: center;
  & * {
    margin-right: ${e=>e.theme.geometry.xs.spacing};
  }
`,sTe=(0,le.default)(ie.$n)`
  width: 100%;
`,dTe=()=>{const e=Je(),{data:n}=Mr(),t=lr(),{showNotification:a}=tn(),[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(null),[s,d]=function(){const[e,n]=(0,Gr.useQueryParam)("showEditModal",Gr.StringParam),t=Je(),{data:a}=(0,x.IT)(Jl,{skip:!t||!e,variables:{accountId:t,id:e}});return[a?.getAspectById,n]}(),[c,u]=(0,g.useState)(null),[p,m]=(0,g.useState)(null),f=hxe(),[y,h]=pxe(),T=(0,g.useCallback)(e=>Hhe(e,y),[y]),[b,v]=yxe(),C=qr(),k=(0,g.useRef)(null),S=(0,XT.useDebouncedCallback)(()=>{C?.api?.refreshServerSide({purge:!0})},1e3);(0,g.useEffect)(()=>{b?b?.isReviewingAspects&&S():S()},[y,b,S]);const{loading:N,data:A}=(0,x.IT)(Sue,{variables:{accountId:e},notifyOnNetworkStatusChange:!0}),R=xse.filter(e=>!e.comingSoon&&n.comply[e.accessIndex]),D="Aspects & Impacts Register";if(R.push({title:D,link:"/governance/environmental-aspects"}),!N&&!A.getAvailableManagementSystems.find(e=>{let{title:n}=e;return n.includes("ISO14001")}))return(0,fe.jsx)(Ec,{name:"Forbidden_Aspects",error:new Error("Forbidden")});const L=function(e){let{onSave:n,onTaskSuggestion:t,onComplete:a}=e;const[i]=lTe(),{token:l}=qe(),{showNotification:r}=tn(),o=iTe();return async e=>{let{evidenceDocuments:s,evidenceNotes:d,formState:c,intent:u}=e;try{const e=await o(s,d,c),{data:p}=await i({variables:{input:nxe(c,e,"edit"===u,"copy"===u,l)}}),m=p.createAspect;n(m),"edit"===u||c?.taskId?a(m):t(c,m),r((0,fe.jsx)(rTe,{aspectId:c.id,isUpdate:"edit"===u}),"success",{autoClose:2e4})}catch(e){(0,E.Cp)(e),r("Something went wrong, please try again or contact support","danger")}}}({onComplete:()=>S(),onSave:()=>{l(!1),d(""),o(null)},onTaskSuggestion:e=>u(e)}),I=(e,n,t)=>L({formState:e,evidenceDocuments:t,evidenceNotes:n,intent:s?"edit":r?"copy":void 0});return(0,fe.jsxs)(ie.fv,{container:!0,item:!0,children:[(0,fe.jsx)(bxe,{ref:k}),i&&(0,fe.jsx)(Jxe,{title:"Create Aspect",submitTitle:"Create Aspect",onDismiss:()=>l(!1),accountId:e,onSubmit:I,modalPortalRef:k}),r&&(0,fe.jsx)(Jxe,{title:"Duplicate Aspect",submitTitle:"Create Aspect",onDismiss:()=>o(null),accountId:e,onSubmit:I,values:{...r,id:void 0},modalPortalRef:k,isCopy:!0}),s&&(0,fe.jsx)(Jxe,{title:"Edit Aspect",submitTitle:"Save Aspect",onDismiss:()=>d(""),accountId:e,onSubmit:I,values:s,modalPortalRef:k}),!!c&&(0,fe.jsx)(aTe,{onConfirm:e=>{e?m(c):S(),u(null)}}),!!p&&(0,fe.jsx)(Pde,{accountId:e,onDismiss:()=>m(null),onComplete:e=>{const n=e?.message,t=e?.colour;a(n,t)},defaultValues:{scope:p.scope,tagIds:p.tagIds,locationIds:p.locationIds,category:"GOVERNANCE",subject:"ASPECTS",item:{id:p.id}},disabled:{scope:!0,category:!0,subject:!0,locations:!0,tags:!0,[gn.AR.Aspects]:!0}}),(0,fe.jsx)(xV,{name:"Aspects",title:"Aspects",breadcrumbs:[{title:"Governance",to:".."},{title:D}],icon:"pencil-alt",iconColor:"tertiary",isDropdown:!0,dropdownItems:R,dropdownDefault:D,children:(0,fe.jsxs)(oTe,{name:"ConfigurationAspectContainer__Controls",container:!0,alignItems:"center",children:[(0,fe.jsx)(ie.fv,{item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationAspectContainer__Controls__Search",value:y,onChange:e=>h(e.target.value),hideButton:!0})}),(0,fe.jsx)(ie.fv,{item:!0,children:(0,fe.jsx)(qg,{gridApi:C.api})}),(0,fe.jsx)(ie.fv,{item:!0,children:(0,fe.jsx)(Mx,{step:100,fetchRows:f,gridApi:C.api,defaultExportFileName:"aspects",columnsToSkip:["Actions"],label:"Export",customSortModelMapper:txe,customFilterModelMapper:T})}),!!t.governance.find(e=>e.startsWith("createAspect"))&&(0,fe.jsx)(ie.fv,{item:!0,children:(0,fe.jsx)(sTe,{name:"ConfigurationAspectContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>l(!0),children:"+ Add Aspect"})})]})}),b?.isReviewingAspects&&(0,fe.jsx)(Zxe,{optionToDelete:b,accountId:e,onCancelReview:()=>{v(null)}}),(0,fe.jsx)(Txe,{showEditModal:d,showCopyModal:o,canEdit:!!t.governance.find(e=>e.startsWith("createAspect")),agGrid:C})]})};var cTe=t(35885),uTe=t.n(cTe);const pTe=(0,le.default)(ie.fv)`
  display: flex;
  min-height: 300px;
`,mTe=le.default.div`
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
`,fTe=()=>{const{id:e}=(0,m.g)(),n=Je(),[t,a]=(0,g.useState)(null),i=lr(),{token:l}=qe(),r=qr(),{data:o,loading:s,refetch:d,error:c}=(0,x.IT)(uTe(),{variables:{accountId:n,userId:l.sub}}),u=(o?.getTasksByAccountId||[]).filter(n=>n.item?.id===e);return(0,fe.jsxs)(pTe,{container:!0,item:!0,children:[s&&(0,fe.jsx)(mTe,{children:(0,fe.jsx)(ie.Ip,{})}),t&&(0,fe.jsx)(Dce,{selectedTask:t,onDismiss:()=>a(null),disabled:{[gn.AR.Aspects]:!0},sourcePage:"ASPECTS"}),c?(0,fe.jsx)($c,{error:c,retry:()=>d({accountId:n,userId:l.sub})}):!s&&(0,fe.jsx)(fce,{canEdit:!!i.task.find(e=>e.startsWith("edit")),tasks:u,agGrid:r})]})},yTe=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,gTe=le.default.div`
  overflow: auto;
  height: 100%;
  padding: ${e=>e.theme.geometry.md.spacing};
`,hTe=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,xTe=le.default.div`
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: 100%;
  width: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing};
  padding-bottom: ${e=>e.theme.geometry.sm.spacing};
  background-color: ${e=>e.theme.colors.basic.white};
`,TTe=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,bTe=(0,le.default)(ie.fv)`
  padding: 0 ${e=>e.theme.geometry.md.spacing};
`,vTe=(0,le.default)(bTe)`
  flex-direction: row;
  display: flex;

  h2:first-child {
    margin-right: ${e=>e.theme.geometry.sm.spacing};
  }
`,CTe=le.default.div`
  display: flex;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,kTe=le.default.div`
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
`,STe=(0,le.default)(p.Link)`
  text-decoration: underline;
`,NTe=le.default.div`
  margin-top: 32px;
`;function ATe(){const{id:e}=(0,m.g)(),n=(0,g.useRef)(null),t=Je(),a=lr(),{token:i}=qe(),{showNotification:l}=tn(),[r,o]=(0,g.useState)(!1),[s,d]=(0,g.useState)(!1),[c,u]=(0,g.useState)([]),[p,f]=(0,g.useState)(""),[y,h]=(0,g.useState)(!1),{data:T,loading:b,error:v,refetch:C}=function(e){return function(e,n){return(0,x.IT)(Jl,{variables:{id:e,accountId:n}})}(e,Je())}(e),k=T?.getAspectById,S=k&&exe(k,t,i),[N]=lTe(),A=(e=>{if(!e)return null;const n=Ghe(e.scope);return e.scope===gn.HG.Location?`${n}: ${zhe(e)}`:e.scope===gn.HG.Tag?`${n}: ${Whe(e)}`:n})(k),R=!!v,D=!R&&!!k&&!b,L=!!a.governance.find(e=>e.startsWith("createAspect")),I=iTe(),j=()=>{d(!1),f(""),u([])},w=async(n,t,a)=>{try{const r=await I(a,t,n);await N({variables:{input:nxe(n,r,!0,!1,i)}}),h(!1),j(),C({id:e}),l("Aspect successfully updated","success")}catch{l("Something went wrong, please try again or contact support","danger")}};return(0,fe.jsxs)(yTe,{children:[(0,fe.jsx)(bxe,{ref:n}),(0,fe.jsx)(xV,{name:"Aspect",title:"Aspect",breadcrumbs:[{title:"Governance",to:"/governance"},{title:"Aspects & Impacts Register",to:"/governance/environmental-aspects"}],icon:"pencil-alt",iconColor:"tertiary",children:D&&(0,fe.jsxs)("div",{children:[L&&(0,fe.jsx)(hTe,{name:"TasksHome__Button--create",inline:!0,color:"info",onClick:()=>h(!0),children:"Edit Aspect"}),!!a.task.find(e=>e.startsWith("create"))&&(0,fe.jsx)(hTe,{"data-cy":"TasksHome__Button--create",inline:!0,color:"primary",onClick:()=>o(!0),children:"+ Create Task"}),!!a.task.find(e=>e.startsWith("edit"))&&(0,fe.jsx)(hTe,{"data-cy":"TasksHome__Button--create",inline:!0,color:"tertiary",onClick:()=>d(!0),children:"Add Evidence"})]})}),(0,fe.jsxs)(gTe,{children:[b&&(0,fe.jsx)(TTe,{children:(0,fe.jsx)(ie.Ip,{})}),R&&(0,fe.jsx)(Ec,{error:new Error("Not available")}),r&&(0,fe.jsx)(Pde,{accountId:t,onDismiss:()=>o(!1),onComplete:e=>{const n=e?.message,t=e?.colour;l(n,t)},defaultValues:{scope:k?.scope,tagIds:k?.tags?.filter(Boolean).map(e=>({value:e?.id,label:e?.tagName})),locationIds:k?.locations?.filter(Boolean).map(e=>({value:e?.id,label:e?.name})),category:gn.Ix.Governance,subject:gn.AR.Aspects,item:{id:e}},disabled:{scope:!0,category:!0,subject:!0,locations:!0,tags:!0,[gn.AR.Aspects]:!0}}),y&&(0,fe.jsx)(Jxe,{title:"Edit Aspect",submitTitle:"Save Aspect",onDismiss:()=>h(!1),accountId:t,onSubmit:w,values:k,isCopy:!1,modalPortalRef:n}),s&&(0,fe.jsx)(ie.aF,{show:!0,size:"md",onDismiss:j,height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(xTe,{children:[(0,fe.jsx)(ie.DZ,{children:"Add Evidence"}),(0,fe.jsx)(Lde,{evidenceDocuments:c,setEvidenceDocuments:u,evidenceNotes:p,setEvidenceNotes:f}),(0,fe.jsx)(ie.$n,{disabled:!c.length&&!p,onClick:S&&(()=>w(S,p,c)),children:"Save Evidence"})]})}),D&&(0,fe.jsxs)(xTe,{children:[(0,fe.jsxs)(kTe,{children:[(0,fe.jsxs)(vTe,{span:6,children:[(0,fe.jsx)(ie.EY,{children:"Status: "}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.status?.name})]}),(0,fe.jsxs)(vTe,{span:6,children:[(0,fe.jsx)(ie.EY,{children:"Review Date: "}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:Sn(k?.reviewDate)})]})]}),(0,fe.jsxs)(CTe,{children:[(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Scope:"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:A})]}),(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Departments:"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:Jhe(k?.departments)})]})]}),(0,fe.jsxs)(CTe,{children:[(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Activity / Process:"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.activity?.name})]}),(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Environmental Aspect(s):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:Jhe(k?.aspects)})]})]}),(0,fe.jsxs)(CTe,{children:[(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Potential Environmental Impact(s):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:Jhe(k?.impacts)})]}),(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Legislation Reference(s):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.legislations?.map((n,t)=>n&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(STe,{to:"/governance/legislation/"+e,children:n.title}),t+1!==k?.legislations?.length?(0,fe.jsx)("br",{}):null]}))||"-"})]})]}),(0,fe.jsxs)(CTe,{children:[(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Relevant Control Measure(s):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:Jhe(k?.controlMeasures)})]}),(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Potential Emergency Condition(s):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:Jhe(k?.emergencyConditions)})]})]}),(0,fe.jsxs)(CTe,{children:[(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Likelihood (no control):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.likelihoodNoControl||0})]}),(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Likelihood (with control):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.likelihoodControl||0})]})]}),(0,fe.jsxs)(CTe,{children:[(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Severity (no control):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.severityNoControl||0})]}),(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Severity (with control):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.severityControl||0})]})]}),(0,fe.jsxs)(CTe,{children:[(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Significance (no control):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.significanceNoControl||0})]}),(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Significance (with control):"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.significanceControl||0})]})]}),(0,fe.jsx)(CTe,{children:(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Aspect Owner:"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.owner?.name||"Not assigned"})]})}),(0,fe.jsxs)(CTe,{children:[(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Aspect Creator:"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.author?.name})]}),(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Edited by:"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.editor?.name||"-"})]})]}),(0,fe.jsxs)(CTe,{children:[(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Date Created:"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.createdDate?Sn(k?.createdDate):"-"})]}),(0,fe.jsxs)(bTe,{item:!0,span:6,children:[(0,fe.jsx)(ie.EY,{children:"Date last edited:"}),(0,fe.jsx)(ie.EY,{color:"dark",weight:"bold",children:k?.editedDate?Sn(k?.editedDate):"-"})]})]}),(0,fe.jsx)(kTe,{children:(0,fe.jsx)(vTe,{span:12,children:(0,fe.jsx)(ie.DZ,{children:"Tasks"})})}),(0,fe.jsx)(fTe,{}),(0,fe.jsx)(NTe,{children:(0,fe.jsx)(CTe,{children:(0,fe.jsxs)(bTe,{span:12,children:[(0,fe.jsx)(ie.DZ,{children:"Evidence"}),!!k.evidenceNotes?.length&&k.evidenceNotes.map(e=>(0,fe.jsx)(bde,{evidence:e},JSON.stringify(e))),!k.evidenceNotes?.length&&(0,fe.jsx)(ie.EY,{children:"Currently there is no evidence assigned to this task."})]})})})]}),!b&&!D&&(0,fe.jsx)(jc,{name:"Aspect_Forbidden",error:new Error("You do not have access to this aspect")})]})]})}const RTe=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,DTe=le.default.form`
  padding: 32px;
`,LTe=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,ITe=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,jTe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,wTe=(0,le.default)(jTe)`
  flex-basis: 50%;
`,OTe=(0,le.default)(ie.$n)`
  width: 100%;
  margin-top: 12px;
`,ETe=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -340px;
    left: 50%;
  }
`,_Te=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,FTe=(0,le.default)(ie.fI)`
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,PTe=(0,le.default)(ie.$n)`
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,BTe=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";return e?.filter(Boolean).map(e=>({...e,label:e[n],value:e[t]}))||[]},UTe=(e,n,t)=>{(Array.isArray(e.target.select)?e.target.select.find(e=>{let{value:n}=e;return"NEW"===n}):"NEW"===e.target.select?.value)?n(e):t(e)},$Te=e=>e?e.map(e=>({label:e,value:e})):[],MTe=(e,n,t)=>({id:e.id||(0,Wa.A)(),accountId:n,scope:e.scope,locationIds:BTe(e.locations),tagIds:BTe(e.tags,"tagName"),activity:e.activity||null,departments:$Te(e.departments),risks:$Te(e.risks),impacts:$Te(e.impacts),legislationIds:BTe(e.legislations,"title"),likelihoodNoControl:e.likelihoodNoControl,severityNoControl:e.severityNoControl,emergencyConditions:$Te(e.emergencyConditions),controlMeasures:$Te(e.controlMeasures),likelihoodControl:e.likelihoodControl,severityControl:e.severityControl,reviewDate:e.reviewDate,status:e.status,taskId:e.task?.id,authorId:e.authorId||t.sub}),VTe=e=>{let{accountId:n,title:t,submitTitle:a,onDismiss:i,onSubmit:l,values:r={},isCopy:o}=e;const{token:s}=qe(),d=zo(),c=MTe(r,n,s),[u,p]=(0,g.useState)({}),[m,f]=(0,g.useState)(c),[y,h]=(0,g.useState)(!1),[x,T]=(0,g.useState)(!1),{showNotification:b}=tn(),{departmentMultipleSelect:v,showCreateDepartment:C,setShowCreateDepartment:k}=$o(d.departments,m.departments),S=lr(),N=S.governance.find(e=>e.startsWith("deleteRiskOption")),A=!!r.id&&((e,n,t)=>!!e.governance.find(e=>e.startsWith(n)&&!e.includes("Option")&&!e.endsWith("Own"))||e.governance.includes(`${n}Own`)&&t)(S,"deleteRisk",r.authorId===s.sub),[R,D]=(0,g.useState)(!1),L=[];let I=[];r.activity&&!L.find(e=>{let{value:n}=e;return n===r.activity})&&L.push({value:r.activity,label:r.activity,isDeleted:!0});const j={[ph.ACTIVITY]:"activity",[ph.RISK]:"risks",[ph.IMPACT]:"impacts",[ph.EMERGENCY_CONDITION]:"emergencyConditions",[ph.CONTROL_MEASURE]:"controlMeasures",[ph.STATUS]:"status",[ph.DEPARTMENT]:"departments"},w=e=>(e=>{I=I.filter(n=>n.id!==e)})(e),O={Option:e=>{let{...n}=e;return(0,fe.jsx)(Axe,{...n,onDelete:w,canDelete:N})}};return(0,fe.jsxs)(ie.aF,{size:"md",onDismiss:i,dismissable:!0,show:!0,children:[(0,fe.jsx)(Nh,{showCreateDepartment:C,setShowCreateDepartment:k,onComplete:async(e,n)=>{f({...m,departments:[...m.departments,{label:n.name,value:n.departmentId}]})}}),x&&(0,fe.jsx)(Sh,{accountId:n,type:x,onDismiss:()=>T(!1),onError:e=>b(e.message,"danger"),onCompleted:e=>{const{type:n,name:t}=e.createRiskOption;T(!1);const a=j[n];Array.isArray(m[a])?f({...m,[a]:[...m[a],{label:t,value:t}]}):f({...m,[a]:t}),p({...u,[a]:null}),b(`${mh[n]} has been created!`)}}),(0,fe.jsxs)(DTe,{children:[(0,fe.jsx)(ITe,{children:t}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Scope"})}),(0,fe.jsx)(ie.l6,{options:ee,value:m.scope,onChange:e=>{f({...m,scope:e.target.value,tagIds:null,locationIds:null}),p({...u,scope:null,tagIds:null,locationIds:null})},error:u.scope})]})}),m.scope===Y&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Location(s)"})}),(0,fe.jsx)(eh,{accountId:n,value:m.locationIds,onChange:e=>{f({...m,locationIds:e.target.select}),p({...u,locationIds:null})},error:u.locationIds,isSubmitting:y})]})}),m.scope===K&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Tag(s)"})}),(0,fe.jsx)(Qg,{accountId:n,value:m.tagIds,onChange:e=>{f({...m,tagIds:e.target.select}),p({...u,tagIds:null})},error:u.tagIds,isSubmitting:y})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Departments"})}),v(e=>{f({...m,departments:e.target.select}),p({...u,departments:null})})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Activity / Process"})}),(0,fe.jsx)(ie.l6,{options:L,value:m.activity,onChange:e=>{UTe(e,()=>T(ph.ACTIVITY),()=>{f({...m,activity:e.target.value}),p({...u,activity:null})})},components:O,error:u.activity})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Identified Hazards"})}),(0,fe.jsx)(ie.l6,{options:[],value:m.hazzards,onChange:e=>{UTe(e,()=>T(ph.HAZZARDS),()=>{f({...m,hazzards:e.target.value}),p({...u,hazzards:null})})},components:O,error:u.activity})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Who may be effected"})}),(0,fe.jsx)(ie.l6,{options:[],value:m.whoIsEffected,onChange:e=>{UTe(e,()=>T(ph.WHOISEFFECTED),()=>{f({...m,whoIsEffected:e.target.value}),p({...u,whoIsEffected:null})})},components:O,error:u.activity})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Environmental Risk(s)"})}),(0,fe.jsx)(ie.KF,{options:I,value:m.risks,onChange:e=>{UTe(e,()=>T(ph.RISK),()=>{f({...m,risks:e.target.select}),p({...u,risks:null})})},error:u.risks,components:O})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Potential Environmental Impact(s)"})}),(0,fe.jsx)(ie.KF,{options:[],value:m.impacts,onChange:e=>{UTe(e,()=>T(ph.IMPACT),()=>{f({...m,impacts:e.target.select}),p({...u,impacts:null})})},error:u.impacts,components:O})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Legislation Reference(s)"})}),(0,fe.jsx)(ie.KF,{options:[],value:m.legislationIds,onChange:e=>{f({...m,legislationIds:e.target.select}),p({...u,legislationIds:null})},error:u.legislationIds})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Likelihood (no control) (optional)"})}),(0,fe.jsx)(ie.l6,{isClearable:!0,options:fh,value:String(m.likelihoodNoControl),onChange:e=>{f({...m,likelihoodNoControl:e.target.value}),p({...u,likelihoodNoControl:null})},error:u.likelihoodNoControl})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Severity (no control) (optional)"})}),(0,fe.jsx)(ie.l6,{isClearable:!0,options:yh,value:String(m.severityNoControl),onChange:e=>{f({...m,severityNoControl:e.target.value}),p({...u,severityNoControl:null})},error:u.severityNoControl})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Potential Emergency Condition(s)"})}),(0,fe.jsx)(ie.KF,{options:[],value:m.emergencyConditions,onChange:e=>{UTe(e,()=>T(ph.EMERGENCY_CONDITION),()=>{f({...m,emergencyConditions:e.target.select}),p({...u,emergencyConditions:null})})},error:u.emergencyConditions,components:O})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Relevant Control Measure(s)"})}),(0,fe.jsx)(ie.KF,{options:[],value:m.controlMeasures,onChange:e=>{UTe(e,()=>T(ph.CONTROL_MEASURE),()=>{f({...m,controlMeasures:e.target.select}),p({...u,controlMeasures:null})})},error:u.controlMeasures,components:O})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Likelihood (with control) (optional)"})}),(0,fe.jsx)(ie.l6,{isClearable:!0,options:fh,value:String(m.likelihoodControl),onChange:e=>{f({...m,likelihoodControl:e.target.value}),p({...u,likelihoodControl:null})},error:u.likelihoodControl})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Severity (with control) (optional)"})}),(0,fe.jsx)(ie.l6,{isClearable:!0,options:yh,value:String(m.severityControl),onChange:e=>{f({...m,severityControl:e.target.value}),p({...u,severityControl:null})},error:u.severityControl})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Review date (optional)"})}),(0,fe.jsx)(ETe,{placeholder:"Select review date",disabled:y,onDayClick:e=>{f({...m,reviewDate:e?.toISOString()}),p({...u,reviewDate:null})},selectedDate:m.reviewDate?new Date(m.reviewDate):null})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(jTe,{item:!0,children:[(0,fe.jsx)(LTe,{children:(0,fe.jsx)(RTe,{children:"Status (optional)"})}),(0,fe.jsx)(ie.l6,{isClearable:!0,options:[],value:m.status,onChange:e=>{UTe(e,()=>T(ph.STATUS),()=>{f({...m,status:e.target.value}),p({...u,status:null})})},components:O,error:u.status})]})}),u?.general&&(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(ie.EY,{color:"danger",name:"errorMessage",children:u.general})}),(0,fe.jsxs)(ie.fI,{container:!0,children:[A&&(0,fe.jsx)(wTe,{item:!0,grow:"1",children:(0,fe.jsx)(OTe,{color:"danger",disabled:y,onClick:e=>{e.preventDefault(),D(!0)},children:"Delete"})}),(0,fe.jsx)(wTe,{item:!0,grow:"1",children:(0,fe.jsx)(OTe,{disabled:y,onClick:async e=>{e.preventDefault();const n=function(e){const n={};return e.scope||(n.scope="Scope is required"),e.scope!==Y||e.locationIds&&e.locationIds.length||(n.locationIds="Location is required"),e.scope!==K||e.tagIds&&e.tagIds.length||(n.tagIds="Tag is required"),e.activity||(n.activity="Activity / Process is required"),e.risks&&e.risks.length||(n.risks="Environmental Risk is required"),e.hazzards||(n.activity="Identified Hazzards is required"),e.whoIsEffected||(n.risks="Who may be effected is required"),e.impacts&&e.impacts.length||(n.impacts="Potential Environmental Impact is required"),e.emergencyConditions&&e.emergencyConditions.length||(n.emergencyConditions="Potential Emergency Conditions is required"),e.controlMeasures&&e.controlMeasures.length||(n.controlMeasures="Relevant Conrol Measure is required"),n}(m);return Object.keys(n).length?p(n):o&&((e,n)=>{const t=["scope","locationIds","tagIds","departments","activity","risks","impacts","legislationReference"],a=xn().pick(MTe(e),t),i=xn().pick(n,t);return xn().isEqual(a,i)})(r,m)?p({general:"It seems you are attempting to create an risk which already exists. Please create a unique risk."}):(h(!0),await l(m),void h(!1))},children:a})})]})]}),R&&(0,fe.jsx)(ie.aF,{onDismiss:()=>D(!1),show:!0,name:"confirmationModal",children:(0,fe.jsxs)(_Te,{children:[(0,fe.jsx)(FTe,{item:!0,children:(0,fe.jsx)(ie.DZ,{children:"Delete Risk"})}),(0,fe.jsx)(FTe,{item:!0,children:(0,fe.jsx)(ie.EY,{children:"This action will permanently delete this risk. Do you want to proceed?"})}),(0,fe.jsxs)(FTe,{container:!0,distribution:"around",children:[(0,fe.jsx)(PTe,{color:"danger",disabled:y,onClick:()=>{h(!0),m.id,b("Risk has been deleted!"),i()},children:"Delete"}),(0,fe.jsx)(PTe,{disabled:y,onClick:()=>D(!1),children:"Cancel"})]})]})})]})},GTe=(0,le.default)(ie.fI)`
  flex: 1;
  padding: ${e=>e.theme.geometry.md.spacing};
`,zTe=(0,le.default)(p.Link)`
  text-decoration: underline;
  margin-right: 10px;
  &:hover {
    text-decoration: none;
  }
`,WTe=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,qTe=le.default.a`
  margin: 0 5px;
  display: inline-block;
  text-align: center;
  color: ${e=>e.theme.colors.text.normal.background};

  &:hover {
    color: ${e=>e.theme.colors.text.dark.background};
    cursor: pointer;
  }
`,JTe=e=>e.data.legislations.length?e.data.legislations.map(e=>(0,fe.jsx)(zTe,{to:`/governance/legislation/${e.id}`,children:e.title},e.id)):"Not exist",YTe=e=>{let{data:{id:n},onEdit:t,onCopy:a}=e;return(0,fe.jsxs)(WTe,{children:[(0,fe.jsx)(qTe,{onClick:()=>t(n),children:(0,fe.jsx)(ie.In,{name:`account-row__edit--${n}`,title:"Edit",icon:"pencil-alt"})}),(0,fe.jsx)(qTe,{onClick:()=>a(n),children:(0,fe.jsx)(ie.In,{name:`account-row__copy--${n}`,title:"Duplicate",icon:"copy"})})]})};function HTe(e){let{risks:n,showEditModal:t,showCopyModal:a,canEdit:i,currentAccount:l,agGrid:r}=e;const o=(0,m.Zp)(),s=(0,g.useRef)(),d=(0,g.useRef)();d.current=l,s.current=i;const c=[{headerName:"Scope",field:"scopeLevel",resizable:!0},{headerName:"Scope (Tags)",field:"scopeTags",resizable:!0},{headerName:"Scope (Locations)",field:"scopeLocations",resizable:!0},{headerName:"Departments",field:"departments",valueGetter:e=>{const n=e.data.departments;return n?n.join(", "):null},resizable:!0,filterParams:{valueFormatter:e=>{if(!e.value)return e.value;const n=(0,hn.find)(d.current.departments,{id:e.value});return n?n.name:null}}},{headerName:"Activity / Process",field:"activity"},{headerName:"Identified Hazards",field:"hazzards"},{headerName:"Who may be effected",field:"whoIsEffected"},{headerName:"Legislation Reference(s)",field:"legislations",valueGetter:e=>e.data.legislations.filter(Boolean).map(e=>{let{title:n}=e;return n}).join(",")||"Not exist",cellRenderer:"legislationReference"},{headerName:"Likelihood (no control)",field:"likelihoodNoControl",cellStyle:{textAlign:"center"}},{headerName:"Severity (no control)",field:"severityNoControl",cellStyle:{textAlign:"center"}},{headerName:"Significance (no control)",valueGetter:e=>(e=>{let{likelihoodNoControl:n,severityNoControl:t}=e;return n&&t?n*t:null})(e.data),cellStyle:{textAlign:"center"}},{headerName:"Potential Emergency Condition(s)",field:"emergencyConditions"},{headerName:"Relevant Control Measure(s)",field:"controlMeasures"},{headerName:"Likelihood (with control)",field:"likelihoodControl",cellStyle:{textAlign:"center"}},{headerName:"Severity (with control)",field:"severityControl",cellStyle:{textAlign:"center"}},{headerName:"Significance (with control)",valueGetter:e=>(e=>{let{likelihoodControl:n,severityControl:t}=e;return n&&t?n*t:null})(e.data),cellStyle:{textAlign:"center"}},{headerName:"Review Date",valueGetter:e=>e.data.reviewDate&&jj(e.data.reviewDate)||"",cellStyle:{textAlign:"center"},width:140,filter:"agDateColumnFilter",filterParams:{filterOptions:["equals","greaterThan","lessThan","notEqual","inRange",{displayKey:"emptyValue",displayName:"Empty",filter:function(e,n){if(""===n)return!0}}],comparator:function(e,n){const t=n.split("/"),a=new Date(Number(t[2]),Number(t[1])-1,Number(t[0]));return e.getTime()===a.getTime()?0:a<e?-1:a>e?1:void 0},buttons:["reset","apply"]}},{headerName:"Status",field:"status",cellStyle:{textAlign:"center"}},{headerName:"",cellRenderer:"action",cellStyle:{textAlign:"center"},width:75,sortable:!1,filter:!1}],u=(0,m.zy)(),p=u.hash?.slice?.(1),f={legislationReference:JTe,action:e=>(0,fe.jsx)(YTe,{...e,onEdit:t,onCopy:a})},y=["action"];return(0,fe.jsx)(GTe,{container:!0,item:!0,children:(0,fe.jsx)(Pg,{defaultColDef:{sortable:!0,resizable:!0,filter:!0,wrapText:!0,autoHeight:!0},columnDefs:c,rowData:n,components:f,onFirstDataRendered:()=>{p&&r.api.forEachNodeAfterFilter(e=>{e.data.id===p&&e.setSelected(!0)}),r.onFirstDataRendered()},onCellClicked:e=>{y.includes(e.colDef.cellRenderer)||o(`/governance/health-and-safety-risk-register/${e.data.id}`)},onGridReady:r.onGridReady,onFilterChanged:r.onFilterChanged,onSortChanged:r.onSortChanged,onColumnVisible:r.onSaveGridColumnState,onColumnPinned:r.onSaveGridColumnState,onColumnResized:r.onSaveGridColumnState,onColumnMoved:r.onSaveGridColumnState,onColumnRowGroupChanged:r.onSaveGridColumnState,onColumnValueChanged:r.onSaveGridColumnState,onColumnPivotChanged:r.onSaveGridColumnState,rowSelection:"single"})})}const KTe=JSON.parse('{"z":[{"id":1,"scope":"ACCOUNT","tags":[{"tagName":"Organisation"}],"locations":"Organisation","departments":[],"activity":"Cleaning floors","hazzards":"Trip hazard","whoIsEffected":"Office staff","legislations":[{"title":"Animal By-Products Regulation (EU) No. 1069/2009 (ABP)","id":"d9621621-8b83-4b0c-8a17-c6768c70f611"}],"likelihoodNoControl":3,"severityNoControl":2,"emergencyConditions":"Evacuations","controlMeasures":"Signage, Battery opporated applicances","likelihoodControl":3,"severityControl":2,"reviewDate":"2020-07-01T10:00:00.000Z","status":""},{"id":2,"scope":"ACCOUNT","tags":[{"tagName":"Organisation"}],"locations":"Organisation","departments":[],"activity":"Use of chemical","hazzards":"Chemical burns, Poisoning","whoIsEffected":"Lab Technicians, Cleaning Staff","legislations":[{"title":"COSHH Regulations","id":"495ca387-5fd1-4bf9-961a-496008401509"}],"likelihoodNoControl":3,"severityNoControl":2,"emergencyConditions":"Spillage","controlMeasures":"PPE","likelihoodControl":3,"severityControl":3,"reviewDate":"2021-02-27T10:00:00.000Z","status":"Opportunity for improvement"},{"id":3,"scope":"TAG","tags":[{"tagName":"South"}],"locations":"","departments":["Technical"],"activity":"Changing lightbulbs","hazzards":"Falls from height","whoIsEffected":"Estates staff","legislations":[{"title":"Working at Height Regulations","id":"c4ce9ecc-787f-4998-92e5-5006eb5f33d2"}],"likelihoodNoControl":1,"severityNoControl":-1,"emergencyConditions":"","controlMeasures":"Removal of ladders, Area restrictions","likelihoodControl":2,"severityControl":1,"reviewDate":"2020-10-30T10:00:00.000Z","status":""}]}'),QTe=(0,le.default)(ie.fI)`
  flex: 1;
  align-items: center;
`,ZTe=(0,le.default)(ie.fv)`
  padding-left: ${e=>e.theme.geometry.sm.spacing};
`,XTe=(0,le.default)(ie.$n)`
  width: 100%;
`,ebe=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  pre {
    width: 100%;
  }
`,nbe=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,tbe=e=>{switch(e.scope){case Y:return"Location";case K:return"Tag";default:return"Organisation"}},abe=e=>e.scope===H?tbe(e):e.scope===Y?e.locations.filter(Boolean).map(e=>{let{name:n}=e;return n}).join(", "):null,ibe=e=>{if(e.scope===H)return tbe(e);if(e.scope===K)return e.tags.filter(Boolean).map(e=>{let{tagName:n}=e;return n}).join(", ");if(e.scope===Y){const n=e.locations.filter(Boolean).map(e=>e.tags.filter(Boolean));return[].concat(...n).filter(Boolean).map(e=>{let{tagName:n}=e;return n}).join(", ")}},lbe=()=>{const e=zo(),n=Je(),{data:t}=Mr(),[a,i]=(0,g.useState)(!1),[l,r]=(0,g.useState)(!1),o=qr(),{loading:s,data:d}=(0,x.IT)(Sue,{variables:{accountId:n}}),c=(KTe.z||[]).map(e=>({...e,scopeLevel:tbe(e),scopeLocations:abe(e),scopeTags:ibe(e),formattedLegislations:e.legislations.map(e=>{let{title:n}=e;return n}).join(" ")})),[u,p,m]=fd(c,["formattedScope","activity",["risks"],["impacts"],"emergencyConditions","controlMeasures","likelihoodNoControl","severityNoControl","likelihoodControl","severityControl","formattedLegislations","status"]),f=xse.filter(e=>!e.comingSoon&&t.comply[e.accessIndex]),{title:y,restrictionId:h}=xse.find(e=>e.link.includes("health-and-safety-risk-register"));return s||d.getAvailableManagementSystems.find(e=>{let{id:n}=e;return n===h})?s?null:(0,fe.jsxs)(ie.fv,{container:!0,item:!0,children:[a&&(0,fe.jsx)(VTe,{title:"Create Risk",submitTitle:"Create Risk",onDismiss:()=>i(!1),accountId:n,onSubmit:()=>{}}),!!l&&(0,fe.jsx)(ie.aF,{size:"lg",show:!0,onDismiss:()=>r(null),children:(0,fe.jsxs)(ebe,{children:[(0,fe.jsx)(nbe,{size:"lg",children:"Actions Required"}),(0,fe.jsx)(ie.v3,{size:"md",wrap:!0,children:l.map(e=>(0,fe.jsx)(ie.EY,{children:e},e))})]})}),(0,fe.jsx)(xV,{title:"Risks",breadcrumbs:[{title:"Governance",to:".."},{title:y}],icon:"pencil-alt",iconColor:"tertiary",isDropdown:!0,dropdownItems:f,dropdownDefault:y,children:(0,fe.jsxs)(QTe,{name:"ConfigurationRiskContainer__Controls",container:!0,alignItems:"center",children:[(0,fe.jsx)(ie.fv,{item:!0,children:(0,fe.jsx)(ie.vj,{name:"ConfigurationRiskContainer__Controls__Search",value:u,onChange:e=>p(e.target.value),hideButton:!0})}),(0,fe.jsx)(ZTe,{span:4,item:!0,children:(0,fe.jsx)(qg,{gridApi:o.api})}),(0,fe.jsx)(ZTe,{span:4,item:!0,children:(0,fe.jsx)(XTe,{name:"ConfigurationRiskContainer__Controls__Button--create",size:"md",color:"primary",inline:!0,onClick:()=>i(!0),children:"+ Add Risk"})})]})}),!1,(0,fe.jsx)(HTe,{risks:m,showEditModal:()=>{},showCopyModal:()=>{},showActionRequiredModal:()=>{},canEdit:!0,currentAccount:e,agGrid:o})]}):(0,fe.jsx)(Ec,{name:"Forbidden_Risks",error:new Error("Forbidden")})},rbe=(0,le.default)(ie.fv)`
  flex: 1;
`,obe=le.css`
  color: white;
`,sbe=(0,le.default)(ie.fv)`
  flex: 1;
  padding: ${e=>e.theme.geometry.md.spacing};

  .background-blue {
    background-color: #6a99d0;
    ${obe}
  }

  .background-green {
    background-color: #b1cf95;
    ${obe}
  }

  .background-orange {
    background-color: #e9b38b;
    ${obe}
  }
`,dbe=(0,le.default)(ie.fI)`
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  *:not(:last-child) {
    margin-right: ${e=>e.theme.geometry.xs.spacing};
  }
`,cbe=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
`,ube={pagination:!0,paginationPageSize:25,paginationPageSizeSelector:!1,defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0}},rowSelection:"multiple",columnDefs:[{headerName:"Pillar",field:"pillar",headerClass:"background-blue"},{headerName:"Sustainability Area",field:"sustainabilityArea",headerClass:"background-blue"},{headerName:"Subject",field:"subject",filter:"agTextColumnFilter",minWidth:300,editable:!0,cellStyle:{"white-space":"normal"},autoHeight:!0,headerClass:"background-blue"},{headerName:"Metric Description",field:"metricDescription",filter:"agTextColumnFilter",editable:!0,cellEditor:"agLargeTextCellEditor",minWidth:300,headerClass:"background-blue"},{headerName:"Reported Metric",field:"reportedMetric",filter:"agTextColumnFilter",editable:!0,headerClass:"background-blue"},{headerName:"SFDR",field:"sfdr",filter:"agTextColumnFilter",editable:!0,headerClass:"background-green"},{headerName:"EU Taxonomy",field:"euTaxonomy",filter:"agTextColumnFilter",editable:!0,headerClass:"background-green"},{headerName:"TCFD",field:"tcfd",filter:"agTextColumnFilter",editable:!0,headerClass:"background-orange"},{headerName:"GRESB",field:"gresb",filter:"agTextColumnFilter",editable:!0,headerClass:"background-orange"},{headerName:"WEF Measuring Stakeholder capitalism",field:"capitalism",filter:"agTextColumnFilter",editable:!0,headerClass:"background-orange"},{headerName:"SASB",field:"sasb",filter:"agTextColumnFilter",editable:!0,headerClass:"background-orange"},{headerName:"CDP",field:"cdp",filter:"agTextColumnFilter",editable:!0,headerClass:"background-orange"},{headerName:"EPIECA",field:"epieca",filter:"agTextColumnFilter",editable:!0,headerClass:"background-orange"},{headerName:"Rio",field:"rio",filter:"agTextColumnFilter",editable:!0,headerClass:"background-orange"},{headerName:"Report",field:"report",filter:"agSetColumnFilter",cellEditor:"agSelectCellEditor",editable:!0,cellEditorParams:{values:["","Yes","No"]},headerClass:"background-blue"},{headerName:"Funds/Channels reporting",field:"funds",filter:"agTextColumnFilter",editable:!0,headerClass:"background-blue"}]},pbe=e=>{let{materialities:n}=e;const t=Je(),[a,i]=(0,g.useState)(ube.paginationPageSize||25),l=qr(),{data:r}=Mr(),o=xse.filter(e=>!e.comingSoon&&r.comply[e.accessIndex]);return(0,fe.jsxs)(rbe,{container:!0,item:!0,children:[(0,fe.jsx)(xV,{name:"materiality",title:"Materiality",breadcrumbs:[{title:"Governance",to:"/governance"},{title:"Materiality"}],icon:"pencil-alt",iconColor:"tertiary",isDropdown:!0,dropdownItems:o,dropdownDefault:"Materiality",children:(0,fe.jsxs)(dbe,{container:!0,item:!0,distribution:"center",vdistribution:"center",itemAlign:"center",children:[(0,fe.jsx)(ie.fv,{span:4,children:(0,fe.jsx)(XY,{value:a,onChange:e=>{i(e),l.api&&l.api.setGridOption("paginationPageSize",e)}})}),(0,fe.jsx)(ie.fv,{span:4,children:(0,fe.jsx)(qg,{gridApi:l.api})})]})}),(0,fe.jsx)(cbe,{children:"Conduct your materiality analysis here to identify what Sustainability/ESG topics are most important to your organisation."}),(0,fe.jsx)(sbe,{container:!0,item:!0,children:(0,g.createElement)(Pg,{...ube,key:t,paginationPageSize:a,cacheBlockSize:a,onColumnVisible:l.onSaveGridColumnState,onColumnPinned:l.onSaveGridColumnState,onColumnResized:l.onSaveGridColumnState,onColumnMoved:l.onSaveGridColumnState,onColumnRowGroupChanged:l.onSaveGridColumnState,onColumnValueChanged:l.onSaveGridColumnState,onColumnPivotChanged:l.onSaveGridColumnState,onDestroy:l.onDestroy,rowData:n,onGridReady:e=>{l.api?.resetRowHeights(),l.onGridReady(e)}})})]})},mbe=g.memo(pbe),fbe=JSON.parse('[{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Statement from senior decision-maker","metricDescription":"Disclose whether your organisation\'s ESG commitments are clearly stated by senior decision-makers.","reportedMetric":"CEO: statement in annual report and in committee meetings. Sustainability manager: statement in Sustainability report.","sfdr":"Purpose Statement","euTaxonomy":"","gri":"102-14","capitalism":"","sasb":"","cdp":"C1","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"1a, 1b","gresb":"LE1, LE2, LE3"},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Key impacts, risks, and opportunities","metricDescription":"Disclose your organisation\'s ESG impact, as well as sustainability-related risks and opportunities. ","reportedMetric":"Impact: High. ESG reporting, disclosure, and performance improvement (e.g. emissions reduction, sustainable management). Risks: Low. Indirectly, climate change for mobility and overall environmental quality. Opportunnities: High. Software solution, no exploutation of physical resources, growth opportunity as sustainability regulations/disclosures increase.","sfdr":"Anti-Corruption Policies and Assurance, Integration of Risk and Opportunity, prinvipal Adverse Impacts","euTaxonomy":"","gri":"102-15","capitalism":"","sasb":"","cdp":"C2","ipieca":"","rio":"","report":"No","funds":"Fund 1","id":"53bff99b-a7fe-42b4-b53a-0d4e6ea53d78","tcfd":"2a, 2b, 3a, 3b, 3c, 4b.4","gresb":"RA1"},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Name of the organization","metricDescription":"As registered.","reportedMetric":"Rio ESG Ltd.","sfdr":"","euTaxonomy":"","gri":"102-1","capitalism":"","sasb":"","cdp":"C0","ipieca":"","rio":"","report":"No","funds":"Fund 1, Fund 4","id":"fee3f876-ae0a-479e-899c-a40c4b4c7270","tcfd":"  ","gresb":"EC1"},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Activities, brands, products, and services","metricDescription":"Disclose your organisation\'s sustainability-related activities and initiatives, as well as any related brands, and its products/services offering.","reportedMetric":"Activities/Initiatives: Thought leadership blogs, Interviews, Reports and disclosure of ESG performance. Products/Services: ESG reporting and consulting solutions, AI, Carbon footprint, Learning, IEMA Foundations Certificate.","sfdr":"","euTaxonomy":"","gri":"102-2","capitalism":"","sasb":"","cdp":"C9, C4","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"4b.2","gresb":"RC5"},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Location of headquarters","metricDescription":"Disclose where your organisation\'s legal headquarters are established (City and Country)","reportedMetric":"London - UK.","sfdr":"","euTaxonomy":"","gri":"102-3","capitalism":"","sasb":"","cdp":"C0","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"  ","gresb":"RC4"},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Location of operations","metricDescription":"Disclose where your organisation operates (City and Country)","reportedMetric":"London - UK, Manchester - UK, Cape Town - South Africa","sfdr":"Number of sites in or adjacent to protected areas and/or key biodiversity areas (hectares), Asset Allocation","euTaxonomy":"","gri":"102-4","capitalism":"","sasb":"","cdp":"C0","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"  ","gresb":"RC4, R1.2, DR1.2"},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Ownership and legal form","metricDescription":"Disclose the ownership type of your organisation, and its legal registration. ","reportedMetric":"Private (non-listed) company, Limited company (Ltd). ","sfdr":"","euTaxonomy":"","gri":"102-5","capitalism":"","sasb":"","cdp":"C0, C1","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"1a, 1b","gresb":"EC2"},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Markets served","metricDescription":"Disclose which markets your organisation operates in. ","reportedMetric":"EMEA, South Africa, APAC","sfdr":"","euTaxonomy":"","gri":"102-6","capitalism":"","sasb":"","cdp":"C0, C7. C14","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"2b","gresb":"R1.2, DR1.2"},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Scale of the organization","metricDescription":"Disclose the scale of your organisation","reportedMetric":"<50 employees.","sfdr":"","euTaxonomy":"","gri":"102-7","capitalism":"","sasb":"","cdp":"C0","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"  ","gresb":"RC2"},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Information on employees and other workers","metricDescription":"Disclose information on your employees/other workers within your premises (e.g. contractors). Examples include: Total number, gender diversity, ethnic diversity, socio-economic background diversity, average payroll.","reportedMetric":"Tot no. of employees: 20. Male/Female ratio: 60%/40%. % of employees from an ethnic minority: 35%. % of employees from disadvantaged socio-economic background: 40%. Average employee payroll: 35,000. Tot no. Contractors: 20. Contractors\' hiring frequency: Monthly. [Note: values are not real estimates, but instead random].","sfdr":"Governance body composition and competence","euTaxonomy":"","gri":"102-8","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"4a.1, 4c.3","gresb":"SE1, SE2.1, SE3.2, SE4, SE5, TC1, TC2.1"},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Collective bargaining agreements","metricDescription":"Disclose any collective bargaining agreements undersigned by your organisation.","reportedMetric":"CBAs assessing wage conditions, working hours, pensions schemes, probationary periods, notice periods. ","sfdr":"","euTaxonomy":"","gri":"102-41","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"  ","gresb":""},{"pillar":"Governance","sustainabilityArea":"General Disclosures","subject":"Supply chain","metricDescription":"Disclose whether your organisation\'s suppliers are chosen accordingly to ensure compliance with ESG criteria.","reportedMetric":"Supply chain is entirely controlled and responnsibly sourced/selected. ","sfdr":"","euTaxonomy":"","gri":"102-9","capitalism":"","sasb":"","cdp":"SC","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"2a","gresb":"RM3.1, SE6, SE8"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Significant changes to the organization and its supply chain","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-10","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"345e8ab5-2e5c-4a29-b6db-cc0c756a16a6"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Precautionary Principle or approach","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-11","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d08cb9e7-41a2-4917-95d4-bbe56845815e"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"External initiatives","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-12","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"a0c0d51c-73e2-4710-a2d7-5dcce71f0744"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Membership of associations","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-13","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"9542cb91-b1c9-4f3f-9325-aa44280079b3"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Entities included in the consolidated financial statements","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-45","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"a715ef5b-3f75-4e2b-b441-d3e105c0a0e1"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Defining report content and topic Boundaries","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-46","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"6798e8b5-ed90-4404-a375-cc0456ef3aa5"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"List of material topics","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-47","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"17d3850c-3557-432a-b89b-748f1ba356ab"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Explanation of the material topic and its Boundary","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"103-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"9a9049e0-6145-4a6e-897e-572548e1d14e"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Explanation of the material topic and its Boundary","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"103-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"2d964200-29a9-4f14-af75-99b575c1f5d2"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Restatements of information","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-48","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"fb2e1510-e3dc-458e-8133-2c1e8e5b68ed"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Changes in reporting","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-49","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"7df6b2a3-b540-422b-8e6d-22ab00c597c1"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"List of stakeholder groups","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-40","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"cdbe348c-4a81-45b8-83ee-d8902a9bb843"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Identifying and selecting stakeholders","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-42","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"31ef862f-e2af-44e2-8a1b-c2cb5f2eed57"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Approach to stakeholder engagement","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-43","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"ae825a6b-8936-4016-94f4-29ac416ad6c3"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Key topics and concerns raised","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-44","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"49e3f15d-f2b8-4e43-8cdb-bc8c102a01b7"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Reporting period","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-50","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"ce2477e5-4768-4597-98ca-ade02427271a"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Date of most recent report","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-51","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"c0921cae-fd87-409f-bdf4-697200abd339"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Reporting cycle","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-52","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"b397fddc-39f8-4ac3-97ee-dc674f11d6f7"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Contact point for questions regarding the report","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-53","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"e5ad74b4-ba41-4b5c-86d3-f6aecbcff4ba"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Claims of reporting in accordance with the GRI Standards","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-54","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"fec484f0-f92d-4c47-b893-3035cd1b2fd0"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"GRI content index","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-55","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"25625f01-1990-425a-bc8c-25b50e0092e1"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"External assurance","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-56","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"eb27d2be-7780-4818-b1ae-8b552dc51328"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"External assurance","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-56","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"b2aae215-3126-4f62-8bf1-ad045e7dfa7b"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Governance structure","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-18","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"08d537f7-1d2f-4fbb-94cb-989e95c65dcc"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Delegating authority","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-19","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"8abccc11-0c50-403b-bc8f-9c2572faf43c"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Executive-level responsibility for economic, environmental, and social topics","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-20","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"6e9b0632-81f5-4166-93d7-806ae72f2ac6"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Consulting stakeholders on economic, environmental, and social topics","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-21","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"03eb806f-0bd8-408d-bc50-9480f6e1dff0"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Composition of the highest governance body and its committees","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-22","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"6f23dc71-c675-440f-a9ab-5cb698307e9d"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Chair of the highest governance body","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-23","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"517d1a25-3ed2-48bc-82f8-ab2533629a39"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Nominating and selecting the highest governance body","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-24","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"277b5b93-0af9-4ff1-9eaa-fdde68c41c7a"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Conflicts of interest","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-25","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"ad7dcf19-cbcc-46b9-9d64-846ff81cb7d5"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Role of highest governance body in setting purpose, values, and strategy","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-26","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"4f01d433-636d-4eeb-b967-10607e718dca"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Collective knowledge of highest governance body","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-27","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"9bc43aa5-0bb4-488e-a836-57db3b45eefa"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Evaluating the highest governance body’s performance","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-28","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"1a156fa5-9c42-4ecf-8acb-4f4de69cbbec"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Identifying and managing economic, environmental, and social impacts","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-29","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"0034dbb6-c6de-44f5-9827-6898790a66ee"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Effectiveness of risk management processes","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-30","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"07826f97-73ee-4d43-b556-d624b969c00e"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Review of economic, environmental, and social topics","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-31","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"8aa5f327-bc7e-4238-b5c6-3cd4fb5bd6cf"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Highest governance body’s role in sustainability reporting","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-32","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"c189ff8b-6bb5-492c-adae-cdccfbf03ba2"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Communicating critical concerns","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-33","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"fd8a1d2a-7b80-4fd8-8e9b-a1b6f17ebc68"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Nature and total number of critical concerns","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-34","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"ed6cd794-7d42-48cc-b8c2-33cf5c70e7d5"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Remuneration policies","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-35","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"efc32ea9-1a44-4000-b889-9b488ae5ab1f"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Process for determining remuneration","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-36","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"472cbcb0-ebc7-433b-84d6-90fa68b0a37e"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Stakeholders’ involvement in remuneration","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-37","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"ef048e17-cf9a-4705-8153-dbecec4b69ae"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Annual total compensation ratio","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-38","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"68384727-d0e1-41da-80ca-90f8ed6bcfe1"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Percentage increase in annual total compensation ratio","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-39","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"00fb3cf5-9451-42bd-9e30-f3a58ec05880"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Values, principles, standards, and norms of behavior","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-16","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"880137dd-b234-4cbb-bb0b-04b320d1b93f"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Mechanisms for advice and concerns about ethics","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-17","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"ff600a07-e96c-4a59-b49e-4831ae5d8e63"},{"pillar":"Governance ","sustainabilityArea":"General Disclosures","subject":"Mechanisms for advice and concerns about ethics","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-17","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"27071587-ab44-4ddb-9877-d3ed66c254a6"},{"pillar":"Governance ","sustainabilityArea":"Management Approach","subject":"Explanation of the material topic and its Boundary","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"103-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"e691d502-8ea5-420f-9083-8b14d88088b8"},{"pillar":"Governance ","sustainabilityArea":"Management Approach","subject":"The management approach and its components","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"103-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"448f7708-bba0-4322-8f0a-082c3509957e"},{"pillar":"Governance ","sustainabilityArea":"Management Approach","subject":"Evaluation of the management approach","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"103-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"58daed08-70ef-49c8-9ce7-36c51b80d8d9"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Economic Performance","subject":"Direct economic value generated and distributed","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"201-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"2f7d2d65-73ab-4bc1-8a43-ef1e17e3c857"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Economic Performance","subject":"Financial implications and other risks and opportunities due to climate change","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"201-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"c030f1d1-c1e1-4328-8db8-2adde9a9796a"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Economic Performance","subject":"Defined benefit plan obligations and other retirement plans","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"201-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d14462d2-75c1-4413-ad1c-0c3f56040f45"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Economic Performance","subject":"Financial assistance received from government","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"201-4","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"662ac544-0a24-4dce-a941-6d38934853dd"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Market Presence","subject":"Ratios of standard entry level wage by gender compared to local minimum wage","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"202-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"f4f1c18a-08c3-472d-8591-5b7f80ae695f"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Market Presence","subject":"Proportion of senior management hired from the local community","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"202-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"456a9cee-7dec-4d35-9496-5a3dea622daf"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Market Presence","subject":"Infrastructure investments and services supported","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"203-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d4592536-da74-48c1-bfe2-60fffdcb08d2"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Indirect Economic Impacts","subject":"Significant indirect economic impacts","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"203-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"2539dcda-a75c-4f69-b6d2-c331a3e652b8"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Procurement Practices","subject":"Proportion of spending on local suppliers","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"204-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"6cf89068-177b-4c61-ac4b-03d4773288d7"},{"pillar":"Planet/Environment","sustainabilityArea":"Materials","subject":"Materials used by weight or volume","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"301-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d3e5e7f3-fc06-4f18-83b4-b51dd0750b68"},{"pillar":"Planet/Environment","sustainabilityArea":"Materials","subject":"Recycled input materials used","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"301-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"2367d2cf-27ae-4ac9-a198-5606d846756a"},{"pillar":"Planet/Environment","sustainabilityArea":"Energy","subject":"Energy consumption within the organization","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"302-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"a758d677-3d70-49ac-bdce-1e50735ede43"},{"pillar":"Planet/Environment","sustainabilityArea":"Energy","subject":"Energy consumption outside of the organization","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"302-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"9e404676-6d8b-41f1-b03b-32429def7874"},{"pillar":"Planet/Environment","sustainabilityArea":"Energy","subject":"Energy intensity","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"302-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d0e82780-d8ef-4b58-8e26-e8261d391e0a"},{"pillar":"Planet/Environment","sustainabilityArea":"Energy","subject":"Reduction of energy consumption","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"302-4","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"6f13b0c8-9953-4f97-b3da-379d233eeaf9"},{"pillar":"Planet/Environment","sustainabilityArea":"Energy","subject":"Reductions in energy requirements of products and services","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"302-5","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"40ad4f7d-2e4a-4584-a8e1-463632d2a2f6"},{"pillar":"Planet/Environment","sustainabilityArea":"Water and Effluents","subject":"Water withdrawal by source","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"303-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"a18b31fc-70e1-46c6-869c-162bcdec1952"},{"pillar":"Planet/Environment","sustainabilityArea":"Water and Effluents","subject":"Water sources significantly affected by withdrawal of water","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"303-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"21562d08-8f10-4399-b84c-d3f7387d6788"},{"pillar":"Planet/Environment","sustainabilityArea":"Water and Effluents","subject":"Water recycled and reused","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"303-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d1b987e9-33c0-493c-81b4-7d0328031e9f"},{"pillar":"Planet/Environment","sustainabilityArea":"Biodiversity","subject":"Operational sites owned, leased, managed in, or adjacent to, protected areas and areas of high biodiversity value outside protected areas","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"304-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"4d497ac6-258c-4460-8db5-59ddbf885778"},{"pillar":"Planet/Environment","sustainabilityArea":"Biodiversity","subject":"Significant impacts of activities, products, and services on biodiversity","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"304-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"e044fc59-94ee-4479-8419-84e4b6a09e70"},{"pillar":"Planet/Environment","sustainabilityArea":"Biodiversity","subject":"Habitats protected or restored","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"304-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"c761ccbb-2657-4ba3-a85a-26826d261d98"},{"pillar":"Planet/Environment","sustainabilityArea":"Biodiversity","subject":"IUCN Red List species and national conservation list species with habitats in areas affected by operations","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"304-4","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d837ca4f-21dc-43ff-b4d3-6c0cc7bc83ea"},{"pillar":"Planet/Environment","sustainabilityArea":"Emissions","subject":"Direct (Scope 1) GHG emissions","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"305-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"a90aeedb-5135-4857-a6cd-583e5ffff497"},{"pillar":"Planet/Environment","sustainabilityArea":"Emissions","subject":"Energy indirect (Scope 2) GHG emissions","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"305-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"4e054b93-2c60-4cba-aa5e-76bfb25893b3"},{"pillar":"Planet/Environment","sustainabilityArea":"Emissions","subject":"Other indirect (Scope 3) GHG emissions","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"305-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"80036572-c962-4ddc-b6d5-e779dcdcc52e"},{"pillar":"Planet/Environment","sustainabilityArea":"Emissions","subject":"GHG emissions intensity","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"305-4","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"7ed5a466-8e04-4a74-9855-7da3553032ee"},{"pillar":"Planet/Environment","sustainabilityArea":"Emissions","subject":"Reduction of GHG emissions","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"305-5","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"b2407d42-7f78-43fd-9587-11f322ec68d3"},{"pillar":"Planet/Environment","sustainabilityArea":"Emissions","subject":"Emissions of ozone-depleting substances (ODS)","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"305-6","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"bbd547bd-10bd-479c-836f-20efca7de196"},{"pillar":"Planet/Environment","sustainabilityArea":"Emissions","subject":"Nitrogen oxides (NOX), sulfur oxides (SOX), and other significant air emissions","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"305-7","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"86388c91-2fdb-4e4b-9cc8-f42a5376f599"},{"pillar":"Planet/Environment","sustainabilityArea":"Waste","subject":"Water discharge by quality and destination","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"306-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"da78db97-e8c8-4ec0-a9b0-948ad083b276"},{"pillar":"Planet/Environment","sustainabilityArea":"Waste","subject":"Waste by type and disposal method","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"306-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"8b22bb71-e785-4e4c-8196-851bb1084cbf"},{"pillar":"Planet/Environment","sustainabilityArea":"Waste","subject":"Significant spills","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"306-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"0d000d07-b5cf-45d7-97c7-3103052ba7f3"},{"pillar":"Planet/Environment","sustainabilityArea":"Waste","subject":"Transport of hazardous waste","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"306-4","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"a38c5b76-9511-4fec-9223-a617ed08ab3c"},{"pillar":"Planet/Environment","sustainabilityArea":"Waste","subject":"Water bodies affected by water discharges and/or runoff","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"306-5","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"61a63380-c022-4fd8-98dd-965de0b95d3e"},{"pillar":"Planet/Environment","sustainabilityArea":"","subject":"NA","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"NA","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"c35f84cb-1fb1-48da-aa39-df48f222b25f"},{"pillar":"Planet/Environment","sustainabilityArea":"Materials","subject":"Reclaimed products and their packaging materials","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"301-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"91373b35-5719-4cf1-a6ed-d508f3c0798d"},{"pillar":"Planet/Environment","sustainabilityArea":"Environmental Compliance","subject":"Non-compliance with environmental laws and regulations","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"307-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"68a46eb9-803f-496c-975a-bb99de51fed1"},{"pillar":"Planet/Environment","sustainabilityArea":"","subject":"NA","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"NA","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"1bdfcc4b-2928-42c6-85ef-61178fc8b01e"},{"pillar":"Planet/Environment","sustainabilityArea":"","subject":"NA","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"NA","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"2c3a2dbb-20d0-4a40-a192-86ddbd5e4c5b"},{"pillar":"Planet/Environment","sustainabilityArea":"Supplier Environmental Assessment","subject":"New suppliers that were screened using environmental criteria","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"308-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"fd9737ed-85d2-4c56-bce5-6f9e754c8ccd"},{"pillar":"Planet/Environment","sustainabilityArea":"Supplier Environmental Assessment","subject":"Negative environmental impacts in the supply chain and actions taken","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"308-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"683223c3-7e3d-49c6-855f-b1539d0b72aa"},{"pillar":"Governance ","sustainabilityArea":"Management Approach","subject":"The management approach and its components","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"103-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"7d679e4f-329f-42cb-bba4-e1567234c550"},{"pillar":"People/Social","sustainabilityArea":"Employment","subject":"New employee hires and employee turnover","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"401-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"0512e960-07b6-4c0f-93c7-9dcf4520638b"},{"pillar":"People/Social","sustainabilityArea":"Employment","subject":"Benefits provided to full-time employees that are not provided to temporary or part-time employees","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"401-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"b94dbf0b-b15a-4838-a514-a7693137fb69"},{"pillar":"People/Social","sustainabilityArea":"Employment","subject":"Parental leave","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"401-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"7867916f-261b-4281-bdac-51b5e07e8f4e"},{"pillar":"People/Social","sustainabilityArea":"Labor/Management Relations","subject":"Minimum notice periods regarding operational changes","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"402-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"ad5a2db8-f6e0-4004-b6c9-6abb5ef7e0ab"},{"pillar":"People/Social","sustainabilityArea":"Occupational Health and Safety","subject":"Workers representation in formal joint management–worker health and safety committees","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"403-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"5c8f3209-8bf9-4e52-8038-b916322edd6a"},{"pillar":"People/Social","sustainabilityArea":"Occupational Health and Safety","subject":"Types of injury and rates of injury, occupational diseases, lost days, and absenteeism, and number of work-related fatalities","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"403-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"25ad12d3-4ec0-4978-a717-a6c400529619"},{"pillar":"People/Social","sustainabilityArea":"Occupational Health and Safety","subject":"Workers with high incidence or high risk of diseases related to their occupation","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"403-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d1a0eb25-9f79-4b9a-b8b0-4bea4a4e9ad7"},{"pillar":"People/Social","sustainabilityArea":"Occupational Health and Safety","subject":"Health and safety topics covered in formal agreements with trade unions","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"403-4","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"ad14e4c9-c651-4312-afd5-8517522379a6"},{"pillar":"People/Social","sustainabilityArea":"Training and Education","subject":"Average hours of training per year per employee","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"404-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"4bb5b04d-57e7-4973-8cfb-e51562805f17"},{"pillar":"People/Social","sustainabilityArea":"Training and Education","subject":"Programs for upgrading employee skills and transition assistance programs","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"404-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"f0f4e504-a32d-4e09-bbd4-d77f6516c90e"},{"pillar":"People/Social","sustainabilityArea":"Training and Education","subject":"Percentage of employees receiving regular performance and career development reviews","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"404-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"b7419680-9ebe-4de3-8392-f9c6c64c283e"},{"pillar":"People/Social","sustainabilityArea":"Diversity and Equal Opportunity","subject":"Diversity of governance bodies and employees","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"405-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"123f4b82-4530-4850-b90e-4427d9137080"},{"pillar":"People/Social","sustainabilityArea":"Diversity and Equal Opportunity","subject":"Ratio of basic salary and remuneration of women to men","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"405-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"c4629415-4699-48cd-86d9-643f5762d143"},{"pillar":"People/Social","sustainabilityArea":"Supplier Social Assessment","subject":"New suppliers that were screened using social criteria","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"414-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"c7324105-9c35-492e-9c05-69d387a4ea81"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Negative social impacts in the supply chain and actions taken","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"414-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"3d64d77f-cb24-4b58-9161-2dcee86851b5"},{"pillar":"People/Social","sustainabilityArea":"","subject":"The management approach and its components","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"103-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"2cd3ab0a-a455-4458-82d0-ca92755cc461"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Significant investment agreements and contracts that include human rights clauses or that underwent human rights screening","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"412-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"14e38121-a6cd-4c5c-91d4-2b42ab6c7f93"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Employee training on human rights policies or procedures","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"412-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"5ef7ca03-702e-4edd-a2cf-cbea31bc0055"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Incidents of discrimination and corrective actions taken","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"406-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"a13fb622-18bf-46a1-a3d5-744c5944c35f"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Operations and suppliers in which the right to freedom of association and collective bargaining may be at risk","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"407-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"220dc2b0-bfd3-4894-b335-716d0e999067"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Operations and suppliers at significant risk for incidents of child labor","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"408-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"500057a7-dcea-4963-af4b-59d49bfcd484"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Operations and suppliers at significant risk for incidents of forced or compulsory labor","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"409-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"2a0136e5-7fd0-4c74-a341-37526064b308"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Security personnel trained in human rights policies or procedures","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"410-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"44c84b85-8fbe-4ae2-a1ec-6f133430b802"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Incidents of violations involving rights of indigenous peoples","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"411-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"db601a5b-78b5-4d8a-a7bb-6a77730e3dd2"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Operations that have been subject to human rights reviews or impact assessments","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"412-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"126bfd17-97a3-48e2-8681-d8856afafc59"},{"pillar":"People/Social","sustainabilityArea":"","subject":"New suppliers that were screened using social criteria","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"414-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"137190e5-cd11-4b47-a934-0b5bd20550d4"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Negative social impacts in the supply chain and actions taken","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"414-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"50f1d6c7-3beb-4efd-b1a2-1c37227b35b0"},{"pillar":"Governance ","sustainabilityArea":"","subject":"The management approach and its components","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"103-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"4d81b630-2d24-4685-a5ff-8f6c4523f32c"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Operations with local community engagement, impact assessments, and development programs","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"413-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"981e42c6-ecb5-4a5f-82b2-1ea00aa227be"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Operations with significant actual and potential negative impacts on local communities","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"413-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"f730b73e-d2f0-466e-9032-9a0576418d86"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Operations assessed for risks related to corruption","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"205-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"27dc1456-4f06-4249-a5bf-4c174e94fc4a"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Communication and training about anti-corruption policies and procedures","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"205-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"1f69ff54-2cdd-4427-81f4-a007c6cd2b42"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Confirmed incidents of corruption and actions taken","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"205-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"0980a2f9-7509-4b6d-b169-6bfcadaa340b"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Political contributions","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"415-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"6bb118f8-41d3-4537-9231-1841ebe76822"},{"pillar":"Prosperity/Economic","sustainabilityArea":"","subject":"Legal actions for anti-competitive behavior, anti-trust, and monopoly practices","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"206-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"8ded19b9-2461-49d7-9891-5f387fb6e6c8"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Non-compliance with laws and regulations in the social and economic area","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"419-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"ac6e8309-d504-4646-bdb1-ded0b850ebab"},{"pillar":"People/Social","sustainabilityArea":"","subject":"New suppliers that were screened using social criteria","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"414-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"0d63020c-3e69-49f3-8e89-199b7ba16153"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Negative social impacts in the supply chain and actions taken","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"414-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"4f446abc-a26b-421e-8b63-0a51840ac5f6"},{"pillar":"Governance ","sustainabilityArea":"","subject":"The management approach and its components","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"103-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"504833b1-4b4f-485e-b870-4099d0b66db3"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Assessment of the health and safety impacts of product and service categories","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"416-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d5cf8402-b0d0-42c7-a918-7a956fee1d2e"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Incidents of non-compliance concerning the health and safety impacts of products and services","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"416-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"3581b54b-833e-4267-bb19-b66822a29706"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Requirements for product and service information and labeling","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"417-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"a2003061-72d4-4a47-9093-016cfd20bb2b"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Incidents of non-compliance concerning product and service information and labeling","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"417-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"084bae83-24a0-45d3-89b0-f4db89b6062e"},{"pillar":"Governance ","sustainabilityArea":"","subject":"Approach to stakeholder engagement","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-43","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"bac52940-6762-40be-9b0e-1b4a0f234270"},{"pillar":"Governance ","sustainabilityArea":"","subject":"Key topics and concerns raised","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-44","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"faa17dd5-741a-4898-8f7b-e3fdf8faf31a"},{"pillar":"Governance ","sustainabilityArea":"","subject":"Activities, brands, products, and services","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"102-2","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"2432a80b-7c3e-48ee-b011-3b8fa68dc11a"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Incidents of non-compliance concerning marketing communications","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"417-3","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"b5cf8a2d-26e4-4844-ad69-742231aba38a"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Substantiated complaints concerning breaches of customer privacy and losses of customer data","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"418-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"f5b2972b-e467-4936-b245-6c4d8a575296"},{"pillar":"People/Social","sustainabilityArea":"","subject":"Non-compliance with laws and regulations in the social and economic area","metricDescription":"","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"419-1","capitalism":"","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"0ac764b0-b50f-43ec-8a72-dbfd1afe15e7"},{"pillar":"Governance ","sustainabilityArea":"Data Security","subject":"Description of approach to identifying and\\r\\naddressing data security risks","metricDescription":"Statement","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"","sasb":"SV-PS-230a.1","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"3b9bfaac-f930-4635-9764-cc22abca958a"},{"pillar":"","sustainabilityArea":"Data Security","subject":"Description of policies and practices relating to\\r\\ncollection, usage, and retention of customer\\r\\ninformation","metricDescription":"Statement","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"","sasb":"SV-PS-230a.2","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"47f10423-f93b-486a-92f8-33e5d50877fd"},{"pillar":"","sustainabilityArea":"Data Security","subject":"(1) Number of data breaches, (2) percentage\\r\\ninvolving customers\' confidential business\\r\\ninformation (CBI) or personally identifiable\\r\\ninformation (PII), (3) number of customers\\r\\naffected2","metricDescription":"Number, %","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"","sasb":"SV-PS-230a.3","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"612811f9-df3e-407c-8063-d284d1423ce6"},{"pillar":"People/Social","sustainabilityArea":"Diversity and Equal Opportunity","subject":"Percentage of gender and racial/ethnic group\\r\\nrepresentation for (1) executive management\\r\\nand (2) all other employees3","metricDescription":"%","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"","sasb":"SV-PS-330a.1","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d5bd7d85-7523-42f8-b0bc-2facb425e788"},{"pillar":"People/Social","sustainabilityArea":"Diversity and Equal Opportunity","subject":"(1) Voluntary and (2) involuntary turnover rate\\r\\nfor employees ","metricDescription":"Rate","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"","sasb":"SV-PS-330a.2","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"660b3845-80c1-4724-b4b8-5d8bbd76a03a"},{"pillar":"People/Social","sustainabilityArea":"Diversity and Equal Opportunity","subject":"Employee engagement as a percentage4 ","metricDescription":"%","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"","sasb":"SV-PS-330a.3","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"7a3fe172-cfbe-4181-bf64-8fc49d804281"},{"pillar":"Governance ","sustainabilityArea":"Professional\\r\\nIntegrity","subject":"Description of approach to ensuring\\r\\nprofessional integrity ","metricDescription":"Statement","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"","sasb":"SV-PS-510a.1","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"95b0eb32-80dc-4d9c-b3fa-44ed3291d6a4"},{"pillar":"Governance ","sustainabilityArea":"Professional\\r\\nIntegrity","subject":"Total amount of monetary losses as a result of\\r\\nlegal proceedings associated with professional\\r\\nintegrity","metricDescription":"Reporting currency","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"","sasb":"SV-PS-510a.2","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"d8b29734-9887-40e7-b4c1-9d5503709b6e"},{"pillar":"Governance ","sustainabilityArea":"","subject":"Number of employees by: (1) full-time and part-time, (2)\\r\\ntemporary, and (3) contract ","metricDescription":"Number","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"","sasb":"SV-PS-000.A","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"48e7d834-aaaa-42d3-8a98-8329a5d00552"},{"pillar":"Governance ","sustainabilityArea":"","subject":"Employee hours worked, percentage billable ","metricDescription":"Hours, %","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"","sasb":"SV-PS-000.B","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"843c443b-7222-4729-aba1-4476fb7d8a3c"},{"pillar":"Governance ","sustainabilityArea":"Governing purpose","subject":"Setting purpose\\r\\n","metricDescription":"The company’s stated purpose, as the expression of the means by which a business proposes solutions to economic, environmental and social issues.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 102-26","capitalism":"1.1.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"5087a9a7-f000-4d9f-b1af-73a03070bbcc"},{"pillar":"Governance ","sustainabilityArea":"Governing purpose","subject":"Purpose-led management","metricDescription":"How the company’s stated purpose is embedded in company strategies, policies and goals.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 102-26","capitalism":"1.1.3e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"2ca17ae9-3fe6-431a-93f8-13a534c4f8e5"},{"pillar":"Governance ","sustainabilityArea":"Quality of governing body","subject":"Governance body composition","metricDescription":"Composition of the highest governance body and its committees by: competencies relating to economic, environmental and social topics; executive or non-executive; independence; tenure on the governance body; number of each individual’s other significant positions and commitments, and the nature of the commitments; gender; membership of under-represented social groups; stakeholder representation.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 102-22, GRI 405-1a","capitalism":"1.1.2c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"f7d865b7-8709-49e2-ac83-158ef2b41f6a"},{"pillar":"Governance ","sustainabilityArea":"Quality of governing body","subject":"Progress against strategic milestones","metricDescription":"Disclosure of the material strategic economic, environmental and social milestones expected to be achieved in the following year, such milestones achieved from the previous year, and how those milestones are expected to or have contributed to long-term value.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"1.1.4e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"34dab5ef-4b4e-4df8-a79b-d3c615537a5c"},{"pillar":"Governance ","sustainabilityArea":"Quality of governing body","subject":"Remuneration","metricDescription":"1. How performance criteria in the remuneration policies relate to the highest governance body’s and senior executives’ objectives for economic, environmental and social topics, as connected to the company’s stated purpose, strategy and long-term value.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 102-35","capitalism":"1.1.5e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"5db15fdd-d486-4f8c-8df0-f3dbdefa5895"},{"pillar":"Governance ","sustainabilityArea":"Stakeholder engagement","subject":"Material issues impacting stakeholders","metricDescription":"A list of the topics that are material to key stakeholders and the company, how the topics were identified and how the stakeholders were engaged.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 102-21, GRI 102-43, GRI 102-47","capitalism":"1.2.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"1632dc98-97bd-49bf-b2cd-a3a7bdf63df0"},{"pillar":"Governance ","sustainabilityArea":"Ethical behaviour","subject":"Anti-corruption","metricDescription":"1. Total percentage of governance body members, employees and business partners who have received training on the organization’s anti-corruption policies and procedures, broken down by region.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 205-2, GRI 205-3","capitalism":"1.3.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"1c89bea6-a260-43ef-a78b-ad326d42de17"},{"pillar":"Governance ","sustainabilityArea":"Ethical behaviour","subject":"Protected ethics advice and reporting mechanisms","metricDescription":"A description of internal and external mechanisms for:\\r\\n1. Seeking advice about ethical and lawful behaviour and organizational integrity; and","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 102-17","capitalism":"1.3.2c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"721dcfce-494c-498b-8343-3b90b0365c83"},{"pillar":"Governance ","sustainabilityArea":"Ethical behaviour","subject":"Alignment of strategy and policies to lobbying","metricDescription":"The significant issues that are the focus of the company’s participation in public policy development and lobbying; the company’s strategy relevant to these areas of focus; and any differences between its lobbying positions and its purpose, stated policies, goals or other public positions.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 415: Public Policy 2016","capitalism":"1.3.3e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"92f79a06-ee7f-4c49-8aaa-43423f44e73f"},{"pillar":"Governance ","sustainabilityArea":"Ethical behaviour","subject":"Monetary losses from unethical behaviour","metricDescription":"Total amount of monetary losses as a result of legal proceedings associated with fraud, insider trading, anti-trust, anti-competitive behaviour, market manipulation, malpractice or violations of other related industry laws or regulations.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"1.3.4e","sasb":"SASB 510a.1","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"51821571-0f30-4763-886f-782bd3b5c566"},{"pillar":"Governance ","sustainabilityArea":"Risk and opportunity oversight","subject":"Integrating risk and opportunity into business process","metricDescription":"Company risk factor and opportunity disclosures that clearly identify the principal material risks and opportunities facing the company specifically (as opposed to generic sector risks), the company appetite in respect of these risks, how these risks and opportunities have moved over time and the response to those\\r\\nchanges.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 102-15,","capitalism":"1.4.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"7a0c0fa4-2dee-4f3c-838d-3c3c5955c0df"},{"pillar":"Governance ","sustainabilityArea":"Risk and opportunity oversight","subject":"Economic, environmental and social topics in capital allocation  framework","metricDescription":"How the highest governance body considers economic, environmental and social issues when overseeing major capital allocation decisions, such as expenditures, acquisitions and divestments.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"1.4.2e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"299d8cfb-7d10-43a3-b5fe-2035c96f980b"},{"pillar":"Planet/Environment","sustainabilityArea":"Climate change","subject":"Greenhouse gas (GHG) emissions","metricDescription":"Report in metric tonnes of carbon dioxide equivalent (tCO2e) GHG Protocol Scope 1 and Scope 2 emissions.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 305:1-3","capitalism":"2.1.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"7212c1ca-f013-457f-9462-17834b166766"},{"pillar":"Planet/Environment","sustainabilityArea":"Climate change","subject":"TCFD implementation","metricDescription":"Have you fully implemented the recommendations of the Task Force on Climate-related Financial Disclosures (TCFD)?","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.1.2c","sasb":"SASB 110","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"aa257713-6293-4a06-9e41-3e66bae67010"},{"pillar":"Planet/Environment","sustainabilityArea":"Climate change","subject":"Paris-aligned GHG emissions targets","metricDescription":"Define and report progress against time-bound science-based GHG emissions targets that are in line with the goals of the Paris Agreement – to limit global warming to well below 2°C above pre-industrial levels and pursue efforts to limit warming to 1.5°C.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.1.3e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"545c5b15-fb7a-4f89-8cbd-3aafe309e92c"},{"pillar":"Planet/Environment","sustainabilityArea":"Climate change","subject":"Impact of GHG emissions","metricDescription":"Report wherever material along the value chain (GHG Protocol Scope 1, 2 & 3) the valued impact of greenhouse gas emissions.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.1.4e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"f56ea8cb-0f0c-4a6b-8f4b-1b374608c99f"},{"pillar":"Planet/Environment","sustainabilityArea":"Nature loss","subject":"Land use and ecological sensitivity","metricDescription":"Report the number and area (in hectares) of sites owned, leased or managed in or adjacent to protected areas and/or key biodiversity areas.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 304-1","capitalism":"2.2.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"4449d683-a2f2-487e-b926-fd88846e1546"},{"pillar":"Planet/Environment","sustainabilityArea":"Nature loss","subject":"Land use and ecological sensitivity","metricDescription":"Report for operations (if applicable) and full supply chain (if material):\\r\\n– Area of land used for the production of basic plant, animal or mineral commodities (e.g. the area of land used for forestry, agriculture or mining activities).","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.2.2e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"1ea10f37-d9d1-446d-913b-fc0a196ab755"},{"pillar":"Planet/Environment","sustainabilityArea":"Nature loss","subject":"Impact of land use and conversion","metricDescription":"Report wherever material along the value chain: the valued impact of use of land and conversion of ecosystems.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.2.3e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"Fund A, Fund B, Asset B, Asset C","id":"7aa484a8-6eab-43a4-842d-4738fdaad96f"},{"pillar":"Planet/Environment","sustainabilityArea":"Freshwater availability","subject":"Water consumption and withdrawal in water-stressed areas","metricDescription":"Report for operations where material: \\r\\n%megalitres of water withdrawn in regions with high or extremely high baseline water stress\\r\\n\\r\\n","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.3.1c","sasb":"sasb","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"01402d0c-657e-4518-b3aa-7aa8ccc67786"},{"pillar":"Planet/Environment","sustainabilityArea":"Freshwater availability","subject":"Impact of freshwater consumption and withdrawal","metricDescription":"Report wherever material along the value chain: the valued impact of freshwater consumption.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.3.2e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"9f5c0aff-fc70-4731-9a45-89cc6ea613de"},{"pillar":"Planet/Environment","sustainabilityArea":"Air pollution","subject":"Air pollution","metricDescription":"Report wherever material along the value chain: nitrogen oxides (NOx)","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 305-7","capitalism":"2.4.1e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"09a6ef37-eaeb-419f-addc-a16f1d1a24e7"},{"pillar":"Planet/Environment","sustainabilityArea":"Air pollution","subject":"Impact of air pollution","metricDescription":"Report wherever material along the value chain the valued impact of air pollution: including nitrogen oxides (NOx)","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.4.2e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"7ad6400e-9c84-4fa1-96f1-c48c81d4d36c"},{"pillar":"Planet/Environment","sustainabilityArea":"Water pollution","subject":"Nutrients","metricDescription":"Estimate and report wherever material along the value chain in fertilizer consumed: metric tonnes of nitrogen","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.5.1e","sasb":"SASB CN0101-11","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"e3f10143-e10b-4024-a8b0-3480db447067"},{"pillar":"Planet/Environment","sustainabilityArea":"Water pollution","subject":"Impact of water pollution","metricDescription":"Report wherever material along the value chain: the valued impact of water pollution including excess nutrients","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.5.2e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"92c07b36-d30c-4dfb-be05-68996c77218d"},{"pillar":"Planet/Environment","sustainabilityArea":"Solid waste","subject":"Single-use plastics","metricDescription":"Report wherever material along the value chain: estimated metric tonnes of single-use plastic consumed.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.6.1e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"689f4cdc-a06b-4d6f-9f0d-1ff8abdd88fa"},{"pillar":"Planet/Environment","sustainabilityArea":"Solid waste","subject":"Impact of solid waste disposal","metricDescription":"Report wherever material along the value chain, the valued societal impact of solid waste disposal, including plastics and other waste streams.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.6.2e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"9b2426c3-0dc4-4a18-bcb5-1fdd419b2177"},{"pillar":"Planet/Environment","sustainabilityArea":"Resource availability","subject":"Resource circularity","metricDescription":"Report the most appropriate resource circularity metric(s) for the whole company and/or at a product, material or site level as applicable.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"2.7.1e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"fe1be061-fc0c-4e04-baf6-b9535e036877"},{"pillar":"People/Social","sustainabilityArea":"Dignity and equality","subject":"Diversity and inclusion (%)","metricDescription":"Percentage of employees per employee category:\\r\\nage group","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 405-1b","capitalism":"3.1.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"084bd344-d1dc-4c7c-ad76-4df8c0af3298"},{"pillar":"People/Social","sustainabilityArea":"Dignity and equality","subject":"Pay equality (%)","metricDescription":"Ratio of the basic salary and remuneration for each employee category by significant locations of operation for priority areas of equality: women to men","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"Adapted from GRI 405-2","capitalism":"3.1.2c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"9f711d7a-359d-4f52-a4ab-c8e0097777cb"},{"pillar":"People/Social","sustainabilityArea":"Dignity and equality","subject":"Wage level (%)","metricDescription":"Ratios of standard entry level wage by gender compared to local minimum wage.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 202-1","capitalism":"3.1.3c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"3dbcb903-4c99-409a-9724-37d8a1badded"},{"pillar":"People/Social","sustainabilityArea":"Dignity and equality","subject":"Risk for incidents of child, forced or compulsory labour","metricDescription":"An explanation of the operations and suppliers considered to have significant risk for incidents of child labour, forced or compulsory labour.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 408-1b, GRI 409-1a","capitalism":"3.1.4c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"c698b333-db49-4631-b541-56c21a097ef9"},{"pillar":"People/Social","sustainabilityArea":"Dignity and equality","subject":"Pay gap (%, #)","metricDescription":"1. Mean pay gap of basic salary and remuneration of full-time relevant employees based on gender (women to men) at a company level or by significant location of operation.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 102-38","capitalism":"3.1.5e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"335879e8-56a5-46a7-8275-b5071005ceab"},{"pillar":"People/Social","sustainabilityArea":"Dignity and equality","subject":"Discrimination and harassment incidents (#) and the total  amount of monetary losses ($)","metricDescription":"Number of discrimination and harassment incidents","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 406-1","capitalism":"3.1.6e","sasb":"SASB FR-310a.4 ","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"7c52be31-178f-480c-b81a-f546b5767fee"},{"pillar":"People/Social","sustainabilityArea":"Dignity and equality","subject":"Freedom of association and collective bargaining at risk (%)","metricDescription":"1. Percentage of active workforce covered under collective bargaining agreements","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 407-1","capitalism":"3.1.7e","sasb":"SASB CN0401-17","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"4d7498d5-7986-4ed2-babf-506128e52241"},{"pillar":"People/Social","sustainabilityArea":"Dignity and equality","subject":"Human rights review, grievance impact & modern  slavery (#, %)","metricDescription":"1. Total number and percentage of operations that have been subject to human rights reviews or human rights impact assessments, by country.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 412-1\\r\\nGRI 408-1a,\\r\\nAdapted from\\r\\nGRI 408-1a and\\r\\nGRI 409-1","capitalism":"3.1.8e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"9f90caf6-6548-4a55-a01a-87bbe44bce4d"},{"pillar":"People/Social","sustainabilityArea":"Dignity and equality","subject":"Living wage (%)","metricDescription":"Current wages against the living wage for employees and contractors in states and localities where the company is operating.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"3.1.9e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"b11a95ec-54c3-4398-8627-83e21f0c716f"},{"pillar":"People/Social","sustainabilityArea":"Health and well-being","subject":"Health and safety (%)","metricDescription":"The number of fatalities as a result of work-related injury; high-consequence work-related injuries (excluding fatalities); recordable work-related injuries; main types of work-related injury; and the number of hours worked.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI:2018 403-9a&b, GRI:2018 403-6a ","capitalism":"3.2.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"f1b9f4ea-88cb-4400-b7b9-ccd3f92820ea"},{"pillar":"People/Social","sustainabilityArea":"Health and well-being","subject":"Monetized impacts of work-related incidents on organization (#, $)","metricDescription":"By multiplying the number and type of occupational incidents by the direct costs for employees, employers per incident (including actions and/or fines from regulators, property damage, healthcare costs, compensation costs to employees).","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"3.2.2e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"dbeda484-56f6-431e-a724-4d059016cae6"},{"pillar":"People/Social","sustainabilityArea":"Health and well-being","subject":"Employee well-being (#, %)","metricDescription":"1. The number of fatalities as a result of work-related ill-health, recordable work-related ill-health injuries, and the main types of work-related ill-health for all employees and workers.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI:2018 403-10a&b, GRI:2016 403-2a","capitalism":"3.2.3e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"aa16c198-0cda-44f8-b98a-539e68662606"},{"pillar":"People/Social","sustainabilityArea":"Skills for the future","subject":"Training provided (#, $) ","metricDescription":"Average hours of training per person that the organization’s employees have undertaken during the reporting period, by gender (total number of hours of training provided to employees divided by the number of employees). Average training and development expenditure per full time employee (total cost of training provided to employees divided by the number of employees).","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 404-1","capitalism":"3.3.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"fb755ba3-ab1b-45fc-bafb-cf4b2149caf7"},{"pillar":"People/Social","sustainabilityArea":"Skills for the future","subject":"Number of unfilled skilled positions (#, %)","metricDescription":"1. Number of unfilled skilled positions (#).","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"3.3.2e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"0eb4b44e-b336-4e3d-a765-f46500c7a2fc"},{"pillar":"People/Social","sustainabilityArea":"Skills for the future","subject":"Monetized impacts of training – Increased earning capacity as a  result of training intervention (%, $)","metricDescription":"1. Investment in training as a percentage (%) of payroll.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"3.3.3e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"42f38825-39b1-47cb-9768-e7d8c7fc22d8"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Employment and wealth generation","subject":"Absolute number and rate of employment","metricDescription":"1. Total number and rate of new employee hires during the reporting period, by age group, gender, other indicators of diversity and region.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 401-1a&b","capitalism":"3.4.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"6cabba5d-a909-4c5c-b34c-d913ed73e72e"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Employment and wealth generation","subject":"Economic contribution ","metricDescription":"1. Direct economic value generated and distributed (EVG&D), on an accruals basis, covering the basic components for the organization’s global operations, ideally split out by: – Revenues – Operating costs – Employee wages and benefits – Payments to providers of capital – Payments to government – Community investment","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 201-1, GRI 201-4","capitalism":"3.4.2c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"425e9bec-0a64-4b0d-8c9a-d78e8c7a4d82"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Employment and wealth generation","subject":"Financial investment contribution ","metricDescription":"1. Total capital expenditures (CapEx) minus depreciation, supported by narrative to describe the company’s investment strategy. 2. Share buybacks plus dividend payments, supported by narrative to describe the company’s strategy for returns of capital to shareholders.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"","capitalism":"3.4.3c","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"204e82d0-9715-42a4-8a59-640539b8a707"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Employment and wealth generation","subject":"Infrastructure investments and services supported","metricDescription":"Qualitative disclosure to describe the below components: 1. Extent of development of significant infrastructure investments and services supported.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 203-1","capitalism":"3.4.4e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"c6ed1a2e-381b-45fb-90bf-b1bb99e9d82d"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Employment and wealth generation","subject":"Significant indirect economic impacts ","metricDescription":"1. Examples of significant identified indirect economic impacts of the organization, including positive and negative impacts.","reportedMetric":"","sfdr":"","euTaxonomy":"","gri":"GRI 203-2","capitalism":"3.4.5e","sasb":"","cdp":"","ipieca":"","rio":"","report":"Yes","funds":"All","id":"31892a7b-d319-4a22-95fb-6cbe8b90cc04"},{"pillar":"Prosperity/Economic","sustainabilityArea":"Innovation of better products and services","subject":"Total R&D expenses ($)","metricDescription":"Total costs related to research and development.","reportedMetric":"GBP 25,000","sfdr":"","euTaxonomy":"","gri":"","capitalism":"3.5.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"","gresb":""},{"pillar":"Prosperity/Economic","sustainabilityArea":"Innovation of better products and services","subject":"Social value generated (%)","metricDescription":"Percentage of revenue from products and services designed to deliver specific social benefits or to address specific sustainability challenges.","reportedMetric":"45%","sfdr":"","euTaxonomy":"","gri":"","capitalism":"3.5.2e","sasb":"SASB FN0102-16.a","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"","gresb":""},{"pillar":"Prosperity/Economic","sustainabilityArea":"Innovation of better products and services","subject":"Vitality Index","metricDescription":"Percentage of gross revenue from product lines added in last three (or five) years calculated as the sales from products that have been launched in the past three (or five) years divided by total sales, supported by narrative that describes how the company innovates to address specific sustainability challenges.","reportedMetric":"75%","sfdr":"","euTaxonomy":"","gri":"","capitalism":"3.5.3e","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"","gresb":""},{"pillar":"Prosperity/Economic","sustainabilityArea":"Community and social vitality","subject":"Total tax paid","metricDescription":"The total global tax borne by the company, including corporate income taxes, property taxes, non-creditable VAT and other sales taxes, employer-paid payroll taxes, and other taxes that constitute costs to the company, by category of taxes.","reportedMetric":"GBP 60,000/year ","sfdr":"","euTaxonomy":"","gri":"GRI 201-1","capitalism":"3.6.1c","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"","gresb":""},{"pillar":"Prosperity/Economic","sustainabilityArea":"Community and social vitality","subject":"Total Social Investment ($)","metricDescription":"Total Social Investment (TSI) sums up a company’s resources used for “S” in ESG efforts defined by CECP Valuation Guidance.","reportedMetric":"GBP 75,500.","sfdr":"Materiality Assessment Factors","euTaxonomy":"","gri":"","capitalism":"3.6.2e","sasb":"","cdp":"C14","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"","gresb":""},{"pillar":"Prosperity/Economic","sustainabilityArea":"Community and social vitality","subject":"Additional tax remitted","metricDescription":"The total additional global tax collected by the company on behalf of other taxpayers, including VAT and employee-related taxes that are remitted by the company on behalf of customers or employees, by category of taxes.","reportedMetric":"GBP 40,000","sfdr":"","euTaxonomy":"","gri":"GRI 201-1","capitalism":"3.6.3e","sasb":"","cdp":"C11","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"","gresb":""},{"pillar":"Prosperity/Economic","sustainabilityArea":"Community and social vitality","subject":"Total tax paid by country for significant locations","metricDescription":"Total tax paid","reportedMetric":"GBP 100,000","sfdr":"","euTaxonomy":"","gri":"GRI 201-1","capitalism":"3.6.4e","sasb":"","cdp":"","ipieca":"","rio":"","report":"","funds":"","id":"","tcfd":"","gresb":""}]'),ybe=(0,le.default)(ie.fv)`
  height: 100%;
  overflow-y: auto;
`,gbe=(e,n,t)=>n?.[t]?(0,fe.jsx)(e,{}):(0,fe.jsx)(m.C5,{to:"/governance"}),hbe=()=>{const{data:{comply:e}}=Mr(),{data:n}=Ns(),t=or(),a=n?.role.role===gn.gG.Individual&&n?.account.type===$T;return(0,fe.jsx)(ybe,{container:!0,item:!0,children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"",element:(0,fe.jsx)(Jye,{accessControls:e,isShouldUserUpgrade:a})}),(0,fe.jsx)(m.qh,{path:t.governance.systems,element:gbe(zue,e,"systems")}),(0,fe.jsx)(m.qh,{path:t.governance.agreements,element:gbe(zue,e,"agreements")}),(0,fe.jsx)(m.qh,{path:t.governance.frameworks,element:gbe(zue,e,"frameworks")}),(0,fe.jsx)(m.qh,{path:`${t.governance.systems}/50f543aa-da72-4090-8f1f-0a1fbd218b0b/*`,element:gbe(Nye,e,"systems")}),(0,fe.jsx)(m.qh,{path:`${t.governance.systems}/:id/*`,element:gbe(Bfe,e,"systems")}),(0,fe.jsx)(m.qh,{path:`${t.governance.agreements}/:id/*`,element:gbe(Bfe,e,"agreements")}),(0,fe.jsx)(m.qh,{path:`${t.governance.frameworks}/:id/*`,element:gbe(Bfe,e,"frameworks")}),(0,fe.jsx)(m.qh,{path:t.governance.policies,element:gbe(_ge,e,"policies")}),(0,fe.jsx)(m.qh,{path:t.governance.targets,element:gbe(Vhe,e,"targets")}),(0,fe.jsx)(m.qh,{path:t.governance.materiality,element:(0,fe.jsx)(mbe,{materialities:fbe})}),(0,fe.jsx)(m.qh,{path:t.governance.aspects,element:gbe(dTe,e,"systems")}),(0,fe.jsx)(m.qh,{path:`${t.governance.aspects}/:id`,element:gbe(ATe,e,"systems")}),(0,fe.jsx)(m.qh,{path:t.governance.health,element:gbe(lbe,e,"systems")}),(0,fe.jsx)(m.qh,{path:t.governance.legislation,element:(0,fe.jsx)(kue,{accessControls:e})}),(0,fe.jsx)(m.qh,{path:`${t.governance.legislation}/:id`,element:(0,fe.jsx)(eue,{accessControls:e,isShouldUserUpgrade:a})}),(0,fe.jsx)(m.qh,{path:`${t.governance.legislation}/:id/:tagId`,element:(0,fe.jsx)(eue,{accessControls:e,isShouldUserUpgrade:a})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:t.governance.root})})]})})},xbe=(e,n)=>n?(0,fe.jsx)(e,{}):(0,fe.jsx)(m.C5,{to:"/"});function Tbe(e,n,t,a){return(0,x.IT)(Rd,{variables:{accountId:e,contributorAccountId:n,contributorUserId:t,contributorUserGroupId:a},fetchPolicy:"network-only",skip:!n})}const bbe=(e,n,t,a)=>dn(Rd,{variables:{accountId:e,contributorAccountId:n,contributorUserId:t,contributorUserGroupId:a},fetchPolicy:"network-only",keepErrorAfterUnmount:!0,skip:!n}),vbe=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,Cbe=(0,le.default)(xm)`
  width: 100%;
  height: 100%;
  flex: 1;
  padding: ${e=>e.theme.geometry.md.spacing};
`,kbe=(0,le.default)(ie.fv)`
  justify-content: flex-end;
`;function Sbe(){const{contributorId:e}=(0,m.g)(),[n,t,a]=e.split(":"),i=Je(),l=Tbe(i,n,t,a),r=(0,g.useCallback)(()=>l.refetch({accountId:i}),[i,l]),o=(0,m.Zp)();return(0,fe.jsx)(Mc,{result:l,error:(0,g.useCallback)(e=>e.message.includes("Not found")?(0,fe.jsx)(wc,{error:e}):(0,fe.jsx)($c,{error:e,retry:r}),[r]),data:(0,g.useCallback)(e=>{let{getMySurveyContributorById:{account:n,surveys:t}}=e;return(0,fe.jsxs)(vbe,{children:[(0,fe.jsx)(gu,{icon:["rio","clipboard-check-custom"],iconColor:"quaternary",title:n.name,breadcrumb:[{to:"../sent/overview",title:"Surveys sent"},{to:"../sent/contributors",title:"Contributors"},{title:n.name}],children:(0,fe.jsx)(kbe,{span:9,container:!0,children:(0,fe.jsx)(Im,{children:"More information"})})}),(0,fe.jsx)(Cbe,{children:t.map(e=>{const n=sm(e.submission?.status);return(0,fe.jsx)(km,{survey:e,onClick:()=>{n&&e.submission&&o(`./submission/${e.submission.id}`)},disabled:!n},e.id)})})]})},[o])})}const Nbe=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,Abe=le.default.div`
  height: 100%;
`,Rbe=e=>{let{value:n}=e;return n||"-"},Dbe=e=>{let{data:n}=e;if(!n.user)return null;const{first_name:t,last_name:a}=n.user;return`${t} ${a}`},Lbe=e=>{let{value:n}=e;return n&&JSON.parse(n).feedback||"-"},Ibe=[{headerName:"Date & Time",field:"createdDate",valueFormatter:e=>ct(e.value)},{headerName:"User",valueFormatter:Rbe,valueGetter:Dbe},{headerName:"Contributor",field:"account.name",valueFormatter:Rbe},{headerName:"Action",field:"type",flex:1,valueFormatter:Rbe},{headerName:"Manager comments",field:"payload",valueFormatter:Lbe}];function jbe(e){let{rows:n}=e;return(0,fe.jsx)(Abe,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{rowData:n,columnDefs:Ibe})})}const wbe=S.J1`
  fragment SurveyTemplateAllFields on SurveyTemplate {
    id
    formContent
    questions {
      id
      name
      title
      type
      isKeyMetric
      category {
        id
        name
        parentCategory {
          id
          name
        }
      }
      options {
        name
        score
        isDataMissingMarker
        isNotApplicableMarker
      }
    }
  }
`,Obe=S.J1`
  fragment SurveySubmissionAllFields on SurveySubmission {
    id
    status
    answers {
      id
      answer
      questionId
    }
    owner {
      id
    }
    userId
    userGroupId
  }
`,Ebe=S.J1`
  fragment SurveyOwnerFields on Account {
    id
  }
`,_be=S.J1`
  fragment SurveyBaseFields on Survey {
    id
    name
    status
    startDate
    deadlineDate
    notes
    dashboardId
    automatedScoring
    feedbackEnabled
    isIndividualContributor
    isUserGroupContributor
  }
`,Fbe=S.J1`
  query GetSurveysPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {
    getSurveysPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        id
        name
        status
        startDate
        deadlineDate
        notes
        submissions {
          id
          status
          owner {
            id
          }
          userGroupId
          userId
        }
        contributors {
          ... on AccountSurveyContributor {
            account {
              id
              name
            }
            user {
              id
              first_name
              last_name
              email
            }
            surveys {
              id
              name
              lockedBy {
                id
                first_name
                last_name
              }
            }
            tagId
          }
        }
        automatedScoring
        feedbackEnabled
        owner {
          id
        }
        isIndividualContributor
        isUserGroupContributor
      }
    }
  }
`,Pbe=S.J1`
  fragment ContributorFilteredBySurveyFields on AccountSurveyContributor {
    account {
      id
      name
    }
    user {
      id
      first_name
      last_name
      email
    }
    userGroup {
      id
      name
    }
    surveys(id: $id) {
      id
      name
      lockedBy {
        id
        first_name
        last_name
      }
    }
    tagId
  }
`,Bbe=S.J1`
  mutation CreateSurvey($survey: SurveyInput!) {
    createSurvey(survey: $survey) {
      ...SurveyBaseFields
    }
  }
  ${_be}
`,Ube=(S.J1`
  query GetAccountInfo($id: ID!) {
    getAccountInfo(id: $id) {
      children {
        id
        name
      }
    }
  }
`,S.J1`
  mutation DeleteSurvey($id: ID!) {
    deleteSurvey(id: $id)
  }
`),$be=S.J1`
  mutation DeleteSurveyResponse($submissionId: ID!) {
    deleteSurveySubmission(submissionId: $submissionId)
  }
`,Mbe=S.J1`
  mutation UpdateSurvey($id: ID!, $survey: SurveyInput!) {
    updateSurvey(id: $id, survey: $survey) {
      ...SurveyBaseFields
    }
  }
  ${_be}
`,Vbe=S.J1`
  query GetSurvey($id: ID!) {
    getSurveyById(id: $id) {
      ...SurveyBaseFields
    }
  }
  ${_be}
`,Gbe=S.J1`
  query GetSurveyTemplate($id: ID!) {
    getSurveyById(id: $id) {
      template {
        ...SurveyTemplateAllFields
      }
    }
  }
  ${wbe}
`,zbe=S.J1`
  query GetSurveySubmissions($id: ID!) {
    getSurveyById(id: $id) {
      submissions {
        ... on SurveySubmission {
          ...SurveySubmissionAllFields
        }
      }
    }
  }
  ${Obe}
`,Wbe=S.J1`
  query GetSurveyContributors($id: ID!) {
    getSurveyById(id: $id) {
      contributors {
        ... on AccountSurveyContributor {
          ...ContributorFilteredBySurveyFields
        }
      }
    }
  }
  ${Pbe}
`,qbe=S.J1`
  query GetSurveyOwner($id: ID!) {
    getSurveyById(id: $id) {
      owner {
        ...SurveyOwnerFields
      }
    }
  }
  ${Ebe}
`,Jbe=S.J1`
  query getSurveyLatest($accountId: ID!) {
    getSurveyLatest(accountId: $accountId) {
      ...SurveyBaseFields
    }
  }
  ${_be}
`;S.J1`
  query GetSurveyName($id: ID!) {
    getSurveyById(id: $id) {
      name
    }
  }
`;const Ybe=[];function Hbe(e){const n=e.fields??Ybe,[t,a]=(0,g.useState)(null),[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(null),{showNotification:s}=tn(),d=Je(),[c]=ed(Jbe,{fetchPolicy:"network-only"}),[u]=ed(Vbe,{fetchPolicy:"network-only"}),[p]=ed(Gbe,{fetchPolicy:"network-only"}),[m]=ed(zbe,{fetchPolicy:"network-only"}),[f]=ed(qbe,{fetchPolicy:"network-only"}),[y]=ed(Wbe,{fetchPolicy:"network-only"}),h=(0,g.useMemo)(()=>({template:p,submissions:m,owner:f,contributors:y}),[p,m,f,y]),x=(0,g.useCallback)(async()=>{let t;if(e.id){const n=await u({variables:{id:e.id}});t={...n.data?.getSurveyById}}else{const e=await c({variables:{accountId:d}});if(!e.data?.getSurveyLatest)return null;t={...e.data?.getSurveyLatest}}if(!t)throw new Error("Survey not loaded");return await Promise.all(n.map(async e=>{const n=h[e];if(n){const a=await n({variables:{id:t.id}});a.data?.getSurveyById[e]&&Object.assign(t,{[e]:a.data.getSurveyById[e]})}})),t},[e.id,c,u,n,d,h]),T=(0,g.useCallback)(async()=>{if(i)throw new Error("Survey already loading");l(!0),await x().then(e=>{a(e),o(null)}).catch(e=>{o(e),s("Survey not loaded","danger")}).finally(()=>{l(!1)})},[x,s,i]),b=(0,g.useCallback)(()=>{a(null),o(null),l(!1)},[]);return(0,g.useMemo)(()=>({survey:t,loading:i,error:r,load:T,reset:b}),[t,i,r,T,b])}function Kbe(){const{showNotification:e}=tn();return nd(Bbe,{onCompleted:()=>{e("Your survey has been sent to its recipients","success")},onError:n=>{e(n?`${n}`:"We’re sorry but we are unable to publish right now - please try again later","danger")}})}function Qbe(){const{showNotification:e}=tn(),n={accountId:Je()};return nd(Ube,{refetchQueries:[{query:Jbe,variables:n}],awaitRefetchQueries:!0,onCompleted:()=>{e("Survey has been deleted.","success")},onError:n=>{e(`Something went wrong. If the problem persists, contact support. ${n}`,"danger")},update:(e,t)=>{const a=e.readQuery({query:Fbe,variables:n}),i=t?.data?.deleteSurvey;i&&a?.getSurveysPage&&e.writeQuery({query:Fbe,variables:n,data:{rows:a.getSurveysPage.rows.filter(e=>e.id!==i)}})}})}function Zbe(e){let{accountId:n,offset:t=0,limit:a,sort:i=[],filters:l={}}=e;return dn(Fbe,{variables:{accountId:n,offset:t,limit:a,sort:i,filters:l},fetchPolicy:"network-only",keepErrorAfterUnmount:!0})}function Xbe(){const{surveyId:e}=(0,m.g)(),n={id:e},t=Je(),{showNotification:a}=tn(),i={accountId:t};return(0,ln.n)(Mbe,{onCompleted:()=>{a("The survey has been successfully updated!","success")},onError:e=>{a(`Something went wrong. If the problem persists, contact support. ${e}`,"danger")},update:(e,t)=>{const a=t.data?.updateSurvey;if(a){e.writeQuery({variables:n,query:Vbe,data:{getSurveyById:a}});const t=e.readQuery({query:Fbe,variables:i});t?.getSurveysPage&&e.writeQuery({variables:i,query:Fbe,data:{rows:t.getSurveysPage.rows.map(e=>e.id===a.id?a:e)}})}}})}const eve=[{to:"../sent/overview",title:"Surveys"},{to:"../sent/surveys",title:"Sent surveys"}],nve=()=>(0,fe.jsx)(Iu,{title:"Contributors haven't interacted with this survey yet",description:"Their interactions will be logged soon after they occur",icon:["rio","clipboard-check-custom"]});function tve(){const e=Je(),{surveyId:n}=(0,m.g)(),{survey:t}=Hbe({id:n,fields:[]}),a=cn(n),i=(0,g.useMemo)(()=>t?[...eve,{to:`../sent/surveys/${t.id}`,title:t?.name},{title:"Survey log"}]:eve,[t]),l=(0,g.useCallback)(e=>{let{getAuditByEntityId:n}=e;return n.length?(0,fe.jsx)(jbe,{rows:n}):(0,fe.jsx)(nve,{})},[]),r=(0,g.useCallback)((n,t)=>{let{refetch:a}=t;return(0,fe.jsx)($c,{error:n,retry:()=>a({accountId:e})})},[e]),o=(0,g.useCallback)(()=>(0,fe.jsx)(Rc,{name:"SurveyAuditLogContainer__Loading"}),[]);return(0,fe.jsxs)(Nbe,{children:[(0,fe.jsx)(gu,{name:"SurveyAuditLog",icon:"clipboard-check",iconColor:"quaternary",title:"Survey log",breadcrumb:i}),(0,fe.jsx)(Mc,{result:a,data:l,error:r,loading:o})]})}const ave=()=>{const{surveyId:e}=(0,m.g)(),{data:n,loading:t}=un(e),a=n?.getAuditByEntityId||[];return t?null:(0,fe.jsx)(sve,{rows:a})},ive=[{headerName:"Date & Time",field:"createdDate",valueFormatter:e=>ct(e.value)},{headerName:"User",valueFormatter:Rbe,valueGetter:Dbe},{headerName:"Action",field:"type",flex:1,valueFormatter:Rbe},{headerName:"Manager comments",field:"payload",valueFormatter:Lbe}];function lve(e){let{rows:n}=e;return(0,fe.jsx)(Abe,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{rowData:n,columnDefs:ive})})}const rve=(0,f.styled)(f.AgGrid)`
  height: calc(100vh - 216px); // header + page title height
  padding-bottom: 2px; // border bottom and shadow to show properly
`,ove=[{headerName:"Date & Time",field:"createdDate",valueFormatter:e=>ct(e.value)},{headerName:"User",valueFormatter:Rbe,valueGetter:Dbe},{headerName:"Action",field:"type",flex:1,valueFormatter:Rbe},{headerName:"Manager comments",field:"payload",valueFormatter:Lbe}],sve=e=>{let{rows:n}=e;const t=Je(),a=(0,g.useMemo)(()=>({rowData:n,suppressLoadingOverlay:!0,columnDefs:ove}),[n]);return(0,fe.jsx)(rve,{gridKey:"receivedSurveyAuditLogGridV2",gridOptions:a},t)},dve=(S.J1`
  mutation UploadDocument($id: ID!, $accountId: ID!, $file: File!, $fileName: String!, $key: String!) {
    uploadDocument(id: $id, accountId: $accountId, file: $file, fileName: $fileName, key: $key) @client {
      status
      fileUploaded
    }
  }
`,S.J1`
  mutation CreateDocumentRecord($input: CreateDocumentRecordInput!) {
    createDocumentRecord(input: $input) {
      id
      link
    }
  }
`),cve=S.J1`
  mutation DeleteDocumentRecords($ids: [ID!]!) {
    deleteDocumentRecords(ids: $ids)
  }
`,uve=[gn.xV.Checkbox,gn.xV.Tagbox,gn.xV.File];function pve(e,n,t){const a=Pd()(t.questions,"id");return e.reduce((e,t)=>{const i=JSON.parse(t.answer),l=a[t.questionId];return l?(a[t.questionId].type===gn.xV.File?e[l.name]=i.map(e=>n[e]).filter(Boolean):e[l.name]=i,e):e},{})}const mve=e=>{if(null==e)return!1;const n="string"==typeof e&&'""'!==e&&""!==e&&"[]"!==e&&"{}"!==e,t="boolean"==typeof e,a="number"==typeof e,i=Array.isArray(e)&&e.length>0,l="object"==typeof e&&null!==e&&!Array.isArray(e)&&Object.keys(e).length>0;return n||t||a||i||l},fve=(e,n)=>{const t=(0,g.useMemo)(()=>{if(!e)return[];const t=(0,hn.keyBy)(n?.questions,"id");return e.answers.filter(e=>t[e.questionId]?.type===gn.xV.File).map(e=>JSON.parse(e.answer)).flat()},[e,n]),[a,i]=(0,g.useState)({}),{data:{getDocumentRecordsByIds:l}={getDocumentRecordsByIds:[]}}=(0,x.IT)(Sd,{skip:!t.length,variables:{ids:t}});return(0,g.useEffect)(()=>{if(!l.length)return;const e=l.map(async e=>{const n=await(async(e,n)=>{const t=await fetch(e),a=await t.blob();return new File([a],n,{type:a.type})})(e.link,e.fileName),t=await zR(n);return{id:e.id,name:e.fileName,content:t,type:n.type}});Promise.all(e).then(e=>{i((0,hn.keyBy)(e,"id"))})},[l]),(0,g.useMemo)(()=>({uploadedDocuments:a,uploadedDocumentsIds:t}),[a,t])},yve=e=>{let{accountId:n,surveyId:t,model:a,version:i,uploadedDocumentsIds:l,saveWithoutDebounce:r}=e;const o=Qe(),[s]=(0,p.useSearchParams)(),d=o?s.get("contributorId"):null,{uploadDocuments:c,loading:u}=(e=>{const{token:n}=qe(),t=ol(),[a,{loading:i}]=(0,ln.n)(dve),l=(0,g.useCallback)(async i=>{const l=[];for(const r in i){const o=i[r],s=[];for(const i of o){if(i.id){s.push(i.id);continue}const l=(0,Wa.A)(),r=await GR(i.content,i.name,i.type);await t(e,l,r);const o=await a({variables:{input:{id:l,accountId:e,fileName:i.name,userId:n.sub,source:gn.kL.S3,key:Oj(e,l),library:gn.zM.Invest,category:"Forms"}}});o.data?.createDocumentRecord?.id&&s.push(o.data.createDocumentRecord.id)}s.length&&l.push({name:r,value:JSON.stringify(s)})}return l},[e,n.sub,a,t]);return(0,g.useMemo)(()=>({uploadDocuments:l,loading:i}),[l,i])})(n),{saveSubmissionWithoutDebounce:m,loading:f,saveSubmission:y}=(()=>{const[e,{loading:n}]=(0,ln.n)(Cd),t=(0,XT.useDebouncedCallback)(function(){e(...arguments)},5e3,{leading:!0});return(0,g.useEffect)(()=>()=>{t.isPending()&&t.flush()},[t]),(0,g.useMemo)(()=>({saveSubmission:t,loading:n,saveSubmissionWithoutDebounce:e}),[t,e,n])})(),[h,{loading:x}]=(0,ln.n)(cve),T=(0,g.useMemo)(()=>a?a.getAllQuestions().filter(e=>"file"===e.getType()).map(e=>e.name):[],[a]),b=(0,g.useCallback)(async(e,o,s)=>{if(!a)return;const u=function(e){return Object.entries(e).map(e=>{let[n,t]=e;return{name:n,value:JSON.stringify(t)}})}(a.data).filter(e=>!T.includes(e.name)).filter(e=>mve(e.value)),p=Object.entries(a.data).filter(e=>T.includes(e[0])).reduce((e,n)=>{let[t,a]=n;return e[t]=a,e},{});if(Object.keys(p).length>0){const e=await c(p);e.length>0&&u.push(...e)}const f=((e,n)=>{const t=n.map(e=>e.id).filter(Boolean);return e.filter(e=>!t.includes(e))})(l,Object.values(p).flat());f.length>0&&await h({variables:{ids:f}});const g=[...a.getAllQuestions().filter(e=>{const n=a.data[e.name];return!mve(n)}).map(e=>uve.includes(e.getType())?{name:e.name,value:JSON.stringify([])}:{name:e.name,value:JSON.stringify("")}),...u];(r?m:y)({variables:{accountId:d||n,surveyId:t,submission:{surveyId:t,accountId:d||n,answers:g,status:e,version:i}},onCompleted:o,onError:s})},[r,d,n,T,h,a,y,m,t,i,l,c]);return(0,g.useMemo)(()=>({submitData:b,loading:f||u||x}),[x,f,u,b])},gve="audit_survey_received_loaded",hve="audit_survey_received_unloaded",xve=(e,n)=>JSON.parse(localStorage.getItem(e)||"{}")[n],Tve=(e,n,t)=>{const a=JSON.parse(localStorage.getItem(e)||"{}");a[n]=t,localStorage.setItem(e,JSON.stringify(a))},bve=()=>{const[e]=(0,ln.n)(sn);return{createSurveyAuditEvent:async(n,t,a,i)=>{if(!((e,n)=>{const t=`received/${n.id}`;return"opened"===e&&window.location.pathname===t||"closed"===e&&window.location.pathname!==t})(n,t))return;const l=((e,n)=>{let t;var a;return"opened"===e?(a=n.id,t=xve(gve,a)):"closed"===e&&(t=(e=>xve(hve,e))(n.id)),t})(n,t);if(l&&(e=>{const n=new Date(e),t=new Date;return t.setHours(t.getHours()-1),n>t})(l))return;((e,n)=>{const t=new Date;"opened"===e?((e,n)=>{Tve(gve,e,n)})(n.id,t):"closed"===e&&((e,n)=>{Tve(hve,e,n)})(n.id,t)})(n,t);const r=((e,n,t,a)=>({service:gn.nA.FormService,entityId:e.id,entity:gn.nE.FormCampaign,accountId:t,userId:a,type:`Survey ${n}`}))(t,n,a,i);return e({variables:{event:r}})}}},vve=[{to:"../received",title:"Surveys received"}],Cve=()=>(0,fe.jsx)(Iu,{title:"You don't have any logged responses",description:"Responses will be logged soon after you submit your answers to this survey",icon:["rio","clipboard-check-custom"]});function kve(){const{surveyId:e}=(0,m.g)(),n=Je(),t=Yo(),a=function(e,n,t){return(0,x.IT)(vd,{fetchPolicy:"network-only",variables:{id:e,accountId:n,userId:t}})}(e,n,t?.id||""),i=cn(a.data?.getReceivedSurveyById?.submission?.id),l=(0,g.useMemo)(()=>{if(a.data?.getReceivedSurveyById){const e=a.data?.getReceivedSurveyById;return[...vve,{to:`../received/${e.id}`,title:e.name},{title:"Response log"}]}return vve},[a]),r=(0,g.useCallback)(e=>e.message.toLowerCase().includes("not found")?(0,fe.jsx)(Cve,{}):(0,fe.jsx)($c,{error:e}),[]);return(0,fe.jsx)(Nbe,{children:(0,fe.jsx)(Mc,{result:a,data:(0,g.useCallback)(e=>{let{getReceivedSurveyById:n}=e;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(gu,{name:"SurveyContributorAuditLog",icon:"clipboard-check",iconColor:"quaternary",title:"Response log",breadcrumb:l}),n?.submission?(0,fe.jsx)(Mc,{result:i,data:e=>{let{getAuditByEntityId:n}=e;return(0,fe.jsx)(lve,{rows:n})}}):(0,fe.jsx)(Cve,{})]})},[i,l]),error:r})})}const Sve=()=>{const{surveyId:e}=(0,m.g)(),n=Je(),t=Yo(),{data:a}=((e,n,t)=>dn(vd,{variables:{id:e,accountId:n,userId:t},fetchPolicy:"no-cache"}))(e,n,t?.id||""),i=a?.getReceivedSurveyById?.submission?.id||"",{data:l,loading:r}=un(i),o=l?.getAuditByEntityId||[];return r?null:(0,fe.jsx)(sve,{rows:o})},Nve=[{to:"../sent/overview",title:"Surveys sent"},{to:"../sent/contributors",title:"Contributors"}],Ave=()=>(0,fe.jsx)(Iu,{title:"Contributor hasn't responded to your questions yet",description:"Responses will be logged soon after contributor saves his answers",icon:["rio","clipboard-check-custom"]});function Rve(){const{contributorId:e,surveyId:n}=(0,m.g)(),[t,a,i]=e.split(":"),l=Tbe(Je(),t,a,i),r=l.data?.getMySurveyContributorById,o=r?.surveys?.find(e=>e.id===n),s=cn(o?.submission?.id),d=(0,g.useMemo)(()=>r&&o?[...Nve,{to:`../sent/contributors/${r.account.id}`,title:r.account.name},o.submission?.id&&{to:`../sent/contributors/${r.account.id}/submission/${o.submission.id}`,title:o.name},{title:"Response log"}].filter(Boolean):Nve,[r,o]),c=(0,g.useCallback)(e=>e.message.toLowerCase().includes("not found")?(0,fe.jsx)(Ave,{}):(0,fe.jsx)($c,{error:e}),[]);return(0,fe.jsxs)(Nbe,{children:[(0,fe.jsx)(gu,{name:"SurveyMyContributorAuditLog",icon:"clipboard-check",iconColor:"quaternary",title:"Response log",breadcrumb:d}),(0,fe.jsx)(Mc,{result:l,data:(0,g.useCallback)(()=>o?.submission?(0,fe.jsx)(Mc,{result:s,data:e=>{let{getAuditByEntityId:n}=e;return(0,fe.jsx)(lve,{rows:n})}}):(0,fe.jsx)(Ave,{}),[s,o?.submission]),error:c})]})}const Dve=()=>{const e=Je(),{contributorId:n,surveyId:t}=(0,m.g)(),[a,i,l]=n.split(":"),{data:r}=bbe(e,a,i,l),o=r?.getMySurveyContributorById?.surveys,s=o?.find(e=>e.id===t),{data:d,loading:c}=un(s?.submission?.id),u=d?.getAuditByEntityId||[];return c?null:(0,fe.jsx)(sve,{rows:u})},Lve=le.default.div`
  --ag-borders: none;
  --ag-border-color: #e8e9ec;
  --ag-borders-row: 1px solid;
  --ag-odd-row-background-color: #fafafa;
  --ag-data-color: #000000;
  --ag-font-size: 14px;

  height: 100%;
  max-width: 100%;

  & :not(.ag-row) {
    border: 0;
  }

  &&& .ag-cell:focus {
    border: 0;
  }
  &&& .ag-row .ag-cell {
    display: flex;
    align-items: center;
  }
`,Ive=(0,le.default)(Lve)`
  --ag-row-height: ${50}px;
  --ag-row-hover-color: #e8e9ec;

  & .ag-paging-panel {
    justify-content: flex-start;
  }

  && .ag-row:hover {
    cursor: pointer;
  }
  &&&& .ag-row .ag-cell {
    line-height: 17px;
  }
  &&& .ag-row .ag-cell:first-child {
    padding-left: 12px;
  }
`,jve=(0,le.default)(Lve)`
  --ag-row-height: ${50}px;
  --ag-row-hover-color: #e8e9ec;

  & .ag-paging-panel {
    justify-content: flex-start;
  }

  && .ag-row:hover {
    cursor: pointer;
  }
  &&&& .ag-row .ag-cell {
    line-height: 17px;
  }
  &&& .ag-row .ag-cell:first-child {
    padding-left: 12px;
  }

  .ag-root-wrapper-body {
    height: 100%;
  }

  .ag-layout-normal {
    min-height: 350px;
  }

  .ag-paging-panel,
  .ag-header {
    font-family: 'Plus Jakarta Sans';
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.5px;
  }

  &&&& .ag-row {
    font-family: 'Plus Jakarta Sans';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.5px;
  }
`,wve=le.default.div`
  display: flex;
  align-items: center
  justify-content: center;
`,Ove=[{headerName:"Name",valueGetter:e=>{let{data:n}=e;return n.user?`${n.user.first_name} ${n.user.last_name} (${n.user.email})`:n.userGroup?n.userGroup.name:n.account.name},sort:"asc",comparator:Hn,flex:100},{headerName:"Contributor Type",valueGetter:e=>{let{data:n}=e;return n.user?"User":n.userGroup?"User Group":"Child Account"},flex:100},{headerName:"Chevron",cellRenderer:"chevron",flex:1}],Eve={filter:!1},_ve={chevron:()=>(0,fe.jsx)(wve,{children:(0,fe.jsx)(ie.In,{icon:"chevron-right",color:"#83838e"})})},Fve=e=>e.data.account.id;function Pve(e){let{contributors:n}=e;const t=(0,m.Zp)(),a=sl()?jve:Ive,i=(0,g.useCallback)(e=>{return t(`./${n=e.data,n.user?`${n.account.id}:${n.user.id}`:n.userGroup?`${n.account.id}::${n.userGroup.id}`:n.account.id}`);var n},[t]);return(0,fe.jsx)(a,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{defaultColDef:Eve,rowHeight:50,components:_ve,rowData:n,paginationPageSize:25,getRowId:Fve,columnDefs:Ove,onRowClicked:i,pagination:!0})})}const Bve=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,Uve=((0,le.default)(ie.In)`
  margin-right: 3px;
  color: ${e=>e.theme.colors.danger.light.background};
`,le.default.div`
  display: flex;
  padding: 10px;
  align-items: center;
`,[{to:"../sent/overview",title:"Surveys sent"},{title:"Contributors"}]);function $ve(){const e=Je(),n=fm(e),t=(0,g.useCallback)(()=>n.refetch({accountId:e}),[e,n]);return n.data?.getMySurveyContributors.length,(0,fe.jsxs)(Bve,{children:[(0,fe.jsx)(gu,{name:"FormsContributors",icon:["rio","clipboard-check-custom"],iconColor:"quaternary",title:"Contributors",breadcrumb:Uve}),!1,(0,fe.jsx)(Mc,{result:n,error:e=>(0,fe.jsx)($c,{error:e,retry:t}),data:e=>e.getMySurveyContributors.length?(0,fe.jsx)(Pve,{contributors:e.getMySurveyContributors}):(0,fe.jsx)(Iu,{title:"You don’t have any contributors yet",description:"Contributors are teams that can receive surveys. Contributors will appear once you assign a survey to teams in Surveys > Overview.",icon:["rio","clipboard-check-custom"]}),loading:()=>(0,fe.jsx)(Rc,{})})]})}const Mve=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  height: 100%;
`,Vve=((0,f.styled)("div")`
  display: flex;
  padding: 10px;
  align-items: center;
`,()=>{const e=Je(),{data:n,loading:t}=fm(e);return n?.getMySurveyContributors.length,(0,fe.jsxs)(Mve,{children:[!1,!t&&0===n?.getMySurveyContributors?.length&&(0,fe.jsx)(Iu,{title:"You don't have any contributors yet",description:"Contributors are teams that can receive surveys. Contributors will appear once you assign a survey to teams in Surveys > Overview.",icon:["rio","clipboard-check-custom"]}),!t&&n?.getMySurveyContributors&&n.getMySurveyContributors.length>0&&(0,fe.jsx)(Pve,{contributors:n?.getMySurveyContributors||[]})]})}),Gve=S.J1`
  fragment ContributorSubmissionFields on SurveySubmission {
    id
    status
    submittedDate
    owner {
      id
      name
    }
    survey {
      id
      name
      feedbackEnabled
      template {
        id
        formContent
        questions {
          id
          name
          type
        }
      }
    }
    version
    answers {
      id
      answer
      questionId
    }
  }
`,zve=S.J1`
  query getMyContributorsSubmission($id: ID!) {
    getSurveySubmissionById(id: $id) {
      ...ContributorSubmissionFields
    }
  }
  ${Gve}
`,Wve=S.J1`
  mutation SendFeedbackOnSurveySubmission(
    $submissionId: ID!
    $status: SurveySubmissionFeedbackStatus!
    $feedback: String
  ) {
    sendFeedbackOnSurveySubmission(submissionId: $submissionId, status: $status, feedback: $feedback) {
      ...ContributorSubmissionFields
    }
  }
  ${Gve}
`;function qve(){return(0,ln.n)(Wve)}const Jve=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`;function Yve(){const{submissionId:e}=(0,m.g)(),{data:n,loading:t,error:a,refetch:i}=function(e){return(0,x.IT)(zve,{variables:{id:e}})}(e),{showNotification:l}=tn(),[r]=qve(),o=n?.getSurveySubmissionById,s=(0,g.useCallback)(()=>i({id:e}),[e,i]),{uploadedDocuments:d}=fve(o,o?.survey.template),[c,u]=(0,g.useState)(!1),p=(0,g.useCallback)(()=>u(!0),[]),f=(0,g.useCallback)(()=>u(!1),[]),y=(0,g.useCallback)((n,t)=>{const a=n===gn.iD.Approved;return r({variables:{status:n,feedback:t,submissionId:e},onCompleted:()=>{a?l("Response approved successfully","success"):l("Change requests sent successfully","warning")},onError:e=>{l(`We couldn't send feedback. Please try again later or contact support@rio.ai: ${e}`,"danger")}})},[e,r,l]),h=(0,g.useMemo)(()=>{if(!o)return null;const e=new nm.Model(o.survey.template.formContent);return e.showPreviewBeforeComplete="showAnsweredQuestions",o.answers&&(e.data=pve(o.answers,d,o.survey.template),e.mode="display"),e},[o,d]);if(t)return(0,fe.jsx)(Rc,{});if(a)return(0,fe.jsx)($c,{error:a,retry:s});if(!o)return(0,fe.jsx)(wc,{error:"Not found"});const T=o?.owner,b=o?.survey;return(0,fe.jsxs)(Jve,{children:[(0,fe.jsx)(gu,{icon:["rio","clipboard-check-custom"],iconColor:"quaternary",title:o.survey.name,breadcrumb:[{to:"../sent/overview",title:"Surveys sent"},{to:"../sent/contributors",title:"Contributors"},{to:`../sent/contributors/${T.id}`,title:T.name},{title:b.name}],children:(0,fe.jsx)(Bm,{onClick:p})}),(0,fe.jsx)(Nf,{model:h,expanded:c,onDismiss:f,survey:{...b,submission:o},contributor:T.name,sendFeedback:y})]})}const Hve=(e,n)=>{switch(n){case gn.ZU.Approved:return e.extendedColors.environmental.color;case gn.ZU.InProgress:case gn.ZU.RequiresChanges:return e.customColors.warning.color;case gn.ZU.ReadyForReview:return e.ref.palette.success[90];default:return e.sys.color.error}};function Kve(e,n){let t="Not started";switch(e){case gn.ZU.RequiresChanges:t="Changes requested";break;case gn.ZU.ReadyForReview:t="Requires approval";break;case gn.ZU.InProgress:t="number"==typeof n?`${n}% complete`:"In progress";break;case gn.ZU.Approved:t="Complete"}return t}const Qve=(0,f.styled)(f.Text)`
  position: relative;
  display: inline-block;
  padding-left: 20px;
  white-space: nowrap;
  color: ${e=>e.theme.sys.color.onSurface};
  &::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: ${e=>{let{status:n,theme:t}=e;return Hve(t,n)}};
  }
`.withComponent("span"),Zve=(0,f.styled)(f.Button)`
  height: 40px;
`,Xve=e=>{let{expand:n}=e;return(0,fe.jsxs)(Zve,{variant:"outlined",onClick:n,children:[(0,fe.jsx)(f.Icons.Fullscreen,{fontSize:"small"}),(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:"Expand"})]})},eCe=(0,f.styled)("form")`
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
`,nCe=(0,f.styled)(f.Button)`
  width: 100%;
`,tCe=(0,f.styled)(f.Grid)`
  display: flex;
  gap: 24px;
  justify-content: space-between;
`,aCe=(0,f.styled)("div")`
  position: relative;

  .MuiFormHelperText-root {
    padding-right: 80px;
  }
`,iCe=(0,f.styled)(f.Text)`
  position: absolute;
  bottom: 0px;
  right: 16px;
`;function lCe(e){let{intention:n,onDismiss:t,onFeedback:a}=e;const i=n===gn.iD.Approved,[l,r]=(0,g.useState)(!1),[o,s]=(0,g.useState)(""),d=i?"Are you sure you want to approve this response?":"Are you sure you want to request changes this response?",c=i?"Yes, approve":"Yes, request changes",u=(0,g.useCallback)(e=>{const n=e.target.value.trimStart();n.length<=1e3&&s(n)},[s]),p=(0,g.useCallback)(async()=>{try{r(!0),await a(n,o)}finally{r(!1),t()}},[a,o,n,t]);return(0,fe.jsx)(f.Modal,{open:!0,onClose:t,title:d,children:(0,fe.jsxs)(eCe,{children:[(0,fe.jsxs)(aCe,{children:[(0,fe.jsx)(f.TextArea,{value:o||"",onChange:u,rows:3,error:!1,label:"Comments for recipients (optional)",helperText:"These notes will appear in the email sent to your recipients"}),(0,fe.jsx)(iCe,{typescale:"body",size:"large",children:`${o.length}/1000`})]}),(0,fe.jsxs)(tCe,{container:!0,children:[(0,fe.jsx)(f.Grid,{size:{xs:12,md:5.5},children:(0,fe.jsx)(nCe,{variant:"outlined",disabled:l,onClick:t,children:"No, keep as is"})}),(0,fe.jsx)(f.Grid,{size:{xs:12,md:5.5},children:(0,fe.jsx)(nCe,{variant:"contained",onClick:p,disabled:l,children:c})})]})]})})}const rCe=(0,f.styled)(f.Grid)`
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 24px;
`,oCe=(0,f.styled)(f.Button)`
  width: 100%;
`;function sCe(e){let{submission:n,sendFeedback:t}=e;const[a,i]=(0,g.useState)(!1),[l,r]=(0,g.useState)(!1),o=(0,g.useCallback)(()=>r(e=>!e),[r]),s=(0,g.useCallback)(()=>i(e=>!e),[]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(rCe,{container:!0,children:[n.status!==gn.ZU.RequiresChanges&&(0,fe.jsx)(f.Grid,{size:{xs:12,md:4,lg:3},children:(0,fe.jsx)(oCe,{variant:"contained",onClick:o,children:"Request changes"})}),n.status!==gn.ZU.Approved&&(0,fe.jsx)(f.Grid,{size:{xs:12,md:4,lg:3},children:(0,fe.jsx)(oCe,{variant:"contained",onClick:s,children:"Approve"})})]}),l&&(0,fe.jsx)(lCe,{intention:gn.iD.RequiresChanges,onDismiss:o,onFeedback:t}),a&&(0,fe.jsx)(lCe,{intention:gn.iD.Approved,onDismiss:s,onFeedback:t})]})}const dCe=(0,f.styled)("section")`
  display: flex;
  flex-flow: column nowrap;
  padding: 8px 0;
  flex-shrink: 0;
  background-color: ${e=>e.theme.sys.color.onSecondary};
`,cCe=(0,f.styled)("div")`
  display: flex;
  justify-content: flex-end;
`,uCe=(0,f.styled)("span")`
  display: flex;
  align-items: center;
  justify-content: center;
`,pCe=e=>{const{survey:n,readonly:t,sendFeedback:a,statusOverride:i}=e,l=i||n.submission?.status;return(0,fe.jsxs)(dCe,{name:"SubmissionInfo__Section",children:[(0,fe.jsx)(cCe,{children:(0,fe.jsx)(uCe,{status:l,children:(0,fe.jsx)(Qve,{typescale:"body",size:"medium",status:l,children:lm(l)})})}),t&&a&&n.feedbackEnabled&&n.submission&&(0,fe.jsx)(sCe,{submission:n.submission,sendFeedback:a})]})},mCe=(0,f.styled)("div")`
  display: flex;
  padding: 2px 0;
  justify-content: ${e=>e.isFirstPage?"flex-end":e.isLastPage?"flex-start":"space-between"};
`,fCe=e=>{let{model:n}=e;const[t,a]=(0,g.useState)(n?.currentPageNo||0),i=0===t,l=t===(n?.pageCount||0)-1;(0,g.useEffect)(()=>{a(n?.currentPageNo||0)},[n?.currentPageNo]);const r=(n?.pageCount||0)>1,o=(0,g.useCallback)(()=>{n?.nextPage()&&a(e=>e+1)},[n]),s=(0,g.useCallback)(()=>{n?.prevPage()&&a(e=>e-1)},[n]);return r&&n?(0,fe.jsxs)(mCe,{isFirstPage:i,isLastPage:l,children:[!i&&(0,fe.jsx)(f.Button,{onClick:s,variant:"outlined",children:(0,fe.jsx)(f.Icons.ChevronLeft,{fontSize:"medium"})}),!l&&(0,fe.jsx)(f.Button,{onClick:o,variant:"outlined",children:(0,fe.jsx)(f.Icons.ChevronRight,{fontSize:"medium"})})]}):null},yCe=(0,f.styled)("div")`
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
`,gCe=(0,f.styled)(Um.Survey)`
  .sd-title {
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
    font-weight: 300;
  }
  .sd-input {
    &.sd-input--disabled {
      opacity: 0.65;
      &::placeholder {
        opacity: 0.65;
      }
    }
  }
  .sd-item--disabled .sd-item__control-label {
    opacity: 0.65;
  }
`,hCe=e=>{const{model:n,readonly:t,survey:a,sendFeedback:i,header:l,onValueChanged:r,children:o,expanded:s,onDismiss:d,statusOverride:c}=e;(0,g.useEffect)(()=>{n&&n.applyTheme(bf)},[n]);const u=(0,fe.jsxs)(yCe,{children:[t?(0,fe.jsx)(pCe,{readonly:!0,statusOverride:c,survey:a,sendFeedback:i}):(0,fe.jsx)(pCe,{statusOverride:c,survey:a}),l,(0,fe.jsx)(gCe,{model:n,rootNodeId:"Survey__element",mode:t?"display":"edit",onValueChanged:r}),(0,fe.jsx)(fCe,{model:n}),o]});return s?(0,fe.jsx)(f.Modal,{maxWidth:"1200px",title:a.name,onClose:d,open:!0,children:u}):u},xCe=(0,f.styled)("div")`
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
  align-items: center;
  padding-top: 12px;
  position: relative;

  &:hover {
    cursor: pointer;
  }
`,TCe=(0,f.styled)("div")`
  display: flex;
  justify-content: flex-end;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
  align-items: flex-end;
  padding-right: 24px;
`,bCe=e=>{let{text:n}=e;const t=(0,f.styled)("div")`
    display: flex;
    position: absolute;
    bottom: 35px;
  `,a=(0,f.styled)(f.Text)`
    position: relative;
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.secondary}};
    color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
    border-radius: 6px;
    padding: 15px 15px;
    width: 250px;
    word-break: break-word;
    text-align: center;

    &::after {
      content: '';
      position: absolute;
      border: 10px solid transparent;
      border-top-color: ${e=>{let{theme:n}=e;return n.sys.color.secondary}};
      bottom: -20px;
      left: calc(80% - 14px);
      transform: translateX(-50%);
    }
  `.withComponent("span");return(0,fe.jsx)(t,{children:(0,fe.jsx)(a,{typescale:"body",size:"small",children:n})})},vCe=e=>{let{model:n,expanded:t,onDismiss:a,saveSurvey:i,survey:l,isLocked:r,editingUser:o,children:s,readonly:d,statusOverride:c}=e;const[u,p]=(0,g.useState)(!1),m=(0,XT.useDebouncedCallback)(e=>{i()},130,{trailing:!0});return(0,g.useEffect)(()=>()=>{m.isPending()&&m.flush()},[m]),(0,fe.jsx)(hCe,{readonly:d,model:n,expanded:t,onDismiss:a,survey:l,onValueChanged:m,statusOverride:c,header:r&&(0,fe.jsx)(TCe,{children:(0,fe.jsxs)(xCe,{onClick:()=>p(!u),children:[u?(0,fe.jsx)(bCe,{text:`You cannot edit this survey simultaneously. Editing will become available once ${o} exits the survey.`}):null,(0,fe.jsx)(f.Icons.Lock,{fontSize:"small"}),(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:"Locked"})]})}),children:s})},CCe=(0,f.styled)(f.Text)`
  color: ${e=>e.color};
  white-space: nowrap;
`,kCe=e=>{let{deadlineDate:n,color:t}=e;return(0,fe.jsxs)(CCe,{color:t,typescale:"body",size:"medium",children:["Due ",Sn(n,"LL")]})},SCe=S.J1`
  mutation SetSurveyContributorTag($surveyId: ID!, $accountId: ID!, $userId: ID, $tagId: ID) {
    setSurveyContributorTag(surveyId: $surveyId, accountId: $accountId, userId: $userId, tagId: $tagId)
  }
`;function NCe(e){return{value:e.id,label:e.tagName}}const ACe=e=>{let{accountId:n,value:t,onChange:a,error:i,name:l="tagId",loading:r,label:o="Tag",placeholder:s,disabled:d,emptyOptionLabel:c}=e;const{data:u,loading:p,error:m}=(0,x.IT)(_w,{variables:{accountId:n},fetchPolicy:"network-only"}),y=(0,g.useMemo)(()=>u?.getTagsByAccountId||[],[u?.getTagsByAccountId]),h=(0,g.useMemo)(()=>{const e=(0,hn.sortBy)(y.map(NCe),e=>e?.label.trim().toLowerCase());return c&&e.unshift({value:"",label:c}),e},[y,c]),T=m?.message||i||"";return(0,fe.jsx)(f.Select,{name:l,label:o,isLoading:p||r,disabled:p||r||d,onChange:a,placeholder:s,value:t,error:Boolean(T),helperText:T,options:h})},RCe=(0,f.styled)("div")`
  padding: 12px 0px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
`,DCe=(0,f.styled)(f.Text)`
  padding-top: 30px;
  margin-right: 16px;
`,LCe=(0,f.styled)("div")`
  width: 300px;
`,ICe=e=>{let{contributor:n,surveyId:t}=e;const a=Je(),{showNotification:i}=tn(),[l,r]=(0,g.useState)(n.tagId||""),[o,{loading:s}]=(0,ln.n)(SCe,{onCompleted:e=>{i("Tag assigned successfully","success"),r(e.setSurveyContributorTag)},onError:e=>{i(`Error at updating tag (${e.message})`,"danger")},refetchQueries:["getSurveyLatest","GetSurveyById"]});return(0,fe.jsxs)(RCe,{children:[(0,fe.jsx)(DCe,{children:n.account.name}),(0,fe.jsx)(LCe,{children:(0,fe.jsx)(ACe,{disabled:s,accountId:a,value:l,label:l?"Tag":"No tag assigned",onChange:e=>o({variables:{surveyId:t,accountId:n.account.id,tagId:e.value}}),emptyOptionLabel:"(No tag)"})})]})},jCe=(0,f.styled)("ul")`
  width: 180px;
  top: 48px;
  position: absolute;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  z-index: 10;
  border-radius: 8px;
  box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[1]}};
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};

  li:hover {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.inverseOnSurface}};
  }
`,wCe=(0,f.styled)("div")`
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  padding-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
`,OCe=(0,f.styled)(f.Icons.MoreVert)`
  cursor: pointer;
  height: 100%;
  width: 100%;
`,ECe=(0,f.styled)(f.Text)`
  cursor: pointer;
  padding: 8px;
  width: 100%;
  text-align: center;
`.withComponent("li"),_Ce=e=>{let{survey:n,withContributorTagging:t,withShowAnalysis:a,withExportToXLSX:i=!0,surveyLoader:l}=e;const r=or(),o=(0,m.Zp)(),s=Je(),[d]=ym(s),[c,u]=(0,g.useState)(!1),[y,h]=(0,g.useState)(!1),[x,T]=(0,g.useState)(!1),[b,v]=(0,p.useSearchParams)(),{dashboardInstance:C,...k}=Qre(),S=(0,g.useMemo)(()=>"Survey"===n.__typename?"survey":"response",[n]),N=(0,g.useCallback)(()=>{b.has(Zre)&&(b.delete(Zre),v(b))},[b,v]);(0,g.useEffect)(()=>()=>{N()},[]);const A=(0,g.useCallback)(()=>{u(!c)},[c]),R=(0,g.useMemo)(()=>{const{pathname:e}=window.location,t=e.includes(r.surveys.sent.contributor.replace("/:contributorId","")),a=e.includes(r.surveys.sent.surveys),i=e.includes(r.surveys.sent.overview),l=e.includes(r.surveys.sent.survey.replace(":surveyId",n.id)),o=e.includes(r.surveys.received.surveys),s=e.includes(r.surveys.received.survey.replace(":surveyId",n.id)),d=e.includes("submission");return l?"./survey-log":(t||a)&&"survey"===S?`./${n.id}/survey-log`:i||"survey"===S?`../sent/surveys/${n.id}/survey-log`:d?`./sent/contributors/${n?.submission?.owner?.id}/response-log/${n.id}`:o&&!s?`./${n.id}/response-log`:s?`./received/${n.id}/response-log`:`./response-log/${n.id}`},[S,n,r.surveys]),D=(0,g.useCallback)(e=>{e.stopPropagation(),o(R)},[o,R]),L=(0,g.useCallback)(async e=>{e.stopPropagation(),u(!1);const{data:t}=await d(),a=t?.getMySurveyContributors||[],i=["contributor",...n?.template?.questions?.map(e=>`${e.title} - (${e.name})`)||[]],l=n.submissions?.map(e=>{const t=a.find(t=>n.isIndividualContributor?t.account.id===e.owner.id&&t.user?.id===e.userId:n.isUserGroupContributor?t.account.id===e.owner.id&&t.userGroup?.id===e.userGroupId:t.account.id===e.owner.id),i=Pd()(n.template.questions,"id");let l="";return l=n.isIndividualContributor?`${t?.user?.first_name} ${t?.user?.last_name}`:n.isUserGroupContributor?t?.userGroup?.name||"":t?.account?.name||"",e.answers.reduce((e,n)=>{const t=i[n.questionId];return t?{...e,[`${t.title} - (${t.name})`]:JSON.parse(n.answer)}:e},{contributor:l})});ia(i,`${n.name} Results`,l,um)},[d,n]),I=(0,g.useMemo)(()=>{const e=[{text:`View ${S} log`,onClick:D}];return cm(n)&&i&&e.push({text:"Export to XLSX",onClick:L}),"Survey"===n.__typename&&t&&!n.isUserGroupContributor&&e.push({text:"Tag contributors",onClick:()=>{u(!1),h(!0)}}),"Survey"===n.__typename&&n.dashboardId&&a&&e.push({text:"Show analysis",onClick:()=>{u(!1),T(!0),v({[Zre]:n.dashboardId}),C?.setParameters([{Name:"Survey",Values:[n.id]}])}}),e},[S,i,D,n,L,t,a,v,C]),j=(0,g.useMemo)(()=>I.map(e=>(0,fe.jsx)(ECe,{typescale:"body",size:"medium",onClick:e.onClick,children:e.text},e.text)),[I]),w=(0,g.useMemo)(()=>"Survey"===n.__typename&&n.contributors?.length?n.contributors.map(e=>(0,fe.jsx)(ICe,{contributor:e,surveyId:n.id},e.account.name)):(0,fe.jsx)(f.Text,{children:"No contributors"}),[n]),O=b.has(Zre)&&x&&!k.isLoadingForTheFirstTime&&!k.isLoading&&!k.loadingError,E=(0,g.useMemo)(()=>(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(coe,{shouldHideResetButton:!0,withCrossCloseIcon:!0,closeAction:()=>{T(()=>!1),N()}}),(0,fe.jsxs)(loe,{children:[(0,fe.jsx)(wCe,{children:(0,fe.jsx)(f.Loader,{})}),O&&(0,fe.jsx)(eoe,{isFullScreen:!0})]})]}),[N,O]);return(0,fe.jsxs)(fe.Fragment,{children:[y&&(0,fe.jsx)(f.Modal,{open:!0,onClose:()=>{h(!1),l?.load()},title:"Tag contributors",children:w}),(0,fe.jsx)(f.Dialog,{open:x,fullScreen:!0,children:E}),(0,fe.jsx)(OCe,{fontSize:"small",onClick:A}),c&&(0,fe.jsx)(jCe,{children:j})]})},FCe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: center;
`,PCe=(0,f.styled)(f.Text)`
  color: ${e=>e.color};
`.withComponent("span"),BCe=(0,f.styled)("div")`
  height: 40px;
  width: 25px;
`,UCe=e=>{let{deadlineDate:n,survey:t,withContributorTagging:a,withShowAnalysis:i,surveyLoader:l}=e;const r=(0,f.useTheme)(),{color:o,isOverDue:s}=((e,n)=>{const t=bn()(e).isBefore(bn()()),a=(e=>{if(!e)return!1;const n=bn()(),t=bn()().add(5,"days"),a=bn()(e);return a.isSameOrAfter(n)&&a.isBefore(t)})(e),i=(e=>{if(!e)return!1;const n=bn()().add(5,"days");return bn()(e).isAfter(n)})(e);let l,r;switch(!0){case a:l=n.sys.color.error,r=!1;break;case t:l=n.sys.color.onSurface,r=!0;break;case i:l=n.sys.color.onSurface,r=!1;break;default:l=n.sys.color.primary,r=!1}return{color:l,isOverDue:r}})(n,r);return(0,fe.jsxs)(FCe,{children:[n&&(0,fe.jsx)(PCe,{typescale:"body",size:"medium",color:o,children:s?"Closed":"Open"}),n&&(0,fe.jsxs)(PCe,{typescale:"body",size:"medium",color:o,children:[" • "," "]}),n&&(0,fe.jsx)(kCe,{color:o,deadlineDate:n}),(0,fe.jsx)(BCe,{children:t&&(0,fe.jsx)(_Ce,{survey:t,withContributorTagging:a,withShowAnalysis:i,surveyLoader:l})})]})},$Ce=e=>{let{model:n,expanded:t,onDismiss:a,survey:i,sendFeedback:l}=e;return(0,fe.jsx)(hCe,{readonly:!0,model:n,expanded:t,onDismiss:a,survey:i,sendFeedback:l})},MCe={expanded:!1,setExpanded:e=>{}},VCe=(0,g.createContext)(MCe),GCe=e=>{let{children:n}=e;const[t,a]=(0,g.useState)(!1);return(0,fe.jsx)(VCe.Provider,{value:{expanded:t,setExpanded:a},children:n})},zCe=()=>(0,g.useContext)(VCe),WCe=e=>{const n=(0,m.Zp)(),{showNotification:t}=tn(),{expanded:a,setExpanded:i}=zCe(),[l,r]=(0,g.useState)(!1),[o,s]=(0,g.useState)(e.submission?.status),[d]=(0,p.useSearchParams)(),c=Boolean(d.get("contributorId")),u=Je(),f=e.submission,{uploadedDocuments:y,uploadedDocumentsIds:h}=fve(e.submission),x=Yo(),{createSurveyAuditEvent:T}=bve(),{id:b,first_name:v,last_name:C}=e?.lockedBy||{},k=x?.id!==b&&!!b,S=v+" "+C,N=(0,g.useRef)(null),A=(0,g.useRef)(null),R=(0,g.useMemo)(()=>{const n=new nm.SurveyModel(e.template.formContent);n.showCompletedPage=!1,n.showNavigationButtons=!1,n.showPreviewBeforeComplete="showAnsweredQuestions",n.onFocusInQuestion.add((e,n)=>{let{question:t}=n;A.current=t}),e.submission&&(n.data=pve(e.submission.answers,y,e.template),!f||f.status!==gn.ZU.Approved&&f.status!==gn.ZU.ReadyForReview||(n.mode="display"));const t=N.current;return t&&(N.current=n),n.currentPageNo=t?.currentPageNo||0,N.current=n,n},[e.submission,y,f,e.template]),{submitData:D,loading:L}=yve({surveyId:e.id,accountId:u,model:R,uploadedDocumentsIds:h,version:f?.version||1,saveWithoutDebounce:!0}),I=(0,g.useCallback)(async()=>D(gn.Tc.ReadyForReview,()=>{t("Survey submitted successfully","success"),n(c?"/v2/surveys/sent/overview":"../received")},e=>{t(`Error submitting survey: ${e.message}`,"danger")}),[t,n,D,c]),j=(0,g.useCallback)(()=>{D(gn.Tc.InProgress,()=>{const e=A.current?.page?.visibleIndex===R.currentPageNo;["text","comment"].includes(A.current?.getType()||"")&&e&&A.current?.focus?.(),s(gn.ZU.InProgress)},n=>{n.message.includes("The survey is being edited currently by user with ID")?t(`Error saving survey: the survey is being edited currently by ${e?.lockedBy?.first_name} ${e?.lockedBy?.last_name}.`,"danger"):t(`Error saving survey: ${n.message}`,"danger")})},[t,D,e?.lockedBy,R.currentPageNo]),w=(0,g.useCallback)(async(e,n,t)=>T(e,n,u,t),[T,u]);(0,g.useEffect)(()=>(R.onComplete.clear(),R.onComplete.add(I),w("opened",e,x?.id),()=>{w("closed",e,x?.id)}),[R,I,e,x,w]);const O=R.pageCount>1,E=(0,g.useCallback)(async()=>{r(!0);try{if(O){if(!R.validate())return void t("Please check fields validation on all pages","danger");await R.completeLastPage()}else await R.completeLastPage();t("Survey submitted successfully","success"),n(c?"/v2/surveys/sent/overview":"../received")}catch(e){e instanceof Error&&t(`Error submitting survey: ${e.message}`,"danger")}finally{r(!1)}},[R,t,O,n,c]);return{loading:L,surveyModel:R,isLocked:k,editingUser:S,saveSurvey:j,newSubscriptionUpdate:!1,handleSubmit:E,expanded:a,submitButtonDisabled:l,surveyStatusOverride:o,expand:(0,g.useCallback)(()=>i(!0),[i]),collapse:(0,g.useCallback)(()=>i(!1),[i])}},qCe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  gap: 12px;
`,JCe=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.extendedColors.environmental.darkColor}};
`,YCe=()=>{const e=(0,f.useTheme)();return(0,fe.jsxs)(qCe,{children:[(0,fe.jsx)(f.Icons.CheckCircleOutline,{fontSize:"small",sx:{color:e.extendedColors.environmental.darkColor}}),(0,fe.jsx)(JCe,{typescale:"body",size:"medium",children:"Auto-save is on"})]})},HCe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  gap: 16px;
`,KCe=(0,f.styled)("div")`
  position: relative;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  background: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
  box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[0]}};

  &:hover {
    box-shadow: ${e=>e.theme.sys.elevation[1]};
  }
`,QCe=e=>{let{survey:n}=e;const{expand:t}=WCe(n);return(0,fe.jsxs)(HCe,{children:[(0,fe.jsx)(YCe,{}),(0,fe.jsx)(Xve,{expand:t}),(0,fe.jsx)(KCe,{children:(0,fe.jsx)(UCe,{survey:n})})]})},ZCe=e=>{const n=e||"",{showNotification:t}=tn(),{data:a}=dn(zve,{variables:{id:n},skip:!n,keepErrorAfterUnmount:!0}),i=a?.getSurveySubmissionById,{uploadedDocuments:l}=fve(i,i?.survey.template),{expanded:r,setExpanded:o}=zCe(),[s]=qve(),d=(0,g.useCallback)(()=>o(!0),[o]),c=(0,g.useCallback)(()=>o(!1),[o]),u=(0,g.useCallback)((e,a)=>{const i=e===gn.iD.Approved;return s({variables:{status:e,feedback:a,submissionId:n},onCompleted:()=>{i?t("Response approved successfully","success"):t("Change requests sent successfully","warning")},onError:e=>{t(`We couldn't send feedback. Please try again later or contact support@rio.ai: ${e}`,"danger")}})},[n,s,t]),p=(0,g.useMemo)(()=>{if(!i)return null;const e=new nm.Model(i.survey.template.formContent);return e.showPreviewBeforeComplete="showAnsweredQuestions",i.answers&&(e.data=pve(i.answers,l,i.survey.template),e.mode="display"),e},[i,l]),m=i?.survey;return{survey:m,expand:d,expanded:r,collapse:c,formModel:p,submission:i,sendFeedback:u}},XCe=()=>{const{submissionId:e}=(0,m.g)(),{submission:n,expanded:t,collapse:a,sendFeedback:i,formModel:l,survey:r}=ZCe(e||"");return n?(0,fe.jsx)($Ce,{model:l,expanded:t,onDismiss:a,survey:{...r,submission:n},sendFeedback:i}):(0,fe.jsx)(wc,{error:"Not found"})},eke=le.default.div`
  padding: ${e=>e.theme.geometry.xxs.spacing};
`,nke=(0,le.default)(ie.hh.TextColumn)`
  text-align: center;
`;function tke(e){let{onDismiss:n,title:t,submitButtonText:a,description:i,onSecondaryButtonClick:l,secondaryButtonText:r}=e;return(0,fe.jsx)(eke,{children:(0,fe.jsxs)(ie.hh,{children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:t}),(0,fe.jsx)(nke,{children:i}),(0,fe.jsxs)(ie.hh.Row,{container:!0,align:"between",children:[(0,fe.jsx)(ie.hh.ButtonColumn,{name:"LockedEditing__Submit",span:6,onClick:n,children:a}),(0,fe.jsx)(ie.hh.ButtonColumn,{name:"UnlockEditing__Submit",color:"primary",span:6,onClick:l,children:r})]})]})})}const ake=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,ike=le.default.div`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  padding: 30px 20px;
`,lke=(0,le.default)(ie.$n)`
  margin-left: 20px;
  width: 200px;
`,rke=e=>e&&(e.status===gn.ZU.Approved||e.status===gn.ZU.ReadyForReview),oke=(0,g.memo)(function(e){let{survey:n}=e;const t=(0,m.Zp)(),{showNotification:a}=tn(),[i,l]=(0,g.useState)(!1),r=Je(),o=n.submission,{uploadedDocuments:s,uploadedDocumentsIds:d}=fve(n.submission),c=Yo(),{createSurveyAuditEvent:u}=bve(),p=(0,g.useRef)(null);((e,n)=>{const t=(0,C.m)(),{data:a}=(0,Ll.R)(kd,{variables:{accountId:n,surveyId:e}});(0,g.useEffect)(()=>{if(a?.setSurveySubmissionUpdated){const i=a.setSurveySubmissionUpdated;t.cache.updateQuery({query:Dd,variables:{accountId:n,surveyId:e}},n=>{const t=n?.getReceivedSurveysPage.rows||[],a=t.findIndex(n=>n.id===e);return-1===a?n:{getReceivedSurveysPage:{rows:[...t.slice(0,a),{...t[a],submission:i},...t.slice(a+1)],totalRows:t.length+1}}})}},[t.cache,a,e,n])})(n.id,r);const{id:f,first_name:y,last_name:h}=n?.lockedBy||{},x=c?.id!==f&&!!f,T=y+" "+h,[b,v]=(0,g.useState)(x),k=(0,g.useCallback)(()=>v(e=>!e),[]),S=(0,g.useRef)(null),N=(0,g.useMemo)(()=>{const e=new nm.SurveyModel(n.template.formContent);e.goNextPageAutomatic=!1,e.showCompletedPage=!1,e.showNavigationButtons=!1,e.showPreviewBeforeComplete="showAnsweredQuestions",n.submission&&(e.data=pve(n.submission.answers,s,n.template),rke(n.submission)&&(e.mode="display"));const t=S.current;return t&&(S.current=e),e.currentPageNo=t?.currentPageNo||0,S.current=e,e},[n.submission,s,n.template]),{submitData:A,loading:R}=yve({surveyId:n.id,accountId:r,model:N,uploadedDocumentsIds:d,version:o?.version||1}),[D,L]=(0,g.useState)(!1),I=(0,g.useCallback)(()=>L(!0),[]),j=(0,g.useCallback)(()=>L(!1),[]),w=(0,g.useCallback)(async()=>A(gn.Tc.ReadyForReview,()=>{a("Survey submitted successfully","success"),t("../received")},e=>{e.message.startsWith("The survey is being edited currently by user with ID")?a(`Error submitting survey: the survey is being edited currently by ${n?.lockedBy?.first_name} ${n?.lockedBy?.last_name}.`,"danger"):a(`Error submitting survey: ${e.message}`,"danger")}),[a,t,A,n?.lockedBy]),O=(0,g.useCallback)(()=>{A(gn.Tc.InProgress,()=>{l(!0),p.current=setTimeout(()=>{l(!1)},3e3)},e=>{e.message.startsWith("The survey is being edited currently by user with ID")?a(`Error saving survey: the survey is being edited currently by ${n?.lockedBy?.first_name} ${n?.lockedBy?.last_name}.`,"danger"):a(`Error saving survey: ${e.message}`,"danger")})},[a,A,n?.lockedBy]),E=(0,g.useCallback)(async(e,n,t)=>u(e,n,r,t),[u,r]);(0,g.useEffect)(()=>(N.onComplete.clear(),N.onComplete.add(w),E("opened",n,c?.id),()=>{E("closed",n,c?.id)}),[N,w,n,c,E]);const _=N.pageCount>1,F=(0,g.useCallback)(()=>{_?N.validate()?N.completeLastPage():a("Please check fields validation on all pages","danger"):N.completeLastPage()},[N,a,_]),P=(0,g.useMemo)(()=>[{to:"../received",title:"Surveys received"},{title:n.name}],[n]),{unlockContributor:B}=((e,n)=>{const[t]=(0,ln.n)(Nd),[a,i]=(0,g.useState)(null),{refetch:l}=Id({accountId:e});return(0,g.useEffect)(()=>{(async()=>{a?.unlockContributor&&(await l(),n&&n())})()},[l,a?.unlockContributor,n]),{unlockContributor:async n=>{if(!n)return;const{data:a}=await t({variables:{accountId:e,campaignId:n}});i(a??null)}}})(r,k);return(0,fe.jsxs)(ake,{children:[b&&(0,fe.jsx)(ie.aF,{span:5,size:"xs",height:"auto",maxHeight:"60vh",onDismiss:k,dismissable:!0,enableEscapeKey:!0,show:!0,children:(0,fe.jsx)(tke,{title:`Sorry! It seems that ${T} is currently making edits to this survey.`,description:`You won't be able to make changes until ${T} has completed their edits and exited the survey.`,onDismiss:k,onSecondaryButtonClick:()=>B(n.id),secondaryButtonText:"Unlock",submitButtonText:"OK",buttonDescription:"This will send your survey to your recipients"})}),(0,fe.jsx)(gu,{icon:["rio","clipboard-check-custom"],iconColor:"quaternary",title:n.name,breadcrumb:P,children:(0,fe.jsx)(Bm,{onClick:I})}),(0,fe.jsx)(Pf,{model:N,onDismiss:j,expanded:D,survey:n,isLocked:x,editingUser:T,saveSurvey:O,newSubscriptionUpdate:i,children:(0,fe.jsx)(ike,{children:(0,fe.jsx)(lke,{onClick:F,loading:R,color:"success",disabled:rke(n.submission)||x,children:"Submit for review"})})})]})}),ske=(0,g.memo)(function(){const{surveyId:e}=(0,m.g)(),n=Je(),t=Yo(),a=dn(vd,{variables:{id:e,accountId:n,userId:t?.id||""},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:!0}),i=(0,g.useCallback)(e=>{let{getReceivedSurveyById:n}=e;return n?(0,fe.jsx)(oke,{survey:n}):(0,fe.jsx)(wc,{})},[]);return(0,fe.jsx)(Mc,{result:a,data:i})});function dke(e){switch(!0){case e>1920:return 25;case e>1600&&e<=1920:return 20;case e>1366&&e<=1600:return 15;default:return 10}}function cke(e){let{accountId:n,field:t}=e;return(0,x.IT)(Ld,{fetchPolicy:"network-only",variables:{accountId:n,field:t}})}const uke=(0,le.default)(ie.KF)`
  width: 60%;
`;function pke(e){let{accountId:n,status:t,setStatus:a}=e;const{data:i,error:l}=cke({accountId:n,field:"submissionStatus"});return(0,fe.jsx)(uke,{id:"StatusFilter__MultiSelect",name:"received-surveys-select-checkbox",options:i?.getReceivedSurveysPageFilter||[],onChange:e=>a(e.target.select),error:l,value:t,placeholder:"Start typing to search for a survey submission status",multiValueColor:"tertiary",size:"sm",box:!0})}const mke=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,fke=(0,le.default)(ie.vj)`
  width: 95%;
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,yke=[{title:"Surveys received"}];function gke(e){const n=[];return e.length&&n.push({field:"submissionStatus",filterType:gn.pe.Text,values:e.map(e=>e.value)}),n}function hke(){const[e,n]=(0,g.useState)(""),[t,a]=(0,g.useState)([]),[i,l]=(0,g.useState)(1),[r,o]=(0,g.useState)(1),s=dke(window.innerWidth),d=Je(),c=Id({accountId:d,filters:{search:{field:["name"],value:e},set:gke(t)},offset:(i-1)*s,limit:s}),u=(0,m.Zp)(),p=(0,g.useCallback)(e=>u(`./${e}`),[u]),f=(0,g.useCallback)(e=>{let{getReceivedSurveysPage:n}=e;return(0,fe.jsx)(Nm,{surveys:n,onSurveyClick:p})},[p]),y=(0,g.useCallback)((e,n)=>{let{refetch:t}=n;return(0,fe.jsx)($c,{error:e,retry:()=>t({accountId:d})})},[d]),h=(0,g.useCallback)(()=>(0,fe.jsx)(Rc,{name:"ReceivedSurveysContainer__Loading"}),[]);return(0,g.useEffect)(()=>{c?.data?.getReceivedSurveysPage?.totalRows&&o(Math.ceil(c.data.getReceivedSurveysPage.totalRows/s))},[s,c]),(0,fe.jsxs)(mke,{children:[(0,fe.jsxs)(gu,{name:"FormsContributors",icon:["rio","clipboard-check-custom"],iconColor:"quaternary",title:"Surveys received",breadcrumb:yke,children:[(0,fe.jsx)(fke,{name:"ConfigurationAccountsContainer__Controls__Search",value:e,onChange:e=>n(e.target.value),size:"sm",hideButton:!0}),(0,fe.jsx)(pke,{accountId:d,status:t,setStatus:a}),r>1&&(0,fe.jsx)(Hb,{id:"received-survey-container-pagination",name:"received-survey-container-pagination",currentPage:i,itemsCountPerPage:s,totalPagesCount:r,onChange:l,size:"sm"})]}),(0,fe.jsx)(Mc,{result:c,data:f,error:y,loading:h})]})}const xke=t.p+"feedback-c1599db7ee35ace9882c.svg",Tke=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,bke=(le.default.h2`
  margin: 10px 0;
  font-size: 2em;
  color: #333;
`,le.default.h3`
  margin: 20px 0;
  font-size: 1.2em;
  color: #555;
`),vke=(0,le.default)(bke)`
  flex: 0 0 50%;
`,Cke=(le.default.h4`
  font-size: 0.93em;
  color: #666;
`,(0,le.default)("div")`
  display: flex;
  flex-flow: wrap;
  width: 100%;
  font-family: ${e=>e.v2&&"Plus Jakarta Sans !important"};
`),kke=(0,le.default)(Cke)`
  display: flex;
  flex-flow: nowrap;
`,Ske=le.default.div`
  ${e=>{let{theme:n}=e;return`\n    padding: ${n.geometry.xs.spacing} ${n.geometry.md.spacing};\n    flex: 1;\n    border: 1px solid #E8E9EC;\n    overflow-x: hidden;\n  `}};
`,Nke=(0,le.default)(Ske)`
  flex: 0 1 50%;
`,Ake=(0,le.default)(Ske)`
  display: flex;
  flex: 0 1 50%;
  border-left: 0;
`,Rke=((0,le.default)(Ske)`
  display: flex;
  padding: 32px 20px 20px;
  border-top: 0;
`,(0,le.default)(bke)`
  margin: 0 auto;
  min-width: 210px;
`,le.default.div`
  width: 100%;
`),Dke=(0,le.default)("div")`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #c7c5d0;
  background: #fff;
  height: calc(100% - 70px);
`,Lke=(0,le.default)("img")`
  height: 152px;
  width: 152px;
`,Ike=(0,f.styled)(Tke)`
  display: contents;
`,jke=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,wke=()=>(0,fe.jsx)(Ike,{children:(0,fe.jsxs)(Dke,{children:[(0,fe.jsx)(Lke,{src:xke,alt:"Feedback"}),(0,fe.jsx)(f.Text,{typescale:"headline",size:"small",children:"You don't have any surveys yet"}),(0,fe.jsx)(jke,{typescale:"body",size:"large",children:"Surveys are a quick way to collect data and insights from your contributors"})]})});function Oke(e,n){switch(n.type){case"toggleNotifyByEmail":return{...e,notifyByEmail:!e.notifyByEmail};case"toggleSendToAllUsers":return{...e,contributors:void 0,individualContributors:void 0,userGroups:void 0,sendToAllUsers:!e.sendToAllUsers};case"selectUserGroups":return{...e,sendToAllUsers:!1,contributors:void 0,individualContributors:void 0,userGroups:n.ids.map(e=>e)};case"selectContributors":return{...e,sendToAllUsers:!1,individualContributors:void 0,userGroups:void 0,contributors:n.ids.map(e=>e)};case"selectIndividualContributors":return{...e,sendToAllUsers:!1,contributors:void 0,userGroups:void 0,individualContributors:n.ids.map(e=>e)};case"changeName":return{...e,name:n.value};case"toggleFeedbackEnabled":return{...e,feedbackEnabled:!e.feedbackEnabled};case"toggleAutomatedScoring":return{...e,automatedScoring:!e.automatedScoring};case"changeNote":return n.value.length>1e3?e:{...e,notes:n.value};case"changeStartDate":return{...e,startDate:n.value};case"changeDeadlineDate":return{...e,deadlineDate:n.value};case"changeSurveyTemplateId":return{...e,surveyTemplateId:n.value};case"changeDashboardId":return{...e,dashboardId:n.value||null}}}const Eke={id:"",name:"",owner:{id:""},automatedScoring:!1,feedbackEnabled:!0,template:{id:""},contributors:[],isUserGroupContributor:!1,isIndividualContributor:!1,dashboardId:null,notifyByEmail:!0,sendToAllUsers:!1};function _ke(e){return!e.isUserGroupContributor&&!e.isIndividualContributor}const Fke={automatedScoring:!1,feedbackEnabled:!0,name:"",notifyByEmail:!0,sendToAllUsers:!1,contributors:void 0,userGroups:void 0,individualContributors:void 0,surveyTemplateId:"",dashboardId:null},Pke=(0,g.createContext)(Fke),Bke=()=>{},Uke=(0,g.createContext)(Bke),$ke=e=>{let{children:n,survey:t}=e;const[a,i]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Eke;const n={automatedScoring:e.automatedScoring,feedbackEnabled:e.feedbackEnabled,name:e.name,notifyByEmail:e.notifyByEmail??!1,sendToAllUsers:e.sendToAllUsers??!1,surveyTemplateId:e.template.id,contributors:_ke(e)?e.contributors.map(e=>e.account.id):void 0,individualContributors:e.isIndividualContributor?e.contributors?.map(e=>e.user.id):void 0,userGroups:e.isUserGroupContributor?e.contributors.map(e=>e.userGroup.id):void 0,notes:e.notes,deadlineDate:e.deadlineDate?new Date(e.deadlineDate):null,startDate:e.startDate?new Date(e.startDate):null,dashboardId:e.dashboardId||null};return(0,g.useReducer)(Oke,n)}(t);return(0,fe.jsx)(Pke.Provider,{value:a,children:(0,fe.jsx)(Uke.Provider,{value:i,children:n})})};let Mke=function(e){return e.user="PER_USER",e.contributor="PER_CONTRIBUTOR",e.userGroup="PER_USER_GROUP",e}({});function Vke(){const e=(0,g.useContext)(Pke),n=(0,g.useContext)(Uke),t=(0,g.useMemo)(()=>e.contributors?Mke.contributor:e.userGroups?Mke.userGroup:Mke.user,[e]),a=(0,g.useCallback)(()=>{n({type:"toggleNotifyByEmail"})},[n]),i=(0,g.useCallback)(()=>{n({type:"toggleFeedbackEnabled"})},[n]),l=(0,g.useCallback)(()=>{n({type:"toggleAutomatedScoring"})},[n]),r=(0,g.useCallback)(()=>{n({type:"toggleSendToAllUsers"})},[n]),o=(0,g.useCallback)(e=>{n({type:"selectIndividualContributors",ids:e})},[n]),s=(0,g.useCallback)(e=>{n({type:"selectContributors",ids:e})},[n]),d=(0,g.useCallback)(e=>{n({type:"selectUserGroups",ids:e})},[n]),c=(0,g.useCallback)(e=>{n({type:"changeName",value:e})},[n]),u=(0,g.useCallback)(e=>{n({type:"changeNote",value:e})},[n]),p=(0,g.useCallback)(e=>{n({type:"changeStartDate",value:e})},[n]),m=(0,g.useCallback)(e=>{n({type:"changeDeadlineDate",value:e})},[n]),f=(0,g.useCallback)(e=>{n({type:"changeSurveyTemplateId",value:e})},[n]),y=(0,g.useCallback)(e=>{n({type:"changeDashboardId",value:e})},[n]),h=(0,g.useMemo)(()=>t===Mke.contributor?new Set(e.contributors):t===Mke.userGroup?new Set(e.userGroups):new Set(e.individualContributors),[e.individualContributors,e.contributors,e.userGroups,t]);return{state:e,surveyType:t,toggleNotifyByEmail:a,toggleSendToAllUsers:r,selectIndividualContributors:o,selectContributors:s,selectUserGroups:d,changeName:c,toggleFeedbackEnabled:i,toggleAutomatedScoring:l,changeNote:u,changeStartDate:p,changeDeadlineDate:m,changeSurveyTemplateId:f,changeDashboardId:y,selectedIds:h}}let Gke=function(e){return e.user="PER_USER",e.contributor="PER_CONTRIBUTOR",e.allUsers="ALL_USERS_IN_ACCOUNT",e.userGroup="PER_USER_GROUP",e}({});const zke=()=>{const e=Vke(),n=(0,g.useMemo)(()=>e.state.sendToAllUsers?Gke.allUsers:void 0!==e.state.contributors?Gke.contributor:void 0!==e.state.userGroups?Gke.userGroup:Gke.user,[e.state.sendToAllUsers,e.state.contributors,e.state.userGroups]),t=(0,g.useCallback)(()=>{e.selectContributors([]),e.selectIndividualContributors([]),e.selectUserGroups([]),e.state.sendToAllUsers||e.toggleSendToAllUsers()},[e]),a=(0,g.useCallback)(n=>{e.selectContributors(n)},[e]),i=(0,g.useCallback)(n=>{e.selectUserGroups(n)},[e]),l=(0,g.useCallback)(n=>{e.selectIndividualContributors(n)},[e]),r=(0,g.useMemo)(()=>n===Gke.contributor?new Set(e.state.contributors||[]):n===Gke.userGroup?new Set(e.state.userGroups||[]):new Set(e.state.individualContributors||[]),[e.state.individualContributors,e.state.contributors,e.state.userGroups,n]);return{...e,surveyType:n,selectedIds:r,selectContributors:a,selectIndividualContributors:l,selectAllUsersInAccount:t,selectUserGroups:i,changeName:e.changeName,toggleFeedbackEnabled:e.toggleFeedbackEnabled,toggleAutomatedScoring:e.toggleAutomatedScoring,changeNote:e.changeNote,changeStartDate:e.changeStartDate,changeDeadlineDate:e.changeDeadlineDate,changeSurveyTemplateId:e.changeSurveyTemplateId,changeDashboardId:e.changeDashboardId}},Wke=S.J1`
  query MyQuery($accountId: ID!) {
    getAccountInfo(id: $accountId) {
      id
      name
      children {
        id
        name
      }
    }
  }
`,qke=S.J1`
  query GET_USERS_FOR_ACCOUNTS($accountId: String!, $childrenIds: [String!]!) {
    getUsers(
      accountId: $accountId
      filters: { set: [{ field: "accountName", filterType: set, values: $childrenIds }] }
    ) {
      rows {
        id
        accountId
        firstName
        lastName
        email
      }
      totalRows
    }
  }
`;function Jke(e){const n=Je(),{data:t,loading:a,error:i}=(0,x.IT)(oq,{variables:{accountId:n,limit:1e3,offset:0}}),{data:l,loading:r,error:o}=(0,x.IT)(Wke,{variables:{accountId:n}}),{data:s,loading:d,error:c}=(0,x.IT)(qke,{variables:{accountId:n,childrenIds:[n].concat(l?.getAccountInfo.children.map(e=>e.id)??[])}});if(r||d||a)return{loading:!0,rows:[]};if(o||c||i)return{loading:!1,rows:[],error:o||c||i};const{rows:u}=s.getUsers;return l&&s&&t?{loading:!1,rows:[{orgHierarchy:[l.getAccountInfo.id],...l.getAccountInfo}].concat(u.filter(e=>e.accountId===n).map(e=>({orgHierarchy:[l.getAccountInfo.id,e.id],...e}))).concat(l.getAccountInfo.children.map(e=>({orgHierarchy:[l.getAccountInfo.id,e.id],...e}))).concat(...l.getAccountInfo.children.map(e=>u.filter(n=>n.accountId===e.id).map(n=>({orgHierarchy:[l.getAccountInfo.id,e.id,n.id],...n}))).flat()).concat(t.getUserGroupsPage.rows.map(e=>({orgHierarchy:[e.id],...e}))).filter(n=>e===Mke.contributor?"Account"===n.__typename:e===Mke.userGroup?"UserGroup"===n.__typename:e!==Mke.user||"MysqlUser"===n.__typename||"Account"===n.__typename)}:{loading:!1,rows:[]}}const Yke=(0,f.styled)(f.AgGrid)`
  flex: 1;
  height: 400px;

  .ag-header {
    display: none;
  }

  .ag-sticky-top {
    top: 0 !important;
  }
`;var Hke=function(e){return e.single="single",e.multiple="multiple",e}(Hke||{});const Kke=[],Qke=(0,g.memo)(e=>{let{surveyType:n,selectContributors:t,selectIndividualContributors:a,selectedIds:i,selectUserGroups:l}=e;const r=Je(),{rows:o,loading:s}=Jke(n),d=n===Mke.user,c=(0,g.useMemo)(()=>o.slice().sort(Yn(d?"firstName":"name")),[d,o]),u=(0,g.useMemo)(()=>({key:n,onGridReady:e=>{e.api.forEachNode(e=>{e.id&&i.has(e.id)&&e.setSelected(!0)})},onSelectionChanged:e=>{const i=e.api.getSelectedRows();if(n===Mke.contributor){const e=i.filter(e=>"Account"===e.__typename&&e.id!==r).map(e=>e.id);return t(e)}if(n===Mke.userGroup){const e=i.filter(e=>"UserGroup"===e.__typename).map(e=>e.id);return l(e)}const o=i.filter(e=>"MysqlUser"===e.__typename).map(e=>e.id);return a(o)},treeData:!0,rowSelection:Hke.multiple,columnDefs:Kke,rowData:c,getDataPath:e=>e.orgHierarchy,groupSelectsChildren:!0,suppressRowClickSelection:!0,groupDefaultExpanded:1,loadingOverlayComponent:f.LinearProgress,getRowId:e=>e.data.id,autoGroupColumnDef:{headerName:"Name",flex:1,valueGetter:e=>{if(e.data)switch(e.data.__typename){case"UserGroup":case"Account":return e.data.name;case"MysqlUser":return`${e.data.firstName} ${e.data.lastName} <${e.data.email}>`}},cellRendererParams:{checkbox:!0,suppressCount:!0}}}),[r,c,t,a,l,i,n]);return s?(0,fe.jsx)(f.LinearProgress,{}):(0,fe.jsx)(Yke,{gridKey:"recipientsGrid",gridOptions:u},r)},(e,n)=>{return e.surveyType===n.surveyType&&(t=e.selectedIds,a=n.selectedIds,!(t.size!==a.size||![...t].every(e=>a.has(e))));var t,a});function Zke(e){let{isUpdatingSurvey:n}=e;const{surveyType:t,selectContributors:a,selectIndividualContributors:i,selectAllUsersInAccount:l,selectedIds:r,selectUserGroups:o}=zke(),s=zo(),d=s?.accessControls.organisation,c=t===Gke.allUsers,u=t===Gke.userGroup,p=t===Gke.contributor,m=t===Gke.user,y=s?.name||"your account",h=(0,g.useMemo)(()=>t===Gke.user?Mke.user:t===Gke.contributor?Mke.contributor:t===Gke.userGroup?Mke.userGroup:Mke.user,[t]);return(0,fe.jsxs)("div",{children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"large",style:{marginBottom:"16px"},children:"Recipients"}),(0,fe.jsxs)(dT.A,{"aria-label":"position",row:!0,children:[(0,fe.jsx)(cT.A,{control:(0,fe.jsx)(f.RadioButton,{name:"contributorsType",checked:m,value:Gke.user,onChange:()=>i([]),disabled:n}),label:(0,fe.jsx)(f.Text,{size:"medium",color:"normal",children:"One survey per user"}),labelPlacement:"end"}),(0,fe.jsx)(cT.A,{control:(0,fe.jsx)(f.RadioButton,{name:"contributorsType",checked:p,value:Gke.contributor,onChange:()=>a([]),disabled:n}),label:(0,fe.jsx)(f.Text,{size:"medium",color:"normal",children:"One survey per account"}),labelPlacement:"end"}),(0,fe.jsx)(cT.A,{control:(0,fe.jsx)(f.RadioButton,{name:"contributorsType",checked:c,value:Gke.allUsers,onChange:()=>l(),disabled:n}),label:(0,fe.jsxs)(f.Text,{size:"medium",color:"normal",children:["Send to all users in ",y," (including all future users)"]}),labelPlacement:"end"}),d&&(0,fe.jsx)(cT.A,{control:(0,fe.jsx)(f.RadioButton,{name:"contributorsType",checked:u,value:Gke.userGroup,onChange:()=>o([]),disabled:n}),label:(0,fe.jsx)(f.Text,{size:"medium",color:"normal",children:"One survey per user group"}),labelPlacement:"end"})]}),!c&&(0,fe.jsx)(Qke,{surveyType:h,selectContributors:a,selectUserGroups:o,selectIndividualContributors:i,selectedIds:r}),c&&(0,fe.jsx)("div",{style:{padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px",marginTop:"8px"},children:(0,fe.jsxs)(f.Text,{children:["This survey will be sent to all users in ",y,". It will also be sent to new users upon their sign-up."]})})]})}const Xke=e=>({value:e.id,label:e.name}),eSe=e=>{let{accountId:n,value:t,onChange:a,error:i}=e;const{data:l}=(0,x.IT)(Rm(),{variables:{accountId:n}}),r=(l?.getSurveyTemplatesByAccountId??[]).map(Xke),o=r?.find(e=>e.value===t);return(0,fe.jsx)(f.Select,{id:"AddSurvey__Select",name:"SurveyTemplateSelect",placeholder:"Please select a form",defaultValue:o,value:t,onChange:e=>a(e.value),label:"Form",error:!!i,options:r,helperText:"Your survey recipients will be asked to fill in these form"})},nSe=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 32px;

  @media (max-width: 460px) {
    flex-direction: column;
  }
`,tSe=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  padding: 0;
  padding-left: 30px;
`,aSe=(0,f.styled)("div")`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,iSe=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.error}};
`;function lSe(e){let{errors:n,accountId:t,disabled:a,isUpdatingSurvey:i}=e;const{state:l,changeName:r,toggleFeedbackEnabled:o,toggleAutomatedScoring:s,changeNote:d,changeStartDate:c,changeDeadlineDate:u,changeSurveyTemplateId:p,changeDashboardId:m}=zke();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.TextField,{id:"AddSurveyForm__Input_Name",label:"Survey name",name:"name",placeholder:"e.g. ESG Assessment 2022",helperText:"This will be presented to recipients",onChange:e=>r(e.target.value),onClear:()=>r(""),value:l.name,defaultValue:l.name,error:!!n.name,disabled:a}),(0,fe.jsx)(eSe,{value:l.surveyTemplateId,accountId:t,error:n.surveyTemplateId||void 0,onChange:e=>p(e)}),(0,fe.jsx)(Zke,{isUpdatingSurvey:i}),n?.contributors&&(0,fe.jsx)(iSe,{children:n.contributors}),(0,fe.jsxs)(aSe,{children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"large",children:"Feedback"}),(0,fe.jsx)(f.Checkbox,{id:"AddSurveyForm_Checkbox_Feedback",onChange:o,checked:l.feedbackEnabled,label:"Approve responses"}),(0,fe.jsx)(tSe,{typescale:"body",size:"medium",children:"If selected, you will have to approve or request changes for each response in Rio"})]}),(0,fe.jsxs)(aSe,{children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"large",children:"Automated Scoring"}),(0,fe.jsx)(f.Checkbox,{id:"AddSurveyForm_Checkbox_AutomatedScoring",onChange:s,checked:l.automatedScoring,label:"Score contributions"}),(0,fe.jsx)(tSe,{typescale:"body",size:"medium",children:"If selected, you and your recipients will automatically receive performance feedback against Rio sustainability metrics"})]}),(0,fe.jsxs)(nSe,{children:[(0,fe.jsx)(f.DatePicker,{onChange:e=>c(new Date(e)),name:"startDate",label:"Start date",value:l?.startDate,error:n.startDate}),(0,fe.jsx)(f.DatePicker,{onChange:e=>u(new Date(e)),name:"deadlineDate",label:"Deadline for responses",value:l?.deadlineDate,error:n.deadlineDate})]}),(0,fe.jsx)(DT,{label:"Dashboard",area:gn.oo.Survey,value:l.dashboardId||"",optionMapper:RT,emptyOptionLabel:"(No dashboard)",accountId:t,onChange:e=>m(e.value)}),(0,fe.jsx)(f.TextArea,{id:"AddSurveyForm__Input_Notes",name:"notes",onChange:e=>d(e.target.value),value:l.notes||"",error:!!n.notes,disabled:a,rows:4,label:"Notes for recipients (optional)",helperText:"These notes will appear in the email sent to your recipients"})]})}const rSe=(0,f.styled)("div")`
  gap: 32px;
  display: flex;
  flex-direction: column;
`,oSe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 12px;
`,sSe=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,dSe=(0,f.styled)(f.Button)`
  max-width: 144px;
  width: 100%;
`;function cSe(e){let{onDismiss:n,buttonDescription:t,submitButtonText:a,onComplete:i}=e;const l=Je(),{state:r}=zke(),[o,s]=(0,g.useState)({}),[d,{loading:c}]=Kbe(),u=(0,g.useCallback)(async e=>{e.preventDefault(),s({});const[t,a]=function(e){const n={};e.name||(n.name="Please provide a name"),e.surveyTemplateId||(n.surveyTemplateId="Please select a survey"),e.startDate||(n.startDate="Please select a start date");const t=e.contributors||e.individualContributors||e.userGroups||[];return e.sendToAllUsers||0!==t.length||(n.contributors="Please select at least one contributor"),(e?.notes?.length||0)>1e3&&(n.notes="Notes can only be 1000 characters long"),Object.keys(n).length?[n,null]:[null,e]}(r);if(t)return s(e=>({...e,...t}));const o={survey:{...a,ownerAccountId:l}};await d({variables:o,onCompleted:()=>{n(),i()}})},[r,d,s,n,l,i]);return(0,fe.jsxs)(rSe,{onSubmit:u,children:[(0,fe.jsx)(lSe,{errors:o,disabled:c,accountId:l,isUpdatingSurvey:!1}),(0,fe.jsxs)(oSe,{children:[(0,fe.jsx)(dSe,{variant:"contained",name:"AddSurvey__Submit",onClick:u,disabled:c,children:a}),(0,fe.jsx)(sSe,{typescale:"body",size:"small",children:t})]})]})}function uSe(e){const n={};return e.name||(n.name="Please provide a name"),e.surveyTemplateId||(n.surveyTemplateId="Please select a survey"),e.startDate||(n.startDate="Please select a start date"),0===(e.contributors||e.individualContributors||e.userGroups||[]).length&&(n.contributors="Please select at least one contributor"),(e?.notes?.length||0)>1e3&&(n.notes="Notes can only be 1000 characters long"),Object.keys(n).length?[n,null]:[null,e]}const pSe=(0,f.styled)("div")`
  gap: 32px;
  display: flex;
  flex-direction: column;
`,mSe=(0,f.styled)("div")`
  display: flex;
  gap: 32px;
`,fSe=(0,f.styled)(f.Button)`
  max-width: 50%;
  width: 100%;
`;function ySe(e){let{onDismiss:n,existingSurvey:t,onDelete:a,onComplete:i}=e;const l=Je(),{state:r}=zke(),[o,s]=(0,g.useState)({}),[d,{loading:c}]=Xbe(),[u,{loading:p}]=Qbe(),m=c||p,f=(0,g.useCallback)(async e=>{e.preventDefault(),s({});const[a,l]=uSe(r);if(a)return s(e=>({...e,...a}));const o={id:t.id,survey:{...l,ownerAccountId:t.owner.id}};await d({variables:o,onCompleted:()=>{n(),i()}})},[r,s,d,n,t,i]),y=(0,g.useCallback)(()=>{u({variables:{id:t.id},onCompleted:()=>{n(),a?.()}})},[t.id,u,n,a]);return(0,fe.jsxs)(pSe,{onSubmit:f,children:[(0,fe.jsx)(lSe,{errors:o,disabled:!(!c&&!p),accountId:l,isUpdatingSurvey:!0}),(0,fe.jsxs)(mSe,{children:[(0,fe.jsx)(fSe,{variant:"contained",name:"AddSurvey__Submit",disabled:m,onClick:f,children:"Update survey"}),(0,fe.jsx)(fSe,{variant:"outlined",name:"DeleteSurveyButton",disabled:m,onClick:y,children:"Delete survey"})]})]})}const gSe=e=>{let{survey:n,refetch:t,action:a}=e;const{createModalShown:i,toggleCreateModal:l,editModalShown:r,toggleEditModal:o}=a,s=or(),d=(0,m.Zp)(),c=(0,m.zy)().pathname.includes(s.surveys.sent.surveys),u=(0,g.useCallback)(()=>{c&&d(s.surveys.sent.surveys)},[d,s.surveys.sent.surveys,c]);return(0,fe.jsxs)(fe.Fragment,{children:[i&&(0,fe.jsx)($ke,{children:(0,fe.jsx)(f.Modal,{title:"Create a survey",viewportHeight:80,onClose:l,open:i,maxWidth:"1200px",children:(0,fe.jsx)(cSe,{onComplete:t,onDismiss:l,submitButtonText:"Create Survey",buttonDescription:"This will send your survey to your recipients"})})}),r&&n&&(0,fe.jsx)(f.Modal,{viewportHeight:80,title:"Edit a survey",onClose:o,open:r,maxWidth:"1200px",children:(0,fe.jsx)($ke,{survey:n,children:(0,fe.jsx)(ySe,{existingSurvey:n,onDismiss:o,onDelete:u,onComplete:t})})})]})},hSe=e=>({value:e.value||null,label:e.label||""}),xSe=e=>{let{accountId:n,status:t,setStatus:a}=e;const{data:i,error:l}=cke({accountId:n,field:"submissionStatus"}),r=(i?.getReceivedSurveysPageFilter??[]).map(hSe).map(e=>null===e.value?{...e,value:xn().snakeCase(e.label)}:e),o=r.find(e=>e.value===t);return(0,fe.jsx)(f.Select,{id:"StatusFilter__MultiSelect",name:"received-surveys-select-checkbox",value:o,onChange:e=>a(e.value),label:"Survey statuses",error:!!l,options:r})};var TSe=t(16392);const bSe=(0,f.styled)(TSe.sN)`
  overflow: -moz-scrollbars-none;
  scrollbar-width: none;
  height: 100%;

  & > div:first-child {
    position: static !important;
  }

  &::-webkit-scrollbar {
    display: none;
  }
`,vSe=(0,f.styled)("div")`
  position: absolute;
  top: 16px;
  right: 4px;
  left: 16px;
  display: flex;
  width: calc(100% - 20px);
  justify-content: space-between;
  z-index: 10;
  font-family: ${e=>{let{theme:n}=e;return n.sys.typescale.body.medium.family}};
  font-size: 12px !important;
  line-height: 16px;
`,CSe=(0,f.styled)(pm)`
  position: absolute;
`,kSe=(0,f.styled)("div")`
  width: 100%;
`,SSe=(0,f.styled)("div")`
  display: grid;
  grid-template-columns: repeat(4, minmax(10px, 1fr));
  gap: 20px;
  font-family: 'Plus Jakarta Sans';

  @media (min-width: 1367px) and (max-width: 1600px) {
    grid-template-columns: repeat(3, minmax(10px, 1fr));
  }

  @media (max-width: 1366px) {
    grid-template-columns: repeat(2, minmax(10px, 1fr));
  }
`,NSe=e=>` - Locked by ${e.first_name} ${e.last_name}`,ASe=g.memo(e=>{let{surveys:n,userId:t,setLock:a,handleSurveyClick:i,toggleLockedModal:l}=e;const r=(0,g.useMemo)(()=>{const e={List:(0,g.forwardRef)((e,n)=>{let{style:t,children:a,...i}=e;return(0,fe.jsx)(SSe,{ref:n,...i,style:{...t},children:a})})};return e.List.displayName="List",e},[]);return(0,fe.jsx)(bSe,{totalCount:n.length,components:r,itemContent:e=>{const r=n[e].lockedBy,o=!!r?.id&&r?.id!==t;return(0,fe.jsxs)(kSe,{children:[(0,fe.jsx)(f.Card,{subContent:(0,fe.jsx)(wf,{deadlineDate:n[e]?.deadlineDate,fill:!0}),onClick:()=>{o?(a(r),l()):i(n[e].id)},title:n[e].name,subTitle:`From ${n[e].owner.name}${o?NSe(r):""}`,disabled:o,children:(0,fe.jsxs)(vSe,{children:[rm(n[e])&&(0,fe.jsx)(CSe,{status:n[e].submission?.status,children:lm(n[e].submission?.status)}),(0,fe.jsx)(hm,{survey:n[e]})]})}),e===n.length-1&&(0,fe.jsx)("div",{id:"sentinel"})]},n[e].id)}})}),RSe=le.default.div`
  padding: ${e=>e.theme.geometry.xxs.spacing};
`,DSe=(0,le.default)("div")`
  display: flex;
  justify-content: center;
  width: 100%;
`,LSe=(0,le.default)(f.Button)`
  max-width: 250px;
  width: 100%;
`,ISe=(0,le.default)(f.Text)`
  margin-bottom: 30px;
`;function jSe(e){let{onDismiss:n,submitButtonText:t,description:a}=e;return(0,fe.jsxs)(RSe,{children:[(0,fe.jsx)(ISe,{typescale:"body",size:"medium",children:a}),(0,fe.jsx)(DSe,{children:(0,fe.jsx)(LSe,{variant:"contained",name:"LockedEditing__Submit",onClick:n,children:t})})]})}const wSe=e=>{let{lockedBy:n,open:t,onClose:a}=e;return(0,fe.jsx)(f.Modal,{onClose:a,title:`Sorry! It seems that ${n?.first_name} ${n?.last_name} is currently making edits to this survey.`,open:t,children:(0,fe.jsx)(jSe,{description:`You won't be able to make changes until 1 minute after ${n?.first_name} ${n?.last_name} has completed their edits and exited the survey.`,onDismiss:a,submitButtonText:"OK",buttonDescription:"This will send your survey to your recipients"})})},OSe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
`;function ESe(e){const n=[],t="not_started"===e?null:e;return e&&n.push({field:"submissionStatus",filterType:gn.pe.Text,values:[t]}),n}(0,f.styled)(ie.vj)`
  width: 100%;
  font-family: ${e=>{let{theme:n}=e;return n.sys.typescale.label.large.family}};
`;const _Se=(0,f.styled)("div")`
  padding: 8px 0 16px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
`,FSe=(0,f.styled)("div")`
  width: 300px;
`,PSe=()=>{const e=Je(),n=Bl(),[t,a]=(0,g.useState)([]),[i,l]=(0,g.useState)(1),[r,o]=(0,g.useState)(""),[s]=(0,XT.useDebounce)(r,600),[d,c]=(0,g.useState)(1),[u,p]=(0,g.useState)(""),y=Id((0,g.useMemo)(()=>({accountId:e,offset:20*(d-1),limit:20,filters:{search:{field:["name"],value:s},set:ESe(u)}}),[e,20,d,s,u])),h=(0,m.Zp)(),x=(0,g.useCallback)(e=>h(`./${e}`),[h]);(0,g.useEffect)(()=>{y?.data?.getReceivedSurveysPage?.totalRows&&!y.loading&&(l(Math.ceil(y.data.getReceivedSurveysPage.totalRows/20)),a(e=>[...e,...y?.data?.getReceivedSurveysPage?.rows||[]]))},[y.loading]),(0,g.useEffect)(()=>{y?.data?.getReceivedSurveysPage&&!y.loading&&(s||u)&&(l(Math.ceil(y.data.getReceivedSurveysPage.totalRows/20)),a(y?.data?.getReceivedSurveysPage?.rows))},[y.loading,s,u]),(0,g.useEffect)(()=>{a([]),c(1)},[u,s,e]);const T=(0,g.useMemo)(()=>(0,hn.throttle)(()=>{y.loading||c(e=>e+1)},400,{trailing:!1}),[y.loading]),b=(0,g.useMemo)(()=>(0,hn.throttle)(()=>{const e=window.innerHeight+window.scrollY>=document.body.offsetHeight;!y.loading&&i>d&&e&&T()},400,{leading:!1}),[i,d,y.loading,T]);(0,g.useEffect)(()=>(window.addEventListener("scroll",b),()=>{b.cancel(),window.removeEventListener("scroll",b)}),[b]);const v=(0,g.useCallback)(e=>{o(e.target.value)},[o]),[C,k]=(0,g.useState)(!1),[S,N]=(0,g.useState)(null),A=(0,g.useCallback)(()=>k(e=>!e),[]),R=y.loading?null:(0,fe.jsx)(wke,{});return(0,fe.jsxs)(OSe,{children:[(0,fe.jsxs)(_Se,{children:[(0,fe.jsx)(f.TextField,{name:"ConfigurationAccountsContainer__Controls__Search",type:"search",value:r,onChange:v,error:!1,placeholder:"Search",style:{width:"300px"}}),(0,fe.jsx)(FSe,{children:(0,fe.jsx)(xSe,{accountId:e,status:u,setStatus:p})}),(0,fe.jsx)(wSe,{open:C,onClose:A,lockedBy:S})]}),t.length?(0,fe.jsx)(ASe,{surveys:t,toggleLockedModal:A,userId:n,setLock:N,handleSurveyClick:x}):R]})},BSe=le.default.div`
  display: flex;
  align-items: center;
`,USe=le.default.div`
  position: relative;
  margin-left: auto;
  margin-right: 10px;
  margin-bottom: auto;
  justify-content: flex-end;
  font-size: 1em;
`,$Se=le.default.table`
  width: initial;
  color: #444;
  font-size: 0.95em;
`,MSe=le.default.th`
  padding-right: ${e=>{let{theme:n}=e;return n.geometry.xl.spacing}};
  padding-bottom: ${e=>{let{theme:n}=e;return n.geometry.sm.spacing}};
  font-weight: 600;
`;function VSe(e){let{survey:n}=e;return(0,fe.jsxs)(BSe,{children:[(0,fe.jsx)($Se,{children:(0,fe.jsx)("tbody",{children:(0,fe.jsxs)("tr",{children:[(0,fe.jsx)(MSe,{children:"Contributors"}),(0,fe.jsx)("td",{"data-cy":"Survey__ContributorsCount",children:n?.contributors?.length})]})})}),(0,fe.jsx)(USe,{children:(0,fe.jsx)(wf,{deadlineDate:n.deadlineDate,survey:n})})]})}(0,le.default)(MSe)`
  font-size: 15px;
  font-weight: normal;
  color: #83838e;
`;const GSe="#FD919C",zSe="#00C8B5",WSe="#FFCA83",qSe={positive:zSe,neutral:WSe,negative:GSe},JSe={title:{text:""},chart:{height:350,backgroundColor:"transparent",reflow:!0},legend:{align:"center",layout:"horizontal",verticalAlign:"bottom",itemStyle:{fontSize:"1.27em",fontWeight:"normal"}},tooltip:{enabled:!1},credits:{enabled:!1}},YSe=66.7,HSe=33.3,KSe=e=>{const n={},t=new Set,a={},i={},l=new Map,r={},o={};for(const r of e?.template?.questions||[]){if(n[r.id]=r,!r)continue;const o=r.category?.name;if(void 0!==o){let n;if(t.add(o),i[r.name]=o,r.type===gn.xV.Boolean)l.set(r.name,1),n=e.contributors.length;else{const t={};for(const e of r.options)t[e.name]=e.score||0;l.set(r.name,t);const a=Math.max(...Object.values(t));n=(a>0?a:0)*e.contributors.length}a[o]=o in a?a[o]+n:n}}for(const t of e.submissions){for(const e of t.answers){const t=n[e.questionId];if(!t)continue;const{answer:a}=e,o=a.replace(/"/g,""),s=t.name,d=i[s],c=l.get(s)||{};if(void 0===d)continue;const u=t.type===gn.xV.Boolean&&"true"===o?1:c[o]||0;r[d]=d in r?r[d]+u:u}o[t.id]=r}return{categoryNames:Array.from(t),categoryScores:r,submissionScores:o,totalCategoryScores:a}},QSe=e=>e>HSe&&e<YSe?WSe:e>YSe?zSe:e<HSe?GSe:WSe,ZSe={title:{text:""},chart:{height:350,backgroundColor:"transparent",style:{fontFamily:"'Proxima Nova', Helvetica, Arial, sans-serif;"},reflow:!0},legend:{align:"center",layout:"horizontal",verticalAlign:"bottom",margin:30,itemStyle:{fontSize:"1.27em",fontWeight:"normal"}},tooltip:{enabled:!1},credits:{enabled:!1}};var XSe=t(66044),eNe=t.n(XSe),nNe=t(34768),tNe=t.n(nNe);const aNe={...ZSe,chart:{...ZSe.chart,type:"bar",height:14,spacing:[0,0,0,0]},plotOptions:{bar:{showInLegend:!1}},xAxis:{visible:!1},yAxis:{visible:!1,max:100},series:[{data:[100],color:"#E8E9EC",type:"bar",grouping:!1,borderRadius:6}]},iNe=le.default.div`
  margin-top: 8px;
  flex: 1;
  color: #4d505b;
`,lNe=le.default.div`
  margin-top: 8px;
  text-align: right;
  font-size: 14px;
`,rNe=le.default.span`
  color: #83838e;
`,oNe=le.default.div`
  width: 100%;
  display: flex;
  flex-flow: wrap;
`,sNe=le.default.div`
  margin-left: 50px;

  &.${e=>e.className||"progress-bar--column"} {
    margin-bottom: 20px;
    flex: 0 0 calc(33% - 50px);
  }
`;function dNe(e){let{text:n,totals:t,color:a,className:i="progress-bar--column"}=e;const l=(0,le.useTheme)(),r=(0,g.useRef)(null),o=t[0]>0?t[0]/t[1]*100:0,s=(0,g.useMemo)(()=>((e,n,t)=>({...aNe,series:[...aNe.series,{data:[n],color:t,type:"bar",borderRadius:6}]}))(0,o,a),[l,o,a]);return(0,fe.jsxs)(sNe,{className:i,children:[(0,fe.jsx)(tNe(),{highcharts:eNe(),options:s,ref:r}),(0,fe.jsxs)(oNe,{children:[(0,fe.jsx)(iNe,{color:"normal",children:n}),(0,fe.jsxs)(lNe,{color:"normal",children:[t[0]," / ",(0,fe.jsx)(rNe,{children:t[1]})]})]})]})}const cNe=[GSe,zSe,WSe,WSe,GSe];function uNe(e){let{survey:n}=e;const{categoryNames:t,totalCategoryScores:a,categoryScores:i}=(0,g.useMemo)(()=>KSe(n),[n]);let l=0;const r=cNe;return(0,fe.jsx)(oNe,{children:t.map((e,n)=>{const t=i[e]||0,o=a[e];l>r.length-1&&(l=0);const s=r[l];return l++,(0,fe.jsx)(dNe,{text:e,totals:[t,o],color:s},`catergory__progress-bar-${n}`)})})}const pNe={...ZSe,chart:{...ZSe.chart,type:"column"},plotOptions:{column:{groupPadding:0,maxPointWidth:70}}},mNe=(0,le.default)(dNe)`
  flex: 0 0 calc(50% - 5px);
  margin: 10px 0;
`,fNe=(0,le.default)(oNe)`
  flex-direction: column;
  align-items: stretch;
`,yNe=le.default.div`
  margin-bottom: 12px;
  padding: 12px;
  background: #00c8b511;
  color: #45b7ad;
  border-radius: 12px;
`,gNe=(0,le.default)(_m)`
  margin-right: 12px;
  vertical-align: middle;
`;function hNe(e){let{survey:n,percentPerformance:t}=e;const a=n.submissions.filter(e=>e.status===gn.ZU.Approved||e.status===gn.ZU.ReadyForReview).length,i=n.contributors.length,l=(i-a)/i*100,r=l>0&&l<50,o=(0,g.useRef)(null),s=(0,g.useMemo)(()=>((e,n)=>({...pNe,xAxis:{categories:["Not submitted","Negative","Neutral","Positive"],labels:{enabled:!1}},yAxis:{min:0,max:100,title:{text:"% of contributors",x:-10,style:{fontWeight:"bold"}}},series:[{name:"Not submitted",data:[e],color:"#949597",type:"column"},{name:"Negative",data:[n.negative],color:GSe,type:"column"},{name:"Neutral",data:[n.neutral],color:WSe,type:"column"},{name:"Positive",data:[n.positive],color:zSe,type:"column"}]}))(l,t),[l,t]);return(0,fe.jsxs)(fe.Fragment,{children:[r&&(0,fe.jsxs)(yNe,{children:[(0,fe.jsx)(gNe,{}),"Encourage more responses to try and improve your impact"]}),(0,fe.jsx)(tNe(),{highcharts:eNe(),options:s,ref:o})]})}function xNe(e){let{children:n,survey:t}=e;const a=(0,g.useMemo)(()=>(e=>{const{categoryScores:n,totalCategoryScores:t}=KSe(e),a=[];for(const e in n){const i=n[e]/t[e]*100;Number.isNaN(i)||a.push(i)}const i=xn().round(xn().mean(a)),l=i>YSe&&i||0,r=i>HSe&&i<YSe&&i||0,o=i<HSe&&i||0;let s="";return l>r&&l>o?s="Positive":r>l&&r>o?s="Neutral":o>l&&o>r&&(s="Negative"),{text:s,positive:l,neutral:r,negative:o}})(t),[t]),i=a.text.toLowerCase(),l=a[i]||0,r=qSe[i];return(0,fe.jsxs)(oNe,{children:[n,(0,fe.jsx)(mNe,{text:`${a.text} Overall Performance`,totals:[l,100],color:r}),(0,fe.jsx)(Rke,{}),(0,fe.jsx)(fNe,{children:(0,fe.jsx)(hNe,{survey:t,percentPerformance:a})})]})}const TNe={...ZSe,legend:{...ZSe.legend,labelFormatter:function(){return this.name.replace(/: .+?$/,"")}},plotOptions:{pie:{showInLegend:!0,dataLabels:{style:{color:"#4d505b",fontWeight:"600",fontSize:"16px",lineHeight:"19px",fontFamily:"Proxima Nova",fontStyle:"normal",textOutline:"none"}}}}},bNe=(e,n,t)=>`${e}: ${Math.floor(n/t*100)}%`;function vNe(e){let{contributors:n,submissions:t}=e;const a=(0,le.useTheme)(),i=(0,g.useRef)(null),l=(e=>{let{contributors:n,submissions:t}=e;const a=(0,hn.keyBy)(t,"owner.id"),i=n.map(e=>{let{account:n}=e;return a[n.id]?.status});return(0,hn.countBy)(i)})({contributors:n,submissions:t}),r=(0,g.useMemo)(()=>((e,n)=>{const t=(0,hn.sum)(Object.values(n));return{...TNe,series:[{type:"pie",data:Object.entries(n).map(n=>{let[a,i]=n;return{y:i,name:bNe(lm(a),i,t),color:im(e,a)}})}]}})(a,l),[a,l]);return(0,fe.jsx)(tNe(),{highcharts:eNe(),options:r,ref:i})}const CNe=(0,le.default)(Lve)`
  --ag-row-height: ${50}px;
  --ag-row-hover-color: #e8e9ec;
  font-family: ${e=>e.v2&&"Plus Jakarta Sans"};

  & .ag-paging-panel {
    justify-content: flex-start;
  }

  .ag-root-wrapper-body {
    height: 100%;
  }

  && .ag-row:hover {
    cursor: pointer;
  }
  &&&& .ag-row .ag-cell {
    line-height: 17px;
  }
  &&& .ag-row .ag-cell:first-child {
    padding-left: 12px;
  }
`,kNe=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,SNe=(0,le.default)(oNe)`
  flex-direction: column;
`,NNe={filter:!1},ANe={status:e=>{let{data:n}=e;return(0,fe.jsx)(pm,{status:n.submission?.status,children:lm(n.submission?.status)})},performance:e=>{let{data:n}=e;return(0,fe.jsxs)(fe.Fragment,{children:[n.performance&&(0,fe.jsx)(SNe,{children:(0,fe.jsx)(dNe,{text:(t=n.performance,(t>HSe&&t<YSe?"Neutral":t>YSe?"Positive":t<HSe?"Negative":"Neutral")+" overall performance"),totals:[n.performance,100],color:QSe(n.performance)})}),!n.performance&&"-"]});var t},chevron:e=>{let{data:n}=e;return(0,fe.jsx)(fe.Fragment,{children:n.reviewable&&(0,fe.jsx)(kNe,{children:(0,fe.jsx)(ie.In,{icon:"chevron-right",color:"#83838e"})})})}},RNe=e=>e.data.contributor.account.id,DNe=e=>{let{submissionDetails:n,showPerforance:t}=e;const a=(0,m.zy)().pathname.startsWith("/v2"),[i,l]=(0,g.useState)(""),r=(0,m.Zp)(),o=(0,g.useCallback)(e=>{e.data.reviewable?r(`../sent/contributors/${e.data.contributor.account.id}/submission/${e.data.submission.id}`):l("This response is not currently in a reviewable state.")},[r,l]),s=[{headerName:"Name",valueGetter:e=>{let{data:{contributor:n}}=e;return n.user?`${n.user.first_name} ${n.user.last_name} (${n.user.email})`:n.userGroup?n.userGroup.name:n.account.name},sort:"asc",comparator:Hn,flex:100},{headerName:"Contributor Type",valueGetter:e=>{let{data:{contributor:n}}=e;return n.user?"User":n.userGroup?"User Group":"Child Account"},flex:100},{headerName:"Response Status",cellRenderer:"status",flex:100},{headerName:"Performance",cellRenderer:"performance",flex:100,hide:!t},{headerName:"Chevron",cellRenderer:"chevron",flex:1}];return(0,fe.jsxs)(fe.Fragment,{children:[i&&(0,fe.jsx)(ie.Eg,{show:!0,color:"danger",onClose:()=>{l("")},children:i}),(0,fe.jsx)(CNe,{v2:a,className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{defaultColDef:NNe,rowHeight:50,components:ANe,rowData:n,paginationPageSize:25,getRowId:RNe,columnDefs:s,onRowClicked:o,pagination:!0})})]})};function LNe(e){let{survey:n,showPerformance:t=!1}=e;const{contributors:a,submissions:i}=n,{submissionScores:l,totalCategoryScores:r}=KSe(n),o=a.map(e=>{const n=i.find(n=>n.owner.id===e.account.id),t=sm(n?.status),a=n?((e,n,t)=>{const a=e[t],i=[];if(void 0!==a){for(const e in a){const t=a[e]/n[e]*100;Number.isNaN(t)||i.push(t)}return xn().round(xn().mean(i),0)}})(l,r,n.id):null;return{contributor:e,submission:n,reviewable:t,performace:a}});return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(bke,{children:"Response by contributor"}),(0,fe.jsx)(DNe,{submissionDetails:o,showPerforance:t})]})}function INe(e){let{survey:n}=e;return(0,fe.jsx)(LNe,{survey:n,showPerformance:!0})}const jNe=(0,g.memo)(function(e){let{survey:n}=e;const{automatedScoring:t}=n;return t?(0,fe.jsx)(INe,{survey:n}):(0,fe.jsx)(LNe,{survey:n})});function wNe(e){let{survey:n}=e;const{contributors:t,submissions:a}=n;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(bke,{children:"Response status"}),(0,fe.jsx)(vNe,{contributors:t,submissions:a})]})}function ONe(e){let{survey:n}=e;const{contributors:t,submissions:a}=n;return(0,g.useMemo)(()=>(e=>{const n=new Set;for(const t of e?.template?.questions||[]){const e=t?.category?.name;void 0!==e&&n.add(e)}return n.size>0})(n),[n])?(0,fe.jsx)(wNe,{survey:n}):(0,fe.jsxs)(Cke,{children:[(0,fe.jsxs)(kke,{children:[(0,fe.jsxs)(Nke,{children:[(0,fe.jsx)(bke,{children:"Response status"}),(0,fe.jsx)(vNe,{contributors:t,submissions:a})]}),(0,fe.jsx)(Ake,{children:(0,fe.jsx)(xNe,{survey:n,children:(0,fe.jsx)(vke,{children:"Contributor performance"})})})]}),(0,fe.jsx)(uNe,{survey:n})]})}const ENe=(0,g.memo)(function(e){let{survey:n}=e;const{automatedScoring:t}=n;return t?(0,fe.jsx)(ONe,{survey:n}):(0,fe.jsx)(wNe,{survey:n})}),_Ne=le.default.div`
  height: 400px;

  .ag-header {
    display: none;
  }

  .ag-sticky-top {
    top: 0 !important;
  }
`,FNe=[];function PNe(){const e=Je(),{surveyType:n,selectContributors:t,selectIndividualContributors:a,selectedIds:i}=Vke(),{rows:l,loading:r}=Jke(n);return r?(0,fe.jsx)(Rc,{}):(0,fe.jsx)(_Ne,{className:"ag-theme-alpine",children:(0,fe.jsx)(Dg.W6,{onGridReady:e=>{e.api.forEachNode(e=>{e.id&&i.has(e.id)&&e.setSelected(!0)})},onSelectionChanged:i=>{const l=i.api.getSelectedRows();if(n===Mke.contributor){const n=l.filter(n=>"Account"===n.__typename&&n.id!==e).map(e=>e.id);return t(n)}const r=l.filter(e=>"MysqlUser"===e.__typename).map(e=>e.id);return a(r)},treeData:!0,rowSelection:"multiple",columnDefs:FNe,rowData:l,getDataPath:e=>e.orgHierarchy,groupSelectsChildren:!0,suppressRowClickSelection:!0,groupDefaultExpanded:1,loadingOverlayComponent:ie.Ip,getRowId:e=>e.data.id,autoGroupColumnDef:{headerName:"Name",flex:1,valueGetter:e=>{if(e.data)switch(e.data.__typename){case"Account":return e.data.name;case"MysqlUser":return`${e.data.firstName} ${e.data.lastName} <${e.data.email}>`}},cellRendererParams:{checkbox:!0,suppressCount:!0}}},n)})}const BNe=le.default.div`
  display: flex;
  flex-direction: row;
  align-items: center;
`,UNe=(0,le.default)(ie.EY)`
  padding: 0;
  padding-left: 30px;
`,$Ne=e=>{let{hideNotifyByEmail:n}=e;const{state:t,surveyType:a,toggleNotifyByEmail:i,selectIndividualContributors:l,selectContributors:r}=Vke();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.hh.Row,{children:!n&&(0,fe.jsx)(ie.hh.TextColumn,{size:"sm",color:"normal",children:"Your survey recipients will be asked to fill in these survey/s"})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.JU,{children:"Recipients"})}),(0,fe.jsxs)(dT.A,{"aria-label":"position",row:!0,children:[(0,fe.jsx)(cT.A,{control:(0,fe.jsx)(f.RadioButton,{name:"contributorsType",checked:a===Mke.user,value:Mke.user,onChange:()=>l([])}),label:(0,fe.jsx)(ie.EY,{size:"md",color:"normal",children:"One survey per user"}),labelPlacement:"end"}),(0,fe.jsx)(cT.A,{control:(0,fe.jsx)(f.RadioButton,{name:"contributorsType",checked:a===Mke.contributor,value:Mke.contributor,onChange:()=>r([])}),label:(0,fe.jsx)(ie.EY,{size:"md",color:"normal",children:"One survey per account"}),labelPlacement:"end"})]}),!n&&(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsxs)(ie.hh.Column,{children:[(0,fe.jsxs)(BNe,{children:[(0,fe.jsx)(ie.Sc,{id:"AddSurveyForm_Checkbox_SendAllContributors",inline:!0,onChange:()=>i(),name:"notifyByEmail",checked:t.notifyByEmail}),(0,fe.jsx)(ie.hh.TextColumn,{size:"md",color:"normal",children:"Notify recipients by email"})]}),(0,fe.jsx)(BNe,{children:(0,fe.jsxs)(UNe,{size:"sm",color:"normal",children:["Contact a system administrator to add, list and manage contributors.",(0,fe.jsx)("br",{}),"All users listed for each contributor will receive the survey."]})})]})}),(0,fe.jsx)(PNe,{})]})},MNe=(0,le.default)(ie.fs)`
  height: 150px;
`,VNe=le.default.div`
  display: flex;
  flex-direction: row;
  align-items: center;
`,GNe=(0,le.default)(ie.EY)`
  padding: 0;
  padding-left: 30px;
`,zNe=le.default.div`
  position: absolute;
  bottom: 25px;
  right: 30px;
  color: ${e=>e.theme.colors.text.normal.background};
`,WNe=(0,le.default)(ie.hh.Row)`
  position: relative;
`;function qNe(e){let{errors:n,accountId:t,disabled:a,isUpdatingSurvey:i}=e;const{state:l,changeName:r,toggleAutomatedScoring:o,toggleFeedbackEnabled:s,changeNote:d,changeStartDate:c,changeDeadlineDate:u,changeSurveyTemplateId:p}=Vke();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ie.hh.Row,{container:!0,children:(0,fe.jsx)(ie.hh.TextInputColumn,{id:"AddSurveyForm__Input_Name",label:"Survey name",name:"name",onChange:e=>r(e.target.value),value:l.name,error:n.name,disabled:a})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextColumn,{size:"sm",color:"normal",children:"This will be presented to recipients"})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Survey",span:12,children:(0,fe.jsx)(Lm,{value:l.surveyTemplateId,accountId:t,error:n.surveyTemplateId||void 0,onChange:e=>p(e.target.select.value)})})}),(0,fe.jsx)($Ne,{hideNotifyByEmail:i}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsxs)(ie.hh.Column,{label:"Feedback",children:[(0,fe.jsxs)(VNe,{children:[(0,fe.jsx)(ie.Sc,{id:"AddSurveyForm_Checkbox_Feedback",inline:!0,onChange:()=>s(),checked:l.feedbackEnabled}),(0,fe.jsx)(ie.hh.TextColumn,{size:"md",color:"normal",children:"Approve responses"})]}),(0,fe.jsx)(VNe,{children:(0,fe.jsx)(GNe,{size:"sm",color:"normal",children:"If selected, you will have to approve or request changes for each response in Rio"})})]})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsxs)(ie.hh.Column,{label:"Automated Scoring",children:[(0,fe.jsxs)(VNe,{children:[(0,fe.jsx)(ie.Sc,{id:"AddSurveyForm_Checkbox_AutomatedScoring",inline:!0,onChange:()=>o(),checked:l.automatedScoring}),(0,fe.jsx)(ie.hh.TextColumn,{size:"md",color:"normal",children:"Score contributions"})]}),(0,fe.jsx)(VNe,{children:(0,fe.jsx)(GNe,{size:"sm",color:"normal",children:"If selected, you and your recipients will automatically receive performance feedback against Rio sustainability metrics"})})]})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Start date",span:12,children:(0,fe.jsx)(ie.lr,{onDayClick:c,name:"startDate",selectedDate:l?.startDate,disabledDatesBefore:dt().toDate(),box:!0,error:n.startDate,placeholder:"DD/MM/YYYY"})})}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.Column,{label:"Deadline for responses",span:12,children:(0,fe.jsx)(ie.lr,{onDayClick:u,name:"deadlineDate",selectedDate:l?.deadlineDate,disabledDatesBefore:dt().toDate(),box:!0,error:n.deadlineDate,placeholder:"DD/MM/YYYY"})})}),(0,fe.jsxs)(WNe,{container:!0,children:[(0,fe.jsx)(ie.hh.Column,{label:"Notes for recipients (optional)",name:"notes",children:(0,fe.jsx)(MNe,{id:"AddSurveyForm__Input_Notes",name:"notes",onChange:e=>d(e.target.value),value:l?.notes,error:n.notes,disabled:a})}),(0,fe.jsxs)(zNe,{color:"normal",children:[l.notes?.length??0,"/1000"]})]}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(ie.hh.TextColumn,{size:"sm",color:"normal",children:"These notes will appear in the email sent to your recipients"})})]})}const JNe=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,YNe=(0,le.default)(ie.hh.TextColumn)`
  align-self: center;
`;function HNe(e){let{onDismiss:n,onSuccess:t,buttonDescription:a,title:i,submitButtonText:l}=e;const r=Je(),{state:o}=Vke(),[s,d]=(0,g.useState)({}),[c,{loading:u}]=Kbe(),p=(0,g.useCallback)(async e=>{e.preventDefault(),d({});const[a,i]=uSe(o);if(a)return d(e=>({...e,...a}));const l={survey:{...i,ownerAccountId:r}};await c({variables:l,onCompleted:()=>{n(),t()}})},[o,c,d,n,r,t]);return(0,fe.jsx)(JNe,{children:(0,fe.jsxs)(ie.hh,{onSubmit:p,children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:i}),(0,fe.jsx)(qNe,{errors:s,disabled:u,accountId:r}),(0,fe.jsx)(ie.hh.ButtonColumn,{name:"AddSurvey__Submit",disabled:u,onClick:p,children:l}),(0,fe.jsx)(ie.hh.Row,{children:(0,fe.jsx)(YNe,{span:12,size:"sm",color:"normal",children:a})})]})})}const KNe=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`;function QNe(e){let{onDismiss:n,existingSurvey:t,onDelete:a,onSuccess:i}=e;const l=Je(),[r,o]=(0,g.useState)({}),{state:s}=Vke(),[d,{loading:c}]=Xbe(),[u,{loading:p}]=Qbe(),m=(0,g.useCallback)(async e=>{e.preventDefault(),o({});const[a,l]=uSe(s);if(a)return o(e=>({...e,...a}));const r={id:t.id,survey:{...l,ownerAccountId:t.owner.id}};await d({variables:r,onCompleted:()=>{n(),i()}})},[s,o,d,n,t,i]),f=(0,g.useCallback)(()=>{u({variables:{id:t.id},onCompleted:()=>{n(),a?.()}})},[t.id,u,n,a]),y=c||p;return(0,fe.jsx)(KNe,{children:(0,fe.jsxs)(ie.hh,{container:!0,onSubmit:m,children:[(0,fe.jsx)(ie.hh.HeaderRow,{children:"Update Survey"}),(0,fe.jsx)(qNe,{errors:r,disabled:!(!c&&!p),accountId:l,isUpdatingSurvey:!0}),(0,fe.jsxs)(ie.hh.Row,{container:!0,children:[(0,fe.jsx)(ie.hh.ButtonColumn,{span:6,disabled:y,onClick:m,name:"UpdateSurveyButton",children:"Update survey"}),(0,fe.jsx)(ie.hh.ButtonColumn,{name:"DeleteSurveyButton",span:6,disabled:y,onClick:f,color:"danger",children:"Delete survey"})]})]})})}const ZNe=(0,le.default)(ie.fv)`
  justify-content: flex-end;
  align-items: center;
  flex-direction: row;
  column-gap: 20px;
`,XNe=(0,le.default)(ie.$n)`
  align-self: flex-end;
  width: 200px;
`,eAe=(0,le.default)(ie.$n)`
  width: 150px;
  background-color: ${e=>e.theme.colors.basic.white};
  color: ${e=>e.theme.colors.primary.light.text};
  border-color: ${e=>e.theme.colors.primary.light.text};
  border-width: 1px;
`,nAe=[{to:"../sent/overview",title:"Surveys sent"}];function tAe(e){let{survey:n,refetch:t,onDelete:a}=e;const[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(!1),s=(0,g.useCallback)(()=>l(e=>!e),[]),d=(0,g.useCallback)(()=>o(e=>!e),[]),c=(0,g.useMemo)(()=>n?[...nAe,{to:"../sent/surveys",title:"All surveys"},{title:n.name}]:nAe,[n]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(gu,{name:"SurveysOverview",icon:["rio","clipboard-check-custom"],iconColor:"quaternary",title:n?n.name:"Overview",breadcrumb:c,children:(0,fe.jsxs)(ZNe,{span:9,container:!0,children:[n&&(0,fe.jsx)(eAe,{id:"EditSurveyButton",onClick:d,children:"Edit survey"}),(0,fe.jsx)(XNe,{id:"CreateSurveyButton",onClick:s,children:"+ Create a survey"})]})}),r&&n&&(0,fe.jsx)(ie.aF,{size:"xl",onDismiss:d,dismissable:!0,enableEscapeKey:!0,show:!0,children:(0,fe.jsx)($ke,{survey:n,children:(0,fe.jsx)(QNe,{existingSurvey:n,onDismiss:d,onDelete:a,onSuccess:t})})}),i&&(0,fe.jsx)(ie.aF,{size:"xl",onDismiss:s,dismissable:!0,enableEscapeKey:!0,show:!0,children:(0,fe.jsx)($ke,{children:(0,fe.jsx)(HNe,{onDismiss:s,onSuccess:t,title:"Create a survey",submitButtonText:"Create Survey",buttonDescription:"This will send your surveys to your recipients"})})})]})}function aAe(){return(0,fe.jsxs)(Tke,{children:[(0,fe.jsx)(tAe,{refetch:()=>{}}),(0,fe.jsx)(Iu,{title:"You don't have any surveys yet",description:"Surveys are a quick way to collect data and insights",icon:["rio","clipboard-check-custom"]})]})}const iAe=le.default.div`
  padding: ${e=>e.theme.geometry.md.spacing};
`;function lAe(e){let{survey:n,onDelete:t,latest:a=!0,refetch:i}=e;return n?(0,fe.jsxs)(Tke,{children:[(0,fe.jsx)(tAe,{survey:n,onDelete:t,refetch:i}),(0,fe.jsxs)(iAe,{children:[(0,fe.jsx)(VSe,{survey:n,latest:a}),(0,fe.jsx)(ENe,{survey:n}),(0,fe.jsx)(jNe,{survey:n})]})]}):(0,fe.jsx)(aAe,{})}const rAe=["template","submissions","owner","contributors"];function oAe(){const{survey:e,load:n}=Hbe({fields:rAe});return e?(0,fe.jsx)(lAe,{survey:e,latest:!0,refetch:n}):null}const sAe=["contributors","submissions","owner","template"];function dAe(e){let{surveyId:n}=e;const t=(0,m.Zp)(),a=or(),i=(0,g.useCallback)(()=>{t(`/${a.surveys.root}/${a.surveys.sent.surveys}`)},[t,a]),{survey:l,load:r}=Hbe({id:n,fields:sAe});return l?(0,fe.jsx)(lAe,{survey:l,onDelete:i,latest:!1,refetch:r}):null}function cAe(){const{surveyId:e}=(0,m.g)();return e?(0,fe.jsx)(dAe,{surveyId:e}):(0,fe.jsx)(oAe,{})}const uAe=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
`,pAe=(0,le.default)(ie.$n)`
  align-self: center;
  max-width: 200px;
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,mAe=(0,le.default)(ie.fv)`
  display: contents;
`,fAe=(0,le.default)(ie.vj)`
  padding-right: ${e=>e.theme.geometry.md.spacing};
  min-width: 200px;
`,yAe=[{to:"../sent/overview",title:"Surveys sent"},{title:"All surveys"}];function gAe(){const e=dke(window.innerWidth),n=Je(),[t,a]=(0,g.useState)(1),[i,l]=(0,g.useState)(1),[r,o]=(0,g.useState)(""),[s,d]=(0,g.useState)(!1),c=Zbe({accountId:n,offset:(i-1)*e,limit:e,filters:{search:{field:["name"],value:r}}}),u=(0,g.useCallback)(()=>c.refetch({accountId:n}),[n,c]),p=(0,g.useCallback)(()=>d(e=>!e),[]),f=(0,m.Zp)(),y=(0,g.useCallback)(e=>f(`./${e}`),[f]),h=(0,g.useCallback)(()=>(0,fe.jsx)(Rc,{name:"ConfigurationAccountsContainer__Loading"}),[]),x=(0,g.useCallback)(e=>(0,fe.jsx)($c,{error:e,retry:u}),[u]),T=(0,g.useCallback)(e=>{let{getSurveysPage:n}=e;return(0,fe.jsx)(Nm,{surveys:n,onSurveyClick:y})},[y]);return(0,g.useEffect)(()=>{c?.data?.getSurveysPage?.totalRows&&a(Math.ceil(c.data.getSurveysPage.totalRows/e))},[e,c]),(0,fe.jsxs)(uAe,{children:[(0,fe.jsx)(gu,{name:"Surveys",icon:["rio","clipboard-check-custom"],iconColor:"quaternary",title:"Surveys",breadcrumb:yAe,children:(0,fe.jsxs)(mAe,{span:9,container:!0,children:[(0,fe.jsx)(fAe,{name:"ConfigurationAccountsContainer__Controls__Search",value:r,onChange:e=>o(e.target.value),size:"md",hideButton:!0}),(0,fe.jsx)(pAe,{id:"CreateSurveyButton",onClick:p,children:"+ Create a survey"}),t>1&&(0,fe.jsx)(Hb,{id:"survey-container-pagination",name:"survey-container-pagination",currentPage:i,itemsCountPerPage:e,totalPagesCount:t,onChange:l,size:"sm"})]})}),s&&(0,fe.jsx)(ie.aF,{size:"xl",onDismiss:p,dismissable:!0,enableEscapeKey:!0,show:!0,children:(0,fe.jsx)($ke,{children:(0,fe.jsx)(HNe,{onSuccess:u,onDismiss:p,title:"Create a survey",submitButtonText:"Create Survey",buttonDescription:"This will send your survey to your recipients"})})}),(0,fe.jsx)(Mc,{result:c,loading:h,data:T,error:x})]})}const hAe=le.default.div`
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: ${e=>e.theme.geometry.md.spacing};
`,xAe=le.default.div`
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: white;
  opacity: 0.5;
  width: 100%;
  height: 100%;
`,TAe=(0,le.default)(ie.KH)`
  overflow: auto;
`,bAe=(0,le.default)(ie.fI)`
  height: 100%;
`,vAe=le.default.div`
  flex: 1 1 auto;
  background-color: ${e=>e.theme.colors.basic.white};
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
`,CAe=(0,le.default)(ie.fv)`
  padding-right: ${e=>e.theme.geometry.md.spacing};
`,kAe=(0,le.default)(Ae)`
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
  z-index: 3;
  position: relative;
`,SAe=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
`,NAe=le.default.div`
  background-color: #eb3223;
  height: 18px;
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
`,AAe=(0,ce.Ay)(e=>{let{intl:n}=e;const t=lr(),a=Je(),{token:i}=qe(),l=or(),r=t.survey.some(e=>e.startsWith("getSurveys")),o=t.survey.some(e=>e.startsWith("getReceivedSurveys")),s=zo(),d=!!s&&s.accessControls.surveys,c={accountId:a,userId:i.sub},{data:u}=Id(c),p=Uf(u?.getReceivedSurveysPage?.rows);return(0,fe.jsxs)(hAe,{children:[!d&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(xAe,{}),(0,fe.jsx)(kAe,{name:"FormsContainer_Access_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Surveys",body:"Currently Surveys are not included in your subscription, if you’d like access to Surveys please contact Rio AI Ltd or get in touch with your Business Admin."})]}),(0,fe.jsxs)(bAe,{container:!0,item:!0,children:[(0,fe.jsx)(CAe,{container:!0,item:!0,span:3,children:(0,fe.jsxs)(TAe,{id:"pic",name:"forms-menu",inline:!0,size:"md",text:(0,fe.jsx)(de.A,{id:"pages.surveys.nav.heading"}),icon:["rio","clipboard-check-custom"],children:[r&&(0,fe.jsx)(ug,{to:l.surveys.sent.overview,base:"sent",children:(0,fe.jsxs)(ie.C8,{text:"Surveys sent",dropdown:!0,children:[(0,fe.jsx)(ug,{name:"forms-menu__item--overview",to:l.surveys.sent.overview,children:(0,fe.jsx)(ie.nc,{text:n.formatMessage({id:"pages.surveys.subjects.overview"})})}),(0,fe.jsx)(ug,{name:"forms-menu__item--contributors",to:l.surveys.sent.contributors,children:(0,fe.jsx)(ie.nc,{text:n.formatMessage({id:"pages.surveys.subjects.contributors"})})}),(0,fe.jsx)(ug,{name:"forms-menu__item--surveys",to:l.surveys.sent.surveys,children:(0,fe.jsx)(ie.nc,{text:n.formatMessage({id:"pages.surveys.subjects.surveys"})})})]})}),o&&(0,fe.jsx)(ug,{name:"forms-menu__item--surveys",to:l.surveys.received.surveys,children:(0,fe.jsx)(ie.C8,{text:(0,fe.jsxs)(SAe,{children:[!!p&&(0,fe.jsx)(NAe,{children:p}),n.formatMessage({id:"pages.surveys.subjects.surveysReceived"})]})})})]})}),(0,fe.jsx)(ie.fv,{container:!0,inline:!0,span:10,children:(0,fe.jsx)(vAe,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:l.surveys.sent.overview,element:xbe(cAe,r)}),(0,fe.jsx)(m.qh,{path:l.surveys.sent.contributors,element:xbe($ve,r)}),(0,fe.jsx)(m.qh,{path:l.surveys.sent.contributor,element:xbe(Sbe,r)}),(0,fe.jsx)(m.qh,{path:l.surveys.sent.contributorAuditLog,element:xbe(Rve,r)}),(0,fe.jsx)(m.qh,{path:l.surveys.sent.submission,element:xbe(Yve,r)}),(0,fe.jsx)(m.qh,{path:l.surveys.sent.surveys,element:xbe(gAe,r)}),(0,fe.jsx)(m.qh,{path:l.surveys.sent.survey,element:xbe(cAe,r)}),(0,fe.jsx)(m.qh,{path:l.surveys.received.surveys,element:xbe(hke,o)}),(0,fe.jsx)(m.qh,{path:l.surveys.received.survey,element:xbe(ske,o)}),(0,fe.jsx)(m.qh,{path:l.surveys.sent.auditLog,element:xbe(tve,r)}),(0,fe.jsx)(m.qh,{path:l.surveys.received.auditLog,element:xbe(kve,o)}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(Oc,{})})]})})})]})]})}),RAe=le.default.div`
  font-size: ${e=>{let{theme:n}=e;return n.fonts.xxl.size}};
  font-family: ${e=>{let{theme:n}=e;return n.fonts.family}};
  padding: ${e=>{let{theme:n}=e;return n.geometry.xl.spacing}};
  padding-bottom: 0;
  color: ${e=>{let{theme:n}=e;return n.colors.text.light.text}};
`,DAe=e=>{const n=(()=>{const e=localStorage.getItem("ID_TOKEN");return e?(0,iu.A)(e):null})();return n?e=(e=(e=e.replace(/\[FIRSTNAME\]/g,n.given_name)).replace(/\[LASTNAME\]/g,n.family_name)).replace(/\[EMAIL\]/g,n.email):""},LAe=e=>{let{message:n}=e;return(0,fe.jsx)(RAe,{children:DAe(n)})};var IAe=t(71790);const jAe=le.default.div`
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  z-index: 99;
  margin -10px 0 0 -10px;
  box-shadow: inset 0px 0px 100px 40px rgba(0, 0, 0, 0.04);
`,wAe=(0,le.default)(p.Link)`
  padding: 15px;
  background: ${e=>{let{theme:n}=e;return n.colors.primary.normal.background}};
  border-radius: 100px;

  :hover {
    background: ${e=>{let{theme:n}=e;return n.colors.primary.dark.background}};
  }
`,OAe=le.default.div`
  padding: 10px;
  font-size: ${e=>{let{theme:n}=e;return n.fonts.lg.size}};
  text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
`,EAe=e=>{let{contentSection:n}=e;return(0,fe.jsxs)(jAe,{children:[(0,fe.jsxs)(OAe,{children:["You do not currently subscribe to Rio ",n,"."]}),(0,fe.jsx)(wAe,{to:"/contact",children:"Find out more"})]})},_Ae=le.default.div`
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  width: auto;
  height: 80%;
  padding: 0 32px;
  @media (max-width: 1920px) {
    transform: scale(0.9);
  }
`,FAe=le.default.div`
  width: calc(100% / 3);
  height: 100%;
  display: flex;
  flex: 1 0 calc(100% / 3);
  max-width: 520px;
  margin: 32px;
`,PAe=e=>{let{children:n}=e;return n.length>1?(0,fe.jsx)(_Ae,{children:n.map((e,n)=>[n,e]).map(e=>(0,fe.jsx)(FAe,{children:e[1]},e[0]))}):(0,fe.jsx)(_Ae,{children:(0,fe.jsx)(FAe,{children:n})})},BAe=le.default.div`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: ${e=>{let{theme:n}=e;return n.colors.text.light.text}};
  ${e=>{let{noAccess:n}=e;return n?"opacity: 0.3;":""}}
`,UAe=le.default.div`
  padding: 10px;
  font-size: ${e=>{let{theme:n}=e;return n.fonts.lg.size}};
`,$Ae=(0,le.default)(ie.In)`
  color: rgba(0, 0, 0, 0.3);
  margin: ${e=>{let{theme:n}=e;return n.geometry.md.spacing}};
`,MAe=e=>{let{noAccess:n}=e;return(0,fe.jsxs)(BAe,{noAccess:n,children:[(0,fe.jsx)($Ae,{icon:"thumbs-up",size:"4x"}),(0,fe.jsx)(UAe,{children:"Nice, no outstanding actions"})]})};var VAe=t(24818);const GAe=le.keyframes`
  0% {transform:translateX(-100%);}
  100% {transform:translateX(100%);}
`,zAe=le.css`
  ${GAe} 1s infinite 0s;
`,WAe=le.css`
  &:after {
    content: '';
    color: black;
    top: 0;
    transform: translateX(-100%);
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 999;
    animation: ${zAe};
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(128, 186, 232, 0) 99%, rgba(125, 185, 232, 0) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#007db9e8',GradientType=1 ); /* IE6-9 */
  }
`,qAe=(0,le.default)(ie.fv)`
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  opacity: ${e=>e.disabled?"0.5":"1"};
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,JAe=le.default.div`
  position: relative;
  padding: 0 0 75% 0;
  flex: 0 0 auto;
  background: ${e=>{let{theme:n}=e;return n.colors.secondary.dark.background}} url(${e=>{let{src:n}=e;return n}}) center center no-repeat;
  background-size: cover;
`,YAe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.md.spacing};
  border-top: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: ${e=>{let{theme:n}=e;return n.colors.basic.white}};
`,HAe=(0,le.default)(ie.GQ)`
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -50px;
  margin-left: -50px;
  display: inline-flex;
  flex: 0 0 auto;
`,KAe=(0,le.default)(ie.In)`
  margin-left: auto;
  color: ${e=>{let{theme:n}=e;return n.colors.success.normal.background}};
`,QAe=(0,le.default)(ie.In)`
  margin-left: auto;
  color: ${e=>{let{theme:n}=e;return n.colors.primary.normal.background}};
`,ZAe=le.default.div`
  position: absolute;
  left: 0px;
  right: 0px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  height: 100%;
`,XAe=(0,le.default)(ie.In)`
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 23px;
`,eRe=e=>{let{learnAccess:n,courseId:t,title:a,image:i,courseProgress:l,restricted:r}=e;return(0,fe.jsxs)(qAe,{name:`CourseTile CourseTile--${t}`,container:!0,item:!0,disabled:!n,children:[(0,fe.jsxs)(JAe,{name:"CourseTile__Thumbnail",src:i,children:[!i&&(0,fe.jsx)(HAe,{name:"CourseTile__Icon",height:"100px",size:"lg",icon:"graduation-cap",iconColor:"white",circleColor:"white"}),r?(0,fe.jsx)(ZAe,{children:(0,fe.jsx)(XAe,{icon:"lock",color:"#ababab"})}):null]}),(0,fe.jsx)(YAe,{container:!0,item:!0,vdistribution:"between",children:(0,fe.jsxs)(ie.fI,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(ie.DZ,{name:"CourseTile__Title",size:"lg",color:"dark",weight:"light",children:a}),l===Mt&&(0,fe.jsx)(KAe,{icon:"check",size:"lg"}),l===$t&&(0,fe.jsx)(QAe,{icon:"clock",size:"lg"})]})})]})},nRe=(0,le.default)(ie.fv)`
  background-color: ${e=>e.theme.colors.basic.white};
  opacity: ${e=>e.disabled?"0.5":"1"};
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,tRe=le.default.div`
  position: relative;
  padding: 0 0 75% 0;
  flex: 0 0 auto;
  background: ${e=>{let{theme:n}=e;return n.colors.secondary.dark.background}} url(${e=>{let{src:n}=e;return n}}) center center no-repeat;
  background-size: cover;

  :hover {
    width: 100%;
  }

  ${e=>{if(e.placeholder)return le.css`
        background: ${e.theme.colors.neutral.normal.background};
        ${WAe}
      `}}
`,aRe=(0,le.default)(ie.fv)`
  padding-top: 10px;
`,iRe=(0,le.default)(ie.GQ)`
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -50px;
  margin-left: -50px;
  display: inline-flex;
  flex: 0 0 auto;
`,lRe=le.default.h3`
  position: relative;
  font-size: ${e=>{let{theme:n}=e;return n.fonts.md.size}};
  color: ${e=>{let{placeholder:n}=e;return n?"rgba(0,0,0,0)":"black"}};
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2; /* number of lines to show */
  -webkit-box-orient: vertical;
  ${e=>{let{column:n}=e;return n?"padding: 10px 20px;":""}}

  ${e=>{if(e.placeholder)return le.css`
        min-width: 100%;
        min-height: 20px;
        background: ${e.theme.colors.neutral.normal.background};
        ${WAe}
      `}}
`,rRe=(0,le.default)(ie.fI)`
  padding-bottom: ${e=>{let{theme:n}=e;return n.geometry.xs.spacing}};
`,oRe=le.default.div`
  padding: ${e=>{let{column:n}=e;return n?"0":"0 10px 0 18px"}};
  display: flex;
  flex-direction: ${e=>{let{column:n}=e;return n?"column":"row"}};
  justify-content: start;
  overflow-x: auto;
  display: grid;
  grid-template-columns: repeat(${e=>{let{column:n}=e;return n?"1":"10"}}, minmax(180px, 1fr));
  grid-gap: ${e=>e.theme.geometry.md.spacing};
  margin: 0;
`,sRe=le.default.h1`
  padding: ${e=>e.theme.geometry.xs.spacing};
  font-weight: bold;
  margin-bottom: ${e=>e.theme.geometry.xxs.spacing};
  font-size: ${e=>e.theme.fonts.xxl.size};
`,dRe=le.default.div`
  margin-top: ${e=>{let{theme:n,noBackground:t}=e;return t?"0":n.geometry.md.spacing}};
  background: ${e=>{let{noBackground:n}=e;return n?"none":"white"}};
  color: ${e=>e.theme.colors.text.light.text};
  min-height: ${e=>{let{noBackground:n}=e;return n?"0":"232px"}};
`,cRe=(0,le.default)(e=>{let{learnAccess:n,courseId:t,title:a,image:i,placeholder:l,column:r,restricted:o}=e;return(0,fe.jsxs)(nRe,{name:`CourseTile CourseTile--${t}`,container:!0,item:!0,disabled:!n,children:[(0,fe.jsxs)(tRe,{name:"CourseTile__Thumbnail",src:i,placeholder:l,children:[!i&&(0,fe.jsx)(iRe,{name:"CourseTile__Icon",height:"100px",size:"lg",icon:"graduation-cap",iconColor:"white",circleColor:"white"}),o?(0,fe.jsx)(ZAe,{children:(0,fe.jsx)(XAe,{icon:"lock",color:"#ababab"})}):null]}),(0,fe.jsx)(aRe,{container:!0,item:!0,vdistribution:"between",children:(0,fe.jsx)(rRe,{container:!0,item:!0,itemAlign:"top",children:(0,fe.jsx)(lRe,{name:"CourseTile__Title",size:"lg",color:"dark",weight:"light",placeholder:l,column:r,children:a})})})]})})`
  border: none;
`,uRe=le.default.div`
  display: flex;
  align-items: baseline;
  padding-left: ${e=>e.theme.geometry.xs.spacing};
  align-items: center;
`,pRe=(0,le.default)(p.Link)`
  text-decoration: underline;
  opacity: 0.7;
  font-size: ${e=>{let{theme:n}=e;return n.fonts.md.size}};
`,mRe=(0,le.default)(ie.In)`
  margin-left: ${e=>e.theme.geometry.xs.spacing};
  color: ${e=>{let{theme:n}=e;return n.colors.success.normal.background}};
`,fRe=(0,le.default)(ie.In)`
  margin-left: ${e=>e.theme.geometry.xs.spacing};
  color: ${e=>{let{theme:n}=e;return n.colors.primary.normal.background}};
`,yRe=le.default.div`
  margin-left: ${e=>e.theme.geometry.xs.spacing};
`,gRe=(0,le.default)(ie.To)`
  > p {
    font-family: ${e=>e.theme.fonts.family};
    color: ${e=>e.theme.colors.text.light.text};
    font-weight: ${e=>e.theme.fonts.weight.default};
  }
`,hRe=e=>{let{column:n}=e;return(0,fe.jsx)(p.Link,{name:"CoursesBanner__Link__Placeholder",to:"",children:(0,fe.jsx)(cRe,{learnAccess:!0,courseId:0,title:"Placeholder",viewed:!1,type:null,image:"",placeholder:!0,column:n},1)},1)},xRe=(e,n)=>"Explore"===n?xn().shuffle(e):e,TRe=e=>{let{name:n,items:t,sectionTitle:a,highlightColor:i,learnAccess:l,loading:r,column:o,noBackground:s,noHeader:d,type:c,restricted:u,restrictedCourseList:p,bundleDescription:m}=e;return(0,fe.jsxs)(dRe,{name:n,highlightColor:i,noBackground:s,children:[!d&&(0,fe.jsxs)(uRe,{children:[(0,fe.jsx)(sRe,{children:a}),(0,fe.jsx)(pRe,{name:`${c}-ViewAll`,to:t.length>0?`/engage/${c.toLowerCase()}`:"contact",children:(0,fe.jsx)(de.A,{id:"pages.learn.viewLink",values:{amount:t.length}})}),(0,fe.jsx)(yRe,{children:(0,fe.jsx)(gRe,{name:"Bundle__MarkDown--Description",source:xn().truncate(m,{length:100,separator:" ",omission:" ..."})})})]}),(0,fe.jsxs)(oRe,{column:o,children:[r&&" ".repeat(10).split("").map((e,n)=>(0,fe.jsx)(hRe,{column:o,children:"Loading"},`Course__Loading__key__${n}`)),!r&&xRe(t,c).slice(0,10).map((e,n)=>{const t=e.userCourseMetaData&&e.userCourseMetaData.courseProgress?e.userCourseMetaData.courseProgress:Ut,a=(0,VAe.A)(c)?c:e?.bundleIdList[0],i=(0,fe.jsxs)(ie.fI,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(ie.DZ,{name:"CourseTile__Title",size:"md",color:"dark",weight:"light",children:e.name}),t===Mt&&(0,fe.jsx)(mRe,{icon:"check",size:"1x"}),t===$t&&(0,fe.jsx)(fRe,{icon:"clock",size:"1x"})]});let r=0!==n&&u;r=!("Explore"!==c||!p.includes(e.id))||r;const s=r?"#":`./${a?a+"/":""}course${e.type===gn.US.Scorm?"/SCORM":""}/${e.id}`;return(0,fe.jsx)(cg,{name:`CoursesBanner__Link__${e.id}`,to:s,restricted:r,title:r?"Not yet available - part of restricted content order.":"",children:(0,fe.jsx)(cRe,{restricted:r,learnAccess:l,courseId:e.id,title:i,viewed:e.metaData.viewed,type:e.type,image:e.metaData.thumbnail,column:o},e.id)},`link${n}-${e.id}`)})]})]})},bRe=e=>!e.userCourseMetaData||e.userCourseMetaData&&![$t,Mt].includes(e.userCourseMetaData.courseProgress),vRe=e=>e.userCourseMetaData&&e.userCourseMetaData.courseProgress===$t,CRe=e=>e.userCourseMetaData&&e.userCourseMetaData.courseProgress===Mt,kRe=(e,n)=>e.userCourseMetaData?.lastUpdatedAt>n.userCourseMetaData?.lastUpdatedAt?-1:e.userCourseMetaData?.lastUpdatedAt<n.userCourseMetaData?.lastUpdatedAt?1:0,SRe=e=>e.split("")[0].toUpperCase()+e.slice(1),NRe=(0,le.default)(ie.fv)`
  opacity: ${e=>e.comingSoon?"0.5":"1"};
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,ARe=(0,le.default)(ie.fv)`
  position: relative;
  opacity: ${e=>e.comingSoon?"0.5":"1"};
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: ${e=>e.theme.colors.neutral.normal.background};
  height: 200px;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  ${WAe}
`,RRe=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
  padding-bottom: 0;
  flex: 0 0 auto;
`,DRe=(0,le.default)(ie.GQ)`
  z-index: 100;
  background: #fff;
  display: inline-flex;
`,LRe=(0,le.default)(ie.fI)`
  z-index: 90;
  padding: ${e=>e.theme.geometry.md.spacing};
  padding-top: ${e=>e.theme.geometry.xl.spacing};
  border-top: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  margin-top: -${e=>e.theme.geometry.lg.spacing};
`,IRe=le.default.div`
  flex: 0 0 auto;
  opacity: 0.7;
  display: inline-block;
  background: ${e=>e.theme.colors.overlay.dark.background};
  padding: ${e=>e.theme.geometry.xs.spacing} ${e=>e.theme.geometry.sm.spacing};
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,jRe=(0,le.default)(ie.fv)`
  flex-grow: 9;
`,wRe=(0,le.default)(ie.fv)`
  align-items: center;
  flex-grow: 3;
`,ORe=e=>{let{title:n,category:t,icon:a,iconColor:i,comingSoon:l,placeholder:r,status:o}=e;return(0,fe.jsx)(fe.Fragment,{children:r?(0,fe.jsx)(ARe,{container:!0,item:!0}):(0,fe.jsxs)(NRe,{container:!0,item:!0,comingSoon:l,children:[(0,fe.jsxs)(RRe,{container:!0,item:!0,distribution:"between",children:[(0,fe.jsx)(DRe,{height:"70px",size:"lg",icon:a,iconColor:i,circleColor:i}),(0,fe.jsx)(ie.DZ,{inline:!0,size:"md",color:"normal",weight:"light",children:t})]}),(0,fe.jsxs)(LRe,{container:!0,item:!0,vdistribution:"between",children:[(0,fe.jsx)(jRe,{span:o?9:12,children:(0,fe.jsx)(ie.DZ,{size:"lg",color:"dark",weight:"light",children:n})}),o&&(0,fe.jsx)(wRe,{container:!0,span:3,children:o}),l&&(0,fe.jsx)(IRe,{children:(0,fe.jsx)(ie.EY,{align:"center",size:"xs",color:"white",children:"Coming soon"})})]})]})})},ERe=le.default.div`
  position: absolute;
  right: ${e=>e.isTile?e.theme.geometry.sm.spacing:"30%"};
  top: 30%;
  flex: 0 0 auto;
  display: inline-block;
  background: ${e=>e.isDanger?e.theme.colors.danger.normal.background:e.theme.colors.warning.normal.background};
  padding: ${e=>e.theme.geometry.xs.spacing} ${e=>e.theme.geometry.sm.spacing};
`,_Re=le.default.div`
  display: flex;
`,FRe=(0,le.default)(ie.In)`
  color: white;
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,PRe=e=>{let{date:n,tile:t}=e;const a=!!(i=n)&&bn()().isAfter(i);var i;const l=function(e){return!!e&&bn()().isBetween(bn()(e).subtract(1,"months"),bn()(e))}(n);return(0,fe.jsx)(fe.Fragment,{children:(a||l)&&(0,fe.jsx)(ERe,{isTile:t,isDanger:a,children:(0,fe.jsxs)(_Re,{children:[(0,fe.jsx)(FRe,{icon:"exclamation-circle"}),(0,fe.jsx)(ie.EY,{align:"center",size:"xs",color:"white",children:"Review"})]})})})},BRe="Carbon",URe="Electricity",$Re="Water",MRe="Gas",VRe="Waste",GRe="Transport",zRe="Materials",WRe={[VRe]:"trash",[BRe]:"recycle",[URe]:"bolt",[MRe]:"burn",[$Re]:"tint",[GRe]:"truck",[zRe]:"box"},qRe={[BRe]:"/reporting/v2/c03a4b07-ce4b-48f4-96c9-957f481bb3f0/Carbon",[URe]:"/reporting/v2/305b11dc-65da-40c5-b321-f41bd0569c5b/Electricity",[MRe]:"/reporting/v2/8d98b676-c131-45ab-a8c7-c5bdf96366c2/Natural Gas",[GRe]:"/reporting/v2/76bdc04f-58ee-4f3c-840f-64309b78d23c/Transport",[VRe]:"/reporting/v2/9c64c17b-21a0-4b8d-a8c4-e630d92e2880/Waste",[$Re]:"/reporting/v2/69050da5-5851-4a23-ac84-012b4cf7d6e7/Water"},JRe=le.default.div`
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;
`,YRe=le.default.div`
  font-size: 18px;
  line-height: 28px;
`,HRe=(e,n)=>({left:{name:(0,fe.jsx)(de.A,{id:"pages.home.engageTasksStatuses.incomplete"}),value:`${e} min`,alert:e>0,new:!1},right:{name:(0,fe.jsx)(de.A,{id:"pages.home.engageTasksStatuses.completed"}),value:`${n} min`,alert:!1,new:!1}}),KRe=e=>{if(e){const n=28;return bn()(bn().now()).dayOfYear()-bn()(e).dayOfYear()>=n}return!1},QRe=e=>e?new Date(e).toLocaleString().split(",")[0]:"-",ZRe=(0,le.default)(ie.fv)`
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
  cursor: default;
`,XRe=(0,le.default)(p.Link)`
  position: relative;
  padding: 16px;
  background: ${e=>{let{theme:n}=e;return n.colors.primary.light.background}};
  font-size: 20px;
  color: white;
  width: 100%;
  text-align: center;

  :hover {
    background: ${e=>{let{theme:n}=e;return n.colors.primary.dark.background}};
  }
`,eDe=(0,le.default)(IAe.Vq)`
  text-decoration: underline;
`,nDe=le.default.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
`,tDe=le.default.div`
  position: relative;
  padding: 16px;
  background: #ff9789;
  font-size: 20px;
  color: white;
  width: 100%;
  text-align: center;
`,aDe=le.default.div`
  position: relative;
  padding: 16px;
  text-align: center;
  background: ${e=>e.theme.colors.neutral.normal.background};
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  margin-top: 10px;
  margin-bottom: 10px;
  ${WAe}
`,iDe=e=>{let{loading:n,goTo:t,title:a,buttonTitle:i,category:l,icon:r,iconColor:o,status:s}=e;return(0,fe.jsxs)(ZRe,{children:[(0,fe.jsx)(ORe,{placeholder:n,title:a,category:l,icon:r,iconColor:o,status:s}),n&&(0,fe.jsx)(aDe,{}),!n&&!!t&&(0,fe.jsx)(XRe,{to:t,children:i})]})},lDe=e=>{let{loading:n}=e;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(nDe,{children:[(0,fe.jsx)(ORe,{placeholder:n,title:"Paper and Card disposal 42% over market rate – March 2020",category:"Investigate",icon:"pound-sign",iconColor:"quaternary"}),(0,fe.jsx)(tDe,{})]}),(0,fe.jsxs)(nDe,{children:[(0,fe.jsx)(ORe,{placeholder:n,title:"Metal disposal 62% over market rate – May 2020",category:"Investigate",icon:"pound-sign",iconColor:"quaternary"}),(0,fe.jsx)(tDe,{})]}),(0,fe.jsxs)(nDe,{children:[(0,fe.jsx)(ORe,{placeholder:n,title:"Paper and card could benefit from baling/compaction to reduce collection frequency",category:"Investigate",icon:"recycle",iconColor:"quaternary"}),(0,fe.jsx)(tDe,{})]})]})},rDe=e=>{let{count:n,documentType:t,loading:a}=e;return(0,fe.jsxs)(ZRe,{to:"data/Waste/view",children:[(0,fe.jsx)(ORe,{placeholder:a,title:`Missing: ${n} ${t} IDs`,category:"Action",icon:"file-alt",iconColor:"tertiary"}),a&&(0,fe.jsx)(aDe,{}),!a&&(0,fe.jsxs)(XRe,{to:"data/Waste/view",children:["Add ",t," IDs"]})]})},oDe=e=>{let{id:n,reviewDate:t,fileName:a,loading:i}=e;const l=bn()().isAfter(bn()(t))?`Your document ${a} has an expired review date.`:`Your document ${a} is approaching its review date.`;return(0,fe.jsxs)(ZRe,{to:`documents/all/${n}`,children:[(0,fe.jsx)(ORe,{placeholder:i,title:l,category:"Action",icon:"file-alt",iconColor:"tertiary"}),i&&(0,fe.jsx)(aDe,{}),!i&&(0,fe.jsx)(XRe,{to:`documents/all/${n}`,children:`Review ${a}`})]})},sDe=e=>{let{id:n,title:t,alertText:a,date:i}=e;const l=`Legislation item ${t} ${a}`;return(0,fe.jsxs)(ZRe,{to:`governance/legislation/${n}`,children:[(0,fe.jsx)(PRe,{date:i,tile:!0}),(0,fe.jsx)(ORe,{title:l,category:"Action",icon:"file-alt",iconColor:"tertiary"}),(0,fe.jsx)(XRe,{to:`governance/legislation/${n}`,children:"Review Legislation"})]})},dDe=e=>{let{id:n,activity:t,alertText:a,reviewDate:i}=e;const l=`Environmental aspect ${t} ${a}`,r=`governance/environmental-aspects?showEditModal=${n}`;return(0,fe.jsxs)(ZRe,{to:r,children:[(0,fe.jsx)(PRe,{date:i,tile:!0}),(0,fe.jsx)(ORe,{title:l,category:"Action",icon:"file-alt",iconColor:"tertiary"}),(0,fe.jsx)(XRe,{to:r,children:`Review Aspect ${t}`})]})},cDe=le.default.div`
  height: 100%;
  ${e=>{let{access:n}=e;return n?"":"opacity: 0.3;"}}
  ${e=>{let{access:n}=e;return n?"":"overflow-y: hidden;"}}
`,uDe=e=>{let{children:n,readOnly:t}=e;return(0,fe.jsxs)(JRe,{children:[!t&&n,t&&(0,fe.jsx)(MAe,{})]})},pDe=e=>e&&e.length?e.reduce((e,n)=>e+n.metaData.cpd,0):0,mDe=(0,ce.Ay)(e=>{let{access:n,loading:t,data:a,intl:i,accountId:l}=e;const{hasLearnAccess:r,hasComplyAccess:o,hasDataAccess:s}=n,{learnLoading:d,complyLoading:c,analyseLoading:u}=t,{learnData:p,complyData:m,analyseData:f}=a,{incompleteCourses:y,completedCourses:g}=((e,n)=>!n&&e?{incompleteCourses:e.getAvailableCourses.data.filter(vRe).sort(kRe),completedCourses:e.getAvailableCourses.data.filter(CRe)}:{incompleteCourses:[],completedCourses:[]})(p,d),{documentsToReview:h,expiredLegislation:x,approachingLegislation:T,flaggedLegislation:b,expiredAspects:v,approachingAspects:C}=((e,n)=>!n&&e?{documentsToReview:e.getDocumentRecordsForReview,expiredLegislation:e.getLegislationAlerts.expired,approachingLegislation:e.getLegislationAlerts.approaching,flaggedLegislation:e.getLegislationAlerts.flagged,expiredAspects:e.getAspectsAlerts.expired,approachingAspects:e.getAspectsAlerts.approaching}:{})(m,c),{lastWasteImport:k,lastWasteImportOverOneMonth:S,targets:N}=((e,n)=>{if(!n&&e){const n=e.getDataImportBatchesByAccountId.batches[0]?e.getDataImportBatchesByAccountId.batches[0].timeStamp:null;return{lastWasteImport:n,lastWasteImportOverOneMonth:KRe(n),targets:e.getTargetsByAccountId}}return{}})(f,u),A=He(),R=lr(),D=Pt.includes(l),L=0===x?.length&&0===T?.length&&0===h?.length&&0===b?.length&&0===v?.length&&0===C?.length;return D?(0,fe.jsx)(PAe,{children:(0,fe.jsx)(ie.x0,{darkMode:!1,layout:{reverse:!1,header:"center"},circleProps:{accentColor:"secondary",icon:"graduation-cap",title:i.formatMessage({id:"pages.home.dashboard.learn"}),linkTo:"engage",badgeStyle:!1},statProps:HRe(pDe(y),pDe(g)),children:(0,fe.jsxs)(uDe,{readOnly:!R.learn.find(e=>e.startsWith("updateCourseProgress")),children:[!r&&(0,fe.jsx)(EAe,{contentSection:"Engage"}),(0,fe.jsxs)(cDe,{access:r,children:[d&&(0,fe.jsx)(TRe,{sectionTitle:"Continue",highlightColor:"secondary",items:[],learnAccess:r,loading:!0,column:!0,noBackground:!0,noHeader:!0}),y.length>0&&p&&(0,fe.jsx)(TRe,{sectionTitle:"Continue",highlightColor:"secondary",items:y,learnAccess:r,column:!0,noBackground:!0,noHeader:!0})||!d&&(0,fe.jsx)(MAe,{})]})]})})}):(0,fe.jsxs)(PAe,{children:[(0,fe.jsx)(ie.x0,{darkMode:!1,layout:{reverse:!1,header:"center"},circleProps:{accentColor:"secondary",icon:"graduation-cap",title:i.formatMessage({id:"pages.home.dashboard.learn"}),linkTo:"engage",badgeStyle:!1},statProps:HRe(pDe(y),pDe(g)),children:(0,fe.jsxs)(uDe,{readOnly:!R.learn.find(e=>e.startsWith("updateCourseProgress")),children:[!r&&(0,fe.jsx)(EAe,{contentSection:"Engage"}),(0,fe.jsxs)(cDe,{access:r,children:[d&&(0,fe.jsx)(TRe,{sectionTitle:"Continue",highlightColor:"secondary",items:[],learnAccess:r,loading:!0,column:!0,noBackground:!0,noHeader:!0}),y.length>0&&p&&(0,fe.jsx)(TRe,{sectionTitle:"Continue",highlightColor:"secondary",items:y,learnAccess:r,column:!0,noBackground:!0,noHeader:!0})||!d&&(0,fe.jsx)(MAe,{})]})]})}),(0,fe.jsx)(ie.x0,{darkMode:!1,layout:{reverse:!1,header:"center"},circleProps:{accentColor:"tertiary",icon:"pencil-alt",title:i.formatMessage({id:"pages.home.dashboard.governance"}),linkTo:"governance",badgeStyle:!1},statProps:{},children:(0,fe.jsxs)(uDe,{readOnly:!R.governance.find(e=>e.startsWith("editLegislation"))&&!R.document.find(e=>e.startsWith("create")),children:[!o&&(0,fe.jsx)(EAe,{contentSection:"Governance"}),(0,fe.jsxs)(cDe,{access:o,children:[c&&(0,fe.jsx)(fe.Fragment,{children:new Array(5).fill(0).map((e,n)=>n).map(e=>(0,fe.jsx)(rDe,{loading:c},e))}),!c&&x&&x.map(e=>(0,fe.jsx)(sDe,{id:e.id,title:e.title,alertText:"has an expired review date.",date:bn()().subtract(1,"day")},e.id)),!c&&T&&T.map(e=>(0,fe.jsx)(sDe,{id:e.id,title:e.title,alertText:"is approaching its review date.",date:bn()().add(1,"day")},e.id)),!c&&b&&b.map(e=>(0,fe.jsx)(sDe,{id:e.id,title:e.title,alertText:"has been flagged as changed by the Rio team."},e.id)),!c&&h&&h.map(e=>(0,fe.jsx)(oDe,{id:e.id,reviewDate:e.reviewDate,fileName:e.fileName},e.id)),!c&&v&&v.map(e=>(0,fe.jsx)(dDe,{id:e.id,activity:e.activity,reviewDate:e.reviewDate,alertText:"has an expired review date."},document.id)),!c&&C&&C.map(e=>(0,fe.jsx)(dDe,{id:e.id,activity:e.activity,reviewDate:e.reviewDate,alertText:"is approaching its review date."},document.id)),!c&&L&&(0,fe.jsx)(MAe,{})]})]})}),(0,fe.jsx)(ie.x0,{darkMode:!1,layout:{reverse:!1,header:"center"},circleProps:{accentColor:"quaternary",icon:"chart-area",title:i.formatMessage({id:"pages.home.dashboard.analyse"}),linkTo:"reporting",badgeStyle:!1},statProps:(I=k,{left:{name:"Last Upload",value:(0,fe.jsx)(YRe,{children:QRe(I)}),alert:KRe(I),new:!1}}),children:(0,fe.jsxs)(uDe,{readOnly:!R.data.find(e=>e.startsWith("createImportBatch")),children:[!s&&(0,fe.jsx)(EAe,{contentSection:"Data"}),(0,fe.jsxs)(cDe,{access:s,children:[u&&new Array(5).fill(0).map((e,n)=>n).map(e=>(0,fe.jsx)(iDe,{loading:t},e)),!u&&S&&(0,fe.jsx)(iDe,{goTo:"data/Waste/uploads",title:"It has been one month since you last uploaded waste data",category:"Action",icon:"trash",iconColor:"quaternary",buttonTitle:"Update your data"}),!u&&(N?.length?N.map(e=>{const n=`${e.name} between ${bn()(e.startDate).utc().format("DD/MM/YYYY")} and ${bn()(e.endDate).utc().format("DD/MM/YYYY")}`;return(0,fe.jsx)(iDe,{goTo:qRe[e.topic.utility],title:n,buttonTitle:"Review performance",icon:WRe[e.topic.utility],iconColor:"quaternary",category:(0,fe.jsx)(eDe,{to:`governance/targets#${e.id}`,smooth:!0,children:"Go to target"}),status:(0,fe.jsx)(Ehe,{...e})},e.id)}):!!R.data.find(e=>e.startsWith("createTarget"))&&(0,fe.jsx)(iDe,{goTo:"governance/targets?showCreateModal=1",title:"You don't have any targets yet - let's create them.",buttonTitle:"Create target",icon:"subscript",iconColor:"quaternary",category:"Action"})),!u&&A&&(0,fe.jsx)(lDe,{}),!u&&0===N?.length&&!R.data.find(e=>e.startsWith("createTarget"))&&!S&&!A&&(0,fe.jsx)(MAe,{})]})]})})]});var I}),fDe=e=>{const n=lr(),{token:t}=qe(),a=zo(),i=a?a.id:null,l=t?t.sub:null,r=a?{hasLearnAccess:a.accessControls.learn,hasComplyAccess:a.accessControls.comply,hasDataAccess:a.accessControls.data}:{hasLearnAccess:!0,hasComplyAccess:!0,hasDataAccess:!0},{data:o,loading:s}=(0,x.IT)(rp,{variables:{pageNumber:1,userId:l,accountId:i}}),{data:d,loading:c}=(0,x.IT)(Zo,{variables:{accountId:i},fetchPolicy:"network-only"}),u=n.governance.find(e=>e.startsWith("getAspect")),{data:p,loading:m}=(0,x.IT)(es,{skip:!u,variables:{accountId:i},fetchPolicy:"network-only"}),f=n.governance.find(e=>e.startsWith("getLegislation")),{data:y,loading:g}=(0,x.IT)(Xo,{skip:!f,variables:{accountId:i},fetchPolicy:"network-only"}),h=((e,n,t)=>{if(!e)return;const a={...e,getAspectsAlerts:{expired:[],approaching:[]},getLegislationAlerts:{expired:[],approaching:[],flagged:[]}};return n&&(a.getAspectsAlerts=n.getAspectsAlerts),t&&(a.getLegislationAlerts=t.getLegislationAlerts),a})(d,p,y),{data:T,loading:b}=(0,x.IT)(ns,{variables:{accId:i,wasteBatchPage:1}}),v=(0,le.default)(ie.fI)`
    margin: 0 auto 10px;
    justify-content: center;
    display: flex;
    color: rgb(136, 136, 136);
  `;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(mY,{id:"home",padding:"16px"}),(0,fe.jsx)(ie.fI,{name:"home-container",container:!0,distribution:"center",itemAlign:"top",fullHeight:!1,children:(0,fe.jsx)(LAe,{message:e.intl.formatMessage({id:"pages.home.welcome"})})}),(0,fe.jsx)(v,{children:e.intl.formatMessage({id:"pages.home.guidanceText"})}),(0,fe.jsx)(mDe,{access:r,loading:{learnLoading:s||!o,complyLoading:c||m||g||!h,analyseLoading:b||!T},data:{learnData:o,complyData:h,analyseData:T},accountId:i})]})};fDe.propTypes={};const yDe=(0,ce.Ay)(fDe);function gDe(e){let{onComplete:n,onError:t,onDismiss:a,document:i}=e;const l=Je(),{token:r}=qe(),[o,s]=(0,g.useState)(i),[d,{loading:c}]=(0,ln.n)(fj),u=o?.tags?.map(e=>e.value||e.id);return(0,fe.jsx)(_se,{heading:"Edit Document",onDismiss:a,submitButtonTitle:c?"Updating...":"Update",onSubmit:async()=>{try{const e={...o,notes:o.notes?.trim(),tags:u,accountId:l,userId:r.sub,fileName:i.fileName};await d({variables:e}),n(e)}catch(e){t(new Error(`Document ${i.fileName} failed to update`))}},children:(0,fe.jsx)(Ise,{document:o,onChange:s,isSubmitting:c})})}const hDe=[{id:"2403396f-fbc5-4a83-8a93-b0faeb517014",title:"All Documents",filterValue:"",link:"all",icon:"folder",libraries:[gn.zM.Waste,gn.zM.Water,gn.zM.Electricity,gn.zM.Gas,gn.zM.Governance,gn.zM.Transport]},{id:"0d8c4d5d-958b-4231-98d3-28465b93d918",title:"Consignment Notes (EA)",filterValue:"Consignment Note (EA)",link:"ConsignmentNoteEA",icon:"folder",libraries:[gn.zM.Waste]},{id:"cd03cc92-9651-4509-82a5-7758ddcc6814",title:"Consignment Notes (SEPA)",filterValue:"Consignment Note (SEPA)",link:"ConsignmentNoteSEPA",icon:"folder",libraries:[gn.zM.Waste]},{id:"24991346-1812-412e-a0b3-7cbb5ff2add7",title:"Evidence",filterValue:"Evidence Reference",link:"Evidence",icon:"folder",libraries:[gn.zM.Waste]},{id:"59e823b4-9261-40e7-b702-5f59846fda9b",title:"Invoices",filterValue:"Invoice Number",link:"Invoices",icon:"folder",libraries:[gn.zM.Waste,gn.zM.Transport]},{id:"d37ab75f-3c10-4159-b8e2-458628ffb26a",title:"Sales Orders",filterValue:"Sales Order",link:"SalesOrders",icon:"folder",libraries:[gn.zM.Waste]},{id:"b9dfbafd-afea-4eee-9a87-487820252692",title:"Waste Carrier Licences",filterValue:"Waste Carrier Licence",link:"Licences",icon:"folder",libraries:[gn.zM.Waste]},{id:"59d1a3b6-d258-455a-b066-4d1bd093ff8c",title:"Waste Permits",filterValue:"Waste Permit",link:"Permits",icon:"folder",libraries:[gn.zM.Waste]},{id:"1832c095-6713-4d62-a966-f237400bdf5c",title:"Waste Transfer Notes",filterValue:"Waste Transfer Note",link:"WasteTransferNotes",icon:"folder",libraries:[gn.zM.Waste]},{id:"e8ad418f-9b3a-4763-95d7-6c9e90215b13",title:"Waste Contractor Reports",filterValue:"Waste Contractor Report",link:"WasteContractorReports",icon:"folder",libraries:[gn.zM.Waste]},{id:"05c8791c-5b2a-4475-b6f8-dd642e62615d",title:"Travel Receipts",filterValue:"Travel Receipt",link:"TravelReceipts",icon:"folder",libraries:[gn.zM.Transport]},{id:"9b8084ee-b631-4be6-8d3c-859ebebe970d",title:"Audit Reports",filterValue:"Audit Report",link:"AuditReports",icon:"folder",libraries:[gn.zM.Governance]},{id:"f3d665c3-e149-4c07-8834-aa67666a347b",title:"Aspects and Impacts",filterValue:"Aspects and Impacts",link:"AspectsAndImpacts",icon:"folder",libraries:[gn.zM.Governance]},{id:"7c786c9c-bb7b-45c5-90d6-01b44c8f8c18",title:"Certificates",filterValue:"Certificate",link:"Certificates",icon:"folder",libraries:[gn.zM.Governance]},{id:"ed23e08a-4202-4100-a6bc-b3e7566d3bae",title:"Communications",filterValue:"Communications",link:"Communications",icon:"folder",libraries:[gn.zM.Governance]},{id:"73c2c1f3-8bee-4af6-844c-a220ce211d83",title:"Legislation",filterValue:"Legislation",link:"Legislation",icon:"folder",libraries:[gn.zM.Governance]},{id:"8a49a5f3-2e9f-4763-93b2-5d9e9ef5daa6",title:"Management Systems",filterValue:"Management Systems",link:"ManagementSystems",icon:"folder",libraries:[gn.zM.Governance]},{id:"24d74b26-1706-448f-9de7-618a38cc164c",title:"Policies",filterValue:"Policies",link:"Policies",icon:"folder",libraries:[gn.zM.Governance]},{id:"a308e909-204b-4699-bfbe-307b26826c75",title:"Reporting Frameworks",filterValue:"Reporting Frameworks",link:"ReportingFrameworks",icon:"folder",libraries:[gn.zM.Governance]},{id:"561f13f4-b6f8-448c-baeb-59db3c0de822",title:"Standards",filterValue:"Standards",link:"Standards",icon:"folder",libraries:[gn.zM.Governance]},{id:"33aa1592-e850-49ce-88eb-f633d1d7f5b4",title:"Training",filterValue:"Training",link:"Training",icon:"folder",libraries:[gn.zM.Governance]},{id:"d592e948-7460-44ab-acdc-6d91d1a6769a",title:"Bills",filterValue:"Bill",link:"Bills",icon:"folder",libraries:[gn.zM.Electricity,gn.zM.Gas,gn.zM.Water]},{id:"ee557b4b-35ee-4544-85a5-e1cfea25360c",title:"Licences and Permits",filterValue:"Licences and Permits",link:"LicencesAndPermits",icon:"folder",libraries:[gn.zM.Water,gn.zM.Transport,gn.zM.Governance]},{id:"292a3f37-c772-4dce-a457-11def3bcb5eb",title:"Meter Readings",filterValue:"Meter Readings",link:"MeterReadings",icon:"folder",libraries:[gn.zM.Electricity,gn.zM.Gas,gn.zM.Water]},{id:"74edb971-9146-44ae-b308-e4bb8b600524",title:"Supplier Agreements",filterValue:"Supplier Agreement",link:"SupplierAgreements",icon:"folder",libraries:[gn.zM.Electricity,gn.zM.Gas,gn.zM.Water]},{id:"3253c789-325c-4d98-820d-2bff4d8fefb3",title:pt.DocumentCategory.LCAReports,filterValue:pt.DocumentCategory.LCAReports,link:"LCAReports",icon:"folder",libraries:[gn.zM.Governance]},{id:"3b8bee92-ed8c-4ae4-9cbf-819be4649ff9",title:"Others",filterValue:"Other Reference",link:"Others",icon:"folder",libraries:[gn.zM.Waste,gn.zM.Electricity,gn.zM.Gas,gn.zM.Water,gn.zM.Transport,gn.zM.Governance]}],xDe=(0,le.default)(ie.fv)`
  opacity: ${e=>e.disabled?"0.5":"1"};
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding-right: 16px;
`,TDe=le.default.div`
  display: flex;
  align-items: center;
  margin: ${e=>e.theme.geometry.xs.spacing} 0;
`,bDe=(0,le.default)(ie.GQ)`
  display: inline-flex;
  flex: 0 0 auto;
  background: ${e=>{let{theme:n}=e;return n.colors.basic.white}};
`,vDe=le.default.div`
  padding: 0 ${e=>e.theme.geometry.sm.spacing};
`;function CDe(e){let{folder:n}=e;return(0,fe.jsx)(xDe,{disabled:n.disabled,container:!0,item:!0,children:(0,fe.jsxs)(TDe,{children:[(0,fe.jsx)(vDe,{children:(0,fe.jsx)(bDe,{height:"40px",size:"md",icon:n.icon.name,iconColor:n.icon.color,circleColor:n.icon.color})}),(0,fe.jsx)(ie.DZ,{size:"lg",children:n.name})]})})}const kDe=(0,f.styled)(f.Text)`
  color: ${e=>e.theme.sys.color.onSurface};
`,SDe=(0,f.styled)("div")`
  display: flex;
  width: 300px;
  height: 66px;
  padding: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid ${e=>e.theme.sys.color.outlineVariant};
  background: ${e=>e.theme.sys.color.surface};
  box-shadow: ${e=>e.theme.sys.elevation[1]};
  cursor: pointer;
`,NDe=(0,f.styled)("div")`
  display: flex;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  flex: 1 0 0;

  p {
    margin: 0px;
  }
`,ADe={quaternary:"#08EBA7",tertiary:"#001AFF"},RDe=(0,f.styled)("div")`
  display: flex;
  padding: 0px 8px;
  svg {
    color: ${e=>ADe[e.color]};
  }
`;function DDe(e){let{folder:n}=e;return(0,fe.jsxs)(SDe,{disabled:n.disabled,children:[(0,fe.jsx)(RDe,{color:n.icon.color,children:(0,fe.jsx)(f.Icons.FolderOutlined,{})}),(0,fe.jsx)(NDe,{children:(0,fe.jsx)(kDe,{typescale:"body",size:"medium",children:n.name})})]})}const LDe=e=>{let{children:n}=e;return(0,fe.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 300px)",gridTemplateRows:"repeat(12, 66px)",gridRowGap:"32px",gridColumnGap:"24px",paddingBottom:"12px"},children:n})};function IDe(e){let{folders:n}=e;const t=sl()?DDe:CDe;return n&&n.length?(0,fe.jsx)(LDe,{children:n.map(e=>e.disabled?(0,fe.jsx)(t,{folder:e},e.id):(0,fe.jsx)(p.Link,{to:e.disabled?"#":e.url,children:(0,fe.jsx)(t,{folder:e})},e.id))}):null}const jDe=S.J1`
  mutation GetZippedFileExport($files: [NamedEntityInput!]!, $accountId: ID!) {
    getZippedFileExport(input: { files: $files, accountId: $accountId })
  }
`,wDe=S.J1`
  query GetDocumentsPageFilter($accountId: ID!, $field: String!, $library: String, $category: String) {
    getDocumentsPageFilter(accountId: $accountId, field: $field, library: $library, category: $category) {
      label
      value
    }
  }
`,ODe=S.J1`
  query GetDocumentsPage(
    $accountId: ID!
    $offset: Int = 0
    $limit: Int = 25
    $sort: [SortCommand!] = []
    $filters: Filters = {}
  ) {
    getDocumentsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {
      totalRows
      rows {
        ...DocumentFields
      }
    }
  }
  ${uj}
`,EDe=(e,n)=>({INFECTED:{icon:"exclamation-triangle",color:n.colors.danger.normal.background},ERROR:{icon:"exclamation-circle",color:n.colors.warning.normal.background},PENDING:{icon:"exclamation-circle",color:n.colors.text.normal.background},CLEAN:{icon:"check",color:n.colors.success.normal.background}}[e]||{});function _De(e){const{data:{antivirusStatus:n}={}}=e,t=(0,le.useTheme)();return(0,fe.jsx)(ie.In,{name:"document-row__antivirus",title:n,size:"lg",...EDe(n,t)})}const FDe=le.default.span`
  height: 25px;
  width: 25px;
  border-radius: 50%;
  display: flex;
`;function PDe(e){const n=(0,le.useTheme)(),{data:{reviewDateStatus:t}={}}=e;return t?((e,n)=>{const t=(0,le.default)(FDe)`
    background-color: ${n.colors.danger.dark.background};
  `,a=(0,le.default)(FDe)`
    background-color: ${n.colors.success.dark.background};
  `,i=(0,le.default)(FDe)`
    background-color: ${n.colors.warning.dark.background};
  `;switch(e){case"Within date":return(0,fe.jsx)(a,{});case"Due for review":return(0,fe.jsx)(i,{});case"Overdue":return(0,fe.jsx)(t,{});default:return null}})(t,n):null}function BDe(e){let{fetchRows:n,accountId:t,setGridApi:a,library:i,category:l}=e;const r=(0,C.m)(),o=(0,m.Zp)(),s=qr(),{showNotification:d}=tn(),c=(0,g.useCallback)(async e=>{try{const{data:{getDocumentsPageFilter:n}}=await r.query({query:wDe,variables:{accountId:t,field:e.colDef.colId,library:i||null,category:l||null}});e.success(n.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){d(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning"),E.Cp(n)}},[t,r,d,i,l]),u=(0,g.useMemo)(()=>({async getRows(e){try{const{startRow:a,sortModel:i,filterModel:l}=e.request,r={accountId:t,offset:a,limit:25,sort:wn(i),filters:jn(l)},{rows:o,totalRows:s}=await n(r);e.success({rowData:o,rowCount:s})}catch(n){E.Cp(n),e.fail()}}}),[t,n]),p=(0,g.useMemo)(()=>({pagination:!0,paginationPageSize:25,paginationPageSizeSelector:!1,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,wrapText:!0,autoHeight:!0,cellDataType:!1},columnDefs:[{headerName:"Export",field:"export",minWidth:60,checkboxSelection:!0,filter:!1,sortable:!1},{colId:"fileName",headerName:"File Name",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},field:"fileName"},{colId:"reviewDateStatus",headerName:"Review Date Status",field:"reviewDateStatus",filter:"agSetColumnFilter",cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},cellRenderer:"reviewStatus",filterParams:{values:c,valueFormatter:On}},{colId:"reviewDate",headerName:"Review Date",field:"reviewDate",filter:"agDateColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},valueFormatter:e=>{let{value:n}=e;return Sn(n)}},{colId:"referenceId",headerName:"ID",field:"referenceId",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0}},{colId:"createdByName",headerName:"Uploaded By",field:"createdByName",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{colId:"createdAt",headerName:"Uploaded On",field:"createdAt",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},filterParams:{buttons:["reset","apply"],closeOnApply:!0},initialSort:"desc"},{colId:"updatedAt",headerName:"Last Updated On",field:"updatedAt",filter:"agDateColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},valueFormatter:e=>{let{value:n}=e;return Sn(n)}},{colId:"updatedByName",headerName:"Updated By",field:"updatedByName",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{colId:"antivirusStatus",headerName:"Antivirus Status",field:"antivirusStatus",cellRenderer:"antivirusStatus",cellStyle:{textAlign:"center",verticalAlign:"middle"},filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{colId:"category",headerName:"Category",field:"category",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{colId:"library",headerName:"Library",field:"library",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{colId:"supplierName",headerName:"Supplier/Carrier",field:"supplierName",filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On}},{colId:"tags",headerName:"Tags",field:"tags",valueFormatter:e=>{let{value:n}=e;return n?n.map(e=>e.tagName).join(", "):""},filter:"agSetColumnFilter",filterParams:{values:c,valueFormatter:On},sortable:!1},{colId:"notes",headerName:"Notes",field:"notes",filter:"agTextColumnFilter",autoHeight:!1,filterParams:{buttons:["reset","apply"],closeOnApply:!0},valueFormatter:e=>{let{value:n}=e;return n?(0,hn.truncate)(n,{length:45}):""},sortable:!1},{colId:"notes1",headerName:"Notes1",field:"notes1",filter:!0,filterParams:{buttons:["reset","apply"],closeOnApply:!0,values:["Bill","Sales Order","Licences and Permits"]}}],rowStyle:{width:"100%",display:"flex",alignItems:"center"},suppressRowClickSelection:!0,rowSelection:"multiple",isRowSelectable:e=>!!e.data&&e.data.antivirusStatus===Vt&&e.data.source===Gt}),[c]);(0,g.useEffect)(()=>{if(s.api&&l){const e=[JSON.stringify({__typename:"FilterData",label:l,value:l})];try{s.api.getColumnFilterInstance("category")?.then(n=>{n.setModel({values:e}).then(()=>{s.api.onFilterChanged("columnFilter")})})}catch{d(`Couldn't set filter for category "${l}"`,"warning")}}},[s,s.api,l,d]);const f=(0,g.useMemo)(()=>({antivirusStatus:_De,reviewStatus:PDe}),[]),y=(0,g.useCallback)(e=>{o(`${i&&l?`/documents/${i}/${l}`:"/documents/all"}/${e.data.id}`)},[l,i,o]),h=(0,g.useCallback)(e=>{s.onGridReady(e),a({api:e.api,datasource:u})},[s,u,a]);return(0,fe.jsx)("div",{className:"ag-theme-alpine",style:{height:"100vh"},children:(0,fe.jsx)(Dg.W6,{cacheBlockSize:p.paginationPageSize,components:f,onColumnVisible:s.onSaveGridColumnState,onColumnPinned:s.onSaveGridColumnState,onColumnResized:s.onSaveGridColumnState,onColumnMoved:s.onSaveGridColumnState,onColumnRowGroupChanged:s.onSaveGridColumnState,onColumnValueChanged:s.onSaveGridColumnState,onColumnPivotChanged:s.onSaveGridColumnState,onCellClicked:y,serverSideDatasource:u,onGridReady:h,...p},`${l}-${i}`)})}const UDe=(0,le.default)(ie.fI)`
  flex: 0;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
  padding-right: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.dark.background};
`,$De=(0,le.default)(ie.vj)`
  flex: 1 1 auto;
  form > div {
    background: none;
    border: 0;
    border-radius: 0;
  }
`,MDe=((0,le.default)(ie.Yq)`
  margin-left: ${e=>e.theme.geometry.md.spacing};
`,(0,le.default)(Ae)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,e=>{const{search:n,onSearchValueChange:t,onSearch:a,placeholder:i="Search Documents..."}=e;return(0,fe.jsx)(UDe,{container:!0,item:!0,itemAlign:"center",children:(0,fe.jsx)($De,{name:"DocumentFiles__Search",placeholder:i,value:n,onChange:t,onSearch:a,hideButton:!0})})}),VDe=(0,le.default)(ie.fv)`
  overflow: auto;
  padding: ${e=>e.theme.geometry.xl.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
`,GDe=le.default.hr`
  height: 1px;
  background-color: ${e=>e.theme.colors.overlay.light.text};
  margin: 16px 0;
`;function zDe(e){let{isManagementSystem:n,library:t,category:a,folders:i=[],documentsExist:l=!1,searchValue:r="",searchPlaceholder:o,loading:s,banners:d=[],error:c,retry:u,onSearch:p=()=>{},setGridApi:m=()=>{},showGrid:f,managementSystemId:y,managementSystemChapterId:g}=e;const h=(0,C.m)(),x=Je(),T=!s&&!i.length&&!l&&r;return(0,fe.jsxs)(VDe,{container:!0,item:!0,children:[!f&&(0,fe.jsx)(MDe,{search:r,onSearchValueChange:e=>{let{target:{value:n}}=e;p(n)},placeholder:o}),(0,fe.jsx)(mY,{id:"documentBanners",staticBanners:d}),c?(0,fe.jsx)($c,{name:"Something went wrong",error:c,retry:u}):s?(0,fe.jsx)(Rc,{name:"DocumentFiles__Loading"}):T?(0,fe.jsx)(Fu,{id:"documents",title:`No Results found for ${r||"your search."}`}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(IDe,{folders:i}),l&&!!i.length&&(r||y)&&(0,fe.jsx)(GDe,{}),(l&&(r||n)||f)&&(0,fe.jsx)(BDe,{library:t,category:a,accountId:x,setGridApi:m,fetchRows:async e=>{const n={...e};n.filters||(n.filters={});const i=_j(r,t,a,y,g),{filters:l}=n;i.set&&(l?.set||(l.set=[]),l.set.push(...i.set)),i.text&&(l?.text||(l.text=[]),l.text.push(...i.text));const{data:{getDocumentsPage:{totalRows:o,rows:s}}}=await h.query({query:ODe,variables:n,fetchPolicy:"network-only"});return{rows:s,totalRows:o}}},x)]})]})}const WDe=e=>{let{gridApi:n,accountId:t}=e;const{showNotification:a}=tn(),i=n?.api||n,[l]=(0,ln.n)(jDe,{onCompleted:()=>{a("Your documents have been exported. Note: Web Links or Dashboard References are skipped.","success")},onError:()=>{a("Something went wrong. Try reducing the number of documents in export.","danger")}}),r=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=[];i?.forEachNode(t=>{e&&!t.isSelected()||n.push(t.data)});const r=n.filter(e=>e.antivirusStatus===Vt&&e.source===Gt).map(e=>({id:e.id,name:e.fileName}));if(r.length){a("Starting document export. For large exports, please wait up to 30 seconds.","success");const{data:e}=await l({variables:{files:r,accountId:t}});e?.getZippedFileExport&&window.open(e.getZippedFileExport)}else a("Your selection only contains Web Links and/or Dashboard References. These can not be exported.","danger")};return(0,fe.jsxs)(ie.fI,{container:!0,item:!0,children:[(0,fe.jsx)(ie.fv,{span:6,children:(0,fe.jsx)(ie.$n,{name:"DocumentFiles__Button--export",color:"secondary",onClick:()=>r(!0),disabled:!1,children:"Export Selected"})}),(0,fe.jsx)(ie.fv,{span:6,children:(0,fe.jsx)(ie.$n,{name:"DocumentFiles__Button--export",color:"secondary",onClick:()=>r(),children:"Export Page"})})]})};function qDe(e,n){const{data:t,loading:a,error:i,refetch:l}=(0,x.IT)(bj,{variables:e,skip:n,fetchPolicy:"cache-and-network",returnPartialData:!0,partialRefetch:!0,notifyOnNetworkStatusChange:!0,errorPolicy:"all"});return{documentsExist:!!t?.getDocumentsPage?.totalRows,error:i,loading:a,refetch:()=>l(e)}}const JDe=e=>{const n=(0,dc.A)(),{documentFolders:t}=e,a=Je(),{library:i,type:l}=(0,m.g)(),[r,o]=(0,g.useState)(),s=Mr(),d=!!lr().document.find(e=>e.startsWith("create")),c=i&&l&&"all"!==l?t.find(e=>e.link===l):null,[u,p]=(0,g.useState)(!1),[f,y]=(0,Gr.useQueryParam)("search",Gr.StringParam),{showNotification:h}=tn(),x=qj.filter(e=>!e.accessControlIndexer||xn().get(s,e.accessControlIndexer)),{documentsExist:T,error:b,loading:v,refetch:C}=qDe({accountId:a,filters:_j(f||"")},!f),k=e=>{p(!1),setTimeout(()=>{C()},5e3),h(e,"success")};return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsx)(xV,{name:"DocumentFiles",title:"Documents",breadcrumbs:(()=>{const e=[{title:n.formatMessage({id:"pages.documents.breadcrumbs.one"}),to:"/documents"}];return i?e.push({title:xn().capitalize(i),to:`/documents/${i}`}):e.push({title:"All",to:"/documents/all"}),e})(),icon:"file-alt",iconColor:"quaternary",isDropdown:!0,dropdownItems:i?t.filter(e=>e.libraries.includes(i.toUpperCase())):x,dropdownDefault:c?c.title:"All Documents",children:(0,fe.jsxs)(bv,{container:!0,item:!0,distribution:"center",vdistribution:"center",itemAlign:"center",children:[(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(qg,{gridApi:r?.api})}),d&&(0,fe.jsx)(ie.fv,{span:6,children:(0,fe.jsx)(WDe,{gridApi:r,accountId:a})}),d&&(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(ie.$n,{name:"DocumentFiles__Button--upload",color:"primary",onClick:()=>p(!0),children:"+ Upload Documents"})})]})}),(0,fe.jsx)(zDe,{showGrid:!0,library:i,category:c?.filterValue,setGridApi:o,searchValue:f,onSearch:y,banners:[],documentsExist:T,error:b,retry:C,loading:v&&!T}),u&&(0,fe.jsx)(Yse,{predefinedValues:{library:i?.toUpperCase(),category:hDe.find(e=>e.link===l)?.filterValue},onDismiss:()=>{p(!1)},onComplete:k,onUpload:k,onError:e=>{p(!1),h(e.message,"danger")}})]})},YDe=(0,le.default)(ie.In)`
  color: ${e=>e.theme.colors.text.normal.background};
  margin-right: ${e=>e.theme.geometry.md.spacing};
`,HDe=e=>{let{name:n,fileName:t,size:a="2x",...i}=e;const l=zi(t);return(0,fe.jsx)(YDe,{name:`${n}__FileIcon`,size:a,icon:l,...i})};HDe.propTypes={name:pe().string.isRequired,size:pe().string,fileName:pe().string};const KDe=HDe,QDe=(0,le.default)(ie.fv)`
  overflow: hidden;
`,ZDe=(0,le.default)(ie.fv)`
  overflow: auto;
  padding: ${e=>e.theme.geometry.md.spacing};
`,XDe=(0,le.default)(ie.fI)`
  background-color: ${e=>e.theme.colors.basic.white};
`,eLe=(0,le.default)(ie.fI)`
  flex: 0 0 auto;
  padding-bottom: ${e=>e.theme.geometry.md.spacing};
  padding-top: 0;
`,nLe=(0,le.default)(KDe)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
`,tLe=le.default.div`
  flex: 0 0 auto;
`,aLe=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
  border: 1px solid ${e=>e.theme.colors.neutral.dark.background};
  &:hover {
    cursor: ${e=>e.disabled?"not-allowed":"pointer"};
  }
`,iLe=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.normal.background};
`,lLe=(0,le.default)(ie.DZ)`
  display: flex;
  align-items: center;
`,rLe=(0,le.default)(ie.fI)`
  padding-right: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,oLe=le.default.span`
  margin: 0 ${e=>e.theme.geometry.xs.spacing};
`,sLe=le.default.div`
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding: ${e=>e.theme.geometry.lg.spacing};
`,dLe=(0,le.default)(ie.EY)`
  max-width: 50%;
`,cLe=e=>e.some(e=>"NotFoundException"===e.errorType),uLe=function(){const{state:e}=(0,m.zy)(),{taskId:n}=e||{taskId:null},{projectId:t}=e||{projectId:null},a=(0,m.Zp)(),i=lr(),{id:l,library:r,type:o}=(0,m.g)(),{showNotification:s}=tn(),[d,c]=(0,g.useState)(!1),[u,p]=(0,g.useState)(!1),f=Je(),{token:y}=qe(),[h]=(0,ln.n)(gj),T={id:l,accountId:f},{data:b,error:v,loading:k,refetch:S}=(0,x.IT)(yj,{variables:T,errorPolicy:"all",fetchPolicy:"no-cache"}),N=b&&b.getDocumentRecordById?b.getDocumentRecordById:{},A=N.antivirusStatus===Vt,R=!i.document.find(e=>e.startsWith("create")),D=((e,n,t)=>!!e.document?.find(e=>e?.startsWith(n)&&!e.endsWith("Own"))||e.document?.includes(`${n}Own`)&&t)(i,"delete",N?.createdBy?.id===y.sub),L=(0,C.m)(),I=xd({pageSize:kt}),j=hn.keyBy(I,"id")[N.supplierId];return(0,fe.jsxs)(QDe,{container:!0,item:!0,fullHeight:!0,name:"DocumentFile",children:[(0,fe.jsx)(xV,{name:"DocumentFile",title:`${N.category||(e?hn.startCase(e.documentType):hn.startCase(o))} Document`,breadcrumbs:(()=>{const e=[{title:"Documents",to:"/documents"}];return r?(e.push({title:`${hn.capitalize(r)}`,to:`/documents/${r}`}),e.push({title:`${hn.startCase(o)}`,to:`/documents/${r}/${o}`})):e.push({title:"All",to:"/documents/all"}),e})(),icon:"file-alt",iconColor:Ej(r),isDropdown:!1,dropdownDefault:null,dropdownItems:[],children:(0,fe.jsx)(ie.$n,{name:"DocumentFile__Button--back",inline:!0,color:"info",onClick:()=>a(r&&o?`/documents/${r}/${o}`:r?`/documents/${r}`:n?`/tasks/${n}`:t?`/projects/${t}`:"/documents/all"),children:"Back"})}),k&&(0,fe.jsx)(Rc,{name:"loading"}),v&&!b?.getDocumentRecordById&&cLe(v.graphQLErrors)&&(0,fe.jsx)(Ec,{name:"Not available",error:new Error("Not available")}),v&&!b?.getDocumentRecordById&&!cLe(v.graphQLErrors)&&(0,fe.jsx)(ie.Kw,{error:v,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"DocumentFile-Error",title:n,body:t,icon:a,retry:()=>S(T)})}}),!k&&b?.getDocumentRecordById&&(0,fe.jsxs)(ZDe,{container:!0,item:!0,children:[(0,fe.jsxs)(eLe,{container:!0,distribution:"between",itemAlign:"center",children:[(0,fe.jsxs)(rLe,{container:!0,itemAlign:"center",children:[(0,fe.jsx)(nLe,{name:"DocumentFile",size:"3x",fileName:N.fileName}),(0,fe.jsxs)(ie.fv,{container:!0,item:!0,children:[(0,fe.jsx)(ie.DZ,{nowrap:!0,overflow:"hidden",name:"DocumentFile__Title",weight:"light",title:N.fileName,children:hn.truncate(N.fileName,{length:50})}),(0,fe.jsxs)(ie.EY,{name:"DocumentFile__Title",children:[(0,fe.jsx)(ie.EY,{name:"DocumentFile__Title",inline:!0,weight:"bold",children:N.category}),(0,fe.jsx)(oLe,{children:"|"})," Uploaded on ",Ij(N.createdAt)]})]})]}),(0,fe.jsxs)(tLe,{children:[(0,fe.jsx)(aLe,{name:"DocumentFile__Button--download",inline:!0,color:"info",disabled:!A,title:A?"Open the document":"Can't retrieve document since it didn't pass antivirus check",onClick:()=>{A&&window.open(N.link)},children:"Open"}),!R&&(0,fe.jsx)(aLe,{name:"DocumentFile__Button--edit",inline:!0,color:"info",component:"a",onClick:()=>p(!0),children:"Edit"}),(0,fe.jsxs)(fe.Fragment,{children:[d&&(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(ie.aF,{show:!0,onDismiss:()=>c(!1),height:"auto",maxHeight:"90vh",children:(0,fe.jsxs)(sLe,{children:[(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(ie.DZ,{children:"Are you sure you want to delete this Document?"})}),(0,fe.jsxs)(ie.fI,{container:!0,distribution:"around",children:[(0,fe.jsx)(ie.fv,{item:!0,span:4,children:(0,fe.jsx)(ie.$n,{onClick:async()=>{try{await h({variables:{id:l}}),a(-1),s("Document has been successfully deleted","success")}catch(e){s("An Error has occurred","danger")}finally{c(!1)}},children:"Yes"})}),(0,fe.jsx)(ie.fv,{item:!0,span:4,children:(0,fe.jsx)(ie.$n,{onClick:()=>c(!1),children:"No"})})]})]})})}),D&&(0,fe.jsx)(aLe,{name:"DocumentFile__Button--delete",inline:!0,color:"info",onClick:()=>c(!0),children:"Delete"})]})]})]}),(0,fe.jsxs)(XDe,{children:[N.type&&Array.isArray(N.type)&&!!N.type.length&&(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsx)(lLe,{size:"md",children:"Type:"}),(0,fe.jsx)(ie.EY,{children:N.type.join(", ")})]}),(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsx)(lLe,{size:"md",children:"Review Date:"}),(0,fe.jsx)(ie.EY,{children:N.reviewDate?Lj(N.reviewDate):"-"})]}),(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsxs)(lLe,{size:"md",children:[N.category," ID:"]}),(0,fe.jsx)(ie.EY,{children:N.referenceId?N.referenceId:"-"})]}),(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsx)(lLe,{size:"md",children:"Supplier/Carrier:"}),(0,fe.jsx)(ie.EY,{children:j&&j.name||"-"})]}),N.managementSystemCode&&(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsx)(lLe,{size:"md",children:"Management System Reference:"}),(0,fe.jsx)(ie.EY,{children:N.managementSystemCode.toUpperCase()})]}),(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsx)(lLe,{size:"md",children:"Uploaded on:"}),(0,fe.jsx)(ie.EY,{children:Ij(N.createdAt)||"-"})]}),(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsx)(lLe,{size:"md",children:"Uploaded by:"}),(0,fe.jsx)(ie.EY,{children:Wi(N.createdBy)||"-"})]}),(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsx)(lLe,{size:"md",children:"Last updated on:"}),(0,fe.jsx)(ie.EY,{children:Ij(N.updatedAt)||"-"})]}),(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsx)(lLe,{size:"md",children:"Last updated by:"}),(0,fe.jsx)(ie.EY,{children:Wi(N.updatedBy)||"-"})]}),(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsx)(lLe,{size:"md",children:"Tags:"}),(0,fe.jsx)(ie.EY,{children:N.tags.length?N.tags.map(e=>e.tagName).join(", "):"-"})]}),(0,fe.jsxs)(iLe,{container:!0,distribution:"between",vdistribution:"center",children:[(0,fe.jsx)(lLe,{size:"md",children:"Notes:"}),(0,fe.jsx)(dLe,{children:N?.notes||"-"})]}),u&&(0,fe.jsx)(gDe,{document:N,onComplete:e=>{L.writeQuery({query:yj,variables:T,data:{getDocumentRecordById:{...e,updatedAt:(new Date).toISOString(),updatedBy:{first_name:y.given_name,last_name:y.family_name,__typename:"User"}}}}),setTimeout(()=>S(T),500),p(!1),s("Document has been edited!","success")},onError:e=>{s(e.message,"danger")},onDismiss:()=>p(!1)})]})]})]})},pLe=e=>{let{libraries:n,types:t}=e;const a=(0,dc.A)(),[i,l]=(0,Gr.useQueryParam)("search",Gr.StringParam),[r,o]=(0,g.useState)(!1),[s,d]=(0,g.useState)(),{showNotification:c}=tn(),u=Je(),{documentsExist:p,error:f,loading:y,refetch:h}=qDe({accountId:u,filters:_j(i||"")},!i),{data:x}=Mr(),T=lr(),{library:b}=(0,m.g)(),v=b?t.filter(e=>e.libraries.includes(b.toUpperCase())):n,C=!!T.document.find(e=>e.startsWith("create")),k=((e,n)=>{if(!n)return e;const t=new pd.vj("id");return t.addIndex("title"),t.addDocuments(e),t.search(n)})(v,i);return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsx)(xV,{name:"DocumentLandingPageHeader",title:a.formatMessage({id:"pages.documents.heading"}),breadcrumbs:(()=>{const e=[{title:"Documents",to:"../documents"}];return b&&e.push({title:hn.capitalize(b),to:`../../documents/${b}`}),e})(),icon:"file-alt",iconColor:"quaternary",dropdownDefault:b?`${hn.capitalize(b)} Documents`:"Documents",isDropdown:!!b,dropdownItems:qj.filter(e=>!e.accessControlIndexer||hn.get(x,e.accessControlIndexer)),children:(0,fe.jsxs)(bv,{container:!0,item:!0,distribution:"center",vdistribution:"center",itemAlign:"center",children:[C&&p&&(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(qg,{gridApi:s?.api})}),C&&p&&(0,fe.jsx)(ie.fv,{span:6,children:(0,fe.jsx)(WDe,{gridApi:s,accountId:u})}),C&&(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(ie.$n,{name:"DocumentLanding__Button--upload",color:"primary",onClick:()=>o(!0),children:"+ Upload Documents"})})]})}),(0,fe.jsx)(zDe,{searchValue:i,library:b,onSearch:l,folders:k.map(e=>({id:e.id,name:e.title,url:`./${e.link}`,icon:{color:Ej(e.library||b),name:"folder"},disabled:!(!("accessControlIndexer"in e)||hn.get(x,e.accessControlIndexer))})),documentsExist:p,setGridApi:d,error:f,retry:h,loading:y&&!p}),r&&(0,fe.jsx)(Yse,{onDismiss:()=>o(!1),onComplete:e=>{c(e,"success")},onError:e=>{c(e.message,"danger")},predefinedValues:{library:b?.toUpperCase()||null}})]})},mLe=e=>{let{children:n}=e;const{library:t}=(0,m.g)();if(t&&Fj(t))return n;const{data:a}=Mr();return qj.filter(e=>!e.accessControlIndexer||hn.get(a,e.accessControlIndexer)).some(e=>e.library===t?.toUpperCase())?n:(0,fe.jsx)(m.C5,{to:"/documents"})};function fLe(e,n,t){return{id:e.id,name:e.tocTitle,url:ja(t,e.id,n),icon:{name:"folder",color:"quaternary"},libraries:["GOVERNANCE"]}}const yLe={folders:[],files:[]};function gLe(e,n,t,a){if(!e)return yLe;if(t){const e=n[t];return e?{folders:(e.chapters||[]).map(e=>fLe(n[e.id],a,t)),files:e.documents||[]}:yLe}return{folders:e.chapters.map(e=>fLe(n[e.id],a,t)),files:e.documents}}function hLe(e){const{formatMessage:n}=e;return[{title:n({id:"pages.documents.breadcrumbs.one"}),to:"/documents"},{title:n({id:"pages.governance.breadcrumbs.one"}),to:"/documents/governance"}]}function xLe(e,n,t,a){const i=La(n,t,a,"/documents/Governance/ManagementSystems");return hLe(e).concat(i)}function TLe(e,n){return e.map(e=>({id:e.id,name:e.title,url:`${n}/${e.id}`,icon:{name:"folder",color:"quaternary"},libraries:["GOVERNANCE"]}))||[]}const bLe="governance",vLe="Management Systems",CLe=hDe.filter(e=>e.libraries.includes(gn.zM.Governance)),kLe=(0,ce.Ay)(function(e){let{intl:n}=e;const t=Je(),a={accountId:t},{data:i,loading:l}=(0,x.IT)(Yue,{variables:a}),r=hLe(n),{pathname:o}=(0,m.zy)(),s=TLe(i?.getAvailableManagementSystems||[],o),[d,c,u]=fd(s,["name"]),{documents:p}=qDe({accountId:t,filters:_j(d,bLe,vLe)});return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsx)(xV,{title:"Management Systems",icon:"file-alt",iconColor:"quaternary",breadcrumbs:r,dropdownItems:CLe,dropdownDefault:"Management Systems",isDropdown:!0}),(0,fe.jsx)(zDe,{files:p,folders:u,searchValue:d,library:bLe,category:vLe,onSearch:c,searchPlaceholder:"Search management systems",loading:l})]})});var SLe=t(63447),NLe=t.n(SLe);function ALe(e){let{onDismiss:n,onError:t,onComplete:a,managementSystem:i,chapter:l,refetch:r}=e;const o=Je(),[s]=(0,ln.n)(Tj);return(0,fe.jsx)(Yse,{predefinedValues:{library:"GOVERNANCE",category:"Management Systems",managementSystemCode:Ia(i,l||i)},onDismiss:n,onError:t,onComplete:async(e,n,d)=>{if(d.length)return t(new Error(`${d.length} of your documents failed to upload and thus weren't attached.`));await Promise.all(n.map(async e=>{try{await s({variables:{accountId:o,documentId:e.id,systemId:i.id,linkId:l?l.id:i.id}})}catch(e){t(e)}})),a("Documents have been successfully attached."),r()}})}function RLe(){const e=(0,dc.A)(),{id:n,itemId:t}=(0,m.g)(),{pathname:a}=(0,m.zy)(),[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)([]),s=Je(),d=lr(),{data:c,loading:u,error:p,refetch:f}=(0,x.IT)(xj,{variables:{id:n,accountId:s},partialRefetch:!0,returnPartialData:!0,errorPolicy:"all"}),y=()=>f({id:n,accountId:s}),h=c?.getManagementSystemById,T=h?.title||"Management System",{tree:b}=Na(h),{folders:v}=gLe(h,b,t,a),C=Object.values(b).map(e=>fLe(e,a,t)),[k,S,N]=fd(C,["name","title","referenceId","managementSystemCode"]),[,A]=NLe()(N,e=>"DocumentRecord"===e.__typename),R=k?A:v,D=xLe(e,h,b,b[t]),L=(t?b[t]?.siblings:c?.getAvailableManagementSystems)||[],I=(t?b[t]?.tocTitle:T)||"",j=L.map(e=>({id:e.id,title:e.tocTitle||e.title,filterValue:"",link:e.id,icon:"folder",libraries:[]}))||[],w={accountId:s,filters:_j(k,bLe,vLe,n,t||null)},{documentsExist:O}=qDe(w);return(0,fe.jsxs)(ie.fv,{container:!0,fullHeight:!0,children:[(0,fe.jsx)(xV,{title:T,icon:"file-alt",iconColor:"quaternary",breadcrumbs:D,dropdownItems:j,dropdownDefault:I,isDropdown:!0,children:!!d.governance.find(e=>e.startsWith("attachDocumentToManagementSystem"))&&(0,fe.jsx)(ie.$n,{color:"primary",onClick:()=>l(!0),inline:!0,children:"Attach Documents"})}),(0,fe.jsx)(zDe,{folders:R,library:bLe,category:vLe,isManagementSystem:!0,documentsExist:O,searchValue:k,onSearch:S,loading:u,basePath:"/documents/all",error:p,retry:y,managementSystemId:n,managementSystemChapterId:t||null}),i&&(0,fe.jsx)(ALe,{managementSystem:h,chapter:b[t],onComplete:e=>{o(n=>n.concat([{message:e,color:"success",id:Date.now()}]))},onError:e=>{o(n=>n.concat([{message:e.message,color:"danger",id:Date.now()}]))},onDismiss:()=>l(!1),refetch:y}),!!r.length&&r.map(e=>(0,fe.jsx)(ie.Eg,{name:e.id,color:e.color,onClose:()=>o(r.filter(n=>n.id!==e.id)),show:!0,children:e.message},e.id))]})}const DLe=(0,f.styled)("div")`
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,LLe=()=>{const e=or();return(0,fe.jsx)(DLe,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(pLe,{libraries:qj,types:hDe})}),(0,fe.jsx)(m.qh,{path:e.docs.all,element:(0,fe.jsx)(JDe,{documentFolders:hDe})}),(0,fe.jsx)(m.qh,{path:`${e.docs.all}/:id`,element:(0,fe.jsx)(uLe,{})}),(0,fe.jsx)(m.qh,{path:e.docs.systems,element:(0,fe.jsx)(kLe,{})}),(0,fe.jsx)(m.qh,{path:`${e.docs.systems}/:id`,element:(0,fe.jsx)(RLe,{})}),(0,fe.jsx)(m.qh,{path:`${e.docs.systems}/:id/:itemId`,element:(0,fe.jsx)(RLe,{})}),(0,fe.jsx)(m.qh,{path:"/:library",element:(0,fe.jsx)(mLe,{children:(0,fe.jsx)(pLe,{libraries:qj,types:hDe})})}),(0,fe.jsx)(m.qh,{path:"/:library/:type",element:(0,fe.jsx)(mLe,{children:(0,fe.jsx)(JDe,{documentFolders:hDe})})}),(0,fe.jsx)(m.qh,{path:"/:library/:type/:id",element:(0,fe.jsx)(mLe,{children:(0,fe.jsx)(uLe,{})})}),(0,fe.jsx)(m.qh,{path:"/:library/:id/edit",element:(0,fe.jsx)(mLe,{children:(0,fe.jsx)(uLe,{})})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:e.docs.root})})]})})},ILe=le.default.div`
  flex: 1 1 auto;

  // Fallbacks for IE
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-center;

  // CSS grid for real browsers
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: ${e=>e.theme.geometry.md.spacing};
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,jLe=e=>{let{items:n,learnAccess:t,bundleId:a}=e;const i=["explore","continue","completed","all"].includes(a);return(0,fe.jsx)(ILe,{children:n.map((e,n)=>{const l=i?e?.bundleIdList[0]:a,r=e.restricted?"#":`/engage/${l?l+"/":""}course${e.type===gn.US.Scorm?"/SCORM":""}/${e.id}`;return t?(0,fe.jsx)(cg,{restricted:e.restricted,name:`CoursesGrid__Link__${e.id}`,to:r,children:(0,fe.jsx)(eRe,{learnAccess:t,courseId:e.id,title:e.name,viewed:e.metaData.viewed,type:e.type,image:e.metaData.thumbnail,restricted:e.restricted,courseProgress:e.userCourseMetaData?e.userCourseMetaData.courseProgress:Ut},e.id)},`link${n}-${e.id}`):(0,fe.jsx)(eRe,{learnAccess:t,restricted:e.restricted,courseId:e.id,title:e.name,viewed:e.metaData.viewed,type:e.type,image:e.metaData.thumbnail,courseProgress:e.userCourseMetaData?e.userCourseMetaData.courseProgress:Ut},e.id)})})},wLe=(0,le.default)(ie.fI)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background-color: ${e=>e.theme.colors.basic.white};
  opacity: ${e=>e.disabled?"0.5":"1"};
  overflow: hidden;
`,OLe=le.default.div`
  margin-left: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,ELe=(0,le.default)(ie.DZ)`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,_Le=(0,le.default)(ie.EY)`
  margin-right: ${e=>e.theme.geometry.md.spacing};
  flex: 0 0 auto;
`,FLe=le.default.div`
  position: relative;
  width: 192px;
  height: 130px;
  display: block;
  background: ${e=>{let{theme:n}=e;return n.colors.secondary.dark.background}} url(${e=>{let{src:n}=e;return n}}) center center no-repeat;
  background-size: cover;
  flex: 0 0 auto;
  border: 1px solid ${e=>{let{theme:n}=e;return n.colors.overlay.normal.background}};
`,PLe=(0,le.default)(ie.GQ)`
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -25px;
  display: inline-flex;
  flex: 0 0 auto;
`,BLe=e=>{let{learnAccess:n,courseId:t,title:a,image:i,restricted:l}=e;return(0,fe.jsxs)(wLe,{name:`CourseRow CourseRow--${t}`,container:!0,itemAlign:"center",disabled:!n,children:[(0,fe.jsxs)(FLe,{name:"CourseRow__Thumbnail",src:i,children:[!i&&(0,fe.jsx)(PLe,{name:"CourseRow__Icon",height:"50px",size:"lg",icon:"graduation-cap",iconColor:"white",circleColor:"white"}),l?(0,fe.jsx)(ZAe,{children:(0,fe.jsx)(XAe,{icon:"lock",color:"#ababab"})}):null]}),(0,fe.jsxs)(ie.fI,{container:!0,item:!0,distribution:"between",itemAlign:"center",children:[(0,fe.jsx)(OLe,{children:(0,fe.jsx)(ELe,{size:"lg",weight:"normal",color:"dark",name:"CourseRow__Title",children:a})}),(0,fe.jsx)(_Le,{size:"lg",color:"normal",children:(0,fe.jsx)(ie.In,{icon:"chevron-right"})})]})]})},ULe=le.default.div`
  flex: 1 1 auto;
  overflow: auto;
`,$Le=e=>{let{items:n,learnAccess:t,bundleId:a}=e;const i=["explore","continue","completed","all"].includes(a);return(0,fe.jsx)(ULe,{children:n.map(e=>{const n=i?e?.bundleIdList[0]:a,l=e.restricted?"#":`/engage/${n?n+"/":""}course${e.type===gn.US.Scorm?"/SCORM":""}/${e.id}`;return t?(0,fe.jsx)(cg,{restricted:e.restricted,name:`CoursesList__Link__${e.id}`,to:l,children:(0,fe.jsx)(BLe,{learnAccess:t,courseId:e.id,title:e.name,viewed:e.metaData.viewed,type:e.type,image:e.metaData.thumbnail,restricted:e.restricted},e.id)},e.id):(0,fe.jsx)(BLe,{learnAccess:t,courseId:e.id,title:e.name,viewed:e.metaData.viewed,type:e.type,image:e.metaData.thumbnail,restricted:e.restricted},e.id)})})},MLe=t.p+"banner-2x-d31c65451f356e567478.jpg",VLe=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),GLe=le.default.img`
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-height: 200px;
  object-fit: cover;
`,zLe=le.default.div`
  cursor: pointer;
  min-width: 844px;
  min-height: 102px;
  max-height: 200px;
  // Subtract sidebar and padding
  max-width: calc(100vw - 100px - 32px);
`,WLe=(0,le.default)(ie.aF)`
  div {
    overflow: hidden;
  }
`;function qLe(e){return(VLe?De("REACT_APP_BASE_URL"):window.location.origin)+e}const JLe={type:gn.US.Video,metaData:{link:qLe(De("REACT_APP_BANNER_CONTENT"))}},YLe=e=>{const[n,t]=(0,g.useState)(!1),[a,i]=(0,g.useState)(""),l=Je(),r=Bl(),{data:{getBanners:o}={},loading:s}=(0,x.IT)(dp,{variables:{accountId:l}}),d=null===o,{data:c}=(0,x.IT)(cp,{variables:{id:a,accountId:l,userId:r,userIdNullable:r},skip:!a});return s?null:(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(WLe,{span:8,height:"80%",show:n,onDismiss:()=>t(!1),children:c?.getCourseById||d?(0,fe.jsx)(du,{course:d?JLe:(u=c?.getCourseById,{...u,type:u?.type,metaData:{...u?.metaData,link:qLe(u?.metaData?.link)}}),link:d?null:c?.getCourseById?.metaData?.link}):null}),o?.length?(0,fe.jsx)(qc,{banners:o,handlerClick:(e,n)=>{if(n===gn.x1.Hyperlink&&e)return window.open(e,"_blank");t(!0),i(function(e){if(!e)return null;const n=e?.match(/\/([0-9a-fA-F-]+)$/);return n&&n[1]}(e))}}):(0,fe.jsx)(zLe,{name:"BannerDiv",children:(0,fe.jsx)(GLe,{...e,src:MLe})})]});var u},HLe=le.default.div`
  margin-bottom: ${e=>{let{show:n,theme:t}=e;return n?t.geometry.sm.spacing:0}};
  transition: max-height 0.2s linear, opacity 0.2s linear;
  max-height: 0;

  ${e=>{let{show:n}=e;return n?"max-height: 1200px; visibility: visible;":"opacity: 0; visibility: hidden;\n  "}}
`,KLe=le.default.div`
  position: relative;
  margin: 15px 0;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  font-size: ${e=>{let{theme:n}=e;return n.fonts.md.size}};
`,QLe=(0,le.default)(ie.In)`
  margin-left: 7px;
  transition: transform 0.3s linear;
  ${e=>{let{open:n}=e;return n?"transform: rotate(90deg);":""}}
`,ZLe=le.default.div`
  text-align: right;
  color: ${e=>{let{theme:n}=e;return n.colors.text.light.text}};
`,XLe=le.default.sup`
  margin-left: 5px;
  color: #ff9789;
  font-weight: bold;
  font-size: smaller;
`,eIe=le.default.span`
  margin-left: 24px;
`,nIe=(0,le.default)(ie.In)`
  margin-left: 7px;
  transition: transform 0.3s linear;
  cursor: pointer;
  ${e=>{let{order:n}=e;return"DESC"===n?"transform: rotate(180deg);":""}}
`,tIe=e=>{let{sorter:n,onSort:t}=e;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(KLe,{onClick:()=>t(n),children:n.label},n.field),(0,fe.jsx)(nIe,{icon:"chevron-up",size:"sm",order:n.order,onClick:()=>t(n)})]})},aIe=e=>{let{filterKey:n,filters:t,setActiveFilter:a,activeFilter:i}=e;const{name:l,options:r,applied:o,showFilter:s}=t[n],d=(0,hn.findKey)(t,{showIn:n}),{optionsRight:c,appliedRight:u}=d?{optionsRight:t[d].options,appliedRight:t[d].applied}:{optionsRight:[],appliedRight:[]};return s?(0,fe.jsxs)(KLe,{onClick:()=>a(i===n?null:n),children:[l,(r.length!==o.length||c.length!==u.length)&&(0,fe.jsx)(XLe,{title:"Filter applied",children:(0,fe.jsx)("span",{role:"img","aria-label":"img",children:"🔍"})}),(0,fe.jsx)(QLe,{icon:"chevron-right",size:"sm",open:i===n})]}):null},iIe=e=>{let{setActiveFilter:n,filters:t,sorters:a,onSort:i,children:l,activeFilter:r}=e;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(ZLe,{children:[a?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(eIe,{children:"Sort by: "}),a.map(e=>(0,fe.jsx)(tIe,{sorter:e,onSort:i},e.field))]}):null,Object.keys(t).map(e=>(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(eIe,{children:"Filter by: "}),(0,fe.jsx)(aIe,{filterKey:e,setActiveFilter:n,filters:t,activeFilter:r},e)]}))]}),(0,fe.jsx)(HLe,{show:!!r,children:l})]})},lIe=(0,le.default)(ie.In)`
  margin-left: 10px;
  margin-right: 15px;
`,rIe=le.default.div`
  display: flex;
  flex-direction: row;
  align-items: center;
  color: ${e=>{let{theme:n}=e;return n.colors.text.normal.background}};
`,oIe=le.default.div`
  font-size: ${e=>{let{theme:n}=e;return n.fonts.md.size}};
  color: ${e=>{let{theme:n}=e;return n.colors.text.light.text}};
  color: inherit;
  margin-right: ${e=>{let{theme:n}=e;return n.geometry.xs.spacing}};
  transition: all 0.3s linear;
  ${e=>{let{disabled:n}=e;return n?"opacity: 0.3;":"cursor: pointer;"}}
  user-select: none;
`,sIe=e=>{let{children:n,onClick:t,active:a}=e;return(0,fe.jsx)(oIe,{onClick:()=>{a&&t()},disabled:!a,children:n})},dIe=e=>{let{addActive:n,removeActive:t,addAll:a,removeAll:i}=e;return(0,fe.jsxs)(rIe,{children:[(0,fe.jsxs)(sIe,{onClick:a,active:n,children:["Show all",(0,fe.jsx)(lIe,{icon:"check",size:"sm"})]}),(0,fe.jsxs)(sIe,{onClick:i,active:t,children:["Hide all",(0,fe.jsx)(lIe,{icon:"times",size:"sm"})]})]})},cIe=le.default.div`
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: ${e=>e.theme.geometry.lg.spacing};
`,uIe=le.default.div`
  height: 30px;
  width: 38px;
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  border-radius: 5px;
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  background: url(${e=>e.image}) center center no-repeat;
  background-size: cover;
  margin-right: ${e=>e.theme.geometry.sm.spacing};
  margin-top: ${e=>e.theme.geometry.xs.spacing};
  overflow: hidden;
  border: 1px solid ${e=>e.theme.colors.overlay.normal.background};
  cursor: pointer;

  ${e=>{let{active:n,fade:t}=e;return t?`opacity: ${n?"1":"0.3"};`:""}}
`,pIe=le.default.div`
  display: flex;
  background: ${e=>{let{theme:n,color:t}=e;return n.colors[t].normal.background}};
  padding: ${e=>{let{theme:n}=e;return n.geometry.xs.spacing}};
  font-size: ${e=>{let{theme:n}=e;return n.fonts.sm.size}};
  color: white;
  margin-top: ${e=>{let{theme:n}=e;return n.geometry.xs.spacing}};
  margin-right: ${e=>{let{theme:n}=e;return n.geometry.sm.spacing}};
  margin-bottom: ${e=>{let{theme:n}=e;return n.geometry.xs.spacing}};
  border: 2px solid ${e=>{let{theme:n,color:t}=e;return n.colors[t].normal.background}};
  cursor: pointer;
  user-select: none;
  transition: all 0.1s linear;
  ${e=>{let{active:n,theme:t,color:a,hollow:i}=e;if(i)return n?"":`\n    background: none;\n    color: ${t.colors[a].normal.background}\n    `}}

  ${e=>{let{active:n,fade:t}=e;return t?`opacity: ${n?"1":"0.3"};`:""}}
`,mIe=(0,le.default)(ie.In)`
  margin-right: ${e=>{let{theme:n}=e;return n.geometry.xs.spacing}};
  ${e=>e.colour?`\n    color: ${e.theme.colors[e.colour].normal.background};\n  `:""}
`,fIe=(0,le.default)(ie.fI)`
  display: flex;
`,yIe=e=>{let{filters:n,activeFilter:t,previousFilter:a,onFilterClick:i,removeAll:l,addAll:r,onChange:o}=e;const s=t||a;if(!s)return null;const{options:d,applied:c,values:u}=n[s],p=c.length<d.length,m=c.length>0,f=(0,hn.keyBy)(u,"id");return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(dIe,{addActive:p,removeActive:m,removeAll:()=>{const{filters:e}=l();o(e)},addAll:()=>{const{filters:e}=r();o(e)}}),(0,fe.jsx)(fIe,{children:(0,fe.jsx)(ie.fv,{span:"24",children:(0,fe.jsx)(cIe,{children:d.map(e=>{const n="object"==typeof e?e.id:e,t=f[n];return(0,fe.jsx)(gIe,{active:c.includes(n),item:t,onClick:e=>{const{filters:n}=i(e,s);o(n)},nameFilter:s},n)})})})})]})},gIe=e=>{let{item:n,active:t,onClick:a,nameFilter:i}=e;return n.image?(0,fe.jsx)(uIe,{name:"LegislationTile__Image",image:n.image,active:t,alt:n.name,title:n.value,onClick:()=>a(n.id,i),fade:!0}):(0,fe.jsxs)(pIe,{active:t,color:"sidebar",onClick:()=>a("object"==typeof n?n.id:n,i),fade:!0,children:[n.icon&&(0,fe.jsx)(mIe,{icon:n.icon,colour:n.colour})," ","object"==typeof n?n.name:n]})};const hIe=(e,n,t,a)=>{const i=a.applied,l=e=>{const n=e.metaData.categories;if((!n||!n.length)&&i.includes(null)||n&&n.length&&n.some(e=>i.includes(e)))return!0},r={explore:e=>e.filter(bRe),continue:e=>e.filter(vRe).sort(kRe),completed:e=>e.filter(CRe).sort(kRe),all:e=>e},o=r[e]?r[e](n).filter(l):n.filter(l);return o.forEach(e=>{e.restricted=t.includes(e.id)}),o},xIe=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,TIe=le.default.div`
  overflow: auto;
  padding: ${e=>e.theme.geometry.xl.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
  height: 100%;
`,bIe=(0,le.default)(ie.fI)`
  padding-right: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.dark.background};
`,vIe=(0,le.default)(ie.$n)`
  margin: ${e=>e.theme.geometry.md.spacing} 0;
  border-radius: 0;
`,CIe=(0,le.default)(ie.vj)`
  flex: 1 1 auto;
  form > div {
    background: none;
    border: 0;
    border-radius: 0;
  }
`,kIe=(0,le.default)(ie.Yq)`
  margin-left: ${e=>e.theme.geometry.md.spacing};
`,SIe=le.default.div`
  margin-top: ${e=>e.theme.geometry.lg.spacing};
`,NIe=(0,le.default)(YLe)`
  margin-bottom: 30px;
`,AIe=VR.map(e=>({name:e.label,id:e.value})),RIe=function(e){let{learnAccess:n}=e;const{id:t="all"}=(0,m.g)(),[a,i]=g.useState({value:"",error:""}),[l,r]=g.useState(1),{isList:o,isGrid:s,showList:d,showGrid:c}=Vd(),{filters:u,activeFilter:p,previousFilter:f,handleFilterToggle:y,removeAllFilters:h,addAllFilters:T,setActiveFilter:b}=function(e){const[n,t]=(0,g.useState)(e);(0,g.useEffect)(()=>{const e={...n.filters};Object.keys(n.filters).forEach(t=>{const a=n.filters[t].values;if(Array.isArray(a)){const i={id:null,name:"Not specified"};n.filters[t].addNullOption&&!a.find(e=>null===e.id)&&a.push(i),e[t]={...n.filters[t],options:a.map(e=>({name:e.name,id:e.id,icon:e.icon,colour:e.colour}))}}}),t(n=>({...n,filters:e}))},[]);const a=e=>{let a={...n};return e.forEach(e=>{const{filterKey:n,newAppliedList:t}=e;a={...a,filters:{...a.filters,[n]:{...a.filters[n],applied:t}}}}),t(a),a};return{...n,handleFilterToggle:(e,t)=>{const{applied:i}=n.filters[t],l=i.includes(e)?i.filter(n=>n!==e):[...i,e];return a([{filterKey:t,newAppliedList:l}])},removeAllFilters:()=>{const e=[{newAppliedList:[],filterKey:n.activeFilter}],t=(0,hn.findKey)(n.filters,{showIn:n.activeFilter});return t&&e.push({newAppliedList:[],filterKey:t}),a(e)},addAllFilters:()=>{const e=[],{options:t}=n.filters[n.activeFilter];e.push({newAppliedList:"object"==typeof t[0]?t.map(e=>{let{id:n}=e;return n}):[...t],filterKey:n.activeFilter});const i=(0,hn.findKey)(n.filters,{showIn:n.activeFilter});return i&&e.push({newAppliedList:n.filters[i].values.map(e=>{let{id:n}=e;return n}),filterKey:i}),a(e)},setActiveFilter:e=>{t(n=>({...n,previousFilter:n.activeFilter,activeFilter:e}))},updateAppliedFilters:a}}({activeFilter:null,previousFilter:null,filters:{categories:{name:"Categories",options:(E={values:AIe,options:[...AIe.map(e=>e.id),null],applied:[...AIe.map(e=>e.id),null]}).options||[],applied:E.applied||[],values:E.values,addNullOption:!0,showFilter:!0}},nameFilter:"categories"}),v={id:null,name:"Not specified"},[C,k]=(0,g.useState)({categories:{name:"Categories",options:[...VR.map(e=>({name:e.label,id:e.value})),v],applied:[...VR.map(e=>e.value),v.id]},listCategoriesId:(0,hn.keyBy)(VR,"value"),restrictedListId:[]}),S=(0,iu.A)(localStorage.getItem("ID_TOKEN")).sub,N=Je(),A=["explore","continue","completed","all"],{loading:R,error:D,data:L,fetchMore:I,networkStatus:j}=(0,x.IT)(A.includes(t)?op:sp,{variables:{userId:S,accountId:N,pageNumber:1,searchTerm:a.value.trim(),section:t,bundleId:t},fetchPolicy:"network-only"}),w=L&&L.searchCourses.data.length>0,O=L&&L.getLearnBundleById||{};var E;if(O.title&&!C.restrictedListId.length){L.searchCourses.data=(0,hn.orderBy)(L.searchCourses.data,e=>O.courses.indexOf(e.id),"asc");const e=(0,hn.remove)(L.searchCourses.data,e=>e.userCourseMetaData&&e.userCourseMetaData.courseProgress===Mt);if(O.restricted&&O.courses.length){const n=[...O.courses];(0,hn.remove)(n,n=>e.some(e=>e.id===n));const t=n.slice(1,n.length);k({...C,restrictedListId:t})}}let _=[...C.restrictedListId];if(L&&L.getLearnBundlesForAccount){const e=[...L.searchCourses.data].filter(e=>e.userCourseMetaData&&e.userCourseMetaData.courseProgress===Mt).map(e=>e.id);L.getLearnBundlesForAccount.forEach(n=>{if(n.restricted&&n.courses.length>=2){const t=[...n.courses].filter(n=>!e.includes(n));_=[..._,...t.slice(1,t.length)]}})}const F=D&&D.graphQLErrors.length&&D.graphQLErrors[0].message.includes("Cannot return null for non-nullable type: 'LearnBundleEngage'");return(0,fe.jsxs)(xIe,{name:"Courses",children:[(0,fe.jsx)(xV,{name:"Courses",title:"Engage Courses",breadcrumbs:[{title:"Engage",to:"/engage"},{title:"Courses"},{title:A.includes(t)?SRe(t):O.title}],icon:"graduation-cap",iconColor:"secondary"}),(0,fe.jsxs)(TIe,{children:[!F&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(NIe,{}),(0,fe.jsxs)(bIe,{container:!0,item:!0,itemAlign:"center",children:[(0,fe.jsx)(CIe,{name:"Courses__Search",value:a.value,onChange:e=>{let{target:{value:n}}=e;i({...a,value:n}),r(1)},hideButton:!0}),(0,fe.jsx)(kIe,{name:"Courses__ShowGrid",size:"md",color:s?"primary":"normal",weight:s?"bold":"normal",underline:!1,onClick:()=>c(),inline:!0,children:(0,fe.jsx)(ie.In,{icon:"th"})}),(0,fe.jsx)(kIe,{name:"Courses__ShowList",size:"md",color:o?"primary":"normal",weight:o?"bold":"normal",underline:!1,onClick:()=>d(),inline:!0,children:(0,fe.jsx)(ie.In,{icon:"th-list"})})]}),(0,fe.jsx)(iIe,{filters:u,sorters:null,onSort:null,setActiveFilter:b,activeFilter:p,children:(0,fe.jsx)(yIe,{filters:u,previousFilter:f,activeFilter:p,onChange:e=>k({...C,categories:e.categories}),onFilterClick:y,removeAll:h,addAll:T})})]}),(R&&3!==j||4===j)&&(0,fe.jsx)(Rc,{name:"Courses__Loading"}),D&&!F&&(0,fe.jsx)($c,{name:"LearnBundle_LoadFaile_Error",error:D}),F&&(0,fe.jsx)(Ec,{name:"LearnBundle_error",error:D}),!D&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(mY,{id:"learnCourses"}),!!w&&hIe(t,L.searchCourses.data,_,C.categories).length>0&&(0,fe.jsxs)(fe.Fragment,{children:[o?(0,fe.jsx)($Le,{items:hIe(t,L.searchCourses.data,_,C.categories),learnAccess:n,bundleId:t}):(0,fe.jsx)(jLe,{items:hIe(t,L.searchCourses.data,_,C.categories),learnAccess:n,bundleId:t}),!L.searchCourses.isLastPage&&(0,fe.jsx)(vIe,{color:"primary",name:"Courses__Pagination__Button--loadmore",onClick:()=>function(e,n){r(n),e({variables:{pageNumber:n,searchTerm:a.value},updateQuery:(e,n)=>{let{fetchMoreResult:t}=n;return t?{...e,searchCourses:{isLastPage:t.searchCourses.isLastPage,totalItemCount:t.searchCourses.totalItemCount,section:t.searchCourses.section,data:[...e.searchCourses.data,...t.searchCourses.data],__typename:e.searchCourses.__typename}}:e}})}(I,l+1),children:"Load more"})]}),(!w||0===hIe(t,L.searchCourses.data,_,C.categories).length)&&(0,fe.jsx)(SIe,{children:(0,fe.jsx)(Fu,{name:"Courses__NoResults",title:"There are no results for this search."})})]})]})]})},DIe=le.default.div`
  flex: 1 1 auto;

  // Fallbacks for IE
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-center;

  // CSS grid for real browsers
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: ${e=>e.theme.geometry.md.spacing};
`,LIe=(0,ce.Ay)(e=>{let{learnAccess:n,courseId:t,items:a,intl:i}=e;const l=((e,n)=>{const t=e.find(e=>e.id===n),a=e.filter(e=>{const{categories:a=[]}=e?.metaData||{},i=xn().get(e,"userCourseMetaData.courseProgress")===Mt;return!(!t||!xn().intersection(a,t?.metaData?.categories).length||e.id===n||i)});return a})(a,t);return l.length>0?(0,fe.jsx)(DIe,{children:l.map(e=>(0,fe.jsx)(p.Link,{name:`CoursesGrid__Link__${e.id}`,to:`/engage/course/${e.type===gn.US.Scorm?"SCORM/":""}${e.id}`,children:(0,fe.jsx)(eRe,{learnAccess:n,courseId:e.id,title:e.name,viewed:e.metaData.viewed,type:e.type,image:e.metaData.thumbnail,courseProgress:e.userCourseMetaData?e.userCourseMetaData.courseProgress:Ut},e.id)},e.id))}):(0,fe.jsx)(p.Link,{name:`LearnHome__Link__${t}`,to:"engage",children:(0,fe.jsx)(Fu,{name:"RelatedCoursesGrid__NoResults",title:i.formatMessage({id:"pages.coursesPreview.noResults"})})})}),IIe=(0,le.default)(ie.DZ)`
  margin-top: ${e=>e.theme.geometry.lg.spacing};
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
  padding-bottom: ${e=>e.theme.geometry.xs.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.text.normal.background};
`,jIe=e=>{let{learnAccess:n,id:t}=e;const{token:{sub:a}}=qe(),i=Je();return(0,fe.jsx)(au.X,{query:rp,variables:{pageNumber:1,userId:a,accountId:i},children:e=>{let{loading:a,error:i,data:l}=e;if(a||i||!l?.getAvailableCourses?.data?.length)return null;if(l.getAvailableCourses.data.length>0){const e=Array.from(new Set(l.getAvailableCourses.data));return(0,fe.jsxs)(g.Fragment,{children:[(0,fe.jsx)(IIe,{size:"lg",weight:"normal",color:"normal",children:(0,fe.jsx)(de.A,{id:"pages.coursesPreview.relatedCourses",defaultMessage:"Related courses"})}),(0,fe.jsx)(LIe,{courseId:t,items:e,learnAccess:n})]})}}})},wIe=(0,le.default)(ie.In)`
  margin-left: auto;
  padding-left: ${e=>{let{theme:n}=e;return n.geometry.sm.spacing}};
  color: ${e=>{let{theme:n}=e;return n.colors.success.normal.background}};
`,OIe=(0,le.default)(ie.In)`
  margin-left: auto;
  padding-left: ${e=>{let{theme:n}=e;return n.geometry.sm.spacing}};
  color: ${e=>{let{theme:n}=e;return n.colors.primary.normal.background}};
`,EIe={PDF:{NOTSTARTED:"",COMPLETE:"You have downloaded this file."},EMBED:{NOTSTARTED:"",INPROGRESS:"pages.coursesPreview.statuses.embed.inprogress",COMPLETE:"You have completed this course."},EXTERNAL:{},IFRAME:{},DOWNLOAD:{}},_Ie=e=>{let{courseProgress:n,handleType:t}=e;const a=EIe[t][n];return(0,fe.jsxs)(fe.Fragment,{children:[n===Mt&&(0,fe.jsx)(wIe,{icon:"check",size:"lg"}),n===$t&&(0,fe.jsx)(OIe,{icon:"clock",size:"lg"}),(0,fe.jsx)(ie.EY,{color:"light",size:"sm",children:a&&(0,fe.jsx)(de.A,{id:a})})]})},FIe=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.md.spacing};
  background: ${e=>e.theme.colors.basic.white};
`,PIe=le.default.div`
  position: relative;
  padding: 0 0 75% 0;
  flex: 0 0 auto;
  background: ${e=>{let{theme:n}=e;return n.colors.secondary.dark.background}} url(${e=>{let{src:n}=e;return n}}) center center no-repeat;
  background-size: cover;
`,BIe=(0,le.default)(ie.GQ)`
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -50px;
  margin-left: -50px;
  display: inline-flex;
  flex: 0 0 auto;
`,UIe=(0,le.default)(ie.fv)`
  padding-left: ${e=>e.theme.geometry.md.spacing};
`,$Ie=(0,le.default)(ie.DZ)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,MIe=e=>{let{bundleId:n,id:t}=e;const{token:{sub:a}}=qe(),i={userId:a,userIdNullable:a,accountId:Je(),courseId:t,bundleId:n},{data:l,loading:r,error:o,refetch:s}=function(e){const{data:{getUserCourse:n}={},...t}=(0,x.IT)(fl(),{variables:{...e}});return{data:n,...t}}(i);if(!l&&r)return(0,fe.jsx)(Rc,{name:"CoursePreview__Loading"});if(o)return(0,fe.jsx)(ie.Kw,{error:o,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"CoursePreview__Error",icon:a,title:n,body:t,retry:()=>s(i)})}});if(!l)return(0,fe.jsx)(Ec,{error:new Error("Not available")});if(!l?.licence)return(0,fe.jsx)(_c,{error:new Error("No licence")});const d=new ga(l).getHandleMethod();return(0,fe.jsxs)(FIe,{container:!0,item:!0,children:[(0,fe.jsx)(ie.fv,{item:!0,span:4,children:(0,fe.jsx)(PIe,{name:"CoursePreview__Thumbnail",src:l.metaData.thumbnail,children:!l.metaData.thumbnail&&(0,fe.jsx)(BIe,{name:"CoursePreview__Icon",height:"100px",size:"lg",icon:"graduation-cap",iconColor:"white",circleColor:"white"})})}),(0,fe.jsxs)(UIe,{item:!0,span:8,children:[(0,fe.jsxs)($Ie,{size:"xxl",weight:"light",color:"dark",children:[l.name,(0,fe.jsx)(_Ie,{courseProgress:l.userCourseMetaData&&l.userCourseMetaData.courseProgress,handleType:d})]}),!!l.metaData.description&&(0,fe.jsx)(ie.To,{name:"CoursePreview__MarkDown--Description",source:Boe()(l.metaData.description)}),(0,fe.jsx)(xp,{course:l,handleType:d,downloadLink:l.metaData.link,userId:a,courseRefetch:()=>s(i),name:"StartCourse-Button",steps:Uu})]})]})},VIe=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,GIe=le.default.div`
  overflow: auto;
  padding: ${e=>e.theme.geometry.md.spacing};
  height: 100%;
`,zIe=(0,le.default)(ie.$n)`
  border-radius: 0;
`,WIe=(0,ce.Ay)(e=>{let{learnAccess:n,intl:t}=e;const{bundleId:a,id:i}=(0,m.g)();return(0,fe.jsxs)(VIe,{children:[(0,fe.jsx)(xV,{name:"CoursePreview",title:t.formatMessage({id:"pages.coursesPreview.breadcrumbs.two"}),breadcrumbs:[{title:t.formatMessage({id:"pages.coursesPreview.breadcrumbs.one"}),to:"/engage"},{title:t.formatMessage({id:"pages.coursesPreview.breadcrumbs.two"})}],icon:"graduation-cap",iconColor:"secondary",children:(0,fe.jsx)(zIe,{name:"CoursePreview__Button-back",inline:!0,color:"info",component:"routerLink",to:"..",children:(0,fe.jsx)(de.A,{id:"pages.coursesPreview.backToEngage"})})}),(0,fe.jsxs)(GIe,{children:[(0,fe.jsx)(MIe,{id:i,bundleId:a}),(0,fe.jsx)(jIe,{learnAccess:n,id:i})]})]})}),qIe=(0,le.default)(Ae)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,JIe=(0,le.default)(ie.$n)`
  margin: ${e=>e.theme.geometry.md.spacing} 0;
  border-radius: 0;
`,YIe=le.default.div`
  margin-top: ${e=>e.theme.geometry.lg.spacing};
`,HIe=e=>{let{learnAccess:n,searchValue:t}=e;const a=(0,iu.A)(localStorage.getItem("ID_TOKEN")).sub,i=Je();return(0,fe.jsx)(au.X,{query:op,variables:{pageNumber:1,searchTerm:t,userId:a,accountId:i,section:"all"},children:e=>{let{loading:a,error:i,data:l,fetchMore:r,refetch:o,networkStatus:s}=e;if(a&&3!==s||4===s)return(0,fe.jsx)(Rc,{name:"Courses__Loading"});if(i)return(0,fe.jsx)(YIe,{children:(0,fe.jsx)(ie.Kw,{error:i,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"Courses__Error",icon:a,title:n,body:t,retry:o})}})});const d=l?.getLearnBundlesForAccount?.reduce((e,n)=>(n.restricted&&n.courses.length>1&&e.push(...n.courses.slice(1)),e),[]),c=l?.searchCourses?.data.map(e=>({...e,restricted:d.includes(e.id)}))||[],u=Array.from(new Set(c));return(0,fe.jsxs)(fe.Fragment,{children:[n&&!u.length&&!t&&(0,fe.jsx)(p.Link,{name:"ContactUs__Link",to:"/contact",children:(0,fe.jsx)(qIe,{name:"LearnContainer_Access_NotificationBanner",icon:"info-circle",color:"quinary",title:"Engage",body:"You are currently not subscribed to any Engage content. Please contact your Customer Success Manager to find out more or Rio AI Ltd at support@rio.ai."})},"contactUsLink"),!!u.length&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)("br",{}),(0,fe.jsx)(jLe,{items:l.searchCourses.data,learnAccess:n}),!l.searchCourses.isLastPage&&(0,fe.jsx)(JIe,{color:"primary",name:"Courses__Pagination__Button--loadmore",onClick:()=>(void 0).handleLoadMore(r,(void 0).state.pageNumber+1),children:"Load more"})]}),!u.length&&(0,fe.jsx)(YIe,{children:(0,fe.jsx)(Fu,{name:"Courses__NoResults",title:"There are no results for this search."})})]})}})},KIe=Pu(TRe,"learn.explore",{closeLabel:"learnTour.close",joyrideOptions:{scrollToFirstStep:!1}}),QIe=le.default.div`
  margin-top: ${e=>e.theme.geometry.lg.spacing};
`,ZIe=(0,le.default)(Ae)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
`,XIe=(0,ce.Ay)(e=>{let{learnAccess:n,searchValue:t,intl:a}=e;const i=(0,iu.A)(localStorage.getItem("ID_TOKEN")).sub,l=Je(),r=zo(),o=At!==l;return(0,fe.jsx)(au.X,{query:rp,variables:{pageNumber:1,userId:i,accountId:l},fetchPolicy:"network-only",children:e=>{let{loading:i,error:s,data:d,refetch:c,networkStatus:u}=e;if(i&&3!==u||4===u)return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(TRe,{type:"Continue",sectionTitle:a.formatMessage({id:"pages.learn.banners.continue"}),highlightColor:"secondary",items:[],learnAccess:n,loading:!0},"CoursesBanner__Continue"),o&&(0,fe.jsx)(TRe,{type:"Explore",sectionTitle:a.formatMessage({id:"pages.learn.banners.explore"}),highlightColor:"primary",items:[],learnAccess:n,loading:!0},"CoursesBanner__Explore"),(0,fe.jsx)(TRe,{type:"Completed",sectionTitle:a.formatMessage({id:"pages.learn.banners.completed"}),highlightColor:"tertiary",items:[],learnAccess:n,loading:!0},"CoursesBanner__Completed")]});if(s)return(0,fe.jsx)(QIe,{children:(0,fe.jsx)(ie.Kw,{error:s,children:e=>{let{title:n,body:t,icon:a}=e;return(0,fe.jsx)(ie.OJ,{name:"Courses__Error",icon:a,title:n,body:t,retry:c})}})});const m=d?.getAvailableCourses?.data||[],f={mandatoryList:[],showList:[],restrictedCourseList:[]};d.getAvailableCourses.learnBundleList.forEach(e=>{if(e.isbBundleShow){const n=m.filter(n=>e.courses.includes(n.id)),t=e.isMandatoryBundle?"mandatoryList":"showList",a=(0,hn.orderBy)(n,n=>e.courses.indexOf(n.id),"asc");(0,hn.remove)(a,e=>e.userCourseMetaData&&e.userCourseMetaData.courseProgress===Mt),f[t].push({...e,coursesList:a}),e.restricted&&e.courses.length&&(f.restrictedCourseList=[...f.restrictedCourseList,...a.slice(1,a.length).map(e=>e.id)])}});const y=m.filter(e=>e.accountId===l);return f.restrictedCourseList=(0,hn.uniq)(f.restrictedCourseList),f.showList=(0,hn.orderBy)(f.showList,e=>e.title.toLowerCase(),"asc"),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(mY,{id:"learnOverview"}),!n&&(0,fe.jsx)(ZIe,{name:"LearnContainer_Access_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Engage",body:"Currently Engage is not included in your subscription, if you’d like access to Learn please contact Rio AI Ltd or get in touch with your Business Admin."}),n&&!m.length&&!t&&(0,fe.jsx)(p.Link,{name:"ContactUs__Link",to:"/contact",children:(0,fe.jsx)(ZIe,{name:"LearnContainer_Access_NotificationBanner",icon:"info-circle",color:"quinary",title:"Engage",body:"You are currently not subscribed to any Engage content. Please contact your Customer Success Manager to find out more or Rio AI Ltd at support@rio.ai."})},"contactUsLink"),t&&(0,fe.jsx)(HIe,{learnAccess:n,searchValue:t}),!t&&(0,fe.jsxs)(fe.Fragment,{children:[f.mandatoryList.map(e=>(0,fe.jsx)(TRe,{type:e.id,sectionTitle:e.title,restricted:e.restricted,highlightColor:"secondary",items:e.coursesList,learnAccess:n,bundleDescription:e.description},`CoursesBanner__${e.id}`)),(0,fe.jsx)(TRe,{type:"Continue",sectionTitle:a.formatMessage({id:"pages.learn.banners.continue"}),highlightColor:"secondary",items:m.filter(vRe).sort(kRe),learnAccess:n},"CoursesBanner__Continue"),o&&(0,fe.jsx)(KIe,{type:"Explore",sectionTitle:a.formatMessage({id:"pages.learn.banners.explore"}),highlightColor:"primary",items:m.filter(bRe),learnAccess:n,steps:Bu,restrictedCourseList:f.restrictedCourseList},"CoursesBanner__Explore"),!!y.length&&(0,fe.jsx)(TRe,{type:"Account",sectionTitle:`${r.name} - Uploaded Courses`,highlightColor:"secondary",items:y.sort(kRe),learnAccess:n},"CoursesBanner__Account"),f.showList.map(e=>(0,fe.jsx)(TRe,{name:"CourseOverviewContent__Courses-Banner--List",type:e.id,sectionTitle:e.title,restricted:e.restricted,highlightColor:"secondary",items:e.coursesList,learnAccess:n,bundleDescription:e.description},`CoursesBanner__${e.id}`)),(0,fe.jsx)(TRe,{type:"Completed",sectionTitle:a.formatMessage({id:"pages.learn.banners.completed"}),highlightColor:"tertiary",items:m.filter(CRe).sort(kRe),learnAccess:n},"CoursesBanner__Completed")]})]})}})}),eje=(0,le.default)(ie.fI)`
  padding-right: ${e=>e.theme.geometry.sm.spacing};
  border-bottom: 1px solid ${e=>e.theme.colors.overlay.dark.background};
`,nje=(0,le.default)(ie.vj)`
  flex: 1 1 auto;
  form > div {
    background: none;
    border: 0;
    border-radius: 0;
  }
`,tje=(0,ce.Ay)(e=>{let{searchValue:n,onSearch:t,intl:a}=e;return(0,fe.jsx)(eje,{container:!0,item:!0,itemAlign:"center",children:(0,fe.jsx)(nje,{name:"Courses__Search",value:n,onChange:t,hideButton:!0,placeholder:a.formatMessage({id:"home.search"})})})}),aje=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
`,ije=le.default.div`
  overflow: auto;
  padding: ${e=>e.theme.geometry.xl.spacing};
  padding-top: ${e=>e.theme.geometry.lg.spacing};
  height: 100%;
`,lje=(0,le.default)(YLe)`
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
`,rje=(0,ce.Ay)(e=>{const{intl:n}=e,[t,a]=(0,g.useState)({search:{value:"",error:""},pageNumber:1,showGrid:!0,showList:!1});return(0,fe.jsxs)(aje,{name:"Course Overview",children:[(0,fe.jsx)(xV,{name:"Course Overview",title:n.formatMessage({id:"pages.learn.heading"}),breadcrumbs:[{title:n.formatMessage({id:"pages.learn.breadcrumbs.one"}),to:"/engage"},{title:n.formatMessage({id:"pages.learn.breadcrumbs.two"})}],icon:"graduation-cap",iconColor:"secondary"}),(0,fe.jsxs)(ije,{children:[(0,fe.jsx)(lje,{}),(0,fe.jsx)(tje,{searchValue:t.search.value,onSearch:e=>{a(n=>({...n,search:{...n.search,value:e.target.value},pageNumber:1}))}}),(0,fe.jsx)(XIe,{learnAccess:e.learnAccess,searchValue:t.search.value})]})]})}),oje=le.default.div`
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,sje=()=>{const e=zo(),n=!e||e.accessControls.learn;return(0,fe.jsx)(oje,{children:n?(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"",element:(0,fe.jsx)(rje,{learnAccess:n})}),(0,fe.jsx)(m.qh,{path:":id",element:(0,fe.jsx)(RIe,{learnAccess:n})}),(0,fe.jsx)(m.qh,{path:"course/:id",element:(0,fe.jsx)(WIe,{learnAccess:n})}),(0,fe.jsx)(m.qh,{path:":bundleId/course/:id",element:(0,fe.jsx)(WIe,{learnAccess:n})}),(0,fe.jsx)(m.qh,{path:"course/SCORM/:id",element:(0,fe.jsx)(WIe,{learnAccess:n})}),(0,fe.jsx)(m.qh,{path:":bundleId/course/SCORM/:id",element:(0,fe.jsx)(WIe,{learnAccess:n})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:"engage"})})]}):(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"",element:(0,fe.jsx)(rje,{learnAccess:n})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:"engage"})})]})})},dje=(e,n,t,a)=>{const i=e?.filterModel?.[n]?.values;t(1===i?.length&&i[0]===a)};function cje(){const[e,n]=(0,g.useState)(null),[t,a]=(0,g.useState)(null),[i,l]=(0,g.useState)(null),{token:r}=qe(),o=Je();return(0,g.useEffect)(()=>{const e=localStorage.getItem(zr),t=null!==e?JSON.parse(e):{},i=r?.sub,s=t?.[`${i}-${o}-/tasks`];dje(s,"priority",l,"HIGH"),dje(s,"status",n,"Completed"),dje(s,"owners",a,`${r.given_name} ${r.family_name}`)},[]),{showCompleted:e,setShowCompleted:n,showMine:t,setShowMine:a,showHighPriority:i,setShowHighPriority:l}}const uje=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,pje=(0,le.default)(ie.fv)`
  overflow: auto;
  height: 100%;
  padding: 0 ${e=>e.theme.geometry.md.spacing};
  padding-bottom: ${e=>e.theme.geometry.md.spacing};
`,mje=le.default.div`
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
`,fje=le.default.div`
  display: flex;
  flex-direction: row;
  align-items: center;
`,yje=(0,le.default)(ie.EY)`
  cursor: pointer;
  margin-right: 15px;

  font-weight: ${e=>{let{isActive:n}=e;return n?"bold":"inherit"}};
`,gje=le.default.div`
  display: flex;
  width: 100%;
  height 100%;
  align-items: center;
  justify-content: center;
`,hje=le.default.div`
  display: flex;
  flex-direction: row;
  margin: 10px 0;
`,xje=le.default.div`
  display: flex;
  margin-left: auto;

  * {
    width: auto;
    min-width: 150px;
    margin-left: 1rem;
  }
`,Tje=e=>{let{hasProjectsAccess:n=!1}=e;const t=qr(),a=Je(),[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(null),s=lr(),{token:d}=qe(),c=s.task.find(e=>"getAll"===e||"getParent"===e),{data:u,loading:p,refetch:m,error:f}=(0,x.IT)(uTe(),{variables:{accountId:a,userId:d.sub}}),{showCompleted:y,setShowCompleted:h,showMine:T,setShowMine:b,showHighPriority:v,setShowHighPriority:C}=cje(),k=u?sce(u?.getTasksByAccountId||[]):[];return(0,fe.jsxs)(uje,{name:"Tasks",children:[p&&(0,fe.jsx)(gje,{children:(0,fe.jsx)(ie.Ip,{})}),r&&(0,fe.jsx)(ie.Eg,{name:"Task__Notification",show:!0,color:r.colour,onClose:()=>o(null),children:r.message}),i&&(0,fe.jsx)(Pde,{onComplete:o,accountId:a,onDismiss:()=>l(!1),sourcePage:"TASKS",disabled:{[gn.AR.Aspects]:!0},hasProjectsAccess:n}),f?(0,fe.jsx)($c,{error:f,message:f.message,retry:()=>m({accountId:a,userId:d.sub})}):!p&&(0,fe.jsxs)(pje,{container:!0,item:!0,children:[(0,fe.jsxs)(hje,{children:[(0,fe.jsx)(mje,{children:(0,fe.jsxs)(fje,{children:[(0,fe.jsx)(yje,{onClick:()=>{if(y)return t.api.setFilterModel(null),void h(!1);t.api.setFilterModel({status:{type:"set",values:["Completed"]}}),h(!0)},isActive:y,children:y?"Hide Completed":"Show Completed"}),c?(0,fe.jsx)(yje,{onClick:()=>{if(T)return t.api.setFilterModel(null),void b(!1);const e={owners:{type:"set",values:[`${d.given_name} ${d.family_name}`]}};t.api.setFilterModel(e),b(!0)},isActive:T,children:T?"Show All Tasks":"Show My Tasks"}):"",(0,fe.jsx)(yje,{onClick:()=>{if(v)return t.api.setFilterModel(null),void C(!1);t.api.setFilterModel({priority:{type:"set",values:["HIGH"]}}),C(!0)},isActive:v,children:v?"Show All Priorities":"Show High Priority"})]})}),(0,fe.jsxs)(xje,{children:[(0,fe.jsx)(qg,{gridApi:t.api,onClick:()=>{b(!1),h(!1),C(!1)}}),!!s.task.find(e=>e.startsWith("create"))&&(0,fe.jsx)(ie.$n,{"data-cy":"TasksHome__Button--create",inline:!0,color:"primary",onClick:()=>l(!0),children:"+ Create Task"})]})]}),(0,fe.jsx)(fce,{tasks:k,agGrid:t})]})]})},bje={DATA:[{label:"Waste",value:"WASTE"},{label:"Electricity",value:"ELECTRICITY"},{label:"Gas",value:"GAS"},{label:"Water",value:"WATER"},{label:"Transport",value:"TRANSPORT"}],GOVERNANCE:[{label:"Legislation",value:"LEGISLATION"},{label:"Policies",value:"POLICIES"},{label:"Management Systems",value:"MANAGEMENTSYSTEMS"},{label:"Targets",value:"TARGETS"},{label:"Aspects & Impacts",value:"ASPECTS"},{label:"H&S Risk Register",value:"RISKREGISTER"}]};var vje=t(67315),Cje=t.n(vje);const kje=e=>null!=e,Sje=e=>e?.map(e=>e&&{label:"tagName"in e?e.tagName:e.name,value:e.id}),Nje=e=>{return{id:e.id,accountId:e.accountId,author:(t=e.author,t?`${t.first_name} ${t.last_name}`:nce),owners:(n=e.owners,n?.filter(kje).map(e=>({label:e.first_name+" "+e.last_name,value:e.id}))),locations:Sje(e?.locations),name:e.name,description:e.description,priority:e.priority,category:e.category,scope:e.scope,subject:e.subject,item:e.item,itemId:e.item?.id,tags:Sje(e?.tags),createdAt:e.createdAt,completedAt:e.completedAt,isCompleted:e.isCompleted,dueDate:e.dueDate,evidence:e.evidence,project:e?.projectId,projectId:null};var n,t},Aje=e=>({id:e.id,accountId:e.accountId,name:e.name,description:e.description,category:e.category,subject:e.subject,itemId:e.itemId,owners:Ga(e.owners),priority:e.priority,dueDate:e.dueDate,createdAt:e.createdAt,completedAt:e.isCompleted&&e.completedAt?e.completedAt:e.isCompleted?(new Date).toISOString():null,isCompleted:e.isCompleted,scope:e.scope,locationIds:Ga(e.locations),tagIds:Ga(e.tags),projectId:e.projectId}),Rje=e=>{let{id:n}=e;return(0,fe.jsx)(Cpe,{size:"lg",children:(0,fe.jsx)(de.A,{id:n})})},Dje=e=>{let{id:n}=e;return(0,fe.jsx)(spe,{size:"lg",children:(0,fe.jsx)(de.A,{id:n})})},Lje=window.history.state&&window.history.state.idx>0,Ije=e=>{let{hasProjectsAccess:n=!1}=e;const t=Je(),a=lr(),i=ud(),l=a.task.some(e=>e.startsWith("edit")),r=a.task.some(e=>e.startsWith("delete")),o=!a.document.find(e=>e.startsWith("create")),[s,d]=(0,g.useState)(!1),[c,u]=(0,g.useState)([]),[f,y]=(0,g.useState)(""),{token:h}=qe(),{showNotification:x}=tn(),[T,b]=(0,g.useState)([]),[v,C]=(0,g.useState)({}),{id:k}=(0,m.g)(),S=(0,m.Zp)(),[N,A]=(0,g.useState)({}),[R,D]=(0,g.useState)(!1),L=or(),{data:I,error:j,loading:w,refetch:O}=dn(Cje(),{variables:{id:k},onCompleted:e=>{const n=e?.getTaskById;C(Nje(n));const t=[];n?.evidence?.filter(e=>e?.documents?.length>0).map(e=>e?.documents?.map(e=>t.push(e))),b(t)}}),E=e=>S(e?-1:L.tasks.root);(0,g.useEffect)(()=>{O({id:k})},[]);const[_,{loading:F}]=nd(ode(),{onCompleted:()=>{x("Evidence has been attached to the current task.","success"),d(!1)},onError:()=>{x("Something went wrong! Please try again later.","danger")}}),[P,{loading:B}]=nd(gce(),{onCompleted:()=>{x("Task has been successfully updated")},onError:()=>{x("Something went wrong! Please try again later.","danger")}}),[U,{loading:$}]=nd(xce(),{onCompleted:()=>{E(Lje),x("Task has been successfully deleted")},onError:()=>{x("Something went wrong! Please try again later.","danger")},refetchQueries:[{query:uTe(),variables:{accountId:t,userId:h.sub}}]}),M=e=>{Object.keys(N).find(n=>n===e.target.name)&&A({...N,[e.target.name]:null}),C({...v,[e.target.name]:e.target.value})},V=jde(),G=(0,g.useCallback)(()=>{const e=Aje(v),n=q0(e);(0,hn.isEmpty)(n)&&(A({}),P({variables:e,refetchQueries:["GetTaskById"]})),(0,hn.isEmpty)(n)||A(n)},[v,P]);return(0,fe.jsxs)(rpe,{children:[(0,fe.jsxs)(Lpe,{children:[(0,fe.jsx)(xV,{name:"Tasks_Header",title:v?.name,breadcrumbs:[{title:"Tasks"}],icon:"tasks",iconColor:"tertiary",leftButtonClick:()=>E(Lje)}),(0,fe.jsxs)(vpe,{children:[l&&(0,fe.jsx)(xpe,{"data-testid":"Save_Button",onClick:G,disabled:F||B||$,children:"Save"}),(0,fe.jsx)(Tpe,{"data-testid":"Cancel_Button",onClick:()=>E(Lje),disabled:F||B||$,children:"Cancel"}),r&&(0,fe.jsx)(bpe,{"data-testid":"Delete_Button",onClick:()=>D(!0),disabled:F||B||$,children:"Delete"})]})]}),(0,fe.jsxs)(ope,{children:[w&&(0,fe.jsx)(ype,{children:(0,fe.jsx)(ie.Ip,{})}),s&&(0,fe.jsx)(ie.aF,{show:!0,size:"md",onDismiss:()=>d(!1),children:(0,fe.jsxs)(ope,{children:[(0,fe.jsx)(ie.DZ,{children:"Add Evidence"}),(0,fe.jsx)(Lde,{evidenceDocuments:c,setEvidenceDocuments:u,evidenceNotes:f,setEvidenceNotes:y}),(0,fe.jsx)(ie.$n,{onClick:()=>(async()=>{if(c.length){const e=await V(c,[],"Other Reference");_({variables:{id:(0,Wa.A)(),taskId:k,evidenceType:wde,notes:f,documents:e},refetchQueries:["GetTaskById"]})}})(),children:"Save Evidence"})]})}),R&&(0,fe.jsx)(vu,{deleteObjectName:"task",onConfirmClick:()=>{var e;void 0!==(e=k)&&U({variables:{id:e}})},onDismissClick:()=>D(!1)}),j&&(0,fe.jsx)($c,{name:j.message,retry:()=>O({id:k}),error:j}),!w&&I&&(0,fe.jsxs)(ope,{children:[(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(Rje,{id:"pages.task.details.name"}),(0,fe.jsx)(dpe,{"data-testid":"Task_Name",onChange:M,name:"name",value:v.name,box:!1,error:N.name,readOnly:!l})]}),(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(Rje,{id:"pages.task.details.description"}),(0,fe.jsx)(upe,{"data-testid":"Task_Description",onChange:M,name:"description",value:v.description,box:!0,readOnly:!l,error:N.description})]}),(0,fe.jsxs)(ie.fI,{container:!0,span:12,children:[(0,fe.jsxs)(cpe,{item:!0,span:6,children:[(0,fe.jsx)(Dje,{id:"pages.task.details.creator"}),(0,fe.jsx)(mpe,{"data-testid":"Task_Creator",size:"md",name:"author",onChange:M,value:v.author,readOnly:!0})]}),(0,fe.jsxs)(cpe,{item:!0,span:6,children:[(0,fe.jsx)(Dje,{id:"pages.task.details.createdAt"}),(0,fe.jsx)(mpe,{"data-testid":"Task_Creator",size:"md",name:"author",onChange:M,value:Sn(v.createdAt),readOnly:!0})]})]}),(0,fe.jsxs)(ie.fI,{container:!0,span:12,children:[(0,fe.jsxs)(cpe,{item:!0,span:6,children:[(0,fe.jsx)(Dje,{id:"pages.task.details.completed"}),(0,fe.jsx)(ie.Sc,{size:"md",checked:v.isCompleted,onClick:()=>C({...v,isCompleted:!v.isCompleted})})]}),v.isCompleted&&(0,fe.jsxs)(cpe,{item:!0,span:6,children:[(0,fe.jsx)(Dje,{id:"pages.task.details.completedAt"}),(0,fe.jsx)(Dpe,{children:(0,fe.jsx)(fpe,{"data-testid":"Completed_Date",name:"completedAt",onDayClick:e=>{C({...v,completedAt:e?e.toISOString():null})},readOnly:!l,disabledDatesAfter:new Date,selectedDate:v.isCompleted&&v.completedAt?new Date(v.completedAt):v.isCompleted?new Date:null})})]})]}),(0,fe.jsxs)(ie.fI,{container:!0,span:12,children:[(0,fe.jsxs)(cpe,{item:!0,span:6,children:[(0,fe.jsx)(Dje,{id:"pages.task.details.status"}),(0,fe.jsx)(mpe,{"data-testid":"Task_Status",size:"md",name:"status",onChange:M,value:v.isCompleted?"Completed":new Date(v.dueDate)>new Date?"Incompleted":"Overdue",readOnly:!0})]}),(0,fe.jsxs)(cpe,{item:!0,span:6,children:[(0,fe.jsx)(Rje,{id:"pages.task.details.dueDate"}),(0,fe.jsx)(Dpe,{children:(0,fe.jsx)(fpe,{"data-testid":"Due_Date",name:"dueDate",onDayClick:e=>{C({...v,dueDate:e?e.toISOString():null})},readOnly:!l,selectedDate:v.dueDate?new Date(v.dueDate):null,error:N.dueDate})})]})]}),(0,fe.jsxs)(ie.fI,{container:!0,distribution:"between",span:12,itemAlign:"bottom",children:[(0,fe.jsxs)(cpe,{item:!0,span:4,children:[(0,fe.jsx)(Rje,{id:"pages.task.details.scope"}),(0,fe.jsx)(ppe,{"data-testid":"Task_scope",name:"scope",options:i,value:v.scope,onChange:M,isDisabled:!l})]}),(0,fe.jsxs)(cpe,{item:!0,span:4,children:[(0,fe.jsx)(Rje,{id:"pages.task.details.priority"}),(0,fe.jsx)(ppe,{"data-testid":"Task_priority",size:"md",onChange:M,name:"priority",value:v.priority,options:$0,readOnly:!l,error:N.priority})]}),(0,fe.jsxs)(cpe,{item:!0,span:4,children:[(0,fe.jsx)(Rje,{id:"pages.task.details.category"}),(0,fe.jsx)(ppe,{"data-testid":"Task_category",size:"md",name:"category",onChange:e=>{C({...v,[e.target.name]:e.target.value,subject:null,item:null})},value:v.category,options:U0,readOnly:!l,error:N.category})]})]}),v.scope===gn.HG.Location&&(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(Rje,{id:"pages.task.details.locations"}),(0,fe.jsx)(gpe,{children:(0,fe.jsx)(eh,{name:"locations",accountId:t,value:v.locations,onChange:M,disabled:!l})})]}),v.scope===gn.HG.Tag&&(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(Rje,{id:"pages.task.details.tags"}),(0,fe.jsx)(gpe,{children:(0,fe.jsx)(Qg,{name:"tags",accountId:t,value:v.tags,onChange:M,disabled:!l})})]}),`${v.category}`in bje?(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(Rje,{id:"pages.task.details.subject"}),(0,fe.jsx)(ppe,{name:"subject",classPrefix:"subject-select",disabled:!l,onChange:e=>M(e),value:v.subject?.toUpperCase()||null,options:bje[v.category],error:N.subject})]}):null,v.subject&&[gn.AR.Legislation,gn.AR.Aspects,gn.AR.Targets].includes(v.subject)&&(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(Dje,{id:"pages.task.details.relatedItem"}),v.subject===gn.AR.Legislation&&(0,fe.jsx)(Ipe,{children:(0,fe.jsx)(Hse,{name:"itemId",onChange:M,value:v.itemId,isDisabled:!l,error:!1})}),v.subject===gn.AR.Aspects&&(0,fe.jsx)(Ipe,{children:(0,fe.jsx)(Qse,{name:"itemId",onChange:M,value:v.itemId||v.item?.id,isDisabled:!l,error:null})}),v.subject===gn.AR.Targets&&(0,fe.jsx)(Ipe,{children:(0,fe.jsx)(Zse,{name:"itemId",onChange:M,value:v.itemId,error:null})})]}),(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(Rje,{id:"pages.task.details.owner"}),(0,fe.jsx)(gpe,{children:(0,fe.jsx)(xb,{onChange:e=>{const n="owner"===e.target.name?e.target?.select?.map(e=>{let{value:n,label:t}=e;return{value:n,label:t}}):v.owners;C({...v,[e.target.name]:e.target.select,owners:n})},value:v.owners,accountId:t,isDisabled:!l,error:N.owner})})]}),n&&(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(Dje,{id:"pages.task.details.project"}),(0,fe.jsx)(Ipe,{children:(0,fe.jsx)(Xse,{name:"projectId",accountId:t,onChange:M,value:v.projectId||v?.project?.id})})]}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(tpe,{item:!0,span:12,children:(0,fe.jsx)(Xue,{container:!0,item:!0,children:(0,fe.jsxs)(epe,{children:[(0,fe.jsx)(npe,{children:(0,fe.jsxs)(ape,{span:12,children:[(0,fe.jsx)(ipe,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"file-alt"}),(0,fe.jsx)(ie.DZ,{inline:!0,children:"Evidence Library"})]})}),(0,fe.jsx)(lpe,{children:(0,fe.jsxs)(ie.FN,{show:3,scroll:1,width:"675px",infinite:!1,children:[new Array(wa(T)).fill(0).map((e,n)=>(0,fe.jsx)(Wde,{id:e.id,disabled:o,onClick:()=>d(!0),children:(0,fe.jsx)(ie.ON,{title:"Upload Evidence"})},`upload-evidence${n}`)),v?.evidence?.filter(e=>e?.documents?.length>0).map(e=>e?.documents?.map(n=>(0,fe.jsx)(p.Link,{to:{pathname:`/documents/all/${n.id}`},state:{taskId:k},children:(0,fe.jsx)(ie.ON,{title:e.notes,desc:n.fileName,uploaded:!0})},n.id)))]})})]})})})})]})]})]})},jje=le.default.div`
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,wje=e=>{let{hasProjectsAccess:n}=e;return(0,fe.jsx)(jje,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(Tje,{hasProjectsAccess:n})}),(0,fe.jsx)(m.qh,{path:"/:id",element:(0,fe.jsx)(Ije,{})})]})})},Oje={"Waste performance improvement category (t)":"quaternary","Energy generation category (kwh)":"secondary","Electricity reduction category (kwh)":"secondary","Transport emissions reduction category (km)":"tertiary","Gas reduction category (kwh)":"primary","Water efficiency category (m3)":"secondary",default:"primary"},Eje={"Waste performance improvement category (t)":"tonnes","Energy generation category (kwh)":"kwh","Electricity reduction category (kwh)":"kwh","Transport emissions reduction category (km)":"km","Gas reduction category (kwh)":"kwh","Water efficiency category (m3)":"m3",default:""},_je=[{label:"QUARTER-ANNUAL",value:"QUARTER-ANNUAL"},{label:"SEMI-ANNUAL",value:"SEMI-ANNUAL"},{label:"ANNUAL",value:"ANNUAL"}],Fje=[{id:"HIGH",name:"High",icon:"exclamation-triangle",colour:"danger",label:"High",value:"HIGH"},{id:"MEDIUM",name:"Medium",icon:"exclamation-circle",colour:"warning",label:"Medium",value:"MEDIUM"},{id:"LOW",name:"Low",icon:"exclamation-circle",colour:"text",label:"Low",value:"LOW"}],Pje=le.default.div`
  background-color: ${e=>e.color?e.theme.colors[e.color].normal.background:"secondary"};
  color: white;
  padding: 5px 10px;
  text-align: center;
  display: inline-block;
  border-radius: 20px;

  position: relative;
  display: inline-block;

  :hover span {
    visibility: visible;
    opacity: 1;
  }
`,Bje=le.default.span`
  visibility: hidden;
  opacity: 0;
  z-index: 1;

  -webkit-transition: opacity 1s;
  -moz-transition: opacity 1s;
  -o-transition: opacity 1s;
  transition: opacity 1s;

  position: fixed;
  height: auto;
  width: auto;
  margin-left: 20px;
  padding: 5px 10px;

  word-break: break-word;
  text-align: center;
  border-radius: 6px;

  font-size: 14px;
  background-color: #ddd;
  color: black;

  ::after {
    content: ' ';
    position: absolute;
    top: 50%;
    right: 100%; /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #ddd transparent transparent;
  }
`;function Uje(e){const{data:{id:n,scheme:t}}=e,a=t?.category,i=a?.name.replace(/\(.*/,"").split(" ").map(e=>e[0]||"").join("").toUpperCase();return(0,fe.jsx)(ie.EY,{align:"left",name:`project-row__subject-${n}`,children:a?(0,fe.jsxs)(Pje,{color:Oje[a.name],children:[i,(0,fe.jsx)(Bje,{children:a.name})]}):""})}const $je={BGN:"лв",CZK:"Kč",DKK:"kr",EUR:"€",GBP:"£",HRK:"kn",GEL:"₾",HUF:"ft",NOK:"kr",PLN:"zł",RUB:"₽",RON:"lei",SEK:"kr",TRY:"₺",UAH:"₴",BRL:"R$",CAD:"$",CLP:"$",COP:"$",MXN:"$",PEN:"S/.",USD:"$",AUD:"$",BDT:"৳",CNY:"¥",HKD:"HK$",IDR:"Rp",INR:"₹",JPY:"¥",MYR:"RM",NZD:"$",PHP:"₱",PKR:"Rs",SGD:"$",KRW:"₩",LKR:"Rs",THB:"฿",VND:"₫"};function Mje(e){const{data:{cost:n,currencyId:t}}=e,{data:a}=(0,x.IT)(Vo()),i=(a?.getAllCurrencyTypes||[]).find(e=>e.id===t),l=$je[i?.name||""]??i?.name;return(0,fe.jsxs)(ie.EY,{align:"center",children:[n," ",l]})}const Vje=le.default.div`
  color: ${e=>e.theme.colors.text.normal.background};

  :hover > span {
    visibility: visible;
    opacity: 1;
  }
`,Gje=le.default.span`
  visibility: hidden;
  opacity: 0;
  z-index: 1;

  -webkit-transition: opacity 1s;
  -moz-transition: opacity 1s;
  -o-transition: opacity 1s;
  transition: opacity 1s;

  position: fixed;
  height: auto;
  width: auto;
  margin-left: 20px;
  padding: 5px 10px;

  word-break: break-word;
  text-align: center;
  border-radius: 6px;

  font-size: 14px;
  background-color: #ddd;
  color: black;

  ::after {
    content: ' ';
    position: absolute;
    top: 50%;
    right: 100%; /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #ddd transparent transparent;
  }
`;function zje(e){const{data:{description:n}}=e;return n&&(0,fe.jsxs)(Vje,{children:[(0,fe.jsx)(ie.In,{name:"project-row__info",icon:"info-circle"}),(0,fe.jsx)(Gje,{children:n})]})}const Wje=le.default.div`
  display: flex;
  align-items: center;
  justify-content: center;
`,qje=function(e){const{formatMessage:n}=(0,dc.A)(),{data:{owners:t=[]}={}}=e,a=t.length?t.slice().reverse().map(e=>{let{first_name:n,last_name:t}=e;return`${n} ${t}`}).join(", "):[],i=t.slice().reverse().map(e=>(0,fe.jsx)(ie.Y3,{src:e.profilePicture,accountName:e.first_name},e.profilePicture+e.first_name));return(0,fe.jsxs)(fe.Fragment,{children:[!!t.length&&(0,fe.jsx)(Wje,{children:(0,fe.jsx)(ie.G3,{title:a,outline:!0,size:"xxs",color:Oje[e.data.category?.name||"default"],children:i})}),!t.length&&(0,fe.jsx)(ie.EY,{align:"left",children:n({id:"pages.project.grid.value.emptyOwners"})})]})},Jje=(e,n)=>{const t={HIGH:{icon:"exclamation-triangle",color:n.colors.danger.normal.background},MEDIUM:{icon:"exclamation-circle",color:n.colors.warning.normal.background},LOW:{icon:"exclamation-circle",color:n.colors.text.normal.background}};return e&&t[e]||{}};function Yje(e){const{data:{priority:n}={}}=e,t=(0,le.useTheme)();return(0,fe.jsx)(ie.In,{name:"project-row__priority",size:"lg",...Jje(n,t)})}function Hje(e){const{data:{startDate:n}={}}=e,t=Sn(n);return n&&(0,fe.jsx)(ie.EY,{align:"left",children:t})}const Kje=(0,le.default)(ie.fI)`
  flex: 1;

  .ag-header-cell-resize {
    z-index: 0;
  }
`,Qje=[{colId:"startDate",sort:"asc",sortIndex:0},{colId:"name",sort:"asc",sortIndex:1}],Zje=function(e){const n=(0,m.Zp)(),{formatMessage:t}=(0,dc.A)(),{projects:a}=e,i={category:Uje,costCell:Mje,description:zje,owners:qje,priority:Yje,startDate:Hje},l={lineHeight:"21px",wordBreak:"inherit",display:"flex",alignItems:"center"},r={onRowClicked:e=>{n(`./${e.data.id}`)},rowHeight:120,columnDefs:[{headerName:t({id:"pages.project.grid.header.name"}),field:"name",filterParams:{buttons:["reset","apply"],closeOnApply:!0},width:160,minWidth:160,cellStyle:l},{headerName:"Priority",field:"priority",sortable:!1,filter:!0,hide:!0},{headerName:t({id:"pages.project.grid.header.impact"}),field:"impact",sortable:!1,filter:!1,width:200,minWidth:160,cellStyle:l},{headerName:t({id:"pages.project.grid.header.description"}),cellRenderer:"description",sortable:!1,filter:!1,minWidth:50,width:110,cellStyle:{textAlign:"center"}},{headerName:t({id:"pages.project.grid.header.locations"}),valueGetter:e=>{let{data:{locations:n}}=e;return n?.map(e=>e?.name)},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:130,cellStyle:l},{headerName:t({id:"pages.project.grid.header.meters"}),valueGetter:e=>{let{data:{meters:n}}=e;return n?.map(e=>e?.name)},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:110,cellStyle:l},{headerName:t({id:"pages.project.grid.header.category"}),cellRenderer:"category",filterParams:{buttons:["reset","apply"],closeOnApply:!0},width:130,minWidth:130},{headerName:t({id:"pages.project.grid.header.scheme"}),valueGetter:e=>{let{data:{scheme:n}}=e;return n?n.name:""},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:110,cellStyle:l},{headerName:t({id:"pages.project.grid.header.owners"}),field:"owners",cellRenderer:"owners",valueGetter:e=>{let{data:{owners:n=[]}}=e;return n.map(e=>{let{first_name:n,last_name:t}=e;return`${n} ${t}`})},filterParams:{buttons:["reset","apply"],closeOnApply:!0},width:160,minWidth:90},{headerName:t({id:"pages.project.grid.header.cost"}),field:"cost",cellRenderer:"costCell",filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:t({id:"pages.project.grid.header.implementationDate"}),field:"startDate",cellRenderer:"startDate",filter:"agDateColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0,comparator:tt},minWidth:120},{headerName:t({id:"pages.project.grid.header.baselineDate"}),cellStyle:l,valueGetter:e=>{let{data:{baselineStartDate:n}}=e;return ot([n,new Date(n).setFullYear(new Date(n).getFullYear()+1)])},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:t({id:"pages.project.grid.header.benefitsDate"}),cellStyle:l,valueGetter:e=>{let{data:{startDate:n,endDate:t}}=e;return ot([n,t])},filterParams:{buttons:["reset","apply"],closeOnApply:!0,comparator:tt},minWidth:120},{headerName:t({id:"pages.project.grid.header.plannedBenefit"}),field:"plannedBenefit",cellStyle:l,filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:t({id:"pages.project.grid.header.plannedCostChange"}),field:"plannedCostChange",cellStyle:l,filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:t({id:"pages.project.grid.header.plannedCO2eChange"}),field:"plannedCO2eChange",cellStyle:l,filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:t({id:"pages.project.grid.header.frequency"}),valueGetter:e=>{let{data:{frequency:n}}=e;return PH()(n)},cellStyle:l,filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120}],defaultColDef:{sortable:!0,resizable:!0,filter:!0,cellStyle:{height:"auto"}},rowStyle:{width:"100%",display:"flex",alignItems:"center"}};return(0,fe.jsx)(Kje,{container:!0,children:(0,fe.jsx)(Pg,{rowData:a,components:i,getRowId:Gn("id"),onGridReady:n=>{n.api.applyColumnState({state:Qje}),e.agGrid.onGridReady(n)},onFilterChanged:e.agGrid.onFilterChanged,onFirstDataRendered:e.agGrid.onFirstDataRendered,...r})})},Xje=(e,n,t,a)=>{const i=e?.filterModel?.[n]?.values;t(1===i?.length&&i[0]===a)};function ewe(){const[e,n]=(0,g.useState)(null),[t,a]=(0,g.useState)(null),{token:i}=qe(),l=Je();return(0,g.useEffect)(()=>{const e=localStorage.getItem(zr),t=null!==e?JSON.parse(e):{},r=i?.sub,o=t?.[`${r}-${l}-/tasks`];Xje(o,"priority",a,gn.KB.High),Xje(o,"owners",n,`${i.given_name} ${i.family_name}`)},[]),{showMine:e,setShowMine:n,showHighPriority:t,setShowHighPriority:a}}function nwe(e){let{accountId:n,name:t,value:a,projectCategory:i,readOnly:l,isClearable:r,isDisabled:o,onChange:s,className:d,error:c}=e;const{data:u,loading:p,error:m}=(0,x.IT)(iS,{variables:{accountId:n}}),f=(0,g.useMemo)(()=>((i?u?.getProjectSchemes?.filter(e=>e.category.id===i.id):u?.getProjectSchemes)||[]).map(Ua),[i,p]);return(0,fe.jsx)(ie.l6,{size:"md",name:t||"scheme",placeholder:"Please select scheme",classPrefix:"scheme-select",value:a,error:c||m,isLoading:p,onChange:s,defaultOptions:!0,readOnly:l||!1,options:f,isDisabled:o||p,isClearable:r||!1,className:d})}const twe=e=>{let{name:n,value:t,onChange:a,readOnly:i,isClearable:l,isDisabled:r,className:o}=e;const{data:s,loading:d,error:c}=(0,x.IT)(sS),u=(0,g.useMemo)(()=>s?.getProjectCategories?.map(Ua)||[],[d]);return(0,fe.jsx)(ie.l6,{defaultOptions:!0,size:"md",name:n||"category",value:t,onChange:a,placeholder:"Please select scheme category",options:u,error:c,isLoading:d,readOnly:i||!1,isDisabled:r||d,isClearable:l||!1,className:o})},awe=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,iwe=le.default.div`
  svg {
    cursor: pointer;
  }

  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,lwe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,rwe=e=>{let{text:n,height:t}=e;const a=le.default.div`
    display: flex;
    margin-top: 36px;
  `,i=le.default.span`
    background-color: #ffe5b4;
    border-radius: 6px;
    color: #83838e;
    cursor: default;
    font-size: 14px;
    height: ${t};
    text-align: left;
    padding: 5px 10px;
    width: 190px;
    word-break: break-word;
  `;return(0,fe.jsx)(a,{children:(0,fe.jsx)(i,{children:n})})},owe=(0,le.default)(ie.lr)`
  .DayPickerInput-Overlay {
    top: -354px;
    left: 50%;
  }
`,swe=e=>{let{isSubmitting:n,project:t,setProject:a,accountId:i,errors:l,evidenceNotes:r,evidenceDocuments:o,setEvidenceNotes:s,setEvidenceDocuments:d}=e;const[c,u]=(0,g.useState)(t.locations||null),[p,m]=(0,g.useState)(t.owners||null),[f,y]=(0,g.useState)(t.meters||null),[h,T]=(0,g.useState)(!1),[b,v]=(0,g.useState)(!1),[C,k]=(0,g.useState)(!1),[S,N]=(0,g.useState)(!1),[A,R]=(0,g.useState)(!1),[D,L]=(0,g.useState)(null),[I,j]=(0,g.useState)(null);(0,x.IT)(sS,{onCompleted:e=>{j(e?.getProjectCategories||[])},onError:()=>{j([])}});const w=I?.find(e=>e.name===Wr)?.id,O=(0,g.useCallback)(e=>{const n="locationsSelect"===e.target.name?e.target.select.map(e=>{let{value:n}=e;return n}):t.locations,i="owner"===e.target.name?e.target.select.map(e=>{let{value:n}=e;return n}):t.owners,l="meters"===e.target.name?e.target.select.map(e=>{let{value:n}=e;return n}):t.meters;"locationsSelect"===e.target.name&&(u(e.target.select),y([]),a({...t,meters:[]})),"owner"===e.target.name&&m(e.target.select),"meters"===e.target.name&&y(e.target.select),a({...t,[e.target.name]:Ka(e)?e.target.value:e.target.value||e.target.select,locations:n,owners:i,meters:l})},[t,a]),E=new Date(t.baselineStartDate);return E.setFullYear(new Date(t.baselineStartDate).getFullYear()+1),(0,fe.jsxs)("div",{children:[(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.name"})})}),(0,fe.jsx)(ie.ks,{"data-cy":"ProjectDetails__Input-name",disabled:n,onChange:O,name:"name",value:t.name,error:l.name,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.description"})})}),(0,fe.jsx)(ie.fs,{"data-cy":"ProjectDetails__Input-description",size:"lg",disabled:n,onChange:O,name:"description",value:t.description,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.impact"})})}),(0,fe.jsx)(ie.ks,{"data-cy":"ProjectDetails__Input-impact",disabled:n,onChange:O,name:"impact",value:t.impact,box:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-priority",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.priority"})})}),(0,fe.jsx)(ie.l6,{name:"priority",classPrefix:"priority-select",isDisabled:n,onChange:O,value:t.priority,options:Fje,error:l.priority})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-category",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.category"})})}),(0,fe.jsx)(twe,{value:D?Ua(D):null,onChange:e=>{L(e.target.value?{id:e.target.value,name:e.target.label}:null),y([]),a({...t,meters:[]})},isClearable:!0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.locations"})})}),(0,fe.jsx)(eh,{name:"locationsSelect",accountId:i,value:c,onChange:O,isSubmitting:n,disabled:n,defaultOptions:!1,error:void 0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-scheme",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.scheme"})})}),(0,fe.jsx)(nwe,{name:"schemeId",accountId:i,onChange:O,value:t.schemeId,projectCategory:D,isClearable:!0,error:l.schemeId})]})}),D?.id===w&&!!c.length&&(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.meters"})})}),(0,fe.jsx)(g$,{name:"meters",accountId:i,value:f,onChange:O,isSubmitting:n,disabled:n,locationsToFilter:c,defaultOptions:!1,error:void 0})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-owners",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.owner"})})}),(0,fe.jsx)(xb,{accountId:i,onChange:O,selectedOption:p,value:p})]})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.cost"})})}),(0,fe.jsx)(ie.ks,{"data-cy":"ProjectDetails__Input-cost",disabled:n,onChange:O,name:"cost",value:t.cost,error:l.cost,box:!0})]})}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-startDate",children:[(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsxs)(iwe,{children:[(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.startDate"})}),(0,fe.jsx)(ie.In,{color:"#ffe5b4",icon:h?"times-circle":"info-circle",onClick:()=>T(!h)})]}),(0,fe.jsx)(owe,{disabled:n,onDayClick:e=>{O({target:{name:"startDate",value:e?e.toISOString():e}})},name:"startDate",selectedDate:t.startDate?new Date(t.startDate):t.startDate,disabledDatesBefore:E,error:l.startDate,box:!0})]}),h?(0,fe.jsx)(rwe,{text:"The date you would expect to start making savings from your project.",height:"60px"}):null]}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-endDate",children:[(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsxs)(iwe,{children:[(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.endDate"})}),(0,fe.jsx)(ie.In,{color:"#ffe5b4",icon:b?"times-circle":"info-circle",onClick:()=>v(!b)})]}),(0,fe.jsx)(ie.lr,{disabled:n,onDayClick:e=>{O({target:{name:"endDate",value:e?e.toISOString():e}})},name:"endDate",selectedDate:t.endDate?new Date(t.endDate):t.endDate,disabledDatesBefore:t.startDate?new Date(t.startDate):t.startDate,error:l.endDate,box:!0})]}),b?(0,fe.jsx)(rwe,{text:"The date which you anticipate your planned savings to be realised.",height:"60px"}):null]}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-baselineStartDate",children:[(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsxs)(iwe,{children:[(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.baselineStartDate"})}),(0,fe.jsx)(ie.In,{color:"#ffe5b4",icon:C?"times-circle":"info-circle",onClick:()=>k(!C)})]}),(0,fe.jsx)(owe,{disabled:n,onDayClick:e=>{O({target:{name:"baselineStartDate",value:e?e.toISOString():e}})},name:"baselineStartDate",selectedDate:t.baselineStartDate?new Date(t.baselineStartDate):t.baselineStartDate,error:l.baselineStartDate,box:!0})]}),C?(0,fe.jsx)(rwe,{text:"The annual period to compare project performance against.",height:"60px"}):null]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsxs)(awe,{children:[D?.id===w&&(0,fe.jsx)(de.A,{id:"pages.project.details.plannedBenefitGeneration"}),D?.id!==w&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(de.A,{id:"pages.project.details.plannedBenefit"})," ",Eje[D?.name||"default"]]})]})}),(0,fe.jsx)(ie.ks,{"data-cy":"ProjectDetails__Input-plannedBenefit",disabled:n,onChange:O,name:"plannedBenefit",value:t.plannedBenefit,error:l.plannedBenefit,box:!0})]})}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsxs)(iwe,{children:[(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.plannedCarbonChange"})}),(0,fe.jsx)(ie.In,{color:"#ffe5b4",icon:S?"times-circle":"info-circle",onClick:()=>N(!S)})]}),(0,fe.jsx)(ie.ks,{"data-cy":"ProjectDetails__Input-plannedCO2eChange",disabled:n,onChange:O,name:"plannedCO2eChange",value:t.plannedCO2eChange,error:l.plannedCO2eChange,box:!0})]}),S?(0,fe.jsx)(rwe,{text:"This figure should be positive. Negative values will be automatically converted to a positive value in the Project Dashboard.",height:"auto"}):null]}),(0,fe.jsxs)(ie.fI,{container:!0,align:"between",children:[(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsxs)(iwe,{children:[(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.plannedCostChange"})}),(0,fe.jsx)(ie.In,{color:"#ffe5b4",icon:A?"times-circle":"info-circle",onClick:()=>R(!A)})]}),(0,fe.jsx)(ie.ks,{"data-cy":"ProjectDetails__Input-plannedCostChange",disabled:n,onChange:O,name:"plannedCostChange",value:t.plannedCostChange,error:l.plannedCostChange,box:!0})]}),A?(0,fe.jsx)(rwe,{text:"This figure should be positive. Negative values will be automatically converted to a positive value in the Project Dashboard.",height:"auto"}):null]}),(0,fe.jsx)(ie.fI,{container:!0,align:"between","data-cy":"ProjectDetails__Input-frequency",children:(0,fe.jsxs)(lwe,{item:!0,children:[(0,fe.jsx)(iwe,{children:(0,fe.jsx)(awe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.frequency"})})}),(0,fe.jsx)(ie.l6,{name:"frequency",classPrefix:"frequency-select",isDisabled:n,onChange:O,value:t.frequency,options:_je,error:l.frequency})]})}),(0,fe.jsx)(Lde,{evidenceDocuments:o,setEvidenceDocuments:d,evidenceNotes:r,setEvidenceNotes:s})]})};var dwe=t(91690),cwe=t.n(dwe),uwe=function(e){return e.cost="cost",e.plannedBenefit="plannedBenefit",e.plannedCO2eChange="plannedCO2eChange",e.plannedCostChange="plannedCostChange",e}(uwe||{}),pwe=function(e){return e.name="name",e.priority="priority",e.baselineStartDate="baselineStartDate",e.startDate="startDate",e.endDate="endDate",e.plannedBenefit="plannedBenefit",e.frequency="frequency",e.schemeId="schemeId",e}(pwe||{});const mwe=e=>{const n={};for(const t of Object.values(uwe))e[t]&&!isFinite(Number(e[t]))&&(n[t]="Value have to be a number");for(const t of Object.values(pwe))!e[t]&&(n[t]="Value required");if(!n.priority&&!Fje.find(n=>n.id===e.priority)){const e=Fje.map(e=>{let{value:n}=e;return n}).join(", ");n.priority=`Should be one of known properties: ${e}`}if(!n.frequency&&!_je.find(n=>n.value===e.frequency)){const e=_je.map(e=>{let{value:n}=e;return n}).join(", ");n.frequency=`Should be one of known properties: ${e}`}const t=bn()(e.startDate).isValid()&&bn()(e.baselineStartDate).isValid()&&bn()(e.startDate).isAfter(bn()(e.baselineStartDate).add(1,"year"));n.startDate||n.baselineStartDate||t||(n.startDate="Have to be after baseline year end date (baseline start date + 1 year)");const a=bn()(e.startDate).isValid()&&bn()(e.endDate).isValid()&&bn()(e.startDate).isBefore(bn()(e.endDate));return n.startDate||n.endDate||a||(n.endDate="Have to be after start date"),n},fwe=Fje.map(e=>{let{id:n}=e;return n}),ywe=_je.map(e=>{let{value:n}=e;return n}),gwe=h.Ik().shape({name:h.Yj().required("Value required"),priority:h.Yj().oneOf(fwe,`Should be one of known properties: ${fwe.join(", ")}`).required("Value required"),plannedBenefit:h.ai().required("Value required").typeError("Value has to be a number"),cost:h.ai().nullable().typeError("Value has to be a number"),plannedCO2eChange:h.ai().nullable().typeError("Value has to be a number"),plannedCostChange:h.ai().nullable().typeError("Value has to be a number"),frequency:h.Yj().oneOf(ywe,`Should be one of known properties: ${ywe.join(", ")}`).required("Value required"),schemeId:h.Yj().required("Value required"),baselineStartDate:h.p6().nullable().required("Value required").test("before-start-date","Baseline start date must be before 1 year from start date",function(e){const{startDate:n}=this.parent;if(n&&e){const t=new Date(n);return t.setFullYear(t.getFullYear()-1),e<=t}return!0}),startDate:h.p6().nullable().required("Value required").min(h.KR("baselineStartDate"),"Start date must be at least one year after baseline start date"),endDate:h.p6().nullable().required("Value required").min(h.KR("startDate"),"End date must be after start date")});function hwe(){const e=jde();let n;return async(t,a)=>t.length||a?(t.length&&(n=await e(t,[],"Other Reference")),[{notes:a,documents:n||[]}]):[]}const xwe=le.default.div`
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: ${e=>e.theme.geometry.sm.spacing} 0;
`,Twe=(0,le.default)(ie.DZ)`
  text-align: center;
`,bwe=(0,le.default)(ie.fv)`
  padding: 0 ${e=>e.theme.geometry.sm.spacing};
`,vwe=(0,le.default)(ie.P)`
  ${e=>{let{theme:n}=e;return`\n    overflow: auto;\n    padding: ${n.geometry.xs.spacing};\n  `}}
`,Cwe=e=>{let{accountId:n,onDismiss:t,onComplete:a,defaultValues:i}=e;const{formatMessage:l}=(0,dc.A)(),[r,o]=(0,g.useState)([]),[s,d]=(0,g.useState)(""),[c]=(0,ln.n)(cwe(),{onCompleted:()=>{a({message:l({id:"pages.project.messages.created"}),color:"success"}),t()},onError:()=>{a({message:l({id:"pages.project.messages.error"}),color:"danger"})}}),u=hwe(),[p,m]=(0,g.useState)({id:i?.id||(0,Wa.A)(),accountId:n,name:i?.name||"",description:i?.description||"",priority:i?.priority||null,schemeId:i?.schemeId||null,impact:i?.impact||"",cost:i?.cost||0,currencyId:i?.currencyId||null,baselineStartDate:i?.baselineStartDate||null,startDate:i?.startDate||null,endDate:i?.endDate||null,frequency:i?.frequency||null,plannedBenefit:i?.plannedBenefit||null,plannedCostChange:i?.plannedCostChange||null,plannedCO2eChange:i?.plannedCO2eChange||null,locations:i?.locations||[],owners:i?.owners||[],evidenceNotes:i?.evidenceNotes||[],meters:i?.meters||[]}),f=mwe(p),y=!Object.values(f).some(Boolean);return(0,fe.jsx)(ie.aF,{size:"md",show:!0,onDismiss:()=>t(),children:(0,fe.jsxs)(xwe,{children:[(0,fe.jsx)(Twe,{children:l({id:"pages.project.create.header"})}),(0,fe.jsx)(vwe,{children:(0,fe.jsx)(swe,{project:p,setProject:m,accountId:n,isSubmitting:!1,errors:f,evidenceNotes:s,evidenceDocuments:r,setEvidenceDocuments:o,setEvidenceNotes:d})}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(bwe,{item:!0,children:(0,fe.jsx)(ie.$n,{"data-cy":"CreateProjectModal__submit",disabled:!y,onClick:()=>(async()=>{const e=await u(r,s);c({variables:{...p,plannedBenefit:+p.plannedBenefit?+p.plannedBenefit:p.plannedBenefit,plannedCO2eChange:p.plannedCO2eChange&&+p.plannedCO2eChange?Math.abs(+p.plannedCO2eChange):p.plannedCO2eChange,plannedCostChange:p.plannedCostChange&&+p.plannedCostChange?Math.abs(+p.plannedCostChange):p.plannedCostChange,createdAt:(new Date).toISOString(),evidenceNotes:e},refetchQueries:["GetProjects"]})})(),children:(0,fe.jsx)(de.A,{id:"pages.project.create.submit"})})})})]})})},kwe=le.default.div`
  display: flex;
  margin-left: auto;

  * {
    width: auto;
    min-width: 150px;
    margin-left: 1rem;
  }
`,Swe=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,Nwe=(0,le.default)(ie.fv)`
  overflow: auto;
  height: 100%;
  padding: 0 ${e=>e.theme.geometry.md.spacing};
  padding-bottom: ${e=>e.theme.geometry.md.spacing};
`,Awe=le.default.div`
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
`,Rwe=le.default.div`
  display: flex;
  flex-direction: row;
  align-items: center;
`,Dwe=(0,le.default)(ie.EY)`
  cursor: pointer;
  margin-right: 15px;

  font-weight: ${e=>{let{isActive:n}=e;return n?"bold":"inherit"}};
`,Lwe=le.default.div`
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
`;var Iwe=function(e){return e[e.Create=0]="Create",e}(Iwe||{});const jwe=()=>{const e=qr(),n=Je(),{token:t}=qe(),[a,i]=(0,g.useState)(void 0),l=lr(),{showNotification:r}=tn(),o=Boolean(l.project.find(e=>"getAll"===e)),s=Boolean(l.project.find(e=>e.startsWith("create"))),{data:d,loading:c,refetch:u,error:p}=(0,x.IT)(oS(),{variables:{accountId:n,userId:t.sub}});(0,g.useEffect)(()=>{u({accountId:n,userId:t.sub})},[]);const{showMine:m,setShowMine:f,showHighPriority:y,setShowHighPriority:h}=ewe(),T=d?.getProjects||[],b=(0,g.useCallback)(e=>{let{message:n,colour:t}=e;r(n,t)},[r]);return(0,fe.jsxs)(Swe,{children:[c?(0,fe.jsx)(Lwe,{children:(0,fe.jsx)(ie.Ip,{})}):"",a===Iwe.Create?(0,fe.jsx)(Cwe,{accountId:n,onDismiss:()=>i(void 0),onComplete:e=>b({message:e.message,colour:e.color})}):"",p?(0,fe.jsx)($c,{error:p,retry:()=>u({accountId:n,userId:t.sub})}):!c&&(0,fe.jsxs)(Nwe,{container:!0,item:!0,children:[(0,fe.jsxs)(Awe,{children:[(0,fe.jsxs)(Rwe,{children:[o&&(0,fe.jsx)(Dwe,{onClick:()=>{const n=!m,a=e.api?.getFilterModel()||{};n?a.owners={type:"set",values:[`${t.given_name} ${t.family_name}`]}:delete a.owners,e.api?.setFilterModel(a),f(n)},isActive:m,children:m?"Show All Projects":"Show My Projects"}),(0,fe.jsx)(Dwe,{onClick:()=>{const n=!y,t=e.api?.getFilterModel()||{};n?t.priority={type:"set",values:[gn.KB.High]}:delete t.priority,e.api?.setFilterModel(t),h(n)},isActive:y,children:y?"Show All Priorities":"Show High Priority"})]}),(0,fe.jsxs)(kwe,{children:[(0,fe.jsx)(qg,{gridApi:e.api,onClick:()=>{f(!1),h(!1)}}),s?(0,fe.jsx)(ie.$n,{"data-cy":"ProjectsHome__Button-create",inline:!0,color:"primary",onClick:()=>i(Iwe.Create),children:"Create Project"}):""]})]}),(0,fe.jsx)(Zje,{projects:T,agGrid:e,showGoTo:!1})]})]})},wwe=S.Ay`
  mutation DeleteProject($id: ID!) {
    deleteProject(id: $id)
  }
`,Owe=S.J1`
  mutation UpdateProject(
    $id: ID!
    $owners: [ID!]!
    $locations: [ID!]!
    $accountId: ID!
    $name: String!
    $description: String
    $priority: ProjectPriority!
    $schemeId: ID!
    $impact: String
    $cost: Float
    $currencyId: ID
    $baselineStartDate: String!
    $startDate: String!
    $endDate: String!
    $frequency: String
    $plannedBenefit: Float!
    $plannedCostChange: Float
    $plannedCO2eChange: Float
    $evidenceNotes: [ProjectEvidenceInput!]!
    $meters: [ID!]!
  ) {
    updateProject(
      input: {
        id: $id
        owners: $owners
        locations: $locations
        accountId: $accountId
        name: $name
        description: $description
        priority: $priority
        schemeId: $schemeId
        impact: $impact
        cost: $cost
        currencyId: $currencyId
        baselineStartDate: $baselineStartDate
        startDate: $startDate
        endDate: $endDate
        frequency: $frequency
        plannedBenefit: $plannedBenefit
        plannedCostChange: $plannedCostChange
        plannedCO2eChange: $plannedCO2eChange
        evidenceNotes: $evidenceNotes
        meters: $meters
      }
    ) {
      ...ProjectFields
    }
  }
  ${jr}
`,Ewe=S.J1`
  mutation UpdateTask(
    $id: ID!
    $accountId: String!
    $name: String!
    $description: String!
    $scope: Scope
    $locationIds: [ID]
    $tagIds: [ID]
    $category: TaskCategory!
    $subject: TaskSubject
    $itemId: String
    $owners: [String!]
    $priority: TaskPriority!
    $dueDate: String!
    $isCompleted: Boolean!
    $createdAt: String!
    $completedAt: String
    $projectId: ID
  ) {
    updateTask(
      input: {
        id: $id
        accountId: $accountId
        name: $name
        description: $description
        scope: $scope
        locationIds: $locationIds
        tagIds: $tagIds
        category: $category
        subject: $subject
        itemId: $itemId
        dueDate: $dueDate
        owners: $owners
        priority: $priority
        isCompleted: $isCompleted
        createdAt: $createdAt
        completedAt: $completedAt
        projectId: $projectId
      }
    ) {
      id
      accountId
      name
      description
      category
      subject
      dueDate
      createdAt
      completedAt
      isCompleted
      owners {
        id
        first_name
        last_name
        profilePicture
      }
      locations {
        id
        name
      }
      tags {
        id
        tagName
      }
      priority
      projectId {
        id
        name
      }
    }
  }
`,_we=le.default.div`
  margin-bottom: 20px;
  gap: 5px;
  display: flex;
  flex-direction: column;
  width: fit-content;
`,Fwe=le.default.div`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid #7a7272;
  border-radius: 5px;
`,Pwe=le.default.div`
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 80%;
`,Bwe=(0,le.default)(ie.In)`
  margin-right: 20px;
`,Uwe=(0,le.default)(ie.Yq)`
  margin-right: 20px;
  &:hover,
  &:focus {
    color: #0049f9;
  }
`,$we=le.default.div`
  &:hover {
    cursor: pointer;
  }
`,Mwe=((0,le.default)(ie.z2)`
  &&& {
    border-radius: 10px;
  }
  margin-bottom: 20px;
`,e=>{let{task:n,onTaskDelete:t,canEditProject:a}=e;return(0,fe.jsxs)(Fwe,{children:[(0,fe.jsxs)(Pwe,{children:[(0,fe.jsx)(Bwe,{icon:"link",color:"#0049F9"}),(0,fe.jsx)(p.Link,{to:`/tasks/${n.id}`,children:(0,fe.jsx)(Uwe,{underline:!1,children:n.name})}),n.isCompleted&&(0,fe.jsx)(ie.In,{icon:"check",color:"green"})]}),a&&(0,fe.jsx)($we,{id:n.id,children:(0,fe.jsx)(Bwe,{onClick:()=>t(n),icon:"times",color:"#7a7272"})})]})}),Vwe=e=>{let{tasks:n,onTaskDelete:t,canEditProject:a}=e;return(e=>{const n=e.map(e=>e.isCompleted);n.length;n.filter(e=>!0===e).length})(n),(0,fe.jsx)(_we,{children:n.map((e,n)=>(0,fe.jsx)(Mwe,{task:e,onTaskDelete:e=>t(e),canEditProject:a},n))})},Gwe=(0,le.default)(nwe)`
  border-radius: 5px;
`,zwe=(0,le.default)(twe)`
  border-radius: 5px;
`,Wwe=e=>{let{id:n}=e;return(0,fe.jsx)(Cpe,{size:"lg",children:(0,fe.jsx)(de.A,{id:n})})},qwe=e=>{let{id:n}=e;return(0,fe.jsx)(spe,{size:"lg",children:(0,fe.jsx)(de.A,{id:n})})},Jwe=()=>{const{id:e}=(0,m.g)(),n=(0,m.Zp)(),t=Je(),a=lr(),{showNotification:i}=tn(),[l,r]=(0,g.useState)({}),[o,s]=(0,g.useState)({}),[d,c]=(0,g.useState)(!1),[u,f]=(0,g.useState)(""),[y,h]=(0,g.useState)([]),T=a.project.some(e=>e.startsWith("edit")),b=a.project.some(e=>e.startsWith("delete")),v=hwe(),[C,k]=(0,g.useState)([]),[S,N]=(0,g.useState)(null),[A,R]=(0,g.useState)(null),D=window.history.state&&window.history.state.idx>0,L=or();(0,x.IT)(sS,{onCompleted:e=>{R(e?.getProjectCategories||[])},onError:()=>{R([])}});const I=A?.find(e=>e?.name===Wr)?.id,{data:j,loading:w}=(0,x.IT)(Or,{variables:{id:e},onCompleted:e=>{const n=qa(e?.getProject);r(n),s(n),N(e?.getProject.scheme?.category||null);const t=(n?.evidenceNotes||[]).filter(e=>e.documents.length>0).reduce((e,n)=>(n.documents&&n.documents.length&&e.push(...n.documents),e),[]);k(t)}}),[O,E]=(0,g.useState)(!1),[_,F]=(0,g.useState)(!1),[P,B]=(0,g.useState)(!1),[U,$]=(0,g.useState)(!1),[M,V]=(0,g.useState)(!1),[G,z]=(0,g.useState)(!1),[W,q]=(0,g.useState)(!1),[J,Y]=(0,g.useState)({}),H=(0,g.useCallback)(e=>{let{message:n,colour:t}=e;i(n,t)},[i]);(0,g.useEffect)(()=>{const e=document.querySelector("[color='danger']");e?.scrollIntoView({behavior:"smooth",block:"center"})},[J,Y]);const K=e=>{const n="scheme"===e.target.name&&"select"in e.target?e.target.select:l.scheme;Object.keys(J).find(n=>n===e.target.name)&&Y({...J,[e.target.name]:null}),J.schemeId&&"scheme"===e.target.name&&Y({...J,schemeId:void 0}),r({...l,[e.target.name]:e.target.value,scheme:n})},Q=e=>{const n="owner"===e.target.name?e.target?.select?.map(e=>{let{value:n,label:t}=e;return{value:n,label:t}}):l.owners;"locations"!==e.target.name?r({...l,[e.target.name]:e.target.select,owners:n}):r({...l,[e.target.name]:e.target.select,meters:[]})},[Z,{loading:X}]=(0,ln.n)(Ewe,{onCompleted:()=>{i("Task has been deleted from this project")},onError:()=>{i("Something went wrong! Please try again later.","danger")}}),[ee,{loading:ne}]=(0,ln.n)(Owe,{onCompleted:()=>{i("Project has been successfully updated")},onError:()=>{i("Something went wrong! Please try again later.","danger")}}),[te,{loading:ae}]=(0,ln.n)(wwe,{onCompleted:()=>{n(D?-1:L.projects.root),i("Project has been successfully deleted")},onError:()=>{i("Something went wrong! Please try again later.","danger")}}),le=(0,g.useCallback)(e=>{const n=Ha(e);Z({variables:n,refetchQueries:["GetProjectById"]})},[Z]),re=(0,g.useCallback)(()=>{const e=Ya(l),n=mwe(e),t=!Object.values(n).some(Boolean);t&&(Y({}),ee({variables:e,refetchQueries:["GetProjectById"]})),t||Y(n)},[l,ee]),oe=()=>{c(!1),f(""),h([])},se=w||ne||X||ae;return(0,fe.jsxs)(rpe,{children:[d&&(0,fe.jsx)(ie.aF,{show:!0,size:"md",onDismiss:oe,height:"auto",maxHeight:"90vh",style:{"z-index":"2"},children:(0,fe.jsxs)(ope,{children:[(0,fe.jsx)(ie.DZ,{children:"Add Evidence"}),(0,fe.jsx)(Lde,{evidenceDocuments:y,setEvidenceDocuments:h,evidenceNotes:u,setEvidenceNotes:f}),(0,fe.jsx)(ie.$n,{disabled:!y.length&&!u,onClick:async()=>{const e=await v(y,u),n=Ya(o),t={...n,evidenceNotes:n.evidenceNotes.concat(e)};ee({variables:t,refetchQueries:["GetProjectById"]}),oe()},children:"Save Evidence"})]})}),(0,fe.jsxs)(Lpe,{children:[(0,fe.jsx)(xV,{name:"Projects",title:"Projects",breadcrumbs:[],icon:"tasks",iconColor:"tertiary",leftButtonClick:()=>n(D?-1:L.projects.root)}),(0,fe.jsxs)(vpe,{children:[T&&(0,fe.jsx)(xpe,{"data-testid":"Save_Button",onClick:re,disabled:se,children:(0,fe.jsx)(de.A,{id:"pages.project.details.save"})}),(0,fe.jsx)(Tpe,{"data-testid":"Cancel_Button",onClick:()=>n(D?-1:L.projects.root),disabled:se,children:(0,fe.jsx)(de.A,{id:"pages.project.details.cancel"})}),b&&(0,fe.jsx)(bpe,{"data-testid":"Delete_Button",onClick:()=>F(!0),disabled:se,children:(0,fe.jsx)(de.A,{id:"pages.project.details.delete"})})]})]}),se&&(0,fe.jsx)(ype,{"data-testid":"Loading_Indicator",children:(0,fe.jsx)(ie.Ip,{})}),O&&(0,fe.jsx)(Pde,{onComplete:e=>{H(e),re()},accountId:t,onDismiss:()=>E(!1),sourcePage:"TASKS",projectId:e,hasProjectsAccess:!0}),_&&(0,fe.jsx)(vu,{deleteObjectName:"project",onConfirmClick:()=>{var n;void 0!==(n=e)&&te({variables:{id:n}})},onDismissClick:()=>F(!1)}),!se&&j&&(0,fe.jsxs)(ope,{children:[(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(Wwe,{id:"pages.project.details.name"}),(0,fe.jsx)(dpe,{"data-testid":"Project_Name",onChange:K,name:"name",value:l?.name,box:!1,error:J.name,readOnly:!T})]}),(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(qwe,{id:"pages.project.details.description"}),(0,fe.jsx)(upe,{"data-testid":"Project_Description",onChange:K,name:"description",value:l?.description,box:!0,readOnly:!T})]}),(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(qwe,{id:"pages.project.details.impact"}),(0,fe.jsx)(upe,{"data-testid":"Project_Impact",size:"md",onChange:K,name:"impact",value:l?.impact,box:!0,readOnly:!T})]}),(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(qwe,{id:"pages.project.details.locations"}),(0,fe.jsx)(gpe,{children:(0,fe.jsx)(eh,{name:"locations",accountId:t,value:l?.locations,disabled:!T,onChange:Q})})]}),S?.id===I&&!!l?.locations?.length&&(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(qwe,{id:"pages.project.details.meters"}),(0,fe.jsx)(gpe,{children:(0,fe.jsx)(g$,{name:"meters",accountId:t,value:l?.meters,onChange:Q,disabled:!T,locationsToFilter:l?.locations,defaultOptions:!1,error:void 0})})]}),(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsx)(Wwe,{id:"pages.project.details.owner"}),(0,fe.jsx)(gpe,{children:(0,fe.jsx)(xb,{onChange:Q,value:l.owners,accountId:t,isDisabled:!T,error:J.owners,"data-testid":"Project_Owner_Input"})})]}),(0,fe.jsxs)(ie.fI,{container:!0,span:12,children:[(0,fe.jsxs)(cpe,{item:!0,span:6,children:[(0,fe.jsx)(Wwe,{id:"pages.project.details.priority"}),(0,fe.jsx)(ppe,{size:"md",onChange:K,name:"priority",value:l.priority,options:Fje,readOnly:!T})]}),(0,fe.jsxs)(ie.fI,{item:!0,span:6,children:[(0,fe.jsx)(qwe,{id:"pages.project.details.category"}),(0,fe.jsx)(zwe,{onChange:e=>{N(e.target.value?{id:e.target.value,name:e.target.label}:null),r({...l,scheme:null,meters:[]})},value:S?Ua(S):null,readOnly:!T,isClearable:!0,"data-testid":"Project_Category_Input"})]})]}),(0,fe.jsxs)(ie.fI,{container:!0,span:12,children:[(0,fe.jsxs)(cpe,{item:!0,span:6,children:[(0,fe.jsx)(Wwe,{id:"pages.project.details.frequency"}),(0,fe.jsx)(ppe,{size:"md",onChange:K,name:"frequency",value:l.frequency,options:_je,readOnly:!T,"data-testid":"Project_Milestone_Frequency_Input"})]}),(0,fe.jsxs)(ie.fI,{item:!0,span:6,children:[(0,fe.jsx)(Wwe,{id:"pages.project.details.scheme"}),(0,fe.jsx)(Gwe,{readOnly:!T,accountId:t,onChange:K,value:l.scheme?.id,projectCategory:S,isClearable:!0,error:J.schemeId})]})]}),(0,fe.jsx)(ie.fI,{container:!0,span:12,children:(0,fe.jsxs)(cpe,{item:!0,span:6,children:[(0,fe.jsx)(qwe,{id:"pages.project.details.cost"}),(0,fe.jsx)(mpe,{"data-testid":"Project_Cost",size:"md",name:"cost",onChange:K,value:l.cost,readOnly:!T,error:J.cost})]})}),(0,fe.jsxs)(ie.fI,{container:!0,span:12,children:[(0,fe.jsxs)(cpe,{item:!0,span:6,children:[(0,fe.jsxs)(Npe,{children:[(0,fe.jsx)(Wwe,{id:"pages.project.details.startDate"}),(0,fe.jsx)(ie.In,{color:"#ffe5b4",icon:P?"times-circle":"info-circle",onClick:()=>B(!P)})]}),(0,fe.jsxs)(Rpe,{children:[(0,fe.jsx)(Dpe,{children:(0,fe.jsx)(fpe,{"data-testid":"Start_Date",name:"startDate",onDayClick:e=>{r({...l,startDate:e?e.toISOString():null})},readOnly:!T,selectedDate:l.startDate?new Date(l.startDate):null,error:J.startDate})}),P?(0,fe.jsx)(Ape,{children:"The date you would expect to start making savings from your project."}):null]})]}),(0,fe.jsxs)(ie.fI,{item:!0,span:6,children:[(0,fe.jsxs)(Npe,{children:[(0,fe.jsx)(Wwe,{id:"pages.project.details.baselineStartDate"}),(0,fe.jsx)(ie.In,{color:"#ffe5b4",icon:M?"times-circle":"info-circle",onClick:()=>V(!M)})]}),(0,fe.jsxs)(Rpe,{children:[(0,fe.jsx)(Dpe,{children:(0,fe.jsx)(fpe,{name:"baselineYear",readOnly:!T,onDayClick:e=>{r({...l,baselineStartDate:e?e.toISOString():null})},selectedDate:l.baselineStartDate?new Date(l.baselineStartDate):null})}),M?(0,fe.jsx)(Ape,{children:"The annual period to compare project performance against."}):null]})]})]}),(0,fe.jsxs)(ie.fI,{children:[(0,fe.jsxs)(Npe,{children:[(0,fe.jsx)(Wwe,{id:"pages.project.details.endDate"}),(0,fe.jsx)(ie.In,{color:"#ffe5b4",icon:U?"times-circle":"info-circle",onClick:()=>$(!U)})]}),(0,fe.jsxs)(Rpe,{children:[(0,fe.jsx)(Dpe,{children:(0,fe.jsx)(fpe,{name:"endDate",readOnly:!T,onDayClick:e=>{r({...l,endDate:e?e.toISOString():null})},selectedDate:l.endDate?new Date(l.endDate):null,error:J.endDate})}),U?(0,fe.jsx)(Ape,{style:{width:"20%"},children:"The date which you anticipate your planned savings to be realised."}):null]})]}),(0,fe.jsxs)(ie.fI,{container:!0,distribution:"between",span:12,itemAlign:"bottom",children:[(0,fe.jsxs)(cpe,{item:!0,span:4,children:[(0,fe.jsx)(Wwe,{id:S?.id===I?"pages.project.details.plannedBenefitGeneration":"pages.project.details.plannedBenefit"}),(0,fe.jsx)(mpe,{"data-testid":"Project_Planned_Benefit",size:"md",name:"plannedBenefit",onChange:K,value:l.plannedBenefit,readOnly:!T,error:J.plannedBenefit})]}),(0,fe.jsxs)(cpe,{item:!0,span:4,children:[(0,fe.jsxs)(Npe,{children:[(0,fe.jsx)(qwe,{id:"pages.project.details.plannedCostChange"}),(0,fe.jsx)(ie.In,{color:"#ffe5b4",icon:G?"times-circle":"info-circle",onClick:()=>z(!G)})]}),(0,fe.jsxs)(Rpe,{children:[(0,fe.jsx)(mpe,{"data-testid":"Project_Cost_Change",size:"md",name:"plannedCostChange",onChange:K,value:l.plannedCostChange,readOnly:!T}),G?(0,fe.jsx)(Ape,{children:"This figure should be positive."}):null]})]}),(0,fe.jsxs)(cpe,{item:!0,span:4,children:[(0,fe.jsxs)(Npe,{children:[(0,fe.jsx)(qwe,{id:"pages.project.details.plannedCarbonChange"}),(0,fe.jsx)(ie.In,{color:"#ffe5b4",icon:W?"times-circle":"info-circle",onClick:()=>q(!W)})]}),(0,fe.jsxs)(Rpe,{children:[(0,fe.jsx)(mpe,{"data-testid":"Project_CO2_Change",size:"md",name:"plannedCO2eChange",onChange:K,value:l.plannedCO2eChange,readOnly:!T}),W?(0,fe.jsx)(Ape,{children:"This figure should be positive."}):null]})]})]}),(0,fe.jsxs)(ie.fv,{container:!0,distribution:"center",children:[(0,fe.jsxs)(ie.fI,{container:!0,distribution:"between",itemAlign:"center",span:12,children:[(0,fe.jsx)(qwe,{id:"pages.project.details.tasks"}),T&&(0,fe.jsx)(kpe,{icon:"plus",onClick:()=>E(!0)})]}),!l?.tasks?.length&&(0,fe.jsx)(ie.EY,{size:"lg",children:(0,fe.jsx)(de.A,{id:"pages.project.details.noTasks"})}),!!l?.tasks?.length&&(0,fe.jsx)(Vwe,{tasks:l.tasks,onTaskDelete:le,canEditProject:T})]}),(0,fe.jsx)(ie.fI,{container:!0,children:(0,fe.jsx)(tpe,{item:!0,span:12,children:(0,fe.jsx)(Xue,{container:!0,item:!0,children:(0,fe.jsxs)(epe,{children:[(0,fe.jsx)(npe,{children:(0,fe.jsxs)(ape,{span:12,children:[(0,fe.jsx)(ipe,{inline:!0,height:"50px",size:"xl",circleColor:"tertiary",iconColor:"tertiary",icon:"file-alt"}),(0,fe.jsx)(ie.DZ,{inline:!0,children:"Evidence Library"})]})}),(0,fe.jsx)(lpe,{children:(0,fe.jsxs)(ie.FN,{show:3,scroll:1,width:"675px",infinite:!1,children:[new Array(wa(C)).fill(0).map((e,n)=>(0,fe.jsx)(Wde,{id:e.id,disabled:!T,onClick:()=>c(!0),children:(0,fe.jsx)(ie.ON,{title:"Upload Evidence"})},`upload-evidence${n}`)),l?.evidenceNotes?.filter(e=>e.documents.length>0).map(e=>e.documents.map(n=>(0,fe.jsx)(p.Link,{to:{pathname:`/documents/all/${n.id}`},children:(0,fe.jsx)(ie.ON,{title:e.notes,desc:n.fileName,uploaded:!0})},n.id)))]})})]})})})})]})]})},Ywe=le.default.div`
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,Hwe=()=>(0,fe.jsx)(Ywe,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(jwe,{})}),(0,fe.jsx)(m.qh,{path:"/:id",element:(0,fe.jsx)(Jwe,{})})]})}),Kwe=(0,le.default)(ie.$n)`
  margin-left: ${e=>e.theme.geometry.sm.spacing};
  max-width: 150px;
`,Qwe=(0,le.default)(ie.EY)`
  margin: ${e=>e.theme.geometry.sm.spacing};
`,Zwe=e=>{let{featureName:n,link:t}=e;const a=(0,m.Zp)();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(Qwe,{children:[(0,fe.jsx)(ie.EY,{children:`Your account does not currently subscribed to ${n} functionality.`}),(0,fe.jsx)(ie.EY,{children:`If you would like to use ${n} to aggregate your tasks and track performance of sustainability initiatives against cost and carbon please contact Rio.`})]}),(0,fe.jsx)(Kwe,{onClick:()=>a(t),children:"Upgrade now"})]})},Xwe=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`,eOe=[{label:"Tasks",to:"../tasks",value:"/tasks"},{label:"Projects",to:"../projects",value:"/projects"}],nOe=e=>{let{tab:n,hasProjectsAccess:t,hasTasksAccess:a}=e;const[i,l]=(0,g.useState)(n);return(0,fe.jsxs)(Xwe,{children:[(0,fe.jsx)(ie.tU,{variant:"standard",value:i,onChange:(e,n)=>{l(n)},children:eOe.map(e=>{let{label:n,to:t,value:a}=e;return(0,fe.jsx)(ie.oz,{"data-cy":`Tab__${n}`,label:n,component:p.Link,value:a,to:t},n)})}),(0,fe.jsxs)(v_,{children:[(0,fe.jsxs)(ie.Kp,{value:i,index:"/tasks",children:[!a&&(0,fe.jsx)(Fu,{name:"TasksAndProjects__NoResults",title:"Your account has no access to this section"}),a&&(0,fe.jsx)(wje,{hasProjectsAccess:t})]}),(0,fe.jsxs)(ie.Kp,{value:i,index:"/projects",children:[!t&&(0,fe.jsx)(Zwe,{featureName:ex.PROJECTS,link:"/contact"}),t?(0,fe.jsx)(Hwe,{}):""]})]})]})},tOe=S.J1`
  mutation UpdateUserProfile(
    $id: ID!
    $account_id: ID!
    $first_name: String!
    $last_name: String!
    $email: String!
    $previousEmail: String
    $jobTitle: String
    $department: String
    $phone: String
    $mobile: String
    $profile: String
  ) {
    updateUserProfile(
      input: {
        id: $id
        account_id: $account_id
        first_name: $first_name
        last_name: $last_name
        email: $email
        previousEmail: $previousEmail
        jobTitle: $jobTitle
        department: $department
        phone: $phone
        mobile: $mobile
        profilePicture: $profile
      }
    ) {
      id
      email
      first_name
      last_name
      jobTitle
      department
      phone
      mobile
    }
  }
`,aOe=S.J1`
  mutation UploadProfilePicture(
    $fileName: String!
    $imageData: String!
    $contentType: String!
    $id: ID!
    $account_id: ID!
    $first_name: String!
    $last_name: String!
    $email: String!
    $previousEmail: String
    $jobTitle: String
    $department: String
    $phone: String
    $mobile: String
    $profile: String
  ) {
    uploadProfilePicture(
      input: {
        fileName: $fileName
        contentType: $contentType
        imageData: $imageData
        accountId: $account_id
        userId: $id
      }
    )

    updateUserProfile(
      input: {
        id: $id
        account_id: $account_id
        first_name: $first_name
        last_name: $last_name
        email: $email
        previousEmail: $previousEmail
        jobTitle: $jobTitle
        department: $department
        phone: $phone
        mobile: $mobile
        profilePicture: $profile
      }
    ) {
      id
      email
      first_name
      last_name
      jobTitle
      department
      phone
      mobile
      profilePicture
    }
  }
`,iOe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
`,lOe=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,rOe=le.default.div`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  margin-top: ${e=>e.theme.geometry.sm.spacing};
  display: flex;
  align-items: center;
`,oOe=(0,le.default)(ie.fI)`
  min-width: 100%;
`,sOe=(0,ce.Ay)(e=>{let{user:n,setNotification:t,intl:a}=e;const{first_name:i,last_name:l,jobTitle:r,phone:o,department:s,mobile:d,email:c,id:u,profilePicture:p,account:m}=n,[f,y]=(0,g.useState)({first_name:{value:i,error:""},last_name:{value:l,error:""},jobTitle:{value:r,error:""},phone:{value:o,error:""},department:{value:s,error:""},mobile:{value:d,error:""},email:{value:c,error:""}}),{departmentSelect:h,showCreateDepartment:x,setShowCreateDepartment:T}=$o(m.departments,f.department.value,m.id),[b,v]=(0,g.useState)(!1),[C]=(0,ln.n)(tOe,{onCompleted:()=>{t({message:a.formatMessage({id:"profile.userHaveBeenUpdated"}),colour:"success"})},onError:()=>{t({message:"Something went wrong. Please try again later.",colour:"danger"})}}),k={email:e=>(0,Rh.isEmail)(e)?"":"Must be a valid email address",first_name:e=>(0,Rh.isEmpty)(e)?"First Name is required.":"",last_name:e=>(0,Rh.isEmpty)(e)?"Last Name is required.":"",mobile:e=>(0,Rh.isEmpty)(e)||(0,Rh.isMobilePhone)(e)?"":"Must be a valid mobile number.",phone:e=>(0,Rh.isEmpty)(e)||(0,Rh.isNumeric)(e)?"":"Must be a valid phone number."},S=e=>{v(!0),y({...f,[e.target.name]:{value:e.target.value,error:k[e.target.name]?.(e.target.value)}})};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Nh,{passedAccountId:m.id,showCreateDepartment:x,setShowCreateDepartment:T,onComplete:async(e,n)=>{y(e=>({...e,department:{value:n.departmentId,error:""}}))}}),(0,fe.jsxs)(oOe,{container:!0,item:!0,children:[(0,fe.jsxs)(iOe,{item:!0,span:6,children:[(0,fe.jsx)(rOe,{children:(0,fe.jsx)(lOe,{children:(0,fe.jsx)(de.A,{id:"profile.firstName"})})}),(0,fe.jsx)(ie.ks,{onChange:S,value:f.first_name.value,error:f.first_name.error,name:"first_name",box:!0}),(0,fe.jsx)(rOe,{children:(0,fe.jsx)(lOe,{children:(0,fe.jsx)(de.A,{id:"profile.jobTitle"})})}),(0,fe.jsx)(ie.ks,{onChange:S,value:f.jobTitle.value,error:f.jobTitle.error,name:"jobTitle",box:!0}),(0,fe.jsx)(rOe,{children:(0,fe.jsx)(lOe,{children:(0,fe.jsx)(de.A,{id:"profile.phoneNumber"})})}),(0,fe.jsx)(ie.ks,{onChange:S,value:f.phone.value,error:f.phone.error,name:"phone",box:!0})]}),(0,fe.jsxs)(iOe,{item:!0,span:6,children:[(0,fe.jsx)(rOe,{children:(0,fe.jsx)(lOe,{children:(0,fe.jsx)(de.A,{id:"profile.lastName"})})}),(0,fe.jsx)(ie.ks,{onChange:S,value:f.last_name.value,error:f.last_name.error,name:"last_name",box:!0}),(0,fe.jsx)(rOe,{children:(0,fe.jsx)(lOe,{children:(0,fe.jsx)(de.A,{id:"profile.department"})})}),h(S),(0,fe.jsx)(rOe,{children:(0,fe.jsx)(lOe,{children:(0,fe.jsx)(de.A,{id:"profile.mobileNumber"})})}),(0,fe.jsx)(ie.ks,{onChange:S,value:f.mobile.value,error:f.mobile.error,name:"mobile",box:!0})]})]}),(0,fe.jsx)(oOe,{container:!0,item:!0,children:(0,fe.jsxs)(iOe,{item:!0,span:12,children:[(0,fe.jsx)(rOe,{children:(0,fe.jsx)(lOe,{children:(0,fe.jsx)(de.A,{id:"profile.emailAddress"})})}),(0,fe.jsx)(ie.ks,{onChange:S,value:f.email.value,error:f.email.error,name:"email",box:!0})]})}),(0,fe.jsxs)(oOe,{container:!0,item:!0,children:[(0,fe.jsx)(iOe,{item:!0,span:3}),(0,fe.jsx)(iOe,{item:!0,span:6,children:(0,fe.jsx)(ie.$n,{disabled:!b||(()=>{let e=!1;return Object.keys(f).forEach(n=>{f[n].error&&(e=!0)}),e})(),onClick:()=>{const{first_name:e,last_name:t,jobTitle:a,phone:i,department:l,mobile:r,email:o}=f;C({variables:{id:u,account_id:n.account.id,email:o.value,previousEmail:n.email,first_name:e.value,last_name:t.value,jobTitle:a.value,department:"notSelected"!==l.value?l.value:null,phone:i.value,mobile:r.value,profile:p}}),v(!1)},color:"success",children:(0,fe.jsx)(de.A,{id:"profile.update"})})})]})]})}),dOe=le.default.div`
  padding: ${e=>e.theme.geometry.lg.spacing};
`,cOe=(0,le.default)(ie.DZ)`
  text-align: center;
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,uOe=(0,le.default)(ie.fv)`
  padding: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,pOe=e=>{let{imageUrl:n,onSubmit:t}=e;return(0,fe.jsxs)(dOe,{children:[(0,fe.jsx)(cOe,{name:"upload-account__heading",size:"lg",children:"Add/Edit Profile Picture"}),(0,fe.jsx)(ie.fI,{container:!0,align:"between",children:(0,fe.jsx)(uOe,{item:!0,container:!0,children:(0,fe.jsx)(ie.nE,{width:200,height:200,border:20,defaultImage:n||"",onSave:e=>t(e),acceptedFormats:["image/png","image/jpeg","image/svg+xml","image/gif"],outputFormat:{format:"image/png",width:200,height:200}})})})]})},mOe=le.default.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: ${e=>e.theme.geometry.md.spacing};
`,fOe=le.default.div`
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
`,yOe=(0,le.default)(ie.fI)`
  background-color: ${e=>e.theme.colors.basic.white};
  width: 100%;
  display: flex;
`,gOe=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
  padding: ${e=>e.theme.geometry.md.spacing};
  align-items: center;
`,hOe=(0,le.default)(ie.fv)`
  display: flex;
  height: 100%;
  padding: ${e=>e.theme.geometry.md.spacing};
  align-items: center;
`,xOe=(0,le.default)(ie.EY)`
  padding: ${e=>e.theme.geometry.sm.spacing};
  cursor: ${e=>e.pointer?"pointer":"default"};
`,TOe=(0,le.default)(ie.In)`
  margin-right: 10px;
`,bOe=()=>{const[e,n]=(0,g.useState)(!1),[t,a]=(0,g.useState)(null),[i]=(0,ln.n)(aOe,{onCompleted:()=>{a({message:"Profile picture has been updated",colour:"success"})},onError:()=>{a({message:"Something went wrong. Please try again later.",colour:"danger"})}}),{data:l,loading:r}=Ns();return(0,fe.jsxs)(mOe,{children:[(0,fe.jsx)(xV,{name:"ProfilePage",title:"My Profile",breadcrumbs:[{title:"My Profile"}],icon:"user",iconColor:"quaternary"}),r&&(0,fe.jsx)(fOe,{children:(0,fe.jsx)(ie.Ip,{})}),e&&(0,fe.jsx)(ie.aF,{size:"md",show:!0,onDismiss:()=>n(!1),children:(0,fe.jsx)(pOe,{onSubmit:e=>{i({variables:{...l,account_id:l.account.id,previousEmail:l.email,imageData:e,contentType:"image/png",fileName:`${l.id}.png`,profile:`${De("REACT_APP_PROFILE_BUCKET")}/${l.id}.png?time=${(new Date).toISOString()}`}}),n(!1)},imageUrl:l.profilePicture})}),t&&(0,fe.jsx)(ie.Eg,{name:"Profile__Notification",show:!0,color:t.colour,onClose:()=>a(null),children:t.message}),!r&&l&&(0,fe.jsxs)(yOe,{item:!0,container:!0,children:[(0,fe.jsxs)(gOe,{span:"3",children:[(0,fe.jsx)(ie.Y3,{border:!0,name:"profile-picture",src:l.profilePicture,size:"xl",accountName:l.first_name}),(0,fe.jsxs)(xOe,{pointer:!0,onClick:()=>n(!0),children:[(0,fe.jsx)(TOe,{icon:"pencil-alt"}),(0,fe.jsx)(de.A,{id:"profile.editProfilePicture"})]}),(0,fe.jsxs)(xOe,{children:[(0,fe.jsx)(TOe,{icon:"id-card"}),`${l.first_name} ${l.last_name}`]}),(0,fe.jsxs)(xOe,{children:[(0,fe.jsx)(TOe,{icon:"user-tag"}),l.role.name]}),(0,fe.jsxs)(xOe,{children:[(0,fe.jsx)(TOe,{icon:"building"}),l.account.name]})]}),(0,fe.jsx)(hOe,{span:"9",children:(0,fe.jsx)(sOe,{user:l,setNotification:a})})]})]})},vOe=le.default.div`
  @keyframes fade_in_show {
    0% {
      opacity: 0;
      transform: scale(0);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  position: absolute;
  left: 0px;
  background: #fff;
  width: 100%;
  bottom: 0;
  margin: 0 0 45px 0;
  padding: 25px 70px;
  border-top: 1px solid #d2d2d2;
  border-bottom: 1px solid #d2d2d2;
  z-index: 1;
  display: flex;
  flex-direction: row;
  animation: fade_in_show 0.2s;
  svg {
    margin: 0 20px 0 0;
  }
  svg:last-child {
    margin-left: 50px;
  }
`,COe=(0,le.default)(ie.fv)`
  flex: 1 1 auto;
  align-items: center;
  display: flex;
  flex-direction: row;
  font-size: 21px;
`,kOe=(0,le.default)(ie.$n)`
  width: 200px;
`,SOe=e=>{const{cart:n}=e,{state:{linesCount:t,subTotal:a,currency:{symbol:i}}}=n;return(0,fe.jsxs)(vOe,{children:[(0,fe.jsxs)(COe,{children:[(0,fe.jsx)(ie.In,{icon:"check",color:"#59c5b5"}),t," Items added ",(0,fe.jsx)(ie.In,{icon:"check",color:"#59c5b5"})," Total: ",i,a]}),(0,fe.jsx)(ie.fv,{children:(0,fe.jsx)(p.Link,{to:"/upgrade/cart",children:(0,fe.jsx)(kOe,{name:"Basket-Button",children:"Go to Basket"})})})]})},NOe=le.default.div`
  height: 100%;
  padding: ${e=>e.theme.geometry.md.spacing};
  position: relative;
`,AOe=le.default.div`
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  border-radius: 2px;
`,ROe=(0,le.default)(ie.fI)`
  background: white;
  flex: 0 1 auto;
  border-radius: 2px;
  min-height: 119px;
  justify-content: space-between;
`,DOe=(0,le.default)(ie.fv)`
  flex: 1;
  align-items: baseline;
  justify-content: center;
  display: flex;
  padding-left: 30px;
`,LOe=(0,le.default)(ie.fv)`
  display: flex;
  flex-direction: row;
  padding-right: 30px;
`,IOe=le.default.h1`
  text-align: center;
  font-size: 28px;
  color: ${e=>e.theme.colors.text.light.text};
`,jOe=(0,le.default)(ie.KK)`
  text-align: center;
  font-size: 10px;
  min-width: 165px;
  margin: 20px 0px 20px 20px;
  display: inline-block;
  border-radius: 12px;
  padding: 13px 16px 5px 16px;
  p {
    font-size: 16px;
  }
`;function wOe(e){const{cart:n={},children:t="",route:a="account"}=e,{state:{isCartEmpty:i}}=n,l=(0,le.useTheme)(),r=(0,m.Zp)(),o="courses"===a,s=!(i||"cart"===a||"checkout"===a);return(0,fe.jsxs)(NOe,{children:[s?(0,fe.jsx)(SOe,{cart:n}):null,(0,fe.jsxs)(AOe,{name:"Market-Body__Container",children:[(0,fe.jsxs)(ROe,{container:!0,item:!0,children:[(0,fe.jsx)(DOe,{children:(0,fe.jsx)(IOe,{children:"How would you like to upgrade?"})}),(0,fe.jsx)(LOe,{children:(0,fe.jsx)(jOe,{title:"Courses",name:"Market-Body__Courses-Tab",icon:"graduation-cap",iconColor:l.colors.text.normal.background,active:o,onClick:()=>r("/upgrade/courses")})})]}),g.cloneElement(t,{isCartVisible:s})]})]})}const OOe=le.default.div`
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-y: visible;
  background-color: #f8f8f8;

  > div {
    margin: 0 auto;
    max-width: 1200px;
    background-color: #f8f8f8;
    padding: 40px 0 60px;
  }

  h2 {
    font-size: 26px;
    margin-bottom: 40px;

    svg {
      margin-left: 25px;
    }
  }

  h4 {
    font-size: 20px;
  }

  .cart-line {
    border-bottom: 2px solid #ccc;
    background-color: rgba(204, 204, 204, 0.2);
    height: 60px;
    padding-left: 25px;

    > div {
      height: 100%;
    }
  }

  .cart-lines h4 {
    margin-bottom: 10px;
  }

  .cart-lines.cart-lines-learn {
    .cart-lines-title {
      color: #00baff;
    }

    .cart-line {
      border-bottom: 2px solid #00baff;
      background-color: #dff2f9;
    }

    .cart-line:first-child {
      border-top: 2px solid #00baff;
    }
  }

  .cart-lines.cart-lines-comply {
    .cart-lines-title {
      color: #00c8b5;
    }

    .cart-line {
      border-bottom: 2px solid #00c8b5;
      background-color: #f0f7f6;
    }

    .cart-line:first-child {
      border-top: 2px solid #00c8b5;
    }
  }
`,EOe=(le.default.div`
  border-bottom: 2px solid #ccc;
  background-color: rgba(204, 204, 204, 0.2);
  height: 60px;
  padding-left: 25px;

  > div {
    height: 100%;
  }
`,le.default.div`
  margin-bottom: 50px;

  > div:first-child {
    border-top: 2px solid #ccc;
  }
`),_Oe=le.default.span`
  font-size: 18px;
`,FOe=le.default.span`
  font-size: 18px;
`,POe=(0,le.default)(ie.In)`
  color: #ff909a;
  font-size: 20px;
  cursor: pointer;
`,BOe=le.default.div`
  margin-top: 50px;
`,UOe=le.default.span`
  font-size: 24px;
`,$Oe=le.default.span`
  font-size: 13px;
`,MOe=(0,le.default)(ie.$n)`
  margin: 0 auto;
  background-color: #00c8b5;
  border-color: #00c8b5;
  border-radius: 5px;
  cursor: pointer;
  font-size: 20px;
  text-transform: capitalize;

  &:hover {
    background-color: #00c8b5;
    border-color: #00c8b5;
    opacity: 0.8;
  }
`,VOe=(0,le.default)(ie.In)`
  font-size: 18px;
`,GOe=le.default.span`
  padding-left: 20px;
  font-size: 13px;
  color: #000;
  text-decoration: underline;
`,zOe=le.default.div`
  margin: 50px 0 20px;
  text-align: center;

  h2 {
    font-size: 24px;
  }

  p {
    font-size: 18px;
  }

  a {
    color: rgba(59, 134, 255, 1);
    text-decoration: underline;
    cursor: pointer;
  }
`,WOe=le.default.div`
  margin-right: 20px;
`,qOe=(le.default.div`
  margin-top: -25px;
  text-align: center;
  font-size: 20px;
`,le.default.div`
  margin: 0 auto;
  width: 230px;
  display: flex;
  justify-content: space-between;
  align-items: center;
`,(0,le.default)(ie.fv)`
  padding-right: 16px;
`),JOe=(0,le.default)(ie.ks)`
  border: 2px solid #00baff;
  border-radius: 5px 0 0 5px;
  & > div {
    border-radius: 5px;
    outline: none;
    border: none;
  }
  & input:focus,
  & input:active {
    background-color: #dff2f9;
  }
`,YOe=(0,le.default)(ie.$n)`
  background-color: #00baff;
  border-radius: 0 5px 5px 0;
  border: none;
  cursor: pointer;
`;var HOe=t(31991),KOe=t.n(HOe);const QOe=le.default.div`
  background: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
`,ZOe=(0,le.default)(ie.fv)`
  ${e=>{let{isInCart:n}=e;return`\n    flex-basis: content;\n    color: ${n?"unset":"#50b9f9"};\n    font-weight: ${n?"unset":"bold"};\n    text-decoration: ${n?"unset":"underline"};\n    cursor: ${n?"unset":"pointer"};;\n  `}}
`,XOe=le.default.div`
  background: #50b9f9;
  height: 60px;
  align-items: center;
  display: flex;
  padding: 0 15px 0 15px;
  flex-direction: row;
  color: #fff;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
`,eEe=le.default.div`
  flex: 1 1 100%;
  display: flex;
`,nEe=le.default.div`
  border-radius: 12px;
  padding: 6px 10px 6px 10px;
  border: 1px solid;
  font-size: 12px;
  margin-left: 10px;
`,tEe=le.default.div`
  min-height: 150px;
  padding: 20px 15px 20px 15px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
`,aEe=le.default.div`
  flex: 1 1 100%;
  display: flex;
  margin: 10px 0 5px 0;
`,iEe=le.default.img`
  width: 100px;
  height: 100px;
  margin: 0 20px 0 0;
  float: left;
`,lEe=le.default.div`
  > div {
    padding: 0 20px 20px;
    align-items: center;
  }
`,rEe=(0,le.default)(ie.fI)`
  align-items: center;
  text-align: right;
`,oEe=le.default.span`
  a {
    text-decoration: underline;
  }

  a:hover {
    text-decoration: none;
  }
`,sEe=le.default.div`
  text-align: right;
  color: ${e=>e.theme.colors.senary.light.text};

  a {
    text-decoration: underline;
  }

  a:hover {
    text-decoration: none;
  }
`,dEe=(0,le.default)(ie.fv)`
  text-align: left;
`,cEe=e=>(e?parseFloat(e):0).toFixed(2),uEe=e=>{const{id:n,title:t,productType:a,description:i,synopsis:l,price:r,addProduct:o=()=>{},handlePreview:s=()=>{},link:d,firstCategory:c,image:u,isInCart:p=!1}=e,m={id:n,title:t,price:r,productType:a,previewProductInfo:e?.courses?e.courses[0]:null};return(0,fe.jsxs)(QOe,{name:"Courses-Tab__Product-Card",children:[(0,fe.jsxs)(XOe,{children:[(0,fe.jsx)(eEe,{name:"Product-Card__Product-Left--Title",children:(0,fe.jsx)("h4",{children:t})}),c?(0,fe.jsx)(nEe,{children:c}):null]}),(0,fe.jsx)(tEe,{children:(0,fe.jsxs)(aEe,{children:[u?(0,fe.jsx)(iEe,{src:u}):null,a===ht?(0,fe.jsx)(ie.To,{name:"Bundle__MarkDown--Description",source:KOe()(i,{length:100,separator:" ",omission:" ..."})}):l]})}),(0,fe.jsxs)(lEe,{children:[(0,fe.jsx)(rEe,{container:!0,children:(0,fe.jsxs)(ie.fv,{span:"12",children:[(0,fe.jsxs)(sEe,{children:["£",cEe(r)]}),"ex. VAT"]})}),(0,fe.jsxs)(rEe,{container:!0,children:[(0,fe.jsx)(dEe,{span:"6",children:(0,fe.jsx)(oEe,{children:d?(0,fe.jsx)("a",{href:"/#",onClick:n=>{n.preventDefault(),s(e)},children:"Course Preview"}):null})}),(0,fe.jsx)(ie.fv,{span:"6",children:p?(0,fe.jsx)(ZOe,{isInCart:p,container:!0,children:"In Basket"}):(0,fe.jsx)(ZOe,{name:"Product-Card__Add-To-Basket--Button",container:!0,onClick:e=>{e.preventDefault(),o(m)},children:"Add To Basket"})})]})]})]})},pEe=(0,le.default)(ie.fI)`
  padding: ${e=>e.theme.geometry.lg.spacing};
  background: ${e=>e.theme.colors.basic.white};
`,mEe=le.default.div`
  position: relative;
  padding: 0 0 75% 0;
  flex: 0 0 auto;
  background: ${e=>{let{theme:n}=e;return n.colors.secondary.dark.background}} url(${e=>{let{src:n}=e;return n}}) center center no-repeat;
  background-size: cover;
`,fEe=(0,le.default)(ie.GQ)`
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -50px;
  margin-left: -50px;
  display: inline-flex;
  flex: 0 0 auto;
`,yEe=(0,le.default)(ie.fv)`
  padding-left: ${e=>e.theme.geometry.md.spacing};
`,gEe=(0,le.default)(ie.DZ)`
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
`,hEe=(0,le.default)(ie.$n)`
  margin-top: ${e=>e.theme.geometry.md.spacing};
  border-radius: 0;
`,xEe=e=>{const{bundleInfo:n,onDismiss:t,addProduct:a}=e;return(0,fe.jsx)(ie.aF,{show:!0,onDismiss:t,size:"lg",children:(0,fe.jsxs)(pEe,{container:!0,item:!0,children:[(0,fe.jsx)(ie.fv,{item:!0,span:5,children:(0,fe.jsx)(mEe,{name:"CoursePreview__Thumbnail",src:n.thumbnail,children:!n.thumbnail&&(0,fe.jsx)(fEe,{name:"CoursePreview__Icon",height:"100px",size:"lg",icon:"graduation-cap",iconColor:"white",circleColor:"white"})})}),(0,fe.jsxs)(yEe,{item:!0,span:7,children:[(0,fe.jsx)(gEe,{size:"xxl",weight:"light",color:"dark",children:n.title}),!!n.description&&(0,fe.jsx)(ie.To,{name:"CoursePreview__MarkDown--Description",source:n.description}),n.hideBuyButton?null:(0,fe.jsxs)(hEe,{color:"success",inline:!0,href:null,onClick:()=>{a({id:n.product.id,title:n.product.title,price:n.product.price,productType:n.product.productType}),t()},children:["£",cEe(n.price)," Add to basket"]})]})]})})};function TEe(e){const[n,t]=(0,g.useState)({show:!1,bundleInfo:null}),{cart:a={},title:i="",lines:l=[],styles:r="base"}=e,{addProduct:o,removeProduct:s,removeLine:d,state:{currency:{symbol:c}}}=a,u=`cart-lines cart-lines-${r}`;return(0,fe.jsxs)(fe.Fragment,{children:[n.show?(0,fe.jsx)(xEe,{bundleInfo:n.bundleInfo,addProduct:o,onDismiss:()=>t(e=>({...e,show:!1}))}):null,(0,fe.jsxs)("div",{className:u,children:[(0,fe.jsxs)(ie.fI,{container:!0,children:[(0,fe.jsx)(ie.fv,{span:9,children:(0,fe.jsx)("h4",{className:"cart-lines-title",children:i})}),(0,fe.jsx)(ie.fv,{span:2,children:(0,fe.jsx)("h4",{children:"Total Cost"})}),(0,fe.jsx)(ie.fv,{span:1})]}),(0,fe.jsx)(EOe,{children:l.map(e=>{let[n,{totalAmount:a,parent:i,resizable:l,quantity:r,product:u={}}={}]=e;return(0,fe.jsx)("div",{className:"cart-line",children:(0,fe.jsxs)(ie.fI,{container:!0,itemAlign:"center",align:"between",name:"Cart-Lines__Container",children:[(0,fe.jsx)(ie.fv,{span:4,children:(0,fe.jsx)(_Oe,{children:u.title})}),(0,fe.jsx)(ie.fv,{span:3,children:u.productType===ht?(0,fe.jsx)(p.Link,{to:`/engage/${u.id}`,target:"_blank",onClick:e=>{e.preventDefault(),(e=>{const n=e.previewProductInfo;t({show:!0,bundleInfo:{id:e.id,thumbnail:n.metaData.thumbnail,title:n.name,description:n.metaData.description,price:e.price,product:e,hideBuyButton:!0}})})(u)},children:(0,fe.jsx)(GOe,{children:"Preview"})}):null}),(0,fe.jsx)(ie.fv,{span:2,children:l&&(0,fe.jsx)(WOe,{children:(0,fe.jsx)(Mg,{value:r,onIncrement:()=>o(u),onDecrement:()=>s(u)})})}),(0,fe.jsx)(ie.fv,{span:2,children:(0,fe.jsxs)(FOe,{children:[c,a]})}),(0,fe.jsx)(ie.fv,{span:1,children:!i&&(0,fe.jsx)(POe,{name:"Cart-Lines__Delete-Button",onClick:()=>d(n),icon:"times",size:"1x"})})]})},n)})})]})]})}var bEe=t(88104),vEe=t.n(bEe);function CEe(e){let{defaultValue:n,applyDiscount:t}=e;const[a,i]=(0,g.useState)(n),{showNotification:l}=tn(),r=(0,C.m)();return(0,fe.jsxs)(ie.fI,{item:!0,container:!0,name:"Discount-Code-Container",children:[(0,fe.jsx)(JOe,{name:"Discount-Code-Container__Input",placeholder:"Discount code (optional)",value:a,onChange:e=>{const{value:n}=e.target;n||t(null),i(n)},box:!0}),(0,fe.jsx)(YOe,{disabled:!a,name:"Discount-Code-Container__Verify-Button",onClick:async()=>{try{const{data:{getPromotionCode:e}}=await r.query({query:vEe(),variables:{code:a}});e?(t(e),l("Discount has been applied","success")):l("Invalid discount code","danger")}catch(e){l(e,"danger")}},title:"Verify discount code",inline:!0,children:(0,fe.jsx)(ie.In,{icon:"angle-right"})})]})}const kEe=(0,le.default)(ie.Ip)`
  margin: 0 auto;
  position: relative;
  top: 70px;
`,SEe=(e,n,t)=>"percentage"===e.type?`${e.discount}% (-${t}${n})`:`${t}${e.discount}`;function NEe(e){let{cart:n}=e;const{state:{data:t,isCartEmpty:a,subTotal:i,newSubTotal:l,total:r,discount:o,discountFixed:s,currency:{symbol:d}},addProduct:c,removeProduct:u,removeLine:f,setDiscount:y}=n,h=(0,m.Zp)(),x=Je(),[T,b]=(0,g.useState)(!1),{data:{capacity:C=1}={},loading:k}=v(x),{data:S,loading:N}=mr(x),{data:{content:A={}},loading:R}=Nr(),D=t.filter(e=>{let[,{product:{productType:n}}]=e;return n===Ct})||[],L=t.filter(e=>{let[,{product:{productType:n}}]=e;return"course"===n||n===bt}),I=t.filter(e=>{let[,{product:{productType:n}}]=e;return"managementSystem"===n}),j=t.filter(e=>{let[,{product:{productType:n}}]=e;return n===vt||n===Ct}),w=L.length>0,O=I.length>0,E=j.length>0,_=N||R||k;return A[Ct][0],new Map(t).get("accountCapacity_id"),_?(0,fe.jsx)(kEe,{}):(0,fe.jsx)(OOe,{children:(0,fe.jsxs)("div",{children:[a&&(0,fe.jsxs)(zOe,{children:[(0,fe.jsxs)("h2",{children:["Your Basket is empty",(0,fe.jsx)(VOe,{icon:"cart-arrow-down"})]}),(0,fe.jsxs)("p",{children:["View courses in the ",(0,fe.jsx)(p.Link,{to:"/upgrade/courses",children:"Market section"})]})]}),!a&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)("h2",{children:["Your Basket ",(0,fe.jsx)(VOe,{icon:"cart-arrow-down"})]}),(0,fe.jsxs)("div",{children:[E&&(0,fe.jsx)(TEe,{title:"Subscription",cart:n,lines:j}),w&&(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(TEe,{title:"Learn Items",cart:n,styles:"learn",lines:L})}),O&&(0,fe.jsx)(TEe,{title:"Governance Items",cart:n,styles:"comply",lines:I})]}),(0,fe.jsx)(BOe,{children:(0,fe.jsxs)(ie.fI,{container:!0,itemAlign:"center",distribution:"between",children:[(0,fe.jsxs)(ie.fv,{span:6,children:[(0,fe.jsxs)(UOe,{children:["Subtotal: ",d,i]}),(0,fe.jsx)("br",{}),o&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)($Oe,{name:"Cart-Discount",children:["Discount: ",SEe(o,s,d)]}),(0,fe.jsx)("br",{}),(0,fe.jsxs)($Oe,{children:["New subtotal: ",d,l]}),(0,fe.jsx)("br",{})]}),(0,fe.jsxs)($Oe,{children:["Total including VAT: ",d,r]})]}),(0,fe.jsx)(qOe,{span:3,children:(0,fe.jsx)(CEe,{defaultValue:o?.code,applyDiscount:y})}),(0,fe.jsx)(ie.fv,{span:3,children:(0,fe.jsx)(MOe,{name:"Cart-Pay-Button",onClick:()=>{let e=0,n=!1;const t=D[0]?D[0][1]:{},a=(t?.quantity||0)+C,i=new Map(S.map(e=>{let{productId:n,count:t}=e;return[n,t.reduce((e,n)=>{let{count:t}=n;return e+t},0)]}));L.forEach(t=>{let[a,{quantity:l}]=t;const r=i.has(a)?i.get(a)+l:l;r>e&&(e=r),l>0&&(n=!0)}),a<e&&n&&h("/upgrade/checkout")},children:"Buy Now"})})]})})]})]})})}const AEe=le.default.div`
  padding: 0px 30px;
`;function REe(){const e=Cr();return(0,fe.jsx)(wOe,{route:"cart",cart:e,children:(0,fe.jsx)(AEe,{children:(0,fe.jsx)(NEe,{cart:e})})})}const DEe=[{value:"desc",label:"Newest"},{value:"asc",label:"Oldest"}],LEe=(0,le.default)(ie.fI)`
  padding: 40px 50px 40px 50px;
`,IEe=le.default.div`
  background: #fff;
  padding: 2px 10px 2px 10px;
  border-radius: 2px;
`,jEe=le.css`
  border: none;
  background: none;
  &:focus-within,
  &:hover,
  .focus {
    background: none;
  }
`,wEe=(0,le.default)(ie.l6)`
  ${jEe}
  min-width: 120px;
`,OEe=(0,le.default)(ie.l6)`
  ${jEe}
  min-width: 165px;
`,EEe=le.default.div`
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 25px;
  row-gap: 25px;
  padding: 0px 50px 0px 50px;
`,_Ee=le.default.div`
  overflow-x: hidden;
  overflow-y: scroll;
  &.isCartVisible {
    margin-bottom: 130px;
  }
`,FEe=(0,le.default)(ie.EY)`
  text-align: center;
  margin: 20px 0 15px 0;
  a:hover {
    text-decoration: underline;
  }
`,PEe=()=>(0,fe.jsx)(FEe,{children:(0,fe.jsx)(p.Link,{to:"/contact",children:"Can’t find what you are looking for? Contact us to find out more"})}),BEe=e=>{let{cart:n,content:t,isCartVisible:a}=e;const[i,l]=(0,Gr.useQueryParams)({courseId:(0,Gr.withDefault)(Gr.StringParam,null)}),[r,o]=(0,g.useState)({search:"",sortingByDate:"desc",sortingByCategory:"allCategories"}),[s,d]=(0,g.useState)({show:!1,bundleInfo:null}),{addProduct:c,hasProduct:u,removeLine:p,findLine:m}=n,f=t.courseBundle.reduce((e,n)=>(n.courses.forEach(n=>{n.metaData?.categories?.forEach(n=>{e.add(n)})}),e),new Set),y=new Map([...f].flatMap(e=>{const n=VR.find(n=>n.value===e);if(n){const{value:e,label:t}=n;return[[e,t]]}return[]})),h=new Set,x=e=>c({...e},1,null,!1),T=(0,g.useCallback)(e=>t[bt].find(n=>n.id===e),[t]),b=(0,g.useCallback)(e=>{d({show:!0,bundleInfo:{id:e.id,thumbnail:e.image,title:e.title,description:e.description,price:e.price,product:e,hideBuyButton:n.hasProduct(e.id)}})},[n]),v=(0,g.useCallback)(e=>{l({courseId:e.id});const n=T(e.id);n&&b(n)},[l,T,b]);(0,g.useEffect)(()=>{if(i.courseId){const e=T(i.courseId);e&&!n.hasProduct(e.id)&&b(e)}},[i.courseId,T,b,n]);const C=(0,hn.orderBy)(t[bt].map(e=>{const{courses:n=[]}=e,t=new Set;return n.forEach(e=>{const n=e?.metaData.categories;n&&n.forEach(e=>{t.add(e),h.add(e)})}),{...e,categories:t,firstCategory:t.size&&(0,hn.startCase)([...t][0].toLocaleLowerCase())}}).filter(e=>{const n=e.title.toLocaleLowerCase().includes(r.search)||e.description.toLocaleLowerCase().includes(r.search),t="allCategories"===r.sortingByCategory||e.categories.has(r.sortingByCategory.toUpperCase());return n&&t}),"createdAt","desc"===r.sortingByDate?"desc":"asc"),k=e=>{const{quantity:n}=m(e)||{quantity:0};return n},S=[{value:"allCategories",label:"All categories"},...[...h].map(e=>({value:e,label:y.get(e)}))];return(0,fe.jsxs)(fe.Fragment,{children:[s.show?(0,fe.jsx)(xEe,{bundleInfo:s.bundleInfo,addProduct:x,onDismiss:()=>d(e=>({...e,show:!1}))}):null,(0,fe.jsx)(LEe,{children:(0,fe.jsx)(IEe,{children:(0,fe.jsx)(ie.sG,{id:"TextInputWithMultiDropdown",name:"TextInputWithMultiDropdown",inline:!1,disabled:!1,pill:!0,box:!0,size:"md",iconType:"search",success:"",error:"",textPlaceHolder:"Search for Title, Subject, Content",onTextChange:e=>{e.persist(),o(n=>({...n,search:e.target?.value.toLocaleLowerCase()}))},multiSelectList:[{transferredSelect:wEe,selectValue:"Select Value",selectPlaceholder:"Newest",options:DEe,onSelectChange:e=>{o(n=>({...n,sortingByDate:e.target?.value}))}},{transferredSelect:OEe,selectValue:"",selectPlaceholder:"All Categories",options:S,onSelectChange:e=>{o(n=>({...n,sortingByCategory:e.target?.value}))}}]})})}),(0,fe.jsxs)(_Ee,{className:a?"isCartVisible":"",children:[(0,fe.jsx)(EEe,{children:C.map(e=>{let{id:n,...t}=e;return(0,g.createElement)(uEe,{id:n,...t,quantity:k(n),key:n,isInCart:u(n),addProduct:x,removeLine:p,link:t.productType===ht,handlePreview:v})})}),(0,fe.jsx)(PEe,{})]})]})},UEe=(0,le.default)(ie.Ip)`
  margin: 0 auto;
  position: relative;
  top: 70px;
`;function $Ee(){const{route:e="courses"}=(0,m.g)(),n=Cr(),{data:{content:t},loading:a}=Nr(),{data:i,loading:l}=Ns(),{data:{content:r},loading:o}=gr(Je()),s={courses:BEe}[e],d=(l||a||o)&&(!t.itemList||t.itemList?.length<1),c=r.length;return(0,fe.jsx)(wOe,{route:e,cart:n,children:d?(0,fe.jsx)(UEe,{}):(0,fe.jsx)(s,{cart:n,content:t,currentUser:i,accountUsersCount:c})})}function MEe(){const e=Cr();return(0,fe.jsx)(wOe,{route:"checkout",cart:e})}const VEe=()=>{const e=or();return(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:e.market.checkout,element:(0,fe.jsx)(MEe,{})}),(0,fe.jsx)(m.qh,{path:e.market.cart,element:(0,fe.jsx)(REe,{})}),(0,fe.jsx)(m.qh,{path:"/:route",element:(0,fe.jsx)($Ee,{})}),(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(m.C5,{to:"/upgrade/courses"})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(Oc,{})})]})},GEe=le.default.iframe`
  width: 100%;
  height: 100%;
`,zEe=(0,ce.Ay)(()=>(0,fe.jsx)(GEe,{id:"flowsFrame",src:"/rio-flows/flows/"})),WEe=le.default.div`
  height: 100%;
  overflow: visible;
`,qEe=le.default.div`
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: white;
  opacity: 0.5;
  width: 100%;
  height: 100%;
`,JEe=(0,le.default)(Ae)`
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
  z-index: 3;
  position: relative;
`,YEe=()=>{const e=zo(),n=!!e&&e.accessControls.flows;return(0,fe.jsxs)(fe.Fragment,{children:[!n&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(qEe,{}),(0,fe.jsx)(JEe,{name:"FormsContainer_Access_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Flows",body:"Currently Flows are not included in your subscription, if you’d like access to Flows please contact Rio AI Ltd or get in touch with your Business Admin."})]}),n&&(0,fe.jsx)(WEe,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(zEe,{})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(Oc,{})})]})})]})};function HEe(){const e=zo(),[n,t,a]=(0,m.KC)(),{token:i}=qe(),l=(0,m.Zp)(),r=lr();cr();const{data:o}=Mr(),s=or(),d=i?i.given_name:"",c=Pu(yDe,"learn.home",{onFinish:()=>l(s.learn.root)},[{title:"learnTour.home.item1.title",content:"learnTour.home.item1.content",placement:"center",target:"body",textAlign:"left",disableBeacon:!0},{title:"Get studying",content:"Upgrade your knowledge with our accredited learning",placement:"auto",target:'[name="Sidebar__NavLink--Learn-NavLinkStyled"]',textAlign:"left",floaterProps:{disableAnimation:!0},disableBeacon:!0}],d),u=e?.accessControls?.tasks,p=e?.accessControls?.projects;return(0,m.Ye)((0,m.Eu)((0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(m.qh,{path:s.home.root,element:(0,fe.jsx)(c,{}),errorElement:(0,fe.jsx)(Su,{})}),(0,fe.jsx)(m.qh,{path:`${s.learn.root}/*`,element:(0,fe.jsx)(sje,{})}),(0,fe.jsx)(m.qh,{path:`${s.governance.root}/*`,element:(0,fe.jsx)(hbe,{})}),(0,fe.jsx)(m.qh,{path:`${s.surveys.root}/*`,element:(0,fe.jsx)(AAe,{})}),(0,fe.jsx)(m.qh,{path:`${s.data.root}/*`,element:(0,fe.jsx)(O8,{})}),(0,fe.jsx)(m.qh,{path:`${s.reporting.root}/*`,element:(0,fe.jsx)(Foe,{})}),(0,fe.jsx)(m.qh,{path:`${s.docs.root}/*`,element:(0,fe.jsx)(LLe,{})}),(0,fe.jsx)(m.qh,{path:`${s.tasks.root}/:id`,element:(0,fe.jsx)(Ije,{hasProjectsAccess:p})}),(0,fe.jsx)(m.qh,{path:`${s.tasks.root}/*`,element:(0,fe.jsx)(nOe,{hasProjectsAccess:p,hasTasksAccess:u,tab:s.tasks.root})}),(0,fe.jsx)(m.qh,{path:`${s.projects.root}/:id`,element:(0,fe.jsx)(Jwe,{})}),(0,fe.jsx)(m.qh,{path:`${s.projects.root}/*`,element:(0,fe.jsx)(nOe,{hasProjectsAccess:p,hasTasksAccess:u,tab:`/${s.projects.root}`})}),!!r.configurationRoute&&(0,fe.jsx)(m.qh,{path:`${s.configuration.root}/*`,element:(0,fe.jsx)(jJ,{massUploadFunction:n,setCreateMutation:(e,n)=>{t(e),n&&a(n)}})}),!!o.intelligence&&(0,fe.jsx)(m.qh,{path:`${s.intelligence.root}/*`,element:(0,fe.jsx)(sY,{})}),!!o.flows&&(0,fe.jsx)(m.qh,{path:`${s.flows.root}/*`,element:(0,fe.jsx)(YEe,{})}),(0,fe.jsx)(m.qh,{path:`${s.header.contact}/*`,element:(0,fe.jsx)(lse,{})}),(0,fe.jsx)(m.qh,{path:`${s.header.profile}/*`,element:(0,fe.jsx)(bOe,{})}),(0,fe.jsx)(m.qh,{path:`${s.header.upgrade}/*`,element:(0,fe.jsx)(VEe,{})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:`${s.home.root}`})})]})))}const KEe=(0,f.styled)("div")`
  position: fixed;
  left: 25%;
  bottom: 16px;
  width: 50%;
  height: auto;
  background: ${e=>e.theme.sys.color.surface};
  border-radius: 16px;
  padding: 16px;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.3);
`,QEe=(0,f.styled)(f.Icons.Check)`
  cursor: pointer;
`,ZEe=(0,f.styled)(f.Icons.HighlightOff)`
  cursor: pointer;
`,XEe=(0,f.styled)(f.Grid)`
  position: relative;
  align-items: center;
  height: 48px;
`,e_e=(0,f.styled)(f.LinearProgress)`
  width: 100%;
`,n_e=(0,f.styled)(f.Text)`
  cursor: pointer;
  text-decoration: underline;
  min-width: 124px;
`,t_e=e=>e.error?"error":100===e.percents?"success":"primary";function a_e(){const e=kl(),n=e?.getExports(),[t,a]=(0,g.useState)(null),[i,l]=(0,g.useState)(null);return n?.length?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(KEe,{children:n.map(n=>(0,fe.jsxs)(XEe,{columns:12,container:!0,columnGap:2,children:[(0,fe.jsxs)(f.Grid,{size:8,children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",textAlign:"center",children:n.fileName}),(0,fe.jsx)(e_e,{variant:"buffer",color:t_e(n),value:n.percents,valueBuffer:n.step})]}),(0,fe.jsx)(f.Grid,{size:2,children:n.error?(0,fe.jsx)(n_e,{typescale:"body",size:"medium",textAlign:"center",onClick:()=>a(n.error),children:"Show error details"}):(0,fe.jsxs)(f.Text,{typescale:"body",size:"medium",textAlign:"center",children:[Math.round(n.percents)||0,"%"]})}),(0,fe.jsx)(f.Grid,{size:1,container:!0,justifyContent:"flex-end",children:n.completed?(0,fe.jsx)(QEe,{onClick:()=>{e?.stopExport(n.id,{shouldDelete:!1})},color:"success"}):(0,fe.jsx)(ZEe,{onClick:()=>{n.error?e?.stopExport(n.id,{shouldDelete:!0}):l(n.id)},color:"error"})})]},n.id))}),(0,fe.jsx)(f.Modal,{open:!!t,onClose:()=>a(null),title:"Error details:",children:(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:t?.message||t?.toString()})}),(0,fe.jsx)(GS,{open:!!i,onClose:()=>l(null),title:"Do you want to abort the export?",body:"All progress will be lost.",onConfirm:()=>{e?.stopExport(i,{shouldDelete:!0}),l(null)}})]}):null}const i_e=[gn.ZU.ReadyForReview,gn.ZU.Approved,gn.ZU.InProgress],l_e=e=>e?.filter(e=>{const{isOverDue:n}=dm(e.deadlineDate),t=om(e.deadlineDate);return!n&&t||!n&&(!e.submission||!i_e.includes(e.submission.status))})?.length,r_e=(0,le.default)(ie.fv)`
  min-width: 100px;
  height: calc(100% - 32px);
  position: fixed;
  flex: 0 0 auto;
  margin-top: -10px;
  overflow-y: auto;
  padding-bottom: 24px;

  &::-webkit-scrollbar {
    display: none;
  }
`,o_e=De("REACT_APP_ANALYST_AGENT_ENDPOINT");function s_e(e){if("function"==typeof AbortSignal.any)return AbortSignal.any(e);const n=new AbortController,t=e=>{const t=e.target;a(),n.abort(t.reason??new DOMException("Aborted","AbortError"))},a=()=>{for(const n of e)n.removeEventListener("abort",t)};for(const a of e){if(a.aborted)return n.abort(a.reason??new DOMException("Aborted","AbortError")),n.signal;a.addEventListener("abort",t,{once:!0})}return n.signal}function d_e(e){if(AbortSignal.timeout)return AbortSignal.timeout(e);const n=new AbortController;return setTimeout(()=>n.abort(),e),n.signal}const c_e=()=>{const{messages:e,loading:n,sendMessage:t}=function(){const e=function(){const[e,n]=(0,g.useState)(null),t=async()=>{const e=await async function(){const e=await y.N.currentSession();return{idToken:e.getIdToken().getJwtToken(),accessToken:e.getAccessToken().getJwtToken(),refreshToken:e.getRefreshToken().getToken(),expiresAt:e.getAccessToken().getExpiration(),issuedAt:e.getAccessToken().getIssuedAt()}}();return n(e),e};return(0,g.useEffect)(()=>{let e;return t().then(n=>{const a=1e3*n.expiresAt-Date.now();e=window.setInterval(()=>{t()},a)}),()=>{void 0!==e&&clearInterval(e)}},[]),e}(),n=Je(),t=Bl(),[a]=(0,g.useState)(()=>crypto.randomUUID()),[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(null),[s,d]=(0,g.useState)([]),c=(0,g.useRef)(null),u=(0,g.useRef)(null),p=(0,g.useCallback)(async i=>{if(!e?.accessToken)return void o("Not authenticated");c.current?.abort();const r=new AbortController;c.current=r,l(!0),o(null);const s=crypto.randomUUID();u.current=s,d(e=>[...e,{id:crypto.randomUUID(),author:"user",text:i}]);try{const l=await fetch(o_e,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.accessToken}`},body:JSON.stringify({input:{prompt:i,session_id:a,account_id:n,user_id:t,id_token:e.idToken}}),signal:s_e([r.signal,d_e(3e5)])});if(!l.ok){const e=await l.json().catch(()=>null);throw new Error(`Status ${l.status}: ${e?.error?.message??"Unknown error"}`)}if(!l.body)throw new Error("No response body");const o=l.body.getReader(),c=new TextDecoder;let u="",p=!0;for(;;){const{done:e,value:n}=await o.read();if(e)break;const t=c.decode(n,{stream:!0});u+=t;const a=u;p?(p=!1,d(e=>[...e,{id:s,author:"ai",text:a,error:null}])):d(e=>e.map(e=>e.id===s?{id:s,author:"ai",text:a,error:null}:e))}d(e=>e.map(e=>e.id===s?{id:s,author:"ai",text:u,error:null}:e))}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;const n=e instanceof Error?e.message:"Unknown error";o(n);const t={id:s,author:"ai",text:null,error:n};d(e=>{const n=e.some(e=>e.id===s);return n?e.map(e=>e.id===s?t:e):[...e,t]})}finally{l(!1)}},[e,n,t,a]);return(0,g.useEffect)(()=>()=>c.current?.abort(),[]),{messages:s,loading:i,error:r,sendMessage:p}}(),a=(0,g.useMemo)(()=>["What is our highest environmental risks?","Costs by category","Are there any data anomalies in my electricity data?","Which location uses the most gas?","How much waste did we generate last year?"],[]);return(0,fe.jsx)(f.AiChatDialog,{title:"AI Assistant",subtitle:"You can ask questions about your data",inputPlaceholder:"Ask me anything about your data",conversation:e,loading:n,initialSuggestions:a,onUserMessage:t})};const u_e=(0,f.styled)(f.Header)`
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99;
  padding-left: 32px;
  padding-right: 132px; // width of side nav + normal padding
`,p_e=()=>{const{onProfileClick:e,onResetToursClick:n,onLogoutClick:t,accounts:a,onAccountChanged:i,currentAccountId:l,user:r,notifications:o,notificationsLoading:s,notificationsError:d,onNotificationClick:c}=function(){const e=(0,m.vL)(),n=Yo(),{token:t}=qe(),{accounts:a}=Bd(t.sub),[i,l]=(0,g.useState)(),r=Je(i),[o]=(0,ln.n)(ae),[s]=(0,ln.n)(O),{notifications:d,loading:c,error:u}=function(){let{accountId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{data:n,loading:t,error:a}=(0,x.IT)(Zo,{variables:{accountId:e},skip:!e,pollInterval:3e5,errorPolicy:"all"}),i=(0,g.useMemo)(()=>{if(!n?.getDocumentRecordsForReview)return[];const e=new Date,t=new Date;return t.setDate(e.getDate()+14),n.getDocumentRecordsForReview.filter(e=>!!e.reviewDate&&new Date(e.reviewDate)<=t).map(e=>{const n=new Date(e.reviewDate),t=new Date,a=n.getTime()-t.getTime(),i=Math.ceil(a/864e5),l=i<0,r=l?"overdue":"approaching";let o;if(l){const n=Math.abs(i);o=`${e.fileName} - ${n} day${1===n?"":"s"} overdue`}else o=`${e.fileName} - ${i} day${1===i?"":"s"} until review`;return{id:e.id,title:"Document review required",message:o,date:`Review date: ${n.toLocaleDateString("en-GB")}`,type:"document-review",status:r,daysUntilReview:i}}).sort((e,n)=>"overdue"===e.status&&"overdue"!==n.status?-1:"overdue"!==e.status&&"overdue"===n.status?1:(e.daysUntilReview||0)-(n.daysUntilReview||0))},[n]);return{notifications:i,loading:t,error:!!a}}({accountId:r}),p=(0,g.useMemo)(()=>Object.keys(a).map(e=>({id:e,logo:a[e].logoPath,name:a[e].name})).sort(Jn),[a]),f=(0,g.useCallback)(async n=>{"value"in n&&(await o({variables:{currentAccountId:n.value}}),l(n.value),e.revalidate())},[o,e]),y=(0,m.Zp)(),h=(0,g.useCallback)(()=>{y("/v2/profile")},[y]),T=(0,g.useCallback)(()=>{localStorage.removeItem("TOUR_STATUS")},[]),b=(0,g.useCallback)(e=>{y(`/v2/documents/all/${e}`)},[y]);return{onProfileClick:h,onResetToursClick:T,onLogoutClick:s,onAccountChanged:f,accounts:p,currentAccountId:r,user:{fullname:n?`${n.first_name??""} ${n.last_name}`:"",profilePicture:n?n.profilePicture??null:null,disableAccountSelector:n?.disableAccountSelector||!1},notifications:d,notificationsLoading:c,notificationsError:u,onNotificationClick:b}}();return(0,fe.jsx)(u_e,{onProfileClick:e,onResetToursClick:n,onLogoutClick:t,user:r,accounts:a,onAccountChanged:i,selectedAccount:l,notifications:{items:o,loading:s,error:d,onNotificationClick:c}})},m_e=(0,f.styled)(f.Surface)`
  display: flex;
  flex-flow: row nowrap;
  padding: 24px 0;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
  height: 100%;
`,f_e=(0,f.styled)("div")`
  height: 100%;
  min-height: calc(100vh - 66px);
  margin-left: 100px;
  display: flex;
  flex-flow: column nowrap;
  flex: 1;
  overflow: hidden;
`,y_e=(0,f.styled)(f.Surface)`
  display: flex;
  flex-flow: column nowrap;
  height: 100%;
  flex: 1 1 auto;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
  margin-top: 66px; // header height
`,g_e=(0,f.styled)(e=>{let{account:n,user:t,receivedSurveys:a,userTasks:i}=e;const l=Je(),{token:r}=qe(),{permissions:o}=t.role,{count:s}=(0,g.useMemo)(()=>l_e(a),[a]),d=(0,g.useMemo)(()=>i&&r?.sub?i.filter(e=>!e.isCompleted&&e.owners?.some(e=>{let{id:n}=e;return n.toLowerCase()===r.sub.toLowerCase()})).length:0,[i,r?.sub]),c=Pt.includes(l),u=t.role.role===gn.gG.Surveysonly,p=(0,g.useMemo)(()=>o.survey.some(e=>e.startsWith("getSurveys")),[o]),{showNotification:m}=tn(),{canAccessLearnWorlds:y}=function(){const e=ec("learn");return{get canAccessLearnWorlds(){return e("accessLearnWorlds")}}}(),h=function(){const e=Je(),[n]=(0,Ul._)(S.J1`
      query GetLearnWorldsUrl($accountId: ID!) {
        getLearnWorldsUrl(accountId: $accountId)
      }
    `,{variables:{accountId:e},fetchPolicy:"network-only"});return async()=>{const{data:e}=await n();return e.getLearnWorldsUrl}}();return(0,fe.jsx)(r_e,{children:(0,fe.jsx)(f.NavigationRail,{button:{impact:{show:o.allowedRioModules.includes(gn.zB.Home)},howto:{show:!!n.accessControls.learn&&o.allowedRioModules.includes(gn.zB.Engage)},learnworlds:{show:!!n.accessControls.learn&&o.allowedRioModules.includes(gn.zB.Engage)&&y,onClick:async()=>{try{window.open(await h())}catch(e){E.Cp(e),m("Login to LearnWorlds failed. Please try again, or contact support.","danger")}}},govenance:{show:o.allowedRioModules.includes(gn.zB.Governance)},surveys:{show:!!n.accessControls.surveys,badge:s,hasAccessToSurveysSent:p},data:{show:o.allowedRioModules.includes(gn.zB.Data)&&!c},reporting:{show:o.allowedRioModules.includes(gn.zB.Reporting)&&!c},intelligence:{show:!!n.accessControls.intelligence&&o.allowedRioModules.includes(gn.zB.Intelligence)&&!c},docs:{show:o.allowedRioModules.includes(gn.zB.Documents)&&!c},flows:{show:!u&&!!n.accessControls.flows},tasks:{show:!!n.accessControls.tasks&&o.allowedRioModules.includes(gn.zB.Tasks),badge:d>0?d:void 0},configuration:{show:o.allowedRioModules.includes(gn.zB.Configuration)&&!c}},v2ShowItems:["flows","tasks","docs","governance",...n.accessControls.intelligence?["intelligence"]:[]]})})})`
  position: fixed !important;
`,h_e=()=>{const[e,n]=(0,g.useState)([]),t=Je(),[a,i]=(0,g.useState)(),[l,r]=(0,g.useState)(),o=(0,m.LG)();return cr(),Ke(),(0,fe.jsxs)(m_e,{className:"v2",children:[(0,fe.jsx)(g_e,{account:o.getAccountInfo,user:o.getUserInfoById,receivedSurveys:o.getReceivedSurveysPage.rows,userTasks:o.getTasksByUserId||[]}),(0,fe.jsxs)(f_e,{children:[(0,fe.jsx)(p_e,{}),(0,fe.jsx)(y_e,{children:(0,fe.jsx)(f.PageErrorContextProvider,{children:(0,fe.jsx)(f.PageLoadingContextProvider,{children:(0,fe.jsx)(m.sv,{context:[n,i,r,o]})})})})]}),e.length>0&&a&&(0,fe.jsx)(Wy,{items:e,dismiss:()=>n([]),createMutation:a,onComplete:l}),(0,fe.jsx)(a_e,{}),o.getAccountInfo.featureToggles?.dataAnalysisChatbot&&(0,fe.jsx)(c_e,{userId:o.getUserInfoById.id})]},`AppContainer__${t}`)},x_e=(0,f.styled)(f.Grid)`
  display: flex;
  gap: 24px;
  width: 100%;
  flex-direction: row;

  ${e=>{let{theme:n}=e;return n.breakpoints.down("lg")}} {
    flex-direction: column;
  }
`,T_e=(0,f.styled)(f.Grid)`
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  ${e=>{let{theme:n}=e;return n.breakpoints.down("lg")}} {
    width: 100%;
  }
`,b_e=(0,f.styled)("div")`
  padding: 32px;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};

  ${e=>{let{theme:n}=e;return n.breakpoints.down("md")}} {
    padding: 18px;
    min-height: 460px;
  }
`,v_e=(0,f.styled)(f.Text)``.withComponent("h2"),C_e=(0,f.styled)("div")`
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 25px;
  ${e=>{let{theme:n}=e;return n.breakpoints.down("lg")}} {
    height: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: flex-start;
  }
`,k_e=((0,f.styled)("div")`
  display: flex;
  justify-content: center;
  width: 100%;

  rect {
    fill: none;
  }
`,(0,f.styled)(f.Button)`
  padding: 10px 16px 10px 12px;
  position: absolute;
  top: 68px;
  right: 32px;

  svg {
    height: 18px;
    width: 18px;
  }
`),S_e=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  width: inherit;
  justify-content: center;
`,N_e=(0,f.styled)("div")`
  width: 100%;
  overflow-x: auto;
`,A_e=(0,f.styled)("div")`
  display: flex;
  flex-flow: row nowrap;
  gap: 20px;
  padding: 2px;
  margin-bottom: 12px;
  ${e=>{let{theme:n}=e;return n.breakpoints.down("lg")}} {
    flex-wrap: wrap;
    flex-flow: column;
  }
`,R_e=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2px;
`,D_e=(0,f.styled)(f.Text)`
  margin-bottom: 8px;
  color: ${e=>e.theme.sys.color.onSurface};
`,L_e=(0,f.styled)("div")`
  display: flex;
  width: 100%;
  padding: 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid ${e=>e.theme.sys.color.outlineVariant};
  background-color: ${e=>e.theme.sys.color.surface};
  box-shadow: ${e=>e.theme.sys.elevation[1]};
  cursor: pointer;

  &:hover {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.secondaryContainer}};
  }
`,I_e=(0,f.styled)("div")`
  display: flex;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  flex: 1 0 0;

  p {
    margin: 0px;
  }
`,j_e=e=>{let{icon:n,color:t,id:a,hideShadowGradient:i}=e;const l=(0,f.styled)(n)`
    color: ${t};
    position: absolute;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    left: 8px;
    top: 8px;
  `,r=(0,f.styled)("div")`
    height: 40px;
    width: 40px;
    position: relative;
  `;return(0,fe.jsxs)(r,{children:[(0,fe.jsx)(l,{}),(0,fe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[(0,fe.jsx)("circle",{cx:"20",cy:"20",r:"20",fill:`url(#paint0_linear_${a})`}),!i&&(0,fe.jsx)("defs",{children:(0,fe.jsxs)("linearGradient",{id:`paint0_linear_${a}`,x1:"20",y1:"0",x2:"20",y2:"40",gradientUnits:"userSpaceOnUse",children:[(0,fe.jsx)("stop",{stopColor:t,stopOpacity:"0.15"}),(0,fe.jsx)("stop",{offset:"1",stopColor:t,stopOpacity:"0"})]})})]})]})},w_e=()=>{const e=(0,f.useTheme)(),n=[{id:"survey-tool",title:"Run a social survey",link:"surveys/sent/overview",icon:f.Icons.PeopleOutline,color:e.extendedColors.economic.color},{id:"reporting-tool",title:"Check your Carbon",link:"reporting",icon:f.Icons.Co2,color:"#006C4B"}];return(0,fe.jsxs)("div",{children:[(0,fe.jsx)(D_e,{typescale:"title",size:"medium",children:"Quick Tools"}),(0,fe.jsx)(N_e,{children:(0,fe.jsx)(R_e,{children:n.map(e=>(0,fe.jsx)(p.Link,{to:`/v2/${e.link}`,children:(0,fe.jsxs)(L_e,{children:[(0,fe.jsx)(j_e,{icon:e.icon,color:e.color,id:e.id}),(0,fe.jsx)(I_e,{children:(0,fe.jsx)(D_e,{typescale:"body",size:"medium",children:e.title})})]})},e.title))})})]})},O_e=t.p+"cbb-17b5e3b4bf4db9485f00.png",E_e=((0,le.default)(G3.A)`
  display: flex;
  padding: 16px;
  border-radius: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
`,(0,le.default)(f.Button)`
  width: 240px;
  padding: 10px 16px;

  && {
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);

    > p {
      color: var(--md-sys-color-primary);
    }

    &.Mui-disabled {
      cursor: not-allowed;
      pointer-events: all;

      > p {
        color: var(--md-sys-color-onSurface);
      }
    }
  }
`),__e={display:"flex",width:"90%",flexDirection:"row",justifyContent:"space-between"},F_e=e=>{let{recentConsultations:n,handleNewChatClick:t,handleDataAnalysisClick:a,disabledNewChatClick:i}=e;const l=(0,m.g)(),r=(0,g.useMemo)(()=>{const e=((e,n)=>{const t=bn()().startOf("day"),a=bn()().subtract(1,"days").startOf("day"),i=bn()().subtract(7,"days").startOf("day"),l={Today:[],Yesterday:[],"Previous 7 Days":[]};return e.forEach(e=>{const r=bn()(e.lastAccess),o=n===e.consultationID,s={to:`/intelligence/${e.consultationID}`,item:e.knowledgeBaseName,isActive:o,status:e.status};r.isSame(t,"day")?l.Today.push(s):r.isSame(a,"day")?l.Yesterday.push(s):r.isAfter(i)&&l["Previous 7 Days"].push(s)}),l})(n,l?.id);return Object.keys(e).map(n=>({name:n,history:e[n].map(e=>({...e,icon:"Closed"===e.status?(0,fe.jsx)(f.Icons.CheckCircleOutline,{fontSize:"medium"}):null}))}))},[l?.id,n]);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(G3.A,{gap:"24px",display:"flex",flexDirection:"column",children:[(0,fe.jsxs)(E_e,{variant:"outlined",disabled:i,onClick:t,children:[(0,fe.jsx)(f.Icons.RateReviewOutlined,{}),(0,fe.jsx)(f.Text,{size:"medium",color:"primary",children:"Start new conversation"})]}),(0,fe.jsxs)(E_e,{variant:"outlined",disabled:i,onClick:a,children:[(0,fe.jsx)(f.Icons.AnalyticsOutlined,{}),(0,fe.jsx)(f.Text,{size:"medium",color:"primary",children:"Start Data Analysis"})]}),r.map((e,n)=>!!e.history.length&&(0,fe.jsxs)(G3.A,{display:"flex",flexDirection:"column",gap:"4px",children:[(0,fe.jsx)(f.Text,{typescale:"label",size:"medium",color:"secondary",children:e.name}),(0,fe.jsx)(f.NavigationDrawer,{items:e.history,itemStyle:__e})]},`Sidebar_${e.name}_${n}`))]})})},P_e=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 300px;
  padding: 2px 0;
`,B_e=(0,f.styled)("div")`
  display: flex;
  width: 100%;
  height: 48px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid ${e=>e.theme.sys.color.outlineVariant};
  background-color: ${e=>e.theme.sys.color.surface};
  box-shadow: ${e=>e.theme.sys.elevation[1]};
  cursor: pointer;

  &:hover {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.secondaryContainer}};
  }
`,U_e=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 0 0;
`,$_e=(0,f.styled)(f.Text)`
  color: ${e=>e.theme.sys.color.onSurface};
`,M_e=(0,f.styled)("div")`
  display: flex;
  align-items: flex-start;
  gap: 24px;
`,V_e=(0,f.styled)("div")`
  display: flex;
  justify-content: center;
  height: calc(100vh - 72px); // header height
  flex: 1;

  iframe {
    max-width: 100%;
  }
`,G_e=(0,f.styled)("div")`
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
`,z_e=(0,f.styled)("img")`
  width: 24px;
  height: 24px;
  filter: grayscale(1);
  mix-blend-mode: darken;
  background-color: inherit;
`,W_e="Hi, <b>I’m Rio</b>, here to help you understand <b>ESG & sustainability</b> and more generally have a <b>positive impact</b>. <br><br> How can I help you today?",q_e="H-2222625-YEUXJBUO9T7EYUK3",J_e=`https://storage.googleapis.com/landbot.pro/v3/${q_e}/index.json`,Y_e=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,H_e=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
`,K_e={Compliance:f.Icons.FactCheckOutlined,Domestic:f.Icons.HomeOutlined,Sustainability:f.Icons.LanguageOutlined,RioPlatform:f.CustomIcons.RioBot,Saudi:f.CustomIcons.SaudiVision,Bahrain:O_e},Q_e=()=>{const e=(0,m.g)(),n=or(),t=(0,m.Zp)(),a=Je(),{recentConsultations:i}=(()=>{const[e,n]=(0,g.useState)([]),[t,a]=(0,g.useState)(!0),[i,l]=(0,g.useState)(null);return(0,g.useEffect)(()=>{(async()=>{a(!0),l(null);const e=await(async()=>{const e=window?.localStorage.getItem("ACCESS_TOKEN");if(!e)throw new Error("Token is missing");const n=`${De("REACT_APP_CONSULTATIONS_URL")}/Consultation`,t=await fetch(n,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});if(!t.ok)throw new Error("Failed to fetch data");return await t.json()})();e?.consultations?n(e.consultations):l("Failed to fetch consultations"),a(!1)})()},[]),{recentConsultations:e,loading:t,error:i}})(),l=e?.id,r=td(l),[o,s]=(0,g.useState)({consultations:[],askRio:[]}),d=(0,g.useRef)(!1),[c,u]=(0,g.useState)(!1),y=!window.myLandbot||!e.id&&!c,h=(0,g.useCallback)(async()=>{const e=await EW().get(`https://chat-api.esg-r.io/api/Questions/lists/account/${a}`),n=(e=>{const n={};return e.forEach(e=>{for(const t of e.tags)n[t]||(n[t]=[]),n[t].push(e)}),n})(e.data).consultation||[],t=e.data.filter(e=>!e.tags.includes("consultation"));s({consultations:n.slice(0,5),askRio:t.slice(0,Math.max(10-n.length,0))})},[s,a]),x=(0,g.useMemo)(()=>localStorage.getItem("ID_TOKEN"),[]),T=(0,g.useCallback)(()=>{if(d.current)return;const n={jwt:x,accountId:a};let t=W_e;if(e.id){const a=i.find(n=>n.consultationID===e.id);if(!a)return;n.consultationtoken=a.consultationID,t="Searching for your consultation..."}(e=>{let{customData:n,welcomeMessage:t=W_e}=e;const a=document?.getElementsByTagName("iframe");window.myLandbot&&a&&a[0]?.contentDocument&&(a[0].contentDocument.documentElement.innerHTML=""),window.myLandbot=new window.Landbot.Container({container:"#myLandbot",configUrl:J_e,customData:{...n,welcome_message:n?.consultationtoken?"Hi, <b>I’m Rio</b>, here to help you understand <b>ESG & sustainability</b> and more generally have a <b>positive impact</b>.":t}}),window.myLandbot.onLoad(function(){n?.consultationtoken&&window.myLandbot.api.sendMessage({type:"text",message:t,custom_data:{...n},channel_token:q_e})})})({customData:n,welcomeMessage:t}),d.current=!0,window.myLandbot&&!e.id&&window.myLandbot.core.events.on("new_message",e=>{u(!!e?.author_type)})},[e.id,i,a,x]);(0,g.useEffect)(()=>{if(h(),d.current&&l!==r)return d.current=!1,void T();T()},[l,T,r,h]);const b=(0,g.useCallback)(e=>{window.myLandbot&&window.myLandbot.sendMessage({message:e,custom_data:{jwt:x,accountId:a}})},[x,a]),v=(0,g.useCallback)(()=>{(e.id||c)&&(d.current&&(d.current=!1),c&&!e.id&&(T(),u(!1)),t(`/${n.intelligence.root}`))},[c,T,t,e.id,n.intelligence.root]),C=(0,g.useCallback)(()=>{window.myLandbot&&window.myLandbot.sendMessage({message:"I want to analyse my data",custom_data:{jwt:x,accountId:a}}),t(`/${n.intelligence.root}`)},[x,a,t,n.intelligence.root]);return(0,fe.jsx)(f.Page,{title:{content:""},children:(0,fe.jsxs)(M_e,{children:[(0,fe.jsx)(P_e,{children:(0,fe.jsx)(F_e,{recentConsultations:i,disabledNewChatClick:y,handleNewChatClick:v,handleDataAnalysisClick:C})}),(0,fe.jsx)(V_e,{id:"myLandbot"}),!e.id&&(0,fe.jsxs)(P_e,{children:[!!o.consultations.length&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(H_e,{children:(0,fe.jsx)(Y_e,{typescale:"label",size:"medium",children:"Consultation Starters"})}),o.consultations.map(e=>(0,fe.jsx)(p.Link,{to:`/${n.intelligence.root}`,onClick:()=>b(e.content),children:(0,fe.jsxs)(B_e,{children:["Bahrain"===e.category?(0,fe.jsx)(G_e,{children:(0,fe.jsx)(z_e,{src:K_e[e.category],alt:e.id})}):K_e[e.category]&&(0,fe.jsx)(j_e,{hideShadowGradient:!0,icon:K_e[e.category],color:"",id:e.id}),(0,fe.jsx)(U_e,{children:(0,fe.jsx)($_e,{typescale:"body",size:"medium",children:e.content})})]})},e.id))]}),!!o.askRio.length&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(H_e,{children:(0,fe.jsx)(Y_e,{typescale:"label",size:"medium",children:"Ask Rio"})}),o.askRio.map(e=>(0,fe.jsx)(p.Link,{to:`/${n.intelligence.root}`,onClick:()=>b(e.content),children:(0,fe.jsxs)(B_e,{children:["Bahrain"===e.category?(0,fe.jsx)(G_e,{children:(0,fe.jsx)(z_e,{src:K_e[e.category],alt:e.id})}):K_e[e.category]&&(0,fe.jsx)(j_e,{hideShadowGradient:!0,icon:K_e[e.category],color:"",id:e.id}),(0,fe.jsx)(U_e,{children:(0,fe.jsx)($_e,{typescale:"body",size:"medium",children:e.content})})]})},e.id))]})]})]})})},Z_e=(0,f.styled)(f.Text)`
  margin-bottom: 32px;
`,X_e=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 16px;
`,eFe=(0,f.styled)("div")`
  display: flex;
  align-items: top;
  gap: 8px;
`,nFe=()=>(0,fe.jsxs)("div",{children:[(0,fe.jsx)(Z_e,{typescale:"title",size:"large",children:"Contact information"}),(0,fe.jsxs)(X_e,{children:[(0,fe.jsxs)(eFe,{children:[(0,fe.jsx)(f.Icons.HomeRounded,{}),(0,fe.jsxs)(f.Text,{typescale:"body",size:"medium",children:["Rio AI Ltd ",(0,fe.jsx)("br",{}),"1 Mark Square ",(0,fe.jsx)("br",{}),"London ",(0,fe.jsx)("br",{}),"EC2A 4EG ",(0,fe.jsx)("br",{}),"UK"]})]}),(0,fe.jsxs)(eFe,{children:[(0,fe.jsx)(f.Icons.EmailRounded,{}),(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:"support@rio.ai"})]})]})]});var tFe=t(32193);const aFe=(0,f.styled)("div")`
  width: 100%;
  max-width: 800px;
`,iFe=(0,f.styled)(f.Text)`
  margin-bottom: 32px;
`,lFe=(0,f.styled)("form")`
  width: 100%;
  display: flex;
  gap: 36px;
`,rFe=(0,f.styled)("div")`
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: 36px;
`,oFe={fullName:{value:"",error:""},companyName:{value:"",error:""},phoneNumber:{value:"",error:""},subject:{value:"",error:""},enquiry:{value:"",error:""}},sFe=()=>{const{showNotification:e}=tn(),[n,t]=(0,g.useState)(oFe),[a,{loading:i}]=(0,ln.n)(id(),{onCompleted:()=>{e("Your enquiry has been sent!","success"),t(oFe)},onError:()=>{e("Something went wrong. If the problem persists, contact support.","danger")}}),l=(0,g.useCallback)(e=>{e.preventDefault();const i={...n.fullName},l={...n.companyName},r={...n.phoneNumber},o={...n.subject},s={...n.enquiry};if(i.error=n.fullName.value?"":"Please enter your full name.",l.error=n.companyName.value?"":"Please enter a valid company name.",r.error=n.phoneNumber.value?(0,tFe.A)(n.phoneNumber.value)?"":"Only numbers are valid in this field.":"Please enter a valid phone number.",s.error=n.enquiry.value?n.enquiry.value.length>1e3?"You have exceeded the character limit.":"":"Please enter an enquiry.",o.error=n.subject.value?"":"Please choose an option.",t({fullName:i,companyName:l,phoneNumber:r,subject:o,enquiry:s}),!(i.error||l.error||r.error||s.error||o.error)){const e={name:Boe()(n.fullName.value),company:Boe()(n.companyName.value),email:(0,iu.A)(localStorage.getItem("ID_TOKEN")).email,phone:Boe()(n.phoneNumber.value),enquiry:Boe()(n.enquiry.value),topic:Boe()(n.subject.value)};a({variables:{replacements:JSON.stringify(e)}})}},[n,a]),r=(0,g.useCallback)(e=>{const{value:a,name:i}=e.target;t({...n,[i]:{value:a}})},[n]),o=(0,g.useCallback)((e,n)=>{const t={target:{name:n,value:e.value}};r(t)},[r]);return(0,fe.jsxs)(aFe,{children:[(0,fe.jsx)(iFe,{typescale:"title",size:"large",children:"Send us a message"}),(0,fe.jsxs)(lFe,{name:"email-form",onSubmit:l,children:[(0,fe.jsxs)(rFe,{children:[(0,fe.jsx)(f.TextField,{name:"fullName",onChange:r,value:n.fullName.value,helperText:n.fullName.error,error:Boolean(n.fullName.error),placeholder:"John Doe",label:"Full name"}),(0,fe.jsx)(f.TextField,{name:"companyName",onChange:r,value:n.companyName.value,helperText:n.companyName.error,error:Boolean(n.companyName.error),placeholder:"Rio AI Ltd",label:"Company name"}),(0,fe.jsx)(f.TextField,{name:"phoneNumber",onChange:r,value:n.phoneNumber.value,helperText:n.phoneNumber.error,error:Boolean(n.phoneNumber.error),placeholder:"07000000000",label:"Phone number"}),(0,fe.jsx)(f.Select,{name:"subject",options:[{value:"comply",label:"Comply"},{value:"data",label:"Data"},{value:"learn",label:"Engage"},{value:"other",label:"Other"},{value:"reporting",label:"Reporting"},{value:"upgrades",label:"Upgrades"}],onChange:e=>o(e,"subject"),value:n.subject.value,helperText:n.subject.error,error:Boolean(n.subject.error),placeholder:"Please choose",label:"What is your enquiry about?"})]}),(0,fe.jsxs)(rFe,{children:[(0,fe.jsx)(f.TextArea,{name:"enquiry",onChange:r,value:n.enquiry.value,helperText:n.enquiry.error,error:Boolean(n.enquiry.error),placeholder:"Please type your message here",label:"Enquiry",rows:9}),(0,fe.jsx)(f.Button,{type:"submit",variant:"contained",color:"primary",sx:{width:"100%"},loading:i,disabled:i,children:"Send enquiry"})]})]})]})},dFe=(0,le.default)("div")`
  display: flex;
  gap: 72px;
`,cFe=()=>(0,fe.jsx)(f.Page,{title:{content:"Contact Us",crumbs:[{label:"Contact"}]},children:(0,fe.jsxs)(dFe,{children:[(0,fe.jsx)(nFe,{}),(0,fe.jsx)(sFe,{})]})});function uFe(e){let{text:n,children:t}=e;return(0,fe.jsxs)(f.Drawer,{children:[(0,fe.jsx)(f.DrawerSummary,{children:(0,fe.jsx)(f.Text,{children:n})}),(0,fe.jsx)(f.DrawerDetails,{children:t})]})}function pFe(e){let{value:n,onChange:t,error:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(YH),o=r?.message||a;return(0,fe.jsx)(f.Select,{placeholder:"Actual/Estimated",value:n,options:$a(i?.getAllAccuracyTypes),isLoading:l,onChange:t,error:!!o,helperText:o||""})}function mFe(e){let{value:n,onChange:t,error:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(VH),o=r?.message||a;return(0,fe.jsx)(f.Select,{placeholder:"Please select type of transport",value:n,options:$a(i?.getAllTransportTypes),isLoading:l,onChange:t,error:!!o,helperText:o||""})}function fFe(e){let{value:n,onChange:t,error:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(zH),o=r?.message||a;return(0,fe.jsx)(f.Select,{placeholder:"Please select type of fuel",value:n,options:$a(i?.getAllFuelTypes),isLoading:l,onChange:t,error:!!o,helperText:o||""})}function yFe(e){let{value:n,onChange:t,error:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(uK),o=r?.message||a;return(0,fe.jsx)(f.Select,{placeholder:"Please select type of fuel",value:n,options:$a(i?.getAllTransportFuelTypes),isLoading:l,onChange:t,error:!!o,helperText:o||""})}function gFe(e){let{value:n,onChange:t,error:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(qH),o=r?.message||a;return(0,fe.jsx)(f.Select,{placeholder:"Please select a subtype",value:n,options:$a(i?.getAllTransportSubTypes),isLoading:l,onChange:t,error:!!o,helperText:o||""})}function hFe(e){let{value:n,onChange:t,error:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(mK),o=r?.message||a;return(0,fe.jsx)(f.Select,{placeholder:"Please select purpose of journey",value:n,options:$a(i?.getAllJourneyTargets),isLoading:l,onChange:t,error:!!o,helperText:o||""})}function xFe(e){let{value:n,onChange:t,accountId:a,error:i}=e;const{data:l,loading:r,error:o}=(0,x.IT)(sj,{variables:{accountId:a}}),s=o?.message||i;return(0,fe.jsx)(f.Select,{placeholder:"Please select material",value:n,options:$a(l?.getMaterialsByAccountID),isLoading:r,onChange:t,error:!!s,helperText:s||""})}function TFe(e){let{value:n,onChange:t,error:a}=e;const{data:i,loading:l,error:r}=(0,x.IT)(CK),o=r?.message||a;return(0,fe.jsx)(f.Select,{placeholder:"Please select origin of material",value:n,options:$a(i?.getAllMaterialOriginTypes),isLoading:l,onChange:t,error:!!o,helperText:o||""})}function bFe(e){let{transactionType:n,aliasType:t,onChange:a,value:i,accountId:l,possibleOptions:r=[]}=e;const o=e=>{let{value:n,label:t}=e;return a(n,t)},s=e=>{"string"!=typeof e&&a(e.value,e.label)},d="string"==typeof i?i:i?.value;switch(t){case gn.VT.Accuracy:return(0,fe.jsx)(pFe,{onChange:o,value:d});case gn.VT.Transport:return(0,fe.jsx)(mFe,{onChange:o,value:d});case gn.VT.Locationpoint:return(0,fe.jsx)(gN,{value:i,onChange:o,createNew:!0});case gn.VT.Wastein:return(0,fe.jsx)(xN,{onChange:o,value:i,createNew:!0,createNewAccessor:"wasteIn."});case gn.VT.Wasteout:return(0,fe.jsx)(hN,{onChange:o,value:i,createNew:!0,createNewAccessor:"wasteOut."});case gn.VT.Wastestream:return(0,fe.jsx)(L_,{onChange:o,value:d,createNew:!0});case gn.VT.Containertypesize:return(0,fe.jsx)(XH,{onChange:o,value:i});case gn.VT.Wastecontractor:return(0,fe.jsx)(Vj,{onChange:s,value:i,utility:gn.D_.Waste,supplierType:gn.d.Contractor});case gn.VT.Wastecarrier:return(0,fe.jsx)(Vj,{onChange:s,value:i,utility:gn.D_.Waste,supplierType:gn.d.Carrier});case gn.VT.Meter:return(0,fe.jsx)(cK,{type:n,onChange:o,value:i,label:"Select meter",accountId:l,createNew:!0});case gn.VT.Wastetreatmentprocess:return(0,fe.jsx)(vN,{onChange:o,value:d});case gn.VT.Fueltype:return(0,fe.jsx)(fFe,{onChange:o,value:d});case gn.VT.Transportfueltype:return(0,fe.jsx)(yFe,{onChange:o,value:d});case gn.VT.Transportsubtype:return(0,fe.jsx)(gFe,{onChange:o,value:d});case gn.VT.Journeytarget:return(0,fe.jsx)(hFe,{onChange:o,value:d});case gn.VT.Unit:return(0,fe.jsx)(hK,{onChange:o,value:d,possibleOptions:r});case gn.VT.Currency:return(0,fe.jsx)(bK,{onChange:o,value:d});case gn.VT.Tariff:return(0,fe.jsx)(AK,{onChange:o,value:d,accountId:l});case gn.VT.Material:return(0,fe.jsx)(xFe,{onChange:o,value:d,accountId:l});case gn.VT.Materialorigin:return(0,fe.jsx)(TFe,{onChange:o,value:d});case gn.VT.Counterparty:return(0,fe.jsx)(Vj,{onChange:s,value:i,utility:n});default:return null}}const vFe=(0,f.styled)(f.Text)`
  margin: auto;
  padding: 24px;
`,CFe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid ${e=>e.theme.ref.palette.neutral[70]};
  gap: 16px;
`,kFe=(0,f.styled)(f.Text)`
  flex: 1;
`,SFe=(0,f.styled)("div")`
  flex: 2;
`,NFe=e=>{let{transactionType:n,aliasType:t,unknownString:a,value:i,onChange:l,accountId:r,possibleOptions:o}=e;return(0,fe.jsxs)(CFe,{children:[i?(0,fe.jsx)(f.Icons.CheckCircle,{sx:{color:"success.main"}}):(0,fe.jsx)(f.Icons.Cancel,{sx:{color:"error.main"}}),(0,fe.jsx)(kFe,{children:a}),(0,fe.jsx)(SFe,{children:(0,fe.jsx)(bFe,{transactionType:n,aliasType:t,value:i,accountId:r,onChange:l,possibleOptions:o})})]})},AFe=e=>{let{accountId:n,aliases:t,setAliases:a,transactionType:i,valuesToAlias:l}=e;return(0,fe.jsxs)(g.Fragment,{children:[(0,fe.jsxs)(vFe,{weight:"bold",children:[l.length," aliasable items to match"]}),xn()(l).groupBy(e=>e.error.fieldName).map((e,l)=>{const r=BK(l,i),o=t.filter(e=>e.aliasType===r);return(0,fe.jsx)(uFe,{text:`${l} (${o.length} of ${e.length} matched)`,children:e.map(e=>{const t=o.find(n=>n.aliasType===e.aliasType&&n.name===e.error.value),r=t?{value:t.parentId,label:t.parentName}:null;return(0,fe.jsx)(NFe,{transactionType:i,aliasType:e.aliasType,unknownString:e.error.value,value:r,accountId:n,possibleOptions:e?.error?.possibleAliases,onChange:(t,l)=>{const r=(0,Wa.A)();a(a=>[...a.filter(n=>n.aliasType!==e.aliasType||n.name!==e.error.value),{id:r,accountId:n,parentId:t,parentName:l,name:e.error.value||"",aliasType:e.aliasType,energyType:i}])}},[l,e.error.value].join("-"))})},l)}).value()]})},RFe=(0,f.styled)(f.Button)`
  flex: 0 0 auto;
  margin-left: 16px;
`,DFe=(0,f.styled)("div")`
  background: white;
  display: flex;
  flex-direction: column;
  height: auto;
`,LFe=(0,f.styled)("div")`
  padding: 24px;
  border-bottom: 1px solid ${e=>e.theme.ref.palette.neutral[70]};
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
`,IFe=(0,f.styled)("div")`
  flex: 0 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
`,jFe=(0,f.styled)(f.Text)`
  margin: auto;
  padding: 24px;
`,wFe=()=>{const[e,n]=(0,g.useState)([]),{subject:t,id:a}=(0,m.g)(),i=Je(),l=(0,m.Zp)(),[r,o]=(0,g.useState)(!1),[{batch:s,valuesToAlias:d},{loading:c,error:u,refetch:p}]=MK(i,a,t?.toUpperCase()),y=(0,g.useMemo)(()=>`${i}-${a}-${t?.toUpperCase()}`,[i,a,t]),{clearStorageItem:h}=an(y,e,n),[x,{loading:T}]=(0,ln.n)(SO),{showNotification:b}=tn(),v=async()=>{await x({variables:{id:a}}),l(`/v2/data/${t}/uploads`),h()},[C,{loading:k}]=(0,ln.n)(kO,{onCompleted:v,onError:e=>{b(e.message,"danger")}}),S=()=>{l(`/v2/data/${t}/uploads`)},N=PH()(t),A=d.length>0&&e.length<d.length||k||T,R=t?.toUpperCase(),D=d.length?"Confirm Aliases":"Re-Submit Batch",L=d.length?"Are you sure these aliases are correct?":"";return(0,fe.jsxs)(f.Page,{loading:c,title:{content:`${N} Upload Aliases`,crumbs:[{label:"Data",to:"/v2/data"},{label:N,to:`/v2/data/${t}`},{label:"Uploads",to:`/v2/data/${t}/uploads`},{label:"Aliases"}],actionButton:(0,fe.jsx)(f.Button,{onClick:S,children:"Back to Uploads"})},children:[(0,fe.jsx)(GS,{open:r,title:D,body:L,confirmButtonText:"Confirm",closeButtonText:"Cancel",onConfirm:async()=>{e.length?await C({variables:{input:e.map(e=>UH()(e,"parentName"))}}):await v()},onClose:()=>o(!1),withFullWidthButtons:!0}),(0,fe.jsxs)(DFe,{children:[(0,fe.jsx)(LFe,{children:(0,fe.jsx)(f.Text,{children:"To help keep your data consistent we need to match some unrecognized entries to existing types. Please review each item and either match it to an existing type, or create a new type."})}),u&&(0,fe.jsx)($c,{error:u,retry:p}),s&&!c&&!u&&!!d.length&&(0,fe.jsx)(AFe,{accountId:i,aliases:e,transactionType:R,setAliases:n,valuesToAlias:d}),s&&!c&&!u&&!d.length&&(0,fe.jsx)(jFe,{weight:"bold",children:"All items have been aliased"}),(0,fe.jsxs)(IFe,{children:[(0,fe.jsx)(RFe,{onClick:S,children:"Cancel"}),(0,fe.jsx)(RFe,{disabled:A,onClick:()=>o(!0),children:"Confirm"})]})]})]})};var OFe=t(8717);const EFe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
`,_Fe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: ${e=>e.theme.sys.color.primaryContainer};
  margin-bottom: 24px;
`,FFe=(0,f.styled)(f.Icons.Check)`
  width: 40px;
  color: ${e=>e.theme.sys.color.primary};
`,PFe=(0,f.styled)(f.Text)`
  margin-bottom: 12px;
  text-align: center;
`,BFe=(0,f.styled)(f.Text)`
  text-align: center;
`,UFe=()=>(0,fe.jsxs)(EFe,{children:[(0,fe.jsx)(_Fe,{children:(0,fe.jsx)(FFe,{fontSize:"large"})}),(0,fe.jsx)(PFe,{typescale:"title",size:"large",children:"Nothing to display..."}),(0,fe.jsx)(BFe,{typescale:"body",size:"large",children:"If any validation or anomalies are found they will be displayed here"})]}),$Fe=(0,f.styled)("div")`
  margin-top: 32px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
`,MFe={[gn.Ui.OnsiteWork]:"Onsite project work",[gn.Ui.Headcount]:"Changes in occupancy rates (headcount)",[gn.Ui.Floorspace]:"Changes in floorspace",[gn.Ui.WaterLeak]:"Water leak",[gn.Ui.OtherOperational]:"Other operational root cause",[gn.Ui.BelowThreshold]:"Below threshold, not investigated",[gn.Ui.SupplierDataIssue]:"Supplier data issue",[gn.Ui.NoActionRequired]:"Within range of expected seasonality, no action required",[gn.Ui.PendingSupplierResponse]:"Pending supplier response",[gn.Ui.Other]:"Other"},VFe=Object.entries(MFe).map(e=>{let[n,t]=e;return{value:n,label:t}}),GFe=e=>{let{toBeIgnoredDataAnomalies:n,onClose:t,onConfirm:a,isAcceptFiltered:i,displayedRowCount:l}=e;const r=(0,g.useMemo)(()=>n.some(e=>Boolean(e.percentDiff))||i,[n,i]),o=(0,dc.A)(),[s,d]=(0,g.useState)({varianceReason:""}),[c,u]=(0,g.useState)(""),[p,m]=(0,g.useState)(""),y=(0,g.useCallback)(()=>r?c?(a(c||null,p||null),void t()):void d({varianceReason:"Required"}):r?void 0:(a(),void t()),[r,c,p,t,a]),h=(0,g.useMemo)(()=>i?`You're about to accept and clear filtered variances and anomalies. \nThis action will accept ${l} filtered anomalies.`:r?"You're about to accept and clear variances and anomalies":r?void 0:o.formatMessage({id:"pages.data.overview.confirmationDialog.title"}),[l,r,o,i]);return(0,fe.jsxs)(f.Modal,{open:!0,onClose:t,title:h,titleMaxWidth:500,children:[r&&(0,fe.jsxs)(f.Grid,{container:!0,columns:12,rowGap:4,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Select,{label:"Variance reason",value:c,error:Boolean(s.varianceReason),helperText:s.varianceReason,options:VFe,onChange:e=>{let{value:n}=e;u(n),d({varianceReason:""})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextArea,{label:"Notes (optional)",value:p,onChange:e=>m(e.target.value)})})]}),(0,fe.jsxs)($Fe,{children:[(0,fe.jsx)(f.Button,{onClick:t,variant:"outlined",color:"primary",children:o.formatMessage({id:"pages.data.overview.confirmationDialog.disagree"})}),(0,fe.jsx)(f.Button,{onClick:y,variant:"contained",color:"primary",children:o.formatMessage({id:"pages.data.overview.confirmationDialog.agree"})})]})]})},zFe=(0,f.styled)("div")`
  width: 100%;
  height: 100%;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  border-radius: 16px;
  padding: 16px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
`,WFe=e=>{let{data:n}=e;const[t,a]=(0,g.useState)(!0),i=(0,g.useRef)(null);(0,g.useLayoutEffect)(()=>{setTimeout(()=>{a(!1)},100)},[]);const l=(0,g.useMemo)(()=>n?.varianceTimeseries?.data?.map(e=>({...e,time:bn()(e.time,"YYYY/M").format("YYYY/MM/DD")}))||[],[n]),r=(0,g.useMemo)(()=>{const e=n?.__typename;switch(e){case"GasDataAnomaly":case"ElectricityDataAnomaly":case"HeatAndSteamDataAnomaly":return{title:`Meter (${n?.meterName}) consumption - historic data`,yAxisTitle:"Quantity Sum (kWh)"};default:return}},[n]);return n?.varianceTimeseries?n?.varianceTimeseries?.error?(0,fe.jsx)(zFe,{children:(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",textAlign:"center",children:n.varianceTimeseries.error})}):(0,fe.jsx)(zFe,{children:!t&&(0,fe.jsx)(f.LineChart,{size:f.ChartSize.Md,unit:"kWh",border:!1,data:l,disableLegend:!0,title:r?.title,yAxisTitle:r?.yAxisTitle,ref:i})}):null},qFe=e=>{let{data:n}=e;return n.user?`${n.user.first_name} ${n.user.last_name}`:"Automated"},JFe=e=>{let{data:n}=e;return`${n.locationName?n.locationName:""}`},YFe=e=>{let{data:n}=e;return`${n.meterName?n.meterName:""}`},HFe=e=>{let{data:n}=e;return n.uploadedIn.fileName},KFe=e=>{let{data:n}=e;return MFe[n.varianceReason]},QFe={values:[null,...Object.keys(MFe)],valueFormatter:e=>MFe[e.value]||e.value},ZFe=(0,f.styled)("div")`
  min-height: 480px;
`,XFe=(0,f.styled)(f.AgGrid)`
  flex: 1;
  height: 480px;
  .endDateHead,
  .endDateCell {
    padding-left: 0;
  }

  .ag-tooltip-custom {
    background-color: transparent;
    box-shadow: none;
    border: none;
    width: 700px;
    height: 432px;
  }
`,ePe=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin-bottom: 16px;
  gap: 16px;
`,nPe=(0,f.styled)(f.Button)`
  width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
`;function tPe(){const e=Je(),n=(0,dc.A)(),[t]=x3(),a=(()=>{const e=Je(),{showNotification:n}=tn(),t=(0,dc.A)(),[a]=b3(),i=(0,g.useCallback)(e=>t.formatMessage({id:`pages.dataAnomalies.transactionTypes.${e}`}),[t]),l=(0,g.useCallback)(e=>{let{data:n}=e;return i(n.__typename)},[i]),r=(0,g.useCallback)(async t=>{try{const{field:n}=t.colDef;if(!n)throw new Error("Unfilterable column");if("ignored"===n)return void t.success(["0","1"]);const l=t.api.getFilterModel(),r=await a({variables:{accountId:e,field:n,filters:jn(l)}}),o=r.data?.getDataAnomaliesFilter||[];t.success(o.map(e=>"transactionType"===n?i(e):e))}catch(e){if(e instanceof Error&&"Virtual list has not been created."===e.message)return;n(`Couldn't load filter values for column ${t.colDef.field}: ${e}`,"danger")}},[a,e,n,i]),o=(0,g.useMemo)(()=>({values:r,cache:!1}),[r]),s=(0,g.useMemo)(()=>({...o,valueFormatter:Bn}),[o]);return(0,g.useMemo)(()=>[{headerName:"Utility",valueGetter:l,field:"transactionType",filterParams:o,filter:"agSetColumnFilter",checkboxSelection:!0,sortable:!0,maxWidth:200},{headerName:"Start date",field:"startDate",maxWidth:150,valueFormatter:Fn,filter:"agDateColumnFilter",sortable:!0},{headerName:"End date",field:"endDate",maxWidth:150,valueFormatter:Fn,filter:"agDateColumnFilter",sortable:!0,headerClass:"endDateHead",cellClass:["endDateCell"]},{hide:!0,headerName:"Detected time",field:"detectedAt",valueFormatter:Pn,initialSort:"desc",filter:"agDateColumnFilter",sortable:!0},{headerName:"Location",field:"locationName",valueGetter:JFe,filter:"agSetColumnFilter",filterParams:o,sortable:!0},{headerName:"Meter",field:"meterName",valueGetter:YFe,filter:"agSetColumnFilter",filterParams:o,sortable:!0},{headerName:"Chart",field:"varianceTimeseries",filter:!1,filterParams:o,sortable:!1,maxWidth:120,tooltipField:"reason",cellRenderer:cA,tooltipComponent:WFe},{headerName:"Reason",field:"reason",minWidth:400,filter:"agTextColumnFilter",sortable:!0,tooltipField:"reason",tooltipComponent:WFe},{headerName:"% Variance",field:"percentDiff",filterParams:o,filter:"agNumberColumnFilter",sortable:!0},{headerName:"Variance Reason",field:"varianceReason",valueGetter:KFe,minWidth:400,filter:"agSetColumnFilter",filterParams:QFe,sortable:!0},{headerName:"Notes",field:"notes",minWidth:400,filter:"agTextColumnFilter",cellEditor:"agTextCellEditor",sortable:!0,editable:!0},{hide:!0,headerName:"Uploader",field:"user",valueGetter:qFe,filterParams:o,filter:"agSetColumnFilter",sortable:!0},{hide:!0,headerName:"Filename",field:"uploadedIn",valueGetter:HFe,filterParams:o,filter:"agSetColumnFilter",sortable:!0},{headerName:"Accepted",field:"ignored",valueFormatter:En,filterParams:s,filter:"agSetColumnFilter",sortable:!0}],[o,l,s])})(),i=(0,g.useRef)(null),[l,r]=(0,g.useState)(!1),[o,s]=(0,g.useState)(null),[d,c]=(0,g.useState)(!1),[u,p]=(0,g.useState)([]),[m,y]=(0,g.useState)(!1),[h,x]=(0,g.useState)(!1),T=lr(),b=(0,g.useRef)(),[v]=T3(),[C]=function(){const{showNotification:e}=tn();return(0,ln.n)(g3,{refetchQueries:["GetDataAnomaliesByAccountId","GetDataAnomaliesByAccountIdCount"],onCompleted:()=>{e("Those anomalies have been accepted, they will now appear under accepted variances","success")},onError:n=>{e(`Anomalies haven't been accepted due to this error: ${n}`,"danger")}})}(),k=(0,g.useCallback)(e=>{if(!i.current?.gridApi)return;const n=i.current.gridApi.getSelectedRows();c(!0),p(n),x(e||!1)},[]),S=(0,g.useCallback)(()=>{c(!1),p([]),x(!1)},[]),N=(0,g.useMemo)(()=>({ignored:{values:["0"],filterType:"set"}}),[]),A=(0,g.useCallback)(e=>{e.api.setFilterModel(N)},[N]),R=(0,g.useCallback)(()=>{i.current?.gridApi&&i.current.gridApi.setFilterModel(N)},[N]),D=(0,g.useMemo)(()=>({getRows:async n=>{let{request:a,success:i,fail:l}=n;b.current?.remove();const o=wn(a.sortModel),d=jn(a.filterModel);try{const{data:n,error:l}=await t({variables:{accountId:e,sort:o,filters:d,limit:20,offset:a.startRow||0},fetchPolicy:"network-only"});if(l)throw l;if(!n)throw new Error("Error at getDataAnomalies");if(!n.getDataAnomaliesByAccountId.rows.length&&!Object.keys(a.filterModel||{}).length)return r(!0);i({rowData:n.getDataAnomaliesByAccountId.rows,rowCount:n.getDataAnomaliesByAccountId.totalRows})}catch(e){s(e),l()}}}),[t,e]),L=!!i.current?.gridApi&&!(0,hn.isEqual)(i.current.gridApi.getFilterModel(),N),I=(0,g.useCallback)(()=>{i.current?.gridApi&&(i.current?.gridApi.refreshServerSide(),i.current?.gridApi.deselectAll(),y(!1),x(!1))},[N]),j=e=>{if(i.current?.gridApi){const n=20*i.current.gridApi.paginationGetCurrentPage(),t=n+20-1,a=[];for(let e=n;e<=t;e++){const n=i.current.gridApi.getDisplayedRowAtIndex(e);n&&a.push(n)}if(e)return i.current.gridApi.deselectAll(),void y(!1);a.forEach(e=>{e.isSelected()||e.setSelected(!0)})}},w=(0,g.useMemo)(()=>T.dataTrackerAnomalies.some(e=>e.startsWith("ignoreDataAnomalies")),[T]),O={tooltipInteraction:!0,tooltipShowDelay:700,suppressRowClickSelection:!0,pagination:!0,paginationPageSize:20,cacheBlockSize:20,paginationPageSizeSelector:!1,rowModelType:"serverSide",serverSideDatasource:D,rowSelection:"multiple",onGridReady:A,getRowId:Gn("id"),noRowsOverlayComponent:UFe,columnDefs:a,onSelectionChanged:()=>{if(!i.current?.gridApi)return;const e=i.current.gridApi.getSelectedRows();y(!!e?.length)},onTooltipShow(e){b.current=e?.tooltipGui},onTooltipHide(){b.current=void 0}};return o?(0,fe.jsx)(f.LoadFailed,{title:"Something went wrong",error:o}):l?(0,fe.jsx)(UFe,{}):(0,fe.jsxs)("div",{children:[(0,fe.jsxs)(ePe,{children:[(0,fe.jsx)(jS,{filtersApplied:L,resetGridState:R}),w&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(nPe,{color:"primary",variant:"outlined",onClick:()=>j(),disabled:!i.current,title:n.formatMessage({id:"pages.data.overview.selectAll"}),children:(0,fe.jsx)(de.A,{id:"pages.data.overview.selectAllButtonText"})}),m&&(0,fe.jsx)(nPe,{color:"primary",variant:"outlined",onClick:()=>j(!0),disabled:!i.current,title:n.formatMessage({id:"pages.data.overview.deselectAll"}),children:(0,fe.jsx)(de.A,{id:"pages.data.overview.deselectAllButtonText"})}),(0,fe.jsx)(nPe,{color:"primary",variant:"contained",onClick:()=>k(!1),title:n.formatMessage({id:"pages.data.overview.acceptInfo"}),children:(0,fe.jsx)(de.A,{id:"pages.data.overview.accept"})}),(0,fe.jsx)(nPe,{color:"primary",onClick:()=>k(!0),title:n.formatMessage({id:"pages.data.overview.acceptInfo"}),disabled:!L,children:(0,fe.jsx)(de.A,{id:"pages.data.overview.acceptFiltered"})})]})]}),d&&(0,fe.jsx)(GFe,{onClose:S,onConfirm:(n,t)=>{if(!i.current?.gridApi)return;const a=i.current.gridApi.getSelectedRows();if(h){if(!i.current?.gridApi)return;const a=jn(i.current.gridApi.getFilterModel());C({variables:{varianceReason:n,notes:t,accountId:e,filters:a},onCompleted:I})}else v({variables:{anomalyIds:a.map(e=>e.id),varianceReason:n,notes:t},onCompleted:I})},toBeIgnoredDataAnomalies:u,isAcceptFiltered:h,displayedRowCount:i.current?.gridApi?.getDisplayedRowCount()||0}),(0,fe.jsx)(ZFe,{children:(0,fe.jsx)(XFe,{ref:i,gridKey:"dataAnomaliesGridV2",gridOptions:O})})]})}const aPe=(0,f.styled)(f.Drawer)`
  .DrawerSummaryClass {
    border-radius: 14px;

    &:hover {
      background-color: ${e=>{let{theme:n}=e;return n.sys.color.secondaryContainer}};
    }
  }
`,iPe=(0,f.styled)("div")`
  font-size: ${e=>{let{theme:n}=e;return n.sys.typescale.body.medium.size}};

  &:before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 7.5px;
    background-color: ${e=>{let{theme:n,color:t}=e;return Ig()(n,t)}};
    margin-right: 10px;
    position: relative;
    top: 1px;
    flex-shrink: 0;
  }
`,lPe=()=>(0,fe.jsxs)(aPe,{children:[(0,fe.jsx)(f.DrawerSummary,{className:"DrawerSummaryClass",expandIcon:(0,fe.jsx)(f.Icons.ExpandMore,{}),"aria-controls":"panel1a-content",children:(0,fe.jsx)(iPe,{color:"customColors.warning.color",children:"Anomalies found in your data"})}),(0,fe.jsx)(f.DrawerDetails,{children:(0,fe.jsx)(tPe,{})})]}),rPe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
`,oPe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: ${e=>e.theme.sys.color.primaryContainer};
  margin-bottom: 24px;
`,sPe=(0,f.styled)(f.Icons.Check)`
  width: 40px;
  color: ${e=>e.theme.sys.color.primary};
`,dPe=(0,f.styled)(f.Text)`
  margin-bottom: 12px;
  text-align: center;
`,cPe=(0,f.styled)(f.Text)`
  text-align: center;
`,uPe=()=>(0,fe.jsxs)(rPe,{children:[(0,fe.jsx)(oPe,{children:(0,fe.jsx)(sPe,{fontSize:"large"})}),(0,fe.jsx)(dPe,{typescale:"title",size:"large",children:"Nothing to display..."}),(0,fe.jsx)(cPe,{typescale:"body",size:"large",children:"If any missing pieces of data are found they will be displayed here"})]}),pPe=(0,f.styled)("div")`
  min-height: 480px;
`,mPe=(0,f.styled)(f.AgGrid)`
  flex: 1;
  height: 480px;
`,fPe=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin-bottom: 16px;
  gap: 16px;
`,yPe=(0,f.styled)(f.Button)`
  width: 130px;
`;function gPe(){const e=(0,dc.A)(),n=(0,g.useRef)(null),t=Je(),a=(0,C.m)(),{showNotification:i}=tn(),l=lr(),[r,o]=(0,g.useState)(!1),s=(0,g.useCallback)(()=>o(!0),[]),[d,c]=(0,g.useState)(null),[u,p]=(0,g.useState)(!1),[m,f]=(0,g.useState)(!1),[y]=(0,ln.n)(mn),[h]=(0,Ul._)(pn,{fetchPolicy:"network-only"}),x=(0,g.useCallback)(async e=>{const{data:{getDataTrackerValidationResults:{rows:n,totalRows:a}}}=await h({variables:{...e,accountId:t,isIgnored:!1}});return{rows:n,totalRows:a}},[t]),T=(0,g.useCallback)(async e=>{try{const{data:{getDataTrackerValidationFilters:n}}=await a.query({query:z3,variables:{accountId:t,field:e.colDef.colId||e.colDef.field}});e.success(n.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){i(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning"),E.Cp(n)}},[t,a,i]),b=(0,g.useMemo)(()=>({getRows:async e=>{let{request:n,success:t,fail:a}=e;try{const{startRow:e,sortModel:a,filterModel:i}=n,l=jn(i),{rows:r,totalRows:o}=await x({offset:e||0,limit:20,sort:wn(a),filters:l});if(t({rowData:r,rowCount:o}),0===o&&(0,hn.isEmpty)(l))return s()}catch(e){a(),E.Cp(e)}}}),[x,s]),v=()=>{if(!n.current?.gridApi)return;const e=n.current.gridApi.getSelectedRows();p(!!e.length)},k=(0,g.useCallback)(e=>{c(e.node)},[]),S=e=>{if(!n.current?.gridApi)return;const t=20*n.current.gridApi.paginationGetCurrentPage(),a=t+20-1,i=[];for(let e=t;e<=a;e++){const t=n.current.gridApi.getDisplayedRowAtIndex(e);t&&i.push(t)}if(e)return n.current.gridApi.deselectAll(),void p(!1);i.forEach(e=>{e.isSelected()||e.setSelected(!0)})},N=(0,g.useCallback)(async e=>{if(null===d)return;const n=e.newValue||null;if(n!==e.oldValue)try{d.updateData({...d.data,note:e.newValue}),await y({variables:{input:[{id:e.data.id,accountId:t,note:n}]}}),d.setSelected(!1),i("The data tracker result note has been successfully updated!")}catch(n){d.updateData({...d.data,note:e.oldValue}),i("Something went wrong. The data tracker result note wasn't updated.","danger")}},[t,y,i,d]),A=(0,g.useMemo)(()=>l.dataTracker.find(e=>e.startsWith("updateDataTrackerValidationResults")),[l]),R=(0,g.useMemo)(()=>({onCellEditingStopped:N,onCellEditingStarted:k,onSelectionChanged:v,suppressRowClickSelection:!0,pagination:!0,paginationPageSize:20,cacheBlockSize:20,paginationPageSizeSelector:!1,rowSelection:"multiple",rowModelType:"serverSide",serverSideDatasource:b,defaultColDef:{sortable:!0,filter:!0,cellStyle:{paddingTop:"5px",paddingBottom:"5px",height:"auto",wordBreak:"break-word",lineHeight:"20px"}},columnDefs:[{headerName:"Utility",headerTooltip:"Resource for which data is expected",checkboxSelection:!0,filterParams:{values:T,valueFormatter:On},field:"utility",minWidth:150,valueFormatter:e=>{let{value:n}=e;return(0,hn.capitalize)(n)}},{headerName:"Supplier",headerTooltip:"Upload supplier",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},field:"supplierName",minWidth:200},{headerName:"Start Date",headerTooltip:"Start date of the expected time frame",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},field:"startDate",minWidth:200},{headerName:"End Date",headerTooltip:"End date of the expected time frame",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return Sn(n)},field:"endDate",minWidth:200},{headerName:"Location",filterParams:{values:T,valueFormatter:On},field:"locations",minWidth:200},{headerName:"Meter",filterParams:{values:T,valueFormatter:On},field:"meters",minWidth:200},{headerName:"Reason",headerTooltip:"Notification reason",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},field:"reason",minWidth:300},{headerName:"Notes",headerTooltip:"Notification notes can be left here",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},field:"note",editable:!0,cellEditor:"agTextCellEditor",valueGetter:e=>{let{data:{note:n}}=e;return n},valueSetter:e=>e.newValue!==e.oldValue,minWidth:200}],rowStyle:{width:"100%",display:"flex",alignItems:"center"}}),[N,k,b]);return r?(0,fe.jsx)(uPe,{}):(0,fe.jsxs)("div",{children:[(0,fe.jsxs)(fPe,{children:[(0,fe.jsx)(jS,{filtersApplied:n.current?.filtersApplied,resetGridState:n.current?.resetGridState}),!!A&&(0,fe.jsx)(yPe,{variant:"outlined",onClick:()=>S(),title:e.formatMessage({id:"pages.data.overview.selectAll"}),children:e.formatMessage({id:"pages.data.overview.selectAllButtonText"})}),u&&(0,fe.jsx)(yPe,{variant:"outlined",onClick:()=>S(!0),title:e.formatMessage({id:"pages.data.overview.deselectAll"}),children:e.formatMessage({id:"pages.data.overview.deselectAllButtonText"})}),!!A&&(0,fe.jsx)(yPe,{variant:"contained",onClick:()=>{if(!n.current?.gridApi)return;const e=n.current.gridApi.getSelectedRows();0!==e?.length&&f(!0)},title:e.formatMessage({id:"pages.data.overview.acceptInfo"}),children:e.formatMessage({id:"pages.data.overview.accept"})})]}),(0,fe.jsx)(GS,{open:m,title:e.formatMessage({id:"pages.data.overview.confirmationDialog.title"}),confirmButtonText:e.formatMessage({id:"pages.data.overview.confirmationDialog.agree"}),closeButtonText:e.formatMessage({id:"pages.data.overview.confirmationDialog.disagree"}),onConfirm:async()=>{if(!n.current?.gridApi)return;const e=n.current.gridApi.getSelectedRows();if(e?.length)try{await y({variables:{input:e?.map(e=>{let{id:n}=e;return{id:n.toString(),accountId:t,isIgnored:!0}})}}),i("The data tracker result(-s) has been successfully updated!"),n.current?.gridApi&&(n.current.gridApi.refreshServerSide(),n.current.gridApi.deselectAll(),p(!1))}catch(e){i("Something went wrong. The data tracker result(-s) wasn't updated.","danger")}},onClose:()=>f(!1)}),(0,fe.jsx)(pPe,{children:(0,fe.jsx)(mPe,{ref:n,gridKey:"missingDataGridV2",gridOptions:R})})]})}const hPe=(0,f.styled)(f.Drawer)`
  .DrawerSummaryClass {
    border-radius: 14px;

    &:hover {
      background-color: ${e=>{let{theme:n}=e;return n.sys.color.secondaryContainer}};
    }
  }
`,xPe=(0,f.styled)("div")`
  font-size: ${e=>{let{theme:n}=e;return n.sys.typescale.body.medium.size}};

  &:before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 7.5px;
    background-color: ${e=>{let{theme:n,color:t}=e;return(0,hn.get)(n,t)}};
    margin-right: 10px;
    position: relative;
    top: 1px;
    flex-shrink: 0;
  }
`,TPe=()=>(0,fe.jsxs)(hPe,{children:[(0,fe.jsx)(f.DrawerSummary,{className:"DrawerSummaryClass",expandIcon:(0,fe.jsx)(f.Icons.ExpandMore,{}),"aria-controls":"panel1a-content",children:(0,fe.jsx)(xPe,{color:"sys.color.error",children:(0,fe.jsx)(de.A,{id:"pages.data.overview.missingTransactions"})})}),(0,fe.jsx)(f.DrawerDetails,{children:(0,fe.jsx)(gPe,{})})]}),bPe=(0,f.styled)("div")`
  padding: 44px 0;
  margin-bottom: 4px;
  height: fit-content;
  width: 100%;
  font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
`,vPe=(0,f.styled)("div")`
  margin-right: 10px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;

  svg {
    width: 24px;
    height: 24px;

    path {
      fill: ${e=>e.theme.palette.grey[600]};
    }
  }
`,CPe=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onBackground}};
`,kPe=(0,f.styled)("div")`
  margin: 10px;
`,SPe=(0,f.styled)("div")`
  margin-left: 16px;
`,NPe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 20px;
`,APe=(0,f.styled)(f.Text)`
  margin: 5px;
`,RPe=(0,f.styled)(f.Text)`
  margin: 4px 0;
`,DPe=()=>{const[e,n]=(0,g.useState)(null),t=(0,g.useCallback)(e=>{n(e.currentTarget)},[]),a=(0,g.useCallback)(()=>{n(null)},[]),i=Boolean(e),l=i?"simple-popover":void 0;return(0,fe.jsxs)(bPe,{children:[(0,fe.jsxs)(RBe,{typescale:"body",size:"medium",children:[(0,fe.jsxs)(CPe,{children:[(0,fe.jsx)(f.Text,{typescale:"body",size:"large",children:(0,fe.jsx)(de.A,{id:"pages.data.overview.dataNotifications"})}),(0,fe.jsx)(U5,{"aria-describedby":l,onClick:t,children:(0,fe.jsx)(vPe,{children:(0,fe.jsx)(f.Icons.InfoOutlined,{})})})]}),(0,fe.jsx)(fi.Ay,{id:l,open:i,anchorEl:e,sx:{width:"90%"},onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:(0,fe.jsxs)(kPe,{children:[(0,fe.jsx)(APe,{typescale:"body",size:"small",children:"The Rio platform automatically scans your data upon upload for any transactions which vary significantly from historic data. Rio also identifies gaps, flagging missing data from your suppliers, locations, and meters."}),(0,fe.jsx)("br",{}),(0,fe.jsx)(f.Text,{typescale:"label",size:"medium",fontStyle:"bold",children:"Missing data and empty transactions:"}),(0,fe.jsx)(APe,{typescale:"body",size:"small",children:"• Identifies missing data, or rows of data based on:"}),(0,fe.jsxs)(SPe,{children:[(0,fe.jsx)(RPe,{typescale:"body",size:"small",children:"○ Supplier"}),(0,fe.jsx)(RPe,{typescale:"body",size:"small",children:"○ Locations"}),(0,fe.jsx)(RPe,{typescale:"body",size:"small",children:"○ Meters"})]}),(0,fe.jsxs)(f.Text,{typescale:"body",size:"small",style:{marginBottom:16},children:["For more information on configuring your data tracker see"," ",(0,fe.jsx)(OFe.A,{target:"_blank",href:"https://support.rio.ai/knowledge/data-tracker-automated-upload-gap-analysis-in-rio",children:"support page"})]}),(0,fe.jsx)(f.Text,{typescale:"label",size:"medium",fontStyle:"bold",children:"Anomalies found in your data:"}),(0,fe.jsx)(APe,{typescale:"body",size:"small",children:"• Identifies locations with data uploaded outside of the period a location is active in reporting (based on open/closed dates indicated in configuration)."}),(0,fe.jsx)(SPe,{children:(0,fe.jsx)(RPe,{typescale:"body",size:"small",fontStyle:"italic",children:"○ Example: Site A closed in December 2023, but Rio has detected data uploaded in January 2024"})}),(0,fe.jsx)(APe,{typescale:"body",size:"small",children:"• Identifies meters with zero readings provided"}),(0,fe.jsx)(SPe,{children:(0,fe.jsx)(RPe,{typescale:"body",size:"small",fontStyle:"italic",children:"○ Example: A reading of 0 kWh was uploaded to Meter A in January 2024"})}),(0,fe.jsx)(APe,{typescale:"body",size:"small",children:"• Identifies significant increases or decreases in data compared to historic utility profiles, based on configured thresholds"}),(0,fe.jsx)(SPe,{children:(0,fe.jsx)(RPe,{typescale:"body",size:"small",fontStyle:"italic",children:"○ Example: Your December 2023 electricity consumption for Meter A is 65% higher than November 2023’s reading"})}),(0,fe.jsxs)(f.Text,{typescale:"body",size:"small",children:["For more information on configuring thresholds etc. see"," ",(0,fe.jsx)(OFe.A,{target:"_blank",href:"https://support.rio.ai/knowledge/data-tracker-automated-variance-and-anomaly-detection-in-rio",children:"support page"})]})]})})]}),(0,fe.jsxs)(NPe,{children:[(0,fe.jsx)(TPe,{}),(0,fe.jsx)(lPe,{})]})]})},LPe=(0,f.styled)("div")`
  gap: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  &:hover {
    cursor: pointer;
  }
`,IPe=(0,f.styled)("div")`
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  align-items: flex-start;
  gap: 16px;
  width: 100%;
`,jPe=((0,f.styled)("div")`
  text-transform: uppercase;
  vertical-align: middle;
`,(0,f.styled)(f.Text)`
  width: 80px;
  text-align: center;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  line-height: 16px;
  text-transform: none;
`),wPe=(0,f.styled)("div")`
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 1px solid #c7c5d0;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.05);
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;

  svg {
    width: 32px;
    height: 32px;
    color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }

  &:hover {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.secondaryContainer}};
  }
`,OPe=["buildingEnergyRatings","emissionsDatabase"],EPe=e=>{let{kind:n,to:t}=e;const a=(0,m.Zp)(),i=F5(n),l=OPe.includes(n)?"emissionsDatabase"===n?"./emissionsDatabase/view":"./buildingEnergyRatings/view":t;return(0,fe.jsxs)(LPe,{onClick:()=>a(l),children:[(0,fe.jsx)(wPe,{children:i}),(0,fe.jsx)(jPe,{typescale:"label",size:"small",children:(0,fe.jsx)(de.A,{id:`pages.data.subjects.${n}`})})]})},_Pe=e=>{let{activeAccessControls:n,isPortfolio:t,isApi:a,dataAccessControls:i}=e;const l=(0,m.Zp)();if(t)return(0,fe.jsx)(IPe,{children:(0,fe.jsxs)(LPe,{onClick:()=>l("./investment/uploads"),children:[(0,fe.jsx)(wPe,{children:(0,fe.jsx)(t4,{})}),(0,fe.jsx)(jPe,{typescale:"label",size:"small",children:"Funds & Assets"})]})});if(a){const e=[];return i?.oilAndGas&&e.push("oilProduction","salesData","liquidFuels","emissionsDatabase"),(0,fe.jsx)(IPe,{children:e.map((e,n)=>(0,fe.jsx)(EPe,{kind:e,to:`./${R8(e)}/uploads`},`${e} - ${n}`))})}return(0,fe.jsx)(IPe,{children:n?.map((e,n)=>(0,fe.jsx)(EPe,{kind:e,to:`./${R8(e)}/uploads`},`${e} - ${n}`))})},FPe=t.p+"noData-6508859374a3545ad06c.svg";var PPe=t(20218),BPe=t.n(PPe),UPe=t(96628),$Pe=t.n(UPe),MPe=t(33600),VPe=t.n(MPe),GPe=t(59190),zPe=t.n(GPe),WPe=t(93448),qPe=t.n(WPe),JPe=t(97230),YPe=t.n(JPe);const HPe=(0,f.styled)("div")`
  width: 100%;
  height: 100%;
  display: flex;
  padding: 18px;
  border-radius: 16px;
  align-self: center;
  flex-direction: column;
  align-items: flex-start !important;
  border-width: ${e=>{let{border:n}=e;return n?"1px":"none"}};
  border-style: ${e=>{let{isDataValid:n}=e;return n?"solid":"dashed"}};
  border-color: ${e=>{let{border:n,theme:t}=e;return n&&t.sys.color.outlineVariant}};
  justify-content: ${e=>{let{isDataValid:n}=e;return n?"space-between":"space-around"}};
`,KPe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
`,QPe=(0,f.styled)(KPe)`
  margin: 2% auto;
`,ZPe=(0,f.styled)("p")`
  font-size: ${e=>{let{theme:n}=e;return`${n.sys.typescale.title.small.size}px`}};
  font-family: ${e=>{let{theme:n}=e;return n.sys.typescale.title.medium.family}};
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,XPe=(0,f.styled)("p")`
  font-size: ${e=>{let{theme:n}=e;return n.sys.typescale.title.medium.size}}px;
  font-family: ${e=>{let{theme:n}=e;return n.sys.typescale.title.medium.family}};
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  text-align: left;
`,eBe=(0,f.styled)("h3")`
  font-size: ${e=>{let{theme:n}=e;return`${n.sys.typescale.title.large.size}px`}};
  font-family: ${e=>{let{theme:n}=e;return n.sys.typescale.title.medium.family}};
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,nBe=(0,f.styled)(p.Link)`
  text-decoration: underline;
`,tBe=(0,f.styled)("div")`
  height: ${e=>{let{size:n}=e;return`${n}px`}};
  width: ${e=>{let{size:n}=e;return`${n}px`}};
  & > img {
    height: 100%;
    width: 100%;
  }
`,aBe=e=>{let{data:n,children:t,title:a="",sectionName:i,iconSize:l=80,border:r=!1,icon:o=FPe,suppressSuggestion:s=!1}=e;const d=(e=>!(zPe()(e)||qPe()(e)&&0===Math.round(e)||YPe()(e)&&"PieChartData"===Ig()(e,"__typename")&&(BPe()(Ig()(e,"series"),e=>YPe()(e)&&0===Math.round(Ig()(e,"absoluteValue",1)))||BPe()(Ig()(e,"drilldown"),e=>YPe()(e)&&0===Math.round(Ig()(e,"absoluteValue",1))))||$Pe()(e)&&BPe()(e,e=>YPe()(e)&&0===Math.round(Ig()(e,"value",1)))||(YPe()(e)||$Pe()(e))&&VPe()(e)))(n),c=or();return d?(0,fe.jsx)(fe.Fragment,{children:t}):(0,fe.jsxs)(HPe,{border:r,isDataValid:d,children:[(0,fe.jsx)(XPe,{children:i}),(0,fe.jsxs)(QPe,{children:[(0,fe.jsx)(tBe,{size:l,children:(0,fe.jsx)(Lke,{src:o,alt:"No data"})}),!s&&(0,fe.jsxs)(KPe,{children:[(0,fe.jsx)(eBe,{children:a||"No data"}),(0,fe.jsxs)(ZPe,{children:["Upload data in the ",(0,fe.jsx)(nBe,{to:`/${c.data.root}`,children:"data"})," section"]})]})]})]})};var iBe=t(34140);const lBe=(0,f.styled)(iBe.A)`
  width: 100%;
  max-width: 650px;
  min-width: 487px;
  min-height: 397px;
  border-radius: 8px;
  border: 1px solid ${e=>e.theme.sys.color.outlineVariant};
`,rBe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: center;

  svg {
    fill: ${e=>e.theme.sys.color.primary};
  }
`,oBe={dataCompleteness:e=>(0,fe.jsx)(f.CircularProgress,{mode:"simple-right",value:e.value,color:"secondary"}),dataQuality:e=>(0,fe.jsx)(f.CircularProgress,{mode:"simple-right",value:e.value,color:"primary"}),chevron:()=>(0,fe.jsx)(rBe,{children:(0,fe.jsx)(f.Icons.ChevronRight,{})})},sBe=e=>{const n=(0,m.Zp)(),t=Je(),a=(0,g.useMemo)(()=>({rowData:[...e.data],pagination:!1,components:oBe,onRowClicked:e=>{const t=(e=>{switch(e.toLowerCase()){case"waste":return"/v2/data/waste/view";case"electricity":return"/v2/data/electricity/view";case"gas":case"natural gas":return"/v2/data/gas/view";case"water":return"/v2/data/water/view";case"materials":return"/v2/data/materials/view";case"fuel":return"/v2/data/fuel/view";case"transport":return"/v2/data/transport/view";case"refrigerants & other gases":case"refrigerants and other gases":return"/v2/data/refrigerants/view";case"heat & steam":case"heat and steam":case"heatsteam":return"/v2/data/heatSteam/view";case"building energy ratings":return"/v2/data/buildingEnergyRatings/view";case"home working":case"hotel stays":case"hotel stays & home working":case"hotel stays and home working":return"/v2/data/hotelStays/view";default:return""}})(e.data.utility);t&&n(t)},defaultColDef:{sortable:!1,filter:!1,suppressHeaderMenuButton:!0,suppressMovable:!0,resizable:!1,cellStyle:{display:"flex",alignItems:"center",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"24px",paddingRight:"24px"}},rowStyle:{width:"100%",display:"flex",alignItems:"center"},columnDefs:[{headerName:"Utility",field:"utility",width:240,valueFormatter:e=>I9(e.value)},{headerName:"Data quality",field:"dataQuality",cellRenderer:"dataQuality",width:160},{headerName:"Data completeness",field:"dataCompleteness",cellRenderer:"dataCompleteness",width:200},{headerName:"",field:"chevron",cellRenderer:"chevron",width:20,cellStyle:{paddingLeft:0,paddingRight:0}}]}),[e.data,n]);return(0,fe.jsx)(lBe,{elevation:1,children:(0,fe.jsx)(f.AgGrid,{gridKey:"DataCompletenessGridV2",gridOptions:a},t)})},dBe=S.J1`
  query GetDataQualityPercentage($accountId: ID!, $from: AWSDate!, $to: AWSDate!) {
    getDataQualityPercentage(accountId: $accountId, from: $from, to: $to) {
      overallDataQuality
      overallDataCompleteness
      dataQualityBreakdown {
        utility
        dataQuality
        dataCompleteness
      }
    }
  }
`,cBe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  background: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  gap: 24px;
`,uBe=(0,f.styled)("div")`
  display: flex;
  margin-bottom: auto;
`,pBe=(0,f.styled)("div")`
  margin-top: 8px;
  min-width: 190px;
  margin-right: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
`,mBe=(0,f.styled)(f.Text)`
  color: ${e=>e.theme.sys.color.onSurfaceVariant};
`,fBe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 32px 32px;
  width: 100%;
`,yBe=(0,f.styled)(f.LinearProgress)`
  width: 100%;
  height: 3px;
`,gBe=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onBackground}};
`,hBe=(0,f.styled)("div")`
  margin-right: 10px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;

  svg {
    width: 24px;
    height: 24px;

    path {
      fill: ${e=>e.theme.palette.grey[600]};
    }
  }
`,xBe=le.default.span`
  font-weight: bold;
`,TBe=le.default.ol`
  padding: 20px 0 0;
`,bBe=le.default.li`
  margin-bottom: 10px;
`,vBe=le.default.div`
  padding: 20px;
  max-width: 800px;
`,CBe=bn()().subtract(1,"year").format("YYYY-MM-DD"),kBe=dt().format("YYYY-MM-DD"),SBe=()=>{const e=Je(),{loading:n,error:t,data:a,refetch:i}=function(e,n,t){return(0,x.IT)(dBe,{variables:{accountId:e,from:n,to:t}})}(e,CBe,kBe),[l,r]=(0,g.useState)(null),o=Boolean(l),s=o?"simple-popover":void 0,d=(0,g.useCallback)(e=>{r(e.currentTarget)},[]),c=(0,g.useCallback)(()=>{r(null)},[]);return n?(0,fe.jsx)(f.Loader,{size:100}):(0,fe.jsx)(cBe,{children:(0,fe.jsxs)(aBe,{sectionName:"Data quality & completeness",data:a?.getDataQualityPercentage.overallDataQuality,iconSize:100,children:[(0,fe.jsxs)(gBe,{children:[(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:"Data quality & completeness"}),(0,fe.jsx)(hBe,{"aria-describedby":s,onClick:d,children:(0,fe.jsx)(f.Icons.InfoOutlined,{})})]}),(0,fe.jsx)(fi.Ay,{id:s,open:o,anchorEl:l,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:(0,fe.jsxs)(vBe,{children:[(0,fe.jsxs)(u3.A,{variant:"body1",children:["Gain a high-level view of your data: ",(0,fe.jsx)(xBe,{children:"Data Quality"})," and"," ",(0,fe.jsx)(xBe,{children:"Data Completeness"})," per utility are calculated for the last 12 months of data. For example, if today is 01/09/2024, Rio will analyse the period from 01/09/2023 to 01/09/2024 to calculate the percentages seen below."]}),(0,fe.jsxs)(TBe,{children:[(0,fe.jsx)(bBe,{children:(0,fe.jsxs)(u3.A,{variant:"body2",children:[(0,fe.jsx)(xBe,{children:"1. Data Quality"})," is calculated as the number of days with ",(0,fe.jsx)("em",{children:"actual"})," data divided by the total number of days in the ",(0,fe.jsx)("em",{children:"period"}),". For example, If you have ",(0,fe.jsx)("em",{children:"actual"})," ","data available for 80 out of the 100 days in the ",(0,fe.jsx)("em",{children:"period"}),", the ",(0,fe.jsx)("em",{children:"Data Quality"})," would be calculated as 80%, indicating that 80% of the days have ",(0,fe.jsx)("em",{children:"actual"})," readings (not estimated)."]})}),(0,fe.jsx)(bBe,{children:(0,fe.jsxs)(u3.A,{variant:"body2",children:[(0,fe.jsx)(xBe,{children:"2. Data Completeness"})," is analysed based on the number of days which have data uploaded within the last 12 months. For example, If Rio records data for 90 out of the 100 possible days, the Data Completeness would be 90%, meaning 90% of the days within the period have data uploaded in Rio."]})})]})]})}),(0,fe.jsxs)(uBe,{children:[(0,fe.jsxs)(pBe,{children:[(0,fe.jsx)(f.Text,{typescale:"label",size:"small",children:"Organisation data quality"}),!n&&!t&&a&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.CircularProgress,{mode:"chart",value:a?.getDataQualityPercentage.overallDataQuality}),(0,fe.jsx)(f.CircularProgress,{mainContainerProps:{sx:{minWidth:"190px"}},mode:"simple-right",additionalText:"data completeness",value:a?.getDataQualityPercentage.overallDataCompleteness,color:"secondary"})]})]}),n&&(0,fe.jsx)(fBe,{children:(0,fe.jsx)(yBe,{})}),!n&&!t&&a&&(0,fe.jsx)(sBe,{data:a?.getDataQualityPercentage.dataQualityBreakdown||[]}),!n&&t&&(0,fe.jsx)(f.LoadFailed,{title:"Error at loading the data",error:t,retry:i})]}),(0,fe.jsx)(mBe,{children:"Upload actual sustainability data for better Data Quality scores"})]})})},NBe=(0,f.styled)("div")`
  width: 100%;
`,ABe=(0,f.styled)(f.Text)`
  margin-bottom: 24px;
`,RBe=(0,f.styled)(f.Text)`
  gap: 12px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;

  svg {
    width: 18px;
    height: 18px;

    path {
      fill: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
    }
  }
`.withComponent("div"),DBe=e=>{let{activeAccessControls:n,investment:t,dataAccessControls:a}=e;const i=localStorage.getItem("UPLOAD_CURRENT_TAB_V2")||null,l=(0,g.useMemo)(()=>t&&i?Number(i):0,[t,i]),[r,o]=(0,g.useState)(Number(l)),s=(0,g.useMemo)(()=>a?.oilAndGas,[a]),d=(0,g.useCallback)(()=>{const e={label:o4[0],children:(0,fe.jsx)(_Pe,{activeAccessControls:n})},i={label:o4[1],children:(0,fe.jsx)(_Pe,{isPortfolio:!0})},l={label:o4[2],children:(0,fe.jsx)(_Pe,{isApi:!0,dataAccessControls:a})},r=[e];return t&&r.push(i),s&&r.push(l),r},[n,t,s,a]),c=(0,g.useCallback)(e=>d4(String(e)),[]);(0,g.useEffect)(()=>{t?o(Number(i)??0):(o(0),d4(String(0)))},[t,i]);const u=(0,g.useMemo)(()=>(0,fe.jsx)(f.Tabs,{tabs:d(),currentTab:r,handlerChangeTab:c}),[r,d,c]);return(0,fe.jsxs)(NBe,{children:[(0,fe.jsx)(ABe,{typescale:"headline",size:"medium",children:(0,fe.jsx)(de.A,{id:"pages.data.overview.uploadHeader"})}),u,(0,fe.jsx)(DPe,{}),(0,fe.jsx)(SBe,{})]})},LBe=(0,ni.Ay)("div")`
  width: 100%;
  max-width: 260px;
  height: max-content;
  position: sticky;
  top: 0;
`,IBe=e=>{let{activeAccessControls:n,inactiveAccessControls:t,apiAccessControls:a=[],dataAccessControls:i}=e;const l=(0,m.zy)(),{pathname:r}=l,o=(e,n)=>{const t="overview"===e?"./":"fundsAssets"===e?"./investment/view":`./${R8(e)}/view`;return{to:t,item:(0,fe.jsx)(de.A,{id:`pages.data.subjects.${n||e}`}),isActive:r.includes(t)||"overview"===e}},s=n.map(e=>o(e)),d=t.map(e=>o(e)),c=a.map(e=>o(e)),{formatMessage:u}=(0,dc.A)();return(0,fe.jsxs)(LBe,{children:[(0,fe.jsx)(f.NavigationDrawer,{items:[o("overview")]}),(0,fe.jsx)(f.NavigationDrawer,{title:u({id:"Organisation"}),items:s}),!!t.length&&(0,fe.jsx)(f.NavigationDrawer,{title:u({id:"Portfolio"}),items:d}),!!a.length&&(0,fe.jsx)(f.NavigationDrawer,{title:"American Petroleum Institute",items:c}),i?.insite&&(0,fe.jsx)(f.NavigationDrawer,{title:"InSite Estate",items:[o("inSiteLeases","inSiteContracts"),o("inSiteBreeams","inSiteBuildings"),o("inSiteLandParcels")]})]})},jBe=(0,ni.Ay)("div")`
  height: 100%;
  gap: 48px;
  display: flex;
`;function wBe(){const e=zo(),{data:n}=Mr(),[t,a]=(0,g.useState)(!0);(0,g.useEffect)(()=>{setTimeout(()=>{a(!1)},500)},[a]);const i=["oilProduction","salesData","liquidFuels","emissionsDatabase"],l=Object.entries(n.data).reduce((e,n)=>{let[t,a]=n;return u4.includes(t)&&a&&!i.includes(t)&&e.push(t),e},[]),r=n.data.oilAndGas?i:[],o=n?.data?.investment?["fundsAssets"]:[];return(0,fe.jsx)(f.Page,{loading:t,title:{crumbs:[{to:"./",label:"Data"},{label:"Overview"}],content:"Upload data to help us assess your impact"},children:(0,fe.jsxs)(jBe,{children:[(0,fe.jsx)(IBe,{activeAccessControls:l,inactiveAccessControls:o,apiAccessControls:r,dataAccessControls:e?.accessControls.data}),e?.accessControls?.data&&(0,fe.jsx)(DBe,{investment:e.accessControls.data?.investment,activeAccessControls:l,dataAccessControls:e.accessControls.data})]})})}const OBe=[{label:"Data",to:".."},{label:"Gas"}],EBe={uploadReference:bH,documentReference:vH,link:hH},_Be=()=>{const e=Z1(),[n]=ed(H1(),{fetchPolicy:"network-only"}),t=(0,g.useCallback)(async e=>{const{data:{getGasTransactionsPage:{totalRows:t,rows:a}}}=await n({variables:e});return{rows:a,totalRows:t}},[n]);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(cH,{title:"Your gas data",defaultExportFileName:"gas-export",breadcrumbs:OBe,uploadLink:"../gas/uploads",config:{...e,components:EBe},fetchRows:t,transactionType:gn.D_.Gas})})},FBe=[{label:"Data",to:".."},{label:"Fuel"}],PBe={uploadReference:bH,documentReference:vH},BBe=()=>{const e=C2(),[n]=ed(T2,{fetchPolicy:"network-only"}),t=(0,g.useCallback)(async e=>{const{data:{getFuelTransactionPage:{totalRows:t,rows:a}}}=await n({variables:e});return{rows:a,totalRows:t}},[n]);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(cH,{title:"Your fuel data",defaultExportFileName:"fuel-export",breadcrumbs:FBe,uploadLink:"../fuel/uploads",config:{...e,components:PBe},fetchRows:t,transactionType:gn.D_.Fuel})})},UBe=[{label:"Data",to:".."},{label:"Waste"}],$Be={uploadReference:bH,documentReference:vH},MBe="waste-export",VBe=()=>{const e=$1({defaultVariant:"reporting",exportFileName:MBe}),n=U1({fetchFilters:e.fetchFilters});return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(cH,{title:"Your waste data",defaultExportFileName:MBe,breadcrumbs:UBe,uploadLink:"../waste/uploads",config:{...n,components:$Be},fetchRows:e,transactionType:gn.D_.Waste})})},GBe=[{label:"Data",to:".."},{label:"Materials"}],zBe={documentReference:vH,uploadReference:bH},WBe=e=>{let{dataAccessControls:n}=e;const t=L2(),[a]=ed(A2,{fetchPolicy:"network-only"}),i=(0,g.useCallback)(async e=>{const{data:{getMaterialsTransactionsPage:{totalRows:n,rows:t}}}=await a({variables:e});return{rows:t,totalRows:n}},[a]);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(cH,{title:"Your materials data",defaultExportFileName:"materials-export",breadcrumbs:GBe,uploadLink:"../materials/uploads",config:{...t,components:zBe},fetchRows:i,transactionType:gn.D_.Materials,extraButtons:(0,fe.jsxs)(fe.Fragment,{children:[n.scope3ActivityBasedMaterials&&(0,fe.jsx)(f.Button,{to:"/data/s3c1-activity-based-materials/view",children:"Activity data"}),n.scope3SpendBasedMaterials&&(0,fe.jsx)(f.Button,{to:"/data/s3c1-spend-based-materials/view",children:"Spend data"})]})})})},qBe=[{label:"Data",to:".."},{label:"Transport"}],JBe={uploadReference:bH,documentReference:vH},YBe="transport-export",HBe=()=>{const e=f2({defaultVariant:"reporting",exportFileName:YBe}),n=s2({fetchFilters:e.fetchFilters});return(0,fe.jsx)(cH,{title:"Your transport data",defaultExportFileName:YBe,breadcrumbs:qBe,uploadLink:"../transport/uploads",config:{...n,components:JBe},fetchRows:e,transactionType:gn.D_.Transport})},KBe=[{label:"Data",to:".."},{label:"Heat and steam"}],QBe={tariffReference:xH,uploadReference:bH,documentReference:vH,factorReference:hH},ZBe=()=>{const e=OH(),[n]=ed(IH(),{fetchPolicy:"network-only"}),t=(0,g.useCallback)(async e=>{const{data:{getHeatSteamTransactionsPage:{totalRows:t,rows:a}}}=await n({variables:e});return{rows:a,totalRows:t}},[n]);return(0,fe.jsx)(cH,{title:"Your heat and steam data",defaultExportFileName:"heatsteam-export",breadcrumbs:KBe,uploadLink:"../heatSteam/uploads",config:{...e,components:QBe},fetchRows:t,transactionType:gn.D_.Heatsteam})},XBe=[{label:"Data",to:".."},{label:"Building energy ratings"}],eUe=()=>{const e=i5(),[n]=l5(),t=(0,g.useCallback)(async e=>{const{data:t}=await n({variables:e});if(t){const{getBuildingEnergyRatingsByAccountId:{totalRows:e,rows:n}}=t;return{rows:n,totalRows:e}}throw new Error("Couldn't fetch building energy ratings")},[n]);return(0,fe.jsx)(cH,{title:"Your building energy ratings data",defaultExportFileName:"building-energy-ratings",breadcrumbs:XBe,config:e,fetchRows:t,transactionType:"BUILDING_ENERGY_RATINGS"})},nUe=[{label:"Data",to:".."},{label:"Water"}],tUe={uploadReference:bH,documentReference:vH,factorReference:hH},aUe="water-export",iUe=()=>{const e=l2(),[n]=ed(t2,{fetchPolicy:"network-only"}),t=Je(),{getValueFromStorage:a}=(0,f.useLocalStorage)(f.AG_GRID_PARAMS_V2),i=(0,g.useCallback)(async e=>{const i=a(),l=od(i,t,aUe),{data:{getWaterTransactionPage:{totalRows:r,rows:o}}}=await n({variables:{...e,hiddenColumns:l}});return{rows:o,totalRows:r}},[t,a,n]);return(0,fe.jsx)(cH,{title:"Your water data",defaultExportFileName:aUe,breadcrumbs:nUe,uploadLink:"../water/uploads",config:{...e,components:tUe},fetchRows:i,transactionType:gn.D_.Water})},lUe=[{label:"Data",to:".."},{label:"Hotel stays and home working"}],rUe={tariffReference:xH,uploadReference:bH,documentReference:vH,link:hH},oUe=()=>{const e=c5(),[n]=ed(s5,{fetchPolicy:"network-only"}),t=(0,g.useMemo)(()=>({...e,components:rUe}),[e]),a=(0,g.useCallback)(async e=>{const{data:{getHotelStaysTransactionsPage:{totalRows:t,rows:a}}}=await n({variables:e});return{rows:a,totalRows:t}},[n]);return(0,fe.jsx)(cH,{title:"Your hotel stays and home working data",breadcrumbs:lUe,config:t,fetchRows:a,uploadLink:"../hotelStays/uploads",defaultExportFileName:"Hotel stays & home work export",transactionType:gn.D_.Hotelstays})},sUe=[{label:"Data",to:".."},{label:"Investment"}],dUe=()=>{const e=x4(),[n]=ed(g4,{fetchPolicy:"network-only"}),t=(0,g.useCallback)(async e=>{const{data:{getInvestmentTransactionsByAccountId:{totalRows:t,rows:a}}}=await n({variables:e});return{rows:a,totalRows:t}},[n]);return(0,fe.jsx)(cH,{title:"Your investment data",defaultExportFileName:"investment-transactions",breadcrumbs:sUe,uploadLink:"../investment/uploads",config:e,fetchRows:t,transactionType:gn.D_.Investment})},cUe=[{label:"Data",to:".."},{label:"Electricity"}],uUe={uploadReference:bH,documentReference:vH,tariffReference:xH,factorReference:hH},pUe=()=>{const e=CH(),[n]=ed(pH(),{fetchPolicy:"network-only"}),t=(0,g.useCallback)(async e=>{const{data:{getElectricityTransactionsPage:{totalRows:t,rows:a}}}=await n({variables:e});return{rows:a,totalRows:t}},[n]);return(0,fe.jsx)(cH,{title:"Your electricity data",defaultExportFileName:"electricity-export",breadcrumbs:cUe,uploadLink:"../electricity/uploads",config:{...e,components:uUe},fetchRows:t,transactionType:gn.D_.Electricity})},mUe=[{label:"Data",to:".."},{label:"Refrigerants and other gases"}],fUe={tariffReference:xH,uploadReference:bH,documentReference:vH,factorReference:hH},yUe=()=>{const e=RH(),[n]=ed(NH,{fetchPolicy:"network-only"}),t=(0,g.useCallback)(async e=>{const{data:{getRefrigerantTransactionsPage:{totalRows:t,rows:a}}}=await n({variables:e});return{rows:a,totalRows:t}},[n]);return(0,fe.jsx)(cH,{title:"Your refrigerants and other gases data",defaultExportFileName:"refrigerants-export",breadcrumbs:mUe,uploadLink:"../refrigerants/uploads",config:{...e,components:fUe},fetchRows:t,transactionType:gn.D_.Refrigerant})},gUe=[{label:"Data",to:".."},{label:"Electricity",to:"/data/electricity/view"},{label:"Uploads"}],hUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"electricityUploadGridV2",title:"Here's your upload history",breadcrumbs:gUe,uploadLink:"../electricity/uploads",config:e,dataType:gn.D_.Electricity})},xUe=[{label:"Data",to:".."},{label:"Waste",to:"/data/waste/view"},{label:"Uploads"}],TUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"wasteUploadsGridV2",title:"Here's your upload history",breadcrumbs:xUe,uploadLink:"../electricity/uploads",config:e,dataType:gn.D_.Waste})},bUe=[{label:"Data",to:".."},{label:"Gas",to:"/data/gas/view"},{label:"Uploads"}],vUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"gasUploadGridV2",title:"Here's your upload history",breadcrumbs:bUe,uploadLink:"../gas/uploads",config:e,dataType:gn.D_.Gas})},CUe=[{label:"Data",to:".."},{label:"Water",to:"/data/water/view"},{label:"Uploads"}],kUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"waterUploadGridV2",title:"Here's your upload history",breadcrumbs:CUe,uploadLink:"../water/uploads",config:e,dataType:gn.D_.Water})},SUe=[{label:"Data",to:".."},{label:"Transport",to:"/data/transport/view"},{label:"Uploads"}],NUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"transportUploadGridV2",title:"Here's your upload history",breadcrumbs:SUe,uploadLink:"../transport/uploads",config:e,dataType:gn.D_.Transport})},AUe=[{label:"Data",to:".."},{label:"Fuel",to:"/data/fuel/view"},{label:"Uploads"}],RUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"fuelUploadGridV2",title:"Here's your upload history",breadcrumbs:AUe,uploadLink:"../fuel/uploads",config:e,dataType:gn.D_.Fuel})},DUe=[{label:"Data",to:".."},{label:"Materials",to:"/data/materials/view"},{label:"Uploads"}],LUe=e=>{let{dataAccessControls:n}=e;const t=Q7();return(0,fe.jsx)(K7,{gridKey:"materialsUploadGridV2",title:"Here's your upload history",breadcrumbs:DUe,uploadLink:"../materials/uploads",config:t,dataType:gn.D_.Materials,extraButtons:(0,fe.jsxs)(fe.Fragment,{children:[n.scope3ActivityBasedMaterials&&(0,fe.jsx)(f.Button,{to:"/data/s3c1-activity-based-materials/uploads",children:"Activity data"}),n.scope3SpendBasedMaterials&&(0,fe.jsx)(f.Button,{to:"/data/s3c1-spend-based-materials/uploads",children:"Spend data"})]})})},IUe=[{label:"Data",to:".."},{label:"Hotel Stays",to:"/data/hotelStays/view"},{label:"Uploads"}],jUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"hotelStaysUploadGridV2",title:"Here's your upload history",breadcrumbs:IUe,uploadLink:"../hotelStays/uploads",config:e,dataType:gn.D_.Hotelstays})},wUe=[{label:"Data",to:".."},{label:"Heat & Steam",to:"/data/heatSteam/view"},{label:"Uploads"}],OUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"heatSteamUploadGridV2",title:"Here's your upload history",breadcrumbs:wUe,uploadLink:"../heatSteam/uploads",config:e,dataType:gn.D_.Heatsteam})},EUe=[{label:"Data",to:".."},{label:"Refrigerants",to:"/data/refrigerants/view"},{label:"Uploads"}],_Ue=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"refrigerantUploadGridV2",title:"Here's your upload history",breadcrumbs:EUe,uploadLink:"../refrigerant/uploads",config:e,dataType:gn.D_.Refrigerant})},FUe=[{label:"Data",to:".."},{label:"Investment",to:"/data/investment/view"},{label:"Uploads"}],PUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{title:"Here's your upload history",gridKey:"investmentUploadGridV2",breadcrumbs:FUe,uploadLink:"../investment/uploads",config:e,dataType:gn.D_.Investment})},BUe=[{label:"Data",to:".."},{label:"Liquid fuels",to:"/data/liquid-fuels/view"},{label:"Uploads"}],UUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"liquidFuelUploadGridV2",title:"Here's your upload history",breadcrumbs:BUe,uploadLink:"../liquid-fuels/uploads",config:e,dataType:gn.D_.Liquidfuel})},$Ue=S.J1`
  query GetS3C1ActivityBasedMaterialTransactionsPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getS3C1ActivityBasedMaterialTransactionsPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        locationName
        locationCode
        locationEndDate
        locationSharedEmissionPercentage
        locationCustomAttributes
        locationCountry
        locationRegion
        startDate
        endDate
        factorSet
        materialType
        subtype1
        subtype2
        subtype3
        weight
        weightUnit
        weightInKg
        weightUnitToKgConversionFactor
        accuracy
        unitsQuantity
        totalCost
        currency
        notes
        reference
        invoiceNumber
        evidenceReference
        otherReference
        tags
        importBatchId
        importBatchFileName
        departments
        supplier
        scope3Emission
        emissionFactorValue
        factorKey
        subcontractor
        productCode
        materialDescription
        percentRecycledContent
        distanceToSite
        numberOfDeliveries
        originOfCertification
        origin
        purchaseType
        organisationalUnits
        estimatesScenario
      }
    }
  }
`,MUe=S.J1`
  query GetS3C1ActivityBasedMaterialTransactionsPageFilter($accountId: ID!, $field: String!) {
    getS3C1ActivityBasedMaterialTransactionsPageFilter(accountId: $accountId, field: $field) {
      value
      label
    }
  }
`,VUe=S.J1`
  query GetS3C1SpendBasedMaterialTransactionsPage(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    getS3C1SpendBasedMaterialTransactionsPage(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        id
        locationName
        locationCode
        locationEndDate
        locationSharedEmissionPercentage
        locationCustomAttributes
        country
        startDate
        endDate
        accuracy
        estimatesScenario
        purchaseType
        supplier
        factorSet
        materialType
        subtype1
        subtype2
        subtype3
        amount
        currency
        factorCurrencyAmount
        factorCurrencyCode
        standardCurrencyAmount
        notes
        reference
        invoiceNumber
        evidenceReference
        otherReference
        tags
        importBatchId
        importBatchFileName
        departments
        scope3Emission
        emissionFactorValue
        factorKey
        organisationalUnits
      }
    }
  }
`,GUe=S.J1`
  query GetS3C1SpendBasedMaterialTransactionsPageFilter($accountId: ID!, $field: String!) {
    getS3C1SpendBasedMaterialTransactionsPageFilter(accountId: $accountId, field: $field) {
      value
      label
    }
  }
`,zUe={documentReference:vH,uploadReference:bH},WUe=()=>{const e=function(){const e=(0,C.m)(),n=zo(),t=n?.id,a=n?.accessControls.customFields,{showNotification:i}=tn(),l=async n=>{try{const{data:{getS3C1ActivityBasedMaterialTransactionsPageFilter:a}}=await e.query({query:MUe,variables:{accountId:t,field:n.colDef.colId||n.colDef.field}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){i(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Location",field:"locationName",filterParams:{values:l,valueFormatter:On}},{headerName:"Location Code",field:"locationCode",filterParams:{values:l,valueFormatter:On}},...Oi(gn.D_.S3C1Activitybasedmaterial,n?.accessControls),{headerName:"Shared Emission Percentage",field:"locationSharedEmissionPercentage",filter:"agNumberColumnFilter"},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter"},{headerName:"Country",field:"locationCountry",filterParams:{values:l,valueFormatter:On}},{headerName:"Region",field:"locationRegion",filterParams:{values:l,valueFormatter:On}},yH,{headerName:"Start date",field:"startDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter",initialSort:"desc"},{headerName:"End date",field:"endDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter"},{headerName:"Factor set",field:"factorSet",filterParams:{values:l,valueFormatter:On}},{headerName:"Material type",field:"materialType",filterParams:{values:l,valueFormatter:On}},{headerName:"Subtype 1",field:"subtype1",filterParams:{values:l,valueFormatter:On}},{headerName:"Subtype 2",field:"subtype2",filterParams:{values:l,valueFormatter:On}},{headerName:"Subtype 3",field:"subtype3",filterParams:{values:l,valueFormatter:On}},...Xi(Fi(gn.D_.S3C1Activitybasedmaterial,a)),{headerName:"Number of units",field:"unitsQuantity",filter:"agNumberColumnFilter"},{headerName:"Quantity",field:"weight",filter:"agNumberColumnFilter"},{headerName:"Unit of measurement",field:"weightUnit",width:250,filterParams:{values:l,valueFormatter:On}},{headerName:"Quantity in kg",field:"weightInKg",filter:"agNumberColumnFilter",valueFormatter:Oa},{headerName:"Conversion factor from quantity unit to kg",field:"weightUnitToKgConversionFactor",filter:"agNumberColumnFilter",width:350,valueFormatter:e=>{let{value:n}=e;return n??"Not available"}},{headerName:"Act/Est",field:"accuracy",filterParams:{values:l,valueFormatter:On}},Vi,...Xi(Mi(gn.D_.S3C1Activitybasedmaterial,a,{getFilterValues:l,gridValueFormatter:On})),...Xi($i(gn.D_.S3C1Activitybasedmaterial,a,{getFilterValues:l,gridValueFormatter:On})),...Xi(Pi(gn.D_.S3C1Activitybasedmaterial,a)),{headerName:"Supplier",field:"supplier",filterParams:{values:l,valueFormatter:On}},...Xi(Ei(gn.D_.S3C1Activitybasedmaterial,a,{getFilterValues:l,gridValueFormatter:On})),{headerName:"Total cost",field:"totalCost",filter:"agNumberColumnFilter"},{headerName:"Currency",field:"currency",filterParams:{values:l,valueFormatter:On}},...Xi(Bi(gn.D_.S3C1Activitybasedmaterial,a)),...Xi(Ui(gn.D_.S3C1Activitybasedmaterial,a)),...Xi(_i(gn.D_.S3C1Activitybasedmaterial,a)),{headerName:"Scope 3 emissions (kgCO2e)",field:"scope3Emission",filter:"agNumberColumnFilter",valueFormatter:Ea},{headerName:"Emission factor value",field:"emissionFactorValue",filter:"agNumberColumnFilter"},{headerName:"Emission factor key",field:"factorKey",filterParams:"agTextColumnFilter"},{headerName:"Tags",field:"tags",filterParams:{values:l,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:l,valueFormatter:On}},{headerName:"Notes",field:"notes",filter:"agTextColumnFilter"},{headerName:"Reference",field:"reference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Invoice Number",field:"invoiceNumber",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Evidence Reference",field:"evidenceReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:l,valueFormatter:On}},...Xi(wi(gn.D_.S3C1Activitybasedmaterial,a))],reactiveCustomComponents:!0}}(),[n]=ed($Ue,{fetchPolicy:"network-only"}),t=(0,g.useCallback)(async e=>{const{data:{getS3C1ActivityBasedMaterialTransactionsPage:{totalRows:t,rows:a}}}=await n({variables:e});return{rows:a,totalRows:t}},[n]);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(cH,{title:"Your activity based materials data",defaultExportFileName:"s3c1-activity-based-materials-export",breadcrumbs:[{label:"Data",to:".."},{label:"Materials",to:"/data/materials/view"},{label:"Activity data"}],uploadLink:"../s3c1-activity-based-materials/uploads",config:{...e,components:zUe},fetchRows:t,transactionType:gn.D_.S3C1Activitybasedmaterial})})},qUe={documentReference:vH,uploadReference:bH},JUe=()=>{const e=function(){const e=(0,C.m)(),n=zo(),t=n?.id,a=n?.accessControls.customFields,{showNotification:i}=tn(),l=async n=>{try{const{data:{getS3C1SpendBasedMaterialTransactionsPageFilter:a}}=await e.query({query:GUe,variables:{accountId:t,field:n.colDef.colId||n.colDef.field}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){i(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning")}};return{getRowId:Gn("id"),columnDefs:[{headerName:"Location",field:"locationName",filterParams:{values:l,valueFormatter:On}},{headerName:"Location Code",field:"locationCode",filterParams:{values:l,valueFormatter:On}},...Oi(gn.D_.S3C1Spendbasedmaterial,n?.accessControls),{headerName:"Shared Emission Percentage",field:"locationSharedEmissionPercentage",filter:"agNumberColumnFilter"},{headerName:"Location Custom Attributes",field:"locationCustomAttributes",filter:"agTextColumnFilter"},yH,{headerName:"Country of spend",field:"country",filterParams:{values:l,valueFormatter:On}},{headerName:"Start date",field:"startDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter",initialSort:"desc"},{headerName:"End date",field:"endDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},cellStyle:{textAlign:"center"},filter:"agDateColumnFilter"},{headerName:"Supplier",field:"supplier",filterParams:{values:l,valueFormatter:On}},{headerName:"Factor set",field:"factorSet",filterParams:{values:l,valueFormatter:On}},{headerName:"Material type",field:"materialType",filterParams:{values:l,valueFormatter:On}},{headerName:"Subtype 1",field:"subtype1",filterParams:{values:l,valueFormatter:On}},{headerName:"Subtype 2",field:"subtype2",filterParams:{values:l,valueFormatter:On}},{headerName:"Subtype 3",field:"subtype3",filterParams:{values:l,valueFormatter:On}},{headerName:"Amount",field:"amount",filter:"agNumberColumnFilter"},{headerName:"Currency",field:"currency",filterParams:{values:l,valueFormatter:On}},{headerName:"Amount (in the factor's currency)",field:"factorCurrencyAmount",filter:"agNumberColumnFilter"},{headerName:"Factor currency code",field:"factorCurrencyCode",filterParams:{values:l,valueFormatter:On}},{headerName:"Amount in £",field:"standardCurrencyAmount",filter:"agNumberColumnFilter"},{headerName:"Act/Est",field:"accuracy",filterParams:{values:l,valueFormatter:On}},Vi,...Xi(wi(gn.D_.S3C1Spendbasedmaterial,a)),{headerName:"Scope 3 emissions (kgCO2e)",field:"scope3Emission",filter:"agNumberColumnFilter",valueFormatter:Ea},{headerName:"Emission factor value",field:"emissionFactorValue",filter:"agNumberColumnFilter"},{headerName:"Emission factor key",field:"factorKey",filterParams:"agTextColumnFilter"},{headerName:"Tags",field:"tags",filterParams:{values:l,valueFormatter:On}},{headerName:"Departments",field:"departments",filterParams:{values:l,valueFormatter:On}},{headerName:"Notes",field:"notes",filter:"agTextColumnFilter"},{headerName:"Reference",field:"reference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Invoice Number",field:"invoiceNumber",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Evidence Reference",field:"evidenceReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Other Reference",field:"otherReference",filterParams:{values:l,valueFormatter:On},cellRenderer:"documentReference"},{headerName:"Upload Reference",field:"importBatchFileName",cellRenderer:"uploadReference",filterParams:{values:l,valueFormatter:On}}],reactiveCustomComponents:!0}}(),[n]=ed(VUe,{fetchPolicy:"network-only"}),t=(0,g.useCallback)(async e=>{const{data:{getS3C1SpendBasedMaterialTransactionsPage:{totalRows:t,rows:a}}}=await n({variables:e});return{rows:a,totalRows:t}},[n]);return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(cH,{title:"Your spend based materials data",defaultExportFileName:"s3c1-spend-based-materials-export",breadcrumbs:[{label:"Data",to:".."},{label:"Materials",to:"/data/materials/view"},{label:"Spend data"}],uploadLink:"../s3c1-spend-based-materials/uploads",config:{...e,components:qUe},fetchRows:t,transactionType:gn.D_.S3C1Spendbasedmaterial})})},YUe=[{label:"Data",to:".."},{label:"Materials",to:"/data/materials/view"},{label:"Activity data",to:"/data/s3c1-activity-based-materials/view"},{label:"Uploads"}],HUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"s3c1ActivityBasedMaterialsUploadGridV2",title:"Here's your upload history",breadcrumbs:YUe,uploadLink:"../s3c1-activity-based-materials/uploads",config:e,dataType:gn.D_.S3C1Activitybasedmaterial})},KUe=[{label:"Data",to:".."},{label:"Materials",to:"/data/materials/view"},{label:"Spend data",to:"/data/s3c1-spend-based-materials/view"},{label:"Uploads"}],QUe=()=>{const e=Q7();return(0,fe.jsx)(K7,{gridKey:"s3c1SpendBasedMaterialsUploadGridV2",title:"Here's your upload history",breadcrumbs:KUe,uploadLink:"../s3c1-spend-based-materials/uploads",config:e,dataType:gn.D_.S3C1Spendbasedmaterial})},ZUe=()=>(0,fe.jsx)(k8,{});function XUe(e,n){const[t]=ed(n,{fetchPolicy:"network-only"});return(0,g.useCallback)(async n=>{const{data:a}=await t({variables:n});return a?.[e]||{rows:[],totalRows:0}},[])}var e$e=t(93107),n$e=t.n(e$e);const t$e={property:["primaryPropertyName","primaryPropertyNumber","secondaryPropertyName","secondaryPropertyNumber","streetName","town","postcode","region","country","localAuthority","latitude","longitude","easting","northing","coordinateReferenceSystem","uprn","propertyFloorArea","propertyFloorAreaMeasurement","landArea","usage","ancientMonument","specialScientificInterest","organisationReference","organisation","parentOrganisation","userName","userEmail","securityClassification","reasonForArchivingARecord"],building:["listedBuilding","constructionDate","buildingCondition","buildingConditionDate"],contract:["acquisitionDate","physicalConstraints","contractFloorArea","contractFloorAreaMeasurement","value","valueType","valuationDate","capitalExpenditure","futureDisposalDate","futurePropertyDisposalValue","costMaintainingSurplusProperty","pfiEndDate"]},a$e=e=>S.J1`
  query ${n$e()(e)}($accountId: ID!, $field: String!) {
    ${e}(accountId: $accountId, field: $field) {
      label
      value
    }
  }
`,i$e=(e,n)=>S.J1`
  query ${n$e()(e)}(
    $accountId: ID!
    $offset: Int
    $limit: Int
    $sort: [SortCommand!]
    $filters: Filters
  ) {
    ${e}(
      accountId: $accountId
      offset: $offset
      limit: $limit
      sort: $sort
      filters: $filters
    ) {
      totalRows
      rows {
        ${n.join("\n")}
      }
    }
  }
`,l$e=i$e("getInSiteBreeamsPage",[...t$e.property,...t$e.building,"id","buildingId","propertyId","breeamRating","breeamCertificateRefNo"]),r$e=a$e("getInSiteBreeamsPageFilter"),o$e=e=>[{label:"Data",to:".."},{label:e}];function s$e(e){return{getRowId:Gn("id"),columnDefs:e,suppressColumnVirtualisation:!0,autoSizeStrategy:{type:"fitCellContents"},defaultColDef:{resizable:!0,sortable:!0,filter:!0}}}function d$e(e,n){const[t]=(0,Ul._)(n,{fetchPolicy:"network-only"}),a=Je(),{showNotification:i}=tn();return async n=>{let{colDef:l,success:r}=n;const{field:o,headerName:s}=l;try{const{data:n}=await t({variables:{accountId:a,field:o}});r((n?.[e]||[]).map(e=>e.value?JSON.stringify(e):null))}catch(e){i(`Couldn't load filter values for column "${s}"`,"warning")}}}const c$e=e=>({filter:"agSetColumnFilter",filterParams:{values:e,valueFormatter:On}}),u$e={filter:"agDateColumnFilter",valueFormatter:_n},p$e={valueFormatter:En,filter:"agSetColumnFilter",filterParams:{values:[!0,!1],valueFormatter:En}},m$e=e=>{let{getFilterValues:n}=e;return[{headerName:"Primary Property Name",field:"primaryPropertyName",filter:"agTextColumnFilter"},{headerName:"Primary Property Number",field:"primaryPropertyNumber",filter:"agTextColumnFilter"},{headerName:"Secondary Property Name",field:"secondaryPropertyName",filter:"agTextColumnFilter"},{headerName:"Secondary Property Number",field:"secondaryPropertyNumber",filter:"agTextColumnFilter"},{headerName:"Street Name",field:"streetName",...c$e(n)},{headerName:"Town",field:"town",...c$e(n)},{headerName:"Postcode",field:"postcode",filter:"agTextColumnFilter"},{headerName:"Region",field:"region",...c$e(n)},{headerName:"Country",field:"country",...c$e(n)},{headerName:"Country",field:"country",...c$e(n)},{headerName:"Local Authority",field:"localAuthority",...c$e(n)},{headerName:"Coordinate Reference System (CRS)",field:"coordinateReferenceSystem",...c$e(n)},{headerName:"Unique Property Reference Number (UPRN)",field:"uprn",filter:"agTextColumnFilter"},{headerName:"Floor Area",field:"propertyFloorArea",filter:"agNumberColumnFilter"},{headerName:"Floor Area Measurement",field:"propertyFloorAreaMeasurement",...c$e(n)},{headerName:"Land Area",field:"landArea",filter:"agNumberColumnFilter"},{headerName:"Usage",field:"usage",...c$e(n)},{headerName:"Ancient Monument",field:"ancientMonument",...p$e},{headerName:"Special Scientific Interest",field:"specialScientificInterest",...p$e},{headerName:"Organisation",field:"organisation",...c$e(n)},{headerName:"Organisation",field:"organisation",...c$e(n)},{headerName:"Organisation Contact Name",field:"userName",filter:"agTextColumnFilter"},{headerName:"Organisation Contact Email",field:"userEmail",filter:"agTextColumnFilter"},{headerName:"Parent Organisation",field:"parentOrganisation",...c$e(n)},{headerName:"Security Classification",field:"securityClassification",...c$e(n)},{headerName:"Reason for archiving a Record",field:"reasonForArchivingARecord",...c$e(n)}]},f$e=e=>{let{getFilterValues:n}=e;return[{headerName:"Listed Building",field:"listedBuilding",...c$e(n)},{headerName:"Construction Date",field:"constructionDate",...u$e},{headerName:"Building Condition",field:"buildingCondition",...c$e(n)},{headerName:"Building Report Condition Date",field:"buildingConditionDate",...u$e}]},y$e=e=>{let{getFilterValues:n}=e;return[{headerName:"Acquisition Date",field:"acquisitionDate",...u$e},{headerName:"Physical Constraints",field:"physicalConstraints",...c$e(n)},{headerName:"Value",field:"value",filter:"agTextColumnFilter"},{headerName:"Value Type",field:"valueType",...c$e(n)},{headerName:"Valuation Date",field:"valuationDate",...u$e},{headerName:"Capital Expenditure",field:"capitalExpenditure",filter:"agNumberColumnFilter"},{headerName:"Future Disposal Date",field:"futureDisposalDate",...u$e},{headerName:"Future Property Disposal Value",field:"futurePropertyDisposalValue",filter:"agNumberColumnFilter"},{headerName:"Cost of maintaining surplus Property",field:"costMaintainingSurplusProperty",filter:"agNumberColumnFilter"},{headerName:"PFI End Date",field:"pfiEndDate",...u$e}]},g$e={dec:{path:"/data/insite-decs/view",title:"DEC"},epc:{path:"/data/insite-epcs/view",title:"EPC"},breeam:{path:"/data/insite-breeams/view",title:"BREEAM"}},h$e={lease:{path:"/data/insite-leases/view",title:"Leases"},disposal:{path:"/data/insite-disposals/view",title:"Disposals"},vacantSpace:{path:"/data/insite-vacant-spaces/view",title:"Vacant spaces"},occupation:{path:"/data/insite-occupations/view",title:"Occupations"},occupancyFact:{path:"/data/insite-occupancy-facts/view",title:"Occupancy Facts"}},x$e=e=>{let{active:n}=e;return(0,fe.jsx)(b$e,{items:g$e,active:n})},T$e=e=>{let{active:n}=e;return(0,fe.jsx)(b$e,{items:h$e,active:n})};function b$e(e){let{items:n,active:t}=e;const a=(0,g.useMemo)(()=>Object.entries(n).filter(e=>{let[n]=e;return n!==t}),[t]);return(0,fe.jsx)(fe.Fragment,{children:a.map((e,n)=>{let[t,a]=e;return(0,fe.jsx)(f.Button,{to:a.path,children:a.title},n)})})}const v$e=o$e("BREEAM");function C$e(){const e=XUe("getInSiteBreeamsPage",l$e),n=function(){const e=d$e("getInSiteBreeamsPageFilter",r$e);return s$e([...m$e({getFilterValues:e}),...f$e({getFilterValues:e}),{headerName:"BREEAM Rating",field:"breeamRating",...c$e(e)},{headerName:"BREEAM Certificate Reference Number",field:"breeamCertificateRefNo",filter:"agTextColumnFilter"}])}();return(0,fe.jsx)(cH,{title:"Your BREEAM data",defaultExportFileName:"insite-breeam-export",breadcrumbs:v$e,config:n,fetchRows:e,extraButtons:(0,fe.jsx)(x$e,{active:"breeam"})})}const k$e=i$e("getInSiteLandParcelsPage",[...t$e.property,"id","propertyId","conservationArea","titleNumber"]),S$e=a$e("getInSiteLandParcelsPageFilter"),N$e=o$e("Land parcels");function A$e(){const e=XUe("getInSiteLandParcelsPage",k$e),n=function(){const e=d$e("getInSiteLandParcelsPageFilter",S$e);return s$e([...m$e({getFilterValues:e}),{headerName:"Conservation Area",field:"conservationArea",...p$e},{headerName:"Title Number",field:"titleNumber",filter:"agTextColumnFilter"}])}();return(0,fe.jsx)(cH,{title:"Your land parcels data",defaultExportFileName:"insite-land-parcel-export",breadcrumbs:N$e,config:n,fetchRows:e})}const R$e=i$e("getInSiteDecsPage",[...t$e.property,...t$e.building,"id","buildingId","propertyId","buildingRating","certificateReference","expiryDate","operationalRating","operatingRatingValue","propertyReference","certificateIssueDate","outOfScopeReason"]),D$e=a$e("getInSiteDecsPageFilter"),L$e=o$e("DEC");function I$e(){const e=XUe("getInSiteDecsPage",R$e),n=function(){const e=d$e("getInSiteDecsPageFilter",D$e);return s$e([...m$e({getFilterValues:e}),...f$e({getFilterValues:e}),{headerName:"DEC Building Rating",field:"buildingRating",...c$e(e)},{headerName:"DEC Certificate Reference",field:"certificateReference",filter:"agTextColumnFilter"},{headerName:"DEC Expiry Date",field:"expiryDate",...u$e},{headerName:"DEC Operational Rating",field:"operationalRating",...c$e(e)},{headerName:"DEC Operational Rating Value",field:"operatingRatingValue",filter:"agNumberColumnFilter"},{headerName:"DEC property Reference",field:"propertyReference",filter:"agTextColumnFilter"},{headerName:"DEC Certificate Issue Date",field:"certificateIssueDate",...u$e},{headerName:"Out Of Scope Reason for DEC",field:"outOfScopeReason",...c$e(e)}])}();return(0,fe.jsx)(cH,{title:"Your DEC data",defaultExportFileName:"insite-dec-export",breadcrumbs:L$e,config:n,fetchRows:e,extraButtons:(0,fe.jsx)(x$e,{active:"dec"})})}const j$e=i$e("getInSiteEpcsPage",[...t$e.property,...t$e.building,"id","propertyId","buildingId","propertyRating","propertyReference","propertyRatingValue","certificateReference","expiryDate","certificateIssueDate","outOfScopeReason"]),w$e=a$e("getInSiteEpcsPageFilter"),O$e=o$e("EPC");function E$e(){const e=XUe("getInSiteEpcsPage",j$e),n=function(){const e=d$e("getInSiteEpcsPageFilter",w$e);return s$e([...m$e({getFilterValues:e}),...f$e({getFilterValues:e}),{headerName:"EPC Property Rating",field:"propertyRating",...c$e(e)},{headerName:"EPC Property Reference",field:"propertyReference",filter:"agTextColumnFilter"},{headerName:"EPC Property Rating Value",field:"propertyRatingValue",filter:"agNumberColumnFilter"},{headerName:"EPC Certificate Reference",field:"certificateReference",filter:"agTextColumnFilter"},{headerName:"EPC Expiry Date",field:"expiryDate",...u$e},{headerName:"EPC Certificate Issue Date",field:"certificateIssueDate",...u$e},{headerName:"Out of Scope Reason for EPC",field:"outOfScopeReason",...c$e(e)}])}();return(0,fe.jsx)(cH,{title:"Your EPC data",defaultExportFileName:"insite-epc-export",breadcrumbs:O$e,config:n,fetchRows:e,extraButtons:(0,fe.jsx)(x$e,{active:"epc"})})}const _$e=i$e("getInSiteOccupationsPage",[...t$e.property,...t$e.contract,"id","propertyId","contractId","tenure"]),F$e=a$e("getInSiteOccupationsPageFilter"),P$e=o$e("Occupations");function B$e(){const e=XUe("getInSiteOccupationsPage",_$e),n=function(){const e=d$e("getInSiteOccupationsPageFilter",F$e);return s$e([...m$e({getFilterValues:e}),...y$e({getFilterValues:e}),{headerName:"Floor area - tenure",field:"tenure",...c$e}])}();return(0,fe.jsx)(cH,{title:"Your occupations data",defaultExportFileName:"insite-occupation-export",breadcrumbs:P$e,config:n,fetchRows:e,extraButtons:(0,fe.jsx)(T$e,{active:"occupation"})})}const U$e=i$e("getInSiteOccupancyFactsPage",[...t$e.property,...t$e.contract,"id","propertyId","contractId","occupationId","rates","unitaryCharge","totalOperationalCosts","totalPropertyCosts"]),$$e=a$e("getInSiteOccupancyFactsPageFilter"),M$e=o$e("Occupancy facts");function V$e(){const e=XUe("getInSiteOccupancyFactsPage",U$e),n=function(){const e=d$e("getInSiteOccupancyFactsPageFilter",$$e);return s$e([...m$e({getFilterValues:e}),...y$e({getFilterValues:e}),{headerName:"Rates",field:"rates",filter:"agNumberColumnFilter"},{headerName:"Unitary Charge",field:"unitaryCharge",filter:"agNumberColumnFilter"},{headerName:"Total Operational Costs (£)",field:"totalOperationalCosts",filter:"agNumberColumnFilter"},{headerName:"Total Property/Space Running Costs (£)",field:"totalPropertyCosts",filter:"agNumberColumnFilter"}])}();return(0,fe.jsx)(cH,{title:"Your occupancy facts data",defaultExportFileName:"insite-occupancy-fact-export",breadcrumbs:M$e,config:n,fetchRows:e,extraButtons:(0,fe.jsx)(T$e,{active:"occupancyFact"})})}const G$e=i$e("getInSiteLeasesPage",[...t$e.property,...t$e.contract,"id","propertyId","contractId","rent","landlordName","licence","occupancyAgreementExpiryDate","earliestLeaseOccupancyAgreementBreakDate","actualLeaseOccupancyAgreementBreakDate","leaseOccupancyAgreementBreakNoticeTerm","occupancyAgreementLastBreakDate","occupancyAgreementBreakPenalty","postExpiryOccupancyAgreementStatus","occupancyPaymentFrequency","rentReviewFrequency","repairLiability","occupancyAgreementReviewDate","occupancyAgreementStartDate"]),z$e=a$e("getInSiteLeasesPageFilter"),W$e=o$e("Leases");function q$e(){const e=XUe("getInSiteLeasesPage",G$e),n=function(){const e=d$e("getInSiteLeasesPageFilter",z$e);return s$e([...m$e({getFilterValues:e}),...y$e({getFilterValues:e}),{headerName:"Rent",field:"rent",filter:"agNumberColumnFilter"},{headerName:"Landlord Name",field:"landlordName",filter:"agTextColumnFilter"},{headerName:"Licence Type",field:"licence",...c$e(e)},{headerName:"Lease or Occupancy Agreement Expiry Date",field:"occupancyAgreementExpiryDate",...u$e},{headerName:"Earliest Lease or Occupancy Agreement Break Date",field:"earliestLeaseOccupancyAgreementBreakDate",...u$e},{headerName:"Actual Lease or Occupancy Agreement Break Date",field:"actualLeaseOccupancyAgreementBreakDate",...u$e},{headerName:"Lease or Occupancy Agreement Break Notice Term",field:"leaseOccupancyAgreementBreakNoticeTerm",filter:"agNumberColumnFilter"},{headerName:"Occupancy Agreement Last Break Date",field:"occupancyAgreementLastBreakDate",...u$e},{headerName:"Occupancy Agreement Break Penalty",field:"occupancyAgreementBreakPenalty",filter:"agNumberColumnFilter"},{headerName:"Post-Expiry Occupancy  Agreement Status",field:"postExpiryOccupancyAgreementStatus",...p$e},{headerName:"Occupancy Payment Frequency",field:"occupancyPaymentFrequency",...c$e(e)},{headerName:"Rent Review Frequency",field:"rentReviewFrequency",filter:"agNumberColumnFilter"},{headerName:"Repair Liability",field:"repairLiability",...c$e(e)},{headerName:"Lease or Occupancy Agreement Review Date",field:"occupancyAgreementReviewDate",...u$e},{headerName:"Lease or Occupancy Agreement Start Date",field:"occupancyAgreementStartDate",...u$e}])}();return(0,fe.jsx)(cH,{title:"Your leases data",defaultExportFileName:"insite-lease-export",breadcrumbs:W$e,config:n,fetchRows:e,extraButtons:(0,fe.jsx)(T$e,{active:"lease"})})}const J$e=i$e("getInSiteDisposalsPage",[...t$e.property,...t$e.contract,"id","propertyId","contractId","surplusStatus","disposalDate","statusOfSale","datePropertyDisposalReceiptClaimed","disposalMethod","disposalProceeds","embargoPeriodStatus","reasonForPropertyDisposal","totalSurplusLandArea","estimatedHousingCapacity"]),Y$e=a$e("getInSiteDisposalsPageFilter"),H$e=o$e("Disposals");function K$e(){const e=XUe("getInSiteDisposalsPage",J$e),n=function(){const e=d$e("getInSiteDisposalsPageFilter",Y$e);return s$e([...m$e({getFilterValues:e}),...y$e({getFilterValues:e}),{headerName:"Surplus status",field:"surplusStatus",...c$e(e)},{headerName:"Disposal Date",field:"disposalDate",...u$e},{headerName:"Status of Sale",field:"statusOfSale",...c$e(e)},{headerName:"Date Property Receipt Claimed",field:"datePropertyDisposalReceiptClaimed",...u$e},{headerName:"Disposal Method",field:"disposalMethod",...c$e(e)},{headerName:"Disposal Proceeds",field:"disposalProceeds",filter:"agNumberColumnFilter"},{headerName:"40-day expiry status",field:"embargoPeriodStatus",...c$e(e)},{headerName:"Reason for Property Disposal",field:"reasonForPropertyDisposal",...c$e(e)},{headerName:"Total Surplus Area",field:"totalSurplusLandArea",filter:"agNumberColumnFilter"},{headerName:"Estimated Housing Capacity",field:"estimatedHousingCapacity",filter:"agNumberColumnFilter"}])}();return(0,fe.jsx)(cH,{title:"Your disposals data",defaultExportFileName:"insite-disposal-export",breadcrumbs:H$e,config:n,fetchRows:e,extraButtons:(0,fe.jsx)(T$e,{active:"disposal"})})}const Q$e=i$e("getInSiteVacantSpacesPage",[...t$e.property,...t$e.contract,"id","propertyId","contractId","vacantSpaceFloorArea","vacantSpaceFloorAreaMeasurement","vacationDate","availableStartDate","status","description","availabilityEndDate","occupyingOrganisation","occupierContactName","occupierContactEmail"]),Z$e=a$e("getInSiteVacantSpacesPageFilter"),X$e=o$e("Vacant spaces");function eMe(){const e=XUe("getInSiteVacantSpacesPage",Q$e),n=function(){const e=d$e("getInSiteVacantSpacesPageFilter",Z$e);return s$e([...m$e({getFilterValues:e}),...y$e({getFilterValues:e}),{headerName:"Vacant Space - Floor Area",field:"vacantSpaceFloorArea",filter:"agNumberColumnFilter"},{headerName:"Vacation Date",field:"vacationDate",...u$e},{headerName:"Vacant space Available Start Date",field:"availableStartDate",...u$e},{headerName:"Vacant space status",field:"status",...c$e(e)},{headerName:"Vacant Space Information on the vacant",field:"description",filter:"agTextColumnFilter"},{headerName:"Vacant space Availability End Date",field:"availabilityEndDate",...u$e},{headerName:"Occupying Organisation",field:"occupyingOrganisation",...c$e(e)},{headerName:"Space Occupier Contact Name",field:"occupierContactName",filter:"agTextColumnFilter"},{headerName:"Space Occupier Contact Email",field:"occupierContactEmail",filter:"agTextColumnFilter"}])}();return(0,fe.jsx)(cH,{title:"Your vacant spaces data",defaultExportFileName:"insite-vacant-space-export",breadcrumbs:X$e,config:n,fetchRows:e,extraButtons:(0,fe.jsx)(T$e,{active:"vacantSpace"})})}const nMe=e=>{let{dataAccessControls:n}=e;const{subject:t}=(0,m.g)();if(D8(t,n))switch(t){case"waste":return(0,fe.jsx)(VBe,{});case"electricity":return(0,fe.jsx)(pUe,{});case"gas":return(0,fe.jsx)(_Be,{});case"water":return(0,fe.jsx)(iUe,{});case"transport":return(0,fe.jsx)(HBe,{});case"fuel":return(0,fe.jsx)(BBe,{});case"materials":return(0,fe.jsx)(WBe,{dataAccessControls:n});case"refrigerants":return(0,fe.jsx)(yUe,{});case"heatSteam":return(0,fe.jsx)(ZBe,{});case"buildingEnergyRatings":return(0,fe.jsx)(eUe,{});case"hotelStays":return(0,fe.jsx)(oUe,{});case"investment":return(0,fe.jsx)(dUe,{});case"s3c1-activity-based-materials":return(0,fe.jsx)(WUe,{});case"s3c1-spend-based-materials":return(0,fe.jsx)(JUe,{});case"oilProduction":return(0,fe.jsx)(I4,{});case"liquid-fuels":return(0,fe.jsx)(g8,{});case"salesData":return(0,fe.jsx)(s8,{});case"emissionsDatabase":return(0,fe.jsx)(ZUe,{});case"insite-land-parcels":return(0,fe.jsx)(A$e,{});case"insite-breeams":return(0,fe.jsx)(C$e,{});case"insite-decs":return(0,fe.jsx)(I$e,{});case"insite-epcs":return(0,fe.jsx)(E$e,{});case"insite-occupations":return(0,fe.jsx)(B$e,{});case"insite-occupancy-facts":return(0,fe.jsx)(V$e,{});case"insite-leases":return(0,fe.jsx)(q$e,{});case"insite-disposals":return(0,fe.jsx)(K$e,{});case"insite-vacant-spaces":return(0,fe.jsx)(eMe,{});default:return null}return(0,fe.jsx)(m.C5,{to:"/v2/data"})},tMe=e=>{let{dataAccessControls:n}=e;const{subject:t}=(0,m.g)();if(D8(t,n))switch(t){case"waste":return(0,fe.jsx)(TUe,{});case"electricity":return(0,fe.jsx)(hUe,{});case"gas":return(0,fe.jsx)(vUe,{});case"water":return(0,fe.jsx)(kUe,{});case"transport":return(0,fe.jsx)(NUe,{});case"fuel":return(0,fe.jsx)(RUe,{});case"materials":return(0,fe.jsx)(LUe,{dataAccessControls:n});case"hotelStays":return(0,fe.jsx)(jUe,{});case"heatSteam":return(0,fe.jsx)(OUe,{});case"refrigerants":return(0,fe.jsx)(_Ue,{});case"investment":return(0,fe.jsx)(PUe,{});case"s3c1-activity-based-materials":return(0,fe.jsx)(HUe,{});case"s3c1-spend-based-materials":return(0,fe.jsx)(QUe,{});case"oilProduction":return(0,fe.jsx)(e8,{});case"liquid-fuels":return(0,fe.jsx)(UUe,{});case"salesData":return(0,fe.jsx)(c8,{});default:return null}return(0,fe.jsx)(m.C5,{to:"/v2/data"})},aMe=e=>{let{dataAccessControls:n}=e;const{subject:t}=(0,m.g)();if(D8(t,n))switch(t){case"electricity":case"gas":case"water":case"heatSteam":return(0,fe.jsx)(n5,{utility:t.toUpperCase()});default:return null}return(0,fe.jsx)(m.C5,{to:"/data"})},iMe=e=>{let{applicationData:{getAccountInfo:n}}=e;return(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"",element:(0,fe.jsx)(wBe,{})}),(0,fe.jsx)(m.qh,{path:":subject/view",element:(0,fe.jsx)(nMe,{dataAccessControls:n.accessControls.data})}),(0,fe.jsx)(m.qh,{path:":subject/uploads",element:(0,fe.jsx)(tMe,{dataAccessControls:n.accessControls.data})}),(0,fe.jsx)(m.qh,{path:":subject/uploads/ocr",element:(0,fe.jsx)(aMe,{dataAccessControls:n.accessControls.data})}),(0,fe.jsx)(m.qh,{path:":subject/uploads/alias/:id",element:(0,fe.jsx)(wFe,{})}),(0,fe.jsx)(m.qh,{path:":subject/",element:(0,fe.jsx)(m.C5,{to:"./view"})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:"/v2/data"})})]})};function lMe(e){const{data:{antivirusStatus:n}={}}=e,t=(0,f.useTheme)();switch(n){case gn.Qn.Infected:return(0,fe.jsx)(f.Icons.Warning,{sx:{color:t.sys.color.error}});case gn.Qn.Error:return(0,fe.jsx)(f.Icons.Error,{sx:{color:t.customColors.warning.color}});case gn.Qn.Pending:return(0,fe.jsx)(f.Icons.Error,{sx:{color:t.sys.color.onSurface}});case gn.Qn.Clean:return(0,fe.jsx)(f.Icons.Check,{sx:{color:t.extendedColors.environmental.color}});default:return null}}const rMe=(0,f.styled)("span")`
  height: 20px;
  width: 20px;
  border-radius: 50%;
  display: flex;
  background-color: ${e=>{switch(e.status){case"Overdue":return e.theme.sys.color.error;case"Due for review":return e.theme.customColors.warning.color;default:return e.theme.extendedColors.environmental.color}}};
`;function oMe(e){const{data:{reviewDateStatus:n}={}}=e;return n?(0,fe.jsx)(rMe,{status:n}):null}const sMe=(0,f.styled)(f.AgGrid)`
  height: calc(100vh - 216px); // header + page title height
  padding-bottom: 2px; // border bottom and shadow to show properly

  ${e=>{let{theme:n}=e;return n.breakpoints.down("lg")}} {
    height: calc(100vh - 268px); // header + page title height in lg
  }
`,dMe="checkbox";function cMe(e){let{fetchRows:n,accountId:t,library:a,category:i,setGridApi:l,gridApi:r,onSelectionChanged:o,onPaginationChanged:s}=e;const d=(0,C.m)(),c=(0,m.Zp)(),{showNotification:u}=tn(),p=(0,g.useCallback)(async e=>{try{const{data:{getDocumentsPageFilter:n}}=await d.query({query:wDe,variables:{accountId:t,field:e.colDef.colId,library:a||null,category:i||null}});e.success(n.map(e=>e.value?JSON.stringify(e):e.value))}catch(n){u(`Couldn't load filter values for column "${e.colDef.headerName}"`,"warning"),E.Cp(n)}},[t,d,u,a,i]),f=(0,g.useMemo)(()=>({async getRows(e){try{const{startRow:a,sortModel:i,filterModel:l}=e.request,r={accountId:t,offset:a,limit:25,sort:wn(i),filters:jn(l)},{rows:o,totalRows:s}=await n(r);e.success({rowData:o,rowCount:s})}catch(n){E.Cp(n),e.fail()}}}),[t,n]),y=(0,g.useMemo)(()=>({antivirusStatus:lMe,reviewStatus:oMe}),[]),h=(0,g.useCallback)(e=>{var n;n=e,Boolean(n.event?.target?.closest?.(`div[col-id="${dMe}"]`))||c(`${a&&i?`/documents/${a}/${i}`:"/documents/all"}/${e.data.id}`)},[i,a,c]),x=(0,g.useCallback)(e=>{l(e.api)},[l]),T=(0,g.useMemo)(()=>({getRowId:e=>e.data.id,pagination:!0,paginationPageSize:25,paginationPageSizeSelector:!1,cacheBlockSize:25,rowModelType:"serverSide",defaultColDef:{sortable:!0,resizable:!0,filter:!0,wrapText:!0,autoHeight:!0,cellDataType:!1},columnDefs:[{headerName:"",colId:dMe,field:dMe,minWidth:60,checkboxSelection:!0,headerCheckboxSelection:!0,filter:!1,sortable:!1},{colId:"fileName",headerName:"File Name",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},field:"fileName"},{colId:"reviewDateStatus",headerName:"Review Date Status",field:"reviewDateStatus",filter:"agSetColumnFilter",cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},cellRenderer:"reviewStatus",filterParams:{values:p,valueFormatter:On}},{colId:"reviewDate",headerName:"Review Date",field:"reviewDate",filter:"agDateColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},valueFormatter:e=>{let{value:n}=e;return kn(n)}},{colId:"referenceId",headerName:"ID",field:"referenceId",filter:"agTextColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0}},{colId:"createdByName",headerName:"Uploaded By",field:"createdByName",filter:"agSetColumnFilter",filterParams:{values:p,valueFormatter:On}},{colId:"createdAt",headerName:"Uploaded On",field:"createdAt",filter:"agDateColumnFilter",valueFormatter:e=>{let{value:n}=e;return kn(n)},filterParams:{buttons:["reset","apply"],closeOnApply:!0},initialSort:"desc"},{colId:"updatedAt",headerName:"Last Updated On",field:"updatedAt",filter:"agDateColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},valueFormatter:e=>{let{value:n}=e;return kn(n)}},{colId:"updatedByName",headerName:"Updated By",field:"updatedByName",filter:"agSetColumnFilter",filterParams:{values:p,valueFormatter:On}},{colId:"antivirusStatus",headerName:"Antivirus Status",field:"antivirusStatus",cellRenderer:"antivirusStatus",cellStyle:{textAlign:"center",verticalAlign:"middle"},filter:"agSetColumnFilter",filterParams:{values:p,valueFormatter:On}},{colId:"category",headerName:"Category",field:"category",filter:"agSetColumnFilter",filterParams:{values:p,valueFormatter:On}},{colId:"library",headerName:"Library",field:"library",filter:"agSetColumnFilter",filterParams:{values:p,valueFormatter:On}},{colId:"supplierName",headerName:"Supplier/Carrier",field:"supplierName",filter:"agSetColumnFilter",filterParams:{values:p,valueFormatter:On}},...Pj({library:a?.toUpperCase(),category:i})?[{colId:"startDate",headerName:"Start Date",field:"startDate",filter:"agDateColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},valueFormatter:e=>{let{value:n}=e;return kn(n)}},{colId:"expirationDate",headerName:"Expiration Date",field:"expirationDate",filter:"agDateColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0},valueFormatter:e=>{let{value:n}=e;return kn(n)}}]:[],{colId:"tags",headerName:"Tags",field:"tags",valueFormatter:e=>{let{value:n}=e;return n?n.map(e=>{let{tagName:n}=e;return n}).join(", "):""},filter:"agSetColumnFilter",filterParams:{values:p,valueFormatter:On},sortable:!1},{colId:"locations",headerName:"Locations",field:"locations",valueFormatter:e=>{let{value:n}=e;return n?n.map(e=>{let{name:n}=e;return n}).join(", "):""},filter:"agSetColumnFilter",filterParams:{values:p,valueFormatter:On},sortable:!1},{colId:"notes",headerName:"Notes",field:"notes",filter:"agTextColumnFilter",autoHeight:!1,filterParams:{buttons:["reset","apply"],closeOnApply:!0},valueFormatter:e=>{let{value:n}=e;return n?(0,hn.truncate)(n,{length:45}):""},sortable:!1}],rowStyle:{width:"100%",display:"flex",alignItems:"center"},suppressRowClickSelection:!0,rowSelection:"multiple",isRowSelectable:e=>!!e.data&&e.data.antivirusStatus===Vt&&e.data.source===Gt,key:`${i}-${a}`,onCellClicked:h,serverSideDatasource:f,onGridReady:x,onSelectionChanged:o,onPaginationChanged:s,components:y}),[p,y,h,x,o,s,i,f,a]);(0,g.useEffect)(()=>{if(r&&i){const e=[JSON.stringify({__typename:"FilterData",label:i,value:i})];try{r.getColumnFilterInstance("category")?.then(n=>{n?.setModel({values:e})?.then(()=>{r?.onFilterChanged("columnFilter")})})}catch{u(`Couldn't set filter for category "${i}"`,"warning")}}},[r,i,u]);const b=`${t}-${a||""}-${i||""}-documentsGridV2`;return(0,fe.jsx)(sMe,{gridKey:b,gridOptions:T},b)}const uMe=e=>{const{search:n,onSearchValueChange:t,placeholder:a="Search Documents..."}=e;return(0,fe.jsx)(f.TextField,{type:"search",name:"DocumentFiles__Search",placeholder:a,value:n,onChange:t})},pMe=(0,f.styled)(f.Text)`
  text-align: center;
  margin: 16px auto;
`,mMe=(0,f.styled)("hr")`
  height: 1px;
  background-color: ${e=>e.theme.sys.color.onSurface};
  margin: 16px 0;
`,fMe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 24px;
`;function yMe(e){let{isManagementSystem:n,library:t,category:a,folders:i=[],documentsExist:l=!1,searchValue:r="",searchPlaceholder:o,banners:s=[],onSearch:d=()=>{},gridApi:c,setGridApi:u=()=>{},showGrid:p,managementSystemId:m,managementSystemChapterId:f,onSelectionChanged:y,onPaginationChanged:h}=e;const x=(0,C.m)(),T=Je(),b=!i.length&&!l&&r,v=(0,g.useMemo)(()=>(l&&(r||n)||p)&&(0,fe.jsx)(cMe,{library:t,category:a,accountId:T,setGridApi:u,gridApi:c,onSelectionChanged:y,onPaginationChanged:h,fetchRows:async e=>{const n={...e};n.filters||(n.filters={});const i=_j(r,t,a,m,f),{filters:l}=n;i.set&&(l?.set||(l.set=[]),l.set=l.set.concat(i.set).filter(e=>!!e.values.length)),i.text&&(l?.text||(l.text=[]),l.text.push(...i.text));const{data:{getDocumentsPage:{totalRows:o,rows:s}}}=await x.query({query:ODe,variables:n,fetchPolicy:"network-only"});return{rows:s,totalRows:o}}},T),[l,r,n,p,t,a,T,u,c,y,h,m,f,x]);return(0,fe.jsxs)("div",{children:[!p&&(0,fe.jsxs)(fMe,{children:[(0,fe.jsx)(uMe,{search:r,onSearchValueChange:e=>{let{target:{value:n}}=e;d(n)},placeholder:o}),(0,fe.jsx)(mY,{id:"documentBanners",staticBanners:s})]}),b?(0,fe.jsx)(pMe,{typescale:"title",size:"large",children:`No Results found for ${r||"your search."}`}):(0,fe.jsxs)(fe.Fragment,{children:[!!i.length&&(0,fe.jsx)(IDe,{folders:i}),l&&!!i.length&&(r||m)&&(0,fe.jsx)(mMe,{}),v]})]})}const gMe=(0,f.styled)(f.Button)`
  width: 160px;
`,hMe=e=>{let{gridApi:n,accountId:t,selectedDocumentIds:a,withExportPage:i=!0,disabled:l=!1}=e;const{showNotification:r}=tn(),o=n?.api||n,[s]=(0,ln.n)(jDe,{onCompleted:()=>{r("Your documents have been exported. Note: Web Links or Dashboard References are skipped.","success")},onError:()=>{r("Something went wrong. Try reducing the number of documents in export.","danger")}}),d=(0,g.useCallback)(e=>e.filter(e=>e.antivirusStatus===Vt&&e.source===Gt).map(e=>({id:e.id,name:e.fileName})),[]),c=(0,g.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=[];o?.forEachNode(t=>{e&&!t.isSelected()||n.push(t.data)});const a=d(n);if(a.length){r("Starting document export. For large exports, please wait up to 30 seconds.","success");const{data:e}=await s({variables:{files:a,accountId:t}});e?.getZippedFileExport&&window.open(e.getZippedFileExport)}else r("Your selection only contains Web Links and/or Dashboard References. These can not be exported.","danger")},[o,r,t,d,s]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(gMe,{variant:"contained",onClick:()=>c(!0),disabled:0===a.length||l,children:["Export (",a.length,")"]}),i&&(0,fe.jsx)(gMe,{variant:"contained",onClick:()=>c(),disabled:l,children:"Export Page"})]})},xMe=(0,f.styled)(f.Button)({height:"40px","& .MuiButton-startIcon":{marginRight:0}});function TMe(e){let{folder:n}=e;const[t,a]=(0,g.useState)(!1),{purge:i,purging:l}=function(){const e=Je(),[n,{loading:t}]=(0,ln.n)(kj),a=Wd();return{purge:async t=>{let{id:i,parentId:l}=t;await n({variables:{accountId:e,ids:[i]}}),a([{fieldName:"getDocumentFolder",args:{accountId:e,id:i},broadcast:!1},{fieldName:"getDocumentFolders",args:{accountId:e,parentId:l},broadcast:!1}])},purging:t}}(),{showNotification:r}=tn(),o=(0,m.Zp)(),{canDeleteFolder:s}=Jj();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(xMe,{variant:"outlined",color:"error",onClick:()=>a(!0),disabled:!n.empty||!s,children:"Delete folder"}),(0,fe.jsx)(GS,{title:"Delete Folder",body:`Are you sure you want to delete "${n.name}"?`,disabled:l,open:t,onClose:()=>a(!1),onConfirm:async()=>{try{await i(n),r("Folder has been deleted!","success");const e=["documents"];n.parentId&&e.push(n.parentId),o(`/${e.join("/")}`)}catch(e){E.Cp(e),r("Failed to delete folder. Please try again. If the problem persists, contact support.","danger")}}})]})}function bMe(e){let{setError:n,expectedErrors:t}=e;return e=>{if(e instanceof zS.K4){const{message:a}=e,i=t[a];if(i)return n(i.field,{message:i.message}),!0}return!1}}const vMe="root",CMe={"Folder must be unique":{field:"name",message:"Folder name already exists"}};function kMe(e){let{onClose:n,parent:t,folder:a}=e;t=t||a?.parent;const i=!!a,[l,r]=(0,g.useState)(!1),o=function(e){let{folder:n}=e;const t=Je(),[a]=(0,ln.n)(n?Cj:vj),i=Wd();return async e=>{const l="id"in e&&e.id?e:null,r=l?null:e,{data:o}=await a({variables:{input:{...e,accountId:t}}}),s=[{fieldName:"getDocumentFolders",args:{accountId:t,parentId:e.parentId}}];return l&&(n?.parent&&l.parentId!==n.parent.id&&s.push({fieldName:"getDocumentFolders",args:{accountId:t,parentId:n.parent.id}}),s.push({fieldName:"getDocumentFolder",args:l.parentId?{accountId:t,id:l.id}:void 0}),s.push({fieldName:"getDocumentRecordById"}),s.push({fieldName:"getDocumentsPage"})),r?.parentId&&s.push({fieldName:"getDocumentFolder",args:{accountId:t,id:r.parentId}}),i(s),l?.id||o.createDocumentFolder}}({folder:a}),{showNotification:s}=tn(),d=function(e){let{preloaded:n,skip:t,excludeRoot:a}=e;const i=Yj({preloaded:n,skip:t});return(0,g.useMemo)(()=>[...a?[]:[{value:vMe,label:"No parent"}],...i.sort((e,n)=>n.value.localeCompare(e.value))],[i])}({preloaded:t,skip:i&&!t,excludeRoot:i&&!!t}),{handleSubmit:c,control:u,setError:p,formState:{isDirty:m,isValid:y}}=(0,Ng.mN)({defaultValues:{name:a?.name||"",parent:t?.id||vMe},mode:"onChange"}),h=bMe({setError:p,expectedErrors:CMe}),x=y&&m&&!l;return(0,fe.jsx)(f.Modal,{open:!0,onClose:()=>n(),title:(i?"Edit":"Create")+" Folder",children:(0,fe.jsx)("form",{onSubmit:c(async e=>{let{parent:t,name:l}=e;r(!0);try{const e=t===vMe?void 0:t,r=await o({name:l,parentId:e,id:a?.id});s(`'Folder has been ${i?"updated":"created"}!'`,"success"),n({name:l,id:r,parentId:e})}catch(e){h(e)||(E.Cp(e),s(`Failed to ${i?"update":"create"} folder. Please try again. If the problem persists, contact support.`,"danger"))}finally{r(!1)}}),children:(0,fe.jsxs)(f.Grid,{container:!0,spacing:3,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"parent",control:u,render:e=>{let{field:n,fieldState:{error:a}}=e;return(0,fe.jsx)(f.Select,{...n,label:"Parent folder",fullWidth:!0,options:d,disableSorting:!0,error:!!a,helperText:a?.message,disabled:i&&!t,onChange:e=>{let{value:t}=e;return n.onChange(t)}})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"name",control:u,rules:{required:"Name is required",maxLength:{value:100,message:"Name cannot exceed 100 characters"}},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Name",fullWidth:!0,error:!!t,helperText:t?.message})}})}),(0,fe.jsxs)(f.Grid,{size:12,container:!0,spacing:2,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,onClick:()=>n(),children:"Close"})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",disabled:!x,children:l?"Submitting...":"Submit"})})]})]})})})}function SMe(e){let{folder:n,onComplete:t}=e;const[a,i]=(0,g.useState)(!1),{canEditFolder:l}=Jj();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(xMe,{variant:"outlined",disabled:!l,onClick:()=>i(!0),children:"Edit folder"}),a&&(0,fe.jsx)(kMe,{onClose:e=>{e&&t&&t(e),i(!1)},folder:n})]})}const NMe=(0,f.styled)("span")`
  height: fit-content;
`;function AMe(e){let{disabled:n,onClick:t}=e;const a=(0,fe.jsx)(xMe,{disabled:!!n,variant:"contained",onClick:t,startIcon:(0,fe.jsx)(f.CustomIcons.Upload,{color:"onPrimary"}),children:"Upload"});return"string"==typeof n?(0,fe.jsx)(Vx.A,{title:n,children:(0,fe.jsx)(NMe,{children:a})}):a}const RMe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  gap: 12px;
`,DMe=e=>{const n=(0,dc.A)(),{documentFolders:t}=e,a=Je(),{library:i,type:l}=(0,m.g)(),[r,o]=(0,g.useState)(),[s,d]=(0,g.useState)([]),c=lr(),u=!!c.document.find(e=>e.startsWith("create")),p=!!c.document.find(e=>e.startsWith("delete")),[y,h]=(0,g.useState)(!1),[T,b]=(0,g.useState)(!1),[v,C]=(0,Gr.useQueryParam)("search",Gr.StringParam),{showNotification:k}=tn(),S=(0,m.Zp)(),N=!!l&&Fj(l),[A,{loading:R}]=(0,ln.n)(hj,{onError:e=>{k(`Failed to delete documents: ${e.message}`,"danger")},onCompleted:()=>{k(`Successfully deleted ${s.length} document${s.length>1?"s":""}`,"success"),d([]),setTimeout(()=>{r?.refreshServerSide()},1e3)}}),D=Wd(),L=function(e){let{id:n}=e;const t=Je(),{canGetFolder:a}=Jj(),{data:i}=(0,x.IT)(Rj,{variables:n?{accountId:t,id:n}:{},skip:!n||!a});return i?.getDocumentFolder}({id:!(!l||!N)&&l}),I=(0,g.useMemo)(()=>l&&"all"!==l?N?{title:L?.name||" ",filterValue:l}:i?t.find(e=>e.link===l):null:null,[i,l,t,N,L]),j=(0,g.useMemo)(()=>{const e=[{label:n.formatMessage({id:"pages.documents.breadcrumbs.one"}),to:"/documents"}];return N?L&&e.push({label:L.parent.name,to:`/documents/${L.parent.id}`}):i?e.push({label:xn().capitalize(i),to:`/documents/${i}`}):e.push({label:"All",to:"/documents/all"}),e},[n,i,N,L]),w=(0,g.useMemo)(()=>I?.title||"All Documents",[I]),{documentsExist:O,error:E,loading:_}=qDe({accountId:a,filters:_j(v||"")},!v),F=async e=>{e&&h(!1),setTimeout(()=>{r?.refreshServerSide()},1e3)},P=(0,g.useCallback)(e=>{k(e.message,"danger")},[k]),B=(0,g.useCallback)(()=>{if(r){const e=[],n=r.paginationGetPageSize(),t=r.paginationGetCurrentPage()*n,a=t+n-1;r.forEachNode(n=>{n.rowIndex>=t&&n.rowIndex<=a&&n.isSelected()&&e.push(n.data?.id)}),d(e)}},[r]),U=(0,g.useCallback)(()=>{r&&r.deselectAll()},[r]),$=(0,g.useCallback)(()=>{r&&r.setFilterModel(null)},[r]),M=(0,g.useCallback)(()=>{s.length&&b(!0)},[s]),V=(0,g.useCallback)(async()=>{s.length&&(await A({variables:{ids:s}}),L&&D([{fieldName:"getDocumentFolder",args:{accountId:a,id:L.id}}]))},[A,s]),G=i?.toUpperCase(),z=hDe.find(e=>e.link===l)?.filterValue;return(0,fe.jsxs)(f.Page,{title:{crumbs:j,content:w,actionButton:(0,fe.jsxs)(RMe,{children:[(0,fe.jsx)(xMe,{variant:"outlined",onClick:$,children:"Clear Filters"}),p&&(0,fe.jsxs)(f.Button,{variant:"outlined",color:"primary",disabled:0===s.length||R,onClick:M,children:["Delete (",s.length,")"]}),L&&(0,fe.jsx)(SMe,{folder:L,onComplete:e=>{L.parentId!==e.parentId&&S(`/documents/${e.parentId}/${e.id}`)}}),L&&(0,fe.jsx)(TMe,{folder:L}),u&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(hMe,{gridApi:r,accountId:a,selectedDocumentIds:s,withExportPage:!1,disabled:R}),(0,fe.jsx)(AMe,{onClick:()=>h(!0)})]})]})},loading:_&&!O,error:E,children:[(0,fe.jsx)(yMe,{showGrid:!!l||!i,library:i,category:I?.filterValue,gridApi:r,setGridApi:o,searchValue:v,onSearch:C,documentsExist:O,onSelectionChanged:B,onPaginationChanged:U}),y&&(0,fe.jsx)(mw,{single:Pj({library:G,category:z}),predefinedValues:{library:G,category:z,customLibrary:L?.parent,customCategory:L},onDismiss:()=>{h(!1)},onComplete:()=>{F(!0)},onUpload:()=>F(!1),onError:P}),(0,fe.jsx)(GS,{open:T,title:"Delete Documents",body:`Are you sure you want to delete ${s.length} document${s.length>1?"s":""}? This action cannot be undone.`,confirmButtonText:"Delete",closeButtonText:"Cancel",confirmButtonColor:"primary",onConfirm:V,onClose:()=>b(!1),disabled:R})]})},LMe=e=>[...e?.type?.length?[{title:"Type:",value:e.type.join(", ")}]:[],{title:"Review Date:",value:e?.reviewDate?Lj(e.reviewDate):"-"},{title:`${e?.folders?.child.name||e?.category||"Reference"} ID:`,value:e?.referenceId||"-"},{title:"Supplier/Carrier:",value:e?.supplierName||"-"},...Pj(e)?[{title:"Start date:",value:e?.startDate?kn(e?.startDate):"-"},{title:"Expiration date:",value:e?.expirationDate?kn(e?.expirationDate):"-"}]:[],...e?.managementSystemCode?[{title:"Management System Reference:",value:e.managementSystemCode.toUpperCase()}]:[],{title:"Uploaded on:",value:e?Ij(e.createdAt):"-"},{title:"Uploaded by:",value:e?.createdBy?Wi(e.createdBy):"-"},{title:"Last updated on:",value:e?.updatedAt?Ij(e.updatedAt):"-"},{title:"Last updated by:",value:e?.updatedBy?Wi(e.updatedBy):"-"},{title:"Tags:",value:e?.tags?.length?e.tags.map(e=>e.tagName).join(", "):"-"},{title:"Locations:",value:e?.locations?.length?e.locations.map(e=>e.name).join(", "):"-"},{title:"Notes:",value:e?.notes||"-"}],IMe=(0,f.styled)(f.Grid)`
  display: flex;
  flex-direction: column;
  margin-top: 16px;
`,jMe=(0,f.styled)(f.Grid)`
  display: flex;
  justify-content: space-between;
  align-items: center;
`,wMe=(0,f.styled)(jMe)`
  padding: 24px;
  border-bottom: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.surfaceVariant}};
`,OMe=(0,f.styled)(f.Text)``.withComponent("h4"),EMe=(0,f.styled)(f.Grid)`
  display: flex;
  flex-direction: column;
  margin-left: 16px;
  gap: 4px;
`,_Me=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  gap: 8px;
`,FMe=(0,f.styled)(f.Icons.TextSnippetOutlined)`
  height: 56px;
  width: 56px;
`,PMe=(0,f.styled)(rH)`
  ${e=>{let{theme:n}=e;return n.breakpoints.down("md")}} {
    display: flex;
    justify-content: space-between;
  }
`,BMe=(0,f.styled)(f.Button)`
  width: 100%;
`,UMe=(0,f.styled)(f.Modal)`
  .TitleClassName > h2 {
    text-align: center;
  }
`,$Me=e=>{let{showDeleteModal:n,setShowDeleteModal:t,onDelete:a}=e;return(0,fe.jsx)(UMe,{open:n,titleClassName:"TitleClassName",title:"Are you sure you want to delete this Document?",onClose:()=>t(!1),children:(0,fe.jsxs)(jMe,{container:!0,children:[(0,fe.jsx)(f.Grid,{size:5.5,children:(0,fe.jsx)(BMe,{variant:"contained",onClick:a,children:"Yes"})}),(0,fe.jsx)(f.Grid,{size:5.5,children:(0,fe.jsx)(BMe,{variant:"contained",onClick:()=>t(!1),children:"No"})})]})})};function MMe(){const e=(0,m.Zp)(),n=lr(),{id:t,library:a}=(0,m.g)(),i=!a,{showNotification:l}=tn(),[r,o]=(0,g.useState)(!1),[s,d]=(0,g.useState)(!1),c=Je(),{token:u}=qe(),[p]=(0,ln.n)(gj),y=Wd(),h={id:t,accountId:c},{data:T,error:b,loading:v}=(0,x.IT)(yj,{variables:h}),{getDocumentDownloadLink:k,retrievingDownloadLink:S}=function(){const e=Je(),[]=(0,g.useState)(),[n,{loading:t,error:a}]=(0,Ul._)(Dj),i=function(){const{showNotification:e}=tn();return()=>e("Unable to retrieve the download link. Please try again.","danger")}();return(0,g.useEffect)(()=>{a&&i()},[a]),{getDocumentDownloadLink:async t=>{if(!t)return null;try{const{data:a}=await n({variables:{accountId:e,documentId:t}});return a?.getDocumentDownloadLink}catch(e){return i(),(0,E.Cp)(e),null}},retrievingDownloadLink:t}}(),N=T?.getDocumentRecordById,A=N?.antivirusStatus===Vt,R=!n.document.find(e=>e.startsWith("create")),D=((e,n,t)=>!!e.document?.find(e=>e?.startsWith(n)&&!e.endsWith("Own"))||e.document?.includes(`${n}Own`)&&t)(n,"delete",N?.createdBy?.id===u.sub),L=(0,C.m)(),I=N?`${N?.folders?.child.name||N.category} Document`:"Document",j={crumbs:(()=>{const e=[{label:"Documents",to:"/documents"}];if(i)e.push({label:"All",to:"/documents/all"});else if(N){const{folders:n,library:t,category:a}=N;if(n)e.push({label:n.parent.name,to:`/documents/${n.parent.id}`}),e.push({label:n.child.name,to:`/documents/${n.parent.id}/${n.child.id}`});else if(t){const n=t.toLowerCase(),i=a,l=xn().capitalize(t),r=xn().startCase(a);e.push({label:`${l}`,to:`/documents/${n}`}),e.push({label:`${r}`,to:`/documents/${n}/${i}`})}}return e})(),content:I,actionButton:(0,fe.jsxs)(PMe,{wrap:"wrap",container:!0,size:{xs:12,md:6},children:[(0,fe.jsx)(lH,{size:{xs:5.5,md:2.5},children:(0,fe.jsx)(f.Button,{variant:"contained",onClick:()=>e(-1),children:"Back"})}),(0,fe.jsx)(lH,{size:{xs:5.5,md:2.5},children:(0,fe.jsx)(f.Button,{variant:"contained",disabled:!A||S,onClick:async()=>{if(A){const e=N.link||await k(t);e&&window.open(e)}},children:S?"Opening...":"Open"})}),!R&&(0,fe.jsx)(lH,{size:{xs:5.5,md:2.5},children:(0,fe.jsx)(f.Button,{variant:"contained",disabled:!N,onClick:()=>d(!0),children:"Edit"})}),D&&(0,fe.jsx)(lH,{size:{xs:5.5,md:2.5},children:(0,fe.jsx)(f.Button,{variant:"contained",disabled:!N,onClick:()=>o(!0),children:"Delete"})})]})};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(f.Page,{loading:v,error:b,title:j,children:[(0,fe.jsxs)(f.Grid,{container:!0,children:[(0,fe.jsx)(FMe,{}),N&&(0,fe.jsxs)(EMe,{children:[(0,fe.jsx)(f.Text,{typescale:"headline",size:"small",children:xn().truncate(N.fileName,{length:50})}),(0,fe.jsxs)(_Me,{children:[(0,fe.jsxs)(f.Text,{typescale:"title",size:"medium",children:[N?.folders?.child.name||N.category||""," |"]}),(0,fe.jsxs)(f.Text,{typescale:"body",size:"large",children:["Uploaded on ",Ij(N.createdAt)]})]})]})]}),(0,fe.jsx)(IMe,{container:!0,children:LMe(N).map(e=>{let{title:n,value:t}=e;return(0,fe.jsxs)(wMe,{container:!0,children:[(0,fe.jsx)(OMe,{typescale:"title",size:"medium",children:n}),(0,fe.jsx)(f.Text,{typescale:"body",size:"large",children:t})]},n)})})]}),(0,fe.jsx)($Me,{onDelete:async()=>{try{await p({variables:{id:t}});const n=[{fieldName:"getAspectById"},{fieldName:"getLegislationById"}];N?.folderId&&n.push({fieldName:"getDocumentFolder",args:{accountId:c,id:N.folderId}}),y(n),e(-1),l("Document has been successfully deleted","success")}catch(e){l("An Error has occurred","danger")}finally{o(!1)}},showDeleteModal:r,setShowDeleteModal:o}),s&&N&&(0,fe.jsx)(ow,{document:N,predefinedValues:{customLibrary:N.folders?.parent,customCategory:N.folders?.child},onComplete:n=>{L.writeQuery({query:yj,variables:h,data:{getDocumentRecordById:n}}),d(!1),l("Document has been edited!","success"),(N.library!==n.library||N.category!==n.category)&&!i&&e((e=>{let{library:n,category:t,id:a,folders:i}=e;const l="/documents";return n?i?`${l}/${i.parent.id}/${i.child.id}/${a}`:`${l}/${n.toLowerCase()}/${t}/${a}`:`${l}/all/${a}`})(n),{replace:!0})},onError:e=>l(e.message,"danger"),onDismiss:()=>d(!1)})]})}const VMe=e=>{let{libraries:n,types:t}=e;const[a,i]=(0,g.useState)(!1),[l,r]=(0,g.useState)(!1),{showNotification:o}=tn(),{data:s}=Mr(),{canCreateFolder:d}=Jj(),{library:c}=(0,m.g)(),u=!!c&&Fj(c),p=(c?t.filter(e=>e.libraries.includes(c.toUpperCase())):n).map(e=>({id:e.id,name:e.title,url:`./${e.link}`,icon:{color:Ej("library"in e&&e.library?e.library:c),name:"folder"},disabled:!(!("accessControlIndexer"in e)||!e.accessControlIndexer||xn().get(s,e.accessControlIndexer))})),{customFolders:y,parentFolder:h,loading:T}=function(e){let{parentId:n,skip:t}=e;const a=Je(),{canGetFolder:i}=Jj(),{data:l,error:r,loading:o}=(0,x.IT)(n?Aj:Nj,{variables:{accountId:a,parentId:n},skip:t||!i});if(r)throw r;const s=l?.getDocumentFolders,d=l?.getDocumentFolder;return{customFolders:(0,g.useMemo)(()=>(s||[]).map(e=>({id:e.id,name:e.name,icon:{color:"quaternary",name:"folder"},url:`./${e.id}`})),[s,n]),parentFolder:d,loading:o}}({skip:!!c&&!u,parentId:c});return p.push(...y),(0,fe.jsxs)(f.Page,{loading:T,title:{content:u?h?h.name:" ":c?`${xn().capitalize(c)} Documents`:"Documents",crumbs:(()=>{const e=[{label:"Documents",to:"../documents"}];return u?h&&e.push({label:h.name,to:`../../documents/${h.id}`}):c?e.push({label:xn().capitalize(c),to:`../../documents/${c}`}):e.push({label:"Overview"}),e})(),actionButton:(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(xMe,{variant:"outlined",disabled:!d,onClick:()=>r(!0),children:"Create folder"}),h&&(0,fe.jsx)(SMe,{folder:h}),h&&(0,fe.jsx)(TMe,{folder:h}),(0,fe.jsx)(AMe,{onClick:()=>i(!0),disabled:!(!u||0!==y.length)&&"Add a category to enable uploads"})]})},children:[!!p.length&&(0,fe.jsx)(IDe,{folders:p}),a&&(0,fe.jsx)(mw,{onDismiss:()=>i(!1),onError:e=>{o(e.message,"danger")},predefinedValues:{library:c?.toUpperCase()||null,customLibrary:h}}),l&&(0,fe.jsx)(kMe,{onClose:()=>r(!1),parent:h})]})};function GMe(e){let{onDismiss:n,onError:t,onComplete:a,managementSystem:i,chapter:l,refetch:r}=e;const o=Je(),[s]=(0,ln.n)(Tj),d=(0,g.useMemo)(()=>Ia(i,l||i),[l,i]),c=(0,g.useCallback)(async(e,n,d)=>{if(d.length)return t(new Error(`${d.length} of your documents failed to upload and thus weren't attached.`));await Promise.all(n.map(async e=>{try{await s({variables:{accountId:o,documentId:e.id,systemId:i.id,linkId:l?l.id:i.id}})}catch(e){e instanceof Error&&t(e)}})),a("Documents have been successfully attached."),r()},[o,s,l,i.id,a,t,r]);return(0,fe.jsx)(mw,{predefinedValues:{library:gn.zM.Governance,category:"Management Systems",managementSystemCode:d},onDismiss:n,onError:t,onComplete:c})}const zMe=(0,f.styled)(f.Button)`
  height: 40px;
`;function WMe(){const e=(0,dc.A)(),{id:n,itemId:t}=(0,m.g)(),{pathname:a}=(0,m.zy)(),{showNotification:i}=tn(),[l,r]=(0,g.useState)(),[o,s]=(0,g.useState)(!1),d=Je(),c=lr(),{data:u,loading:p,error:y,refetch:h}=(0,x.IT)(xj,{variables:{id:n,accountId:d},partialRefetch:!0,returnPartialData:!0,errorPolicy:"all"}),T=u?.getManagementSystemById,b=T?.title||"Management System",{tree:v}=Na(T),{folders:C}=gLe(T,v,t,a),k=Object.values(v).map(e=>fLe(e,a,t)),[S,N,A]=fd(k,["name","title","referenceId","managementSystemCode"]),[,R]=NLe()(A,e=>"DocumentRecord"===e.__typename),D=S?R:C,L=xLe(e,T,v,v[t]).map(e=>({to:e.to,label:e.title})),I={accountId:d,filters:_j(S,bLe,vLe,n,t||null)},{documentsExist:j}=qDe(I),w=(0,g.useCallback)(()=>s(!1),[]),O=(0,g.useCallback)(e=>{i(e,"success"),w()},[i,w]),E=(0,g.useCallback)(e=>{i(e.message,"danger"),w()},[i,w]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Page,{title:{crumbs:L,content:b,actionButton:!!c.governance.find(e=>e.startsWith("attachDocumentToManagementSystem"))&&(0,fe.jsx)(zMe,{variant:"contained",onClick:()=>s(!0),children:"Attach Documents"})},loading:p&&!j,error:y,children:(0,fe.jsx)(yMe,{folders:D,library:bLe,category:vLe,isManagementSystem:!0,documentsExist:j,searchValue:S,onSearch:N,gridApi:l,setGridApi:r,managementSystemId:n,managementSystemChapterId:t})}),o&&(0,fe.jsx)(GMe,{managementSystem:T,chapter:v[t],onComplete:e=>O(e),onError:e=>E(e),onDismiss:w,refetch:()=>h({id:n,accountId:d})})]})}const qMe=(0,ce.Ay)(function(e){let{intl:n}=e;const t=Je(),a={accountId:t},{data:i}=(0,x.IT)(Yue,{variables:a}),{pathname:l}=(0,m.zy)(),r=TLe(i?.getAvailableManagementSystems||[],l),[o,s]=(0,g.useState)(),d=hLe(n).map(e=>{let{to:n,title:t}=e;return{to:n,label:t}}),[c,u,p]=fd(r,["name"]),{documentsExist:y,error:h,loading:T}=qDe({accountId:t,filters:_j(c||"")},!c);return(0,fe.jsx)(f.Page,{title:{crumbs:d,content:"Management Systems"},loading:T&&!y,error:h,children:(0,fe.jsx)(yMe,{folders:p,documentsExist:y,onSearch:u,gridApi:o,setGridApi:s,searchValue:c,searchPlaceholder:"Search management systems",library:bLe,category:vLe})})}),JMe=(0,f.styled)("div")`
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,YMe=()=>{const e=or();return(0,fe.jsx)(JMe,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(VMe,{libraries:qj,types:hDe})}),(0,fe.jsx)(m.qh,{path:e.docs.all,element:(0,fe.jsx)(DMe,{documentFolders:hDe})}),(0,fe.jsx)(m.qh,{path:`${e.docs.all}/:id`,element:(0,fe.jsx)(MMe,{})}),(0,fe.jsx)(m.qh,{path:e.docs.systems,element:(0,fe.jsx)(qMe,{})}),(0,fe.jsx)(m.qh,{path:`${e.docs.systems}/:id`,element:(0,fe.jsx)(WMe,{})}),(0,fe.jsx)(m.qh,{path:`${e.docs.systems}/:id/:itemId`,element:(0,fe.jsx)(WMe,{})}),(0,fe.jsx)(m.qh,{path:"/:library",element:(0,fe.jsx)(mLe,{children:(0,fe.jsx)(VMe,{libraries:qj,types:hDe})})}),(0,fe.jsx)(m.qh,{path:"/:library/:type",element:(0,fe.jsx)(mLe,{children:(0,fe.jsx)(DMe,{documentFolders:hDe})})}),(0,fe.jsx)(m.qh,{path:"/:library/:type/:id",element:(0,fe.jsx)(mLe,{children:(0,fe.jsx)(MMe,{})})}),(0,fe.jsx)(m.qh,{path:"/:library/:id/edit",element:(0,fe.jsx)(mLe,{children:(0,fe.jsx)(MMe,{})})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:e.docs.root})})]})})},HMe=De("REACT_APP_FLOW_URI")||De("REACT_APP_BASE_URL"),KMe=(0,f.styled)("iframe")`
  width: 100%;
  height: 100vh;
`,QMe=()=>(0,fe.jsx)(KMe,{id:"flowsFrame",src:`${HMe}/rio-flows/v2/flows/`}),ZMe=(0,f.styled)("div")`
  height: 100%;
  overflow: visible;
`,XMe=(0,f.styled)("div")`
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: ${e=>{let{theme:n}=e;return n.sys.color.onPrimary}};
  opacity: 0.5;
  width: 100%;
  height: 100%;
`,eVe=()=>{const e=zo(),n=!!e&&e.accessControls.flows;return(0,fe.jsxs)(fe.Fragment,{children:[!n&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(XMe,{}),(0,fe.jsx)(Ae,{name:"FormsContainer_Access_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Flows",body:"Currently Flows are not included in your subscription, if you’d like access to Flows please contact Rio AI Ltd or get in touch with your Business Admin.",dismissable:!0,onDismiss:()=>{}})]}),n&&(0,fe.jsx)(ZMe,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(QMe,{})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(Oc,{})})]})})]})},nVe=(0,f.styled)("div")`
  flex: 1 1 auto;

  // Fallbacks for IE
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-center;

  // CSS grid for real browsers
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 24px;
`,tVe=(0,f.styled)(p.Link)`
  ${e=>e.disabled?"\n    opacity: 0.5;\n  ":""}
`,aVe=e=>{let{areas:n,accessControls:t}=e;return(0,fe.jsx)(nVe,{children:n.map(e=>{let n=e.link;t[e.accessIndex]||(n="/contact");let a="";switch(e.icon){case"balance-scale":a="Balance";break;case"university":a="AccountBalance";break;case"clipboard-list":a="AssignmentOutlined";break;case"thumbs-up":a="ThumbUp";break;case"subscript":a="AdsClick";break;case"drafting-compass":a="Architecture";break;case"notes-medical":a="MedicalServices";break;case"scroll":a="AutoStories";break;default:a=""}const i=e.comingSoon||!t[e.accessIndex];let l="";return i&&!t[e.accessIndex]&&(l="Upgrade now"),i&&e.comingSoon&&(l="Coming soon"),(0,fe.jsx)(tVe,{to:n,disabled:i,children:(0,fe.jsx)(f.Card,{title:e.title,subContent:e.description,iconName:a,chipContent:l})},e.id)})})},iVe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
`,lVe=e=>{const{accessControls:n,isShouldUserUpgrade:t}=e,{data:a,loading:i}=Xs(),l=lr(),r=hse.filter(e=>!!l[e.permissionSection]?.find(n=>n.startsWith(e.basePermission))),[o,s]=hn.partition(r,e=>!!e.restricted),d=((e,n)=>{const t=[];return e.forEach(e=>{n[e.accessIndex]?.find(n=>n.id===e.restrictionId)&&t.push(e)}),t})(o,{systems:a}),c=s.concat(d);return(0,fe.jsx)(f.Page,{title:{content:"Governance",crumbs:[{label:"Governance"},{label:"Areas"}]},children:(0,fe.jsxs)(iVe,{children:[t&&(0,fe.jsx)(Ae,{name:"ComplyContainer_Access_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Governance",body:"Currently Governance is not included in your subscription, if you'd like to use this tool to assess your compliance risk, upload evidence and get automated alerts please contact Rio AI Ltd or your Rio Business Admin.",dismissable:!1,onDismiss:()=>{}}),l.loading||i?(0,fe.jsx)(f.Loader,{size:100}):(0,fe.jsx)(aVe,{areas:c,accessControls:n})]})})},rVe=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: center;
  gap: 8px;
`,oVe=(0,f.styled)("div")({padding:"30px 0"}),sVe=(0,f.styled)("div")(e=>{let{theme:n,type:t}=e;return{display:"column"===t?"block":"flex",padding:20,borderBottom:`1px solid ${n.sys.color.surfaceVariant}`}}),dVe=(0,f.styled)("div")(e=>{let{theme:n,type:t}=e;return{textAlign:"left",fontWeight:n.sys.typescale.label.medium.weight,..."column"===t?{marginBottom:10}:{flex:1}}}),cVe=(0,f.styled)("div")(e=>{let{type:n}=e;return{textAlign:"column"===n?"left":"right"}}),uVe=(0,f.styled)(p.Link)({display:"block",textDecoration:"underline","&:not(:last-child)":{marginBottom:3}});function pVe(){const[e]=ed(ah,{notifyOnNetworkStatusChange:!0,fetchPolicy:"network-only"});return async n=>{const{error:t,data:a}=await e({variables:n});if(t||!a)throw t||new Error("No data returned from query");return a.getAspectsByAccountId}}const mVe=(e,n)=>({id:n?.id||null,accountId:e,scope:n?.scope||gn.HG.Account,locationIds:tl(n?.locations,Ua),tagIds:tl(n?.tags,e=>{let{id:n,tagName:t}=e;return{value:n,label:t}}),ownerId:n?.owner?.id||"",activity:n?.activity?.id||"",departments:tl(n?.departments,Ua),aspects:tl(n?.aspects,Ua),impacts:tl(n?.impacts,Ua),legislationIds:tl(n?.legislations,e=>{let{id:n,title:t}=e;return{value:n,label:t}}),likelihoodNoControl:n?.likelihoodNoControl?.toString()||"",severityNoControl:n?.severityNoControl?.toString()||"",emergencyConditions:tl(n?.emergencyConditions,Ua),controlMeasures:tl(n?.controlMeasures,Ua),likelihoodControl:n?.likelihoodControl?.toString()||"",severityControl:n?.severityControl?.toString()||"",reviewDate:n?.reviewDate||"",status:n?.status?.id||"",taskId:n?.task?.id||"",authorId:n?.author?.id||"",createdDate:n?.createdDate||null,evidence:null}),fVe={activities:gn.G8.Activity,aspects:gn.G8.Aspect,emergencyConditions:gn.G8.EmergencyCondition,impacts:gn.G8.Impact,controlMeasures:gn.G8.ControlMeasure,statuses:gn.G8.Status},yVe={"Option with the same name already exists.":{field:"name",message:"This name is already taken"}},gVe={activities:"Activity / Process",aspects:"Environmental Aspect",emergencyConditions:"Potential Emergency Condition",impacts:"Potential Environmental Impact",controlMeasures:"Relevant Control Measure",statuses:"Status"};function hVe(e){let{onComplete:n,category:t}=e;const[a,i]=(0,g.useState)(!1),{showNotification:l}=tn(),r=function(){const[e]=(0,ln.n)(rh),n=Je(),t=Wd();return async a=>{let{category:i,name:l}=a;const r=fVe[i],{data:o}=await e({variables:{input:{accountId:n,type:r,name:l}}});return t([{fieldName:"getAspectOptions",args:{accountId:n,type:r}}]),o.createAspectOption}}(),{handleSubmit:o,control:s,formState:{isDirty:d},setError:c}=(0,Ng.mN)({defaultValues:{name:""},mode:"onChange"}),u=bMe({setError:c,expectedErrors:yVe}),p=async e=>{let{name:a}=e;i(!0);try{const e=await r({category:t,name:a});n(e)}catch(e){u(e)||(E.Cp(e),l(`Failed to create "${gVe[t]}". Retry or contact support.`,"danger"))}finally{i(!1)}},m=!a&&d;return(0,fe.jsx)(f.Modal,{open:!0,title:`Create ${gVe[t]}`,onClose:()=>n(),children:(0,fe.jsx)("form",{onSubmit:e=>{e.stopPropagation(),o(p)(e)},children:(0,fe.jsxs)(f.Grid,{container:!0,spacing:3,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"name",control:s,rules:{required:"Name is required"},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(f.TextField,{...n,label:"Name",fullWidth:!0,error:!!t,helperText:t?.message})}})}),(0,fe.jsxs)(f.Grid,{size:12,container:!0,spacing:2,mt:3,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,onClick:()=>n(),children:"Cancel"})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,variant:"contained",loading:a,color:"primary",type:"submit",disabled:!m,children:"Create"})})]})]})})})}function xVe(){const e=ec("governance");return{get canCreateAspect(){return e("createAspect")},get canDeleteAspect(){return e("deleteAspect")},get canCreateAspectOption(){return e("createAspectOption")},get canDeleteAspectOption(){return e("deleteAspectOption")},canDeleteOwnAspect:n=>e("deleteAspect",n.author.id)}}function TVe(e){let{onComplete:n,option:t,category:a}=e;const i=jxe(),l=Je();return(0,fe.jsx)(GS,{open:!0,onClose:n,closeButtonText:"Cancel",onConfirm:async()=>{const e=t.value,n=fVe[a];await i({accountId:l,id:e,type:n})},title:"Delete Aspect Option",body:`The "${t.label}" aspect option will be permanently deleted. Do you want to continue?`,confirmButtonText:"Delete"})}function bVe(e){let{label:n,error:t,onChange:a,options:i,category:l,value:r,clearable:o,deletable:s}=e;const[d,c]=(0,g.useState)(!1),{canDeleteAspectOption:u}=xVe(),[p,m]=(0,g.useState)();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Select,{label:n,fullWidth:!0,onChange:e=>{let{value:n}=e;return a(n)},error:!!t,helperText:t,disableSorting:!0,options:i.options[l],value:r,isLoading:i.loading,disabled:i.loading,onCreateNew:()=>c(!0),onClear:o?()=>a(""):void 0,onDeleteOption:s&&u?e=>m(e):void 0}),d&&(0,fe.jsx)(hVe,{category:l,onComplete:e=>{e&&a(e.id),c(!1)}}),p&&(0,fe.jsx)(TVe,{category:l,option:p,onComplete:e=>{e&&p.value===r&&a(""),m(void 0)}})]})}const vVe=e=>({...Ua(e),disabled:!(!e.referenced&&!e.isGlobal)&&"delete-only"});function CVe(e){let{value:n,label:t="Department(s)",placeholder:a="Select department(s)",onChange:i,error:l}=e;const r=lr(),o=zo(),[s,d]=(0,g.useState)(!1),c=r.account.some(e=>e.startsWith("createDepartment")),[u,p]=(0,g.useState)([...c?[{value:"NEW",label:"Create new ..."}]:[],...tl(o?.departments,Ua)]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.MultiSelect,{error:!!l,helperText:l,options:u,value:n||void 0,label:t,placeholder:a,onCreate:()=>d(!0),onChange:i}),(0,fe.jsx)(HS,{showCreateDepartment:s,setShowCreateDepartment:d,onComplete:(e,t)=>{let{createDepartment:a}=e;p(tl(a,Ua)),i([...n||[],Ua(t)])}})]})}function kVe(e){let{options:n,category:t,label:a,error:i,value:l,onChange:r,deletable:o}=e;const[s,d]=(0,g.useState)(!1),{canDeleteAspectOption:c}=xVe(),[u,p]=(0,g.useState)();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.AutoComplete,{isMulti:!0,error:i,isLoading:n.loading,options:n.options[t],value:l||[],label:a,createOption:"NEW",onCreate:()=>d(!0),onChange:r,onDeleteOption:o&&c?e=>p(e):void 0}),s&&(0,fe.jsx)(hVe,{category:t,onComplete:e=>{e&&r([...l,Ua(e)]),d(!1)}}),u&&(0,fe.jsx)(TVe,{category:t,option:u,onComplete:e=>{e&&l.some(e=>{let{value:n}=e;return n===u.value})&&r(l.filter(e=>{let{value:n}=e;return n!==u.value})),p(void 0)}})]})}function SVe(e){let{onChange:n,error:t,value:a}=e;const{options:i,loading:l}=function(){const e=Je(),{data:n,loading:t}=(0,x.IT)(kse,{variables:{accountId:e}}),a=(0,g.useMemo)(()=>tl(n?.getAllLegislation,e=>{let{id:n,title:t}=e;return{value:n,label:t}}).sort((e,n)=>e.label.localeCompare(n.label)),[n]);return{options:a,loading:t}}();return(0,fe.jsx)(f.AutoComplete,{isMulti:!0,error:t,isLoading:l,options:i,value:a||[],label:"Legislation Reference(s)",onChange:n})}function NVe(e){let{onChange:n,error:t,options:a,label:i,clearable:l,value:r}=e;return(0,fe.jsx)(f.Select,{value:r,onChange:e=>{let{value:t}=e;return n(t)},label:i,fullWidth:!0,error:!!t,helperText:t,options:a,onClear:l?()=>n(""):void 0})}function AVe(){let{intent:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n]=lTe(),{token:t}=qe(),a=jde(),i=Wd();return async l=>{const{evidence:r,...o}=l,s=o.tagIds.map(e=>{let{value:n}=e;return n}),d=[];if(r){const e=await a(r.attachments,s,"Aspects and Impacts");d.push({notes:r.notes,documents:e})}const{data:c}=await n({variables:{input:xn().omitBy({...o,id:"edit"===e?o.id:(0,Wa.A)(),authorId:"edit"===e?o.authorId:t.sub,likelihoodNoControl:o.likelihoodNoControl?Number(o.likelihoodNoControl):null,likelihoodControl:o.likelihoodControl?Number(o.likelihoodControl):null,severityNoControl:o.severityNoControl?Number(o.severityNoControl):null,severityControl:o.severityControl?Number(o.severityControl):null,locationIds:o.locationIds.map(e=>{let{value:n}=e;return n}),tagIds:s,legislationIds:o.legislationIds.map(e=>{let{value:n}=e;return n}),impacts:o.impacts.map(e=>{let{value:n}=e;return n}),aspects:o.aspects.map(e=>{let{value:n}=e;return n}),emergencyConditions:o.emergencyConditions.map(e=>{let{value:n}=e;return n}),controlMeasures:o.controlMeasures.map(e=>{let{value:n}=e;return n}),departments:o.departments.map(e=>{let{value:n}=e;return n}),createdDate:"edit"===e?o.createdDate:new Date,editedDate:"edit"===e?new Date:null,editorId:"edit"===e?t.sub:null,reviewDate:o.reviewDate?Nn(o.reviewDate):null,evidenceNotes:d},e=>null==e||""===e)}});return i([{fieldName:"getAspectsByAccountId",args:{accountId:l.accountId}},{fieldName:"getAspectOptions"},...l.id?[{fieldName:"getAspectById",args:{accountId:l.accountId,id:l.id}}]:[]]),c.createAspect}}const RVe=(0,f.styled)(f.TextArea)({marginBottom:10}),DVe=(0,f.styled)("div")({marginTop:5,marginBottom:20,display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:15,paddingRight:15}),LVe=(0,f.styled)("div")({display:"flex",justifyContent:"left",alignItems:"center",gap:1});function IVe(e){let{error:n,value:t,onChange:a}=e;const i=e=>{let{attachments:n,notes:i,removeAttachment:l}=e;const r={...t||{attachments:[]}};n&&r.attachments.push(...n),l&&(r.attachments=r.attachments.filter(e=>e.name!==l.name)),"string"==typeof i&&(r.notes=i);const o=!r.notes&&0===r.attachments.length;a(o?null:r)};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(RVe,{size:"medium",onChange:e=>i({notes:e.target.value}),label:"Evidence Name",value:t?.notes||"",helperText:n,error:!!n}),t?.attachments&&t.attachments.map(e=>(0,fe.jsxs)(DVe,{children:[(0,fe.jsxs)(LVe,{children:[(0,fe.jsx)(f.Icons.ArticleOutlined,{fontSize:"small"})," ",(0,fe.jsx)(f.Text,{children:e.name})]}),(0,fe.jsx)(Gv.A,{onClick:()=>i({removeAttachment:e}),children:(0,fe.jsx)(f.Icons.Clear,{fontSize:"small"})})]},e.name)),(0,fe.jsx)(f.FileUploadButton,{multiple:!0,fullWidth:!0,accept:qt.allowedDocument.mimeType,onFileUpload:e=>i({attachments:e}),children:"Attach Evidence"})]})}const jVe=e=>e&&e.notes&&0===e.attachments.length?"Please attach documents if you add notes.":void 0;function wVe(e){let{aspect:n,onComplete:t}=e;return(0,fe.jsx)(Y0,{open:!0,accountId:n.accountId,onComplete:()=>{},onDismiss:()=>t(),defaultValues:{scope:n.scope,tagIds:al(n.tags||[]).map(e=>{let{id:n}=e;return n}),locationIds:al(n.locations||[]).map(e=>{let{id:n}=e;return n}),category:gn.Ix.Governance,subject:gn.AR.Aspects,itemId:n.id},disabled:{scope:!0,category:!0,subject:!0,locations:!0,tags:!0,[gn.AR.Aspects]:!0}})}function OVe(e){let{onComplete:n,aspect:t}=e;const[a,i]=(0,g.useState)(!0),[l,r]=(0,g.useState)(!1);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(GS,{open:a,onClose:e=>{e?r(!0):n(),i(!1)},title:"Create Task",body:"Do you want to create an associated task?",confirmButtonText:"Yes",closeButtonText:"No"}),l&&(0,fe.jsx)(wVe,{onComplete:n,aspect:t})]})}function EVe(e){let{onChange:n,error:t,tagIds:a,scope:i,locationIds:l,value:r}=e;const o=function(e){let{scope:n,locationIds:t,tagIds:a}=e;const i=Je(),{data:l,loading:r}=(0,x.IT)(Oxe,{variables:{accountId:i,offset:0,sort:[{field:"firstName",order:"asc"}],filters:{text:[{filterType:gn.pe.Text,field:"accountId",type:gn.II.Equals,filter:i}],set:[...n===gn.HG.Location&&t.length>0?[{filterType:gn.pe.Set,field:"allowedLocations",values:t.map(e=>e.value)}]:[],...n===gn.HG.Tag&&a.length>0?[{filterType:gn.pe.Set,field:"allowedTags",values:a.map(e=>e.value)}]:[]]}},skip:!i,notifyOnNetworkStatusChange:!0});return{data:(0,g.useMemo)(()=>(e=>e?.getUsers?.rows?.map(e=>({value:e.id,label:`${e.firstName} ${e.lastName}`}))||[])(l),[l]),loading:r}}({scope:i,tagIds:a,locationIds:l});return(0,fe.jsx)(f.Select,{value:r,onChange:e=>{let{value:t}=e;return n(t)},label:"Owner",fullWidth:!0,error:!!t,helperText:t,options:o.data,isLoading:o.loading,disabled:o.loading,onClear:()=>n("")})}function _Ve(){const e=ec("task");return{get canCreateTask(){return e("create")}}}const FVe=(0,f.styled)(f.Text)(e=>{let{theme:n}=e;return{color:n.sys.color.error,width:"100%"}});function PVe(e){let{onComplete:n,aspect:t,intent:a}=e;const i=Je(),[l,r]=(0,g.useState)(!0),[o,s]=(0,g.useState)(),{showNotification:d}=tn(),[c,u]=(0,g.useState)(!1),[p,m]=(0,g.useState)(),{canCreateTask:y}=_Ve(),h=AVe({intent:a}),{handleSubmit:x,control:T,watch:b,setValue:v,clearErrors:C,formState:{isDirty:k,dirtyFields:S}}=(0,Ng.mN)({defaultValues:mVe(i,t)}),N=b("scope"),A=b("tagIds"),R=b("locationIds");(0,g.useEffect)(()=>{S.scope&&(v("locationIds",[]),v("tagIds",[]),v("ownerId",""),C(["locationIds","tagIds","ownerId"]))},[N]),(0,g.useEffect)(()=>{(S.tagIds||S.locationIds)&&(v("ownerId",""),C(["ownerId"]))},[A,R]);const D=function(){const{data:e,loading:n}=Lxe(),{canCreateAspect:t}=xVe();return{options:(0,g.useMemo)(()=>((e,n)=>{const t={};for(const a of Dxe){const i="statuses"!==a&&n?[{value:"NEW",label:"Create new..."}]:[],l=e?.[a]||[];t[a]=[...i,...l.map(vVe).sort((e,n)=>e.label.localeCompare(n.label))]}return t})(e,t),[e,t]),loading:n}}(),L=function(){const e=hxe();return async n=>{const{totalRows:t}=await e({accountId:n.accountId,filters:Ixe({scope:n.scope,activity:n.activity,locationIds:n.locationIds.map(e=>{let{value:n}=e;return n}),tagIds:n.tagIds.map(e=>{let{value:n}=e;return n}),departments:n.departments.map(e=>{let{value:n}=e;return n}),aspects:n.aspects.map(e=>{let{value:n}=e;return n}),impacts:n.impacts.map(e=>{let{value:n}=e;return n}),legislationIds:n.legislationIds.map(e=>{let{value:n}=e;return n})})});return t>=1}}(),I=e=>{n(e),d((0,fe.jsx)(rTe,{aspectId:e.id,isUpdate:"edit"===a}),"success",{autoClose:2e4})},j="edit"===a?"Edit":"copy"===a?"Duplicate":"Create",w=!c&&k;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Modal,{open:l,title:`${j} Aspect`,onClose:()=>n(),children:(0,fe.jsx)("form",{onSubmit:x(async e=>{try{if(m(void 0),u(!0),"copy"===a&&await L(e))return void m("It seems you are attempting to create an aspect which already exists. Please create a unique aspect.");const n=await h(e);"edit"!==a&&!e.taskId&&y?(r(!1),s(n)):I(n)}catch(e){E.Cp(e),d("Something went wrong, please try again or contact support.","danger")}finally{u(!1)}}),children:(0,fe.jsxs)(f.Grid,{container:!0,spacing:3,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"scope",control:T,rules:{required:"Scope is required"},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(NVe,{...n,label:"Scope",error:t?.message,options:ee})}})}),N===gn.HG.Location&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"locationIds",control:T,rules:{required:"Location is required"},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(Uj,{...n,label:"Location(s)",error:t?.message})}})}),N===gn.HG.Tag&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"tagIds",control:T,rules:{required:"Tag is required"},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(zj,{...n,label:"Tag(s)",accountId:i,error:t?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"departments",control:T,rules:{required:"Department is required"},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(CVe,{...n,error:t?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"ownerId",control:T,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(EVe,{...n,error:t?.message,scope:N,locationIds:R,tagIds:A})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"activity",rules:{required:"Activity is required"},control:T,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(bVe,{...n,category:"activities",options:D,label:"Activity / Process",error:t?.message,deletable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"aspects",control:T,rules:{required:"Environmental Aspect is required"},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(kVe,{...n,category:"aspects",options:D,label:"Environmental Aspect(s)",error:t?.message,deletable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"impacts",control:T,rules:{required:"Potential Environmental Impact is required"},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(kVe,{...n,category:"impacts",options:D,label:"Potential Environmental Impact(s)",error:t?.message,deletable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"legislationIds",control:T,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(SVe,{...n,error:t?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"likelihoodNoControl",control:T,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(NVe,{...n,label:"Likelihood (no control)",error:t?.message,options:fh,clearable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"severityNoControl",control:T,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(NVe,{...n,label:"Severity (no control)",error:t?.message,options:yh,clearable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"emergencyConditions",control:T,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(kVe,{...n,category:"emergencyConditions",options:D,label:"Potential Emergency Condition(s)",error:t?.message,deletable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"controlMeasures",control:T,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(kVe,{...n,category:"controlMeasures",options:D,label:"Relevant Control Measure(s)",error:t?.message,deletable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"likelihoodControl",control:T,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(NVe,{...n,label:"Likelihood (with control)",error:t?.message,options:fh,clearable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"severityControl",control:T,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(NVe,{...n,label:"Severity (with control)",error:t?.message,options:yh,clearable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"reviewDate",control:T,rules:{validate:nw()},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(f.DatePicker,{...n,label:"Review date",timezone:"utc",error:t?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"status",control:T,render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(bVe,{...n,category:"statuses",options:D,label:"Status",error:t?.message,clearable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"evidence",control:T,rules:{validate:jVe},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(IVe,{...n,error:t?.message})}})}),p&&(0,fe.jsx)(FVe,{children:p}),(0,fe.jsxs)(f.Grid,{size:12,container:!0,spacing:2,mt:3,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,onClick:()=>n(),children:"Cancel"})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",disabled:!w,loading:c,children:"edit"===a?"Save":"Create"})})]})]})})}),o&&(0,fe.jsx)(OVe,{aspect:o,onComplete:()=>{s(void 0),I(o)}})]})}function BVe(e){let{gridRef:n}=e;const{filtersApplied:t,resetGridState:a,gridApi:i}=n.current||{},[l,r]=(0,g.useState)(!1),o=pVe(),{canCreateAspect:s}=xVe();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(rVe,{children:[(0,fe.jsx)(jS,{filtersApplied:t,resetGridState:a}),i&&(0,fe.jsx)(zx,{fetchRows:o,gridApi:i,defaultExportFileName:"aspects",columnsToSkip:["actions"]}),s&&(0,fe.jsx)(rW,{hint:"Add a new aspect",icon:(0,fe.jsx)(f.Icons.Add,{}),onClick:()=>r(!0)})]}),l&&(0,fe.jsx)(PVe,{onComplete:e=>{r(!1),e&&i?.refreshServerSide({purge:!0})}})]})}const UVe=(0,f.styled)(f.TextField)({marginRight:10,marginTop:-14});function $Ve(e){let{gridRef:n}=e;const{gridApi:t}=n.current||{},[a,i]=pxe(),[l,r]=(0,g.useState)(a||"");(0,g.useEffect)(()=>{t?.refreshServerSide({purge:!0})},[a]);const o=(0,XT.useDebouncedCallback)(e=>{i(e||null)},300);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.PageTitleHeader,{children:"Aspects & Impacts Register"}),(0,fe.jsx)(UVe,{label:"Search",value:l,onChange:e=>{return n=e.target.value,r(n),void o(n);var n}})]})}function MVe(e){let{data:n,api:t,rowIndex:a}=e;const[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(),[s,d]=(0,g.useState)(!1),c=Rxe(),u=Je(),{canCreateAspect:p,canDeleteOwnAspect:m,canDeleteAspect:y}=xVe(),h=[];return p&&h.push({hint:"Edit",onClick:()=>{o("edit")},icon:(0,fe.jsx)(f.Icons.Edit,{}),disabled:s},{hint:"Duplicate",onClick:()=>{o("copy")},icon:(0,fe.jsx)(f.Icons.ContentCopy,{}),disabled:s}),y&&h.push({hint:"Delete",onClick:()=>l(!0),icon:(0,fe.jsx)(f.Icons.Delete,{}),disabled:s||!m(n)}),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Zz,{buttons:h}),(0,fe.jsx)(GS,{open:i,onClose:()=>l(!1),onConfirm:async()=>{d(!0);try{await c({id:n.id,accountId:u})}finally{d(!1),t.applyServerSideRowData({startRow:a,successParams:{rowData:[null]}})}},title:"Delete Aspect",body:"This action will permanently delete this aspect. Do you want to proceed?",confirmButtonText:"Delete"}),r&&(0,fe.jsx)(PVe,{intent:r,aspect:n,onComplete:e=>{e&&("edit"===r?t.applyServerSideRowData({startRow:a,successParams:{rowData:[e]}}):t?.refreshServerSide({purge:!0})),o(void 0)}})]})}const VVe={legislationReference:e=>(0,fe.jsx)(dxe,{...e,searchValue:gxe()||mxe()}),actions:e=>(0,fe.jsx)(MVe,{...e}),searchable:e=>(0,fe.jsx)(TA,{...e,searchValue:gxe()||mxe()})};const GVe=[{label:"Governance",to:"/governance"},{label:"Aspects & Impacts Register"}];function zVe(){const e=Je(),n=(0,g.useRef)(null),t=`${e}_Governance_Aspects`,a=function(){const e=function(){const e=(0,C.m)(),n=(0,le.useTheme)(),t=Je(),{showNotification:a}=tn(),i={filter:"agSetColumnFilter",filterParams:{values:async n=>{try{const{data:{getAspectFilter:a}}=await e.query({query:sh,variables:{accountId:t,field:n.colDef.field}});n.success(a.map(e=>e.value?JSON.stringify(e):e.value))}catch(e){a(`Couldn't load filter values for column "${n.colDef.headerName}"`,"warning"),E.Cp(e),n.success([])}},valueFormatter:On,comparator:(e,n)=>JSON.parse(e)?.label-JSON.parse(n)?.label}},l=e=>{let{value:n}=e;return Array.isArray(n)?qhe(n):n?.name};return(0,g.useMemo)(()=>[{headerName:"Aspect Id",field:"id",cellRenderer:"searchable",hide:!0,...i},{headerName:"Scope",field:"scope",resizable:!0,valueFormatter:e=>{let{data:n}=e;return Ghe(n.scope)},...{...i,filterParams:{...i.filterParams,valueFormatter:e=>Ghe(On(e))}}},{headerName:"Scope (Tags)",cellRenderer:"searchable",field:"tags",resizable:!0,valueFormatter:e=>{let{data:n}=e;return Whe(n)},...i},{headerName:"Scope (Locations)",cellRenderer:"searchable",field:"locations",resizable:!0,valueFormatter:e=>{let{data:n}=e;return zhe(n)},...i},{headerName:"Departments",cellRenderer:"searchable",field:"departments",resizable:!0,valueFormatter:l,...i},{headerName:"Activity / Process",cellRenderer:"searchable",field:"activity",valueFormatter:l,...i},{headerName:"Environmental Aspect(s)",cellRenderer:"searchable",field:"aspects",valueFormatter:l,...i},{headerName:"Potential Environmental Impact(s)",cellRenderer:"searchable",field:"impacts",valueFormatter:l,...i},{headerName:"Legislation Reference(s)",field:"legislations",cellRenderer:"legislationReference",valueFormatter:e=>{let{value:n}=e;return n?.map(e=>e.title).join(", ")},...i},{headerName:"Likelihood (no control)",cellRenderer:"searchable",field:"likelihoodNoControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Severity (no control)",cellRenderer:"searchable",field:"severityNoControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Significance (no control)",field:"significanceNoControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Potential Emergency Condition(s)",cellRenderer:"searchable",field:"emergencyConditions",valueFormatter:l,...i},{headerName:"Relevant Control Measure(s)",cellRenderer:"searchable",field:"controlMeasures",valueFormatter:l,...i},{headerName:"Likelihood (with control)",cellRenderer:"searchable",field:"likelihoodControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Severity (with control)",cellRenderer:"searchable",field:"severityControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Significance (with control)",field:"significanceControl",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Review Date",field:"reviewDate",valueGetter:e=>e.data.reviewDate&&Sn(e.data.reviewDate)||"",cellStyle:{textAlign:"center"},width:140,filter:"agDateColumnFilter",filterParams:{filterOptions:["equals","greaterThan","lessThan","notEqual","inRange",{displayKey:"emptyValue",displayName:"Empty",filter:(e,n)=>!n}]}},{headerName:"Created Date",field:"createdDate",valueGetter:e=>e.data.createdDate&&Sn(e.data.createdDate)||"",cellStyle:{textAlign:"center"},width:140,filter:"agDateColumnFilter",filterParams:{filterOptions:["equals","greaterThan","lessThan","notEqual","inRange"]}},{headerName:"Owner",cellRenderer:"searchable",field:"owner.name",cellStyle:{textAlign:"center"},...i},{headerName:"Author",cellRenderer:"searchable",field:"author.name",cellStyle:{textAlign:"center"},...i},{headerName:"Status",cellRenderer:"searchable",field:"status",valueFormatter:l,cellStyle:e=>{const t=e?.value?.name;return ixe(t,n)},...i},{headerName:"Active Tasks",cellRenderer:"searchable",field:"activeTasks",cellStyle:{textAlign:"center"},filter:"agNumberColumnFilter"},{headerName:"Actions",cellRenderer:"actions",sortable:!1,filter:!1,resizable:!1,maxWidth:200}],[t])}(),n=function(){const{showNotification:e}=tn(),n=Je(),t=pVe();return(0,g.useMemo)(()=>({async getRows(a){let{request:i,success:l,fail:r}=a;const{startRow:o=0,endRow:s=25,sortModel:d,filterModel:c}=i;try{const{rows:e,totalRows:a}=await t({accountId:n,offset:o,limit:s-o,sort:txe(d),filters:Hhe(c,gxe()||mxe())});l({rowData:e,rowCount:a})}catch(n){e(`Failed to update grid: ${n}`,"danger"),E.Cp(n),r()}}}),[n])}(),t=function(){const e=(0,m.Zp)();return n=>{let{colDef:t,data:a}=n;!["actions","legislationReference"].includes(t.cellRenderer)&&a&&e(`/governance/environmental-aspects/${a.id}`)}}();return(0,g.useMemo)(()=>({columnDefs:e,serverSideDatasource:n,rowModelType:"serverSide",pagination:!0,paginationPageSize:25,paginationPageSizeSelector:[25,50,100],components:VVe,onCellClicked:t}),[e,n])}();return(0,fe.jsx)(f.Page,{title:{content:(0,fe.jsx)($Ve,{gridRef:n}),crumbs:GVe,actionButton:(0,fe.jsx)(BVe,{gridRef:n})},children:(0,fe.jsx)(f.AgGrid,{ref:n,gridKey:t,gridOptions:a})})}const WVe=(0,f.styled)(f.Button)(e=>{let{width:n}=e;return{width:n}});function qVe(e){let{width:n,title:t,...a}=e;return(0,fe.jsx)(WVe,{...a,width:n||150,variant:"contained",children:t})}function JVe(e){let{onComplete:n,aspect:t}=e;const[a,i]=(0,g.useState)(!1),{handleSubmit:l,control:r,formState:{isDirty:o}}=(0,Ng.mN)({defaultValues:{evidence:null}}),s=Je(),d=AVe({intent:"edit"}),{showNotification:c}=tn(),u=!a&&o;return(0,fe.jsx)(f.Modal,{open:!0,title:"Add Evidence",onClose:()=>n(),children:(0,fe.jsx)("form",{onSubmit:l(async e=>{let{evidence:a}=e;try{i(!0),await d({...mVe(s,t),evidence:a}),c("Evidence successfully added."),n()}catch(e){E.Cp(e),c("Something went wrong, please try again or contact support.","danger")}finally{i(!1)}}),children:(0,fe.jsxs)(f.Grid,{container:!0,spacing:3,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"evidence",control:r,rules:{validate:jVe},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(IVe,{...n,error:t?.message})}})}),(0,fe.jsxs)(f.Grid,{size:12,container:!0,spacing:2,mt:3,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,onClick:()=>n(),children:"Cancel"})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",disabled:!u,loading:a,children:"Save"})})]})]})})})}function YVe(e){let{disabled:n,aspect:t}=e;const{canCreateAspect:a}=xVe(),[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(!1),[s,d]=(0,g.useState)(!1),{canCreateTask:c}=_Ve(),u=[{title:"Edit aspect",trigger:()=>l(!0)}];return c&&u.push({title:"Create task",trigger:()=>d(!0)}),u.push({title:"Add evidence",trigger:()=>o(!0)}),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(rVe,{children:a&&(0,fe.jsx)(fe.Fragment,{children:u.map(e=>{let{title:a,trigger:i}=e;return(0,fe.jsx)(qVe,{title:a,onClick:i,disabled:n||!t},a)})})}),i&&(0,fe.jsx)(PVe,{intent:"edit",aspect:t,onComplete:()=>l(!1)}),r&&(0,fe.jsx)(JVe,{onComplete:()=>o(!1),aspect:t}),s&&(0,fe.jsx)(wVe,{onComplete:()=>d(!1),aspect:t})]})}const HVe=e=>""===e||null==e,KVe=(e,n)=>HVe(e)?"-":n?n(e):e.toString(),QVe=(e,n)=>{if(HVe(e)||0===e.length)return"-";const t=[];for(const a of e){if(HVe(a))continue;const e=n(a);HVe(e)||t.push(e)}return 0===t.length?"-":t.join(", ")},ZVe=e=>{const n=al(e||[]);return 0===n.length?"":n.map(e=>{let{id:n,title:t}=e;return(0,fe.jsx)(uVe,{to:`/governance/legislation/${n}`,children:t},n)})};function XVe(e){let{aspect:n}=e;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Status:"}),(0,fe.jsx)(cVe,{children:KVe(n.status?.name)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Review Date:"}),(0,fe.jsx)(cVe,{children:KVe(n.reviewDate,Sn)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Scope:"}),(0,fe.jsx)(cVe,{children:Ghe(n.scope)})]}),n.scope===gn.HG.Location&&(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Location:"}),(0,fe.jsx)(cVe,{children:zhe(n)})]}),n.scope===gn.HG.Tag&&(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Tags:"}),(0,fe.jsx)(cVe,{children:Whe(n)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Departments:"}),(0,fe.jsx)(cVe,{children:Jhe(n.departments)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Activity / Process:"}),(0,fe.jsx)(cVe,{children:KVe(n.activity?.name)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Environmental Aspect(s):"}),(0,fe.jsx)(cVe,{children:Jhe(n.aspects)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Potential Environmental Impact(s):"}),(0,fe.jsx)(cVe,{children:Jhe(n.impacts)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Legislation Reference(s):"}),(0,fe.jsx)(cVe,{children:ZVe(n.legislations)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Relevant Control Measure(s):"}),(0,fe.jsx)(cVe,{children:Jhe(n.controlMeasures)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Potential Emergency Condition(s):"}),(0,fe.jsx)(cVe,{children:Jhe(n.emergencyConditions)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Likelihood (no control):"}),(0,fe.jsx)(cVe,{children:KVe(n.likelihoodNoControl)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Likelihood (with control):"}),(0,fe.jsx)(cVe,{children:KVe(n.likelihoodControl)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Severity (no control):"}),(0,fe.jsx)(cVe,{children:KVe(n.severityNoControl)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Severity (with control):"}),(0,fe.jsx)(cVe,{children:KVe(n.severityControl)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Significance (no control):"}),(0,fe.jsx)(cVe,{children:KVe(n.significanceNoControl)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Significance (with control):"}),(0,fe.jsx)(cVe,{children:KVe(n.significanceControl)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Aspect Owner:"}),(0,fe.jsx)(cVe,{children:KVe(n.owner?.name)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Aspect Creator:"}),(0,fe.jsx)(cVe,{children:KVe(n.author.name)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Edited by:"}),(0,fe.jsx)(cVe,{children:KVe(n.editor?.name)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Date Created:"}),(0,fe.jsx)(cVe,{children:KVe(n.createdDate,Sn)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Date last edited:"}),(0,fe.jsx)(cVe,{children:KVe(n.editedDate,Sn)})]})]})}const eGe=(0,f.styled)(f.Text)({margin:"35px 0 15px 0"});function nGe(e){let{children:n}=e;return(0,fe.jsx)(eGe,{typescale:"headline",size:"small",children:n})}const tGe=(e,n)=>({HIGH:{icon:f.Icons.Warning,fill:n.ref.palette.error[70]},MEDIUM:{icon:f.Icons.Error,fill:Ig()(n,"customColors.warning.color")},LOW:{icon:f.Icons.Error,fill:n.ref.palette.secondary[50]},COMPLETED:{icon:f.Icons.Done,fill:Ig()(n,"extendedColors.environmental.color")},INCOMPLETED:{icon:f.Icons.Close,fill:n.ref.palette.error[70]},OVERDUE:{icon:f.Icons.Error,fill:Ig()(n,"customColors.warning.color")}}[e]||{}),aGe=(0,f.styled)("div")`
  display: flex;
  align-items: center;

  path {
    fill: ${e=>e.fill};
  }
`,iGe=(0,f.styled)("div")`
  position: absolute;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  left: ${e=>20*e.idx}px;
`,lGe=(0,f.styled)("img")`
  position: absolute;
  border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  object-fit: contain;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  z-index: 2;
  left: ${e=>20*e.idx}px;
`,rGe=(0,f.styled)("div")`
  position: relative;
  height: 46px;
  padding: 0;
`,oGe=e=>{const{data:{owners:n=[]}={}}=e,t=n.slice().reverse().filter(Boolean).map((e,n)=>e.profilePicture?(0,fe.jsx)(lGe,{idx:n,src:e.profilePicture},e.profilePicture+e.first_name):(0,fe.jsx)(iGe,{idx:n,children:(0,fe.jsx)(f.Text,{typescale:"headline",size:"small",children:e.first_name.charAt(0).toUpperCase()})}));return(0,fe.jsx)(fe.Fragment,{children:t.length?(0,fe.jsx)(rGe,{children:t}):(0,fe.jsxs)(f.Text,{typescale:"body",size:"medium",children:[(0,fe.jsx)(de.A,{id:"pages.task.grid.column.emptyOwners"}),","]})})},sGe=(0,f.styled)("div")`
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.surface}};
  border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 50%;
`,dGe=(0,f.styled)("img")`
  border: 2px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 50%;
`,cGe=(0,f.styled)("div")`
  display: flex;
  align-items: center;

  path {
    fill: ${e=>e.fill};
  }
`,uGe=e=>{const n=(0,f.useTheme)(),{data:{priority:t}}=e,{icon:a,fill:i}=tGe(t,n);return(0,fe.jsx)(cGe,{fill:i,children:(0,fe.jsx)(a,{})})},pGe=e=>{const{data:n}=e;return(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:PH()(n.category)})},mGe=e=>{const{data:{description:n}}=e;return n&&(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:n})},fGe={lineHeight:"21px",wordBreak:"inherit",display:"inline-block",alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},yGe={pagination:!0,paginationPageSize:25,paginationPageSizeSelector:[10,25,50,100],cacheBlockSize:25,suppressNoRowsOverlay:!0,defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0},cellStyle:{height:"auto"}},rowStyle:{width:"100%",display:"flex",alignItems:"center"}},gGe=[{colId:"dueDate",sort:"asc",sortIndex:0},{colId:"name",sort:"asc",sortIndex:1}],hGe=[{offValue:"Show My Tasks",onValue:"Show All Tasks"}],xGe=(0,f.styled)(f.AgGrid)`
  height: ${e=>{let{height:n}=e;return n||"calc(100vh - 268px)"}}; // header + page title height
  padding-bottom: 2px; // border bottom and shadow to show properly

  .ag-sort-indicator-icon {
    display: flex;
    align-items: center;
  }
`,TGe={status:e=>{let{data:n}=e;const t=(0,f.useTheme)(),{isCompleted:a,dueDate:i}=n,l=a?"COMPLETED":new Date(i)>new Date?"INCOMPLETED":"OVERDUE",{icon:r,fill:o}=tGe(l,t);return(0,fe.jsx)(aGe,{fill:o,children:(0,fe.jsx)(r,{})})},priority:uGe,description:mGe,category:pGe,owners:oGe,creator:e=>{const{data:{author:n}}=e;return n?n.profilePicture?(0,fe.jsx)(dGe,{src:n.profilePicture},n.profilePicture+n.first_name):(0,fe.jsx)(sGe,{children:(0,fe.jsx)(f.Text,{typescale:"headline",size:"small",children:n.first_name.charAt(0).toUpperCase()})}):(0,fe.jsx)("span",{children:nce})},dueDate:e=>{const{data:{dueDate:n}}=e,t=Sn(n);return n&&(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:t})},completedAt:e=>{const{data:{completedAt:n}}=e,t=Sn(n);return n&&(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:t})}},bGe=e=>{const n=(0,m.Zp)(),{formatMessage:t}=(0,dc.A)(),{tasks:a,onGridReady:i,accountId:l,agGridRef:r,height:o}=e,{columnDefs:s,...d}=(e=>({rowHeight:56,getRowId:Gn("id"),columnDefs:[{headerName:"Priority",field:"priority",cellRenderer:"priority",minWidth:100,cellStyle:{verticalAlign:"middle"},filterParams:{buttons:["reset","apply"],closeOnApply:!0,valueFormatter:cce}},{headerName:"Status",field:"status",cellRenderer:"status",valueGetter:e=>{let{data:n}=e;return uce(n)},minWidth:50,cellStyle:{verticalAlign:"middle"},filterParams:{buttons:["reset","apply"],closeOnApply:!0}},{headerName:e({id:"pages.task.grid.header.task"}),field:"name",filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:90,cellStyle:fGe},{headerName:"Description",field:"description",sortable:!1,filter:!1,cellStyle:{}},{headerName:"Scope",field:"scope",filterParams:{buttons:["reset","apply"],closeOnApply:!0},valueFormatter:e=>{let{data:n}=e;return dce(n)},minWidth:130,cellStyle:fGe},{headerName:e({id:"pages.task.grid.header.category"}),field:"category",cellRenderer:"category",filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:150},{headerName:e({id:"pages.task.grid.header.subject"}),field:"subject",valueGetter:e=>{let{data:n}=e;return PH()(n.subject)},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:110,cellStyle:fGe},{headerName:e({id:"pages.task.grid.header.item"}),field:"subjectItem",valueGetter:e=>{let{data:n}=e;return oce(n)},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120,cellStyle:fGe},{headerName:e({id:"pages.task.grid.header.owners"}),field:"owners",cellRenderer:"owners",valueGetter:e=>{let{data:{owners:n=[]}}=e;return n.filter(Boolean).map(e=>{let{first_name:n,last_name:t}=e;return`${n} ${t}`})},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:90},{headerName:e({id:"pages.task.grid.header.creator"}),field:"author",cellRenderer:"creator",valueGetter:e=>{let{data:{author:n}}=e;return n?`${n.first_name} ${n.last_name}`:nce},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:e({id:"pages.task.grid.header.date"}),field:"dueDate",cellRenderer:"dueDate",filter:"agDateColumnFilter",sort:"asc",filterParams:{buttons:["reset","apply"],closeOnApply:!0,comparator:tt},minWidth:120},{headerName:e({id:"pages.task.grid.header.completedDate"}),field:"completedAt",cellRenderer:"completedAt",filter:"agDateColumnFilter",sort:"asc",filterParams:{buttons:["reset","apply"],closeOnApply:!0,comparator:tt},minWidth:120},{headerName:e({id:"pages.task.grid.header.project"}),field:"project",valueGetter:e=>{let{data:{projectId:n}}=e;return n?.name||""},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:90,cellStyle:fGe}]}))(t),c={...yGe,...d,columnDefs:s?.map(e=>({...e,headerName:e.headerName?Za(e.headerName):e.headerName})),components:TGe,onGridReady:i,onRowClicked:e=>{n(`/tasks/${e.data.id}`)},rowData:a};return(0,fe.jsx)(xGe,{ref:r,height:o,gridKey:`${l}_tasksGrid`,gridOptions:c},l)};function vGe(e){let{aspectId:n}=e;const t=function(e){const n=Je(),{token:t}=qe(),{data:a}=(0,x.IT)(uTe(),{variables:{accountId:n,userId:t.sub}});return(0,g.useMemo)(()=>(a?.getTasksByAccountId||[]).filter(n=>n.item?.id===e),[a,e])}(n),a=Je(),i=(0,g.useRef)(null);return(0,fe.jsx)(bGe,{tasks:t,accountId:a,agGridRef:i,height:"inherit"})}var CGe=t(22293);const kGe=(0,f.styled)("div")({display:"flex",gap:16,flexWrap:"wrap"}),SGe=(0,f.styled)(p.Link)(e=>{let{theme:n}=e;return{borderRadius:16,border:`1px solid ${n.sys.color.surfaceVariant}`,padding:20,display:"flex",gap:3,"&:hover":{backgroundColor:n.sys.color.secondaryContainer}}});function NGe(e){let{documents:n}=e;return(0,fe.jsx)(kGe,{children:n.map(e=>{let{id:n,fileName:t}=e;return(0,fe.jsxs)(SGe,{to:`/documents/all/${n}`,children:[(0,fe.jsx)(CGe.A,{fontSize:"small"})," ",(0,fe.jsx)(f.Text,{typescale:"title",size:"small",children:t})]},n)})})}const AGe=(0,f.styled)("div")(e=>{let{theme:n}=e;return{borderTop:`1px solid ${n.sys.color.surfaceVariant}`,padding:"20px 10px"}}),RGe=(0,f.styled)(f.Text)({marginBottom:20});function DGe(e){let{item:n}=e;const{notes:t,documents:a}=n;return(0,fe.jsxs)(AGe,{children:[(0,fe.jsx)(RGe,{typescale:"body",size:"large",children:t}),(0,fe.jsx)(NGe,{documents:al(a||[])})]})}function LGe(e){let{aspect:n}=e;const{evidenceNotes:t}=n;return(0,fe.jsxs)("div",{children:[t.map(e=>(0,fe.jsx)(DGe,{item:e},e.id)),0===t.length&&(0,fe.jsx)("p",{children:"There is no evidence currently associated with this aspect."})]})}const IGe=[{label:"Governance",to:"/governance"},{label:"Aspects & Impacts Register",to:"/governance/environmental-aspects"}];function jGe(){const{id:e}=(0,m.g)(),{data:n,loading:t}=function(e){const n=Je(),{data:t,loading:a}=(0,x.IT)(Jl,{variables:{accountId:n,id:e},skip:!e});return{data:t?.getAspectById||void 0,loading:a}}(e);return(0,fe.jsx)(f.Page,{loading:t,title:{content:"Aspect",crumbs:IGe,actionButton:(0,fe.jsx)(YVe,{disabled:t,aspect:n})},children:(0,fe.jsxs)(oVe,{children:[n&&(0,fe.jsx)(XVe,{aspect:n}),(0,fe.jsx)(nGe,{children:"Tasks"}),e&&(0,fe.jsx)(vGe,{aspectId:e}),(0,fe.jsx)(nGe,{children:"Evidence"}),n&&(0,fe.jsx)(LGe,{aspect:n})]})})}const wGe={[gn.mh.High]:{label:"High",color:"error"},[gn.mh.Medium]:{label:"Medium",color:"warning"},[gn.mh.NoteWorthy]:{label:"Note-worthy",color:"success"}},OGe=Object.entries(wGe).map(e=>{let[n,{label:t}]=e;return{value:n,label:t}});var EGe=t(24381),_Ge=t(66250),FGe=t(66196),PGe=t(46805),BGe=t(19634);const UGe={[gn.PG.Notapplicable]:{label:"Not Applicable",icon:e=>(0,fe.jsx)(BGe.A,{...e,color:"disabled"})},[gn.PG.Indirectlyapplicable]:{label:"Indirectly Applicable",icon:e=>(0,fe.jsx)(PGe.A,{...e,color:"warning"})},[gn.PG.Noncompliant]:{label:"Non Compliant",icon:e=>(0,fe.jsx)(_Ge.A,{...e,color:"error"})},[gn.PG.Compliancerisk]:{label:"Compliance Risk",icon:e=>(0,fe.jsx)(EGe.A,{...e,color:"warning"})},[gn.PG.Compliant]:{label:"Compliant",icon:e=>(0,fe.jsx)(FGe.A,{...e,color:"success"})}},$Ge=Object.entries(UGe).map(e=>{let[n,{label:t}]=e;return{value:n,label:t}}),MGe=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?wGe[e].label:n},VGe=e=>{let{value:n}=e;return n?UGe[n].label:"TBD"},GGe=e=>{let{value:n}=e;return n?"Yes":"No"};var zGe=t(33004);const WGe=(0,f.styled)(zGe.A)({display:"block"});function qGe(){return(0,fe.jsx)(WGe,{color:"error",titleAccess:"Rio has detected a change to this legislation."})}const JGe=(0,f.styled)("div")`
  height: 22px;
  width: 32px;
  border-radius: 5px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  background: url(${e=>{let{flag:n}=e;return l[n]}}) center center no-repeat;
  background-size: cover;
  overflow: hidden;
  display: inline-block;
`;function YGe(e){let{value:n}=e;return(0,fe.jsx)(JGe,{name:"LegislationTile__Flag",flag:n,alt:n,title:n})}const HGe=(0,f.styled)("div")({display:"flex",gap:8}),KGe=(0,f.styled)("div")({display:"flex",gap:2,alignItems:"center"}),QGe=(0,f.styled)("span")(e=>{let{theme:n,color:t}=e;return{fontWeight:"bold",color:n.palette[t].main}}),ZGe={listCountries:function(e){let{data:n}=e;return(0,fe.jsx)(HGe,{children:n?.countries.map(e=>(0,fe.jsx)(YGe,{value:e},e))})},activeFlag:function(e){let{value:n}=e;return n&&(0,fe.jsx)(qGe,{})},legislationStatus:function(e){let{value:n}=e;if(!n)return"TBD";if(!UGe[n])return n;const{icon:t,label:a}=UGe[n];return(0,fe.jsxs)(KGe,{children:[t({fontSize:"small",sx:{display:"block"}})," ",a]})},legislationPriority:function(e){let{value:n}=e;if(!n)return"-";const{label:t,color:a}=wGe[n];return(0,fe.jsx)(QGe,{color:a,children:t})}};const XGe=(0,f.styled)(f.Select)({width:"auto",minWidth:200});function eze(e){let{onChange:n,options:t,value:a}=e;return(0,fe.jsx)(XGe,{disableSorting:!0,value:a||"",onChange:e=>{let{value:t}=e;return n(t)},options:t,placeholder:"Tag"})}function nze(e){let{gridApi:n,loading:t}=e;const[a,i]=(0,g.useState)(!1);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(rW,{disabled:t,onClick:()=>i(!0),variant:"outlined",icon:(0,fe.jsx)(f.CustomIcons.Download,{}),hint:"Export"}),(0,fe.jsx)($x,{show:a,onDismiss:()=>i(!1),defaultFileName:"legislation",onSubmit:e=>n?.exportDataAsCsv({fileName:e})})]})}function tze(e){let{skip:n}=e;const t=Je(),{data:a,loading:i}=(0,x.IT)(Td,{variables:{accountId:t},notifyOnNetworkStatusChange:!0,skip:n}),l=a?.getTagsByAccountId||[];return[(0,g.useMemo)(()=>{const e=[];for(const n of l)n?.legislationTag&&e.push({value:n.id,label:n.tagName});return e.sort((e,n)=>e.label.localeCompare(n.label)),e},[l]),i]}const aze=[{label:"Governance",to:"/governance"},{label:"Legislation"}];function ize(e){let{accessControls:n}=e;const t=Je(),a=(0,g.useRef)(null),{tagLevelLegislation:i}=n,{filtersApplied:l,resetGridState:r,gridApi:o}=a.current||{},s=`${t}_Governance_Legislation`,[d,c]=(0,g.useState)(),[u,p]=tze({skip:!i});(0,g.useEffect)(()=>{c(u[0]?.value)},[u]);const[y,h]=function(e){let{tagId:n,skip:t}=e;const a=Je(),i=zo(),{data:l,loading:r}=(0,x.IT)(kse,{variables:{accountId:a,tagId:n},fetchPolicy:n?"no-cache":"cache-first",notifyOnNetworkStatusChange:!0,skip:t}),o=i?.departments;return[(0,g.useMemo)(()=>(l?.getAllLegislation||[]).map(e=>({...e,departments:Uo(o||[],e.departmentIds)})),[l,o]),r]}({tagId:d,skip:p||i&&!d}),T=function(e){let{data:n,tagLevelLegislation:t,tagId:a}=e;const i=function(e){let{tagLevelLegislation:n}=e;return(0,g.useMemo)(()=>[{headerName:"Title",field:"title",minWidth:500,filter:"agTextColumnFilter"},{headerName:"Review Date",field:"reviewDate",valueFormatter:e=>{let{value:n}=e;return Sn(n)},filter:"agDateColumnFilter",filterParams:{comparator:tt}},{headerName:"Compliance Status",field:"status",cellRenderer:"legislationStatus",minWidth:220,valueFormatter:VGe,filterParams:{cellRenderer:"legislationStatus"}},{headerName:"Priority",field:"priority",cellRenderer:"legislationPriority",valueFormatter:e=>{let{value:n}=e;return MGe(n)},filterParams:{valueFormatter:e=>{let{value:n}=e;return MGe(n,"(Blanks)")}}},{headerName:"Flagged",valueGetter:e=>{let{data:n}=e;return bse(n.lastFlaggedForReview,n.lastClearedReviewFlag)},valueFormatter:GGe,filterParams:{valueFormatter:GGe},cellRenderer:"activeFlag"},{headerName:"Countries",field:"countries",cellRenderer:"listCountries",minWidth:250},...n?[]:[{headerName:"Scope (Tags)",field:"tags",valueGetter:e=>{let{data:n}=e;return n.tags?.map(e=>e.tagName)}}],{headerName:"Scope (Location)",field:"locations",valueGetter:e=>{let{data:n}=e;return n.locations?.map(e=>e.name)}},{headerName:"Scope (Departments)",field:"departments",valueGetter:e=>{let{data:n}=e;return n.departments?.map(e=>{let{label:n}=e;return n})}},{headerName:"Scope (Regions)",field:"regions",valueGetter:e=>{let{data:n}=e;return n.regions?.map(e=>{let{name:n}=e;return n})}}],[n])}({tagLevelLegislation:t}),[l,r]=(0,g.useState)(!1),o=(0,m.Zp)();return(0,g.useEffect)(()=>{l&&r(!1)},[l]),(0,g.useMemo)(()=>({columnDefs:i,rowData:n,components:ZGe,pagination:!0,onFilterChanged:()=>r(!0),paginationPageSize:25,paginationPageSizeSelector:[25,50,100],suppressNoRowsOverlay:!0,onRowClicked:e=>{let{data:n}=e;return o(`./${n.id}${a?`/${a}`:""}`)},defaultColDef:{sortable:!0,resizable:!0,filter:!0,wrapText:!0,autoHeight:!0,cellStyle:{alignItems:"center",display:"flex"}}}),[i,n,a])}({data:y,tagLevelLegislation:i,tagId:d}),b=p||h;return(0,fe.jsx)(f.Page,{loading:b,title:{content:(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.PageTitleHeader,{children:"Legislation"}),i&&(0,fe.jsx)(eze,{value:d,onChange:c,options:u})]}),crumbs:aze,actionButton:(0,fe.jsxs)(rVe,{children:[(0,fe.jsx)(jS,{filtersApplied:l,resetGridState:r}),(0,fe.jsx)(nze,{gridApi:o,loading:b})]})},children:(0,fe.jsx)(f.AgGrid,{ref:a,gridKey:s,gridOptions:T})})}function lze(){const e=zo(),n=e?.departments;return(0,g.useMemo)(()=>{const e=new Map;return n?.forEach(n=>{n&&e.set(n.id,n)}),e},[n])}const rze=S.J1`
  query GetLocationMetaOptions($accountId: ID!) {
    getLocationMetadataOptionsForAccount(accountId: $accountId) {
      regions {
        id
        name
      }
    }
  }
`;function oze(e){let{error:n,value:t,disabled:a,onChange:i,label:l}=e;const[r,o]=function(){const e=Je(),{data:n,loading:t}=(0,x.IT)(rze,{variables:{accountId:e}});return[(0,g.useMemo)(()=>tl(n?.getLocationMetadataOptionsForAccount.regions,Ua),[n]),t]}();return(0,fe.jsx)(f.AutoComplete,{isMulti:!0,label:l||"Region(s)",options:r,onChange:i,isLoading:o,error:n,value:t,disabled:a,placeholder:"Start typing to search for a location"})}const sze=(0,f.styled)("div")(e=>{let{theme:n}=e;return{display:"block",height:245,"& div.wrapper-class":{width:"100%","& div.editor-class":{height:"auto",minHeight:200,maxHeight:200,padding:"0 10px",fontFamily:n.sys.typescale.body.medium.family},"& div.toolbar-class":{fontFamily:n.sys.typescale.body.medium.family}}}}),dze=(0,f.styled)(f.Text)({marginBottom:7});function cze(e){let{value:n,onChange:t}=e;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(dze,{typescale:"label",size:"large",children:"Applicability"}),(0,fe.jsx)(sze,{children:(0,fe.jsx)(ie.j4,{onMarkdownChange:e=>t(iT(e)),sourceContent:n})})]})}function uze(){const e=ec("governance");return{get canEditLegislationScopeData(){return e("attachContentToLegislation")},get canEditLegislationGeneralData(){return e("editLegislation")},get canAttachDocumentsToLegislation(){return e("attachDocumentToLegislation")}}}function pze(e){let{onComplete:n,legislation:t,tagId:a}=e;const i=Je(),l=lze(),[r,o]=(0,g.useState)(!1),s=function(){const[e]=(0,ln.n)(Mde),n=Je(),t=Wd();return async a=>{let{id:i,tagId:l,...r}=a;await e({variables:{accountId:n,id:i,tagId:l,linkId:i,content:r}}),t([{fieldName:"getLegislationById",args:{accountId:n,id:i,tagId:l}}])}}(),{showNotification:d}=tn(),{handleSubmit:c,control:u,formState:{isDirty:p}}=(0,Ng.mN)({defaultValues:{status:t.status||"",priority:t.priority||"",reviewDate:t.reviewDate||"",locations:tl(t.locations,Ua),tags:tl(t.tags,e=>{let{id:n,tagName:t}=e;return{value:n,label:t}}),departments:tl(t.departmentIds,(m=l,e=>{const n=m.get(e);return n?Ua(n):null})),regions:tl(t.regions,Ua),applicability:t.applicability||"",notFlagged:!1}});var m;const{canEditLegislationScopeData:y,canEditLegislationGeneralData:h}=uze(),x=!r&&p;return(0,fe.jsx)(f.Modal,{open:!0,title:"Edit content",onClose:()=>n(),children:(0,fe.jsx)("form",{onSubmit:c(async e=>{o(!0);try{await s({id:t.id,tagId:a,applicability:e.applicability,reviewDate:e.reviewDate?Nn(e.reviewDate):null,status:e.status||null,priority:e.priority||null,lastClearedReviewFlag:!e.notFlagged&&(i=e.reviewDate,l=t.reviewDate,(i=i||null)===(l=l||null)||null!==i&&null!==l&&bn()(i).isSame(bn()(l),"D"))?t.lastClearedReviewFlag:(new Date).toISOString(),regionIds:e.regions.map(e=>{let{value:n}=e;return n}),departmentIds:e.departments.map(e=>{let{value:n}=e;return n}),locationIds:e.locations.map(e=>{let{value:n}=e;return n}),tagIds:e.tags.map(e=>{let{value:n}=e;return n}),title:t.title}),d("Legislation content saved successfully."),n()}catch(e){E.Cp(e),d("Something went wrong, please try again or contact support.","danger")}finally{o(!1)}var i,l}),children:(0,fe.jsxs)(f.Grid,{container:!0,spacing:3,children:[h&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"status",control:u,render:e=>{let{field:n}=e;return(0,fe.jsx)(NVe,{...n,label:"Status",options:$Ge,clearable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"priority",control:u,render:e=>{let{field:n}=e;return(0,fe.jsx)(NVe,{...n,label:"Priority",options:OGe,clearable:!0})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"reviewDate",control:u,rules:{validate:nw()},render:e=>{let{field:n,fieldState:{error:t}}=e;return(0,fe.jsx)(f.DatePicker,{...n,timezone:"utc",label:"Review date",error:t?.message})}})}),vse(t)&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"notFlagged",control:u,render:e=>{let{field:n}=e;return(0,fe.jsx)(f.Checkbox,{onChange:(e,t)=>n.onChange(t),checked:n.value,label:"Clear flag"})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"applicability",control:u,render:e=>{let{field:n}=e;return(0,fe.jsx)(cze,{...n})}})})]}),y&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"locations",control:u,render:e=>{let{field:n}=e;return(0,fe.jsx)(Uj,{...n,label:"Location(s)"})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"departments",control:u,render:e=>{let{field:n}=e;return(0,fe.jsx)(CVe,{...n})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"regions",control:u,render:e=>{let{field:n}=e;return(0,fe.jsx)(oze,{...n})}})}),!a&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"tags",control:u,render:e=>{let{field:n}=e;return(0,fe.jsx)(zj,{...n,label:"Tag(s)",accountId:i})}})})]}),(0,fe.jsxs)(f.Grid,{size:12,container:!0,spacing:2,mt:3,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,onClick:()=>n(),children:"Cancel"})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Button,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",loading:r,disabled:!x,children:"Save"})})]})]})})})}function mze(e){let{legislation:n,onComplete:t}=e;const a=Je();return(0,fe.jsx)(Y0,{open:!0,accountId:a,onComplete:()=>{},onDismiss:()=>t(),defaultValues:{tagIds:al(n.tags||[]).map(e=>{let{id:n}=e;return n}),locationIds:al(n.locations||[]).map(e=>{let{id:n}=e;return n}),category:gn.Ix.Governance,subject:gn.AR.Legislation,itemId:n.id},disabled:{category:!0,subject:!0,locations:!0,tags:!0,[gn.AR.Legislation]:!0}})}function fze(e){let{onComplete:n,legislation:t,tagId:a}=e;const i=function(){const e=Je(),n=Wd(),[t]=(0,ln.n)(Vde);return async a=>{let{legislationId:i,documentIds:l,tagId:r}=a;const o=[];if(await Promise.all(l.map(async n=>{try{await t({variables:{id:n,accountId:e,tagId:r,legislationId:i}})}catch(e){o.push(e)}})),n([{fieldName:"getLegislationById",args:{accountId:e,id:i,tagId:r}}]),o.length>0)throw o}}(),{showNotification:l}=tn();return(0,fe.jsx)(mw,{predefinedValues:{library:gn.zM.Governance,category:"Legislation",tags:a?[a]:[]},shouldParseIdFromFileName:!0,onDismiss:()=>n(),onTerminate:async(e,n)=>{n.length>0&&(n.forEach(e=>E.Cp(e)),l("Some documents couldn't be uploaded, please contact support.","danger"));try{e.length>0&&await i({legislationId:t.id,documentIds:e.map(e=>{let{id:n}=e;return n}),tagId:a})}catch(e){(Array.isArray(e)?e:[e]).forEach(e=>E.Cp(e)),l("Some documents couldn't be attached, please contact support.","danger")}}})}function yze(e){let{disabled:n,legislation:t,tagId:a}=e;const[i,l]=(0,g.useState)(!1),[r,o]=(0,g.useState)(!1),[s,d]=(0,g.useState)(!1),{canCreateTask:c}=_Ve(),{canAttachDocumentsToLegislation:u,canEditLegislationGeneralData:p,canEditLegislationScopeData:m}=uze(),f=[];return(p||m)&&f.push({title:"Edit content",trigger:()=>l(!0)}),c&&f.push({title:"Create task",trigger:()=>o(!0)}),u&&f.push({title:"Upload documents",trigger:()=>d(!0)}),(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(rVe,{children:f.map(e=>{let{title:a,trigger:i}=e;return(0,fe.jsx)(qVe,{width:200,title:a,onClick:i,disabled:n||!t},a)})}),i&&(0,fe.jsx)(pze,{tagId:a,legislation:t,onComplete:()=>l(!1)}),r&&(0,fe.jsx)(mze,{legislation:t,onComplete:()=>o(!1)}),s&&(0,fe.jsx)(fze,{tagId:a,legislation:t,onComplete:()=>d(!1)})]})}const gze=(0,f.styled)(f.Text)({marginBottom:5}),hze=(0,f.styled)("div")({display:"flex",gap:8});function xze(e){let{legislation:n}=e;const{title:t,countries:a}=n;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(gze,{typescale:"headline",size:"small",children:t}),(0,fe.jsx)(hze,{children:a.map(e=>(0,fe.jsx)(YGe,{value:e},e))})]})}function Tze(e){let{tasks:n}=e;const t=(0,g.useRef)(null),a=Je();return(0,fe.jsx)(bGe,{tasks:n,accountId:a,agGridRef:t,height:"inherit"})}const bze=(0,f.styled)("div")({display:"flex",gap:3,alignItems:"center"}),vze=(0,f.styled)("span")(e=>{let{theme:n,color:t}=e;return{color:n.palette[t].main}}),Cze=e=>{const{icon:n,label:t}=UGe[e];return(0,fe.jsxs)(bze,{children:[n({})," ",t]})},kze=e=>{const{color:n,label:t}=wGe[e];return(0,fe.jsx)(vze,{color:n,children:t})},Sze=e=>0===e.length?"-":e.map(e=>(0,fe.jsx)(uVe,{to:e,children:e},e));function Nze(e){let{legislation:n,tagLevelLegislation:t}=e;const{status:a,priority:i,synopsis:l,reviewDate:r,applicability:o,tags:s,regions:d,locations:c,departmentIds:u,links:p}=n,m=lze();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Status:"}),(0,fe.jsx)(cVe,{children:KVe(a,Cze)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Priority:"}),(0,fe.jsx)(cVe,{children:KVe(i,kze)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Review date:"}),(0,fe.jsx)(cVe,{children:KVe(r,Sn)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Flagged:"}),(0,fe.jsx)(cVe,{children:vse(n)?(0,fe.jsx)(qGe,{}):"-"})]}),(0,fe.jsxs)(sVe,{type:"column",children:[(0,fe.jsx)(dVe,{type:"column",children:"Synopsis:"}),(0,fe.jsx)(cVe,{type:"column",children:(0,fe.jsx)(ie.To,{source:l})})]}),(0,fe.jsxs)(sVe,{type:"column",children:[(0,fe.jsx)(dVe,{type:"column",children:"Applicability:"}),(0,fe.jsx)(cVe,{type:"column",children:(0,fe.jsx)(ie.To,{source:o})})]}),!t&&(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Tags:"}),(0,fe.jsx)(cVe,{children:QVe(s,e=>{let{tagName:n}=e;return n})})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Locations:"}),(0,fe.jsx)(cVe,{children:QVe(c,e=>{let{name:n}=e;return n})})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Departments:"}),(0,fe.jsx)(cVe,{children:QVe(u,e=>m.get(e)?.name)})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Regions:"}),(0,fe.jsx)(cVe,{children:QVe(d,e=>{let{name:n}=e;return n})})]}),(0,fe.jsxs)(sVe,{children:[(0,fe.jsx)(dVe,{children:"Links:"}),(0,fe.jsx)(cVe,{children:Sze(p)})]})]})}const Aze=[{label:"Governance",to:"/governance"},{label:"Legislation",to:"/governance/legislation"}],Rze=(0,f.styled)("div")(e=>{let{theme:n}=e;return{marginBottom:25,padding:20,borderRadius:5,backgroundColor:n.palette.warning.light}});function Dze(e){let{accessControls:n,isShouldUserUpgrade:t}=e;const{id:a,tagId:i}=(0,m.g)(),{tagLevelLegislation:l}=n,[r,o]=tze({skip:!l}),[s,d]=function(e){let{id:n,tagId:t,tagLevelLegislation:a}=e;const i=Je(),{data:l,loading:r}=(0,x.IT)($de,{variables:{id:n,accountId:i,tagId:t},fetchPolicy:t?"network-only":"cache-first",notifyOnNetworkStatusChange:!0,skip:a&&!t||!n});return[l?.getLegislationById,r]}({id:a,tagId:i,tagLevelLegislation:l}),c=(0,m.Zp)(),{tasks:u,documents:p}=s||{},y=d||o;return(0,fe.jsxs)(f.Page,{loading:y,title:{content:(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.PageTitleHeader,{children:"Legislation Item"}),l&&(0,fe.jsx)(eze,{value:i,onChange:e=>c(`/governance/legislation/${a}/${e}`),options:r})]}),crumbs:Aze,actionButton:(0,fe.jsx)(yze,{tagId:i,disabled:y,legislation:s})},children:[t&&(0,fe.jsx)(Rze,{children:(0,fe.jsx)(de.A,{id:"pages.governance.permissionsProblem"})}),s&&(0,fe.jsx)(xze,{legislation:s}),(0,fe.jsxs)(oVe,{children:[s&&(0,fe.jsx)(Nze,{legislation:s,tagLevelLegislation:l}),(0,fe.jsx)(nGe,{children:"Tasks"}),(0,fe.jsx)(Tze,{tasks:u||[]}),(0,fe.jsx)(nGe,{children:"Attached Documents"}),p?.length?(0,fe.jsx)(NGe,{documents:p}):(0,fe.jsx)("p",{children:"There are no documents attached."})]})]})}const Lze=(0,le.default)(ie.fv)`
  height: 100%;
  overflow-y: auto;
`,Ize=(e,n,t)=>n?.[t]?(0,fe.jsx)(e,{}):(0,fe.jsx)(m.C5,{to:"/governance"}),jze=()=>{const{data:{comply:e}}=Mr(),{data:n}=Ns(),t=or(),a=n?.role.role===gn.gG.Individual&&n?.account.type===$T;return(0,fe.jsx)(Lze,{container:!0,item:!0,children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"",element:(0,fe.jsx)(lVe,{accessControls:e,isShouldUserUpgrade:a})}),(0,fe.jsx)(m.qh,{path:t.governance.systems,element:Ize(zue,e,"systems")}),(0,fe.jsx)(m.qh,{path:t.governance.agreements,element:Ize(zue,e,"agreements")}),(0,fe.jsx)(m.qh,{path:t.governance.frameworks,element:Ize(zue,e,"frameworks")}),(0,fe.jsx)(m.qh,{path:`${t.governance.systems}/50f543aa-da72-4090-8f1f-0a1fbd218b0b/*`,element:Ize(Nye,e,"systems")}),(0,fe.jsx)(m.qh,{path:`${t.governance.systems}/:id/*`,element:Ize(Bfe,e,"systems")}),(0,fe.jsx)(m.qh,{path:`${t.governance.agreements}/:id/*`,element:Ize(Bfe,e,"agreements")}),(0,fe.jsx)(m.qh,{path:`${t.governance.frameworks}/:id/*`,element:Ize(Bfe,e,"frameworks")}),(0,fe.jsx)(m.qh,{path:t.governance.policies,element:Ize(_ge,e,"policies")}),(0,fe.jsx)(m.qh,{path:t.governance.targets,element:Ize(Vhe,e,"targets")}),(0,fe.jsx)(m.qh,{path:t.governance.materiality,element:(0,fe.jsx)(mbe,{materialities:fbe})}),(0,fe.jsx)(m.qh,{path:`${t.governance.aspects}-v1`,element:Ize(dTe,e,"systems")}),(0,fe.jsx)(m.qh,{path:t.governance.aspects,element:Ize(zVe,e,"systems")}),(0,fe.jsx)(m.qh,{path:`${t.governance.aspects}-v1/:id`,element:Ize(ATe,e,"systems")}),(0,fe.jsx)(m.qh,{path:`${t.governance.aspects}/:id`,element:Ize(jGe,e,"systems")}),(0,fe.jsx)(m.qh,{path:t.governance.health,element:Ize(lbe,e,"systems")}),(0,fe.jsx)(m.qh,{path:`${t.governance.legislation}-v1`,element:(0,fe.jsx)(kue,{accessControls:e})}),(0,fe.jsx)(m.qh,{path:t.governance.legislation,element:(0,fe.jsx)(ize,{accessControls:e})}),(0,fe.jsx)(m.qh,{path:`${t.governance.legislation}-v1/:id`,element:(0,fe.jsx)(eue,{accessControls:e,isShouldUserUpgrade:a})}),(0,fe.jsx)(m.qh,{path:`${t.governance.legislation}-v1/:id/:tagId`,element:(0,fe.jsx)(eue,{accessControls:e,isShouldUserUpgrade:a})}),(0,fe.jsx)(m.qh,{path:`${t.governance.legislation}/:id`,element:(0,fe.jsx)(Dze,{accessControls:e,isShouldUserUpgrade:a})}),(0,fe.jsx)(m.qh,{path:`${t.governance.legislation}/:id/:tagId`,element:(0,fe.jsx)(Dze,{accessControls:e,isShouldUserUpgrade:a})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:t.governance.root})})]})})},wze=(S.J1`
  query GetHomePageLearnProgressData($userId: ID!, $continueLearningLimit: Int!) {
    getLearnProgressLogByUserId(userId: $userId, limit: $continueLearningLimit, status: INPROGRESS) {
      courseProgress
      lastUpdatedAt
      course {
        id
        name
        metaData {
          cpd
          thumbnail
          link
        }
      }
    }
  }
`,S.J1`
  query getHomePageEmissionData($accountId: ID!, $from: AWSDate!, $to: AWSDate!, $timeGranularity: TimeGranularity!) {
    getTotalEmissions(accountId: $accountId, from: $from, to: $to)
    getEmissionsPercentageBreakdownByScope(accountId: $accountId, from: $from, to: $to) {
      series {
        id
        relativeValue
        absoluteValue
      }
      drilldown {
        id
        parentId
        relativeValue
        absoluteValue
      }
    }
    getEmissionsBySource(accountId: $accountId, timeGranularity: $timeGranularity, from: $from, to: $to) {
      dimension
      time
      value
    }
    getEmissionsNetAndGross(accountId: $accountId, timeGranularity: $timeGranularity, from: $from, to: $to) {
      dimension
      time
      value
    }
  }
`);var Oze=t(98780);function Eze(){const{token:e}=qe(),n=Je();return dn(rp,{variables:{accountId:n,pageNumber:1,userId:e?.sub},skip:!e})}const _ze=e=>{if(null==e||isNaN(e)||e<=0)return"Less than a minute";const n=525600,t=Math.floor(e/n),a=e%n,i=Math.floor(a/43800),l=a%43800,r=Math.floor(l/1440),o=l%1440,s=Math.floor(o/60),d=o%60,c=[];return t>0&&c.push(`${t} year${t>1?"s":""}`),i>0&&c.push(`${i} month${i>1?"s":""}`),r>0&&c.push(`${r} day${r>1?"s":""}`),s>0&&c.push(`${s} hour${s>1?"s":""}`),d>0&&c.push(`${d} minute${d>1?"s":""}`),c.join(" ")};var Fze=t(48809),Pze=t(86866);function Bze(e){let{status:n}=e;return n===gn.G1.Complete?(0,fe.jsx)(Pze.A,{fontSize:"small",color:"primary",titleAccess:"Complete"}):n===gn.G1.Inprogress?(0,fe.jsx)(Fze.A,{fontSize:"small",color:"primary",titleAccess:"In progress"}):null}const Uze=(0,f.styled)(f.Card)`
  &:hover {
    cursor: pointer;
  }
`,$ze=(0,f.styled)("div")`
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
`,Mze=(0,f.styled)("div",{shouldForwardProp:e=>"useGridView"!==e})(e=>{let{useGridView:n}=e;return{minWidth:260,width:n?"100%":260}}),Vze=(0,f.styled)("div",{shouldForwardProp:e=>"useGridView"!==e})(e=>{let{useGridView:n}=e;return n?{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gridGap:25,padding:"5px 0"}:{display:"inline-flex",flexFlow:"row nowrap",alignItems:"flex-start",gap:"25px",minHeight:"246px",overflowX:"auto",whiteSpace:"nowrap",textOverflow:"ellipsis",padding:"0 3px 12px 3px"}}),Gze=(0,f.styled)("span")`
  display: flex;
  width: 100%;
  justify-content: space-between;
  min-height: 21px;
`,zze=(0,f.styled)("span")`
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 90%;
`;function Wze(e){let{courses:n,useGridView:t,title:a}=e;return(0,fe.jsx)(Vze,{useGridView:!!t,children:n.map(e=>(0,fe.jsx)(Mze,{useGridView:!!t,children:(0,fe.jsx)(p.Link,{to:{pathname:`/v2/engage/course/${e.id}`,search:a?`?bundle=${a}`:void 0},children:(0,fe.jsx)(Uze,{title:(0,fe.jsxs)(Gze,{title:e.name,children:[(0,fe.jsx)(zze,{title:e.name,children:e.name}),(0,fe.jsx)($ze,{children:(0,fe.jsx)(Bze,{status:e.userCourseMetaData?.courseProgress})})]}),subTitle:_ze(e?.metaData?.cpd),src:e.metaData?.thumbnail})})},e.id))})}const qze=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  margin-bottom: 16px;

  a {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
`,Jze=(0,f.styled)("section")`
  display: flex;
  flex-flow: column nowrap;
  margin-bottom: 32px;
`,Yze=(0,f.styled)(f.Text)`
  margin-right: 8px;
`.withComponent("h2"),Hze=(0,f.styled)(f.Text)`
  margin-top: -2px;
  margin-bottom: 22px;
`.withComponent(ie.To);function Kze(e){let{title:n,description:t,courses:a,bundleId:i}=e;const l=i||("string"==typeof n?n.toLowerCase():""),r=n&&"string"==typeof n?n:void 0;return(0,fe.jsxs)(Jze,{children:[(0,fe.jsxs)(qze,{children:[(0,fe.jsx)(Yze,{typescale:"title",size:"medium",children:n}),!!a.length&&l&&(0,fe.jsx)(p.Link,{to:{pathname:`/v2/engage/${l}`},children:(0,fe.jsx)(de.A,{id:"pages.learn.viewLink",values:{amount:a.length}})})]}),t&&(0,fe.jsx)("div",{title:t,children:(0,fe.jsx)(Hze,{typescale:"body",size:"medium",source:xn().truncate(t,{length:100,separator:" ",omission:" ..."}),children:t})}),(0,fe.jsx)(Wze,{courses:a,title:r})]})}const Qze=e=>!e.userCourseMetaData||e.userCourseMetaData&&![gn.G1.Inprogress,gn.G1.Complete].includes(e.userCourseMetaData.courseProgress),Zze=e=>e.userCourseMetaData&&e.userCourseMetaData.courseProgress===gn.G1.Inprogress,Xze=e=>e.userCourseMetaData&&e.userCourseMetaData.courseProgress===gn.G1.Complete,eWe=(e,n)=>e.userCourseMetaData?.lastUpdatedAt>n.userCourseMetaData?.lastUpdatedAt?-1:e.userCourseMetaData?.lastUpdatedAt<n.userCourseMetaData?.lastUpdatedAt?1:0;function nWe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t=(0,dc.A)(),a=zo();return(0,g.useMemo)(()=>{const i={mandatoryList:[],showList:[],restrictedCourseList:[]};n.forEach(n=>{if(n.isbBundleShow){const t=e.filter(e=>n.courses.includes(e.id)),a=n.isMandatoryBundle?"mandatoryList":"showList",l=xn().orderBy(t,e=>n.courses.indexOf(e.id),"asc");xn().remove(l,e=>e.userCourseMetaData&&e.userCourseMetaData.courseProgress===gn.G1.Complete),i[a].push({...n,coursesList:l}),n.restricted&&n.courses.length&&(i.restrictedCourseList=[...i.restrictedCourseList,...l.slice(1,l.length).map(e=>e.id)])}});const l=e.filter(e=>e.accountId===a?.id);i.restrictedCourseList=xn().uniq(i.restrictedCourseList),i.showList=xn().orderBy(i.showList,e=>e.title.toLowerCase(),"asc");const r=e=>e.coursesList?.length>0;return[...i.mandatoryList.filter(r).map(e=>({bundleId:e.id,title:e.title,description:e.description,courses:e.coursesList})),{title:t.formatMessage({id:"pages.learn.banners.continue"}),courses:e.filter(Zze).sort(eWe)},{title:t.formatMessage({id:"pages.learn.banners.explore"}),courses:e.filter(Qze).sort(eWe)},{title:`${a?.name} - Uploaded Courses`,courses:l.sort(eWe)},...i.showList.filter(r).map(e=>({bundleId:e.id,title:e.title,description:e.description,courses:e.coursesList})),{title:t.formatMessage({id:"pages.learn.banners.completed"}),courses:e.filter(Xze).sort(eWe)}].filter(e=>e.courses.length)},[t,e,n,a])}function tWe(e,n){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0;const i=Je(),l=qe();return dn(n?sp:op,{variables:{searchTerm:e,accountId:i,pageNumber:1,userId:l.token.sub,section:n??"",bundleId:n},skip:!e&&t,fetchPolicy:a})}const aWe=[{label:"Learn",to:"/v2/engage"}],iWe=["explore","continue","completed","all"],lWe=(0,f.styled)(f.TextField)`
  margin-bottom: 32px;
`,rWe=(0,f.styled)("div")`
  display: flex;
  flex-flow: column nowrap;
`,oWe=(0,f.styled)("div")`
  margin-bottom: 32px;
`;function sWe(){const{id:e="all"}=(0,m.g)(),[n,t]=(0,Gr.useQueryParam)("search"),[a]=(0,XT.useDebounce)(n,600),i=iWe.includes(e),{data:l,loading:r}=tWe(a??"",i?null:e,!1,"cache-first"),o=l?.searchCourses?.data,s=l?.getLearnBundleById,d=nWe(o,s?[s]:l?.getLearnBundlesForAccount),c=(0,g.useMemo)(()=>d.find(n=>i?n.title.toLowerCase()===e:n.bundleId===e),[d,i,e]),u=i||s?.title?{label:i?SRe(e):s?.title}:void 0,p=(0,g.useCallback)(e=>{t(e.target.value)},[t]);return(0,fe.jsx)(f.Page,{title:{crumbs:u?[...aWe,u]:aWe,content:"Learn about sustainability"},loading:r,children:(0,fe.jsxs)(rWe,{children:[(0,fe.jsx)(oWe,{children:(0,fe.jsx)(YLe,{})}),(0,fe.jsx)(lWe,{name:"ConfigurationAccountsContainer__Controls__Search",type:"search",value:n,onChange:p,error:!1,placeholder:"Search"}),!!c?.courses.length&&(0,fe.jsx)(Wze,{useGridView:!0,title:c.title,courses:c.courses})]})})}var dWe=t(53331),cWe=t.n(dWe);const uWe=(0,f.styled)("div")`
  padding: 24px 16px;
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.errorContainer}};
`,pWe=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`.withComponent("h3"),mWe=e=>{let{relatedCourses:n}=e;return n.length?(0,fe.jsx)(Kze,{title:(0,fe.jsx)(de.A,{id:"pages.coursesPreview.relatedCourses",defaultMessage:"Related courses"}),courses:n}):(0,fe.jsx)(p.Link,{to:"/v2/engage",children:(0,fe.jsx)(uWe,{children:(0,fe.jsx)(pWe,{typescale:"title",size:"medium",children:(0,fe.jsx)(de.A,{id:"pages.coursesPreview.noResults"})})})})},fWe=t.p+"learn-fb3ef984335dc9eb9679.svg",yWe=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  margin-bottom: 16px;
`,gWe={PDF:{NOTSTARTED:"",COMPLETE:"You have downloaded this file."},EMBED:{NOTSTARTED:"",INPROGRESS:"pages.coursesPreview.statuses.embed.inprogress",COMPLETE:"You have completed this course."},EXTERNAL:{},IFRAME:{},DOWNLOAD:{}},hWe=e=>{let{courseProgress:n,handleType:t}=e;const a=gWe[t][n];return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(yWe,{typescale:"body",size:"large",children:a&&(0,fe.jsx)(de.A,{id:a})})})},xWe=(0,f.styled)("div")`
  width: 100%;
  height: 100%;
  padding: 24px;
`,TWe=(0,f.styled)(f.Text)`
  text-align: center;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
  margin-bottom: 24px;
`.withComponent("h2"),bWe=(0,f.styled)(f.Text)`
  margin-bottom: 16px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
`,vWe=(0,f.styled)("div")`
  display: flex;
  gap: 16px;
  justify-content: space-between;
`,CWe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
`,kWe=(0,f.styled)(f.Text)``.withComponent("span"),SWe=(0,f.styled)("div")`
  display: flex;
  width: 100%;
  gap: 24px;
  justify-content: space-between;
  margin-top: 16px;
`,NWe=(0,f.styled)(f.Button)`
  width: 100%;
`,AWe=(0,f.styled)(f.TextField)`
  width: 196px;
`;function RWe(e,n){return e?.reduce((e,t)=>({...e,[t.id]:t.answers?.[n]?.value}),{})}function DWe(e){let{evaluation:n,onSubmit:t,onGoNext:a,goNextButtonTitle:i,reevaluation:l,type:r,isSubmitting:o}=e;const[s,d]=(0,g.useState)(RWe(n?.questions,0)),[c,u]=(0,g.useState)(RWe(n?.questions,1)),[p,m]=(0,g.useState)({}),y=n?.questions.every(e=>e?.answers?.length>=1),h=n?.questions.every(e=>e?.answers?.length>=2);return(0,fe.jsx)(xWe,{children:n?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(TWe,{typescale:"headline",size:"small",children:n?.name}),(0,fe.jsx)(bWe,{typescale:"body",size:"large",children:n?.description}),(0,fe.jsx)(CWe,{children:n?.questions?.map((e,t)=>(0,fe.jsxs)(vWe,{children:[(0,fe.jsxs)(f.Text,{typescale:"body",size:"large",children:[(0,fe.jsxs)(kWe,{typescale:"title",size:"medium",children:["Q",t+1,":"]}),e.text]}),(0,fe.jsx)(AWe,{type:"number",value:s[e.id],error:l?null:p[e.id],placeholder:`${n.scale.min}-${n.scale.max}`,disabled:y,inputProps:{min:n.scale.min,max:n.scale.max},onChange:n=>{d({...s,[e.id]:n.target.value})}}),l&&(0,fe.jsx)(AWe,{type:"number",value:c[e.id],error:p[e.id],placeholder:`${s[e.id]||n.scale.min}-${n.scale.max}`,inputProps:{min:n.scale.min,max:n.scale.max},disabled:h,onChange:n=>{u({...c,[e.id]:n})}})]},e.id))}),(0,fe.jsxs)(SWe,{children:[(0,fe.jsx)(NWe,{variant:"contained",onClick:a,children:i}),(0,fe.jsxs)(NWe,{disabled:o||(l?h:y),onClick:()=>{const e=l?c:s,a=Mu(n,e,l?s:null);if(Object.keys(a).length)return m(a);Object.keys(p).length&&m({}),t(Object.keys(e).map(n=>({questionId:n,value:e[n]})))},children:["Submit ",r]})]})]}):null})}const LWe=(0,f.styled)("div")`
  height: 100%;
`,IWe=(0,f.styled)("div")`
  display: flex;
  flex: auto;
  height: auto;

  div:has(> video) {
    width: 100%;
  }

  iframe {
    min-height: 90vh;
  }
`,jWe=(0,f.styled)("div")`
  justify-content: space-between;
  display: flex;
  gap: 16px;
  width: 100%;
`,wWe=(0,f.styled)(f.Button)`
  flex-basis: 50%;
`,OWe={display:"block"},EWe=e=>{let{onDismiss:n,course:t,link:a,courseRefetch:i=()=>{}}=e;const{showNotification:l}=tn(),{token:r}=qe(),o=Je(),s=np(t,a,i),d=t.assessment?.questions?.every?.(e=>e.answers?.length>=1),[c,u]=(0,g.useState)(t.assessment?0:1),[p,m]=(0,g.useState)(null),[f,y]=(0,g.useState)(!1),[h,{loading:x}]=(0,ln.n)(nu,{onError:e=>{m({color:"danger",message:e.message})}}),T=(0,g.useCallback)((e,n)=>a=>{a.writeQuery({query:cp,variables:{accountId:o,id:t.id,userId:r.sub,userIdNullable:r.sub},data:{getCourseById:{...t,[n]:{...t[n],questions:t[n].questions.map(n=>{const t=e.find(e=>e.questionId===n.id),a=n.answers||[];return{...n,answers:a.concat([{givenAt:(new Date).toISOString(),value:t.value,__typename:"Answer"}])}})}}}})},[o,t,r]),b=(0,g.useCallback)(async(e,n)=>{await h({variables:{answers:e,userId:r.sub,courseId:t.id,evaluationId:t.reaction.id},update:T(e,n)})},[h,t,r.sub,T]);return(0,fe.jsxs)(ie.aF,{height:"auto",maxHeight:"100%",minHeight:"-webkit-fill-available",span:12,onDismiss:n,style:OWe,show:!0,children:[0===c&&(0,fe.jsx)(DWe,{type:"Pre-assessment",goNextButtonTitle:f?"Go to Post-assessment":"Go to Course",evaluation:t.assessment,onSubmit:e=>{b(e,"assessment"),i()},onGoNext:async()=>{t.type===gn.US.Pdf?f?u(2):(await s(),y(!0)):u(1)},isSubmitting:x,reevaluation:!1}),1===c&&(0,fe.jsxs)(LWe,{children:[(0,fe.jsx)(IWe,{children:(0,fe.jsx)(du,{course:t,link:a,courseRefetch:i,onCompleted:()=>{t.assesment&&d&&u(2)}})}),t.assessment&&d&&(0,fe.jsxs)(jWe,{children:[(0,fe.jsx)(wWe,{variant:"contained",onClick:()=>{u(2)},children:"Go to Post-assessment"}),(0,fe.jsx)(wWe,{onClick:n,children:"Close"})]}),!t.assessment&&t.reaction&&(0,fe.jsxs)(jWe,{children:[(0,fe.jsx)(wWe,{variant:"contained",onClick:()=>{u(3)},children:"Go to Reaction"}),(0,fe.jsx)(wWe,{onClick:n,children:"Close"})]})]}),2===c&&(0,fe.jsx)(DWe,{type:"Post-assessment",goNextButtonTitle:t.reaction?"Go to reaction":"Close",evaluation:t.assessment,onSubmit:e=>b(e,"assessment"),onGoNext:()=>{t.reaction?u(3):n()},isSubmitting:x,reevaluation:!0}),3===c&&(0,fe.jsx)(DWe,{type:"Reaction",goNextButtonTitle:"Close",evaluation:t.reaction,onSubmit:e=>b(e,"reaction"),isSubmitting:x,onGoNext:n,reevaluation:!1}),p&&l(p.message)]})},_We=(0,f.styled)(f.Button)`
  margin-top: 16px;
`,FWe=Pu(e=>{let{course:n,downloadLink:t,handleType:a,courseRefetch:i,name:l}=e;const[r,o]=(0,g.useState)(!1),s=np(n,t,i),d=ep(n,i),c=a===ya&&null===n.assessment,u=(0,g.useCallback)(()=>{c?s():a===fa?(d(),window.open(n.metaData.url,"_blank")):a===ma?(d(),o(!0)):o(!0)},[c,a,s,d,n,o]);return(0,fe.jsxs)(fe.Fragment,{children:[r&&(0,fe.jsx)(EWe,{onDismiss:()=>{o(!1)},course:n,link:t,courseRefetch:i}),(0,fe.jsx)(_We,{name:l,onClick:u,variant:"contained",children:c?"Download PDF":(0,fe.jsx)(de.A,{id:"pages.coursesPreview.startCourse"})})]})},"learn.preview",{closeLabel:"learnTour.close",joyrideOptions:{scrollToFirstStep:!1}}),PWe=(0,f.styled)("div")`
  width: 100%;
  background: ${e=>{let{theme:n}=e;return n.sys.color.onPrimary}};
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
`,BWe=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,UWe=(0,f.styled)("div")`
  position: relative;
  border-radius: 12px;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  box-shadow: ${e=>e.theme.sys.elevation[0]};
  padding: 0 0 75% 0;
  background: ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}} url(${e=>{let{src:n}=e;return n}}) center center no-repeat;
  background-size: cover;
`,$We=(0,f.styled)("div")`
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -50px;
  margin-left: -50px;
  border: 4px solid ${e=>{let{theme:n}=e;return n.sys.color.onPrimary}};
  border-radius: 50%;
  display: inline-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 100px;
`,MWe=(0,f.styled)("img")`
  width: 80%;
  height: 80%;
`,VWe=(0,f.styled)("div")``,GWe=(0,f.styled)("div")`
  width: 25%;
`,zWe=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  margin-bottom: 16px;
`.withComponent("h2"),WWe=(0,f.styled)("div")`
  display: flex;
  gap: 16px;

  svg {
    width: 40px !important;
    height: 40px !important;
  }
`,qWe=e=>{let{course:n,userId:t,refetch:a}=e;const i=new ga(n).getHandleMethod();return(0,fe.jsxs)(PWe,{children:[(0,fe.jsx)(GWe,{children:(0,fe.jsx)(UWe,{name:"CoursePreview__Thumbnail",src:n.metaData.thumbnail,children:!n.metaData.thumbnail&&(0,fe.jsx)($We,{children:(0,fe.jsx)(MWe,{src:fWe})})})}),(0,fe.jsxs)(VWe,{children:[(0,fe.jsxs)(WWe,{children:[(0,fe.jsx)(zWe,{typescale:"headline",size:"large",children:n.name}),(0,fe.jsx)(Bze,{status:n.userCourseMetaData&&n.userCourseMetaData.courseProgress})]}),(0,fe.jsx)(hWe,{courseProgress:n.userCourseMetaData&&n.userCourseMetaData.courseProgress,handleType:i}),!!n.metaData.description&&(0,fe.jsx)(BWe,{typescale:"body",size:"large",children:Boe()(n.metaData.description)}),(0,fe.jsx)(FWe,{course:n,handleType:i,downloadLink:n.metaData.link,userId:t,courseRefetch:a,name:"StartCourse-Button",steps:Uu})]})]})};var JWe=t(79568),YWe=t.n(JWe);const HWe=le.default.div`
  overflow: auto;
  height: 100%;
`,KWe=e=>cWe()([{label:(0,fe.jsx)(de.A,{id:"pages.coursesPreview.breadcrumbs.three"}),to:"/v2/engage"},{label:e||!1},{label:(0,fe.jsx)(de.A,{id:"pages.coursesPreview.breadcrumbs.two"})}],e=>!!e.label),QWe=(e,n,t)=>{if(!e)return n?new Error(n.message):t?.getUserCourse?t?.getUserCourse?.licence?void 0:new Error("No licence"):new Error("Not available")},ZWe=()=>{const{bundleId:e,id:n}=(0,m.g)(),[t]=(0,p.useSearchParams)(),a=t.get("bundle")||void 0,{token:i}=qe(),[l,r]=function(e){let{courseId:n,userId:t}=e;const a=Je();return[dn(YWe(),{variables:{accountId:a,courseId:n,userId:t}}),(0,x.IT)(Tl(),{variables:{accountId:a,pageNumber:1,ownedCourses:!0}})]}({courseId:n,userId:i.sub,bundleId:e});return(0,fe.jsx)(f.Page,{title:{crumbs:KWe(a),content:(0,fe.jsx)(de.A,{id:"pages.coursesPreview.breadcrumbs.two"}),actionButton:(0,fe.jsx)(f.Button,{to:"../",name:"CoursePreview__Button-back",variant:"contained",children:(0,fe.jsx)(de.A,{id:"pages.coursesPreview.backToLearn"})})},error:QWe(l.loading,l.error,l.data),children:(0,fe.jsxs)(HWe,{children:[l.data?.getUserCourse&&(0,fe.jsx)(qWe,{userId:i.sub,course:l.data?.getUserCourse,bundleId:e,refetch:l.refetch}),l.data?.getUserCourse&&r.data?.getAvailableCourses&&(0,fe.jsx)(mWe,{relatedCourses:r.data.getAvailableCourses?.data.filter(e=>e.id!==n)})]})})},XWe=e=>cWe()([{label:"Learn",to:"/v2/engage"},{label:e},{label:"Overview",to:"/v2/engage"}],e=>!!e.label),eqe=(0,f.styled)(f.TextField)`
  margin-bottom: 32px;
`,nqe=(0,f.styled)("div")`
  display: flex;
  flex-flow: column nowrap;
`,tqe=(0,f.styled)("div")`
  margin-bottom: 32px;
  max-height: 200px;
`;function aqe(){const[e,n]=(0,Gr.useQueryParam)("search"),t=(0,g.useCallback)(e=>{n(e.target.value)},[n]),{data:a,loading:i}=Eze(),{data:l,loading:r}=tWe(e),o=nWe(e?l?.searchCourses?.data:a?.getAvailableCourses?.data,e?l?.getLearnBundlesForAccount:a?.getAvailableCourses.learnBundleList),[s]=(0,p.useSearchParams)(),d=s.get("bundle");return(0,fe.jsx)(f.Page,{title:{crumbs:XWe(d),content:"Learn about sustainability"},loading:i||r,children:(0,fe.jsxs)(nqe,{children:[(0,fe.jsx)(tqe,{children:(0,fe.jsx)(YLe,{})}),(0,fe.jsx)(eqe,{name:"ConfigurationAccountsContainer__Controls__Search",type:"search",value:e,onChange:t,error:!1,placeholder:"Search"}),o.map(e=>(0,fe.jsx)(Kze,{title:e.title,description:e.description,courses:e.courses,bundleId:e.bundleId},e.title))]})})}const iqe=le.default.div`
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
`,lqe=e=>{let{applicationData:{getAccountInfo:n}}=e;const t=!n||n.accessControls.learn;return(0,fe.jsx)(iqe,{children:t?(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"",element:(0,fe.jsx)(aqe,{})}),(0,fe.jsx)(m.qh,{path:":id",element:(0,fe.jsx)(sWe,{})}),(0,fe.jsx)(m.qh,{path:"course/:id",element:(0,fe.jsx)(ZWe,{})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:"engage"})})]}):(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"",element:(0,fe.jsx)(aqe,{})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:"engage"})})]})})},rqe=(0,f.styled)(f.Text)`
  margin-bottom: 24px;
  color: ${e=>e.theme.sys.color.onSurface};
`,oqe=(0,f.styled)(f.Text)`
  color: ${e=>e.theme.sys.color.onSurface};
`,sqe=(0,f.styled)("div")`
  display: flex;
  flex-flow: row nowrap;
  gap: 24px;
  margin-bottom: 14px;
`,dqe=(0,f.styled)("div")`
  display: flex;
  width: 328px;
  height: 80px;
  overflow: hidden;
  min-height: 80px;
  min-width: 328px;
  padding: 5px 30px;
  align-items: start;
  border-radius: 12px;
  flex-direction: unset;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurface}};
  box-shadow: ${e=>{let{theme:n}=e;return n.sys.elevation[1]}};
  background-color: ${e=>{let{theme:n}=e;return n.sys.color.onSecondary}};
  border: 1px dashed ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  margin-bottom: 12px;
`,cqe=(0,f.styled)(f.Button)`
  width: 196px;
`;function uqe(){const e=Yo(),{data:n,loading:t}=Eze(),a=(0,g.useMemo)(()=>n?.getAvailableCourses?.data||[],[n]),i=Number(n?.getAvailableCourses?.data?.length||1)-1,l=(e=>{if(e)return[...e].sort(()=>.5-Math.random()).slice(0,3)})(n?.getAvailableCourses.data),{inProgressCourseExists:r,userHasCompletedCourses:o,userNeverStartedCourse:s}=(0,g.useMemo)(()=>{const e=a.some(e=>"INPROGRESS"===e.userCourseMetaData?.courseProgress);return{userHasCompletedCourses:a.some(e=>"COMPLETE"===e.userCourseMetaData?.courseProgress),inProgressCourseExists:e,userNeverStartedCourse:a.every(e=>null===e.userCourseMetaData||"NOTSTARTED"===e?.userCourseMetaData?.courseProgress)}},[a]),d=(0,g.useMemo)(()=>{let n;switch(!0){case o&&!r:n="Why not take another course";break;case s:n="Start your learning";break;case r:n="Continue your learning";break;default:n="Start your learning"}return`${n}, ${e?.first_name}${o&&!r?"?":""}`},[r,e?.first_name,o,s]),c=(0,g.useMemo)(()=>s?l:r?a.filter(e=>e?.userCourseMetaData?.courseProgress===gn.G1.Inprogress):a,[a,r,l,s]);return t?null:(0,fe.jsxs)("div",{children:[(0,fe.jsx)(rqe,{typescale:"title",size:"medium",children:d}),(0,fe.jsxs)(sqe,{children:[(s||r)&&c?.map(e=>(0,fe.jsx)(p.Link,{to:`/v2/engage/course/${e?.id}`,children:(0,fe.jsx)(f.HorizontalCard,{title:e?.name,subTitle:_ze(e?.metaData?.cpd),src:e?.metaData?.thumbnail})},e.id)),o&&!r&&(0,fe.jsx)(dqe,{children:t?(0,fe.jsx)(f.Loader,{size:35}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(oqe,{children:`${i}+ courses to choose from`}),(0,fe.jsx)(cqe,{variant:"text",to:"/v2/engage",children:"View all courses"})]})})]}),(a.length||r)&&(0,fe.jsxs)(cqe,{variant:"text",to:"/v2/engage",children:[(0,fe.jsx)(Oze.A,{fontSize:"small"}),"View all courses"]})]})}const pqe=(0,f.styled)("div")`
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
`,mqe=(0,f.styled)(f.Text)`
  color: ${e=>e.theme.sys.color.onSurface};
`,fqe=(0,f.styled)(A_e)`
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 2px;
`,yqe=(0,f.styled)(iPe)`
  min-height: 40px;
  display: flex;
  align-items: center;
`;function gqe(){return(0,fe.jsxs)(pqe,{children:[(0,fe.jsx)(mqe,{typescale:"title",size:"medium",children:"Your data"}),(0,fe.jsxs)(fqe,{children:[(0,fe.jsx)(f.DrawerLink,{to:"/v2/data",children:(0,fe.jsx)(yqe,{color:"sys.color.error",children:"Missing data and empty transactions"})}),(0,fe.jsx)(f.DrawerLink,{to:"/v2/data",children:(0,fe.jsx)(yqe,{color:"customColors.warning.color",children:"Anomalies found in your data"})})]})]})}const hqe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 16px;
  margin: 0px;
  height: min-content;
  padding: ${e=>{let{withPadding:n}=e;return n?"32px 18px;":"none"}};
  border: ${e=>{let{border:n,theme:t}=e;return n?`1px solid ${t.sys.color.outlineVariant}`:"none"}};
`,xqe=(0,f.styled)(f.ColumnChart)`
  & > .ag-root-wrapper {
    border: none !important;
  }
`,Tqe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 16px;
  padding: ${e=>{let{withPadding:n}=e;return n?"24px 18px":0}};
  border: ${e=>{let{border:n,theme:t}=e;return n?`1px solid ${t.sys.color.outlineVariant}`:"none"}};
`,bqe=e=>{let{data:n}=e;const t=location.pathname,a=or(),i=t===`/v2/${a.home.root}`,l=!Object.values(a.home.impact).some(e=>t.includes(e)&&!i),r=[{to:`/${a.home.root}`,item:"Total carbon",isActive:i},{to:`./${a.home.impact.emissionByScope}`,item:"Emissions by Scope",isActive:t.includes(a.home.impact.emissionByScope)&&!t.includes("carbon")},{to:`./${a.home.impact.emissionBySource}`,item:"Emissions by Source",isActive:t.includes(a.home.impact.emissionBySource)},{to:`./${a.home.impact.grossNetEmission}`,item:"Gross & Net Emissions",isActive:t.includes(a.home.impact.grossNetEmission)}],o=r.find(e=>e.item.includes(t))?.item,s=[{label:"Activity",children:(0,fe.jsxs)(C_e,{children:[(0,fe.jsx)(f.NavigationDrawer,{items:r}),(0,fe.jsx)(S_e,{children:(e=>{switch(!0){case i:return(0,fe.jsx)(aBe,{sectionName:o||"",data:e.getTotalEmissions,iconSize:100,children:(0,fe.jsx)(f.KpiChartCard,{delay:.1,initialDelay:1,decimalPlaces:2,parentWidth:400,maxWidth:"unset",alignItems:"flex-start",title:"Total carbon (tCO2e) over previous 12 months",value:e.getTotalEmissions})});case t.includes(a.home.impact.emissionByScope)&&!t.includes("carbon"):return(0,fe.jsx)(aBe,{sectionName:o||"",data:e.getEmissionsPercentageBreakdownByScope,iconSize:100,children:(0,fe.jsx)(hqe,{children:(0,fe.jsx)(Fee,{title:"",scopeBreakdown:e.getEmissionsPercentageBreakdownByScope,border:!1})})});case t.includes(a.home.impact.emissionBySource):return(0,fe.jsx)(aBe,{sectionName:o||"",data:e.getEmissionsBySource,iconSize:100,children:(0,fe.jsx)(hqe,{children:(0,fe.jsx)(f.StackedChart,{enableLegend:!1,data:e.getEmissionsBySource,unit:"tCO2e",colors:R9,size:f.ChartSize.Fluid,border:!1,dataLabels:{enabled:!1}})})});case t.includes(a.home.impact.grossNetEmission):return(0,fe.jsx)(aBe,{sectionName:o||"",data:e.getEmissionsNetAndGross,iconSize:100,children:(0,fe.jsx)(Tqe,{children:(0,fe.jsx)(xqe,{enableLegend:!1,data:e.getEmissionsNetAndGross||[],size:f.ChartSize.Fluid,unit:"tCO2e",border:!1,dataLabels:{enabled:!1}})})});default:return(0,fe.jsx)(m.C5,{to:`/${a.home.root}`})}})(n)})]})}];return(0,fe.jsxs)(b_e,{children:[l&&(0,fe.jsx)(m.C5,{to:`/${a.home.root}`}),(0,fe.jsxs)(k_e,{variant:"text",to:"/v2/reporting",children:[(0,fe.jsx)(f.Icons.ArrowForward,{}),"View all reports"]}),(0,fe.jsx)(v_e,{typescale:"title",size:"medium",children:"Reporting"}),(0,fe.jsx)(f.Tabs,{tabs:s})]})},vqe=e=>{let{data:n}=e;return(0,fe.jsxs)(x_e,{children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(bqe,{data:n})}),(0,fe.jsxs)(T_e,{children:[(0,fe.jsx)(w_e,{}),(0,fe.jsx)(gqe,{})]})]})},Cqe=(0,f.styled)(f.Text)`
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  height: 100%;
  color: ${e=>e.theme.sys.color.onSurface};
`,kqe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
`,Sqe=(0,f.styled)("div")`
  width: 88%;
`,Nqe=(0,f.styled)("div")`
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: ${e=>e.completed?"none":`1px solid ${e.theme.sys.color.outlineVariant}`};
  background: ${e=>e.completed?e.theme.extendedColors.environmental.color:e.theme.sys.color.surface};
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;

  svg {
    display: ${e=>e.completed?"inline-block":"none"};
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: ${e=>e.theme.sys.color.onSurface};
  }
`,Aqe=(0,f.styled)(f.Button)`
  width: 180px;
`,Rqe=(0,f.styled)("div")`
  display: flex;
  padding: 2px;
  margin-bottom: 12px;
  flex-flow: row nowrap;
  align-items: center;
  ${e=>{let{theme:n}=e;return n.breakpoints.down("lg")}} {
    flex-wrap: wrap;
    flex-flow: column;
  }
`,Dqe=(0,f.styled)("div")`
  width: 24px;
  height: 24px;
  margin: 12px;
  border-radius: 12px;
  border: 1px solid ${e=>e.theme.sys.color.outlineVariant};
`,Lqe=(0,f.styled)("div")`
  width: 183px;
  height: 97px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex-shrink: 0;
  padding-left: 12px;
  border-radius: 16px;
  border: 1px solid ${e=>e.theme.sys.color.outlineVariant};
  background: ${e=>e.theme.sys.color.surface};
  box-shadow: ${e=>e.theme.sys.elevation[1]};
  position: relative;

  &:hover {
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.secondaryContainer}};
  }
`,Iqe=(0,f.styled)("div")`
  &:not(:first-child) {
    margin-left: 12px;
    position: relative;
  }
  &:not(:first-child):before {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: -13px;
    width: 12px;
    border-top: 1px dashed #c7c5d0;
    content: '';
    border-top: 1px dashed ${e=>{let{theme:n}=e;return n.sys.color.outlineVariant}};
  }
`,jqe=(0,f.styled)(Iqe)`
  width: 183px;
  height: 97px;
  border-radius: 16px;
  position: relative;
  border: ${e=>{let{isEmpty:n,theme:t}=e;return`1px ${n?"solid":"dashed"} ${t.sys.color.outlineVariant}`}};
`,wqe=()=>(0,fe.jsx)(jqe,{children:(0,fe.jsx)(Dqe,{})}),Oqe=e=>{let{tasks:n}=e;const t=(a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const n=(new Date).getTime(),t=n-2592e6,a=n+2592e6;return e.filter(e=>{const n=new Date(e.dueDate).getTime();return n>t&&n<a}).sort((e,n)=>new Date(e.dueDate).getTime()-new Date(n.dueDate).getTime()).slice(0,5)}(n),new Array(3).fill(null).map((e,n)=>a[n]));var a;return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)(f.Grid,{container:!0,children:[(0,fe.jsx)(Cqe,{typescale:"title",size:"medium",children:"Tasks"}),(0,fe.jsx)(N_e,{children:(0,fe.jsx)(Rqe,{children:t?.map((e,n)=>e?(0,fe.jsx)(Iqe,{title:e.name,children:(0,fe.jsx)(p.Link,{to:`/v2/tasks/${e.id}`,children:(0,fe.jsxs)(Lqe,{children:[(0,fe.jsx)(Nqe,{completed:e.isCompleted,children:(0,fe.jsx)(f.Icons.Check,{})}),(0,fe.jsx)(Sqe,{children:(0,fe.jsx)(Cqe,{typescale:"body",size:"medium",children:e.name})})]})})},e.id):(0,fe.jsx)(wqe,{},`EmptyTask__${n}`))})}),(0,fe.jsx)(kqe,{children:(0,fe.jsxs)(Aqe,{variant:"text",to:"/v2/tasks",children:[(0,fe.jsx)(f.Icons.ArrowForward,{fontSize:"small"}),"View all tasks"]})})]})})},Eqe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
`,_qe={content:"Sustainability is for everyone"};function Fqe(e){let{applicationData:{getTasksByUserId:n}}=e;const[t,a]=Bee(),i=Je(),l=(0,m.Zp)(),r=or(),o=Yo(),{data:s,loading:d}=(0,x.IT)(wze,{variables:{accountId:i,timeGranularity:gn.iG.Month,from:t.format("YYYY-MM-DD"),to:a.format("YYYY-MM-DD")}});return(0,g.useLayoutEffect)(()=>{o?.role?.role===gn.gG.Surveysonly&&l(`/v2/${r.surveys.root}/${r.surveys.sent.overview}`)},[]),(0,fe.jsx)(f.Page,{title:_qe,children:(0,fe.jsx)(Eqe,{children:!d&&s?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(uqe,{}),(0,fe.jsx)(vqe,{data:s}),n&&(0,fe.jsx)(Oqe,{tasks:n})]}):(0,fe.jsx)(f.Loader,{})})})}function Pqe(e){let{applicationData:n}=e;const t=Yl("IMPACT_DASHBOARD",Rt,"170b5402-e820-4579-a9e6-981c4573ab1f",Dt,jt,wt,"d9deba3c-33f1-4a58-b339-e82d0549850f",It,Ot,Et,_t,Ft,...Bt),a=n.getAccountInfo?.customImpactDashboard;return t||a?(0,fe.jsx)(Vre,{customDashboard:a||void 0}):(0,fe.jsx)(Fqe,{applicationData:n})}var Bqe=t(86257),Uqe=t(99684),$qe=t(98415);const Mqe={email:e=>(0,Bqe.A)(e)?"":"Must be a valid email address",firstName:e=>(0,Uqe.A)(e)?"First Name is required.":"",lastName:e=>(0,Uqe.A)(e)?"Last Name is required.":"",mobile:e=>(0,Uqe.A)(e)||(0,$qe.A)(e)?"":"Must be a valid mobile number.",phone:e=>(0,Uqe.A)(e)||(0,tFe.A)(e)?"":"Must be a valid phone number."},Vqe=e=>{let{user:n}=e;const{showNotification:t}=tn(),{first_name:a,last_name:i,jobTitle:l,phone:r,department:o,mobile:s,email:d,id:c,profilePicture:u,account:p}=n,[m,y]=(0,g.useState)({firstName:{value:a,error:""},lastName:{value:i,error:""},jobTitle:{value:l,error:""},phone:{value:r,error:""},department:{value:o,error:""},mobile:{value:s,error:""},email:{value:d,error:""}}),{showCreateDepartment:h,setShowCreateDepartment:x}=$o(p.departments,m.department.value),[T,b]=(0,g.useState)(!1),[v,{loading:C}]=(0,ln.n)(tOe,{onCompleted:()=>{t("User details have been updated.","success")},onError:()=>{t("Something went wrong. Please try again later.","danger")}}),k=(0,g.useMemo)(()=>{let e=!1;return Object.keys(m).forEach(n=>{m[n].error&&(e=!0)}),e},[m]),S=(0,g.useCallback)(e=>{b(!0),y(n=>({...n,[e.target.name]:{value:e.target.value,error:Mqe[e.target.name]?.(e.target.value)}}))},[]),N=(0,g.useCallback)(e=>{b(!0),y(n=>({...n,department:{value:e.value,error:""}}))},[]),A=(0,g.useCallback)(()=>{v({variables:{id:c,account_id:n.account.id,email:m.email.value,previousEmail:n.email,first_name:m.firstName.value,last_name:m.lastName.value,jobTitle:m.jobTitle.value,department:"notSelected"!==m.department.value?m.department.value:null,phone:m.phone.value,mobile:m.mobile.value,profile:u}}),b(!1)},[c,m,n,u,v]),R=(0,g.useCallback)((e,n)=>{y(e=>({...e,department:{value:n.departmentId,error:""}}))},[]);return(0,fe.jsxs)(g.Fragment,{children:[(0,fe.jsx)(Nh,{passedAccountId:p.id,showCreateDepartment:h,setShowCreateDepartment:x,onComplete:R}),(0,fe.jsxs)(f.Grid,{container:!0,spacing:4,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{label:"First name",name:"firstName",onChange:S,value:m.firstName.value,helperText:m.firstName.error,error:Boolean(m.firstName.error)})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{label:"Last name",name:"lastName",onChange:S,value:m.lastName.value,helperText:m.lastName.error,error:Boolean(m.lastName.error)})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{label:"Job title (optional)",name:"jobTitle",onChange:S,value:m.jobTitle.value,helperText:m.jobTitle.error,error:Boolean(m.jobTitle.error)})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Select,{label:"Department (optional)",name:"department",options:p.departments.map(e=>({value:e.id,label:e.name})),onChange:N,value:m.department.value,helperText:m.department.error,error:Boolean(m.department.error)})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{label:"Phone number (optional)",name:"phone",onChange:S,value:m.phone.value,helperText:m.phone.error,error:Boolean(m.phone.error)})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{label:"Mobile number (optional)",name:"mobile",onChange:S,value:m.mobile.value,helperText:m.mobile.error,error:Boolean(m.mobile.error)})}),(0,fe.jsx)(f.Grid,{size:16,children:(0,fe.jsx)(f.TextField,{label:"Email address",name:"email",onChange:S,value:m.email.value,helperText:m.email.error,error:Boolean(m.email.error)})}),(0,fe.jsx)(f.Grid,{size:16,children:(0,fe.jsx)(f.Button,{disabled:!T||k||C,onClick:A,variant:"contained",color:"primary",loading:C,sx:{width:"100%"},children:"Update"})})]})]})},Gqe=(0,f.styled)("div")`
  display: flex;
  gap: 72px;
`,zqe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 300px;
`,Wqe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  gap: 8px;
`,qqe=(0,f.styled)(f.Text)`
  text-align: center;
`,Jqe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 600px;
`,Yqe=()=>{const{showNotification:e}=tn(),[n,t]=(0,g.useState)(!1),[a]=(0,ln.n)(aOe,{onCompleted:()=>{e("Profile picture has been updated","success"),t(!1)},onError:n=>{e(`Something went wrong (${n.message}). Please try again later.`,"danger"),t(!1)}}),{data:i,loading:l}=Ns();return(0,fe.jsxs)(f.Page,{loading:l,title:{content:"My profile",crumbs:[{label:"My profile"}]},children:[n&&(0,fe.jsx)(f.Modal,{open:!0,onClose:()=>t(!1),title:"Edit Profile Picture",children:(0,fe.jsx)(f.ImageEditor,{defaultImageSrc:i.profilePicture,onSave:async e=>{await a({variables:{...i,account_id:i.account.id,previousEmail:i.email,imageData:e,contentType:"image/png",fileName:`${i.id}.png`,profile:`${De("REACT_APP_PROFILE_BUCKET")}/${i.id}.png?time=${(new Date).toISOString()}`}})},shouldResetAfterSuccess:!0})}),(0,fe.jsxs)(Gqe,{children:[(0,fe.jsxs)(zqe,{children:[(0,fe.jsx)(ie.Y3,{border:!0,name:"profile-picture",src:i.profilePicture,size:"xl",accountName:i.first_name}),(0,fe.jsxs)(Wqe,{as:"button",sx:{cursor:"pointer"},onClick:()=>t(!0),children:[(0,fe.jsx)(f.Icons.EditRounded,{}),(0,fe.jsx)(f.Text,{typescale:"title",size:"medium",children:(0,fe.jsx)(de.A,{id:"profile.editProfilePicture"})})]}),(0,fe.jsxs)(Wqe,{children:[(0,fe.jsx)(f.Icons.AssignmentIndRounded,{}),(0,fe.jsx)(qqe,{typescale:"title",size:"medium",children:`${i.first_name} ${i.last_name}`})]}),(0,fe.jsxs)(Wqe,{children:[(0,fe.jsx)(f.Icons.ManageAccountsRounded,{}),(0,fe.jsx)(qqe,{typescale:"title",size:"medium",children:i.role.name})]}),(0,fe.jsxs)(Wqe,{children:[(0,fe.jsx)(f.Icons.ApartmentRounded,{}),(0,fe.jsx)(qqe,{typescale:"title",size:"medium",children:i.account.name})]})]}),i&&(0,fe.jsx)(Jqe,{children:(0,fe.jsx)(Vqe,{user:i})})]})]})},Hqe=(e,n,t,a,i)=>{const l=[{item:(0,fe.jsx)(de.A,{id:"pages.surveys.subjects.surveysSent"}),dropdownItems:[{item:(0,fe.jsx)(de.A,{id:"pages.surveys.subjects.overview"}),to:`./${n.surveys.sent.overview}`,isActive:e.includes(n.surveys.sent.overview)},{item:(0,fe.jsx)(de.A,{id:"pages.surveys.subjects.contributors"}),to:`./${n.surveys.sent.contributors}`,isActive:e.includes(n.surveys.sent.contributors)},{item:(0,fe.jsx)(de.A,{id:"pages.surveys.subjects.surveys"}),to:`./${n.surveys.sent.surveys}`,isActive:e.includes(n.surveys.sent.surveys)}].filter(e=>!i||i&&!e.to.includes("contributors"))},{item:(0,fe.jsx)(f.Badge,{badgeContent:t,anchorRightVerticalCenter:!!t,children:(0,fe.jsx)(de.A,{id:"pages.surveys.subjects.surveysReceived"})}),to:`./${n.surveys.received.surveys}`,isActive:e.includes(n.surveys.received.surveys)}];return a?l:l.slice(1)},Kqe=(e,n,t,a,i,l,r,o,s,d,c)=>{const u=Hqe(e,n,a,o,c)?.[0].dropdownItems?.filter(e=>e.isActive&&e.item)[0],p=l?.owner,m=l?.survey;return(e.includes(n.surveys.received.surveys)?t?e.includes("response-log")?[{label:"Surveys Received",to:`./${n.surveys.received.surveys}`},{label:t,to:e.substring(0,e.lastIndexOf("/response-log"))},{label:"Response log"}]:[{label:"Surveys Received",to:`./${n.surveys.received.surveys}`},{label:t}]:[{label:"Surveys Received",to:`./${n.surveys.received.surveys}`},{label:(0,fe.jsx)(de.A,{id:"pages.surveys.subjects.received"})}]:t&&!e.includes(n.surveys.sent.contributors)?e.includes("survey-log")?[{label:"Surveys Sent",to:`./${n.surveys.sent.overview}`},{label:"All Surveys",to:`./${n.surveys.sent.surveys}`},{label:t,to:e.substring(0,e.lastIndexOf("/survey-log"))},{label:"Survey log"}]:[{label:"Surveys Sent",to:`./${n.surveys.sent.overview}`},{label:"All Surveys",to:`./${n.surveys.sent.surveys}`},{label:t}]:i&&e.includes(n.surveys.sent.contributors)&&!e.includes("response-log")?[{to:`./${n.surveys.sent.overview}`,label:"Surveys sent"},{to:`./${n.surveys.sent.contributors}`,label:"Contributors"},{label:s||d||i.name}]:l&&e.includes("submission")?[{to:`./${n.surveys.sent.overview}`,label:"Surveys sent"},{to:`./${n.surveys.sent.contributors}`,label:"Contributors"},{to:`./${n.surveys.sent.contributors}/${p?.id}`,label:p?.name},{label:m?.name}]:e.includes(n.surveys.sent.contributors)&&e.includes("response-log")?[{to:`./${n.surveys.sent.overview}`,label:"Surveys sent"},{to:`./${n.surveys.sent.contributors}`,label:"Contributors"},{to:`./${n.surveys.sent.contributors}/${i?.id}`,label:i?.name},{label:r?.name,to:`./${n.surveys.sent.contributors}/${i?.id}/submission/${r?.submission?.id}`},{label:"Response log"}]:[{label:"Surveys Sent",to:`./${n.surveys.sent.overview}`},{label:u?.item||(0,fe.jsx)(de.A,{id:"pages.surveys.subjects.overview"})}]).filter(e=>!c||c&&(!e.to||!e.to.includes("contributors")||e.to.includes("submission")))},Qqe=(e,n,t,a,i)=>t&&e.includes(n.surveys.received.surveys)&&!e.includes("response-log")?Qi(t):a&&e.includes(n.surveys.sent.contributors)&&!e.includes("response-log")?Qi(a.name):i&&e.includes("submission")?Qi(i.survey?.name):!e.includes(n.surveys.received.surveys)||t||e.includes("response-log")?i||!e.includes(n.surveys.sent.contributors)||e.includes("response-log")?!e.includes(n.surveys.sent.surveys)||t||e.includes("survey-log")?e.includes(n.surveys.sent.surveys)&&t&&!e.includes("survey-log")?Qi(t):e.includes("response-log")?"Response log":e.includes("survey-log")?"Survey log":"Ready made sustainability surveys":"All surveys":"Contributors":"Surveys received",Zqe=e=>{const n=e.split("/"),t=e.includes("contributors"),a=e.includes("response-log")&&t?n[n.length-3]:n[n.length-1],i=e.includes("survey-log")?e.match(/\/surveys\/sent\/surveys\/([a-f0-9-]+)\/survey-log/):e.match(/\/surveys\/received\/([a-f0-9-]+)\/response-log/);return i?i[1]:a},Xqe=e=>/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/.test(e),eJe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
`,nJe=(0,f.styled)("div")`
  padding: 8px 0 16px;
  width: 100%;
`,tJe=(0,f.styled)("div")`
  display: grid;
  grid-template-columns: repeat(4, minmax(10px, 1fr));
  gap: 20px;
  font-family: 'Plus Jakarta Sans';

  @media (min-width: 1367px) and (max-width: 1600px) {
    grid-template-columns: repeat(3, minmax(10px, 1fr));
  }

  @media (max-width: 1366px) {
    grid-template-columns: repeat(2, minmax(10px, 1fr));
  }
`,aJe=(0,f.styled)("div")`
  position: absolute;
  top: 0;
  left: 16px;
  right: 4px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  font-family: ${e=>{let{theme:n}=e;return n.sys.typescale.body.medium.family}};
  font-size: 12px !important;
  line-height: 16px;

  span {
    top: 10px;
  }
`,iJe=(0,f.styled)("div")`
  width: 100%;
`,lJe=(0,f.styled)(TSe.sN)`
  overflow: -moz-scrollbars-none;
  scrollbar-width: none;
  height: 100%;

  & > div:first-child {
    position: static !important;
  }

  &::-webkit-scrollbar {
    display: none;
  },
`,rJe=()=>{const e=(0,m.Zp)(),n=Je(),{contributorId:t}=(0,m.g)(),{showNotification:a}=tn(),[i,l,r]=t.split(":"),{data:o,loading:s}=bbe(n,i,l,r),d=o?.getMySurveyContributorById?.surveys||[],c=(0,g.useCallback)((n,t)=>{if(t&&n.submission)return e(`./submission/${n.submission.id}`);a("This response is not currently in a reviewable state.","warning")},[e,a]),u=s?null:(0,fe.jsx)(wke,{});return(0,fe.jsx)(fe.Fragment,{children:d.length?(0,fe.jsx)(tJe,{children:d?.map(e=>{const n=sm(e.submission?.status);return(0,fe.jsx)(f.Card,{subContent:(0,fe.jsx)(wf,{deadlineDate:e.deadlineDate,fill:!0}),onClick:()=>c(e,n),title:e.name,children:(0,fe.jsxs)(aJe,{children:[rm(e)&&(0,fe.jsx)(pm,{status:e.submission?.status,children:lm(e.submission?.status)}),(0,fe.jsx)(hm,{survey:e})]})},e.id)})}):u})},oJe=(0,f.styled)("div")`
  display: flex;
  height: 100%;
`,sJe=(0,f.styled)("div")`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  padding: 30px 20px;
`,dJe=(0,f.styled)(f.Button)`
  margin-left: 20px;
  width: 200px;
`,cJe=e=>{let{survey:n}=e;const{loading:t,isLocked:a,expanded:i,collapse:l,saveSurvey:r,editingUser:o,surveyModel:s,handleSubmit:d,submitButtonDisabled:c,surveyStatusOverride:u}=WCe(n),[p,m]=(0,g.useState)(1===s?.pageCount||!1),f=(0,g.useMemo)(()=>{return c||(e=n.submission)&&(e.status===gn.ZU.Approved||e.status===gn.ZU.ReadyForReview)||a||t;var e},[a,t,c,n.submission]);return(0,g.useEffect)(()=>{s&&(s.onCurrentPageChanged.add(e=>{m(e.currentPageNo+1>=e.visiblePageCount)}),s.onValueChanged.add(e=>{m(e.currentPageNo+1>=e.visiblePageCount)}))},[s]),(0,fe.jsx)(oJe,{children:(0,fe.jsx)(vCe,{model:s,onDismiss:l,expanded:i,survey:n,isLocked:a,editingUser:o,saveSurvey:r,readonly:t,statusOverride:u,children:p&&(0,fe.jsx)(sJe,{children:(0,fe.jsx)(dJe,{onClick:d,variant:"contained",disabled:f,children:"Submit for review"})})})})},uJe="contributorId",pJe=()=>{const e=(0,m.zy)().pathname,n=Zqe(e),t=Je(),[a]=(0,p.useSearchParams)(),i=a.get(uJe),l=Yo(),r=(0,g.useMemo)(()=>Xqe(e)&&n,[n,e]),{data:o}=dn(vd,{variables:{id:r,accountId:i||t,userId:l?.id||""},fetchPolicy:"no-cache",keepErrorAfterUnmount:!0});return o&&(0,fe.jsx)(cJe,{survey:o.getReceivedSurveyById})},mJe=()=>{const e=(0,m.zy)().pathname,n=Zqe(e),t=Yo(),a=(0,g.useMemo)(()=>Xqe(e)&&n,[n,e]),i=Je(),{data:l}=(0,x.IT)(vd,{variables:{id:a,accountId:i,userId:t?.id||""},fetchPolicy:"no-cache"});return l?(0,fe.jsx)(QCe,{survey:l.getReceivedSurveyById}):null},fJe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
`,yJe=(0,f.styled)("div")`
  position: relative;
  margin-left: auto;
  margin-right: 10px;
  margin-bottom: auto;
  justify-content: flex-end;
  font-size: 1em;
`;function gJe(e){let{survey:n,withContributorTagging:t,withShowAnalysis:a,surveyLoader:i}=e;return(0,fe.jsx)(fJe,{children:(0,fe.jsx)(yJe,{children:(0,fe.jsx)(UCe,{deadlineDate:n.deadlineDate,survey:n,withContributorTagging:t,withShowAnalysis:a,surveyLoader:i})})})}const hJe=(0,f.styled)(f.Text)`
  margin-bottom: 12px;
`.withComponent("h3"),xJe=(0,f.styled)("div")`
  display: flex;
  flex-flow: wrap;
  width: 100%;
`,TJe=((0,f.styled)(xJe)`
  display: flex;
  flex-flow: nowrap;
`,(0,f.styled)("div")`
  padding: 8px 12px;
  flex: 1;
  border: 1px solid ${e=>{let{theme:n}=e;return n.sys.color.secondaryContainer}};
`),bJe=((0,f.styled)(TJe)`
  overflow: hidden;
  flex: 0 1 50%;
`,(0,f.styled)(TJe)`
  display: flex;
  flex-flow: column nowrap;
  flex: 0 1 50%;
  border-left: 0;
`,(0,f.styled)(TJe)`
  display: flex;
  padding: 32px 20px 20px;
  border-top: 0;
`,(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  pointer-events: none;
`),vJe=(0,f.styled)("div")`
  display: flex;
  gap: 8px;
`,CJe=(0,f.styled)("div")`
  width: 100%;
  display: flex;
  justify-content: space-between;
`,kJe=(0,f.styled)(f.Text)`
  text-decoration: underline;
  cursor: pointer;
`,SJe=e=>{let{categoryScore:n,withDetailedBreakdownLink:t}=e;const a=(0,f.useTheme)(),i=n.score/n.maxScore*100,l=(n.maxDataCompleteness-n.missingDataCount)/n.maxDataCompleteness*100,r=e=>e>YSe?{text:a.palette.success.main,progress:"success"}:e>HSe?{text:a.ref.palette.warning[70],progress:"warning"}:{text:a.palette.error.main,progress:"error"};return(0,fe.jsxs)(bJe,{children:[(0,fe.jsxs)(CJe,{children:[(0,fe.jsx)(f.Text,{weight:600,children:n.categoryName}),t&&(0,fe.jsx)(kJe,{onClick:e=>{e.preventDefault(),e.stopPropagation()},children:"Detailed breakdown"})]}),(0,fe.jsxs)(vJe,{children:[(0,fe.jsx)(f.CircularProgress,{color:r(i).progress,textProps:{color:r(i).text,weight:600},mode:"simple-right",value:i,additionalText:"score"}),(0,fe.jsx)(f.CircularProgress,{mode:"simple-right",value:l,additionalText:"data completeness"})]})]})};var NJe=t(48835);const AJe=(0,f.styled)("div")`
  padding: 10px 0px;
  display: flex;
  flex-direction: column;
  gap: 8px;
`,RJe=(0,f.styled)(f.Text)`
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
`,DJe=e=>e.scores.length?(0,fe.jsx)(f.Modal,{open:!0,title:e.contributorName,onClose:e.onClose,children:(0,fe.jsx)(AJe,{children:e.scores.map((n,t)=>(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)("div",{children:[(0,fe.jsx)(SJe,{categoryScore:n}),n.childCategoryScores.length>0&&(0,fe.jsxs)(RJe,{children:["Breakdown ",(0,fe.jsx)(f.Icons.PieChart,{fontSize:"small"})]}),(0,fe.jsx)(AJe,{children:n.childCategoryScores.map(e=>(0,fe.jsx)(SJe,{categoryScore:e},e.categoryName))})]},n.categoryName),t!==e.scores.length-1&&(0,fe.jsx)(NJe.A,{})]}))})}):(0,fe.jsx)(fe.Fragment,{children:"-"}),LJe=(0,f.styled)(f.AgGrid)`
  flex: 1;
  height: 480px;
  padding-bottom: 2px; // border bottom and shadow to show properly

  & .ag-paging-panel {
    justify-content: flex-start;
  }

  && .ag-row:hover {
    cursor: pointer;
  }

  &&& .ag-row .ag-cell:first-child {
    padding-left: 12px;
  }
`,IJe=(0,f.styled)("div")`
  padding: 8px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
`,jJe=(0,f.styled)(f.Text)`
  text-decoration: underline;
  cursor: pointer;
`,wJe=(0,f.styled)("div")`
  padding: 10px 0px;
  display: flex;
  flex-direction: column;
  gap: 8px;
`,OJe={filter:!1,sortable:!1,suppressFiltersToolPanel:!0,suppressHeaderMenuButton:!0},EJe="score",_Je=e=>{let{scores:n}=e;const t=n?.some(e=>e.childCategoryScores.length>0);return n&&n.length?(0,fe.jsx)(wJe,{children:n.map((e,n)=>(0,fe.jsx)(SJe,{categoryScore:e,withDetailedBreakdownLink:0===n&&t},e.categoryName))}):(0,fe.jsx)(fe.Fragment,{children:"-"})},FJe=e=>{let{keyMetrics:n}=e;return n&&n.length?(0,fe.jsx)(wJe,{children:n.map(e=>(0,fe.jsxs)("div",{children:[(0,fe.jsxs)(f.Text,{weight:600,children:[e.label,":"]})," ",(0,fe.jsx)(f.Text,{children:(0,hn.capitalize)(e.value)||"-"})]},e.label))}):(0,fe.jsx)(fe.Fragment,{children:"-"})},PJe=e=>e.data.contributor.account.id,BJe=e=>Boolean(e.event?.target?.closest?.(`div[col-id="${EJe}"]`)),UJe=e=>e.user?`${e.user.first_name} ${e.user.last_name} (${e.user.email})`:e.userGroup?e.userGroup.name:e.account?e.account.name:"-",$Je=e=>{let{submissionDetails:n,survey:t,onResponseDeleted:a,surveyLoader:i}=e;const{showNotification:l}=tn(),r=(0,m.Zp)(),[o,s]=(0,g.useState)(null),d=Je(),c=Yo(),u=c?.role?.permissions?.survey||[],p=u.includes("setSurveySubmissionChild")||u.includes("setSurveySubmissionAll"),y=u.includes("deleteSurveySubmissionChild")||u.includes("deleteSurveySubmissionAll"),h=!t.isIndividualContributor&&!t.isUserGroupContributor,x=t.automatedScoring,T=n.some(e=>e.keyMetrics?.length),[b,v]=(0,g.useState)(null),[C,k]=(0,g.useState)(null),[S,{loading:N}]=function(){const{showNotification:e}=tn();return(0,ln.n)($be,{onCompleted:()=>{e("Survey response has been deleted.","success"),i.load()},onError:n=>{e(`Something went wrong. If the problem persists, contact support. ${n}`,"danger")}})}(t.id),A=(0,g.useCallback)((e,n)=>{k({submissionId:e,contributorName:n})},[k]),R=(0,g.useCallback)(async()=>{C&&(await S({variables:{submissionId:C.submissionId}}),a?.(C.submissionId),k(null))},[C,S,a]),D=(0,g.useCallback)(e=>{const n=BJe(e),a=e.data.contributor?.surveys?.find(e=>e.id===t.id)?.lockedBy,i=!!a&&a.id!==c?.id,o=e.data.scores?.some(e=>e.childCategoryScores.length>0);if(!o||!n)return p?i?s(a):e.data.reviewable&&e.data.submission.id?r(`../sent/contributors/${e.data.contributor.account.id}/submission/${e.data.submission.id}`):r(`../received/${t.id}?${uJe}=${e.data.contributor.account.id}`):void l("You don't have the correct permission to complete this survey.","warning")},[r,t.id,p,l,c]),L=(0,g.useCallback)(e=>{const n=BJe(e),t=e.data.scores?.some(e=>e.childCategoryScores.length>0);t&&n||(e.data.reviewable?r(`../sent/contributors/${e.data.contributor.account.id}/submission/${e.data.submission.id}`):l(`The response of ${UJe(e.data.contributor)} is not currently in a reviewable state.`,"warning"))},[r,l]),I=(0,g.useCallback)(e=>{const n={data:e,event:void 0};return h?D(n):L(n)},[L,D,h]),j=(0,g.useMemo)(()=>({status:e=>{let{data:n}=e;return(0,fe.jsx)(Qve,{typescale:"body",size:"medium",status:n.submission?.status,children:lm(n.submission?.status)})},actions:e=>{let{data:n}=e;const t=UJe(n.contributor),a=n.submission?.id,i=h?n.reviewable?"Review":"Complete":"Open",l=!!h||n.reviewable,r=y&&n.submission?.status;return(0,fe.jsxs)(IJe,{children:[l&&(0,fe.jsx)(jJe,{typescale:"body",size:"medium",onClick:e=>{e.stopPropagation(),I(n)},children:i}),r&&(0,fe.jsx)(jJe,{typescale:"body",size:"medium",onClick:e=>{e.stopPropagation(),A(a,t)},children:"Delete"}),!l&&!r&&(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:"-"})]})}}),[y,A,I,h]),w=(0,g.useMemo)(()=>({defaultColDef:OJe,getRowId:PJe,components:j,rowData:n,pagination:!1,suppressMovableColumns:!0,maintainColumnOrder:!0,getRowHeight:e=>{const n=e.data.keyMetrics?.length||0,t=e.data.scores?.length||0,a=40*t+8*(t-1)+20,i=40*n+8*(n-1)+20;return Math.max(a,i,40)},columnDefs:[{colId:"name",headerName:"Name",valueGetter:e=>{let{data:{contributor:n}}=e;return UJe(n)},sort:"asc",comparator:Hn,minWidth:100},{colId:"status",headerName:"Response status",cellRenderer:"status",maxWidth:160},{colId:"keyMetrics",headerName:"Key metrics",field:"keyMetrics",cellRenderer:e=>(0,fe.jsx)(FJe,{keyMetrics:e.value}),minWidth:250,hide:!T},{colId:EJe,headerName:"Score",field:"scores",cellRenderer:e=>(0,fe.jsx)(_Je,{scores:e.value}),onCellClicked:e=>{const n=e.value?.some(e=>e.childCategoryScores.length>0);n&&v({scores:e.value,contributorName:UJe(e.data.contributor)})},minWidth:300,hide:!x},{colId:"actions",headerName:"Actions",minWidth:200,cellRenderer:"actions"}]}),[n,x,T,j]),O=(0,g.useMemo)(()=>n.reduce((e,n)=>`${e}-${n.contributor.user?n.contributor.user.id:n.contributor.account.id}`,""),[n]);return n?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(LJe,{gridOptions:w,gridKey:"surveyContributorsResponseGridV2"},`${d}-${O}`),b&&(0,fe.jsx)(DJe,{...b,onClose:()=>v(null)}),(0,fe.jsx)(GS,{open:Boolean(C),onClose:()=>k(null),onConfirm:async()=>{await R()},title:"Delete response",body:C?`This will delete the survey response for ${C.contributorName}. Do you want to proceed?`:"",confirmButtonText:"Delete",disabled:N}),(0,fe.jsx)(wSe,{open:Boolean(o),onClose:()=>s(null),lockedBy:o})]}):null},MJe=e=>{let{survey:n,surveyLoader:t}=e;const a=!n.isIndividualContributor&&!n.isUserGroupContributor,i=n.isIndividualContributor&&!n.isUserGroupContributor,l=!n.isIndividualContributor&&n.isUserGroupContributor,r=(0,g.useMemo)(()=>(n.contributors||[]).map(e=>{const t=n.submissions.find(n=>a?n.owner.id===e.account.id:i?n.userId===e.user?.id:!!l&&n.userGroupId===e.userGroup?.id),r=sm(t?.status),o=t&&r&&n.automatedScoring?((e,n)=>{const t={},a={},i={},l={},r=()=>({score:0,maxScore:0,missingDataCount:0,maxDataCompleteness:0,notApplicableCount:0,didAnswerAtLeastOneQuestion:!1,childCategoryScores:{}});for(const n of e?.template?.questions||[]){if(a[n.id]=n,!n)continue;const e=n.category?.parentCategory?.name,o=n.category?.name,s=n.options||[];if(!o||!s.length)continue;e||t[o]||(t[o]=r()),e&&!t[e]&&(t[e]=r()),e&&t[e]&&!t[e].childCategoryScores[o]&&(t[e].childCategoryScores[o]=r());const d=s.reduce((e,t)=>((0,hn.set)(i,[n.id,t.name],t),Math.max(e,t.score||0)),0);l[n.id]=d,e?(t[e].maxScore+=d,t[e].childCategoryScores[o].maxScore+=d):t[o].maxScore+=d}const o=(e,n,t,a)=>{if(e[n].didAnswerAtLeastOneQuestion=!0,e[n].score+=t.score||0,e[n].maxDataCompleteness+=1,t.isDataMissingMarker&&(e[n].missingDataCount+=1),t.isNotApplicableMarker){const t=l[a];e[n].maxScore-=t,e[n].notApplicableCount+=1}};for(const e of n.answers){const n=a[e.questionId];if(!n)continue;const l=n.category?.parentCategory?.name,r=n.category?.name,s=e.answer.replace(/"/g,""),d=n.id,c=i[d]?.[s];r&&c&&(!l&&t[r]&&o(t,r,c,d),l&&t[l]&&(o(t,l,c,d),t[l].childCategoryScores[r]&&o(t[l].childCategoryScores,r,c,d)))}return Object.entries(t).forEach(e=>{let[n,a]=e;0!==a.maxScore&&a.didAnswerAtLeastOneQuestion?Object.entries(a.childCategoryScores).forEach(e=>{let[n,t]=e;0!==t.maxScore&&t.didAnswerAtLeastOneQuestion||delete a.childCategoryScores[n]}):delete t[n]}),Object.entries(t).map(e=>{let[n,t]=e;return{categoryName:n,...t,didAnswerAtLeastOneQuestion:void 0,childCategoryScores:Object.entries(t.childCategoryScores).map(e=>{let[n,t]=e;return{categoryName:n,...(0,hn.omit)(t,"childCategoryScores"),didAnswerAtLeastOneQuestion:void 0}})}})})(n,t):null,s=Pd()(n.template.questions||[],"id"),d=t?.answers?.reduce((e,n)=>{const t=s[n.questionId];if(!t||!t.isKeyMetric)return e;const a=n.answer.replace(/"/g,"");return[...e,{label:s[n.questionId]?.title,value:a}]},[])?.sort((e,n)=>e.label.localeCompare(n.label))||[];return{contributor:e,submission:t,reviewable:r,scores:o,keyMetrics:d}}),[n,a,i,l]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(hJe,{typescale:"title",size:"medium",children:"Response by contributor"}),(0,fe.jsx)($Je,{submissionDetails:r,survey:n,surveyLoader:t})]})},VJe={...{...JSe,legend:{...JSe.legend,labelFormatter:function(){return this.name.replace(/: .+?$/,"")}}},title:{text:""},chart:{height:350,reflow:!0},plotOptions:{pie:{showInLegend:!0,dataLabels:{enabled:!1}}},legend:{align:"center",layout:"horizontal",verticalAlign:"bottom",margin:30,itemStyle:{fontSize:"1.27em",fontWeight:"normal"}},tooltip:{enabled:!1},credits:{enabled:!1}};function GJe(e){let{contributors:n,submissions:t,isIndividualContributor:a,isUserGroupContributor:i}=e;const l=(0,f.useTheme)(),r=(e=>{let{contributors:n,submissions:t,isIndividualContributor:a,isUserGroupContributor:i}=e,l="";l=a?"userId":i?"userGroupId":"owner.id";const r=(0,hn.keyBy)(t,l),o=(n||[]).map(e=>{let{account:n,user:t,userGroup:l}=e,o="";return o=a?t?.id||"":i?l?.id||"":n.id,r[o]?.status});return(0,hn.countBy)(o)})({contributors:n,submissions:t,isIndividualContributor:a,isUserGroupContributor:i}),o=(0,g.useMemo)(()=>Object.entries(r).map(e=>{let[n,t]=e;return{value:t,name:Kve(n),color:Hve(l,n)}}),[r,l]);return(0,fe.jsx)(f.PieChart,{noDataStateSuppressSuggestion:!0,size:f.ChartSize.Fluid,customOptions:VJe,unit:"submission(s)",data:o,border:!1})}const zJe=(e,n)=>e>HSe&&e<YSe?n.customColors.warning.color:e>YSe?n.extendedColors.environmental.color:e<HSe?n.sys.color.error:n.customColors.warning.color,WJe=(0,f.styled)(f.Text)`
  margin-top: 8px;
  flex: 1;
`,qJe=(0,f.styled)(f.Text)`
  margin-top: 8px;
  text-align: right;
`,JJe=(0,f.styled)("div")`
  width: 100%;
  display: flex;
  flex-flow: wrap;
`,YJe=(0,f.styled)("div")``;function HJe(e){let{survey:n}=e;const{contributors:t,submissions:a,isIndividualContributor:i,isUserGroupContributor:l}=n;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(hJe,{typescale:"title",size:"medium",children:"Response status"}),(0,fe.jsx)(GJe,{contributors:t,submissions:a,isIndividualContributor:i,isUserGroupContributor:l})]})}(0,f.styled)(function(e){let{text:n,totals:t}=e;const a=(0,f.useTheme)(),i=(0,g.useRef)(null),l=t[0]>0?t[0]/t[1]*100:0,r=(0,g.useMemo)(()=>((e,n)=>({...JSe,chart:{...JSe.chart,type:"bar",height:14,spacing:[0,0,0,0]},plotOptions:{bar:{showInLegend:!1}},xAxis:{visible:!1},yAxis:{visible:!1,max:100},series:[{data:[100],type:"bar",grouping:!1,color:n.sys.color.primaryContainer,borderRadius:6},{data:[e],color:zJe(e,n),type:"bar",borderRadius:6}]}))(l,a),[a,l]);return(0,fe.jsxs)(YJe,{children:[(0,fe.jsx)(tNe(),{highcharts:eNe(),options:r,ref:i}),(0,fe.jsxs)(JJe,{children:[(0,fe.jsx)(WJe,{typescale:"body",size:"medium",color:"normal",children:n}),(0,fe.jsxs)(qJe,{typescale:"body",size:"medium",color:"normal",children:[t[0]," / ",t[1]]})]})]})})`
  flex: 0 0 50%;
  margin: 10px 0;
  text-transform: capitalize;
`,(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: stretch;
`,(0,f.styled)("div")`
  margin-bottom: 12px;
  padding: 12px;
  background: #00c8b511;
  color: #45b7ad;
  border-radius: 12px;
`,(0,f.styled)(_m)`
  margin-right: 12px;
  vertical-align: middle;
`;const KJe=(0,g.memo)(function(e){let{survey:n}=e;return(0,fe.jsx)(HJe,{survey:n})}),QJe=(0,f.styled)("div")`
  font-family: ${e=>{let{theme:n}=e;return n.sys.typescale.label.small.family}};
  height: 100%;
`,ZJe=(0,f.styled)(f.Text)`
  margin-bottom: 12px;
`;function XJe(e){let{surveyLoader:n,latest:t=!0}=e;const a=Yo(),i=Boolean(n.survey?.dashboardId),l=a?.accessLevel===gn.HG.Tag&&0===n.survey?.contributors.length,r=a?.role.permissions.survey.some(e=>["setSurveyContributorTagAll","setSurveyContributorTagParent","setSurveyContributorTagChild"].includes(e)),o=a?.accessLevel===gn.HG.Account&&r;return(0,g.useEffect)(()=>(n.survey||n.loading||n.load(),()=>{n.reset()}),[]),n.loading?(0,fe.jsx)(f.Loader,{}):n.survey?(0,fe.jsxs)(QJe,{children:[(0,fe.jsx)(ZJe,{typescale:"title",size:"large",children:n.survey?.name}),l?(0,fe.jsx)(f.Text,{typescale:"title",children:"You have no access to this survey"}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(KJe,{survey:n.survey}),(0,fe.jsx)(gJe,{survey:n.survey,latest:t,withContributorTagging:o,withShowAnalysis:i,surveyLoader:n}),(0,fe.jsx)(MJe,{survey:n.survey,surveyLoader:n})]})]}):(0,fe.jsx)(wke,{})}const eYe=g.memo(e=>{let{surveys:n,index:t,handleSurveyClick:a}=e;const i=(0,g.useMemo)(()=>n[t],[n,t]);return i?(0,fe.jsxs)(iJe,{children:[(0,fe.jsx)(f.Card,{subContent:(0,fe.jsx)(wf,{deadlineDate:i.deadlineDate,fill:!0}),onClick:()=>a(i.id),title:i.name,subTitle:rm(i)?`From ${i.owner.name}`:" ",children:(0,fe.jsxs)(aJe,{children:[rm(i)&&(0,fe.jsx)(pm,{status:i.submissions[0].status,children:lm(i.submissions[0].status)}),(0,fe.jsx)(hm,{survey:i})]})}),t===n.length-1&&(0,fe.jsx)("div",{id:"sentinel"})]},i.id):null}),nYe=g.memo(e=>{let{surveys:n,handleSurveyClick:t}=e;const a=(0,g.useMemo)(()=>{const e={List:(0,g.forwardRef)((e,n)=>{let{style:t,children:a,...i}=e;return(0,fe.jsx)(tJe,{ref:n,...i,style:{...t},children:a})})};return e.List.displayName="List",e},[]),i=(0,g.useCallback)(e=>(0,fe.jsx)(eYe,{index:e,surveys:n,handleSurveyClick:t}),[t,n]);return(0,fe.jsx)(lJe,{totalCount:n.length,components:a,itemContent:i})});function tYe(){const e=Je(),[n,t]=(0,g.useState)([]),[a,i]=(0,g.useState)(1),[l,r]=(0,g.useState)(1),[o,s]=(0,g.useState)(""),[d]=(0,XT.useDebounce)(o,600),c=Zbe((0,g.useMemo)(()=>({accountId:e,offset:20*(l-1),limit:20,filters:{search:{field:["name"],value:d}}}),[e,l,d])),u=(0,m.Zp)(),p=(0,g.useCallback)(e=>u(`./${e}`),[u]);(0,g.useEffect)(()=>{c?.data?.getSurveysPage?.totalRows&&!c.loading&&(i(Math.ceil(c.data.getSurveysPage.totalRows/20)),t(e=>[...e,...c?.data?.getSurveysPage?.rows||[]]))},[c.loading]),(0,g.useEffect)(()=>{c?.data?.getSurveysPage&&!c.loading&&d&&(i(Math.ceil(c.data.getSurveysPage.totalRows/20)),t(c?.data?.getSurveysPage?.rows||[]))},[c.loading,d]),(0,g.useEffect)(()=>{t([]),r(1)},[d,e]);const y=(0,g.useMemo)(()=>(0,hn.throttle)(()=>{c.loading||r(e=>e+1)},400,{trailing:!1}),[c.loading]),h=(0,g.useMemo)(()=>(0,hn.throttle)(()=>{const e=window.innerHeight+window.scrollY>=document.body.offsetHeight;!c.loading&&a>l&&e&&y()},400,{leading:!1}),[a,l,c.loading,y]);(0,g.useEffect)(()=>(window.addEventListener("scroll",h),()=>{h.cancel(),window.removeEventListener("scroll",h)}),[h]);const x=(0,g.useCallback)(e=>{s(e.target.value)},[s]),T=c.loading?null:(0,fe.jsx)(wke,{});return(0,fe.jsxs)(eJe,{children:[(0,fe.jsx)(nJe,{children:(0,fe.jsx)(f.TextField,{name:"ConfigurationAccountsContainer__Controls__Search",type:"search",value:o,onChange:x,error:!1,placeholder:"Search"})}),n.length?(0,fe.jsx)(nYe,{surveys:n,handleSurveyClick:p}):T]})}const aYe=(0,le.default)("div")`
  position: relative;
  height: 100%;
  overflow: hidden;
`,iYe=(0,f.styled)("div")`
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: ${e=>e.theme.sys.color.onSecondary};
  opacity: 0.5;
  width: 100%;
  height: 100%;
`,lYe=(0,le.default)("div")`
  height: 100%;
  display: flex;
  gap: 40px;
`,rYe=(0,f.styled)("div")`
  flex: 1 1 auto;
  background-color: ${e=>e.theme.sys.color.onSecondary};
  height: 100%;
`,oYe=(0,le.default)(f.Grid)`
  display: flex;
  flex: 1;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
`,sYe=(0,le.default)(f.Grid)`
  & > button,
  & > a {
    width: 100%;
    min-width: 190px;
    max-height: 44px;
  }
`,dYe=(0,le.default)(Ae)`
  margin-bottom: ${e=>e.theme.geometry.md.spacing};
  z-index: 3;
  position: relative;
`,cYe=["template","submissions","owner","contributors"],uYe=e=>{let{applicationData:{getAccountInfo:n,getUserInfoById:t,getReceivedSurveysPage:a}}=e;const i=or(),l=(0,m.zy)().pathname,r=Zqe(l),o=Je(),s=Yo(),[d,c]=(0,g.useState)(!1),[u,p]=(0,g.useState)(!1),y=l.includes(i.surveys.sent.overview),h=(0,g.useMemo)(()=>Xqe(l)&&r,[r,l]),x=y||h,T=s?.role.permissions.survey.some(e=>["createSurveyAll","createSurveyParent","createSurveyChild"].includes(e)),b=s?.accessLevel===gn.HG.Tag,v=l.includes("submission"),C=l.includes(i.surveys.sent.contributors),[k,S,N]=C&&!v&&h?h.split(":"):"",{data:A}=Tbe(o,k,S,N),R=A?.getMySurveyContributorById?.account,D=A?.getMySurveyContributorById?.user&&Boolean(S)?`${A?.getMySurveyContributorById.user.first_name} ${A.getMySurveyContributorById.user.last_name}`:"",L=A?.getMySurveyContributorById?.userGroup&&Boolean(N)?A?.getMySurveyContributorById.userGroup.name:"",I=A?.getMySurveyContributorById?.surveys?.find(e=>e.id===(e=>{const n=e.split("/");return e.includes("contributors")?n[n.length-1]:""})(l)),j=Hbe({id:h,fields:cYe}),w=h||y,O=v?h:"",{submission:E,expand:_,survey:F}=ZCe(O||""),P=(0,g.useMemo)(()=>l_e(a.rows),[a]),B=w?j.survey?.name:null,U=n.accessControls.surveys,$=t.role.permissions.survey.some(e=>e.startsWith("getSurveys")),M=t.role.permissions.survey.some(e=>e.startsWith("getReceivedSurveys")),V=(0,g.useCallback)(()=>c(e=>!e),[]),G=(0,g.useCallback)(()=>p(e=>!e),[]),z=l.includes("log"),W=(0,g.useMemo)(()=>C&&!v||z?"":v?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Xve,{expand:_}),(0,fe.jsx)(KCe,{children:(0,fe.jsx)(UCe,{survey:{...F,submission:E}})})]}):l.includes("received")?(0,fe.jsx)(mJe,{}):b||!T?null:(0,fe.jsxs)(oYe,{wrap:"wrap",container:!0,spacing:2,children:[x&&(0,fe.jsx)(sYe,{size:{xs:12,lg:5.5},children:(0,fe.jsx)(f.Button,{variant:"outlined",onClick:V,children:"Edit survey"})}),(0,fe.jsx)(sYe,{size:{xs:12,lg:5.5},children:(0,fe.jsx)(f.Button,{variant:"contained",onClick:G,startIcon:(0,fe.jsx)(f.Icons.Add,{}),children:"Create a survey"})})]}),[z,_,x,F,l,E,v,C,V,G,b,T]),q=(0,g.useMemo)(()=>({content:Qqe(l,i,B,R,E),crumbs:Kqe(l,i,B,P,R,E,I,$,D,L,b),actionButton:W}),[l,i,B,R,E,I,P,W,$,D,L,b]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(aYe,{children:[!U&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(iYe,{}),(0,fe.jsx)(dYe,{name:"FormsContainer_Access_NotificationBanner",icon:"exclamation-triangle",color:"danger",title:"Surveys",body:"Currently Surveys are not included in your subscription, if you’d like access to Surveys please contact Rio AI Ltd or get in touch with your Business Admin."})]}),(0,fe.jsx)(f.Page,{title:q,children:(0,fe.jsxs)(lYe,{children:[(0,fe.jsx)(f.NavigationDrawer,{items:Hqe(l,i,P,$,b)}),(0,fe.jsx)(rYe,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:i.surveys.sent.overview,element:$?(0,fe.jsx)(XJe,{surveyLoader:j,latest:!0}):null}),(0,fe.jsx)(m.qh,{path:i.surveys.sent.contributors,element:xbe(Vve,$)}),(0,fe.jsx)(m.qh,{path:i.surveys.sent.contributor,element:xbe(rJe,$)}),(0,fe.jsx)(m.qh,{path:i.surveys.sent.contributorAuditLog,element:xbe(Dve,$)}),(0,fe.jsx)(m.qh,{path:i.surveys.sent.submission,element:xbe(XCe,$)}),(0,fe.jsx)(m.qh,{path:i.surveys.sent.surveys,element:xbe(tYe,$)}),(0,fe.jsx)(m.qh,{path:i.surveys.sent.survey,element:$?(0,fe.jsx)(XJe,{surveyLoader:j,latest:!1}):null}),(0,fe.jsx)(m.qh,{path:i.surveys.received.surveys,element:xbe(PSe,M)}),(0,fe.jsx)(m.qh,{path:i.surveys.received.survey,element:xbe(pJe,M)}),(0,fe.jsx)(m.qh,{path:i.surveys.sent.auditLog,element:xbe(ave,$)}),(0,fe.jsx)(m.qh,{path:i.surveys.received.auditLog,element:xbe(Sve,M)}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(Oc,{})})]})})]})})]}),(0,fe.jsx)(gSe,{survey:j.survey,refetch:j.load,action:{editModalShown:d,createModalShown:u,toggleEditModal:V,toggleCreateModal:G}})]})},pYe=(0,f.styled)("div")`
  margin-top: 32px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
`,mYe=e=>{let{onDismissClick:n,onConfirmClick:t,deleteObjectName:a,open:i}=e;return(0,fe.jsxs)(f.Modal,{open:i,onClose:n,title:`Delete ${(0,hn.capitalize)(a)}`,children:[(0,fe.jsxs)(f.Text,{typescale:"body",size:"medium",children:["This action will permanently delete this ",a,". Do you want to proceed?"]}),(0,fe.jsxs)(pYe,{children:[(0,fe.jsx)(f.Button,{onClick:n,variant:"outlined","data-testid":"Abort_Deletion_Button",children:"Cancel"}),(0,fe.jsx)(f.Button,{onClick:t,variant:"contained",color:"primary","data-testid":"Confirm_Deletion_Button",children:"Delete"})]})]})},fYe={label:"Loading...",value:"",disabled:!0},yYe={label:"No targets found",value:"",disabled:!0};function gYe(e){let{value:n,name:t,onChange:a,disabled:i}=e;const l=Je(),{data:r,error:o,loading:s}=(0,x.IT)(ql,{variables:{accountId:l,sort:{order:"asc",field:"activity.name"}}}),d=(r?.getAspectsByAccountId?.rows||[]).map(e=>({value:e.id,label:e.activity?.name})).sort((e,n)=>e.label?.localeCompare(n.label||"")||1);return s||o||0!==d.length||d.unshift(yYe),(0,fe.jsx)(f.Select,{name:t,label:"Aspects",placeholder:"Please select the Activity/Process",value:n,error:Boolean(o),helperText:o?.message,onChange:a,disabled:i,options:s?[fYe]:d})}const hYe=(0,f.styled)("div")`
  display: flex;
  gap: 16px;
  align-items: center;
`,xYe=(0,f.styled)(f.Button)`
  width: 160px;
`,TYe=window.history.state&&window.history.state.idx>0,bYe=e=>{let{hasProjectsAccess:n=!1}=e;const t=Je(),a=lr(),i=ud(),l=a.task.some(e=>e.startsWith("edit")),r=a.task.some(e=>e.startsWith("delete")),{token:o}=qe(),{showNotification:s}=tn(),[d,c]=(0,g.useState)({}),{id:u}=(0,m.g)(),p=(0,m.Zp)(),[y,h]=(0,g.useState)({}),[x,T]=(0,g.useState)(!1),b=or(),{data:v,error:C,loading:k}=dn(Cje(),{variables:{id:u},onCompleted:e=>{const n=e?.getTaskById;c(Nje(n))}}),S=e=>p(e?-1:b.tasks.root),[N,{loading:A}]=(0,ln.n)(gce(),{onCompleted:()=>{s("Task has been successfully updated")},onError:()=>{s("Something went wrong! Please try again later.","danger")}}),[R,{loading:D}]=(0,ln.n)(xce(),{onCompleted:()=>{S(TYe),s("Task has been successfully deleted")},onError:()=>{s("Something went wrong! Please try again later.","danger")},refetchQueries:[{query:uTe(),variables:{accountId:t,userId:o.sub}}]}),L=e=>{Object.keys(y).find(n=>n===e.target.name)&&h({...y,[e.target.name]:null}),c({...d,[e.target.name]:e.target.value})},I=(e,n,t)=>{Object.keys(y).find(n=>n===e)&&h({...y,[e]:null}),c({...d,[e]:n||null}),t?.()},j=(0,g.useCallback)(()=>{const e=Aje(d),n=q0(e);(0,hn.isEmpty)(n)&&(h({}),N({variables:e,refetchQueries:["GetTaskById"]})),(0,hn.isEmpty)(n)||h(n)},[d,N]),w=v?.getTaskById?.name,O=(0,g.useMemo)(()=>{const e=[{label:"Tasks",to:b.tasks.root}];return w&&e.push({label:w}),e},[w,b.tasks.root]),E=k||A||D;return 0===Object.keys(d).length?null:(0,fe.jsxs)(f.Page,{title:{content:v?.getTaskById?.name||"Task Details",crumbs:O,actionButton:(0,fe.jsxs)(hYe,{children:[r&&(0,fe.jsx)(xYe,{onClick:()=>T(!0),disabled:E,"data-testid":"Delete_Button",variant:"outlined",color:"primary",children:"Delete"}),(0,fe.jsx)(xYe,{onClick:()=>S(TYe),disabled:E,"data-testid":"Cancel_Button",variant:"outlined",color:"primary",children:"Cancel"}),l&&(0,fe.jsx)(xYe,{onClick:j,disabled:E,"data-testid":"Save_Button",variant:"contained",color:"primary",children:"Save"})]})},loading:k,error:C,children:[(0,fe.jsx)(mYe,{open:x,deleteObjectName:"task",onConfirmClick:()=>{var e;void 0!==(e=u)&&R({variables:{id:e}})},onDismissClick:()=>T(!1)}),(0,fe.jsxs)(f.Grid,{container:!0,columns:12,rowSpacing:6,columnSpacing:4,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{"data-testid":"Task_Name",name:"name",label:"Name",value:d.name,onChange:L,error:Boolean(y.name),helperText:y.name})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextArea,{"data-testid":"Task_Description",name:"description",label:"Description",value:d.description,onChange:L,error:Boolean(y.description),helperText:y.description,disabled:!l,rows:5})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{"data-testid":"Task_Creator",name:"author",label:"Creator",value:d.author,onChange:L,disabled:!0})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{"data-testid":"Task_CreatedAt",name:"createdAt",label:"Created at",value:kn(d.createdAt),onChange:L,disabled:!0})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.Checkbox,{label:"Completed",checked:d.isCompleted,onChange:()=>{c({...d,isCompleted:!d.isCompleted})}})}),(0,fe.jsx)(f.Grid,{size:6,children:d.isCompleted&&(0,fe.jsx)(f.DatePicker,{"data-testid":"Completed_Date",name:"completedAt",label:"Completion Date",value:d.isCompleted&&d.completedAt?new Date(d.completedAt):d.isCompleted?new Date:void 0,onChange:e=>{c({...d,completedAt:e?new Date(e).toISOString():null})},disabled:!l})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{"data-testid":"Task_Status",name:"status",label:"Status",onChange:L,value:d.isCompleted?"Completed":new Date(d.dueDate)>new Date?"Incompleted":"Overdue",disabled:!0})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.DatePicker,{"data-testid":"Due_Date",name:"dueDate",label:"Due date",value:d.dueDate?new Date(d.dueDate):void 0,onChange:e=>{c({...d,dueDate:e?new Date(e).toISOString():null})},error:y.dueDate,disabled:!l})}),(0,fe.jsx)(f.Grid,{size:4,children:(0,fe.jsx)(f.Select,{"data-testid":"Task_scope",name:"scope",label:"Scope",options:i,value:d.scope,onChange:e=>{let{value:n}=e;return I("scope",n)},disabled:!l})}),(0,fe.jsx)(f.Grid,{size:4,children:(0,fe.jsx)(f.Select,{"data-testid":"Task_priority",name:"priority",label:"Priority",value:d.priority,options:$0.map(e=>({...e,label:e.label,value:e.value})),onChange:e=>{let{value:n}=e;return I("priority",n)},disabled:!l,error:Boolean(y.priority),helperText:y.priority})}),(0,fe.jsx)(f.Grid,{size:4,children:(0,fe.jsx)(f.Select,{"data-testid":"Task_category",name:"category",label:"Category",onChange:e=>{let{value:n}=e;return I("category",n,()=>c(e=>({...e,subject:null,item:null})))},value:d.category,options:U0.map(e=>({...e,label:e.label,value:e.value})),disabled:!l,error:Boolean(y.category),helperText:y.category})}),d.scope===gn.HG.Location&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Uj,{name:"locations",value:d.locations,onChange:e=>I("locations",e),disabled:!l})}),d.scope===gn.HG.Tag&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(zj,{label:"Tags",name:"tags",accountId:t,value:d.tags||[],onChange:e=>I("tags",e),disabled:!l})}),`${d.category}`in bje?(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Select,{name:"subject",label:"Subject",onChange:e=>{let{value:n}=e;return I("subject",n)},value:d.subject?.toUpperCase()||null,options:bje[d.category],error:Boolean(y.subject),helperText:y.subject,disabled:!l})}):null,d.subject&&[gn.AR.Legislation,gn.AR.Aspects,gn.AR.Targets].includes(d.subject)&&(0,fe.jsxs)(fe.Fragment,{children:[d.subject===gn.AR.Legislation&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(D0,{name:"itemId",onChange:e=>{let{value:n}=e;return I("itemId",n)},value:d.itemId||d.item?.id||"",disabled:!l})}),d.subject===gn.AR.Aspects&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(gYe,{name:"itemId",onChange:e=>{let{value:n}=e;return I("itemId",n)},value:d.itemId||d.item?.id||"",disabled:!l})}),d.subject===gn.AR.Targets&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(_0,{name:"itemId",onChange:e=>{let{value:n}=e;return I("itemId",n)},value:d.itemId||d.item?.id||"",disabled:!l})})]}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(B0,{label:"Owners",onChange:e=>I("owners",e),value:d.owners,accountId:t,disabled:!l,error:y.owner})}),n&&(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(w0,{name:"projectId",accountId:t,onChange:e=>{let{value:n}=e;return I("projectId",n)},value:d.projectId||d?.project?.id||""})})]})]})},vYe=(0,f.styled)(f.Grid)`
  display: flex;
  width: 100%;
  align-items: flex-end;
  gap: 24px;
  justify-content: flex-end;
`,CYe=(0,f.styled)(f.Grid)`
  flex: 1;
  display: flex;
  align-items: flex-start;
`,kYe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
`,SYe=(0,f.styled)(f.Grid)`
  min-width: 165px;
`,NYe=(0,f.styled)("span")`
  height: fit-content;
`,AYe=e=>{let{hasProjectsAccess:n=!1}=e;const[t,a]=(0,g.useState)(null),i=t?.gridApi,{token:l}=qe(),r=Je(),o=lr(),{showNotification:s}=tn(),[d,c]=(0,g.useState)(!1),{showMine:u,setShowMine:p}=cje(),[m,y]=(0,g.useState)(!1),h=o.task.find(e=>"getAll"===e||"getParent"===e),{data:x,loading:T,error:b}=dn(uTe(),{variables:{accountId:r,userId:l.sub}}),v=x?sce(x?.getTasksByAccountId||[]):[],C=(0,g.useCallback)(e=>{a(e)},[]),k=(0,g.useCallback)(()=>{if(!i)return!1;const e=i?.getFilterModel()||{};u?delete e.owners:e.owners={type:"set",values:[`${l.given_name} ${l.family_name}`]},i?.setFilterModel(e),p(e=>!e),d&&c(e=>!e)},[i,u,p,d,l.given_name,l.family_name]),S=(0,g.useCallback)(()=>y(!0),[]),N=(0,g.useCallback)(e=>{e.api.applyColumnState({state:gGe})},[]),A={content:"",actionButton:(0,fe.jsxs)(vYe,{container:!0,children:[h&&(0,fe.jsx)(CYe,{container:!0,children:(0,fe.jsx)(SYe,{size:{md:6,lg:3.5},children:(0,fe.jsx)(f.SegmentedButton,{toggleOff:d,values:hGe,onClick:k})})}),(0,fe.jsxs)(kYe,{children:[(0,fe.jsx)(jS,{filtersApplied:t?.filtersApplied,resetGridState:()=>{t?.resetGridState(),p(!1),c(!0)}}),!!o.task.find(e=>e.startsWith("create"))&&(0,fe.jsx)(Vx.A,{title:"Create Task",children:(0,fe.jsx)(NYe,{children:(0,fe.jsx)(f.IconButton,{variant:"contained",onClick:S,children:(0,fe.jsx)(f.Icons.Add,{})})})})]})]})};return(0,fe.jsxs)(f.Page,{loading:T,error:b,title:A,children:[(0,fe.jsx)(bGe,{agGridRef:C,accountId:r,tasks:v,onGridReady:N}),(0,fe.jsx)(Y0,{onComplete:e=>{s(e.message,e.colour)},open:m,accountId:r,onDismiss:()=>y(!1),sourcePage:"TASKS",disabled:{[gn.AR.Aspects]:!0},hasProjectsAccess:n})]})},RYe=(0,f.styled)("div")`
  width: 100%;
  height: 100%;
`,DYe=e=>{let{hasProjectsAccess:n}=e;return(0,fe.jsx)(RYe,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(AYe,{hasProjectsAccess:n})}),(0,fe.jsx)(m.qh,{path:"/:id",element:(0,fe.jsx)(bYe,{})})]})})};var LYe=t(86481);const IYe=(0,le.default)(f.Text)`
  text-align: left;
  align-items: center;
  flex-flow: row nowrap;
  padding: ${e=>e.theme.geometry.xs.spacing};
`,jYe=(0,le.default)(ie.fv)`
  display: flex;
  align-items: center;
  justify-content: center;
  padding: ${e=>e.theme.geometry.xs.spacing};
`,wYe=(0,le.default)(jYe)`
  flex-basis: 120px;
  max-width: 120px;
`,OYe=(0,le.default)(ie.fI)`
  width: fit-content;
  max-width: 100vw;
`,EYe=e=>{let{file:n,onDelete:t,readOnly:a}=e;const i=n instanceof window.File;return(0,fe.jsxs)(OYe,{container:!0,children:[(0,fe.jsx)(jYe,{grow:"0",children:(0,fe.jsx)(Spe,{size:"xxs",icon:"file",color:"tretiary"})}),(0,fe.jsx)(IYe,{children:i&&n.name}),!a&&(0,fe.jsx)(wYe,{item:!0,grow:"0",children:(0,fe.jsx)(f.Button,{type:"button",variant:"outlined",color:"primary",onClick:t,children:"Remove"})})]})},_Ye=[{value:"1",label:"No options",disabled:!0}];function FYe(e){let{accountId:n,name:t,value:a,error:i,projectCategory:l,readOnly:r,isDisabled:o,onChange:s,className:d}=e;const{data:c,loading:u,error:p}=(0,x.IT)(iS,{variables:{accountId:n}}),m=(0,g.useMemo)(()=>((l?c?.getProjectSchemes?.filter(e=>e.category.id===l.id):c?.getProjectSchemes)||[]).map(Ua),[l,u]);return(0,fe.jsx)(f.Select,{label:"Please select scheme",name:t||"scheme",value:a,prefix:"scheme-select",error:!!i||!!p,isLoading:u,onChange:s,readOnly:r||!1,options:m.length>0?m:_Ye,disabled:o||u,className:d,helperText:i})}const PYe="Create new meter...",BYe=[{field:"name",order:"asc"}],UYe=e=>{let{value:n,setShowCreateLocation:t,onChange:a,error:i,dataSection:l,label:r,fullWidth:o=!0,createNew:s=!0,isMulti:d=!1}=e;const c=lr(),u=(0,g.useMemo)(()=>c.data.find(e=>e.startsWith("createEnergySource")),[c.data]),{data:p,loading:m,fetchMore:y}=Ir(l,{withLocationData:!0,fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0,variablesProps:{sort:BYe,limit:St}}),h=(0,g.useCallback)(async(e,n,t)=>{let a={};t&&(a={text:[{filterType:gn.pe.Text,type:gn.II.Contains,filter:t,field:"name"}]});const i=await y({variables:{offset:n,limit:e,filters:a,sort:BYe}});return{total:i.data.getEnergySourceByAccountIdAndType.totalRows,options:$a(i.data.getEnergySourceByAccountIdAndType.rows)}},[y]),x=(0,g.useCallback)(e=>{e.value===PYe?t(!0):a(e)},[a,t]),T=(0,g.useMemo)(()=>$a(p),[p]);return(0,fe.jsx)(f.AutoComplete,{value:n,label:r,isMulti:d,fullWidth:o,loadMore:h,createOption:u&&s?PYe:void 0,onChange:x,options:T,isLoading:m,error:i?.toString()||void 0})},$Ye=(0,le.default)(f.Button)`
  width: 100%;
`,MYe=(0,le.default)(f.Text)``,VYe=(0,le.default)(f.Icons.InfoOutlined)`
  margin-left: ${e=>e.theme.geometry.xs.spacing};
`,GYe=le.default.div`
  svg {
    cursor: pointer;
  }
  display: flex;
  align-items: center;
`,zYe=(0,le.default)("div")`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,WYe=(0,le.default)(f.FileUploadButton)`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing} !important;
  width: 100%;
`,qYe=e=>{let{accountId:n,defaultValues:t,onDismiss:a,onComplete:i}=e;const{formatMessage:l}=(0,dc.A)(),r=(0,LYe.t)(gwe),{register:o,setValue:s,control:d,resetField:c,watch:u,trigger:p,handleSubmit:m,formState:{isValid:y}}=(0,Ng.mN)({resolver:r,defaultValues:{baselineStartDate:void 0,startDate:void 0,endDate:void 0,locations:[],owners:[],meters:[]},mode:"onChange"}),h=u("locations"),T=hwe(),b=(0,f.useTheme)(),[v,C]=(0,g.useState)(null),[k,S]=(0,g.useState)([]),[N,A]=(0,g.useState)(null),[R,{loading:D}]=(0,ln.n)(cwe(),{onCompleted:()=>{i({message:l({id:"pages.project.messages.created"}),color:"success"}),a()},onError:()=>{i({message:l({id:"pages.project.messages.error"}),color:"danger"})}});(0,x.IT)(sS,{onCompleted:e=>{A(e?.getProjectCategories||[])},onError:()=>{A([])}});const L=N?.find(e=>e.name===Wr)?.id,{data:I,loading:j}=(0,x.IT)(sS),w=(0,g.useMemo)(()=>I?.getProjectCategories?.map(Ua)||[],[j]),O=(0,g.useCallback)(async e=>{const n=[...k,...e];S(n)},[k,S]),E={color:b.palette.grey[600]};return(0,g.useEffect)(()=>{const e=u((e,n)=>{let{name:t}=n;"baselineStartDate"!==t&&"startDate"!==t||p(["startDate","baselineStartDate","endDate"])});return()=>e?.unsubscribe()},[u,p]),(0,g.useEffect)(()=>{o("accountId",{value:n}),s("meters",[])},[n]),(0,fe.jsx)(f.Modal,{open:!0,onClose:()=>a(),title:"Create New Project",children:(0,fe.jsxs)("form",{onSubmit:m(async e=>{const n=e.evidenceNotes,a=await T(k,n),i={...e,currencyId:null,id:t?.id||(0,Wa.A)(),cost:e.cost?.toString(),startDate:bn()(e.startDate,"MM/DD/YYYY").toISOString(!0),endDate:bn()(e.endDate,"MM/DD/YYYY").toISOString(!0),baselineStartDate:bn()(e.baselineStartDate,"MM/DD/YYYY").toISOString(!0),plannedBenefit:Number(e.plannedBenefit)||e.plannedBenefit,owners:e.owners?.map(e=>e?.value)||[],locations:Array.isArray(e.locations)?e.locations?.map(e=>e?.value):[],meters:e.meters?.map(e=>e?.value)||[],plannedCO2eChange:e.plannedCO2eChange&&Number(e.plannedCO2eChange)?Math.abs(Number(e.plannedCO2eChange)):e.plannedCO2eChange||null,plannedCostChange:e.plannedCostChange&&Number(e.plannedCostChange)?Math.abs(Number(e.plannedCostChange)):e.plannedCostChange||null,createdAt:(new Date).toISOString(),evidenceNotes:a};R({variables:i,refetchQueries:["GetProjects"]})}),children:[(0,fe.jsxs)(f.Grid,{container:!0,columns:12,rowSpacing:3,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"name",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,value:n?.value,disabled:j,label:(0,fe.jsx)(de.A,{id:"pages.project.details.name"}),"data-cy":"ProjectDetails__Input-name",error:!!t.error?.message,helperText:t.error?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"description",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextArea,{...n,"data-cy":"ProjectDetails__Input-description",size:"medium",label:(0,fe.jsx)(de.A,{id:"pages.project.details.description"}),name:"description",disabled:j,value:n?.value,error:!!t.error?.message,helperText:t.error?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"impact",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,label:(0,fe.jsx)(de.A,{id:"pages.project.details.impact"}),"data-cy":"ProjectDetails__Input-impact",disabled:j,value:n?.value,error:!!t.error?.message,helperText:t.error?.message})},control:d})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"priority",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.Select,{...n,fullWidth:!0,label:(0,fe.jsx)(de.A,{id:"pages.project.details.priority"}),name:"priority",className:"priority-select",disabled:j,onChange:e=>n.onChange(e.value),options:Fje,value:n?.value,error:!!t.error?.message,helperText:t.error?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.Select,{fullWidth:!0,options:w,label:(0,fe.jsx)(de.A,{id:"pages.project.details.category"}),value:v?.id,onChange:e=>{C(e.value?{id:e.value,name:e.label}:null),c("meters"),c("schemeId")}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"locations",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Uj,{...n,name:"locations",value:n.value,onChange:e=>n.onChange(e),isSubmitting:j,disabled:j,defaultOptions:!1,error:t.error?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"schemeId",control:d,render:e=>{let{field:t,fieldState:a}=e;return(0,fe.jsx)(FYe,{...t,name:"schemeId",accountId:n,onChange:e=>{let{value:n}=e;t.onChange(n)},value:t.value,isDisabled:j,projectCategory:v,error:a.error?.message,isClearable:!0})}})}),v?.id===L&&Array.isArray(h)&&h?.length?(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"meters",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(UYe,{...n,label:(0,fe.jsx)(de.A,{id:"pages.project.details.meters"}),name:"meters",fullWidth:!0,isMulti:!0,dataSection:gn.D_.Electricity,value:n.value,setShowCreateLocation:()=>{},createNew:!1,onChange:e=>n.onChange(e),error:t.error?.message})}})}):null,(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"owners",control:d,render:e=>{let{field:t,fieldState:a}=e;return(0,g.createElement)(B0,{...t,key:t.name,onChange:e=>t.onChange(e),value:t.value||[],accountId:n,error:a.error?.message,label:(0,fe.jsx)(de.A,{id:"pages.project.details.owner"})})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"cost",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,value:n.value,onChange:e=>n.onChange(e.target.value),label:(0,fe.jsx)(de.A,{id:"pages.project.details.cost"}),"data-cy":"ProjectDetails__Input-cost",disabled:j,name:"cost",error:!!t.error?.message,helperText:t.error?.message})}})}),(0,fe.jsxs)(f.Grid,{size:12,children:[(0,fe.jsxs)(GYe,{children:[(0,fe.jsx)(MYe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.startDate"})}),(0,fe.jsx)(Vx.A,{title:"The date you would expect to start making savings from your project.",children:(0,fe.jsx)(f.Text,{children:(0,fe.jsx)(VYe,{sx:E})})})]}),(0,fe.jsx)(Ng.xI,{name:"startDate",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.DatePicker,{...n,value:n.value,disabled:j,onChange:e=>{n.onChange(bn().utc(e).format())},error:t.error?.message})}})]}),(0,fe.jsxs)(f.Grid,{size:12,children:[(0,fe.jsxs)(GYe,{children:[(0,fe.jsx)(MYe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.endDate"})}),(0,fe.jsx)(Vx.A,{title:"The date which you anticipate your planned savings to be realised.",children:(0,fe.jsx)(f.Text,{children:(0,fe.jsx)(VYe,{sx:E})})})]}),(0,fe.jsx)(Ng.xI,{name:"endDate",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.DatePicker,{...n,value:n.value,disabled:j,onChange:e=>{n.onChange(bn().utc(e).format())},name:"endDate",error:t.error?.message})}})]}),(0,fe.jsxs)(f.Grid,{size:12,children:[(0,fe.jsxs)(GYe,{children:[(0,fe.jsx)(MYe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.baselineStartDate"})}),(0,fe.jsx)(Vx.A,{title:"The annual period to compare project performance against.",children:(0,fe.jsx)(f.Text,{children:(0,fe.jsx)(VYe,{sx:E})})})]}),(0,fe.jsx)(Ng.xI,{name:"baselineStartDate",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.DatePicker,{...n,value:n.value,disabled:j,onChange:e=>{n.onChange(bn().utc(e).format())},name:"baselineStartDate",error:t.error?.message})}})]}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"plannedBenefit",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,value:n?.value,"data-cy":"ProjectDetails__Input-plannedBenefit",disabled:j,name:"plannedBenefit",InputLabelProps:{style:{pointerEvents:"auto"}},label:(0,fe.jsx)(fe.Fragment,{children:v?.id===L?(0,fe.jsx)(de.A,{id:"pages.project.details.plannedBenefitGeneration"}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(de.A,{id:"pages.project.details.plannedBenefit"}),Eje[v?.name||"default"]]})}),helperText:t.error?.message,error:t.invalid})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"plannedCO2eChange",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,value:n?.value,label:(0,fe.jsxs)(GYe,{children:[(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.plannedCarbonChange"})}),(0,fe.jsx)(Vx.A,{title:"This figure should be positive. Negative values will be automatically converted to a positive value in the Project Dashboard.",children:(0,fe.jsx)(f.Text,{children:(0,fe.jsx)(VYe,{sx:E})})})]}),InputLabelProps:{style:{pointerEvents:"auto"}},"data-cy":"ProjectDetails__Input-plannedCO2eChange",disabled:j,name:"plannedCO2eChange",helperText:t.error?.message,error:t.invalid})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"plannedCostChange",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,value:n?.value,label:(0,fe.jsxs)(GYe,{children:[(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.plannedCostChange"})}),(0,fe.jsx)(Vx.A,{title:"This figure should be positive. Negative values will be automatically converted to a positive value in the Project Dashboard.",children:(0,fe.jsx)(f.Text,{children:(0,fe.jsx)(VYe,{sx:E})})})]}),"data-cy":"ProjectDetails__Input-plannedCostChange",disabled:j,helperText:t.error?.message,error:t.invalid})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"frequency",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.Select,{...n,name:"frequency",label:(0,fe.jsx)(de.A,{id:"pages.project.details.frequency"}),"data-cy":"frequency-select",disabled:j,onChange:e=>{let{value:t}=e;n.onChange(t)},value:n.value,options:_je,helperText:t.error?.message,error:t.invalid})}})}),(0,fe.jsxs)(f.Grid,{size:12,children:[(0,fe.jsx)(GYe,{children:(0,fe.jsx)(MYe,{children:"Evidence Name"})}),(0,fe.jsx)(Ng.xI,{name:"evidenceNotes",control:d,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextArea,{...n,size:"medium",name:"notes",onChange:e=>n.onChange(e.target.value),value:n?.value,helperText:t.error?.message,error:t.invalid})}}),(0,fe.jsx)(GYe,{children:(0,fe.jsx)(MYe,{children:"Evidence"})}),(0,fe.jsx)(zYe,{children:!!k?.length&&k.map(e=>(0,fe.jsx)(EYe,{file:e,readOnly:void 0,onDelete:()=>{S(k.filter(n=>n!==e))}},e instanceof window.File?e?.name:e))}),(0,fe.jsx)(WYe,{multiple:!0,fullWidth:!0,accept:qt.allowedDocument.mimeType,onFileUpload:O,children:"Attach Evidence"})]})]}),(0,fe.jsx)($Ye,{fullWidth:!0,disabled:!y,loading:D,variant:"contained",type:"submit","data-cy":"CreateProjectModal__submit",children:(0,fe.jsx)(de.A,{id:"pages.project.create.submit"})})]})})},JYe={BGN:"лв",CZK:"Kč",DKK:"kr",EUR:"€",GBP:"£",HRK:"kn",GEL:"₾",HUF:"ft",NOK:"kr",PLN:"zł",RUB:"₽",RON:"lei",SEK:"kr",TRY:"₺",UAH:"₴",BRL:"R$",CAD:"$",CLP:"$",COP:"$",MXN:"$",PEN:"S/.",USD:"$",AUD:"$",BDT:"৳",CNY:"¥",HKD:"HK$",IDR:"Rp",INR:"₹",JPY:"¥",MYR:"RM",NZD:"$",PHP:"₱",PKR:"Rs",SGD:"$",KRW:"₩",LKR:"Rs",THB:"฿",VND:"₫"},YYe={lineHeight:"21px",wordBreak:"inherit",display:"inline-block",alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},HYe={pagination:!0,paginationPageSize:25,paginationPageSizeSelector:[10,25,50,100],cacheBlockSize:25,suppressNoRowsOverlay:!0,defaultColDef:{sortable:!0,resizable:!0,filter:!0,autoHeight:!0,filterParams:{showTooltip:!0},cellStyle:{height:"auto"}},rowStyle:{width:"100%",display:"flex",alignItems:"center"}},KYe=[{colId:"startDate",sort:"asc",sortIndex:0},{colId:"name",sort:"asc",sortIndex:1}],QYe=[{offValue:"Show My Projects",onValue:"Show All Projects"}],ZYe=(0,f.styled)(f.AgGrid)`
  height: calc(100vh - 268px); // header + page title height
  padding-bottom: 2px; // border bottom and shadow to show properly

  .ag-sort-indicator-icon {
    display: flex;
    align-items: center;
  }
`,XYe={category:pGe,costCell:e=>{const{data:{cost:n,currencyId:t}}=e,{data:a}=(0,x.IT)(Vo()),i=a?.getAllCurrencyTypes||[],l=(0,g.useMemo)(()=>{const e=i.find(e=>e.id===t);return JYe[e?.name||""]??e?.name},[i,t]);return(0,fe.jsxs)(f.Text,{typescale:"body",size:"medium",children:[n," ",l]})},description:mGe,owners:oGe,priority:uGe,startDate:e=>{const{data:{startDate:n}}=e,t=Sn(n);return n&&(0,fe.jsx)(f.Text,{typescale:"body",size:"medium",children:t})}},eHe=e=>{const n=(0,m.Zp)(),{projects:t,onGridReady:a,accountId:i,agGridRef:l}=e,{formatMessage:r}=(0,dc.A)(),{columnDefs:o,...s}=(e=>({rowHeight:56,getRowId:Gn("id"),columnDefs:[{headerName:e({id:"pages.project.grid.header.name"}),field:"name",filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:160,cellStyle:YYe},{headerName:"Priority",field:"priority",minWidth:90,sortable:!1,filter:!0,hide:!0},{headerName:e({id:"pages.project.grid.header.impact"}),field:"impact",sortable:!1,filter:!1,width:200,minWidth:160,cellStyle:YYe},{headerName:e({id:"pages.project.grid.header.description"}),field:"description",cellRenderer:"description",sortable:!1,filter:!1,minWidth:100,cellStyle:{textAlign:"center"}},{headerName:e({id:"pages.project.grid.header.locations"}),valueGetter:e=>{let{data:{locations:n}}=e;return n?.map(e=>e?.name)},field:"locations",filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:130,cellStyle:YYe},{headerName:e({id:"pages.project.grid.header.meters"}),field:"meters",valueGetter:e=>{let{data:{meters:n}}=e;return n?.map(e=>e?.name)},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:110,cellStyle:YYe},{headerName:e({id:"pages.project.grid.header.category"}),field:"category",cellRenderer:"category",filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:150},{headerName:e({id:"pages.project.grid.header.scheme"}),field:"scheme",valueGetter:e=>{let{data:{scheme:n}}=e;return n?n.name:""},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:110,cellStyle:YYe},{headerName:e({id:"pages.project.grid.header.owners"}),field:"owners",cellRenderer:"owners",valueGetter:e=>{let{data:{owners:n=[]}}=e;return n.map(e=>{let{first_name:n,last_name:t}=e;return`${n} ${t}`})},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:90},{headerName:e({id:"pages.project.grid.header.cost"}),field:"cost",cellRenderer:"costCell",filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:e({id:"pages.project.grid.header.implementationDate"}),field:"startDate",cellRenderer:"startDate",filter:"agDateColumnFilter",filterParams:{buttons:["reset","apply"],closeOnApply:!0,comparator:tt},minWidth:120},{headerName:e({id:"pages.project.grid.header.baselineDate"}),field:"baselineDate",cellStyle:YYe,valueGetter:e=>{let{data:{baselineStartDate:n}}=e;return ot([n,new Date(n).setFullYear(new Date(n).getFullYear()+1)])},filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:e({id:"pages.project.grid.header.benefitsDate"}),field:"benefitsDate",cellStyle:YYe,valueGetter:e=>{let{data:{startDate:n,endDate:t}}=e;return ot([n,t])},filterParams:{buttons:["reset","apply"],closeOnApply:!0,comparator:tt},minWidth:120},{headerName:e({id:"pages.project.grid.header.plannedBenefit"}),field:"plannedBenefit",cellStyle:YYe,filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:e({id:"pages.project.grid.header.plannedCostChange"}),field:"plannedCostChange",cellStyle:YYe,filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:e({id:"pages.project.grid.header.plannedCO2eChange"}),field:"plannedCO2eChange",cellStyle:YYe,filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120},{headerName:e({id:"pages.project.grid.header.frequency"}),field:"frequency",valueGetter:e=>{let{data:{frequency:n}}=e;return PH()(n)},cellStyle:YYe,filterParams:{buttons:["reset","apply"],closeOnApply:!0},minWidth:120}]}))(r),d={...HYe,...s,columnDefs:o?.map(e=>({...e,headerName:e.headerName?Za(e.headerName):e.headerName})),components:XYe,onGridReady:a,onRowClicked:e=>{n(`./${e.data.id}`)},rowData:t};return(0,fe.jsx)(ZYe,{ref:l,gridKey:`${i}_projectsGridV2`,gridOptions:d},i)},nHe=(0,f.styled)(f.Grid)`
  display: flex;
  align-items: flex-end;
  width: 100%;
  gap: 24px;
  justify-content: flex-end;
`,tHe=(0,f.styled)(f.Grid)`
  flex: 1;
  display: flex;
  align-items: flex-start;
`,aHe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
`;(0,f.styled)(f.Button)`
  min-width: unset !important;
  padding: 10px;

  span {
    margin-right: 0;
  }
`;var iHe=function(e){return e[e.Create=0]="Create",e}(iHe||{});const lHe=(0,f.styled)(f.Grid)`
  min-width: 165px;
`,rHe=()=>{const[e,n]=(0,g.useState)(null),t=e?.gridApi,a=Je(),{token:i}=qe(),l=lr(),{showNotification:r}=tn(),o=Boolean(l.project.find(e=>e.startsWith("create"))),[s,d]=(0,g.useState)(void 0),{showMine:c,setShowMine:u}=ewe(),p=Boolean(l.project.find(e=>"getAll"===e)),{data:m,loading:y,refetch:h,error:x}=dn(oS(),{variables:{accountId:a,userId:i.sub}}),T=m?.getProjects||[],b=(0,g.useCallback)(e=>{n(e)},[]),v=(0,g.useCallback)(e=>{let{message:n,colour:t}=e;r(n,t)},[r]);(0,g.useEffect)(()=>{h({accountId:a,userId:i.sub})},[]);const C=(0,g.useCallback)(()=>{const e=t?.getFilterModel()||{};c?delete e.owners:e.owners={type:"set",values:[`${i.given_name} ${i.family_name}`]},t?.setFilterModel(e),u(!c)},[t,u,c,i.family_name,i.given_name]),k=(0,g.useCallback)(e=>{e.api.applyColumnState({state:KYe})},[]),S={content:"",actionButton:(0,fe.jsxs)(nHe,{container:!0,children:[p&&(0,fe.jsx)(tHe,{container:!0,children:(0,fe.jsx)(lHe,{size:{md:6,lg:3.5},children:(0,fe.jsx)(f.SegmentedButton,{values:QYe,onClick:C})})}),(0,fe.jsxs)(aHe,{children:[(0,fe.jsx)(jS,{filtersApplied:e?.filtersApplied,resetGridState:()=>{e?.resetGridState(),u(!1)}}),o&&(0,fe.jsx)(Vx.A,{title:"Create project",children:(0,fe.jsx)(f.IconButton,{variant:"contained",onClick:()=>d(iHe.Create),children:(0,fe.jsx)(f.Icons.Add,{})})})]})]})};return(0,fe.jsxs)(f.Page,{loading:y,error:x,title:S,children:[(0,fe.jsx)(eHe,{agGridRef:b,accountId:a,onGridReady:k,projects:T,showGoTo:!1}),s===iHe.Create&&(0,fe.jsx)(qYe,{accountId:a,onDismiss:()=>d(void 0),onComplete:e=>v({message:e.message,colour:e.color})})]})};var oHe=t(48837),sHe=t(51549),dHe=t.n(sHe);const cHe=(0,le.default)(ie.JU)`
  margin-right: ${e=>e.theme.geometry.xs.spacing};
`,uHe=le.default.div`
  margin-top: ${e=>e.theme.geometry.xs.spacing};
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
  display: flex;
  align-items: center;
`,pHe=(0,le.default)(f.FileUploadButton)`
  width: 100%;
`,mHe=(0,le.default)("div")`
  margin-bottom: ${e=>e.theme.geometry.xs.spacing};
`,fHe=e=>{let{evidenceDocuments:n,setEvidenceDocuments:t,evidenceNotes:a,setEvidenceNotes:i}=e;const l=(0,g.useCallback)(async e=>{const a=[...n,...e];t(a)},[n,t]);return(0,g.useEffect)(()=>()=>{i(""),t([])},[]),(0,fe.jsxs)(f.Grid,{container:!0,direction:"column",columns:2,children:[(0,fe.jsx)(uHe,{children:(0,fe.jsx)(cHe,{children:"Evidence Name"})}),(0,fe.jsx)(f.TextArea,{size:"medium",onChange:e=>{i(e.target.value)},name:"notes",value:a}),(0,fe.jsx)(uHe,{children:(0,fe.jsx)(cHe,{children:"Evidence"})}),(0,fe.jsx)(mHe,{children:!!n?.length&&n.map(e=>(0,fe.jsx)(EYe,{file:e,readOnly:void 0,onDelete:()=>{t(n.filter(n=>n!==e))}},e instanceof window.File?e?.name:e.fileName))}),(0,fe.jsx)(pHe,{multiple:!0,fullWidth:!0,accept:qt.allowedDocument.mimeType,onFileUpload:l,children:"Attach Evidence"})]})},yHe=(0,le.default)("div")``,gHe=e=>{let{title:n,desc:t}=e;return(0,fe.jsx)(yHe,{children:(0,fe.jsx)(f.Card,{iconName:"Check",title:t,subContent:n})})};function hHe(e){let{label:n,value:t,error:a,disabled:i,onChange:l,accountId:r,errorMessage:o,isSubmitting:s,name:d="metersIds",locationsToFilter:c,isGenerationMeters:u}=e;const p=c?.map(e=>e.label),{data:m,loading:y}=(0,x.IT)(Lr,{variables:{accountId:r,field:"locationPointId"},fetchPolicy:"network-only"}),h=m?.getEnergySourcePageFilter?.filter(e=>p?.includes(e.label)),T=h?.map(e=>e.value)||[],b=y$(T,u),{data:v,loading:C}=(0,x.IT)(Rr,{variables:{accountId:r,filters:b,sort:[{field:"name",order:"asc"}]},skip:y,fetchPolicy:"network-only"});let k=(0,g.useMemo)(()=>{const e=v?.getEnergySourceByAccountIdAndType?.rows;return(0,hn.sortBy)(e?.map(Ua),e=>e?.label.trim().toLowerCase())},[v?.getEnergySourceByAccountIdAndType?.rows]);return c&&c.length>0&&!T.length&&(k=[{label:"There is no meters for selected locations",value:null,isDisabled:!0}]),(0,fe.jsx)(f.MultiSelect,{name:d,value:t,label:n,error:a,options:k,onChange:l,helperText:o,disabled:s||i,isLoading:y||C,placeholder:"Start typing to search for a meter"})}const xHe=(0,le.default)("div")`
  display: flex;
  gap: 22px;
  align-items: center;
`,THe=(0,le.default)(f.Button)`
  width: 160px;
`,bHe=(0,le.default)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: ${e=>e.theme.colors.basic.white};
  width: 100%;
`,vHe=(le.default.div`
  display: flex;
  width: 100%;
`,(0,le.default)(f.Button)`
  span {
    margin-right: 0;
  }
  && {
    padding: 0;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    margin: 10px;
    border-radius: 50%;
  }
`),CHe=(0,le.default)(f.Button)`
  margin-top: 10px !important;
  width: 100%;
`,kHe=(0,le.default)(p.Link)`
  width: fit-content;
`,SHe=(0,le.default)("div")`
  flex-direction: row;
  padding: 0;
  flex-wrap: wrap;
  margin: 3px 0px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
`,NHe=(0,le.default)("div")`
  width: auto;
`,AHe=(0,le.default)("div")`
  display: grid;
  justify-items: start;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  margin: 10px 0;
  grid-gap: 10px;
  grid-row-gap: 30px;
  width: 100%;
  grid-column-gap: 12px;
`,RHe=(0,le.default)("div")`
  min-width: 30vw;
`,DHe=(0,le.default)("div")`
  padding-top: ${e=>e.theme.geometry.md.spacing};
`,LHe=(0,le.default)("div")`
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: ${e=>e.theme.geometry.md.spacing};
  margin-top: ${e=>e.theme.geometry.sm.spacing};
  justify-content: ${e=>{let{justifyContent:n}=e;return n||"space-around"}};
`,IHe=(0,le.default)(f.Text)`
  margin: ${e=>e.theme.geometry.xs.spacing};
`,jHe=(0,le.default)(f.TextField)`
  width: 100%;
`,wHe=le.default.div`
  svg {
    cursor: pointer;
  }

  display: flex;
  align-items: center;
`,OHe=(0,le.default)(f.Icons.InfoOutlined)`
  margin-left: ${e=>e.theme.geometry.xs.spacing};
  color: ${e=>e.theme.colors.warning.normal.background};
`,EHe=()=>{const{id:e}=(0,m.g)(),n=(0,m.Zp)(),t=or(),a=Je(void 0,{onChange:(0,g.useCallback)(()=>{n(`/v2/${t.projects.root}`)},[n,t])}),i=lr(),{showNotification:l}=tn(),[r,o]=(0,g.useState)(!1),[s,d]=(0,g.useState)(""),[c,u]=(0,g.useState)([]),[p,y]=(0,g.useState)(!1),[h,T]=(0,g.useState)(!1),[b,v]=(0,g.useState)(),C=i.project.some(e=>e.startsWith("edit")),k=i.task.some(e=>e.startsWith("create")),S=i.project.some(e=>e.startsWith("delete")),N=hwe(),A=window.history.state&&window.history.state.index>0,R=(0,LYe.t)(gwe),{data:D,formattedProjectData:L,loading:I,selectedProjectCategory:j,setSelectedProjectCategory:w}=(e=>{const[n,t]=(0,g.useState)(),a=(0,x.IT)(Or,{variables:{id:e},skip:!e?.length,onCompleted:e=>{t(e?.getProject.scheme?.category||null)}}),i=(0,g.useMemo)(()=>a.data?.getProject?qa(a.data?.getProject):{},[a.data?.getProject]);return{...a,selectedProjectCategory:n,setSelectedProjectCategory:t,formattedProjectData:i}})(e),O=(0,g.useMemo)(()=>L?{id:e,accountId:a,name:L?.name||"",description:L?.description||"",cost:L?.cost||0,priority:L?.priority||"",impact:L?.impact||"",frequency:L?.frequency||"",owners:L?.owners||[],baselineStartDate:L?.baselineStartDate||"",startDate:L?.startDate||"",endDate:L?.endDate||"",schemeId:L.schemeId||"",locations:L?.locations||[],meters:L?.meters||[],evidenceNotes:L?.evidenceNotes||[],plannedBenefit:L?.plannedBenefit||0,plannedCO2eChange:L?.plannedCO2eChange||0,plannedCostChange:L?.plannedCostChange||0}:{},[L]),{reset:E,control:_,trigger:F,watch:P,setValue:B,handleSubmit:U,formState:$}=(0,Ng.mN)({resolver:R,mode:"onChange",defaultValues:O}),M=(0,f.useTheme)(),{isDirty:V,isValid:G}=$,z=e=>({label:e.name,value:e.id});(0,x.IT)(sS,{onCompleted:e=>{v(e?.getProjectCategories.map(z))},onError:()=>{v([])}});const W=b?.find(e=>e?.label===Wr)?.value,q=(0,g.useCallback)(e=>{let{message:n,colour:t}=e;l(n,t)},[l]),[J,{loading:Y}]=(0,ln.n)(Ewe,{onCompleted:()=>{l("Task has been deleted from this project")},onError:()=>{l("Something went wrong! Please try again later.","danger")}}),[H,{loading:K}]=(0,ln.n)(Owe,{onCompleted:()=>{l("Project has been successfully updated")},onError:()=>{l("Something went wrong! Please try again later.","danger")}}),[Q,{loading:Z}]=(0,ln.n)(wwe,{onCompleted:()=>{n(A?-1:t.projects.root),l("Project has been successfully deleted")},onError:()=>{l("Something went wrong! Please try again later.","danger")}}),X=(0,g.useCallback)(e=>{const n=Ha(e);J({variables:n,refetchQueries:["GetProjectById"]})},[H,G,a,s]),ee=(0,g.useCallback)(e=>{const n=((e,n,t)=>({...e,accountId:n,priority:e?.priority||"",id:e?.id||(0,Wa.A)(),plannedBenefit:Number(e.plannedBenefit)||e.plannedBenefit,startDate:bn()(e.startDate,"MM/DD/YYYY").toISOString(!0)??e.startDate,endDate:bn()(e.endDate,"MM/DD/YYYY").toISOString(!0)??e.endDate,baselineStartDate:bn()(e.baselineStartDate,"MM/DD/YYYY").toISOString(!0)??e.baselineStartDate,owners:e?.owners?.map(e=>e.value),locations:e?.locations?.map(e=>e.value),meters:e?.meters?.map(e=>e.value),plannedCO2eChange:e.plannedCO2eChange&&Number(e.plannedCO2eChange)?Math.abs(Number(e.plannedCO2eChange)):e.plannedCO2eChange,plannedCostChange:e.plannedCostChange&&Number(e.plannedCostChange)?Math.abs(Number(e.plannedCostChange)):e.plannedCostChange,createdAt:(new Date).toISOString(),evidenceNotes:Ja(t||[])}))(e,a,s);G&&H({variables:n,refetchQueries:["GetProjectById"]})},[H,G,a,s]),ne=()=>{o(!1),d(""),u([])},te=D?.getProject?.name,ae=(0,g.useMemo)(()=>{const e=[{label:"Projects",to:t.projects.root}];return te&&e.push({label:te}),e},[te,t.projects.root]),ie=I||K||Y||Z,le=(0,g.useCallback)(e=>{const n=(e||[])?.filter(e=>e.documents.length>0).reduce((e,n)=>(n.documents&&n.documents.length&&e.push(...n.documents),e),[]);return n},[]),re={color:M.palette.grey[600]};return(0,g.useEffect)(()=>{VPe()(O)||dHe()(P(),O)||(E(O),le(L.evidenceNotes))},[L]),L?(0,fe.jsxs)(f.Page,{title:{content:D?.getProjectById?.name||"Project Details",crumbs:ae,actionButton:(0,fe.jsxs)(xHe,{children:[S&&(0,fe.jsx)(THe,{onClick:()=>T(!0),disabled:!S,"data-testid":"Delete_Button",variant:"outlined",color:"primary",children:(0,fe.jsx)(de.A,{id:"pages.project.details.delete"})}),(0,fe.jsx)(THe,{onClick:()=>n(A?-1:t.projects.root),disabled:ie,"data-testid":"Cancel_Button",variant:"outlined",color:"primary",children:(0,fe.jsx)(de.A,{id:"pages.project.details.cancel"})}),(0,fe.jsx)(THe,{disabled:ie||!V&&!I||!G,type:"button",onClick:U(ee),"data-testid":"Save_Button",variant:"contained",color:"primary",children:(0,fe.jsx)(de.A,{id:"pages.project.details.save"})})]})},loading:ie,error:void 0,children:[(0,fe.jsx)(mYe,{open:h,deleteObjectName:"project",onConfirmClick:()=>{var n;void 0!==(n=e)&&Q({variables:{id:n}})},onDismissClick:()=>T(!1)},e),(0,fe.jsx)(f.Modal,{title:"Add Evidence",onClose:ne,open:r,children:(0,fe.jsxs)(RHe,{children:[(0,fe.jsx)(fHe,{evidenceDocuments:c,setEvidenceDocuments:u,evidenceNotes:s,setEvidenceNotes:d}),(0,fe.jsx)(CHe,{type:"button",variant:"outlined",color:"primary",disabled:!c.length&&!s,onClick:async()=>{const e=await N(c,s),n=Ya(L),t={...n,evidenceNotes:n.evidenceNotes.concat(e)};H({variables:t,refetchQueries:["GetProjectById"]}),ne()},children:"Save Evidence"})]})}),ie&&(0,fe.jsx)(ype,{"data-testid":"Loading_Indicator",children:(0,fe.jsx)(f.Loader,{})}),(0,fe.jsx)(Y0,{onComplete:e=>{q(e)},accountId:a,onDismiss:()=>y(!1),sourcePage:"PROJECTS",projectId:e,hasProjectsAccess:!0,open:p}),!ie&&!VPe()(L)&&(0,fe.jsxs)(ope,{children:[(0,fe.jsx)("form",{onSubmit:U(ee),children:(0,fe.jsxs)(f.Grid,{container:!0,columns:12,rowSpacing:3,children:[(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"name",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,onChange:e=>n.onChange(e.target.value),disabled:ie,label:(0,fe.jsx)(de.A,{id:"pages.project.details.name"}),error:!!t.error?.message,helperText:t.error?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"description",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextArea,{...n,"data-cy":"ProjectDetails__Input-description",size:"medium",label:(0,fe.jsx)(de.A,{id:"pages.project.details.description"}),name:"description",disabled:ie,value:n?.value,error:!!t.error?.message,helperText:t.error?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"impact",render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextArea,{...n,label:(0,fe.jsx)(de.A,{id:"pages.project.details.impact"}),"data-cy":"ProjectDetails__Input-impact",disabled:ie,value:n.value,error:!!t.error?.message,helperText:t.error?.message})},control:_})}),(0,fe.jsx)(f.Grid,{padding:0,size:12,children:(0,fe.jsx)(Ng.xI,{name:"locations",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(Uj,{...n,name:"locations",value:n?.value||L?.locations,onChange:e=>n.onChange(e),isSubmitting:ie,disabled:ie,defaultOptions:!1,error:t.error?.message})}})}),(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"owners",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,g.createElement)(B0,{...n,key:n.name,onChange:e=>n.onChange(e),value:n.value,accountId:a,error:t.error?.message,label:(0,fe.jsx)(de.A,{id:"pages.project.details.owner"})})}})}),(0,fe.jsxs)(LHe,{children:[(0,fe.jsx)(Ng.xI,{name:"priority",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.Select,{...n,label:(0,fe.jsx)(de.A,{id:"pages.project.details.priority"}),name:"priority",className:"priority-select",disabled:ie,onChange:e=>n.onChange(e.value),options:Fje,value:n.value,error:!!t.error?.message,helperText:t.error?.message})}}),(0,fe.jsx)(f.Select,{options:b,label:(0,fe.jsx)(de.A,{id:"pages.project.details.category"}),value:j?.id,onChange:e=>{w(e.value?{id:e.value,name:e.label}:null),B("schemeId",""),B("meters",[]),F("schemeId")}})]}),(0,fe.jsxs)(LHe,{children:[(0,fe.jsx)(Ng.xI,{name:"frequency",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.Select,{...n,name:"frequency",label:(0,fe.jsx)(de.A,{id:"pages.project.details.frequency"}),"data-cy":"frequency-select",disabled:ie,onChange:e=>{let{value:t}=e;n.onChange(t)},value:n.value,options:_je,helperText:t.error?.message,error:t.invalid})}}),(0,fe.jsx)(Ng.xI,{name:"schemeId",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(FYe,{...n,name:"schemeId",accountId:a,onChange:e=>{let{value:t}=e;n.onChange(t)},value:n.value,isDisabled:ie,projectCategory:j,error:t.error?.message,isClearable:!0})}})]}),j?.id===W||L?.meters.length?(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"meters",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(hHe,{name:"meters",label:"Meters",value:n.value,accountId:a,disabled:!C,onChange:e=>n.onChange(e),errorMessage:t.error?.message})}})}):null,(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(Ng.xI,{name:"cost",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.TextField,{...n,value:n.value,onChange:e=>n.onChange(e.target.value),label:(0,fe.jsx)(de.A,{id:"pages.project.details.cost"}),"data-cy":"ProjectDetails__Input-cost",disabled:ie,name:"cost",error:!!t.error?.message,helperText:t.error?.message})}})}),(0,fe.jsxs)(LHe,{children:[(0,fe.jsxs)(f.Grid,{minHeight:140,size:12,children:[(0,fe.jsxs)(wHe,{children:[(0,fe.jsx)(IHe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.startDate"})}),(0,fe.jsx)(Vx.A,{title:"The date you would expect to start making savings from your project.",children:(0,fe.jsx)(f.Text,{children:(0,fe.jsx)(OHe,{sx:re})})})]}),(0,fe.jsx)(Ng.xI,{name:"startDate",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.DatePicker,{...n,value:n.value,disabled:ie,onChange:e=>{n.onChange(bn().utc(e).format())},name:"startDate",error:t.error?.message})}})]}),(0,fe.jsxs)(f.Grid,{minHeight:140,size:12,children:[(0,fe.jsxs)(wHe,{children:[(0,fe.jsx)(IHe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.baselineStartDate"})}),(0,fe.jsx)(Vx.A,{title:"The date which you anticipate your planned savings to be realised.",children:(0,fe.jsx)(f.Text,{children:(0,fe.jsx)(OHe,{sx:re})})})]}),(0,fe.jsx)(Ng.xI,{name:"baselineStartDate",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.DatePicker,{...n,value:n.value,disabled:ie,onChange:e=>{n.onChange(bn().utc(e).format())},name:"baselineStartDate",error:t.error?.message})}})]})]}),(0,fe.jsxs)(f.Grid,{size:12,children:[(0,fe.jsxs)(wHe,{children:[(0,fe.jsx)(IHe,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.endDate"})}),(0,fe.jsx)(Vx.A,{title:"The annual period to compare project performance against.",children:(0,fe.jsx)(f.Text,{children:(0,fe.jsx)(OHe,{sx:re})})})]}),(0,fe.jsx)(Ng.xI,{name:"endDate",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(f.DatePicker,{...n,value:n.value,disabled:ie,onChange:e=>{n.onChange(bn().utc(e).format())},name:"endDate",error:t.error?.message})}})]}),(0,fe.jsxs)(AHe,{children:[(0,fe.jsx)(Ng.xI,{name:"plannedBenefit",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(jHe,{...n,onChange:e=>n.onChange(e.target.value),value:n?.value,"data-cy":"ProjectDetails__Input-plannedBenefit",disabled:ie,name:"plannedBenefit",InputLabelProps:{style:{pointerEvents:"auto"}},label:(0,fe.jsx)(fe.Fragment,{children:j?.id===W?(0,fe.jsx)(de.A,{id:"pages.project.details.plannedBenefitGeneration"}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(de.A,{id:"pages.project.details.plannedBenefit"}),Eje[j?.name||"default"]]})}),helperText:t.error?.message,error:t.invalid})}}),(0,fe.jsx)(Ng.xI,{name:"plannedCO2eChange",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(jHe,{...n,onChange:e=>n.onChange(e.target.value),value:n?.value,label:(0,fe.jsxs)(wHe,{children:[(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(de.A,{id:"pages.project.details.plannedCarbonChange"})}),(0,fe.jsx)(Vx.A,{title:"This figure should be positive. Negative values will be automatically converted to a positive value in the Project Dashboard.",children:(0,fe.jsx)(f.Text,{children:(0,fe.jsx)(OHe,{sx:re})})})]}),InputLabelProps:{style:{pointerEvents:"auto"}},"data-cy":"ProjectDetails__Input-plannedCO2eChange",disabled:ie,name:"plannedCO2eChange",helperText:t.error?.message,error:t.invalid})}}),(0,fe.jsx)(Ng.xI,{name:"plannedCostChange",control:_,render:e=>{let{field:n,fieldState:t}=e;return(0,fe.jsx)(jHe,{...n,onChange:e=>n.onChange(e.target.value),value:n?.value,label:(0,fe.jsxs)(wHe,{children:[(0,fe.jsx)(de.A,{id:"pages.project.details.plannedCostChange"}),(0,fe.jsx)(Vx.A,{title:"This figure should be positive. Negative values will be automatically converted to a positive value in the Project Dashboard.",children:(0,fe.jsx)(f.Text,{children:(0,fe.jsx)(OHe,{sx:re})})})]}),"data-cy":"ProjectDetails__Input-plannedCostChange",disabled:ie,helperText:t.error?.message,error:t.invalid})}})]})]})}),(0,fe.jsxs)(G3.A,{marginTop:"20px",children:[(0,fe.jsxs)(oHe.A,{flexDirection:"row",alignItems:"center",children:[(0,fe.jsx)(f.Text,{size:"large",weight:"700",children:(0,fe.jsx)(de.A,{id:"pages.project.details.tasks"})}),k&&(0,fe.jsx)(Vx.A,{title:"Create task",children:(0,fe.jsx)(vHe,{startIcon:(0,fe.jsx)(f.Icons.Add,{}),variant:"contained",onClick:()=>y(!0)})})]}),!L?.tasks?.length&&(0,fe.jsx)(f.Text,{size:"large",children:(0,fe.jsx)(de.A,{id:"pages.project.details.noTasks"})}),!!L?.tasks?.length&&(0,fe.jsx)(Vwe,{tasks:L?.tasks,onTaskDelete:X,canEditProject:C})]}),(0,fe.jsx)(oHe.A,{children:(0,fe.jsx)(DHe,{children:(0,fe.jsx)(Xue,{container:!0,item:!0,children:(0,fe.jsxs)(bHe,{children:[(0,fe.jsx)(npe,{children:(0,fe.jsx)(f.Text,{size:"large",weight:"700",children:"Evidence Library"})}),(0,fe.jsxs)(SHe,{children:[(0,fe.jsx)(NHe,{children:(0,fe.jsx)(f.Card,{iconName:"AddCircleRounded",title:"Upload Evidence",disabled:!C,onClick:()=>o(!0),children:(0,fe.jsx)(Spe,{icon:"add-circle",size:"50px"})},"upload-evidence")}),Array.isArray(L?.evidenceNotes)?L?.evidenceNotes?.filter(e=>e.documents.length>0).map(e=>e.documents.map(n=>(0,fe.jsx)(kHe,{to:{pathname:`/documents/all/${n.id}`},children:(0,fe.jsx)(gHe,{title:n.fileName,desc:e.notes})},n.id))):null]})]})})})})]})]}):(0,fe.jsx)(f.Loader,{size:100})};(0,f.styled)("div")`
  width: 100%;
  height: 100%;
`;const _He=(0,f.styled)("div")`
  width: 100%;
  height: 100%;
`,FHe=()=>(0,fe.jsx)(_He,{children:(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(rHe,{})}),(0,fe.jsx)(m.qh,{path:"/:id",element:(0,fe.jsx)(EHe,{})})]})}),PHe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  height: 100%;

  .MuiTabs-flexContainer {
    padding: 0 32px;
  }
`,BHe=e=>{let{tab:n,hasProjectsAccess:t,hasTasksAccess:a}=e;const i=zo(),l=i?.accessControls?.projects,r=[{label:"Tasks",to:"../tasks",children:(0,fe.jsxs)(fe.Fragment,{children:[!a&&(0,fe.jsx)(Fu,{name:"TasksAndProjects__NoResults",title:"Your account has no access to this section"}),a&&(0,fe.jsx)(DYe,{hasProjectsAccess:t})]})}],o=[...r,{label:"Projects",to:"../projects",children:(0,fe.jsxs)(fe.Fragment,{children:[!t&&(0,fe.jsx)(Zwe,{featureName:ex.PROJECTS,link:"/contact"}),t?(0,fe.jsx)(FHe,{}):""]})}],s=n.includes("tasks")||!l?0:1;return(0,fe.jsx)(PHe,{children:(0,fe.jsx)(f.Tabs,{currentTab:s,tabs:l?o:r})})};function UHe(){const[e,n,t,a]=(0,m.KC)();cr();const i=or(),{getAccountInfo:{accessControls:l},getUserInfoById:{role:{permissions:r}}}=a,o=localStorage.getItem("failed_url"),s=(0,g.useMemo)(()=>ir(r),[r]),d={[gn.gG.Surveysonly]:"/v2/surveys/received",[gn.gG.Learner]:`/v2/${i.learn.root}`},c=a.getUserInfoById.role.role;return(0,m.Ye)((0,m.Eu)((0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(m.qh,{path:`${i.home.root}/*`,element:(0,fe.jsx)(Pqe,{applicationData:a})}),(0,fe.jsx)(m.qh,{path:`${i.home.root}/location/:locationId`,element:(0,fe.jsx)(Wne,{})}),(0,fe.jsx)(m.qh,{path:`${i.learn.root}/*`,element:(0,fe.jsx)(lqe,{applicationData:a})}),(0,fe.jsx)(m.qh,{path:`${i.governance.root}/*`,element:(0,fe.jsx)(jze,{})}),(0,fe.jsx)(m.qh,{path:`${i.surveys.root}/*`,element:(0,fe.jsx)(uYe,{applicationData:a})}),(0,fe.jsx)(m.qh,{path:`${i.data.root}/*`,element:(0,fe.jsx)(iMe,{applicationData:a})}),(0,fe.jsx)(m.qh,{path:`${i.reporting.root}/*`,element:(0,fe.jsx)(Foe,{})}),(0,fe.jsx)(m.qh,{path:`${i.docs.root}/*`,element:(0,fe.jsx)(YMe,{})}),(0,fe.jsx)(m.qh,{path:`${i.tasks.root}/:id`,element:(0,fe.jsx)(bYe,{hasProjectsAccess:l.projects})}),(0,fe.jsx)(m.qh,{path:`${i.tasks.root}/*`,element:(0,fe.jsx)(BHe,{tab:i.tasks.root,hasProjectsAccess:l.projects,hasTasksAccess:l.tasks})}),(0,fe.jsx)(m.qh,{path:`${i.projects.root}/:id`,element:(0,fe.jsx)(EHe,{})}),(0,fe.jsx)(m.qh,{path:`${i.projects.root}/*`,element:(0,fe.jsx)(BHe,{tab:i.projects.root,hasProjectsAccess:l.projects,hasTasksAccess:l.tasks})}),!!s&&(0,fe.jsx)(m.qh,{path:`${i.configuration.root}/*`,element:(0,fe.jsx)(jJ,{massUploadFunction:e,setCreateMutation:(e,a)=>{n(e),a&&t(a)}})}),!!l.intelligence&&(0,fe.jsx)(m.qh,{path:`${i.intelligence.root}/:id?`,element:(0,fe.jsx)(Q_e,{})}),!!l.flows&&(0,fe.jsx)(m.qh,{path:`${i.flows.root}/*`,element:(0,fe.jsx)(eVe,{})}),(0,fe.jsx)(m.qh,{path:`${i.header.contact}/*`,element:(0,fe.jsx)(cFe,{})}),(0,fe.jsx)(m.qh,{path:`${i.header.profile}/*`,element:(0,fe.jsx)(Yqe,{})}),(0,fe.jsx)(m.qh,{path:`${i.header.upgrade}/*`,element:(0,fe.jsx)(VEe,{})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(m.C5,{to:o||d[c]||`/${i.home.root}`,replace:!0})})]})))}async function $He(e){const{data:n}=await aq.query({query:A,variables:{name:e}});return n.getUserInfoById.role.permissions}const MHe=S.J1`
  {
    idToken @client {
      sub
      name
    }
  }
`,VHe=S.J1`
  {
    currentAccountId @client
  }
`;function GHe(e){let{task:n}=e;const t=n?.includes("getAll")||n?.includes("getParent");return S.J1`
  query GetApplicationData(${t?"$userId: ID!,":""} $userIdString: String!, $accountId: ID!) {
    getUserInfoById(id: $userIdString) {
      ...getUserInfoFragment
    }

    getAccountInfo(id: $accountId) {
      ...getAccountInfoFragment
    }

    getReceivedSurveysPage(accountId: $accountId) {
      rows {
        id
        deadlineDate
        submission {
          id
          status
        }
      }
    }

    ${t?"getTasksByUserId(id: $userId, accountId: $accountId) {\n      id\n      isCompleted\n      dueDate\n      name\n      priority\n      owners {\n        id\n        first_name\n        last_name\n      }\n    }":""}
  }
  ${N}
  ${Pr}
`}const zHe=(0,le.default)(ie.fv)`
  height: 100%;
  width: 100%;
  padding: ${e=>e.theme.geometry.md.spacing};
`,WHe=(0,le.default)(ie.fv)`
  text-align: center;
`,qHe=le.default.div`
  height: 70px;
  width: 125px;
  background: no-repeat top center / contain url(${Re});
  margin-bottom: ${e=>e.theme.geometry.sm.spacing};
  align-self: center;
  flex: 0 0 auto;
`,JHe=(0,le.default)(ie.$n)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
  width: 140px;
`,YHe=(0,le.default)(ie.EY)`
  margin-top: ${e=>e.theme.geometry.sm.spacing};
  text-align: center;
`;var HHe=function(e){return e.OKTA="Okta",e.AZURE="Azure",e}(HHe||{});let KHe={"rio-azure-ad":HHe.AZURE,okta:HHe.OKTA};function QHe(){const[e,n]=(0,g.useState)(!1),t=(0,m.g)(),[a]=(0,ln.n)(I),i=(0,g.useCallback)(()=>{n(!0),a({variables:{provider:t.providerId}})},[a,t?.providerId]),l=!t.providerId||!(t.providerId in KHe),r=or();return"kier"===t.providerId?(0,fe.jsx)(m.C5,{to:r.registration.login}):(0,fe.jsxs)(zHe,{container:!0,item:!0,distribution:"center",name:"login-container",children:[["Develop","QA","UAT"].includes("Live")&&(0,fe.jsx)(Ae,{id:"banner",dismissable:!1,onDismiss:()=>null,name:"LoginContainer__NotificationBanner",color:"primary",icon:"exclamation-triangle",title:`This is the ${De("REACT_APP_ENVIRONMENT_NAME")} site`,body:"Please note that we regularly reset the data and anything you enter may be overwritten. We recommend that personal details of real individuals are not entered"}),(0,fe.jsx)(ie.fI,{container:!0,item:!0,distribution:"center",children:(0,fe.jsxs)(WHe,{container:!0,vdistribution:"center",item:!0,itemAlign:"center",span:3,children:[(0,fe.jsx)("a",{target:"__blank",href:De("REACT_APP_DS_URL"),children:(0,fe.jsx)(qHe,{})}),(0,fe.jsx)(ie.DZ,{size:"lg",children:(0,fe.jsx)(de.A,{id:"login.main.title"})}),(0,fe.jsx)(ie.EY,{align:"center",children:(0,fe.jsx)(de.A,{id:"login.main.subheading"})}),l?(0,fe.jsx)(YHe,{name:"formError",color:"danger",size:"sm",weight:"bold",children:(0,fe.jsx)(de.A,{id:"login.main.providerNotFound"})}):(0,fe.jsx)(JHe,{name:"loginbutton",onClick:i,size:"sm",loading:e,children:(0,fe.jsx)(de.A,{id:"login.main.loginButtonSSO",values:{provider:t?.providerId?KHe[t.providerId]:"your IdP"}})})]})})]})}"Live"===De("REACT_APP_ENVIRONMENT_NAME")&&(KHe={luminor:HHe.AZURE,kier:HHe.AZURE,"british-council":HHe.AZURE});const ZHe=t.p+"microsoft-42b61fa109e1e5d566ff.svg",XHe=e=>{let{message:n}=e;switch(n){case"Incorrect username or password.":return"NotAuthorizedException";case"User does not exist.":return"UserNotFoundException";case"User is disabled.":return"UserDisabledException";case"Confirmation code cannot be empty":return"ConfirmationCodeEmptyException";case"Invalid code provided, please request a code again.":return"InvalidCodeException";default:return n}},eKe=(0,f.styled)(f.TextField)`
  margin-top: 1rem;
  margin-bottom: 1rem;
`,nKe=(0,f.styled)("form")`
  width: 100%;
`,tKe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 5px;
  justify-content: space-between;
`,aKe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
`,iKe=(0,f.styled)("div")`
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
`,lKe=(0,f.styled)(f.Button)`
  flex: 1;
  &:first-child {
    text-align: left;
  }
  &:last-child {
    text-align: right;
  }

  font-family: 'Plus Jakarta Sans';
`,rKe=(0,f.styled)(f.Button)`
  padding-left: 3rem;
  padding-right: 3rem;
`,oKe=(0,f.styled)("img")``,sKe=(0,f.styled)("div")`
  display: flex;
  margin: 0 auto;
  flex-direction: row;
  gap: 5px;
  justyify-conetent: center;
  align-items: center;
`,dKe=(0,f.styled)("div")`
  cursor: pointer;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
  border: 0.5px solid black;
  pointer-events: ${e=>{let{isLoading:n}=e;return n?"none":"auto"}};
  opacity: ${e=>{let{isLoading:n}=e;return n?"0.6":"1"}};
  &:hover {
    transition: 0.3s;
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.surfaceVariant}};
  }
`,cKe=(0,f.styled)("div")`
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
`,uKe=(0,f.styled)("div")`
  display: flex;
  align-items: center;
  flex-direction: row;
`,pKe=(0,f.styled)(f.Text)`
  margin: 0 auto;
  text-align: center;
  color: ${e=>{let{theme:n}=e;return n.sys.color.outline}};
`,mKe=(0,f.styled)(f.Text)`
  margin-bottom: 1rem;
  text-align: center;
  color: ${e=>{let{theme:n}=e;return n.sys.color.error}};
`,fKe=e=>{let{onSSOClick:n,isLoading:t}=e;return(0,fe.jsx)(dKe,{onClick:n,isLoading:t,"aria-disabled":t,children:(0,fe.jsxs)(sKe,{children:[(0,fe.jsx)(oKe,{src:ZHe}),(0,fe.jsx)(f.Text,{children:"Sign in with Microsoft"})]})})},yKe=e=>{let{loginError:n}=e;if(!n)return null;const t=(e=>({UserNotFoundException:"login.main.userNotFound",NotAuthorizedException:"login.main.incorrectPassword",UserDisabledException:"login.main.userDisabled",GeneralError:"login.main.generalError"}[e]))(n);return(0,fe.jsx)(mKe,{color:"danger",size:"small",typescale:"label",children:t?(0,fe.jsx)(de.A,{id:t}):n})};function gKe(e){let{handleSubmit:n,handleChange:t,handleForgotPassword:a,email:i,password:l,isLoading:r,loginError:o,onSSOClick:s,supportsSSO:d}=e;const c=(0,dc.A)();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Logo,{height:"70px",style:{marginTop:"1rem",marginBottom:"2rem",marginLeft:"1rem"}}),(0,fe.jsx)(f.Text,{size:"large",typescale:"title",children:(0,fe.jsx)(de.A,{id:"login.main.titleV2"})}),(0,fe.jsx)(f.Text,{size:"large",typescale:"label",children:(0,fe.jsx)(de.A,{id:"login.main.subheadingV2"})}),(0,fe.jsxs)(nKe,{name:"login__form",onSubmit:n,children:[(0,fe.jsx)(eKe,{name:"email",placeholder:c.formatMessage({id:"login.main.emailPlaceholder"}),value:i.value,error:!!i.error,onChange:t}),(0,fe.jsx)(f.TextField,{name:"password",type:"password",placeholder:c.formatMessage({id:"login.main.passwordPlaceholder"}),value:l.value,error:!!l.error,onChange:t}),(0,fe.jsxs)(aKe,{children:[(0,fe.jsx)(lKe,{variant:"text",id:"forgotPasswordTextLink",onClick:a,children:(0,fe.jsx)(de.A,{id:"login.main.forgotPassword"})}),(0,fe.jsx)(lKe,{variant:"text",to:"/v2/register",children:(0,fe.jsx)(de.A,{id:"login.main.newRioUser"})})]}),(0,fe.jsx)(iKe,{children:o&&(0,fe.jsx)(yKe,{loginError:o})}),(0,fe.jsxs)(cKe,{children:[(0,fe.jsx)(rKe,{disabled:r,type:"submit",name:"loginbutton",loaderTheme:"dark",variant:"contained",children:(0,fe.jsxs)(tKe,{children:[(0,fe.jsx)(de.A,{id:r?"login.main.loginButtonLoading":"login.main.loginButton"}),r&&(0,fe.jsx)(f.Loader,{size:20})]})}),(0,fe.jsx)(uKe,{children:(0,fe.jsx)(pKe,{children:"OR"})}),d&&(0,fe.jsx)(fKe,{onSSOClick:s,isLoading:r})]})]})]})}const hKe={isLoading:!1,email:{value:"",error:""},password:{value:"",error:""},remember:{value:!1},formError:"",loginError:null,forgotPasswordModal:!1};function xKe(e,n){switch(n.type){case"form-value.change":return{...e,[n.name]:{...[n.name],value:n.value}};case"loading.set":return{...e,isLoading:n.value};case"errors.set":return{...e,email:{...e.email,error:n.errors.email},password:{...e.password,error:n.errors.password}};case"loginError.set":return{...e,loginError:n.error};case"forgotPassword.set":return{...e,forgotPasswordModal:n.value}}}const TKe=(0,f.styled)("div")`
  display: block;
  text-align: center;
  padding: 0.3rem;
`,bKe=(0,f.styled)("form")`
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0.5rem 1.5rem;
`,vKe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
`,CKe=e=>{let{username:n,...t}=e;const{username:a,changeUsername:i,handleForgotPassword:l,success:r,error:o,loading:s}=function(e){const[n,t]=(0,g.useState)(!1),[a,i]=(0,g.useState)(!1),[l,r]=(0,g.useState)(e),[o,s]=(0,g.useState)(!1),[d]=(0,ln.n)(w);return{handleForgotPassword:(0,g.useCallback)(e=>{if(e.preventDefault(),0===l.length)return s(!0);t(!0),d({variables:{username:l},onCompleted(){i(!0)},onError(){t(!1)}})},[i,d,t,l,s]),changeUsername:(0,g.useCallback)(e=>{s(!1),r(e.target.value)},[r]),username:l,success:a,error:o,loading:n}}(n),d=(0,dc.A)();return(0,fe.jsxs)(TKe,{...t,children:[r&&(0,fe.jsxs)(vKe,{children:[(0,fe.jsx)(f.Text,{size:"large",typescale:"title",sx:{marginBottom:"1rem"},children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.success.title"})}),(0,fe.jsx)(f.Text,{size:"large",typescale:"label",sx:{marginBottom:"1rem"},children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.success.subheading"})}),(0,fe.jsx)(f.Button,{name:"forgot-password-container__go-to-resetbutton",to:`/v2/reset-password?username=${a}`,sx:{width:"fit-content"},children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.goToResetButton"})})]}),!r&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f.Text,{size:"large",typescale:"title",sx:{marginBottom:"0.3rem"},children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.title"})}),(0,fe.jsx)(f.Text,{sx:{textAlign:"center",marginBottom:"1rem"},size:"large",typescale:"label",children:(0,fe.jsx)(de.A,{id:"login.forgotPassword.subheading"})}),(0,fe.jsxs)(bKe,{onSubmit:l,children:[(0,fe.jsx)(f.TextField,{name:"username",error:o,placeholder:d.formatMessage({id:"login.forgotPassword.usernamePlaceholder"}),value:a,onChange:i,sx:{marginBottom:"1.5rem"}}),(0,fe.jsxs)(f.Button,{type:"submit",variant:"contained",name:"forgot-password-container__button",loading:s,sx:{alignSelf:"center"},children:[s&&(0,fe.jsx)(de.A,{id:"login.forgotPassword.buttonSubmitting"}),!s&&(0,fe.jsx)(de.A,{id:"login.forgotPassword.submitButton"})]})]})]})]})};var kKe=t(55534),SKe=t(75970),NKe=t(2919);class AKe extends Error{}const RKe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  height: 100vh;
  place-items: center;

  & > #notification_banner {
    position: absolute;
    width: auto;
    background-color: ${e=>{let{theme:n}=e;return n.sys.color.primary}};
  }
`,DKe=(0,f.styled)("div")`
  display: flex;
  flex: 1;
  justify-content: center;
`,LKe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  text-align: center;
  align-items: center;
  width: 30rem;
`,IKe=(0,f.styled)(f.Text)`
  padding: 24px 0;
`.withComponent("h2"),jKe=(0,f.styled)(f.Text)`
  padding: 0 0 24px;
`,wKe=(0,f.styled)("a")`
  color: ${e=>e.theme.sys.color.primary};
`,OKe=(0,f.styled)(p.Link)``,EKe=(0,f.styled)(f.Button)`
  width: 100%;
`,_Ke=(0,f.styled)("form")`
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
`,FKe=(0,f.styled)(f.Text)`
  padding: 16px 0;
  color: ${e=>{let{theme:n}=e;return n.sys.color.error}};
`,PKe=(0,f.styled)(f.Grid)`
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
`,BKe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  max-width: 480px;
  width: 100%;
`,UKe=e=>{let{onSubmit:n,children:t,form:a,setErrors:i,name:l}=e;const r=(0,g.useCallback)(e=>{e.preventDefault();const t=bx(a);Object.keys(t).length?i(t):n(a)},[a,n,i]);return(0,fe.jsx)(_Ke,{name:l,onSubmit:r,children:t})},$Ke=e=>{let{children:n,title:t}=e;return(0,fe.jsx)(PKe,{container:!0,children:(0,fe.jsxs)(BKe,{children:[(0,fe.jsx)(f.Logo,{height:"70px",style:{marginTop:"1rem"}}),(0,fe.jsx)(IKe,{size:"large",typescale:"title",children:(0,fe.jsx)(de.A,{id:t})}),n]})})},MKe=e=>{let{terms:n,checked:t,onChange:a}=e;return(0,fe.jsx)(f.Checkbox,{name:n,checked:t,label:(0,fe.jsxs)(f.Text,{size:"medium",typescale:"body",children:[(0,fe.jsx)(de.A,{id:"login.termsAgreement.termsAgreementText"}),(0,fe.jsx)(wKe,{href:`http://www.rio.ai/terms-of-${n}`,target:"_blank",children:(0,fe.jsx)(de.A,{id:"login.termsAgreement.termsLinkText",values:{terms:(0,fe.jsx)(de.A,{id:`login.termsAgreement.${n}`})}})})]}),onChange:a})},VKe=e=>{let{form:n,errors:t,handleChange:a,setErrors:i,handleCheckboxChange:l,handleCredentialsSubmit:r}=e;const o=(0,dc.A)();return(0,fe.jsxs)($Ke,{title:"login.registration.mainPage.title",children:[(0,fe.jsx)(jKe,{size:"small",typescale:"title",children:(0,fe.jsx)(de.A,{id:"login.registration.mainPage.subtitle"})}),(0,fe.jsxs)(UKe,{onSubmit:r,form:n,setErrors:i,name:"credentials",children:[(0,fe.jsx)(f.TextField,{type:"email",value:n.email,error:!!t.email,placeholder:o.formatMessage({id:"login.registration.mainPage.emailPlaceholder"}),label:o.formatMessage({id:"login.registration.mainPage.emailPlaceholder"}),helperText:t.email&&o.formatMessage({id:`login.errors.validation.${t.email}`}),autoComplete:"email",name:"email",onChange:a,required:!0}),(0,fe.jsx)(f.TextField,{type:"password",value:n.password,error:!!t.password,label:o.formatMessage({id:"login.registration.mainPage.passwordPlaceholder"}),helperText:t.password&&o.formatMessage({id:`login.errors.validation.${t.password}`}),placeholder:o.formatMessage({id:"login.registration.mainPage.passwordPlaceholder"}),autoComplete:"new-password",onChange:a,name:"password",required:!0}),(0,fe.jsx)(f.TextField,{type:"password",value:n.passwordConfirmed,error:!!t.passwordConfirmed,label:o.formatMessage({id:"login.registration.mainPage.confirmPasswordPlaceholder"}),helperText:t.passwordConfirmed&&o.formatMessage({id:`login.errors.validation.${t.passwordConfirmed}`}),placeholder:o.formatMessage({id:"login.registration.mainPage.confirmPasswordPlaceholder"}),autoComplete:"new-password",onChange:a,name:"passwordConfirmed",required:!0}),(0,fe.jsx)(MKe,{terms:"service",checked:n.agreedWithTermsOfService,onChange:()=>{l("service")}}),(0,fe.jsx)(MKe,{terms:"use",checked:n.agreedWithTermsOfUse,onChange:()=>l("use")}),(0,fe.jsx)(f.Button,{variant:"contained",type:"submit",disabled:!!Object.keys(t).length||!n.agreedWithTermsOfUse||!n.agreedWithTermsOfService,children:(0,fe.jsx)(de.A,{id:"login.registration.mainPage.nextButtonText"})})]})]})},GKe=e=>{let{form:n,errors:t,setErrors:a,handleChange:i,handleProfileChange:l,handleProfileSubmit:r}=e;const o=(0,dc.A)();return(0,fe.jsx)($Ke,{title:"login.registration.detailsPage.title",children:(0,fe.jsxs)(UKe,{onSubmit:r,name:"profile",form:n,setErrors:a,children:[(0,fe.jsxs)(f.Grid,{container:!0,columnSpacing:4,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{type:"text",value:n.firstName,error:!!t.firstName,label:o.formatMessage({id:"login.registration.detailsPage.firstName"}),helperText:t.firstName&&o.formatMessage({id:`login.errors.validation.${t.firstName}`}),autoComplete:"given-name",name:"firstName",onChange:i,required:!0})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{type:"text",value:n.lastName,error:!!t.lastName,label:o.formatMessage({id:"login.registration.detailsPage.lastName"}),helperText:t.lastName&&o.formatMessage({id:`login.errors.validation.${t.lastName}`}),autoComplete:"family-name",name:"lastName",onChange:i,required:!0})})]}),(0,fe.jsx)(f.Grid,{container:!0,children:(0,fe.jsx)(f.Grid,{size:12,children:(0,fe.jsx)(f.TextField,{type:"text",value:n.companyName,error:!!t.companyName,label:o.formatMessage({id:"login.registration.detailsPage.companyName"}),helperText:t.companyName&&o.formatMessage({id:`login.errors.validation.${t.companyName}`}),autoComplete:"organization",name:"companyName",onChange:i,required:!n.preferPersonalUse})})}),(0,fe.jsx)(f.Grid,{container:!0,children:(0,fe.jsx)(f.Checkbox,{name:"preferPersonalUse",checked:n.preferPersonalUse,label:o.formatMessage({id:"login.registration.detailsPage.personalUse"}),onChange:()=>{l({...n,preferPersonalUse:!n.preferPersonalUse})}})}),(0,fe.jsxs)(f.Grid,{container:!0,columnSpacing:4,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(p.Link,{to:"/v2/register",children:(0,fe.jsx)(EKe,{variant:"outlined",type:"button",color:"primary",children:(0,fe.jsx)(de.A,{id:"login.registration.detailsPage.backButtonText"})})})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(EKe,{variant:"contained",type:"submit",color:"primary",children:(0,fe.jsx)(de.A,{id:"login.registration.detailsPage.nextButtonText"})})})]})]})})},zKe=e=>{let{handleChange:n,errors:t,form:a,queryParams:i,setErrors:l,handleContactsSubmit:r}=e;const o=(0,dc.A)(),s=t?.submit,d={"An account with the given email already exists.":(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(de.A,{id:"login.errors.existAccount",values:{email:a.email}}),(0,fe.jsx)(OKe,{to:`/v2/register${i}`,onClick:()=>{l({})},children:(0,fe.jsx)(de.A,{id:"login.errors.changeEmail"})})]})},c=e=>{let{registrationError:n}=e;return n?(0,fe.jsx)(FKe,{size:"large",typescale:"label",children:n}):null};return(0,fe.jsx)($Ke,{title:"login.registration.contactPage.title",children:(0,fe.jsxs)(UKe,{name:"contacts",form:a,setErrors:l,onSubmit:()=>r(d),children:[(0,fe.jsxs)(f.Grid,{container:!0,columnSpacing:4,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{type:"text",onChange:n,error:!!t.jobTitle,label:o.formatMessage({id:"login.registration.contactPage.jobTitle"}),helperText:t.jobTitle&&o.formatMessage({id:`login.errors.validation.${t.jobTitle}`}),value:a.jobTitle,autoComplete:"job",name:"jobTitle"})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{type:"text",error:!!t.department,label:o.formatMessage({id:"login.registration.contactPage.department"}),helperText:t.department&&o.formatMessage({id:`login.errors.validation.${t.department}`}),onChange:n,value:a.department,autoComplete:"department",name:"department"})})]}),(0,fe.jsxs)(f.Grid,{container:!0,columnSpacing:4,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{type:"phone",onChange:n,error:!!t.phone,label:o.formatMessage({id:"login.registration.contactPage.phoneNumber"}),helperText:t.phone&&o.formatMessage({id:`login.errors.validation.${t.phone}`}),value:a.phone,autoComplete:"tel",name:"phone"})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(f.TextField,{type:"phone",onChange:n,error:!!t.mobile,label:o.formatMessage({id:"login.registration.contactPage.mobileNumber"}),helperText:t.mobile&&o.formatMessage({id:`login.errors.validation.${t.mobile}`}),value:a.mobile,autoComplete:"tel",name:"mobile"})})]}),s&&(0,fe.jsx)(c,{registrationError:s}),(0,fe.jsxs)(f.Grid,{container:!0,columnSpacing:4,children:[(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(p.Link,{to:"/v2/register/profile",children:(0,fe.jsx)(EKe,{variant:"outlined",type:"button",color:"primary",children:(0,fe.jsx)(de.A,{id:"login.registration.contactPage.backButtonText"})})})}),(0,fe.jsx)(f.Grid,{size:6,children:(0,fe.jsx)(EKe,{variant:"contained",type:"submit",color:"primary",children:(0,fe.jsx)(de.A,{id:"login.registration.contactPage.finishButtonText"})})})]})]})})},WKe=(0,f.styled)(f.Button)`
  width: 100%;
`,qKe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  gap: 24px;
`,JKe=(0,f.styled)(f.Text)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
`,YKe=(0,f.styled)(p.Link)`
  color: ${e=>{let{theme:n}=e;return n.sys.color.onSurfaceVariant}};
  font-size: ${e=>{let{theme:n}=e;return n.sys.typescale.body.large.size}}px;
  font-family: ${e=>{let{theme:n}=e;return n.sys.typescale.body.large.family}};
  text-decoration: underline;
  text-align: center;
`,HKe=(0,f.styled)(f.Modal)`
  .TitleClassName {
    text-align: center;
  }
`,KKe=e=>{let{email:n,show:t,onDismiss:a,queryParams:i}=e;const{showNotification:l}=tn(),r=(0,g.useCallback)(async()=>{if(n)try{await y.N.resendSignUp(n.trim().toLowerCase()),l("Email has been sent again!")}catch(e){e instanceof Error?l(`Email wasn't sent: ${e.message}`):l(`An unexpected error occurred: ${String(e)}`)}},[n,l]);return(0,fe.jsx)(HKe,{title:"Verify your email address",open:t,onClose:a,titleClassName:"TitleClassName",children:(0,fe.jsxs)(qKe,{children:[(0,fe.jsx)(JKe,{typescale:"body",size:"large",children:"In order to start using your Rio account, you need to confirm your email address."}),(0,fe.jsx)(WKe,{to:`/v2/verify-email${i}`,variant:"contained",children:"Verify Email Address"}),(0,fe.jsx)(YKe,{to:"",onClick:r,children:"Not received your confirmation? Resend Email"}),(0,fe.jsx)(YKe,{to:"/v2/register",onClick:a,children:"Change Email Address"})]})})};var QKe=t(18006);const ZKe=(0,f.styled)("div")`
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  align-items: center;
`,XKe=(0,f.styled)(f.Button)`
  width: 100%;
  margin: 0;
`,eQe=(0,f.styled)("form")`
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 30rem;
  margin-top: 1rem;

  button {
    margin: auto;
  }
`,nQe=e=>{let{error:n}=e;const t=(0,f.useTheme)();return n?(0,fe.jsx)(f.Text,{size:"small",typescale:"label",sx:{color:t.sys.color.error},children:n}):null},tQe=e=>{let{children:n}=e;const t=(0,f.useTheme)();return(0,fe.jsx)(f.Text,{size:"medium",typescale:"body",sx:{color:t.sys.color.error,marginTop:"0.5rem"},children:n})};var aQe=t(82674),iQe=t(42656),lQe=t(71984),rQe=t(98724);function oQe(e){let{children:n}=e;const t=function(){const e=Je(),{showNotification:n}=tn(),t=(0,g.useRef)({}),a=(0,g.useRef)(new Set),[i,l]=(0,g.useState)([]),[r]=(()=>{const e=Je(),{showNotification:n}=tn();return(0,ln.n)(El,{variables:{accountId:e},onError:e=>{n(`There was an error at initializing the export. (${e.message})`,"danger")},onCompleted:()=>{n(Dl,"success")}})})(),o=(()=>{const e=Bl(),{showNotification:n}=tn(),[t]=(0,Ul._)(Fl,{fetchPolicy:"network-only"});return(0,g.useCallback)(async a=>{const i=await t({variables:{id:a.id,userId:e}});if(!i.data?.downloadMyExport)return n(`${a.filename} could not be downloaded`,"danger"),!1;try{return await Xt(i.data.downloadMyExport,a.filename),n(`${a.filename} is saved to your downloads`,"success"),!0}catch(e){return n(`${a.filename} could not be downloaded`,"danger"),!1}},[t,e,n])})(),s=(()=>{const e=Bl(),{showNotification:n}=tn(),[t]=(0,ln.n)(Pl);return(0,g.useCallback)(async a=>{const i=await t({variables:{id:a,userId:e}});return!!i.data?.deleteMyExport||(n("Export could not be deleted","danger"),!1)},[t,e,n])})();!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Bl();(0,Ll.R)(_l,{variables:{userId:n},ignoreResults:!0,shouldResubscribe:!0,...e})}({onData:async e=>{const n=e.data.data?.exportProgressUpdated?.items;if(!n?.length)return;const t=(0,hn.keyBy)(n,"id");for(const e of n)e.exportStatus!==gn.l2.Ready||a.current.has(e.id)||(a.current.add(e.id),await o(e)||a.current.delete(e.id),l(n=>n.map(n=>n.id===e.id?{...n,completed:!0}:n)));l(e=>{const n=(0,hn.keyBy)(e,"id"),a=Object.keys(t).filter(e=>!(e in n)).sort((e,n)=>new Date(t[n].createdAt).getTime()-new Date(t[e].createdAt).getTime()).map(e=>Rl(t[e]));return e.map(e=>{if(e.id in t){const n=Rl(t[e.id]);if(e.completed&&!n.completed)return e;if(e.isBackendExport&&!e.completed){const n=$l[e.status],a=$l[t[e.id].exportStatus];if(void 0!==n&&void 0!==a&&a<n)return e}return n}return e}).concat(a)})}}),(0,g.useEffect)(()=>{i.filter(e=>!(e.isBackendExport||e.loading||null===e.offset||e.completed||e.error)).forEach(a=>{a.isBackendExport||(l(Al(a.id,{loading:!0})),a.options.fetchRows({accountId:e,offset:a.offset,limit:a.step,sort:a.options.sort,filters:a.options.filters}).then(e=>{let{rows:i,totalRows:r}=e;if(a.error||a.completed)return;i.forEach(e=>{const n=a.options.formatRow(e);t.current[a.id]?.push(n)});const o=(a?.offset||0)+a.step;if(o<r)l(Al(a.id,{totalRows:r,offset:o,loading:!1}));else{if(t.current[a.id].length){const e=ca(t.current[a.id],a.options.exportFileName);Nl()(e,`${a.options.exportFileName}.xlsx`),n("Export completed! Please check your downloads.","success")}else n("Nothing to export.","warning");l(Al(a.id,{totalRows:r,completed:!0,offset:r,loading:!1}))}}).catch(e=>{l(Al(a.id,{error:e})),n(`Export failed: ${e}`,"danger")}))})},[i]);const d=(0,g.useCallback)(e=>{const a=(0,Wa.A)(),i={isBackendExport:!1,id:a,options:e,offset:0,totalRows:null,loading:!1,completed:!1,error:null,step:e.step||500,percents:0,fileName:e.exportFileName};return t.current[a]=[],l(e=>e.concat(i)),n(Dl,"success"),a},[n]),c=(0,g.useCallback)(async function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=i.find(n=>n.id===e);r?.isBackendExport&&n.shouldDelete&&await s(e),a.current.delete(e),delete t.current[e],l(n=>n.filter(n=>n.id!==e))},[i,s]),u=(0,g.useCallback)(async t=>{const{data:a}=await r({variables:{accountId:e,...t}}),i=a?.triggerExportTransactions;if(!i)throw n("Failed to start your export","danger"),new Error("Failed to start your export");return l(e=>e.find(e=>e.id===i.id)?e:e.concat([Rl(i)])),i.id},[e,r,n]),p=(0,g.useCallback)(e=>{const n=i.find(n=>n.id===e);if(!n)throw new Error("Export not found");return n},[i]),m=(0,g.useCallback)(()=>i,[i]);return(0,g.useMemo)(()=>({stopExport:c,startFrontendExport:d,startBackendExport:u,getExport:p,getExports:m}),[c,u,d,p,m])}();return(0,fe.jsx)(Cl.Provider,{value:t,children:n})}const sQe=e=>{let{children:n}=e;const t=window._hsq=window._hsq||[],a=(0,m.zy)(),{token:i}=(sl(),qe());return(0,g.useLayoutEffect)(()=>{const e=document.createElement("script");e.setAttribute("id","hs-script-loader"),e.setAttribute("src",`https://js.hs-scripts.com/${De("REACT_APP_HUBSPOT_TRACKER")}.js`),document.head.appendChild(e)},[]),(0,g.useLayoutEffect)(()=>{t.push(["setPath",a.pathname]),t.push(["trackPageView"])},[a,t]),(0,g.useEffect)(()=>{i&&t.push(["identify",{email:i?.email}])},[t,i]),n},dQe=le.createGlobalStyle`
  div#hubspot-messages-iframe-container iframe {
    display: none !important;
  }
`,cQe=["engage"],uQe=e=>{let{children:n}=e;const t=(0,m.zy)(),a=cQe.some(e=>t.pathname.includes(e));return(0,g.useLayoutEffect)(()=>{const e=document.getElementById("hs-script-loader"),n=document.getElementById("hubspot-messages-iframe-container");e&&a&&document.head.removeChild(e),n&&a&&n.remove()},[a]),a?(0,fe.jsxs)(g.Fragment,{children:[(0,fe.jsx)(dQe,{}),n]}):(0,fe.jsx)(sQe,{children:n})},pQe={"en-US":{home:{title:"Logged in home page",subtitle:"This is some simple localized text",lastCommit:"Last commit {commitId} by {author} at {timestamp}",logoutButtonLabel:"Log out",myProfile:"My Profile",contact:"Contact",search:"Search"},marketingHome:{title:"Logged out home page",loginButtonLabel:"Log in"},login:{registration:{mainPage:{title:"Welcome to Rio!",subtitle:"To get started please fill in your details below to set up an account",emailPlaceholder:"Email",passwordPlaceholder:"Password",confirmPasswordPlaceholder:"Confirm password",nextButtonText:"Next",submitButton:"Imposta password"},detailsPage:{title:"Now tell us more about you",firstName:"First Name",lastName:"Last Name",companyName:"Company Name",personalUse:"This account is for personal use",backButtonText:"Back to credentials",nextButtonText:"Next"},contactPage:{title:"How would we contact you?",jobTitle:"Job Title (Optional)",department:"Department (Optional)",phoneNumber:"Phone Number (Optional)",mobileNumber:"Mobile Number (Optional)",backButtonText:"Back to Profile",finishButtonText:"Finish"}},sidebar:{title:"Account Summary",step1:"About You",step2:"Your Plan",step3:"Your Subscription",trusted:"TRUSTED BY"},main:{title:"Welcome back!",titleV2:"Welcome!",subheading:"Please login to your account.",subheadingV2:"Please login to your account or sign up below",emailPlaceholder:"Email address",emailError:"Please enter a valid email address",passwordPlaceholder:"Password",passwordError:"Please enter a valid password",rememberLabel:"Remember me",loginButton:"Login",loginButtonLoading:"Logging in",loginButtonSSO:"Login with {provider}",userNotFound:"The username and password you entered did not match our records. Please double-check and try again.",incorrectPassword:"Incorrect credentials. Failure to log in 5 times will result in your account being locked.",userDisabled:"Your account has been disabled. Please contact an administrator.",generalError:"Something seems to have gone wrong. Please refresh and try again.",forgotPassword:"Forgot Password",newRioUser:"New to Rio? Register here",providerNotFound:"Provider not found, verify browser url."},setPassword:{title:"Set your password.",subheading:"Please set your new password.",oldPassword:"Temporary password",passwordPlaceholder:"New password",confirmPasswordPlaceholder:"Confirm password",submitButton:"Set password",userNotFound:"User not found. Please refresh and try again.",incorrectPassword:"Incorrect password. Please refresh and try again.",generalError:"Something seems to have gone wrong. Please refresh and try again."},resetPassword:{title:"Reset your password.",subheading:"Please reset your password to continue.",emailPlaceholder:"Email address",codePlaceholder:"Reset code",passwordPlaceholder:"New password",confirmPasswordPlaceholder:"Confirm password",submitButton:"Reset password",buttonSubmitting:"Resetting password",userNotFound:"User not found. Please refresh and try again.",incorrectPassword:"Incorrect password. Please refresh and try again.",confirmationCodeRequired:"Confirmation code is required.",invalidCode:"Invalid code provided, please go back and request a new code.",generalError:"Something seems to have gone wrong. Please refresh and try again.",limitExceeded:"Reset password limit exceeded please try again later.",expiredCode:"Invalid code provided, please go back and request a new code.",noCodeEntered:"Please enter the confirmation code - it can be found in your email.",noUsernameEntered:"Please enter the email of the account for which you have requested a password reset.",passwordsDontMatch:"Passwords do not match."},forgotPassword:{success:{title:"Password reset sent",subheading:"Please check your email for your password reset code"},title:"Forgotten your password?",subheading:"Enter your email below and we'll send you a password reset code",usernamePlaceholder:"Email address",submitButton:"Send Password Reset Code",buttonSubmitting:"Sending Password Reset Code",goToResetButton:"Enter your reset code"},termsAgreement:{termsAgreementText:"I agree to the ",termsLinkText:"Rio AI Ltd Terms of {terms}",service:"Service",use:"Use"},errors:{existAccount:"An account with the given email {email} already exists",changeEmail:"Change Email Address",validation:{missingEmail:"Please provide an email",invalidEmail:"The value you provided is invalid email address",missingPassword:"Please provide a password",confirmPassword:"Please confirm your password",mismatchPassword:"Passwords don't match",passwordPattern:"Password should contain at least 10 characters and shouldn’t contain leading and trailing white-spaces",companyName:"Please provide a company name",firstName:"Please provide your first name",lastName:"Please provide your last name"}}},sidebar:{homepage:"Home",learn:"Engage",governance:"Governance",data:"Data",surveys:"Surveys",reporting:"Reporting",documents:"Documents",intelligence:"Intelligence",flows:"Flows",configuration:"Configuration",tasks:"Tasks",support:"Support"},role:{SYSADMIN:"System Admin",BUSINESSADMIN:"Business Admin",BUSINESS:"Business User"},pages:{support:{contactInformation:"Contact information",header:"Send us a message",fullName:"Full name",companyName:"Company name",phoneNumber:"PhoneNumber",enquiryQuestion:"What is your enquiry about?",enquiry:"Enquiry",enquirySelectPlaceholder:"Please choose",enquiryPlaceholder:"Please type your message here...",send:"Send Enquiry",banner:{header:"Have you got a question?",message:"Head over to our support page {Link} for tips, advice, and answers to frequently asked questions.",link:"here"}},home:{welcome:"Welcome [FIRSTNAME], here's a few suggestions...",guidanceText:" ",dashboard:{learn:"Engage",governance:"Governance",analyse:"Analyse"},engageTasksStatuses:{incomplete:"Incomplete",completed:"Completed"}},learn:{heading:"Engage",breadcrumbs:{one:"Engage",two:"Courses"},banners:{explore:"Explore",continue:"Continue",completed:"Completed"},viewLink:"View All ({amount} Courses)"},coursesPreview:{breadcrumbs:{one:"Engage",two:"Course preview",three:"Learn"},backToEngage:"Back to Engage",backToLearn:"Back to Learn",startCourse:"Start course",statuses:{embed:{inprogress:"You have started this course."}},relatedCourses:"Related couses",noResults:"No related content found. This course is one of a kind; explore more subject areas from the Learn Homepage."},surveys:{nav:{heading:"Surveys"},subjects:{surveysSent:"Surveys sent",contributors:"Contributors",surveys:"All surveys",overview:"Overview",surveysReceived:"Surveys received",received:"Received"}},governance:{heading:"Governance",breadcrumbs:{one:"Governance",two:"Areas"},permissionsProblem:"Currently Governance is not included in your subscription, if you’d like to use this tool to assess your compliance risk, upload evidence and get automated alerts please contact Rio AI Ltd or your Rio Business Admin."},data:{heading:"Data",breadcrumbs:{one:"Data",two:"Subjects"},subjects:{wasteAlias:"Waste and Waste Locations",waste:"Waste",electricity:"Electricity",gas:"Natural Gas",fuel:"Fuel",water:"Water",materials:"Materials",refrigerants:"Refrigerants and Other Gases",heatSteam:"Heat and Steam",transport:"Transport",safety:"Health and Safety",employees:"Employees",engagement:"Community and Customer Engagement",ethics:"Business Ethics",biodiversity:"Biodiversity",buildingEnergyRatings:"Building Energy Ratings",hotelStays:"Hotel Stays & Home Working",location:"Location",overview:"Overview",investment:"Investment Transactions",fundsAssets:"Funds & Assets",oilProduction:"Production",salesData:"Sales Data",liquidFuels:"Liquid Fuels",emissionsDatabase:"Emissions Database",coreEstate:"Estates Configuration",oilAndGas:"Oil and Gas",inSiteContracts:"Contracts",inSiteBuildings:"Buildings",inSiteLandParcels:"Land Parcels"},overview:{upgrade:"Upgrade",collect:"COLLECT",about:"About Data Collection",dataCollection:"Data Collection",dataNotifications:"Data notifications",dataCompleteness:"Data completeness",dataQuality:"Data quality",missingTransactions:"Missing data and empty transactions",pendingTransactions:"transactions are pending and require approval",upload:"Upload",uploadHeader:"Quick Data Uploads",uploadText:"Uploading actual sustainability data is the best way to assess your impact",utilities:"Utilities",latestTransactions:"Latest transactions",utilityCol:"Utility",locationCol:"Location/Supplier",dateCol:"Date",uploadedCol:"Uploaded",accept:"Accept",acceptFiltered:"Accept Filtered",acceptInfo:"This clears the items from this section",clear:"This clears all selected filters",selectAll:"This selects all options on the current page",deselectAll:"This deselects all options on the current page",selectAllButtonText:"Select all",deselectAllButtonText:"Deselect all",clearButtonText:"Clear filters",confirmationDialog:{title:"Are you sure you want to accept and clear these items?",agree:"Yes, accept",disagree:"No, keep these visible"}}},reporting:{heading:"Reporting",breadcrumbs:{one:"Reporting",two:"Reports"}},intelligence:{heading:"Knowledge Bases",breadcrumbs:{one:"Intelligence",two:"Knowledge Bases"}},documents:{heading:"Documents",breadcrumbs:{one:"Documents",two:"Libraries"}},configuration:{account:{sections:{data:{name:"Data",buildingEnergyRatings:"Building Energy Ratings",electricity:"Electricity",fuel:"Fuel",gas:"Gas",heatSteam:"Heat & Steam",hotelStays:"Hotel Stays",materials:"Materials",refrigerants:"Refrigerants",transport:"Transport",waste:"Waste",water:"Water",investment:"Investment Transactions",scope3ActivityBasedMaterials:"Activity Based Materials",scope3SpendBasedMaterials:"Spend Based Materials",oilProduction:"Production",salesData:"Sales Data",liquidFuels:"Liquid Fuels",emissionsDatabase:"Emissions Database",coreEstate:"Estates Configuration",oilAndGas:"Oil and Gas",insite:"InSite Estate"},governance:{name:"Governance",agreements:"Agreements",frameworks:"Frameworks",legislation:"Legislation",policies:"Policies",systems:"Systems",tagLevelLegislation:"Tag Level Legislation",targets:"Targets"},other:{name:"Other",chatBot:"Chat Bot",dromoUpload:"Intelligent Upload",v2Design:"New Design",dataOverwriting:"Data Overwriting",dataTracker:"Data Tracker",engage:"Engage",flows:"Flows",intelligence:"RioBot",projects:"Projects",surveys:"Surveys",tasks:"Tasks",organisation:"Organisation"}}},nav:{heading:"Configuration",accounts:"Accounts",contractors:"Contractors",dashboards:{list:"Dashboards",subscriptions:"Dashboard Subscriptions"},meters:"Meters",learnContent:"Engage Content",learnSubscriptions:"Engage Subscriptions",evaluations:"Engage Evaluations",locations:"Locations",suppliers:"Suppliers",tags:"Tags",users:"Users",wasteStreams:"Streams",wasteHierarchies:"Waste Hierarchies",carbonConversionFactors:"Emission Factors",locationBased:"Location Based",marketBased:"Market Based",containerTypes:"Container Types",normalisers:"Normalisers",aliases:"Aliases",others:"Others",schemes:"Schemes",formTemplates:"Templates",formSubscriptions:"Template Subscriptions",questionsCategories:"Question Categories",questions:"Questions",flows:{configuration:"Configuration",subscriptions:"Subscriptions"},assetManagement:"Assets",funds:"Funds",engageBanners:"Engage Banners"},dataTracker:{container:{add:"+ Add Data Tracker Configuration",header:{anomaly:"Anomalies Thresholds",missing:"Frequency & Recurrence"}},modal:{account:"Account",supplier:"Supplier",thresholdPercentage:"Threshold Percentage",utilityType:"Utility Type (optional)",frequency:"Frequency",recurrence:"Recurrence",locations:"Locations (optional)",meters:"Meters (optional)",create:"Create",update:"Update",createHeader:"Create Data Tracker Configuration",updateHeader:"Update Data Tracker Configuration"}}},task:{grid:{header:{task:"Task",category:"Category",subject:"Subject",item:"Item",owners:"Owners",creator:"Creator",date:"Due Date",completedDate:"Completion Date",link:"Go To Task",project:"Project"},column:{emptyOwners:"Unassigned"}},details:{name:"Task Name",description:"Description",creator:"Creator",createdAt:"Created at",impact:"Scope of Area Project Is Impacting",locations:"Location(s)",priority:"Priority",category:"Category",scope:"Scope",owner:"Owners",relatedItem:"Related item",tags:"Tags",isCompleted:"Completed",completedAt:"Completion Date",subject:"Subject",dueDate:"Due Date",project:"Project",save:"Save",cancel:"Cancel",delete:"Delete",evidence:"Evidence",status:"Status",incomplete:"Incomplete",completed:"Completed"}},project:{grid:{header:{name:"Project name",impact:"Impact",description:"Description",locations:"Locations",category:"Category",scheme:"Scheme",meters:"Meters",owners:"Owners",cost:"Project cost",implementationDate:"Date of implementation",baselineDate:"Baseline year",benefitsDate:"Date for benefits to be realised",plannedBenefit:"Total planned benefit vs baseline year CONSUMPTION",plannedCostChange:"Total planned cost saving v baseline year COST",plannedCO2eChange:"Total planned carbon saving v baseline year CARBON",frequency:"Milestone frequency",notes:"Notes",evidence:"Evidence",action:"Action"},value:{emptyOwners:"Unassigned"}},create:{header:"Create New Project",submit:"Submit"},details:{name:"Project Name",description:"Description",impact:"Scope of Area Project Is Impacting",locations:"Location(s)",priority:"Priority",meters:"Meters",category:"Category",scheme:"Scheme",owner:"Owners",cost:"Project Cost (£)",currency:"Currency",startDate:"Implementation Date (Start Date)",endDate:"Date for planned benefits to be achieved (End Date)",baselineStartDate:"Baseline Year Start Date",plannedBenefit:"Planned Action (Consumption)",plannedBenefitGeneration:"Planned Action (Generation kwh)",plannedCarbonChange:"Planned Benefit (Carbon)",plannedCostChange:"Planned Benefit (Cost Saved)",frequency:"Milestone Frequency",tasks:"Tasks",addNewTask:"Add new task",save:"Save",cancel:"Cancel",delete:"Delete",noTasks:"There are no tasks for this project.",evidence:"Evidence"},messages:{created:"Project has been created.",error:"Something went wrong! Please try again later."}},dataAnomalies:{transactionTypes:{ELECTRICITY:"Electricity",FUEL:"Fuel",GAS:"Gas",MATERIALS:"Materials",TRANSPORT:"Transport",WASTE:"Waste",WATER:"Water",HOTELSTAYS:"Hotel stays",HEATSTEAM:"Heat & steam",ElectricityDataAnomaly:"Electricity",FuelDataAnomaly:"Fuel",GasDataAnomaly:"Gas",MaterialDataAnomaly:"Materials",TransportDataAnomaly:"Transport",WasteDataAnomaly:"Waste",WaterDataAnomaly:"Water",HotelStayDataAnomaly:"Hotel stays",HeatAndSteamDataAnomaly:"Heat & steam",RefrigerantDataAnomaly:"Refrigerants"}}},profile:{editProfilePicture:"Edit Profile Picture",firstName:"First name",lastName:"Last name",jobTitle:"Job title (optional)",department:"Department (optional)",phoneNumber:"Phone number (optional)",mobileNumber:"Mobile number (optional)",emailAddress:"Email address",update:"Update",userHaveBeenUpdated:"User details have been updated."},components:{selectPlaceholder:"Select..."},learnTour:{next:"Next",skip:"Skip",close:"Got it!",back:"Back",letsGo:"Let's go!",preview:{item1:{title:"And begin...",content:"Click start and enjoy…"}},home:{item1:{title:"Welcome {name},",content:"Make the world sustainable with Rio. Let’s show you how…"}},explore:{item1:{title:"Keep learning",content:"Explore our expert-authored sustainability content"},item2:{title:"See more",content:"Click the tile to understand the course"}}}},"it-IT":{home:{title:"Registrato in home page",subtitle:"Questo è un semplice testo localizzato",lastCommit:"Ultimo commit {commitId} da {autore} a {timestamp}",logoutButtonLabel:"Log out",myProfile:"Il mio profilo",contact:"Contattaci",search:"Cerca"},marketingHome:{title:"Registrati home page",loginButtonLabel:"Log in"},login:{registration:{mainPage:{title:"Benvenuto su Rio!",subtitle:"Per cominciare, per favore compila i campi sottostanti per creare un account",emailPlaceholder:"Email",passwordPlaceholder:"Password",confirmPasswordPlaceholder:"Conferma la password",nextButtonText:"Successivo",submitButton:"Imposta password"},detailsPage:{title:"Ora dicci di più su di te",firstName:"Nome",lastName:"Cognome",companyName:"Azienda",personalUse:"Questo account è per uso personale",backButtonText:"Torna alle credenziali",nextButtonText:"Successivo"},contactPage:{title:"Come possiamo contattarti?",jobTitle:"Professione (opzionale)",department:"Settore (opzionale)",phoneNumber:"Telefono fisso (opzionale)",mobileNumber:"Cellulare (opzionale)",backButtonText:"Torna al profilo",finishButtonText:"Termina"}},sidebar:{title:"Riepilogo Account",step1:"Su di Te",step2:"il Tuo Piano",step3:"il Tuo Abbonamento",trusted:"di FIDUCIA DA"},main:{title:"Bentornato!",subheading:"Si prega di accedere al tuo account.",emailPlaceholder:"Indirizzo email",emailError:"si Prega di inserire un indirizzo email valido",passwordPlaceholder:"Password",passwordError:"inserire una password valida",rememberLabel:"Ricordati di me",loginButton:"Login",loginButtonLoading:"Attendi",loginButtonSSO:"Login with {provider}",userNotFound:"Il nome utente e la password che hai inserito non corrispondono. Si prega di controllare e provare di nuovo.",incorrectPassword:"Le credenziali inserite non sono corrette. Dopo 5 tentativi falliti, il tuo account sarà sospeso.",userDisabled:"Your account è stato disabilitato. Si prega di contattare un administrator.",generalError:"Something sembra essere andato storto. Si prega di aggiornare e provare di nuovo.",forgotPassword:"Password dimenticata",newRioUser:"Nuovo utente? Registrati qui",providerNotFound:"Provider not found, verify browser url."},setPassword:{title:"Cambia la tua password.",subheading:"Per cortesia, imposta la tua nuova password.",oldPassword:"Password temporanea",passwordPlaceholder:"Nuova password",confirmPasswordPlaceholder:"Conferma password",submitButton:"Imposta password",userNotFound:"Utente non trovato. Si prega di aggiornare e provare again.",incorrectPassword:"Password errata. Si prega di aggiornare e provare again.",generalError:"Something sembra essere andato storto. Si prega di aggiornare e provare di nuovo."},resetPassword:{title:"Reimpostare la password.",subheading:"Reimposta la password per continuare.",emailPlaceholder:"Indirizzo email",codePlaceholder:"codice di Reset",passwordPlaceholder:"Nuova password",confirmPasswordPlaceholder:"Conferma password",submitButton:"Resetta la password",buttonSubmitting:"Attendi",userNotFound:"Utente non trovato. Si prega di aggiornare e riprovare.",incorrectPassword:"Password errata. Si prega di aggiornare e provare again.",confirmationCodeRequired:"È richiesto il codice di conferma.",invalidCode:"È stato fornito un codice non valido, torna indietro e richiedi un nuovo codice.",generalError:"Something sembra essere andato storto. Si prega di aggiornare e provare di nuovo.",limitExceeded:"Limite superato, riprova più tardi.",expiredCode:"È stato fornito un codice non valido, torna indietro e richiedi un nuovo codice.",noCodeEntered:"Inserisci il codice di conferma: puoi trovarlo nella tua email.",noUsernameEntered:"Inserisci l'e-mail dell'account per il quale hai richiesto la reimpostazione della password.",passwordsDontMatch:"Le passwords non corrispondono."},forgotPassword:{success:{title:"Reimpostazione della Password inviata",subheading:"per Favore controlla la tua e-mail per la reimpostazione della password codice"},title:"Hai dimenticato la password?",subheading:"Inserisci la tua mail qui e ti invieremo un codice per reimpostarla.",usernamePlaceholder:"Indirizzo email",submitButton:"Invia codice",buttonSubmitting:"Attendi",goToResetButton:"Inserisci il tuo codice di reset"},termsAgreement:{termsAgreementText:"Accetto i ",termsLinkText:"Termini di {terms} di Rio AI Ltd",service:"servizio",use:"utilizzo"},errors:{existAccount:"Esiste già un account associato alla mail {email}",changeEmail:"Cambia indirizzo email",validation:{missingEmail:"Inserisci un indirizzo email",invalidEmail:"L’indirizzo che hai inserito non è valido",missingPassword:"Inserisci una password",confirmPassword:"Conferma la tua password",mismatchPassword:"Le password non corrispondono",passwordPattern:"La password deve contenere almeno 10 caratteri e non devono esserci spazi vuoti",companyName:"Inserisci il nome dell’azienda",firstName:"Inserisci il tuo nome",lastName:"Inserisci il tuo cognome"}}},sidebar:{homepage:"Home",learn:"Formazione",governance:"Conformità",data:"Dati",surveys:"Sondaggi",reporting:"Report",documents:"Archivio",intelligence:"Consulente IA",flows:"Flussi",configuration:"Configurazione",tasks:"Compiti",support:"Supporto"},role:{SYSADMIN:"Sistema Admin",BUSINESSADMIN:"Business Admin",BUSINESS:"Utente Aziendale"},pages:{support:{contactInformation:"Informazioni di contatto",header:"Inviaci un messaggio",fullName:"Nome",companyName:"Azienda",phoneNumber:"Telefono",enquiryQuestion:"Cosa riguarda la tua richiesta?",enquiry:"Richiesta",enquirySelectPlaceholder:"Per favore, scegli",enquiryPlaceholder:"Digita il tuo messaggio...",send:"Invia richiesta",banner:{header:"Ti serve aiuto?",message:"Controlla la nostra {Link} per consigli e FAQ (in inglese).",link:"pagina di supporto"}},home:{welcome:"Benvenuto [FIRSTNAME], ecco un paio di suggerimenti...",guidanceText:"Clicca su «Formazione» nel menu a sinistra per vedere tutti i corsi disponibili.",dashboard:{learn:"Imparare",governance:"Rispettare",analyse:"Analizzare"},engageTasksStatuses:{incomplete:"Non completato",completed:"Completato"}},learn:{heading:"Formazione",breadcrumbs:{one:"Formazione",two:"Corsi"},banners:{explore:"Esplora",continue:"Continua",completed:"Completato"},viewLink:"Vedi tutti ({amount} corsi)"},coursesPreview:{breadcrumbs:{one:"Formazione",two:"Anteprima del corso"},backToEngage:"Torna alla pagina Formazione",startCourse:"Inizia il corso",statuses:{embed:{inprogress:"Hai già iniziato questo corso."}},relatedCourses:"Corsi correlati",noResults:"Non ci sono contenuti correlati. Esplora altri argomenti dalla pagina Formazione"},governance:{heading:"Libreria",breadcrumbs:{one:"Rispettare",two:"Libreria"}},surveys:{nav:{heading:"Sondaggi"},subjects:{surveysSent:"Sondaggi inviati",contributors:"Contributori",surveys:"Tutti i sondaggi",overview:"Panoramica",surveysReceived:"Sondaggi ricevute",received:"Ricevute"}},data:{heading:"Dati",breadcrumbs:{one:"Dati",two:"Soggetti"},subjects:{wasteAlias:"Rifiuti e luoghi dei rifiuti",waste:"Rifiuti",electricity:"Elettricità",gas:"Gas",fuel:"Carburante",water:"Acqua",materials:"Materiali",transport:"Trasporto",refrigerants:"Refrigeranti",heatSteam:"Calore e Vapore",buildingEnergyRatings:"Classificazioni energetiche degli edifici",hotelStays:"Soggiorni in hotel e lavoro a domicilio",location:"Posizione",overview:"Panoramica",investment:"Transazioni di investimento",fundsAssets:"Fondi e Asset",salesData:"Dati di Vendita",liquidFuels:"Combustibili Liquidi",coreEstate:"Estates Configuration",oilAndGas:"Petrolio e Gas",insiteContracts:"Contracts",inSiteBuildings:"Buildings",inSiteLandParcels:"Land Parcels"},overview:{upgrade:"Aggiornamento",collect:"RACCOGLIERE",about:"Informazioni sulla raccolta dei dati",dataCollection:"Raccolta Dati",dataNotifications:"Notifiche dei dati",dataCompleteness:"Completezza dei dati",dataQuality:"Qualità dei dati",missingTransactions:"Dati mancanti e transazioni vuote",pendingTransactions:"transazioni sono in sospeso e richiedono l'approvazione'",upload:"Caricamento",uploadHeader:"Caricamenti rapidi dei dati",uploadText:"Caricare dati reali sulla sostenibilità è il modo migliore per valutare il tuo impatto",utilities:"Utilità",latestTransactions:"Ultime transazioni",utilityCol:"Utilità",locationCol:"Posizione/Fornitore",dateCol:"Data",uploadedCol:"Caricato",accept:"Accettare",acceptFiltered:"Accettare Filtrato",acceptInfo:"Questo cancella gli elementi da questa sezione",clear:"Questo cancella tutti i filtri selezionati",deselectAll:"Ciò deseleziona tutte le opzioni nella pagina corrente",deselectAllButtonText:"Deselezionare tutto",clearButtonText:"Filtri chiari",confirmationDialog:{title:"Sei sicuro di voler accettare e cancellare questi elementi?",agree:"Sì, accetta",disagree:"No, tienili visibili"}}},reporting:{heading:"Segnalazione",breadcrumbs:{one:"Segnalazione",two:"Rapporti"}},intelligence:{heading:"Le Basi Di Conoscenza",breadcrumbs:{one:"Intelligenza",two:"Basi di Conoscenza"}},documents:{heading:"Libreria",breadcrumbs:{one:"Documenti",two:"Libreria"}},configuration:{account:{sections:{data:{name:"Dati",buildingEnergyRatings:"Classificazione energetica dell'edificio",electricity:"Elettricità",fuel:"Carburante",gas:"Gas",heatSteam:"Calore e vapore",hotelStays:"Soggiorni in hotel",materials:"Materiali",refrigerants:"Refrigeranti",transport:"Trasporto",waste:"Rifiuti",water:"Acqua",investment:"Transazioni di investimento",salesData:"Dati di Vendita",liquidFuels:"Combustibili Liquidi",emissionsDatabase:"Database delle Emissioni",coreEstate:"Estates Configuration",oilAndGas:"Petrolio e Gas",insite:"InSite Estate"},governance:{name:"Governance",agreements:"Accordi",frameworks:"Quadri",legislation:"Legislazione",policies:"Politiche",systems:"Sistemi",tagLevelLegislation:"Legislazione a livello di tag",targets:"Obiettivi"},other:{name:"Altro",chatBot:"Bot di chat",dromoUpload:"Dromo Caricamento",dataOverwriting:"Sovrascrittura dei dati",dataTracker:"Localizzatore di dati",engage:"Coinvolgere",flows:"Flussi",intelligence:"Intelligenza",projects:"Progetti",surveys:"Sondaggi",tasks:"Attività",organisation:"Organizzazione"}}},nav:{heading:"Configurazione",accounts:"Acconto",dataTrackerConfig:{missingThresholds:"Soglie mancanti",anomaliesThresholds:"Soglie di anomalie"},contractors:"Appaltatori",dashboards:"Cruscotti",dashboardSubscriptions:"Cruscotto Abbonamenti",meters:"Contatori Di Energia",learnContent:"Imparare Contenuti",learnSubscriptions:"Imparare Abbonamenti",evaluations:"Valutazioni",locations:"Posizioni",suppliers:"Fornitori",tags:"Etichetta",users:"Utenti",wasteStreams:"Flussi Di Rifiuti",wasteHierarchies:"Rifiuti Gerarchie",carbonConversionFactors:"Fattori di conversione del carbonio",marketBased:"Basato sulla mercato",locationBased:"Basato sulla posizione",containerTypes:"Tipi di container",others:"Altri",schemes:"Schemi",formTemplates:"Modelli di modulo",formSubscriptions:"Sottoscrizioni di moduli",questionsCategories:"Categorie di domande",questions:"domande",flows:{configuration:"Configurazione",subscriptions:"Sottoscriziones"},assetManagement:"Risorse",funds:"Fondi",engageBanners:"Striscioni"},dataTracker:{container:{add:"+ Aggiungi configurazione Data Tracker",header:"Data Tracker"},modal:{account:"Account",thresholdPercentage:"Percentuale di soglia",supplier:"Fornitore",frequency:"Frequenza traguardo",recurrence:"Ricorrenza",locations:"Località/i (opzionale)",meters:"Meters (opzionale)",create:"Creare",update:"Aggiorna",createHeader:"Crea configurazione Data Tracker",updateHeader:"Aggiorna configurazione Data Tracker"}}},task:{grid:{header:{task:"Compito",category:"Categoria",subject:"Soggetto",item:"Oggetto oggetto",owners:"Assegnatari",creator:"Creatore",date:"Scadenza",completedDate:"Data di completamento",link:"Vai all'attività",project:"Progetto"},column:{emptyOwners:"Non assegnato"}},details:{name:"Nome Compito",description:"Descrizione",creator:"Creatore",createdAt:"Creato a",impact:"L'ambito del progetto dell'area sta avendo un impatto",locations:"Località/i",priority:"Priorità",meters:"Contatori Di Energia",category:"Categoria",scope:"Scopo",owner:"Proprietari",relatedItem:"Related item",tags:"Etichetta",isCompleted:"Completato",completedAt:"Data di completamento",subject:"Soggetto",dueDate:"Scadenza",project:"Progetto",save:"Salva",delete:"Elimina",cancel:"Cancellare",evidence:"Evidenza",status:"Stato",incomplete:"Non completato",completed:"Completato"}},project:{grid:{header:{name:"Nome del progetto",impact:"Impatto",description:"Descrizione",locations:"Località",category:"Categoria",scheme:"Schema",meters:"Сontatori",owners:"Proprietari",cost:"Costo del progetto",implementationDate:"Data di attuazione",baselineDate:"Anno di riferimento",benefitsDate:"Data di realizzazione dei benefici",plannedBenefit:"Beneficio pianificato totale rispetto al CONSUMO dell'anno di riferimento",plannedCostChange:"Risparmio sui costi pianificato totale rispetto al COST dell'anno di riferimento",plannedCO2eChange:"Risparmio di carbonio totale pianificato rispetto all'anno di riferimento CARBONIO",frequency:"Frequenza traguardo",notes:"Note",evidence:"Prove",action:"Azione"},value:{emptyOwners:"Non assegnato"}},create:{header:"Crea nuovo Progetto",submit:"Invia"},details:{name:"Nome Progetto",description:"Descrizione",impact:"L'ambito del progetto dell'area sta avendo un impatto",locations:"Località/i",priority:"Priorità",category:"Categoria",scheme:"Schema",owner:"Proprietari",cost:"Progetto Costo (£)",currency:"Valuta",startDate:"Data di implementazione (data di inizio)",endDate:"Data per il raggiungimento dei benefici pianificati (Data di fine)",baselineStartDate:"Data di inizio dell'anno di riferimento",plannedBenefit:"Azione pianificata (consumo)",plannedBenefitGeneration:"Azione pianificata (Generazione kwh)",plannedCarbonChange:"Benefit previsto (carbonio)",plannedCostChange:"Vantaggio pianificato (costo risparmiato)",frequency:"Frequenza del traguardo",tasks:"Compiti",addNewTask:"Aggiungi una nuova attività",save:"Salva",delete:"Elimina",cancel:"Cancellare",noTasks:"Non ci sono azioni relative a questo progetto.",evidence:"Evidenza"},messages:{created:"Il progetto è stato creato.",error:"Qualcosa è andato storto! Per favore riprova più tardi."}},dataAnomalies:{transactionTypes:{ELECTRICITY:"Elettricità",FUEL:"Carburante",GAS:"Gas",MATERIALS:"Materiali",TRANSPORT:"Trasporto",WASTE:"Rifiuti",WATER:"Acqua",HOTELSTAYS:"Soggiorni in hotel e lavoro a domicilio",HEATSTEAM:"Calore e vapore",ElectricityDataAnomaly:"Elettricità",FuelDataAnomaly:"Carburante",GasDataAnomaly:"Gas",MaterialDataAnomaly:"Materiali",TransportDataAnomaly:"Trasporto",WasteDataAnomaly:"Rifiuti",WaterDataAnomaly:"Acqua",HotelStayDataAnomaly:"Soggiorni in hotel e lavoro a domicilio",HeatAndSteamDataAnomaly:"Calore e vapore",RefrigerantDataAnomaly:"Refrigeranti"}}},profile:{editProfilePicture:"Modifica immagine del profilo",firstName:"Nome",lastName:"Cognome",jobTitle:"Titolo professionale (opzionale)",department:"Settore (opzionale)",phoneNumber:"Telefono (opzionale)",mobileNumber:"Cellulare (opzionale)",emailAddress:"Indirizzo  email",update:"Aggiorna",userHaveBeenUpdated:"Dati del'utente aggiornati con successo."},components:{selectPlaceholder:"Seleciona"},learnTour:{next:"Successivo",skip:"Salta",close:"Ho capito!",back:"Indietro",letsGo:"Andiamo!",preview:{item1:{title:"Inizia…",content:"Clicca su Inizia il Corso, e buon proseguimento!"}},home:{item1:{title:"Benvenuto {name},",content:"Rendi il mondo più sostenibile con Rio. Ecco come…"}},explore:{item1:{title:"Continua ad imparare",content:"Esplora i nostri contenuti realizzati da persone esperte in sostenibilità"},item2:{title:"Scopri di più",content:"Clicca il titolo per saperne di più"}}}}},mQe=e=>{let{children:n}=e;const t=(0,m.zy)(),a=Qe();return(0,g.useLayoutEffect)(()=>{const e=t.pathname.split("/").map(e=>(0,hn.startCase)(e.toString().toLowerCase())),n=e.length>1?e[1]:"",i=e.length>2?e[2]:"",l=a?i:n;document.title="Rio AI "+(l?`- ${l}`:"")},[t,a]),(0,fe.jsx)(g.Fragment,{children:n})};var fQe=t(45688);const yQe={auth:{clientId:De("REACT_APP_AZURE_SSO_APP_ID"),authority:"https://login.microsoftonline.com/common"}};function gQe(e){e instanceof Error&&"code"in e&&e.code===lQe.lo.MISSING_TRANSLATION||console.error(e)}const hQe=e=>{let{children:n}=e;const t=navigator.languages&&navigator.languages[0]||navigator.languages||navigator.language||"en-GB",a=Je(),i=Nt===a||At===a?"it-IT":t,l=pQe[i]?pQe[i]:pQe["en-US"],r=pQe[i]?t:"en-US";return(0,fe.jsx)(rQe.A,{onError:gQe,locale:r,messages:Gi(l),children:n},r)},xQe=new fQe.vq(yQe),TQe=()=>(0,fe.jsx)(le.ThemeProvider,{theme:ie.t6,children:(0,fe.jsx)(f.ThemeProvider,{children:(0,fe.jsx)(aQe.X,{client:aq,children:(0,fe.jsx)(kKe.r7,{instance:xQe,children:(0,fe.jsx)(Jee.c4,{apiKey:Yee.apiKey,children:(0,fe.jsx)(hQe,{children:(0,fe.jsx)(nn,{children:(0,fe.jsx)(oQe,{children:(0,fe.jsx)(GCe,{children:(0,fe.jsx)(Gr.QueryParamProvider,{adapter:iQe.S,children:(0,fe.jsx)(mQe,{children:(0,fe.jsx)(uQe,{children:(0,fe.jsxs)(Xre,{children:[(0,fe.jsx)(m.sv,{})," ",(0,fe.jsx)(p.ScrollRestoration,{})]})})})})})})})})})})})})}),bQe=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>{const a=(0,m.zy)();return(0,g.useEffect)(()=>{return e=a.pathname,s.Ay.set({page:e,...n}),void s.Ay.pageview(e);var e},[a.pathname]),(0,fe.jsx)(e,{...t})}},vQe=bQe(e=>{let{component:n}=e;const{token:t,loading:a}=qe(),i=(0,m.zy)();if(a)return null;if(t){const e=i.pathname.startsWith("/v2/")?"/v2/":"/";return(0,fe.jsx)(m.C5,{to:i?.state?.from||e})}return(0,fe.jsx)(n,{})}),CQe=bQe(e=>{let{component:n,redirectUrl:t}=e;const{token:a,loading:i}=qe(),l=(0,m.zy)();return(0,g.useMemo)(()=>i?null:a?(0,fe.jsx)(n,{}):(0,fe.jsx)(m.C5,{to:t,state:{from:l}}),[i,a,t,l,n])}),kQe=(0,p.createBrowserRouter)((0,m.Eu)((0,fe.jsxs)(m.qh,{element:(0,fe.jsx)(TQe,{}),children:[(0,fe.jsx)(m.qh,{path:rr.registration.verify,element:(0,fe.jsx)(vQe,{component:sc}),errorElement:(0,fe.jsx)(Cu,{})}),(0,fe.jsx)(m.qh,{path:`${rr.registration.verify}/:code`,element:(0,fe.jsx)(vQe,{component:sc}),errorElement:(0,fe.jsx)(Cu,{})}),(0,fe.jsx)(m.qh,{path:rr.registration.setPassword,element:(0,fe.jsx)(vQe,{component:function(){const e=(0,dc.A)(),n=((e,n)=>{if(!n)return"";const t=(e=>{const n=e.replace("?","").split("&"),t=[];for(let e=0;e<n.length;e++){const a=n[e].split("=");t[e]={key:a[0],value:a[1]}}return t})(n);for(let e=0;e<t.length;e++)if("email"===t[e].key)return t[e].value})(0,(0,m.zy)().search),[t,a]=(0,g.useState)({email:decodeURIComponent(n||""),oldPassword:{value:"",error:null},password1:{value:"",error:null},password2:{value:"",error:null},terms:{use:!1,service:!1}}),i=e=>{a(n=>({...n,[e.target.name]:{...n[e.target.name],value:e.target.value}}))},[l,{loading:r}]=(0,ln.n)(j),{data:{loginError:o}}=(0,x.IT)(R);return(0,fe.jsx)(yc,{children:"NotAuthorizedException"===o?(0,fe.jsx)(mc,{email:t.email}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(fc,{titleId:"login.setPassword.title",subtitleId:"login.setPassword.subheading"}),(0,fe.jsxs)(gc,{name:"set-password__form",onSubmit:e=>((e,n)=>{if(e.preventDefault(),!t.oldPassword.value)return a(e=>({...e,oldPassword:{...e.oldPassword,error:"Please enter temporary password (Check email)."}}));const i=t.password1.value;if(i!==t.password2.value)return a(e=>({...e,password2:{...e.password2,error:"Passwords do not match"}}));const l=cc(i);if(l)return a(e=>({...e,password1:{...e.password1,error:l},password2:{...e.password2,error:null}}));a(e=>{let{password1:n,password2:t,...a}=e;return{...a,password1:{...n,error:null},password2:{...t,error:null}}}),n({variables:{email:t.email,oldPassword:t.oldPassword.value,password:t.password1.value}})})(e,l),children:[(0,fe.jsx)(hc,{children:(0,fe.jsx)(f.TextField,{type:"text",value:t.email,disabled:!0,label:"Email",required:!0})}),(0,fe.jsx)(hc,{children:(0,fe.jsx)(f.TextField,{name:"oldPassword",error:!!t.oldPassword.error,placeholder:e.formatMessage({id:"login.setPassword.oldPassword"}),label:e.formatMessage({id:"login.setPassword.oldPassword"}),value:t.oldPassword.value,helperText:t.oldPassword.error&&e.formatMessage({id:t.oldPassword.error}),onChange:i,type:"password",required:!0})}),(0,fe.jsx)(hc,{children:(0,fe.jsx)(f.TextField,{name:"password1",error:!!t.password1.error,placeholder:e.formatMessage({id:"login.setPassword.passwordPlaceholder"}),label:e.formatMessage({id:"login.setPassword.passwordPlaceholder"}),value:t.password1.value,onChange:i,helperText:t.password1.error&&e.formatMessage({id:t.password1.error}),type:"password",required:!0})}),(0,fe.jsx)(hc,{children:(0,fe.jsx)(f.TextField,{name:"password2",error:!!t.password2.error,placeholder:e.formatMessage({id:"login.setPassword.confirmPasswordPlaceholder"}),label:e.formatMessage({id:"login.setPassword.confirmPasswordPlaceholder"}),value:t.password2.value,onChange:i,helperText:t.password2.error&&e.formatMessage({id:t.password2.error}),type:"password",required:!0})}),(0,fe.jsxs)(hc,{children:[(0,fe.jsx)(Sc,{terms:"service",termsAgreement:t.terms.service,onChange:()=>a(e=>({...e,terms:{use:e.terms.use,service:!e.terms.service}}))}),(0,fe.jsx)("br",{}),(0,fe.jsx)(Sc,{terms:"use",termsAgreement:t.terms.use,onChange:()=>a(e=>({...e,terms:{use:!e.terms.use,service:e.terms.service}}))})]}),(0,fe.jsx)(hc,{children:(0,fe.jsx)(bc,{titleId:"login.setPassword.submitButton",disabled:!(t.terms.service&&t.terms.use)||r,loading:r,name:"set-password-container__button"})})]}),o&&(0,fe.jsx)(Cc,{messageId:Nc(o)})]})})}}),errorElement:(0,fe.jsx)(Cu,{})}),(0,fe.jsx)(m.qh,{path:rr.registration.resetPassword,element:(0,fe.jsx)(vQe,{component:()=>{const e=(0,m.zy)(),n=(0,g.useMemo)(()=>{const n=new URLSearchParams(e.search);return{username:n.get("username")??"",code:n.get("code")??""}},[e]),t=(0,dc.A)(),{state:a,loading:i,handleChange:l,handleResetPassword:r,loginError:o}=function(e,n){const[t,a]=(0,g.useState)({password1:{value:"",error:null,success:null},password2:{value:"",error:null,success:null},username:{value:e,error:null,success:null},confirmationCode:{value:n,error:null,success:null}}),[i,l]=(0,ln.n)(L),[r,o]=(0,g.useState)(null),[s,d]=(0,g.useState)(!1),c=(0,dc.A)(),u=(0,g.useCallback)((e,n,t,i)=>{if(0===e.length)return a(e=>({...e,username:{...e.username,error:c.formatMessage({id:"login.resetPassword.noUsernameEntered"})}})),!1;if(0===n.length)return a(e=>({...e,confirmationCode:{...e.confirmationCode,error:c.formatMessage({id:"login.resetPassword.noCodeEntered"})}})),!1;if(t!==i)return a(e=>({...e,password2:{...e.password2,error:c.formatMessage({id:"login.resetPassword.passwordsDontMatch"})}})),!1;const l=cc(t);return!l||(a(e=>({...e,password1:{...e.password1,error:l},password2:{...e.password2,error:null}})),!1)},[a,c]),p=(0,g.useCallback)(e=>{a(n=>({...n,[e.target.name]:{...n[e.target.name],value:e.target.value,error:!1}}))},[a]),m=(0,g.useCallback)(async e=>{e.preventDefault();const{username:{value:n},password1:{value:a},password2:{value:l},confirmationCode:{value:r}}=t;d(!0);try{if(!u(n,r,a,l))return;await y.N.forgotPasswordSubmit(n.toLocaleLowerCase(),r,a),await i({variables:{email:t.username.value.toLocaleLowerCase(),password:t.password1.value}})}catch(e){if(e instanceof Error){const n=(e=>{let{name:n,message:t}=e;return{UserNotFoundException:"login.resetPassword.userNotFound",NotAuthorizedException:"login.resetPassword.incorrectPassword",UserDisabledException:"login.main.userDisabled",ConfirmationCodeEmptyException:"login.resetPassword.confirmationCodeRequired",InvalidCodeException:"login.resetPassword.invalidCode",GeneralError:"login.resetPassword.generalError",LimitExceededException:"login.resetPassword.limitExceeded",ExpiredCodeException:"login.resetPassword.expiredCode"}[n]||t})(e);o(n)}E.Cp(e)}finally{d(!1)}},[t,i,o,d,u]);return(0,g.useMemo)(()=>({state:t,loading:s||l.loading,loginError:r,handleChange:p,handleResetPassword:m}),[t,s,l,r,p,m])}(n.username,n.code);return(0,fe.jsxs)(ZKe,{children:[(0,fe.jsx)(f.Logo,{height:"70px",style:{marginTop:"1rem",marginBottom:"2rem",marginLeft:"1rem"}}),(0,fe.jsx)(f.Text,{size:"large",typescale:"title",children:(0,fe.jsx)(de.A,{id:"login.resetPassword.title"})}),(0,fe.jsx)(f.Text,{size:"large",typescale:"label",children:(0,fe.jsx)(de.A,{id:"login.resetPassword.subheading"})}),(0,fe.jsxs)(eQe,{name:"reset-password__form",onSubmit:r,children:[(0,fe.jsx)(f.TextField,{name:"username",error:!!a.username.error,placeholder:t.formatMessage({id:"login.resetPassword.emailPlaceholder"}),value:a.username.value,onChange:l}),(0,fe.jsx)(nQe,{error:a.username.error}),(0,fe.jsx)(f.TextField,{name:"confirmationCode",error:!!a.confirmationCode.error,placeholder:t.formatMessage({id:"login.resetPassword.codePlaceholder"}),value:a.confirmationCode.value,onChange:l}),(0,fe.jsx)(nQe,{error:a.confirmationCode.error}),(0,fe.jsx)(f.TextField,{name:"password1",error:!!a.password1.error,placeholder:t.formatMessage({id:"login.resetPassword.passwordPlaceholder"}),type:"password",value:a.password1.value,onChange:l,autoComplete:"new-password"}),(0,fe.jsx)(nQe,{error:a.password1.error}),(0,fe.jsx)(f.TextField,{name:"password2",error:!!a.password2.error,placeholder:t.formatMessage({id:"login.resetPassword.confirmPasswordPlaceholder"}),type:"password",value:a.password2.value,onChange:l}),(0,fe.jsx)(nQe,{error:a.password2.error}),(0,fe.jsx)(XKe,{disabled:i,loading:i,variant:"contained",type:"submit",name:"reset-password-container__button",children:(0,fe.jsx)(de.A,{id:i?"login.resetPassword.buttonSubmitting":"login.resetPassword.submitButton"})})]}),o&&(0,fe.jsx)(tQe,{children:(0,fe.jsx)(de.A,{id:o})})]})}}),errorElement:(0,fe.jsx)(Su,{})}),(0,fe.jsx)(m.qh,{path:`${rr.registration.register}/*`,element:(0,fe.jsx)(vQe,{component:()=>{const{form:e,errors:n,setErrors:t,promptShown:a,queryParams:i,handleChange:l,handleClosePrompt:r,handleProfileChange:o,handleProfileSubmit:s,handleContactsSubmit:d,handleCheckboxChange:c,handleCredentialsSubmit:u}=(()=>{const e=(0,m.zy)(),n=(0,m.Zp)(),[{hubspotutk:t}]=(0,QKe.A)(["hubspotutk"]),a={email:"",password:"",passwordConfirmed:"",agreedWithTermsOfService:!1,agreedWithTermsOfUse:!1,firstName:"",lastName:"",companyName:"",preferPersonalUse:!1,phone:"",mobile:"",jobTitle:"",department:"",hutk:t||""},[i,l]=(0,g.useState)(a),[r,o]=(0,g.useState)({}),[s,d]=(0,g.useState)(!1),c=e?.search,u=(0,g.useCallback)(()=>{d(!1)},[]),p=(0,g.useCallback)(e=>{const{name:n,value:t}=e.target,a=!!Object.keys(r).length,s={...i,[n]:t};a&&o(bx(s)),l(e=>({...e,[n]:t}))},[r,i]),f=(0,g.useCallback)(e=>{l(n=>({...n,...e}))},[]),h=(0,g.useCallback)(e=>{const n=!!Object.keys(r).length,t="use"===e?{...i,agreedWithTermsOfUse:!i.agreedWithTermsOfUse}:{...i,agreedWithTermsOfService:!i.agreedWithTermsOfService};n&&o(bx(t)),l(t)},[r,i]),x=(0,g.useCallback)(()=>{localStorage.setItem("MEMOIZED_EMAIL",i.email),n(`/v2/register/profile${c}`)},[i,n,c]),T=(0,g.useCallback)(async()=>{n(`/v2/register/contacts${c}`)},[n,c]),b=(0,g.useCallback)(async e=>{const n=i.email.trim().toLowerCase();try{await y.N.signUp({password:i.password,username:n,attributes:{email:n,given_name:i.firstName.trim(),family_name:i.lastName.trim(),"custom:phone":i.phone.trim(),"custom:mobile_number":i.mobile.trim(),"custom:company_name":i.companyName.trim(),"custom:prefer_personal_use":String(i.preferPersonalUse),"custom:job_title":i.jobTitle.trim(),"custom:department":i.department.trim(),"custom:hutk":i.hutk?.trim()}}),d(!0)}catch(n){if(n instanceof Error){const t=e[n.message]||n.message;o({...r,submit:t})}}},[r,i,d]);return(0,g.useMemo)(()=>({form:i,errors:r,setErrors:o,promptShown:s,queryParams:c,handleChange:p,handleClosePrompt:u,handleProfileSubmit:T,handleProfileChange:f,handleContactsSubmit:b,handleCheckboxChange:h,handleCredentialsSubmit:x}),[i,r,o,s,c,p,u,T,f,b,h,x])})();return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(m.BV,{children:[(0,fe.jsx)(m.qh,{path:"/",element:(0,fe.jsx)(VKe,{form:e,errors:n,setErrors:t,handleChange:l,handleCheckboxChange:c,handleCredentialsSubmit:u})}),(0,fe.jsx)(m.qh,{path:"/profile",element:(0,fe.jsx)(GKe,{form:e,errors:n,setErrors:t,handleChange:l,handleProfileChange:o,handleProfileSubmit:s})}),(0,fe.jsx)(m.qh,{path:"/contacts",element:(0,fe.jsx)(zKe,{form:e,errors:n,setErrors:t,queryParams:i,handleChange:l,handleContactsSubmit:d})})]}),(0,fe.jsx)(KKe,{show:a,email:e.email,onDismiss:r,queryParams:i})]})}}),errorElement:(0,fe.jsx)(Su,{})}),(0,fe.jsx)(m.qh,{path:`${rr.registration.login}`,element:(0,fe.jsx)(vQe,{component:()=>{const{handleChange:e,dismissForgotPassword:n,handleForgotPassword:t,handleSubmit:a,handleSSO:i,clearLoginError:l,state:r}=function(){const[e]=(0,ln.n)(L),[n,t]=(0,g.useReducer)(xKe,hKe),a=(0,dc.A)();return{handleChange:(0,g.useCallback)(e=>{const n=e.target,a=n.name,i=n.value;t({type:"form-value.change",name:a,value:i})},[t]),handleSubmit:(0,g.useCallback)(i=>{i.preventDefault();const l=n.email.value?"":a.formatMessage({id:"login.main.emailError"}),r=n.password.value?"":a.formatMessage({id:"login.main.passwordError"});t({type:"errors.set",errors:{email:l,password:r}}),n.email.value&&n.password.value&&(t({type:"loading.set",value:!0}),e({variables:{email:n.email.value,password:n.password.value},onCompleted(){t({type:"loading.set",value:!1})},onError:e=>{t({type:"loading.set",value:!1}),t({type:"loginError.set",error:XHe(e)})}}))},[n,t,a,e]),handleSSO:async n=>{let{email:a,token:i}=n;t({type:"loading.set",value:!0});try{await e({variables:{email:a,password:i,type:"sso"}}),t({type:"loading.set",value:!1})}catch(e){t({type:"loading.set",value:!1}),t({type:"loginError.set",error:XHe(na(e)?e:new Error("Unknown error"))})}},clearLoginError:()=>{t({type:"loginError.set",error:null})},handleForgotPassword:(0,g.useCallback)(()=>{t({type:"forgotPassword.set",value:!0})},[t]),dismissForgotPassword:(0,g.useCallback)(()=>{t({type:"forgotPassword.set",value:!1})},[t]),state:n}}(),{instance:o,inProgress:s}=(0,kKe.dk)(),[d,c]=(0,g.useState)(!1),[u,p]=(0,g.useState)(),m=r.isLoading||"none"!==s||d,y=u||r.loginError;return(0,fe.jsxs)(RKe,{children:[("Develop"===De("REACT_APP_ENVIRONMENT_NAME")||"QA"===De("REACT_APP_ENVIRONMENT_NAME")||"UAT"===De("REACT_APP_ENVIRONMENT_NAME"))&&(0,fe.jsx)(Ae,{id:"notification_banner",name:"LoginContainer__NotificationBanner",color:"primary",icon:"exclamation-triangle",title:`This is the ${De("REACT_APP_ENVIRONMENT_NAME")} site`,body:"Please note that we regularly reset the data and anything you enter may be overwritten. We recommend that personal details of real individuals are not entered",dismissable:!1,onDismiss:null}),(0,fe.jsx)(f.Modal,{open:r.forgotPasswordModal,onClose:n,children:(0,fe.jsx)(CKe,{id:"forgotPasswordModal__Contents",username:r.email.value})}),(0,fe.jsx)(DKe,{children:(0,fe.jsx)(LKe,{children:(0,fe.jsx)(gKe,{email:r.email,password:r.password,handleChange:e,handleForgotPassword:t,handleSubmit:e=>{p(void 0),l(),a(e)},isLoading:m,loginError:y,supportsSSO:!(!De("REACT_APP_RESOLVE_EXTERNAL_USER_URL")||!De("REACT_APP_AZURE_SSO_APP_ID")),onSSOClick:async()=>{c(!0);try{const e=await o.acquireTokenPopup({scopes:["User.Read","email","profile","openid"],prompt:"select_account"});p(void 0),l(),await async function(e){const n=De("REACT_APP_RESOLVE_EXTERNAL_USER_URL");try{const{data:t}=await EW().post(n,e);return t}catch(e){!function(e){if(!EW().isAxiosError(e)||!e.response)throw e;const{status:n,data:t}=e.response;if(400===n&&"object"==typeof t&&"message"in t)throw new AKe(t.message);throw e}(e)}}({email:e.account.username,accessToken:e.accessToken,idToken:e.idToken}),await i({email:e.account.username,token:e.idToken})}catch(e){if(function(e){return e instanceof SKe.jT&&[NKe.fN].includes(e.errorCode)}(e))return;if(e instanceof AKe)return void p(e.message);console.error(e),E.Cp(e),p("An unexpected error has occurred. Please contact the IT team for assistance.")}finally{c(!1)}}})})})]})}}),errorElement:(0,fe.jsx)(Su,{})}),(0,fe.jsx)(m.qh,{path:`${rr.registration.login}/:providerId`,element:(0,fe.jsx)(vQe,{component:QHe}),errorElement:(0,fe.jsx)(Cu,{})}),(0,fe.jsx)(m.qh,{path:`${rr.registration.providerLogin}/:providerId`,element:(0,fe.jsx)(vQe,{component:QHe}),errorElement:(0,fe.jsx)(Cu,{})}),(0,fe.jsx)(m.qh,{path:"v2/*",element:(0,fe.jsx)(h_e,{}),loader:async e=>{let{request:n}=e;try{let e=await aq.query({query:MHe});if(!e.data.idToken)try{const n=await y.N.currentSession();await Ge(n,aq),e=await aq.query({query:MHe})}catch(e){await Ve(aq.cache);const t=new URL(n.url);return localStorage.getItem("from_logout")?localStorage.removeItem("from_logout"):localStorage.setItem("failed_url",t?.pathname),(0,cd.V2)("/v2/login")}const{data:{currentAccountId:t}}=await aq.query({query:VHe}),{idToken:a}=e.data,i=t||a.name;t||aq.writeQuery({query:VHe,data:{currentAccountId:i}});try{const{data:e}=await aq.query({query:GHe(await $He(a.sub)),variables:{accountId:i,userId:a.sub,userIdString:a.sub},fetchPolicy:"network-only"}),t=new URL(n.url);return e.getAccountInfo.accessControls.v2Design?{...e,idToken:a,currentAccountId:i}:(0,cd.V2)(t.pathname.replace(/\/v2\/?/,"/"))}catch(e){return await ze(aq.cache),(0,cd.V2)("/v2/login")}}catch(e){throw(0,E.Cp)(e),e}},errorElement:(0,fe.jsx)(Su,{}),children:(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(UHe,{}),errorElement:(0,fe.jsx)(Su,{})})}),(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(CQe,{component:()=>{const[e,n]=(0,g.useState)([]),[t,a]=(0,g.useState)(),[i,l]=(0,g.useState)(),r=lr();cr();const{loading:o}=Mr();return Ke(),(0,fe.jsxs)(rg,{id:"app-container",className:"v1",children:[(0,fe.jsxs)(ie.fI,{container:!0,item:!0,children:[(0,fe.jsx)(dy,{}),(0,fe.jsxs)(og,{container:!0,item:!0,name:"main",children:[(0,fe.jsx)(Up,{}),(0,fe.jsx)(sg,{children:o||r.loading?(0,fe.jsx)(dg,{}):(0,fe.jsx)(m.sv,{context:[n,a,l]})})]}),e.length>0&&t&&(0,fe.jsx)(Wy,{items:e,dismiss:()=>n([]),createMutation:t,onComplete:i})]}),(0,fe.jsx)(lg,{})]})},redirectUrl:rr.registration.login}),loader:async e=>{let{request:n}=e;try{const{data:{currentAccountId:e}}=await aq.query({query:te});if(!e)return{};const{data:t}=await aq.query({query:Br,variables:{id:e}}),a=new URL(n.url);return t.getAccountInfo.accessControls.v2Design?(0,cd.V2)(a.pathname.replace("/","/v2/")):{}}catch(e){return{}}},errorElement:(0,fe.jsx)(Cu,{}),children:(0,fe.jsx)(m.qh,{path:"*",element:(0,fe.jsx)(HEe,{}),errorElement:(0,fe.jsx)(Cu,{})})})]}))),SQe={AWSPinpoint:{appId:De("REACT_APP_PINPOINT_APP_CLIENT_ID"),region:De("REACT_APP_PINPOINT_REGION"),mandatorySignIn:!1,disabled:window.Cypress}},NQe={aws_project_region:De("REACT_APP_AWS_REGION"),aws_cognito_region:De("REACT_APP_AWS_REGION"),Auth:{identityPoolId:De("REACT_APP_IDENTITY_POOL_ID"),region:De("REACT_APP_AWS_REGION"),userPoolId:De("REACT_APP_USER_POOL_ID"),userPoolWebClientId:De("REACT_APP_USER_POOL_WEB_CLIENT_ID"),oauth:{domain:De("REACT_APP_COGNITO_DOMAIN"),scope:["email","profile","openid"],redirectSignIn:`${De("REACT_APP_BASE_URL")}/login`,responseType:"code"}},Analytics:SQe};o.HA.configure(NQe),window.Cypress||De("REACT_APP_GOOGLE_ANALYTIC_KEY")&&s.Ay.initialize(De("REACT_APP_GOOGLE_ANALYTIC_KEY"),{debug:!1}),d.T({dsn:"https://c712cec004ed470f9d1f7041cd1ee7e3@o925114.ingest.sentry.io/5873743",environment:De("REACT_APP_SENTRY_ENV"),integrations:[new u.IQ.Jh({traceFetch:!1}),new c.e({maskAllText:!1,blockAllMedia:!1})],tracesSampleRate:1,replaysOnErrorSampleRate:1,replaysSessionSampleRate:.1,enabled:"development"!==De("NODE_ENV")}),(0,r.H)(document.getElementById("root")).render((0,fe.jsx)(p.RouterProvider,{router:kQe}))},29147(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"DataOverwritingStrategyFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DataOverwritingStrategy"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusExplanation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusProgress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"batchType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"batchId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numberOfRowsAnalyzing"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numberOfRowsAfterMerge"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numberOfDuplicatesFound"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numberOfBatchesWithDuplicates"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"overwritingNeeded"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mergedFileS3Key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mergedFileUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdBy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastUpdatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scheduledExecutionAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scheduledExecutionBy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"executedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"executionError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"executionCloudWatchLogGroup"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"batchesSuitableForOverwriting"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dromoId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:538}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment DataOverwritingStrategyFields on DataOverwritingStrategy {\n  id\n  accountId\n  status\n  statusExplanation\n  statusProgress\n  key\n  createdAt\n  batchType\n  batchId\n  numberOfRowsAnalyzing\n  numberOfRowsAfterMerge\n  numberOfDuplicatesFound\n  numberOfBatchesWithDuplicates\n  overwritingNeeded\n  mergedFileS3Key\n  mergedFileUrl\n  createdBy\n  lastUpdatedAt\n  scheduledExecutionAt\n  scheduledExecutionBy\n  executedAt\n  executionError\n  executionCloudWatchLogGroup\n  batchesSuitableForOverwriting {\n    id\n    fileName\n    dromoId\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.DataOverwritingStrategyFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"DataOverwritingStrategyFields")},87653(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ExportProgressFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ExportProgress"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transactionType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rowsProcessingProgress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"uploadProgress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"exportStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorMessage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastUpdatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rowsProcessed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]}]}}],loc:{start:0,end:235}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment ExportProgressFields on ExportProgress {\n  id\n  userId\n  accountId\n  transactionType\n  rowsProcessingProgress\n  uploadProgress\n  exportStatus\n  filename\n  errorMessage\n  createdAt\n  lastUpdatedAt\n  rowsProcessed\n  totalRows\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.ExportProgressFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"ExportProgressFields")},41621(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ExportProgressPayloadFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ExportProgressPayload"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transactionType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rowsProcessingProgress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"uploadProgress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"exportStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorMessage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastUpdatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rowsProcessed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:298}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment ExportProgressPayloadFields on ExportProgressPayload {\n  userId\n  items {\n    id\n    userId\n    accountId\n    transactionType\n    rowsProcessingProgress\n    uploadProgress\n    exportStatus\n    filename\n    errorMessage\n    createdAt\n    lastUpdatedAt\n    rowsProcessed\n    totalRows\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.ExportProgressPayloadFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"ExportProgressPayloadFields")},13380(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ContainerTypeFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContainerType"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sizes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"volume"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"volumeUnit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"weight"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"weightUnit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:250}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment ContainerTypeFields on ContainerType {\n    id\n    name\n    sizes {\n        id\n        volume\n        volumeUnit {\n            id\n            name\n        }\n        weight\n        weightUnit {\n            id\n            name\n        }\n    }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.ContainerTypeFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"ContainerTypeFields")},33922(e,n,t){var a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ElectricityTransactionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ElectricityTransactionPageItem"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meterName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tariff"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tariffId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"supplier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationEndDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationSharedEmissionPercentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationCustomAttributes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reading"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accuracy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalCost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalCostVat"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"chargePerKilowatt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonScope2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonScope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kgCO2Scope2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kgCO2Scope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kgCH4Scope2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kgCH4Scope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kgN2OScope2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kgN2OScope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"marketBasedCarbonScope2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"marketBasedCarbonScope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tdScope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"wttGenScope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"wttTdScope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"activity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"comment"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"evidenceReference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"otherReference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"energySource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EnergySourceFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"importBatchFileName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"importBatchId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"departments"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reportingYearOfFactors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"factorsArePrivate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"purchaseType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organisationalUnits"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"estimatesScenario"},arguments:[],directives:[]}]}}],loc:{start:0,end:890}};a.loc.source={body:'#import "./EnergySourceFields.fragment.graphql"\n\nfragment ElectricityTransactionFields on ElectricityTransactionPageItem {\n  id\n  meterName\n  tariff\n  tariffId\n  supplier\n  tags\n  locationName\n  locationEndDate\n  locationSharedEmissionPercentage\n  locationCustomAttributes\n  startDate\n  startTime\n  endDate\n  endTime\n  quantity\n  reading\n  accuracy\n  totalCost\n  totalCostVat\n  chargePerKilowatt\n  carbonScope2\n  carbonScope3\n  kgCO2Scope2\n  kgCO2Scope3\n  kgCH4Scope2\n  kgCH4Scope3\n  kgN2OScope2\n  kgN2OScope3\n  marketBasedCarbonScope2\n  marketBasedCarbonScope3\n  tdScope3\n  wttGenScope3\n  wttTdScope3\n  activity\n  currency\n  comment\n  invoiceNumber\n  evidenceReference\n  otherReference\n  energySource {\n    ...EnergySourceFields\n  }\n  importBatchFileName\n  importBatchId\n  departments\n  reportingYearOfFactors\n  factorsArePrivate\n  purchaseType\n  organisationalUnits\n  estimatesScenario\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(53616).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.ElectricityTransactionFields=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"ElectricityTransactionFields")},53616(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"EnergySourceFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EnergySource"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationPoint"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"region"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"alpha2Code"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:248}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment EnergySourceFields on EnergySource {\n  id\n  name\n  locationPoint {\n    location {\n      code\n      region {\n        id\n        name\n      }\n      address {\n        country {\n          name\n          alpha2Code\n        }\n      }\n    }\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.EnergySourceFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"EnergySourceFields")},14639(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"EvaluationFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Evaluation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scale"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"min"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"max"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"questions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:153}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment EvaluationFields on Evaluation {\n  id\n  name\n  description\n  type\n  accountId\n  scale {\n    min\n    max\n  }\n  questions {\n    id\n    text\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.EvaluationFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"EvaluationFields")},47826(e,n,t){var a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"GasTransactionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GasTransactionPageItem"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meterName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationEndDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationSharedEmissionPercentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationCustomAttributes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reading"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accuracy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalCost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalCostVat"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonScope1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonScope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonEmissionCO2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonEmissionN2O"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonEmissionCH4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"activity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"comment"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"evidenceReference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"otherReference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"energySource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EnergySourceFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"importBatchFileName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"importBatchId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"departments"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"supplier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reportingYearOfFactors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"purchaseType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organisationalUnits"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"estimatesScenario"},arguments:[],directives:[]}]}}],loc:{start:0,end:676}};a.loc.source={body:'#import "./EnergySourceFields.fragment.graphql"\n\nfragment GasTransactionFields on GasTransactionPageItem {\n  id\n  meterName\n  tags\n  locationName\n  locationEndDate\n  locationSharedEmissionPercentage\n  locationCustomAttributes\n  startDate\n  endDate\n  quantity\n  reading\n  accuracy\n  totalCost\n  totalCostVat\n  carbonScope1\n  carbonScope3\n  carbonEmissionCO2\n  carbonEmissionN2O\n  carbonEmissionCH4\n  activity\n  currency\n  comment\n  invoiceNumber\n  evidenceReference\n  otherReference\n  energySource {\n    ...EnergySourceFields\n  }\n  importBatchFileName\n  importBatchId\n  departments\n  supplier\n  reportingYearOfFactors\n  purchaseType\n  organisationalUnits\n  estimatesScenario\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(53616).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GasTransactionFields=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GasTransactionFields")},1087(e,n,t){var a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"HeatSteamTransactionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HeatSteamTransactionPageItem"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meterName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tariff"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tariffId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"supplier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationEndDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationSharedEmissionPercentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationCustomAttributes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accuracy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalCost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalCostVat"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonScope2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonScope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"marketBasedCarbonScope2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"marketBasedCarbonScope3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonEmissionCO2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonEmissionN2O"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"carbonEmissionCH4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"activity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"comment"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"evidenceReference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"otherReference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"energySource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EnergySourceFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"importBatchFileName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"importBatchId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"departments"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reportingYearOfFactors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"purchaseType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organisationalUnits"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"estimatesScenario"},arguments:[],directives:[]}]}}],loc:{start:0,end:772}};a.loc.source={body:'#import "./EnergySourceFields.fragment.graphql"\n\nfragment HeatSteamTransactionFields on HeatSteamTransactionPageItem {\n  id\n  meterName\n  tariff\n  tariffId\n  supplier\n  tags\n  locationName\n  locationEndDate\n  locationSharedEmissionPercentage\n  locationCustomAttributes\n  startDate\n  startTime\n  endDate\n  endTime\n  quantity\n  accuracy\n  totalCost\n  totalCostVat\n  carbonScope2\n  carbonScope3\n  marketBasedCarbonScope2\n  marketBasedCarbonScope3\n  carbonEmissionCO2\n  carbonEmissionN2O\n  carbonEmissionCH4\n  activity\n  currency\n  comment\n  invoiceNumber\n  evidenceReference\n  otherReference\n  energySource {\n    ...EnergySourceFields\n  }\n  importBatchFileName\n  importBatchId\n  departments\n  reportingYearOfFactors\n  purchaseType\n  organisationalUnits\n  estimatesScenario\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(53616).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.HeatSteamTransactionFields=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"HeatSteamTransactionFields")},65718(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"LegislationFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Legislation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"synopsis"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isActive"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"links"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countries"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastFlaggedForReview"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"apiData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastModified"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:173}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment LegislationFields on Legislation {\n  id\n  title\n  synopsis\n  isActive\n  links\n  countries\n  type\n  lastFlaggedForReview\n  apiData {\n    path\n    lastModified\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.LegislationFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"LegislationFields")},94749(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OilTransactionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OilTransactionPageItem"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assetId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assetName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"date"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"oilProductionBbl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gasExportKscf"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"waterProductionBbl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gasProductionKscf"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gasInjectionKscf"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelGasKscf"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flareGasKscf"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prodWaterOverboardBwpd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"oilInWaterPpm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"importBatchFileName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"importBatchId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mBoeAllPerDay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mBoeGasPerDay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelGasTCO2e"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelGasTCO2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelGasTCH4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelGasTN2O"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flareGasTCO2e"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flareGasTCO2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flareGasTCH4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flareGasTN2O"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ventingTCO2e"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ventingTCH4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fugitiveEmissionsTCO2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fugitiveEmissionsTCO2e"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fugitiveEmissionsTCH4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"otherParticulatesTNOx"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"otherParticulatesTSOx"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"otherParticulatesTCO"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"otherParticulatesTpm25"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gasCompositionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scope1GhgEmissions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scope2GhgEmissions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scope3GhgEmissions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"monthlyAverageWaterLimitPPM1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"monthlyAverageWaterLimitP65"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"oilDischargeBpd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dataMarker"},arguments:[],directives:[]}]}}],loc:{start:0,end:886}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment OilTransactionFields on OilTransactionPageItem {\n  id\n  assetId\n  assetName\n  date\n  oilProductionBbl\n  gasExportKscf\n  waterProductionBbl\n  gasProductionKscf\n  gasInjectionKscf\n  fuelGasKscf\n  flareGasKscf\n  prodWaterOverboardBwpd\n  oilInWaterPpm\n  notes\n  importBatchFileName\n  importBatchId\n  # Calculated fields\n  mBoeAllPerDay\n  mBoeGasPerDay\n  # --- Emissions fields ---\n  fuelGasTCO2e\n  fuelGasTCO2\n  fuelGasTCH4\n  fuelGasTN2O\n  flareGasTCO2e\n  flareGasTCO2\n  flareGasTCH4\n  flareGasTN2O\n  ventingTCO2e\n  ventingTCH4\n  fugitiveEmissionsTCO2\n  fugitiveEmissionsTCO2e\n  fugitiveEmissionsTCH4\n  otherParticulatesTNOx\n  otherParticulatesTSOx\n  otherParticulatesTCO\n  otherParticulatesTpm25\n  # ---\n  gasCompositionId\n  scope1GhgEmissions\n  scope2GhgEmissions\n  scope3GhgEmissions\n  monthlyAverageWaterLimitPPM1\n  monthlyAverageWaterLimitP65\n  oilDischargeBpd\n  dataMarker\n} ",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.OilTransactionFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"OilTransactionFields")},88894(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProjectFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Project"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priority"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scheme"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"impact"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currencyId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"baselineStartDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"frequency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"plannedBenefit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"plannedCostChange"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"plannedCO2eChange"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"owners"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profilePicture"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"meters"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:434}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment ProjectFields on Project {\n  id\n  accountId\n  name\n  description\n  priority\n  scheme {\n    id\n    name\n    category {\n      id\n      name\n    }\n  }\n  impact\n  cost\n  currencyId\n  baselineStartDate\n  startDate\n  endDate\n  frequency\n  plannedBenefit\n  plannedCostChange\n  plannedCO2eChange\n  locations {\n    id\n    name\n  }\n  owners {\n    id\n    first_name\n    last_name\n    profilePicture\n  }\n  meters {\n    id\n    name\n  } \n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.ProjectFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"ProjectFields")},17101(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SalesDataTransactionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SalesDataTransactionPageItem"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assetId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assetName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"date"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"volumeNaturalGas"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"volumeNaturalGasUnit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"volumeCrudeOilBbl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"importBatchFileName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"importBatchId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"naturalGasSalesVolumeM3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"crudeOilSalesVolumeM3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soldProductEmissionsCO2e"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soldProductEmissionsCO2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soldProductEmissionsCH4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soldProductEmissionsN2O"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scope1GhgEmissions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scope2GhgEmissions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scope3GhgEmissions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"departments"},arguments:[],directives:[]}]}}],loc:{start:0,end:475}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment SalesDataTransactionFields on SalesDataTransactionPageItem {\n  id\n  assetId\n  assetName\n  date\n  volumeNaturalGas\n  volumeNaturalGasUnit\n  volumeCrudeOilBbl\n  notes\n  importBatchFileName\n  importBatchId\n  # Calculated fields\n  naturalGasSalesVolumeM3\n  crudeOilSalesVolumeM3\n  soldProductEmissionsCO2e\n  soldProductEmissionsCO2\n  soldProductEmissionsCH4\n  soldProductEmissionsN2O\n  scope1GhgEmissions\n  scope2GhgEmissions\n  scope3GhgEmissions\n  tags\n  departments\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.SalesDataTransactionFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"SalesDataTransactionFields")},84477(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SupplierFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Supplier"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"utility"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"alpha2Code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:286}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment SupplierFields on Supplier {\n    name\n    id\n    utility\n    type\n    address {\n        id\n        address1\n        address2\n        address3\n        city\n        phone1\n        postcode\n        country {\n            alpha2Code\n            name\n            id\n        }\n    }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.SupplierFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"SupplierFields")},28892(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"TargetFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Target"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scope"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tagId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"topic"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"utility"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"normaliserType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isRelative"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"baselineStartDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"baselineEndDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"configurationErrors"},arguments:[],directives:[]}]}}],loc:{start:0,end:348}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment TargetFields on Target {\n  id\n  name\n  scope\n  accountId\n  tagId\n  locationId\n  type {\n    id\n    name\n  }\n  topic {\n    id\n    name\n    unit {\n      id\n      name\n    }\n    utility\n  }\n  normaliserType {\n    id\n    name\n  }\n  value\n  isRelative\n  startDate\n  endDate\n  baselineStartDate\n  baselineEndDate\n  status\n  configurationErrors\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.TargetFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"TargetFields")},25032(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"TaskFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Task"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profilePicture"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"scope"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tagName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subject"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"item"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Legislation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Aspect"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"activity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Target"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"completedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCompleted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"owners"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profilePicture"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"priority"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"projectId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:595}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"fragment TaskFields on Task {\n  id\n  accountId\n  author {\n    id\n    first_name\n    last_name\n    profilePicture\n  }\n  scope\n  locations {\n    id\n    name\n  }\n  tags {\n    id\n    tagName\n  }\n  name\n  description\n  category\n  subject\n  item {\n    ... on Legislation {\n      id\n      title\n    }\n    ... on Aspect {\n      id\n      activity {\n        id\n        name\n      }\n    }\n    ... on Target {\n      id\n      name\n    }\n  }\n  dueDate\n  createdAt\n  completedAt\n  isCompleted\n  owners {\n    id\n    first_name\n    last_name\n    profilePicture\n  }\n  priority\n  projectId {\n    id\n    name\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.TaskFields=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"TaskFields")},18243(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InitiateDataUpload"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TransactionType"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isDirectActivity"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transpositionId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"initiateDataUpload"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionType"},value:{kind:"Variable",name:{kind:"Name",value:"transactionType"}}},{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"fileName"},value:{kind:"Variable",name:{kind:"Name",value:"fileName"}}},{kind:"Argument",name:{kind:"Name",value:"isDirectActivity"},value:{kind:"Variable",name:{kind:"Name",value:"isDirectActivity"}}},{kind:"Argument",name:{kind:"Name",value:"transpositionId"},value:{kind:"Variable",name:{kind:"Name",value:"transpositionId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"signedUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"batchId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:359}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation InitiateDataUpload($transactionType: TransactionType!, $accountId: ID!, $fileName: String!, $isDirectActivity: Boolean, $transpositionId: ID) {\n  initiateDataUpload(transactionType: $transactionType, accountId: $accountId, fileName: $fileName, isDirectActivity: $isDirectActivity, transpositionId: $transpositionId) {\n    signedUrl\n    batchId\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.InitiateDataUpload=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"InitiateDataUpload")},2087(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UploadData"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"file"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"File"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uploadDataFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accId"}}},{kind:"Argument",name:{kind:"Name",value:"file"},value:{kind:"Variable",name:{kind:"Name",value:"file"}}},{kind:"Argument",name:{kind:"Name",value:"fileName"},value:{kind:"Variable",name:{kind:"Name",value:"fileName"}}},{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileUploaded"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:207}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation UploadData($accId: ID!, $file: File!, $fileName: String!, $url: String) {\n  uploadDataFile(accountId: $accId, file: $file, fileName: $fileName, url: $url) @client {\n    status\n    fileUploaded\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.UploadData=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"UploadData")},8296(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDepartment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AccountDepartmentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDepartment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:119}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation CreateDepartment($input: AccountDepartmentInput!) {\n  createDepartment(input: $input) {\n    id\n    name\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.CreateDepartment=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"CreateDepartment")},66575(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SendEmail"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"replacements"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendEmail"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"RIO-INTERNAL-CONTACT",block:!1}},{kind:"ObjectField",name:{kind:"Name",value:"external"},value:{kind:"BooleanValue",value:!1}},{kind:"ObjectField",name:{kind:"Name",value:"replacements"},value:{kind:"Variable",name:{kind:"Name",value:"replacements"}}}]}}],directives:[]}]}}],loc:{start:0,end:145}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:'mutation SendEmail($replacements: String!) {\n  sendEmail(input: { name: "RIO-INTERNAL-CONTACT", external: false, replacements: $replacements })\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.SendEmail=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"SendEmail")},29477(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AssignBatchAccountLicenceMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AssignAccountLicenceInput"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assignBatchAccountLicence"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:218}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation AssignBatchAccountLicenceMutation($input: [AssignAccountLicenceInput!]!) {\n  assignBatchAccountLicence(input: $input) {\n    id\n    productId\n    ownerId\n    userId\n    status\n    createdAt\n    updatedAt\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.AssignBatchAccountLicenceMutation=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"AssignBatchAccountLicenceMutation")},77928(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AssignBatchLicencesMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AssignLicenceInput"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assignBatchLicences"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:199}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation AssignBatchLicencesMutation($input: [AssignLicenceInput!]!) {\n  assignBatchLicences(input: $input) {\n    id\n    productId\n    ownerId\n    userId\n    status\n    createdAt\n    updatedAt\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.AssignBatchLicencesMutation=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"AssignBatchLicencesMutation")},73949(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateBatchLicencesMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateLicenceInput"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createBatchLicences"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:199}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation CreateBatchLicencesMutation($input: [CreateLicenceInput!]!) {\n  createBatchLicences(input: $input) {\n    id\n    productId\n    ownerId\n    userId\n    status\n    createdAt\n    updatedAt\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.CreateBatchLicencesMutation=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"CreateBatchLicencesMutation")},10529(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BuyProducts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentMethod"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"items"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"couponId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"buyProducts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"paymentMethod"},value:{kind:"Variable",name:{kind:"Name",value:"paymentMethod"}}},{kind:"ObjectField",name:{kind:"Name",value:"items"},value:{kind:"Variable",name:{kind:"Name",value:"items"}}},{kind:"ObjectField",name:{kind:"Name",value:"couponId"},value:{kind:"Variable",name:{kind:"Name",value:"couponId"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:197}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation BuyProducts($paymentMethod: String!, $items: [[String!]!]!, $couponId: String) {\n  buyProducts(input: { paymentMethod: $paymentMethod, items: $items, couponId: $couponId }) {\n    id\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.BuyProducts=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"BuyProducts")},32356(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BuySubscription"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentMethod"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"items"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"couponId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"buySubscription"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"paymentMethod"},value:{kind:"Variable",name:{kind:"Name",value:"paymentMethod"}}},{kind:"ObjectField",name:{kind:"Name",value:"items"},value:{kind:"Variable",name:{kind:"Name",value:"items"}}},{kind:"ObjectField",name:{kind:"Name",value:"couponId"},value:{kind:"Variable",name:{kind:"Name",value:"couponId"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:205}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation BuySubscription($paymentMethod: String!, $items: [[String!]!]!, $couponId: String) {\n  buySubscription(input: { paymentMethod: $paymentMethod, items: $items, couponId: $couponId }) {\n    id\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.BuySubscription=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"BuySubscription")},91690(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateProject"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owners"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locations"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"priority"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ProjectPriority"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"schemeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"impact"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cost"}},type:{kind:"NamedType",name:{kind:"Name",value:"Float"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"currencyId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"baselineStartDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"startDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"endDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"frequency"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"plannedBenefit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"plannedCostChange"}},type:{kind:"NamedType",name:{kind:"Name",value:"Float"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"plannedCO2eChange"}},type:{kind:"NamedType",name:{kind:"Name",value:"Float"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"evidenceNotes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ProjectEvidenceInput"}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meters"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createProject"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"ObjectField",name:{kind:"Name",value:"owners"},value:{kind:"Variable",name:{kind:"Name",value:"owners"}}},{kind:"ObjectField",name:{kind:"Name",value:"locations"},value:{kind:"Variable",name:{kind:"Name",value:"locations"}}},{kind:"ObjectField",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"ObjectField",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"ObjectField",name:{kind:"Name",value:"priority"},value:{kind:"Variable",name:{kind:"Name",value:"priority"}}},{kind:"ObjectField",name:{kind:"Name",value:"schemeId"},value:{kind:"Variable",name:{kind:"Name",value:"schemeId"}}},{kind:"ObjectField",name:{kind:"Name",value:"impact"},value:{kind:"Variable",name:{kind:"Name",value:"impact"}}},{kind:"ObjectField",name:{kind:"Name",value:"cost"},value:{kind:"Variable",name:{kind:"Name",value:"cost"}}},{kind:"ObjectField",name:{kind:"Name",value:"currencyId"},value:{kind:"Variable",name:{kind:"Name",value:"currencyId"}}},{kind:"ObjectField",name:{kind:"Name",value:"baselineStartDate"},value:{kind:"Variable",name:{kind:"Name",value:"baselineStartDate"}}},{kind:"ObjectField",name:{kind:"Name",value:"startDate"},value:{kind:"Variable",name:{kind:"Name",value:"startDate"}}},{kind:"ObjectField",name:{kind:"Name",value:"endDate"},value:{kind:"Variable",name:{kind:"Name",value:"endDate"}}},{kind:"ObjectField",name:{kind:"Name",value:"frequency"},value:{kind:"Variable",name:{kind:"Name",value:"frequency"}}},{kind:"ObjectField",name:{kind:"Name",value:"plannedBenefit"},value:{kind:"Variable",name:{kind:"Name",value:"plannedBenefit"}}},{kind:"ObjectField",name:{kind:"Name",value:"plannedCostChange"},value:{kind:"Variable",name:{kind:"Name",value:"plannedCostChange"}}},{kind:"ObjectField",name:{kind:"Name",value:"plannedCO2eChange"},value:{kind:"Variable",name:{kind:"Name",value:"plannedCO2eChange"}}},{kind:"ObjectField",name:{kind:"Name",value:"evidenceNotes"},value:{kind:"Variable",name:{kind:"Name",value:"evidenceNotes"}}},{kind:"ObjectField",name:{kind:"Name",value:"meters"},value:{kind:"Variable",name:{kind:"Name",value:"meters"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProjectFields"},directives:[]}]}}]}}],loc:{start:0,end:1034}};a.loc.source={body:'#import "../../fragments/ProjectFields.fragment.graphql"\n\nmutation CreateProject($id: ID!, $owners: [ID!]!, $locations: [ID!]!, $accountId: ID!, $name: String!, $description: String, $priority: ProjectPriority!, $schemeId: ID!, $impact: String, $cost: Float, $currencyId: ID, $baselineStartDate: String!, $startDate: String!, $endDate: String!, $frequency: String, $plannedBenefit: Float!, $plannedCostChange: Float, $plannedCO2eChange: Float, $evidenceNotes: [ProjectEvidenceInput!]!, $meters: [ID!]!) {\n  createProject(input: { id: $id, owners: $owners, locations: $locations, accountId: $accountId, name: $name, description: $description, priority: $priority, schemeId: $schemeId, impact: $impact, cost: $cost, currencyId: $currencyId, baselineStartDate: $baselineStartDate, startDate: $startDate, endDate: $endDate, frequency: $frequency, plannedBenefit: $plannedBenefit, plannedCostChange: $plannedCostChange, plannedCO2eChange: $plannedCO2eChange, evidenceNotes: $evidenceNotes, meters: $meters  }) {\n    ...ProjectFields\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(88894).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.CreateProject=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"CreateProject")},25180(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateTarget"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"target"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TargetInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createTarget"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"target"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Target"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TargetFields"},directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreateTargetErrors"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:259}};a.loc.source={body:'#import "../../fragments/TargetFields.fragment.graphql"\n\nmutation CreateTarget($target: TargetInput!) {\n  createTarget(input: $target) {\n    ... on Target {\n      ...TargetFields\n    }\n    ... on CreateTargetErrors {\n      __typename\n      errors\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(28892).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.CreateTarget=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"CreateTarget")},91153(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateTarget"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"target"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TargetInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateTarget"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"target"}}},{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Target"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TargetFields"},directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdateTargetErrors"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:278}};a.loc.source={body:'#import "../../fragments/TargetFields.fragment.graphql"\n\nmutation UpdateTarget($target: TargetInput!, $id: ID!) {\n  updateTarget(input: $target, id: $id) {\n    ... on Target {\n      ...TargetFields\n    }\n    ... on UpdateTargetErrors {\n      __typename\n      errors\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(28892).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.UpdateTarget=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"UpdateTarget")},95196(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateTask"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"scope"}},type:{kind:"NamedType",name:{kind:"Name",value:"Scope"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locationIds"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tagIds"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"category"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TaskCategory"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"subject"}},type:{kind:"NamedType",name:{kind:"Name",value:"TaskSubject"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"itemId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owners"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"priority"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TaskPriority"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"dueDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isCompleted"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createdAt"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createTask"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"ObjectField",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"ObjectField",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"ObjectField",name:{kind:"Name",value:"scope"},value:{kind:"Variable",name:{kind:"Name",value:"scope"}}},{kind:"ObjectField",name:{kind:"Name",value:"locationIds"},value:{kind:"Variable",name:{kind:"Name",value:"locationIds"}}},{kind:"ObjectField",name:{kind:"Name",value:"tagIds"},value:{kind:"Variable",name:{kind:"Name",value:"tagIds"}}},{kind:"ObjectField",name:{kind:"Name",value:"category"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}},{kind:"ObjectField",name:{kind:"Name",value:"subject"},value:{kind:"Variable",name:{kind:"Name",value:"subject"}}},{kind:"ObjectField",name:{kind:"Name",value:"itemId"},value:{kind:"Variable",name:{kind:"Name",value:"itemId"}}},{kind:"ObjectField",name:{kind:"Name",value:"dueDate"},value:{kind:"Variable",name:{kind:"Name",value:"dueDate"}}},{kind:"ObjectField",name:{kind:"Name",value:"owners"},value:{kind:"Variable",name:{kind:"Name",value:"owners"}}},{kind:"ObjectField",name:{kind:"Name",value:"priority"},value:{kind:"Variable",name:{kind:"Name",value:"priority"}}},{kind:"ObjectField",name:{kind:"Name",value:"isCompleted"},value:{kind:"Variable",name:{kind:"Name",value:"isCompleted"}}},{kind:"ObjectField",name:{kind:"Name",value:"createdAt"},value:{kind:"Variable",name:{kind:"Name",value:"createdAt"}}},{kind:"ObjectField",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TaskFields"},directives:[]}]}}]}}],loc:{start:0,end:757}};a.loc.source={body:'#import "../../fragments/TaskFields.fragment.graphql"\n\nmutation CreateTask($id: ID!, $accountId: String!, $name: String!, $description: String!, $scope: Scope, $locationIds: [ID], $tagIds: [ID], $category: TaskCategory!, $subject: TaskSubject, $itemId: String, $owners: [String!], $priority: TaskPriority!, $dueDate: String!, $isCompleted: Boolean!, $createdAt: String!, $projectId: ID) {\n  createTask(input: { id: $id, accountId: $accountId, name: $name, description: $description, scope: $scope, locationIds: $locationIds, tagIds: $tagIds, category: $category, subject: $subject, itemId: $itemId, dueDate: $dueDate, owners: $owners, priority: $priority, isCompleted: $isCompleted, createdAt: $createdAt, projectId: $projectId }) {\n    ...TaskFields\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(25032).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.CreateTask=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"CreateTask")},7653(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateTaskEvidence"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"taskId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"evidenceType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TaskEvidenceType"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"notes"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documents"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createTaskEvidence"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"ObjectField",name:{kind:"Name",value:"taskId"},value:{kind:"Variable",name:{kind:"Name",value:"taskId"}}},{kind:"ObjectField",name:{kind:"Name",value:"evidenceType"},value:{kind:"Variable",name:{kind:"Name",value:"evidenceType"}}},{kind:"ObjectField",name:{kind:"Name",value:"notes"},value:{kind:"Variable",name:{kind:"Name",value:"notes"}}},{kind:"ObjectField",name:{kind:"Name",value:"documents"},value:{kind:"Variable",name:{kind:"Name",value:"documents"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:264}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation CreateTaskEvidence($id: ID!, $taskId: ID!, $evidenceType: TaskEvidenceType!, $notes: String!, $documents: [ID!]) {\n  createTaskEvidence(input: { id: $id, taskId: $taskId, evidenceType: $evidenceType, notes: $notes, documents: $documents }) {\n    id\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.CreateTaskEvidence=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"CreateTaskEvidence")},7895(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteTask"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteTask"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:69}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation DeleteTask($id: ID!) {\n  deleteTask(id: $id) {\n    id\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.DeleteTask=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"DeleteTask")},77001(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateTask"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"scope"}},type:{kind:"NamedType",name:{kind:"Name",value:"Scope"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locationIds"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tagIds"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"category"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TaskCategory"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"subject"}},type:{kind:"NamedType",name:{kind:"Name",value:"TaskSubject"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"itemId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owners"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"priority"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TaskPriority"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"dueDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isCompleted"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createdAt"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"completedAt"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateTask"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"ObjectField",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"ObjectField",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"ObjectField",name:{kind:"Name",value:"scope"},value:{kind:"Variable",name:{kind:"Name",value:"scope"}}},{kind:"ObjectField",name:{kind:"Name",value:"locationIds"},value:{kind:"Variable",name:{kind:"Name",value:"locationIds"}}},{kind:"ObjectField",name:{kind:"Name",value:"tagIds"},value:{kind:"Variable",name:{kind:"Name",value:"tagIds"}}},{kind:"ObjectField",name:{kind:"Name",value:"category"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}},{kind:"ObjectField",name:{kind:"Name",value:"subject"},value:{kind:"Variable",name:{kind:"Name",value:"subject"}}},{kind:"ObjectField",name:{kind:"Name",value:"itemId"},value:{kind:"Variable",name:{kind:"Name",value:"itemId"}}},{kind:"ObjectField",name:{kind:"Name",value:"dueDate"},value:{kind:"Variable",name:{kind:"Name",value:"dueDate"}}},{kind:"ObjectField",name:{kind:"Name",value:"owners"},value:{kind:"Variable",name:{kind:"Name",value:"owners"}}},{kind:"ObjectField",name:{kind:"Name",value:"priority"},value:{kind:"Variable",name:{kind:"Name",value:"priority"}}},{kind:"ObjectField",name:{kind:"Name",value:"isCompleted"},value:{kind:"Variable",name:{kind:"Name",value:"isCompleted"}}},{kind:"ObjectField",name:{kind:"Name",value:"createdAt"},value:{kind:"Variable",name:{kind:"Name",value:"createdAt"}}},{kind:"ObjectField",name:{kind:"Name",value:"completedAt"},value:{kind:"Variable",name:{kind:"Name",value:"completedAt"}}},{kind:"ObjectField",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subject"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"completedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCompleted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"owners"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profilePicture"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"locations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tagName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"priority"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"projectId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1080}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"mutation UpdateTask($id: ID!, $accountId: String!, $name: String!, $description: String!, $scope: Scope, $locationIds: [ID], $tagIds: [ID], $category: TaskCategory!, $subject: TaskSubject, $itemId: String, $owners: [String!], $priority: TaskPriority!, $dueDate: String!, $isCompleted: Boolean!, $createdAt: String!, $completedAt: String, $projectId: ID) {\n  updateTask(input: { id: $id, accountId: $accountId, name: $name, description: $description, scope: $scope, locationIds: $locationIds, tagIds: $tagIds, category: $category, subject: $subject, itemId: $itemId dueDate: $dueDate, owners: $owners, priority: $priority, isCompleted: $isCompleted, createdAt: $createdAt, completedAt: $completedAt, projectId: $projectId }) {\n    id\n    accountId\n    name\n    description\n    category\n    subject\n    dueDate\n    createdAt\n    completedAt\n    isCompleted\n    owners {\n      id\n      first_name\n      last_name\n      profilePicture\n    }\n    locations {\n      id\n      name\n    }\n    tags {\n      id\n      tagName\n    }\n    priority\n    projectId {\n      id\n      name\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.UpdateTask=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"UpdateTask")},24931(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSuppliersByAccountId"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getContainerTypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContainerTypeFields"},directives:[]}]}}]}}],loc:{start:0,end:147}};a.loc.source={body:'#import "../fragments/ContainerTypeFields.fragment.graphql"\n\nquery GetSuppliersByAccountId {\n  getContainerTypes {\n    ...ContainerTypeFields\n  }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(13380).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetSuppliersByAccountId=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetSuppliersByAccountId")},34862(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAccountInfoQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAccountInfo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"capacity"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:120}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAccountInfoQuery($id: ID!) {\n  getAccountInfo(id: $id) {\n    id\n    name\n    type\n    notes\n    capacity\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAccountInfoQuery=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAccountInfoQuery")},2646(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllCurrencyTypes"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCurrencyTypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:74}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllCurrencyTypes {\n  getAllCurrencyTypes {\n    id\n    name\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllCurrencyTypes=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllCurrencyTypes")},87228(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCurrencyOptions"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCurrencyTypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:87}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetCurrencyOptions {\n  getAllCurrencyTypes {\n    value: id\n    label: name\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetCurrencyOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetCurrencyOptions")},68352(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetDocumentUploadLink"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mimeType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getDocumentUploadLink"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"mimeType"},value:{kind:"Variable",name:{kind:"Name",value:"mimeType"}}}],directives:[]}]}}],loc:{start:0,end:179}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetDocumentUploadLink($accountId: ID!, $documentId: ID!, $mimeType: String!) {\n  getDocumentUploadLink(accountId: $accountId, documentId: $documentId, mimeType: $mimeType)\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetDocumentUploadLink=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetDocumentUploadLink")},27351(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetElectricityTransactionGridColumns"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderDir"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"electricityTransactionGridColumns"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"display"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dataType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filterable"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:232}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetElectricityTransactionGridColumns($orderDir: String, $accountId: ID!) {\n  electricityTransactionGridColumns @client {\n    id\n    defaultName\n    displayName\n    display\n    width\n    dataType\n    field\n    filterable\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetElectricityTransactionGridColumns=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetElectricityTransactionGridColumns")},33140(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetElectricityTransactionsPage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SortCommand"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"Filters"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getElectricityTransactionsPage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ElectricityTransactionFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:395}};a.loc.source={body:'#import "../../fragments/ElectricityTransactionFields.fragment.graphql"\n\nquery GetElectricityTransactionsPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {\n  getElectricityTransactionsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {\n    totalRows\n    rows {\n      ...ElectricityTransactionFields\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(33922).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetElectricityTransactionsPage=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetElectricityTransactionsPage")},51998(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetElectricityTransactionsPageFilter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"field"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"energyType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TransactionType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getEnergyTransactionsPageFilter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"field"},value:{kind:"Variable",name:{kind:"Name",value:"field"}}},{kind:"Argument",name:{kind:"Name",value:"energyType"},value:{kind:"Variable",name:{kind:"Name",value:"energyType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:235}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetElectricityTransactionsPageFilter($accountId: ID!, $field: String!, $energyType: TransactionType!) {\n  getEnergyTransactionsPageFilter(accountId: $accountId, field: $field, energyType: $energyType) {\n    label\n    value\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetElectricityTransactionsPageFilter=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetElectricityTransactionsPageFilter")},12505(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetEmissionsDatabaseFilters"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"field"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getEmissionsDatabaseFilters"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"field"},value:{kind:"Variable",name:{kind:"Name",value:"field"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:166}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetEmissionsDatabaseFilters($accountId: ID!, $field: String!) {\n  getEmissionsDatabaseFilters(accountId: $accountId, field: $field) {\n    value\n    label\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetEmissionsDatabaseFilters=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetEmissionsDatabaseFilters")},70359(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetEmissionsDatabasePage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SortCommand"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"Filters"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getEmissionsDatabasePage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"datasetName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recordNo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assetId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"platforms"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"releaseValves"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateOfEntryIntoDatabase"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dataEntryByName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recordDataDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assetField"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"typeOfFuelConsumption"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"units"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"oilProductionBbl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gasProductionKscf"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gasExportKscf"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gasInjectionKscf"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gasImport"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gasInjected"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelGasKscf"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flareGasKscf"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelUnits"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantityConsumed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"operationalControl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mboeAllPerDay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mboeGasPerDay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelGasCO2eT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelGasCO2T"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelGasCH4T"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuelGasN2OT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flareCO2eT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flareCO2T"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flareCH4T"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flareN2OT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ventingCO2eT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ventingCH4T"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liqFCO2eT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liqFCO2EmissionsT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liqFCH4EmissionsCO2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liqFN2OEmissionsT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liqFCH4EmissionsT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liqFN2OEmissionsTonnesN2O"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fugitiveCO2e"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fugitiveCH4T"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gasCompositionRecordUsed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"naturalGasSalesVolume"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"crudeOilSalesVolume"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"naturalGasSalesVolumeUnit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soldProductsCO2eT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soldProductsCO2T"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soldProductsCH4T"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soldProductsN2OT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ghgScope1EmissionsT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ghgScope2EmissionsT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ghgScope3EmissionsT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"waterProductionBbl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prodWaterOverboardBwpd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"oilInWaterPpm"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dataMarker"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"codeForCheckingNewDataEntry"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"monthAvWaterLimitPPM1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"monthAverageLimitP65"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"oilDischargeBpd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"noxT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soxT"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pm25T"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"coT"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1767}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetEmissionsDatabasePage(\n  $accountId: ID!\n  $offset: Int\n  $limit: Int\n  $sort: [SortCommand!]\n  $filters: Filters\n) {\n  getEmissionsDatabasePage(\n    accountId: $accountId\n    offset: $offset\n    limit: $limit\n    sort: $sort\n    filters: $filters\n  ) {\n    totalRows\n    datasetName\n    rows {\n      id\n      recordNo\n      locationId\n      accountId\n      assetId\n      platforms\n      releaseValves\n      dateOfEntryIntoDatabase\n      dataEntryByName\n      recordDataDate\n      assetField\n      location\n      country\n      typeOfFuelConsumption\n      units\n      oilProductionBbl\n      gasProductionKscf\n      gasExportKscf\n      gasInjectionKscf\n      gasImport\n      gasInjected\n      fuelGasKscf\n      flareGasKscf\n      fuelType\n      fuelUnits\n      quantityConsumed\n      operationalControl\n      notes\n      mboeAllPerDay\n      mboeGasPerDay\n      fuelGasCO2eT\n      fuelGasCO2T\n      fuelGasCH4T\n      fuelGasN2OT\n      flareCO2eT\n      flareCO2T\n      flareCH4T\n      flareN2OT\n      ventingCO2eT\n      ventingCH4T\n      liqFCO2eT\n      liqFCO2EmissionsT\n      liqFCH4EmissionsCO2\n      liqFN2OEmissionsT\n      liqFCH4EmissionsT\n      liqFN2OEmissionsTonnesN2O\n      fugitiveCO2e\n      fugitiveCH4T\n      gasCompositionRecordUsed\n      naturalGasSalesVolume\n      crudeOilSalesVolume\n      naturalGasSalesVolumeUnit\n      soldProductsCO2eT\n      soldProductsCO2T\n      soldProductsCH4T\n      soldProductsN2OT\n      ghgScope1EmissionsT\n      ghgScope2EmissionsT\n      ghgScope3EmissionsT\n      waterProductionBbl\n      prodWaterOverboardBwpd\n      oilInWaterPpm\n      dataMarker\n      codeForCheckingNewDataEntry\n      monthAvWaterLimitPPM1\n      monthAverageLimitP65\n      oilDischargeBpd\n      noxT\n      soxT\n      pm25T\n      coT\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetEmissionsDatabasePage=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetEmissionsDatabasePage")},9908(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetLocationDataOfEnergySourceById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getEnergySourceById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locationPoint"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:214}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetLocationDataOfEnergySourceById($id: ID!) {\n  getEnergySourceById(id: $id) {\n    id\n    name\n    locationPoint {\n      id\n      name\n      location {\n        id\n        name\n        code\n      }\n    }\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetLocationDataOfEnergySourceById=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetLocationDataOfEnergySourceById")},87858(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAvailableCourses"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageNumber"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownedCourses"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAvailableCourses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"pageNumber"},value:{kind:"Variable",name:{kind:"Name",value:"pageNumber"}}},{kind:"Argument",name:{kind:"Name",value:"ownedCourses"},value:{kind:"Variable",name:{kind:"Name",value:"ownedCourses"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLastPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalItemCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reaction"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EvaluationFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"assessment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EvaluationFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"metaData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cpd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"passScore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openIframe"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"learnBundleList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"restricted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courses"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:765}};a.loc.source={body:'#import "../../fragments/EvaluationFields.fragment.graphql"\n\nquery GetAvailableCourses($accountId: String!, $pageNumber: Int!, $ownedCourses: Boolean) {\n  getAvailableCourses(accountId: $accountId, pageNumber: $pageNumber, ownedCourses: $ownedCourses) {\n    isLastPage\n    totalItemCount\n    data {\n      id\n      name\n      type\n      accountId\n      reaction {\n        ...EvaluationFields\n      }\n      assessment {\n        ...EvaluationFields\n      }\n      metaData {\n        viewed\n        link\n        thumbnail\n        description\n        categories\n        cpd\n        passScore\n        url\n        openIframe\n      }\n    }\n    learnBundleList {\n      id\n      title\n      description\n      restricted\n      startDate\n      endDate\n      courses\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(14639).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetAvailableCourses=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetAvailableCourses")},68959(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getBundleByIdQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bundleId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getBundleById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"bundleId"},value:{kind:"Variable",name:{kind:"Name",value:"bundleId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"restricted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courses"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isBundleHidden"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isbBundleShow"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isMandatoryBundle"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:237}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query getBundleByIdQuery($bundleId: String!) {\n  getBundleById(bundleId: $bundleId) {\n    id\n    title\n    description\n    restricted\n    startDate\n    endDate\n    courses\n    isBundleHidden\n    isbBundleShow\n    isMandatoryBundle\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.getBundleByIdQuery=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"getBundleByIdQuery")},2204(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCourseByIdQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getCourseById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeToComplete"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"highQualityLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowQualityLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"downloadLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cpd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"passScore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:396}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetCourseByIdQuery($id: ID!, $accountId: ID!) {\n  getCourseById(id: $id, accountId: $accountId) {\n    name\n    id\n    type\n    accountId\n    metaData {\n      link\n      viewed\n      thumbnail\n      description\n      timeToComplete\n      progress\n      duration\n      views\n      highQualityLink\n      lowQualityLink\n      downloadLink\n      cpd\n      passScore\n      categories\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetCourseByIdQuery=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetCourseByIdQuery")},79568(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCoursePreviewPage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"courseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bundleId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getUserCourse"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"courseId"},value:{kind:"Variable",name:{kind:"Name",value:"courseId"}}},{kind:"Argument",name:{kind:"Name",value:"bundleId"},value:{kind:"Variable",name:{kind:"Name",value:"bundleId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bundleIdList"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeToComplete"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"highQualityLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowQualityLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"downloadLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cpd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"passScore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openIframe"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"assessment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EvaluationFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"questions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"answers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"courseId"},value:{kind:"Variable",name:{kind:"Name",value:"courseId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"givenAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"reaction"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EvaluationFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"questions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"answers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"courseId"},value:{kind:"Variable",name:{kind:"Name",value:"courseId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"givenAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"userCourseMetaData"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastUpdatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courseProgress"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"licence"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1085}};a.loc.source={body:'#import "../../fragments/EvaluationFields.fragment.graphql"\n\nquery GetCoursePreviewPage($accountId: ID!, $courseId: ID!, $userId: ID!, $bundleId: ID) {\n  getUserCourse(accountId: $accountId, courseId: $courseId, bundleId: $bundleId) {\n    name\n    id\n    type\n    accountId\n    bundleIdList\n    metaData {\n      link\n      viewed\n      thumbnail\n      description\n      timeToComplete\n      progress\n      duration\n      views\n      highQualityLink\n      lowQualityLink\n      downloadLink\n      cpd\n      passScore\n      openIframe\n      url\n      categories\n    }\n    assessment {\n      ...EvaluationFields\n      questions {\n        id\n        text\n        answers(userId: $userId, courseId: $courseId) {\n          givenAt\n          value\n        }\n      }\n    }\n    reaction {\n      ...EvaluationFields\n      questions {\n        id\n        text\n        answers(userId: $userId, courseId: $courseId) {\n          givenAt\n          value\n        }\n      }\n    }\n    userCourseMetaData(userId: $userId) {\n      lastUpdatedAt\n      courseProgress\n    }\n    licence {\n      id\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(14639).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetCoursePreviewPage=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetCoursePreviewPage")},26873(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getLearnBundleByIdQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bundleId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getLearnBundleById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"bundleId"},value:{kind:"Variable",name:{kind:"Name",value:"bundleId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"restricted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courses"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isBundleHidden"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isbBundleShow"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isMandatoryBundle"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:291}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query getLearnBundleByIdQuery($accountId: String!, $bundleId: String!) {\n  getLearnBundleById(accountId: $accountId, bundleId: $bundleId) {\n    id\n    title\n    description\n    restricted\n    startDate\n    endDate\n    courses\n    isBundleHidden\n    isbBundleShow\n    isMandatoryBundle\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.getLearnBundleByIdQuery=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"getLearnBundleByIdQuery")},15789(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetUserCourseQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"courseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userIdNullable"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bundleId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getUserCourse"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"courseId"},value:{kind:"Variable",name:{kind:"Name",value:"courseId"}}},{kind:"Argument",name:{kind:"Name",value:"bundleId"},value:{kind:"Variable",name:{kind:"Name",value:"bundleId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bundleIdList"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeToComplete"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"highQualityLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowQualityLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"downloadLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cpd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"passScore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openIframe"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"assessment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EvaluationFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"questions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"answers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"courseId"},value:{kind:"Variable",name:{kind:"Name",value:"courseId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"givenAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"reaction"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EvaluationFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"questions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"answers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"courseId"},value:{kind:"Variable",name:{kind:"Name",value:"courseId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"givenAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"userCourseMetaData"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userIdNullable"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastUpdatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courseProgress"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"licence"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1113}};a.loc.source={body:'#import "../../fragments/EvaluationFields.fragment.graphql"\n\nquery GetUserCourseQuery($accountId: ID!, $courseId: ID!, $userIdNullable: ID!, $userId: ID!, $bundleId: ID) {\n  getUserCourse(accountId: $accountId, courseId: $courseId, bundleId: $bundleId) {\n    name\n    id\n    type\n    accountId\n    bundleIdList\n    metaData {\n      link\n      viewed\n      thumbnail\n      description\n      timeToComplete\n      progress\n      duration\n      views\n      highQualityLink\n      lowQualityLink\n      downloadLink\n      cpd\n      passScore\n      openIframe\n      url\n      categories\n    }\n    assessment {\n      ...EvaluationFields\n      questions {\n        id\n        text\n        answers(userId: $userId, courseId: $courseId) {\n          givenAt\n          value\n        }\n      }\n    }\n    reaction {\n      ...EvaluationFields\n      questions {\n        id\n        text\n        answers(userId: $userId, courseId: $courseId) {\n          givenAt\n          value\n        }\n      }\n    }\n    userCourseMetaData(userId: $userIdNullable) {\n      lastUpdatedAt\n      courseProgress\n    }\n    licence {\n      id\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(14639).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetUserCourseQuery=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetUserCourseQuery")},66259(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllFuelTypeOptions"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllFuelTypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:85}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllFuelTypeOptions {\n  getAllFuelTypes {\n    value: id\n    label: name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllFuelTypeOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllFuelTypeOptions")},6166(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetFuelTransactionsPageFilter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"field"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getFuelTransactionsPageFilter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"field"},value:{kind:"Variable",name:{kind:"Name",value:"field"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:170}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetFuelTransactionsPageFilter($accountId: ID!, $field: String!) {\n  getFuelTransactionsPageFilter(accountId: $accountId, field: $field) {\n    label\n    value\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetFuelTransactionsPageFilter=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetFuelTransactionsPageFilter")},99451(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetGasTransactionGridColumns"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderDir"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"gasTransactionGridColumns"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"display"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dataType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filterable"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:216}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetGasTransactionGridColumns($orderDir: String, $accountId: ID!) {\n  gasTransactionGridColumns @client {\n    id\n    defaultName\n    displayName\n    display\n    width\n    dataType\n    field\n    filterable\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetGasTransactionGridColumns=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetGasTransactionGridColumns")},86768(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetGasTransactionsPage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SortCommand"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"Filters"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getGasTransactionsPage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GasTransactionFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:363}};a.loc.source={body:'#import "../../fragments/GasTransactionFields.fragment.graphql"\n\nquery GetGasTransactionsPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {\n  getGasTransactionsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {\n    totalRows\n    rows {\n      ...GasTransactionFields\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(47826).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetGasTransactionsPage=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetGasTransactionsPage")},330(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetGasTransactionsPageFilter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"field"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"energyType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TransactionType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getEnergyTransactionsPageFilter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"field"},value:{kind:"Variable",name:{kind:"Name",value:"field"}}},{kind:"Argument",name:{kind:"Name",value:"energyType"},value:{kind:"Variable",name:{kind:"Name",value:"energyType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:227}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetGasTransactionsPageFilter($accountId: ID!, $field: String!, $energyType: TransactionType!) {\n  getEnergyTransactionsPageFilter(accountId: $accountId, field: $field, energyType: $energyType) {\n    label\n    value\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetGasTransactionsPageFilter=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetGasTransactionsPageFilter")},3158(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetLegislationOverviews"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllLegislation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:117}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetLegislationOverviews($accountId: ID!) {\n  getAllLegislation(accountId: $accountId) {\n    id\n    title\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetLegislationOverviews=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetLegislationOverviews")},78122(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetHeatSteamTransactionsPage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SortCommand"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"Filters"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getHeatSteamTransactionsPage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"HeatSteamTransactionFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:387}};a.loc.source={body:'#import "../../fragments/HeatSteamTransactionFields.fragment.graphql"\n\nquery GetHeatSteamTransactionsPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {\n  getHeatSteamTransactionsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {\n    totalRows\n    rows {\n      ...HeatSteamTransactionFields\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(1087).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetHeatSteamTransactionsPage=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetHeatSteamTransactionsPage")},60180(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetHeatSteamTransactionsPageFilter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"field"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"energyType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TransactionType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getEnergyTransactionsPageFilter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"field"},value:{kind:"Variable",name:{kind:"Name",value:"field"}}},{kind:"Argument",name:{kind:"Name",value:"energyType"},value:{kind:"Variable",name:{kind:"Name",value:"energyType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:233}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetHeatSteamTransactionsPageFilter($accountId: ID!, $field: String!, $energyType: TransactionType!) {\n  getEnergyTransactionsPageFilter(accountId: $accountId, field: $field, energyType: $energyType) {\n    label\n    value\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetHeatSteamTransactionsPageFilter=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetHeatSteamTransactionsPageFilter")},26270(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAccountLicencesQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAccountLicences"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:144}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAccountLicencesQuery {\n  getAccountLicences {\n    id\n    createdAt\n    ownerId\n    productId\n    status\n    updatedAt\n    userId\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAccountLicencesQuery=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAccountLicencesQuery")},4271(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetLicencesByProductAndAccountQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getLicencesByProductAndAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"productId"},value:{kind:"Variable",name:{kind:"Name",value:"productId"}}},{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:256}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetLicencesByProductAndAccountQuery($productId: String!, $accountId: String!) {\n  getLicencesByProductAndAccount(productId: $productId, accountId: $accountId) {\n    id\n    createdAt\n    ownerId\n    productId\n    status\n    updatedAt\n    userId\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetLicencesByProductAndAccountQuery=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetLicencesByProductAndAccountQuery")},13758(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetProductLicencesQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getProductLicences"},arguments:[{kind:"Argument",name:{kind:"Name",value:"productId"},value:{kind:"Variable",name:{kind:"Name",value:"productId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:188}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetProductLicencesQuery($productId: String!) {\n  getProductLicences(productId: $productId) {\n    id\n    createdAt\n    ownerId\n    productId\n    status\n    updatedAt\n    userId\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetProductLicencesQuery=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetProductLicencesQuery")},35809(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAccountProductLicencesCountQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAccountProductLicencesCount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:186}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAccountProductLicencesCountQuery($accountId: String!) {\n  getAccountProductLicencesCount(accountId: $accountId) {\n    productId\n    count {\n      status\n      count\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAccountProductLicencesCountQuery=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAccountProductLicencesCountQuery")},13426(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetLocationCodes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"0"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"25"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SortCommand"}}}},defaultValue:{kind:"ListValue",values:[]},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"Filters"}},defaultValue:{kind:"ObjectValue",fields:[]},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getLocationsPage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:295}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetLocationCodes($accountId: ID!, $offset: Int = 0, $limit: Int = 25, $sort: [SortCommand!] = [], $filters: Filters = {}) {\n  getLocationsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {\n    totalRows\n    rows {\n      id\n      code\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetLocationCodes=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetLocationCodes")},60680(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetLocationsByAccountId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"0"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"25"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SortCommand"}}}},defaultValue:{kind:"ListValue",values:[]},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"Filters"}},defaultValue:{kind:"ObjectValue",fields:[]},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getLocationsPage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:302}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetLocationsByAccountId($accountId: ID!, $offset: Int = 0, $limit: Int = 25, $sort: [SortCommand!] = [], $filters: Filters = {}) {\n  getLocationsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {\n    totalRows\n    rows {\n      id\n      name\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetLocationsByAccountId=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetLocationsByAccountId")},92953(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetLocationOptions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"0"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"25"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SortCommand"}}}},defaultValue:{kind:"ListValue",values:[]},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"Filters"}},defaultValue:{kind:"ObjectValue",fields:[]},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getLocationsPage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:311}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetLocationOptions($accountId: ID!, $offset: Int = 0, $limit: Int = 25, $sort: [SortCommand!] = [], $filters: Filters = {}) {\n  getLocationsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {\n    totalRows\n    rows {\n      value: id\n      label: name\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetLocationOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetLocationOptions")},69627(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetProductsPaged"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getProductsPaged"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"IntValue",value:"10"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stripeId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"bundlesList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"restricted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isBundleHidden"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isbBundleShow"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isMandatoryBundle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"coursesList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cpd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"passScore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeToComplete"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"size"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"highQualityLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowQualityLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"downloadLink"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasPreviousPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isFirstPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isLastPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numberOfElements"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"page"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageSize"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1105}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetProductsPaged {\n  getProductsPaged(page: 1, size: 10) {\n    content {\n      itemList {\n        id\n        stripeId\n        price\n        currency\n        productType\n        createdAt\n        image\n      }\n      bundlesList {\n        id\n        title\n        description\n        restricted\n        startDate\n        endDate\n        isBundleHidden\n        isbBundleShow\n        isMandatoryBundle\n        courses {\n          id\n          name\n          metaData {\n            link\n            description\n            thumbnail\n            categories\n          }\n        }\n      }\n      coursesList {\n        name\n        id\n        type\n        metaData {\n          link\n          viewed\n          thumbnail\n          description\n          cpd\n          passScore\n          timeToComplete\n          progress\n          duration\n          views\n          size\n          highQualityLink\n          lowQualityLink\n          downloadLink\n        }\n        accountId\n      }\n    }\n    count\n    hasPreviousPage\n    isFirstPage\n    isLastPage\n    numberOfElements\n    page\n    pageCount\n    pageSize\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetProductsPaged=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetProductsPaged")},88104(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPromotionCode"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"code"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPromotionCode"},arguments:[{kind:"Argument",name:{kind:"Name",value:"code"},value:{kind:"Variable",name:{kind:"Name",value:"code"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"couponId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:165}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetPromotionCode($code: String!) {\n  getPromotionCode(code: $code) {\n    id\n    code\n    discount\n    type\n    couponId                                 \n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetPromotionCode=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetPromotionCode")},37308(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllMaterialOptions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getMaterialsByAccountID"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:133}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllMaterialOptions($accountId: ID!) {\n  getMaterialsByAccountID(accountId: $accountId) {\n    value: id\n    label: name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllMaterialOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllMaterialOptions")},77154(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllMaterialOriginOptions"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllMaterialOriginTypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:101}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllMaterialOriginOptions {\n  getAllMaterialOriginTypes {\n    value: id\n    label: name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllMaterialOriginOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllMaterialOriginOptions")},91512(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMaterialsTransactionsPageFilter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"field"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getMaterialsTransactionsPageFilter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"field"},value:{kind:"Variable",name:{kind:"Name",value:"field"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:180}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetMaterialsTransactionsPageFilter($accountId: ID!, $field: String!) {\n  getMaterialsTransactionsPageFilter(accountId: $accountId, field: $field) {\n    label\n    value\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetMaterialsTransactionsPageFilter=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetMaterialsTransactionsPageFilter")},91053(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllUnitOptions"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllUnits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:77}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllUnitOptions {\n  getAllUnits {\n    value: id\n    label: name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllUnitOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllUnitOptions")},94573(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetOilTransactionFilters"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"field"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getOilTransactionFilters"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"field"},value:{kind:"Variable",name:{kind:"Name",value:"field"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:160}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetOilTransactionFilters($accountId: ID!, $field: String!) {\n  getOilTransactionFilters(accountId: $accountId, field: $field) {\n    label\n    value\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetOilTransactionFilters=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetOilTransactionFilters")},97586(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetOilTransactionsPage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SortCommand"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"Filters"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getOilTransactionsPage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OilTransactionFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:363}};a.loc.source={body:'#import "../../fragments/OilTransactionFields.fragment.graphql"\n\nquery GetOilTransactionsPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {\n  getOilTransactionsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {\n    totalRows\n    rows {\n      ...OilTransactionFields\n    }\n  }\n} ',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(94749).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetOilTransactionsPage=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetOilTransactionsPage")},11122(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetProjects"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getProjects"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProjectFields"},directives:[]}]}}]}}],loc:{start:0,end:160}};a.loc.source={body:'#import "../../fragments/ProjectFields.fragment.graphql"\n\nquery GetProjects($accountId: ID!) {\n  getProjects(accountId: $accountId) {\n    ...ProjectFields\n  }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(88894).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetProjects=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetProjects")},20407(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRefrigerantGasGroups"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRefrigerantGasGroups"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:95}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetRefrigerantGasGroups {\n  getRefrigerantGasGroups {\n    value: id\n    label: name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetRefrigerantGasGroups=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetRefrigerantGasGroups")},25278(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRefrigerantGasTypes"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRefrigerantGasTypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:93}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetRefrigerantGasTypes {\n  getRefrigerantGasTypes {\n    value: id\n    label: name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetRefrigerantGasTypes=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetRefrigerantGasTypes")},14558(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSalesDataTransactionFilters"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"field"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSalesDataTransactionFilters"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"field"},value:{kind:"Variable",name:{kind:"Name",value:"field"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:172}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetSalesDataTransactionFilters($accountId: ID!, $field: String!) {\n  getSalesDataTransactionFilters(accountId: $accountId, field: $field) {\n    label\n    value\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetSalesDataTransactionFilters=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetSalesDataTransactionFilters")},72801(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSalesDataTransactionsPage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SortCommand"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"Filters"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSalesDataTransactionsPage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SalesDataTransactionFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:387}};a.loc.source={body:'#import "../../fragments/SalesDataTransactionFields.fragment.graphql"\n\nquery GetSalesDataTransactionsPage($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {\n  getSalesDataTransactionsPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {\n    totalRows\n    rows {\n      ...SalesDataTransactionFields\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(17101).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetSalesDataTransactionsPage=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetSalesDataTransactionsPage")},93785(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSurveyTemplatesByAccountId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSurveyTemplatesByAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:145}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"  query GetSurveyTemplatesByAccountId($accountId: ID!) {\n    getSurveyTemplatesByAccountId(accountId: $accountId) {\n      id\n      name\n    }\n  }",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetSurveyTemplatesByAccountId=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetSurveyTemplatesByAccountId")},8455(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTargetTopics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:81}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"{\n  getTargetTopics {\n    id\n    name\n    unit {\n      id\n      name\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n},41696(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTargetTypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:43}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"{\n  getTargetTypes {\n    id\n    name\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n},16237(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTargetsByAccountId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTargetsByAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TargetFields"},directives:[]}]}}]}}],loc:{start:0,end:179}};a.loc.source={body:'#import "../../fragments/TargetFields.fragment.graphql"\n\nquery GetTargetsByAccountId($accountId: ID!) {\n  getTargetsByAccountId(accountId: $accountId) {\n    ...TargetFields\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(28892).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetTargetsByAccountId=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetTargetsByAccountId")},53280(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTariffOptions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getMarketCarbonConversionFactors"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"tariff"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:138}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetTariffOptions($accountId: ID) {\n  getMarketCarbonConversionFactors(accountId: $accountId) {\n    value: id\n    label: tariff\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetTariffOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetTariffOptions")},67315(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTaskById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTaskById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TaskFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"evidence"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"evidenceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"documents"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileName"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:249}};a.loc.source={body:'#import "../../fragments/TaskFields.fragment.graphql"\n\nquery GetTaskById($id: ID!) {\n  getTaskById(id: $id) {\n    ...TaskFields\n    evidence {\n      id\n      evidenceType\n      notes\n      documents {\n        id\n        fileName\n      }\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(25032).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetTaskById=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetTaskById")},35885(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTasksByAccountId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTasksByAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TaskFields"},directives:[]}]}}]}}],loc:{start:0,end:171}};a.loc.source={body:'#import "../../fragments/TaskFields.fragment.graphql"\n\nquery GetTasksByAccountId($accountId: ID!) {\n  getTasksByAccountId(accountId: $accountId) {\n    ...TaskFields\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(25032).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetTasksByAccountId=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetTasksByAccountId")},96625(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTasksByUserId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTasksByUserId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TaskFields"},directives:[]}]}}]}}],loc:{start:0,end:192}};a.loc.source={body:'#import "../../fragments/TaskFields.fragment.graphql"\n\nquery GetTasksByUserId($userId: ID!, $accountId: ID!) {\n  getTasksByUserId(id: $userId, accountId: $accountId) {\n    ...TaskFields\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(25032).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetTasksByUserId=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetTasksByUserId")},65522(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllJourneyTargets"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllJourneyTargets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:76}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllJourneyTargets {\n  getAllJourneyTargets {\n    id\n    name\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllJourneyTargets=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllJourneyTargets")},79294(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllTransportFuelTypes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"typeId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllTransportFuelTypes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"typeId"},value:{kind:"Variable",name:{kind:"Name",value:"typeId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:114}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllTransportFuelTypes($typeId: ID) {\n  getAllTransportFuelTypes(typeId: $typeId) {\n    id\n    name\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllTransportFuelTypes=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllTransportFuelTypes")},57310(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllTransportTypes"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllTransportTypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subtypes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:117}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllTransportTypes {\n  getAllTransportTypes {\n    id\n    name\n    subtypes {\n      id\n      name\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllTransportTypes=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllTransportTypes")},73543(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTransportTransactionGridColumns"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderDir"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transportTransactionGridColumns"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"display"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dataType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filterable"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:228}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetTransportTransactionGridColumns($orderDir: String, $accountId: ID!) {\n  transportTransactionGridColumns @client {\n    id\n    defaultName\n    displayName\n    display\n    width\n    dataType\n    field\n    filterable\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetTransportTransactionGridColumns=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetTransportTransactionGridColumns")},90156(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetUserInfoByAccountId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paginationToken"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getUserInfoByAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"paginationToken"},value:{kind:"Variable",name:{kind:"Name",value:"paginationToken"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paginationToken"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"users"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"username"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"roles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"jobTitle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"department"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mobile"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profilePicture"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_active_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_time_spent_ms"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"account"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"role"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"role"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"accessLevel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"allowedLocations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tagName"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"allowedTags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tagName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:766}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetUserInfoByAccountId($accountId: String!, $limit: Int!, $paginationToken: String) {\n  getUserInfoByAccountId(accountId: $accountId, limit: $limit, paginationToken: $paginationToken) {\n    paginationToken\n    users {\n      id\n      email\n      username\n      roles\n      first_name\n      last_name\n      jobTitle\n      department\n      mobile\n      phone\n      profilePicture\n      last_active_at\n      total_time_spent_ms\n      account {\n        id\n        name\n      }\n      role {\n        role\n        name\n      }\n      accessLevel\n      allowedLocations {\n        id\n        name\n        tags {\n          id\n          tagName\n        }\n      }\n      allowedTags {\n        id\n        tagName\n        locations {\n          id\n        }\n      }\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetUserInfoByAccountId=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetUserInfoByAccountId")},80691(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllContainerTypeSizeOptions"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getContainerTypeSizePage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"IntValue",value:"100000"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"typeSizes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:156}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllContainerTypeSizeOptions {\n  getContainerTypeSizePage(page: 1, pageSize: 100000) {\n    typeSizes {\n      value: id\n      label: name\n    }\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllContainerTypeSizeOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllContainerTypeSizeOptions")},38649(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetWasteContractorOptions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SortCommand"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"Filters"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSuppliersPage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:298}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetWasteContractorOptions($accountId: ID!, $offset: Int, $limit: Int, $sort: [SortCommand!], $filters: Filters) {\n  getSuppliersPage(accountId: $accountId, offset: $offset, limit: $limit, sort: $sort, filters: $filters) {\n    totalRows\n    rows {\n      value: id\n      label: name\n    }\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetWasteContractorOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetWasteContractorOptions")},47055(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllWasteInsOptions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getWasteInsByAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"100000"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:126}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllWasteInsOptions($id: ID!) {\n  getWasteInsByAccountId(id: $id, limit: 100000) {\n    value: id\n    label: name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllWasteInsOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllWasteInsOptions")},23402(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllWasteOutsOptions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getWasteOutsByAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"100000"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:128}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetAllWasteOutsOptions($id: ID!) {\n  getWasteOutsByAccountId(id: $id, limit: 100000) {\n    value: id\n    label: name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllWasteOutsOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllWasteOutsOptions")},81526(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllWasteStreamsOptions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getWasteStreamsByAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"IntValue",value:"100000"}},{kind:"Argument",name:{kind:"Name",value:"filterValue"},value:{kind:"StringValue",value:"",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"wasteStreams"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:213}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:'query GetAllWasteStreamsOptions($accountId: ID!) {\n  getWasteStreamsByAccountId(accountId: $accountId, page: 1, pageSize: 100000, filterValue: "") {\n    wasteStreams {\n      value: id\n      label: name\n    }\n  }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetAllWasteStreamsOptions=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetAllWasteStreamsOptions")},76486(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTreatmentProcesses"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllWasteTreatmentProcesses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:85}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetTreatmentProcesses {\n  getAllWasteTreatmentProcesses {\n    id\n    name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetTreatmentProcesses=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetTreatmentProcesses")},28704(e,n,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSuppliers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderDir"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSuppliers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"IntValue",value:"1000"}},{kind:"Argument",name:{kind:"Name",value:"filterValue"},value:{kind:"StringValue",value:"Carrier",block:!1}},{kind:"Argument",name:{kind:"Name",value:"filterExpression"},value:{kind:"EnumValue",value:"EQUAL"}},{kind:"Argument",name:{kind:"Name",value:"orderDir"},value:{kind:"Variable",name:{kind:"Name",value:"orderDir"}}},{kind:"Argument",name:{kind:"Name",value:"filterBy"},value:{kind:"StringValue",value:"carrierType",block:!1}},{kind:"Argument",name:{kind:"Name",value:"utility"},value:{kind:"EnumValue",value:"WASTE"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasPreviousPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isFirstPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isLastPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalItemCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"page"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageSize"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"suppliers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SupplierFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:475}};a.loc.source={body:'#import "../../fragments/SupplierFields.fragment.graphql"\n\nquery GetSuppliers($orderDir: String, $accountId: ID!) {\n  getSuppliers(accountId: $accountId, page: 1, pageSize: 1000, filterValue: "Carrier", filterExpression: EQUAL, orderDir: $orderDir, filterBy: "carrierType", utility: WASTE) {\n    count\n    hasNextPage\n    hasPreviousPage\n    isFirstPage\n    isLastPage\n    pageCount\n    totalItemCount\n    page\n    pageSize\n    suppliers {\n      ...SupplierFields\n    }\n  }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function l(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){l(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){l(e,n)}),e.definitions&&e.definitions.forEach(function(e){l(e,n)})}a.definitions=a.definitions.concat(t(84477).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}));var r={};function o(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;l(e,n),r[e.name.value]=n}}),e.exports=a,e.exports.GetSuppliers=function(e,n){var t={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=r[n]||new Set,i=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){i.has(e)||(i.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return i.forEach(function(n){var a=o(e,n);a&&t.definitions.push(a)}),t}(a,"GetSuppliers")},40337(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetWasteContractors"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllWasteContractors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:77}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetWasteContractors {\n  getAllWasteContractors {\n    id\n    name\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetWasteContractors=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetWasteContractors")},70303(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetWasteInsByAccountId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getWasteInsByAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:112}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetWasteInsByAccountId($accountId: ID!) {\n  getWasteInsByAccountId(id: $accountId) {\n    id\n    name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetWasteInsByAccountId=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetWasteInsByAccountId")},18552(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetWasteOutsByAccountId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getWasteOutsByAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:114}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetWasteOutsByAccountId($accountId: ID!) {\n  getWasteOutsByAccountId(id: $accountId) {\n    id\n    name\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetWasteOutsByAccountId=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetWasteOutsByAccountId")},28342(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetWasteStreamsByAccountId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getWasteStreamsByAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"IntValue",value:"200"}},{kind:"Argument",name:{kind:"Name",value:"filterValue"},value:{kind:"StringValue",value:"",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"wasteStreams"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ewc"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:242}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:'query GetWasteStreamsByAccountId($accountId: ID!) {\n  getWasteStreamsByAccountId(accountId: $accountId, page: 1, pageSize: 200, filterValue: "") {\n    wasteStreams {\n      id\n      name,\n      ewc {\n        code\n        id\n      }\n    }\n  }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetWasteStreamsByAccountId=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetWasteStreamsByAccountId")},95041(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetWasteTransactionGridColumns"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderDir"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"wasteTransactionGridColumns"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"display"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dataType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filterable"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:220}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetWasteTransactionGridColumns($orderDir: String, $accountId: ID!) {\n  wasteTransactionGridColumns @client {\n    id\n    defaultName\n    displayName\n    display\n    width\n    dataType\n    field\n    filterable\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetWasteTransactionGridColumns=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetWasteTransactionGridColumns")},59802(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetWaterTransactionsPageFilter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"field"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getWaterTransactionsPageFilter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"field"},value:{kind:"Variable",name:{kind:"Name",value:"field"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:172}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"query GetWaterTransactionsPageFilter($accountId: ID!, $field: String!) {\n  getWaterTransactionsPageFilter(accountId: $accountId, field: $field) {\n    label\n    value\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GetWaterTransactionsPageFilter=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"GetWaterTransactionsPageFilter")},34226(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"OnAccountUpdated"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdated"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logoPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"showChatBot"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"n3rgyUploadGranularity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"n3rgyConsentDocumentLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accessControls"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"learn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"intelligence"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dromoUpload"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"comply"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"legislation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tagLevelLegislation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"policies"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"systems"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targets"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"frameworks"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"agreements"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"waste"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"electricity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gas"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"water"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"materials"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fuel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transport"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"refrigerants"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"heatSteam"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"buildingEnergyRatings"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"children"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logoPath"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:675}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"subscription OnAccountUpdated($id: ID!) {\n  accountUpdated(id: $id) {\n    id\n    name\n    type\n    logoPath\n    showChatBot\n    n3rgyUploadGranularity\n    n3rgyConsentDocumentLink\n    accessControls {\n      learn\n      intelligence\n      dromoUpload\n      comply {\n        legislation\n        tagLevelLegislation\n        policies\n        systems\n        targets\n        frameworks\n        agreements\n      }\n      data {\n        waste\n        electricity\n        gas\n        water\n        materials\n        fuel\n        transport\n        refrigerants\n        heatSteam\n        buildingEnergyRatings\n      }\n    }\n    children {\n      id\n      name\n      logoPath\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.OnAccountUpdated=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"OnAccountUpdated")},73469(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"LicencesPaidSubscription"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"licencesPaid"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:89}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}n.loc.source={body:"subscription LicencesPaidSubscription($id: ID!) {\n  licencesPaid(id: $id) {\n    id\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.LicencesPaidSubscription=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var l=a[n]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var s=o;o=new Set,s.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(n){var a=i(e,n);a&&t.definitions.push(a)}),t}(n,"LicencesPaidSubscription")},54551(e,n,t){var a={"./af":20736,"./af.js":20736,"./ar":87292,"./ar-dz":307,"./ar-dz.js":307,"./ar-kw":35175,"./ar-kw.js":35175,"./ar-ly":11246,"./ar-ly.js":11246,"./ar-ma":97031,"./ar-ma.js":97031,"./ar-ps":12616,"./ar-ps.js":12616,"./ar-sa":90109,"./ar-sa.js":90109,"./ar-tn":51703,"./ar-tn.js":51703,"./ar.js":87292,"./az":20036,"./az.js":20036,"./be":90598,"./be.js":90598,"./bg":56892,"./bg.js":56892,"./bm":29326,"./bm.js":29326,"./bn":78955,"./bn-bd":59014,"./bn-bd.js":59014,"./bn.js":78955,"./bo":73284,"./bo.js":73284,"./br":89111,"./br.js":89111,"./bs":51603,"./bs.js":51603,"./ca":14219,"./ca.js":14219,"./cs":92445,"./cs.js":92445,"./cv":81682,"./cv.js":81682,"./cy":17555,"./cy.js":17555,"./da":24200,"./da.js":24200,"./de":18087,"./de-at":32568,"./de-at.js":32568,"./de-ch":76622,"./de-ch.js":76622,"./de.js":18087,"./dv":50989,"./dv.js":50989,"./el":39494,"./el.js":39494,"./en-au":58263,"./en-au.js":58263,"./en-ca":18317,"./en-ca.js":18317,"./en-gb":5712,"./en-gb.js":5712,"./en-ie":44879,"./en-ie.js":44879,"./en-il":39632,"./en-il.js":39632,"./en-in":76954,"./en-in.js":76954,"./en-nz":57321,"./en-nz.js":57321,"./en-sg":15903,"./en-sg.js":15903,"./eo":61251,"./eo.js":61251,"./es":5119,"./es-do":58949,"./es-do.js":58949,"./es-mx":84093,"./es-mx.js":84093,"./es-us":1748,"./es-us.js":1748,"./es.js":5119,"./et":98270,"./et.js":98270,"./eu":8189,"./eu.js":8189,"./fa":16054,"./fa.js":16054,"./fi":17022,"./fi.js":17022,"./fil":27928,"./fil.js":27928,"./fo":65064,"./fo.js":65064,"./fr":72163,"./fr-ca":46520,"./fr-ca.js":46520,"./fr-ch":45479,"./fr-ch.js":45479,"./fr.js":72163,"./fy":47502,"./fy.js":47502,"./ga":51623,"./ga.js":51623,"./gd":69948,"./gd.js":69948,"./gl":36868,"./gl.js":36868,"./gom-deva":99221,"./gom-deva.js":99221,"./gom-latn":40622,"./gom-latn.js":40622,"./gu":55827,"./gu.js":55827,"./he":90728,"./he.js":90728,"./hi":11628,"./hi.js":11628,"./hr":17517,"./hr.js":17517,"./hu":76664,"./hu.js":76664,"./hy-am":90959,"./hy-am.js":90959,"./id":41666,"./id.js":41666,"./is":99419,"./is.js":99419,"./it":88146,"./it-ch":72172,"./it-ch.js":72172,"./it.js":88146,"./ja":64370,"./ja.js":64370,"./jv":38539,"./jv.js":38539,"./ka":74659,"./ka.js":74659,"./kk":68173,"./kk.js":68173,"./km":38895,"./km.js":38895,"./kn":48354,"./kn.js":48354,"./ko":50417,"./ko.js":50417,"./ku":1943,"./ku-kmr":67240,"./ku-kmr.js":67240,"./ku.js":1943,"./ky":73531,"./ky.js":73531,"./lb":23129,"./lb.js":23129,"./lo":95358,"./lo.js":95358,"./lt":99056,"./lt.js":99056,"./lv":24773,"./lv.js":24773,"./me":94373,"./me.js":94373,"./mi":4753,"./mi.js":4753,"./mk":5148,"./mk.js":5148,"./ml":79086,"./ml.js":79086,"./mn":81028,"./mn.js":81028,"./mr":75328,"./mr.js":75328,"./ms":65047,"./ms-my":83977,"./ms-my.js":83977,"./ms.js":65047,"./mt":6518,"./mt.js":6518,"./my":31745,"./my.js":31745,"./nb":91211,"./nb.js":91211,"./ne":47778,"./ne.js":47778,"./nl":67081,"./nl-be":53003,"./nl-be.js":53003,"./nl.js":67081,"./nn":23591,"./nn.js":23591,"./oc-lnc":46783,"./oc-lnc.js":46783,"./pa-in":86314,"./pa-in.js":86314,"./pl":9567,"./pl.js":9567,"./pt":8263,"./pt-br":64684,"./pt-br.js":64684,"./pt.js":8263,"./ro":31156,"./ro.js":31156,"./ru":60582,"./ru.js":60582,"./sd":86152,"./sd.js":86152,"./se":20767,"./se.js":20767,"./si":7315,"./si.js":7315,"./sk":65333,"./sk.js":65333,"./sl":5952,"./sl.js":5952,"./sq":53451,"./sq.js":53451,"./sr":52238,"./sr-cyrl":48849,"./sr-cyrl.js":48849,"./sr.js":52238,"./ss":12941,"./ss.js":12941,"./sv":67490,"./sv.js":67490,"./sw":35377,"./sw.js":35377,"./ta":25336,"./ta.js":25336,"./te":41604,"./te.js":41604,"./tet":12706,"./tet.js":12706,"./tg":21838,"./tg.js":21838,"./th":72711,"./th.js":72711,"./tk":68986,"./tk.js":68986,"./tl-ph":61304,"./tl-ph.js":61304,"./tlh":74523,"./tlh.js":74523,"./tr":74497,"./tr.js":74497,"./tzl":36449,"./tzl.js":36449,"./tzm":82546,"./tzm-latn":98226,"./tzm-latn.js":98226,"./tzm.js":82546,"./ug-cn":2765,"./ug-cn.js":2765,"./uk":27767,"./uk.js":27767,"./ur":1560,"./ur.js":1560,"./uz":59472,"./uz-latn":62576,"./uz-latn.js":62576,"./uz.js":59472,"./vi":37582,"./vi.js":37582,"./x-pseudo":97150,"./x-pseudo.js":97150,"./yo":16535,"./yo.js":16535,"./zh-cn":23031,"./zh-cn.js":23031,"./zh-hk":10199,"./zh-hk.js":10199,"./zh-mo":28274,"./zh-mo.js":28274,"./zh-tw":95327,"./zh-tw.js":95327};function i(e){var n=l(e);return t(n)}function l(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=l,e.exports=i,i.id=54551},10070(e,n,t){"use strict";e.exports=t.p+"doubleArrow-f10d60fc20d7ff7de68c.svg"},8948(e,n,t){"use strict";e.exports=t.p+"arrowIcon-5cf60718a3369ed847a8.svg"},94282(e,n,t){"use strict";e.exports=t.p+"clearIcon-0e6b0ae4576b737ed2c5.svg"},91171(e,n,t){"use strict";e.exports=t.p+"errorIcon-2a1886631d6931166543.svg"},55595(){},92785(){},46216(){},3308(){},44507(){},57167(){},14058(){},19719(){},99603(){},87679(){},18418(e){"use strict";e.exports=JSON.parse('{"nm":"Flow 4","ddd":0,"h":91,"w":91,"meta":{"g":"LottieFiles Figma v67"},"layers":[{"ty":0,"nm":"ð¢ https://app.lottiefiles.com/animation/d6667ad2-c1f9-48b4-89cd-2905ad24a332","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"masksProperties":[{"nm":"","inv":false,"mode":"a","x":{"a":0,"k":0},"o":{"a":0,"k":100},"pt":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":18},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":42.3}]}}],"w":91,"h":91,"refId":"1","ind":1},{"ty":0,"nm":"ð¢ https://app.lottiefiles.com/animation/d6667ad2-c1f9-48b4-89cd-2905ad24a332","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"masksProperties":[{"nm":"","inv":false,"mode":"a","x":{"a":0,"k":0},"o":{"a":0,"k":100},"pt":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":18},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":42.3}]}}],"w":91,"h":91,"refId":"18","ind":2},{"ty":0,"nm":"green","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[90],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[180],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[270],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[360],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[450],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[540],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[630],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[720],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[720],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[810],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[900],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[990],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1080],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1170],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1260],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1350],"t":145},{"s":[1440],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"w":91,"h":91,"refId":"35","ind":3},{"ty":0,"nm":"purple","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[22.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[67.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[90],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[112.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[135],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[157.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[180],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[180],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[202.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[225],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[247.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[270],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[292.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[315],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[337.5],"t":145},{"s":[360],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"w":91,"h":91,"refId":"36","ind":4},{"ty":0,"nm":"pink","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[90],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[135],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[180],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[225],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[270],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[315],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[360],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[360],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[405],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[450],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[495],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[540],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[585],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[630],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[675],"t":145},{"s":[720],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"w":91,"h":91,"refId":"37","ind":5},{"ty":4,"nm":"blue","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":145},{"s":[20,20],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":145},{"s":[45,46],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":169}]}},{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":169}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.4229,0.6192,1],"t":145},{"s":[0.4229,0.6192,1],"t":169}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}}],"ind":6}],"v":"5.7.0","fr":60,"op":168.96,"ip":0,"assets":[{"nm":"[Asset] ð¢ https://app.lottiefiles.com/animation/d6667ad2-c1f9-48b4-89cd-2905ad24a332","id":"1","layers":[{"ty":0,"nm":"Clip path group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"2","ind":1},{"ty":4,"nm":"ð¢ https://app.lottiefiles.com/animation/d6667ad2-c1f9-48b4-89cd-2905ad24a332 Bg","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":18},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":42.3}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1,1,1],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1,1,1],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1,1,1],"t":18},{"s":[1,1,1],"t":42.3}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]}}],"ind":2}]},{"nm":"[Asset] Clip path group","id":"2","layers":[{"ty":0,"nm":"__lottie_element_543","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"17","ind":1},{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"tt":1,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[59.02,59.02],"t":18},{"s":[59.02,59.02],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":118.03345489501953,"h":118.03345489501953,"refId":"3","ind":2}]},{"nm":"[Asset] Group","id":"3","layers":[{"ty":0,"nm":"Clip path group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[59.02,59.02],"t":18},{"s":[59.02,59.02],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[90],"t":18},{"s":[90],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"4","ind":1},{"ty":0,"nm":"Clip path group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[59.02,59.02],"t":18},{"s":[59.02,59.02],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[169.24],"t":18},{"s":[169.24],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"8","ind":2},{"ty":0,"nm":"Clip path group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[59.02,59.02],"t":18},{"s":[59.02,59.02],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[111.52],"t":18},{"s":[111.52],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"12","ind":3},{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":18},{"s":[20,20],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[58.52,59.52],"t":18},{"s":[58.52,59.52],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"16","ind":4}]},{"nm":"[Asset] Clip path group","id":"4","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":18},{"s":[11.67,12.34],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":18},{"s":[64.67,27.34],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"5","ind":1},{"ty":0,"nm":"__lottie_element_545","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"7","ind":2}]},{"nm":"[Asset] Group","id":"5","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":18},{"s":[11.67,12.34],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":18},{"s":[11.67,12.34],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"6","ind":1}]},{"nm":"[Asset] Group","id":"6","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[11.67,12.34],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[11.67,12.34],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0.0314,0.9216,0.651],"t":18}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] __lottie_element_545","id":"7","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0,0,0],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] Clip path group","id":"8","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":18},{"s":[4,4],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":18},{"s":[60,68],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"9","ind":1},{"ty":0,"nm":"__lottie_element_555","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"11","ind":2}]},{"nm":"[Asset] Group","id":"9","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":18},{"s":[4,4],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":18},{"s":[4,4],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"10","ind":1}]},{"nm":"[Asset] Group","id":"10","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[4,4],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[4,4],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0.5687,0.4981,0.9961],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] __lottie_element_555","id":"11","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0,0,0],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] Clip path group","id":"12","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.5,7.5],"t":18},{"s":[7.5,7.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":18},{"s":[27.51,31.51],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"13","ind":1},{"ty":0,"nm":"__lottie_element_565","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"15","ind":2}]},{"nm":"[Asset] Group","id":"13","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.5,7.5],"t":18},{"s":[7.5,7.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.5,7.5],"t":18},{"s":[7.5,7.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"14","ind":1}]},{"nm":"[Asset] Group","id":"14","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[7.5,7.5],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[7.5,7.5],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0.8942,0.2589,1],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] __lottie_element_565","id":"15","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0,0,0],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] Group","id":"16","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[20,20],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[20,20],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":18}]}},{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[],"o":[],"v":[]}],"t":0},{"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0.4196,0.6157,1],"t":18}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] __lottie_element_543","id":"17","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[0,0],[0,91],[91,91],[91,0]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[0,0],[0,91],[91,91],[91,0]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0,0,0],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] ð¢ https://app.lottiefiles.com/animation/d6667ad2-c1f9-48b4-89cd-2905ad24a332","id":"18","layers":[{"ty":0,"nm":"Clip path group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"19","ind":1},{"ty":4,"nm":"ð¢ https://app.lottiefiles.com/animation/d6667ad2-c1f9-48b4-89cd-2905ad24a332 Bg","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":18},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":42.3}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1,1,1],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1,1,1],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1,1,1],"t":18},{"s":[1,1,1],"t":42.3}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12.18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]}}],"ind":2}]},{"nm":"[Asset] Clip path group","id":"19","layers":[{"ty":0,"nm":"__lottie_element_543","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"34","ind":1},{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"tt":1,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.09,64.09],"t":18},{"s":[64.09,64.09],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":128.1800537109375,"h":128.1800537109375,"refId":"20","ind":2}]},{"nm":"[Asset] Group","id":"20","layers":[{"ty":0,"nm":"Clip path group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.09,64.09],"t":18},{"s":[64.09,64.09],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[-90],"t":18},{"s":[-90],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"21","ind":1},{"ty":0,"nm":"Clip path group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.09,64.09],"t":18},{"s":[64.09,64.09],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[154.94],"t":18},{"s":[154.94],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"25","ind":2},{"ty":0,"nm":"Clip path group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.09,64.09],"t":18},{"s":[64.09,64.09],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[-50.12],"t":18},{"s":[-50.12],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"29","ind":3},{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":18},{"s":[20,20],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[63.59,64.59],"t":18},{"s":[63.59,64.59],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"33","ind":4}]},{"nm":"[Asset] Clip path group","id":"21","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":18},{"s":[11.67,12.34],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":18},{"s":[64.67,27.34],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"22","ind":1},{"ty":0,"nm":"__lottie_element_545","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"24","ind":2}]},{"nm":"[Asset] Group","id":"22","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":18},{"s":[11.67,12.34],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":18},{"s":[11.67,12.34],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"23","ind":1}]},{"nm":"[Asset] Group","id":"23","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[11.67,12.34],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[11.67,12.34],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0.0314,0.9216,0.651],"t":18}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] __lottie_element_545","id":"24","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0,0,0],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] Clip path group","id":"25","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":18},{"s":[4,4],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":18},{"s":[60,68],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"26","ind":1},{"ty":0,"nm":"__lottie_element_555","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"28","ind":2}]},{"nm":"[Asset] Group","id":"26","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":18},{"s":[4,4],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":18},{"s":[4,4],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80.57],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"27","ind":1}]},{"nm":"[Asset] Group","id":"27","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[4,4],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[4,4],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0.5687,0.4981,0.9961],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] __lottie_element_555","id":"28","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0,0,0],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] Clip path group","id":"29","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.5,7.5],"t":18},{"s":[7.5,7.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":18},{"s":[27.51,31.51],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"30","ind":1},{"ty":0,"nm":"__lottie_element_565","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"s":[45.5,45.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"32","ind":2}]},{"nm":"[Asset] Group","id":"30","layers":[{"ty":0,"nm":"Group","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.5,7.5],"t":18},{"s":[7.5,7.5],"t":42.3}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"s":[100,100],"t":42.3}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.5,7.5],"t":18},{"s":[7.5,7.5],"t":42.3}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"s":[0],"t":42.3}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":18},{"s":[0],"t":42.3}]}},"w":91,"h":91,"refId":"31","ind":1}]},{"nm":"[Asset] Group","id":"31","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[7.5,7.5],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[7.5,7.5],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0.8942,0.2589,1],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] __lottie_element_565","id":"32","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,0],[91,0],[91,91],[0,91],[0,0]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0,0,0],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] Group","id":"33","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[20,20],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[20,20],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":18}]}},{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[],"o":[],"v":[]}],"t":0},{"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0.4196,0.6157,1],"t":18}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] __lottie_element_543","id":"34","layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":169.96,"ip":18,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100,100],"t":0},{"s":[100,100],"t":18}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0],"t":0},{"s":[45.5,45.5],"t":18}]},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[0],"t":18}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"s":[0],"t":42.3}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[0,0],[0,91],[91,91],[91,0]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[0,0],[0,91],[91,91],[91,0]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":0},{"s":[0,0,0],"t":18}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"s":[100],"t":18}]}}],"ind":1}]},{"nm":"[Asset] green","id":"35","layers":[{"ty":4,"nm":"green","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":145},{"s":[11.67,12.34],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":145},{"s":[64.67,27.34],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":145},{"s":[100],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":169}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":145},{"s":[0.0314,0.9216,0.6549],"t":169}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}}],"ind":1},{"ty":4,"nm":"green Bg","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":169}]}}],"ind":2}]},{"nm":"[Asset] purple","id":"36","layers":[{"ty":4,"nm":"purple","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":145},{"s":[4,4],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":145},{"s":[60,68],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":169}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":145},{"s":[0.5687,0.4981,0.9961],"t":169}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}}],"ind":1},{"ty":4,"nm":"purple Bg","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":169}]}}],"ind":2}]},{"nm":"[Asset] pink","id":"37","layers":[{"ty":4,"nm":"pink","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":145},{"s":[7.51,7.51],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":145},{"s":[27.51,31.51],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[95],"t":145},{"s":[95],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":169}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":145},{"s":[0.8942,0.2589,1],"t":169}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}}],"ind":1},{"ty":4,"nm":"pink Bg","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":169}]}}],"ind":2}]}]}')},9794(e){"use strict";e.exports=JSON.parse('{"nm":"Flow 2","ddd":0,"h":91,"w":91,"meta":{"g":"LottieFiles Figma v67"},"layers":[{"ty":0,"nm":"green","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[90],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[180],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[270],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[360],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[450],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[540],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[630],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[720],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[720],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[810],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[900],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[990],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1080],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1170],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1260],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[1350],"t":145},{"s":[1440],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"w":91,"h":91,"refId":"1","ind":1},{"ty":0,"nm":"purple","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[22.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[67.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[90],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[112.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[135],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[157.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[180],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[180],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[202.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[225],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[247.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[270],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[292.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[315],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[337.5],"t":145},{"s":[360],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"w":91,"h":91,"refId":"2","ind":2},{"ty":0,"nm":"pink","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[90],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[135],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[180],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[225],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[270],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[315],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[360],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[360],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[405],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[450],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[495],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[540],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[585],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[630],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[675],"t":145},{"s":[720],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"w":91,"h":91,"refId":"3","ind":3},{"ty":4,"nm":"blue","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[20,20],"t":145},{"s":[20,20],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45,46],"t":145},{"s":[45,46],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[7.81,-7.81],[-7.81,-7.81],[-7.81,7.81],[7.81,7.81]],"o":[[-7.81,-7.81],[-7.81,7.81],[7.81,7.81],[7.81,-7.81],[0,0]],"v":[[34.14,5.86],[5.86,5.86],[5.86,34.14],[34.14,34.14],[34.14,5.86]]}],"t":169}]}},{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[0,5.52],[5.52,0],[0,-5.52],[-5.52,0]],"o":[[5.52,0],[0,-5.52],[-5.52,0],[0,5.52],[0,0]],"v":[[20,30],[30,20],[20,10],[10,20],[20,30]]}],"t":169}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.1804,0.2432,1],"t":145},{"s":[0.1804,0.2432,1],"t":169}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}}],"ind":4}],"v":"5.7.0","fr":60,"op":168.96,"ip":0,"assets":[{"nm":"[Asset] green","id":"1","layers":[{"ty":4,"nm":"green","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[11.67,12.34],"t":145},{"s":[11.67,12.34],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[64.67,27.34],"t":145},{"s":[64.67,27.34],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":145},{"s":[80],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[-2.44,-1.29],[-3.04,-7.41],[2.55,-1.05],[1.05,2.55],[4.97,2.62],[-1.29,2.44]],"o":[[1.29,-2.44],[7.03,3.7],[1.05,2.55],[-2.55,1.05],[-2.14,-5.22],[-2.44,-1.29],[0,0]],"v":[[0.58,2.67],[7.33,0.58],[22.97,17.78],[20.24,24.3],[13.72,21.57],[2.67,9.42],[0.58,2.67]]}],"t":169}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.0314,0.9216,0.6549],"t":145},{"s":[0.0314,0.9216,0.6549],"t":169}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}}],"ind":1},{"ty":4,"nm":"green Bg","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":169}]}}],"ind":2}]},{"nm":"[Asset] purple","id":"2","layers":[{"ty":4,"nm":"purple","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[4,4],"t":145},{"s":[4,4],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[60,68],"t":145},{"s":[60,68],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":145},{"s":[80],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[0.23,-2.2],[2.2,0.23],[-0.23,2.2],[-2.2,-0.23]],"o":[[2.2,0.23],[-0.23,2.2],[-2.2,-0.23],[0.23,-2.2],[0,0]],"v":[[4.41,0.02],[7.98,4.41],[3.59,7.98],[0.02,3.59],[4.41,0.02]]}],"t":169}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.5687,0.4981,0.9961],"t":145},{"s":[0.5687,0.4981,0.9961],"t":169}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}}],"ind":1},{"ty":4,"nm":"purple Bg","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":169}]}}],"ind":2}]},{"nm":"[Asset] pink","id":"3","layers":[{"ty":4,"nm":"pink","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[7.51,7.51],"t":145},{"s":[7.51,7.51],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[27.51,31.51],"t":145},{"s":[27.51,31.51],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[80],"t":145},{"s":[80],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[-2.93,-2.93],[2.93,-2.93],[2.93,2.93],[-2.93,2.93]],"o":[[2.93,-2.93],[2.93,2.93],[-2.93,2.93],[-2.93,-2.93],[0,0]],"v":[[2.2,2.2],[12.81,2.2],[12.81,12.81],[2.2,12.81],[2.2,2.2]]}],"t":169}]}},{"ty":"fl","bm":0,"hd":false,"nm":"","c":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0.8942,0.2589,1],"t":145},{"s":[0.8942,0.2589,1],"t":169}]},"r":1,"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}}],"ind":1},{"ty":4,"nm":"pink Bg","sr":1,"st":0,"op":169.96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"s":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100,100],"t":145},{"s":[100,100],"t":169}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[45.5,45.5],"t":145},{"s":[45.5,45.5],"t":169}]},"r":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[0],"t":145},{"s":[0],"t":169}]},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[100],"t":145},{"s":[100],"t":169}]}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"","d":1,"ks":{"a":1,"k":[{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":0},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":6},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":12},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":18},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":42},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":48},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":54},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":60},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":84},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":85},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":91},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":97},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":103},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":127},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":133},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":139},{"o":{"x":0,"y":0},"i":{"x":1,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":145},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[91,0],[91,91],[0,91],[0,0]]}],"t":169}]}}],"ind":2}]}]}')},62651(e){"use strict";e.exports=JSON.parse('[{"section":"GENERAL","content":"Animals don’t pollute the environment. So please behave like animals.","source":null},{"section":"GENERAL","content":"The term sustainability has its most known roots in the 1987 Brundtland Report which officially defined sustainable development for the first time.","source":null},{"section":"GENERAL","content":"In 2016 many world leaders adopted the United Nation’s 17 global goals/Sustainable Development Goals to improve life all around the world and preserve the earth’s resources and fight climate change.","source":null},{"section":"GENERAL","content":"Climate change is defined as “a change of climate that is attributed directly or indirectly to human activity, that alters the composition of the global atmosphere, and that is in addition to natural climate variability over a comparable time period.”","source":null},{"section":"GENERAL","content":"When organic matter is composted, organic matter is converted into stable soil carbon, “while retaining water and nutrients of the original waste matter.” This results in carbon sequestration and the production of a high quality fertilizer.","source":null},{"section":"GENERAL","content":"When organic matter is landfilled it decomposes and produces gas methane which is up to 34 times more powerful than carbon dioxide over a century, thus contributing to climate change.","source":null},{"section":"GENERAL","content":"Nearly half of the solid waste produced globally is organic or biodegradable.","source":null},{"section":"GENERAL","content":"Agricultural Emissions could be reduced by as much as 70% by adopting a vegan diet and 63% by adopting a vegetarian diet.","source":null},{"section":"GENERAL","content":"Plant-rich diets reduce emissions and tend to be healthier, leading to lower rates of chronic disease.","source":null},{"section":"GENERAL","content":"The use of water efficient fittings and fixtures has the ability to cut water use in homes by 45%.","source":null},{"section":"GENERAL","content":"Water use has grown at more than twice the rate of population increase in the last century.","source":null},{"section":"GENERAL","content":"70% of the world is covered by water, yet only 2.5% of it is fresh and only 1% of it is easily accessible for human use.","source":null},{"section":"GENERAL","content":"If people worldwide switched to energy efficient light bulbs the world would save 105 billion euros annually.","source":null},{"section":"GENERAL","content":"Energy is the dominant contributor to climate change, accounting for around 60% of total global greenhouse gas emissions.","source":null},{"section":"GENERAL","content":"Human-caused emissions of carbon dioxide need to fall 45% from 2010 levels by 2030 and reach net-zero around 2050 to limit climate change catastrophe.","source":null},{"section":"GENERAL","content":"Recycling one ton of paper saves 2584l of oil, 26498l of water and 2.5 cubic meters of landfill space.","source":null},{"section":"GENERAL","content":"The world’s indigenous population makes up just 5% of the global population yet protects 80% of global biodiversity.","source":null},{"section":"GENERAL","content":"Plastic bags and Styrofoam containers can take up to thousands of years to decompose leading to marine animal death and the contamination of soil and water.","source":null},{"section":"GENERAL","content":"The production of plastic is largely reliant on fossil hydrocarbons, which are non-renewable resources which contribute to climate change.","source":null},{"section":"GENERAL","content":"The process of Aforestation (creating new forests where there were none) creates a carbon sink. This draws in and holds on to carbon and distributes it into the soil.","source":null},{"section":"GENERAL","content":"Recycled paper produces about 25% fewer total emissions than conventional paper.","source":null},{"section":"REPORTING","content":"Analysing complex datasets to give you a clear view of your environmental impact...","source":null},{"section":"REPORTING","content":"Drawing connections across thousands of data points... Building your eco-insightful dashboard.","source":null},{"section":"REPORTING","content":"Interpreting large volumes of data to create your sustainability snapshot... Hang tight!","source":null},{"section":"REPORTING","content":"Reviewing extensive datasets from multiple sites. We\'re almost ready.","source":null},{"section":"REPORTING","content":"Our system is sorting through massive data volumes. Almost there...","source":null},{"section":"GENERAL","content":"Sustainability is no longer about doing less harm. It’s about doing more good.","source":"Jochen Zeitz"},{"section":"GENERAL","content":"The greatest threat to our planet is the belief that someone else will save it.","source":"Robert Swan"},{"section":"GENERAL","content":"Sustainability is the key to our survival on this planet and will also determine success on all levels.","source":"Shari Arison"},{"section":"GENERAL","content":"To leave the world better than you found it, sometimes you have to pick up other people\'s trash.","source":"Bill Nye"},{"section":"GENERAL","content":"Sustainability is a journey, not a destination.","source":null},{"section":"GENERAL","content":"The best time to plant a tree was 20 years ago. The second best time is now.","source":null},{"section":"GENERAL","content":"It’s not about ideas. It’s about making ideas happen.","source":"Scott Belsky"},{"section":"GENERAL","content":"Act as if what you do makes a difference. It does.","source":"William James"},{"section":"GENERAL","content":"Sustainable development is the pathway to the future we want for all.","source":"Ban Ki-moon"},{"section":"GENERAL","content":"Sustainability is about ecology, economy, and equity.","source":"Ralph Bicknese"},{"section":"GENERAL","content":"Small acts, when multiplied by millions of people, can transform the world.","source":"Howard Zinn"},{"section":"GENERAL","content":"The only way forward, if we are going to improve the quality of the environment, is to get everybody involved.","source":"Richard Rogers"},{"section":"GENERAL","content":"Change is happening, whether we like it or not. We can either shape it or be shaped by it.","source":"David Suzuki"},{"section":"GENERAL","content":"The future depends on what we do in the present.","source":"Mahatma Gandhi"},{"section":"GENERAL","content":"We do not inherit the Earth from our ancestors, we borrow it from our children.","source":null}]')}},e=>{e.O(0,[548,685,536,914,190,716],()=>e(e.s=41738)),e.O()}]);
//# sourceMappingURL=main.365c8e763c5c0fd1c092.js.map