riksdagsmonitor 0.8.14 → 0.8.15
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.
- package/dist/lib/cia/dashboard-init.d.ts +26 -0
- package/dist/lib/cia/dashboard-init.d.ts.map +1 -0
- package/dist/lib/cia/dashboard-init.js +108 -0
- package/dist/lib/cia/dashboard-init.js.map +1 -0
- package/dist/lib/cia/data-loader.d.ts +408 -0
- package/dist/lib/cia/data-loader.d.ts.map +1 -0
- package/dist/lib/cia/data-loader.js +867 -0
- package/dist/lib/cia/data-loader.js.map +1 -0
- package/dist/lib/cia/election-predictions.d.ts +78 -0
- package/dist/lib/cia/election-predictions.d.ts.map +1 -0
- package/dist/lib/cia/election-predictions.js +259 -0
- package/dist/lib/cia/election-predictions.js.map +1 -0
- package/dist/lib/cia/i18n-translations.d.ts +111 -0
- package/dist/lib/cia/i18n-translations.d.ts.map +1 -0
- package/dist/lib/cia/i18n-translations.js +619 -0
- package/dist/lib/cia/i18n-translations.js.map +1 -0
- package/dist/lib/cia/visualizations.d.ts +64 -0
- package/dist/lib/cia/visualizations.d.ts.map +1 -0
- package/dist/lib/cia/visualizations.js +662 -0
- package/dist/lib/cia/visualizations.js.map +1 -0
- package/dist/lib/dashboards/anomaly-detection.d.ts +44 -0
- package/dist/lib/dashboards/anomaly-detection.d.ts.map +1 -0
- package/dist/lib/dashboards/anomaly-detection.js +1017 -0
- package/dist/lib/dashboards/anomaly-detection.js.map +1 -0
- package/dist/lib/dashboards/coalition-dashboard.d.ts +36 -0
- package/dist/lib/dashboards/coalition-dashboard.d.ts.map +1 -0
- package/dist/lib/dashboards/coalition-dashboard.js +629 -0
- package/dist/lib/dashboards/coalition-dashboard.js.map +1 -0
- package/dist/lib/dashboards/coalition-loader.d.ts +43 -0
- package/dist/lib/dashboards/coalition-loader.d.ts.map +1 -0
- package/dist/lib/dashboards/coalition-loader.js +665 -0
- package/dist/lib/dashboards/coalition-loader.js.map +1 -0
- package/dist/lib/dashboards/committees-dashboard.d.ts +23 -0
- package/dist/lib/dashboards/committees-dashboard.d.ts.map +1 -0
- package/dist/lib/dashboards/committees-dashboard.js +886 -0
- package/dist/lib/dashboards/committees-dashboard.js.map +1 -0
- package/dist/lib/dashboards/election-cycle.d.ts +62 -0
- package/dist/lib/dashboards/election-cycle.d.ts.map +1 -0
- package/dist/lib/dashboards/election-cycle.js +484 -0
- package/dist/lib/dashboards/election-cycle.js.map +1 -0
- package/dist/lib/dashboards/ministry-dashboard.d.ts +46 -0
- package/dist/lib/dashboards/ministry-dashboard.d.ts.map +1 -0
- package/dist/lib/dashboards/ministry-dashboard.js +1114 -0
- package/dist/lib/dashboards/ministry-dashboard.js.map +1 -0
- package/dist/lib/dashboards/party-dashboard.d.ts +56 -0
- package/dist/lib/dashboards/party-dashboard.d.ts.map +1 -0
- package/dist/lib/dashboards/party-dashboard.js +981 -0
- package/dist/lib/dashboards/party-dashboard.js.map +1 -0
- package/dist/lib/dashboards/politician-dashboard.d.ts +41 -0
- package/dist/lib/dashboards/politician-dashboard.d.ts.map +1 -0
- package/dist/lib/dashboards/politician-dashboard.js +611 -0
- package/dist/lib/dashboards/politician-dashboard.js.map +1 -0
- package/dist/lib/dashboards/pre-election.d.ts +64 -0
- package/dist/lib/dashboards/pre-election.d.ts.map +1 -0
- package/dist/lib/dashboards/pre-election.js +604 -0
- package/dist/lib/dashboards/pre-election.js.map +1 -0
- package/dist/lib/dashboards/risk-dashboard.d.ts +37 -0
- package/dist/lib/dashboards/risk-dashboard.d.ts.map +1 -0
- package/dist/lib/dashboards/risk-dashboard.js +863 -0
- package/dist/lib/dashboards/risk-dashboard.js.map +1 -0
- package/dist/lib/dashboards/seasonal-patterns.d.ts +24 -0
- package/dist/lib/dashboards/seasonal-patterns.d.ts.map +1 -0
- package/dist/lib/dashboards/seasonal-patterns.js +535 -0
- package/dist/lib/dashboards/seasonal-patterns.js.map +1 -0
- package/dist/lib/dashboards/stats-loader.d.ts +35 -0
- package/dist/lib/dashboards/stats-loader.d.ts.map +1 -0
- package/dist/lib/dashboards/stats-loader.js +145 -0
- package/dist/lib/dashboards/stats-loader.js.map +1 -0
- package/dist/lib/shared/chart-factory.d.ts.map +1 -0
- package/dist/lib/shared/chart-factory.js.map +1 -0
- package/dist/lib/shared/data-loader.d.ts.map +1 -0
- package/dist/lib/shared/data-loader.js.map +1 -0
- package/dist/lib/shared/dom-utils.d.ts.map +1 -0
- package/dist/lib/shared/dom-utils.js.map +1 -0
- package/dist/lib/shared/error-boundary.d.ts.map +1 -0
- package/dist/lib/shared/error-boundary.js.map +1 -0
- package/dist/lib/shared/fallback-ui.d.ts.map +1 -0
- package/dist/lib/shared/fallback-ui.js.map +1 -0
- package/dist/lib/shared/index.d.ts.map +1 -0
- package/dist/lib/shared/index.js.map +1 -0
- package/dist/lib/shared/logger.d.ts.map +1 -0
- package/dist/lib/shared/logger.js.map +1 -0
- package/dist/lib/shared/register-globals.d.ts +14 -0
- package/dist/lib/shared/register-globals.d.ts.map +1 -0
- package/dist/lib/shared/register-globals.js +21 -0
- package/dist/lib/shared/register-globals.js.map +1 -0
- package/dist/lib/shared/theme.d.ts.map +1 -0
- package/dist/lib/shared/theme.js.map +1 -0
- package/dist/lib/shared/types.d.ts.map +1 -0
- package/dist/lib/shared/types.js.map +1 -0
- package/dist/lib/ui/back-to-top.d.ts +13 -0
- package/dist/lib/ui/back-to-top.d.ts.map +1 -0
- package/dist/lib/ui/back-to-top.js +48 -0
- package/dist/lib/ui/back-to-top.js.map +1 -0
- package/dist/scripts/ai-analysis/coalition-detector.d.ts +28 -0
- package/dist/scripts/ai-analysis/coalition-detector.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/coalition-detector.js +242 -0
- package/dist/scripts/ai-analysis/coalition-detector.js.map +1 -0
- package/dist/scripts/ai-analysis/dashboard-analyzer.d.ts +73 -0
- package/dist/scripts/ai-analysis/dashboard-analyzer.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/dashboard-analyzer.js +511 -0
- package/dist/scripts/ai-analysis/dashboard-analyzer.js.map +1 -0
- package/dist/scripts/ai-analysis/document-analyzer.d.ts +196 -0
- package/dist/scripts/ai-analysis/document-analyzer.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/document-analyzer.js +1001 -0
- package/dist/scripts/ai-analysis/document-analyzer.js.map +1 -0
- package/dist/scripts/ai-analysis/domains/index.d.ts +15 -0
- package/dist/scripts/ai-analysis/domains/index.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/domains/index.js +494 -0
- package/dist/scripts/ai-analysis/domains/index.js.map +1 -0
- package/dist/scripts/ai-analysis/helpers.d.ts +43 -0
- package/dist/scripts/ai-analysis/helpers.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/helpers.js +79 -0
- package/dist/scripts/ai-analysis/helpers.js.map +1 -0
- package/dist/scripts/ai-analysis/index.d.ts +15 -0
- package/dist/scripts/ai-analysis/index.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/index.js +14 -0
- package/dist/scripts/ai-analysis/index.js.map +1 -0
- package/dist/scripts/ai-analysis/pipeline.d.ts +41 -0
- package/dist/scripts/ai-analysis/pipeline.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/pipeline.js +208 -0
- package/dist/scripts/ai-analysis/pipeline.js.map +1 -0
- package/dist/scripts/ai-analysis/political-significance.d.ts +63 -0
- package/dist/scripts/ai-analysis/political-significance.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/political-significance.js +227 -0
- package/dist/scripts/ai-analysis/political-significance.js.map +1 -0
- package/dist/scripts/ai-analysis/quality-assessor.d.ts +104 -0
- package/dist/scripts/ai-analysis/quality-assessor.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/quality-assessor.js +554 -0
- package/dist/scripts/ai-analysis/quality-assessor.js.map +1 -0
- package/dist/scripts/ai-analysis/swot/index.d.ts +56 -0
- package/dist/scripts/ai-analysis/swot/index.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/swot/index.js +360 -0
- package/dist/scripts/ai-analysis/swot/index.js.map +1 -0
- package/dist/scripts/ai-analysis/swot/placeholders.d.ts +30 -0
- package/dist/scripts/ai-analysis/swot/placeholders.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/swot/placeholders.js +381 -0
- package/dist/scripts/ai-analysis/swot/placeholders.js.map +1 -0
- package/dist/scripts/ai-analysis/types.d.ts +333 -0
- package/dist/scripts/ai-analysis/types.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/types.js +19 -0
- package/dist/scripts/ai-analysis/types.js.map +1 -0
- package/dist/scripts/ai-analysis/visualisation/index.d.ts +15 -0
- package/dist/scripts/ai-analysis/visualisation/index.d.ts.map +1 -0
- package/dist/scripts/ai-analysis/visualisation/index.js +179 -0
- package/dist/scripts/ai-analysis/visualisation/index.js.map +1 -0
- package/dist/scripts/analysis-framework/cross-reference.d.ts +35 -0
- package/dist/scripts/analysis-framework/cross-reference.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/cross-reference.js +290 -0
- package/dist/scripts/analysis-framework/cross-reference.js.map +1 -0
- package/dist/scripts/analysis-framework/index.d.ts +79 -0
- package/dist/scripts/analysis-framework/index.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/index.js +133 -0
- package/dist/scripts/analysis-framework/index.js.map +1 -0
- package/dist/scripts/analysis-framework/lenses/citizen.d.ts +29 -0
- package/dist/scripts/analysis-framework/lenses/citizen.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/lenses/citizen.js +220 -0
- package/dist/scripts/analysis-framework/lenses/citizen.js.map +1 -0
- package/dist/scripts/analysis-framework/lenses/economic.d.ts +29 -0
- package/dist/scripts/analysis-framework/lenses/economic.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/lenses/economic.js +227 -0
- package/dist/scripts/analysis-framework/lenses/economic.js.map +1 -0
- package/dist/scripts/analysis-framework/lenses/government.d.ts +32 -0
- package/dist/scripts/analysis-framework/lenses/government.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/lenses/government.js +265 -0
- package/dist/scripts/analysis-framework/lenses/government.js.map +1 -0
- package/dist/scripts/analysis-framework/lenses/international.d.ts +29 -0
- package/dist/scripts/analysis-framework/lenses/international.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/lenses/international.js +248 -0
- package/dist/scripts/analysis-framework/lenses/international.js.map +1 -0
- package/dist/scripts/analysis-framework/lenses/media.d.ts +29 -0
- package/dist/scripts/analysis-framework/lenses/media.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/lenses/media.js +211 -0
- package/dist/scripts/analysis-framework/lenses/media.js.map +1 -0
- package/dist/scripts/analysis-framework/lenses/opposition.d.ts +29 -0
- package/dist/scripts/analysis-framework/lenses/opposition.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/lenses/opposition.js +234 -0
- package/dist/scripts/analysis-framework/lenses/opposition.js.map +1 -0
- package/dist/scripts/analysis-framework/methodology-types.d.ts +309 -0
- package/dist/scripts/analysis-framework/methodology-types.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/methodology-types.js +38 -0
- package/dist/scripts/analysis-framework/methodology-types.js.map +1 -0
- package/dist/scripts/analysis-framework/political-classification.d.ts +58 -0
- package/dist/scripts/analysis-framework/political-classification.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/political-classification.js +414 -0
- package/dist/scripts/analysis-framework/political-classification.js.map +1 -0
- package/dist/scripts/analysis-framework/political-risk-assessment.d.ts +74 -0
- package/dist/scripts/analysis-framework/political-risk-assessment.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/political-risk-assessment.js +656 -0
- package/dist/scripts/analysis-framework/political-risk-assessment.js.map +1 -0
- package/dist/scripts/analysis-framework/political-threat-analysis.d.ts +65 -0
- package/dist/scripts/analysis-framework/political-threat-analysis.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/political-threat-analysis.js +553 -0
- package/dist/scripts/analysis-framework/political-threat-analysis.js.map +1 -0
- package/dist/scripts/analysis-framework/significance-scorer.d.ts +62 -0
- package/dist/scripts/analysis-framework/significance-scorer.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/significance-scorer.js +196 -0
- package/dist/scripts/analysis-framework/significance-scorer.js.map +1 -0
- package/dist/scripts/analysis-framework/types.d.ts +138 -0
- package/dist/scripts/analysis-framework/types.d.ts.map +1 -0
- package/dist/scripts/analysis-framework/types.js +12 -0
- package/dist/scripts/analysis-framework/types.js.map +1 -0
- package/dist/scripts/analysis-reader.d.ts +240 -0
- package/dist/scripts/analysis-reader.d.ts.map +1 -0
- package/dist/scripts/analysis-reader.js +495 -0
- package/dist/scripts/analysis-reader.js.map +1 -0
- package/dist/scripts/article-quality-enhancer.d.ts +148 -0
- package/dist/scripts/article-quality-enhancer.d.ts.map +1 -0
- package/dist/scripts/article-quality-enhancer.js +430 -0
- package/dist/scripts/article-quality-enhancer.js.map +1 -0
- package/dist/scripts/article-template/constants.d.ts +104 -0
- package/dist/scripts/article-template/constants.d.ts.map +1 -0
- package/dist/scripts/article-template/constants.js +225 -0
- package/dist/scripts/article-template/constants.js.map +1 -0
- package/dist/scripts/article-template/helpers.d.ts +83 -0
- package/dist/scripts/article-template/helpers.d.ts.map +1 -0
- package/dist/scripts/article-template/helpers.js +236 -0
- package/dist/scripts/article-template/helpers.js.map +1 -0
- package/dist/scripts/article-template/index.d.ts +39 -0
- package/dist/scripts/article-template/index.d.ts.map +1 -0
- package/dist/scripts/article-template/index.js +37 -0
- package/dist/scripts/article-template/index.js.map +1 -0
- package/dist/scripts/article-template/registry.d.ts +64 -0
- package/dist/scripts/article-template/registry.d.ts.map +1 -0
- package/dist/scripts/article-template/registry.js +405 -0
- package/dist/scripts/article-template/registry.js.map +1 -0
- package/dist/scripts/article-template/template.d.ts +18 -0
- package/dist/scripts/article-template/template.d.ts.map +1 -0
- package/dist/scripts/article-template/template.js +359 -0
- package/dist/scripts/article-template/template.js.map +1 -0
- package/dist/scripts/article-template/types.d.ts +90 -0
- package/dist/scripts/article-template/types.d.ts.map +1 -0
- package/dist/scripts/article-template/types.js +96 -0
- package/dist/scripts/article-template/types.js.map +1 -0
- package/dist/scripts/article-template.d.ts +18 -0
- package/dist/scripts/article-template.d.ts.map +1 -0
- package/dist/scripts/article-template.js +18 -0
- package/dist/scripts/article-template.js.map +1 -0
- package/dist/scripts/catalog-downloaded-data.d.ts +66 -0
- package/dist/scripts/catalog-downloaded-data.d.ts.map +1 -0
- package/dist/scripts/catalog-downloaded-data.js +239 -0
- package/dist/scripts/catalog-downloaded-data.js.map +1 -0
- package/dist/scripts/check-cia-schema-updates.d.ts +186 -0
- package/dist/scripts/check-cia-schema-updates.d.ts.map +1 -0
- package/dist/scripts/check-cia-schema-updates.js +363 -0
- package/dist/scripts/check-cia-schema-updates.js.map +1 -0
- package/dist/scripts/data-transformers/calendar.d.ts +16 -0
- package/dist/scripts/data-transformers/calendar.d.ts.map +1 -0
- package/dist/scripts/data-transformers/calendar.js +137 -0
- package/dist/scripts/data-transformers/calendar.js.map +1 -0
- package/dist/scripts/data-transformers/constants/committee-names.d.ts +15 -0
- package/dist/scripts/data-transformers/constants/committee-names.d.ts.map +1 -0
- package/dist/scripts/data-transformers/constants/committee-names.js +30 -0
- package/dist/scripts/data-transformers/constants/committee-names.js.map +1 -0
- package/dist/scripts/data-transformers/constants/content-labels-part1.d.ts +11 -0
- package/dist/scripts/data-transformers/constants/content-labels-part1.d.ts.map +1 -0
- package/dist/scripts/data-transformers/constants/content-labels-part1.js +900 -0
- package/dist/scripts/data-transformers/constants/content-labels-part1.js.map +1 -0
- package/dist/scripts/data-transformers/constants/content-labels-part2.d.ts +11 -0
- package/dist/scripts/data-transformers/constants/content-labels-part2.d.ts.map +1 -0
- package/dist/scripts/data-transformers/constants/content-labels-part2.js +900 -0
- package/dist/scripts/data-transformers/constants/content-labels-part2.js.map +1 -0
- package/dist/scripts/data-transformers/constants/content-labels.d.ts +13 -0
- package/dist/scripts/data-transformers/constants/content-labels.d.ts.map +1 -0
- package/dist/scripts/data-transformers/constants/content-labels.js +18 -0
- package/dist/scripts/data-transformers/constants/content-labels.js.map +1 -0
- package/dist/scripts/data-transformers/constants/index.d.ts +15 -0
- package/dist/scripts/data-transformers/constants/index.d.ts.map +1 -0
- package/dist/scripts/data-transformers/constants/index.js +15 -0
- package/dist/scripts/data-transformers/constants/index.js.map +1 -0
- package/dist/scripts/data-transformers/constants/locale-map.d.ts +13 -0
- package/dist/scripts/data-transformers/constants/locale-map.d.ts.map +1 -0
- package/dist/scripts/data-transformers/constants/locale-map.js +17 -0
- package/dist/scripts/data-transformers/constants/locale-map.js.map +1 -0
- package/dist/scripts/data-transformers/constants.d.ts +14 -0
- package/dist/scripts/data-transformers/constants.d.ts.map +1 -0
- package/dist/scripts/data-transformers/constants.js +14 -0
- package/dist/scripts/data-transformers/constants.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/ai-mindmap-analyzer.d.ts +64 -0
- package/dist/scripts/data-transformers/content-generators/ai-mindmap-analyzer.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/ai-mindmap-analyzer.js +805 -0
- package/dist/scripts/data-transformers/content-generators/ai-mindmap-analyzer.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/ai-swot-analyzer.d.ts +89 -0
- package/dist/scripts/data-transformers/content-generators/ai-swot-analyzer.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/ai-swot-analyzer.js +667 -0
- package/dist/scripts/data-transformers/content-generators/ai-swot-analyzer.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/cia-overview-section.d.ts +50 -0
- package/dist/scripts/data-transformers/content-generators/cia-overview-section.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/cia-overview-section.js +310 -0
- package/dist/scripts/data-transformers/content-generators/cia-overview-section.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/committee.d.ts +12 -0
- package/dist/scripts/data-transformers/content-generators/committee.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/committee.js +247 -0
- package/dist/scripts/data-transformers/content-generators/committee.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/dashboard-section.d.ts +124 -0
- package/dist/scripts/data-transformers/content-generators/dashboard-section.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/dashboard-section.js +564 -0
- package/dist/scripts/data-transformers/content-generators/dashboard-section.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/economic-dashboard-section.d.ts +82 -0
- package/dist/scripts/data-transformers/content-generators/economic-dashboard-section.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/economic-dashboard-section.js +321 -0
- package/dist/scripts/data-transformers/content-generators/economic-dashboard-section.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/generic.d.ts +12 -0
- package/dist/scripts/data-transformers/content-generators/generic.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/generic.js +295 -0
- package/dist/scripts/data-transformers/content-generators/generic.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/index.d.ts +56 -0
- package/dist/scripts/data-transformers/content-generators/index.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/index.js +45 -0
- package/dist/scripts/data-transformers/content-generators/index.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/interpellations.d.ts +12 -0
- package/dist/scripts/data-transformers/content-generators/interpellations.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/interpellations.js +124 -0
- package/dist/scripts/data-transformers/content-generators/interpellations.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/mindmap-section.d.ts +137 -0
- package/dist/scripts/data-transformers/content-generators/mindmap-section.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/mindmap-section.js +286 -0
- package/dist/scripts/data-transformers/content-generators/mindmap-section.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/month-ahead.d.ts +17 -0
- package/dist/scripts/data-transformers/content-generators/month-ahead.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/month-ahead.js +212 -0
- package/dist/scripts/data-transformers/content-generators/month-ahead.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/monthly-review.d.ts +17 -0
- package/dist/scripts/data-transformers/content-generators/monthly-review.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/monthly-review.js +173 -0
- package/dist/scripts/data-transformers/content-generators/monthly-review.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/motions.d.ts +12 -0
- package/dist/scripts/data-transformers/content-generators/motions.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/motions.js +158 -0
- package/dist/scripts/data-transformers/content-generators/motions.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/newsworthiness.d.ts +52 -0
- package/dist/scripts/data-transformers/content-generators/newsworthiness.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/newsworthiness.js +244 -0
- package/dist/scripts/data-transformers/content-generators/newsworthiness.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/propositions.d.ts +12 -0
- package/dist/scripts/data-transformers/content-generators/propositions.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/propositions.js +263 -0
- package/dist/scripts/data-transformers/content-generators/propositions.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/sankey-section.d.ts +92 -0
- package/dist/scripts/data-transformers/content-generators/sankey-section.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/sankey-section.js +257 -0
- package/dist/scripts/data-transformers/content-generators/sankey-section.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/shared.d.ts +81 -0
- package/dist/scripts/data-transformers/content-generators/shared.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/shared.js +913 -0
- package/dist/scripts/data-transformers/content-generators/shared.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/stakeholder-swot-section.d.ts +83 -0
- package/dist/scripts/data-transformers/content-generators/stakeholder-swot-section.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/stakeholder-swot-section.js +219 -0
- package/dist/scripts/data-transformers/content-generators/stakeholder-swot-section.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/swot-section.d.ts +50 -0
- package/dist/scripts/data-transformers/content-generators/swot-section.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/swot-section.js +177 -0
- package/dist/scripts/data-transformers/content-generators/swot-section.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators/week-ahead.d.ts +12 -0
- package/dist/scripts/data-transformers/content-generators/week-ahead.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators/week-ahead.js +332 -0
- package/dist/scripts/data-transformers/content-generators/week-ahead.js.map +1 -0
- package/dist/scripts/data-transformers/content-generators.d.ts +15 -0
- package/dist/scripts/data-transformers/content-generators.d.ts.map +1 -0
- package/dist/scripts/data-transformers/content-generators.js +14 -0
- package/dist/scripts/data-transformers/content-generators.js.map +1 -0
- package/dist/scripts/data-transformers/document-analysis.d.ts +58 -0
- package/dist/scripts/data-transformers/document-analysis.d.ts.map +1 -0
- package/dist/scripts/data-transformers/document-analysis.js +396 -0
- package/dist/scripts/data-transformers/document-analysis.js.map +1 -0
- package/dist/scripts/data-transformers/helpers.d.ts +144 -0
- package/dist/scripts/data-transformers/helpers.d.ts.map +1 -0
- package/dist/scripts/data-transformers/helpers.js +408 -0
- package/dist/scripts/data-transformers/helpers.js.map +1 -0
- package/dist/scripts/data-transformers/index.d.ts +45 -0
- package/dist/scripts/data-transformers/index.d.ts.map +1 -0
- package/dist/scripts/data-transformers/index.js +66 -0
- package/dist/scripts/data-transformers/index.js.map +1 -0
- package/dist/scripts/data-transformers/metadata.d.ts +42 -0
- package/dist/scripts/data-transformers/metadata.d.ts.map +1 -0
- package/dist/scripts/data-transformers/metadata.js +385 -0
- package/dist/scripts/data-transformers/metadata.js.map +1 -0
- package/dist/scripts/data-transformers/policy-analysis.d.ts +105 -0
- package/dist/scripts/data-transformers/policy-analysis.d.ts.map +1 -0
- package/dist/scripts/data-transformers/policy-analysis.js +686 -0
- package/dist/scripts/data-transformers/policy-analysis.js.map +1 -0
- package/dist/scripts/data-transformers/risk-analysis.d.ts +104 -0
- package/dist/scripts/data-transformers/risk-analysis.d.ts.map +1 -0
- package/dist/scripts/data-transformers/risk-analysis.js +279 -0
- package/dist/scripts/data-transformers/risk-analysis.js.map +1 -0
- package/dist/scripts/data-transformers/types.d.ts +260 -0
- package/dist/scripts/data-transformers/types.d.ts.map +1 -0
- package/dist/scripts/data-transformers/types.js +11 -0
- package/dist/scripts/data-transformers/types.js.map +1 -0
- package/dist/scripts/data-transformers.d.ts +23 -0
- package/dist/scripts/data-transformers.d.ts.map +1 -0
- package/dist/scripts/data-transformers.js +35 -0
- package/dist/scripts/data-transformers.js.map +1 -0
- package/dist/scripts/deep-inspection/index.d.ts +55 -0
- package/dist/scripts/deep-inspection/index.d.ts.map +1 -0
- package/dist/scripts/deep-inspection/index.js +66 -0
- package/dist/scripts/deep-inspection/index.js.map +1 -0
- package/dist/scripts/detect-swedish-leakage.d.ts +69 -0
- package/dist/scripts/detect-swedish-leakage.d.ts.map +1 -0
- package/dist/scripts/detect-swedish-leakage.js +417 -0
- package/dist/scripts/detect-swedish-leakage.js.map +1 -0
- package/dist/scripts/editorial-framework.d.ts +121 -0
- package/dist/scripts/editorial-framework.d.ts.map +1 -0
- package/dist/scripts/editorial-framework.js +364 -0
- package/dist/scripts/editorial-framework.js.map +1 -0
- package/dist/scripts/editorial-pillars.d.ts +43 -0
- package/dist/scripts/editorial-pillars.d.ts.map +1 -0
- package/dist/scripts/editorial-pillars.js +215 -0
- package/dist/scripts/editorial-pillars.js.map +1 -0
- package/dist/scripts/extract-news-metadata.d.ts +12 -0
- package/dist/scripts/extract-news-metadata.d.ts.map +1 -0
- package/dist/scripts/extract-news-metadata.js +107 -0
- package/dist/scripts/extract-news-metadata.js.map +1 -0
- package/dist/scripts/extract-vocabulary.d.ts +15 -0
- package/dist/scripts/extract-vocabulary.d.ts.map +1 -0
- package/dist/scripts/extract-vocabulary.js +255 -0
- package/dist/scripts/extract-vocabulary.js.map +1 -0
- package/dist/scripts/fix-article-navigation.d.ts +37 -0
- package/dist/scripts/fix-article-navigation.d.ts.map +1 -0
- package/dist/scripts/fix-article-navigation.js +198 -0
- package/dist/scripts/fix-article-navigation.js.map +1 -0
- package/dist/scripts/fix-keywords-localization.d.ts +18 -0
- package/dist/scripts/fix-keywords-localization.d.ts.map +1 -0
- package/dist/scripts/fix-keywords-localization.js +270 -0
- package/dist/scripts/fix-keywords-localization.js.map +1 -0
- package/dist/scripts/fix-old-articles-branding.d.ts +17 -0
- package/dist/scripts/fix-old-articles-branding.d.ts.map +1 -0
- package/dist/scripts/fix-old-articles-branding.js +229 -0
- package/dist/scripts/fix-old-articles-branding.js.map +1 -0
- package/dist/scripts/generate-news-backport.d.ts +16 -0
- package/dist/scripts/generate-news-backport.d.ts.map +1 -0
- package/dist/scripts/generate-news-backport.js +379 -0
- package/dist/scripts/generate-news-backport.js.map +1 -0
- package/dist/scripts/generate-news-enhanced/ai-analysis-pipeline.d.ts +124 -0
- package/dist/scripts/generate-news-enhanced/ai-analysis-pipeline.d.ts.map +1 -0
- package/dist/scripts/generate-news-enhanced/ai-analysis-pipeline.js +529 -0
- package/dist/scripts/generate-news-enhanced/ai-analysis-pipeline.js.map +1 -0
- package/dist/scripts/generate-news-enhanced/analysis-cache.d.ts +59 -0
- package/dist/scripts/generate-news-enhanced/analysis-cache.d.ts.map +1 -0
- package/dist/scripts/generate-news-enhanced/analysis-cache.js +116 -0
- package/dist/scripts/generate-news-enhanced/analysis-cache.js.map +1 -0
- package/dist/scripts/generate-news-enhanced/analysis-labels.d.ts +58 -0
- package/dist/scripts/generate-news-enhanced/analysis-labels.d.ts.map +1 -0
- package/dist/scripts/generate-news-enhanced/analysis-labels.js +144 -0
- package/dist/scripts/generate-news-enhanced/analysis-labels.js.map +1 -0
- package/dist/scripts/generate-news-enhanced/config.d.ts +57 -0
- package/dist/scripts/generate-news-enhanced/config.d.ts.map +1 -0
- package/dist/scripts/generate-news-enhanced/config.js +286 -0
- package/dist/scripts/generate-news-enhanced/config.js.map +1 -0
- package/dist/scripts/generate-news-enhanced/generators.d.ts +119 -0
- package/dist/scripts/generate-news-enhanced/generators.d.ts.map +1 -0
- package/dist/scripts/generate-news-enhanced/generators.js +2108 -0
- package/dist/scripts/generate-news-enhanced/generators.js.map +1 -0
- package/dist/scripts/generate-news-enhanced/helpers.d.ts +123 -0
- package/dist/scripts/generate-news-enhanced/helpers.d.ts.map +1 -0
- package/dist/scripts/generate-news-enhanced/helpers.js +438 -0
- package/dist/scripts/generate-news-enhanced/helpers.js.map +1 -0
- package/dist/scripts/generate-news-enhanced/index.d.ts +19 -0
- package/dist/scripts/generate-news-enhanced/index.d.ts.map +1 -0
- package/dist/scripts/generate-news-enhanced/index.js +221 -0
- package/dist/scripts/generate-news-enhanced/index.js.map +1 -0
- package/dist/scripts/generate-news-enhanced/swot-analyzer.d.ts +35 -0
- package/dist/scripts/generate-news-enhanced/swot-analyzer.d.ts.map +1 -0
- package/dist/scripts/generate-news-enhanced/swot-analyzer.js +1179 -0
- package/dist/scripts/generate-news-enhanced/swot-analyzer.js.map +1 -0
- package/dist/scripts/generate-news-enhanced/types.d.ts +34 -0
- package/dist/scripts/generate-news-enhanced/types.d.ts.map +1 -0
- package/dist/scripts/generate-news-enhanced/types.js +9 -0
- package/dist/scripts/generate-news-enhanced/types.js.map +1 -0
- package/dist/scripts/generate-news-enhanced.d.ts +25 -0
- package/dist/scripts/generate-news-enhanced.d.ts.map +1 -0
- package/dist/scripts/generate-news-enhanced.js +37 -0
- package/dist/scripts/generate-news-enhanced.js.map +1 -0
- package/dist/scripts/generate-news-indexes/constants.d.ts +20 -0
- package/dist/scripts/generate-news-indexes/constants.d.ts.map +1 -0
- package/dist/scripts/generate-news-indexes/constants.js +308 -0
- package/dist/scripts/generate-news-indexes/constants.js.map +1 -0
- package/dist/scripts/generate-news-indexes/helpers.d.ts +73 -0
- package/dist/scripts/generate-news-indexes/helpers.d.ts.map +1 -0
- package/dist/scripts/generate-news-indexes/helpers.js +352 -0
- package/dist/scripts/generate-news-indexes/helpers.js.map +1 -0
- package/dist/scripts/generate-news-indexes/index.d.ts +20 -0
- package/dist/scripts/generate-news-indexes/index.d.ts.map +1 -0
- package/dist/scripts/generate-news-indexes/index.js +75 -0
- package/dist/scripts/generate-news-indexes/index.js.map +1 -0
- package/dist/scripts/generate-news-indexes/template.d.ts +25 -0
- package/dist/scripts/generate-news-indexes/template.d.ts.map +1 -0
- package/dist/scripts/generate-news-indexes/template.js +644 -0
- package/dist/scripts/generate-news-indexes/template.js.map +1 -0
- package/dist/scripts/generate-news-indexes/types.d.ts +96 -0
- package/dist/scripts/generate-news-indexes/types.d.ts.map +1 -0
- package/dist/scripts/generate-news-indexes/types.js +9 -0
- package/dist/scripts/generate-news-indexes/types.js.map +1 -0
- package/dist/scripts/generate-news-indexes.d.ts +20 -0
- package/dist/scripts/generate-news-indexes.d.ts.map +1 -0
- package/dist/scripts/generate-news-indexes.js +19 -0
- package/dist/scripts/generate-news-indexes.js.map +1 -0
- package/dist/scripts/generate-rss.d.ts +48 -0
- package/dist/scripts/generate-rss.d.ts.map +1 -0
- package/dist/scripts/generate-rss.js +299 -0
- package/dist/scripts/generate-rss.js.map +1 -0
- package/dist/scripts/generate-sitemap-html.d.ts +79 -0
- package/dist/scripts/generate-sitemap-html.d.ts.map +1 -0
- package/dist/scripts/generate-sitemap-html.js +878 -0
- package/dist/scripts/generate-sitemap-html.js.map +1 -0
- package/dist/scripts/generate-sitemap.d.ts +23 -0
- package/dist/scripts/generate-sitemap.d.ts.map +1 -0
- package/dist/scripts/generate-sitemap.js +476 -0
- package/dist/scripts/generate-sitemap.js.map +1 -0
- package/dist/scripts/generate-types-from-cia-schemas.d.ts +176 -0
- package/dist/scripts/generate-types-from-cia-schemas.d.ts.map +1 -0
- package/dist/scripts/generate-types-from-cia-schemas.js +318 -0
- package/dist/scripts/generate-types-from-cia-schemas.js.map +1 -0
- package/dist/scripts/government-role-validator.d.ts +65 -0
- package/dist/scripts/government-role-validator.d.ts.map +1 -0
- package/dist/scripts/government-role-validator.js +217 -0
- package/dist/scripts/government-role-validator.js.map +1 -0
- package/dist/scripts/html-utils.d.ts +17 -0
- package/dist/scripts/html-utils.d.ts.map +1 -0
- package/dist/scripts/html-utils.js +29 -0
- package/dist/scripts/html-utils.js.map +1 -0
- package/dist/scripts/load-cia-stats.d.ts +89 -0
- package/dist/scripts/load-cia-stats.d.ts.map +1 -0
- package/dist/scripts/load-cia-stats.js +400 -0
- package/dist/scripts/load-cia-stats.js.map +1 -0
- package/dist/scripts/mcp-client/client.d.ts +73 -0
- package/dist/scripts/mcp-client/client.d.ts.map +1 -0
- package/dist/scripts/mcp-client/client.js +526 -0
- package/dist/scripts/mcp-client/client.js.map +1 -0
- package/dist/scripts/mcp-client/document-types.d.ts +23 -0
- package/dist/scripts/mcp-client/document-types.d.ts.map +1 -0
- package/dist/scripts/mcp-client/document-types.js +62 -0
- package/dist/scripts/mcp-client/document-types.js.map +1 -0
- package/dist/scripts/mcp-client/index.d.ts +34 -0
- package/dist/scripts/mcp-client/index.d.ts.map +1 -0
- package/dist/scripts/mcp-client/index.js +67 -0
- package/dist/scripts/mcp-client/index.js.map +1 -0
- package/dist/scripts/mcp-client/transport.d.ts +32 -0
- package/dist/scripts/mcp-client/transport.d.ts.map +1 -0
- package/dist/scripts/mcp-client/transport.js +102 -0
- package/dist/scripts/mcp-client/transport.js.map +1 -0
- package/dist/scripts/mcp-client.d.ts +18 -0
- package/dist/scripts/mcp-client.d.ts.map +1 -0
- package/dist/scripts/mcp-client.js +18 -0
- package/dist/scripts/mcp-client.js.map +1 -0
- package/dist/scripts/mcp-query-cli.d.ts +25 -0
- package/dist/scripts/mcp-query-cli.d.ts.map +1 -0
- package/dist/scripts/mcp-query-cli.js +66 -0
- package/dist/scripts/mcp-query-cli.js.map +1 -0
- package/dist/scripts/news-types/breaking-news.d.ts +178 -0
- package/dist/scripts/news-types/breaking-news.d.ts.map +1 -0
- package/dist/scripts/news-types/breaking-news.js +428 -0
- package/dist/scripts/news-types/breaking-news.js.map +1 -0
- package/dist/scripts/news-types/committee-reports.d.ts +212 -0
- package/dist/scripts/news-types/committee-reports.d.ts.map +1 -0
- package/dist/scripts/news-types/committee-reports.js +404 -0
- package/dist/scripts/news-types/committee-reports.js.map +1 -0
- package/dist/scripts/news-types/month-ahead.d.ts +71 -0
- package/dist/scripts/news-types/month-ahead.d.ts.map +1 -0
- package/dist/scripts/news-types/month-ahead.js +392 -0
- package/dist/scripts/news-types/month-ahead.js.map +1 -0
- package/dist/scripts/news-types/monthly-review.d.ts +61 -0
- package/dist/scripts/news-types/monthly-review.d.ts.map +1 -0
- package/dist/scripts/news-types/monthly-review.js +417 -0
- package/dist/scripts/news-types/monthly-review.js.map +1 -0
- package/dist/scripts/news-types/motions.d.ts +214 -0
- package/dist/scripts/news-types/motions.d.ts.map +1 -0
- package/dist/scripts/news-types/motions.js +447 -0
- package/dist/scripts/news-types/motions.js.map +1 -0
- package/dist/scripts/news-types/propositions.d.ts +204 -0
- package/dist/scripts/news-types/propositions.d.ts.map +1 -0
- package/dist/scripts/news-types/propositions.js +401 -0
- package/dist/scripts/news-types/propositions.js.map +1 -0
- package/dist/scripts/news-types/week-ahead.d.ts +231 -0
- package/dist/scripts/news-types/week-ahead.d.ts.map +1 -0
- package/dist/scripts/news-types/week-ahead.js +441 -0
- package/dist/scripts/news-types/week-ahead.js.map +1 -0
- package/dist/scripts/news-types/weekly-review/analysis.d.ts +47 -0
- package/dist/scripts/news-types/weekly-review/analysis.d.ts.map +1 -0
- package/dist/scripts/news-types/weekly-review/analysis.js +276 -0
- package/dist/scripts/news-types/weekly-review/analysis.js.map +1 -0
- package/dist/scripts/news-types/weekly-review/data-loader.d.ts +51 -0
- package/dist/scripts/news-types/weekly-review/data-loader.d.ts.map +1 -0
- package/dist/scripts/news-types/weekly-review/data-loader.js +298 -0
- package/dist/scripts/news-types/weekly-review/data-loader.js.map +1 -0
- package/dist/scripts/news-types/weekly-review/generator.d.ts +18 -0
- package/dist/scripts/news-types/weekly-review/generator.d.ts.map +1 -0
- package/dist/scripts/news-types/weekly-review/generator.js +284 -0
- package/dist/scripts/news-types/weekly-review/generator.js.map +1 -0
- package/dist/scripts/news-types/weekly-review/index.d.ts +20 -0
- package/dist/scripts/news-types/weekly-review/index.d.ts.map +1 -0
- package/dist/scripts/news-types/weekly-review/index.js +23 -0
- package/dist/scripts/news-types/weekly-review/index.js.map +1 -0
- package/dist/scripts/news-types/weekly-review/types.d.ts +72 -0
- package/dist/scripts/news-types/weekly-review/types.d.ts.map +1 -0
- package/dist/scripts/news-types/weekly-review/types.js +20 -0
- package/dist/scripts/news-types/weekly-review/types.js.map +1 -0
- package/dist/scripts/news-types/weekly-review/validation.d.ts +10 -0
- package/dist/scripts/news-types/weekly-review/validation.d.ts.map +1 -0
- package/dist/scripts/news-types/weekly-review/validation.js +95 -0
- package/dist/scripts/news-types/weekly-review/validation.js.map +1 -0
- package/dist/scripts/news-types/weekly-review.d.ts +15 -0
- package/dist/scripts/news-types/weekly-review.d.ts.map +1 -0
- package/dist/scripts/news-types/weekly-review.js +14 -0
- package/dist/scripts/news-types/weekly-review.js.map +1 -0
- package/dist/scripts/party-variants.d.ts +23 -0
- package/dist/scripts/party-variants.d.ts.map +1 -0
- package/dist/scripts/party-variants.js +50 -0
- package/dist/scripts/party-variants.js.map +1 -0
- package/dist/scripts/pipeline/index.d.ts +19 -0
- package/dist/scripts/pipeline/index.d.ts.map +1 -0
- package/dist/scripts/pipeline/index.js +17 -0
- package/dist/scripts/pipeline/index.js.map +1 -0
- package/dist/scripts/pipeline/orchestrator.d.ts +56 -0
- package/dist/scripts/pipeline/orchestrator.d.ts.map +1 -0
- package/dist/scripts/pipeline/orchestrator.js +147 -0
- package/dist/scripts/pipeline/orchestrator.js.map +1 -0
- package/dist/scripts/pipeline/types.d.ts +117 -0
- package/dist/scripts/pipeline/types.d.ts.map +1 -0
- package/dist/scripts/pipeline/types.js +13 -0
- package/dist/scripts/pipeline/types.js.map +1 -0
- package/dist/scripts/pipeline/validation.d.ts +66 -0
- package/dist/scripts/pipeline/validation.d.ts.map +1 -0
- package/dist/scripts/pipeline/validation.js +129 -0
- package/dist/scripts/pipeline/validation.js.map +1 -0
- package/dist/scripts/populate-analysis-data.d.ts +41 -0
- package/dist/scripts/populate-analysis-data.d.ts.map +1 -0
- package/dist/scripts/populate-analysis-data.js +255 -0
- package/dist/scripts/populate-analysis-data.js.map +1 -0
- package/dist/scripts/pre-article-analysis/data-downloader.d.ts +80 -0
- package/dist/scripts/pre-article-analysis/data-downloader.d.ts.map +1 -0
- package/dist/scripts/pre-article-analysis/data-downloader.js +230 -0
- package/dist/scripts/pre-article-analysis/data-downloader.js.map +1 -0
- package/dist/scripts/pre-article-analysis/data-persistence.d.ts +141 -0
- package/dist/scripts/pre-article-analysis/data-persistence.d.ts.map +1 -0
- package/dist/scripts/pre-article-analysis/data-persistence.js +345 -0
- package/dist/scripts/pre-article-analysis/data-persistence.js.map +1 -0
- package/dist/scripts/pre-article-analysis/markdown-serializer.d.ts +95 -0
- package/dist/scripts/pre-article-analysis/markdown-serializer.d.ts.map +1 -0
- package/dist/scripts/pre-article-analysis/markdown-serializer.js +648 -0
- package/dist/scripts/pre-article-analysis/markdown-serializer.js.map +1 -0
- package/dist/scripts/pre-article-analysis/pdf-converter.d.ts +58 -0
- package/dist/scripts/pre-article-analysis/pdf-converter.d.ts.map +1 -0
- package/dist/scripts/pre-article-analysis/pdf-converter.js +142 -0
- package/dist/scripts/pre-article-analysis/pdf-converter.js.map +1 -0
- package/dist/scripts/pre-article-analysis.d.ts +41 -0
- package/dist/scripts/pre-article-analysis.d.ts.map +1 -0
- package/dist/scripts/pre-article-analysis.js +578 -0
- package/dist/scripts/pre-article-analysis.js.map +1 -0
- package/dist/scripts/scb-client.d.ts +104 -0
- package/dist/scripts/scb-client.d.ts.map +1 -0
- package/dist/scripts/scb-client.js +286 -0
- package/dist/scripts/scb-client.js.map +1 -0
- package/dist/scripts/scb-context.d.ts +88 -0
- package/dist/scripts/scb-context.d.ts.map +1 -0
- package/dist/scripts/scb-context.js +307 -0
- package/dist/scripts/scb-context.js.map +1 -0
- package/dist/scripts/shared/version.d.ts +9 -0
- package/dist/scripts/shared/version.d.ts.map +1 -0
- package/dist/scripts/shared/version.js +28 -0
- package/dist/scripts/shared/version.js.map +1 -0
- package/dist/scripts/statistical-claims-detector.d.ts +119 -0
- package/dist/scripts/statistical-claims-detector.d.ts.map +1 -0
- package/dist/scripts/statistical-claims-detector.js +391 -0
- package/dist/scripts/statistical-claims-detector.js.map +1 -0
- package/dist/scripts/sync-cia-schemas.d.ts +52 -0
- package/dist/scripts/sync-cia-schemas.d.ts.map +1 -0
- package/dist/scripts/sync-cia-schemas.js +195 -0
- package/dist/scripts/sync-cia-schemas.js.map +1 -0
- package/dist/scripts/translation-dictionary.d.ts +45 -0
- package/dist/scripts/translation-dictionary.d.ts.map +1 -0
- package/dist/scripts/translation-dictionary.js +3642 -0
- package/dist/scripts/translation-dictionary.js.map +1 -0
- package/dist/scripts/types/article.d.ts +362 -0
- package/dist/scripts/types/article.d.ts.map +1 -0
- package/dist/scripts/types/article.js +6 -0
- package/dist/scripts/types/article.js.map +1 -0
- package/dist/scripts/types/content.d.ts +167 -0
- package/dist/scripts/types/content.d.ts.map +1 -0
- package/dist/scripts/types/content.js +6 -0
- package/dist/scripts/types/content.js.map +1 -0
- package/dist/scripts/types/editorial.d.ts +17 -0
- package/dist/scripts/types/editorial.d.ts.map +1 -0
- package/dist/scripts/types/editorial.js +6 -0
- package/dist/scripts/types/editorial.js.map +1 -0
- package/dist/scripts/types/language.d.ts +7 -0
- package/dist/scripts/types/language.d.ts.map +1 -0
- package/dist/scripts/types/language.js +6 -0
- package/dist/scripts/types/language.js.map +1 -0
- package/dist/scripts/types/mcp.d.ts +117 -0
- package/dist/scripts/types/mcp.d.ts.map +1 -0
- package/dist/scripts/types/mcp.js +6 -0
- package/dist/scripts/types/mcp.js.map +1 -0
- package/dist/scripts/types/party.d.ts +9 -0
- package/dist/scripts/types/party.d.ts.map +1 -0
- package/dist/scripts/types/party.js +6 -0
- package/dist/scripts/types/party.js.map +1 -0
- package/dist/scripts/types/validation.d.ts +136 -0
- package/dist/scripts/types/validation.d.ts.map +1 -0
- package/dist/scripts/types/validation.js +6 -0
- package/dist/scripts/types/validation.js.map +1 -0
- package/dist/scripts/types/workflow.d.ts +78 -0
- package/dist/scripts/types/workflow.d.ts.map +1 -0
- package/dist/scripts/types/workflow.js +6 -0
- package/dist/scripts/types/workflow.js.map +1 -0
- package/dist/scripts/update-stats-from-cia.d.ts +44 -0
- package/dist/scripts/update-stats-from-cia.d.ts.map +1 -0
- package/dist/scripts/update-stats-from-cia.js +310 -0
- package/dist/scripts/update-stats-from-cia.js.map +1 -0
- package/dist/scripts/validate-against-cia-schemas.d.ts +126 -0
- package/dist/scripts/validate-against-cia-schemas.d.ts.map +1 -0
- package/dist/scripts/validate-against-cia-schemas.js +299 -0
- package/dist/scripts/validate-against-cia-schemas.js.map +1 -0
- package/dist/scripts/validate-cross-references.d.ts +49 -0
- package/dist/scripts/validate-cross-references.d.ts.map +1 -0
- package/dist/scripts/validate-cross-references.js +183 -0
- package/dist/scripts/validate-cross-references.js.map +1 -0
- package/dist/scripts/validate-file-ownership.d.ts +68 -0
- package/dist/scripts/validate-file-ownership.d.ts.map +1 -0
- package/dist/scripts/validate-file-ownership.js +135 -0
- package/dist/scripts/validate-file-ownership.js.map +1 -0
- package/dist/scripts/validate-news-translations.d.ts +27 -0
- package/dist/scripts/validate-news-translations.d.ts.map +1 -0
- package/dist/scripts/validate-news-translations.js +258 -0
- package/dist/scripts/validate-news-translations.js.map +1 -0
- package/dist/scripts/validate-translations.d.ts +162 -0
- package/dist/scripts/validate-translations.d.ts.map +1 -0
- package/dist/scripts/validate-translations.js +378 -0
- package/dist/scripts/validate-translations.js.map +1 -0
- package/dist/scripts/workflow-state-coordinator.d.ts +354 -0
- package/dist/scripts/workflow-state-coordinator.d.ts.map +1 -0
- package/dist/scripts/workflow-state-coordinator.js +876 -0
- package/dist/scripts/workflow-state-coordinator.js.map +1 -0
- package/dist/scripts/world-bank-client.d.ts +122 -0
- package/dist/scripts/world-bank-client.d.ts.map +1 -0
- package/dist/scripts/world-bank-client.js +192 -0
- package/dist/scripts/world-bank-client.js.map +1 -0
- package/dist/scripts/world-bank-context.d.ts +88 -0
- package/dist/scripts/world-bank-context.d.ts.map +1 -0
- package/dist/scripts/world-bank-context.js +331 -0
- package/dist/scripts/world-bank-context.js.map +1 -0
- package/package.json +31 -6
- package/dist/lib/chart-factory.d.ts.map +0 -1
- package/dist/lib/chart-factory.js.map +0 -1
- package/dist/lib/data-loader.d.ts.map +0 -1
- package/dist/lib/data-loader.js.map +0 -1
- package/dist/lib/dom-utils.d.ts.map +0 -1
- package/dist/lib/dom-utils.js.map +0 -1
- package/dist/lib/error-boundary.d.ts.map +0 -1
- package/dist/lib/error-boundary.js.map +0 -1
- package/dist/lib/fallback-ui.d.ts.map +0 -1
- package/dist/lib/fallback-ui.js.map +0 -1
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/logger.d.ts.map +0 -1
- package/dist/lib/logger.js.map +0 -1
- package/dist/lib/theme.d.ts.map +0 -1
- package/dist/lib/theme.js.map +0 -1
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/types.js.map +0 -1
- /package/dist/lib/{chart-factory.d.ts → shared/chart-factory.d.ts} +0 -0
- /package/dist/lib/{chart-factory.js → shared/chart-factory.js} +0 -0
- /package/dist/lib/{data-loader.d.ts → shared/data-loader.d.ts} +0 -0
- /package/dist/lib/{data-loader.js → shared/data-loader.js} +0 -0
- /package/dist/lib/{dom-utils.d.ts → shared/dom-utils.d.ts} +0 -0
- /package/dist/lib/{dom-utils.js → shared/dom-utils.js} +0 -0
- /package/dist/lib/{error-boundary.d.ts → shared/error-boundary.d.ts} +0 -0
- /package/dist/lib/{error-boundary.js → shared/error-boundary.js} +0 -0
- /package/dist/lib/{fallback-ui.d.ts → shared/fallback-ui.d.ts} +0 -0
- /package/dist/lib/{fallback-ui.js → shared/fallback-ui.js} +0 -0
- /package/dist/lib/{index.d.ts → shared/index.d.ts} +0 -0
- /package/dist/lib/{index.js → shared/index.js} +0 -0
- /package/dist/lib/{logger.d.ts → shared/logger.d.ts} +0 -0
- /package/dist/lib/{logger.js → shared/logger.js} +0 -0
- /package/dist/lib/{theme.d.ts → shared/theme.d.ts} +0 -0
- /package/dist/lib/{theme.js → shared/theme.js} +0 -0
- /package/dist/lib/{types.d.ts → shared/types.d.ts} +0 -0
- /package/dist/lib/{types.js → shared/types.js} +0 -0
|
@@ -0,0 +1,665 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Dashboards/Coalition
|
|
3
|
+
* @category Political Analysis - Coalition Dynamics & Party Behavior
|
|
4
|
+
*
|
|
5
|
+
* Coalition Status Intelligence & Party Dynamics Analyzer.
|
|
6
|
+
*
|
|
7
|
+
* Real-time intelligence module for monitoring Swedish coalition formations,
|
|
8
|
+
* party membership dynamics, leadership roles, and political alignment patterns.
|
|
9
|
+
* Provides strategic assessment of the Tidö Agreement coalition (October 2022-)
|
|
10
|
+
* and comprehensive party-level metrics across all 8 Riksdag parties.
|
|
11
|
+
*
|
|
12
|
+
* ## Data Sources (CIA Platform CSVs)
|
|
13
|
+
*
|
|
14
|
+
* - `view_riksdagen_party_summary_sample.csv`
|
|
15
|
+
* - `view_riksdagen_party_role_member_sample.csv`
|
|
16
|
+
* - `view_riksdagen_politician_sample.csv`
|
|
17
|
+
* - `view_riksdagen_politician_experience_summary_sample.csv`
|
|
18
|
+
*
|
|
19
|
+
* @author Hack23 AB - Coalition Intelligence Unit
|
|
20
|
+
* @license Apache-2.0
|
|
21
|
+
* @version 2.0.0
|
|
22
|
+
* @since 2024
|
|
23
|
+
* @see {@link https://github.com/Hack23/cia|CIA Platform Data Pipeline}
|
|
24
|
+
|
|
25
|
+
*
|
|
26
|
+
* @intelligence Coalition Intelligence Acquisition Module — real-time monitoring of Swedish coalition formations (Tidö Agreement 2022-), party membership dynamics, leadership role analysis, and political alignment patterns. Provides strategic assessment of coalition stability and party-level behavioral metrics across all 8 Riksdag parties.
|
|
27
|
+
*
|
|
28
|
+
* @business Predictive intelligence asset — coalition dynamics data is uniquely valuable for political risk consulting, corporate government affairs teams, and financial institutions assessing regulatory stability. Foundation for premium alerting service (coalition changes, leadership shifts).
|
|
29
|
+
*
|
|
30
|
+
* @marketing Breaking news fuel — coalition changes are high-impact political events generating significant media coverage. Real-time coalition monitoring enables Riksdagsmonitor to be first-to-report, driving traffic and establishing authority as a political intelligence source.
|
|
31
|
+
* */
|
|
32
|
+
import { logger, detectLanguage, } from '../shared/index.js';
|
|
33
|
+
// ============================================================================
|
|
34
|
+
// CONFIGURATION
|
|
35
|
+
// ============================================================================
|
|
36
|
+
const CONFIG = {
|
|
37
|
+
githubRawBase: 'https://raw.githubusercontent.com/Hack23/cia/master/service.data.impl/sample-data',
|
|
38
|
+
dataSources: {
|
|
39
|
+
partySummary: 'view_riksdagen_party_summary_sample.csv',
|
|
40
|
+
partyRoles: 'view_riksdagen_party_role_member_sample.csv',
|
|
41
|
+
politicianData: 'view_riksdagen_politician_sample.csv',
|
|
42
|
+
experienceData: 'view_riksdagen_politician_experience_summary_sample.csv',
|
|
43
|
+
},
|
|
44
|
+
freshnessThreshold: 7 * 24 * 60 * 60 * 1000, // 7 days
|
|
45
|
+
cachePrefix: 'coalition_data_',
|
|
46
|
+
retryDelay: 2000,
|
|
47
|
+
maxRetries: 3,
|
|
48
|
+
};
|
|
49
|
+
const PARTY_INFO = {
|
|
50
|
+
S: { name: 'Social Democrats', nameShort: 'S', color: '#E8112d', fullName: 'Socialdemokraterna' },
|
|
51
|
+
M: { name: 'Moderates', nameShort: 'M', color: '#52BDEC', fullName: 'Moderaterna' },
|
|
52
|
+
SD: { name: 'Sweden Democrats', nameShort: 'SD', color: '#DDDD00', fullName: 'Sverigedemokraterna' },
|
|
53
|
+
C: { name: 'Centre Party', nameShort: 'C', color: '#009933', fullName: 'Centerpartiet' },
|
|
54
|
+
V: { name: 'Left Party', nameShort: 'V', color: '#DA291C', fullName: 'Vänsterpartiet' },
|
|
55
|
+
KD: { name: 'Christian Democrats', nameShort: 'KD', color: '#000077', fullName: 'Kristdemokraterna' },
|
|
56
|
+
L: { name: 'Liberals', nameShort: 'L', color: '#006AB3', fullName: 'Liberalerna' },
|
|
57
|
+
MP: { name: 'Green Party', nameShort: 'MP', color: '#83CF39', fullName: 'Miljöpartiet' },
|
|
58
|
+
};
|
|
59
|
+
// ============================================================================
|
|
60
|
+
// TRANSLATIONS
|
|
61
|
+
// ============================================================================
|
|
62
|
+
const TRANSLATIONS = {
|
|
63
|
+
en: {
|
|
64
|
+
coalitionTitle: 'Current Coalition: Tidö Agreement',
|
|
65
|
+
coalitionStatus: 'Formation: October 2022 | Status: Active',
|
|
66
|
+
parliamentSeats: 'Parliament seats',
|
|
67
|
+
governmentMembers: 'Government members',
|
|
68
|
+
partyAssignments: 'Party assignments',
|
|
69
|
+
leader: 'Leader',
|
|
70
|
+
groupLeader: 'Group Leader',
|
|
71
|
+
yearsInPolitics: 'Years in politics',
|
|
72
|
+
totalDocuments: 'Documents authored',
|
|
73
|
+
activityLevel: 'Activity level',
|
|
74
|
+
specialization: 'Focus area',
|
|
75
|
+
partyFocused: 'Party-focused',
|
|
76
|
+
committeeFocused: 'Committee-focused',
|
|
77
|
+
loadingMessage: 'Loading coalition data...',
|
|
78
|
+
errorMessage: 'Unable to load coalition data',
|
|
79
|
+
dataAttribution: 'Data from CIA Platform',
|
|
80
|
+
lastUpdated: 'Last Updated',
|
|
81
|
+
},
|
|
82
|
+
sv: {
|
|
83
|
+
coalitionTitle: 'Nuvarande koalition: Tidöavtalet',
|
|
84
|
+
coalitionStatus: 'Bildande: oktober 2022 | Status: Aktiv',
|
|
85
|
+
parliamentSeats: 'Riksdagsmandat',
|
|
86
|
+
governmentMembers: 'Regeringsmedlemmar',
|
|
87
|
+
partyAssignments: 'Partiuppdrag',
|
|
88
|
+
leader: 'Partiledare',
|
|
89
|
+
groupLeader: 'Gruppledare',
|
|
90
|
+
yearsInPolitics: 'År i politiken',
|
|
91
|
+
totalDocuments: 'Dokument författade',
|
|
92
|
+
activityLevel: 'Aktivitetsnivå',
|
|
93
|
+
specialization: 'Fokusområde',
|
|
94
|
+
partyFocused: 'Partifokuserad',
|
|
95
|
+
committeeFocused: 'Utskottsfokuserad',
|
|
96
|
+
loadingMessage: 'Laddar koalitionsdata...',
|
|
97
|
+
errorMessage: 'Kunde inte ladda koalitionsdata',
|
|
98
|
+
dataAttribution: 'Data från CIA-plattformen',
|
|
99
|
+
lastUpdated: 'Senast uppdaterad',
|
|
100
|
+
},
|
|
101
|
+
da: {
|
|
102
|
+
coalitionTitle: 'Nuværende koalition: Tidö-aftalen',
|
|
103
|
+
coalitionStatus: 'Dannelse: oktober 2022 | Status: Aktiv',
|
|
104
|
+
parliamentSeats: 'Rigsdagsmandater',
|
|
105
|
+
governmentMembers: 'Regeringsmedlemmer',
|
|
106
|
+
partyAssignments: 'Partiopgaver',
|
|
107
|
+
leader: 'Leder',
|
|
108
|
+
groupLeader: 'Gruppeleder',
|
|
109
|
+
yearsInPolitics: 'År i politik',
|
|
110
|
+
totalDocuments: 'Dokumenter forfattet',
|
|
111
|
+
activityLevel: 'Aktivitetsniveau',
|
|
112
|
+
specialization: 'Fokusområde',
|
|
113
|
+
partyFocused: 'Partifokuseret',
|
|
114
|
+
committeeFocused: 'Udvalgsfokuseret',
|
|
115
|
+
loadingMessage: 'Indlæser koalitionsdata...',
|
|
116
|
+
errorMessage: 'Kunne ikke indlæse koalitionsdata',
|
|
117
|
+
dataAttribution: 'Data fra CIA-platformen',
|
|
118
|
+
lastUpdated: 'Senest opdateret',
|
|
119
|
+
},
|
|
120
|
+
no: {
|
|
121
|
+
coalitionTitle: 'Nåværende koalisjon: Tidö-avtalen',
|
|
122
|
+
coalitionStatus: 'Dannelse: oktober 2022 | Status: Aktiv',
|
|
123
|
+
parliamentSeats: 'Riksdagsmandater',
|
|
124
|
+
governmentMembers: 'Regjeringsmedlemmer',
|
|
125
|
+
partyAssignments: 'Partioppgaver',
|
|
126
|
+
leader: 'Leder',
|
|
127
|
+
groupLeader: 'Gruppeleder',
|
|
128
|
+
yearsInPolitics: 'År i politikken',
|
|
129
|
+
totalDocuments: 'Dokumenter forfattet',
|
|
130
|
+
activityLevel: 'Aktivitetsnivå',
|
|
131
|
+
specialization: 'Fokusområde',
|
|
132
|
+
partyFocused: 'Partifokusert',
|
|
133
|
+
committeeFocused: 'Komitéfokusert',
|
|
134
|
+
loadingMessage: 'Laster koalisjonsdata...',
|
|
135
|
+
errorMessage: 'Kunne ikke laste koalisjonsdata',
|
|
136
|
+
dataAttribution: 'Data fra CIA-plattformen',
|
|
137
|
+
lastUpdated: 'Sist oppdatert',
|
|
138
|
+
},
|
|
139
|
+
de: {
|
|
140
|
+
coalitionTitle: 'Aktuelle Koalition: Tidö-Vereinbarung',
|
|
141
|
+
coalitionStatus: 'Bildung: Oktober 2022 | Status: Aktiv',
|
|
142
|
+
parliamentSeats: 'Sitze im schwedischen Reichstag',
|
|
143
|
+
governmentMembers: 'Regierungsmitglieder',
|
|
144
|
+
partyAssignments: 'Parteiaufgaben',
|
|
145
|
+
leader: 'Vorsitzender',
|
|
146
|
+
groupLeader: 'Fraktionsvorsitzender',
|
|
147
|
+
yearsInPolitics: 'Jahre in der Politik',
|
|
148
|
+
totalDocuments: 'Verfasste Dokumente',
|
|
149
|
+
activityLevel: 'Aktivitätsniveau',
|
|
150
|
+
specialization: 'Schwerpunktbereich',
|
|
151
|
+
partyFocused: 'Parteifokussiert',
|
|
152
|
+
committeeFocused: 'Ausschussfokussiert',
|
|
153
|
+
loadingMessage: 'Koalitionsdaten werden geladen...',
|
|
154
|
+
errorMessage: 'Koalitionsdaten konnten nicht geladen werden',
|
|
155
|
+
dataAttribution: 'Daten von der CIA-Plattform',
|
|
156
|
+
lastUpdated: 'Zuletzt aktualisiert',
|
|
157
|
+
},
|
|
158
|
+
fr: {
|
|
159
|
+
coalitionTitle: 'Coalition actuelle : Accord de Tidö',
|
|
160
|
+
coalitionStatus: 'Formation : octobre 2022 | Statut : Actif',
|
|
161
|
+
parliamentSeats: 'Sièges au Riksdag suédois',
|
|
162
|
+
governmentMembers: 'Membres du gouvernement',
|
|
163
|
+
partyAssignments: 'Affectations de parti',
|
|
164
|
+
leader: 'Chef',
|
|
165
|
+
groupLeader: 'Chef de groupe',
|
|
166
|
+
yearsInPolitics: 'Années en politique',
|
|
167
|
+
totalDocuments: 'Documents rédigés',
|
|
168
|
+
activityLevel: "Niveau d'activité",
|
|
169
|
+
specialization: "Domaine d'expertise",
|
|
170
|
+
partyFocused: 'Axé parti',
|
|
171
|
+
committeeFocused: 'Axé comité',
|
|
172
|
+
loadingMessage: 'Chargement des données de coalition...',
|
|
173
|
+
errorMessage: 'Impossible de charger les données de coalition',
|
|
174
|
+
dataAttribution: 'Données de la plateforme CIA',
|
|
175
|
+
lastUpdated: 'Dernière mise à jour',
|
|
176
|
+
},
|
|
177
|
+
es: {
|
|
178
|
+
coalitionTitle: 'Coalición actual: Acuerdo de Tidö',
|
|
179
|
+
coalitionStatus: 'Formación: octubre 2022 | Estado: Activo',
|
|
180
|
+
parliamentSeats: 'Escaños del Riksdag sueco',
|
|
181
|
+
governmentMembers: 'Miembros del gobierno',
|
|
182
|
+
partyAssignments: 'Asignaciones de partido',
|
|
183
|
+
leader: 'Líder',
|
|
184
|
+
groupLeader: 'Líder del grupo',
|
|
185
|
+
yearsInPolitics: 'Años en política',
|
|
186
|
+
totalDocuments: 'Documentos escritos',
|
|
187
|
+
activityLevel: 'Nivel de actividad',
|
|
188
|
+
specialization: 'Área de enfoque',
|
|
189
|
+
partyFocused: 'Enfocado en partido',
|
|
190
|
+
committeeFocused: 'Enfocado en comité',
|
|
191
|
+
loadingMessage: 'Cargando datos de coalición...',
|
|
192
|
+
errorMessage: 'No se pudieron cargar los datos de coalición',
|
|
193
|
+
dataAttribution: 'Datos de la plataforma CIA',
|
|
194
|
+
lastUpdated: 'Última actualización',
|
|
195
|
+
},
|
|
196
|
+
fi: {
|
|
197
|
+
coalitionTitle: 'Nykyinen koalitio: Tidö-sopimus',
|
|
198
|
+
coalitionStatus: 'Muodostus: lokakuu 2022 | Tila: Aktiivinen',
|
|
199
|
+
parliamentSeats: 'Riksdagin paikat',
|
|
200
|
+
governmentMembers: 'Hallituksen jäseniä',
|
|
201
|
+
partyAssignments: 'Puoluetehtävät',
|
|
202
|
+
leader: 'Johtaja',
|
|
203
|
+
groupLeader: 'Ryhmänjohtaja',
|
|
204
|
+
yearsInPolitics: 'Vuotta politiikassa',
|
|
205
|
+
totalDocuments: 'Kirjoitettuja asiakirjoja',
|
|
206
|
+
activityLevel: 'Aktiivisuustaso',
|
|
207
|
+
specialization: 'Painopistealue',
|
|
208
|
+
partyFocused: 'Puoluepainotteinen',
|
|
209
|
+
committeeFocused: 'Valiokuntapainotteinen',
|
|
210
|
+
loadingMessage: 'Ladataan koalitiotietoja...',
|
|
211
|
+
errorMessage: 'Koalitiotietoja ei voitu ladata',
|
|
212
|
+
dataAttribution: 'Tiedot CIA-alustalta',
|
|
213
|
+
lastUpdated: 'Viimeksi päivitetty',
|
|
214
|
+
},
|
|
215
|
+
nl: {
|
|
216
|
+
coalitionTitle: 'Huidige coalitie: Tidö-akkoord',
|
|
217
|
+
coalitionStatus: 'Vorming: oktober 2022 | Status: Actief',
|
|
218
|
+
parliamentSeats: 'Zetels in het Zweedse Rijksdag',
|
|
219
|
+
governmentMembers: 'Regeringsleden',
|
|
220
|
+
partyAssignments: 'Partijfuncties',
|
|
221
|
+
leader: 'Leider',
|
|
222
|
+
groupLeader: 'Fractievoorzitter',
|
|
223
|
+
yearsInPolitics: 'Jaren in de politiek',
|
|
224
|
+
totalDocuments: 'Geschreven documenten',
|
|
225
|
+
activityLevel: 'Activiteitsniveau',
|
|
226
|
+
specialization: 'Focusgebied',
|
|
227
|
+
partyFocused: 'Partijgericht',
|
|
228
|
+
committeeFocused: 'Commissiegericht',
|
|
229
|
+
loadingMessage: 'Coalitiegegevens laden...',
|
|
230
|
+
errorMessage: 'Kan coalitiegegevens niet laden',
|
|
231
|
+
dataAttribution: 'Gegevens van het CIA-platform',
|
|
232
|
+
lastUpdated: 'Laatst bijgewerkt',
|
|
233
|
+
},
|
|
234
|
+
ar: {
|
|
235
|
+
coalitionTitle: 'الائتلاف الحالي: اتفاقية تيدو',
|
|
236
|
+
coalitionStatus: 'التشكيل: أكتوبر 2022 | الحالة: نشط',
|
|
237
|
+
parliamentSeats: 'مقاعد البرلمان',
|
|
238
|
+
governmentMembers: 'أعضاء الحكومة',
|
|
239
|
+
partyAssignments: 'مهام الحزب',
|
|
240
|
+
leader: 'القائد',
|
|
241
|
+
groupLeader: 'قائد المجموعة',
|
|
242
|
+
yearsInPolitics: 'سنوات في السياسة',
|
|
243
|
+
totalDocuments: 'الوثائق المكتوبة',
|
|
244
|
+
activityLevel: 'مستوى النشاط',
|
|
245
|
+
specialization: 'مجال التركيز',
|
|
246
|
+
partyFocused: 'التركيز على الحزب',
|
|
247
|
+
committeeFocused: 'التركيز على اللجنة',
|
|
248
|
+
loadingMessage: 'جاري تحميل بيانات الائتلاف...',
|
|
249
|
+
errorMessage: 'تعذر تحميل بيانات الائتلاف',
|
|
250
|
+
dataAttribution: 'البيانات من منصة CIA',
|
|
251
|
+
lastUpdated: 'آخر تحديث',
|
|
252
|
+
},
|
|
253
|
+
he: {
|
|
254
|
+
coalitionTitle: 'קואליציה נוכחית: הסכם טידו',
|
|
255
|
+
coalitionStatus: 'הקמה: אוקטובר 2022 | סטטוס: פעיל',
|
|
256
|
+
parliamentSeats: 'מושבי פרלמנט',
|
|
257
|
+
governmentMembers: 'חברי ממשלה',
|
|
258
|
+
partyAssignments: 'משימות מפלגה',
|
|
259
|
+
leader: 'מנהיג',
|
|
260
|
+
groupLeader: 'מנהיג הקבוצה',
|
|
261
|
+
yearsInPolitics: 'שנים בפוליטיקה',
|
|
262
|
+
totalDocuments: 'מסמכים שנכתבו',
|
|
263
|
+
activityLevel: 'רמת פעילות',
|
|
264
|
+
specialization: 'תחום התמחות',
|
|
265
|
+
partyFocused: 'ממוקד מפלגה',
|
|
266
|
+
committeeFocused: 'ממוקד וועדה',
|
|
267
|
+
loadingMessage: 'טוען נתוני קואליציה...',
|
|
268
|
+
errorMessage: 'לא ניתן לטעון נתוני קואליציה',
|
|
269
|
+
dataAttribution: 'נתונים מפלטפורמת CIA',
|
|
270
|
+
lastUpdated: 'עודכן לאחרונה',
|
|
271
|
+
},
|
|
272
|
+
ja: {
|
|
273
|
+
coalitionTitle: '現在の連立:ティドー協定',
|
|
274
|
+
coalitionStatus: '形成:2022年10月 | ステータス:アクティブ',
|
|
275
|
+
parliamentSeats: '国会議席',
|
|
276
|
+
governmentMembers: '政府メンバー',
|
|
277
|
+
partyAssignments: '党の任務',
|
|
278
|
+
leader: 'リーダー',
|
|
279
|
+
groupLeader: 'グループリーダー',
|
|
280
|
+
yearsInPolitics: '政治活動年数',
|
|
281
|
+
totalDocuments: '作成文書',
|
|
282
|
+
activityLevel: '活動レベル',
|
|
283
|
+
specialization: '専門分野',
|
|
284
|
+
partyFocused: '政党重視',
|
|
285
|
+
committeeFocused: '委員会重視',
|
|
286
|
+
loadingMessage: '連立データを読み込んでいます...',
|
|
287
|
+
errorMessage: '連立データを読み込めませんでした',
|
|
288
|
+
dataAttribution: 'CIAプラットフォームのデータ',
|
|
289
|
+
lastUpdated: '最終更新',
|
|
290
|
+
},
|
|
291
|
+
ko: {
|
|
292
|
+
coalitionTitle: '현재 연립: 티도 협정',
|
|
293
|
+
coalitionStatus: '구성: 2022년 10월 | 상태: 활성',
|
|
294
|
+
parliamentSeats: '의회 의석',
|
|
295
|
+
governmentMembers: '정부 구성원',
|
|
296
|
+
partyAssignments: '당 임무',
|
|
297
|
+
leader: '리더',
|
|
298
|
+
groupLeader: '그룹 리더',
|
|
299
|
+
yearsInPolitics: '정치 경력',
|
|
300
|
+
totalDocuments: '작성 문서',
|
|
301
|
+
activityLevel: '활동 수준',
|
|
302
|
+
specialization: '전문 분야',
|
|
303
|
+
partyFocused: '정당 중심',
|
|
304
|
+
committeeFocused: '위원회 중심',
|
|
305
|
+
loadingMessage: '연립 데이터 로드 중...',
|
|
306
|
+
errorMessage: '연립 데이터를 로드할 수 없습니다',
|
|
307
|
+
dataAttribution: 'CIA 플랫폼의 데이터',
|
|
308
|
+
lastUpdated: '마지막 업데이트',
|
|
309
|
+
},
|
|
310
|
+
zh: {
|
|
311
|
+
coalitionTitle: '当前联盟:蒂德协议',
|
|
312
|
+
coalitionStatus: '成立:2022年10月 | 状态:活跃',
|
|
313
|
+
parliamentSeats: '议会席位',
|
|
314
|
+
governmentMembers: '政府成员',
|
|
315
|
+
partyAssignments: '党派任务',
|
|
316
|
+
leader: '领导',
|
|
317
|
+
groupLeader: '团队领导',
|
|
318
|
+
yearsInPolitics: '从政年数',
|
|
319
|
+
totalDocuments: '撰写文件',
|
|
320
|
+
activityLevel: '活动水平',
|
|
321
|
+
specialization: '专注领域',
|
|
322
|
+
partyFocused: '政党导向',
|
|
323
|
+
committeeFocused: '委员会导向',
|
|
324
|
+
loadingMessage: '正在加载联盟数据...',
|
|
325
|
+
errorMessage: '无法加载联盟数据',
|
|
326
|
+
dataAttribution: '来自CIA平台的数据',
|
|
327
|
+
lastUpdated: '最后更新',
|
|
328
|
+
},
|
|
329
|
+
};
|
|
330
|
+
// ============================================================================
|
|
331
|
+
// HELPERS
|
|
332
|
+
// ============================================================================
|
|
333
|
+
function getTranslations() {
|
|
334
|
+
const lang = detectLanguage();
|
|
335
|
+
return TRANSLATIONS[lang] || TRANSLATIONS.en;
|
|
336
|
+
}
|
|
337
|
+
function parseCSV(csvText) {
|
|
338
|
+
const lines = csvText.trim().split('\n');
|
|
339
|
+
if (lines.length < 2)
|
|
340
|
+
return [];
|
|
341
|
+
const headers = lines[0].split(',').map((h) => h.trim());
|
|
342
|
+
const data = [];
|
|
343
|
+
for (let i = 1; i < lines.length; i++) {
|
|
344
|
+
const values = lines[i].split(',');
|
|
345
|
+
if (values.length !== headers.length)
|
|
346
|
+
continue;
|
|
347
|
+
const row = {};
|
|
348
|
+
headers.forEach((header, idx) => {
|
|
349
|
+
row[header] = values[idx].trim();
|
|
350
|
+
});
|
|
351
|
+
data.push(row);
|
|
352
|
+
}
|
|
353
|
+
return data;
|
|
354
|
+
}
|
|
355
|
+
// ============================================================================
|
|
356
|
+
// CACHE
|
|
357
|
+
// ============================================================================
|
|
358
|
+
function isCacheFresh(key) {
|
|
359
|
+
try {
|
|
360
|
+
const cached = localStorage.getItem(CONFIG.cachePrefix + key);
|
|
361
|
+
if (!cached)
|
|
362
|
+
return false;
|
|
363
|
+
const data = JSON.parse(cached);
|
|
364
|
+
return Date.now() - data.timestamp < CONFIG.freshnessThreshold;
|
|
365
|
+
}
|
|
366
|
+
catch {
|
|
367
|
+
return false;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
function getCachedData(key) {
|
|
371
|
+
try {
|
|
372
|
+
if (!isCacheFresh(key))
|
|
373
|
+
return null;
|
|
374
|
+
const cached = localStorage.getItem(CONFIG.cachePrefix + key);
|
|
375
|
+
return cached ? JSON.parse(cached).data : null;
|
|
376
|
+
}
|
|
377
|
+
catch {
|
|
378
|
+
return null;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
function setCachedData(key, data) {
|
|
382
|
+
try {
|
|
383
|
+
localStorage.setItem(CONFIG.cachePrefix + key, JSON.stringify({ data, timestamp: Date.now() }));
|
|
384
|
+
}
|
|
385
|
+
catch (e) {
|
|
386
|
+
logger.warn('Cache storage error:', e);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
// ============================================================================
|
|
390
|
+
// DATA FETCHING
|
|
391
|
+
// ============================================================================
|
|
392
|
+
async function fetchCSVRetry(filename, retryCount = 0) {
|
|
393
|
+
const url = `${CONFIG.githubRawBase}/${filename}`;
|
|
394
|
+
try {
|
|
395
|
+
const response = await fetch(url);
|
|
396
|
+
if (!response.ok)
|
|
397
|
+
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
|
|
398
|
+
return await response.text();
|
|
399
|
+
}
|
|
400
|
+
catch (error) {
|
|
401
|
+
if (retryCount < CONFIG.maxRetries) {
|
|
402
|
+
await new Promise((resolve) => setTimeout(resolve, CONFIG.retryDelay));
|
|
403
|
+
return fetchCSVRetry(filename, retryCount + 1);
|
|
404
|
+
}
|
|
405
|
+
throw error;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
async function loadPartySummary() {
|
|
409
|
+
const cached = getCachedData('party_summary');
|
|
410
|
+
if (cached)
|
|
411
|
+
return cached;
|
|
412
|
+
const csvText = await fetchCSVRetry(CONFIG.dataSources.partySummary);
|
|
413
|
+
const data = parseCSV(csvText);
|
|
414
|
+
const active = data.filter((row) => row.active === 't');
|
|
415
|
+
setCachedData('party_summary', active);
|
|
416
|
+
return active;
|
|
417
|
+
}
|
|
418
|
+
async function loadPartyRoles() {
|
|
419
|
+
const cached = getCachedData('party_roles');
|
|
420
|
+
if (cached)
|
|
421
|
+
return cached;
|
|
422
|
+
const csvText = await fetchCSVRetry(CONFIG.dataSources.partyRoles);
|
|
423
|
+
const data = parseCSV(csvText);
|
|
424
|
+
const leaders = data.filter((row) => row.active === 't' &&
|
|
425
|
+
(row.role_code === 'Partiledare' || row.role_code === 'Gruppledare'));
|
|
426
|
+
setCachedData('party_roles', leaders);
|
|
427
|
+
return leaders;
|
|
428
|
+
}
|
|
429
|
+
async function loadPoliticianData() {
|
|
430
|
+
const cached = getCachedData('politician_data');
|
|
431
|
+
if (cached)
|
|
432
|
+
return cached;
|
|
433
|
+
const csvText = await fetchCSVRetry(CONFIG.dataSources.politicianData);
|
|
434
|
+
const data = parseCSV(csvText);
|
|
435
|
+
setCachedData('politician_data', data);
|
|
436
|
+
return data;
|
|
437
|
+
}
|
|
438
|
+
async function loadExperienceData() {
|
|
439
|
+
const cached = getCachedData('experience_data');
|
|
440
|
+
if (cached)
|
|
441
|
+
return cached;
|
|
442
|
+
const csvText = await fetchCSVRetry(CONFIG.dataSources.experienceData);
|
|
443
|
+
const data = parseCSV(csvText);
|
|
444
|
+
setCachedData('experience_data', data);
|
|
445
|
+
return data;
|
|
446
|
+
}
|
|
447
|
+
// ============================================================================
|
|
448
|
+
// LEADER INFO
|
|
449
|
+
// ============================================================================
|
|
450
|
+
function getPartyLeader(roleData, partyCode) {
|
|
451
|
+
const partyLeader = roleData.find((row) => row.party === partyCode && row.role_code === 'Partiledare');
|
|
452
|
+
if (partyLeader) {
|
|
453
|
+
return {
|
|
454
|
+
name: `${partyLeader.first_name} ${partyLeader.last_name}`,
|
|
455
|
+
roleType: 'leader',
|
|
456
|
+
personId: partyLeader.person_id || null,
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
const groupLeader = roleData.find((row) => row.party === partyCode && row.role_code === 'Gruppledare');
|
|
460
|
+
if (groupLeader) {
|
|
461
|
+
return {
|
|
462
|
+
name: `${groupLeader.first_name} ${groupLeader.last_name}`,
|
|
463
|
+
roleType: 'groupLeader',
|
|
464
|
+
personId: groupLeader.person_id || null,
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
return { name: 'Unknown', roleType: 'leader', personId: null };
|
|
468
|
+
}
|
|
469
|
+
function getEnhancedLeaderInfo(leader, politicianData, _experienceData) {
|
|
470
|
+
if (!leader.personId)
|
|
471
|
+
return leader;
|
|
472
|
+
const politician = politicianData.find((p) => p.person_id === leader.personId);
|
|
473
|
+
if (!politician)
|
|
474
|
+
return leader;
|
|
475
|
+
const firstDate = new Date(politician.first_assignment_date);
|
|
476
|
+
const yearsInPolitics = Math.floor((Date.now() - firstDate.getTime()) / (365.25 * 24 * 60 * 60 * 1000));
|
|
477
|
+
const totalDocs = parseInt(politician.total_documents, 10) || 0;
|
|
478
|
+
const activityLevel = politician.doc_activity_level || 'Unknown';
|
|
479
|
+
const partyDocs = parseInt(politician.party_motions, 10) || 0;
|
|
480
|
+
const committeeDocs = parseInt(politician.committee_motions, 10) || 0;
|
|
481
|
+
let specialization = 'Balanced';
|
|
482
|
+
if (partyDocs > committeeDocs * 2)
|
|
483
|
+
specialization = 'Party-focused';
|
|
484
|
+
else if (committeeDocs > partyDocs * 2)
|
|
485
|
+
specialization = 'Committee-focused';
|
|
486
|
+
return {
|
|
487
|
+
...leader,
|
|
488
|
+
yearsInPolitics,
|
|
489
|
+
totalDocuments: totalDocs,
|
|
490
|
+
activityLevel,
|
|
491
|
+
specialization,
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
// ============================================================================
|
|
495
|
+
// RENDERING
|
|
496
|
+
// ============================================================================
|
|
497
|
+
function renderCoalition(partySummary, partyRoles, politicianData = [], experienceData = []) {
|
|
498
|
+
const container = document.getElementById('coalition-status');
|
|
499
|
+
if (!container) {
|
|
500
|
+
logger.error('Coalition status container not found');
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
const t = getTranslations();
|
|
504
|
+
const cardsContainer = container.querySelector('.cards');
|
|
505
|
+
if (!cardsContainer) {
|
|
506
|
+
logger.error('Cards container not found');
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
cardsContainer.innerHTML = '';
|
|
510
|
+
const knownParties = partySummary.filter((party) => PARTY_INFO[party.party]);
|
|
511
|
+
const sortedParties = [...knownParties].sort((a, b) => {
|
|
512
|
+
const seatsA = parseInt(a.total_active_parliament, 10) || 0;
|
|
513
|
+
const seatsB = parseInt(b.total_active_parliament, 10) || 0;
|
|
514
|
+
return seatsB - seatsA;
|
|
515
|
+
});
|
|
516
|
+
const totalSeats = sortedParties.reduce((sum, party) => sum + (parseInt(party.total_active_parliament, 10) || 0), 0);
|
|
517
|
+
sortedParties.forEach((party) => {
|
|
518
|
+
const partyCode = party.party;
|
|
519
|
+
const partyInfo = PARTY_INFO[partyCode];
|
|
520
|
+
if (!partyInfo)
|
|
521
|
+
return;
|
|
522
|
+
const parliamentSeats = parseInt(party.total_active_parliament, 10) || 0;
|
|
523
|
+
const governmentMembers = parseInt(party.total_active_government, 10) || 0;
|
|
524
|
+
const partyAssignments = parseInt(party.current_party_assignments, 10) || 0;
|
|
525
|
+
const basicLeader = getPartyLeader(partyRoles, partyCode);
|
|
526
|
+
const leader = getEnhancedLeaderInfo(basicLeader, politicianData, experienceData);
|
|
527
|
+
const leaderLabel = t[leader.roleType] || t.leader;
|
|
528
|
+
const card = document.createElement('div');
|
|
529
|
+
card.className = 'card';
|
|
530
|
+
const scanner = document.createElement('div');
|
|
531
|
+
scanner.className = 'scanner-effect';
|
|
532
|
+
card.appendChild(scanner);
|
|
533
|
+
const heading = document.createElement('h3');
|
|
534
|
+
heading.textContent = `${partyInfo.name} (${partyCode})`;
|
|
535
|
+
card.appendChild(heading);
|
|
536
|
+
const partyStats = document.createElement('div');
|
|
537
|
+
partyStats.className = 'party-stats';
|
|
538
|
+
const seatsP = document.createElement('p');
|
|
539
|
+
const seatsStrong = document.createElement('strong');
|
|
540
|
+
seatsStrong.textContent = `${parliamentSeats} ${t.parliamentSeats}`;
|
|
541
|
+
seatsP.appendChild(seatsStrong);
|
|
542
|
+
partyStats.appendChild(seatsP);
|
|
543
|
+
if (governmentMembers > 0) {
|
|
544
|
+
const govP = document.createElement('p');
|
|
545
|
+
govP.textContent = `${governmentMembers} ${t.governmentMembers}`;
|
|
546
|
+
partyStats.appendChild(govP);
|
|
547
|
+
}
|
|
548
|
+
const assignmentsP = document.createElement('p');
|
|
549
|
+
assignmentsP.textContent = `${partyAssignments} ${t.partyAssignments}`;
|
|
550
|
+
partyStats.appendChild(assignmentsP);
|
|
551
|
+
card.appendChild(partyStats);
|
|
552
|
+
const leaderSection = document.createElement('div');
|
|
553
|
+
leaderSection.className = 'party-leader';
|
|
554
|
+
const leaderName = document.createElement('p');
|
|
555
|
+
const leaderStrong = document.createElement('strong');
|
|
556
|
+
leaderStrong.textContent = `${leaderLabel}:`;
|
|
557
|
+
leaderName.appendChild(leaderStrong);
|
|
558
|
+
leaderName.appendChild(document.createTextNode(` ${leader.name}`));
|
|
559
|
+
leaderSection.appendChild(leaderName);
|
|
560
|
+
if (leader.yearsInPolitics !== undefined) {
|
|
561
|
+
const leaderDetails = document.createElement('div');
|
|
562
|
+
leaderDetails.className = 'leader-details';
|
|
563
|
+
leaderDetails.style.fontSize = '0.9em';
|
|
564
|
+
leaderDetails.style.marginTop = '0.5rem';
|
|
565
|
+
const yearsP = document.createElement('p');
|
|
566
|
+
yearsP.textContent = `${t.yearsInPolitics}: ${leader.yearsInPolitics}`;
|
|
567
|
+
yearsP.style.margin = '0.25rem 0';
|
|
568
|
+
leaderDetails.appendChild(yearsP);
|
|
569
|
+
if (leader.totalDocuments && leader.totalDocuments > 0) {
|
|
570
|
+
const docsP = document.createElement('p');
|
|
571
|
+
docsP.textContent = `${t.totalDocuments}: ${leader.totalDocuments}`;
|
|
572
|
+
docsP.style.margin = '0.25rem 0';
|
|
573
|
+
leaderDetails.appendChild(docsP);
|
|
574
|
+
}
|
|
575
|
+
if (leader.activityLevel && leader.activityLevel !== 'Unknown') {
|
|
576
|
+
const activityP = document.createElement('p');
|
|
577
|
+
activityP.textContent = `${t.activityLevel}: ${leader.activityLevel}`;
|
|
578
|
+
activityP.style.margin = '0.25rem 0';
|
|
579
|
+
leaderDetails.appendChild(activityP);
|
|
580
|
+
}
|
|
581
|
+
if (leader.specialization && leader.specialization !== 'Balanced') {
|
|
582
|
+
const specP = document.createElement('p');
|
|
583
|
+
const specKey = leader.specialization === 'Party-focused' ? 'partyFocused' : 'committeeFocused';
|
|
584
|
+
specP.textContent = `${t.specialization}: ${t[specKey]}`;
|
|
585
|
+
specP.style.margin = '0.25rem 0';
|
|
586
|
+
leaderDetails.appendChild(specP);
|
|
587
|
+
}
|
|
588
|
+
leaderSection.appendChild(leaderDetails);
|
|
589
|
+
}
|
|
590
|
+
card.appendChild(leaderSection);
|
|
591
|
+
cardsContainer.appendChild(card);
|
|
592
|
+
});
|
|
593
|
+
const statusP = container.querySelector('p');
|
|
594
|
+
if (statusP) {
|
|
595
|
+
statusP.textContent = `${t.coalitionStatus} | Total Seats: ${totalSeats} of 349`;
|
|
596
|
+
}
|
|
597
|
+
logger.debug(`Rendered ${sortedParties.length} active parties with ${totalSeats} total seats`);
|
|
598
|
+
}
|
|
599
|
+
// ============================================================================
|
|
600
|
+
// PUBLIC API
|
|
601
|
+
// ============================================================================
|
|
602
|
+
/**
|
|
603
|
+
* Clear all coalition-related caches from localStorage.
|
|
604
|
+
*/
|
|
605
|
+
export function clearCache() {
|
|
606
|
+
Object.keys(localStorage).forEach((key) => {
|
|
607
|
+
if (key.startsWith(CONFIG.cachePrefix)) {
|
|
608
|
+
localStorage.removeItem(key);
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
logger.debug('Coalition cache cleared');
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Initialise the Coalition Status dashboard.
|
|
615
|
+
*
|
|
616
|
+
* Loads party summary, roles, politician, and experience data in parallel,
|
|
617
|
+
* then renders coalition cards with leader information.
|
|
618
|
+
*/
|
|
619
|
+
export async function init() {
|
|
620
|
+
logger.debug('Initializing Coalition Loader...');
|
|
621
|
+
const t = getTranslations();
|
|
622
|
+
const container = document.getElementById('coalition-status');
|
|
623
|
+
if (container) {
|
|
624
|
+
const cardsContainer = container.querySelector('.cards');
|
|
625
|
+
if (cardsContainer) {
|
|
626
|
+
cardsContainer.innerHTML = `<p class="loading-message">${t.loadingMessage}</p>`;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
try {
|
|
630
|
+
const [partySummary, partyRoles, politicianData, experienceData] = await Promise.all([
|
|
631
|
+
loadPartySummary(),
|
|
632
|
+
loadPartyRoles(),
|
|
633
|
+
loadPoliticianData().catch((err) => {
|
|
634
|
+
logger.warn('Could not load politician data:', err);
|
|
635
|
+
return [];
|
|
636
|
+
}),
|
|
637
|
+
loadExperienceData().catch((err) => {
|
|
638
|
+
logger.warn('Could not load experience data:', err);
|
|
639
|
+
return [];
|
|
640
|
+
}),
|
|
641
|
+
]);
|
|
642
|
+
logger.debug('Loaded data:', {
|
|
643
|
+
parties: partySummary.length,
|
|
644
|
+
leaders: partyRoles.length,
|
|
645
|
+
politicians: politicianData.length,
|
|
646
|
+
experiences: experienceData.length,
|
|
647
|
+
});
|
|
648
|
+
renderCoalition(partySummary, partyRoles, politicianData, experienceData);
|
|
649
|
+
logger.debug('✅ Coalition loader initialized successfully');
|
|
650
|
+
}
|
|
651
|
+
catch (error) {
|
|
652
|
+
logger.error('Coalition loader error:', error);
|
|
653
|
+
if (container) {
|
|
654
|
+
const cardsContainer = container.querySelector('.cards');
|
|
655
|
+
if (cardsContainer) {
|
|
656
|
+
const errorP = document.createElement('p');
|
|
657
|
+
errorP.className = 'error-message';
|
|
658
|
+
errorP.textContent = `${t.errorMessage}: ${error.message}`;
|
|
659
|
+
cardsContainer.innerHTML = '';
|
|
660
|
+
cardsContainer.appendChild(errorP);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
//# sourceMappingURL=coalition-loader.js.map
|