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hBD,OAAOC,QAAQC,MAAMA,EAAMqB,QAC7B,GAEJ,C,mFClNAC,EAAAA,EAAMC,QAEN5F,IAAAA,WAAsB,CACpBiD,OAAQ,CAAC,WACT1C,MAAO,CACLC,gBAAiB,OACjBqF,MAAO,CACL,cAAe/F,EAAAA,GAAgByC,KAAK,QAGxCuD,MAAO,CACLvB,KAAM,WACNwB,WAAY,EACZC,WAAW,EACXC,UAAW,UACXC,OAAQ,CACNC,SAAU,EACVN,MAAO,CACL7I,SAAU,OACV6F,MAAO,aAIbuD,MAAO,CACLC,WAAY,EACZC,IAAK,EACLJ,OAAQ,CACNL,MAAO,CACL7I,SAAU,OACV6F,MAAO,UACP0D,WAAY,YAIlBnD,QAAS,CACP5C,gBAAiB,UACjB6C,YAAa,UACbmD,aAAc,EACdC,YAAa,EACbC,SAAS,EACTC,gBAAgB,EAChBjE,QAAS,EACTkE,OAAQ,CACN/D,MAAO,UACPgE,QAAS,IACTC,QAAS,EACTC,QAAS,EACTtK,MAAO,GAET6G,UAAW,WACT,MAAO,+DAAiEhH,KAAKa,EAAI,UAAQuG,EAAAA,EAAAA,IAAcpH,KAAKc,GAAK,MACnH,GAGFuG,QAAS,CAAExC,SAAS,KAGtBgD,OAAOnE,WAAaA,G","sources":["webpack://app/./app/assets/images/contracts.svg","webpack://app/./app/assets/images/dates.svg","webpack://app/./app/assets/images/sectors.svg","webpack://app/./app/assets/images/buyers.svg","webpack://app/./app/assets/images/value.svg","webpack://app/./app/assets/images/suppliers.svg","webpack://app/./app/javascript/constants.js","webpack://app/./app/javascript/highchart_options.ts","webpack://app/./app/javascript/packs/application.js"],"sourcesContent":["var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nconst SvgContracts = props => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 13,\n height: 16\n}, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#aaa\",\n d: \"M0 1.6v12.8c0 .88.72 1.6 1.6 1.6h9.6c.88 0 1.8-.72 1.8-1.6V5L8 0H1.6C.72 0 0 .72 0 1.6Zm7-.4L11.6 6H7V1.2Z\"\n})));\nexport default SvgContracts;","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nconst SvgDates = props => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 16,\n height: 18\n}, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#aaa\",\n fillRule: \"evenodd\",\n d: \"M12 10H8v4h4v-4Zm-1-8H5V0H3v2H1.778C.8 2 0 3.01 0 4v12.2c0 .99.8 1.8 1.778 1.8h12.444C15.2 18 16 17.19 16 16.2V4c0-.99-.8-2-1.778-2H13V0h-2v2Zm3 14H2V6h12v10Z\"\n})));\nexport default SvgDates;","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nconst SvgSectors = props => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 16,\n height: 16\n}, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#aaa\",\n d: \"M0 16V0h5v11l4-5h2v5l3-5h2v10z\"\n})));\nexport default SvgSectors;","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nconst SvgBuyers = props => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 13,\n height: 16\n}, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#aaa\",\n d: \"M11 0H3v2H0v14h5v-2h3v2h5V2h-3V0h1ZM6 12H4v-2h2v2Zm0-3H4V7h2v2Zm0-3H4V4h2v2Zm3 6H7v-2h2v2Zm0-3H7V7h2v2ZM7 6V4.024h2V6H7Z\"\n})));\nexport default SvgBuyers;","var _text;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nconst SvgValue = props => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 10,\n height: 15\n}, props), _text || (_text = /*#__PURE__*/React.createElement(\"text\", {\n fill: \"#aaa\",\n fillRule: \"evenodd\",\n fontFamily: \"SourceSansPro-Bold, Source Sans Pro\",\n fontSize: 22,\n fontWeight: \"bold\",\n transform: \"translate(-1 -7)\"\n}, /*#__PURE__*/React.createElement(\"tspan\", {\n x: 0,\n y: 22\n}, \"\\xA3\"))));\nexport default SvgValue;","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nconst SvgSuppliers = props => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 14,\n height: 16\n}, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#aaa\",\n fillRule: \"evenodd\",\n d: \"M11.636 0H1.455C.655 0 0 .655 0 1.455v9.381c0 .51.218.946.655 1.237L6.545 16l5.891-3.927c.364-.291.655-.728.655-1.237V1.455c0-.8-.655-1.455-1.455-1.455ZM5.091 10.91 1.455 7.272l1.018-1.018L5.09 8.873l5.527-5.528 1.018 1.019-6.545 6.545Z\"\n})));\nexport default SvgSuppliers;","// Import all our icon SVGs\nimport ContractsIcon from '../assets/images/contracts.svg';\nimport DatesIcon from '../assets/images/dates.svg';\nimport SectorsIcon from '../assets/images/sectors.svg';\nimport BuyersIcon from '../assets/images/buyers.svg';\nimport ValueIcon from '../assets/images/value.svg';\nimport SuppliersIcon from '../assets/images/suppliers.svg';\n\n// If you are adding a new option to the opportunityStatusOptions filter\n// see comments in lib/filter/checkbox.rb above #assign_nil_to_contract_status_other_filter\nconst opportunityStatusOptions = [\n ['Open', 'Open tender'],\n ['Closed', 'Closed tender'],\n ['Pre-Information', 'Future opportunity'],\n ['Other', 'Other']\n];\n\nconst contractSMEOptions = [\n ['Y', 'Yes'],\n ['N', 'No'],\n ['All', 'Include all']\n];\n\nconst contractFrameworkOptions = [\n ['Y', 'Yes'],\n ['N', 'No'],\n ['All', 'Include all']\n];\n\nconst suitableSMEOptions = [\n ['true', 'Yes'],\n ['false', 'No'],\n ['All', 'Include all']\n];\n\nconst supplierSMEOptions = [\n ['Y', 'Yes'],\n ['N', 'No'],\n ['All', 'Include all']\n];\n\nconst supplierNameAndOrCategoryOptions = [\n ['and', 'Filter by name and category'],\n ['or', 'Filter by name or category']\n];\n\nconst contractTypeOptions = [\n ['Works', 'Works'],\n ['Services', 'Services'],\n ['Products', 'Products'],\n ['Supplies', 'Supplies'],\n ['None', 'Not specified']\n];\n\nconst keyDecisionMakerSeniorityOptions = [\n ['Chairman', 'Chairman'],\n ['Vice/Deputy Chairman', 'Vice / Deputy Chairman'],\n ['Chief Officer', 'Chief Officer'],\n ['Deputy/Assistant Chief Officer', 'Deputy / Assistant Chief Officer'],\n ['Clerk/Secretary', 'Clerk / Secretary'],\n ['Top Level Director', 'Top Level Director'],\n ['Second Level / Head of Service', 'Second Level / Head of Service'],\n ['Third Level/Head of Service/Manager', 'Third Level / Head of Service / Manager'],\n ['Unspecified', 'Unspecified']\n];\n\nconst isCalloffOptions = [\n ['Y', 'Yes'],\n ['N', 'No'],\n ['All', 'Include all']\n];\n\n// TODO: Live/Expired Date\n// KEEP after removing feature flag, this is used in constants below: allRelativeDateOptionsWithLiveDateOptions, allRelativeDateOptionsWithLiveDateOptionsAndPrevFinancialYear\n// Remove comment after removing feature flag\nconst liveDateOptions = [\n ['live', 'Live'],\n ['live_and_unknown', 'Live and Unknown'],\n ['expired', 'Expired']\n];\n\nconst invoiceBuyerTypes = [\n {\n label: '',\n options: [\n ['Central Government', 'Central Government'],\n ['Local Government', 'Local Government'],\n ['NHS', 'NHS'],\n ['Rail', 'Rail'],\n ['Devolved Transport', 'Devolved Transport'],\n ['Policing', 'Policing'],\n ['Fire Service', 'Fire Service'],\n ['Charitable Organisation', 'Charitable Organisation'],\n ['Private Limited', 'Private Limited']\n ]\n }\n];\n\nconst invoiceSupplierTypes = [\n ['private', 'Private'],\n ['public', 'Public'],\n ['All', 'All']\n];\n\nconst pastDates = {\n label: 'Past',\n options: [\n ['prev_24_months', 'Last 24 months'],\n ['prev_12_months', 'Last 12 months'],\n ['prev_6_months', 'Last 6 months'],\n ['prev_3_months', 'Last 3 months'],\n ['prev_30_days', 'Last 30 days'],\n ['prev_14_days', 'Last 14 days'],\n ['prev_7_days', 'Last 7 days'],\n ['prev_calendar_year', 'Previous calendar year'],\n ['year_to_date', 'Year to date'],\n ['month_to_date', 'Month to date']\n ]\n};\n\n// TODO: Financial Year\n// KEEP after removing feature flag, this is used in constants below: justPastDatesWithPrevFinancialYear, allRelativeDateOptionsWithPrevFinancialYear, pastRelativeDateOptionsWithPrevFinancialYear\n// Remove comment after removing feature flag\nconst pastDatesWithPrevFinancialYear = {\n label: 'Past',\n options: [\n ['prev_24_months', 'Last 24 months'],\n ['prev_12_months', 'Last 12 months'],\n ['prev_6_months', 'Last 6 months'],\n ['prev_3_months', 'Last 3 months'],\n ['prev_30_days', 'Last 30 days'],\n ['prev_14_days', 'Last 14 days'],\n ['prev_7_days', 'Last 7 days'],\n ['prev_financial_year', 'Previous financial year'],\n ['prev_calendar_year', 'Previous calendar year'],\n ['year_to_date', 'Year to date'],\n ['month_to_date', 'Month to date']\n ]\n};\n\nconst futureDates = {\n label: 'Future',\n options: [\n ['next_7_days', 'Next 7 days'],\n ['next_14_days', 'Next 14 days'],\n ['next_30_days', 'Next 30 days'],\n ['next_3_months', 'Next 3 months'],\n ['next_6_months', 'Next 6 months'],\n ['next_12_months', 'Next 12 months'],\n ['next_24_months', 'Next 24 months']\n ]\n};\n\nconst presentDates = {\n label: 'Present',\n options: [\n ['yesterday', 'Yesterday'],\n ['today', 'Today'],\n ['tomorrow', 'Tomorrow']\n ]\n};\n\nconst justPastDates = [\n pastDates\n];\n\n// TODO: Financial Year\n// KEEP after removing feature flag, this is used in app/javascript/invoice_filter_sidebar/index.jsx\n// Remove comment after removing feature flag\nconst justPastDatesWithPrevFinancialYear = [\n pastDatesWithPrevFinancialYear\n];\n\nconst pastRelativeDateOptions = [\n pastDates,\n {\n label: 'Present',\n options: [\n ['yesterday', 'Yesterday'], ['today', 'Today']\n ]\n }\n];\n\nconst allRelativeDateOptions = [\n pastDates,\n presentDates,\n futureDates\n];\n\n// TODO: Financial Year\n// KEEP after removing feature flag, this is used in:\n// app/javascript/contract_award_filter_sidebar/index.jsx, app/javascript/contract_notice_filter_sidebar/index.jsx, app/javascript/framework_filter_sidebar/index.jsx\n// Remove comment after removing feature flag\nconst allRelativeDateOptionsWithPrevFinancialYear = [\n pastDatesWithPrevFinancialYear,\n presentDates,\n futureDates\n];\n\n// TODO: Financial Year\n// KEEP after removing feature flag, this is used in:\n// app/javascript/contract_award_filter_sidebar/index.jsx, app/javascript/framework_filter_sidebar/index.jsx\n// Remove comment after removing feature flag\nconst pastRelativeDateOptionsWithPrevFinancialYear = [\n pastDatesWithPrevFinancialYear,\n {\n label: 'Present',\n options: [\n ['yesterday', 'Yesterday'], ['today', 'Today']\n ]\n }\n];\n\n// TODO: Live/Expired Date\n// KEEP after removing feature flag, this is used in:\n// app/javascript/contract_award_filter_sidebar/index.jsx\n// Remove comment after removing feature flag\nconst allRelativeDateOptionsWithLiveDateOptions = [\n {\n label: 'Status',\n options: liveDateOptions\n },\n ...allRelativeDateOptions\n];\n\n// TODO: Live/Expired Date\n// KEEP after removing feature flag, this is used in:\n// app/javascript/contract_award_filter_sidebar/index.jsx, app/javascript/framework_filter_sidebar/index.jsx\n// Remove comment after removing feature flag\nconst allRelativeDateOptionsWithLiveDateOptionsAndPrevFinancialYear = [\n {\n label: 'Status',\n options: liveDateOptions\n },\n ...allRelativeDateOptionsWithPrevFinancialYear\n];\n\nconst buyerTypeOptions = [\n {\n label: 'Public Sector',\n options: [\n ['Central Government', 'Central Government'],\n ['Local Government', 'Local Government'],\n ['NHS', 'NHS'],\n ['Rail', 'Rail'],\n ['Devolved Transport', 'Devolved Transport'],\n ['Policing', 'Policing'],\n ['Fire Service', 'Fire Service'],\n ['Further and Higher Education', 'Further and Higher Education'],\n ['Schools', 'Schools'],\n ['Parish Councils', 'Parish Councils']\n ]\n },\n {\n label: 'Private Sector',\n options: [\n ['Limited Liability Partnership', 'Limited Liability Partnership'],\n ['Private Limited', 'Private Limited'],\n ['Private Limited w/o Share Capital', 'Private Limited w/o Share Capital'],\n ['Private Unlimited', 'Private Unlimited'],\n ['Public Limited Company', 'Public Limited Company'],\n ['Non Limited', 'Non Limited'],\n ['Foreign Company', 'Foreign Company'],\n ['Joint Venture', 'Joint Venture'],\n ['Unknown', 'Unknown']\n ]\n },\n {\n label: 'Non Profit',\n options: [\n ['Housing Association', 'Housing Association'],\n ['Charitable Organisation', 'Charitable Organisation'],\n ['Non Profit Organisation', 'Non Profit Organisation'],\n ['The Church of England', 'The Church of England']\n ]\n }\n];\n\nconst employeeCountOptions = [\n ['1 - 10', '1 - 10'],\n ['11 - 50', '11 - 50'],\n ['51 - 250', '51 - 250'],\n ['251 - 500', '251 - 500'],\n ['501 - 1000', '501 - 1000'],\n ['1001 - 5000', '1001 - 5000'],\n ['5001 - 10,000', '5001 - 10,000'],\n ['10,000+', '10,000+'],\n ['Unknown', 'Unknown']\n];\n\n// Export our icons in an object\nconst icons = {\n contracts: ContractsIcon,\n dates: DatesIcon,\n sectors: SectorsIcon,\n buyers: BuyersIcon,\n value: ValueIcon,\n suppliers: SuppliersIcon\n};\n\nconst chartFontFamily = [\n 'Untitled Sans',\n 'Inter',\n 'Roboto',\n 'Helvetica Neue',\n 'Arial Nova',\n 'Nimbus Sans',\n 'Arial',\n 'sans-serif'\n];\n\nexport {\n contractSMEOptions,\n contractFrameworkOptions,\n contractTypeOptions,\n allRelativeDateOptions,\n allRelativeDateOptionsWithPrevFinancialYear,\n allRelativeDateOptionsWithLiveDateOptions,\n allRelativeDateOptionsWithLiveDateOptionsAndPrevFinancialYear,\n justPastDates,\n justPastDatesWithPrevFinancialYear,\n opportunityStatusOptions,\n pastRelativeDateOptions,\n pastRelativeDateOptionsWithPrevFinancialYear,\n suitableSMEOptions,\n supplierSMEOptions,\n supplierNameAndOrCategoryOptions,\n isCalloffOptions,\n buyerTypeOptions,\n employeeCountOptions,\n invoiceBuyerTypes,\n invoiceSupplierTypes,\n keyDecisionMakerSeniorityOptions,\n icons,\n chartFontFamily\n};\n","import type { Options } from 'highcharts';\nimport * as Highcharts from 'highcharts';\nimport { merge as deepMerge } from 'lodash';\n// @ts-expect-error chartFontFamily is an array of strings\nimport { chartFontFamily } from './constants';\nimport exporting from 'highcharts/modules/exporting';\nimport offlineExporting from 'highcharts/modules/offline-exporting';\nimport accessibility from 'highcharts/modules/accessibility';\n\n// Create a type alias for Highcharts to avoid circular reference issues\ntype HighchartsType = typeof Highcharts;\n\nexport const highchartsOptionsWithExporting = function(Highcharts: HighchartsType, overrides: Options = {}): Options {\n exporting(Highcharts);\n offlineExporting(Highcharts);\n accessibility(Highcharts);\n\n const options = highchartsOptions(Highcharts, {\n // See https://api.highcharts.com/highcharts/exporting\n exporting: {\n chartOptions: {\n chart: {\n backgroundColor: 'white',\n },\n plotOptions: {\n column: {\n pointPadding: 0.2,\n pointWidth: undefined, // Ensure this value is not defined.\n }\n }\n },\n scale: 1.25,\n sourceWidth: 1280,\n sourceHeight: 540,\n buttons: {\n contextButton: {\n enabled: false \n },\n // Frustratingly, this is undocumented in the Highcharts API.\n exportButton: {\n // See https://api.highcharts.com/highcharts/exporting.buttons.contextButton.menuItems\n menuItems: [\n 'downloadPNG',\n 'downloadPDF'\n ],\n theme: {\n fill: 'transparent',\n // See https://api.highcharts.com/highcharts/plotOptions.series.states\n states: {\n hover: {\n fill: 'transparent'\n },\n select: {\n fill: 'transparent'\n }\n }\n },\n useHTML: true,\n text: `\n \n Export\n
\n \n \n \n \n
\n \n `\n }\n },\n // See https://api.highcharts.com/highcharts/exporting.menuItemDefinitions\n menuItemDefinitions: {\n // viewFullscreen: {},\n // printChart: {},\n // separator: {},\n downloadPNG: {\n onclick: onDownload({ exportFormat: 'PNG' }),\n text: 'Download chart as a PNG image'\n },\n // downloadJPEG: {},\n // downloadSVG: {},\n downloadPDF: {\n onclick: onDownload({ exportFormat: 'PDF' }),\n text: 'Download chart as a PDF'\n }\n }\n },\n navigation: {\n buttonOptions: {\n align: 'left',\n verticalAlign: 'bottom'\n },\n menuItemStyle: {\n fontFamily: chartFontFamily.join(','),\n fontSize: '14px',\n letterSpacing: '0',\n lineHeight: '18px',\n padding: '0.5em'\n },\n menuStyle: {\n padding: '0',\n backgroundColor: 'rgb(249 250 251)',\n border: '1px solid rgb(249 250 251)',\n color: 'rgb(75 85 99)',\n boxShadow: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)'\n },\n menuItemHoverStyle: {\n backgroundColor: 'rgb(229 231 235)',\n color: 'rgb(17 24 39)'\n }\n }\n });\n\n return deepMerge(options, overrides);\n};\n\nexport const highchartsOptions = function(Highcharts: HighchartsType, overrides: Options = {}): Options {\n // Set default options for Highcharts.\n const options: Options = {\n // Tussell green\n colors: ['#0e9c1b'],\n chart: { backgroundColor: 'none' },\n lang: { numericSymbols: ['K', 'M', 'B', 'T', 'Q', 'Qi'] },\n tooltip: {\n backgroundColor: '#000000',\n borderColor: '#000000',\n formatter: function() {\n const date = Highcharts.dateFormat('%Y', new Date(this.x).getTime());\n return '

' + date + ': £' + toHumanNumber(typeof this.y === 'number' ? this.y : 0) + '

';\n }\n },\n // Removes highcharts.com credit link\n credits: { enabled: false }\n };\n\n return deepMerge(options, overrides);\n};\n\n// Convert a number to a human-readable format with abbreviated units (K, M, B)\nexport const toHumanNumber = (number: number): string => {\n const units = ['B', 'M', 'K'];\n const divisors = [1e9, 1e6, 1e3];\n\n for (let i = 0; i < divisors.length; i++) {\n if (number >= divisors[i]) {\n return (number / divisors[i]).toFixed(1).replace(/\\.0$/, '') + units[i];\n }\n }\n\n return number.toString();\n};\n\n// Map the export format to the MIME type\nconst formatMapper = (exportFormat: string): string => {\n switch (exportFormat) {\n case 'PNG':\n return 'image/png';\n case 'PDF':\n return 'application/pdf';\n default:\n // @ts-expect-error Rollbar is a global object.\n if (typeof window.Rollbar !== 'undefined') {\n // @ts-expect-error as above.\n window.Rollbar.error(`Unknown export format: ${exportFormat}`);\n }\n return 'image/png';\n }\n};\n\n\n// Download the chart as a file\nconst onDownload = (options: { exportFormat: string }) => function() {\n this.exportChart(\n {\n type: formatMapper(options.exportFormat),\n filename: 'chart'\n }\n );\n const csrfToken = document.querySelector('meta[name=\"csrf-token\"]')?.getAttribute('content');\n\n fetch('/charts/downloads', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': typeof csrfToken === 'string' ? csrfToken : ''\n },\n body: JSON.stringify({\n export_format: options.exportFormat\n })\n })\n .then(response => {\n if (!response.ok) {\n throw new Error('Failed to log chart download event');\n }\n })\n .catch(error => {\n console.error(error.message);\n // @ts-expect-error Rollbar is a global object.\n if (typeof window.Rollbar !== 'undefined') {\n // @ts-expect-error Rollbar as above.\n window.Rollbar.error(error.message);\n }\n });\n};\n\nexport default {\n highchartsOptions,\n highchartsOptionsWithExporting,\n toHumanNumber\n};\n","// This pack is primarily here to trigger rendering of all other packs we've appended. But you can also\n// use it for something that should be on every page.\n\n// Like our global Highcharts config!\nimport 'chartkick/highcharts';\nimport Highcharts from 'highcharts';\nimport Rails from '@rails/ujs';\nimport { toHumanNumber } from '../highchart_options';\nimport { chartFontFamily } from '../constants';\nRails.start();\n\nHighcharts.setOptions({\n colors: ['#0E9C1B'],\n chart: {\n backgroundColor: 'none',\n style: {\n 'font-family': chartFontFamily.join(', ')\n }\n },\n xAxis: {\n type: 'datetime',\n tickLength: 0,\n crosshair: true,\n lineColor: '#E5E8E7',\n labels: {\n distance: 8,\n style: {\n fontSize: '10px',\n color: '#99A89B'\n }\n }\n },\n yAxis: {\n tickAmount: 3,\n min: 0,\n labels: {\n style: {\n fontSize: '10px',\n color: '#99A89B',\n whiteSpace: 'nowrap'\n }\n }\n },\n tooltip: {\n backgroundColor: '#FAFBFA',\n borderColor: '#E9ECE9',\n borderRadius: 4,\n borderWidth: 1,\n outside: true,\n stickOnContact: true,\n padding: 5,\n shadow: {\n color: '#005E09',\n opacity: 0.02,\n offsetX: 0,\n offsetY: 0,\n width: 8\n },\n formatter: function() {\n return '

' + this.x + ': £' + toHumanNumber(this.y) + '

';\n }\n },\n // Removes highcharts.com credit link\n credits: { enabled: false }\n});\n\nwindow.Highcharts = Highcharts;\n"],"names":["_path","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","xmlns","width","height","fill","d","fillRule","_text","fontFamily","fontSize","fontWeight","transform","x","y","opportunityStatusOptions","contractSMEOptions","contractFrameworkOptions","suitableSMEOptions","supplierSMEOptions","supplierNameAndOrCategoryOptions","contractTypeOptions","keyDecisionMakerSeniorityOptions","isCalloffOptions","liveDateOptions","invoiceBuyerTypes","label","options","invoiceSupplierTypes","pastDates","pastDatesWithPrevFinancialYear","futureDates","presentDates","justPastDates","justPastDatesWithPrevFinancialYear","pastRelativeDateOptions","allRelativeDateOptions","allRelativeDateOptionsWithPrevFinancialYear","pastRelativeDateOptionsWithPrevFinancialYear","allRelativeDateOptionsWithLiveDateOptions","allRelativeDateOptionsWithLiveDateOptionsAndPrevFinancialYear","buyerTypeOptions","employeeCountOptions","icons","contracts","ContractsIcon","dates","DatesIcon","sectors","SectorsIcon","buyers","BuyersIcon","value","ValueIcon","suppliers","SuppliersIcon","chartFontFamily","highchartsOptionsWithExporting","Highcharts","overrides","exporting","offlineExporting","accessibility","highchartsOptions","chartOptions","chart","backgroundColor","plotOptions","column","pointPadding","pointWidth","undefined","scale","sourceWidth","sourceHeight","buttons","contextButton","enabled","exportButton","menuItems","theme","states","hover","select","useHTML","text","menuItemDefinitions","downloadPNG","onclick","onDownload","exportFormat","downloadPDF","navigation","buttonOptions","align","verticalAlign","menuItemStyle","join","letterSpacing","lineHeight","padding","menuStyle","border","color","boxShadow","menuItemHoverStyle","deepMerge","colors","lang","numericSymbols","tooltip","borderColor","formatter","dateFormat","Date","getTime","toHumanNumber","credits","number","units","divisors","toFixed","replace","toString","formatMapper","window","Rollbar","error","exportChart","type","filename","csrfToken","document","querySelector","getAttribute","fetch","method","headers","body","JSON","stringify","export_format","then","response","ok","Error","catch","console","message","Rails","start","style","xAxis","tickLength","crosshair","lineColor","labels","distance","yAxis","tickAmount","min","whiteSpace","borderRadius","borderWidth","outside","stickOnContact","shadow","opacity","offsetX","offsetY"],"sourceRoot":""}