@burdenoff/microfe-movethewheels 2026.930.4 → 2026.1010.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/MoveTheWheelsRoot.js +177 -102
- package/dist/MoveTheWheelsRoutes.js +55 -11
- package/dist/_virtual/_rolldown/runtime.js +1 -1
- package/dist/components/ContainerEvidencePicker.js +143 -0
- package/dist/components/FreeTimeAgreementForm.js +496 -0
- package/dist/components/ReturnInstructionForm.js +108 -0
- package/dist/components/ReuseControls.js +91 -0
- package/dist/components/ReusePermissionForm.js +114 -0
- package/dist/components/ReuseProposalForm.js +455 -0
- package/dist/components/ReuseSourceFields.js +78 -0
- package/dist/components/consolidation/ConsolidationHistory.js +244 -0
- package/dist/components/consolidation/ConsolidationLotEditor.js +133 -0
- package/dist/components/consolidation/ConsolidationManifestWorkbench.js +143 -0
- package/dist/components/consolidation/ConsolidationPlanForm.js +172 -0
- package/dist/components/consolidation/ConsolidationPlanWorkbench.js +321 -0
- package/dist/components/consolidation/ConsolidationReportForm.js +94 -0
- package/dist/components/consolidation/ConsolidationReportsWorkbench.js +195 -0
- package/dist/components/consolidation/ConsolidationSummary.js +76 -0
- package/dist/components/consolidation/OriginalConsolidationHistory.js +112 -0
- package/dist/components/freight-cost/FreightDraftForm.js +213 -0
- package/dist/components/freight-cost/FreightFields.js +70 -0
- package/dist/components/freight-cost/FreightFxEditor.js +90 -0
- package/dist/components/freight-cost/FreightHistory.js +164 -0
- package/dist/components/freight-cost/FreightLineEditor.js +191 -0
- package/dist/components/freight-cost/FreightScopeEditor.js +72 -0
- package/dist/components/freight-cost/FreightTotals.js +66 -0
- package/dist/components/logistics-procedure/ProcedureDecisionForm.js +197 -0
- package/dist/components/logistics-procedure/ProcedureFields.js +31 -0
- package/dist/components/logistics-procedure/ProcedureHistory.js +177 -0
- package/dist/components/logistics-procedure/ProcedurePolicyForm.js +227 -0
- package/dist/components/logistics-procedure/ProcedurePolicyWorkbench.js +155 -0
- package/dist/components/logistics-procedure/ProcedureReviewWorkbench.js +221 -0
- package/dist/components/logistics-procedure/ProcedureRunWorkbench.js +190 -0
- package/dist/components/logistics-procedure/ProcedureSubjectPicker.js +130 -0
- package/dist/components/pending-pick/PendingPickDraft.js +84 -0
- package/dist/components/pending-pick/PendingPickHistory.js +113 -0
- package/dist/components/pending-pick/PickCapture.js +166 -0
- package/dist/components/pending-pick/PickLineSelection.js +111 -0
- package/dist/components/stock-binding/StockAssessmentDraft.js +48 -0
- package/dist/components/stock-binding/StockAssessmentHistory.js +61 -0
- package/dist/components/stock-binding/StockAssessmentSummary.js +199 -0
- package/dist/components/stock-binding/StockFactForm.js +232 -0
- package/dist/components/stock-observation/StockIssueForm.js +148 -0
- package/dist/components/stock-observation/StockIssueHistory.js +116 -0
- package/dist/components/stock-observation/StockIssueReadPanel.js +70 -0
- package/dist/components/trip-utilization/TripReportForm.js +118 -0
- package/dist/components/trip-utilization/TripReportHistory.js +54 -0
- package/dist/components/trip-utilization/TripReportSummary.js +216 -0
- package/dist/components/trip-utilization/TripSegmentFields.js +166 -0
- package/dist/generated/consolidation-operations.d.ts +1060 -0
- package/dist/generated/container-condition-operations.d.ts +868 -0
- package/dist/generated/container-operations.d.ts +356 -0
- package/dist/generated/empty-reuse-operations.d.ts +1578 -0
- package/dist/generated/free-time-operations.d.ts +938 -0
- package/dist/generated/freight-cost-operations.d.ts +716 -0
- package/dist/generated/logistics-procedure-operations.d.ts +938 -0
- package/dist/generated/pending-pick-operations.d.ts +1969 -0
- package/dist/generated/stock-binding-operations.d.ts +930 -0
- package/dist/generated/stock-observation-operations.d.ts +476 -0
- package/dist/generated/trip-utilization-operations.d.ts +651 -0
- package/dist/generated/wspace-operations.d.ts +143 -50
- package/dist/hooks/useConsolidationAction.js +119 -0
- package/dist/hooks/useContainerCondition.js +105 -0
- package/dist/hooks/useContainerLifecycle.js +192 -0
- package/dist/hooks/useEmptyReuseAction.js +45 -0
- package/dist/hooks/useFreightRecoveryAction.js +117 -0
- package/dist/hooks/useInventory.js +12 -1
- package/dist/hooks/useProcedureAction.js +119 -0
- package/dist/hooks/useProcedureSelection.js +53 -0
- package/dist/hooks/useReuseRecoveryAction.js +116 -0
- package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +10 -0
- package/dist/movethewheels/components/FreeTimeAgreementForm.d.ts +14 -0
- package/dist/movethewheels/components/ReturnInstructionForm.d.ts +8 -0
- package/dist/movethewheels/components/ReuseControls.d.ts +42 -0
- package/dist/movethewheels/components/ReusePermissionForm.d.ts +9 -0
- package/dist/movethewheels/components/ReuseProposalForm.d.ts +11 -0
- package/dist/movethewheels/components/ReuseSourceFields.d.ts +9 -0
- package/dist/movethewheels/components/consolidation/ConsolidationHistory.d.ts +13 -0
- package/dist/movethewheels/components/consolidation/ConsolidationLotEditor.d.ts +6 -0
- package/dist/movethewheels/components/consolidation/ConsolidationManifestWorkbench.d.ts +8 -0
- package/dist/movethewheels/components/consolidation/ConsolidationPlanForm.d.ts +8 -0
- package/dist/movethewheels/components/consolidation/ConsolidationPlanWorkbench.d.ts +5 -0
- package/dist/movethewheels/components/consolidation/ConsolidationReportForm.d.ts +9 -0
- package/dist/movethewheels/components/consolidation/ConsolidationReportsWorkbench.d.ts +7 -0
- package/dist/movethewheels/components/consolidation/ConsolidationSummary.d.ts +6 -0
- package/dist/movethewheels/components/consolidation/OriginalConsolidationHistory.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightFields.d.ts +23 -0
- package/dist/movethewheels/components/freight-cost/FreightFxEditor.d.ts +6 -0
- package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +5 -0
- package/dist/movethewheels/components/freight-cost/FreightLineEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightScopeEditor.d.ts +6 -0
- package/dist/movethewheels/components/freight-cost/FreightTotals.d.ts +6 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureDecisionForm.d.ts +20 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureFields.d.ts +17 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureHistory.d.ts +7 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyForm.d.ts +10 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.d.ts +5 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.d.ts +5 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.d.ts +6 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.d.ts +7 -0
- package/dist/movethewheels/components/pending-pick/PendingPickDraft.d.ts +16 -0
- package/dist/movethewheels/components/pending-pick/PendingPickHistory.d.ts +5 -0
- package/dist/movethewheels/components/pending-pick/PickCapture.d.ts +6 -0
- package/dist/movethewheels/components/pending-pick/PickLineSelection.d.ts +17 -0
- package/dist/movethewheels/components/stock-binding/StockAssessmentDraft.d.ts +13 -0
- package/dist/movethewheels/components/stock-binding/StockAssessmentHistory.d.ts +18 -0
- package/dist/movethewheels/components/stock-binding/StockAssessmentSummary.d.ts +9 -0
- package/dist/movethewheels/components/stock-binding/StockFactForm.d.ts +6 -0
- package/dist/movethewheels/components/stock-observation/StockIssueForm.d.ts +7 -0
- package/dist/movethewheels/components/stock-observation/StockIssueHistory.d.ts +7 -0
- package/dist/movethewheels/components/stock-observation/StockIssueReadPanel.d.ts +5 -0
- package/dist/movethewheels/components/trip-utilization/TripReportForm.d.ts +6 -0
- package/dist/movethewheels/components/trip-utilization/TripReportHistory.d.ts +14 -0
- package/dist/movethewheels/components/trip-utilization/TripReportSummary.d.ts +5 -0
- package/dist/movethewheels/components/trip-utilization/TripSegmentFields.d.ts +9 -0
- package/dist/movethewheels/hooks/useConsolidationAction.d.ts +19 -0
- package/dist/movethewheels/hooks/useContainerCondition.d.ts +21 -0
- package/dist/movethewheels/hooks/useContainerLifecycle.d.ts +40 -0
- package/dist/movethewheels/hooks/useEmptyReuseAction.d.ts +14 -0
- package/dist/movethewheels/hooks/useFreightRecoveryAction.d.ts +23 -0
- package/dist/movethewheels/hooks/useProcedureAction.d.ts +18 -0
- package/dist/movethewheels/hooks/useProcedureSelection.d.ts +51 -0
- package/dist/movethewheels/hooks/useReuseRecoveryAction.d.ts +18 -0
- package/dist/movethewheels/pages/ConsolidationPage.d.ts +1 -0
- package/dist/movethewheels/pages/ContainerConditionPage.d.ts +1 -0
- package/dist/movethewheels/pages/ContainersPage.d.ts +2 -0
- package/dist/movethewheels/pages/EmptyReusePage.d.ts +1 -0
- package/dist/movethewheels/pages/FreeTimePage.d.ts +1 -0
- package/dist/movethewheels/pages/FreightEstimatePage.d.ts +1 -0
- package/dist/movethewheels/pages/LogisticsProceduresPage.d.ts +1 -0
- package/dist/movethewheels/pages/PendingPickPage.d.ts +1 -0
- package/dist/movethewheels/pages/StockBindingPage.d.ts +1 -0
- package/dist/movethewheels/pages/StockObservationsPage.d.ts +1 -0
- package/dist/movethewheels/pages/TripUtilizationPage.d.ts +1 -0
- package/dist/movethewheels/utils/consolidationHistoryTarget.d.ts +12 -0
- package/dist/movethewheels/utils/consolidationInput.d.ts +15 -0
- package/dist/movethewheels/utils/consolidationLot.d.ts +3 -0
- package/dist/movethewheels/utils/consolidationPins.d.ts +20 -0
- package/dist/movethewheels/utils/consolidationRecovery.d.ts +5 -0
- package/dist/movethewheels/utils/consolidationReportHead.d.ts +5 -0
- package/dist/movethewheels/utils/freeTimeDate.d.ts +1 -0
- package/dist/movethewheels/utils/freightAcknowledgement.d.ts +2 -0
- package/dist/movethewheels/utils/freightDraft.d.ts +36 -0
- package/dist/movethewheels/utils/freightRecovery.d.ts +5 -0
- package/dist/movethewheels/utils/graphqlClient.d.ts +2 -1
- package/dist/movethewheels/utils/pendingPickDraft.d.ts +8 -0
- package/dist/movethewheels/utils/procedureInput.d.ts +18 -0
- package/dist/movethewheels/utils/procedureRecovery.d.ts +5 -0
- package/dist/movethewheels/utils/reuseAttempt.d.ts +7 -0
- package/dist/movethewheels/utils/reuseForm.d.ts +6 -0
- package/dist/movethewheels/utils/reuseRecovery.d.ts +26 -0
- package/dist/movethewheels/utils/stockBindingForm.d.ts +23 -0
- package/dist/movethewheels/utils/stockBindingLabels.d.ts +10 -0
- package/dist/movethewheels/utils/stockObservationForm.d.ts +5 -0
- package/dist/movethewheels/utils/tripDraftContext.d.ts +25 -0
- package/dist/movethewheels/utils/tripUtilizationForm.d.ts +6 -0
- package/dist/node_modules/@react-leaflet/core/lib/component.js +5 -5
- package/dist/node_modules/fast-equals/dist/es/index.js +87 -74
- package/dist/node_modules/leaflet/dist/leaflet-src.js +8 -5
- package/dist/node_modules/lodash/_Stack.js +2 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +35 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +22 -0
- package/dist/node_modules/react-leaflet/lib/MapContainer.js +3 -3
- package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
- package/dist/node_modules/recharts/es6/cartesian/Area.js +13 -13
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +9 -9
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +12 -12
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +7 -7
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +13 -13
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +4 -4
- package/dist/node_modules/recharts/es6/cartesian/Line.js +10 -10
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +4 -4
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +3 -3
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -1
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +22 -22
- package/dist/node_modules/recharts/es6/component/Cursor.js +1 -1
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +11 -11
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +6 -6
- package/dist/node_modules/recharts/es6/component/Label.js +14 -14
- package/dist/node_modules/recharts/es6/component/LabelList.js +6 -6
- package/dist/node_modules/recharts/es6/component/Legend.js +5 -5
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +3 -3
- package/dist/node_modules/recharts/es6/component/Text.js +2 -2
- package/dist/node_modules/recharts/es6/component/Tooltip.js +3 -3
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +2 -2
- package/dist/node_modules/recharts/es6/container/Layer.js +2 -2
- package/dist/node_modules/recharts/es6/container/Surface.js +2 -2
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +2 -2
- package/dist/node_modules/recharts/es6/polar/Pie.js +13 -13
- package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +8 -8
- package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +6 -6
- package/dist/node_modules/recharts/es6/shape/Cross.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Curve.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Dot.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Polygon.js +4 -4
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +4 -4
- package/dist/node_modules/recharts/es6/shape/Sector.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +4 -4
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +9 -9
- package/dist/node_modules/recharts/es6/util/BarUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +2 -2
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +1 -1
- package/dist/node_modules/recharts/es6/util/types.js +1 -1
- package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.development.js +2 -2
- package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.production.min.js +2 -2
- package/dist/node_modules/{react-is → recharts/node_modules/react-is}/index.js +2 -2
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +97 -18
- package/dist/node_modules/zustand/esm/middleware.js +2 -2
- package/dist/pages/ConsolidationPage.js +76 -0
- package/dist/pages/ContainerConditionPage.js +972 -0
- package/dist/pages/ContainersPage.js +522 -0
- package/dist/pages/EmptyReusePage.js +777 -0
- package/dist/pages/FreeTimePage.js +657 -0
- package/dist/pages/FreightEstimatePage.js +284 -0
- package/dist/pages/InventoryPage.js +77 -73
- package/dist/pages/LogisticsProceduresPage.js +100 -0
- package/dist/pages/PendingPickPage.js +155 -0
- package/dist/pages/StockBindingPage.js +236 -0
- package/dist/pages/StockObservationsPage.js +168 -0
- package/dist/pages/TripUtilizationPage.js +227 -0
- package/dist/src/generated/consolidation-operations.js +505 -0
- package/dist/src/generated/container-condition-operations.js +208 -0
- package/dist/src/generated/container-operations.js +101 -0
- package/dist/src/generated/empty-reuse-operations.js +749 -0
- package/dist/src/generated/free-time-operations.js +235 -0
- package/dist/src/generated/freight-cost-operations.js +325 -0
- package/dist/src/generated/logistics-procedure-operations.js +362 -0
- package/dist/src/generated/pending-pick-operations.js +1128 -0
- package/dist/src/generated/stock-binding-operations.js +175 -0
- package/dist/src/generated/stock-observation-operations.js +93 -0
- package/dist/src/generated/trip-utilization-operations.js +140 -0
- package/dist/src/generated/wspace-operations.js +708 -0
- package/dist/utils/consolidationHistoryTarget.js +27 -0
- package/dist/utils/consolidationInput.js +21 -0
- package/dist/utils/consolidationLot.js +29 -0
- package/dist/utils/consolidationPins.js +13 -0
- package/dist/utils/consolidationRecovery.js +40 -0
- package/dist/utils/consolidationReportHead.js +18 -0
- package/dist/utils/freeTimeDate.js +26 -0
- package/dist/utils/freightAcknowledgement.js +8 -0
- package/dist/utils/freightDraft.js +125 -0
- package/dist/utils/freightRecovery.js +36 -0
- package/dist/utils/graphqlClient.js +28 -28
- package/dist/utils/pendingPickDraft.js +46 -0
- package/dist/utils/procedureInput.js +43 -0
- package/dist/utils/procedureRecovery.js +42 -0
- package/dist/utils/reuseAttempt.js +20 -0
- package/dist/utils/reuseForm.js +25 -0
- package/dist/utils/reuseRecovery.js +71 -0
- package/dist/utils/stockBindingForm.js +142 -0
- package/dist/utils/stockBindingLabels.js +23 -0
- package/dist/utils/stockObservationForm.js +55 -0
- package/dist/utils/tripDraftContext.js +19 -0
- package/dist/utils/tripUtilizationForm.js +60 -0
- package/package.json +19 -5
- package/src/generated/consolidation-operations.ts +1138 -0
- package/src/generated/container-condition-operations.ts +771 -0
- package/src/generated/container-operations.ts +376 -0
- package/src/generated/empty-reuse-operations.ts +1648 -0
- package/src/generated/free-time-operations.ts +814 -0
- package/src/generated/freight-cost-operations.ts +753 -0
- package/src/generated/logistics-procedure-operations.ts +1047 -0
- package/src/generated/pending-pick-operations.ts +1508 -0
- package/src/generated/stock-binding-operations.ts +631 -0
- package/src/generated/stock-observation-operations.ts +373 -0
- package/src/generated/trip-utilization-operations.ts +500 -0
- package/src/generated/wspace-operations.ts +116 -0
- package/src/movethewheels/MoveTheWheelsRoot.tsx +79 -0
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +22 -0
- package/src/movethewheels/components/ContainerEvidencePicker.tsx +146 -0
- package/src/movethewheels/components/FreeTimeAgreementForm.tsx +483 -0
- package/src/movethewheels/components/ReturnInstructionForm.tsx +102 -0
- package/src/movethewheels/components/ReuseControls.tsx +138 -0
- package/src/movethewheels/components/ReusePermissionForm.tsx +123 -0
- package/src/movethewheels/components/ReuseProposalForm.tsx +484 -0
- package/src/movethewheels/components/ReuseSourceFields.tsx +80 -0
- package/src/movethewheels/components/consolidation/ConsolidationHistory.tsx +159 -0
- package/src/movethewheels/components/consolidation/ConsolidationLotEditor.tsx +144 -0
- package/src/movethewheels/components/consolidation/ConsolidationManifestWorkbench.tsx +168 -0
- package/src/movethewheels/components/consolidation/ConsolidationPlanForm.tsx +185 -0
- package/src/movethewheels/components/consolidation/ConsolidationPlanWorkbench.tsx +395 -0
- package/src/movethewheels/components/consolidation/ConsolidationReportForm.tsx +124 -0
- package/src/movethewheels/components/consolidation/ConsolidationReportsWorkbench.tsx +233 -0
- package/src/movethewheels/components/consolidation/ConsolidationSummary.tsx +84 -0
- package/src/movethewheels/components/consolidation/OriginalConsolidationHistory.tsx +133 -0
- package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +224 -0
- package/src/movethewheels/components/freight-cost/FreightFields.tsx +91 -0
- package/src/movethewheels/components/freight-cost/FreightFxEditor.tsx +98 -0
- package/src/movethewheels/components/freight-cost/FreightHistory.tsx +91 -0
- package/src/movethewheels/components/freight-cost/FreightLineEditor.tsx +192 -0
- package/src/movethewheels/components/freight-cost/FreightScopeEditor.tsx +64 -0
- package/src/movethewheels/components/freight-cost/FreightTotals.tsx +68 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureDecisionForm.tsx +204 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureFields.tsx +43 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureHistory.tsx +102 -0
- package/src/movethewheels/components/logistics-procedure/ProcedurePolicyForm.tsx +226 -0
- package/src/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.tsx +174 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.tsx +278 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.tsx +292 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.tsx +111 -0
- package/src/movethewheels/components/pending-pick/PendingPickDraft.tsx +82 -0
- package/src/movethewheels/components/pending-pick/PendingPickHistory.tsx +93 -0
- package/src/movethewheels/components/pending-pick/PickCapture.tsx +70 -0
- package/src/movethewheels/components/pending-pick/PickLineSelection.tsx +130 -0
- package/src/movethewheels/components/stock-binding/StockAssessmentDraft.tsx +52 -0
- package/src/movethewheels/components/stock-binding/StockAssessmentHistory.tsx +56 -0
- package/src/movethewheels/components/stock-binding/StockAssessmentSummary.tsx +108 -0
- package/src/movethewheels/components/stock-binding/StockFactForm.tsx +186 -0
- package/src/movethewheels/components/stock-observation/StockIssueForm.tsx +103 -0
- package/src/movethewheels/components/stock-observation/StockIssueHistory.tsx +96 -0
- package/src/movethewheels/components/stock-observation/StockIssueReadPanel.tsx +72 -0
- package/src/movethewheels/components/trip-utilization/TripReportForm.tsx +116 -0
- package/src/movethewheels/components/trip-utilization/TripReportHistory.tsx +51 -0
- package/src/movethewheels/components/trip-utilization/TripReportSummary.tsx +127 -0
- package/src/movethewheels/components/trip-utilization/TripSegmentFields.tsx +118 -0
- package/src/movethewheels/hooks/useConsolidationAction.ts +196 -0
- package/src/movethewheels/hooks/useContainerCondition.ts +129 -0
- package/src/movethewheels/hooks/useContainerLifecycle.ts +291 -0
- package/src/movethewheels/hooks/useEmptyReuseAction.ts +72 -0
- package/src/movethewheels/hooks/useFreightRecoveryAction.ts +201 -0
- package/src/movethewheels/hooks/useInventory.ts +2 -20
- package/src/movethewheels/hooks/useProcedureAction.ts +196 -0
- package/src/movethewheels/hooks/useProcedureSelection.ts +75 -0
- package/src/movethewheels/hooks/useReuseRecoveryAction.ts +192 -0
- package/src/movethewheels/pages/ConsolidationPage.tsx +70 -0
- package/src/movethewheels/pages/ContainerConditionPage.tsx +959 -0
- package/src/movethewheels/pages/ContainersPage.tsx +490 -0
- package/src/movethewheels/pages/EmptyReusePage.tsx +823 -0
- package/src/movethewheels/pages/FreeTimePage.tsx +720 -0
- package/src/movethewheels/pages/FreightEstimatePage.tsx +353 -0
- package/src/movethewheels/pages/InventoryPage.tsx +16 -2
- package/src/movethewheels/pages/LogisticsProceduresPage.tsx +86 -0
- package/src/movethewheels/pages/PendingPickPage.tsx +226 -0
- package/src/movethewheels/pages/StockBindingPage.tsx +299 -0
- package/src/movethewheels/pages/StockObservationsPage.tsx +181 -0
- package/src/movethewheels/pages/TripUtilizationPage.tsx +315 -0
- package/src/movethewheels/utils/consolidationHistoryTarget.ts +39 -0
- package/src/movethewheels/utils/consolidationInput.ts +70 -0
- package/src/movethewheels/utils/consolidationLot.ts +24 -0
- package/src/movethewheels/utils/consolidationPins.ts +52 -0
- package/src/movethewheels/utils/consolidationRecovery.ts +88 -0
- package/src/movethewheels/utils/consolidationReportHead.ts +29 -0
- package/src/movethewheels/utils/freeTimeDate.ts +31 -0
- package/src/movethewheels/utils/freightAcknowledgement.ts +31 -0
- package/src/movethewheels/utils/freightDraft.ts +170 -0
- package/src/movethewheels/utils/freightRecovery.ts +79 -0
- package/src/movethewheels/utils/graphqlClient.ts +14 -5
- package/src/movethewheels/utils/pendingPickDraft.ts +61 -0
- package/src/movethewheels/utils/procedureInput.ts +98 -0
- package/src/movethewheels/utils/procedureRecovery.ts +92 -0
- package/src/movethewheels/utils/reuseAttempt.ts +29 -0
- package/src/movethewheels/utils/reuseForm.ts +30 -0
- package/src/movethewheels/utils/reuseRecovery.ts +151 -0
- package/src/movethewheels/utils/stockBindingForm.ts +209 -0
- package/src/movethewheels/utils/stockBindingLabels.ts +41 -0
- package/src/movethewheels/utils/stockObservationForm.ts +73 -0
- package/src/movethewheels/utils/tripDraftContext.ts +61 -0
- package/src/movethewheels/utils/tripUtilizationForm.ts +105 -0
- package/src/operations/condition/container-condition.graphql +41 -0
- package/src/operations/consolidation/consolidation.graphql +490 -0
- package/src/operations/container/container-lifecycle.graphql +80 -0
- package/src/operations/empty-reuse/empty-reuse.graphql +737 -0
- package/src/operations/free-time/free-time.graphql +47 -0
- package/src/operations/freight-cost/freight.graphql +6 -0
- package/src/operations/logistics-procedure/procedure.graphql +15 -0
- package/src/operations/pending-pick/pending-pick.graphql +1122 -0
- package/src/operations/stock-binding/stock-binding.graphql +160 -0
- package/src/operations/stock-observation/stock-observation.graphql +20 -0
- package/src/operations/trip-utilization/trip-utilization.graphql +126 -0
- package/src/operations/wspace/container-evidence.graphql +6 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Button as e } from "../ui.js";
|
|
2
|
+
import { ReusePager as t, ReuseState as n, reuseCard as r } from "../ReuseControls.js";
|
|
3
|
+
import { TripReportSummary as i } from "./TripReportSummary.js";
|
|
4
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
//#region src/movethewheels/components/trip-utilization/TripReportHistory.tsx
|
|
6
|
+
function c({ query: c, offset: l, onPage: u, selected: d, onSelect: f, busy: p }) {
|
|
7
|
+
let m = c.data?.mtwTripUtilizationReportPage;
|
|
8
|
+
return /* @__PURE__ */ s("section", {
|
|
9
|
+
className: r,
|
|
10
|
+
"aria-label": "Historical utilization reports",
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ o("h2", {
|
|
13
|
+
className: "text-lg font-semibold",
|
|
14
|
+
children: "Immutable report history"
|
|
15
|
+
}),
|
|
16
|
+
/* @__PURE__ */ o(n, { ...c }),
|
|
17
|
+
m?.items.length === 0 && /* @__PURE__ */ o("p", { children: "No reports recorded for this route." }),
|
|
18
|
+
m?.items.map((t) => /* @__PURE__ */ s("div", {
|
|
19
|
+
className: "flex flex-wrap items-center gap-3 rounded border p-3",
|
|
20
|
+
children: [/* @__PURE__ */ s("p", { children: [
|
|
21
|
+
"Trip ",
|
|
22
|
+
t.tripId,
|
|
23
|
+
" — ",
|
|
24
|
+
t.basis,
|
|
25
|
+
"; ",
|
|
26
|
+
t.intervalFrom,
|
|
27
|
+
"–",
|
|
28
|
+
t.intervalUntil,
|
|
29
|
+
"; recorded ",
|
|
30
|
+
t.recordedAt,
|
|
31
|
+
"."
|
|
32
|
+
] }), /* @__PURE__ */ o(e, {
|
|
33
|
+
type: "button",
|
|
34
|
+
variant: "outline",
|
|
35
|
+
disabled: p,
|
|
36
|
+
onClick: () => f(t),
|
|
37
|
+
children: "Inspect report"
|
|
38
|
+
})]
|
|
39
|
+
}, t.id)),
|
|
40
|
+
/* @__PURE__ */ o(t, {
|
|
41
|
+
page: m,
|
|
42
|
+
offset: l,
|
|
43
|
+
onChange: u,
|
|
44
|
+
busy: p || c.loading
|
|
45
|
+
}),
|
|
46
|
+
d && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("p", {
|
|
47
|
+
className: "text-sm",
|
|
48
|
+
children: "Selected immutable report stays pinned when you change history pages."
|
|
49
|
+
}), /* @__PURE__ */ o(i, { report: d })] })
|
|
50
|
+
]
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { c as TripReportHistory };
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
//#region src/movethewheels/components/trip-utilization/TripReportSummary.tsx
|
|
3
|
+
var n = new Intl.NumberFormat(void 0, { maximumFractionDigits: 4 }), r = {
|
|
4
|
+
NO_SEGMENTS: "No segments supplied",
|
|
5
|
+
PARTIAL_TRIP: "Operator declared partial coverage",
|
|
6
|
+
DISTANCE_UNKNOWN: "At least one segment has unknown distance",
|
|
7
|
+
ZERO_DISTANCE: "No positive distance denominator",
|
|
8
|
+
SEGMENT_FACTS_UNKNOWN: "Required segment facts are unknown"
|
|
9
|
+
};
|
|
10
|
+
function i(e, t) {
|
|
11
|
+
return e == null ? "UNKNOWN" : `${n.format(e)} ${t}`;
|
|
12
|
+
}
|
|
13
|
+
function a({ title: n, metric: a }) {
|
|
14
|
+
return /* @__PURE__ */ t("article", {
|
|
15
|
+
className: "space-y-2 rounded border p-4",
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ e("h3", {
|
|
18
|
+
className: "font-semibold",
|
|
19
|
+
children: n
|
|
20
|
+
}),
|
|
21
|
+
/* @__PURE__ */ e("p", { children: a.status === "KNOWN" ? i(a.percentage, "%") : `UNKNOWN — ${a.reason ? r[a.reason] : "No valid percentage"}` }),
|
|
22
|
+
/* @__PURE__ */ t("p", {
|
|
23
|
+
className: "text-sm",
|
|
24
|
+
children: [
|
|
25
|
+
"Distance with sufficient facts for this metric: ",
|
|
26
|
+
i(a.knownDistanceKm, "km"),
|
|
27
|
+
"; unknown segment facts: ",
|
|
28
|
+
a.unknownSegmentCount,
|
|
29
|
+
"."
|
|
30
|
+
]
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function o({ report: n }) {
|
|
36
|
+
let r = n.summary;
|
|
37
|
+
return /* @__PURE__ */ t("article", {
|
|
38
|
+
className: "min-w-0 space-y-4 break-words rounded-lg border p-5",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ t("h3", {
|
|
41
|
+
className: "font-semibold",
|
|
42
|
+
children: [
|
|
43
|
+
"Trip ",
|
|
44
|
+
n.tripId,
|
|
45
|
+
" — ",
|
|
46
|
+
n.basis
|
|
47
|
+
]
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ t("p", { children: [
|
|
50
|
+
"Interval ",
|
|
51
|
+
n.intervalFrom,
|
|
52
|
+
"–",
|
|
53
|
+
n.intervalUntil,
|
|
54
|
+
". Operator-declared",
|
|
55
|
+
" ",
|
|
56
|
+
n.declaredCoverage,
|
|
57
|
+
"; ",
|
|
58
|
+
r.segmentCount,
|
|
59
|
+
" segments,",
|
|
60
|
+
" ",
|
|
61
|
+
r.unknownFactsSegmentCount,
|
|
62
|
+
" with unknown/contradictory facts."
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ t("p", { children: [
|
|
65
|
+
"Known supplied distance: ",
|
|
66
|
+
i(r.distanceCoverage.knownDistanceKm, "km"),
|
|
67
|
+
"; declared whole-interval distance: ",
|
|
68
|
+
i(r.distanceCoverage.totalDistanceKm, "km"),
|
|
69
|
+
". Unknown-distance segments: ",
|
|
70
|
+
r.distanceCoverage.unknownSegmentCount,
|
|
71
|
+
"."
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ t("div", {
|
|
74
|
+
className: "grid gap-3 md:grid-cols-3",
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ e(a, {
|
|
77
|
+
title: "Loaded-distance percentage",
|
|
78
|
+
metric: r.loadedDistance
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ e(a, {
|
|
81
|
+
title: "Distance-weighted payload ratio",
|
|
82
|
+
metric: r.distanceWeightedWeight
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ e(a, {
|
|
85
|
+
title: "Distance-weighted cube ratio",
|
|
86
|
+
metric: r.distanceWeightedCube
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
}),
|
|
90
|
+
/* @__PURE__ */ e("p", {
|
|
91
|
+
className: "text-sm",
|
|
92
|
+
children: "Weight and cube are distance-weighted means of each segment’s individual ratio, not pooled capacities. Zero-distance segments retain facts but add no weighting. Unknown facts do not become zeros; overloads remain above 100%."
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ t("details", {
|
|
95
|
+
className: "space-y-3",
|
|
96
|
+
children: [/* @__PURE__ */ e("summary", { children: "Reported segment facts and sources" }), r.segments.map((n) => /* @__PURE__ */ t("article", {
|
|
97
|
+
className: "space-y-2 rounded border p-3 text-sm",
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ t("h4", {
|
|
100
|
+
className: "font-semibold",
|
|
101
|
+
children: [
|
|
102
|
+
"Segment ",
|
|
103
|
+
n.sequence,
|
|
104
|
+
" — ",
|
|
105
|
+
n.loadedState
|
|
106
|
+
]
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ t("p", { children: [
|
|
109
|
+
i(n.distanceKm, "km"),
|
|
110
|
+
"; payload ",
|
|
111
|
+
i(n.payloadKg, "kg"),
|
|
112
|
+
" / reported payload capacity ",
|
|
113
|
+
i(n.payloadCapacityKg, "kg"),
|
|
114
|
+
"; occupied",
|
|
115
|
+
" ",
|
|
116
|
+
i(n.cubeM3, "m³"),
|
|
117
|
+
" / usable ",
|
|
118
|
+
i(n.cubeCapacityM3, "m³"),
|
|
119
|
+
"."
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ t("p", { children: [
|
|
122
|
+
"Payload ratio ",
|
|
123
|
+
i(n.weightUtilizationPercentage, "%"),
|
|
124
|
+
"; cube ratio",
|
|
125
|
+
" ",
|
|
126
|
+
i(n.cubeUtilizationPercentage, "%"),
|
|
127
|
+
"."
|
|
128
|
+
] }),
|
|
129
|
+
n.warnings.length > 0 && /* @__PURE__ */ e("ul", {
|
|
130
|
+
className: "space-y-1",
|
|
131
|
+
children: n.warnings.map((t) => /* @__PURE__ */ e("li", {
|
|
132
|
+
role: "note",
|
|
133
|
+
children: t === "WEIGHT_OVERLOAD" ? "WEIGHT OVERLOAD — reported payload exceeds supplied capacity" : t === "CUBE_OVERLOAD" ? "CUBE OVERLOAD — occupied cube exceeds supplied capacity" : "CONTRADICTORY EMPTY — positive reported payload or cube; empty distance remains unconfirmed"
|
|
134
|
+
}, t))
|
|
135
|
+
}),
|
|
136
|
+
/* @__PURE__ */ t("p", { children: [
|
|
137
|
+
"Source ",
|
|
138
|
+
n.source.reference,
|
|
139
|
+
"; revision ",
|
|
140
|
+
n.source.revision,
|
|
141
|
+
". Observation",
|
|
142
|
+
" ",
|
|
143
|
+
n.source.observedAt ?? "not recorded",
|
|
144
|
+
"; server receipt",
|
|
145
|
+
" ",
|
|
146
|
+
n.source.recordedAt,
|
|
147
|
+
"."
|
|
148
|
+
] }),
|
|
149
|
+
/* @__PURE__ */ t("p", { children: [
|
|
150
|
+
"Distance basis ",
|
|
151
|
+
n.source.distanceBasis,
|
|
152
|
+
"; load basis ",
|
|
153
|
+
n.source.loadBasis,
|
|
154
|
+
"; capacity basis ",
|
|
155
|
+
n.source.capacityBasis,
|
|
156
|
+
"."
|
|
157
|
+
] })
|
|
158
|
+
]
|
|
159
|
+
}, n.segmentId))]
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ t("details", {
|
|
162
|
+
className: "space-y-2",
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ e("summary", { children: "Captured context and exact evidence" }),
|
|
165
|
+
/* @__PURE__ */ t("p", { children: [
|
|
166
|
+
"Captured route ",
|
|
167
|
+
n.routeId,
|
|
168
|
+
"; vehicle ",
|
|
169
|
+
n.vehicleId,
|
|
170
|
+
". Recorded ",
|
|
171
|
+
n.recordedAt,
|
|
172
|
+
"; actor ",
|
|
173
|
+
n.createdBy,
|
|
174
|
+
"; gateway provenance ",
|
|
175
|
+
n.actorProvenance,
|
|
176
|
+
"."
|
|
177
|
+
] }),
|
|
178
|
+
/* @__PURE__ */ t("p", { children: [
|
|
179
|
+
"Captured route revision ",
|
|
180
|
+
n.routeUpdatedAt,
|
|
181
|
+
"; vehicle revision",
|
|
182
|
+
" ",
|
|
183
|
+
n.vehicleUpdatedAt,
|
|
184
|
+
". This is a historical context snapshot."
|
|
185
|
+
] }),
|
|
186
|
+
/* @__PURE__ */ t("p", {
|
|
187
|
+
className: "break-all",
|
|
188
|
+
children: [
|
|
189
|
+
"Route-content fingerprint: ",
|
|
190
|
+
n.routeWaypointsFingerprint,
|
|
191
|
+
"."
|
|
192
|
+
]
|
|
193
|
+
}),
|
|
194
|
+
/* @__PURE__ */ e("ul", { children: n.evidence.map((e) => /* @__PURE__ */ t("li", {
|
|
195
|
+
className: "break-all",
|
|
196
|
+
children: [
|
|
197
|
+
"File ",
|
|
198
|
+
e.fileId,
|
|
199
|
+
"; version ",
|
|
200
|
+
e.versionId,
|
|
201
|
+
"; fingerprint ",
|
|
202
|
+
e.sha256Hash,
|
|
203
|
+
"; checked",
|
|
204
|
+
" ",
|
|
205
|
+
e.checkedAt,
|
|
206
|
+
"."
|
|
207
|
+
]
|
|
208
|
+
}, e.versionId)) }),
|
|
209
|
+
/* @__PURE__ */ e("p", { children: "Files readability and fingerprints were checked at recording time. Stored references are not a guarantee of future readability or document authenticity." })
|
|
210
|
+
]
|
|
211
|
+
})
|
|
212
|
+
]
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
export { o as TripReportSummary };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { Button as e } from "../ui.js";
|
|
2
|
+
import { ReuseField as t, reuseSelect as n } from "../ReuseControls.js";
|
|
3
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
//#region src/movethewheels/components/trip-utilization/TripSegmentFields.tsx
|
|
5
|
+
function o({ id: o, sequence: s, basis: c, onRemove: l, removable: u }) {
|
|
6
|
+
let d = (e) => `${o}.${e}`;
|
|
7
|
+
return /* @__PURE__ */ a("fieldset", {
|
|
8
|
+
className: "space-y-4 rounded-lg border p-4",
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ a("legend", {
|
|
11
|
+
className: "px-2 font-semibold",
|
|
12
|
+
children: ["Segment ", s]
|
|
13
|
+
}),
|
|
14
|
+
/* @__PURE__ */ i("p", {
|
|
15
|
+
className: "text-sm",
|
|
16
|
+
children: "Blank measurements stay UNKNOWN. EMPTY does not fill in zero weight or cube. Segment order is the order reported here."
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ a("label", {
|
|
19
|
+
className: "block",
|
|
20
|
+
children: ["Reported load state", /* @__PURE__ */ a("select", {
|
|
21
|
+
name: d("loadedState"),
|
|
22
|
+
className: n,
|
|
23
|
+
defaultValue: "UNKNOWN",
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ i("option", {
|
|
26
|
+
value: "UNKNOWN",
|
|
27
|
+
children: "UNKNOWN"
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ i("option", {
|
|
30
|
+
value: "EMPTY",
|
|
31
|
+
children: "EMPTY"
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ i("option", {
|
|
34
|
+
value: "LOADED",
|
|
35
|
+
children: "LOADED"
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
})]
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ i("div", {
|
|
41
|
+
className: "grid gap-3 md:grid-cols-2",
|
|
42
|
+
children: [
|
|
43
|
+
["distanceKm", "Distance (km)"],
|
|
44
|
+
["payloadKg", "Payload (kg)"],
|
|
45
|
+
["payloadCapacityKg", "Reported payload capacity (kg)"],
|
|
46
|
+
["cubeM3", "Occupied cube (m³)"],
|
|
47
|
+
["cubeCapacityM3", "Usable cube capacity (m³)"]
|
|
48
|
+
].map(([e, t]) => /* @__PURE__ */ a("label", {
|
|
49
|
+
className: "block",
|
|
50
|
+
children: [t, /* @__PURE__ */ i("input", {
|
|
51
|
+
name: d(e),
|
|
52
|
+
type: "number",
|
|
53
|
+
min: "0",
|
|
54
|
+
step: "any",
|
|
55
|
+
className: n,
|
|
56
|
+
placeholder: "UNKNOWN / not recorded"
|
|
57
|
+
})]
|
|
58
|
+
}, e))
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ a("div", {
|
|
61
|
+
className: "grid gap-3 md:grid-cols-2",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ i(t, {
|
|
64
|
+
label: "Source reference",
|
|
65
|
+
name: d("reference")
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ i(t, {
|
|
68
|
+
label: "Source revision",
|
|
69
|
+
name: d("revision"),
|
|
70
|
+
maxLength: 120
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ i(t, {
|
|
73
|
+
label: c === "OBSERVED" ? "Observation time (ISO with timezone)" : "Source observation time, if any (ISO with timezone)",
|
|
74
|
+
name: d("observedAt"),
|
|
75
|
+
required: c === "OBSERVED"
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ a("label", {
|
|
78
|
+
className: "block",
|
|
79
|
+
children: ["Distance source", /* @__PURE__ */ i("select", {
|
|
80
|
+
required: !0,
|
|
81
|
+
name: d("distanceBasis"),
|
|
82
|
+
className: n,
|
|
83
|
+
defaultValue: c === "OBSERVED" ? "MEASURED" : "",
|
|
84
|
+
children: c === "OBSERVED" ? /* @__PURE__ */ i("option", {
|
|
85
|
+
value: "MEASURED",
|
|
86
|
+
children: "Measured"
|
|
87
|
+
}) : /* @__PURE__ */ a(r, { children: [
|
|
88
|
+
/* @__PURE__ */ i("option", {
|
|
89
|
+
value: "",
|
|
90
|
+
children: "Choose estimate source"
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ i("option", {
|
|
93
|
+
value: "PROVIDER_ESTIMATE",
|
|
94
|
+
children: "Provider estimate"
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ i("option", {
|
|
97
|
+
value: "OPERATOR_ESTIMATE",
|
|
98
|
+
children: "Operator estimate"
|
|
99
|
+
})
|
|
100
|
+
] })
|
|
101
|
+
})]
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ a("label", {
|
|
104
|
+
className: "block",
|
|
105
|
+
children: ["Load source", /* @__PURE__ */ a("select", {
|
|
106
|
+
required: !0,
|
|
107
|
+
name: d("loadBasis"),
|
|
108
|
+
className: n,
|
|
109
|
+
defaultValue: c === "OBSERVED" ? "MEASURED" : "",
|
|
110
|
+
children: [
|
|
111
|
+
c === "ESTIMATED" && /* @__PURE__ */ i("option", {
|
|
112
|
+
value: "",
|
|
113
|
+
children: "Choose load source"
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ i("option", {
|
|
116
|
+
value: "MEASURED",
|
|
117
|
+
children: "Measured"
|
|
118
|
+
}),
|
|
119
|
+
c === "ESTIMATED" && /* @__PURE__ */ i("option", {
|
|
120
|
+
value: "SOURCE_CONFIRMED_PLAN",
|
|
121
|
+
children: "Source-confirmed plan"
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
})]
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ a("label", {
|
|
127
|
+
className: "block",
|
|
128
|
+
children: ["Capacity source", /* @__PURE__ */ a("select", {
|
|
129
|
+
required: !0,
|
|
130
|
+
name: d("capacityBasis"),
|
|
131
|
+
className: n,
|
|
132
|
+
defaultValue: "",
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ i("option", {
|
|
135
|
+
value: "",
|
|
136
|
+
children: "Choose capacity source"
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ i("option", {
|
|
139
|
+
value: "RATED",
|
|
140
|
+
children: "Rated"
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ i("option", {
|
|
143
|
+
value: "MEASURED",
|
|
144
|
+
children: "Measured"
|
|
145
|
+
})
|
|
146
|
+
]
|
|
147
|
+
})]
|
|
148
|
+
})
|
|
149
|
+
]
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ i("p", {
|
|
152
|
+
className: "text-sm",
|
|
153
|
+
children: "These source labels are recorded by the operator. A source reference or evidence hash does not authenticate the provider or certify measurements."
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ a(e, {
|
|
156
|
+
type: "button",
|
|
157
|
+
variant: "outline",
|
|
158
|
+
disabled: !u,
|
|
159
|
+
onClick: l,
|
|
160
|
+
children: ["Remove segment ", s]
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
export { o as TripSegmentFields };
|