@burdenoff/microfe-theglobalfuel 2026.528.1 → 2026.704.1
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/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -4
- package/dist/node_modules/{clsx → .bun/clsx@2.1.1/node_modules/clsx}/dist/clsx.js +1 -1
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/{tailwind-merge → .bun/tailwind-merge@3.5.0/node_modules/tailwind-merge}/dist/bundle-mjs.js +170 -212
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts +5 -0
- package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +1 -0
- package/dist/theglobalfuel/TheGlobalFuelRoot.js +109 -161
- package/dist/theglobalfuel/TheGlobalFuelRoot.js.map +1 -1
- package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +4 -0
- package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +1 -0
- package/dist/theglobalfuel/TheGlobalFuelRoutes.js +70 -85
- package/dist/theglobalfuel/TheGlobalFuelRoutes.js.map +1 -1
- package/dist/theglobalfuel/components/DataTable.d.ts +28 -0
- package/dist/theglobalfuel/components/DataTable.d.ts.map +1 -0
- package/dist/theglobalfuel/components/DataTable.js +71 -0
- package/dist/theglobalfuel/components/DataTable.js.map +1 -0
- package/dist/theglobalfuel/components/EmptyState.d.ts +18 -0
- package/dist/theglobalfuel/components/EmptyState.d.ts.map +1 -0
- package/dist/theglobalfuel/components/EmptyState.js +35 -0
- package/dist/theglobalfuel/components/EmptyState.js.map +1 -0
- package/dist/theglobalfuel/components/EvidenceUpload.d.ts +14 -0
- package/dist/theglobalfuel/components/EvidenceUpload.d.ts.map +1 -0
- package/dist/theglobalfuel/components/EvidenceUpload.js +93 -0
- package/dist/theglobalfuel/components/EvidenceUpload.js.map +1 -0
- package/dist/theglobalfuel/components/FileLink.d.ts +15 -0
- package/dist/theglobalfuel/components/FileLink.d.ts.map +1 -0
- package/dist/theglobalfuel/components/FileLink.js +36 -0
- package/dist/theglobalfuel/components/FileLink.js.map +1 -0
- package/dist/theglobalfuel/components/FilterTabs.d.ts +18 -0
- package/dist/theglobalfuel/components/FilterTabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/FilterTabs.js +27 -0
- package/dist/theglobalfuel/components/FilterTabs.js.map +1 -0
- package/dist/theglobalfuel/components/MetricsCard.d.ts +23 -0
- package/dist/theglobalfuel/components/MetricsCard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/MetricsCard.js +64 -0
- package/dist/theglobalfuel/components/MetricsCard.js.map +1 -0
- package/dist/theglobalfuel/components/MiniBar.d.ts +16 -0
- package/dist/theglobalfuel/components/MiniBar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/MiniBar.js +22 -0
- package/dist/theglobalfuel/components/MiniBar.js.map +1 -0
- package/dist/theglobalfuel/components/PageLayout.d.ts +16 -0
- package/dist/theglobalfuel/components/PageLayout.d.ts.map +1 -0
- package/dist/theglobalfuel/components/PageLayout.js +38 -0
- package/dist/theglobalfuel/components/PageLayout.js.map +1 -0
- package/dist/theglobalfuel/components/Pagination.d.ts +22 -0
- package/dist/theglobalfuel/components/Pagination.d.ts.map +1 -0
- package/dist/theglobalfuel/components/Pagination.js +50 -0
- package/dist/theglobalfuel/components/Pagination.js.map +1 -0
- package/dist/theglobalfuel/components/StateViews.d.ts +24 -0
- package/dist/theglobalfuel/components/StateViews.d.ts.map +1 -0
- package/dist/theglobalfuel/components/StateViews.js +49 -0
- package/dist/theglobalfuel/components/StateViews.js.map +1 -0
- package/dist/theglobalfuel/components/StatusBadge.d.ts +9 -0
- package/dist/theglobalfuel/components/StatusBadge.d.ts.map +1 -0
- package/dist/theglobalfuel/components/StatusBadge.js +73 -0
- package/dist/theglobalfuel/components/StatusBadge.js.map +1 -0
- package/dist/theglobalfuel/components/Tabs.d.ts +17 -0
- package/dist/theglobalfuel/components/Tabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/Tabs.js +31 -0
- package/dist/theglobalfuel/components/Tabs.js.map +1 -0
- package/dist/theglobalfuel/components/TheDiscussion.d.ts +18 -0
- package/dist/theglobalfuel/components/TheDiscussion.d.ts.map +1 -0
- package/dist/theglobalfuel/components/TheDiscussion.js +109 -0
- package/dist/theglobalfuel/components/TheDiscussion.js.map +1 -0
- package/dist/theglobalfuel/components/TheTags.d.ts +17 -0
- package/dist/theglobalfuel/components/TheTags.d.ts.map +1 -0
- package/dist/theglobalfuel/components/TheTags.js +149 -0
- package/dist/theglobalfuel/components/TheTags.js.map +1 -0
- package/dist/theglobalfuel/components/index.d.ts +19 -0
- package/dist/theglobalfuel/components/index.d.ts.map +1 -0
- package/dist/theglobalfuel/components/index.js +14 -0
- package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts +16 -0
- package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts.map +1 -0
- package/dist/theglobalfuel/context/TheGlobalFuelContext.js +85 -0
- package/dist/theglobalfuel/context/TheGlobalFuelContext.js.map +1 -0
- package/dist/theglobalfuel/context/index.d.ts +6 -0
- package/dist/theglobalfuel/context/index.d.ts.map +1 -0
- package/dist/theglobalfuel/context/index.js +1 -0
- package/dist/theglobalfuel/hooks/index.d.ts +10 -0
- package/dist/theglobalfuel/hooks/index.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/index.js +5 -0
- package/dist/theglobalfuel/hooks/useCursorPager.d.ts +33 -0
- package/dist/theglobalfuel/hooks/useCursorPager.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useCursorPager.js +25 -0
- package/dist/theglobalfuel/hooks/useCursorPager.js.map +1 -0
- package/dist/theglobalfuel/hooks/useTheComments.d.ts +36 -0
- package/dist/theglobalfuel/hooks/useTheComments.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheComments.js +45 -0
- package/dist/theglobalfuel/hooks/useTheComments.js.map +1 -0
- package/dist/theglobalfuel/hooks/useTheFiles.d.ts +47 -0
- package/dist/theglobalfuel/hooks/useTheFiles.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheFiles.js +81 -0
- package/dist/theglobalfuel/hooks/useTheFiles.js.map +1 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts +75 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js +353 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTags.d.ts +44 -0
- package/dist/theglobalfuel/hooks/useTheTags.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTags.js +89 -0
- package/dist/theglobalfuel/hooks/useTheTags.js.map +1 -0
- package/dist/theglobalfuel/index.d.ts +9 -0
- package/dist/theglobalfuel/index.d.ts.map +1 -0
- package/dist/theglobalfuel/index.js +5 -2
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts +13 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.js +869 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.js.map +1 -0
- package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts +10 -0
- package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/assets/AssetsPage.js +547 -0
- package/dist/theglobalfuel/pages/assets/AssetsPage.js.map +1 -0
- package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts +11 -0
- package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js +511 -0
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js.map +1 -0
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts +9 -0
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js +878 -0
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js.map +1 -0
- package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts +8 -0
- package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js +588 -0
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js.map +1 -0
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts +13 -0
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.js +507 -0
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.js.map +1 -0
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts +12 -0
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js +479 -0
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js.map +1 -0
- package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js +592 -0
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js.map +1 -0
- package/dist/theglobalfuel/pages/production/ProductionPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/production/ProductionPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/production/ProductionPage.js +421 -0
- package/dist/theglobalfuel/pages/production/ProductionPage.js.map +1 -0
- package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts +10 -0
- package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js +439 -0
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js.map +1 -0
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts +10 -0
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js +550 -0
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js.map +1 -0
- package/dist/theglobalfuel/types/index.d.ts +376 -0
- package/dist/theglobalfuel/types/index.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/cn.d.ts +4 -0
- package/dist/theglobalfuel/utils/cn.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/cn.js +2 -2
- package/dist/theglobalfuel/utils/formatters.d.ts +36 -0
- package/dist/theglobalfuel/utils/formatters.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/formatters.js +94 -0
- package/dist/theglobalfuel/utils/formatters.js.map +1 -0
- package/dist/theglobalfuel/utils/i18n.d.ts +6 -0
- package/dist/theglobalfuel/utils/i18n.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/index.d.ts +9 -0
- package/dist/theglobalfuel/utils/index.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/navigation.d.ts +14 -0
- package/dist/theglobalfuel/utils/navigation.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/navigation.js +2 -1
- package/dist/theglobalfuel/utils/navigation.js.map +1 -1
- package/package.json +3 -3
- package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
- package/dist/theglobalfuel/pages/AiIntelligencePage.js +0 -190
- package/dist/theglobalfuel/pages/AiIntelligencePage.js.map +0 -1
- package/dist/theglobalfuel/pages/AnalyticsPage.js +0 -241
- package/dist/theglobalfuel/pages/AnalyticsPage.js.map +0 -1
- package/dist/theglobalfuel/pages/CompliancePage.js +0 -173
- package/dist/theglobalfuel/pages/CompliancePage.js.map +0 -1
- package/dist/theglobalfuel/pages/DashboardPage.js +0 -145
- package/dist/theglobalfuel/pages/DashboardPage.js.map +0 -1
- package/dist/theglobalfuel/pages/FinancialPage.js +0 -204
- package/dist/theglobalfuel/pages/FinancialPage.js.map +0 -1
- package/dist/theglobalfuel/pages/FleetManagementPage.js +0 -244
- package/dist/theglobalfuel/pages/FleetManagementPage.js.map +0 -1
- package/dist/theglobalfuel/pages/MarketplacePage.js +0 -260
- package/dist/theglobalfuel/pages/MarketplacePage.js.map +0 -1
- package/dist/theglobalfuel/pages/OperationsPage.js +0 -190
- package/dist/theglobalfuel/pages/OperationsPage.js.map +0 -1
- package/dist/theglobalfuel/pages/QualityControlPage.js +0 -215
- package/dist/theglobalfuel/pages/QualityControlPage.js.map +0 -1
- package/dist/theglobalfuel/pages/ReportsPage.js +0 -247
- package/dist/theglobalfuel/pages/ReportsPage.js.map +0 -1
- package/dist/theglobalfuel/pages/ResourcesPage.js +0 -225
- package/dist/theglobalfuel/pages/ResourcesPage.js.map +0 -1
- package/dist/theglobalfuel/pages/RiskManagementPage.js +0 -230
- package/dist/theglobalfuel/pages/RiskManagementPage.js.map +0 -1
- package/dist/theglobalfuel/pages/SupplyChainPage.js +0 -214
- package/dist/theglobalfuel/pages/SupplyChainPage.js.map +0 -1
- package/dist/theglobalfuel/pages/SustainabilityPage.js +0 -261
- package/dist/theglobalfuel/pages/SustainabilityPage.js.map +0 -1
- package/dist/theglobalfuel/pages/TrainingPage.js +0 -253
- package/dist/theglobalfuel/pages/TrainingPage.js.map +0 -1
- package/dist/theglobalfuel/providers/TheGlobalFuelProvider.js +0 -27
- package/dist/theglobalfuel/providers/TheGlobalFuelProvider.js.map +0 -1
- package/dist/theglobalfuel/store/theglobalfuelStore.js +0 -712
- package/dist/theglobalfuel/store/theglobalfuelStore.js.map +0 -1
- package/dist/theglobalfuel/utils/i18n.js +0 -15
- package/dist/theglobalfuel/utils/i18n.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theglobalfuelStore.js","names":[],"sources":["../../../src/theglobalfuel/store/theglobalfuelStore.ts"],"sourcesContent":["import { create } from 'zustand';\nimport type { OverviewMetric, WorkItem } from '../types';\n\n// ---- Energy-domain data types ----\n\nexport interface Facility {\n id: string;\n name: string;\n type: 'refinery' | 'terminal' | 'pipeline_station' | 'storage_depot' | 'processing_plant';\n location: string;\n status: 'operational' | 'maintenance' | 'offline';\n capacity: string;\n utilization: number;\n}\n\nexport interface OperationsRecord {\n id: string;\n facility: string;\n type: 'crude_processing' | 'distillation' | 'blending' | 'pipeline_transfer' | 'storage';\n throughput: string;\n status: 'running' | 'scheduled' | 'completed' | 'delayed';\n efficiency: number;\n startDate: string;\n}\n\nexport interface FleetVehicle {\n id: string;\n type: 'tanker_truck' | 'pipeline_pig' | 'lng_carrier' | 'rail_tank' | 'barge';\n status: 'active' | 'idle' | 'maintenance';\n driver: string;\n location: string;\n cargo: string;\n capacityBarrels: number;\n currentLoadBarrels: number;\n destination: string;\n eta: string;\n fuelLevel: number;\n}\n\nexport interface SupplyChainShipment {\n id: string;\n origin: string;\n destination: string;\n commodity: string;\n volumeBarrels: number;\n status: 'in-transit' | 'delivered' | 'delayed' | 'loading';\n eta: string;\n carrier: string;\n}\n\nexport interface SustainabilityMetrics {\n esgScore: number;\n esgRating: string;\n carbonEmissionsMTCO2e: number;\n carbonChange: number;\n renewableEnergyPct: number;\n wasteRecycledPct: number;\n scope1: number;\n scope2: number;\n scope3: number;\n waterConsumptionM3: number;\n flareReductionPct: number;\n}\n\nexport interface ComplianceItem {\n id: string;\n framework: string;\n status: 'compliant' | 'review' | 'non-compliant';\n score: number;\n lastAudit: string;\n nextAudit: string;\n}\n\nexport interface RiskAssessment {\n id: string;\n category:\n | 'operational'\n | 'supply_chain'\n | 'compliance'\n | 'financial'\n | 'safety'\n | 'environmental';\n title: string;\n description: string;\n probability: 'low' | 'medium' | 'high';\n impact: 'low' | 'medium' | 'high';\n riskLevel: 'low' | 'medium' | 'high' | 'critical';\n status: 'active' | 'mitigated' | 'monitoring';\n owner: string;\n mitigationBudget: string;\n}\n\nexport interface QualityTest {\n id: string;\n batchId: string;\n product: string;\n testDate: string;\n status: 'passed' | 'warning' | 'failed';\n technician: string;\n metrics: Record<\n string,\n { value: number; unit: string; spec: string; result: 'pass' | 'warning' | 'fail' }\n >;\n}\n\nexport interface FinancialRecord {\n revenueUSD: number;\n opexUSD: number;\n netProfitUSD: number;\n profitMarginPct: number;\n crudePricePerBarrel: number;\n gasPricePerMMBTU: number;\n revenueStreams: { name: string; amountUSD: number; pct: number }[];\n costBreakdown: { name: string; amountUSD: number; pct: number }[];\n}\n\nexport interface TrainingProgram {\n id: string;\n title: string;\n category: 'safety' | 'technical' | 'operations' | 'compliance' | 'management';\n level: 'required' | 'intermediate' | 'advanced';\n duration: string;\n enrolled: number;\n completed: number;\n completionRate: number;\n instructor: string;\n}\n\nexport interface AIInsight {\n id: string;\n type: 'predictive_maintenance' | 'demand_forecast' | 'anomaly_detection' | 'optimization';\n equipment: string;\n prediction: string;\n confidence: number;\n severity: 'low' | 'medium' | 'high';\n recommendation: string;\n timeframe: string;\n}\n\nexport interface MarketplaceProduct {\n id: string;\n name: string;\n category: string;\n pricePerBarrel: number;\n stockBarrels: number;\n minOrderBarrels: number;\n apiGravity: string;\n sulfurContentPct: number;\n rating: number;\n certifications: string[];\n}\n\n// ---- Store state ----\n\ninterface TheGlobalFuelState {\n metrics: OverviewMetric[];\n workItems: WorkItem[];\n selectedView: string;\n facilities: Facility[];\n operations: OperationsRecord[];\n fleet: FleetVehicle[];\n supplyChain: SupplyChainShipment[];\n sustainability: SustainabilityMetrics;\n compliance: ComplianceItem[];\n risks: RiskAssessment[];\n qualityTests: QualityTest[];\n financials: FinancialRecord;\n training: TrainingProgram[];\n aiInsights: AIInsight[];\n marketplace: MarketplaceProduct[];\n setSelectedView: (view: string) => void;\n setWorkItems: (items: WorkItem[]) => void;\n}\n\nexport const useTheGlobalFuelStore = create<TheGlobalFuelState>((set) => ({\n metrics: [\n { label: 'Daily Production', value: '847K bbl', trend: '+3.2%' },\n { label: 'Pipeline Throughput', value: '1.2M bbl/d', trend: '+1.8%' },\n { label: 'Refinery Utilization', value: '94.3%', trend: '+2.1%' },\n { label: 'ESG Score', value: '82 (A)', trend: '+5.2%' },\n ],\n workItems: [\n {\n id: 'w1',\n title: 'Crude distillation unit turnaround - Unit 4',\n status: 'active',\n owner: 'Refinery Ops',\n updatedAt: '2h ago',\n },\n {\n id: 'w2',\n title: 'Pipeline integrity inspection - Segment 12',\n status: 'planned',\n owner: 'Pipeline Eng',\n updatedAt: '5h ago',\n },\n {\n id: 'w3',\n title: 'Flare gas recovery system maintenance',\n status: 'at_risk',\n owner: 'Environmental',\n updatedAt: '1d ago',\n },\n {\n id: 'w4',\n title: 'LNG terminal commissioning phase 2',\n status: 'completed',\n owner: 'Terminal Ops',\n updatedAt: '2d ago',\n },\n ],\n selectedView: 'overview',\n\n facilities: [\n {\n id: 'FAC-001',\n name: 'Gulf Coast Refinery',\n type: 'refinery',\n location: 'Houston, TX',\n status: 'operational',\n capacity: '250,000 bbl/d',\n utilization: 94.3,\n },\n {\n id: 'FAC-002',\n name: 'Midland Terminal',\n type: 'terminal',\n location: 'Midland, TX',\n status: 'operational',\n capacity: '180,000 bbl/d',\n utilization: 87.1,\n },\n {\n id: 'FAC-003',\n name: 'Cushing Storage Hub',\n type: 'storage_depot',\n location: 'Cushing, OK',\n status: 'operational',\n capacity: '12M bbl',\n utilization: 72.5,\n },\n {\n id: 'FAC-004',\n name: 'Baytown Processing Plant',\n type: 'processing_plant',\n location: 'Baytown, TX',\n status: 'maintenance',\n capacity: '120,000 bbl/d',\n utilization: 0,\n },\n {\n id: 'FAC-005',\n name: 'Pipeline Station Alpha',\n type: 'pipeline_station',\n location: 'Permian Basin, TX',\n status: 'operational',\n capacity: '500,000 bbl/d',\n utilization: 91.8,\n },\n ],\n\n operations: [\n {\n id: 'OPS-001',\n facility: 'Gulf Coast Refinery',\n type: 'crude_processing',\n throughput: '236,000 bbl/d',\n status: 'running',\n efficiency: 94.3,\n startDate: '2025-01-15',\n },\n {\n id: 'OPS-002',\n facility: 'Gulf Coast Refinery',\n type: 'distillation',\n throughput: '215,000 bbl/d',\n status: 'running',\n efficiency: 91.2,\n startDate: '2025-01-15',\n },\n {\n id: 'OPS-003',\n facility: 'Midland Terminal',\n type: 'pipeline_transfer',\n throughput: '157,000 bbl/d',\n status: 'running',\n efficiency: 87.1,\n startDate: '2025-02-01',\n },\n {\n id: 'OPS-004',\n facility: 'Cushing Storage Hub',\n type: 'storage',\n throughput: '45,000 bbl/d',\n status: 'scheduled',\n efficiency: 72.5,\n startDate: '2025-03-01',\n },\n {\n id: 'OPS-005',\n facility: 'Baytown Processing Plant',\n type: 'blending',\n throughput: '0 bbl/d',\n status: 'delayed',\n efficiency: 0,\n startDate: '2025-02-20',\n },\n ],\n\n fleet: [\n {\n id: 'TRK-001',\n type: 'tanker_truck',\n status: 'active',\n driver: 'John Smith',\n location: 'Houston, TX',\n cargo: 'Crude Oil WTI',\n capacityBarrels: 210,\n currentLoadBarrels: 195,\n destination: 'Gulf Coast Refinery',\n eta: '2h 15m',\n fuelLevel: 68,\n },\n {\n id: 'TRK-002',\n type: 'tanker_truck',\n status: 'active',\n driver: 'Maria Garcia',\n location: 'Midland, TX',\n cargo: 'Permian Crude',\n capacityBarrels: 210,\n currentLoadBarrels: 180,\n destination: 'Cushing Storage Hub',\n eta: '4h 30m',\n fuelLevel: 82,\n },\n {\n id: 'LNG-001',\n type: 'lng_carrier',\n status: 'active',\n driver: 'Capt. R. Wilson',\n location: 'Gulf of Mexico',\n cargo: 'LNG Cargo',\n capacityBarrels: 850000,\n currentLoadBarrels: 780000,\n destination: 'Sabine Pass Terminal',\n eta: '18h',\n fuelLevel: 71,\n },\n {\n id: 'RAIL-001',\n type: 'rail_tank',\n status: 'idle',\n driver: 'K. Patel',\n location: 'Cushing Rail Yard',\n cargo: 'None',\n capacityBarrels: 700,\n currentLoadBarrels: 0,\n destination: 'Awaiting Assignment',\n eta: 'N/A',\n fuelLevel: 100,\n },\n {\n id: 'TRK-003',\n type: 'tanker_truck',\n status: 'maintenance',\n driver: 'R. Johnson',\n location: 'Service Center',\n cargo: 'None',\n capacityBarrels: 210,\n currentLoadBarrels: 0,\n destination: 'Service Center',\n eta: 'N/A',\n fuelLevel: 45,\n },\n ],\n\n supplyChain: [\n {\n id: 'SCH-001',\n origin: 'Permian Basin, TX',\n destination: 'Gulf Coast Refinery',\n commodity: 'WTI Crude Oil',\n volumeBarrels: 125000,\n status: 'in-transit',\n eta: 'Tomorrow 2:30 PM',\n carrier: 'Plains All American',\n },\n {\n id: 'SCH-002',\n origin: 'Cushing, OK',\n destination: 'PADD III Refineries',\n commodity: 'Light Sweet Crude',\n volumeBarrels: 250000,\n status: 'loading',\n eta: 'Mar 18, 2025',\n carrier: 'Enterprise Products',\n },\n {\n id: 'SCH-003',\n origin: 'Saudi Arabia',\n destination: 'Houston Ship Channel',\n commodity: 'Arab Light Crude',\n volumeBarrels: 2000000,\n status: 'in-transit',\n eta: 'Apr 02, 2025',\n carrier: 'VLCC Tanker Fleet',\n },\n {\n id: 'SCH-004',\n origin: 'Gulf Coast Refinery',\n destination: 'East Coast Terminals',\n commodity: 'ULSD (Diesel)',\n volumeBarrels: 80000,\n status: 'delivered',\n eta: 'Delivered',\n carrier: 'Colonial Pipeline',\n },\n ],\n\n sustainability: {\n esgScore: 82,\n esgRating: 'A',\n carbonEmissionsMTCO2e: 485000,\n carbonChange: -8.3,\n renewableEnergyPct: 18.5,\n wasteRecycledPct: 76.2,\n scope1: 285000,\n scope2: 125000,\n scope3: 75000,\n waterConsumptionM3: 3250000,\n flareReductionPct: 42.5,\n },\n\n compliance: [\n {\n id: 'CMP-001',\n framework: 'EPA Clean Air Act',\n status: 'compliant',\n score: 96,\n lastAudit: '2025-01-15',\n nextAudit: '2025-07-15',\n },\n {\n id: 'CMP-002',\n framework: 'OSHA Process Safety (PSM)',\n status: 'compliant',\n score: 98,\n lastAudit: '2025-02-01',\n nextAudit: '2025-08-01',\n },\n {\n id: 'CMP-003',\n framework: 'EPA SPCC (Spill Prevention)',\n status: 'review',\n score: 89,\n lastAudit: '2024-11-20',\n nextAudit: '2025-05-20',\n },\n {\n id: 'CMP-004',\n framework: 'DOT Pipeline Safety (49 CFR)',\n status: 'compliant',\n score: 100,\n lastAudit: '2025-01-10',\n nextAudit: '2025-07-10',\n },\n {\n id: 'CMP-005',\n framework: 'ISO 14001 Environmental',\n status: 'compliant',\n score: 94,\n lastAudit: '2024-12-15',\n nextAudit: '2025-06-15',\n },\n ],\n\n risks: [\n {\n id: 'RISK-001',\n category: 'operational',\n title: 'CDU Heat Exchanger Fouling',\n description:\n 'Progressive fouling in crude distillation unit heat exchangers reducing throughput efficiency',\n probability: 'medium',\n impact: 'high',\n riskLevel: 'high',\n status: 'active',\n owner: 'Refinery Operations Mgr',\n mitigationBudget: '$450,000',\n },\n {\n id: 'RISK-002',\n category: 'supply_chain',\n title: 'Strait of Hormuz Transit Risk',\n description: 'Geopolitical tensions affecting crude oil imports through Strait of Hormuz',\n probability: 'low',\n impact: 'high',\n riskLevel: 'medium',\n status: 'monitoring',\n owner: 'Supply Chain VP',\n mitigationBudget: '$2,100,000',\n },\n {\n id: 'RISK-003',\n category: 'environmental',\n title: 'Pipeline Corrosion Segment 12',\n description: 'Detected wall thinning in pipeline segment 12 near river crossing',\n probability: 'medium',\n impact: 'high',\n riskLevel: 'critical',\n status: 'active',\n owner: 'Pipeline Integrity Eng',\n mitigationBudget: '$1,800,000',\n },\n {\n id: 'RISK-004',\n category: 'financial',\n title: 'Crude Oil Price Volatility',\n description: 'WTI/Brent spread widening impacting refining margins',\n probability: 'high',\n impact: 'high',\n riskLevel: 'high',\n status: 'active',\n owner: 'CFO',\n mitigationBudget: '$5,000,000',\n },\n {\n id: 'RISK-005',\n category: 'safety',\n title: 'H2S Exposure - Tank Farm B',\n description: 'Elevated H2S readings near sour crude storage tanks',\n probability: 'low',\n impact: 'high',\n riskLevel: 'medium',\n status: 'active',\n owner: 'HSE Manager',\n mitigationBudget: '$320,000',\n },\n ],\n\n qualityTests: [\n {\n id: 'QC-001',\n batchId: 'BATCH-7521',\n product: 'ULSD (Ultra-Low Sulfur Diesel)',\n testDate: '2025-02-11',\n status: 'passed',\n technician: 'Dr. Emily Chen',\n metrics: {\n sulfurContent: { value: 8, unit: 'ppm', spec: '<15 ppm', result: 'pass' },\n cetaneNumber: { value: 52, unit: '', spec: '>40', result: 'pass' },\n flashPoint: { value: 62, unit: 'C', spec: '>52C', result: 'pass' },\n density: { value: 0.845, unit: 'kg/L', spec: '0.82-0.86', result: 'pass' },\n },\n },\n {\n id: 'QC-002',\n batchId: 'BATCH-7522',\n product: 'Gasoline (Regular Unleaded)',\n testDate: '2025-02-11',\n status: 'warning',\n technician: 'Dr. M. Roberts',\n metrics: {\n octaneRating: { value: 87.2, unit: 'RON', spec: '>87', result: 'pass' },\n reidVaporPressure: { value: 9.8, unit: 'psi', spec: '7.0-10.0', result: 'warning' },\n benzeneContent: { value: 0.48, unit: '%', spec: '<0.62', result: 'pass' },\n sulfurContent: { value: 9, unit: 'ppm', spec: '<10', result: 'warning' },\n },\n },\n {\n id: 'QC-003',\n batchId: 'BATCH-7523',\n product: 'Jet Fuel (Jet A-1)',\n testDate: '2025-02-12',\n status: 'passed',\n technician: 'Dr. S. Williams',\n metrics: {\n freezingPoint: { value: -52, unit: 'C', spec: '<-47C', result: 'pass' },\n flashPoint: { value: 42, unit: 'C', spec: '>38C', result: 'pass' },\n density: { value: 0.802, unit: 'kg/L', spec: '0.775-0.840', result: 'pass' },\n thermalStability: { value: 260, unit: 'C', spec: '>260C', result: 'pass' },\n },\n },\n ] as QualityTest[],\n\n financials: {\n revenueUSD: 2_450_000_000,\n opexUSD: 1_820_000_000,\n netProfitUSD: 630_000_000,\n profitMarginPct: 25.7,\n crudePricePerBarrel: 78.45,\n gasPricePerMMBTU: 3.28,\n revenueStreams: [\n { name: 'Refined Products (Gasoline, Diesel, Jet)', amountUSD: 1_470_000_000, pct: 60 },\n { name: 'Crude Oil Trading', amountUSD: 490_000_000, pct: 20 },\n { name: 'Natural Gas & NGL', amountUSD: 294_000_000, pct: 12 },\n { name: 'Petrochemicals', amountUSD: 196_000_000, pct: 8 },\n ],\n costBreakdown: [\n { name: 'Crude Oil Procurement', amountUSD: 1_001_000_000, pct: 55 },\n { name: 'Refinery Operations', amountUSD: 364_000_000, pct: 20 },\n { name: 'Transportation & Logistics', amountUSD: 218_400_000, pct: 12 },\n { name: 'Labor & Benefits', amountUSD: 236_600_000, pct: 13 },\n ],\n },\n\n training: [\n {\n id: 'TRN-001',\n title: 'H2S Safety & Emergency Response',\n category: 'safety',\n level: 'required',\n duration: '8 hours',\n enrolled: 156,\n completed: 142,\n completionRate: 91,\n instructor: 'Capt. R. Martinez',\n },\n {\n id: 'TRN-002',\n title: 'Crude Distillation Operations',\n category: 'technical',\n level: 'intermediate',\n duration: '16 hours',\n enrolled: 45,\n completed: 38,\n completionRate: 84,\n instructor: 'Dr. A. Patel',\n },\n {\n id: 'TRN-003',\n title: 'Pipeline Integrity Management',\n category: 'operations',\n level: 'advanced',\n duration: '24 hours',\n enrolled: 28,\n completed: 22,\n completionRate: 79,\n instructor: 'J. Williams, PE',\n },\n {\n id: 'TRN-004',\n title: 'EPA SPCC Compliance Training',\n category: 'compliance',\n level: 'required',\n duration: '4 hours',\n enrolled: 200,\n completed: 195,\n completionRate: 98,\n instructor: 'L. Thompson, Esq.',\n },\n {\n id: 'TRN-005',\n title: 'Refinery Turnaround Management',\n category: 'management',\n level: 'advanced',\n duration: '32 hours',\n enrolled: 18,\n completed: 12,\n completionRate: 67,\n instructor: 'M. Rodriguez, VP',\n },\n ],\n\n aiInsights: [\n {\n id: 'AI-001',\n type: 'predictive_maintenance',\n equipment: 'CDU Heat Exchanger E-301',\n prediction: 'Fouling rate exceeding threshold - cleaning needed',\n confidence: 94,\n severity: 'high',\n recommendation: 'Schedule cleaning during next planned downtime in 5-7 days',\n timeframe: '5-7 days',\n },\n {\n id: 'AI-002',\n type: 'anomaly_detection',\n equipment: 'Compressor K-201',\n prediction: 'Vibration pattern anomaly detected - bearing wear likely',\n confidence: 91,\n severity: 'high',\n recommendation: 'Order replacement bearings and schedule maintenance',\n timeframe: '3-5 days',\n },\n {\n id: 'AI-003',\n type: 'demand_forecast',\n equipment: 'PADD III Market',\n prediction: 'Diesel demand expected to increase 12% next quarter',\n confidence: 87,\n severity: 'medium',\n recommendation: 'Increase ULSD production allocation by 15,000 bbl/d',\n timeframe: '30-90 days',\n },\n {\n id: 'AI-004',\n type: 'optimization',\n equipment: 'FCC Unit',\n prediction: 'Catalyst regeneration cycle can be optimized for 3.2% yield improvement',\n confidence: 89,\n severity: 'medium',\n recommendation: 'Adjust regeneration temperature profile per AI model output',\n timeframe: '7-14 days',\n },\n ],\n\n marketplace: [\n {\n id: 'MKT-001',\n name: 'WTI Crude Oil',\n category: 'Crude Oil',\n pricePerBarrel: 78.45,\n stockBarrels: 12_000_000,\n minOrderBarrels: 10_000,\n apiGravity: '39.6 API',\n sulfurContentPct: 0.24,\n rating: 4.9,\n certifications: ['NYMEX Deliverable', 'Pipeline Quality'],\n },\n {\n id: 'MKT-002',\n name: 'Brent Crude Oil',\n category: 'Crude Oil',\n pricePerBarrel: 82.1,\n stockBarrels: 8_500_000,\n minOrderBarrels: 25_000,\n apiGravity: '38.3 API',\n sulfurContentPct: 0.37,\n rating: 4.8,\n certifications: ['ICE Deliverable', 'Dated Brent'],\n },\n {\n id: 'MKT-003',\n name: 'ULSD (Ultra-Low Sulfur Diesel)',\n category: 'Refined Products',\n pricePerBarrel: 98.2,\n stockBarrels: 3_200_000,\n minOrderBarrels: 5_000,\n apiGravity: '35.0 API',\n sulfurContentPct: 0.0015,\n rating: 4.9,\n certifications: ['EPA Tier 3', 'ASTM D975'],\n },\n {\n id: 'MKT-004',\n name: 'Natural Gas (Henry Hub)',\n category: 'Natural Gas',\n pricePerBarrel: 3.28,\n stockBarrels: 45_000_000,\n minOrderBarrels: 100_000,\n apiGravity: 'N/A',\n sulfurContentPct: 0,\n rating: 4.7,\n certifications: ['Pipeline Quality', 'FERC Approved'],\n },\n {\n id: 'MKT-005',\n name: 'Jet Fuel (Jet A-1)',\n category: 'Aviation Fuel',\n pricePerBarrel: 105.5,\n stockBarrels: 1_800_000,\n minOrderBarrels: 10_000,\n apiGravity: '43.0 API',\n sulfurContentPct: 0.003,\n rating: 5.0,\n certifications: ['ASTM D1655', 'DEF STAN 91-91'],\n },\n {\n id: 'MKT-006',\n name: 'Permian Basin Crude',\n category: 'Crude Oil',\n pricePerBarrel: 76.8,\n stockBarrels: 5_400_000,\n minOrderBarrels: 10_000,\n apiGravity: '41.2 API',\n sulfurContentPct: 0.18,\n rating: 4.6,\n certifications: ['Pipeline Quality', 'Midland Grade'],\n },\n ],\n\n setSelectedView: (view) => set({ selectedView: view }),\n setWorkItems: (items) => set({ workItems: items }),\n}));\n"],"mappings":";;AA8KA,IAAa,IAAwB,GAA4B,OAAS;CACxE,SAAS;EACP;GAAE,OAAO;GAAoB,OAAO;GAAY,OAAO;GAAS;EAChE;GAAE,OAAO;GAAuB,OAAO;GAAc,OAAO;GAAS;EACrE;GAAE,OAAO;GAAwB,OAAO;GAAS,OAAO;GAAS;EACjE;GAAE,OAAO;GAAa,OAAO;GAAU,OAAO;GAAS;EACxD;CACD,WAAW;EACT;GACE,IAAI;GACJ,OAAO;GACP,QAAQ;GACR,OAAO;GACP,WAAW;GACZ;EACD;GACE,IAAI;GACJ,OAAO;GACP,QAAQ;GACR,OAAO;GACP,WAAW;GACZ;EACD;GACE,IAAI;GACJ,OAAO;GACP,QAAQ;GACR,OAAO;GACP,WAAW;GACZ;EACD;GACE,IAAI;GACJ,OAAO;GACP,QAAQ;GACR,OAAO;GACP,WAAW;GACZ;EACF;CACD,cAAc;CAEd,YAAY;EACV;GACE,IAAI;GACJ,MAAM;GACN,MAAM;G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;GAClB,QAAQ;GACR,gBAAgB,CAAC,mBAAmB,cAAc;GACnD;EACD;GACE,IAAI;GACJ,MAAM;GACN,UAAU;GACV,gBAAgB;GAChB,cAAc;GACd,iBAAiB;GACjB,YAAY;GACZ,kBAAkB;GAClB,QAAQ;GACR,gBAAgB,CAAC,cAAc,YAAY;GAC5C;EACD;GACE,IAAI;GACJ,MAAM;GACN,UAAU;GACV,gBAAgB;GAChB,cAAc;GACd,iBAAiB;GACjB,YAAY;GACZ,kBAAkB;GAClB,QAAQ;GACR,gBAAgB,CAAC,oBAAoB,gBAAgB;GACtD;EACD;GACE,IAAI;GACJ,MAAM;GACN,UAAU;GACV,gBAAgB;GAChB,cAAc;GACd,iBAAiB;GACjB,YAAY;GACZ,kBAAkB;GAClB,QAAQ;GACR,gBAAgB,CAAC,cAAc,iBAAiB;GACjD;EACD;GACE,IAAI;GACJ,MAAM;GACN,UAAU;GACV,gBAAgB;GAChB,cAAc;GACd,iBAAiB;GACjB,YAAY;GACZ,kBAAkB;GAClB,QAAQ;GACR,gBAAgB,CAAC,oBAAoB,gBAAgB;GACtD;EACF;CAED,kBAAkB,MAAS,EAAI,EAAE,cAAc,GAAM,CAAC;CACtD,eAAe,MAAU,EAAI,EAAE,WAAW,GAAO,CAAC;CACnD,EAAE"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region src/theglobalfuel/utils/i18n.ts
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
return t ? e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
4
|
-
let r = t[n];
|
|
5
|
-
return r === void 0 ? `{{${n}}}` : String(r);
|
|
6
|
-
}) : e;
|
|
7
|
-
}
|
|
8
|
-
function t(t, n, r, i) {
|
|
9
|
-
let a = t(n, i);
|
|
10
|
-
return a === n ? e(r, i) : a;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { t as tWithFallback };
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=i18n.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","names":[],"sources":["../../../src/theglobalfuel/utils/i18n.ts"],"sourcesContent":["import type { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\ntype TranslationParams = Record<string, string | number>;\n\nfunction interpolateFallback(fallback: string, params?: TranslationParams): string {\n if (!params) {\n return fallback;\n }\n\n return fallback.replace(/\\{\\{\\s*(\\w+)\\s*\\}\\}/g, (_, key: string) => {\n const value = params[key];\n return value === undefined ? `{{${key}}}` : String(value);\n });\n}\n\nexport function tWithFallback(\n t: I18nContextValue['t'],\n key: string,\n fallback: string,\n params?: TranslationParams\n): string {\n const translated = t(key, params);\n if (translated === key) {\n return interpolateFallback(fallback, params);\n }\n\n return translated;\n}\n"],"mappings":";AAIA,SAAS,EAAoB,GAAkB,GAAoC;AAKjF,QAJK,IAIE,EAAS,QAAQ,yBAAyB,GAAG,MAAgB;EAClE,IAAM,IAAQ,EAAO;AACrB,SAAO,MAAU,KAAA,IAAY,KAAK,EAAI,MAAM,OAAO,EAAM;GACzD,GANO;;AASX,SAAgB,EACd,GACA,GACA,GACA,GACQ;CACR,IAAM,IAAa,EAAE,GAAK,EAAO;AAKjC,QAJI,MAAe,IACV,EAAoB,GAAU,EAAO,GAGvC"}
|