@hisptz/dhis2-scorecard 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/Scorecard.stories.js +13 -11
  2. package/dist/Scorecard.stories.js.map +1 -1
  3. package/dist/ScorecardPrintArea.stories.js +3 -2
  4. package/dist/ScorecardPrintArea.stories.js.map +1 -1
  5. package/dist/components/ScorecardPrint/components/ScorecardDownloadButton.js +50 -35
  6. package/dist/components/ScorecardPrint/components/ScorecardDownloadButton.js.map +1 -1
  7. package/dist/components/ScorecardPrint/components/ScorecardPreviewArea.js +18 -2
  8. package/dist/components/ScorecardPrint/components/ScorecardPreviewArea.js.map +1 -1
  9. package/dist/components/ScorecardPrint/utils/download.js +0 -1
  10. package/dist/components/ScorecardPrint/utils/download.js.map +1 -1
  11. package/dist/components/ScorecardTable/components/AverageCell.js +1 -0
  12. package/dist/components/ScorecardTable/components/AverageCell.js.map +1 -1
  13. package/dist/components/ScorecardTable/components/DataContainer.js +4 -0
  14. package/dist/components/ScorecardTable/components/DataContainer.js.map +1 -1
  15. package/dist/components/ScorecardTable/components/DataFooterCell.js +3 -0
  16. package/dist/components/ScorecardTable/components/DataFooterCell.js.map +1 -1
  17. package/dist/components/ScorecardTable/components/DataValue.js +8 -4
  18. package/dist/components/ScorecardTable/components/DataValue.js.map +1 -1
  19. package/dist/components/ScorecardTable/components/LinkedCell.js +9 -1
  20. package/dist/components/ScorecardTable/components/LinkedCell.js.map +1 -1
  21. package/dist/components/ScorecardTable/components/LinkedDataCell.js +15 -3
  22. package/dist/components/ScorecardTable/components/LinkedDataCell.js.map +1 -1
  23. package/dist/components/StateProvider.js +18 -2
  24. package/dist/components/StateProvider.js.map +1 -1
  25. package/dist/components/index.js +7 -0
  26. package/dist/components/index.js.map +1 -1
  27. package/dist/esm/Scorecard.stories.js +14 -12
  28. package/dist/esm/Scorecard.stories.js.map +1 -1
  29. package/dist/esm/ScorecardPrintArea.stories.js +3 -2
  30. package/dist/esm/ScorecardPrintArea.stories.js.map +1 -1
  31. package/dist/esm/components/ScorecardPrint/components/ScorecardDownloadButton.js +52 -37
  32. package/dist/esm/components/ScorecardPrint/components/ScorecardDownloadButton.js.map +1 -1
  33. package/dist/esm/components/ScorecardPrint/components/ScorecardPreviewArea.js +18 -2
  34. package/dist/esm/components/ScorecardPrint/components/ScorecardPreviewArea.js.map +1 -1
  35. package/dist/esm/components/ScorecardPrint/utils/download.js +0 -1
  36. package/dist/esm/components/ScorecardPrint/utils/download.js.map +1 -1
  37. package/dist/esm/components/ScorecardTable/components/AverageCell.js +1 -0
  38. package/dist/esm/components/ScorecardTable/components/AverageCell.js.map +1 -1
  39. package/dist/esm/components/ScorecardTable/components/DataContainer.js +4 -0
  40. package/dist/esm/components/ScorecardTable/components/DataContainer.js.map +1 -1
  41. package/dist/esm/components/ScorecardTable/components/DataFooterCell.js +3 -0
  42. package/dist/esm/components/ScorecardTable/components/DataFooterCell.js.map +1 -1
  43. package/dist/esm/components/ScorecardTable/components/DataValue.js +8 -4
  44. package/dist/esm/components/ScorecardTable/components/DataValue.js.map +1 -1
  45. package/dist/esm/components/ScorecardTable/components/LinkedCell.js +9 -1
  46. package/dist/esm/components/ScorecardTable/components/LinkedCell.js.map +1 -1
  47. package/dist/esm/components/ScorecardTable/components/LinkedDataCell.js +15 -3
  48. package/dist/esm/components/ScorecardTable/components/LinkedDataCell.js.map +1 -1
  49. package/dist/esm/components/StateProvider.js +19 -3
  50. package/dist/esm/components/StateProvider.js.map +1 -1
  51. package/dist/esm/components/index.js +1 -0
  52. package/dist/esm/components/index.js.map +1 -1
  53. package/dist/esm/hooks/table.js +1 -2
  54. package/dist/esm/hooks/table.js.map +1 -1
  55. package/dist/esm/hooks/value.js +1 -1
  56. package/dist/esm/hooks/value.js.map +1 -1
  57. package/dist/esm/utils/columns.js +4 -1
  58. package/dist/esm/utils/columns.js.map +1 -1
  59. package/dist/esm/utils/data.js +1 -1
  60. package/dist/esm/utils/data.js.map +1 -1
  61. package/dist/hooks/table.js +1 -2
  62. package/dist/hooks/table.js.map +1 -1
  63. package/dist/hooks/value.js +1 -1
  64. package/dist/hooks/value.js.map +1 -1
  65. package/dist/types/components/ScorecardPrint/components/ScorecardDownloadButton.d.ts.map +1 -1
  66. package/dist/types/components/ScorecardPrint/components/ScorecardPreviewArea.d.ts +1 -0
  67. package/dist/types/components/ScorecardPrint/components/ScorecardPreviewArea.d.ts.map +1 -1
  68. package/dist/types/components/ScorecardPrint/utils/download.d.ts.map +1 -1
  69. package/dist/types/components/ScorecardTable/components/AverageCell.d.ts.map +1 -1
  70. package/dist/types/components/ScorecardTable/components/DataContainer.d.ts.map +1 -1
  71. package/dist/types/components/ScorecardTable/components/DataFooterCell.d.ts.map +1 -1
  72. package/dist/types/components/ScorecardTable/components/DataValue.d.ts +1 -0
  73. package/dist/types/components/ScorecardTable/components/DataValue.d.ts.map +1 -1
  74. package/dist/types/components/ScorecardTable/components/LinkedCell.d.ts +2 -1
  75. package/dist/types/components/ScorecardTable/components/LinkedCell.d.ts.map +1 -1
  76. package/dist/types/components/ScorecardTable/components/LinkedDataCell.d.ts.map +1 -1
  77. package/dist/types/components/StateProvider.d.ts +2 -1
  78. package/dist/types/components/StateProvider.d.ts.map +1 -1
  79. package/dist/types/components/index.d.ts +1 -0
  80. package/dist/types/components/index.d.ts.map +1 -1
  81. package/dist/types/hooks/table.d.ts.map +1 -1
  82. package/dist/types/hooks/value.d.ts.map +1 -1
  83. package/dist/types/utils/columns.d.ts.map +1 -1
  84. package/dist/types/utils/data.d.ts.map +1 -1
  85. package/dist/utils/columns.js +4 -1
  86. package/dist/utils/columns.js.map +1 -1
  87. package/dist/utils/data.js +1 -1
  88. package/dist/utils/data.js.map +1 -1
  89. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ScorecardPrintArea.stories.tsx"],"names":[],"mappings":"AA49CO;AA19CP,SAAS,kBAAkB,sBAAsB;AAC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Q;AAAA,gBACZ;AAAA;AAAA,YACD,GACD,GACD;AAAA;AAAA,QACD;AAAA;AAAA,IACD;AAAA,EAEF;AACD;AAEA,IAAO,qCAAQ;AAIR,MAAM,UAAiB;AAAA,EAC7B,MAAM;AAAA,EACN,MAAM;AAAA,IACL;AAAA,EACD;AACD","sourcesContent":["import type { Meta, StoryObj } from \"@storybook/react\";\nimport type { ScorecardConfig } from \"./schemas/config\";\nimport { ScorecardContext, ScorecardPrint } from \"./components\";\nimport { ScorecardStateProvider } from \"./components/StateProvider\";\nimport { getInitialStateFromConfig } from \"./utils\";\nimport { ScorecardDataProvider } from \"./components/DataProvider\";\n\nconst playConfig: ScorecardConfig = {\n\tid: \"YyeJxCBJpcz\",\n\ttitle: \"Test large scorecard\",\n\toptions: {\n\t\ttitle: true,\n\t\tarrows: true,\n\t\tlegend: true,\n\t\temptyRows: true,\n\t\taverageRow: false,\n\t\titemNumber: true,\n\t\taverageColumn: false,\n\t\tshowHierarchy: false,\n\t\tshowDataInRows: false,\n\t\taverageDisplayType: \"ALL\",\n\t\thighlightedIndicators: false,\n\t},\n\tsharing: {\n\t\towner: \"xE7jOejl9FI\",\n\t\tusers: {},\n\t\tpublic: \"--------\",\n\t\texternal: false,\n\t\tuserGroups: {},\n\t},\n\tsubtitle: \"Test large scorecard\",\n\tdescription: \"Test large scorecard\",\n\tdataSelection: {\n\t\tdataGroups: [\n\t\t\t{\n\t\t\t\tid: \"VakhYjKAA5L\",\n\t\t\t\tstyle: {},\n\t\t\t\ttitle: \"ANC\",\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"sl3FPmEzlRQ\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"Uvn6LCg7dVU\",\n\t\t\t\t\t\t\t\tname: \"ANC 1 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 1 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"KBqf91u67Ro\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"mpjr0KieTWq\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"kAPjRBfoNHb\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"MDGG5JZkC7Y\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"ReUHfIn0pTQ\",\n\t\t\t\t\t\t\t\tname: \"ANC 1-3 Dropout Rate\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 1-3 Dropout Rate\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"Prrlf0tASKb\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"OoApWIGYDKH\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"PMHXhSN0FTZ\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"KqkECXxol62\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"OdiHJayrsKo\",\n\t\t\t\t\t\t\t\tname: \"ANC 2 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 2 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"BTPWwT1I403\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"zUvpqVIgKZh\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"GMDUUxd8oNp\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"nAUoLvHygNy\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"sB79w2hiLp8\",\n\t\t\t\t\t\t\t\tname: \"ANC 3 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 3 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"Iv0KuN1QVOZ\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"zJfB5tn6JJJ\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"zArIepf6ZU8\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"t3BzVoE76km\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"AUqdhY4mpvp\",\n\t\t\t\t\t\t\t\tname: \"ANC => 4 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC => 4 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"dkCFTve9wTg\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"rNiVyCpg3Ck\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"mE4q4gjRZW1\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"MBkuYQyjeb1\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"dwEq7wi6nXV\",\n\t\t\t\t\t\t\t\tname: \"ANC IPT 1 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC IPT 1 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"rAyBjZPWD1E\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"zl4jZMLZ0lk\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"Tcsyb58pcgh\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"VU3Y32VhgOd\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"c8fABiNpT0B\",\n\t\t\t\t\t\t\t\tname: \"ANC IPT 2 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC IPT 2 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"remIGHppCft\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"Xu1x3y97s4v\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"rRmENa76Wt4\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"UQjPFLfeMz3\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"Tt5TAvdfdVK\",\n\t\t\t\t\t\t\t\tname: \"ANC LLITN coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC LLITN coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"hiVwKNC8KAO\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"mwheQQolL37\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"IrehypEPWN3\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"MmT5zVXL2W5\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"puykO1tbcdi\",\n\t\t\t\t\t\t\t\tname: \"ANC TT2 coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC TT2 coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"nxQuKBOX0qp\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"oUDhvFmsaWJ\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"iypIK6ubVEz\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"O4npHQEsuFd\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"Lzg9LtG1xg3\",\n\t\t\t\t\t\t\t\tname: \"ANC visits per clinical professional\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC visits per clinical professional\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"qTy67GvZmUq\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"RtIRjuB8PXc\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"vjbeOeOj2q3\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t},\n\tperiodSelection: {\n\t\tperiods: [\n\t\t\t{\n\t\t\t\tid: \"202401\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"202402\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"202403\",\n\t\t\t},\n\t\t],\n\t},\n\tadditionalLabels: [],\n\torgUnitSelection: {\n\t\tgroups: [],\n\t\tlevels: [],\n\t\torgUnits: [],\n\t\tuserOrgUnit: true,\n\t\tuserSubUnit: true,\n\t\tuserSubX2Unit: false,\n\t},\n\tlegendDefinitions: [\n\t\t{\n\t\t\tid: \"N/A\",\n\t\t\tname: \"N/A\",\n\t\t\tcolor: \"#D3D3D3\",\n\t\t\tisDefault: true,\n\t\t},\n\t\t{\n\t\t\tid: \"No Data\",\n\t\t\tname: \"No Data\",\n\t\t\tcolor: \"#FFFFFF\",\n\t\t\tisDefault: true,\n\t\t},\n\t\t{\n\t\t\tid: \"w3pILkfnTvU\",\n\t\t\tname: \"Target Reached/ On Track\",\n\t\t\tcolor: \"#008000\",\n\t\t},\n\t\t{\n\t\t\tid: \"gbQ4Sz9lTmI\",\n\t\t\tname: \"Progress, but more effort required\",\n\t\t\tcolor: \"#FFFF00\",\n\t\t},\n\t\t{\n\t\t\tid: \"ieUZM8WK8cc\",\n\t\t\tname: \"Not on track\",\n\t\t\tcolor: \"#FF0000\",\n\t\t},\n\t],\n\thighlightedIndicators: [],\n};\n\nconst config: ScorecardConfig = {\n\tadditionalLabels: [\"Data label\"],\n\tcustomHeader: \"<p>W</p>\\n\",\n\tdataSelection: {\n\t\tdataGroups: [\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"EzE8xZ31zfC\",\n\t\t\t\t\t\t\t\tlabel: \"Availability of Vaccines: BCG (no stockout)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"XWUMmCmeM6o\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 80,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 80,\n\t\t\t\t\t\t\t\t\t\tid: \"TOey7YmIgVW\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"PeTnkJSrh0N\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"Availability of Vaccines: BCG (no stockout)\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 3,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"uNau1zjH08I\",\n\t\t\t\t\t\t\t\tlabel: \"Availability of Vaccines DPT (no stockout)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"BwTObmlCQJ9\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"VBf0tTk0FAg\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"Bi2wvoRTFtg\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"Availability of Vaccines DPT (no stockout)\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 6,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"Dca85UJ7O40\",\n\t\t\t\t\t\t\t\tlabel: \"DPT1 coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"uClcTQnvGjo\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"VM7MrPcAzVY\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"IgXxzTrOdfA\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"DPT1 coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 10,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"YT5UD0H7875\",\n\t\t\t\t\t\t\t\tlabel: \"DPT2 Coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"AvNvnIHhPL9\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"L6SjYX2Ob7X\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"FDlibzlPjKa\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"DPT2 Coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 4,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"E31SemmmFGb\",\n\t\t\t\t\t\t\t\tlabel: \"DPT3 coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"vIzqi9I5U5W\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"p8iuaIFYrVh\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"IAawVVFlrHW\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"DPT3 coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 9,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"k7S2WEEZeWO\",\n\t\t\t\t\t\t\t\tlabel: \"BCG coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"HTxdj0lqOni\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"QDRGsOkTFRo\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"ijCUM3ePjXe\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"BCG coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 5,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"wpgvPjYTBba\",\n\t\t\t\t\t\t\t\tlabel: \"MCV1 Coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"cORYIx7oEkM\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 80,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 80,\n\t\t\t\t\t\t\t\t\t\tid: \"yCulcK3litW\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"uHU6IMpweu1\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"MCV1 Coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 8,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"TGFBdsVUobf\",\n\t\t\t\t\t\t\t\tlabel: \"Fully Immunized\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"aGVS5sqcRd4\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"EKIY64Ferh3\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"EfSaPcUQvUA\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"Fully Immunized\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 7,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: 1,\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#ffffff\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"Default\",\n\t\t\t},\n\t\t],\n\t},\n\tdescription: \"Immunization scorecard\",\n\thighlightedIndicators: [],\n\tid: \"VQ4ipFr7YHx\",\n\tlegendDefinitions: [\n\t\t{\n\t\t\tcolor: \"#008000\",\n\t\t\tid: \"#008000\",\n\t\t\tname: \"Target achieved / on track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFF00\",\n\t\t\tid: \"#FFFF00\",\n\t\t\tname: \"Progress, but more effort required\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FF0000\",\n\t\t\tid: \"#FF0000\",\n\t\t\tname: \"Not on track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#D3D3D3\",\n\t\t\tid: \"N/A\",\n\t\t\tisDefault: true,\n\t\t\tname: \"N/A\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFFFF\",\n\t\t\tid: \"No data\",\n\t\t\tisDefault: true,\n\t\t\tname: \"No data\",\n\t\t},\n\t],\n\toptions: {\n\t\taverageColumn: false,\n\t\taverageDisplayType: \"ALL\",\n\t\taverageRow: false,\n\t\temptyRows: true,\n\t\thighlightedIndicators: false,\n\t\titemNumber: true,\n\t\tlegend: true,\n\t\tshowHierarchy: false,\n\t\ttitle: true,\n\t},\n\torgUnitSelection: {\n\t\tgroups: [],\n\t\tlevels: [\"P0QFTFfTl2X\"],\n\t\torgUnits: [\n\t\t\t{\n\t\t\t\tid: \"GD7TowwI46c\",\n\t\t\t},\n\t\t],\n\t\tuserOrgUnit: false,\n\t\tuserSubUnit: false,\n\t\tuserSubX2Unit: false,\n\t},\n\tperiodSelection: {\n\t\tperiods: [\n\t\t\t{\n\t\t\t\tid: \"2018Q2\",\n\t\t\t},\n\t\t],\n\t\ttype: \"Quarterly\",\n\t},\n\tsharing: {\n\t\texternal: false,\n\t\towner: \"M5zQapPyTZI\",\n\t\tpublic: \"------\",\n\t\tuserGroups: {\n\t\t\tji3bRmgKwkS: {\n\t\t\t\taccess: \"------\",\n\t\t\t\tid: \"ji3bRmgKwkS\",\n\t\t\t},\n\t\t},\n\t\tusers: {},\n\t},\n\tsubtitle: \"\",\n\ttitle: \"Immunization scorecard\",\n};\n\nconst linkedConfig: ScorecardConfig = {\n\tadditionalLabels: [],\n\tcustomHeader:\n\t\t'<p style=\"text-align: center;\"><strong><span style=\"font-size: 14pt;\">Reproductive Mother Newborn Child Adolescent Health Scorecard</span></strong></p>',\n\tdataSelection: {\n\t\tdataGroups: [\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"UT1DJmtzyox\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 1st visit coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: {\n\t\t\t\t\t\t\t\t\tBNQIkbGlA00: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"KpYHhHJn6TW\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"D7p3mOofXV5\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"h53u0qtfWrm\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tP0QFTFfTl2X: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"Gu1MEoKBM9z\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"Ov1gJoUyWGA\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"kdr4mFvCXeF\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tVJJOhuBJSJe: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"ZRel5tdDTxP\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"ZdkqaQjk4dy\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"yHqYRGJTuZ7\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tZqI1kKnH7ve: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"M8SRVFU7qaJ\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"t0kMCebyKa3\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"qQWheNiAv5H\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"FgNnsRgCs8r\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 4th visit coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: {\n\t\t\t\t\t\t\t\t\tBNQIkbGlA00: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"XMzI6YTRjnh\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"XaSA3Wbd8ev\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"zTVnWeobd1W\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tP0QFTFfTl2X: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"uMqW1iTVZbk\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"KF017pCID2N\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"L3PNXKkZlKn\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tVJJOhuBJSJe: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"lpPPAVPWAHa\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"qtzhYa0YOZe\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"rcPPIBAegMP\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tZqI1kKnH7ve: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"w31XD1NVKYc\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"Yka97h8Gp5S\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"rq5CQddHPzj\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"kJx1Eg83H1A\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"uRgQI4ArrDc\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"ANC\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"S0IzYPGQLnN\",\n\t\t\t\t\t\t\t\tlabel: \"PCV 3 coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"bnLSP7FW4CD\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"eIQjXQYMwYF\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"eeXyZVN0FCX\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"ZNz5XzwJZK5\",\n\t\t\t\t\t\t\t\tlabel: \"RMNCH IPTp1 coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"M3O2zlFt2QR\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"XrYIKCaK5uO\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"yAfwEbfXWab\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"kfl50Ej7lDu\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"QcZw8mJ1Rze\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"Child Health\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"wc3XYCyuxyE\",\n\t\t\t\t\t\t\t\tlabel: \"Post partum care coverage (within 2 days) (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"b3UiR0upygY\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"Qws2zJ6nnhO\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"EjYfDZUMrvh\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"NV6Xc9oGJZV\",\n\t\t\t\t\t\t\t\tlabel: \"Breastfeeding within 1 hour after delivery (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"wqt6J8rW5Gg\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"BoXJK9Y7xfL\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"leioF1u23By\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"w8XIm3FYgHf\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"UVvskRg3Q3O\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"PNC\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"XXDXVGzvSx1\",\n\t\t\t\t\t\t\t\tlabel: \"Caesarean section delivery rate (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"nYuMTV2paEd\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"iRmHVCt9uCF\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"oZC6QPZ7AAS\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"lMRhTK17SDQ\",\n\t\t\t\t\t\t\t\tlabel: \"Institutional delivery rate (%)\",\n\t\t\t\t\t\t\t\tlegends: {\n\t\t\t\t\t\t\t\t\tBNQIkbGlA00: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"mOYx4YWdhVl\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"gxG34EbioX8\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"MBAKh3ZG2dK\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tP0QFTFfTl2X: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"MmQldQ7jgAH\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"WF1kso6rvDr\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"JcaFJoC6kNi\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tVJJOhuBJSJe: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"L07Gb3JDHVS\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"jZ9fu7sOQDr\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"EoTSwqHRfZV\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tZqI1kKnH7ve: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"CO0eiIoCRty\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"YWySiVblPtQ\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"paJxvmioynV\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"yZsI8HZOKab\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"erF3HyaFtYs\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"Birth\",\n\t\t\t},\n\t\t],\n\t},\n\tdescription:\n\t\t\"Reproductive Mother Newborn Child Adolescent Health Score Card\",\n\thighlightedIndicators: [\n\t\t{\n\t\t\tdisplayArrows: true,\n\t\t\teffectiveGap: 5,\n\t\t\thighIsGood: true,\n\t\t\tid: \"BvG8P80QxqZ\",\n\t\t\tlabel: \"Access to ANC Services\",\n\t\t\tlegends: [\n\t\t\t\t{\n\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\tid: \"gpxLYDFnZmu\",\n\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\tstartValue: \"80\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"80\",\n\t\t\t\t\tid: \"nG6xsue9WBm\",\n\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\tstartValue: \"60\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"60\",\n\t\t\t\t\tid: \"UeAJV56yLPg\",\n\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\tstartValue: \"40\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"40\",\n\t\t\t\t\tid: \"Gop7mo2IUdC\",\n\t\t\t\t\tlegendDefinitionId: \"N/A\",\n\t\t\t\t\tstartValue: \"20\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"20\",\n\t\t\t\t\tid: \"RE0ln0cImOf\",\n\t\t\t\t\tlegendDefinitionId: \"No Data\",\n\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t},\n\t\t\t],\n\t\t\tshowColors: true,\n\t\t\ttype: \"indicator\",\n\t\t\tweight: 100,\n\t\t},\n\t],\n\tid: \"KKQrggIIOlT\",\n\tlegendDefinitions: [\n\t\t{\n\t\t\tcolor: \"#008000\",\n\t\t\tid: \"Hp7RQEOkeeI\",\n\t\t\tname: \"Target Reached/ On Track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFF00\",\n\t\t\tid: \"Tdn0N0KCkfS\",\n\t\t\tname: \"Progress, but more effort required\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FF0000\",\n\t\t\tid: \"wvkMv3ABWbT\",\n\t\t\tname: \"Not on track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#D3D3D3\",\n\t\t\tid: \"N/A\",\n\t\t\tisDefault: true,\n\t\t\tname: \"N/A\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFFFF\",\n\t\t\tid: \"No Data\",\n\t\t\tisDefault: true,\n\t\t\tname: \"No Data\",\n\t\t},\n\t],\n\toptions: {\n\t\tarrows: true,\n\t\taverageColumn: false,\n\t\taverageDisplayType: \"ALL\",\n\t\taverageRow: false,\n\t\temptyRows: false,\n\t\thighlightedIndicators: false,\n\t\titemNumber: true,\n\t\tlegend: true,\n\t\tshowDataInRows: false,\n\t\tshowHierarchy: true,\n\t\ttitle: true,\n\t},\n\torgUnitSelection: {\n\t\tgroups: [],\n\t\tlevels: [\"P0QFTFfTl2X\"],\n\t\torgUnits: [\n\t\t\t{\n\t\t\t\tid: \"GD7TowwI46c\",\n\t\t\t},\n\t\t],\n\t\tuserOrgUnit: false,\n\t\tuserSubUnit: false,\n\t\tuserSubX2Unit: false,\n\t},\n\tperiodSelection: {\n\t\tperiods: [\n\t\t\t{\n\t\t\t\tid: \"2018\",\n\t\t\t},\n\t\t],\n\t},\n\tsubtitle: \"\",\n\ttitle: \"RMNCAH Score Card Revised\",\n};\n\nconst meta: Meta<typeof ScorecardPrint> = {\n\ttitle: \"Scorecard Print Area\",\n\tcomponent: ScorecardPrint,\n\tdecorators: (Story, context) => {\n\t\treturn (\n\t\t\t<ScorecardStateProvider\n\t\t\t\tconfig={config}\n\t\t\t\tinitialState={{\n\t\t\t\t\t...getInitialStateFromConfig(playConfig),\n\t\t\t\t\torgUnitSelection: {\n\t\t\t\t\t\tuserOrgUnit: true,\n\t\t\t\t\t\tuserSubUnit: true,\n\t\t\t\t\t\tuserSubX2Unit: false,\n\t\t\t\t\t},\n\t\t\t\t\toptions: {\n\t\t\t\t\t\t...getInitialStateFromConfig(playConfig).options,\n\t\t\t\t\t\tdisableExpanding: true,\n\t\t\t\t\t\tdisablePagination: true,\n\t\t\t\t\t\tprintMode: true,\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\tflexDirection: \"column\",\n\t\t\t\t\t\tgap: 32,\n\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<ScorecardContext config={playConfig}>\n\t\t\t\t\t\t<ScorecardDataProvider>\n\t\t\t\t\t\t\t<Story\n\t\t\t\t\t\t\t\targs={{\n\t\t\t\t\t\t\t\t\t...context.args,\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</ScorecardDataProvider>\n\t\t\t\t\t</ScorecardContext>\n\t\t\t\t</div>\n\t\t\t</ScorecardStateProvider>\n\t\t);\n\t},\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof ScorecardPrint>;\n\nexport const Default: Story = {\n\tname: \"Default View\",\n\targs: {\n\t\tconfig,\n\t},\n};\n// export const DataInRows: Story = {\n// \tname: \"Data in rows view\",\n// \targs: {},\n// };\n// export const FilteredAboveAverage: Story = {\n// \tname: \"Filtered above average\",\n// \targs: {},\n// };\n// export const FilteredBelowAverage: Story = {\n// \tname: \"Filtered below average\",\n// \targs: {},\n// };\n// export const WithLinkedCells: Story = {\n// \tname: \"With linked cells\",\n// \targs: {},\n// };\n// export const WithLinkedCellsDataInRows: Story = {\n// \tname: \"With linked cells and data in rows\",\n// \targs: {},\n// };\n"]}
1
+ {"version":3,"sources":["../../src/ScorecardPrintArea.stories.tsx"],"names":[],"mappings":"AA89CQ;AA59CR,SAAS,kBAAkB,sBAAsB;AACjD,SAAS,8BAA8B;AACvC,SAAS,iCAAiC;AAC1C,SAAS,6BAA6B;AACtC,SAAS,kBAAkB;AAE3B,MAAM,aAA8B;AAAA,EACnC,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,SAAS;AAAA,IACR,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,Y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cesContent":["import type { Meta, StoryObj } from \"@storybook/react\";\nimport type { ScorecardConfig } from \"./schemas/config\";\nimport { ScorecardContext, ScorecardPrint } from \"./components\";\nimport { ScorecardStateProvider } from \"./components/StateProvider\";\nimport { getInitialStateFromConfig } from \"./utils\";\nimport { ScorecardDataProvider } from \"./components/DataProvider\";\nimport { RecoilRoot } from \"recoil\";\n\nconst playConfig: ScorecardConfig = {\n\tid: \"YyeJxCBJpcz\",\n\ttitle: \"Test large scorecard\",\n\toptions: {\n\t\ttitle: true,\n\t\tarrows: true,\n\t\tlegend: true,\n\t\temptyRows: true,\n\t\taverageRow: false,\n\t\titemNumber: true,\n\t\taverageColumn: false,\n\t\tshowHierarchy: false,\n\t\tshowDataInRows: false,\n\t\taverageDisplayType: \"ALL\",\n\t\thighlightedIndicators: false,\n\t},\n\tsharing: {\n\t\towner: \"xE7jOejl9FI\",\n\t\tusers: {},\n\t\tpublic: \"--------\",\n\t\texternal: false,\n\t\tuserGroups: {},\n\t},\n\tsubtitle: \"Test large scorecard\",\n\tdescription: \"Test large scorecard\",\n\tdataSelection: {\n\t\tdataGroups: [\n\t\t\t{\n\t\t\t\tid: \"VakhYjKAA5L\",\n\t\t\t\tstyle: {},\n\t\t\t\ttitle: \"ANC\",\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"sl3FPmEzlRQ\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"Uvn6LCg7dVU\",\n\t\t\t\t\t\t\t\tname: \"ANC 1 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 1 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"KBqf91u67Ro\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"mpjr0KieTWq\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"kAPjRBfoNHb\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"MDGG5JZkC7Y\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"ReUHfIn0pTQ\",\n\t\t\t\t\t\t\t\tname: \"ANC 1-3 Dropout Rate\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 1-3 Dropout Rate\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"Prrlf0tASKb\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"OoApWIGYDKH\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"PMHXhSN0FTZ\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"KqkECXxol62\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"OdiHJayrsKo\",\n\t\t\t\t\t\t\t\tname: \"ANC 2 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 2 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"BTPWwT1I403\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"zUvpqVIgKZh\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"GMDUUxd8oNp\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"nAUoLvHygNy\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"sB79w2hiLp8\",\n\t\t\t\t\t\t\t\tname: \"ANC 3 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 3 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"Iv0KuN1QVOZ\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"zJfB5tn6JJJ\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"zArIepf6ZU8\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"t3BzVoE76km\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"AUqdhY4mpvp\",\n\t\t\t\t\t\t\t\tname: \"ANC => 4 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC => 4 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"dkCFTve9wTg\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"rNiVyCpg3Ck\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"mE4q4gjRZW1\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"MBkuYQyjeb1\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"dwEq7wi6nXV\",\n\t\t\t\t\t\t\t\tname: \"ANC IPT 1 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC IPT 1 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"rAyBjZPWD1E\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"zl4jZMLZ0lk\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"Tcsyb58pcgh\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"VU3Y32VhgOd\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"c8fABiNpT0B\",\n\t\t\t\t\t\t\t\tname: \"ANC IPT 2 Coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC IPT 2 Coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"remIGHppCft\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"Xu1x3y97s4v\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"rRmENa76Wt4\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"UQjPFLfeMz3\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"Tt5TAvdfdVK\",\n\t\t\t\t\t\t\t\tname: \"ANC LLITN coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC LLITN coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"hiVwKNC8KAO\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"mwheQQolL37\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"IrehypEPWN3\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"MmT5zVXL2W5\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"puykO1tbcdi\",\n\t\t\t\t\t\t\t\tname: \"ANC TT2 coverage\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC TT2 coverage\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"nxQuKBOX0qp\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"oUDhvFmsaWJ\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"iypIK6ubVEz\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"O4npHQEsuFd\",\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tid: \"Lzg9LtG1xg3\",\n\t\t\t\t\t\t\t\tname: \"ANC visits per clinical professional\",\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tlabel: \"ANC visits per clinical professional\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"qTy67GvZmUq\",\n\t\t\t\t\t\t\t\t\t\tendValue: 33,\n\t\t\t\t\t\t\t\t\t\tstartValue: 0,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"ieUZM8WK8cc\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"RtIRjuB8PXc\",\n\t\t\t\t\t\t\t\t\t\tendValue: 66,\n\t\t\t\t\t\t\t\t\t\tstartValue: 33,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"gbQ4Sz9lTmI\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tid: \"vjbeOeOj2q3\",\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tstartValue: 66,\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"w3pILkfnTvU\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\tdisplayArrows: false,\n\t\t\t\t\t\t\t\tspecificTargets: [],\n\t\t\t\t\t\t\t\tspecificTargetsSet: false,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t},\n\tperiodSelection: {\n\t\tperiods: [\n\t\t\t{\n\t\t\t\tid: \"202401\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"202402\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"202403\",\n\t\t\t},\n\t\t],\n\t},\n\tadditionalLabels: [],\n\torgUnitSelection: {\n\t\tgroups: [],\n\t\tlevels: [],\n\t\torgUnits: [],\n\t\tuserOrgUnit: true,\n\t\tuserSubUnit: true,\n\t\tuserSubX2Unit: false,\n\t},\n\tlegendDefinitions: [\n\t\t{\n\t\t\tid: \"N/A\",\n\t\t\tname: \"N/A\",\n\t\t\tcolor: \"#D3D3D3\",\n\t\t\tisDefault: true,\n\t\t},\n\t\t{\n\t\t\tid: \"No Data\",\n\t\t\tname: \"No Data\",\n\t\t\tcolor: \"#FFFFFF\",\n\t\t\tisDefault: true,\n\t\t},\n\t\t{\n\t\t\tid: \"w3pILkfnTvU\",\n\t\t\tname: \"Target Reached/ On Track\",\n\t\t\tcolor: \"#008000\",\n\t\t},\n\t\t{\n\t\t\tid: \"gbQ4Sz9lTmI\",\n\t\t\tname: \"Progress, but more effort required\",\n\t\t\tcolor: \"#FFFF00\",\n\t\t},\n\t\t{\n\t\t\tid: \"ieUZM8WK8cc\",\n\t\t\tname: \"Not on track\",\n\t\t\tcolor: \"#FF0000\",\n\t\t},\n\t],\n\thighlightedIndicators: [],\n};\n\nconst config: ScorecardConfig = {\n\tadditionalLabels: [\"Data label\"],\n\tcustomHeader: \"<p>W</p>\\n\",\n\tdataSelection: {\n\t\tdataGroups: [\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"EzE8xZ31zfC\",\n\t\t\t\t\t\t\t\tlabel: \"Availability of Vaccines: BCG (no stockout)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"XWUMmCmeM6o\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 80,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 80,\n\t\t\t\t\t\t\t\t\t\tid: \"TOey7YmIgVW\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"PeTnkJSrh0N\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"Availability of Vaccines: BCG (no stockout)\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 3,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"uNau1zjH08I\",\n\t\t\t\t\t\t\t\tlabel: \"Availability of Vaccines DPT (no stockout)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"BwTObmlCQJ9\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"VBf0tTk0FAg\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"Bi2wvoRTFtg\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"Availability of Vaccines DPT (no stockout)\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 6,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"Dca85UJ7O40\",\n\t\t\t\t\t\t\t\tlabel: \"DPT1 coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"uClcTQnvGjo\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"VM7MrPcAzVY\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"IgXxzTrOdfA\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"DPT1 coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 10,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"YT5UD0H7875\",\n\t\t\t\t\t\t\t\tlabel: \"DPT2 Coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"AvNvnIHhPL9\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"L6SjYX2Ob7X\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"FDlibzlPjKa\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"DPT2 Coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 4,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"E31SemmmFGb\",\n\t\t\t\t\t\t\t\tlabel: \"DPT3 coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"vIzqi9I5U5W\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"p8iuaIFYrVh\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"IAawVVFlrHW\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"DPT3 coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 9,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"k7S2WEEZeWO\",\n\t\t\t\t\t\t\t\tlabel: \"BCG coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"HTxdj0lqOni\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"QDRGsOkTFRo\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"ijCUM3ePjXe\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"BCG coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 5,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"wpgvPjYTBba\",\n\t\t\t\t\t\t\t\tlabel: \"MCV1 Coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"cORYIx7oEkM\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 80,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 80,\n\t\t\t\t\t\t\t\t\t\tid: \"yCulcK3litW\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"uHU6IMpweu1\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"MCV1 Coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 8,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"TGFBdsVUobf\",\n\t\t\t\t\t\t\t\tlabel: \"Fully Immunized\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"aGVS5sqcRd4\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"EKIY64Ferh3\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"EfSaPcUQvUA\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"Fully Immunized\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 7,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: 1,\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#ffffff\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"Default\",\n\t\t\t},\n\t\t],\n\t},\n\tdescription: \"Immunization scorecard\",\n\thighlightedIndicators: [],\n\tid: \"VQ4ipFr7YHx\",\n\tlegendDefinitions: [\n\t\t{\n\t\t\tcolor: \"#008000\",\n\t\t\tid: \"#008000\",\n\t\t\tname: \"Target achieved / on track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFF00\",\n\t\t\tid: \"#FFFF00\",\n\t\t\tname: \"Progress, but more effort required\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FF0000\",\n\t\t\tid: \"#FF0000\",\n\t\t\tname: \"Not on track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#D3D3D3\",\n\t\t\tid: \"N/A\",\n\t\t\tisDefault: true,\n\t\t\tname: \"N/A\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFFFF\",\n\t\t\tid: \"No data\",\n\t\t\tisDefault: true,\n\t\t\tname: \"No data\",\n\t\t},\n\t],\n\toptions: {\n\t\taverageColumn: false,\n\t\taverageDisplayType: \"ALL\",\n\t\taverageRow: false,\n\t\temptyRows: true,\n\t\thighlightedIndicators: false,\n\t\titemNumber: true,\n\t\tlegend: true,\n\t\tshowHierarchy: false,\n\t\ttitle: true,\n\t},\n\torgUnitSelection: {\n\t\tgroups: [],\n\t\tlevels: [\"P0QFTFfTl2X\"],\n\t\torgUnits: [\n\t\t\t{\n\t\t\t\tid: \"GD7TowwI46c\",\n\t\t\t},\n\t\t],\n\t\tuserOrgUnit: false,\n\t\tuserSubUnit: false,\n\t\tuserSubX2Unit: false,\n\t},\n\tperiodSelection: {\n\t\tperiods: [\n\t\t\t{\n\t\t\t\tid: \"2018Q2\",\n\t\t\t},\n\t\t],\n\t\ttype: \"Quarterly\",\n\t},\n\tsharing: {\n\t\texternal: false,\n\t\towner: \"M5zQapPyTZI\",\n\t\tpublic: \"------\",\n\t\tuserGroups: {\n\t\t\tji3bRmgKwkS: {\n\t\t\t\taccess: \"------\",\n\t\t\t\tid: \"ji3bRmgKwkS\",\n\t\t\t},\n\t\t},\n\t\tusers: {},\n\t},\n\tsubtitle: \"\",\n\ttitle: \"Immunization scorecard\",\n};\n\nconst linkedConfig: ScorecardConfig = {\n\tadditionalLabels: [],\n\tcustomHeader:\n\t\t'<p style=\"text-align: center;\"><strong><span style=\"font-size: 14pt;\">Reproductive Mother Newborn Child Adolescent Health Scorecard</span></strong></p>',\n\tdataSelection: {\n\t\tdataGroups: [\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"UT1DJmtzyox\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 1st visit coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: {\n\t\t\t\t\t\t\t\t\tBNQIkbGlA00: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"KpYHhHJn6TW\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"D7p3mOofXV5\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"h53u0qtfWrm\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tP0QFTFfTl2X: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"Gu1MEoKBM9z\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"Ov1gJoUyWGA\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"kdr4mFvCXeF\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tVJJOhuBJSJe: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"ZRel5tdDTxP\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"ZdkqaQjk4dy\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"yHqYRGJTuZ7\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tZqI1kKnH7ve: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"M8SRVFU7qaJ\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"t0kMCebyKa3\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"qQWheNiAv5H\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"FgNnsRgCs8r\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 4th visit coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: {\n\t\t\t\t\t\t\t\t\tBNQIkbGlA00: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"XMzI6YTRjnh\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"XaSA3Wbd8ev\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"zTVnWeobd1W\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tP0QFTFfTl2X: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"uMqW1iTVZbk\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"KF017pCID2N\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"L3PNXKkZlKn\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tVJJOhuBJSJe: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"lpPPAVPWAHa\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"qtzhYa0YOZe\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"rcPPIBAegMP\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tZqI1kKnH7ve: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"w31XD1NVKYc\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"Yka97h8Gp5S\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"rq5CQddHPzj\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"kJx1Eg83H1A\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"uRgQI4ArrDc\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"ANC\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"S0IzYPGQLnN\",\n\t\t\t\t\t\t\t\tlabel: \"PCV 3 coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"bnLSP7FW4CD\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"eIQjXQYMwYF\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"eeXyZVN0FCX\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"ZNz5XzwJZK5\",\n\t\t\t\t\t\t\t\tlabel: \"RMNCH IPTp1 coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"M3O2zlFt2QR\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"XrYIKCaK5uO\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"yAfwEbfXWab\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"kfl50Ej7lDu\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"QcZw8mJ1Rze\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"Child Health\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"wc3XYCyuxyE\",\n\t\t\t\t\t\t\t\tlabel: \"Post partum care coverage (within 2 days) (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"b3UiR0upygY\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"Qws2zJ6nnhO\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"EjYfDZUMrvh\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"NV6Xc9oGJZV\",\n\t\t\t\t\t\t\t\tlabel: \"Breastfeeding within 1 hour after delivery (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"wqt6J8rW5Gg\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"BoXJK9Y7xfL\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"leioF1u23By\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"w8XIm3FYgHf\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"UVvskRg3Q3O\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"PNC\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"XXDXVGzvSx1\",\n\t\t\t\t\t\t\t\tlabel: \"Caesarean section delivery rate (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"nYuMTV2paEd\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"iRmHVCt9uCF\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"oZC6QPZ7AAS\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"lMRhTK17SDQ\",\n\t\t\t\t\t\t\t\tlabel: \"Institutional delivery rate (%)\",\n\t\t\t\t\t\t\t\tlegends: {\n\t\t\t\t\t\t\t\t\tBNQIkbGlA00: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"mOYx4YWdhVl\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"gxG34EbioX8\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"MBAKh3ZG2dK\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tP0QFTFfTl2X: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"MmQldQ7jgAH\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"WF1kso6rvDr\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"JcaFJoC6kNi\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tVJJOhuBJSJe: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"L07Gb3JDHVS\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"jZ9fu7sOQDr\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"EoTSwqHRfZV\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tZqI1kKnH7ve: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"CO0eiIoCRty\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"YWySiVblPtQ\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"paJxvmioynV\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"yZsI8HZOKab\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"erF3HyaFtYs\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"Birth\",\n\t\t\t},\n\t\t],\n\t},\n\tdescription:\n\t\t\"Reproductive Mother Newborn Child Adolescent Health Score Card\",\n\thighlightedIndicators: [\n\t\t{\n\t\t\tdisplayArrows: true,\n\t\t\teffectiveGap: 5,\n\t\t\thighIsGood: true,\n\t\t\tid: \"BvG8P80QxqZ\",\n\t\t\tlabel: \"Access to ANC Services\",\n\t\t\tlegends: [\n\t\t\t\t{\n\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\tid: \"gpxLYDFnZmu\",\n\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\tstartValue: \"80\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"80\",\n\t\t\t\t\tid: \"nG6xsue9WBm\",\n\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\tstartValue: \"60\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"60\",\n\t\t\t\t\tid: \"UeAJV56yLPg\",\n\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\tstartValue: \"40\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"40\",\n\t\t\t\t\tid: \"Gop7mo2IUdC\",\n\t\t\t\t\tlegendDefinitionId: \"N/A\",\n\t\t\t\t\tstartValue: \"20\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"20\",\n\t\t\t\t\tid: \"RE0ln0cImOf\",\n\t\t\t\t\tlegendDefinitionId: \"No Data\",\n\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t},\n\t\t\t],\n\t\t\tshowColors: true,\n\t\t\ttype: \"indicator\",\n\t\t\tweight: 100,\n\t\t},\n\t],\n\tid: \"KKQrggIIOlT\",\n\tlegendDefinitions: [\n\t\t{\n\t\t\tcolor: \"#008000\",\n\t\t\tid: \"Hp7RQEOkeeI\",\n\t\t\tname: \"Target Reached/ On Track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFF00\",\n\t\t\tid: \"Tdn0N0KCkfS\",\n\t\t\tname: \"Progress, but more effort required\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FF0000\",\n\t\t\tid: \"wvkMv3ABWbT\",\n\t\t\tname: \"Not on track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#D3D3D3\",\n\t\t\tid: \"N/A\",\n\t\t\tisDefault: true,\n\t\t\tname: \"N/A\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFFFF\",\n\t\t\tid: \"No Data\",\n\t\t\tisDefault: true,\n\t\t\tname: \"No Data\",\n\t\t},\n\t],\n\toptions: {\n\t\tarrows: true,\n\t\taverageColumn: false,\n\t\taverageDisplayType: \"ALL\",\n\t\taverageRow: false,\n\t\temptyRows: false,\n\t\thighlightedIndicators: false,\n\t\titemNumber: true,\n\t\tlegend: true,\n\t\tshowDataInRows: false,\n\t\tshowHierarchy: true,\n\t\ttitle: true,\n\t},\n\torgUnitSelection: {\n\t\tgroups: [],\n\t\tlevels: [\"P0QFTFfTl2X\"],\n\t\torgUnits: [\n\t\t\t{\n\t\t\t\tid: \"GD7TowwI46c\",\n\t\t\t},\n\t\t],\n\t\tuserOrgUnit: false,\n\t\tuserSubUnit: false,\n\t\tuserSubX2Unit: false,\n\t},\n\tperiodSelection: {\n\t\tperiods: [\n\t\t\t{\n\t\t\t\tid: \"2018\",\n\t\t\t},\n\t\t],\n\t},\n\tsubtitle: \"\",\n\ttitle: \"RMNCAH Score Card Revised\",\n};\n\nconst meta: Meta<typeof ScorecardPrint> = {\n\ttitle: \"Scorecard Print Area\",\n\tcomponent: ScorecardPrint,\n\tdecorators: (Story, context) => {\n\t\treturn (\n\t\t\t<RecoilRoot>\n\t\t\t\t<ScorecardStateProvider\n\t\t\t\t\tconfig={config}\n\t\t\t\t\tinitialState={{\n\t\t\t\t\t\t...getInitialStateFromConfig(playConfig),\n\t\t\t\t\t\torgUnitSelection: {\n\t\t\t\t\t\t\tuserOrgUnit: true,\n\t\t\t\t\t\t\tuserSubUnit: true,\n\t\t\t\t\t\t\tuserSubX2Unit: false,\n\t\t\t\t\t\t},\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\t...getInitialStateFromConfig(playConfig).options,\n\t\t\t\t\t\t\tdisableExpanding: true,\n\t\t\t\t\t\t\tdisablePagination: true,\n\t\t\t\t\t\t\tprintMode: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\tflexDirection: \"column\",\n\t\t\t\t\t\t\tgap: 32,\n\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<ScorecardContext config={playConfig}>\n\t\t\t\t\t\t\t<ScorecardDataProvider>\n\t\t\t\t\t\t\t\t<Story\n\t\t\t\t\t\t\t\t\targs={{\n\t\t\t\t\t\t\t\t\t\t...context.args,\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</ScorecardDataProvider>\n\t\t\t\t\t\t</ScorecardContext>\n\t\t\t\t\t</div>\n\t\t\t\t</ScorecardStateProvider>\n\t\t\t</RecoilRoot>\n\t\t);\n\t},\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof ScorecardPrint>;\n\nexport const Default: Story = {\n\tname: \"Default View\",\n\targs: {\n\t\tconfig,\n\t},\n};\n// export const DataInRows: Story = {\n// \tname: \"Data in rows view\",\n// \targs: {},\n// };\n// export const FilteredAboveAverage: Story = {\n// \tname: \"Filtered above average\",\n// \targs: {},\n// };\n// export const FilteredBelowAverage: Story = {\n// \tname: \"Filtered below average\",\n// \targs: {},\n// };\n// export const WithLinkedCells: Story = {\n// \tname: \"With linked cells\",\n// \targs: {},\n// };\n// export const WithLinkedCellsDataInRows: Story = {\n// \tname: \"With linked cells and data in rows\",\n// \targs: {},\n// };\n"]}
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
- import { DropdownButton, IconDownload24, FlyoutMenu, MenuItem, MenuSectionHeader } from '@dhis2/ui';
2
+ import { DropdownButton, IconDownload24, FlyoutMenu, MenuItem } from '@dhis2/ui';
3
3
  import i18n from '@dhis2/d2-i18n';
4
- import { useState, useRef, useEffect } from 'react';
4
+ import { useTransition, useState, useRef, useEffect } from 'react';
5
5
  import { useScorecardData } from '../../DataProvider';
6
6
  import { useReactToPrint } from 'react-to-print';
7
7
  import { useScorecardConfig } from '../../ConfigProvider';
@@ -9,26 +9,44 @@ import { ScorecardPreviewArea } from './ScorecardPreviewArea';
9
9
  import * as xlsx from 'xlsx';
10
10
  import { useScorecardMeta } from '../../MetaProvider';
11
11
  import { downloadALMAData, downloadALMAMeta } from '../utils/download';
12
+ import { useAlert } from '@dhis2/app-runtime';
12
13
 
13
14
  function DownloadMenu({
14
15
  previewRef,
15
16
  onClose
16
17
  }) {
17
18
  const config = useScorecardConfig();
19
+ const { show } = useAlert(
20
+ ({ message }) => message,
21
+ ({ type }) => ({ ...type, duration: 3e3 })
22
+ );
18
23
  const { data: dataEngine } = useScorecardData();
19
24
  const meta = useScorecardMeta();
20
25
  const print = useReactToPrint({
21
26
  contentRef: previewRef,
22
27
  preserveAfterPrint: false,
23
- documentTitle: config.title
28
+ documentTitle: config.title,
29
+ onPrintError: (errorLocation, error) => {
30
+ console.error(`Error running ${errorLocation}`);
31
+ console.error(error);
32
+ show({
33
+ message: `${i18n.t("Could not open the print dialog")}: ${error.message ?? i18n.t("Unknown error")}`,
34
+ type: { info: true }
35
+ });
36
+ }
24
37
  });
25
38
  const onDownload = (type) => () => {
26
39
  onClose();
27
40
  switch (type) {
41
+ case "pdf":
42
+ print();
43
+ break;
28
44
  case "csv":
29
45
  case "excel":
30
46
  const extension = type === "csv" ? "csv" : "xlsx";
31
- const workbook = xlsx.utils.table_to_book(previewRef.current);
47
+ const workbook = xlsx.utils.table_to_book(
48
+ previewRef.current
49
+ );
32
50
  xlsx.writeFile(workbook, `${config.title}.${extension}`);
33
51
  break;
34
52
  case "almaMeta":
@@ -43,7 +61,7 @@ function DownloadMenu({
43
61
  break;
44
62
  }
45
63
  };
46
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(FlyoutMenu, { children: [
64
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(FlyoutMenu, { closeMenu: onClose, children: [
47
65
  /* @__PURE__ */ jsx(
48
66
  MenuItem,
49
67
  {
@@ -52,60 +70,57 @@ function DownloadMenu({
52
70
  }
53
71
  ),
54
72
  /* @__PURE__ */ jsx(MenuItem, { onClick: onDownload("csv"), label: i18n.t("CSV") }),
55
- /* @__PURE__ */ jsx(
56
- MenuItem,
57
- {
58
- onClick: () => {
59
- print();
60
- },
61
- label: i18n.t("PDF")
62
- }
63
- ),
64
- /* @__PURE__ */ jsx(MenuSectionHeader, { label: i18n.t("ALMA") }),
65
- /* @__PURE__ */ jsx(
66
- MenuItem,
67
- {
68
- onClick: onDownload("alma"),
69
- label: i18n.t("Data(JSON)")
70
- }
71
- ),
72
- /* @__PURE__ */ jsx(
73
- MenuItem,
74
- {
75
- onClick: onDownload("almaMeta"),
76
- label: i18n.t("Metadata")
77
- }
78
- )
73
+ /* @__PURE__ */ jsx(MenuItem, { onClick: onDownload("pdf"), label: i18n.t("PDF") }),
74
+ /* @__PURE__ */ jsxs(MenuItem, { label: i18n.t("ALMA"), children: [
75
+ /* @__PURE__ */ jsx(
76
+ MenuItem,
77
+ {
78
+ onClick: onDownload("alma"),
79
+ label: i18n.t("Data(JSON)")
80
+ }
81
+ ),
82
+ /* @__PURE__ */ jsx(
83
+ MenuItem,
84
+ {
85
+ onClick: onDownload("almaMeta"),
86
+ label: i18n.t("Metadata")
87
+ }
88
+ )
89
+ ] })
79
90
  ] }) });
80
91
  }
81
92
  function ScorecardDownloadButton() {
93
+ const [isPending, startTransition] = useTransition();
82
94
  const { data: dataEngine } = useScorecardData();
83
- const [menuRef, setMenuRef] = useState(false);
95
+ const [openMenu, setOpenMenu] = useState(false);
84
96
  const [completed, setCompleted] = useState(dataEngine.isDone);
85
97
  const previewRef = useRef(null);
86
98
  useEffect(() => {
87
99
  return dataEngine.addOnCompleteListener(setCompleted);
88
100
  }, [dataEngine]);
89
101
  return /* @__PURE__ */ jsxs(Fragment, { children: [
90
- completed && /* @__PURE__ */ jsx(ScorecardPreviewArea, { previewRef }),
102
+ openMenu && /* @__PURE__ */ jsx(ScorecardPreviewArea, { previewRef }),
91
103
  /* @__PURE__ */ jsx(
92
104
  DropdownButton,
93
105
  {
94
106
  type: "button",
107
+ value: "scorecard-download-button",
95
108
  disabled: !completed,
96
- open: menuRef,
97
- onClick: (_, e) => {
98
- setMenuRef(true);
109
+ open: openMenu,
110
+ onClick: ({ open }) => {
111
+ startTransition(() => {
112
+ setOpenMenu(open);
113
+ });
99
114
  },
100
115
  icon: /* @__PURE__ */ jsx(IconDownload24, {}),
101
- component: /* @__PURE__ */ jsx(
116
+ component: isPending ? /* @__PURE__ */ jsx("div", { children: "Loading" }) : /* @__PURE__ */ jsx(
102
117
  DownloadMenu,
103
118
  {
104
- onClose: () => setMenuRef(false),
119
+ onClose: () => setOpenMenu(false),
105
120
  previewRef
106
121
  }
107
122
  ),
108
- children: !completed ? i18n.t("Please wait...") : i18n.t("Download")
123
+ children: !completed ? i18n.t("Please wait...") : isPending ? i18n.t("Preparing...") : i18n.t("Download")
109
124
  }
110
125
  )
111
126
  ] });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ScorecardPrint/components/ScorecardDownloadButton.tsx"],"names":[],"mappings":"AAwDE,mBAEE,KADD,YADD;AAxDF;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,OAAO,UAAU;AACjB,SAAyB,WAAW,QAAQ,gBAAgB;AAC5D,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AACrC,YAAY,UAAU;AACtB,SAAS,wBAAwB;AACjC,SAAS,kBAAkB,wBAAwB;AAEnD,SAAS,aAAa;AAAA,EACrB;AAAA,EACA;AACD,GAGG;AACF,QAAM,SAAS,mBAAmB;AAClC,QAAM,EAAE,MAAM,WAAW,IAAI,iBAAiB;AAC9C,QAAM,OAAO,iBAAiB;AAC9B,QAAM,QAAQ,gBAAgB;AAAA,IAC7B,YAAY;AAAA,IACZ,oBAAoB;AAAA,IACpB,eAAe,OAAO;AAAA,EACvB,CAAC;AAED,QA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IAAI,SAAkB,WAAW,MAAM;AACrE,QAAM,aAAa,OAA8B,IAAI;AAErD,YAAU,MAAM;AACf,WAAO,WAAW,sBAAsB,YAAY;AAAA,EACrD,GAAG,CAAC,UAAU,CAAC;AAEf,SACC,iCACE;AAAA,iBAAa,oBAAC,wBAAqB,YAAwB;AAAA,IAC5D;AAAA,MAAC;AAAA;AAAA,QACA,MAAK;AAAA,QACL,UAAU,CAAC;AAAA,QACX,MAAM;AAAA,QACN,SAAS,CAAC,GAAG,MAAM;AAClB,qBAAW,IAAI;AAAA,QAChB;AAAA,QACA,MAAM,oBAAC,kBAAe;AAAA,QACtB,WACC;AAAA,UAAC;AAAA;AAAA,YACA,SAAS,MAAM,WAAW,KAAK;AAAA,YAC/B;AAAA;AAAA,QACD;AAAA,QAGA,WAAC,YAAY,KAAK,EAAE,gBAAgB,IAAI,KAAK,EAAE,UAAU;AAAA;AAAA,IAC3D;AAAA,KACD;AAEF","sourcesContent":["import {\n\tDropdownButton,\n\tFlyoutMenu,\n\tIconDownload24,\n\tMenuItem,\n\tMenuSectionHeader,\n} from \"@dhis2/ui\";\nimport i18n from \"@dhis2/d2-i18n\";\nimport { type RefObject, useEffect, useRef, useState } from \"react\";\nimport { useScorecardData } from \"../../DataProvider\";\nimport { useReactToPrint } from \"react-to-print\";\nimport { useScorecardConfig } from \"../../ConfigProvider\";\nimport { ScorecardPreviewArea } from \"./ScorecardPreviewArea\";\nimport * as xlsx from \"xlsx\";\nimport { useScorecardMeta } from \"../../MetaProvider\";\nimport { downloadALMAData, downloadALMAMeta } from \"../utils/download\";\n\nfunction DownloadMenu({\n\tpreviewRef,\n\tonClose,\n}: {\n\tpreviewRef: RefObject<HTMLDivElement>;\n\tonClose: () => void;\n}) {\n\tconst config = useScorecardConfig();\n\tconst { data: dataEngine } = useScorecardData();\n\tconst meta = useScorecardMeta();\n\tconst print = useReactToPrint({\n\t\tcontentRef: previewRef,\n\t\tpreserveAfterPrint: false,\n\t\tdocumentTitle: config.title,\n\t});\n\n\tconst onDownload = (type: \"excel\" | \"csv\" | \"alma\" | \"almaMeta\") => () => {\n\t\tonClose();\n\t\tswitch (type) {\n\t\t\tcase \"csv\":\n\t\t\tcase \"excel\":\n\t\t\t\tconst extension = type === \"csv\" ? \"csv\" : \"xlsx\";\n\t\t\t\tconst workbook = xlsx.utils.table_to_book(previewRef.current);\n\t\t\t\txlsx.writeFile(workbook, `${config.title}.${extension}`);\n\t\t\t\tbreak;\n\t\t\tcase \"almaMeta\":\n\t\t\t\tdownloadALMAMeta({ config, meta: meta! });\n\t\t\t\tbreak;\n\t\t\tcase \"alma\":\n\t\t\t\tdownloadALMAData({\n\t\t\t\t\tconfig,\n\t\t\t\t\tmeta: meta!,\n\t\t\t\t\tdata: dataEngine.data,\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t}\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<FlyoutMenu>\n\t\t\t\t<MenuItem\n\t\t\t\t\tonClick={onDownload(\"excel\")}\n\t\t\t\t\tlabel={i18n.t(\"Excel\")}\n\t\t\t\t/>\n\t\t\t\t<MenuItem onClick={onDownload(\"csv\")} label={i18n.t(\"CSV\")} />\n\t\t\t\t<MenuItem\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tprint();\n\t\t\t\t\t}}\n\t\t\t\t\tlabel={i18n.t(\"PDF\")}\n\t\t\t\t/>\n\t\t\t\t<MenuSectionHeader label={i18n.t(\"ALMA\")} />\n\t\t\t\t<MenuItem\n\t\t\t\t\tonClick={onDownload(\"alma\")}\n\t\t\t\t\tlabel={i18n.t(\"Data(JSON)\")}\n\t\t\t\t/>\n\t\t\t\t<MenuItem\n\t\t\t\t\tonClick={onDownload(\"almaMeta\")}\n\t\t\t\t\tlabel={i18n.t(\"Metadata\")}\n\t\t\t\t/>\n\t\t\t</FlyoutMenu>\n\t\t</>\n\t);\n}\n\nexport function ScorecardDownloadButton() {\n\tconst { data: dataEngine } = useScorecardData();\n\tconst [menuRef, setMenuRef] = useState<boolean>(false);\n\tconst [completed, setCompleted] = useState<boolean>(dataEngine.isDone);\n\tconst previewRef = useRef<HTMLDivElement | null>(null);\n\n\tuseEffect(() => {\n\t\treturn dataEngine.addOnCompleteListener(setCompleted);\n\t}, [dataEngine]);\n\n\treturn (\n\t\t<>\n\t\t\t{completed && <ScorecardPreviewArea previewRef={previewRef} />}\n\t\t\t<DropdownButton\n\t\t\t\ttype=\"button\"\n\t\t\t\tdisabled={!completed}\n\t\t\t\topen={menuRef}\n\t\t\t\tonClick={(_, e) => {\n\t\t\t\t\tsetMenuRef(true);\n\t\t\t\t}}\n\t\t\t\ticon={<IconDownload24 />}\n\t\t\t\tcomponent={\n\t\t\t\t\t<DownloadMenu\n\t\t\t\t\t\tonClose={() => setMenuRef(false)}\n\t\t\t\t\t\tpreviewRef={previewRef}\n\t\t\t\t\t/>\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t{!completed ? i18n.t(\"Please wait...\") : i18n.t(\"Download\")}\n\t\t\t</DropdownButton>\n\t\t</>\n\t);\n}\n"]}
1
+ {"version":3,"sources":["../../../../../src/components/ScorecardPrint/components/ScorecardDownloadButton.tsx"],"names":[],"mappings":"AAkFE,mBAEE,KAMA,YARF;AAlFF;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,OAAO,UAAU;AACjB;AAAA,EAEC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AACrC,YAAY,UAAU;AACtB,SAAS,wBAAwB;AACjC,SAAS,kBAAkB,wBAAwB;AACnD,SAAS,gBAAgB;AAEzB,SAAS,aAAa;AAAA,EACrB;AAAA,EACA;AACD,GAGG;AACF,QAAM,SAAS,mBAAmB;AAClC,QAAM,EAAE,KAAK,IAAI;AAAA,IAChB,CAAC,EAAE,QAAQ,MAAM;AAAA,IACjB,CAAC,EAAE,KAA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AAA;AAAA,IACtB;AAAA,KACD;AAEF","sourcesContent":["import {\n\tDropdownButton,\n\tFlyoutMenu,\n\tIconDownload24,\n\tMenuItem,\n} from \"@dhis2/ui\";\nimport i18n from \"@dhis2/d2-i18n\";\nimport {\n\ttype RefObject,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tuseTransition,\n} from \"react\";\nimport { useScorecardData } from \"../../DataProvider\";\nimport { useReactToPrint } from \"react-to-print\";\nimport { useScorecardConfig } from \"../../ConfigProvider\";\nimport { ScorecardPreviewArea } from \"./ScorecardPreviewArea\";\nimport * as xlsx from \"xlsx\";\nimport { useScorecardMeta } from \"../../MetaProvider\";\nimport { downloadALMAData, downloadALMAMeta } from \"../utils/download\";\nimport { useAlert } from \"@dhis2/app-runtime\";\n\nfunction DownloadMenu({\n\tpreviewRef,\n\tonClose,\n}: {\n\tpreviewRef: RefObject<HTMLDivElement>;\n\tonClose: () => void;\n}) {\n\tconst config = useScorecardConfig();\n\tconst { show } = useAlert(\n\t\t({ message }) => message,\n\t\t({ type }) => ({ ...type, duration: 3000 }),\n\t);\n\tconst { data: dataEngine } = useScorecardData();\n\tconst meta = useScorecardMeta();\n\tconst print = useReactToPrint({\n\t\tcontentRef: previewRef,\n\t\tpreserveAfterPrint: false,\n\t\tdocumentTitle: config.title,\n\t\tonPrintError: (errorLocation, error) => {\n\t\t\tconsole.error(`Error running ${errorLocation}`);\n\t\t\tconsole.error(error);\n\t\t\tshow({\n\t\t\t\tmessage: `${i18n.t(\"Could not open the print dialog\")}: ${\n\t\t\t\t\terror.message ?? i18n.t(\"Unknown error\")\n\t\t\t\t}`,\n\t\t\t\ttype: { info: true },\n\t\t\t});\n\t\t},\n\t});\n\n\tconst onDownload =\n\t\t(type: \"excel\" | \"csv\" | \"alma\" | \"almaMeta\" | \"pdf\") => () => {\n\t\t\tonClose();\n\t\t\tswitch (type) {\n\t\t\t\tcase \"pdf\":\n\t\t\t\t\tprint();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"csv\":\n\t\t\t\tcase \"excel\":\n\t\t\t\t\tconst extension = type === \"csv\" ? \"csv\" : \"xlsx\";\n\t\t\t\t\tconst workbook = xlsx.utils.table_to_book(\n\t\t\t\t\t\tpreviewRef.current,\n\t\t\t\t\t);\n\t\t\t\t\txlsx.writeFile(workbook, `${config.title}.${extension}`);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"almaMeta\":\n\t\t\t\t\tdownloadALMAMeta({ config, meta: meta! });\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"alma\":\n\t\t\t\t\tdownloadALMAData({\n\t\t\t\t\t\tconfig,\n\t\t\t\t\t\tmeta: meta!,\n\t\t\t\t\t\tdata: dataEngine.data,\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t};\n\n\treturn (\n\t\t<>\n\t\t\t<FlyoutMenu closeMenu={onClose}>\n\t\t\t\t<MenuItem\n\t\t\t\t\tonClick={onDownload(\"excel\")}\n\t\t\t\t\tlabel={i18n.t(\"Excel\")}\n\t\t\t\t/>\n\t\t\t\t<MenuItem onClick={onDownload(\"csv\")} label={i18n.t(\"CSV\")} />\n\t\t\t\t<MenuItem onClick={onDownload(\"pdf\")} label={i18n.t(\"PDF\")} />\n\t\t\t\t<MenuItem label={i18n.t(\"ALMA\")}>\n\t\t\t\t\t<MenuItem\n\t\t\t\t\t\tonClick={onDownload(\"alma\")}\n\t\t\t\t\t\tlabel={i18n.t(\"Data(JSON)\")}\n\t\t\t\t\t/>\n\t\t\t\t\t<MenuItem\n\t\t\t\t\t\tonClick={onDownload(\"almaMeta\")}\n\t\t\t\t\t\tlabel={i18n.t(\"Metadata\")}\n\t\t\t\t\t/>\n\t\t\t\t</MenuItem>\n\t\t\t</FlyoutMenu>\n\t\t</>\n\t);\n}\n\nexport function ScorecardDownloadButton() {\n\tconst [isPending, startTransition] = useTransition();\n\tconst { data: dataEngine } = useScorecardData();\n\tconst [openMenu, setOpenMenu] = useState<boolean>(false);\n\tconst [completed, setCompleted] = useState<boolean>(dataEngine.isDone);\n\tconst previewRef = useRef<HTMLDivElement | null>(null);\n\n\tuseEffect(() => {\n\t\treturn dataEngine.addOnCompleteListener(setCompleted);\n\t}, [dataEngine]);\n\n\treturn (\n\t\t<>\n\t\t\t{openMenu && <ScorecardPreviewArea previewRef={previewRef} />}\n\t\t\t<DropdownButton\n\t\t\t\ttype=\"button\"\n\t\t\t\tvalue=\"scorecard-download-button\"\n\t\t\t\tdisabled={!completed}\n\t\t\t\topen={openMenu}\n\t\t\t\tonClick={({ open }) => {\n\t\t\t\t\tstartTransition(() => {\n\t\t\t\t\t\tsetOpenMenu(open);\n\t\t\t\t\t});\n\t\t\t\t}}\n\t\t\t\ticon={<IconDownload24 />}\n\t\t\t\tcomponent={\n\t\t\t\t\tisPending ? (\n\t\t\t\t\t\t<div>Loading</div>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<DownloadMenu\n\t\t\t\t\t\t\tonClose={() => setOpenMenu(false)}\n\t\t\t\t\t\t\tpreviewRef={previewRef}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t{!completed\n\t\t\t\t\t? i18n.t(\"Please wait...\")\n\t\t\t\t\t: isPending\n\t\t\t\t\t\t? i18n.t(\"Preparing...\")\n\t\t\t\t\t\t: i18n.t(\"Download\")}\n\t\t\t</DropdownButton>\n\t\t</>\n\t);\n}\n"]}
@@ -6,11 +6,27 @@ import { HTML5Backend } from 'react-dnd-html5-backend';
6
6
  import { ScorecardTable } from '../../ScorecardTable';
7
7
  import { ScorecardHeader } from '../../ScorecardHeader';
8
8
  import { ScorecardLegendsView } from '../../ScorecardLegendsView';
9
+ import { ScorecardStateProvider } from '../../StateProvider';
10
+ import { useScorecardConfig } from '../../ConfigProvider';
11
+ import { useRecoilValue } from 'recoil';
12
+ import { scorecardStateAtom } from '../../../state';
13
+ import '../print.css';
9
14
 
10
15
  const ScorecardPreviewArea = memo(function ScorecardPreviewArea2({
11
16
  previewRef
12
17
  }) {
13
- return /* @__PURE__ */ jsx("div", { style: { display: "none" }, children: /* @__PURE__ */ jsxs(
18
+ const config = useScorecardConfig();
19
+ const state = useRecoilValue(scorecardStateAtom);
20
+ const updatedState = {
21
+ ...state ?? {},
22
+ options: {
23
+ ...state?.options ?? {},
24
+ disableExpanding: true,
25
+ disablePagination: true,
26
+ printMode: true
27
+ }
28
+ };
29
+ return /* @__PURE__ */ jsx(ScorecardStateProvider, { initialState: updatedState, config, children: /* @__PURE__ */ jsx("div", { style: { display: "none" }, children: /* @__PURE__ */ jsxs(
14
30
  "div",
15
31
  {
16
32
  className: "print-preview",
@@ -34,7 +50,7 @@ const ScorecardPreviewArea = memo(function ScorecardPreviewArea2({
34
50
  ) }) })
35
51
  ]
36
52
  }
37
- ) });
53
+ ) }) });
38
54
  });
39
55
 
40
56
  export { ScorecardPreviewArea };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ScorecardPrint/components/ScorecardPreviewArea.tsx"],"names":["ScorecardPreviewArea"],"mappings":"AAeG,SAUC,KAVD;AAfH,SAAgB,YAA4B;AAC5C,SAAS,0BAA0B;AACnC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AAE9B,MAAM,uBAAuB,KAAK,SAASA,sBAAqB;AAAA,EACtE;AACD,GAEG;AACF,SACC,oBAAC,SAAI,OAAO,EAAE,SAAS,OAAO,GAC7B;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,OAAO;AAAA,QACN,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,KAAK;AAAA,QACL,eAAe;AAAA,MAChB;AAAA,MACA,KAAK;AAAA,MAEL;AAAA,4BAAC,mBAAgB;AAAA,QACjB,oBAAC,wBAAqB;AAAA,QACtB,oBAAC,sBACA,8BAAC,eAAY,SAAS,cACrB;AAAA,UAAC;AAAA;AAAA,YACA,cAAa;AAAA,YACb,aAAY;AAAA,YACZ,OAAM;AAAA;AAAA,QACP,GACD,GACD;AAAA;AAAA;AAAA,EACD,GACD;AAEF,CAAC","sourcesContent":["import React, { memo, type RefObject } from \"react\";\nimport { TableStateProvider } from \"../../TableStateProvider\";\nimport { DndProvider } from \"react-dnd\";\nimport { HTML5Backend } from \"react-dnd-html5-backend\";\nimport { ScorecardTable } from \"../../ScorecardTable\";\nimport { ScorecardHeader } from \"../../ScorecardHeader\";\nimport { ScorecardLegendsView } from \"../../ScorecardLegendsView\";\n\nexport const ScorecardPreviewArea = memo(function ScorecardPreviewArea({\n\tpreviewRef,\n}: {\n\tpreviewRef: RefObject<HTMLDivElement>;\n}) {\n\treturn (\n\t\t<div style={{ display: \"none\" }}>\n\t\t\t<div\n\t\t\t\tclassName=\"print-preview\"\n\t\t\t\tstyle={{\n\t\t\t\t\theight: \"100%\",\n\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\tgap: 16,\n\t\t\t\t\tflexDirection: \"column\",\n\t\t\t\t}}\n\t\t\t\tref={previewRef}\n\t\t\t>\n\t\t\t\t<ScorecardHeader />\n\t\t\t\t<ScorecardLegendsView />\n\t\t\t\t<TableStateProvider>\n\t\t\t\t\t<DndProvider backend={HTML5Backend}>\n\t\t\t\t\t\t<ScorecardTable\n\t\t\t\t\t\t\tscrollHeight=\"100%\"\n\t\t\t\t\t\t\tscrollWidth=\"100%\"\n\t\t\t\t\t\t\twidth=\"100%\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</DndProvider>\n\t\t\t\t</TableStateProvider>\n\t\t\t</div>\n\t\t</div>\n\t);\n});\n"]}
1
+ {"version":3,"sources":["../../../../../src/components/ScorecardPrint/components/ScorecardPreviewArea.tsx"],"names":["ScorecardPreviewArea"],"mappings":"AAmCI,SAUC,KAVD;AAnCJ,SAAgB,YAA4B;AAC5C,SAAS,0BAA0B;AACnC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAC/B,SAAS,0BAA0B;AAEnC,OAAO;AAEA,MAAM,uBAAuB,KAAK,SAASA,sBAAqB;AAAA,EACtE;AACD,GAEG;AACF,QAAM,SAAS,mBAAmB;AAClC,QAAM,QAAQ,eAAe,kBAAkB;AAE/C,QAAM,eAAe;AAAA,IACpB,GAAI,SAAS,CAAC;AAAA,IACd,SAAS;AAAA,MACR,GAAI,OAAO,WAAW,CAAC;AAAA,MACvB,kBAAkB;AAAA,MAClB,mBAAmB;AAAA,MACnB,WAAW;AAAA,IACZ;AAAA,EACD;AAEA,SACC,oBAAC,0BAAuB,cAAc,cAAc,QACnD,8BAAC,SAAI,OAAO,EAAE,SAAS,OAAO,GAC7B;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,OAAO;AAAA,QACN,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,KAAK;AAAA,QACL,eAAe;AAAA,MAChB;AAAA,MACA,KAAK;AAAA,MAEL;AAAA,4BAAC,mBAAgB;AAAA,QACjB,oBAAC,wBAAqB;AAAA,QACtB,oBAAC,sBACA,8BAAC,eAAY,SAAS,cACrB;AAAA,UAAC;AAAA;AAAA,YACA,cAAa;AAAA,YACb,aAAY;AAAA,YACZ,OAAM;AAAA;AAAA,QACP,GACD,GACD;AAAA;AAAA;AAAA,EACD,GACD,GACD;AAEF,CAAC","sourcesContent":["import React, { memo, type RefObject } from \"react\";\nimport { TableStateProvider } from \"../../TableStateProvider\";\nimport { DndProvider } from \"react-dnd\";\nimport { HTML5Backend } from \"react-dnd-html5-backend\";\nimport { ScorecardTable } from \"../../ScorecardTable\";\nimport { ScorecardHeader } from \"../../ScorecardHeader\";\nimport { ScorecardLegendsView } from \"../../ScorecardLegendsView\";\nimport { ScorecardStateProvider } from \"../../StateProvider\";\nimport { useScorecardConfig } from \"../../ConfigProvider\";\nimport { useRecoilValue } from \"recoil\";\nimport { scorecardStateAtom } from \"../../../state\";\nimport type { ScorecardState } from \"../../../schemas/config\";\nimport \"../print.css\";\n\nexport const ScorecardPreviewArea = memo(function ScorecardPreviewArea({\n\tpreviewRef,\n}: {\n\tpreviewRef: RefObject<HTMLDivElement>;\n}) {\n\tconst config = useScorecardConfig();\n\tconst state = useRecoilValue(scorecardStateAtom);\n\n\tconst updatedState = {\n\t\t...(state ?? {}),\n\t\toptions: {\n\t\t\t...(state?.options ?? {}),\n\t\t\tdisableExpanding: true,\n\t\t\tdisablePagination: true,\n\t\t\tprintMode: true,\n\t\t},\n\t} as ScorecardState;\n\n\treturn (\n\t\t<ScorecardStateProvider initialState={updatedState} config={config}>\n\t\t\t<div style={{ display: \"none\" }}>\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"print-preview\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\theight: \"100%\",\n\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\tgap: 16,\n\t\t\t\t\t\tflexDirection: \"column\",\n\t\t\t\t\t}}\n\t\t\t\t\tref={previewRef}\n\t\t\t\t>\n\t\t\t\t\t<ScorecardHeader />\n\t\t\t\t\t<ScorecardLegendsView />\n\t\t\t\t\t<TableStateProvider>\n\t\t\t\t\t\t<DndProvider backend={HTML5Backend}>\n\t\t\t\t\t\t\t<ScorecardTable\n\t\t\t\t\t\t\t\tscrollHeight=\"100%\"\n\t\t\t\t\t\t\t\tscrollWidth=\"100%\"\n\t\t\t\t\t\t\t\twidth=\"100%\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</DndProvider>\n\t\t\t\t\t</TableStateProvider>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ScorecardStateProvider>\n\t);\n});\n"]}
@@ -128,7 +128,6 @@ function downloadALMAMeta({
128
128
  )
129
129
  )
130
130
  });
131
- console.log(json);
132
131
  const blob = new Blob([json], { type: "application/json" });
133
132
  saveAs(blob, `${config.title}-metadata.json`);
134
133
  } catch (e) {